@1agh/maude 1.10.0 → 2.0.0-rc.1
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/apps/hub/src/project-transactions/baseline.mjs +276 -0
- package/apps/hub/src/project-transactions/kernel.mjs +1756 -0
- package/apps/hub/src/project-transactions/lanes.mjs +287 -0
- package/apps/hub/src/project-transactions/runs-core.mjs +639 -0
- package/apps/hub/src/project-transactions/store-core.mjs +831 -0
- package/apps/studio/access/closure.ts +1075 -0
- package/apps/studio/access/filters.ts +1193 -0
- package/apps/studio/access/frame.ts +365 -0
- package/apps/studio/access/known-canvases.ts +82 -0
- package/apps/studio/access/request.ts +637 -0
- package/apps/studio/access/roles.ts +187 -0
- package/apps/studio/access/scope.ts +407 -0
- package/apps/studio/access/share-map.ts +434 -0
- package/apps/studio/acp/adapter-stderr.ts +22 -0
- package/apps/studio/acp/agent-path.ts +39 -0
- package/apps/studio/acp/ask-queue.ts +238 -0
- package/apps/studio/acp/audience.ts +615 -0
- package/apps/studio/acp/bootstrap-brief.ts +32 -15
- package/apps/studio/acp/bridge.ts +890 -114
- package/apps/studio/acp/chat-search.ts +195 -0
- package/apps/studio/acp/connected-fact.ts +83 -0
- package/apps/studio/acp/design-write-verb.ts +71 -0
- package/apps/studio/acp/env.ts +86 -0
- package/apps/studio/acp/index.ts +775 -58
- package/apps/studio/acp/login-state.ts +15 -1
- package/apps/studio/acp/may-scope.ts +771 -0
- package/apps/studio/acp/plugin-bootstrap.ts +90 -5
- package/apps/studio/acp/probe.ts +18 -4
- package/apps/studio/acp/repo-private.ts +73 -0
- package/apps/studio/acp/running.ts +50 -5
- package/apps/studio/acp/transcript.ts +356 -21
- package/apps/studio/acp/write-scope.ts +141 -11
- package/apps/studio/actions/agents.ts +2068 -0
- package/apps/studio/actions/canvas-keys.ts +41 -0
- package/apps/studio/actions/ctx.ts +118 -0
- package/apps/studio/actions/defs/_v1.ts +55 -0
- package/apps/studio/actions/defs/ai-runs.ts +56 -0
- package/apps/studio/actions/defs/annotation.ts +164 -0
- package/apps/studio/actions/defs/app.ts +269 -0
- package/apps/studio/actions/defs/canvas.ts +281 -0
- package/apps/studio/actions/defs/chat.ts +158 -0
- package/apps/studio/actions/defs/diagnostics.ts +52 -0
- package/apps/studio/actions/defs/ds.ts +139 -0
- package/apps/studio/actions/defs/edit.ts +986 -0
- package/apps/studio/actions/defs/export.ts +221 -0
- package/apps/studio/actions/defs/history.ts +175 -0
- package/apps/studio/actions/defs/native.ts +264 -0
- package/apps/studio/actions/defs/presence.ts +53 -0
- package/apps/studio/actions/defs/search.ts +90 -0
- package/apps/studio/actions/defs/sync.ts +47 -0
- package/apps/studio/actions/defs/timeline.ts +254 -0
- package/apps/studio/actions/defs/tool.ts +152 -0
- package/apps/studio/actions/defs/ui.ts +38 -0
- package/apps/studio/actions/defs/video.ts +115 -0
- package/apps/studio/actions/defs/view.ts +556 -0
- package/apps/studio/actions/documents.ts +32 -0
- package/apps/studio/actions/forward.ts +48 -0
- package/apps/studio/actions/help.ts +115 -0
- package/apps/studio/actions/index.ts +51 -0
- package/apps/studio/actions/keymap.gen.ts +1170 -0
- package/apps/studio/actions/keys.ts +271 -0
- package/apps/studio/actions/legacy.ts +250 -0
- package/apps/studio/actions/manifest-version.ts +18 -0
- package/apps/studio/actions/menu.ts +203 -0
- package/apps/studio/actions/native-menu.ts +132 -0
- package/apps/studio/actions/resolve.ts +118 -0
- package/apps/studio/actions/types.ts +266 -0
- package/apps/studio/actions/uniqueness.ts +119 -0
- package/apps/studio/actions/verbs.ts +306 -0
- package/apps/studio/actions.manifest.json +7826 -0
- package/apps/studio/actions.parity.json +268 -0
- package/apps/studio/activity.ts +4 -31
- package/apps/studio/agent-runs.ts +676 -0
- package/apps/studio/ai/attach-grants.ts +497 -0
- package/apps/studio/ai/copy-meta.ts +204 -0
- package/apps/studio/ai/create-claim.ts +88 -0
- package/apps/studio/ai/lease-home.ts +202 -0
- package/apps/studio/ai/run-doing.ts +106 -0
- package/apps/studio/ai/run-lifecycle.ts +320 -0
- package/apps/studio/ai/run-progress.ts +154 -0
- package/apps/studio/ai/runs.ts +1180 -0
- package/apps/studio/ai/save-hold.ts +565 -0
- package/apps/studio/ai/watch-progress.ts +182 -0
- package/apps/studio/ai/write-claim-scope.ts +39 -0
- package/apps/studio/ai/write-claim.ts +193 -0
- package/apps/studio/ai-banner.tsx +8 -14
- package/apps/studio/annotations/ai-read.ts +289 -1
- package/apps/studio/annotations/ai-write.ts +281 -23
- package/apps/studio/annotations/artboard-members.ts +86 -0
- package/apps/studio/annotations/board-ops.ts +358 -0
- package/apps/studio/annotations/board-schema.ts +81 -0
- package/apps/studio/annotations/constants.ts +2 -0
- package/apps/studio/annotations/elements/_shared.ts +290 -1
- package/apps/studio/annotations/elements/arrow.model.ts +29 -2
- package/apps/studio/annotations/elements/ballot.model.ts +110 -0
- package/apps/studio/annotations/elements/media.model.ts +11 -1
- package/apps/studio/annotations/elements/section.model.ts +3 -1
- package/apps/studio/annotations/elements/stamp.model.ts +83 -0
- package/apps/studio/annotations/elements/sticky.model.ts +235 -0
- package/apps/studio/annotations/elements/vote.model.ts +71 -0
- package/apps/studio/annotations/fields.ts +51 -0
- package/apps/studio/annotations/figjam-into.ts +119 -0
- package/apps/studio/annotations/hosts.ts +231 -0
- package/apps/studio/annotations/migrate-v1.ts +21 -2
- package/apps/studio/annotations/ops.ts +23 -0
- package/apps/studio/annotations/registry.ts +154 -16
- package/apps/studio/annotations/route.ts +268 -0
- package/apps/studio/annotations/run-tag.ts +150 -0
- package/apps/studio/annotations/stamp-kinds.ts +66 -0
- package/apps/studio/annotations/templates.ts +154 -0
- package/apps/studio/annotations/text-steps.ts +253 -0
- package/apps/studio/annotations/time-marks.ts +140 -0
- package/apps/studio/annotations/types.ts +22 -0
- package/apps/studio/annotations/ui/ai-marks.tsx +64 -0
- package/apps/studio/annotations/ui/ai-seen.tsx +117 -0
- package/apps/studio/annotations/ui/arrow-bind.ts +347 -0
- package/apps/studio/annotations/ui/arrow-cards.tsx +396 -0
- package/apps/studio/annotations/ui/arrow-kinds.ts +90 -0
- package/apps/studio/annotations/ui/bar-place.ts +18 -0
- package/apps/studio/annotations/ui/element-node.tsx +300 -52
- package/apps/studio/annotations/ui/host-view.ts +99 -0
- package/apps/studio/annotations/ui/locked.tsx +83 -0
- package/apps/studio/annotations/ui/lod.tsx +246 -0
- package/apps/studio/annotations/ui/placement.tsx +270 -0
- package/apps/studio/annotations/ui/pointer-pipeline.ts +10 -0
- package/apps/studio/annotations/ui/posture.ts +124 -0
- package/apps/studio/annotations/ui/quiet-tip.ts +28 -0
- package/apps/studio/annotations/ui/render-model.ts +27 -2
- package/apps/studio/annotations/ui/rest-route.ts +152 -0
- package/apps/studio/annotations/ui/ride.ts +957 -0
- package/apps/studio/annotations/ui/scene.tsx +59 -11
- package/apps/studio/annotations/ui/section-fold.ts +95 -0
- package/apps/studio/annotations/ui/shell-asks.ts +62 -0
- package/apps/studio/annotations/ui/stamps.ts +221 -0
- package/apps/studio/annotations/ui/stamps.tsx +272 -0
- package/apps/studio/annotations/ui/sticker-drop.ts +147 -0
- package/apps/studio/annotations/ui/sticker-preview.ts +41 -0
- package/apps/studio/annotations/ui/sticky-resolve.ts +106 -0
- package/apps/studio/annotations/ui/template-place.ts +108 -0
- package/apps/studio/annotations/ui/text-editor.tsx +6 -4
- package/apps/studio/annotations/ui/text-session.ts +63 -1
- package/apps/studio/annotations/ui/text-style.ts +11 -3
- package/apps/studio/annotations/ui/time-pins.tsx +134 -0
- package/apps/studio/annotations/ui/tool-prefs.ts +242 -0
- package/apps/studio/annotations/ui/tool-state.ts +211 -0
- package/apps/studio/annotations/ui/visibility.ts +76 -0
- package/apps/studio/annotations/ui/vote-dots.tsx +283 -0
- package/apps/studio/annotations/v1-adapter.ts +88 -5
- package/apps/studio/annotations/validate-board.ts +257 -0
- package/apps/studio/annotations/vote-guard.ts +48 -0
- package/apps/studio/annotations/votes-local.ts +481 -0
- package/apps/studio/annotations-bindings.ts +54 -8
- package/apps/studio/annotations-context-toolbar.tsx +612 -150
- package/apps/studio/annotations-layer.tsx +1768 -674
- package/apps/studio/annotations-model.ts +80 -5
- package/apps/studio/api.ts +1522 -454
- package/apps/studio/artboard-activity-overlay.tsx +530 -3
- package/apps/studio/artboard-ai-copies.tsx +187 -0
- package/apps/studio/artboard-convert-marks.tsx +142 -0
- package/apps/studio/artboard-gap-mark.tsx +177 -0
- package/apps/studio/artboard-ghosts-overlay.tsx +106 -0
- package/apps/studio/artboard-growth-memory.ts +56 -0
- package/apps/studio/artboard-growth-tag.tsx +115 -0
- package/apps/studio/artboard-guides-overlay.tsx +86 -26
- package/apps/studio/artboard-marquee.tsx +21 -6
- package/apps/studio/artboard-new-section.tsx +188 -0
- package/apps/studio/artboard-warn-mark.tsx +330 -0
- package/apps/studio/asset-details.ts +339 -0
- package/apps/studio/asset-generated.ts +99 -0
- package/apps/studio/asset-origins.ts +147 -0
- package/apps/studio/asset-placeholder.tsx +481 -0
- package/apps/studio/asset-rename.ts +171 -0
- package/apps/studio/asset-trash.ts +176 -0
- package/apps/studio/asset-upload-bars.tsx +167 -0
- package/apps/studio/asset-upload.ts +145 -1
- package/apps/studio/attribute-artboards.ts +327 -0
- package/apps/studio/bin/_ab-headless.sh +35 -0
- package/apps/studio/bin/_ab-park.sh +83 -0
- package/apps/studio/bin/_agent-browser-safe.mjs +36 -3
- package/apps/studio/bin/_annotate-post.mjs +137 -0
- package/apps/studio/bin/_assets.mjs +213 -0
- package/apps/studio/bin/_brand-colours.mjs +189 -0
- package/apps/studio/bin/_brand-fonts.mjs +158 -0
- package/apps/studio/bin/_brand-site.mjs +309 -0
- package/apps/studio/bin/_canvas-errors.mjs +143 -0
- package/apps/studio/bin/_canvas-rects-playwright.mjs +6 -3
- package/apps/studio/bin/_canvas-rects-static.mjs +1 -1
- package/apps/studio/bin/_check.mjs +122 -0
- package/apps/studio/bin/_comments.mjs +274 -0
- package/apps/studio/bin/_curl-local.mjs +122 -3
- package/apps/studio/bin/_decode-webaudio.mjs +120 -0
- package/apps/studio/bin/_describe.mjs +220 -0
- package/apps/studio/bin/_ds-check.mjs +26 -0
- package/apps/studio/bin/_ds-prove-playwright.mjs +327 -0
- package/apps/studio/bin/_ds-upgrade.mjs +14 -0
- package/apps/studio/bin/_ds.mjs +82 -0
- package/apps/studio/bin/_enumerate-artboards-playwright.mjs +6 -3
- package/apps/studio/bin/_exports.mjs +244 -0
- package/apps/studio/bin/_fetch-asset.mjs +209 -15
- package/apps/studio/bin/_history.mjs +509 -0
- package/apps/studio/bin/_html-playwright.mjs +10 -3
- package/apps/studio/bin/_import-asset.mjs +446 -15
- package/apps/studio/bin/_import-brand.mjs +40 -156
- package/apps/studio/bin/_import-figma.mjs +878 -20
- package/apps/studio/bin/_import-tokens.mjs +8 -118
- package/apps/studio/bin/_index-cli.mjs +126 -0
- package/apps/studio/bin/_layout-check.mjs +35 -0
- package/apps/studio/bin/_logs.mjs +130 -0
- package/apps/studio/bin/_motion-sample-playwright.mjs +6 -3
- package/apps/studio/bin/_no-egress.sh +36 -0
- package/apps/studio/bin/_pdf-playwright.mjs +9 -3
- package/apps/studio/bin/_perf-probe-safari.mjs +327 -37
- package/apps/studio/bin/_perf-probe-studio.mjs +259 -0
- package/apps/studio/bin/_perf-probe.mjs +35 -1
- package/apps/studio/bin/_perf-shared.mjs +377 -12
- package/apps/studio/bin/_place.mjs +35 -0
- package/apps/studio/bin/_png-playwright.mjs +27 -7
- package/apps/studio/bin/_pptx-playwright.mjs +4 -3
- package/apps/studio/bin/_pw-launch.mjs +124 -2
- package/apps/studio/bin/_record-shot.sh +65 -0
- package/apps/studio/bin/_rects-input.mjs +69 -0
- package/apps/studio/bin/_reel-place.mjs +160 -0
- package/apps/studio/bin/_region.mjs +37 -1
- package/apps/studio/bin/_runs.mjs +178 -0
- package/apps/studio/bin/_screenshot-playwright.mjs +6 -3
- package/apps/studio/bin/_studio-verb.mjs +220 -0
- package/apps/studio/bin/_svg-playwright.mjs +4 -3
- package/apps/studio/bin/_sync.mjs +179 -0
- package/apps/studio/bin/_thumbs-playwright.mjs +704 -0
- package/apps/studio/bin/_tile-draw.mjs +74 -0
- package/apps/studio/bin/_transcribe-local.mjs +243 -0
- package/apps/studio/bin/_transcribe.mjs +48 -56
- package/apps/studio/bin/_trash.mjs +287 -0
- package/apps/studio/bin/_url-guard.mjs +88 -0
- package/apps/studio/bin/_url-guard.sh +16 -0
- package/apps/studio/bin/_video-playwright.mjs +9 -3
- package/apps/studio/bin/_video-verbs.mjs +403 -0
- package/apps/studio/bin/_write-claim.mjs +124 -0
- package/apps/studio/bin/annotate.mjs +348 -330
- package/apps/studio/bin/assets.sh +28 -0
- package/apps/studio/bin/beats.mjs +237 -0
- package/apps/studio/bin/beats.sh +24 -0
- package/apps/studio/bin/bootstrap-check.sh +2 -1
- package/apps/studio/bin/canvas-edit.sh +17 -9
- package/apps/studio/bin/canvas-errors.sh +18 -0
- package/apps/studio/bin/canvas-rects.sh +14 -0
- package/apps/studio/bin/canvas-source.sh +18 -0
- package/apps/studio/bin/captions.sh +13 -0
- package/apps/studio/bin/chat-open.sh +2 -2
- package/apps/studio/bin/check.sh +27 -0
- package/apps/studio/bin/comments.sh +20 -0
- package/apps/studio/bin/cut-to-beat.sh +13 -0
- package/apps/studio/bin/cut-words.sh +13 -0
- package/apps/studio/bin/describe.sh +28 -0
- package/apps/studio/bin/draw-proof.sh +41 -8
- package/apps/studio/bin/ds-check.sh +30 -0
- package/apps/studio/bin/ds-upgrade.sh +30 -0
- package/apps/studio/bin/ds.sh +29 -0
- package/apps/studio/bin/exports.sh +19 -0
- package/apps/studio/bin/generate.sh +45 -3
- package/apps/studio/bin/handoff.sh +60 -1
- package/apps/studio/bin/history.sh +24 -0
- package/apps/studio/bin/import-brand.sh +5 -3
- package/apps/studio/bin/index.sh +26 -0
- package/apps/studio/bin/layout-check.sh +20 -0
- package/apps/studio/bin/logs.sh +17 -0
- package/apps/studio/bin/perf.sh +93 -3
- package/apps/studio/bin/photo-bg-remove.sh +49 -7
- package/apps/studio/bin/place.sh +20 -0
- package/apps/studio/bin/read-annotations.mjs +52 -1
- package/apps/studio/bin/reel-place.sh +15 -0
- package/apps/studio/bin/runs.sh +19 -0
- package/apps/studio/bin/screenshot.sh +37 -21
- package/apps/studio/bin/server-up.sh +50 -13
- package/apps/studio/bin/smoke.sh +10 -0
- package/apps/studio/bin/sync.sh +18 -0
- package/apps/studio/bin/to-lottie.sh +1 -1
- package/apps/studio/bin/transcribe-local.sh +27 -0
- package/apps/studio/bin/trash.sh +23 -0
- package/apps/studio/bin/visual-sanity.sh +1 -0
- package/apps/studio/bridge/canvas-mode-store.ts +301 -0
- package/apps/studio/bridge/canvas-modes.ts +548 -0
- package/apps/studio/bridge/dgn-protocol.ts +2671 -0
- package/apps/studio/bridge/esc-ladder.ts +98 -0
- package/apps/studio/bridge/link-target.ts +157 -0
- package/apps/studio/bridge/mode-shows.ts +167 -0
- package/apps/studio/bridge/occlusion.ts +108 -0
- package/apps/studio/bridge/paste-data.ts +101 -0
- package/apps/studio/build.ts +12 -1
- package/apps/studio/bunfig.toml +4 -0
- package/apps/studio/canvas-build-sandbox.ts +34 -5
- package/apps/studio/canvas-build-worker.ts +23 -1
- package/apps/studio/canvas-build.ts +419 -15
- package/apps/studio/canvas-comment-mount.tsx +113 -25
- package/apps/studio/canvas-create.ts +285 -49
- package/apps/studio/canvas-cursors.ts +12 -0
- package/apps/studio/canvas-ds-icons.tsx +241 -0
- package/apps/studio/canvas-edit.ts +1188 -172
- package/apps/studio/canvas-hud-tokens.gen.ts +120 -0
- package/apps/studio/canvas-icons.tsx +47 -0
- package/apps/studio/canvas-lib-inline.ts +57 -3
- package/apps/studio/canvas-lib.tsx +1033 -263
- package/apps/studio/canvas-list-watch.ts +73 -2
- package/apps/studio/canvas-meta.schema.json +11 -0
- package/apps/studio/canvas-notifications.tsx +28 -3
- package/apps/studio/canvas-pipeline.ts +43 -8
- package/apps/studio/canvas-replay-keys.ts +65 -0
- package/apps/studio/canvas-rows.ts +116 -0
- package/apps/studio/canvas-shell.tsx +784 -698
- package/apps/studio/canvas-source/errors.ts +315 -0
- package/apps/studio/canvas-source/source-map.ts +69 -0
- package/apps/studio/canvas-theme-pill.tsx +164 -0
- package/apps/studio/canvas-theme.ts +133 -0
- package/apps/studio/canvas-top-level.ts +69 -0
- package/apps/studio/check/ids.ts +28 -0
- package/apps/studio/check/index.ts +586 -0
- package/apps/studio/check/link-resolver.ts +75 -0
- package/apps/studio/check/meta.ts +79 -0
- package/apps/studio/check/video.ts +352 -0
- package/apps/studio/client/actions/shell-key-handlers.js +450 -0
- package/apps/studio/client/app.jsx +2914 -1203
- package/apps/studio/client/canvas-url.js +241 -5
- package/apps/studio/client/clipboard-relay.ts +144 -0
- package/apps/studio/client/command-palette-match.js +4 -2
- package/apps/studio/client/comments-overlay.css +529 -144
- package/apps/studio/client/dialogs/asset-picker.jsx +77 -32
- package/apps/studio/client/dialogs/command-palette.jsx +453 -67
- package/apps/studio/client/dialogs/export-dialog.jsx +6 -781
- package/apps/studio/client/dialogs/help-modal.jsx +31 -2
- package/apps/studio/client/dialogs/shortcuts-overlay.jsx +201 -106
- package/apps/studio/client/edit-op-relay.ts +77 -0
- package/apps/studio/client/embed-view.jsx +25 -5
- package/apps/studio/client/export-bridge-scope.js +72 -0
- package/apps/studio/client/export-center.jsx +179 -369
- package/apps/studio/client/export-lane.js +117 -0
- package/apps/studio/client/export-region.ts +25 -0
- package/apps/studio/client/file-tree.jsx +4 -4
- package/apps/studio/client/frame-cap.js +132 -0
- package/apps/studio/client/generate-dialog.jsx +38 -36
- package/apps/studio/client/github.js +85 -26
- package/apps/studio/client/home/HomeAsk.jsx +220 -0
- package/apps/studio/client/home/InviteSheet.jsx +150 -0
- package/apps/studio/client/home/Shelves.jsx +216 -0
- package/apps/studio/client/home/Starters.jsx +42 -0
- package/apps/studio/client/home/TargetChip.jsx +152 -0
- package/apps/studio/client/home/home-api.js +275 -0
- package/apps/studio/client/home/home-app.jsx +1884 -0
- package/apps/studio/client/home/home-icons.jsx +143 -0
- package/apps/studio/client/home/home-menu.js +43 -0
- package/apps/studio/client/home/home-model.js +514 -0
- package/apps/studio/client/home/home-starters.js +136 -0
- package/apps/studio/client/home/home.css +1681 -0
- package/apps/studio/client/home/invite-flow.js +422 -0
- package/apps/studio/client/home/shell-mode.js +49 -0
- package/apps/studio/client/hooks/annotations-hidden-toast.js +21 -0
- package/apps/studio/client/hooks/canvas-origin-probe.js +26 -0
- package/apps/studio/client/hooks/edit-scope-query.js +16 -0
- package/apps/studio/client/hooks/use-action-keys.jsx +121 -0
- package/apps/studio/client/hooks/use-canvas-bridge.jsx +881 -247
- package/apps/studio/client/hooks/use-git-actions.jsx +33 -12
- package/apps/studio/client/hooks/use-palette-and-panels.jsx +722 -287
- package/apps/studio/client/hooks/use-photo-and-timeline.jsx +268 -307
- package/apps/studio/client/hooks/use-project-data.jsx +23 -2
- package/apps/studio/client/hooks/use-shell-core.jsx +582 -126
- package/apps/studio/client/hooks/use-tabs.jsx +268 -126
- package/apps/studio/client/index-loader.ts +3 -1
- package/apps/studio/client/inspector/color-picker.jsx +29 -18
- package/apps/studio/client/inspector/css-knobs.jsx +765 -436
- package/apps/studio/client/inspector/css-vocab.jsx +37 -4
- package/apps/studio/client/inspector/ds-tokens.js +127 -15
- package/apps/studio/client/inspector/grid-tracks-editor.jsx +21 -15
- package/apps/studio/client/inspector/inspect-computed.jsx +17 -15
- package/apps/studio/client/inspector/inspector-panel.jsx +314 -207
- package/apps/studio/client/inspector/layers.jsx +90 -65
- package/apps/studio/client/inspector/selection.js +20 -0
- package/apps/studio/client/inspector/token-popover.jsx +42 -28
- package/apps/studio/client/inspector-controls.jsx +453 -106
- package/apps/studio/client/panels/BrandUploadPanel.jsx +8 -229
- package/apps/studio/client/panels/ChatPanel.jsx +391 -1674
- package/apps/studio/client/panels/CloudBar.jsx +548 -252
- package/apps/studio/client/panels/CollabModelInfographic.jsx +77 -20
- package/apps/studio/client/panels/CreateProject.jsx +224 -40
- package/apps/studio/client/panels/DiffView.jsx +27 -10
- package/apps/studio/client/panels/ElicitationPrompt.jsx +4 -3
- package/apps/studio/client/panels/FigmaImportPanel.jsx +12 -263
- package/apps/studio/client/panels/IdentityBar.jsx +262 -74
- package/apps/studio/client/panels/IntroVideoDialog.jsx +6 -1
- package/apps/studio/client/panels/PermissionPrompt.jsx +85 -9
- package/apps/studio/client/panels/ReadinessList.jsx +71 -46
- package/apps/studio/client/panels/RepoBranchSwitcher.jsx +124 -745
- package/apps/studio/client/panels/SettingsPanel.jsx +492 -608
- package/apps/studio/client/panels/SetupChecklist.jsx +10 -3
- package/apps/studio/client/panels/SourceConflictPanel.jsx +96 -20
- package/apps/studio/client/panels/SyncConsentDialog.jsx +14 -13
- package/apps/studio/client/panels/TeamProjects.jsx +365 -119
- package/apps/studio/client/panels/ToolGroup.jsx +6 -2
- package/apps/studio/client/panels/acp-runtime.js +127 -22
- package/apps/studio/client/panels/acp-usage.js +4 -1
- package/apps/studio/client/panels/chat-context.js +74 -5
- package/apps/studio/client/panels/chat-header.jsx +67 -0
- package/apps/studio/client/panels/chat-markdown.jsx +6 -2
- package/apps/studio/client/panels/file-deep-link-dialog.jsx +88 -17
- package/apps/studio/client/panels/file-preview.jsx +50 -24
- package/apps/studio/client/panels/git-grouping.js +9 -2
- package/apps/studio/client/panels/slash-commands.gen.js +171 -0
- package/apps/studio/client/panels/slash-commands.js +65 -25
- package/apps/studio/client/panels/timeline-media-cache.js +68 -2
- package/apps/studio/client/panels/timeline-parse.js +62 -22
- package/apps/studio/client/panels/timeline-snap.js +4 -1
- package/apps/studio/client/panels/transcript-view.js +9 -0
- package/apps/studio/client/photo-knobs.jsx +225 -46
- package/apps/studio/client/prefs-migrate.js +79 -0
- package/apps/studio/client/report-bug.jsx +59 -26
- package/apps/studio/client/selection-scope.js +215 -0
- package/apps/studio/client/share-link.js +104 -8
- package/apps/studio/client/shell/account-tone.js +28 -0
- package/apps/studio/client/shell/banners.jsx +21 -188
- package/apps/studio/client/shell/comments-panel.jsx +5 -176
- package/apps/studio/client/shell/constants.js +1 -0
- package/apps/studio/client/shell/dock.jsx +217 -31
- package/apps/studio/client/shell/drop-guard.js +52 -0
- package/apps/studio/client/shell/icons.jsx +165 -23
- package/apps/studio/client/shell/util.js +20 -33
- package/apps/studio/client/shell/viewport.jsx +249 -95
- package/apps/studio/client/shell-bus.js +82 -0
- package/apps/studio/client/shell-events.js +251 -0
- package/apps/studio/client/stamp-follow.js +62 -0
- package/apps/studio/client/stores/shell-store.jsx +15 -0
- package/apps/studio/client/styles/0-reset.css +79 -16
- package/apps/studio/client/styles/1-tokens-maude-v2.css +367 -0
- package/apps/studio/client/styles/1-tokens-shell.css +374 -0
- package/apps/studio/client/styles/2-layout.css +404 -24
- package/apps/studio/client/styles/3-kit-maude-v2.css +683 -0
- package/apps/studio/client/styles/_index.css +183 -18
- package/apps/studio/client/system/system-view.jsx +52 -6
- package/apps/studio/client/tour/collab-tour.js +43 -38
- package/apps/studio/client/tour/overlay.jsx +61 -19
- package/apps/studio/client/tour/quick-setup-tour.js +27 -20
- package/apps/studio/client/tour/tour-model.js +36 -0
- package/apps/studio/client/tour/usage-tour.js +43 -24
- package/apps/studio/client/tree/tree.jsx +661 -409
- package/apps/studio/client/tree-expansion.js +5 -2
- package/apps/studio/client/tree-row-menu.jsx +43 -29
- package/apps/studio/client/ui-open.js +104 -0
- package/apps/studio/client/use-tree-drag.js +2 -0
- package/apps/studio/client/v2/access/access-card.jsx +54 -0
- package/apps/studio/client/v2/access/access-client.js +525 -0
- package/apps/studio/client/v2/access/access-host.jsx +328 -0
- package/apps/studio/client/v2/access/access.css +163 -0
- package/apps/studio/client/v2/access/ask-to-edit.jsx +97 -0
- package/apps/studio/client/v2/access/disabled-reason.js +50 -0
- package/apps/studio/client/v2/access/link-off-card.jsx +37 -0
- package/apps/studio/client/v2/access/trashed-banner.jsx +123 -0
- package/apps/studio/client/v2/advanced/where-matrix.js +231 -0
- package/apps/studio/client/v2/ai/AChip.jsx +158 -0
- package/apps/studio/client/v2/ai/Advanced.jsx +640 -0
- package/apps/studio/client/v2/ai/AiChatIsland.jsx +108 -0
- package/apps/studio/client/v2/ai/AskSelectionHost.jsx +173 -0
- package/apps/studio/client/v2/ai/AttachMenu.jsx +190 -0
- package/apps/studio/client/v2/ai/BigChat.jsx +195 -0
- package/apps/studio/client/v2/ai/ChatList.jsx +614 -0
- package/apps/studio/client/v2/ai/ChatUndo.jsx +164 -0
- package/apps/studio/client/v2/ai/ChoiceCard.jsx +178 -0
- package/apps/studio/client/v2/ai/Composer.jsx +655 -0
- package/apps/studio/client/v2/ai/ConnectSheet.jsx +118 -0
- package/apps/studio/client/v2/ai/Consent.jsx +66 -0
- package/apps/studio/client/v2/ai/DropOverlay.jsx +113 -0
- package/apps/studio/client/v2/ai/Feed.jsx +589 -0
- package/apps/studio/client/v2/ai/FoldNeeds.jsx +23 -0
- package/apps/studio/client/v2/ai/NeedsYouSlot.jsx +250 -0
- package/apps/studio/client/v2/ai/NotReady.jsx +110 -0
- package/apps/studio/client/v2/ai/OfferCard.jsx +165 -0
- package/apps/studio/client/v2/ai/PermissionCard.jsx +168 -0
- package/apps/studio/client/v2/ai/PickedShots.jsx +33 -0
- package/apps/studio/client/v2/ai/ProblemCard.jsx +41 -0
- package/apps/studio/client/v2/ai/QuitDialog.jsx +127 -0
- package/apps/studio/client/v2/ai/RawLog.jsx +68 -0
- package/apps/studio/client/v2/ai/Result.jsx +144 -0
- package/apps/studio/client/v2/ai/RunList.jsx +352 -0
- package/apps/studio/client/v2/ai/RunSurface.jsx +248 -0
- package/apps/studio/client/v2/ai/ScopeChip.jsx +239 -0
- package/apps/studio/client/v2/ai/SentStrip.jsx +70 -0
- package/apps/studio/client/v2/ai/StoppedDivider.jsx +84 -0
- package/apps/studio/client/v2/ai/Suggest.jsx +153 -0
- package/apps/studio/client/v2/ai/TurnResult.jsx +95 -0
- package/apps/studio/client/v2/ai/WaitingCard.jsx +133 -0
- package/apps/studio/client/v2/ai/WillChange.jsx +40 -0
- package/apps/studio/client/v2/ai/Working.jsx +74 -0
- package/apps/studio/client/v2/ai/advanced-handlers.js +56 -0
- package/apps/studio/client/v2/ai/advanced-model.js +214 -0
- package/apps/studio/client/v2/ai/ai-list-advanced.css +625 -0
- package/apps/studio/client/v2/ai/ai-may.js +75 -0
- package/apps/studio/client/v2/ai/ai-offer.js +178 -0
- package/apps/studio/client/v2/ai/ai-run.css +281 -0
- package/apps/studio/client/v2/ai/ai-send.js +164 -0
- package/apps/studio/client/v2/ai/ai.css +261 -0
- package/apps/studio/client/v2/ai/answer-note.js +44 -0
- package/apps/studio/client/v2/ai/ask-frame.js +131 -0
- package/apps/studio/client/v2/ai/ask-selection-lane.js +100 -0
- package/apps/studio/client/v2/ai/ask-selection.css +142 -0
- package/apps/studio/client/v2/ai/ask-selection.js +84 -0
- package/apps/studio/client/v2/ai/attach.css +366 -0
- package/apps/studio/client/v2/ai/attach.js +186 -0
- package/apps/studio/client/v2/ai/chat-list-model.js +333 -0
- package/apps/studio/client/v2/ai/chat-store-api.js +93 -0
- package/apps/studio/client/{styles/6-acp-chat.css → v2/ai/chat.css} +1152 -797
- package/apps/studio/client/v2/ai/connect-flow.js +75 -0
- package/apps/studio/client/v2/ai/gate-lines.js +121 -0
- package/apps/studio/client/v2/ai/icons.jsx +66 -0
- package/apps/studio/client/v2/ai/jump-model.js +61 -0
- package/apps/studio/client/v2/ai/made-by-ai.js +179 -0
- package/apps/studio/client/v2/ai/needs-you-store.js +112 -0
- package/apps/studio/client/v2/ai/needs-you-toast.js +104 -0
- package/apps/studio/client/v2/ai/needs-you.css +554 -0
- package/apps/studio/client/v2/ai/needs-you.js +391 -0
- package/apps/studio/client/v2/ai/panel-focus.js +71 -0
- package/apps/studio/client/v2/ai/panel.css +88 -0
- package/apps/studio/client/v2/ai/paste-chips.jsx +108 -0
- package/apps/studio/client/v2/ai/picked-shots.js +48 -0
- package/apps/studio/client/v2/ai/quit.css +64 -0
- package/apps/studio/client/v2/ai/result-shown.js +50 -0
- package/apps/studio/client/v2/ai/ring-relay.js +143 -0
- package/apps/studio/client/v2/ai/row-slots-lane.js +67 -0
- package/apps/studio/client/v2/ai/run-api.js +137 -0
- package/apps/studio/client/v2/ai/run-cards.js +31 -0
- package/apps/studio/client/v2/ai/run-compare.js +60 -0
- package/apps/studio/client/v2/ai/run-icons.jsx +53 -0
- package/apps/studio/client/v2/ai/run-model.js +348 -0
- package/apps/studio/client/v2/ai/runs-model.js +568 -0
- package/apps/studio/client/v2/ai/runs-store.js +161 -0
- package/apps/studio/client/v2/ai/runs.css +226 -0
- package/apps/studio/client/v2/ai/scope.js +298 -0
- package/apps/studio/client/v2/ai/seen-relay.js +95 -0
- package/apps/studio/client/v2/ai/sent-attachments.js +77 -0
- package/apps/studio/client/v2/ai/stopped.js +69 -0
- package/apps/studio/client/v2/ai/suggest-why.js +200 -0
- package/apps/studio/client/v2/ai/use-ai-scope.js +198 -0
- package/apps/studio/client/v2/ai/use-ask-ai.js +63 -0
- package/apps/studio/client/v2/ai/use-ask-selection.js +41 -0
- package/apps/studio/client/v2/ai/use-attachments.js +239 -0
- package/apps/studio/client/v2/ai/use-chat-runs.js +32 -0
- package/apps/studio/client/v2/ai/use-run-versions.js +39 -0
- package/apps/studio/client/v2/ai/video/ClipsAttached.jsx +23 -0
- package/apps/studio/client/v2/ai/video/LeftOut.jsx +29 -0
- package/apps/studio/client/v2/ai/video/WatchProgress.jsx +65 -0
- package/apps/studio/client/v2/ai/video/card-model.js +107 -0
- package/apps/studio/client/v2/ai/video/cards.jsx +51 -0
- package/apps/studio/client/v2/ai/video/clip-pic.js +12 -0
- package/apps/studio/client/v2/ai/video/video-cards.css +168 -0
- package/apps/studio/client/v2/annotations/annotation-asks.js +171 -0
- package/apps/studio/client/v2/annotations/annotation-list-model.js +238 -0
- package/apps/studio/client/v2/annotations/annotation-list.css +277 -0
- package/apps/studio/client/v2/annotations/annotation-list.jsx +433 -0
- package/apps/studio/client/v2/annotations/recent-stickers.js +64 -0
- package/apps/studio/client/v2/annotations/stamp-row.jsx +66 -0
- package/apps/studio/client/v2/annotations/stamps-glyphs.jsx +35 -0
- package/apps/studio/client/v2/annotations/sticker-preload.js +44 -0
- package/apps/studio/client/v2/annotations/sticker-search.js +155 -0
- package/apps/studio/client/v2/annotations/stickers-gallery.css +295 -0
- package/apps/studio/client/v2/annotations/stickers-gallery.jsx +454 -0
- package/apps/studio/client/v2/annotations/templates-panel.css +344 -0
- package/apps/studio/client/v2/annotations/templates-panel.jsx +240 -0
- package/apps/studio/client/v2/annotations/v2-scope.js +20 -0
- package/apps/studio/client/v2/annotations/vote-bar.jsx +212 -0
- package/apps/studio/client/v2/annotations/vote-sheet.jsx +200 -0
- package/apps/studio/client/v2/annotations/vote-store.js +392 -0
- package/apps/studio/client/v2/annotations/vote.css +153 -0
- package/apps/studio/client/v2/assets/ask-once.js +65 -0
- package/apps/studio/client/v2/assets/asset-drop-session.js +238 -0
- package/apps/studio/client/v2/assets/asset-state-lane.js +267 -0
- package/apps/studio/client/v2/assets/assets-bus.js +109 -0
- package/apps/studio/client/v2/assets/browse-model.js +90 -0
- package/apps/studio/client/v2/assets/browse-view.jsx +202 -0
- package/apps/studio/client/v2/assets/canvas-drop-catcher.jsx +114 -0
- package/apps/studio/client/v2/assets/connect-key-sheet.jsx +69 -0
- package/apps/studio/client/v2/assets/copy-asset.js +37 -0
- package/apps/studio/client/v2/assets/describe-client.js +156 -0
- package/apps/studio/client/v2/assets/describe-consent.jsx +184 -0
- package/apps/studio/client/v2/assets/describe.css +72 -0
- package/apps/studio/client/v2/assets/details-advanced.jsx +76 -0
- package/apps/studio/client/v2/assets/details-model.js +233 -0
- package/apps/studio/client/v2/assets/details.jsx +292 -0
- package/apps/studio/client/v2/assets/generate-ask.jsx +506 -0
- package/apps/studio/client/v2/assets/generated.js +83 -0
- package/apps/studio/client/v2/assets/import-lines.js +228 -0
- package/apps/studio/client/v2/assets/import-offline.js +32 -0
- package/apps/studio/client/v2/assets/import-toast.js +56 -0
- package/apps/studio/client/v2/assets/just-added.js +32 -0
- package/apps/studio/client/v2/assets/kinds-chip.jsx +77 -0
- package/apps/studio/client/v2/assets/library-foot.js +42 -0
- package/apps/studio/client/v2/assets/missing-frame.css +60 -0
- package/apps/studio/client/v2/assets/missing-frame.jsx +218 -0
- package/apps/studio/client/v2/assets/multi-select.js +58 -0
- package/apps/studio/client/v2/assets/place-asset.js +128 -0
- package/apps/studio/client/v2/assets/relink.js +96 -0
- package/apps/studio/client/v2/assets/rename-asset.js +83 -0
- package/apps/studio/client/v2/assets/search-marks.jsx +75 -0
- package/apps/studio/client/v2/assets/takes-overlay.jsx +86 -0
- package/apps/studio/client/v2/assets/takes.css +177 -0
- package/apps/studio/client/v2/assets/takes.js +224 -0
- package/apps/studio/client/v2/assets/tidy.jsx +144 -0
- package/apps/studio/client/v2/assets/tile-drag.js +53 -0
- package/apps/studio/client/v2/assets/tile-menu.jsx +119 -0
- package/apps/studio/client/v2/assets/tile.jsx +131 -0
- package/apps/studio/client/v2/assets/trash-assets.js +98 -0
- package/apps/studio/client/v2/assets/use-asset-details.js +58 -0
- package/apps/studio/client/v2/assets/use-assets.js +121 -0
- package/apps/studio/client/v2/assets/use-takes-lane.js +150 -0
- package/apps/studio/client/v2/canvases/canvas-icons.jsx +107 -0
- package/apps/studio/client/v2/canvases/canvases-panel.jsx +1466 -0
- package/apps/studio/client/v2/canvases/canvases.css +699 -0
- package/apps/studio/client/v2/canvases/covers.js +32 -0
- package/apps/studio/client/v2/canvases/inline-rename.jsx +122 -0
- package/apps/studio/client/v2/canvases/jump-list.jsx +100 -0
- package/apps/studio/client/v2/canvases/jump-model.js +102 -0
- package/apps/studio/client/v2/canvases/kept-on-this-mac.jsx +192 -0
- package/apps/studio/client/v2/canvases/last-canvas.js +36 -0
- package/apps/studio/client/v2/canvases/move-model.js +45 -0
- package/apps/studio/client/v2/canvases/move-sheet.jsx +91 -0
- package/apps/studio/client/v2/canvases/open-link.js +154 -0
- package/apps/studio/client/v2/canvases/panel-search.js +156 -0
- package/apps/studio/client/v2/canvases/rename-model.js +134 -0
- package/apps/studio/client/v2/canvases/row-menu.jsx +145 -0
- package/apps/studio/client/v2/canvases/row-slots.js +224 -0
- package/apps/studio/client/v2/canvases/sort.js +132 -0
- package/apps/studio/client/v2/canvases/support-model.js +68 -0
- package/apps/studio/client/v2/canvases/trash-canvas.js +120 -0
- package/apps/studio/client/v2/canvases/tree-model.js +760 -0
- package/apps/studio/client/v2/canvases/use-canvas-index.js +50 -0
- package/apps/studio/client/v2/canvases/use-canvases-sort.js +59 -0
- package/apps/studio/client/v2/canvases/use-move.js +61 -0
- package/apps/studio/client/v2/canvases/use-pins.js +80 -0
- package/apps/studio/client/v2/cloud/browser-door.js +152 -0
- package/apps/studio/client/v2/cloud/cloud-name.js +38 -0
- package/apps/studio/client/v2/code/canvas-error-card.jsx +407 -0
- package/apps/studio/client/v2/code/canvas-imports-card.jsx +31 -0
- package/apps/studio/client/v2/code/code-bus.js +63 -0
- package/apps/studio/client/v2/code/code-view.jsx +277 -0
- package/apps/studio/client/v2/code/code.css +373 -0
- package/apps/studio/client/v2/code/highlight.js +163 -0
- package/apps/studio/client/v2/code/use-canvas-source.js +338 -0
- package/apps/studio/client/v2/comments/comment-bridge.js +154 -0
- package/apps/studio/client/v2/comments/comment-client.js +84 -0
- package/apps/studio/client/v2/comments/comment-tool.js +18 -0
- package/apps/studio/client/v2/comments/comments-model.js +213 -0
- package/apps/studio/client/v2/comments/comments-panel.jsx +400 -0
- package/apps/studio/client/v2/comments/comments.css +305 -0
- package/apps/studio/client/v2/comments/mention-callouts.jsx +90 -0
- package/apps/studio/client/v2/comments/mention-model.js +118 -0
- package/apps/studio/client/v2/comments/native-mention-notice.js +73 -0
- package/apps/studio/client/v2/comments/reply-focus.js +30 -0
- package/apps/studio/client/v2/comments/use-comments-shell.jsx +176 -0
- package/apps/studio/client/v2/create/NameDialog.jsx +95 -0
- package/apps/studio/client/v2/create/NameDialogHost.jsx +141 -0
- package/apps/studio/client/v2/create/create-project.css +260 -0
- package/apps/studio/client/v2/create/duplicate-done.js +45 -0
- package/apps/studio/client/v2/create/empty-project.css +113 -0
- package/apps/studio/client/v2/create/empty-project.jsx +162 -0
- package/apps/studio/client/v2/create/first-draft.js +30 -0
- package/apps/studio/client/v2/create/intent-host.jsx +40 -0
- package/apps/studio/client/v2/create/name-dialog-bus.js +41 -0
- package/apps/studio/client/v2/create/name-dialog.css +36 -0
- package/apps/studio/client/v2/create/new-canvas.js +64 -0
- package/apps/studio/client/v2/create/open-sizes.js +41 -0
- package/apps/studio/client/v2/create/render-error.css +29 -0
- package/apps/studio/client/v2/create/render-error.jsx +107 -0
- package/apps/studio/client/v2/create/repair-offer.js +36 -0
- package/apps/studio/client/v2/create/take-intent.js +154 -0
- package/apps/studio/client/v2/create/use-project-empty.js +85 -0
- package/apps/studio/client/v2/create/use-render-error.js +116 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-bus.js +47 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-handlers.js +108 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-host.jsx +196 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-model.js +253 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-sheet.jsx +557 -0
- package/apps/studio/client/v2/diagnostics/diagnostics.css +612 -0
- package/apps/studio/client/v2/diagnostics/resync-model.js +51 -0
- package/apps/studio/client/v2/diagnostics/resync-run.js +79 -0
- package/apps/studio/client/v2/diagnostics/sync-actions.js +38 -0
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +241 -0
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +392 -0
- package/apps/studio/client/v2/diagnostics/use-diagnostics-menu.js +58 -0
- package/apps/studio/client/v2/ds/advanced-bus.js +40 -0
- package/apps/studio/client/v2/ds/advanced-host.jsx +228 -0
- package/apps/studio/client/v2/ds/advanced-model.js +110 -0
- package/apps/studio/client/v2/ds/advanced-store.js +47 -0
- package/apps/studio/client/v2/ds/advanced.css +277 -0
- package/apps/studio/client/v2/ds/advanced.jsx +203 -0
- package/apps/studio/client/v2/ds/check-card.jsx +80 -0
- package/apps/studio/client/v2/ds/colour-picker.jsx +121 -0
- package/apps/studio/client/v2/ds/colour-words.js +48 -0
- package/apps/studio/client/v2/ds/conflict-pick.jsx +151 -0
- package/apps/studio/client/v2/ds/contrast-warning.jsx +80 -0
- package/apps/studio/client/v2/ds/contrast.js +137 -0
- package/apps/studio/client/v2/ds/convert-dialog.jsx +133 -0
- package/apps/studio/client/v2/ds/convert-host.jsx +143 -0
- package/apps/studio/client/v2/ds/convert-model.js +221 -0
- package/apps/studio/client/v2/ds/default-write.js +69 -0
- package/apps/studio/client/v2/ds/direction-bar.jsx +287 -0
- package/apps/studio/client/v2/ds/door-write.js +163 -0
- package/apps/studio/client/v2/ds/edge-model.js +151 -0
- package/apps/studio/client/v2/ds/edge-write.js +91 -0
- package/apps/studio/client/v2/ds/edges.css +152 -0
- package/apps/studio/client/v2/ds/follower-swap.js +88 -0
- package/apps/studio/client/v2/ds/go-to.js +71 -0
- package/apps/studio/client/v2/ds/kinds/master.jsx +214 -0
- package/apps/studio/client/v2/ds/kinds/token.jsx +546 -0
- package/apps/studio/client/v2/ds/library-bus.js +43 -0
- package/apps/studio/client/v2/ds/library-card.jsx +379 -0
- package/apps/studio/client/v2/ds/library-host.jsx +436 -0
- package/apps/studio/client/v2/ds/library-model.js +305 -0
- package/apps/studio/client/v2/ds/library-store.js +45 -0
- package/apps/studio/client/v2/ds/library.css +148 -0
- package/apps/studio/client/v2/ds/make-host.jsx +244 -0
- package/apps/studio/client/v2/ds/make-model.js +208 -0
- package/apps/studio/client/v2/ds/make-sheet.jsx +264 -0
- package/apps/studio/client/v2/ds/make-write.js +90 -0
- package/apps/studio/client/v2/ds/make.css +242 -0
- package/apps/studio/client/v2/ds/master-write.js +145 -0
- package/apps/studio/client/v2/ds/new-canvas-default.js +89 -0
- package/apps/studio/client/v2/ds/off-system-host.jsx +107 -0
- package/apps/studio/client/v2/ds/off-system.jsx +101 -0
- package/apps/studio/client/v2/ds/outside-banner.jsx +153 -0
- package/apps/studio/client/v2/ds/pinned-rows.js +138 -0
- package/apps/studio/client/v2/ds/pins.js +102 -0
- package/apps/studio/client/v2/ds/preview-bar.jsx +220 -0
- package/apps/studio/client/v2/ds/preview-doors.js +47 -0
- package/apps/studio/client/v2/ds/preview-mode.js +163 -0
- package/apps/studio/client/v2/ds/reach-data.js +68 -0
- package/apps/studio/client/v2/ds/reach-model.js +184 -0
- package/apps/studio/client/v2/ds/reach-view.jsx +577 -0
- package/apps/studio/client/v2/ds/reach.css +298 -0
- package/apps/studio/client/v2/ds/rename-write.js +88 -0
- package/apps/studio/client/v2/ds/review-bus.js +41 -0
- package/apps/studio/client/v2/ds/review-host.jsx +438 -0
- package/apps/studio/client/v2/ds/review-model.js +307 -0
- package/apps/studio/client/v2/ds/review-sheet.jsx +390 -0
- package/apps/studio/client/v2/ds/review.css +894 -0
- package/apps/studio/client/v2/ds/row-dots.js +41 -0
- package/apps/studio/client/v2/ds/switch-bus.js +56 -0
- package/apps/studio/client/v2/ds/switch-host.jsx +241 -0
- package/apps/studio/client/v2/ds/switch-model.js +254 -0
- package/apps/studio/client/v2/ds/switch-sheet.jsx +364 -0
- package/apps/studio/client/v2/ds/switch.css +263 -0
- package/apps/studio/client/v2/ds/system-menu.jsx +81 -0
- package/apps/studio/client/v2/ds/system-rename.jsx +102 -0
- package/apps/studio/client/v2/ds/token-write.js +241 -0
- package/apps/studio/client/v2/ds/token.css +185 -0
- package/apps/studio/client/v2/ds/trash-token-sheet.jsx +112 -0
- package/apps/studio/client/v2/ds/truth-card.jsx +85 -0
- package/apps/studio/client/v2/ds/truth-host.jsx +239 -0
- package/apps/studio/client/v2/ds/truth-model.js +315 -0
- package/apps/studio/client/v2/ds/truth-store.js +45 -0
- package/apps/studio/client/v2/ds/truth.css +143 -0
- package/apps/studio/client/v2/ds/update-available.jsx +261 -0
- package/apps/studio/client/v2/ds/update-dots.js +103 -0
- package/apps/studio/client/v2/ds/update-model.js +295 -0
- package/apps/studio/client/v2/ds/upgrade-bus.js +40 -0
- package/apps/studio/client/v2/ds/upgrade-host.jsx +185 -0
- package/apps/studio/client/v2/ds/upgrade-model.js +266 -0
- package/apps/studio/client/v2/ds/upgrade-offers.js +34 -0
- package/apps/studio/client/v2/ds/upgrade-sheet.jsx +277 -0
- package/apps/studio/client/v2/ds/upgrade.css +166 -0
- package/apps/studio/client/v2/ds/use-covers.js +27 -0
- package/apps/studio/client/v2/ds/use-ds-frames.js +165 -0
- package/apps/studio/client/v2/ds/use-ds-model.js +61 -0
- package/apps/studio/client/v2/ds/use-ds-search.js +61 -0
- package/apps/studio/client/v2/ds/use-ds-state.js +65 -0
- package/apps/studio/client/v2/ds/uses-link.jsx +58 -0
- package/apps/studio/client/v2/empty/all-trashed-model.js +321 -0
- package/apps/studio/client/v2/empty/all-trashed-relay.js +65 -0
- package/apps/studio/client/v2/empty/all-trashed.jsx +229 -0
- package/apps/studio/client/v2/empty/arriving.jsx +180 -0
- package/apps/studio/client/v2/empty/artboard-hint.jsx +47 -0
- package/apps/studio/client/v2/empty/ask-button.jsx +35 -0
- package/apps/studio/client/v2/empty/confetti.jsx +46 -0
- package/apps/studio/client/v2/empty/empty-canvas.jsx +96 -0
- package/apps/studio/client/v2/empty/empty-copy.js +265 -0
- package/apps/studio/client/v2/empty/empty-hint-store.js +31 -0
- package/apps/studio/client/v2/empty/empty-host.jsx +168 -0
- package/apps/studio/client/v2/empty/empty.css +440 -0
- package/apps/studio/client/v2/empty/empty.jsx +162 -0
- package/apps/studio/client/v2/empty/fill-ask.js +22 -0
- package/apps/studio/client/v2/empty/free-centre.js +11 -0
- package/apps/studio/client/v2/empty/index.js +40 -0
- package/apps/studio/client/v2/empty/layers-empty.jsx +22 -0
- package/apps/studio/client/v2/empty/not-local.jsx +111 -0
- package/apps/studio/client/v2/empty/select-new-artboard.js +32 -0
- package/apps/studio/client/v2/empty/skeleton.jsx +51 -0
- package/apps/studio/client/v2/empty/spot-art.jsx +923 -0
- package/apps/studio/client/v2/empty/spot.jsx +96 -0
- package/apps/studio/client/v2/empty/suggestions.jsx +18 -0
- package/apps/studio/client/v2/empty/use-empty-canvas.js +251 -0
- package/apps/studio/client/v2/export/access-line.jsx +48 -0
- package/apps/studio/client/v2/export/advanced/advanced-copy.js +77 -0
- package/apps/studio/client/v2/export/advanced/advanced.css +252 -0
- package/apps/studio/client/v2/export/advanced/advanced.jsx +148 -0
- package/apps/studio/client/v2/export/advanced/command.js +128 -0
- package/apps/studio/client/v2/export/advanced/command.jsx +50 -0
- package/apps/studio/client/v2/export/advanced/fields.jsx +132 -0
- package/apps/studio/client/v2/export/advanced/image.jsx +124 -0
- package/apps/studio/client/v2/export/advanced/model.js +199 -0
- package/apps/studio/client/v2/export/advanced/names.jsx +65 -0
- package/apps/studio/client/v2/export/advanced/print.jsx +99 -0
- package/apps/studio/client/v2/export/advanced/render.jsx +63 -0
- package/apps/studio/client/v2/export/advanced/video.jsx +76 -0
- package/apps/studio/client/v2/export/annotations-policy.js +28 -0
- package/apps/studio/client/v2/export/cloud-queue.js +69 -0
- package/apps/studio/client/v2/export/copy-command.js +72 -0
- package/apps/studio/client/v2/export/copy-png.js +144 -0
- package/apps/studio/client/v2/export/done-toast.jsx +89 -0
- package/apps/studio/client/v2/export/edges.css +74 -0
- package/apps/studio/client/v2/export/export-copy.js +352 -0
- package/apps/studio/client/v2/export/export-sheet.jsx +804 -0
- package/apps/studio/client/v2/export/export-sizes.js +217 -0
- package/apps/studio/client/v2/export/export.css +832 -0
- package/apps/studio/client/v2/export/exports-model.js +383 -0
- package/apps/studio/client/v2/export/exports-panel.css +192 -0
- package/apps/studio/client/v2/export/exports-panel.jsx +164 -0
- package/apps/studio/client/v2/export/file-rows.jsx +84 -0
- package/apps/studio/client/v2/export/inspector-export.jsx +335 -0
- package/apps/studio/client/v2/export/job-row.jsx +358 -0
- package/apps/studio/client/v2/export/last-finished.js +34 -0
- package/apps/studio/client/v2/export/native-save.js +160 -0
- package/apps/studio/client/v2/export/other-formats.jsx +199 -0
- package/apps/studio/client/v2/export/parts.jsx +117 -0
- package/apps/studio/client/v2/export/preflight/fonts.js +27 -0
- package/apps/studio/client/v2/export/preflight/paper.jsx +177 -0
- package/apps/studio/client/v2/export/preflight/safe-margin.js +24 -0
- package/apps/studio/client/v2/export/preflight/use-preflight.js +74 -0
- package/apps/studio/client/v2/export/preview.jsx +79 -0
- package/apps/studio/client/v2/export/print.css +219 -0
- package/apps/studio/client/v2/export/run-export.js +177 -0
- package/apps/studio/client/v2/export/scope-bar.jsx +70 -0
- package/apps/studio/client/v2/export/sections/batch-model.js +224 -0
- package/apps/studio/client/v2/export/sections/batch.jsx +235 -0
- package/apps/studio/client/v2/export/sections/image.jsx +93 -0
- package/apps/studio/client/v2/export/sections/print-copy.js +41 -0
- package/apps/studio/client/v2/export/sections/print.jsx +285 -0
- package/apps/studio/client/v2/export/sections/render-row.jsx +81 -0
- package/apps/studio/client/v2/export/sections/version.jsx +176 -0
- package/apps/studio/client/v2/export/sections/video-copy.js +92 -0
- package/apps/studio/client/v2/export/sections/video-model.js +127 -0
- package/apps/studio/client/v2/export/sections/video.jsx +397 -0
- package/apps/studio/client/v2/export/sections/web.jsx +151 -0
- package/apps/studio/client/v2/export/share-hint.jsx +51 -0
- package/apps/studio/client/v2/export/use-export-spec.js +546 -0
- package/apps/studio/client/v2/export/video-content.js +75 -0
- package/apps/studio/client/v2/export/video.css +221 -0
- package/apps/studio/client/v2/fold/advanced-fold.jsx +96 -0
- package/apps/studio/client/v2/fold/fold-store.js +151 -0
- package/apps/studio/client/v2/fold/fold.css +59 -0
- package/apps/studio/client/v2/fold/use-fold.js +36 -0
- package/apps/studio/client/v2/handoff/edges.jsx +74 -0
- package/apps/studio/client/v2/handoff/handoff-sheet.jsx +469 -0
- package/apps/studio/client/v2/handoff/handoff.css +181 -0
- package/apps/studio/client/v2/handoff/ready-card.jsx +84 -0
- package/apps/studio/client/v2/handoff/targets.js +111 -0
- package/apps/studio/client/v2/help/add-guides.js +43 -0
- package/apps/studio/client/v2/help/help.css +995 -0
- package/apps/studio/client/v2/history/blame.js +161 -0
- package/apps/studio/client/v2/history/branch-actions.js +214 -0
- package/apps/studio/client/v2/history/change-list.jsx +102 -0
- package/apps/studio/client/v2/history/clear-band.js +144 -0
- package/apps/studio/client/v2/history/compare-store.js +80 -0
- package/apps/studio/client/v2/history/compare-view.jsx +318 -0
- package/apps/studio/client/v2/history/compare-words.js +8 -0
- package/apps/studio/client/v2/history/git-advanced.jsx +580 -0
- package/apps/studio/client/v2/history/git-io.js +58 -0
- package/apps/studio/client/v2/history/git-model.js +526 -0
- package/apps/studio/client/v2/history/git-parts.jsx +662 -0
- package/apps/studio/client/v2/history/history-host.jsx +78 -0
- package/apps/studio/client/v2/history/history-panel.jsx +599 -0
- package/apps/studio/client/v2/history/history.css +1477 -0
- package/apps/studio/client/v2/history/name-dialog.jsx +109 -0
- package/apps/studio/client/v2/history/object-filter.js +143 -0
- package/apps/studio/client/v2/history/object-history-ask.js +62 -0
- package/apps/studio/client/v2/history/object-view.jsx +236 -0
- package/apps/studio/client/v2/history/rows.ts +445 -0
- package/apps/studio/client/v2/history/use-versions.js +391 -0
- package/apps/studio/client/v2/history/view-bar.jsx +80 -0
- package/apps/studio/client/v2/import/brand-model.js +145 -0
- package/apps/studio/client/v2/import/brand-result.jsx +197 -0
- package/apps/studio/client/v2/import/brand-sheet.jsx +434 -0
- package/apps/studio/client/v2/import/brand.css +378 -0
- package/apps/studio/client/v2/import/figma-artboard.jsx +121 -0
- package/apps/studio/client/v2/import/figma-model.js +237 -0
- package/apps/studio/client/v2/import/figma-prefill.js +23 -0
- package/apps/studio/client/v2/import/figma-sheet.jsx +525 -0
- package/apps/studio/client/v2/import/figma-summary.jsx +62 -0
- package/apps/studio/client/v2/import/figma.css +179 -0
- package/apps/studio/client/v2/import/frame-picker.jsx +57 -0
- package/apps/studio/client/v2/inspect/inspect-host.jsx +53 -0
- package/apps/studio/client/v2/inspect/inspect-model.js +132 -0
- package/apps/studio/client/v2/inspect/inspect-panel.jsx +214 -0
- package/apps/studio/client/v2/inspect/inspect.css +87 -0
- package/apps/studio/client/v2/inspector/advanced-rows-default.jsx +773 -0
- package/apps/studio/client/v2/inspector/advanced-rows.js +106 -0
- package/apps/studio/client/v2/inspector/advanced.jsx +286 -0
- package/apps/studio/client/v2/inspector/blocks.js +57 -0
- package/apps/studio/client/v2/inspector/colour-groups.js +129 -0
- package/apps/studio/client/v2/inspector/component-picker.css +133 -0
- package/apps/studio/client/v2/inspector/component-picker.jsx +367 -0
- package/apps/studio/client/v2/inspector/crumbs.jsx +89 -0
- package/apps/studio/client/v2/inspector/css-text.js +179 -0
- package/apps/studio/client/v2/inspector/css-write.js +204 -0
- package/apps/studio/client/v2/inspector/element-code.js +39 -0
- package/apps/studio/client/v2/inspector/element-id.js +70 -0
- package/apps/studio/client/v2/inspector/formats-ui.js +101 -0
- package/apps/studio/client/v2/inspector/formats-write.js +60 -0
- package/apps/studio/client/v2/inspector/frame.jsx +336 -0
- package/apps/studio/client/v2/inspector/inspector-actions.js +60 -0
- package/apps/studio/client/v2/inspector/inspector.css +2872 -0
- package/apps/studio/client/v2/inspector/jsx-slice.js +219 -0
- package/apps/studio/client/v2/inspector/kinds/add-width.js +55 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-advanced-rows.jsx +89 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-advanced.jsx +62 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-fixed.jsx +111 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-kinds-model.js +171 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-model.js +155 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-multi.jsx +142 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-print-advanced.jsx +210 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-print-model.js +112 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-print.jsx +268 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-rows.jsx +124 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-video.jsx +144 -0
- package/apps/studio/client/v2/inspector/kinds/artboard-web.jsx +170 -0
- package/apps/studio/client/v2/inspector/kinds/artboard.jsx +168 -0
- package/apps/studio/client/v2/inspector/kinds/caption.jsx +203 -0
- package/apps/studio/client/v2/inspector/kinds/clip-model.js +190 -0
- package/apps/studio/client/v2/inspector/kinds/clip.css +157 -0
- package/apps/studio/client/v2/inspector/kinds/clip.jsx +447 -0
- package/apps/studio/client/v2/inspector/kinds/frame.jsx +118 -0
- package/apps/studio/client/v2/inspector/kinds/image.jsx +267 -0
- package/apps/studio/client/v2/inspector/kinds/index.js +180 -0
- package/apps/studio/client/v2/inspector/kinds/instance.jsx +377 -0
- package/apps/studio/client/v2/inspector/kinds/multi-artboard.jsx +129 -0
- package/apps/studio/client/v2/inspector/kinds/multi.jsx +220 -0
- package/apps/studio/client/v2/inspector/kinds/music.jsx +294 -0
- package/apps/studio/client/v2/inspector/kinds/path.jsx +174 -0
- package/apps/studio/client/v2/inspector/kinds/shape.jsx +59 -0
- package/apps/studio/client/v2/inspector/kinds/text.jsx +518 -0
- package/apps/studio/client/v2/inspector/kinds/title-rows.jsx +135 -0
- package/apps/studio/client/v2/inspector/kinds/video-facts.js +142 -0
- package/apps/studio/client/v2/inspector/layers-row-tools.jsx +93 -0
- package/apps/studio/client/v2/inspector/layers-slot.jsx +93 -0
- package/apps/studio/client/v2/inspector/link-write.js +52 -0
- package/apps/studio/client/v2/inspector/live-size.js +96 -0
- package/apps/studio/client/v2/inspector/model.js +228 -0
- package/apps/studio/client/v2/inspector/path-point.js +104 -0
- package/apps/studio/client/v2/inspector/print-write.js +85 -0
- package/apps/studio/client/v2/inspector/safe-zones-write.js +88 -0
- package/apps/studio/client/v2/inspector/sections/add-requests.js +35 -0
- package/apps/studio/client/v2/inspector/sections/border.jsx +141 -0
- package/apps/studio/client/v2/inspector/sections/color-control.jsx +246 -0
- package/apps/studio/client/v2/inspector/sections/colour-custom.jsx +826 -0
- package/apps/studio/client/v2/inspector/sections/colour-model.js +404 -0
- package/apps/studio/client/v2/inspector/sections/colour-popover.jsx +631 -0
- package/apps/studio/client/v2/inspector/sections/colour-words.js +131 -0
- package/apps/studio/client/v2/inspector/sections/corners.jsx +177 -0
- package/apps/studio/client/v2/inspector/sections/effects.jsx +67 -0
- package/apps/studio/client/v2/inspector/sections/export-slot.jsx +60 -0
- package/apps/studio/client/v2/inspector/sections/fill.jsx +187 -0
- package/apps/studio/client/v2/inspector/sections/formats.jsx +209 -0
- package/apps/studio/client/v2/inspector/sections/index.js +74 -0
- package/apps/studio/client/v2/inspector/sections/interaction.jsx +204 -0
- package/apps/studio/client/v2/inspector/sections/layout.jsx +314 -0
- package/apps/studio/client/v2/inspector/sections/opacity-row.jsx +37 -0
- package/apps/studio/client/v2/inspector/sections/point.jsx +102 -0
- package/apps/studio/client/v2/inspector/sections/position.jsx +259 -0
- package/apps/studio/client/v2/inspector/sections/recent-colours.js +106 -0
- package/apps/studio/client/v2/inspector/sections/row.jsx +91 -0
- package/apps/studio/client/v2/inspector/sections/safe-zones.jsx +174 -0
- package/apps/studio/client/v2/inspector/sections/sections.css +1474 -0
- package/apps/studio/client/v2/inspector/sections/size.jsx +104 -0
- package/apps/studio/client/v2/inspector/sections/type.jsx +168 -0
- package/apps/studio/client/v2/inspector/sections/warnings.css +44 -0
- package/apps/studio/client/v2/inspector/sections/warnings.jsx +137 -0
- package/apps/studio/client/v2/inspector/sections.js +226 -0
- package/apps/studio/client/v2/inspector/slots.js +110 -0
- package/apps/studio/client/v2/inspector/token-chip.jsx +315 -0
- package/apps/studio/client/v2/inspector/view-mode.jsx +193 -0
- package/apps/studio/client/v2/inspector/warning-fix.js +111 -0
- package/apps/studio/client/v2/kinds/ConvertDialog.jsx +183 -0
- package/apps/studio/client/v2/kinds/KindChips.jsx +60 -0
- package/apps/studio/client/v2/kinds/KindDimHost.jsx +35 -0
- package/apps/studio/client/v2/kinds/LayersKindFilter.jsx +108 -0
- package/apps/studio/client/v2/kinds/SizePicker.jsx +566 -0
- package/apps/studio/client/v2/kinds/SizePickerHost.jsx +104 -0
- package/apps/studio/client/v2/kinds/advanced-rows.js +40 -0
- package/apps/studio/client/v2/kinds/convert-api.js +116 -0
- package/apps/studio/client/v2/kinds/convert.css +87 -0
- package/apps/studio/client/v2/kinds/kind-dim-relay.js +93 -0
- package/apps/studio/client/v2/kinds/kind-filter-model.js +106 -0
- package/apps/studio/client/v2/kinds/kind-filter-store.js +71 -0
- package/apps/studio/client/v2/kinds/kind-filter.css +105 -0
- package/apps/studio/client/v2/kinds/layers-kind-model.js +99 -0
- package/apps/studio/client/v2/kinds/size-picker-model.js +189 -0
- package/apps/studio/client/v2/kinds/size-picker.css +393 -0
- package/apps/studio/client/v2/layers/artboard-layers.jsx +105 -0
- package/apps/studio/client/v2/layers/layers.css +94 -0
- package/apps/studio/client/v2/left-panel/advanced-model.js +98 -0
- package/apps/studio/client/v2/left-panel/assets-panel.jsx +1203 -0
- package/apps/studio/client/v2/left-panel/canvas-file-menu.js +115 -0
- package/apps/studio/client/v2/left-panel/canvases-advanced.jsx +270 -0
- package/apps/studio/client/v2/left-panel/canvases-pinned.jsx +274 -0
- package/apps/studio/client/v2/left-panel/layers-advanced.jsx +179 -0
- package/apps/studio/client/v2/left-panel/left-panel-bus.js +83 -0
- package/apps/studio/client/v2/left-panel/left-panel-model.js +184 -0
- package/apps/studio/client/v2/left-panel/left-panel.css +1846 -0
- package/apps/studio/client/v2/left-panel/selector-scope.js +42 -0
- package/apps/studio/client/v2/left-panel/trash-model.js +282 -0
- package/apps/studio/client/v2/left-panel/trash-view.jsx +257 -0
- package/apps/studio/client/v2/left-panel/use-trash.js +172 -0
- package/apps/studio/client/v2/left-panel/view-prefs.js +84 -0
- package/apps/studio/client/v2/onboarding/AdvSheet.jsx +114 -0
- package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +239 -0
- package/apps/studio/client/v2/onboarding/CliSheet.jsx +101 -0
- package/apps/studio/client/v2/onboarding/ConnectAiSheet.jsx +60 -0
- package/apps/studio/client/v2/onboarding/FigmaSheet.jsx +96 -0
- package/apps/studio/client/v2/onboarding/FolderGithubSheet.jsx +77 -0
- package/apps/studio/client/v2/onboarding/GithubSegment.jsx +241 -0
- package/apps/studio/client/v2/onboarding/HubSheet.jsx +244 -0
- package/apps/studio/client/v2/onboarding/connect-ai-home.js +94 -0
- package/apps/studio/client/v2/onboarding/github-home.js +84 -0
- package/apps/studio/client/v2/onboarding/onboarding-model.js +106 -0
- package/apps/studio/client/v2/onboarding/onboarding.css +546 -0
- package/apps/studio/client/v2/photo/apply-every-use-sheet.jsx +196 -0
- package/apps/studio/client/v2/photo/canvas-rel.js +20 -0
- package/apps/studio/client/v2/photo/looks.js +129 -0
- package/apps/studio/client/v2/photo/photo-section.jsx +625 -0
- package/apps/studio/client/v2/photo/photo.css +218 -0
- package/apps/studio/client/v2/portal-scope.jsx +14 -0
- package/apps/studio/client/v2/presence/faces.jsx +356 -0
- package/apps/studio/client/v2/presence/presence.css +187 -0
- package/apps/studio/client/v2/presence/use-presence-host.js +83 -0
- package/apps/studio/client/v2/present/audience-window.js +63 -0
- package/apps/studio/client/v2/present/canvas-pill.jsx +55 -0
- package/apps/studio/client/v2/present/copy-link.js +82 -0
- package/apps/studio/client/v2/present/follow-location.js +82 -0
- package/apps/studio/client/v2/present/follow-model.js +68 -0
- package/apps/studio/client/v2/present/follow-view.jsx +354 -0
- package/apps/studio/client/v2/present/follow.css +91 -0
- package/apps/studio/client/v2/present/order-map.jsx +64 -0
- package/apps/studio/client/v2/present/order-notes-artboards.js +88 -0
- package/apps/studio/client/v2/present/order-notes-model.js +141 -0
- package/apps/studio/client/v2/present/order-notes-mount.jsx +26 -0
- package/apps/studio/client/v2/present/order-notes-sheet.jsx +293 -0
- package/apps/studio/client/v2/present/order-notes.css +150 -0
- package/apps/studio/client/v2/present/present-chrome-host.jsx +95 -0
- package/apps/studio/client/v2/present/present-controls-model.js +114 -0
- package/apps/studio/client/v2/present/present-controls.jsx +263 -0
- package/apps/studio/client/v2/present/present-zoom-store.js +33 -0
- package/apps/studio/client/v2/present/present.css +258 -0
- package/apps/studio/client/v2/present/presenter-button.jsx +25 -0
- package/apps/studio/client/v2/present/presenter-host.jsx +246 -0
- package/apps/studio/client/v2/present/presenter-model.js +167 -0
- package/apps/studio/client/v2/present/presenter-store.js +140 -0
- package/apps/studio/client/v2/present/presenter-view.css +298 -0
- package/apps/studio/client/v2/present/presenter-view.jsx +241 -0
- package/apps/studio/client/v2/present/video-present-model.js +92 -0
- package/apps/studio/client/v2/present/video-present.css +164 -0
- package/apps/studio/client/v2/present/video-present.jsx +331 -0
- package/apps/studio/client/v2/preview/external-link-confirm.jsx +245 -0
- package/apps/studio/client/v2/preview/link-follow.js +109 -0
- package/apps/studio/client/v2/preview/open-in-app.jsx +46 -0
- package/apps/studio/client/v2/preview/preview-back.js +21 -0
- package/apps/studio/client/v2/preview/preview-bar.jsx +86 -0
- package/apps/studio/client/v2/preview/preview-chrome-host.jsx +234 -0
- package/apps/studio/client/v2/preview/preview-history.js +61 -0
- package/apps/studio/client/v2/preview/preview.css +262 -0
- package/apps/studio/client/v2/preview/zoom-only.jsx +58 -0
- package/apps/studio/client/v2/search/help-model.js +275 -0
- package/apps/studio/client/v2/search/moved-keys.js +74 -0
- package/apps/studio/client/v2/search/palette-icons.js +45 -0
- package/apps/studio/client/v2/search/search-ds.js +142 -0
- package/apps/studio/client/v2/search/search-env.js +110 -0
- package/apps/studio/client/v2/search/search-keywords.js +162 -0
- package/apps/studio/client/v2/search/search-model.js +623 -0
- package/apps/studio/client/v2/search/search-projects.js +214 -0
- package/apps/studio/client/v2/search/search-recent.js +94 -0
- package/apps/studio/client/v2/search/search-remote.js +30 -0
- package/apps/studio/client/v2/search/search.css +519 -0
- package/apps/studio/client/v2/settings/account.jsx +164 -0
- package/apps/studio/client/v2/settings/advanced-prefs.js +91 -0
- package/apps/studio/client/v2/settings/advanced-section.jsx +308 -0
- package/apps/studio/client/v2/settings/connection-row.jsx +79 -0
- package/apps/studio/client/v2/settings/connections-model.js +138 -0
- package/apps/studio/client/v2/settings/connections-section.jsx +663 -0
- package/apps/studio/client/v2/settings/general-section.jsx +155 -0
- package/apps/studio/client/v2/settings/parts.jsx +48 -0
- package/apps/studio/client/v2/settings/prefs-migrate.js +141 -0
- package/apps/studio/client/v2/settings/project-sync-settings.jsx +255 -0
- package/apps/studio/client/v2/settings/reset-section.jsx +164 -0
- package/apps/studio/client/v2/settings/settings-handlers.js +46 -0
- package/apps/studio/client/v2/settings/settings-model.js +523 -0
- package/apps/studio/client/v2/settings/settings-sheet.jsx +204 -0
- package/apps/studio/client/v2/settings/settings.css +975 -0
- package/apps/studio/client/v2/settings/theme-auto.js +75 -0
- package/apps/studio/client/v2/settings/use-advanced-prefs.js +32 -0
- package/apps/studio/client/v2/settings/use-connections.js +485 -0
- package/apps/studio/client/v2/share/glyphs.jsx +92 -0
- package/apps/studio/client/v2/share/invite-row.jsx +68 -0
- package/apps/studio/client/v2/share/link-dialog.js +53 -0
- package/apps/studio/client/v2/share/link-row.jsx +38 -0
- package/apps/studio/client/v2/share/move-to-cloud.jsx +88 -0
- package/apps/studio/client/v2/share/people-list.jsx +151 -0
- package/apps/studio/client/v2/share/person.jsx +26 -0
- package/apps/studio/client/v2/share/role-menu.jsx +145 -0
- package/apps/studio/client/v2/share/share-advanced.jsx +411 -0
- package/apps/studio/client/v2/share/share-model.js +469 -0
- package/apps/studio/client/v2/share/share-sheet.jsx +602 -0
- package/apps/studio/client/v2/share/share.css +828 -0
- package/apps/studio/client/v2/shell/account-card-model.js +114 -0
- package/apps/studio/client/v2/shell/account-card.jsx +177 -0
- package/apps/studio/client/v2/shell/annotation-prefs-store.js +105 -0
- package/apps/studio/client/v2/shell/ask-to-edit.js +33 -0
- package/apps/studio/client/v2/shell/callouts-host.jsx +151 -0
- package/apps/studio/client/v2/shell/callouts-model.js +358 -0
- package/apps/studio/client/v2/shell/callouts.css +164 -0
- package/apps/studio/client/v2/shell/callouts.jsx +162 -0
- package/apps/studio/client/v2/shell/canvas-mode.js +393 -0
- package/apps/studio/client/v2/shell/contrast.css +37 -0
- package/apps/studio/client/v2/shell/corner-icons.jsx +153 -0
- package/apps/studio/client/v2/shell/dock-rail-homes.js +106 -0
- package/apps/studio/client/v2/shell/f6-cycle.js +124 -0
- package/apps/studio/client/v2/shell/floating-panels.css +2858 -0
- package/apps/studio/client/v2/shell/fold-ghost.js +70 -0
- package/apps/studio/client/v2/shell/format-update.css +43 -0
- package/apps/studio/client/v2/shell/format-update.js +487 -0
- package/apps/studio/client/v2/shell/format-update.jsx +479 -0
- package/apps/studio/client/v2/shell/held-conflict.js +51 -0
- package/apps/studio/client/v2/shell/image-pick.js +140 -0
- package/apps/studio/client/v2/shell/insets-now.js +35 -0
- package/apps/studio/client/v2/shell/inspector-follow.js +113 -0
- package/apps/studio/client/v2/shell/menu-runner.js +711 -0
- package/apps/studio/client/v2/shell/modal-focus.js +259 -0
- package/apps/studio/client/v2/shell/mode-switch.jsx +418 -0
- package/apps/studio/client/v2/shell/native-doors.js +121 -0
- package/apps/studio/client/v2/shell/occlusion-insets.js +116 -0
- package/apps/studio/client/v2/shell/panel-availability.js +27 -0
- package/apps/studio/client/v2/shell/panel-layout.js +144 -0
- package/apps/studio/client/v2/shell/panel-sizes.js +150 -0
- package/apps/studio/client/v2/shell/paste-forward.js +43 -0
- package/apps/studio/client/v2/shell/present-from-label.js +19 -0
- package/apps/studio/client/v2/shell/project-menu-model.js +216 -0
- package/apps/studio/client/v2/shell/project-pill.css +214 -0
- package/apps/studio/client/v2/shell/project-pill.jsx +456 -0
- package/apps/studio/client/v2/shell/recovery-store.js +139 -0
- package/apps/studio/client/v2/shell/role-denial.js +73 -0
- package/apps/studio/client/v2/shell/role-gate.js +29 -0
- package/apps/studio/client/v2/shell/save-hold-notice.js +69 -0
- package/apps/studio/client/v2/shell/save-status.js +191 -0
- package/apps/studio/client/v2/shell/scroll-lock.js +49 -0
- package/apps/studio/client/v2/shell/share-cluster-host.jsx +389 -0
- package/apps/studio/client/v2/shell/share-cluster.css +608 -0
- package/apps/studio/client/v2/shell/share-cluster.jsx +255 -0
- package/apps/studio/client/v2/shell/shell-error-boundary.jsx +81 -0
- package/apps/studio/client/v2/shell/shell-panels-relay.js +95 -0
- package/apps/studio/client/v2/shell/shell-parity.js +457 -0
- package/apps/studio/client/v2/shell/shell-parity.json +2106 -0
- package/apps/studio/client/v2/shell/single-keys-store.js +49 -0
- package/apps/studio/client/v2/shell/tool-panels.css +39 -0
- package/apps/studio/client/v2/shell/tool-panels.js +156 -0
- package/apps/studio/client/v2/shell/use-account.js +59 -0
- package/apps/studio/client/v2/shell/use-annotation-prefs.js +77 -0
- package/apps/studio/client/v2/shell/use-canvas-mode-lane.js +388 -0
- package/apps/studio/client/v2/shell/use-dismiss-outside.js +35 -0
- package/apps/studio/client/v2/shell/use-fit-on-ai-pin.js +42 -0
- package/apps/studio/client/v2/shell/use-fit-while-ai-drafts.js +37 -0
- package/apps/studio/client/v2/shell/use-occluded-insets.js +107 -0
- package/apps/studio/client/v2/shell/use-panel-layout.js +45 -0
- package/apps/studio/client/v2/shell/use-single-keys.js +56 -0
- package/apps/studio/client/v2/shell/use-tool-panels.js +205 -0
- package/apps/studio/client/v2/signin/CreateLocalSheet.jsx +155 -0
- package/apps/studio/client/v2/signin/SignInCard.jsx +284 -0
- package/apps/studio/client/v2/signin/SignInToast.jsx +22 -0
- package/apps/studio/client/v2/signin/WhatsNewLine.jsx +64 -0
- package/apps/studio/client/v2/signin/advanced-rows.js +40 -0
- package/apps/studio/client/v2/signin/signin-model.js +138 -0
- package/apps/studio/client/v2/signin/signin.css +484 -0
- package/apps/studio/client/v2/signin/use-signin.js +209 -0
- package/apps/studio/client/v2/signin/use-whats-new-line.js +94 -0
- package/apps/studio/client/v2/sync-states/back-online.jsx +61 -0
- package/apps/studio/client/v2/sync-states/conflict-card.jsx +326 -0
- package/apps/studio/client/v2/sync-states/offline-foot.jsx +79 -0
- package/apps/studio/client/v2/sync-states/row-words.js +83 -0
- package/apps/studio/client/v2/sync-states/sync-states-model.js +264 -0
- package/apps/studio/client/v2/sync-states/sync-states.css +232 -0
- package/apps/studio/client/v2/timeline/Timeline.jsx +3194 -0
- package/apps/studio/client/v2/timeline/TimelineHost.jsx +360 -0
- package/apps/studio/client/v2/timeline/advanced/actions.js +27 -0
- package/apps/studio/client/v2/timeline/advanced/advanced-store.js +116 -0
- package/apps/studio/client/v2/timeline/advanced/advanced.css +323 -0
- package/apps/studio/client/v2/timeline/advanced/cut-as-code.jsx +127 -0
- package/apps/studio/client/v2/timeline/advanced/easing-curve.jsx +200 -0
- package/apps/studio/client/v2/timeline/advanced/foot.jsx +210 -0
- package/apps/studio/client/v2/timeline/advanced/model.js +121 -0
- package/apps/studio/client/v2/timeline/advanced/render-settings.jsx +62 -0
- package/apps/studio/client/v2/timeline/advanced/video-cap.js +174 -0
- package/apps/studio/client/v2/timeline/ai-edge-model.js +111 -0
- package/apps/studio/client/v2/timeline/ai-edge.css +104 -0
- package/apps/studio/client/v2/timeline/ai-edge.jsx +113 -0
- package/apps/studio/client/v2/timeline/anchor-lane.js +80 -0
- package/apps/studio/client/v2/timeline/anchor.js +80 -0
- package/apps/studio/client/v2/timeline/assemble-video.js +64 -0
- package/apps/studio/client/v2/timeline/clip-search.js +88 -0
- package/apps/studio/client/v2/timeline/clip-verb.js +224 -0
- package/apps/studio/client/v2/timeline/comment-strip-host.jsx +93 -0
- package/apps/studio/client/v2/timeline/comment-strip-model.js +103 -0
- package/apps/studio/client/v2/timeline/comment-strip.jsx +82 -0
- package/apps/studio/client/v2/timeline/edit/clip-menu.js +118 -0
- package/apps/studio/client/v2/timeline/edit/clip-menu.jsx +48 -0
- package/apps/studio/client/v2/timeline/edit/drop.jsx +101 -0
- package/apps/studio/client/v2/timeline/edit/move.jsx +43 -0
- package/apps/studio/client/v2/timeline/edit/ripple.js +43 -0
- package/apps/studio/client/v2/timeline/edit/trim.jsx +52 -0
- package/apps/studio/client/v2/timeline/edit/words.js +65 -0
- package/apps/studio/client/v2/timeline/fit-fill.jsx +172 -0
- package/apps/studio/client/v2/timeline/fit-model.js +137 -0
- package/apps/studio/client/v2/timeline/fold.js +128 -0
- package/apps/studio/client/v2/timeline/footage-rows.jsx +46 -0
- package/apps/studio/client/v2/timeline/footage-state.js +135 -0
- package/apps/studio/client/v2/timeline/glyphs.jsx +118 -0
- package/apps/studio/client/v2/timeline/island-context.js +29 -0
- package/apps/studio/client/v2/timeline/island-controls.jsx +83 -0
- package/apps/studio/client/v2/timeline/island.jsx +54 -0
- package/apps/studio/client/v2/timeline/joins/join-model.js +133 -0
- package/apps/studio/client/v2/timeline/joins/joins.css +277 -0
- package/apps/studio/client/v2/timeline/joins/transition-picker.jsx +240 -0
- package/apps/studio/client/v2/timeline/keys.js +74 -0
- package/apps/studio/client/v2/timeline/lanes/caption-lane.jsx +149 -0
- package/apps/studio/client/v2/timeline/lanes/music-lane.jsx +294 -0
- package/apps/studio/client/v2/timeline/lanes/music-media.js +200 -0
- package/apps/studio/client/v2/timeline/lanes/music-model.js +190 -0
- package/apps/studio/client/v2/timeline/loop-handle.jsx +70 -0
- package/apps/studio/client/v2/timeline/marker-store.js +117 -0
- package/apps/studio/client/v2/timeline/markers.js +79 -0
- package/apps/studio/client/v2/timeline/marks.jsx +152 -0
- package/apps/studio/client/v2/timeline/music-hint.jsx +98 -0
- package/apps/studio/client/v2/timeline/other-takes-model.js +103 -0
- package/apps/studio/client/v2/timeline/other-takes-store.js +49 -0
- package/apps/studio/client/v2/timeline/other-takes.css +98 -0
- package/apps/studio/client/v2/timeline/other-takes.jsx +269 -0
- package/apps/studio/client/v2/timeline/peers.jsx +246 -0
- package/apps/studio/client/v2/timeline/playhead.js +97 -0
- package/apps/studio/client/v2/timeline/poster.js +109 -0
- package/apps/studio/client/v2/timeline/reframe-island.jsx +478 -0
- package/apps/studio/client/v2/timeline/reframe-model.js +135 -0
- package/apps/studio/client/v2/timeline/reframe.css +150 -0
- package/apps/studio/client/v2/timeline/ruler.js +61 -0
- package/apps/studio/client/v2/timeline/selection.js +110 -0
- package/apps/studio/client/v2/timeline/timeline-empty.jsx +108 -0
- package/apps/studio/client/v2/timeline/timeline-store.js +147 -0
- package/apps/studio/client/v2/timeline/timeline.css +2879 -0
- package/apps/studio/client/v2/timeline/together.css +85 -0
- package/apps/studio/client/v2/timeline/track-toggle.js +56 -0
- package/apps/studio/client/v2/timeline/tracks.js +68 -0
- package/apps/studio/client/v2/timeline/transport.js +66 -0
- package/apps/studio/client/v2/timeline/zoom.js +37 -0
- package/apps/studio/client/v2/transcript/TranscriptHost.jsx +162 -0
- package/apps/studio/client/v2/transcript/TranscriptPanel.jsx +358 -0
- package/apps/studio/client/v2/transcript/captions-api.js +297 -0
- package/apps/studio/client/v2/transcript/captions-file-flag.js +38 -0
- package/apps/studio/client/v2/transcript/comp-media-store.js +89 -0
- package/apps/studio/client/v2/transcript/transcript-model.js +240 -0
- package/apps/studio/client/v2/transcript/transcript.css +262 -0
- package/apps/studio/client/v2/undo/projection.js +291 -0
- package/apps/studio/client/v2/undo/undo-history.jsx +286 -0
- package/apps/studio/client/v2/undo/undo.css +81 -0
- package/apps/studio/client/v2/undo/use-undo-mode-lane.js +96 -0
- package/apps/studio/client/v2/undo/use-undo-projection.jsx +460 -0
- package/apps/studio/client/v2/undo/zoom-undo.jsx +79 -0
- package/apps/studio/client/whats-new-seen.js +40 -0
- package/apps/studio/client/whats-new.jsx +65 -62
- package/apps/studio/clip-ops.ts +38 -6
- package/apps/studio/cloud/config-path.ts +42 -0
- package/apps/studio/cloud/endpoints.ts +212 -50
- package/apps/studio/cloud/renew.ts +29 -16
- package/apps/studio/collab/ai-activity.ts +19 -0
- package/apps/studio/collab/awareness-bridge.ts +131 -4
- package/apps/studio/collab/git-lifecycle.ts +52 -20
- package/apps/studio/collab/holds.ts +69 -0
- package/apps/studio/collab/index.ts +25 -0
- package/apps/studio/collab/protocol.ts +64 -0
- package/apps/studio/collab/registry.ts +59 -6
- package/apps/studio/collab/room.ts +374 -16
- package/apps/studio/collab/timeline-awareness.ts +123 -0
- package/apps/studio/collab/timeline-presence.tsx +219 -0
- package/apps/studio/commands/move-artboards-command.ts +45 -4
- package/apps/studio/comments/anchors.ts +147 -0
- package/apps/studio/comments/author-face.ts +41 -0
- package/apps/studio/comments/from-line.ts +43 -0
- package/apps/studio/comments/imported-from.ts +113 -0
- package/apps/studio/comments/local-author.ts +41 -0
- package/apps/studio/comments/mentions.ts +115 -0
- package/apps/studio/comments/mine-stamp.ts +78 -0
- package/apps/studio/comments/ops.ts +293 -0
- package/apps/studio/comments/people.ts +66 -0
- package/apps/studio/comments/where.ts +136 -0
- package/apps/studio/comments-overlay.tsx +1220 -253
- package/apps/studio/config.schema.json +33 -0
- package/apps/studio/context-menu.tsx +126 -42
- package/apps/studio/context.ts +178 -13
- package/apps/studio/cursors-overlay.tsx +28 -11
- package/apps/studio/debug-bundle.ts +21 -5
- package/apps/studio/describe/batch.ts +414 -0
- package/apps/studio/describe/budget.ts +147 -0
- package/apps/studio/describe/claude.ts +273 -0
- package/apps/studio/describe/consent.ts +120 -0
- package/apps/studio/describe/validate.ts +192 -0
- package/apps/studio/design-setup-readiness.ts +2 -2
- package/apps/studio/diagnostics/store.ts +220 -0
- package/apps/studio/dist/client.bundle.js +2429 -2329
- package/apps/studio/dist/comment-mount.js +12 -9
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/dom-selection.ts +239 -23
- package/apps/studio/drag-bus.ts +211 -0
- package/apps/studio/draw/serialize-animate.ts +4 -4
- package/apps/studio/ds/board/board-specimen.css +199 -0
- package/apps/studio/ds/board/board.css +674 -0
- package/apps/studio/ds/board/brand-notes.ts +92 -0
- package/apps/studio/ds/board/build-model.ts +418 -0
- package/apps/studio/ds/board/component-states.ts +111 -0
- package/apps/studio/ds/board/directions-model.ts +145 -0
- package/apps/studio/ds/board/directions.css +169 -0
- package/apps/studio/ds/board/directions.tsx +100 -0
- package/apps/studio/ds/board/ds-bar.tsx +107 -0
- package/apps/studio/ds/board/index.tsx +71 -0
- package/apps/studio/ds/board/logo-paint.ts +118 -0
- package/apps/studio/ds/board/outline.tsx +127 -0
- package/apps/studio/ds/board/parts.tsx +160 -0
- package/apps/studio/ds/board/section-brand.tsx +148 -0
- package/apps/studio/ds/board/section-colour.tsx +160 -0
- package/apps/studio/ds/board/section-components.tsx +146 -0
- package/apps/studio/ds/board/section-motion.tsx +106 -0
- package/apps/studio/ds/board/section-patterns.tsx +89 -0
- package/apps/studio/ds/board/section-space.tsx +109 -0
- package/apps/studio/ds/board/section-type.tsx +129 -0
- package/apps/studio/ds/board/specimen.tsx +61 -0
- package/apps/studio/ds/board/state.ts +105 -0
- package/apps/studio/ds/board/template.ts +152 -0
- package/apps/studio/ds/board/types.ts +346 -0
- package/apps/studio/ds/canvas-check.ts +914 -0
- package/apps/studio/ds/canvas-cli.ts +346 -0
- package/apps/studio/ds/check-system-verb.ts +88 -0
- package/apps/studio/ds/check-system.ts +293 -0
- package/apps/studio/ds/check.ts +541 -0
- package/apps/studio/ds/cli.ts +348 -0
- package/apps/studio/ds/component-list.ts +150 -0
- package/apps/studio/ds/contrast.ts +438 -0
- package/apps/studio/ds/convert-map.ts +126 -0
- package/apps/studio/ds/convert.ts +603 -0
- package/apps/studio/ds/css-scan.ts +292 -0
- package/apps/studio/ds/default-components.tsx +377 -0
- package/apps/studio/ds/default.ts +58 -0
- package/apps/studio/ds/design-system.tsx.tpl +40 -0
- package/apps/studio/ds/ds-resolver.ts +205 -0
- package/apps/studio/ds/ds-verb.ts +563 -0
- package/apps/studio/ds/edges.ts +412 -0
- package/apps/studio/ds/emit.ts +217 -0
- package/apps/studio/ds/engine.ts +1652 -0
- package/apps/studio/ds/fallbacks.ts +116 -0
- package/apps/studio/ds/generate.ts +746 -0
- package/apps/studio/ds/head.ts +372 -0
- package/apps/studio/ds/instance-info.ts +90 -0
- package/apps/studio/ds/library.ts +1137 -0
- package/apps/studio/ds/make.ts +726 -0
- package/apps/studio/ds/migrate-emitter.ts +42 -0
- package/apps/studio/ds/nearest.ts +163 -0
- package/apps/studio/ds/outside.ts +343 -0
- package/apps/studio/ds/override-map.ts +213 -0
- package/apps/studio/ds/pairing-css.ts +145 -0
- package/apps/studio/ds/pin-scope.ts +268 -0
- package/apps/studio/ds/registry.ts +228 -0
- package/apps/studio/ds/rename.ts +104 -0
- package/apps/studio/ds/render-rev.ts +144 -0
- package/apps/studio/ds/revision.ts +268 -0
- package/apps/studio/ds/shell-fallbacks.ts +84 -0
- package/apps/studio/ds/switch.ts +426 -0
- package/apps/studio/ds/system-files.ts +251 -0
- package/apps/studio/ds/system.ts +312 -0
- package/apps/studio/ds/undo-hook.ts +46 -0
- package/apps/studio/ds/upgrade-apply.ts +258 -0
- package/apps/studio/ds/upgrade-cli.ts +216 -0
- package/apps/studio/ds/upgrade-codemod.ts +116 -0
- package/apps/studio/ds/upgrade-progress.ts +153 -0
- package/apps/studio/ds/upgrade-prove.ts +429 -0
- package/apps/studio/ds/upgrade-stage.ts +387 -0
- package/apps/studio/ds/upgrade.ts +394 -0
- package/apps/studio/ds/value-types.ts +190 -0
- package/apps/studio/edit-ops/align.ts +43 -0
- package/apps/studio/edit-ops/arrange.ts +93 -0
- package/apps/studio/edit-ops/artboard-facts.ts +70 -0
- package/apps/studio/edit-ops/artboard-resize.ts +50 -0
- package/apps/studio/edit-ops/artboard-trash.ts +77 -0
- package/apps/studio/edit-ops/clear-link.ts +16 -0
- package/apps/studio/edit-ops/clip/captions.ts +154 -0
- package/apps/studio/edit-ops/clip/comp.ts +124 -0
- package/apps/studio/edit-ops/clip/cut-source-range.ts +100 -0
- package/apps/studio/edit-ops/clip/cut-to-beat.ts +136 -0
- package/apps/studio/edit-ops/clip/duck.ts +123 -0
- package/apps/studio/edit-ops/clip/easing.ts +76 -0
- package/apps/studio/edit-ops/clip/formats.ts +163 -0
- package/apps/studio/edit-ops/clip/gestures.ts +161 -0
- package/apps/studio/edit-ops/clip/index.ts +543 -0
- package/apps/studio/edit-ops/clip/jsx.ts +251 -0
- package/apps/studio/edit-ops/clip/place.ts +127 -0
- package/apps/studio/edit-ops/clip/reframe.ts +194 -0
- package/apps/studio/edit-ops/clip/take-swap.ts +53 -0
- package/apps/studio/edit-ops/clip/title-motion.ts +103 -0
- package/apps/studio/edit-ops/clip/title-style.ts +177 -0
- package/apps/studio/edit-ops/clip/track.ts +102 -0
- package/apps/studio/edit-ops/clipboard.ts +482 -0
- package/apps/studio/edit-ops/combine.ts +264 -0
- package/apps/studio/edit-ops/constraints.ts +148 -0
- package/apps/studio/edit-ops/convert-kind.ts +203 -0
- package/apps/studio/edit-ops/corner-radius.ts +86 -0
- package/apps/studio/edit-ops/crop.ts +303 -0
- package/apps/studio/edit-ops/czech-ties.ts +84 -0
- package/apps/studio/edit-ops/detach-instance.ts +119 -0
- package/apps/studio/edit-ops/dispatch.ts +552 -0
- package/apps/studio/edit-ops/distribute.ts +31 -0
- package/apps/studio/edit-ops/ds-instance-update.ts +46 -0
- package/apps/studio/edit-ops/ds-use-nearest.ts +72 -0
- package/apps/studio/edit-ops/duplicate-at-width.ts +241 -0
- package/apps/studio/edit-ops/frame.ts +68 -0
- package/apps/studio/edit-ops/guides.ts +67 -0
- package/apps/studio/edit-ops/hide.ts +30 -0
- package/apps/studio/edit-ops/hover-rules.ts +94 -0
- package/apps/studio/edit-ops/image-fit.ts +571 -0
- package/apps/studio/edit-ops/insert-component.ts +344 -0
- package/apps/studio/edit-ops/insert-preset.ts +151 -0
- package/apps/studio/edit-ops/insert-shape.ts +326 -0
- package/apps/studio/edit-ops/instance-model.ts +286 -0
- package/apps/studio/edit-ops/instance-tree.ts +215 -0
- package/apps/studio/edit-ops/layout-patch.ts +81 -0
- package/apps/studio/edit-ops/lock.ts +30 -0
- package/apps/studio/edit-ops/op-label.ts +155 -0
- package/apps/studio/edit-ops/path-model.ts +671 -0
- package/apps/studio/edit-ops/path.ts +172 -0
- package/apps/studio/edit-ops/photo-every-use.ts +64 -0
- package/apps/studio/edit-ops/photo-use.ts +41 -0
- package/apps/studio/edit-ops/place-freely.ts +47 -0
- package/apps/studio/edit-ops/place-plan.ts +60 -0
- package/apps/studio/edit-ops/print.ts +104 -0
- package/apps/studio/edit-ops/references.ts +231 -0
- package/apps/studio/edit-ops/relink.ts +49 -0
- package/apps/studio/edit-ops/reorder.ts +104 -0
- package/apps/studio/edit-ops/reset-overrides.ts +75 -0
- package/apps/studio/edit-ops/revert.ts +63 -0
- package/apps/studio/edit-ops/rotate.ts +58 -0
- package/apps/studio/edit-ops/safe-zones.ts +38 -0
- package/apps/studio/edit-ops/scope-names.ts +151 -0
- package/apps/studio/edit-ops/select-matching.ts +48 -0
- package/apps/studio/edit-ops/set-gap.ts +65 -0
- package/apps/studio/edit-ops/set-id.ts +42 -0
- package/apps/studio/edit-ops/set-link.ts +39 -0
- package/apps/studio/edit-ops/siblings.ts +105 -0
- package/apps/studio/edit-ops/slot-defaults.ts +48 -0
- package/apps/studio/edit-ops/stamp.ts +27 -0
- package/apps/studio/edit-ops/swap-variant.ts +163 -0
- package/apps/studio/edit-ops/text-copy.ts +146 -0
- package/apps/studio/edit-ops/text-detach.ts +62 -0
- package/apps/studio/edit-ops/text-style-ops.ts +131 -0
- package/apps/studio/edit-ops/text-style.ts +141 -0
- package/apps/studio/edit-ops/tidy.ts +72 -0
- package/apps/studio/edit-ops/types.ts +229 -0
- package/apps/studio/edit-ops/unframe.ts +53 -0
- package/apps/studio/edit-ops/words-css.ts +487 -0
- package/apps/studio/edit-ops/words-paint.ts +521 -0
- package/apps/studio/edit-ops/z-order.ts +81 -0
- package/apps/studio/editing/ai-point-ring.tsx +158 -0
- package/apps/studio/editing/ai-scope-outline.tsx +180 -0
- package/apps/studio/editing/align-bar.tsx +510 -0
- package/apps/studio/editing/anchor-report.ts +123 -0
- package/apps/studio/editing/anchor-reporter.tsx +64 -0
- package/apps/studio/editing/aria-live.tsx +162 -0
- package/apps/studio/editing/arrange.ts +345 -0
- package/apps/studio/editing/artboard-actions.ts +275 -0
- package/apps/studio/editing/artboard-commands.tsx +232 -0
- package/apps/studio/editing/artboard-guides.tsx +265 -0
- package/apps/studio/editing/artboard-handles.tsx +524 -0
- package/apps/studio/editing/artboard-menu.tsx +153 -0
- package/apps/studio/editing/artboard-resize.ts +306 -0
- package/apps/studio/editing/ask-bubble.tsx +161 -0
- package/apps/studio/editing/asset-drag.ts +70 -0
- package/apps/studio/editing/click-to-type.ts +207 -0
- package/apps/studio/editing/clipboard-actions.ts +91 -0
- package/apps/studio/editing/clipboard.ts +194 -0
- package/apps/studio/editing/clipped-grab.ts +45 -0
- package/apps/studio/editing/corner-dots.tsx +394 -0
- package/apps/studio/editing/crop-geometry.ts +128 -0
- package/apps/studio/editing/crop-mode.tsx +522 -0
- package/apps/studio/editing/crumbs.ts +158 -0
- package/apps/studio/editing/draw-geometry.ts +151 -0
- package/apps/studio/editing/draw-tools.tsx +490 -0
- package/apps/studio/editing/drop-chip.tsx +105 -0
- package/apps/studio/editing/duplicate-rhythm.ts +166 -0
- package/apps/studio/editing/edit-chrome-gate.tsx +58 -0
- package/apps/studio/editing/edit-op.ts +90 -0
- package/apps/studio/editing/empty-report.ts +182 -0
- package/apps/studio/editing/empty-reporter.tsx +74 -0
- package/apps/studio/editing/figma-paste.ts +71 -0
- package/apps/studio/editing/finder-drop-model.ts +130 -0
- package/apps/studio/editing/finder-drop.tsx +400 -0
- package/apps/studio/editing/focus-model.tsx +429 -0
- package/apps/studio/editing/gap-bands.tsx +257 -0
- package/apps/studio/editing/hold-rings.tsx +461 -0
- package/apps/studio/editing/image-drop.tsx +193 -0
- package/apps/studio/editing/index.tsx +402 -0
- package/apps/studio/editing/instance-actions.ts +152 -0
- package/apps/studio/editing/kids-summary.ts +75 -0
- package/apps/studio/editing/kind-dim.tsx +54 -0
- package/apps/studio/editing/layout-actions.ts +159 -0
- package/apps/studio/editing/lock-badge.tsx +178 -0
- package/apps/studio/editing/long-page.ts +102 -0
- package/apps/studio/editing/minimap-context.tsx +161 -0
- package/apps/studio/editing/nudge.tsx +212 -0
- package/apps/studio/editing/object-actions.ts +156 -0
- package/apps/studio/editing/object-keys.ts +58 -0
- package/apps/studio/editing/object-menu.tsx +216 -0
- package/apps/studio/editing/object-ops.ts +114 -0
- package/apps/studio/editing/paste-bar.tsx +388 -0
- package/apps/studio/editing/pen/combine-run.ts +113 -0
- package/apps/studio/editing/pen/draw.tsx +364 -0
- package/apps/studio/editing/pen/index.tsx +48 -0
- package/apps/studio/editing/pen/overlay.tsx +147 -0
- package/apps/studio/editing/pen/pen-geometry.ts +234 -0
- package/apps/studio/editing/pen/point-store.ts +64 -0
- package/apps/studio/editing/pen/points.tsx +421 -0
- package/apps/studio/editing/place-freely.tsx +389 -0
- package/apps/studio/editing/place-ghost.tsx +418 -0
- package/apps/studio/editing/place-image.tsx +219 -0
- package/apps/studio/editing/preset-ruler.tsx +218 -0
- package/apps/studio/editing/rename-order.ts +58 -0
- package/apps/studio/editing/reorder-slot.tsx +567 -0
- package/apps/studio/editing/rotate-handle.tsx +353 -0
- package/apps/studio/editing/selection.tsx +319 -0
- package/apps/studio/editing/set-gap.ts +55 -0
- package/apps/studio/editing/size-ghost.tsx +343 -0
- package/apps/studio/editing/space-tap.ts +56 -0
- package/apps/studio/editing/sticky-name.tsx +112 -0
- package/apps/studio/editing/tab-order.tsx +298 -0
- package/apps/studio/editing/take-keys.ts +115 -0
- package/apps/studio/editing/text-actions.ts +214 -0
- package/apps/studio/editing/text-in-place.tsx +187 -0
- package/apps/studio/editing/tidy-preview.tsx +83 -0
- package/apps/studio/editing/token-ruler.tsx +231 -0
- package/apps/studio/editing/type-role.ts +122 -0
- package/apps/studio/editing/undo-preview.tsx +120 -0
- package/apps/studio/editing/video-label.ts +66 -0
- package/apps/studio/editing/video-play.ts +65 -0
- package/apps/studio/editing/world-menu.ts +36 -0
- package/apps/studio/element-ids.ts +1030 -0
- package/apps/studio/equal-spacing-handles.tsx +1 -1
- package/apps/studio/exporters/_runtime.ts +64 -24
- package/apps/studio/exporters/audio.ts +136 -0
- package/apps/studio/exporters/door-fingerprint.ts +202 -0
- package/apps/studio/exporters/estimate.ts +314 -0
- package/apps/studio/exporters/file-names.ts +197 -0
- package/apps/studio/exporters/format-scopes.ts +7 -1
- package/apps/studio/exporters/hub-render-door.ts +368 -0
- package/apps/studio/exporters/index.ts +53 -7
- package/apps/studio/exporters/jobs.ts +484 -80
- package/apps/studio/exporters/jpg.ts +21 -0
- package/apps/studio/exporters/pdf-fonts.ts +102 -0
- package/apps/studio/exporters/pdf.ts +133 -14
- package/apps/studio/exporters/png.ts +136 -9
- package/apps/studio/exporters/print-back.ts +92 -0
- package/apps/studio/exporters/print-preflight.ts +373 -0
- package/apps/studio/exporters/rects-runner.ts +130 -0
- package/apps/studio/exporters/remote.ts +726 -3
- package/apps/studio/exporters/render-seconds.ts +57 -0
- package/apps/studio/exporters/replay.ts +48 -0
- package/apps/studio/exporters/scope.ts +560 -15
- package/apps/studio/exporters/spec-run.ts +270 -0
- package/apps/studio/exporters/spec-v2.ts +408 -0
- package/apps/studio/exporters/video-cap.ts +280 -0
- package/apps/studio/exporters/wait-ai.ts +192 -0
- package/apps/studio/figma/client.ts +67 -0
- package/apps/studio/figma/comments-to-pins.ts +249 -0
- package/apps/studio/figma/comments-to-strokes.ts +6 -1
- package/apps/studio/figma/into-board.ts +141 -0
- package/apps/studio/figma/to-strokes.ts +54 -0
- package/apps/studio/format.ts +172 -30
- package/apps/studio/fs-watch.ts +28 -1
- package/apps/studio/generation/adapters/gemini.ts +3 -0
- package/apps/studio/generation/adapters/stub.ts +133 -0
- package/apps/studio/generation/gen-sidecar.ts +108 -0
- package/apps/studio/generation/registry.ts +16 -5
- package/apps/studio/generation/takes.ts +398 -0
- package/apps/studio/generation/types.ts +7 -0
- package/apps/studio/git/service.ts +143 -14
- package/apps/studio/github/endpoints.ts +1 -1
- package/apps/studio/github/identity-cache.ts +53 -14
- package/apps/studio/handoff/blockers.ts +120 -0
- package/apps/studio/handoff/run.ts +233 -0
- package/apps/studio/handoff/targets.ts +334 -0
- package/apps/studio/handoff/write-scopes.ts +57 -0
- package/apps/studio/handoff.ts +24 -5
- package/apps/studio/history/changes.ts +199 -0
- package/apps/studio/history/describe-annotations.ts +216 -0
- package/apps/studio/history/describe-css.ts +592 -0
- package/apps/studio/history/describe-match.ts +866 -0
- package/apps/studio/history/describe-meta.ts +281 -0
- package/apps/studio/history/describe-version.ts +89 -0
- package/apps/studio/history/describe-words.ts +513 -0
- package/apps/studio/history/describe.ts +1452 -0
- package/apps/studio/history/last-good.ts +123 -0
- package/apps/studio/history/links.ts +112 -0
- package/apps/studio/history/object-history.ts +535 -0
- package/apps/studio/history/render-ok-signal.ts +81 -0
- package/apps/studio/history/restore-artboard-action.ts +183 -0
- package/apps/studio/history/restore-artboard.ts +607 -0
- package/apps/studio/history/restore-object.ts +168 -0
- package/apps/studio/history/run-label.ts +18 -0
- package/apps/studio/history/surface-requests.ts +115 -0
- package/apps/studio/history/titles.ts +259 -0
- package/apps/studio/history/trash.ts +314 -0
- package/apps/studio/history/version-lanes.ts +115 -0
- package/apps/studio/history/versions.ts +458 -0
- package/apps/studio/hmr-broadcast.ts +55 -1
- package/apps/studio/home/ai.ts +79 -0
- package/apps/studio/home/cli.ts +221 -0
- package/apps/studio/home/cloud.ts +297 -0
- package/apps/studio/home/create-local.ts +164 -0
- package/apps/studio/home/github.ts +99 -0
- package/apps/studio/home/hub.ts +340 -0
- package/apps/studio/home/index-gc.ts +288 -0
- package/apps/studio/home/index-reader.ts +338 -0
- package/apps/studio/home/invite.ts +204 -0
- package/apps/studio/home/main.ts +159 -0
- package/apps/studio/home/pid.ts +12 -0
- package/apps/studio/home/routes.ts +591 -0
- package/apps/studio/home/signin.ts +285 -0
- package/apps/studio/home/user-state.ts +177 -0
- package/apps/studio/home/whats-new.ts +42 -0
- package/apps/studio/http.ts +2589 -947
- package/apps/studio/index/assets-response.ts +34 -0
- package/apps/studio/index/assets.ts +335 -0
- package/apps/studio/index/ds-usage.ts +983 -0
- package/apps/studio/index/extract.ts +348 -0
- package/apps/studio/index/extractors/asset-usage.ts +349 -0
- package/apps/studio/index/extractors/attribution-cache.ts +225 -0
- package/apps/studio/index/history-refs.ts +301 -0
- package/apps/studio/index/history-source.ts +39 -0
- package/apps/studio/index/match.ts +307 -0
- package/apps/studio/index/scan-kick.ts +47 -0
- package/apps/studio/index/service.ts +367 -0
- package/apps/studio/index/snapshot.ts +135 -0
- package/apps/studio/index/types.ts +139 -0
- package/apps/studio/index/version-feed.ts +71 -0
- package/apps/studio/input-router.tsx +522 -55
- package/apps/studio/inspect-canvas.ts +86 -0
- package/apps/studio/inspect-overlay.tsx +192 -0
- package/apps/studio/inspect.ts +96 -33
- package/apps/studio/kinds/convert.ts +175 -0
- package/apps/studio/kinds/export-defaults.ts +42 -0
- package/apps/studio/kinds/meta.ts +237 -0
- package/apps/studio/kinds/physical.ts +84 -0
- package/apps/studio/kinds/presets.ts +452 -0
- package/apps/studio/kinds/print-custom.ts +165 -0
- package/apps/studio/kinds/print-edit.ts +130 -0
- package/apps/studio/kinds/print-guides.ts +23 -0
- package/apps/studio/kinds/safe-zones.ts +250 -0
- package/apps/studio/kinds/warnings.ts +422 -0
- package/apps/studio/layer-name.ts +148 -0
- package/apps/studio/layout/free-space.ts +131 -0
- package/apps/studio/link-chip-overlay.tsx +175 -0
- package/apps/studio/link-import.ts +617 -0
- package/apps/studio/loopback-listen.ts +105 -0
- package/apps/studio/macro-guard.ts +67 -0
- package/apps/studio/managed-projects.ts +63 -14
- package/apps/studio/marquee-overlay.tsx +2 -2
- package/apps/studio/measure-overlay.tsx +10 -4
- package/apps/studio/migrate/cli.ts +164 -0
- package/apps/studio/migrate/ds-registry.ts +42 -0
- package/apps/studio/migrate/engine.ts +926 -0
- package/apps/studio/migrate/hub.ts +219 -0
- package/apps/studio/migrate/steps.ts +627 -0
- package/apps/studio/notifications.tsx +197 -52
- package/apps/studio/outbox/content.ts +139 -0
- package/apps/studio/outbox/drain.ts +269 -0
- package/apps/studio/outbox/hub-reachability.ts +58 -0
- package/apps/studio/outbox/index.ts +57 -0
- package/apps/studio/outbox/policy.ts +859 -0
- package/apps/studio/outbox/senders/export-cloud.ts +116 -0
- package/apps/studio/outbox/store.ts +336 -0
- package/apps/studio/outbox/types.ts +160 -0
- package/apps/studio/participants-chrome.tsx +178 -60
- package/apps/studio/paths.ts +8 -0
- package/apps/studio/photo-store.ts +230 -1
- package/apps/studio/port.ts +93 -0
- package/apps/studio/presence/canvas-presence.tsx +522 -0
- package/apps/studio/presence/fields.ts +93 -0
- package/apps/studio/presence/model.ts +296 -0
- package/apps/studio/presence/tones.ts +39 -0
- package/apps/studio/present/fit.ts +138 -0
- package/apps/studio/present/follow.ts +142 -0
- package/apps/studio/present/media-presence.ts +105 -0
- package/apps/studio/present/meta-schema.ts +612 -0
- package/apps/studio/present/order.ts +153 -0
- package/apps/studio/present/pointer-dot.tsx +379 -0
- package/apps/studio/present/pointer-point.ts +24 -0
- package/apps/studio/present/present-media.ts +446 -0
- package/apps/studio/present/present-stage.tsx +1018 -0
- package/apps/studio/present/present-zoom.ts +63 -0
- package/apps/studio/present/relay-strip.ts +136 -0
- package/apps/studio/preview/preview-camera.tsx +442 -0
- package/apps/studio/preview/wheel-scroll.ts +85 -0
- package/apps/studio/print/units.ts +3 -0
- package/apps/studio/print-overlay-content.tsx +127 -10
- package/apps/studio/read-only-mode.ts +83 -0
- package/apps/studio/readiness.ts +18 -3
- package/apps/studio/ripple.ts +19 -1
- package/apps/studio/routes/agent.ts +1025 -0
- package/apps/studio/routes/ai.ts +422 -0
- package/apps/studio/routes/annotations.ts +649 -0
- package/apps/studio/routes/asset-details.ts +87 -0
- package/apps/studio/routes/asset-rename.ts +60 -0
- package/apps/studio/routes/asset-state.ts +137 -0
- package/apps/studio/routes/asset-trash.ts +77 -0
- package/apps/studio/routes/assets.ts +217 -0
- package/apps/studio/routes/availability.ts +94 -0
- package/apps/studio/routes/canvas-meta-rider.ts +304 -0
- package/apps/studio/routes/canvas-origin.ts +88 -0
- package/apps/studio/routes/canvas-source.ts +315 -0
- package/apps/studio/routes/chat-attach.ts +335 -0
- package/apps/studio/routes/chat.ts +137 -0
- package/apps/studio/routes/cloud-move.ts +364 -0
- package/apps/studio/routes/cloud-plan.ts +36 -0
- package/apps/studio/routes/comments.ts +118 -0
- package/apps/studio/routes/connections.ts +132 -0
- package/apps/studio/routes/describe.ts +122 -0
- package/apps/studio/routes/diagnostics.ts +118 -0
- package/apps/studio/routes/ds-check.ts +124 -0
- package/apps/studio/routes/ds-convert.ts +55 -0
- package/apps/studio/routes/ds-edges.ts +136 -0
- package/apps/studio/routes/ds-library.ts +194 -0
- package/apps/studio/routes/ds-make.ts +91 -0
- package/apps/studio/routes/ds-switch.ts +68 -0
- package/apps/studio/routes/ds-upgrade.ts +139 -0
- package/apps/studio/routes/ds.ts +808 -0
- package/apps/studio/routes/edit.ts +658 -0
- package/apps/studio/routes/element-links.ts +155 -0
- package/apps/studio/routes/export.ts +486 -0
- package/apps/studio/routes/figma.ts +200 -0
- package/apps/studio/routes/generate.ts +443 -0
- package/apps/studio/routes/handoff.ts +319 -0
- package/apps/studio/routes/help-guides.ts +37 -0
- package/apps/studio/routes/history.ts +739 -0
- package/apps/studio/routes/import-link.ts +186 -0
- package/apps/studio/routes/index.ts +293 -0
- package/apps/studio/routes/kinds.ts +257 -0
- package/apps/studio/routes/links.ts +72 -0
- package/apps/studio/routes/outbox.ts +87 -0
- package/apps/studio/routes/photo-every-use.ts +241 -0
- package/apps/studio/routes/pins.ts +66 -0
- package/apps/studio/routes/present.ts +187 -0
- package/apps/studio/routes/project-format.ts +148 -0
- package/apps/studio/routes/project-undo.ts +497 -0
- package/apps/studio/routes/settings.ts +179 -0
- package/apps/studio/routes/share.ts +463 -0
- package/apps/studio/routes/shell.ts +137 -0
- package/apps/studio/routes/sync-conflicts.ts +150 -0
- package/apps/studio/routes/sync.ts +172 -0
- package/apps/studio/routes/table.ts +224 -0
- package/apps/studio/routes/trash.ts +393 -0
- package/apps/studio/routes/video.ts +395 -0
- package/apps/studio/routes/votes.ts +486 -0
- package/apps/studio/safe-zones-overlay.tsx +269 -0
- package/apps/studio/scaffold-design.ts +72 -124
- package/apps/studio/schema/annotations.v2.schema.json +2303 -0
- package/apps/studio/schema/beats.v1.schema.json +94 -0
- package/apps/studio/schema/canvas-meta.v2.schema.json +264 -0
- package/apps/studio/schema/canvas-tsx.md +357 -0
- package/apps/studio/schema/comments.v2.schema.json +125 -0
- package/apps/studio/schema/ds-components-v1.schema.json +96 -0
- package/apps/studio/schema/ds-formats.md +146 -0
- package/apps/studio/schema/ds-head-v1.schema.json +67 -0
- package/apps/studio/schema/ds-revision-v1.schema.json +31 -0
- package/apps/studio/schema/ds-schema-v1.fallbacks.css +118 -0
- package/apps/studio/schema/ds-schema-v1.json +2029 -0
- package/apps/studio/schema/ds-schema-v1.schema.json +663 -0
- package/apps/studio/schema/ds-tokens-v1.schema.json +210 -0
- package/apps/studio/schema/edl.v1.schema.json +124 -0
- package/apps/studio/schema/formats.ts +175 -0
- package/apps/studio/schema/gen.v1.schema.json +33 -0
- package/apps/studio/schema/transcript.v1.schema.json +133 -0
- package/apps/studio/server.ts +454 -166
- package/apps/studio/shell/info-file.ts +54 -0
- package/apps/studio/shell/parent-watch.ts +97 -0
- package/apps/studio/shell/profile.ts +61 -0
- package/apps/studio/shell-canvas-file.ts +36 -0
- package/apps/studio/skip-dirs.ts +455 -0
- package/apps/studio/spoof-chars.ts +17 -0
- package/apps/studio/static-lane.ts +212 -0
- package/apps/studio/sync/accepted-cold-start.ts +35 -13
- package/apps/studio/sync/accepted-link.ts +524 -27
- package/apps/studio/sync/access-notices.ts +143 -0
- package/apps/studio/sync/action-feed.ts +145 -0
- package/apps/studio/sync/action-stage.ts +831 -165
- package/apps/studio/sync/asset-push.ts +24 -2
- package/apps/studio/sync/asset-state.ts +391 -0
- package/apps/studio/sync/atomic-write.ts +42 -1
- package/apps/studio/sync/availability.ts +185 -0
- package/apps/studio/sync/canvas-path.ts +70 -6
- package/apps/studio/sync/cell-pairing.ts +5 -24
- package/apps/studio/sync/comment-door.ts +104 -0
- package/apps/studio/sync/conflict-record.ts +186 -0
- package/apps/studio/sync/create-collision.ts +297 -0
- package/apps/studio/sync/ctl-provider.ts +13 -1
- package/apps/studio/sync/file-membership.ts +95 -10
- package/apps/studio/sync/file-plane.ts +76 -7
- package/apps/studio/sync/format-sync.ts +13 -7
- package/apps/studio/sync/history-fields.ts +61 -0
- package/apps/studio/sync/hub-link.ts +24 -4
- package/apps/studio/sync/hub-text-undo.ts +178 -0
- package/apps/studio/sync/hubs-config.ts +122 -20
- package/apps/studio/sync/index.ts +1444 -127
- package/apps/studio/sync/journal-client.ts +44 -0
- package/apps/studio/sync/keep-both.ts +187 -0
- package/apps/studio/sync/link-consent.ts +390 -0
- package/apps/studio/sync/local-kernel.ts +2725 -0
- package/apps/studio/sync/media-gate.ts +97 -0
- package/apps/studio/sync/object-conflict.ts +199 -0
- package/apps/studio/sync/poke.ts +20 -0
- package/apps/studio/sync/presentation.ts +14 -1
- package/apps/studio/sync/project-config-push.ts +5 -2
- package/apps/studio/sync/projection.ts +201 -34
- package/apps/studio/sync/resync-trace.ts +220 -0
- package/apps/studio/sync/status.ts +8 -1
- package/apps/studio/sync/supervisor.ts +20 -2
- package/apps/studio/sync/transaction-client.ts +364 -34
- package/apps/studio/sync/trash-clear-copies.ts +120 -0
- package/apps/studio/sync/trash-watch.ts +157 -0
- package/apps/studio/sync/trash.ts +50 -2
- package/apps/studio/sync/undo-target.ts +110 -0
- package/apps/studio/sync/workspace-signin.ts +14 -3
- package/apps/studio/sync/write-hold.ts +238 -0
- package/apps/studio/sync/writer-registry.ts +380 -5
- package/apps/studio/sync-name-key.ts +59 -0
- package/apps/studio/thumbs/keys.ts +147 -0
- package/apps/studio/thumbs/routes.ts +68 -0
- package/apps/studio/thumbs/service.ts +884 -0
- package/apps/studio/thumbs/store.ts +114 -0
- package/apps/studio/thumbs/validate.ts +62 -0
- package/apps/studio/tool-palette.tsx +782 -563
- package/apps/studio/toolbars/marker-tip.ts +22 -0
- package/apps/studio/toolbars/shell-panels.ts +55 -0
- package/apps/studio/toolbars/tool-panel.ts +89 -0
- package/apps/studio/toolbars/toolbar-css.ts +283 -0
- package/apps/studio/toolbars/toolbar-icons.tsx +135 -0
- package/apps/studio/toolbars/toolbar-rect.ts +82 -0
- package/apps/studio/ui-prefs-migrate.ts +467 -0
- package/apps/studio/ui-prefs.ts +305 -3
- package/apps/studio/undo-stack.ts +10 -0
- package/apps/studio/use-annotation-resize.tsx +23 -17
- package/apps/studio/use-artboard-drag.tsx +156 -15
- package/apps/studio/use-canvas-keys.ts +58 -0
- package/apps/studio/use-chrome-visibility.tsx +13 -0
- package/apps/studio/use-collab.tsx +556 -56
- package/apps/studio/use-element-resize.tsx +13 -9
- package/apps/studio/use-governed-mode.ts +23 -0
- package/apps/studio/use-keyboard-discipline.tsx +114 -49
- package/apps/studio/use-selection-set.tsx +110 -9
- package/apps/studio/use-snap-guides.tsx +74 -5
- package/apps/studio/use-spacing-handles.tsx +90 -27
- package/apps/studio/use-tool-mode.tsx +204 -10
- package/apps/studio/use-undo-stack.tsx +19 -23
- package/apps/studio/video/beats.ts +484 -0
- package/apps/studio/video/decode-webaudio.ts +115 -0
- package/apps/studio/video/decode.ts +288 -0
- package/apps/studio/video/derive.ts +647 -0
- package/apps/studio/video/format-ids.ts +158 -0
- package/apps/studio/video/framing.ts +246 -0
- package/apps/studio/video/inject.ts +324 -0
- package/apps/studio/video/keyframes.ts +356 -0
- package/apps/studio/video/link-groups.ts +40 -0
- package/apps/studio/video/linked-formats.ts +142 -0
- package/apps/studio/video/mask-comments.ts +36 -0
- package/apps/studio/video/media-analysis.ts +169 -0
- package/apps/studio/video/reel-place.ts +286 -0
- package/apps/studio/video/reframe-read.ts +90 -0
- package/apps/studio/video/schema.ts +422 -0
- package/apps/studio/video/speech.ts +129 -0
- package/apps/studio/video/title-motion.ts +85 -0
- package/apps/studio/video/transcript-cut.ts +91 -0
- package/apps/studio/video/whisper-parse.ts +123 -0
- package/apps/studio/video/words-run.ts +210 -0
- package/apps/studio/video/words-timing.ts +222 -0
- package/apps/studio/video-comp.tsx +238 -9
- package/apps/studio/video-links-overlay.tsx +272 -0
- package/apps/studio/video-natural.ts +73 -0
- package/apps/studio/video-play-chrome.tsx +229 -0
- package/apps/studio/video-play-overlay.tsx +190 -0
- package/apps/studio/video-vocab.tsx +460 -0
- package/apps/studio/view-only-gesture.tsx +101 -0
- package/apps/studio/viewport-fit.ts +28 -0
- package/apps/studio/web-overlay-content.tsx +4 -2
- package/apps/studio/whats-new.json +55 -20
- package/apps/studio/whats-new.schema.json +10 -0
- package/apps/studio/whats-new.ts +4 -0
- package/apps/studio/workspace-mode.ts +10 -0
- package/apps/studio/ws.ts +299 -8
- package/cli/bin/maude.mjs +1 -0
- package/cli/commands/design.mjs +401 -72
- package/cli/commands/flow.mjs +12 -1
- package/cli/commands/help.mjs +8 -0
- package/cli/commands/migrate.mjs +55 -0
- package/cli/lib/bash-guard.mjs +1691 -0
- package/cli/lib/confine-out.mjs +150 -0
- package/cli/lib/confine-read.mjs +179 -0
- package/cli/lib/confine-root.mjs +157 -0
- package/cli/lib/design-help.gen.mjs +119 -0
- package/cli/lib/design-hook.mjs +1764 -0
- package/cli/lib/design-link.mjs +68 -4
- package/cli/lib/design-open.mjs +238 -0
- package/cli/lib/export-spec.mjs +394 -0
- package/cli/lib/finding-text.mjs +63 -0
- package/cli/lib/flow-usage.mjs +6 -10
- package/cli/lib/gitignore-block.mjs +1 -0
- package/cli/lib/handoff.mjs +285 -0
- package/cli/lib/handoff.schema.json +336 -0
- package/cli/lib/hubs-config.mjs +10 -0
- package/cli/lib/json-schema-lite.mjs +260 -0
- package/cli/lib/project-links.mjs +88 -0
- package/cli/lib/studio-locate.mjs +83 -0
- package/cli/lib/sub-verbs.mjs +111 -0
- package/cli/lib/workspace-plan.mjs +16 -3
- package/package.json +29 -10
- package/plugins/design/README.md +46 -0
- package/plugins/design/templates/_shell.html +749 -69
- package/plugins/design/templates/blank-canvas.tsx.template +26 -0
- package/plugins/design/templates/brief-board.tsx.template +12 -11
- package/plugins/design/templates/canvas.tsx.template +3 -3
- package/plugins/design/templates/design-system-inspiration/core/README.philosophy.md.tpl +104 -0
- package/plugins/design/templates/design-system-inspiration/core/colors_and_type.css.tpl +38 -3
- package/plugins/design/templates/design-system-inspiration/core/components.json.tpl +127 -0
- package/plugins/design/templates/design-system-inspiration/core/config.json.tpl +1 -0
- package/plugins/design/templates/design-system-inspiration/core/preview/_components.css.tpl +111 -0
- package/plugins/flow/.claude-plugin/config.schema.json +6 -1
- package/apps/studio/annotations/ui/edit-actions.ts +0 -551
- package/apps/studio/canvas-header.ts +0 -165
- package/apps/studio/client/hmr.mjs +0 -113
- package/apps/studio/client/hooks/use-keyboard-shortcuts.jsx +0 -297
- package/apps/studio/client/iframe-lazy.mjs +0 -121
- package/apps/studio/client/inspector/artboard-knobs.jsx +0 -456
- package/apps/studio/client/menus/menubar.jsx +0 -856
- package/apps/studio/client/panels/CapabilityBar.jsx +0 -101
- package/apps/studio/client/panels/ClipInspector.jsx +0 -409
- package/apps/studio/client/panels/GitPanel.jsx +0 -1026
- package/apps/studio/client/panels/OnboardingWizard.jsx +0 -642
- package/apps/studio/client/panels/StickerPicker.jsx +0 -160
- package/apps/studio/client/panels/SyncPanel.jsx +0 -1190
- package/apps/studio/client/panels/TimelinePanel.jsx +0 -2259
- package/apps/studio/client/share-dialog.jsx +0 -91
- package/apps/studio/client/shell/collapsed-rail.jsx +0 -23
- package/apps/studio/client/shell/status-bar.jsx +0 -215
- package/apps/studio/client/styles/1-tokens-maude.css +0 -296
- package/apps/studio/client/styles/1-tokens.css +0 -304
- package/apps/studio/client/styles/3-shell-maude.css +0 -3158
- package/apps/studio/client/styles/3-shell.css +0 -1036
- package/apps/studio/client/styles/4-components-maude.css +0 -134
- package/apps/studio/client/styles/4-components.css +0 -2204
- package/apps/studio/client/styles/5-maude-overrides.css +0 -162
- package/apps/studio/client/styles.css +0 -1264
- package/apps/studio/contextual-toolbar.tsx +0 -512
- package/apps/studio/export-dialog.tsx +0 -827
- package/apps/studio/undo-hud.tsx +0 -16
|
@@ -3,33 +3,190 @@
|
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { SYSTEM_TAB, isModuleCanvasPath } from '../shell/constants.js';
|
|
5
5
|
import { acceptCanvasNotice } from '../../canvas-notice-message.ts';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { acceptFromCanvas, C2S_ACTIVE, DGN_TABLE } from '../../bridge/dgn-protocol.ts';
|
|
7
|
+
import { layersSlot } from '../v2/inspector/layers-slot.jsx';
|
|
8
|
+
import { notify, notifyCanvasText, notifyCanvasTriggered } from '../../notifications.tsx';
|
|
9
|
+
import { isNativeApp } from '../github.js';
|
|
10
|
+
import {
|
|
11
|
+
annotationScopeOf,
|
|
12
|
+
noteAnnotationSelection,
|
|
13
|
+
turnIntoComment,
|
|
14
|
+
undoConversion,
|
|
15
|
+
} from '../v2/annotations/annotation-asks.js';
|
|
16
|
+
import { objectHistoryTarget } from '../v2/history/object-history-ask.js';
|
|
17
|
+
import { layersTreeSig, shellToast } from '../shell/util.js';
|
|
18
|
+
// S7.21 — the toast after the inspector's "Add a width" (08 ak-web-widths) and the video artboard's length
|
|
19
|
+
import { settleDuplicateAtWidth } from '../v2/create/duplicate-done.js';
|
|
20
|
+
import { menuRunner } from '../v2/shell/menu-runner.js';
|
|
21
|
+
import { panelLayout } from '../v2/shell/use-panel-layout.js';
|
|
22
|
+
|
|
23
|
+
// 01 cf-duplicate-done / 08 ak-web-widths: a copy made is told with the copy glyph, not a success tick
|
|
24
|
+
const DUPLICATE_TOAST = { kind: 'info', icon: 'duplicate' };
|
|
25
|
+
import { settleAddedWidths } from '../v2/inspector/kinds/add-width.js';
|
|
26
|
+
import { publishVideoComps } from '../v2/inspector/kinds/video-facts.js';
|
|
8
27
|
import { resolveToolCursor } from '../../canvas-cursors.ts';
|
|
9
28
|
import { afterRecordableWrites } from '../inspector/css-knobs.jsx';
|
|
10
29
|
import { applyEditRequest } from '../apply-edit-request.ts';
|
|
11
|
-
import {
|
|
30
|
+
import {
|
|
31
|
+
editOpBody,
|
|
32
|
+
legacyRecordPayload,
|
|
33
|
+
readEditOpAnswer,
|
|
34
|
+
TRASH_RECORD_LABEL,
|
|
35
|
+
trashArtboardBody,
|
|
36
|
+
} from '../edit-op-relay.ts';
|
|
37
|
+
import {
|
|
38
|
+
frameClipResult,
|
|
39
|
+
noteClipResult,
|
|
40
|
+
notePasteIntent,
|
|
41
|
+
shapeClipRequest,
|
|
42
|
+
} from '../clipboard-relay.ts';
|
|
43
|
+
import { exportRegionOf } from '../export-region.ts';
|
|
44
|
+
import {
|
|
45
|
+
localSelectRecord,
|
|
46
|
+
RESTORE_LEAD_MS,
|
|
47
|
+
shellSelectionOf,
|
|
48
|
+
stampSelectionFile,
|
|
49
|
+
renamesOf,
|
|
50
|
+
startSelectionRestore,
|
|
51
|
+
} from '../selection-scope.js';
|
|
12
52
|
import { PHOTO_ASSET_RE } from '../inspector/inspector-panel.jsx';
|
|
13
53
|
import { sanitizeArtboardText } from '../panels/timeline-comp-target.js';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
54
|
+
import { runActionMessage, runForwardedKey } from '../actions/shell-key-handlers.js';
|
|
55
|
+
import {
|
|
56
|
+
browserCaptureEligible,
|
|
57
|
+
captureDeckViaBrowser,
|
|
58
|
+
captureScale,
|
|
59
|
+
sanitizeCapturedItems,
|
|
60
|
+
} from '../export-lane.js';
|
|
16
61
|
import { downloadCapturedBlob } from '../dialogs/export-dialog.jsx';
|
|
17
62
|
import { moveLayerNode } from '../inspector/layers.jsx';
|
|
63
|
+
import { moveLabel } from '../../edit-ops/op-label.ts';
|
|
18
64
|
import { SCREEN_PRESETS, replacedValue } from '../inspector/css-vocab.jsx';
|
|
19
65
|
import { PAPER_PRESETS, resolvePrintArtboard } from '../../print/units.ts';
|
|
66
|
+
import { bridgedExportPayload, bridgedHistory } from '../export-bridge-scope.js';
|
|
67
|
+
import { VIEW_ONLY_EVENT } from '../v2/access/access-client.js';
|
|
68
|
+
import { commentFocusMessage, replyFocusFor } from '../v2/comments/reply-focus.js';
|
|
69
|
+
import {
|
|
70
|
+
acceptCommentBridge,
|
|
71
|
+
handleCommentBridgeMessage,
|
|
72
|
+
isCommentBridgeMessage,
|
|
73
|
+
} from '../v2/comments/comment-bridge.js';
|
|
74
|
+
import { createCommentToolWatch } from '../v2/comments/comment-tool.js';
|
|
75
|
+
import { selectNewArtboard } from '../v2/empty/select-new-artboard.js';
|
|
76
|
+
import { createStampFollow } from '../stamp-follow.js';
|
|
77
|
+
import { blobToDataUrl } from '../v2/annotations/sticker-preload.js';
|
|
78
|
+
import { markMine } from '../../comments/mine-stamp.ts';
|
|
79
|
+
|
|
80
|
+
// one shell, one watch: the Comment tool's arming edge (P8 C5)
|
|
81
|
+
const commentToolWatch = createCommentToolWatch();
|
|
82
|
+
|
|
83
|
+
// p8-sweep-close — Copy style / Paste style say what happened (the sweep found Copy style DEAD: it filled a
|
|
84
|
+
// ref and drew nothing, so a copy and a miss looked the same). One notice id: a second press replaces it.
|
|
85
|
+
const styleNotice = (title, kind) => notify({ id: 'copy-style', title, kind });
|
|
20
86
|
|
|
21
87
|
export function useCanvasBridge({
|
|
22
|
-
activePath,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
88
|
+
activePath,
|
|
89
|
+
selected,
|
|
90
|
+
setSelected,
|
|
91
|
+
selectedRef,
|
|
92
|
+
lastLocalSelectRef,
|
|
93
|
+
scheduleHaloRestore,
|
|
94
|
+
scheduleArtboardResync,
|
|
95
|
+
pendingReorderRef,
|
|
96
|
+
lastLayersTreeRef,
|
|
97
|
+
settlePendingSelectionRef,
|
|
98
|
+
reorderLayerRef,
|
|
99
|
+
repositionElementRef,
|
|
100
|
+
resizeElementRef,
|
|
101
|
+
layersBusyRef,
|
|
102
|
+
layersBusyTimerRef,
|
|
103
|
+
layersTree,
|
|
104
|
+
setLayersTree,
|
|
105
|
+
setLoadingPath,
|
|
106
|
+
setCanvasError,
|
|
107
|
+
setLoadedPath,
|
|
108
|
+
cfg,
|
|
109
|
+
viewerMode,
|
|
110
|
+
commentsByFile,
|
|
111
|
+
focusedCommentId,
|
|
112
|
+
setFocusedCommentId,
|
|
113
|
+
theme,
|
|
114
|
+
setPaletteOpen,
|
|
115
|
+
setExportDialog,
|
|
116
|
+
setSettingsOpen,
|
|
117
|
+
setShortcutsOpen,
|
|
118
|
+
setTimelineOpen,
|
|
119
|
+
setActiveComps,
|
|
120
|
+
setTimelineFrame,
|
|
121
|
+
setTimelinePlaying,
|
|
122
|
+
canvasActiveArtboard,
|
|
123
|
+
setCanvasActiveArtboard,
|
|
124
|
+
timelineFrameRef,
|
|
125
|
+
timelineCompIdRef,
|
|
126
|
+
setInspectorTab,
|
|
127
|
+
setPhotoSel,
|
|
128
|
+
openRightPanel,
|
|
129
|
+
toggleRightPanel,
|
|
130
|
+
maybeAutoOpenInspectorOnSelect,
|
|
131
|
+
toggleTimeline,
|
|
132
|
+
minimapVisible,
|
|
133
|
+
zoomCtlVisible,
|
|
134
|
+
presentMode,
|
|
135
|
+
setActiveArtboards,
|
|
136
|
+
iframesRef,
|
|
137
|
+
postToActiveCanvas,
|
|
138
|
+
captureFromCanvas,
|
|
139
|
+
broadcastChrome,
|
|
140
|
+
wsSend,
|
|
141
|
+
reloadActive,
|
|
142
|
+
// S9.22b — the viewer's display name (left out of the mention people); optional
|
|
143
|
+
gitUser = null,
|
|
32
144
|
}) {
|
|
145
|
+
// p8-sweep-close — an edit-op built from a tree of before a stamp follows it (client/stamp-follow.js).
|
|
146
|
+
const stampFollowRef = useRef(null);
|
|
147
|
+
if (!stampFollowRef.current) stampFollowRef.current = createStampFollow();
|
|
148
|
+
// V2-8.9 defender L2 (checklist C6) — every shell → canvas post names the canvas origin, never '*':
|
|
149
|
+
// a frame that navigated elsewhere hears nothing. The same origin onMessage accepts from.
|
|
150
|
+
const canvasOriginRef = useRef('');
|
|
151
|
+
canvasOriginRef.current = cfg?.canvasOrigin || window.location.origin;
|
|
152
|
+
// S2.24 — the selection ladder (selection-scope.js `startSelectionRestore`): one at a time, the newest wins.
|
|
153
|
+
const selectionRestoreRef = useRef(null);
|
|
154
|
+
// S2.25 G1 — ids a write gave to texts the shell has selected (content-hash id → authored name); read when each rung fires
|
|
155
|
+
const renamedIdsRef = useRef(new Map());
|
|
156
|
+
const restoreSelectionOn = useCallback(
|
|
157
|
+
(file, lead) => {
|
|
158
|
+
selectionRestoreRef.current?.();
|
|
159
|
+
selectionRestoreRef.current = startSelectionRestore({
|
|
160
|
+
file,
|
|
161
|
+
lead,
|
|
162
|
+
getSelected: () => selectedRef.current,
|
|
163
|
+
renames: renamedIdsRef.current,
|
|
164
|
+
post: (msg) => {
|
|
165
|
+
try {
|
|
166
|
+
iframesRef.current.get(file)?.contentWindow?.postMessage(msg, canvasOriginRef.current);
|
|
167
|
+
} catch {}
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
},
|
|
171
|
+
[selectedRef, iframesRef]
|
|
172
|
+
);
|
|
173
|
+
useEffect(() => () => selectionRestoreRef.current?.(), []);
|
|
174
|
+
// P8 C5: the ladder that selects a just-added artboard once the canvas has reloaded with it; a canvas switch
|
|
175
|
+
// (or unmount) drops what is left of it
|
|
176
|
+
const newArtboardSelect = useRef(null);
|
|
177
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: activePath is the trigger — another canvas, drop the ladder
|
|
178
|
+
useEffect(() => () => newArtboardSelect.current?.(), [activePath]);
|
|
179
|
+
// S7.22 — the inspector's "Show on canvas" is the person's own view state (view.json, already stored); this tells the
|
|
180
|
+
// open canvas to redraw its safe zones now. Only that one boolean is forwarded, and only to the canvas it names.
|
|
181
|
+
useEffect(() => {
|
|
182
|
+
const onChrome = (e) => {
|
|
183
|
+
const d = e.detail;
|
|
184
|
+
if (!d || d.canvas !== activePath || typeof d.patch?.safeZones !== 'boolean') return;
|
|
185
|
+
postToActiveCanvas({ dgn: 'view-chrome', safeZones: d.patch.safeZones });
|
|
186
|
+
};
|
|
187
|
+
window.addEventListener('maude:canvas-view-chrome', onChrome);
|
|
188
|
+
return () => window.removeEventListener('maude:canvas-view-chrome', onChrome);
|
|
189
|
+
}, [activePath, postToActiveCanvas]);
|
|
33
190
|
// ----- Inbound messages from iframes -----
|
|
34
191
|
useEffect(() => {
|
|
35
192
|
// Does this comment id belong to the canvas the user is actually looking
|
|
@@ -54,12 +211,56 @@ export function useCanvasBridge({
|
|
|
54
211
|
const m = e.data;
|
|
55
212
|
if (!m || typeof m !== 'object' || !m.dgn) return;
|
|
56
213
|
if (m.dgn === 'canvas-notice') {
|
|
57
|
-
const activeWin =
|
|
58
|
-
|
|
214
|
+
const activeWin =
|
|
215
|
+
activePath && activePath !== SYSTEM_TAB
|
|
216
|
+
? iframesRef.current.get(activePath)?.contentWindow
|
|
217
|
+
: null;
|
|
59
218
|
const notice = acceptCanvasNotice(e, expectedOrigin, activeWin);
|
|
60
219
|
if (notice) notifyCanvasText(notice.title, notice.kind);
|
|
61
220
|
return;
|
|
62
221
|
}
|
|
222
|
+
// V2-2.10 — the typed table (bridge/dgn-protocol.ts) names every canvas→shell
|
|
223
|
+
// type gated `active`: it acts on the canvas the user is looking at, so the
|
|
224
|
+
// origin check above (which every canvas iframe passes, DDR-054) is not
|
|
225
|
+
// enough. One up-front check for all of them (V2-2.8 S1 added comment-compose,
|
|
226
|
+
// layers-tree, open-inspector, comment-click, tool-cursor, artboards and
|
|
227
|
+
// export-history-request); the branches keep their own extra conditions
|
|
228
|
+
// (modal, owns-comment, shape). `activeWin &&` closes `null === null` (a
|
|
229
|
+
// discarded source with no active canvas).
|
|
230
|
+
if (C2S_ACTIVE.has(m.dgn)) {
|
|
231
|
+
const activeWin =
|
|
232
|
+
activePath && activePath !== SYSTEM_TAB
|
|
233
|
+
? iframesRef.current.get(activePath)?.contentWindow
|
|
234
|
+
: null;
|
|
235
|
+
if (!activeWin || e.source !== activeWin) return;
|
|
236
|
+
}
|
|
237
|
+
// S9.22b — the overlay's comment door + mention people (comment-bridge.js). Accepted only from the
|
|
238
|
+
// active canvas's own window and only once the dgn table's parser has cleaned it; the answer goes
|
|
239
|
+
// back to that window alone. An `add` is pinned to `activePath` inside the handler.
|
|
240
|
+
if (isCommentBridgeMessage(m)) {
|
|
241
|
+
const activeWin =
|
|
242
|
+
activePath && activePath !== SYSTEM_TAB
|
|
243
|
+
? iframesRef.current.get(activePath)?.contentWindow
|
|
244
|
+
: null;
|
|
245
|
+
const msg = acceptCommentBridge(e, activeWin);
|
|
246
|
+
if (!msg) return;
|
|
247
|
+
const replyTo = e.source;
|
|
248
|
+
void handleCommentBridgeMessage(msg, {
|
|
249
|
+
activePath,
|
|
250
|
+
// gate-b-c4 — an op naming a thread acts only on a thread of the active canvas.
|
|
251
|
+
ownsComment: ownsActiveComment,
|
|
252
|
+
designRel: cfg?.designRel,
|
|
253
|
+
me: typeof gitUser === 'string' ? gitUser : null,
|
|
254
|
+
reply: (answer) => {
|
|
255
|
+
try {
|
|
256
|
+
replyTo?.postMessage(answer, expectedOrigin);
|
|
257
|
+
} catch {
|
|
258
|
+
/* detached */
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
});
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
63
264
|
if (m.dgn === 'tool-cursor') {
|
|
64
265
|
// Phase 24 — show the active canvas tool's cursor across the WHOLE app
|
|
65
266
|
// shell (sidebar, top bar, everything) so the custom cursor is visible
|
|
@@ -72,13 +273,13 @@ export function useCanvasBridge({
|
|
|
72
273
|
// shell (phase-24 ethical-hacker Finding 2; DDR-067).
|
|
73
274
|
// feature-4 — the browse tool is a pure pass-through: don't force a
|
|
74
275
|
// global shell cursor, so the shell chrome keeps its own affordance
|
|
75
|
-
// cursors (pointer over buttons).
|
|
76
|
-
//
|
|
276
|
+
// cursors (pointer over buttons). r2-p3 (TD5): no first-run mode toast any more.
|
|
277
|
+
// P8 C5 (04 md-comment): the Comment tool in hand docks the Comments panel (on the arming edge only).
|
|
278
|
+
if (commentToolWatch.armed(m.tool)) openRightPanel('comments');
|
|
77
279
|
if (m.tool === 'browse') {
|
|
78
280
|
document.body.style.cursor = '';
|
|
79
281
|
const el = document.getElementById('dc-app-cursor');
|
|
80
282
|
if (el) el.textContent = '';
|
|
81
|
-
browseFirstRunHint(viewerMode);
|
|
82
283
|
return;
|
|
83
284
|
}
|
|
84
285
|
const cursor = resolveToolCursor(m.tool);
|
|
@@ -120,6 +321,7 @@ export function useCanvasBridge({
|
|
|
120
321
|
m.dgn === 'clear-select' ||
|
|
121
322
|
m.dgn === 'edit-text' ||
|
|
122
323
|
m.dgn === 'apply-edit' ||
|
|
324
|
+
m.dgn === 'edit-op' ||
|
|
123
325
|
m.dgn === 'undo-barrier'
|
|
124
326
|
) {
|
|
125
327
|
const activeWin =
|
|
@@ -144,19 +346,32 @@ export function useCanvasBridge({
|
|
|
144
346
|
// For shell purposes we track the focused entry (head of array, or
|
|
145
347
|
// the bare object) — comments + halo only act on one element at a
|
|
146
348
|
// time today. Multi-target editing is an explicit Phase-4.1 non-goal.
|
|
147
|
-
|
|
349
|
+
// 09 ex-batch-pick — a list's entries name no file; they are about the canvas that is open
|
|
350
|
+
const payload = stampSelectionFile(m.selection, activePath);
|
|
351
|
+
// S2.1 (S2-edit-ops.md §7) — refs / crumbs / kind ride the selection into the shell's
|
|
352
|
+
// state (the inspector reads them), never into the ws `select` broadcast.
|
|
353
|
+
const described = (sel) =>
|
|
354
|
+
sel && (m.crumbs || m.kind || m.refs)
|
|
355
|
+
? {
|
|
356
|
+
...sel,
|
|
357
|
+
...(Array.isArray(m.crumbs) ? { crumbs: m.crumbs } : {}),
|
|
358
|
+
...(typeof m.kind === 'string' ? { kind: m.kind } : {}),
|
|
359
|
+
...(Array.isArray(m.refs) ? { refs: m.refs } : {}),
|
|
360
|
+
}
|
|
361
|
+
: sel;
|
|
148
362
|
if (payload == null) {
|
|
149
363
|
wsSend({ type: 'clear-select' });
|
|
150
364
|
setSelected(null);
|
|
151
365
|
} else if (Array.isArray(payload)) {
|
|
152
366
|
const head = payload[0] ?? null;
|
|
153
367
|
if (head) wsSend({ type: 'select', selection: head });
|
|
154
|
-
|
|
368
|
+
// S2.22 G4/G6 — several stay several: the inspector reads the list ("4 artboards · Mixed")
|
|
369
|
+
setSelected(shellSelectionOf(payload, described));
|
|
155
370
|
// Stage C — auto-open only for a genuine SINGLE selection, never multi.
|
|
156
371
|
if (payload.length === 1) maybeAutoOpenInspectorOnSelect(head);
|
|
157
372
|
} else {
|
|
158
373
|
wsSend({ type: 'select', selection: payload });
|
|
159
|
-
setSelected(payload);
|
|
374
|
+
setSelected(described(payload));
|
|
160
375
|
maybeAutoOpenInspectorOnSelect(payload); // Stage C
|
|
161
376
|
}
|
|
162
377
|
} else if (m.dgn === 'clear-select') {
|
|
@@ -177,14 +392,19 @@ export function useCanvasBridge({
|
|
|
177
392
|
const editSource = e.source;
|
|
178
393
|
const revert = (reason) => {
|
|
179
394
|
try {
|
|
180
|
-
editSource?.postMessage(
|
|
395
|
+
editSource?.postMessage(
|
|
396
|
+
{ dgn: 'edit-reverted', op: 'text', id: m.id, reason },
|
|
397
|
+
expectedOrigin
|
|
398
|
+
);
|
|
181
399
|
} catch {}
|
|
182
400
|
};
|
|
183
401
|
fetch('/_api/edit-text', {
|
|
184
402
|
method: 'POST',
|
|
185
403
|
headers: { 'content-type': 'application/json' },
|
|
186
404
|
body: JSON.stringify({
|
|
187
|
-
canvas
|
|
405
|
+
// gate-b-c4 — the canvas the ACTIVE frame was opened for (the source check above), never
|
|
406
|
+
// the file the frame names: canvas code in A must not rewrite B with the opener's rights.
|
|
407
|
+
canvas: activePath,
|
|
188
408
|
id: m.id,
|
|
189
409
|
text: m.text ?? '',
|
|
190
410
|
// Context for editing `{variable}` text — which rendered instance +
|
|
@@ -203,12 +423,21 @@ export function useCanvasBridge({
|
|
|
203
423
|
// (and so posted it — window messages arrive in order), so the canvas's
|
|
204
424
|
// Cmd+Z sees the edit that is on screen. Read-only; nothing is written.
|
|
205
425
|
const source = e.source;
|
|
206
|
-
Promise.all([editApplyChainRef.current.catch(() => {}), afterRecordableWrites()]).then(
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
426
|
+
Promise.all([editApplyChainRef.current.catch(() => {}), afterRecordableWrites()]).then(
|
|
427
|
+
() => {
|
|
428
|
+
try {
|
|
429
|
+
source?.postMessage(
|
|
430
|
+
{ dgn: 'undo-barrier-ok', requestId: m.requestId },
|
|
431
|
+
expectedOrigin
|
|
432
|
+
);
|
|
433
|
+
} catch {}
|
|
434
|
+
}
|
|
435
|
+
);
|
|
436
|
+
} else if (
|
|
437
|
+
m.dgn === 'apply-edit' &&
|
|
438
|
+
m.id &&
|
|
439
|
+
(m.op === 'css' || m.op === 'text' || m.op === 'attr')
|
|
440
|
+
) {
|
|
212
441
|
// Inline-edit undo/redo (DDR-103/104 follow-up). The canvas iframe's
|
|
213
442
|
// `edit-source` command can't call the main-origin-only `/_api/edit-*`
|
|
214
443
|
// routes (DDR-054), so it asks us to re-apply the before/after value.
|
|
@@ -217,13 +446,18 @@ export function useCanvasBridge({
|
|
|
217
446
|
// never overwrite a teammate's newer value (audit 2026-09-13 P1 #5);
|
|
218
447
|
// the outcome goes back to the canvas so a refused undo/redo does not
|
|
219
448
|
// advance its stack.
|
|
220
|
-
|
|
449
|
+
// gate-b-c4 — the canvas the ACTIVE frame was opened for, never the `canvas` the frame
|
|
450
|
+
// names (same rule as edit-text above): canvas code in A must not re-apply an edit to B.
|
|
451
|
+
const req = applyEditRequest({ ...m, canvas: activePath });
|
|
221
452
|
if (!req) return;
|
|
222
453
|
const replyTo = e.source;
|
|
223
454
|
const reply = (result) => {
|
|
224
455
|
if (typeof m.requestId !== 'string') return;
|
|
225
456
|
try {
|
|
226
|
-
replyTo?.postMessage(
|
|
457
|
+
replyTo?.postMessage(
|
|
458
|
+
{ dgn: 'apply-edit-result', requestId: m.requestId, ...result },
|
|
459
|
+
expectedOrigin
|
|
460
|
+
);
|
|
227
461
|
} catch {}
|
|
228
462
|
};
|
|
229
463
|
const value = typeof m.value === 'string' ? m.value : null;
|
|
@@ -249,11 +483,143 @@ export function useCanvasBridge({
|
|
|
249
483
|
})
|
|
250
484
|
.catch(() => reply({ ok: false, error: 'network error' }))
|
|
251
485
|
);
|
|
486
|
+
} else if (m.dgn === 'edit-op') {
|
|
487
|
+
// S2.1 (S2-edit-ops.md §6) — one structural edit from the active canvas. The shell pins
|
|
488
|
+
// `file` to the active canvas (a canvas edits only its own file) and forwards a well-formed
|
|
489
|
+
// request to the main-origin-only dispatch route; the answer goes back by requestId. On the
|
|
490
|
+
// same chain as apply-edit so two source writes to one file never race.
|
|
491
|
+
const asked = editOpBody(m, activePath && activePath !== SYSTEM_TAB ? activePath : null);
|
|
492
|
+
if (!asked) return;
|
|
493
|
+
const replyTo = e.source;
|
|
494
|
+
const reply = (result) => {
|
|
495
|
+
try {
|
|
496
|
+
replyTo?.postMessage(
|
|
497
|
+
{ dgn: 'edit-op-result', requestId: m.requestId, ...result },
|
|
498
|
+
expectedOrigin
|
|
499
|
+
);
|
|
500
|
+
} catch {}
|
|
501
|
+
};
|
|
502
|
+
// V2-clipboard-objects — the clipboard is the shell's (client/clipboard-relay.ts): a paste names the
|
|
503
|
+
// shell's handle, never the canvas's; a clip from ANOTHER canvas waits for a click on the shell's toast.
|
|
504
|
+
const shaped = shapeClipRequest(asked);
|
|
505
|
+
if (shaped.kind === 'reply') {
|
|
506
|
+
reply(shaped.result);
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
if (shaped.kind === 'confirm') {
|
|
510
|
+
reply(shaped.reply);
|
|
511
|
+
const askedFile = asked.file;
|
|
512
|
+
// V2-8.9 r2 C1 — asked by the canvas: one reused, rate-limited notice, below the shell's own
|
|
513
|
+
notifyCanvasTriggered({
|
|
514
|
+
id: 'canvas-clip-confirm',
|
|
515
|
+
title: shaped.line,
|
|
516
|
+
kind: 'success',
|
|
517
|
+
action: {
|
|
518
|
+
label: 'Paste',
|
|
519
|
+
onClick: () => {
|
|
520
|
+
// the canvas that asked is still open (the toast may be clicked later)
|
|
521
|
+
if (iframesRef.current.get(askedFile)?.contentWindow !== replyTo) return;
|
|
522
|
+
editApplyChainRef.current = editApplyChainRef.current
|
|
523
|
+
.catch(() => {})
|
|
524
|
+
.then(() =>
|
|
525
|
+
fetch('/_api/edit-op', {
|
|
526
|
+
method: 'POST',
|
|
527
|
+
headers: { 'content-type': 'application/json' },
|
|
528
|
+
body: JSON.stringify(shaped.body),
|
|
529
|
+
})
|
|
530
|
+
.then(readEditOpAnswer)
|
|
531
|
+
.then((r) => {
|
|
532
|
+
if (!r.ok) {
|
|
533
|
+
replyTo?.postMessage(
|
|
534
|
+
{ dgn: 'op-toast', message: r.message },
|
|
535
|
+
expectedOrigin
|
|
536
|
+
);
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
const payload = legacyRecordPayload(r, 'Paste');
|
|
540
|
+
if (payload)
|
|
541
|
+
replyTo?.postMessage({ dgn: 'record-edit', payload }, expectedOrigin);
|
|
542
|
+
})
|
|
543
|
+
.catch(() => {})
|
|
544
|
+
);
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
});
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
// p8-sweep-close — built from the tree of now; sent once the writes before it answered, by which time
|
|
551
|
+
// one of them may have stamped an object this request still names by its computed id.
|
|
552
|
+
const follow = stampFollowRef.current;
|
|
553
|
+
const builtAt = follow.generation();
|
|
554
|
+
let body = shaped.body;
|
|
555
|
+
editApplyChainRef.current = editApplyChainRef.current
|
|
556
|
+
.catch(() => {})
|
|
557
|
+
.then(() => {
|
|
558
|
+
body = follow.rewrite(body, builtAt);
|
|
559
|
+
})
|
|
560
|
+
.then(() =>
|
|
561
|
+
fetch('/_api/edit-op', {
|
|
562
|
+
method: 'POST',
|
|
563
|
+
headers: { 'content-type': 'application/json' },
|
|
564
|
+
body: JSON.stringify(body),
|
|
565
|
+
})
|
|
566
|
+
.then(readEditOpAnswer)
|
|
567
|
+
.then((result) => {
|
|
568
|
+
if (result?.ok) follow.record(body.file, body.targets, result.refs);
|
|
569
|
+
noteClipResult(body, result);
|
|
570
|
+
// V2-8.9 attacker L3 — the canvas hears kind + count, never the handle
|
|
571
|
+
reply(frameClipResult(body, result));
|
|
572
|
+
// S7.21 — "Tablet and Mobile are beside Desktop." + Undo, when the inspector asked for the copies
|
|
573
|
+
const added = settleAddedWidths(body, result);
|
|
574
|
+
if (added) shellToast(added.message, true, added.action, DUPLICATE_TOAST);
|
|
575
|
+
else {
|
|
576
|
+
// S6.16b (01 cf-duplicate-done) — the artboard menu's "Duplicate at another width ▸": the
|
|
577
|
+
// shell says it, off the request it forwarded and the server's answer, with its own ⌘Z.
|
|
578
|
+
const done = settleDuplicateAtWidth(body, result, () =>
|
|
579
|
+
menuRunner.run('edit.undo')
|
|
580
|
+
);
|
|
581
|
+
if (done) shellToast(done.message, true, done.action, DUPLICATE_TOAST);
|
|
582
|
+
}
|
|
583
|
+
// S2.24 G1 — a write to the selected text changes what the inspector measured (the style it wears,
|
|
584
|
+
// what differs from it, the size): put the selection back so the canvas probes it again.
|
|
585
|
+
if (result?.ok && /^text\./.test(body.op) && body.file) {
|
|
586
|
+
// S2.25 G1 — and a write that gives the text an authored name (`Use a style` on a text that had only a
|
|
587
|
+
// content-hash id) leaves the id the shell holds naming nothing: follow it to the new one.
|
|
588
|
+
const map = renamedIdsRef.current;
|
|
589
|
+
if (map.size > 64) map.clear();
|
|
590
|
+
for (const [k, v] of renamesOf(body.targets, result.refs)) map.set(k, v);
|
|
591
|
+
restoreSelectionOn(body.file, RESTORE_LEAD_MS);
|
|
592
|
+
}
|
|
593
|
+
})
|
|
594
|
+
.catch(() =>
|
|
595
|
+
reply({
|
|
596
|
+
ok: false,
|
|
597
|
+
code: 'invalid',
|
|
598
|
+
message: 'The studio could not be reached; try again.',
|
|
599
|
+
})
|
|
600
|
+
)
|
|
601
|
+
);
|
|
602
|
+
} else if (m.dgn === 'reorder-slot') {
|
|
603
|
+
// S2.11b — the slot a lifted card would land in; Layers draws the same numbered place.
|
|
604
|
+
// The row is parsed through the typed table (a planted canvas sends whatever it likes).
|
|
605
|
+
const slot = DGN_TABLE.c2s['reorder-slot'].parse(m);
|
|
606
|
+
layersSlot.set(slot);
|
|
252
607
|
} else if (m.dgn === 'layers-tree') {
|
|
253
608
|
// Phase 12 Task 4 — browsable layers tree for the active artboard.
|
|
254
|
-
|
|
609
|
+
stampFollowRef.current.bump(); // requests from now on carry this tree's ids
|
|
610
|
+
setLayersTree({
|
|
611
|
+
artboardId: m.artboardId,
|
|
612
|
+
nodes: Array.isArray(m.tree) ? m.tree : [],
|
|
613
|
+
// the frame is the active one (acceptFromCanvas), so the tree is the open canvas's
|
|
614
|
+
canvas: activePath,
|
|
615
|
+
});
|
|
255
616
|
const sig = layersTreeSig(m.tree);
|
|
256
|
-
lastLayersTreeRef.current = {
|
|
617
|
+
lastLayersTreeRef.current = {
|
|
618
|
+
tree: m.tree,
|
|
619
|
+
sig,
|
|
620
|
+
artboardId: m.artboardId ?? null,
|
|
621
|
+
canvas: activePath,
|
|
622
|
+
};
|
|
257
623
|
// fresh tree (correct ids) landed — drags OK again
|
|
258
624
|
layersBusyRef.current = false;
|
|
259
625
|
if (layersBusyTimerRef.current) {
|
|
@@ -353,8 +719,7 @@ export function useCanvasBridge({
|
|
|
353
719
|
// before:{width,height,left,top} } — px strings, before values null when
|
|
354
720
|
// the prop was unset (reset on undo).
|
|
355
721
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
356
|
-
const okShape =
|
|
357
|
-
typeof m.id === 'string' && m.patch && typeof m.patch === 'object';
|
|
722
|
+
const okShape = typeof m.id === 'string' && m.patch && typeof m.patch === 'object';
|
|
358
723
|
if (e.source === activeWin && okShape) {
|
|
359
724
|
resizeElementRef.current?.(
|
|
360
725
|
m.id,
|
|
@@ -370,7 +735,10 @@ export function useCanvasBridge({
|
|
|
370
735
|
// pinned to the ACTIVE canvas (never `m.canvas`).
|
|
371
736
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
372
737
|
if (e.source === activeWin && typeof m.id === 'string') {
|
|
373
|
-
deleteElementShellRef.current?.(
|
|
738
|
+
deleteElementShellRef.current?.(
|
|
739
|
+
m.id,
|
|
740
|
+
Number.isInteger(m.idIndex) ? m.idIndex : undefined
|
|
741
|
+
);
|
|
374
742
|
}
|
|
375
743
|
} else if (m.dgn === 'duplicate-request') {
|
|
376
744
|
// Cmd+D (Task L3) — duplicate the selected element. Confused-deputy gated
|
|
@@ -510,7 +878,7 @@ export function useCanvasBridge({
|
|
|
510
878
|
// surface server refusals (.map children etc.) as a toast
|
|
511
879
|
// instead of a console.warn nobody sees.
|
|
512
880
|
onOk: () => {
|
|
513
|
-
postToActiveCanvas(
|
|
881
|
+
postToActiveCanvas(runActionMessage('select.none'));
|
|
514
882
|
postToActiveCanvas({
|
|
515
883
|
dgn: 'op-toast',
|
|
516
884
|
message: `Converted ${count} element${count === 1 ? '' : 's'} to absolute — press V and drag them freely (⌘Z to undo).`,
|
|
@@ -551,21 +919,94 @@ export function useCanvasBridge({
|
|
|
551
919
|
openRightPanel('inspector');
|
|
552
920
|
setInspectorTab('photo');
|
|
553
921
|
}
|
|
554
|
-
} else if (
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
922
|
+
} else if (
|
|
923
|
+
m.dgn === 'annotation-to-comment' ||
|
|
924
|
+
m.dgn === 'annotation-toast' ||
|
|
925
|
+
m.dgn === 'annotation-selection' ||
|
|
926
|
+
m.dgn === 'annotation-ask-ai' ||
|
|
927
|
+
m.dgn === 'view-only-gesture' ||
|
|
928
|
+
m.dgn === 'object-history'
|
|
929
|
+
) {
|
|
930
|
+
// S4.12 — the annotation layer asks (annotations/ui/shell-asks.ts). Only the active canvas is heard,
|
|
931
|
+
// and only once the dgn table's parser has cleaned the payload (sec-a M3): a raw `e.data` field
|
|
932
|
+
// reached notify() as a number and unmounted the shell.
|
|
558
933
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
559
|
-
if (e.source
|
|
560
|
-
|
|
934
|
+
if (e.source !== activeWin || !activePath) return;
|
|
935
|
+
const msg = acceptFromCanvas(e, { canvasOrigin: expectedOrigin, active: activeWin });
|
|
936
|
+
if (!msg) return;
|
|
937
|
+
const file = activePath;
|
|
938
|
+
if (msg.dgn === 'annotation-to-comment') {
|
|
939
|
+
// the shell owns this Undo: `r.undo` is the server's own conversion token (S4.7).
|
|
940
|
+
// V2-8.9 r2 C1 — the canvas picks when (and how often) this answer is said: one reused,
|
|
941
|
+
// rate-limited notice that never outranks the shell's own (a flood hid "Export failed").
|
|
942
|
+
void turnIntoComment({ file, id: msg.id }).then((r) => {
|
|
943
|
+
if (!r.ok || !r.undo) {
|
|
944
|
+
notifyCanvasTriggered({
|
|
945
|
+
id: 'canvas-annotation-to-comment',
|
|
946
|
+
title: r.line,
|
|
947
|
+
kind: r.ok ? 'success' : 'error',
|
|
948
|
+
});
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
951
|
+
notifyCanvasTriggered({
|
|
952
|
+
id: 'canvas-annotation-to-comment',
|
|
953
|
+
title: r.line,
|
|
954
|
+
kind: 'success',
|
|
955
|
+
action: {
|
|
956
|
+
label: 'Undo',
|
|
957
|
+
onClick: () =>
|
|
958
|
+
void undoConversion(r.undo).then((u) => {
|
|
959
|
+
if (!u.ok) notify({ title: u.line, kind: 'error' });
|
|
960
|
+
}),
|
|
961
|
+
},
|
|
962
|
+
});
|
|
963
|
+
});
|
|
964
|
+
} else if (msg.dgn === 'annotation-toast') {
|
|
965
|
+
// sec-a M3 — canvas words are canvas notices: rate-limited, two slots, and NO shell Undo button
|
|
966
|
+
// (it would run the person's own ⌘Z on the canvas's say-so, under the canvas's text). ⌘Z still
|
|
967
|
+
// undoes the step the canvas just made — that is the person's key, not the canvas's.
|
|
968
|
+
notifyCanvasText(msg.message, msg.undo ? 'undo' : 'info');
|
|
969
|
+
} else if (msg.dgn === 'annotation-selection') {
|
|
970
|
+
noteAnnotationSelection(file, {
|
|
971
|
+
ids: msg.ids,
|
|
972
|
+
kinds: msg.kinds,
|
|
973
|
+
artboards: msg.artboards,
|
|
974
|
+
});
|
|
975
|
+
} else if (msg.dgn === 'annotation-ask-ai') {
|
|
976
|
+
// The chat opens; the scope chip that reads `noteAnnotationSelection` is S4.15's.
|
|
977
|
+
if (isNativeApp()) openRightPanel('assistant');
|
|
978
|
+
else
|
|
979
|
+
notifyCanvasTriggered({
|
|
980
|
+
id: 'canvas-ask-ai',
|
|
981
|
+
title: 'AI chat is in the Maude desktop app.',
|
|
982
|
+
});
|
|
983
|
+
} else if (msg.dgn === 'object-history') {
|
|
984
|
+
// p8-dead-reasons — the object / sticky menu's "Version history of this object". No path from the frame:
|
|
985
|
+
// the object must be one this frame showed (its selection, layers tree, annotation selection), then the
|
|
986
|
+
// registry action `history.object` opens the filtered panel.
|
|
987
|
+
const s = lastLocalSelectRef.current;
|
|
988
|
+
const target = objectHistoryTarget(msg, {
|
|
989
|
+
activePath: file,
|
|
990
|
+
selection: s ? { file: s.file, sel: s.sel } : null,
|
|
991
|
+
layers: lastLayersTreeRef.current,
|
|
992
|
+
annotations: annotationScopeOf(file),
|
|
993
|
+
});
|
|
994
|
+
if (target) menuRunner.run('history.object', target);
|
|
995
|
+
} else if (msg.dgn === 'view-only-gesture') {
|
|
996
|
+
// S9.21b — the access host's tip; its words are the shell's (the canvas sent none). Round 7: the
|
|
997
|
+
// pointer's position in the frame, moved by the frame's own corner into the shell's coordinates.
|
|
998
|
+
const fr = iframesRef.current.get(activePath)?.getBoundingClientRect?.();
|
|
999
|
+
const at =
|
|
1000
|
+
fr && Number.isFinite(msg.x) && Number.isFinite(msg.y)
|
|
1001
|
+
? { x: fr.left + msg.x, y: fr.top + msg.y }
|
|
1002
|
+
: null;
|
|
1003
|
+
window.dispatchEvent(new CustomEvent(VIEW_ONLY_EVENT, { detail: at }));
|
|
561
1004
|
}
|
|
562
1005
|
} else if (m.dgn === 'insert-artboard-request') {
|
|
563
1006
|
// Stage I4 — insert a new empty artboard from a screen-size preset.
|
|
564
1007
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
565
1008
|
const okShape =
|
|
566
|
-
typeof m.id === 'string' &&
|
|
567
|
-
Number.isFinite(m.width) &&
|
|
568
|
-
Number.isFinite(m.height);
|
|
1009
|
+
typeof m.id === 'string' && Number.isFinite(m.width) && Number.isFinite(m.height);
|
|
569
1010
|
if (e.source === activeWin && okShape) {
|
|
570
1011
|
insertArtboardShellRef.current?.({
|
|
571
1012
|
id: m.id,
|
|
@@ -626,7 +1067,11 @@ export function useCanvasBridge({
|
|
|
626
1067
|
// feature-3-web-artboards T3 — context-menu "Duplicate at width…"
|
|
627
1068
|
// submenu (inside the untrusted iframe).
|
|
628
1069
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
629
|
-
if (
|
|
1070
|
+
if (
|
|
1071
|
+
e.source === activeWin &&
|
|
1072
|
+
typeof m.artboardId === 'string' &&
|
|
1073
|
+
Number.isFinite(m.width)
|
|
1074
|
+
) {
|
|
630
1075
|
duplicateArtboardShellRef.current?.(m.artboardId, m.width);
|
|
631
1076
|
}
|
|
632
1077
|
} else if (m.dgn === 'open-inspector') {
|
|
@@ -637,25 +1082,10 @@ export function useCanvasBridge({
|
|
|
637
1082
|
// target from that selection's `photoAsset`).
|
|
638
1083
|
openRightPanel('inspector');
|
|
639
1084
|
if (typeof m.tab === 'string') setInspectorTab(m.tab);
|
|
640
|
-
} else if (m.dgn === 'present-enter') {
|
|
641
|
-
// Canvas tool-palette "Presentation mode" button — Present Mode is a
|
|
642
|
-
// shell-level state (hides the menubar / sidebar / panels), so the
|
|
643
|
-
// canvas requests it here and the shell flips it on + broadcasts
|
|
644
|
-
// dgn:'view-chrome' back to every iframe. Enter-only (the palette is
|
|
645
|
-
// hidden while presenting); exit is Esc or the floating pill. The
|
|
646
|
-
// inbound origin gate above (DDR-054) already authenticates the canvas.
|
|
647
|
-
// Hardening (phase-28 audit F-2): honor it ONLY from the ACTIVE canvas
|
|
648
|
-
// (a background tab's untrusted canvas must not flip the foreground),
|
|
649
|
-
// and NEVER while a modal dialog is open — present mode hides Sidebar-
|
|
650
|
-
// descendant modals (OAuth device-code / Share-invite), so an untrusted
|
|
651
|
-
// canvas could otherwise blank an in-flight confirmation.
|
|
652
|
-
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
653
|
-
const modalOpen = !!document.querySelector('[role="dialog"][aria-modal="true"]');
|
|
654
|
-
if (e.source === activeWin && !modalOpen && !presentMode) {
|
|
655
|
-
setPresentMode(true);
|
|
656
|
-
broadcastChrome({ present: true });
|
|
657
|
-
}
|
|
658
1085
|
} else if (m.dgn === 'comment-compose' && m.selection) {
|
|
1086
|
+
// (`present-enter` retired in V2-4.3b: Present lives in the Share cluster's mode switch, and
|
|
1087
|
+
// a canvas asks for a mode through `mode-request` — the same active + no-modal hardening
|
|
1088
|
+
// (phase-28 F-2), generalised as M4 in v2/shell/use-canvas-mode-lane.js.)
|
|
659
1089
|
// Phase 6 — the iframe overlay owns the composer surface now. The
|
|
660
1090
|
// shell just mirrors `selected` so the StatusBar / sidebar still
|
|
661
1091
|
// reflect the target, and skips the legacy `startDraftFor` path that
|
|
@@ -754,7 +1184,10 @@ export function useCanvasBridge({
|
|
|
754
1184
|
.map((c) => ({
|
|
755
1185
|
id: String(c.id).slice(0, 120),
|
|
756
1186
|
fps: Math.max(1, Math.min(120, Math.round(Number(c.fps) || 30))),
|
|
757
|
-
durationInFrames: Math.max(
|
|
1187
|
+
durationInFrames: Math.max(
|
|
1188
|
+
1,
|
|
1189
|
+
Math.min(1_000_000, Math.round(Number(c.durationInFrames) || 1))
|
|
1190
|
+
),
|
|
758
1191
|
width: Math.max(1, Math.round(Number(c.width) || 0)),
|
|
759
1192
|
height: Math.max(1, Math.round(Number(c.height) || 0)),
|
|
760
1193
|
// The enclosing artboard (issue #75) — the key the transport target
|
|
@@ -766,6 +1199,8 @@ export function useCanvasBridge({
|
|
|
766
1199
|
artboardLabel: sanitizeArtboardText(c.artboardLabel),
|
|
767
1200
|
}));
|
|
768
1201
|
setActiveComps(safe);
|
|
1202
|
+
// S7.21 — the Video inspector's Length reads what the comp announces
|
|
1203
|
+
publishVideoComps(activePath, safe);
|
|
769
1204
|
// rca/issue-video-artboard-frame-reset-on-edit — the SAME comp
|
|
770
1205
|
// re-announcing means its Player just remounted (an edit-triggered
|
|
771
1206
|
// HMR remount, or a ⌘R hard iframe reload that wiped video-comp.tsx's
|
|
@@ -794,6 +1229,16 @@ export function useCanvasBridge({
|
|
|
794
1229
|
// artboard's Player must not fight it for the readout (multi-comp canvas).
|
|
795
1230
|
if (m.id && timelineCompIdRef.current && m.id !== timelineCompIdRef.current) return;
|
|
796
1231
|
if (Number.isFinite(m.frame)) setTimelineFrame(Math.max(0, Math.round(m.frame)));
|
|
1232
|
+
} else if (m.dgn === 'timeline-playing' && typeof m.playing === 'boolean') {
|
|
1233
|
+
// S7.8 — the Player's own play / pause (the artboard's play button, Space, a scrub): the shell's
|
|
1234
|
+
// transport follows what the Player is actually doing.
|
|
1235
|
+
const activeWin =
|
|
1236
|
+
activePath && activePath !== SYSTEM_TAB
|
|
1237
|
+
? iframesRef.current.get(activePath)?.contentWindow
|
|
1238
|
+
: null;
|
|
1239
|
+
if (e.source !== activeWin) return;
|
|
1240
|
+
if (m.id && timelineCompIdRef.current && m.id !== timelineCompIdRef.current) return;
|
|
1241
|
+
setTimelinePlaying(m.playing);
|
|
797
1242
|
} else if (m.dgn === 'timeline-ended') {
|
|
798
1243
|
// The Player stopped itself at the last frame (loop off) — resync the
|
|
799
1244
|
// shell's Play/Pause button, which otherwise has no way to learn
|
|
@@ -805,52 +1250,62 @@ export function useCanvasBridge({
|
|
|
805
1250
|
if (e.source !== activeWin) return;
|
|
806
1251
|
if (m.id && timelineCompIdRef.current && m.id !== timelineCompIdRef.current) return;
|
|
807
1252
|
setTimelinePlaying(false);
|
|
808
|
-
} else if (m.dgn === '
|
|
809
|
-
//
|
|
810
|
-
//
|
|
811
|
-
//
|
|
812
|
-
//
|
|
813
|
-
//
|
|
814
|
-
//
|
|
815
|
-
// background/synced canvas (DDR-054) must not pop the palette on demand.
|
|
816
|
-
// `activeWin &&` closes the `null === null` path (no active canvas + a
|
|
817
|
-
// discarded source) the comment relays above document.
|
|
818
|
-
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
819
|
-
if (activeWin && e.source === activeWin) setPaletteOpen((v) => !v);
|
|
820
|
-
} else if (m.dgn === 'shell-shortcut') {
|
|
821
|
-
// Same forwarding lane for the other shell chords (inspect.ts) — so
|
|
822
|
-
// ⌘R / ⌘⇧I / ⌘⇧M / ⌘⇧E / ⌘⇧H behave identically wherever focus is.
|
|
1253
|
+
} else if (m.dgn === 'key' && m.v === 1 && typeof m.chord === 'string') {
|
|
1254
|
+
// V2-1.3 §5.7 — a chord pressed while focus was inside the canvas iframe:
|
|
1255
|
+
// its keydown never reaches the shell's window listener, so the injected
|
|
1256
|
+
// inspector forwards it (inspect.ts, generated from the registry). The shell
|
|
1257
|
+
// re-resolves the chord itself and runs only a `fromCanvas` action (⌘K ⌘R
|
|
1258
|
+
// ⇧⌘I/M/E/H/T/G) — the canvas names a chord, never an action. Replaces the
|
|
1259
|
+
// `toggle-palette` + `shell-shortcut` lanes (V2-2.4).
|
|
823
1260
|
//
|
|
824
|
-
// SECURITY —
|
|
825
|
-
//
|
|
826
|
-
//
|
|
827
|
-
//
|
|
828
|
-
//
|
|
829
|
-
// present-enter branch that was already hardened against modal HIDING.
|
|
1261
|
+
// SECURITY — a chord the user pressed INSIDE the canvas they are looking
|
|
1262
|
+
// at: only the active frame. Ungated, a background canvas could reload the
|
|
1263
|
+
// active file out from under an edit or pop the palette / Export dialog on
|
|
1264
|
+
// demand — a modal-timing primitive (V2-2.8 S3). `activeWin &&` closes the
|
|
1265
|
+
// `null === null` path (no active canvas + a discarded source).
|
|
830
1266
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
831
|
-
if (e.source === activeWin) {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
1267
|
+
if (activeWin && e.source === activeWin && m.chord === '⌘V') {
|
|
1268
|
+
// V2-8.9 attacker L2 — a ⌘V in the canvas is a paste intent only while the active frame
|
|
1269
|
+
// holds the focus of a focused window (the sec-a undo-key gate): the shell's cross-canvas
|
|
1270
|
+
// paste ask may follow it for ~1 s (client/clipboard-relay.ts). It runs no action.
|
|
1271
|
+
const frame = iframesRef.current.get(activePath);
|
|
1272
|
+
if (document.hasFocus() && document.activeElement === frame) notePasteIntent();
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
if (activeWin && e.source === activeWin) {
|
|
1276
|
+
runForwardedKey(m.chord.slice(0, 32), {
|
|
1277
|
+
// EH-P4-3 (S2.1) — the session's role decides, as for a key pressed in the shell
|
|
1278
|
+
readOnly: !!viewerMode,
|
|
1279
|
+
setPaletteOpen,
|
|
1280
|
+
reloadActive,
|
|
1281
|
+
toggleRightPanel,
|
|
1282
|
+
toggleTimeline,
|
|
1283
|
+
setExportDialog,
|
|
1284
|
+
// P8-B2: "?" and ⌘, are forwarded from the canvas too (their handlers need these two)
|
|
1285
|
+
setSettingsOpen,
|
|
1286
|
+
setShortcutsOpen,
|
|
1287
|
+
});
|
|
840
1288
|
}
|
|
841
1289
|
} else if (m.dgn === 'open-export') {
|
|
842
1290
|
// Plan C — the in-canvas toolbar / context menu route here so they open
|
|
843
1291
|
// the SAME shell Export dialog as the menubar (one look, all settings).
|
|
844
1292
|
// Carry the context-menu's scope hint (e.g. "Export selection").
|
|
845
1293
|
//
|
|
846
|
-
// SECURITY — gated
|
|
1294
|
+
// SECURITY — gated like the `key` lane above rather than separately:
|
|
847
1295
|
// both reach the same `setExportDialog`, so leaving this one open would
|
|
848
1296
|
// hand back the capability the other now refuses.
|
|
849
1297
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
850
1298
|
if (e.source === activeWin) {
|
|
1299
|
+
const region = exportRegionOf(m.detail);
|
|
1300
|
+
const asked = m.detail && typeof m.detail.scope === 'string' ? m.detail.scope : undefined;
|
|
1301
|
+
// S2.13 → S8.2 — the Export area is a world rectangle of THIS canvas, drawn as one picture: scope
|
|
1302
|
+
// canvas + region + unit one (not "the selection", which the legacy name maps to).
|
|
1303
|
+
const area = asked === 'selection-bounds' && region;
|
|
851
1304
|
setExportDialog({
|
|
852
1305
|
mode: 'export',
|
|
853
|
-
scope:
|
|
1306
|
+
scope: area ? 'canvas' : asked,
|
|
1307
|
+
region,
|
|
1308
|
+
...(area ? { unit: 'one' } : {}),
|
|
854
1309
|
});
|
|
855
1310
|
}
|
|
856
1311
|
} else if (m.dgn === 'open-timeline-request') {
|
|
@@ -868,8 +1323,19 @@ export function useCanvasBridge({
|
|
|
868
1323
|
// one is not enough. Only from the frame IN VIEW, like every branch
|
|
869
1324
|
// that changes what the user sees (review F5).
|
|
870
1325
|
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
871
|
-
if (e.source === activeWin)
|
|
1326
|
+
if (e.source === activeWin) {
|
|
1327
|
+
setLoadingPath((p) => (p === m.file ? null : p));
|
|
1328
|
+
// G6 (gate B) — `canvas-failed` is the shell saying the module would not build (a file that does
|
|
1329
|
+
// not parse: a missing closing tag). Dropping the loading card was ALL this did, and it also
|
|
1330
|
+
// cancelled the 15 s cap that raises the load-failure card, so the stage was left empty with no
|
|
1331
|
+
// card (a canvas that threw while drawing had one, via `render-error`). Raise the card now; the
|
|
1332
|
+
// page it names is the open canvas (the frame is the proof, not the `file` it claims), and the
|
|
1333
|
+
// next `loaded` (Reload canvas) retires it.
|
|
1334
|
+
if (m.dgn === 'canvas-failed' && activePath)
|
|
1335
|
+
setCanvasError({ path: activePath, kind: 'compile' });
|
|
1336
|
+
}
|
|
872
1337
|
} else if (m.dgn === 'loaded' && m.file) {
|
|
1338
|
+
stampFollowRef.current.bump(); // a reloaded canvas carries the file's ids (stamp-follow.js)
|
|
873
1339
|
// The shell document ran — push current comments + carry over the
|
|
874
1340
|
// focused pin. For a TSX/JSX canvas this is NOT "drawn": the module
|
|
875
1341
|
// still has to build and render, which on a cold cloud canvas takes
|
|
@@ -883,30 +1349,41 @@ export function useCanvasBridge({
|
|
|
883
1349
|
setCanvasError((e) => (e && e.path === m.file ? null : e));
|
|
884
1350
|
// Presentation Mode suppresses comment pins (same gate as the push
|
|
885
1351
|
// effect above), so a canvas opened while presenting starts pin-free.
|
|
886
|
-
const list = presentMode ? [] : commentsByFile[m.file] || [];
|
|
1352
|
+
const list = presentMode ? [] : markMine(commentsByFile[m.file] || [], gitUser);
|
|
887
1353
|
const el = [...iframesRef.current.entries()].find(([k]) => k === m.file)?.[1];
|
|
888
1354
|
if (el && el.contentWindow) {
|
|
889
1355
|
try {
|
|
890
|
-
el.contentWindow.postMessage({ dgn: 'comments-set', comments: list },
|
|
1356
|
+
el.contentWindow.postMessage({ dgn: 'comments-set', comments: list }, expectedOrigin);
|
|
891
1357
|
} catch {}
|
|
892
1358
|
// System-review D9 — seed the just-loaded canvas with the current
|
|
893
1359
|
// chrome theme so a canvas opened AFTER a theme toggle starts
|
|
894
1360
|
// correct (no flash from the dark default).
|
|
895
1361
|
try {
|
|
896
|
-
el.contentWindow.postMessage({ dgn: 'theme', theme },
|
|
1362
|
+
el.contentWindow.postMessage({ dgn: 'theme', theme }, expectedOrigin);
|
|
897
1363
|
} catch {}
|
|
898
1364
|
// Seed the just-loaded canvas with the current chrome-visibility
|
|
899
1365
|
// state (minimap / zoom-controls toggles + Presentation Mode) so a
|
|
900
1366
|
// canvas opened after a toggle starts in the right state.
|
|
901
1367
|
try {
|
|
902
1368
|
el.contentWindow.postMessage(
|
|
903
|
-
{
|
|
904
|
-
|
|
1369
|
+
{
|
|
1370
|
+
dgn: 'view-chrome',
|
|
1371
|
+
minimap: minimapVisible,
|
|
1372
|
+
zoom: zoomCtlVisible,
|
|
1373
|
+
present: presentMode,
|
|
1374
|
+
// P8 C8 (01 cf-open-big): a frame opened while the panels are hidden folds its toolbar too
|
|
1375
|
+
zen: panelLayout.get().userHidden,
|
|
1376
|
+
},
|
|
1377
|
+
expectedOrigin
|
|
905
1378
|
);
|
|
906
1379
|
} catch {}
|
|
907
1380
|
if (focusedCommentId && list.some((c) => c.id === focusedCommentId)) {
|
|
908
1381
|
try {
|
|
909
|
-
|
|
1382
|
+
// S6.11b — a thread landing's reply focus rides the re-send to a just-opened frame
|
|
1383
|
+
el.contentWindow.postMessage(
|
|
1384
|
+
commentFocusMessage(focusedCommentId, replyFocusFor(focusedCommentId)),
|
|
1385
|
+
expectedOrigin
|
|
1386
|
+
);
|
|
910
1387
|
} catch {}
|
|
911
1388
|
}
|
|
912
1389
|
// Phase 12.1 (DDR-138) — a reorder just wrote source: the moved
|
|
@@ -920,7 +1397,7 @@ export function useCanvasBridge({
|
|
|
920
1397
|
try {
|
|
921
1398
|
el.contentWindow.postMessage(
|
|
922
1399
|
{ dgn: 'request-layers', artboardId: pend.artboardId ?? null },
|
|
923
|
-
|
|
1400
|
+
expectedOrigin
|
|
924
1401
|
);
|
|
925
1402
|
} catch {}
|
|
926
1403
|
if (pend.movedId) {
|
|
@@ -932,7 +1409,7 @@ export function useCanvasBridge({
|
|
|
932
1409
|
artboardId: pend.artboardId ?? null,
|
|
933
1410
|
index: 0,
|
|
934
1411
|
},
|
|
935
|
-
|
|
1412
|
+
expectedOrigin
|
|
936
1413
|
);
|
|
937
1414
|
} catch {}
|
|
938
1415
|
}
|
|
@@ -946,11 +1423,13 @@ export function useCanvasBridge({
|
|
|
946
1423
|
// Retry-laddered: dgn:'loaded' fires from the inline inspector script
|
|
947
1424
|
// BEFORE the React canvas-shell mounts its listener, so a one-shot
|
|
948
1425
|
// post is lost on fresh iframes (canvas-switch restore case).
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
1426
|
+
// S2.22 G2 — a whole artboard (no element id) is put back by its name, so a resize that
|
|
1427
|
+
// reloaded the canvas leaves the board selected, with its new size in the inspector.
|
|
1428
|
+
// S2.23: not at 50 ms — a write of the person's own (a drawing, a paste) has the canvas select what it
|
|
1429
|
+
// made a beat after it reloads, and this restore must not land on top of that.
|
|
1430
|
+
// S2.24 G2: and what it puts back is read when each rung FIRES, not now — the drawn rectangle's
|
|
1431
|
+
// `select-set` arrives after this `loaded`, and a restore planned for the board dropped it.
|
|
1432
|
+
restoreSelectionOn(m.file, RESTORE_LEAD_MS);
|
|
954
1433
|
}
|
|
955
1434
|
}
|
|
956
1435
|
} else if (m.dgn === 'export-request' && m.id && m.payload) {
|
|
@@ -975,29 +1454,36 @@ export function useCanvasBridge({
|
|
|
975
1454
|
void runBridgedExport(e.source, m.id, m.payload);
|
|
976
1455
|
} else if (m.dgn === 'export-history-request' && m.id) {
|
|
977
1456
|
// Same bridge for the dialog's Recent tab (/_api/export-history is
|
|
978
|
-
// also main-origin-only).
|
|
1457
|
+
// also main-origin-only). gate-b-c4b — the active frame only, and only
|
|
1458
|
+
// its own canvas's exports (bridgedHistory).
|
|
1459
|
+
const activeWin = activePath ? iframesRef.current.get(activePath)?.contentWindow : null;
|
|
1460
|
+
if (!activeWin || e.source !== activeWin) return;
|
|
979
1461
|
void runBridgedHistory(e.source, m.id);
|
|
980
1462
|
}
|
|
981
1463
|
}
|
|
982
1464
|
// Reply target for the export bridge: the canvas iframe's own origin.
|
|
983
1465
|
const replyOrigin = cfg?.canvasOrigin || window.location.origin;
|
|
984
|
-
async function runBridgedExport(source, id,
|
|
985
|
-
// The in-canvas dialog exports the canvas it LIVES IN — which the M1
|
|
986
|
-
// gate above just proved is `activePath`. Stamp it so scope resolution
|
|
987
|
-
// never falls back to the server's (asynchronously written, possibly
|
|
988
|
-
// stale) `_active.json` — same rule as the shell dialog's canvasFile.
|
|
989
|
-
// OVERWRITE, not fill-if-absent: the M1 gate above proved the sender IS
|
|
990
|
-
// the active canvas iframe (untrusted, DDR-054), so a canvasFile IT
|
|
991
|
-
// supplied must not survive — the bridged export renders the canvas it
|
|
992
|
-
// lives in, full stop (security review W2).
|
|
993
|
-
if (payload?.options && activePath && activePath !== SYSTEM_TAB) {
|
|
994
|
-
payload.options.canvasFile = activePath;
|
|
995
|
-
}
|
|
1466
|
+
async function runBridgedExport(source, id, asked) {
|
|
996
1467
|
const reply = (msg) => {
|
|
997
1468
|
try {
|
|
998
1469
|
if (source) source.postMessage({ dgn: 'export-result', id, ...msg }, replyOrigin);
|
|
999
1470
|
} catch {}
|
|
1000
1471
|
};
|
|
1472
|
+
// The in-canvas dialog exports the canvas it LIVES IN — which the M1
|
|
1473
|
+
// gate above just proved is `activePath`. OVERWRITE, never fill-if-absent:
|
|
1474
|
+
// the sender is the untrusted canvas (DDR-054), so a target IT supplied
|
|
1475
|
+
// must not survive (security review W2). gate-b-c4b — and only that canvas:
|
|
1476
|
+
// a v1 `project-raw` / v2 Folder / Whole-project scope is refused here (the
|
|
1477
|
+
// shell's own Export sheet still offers them), the v2 `canvas` is pinned.
|
|
1478
|
+
const scoped =
|
|
1479
|
+
activePath && activePath !== SYSTEM_TAB
|
|
1480
|
+
? bridgedExportPayload(asked, activePath, cfg?.designRel)
|
|
1481
|
+
: { ok: false, error: 'Open a canvas to export it.' };
|
|
1482
|
+
if (!scoped.ok) {
|
|
1483
|
+
reply({ ok: false, error: scoped.error });
|
|
1484
|
+
return;
|
|
1485
|
+
}
|
|
1486
|
+
const payload = scoped.payload;
|
|
1001
1487
|
// DDR-231 — the browser lane, mirrored for the IN-CANVAS dialog: png/svg
|
|
1002
1488
|
// of a known artboard is captured by the asking canvas itself (the shell
|
|
1003
1489
|
// relays the request back over the export-capture bridge and downloads
|
|
@@ -1080,7 +1566,8 @@ export function useCanvasBridge({
|
|
|
1080
1566
|
const r = await fetch('/_api/export-history');
|
|
1081
1567
|
if (r.ok) {
|
|
1082
1568
|
const data = await r.json();
|
|
1083
|
-
if (Array.isArray(data.history))
|
|
1569
|
+
if (Array.isArray(data.history))
|
|
1570
|
+
history = bridgedHistory(data.history, activePath, cfg?.designRel);
|
|
1084
1571
|
}
|
|
1085
1572
|
} catch {
|
|
1086
1573
|
/* best-effort — empty list */
|
|
@@ -1104,6 +1591,8 @@ export function useCanvasBridge({
|
|
|
1104
1591
|
activePath,
|
|
1105
1592
|
postToActiveCanvas,
|
|
1106
1593
|
captureFromCanvas,
|
|
1594
|
+
gitUser,
|
|
1595
|
+
restoreSelectionOn,
|
|
1107
1596
|
]);
|
|
1108
1597
|
|
|
1109
1598
|
// Tell the active canvas iframe to drop any persistent selection (canvas
|
|
@@ -1115,7 +1604,7 @@ export function useCanvasBridge({
|
|
|
1115
1604
|
const el = iframesRef.current.get(activePath);
|
|
1116
1605
|
if (el && el.contentWindow) {
|
|
1117
1606
|
try {
|
|
1118
|
-
el.contentWindow.postMessage({ dgn: 'force-clear' },
|
|
1607
|
+
el.contentWindow.postMessage({ dgn: 'force-clear' }, canvasOriginRef.current);
|
|
1119
1608
|
} catch {}
|
|
1120
1609
|
}
|
|
1121
1610
|
}, [activePath]);
|
|
@@ -1129,7 +1618,7 @@ export function useCanvasBridge({
|
|
|
1129
1618
|
const el = iframesRef.current.get(activePath);
|
|
1130
1619
|
if (el && el.contentWindow) {
|
|
1131
1620
|
try {
|
|
1132
|
-
el.contentWindow.postMessage({ dgn: 'apply-style', ...payload },
|
|
1621
|
+
el.contentWindow.postMessage({ dgn: 'apply-style', ...payload }, canvasOriginRef.current);
|
|
1133
1622
|
} catch {}
|
|
1134
1623
|
}
|
|
1135
1624
|
},
|
|
@@ -1146,7 +1635,7 @@ export function useCanvasBridge({
|
|
|
1146
1635
|
const el = iframesRef.current.get(activePath);
|
|
1147
1636
|
if (el && el.contentWindow) {
|
|
1148
1637
|
try {
|
|
1149
|
-
el.contentWindow.postMessage({ dgn: 'record-edit', payload },
|
|
1638
|
+
el.contentWindow.postMessage({ dgn: 'record-edit', payload }, canvasOriginRef.current);
|
|
1150
1639
|
} catch {}
|
|
1151
1640
|
}
|
|
1152
1641
|
},
|
|
@@ -1277,31 +1766,34 @@ export function useCanvasBridge({
|
|
|
1277
1766
|
// fix as resizeElement; also covers the keyboard nudge (L1) which reuses this.
|
|
1278
1767
|
applyOptimisticStyle({ id, prop: 'left', value: `${left}px` });
|
|
1279
1768
|
applyOptimisticStyle({ id, prop: 'top', value: `${top}px` });
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
fetch('/_api/edit-css', {
|
|
1283
|
-
method: 'POST',
|
|
1284
|
-
headers: { 'content-type': 'application/json' },
|
|
1285
|
-
body: JSON.stringify({ canvas, id, property, value: `${value}px`, idIndex: occ }),
|
|
1286
|
-
}).then((r) => r.json().catch(() => ({})));
|
|
1769
|
+
// S2.25 G2 — ONE request writes left and top together and says what it did ("Moved See pricing 10 px"): one
|
|
1770
|
+
// write, one history row, one ⌘Z for the whole move (two calls were two writes, each an unlabelled "Edit canvas").
|
|
1287
1771
|
editApplyChainRef.current = editApplyChainRef.current
|
|
1288
1772
|
.catch(() => {})
|
|
1289
|
-
.then(() =>
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1773
|
+
.then(() =>
|
|
1774
|
+
fetch('/_api/edit-css', {
|
|
1775
|
+
method: 'POST',
|
|
1776
|
+
headers: { 'content-type': 'application/json' },
|
|
1777
|
+
body: JSON.stringify({
|
|
1778
|
+
canvas,
|
|
1779
|
+
id,
|
|
1780
|
+
property: 'left',
|
|
1781
|
+
value: `${left}px`,
|
|
1782
|
+
also: [{ property: 'top', value: `${top}px` }],
|
|
1783
|
+
label: moveLabel(id, left - beforeLeft, top - beforeTop),
|
|
1784
|
+
idIndex: occ,
|
|
1785
|
+
}),
|
|
1786
|
+
}).then((r) => r.json().catch(() => ({})))
|
|
1787
|
+
)
|
|
1788
|
+
.then((j) => {
|
|
1789
|
+
if (!j.ok) throw new Error(j.error || 'move write failed');
|
|
1790
|
+
// The canvas undo stack (the lane without the op log) keeps a record per property.
|
|
1299
1791
|
recordSourceEdit({
|
|
1300
1792
|
op: 'css',
|
|
1301
1793
|
canvas,
|
|
1302
1794
|
id,
|
|
1303
1795
|
key: 'left',
|
|
1304
|
-
before: replacedValue(
|
|
1796
|
+
before: replacedValue(j, `${beforeLeft}px`),
|
|
1305
1797
|
after: `${left}px`,
|
|
1306
1798
|
});
|
|
1307
1799
|
recordSourceEdit({
|
|
@@ -1309,7 +1801,7 @@ export function useCanvasBridge({
|
|
|
1309
1801
|
canvas,
|
|
1310
1802
|
id,
|
|
1311
1803
|
key: 'top',
|
|
1312
|
-
before:
|
|
1804
|
+
before: `${beforeTop}px`,
|
|
1313
1805
|
after: `${top}px`,
|
|
1314
1806
|
});
|
|
1315
1807
|
})
|
|
@@ -1372,11 +1864,7 @@ export function useCanvasBridge({
|
|
|
1372
1864
|
// artboardId/index (when it matches `id`) so every optimistic apply +
|
|
1373
1865
|
// the belt-and-suspenders reselect below target the SAME instance.
|
|
1374
1866
|
const curSel = selectedRef.current;
|
|
1375
|
-
const curOne = Array.isArray(curSel)
|
|
1376
|
-
? curSel.length === 1
|
|
1377
|
-
? curSel[0]
|
|
1378
|
-
: null
|
|
1379
|
-
: curSel;
|
|
1867
|
+
const curOne = Array.isArray(curSel) ? (curSel.length === 1 ? curSel[0] : null) : curSel;
|
|
1380
1868
|
const selArtboardId = curOne && curOne.id === id ? (curOne.artboardId ?? null) : null;
|
|
1381
1869
|
const selIndex = curOne && curOne.id === id ? (curOne.index ?? 0) : 0;
|
|
1382
1870
|
// INV-2 (DDR-105) — arm the reload-suppression window BEFORE the edit-css
|
|
@@ -1502,7 +1990,7 @@ export function useCanvasBridge({
|
|
|
1502
1990
|
structuralWrite(
|
|
1503
1991
|
'/_api/delete-element',
|
|
1504
1992
|
{ id, idIndex: Number.isInteger(idIndex) ? idIndex : undefined },
|
|
1505
|
-
{ label: 'delete element', onOk: () => postToActiveCanvas(
|
|
1993
|
+
{ label: 'delete element', onOk: () => postToActiveCanvas(runActionMessage('select.none')) }
|
|
1506
1994
|
);
|
|
1507
1995
|
},
|
|
1508
1996
|
[structuralWrite, postToActiveCanvas]
|
|
@@ -1527,7 +2015,12 @@ export function useCanvasBridge({
|
|
|
1527
2015
|
// on transpile — best-effort, like reorder's pendingReorderRef).
|
|
1528
2016
|
onOk: (j, canvas) => {
|
|
1529
2017
|
if (!j.newId) return;
|
|
1530
|
-
pendingReorderRef.current = {
|
|
2018
|
+
pendingReorderRef.current = {
|
|
2019
|
+
file: canvas,
|
|
2020
|
+
movedId: j.newId,
|
|
2021
|
+
artboardId: null,
|
|
2022
|
+
staleSig,
|
|
2023
|
+
};
|
|
1531
2024
|
const last = lastLayersTreeRef.current;
|
|
1532
2025
|
if (last) settlePendingSelectionRef.current?.(last.tree, last.sig, last.artboardId);
|
|
1533
2026
|
},
|
|
@@ -1574,7 +2067,7 @@ export function useCanvasBridge({
|
|
|
1574
2067
|
{
|
|
1575
2068
|
label: 'detach instance',
|
|
1576
2069
|
onOk: (j) => {
|
|
1577
|
-
postToActiveCanvas(
|
|
2070
|
+
postToActiveCanvas(runActionMessage('select.none'));
|
|
1578
2071
|
postToActiveCanvas({
|
|
1579
2072
|
dgn: 'op-toast',
|
|
1580
2073
|
message: `Detached — this instance is now ${j.detachedName || 'its own component'}; edits stay local (⌘Z to undo).`,
|
|
@@ -1603,7 +2096,12 @@ export function useCanvasBridge({
|
|
|
1603
2096
|
// one, where the copy's id still names the next sibling.
|
|
1604
2097
|
onOk: (j, canvas) => {
|
|
1605
2098
|
if (!j.newId) return;
|
|
1606
|
-
pendingReorderRef.current = {
|
|
2099
|
+
pendingReorderRef.current = {
|
|
2100
|
+
file: canvas,
|
|
2101
|
+
movedId: j.newId,
|
|
2102
|
+
artboardId: null,
|
|
2103
|
+
staleSig,
|
|
2104
|
+
};
|
|
1607
2105
|
const last = lastLayersTreeRef.current;
|
|
1608
2106
|
if (last) settlePendingSelectionRef.current?.(last.tree, last.sig, last.artboardId);
|
|
1609
2107
|
},
|
|
@@ -1644,10 +2142,14 @@ export function useCanvasBridge({
|
|
|
1644
2142
|
]),
|
|
1645
2143
|
[]
|
|
1646
2144
|
);
|
|
2145
|
+
// p8-sweep-close — both say what happened (`styleNotice`, top of file).
|
|
1647
2146
|
const copyStyle = useCallback(() => {
|
|
1648
2147
|
const sel = selectedRef.current;
|
|
1649
2148
|
const one = Array.isArray(sel) ? (sel.length === 1 ? sel[0] : null) : sel;
|
|
1650
|
-
if (!one)
|
|
2149
|
+
if (!one) {
|
|
2150
|
+
styleNotice('Nothing copied. Select one object, then choose Copy style.', 'info');
|
|
2151
|
+
return;
|
|
2152
|
+
}
|
|
1651
2153
|
const map = {};
|
|
1652
2154
|
for (const [k, v] of Object.entries(one.authored || {})) {
|
|
1653
2155
|
if (!PASTE_STYLE_EXCLUDE.has(k)) map[k] = v;
|
|
@@ -1655,12 +2157,29 @@ export function useCanvasBridge({
|
|
|
1655
2157
|
for (const [k, v] of Object.entries(one.customStyles || {})) {
|
|
1656
2158
|
if (!PASTE_STYLE_EXCLUDE.has(k)) map[k] = v;
|
|
1657
2159
|
}
|
|
1658
|
-
|
|
2160
|
+
const n = Object.keys(map).length;
|
|
2161
|
+
if (!n) {
|
|
2162
|
+
// The earlier copy (if any) is kept — a miss does not empty the clipboard.
|
|
2163
|
+
styleNotice(
|
|
2164
|
+
'Nothing copied. This object has no style of its own — its look comes from its classes.',
|
|
2165
|
+
'info'
|
|
2166
|
+
);
|
|
2167
|
+
return;
|
|
2168
|
+
}
|
|
2169
|
+
copiedStyleRef.current = map;
|
|
2170
|
+
styleNotice(
|
|
2171
|
+
`Style copied — ${n} ${n === 1 ? 'property' : 'properties'}. Select another object and choose Paste style.`,
|
|
2172
|
+
'success'
|
|
2173
|
+
);
|
|
1659
2174
|
}, [PASTE_STYLE_EXCLUDE]);
|
|
1660
2175
|
const pasteStyle = useCallback(
|
|
1661
2176
|
(id) => {
|
|
1662
2177
|
const canvas = activePath;
|
|
1663
2178
|
const map = copiedStyleRef.current;
|
|
2179
|
+
if (canvas && id && !map) {
|
|
2180
|
+
styleNotice('Nothing to paste yet. Choose Copy style on an object first.', 'info');
|
|
2181
|
+
return;
|
|
2182
|
+
}
|
|
1664
2183
|
if (!canvas || !id || !map) return;
|
|
1665
2184
|
const entries = Object.entries(map);
|
|
1666
2185
|
let chain = editApplyChainRef.current.catch(() => {});
|
|
@@ -1697,10 +2216,28 @@ export function useCanvasBridge({
|
|
|
1697
2216
|
structuralWrite(
|
|
1698
2217
|
'/_api/insert-artboard',
|
|
1699
2218
|
{ id, label, width, height },
|
|
1700
|
-
|
|
2219
|
+
// plain words (G4, gate B): the toast reads "Couldn't add an artboard — <why>."
|
|
2220
|
+
{
|
|
2221
|
+
label: 'add an artboard',
|
|
2222
|
+
// P8 C5 (05 es-artboard-new): the new board is the selected one — its hint and its Inspector follow
|
|
2223
|
+
onOk: (_j, canvas) => {
|
|
2224
|
+
const file = canvas || activePath;
|
|
2225
|
+
newArtboardSelect.current?.();
|
|
2226
|
+
newArtboardSelect.current = selectNewArtboard({
|
|
2227
|
+
artboardId: id,
|
|
2228
|
+
post: (msg) => {
|
|
2229
|
+
try {
|
|
2230
|
+
iframesRef.current
|
|
2231
|
+
.get(file)
|
|
2232
|
+
?.contentWindow?.postMessage(msg, canvasOriginRef.current);
|
|
2233
|
+
} catch {}
|
|
2234
|
+
},
|
|
2235
|
+
});
|
|
2236
|
+
},
|
|
2237
|
+
}
|
|
1701
2238
|
);
|
|
1702
2239
|
},
|
|
1703
|
-
[structuralWrite]
|
|
2240
|
+
[structuralWrite, activePath, iframesRef]
|
|
1704
2241
|
);
|
|
1705
2242
|
|
|
1706
2243
|
const resizeArtboardShell = useCallback(
|
|
@@ -1724,11 +2261,41 @@ export function useCanvasBridge({
|
|
|
1724
2261
|
[structuralWrite, postToActiveCanvas, scheduleArtboardResync, activePath]
|
|
1725
2262
|
);
|
|
1726
2263
|
|
|
2264
|
+
// S2.10b — ⌫ / "Move to trash" on an artboard (the canvas's ⌫, its menu row, the shell's ⌫ guard)
|
|
2265
|
+
// is the `artboard.trash` edit-op: on an op-log project ONE `kind: 'trash'` action (the Trash lists
|
|
2266
|
+
// it, one ⌘Z brings the board and its place back); on a legacy link one write + one revert record
|
|
2267
|
+
// on the canvas's undo stack. `/_api/delete-artboard` stays for its v1 callers.
|
|
1727
2268
|
const deleteArtboardShell = useCallback(
|
|
1728
2269
|
(artboardId) => {
|
|
1729
|
-
|
|
2270
|
+
if (!activePath || activePath === SYSTEM_TAB) return;
|
|
2271
|
+
const body = trashArtboardBody(activePath, [artboardId]);
|
|
2272
|
+
if (!body) return;
|
|
2273
|
+
editApplyChainRef.current = editApplyChainRef.current
|
|
2274
|
+
.catch(() => {})
|
|
2275
|
+
.then(() =>
|
|
2276
|
+
fetch('/_api/edit-op', {
|
|
2277
|
+
method: 'POST',
|
|
2278
|
+
headers: { 'content-type': 'application/json' },
|
|
2279
|
+
body: JSON.stringify(body),
|
|
2280
|
+
})
|
|
2281
|
+
.then(readEditOpAnswer)
|
|
2282
|
+
.then((r) => {
|
|
2283
|
+
if (!r.ok) {
|
|
2284
|
+
postToActiveCanvas({ dgn: 'op-toast', message: r.message });
|
|
2285
|
+
return;
|
|
2286
|
+
}
|
|
2287
|
+
const payload = legacyRecordPayload(r, TRASH_RECORD_LABEL);
|
|
2288
|
+
if (payload) postToActiveCanvas({ dgn: 'record-edit', payload });
|
|
2289
|
+
})
|
|
2290
|
+
.catch(() =>
|
|
2291
|
+
postToActiveCanvas({
|
|
2292
|
+
dgn: 'op-toast',
|
|
2293
|
+
message: 'The studio could not be reached; try again.',
|
|
2294
|
+
})
|
|
2295
|
+
)
|
|
2296
|
+
);
|
|
1730
2297
|
},
|
|
1731
|
-
[
|
|
2298
|
+
[activePath, postToActiveCanvas]
|
|
1732
2299
|
);
|
|
1733
2300
|
|
|
1734
2301
|
// feature-3-web-artboards T3 — "Duplicate at width…". No onOk auto-select
|
|
@@ -1765,10 +2332,14 @@ export function useCanvasBridge({
|
|
|
1765
2332
|
// Artboard "more settings" (background/padding/layout/gap) from ArtboardKnobs.
|
|
1766
2333
|
const setArtboardStyleShell = useCallback(
|
|
1767
2334
|
(artboardId, patch) => {
|
|
1768
|
-
structuralWrite(
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
2335
|
+
structuralWrite(
|
|
2336
|
+
'/_api/set-artboard-style',
|
|
2337
|
+
{ artboardId, ...patch },
|
|
2338
|
+
{
|
|
2339
|
+
label: 'artboard style',
|
|
2340
|
+
onOk: () => scheduleArtboardResync(artboardId, activePath),
|
|
2341
|
+
}
|
|
2342
|
+
);
|
|
1772
2343
|
},
|
|
1773
2344
|
[structuralWrite, scheduleArtboardResync, activePath]
|
|
1774
2345
|
);
|
|
@@ -1794,10 +2365,14 @@ export function useCanvasBridge({
|
|
|
1794
2365
|
const pendingPrintSeedRef = useRef(null);
|
|
1795
2366
|
const directArtboardKindWrite = useCallback(
|
|
1796
2367
|
(artboardId, kind) => {
|
|
1797
|
-
structuralWrite(
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
2368
|
+
structuralWrite(
|
|
2369
|
+
'/_api/set-artboard-kind',
|
|
2370
|
+
{ artboardId, kind },
|
|
2371
|
+
{
|
|
2372
|
+
label: 'artboard kind',
|
|
2373
|
+
onOk: () => scheduleArtboardResync(artboardId, activePath),
|
|
2374
|
+
}
|
|
2375
|
+
);
|
|
1801
2376
|
const seed = pendingPrintSeedRef.current;
|
|
1802
2377
|
if (kind === 'print' && seed && seed.artboardId === artboardId) {
|
|
1803
2378
|
pendingPrintSeedRef.current = null;
|
|
@@ -1850,10 +2425,14 @@ export function useCanvasBridge({
|
|
|
1850
2425
|
// context-menu caller inside the iframe).
|
|
1851
2426
|
const setArtboardPrintShell = useCallback(
|
|
1852
2427
|
(artboardId, print) => {
|
|
1853
|
-
structuralWrite(
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
2428
|
+
structuralWrite(
|
|
2429
|
+
'/_api/set-artboard-print',
|
|
2430
|
+
{ artboardId, print },
|
|
2431
|
+
{
|
|
2432
|
+
label: 'artboard print',
|
|
2433
|
+
onOk: () => scheduleArtboardResync(artboardId, activePath),
|
|
2434
|
+
}
|
|
2435
|
+
);
|
|
1857
2436
|
},
|
|
1858
2437
|
[structuralWrite, scheduleArtboardResync, activePath]
|
|
1859
2438
|
);
|
|
@@ -1930,38 +2509,10 @@ export function useCanvasBridge({
|
|
|
1930
2509
|
pasteStyle,
|
|
1931
2510
|
]);
|
|
1932
2511
|
|
|
1933
|
-
//
|
|
1934
|
-
//
|
|
1935
|
-
//
|
|
1936
|
-
//
|
|
1937
|
-
// sees the keydown — the shell must catch it. Preventing the default here stops
|
|
1938
|
-
// the back-nav universally; if a single artboard is the selection, also delete
|
|
1939
|
-
// it (Backspace parity with the context menu). Element delete stays in the
|
|
1940
|
-
// canvas iframe (which has focus when an element is selected; its keydown never
|
|
1941
|
-
// reaches this window, so there's no double-handling).
|
|
1942
|
-
useEffect(() => {
|
|
1943
|
-
const onKey = (e) => {
|
|
1944
|
-
if (e.key !== 'Backspace' && e.key !== 'Delete') return;
|
|
1945
|
-
if (e.metaKey || e.ctrlKey || e.altKey) return;
|
|
1946
|
-
const t = e.target;
|
|
1947
|
-
const editable =
|
|
1948
|
-
t &&
|
|
1949
|
-
(t.tagName === 'INPUT' ||
|
|
1950
|
-
t.tagName === 'TEXTAREA' ||
|
|
1951
|
-
t.tagName === 'SELECT' ||
|
|
1952
|
-
t.isContentEditable);
|
|
1953
|
-
if (editable) return;
|
|
1954
|
-
// Suppress the WKWebView back-nav unconditionally once focus isn't editable —
|
|
1955
|
-
// the activePath/SYSTEM_TAB check below is app logic, not default-action gating,
|
|
1956
|
-
// so it must not gate preventDefault (that gap caused the desktop "Starting…" hang).
|
|
1957
|
-
e.preventDefault();
|
|
1958
|
-
if (!activePath || activePath === SYSTEM_TAB) return;
|
|
1959
|
-
const one = Array.isArray(selected) ? (selected.length === 1 ? selected[0] : null) : selected;
|
|
1960
|
-
if (one?.artboardId && !one.id) deleteArtboardShell(one.artboardId);
|
|
1961
|
-
};
|
|
1962
|
-
window.addEventListener('keydown', onKey);
|
|
1963
|
-
return () => window.removeEventListener('keydown', onKey);
|
|
1964
|
-
}, [activePath, selected, deleteArtboardShell]);
|
|
2512
|
+
// The shell-level Backspace/Delete guard (blocks WKWebView back-navigation;
|
|
2513
|
+
// deletes a single selected artboard) is the `object.remove` registry action now
|
|
2514
|
+
// (V2-2.4 — client/actions/shell-key-handlers.js); it calls deleteArtboardShell,
|
|
2515
|
+
// returned below.
|
|
1965
2516
|
|
|
1966
2517
|
// feature-element-editing-robustness Stage F — AssetPicker request. `req` is
|
|
1967
2518
|
// { purpose:'insert-image', refId, position, refIndex } (Insert ▸ Image) or
|
|
@@ -1972,15 +2523,11 @@ export function useCanvasBridge({
|
|
|
1972
2523
|
openAssetPickerRef.current = (req) => setAssetPickerReq(req);
|
|
1973
2524
|
}, []);
|
|
1974
2525
|
|
|
1975
|
-
// Phase 4 (whiteboard-improvements) — { canvas: activePath } when open, null
|
|
1976
|
-
//
|
|
1977
|
-
//
|
|
1978
|
-
//
|
|
2526
|
+
// Phase 4 (whiteboard-improvements) — { canvas: activePath, anchor } when open, null when closed.
|
|
2527
|
+
// V2-4.5c: opened by the shell's `tool-panel-open` handler (client/v2/shell/use-tool-panels.js),
|
|
2528
|
+
// which hands app.jsx `setStickerPickerReq`; `anchor` is the panel's placement above/below the
|
|
2529
|
+
// toolbar island (null = the centred dialog).
|
|
1979
2530
|
const [stickerPickerReq, setStickerPickerReq] = useState(null);
|
|
1980
|
-
const openStickerPickerRef = useRef(null);
|
|
1981
|
-
useEffect(() => {
|
|
1982
|
-
openStickerPickerRef.current = (req) => setStickerPickerReq(req);
|
|
1983
|
-
}, []);
|
|
1984
2531
|
const onAssetPicked = useCallback(
|
|
1985
2532
|
(pickedPath) => {
|
|
1986
2533
|
const req = assetPickerReq;
|
|
@@ -2006,31 +2553,57 @@ export function useCanvasBridge({
|
|
|
2006
2553
|
// Re-point an authored <img>/<video> src via /_api/edit-attr (+ undo).
|
|
2007
2554
|
const canvas = activePath;
|
|
2008
2555
|
if (!canvas || !req.id) return;
|
|
2556
|
+
const viaEditAttr = () =>
|
|
2557
|
+
fetch('/_api/edit-attr', {
|
|
2558
|
+
method: 'POST',
|
|
2559
|
+
headers: { 'content-type': 'application/json' },
|
|
2560
|
+
body: JSON.stringify({ canvas, id: req.id, attr: 'src', value: pickedPath }),
|
|
2561
|
+
})
|
|
2562
|
+
.then((r) => r.json().catch(() => ({})))
|
|
2563
|
+
.then((j) => {
|
|
2564
|
+
if (j.ok) {
|
|
2565
|
+
recordSourceEdit({
|
|
2566
|
+
op: 'attr',
|
|
2567
|
+
canvas,
|
|
2568
|
+
id: req.id,
|
|
2569
|
+
key: 'src',
|
|
2570
|
+
before: replacedValue(j, req.before ?? null),
|
|
2571
|
+
after: pickedPath,
|
|
2572
|
+
});
|
|
2573
|
+
} else {
|
|
2574
|
+
console.warn('[replace-src]', j.error || 'failed');
|
|
2575
|
+
}
|
|
2576
|
+
})
|
|
2577
|
+
.catch(() => {});
|
|
2578
|
+
// S2.15 — a picture the inspector names by ref is replaced by the `image.replace` edit-op: one write, one
|
|
2579
|
+
// undo step, and a per-use photo edit of the old picture goes with it. An older studio (no such op) and a
|
|
2580
|
+
// video keep the edit-attr write above.
|
|
2581
|
+
const viaEditOp = () =>
|
|
2582
|
+
fetch('/_api/edit-op', {
|
|
2583
|
+
method: 'POST',
|
|
2584
|
+
headers: { 'content-type': 'application/json' },
|
|
2585
|
+
body: JSON.stringify({
|
|
2586
|
+
file: canvas,
|
|
2587
|
+
op: 'image.replace',
|
|
2588
|
+
targets: [req.ref],
|
|
2589
|
+
params: { asset: pickedPath },
|
|
2590
|
+
}),
|
|
2591
|
+
})
|
|
2592
|
+
.then(async (r) => ({ status: r.status, j: await r.json().catch(() => ({})) }))
|
|
2593
|
+
.then(({ status, j }) => {
|
|
2594
|
+
if (status === 404 || status === 405) return viaEditAttr();
|
|
2595
|
+
if (j.ok) {
|
|
2596
|
+
const payload = legacyRecordPayload(j, 'Replace picture');
|
|
2597
|
+
if (payload) recordSourceEdit(payload);
|
|
2598
|
+
} else {
|
|
2599
|
+
console.warn('[replace-src]', j.message || 'failed');
|
|
2600
|
+
}
|
|
2601
|
+
return undefined;
|
|
2602
|
+
})
|
|
2603
|
+
.catch(() => {});
|
|
2009
2604
|
editApplyChainRef.current = editApplyChainRef.current
|
|
2010
2605
|
.catch(() => {})
|
|
2011
|
-
.then(
|
|
2012
|
-
fetch('/_api/edit-attr', {
|
|
2013
|
-
method: 'POST',
|
|
2014
|
-
headers: { 'content-type': 'application/json' },
|
|
2015
|
-
body: JSON.stringify({ canvas, id: req.id, attr: 'src', value: pickedPath }),
|
|
2016
|
-
})
|
|
2017
|
-
.then((r) => r.json().catch(() => ({})))
|
|
2018
|
-
.then((j) => {
|
|
2019
|
-
if (j.ok) {
|
|
2020
|
-
recordSourceEdit({
|
|
2021
|
-
op: 'attr',
|
|
2022
|
-
canvas,
|
|
2023
|
-
id: req.id,
|
|
2024
|
-
key: 'src',
|
|
2025
|
-
before: replacedValue(j, req.before ?? null),
|
|
2026
|
-
after: pickedPath,
|
|
2027
|
-
});
|
|
2028
|
-
} else {
|
|
2029
|
-
console.warn('[replace-src]', j.error || 'failed');
|
|
2030
|
-
}
|
|
2031
|
-
})
|
|
2032
|
-
.catch(() => {})
|
|
2033
|
-
);
|
|
2606
|
+
.then(req.ref ? viaEditOp : viaEditAttr);
|
|
2034
2607
|
return;
|
|
2035
2608
|
}
|
|
2036
2609
|
if (req.purpose === 'replace-annotation-media') {
|
|
@@ -2083,6 +2656,18 @@ export function useCanvasBridge({
|
|
|
2083
2656
|
const onStickerPicked = useCallback(
|
|
2084
2657
|
async (sticker) => {
|
|
2085
2658
|
const req = stickerPickerReq;
|
|
2659
|
+
// S4.13: a vote stamp has no picture to upload. The canvas arms it (the pick trails the pointer and
|
|
2660
|
+
// stays armed), and the gallery stays open - folded to the Stamps row by the gallery itself.
|
|
2661
|
+
if (sticker?.pack === 'stamps') {
|
|
2662
|
+
if (req && (!req.canvas || req.canvas === activePath))
|
|
2663
|
+
postToActiveCanvas({
|
|
2664
|
+
dgn: 'insert-sticker',
|
|
2665
|
+
path: '',
|
|
2666
|
+
follow: true,
|
|
2667
|
+
sticker: { pack: 'stamps', id: sticker.id },
|
|
2668
|
+
});
|
|
2669
|
+
return;
|
|
2670
|
+
}
|
|
2086
2671
|
setStickerPickerReq(null);
|
|
2087
2672
|
if (!req || !sticker?.url) return;
|
|
2088
2673
|
// G3 security (DDR-152) — same re-check as onAssetPicked: the request
|
|
@@ -2096,6 +2681,9 @@ export function useCanvasBridge({
|
|
|
2096
2681
|
const blob = await fetch(sticker.url).then((r) =>
|
|
2097
2682
|
r.ok ? r.blob() : Promise.reject(new Error(`HTTP ${r.status}`))
|
|
2098
2683
|
);
|
|
2684
|
+
// r4 #16: the picture itself travels with the pick, so the ghost under the pointer and the placed
|
|
2685
|
+
// sticker draw at once instead of waiting for the canvas to load the uploaded copy.
|
|
2686
|
+
const preview = blobToDataUrl(blob);
|
|
2099
2687
|
const res = await fetch('/_api/asset', {
|
|
2100
2688
|
method: 'POST',
|
|
2101
2689
|
headers: { 'content-type': blob.type || 'image/png' },
|
|
@@ -2106,7 +2694,28 @@ export function useCanvasBridge({
|
|
|
2106
2694
|
console.warn('[sticker-picker]', j.error || `upload failed (HTTP ${res.status})`);
|
|
2107
2695
|
return;
|
|
2108
2696
|
}
|
|
2109
|
-
|
|
2697
|
+
// S4.3: name the bundled sticker the bytes came from (the gallery's pack slug + file)
|
|
2698
|
+
const ref =
|
|
2699
|
+
sticker.pack && sticker.id ? { sticker: { pack: sticker.pack, id: sticker.id } } : {};
|
|
2700
|
+
if (req.replace) {
|
|
2701
|
+
// S4.13: Replace… swaps the picture of the selected sticker in place (same spot, same size)
|
|
2702
|
+
postToActiveCanvas({
|
|
2703
|
+
dgn: 'replace-annotation-media',
|
|
2704
|
+
id: req.replace,
|
|
2705
|
+
path: j.path,
|
|
2706
|
+
...ref,
|
|
2707
|
+
});
|
|
2708
|
+
} else {
|
|
2709
|
+
// S4.13: the pick follows the pointer until a click, then lands at 160 px
|
|
2710
|
+
const dataUrl = await preview;
|
|
2711
|
+
postToActiveCanvas({
|
|
2712
|
+
dgn: 'insert-sticker',
|
|
2713
|
+
path: j.path,
|
|
2714
|
+
follow: true,
|
|
2715
|
+
...(dataUrl ? { preview: dataUrl } : {}),
|
|
2716
|
+
...ref,
|
|
2717
|
+
});
|
|
2718
|
+
}
|
|
2110
2719
|
} catch {
|
|
2111
2720
|
console.warn('[sticker-picker] could not load or upload that sticker');
|
|
2112
2721
|
}
|
|
@@ -2124,6 +2733,12 @@ export function useCanvasBridge({
|
|
|
2124
2733
|
canvas: activePath,
|
|
2125
2734
|
id: elSel.id,
|
|
2126
2735
|
before: elSel.attrs?.src ?? null,
|
|
2736
|
+
// S2.15 — the picture as an edit-op target; absent on an old canvas bundle (then edit-attr)
|
|
2737
|
+
ref:
|
|
2738
|
+
Array.isArray(elSel.refs) &&
|
|
2739
|
+
(elSel.tag === 'img' || elSel.attrs?.['data-image-tile'] !== undefined)
|
|
2740
|
+
? (elSel.refs[0] ?? null)
|
|
2741
|
+
: null,
|
|
2127
2742
|
});
|
|
2128
2743
|
},
|
|
2129
2744
|
[activePath]
|
|
@@ -2140,11 +2755,30 @@ export function useCanvasBridge({
|
|
|
2140
2755
|
setFocusedCommentId((prev) => (prev === id ? null : prev));
|
|
2141
2756
|
}, []);
|
|
2142
2757
|
return {
|
|
2143
|
-
applyOptimisticStyle,
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2758
|
+
applyOptimisticStyle,
|
|
2759
|
+
assetPickerReq,
|
|
2760
|
+
clearActiveCanvasSelection,
|
|
2761
|
+
deleteArtboardShell,
|
|
2762
|
+
deleteComment,
|
|
2763
|
+
detachInstanceShell,
|
|
2764
|
+
duplicateArtboardShell,
|
|
2765
|
+
insertGeneratedImage,
|
|
2766
|
+
onAssetPicked,
|
|
2767
|
+
onInsertArtboard,
|
|
2768
|
+
onPickMany,
|
|
2769
|
+
onReplaceMedia,
|
|
2770
|
+
onStickerPicked,
|
|
2771
|
+
recordSourceEdit,
|
|
2772
|
+
reopenComment,
|
|
2773
|
+
reorderLayer,
|
|
2774
|
+
resizeArtboardShell,
|
|
2775
|
+
resolveComment,
|
|
2776
|
+
setArtboardHugShell,
|
|
2777
|
+
setArtboardKindShell,
|
|
2778
|
+
setArtboardPrintShell,
|
|
2779
|
+
setArtboardStyleShell,
|
|
2780
|
+
setAssetPickerReq,
|
|
2781
|
+
setStickerPickerReq,
|
|
2782
|
+
stickerPickerReq,
|
|
2149
2783
|
};
|
|
2150
2784
|
}
|