@1agh/maude 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/{plugins/design/dev-server → apps/studio}/ai-banner.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/annotations-context-toolbar.tsx +286 -6
- package/{plugins/design/dev-server → apps/studio}/annotations-layer.tsx +1209 -122
- package/{plugins/design/dev-server → apps/studio}/api.ts +486 -32
- package/{plugins/design/dev-server → apps/studio}/artboard-activity-overlay.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/artboard-marquee.tsx +1 -1
- package/apps/studio/bin/_motion-sample-playwright.mjs +129 -0
- package/{plugins/design/dev-server → apps/studio}/bin/canvas-edit.sh +1 -1
- package/{plugins/design/dev-server → apps/studio}/bin/draw-proof.sh +37 -2
- package/{plugins/design/dev-server → apps/studio}/bin/preflight.sh +1 -1
- package/apps/studio/bin/read-annotations.mjs +438 -0
- package/apps/studio/bin/read-annotations.sh +11 -0
- package/{plugins/design/dev-server → apps/studio}/bin/runtime-health.sh +1 -1
- package/{plugins/design/dev-server → apps/studio}/bin/scenario-report.mjs +1 -1
- package/{plugins/design/dev-server → apps/studio}/bin/screenshot.sh +62 -2
- package/apps/studio/bin/server-up.sh +234 -0
- package/apps/studio/bin/to-lottie-verify.html +68 -0
- package/apps/studio/bin/to-lottie.sh +128 -0
- package/{plugins/design/dev-server → apps/studio}/bin/visual-sanity.sh +19 -3
- package/{plugins/design/dev-server → apps/studio}/build.ts +5 -3
- package/{plugins/design/dev-server → apps/studio}/canvas-arrowheads.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/canvas-comment-mount.tsx +2 -2
- package/apps/studio/canvas-create.ts +104 -0
- package/{plugins/design/dev-server → apps/studio}/canvas-cursors.ts +47 -13
- package/{plugins/design/dev-server → apps/studio}/canvas-icons.tsx +60 -1
- package/{plugins/design/dev-server → apps/studio}/canvas-lib-inline.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/canvas-lib-resolver.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/canvas-lib.tsx +41 -33
- package/{plugins/design/dev-server → apps/studio}/canvas-shell.tsx +57 -42
- package/{plugins/design/dev-server → apps/studio}/client/app.jsx +1713 -530
- package/apps/studio/client/canvas-url.js +81 -0
- package/{plugins/design/dev-server → apps/studio}/client/comments-overlay.css +41 -27
- package/{plugins/design/dev-server → apps/studio}/client/index.html +2 -1
- package/apps/studio/client/styles/1-tokens-maude.css +296 -0
- package/apps/studio/client/styles/3-shell-maude.css +459 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles/3-shell.css +129 -0
- package/apps/studio/client/styles/4-components-maude.css +74 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles/4-components.css +357 -34
- package/apps/studio/client/styles/5-maude-overrides.css +123 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles/_index.css +9 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles.css +1 -1
- package/apps/studio/client/tour/overlay.jsx +191 -0
- package/apps/studio/client/tour/usage-tour.js +35 -0
- package/apps/studio/client/whats-new-seen.js +52 -0
- package/apps/studio/client/whats-new.jsx +250 -0
- package/{plugins/design/dev-server → apps/studio}/collab/index.ts +4 -4
- package/{plugins/design/dev-server → apps/studio}/collab/persistence.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/commands/annotation-strokes-command.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/commands/equal-spacing-command.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/commands/move-artboards-command.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/comments-overlay.tsx +25 -6
- package/{plugins/design/dev-server → apps/studio}/context-menu.tsx +2 -2
- package/{plugins/design/dev-server → apps/studio}/contextual-toolbar.tsx +4 -7
- package/{plugins/design/dev-server → apps/studio}/cursors-overlay.tsx +1 -1
- package/apps/studio/dist/client.bundle.js +22825 -0
- package/apps/studio/dist/comment-mount.js +1960 -0
- package/apps/studio/dist/runtime/lib0_decoding.js +1 -0
- package/apps/studio/dist/runtime/lib0_encoding.js +1 -0
- package/apps/studio/dist/runtime/motion.js +4 -0
- package/apps/studio/dist/runtime/motion_react.js +12 -0
- package/apps/studio/dist/runtime/pixi-js.js +3397 -0
- package/apps/studio/dist/runtime/react-dom.js +1 -0
- package/apps/studio/dist/runtime/react-dom_client.js +9 -0
- package/apps/studio/dist/runtime/react.js +1 -0
- package/apps/studio/dist/runtime/react_jsx-dev-runtime.js +1 -0
- package/apps/studio/dist/runtime/react_jsx-runtime.js +1 -0
- package/apps/studio/dist/runtime/y-protocols_awareness.js +1 -0
- package/apps/studio/dist/runtime/y-protocols_sync.js +1 -0
- package/apps/studio/dist/runtime/yjs.js +5 -0
- package/apps/studio/dist/styles.css +5695 -0
- package/{plugins/design/dev-server → apps/studio}/dom-selection.ts +75 -4
- package/apps/studio/draw/animate.ts +333 -0
- package/{plugins/design/dev-server → apps/studio}/draw/brush.ts +4 -4
- package/{plugins/design/dev-server → apps/studio}/draw/composition.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/draw/geometry.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/draw/index.ts +9 -6
- package/{plugins/design/dev-server → apps/studio}/draw/layout.ts +2 -2
- package/apps/studio/draw/morph.ts +204 -0
- package/{plugins/design/dev-server → apps/studio}/draw/optimize.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/draw/palette.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/draw/primitives.ts +1 -1
- package/apps/studio/draw/serialize-animate.ts +324 -0
- package/{plugins/design/dev-server → apps/studio}/draw/serialize.ts +9 -3
- package/apps/studio/draw/test/animate.test.ts +172 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/layout.test.ts +1 -1
- package/apps/studio/draw/test/morph.test.ts +107 -0
- package/apps/studio/draw/test/serialize-animate.test.ts +142 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/serialize.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/equal-spacing-detector.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/equal-spacing-handles.tsx +7 -29
- package/{plugins/design/dev-server → apps/studio}/examples/perf-100-artboards.tsx +1 -2
- package/{plugins/design/dev-server → apps/studio}/export-dialog.tsx +14 -2
- package/{plugins/design/dev-server → apps/studio}/exporters/index.ts +2 -2
- package/{plugins/design/dev-server → apps/studio}/http.ts +103 -2
- package/{plugins/design/dev-server → apps/studio}/input-router.tsx +8 -1
- package/{plugins/design/dev-server → apps/studio}/inspect.ts +20 -3
- package/{plugins/design/dev-server → apps/studio}/marquee-overlay.tsx +6 -3
- package/{plugins/design/dev-server → apps/studio}/participants-chrome.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/paths.ts +15 -11
- package/{plugins/design/dev-server → apps/studio}/server.ts +19 -1
- package/{plugins/design/dev-server → apps/studio}/sync/index.ts +6 -6
- package/{plugins/design/dev-server → apps/studio}/sync/materialize.ts +2 -2
- package/{plugins/design/dev-server → apps/studio}/test/ai-activity.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/annotations-api.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/annotations-layer.test.ts +69 -6
- package/{plugins/design/dev-server → apps/studio}/test/annotations-roundtrip.test.ts +98 -1
- package/apps/studio/test/annotations-text-format.test.ts +396 -0
- package/apps/studio/test/asset-api.test.ts +149 -0
- package/{plugins/design/dev-server → apps/studio}/test/boot-self-heal.test.ts +1 -1
- package/apps/studio/test/canvas-create-api.test.ts +361 -0
- package/{plugins/design/dev-server → apps/studio}/test/canvas-cursors.test.ts +3 -1
- package/{plugins/design/dev-server → apps/studio}/test/canvas-edit.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/canvas-hmr-runtime.test.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/canvas-lib-inline.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/canvas-lib-resolver.test.ts +2 -3
- package/apps/studio/test/canvas-media-drop.test.ts +158 -0
- package/{plugins/design/dev-server → apps/studio}/test/canvas-meta-api.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/canvas-origin-gate.test.ts +18 -3
- package/apps/studio/test/canvas-url.test.ts +99 -0
- package/{plugins/design/dev-server → apps/studio}/test/collab-annotations-bridge.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/collab-bridge.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/collab-room.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/collab-stress.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/comments-api.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/compile-entry.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/exporters/canva.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/exporters/history.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/exporters/pw-launch.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/exporters/scope.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/exporters/zip.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/git-lifecycle.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/handoff-static-frames.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/hmr-broadcast.test.ts +1 -1
- package/apps/studio/test/index-data-canvas-ds.test.ts +97 -0
- package/apps/studio/test/motion-sample.test.ts +35 -0
- package/{plugins/design/dev-server → apps/studio}/test/perf-harness.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/phase-3.6-smoke.test.ts +3 -1
- package/apps/studio/test/read-annotations.test.ts +409 -0
- package/{plugins/design/dev-server → apps/studio}/test/runtime-bundle.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/sanitize-annotation-svg.test.ts +108 -2
- package/{plugins/design/dev-server → apps/studio}/test/shared-doc-convergence.test.ts +2 -2
- package/{plugins/design/dev-server → apps/studio}/test/shared-doc-migrate.test.ts +2 -3
- package/{plugins/design/dev-server → apps/studio}/test/shared-doc-projection.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/snap-distance-pill.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/sync-agent.test.ts +2 -3
- package/{plugins/design/dev-server → apps/studio}/test/sync-atomic-write.test.ts +2 -3
- package/{plugins/design/dev-server → apps/studio}/test/sync-connection-state.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/sync-echo-guard.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/sync-fs-mirror.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/sync-hardening.test.ts +4 -5
- package/{plugins/design/dev-server → apps/studio}/test/sync-hubs-config.test.ts +1 -2
- package/{plugins/design/dev-server → apps/studio}/test/sync-runtime.test.ts +3 -8
- package/{plugins/design/dev-server → apps/studio}/test/sync-status.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/sync-untrusted.test.ts +1 -2
- package/apps/studio/test/tour-overlay.test.tsx +56 -0
- package/{plugins/design/dev-server → apps/studio}/test/use-agent-presence.test.tsx +4 -1
- package/{plugins/design/dev-server → apps/studio}/test/use-annotation-resize.test.ts +43 -0
- package/{plugins/design/dev-server → apps/studio}/test/use-snap-guides.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/use-tool-mode.test.tsx +4 -1
- package/apps/studio/test/whats-new.test.ts +101 -0
- package/apps/studio/text-imports.d.ts +9 -0
- package/{plugins/design/dev-server → apps/studio}/tool-palette.tsx +4 -69
- package/{plugins/design/dev-server → apps/studio}/undo-hud.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/undo-stack.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/use-agent-presence.tsx +2 -2
- package/{plugins/design/dev-server → apps/studio}/use-annotation-resize.tsx +41 -12
- package/{plugins/design/dev-server → apps/studio}/use-annotation-selection.tsx +3 -7
- package/{plugins/design/dev-server → apps/studio}/use-annotations-visibility.tsx +2 -2
- package/{plugins/design/dev-server → apps/studio}/use-artboard-drag.tsx +2 -2
- package/{plugins/design/dev-server → apps/studio}/use-canvas-activity.tsx +2 -2
- package/apps/studio/use-canvas-media-drop.tsx +343 -0
- package/{plugins/design/dev-server → apps/studio}/use-collab.tsx +4 -5
- package/{plugins/design/dev-server → apps/studio}/use-cursor-modifiers.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/use-keyboard-discipline.tsx +5 -2
- package/{plugins/design/dev-server → apps/studio}/use-selection-set.tsx +10 -2
- package/{plugins/design/dev-server → apps/studio}/use-snap-guides.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/use-tool-mode.tsx +4 -2
- package/{plugins/design/dev-server → apps/studio}/use-undo-stack.tsx +5 -6
- package/apps/studio/whats-new.json +139 -0
- package/apps/studio/whats-new.schema.json +70 -0
- package/apps/studio/whats-new.ts +87 -0
- package/cli/bin/maude.mjs +10 -0
- package/cli/commands/design.mjs +84 -10
- package/cli/commands/design.test.mjs +133 -1
- package/cli/commands/help.mjs +8 -2
- package/cli/commands/hub.mjs +3 -3
- package/cli/commands/hub.test.mjs +1 -1
- package/cli/commands/scenario-report.mjs +2 -9
- package/cli/lib/cache.mjs +1 -1
- package/cli/lib/config-lint.mjs +1 -1
- package/cli/lib/copy-tree.mjs +1 -1
- package/cli/lib/design-link.mjs +1 -1
- package/cli/lib/flow-design-integration.test.mjs +2 -2
- package/cli/lib/gitignore-block.mjs +1 -0
- package/cli/lib/gitignore-block.test.mjs +2 -2
- package/cli/lib/plugin-cli-reachability.test.mjs +8 -7
- package/cli/lib/preflight.mjs +1 -1
- package/cli/lib/stack-detect.mjs +1 -1
- package/package.json +16 -16
- package/plugins/design/templates/_shell.html +3 -3
- package/plugins/design/templates/brief-board.tsx.template +61 -0
- package/plugins/design/templates/canvas.tsx.template +1 -1
- package/plugins/design/templates/design-system-inspiration/SUB-AGENT-PROMPTS.md +18 -3
- package/plugins/design/templates/design-system-inspiration/core/config.json.tpl +1 -1
- package/plugins/design/templates/design-system-inspiration/core/preview/_motion-readme.md.tpl +1 -1
- package/plugins/flow/.claude-plugin/config.schema.json +16 -0
- package/plugins/design/dev-server/bin/server-up.sh +0 -135
- package/plugins/design/dev-server/dist/client.bundle.js +0 -20692
- package/plugins/design/dev-server/dist/comment-mount.js +0 -1924
- package/plugins/design/dev-server/dist/runtime/lib0_decoding.js +0 -620
- package/plugins/design/dev-server/dist/runtime/lib0_encoding.js +0 -604
- package/plugins/design/dev-server/dist/runtime/motion.js +0 -4944
- package/plugins/design/dev-server/dist/runtime/motion_react.js +0 -10056
- package/plugins/design/dev-server/dist/runtime/pixi-js.js +0 -53104
- package/plugins/design/dev-server/dist/runtime/react-dom.js +0 -231
- package/plugins/design/dev-server/dist/runtime/react-dom_client.js +0 -10357
- package/plugins/design/dev-server/dist/runtime/react.js +0 -535
- package/plugins/design/dev-server/dist/runtime/react_jsx-dev-runtime.js +0 -60
- package/plugins/design/dev-server/dist/runtime/react_jsx-runtime.js +0 -85
- package/plugins/design/dev-server/dist/runtime/y-protocols_awareness.js +0 -376
- package/plugins/design/dev-server/dist/runtime/y-protocols_sync.js +0 -100
- package/plugins/design/dev-server/dist/runtime/yjs.js +0 -6687
- package/plugins/design/dev-server/dist/styles.css +0 -2710
- package/{plugins/design/dev-server → apps/studio}/activity.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_enumerate-artboards-playwright.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_html-playwright.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_pdf-playwright.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_png-playwright.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_pptx-playwright.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_pw-launch.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_screenshot-playwright.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_svg-optimize.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/_svg-playwright.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/asset-sweep.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/bootstrap-check.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/check-runtime-bundles.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/draw-build.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/handoff.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/prep.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/slug.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/smoke.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/bin/svg-optimize.sh +0 -0
- package/{plugins/design/dev-server → apps/studio}/boot-self-heal.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/canvas-build.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/canvas-edit.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/canvas-header.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/canvas-meta.schema.json +0 -0
- package/{plugins/design/dev-server → apps/studio}/canvas-pipeline.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/client/hmr.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/client/iframe-lazy.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles/0-reset.css +0 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles/1-tokens.css +0 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles/2-layout.css +0 -0
- package/{plugins/design/dev-server → apps/studio}/client/styles/5-utilities.css +0 -0
- package/{plugins/design/dev-server → apps/studio}/collab/ai-activity.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/collab/awareness-bridge.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/collab/git-lifecycle.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/collab/protocol.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/collab/registry.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/collab/room.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/config.schema.json +0 -0
- package/{plugins/design/dev-server → apps/studio}/context.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/dist/runtime/.min-sizes.json +0 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/brush.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/composition.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/geometry.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/draw/test/gradient.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/optimize.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/palette.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/draw/test/primitives.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/examples/README.md +0 -0
- package/{plugins/design/dev-server → apps/studio}/exporters/_browser-bundles.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/exporters/canva-handoff-prompt.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/exporters/canva.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/exporters/html.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/exporters/pdf.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/exporters/png.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/exporters/pptx.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/exporters/scope.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/exporters/svg.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/exporters/zip.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/fs-watch.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/handoff.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/history.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/hmr-broadcast.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/locator.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/mem.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/runtime-bundle.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/server.mjs +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/agent.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/sync/atomic-write.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/codec.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/connection-state.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/echo-guard.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/fs-mirror.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/hubs-config.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/migrate-seed.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/sync/origins.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/projection.ts +3 -3
- package/{plugins/design/dev-server → apps/studio}/sync/status.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/sync/untrusted.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/_helpers.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/active-state.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/activity.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/annotation-strokes-command.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/annotations-draw-modifiers.test.ts +2 -2
- package/{plugins/design/dev-server → apps/studio}/test/artboard-activity-overlay.test.tsx +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/binary-smoke.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/bundle-smoke.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/canvas-build.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/canvas-header.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/canvas-lib-motion.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/canvas-pipeline.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/canvas-route.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/collab-awareness-bridge.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/collab-loopback.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/collab-protocol.test.ts +2 -2
- package/{plugins/design/dev-server → apps/studio}/test/collab-reseed-guard.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/comment-mount.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/context-resolve-tokens.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/csp-canvas-shell.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/equal-spacing-detector.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/exporters/endpoint.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/exporters/html.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/exporters/pdf.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/exporters/png.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/exporters/pptx-deck.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/exporters/pptx.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/exporters/svg.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/fixtures/phase-20-annotations.svg +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/fixtures/phase-21-annotations.svg +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/fs-watch.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/handoff.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/history-rollback.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/hmr-classify.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/input-router.test.ts +2 -2
- package/{plugins/design/dev-server → apps/studio}/test/locator.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/marquee-overlay.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/move-artboards-command.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/participants-chrome.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/paths.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/runtime-bundle-error-mapping.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/server-lifecycle.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/shared-doc-foundation.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/sync-codec.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/sync-meta-codec.test.ts +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/system-endpoint.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/tool-palette.test.tsx +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/undo-stack.test.ts +2 -2
- package/{plugins/design/dev-server → apps/studio}/test/use-annotation-selection.test.tsx +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/use-artboard-drag.test.ts +3 -3
- package/{plugins/design/dev-server → apps/studio}/test/use-canvas-activity.test.tsx +2 -2
- package/{plugins/design/dev-server → apps/studio}/test/use-collab.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/use-cursor-modifiers.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/use-keyboard-discipline.test.ts +0 -0
- package/{plugins/design/dev-server → apps/studio}/test/use-selection-set.test.tsx +1 -1
- package/{plugins/design/dev-server → apps/studio}/test/use-undo-stack.test.tsx +2 -2
- /package/{plugins/design/dev-server → apps/studio}/test/ws-handshake.test.ts +0 -0
- /package/{plugins/design/dev-server → apps/studio}/tsconfig.json +0 -0
- /package/{plugins/design/dev-server → apps/studio}/ws.ts +0 -0
|
@@ -1,620 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, {
|
|
5
|
-
get: all[name],
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
set: (newValue) => all[name] = () => newValue
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/decoding.js
|
|
13
|
-
var exports_decoding = {};
|
|
14
|
-
__export(exports_decoding, {
|
|
15
|
-
skip8: () => skip8,
|
|
16
|
-
readVarUint8Array: () => readVarUint8Array,
|
|
17
|
-
readVarUint: () => readVarUint,
|
|
18
|
-
readVarString: () => readVarString,
|
|
19
|
-
readVarInt: () => readVarInt,
|
|
20
|
-
readUint8Array: () => readUint8Array,
|
|
21
|
-
readUint8: () => readUint8,
|
|
22
|
-
readUint32BigEndian: () => readUint32BigEndian,
|
|
23
|
-
readUint32: () => readUint32,
|
|
24
|
-
readUint16: () => readUint16,
|
|
25
|
-
readTerminatedUint8Array: () => readTerminatedUint8Array,
|
|
26
|
-
readTerminatedString: () => readTerminatedString,
|
|
27
|
-
readTailAsUint8Array: () => readTailAsUint8Array,
|
|
28
|
-
readFromDataView: () => readFromDataView,
|
|
29
|
-
readFloat64: () => readFloat64,
|
|
30
|
-
readFloat32: () => readFloat32,
|
|
31
|
-
readBigUint64: () => readBigUint64,
|
|
32
|
-
readBigInt64: () => readBigInt64,
|
|
33
|
-
readAny: () => readAny,
|
|
34
|
-
peekVarUint: () => peekVarUint,
|
|
35
|
-
peekVarString: () => peekVarString,
|
|
36
|
-
peekVarInt: () => peekVarInt,
|
|
37
|
-
peekUint8: () => peekUint8,
|
|
38
|
-
peekUint32: () => peekUint32,
|
|
39
|
-
peekUint16: () => peekUint16,
|
|
40
|
-
hasContent: () => hasContent,
|
|
41
|
-
createDecoder: () => createDecoder,
|
|
42
|
-
clone: () => clone,
|
|
43
|
-
_readVarStringPolyfill: () => _readVarStringPolyfill,
|
|
44
|
-
_readVarStringNative: () => _readVarStringNative,
|
|
45
|
-
UintOptRleDecoder: () => UintOptRleDecoder,
|
|
46
|
-
StringDecoder: () => StringDecoder,
|
|
47
|
-
RleIntDiffDecoder: () => RleIntDiffDecoder,
|
|
48
|
-
RleDecoder: () => RleDecoder,
|
|
49
|
-
IntDiffOptRleDecoder: () => IntDiffOptRleDecoder,
|
|
50
|
-
IntDiffDecoder: () => IntDiffDecoder,
|
|
51
|
-
IncUintOptRleDecoder: () => IncUintOptRleDecoder,
|
|
52
|
-
Decoder: () => Decoder
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/binary.js
|
|
56
|
-
var BIT7 = 64;
|
|
57
|
-
var BIT8 = 128;
|
|
58
|
-
var BIT18 = 1 << 17;
|
|
59
|
-
var BIT19 = 1 << 18;
|
|
60
|
-
var BIT20 = 1 << 19;
|
|
61
|
-
var BIT21 = 1 << 20;
|
|
62
|
-
var BIT22 = 1 << 21;
|
|
63
|
-
var BIT23 = 1 << 22;
|
|
64
|
-
var BIT24 = 1 << 23;
|
|
65
|
-
var BIT25 = 1 << 24;
|
|
66
|
-
var BIT26 = 1 << 25;
|
|
67
|
-
var BIT27 = 1 << 26;
|
|
68
|
-
var BIT28 = 1 << 27;
|
|
69
|
-
var BIT29 = 1 << 28;
|
|
70
|
-
var BIT30 = 1 << 29;
|
|
71
|
-
var BIT31 = 1 << 30;
|
|
72
|
-
var BIT32 = 1 << 31;
|
|
73
|
-
var BITS6 = 63;
|
|
74
|
-
var BITS7 = 127;
|
|
75
|
-
var BITS17 = BIT18 - 1;
|
|
76
|
-
var BITS18 = BIT19 - 1;
|
|
77
|
-
var BITS19 = BIT20 - 1;
|
|
78
|
-
var BITS20 = BIT21 - 1;
|
|
79
|
-
var BITS21 = BIT22 - 1;
|
|
80
|
-
var BITS22 = BIT23 - 1;
|
|
81
|
-
var BITS23 = BIT24 - 1;
|
|
82
|
-
var BITS24 = BIT25 - 1;
|
|
83
|
-
var BITS25 = BIT26 - 1;
|
|
84
|
-
var BITS26 = BIT27 - 1;
|
|
85
|
-
var BITS27 = BIT28 - 1;
|
|
86
|
-
var BITS28 = BIT29 - 1;
|
|
87
|
-
var BITS29 = BIT30 - 1;
|
|
88
|
-
var BITS30 = BIT31 - 1;
|
|
89
|
-
|
|
90
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/math.js
|
|
91
|
-
var floor = Math.floor;
|
|
92
|
-
var min = (a, b) => a < b ? a : b;
|
|
93
|
-
var max = (a, b) => a > b ? a : b;
|
|
94
|
-
var isNegativeZero = (n) => n !== 0 ? n < 0 : 1 / n < 0;
|
|
95
|
-
|
|
96
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/number.js
|
|
97
|
-
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER;
|
|
98
|
-
var MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER;
|
|
99
|
-
var LOWEST_INT32 = 1 << 31;
|
|
100
|
-
|
|
101
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/string.js
|
|
102
|
-
var fromCharCode = String.fromCharCode;
|
|
103
|
-
var fromCodePoint = String.fromCodePoint;
|
|
104
|
-
var MAX_UTF16_CHARACTER = fromCharCode(65535);
|
|
105
|
-
var _encodeUtf8Polyfill = (str) => {
|
|
106
|
-
const encodedString = unescape(encodeURIComponent(str));
|
|
107
|
-
const len = encodedString.length;
|
|
108
|
-
const buf = new Uint8Array(len);
|
|
109
|
-
for (let i = 0;i < len; i++) {
|
|
110
|
-
buf[i] = encodedString.codePointAt(i);
|
|
111
|
-
}
|
|
112
|
-
return buf;
|
|
113
|
-
};
|
|
114
|
-
var utf8TextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder : null;
|
|
115
|
-
var _encodeUtf8Native = (str) => utf8TextEncoder.encode(str);
|
|
116
|
-
var encodeUtf8 = utf8TextEncoder ? _encodeUtf8Native : _encodeUtf8Polyfill;
|
|
117
|
-
var _decodeUtf8Polyfill = (buf) => {
|
|
118
|
-
let remainingLen = buf.length;
|
|
119
|
-
let encodedString = "";
|
|
120
|
-
let bufPos = 0;
|
|
121
|
-
while (remainingLen > 0) {
|
|
122
|
-
const nextLen = remainingLen < 1e4 ? remainingLen : 1e4;
|
|
123
|
-
const bytes = buf.subarray(bufPos, bufPos + nextLen);
|
|
124
|
-
bufPos += nextLen;
|
|
125
|
-
encodedString += String.fromCodePoint.apply(null, bytes);
|
|
126
|
-
remainingLen -= nextLen;
|
|
127
|
-
}
|
|
128
|
-
return decodeURIComponent(escape(encodedString));
|
|
129
|
-
};
|
|
130
|
-
var utf8TextDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
131
|
-
if (utf8TextDecoder && utf8TextDecoder.decode(new Uint8Array).length === 1) {
|
|
132
|
-
utf8TextDecoder = null;
|
|
133
|
-
}
|
|
134
|
-
var _decodeUtf8Native = (buf) => utf8TextDecoder.decode(buf);
|
|
135
|
-
var decodeUtf8 = utf8TextDecoder ? _decodeUtf8Native : _decodeUtf8Polyfill;
|
|
136
|
-
|
|
137
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/error.js
|
|
138
|
-
var create2 = (s) => new Error(s);
|
|
139
|
-
|
|
140
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/encoding.js
|
|
141
|
-
class Encoder {
|
|
142
|
-
constructor() {
|
|
143
|
-
this.cpos = 0;
|
|
144
|
-
this.cbuf = new Uint8Array(100);
|
|
145
|
-
this.bufs = [];
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
var createEncoder = () => new Encoder;
|
|
149
|
-
var length = (encoder) => {
|
|
150
|
-
let len = encoder.cpos;
|
|
151
|
-
for (let i = 0;i < encoder.bufs.length; i++) {
|
|
152
|
-
len += encoder.bufs[i].length;
|
|
153
|
-
}
|
|
154
|
-
return len;
|
|
155
|
-
};
|
|
156
|
-
var toUint8Array = (encoder) => {
|
|
157
|
-
const uint8arr = new Uint8Array(length(encoder));
|
|
158
|
-
let curPos = 0;
|
|
159
|
-
for (let i = 0;i < encoder.bufs.length; i++) {
|
|
160
|
-
const d = encoder.bufs[i];
|
|
161
|
-
uint8arr.set(d, curPos);
|
|
162
|
-
curPos += d.length;
|
|
163
|
-
}
|
|
164
|
-
uint8arr.set(new Uint8Array(encoder.cbuf.buffer, 0, encoder.cpos), curPos);
|
|
165
|
-
return uint8arr;
|
|
166
|
-
};
|
|
167
|
-
var write = (encoder, num) => {
|
|
168
|
-
const bufferLen = encoder.cbuf.length;
|
|
169
|
-
if (encoder.cpos === bufferLen) {
|
|
170
|
-
encoder.bufs.push(encoder.cbuf);
|
|
171
|
-
encoder.cbuf = new Uint8Array(bufferLen * 2);
|
|
172
|
-
encoder.cpos = 0;
|
|
173
|
-
}
|
|
174
|
-
encoder.cbuf[encoder.cpos++] = num;
|
|
175
|
-
};
|
|
176
|
-
var writeVarUint = (encoder, num) => {
|
|
177
|
-
while (num > BITS7) {
|
|
178
|
-
write(encoder, BIT8 | BITS7 & num);
|
|
179
|
-
num = floor(num / 128);
|
|
180
|
-
}
|
|
181
|
-
write(encoder, BITS7 & num);
|
|
182
|
-
};
|
|
183
|
-
var _strBuffer = new Uint8Array(30000);
|
|
184
|
-
var _maxStrBSize = _strBuffer.length / 3;
|
|
185
|
-
var _writeVarStringNative = (encoder, str) => {
|
|
186
|
-
if (str.length < _maxStrBSize) {
|
|
187
|
-
const written = utf8TextEncoder.encodeInto(str, _strBuffer).written || 0;
|
|
188
|
-
writeVarUint(encoder, written);
|
|
189
|
-
for (let i = 0;i < written; i++) {
|
|
190
|
-
write(encoder, _strBuffer[i]);
|
|
191
|
-
}
|
|
192
|
-
} else {
|
|
193
|
-
writeVarUint8Array(encoder, encodeUtf8(str));
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
var _writeVarStringPolyfill = (encoder, str) => {
|
|
197
|
-
const encodedString = unescape(encodeURIComponent(str));
|
|
198
|
-
const len = encodedString.length;
|
|
199
|
-
writeVarUint(encoder, len);
|
|
200
|
-
for (let i = 0;i < len; i++) {
|
|
201
|
-
write(encoder, encodedString.codePointAt(i));
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
var writeVarString = utf8TextEncoder && utf8TextEncoder.encodeInto ? _writeVarStringNative : _writeVarStringPolyfill;
|
|
205
|
-
var writeUint8Array = (encoder, uint8Array) => {
|
|
206
|
-
const bufferLen = encoder.cbuf.length;
|
|
207
|
-
const cpos = encoder.cpos;
|
|
208
|
-
const leftCopyLen = min(bufferLen - cpos, uint8Array.length);
|
|
209
|
-
const rightCopyLen = uint8Array.length - leftCopyLen;
|
|
210
|
-
encoder.cbuf.set(uint8Array.subarray(0, leftCopyLen), cpos);
|
|
211
|
-
encoder.cpos += leftCopyLen;
|
|
212
|
-
if (rightCopyLen > 0) {
|
|
213
|
-
encoder.bufs.push(encoder.cbuf);
|
|
214
|
-
encoder.cbuf = new Uint8Array(max(bufferLen * 2, rightCopyLen));
|
|
215
|
-
encoder.cbuf.set(uint8Array.subarray(leftCopyLen));
|
|
216
|
-
encoder.cpos = rightCopyLen;
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
var writeVarUint8Array = (encoder, uint8Array) => {
|
|
220
|
-
writeVarUint(encoder, uint8Array.byteLength);
|
|
221
|
-
writeUint8Array(encoder, uint8Array);
|
|
222
|
-
};
|
|
223
|
-
var floatTestBed = new DataView(new ArrayBuffer(4));
|
|
224
|
-
|
|
225
|
-
// ../../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/decoding.js
|
|
226
|
-
var errorUnexpectedEndOfArray = create2("Unexpected end of array");
|
|
227
|
-
var errorIntegerOutOfRange = create2("Integer out of Range");
|
|
228
|
-
|
|
229
|
-
class Decoder {
|
|
230
|
-
constructor(uint8Array) {
|
|
231
|
-
this.arr = uint8Array;
|
|
232
|
-
this.pos = 0;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
var createDecoder = (uint8Array) => new Decoder(uint8Array);
|
|
236
|
-
var hasContent = (decoder) => decoder.pos !== decoder.arr.length;
|
|
237
|
-
var clone = (decoder, newPos = decoder.pos) => {
|
|
238
|
-
const _decoder = createDecoder(decoder.arr);
|
|
239
|
-
_decoder.pos = newPos;
|
|
240
|
-
return _decoder;
|
|
241
|
-
};
|
|
242
|
-
var readUint8Array = (decoder, len) => {
|
|
243
|
-
const view = new Uint8Array(decoder.arr.buffer, decoder.pos + decoder.arr.byteOffset, len);
|
|
244
|
-
decoder.pos += len;
|
|
245
|
-
return view;
|
|
246
|
-
};
|
|
247
|
-
var readVarUint8Array = (decoder) => readUint8Array(decoder, readVarUint(decoder));
|
|
248
|
-
var readTailAsUint8Array = (decoder) => readUint8Array(decoder, decoder.arr.length - decoder.pos);
|
|
249
|
-
var skip8 = (decoder) => decoder.pos++;
|
|
250
|
-
var readUint8 = (decoder) => decoder.arr[decoder.pos++];
|
|
251
|
-
var readUint16 = (decoder) => {
|
|
252
|
-
const uint = decoder.arr[decoder.pos] + (decoder.arr[decoder.pos + 1] << 8);
|
|
253
|
-
decoder.pos += 2;
|
|
254
|
-
return uint;
|
|
255
|
-
};
|
|
256
|
-
var readUint32 = (decoder) => {
|
|
257
|
-
const uint = decoder.arr[decoder.pos] + (decoder.arr[decoder.pos + 1] << 8) + (decoder.arr[decoder.pos + 2] << 16) + (decoder.arr[decoder.pos + 3] << 24) >>> 0;
|
|
258
|
-
decoder.pos += 4;
|
|
259
|
-
return uint;
|
|
260
|
-
};
|
|
261
|
-
var readUint32BigEndian = (decoder) => {
|
|
262
|
-
const uint = decoder.arr[decoder.pos + 3] + (decoder.arr[decoder.pos + 2] << 8) + (decoder.arr[decoder.pos + 1] << 16) + (decoder.arr[decoder.pos] << 24) >>> 0;
|
|
263
|
-
decoder.pos += 4;
|
|
264
|
-
return uint;
|
|
265
|
-
};
|
|
266
|
-
var peekUint8 = (decoder) => decoder.arr[decoder.pos];
|
|
267
|
-
var peekUint16 = (decoder) => decoder.arr[decoder.pos] + (decoder.arr[decoder.pos + 1] << 8);
|
|
268
|
-
var peekUint32 = (decoder) => decoder.arr[decoder.pos] + (decoder.arr[decoder.pos + 1] << 8) + (decoder.arr[decoder.pos + 2] << 16) + (decoder.arr[decoder.pos + 3] << 24) >>> 0;
|
|
269
|
-
var readVarUint = (decoder) => {
|
|
270
|
-
let num = 0;
|
|
271
|
-
let mult = 1;
|
|
272
|
-
const len = decoder.arr.length;
|
|
273
|
-
while (decoder.pos < len) {
|
|
274
|
-
const r = decoder.arr[decoder.pos++];
|
|
275
|
-
num = num + (r & BITS7) * mult;
|
|
276
|
-
mult *= 128;
|
|
277
|
-
if (r < BIT8) {
|
|
278
|
-
return num;
|
|
279
|
-
}
|
|
280
|
-
if (num > MAX_SAFE_INTEGER) {
|
|
281
|
-
throw errorIntegerOutOfRange;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
throw errorUnexpectedEndOfArray;
|
|
285
|
-
};
|
|
286
|
-
var readVarInt = (decoder) => {
|
|
287
|
-
let r = decoder.arr[decoder.pos++];
|
|
288
|
-
let num = r & BITS6;
|
|
289
|
-
let mult = 64;
|
|
290
|
-
const sign = (r & BIT7) > 0 ? -1 : 1;
|
|
291
|
-
if ((r & BIT8) === 0) {
|
|
292
|
-
return sign * num;
|
|
293
|
-
}
|
|
294
|
-
const len = decoder.arr.length;
|
|
295
|
-
while (decoder.pos < len) {
|
|
296
|
-
r = decoder.arr[decoder.pos++];
|
|
297
|
-
num = num + (r & BITS7) * mult;
|
|
298
|
-
mult *= 128;
|
|
299
|
-
if (r < BIT8) {
|
|
300
|
-
return sign * num;
|
|
301
|
-
}
|
|
302
|
-
if (num > MAX_SAFE_INTEGER) {
|
|
303
|
-
throw errorIntegerOutOfRange;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
throw errorUnexpectedEndOfArray;
|
|
307
|
-
};
|
|
308
|
-
var peekVarUint = (decoder) => {
|
|
309
|
-
const pos = decoder.pos;
|
|
310
|
-
const s = readVarUint(decoder);
|
|
311
|
-
decoder.pos = pos;
|
|
312
|
-
return s;
|
|
313
|
-
};
|
|
314
|
-
var peekVarInt = (decoder) => {
|
|
315
|
-
const pos = decoder.pos;
|
|
316
|
-
const s = readVarInt(decoder);
|
|
317
|
-
decoder.pos = pos;
|
|
318
|
-
return s;
|
|
319
|
-
};
|
|
320
|
-
var _readVarStringPolyfill = (decoder) => {
|
|
321
|
-
let remainingLen = readVarUint(decoder);
|
|
322
|
-
if (remainingLen === 0) {
|
|
323
|
-
return "";
|
|
324
|
-
} else {
|
|
325
|
-
let encodedString = String.fromCodePoint(readUint8(decoder));
|
|
326
|
-
if (--remainingLen < 100) {
|
|
327
|
-
while (remainingLen--) {
|
|
328
|
-
encodedString += String.fromCodePoint(readUint8(decoder));
|
|
329
|
-
}
|
|
330
|
-
} else {
|
|
331
|
-
while (remainingLen > 0) {
|
|
332
|
-
const nextLen = remainingLen < 1e4 ? remainingLen : 1e4;
|
|
333
|
-
const bytes = decoder.arr.subarray(decoder.pos, decoder.pos + nextLen);
|
|
334
|
-
decoder.pos += nextLen;
|
|
335
|
-
encodedString += String.fromCodePoint.apply(null, bytes);
|
|
336
|
-
remainingLen -= nextLen;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
return decodeURIComponent(escape(encodedString));
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
var _readVarStringNative = (decoder) => utf8TextDecoder.decode(readVarUint8Array(decoder));
|
|
343
|
-
var readVarString = utf8TextDecoder ? _readVarStringNative : _readVarStringPolyfill;
|
|
344
|
-
var readTerminatedUint8Array = (decoder) => {
|
|
345
|
-
const encoder = createEncoder();
|
|
346
|
-
let b;
|
|
347
|
-
while (true) {
|
|
348
|
-
b = readUint8(decoder);
|
|
349
|
-
if (b === 0) {
|
|
350
|
-
return toUint8Array(encoder);
|
|
351
|
-
}
|
|
352
|
-
if (b === 1) {
|
|
353
|
-
b = readUint8(decoder);
|
|
354
|
-
}
|
|
355
|
-
write(encoder, b);
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
var readTerminatedString = (decoder) => decodeUtf8(readTerminatedUint8Array(decoder));
|
|
359
|
-
var peekVarString = (decoder) => {
|
|
360
|
-
const pos = decoder.pos;
|
|
361
|
-
const s = readVarString(decoder);
|
|
362
|
-
decoder.pos = pos;
|
|
363
|
-
return s;
|
|
364
|
-
};
|
|
365
|
-
var readFromDataView = (decoder, len) => {
|
|
366
|
-
const dv = new DataView(decoder.arr.buffer, decoder.arr.byteOffset + decoder.pos, len);
|
|
367
|
-
decoder.pos += len;
|
|
368
|
-
return dv;
|
|
369
|
-
};
|
|
370
|
-
var readFloat32 = (decoder) => readFromDataView(decoder, 4).getFloat32(0, false);
|
|
371
|
-
var readFloat64 = (decoder) => readFromDataView(decoder, 8).getFloat64(0, false);
|
|
372
|
-
var readBigInt64 = (decoder) => readFromDataView(decoder, 8).getBigInt64(0, false);
|
|
373
|
-
var readBigUint64 = (decoder) => readFromDataView(decoder, 8).getBigUint64(0, false);
|
|
374
|
-
var readAnyLookupTable = [
|
|
375
|
-
(decoder) => {
|
|
376
|
-
return;
|
|
377
|
-
},
|
|
378
|
-
(decoder) => null,
|
|
379
|
-
readVarInt,
|
|
380
|
-
readFloat32,
|
|
381
|
-
readFloat64,
|
|
382
|
-
readBigInt64,
|
|
383
|
-
(decoder) => false,
|
|
384
|
-
(decoder) => true,
|
|
385
|
-
readVarString,
|
|
386
|
-
(decoder) => {
|
|
387
|
-
const len = readVarUint(decoder);
|
|
388
|
-
const obj = {};
|
|
389
|
-
for (let i = 0;i < len; i++) {
|
|
390
|
-
const key = readVarString(decoder);
|
|
391
|
-
obj[key] = readAny(decoder);
|
|
392
|
-
}
|
|
393
|
-
return obj;
|
|
394
|
-
},
|
|
395
|
-
(decoder) => {
|
|
396
|
-
const len = readVarUint(decoder);
|
|
397
|
-
const arr = [];
|
|
398
|
-
for (let i = 0;i < len; i++) {
|
|
399
|
-
arr.push(readAny(decoder));
|
|
400
|
-
}
|
|
401
|
-
return arr;
|
|
402
|
-
},
|
|
403
|
-
readVarUint8Array
|
|
404
|
-
];
|
|
405
|
-
var readAny = (decoder) => readAnyLookupTable[127 - readUint8(decoder)](decoder);
|
|
406
|
-
|
|
407
|
-
class RleDecoder extends Decoder {
|
|
408
|
-
constructor(uint8Array, reader) {
|
|
409
|
-
super(uint8Array);
|
|
410
|
-
this.reader = reader;
|
|
411
|
-
this.s = null;
|
|
412
|
-
this.count = 0;
|
|
413
|
-
}
|
|
414
|
-
read() {
|
|
415
|
-
if (this.count === 0) {
|
|
416
|
-
this.s = this.reader(this);
|
|
417
|
-
if (hasContent(this)) {
|
|
418
|
-
this.count = readVarUint(this) + 1;
|
|
419
|
-
} else {
|
|
420
|
-
this.count = -1;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
this.count--;
|
|
424
|
-
return this.s;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
class IntDiffDecoder extends Decoder {
|
|
429
|
-
constructor(uint8Array, start) {
|
|
430
|
-
super(uint8Array);
|
|
431
|
-
this.s = start;
|
|
432
|
-
}
|
|
433
|
-
read() {
|
|
434
|
-
this.s += readVarInt(this);
|
|
435
|
-
return this.s;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
class RleIntDiffDecoder extends Decoder {
|
|
440
|
-
constructor(uint8Array, start) {
|
|
441
|
-
super(uint8Array);
|
|
442
|
-
this.s = start;
|
|
443
|
-
this.count = 0;
|
|
444
|
-
}
|
|
445
|
-
read() {
|
|
446
|
-
if (this.count === 0) {
|
|
447
|
-
this.s += readVarInt(this);
|
|
448
|
-
if (hasContent(this)) {
|
|
449
|
-
this.count = readVarUint(this) + 1;
|
|
450
|
-
} else {
|
|
451
|
-
this.count = -1;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
this.count--;
|
|
455
|
-
return this.s;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
class UintOptRleDecoder extends Decoder {
|
|
460
|
-
constructor(uint8Array) {
|
|
461
|
-
super(uint8Array);
|
|
462
|
-
this.s = 0;
|
|
463
|
-
this.count = 0;
|
|
464
|
-
}
|
|
465
|
-
read() {
|
|
466
|
-
if (this.count === 0) {
|
|
467
|
-
this.s = readVarInt(this);
|
|
468
|
-
const isNegative = isNegativeZero(this.s);
|
|
469
|
-
this.count = 1;
|
|
470
|
-
if (isNegative) {
|
|
471
|
-
this.s = -this.s;
|
|
472
|
-
this.count = readVarUint(this) + 2;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
this.count--;
|
|
476
|
-
return this.s;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
class IncUintOptRleDecoder extends Decoder {
|
|
481
|
-
constructor(uint8Array) {
|
|
482
|
-
super(uint8Array);
|
|
483
|
-
this.s = 0;
|
|
484
|
-
this.count = 0;
|
|
485
|
-
}
|
|
486
|
-
read() {
|
|
487
|
-
if (this.count === 0) {
|
|
488
|
-
this.s = readVarInt(this);
|
|
489
|
-
const isNegative = isNegativeZero(this.s);
|
|
490
|
-
this.count = 1;
|
|
491
|
-
if (isNegative) {
|
|
492
|
-
this.s = -this.s;
|
|
493
|
-
this.count = readVarUint(this) + 2;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
this.count--;
|
|
497
|
-
return this.s++;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
class IntDiffOptRleDecoder extends Decoder {
|
|
502
|
-
constructor(uint8Array) {
|
|
503
|
-
super(uint8Array);
|
|
504
|
-
this.s = 0;
|
|
505
|
-
this.count = 0;
|
|
506
|
-
this.diff = 0;
|
|
507
|
-
}
|
|
508
|
-
read() {
|
|
509
|
-
if (this.count === 0) {
|
|
510
|
-
const diff = readVarInt(this);
|
|
511
|
-
const hasCount = diff & 1;
|
|
512
|
-
this.diff = floor(diff / 2);
|
|
513
|
-
this.count = 1;
|
|
514
|
-
if (hasCount) {
|
|
515
|
-
this.count = readVarUint(this) + 2;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
this.s += this.diff;
|
|
519
|
-
this.count--;
|
|
520
|
-
return this.s;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
class StringDecoder {
|
|
525
|
-
constructor(uint8Array) {
|
|
526
|
-
this.decoder = new UintOptRleDecoder(uint8Array);
|
|
527
|
-
this.str = readVarString(this.decoder);
|
|
528
|
-
this.spos = 0;
|
|
529
|
-
}
|
|
530
|
-
read() {
|
|
531
|
-
const end = this.spos + this.decoder.read();
|
|
532
|
-
const res = this.str.slice(this.spos, end);
|
|
533
|
-
this.spos = end;
|
|
534
|
-
return res;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
// synth:/Users/iagh/git/claude-design/plugins/design/dev-server/.runtime-bundle-lib0_decoding-entry.tsx
|
|
539
|
-
var {
|
|
540
|
-
Decoder: Decoder2,
|
|
541
|
-
IncUintOptRleDecoder: IncUintOptRleDecoder2,
|
|
542
|
-
IntDiffDecoder: IntDiffDecoder2,
|
|
543
|
-
IntDiffOptRleDecoder: IntDiffOptRleDecoder2,
|
|
544
|
-
RleDecoder: RleDecoder2,
|
|
545
|
-
RleIntDiffDecoder: RleIntDiffDecoder2,
|
|
546
|
-
StringDecoder: StringDecoder2,
|
|
547
|
-
UintOptRleDecoder: UintOptRleDecoder2,
|
|
548
|
-
_readVarStringNative: _readVarStringNative2,
|
|
549
|
-
_readVarStringPolyfill: _readVarStringPolyfill2,
|
|
550
|
-
clone: clone2,
|
|
551
|
-
createDecoder: createDecoder2,
|
|
552
|
-
hasContent: hasContent2,
|
|
553
|
-
peekUint16: peekUint162,
|
|
554
|
-
peekUint32: peekUint322,
|
|
555
|
-
peekUint8: peekUint82,
|
|
556
|
-
peekVarInt: peekVarInt2,
|
|
557
|
-
peekVarString: peekVarString2,
|
|
558
|
-
peekVarUint: peekVarUint2,
|
|
559
|
-
readAny: readAny2,
|
|
560
|
-
readBigInt64: readBigInt642,
|
|
561
|
-
readBigUint64: readBigUint642,
|
|
562
|
-
readFloat32: readFloat322,
|
|
563
|
-
readFloat64: readFloat642,
|
|
564
|
-
readFromDataView: readFromDataView2,
|
|
565
|
-
readTailAsUint8Array: readTailAsUint8Array2,
|
|
566
|
-
readTerminatedString: readTerminatedString2,
|
|
567
|
-
readTerminatedUint8Array: readTerminatedUint8Array2,
|
|
568
|
-
readUint16: readUint162,
|
|
569
|
-
readUint32: readUint322,
|
|
570
|
-
readUint32BigEndian: readUint32BigEndian2,
|
|
571
|
-
readUint8: readUint82,
|
|
572
|
-
readUint8Array: readUint8Array2,
|
|
573
|
-
readVarInt: readVarInt2,
|
|
574
|
-
readVarString: readVarString2,
|
|
575
|
-
readVarUint: readVarUint2,
|
|
576
|
-
readVarUint8Array: readVarUint8Array2,
|
|
577
|
-
skip8: skip82
|
|
578
|
-
} = exports_decoding;
|
|
579
|
-
var __runtime_bundle_lib0_decoding_entry_default = exports_decoding;
|
|
580
|
-
export {
|
|
581
|
-
skip82 as skip8,
|
|
582
|
-
readVarUint8Array2 as readVarUint8Array,
|
|
583
|
-
readVarUint2 as readVarUint,
|
|
584
|
-
readVarString2 as readVarString,
|
|
585
|
-
readVarInt2 as readVarInt,
|
|
586
|
-
readUint8Array2 as readUint8Array,
|
|
587
|
-
readUint82 as readUint8,
|
|
588
|
-
readUint32BigEndian2 as readUint32BigEndian,
|
|
589
|
-
readUint322 as readUint32,
|
|
590
|
-
readUint162 as readUint16,
|
|
591
|
-
readTerminatedUint8Array2 as readTerminatedUint8Array,
|
|
592
|
-
readTerminatedString2 as readTerminatedString,
|
|
593
|
-
readTailAsUint8Array2 as readTailAsUint8Array,
|
|
594
|
-
readFromDataView2 as readFromDataView,
|
|
595
|
-
readFloat642 as readFloat64,
|
|
596
|
-
readFloat322 as readFloat32,
|
|
597
|
-
readBigUint642 as readBigUint64,
|
|
598
|
-
readBigInt642 as readBigInt64,
|
|
599
|
-
readAny2 as readAny,
|
|
600
|
-
peekVarUint2 as peekVarUint,
|
|
601
|
-
peekVarString2 as peekVarString,
|
|
602
|
-
peekVarInt2 as peekVarInt,
|
|
603
|
-
peekUint82 as peekUint8,
|
|
604
|
-
peekUint322 as peekUint32,
|
|
605
|
-
peekUint162 as peekUint16,
|
|
606
|
-
hasContent2 as hasContent,
|
|
607
|
-
__runtime_bundle_lib0_decoding_entry_default as default,
|
|
608
|
-
createDecoder2 as createDecoder,
|
|
609
|
-
clone2 as clone,
|
|
610
|
-
_readVarStringPolyfill2 as _readVarStringPolyfill,
|
|
611
|
-
_readVarStringNative2 as _readVarStringNative,
|
|
612
|
-
UintOptRleDecoder2 as UintOptRleDecoder,
|
|
613
|
-
StringDecoder2 as StringDecoder,
|
|
614
|
-
RleIntDiffDecoder2 as RleIntDiffDecoder,
|
|
615
|
-
RleDecoder2 as RleDecoder,
|
|
616
|
-
IntDiffOptRleDecoder2 as IntDiffOptRleDecoder,
|
|
617
|
-
IntDiffDecoder2 as IntDiffDecoder,
|
|
618
|
-
IncUintOptRleDecoder2 as IncUintOptRleDecoder,
|
|
619
|
-
Decoder2 as Decoder
|
|
620
|
-
};
|