@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
|
@@ -1,2259 +0,0 @@
|
|
|
1
|
-
// TimelinePanel — DDR-148 bottom timeline for a video-comp, restructured by
|
|
2
|
-
// feature-enhanced-video-editing into the iMovie model:
|
|
3
|
-
//
|
|
4
|
-
// • ONE px-per-frame scale (timeline-scale.js) drives every block, handle,
|
|
5
|
-
// tick, and drag — zoom from fit-to-width down to single-frame ticks
|
|
6
|
-
// (⌘+/⌘−, pinch, header slider, `0` = fit), horizontal scroll when the
|
|
7
|
-
// content outgrows the viewport (Task 4);
|
|
8
|
-
// • a three-band layout for series comps: overlay lane above, ONE storyline
|
|
9
|
-
// lane of series beats butted side-by-side (transitions as ⧓ seam chips),
|
|
10
|
-
// audio lane below. Non-series comps keep the stacked row-per-sequence
|
|
11
|
-
// fallback (Task 5);
|
|
12
|
-
// • single-select (stableId) with the accent outline; click selects, the
|
|
13
|
-
// bare track scrubs + deselects; Esc/Delete live in the shell keyboard
|
|
14
|
-
// layer (Task 3).
|
|
15
|
-
//
|
|
16
|
-
// It drives the embedded Player via postMessage (`dgn: 'timeline-seek' |
|
|
17
|
-
// -play | -pause`), consumed by video-comp.tsx.
|
|
18
|
-
|
|
19
|
-
import { Fragment, useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
20
|
-
import { createPortal } from 'react-dom';
|
|
21
|
-
|
|
22
|
-
import { ImagePlus, MessageSquarePlus, Plus, Scissors, Sparkles, Type } from 'lucide-react';
|
|
23
|
-
|
|
24
|
-
import ClipInspector from './ClipInspector.jsx';
|
|
25
|
-
import { computeSnapTargets, snapFrame } from './timeline-snap.js';
|
|
26
|
-
import { activeComp } from './timeline-comp-target.js';
|
|
27
|
-
import { getFilmstrip, getPeaks, peaksToPath, stripBucket } from './timeline-media-cache.js';
|
|
28
|
-
import {
|
|
29
|
-
clampPxPerFrame,
|
|
30
|
-
fitPxPerFrame,
|
|
31
|
-
MAX_PX_PER_FRAME,
|
|
32
|
-
pxToFrame,
|
|
33
|
-
tickLabel,
|
|
34
|
-
tickStepFrames,
|
|
35
|
-
ZOOM_STEP,
|
|
36
|
-
zoomAroundScroll,
|
|
37
|
-
} from './timeline-scale.js';
|
|
38
|
-
// DDR-150 dogfood — reuse the SAME context-menu component the canvas uses
|
|
39
|
-
// (viewport-aware positioning, keyboard nav, outside-click/Esc dismiss, shared
|
|
40
|
-
// .dc-context-menu styling) instead of a bespoke shell menu.
|
|
41
|
-
import { ContextMenuView } from '../../context-menu.tsx';
|
|
42
|
-
|
|
43
|
-
// DDR-150 dogfood #6 — per-row media-kind identity so the timeline reads like
|
|
44
|
-
// an editor: what's footage, what's a still, what's audio, what's plain JSX.
|
|
45
|
-
function rowKind(seq) {
|
|
46
|
-
if (seq.placeholder) return 'placeholder';
|
|
47
|
-
const t = seq.mediaTag;
|
|
48
|
-
if (t === 'Video' || t === 'OffthreadVideo' || t === 'MaudeVideo') return 'video';
|
|
49
|
-
if (t === 'Img') return 'image';
|
|
50
|
-
if (t === 'Audio') return 'audio';
|
|
51
|
-
return 'jsx';
|
|
52
|
-
}
|
|
53
|
-
function rowKindGlyph(seq) {
|
|
54
|
-
const k = rowKind(seq);
|
|
55
|
-
if (k === 'placeholder') return '✨';
|
|
56
|
-
if (k === 'video') return '▶';
|
|
57
|
-
if (k === 'image') return '◫';
|
|
58
|
-
if (k === 'audio') return '♪';
|
|
59
|
-
return 'ƒ';
|
|
60
|
-
}
|
|
61
|
-
function rowKindTitle(seq) {
|
|
62
|
-
const k = rowKind(seq);
|
|
63
|
-
const src = seq.mediaSrc ? ` · ${String(seq.mediaSrc).split('/').pop()}` : '';
|
|
64
|
-
if (k === 'placeholder')
|
|
65
|
-
return `AI placeholder (${seq.placeholder?.kind || 'veo'}) · ${seq.placeholder?.prompt || ''}`;
|
|
66
|
-
if (k === 'video') return `Video clip${src}`;
|
|
67
|
-
if (k === 'image') return `Image${src}`;
|
|
68
|
-
if (k === 'audio') return `Audio${src}`;
|
|
69
|
-
return 'Animated JSX (code-driven)';
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function TIcon({ name, size = 15 }) {
|
|
73
|
-
const paths = {
|
|
74
|
-
play: <path d="M4 3l9 5-9 5z" fill="currentColor" stroke="none" />,
|
|
75
|
-
pause: (
|
|
76
|
-
<>
|
|
77
|
-
<rect x="4" y="3.5" width="3" height="9" fill="currentColor" stroke="none" />
|
|
78
|
-
<rect x="9" y="3.5" width="3" height="9" fill="currentColor" stroke="none" />
|
|
79
|
-
</>
|
|
80
|
-
),
|
|
81
|
-
loop: (
|
|
82
|
-
<>
|
|
83
|
-
<polyline points="4 4 4 7 7 7" />
|
|
84
|
-
<path d="M4 7a4.5 4.5 0 1 1 1.3 4.6" />
|
|
85
|
-
</>
|
|
86
|
-
),
|
|
87
|
-
start: (
|
|
88
|
-
<>
|
|
89
|
-
<line x1="4.5" y1="3.5" x2="4.5" y2="12.5" />
|
|
90
|
-
<path d="M12 3.5l-6 4.5 6 4.5z" fill="currentColor" stroke="none" />
|
|
91
|
-
</>
|
|
92
|
-
),
|
|
93
|
-
sound: (
|
|
94
|
-
<>
|
|
95
|
-
<path d="M3 6h2.2L8 3.3v9.4L5.2 10H3z" fill="currentColor" stroke="none" />
|
|
96
|
-
<path d="M10.5 5.5a3.2 3.2 0 0 1 0 5" />
|
|
97
|
-
<path d="M12.3 3.7a5.6 5.6 0 0 1 0 8.6" />
|
|
98
|
-
</>
|
|
99
|
-
),
|
|
100
|
-
muted: (
|
|
101
|
-
<>
|
|
102
|
-
<path d="M3 6h2.2L8 3.3v9.4L5.2 10H3z" fill="currentColor" stroke="none" />
|
|
103
|
-
<line x1="10.7" y1="6" x2="13.7" y2="10" />
|
|
104
|
-
<line x1="13.7" y1="6" x2="10.7" y2="10" />
|
|
105
|
-
</>
|
|
106
|
-
),
|
|
107
|
-
};
|
|
108
|
-
return (
|
|
109
|
-
<svg
|
|
110
|
-
width={size}
|
|
111
|
-
height={size}
|
|
112
|
-
viewBox="0 0 16 16"
|
|
113
|
-
fill="none"
|
|
114
|
-
stroke="currentColor"
|
|
115
|
-
strokeWidth="1.5"
|
|
116
|
-
strokeLinecap="round"
|
|
117
|
-
strokeLinejoin="round"
|
|
118
|
-
aria-hidden="true"
|
|
119
|
-
>
|
|
120
|
-
{paths[name]}
|
|
121
|
-
</svg>
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// lucide wrapper — hairline stroke to match the shell's icon weight (the same
|
|
126
|
-
// convention as inspector-controls' `Ic`).
|
|
127
|
-
const LIc = ({ as: C, size = 14 }) => (
|
|
128
|
-
<C size={size} strokeWidth={1.75} style={{ display: 'block', flex: 'none' }} />
|
|
129
|
-
);
|
|
130
|
-
|
|
131
|
-
const clamp = (n, lo, hi) => Math.max(lo, Math.min(hi, n));
|
|
132
|
-
|
|
133
|
-
function fmtTime(frame, fps) {
|
|
134
|
-
const s = frame / (fps || 30);
|
|
135
|
-
const whole = Math.floor(s);
|
|
136
|
-
const cs = Math.round((s - whole) * 100);
|
|
137
|
-
return `${whole}.${String(cs).padStart(2, '0')}s`;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Drag state its own release handler reads synchronously. The releases used
|
|
142
|
-
* to commit from INSIDE a state updater (`setX((d) => { commit(d); … })`), and
|
|
143
|
-
* React is free to run an updater more than once — StrictMode does it on
|
|
144
|
-
* purpose, and a render replayed against a concurrent update may too — so one
|
|
145
|
-
* drag could write its clip twice. Updaters passed to `set` run once, here,
|
|
146
|
-
* against the live value; the release commits outside any updater.
|
|
147
|
-
*/
|
|
148
|
-
function useLiveState(initial) {
|
|
149
|
-
const [state, setState] = useState(initial);
|
|
150
|
-
const live = useRef(initial);
|
|
151
|
-
const set = useCallback((next) => {
|
|
152
|
-
live.current = typeof next === 'function' ? next(live.current) : next;
|
|
153
|
-
setState(live.current);
|
|
154
|
-
}, []);
|
|
155
|
-
return [state, set, live];
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// The frame axis starts AFTER the fixed label gutter.
|
|
159
|
-
const LABEL_GUTTER = 96;
|
|
160
|
-
// Padding the .tl-scroll container puts around the tracks (see 3-shell-maude.css).
|
|
161
|
-
const SCROLL_PAD_X = 24;
|
|
162
|
-
|
|
163
|
-
export default function TimelinePanel({
|
|
164
|
-
comps = [],
|
|
165
|
-
// issue #75 — the comp the shell's transport targets. The panel reads its
|
|
166
|
-
// meta (fps / duration) off the SAME comp, so the readout can never describe
|
|
167
|
-
// a different artboard than the one Play actually moves.
|
|
168
|
-
compId = null,
|
|
169
|
-
sequences = [],
|
|
170
|
-
audio = [],
|
|
171
|
-
transitions = [],
|
|
172
|
-
total = 0,
|
|
173
|
-
frame = 0,
|
|
174
|
-
playing = false,
|
|
175
|
-
loop = false,
|
|
176
|
-
onSeek,
|
|
177
|
-
onPlay,
|
|
178
|
-
onPause,
|
|
179
|
-
onToggleLoop,
|
|
180
|
-
muted = false,
|
|
181
|
-
onToggleMute,
|
|
182
|
-
volume = 1,
|
|
183
|
-
onVolume,
|
|
184
|
-
height,
|
|
185
|
-
resizing,
|
|
186
|
-
onResize,
|
|
187
|
-
onRetime,
|
|
188
|
-
onRemove,
|
|
189
|
-
onReplace,
|
|
190
|
-
onReplaceAudio,
|
|
191
|
-
onReplaceLayer,
|
|
192
|
-
onReorder,
|
|
193
|
-
// Task 6 — magnetic drag commit: (movedClipRef, targetClipRef, 'before'|'after').
|
|
194
|
-
onReorderMove,
|
|
195
|
-
onToggleHide,
|
|
196
|
-
onDropMedia,
|
|
197
|
-
onClose,
|
|
198
|
-
// Task 3 — single-select model. `selectedClipId` is the selected clip's
|
|
199
|
-
// stableId (survives refetch/reorder, unlike an index); click selects,
|
|
200
|
-
// empty-track click deselects, Esc/Delete are handled by the shell.
|
|
201
|
-
selectedClipId = null,
|
|
202
|
-
onSelect,
|
|
203
|
-
// Task 7 — resolves a comp-relative media src (`assets/x.mp4`) to a URL the
|
|
204
|
-
// shell origin can fetch (`/<designRel>/assets/x.mp4`).
|
|
205
|
-
resolveMediaUrl,
|
|
206
|
-
// Phase 2 — transitions from the enumerator (stableId + contentHash), by
|
|
207
|
-
// seam order, for the ⧓ chip → Transition tab flow.
|
|
208
|
-
transitionClips = [],
|
|
209
|
-
// Phase 2 — parametric verb commit: (clipRef, verb, params).
|
|
210
|
-
onClipVerb,
|
|
211
|
-
// Phase 3 — toolbar entries: scissors + overlay authoring.
|
|
212
|
-
onSplitAtPlayhead,
|
|
213
|
-
onAddTitle,
|
|
214
|
-
onAddImage,
|
|
215
|
-
// Phase 4 — AI placeholder authoring + resolution (DDR-164 spine).
|
|
216
|
-
onAddAiClip,
|
|
217
|
-
onGeneratePlaceholder,
|
|
218
|
-
// Task 23 — timeline comments (frame-anchored 💬 pins + agent context).
|
|
219
|
-
comments = [],
|
|
220
|
-
// WKWebView-safe text ask: (title, initial?) => Promise<string|null>.
|
|
221
|
-
promptText,
|
|
222
|
-
onAddComment,
|
|
223
|
-
onResolveComment,
|
|
224
|
-
onDeleteComment,
|
|
225
|
-
}) {
|
|
226
|
-
// DDR-150 dogfood — layer expansion (stacked-rows fallback mode only; the
|
|
227
|
-
// storyline layout moves layer detail into the clip inspector).
|
|
228
|
-
const [collapsed, setCollapsed] = useState(() => new Set());
|
|
229
|
-
const [dropActive, setDropActive] = useState(false);
|
|
230
|
-
const comp = activeComp(comps, compId);
|
|
231
|
-
// issue #75 — which artboard the rows + transport belong to. `null` means the
|
|
232
|
-
// shell genuinely could NOT tell (a comp mounted outside any artboard, a
|
|
233
|
-
// resolver fall-through). That case must render as an explicit unknown, not
|
|
234
|
-
// as no chip at all: "no chip" already means "single comp, nothing to
|
|
235
|
-
// disambiguate", and reusing it for "I don't know" would make the ambiguous
|
|
236
|
-
// case look like the safe one (security-review 2026-08-12).
|
|
237
|
-
const scopedArtboard = comp?.artboardLabel || comp?.artboardId || null;
|
|
238
|
-
const totalFrames = Math.max(1, total || comp?.durationInFrames || 1);
|
|
239
|
-
const fps = comp?.fps ?? 30;
|
|
240
|
-
const clamped = clamp(Math.round(frame), 0, totalFrames - 1);
|
|
241
|
-
const trackRef = useRef(null);
|
|
242
|
-
const scrollRef = useRef(null);
|
|
243
|
-
const draggingRef = useRef(false);
|
|
244
|
-
const rootRef = useRef(null);
|
|
245
|
-
// Focus the dock the moment it opens — the transport shortcuts live on the
|
|
246
|
-
// SHELL window and need shell focus (see the pre-restructure history).
|
|
247
|
-
useEffect(() => {
|
|
248
|
-
rootRef.current?.focus();
|
|
249
|
-
}, []);
|
|
250
|
-
|
|
251
|
-
// -------------------------------------------------------------------------
|
|
252
|
-
// Task 4 — zoom state. `zoomPxf == null` means fit-to-width (the default);
|
|
253
|
-
// any explicit value is clamped to [fit, MAX_PX_PER_FRAME].
|
|
254
|
-
const [zoomPxf, setZoomPxf] = useState(null);
|
|
255
|
-
const [viewW, setViewW] = useState(0);
|
|
256
|
-
// The scroll container mounts LATER than the panel (only once a comp is
|
|
257
|
-
// announced) — capture it via a callback ref so the ResizeObserver attaches
|
|
258
|
-
// whenever it (re)appears, not just on the panel's first render.
|
|
259
|
-
const [scrollEl, setScrollEl] = useState(null);
|
|
260
|
-
const setScrollRef = useCallback((el) => {
|
|
261
|
-
scrollRef.current = el;
|
|
262
|
-
setScrollEl(el);
|
|
263
|
-
}, []);
|
|
264
|
-
useLayoutEffect(() => {
|
|
265
|
-
if (!scrollEl) return undefined;
|
|
266
|
-
const measure = () => setViewW(scrollEl.clientWidth);
|
|
267
|
-
measure();
|
|
268
|
-
// WKWebView occasionally reports 0 on the mount frame (before layout
|
|
269
|
-
// settles) and the ResizeObserver never re-fires — the "zoom stopped
|
|
270
|
-
// working" symptom (fit-scale computed against a 40px axis). Re-measure on
|
|
271
|
-
// rAF until a real width lands.
|
|
272
|
-
let raf = 0;
|
|
273
|
-
const retry = () => {
|
|
274
|
-
if (scrollEl.clientWidth > 0) measure();
|
|
275
|
-
else raf = requestAnimationFrame(retry);
|
|
276
|
-
};
|
|
277
|
-
if (scrollEl.clientWidth <= 0) raf = requestAnimationFrame(retry);
|
|
278
|
-
const ro = new ResizeObserver(measure);
|
|
279
|
-
ro.observe(scrollEl);
|
|
280
|
-
return () => {
|
|
281
|
-
ro.disconnect();
|
|
282
|
-
if (raf) cancelAnimationFrame(raf);
|
|
283
|
-
};
|
|
284
|
-
}, [scrollEl]);
|
|
285
|
-
const axisViewport = Math.max(40, viewW - LABEL_GUTTER - SCROLL_PAD_X);
|
|
286
|
-
const fitPxf = fitPxPerFrame(axisViewport, totalFrames);
|
|
287
|
-
const pxf = zoomPxf == null ? fitPxf : clampPxPerFrame(zoomPxf, axisViewport, totalFrames);
|
|
288
|
-
const axisPx = Math.ceil(totalFrames * pxf);
|
|
289
|
-
const x = (f) => f * pxf; // axis-relative px for a frame
|
|
290
|
-
|
|
291
|
-
// Scroll compensation applied after a zoom (keeps the anchor stationary).
|
|
292
|
-
const pendingScrollRef = useRef(null);
|
|
293
|
-
useLayoutEffect(() => {
|
|
294
|
-
if (pendingScrollRef.current == null) return;
|
|
295
|
-
const el = scrollRef.current;
|
|
296
|
-
if (el) el.scrollLeft = pendingScrollRef.current;
|
|
297
|
-
pendingScrollRef.current = null;
|
|
298
|
-
});
|
|
299
|
-
|
|
300
|
-
/** Zoom to `nextPxf` keeping `anchorFrame` (default: playhead, or selection)
|
|
301
|
-
* at the same viewport x. */
|
|
302
|
-
const zoomTo = useCallback(
|
|
303
|
-
(nextRaw, anchorFrame) => {
|
|
304
|
-
const el = scrollRef.current;
|
|
305
|
-
const next = clampPxPerFrame(nextRaw, axisViewport, totalFrames);
|
|
306
|
-
const anchor =
|
|
307
|
-
anchorFrame != null
|
|
308
|
-
? anchorFrame
|
|
309
|
-
: (sequences.find((s) => s.stableId && s.stableId === selectedClipId)?.from ?? clamped);
|
|
310
|
-
if (el) pendingScrollRef.current = zoomAroundScroll(pxf, next, anchor, el.scrollLeft);
|
|
311
|
-
setZoomPxf(next <= fitPxf ? null : next);
|
|
312
|
-
},
|
|
313
|
-
[axisViewport, totalFrames, pxf, fitPxf, clamped, sequences, selectedClipId]
|
|
314
|
-
);
|
|
315
|
-
|
|
316
|
-
// ⌘+/⌘− zoom · 0 = fit. Window-level (the dock is a sibling of the canvas),
|
|
317
|
-
// gated on not-typing; ⌘± deliberately overrides browser zoom while the
|
|
318
|
-
// timeline is open (the documented keyboard map).
|
|
319
|
-
useEffect(() => {
|
|
320
|
-
const onKey = (e) => {
|
|
321
|
-
const t = e.target;
|
|
322
|
-
const tag = t?.tagName;
|
|
323
|
-
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || t?.isContentEditable) return;
|
|
324
|
-
if ((e.metaKey || e.ctrlKey) && (e.key === '=' || e.key === '+')) {
|
|
325
|
-
e.preventDefault();
|
|
326
|
-
zoomTo(pxf * ZOOM_STEP);
|
|
327
|
-
} else if ((e.metaKey || e.ctrlKey) && e.key === '-') {
|
|
328
|
-
e.preventDefault();
|
|
329
|
-
zoomTo(pxf / ZOOM_STEP);
|
|
330
|
-
} else if (e.key === '0' && !e.metaKey && !e.ctrlKey && !e.altKey) {
|
|
331
|
-
setZoomPxf(null);
|
|
332
|
-
} else if ((e.key === 'c' || e.key === 'C') && !e.metaKey && !e.ctrlKey && !e.altKey) {
|
|
333
|
-
// The C comment tool (mirrors the artboard's comment shortcut).
|
|
334
|
-
setCommentMode((m) => !m);
|
|
335
|
-
} else if (e.key === 'Escape') {
|
|
336
|
-
setCommentMode(false);
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
window.addEventListener('keydown', onKey);
|
|
340
|
-
return () => window.removeEventListener('keydown', onKey);
|
|
341
|
-
}, [pxf, zoomTo]);
|
|
342
|
-
|
|
343
|
-
// Pinch-zoom (trackpad pinch arrives as wheel + ctrlKey) around the cursor.
|
|
344
|
-
// Non-passive listener — preventDefault must actually stop the page zoom.
|
|
345
|
-
useEffect(() => {
|
|
346
|
-
const el = scrollRef.current;
|
|
347
|
-
if (!el) return undefined;
|
|
348
|
-
const onWheel = (e) => {
|
|
349
|
-
if (!e.ctrlKey && !e.metaKey) return; // plain wheel = native scroll
|
|
350
|
-
e.preventDefault();
|
|
351
|
-
const rect = trackRef.current?.getBoundingClientRect();
|
|
352
|
-
const anchor =
|
|
353
|
-
rect != null
|
|
354
|
-
? clamp(Math.round(pxToFrame(e.clientX - rect.left - LABEL_GUTTER, pxf)), 0, totalFrames - 1)
|
|
355
|
-
: clamped;
|
|
356
|
-
zoomTo(pxf * Math.exp(-e.deltaY * 0.01), anchor);
|
|
357
|
-
};
|
|
358
|
-
el.addEventListener('wheel', onWheel, { passive: false });
|
|
359
|
-
return () => el.removeEventListener('wheel', onWheel);
|
|
360
|
-
}, [pxf, clamped, totalFrames, zoomTo, scrollEl]);
|
|
361
|
-
|
|
362
|
-
// Header slider — log scale from fit (0) to MAX_PX_PER_FRAME (100).
|
|
363
|
-
const zoomSliderValue = (() => {
|
|
364
|
-
const ratio = Math.log(pxf / fitPxf) / Math.log(MAX_PX_PER_FRAME / Math.max(1e-6, fitPxf));
|
|
365
|
-
return clamp(Math.round((Number.isFinite(ratio) ? ratio : 0) * 100), 0, 100);
|
|
366
|
-
})();
|
|
367
|
-
const zoomFromSlider = (v) => {
|
|
368
|
-
const ratio = clamp(v, 0, 100) / 100;
|
|
369
|
-
return fitPxf * Math.pow(MAX_PX_PER_FRAME / Math.max(1e-6, fitPxf), ratio);
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
// -------------------------------------------------------------------------
|
|
373
|
-
// Drag machines (retime / move) — px-per-frame based.
|
|
374
|
-
const [retimeDrag, setRetimeDrag, retimeLive] = useLiveState(null);
|
|
375
|
-
const [moveDrag, setMoveDrag, moveLive] = useLiveState(null);
|
|
376
|
-
// Task 6 — magnetic storyline reorder drag: { index, slot, targetSlot, dx, pxf }.
|
|
377
|
-
const [reorderDrag, setReorderDrag, reorderLive] = useLiveState(null);
|
|
378
|
-
// Debate verdict (feedback): a momentary accent rule at the frame a drag just
|
|
379
|
-
// snapped to — magnetism is otherwise invisible. { frame } | null.
|
|
380
|
-
const [snapFlash, setSnapFlash] = useState(null);
|
|
381
|
-
const snapFlashTimer = useRef(null);
|
|
382
|
-
const flashSnap = useCallback((frame) => {
|
|
383
|
-
setSnapFlash({ frame });
|
|
384
|
-
clearTimeout(snapFlashTimer.current);
|
|
385
|
-
snapFlashTimer.current = setTimeout(() => setSnapFlash(null), 350);
|
|
386
|
-
}, []);
|
|
387
|
-
// Task 6 — file-drop insertion caret: { lane, slot?, frame?, x } (axis px).
|
|
388
|
-
const [dropCaret, setDropCaret] = useState(null);
|
|
389
|
-
// Dogfood (2026-07-30) — the C comment tool: while armed, a click anywhere on
|
|
390
|
-
// the timeline pins a comment to the exact frame (+ clip + lane when the
|
|
391
|
-
// click lands on a block) instead of scrubbing/selecting.
|
|
392
|
-
const [commentMode, setCommentMode] = useState(false);
|
|
393
|
-
// Dogfood (2026-07-30) — vertical layer reorder: dragging an overlay row's
|
|
394
|
-
// lane chip up/down re-stacks the standalone clips (z-order = doc order).
|
|
395
|
-
const [layerDrag, setLayerDrag, layerLive] = useLiveState(null);
|
|
396
|
-
// Right-click clip context menu: { index, x, y }.
|
|
397
|
-
const [ctxMenu, setCtxMenu] = useState(null);
|
|
398
|
-
// Task 23 — the open comment-thread popover: { id, x, y } | null.
|
|
399
|
-
const [commentPopover, setCommentPopover] = useState(null);
|
|
400
|
-
// Task 9 — the clip inspector popover: { mode: 'clip'|'transition', index?,
|
|
401
|
-
// seam?, x, y }. One instance; opened by double-click / context "Adjust…" /
|
|
402
|
-
// a seam chip click.
|
|
403
|
-
const [inspector, setInspector] = useState(null);
|
|
404
|
-
// Task 11 — left-edge in-point trim drag: { index, ref, startX, pxf, delta }.
|
|
405
|
-
const [trimInDrag, setTrimInDrag, trimInLive] = useLiveState(null);
|
|
406
|
-
// True after a body-drag actually moved — suppresses the click-to-select.
|
|
407
|
-
const movedRef = useRef(false);
|
|
408
|
-
// Drag the top edge to resize the panel — pointer-capture + window listeners
|
|
409
|
-
// attached SYNCHRONOUSLY in pointerdown (the "attach a frame late" lesson).
|
|
410
|
-
const beginResize = useCallback(
|
|
411
|
-
(e) => {
|
|
412
|
-
e.preventDefault();
|
|
413
|
-
e.stopPropagation();
|
|
414
|
-
e.currentTarget.setPointerCapture?.(e.pointerId);
|
|
415
|
-
const startY = e.clientY;
|
|
416
|
-
const startH = height || 216;
|
|
417
|
-
const onMove = (ev) => {
|
|
418
|
-
onResize?.(clamp(startH + (startY - ev.clientY), 140, 640));
|
|
419
|
-
};
|
|
420
|
-
const onUp = () => {
|
|
421
|
-
window.removeEventListener('pointermove', onMove);
|
|
422
|
-
window.removeEventListener('pointerup', onUp);
|
|
423
|
-
};
|
|
424
|
-
window.addEventListener('pointermove', onMove);
|
|
425
|
-
window.addEventListener('pointerup', onUp);
|
|
426
|
-
},
|
|
427
|
-
[height, onResize]
|
|
428
|
-
);
|
|
429
|
-
|
|
430
|
-
const seekAt = useCallback(
|
|
431
|
-
(clientX) => {
|
|
432
|
-
const el = trackRef.current;
|
|
433
|
-
if (!el) return;
|
|
434
|
-
const r = el.getBoundingClientRect();
|
|
435
|
-
const f = pxToFrame(clientX - r.left - LABEL_GUTTER, pxf);
|
|
436
|
-
onSeek?.(clamp(Math.round(f), 0, totalFrames - 1));
|
|
437
|
-
},
|
|
438
|
-
[onSeek, totalFrames, pxf]
|
|
439
|
-
);
|
|
440
|
-
|
|
441
|
-
useEffect(() => {
|
|
442
|
-
if (!draggingRef.current) return undefined;
|
|
443
|
-
const move = (e) => seekAt(e.clientX);
|
|
444
|
-
const up = () => {
|
|
445
|
-
draggingRef.current = false;
|
|
446
|
-
};
|
|
447
|
-
window.addEventListener('pointermove', move);
|
|
448
|
-
window.addEventListener('pointerup', up, { once: true });
|
|
449
|
-
return () => {
|
|
450
|
-
window.removeEventListener('pointermove', move);
|
|
451
|
-
window.removeEventListener('pointerup', up);
|
|
452
|
-
};
|
|
453
|
-
});
|
|
454
|
-
|
|
455
|
-
// Comment tool — pin a comment at the clicked frame. `seq`/`laneName` are
|
|
456
|
-
// set when the click landed on a clip block (anchor survives reorder via
|
|
457
|
-
// clipStableId + frameOffset); a bare-track click anchors the frame alone.
|
|
458
|
-
// The composer is a small popover ANCHORED at the click (the artboard
|
|
459
|
-
// comment grammar), not a center-screen modal (dogfood 2026-07-30).
|
|
460
|
-
const [commentDraft, setCommentDraft] = useState(null); // { x, y, anchor, at }
|
|
461
|
-
const placeCommentAt = useCallback(
|
|
462
|
-
(e, seq, laneName) => {
|
|
463
|
-
const el = trackRef.current;
|
|
464
|
-
if (!el || !onAddComment) return;
|
|
465
|
-
const r = el.getBoundingClientRect();
|
|
466
|
-
const f = clamp(
|
|
467
|
-
Math.round(pxToFrame(e.clientX - r.left - LABEL_GUTTER, pxf)),
|
|
468
|
-
0,
|
|
469
|
-
totalFrames - 1
|
|
470
|
-
);
|
|
471
|
-
const anchor =
|
|
472
|
-
seq && seq.stableId
|
|
473
|
-
? {
|
|
474
|
-
clipStableId: seq.stableId,
|
|
475
|
-
frameOffset: Math.max(0, f - (seq.from || 0)),
|
|
476
|
-
frame: f,
|
|
477
|
-
lane: laneName || undefined,
|
|
478
|
-
}
|
|
479
|
-
: { frame: f, lane: laneName || undefined };
|
|
480
|
-
setCommentDraft({
|
|
481
|
-
x: clamp(e.clientX - 130, 8, window.innerWidth - 280),
|
|
482
|
-
y: Math.max(48, e.clientY - 140),
|
|
483
|
-
anchor,
|
|
484
|
-
at: f,
|
|
485
|
-
});
|
|
486
|
-
setCommentMode(false);
|
|
487
|
-
},
|
|
488
|
-
[pxf, totalFrames, onAddComment]
|
|
489
|
-
);
|
|
490
|
-
|
|
491
|
-
const onTrackDown = (e) => {
|
|
492
|
-
// A click on a sequence block SELECTS it (handled there); a press on the
|
|
493
|
-
// bare track deselects, scrubs, and starts a scrub drag.
|
|
494
|
-
if (retimeDrag) return; // a resize is in flight — don't scrub
|
|
495
|
-
if (commentMode) {
|
|
496
|
-
e.preventDefault();
|
|
497
|
-
placeCommentAt(e, null, null);
|
|
498
|
-
return;
|
|
499
|
-
}
|
|
500
|
-
e.preventDefault(); // don't start a text selection while scrubbing
|
|
501
|
-
onSelect?.(null);
|
|
502
|
-
draggingRef.current = true;
|
|
503
|
-
seekAt(e.clientX);
|
|
504
|
-
e.currentTarget.setPointerCapture?.(e.pointerId);
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
// Alt = no snap; threshold is ~8 px at the CURRENT zoom.
|
|
508
|
-
const snapThreshold = (altKey) => (altKey ? 0 : 8 / pxf);
|
|
509
|
-
|
|
510
|
-
// Drag-to-retime — the right edge rewrites durationInFrames on release.
|
|
511
|
-
useEffect(() => {
|
|
512
|
-
if (!retimeDrag) return undefined;
|
|
513
|
-
const move = (e) => {
|
|
514
|
-
const deltaFrames = (e.clientX - retimeDrag.startX) / retimeDrag.pxf;
|
|
515
|
-
const rawEnd = retimeDrag.startFrom + Math.round(retimeDrag.startDur + deltaFrames);
|
|
516
|
-
let end = snapFrame(rawEnd, retimeDrag.targets, e.altKey ? 0 : 8 / retimeDrag.pxf);
|
|
517
|
-
if (end !== rawEnd) flashSnap(end);
|
|
518
|
-
let curDur = Math.max(1, end - retimeDrag.startFrom);
|
|
519
|
-
// Task 8 — clamp to the source's real duration (footage sidecar) so a
|
|
520
|
-
// trim can't ask the clip for frames the file doesn't have.
|
|
521
|
-
let atClamp = curDur <= 1;
|
|
522
|
-
if (retimeDrag.maxDur > 0 && curDur >= retimeDrag.maxDur) {
|
|
523
|
-
curDur = retimeDrag.maxDur;
|
|
524
|
-
atClamp = true;
|
|
525
|
-
}
|
|
526
|
-
setRetimeDrag((d) => (d ? { ...d, curDur, atClamp } : d));
|
|
527
|
-
};
|
|
528
|
-
const up = () => {
|
|
529
|
-
const d = retimeLive.current;
|
|
530
|
-
setRetimeDrag(null);
|
|
531
|
-
if (d && d.curDur !== d.startDur) onRetime?.(d.ref ?? d.index, { durationInFrames: d.curDur });
|
|
532
|
-
};
|
|
533
|
-
window.addEventListener('pointermove', move);
|
|
534
|
-
window.addEventListener('pointerup', up, { once: true });
|
|
535
|
-
return () => {
|
|
536
|
-
window.removeEventListener('pointermove', move);
|
|
537
|
-
window.removeEventListener('pointerup', up);
|
|
538
|
-
};
|
|
539
|
-
}, [retimeDrag, onRetime, flashSnap]);
|
|
540
|
-
|
|
541
|
-
// Body-drag to move a standalone clip's `from`. Commits on release.
|
|
542
|
-
useEffect(() => {
|
|
543
|
-
if (!moveDrag) return undefined;
|
|
544
|
-
const move = (e) => {
|
|
545
|
-
const deltaFrames = (e.clientX - moveDrag.startX) / moveDrag.pxf;
|
|
546
|
-
const rawFrom = Math.max(0, Math.round(moveDrag.startFrom + deltaFrames));
|
|
547
|
-
const curFrom = Math.max(0, snapFrame(rawFrom, moveDrag.targets, e.altKey ? 0 : 8 / moveDrag.pxf));
|
|
548
|
-
if (curFrom !== rawFrom) flashSnap(curFrom);
|
|
549
|
-
if (Math.abs(curFrom - moveDrag.startFrom) >= 1) movedRef.current = true;
|
|
550
|
-
// Vertical layer-move affordance: highlight the storyline while the clip
|
|
551
|
-
// hovers over it (the drop would move it between layers).
|
|
552
|
-
const story = document.querySelector('.tl-storyline-track')?.getBoundingClientRect();
|
|
553
|
-
const overStory = !!(story && e.clientY >= story.top && e.clientY <= story.bottom);
|
|
554
|
-
setMoveDrag((d) => (d ? { ...d, curFrom, overStory } : d));
|
|
555
|
-
};
|
|
556
|
-
const up = (e) => {
|
|
557
|
-
const d = moveLive.current;
|
|
558
|
-
setMoveDrag(null);
|
|
559
|
-
if (!d) return;
|
|
560
|
-
// Dropping the clip ON the storyline lane moves it between layers
|
|
561
|
-
// (the layers model); otherwise commit the horizontal from-move.
|
|
562
|
-
const story = document.querySelector('.tl-storyline-track')?.getBoundingClientRect();
|
|
563
|
-
if (
|
|
564
|
-
story &&
|
|
565
|
-
onClipVerb &&
|
|
566
|
-
e.clientY >= story.top &&
|
|
567
|
-
e.clientY <= story.bottom &&
|
|
568
|
-
movedRef.current
|
|
569
|
-
) {
|
|
570
|
-
onClipVerb(d.ref ?? { index: d.index }, 'to-storyline', {});
|
|
571
|
-
} else if (d.curFrom !== d.startFrom) {
|
|
572
|
-
onRetime?.(d.ref ?? d.index, { from: d.curFrom });
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
window.addEventListener('pointermove', move);
|
|
576
|
-
window.addEventListener('pointerup', up, { once: true });
|
|
577
|
-
return () => {
|
|
578
|
-
window.removeEventListener('pointermove', move);
|
|
579
|
-
window.removeEventListener('pointerup', up);
|
|
580
|
-
};
|
|
581
|
-
}, [moveDrag, onRetime, onClipVerb, flashSnap]);
|
|
582
|
-
|
|
583
|
-
// Task 11 — left-edge in-point trim: preview live, commit `trim-in` on
|
|
584
|
-
// release (the server writes trimBefore + duration + from + ripple).
|
|
585
|
-
useEffect(() => {
|
|
586
|
-
if (!trimInDrag) return undefined;
|
|
587
|
-
const move = (e) => {
|
|
588
|
-
const raw = Math.round((e.clientX - trimInDrag.startX) / trimInDrag.pxf);
|
|
589
|
-
// positive = trim INTO the clip; clamp so ≥1 frame stays.
|
|
590
|
-
const delta = Math.min(trimInDrag.maxDelta, raw);
|
|
591
|
-
setTrimInDrag((d) => (d ? { ...d, delta } : d));
|
|
592
|
-
};
|
|
593
|
-
const up = () => {
|
|
594
|
-
const d = trimInLive.current;
|
|
595
|
-
setTrimInDrag(null);
|
|
596
|
-
if (d && d.delta) onClipVerb?.(d.ref, 'trim-in', { deltaFrames: d.delta });
|
|
597
|
-
};
|
|
598
|
-
window.addEventListener('pointermove', move);
|
|
599
|
-
window.addEventListener('pointerup', up, { once: true });
|
|
600
|
-
return () => {
|
|
601
|
-
window.removeEventListener('pointermove', move);
|
|
602
|
-
window.removeEventListener('pointerup', up);
|
|
603
|
-
};
|
|
604
|
-
}, [trimInDrag, onClipVerb]);
|
|
605
|
-
|
|
606
|
-
const startTrimIn = (e, index) => {
|
|
607
|
-
e.stopPropagation();
|
|
608
|
-
e.preventDefault();
|
|
609
|
-
const seq = sequences[index];
|
|
610
|
-
if (!seq) return;
|
|
611
|
-
setTrimInDrag({
|
|
612
|
-
index,
|
|
613
|
-
ref: refFor(seq, index),
|
|
614
|
-
startX: e.clientX,
|
|
615
|
-
pxf,
|
|
616
|
-
delta: 0,
|
|
617
|
-
maxDelta: Math.max(0, (seq.duration ?? 1) - 1),
|
|
618
|
-
});
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
// Snap targets for a drag on clip `index`: ticks + OTHER clips' edges + playhead.
|
|
622
|
-
const snapTargetsFor = (index) =>
|
|
623
|
-
computeSnapTargets({ fps, totalFrames, clips: sequences, movingIndex: index, playhead: clamped });
|
|
624
|
-
|
|
625
|
-
// Task 3 — every op addresses a clip as { stableId, index }: stableId when the
|
|
626
|
-
// enumerator supplied one (multi-comp-safe, survives reorder), the row index
|
|
627
|
-
// as the legacy fallback (DDR-150: never address by row index when avoidable).
|
|
628
|
-
const refFor = (seq, index) => ({ stableId: seq?.stableId ?? null, index });
|
|
629
|
-
|
|
630
|
-
// Task 6 — magnetic reorder: body-dragging a series beat shuffles the
|
|
631
|
-
// storyline live (a `from` write would be a lie — Remotion computes series
|
|
632
|
-
// offsets), and commits as a real series MOVE on release.
|
|
633
|
-
const startReorder = (e, index) => {
|
|
634
|
-
e.stopPropagation();
|
|
635
|
-
if (!onReorderMove) return;
|
|
636
|
-
const story = sequences
|
|
637
|
-
.map((s, i) => ({ s, i }))
|
|
638
|
-
.filter(({ s }) => s.series);
|
|
639
|
-
const slot = story.findIndex(({ i }) => i === index);
|
|
640
|
-
if (slot < 0) return;
|
|
641
|
-
movedRef.current = false;
|
|
642
|
-
setReorderDrag({ index, slot, targetSlot: slot, dx: 0, startX: e.clientX, pxf });
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
useEffect(() => {
|
|
646
|
-
if (!reorderDrag) return undefined;
|
|
647
|
-
const story = sequences.map((s, i) => ({ s, i })).filter(({ s }) => s.series);
|
|
648
|
-
const move = (e) => {
|
|
649
|
-
const dx = e.clientX - reorderDrag.startX;
|
|
650
|
-
if (Math.abs(dx) > 3) movedRef.current = true;
|
|
651
|
-
const me = story[reorderDrag.slot];
|
|
652
|
-
if (!me) return;
|
|
653
|
-
const draggedCenter = me.s.from + me.s.duration / 2 + dx / reorderDrag.pxf;
|
|
654
|
-
// Slot = how many OTHER beats' centers sit left of the dragged center.
|
|
655
|
-
let target = 0;
|
|
656
|
-
story.forEach(({ s }, k) => {
|
|
657
|
-
if (k === reorderDrag.slot) return;
|
|
658
|
-
if (s.from + s.duration / 2 < draggedCenter) target += 1;
|
|
659
|
-
});
|
|
660
|
-
setReorderDrag((d) => (d ? { ...d, dx, targetSlot: target } : d));
|
|
661
|
-
};
|
|
662
|
-
const up = (e) => {
|
|
663
|
-
const d = reorderLive.current;
|
|
664
|
-
setReorderDrag(null);
|
|
665
|
-
if (!d) return;
|
|
666
|
-
if (movedRef.current && onClipVerb) {
|
|
667
|
-
const track = document.querySelector('.tl-storyline-track')?.getBoundingClientRect();
|
|
668
|
-
if (track && e.clientY < track.top - 6) {
|
|
669
|
-
const beat = sequences[d.index];
|
|
670
|
-
if (beat) {
|
|
671
|
-
onClipVerb(refFor(beat, d.index), 'to-overlay', {});
|
|
672
|
-
return;
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
if (d.targetSlot !== d.slot) {
|
|
677
|
-
const moved = story[d.slot];
|
|
678
|
-
// targetSlot counts positions among the OTHER beats — map to a ref
|
|
679
|
-
// beat + before/after in the original order.
|
|
680
|
-
const others = story.filter((_, k) => k !== d.slot);
|
|
681
|
-
if (moved && others.length) {
|
|
682
|
-
if (d.targetSlot <= 0) {
|
|
683
|
-
onReorderMove?.(refFor(moved.s, moved.i), refFor(others[0].s, others[0].i), 'before');
|
|
684
|
-
} else {
|
|
685
|
-
const ref = others[Math.min(d.targetSlot, others.length) - 1];
|
|
686
|
-
onReorderMove?.(refFor(moved.s, moved.i), refFor(ref.s, ref.i), 'after');
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
window.addEventListener('pointermove', move);
|
|
692
|
-
window.addEventListener('pointerup', up, { once: true });
|
|
693
|
-
return () => {
|
|
694
|
-
window.removeEventListener('pointermove', move);
|
|
695
|
-
window.removeEventListener('pointerup', up);
|
|
696
|
-
};
|
|
697
|
-
}, [reorderDrag, sequences, onReorderMove, onClipVerb]);
|
|
698
|
-
|
|
699
|
-
// Vertical layer reorder — drag an overlay row's V-chip across the rows;
|
|
700
|
-
// the drop commits ONE `layer-order` verb (doc-order index = z-order).
|
|
701
|
-
const startLayerDrag = (e, index, docIdx) => {
|
|
702
|
-
if (!onClipVerb) return;
|
|
703
|
-
e.stopPropagation();
|
|
704
|
-
e.preventDefault();
|
|
705
|
-
setLayerDrag({ index, docIdx, curTarget: docIdx });
|
|
706
|
-
};
|
|
707
|
-
useEffect(() => {
|
|
708
|
-
if (!layerDrag) return undefined;
|
|
709
|
-
const move = (e) => {
|
|
710
|
-
let target = layerDrag.docIdx;
|
|
711
|
-
for (const row of document.querySelectorAll('[data-layer-doc]')) {
|
|
712
|
-
const r = row.getBoundingClientRect();
|
|
713
|
-
if (e.clientY >= r.top && e.clientY <= r.bottom) target = Number(row.dataset.layerDoc);
|
|
714
|
-
}
|
|
715
|
-
setLayerDrag((d) => (d ? { ...d, curTarget: target } : d));
|
|
716
|
-
};
|
|
717
|
-
const up = () => {
|
|
718
|
-
const d = layerLive.current;
|
|
719
|
-
setLayerDrag(null);
|
|
720
|
-
if (d && d.curTarget !== d.docIdx) {
|
|
721
|
-
const seq = sequences[d.index];
|
|
722
|
-
if (seq) onClipVerb?.(refFor(seq, d.index), 'layer-order', { toIndex: d.curTarget });
|
|
723
|
-
}
|
|
724
|
-
};
|
|
725
|
-
window.addEventListener('pointermove', move);
|
|
726
|
-
window.addEventListener('pointerup', up, { once: true });
|
|
727
|
-
return () => {
|
|
728
|
-
window.removeEventListener('pointermove', move);
|
|
729
|
-
window.removeEventListener('pointerup', up);
|
|
730
|
-
};
|
|
731
|
-
}, [layerDrag, sequences, onClipVerb]);
|
|
732
|
-
|
|
733
|
-
const startMove = (e, index, startFrom) => {
|
|
734
|
-
if (sequences[index]?.loose) return; // loose media row — read-only
|
|
735
|
-
// A TransitionSeries/Series clip computes its own position — Remotion
|
|
736
|
-
// IGNORES a `from` prop on it; its body-drag is the magnetic REORDER.
|
|
737
|
-
if (sequences[index]?.series) {
|
|
738
|
-
startReorder(e, index);
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
741
|
-
if (!onRetime) return;
|
|
742
|
-
e.stopPropagation();
|
|
743
|
-
movedRef.current = false;
|
|
744
|
-
setMoveDrag({
|
|
745
|
-
index,
|
|
746
|
-
ref: refFor(sequences[index], index),
|
|
747
|
-
startX: e.clientX,
|
|
748
|
-
startFrom,
|
|
749
|
-
pxf,
|
|
750
|
-
curFrom: startFrom,
|
|
751
|
-
targets: snapTargetsFor(index),
|
|
752
|
-
});
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
const startResize = (e, index, dur) => {
|
|
756
|
-
e.stopPropagation();
|
|
757
|
-
e.preventDefault();
|
|
758
|
-
const seq = sequences[index];
|
|
759
|
-
const startFrom = seq?.from ?? 0;
|
|
760
|
-
setRetimeDrag({
|
|
761
|
-
index,
|
|
762
|
-
ref: refFor(seq, index),
|
|
763
|
-
startX: e.clientX,
|
|
764
|
-
startDur: dur,
|
|
765
|
-
startFrom,
|
|
766
|
-
pxf,
|
|
767
|
-
curDur: dur,
|
|
768
|
-
atClamp: false,
|
|
769
|
-
// Task 8 — source-bounds clamp (0 = unknown, no clamp).
|
|
770
|
-
maxDur: (seq?.mediaSrc && visuals[`d|${seq.mediaSrc}`]) || 0,
|
|
771
|
-
targets: snapTargetsFor(index),
|
|
772
|
-
});
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
/** Task 8 — live trim/move delta: `+12f / +0.40s`. */
|
|
776
|
-
const fmtDelta = (frames) => {
|
|
777
|
-
const sign = frames >= 0 ? '+' : '−';
|
|
778
|
-
const af = Math.abs(Math.round(frames));
|
|
779
|
-
return `${sign}${af}f / ${sign}${(af / (fps || 30)).toFixed(2)}s`;
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
// Ruler ticks at the adaptive density (1 s → 10 f → 1 f as you zoom in).
|
|
783
|
-
const step = tickStepFrames(pxf, fps);
|
|
784
|
-
const ticks = [];
|
|
785
|
-
for (let f = 0; f <= totalFrames - 1; f += step) ticks.push(f);
|
|
786
|
-
|
|
787
|
-
// -------------------------------------------------------------------------
|
|
788
|
-
// Task 5 — the three-band projection. Series beats form THE storyline lane;
|
|
789
|
-
// standalone sequences are the overlay band; loose <Audio> beds the audio
|
|
790
|
-
// band. A comp with no series clips keeps the stacked row-per-sequence
|
|
791
|
-
// fallback (its truthful projection).
|
|
792
|
-
const storyline = [];
|
|
793
|
-
const overlay = [];
|
|
794
|
-
const audioClips = []; // Task 18 — standalone audio clips live in the audio band
|
|
795
|
-
sequences.forEach((seq, i) => {
|
|
796
|
-
if (seq.series) storyline.push({ seq, i });
|
|
797
|
-
else if (rowKind(seq) === 'audio') audioClips.push({ seq, i });
|
|
798
|
-
else overlay.push({ seq, i });
|
|
799
|
-
});
|
|
800
|
-
// Band (iMovie) layout is for MEDIA cuts. A purely digital comp — every
|
|
801
|
-
// sequence a hand-authored JSX scene (Maude Video Intro, Photo Editor
|
|
802
|
-
// Trailer) — keeps the stacked row-per-sequence projection, which is the
|
|
803
|
-
// truthful, layer-expandable view the user asked back (dogfood 2026-07-30).
|
|
804
|
-
const bandMode =
|
|
805
|
-
storyline.length > 0 && sequences.some((s) => rowKind(s) !== 'jsx');
|
|
806
|
-
|
|
807
|
-
// -------------------------------------------------------------------------
|
|
808
|
-
// Task 7 — real media visuals. Async extraction (never blocks the scrub);
|
|
809
|
-
// today's plain blocks are the instant fallback. Keyed by src + zoom bucket.
|
|
810
|
-
const [visuals, setVisuals] = useState({});
|
|
811
|
-
const resolveUrl = useCallback(
|
|
812
|
-
(src) => {
|
|
813
|
-
if (!src) return null;
|
|
814
|
-
// Security (adversarial review 2026-07-30): mediaSrc comes verbatim from
|
|
815
|
-
// (untrusted, DDR-054) canvas source. Filmstrip/waveform extraction runs
|
|
816
|
-
// on the privileged no-CSP SHELL origin (fetch + <video src>), so a
|
|
817
|
-
// protocol-relative `//host/…` — which passes `startsWith('/')` — would
|
|
818
|
-
// egress to an attacker host zero-click on Timeline open. Reject `//`
|
|
819
|
-
// (and any scheme); only a single-slash-rooted, same-origin path is a
|
|
820
|
-
// real contained asset. Everything else routes through resolveMediaUrl,
|
|
821
|
-
// which prefixes the designRoot (same-origin by construction).
|
|
822
|
-
if (src.startsWith('//')) return null;
|
|
823
|
-
if (/^(https?:|data:|blob:)/i.test(src)) return null;
|
|
824
|
-
if (src.startsWith('/')) return src;
|
|
825
|
-
return resolveMediaUrl ? resolveMediaUrl(src) : null;
|
|
826
|
-
},
|
|
827
|
-
[resolveMediaUrl]
|
|
828
|
-
);
|
|
829
|
-
useEffect(() => {
|
|
830
|
-
let alive = true;
|
|
831
|
-
for (const seq of sequences) {
|
|
832
|
-
if (rowKind(seq) !== 'video' || !seq.mediaSrc) continue;
|
|
833
|
-
const url = resolveUrl(seq.mediaSrc);
|
|
834
|
-
if (!url) continue;
|
|
835
|
-
const bucket = stripBucket(Math.max(2, seq.duration * pxf));
|
|
836
|
-
const key = `s|${seq.mediaSrc}|${bucket}`;
|
|
837
|
-
if (visuals[key] !== undefined) continue;
|
|
838
|
-
setVisuals((v) => (v[key] !== undefined ? v : { ...v, [key]: null }));
|
|
839
|
-
getFilmstrip(url, bucket).then((strip) => {
|
|
840
|
-
if (alive && strip) setVisuals((v) => ({ ...v, [key]: strip }));
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
for (const a of audio) {
|
|
844
|
-
if (!a.src) continue;
|
|
845
|
-
const url = resolveUrl(a.src);
|
|
846
|
-
if (!url) continue;
|
|
847
|
-
const key = `p|${a.src}`;
|
|
848
|
-
if (visuals[key] !== undefined) continue;
|
|
849
|
-
setVisuals((v) => (v[key] !== undefined ? v : { ...v, [key]: null }));
|
|
850
|
-
getPeaks(url).then((peaks) => {
|
|
851
|
-
if (alive && peaks) setVisuals((v) => ({ ...v, [key]: peaks }));
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
// Task 8 — source duration (frames) from the footage sidecar, for trim
|
|
855
|
-
// clamping. Cached under `d|<src>`; absent sidecar caches `0` (no clamp).
|
|
856
|
-
for (const seq of sequences) {
|
|
857
|
-
if (rowKind(seq) !== 'video' || !seq.mediaSrc) continue;
|
|
858
|
-
const key = `d|${seq.mediaSrc}`;
|
|
859
|
-
if (visuals[key] !== undefined) continue;
|
|
860
|
-
setVisuals((v) => (v[key] !== undefined ? v : { ...v, [key]: null }));
|
|
861
|
-
fetch(`/_api/footage?asset=${encodeURIComponent(seq.mediaSrc)}`)
|
|
862
|
-
.then((r) => (r.ok ? r.json() : null))
|
|
863
|
-
.then((j) => {
|
|
864
|
-
if (!alive) return;
|
|
865
|
-
const sec = Number(j?.durationSec);
|
|
866
|
-
const frames = Number.isFinite(sec) && sec > 0 ? Math.round(sec * (fps || 30)) : 0;
|
|
867
|
-
setVisuals((v) => ({ ...v, [key]: frames }));
|
|
868
|
-
})
|
|
869
|
-
.catch(() => {
|
|
870
|
-
if (alive) setVisuals((v) => ({ ...v, [key]: 0 }));
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
|
-
return () => {
|
|
874
|
-
alive = false;
|
|
875
|
-
};
|
|
876
|
-
}, [sequences, audio, pxf, resolveUrl, visuals, fps]);
|
|
877
|
-
|
|
878
|
-
// Task 6 — live reorder preview: while a beat drags, the OTHER beats take
|
|
879
|
-
// their preview `from`s (cursor walk over the preview order, seams
|
|
880
|
-
// approximated by the first transition's duration); the dragged beat follows
|
|
881
|
-
// the pointer. Truth re-renders from disk after the commit.
|
|
882
|
-
const previewFroms = (() => {
|
|
883
|
-
if (!reorderDrag) return null;
|
|
884
|
-
const story = sequences.map((s, i) => ({ s, i })).filter(({ s }) => s.series);
|
|
885
|
-
const dragged = story[reorderDrag.slot];
|
|
886
|
-
if (!dragged) return null;
|
|
887
|
-
const seamDur = (transitions && transitions[0]?.dur) || 0;
|
|
888
|
-
const others = story.filter((_, k) => k !== reorderDrag.slot);
|
|
889
|
-
const order = [...others];
|
|
890
|
-
order.splice(Math.max(0, Math.min(reorderDrag.targetSlot, others.length)), 0, dragged);
|
|
891
|
-
const map = new Map();
|
|
892
|
-
let cursor = story[0]?.s.from ?? 0;
|
|
893
|
-
for (const { s, i } of order) {
|
|
894
|
-
map.set(i, cursor);
|
|
895
|
-
cursor += s.duration - seamDur;
|
|
896
|
-
}
|
|
897
|
-
return map;
|
|
898
|
-
})();
|
|
899
|
-
|
|
900
|
-
// DDR-150 P4 / Task 6 — file drops. Lanes set an insertion caret and hand a
|
|
901
|
-
// POSITION to onDropMedia(files, pos); the panel-level drop stays as the
|
|
902
|
-
// append fallback.
|
|
903
|
-
const hasFiles = (dt) => Array.from(dt?.types ?? []).includes('Files');
|
|
904
|
-
const onDrop = (e) => {
|
|
905
|
-
if (!onDropMedia || !hasFiles(e.dataTransfer)) return;
|
|
906
|
-
e.preventDefault();
|
|
907
|
-
e.stopPropagation();
|
|
908
|
-
setDropActive(false);
|
|
909
|
-
setDropCaret(null);
|
|
910
|
-
const files = Array.from(e.dataTransfer.files || []);
|
|
911
|
-
// A drop OUTSIDE any lane = a NEW overlay layer at the playhead (the
|
|
912
|
-
// layers model); dropping ON the storyline lane still makes a beat.
|
|
913
|
-
if (files.length) onDropMedia(files, comp ? { lane: 'overlay', frame: clamped } : null);
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
/** Storyline seam boundaries in axis px (slot 0 … N). */
|
|
917
|
-
const storyBoundaries = () => {
|
|
918
|
-
const story = sequences.filter((s) => s.series);
|
|
919
|
-
const pts = story.map((s) => x(s.from));
|
|
920
|
-
if (story.length) {
|
|
921
|
-
const last = story[story.length - 1];
|
|
922
|
-
pts.push(x(last.from + last.duration));
|
|
923
|
-
}
|
|
924
|
-
return pts;
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
const onStoryDragOver = (e) => {
|
|
928
|
-
if (!onDropMedia || !hasFiles(e.dataTransfer)) return;
|
|
929
|
-
e.preventDefault();
|
|
930
|
-
e.stopPropagation();
|
|
931
|
-
e.dataTransfer.dropEffect = 'copy';
|
|
932
|
-
const rect = e.currentTarget.getBoundingClientRect();
|
|
933
|
-
const px = e.clientX - rect.left;
|
|
934
|
-
const pts = storyBoundaries();
|
|
935
|
-
let slot = 0;
|
|
936
|
-
let best = Infinity;
|
|
937
|
-
pts.forEach((p, k) => {
|
|
938
|
-
const d = Math.abs(p - px);
|
|
939
|
-
if (d < best) {
|
|
940
|
-
best = d;
|
|
941
|
-
slot = k;
|
|
942
|
-
}
|
|
943
|
-
});
|
|
944
|
-
setDropCaret({ lane: 'storyline', slot, x: pts[slot] ?? px });
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
const onLaneDragOver = (lane, row) => (e) => {
|
|
948
|
-
if (!onDropMedia || !hasFiles(e.dataTransfer)) return;
|
|
949
|
-
e.preventDefault();
|
|
950
|
-
e.stopPropagation();
|
|
951
|
-
e.dataTransfer.dropEffect = 'copy';
|
|
952
|
-
const rect = e.currentTarget.getBoundingClientRect();
|
|
953
|
-
const px = e.clientX - rect.left;
|
|
954
|
-
const f = clamp(Math.round(pxToFrame(px, pxf)), 0, totalFrames - 1);
|
|
955
|
-
setDropCaret({ lane, row, frame: f, x: px });
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
const laneCaret = (lane, row) =>
|
|
959
|
-
dropCaret && dropCaret.lane === lane && dropCaret.row === row ? (
|
|
960
|
-
<span
|
|
961
|
-
className="tl-drop-caret"
|
|
962
|
-
data-testid="timeline-drop-caret"
|
|
963
|
-
style={{ left: dropCaret.x - 1 }}
|
|
964
|
-
/>
|
|
965
|
-
) : null;
|
|
966
|
-
|
|
967
|
-
const onLaneDrop = (pos) => (e) => {
|
|
968
|
-
if (!onDropMedia || !hasFiles(e.dataTransfer)) return;
|
|
969
|
-
e.preventDefault();
|
|
970
|
-
e.stopPropagation();
|
|
971
|
-
setDropActive(false);
|
|
972
|
-
const caret = dropCaret;
|
|
973
|
-
setDropCaret(null);
|
|
974
|
-
const files = Array.from(e.dataTransfer.files || []);
|
|
975
|
-
if (!files.length) return;
|
|
976
|
-
if (pos.lane === 'storyline') {
|
|
977
|
-
onDropMedia(files, { lane: 'storyline', index: caret?.slot ?? undefined });
|
|
978
|
-
} else {
|
|
979
|
-
onDropMedia(files, { lane: pos.lane, frame: caret?.frame ?? 0 });
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
|
|
983
|
-
/** One clip block + its hover affordances (trim handle, replace, remove),
|
|
984
|
-
* absolutely positioned on the frame axis of its lane. */
|
|
985
|
-
const renderBlock = (seq, i, { lane, laneName }) => {
|
|
986
|
-
const dur = retimeDrag && retimeDrag.index === i ? retimeDrag.curDur : seq.duration;
|
|
987
|
-
const isResizing = !!(retimeDrag && retimeDrag.index === i);
|
|
988
|
-
let blockFrom = moveDrag && moveDrag.index === i ? moveDrag.curFrom : seq.from;
|
|
989
|
-
const moving = !!(moveDrag && moveDrag.index === i);
|
|
990
|
-
// Task 6 — magnetic reorder preview: the dragged beat follows the pointer,
|
|
991
|
-
// its siblings take their preview slots.
|
|
992
|
-
let dragOffset = 0;
|
|
993
|
-
let dragging = false;
|
|
994
|
-
if (lane === 'storyline' && reorderDrag) {
|
|
995
|
-
if (reorderDrag.index === i) {
|
|
996
|
-
dragging = true;
|
|
997
|
-
dragOffset = reorderDrag.dx;
|
|
998
|
-
} else if (previewFroms?.has(i)) {
|
|
999
|
-
blockFrom = previewFroms.get(i);
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
const layers = Array.isArray(seq.layers) ? seq.layers : [];
|
|
1003
|
-
const decomposable = layers.length >= 2;
|
|
1004
|
-
const selected = selectedClipId != null && seq.stableId === selectedClipId;
|
|
1005
|
-
// Debate verdict (orientation): never surface a content-hash filename or a
|
|
1006
|
-
// bare tag name as the clip's identity — "Clip N" beats "bca08b1e.mov";
|
|
1007
|
-
// the real src stays in the tooltip.
|
|
1008
|
-
const rawName =
|
|
1009
|
-
['Video', 'OffthreadVideo', 'Audio', 'Img', 'MaudeVideo', 'MaudeAudio', 'MaudeImg'].includes(seq.label) && seq.mediaSrc
|
|
1010
|
-
? String(seq.mediaSrc).split('/').pop()
|
|
1011
|
-
: seq.label;
|
|
1012
|
-
const isHashName = /^[a-f0-9]{6,16}\.\w+$/i.test(rawName || '');
|
|
1013
|
-
const displayLabel = isHashName ? `Clip ${i + 1}` : rawName;
|
|
1014
|
-
// Task 11 — in-point trim preview: left edge follows, width shrinks.
|
|
1015
|
-
const trimming = !!(trimInDrag && trimInDrag.index === i);
|
|
1016
|
-
const trimDelta = trimming ? trimInDrag.delta : 0;
|
|
1017
|
-
const left = x(blockFrom) + dragOffset + (trimming ? x(trimDelta) : 0);
|
|
1018
|
-
const width = Math.max(2, x(dur - trimDelta));
|
|
1019
|
-
const mp = seq.mediaProps || null;
|
|
1020
|
-
return (
|
|
1021
|
-
<Fragment key={`b${i}`}>
|
|
1022
|
-
<button
|
|
1023
|
-
type="button"
|
|
1024
|
-
className={`tl-seq-block${isResizing ? ' is-resizing' : ''}${moving ? ' is-moving' : ''}${dragging ? ' is-dragging' : ''}${seq.hidden ? ' is-hidden' : ''}${selected ? ' is-selected' : ''}${lane === 'storyline' ? ' tl-beat' : ''}`}
|
|
1025
|
-
data-testid={`timeline-seq-${i}`}
|
|
1026
|
-
data-clip-id={seq.stableId || undefined}
|
|
1027
|
-
data-kind={rowKind(seq)}
|
|
1028
|
-
data-hidden={seq.hidden ? '1' : undefined}
|
|
1029
|
-
title={
|
|
1030
|
-
seq.series
|
|
1031
|
-
? `${seq.label} · ${blockFrom}–${blockFrom + dur}f (${dur}f) · series beat — trim the right edge to retime`
|
|
1032
|
-
: `${seq.label} · ${blockFrom}–${blockFrom + dur}f (${dur}f) · drag to move (Alt = no snap)`
|
|
1033
|
-
}
|
|
1034
|
-
aria-label={
|
|
1035
|
-
seq.series
|
|
1036
|
-
? `${seq.label}, series beat, frames ${blockFrom} to ${blockFrom + dur}. Click to select.`
|
|
1037
|
-
: `${seq.label}, from frame ${blockFrom} to ${blockFrom + dur}, ${dur} frames. Click to select; drag to move.`
|
|
1038
|
-
}
|
|
1039
|
-
style={{
|
|
1040
|
-
left,
|
|
1041
|
-
width,
|
|
1042
|
-
cursor: onRetime && !seq.series ? 'grab' : undefined,
|
|
1043
|
-
}}
|
|
1044
|
-
onContextMenu={(e) => {
|
|
1045
|
-
e.preventDefault();
|
|
1046
|
-
e.stopPropagation();
|
|
1047
|
-
onSelect?.(seq.stableId ?? null); // right-click selects too (iMovie)
|
|
1048
|
-
setCtxMenu({ index: i, x: e.clientX, y: e.clientY });
|
|
1049
|
-
}}
|
|
1050
|
-
onPointerDown={(e) => {
|
|
1051
|
-
if (commentMode) {
|
|
1052
|
-
e.stopPropagation();
|
|
1053
|
-
e.preventDefault();
|
|
1054
|
-
placeCommentAt(e, seq, laneName || lane);
|
|
1055
|
-
return;
|
|
1056
|
-
}
|
|
1057
|
-
startMove(e, i, seq.from);
|
|
1058
|
-
}}
|
|
1059
|
-
onDoubleClick={(e) => {
|
|
1060
|
-
e.stopPropagation();
|
|
1061
|
-
if (seq.loose) return; // read-only row — no clip inspector
|
|
1062
|
-
// Task 9 — double-click opens the clip inspector on the selection.
|
|
1063
|
-
onSelect?.(seq.stableId ?? null);
|
|
1064
|
-
setInspector({ mode: 'clip', index: i, x: e.clientX - 120, y: Math.max(60, e.clientY - 320) });
|
|
1065
|
-
}}
|
|
1066
|
-
onClick={(e) => {
|
|
1067
|
-
e.stopPropagation();
|
|
1068
|
-
if (movedRef.current) {
|
|
1069
|
-
movedRef.current = false;
|
|
1070
|
-
return; // a drag-move just happened — don't also select
|
|
1071
|
-
}
|
|
1072
|
-
// Task 3 — click SELECTS (iMovie's select → act grammar); seeking
|
|
1073
|
-
// stays on the ruler/track scrub.
|
|
1074
|
-
onSelect?.(seq.stableId ?? null);
|
|
1075
|
-
}}
|
|
1076
|
-
>
|
|
1077
|
-
{mp?.playbackRate && mp.playbackRate !== 1 ? (
|
|
1078
|
-
<span className="tl-chip tl-chip-speed" data-testid={`timeline-speed-chip-${i}`}>
|
|
1079
|
-
{mp.playbackRate}×
|
|
1080
|
-
</span>
|
|
1081
|
-
) : null}
|
|
1082
|
-
{mp?.muted ? (
|
|
1083
|
-
<span className="tl-chip tl-chip-mute" title="Muted" data-testid={`timeline-mute-chip-${i}`}>
|
|
1084
|
-
🔇
|
|
1085
|
-
</span>
|
|
1086
|
-
) : null}
|
|
1087
|
-
{(() => {
|
|
1088
|
-
// Task 7 — filmstrip behind the label (async; block is the fallback).
|
|
1089
|
-
// Dogfood 2026-07-30 — an Img overlay shows the IMAGE ITSELF (no
|
|
1090
|
-
// extraction needed; the strip was video-only and image overlays
|
|
1091
|
-
// read as anonymous slabs).
|
|
1092
|
-
if (rowKind(seq) === 'image' && seq.mediaSrc) {
|
|
1093
|
-
const url = resolveUrl(seq.mediaSrc);
|
|
1094
|
-
if (!url) return null;
|
|
1095
|
-
return (
|
|
1096
|
-
<span className="tl-strip tl-strip--img" aria-hidden="true">
|
|
1097
|
-
<img src={url} alt="" draggable={false} />
|
|
1098
|
-
</span>
|
|
1099
|
-
);
|
|
1100
|
-
}
|
|
1101
|
-
if (rowKind(seq) !== 'video' || !seq.mediaSrc) return null;
|
|
1102
|
-
const bucket = stripBucket(Math.max(2, seq.duration * pxf));
|
|
1103
|
-
const strip = visuals[`s|${seq.mediaSrc}|${bucket}`];
|
|
1104
|
-
if (!strip) return null;
|
|
1105
|
-
return (
|
|
1106
|
-
<span className="tl-strip" aria-hidden="true">
|
|
1107
|
-
{strip.map((u, k) => (
|
|
1108
|
-
<img key={k} src={u} alt="" draggable={false} />
|
|
1109
|
-
))}
|
|
1110
|
-
</span>
|
|
1111
|
-
);
|
|
1112
|
-
})()}
|
|
1113
|
-
<span className="tl-kind" data-kind={rowKind(seq)} title={rowKindTitle(seq)}>
|
|
1114
|
-
{rowKindGlyph(seq)}
|
|
1115
|
-
</span>
|
|
1116
|
-
<span className="tl-seq-name">
|
|
1117
|
-
{displayLabel}
|
|
1118
|
-
{isResizing ? ` · ${dur}f` : ''}
|
|
1119
|
-
{moving ? ` · @${blockFrom}f` : ''}
|
|
1120
|
-
</span>
|
|
1121
|
-
{seq.keyframes.map((kf, k) => {
|
|
1122
|
-
const l = ((kf.from - seq.from) / Math.max(1, seq.duration)) * 100;
|
|
1123
|
-
const w = ((kf.to - kf.from) / Math.max(1, seq.duration)) * 100;
|
|
1124
|
-
return (
|
|
1125
|
-
<span
|
|
1126
|
-
key={k}
|
|
1127
|
-
className="tl-kf"
|
|
1128
|
-
data-testid={`timeline-kf-${i}-${k}`}
|
|
1129
|
-
style={{ left: `${clamp(l, 0, 100)}%`, width: `${Math.max(1.5, w)}%` }}
|
|
1130
|
-
title={`seek to keyframe ${kf.from}f (animates ${kf.from}–${kf.to}f)`}
|
|
1131
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1132
|
-
onClick={(e) => {
|
|
1133
|
-
e.stopPropagation();
|
|
1134
|
-
onSeek?.(kf.from);
|
|
1135
|
-
}}
|
|
1136
|
-
/>
|
|
1137
|
-
);
|
|
1138
|
-
})}
|
|
1139
|
-
{(comments || [])
|
|
1140
|
-
.filter((c) => c.timeline?.clipStableId && c.timeline.clipStableId === seq.stableId)
|
|
1141
|
-
.map((c) => (
|
|
1142
|
-
// In-place 💬 badge at the comment's exact frame ON the clip —
|
|
1143
|
-
// the top strip stays as the overview; this is the "where".
|
|
1144
|
-
<span
|
|
1145
|
-
key={`cm${c.id}`}
|
|
1146
|
-
role="button"
|
|
1147
|
-
tabIndex={-1}
|
|
1148
|
-
className={`tl-clip-pin${c.status === 'resolved' ? ' is-resolved' : ''}`}
|
|
1149
|
-
data-testid={`timeline-clip-pin-${c.id}`}
|
|
1150
|
-
title={`${c.author || 'comment'}: ${c.text}`}
|
|
1151
|
-
style={{ left: x(clamp(c.timeline.frameOffset || 0, 0, Math.max(0, dur - 1))) }}
|
|
1152
|
-
onPointerDown={(ev) => ev.stopPropagation()}
|
|
1153
|
-
onClick={(ev) => {
|
|
1154
|
-
ev.stopPropagation();
|
|
1155
|
-
setCommentPopover({ id: c.id, x: ev.clientX - 130, y: Math.max(60, ev.clientY - 180) });
|
|
1156
|
-
}}
|
|
1157
|
-
>
|
|
1158
|
-
💬
|
|
1159
|
-
</span>
|
|
1160
|
-
))}
|
|
1161
|
-
{lane === 'storyline' && decomposable ? (
|
|
1162
|
-
<span
|
|
1163
|
-
role="button"
|
|
1164
|
-
tabIndex={-1}
|
|
1165
|
-
className="tl-beat-expand"
|
|
1166
|
-
data-testid={`timeline-beat-expand-${i}`}
|
|
1167
|
-
title={collapsed.has(i) ? 'Show this beat’s layers' : 'Collapse layers'}
|
|
1168
|
-
onPointerDown={(ev) => ev.stopPropagation()}
|
|
1169
|
-
onClick={(ev) => {
|
|
1170
|
-
ev.stopPropagation();
|
|
1171
|
-
setCollapsed((prev) => {
|
|
1172
|
-
const next = new Set(prev);
|
|
1173
|
-
if (next.has(i)) next.delete(i);
|
|
1174
|
-
else next.add(i);
|
|
1175
|
-
return next;
|
|
1176
|
-
});
|
|
1177
|
-
}}
|
|
1178
|
-
>
|
|
1179
|
-
{collapsed.has(i) ? '▸' : '▾'}
|
|
1180
|
-
</span>
|
|
1181
|
-
) : null}
|
|
1182
|
-
</button>
|
|
1183
|
-
{onRetime && !seq.loose ? (
|
|
1184
|
-
<span
|
|
1185
|
-
className="tl-seq-resize"
|
|
1186
|
-
data-testid={`timeline-resize-${i}`}
|
|
1187
|
-
title="Drag to retime this sequence"
|
|
1188
|
-
style={{ left: left + width - 5 }}
|
|
1189
|
-
onPointerDown={(e) => startResize(e, i, seq.duration)}
|
|
1190
|
-
onClick={(e) => e.stopPropagation()}
|
|
1191
|
-
/>
|
|
1192
|
-
) : null}
|
|
1193
|
-
{onClipVerb && !seq.loose && seq.mediaSrc && (rowKind(seq) === 'video' || rowKind(seq) === 'audio') ? (
|
|
1194
|
-
<span
|
|
1195
|
-
className="tl-seq-trim-in"
|
|
1196
|
-
data-testid={`timeline-trim-in-${i}`}
|
|
1197
|
-
title="Drag to trim the in-point (left edge)"
|
|
1198
|
-
style={{ left: left - 1 }}
|
|
1199
|
-
onPointerDown={(e) => startTrimIn(e, i)}
|
|
1200
|
-
onClick={(e) => e.stopPropagation()}
|
|
1201
|
-
/>
|
|
1202
|
-
) : null}
|
|
1203
|
-
{trimming ? (
|
|
1204
|
-
<span
|
|
1205
|
-
className={`tl-trim-tip${trimDelta >= trimInDrag.maxDelta && trimDelta > 0 ? ' is-clamped' : ''}`}
|
|
1206
|
-
data-testid="timeline-trim-in-tip"
|
|
1207
|
-
style={{ left }}
|
|
1208
|
-
>
|
|
1209
|
-
{fmtDelta(trimDelta)}
|
|
1210
|
-
</span>
|
|
1211
|
-
) : null}
|
|
1212
|
-
{isResizing ? (
|
|
1213
|
-
<span
|
|
1214
|
-
className={`tl-trim-tip${retimeDrag.atClamp ? ' is-clamped' : ''}`}
|
|
1215
|
-
data-testid="timeline-trim-tip"
|
|
1216
|
-
style={{ left: left + width + 8 }}
|
|
1217
|
-
>
|
|
1218
|
-
{fmtDelta(dur - retimeDrag.startDur)}
|
|
1219
|
-
</span>
|
|
1220
|
-
) : null}
|
|
1221
|
-
{moving ? (
|
|
1222
|
-
<span className="tl-trim-tip" data-testid="timeline-move-tip" style={{ left }}>
|
|
1223
|
-
{fmtDelta(blockFrom - moveDrag.startFrom)}
|
|
1224
|
-
</span>
|
|
1225
|
-
) : null}
|
|
1226
|
-
{onReplace && seq.replaceable && !decomposable ? (
|
|
1227
|
-
<button
|
|
1228
|
-
type="button"
|
|
1229
|
-
className="tl-seq-replace"
|
|
1230
|
-
data-testid={`timeline-replace-${i}`}
|
|
1231
|
-
title={`Replace this ${rowKind(seq)}`}
|
|
1232
|
-
aria-label={`Replace media in ${seq.label}`}
|
|
1233
|
-
style={{ left: left + width - 34 }}
|
|
1234
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1235
|
-
onClick={(e) => {
|
|
1236
|
-
e.stopPropagation();
|
|
1237
|
-
onReplace(refFor(seq, i));
|
|
1238
|
-
}}
|
|
1239
|
-
>
|
|
1240
|
-
⇄
|
|
1241
|
-
</button>
|
|
1242
|
-
) : null}
|
|
1243
|
-
</Fragment>
|
|
1244
|
-
);
|
|
1245
|
-
};
|
|
1246
|
-
|
|
1247
|
-
/** Task 17 — hover "+" on hard-cut boundaries (no transition yet). */
|
|
1248
|
-
const renderAddSeams = () => {
|
|
1249
|
-
if (!onClipVerb) return null;
|
|
1250
|
-
const withTrans = new Set((transitions || []).map((t) => t.afterIndex));
|
|
1251
|
-
return storyline.slice(0, -1).map(({ seq, i }, k) => {
|
|
1252
|
-
if (withTrans.has(i)) return null;
|
|
1253
|
-
const next = storyline[k + 1];
|
|
1254
|
-
if (!next) return null;
|
|
1255
|
-
return (
|
|
1256
|
-
<button
|
|
1257
|
-
key={`addseam${k}`}
|
|
1258
|
-
type="button"
|
|
1259
|
-
className="tl-seam tl-seam-add"
|
|
1260
|
-
data-testid={`timeline-seam-add-${k}`}
|
|
1261
|
-
title="Add transition (fade · 15f — click the chip after to change)"
|
|
1262
|
-
style={{ left: x(next.seq.from) - 9 }}
|
|
1263
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1264
|
-
onClick={(e) => {
|
|
1265
|
-
e.stopPropagation();
|
|
1266
|
-
onClipVerb(refFor(seq, i), 'insert-transition', {
|
|
1267
|
-
presentation: 'fade',
|
|
1268
|
-
durationInFrames: 15,
|
|
1269
|
-
});
|
|
1270
|
-
}}
|
|
1271
|
-
>
|
|
1272
|
-
<LIc as={Plus} size={13} />
|
|
1273
|
-
</button>
|
|
1274
|
-
);
|
|
1275
|
-
});
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
/** ⧓ seam chips between storyline beats — click opens the Transition tab. */
|
|
1279
|
-
const renderSeams = () =>
|
|
1280
|
-
(transitions || []).map((t, k) => {
|
|
1281
|
-
const next = sequences[t.afterIndex + 1];
|
|
1282
|
-
if (!next) return null;
|
|
1283
|
-
const center = x(next.from + (t.dur || 0) / 2);
|
|
1284
|
-
return (
|
|
1285
|
-
<button
|
|
1286
|
-
key={`seam${k}`}
|
|
1287
|
-
type="button"
|
|
1288
|
-
className="tl-seam"
|
|
1289
|
-
data-testid={`timeline-seam-${k}`}
|
|
1290
|
-
title={`Transition · ${t.dur || 0}f — click to edit`}
|
|
1291
|
-
style={{ left: center - 9 }}
|
|
1292
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1293
|
-
onClick={(e) => {
|
|
1294
|
-
e.stopPropagation();
|
|
1295
|
-
setInspector({
|
|
1296
|
-
mode: 'transition',
|
|
1297
|
-
seam: k,
|
|
1298
|
-
x: e.clientX - 120,
|
|
1299
|
-
y: Math.max(60, e.clientY - 260),
|
|
1300
|
-
});
|
|
1301
|
-
}}
|
|
1302
|
-
>
|
|
1303
|
-
⧓
|
|
1304
|
-
</button>
|
|
1305
|
-
);
|
|
1306
|
-
});
|
|
1307
|
-
|
|
1308
|
-
const renderAudioRow = (a, i) => (
|
|
1309
|
-
<div className="tl-row" key={`a${i}`} data-testid={`timeline-audio-${i}`}>
|
|
1310
|
-
<span className="tl-row-label" title={a.label}>
|
|
1311
|
-
<span className="tl-kind" data-kind="audio" title={`Audio · ${a.label}`} aria-label={`Audio · ${a.label}`}>
|
|
1312
|
-
♪
|
|
1313
|
-
</span>
|
|
1314
|
-
<span className="tl-row-label-text">{a.label}</span>
|
|
1315
|
-
</span>
|
|
1316
|
-
<div
|
|
1317
|
-
className="tl-row-track"
|
|
1318
|
-
style={{ width: axisPx, flex: 'none' }}
|
|
1319
|
-
onDragOver={onLaneDragOver('audio', `a${i}`)}
|
|
1320
|
-
onDrop={onLaneDrop({ lane: 'audio' })}
|
|
1321
|
-
>
|
|
1322
|
-
{laneCaret('audio', `a${i}`)}
|
|
1323
|
-
<div
|
|
1324
|
-
className="tl-audio-block"
|
|
1325
|
-
title={`${a.label} · ${a.from}–${a.from + a.duration}f`}
|
|
1326
|
-
style={{ left: x(a.from), width: Math.max(2, x(a.duration)) }}
|
|
1327
|
-
>
|
|
1328
|
-
<svg className="tl-wave" viewBox="0 0 100 12" preserveAspectRatio="none" aria-hidden>
|
|
1329
|
-
{a.src && visuals[`p|${a.src}`] ? (
|
|
1330
|
-
// Task 7 — real peaks (WebAudio decode), filled mirrored wave.
|
|
1331
|
-
<path className="tl-wave-real" d={peaksToPath(visuals[`p|${a.src}`])} />
|
|
1332
|
-
) : (
|
|
1333
|
-
<path d="M0 6 Q2 1 4 6 T8 6 T12 6 T16 6 T20 6 T24 6 T28 6 T32 6 T36 6 T40 6 T44 6 T48 6 T52 6 T56 6 T60 6 T64 6 T68 6 T72 6 T76 6 T80 6 T84 6 T88 6 T92 6 T96 6 T100 6" />
|
|
1334
|
-
)}
|
|
1335
|
-
</svg>
|
|
1336
|
-
<span className="tl-seq-name">{a.label}</span>
|
|
1337
|
-
</div>
|
|
1338
|
-
{onReplaceAudio ? (
|
|
1339
|
-
<button
|
|
1340
|
-
type="button"
|
|
1341
|
-
className="tl-seq-replace"
|
|
1342
|
-
data-testid={`timeline-audio-replace-${i}`}
|
|
1343
|
-
title="Replace this audio"
|
|
1344
|
-
aria-label={`Replace audio ${a.label}`}
|
|
1345
|
-
style={{ left: x(a.from) + Math.max(2, x(a.duration)) - 20 }}
|
|
1346
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1347
|
-
onClick={(e) => {
|
|
1348
|
-
e.stopPropagation();
|
|
1349
|
-
onReplaceAudio(i);
|
|
1350
|
-
}}
|
|
1351
|
-
>
|
|
1352
|
-
⇄
|
|
1353
|
-
</button>
|
|
1354
|
-
) : null}
|
|
1355
|
-
</div>
|
|
1356
|
-
</div>
|
|
1357
|
-
);
|
|
1358
|
-
|
|
1359
|
-
return (
|
|
1360
|
-
<aside
|
|
1361
|
-
ref={rootRef}
|
|
1362
|
-
tabIndex={-1}
|
|
1363
|
-
className={`tl-panel${resizing ? ' is-resizing' : ''}${dropActive ? ' is-drop' : ''}${commentMode ? ' is-commenting' : ''}`}
|
|
1364
|
-
style={{ ...(height ? { height } : {}), outline: 'none' }}
|
|
1365
|
-
onPointerEnter={() => {
|
|
1366
|
-
// Keyboard shortcuts (C · Space · ⌘B · ⌘±) live on the SHELL window;
|
|
1367
|
-
// when the canvas iframe holds focus they never arrive. Hovering the
|
|
1368
|
-
// dock is the intent signal — grab shell focus so "press C, click a
|
|
1369
|
-
// clip" works without an extra priming click (dogfood 2026-07-30).
|
|
1370
|
-
if (!document.activeElement || document.activeElement === document.body) {
|
|
1371
|
-
rootRef.current?.focus();
|
|
1372
|
-
} else {
|
|
1373
|
-
const tag = document.activeElement.tagName;
|
|
1374
|
-
if (tag !== 'INPUT' && tag !== 'TEXTAREA' && tag !== 'SELECT') rootRef.current?.focus();
|
|
1375
|
-
}
|
|
1376
|
-
}}
|
|
1377
|
-
onDragOver={(e) => {
|
|
1378
|
-
if (!onDropMedia || !hasFiles(e.dataTransfer)) return;
|
|
1379
|
-
e.preventDefault();
|
|
1380
|
-
e.dataTransfer.dropEffect = 'copy';
|
|
1381
|
-
if (!dropActive) setDropActive(true);
|
|
1382
|
-
}}
|
|
1383
|
-
onDragLeave={(e) => {
|
|
1384
|
-
if (e.relatedTarget == null) {
|
|
1385
|
-
setDropActive(false);
|
|
1386
|
-
setDropCaret(null);
|
|
1387
|
-
}
|
|
1388
|
-
}}
|
|
1389
|
-
onDrop={onDrop}
|
|
1390
|
-
aria-label="Timeline"
|
|
1391
|
-
data-testid="timeline-panel"
|
|
1392
|
-
>
|
|
1393
|
-
<div
|
|
1394
|
-
className="tl-resize-handle"
|
|
1395
|
-
data-testid="timeline-resize-handle"
|
|
1396
|
-
title="Drag to resize"
|
|
1397
|
-
onPointerDown={beginResize}
|
|
1398
|
-
/>
|
|
1399
|
-
<div className="tl-head">
|
|
1400
|
-
{comp ? (
|
|
1401
|
-
<>
|
|
1402
|
-
<button
|
|
1403
|
-
type="button"
|
|
1404
|
-
className="tl-btn tl-btn-primary"
|
|
1405
|
-
aria-label={playing ? 'Pause' : 'Play'}
|
|
1406
|
-
aria-pressed={playing}
|
|
1407
|
-
data-testid="timeline-playpause"
|
|
1408
|
-
onClick={() => (playing ? onPause?.() : onPlay?.())}
|
|
1409
|
-
>
|
|
1410
|
-
<TIcon name={playing ? 'pause' : 'play'} />
|
|
1411
|
-
</button>
|
|
1412
|
-
<button type="button" className="tl-btn" aria-label="Jump to start" onClick={() => onSeek?.(0)}>
|
|
1413
|
-
<TIcon name="start" />
|
|
1414
|
-
</button>
|
|
1415
|
-
<button
|
|
1416
|
-
type="button"
|
|
1417
|
-
className={`tl-btn${loop ? ' is-on' : ''}`}
|
|
1418
|
-
aria-label="Loop"
|
|
1419
|
-
aria-pressed={loop}
|
|
1420
|
-
data-testid="timeline-loop"
|
|
1421
|
-
onClick={() => onToggleLoop?.()}
|
|
1422
|
-
>
|
|
1423
|
-
<TIcon name="loop" />
|
|
1424
|
-
</button>
|
|
1425
|
-
{comp ? (
|
|
1426
|
-
<button
|
|
1427
|
-
type="button"
|
|
1428
|
-
className={`tl-btn${muted ? '' : ' is-on'}`}
|
|
1429
|
-
aria-label={muted ? 'Unmute' : 'Mute'}
|
|
1430
|
-
aria-pressed={!muted}
|
|
1431
|
-
data-testid="timeline-mute"
|
|
1432
|
-
title={muted ? 'Unmute audio' : 'Mute audio'}
|
|
1433
|
-
onClick={() => onToggleMute?.()}
|
|
1434
|
-
>
|
|
1435
|
-
<TIcon name={muted ? 'muted' : 'sound'} />
|
|
1436
|
-
</button>
|
|
1437
|
-
) : null}
|
|
1438
|
-
{comp ? (
|
|
1439
|
-
<input
|
|
1440
|
-
type="range"
|
|
1441
|
-
className="tl-volume"
|
|
1442
|
-
min="0"
|
|
1443
|
-
max="100"
|
|
1444
|
-
value={Math.round((muted ? 0 : volume) * 100)}
|
|
1445
|
-
data-testid="timeline-volume"
|
|
1446
|
-
aria-label="Volume"
|
|
1447
|
-
title="Volume"
|
|
1448
|
-
onChange={(e) => onVolume?.(Number(e.target.value) / 100)}
|
|
1449
|
-
/>
|
|
1450
|
-
) : null}
|
|
1451
|
-
{/* issue #75 — on a multi-comp canvas the rows + transport belong to
|
|
1452
|
-
ONE artboard, and nothing said which. Show it (label, id as the
|
|
1453
|
-
fallback) so the panel and the canvas agree out loud. */}
|
|
1454
|
-
{comps.length > 1 ? (
|
|
1455
|
-
<span
|
|
1456
|
-
className={`tl-artboard${scopedArtboard ? '' : ' is-unknown'}`}
|
|
1457
|
-
data-testid="timeline-artboard"
|
|
1458
|
-
title={
|
|
1459
|
-
scopedArtboard
|
|
1460
|
-
? `Timeline is scoped to artboard "${scopedArtboard}" — pan to another artboard to switch`
|
|
1461
|
-
: "This canvas has several video comps and the Timeline couldn't tell which artboard this one sits in — the transport may be moving a comp you're not looking at"
|
|
1462
|
-
}
|
|
1463
|
-
>
|
|
1464
|
-
{scopedArtboard ?? 'artboard ?'}
|
|
1465
|
-
</span>
|
|
1466
|
-
) : null}
|
|
1467
|
-
<span className="tl-readout" data-testid="timeline-readout">
|
|
1468
|
-
<b>{clamped}</b>
|
|
1469
|
-
<span className="tl-sep">/</span>
|
|
1470
|
-
{totalFrames - 1}
|
|
1471
|
-
<span className="tl-time">{fmtTime(clamped, fps)}</span>
|
|
1472
|
-
</span>
|
|
1473
|
-
<span className="tl-spacer" />
|
|
1474
|
-
{onSplitAtPlayhead ? (
|
|
1475
|
-
<button
|
|
1476
|
-
type="button"
|
|
1477
|
-
className="tl-btn"
|
|
1478
|
-
aria-label="Split at playhead"
|
|
1479
|
-
title="Split at playhead (⌘B)"
|
|
1480
|
-
data-testid="timeline-split"
|
|
1481
|
-
onClick={() => onSplitAtPlayhead()}
|
|
1482
|
-
>
|
|
1483
|
-
<LIc as={Scissors} />
|
|
1484
|
-
</button>
|
|
1485
|
-
) : null}
|
|
1486
|
-
{onAddTitle ? (
|
|
1487
|
-
<button
|
|
1488
|
-
type="button"
|
|
1489
|
-
className="tl-btn"
|
|
1490
|
-
aria-label="Add title overlay"
|
|
1491
|
-
title="Add a title overlay at the playhead"
|
|
1492
|
-
data-testid="timeline-add-title"
|
|
1493
|
-
onClick={() => onAddTitle(clamped)}
|
|
1494
|
-
>
|
|
1495
|
-
<LIc as={Type} />
|
|
1496
|
-
</button>
|
|
1497
|
-
) : null}
|
|
1498
|
-
{onAddImage ? (
|
|
1499
|
-
<button
|
|
1500
|
-
type="button"
|
|
1501
|
-
className="tl-btn"
|
|
1502
|
-
aria-label="Add image overlay"
|
|
1503
|
-
title="Add an image overlay at the playhead"
|
|
1504
|
-
data-testid="timeline-add-image"
|
|
1505
|
-
onClick={() => onAddImage(clamped)}
|
|
1506
|
-
>
|
|
1507
|
-
<LIc as={ImagePlus} />
|
|
1508
|
-
</button>
|
|
1509
|
-
) : null}
|
|
1510
|
-
{onAddAiClip ? (
|
|
1511
|
-
<button
|
|
1512
|
-
type="button"
|
|
1513
|
-
className="tl-btn"
|
|
1514
|
-
aria-label="Add AI placeholder clip"
|
|
1515
|
-
title="Add an AI placeholder clip at the end of the storyline"
|
|
1516
|
-
data-testid="timeline-placeholder-add"
|
|
1517
|
-
onClick={() => onAddAiClip()}
|
|
1518
|
-
>
|
|
1519
|
-
<LIc as={Sparkles} />
|
|
1520
|
-
</button>
|
|
1521
|
-
) : null}
|
|
1522
|
-
{onAddComment ? (
|
|
1523
|
-
<button
|
|
1524
|
-
type="button"
|
|
1525
|
-
className={`tl-btn${commentMode ? ' is-on' : ''}`}
|
|
1526
|
-
aria-label="Comment tool"
|
|
1527
|
-
aria-pressed={commentMode}
|
|
1528
|
-
title="Comment tool — click anywhere on the timeline to pin a comment (C)"
|
|
1529
|
-
data-testid="timeline-comment-tool"
|
|
1530
|
-
onClick={() => setCommentMode((m) => !m)}
|
|
1531
|
-
>
|
|
1532
|
-
<LIc as={MessageSquarePlus} />
|
|
1533
|
-
</button>
|
|
1534
|
-
) : null}
|
|
1535
|
-
</>
|
|
1536
|
-
) : (
|
|
1537
|
-
<span className="tl-title">Timeline</span>
|
|
1538
|
-
)}
|
|
1539
|
-
<span className="tl-spacer" />
|
|
1540
|
-
{comp && totalFrames > 900 ? (
|
|
1541
|
-
// Task 1 — long-comp badge. 900 frames is the safe export tier
|
|
1542
|
-
// (frame-step fallback ~2.5 s/frame); the export dialog shows the
|
|
1543
|
-
// full notice, this is the always-visible hint.
|
|
1544
|
-
<span
|
|
1545
|
-
className="tl-long-badge"
|
|
1546
|
-
data-testid="timeline-long-badge"
|
|
1547
|
-
title={`Long comp: ${totalFrames} frames (≈${Math.round(totalFrames / (fps || 30))}s). Exports over 900 frames can take several minutes on the fallback path — see the export dialog.`}
|
|
1548
|
-
>
|
|
1549
|
-
⚠ {Math.round(totalFrames / (fps || 30))}s
|
|
1550
|
-
</span>
|
|
1551
|
-
) : null}
|
|
1552
|
-
{comp ? <span className="tl-meta">{fps} fps · {totalFrames}f</span> : null}
|
|
1553
|
-
{comp ? (
|
|
1554
|
-
<input
|
|
1555
|
-
type="range"
|
|
1556
|
-
className="tl-zoom"
|
|
1557
|
-
min="0"
|
|
1558
|
-
max="100"
|
|
1559
|
-
value={zoomSliderValue}
|
|
1560
|
-
data-testid="timeline-zoom"
|
|
1561
|
-
aria-label="Timeline zoom"
|
|
1562
|
-
title="Zoom (⌘+/⌘−, 0 = fit)"
|
|
1563
|
-
onChange={(e) => zoomTo(zoomFromSlider(Number(e.target.value)))}
|
|
1564
|
-
/>
|
|
1565
|
-
) : null}
|
|
1566
|
-
<button type="button" className="tl-x" aria-label="Close timeline" onClick={onClose}>
|
|
1567
|
-
×
|
|
1568
|
-
</button>
|
|
1569
|
-
</div>
|
|
1570
|
-
|
|
1571
|
-
{!comp ? (
|
|
1572
|
-
<div className="tl-empty" data-testid="timeline-empty">
|
|
1573
|
-
No video-comp on this canvas. <b>Drop video clips right here</b> to start a
|
|
1574
|
-
new cut, use <b>⌘K → New video…</b> for an empty one, or make an artboard a
|
|
1575
|
-
<code><VideoComp></code> yourself.
|
|
1576
|
-
</div>
|
|
1577
|
-
) : (
|
|
1578
|
-
<div className="tl-scroll" ref={setScrollRef}>
|
|
1579
|
-
<div
|
|
1580
|
-
className="tl-tracks"
|
|
1581
|
-
ref={trackRef}
|
|
1582
|
-
data-testid="timeline-track"
|
|
1583
|
-
style={{ width: LABEL_GUTTER + axisPx }}
|
|
1584
|
-
onPointerDown={onTrackDown}
|
|
1585
|
-
onDragOver={onLaneDragOver('overlay', 'tracks')}
|
|
1586
|
-
onDrop={onLaneDrop({ lane: 'overlay' })}
|
|
1587
|
-
>
|
|
1588
|
-
{comments.length ? (
|
|
1589
|
-
// Task 23 — 💬 marker strip. Preferred anchor: clipStableId +
|
|
1590
|
-
// frameOffset (survives reorder/ripple); a comment whose clip is
|
|
1591
|
-
// gone degrades to its absolute frame with a "detached" badge.
|
|
1592
|
-
<div className="tl-comments-strip" data-testid="timeline-comments-strip">
|
|
1593
|
-
{comments.map((c) => {
|
|
1594
|
-
const tl = c.timeline || {};
|
|
1595
|
-
let frame = null;
|
|
1596
|
-
let detached = false;
|
|
1597
|
-
if (tl.clipStableId) {
|
|
1598
|
-
const row = sequences.find((r2) => r2.stableId === tl.clipStableId);
|
|
1599
|
-
if (row) frame = row.from + Math.min(tl.frameOffset || 0, Math.max(0, row.duration - 1));
|
|
1600
|
-
else if (tl.frame != null) {
|
|
1601
|
-
frame = tl.frame;
|
|
1602
|
-
detached = true;
|
|
1603
|
-
}
|
|
1604
|
-
} else if (tl.frame != null) {
|
|
1605
|
-
frame = tl.frame;
|
|
1606
|
-
}
|
|
1607
|
-
if (frame == null) return null;
|
|
1608
|
-
return (
|
|
1609
|
-
<button
|
|
1610
|
-
key={c.id}
|
|
1611
|
-
type="button"
|
|
1612
|
-
className={`tl-comment-pin${c.status === 'resolved' ? ' is-resolved' : ''}${detached ? ' is-detached' : ''}`}
|
|
1613
|
-
data-testid={`timeline-comment-${c.id}`}
|
|
1614
|
-
title={`${c.author || 'comment'}${detached ? ' (detached — clip removed)' : ''}: ${c.text}`}
|
|
1615
|
-
style={{ left: LABEL_GUTTER + x(clamp(frame, 0, totalFrames - 1)) - 8 }}
|
|
1616
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1617
|
-
onClick={(e) => {
|
|
1618
|
-
e.stopPropagation();
|
|
1619
|
-
onSeek?.(clamp(frame, 0, totalFrames - 1));
|
|
1620
|
-
setCommentPopover({ id: c.id, x: e.clientX - 130, y: Math.max(60, e.clientY - 180) });
|
|
1621
|
-
}}
|
|
1622
|
-
>
|
|
1623
|
-
💬
|
|
1624
|
-
</button>
|
|
1625
|
-
);
|
|
1626
|
-
})}
|
|
1627
|
-
</div>
|
|
1628
|
-
) : null}
|
|
1629
|
-
<div className="tl-ruler" style={{ width: axisPx }}>
|
|
1630
|
-
{ticks.map((f) => {
|
|
1631
|
-
const major = f % (fps || 30) === 0;
|
|
1632
|
-
const showLabel = major || step <= 5;
|
|
1633
|
-
return (
|
|
1634
|
-
<span key={f} className={`tl-tick${major ? ' is-major' : ''}`} style={{ left: x(f) }}>
|
|
1635
|
-
{showLabel ? <span className="tl-tick-label">{tickLabel(f, fps)}</span> : null}
|
|
1636
|
-
</span>
|
|
1637
|
-
);
|
|
1638
|
-
})}
|
|
1639
|
-
</div>
|
|
1640
|
-
|
|
1641
|
-
{laneCaret('overlay', 'tracks')}
|
|
1642
|
-
{sequences.length === 0 ? (
|
|
1643
|
-
<div className="tl-row">
|
|
1644
|
-
<span className="tl-row-label">comp</span>
|
|
1645
|
-
<div className="tl-row-track" style={{ width: axisPx, flex: 'none' }}>
|
|
1646
|
-
<div className="tl-seq-block" style={{ left: 0, width: axisPx }}>
|
|
1647
|
-
<span className="tl-seq-name">whole composition</span>
|
|
1648
|
-
</div>
|
|
1649
|
-
</div>
|
|
1650
|
-
</div>
|
|
1651
|
-
) : bandMode ? (
|
|
1652
|
-
<>
|
|
1653
|
-
{/* Overlay band — standalone Sequences above the storyline.
|
|
1654
|
-
Rendered TOP = topmost paint (last in the document), so the
|
|
1655
|
-
stack reads like FCP; drag the V-chip to reorder layers. */}
|
|
1656
|
-
{(() => {
|
|
1657
|
-
// z-ladder = the overlay clips the SERVER can reorder
|
|
1658
|
-
// (standalone <Sequence>s; `loose` bare media has no clip
|
|
1659
|
-
// identity and stays out of the index space).
|
|
1660
|
-
const zLadder = overlay.filter(({ seq }) => !seq.loose);
|
|
1661
|
-
return [...overlay].reverse().map(({ seq, i }) => {
|
|
1662
|
-
const docIdx = seq.loose ? null : zLadder.findIndex((o) => o.i === i);
|
|
1663
|
-
const vNum = docIdx == null ? null : docIdx + 2; // V1 = the storyline
|
|
1664
|
-
const rowCls =
|
|
1665
|
-
`tl-row tl-row--overlay` +
|
|
1666
|
-
(layerDrag && layerDrag.index === i ? ' is-layer-dragging' : '') +
|
|
1667
|
-
(layerDrag && docIdx != null && layerDrag.index !== i && layerDrag.curTarget === docIdx
|
|
1668
|
-
? ' is-layer-target'
|
|
1669
|
-
: '');
|
|
1670
|
-
return (
|
|
1671
|
-
<div
|
|
1672
|
-
className={rowCls}
|
|
1673
|
-
key={`o${i}`}
|
|
1674
|
-
data-testid={`timeline-row-${i}`}
|
|
1675
|
-
{...(docIdx != null ? { 'data-layer-doc': docIdx } : {})}
|
|
1676
|
-
>
|
|
1677
|
-
<span className="tl-row-label" title={seq.mediaSrc || seq.label}>
|
|
1678
|
-
{docIdx != null ? (
|
|
1679
|
-
<span
|
|
1680
|
-
className="tl-lane-id tl-lane-id--grab"
|
|
1681
|
-
data-testid={`timeline-lane-chip-${i}`}
|
|
1682
|
-
title="Drag up/down to reorder layers"
|
|
1683
|
-
onPointerDown={(e) => startLayerDrag(e, i, docIdx)}
|
|
1684
|
-
>
|
|
1685
|
-
V{vNum}
|
|
1686
|
-
</span>
|
|
1687
|
-
) : (
|
|
1688
|
-
<span className="tl-lane-id" title="Loose media — no layer order">◌</span>
|
|
1689
|
-
)}
|
|
1690
|
-
<span className="tl-kind" data-kind={rowKind(seq)}>{rowKindGlyph(seq)}</span>
|
|
1691
|
-
</span>
|
|
1692
|
-
<div
|
|
1693
|
-
className="tl-row-track"
|
|
1694
|
-
style={{ width: axisPx, flex: 'none' }}
|
|
1695
|
-
onDragOver={onLaneDragOver('overlay', `o${i}`)}
|
|
1696
|
-
onDrop={onLaneDrop({ lane: 'overlay' })}
|
|
1697
|
-
>
|
|
1698
|
-
{renderBlock(seq, i, { lane: 'overlay', laneName: vNum != null ? `V${vNum}` : 'loose' })}
|
|
1699
|
-
{laneCaret('overlay', `o${i}`)}
|
|
1700
|
-
</div>
|
|
1701
|
-
</div>
|
|
1702
|
-
);
|
|
1703
|
-
});
|
|
1704
|
-
})()}
|
|
1705
|
-
{/* THE storyline — series beats butted side-by-side. */}
|
|
1706
|
-
<div className="tl-row tl-row--storyline" data-testid="timeline-storyline">
|
|
1707
|
-
<span className="tl-row-label">
|
|
1708
|
-
<span className="tl-lane-id tl-lane-id--story">V1</span>
|
|
1709
|
-
<span className="tl-band-tag tl-band-tag--story">storyline</span>
|
|
1710
|
-
</span>
|
|
1711
|
-
<div
|
|
1712
|
-
className={`tl-row-track tl-storyline-track${reorderDrag ? ' is-reordering' : ''}${moveDrag?.overStory ? ' is-drop-target' : ''}`}
|
|
1713
|
-
style={{ width: axisPx, flex: 'none' }}
|
|
1714
|
-
onDragOver={onStoryDragOver}
|
|
1715
|
-
onDrop={onLaneDrop({ lane: 'storyline' })}
|
|
1716
|
-
>
|
|
1717
|
-
{storyline.map(({ seq, i }) => renderBlock(seq, i, { lane: 'storyline', laneName: 'V1' }))}
|
|
1718
|
-
{reorderDrag ? null : renderSeams()}
|
|
1719
|
-
{reorderDrag ? null : renderAddSeams()}
|
|
1720
|
-
{dropCaret?.lane === 'storyline' ? (
|
|
1721
|
-
<span
|
|
1722
|
-
className="tl-drop-caret"
|
|
1723
|
-
data-testid="timeline-drop-caret"
|
|
1724
|
-
style={{ left: dropCaret.x - 1 }}
|
|
1725
|
-
/>
|
|
1726
|
-
) : null}
|
|
1727
|
-
</div>
|
|
1728
|
-
</div>
|
|
1729
|
-
{/* Dogfood 2026-07-30 (image #22) — a decomposable beat (an
|
|
1730
|
-
old hand-authored scene component) expands into its layer
|
|
1731
|
-
sub-rows right under the storyline, exactly like the
|
|
1732
|
-
stacked fallback used to show; default-expanded. */}
|
|
1733
|
-
{storyline
|
|
1734
|
-
.filter(
|
|
1735
|
-
({ seq, i }) =>
|
|
1736
|
-
Array.isArray(seq.layers) && seq.layers.length >= 2 && !collapsed.has(i)
|
|
1737
|
-
)
|
|
1738
|
-
.map(({ seq, i }) =>
|
|
1739
|
-
seq.layers.map((ly, li) => {
|
|
1740
|
-
const lyKind =
|
|
1741
|
-
ly.kind === 'video' || ly.kind === 'image' || ly.kind === 'audio'
|
|
1742
|
-
? ly.kind
|
|
1743
|
-
: 'jsx';
|
|
1744
|
-
const lyGlyph =
|
|
1745
|
-
ly.kind === 'video' ? '▶' : ly.kind === 'image' ? '◫' : ly.kind === 'audio' ? '♪' : 'ƒ';
|
|
1746
|
-
return (
|
|
1747
|
-
<div
|
|
1748
|
-
className="tl-row tl-row--layer"
|
|
1749
|
-
key={`bl${i}-${li}`}
|
|
1750
|
-
data-testid={`timeline-layer-${i}-${li}`}
|
|
1751
|
-
>
|
|
1752
|
-
<span className="tl-row-label" title={`${seq.label} · ${ly.label}`}>
|
|
1753
|
-
<span className="tl-layer-indent" aria-hidden="true" />
|
|
1754
|
-
<span className="tl-kind" data-kind={lyKind}>{lyGlyph}</span>
|
|
1755
|
-
<span className="tl-row-label-text">{ly.label}</span>
|
|
1756
|
-
</span>
|
|
1757
|
-
<div className="tl-row-track" style={{ width: axisPx, flex: 'none' }}>
|
|
1758
|
-
<div
|
|
1759
|
-
className="tl-seq-block tl-layer-block"
|
|
1760
|
-
data-kind={lyKind}
|
|
1761
|
-
data-testid={`timeline-layer-block-${i}-${li}`}
|
|
1762
|
-
title={`${seq.label} · ${ly.label} (${ly.kind} layer)`}
|
|
1763
|
-
style={{ left: x(seq.from), width: Math.max(2, x(seq.duration)) }}
|
|
1764
|
-
onContextMenu={(e) => {
|
|
1765
|
-
e.preventDefault();
|
|
1766
|
-
e.stopPropagation();
|
|
1767
|
-
setCtxMenu({ index: i, layerIndex: li, x: e.clientX, y: e.clientY });
|
|
1768
|
-
}}
|
|
1769
|
-
>
|
|
1770
|
-
<span className="tl-seq-name">{ly.label}</span>
|
|
1771
|
-
</div>
|
|
1772
|
-
{onReplaceLayer && (ly.mediaCdId || ly.mediaArrayRef) ? (
|
|
1773
|
-
<button
|
|
1774
|
-
type="button"
|
|
1775
|
-
className="tl-seq-replace"
|
|
1776
|
-
data-testid={`timeline-layer-replace-${i}-${li}`}
|
|
1777
|
-
title={`Replace this ${ly.kind}`}
|
|
1778
|
-
aria-label={`Replace ${ly.label}`}
|
|
1779
|
-
style={{ left: x(seq.from) + Math.max(2, x(seq.duration)) - 20 }}
|
|
1780
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1781
|
-
onClick={(e) => {
|
|
1782
|
-
e.stopPropagation();
|
|
1783
|
-
onReplaceLayer(refFor(seq, i), li);
|
|
1784
|
-
}}
|
|
1785
|
-
>
|
|
1786
|
-
⇄
|
|
1787
|
-
</button>
|
|
1788
|
-
) : null}
|
|
1789
|
-
</div>
|
|
1790
|
-
</div>
|
|
1791
|
-
);
|
|
1792
|
-
})
|
|
1793
|
-
)}
|
|
1794
|
-
{/* Audio band — standalone audio clips (movable/trimmable) +
|
|
1795
|
-
loose <Audio> beds. */}
|
|
1796
|
-
{audioClips.map(({ seq, i }, k) => (
|
|
1797
|
-
<div className="tl-row tl-row--overlay tl-row--audio" key={`ac${i}`} data-testid={`timeline-row-${i}`}>
|
|
1798
|
-
<span className="tl-row-label" title={seq.mediaSrc || seq.label}>
|
|
1799
|
-
<span className="tl-lane-id tl-lane-id--audio">A{k + 1}</span>
|
|
1800
|
-
<span className="tl-kind" data-kind="audio">♪</span>
|
|
1801
|
-
</span>
|
|
1802
|
-
<div
|
|
1803
|
-
className="tl-row-track"
|
|
1804
|
-
style={{ width: axisPx, flex: 'none' }}
|
|
1805
|
-
onDragOver={onLaneDragOver('audio', `ac${i}`)}
|
|
1806
|
-
onDrop={onLaneDrop({ lane: 'audio' })}
|
|
1807
|
-
>
|
|
1808
|
-
{renderBlock(seq, i, { lane: 'audio', laneName: `A${k + 1}` })}
|
|
1809
|
-
{laneCaret('audio', `ac${i}`)}
|
|
1810
|
-
</div>
|
|
1811
|
-
</div>
|
|
1812
|
-
))}
|
|
1813
|
-
{audio.map((a, i) => renderAudioRow(a, i))}
|
|
1814
|
-
{/* Debate verdict: the dead space below the lanes gets a JOB —
|
|
1815
|
-
it IS the new-layer drop target, and says so. */}
|
|
1816
|
-
<div
|
|
1817
|
-
className={`tl-newlayer-zone${dropCaret?.row === 'newlayer' ? ' is-active' : ''}`}
|
|
1818
|
-
data-testid="timeline-newlayer-zone"
|
|
1819
|
-
onDragOver={onLaneDragOver('overlay', 'newlayer')}
|
|
1820
|
-
onDrop={onLaneDrop({ lane: 'overlay' })}
|
|
1821
|
-
>
|
|
1822
|
-
<span style={{ marginLeft: LABEL_GUTTER }}>Drop clips here — new layer</span>
|
|
1823
|
-
</div>
|
|
1824
|
-
</>
|
|
1825
|
-
) : (
|
|
1826
|
-
<>
|
|
1827
|
-
{sequences.map((seq, i) => {
|
|
1828
|
-
const layers = Array.isArray(seq.layers) ? seq.layers : [];
|
|
1829
|
-
const decomposable = layers.length >= 2;
|
|
1830
|
-
const isExpanded = decomposable && !collapsed.has(i);
|
|
1831
|
-
const dur = retimeDrag && retimeDrag.index === i ? retimeDrag.curDur : seq.duration;
|
|
1832
|
-
return (
|
|
1833
|
-
<Fragment key={i}>
|
|
1834
|
-
<div className="tl-row" data-testid={`timeline-row-${i}`}>
|
|
1835
|
-
<span className="tl-row-label" title={seq.label}>
|
|
1836
|
-
{decomposable ? (
|
|
1837
|
-
<button
|
|
1838
|
-
type="button"
|
|
1839
|
-
className="tl-expand"
|
|
1840
|
-
data-testid={`timeline-expand-${i}`}
|
|
1841
|
-
title={isExpanded ? 'Collapse layers' : 'Show layers'}
|
|
1842
|
-
aria-label={isExpanded ? `Collapse ${seq.label} layers` : `Show ${seq.label} layers`}
|
|
1843
|
-
aria-expanded={isExpanded}
|
|
1844
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1845
|
-
onClick={(e) => {
|
|
1846
|
-
e.stopPropagation();
|
|
1847
|
-
e.preventDefault();
|
|
1848
|
-
setCollapsed((prev) => {
|
|
1849
|
-
const next = new Set(prev);
|
|
1850
|
-
if (next.has(i)) next.delete(i);
|
|
1851
|
-
else next.add(i);
|
|
1852
|
-
return next;
|
|
1853
|
-
});
|
|
1854
|
-
}}
|
|
1855
|
-
>
|
|
1856
|
-
{isExpanded ? '▾' : '▸'}
|
|
1857
|
-
</button>
|
|
1858
|
-
) : (
|
|
1859
|
-
<span className="tl-expand tl-expand--spacer" aria-hidden="true" />
|
|
1860
|
-
)}
|
|
1861
|
-
<span
|
|
1862
|
-
className="tl-kind"
|
|
1863
|
-
data-kind={rowKind(seq)}
|
|
1864
|
-
title={rowKindTitle(seq)}
|
|
1865
|
-
aria-label={rowKindTitle(seq)}
|
|
1866
|
-
>
|
|
1867
|
-
{rowKindGlyph(seq)}
|
|
1868
|
-
</span>
|
|
1869
|
-
<span className="tl-row-label-text">{seq.label}</span>
|
|
1870
|
-
</span>
|
|
1871
|
-
<div className="tl-row-track" style={{ width: axisPx, flex: 'none' }}>
|
|
1872
|
-
{renderBlock(seq, i, { lane: 'row' })}
|
|
1873
|
-
</div>
|
|
1874
|
-
</div>
|
|
1875
|
-
{isExpanded
|
|
1876
|
-
? layers.map((ly, li) => {
|
|
1877
|
-
const lyKind =
|
|
1878
|
-
ly.kind === 'video'
|
|
1879
|
-
? 'video'
|
|
1880
|
-
: ly.kind === 'image'
|
|
1881
|
-
? 'image'
|
|
1882
|
-
: ly.kind === 'audio'
|
|
1883
|
-
? 'audio'
|
|
1884
|
-
: 'jsx';
|
|
1885
|
-
const lyGlyph =
|
|
1886
|
-
ly.kind === 'video'
|
|
1887
|
-
? '▶'
|
|
1888
|
-
: ly.kind === 'image'
|
|
1889
|
-
? '◫'
|
|
1890
|
-
: ly.kind === 'audio'
|
|
1891
|
-
? '♪'
|
|
1892
|
-
: 'ƒ';
|
|
1893
|
-
const lyReplaceable = !!(ly.mediaCdId || ly.mediaArrayRef);
|
|
1894
|
-
return (
|
|
1895
|
-
<div
|
|
1896
|
-
className="tl-row tl-row--layer"
|
|
1897
|
-
key={`l${li}`}
|
|
1898
|
-
data-testid={`timeline-layer-${i}-${li}`}
|
|
1899
|
-
>
|
|
1900
|
-
<span className="tl-row-label" title={ly.label}>
|
|
1901
|
-
<span className="tl-layer-indent" aria-hidden="true" />
|
|
1902
|
-
<span className="tl-kind" data-kind={lyKind}>
|
|
1903
|
-
{lyGlyph}
|
|
1904
|
-
</span>
|
|
1905
|
-
<span className="tl-row-label-text">{ly.label}</span>
|
|
1906
|
-
</span>
|
|
1907
|
-
<div className="tl-row-track" style={{ width: axisPx, flex: 'none' }}>
|
|
1908
|
-
<div
|
|
1909
|
-
className="tl-seq-block tl-layer-block"
|
|
1910
|
-
data-kind={lyKind}
|
|
1911
|
-
data-testid={`timeline-layer-block-${i}-${li}`}
|
|
1912
|
-
title={`${ly.label} (${ly.kind} layer)`}
|
|
1913
|
-
style={{ left: x(seq.from), width: Math.max(2, x(dur)) }}
|
|
1914
|
-
onContextMenu={(e) => {
|
|
1915
|
-
e.preventDefault();
|
|
1916
|
-
e.stopPropagation();
|
|
1917
|
-
setCtxMenu({ index: i, layerIndex: li, x: e.clientX, y: e.clientY });
|
|
1918
|
-
}}
|
|
1919
|
-
>
|
|
1920
|
-
<span className="tl-seq-name">{ly.label}</span>
|
|
1921
|
-
</div>
|
|
1922
|
-
{onReplaceLayer && lyReplaceable ? (
|
|
1923
|
-
<button
|
|
1924
|
-
type="button"
|
|
1925
|
-
className="tl-seq-replace"
|
|
1926
|
-
data-testid={`timeline-layer-replace-${i}-${li}`}
|
|
1927
|
-
title={`Replace this ${ly.kind}`}
|
|
1928
|
-
aria-label={`Replace ${ly.label}`}
|
|
1929
|
-
style={{ left: x(seq.from) + Math.max(2, x(dur)) - 20 }}
|
|
1930
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
1931
|
-
onClick={(e) => {
|
|
1932
|
-
e.stopPropagation();
|
|
1933
|
-
onReplaceLayer(refFor(seq, i), li);
|
|
1934
|
-
}}
|
|
1935
|
-
>
|
|
1936
|
-
⇄
|
|
1937
|
-
</button>
|
|
1938
|
-
) : null}
|
|
1939
|
-
</div>
|
|
1940
|
-
</div>
|
|
1941
|
-
);
|
|
1942
|
-
})
|
|
1943
|
-
: null}
|
|
1944
|
-
</Fragment>
|
|
1945
|
-
);
|
|
1946
|
-
})}
|
|
1947
|
-
{audio.map((a, i) => renderAudioRow(a, i))}
|
|
1948
|
-
</>
|
|
1949
|
-
)}
|
|
1950
|
-
|
|
1951
|
-
{snapFlash ? (
|
|
1952
|
-
<span className="tl-snapline" style={{ left: LABEL_GUTTER + x(snapFlash.frame) }} />
|
|
1953
|
-
) : null}
|
|
1954
|
-
<span
|
|
1955
|
-
className="tl-playhead"
|
|
1956
|
-
data-testid="timeline-playhead"
|
|
1957
|
-
style={{ left: LABEL_GUTTER + x(clamped) }}
|
|
1958
|
-
>
|
|
1959
|
-
<span className="tl-playhead-time">{fmtTime(clamped, fps)}</span>
|
|
1960
|
-
</span>
|
|
1961
|
-
</div>
|
|
1962
|
-
</div>
|
|
1963
|
-
)}
|
|
1964
|
-
{commentDraft
|
|
1965
|
-
? createPortal(
|
|
1966
|
-
<div className="tlci tlci--comment" style={{ left: commentDraft.x, top: commentDraft.y }}>
|
|
1967
|
-
<div className="tlci-head" style={{ cursor: 'default' }}>
|
|
1968
|
-
<span className="tlci-title">
|
|
1969
|
-
Comment @ {fmtTime(commentDraft.at, fps)}
|
|
1970
|
-
{commentDraft.anchor.lane ? ` · ${commentDraft.anchor.lane}` : ''}
|
|
1971
|
-
</span>
|
|
1972
|
-
<button type="button" className="tlci-x" aria-label="Close" onClick={() => setCommentDraft(null)}>
|
|
1973
|
-
×
|
|
1974
|
-
</button>
|
|
1975
|
-
</div>
|
|
1976
|
-
<div className="tlci-body">
|
|
1977
|
-
<textarea
|
|
1978
|
-
className="tlci-textarea"
|
|
1979
|
-
rows={3}
|
|
1980
|
-
autoFocus
|
|
1981
|
-
placeholder="Comment… (Enter to add)"
|
|
1982
|
-
data-testid="timeline-comment-composer"
|
|
1983
|
-
onKeyDown={(e) => {
|
|
1984
|
-
e.stopPropagation();
|
|
1985
|
-
if (e.key === 'Enter' && !e.shiftKey) {
|
|
1986
|
-
e.preventDefault();
|
|
1987
|
-
const text = e.currentTarget.value.trim();
|
|
1988
|
-
if (text) onAddComment?.(commentDraft.anchor, text);
|
|
1989
|
-
setCommentDraft(null);
|
|
1990
|
-
} else if (e.key === 'Escape') {
|
|
1991
|
-
setCommentDraft(null);
|
|
1992
|
-
}
|
|
1993
|
-
}}
|
|
1994
|
-
/>
|
|
1995
|
-
<div className="tlci-row">
|
|
1996
|
-
<button
|
|
1997
|
-
type="button"
|
|
1998
|
-
className="tlci-btn"
|
|
1999
|
-
data-testid="timeline-comment-submit"
|
|
2000
|
-
onClick={(e) => {
|
|
2001
|
-
const ta = e.currentTarget.closest('.tlci')?.querySelector('textarea');
|
|
2002
|
-
const text = ta?.value?.trim();
|
|
2003
|
-
if (text) onAddComment?.(commentDraft.anchor, text);
|
|
2004
|
-
setCommentDraft(null);
|
|
2005
|
-
}}
|
|
2006
|
-
>
|
|
2007
|
-
Add comment
|
|
2008
|
-
</button>
|
|
2009
|
-
</div>
|
|
2010
|
-
</div>
|
|
2011
|
-
</div>,
|
|
2012
|
-
document.body
|
|
2013
|
-
)
|
|
2014
|
-
: null}
|
|
2015
|
-
{commentPopover
|
|
2016
|
-
? createPortal((() => {
|
|
2017
|
-
const c = comments.find((k) => k.id === commentPopover.id);
|
|
2018
|
-
if (!c) return null;
|
|
2019
|
-
return (
|
|
2020
|
-
<div
|
|
2021
|
-
className="tlci"
|
|
2022
|
-
style={{ left: commentPopover.x, top: commentPopover.y }}
|
|
2023
|
-
role="dialog"
|
|
2024
|
-
aria-label="Timeline comment"
|
|
2025
|
-
data-testid="timeline-comment-popover"
|
|
2026
|
-
onPointerDown={(e) => e.stopPropagation()}
|
|
2027
|
-
>
|
|
2028
|
-
<div className="tlci-head">
|
|
2029
|
-
<span className="tlci-title">💬 {c.author || 'comment'}</span>
|
|
2030
|
-
<button type="button" className="tlci-x" aria-label="Close" onClick={() => setCommentPopover(null)}>
|
|
2031
|
-
×
|
|
2032
|
-
</button>
|
|
2033
|
-
</div>
|
|
2034
|
-
<div className="tlci-body">
|
|
2035
|
-
<p className="tlci-comment-text">{c.text}</p>
|
|
2036
|
-
{(c.thread || []).map((r2, k2) => (
|
|
2037
|
-
<p key={k2} className="tlci-note">
|
|
2038
|
-
↳ {r2.author ? `${r2.author}: ` : ''}{r2.body}
|
|
2039
|
-
</p>
|
|
2040
|
-
))}
|
|
2041
|
-
<div className="tlci-presets">
|
|
2042
|
-
{c.status !== 'resolved' && onResolveComment ? (
|
|
2043
|
-
<button
|
|
2044
|
-
type="button"
|
|
2045
|
-
className="tlci-chip"
|
|
2046
|
-
onClick={() => {
|
|
2047
|
-
onResolveComment(c.id);
|
|
2048
|
-
setCommentPopover(null);
|
|
2049
|
-
}}
|
|
2050
|
-
>
|
|
2051
|
-
Resolve
|
|
2052
|
-
</button>
|
|
2053
|
-
) : null}
|
|
2054
|
-
{onDeleteComment ? (
|
|
2055
|
-
<button
|
|
2056
|
-
type="button"
|
|
2057
|
-
className="tlci-chip"
|
|
2058
|
-
onClick={() => {
|
|
2059
|
-
onDeleteComment(c.id);
|
|
2060
|
-
setCommentPopover(null);
|
|
2061
|
-
}}
|
|
2062
|
-
>
|
|
2063
|
-
Delete
|
|
2064
|
-
</button>
|
|
2065
|
-
) : null}
|
|
2066
|
-
</div>
|
|
2067
|
-
</div>
|
|
2068
|
-
</div>
|
|
2069
|
-
);
|
|
2070
|
-
})(), document.body)
|
|
2071
|
-
: null}
|
|
2072
|
-
{inspector
|
|
2073
|
-
? createPortal((() => {
|
|
2074
|
-
if (inspector.mode === 'transition') {
|
|
2075
|
-
const tClip = transitionClips[inspector.seam];
|
|
2076
|
-
const tParse = (transitions || [])[inspector.seam];
|
|
2077
|
-
if (!tClip) return null;
|
|
2078
|
-
return (
|
|
2079
|
-
<ClipInspector
|
|
2080
|
-
mode="transition"
|
|
2081
|
-
clipLabel="Transition"
|
|
2082
|
-
transition={{ dur: tParse?.dur ?? 15 }}
|
|
2083
|
-
x={inspector.x}
|
|
2084
|
-
y={inspector.y}
|
|
2085
|
-
onVerb={(verb, params) =>
|
|
2086
|
-
onClipVerb?.({ stableId: tClip.stableId, transition: true }, verb, params)
|
|
2087
|
-
}
|
|
2088
|
-
onClose={() => setInspector(null)}
|
|
2089
|
-
/>
|
|
2090
|
-
);
|
|
2091
|
-
}
|
|
2092
|
-
const seq = sequences[inspector.index];
|
|
2093
|
-
if (!seq) return null;
|
|
2094
|
-
return (
|
|
2095
|
-
<ClipInspector
|
|
2096
|
-
mode="clip"
|
|
2097
|
-
clipLabel={seq.label}
|
|
2098
|
-
kind={rowKind(seq)}
|
|
2099
|
-
textValue={seq.placeholder ? seq.placeholder.prompt || '' : rowKind(seq) === 'jsx' && !seq.series ? '' : null}
|
|
2100
|
-
mediaProps={seq.mediaProps || null}
|
|
2101
|
-
x={inspector.x}
|
|
2102
|
-
y={inspector.y}
|
|
2103
|
-
onVerb={(verb, params) => onClipVerb?.(refFor(seq, inspector.index), verb, params)}
|
|
2104
|
-
onClose={() => setInspector(null)}
|
|
2105
|
-
/>
|
|
2106
|
-
);
|
|
2107
|
-
})(), document.body)
|
|
2108
|
-
: null}
|
|
2109
|
-
{ctxMenu && sequences[ctxMenu.index]
|
|
2110
|
-
? createPortal((() => {
|
|
2111
|
-
const seq = sequences[ctxMenu.index];
|
|
2112
|
-
const i = ctxMenu.index;
|
|
2113
|
-
const li = ctxMenu.layerIndex;
|
|
2114
|
-
let sections;
|
|
2115
|
-
if (seq.loose) {
|
|
2116
|
-
// A bare media sibling outside every <Sequence> — visible for
|
|
2117
|
-
// orientation, but it has no clip identity for server ops.
|
|
2118
|
-
sections = [[{ id: 'noop', label: 'Loose media (no clip wrapper) — edit via /design:edit', disabled: true, onSelect: () => {} }]];
|
|
2119
|
-
} else if (li != null) {
|
|
2120
|
-
// A LAYER (sub-clip) menu — a stacked layer shares the clip's
|
|
2121
|
-
// timing, so only media-replace applies here.
|
|
2122
|
-
const ly = (Array.isArray(seq.layers) ? seq.layers : [])[li];
|
|
2123
|
-
const items = [];
|
|
2124
|
-
if (onReplaceLayer && ly && (ly.mediaCdId || ly.mediaArrayRef)) {
|
|
2125
|
-
items.push({ id: 'replace-layer', label: `Replace ${ly.kind}…`, onSelect: () => onReplaceLayer(refFor(seq, i), li) });
|
|
2126
|
-
}
|
|
2127
|
-
if (items.length === 0) {
|
|
2128
|
-
items.push({ id: 'noop', label: 'No replaceable media in this layer', disabled: true, onSelect: () => {} });
|
|
2129
|
-
}
|
|
2130
|
-
sections = [items];
|
|
2131
|
-
} else {
|
|
2132
|
-
const primary = [];
|
|
2133
|
-
if (onAddComment) {
|
|
2134
|
-
primary.push({
|
|
2135
|
-
id: 'comment',
|
|
2136
|
-
label: 'Comment on clip…',
|
|
2137
|
-
onSelect: () => {
|
|
2138
|
-
// Same anchored composer as the C tool — no modal.
|
|
2139
|
-
setCommentDraft({
|
|
2140
|
-
x: clamp(ctxMenu.x - 130, 8, window.innerWidth - 280),
|
|
2141
|
-
y: Math.max(48, ctxMenu.y - 140),
|
|
2142
|
-
anchor: {
|
|
2143
|
-
clipStableId: seq.stableId || undefined,
|
|
2144
|
-
frameOffset: Math.max(0, clamped - (seq.from || 0)),
|
|
2145
|
-
frame: clamped,
|
|
2146
|
-
},
|
|
2147
|
-
at: clamped,
|
|
2148
|
-
});
|
|
2149
|
-
},
|
|
2150
|
-
});
|
|
2151
|
-
}
|
|
2152
|
-
if (seq.placeholder && onGeneratePlaceholder) {
|
|
2153
|
-
primary.push({
|
|
2154
|
-
id: 'generate',
|
|
2155
|
-
label: `Generate ✨ (${seq.placeholder.kind || 'veo'})`,
|
|
2156
|
-
onSelect: () => onGeneratePlaceholder(refFor(seq, i)),
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
if (onClipVerb && seq.mediaSrc) {
|
|
2160
|
-
if (seq.series) {
|
|
2161
|
-
primary.push({
|
|
2162
|
-
id: 'to-overlay',
|
|
2163
|
-
label: 'Move to overlay layer',
|
|
2164
|
-
onSelect: () => onClipVerb(refFor(seq, i), 'to-overlay', {}),
|
|
2165
|
-
});
|
|
2166
|
-
} else {
|
|
2167
|
-
primary.push({
|
|
2168
|
-
id: 'to-storyline',
|
|
2169
|
-
label: 'Move to storyline',
|
|
2170
|
-
onSelect: () => onClipVerb(refFor(seq, i), 'to-storyline', {}),
|
|
2171
|
-
});
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
if (onClipVerb) {
|
|
2175
|
-
primary.push({
|
|
2176
|
-
id: 'adjust',
|
|
2177
|
-
label: 'Adjust… (Speed · Audio · Crop · Grade)',
|
|
2178
|
-
onSelect: () => {
|
|
2179
|
-
onSelect?.(seq.stableId ?? null);
|
|
2180
|
-
setInspector({ mode: 'clip', index: i, x: ctxMenu.x - 120, y: Math.max(60, ctxMenu.y - 320) });
|
|
2181
|
-
},
|
|
2182
|
-
});
|
|
2183
|
-
if (seq.mediaProps) {
|
|
2184
|
-
primary.push({
|
|
2185
|
-
id: 'mute',
|
|
2186
|
-
label: seq.mediaProps.muted ? 'Unmute clip' : 'Mute clip',
|
|
2187
|
-
onSelect: () => onClipVerb(refFor(seq, i), 'audio', { muted: !seq.mediaProps.muted }),
|
|
2188
|
-
});
|
|
2189
|
-
if (rowKind(seq) === 'video' && seq.mediaSrc) {
|
|
2190
|
-
primary.push({
|
|
2191
|
-
id: 'detach-audio',
|
|
2192
|
-
label: 'Detach audio',
|
|
2193
|
-
onSelect: () => onClipVerb(refFor(seq, i), 'detach-audio', {}),
|
|
2194
|
-
});
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
}
|
|
2198
|
-
if (onReplace && seq.replaceable && !(Array.isArray(seq.layers) && seq.layers.length >= 2)) {
|
|
2199
|
-
primary.push({ id: 'replace', label: `Replace ${rowKind(seq)}…`, onSelect: () => onReplace(refFor(seq, i)) });
|
|
2200
|
-
}
|
|
2201
|
-
{
|
|
2202
|
-
// Vertical z-order (overlay clips only) — mirrors the V-chip drag.
|
|
2203
|
-
const zLadder = overlay.filter((o) => !o.seq.loose);
|
|
2204
|
-
const docIdx = zLadder.findIndex((o) => o.i === i);
|
|
2205
|
-
if (onClipVerb && docIdx >= 0) {
|
|
2206
|
-
primary.push({
|
|
2207
|
-
id: 'layer-up',
|
|
2208
|
-
label: 'Move layer up',
|
|
2209
|
-
disabled: docIdx >= zLadder.length - 1,
|
|
2210
|
-
onSelect: () => onClipVerb(refFor(seq, i), 'layer-order', { toIndex: docIdx + 1 }),
|
|
2211
|
-
});
|
|
2212
|
-
primary.push({
|
|
2213
|
-
id: 'layer-down',
|
|
2214
|
-
label: 'Move layer down',
|
|
2215
|
-
disabled: docIdx <= 0,
|
|
2216
|
-
onSelect: () => onClipVerb(refFor(seq, i), 'layer-order', { toIndex: docIdx - 1 }),
|
|
2217
|
-
});
|
|
2218
|
-
}
|
|
2219
|
-
}
|
|
2220
|
-
if (onReorder) {
|
|
2221
|
-
primary.push({
|
|
2222
|
-
id: 'earlier',
|
|
2223
|
-
label: seq.series ? 'Move earlier' : 'Bring forward',
|
|
2224
|
-
disabled: seq.series ? i <= 0 : i >= sequences.length - 1,
|
|
2225
|
-
onSelect: () => onReorder(refFor(seq, i), seq.series ? 'backward' : 'forward'),
|
|
2226
|
-
});
|
|
2227
|
-
primary.push({
|
|
2228
|
-
id: 'later',
|
|
2229
|
-
label: seq.series ? 'Move later' : 'Send backward',
|
|
2230
|
-
disabled: seq.series ? i >= sequences.length - 1 : i <= 0,
|
|
2231
|
-
onSelect: () => onReorder(refFor(seq, i), seq.series ? 'forward' : 'backward'),
|
|
2232
|
-
});
|
|
2233
|
-
}
|
|
2234
|
-
sections = [primary];
|
|
2235
|
-
const tail = [];
|
|
2236
|
-
if (onToggleHide) {
|
|
2237
|
-
tail.push({
|
|
2238
|
-
id: 'hide',
|
|
2239
|
-
label: seq.hidden ? 'Show clip' : 'Hide clip',
|
|
2240
|
-
onSelect: () => onToggleHide(refFor(seq, i)),
|
|
2241
|
-
});
|
|
2242
|
-
}
|
|
2243
|
-
if (onRemove) {
|
|
2244
|
-
tail.push({ id: 'remove', label: 'Remove clip', destructive: true, onSelect: () => onRemove(refFor(seq, i)) });
|
|
2245
|
-
}
|
|
2246
|
-
if (tail.length) sections.push(tail);
|
|
2247
|
-
}
|
|
2248
|
-
return (
|
|
2249
|
-
<ContextMenuView
|
|
2250
|
-
target={{ kind: 'element', el: null, cdId: null, artboardId: null, clientX: ctxMenu.x, clientY: ctxMenu.y }}
|
|
2251
|
-
sections={sections}
|
|
2252
|
-
onClose={() => setCtxMenu(null)}
|
|
2253
|
-
/>
|
|
2254
|
-
);
|
|
2255
|
-
})(), document.body)
|
|
2256
|
-
: null}
|
|
2257
|
-
</aside>
|
|
2258
|
-
);
|
|
2259
|
-
}
|