Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ const NOTE_EDITOR_PROSE_CLASS_NAME = [
'[--rich-markdown-line-height:1.25rem]',
/* Mirrors NOTE_MARKDOWN_FLOW, the rhythm Streamdown paints in the read view.
Tailwind's JIT only sees literal class strings, so this cannot be composed
from that constant, so keep the two in step by hand. Without it the editor falls back to the per-element margins
and every block after the first sits ~12px higher than when viewing. */
from that constant; keep the two in step by hand. Without it the editor
falls back to the per-element margins and every block after the first sits
~12px higher than when viewing. */
'[&_.ProseMirror]:space-y-4 [&_.ProseMirror>*:first-child]:mt-0 [&_.ProseMirror>*:last-child]:mb-0',
'[&_.ProseMirror]:min-h-full [&_.ProseMirror]:break-words [&_.ProseMirror]:pt-0.5 [&_.ProseMirror]:pb-2 [&_.ProseMirror]:outline-hidden',
'[&_.ProseMirror_p]:mb-1 [&_.ProseMirror_p]:text-sm [&_.ProseMirror_p]:leading-[1.25rem] [&_.ProseMirror_p:last-child]:mb-0',
Expand Down
10 changes: 5 additions & 5 deletions apps/sim/lib/execution/sandbox/bundles/isolate-polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ if (typeof g.global === 'undefined') g.global = globalThis
* helper around it. Bun's browser/iife build rewrites the bare `require`
* references inside that helper to its own `__require` runtime helper and
* then never emits it, so the bundle throws `ReferenceError: __require is not
* defined` while it is still being evaluated. The isolate has no `require` at all, so the only correct answer
* to a dynamic require is the one esbuild's helper gives when `require` is
* absent: throw. Defining it here keeps every bundle self-contained; `build.ts`
* evaluates each bundle in a bare context so a new variant of the defect fails
* the build instead of shipping.
* defined` while it is still being evaluated. The isolate has no `require` at
* all, so the only correct answer to a dynamic require is the one esbuild's
* helper gives when `require` is absent: throw. Defining it here keeps every
* bundle self-contained; `build.ts` evaluates each bundle in a bare context so
* a new variant of the defect fails the build instead of shipping.
*/
if (typeof g.__require === 'undefined') {
g.__require = (id: string): never => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
"dompurify": "3.4.17",
"engine.io": "6.6.11",
"fast-copy": "4.2.0",
"fast-xml-parser": "5.12.0",
"fast-uri": "3.1.9",
"fast-xml-parser": "5.12.0",
"follow-redirects": "1.16.2",
"hono": "4.13.13",
"image-size": "2.0.4",
Expand Down
Loading