@1agh/maude 2.0.8 → 2.1.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/README.md +2 -1
- package/apps/hub/src/project-transactions/kernel.mjs +13 -7
- package/apps/studio/access/closure.ts +86 -10
- package/apps/studio/access/filters.ts +18 -1
- package/apps/studio/access/request.ts +8 -0
- package/apps/studio/acp/design-write-verb.ts +12 -2
- package/apps/studio/acp/env.ts +7 -2
- package/apps/studio/acp/index.ts +15 -4
- package/apps/studio/acp/login-state.ts +22 -5
- package/apps/studio/acp/may-scope.ts +38 -1
- package/apps/studio/acp/plugin-bootstrap.ts +13 -1
- package/apps/studio/acp/probe.ts +11 -4
- package/apps/studio/actions/agents.ts +110 -28
- package/apps/studio/actions/canvas-keys.ts +4 -2
- package/apps/studio/actions/ctx.ts +3 -0
- package/apps/studio/actions/defs/annotation.ts +84 -2
- package/apps/studio/actions/defs/app.ts +28 -1
- package/apps/studio/actions/defs/edit.ts +13 -0
- package/apps/studio/actions/defs/export.ts +12 -0
- package/apps/studio/actions/defs/sync.ts +18 -0
- package/apps/studio/actions/defs/video.ts +9 -0
- package/apps/studio/actions/documents.ts +6 -1
- package/apps/studio/actions/keymap.gen.ts +147 -9
- package/apps/studio/actions/menu.ts +5 -1
- package/apps/studio/actions/types.ts +4 -2
- package/apps/studio/actions/verbs.ts +9 -0
- package/apps/studio/actions.manifest.json +300 -45
- package/apps/studio/actions.parity.json +19 -1
- package/apps/studio/ai/save-hold.ts +2 -1
- package/apps/studio/ai/write-claim-scope.ts +7 -1
- package/apps/studio/ai/write-claim.ts +154 -3
- package/apps/studio/annotations/ai-read.ts +42 -6
- package/apps/studio/annotations/ai-write.ts +145 -2
- package/apps/studio/annotations/board-ops.ts +34 -3
- package/apps/studio/annotations/checklist-ops.ts +374 -0
- package/apps/studio/annotations/elements/checkitem.model.ts +129 -0
- package/apps/studio/annotations/elements/sticky.model.ts +54 -2
- package/apps/studio/annotations/ops.ts +30 -0
- package/apps/studio/annotations/registry.ts +9 -1
- package/apps/studio/annotations/templates.ts +4 -2
- package/apps/studio/annotations/text-steps.ts +114 -10
- package/apps/studio/annotations/ui/checklist-wire.ts +129 -0
- package/apps/studio/annotations/ui/checklist.tsx +429 -0
- package/apps/studio/annotations/ui/element-node.tsx +48 -2
- package/apps/studio/annotations/ui/template-place.ts +11 -1
- package/apps/studio/annotations/v1-adapter.ts +22 -3
- package/apps/studio/annotations-context-toolbar.tsx +12 -0
- package/apps/studio/annotations-layer.tsx +442 -49
- package/apps/studio/annotations-model.ts +4 -2
- package/apps/studio/api.ts +148 -21
- package/apps/studio/artboard-live-gate.tsx +54 -17
- package/apps/studio/artboard-still-persist.ts +166 -0
- package/apps/studio/artboard-still-raster.ts +6 -2
- package/apps/studio/artboard-still.ts +390 -20
- package/apps/studio/asset-added.ts +154 -0
- package/apps/studio/asset-details.ts +46 -3
- package/apps/studio/asset-origins.ts +5 -3
- package/apps/studio/asset-trash.ts +6 -1
- package/apps/studio/bin/_agent-browser-safe.mjs +3 -4
- package/apps/studio/bin/_annotate-post.mjs +14 -5
- package/apps/studio/bin/_audio-search.mjs +8 -2
- package/apps/studio/bin/_curl-local.mjs +7 -4
- package/apps/studio/bin/_desktop-locate.sh +145 -0
- package/apps/studio/bin/_ds-check-live.mjs +2 -1
- package/apps/studio/bin/_exports.mjs +38 -2
- package/apps/studio/bin/_history.mjs +79 -8
- package/apps/studio/bin/_import-asset.mjs +14 -9
- package/apps/studio/bin/_import-figma.mjs +510 -98
- package/apps/studio/bin/_index-cli.mjs +10 -21
- package/apps/studio/bin/_ingest-footage.mjs +24 -6
- package/apps/studio/bin/_media-probe.mjs +232 -0
- package/apps/studio/bin/_perf-probe-open.mjs +6 -0
- package/apps/studio/bin/_perf-probe-safari.mjs +6 -0
- package/apps/studio/bin/_perf-probe-studio.mjs +6 -1
- package/apps/studio/bin/_perf-probe.mjs +8 -3
- package/apps/studio/bin/_perf-sweep-shared.mjs +789 -0
- package/apps/studio/bin/_perf-sweep.mjs +240 -0
- package/apps/studio/bin/_record-shot.sh +33 -8
- package/apps/studio/bin/_screenshot-playwright.mjs +45 -2
- package/apps/studio/bin/_studio-verb.mjs +8 -3
- package/apps/studio/bin/_thumb-route.mjs +21 -0
- package/apps/studio/bin/_thumbs-playwright.mjs +83 -1
- package/apps/studio/bin/_transcribe.mjs +22 -6
- package/apps/studio/bin/_unsynced-refs.mjs +22 -0
- package/apps/studio/bin/_url-guard.mjs +120 -5
- package/apps/studio/bin/_url-guard.sh +29 -7
- package/apps/studio/bin/_video-limits.mjs +104 -0
- package/apps/studio/bin/_video-playwright.mjs +119 -19
- package/apps/studio/bin/_video-proxy.mjs +130 -0
- package/apps/studio/bin/_write-claim.mjs +38 -16
- package/apps/studio/bin/annotate.mjs +12 -2
- package/apps/studio/bin/canvas-rects.sh +19 -4
- package/apps/studio/bin/chat-open.sh +7 -1
- package/apps/studio/bin/draw-proof.sh +6 -2
- package/apps/studio/bin/generate.sh +32 -10
- package/apps/studio/bin/handoff.sh +2 -2
- package/apps/studio/bin/perf.sh +96 -15
- package/apps/studio/bin/photo-adjust.sh +6 -3
- package/apps/studio/bin/photo-bg-remove.sh +2 -2
- package/apps/studio/bin/prep.sh +21 -4
- package/apps/studio/bin/read-annotations.mjs +3 -0
- package/apps/studio/bin/runtime-health.sh +27 -1
- package/apps/studio/bin/screenshot.sh +152 -12
- package/apps/studio/bin/server-up.sh +64 -6
- package/apps/studio/bin/smoke.sh +43 -8
- package/apps/studio/bin/to-lottie.sh +3 -2
- package/apps/studio/bin/video-proxy.sh +27 -0
- package/apps/studio/bin/visual-sanity.sh +3 -1
- package/apps/studio/bridge/dgn-protocol.ts +157 -1
- package/apps/studio/bridge/mode-shows.ts +8 -6
- package/apps/studio/bridge/still-webp.ts +233 -0
- package/apps/studio/build.ts +18 -0
- package/apps/studio/canvas-build.ts +93 -11
- package/apps/studio/canvas-comment-mount.tsx +53 -8
- package/apps/studio/canvas-edit.ts +34 -1
- package/apps/studio/canvas-lib-module.ts +210 -0
- package/apps/studio/canvas-lib.tsx +3 -12
- package/apps/studio/canvas-pipeline.ts +111 -5
- package/apps/studio/canvas-shell.tsx +8 -11
- package/apps/studio/canvas-theme-pill.tsx +5 -3
- package/apps/studio/check/index.ts +12 -5
- package/apps/studio/check/video.ts +18 -2
- package/apps/studio/client/app.jsx +65 -7
- package/apps/studio/client/clipboard-relay.ts +193 -16
- package/apps/studio/client/comments-overlay.css +18 -0
- package/apps/studio/client/export-center.jsx +30 -0
- package/apps/studio/client/generate-dialog.jsx +49 -4
- package/apps/studio/client/github.js +7 -0
- package/apps/studio/client/home/HomeAccountsRow.jsx +221 -0
- package/apps/studio/client/home/HomeConnection.jsx +111 -0
- package/apps/studio/client/home/home-accounts-model.js +110 -1
- package/apps/studio/client/home/home-api.js +9 -2
- package/apps/studio/client/home/home-app.jsx +126 -13
- package/apps/studio/client/home/home-model.js +69 -1
- package/apps/studio/client/home/home-where-model.js +105 -0
- package/apps/studio/client/home/home.css +239 -1
- package/apps/studio/client/hooks/use-canvas-bridge.jsx +173 -98
- package/apps/studio/client/hooks/use-palette-and-panels.jsx +5 -1
- package/apps/studio/client/hooks/use-tabs.jsx +11 -4
- package/apps/studio/client/panels/DiffView.jsx +7 -1
- package/apps/studio/client/panels/TeamProjects.jsx +137 -134
- package/apps/studio/client/panels/chat-context.js +2 -0
- package/apps/studio/client/panels/slash-commands.gen.js +13 -13
- package/apps/studio/client/selection-scope.js +16 -9
- package/apps/studio/client/share-link.js +12 -0
- package/apps/studio/client/shell/viewport.jsx +11 -1
- package/apps/studio/client/shell-events.js +8 -0
- package/apps/studio/client/styles/3-kit-maude-v2.css +16 -0
- package/apps/studio/client/styles/_index.css +4 -0
- package/apps/studio/client/v2/ai/Feed.jsx +1 -1
- package/apps/studio/client/v2/ai/OfferCard.jsx +34 -0
- package/apps/studio/client/v2/ai/activity-line.js +54 -1
- package/apps/studio/client/v2/ai/ai-offer.js +21 -1
- package/apps/studio/client/v2/ai/run-model.js +3 -1
- package/apps/studio/client/v2/annotations/vote-store.js +28 -4
- package/apps/studio/client/v2/assets/asset-drop-session.js +37 -2
- package/apps/studio/client/v2/assets/canvas-drop-catcher.jsx +7 -5
- package/apps/studio/client/v2/assets/details-model.js +1 -1
- package/apps/studio/client/v2/assets/details.jsx +5 -0
- package/apps/studio/client/v2/assets/tile-drag.js +11 -7
- package/apps/studio/client/v2/comments/comments-panel.jsx +22 -3
- package/apps/studio/client/v2/create/duplicate-done.js +6 -2
- package/apps/studio/client/v2/diagnostics/diagnostics-host.jsx +1 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-model.js +32 -2
- package/apps/studio/client/v2/diagnostics/diagnostics-sheet.jsx +35 -8
- package/apps/studio/client/v2/diagnostics/diagnostics.css +34 -0
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +113 -3
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +343 -6
- package/apps/studio/client/v2/diagnostics/sync-details/unsynced-refs.js +55 -0
- package/apps/studio/client/v2/ds/review.css +1 -1
- package/apps/studio/client/v2/export/exports-model.js +7 -0
- package/apps/studio/client/v2/export/exports-panel.jsx +1 -0
- package/apps/studio/client/v2/export/job-row.jsx +32 -2
- package/apps/studio/client/v2/handoff/ready-card.jsx +1 -1
- package/apps/studio/client/v2/history/compare-view.jsx +1 -0
- package/apps/studio/client/v2/inspector/css-write.js +6 -1
- package/apps/studio/client/v2/inspector/frame.jsx +28 -4
- package/apps/studio/client/v2/inspector/kinds/clip-model.js +51 -0
- package/apps/studio/client/v2/inspector/kinds/clip.jsx +75 -2
- package/apps/studio/client/v2/inspector/model.js +21 -0
- package/apps/studio/client/v2/inspector/sections/fill.jsx +12 -3
- package/apps/studio/client/v2/inspector/sections/recent-colours.js +8 -5
- package/apps/studio/client/v2/inspector/view-mode.jsx +11 -1
- package/apps/studio/client/v2/link-server/LinkServerDialog.jsx +492 -0
- package/apps/studio/client/v2/link-server/LinkServerHost.jsx +42 -0
- package/apps/studio/client/v2/link-server/link-server-api.js +142 -0
- package/apps/studio/client/v2/link-server/link-server-model.js +438 -0
- package/apps/studio/client/v2/link-server/link-server.css +109 -0
- package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +31 -86
- package/apps/studio/client/v2/onboarding/onboarding-model.js +1 -18
- package/apps/studio/client/v2/preview/link-follow.js +4 -2
- package/apps/studio/client/v2/preview/preview-chrome-host.jsx +16 -6
- package/apps/studio/client/v2/search/help-model.js +2 -0
- package/apps/studio/client/v2/search/search-keywords.js +3 -2
- package/apps/studio/client/v2/settings/account.jsx +4 -2
- package/apps/studio/client/v2/settings/advanced-section.jsx +344 -137
- package/apps/studio/client/v2/settings/connection-row.jsx +3 -59
- package/apps/studio/client/v2/settings/connections-section.jsx +118 -425
- package/apps/studio/client/v2/settings/general-section.jsx +155 -24
- package/apps/studio/client/v2/settings/project-sync-settings.jsx +4 -3
- package/apps/studio/client/v2/settings/reset-section.jsx +14 -3
- package/apps/studio/client/v2/settings/settings-card.jsx +142 -0
- package/apps/studio/client/v2/settings/settings-cards.js +220 -0
- package/apps/studio/client/v2/settings/settings-handlers.js +7 -6
- package/apps/studio/client/v2/settings/settings-model.js +100 -31
- package/apps/studio/client/v2/settings/settings-sheet.jsx +25 -6
- package/apps/studio/client/v2/settings/settings.css +374 -64
- package/apps/studio/client/v2/settings/this-project-card.jsx +730 -0
- package/apps/studio/client/v2/settings/this-project-model.js +172 -0
- package/apps/studio/client/v2/settings/use-connections.js +3 -2
- package/apps/studio/client/v2/settings/use-open-card.js +37 -0
- package/apps/studio/client/v2/share/share-sheet.jsx +28 -11
- package/apps/studio/client/v2/shell/api-session-boot.js +6 -0
- package/apps/studio/client/v2/shell/api-session.js +126 -0
- package/apps/studio/client/v2/shell/connection-state.js +197 -0
- package/apps/studio/client/v2/shell/floating-panels.css +31 -1
- package/apps/studio/client/v2/shell/image-pick.js +61 -8
- package/apps/studio/client/v2/shell/menu-aim.js +43 -0
- package/apps/studio/client/v2/shell/menu-runner.js +25 -7
- package/apps/studio/client/v2/shell/occlusion-insets.js +18 -1
- package/apps/studio/client/v2/shell/project-account-bus.js +36 -0
- package/apps/studio/client/v2/shell/project-account-card.jsx +357 -148
- package/apps/studio/client/v2/shell/project-account-model.js +272 -149
- package/apps/studio/client/v2/shell/project-account-toast.js +66 -0
- package/apps/studio/client/v2/shell/project-account.css +237 -0
- package/apps/studio/client/v2/shell/project-pill.jsx +52 -6
- package/apps/studio/client/v2/shell/share-cluster-host.jsx +166 -83
- package/apps/studio/client/v2/shell/shell-parity.js +3 -2
- package/apps/studio/client/v2/shell/shell-parity.json +71 -36
- package/apps/studio/client/v2/shell/still-bridge.js +194 -0
- package/apps/studio/client/v2/shell/still-store.js +319 -0
- package/apps/studio/client/v2/shell/use-account.js +2 -0
- package/apps/studio/client/v2/shell/use-tool-panels.js +2 -1
- package/apps/studio/client/v2/signin/use-signin.js +1 -1
- package/apps/studio/client/v2/timeline/Timeline.jsx +15 -0
- package/apps/studio/client/v2/timeline/frame-handle-model.js +142 -0
- package/apps/studio/client/v2/timeline/frame-handle.jsx +151 -0
- package/apps/studio/clip-ops.ts +126 -8
- package/apps/studio/cloud/endpoints.ts +29 -4
- package/apps/studio/collab/ai-activity.ts +10 -8
- package/apps/studio/collab/awareness-bridge.ts +34 -9
- package/apps/studio/collab/index.ts +3 -0
- package/apps/studio/collab/registry.ts +41 -10
- package/apps/studio/comment-reattach.ts +149 -0
- package/apps/studio/comments/mine-stamp.ts +15 -7
- package/apps/studio/comments/ops.ts +52 -8
- package/apps/studio/comments-overlay.tsx +146 -9
- package/apps/studio/dist/client.bundle.js +892 -885
- package/apps/studio/dist/comment-mount.js +2 -2
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/dom-selection.ts +87 -18
- package/apps/studio/ds/board/directions.css +8 -0
- package/apps/studio/ds/board/outline.tsx +16 -0
- package/apps/studio/ds/canvas-check.ts +6 -0
- package/apps/studio/edit-ops/clip/reframe.ts +19 -3
- package/apps/studio/edit-ops/clip-carry.ts +602 -0
- package/apps/studio/edit-ops/clipboard.ts +318 -23
- package/apps/studio/edit-ops/dispatch.ts +20 -2
- package/apps/studio/edit-ops/scope-names.ts +249 -40
- package/apps/studio/edit-ops/slot-defaults.ts +3 -0
- package/apps/studio/edit-ops/types.ts +6 -0
- package/apps/studio/editing/align-bar.tsx +33 -9
- package/apps/studio/editing/artboard-actions.ts +5 -0
- package/apps/studio/editing/artboard-menu.tsx +6 -2
- package/apps/studio/editing/click-to-type.ts +1 -1
- package/apps/studio/editing/clip-words.ts +48 -0
- package/apps/studio/editing/clipboard.ts +21 -6
- package/apps/studio/editing/declared-background.ts +25 -0
- package/apps/studio/editing/index.tsx +3 -0
- package/apps/studio/editing/object-keys.ts +4 -4
- package/apps/studio/editing/object-menu.tsx +13 -3
- package/apps/studio/editing/pen/points.tsx +61 -0
- package/apps/studio/editing/text-in-place.tsx +11 -0
- package/apps/studio/editing/video-frame-handle.tsx +425 -0
- package/apps/studio/exporters/capture-prepass.ts +374 -0
- package/apps/studio/exporters/degraded.ts +148 -0
- package/apps/studio/exporters/hub-render-door.ts +28 -2
- package/apps/studio/exporters/index.ts +3 -1
- package/apps/studio/exporters/job-budget.ts +93 -0
- package/apps/studio/exporters/jobs.ts +215 -28
- package/apps/studio/exporters/parity-check.ts +254 -0
- package/apps/studio/exporters/remote.ts +209 -15
- package/apps/studio/exporters/svg-inline.ts +87 -0
- package/apps/studio/exporters/video-render-lib.ts +88 -26
- package/apps/studio/exporters/video.ts +29 -6
- package/apps/studio/figma/assets.ts +58 -43
- package/apps/studio/figma/codegen-fonts.ts +100 -0
- package/apps/studio/figma/fig-decode.ts +390 -25
- package/apps/studio/figma/fig-kiwi.ts +18 -4
- package/apps/studio/figma/fig-vector.ts +59 -3
- package/apps/studio/figma/sanitize.ts +2 -0
- package/apps/studio/figma/style-map.ts +293 -48
- package/apps/studio/figma/to-artboard.ts +455 -69
- package/apps/studio/figma/to-strokes.ts +44 -11
- package/apps/studio/figma/types.ts +13 -0
- package/apps/studio/footage/schema.ts +3 -3
- package/apps/studio/generation/adapters/elevenlabs.ts +7 -1
- package/apps/studio/generation/adapters/groq.ts +8 -1
- package/apps/studio/generation/spend.ts +312 -0
- package/apps/studio/generation/types.ts +12 -0
- package/apps/studio/handoff/run.ts +1 -1
- package/apps/studio/handoff/targets.ts +2 -2
- package/apps/studio/handoff/write-scopes.ts +1 -1
- package/apps/studio/history/describe-annotations.ts +4 -0
- package/apps/studio/home/accounts.ts +30 -11
- package/apps/studio/home/cloud.ts +6 -1
- package/apps/studio/home/create-local.ts +32 -3
- package/apps/studio/home/hub-health.ts +76 -0
- package/apps/studio/home/routes.ts +15 -4
- package/apps/studio/http.ts +438 -86
- package/apps/studio/imported-module-ids.ts +91 -0
- package/apps/studio/inspect.ts +2 -0
- package/apps/studio/migrate/hub.ts +8 -1
- package/apps/studio/notifications.tsx +47 -5
- package/apps/studio/paths.ts +10 -1
- package/apps/studio/port.ts +3 -2
- package/apps/studio/preview/preview-camera.tsx +15 -382
- package/apps/studio/readiness.ts +10 -1
- package/apps/studio/release-build.ts +51 -0
- package/apps/studio/routes/agent.ts +188 -9
- package/apps/studio/routes/ai.ts +43 -11
- package/apps/studio/routes/annotations.ts +27 -1
- package/apps/studio/routes/assets.ts +18 -1
- package/apps/studio/routes/canvas-origin.ts +12 -9
- package/apps/studio/routes/cloud-move.ts +15 -0
- package/apps/studio/routes/edit.ts +3 -0
- package/apps/studio/routes/export.ts +51 -0
- package/apps/studio/routes/generate.ts +42 -12
- package/apps/studio/routes/hub-link-folder.ts +334 -0
- package/apps/studio/routes/hub-signin.ts +78 -1
- package/apps/studio/routes/index.ts +9 -1
- package/apps/studio/routes/shell.ts +217 -5
- package/apps/studio/routes/sync.ts +136 -8
- package/apps/studio/routes/votes.ts +2 -1
- package/apps/studio/schema/annotations.v2.schema.json +143 -1
- package/apps/studio/schema/beats.v1.schema.json +1 -1
- package/apps/studio/schema/edl.v1.schema.json +1 -1
- package/apps/studio/schema/formats.ts +3 -3
- package/apps/studio/schema/transcript.v1.schema.json +1 -1
- package/apps/studio/server.ts +142 -43
- package/apps/studio/shell/api-key.ts +503 -0
- package/apps/studio/shell/attest.ts +59 -0
- package/apps/studio/shell/capture-url.ts +20 -0
- package/apps/studio/shell/cli-yield.ts +276 -0
- package/apps/studio/shell/clip-transfer.ts +302 -0
- package/apps/studio/shell/key-file.ts +108 -0
- package/apps/studio/shell/server-json.ts +75 -0
- package/apps/studio/shell/worktree.ts +19 -0
- package/apps/studio/spoof-chars.ts +9 -0
- package/apps/studio/studio-page-host.ts +1 -1
- package/apps/studio/sync/accepted-cold-start.ts +144 -8
- package/apps/studio/sync/accepted-link.ts +76 -29
- package/apps/studio/sync/action-stage.ts +575 -44
- package/apps/studio/sync/adopt-held.ts +85 -0
- package/apps/studio/sync/ctl-heal.ts +58 -0
- package/apps/studio/sync/file-ledger.ts +38 -4
- package/apps/studio/sync/file-membership.ts +16 -1
- package/apps/studio/sync/file-plane.ts +289 -22
- package/apps/studio/sync/held-deletes.ts +86 -5
- package/apps/studio/sync/hub-link.ts +8 -0
- package/apps/studio/sync/index.ts +196 -12
- package/apps/studio/sync/journal-client.ts +50 -4
- package/apps/studio/sync/link-consent.ts +22 -75
- package/apps/studio/sync/link-survey.ts +252 -0
- package/apps/studio/sync/local-kernel.ts +296 -8
- package/apps/studio/sync/projection.ts +22 -3
- package/apps/studio/sync/seed-progress.ts +12 -0
- package/apps/studio/sync/source-recovery.ts +59 -3
- package/apps/studio/sync/status.ts +19 -2
- package/apps/studio/sync/unsynced-refs.ts +397 -0
- package/apps/studio/sync/writer-registry.ts +20 -0
- package/apps/studio/thumbs/service.ts +4 -1
- package/apps/studio/tool-palette.tsx +23 -0
- package/apps/studio/ui-prefs.ts +40 -0
- package/apps/studio/use-agent-presence.tsx +2 -2
- package/apps/studio/use-canvas-keys.ts +6 -1
- package/apps/studio/video/format-ids.ts +2 -2
- package/apps/studio/video/inject.ts +31 -0
- package/apps/studio/video/media-risk.ts +58 -0
- package/apps/studio/video/object-fit.ts +137 -0
- package/apps/studio/video/provider-transcript.ts +141 -0
- package/apps/studio/whats-new.json +137 -0
- package/apps/studio/workspace-mode.ts +1 -0
- package/apps/studio/ws.ts +5 -0
- package/cli/commands/design.mjs +119 -8
- package/cli/lib/bash-guard.mjs +366 -6
- package/cli/lib/confine-read.mjs +1 -0
- package/cli/lib/design-help.gen.mjs +3 -2
- package/cli/lib/design-hook.mjs +387 -81
- package/cli/lib/design-link.mjs +16 -1
- package/cli/lib/design-open.mjs +49 -3
- package/cli/lib/desktop-locate.mjs +770 -0
- package/cli/lib/handoff.mjs +1 -1
- package/cli/lib/hook-state.mjs +291 -0
- package/cli/lib/pkg-root.mjs +65 -13
- package/cli/lib/studio-locate.mjs +59 -16
- package/package.json +15 -8
- package/plugins/design/templates/_shell.html +13 -0
- package/apps/studio/client/v2/onboarding/HubSheet.jsx +0 -212
- package/apps/studio/client/v2/shell/account-card-model.js +0 -114
- package/apps/studio/client/v2/shell/account-card.jsx +0 -189
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// client/v2/diagnostics/sync-details/unsynced-refs.js — #158: the files a linked canvas uses that will
|
|
2
|
+
// not reach the workspace, as Sync details reads them.
|
|
3
|
+
//
|
|
4
|
+
// `GET /_api/sync/unsynced-refs` answers { linked, syncFiles, canvases, refs[] }; each ref carries the
|
|
5
|
+
// canvas, the file, the reason code and two server-written sentences (`detail`: why, `fix`: the way
|
|
6
|
+
// out). This module only fetches and groups — the words are the server's, so the panel, the terminal
|
|
7
|
+
// (`maude design status`) and the smoke report cannot disagree.
|
|
8
|
+
|
|
9
|
+
import { cleanName } from './sync-details-model.js';
|
|
10
|
+
|
|
11
|
+
/** Canvases shown before "and N more" — an issue row each. */
|
|
12
|
+
export const UNSYNCED_SHOWN = 5;
|
|
13
|
+
|
|
14
|
+
/** GET /_api/sync/unsynced-refs → the refs, or [] (not linked, nothing out, unreachable, or unreadable). */
|
|
15
|
+
export async function readUnsyncedRefs(fetchImpl = globalThis.fetch) {
|
|
16
|
+
try {
|
|
17
|
+
const r = await fetchImpl('/_api/sync/unsynced-refs', { cache: 'no-store' });
|
|
18
|
+
if (!r.ok) return [];
|
|
19
|
+
const j = await r.json();
|
|
20
|
+
if (j?.linked !== true || !Array.isArray(j.refs)) return [];
|
|
21
|
+
return j.refs.filter(
|
|
22
|
+
(x) =>
|
|
23
|
+
x &&
|
|
24
|
+
typeof x.canvas === 'string' &&
|
|
25
|
+
typeof x.file === 'string' &&
|
|
26
|
+
typeof x.detail === 'string'
|
|
27
|
+
);
|
|
28
|
+
} catch {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** "ui/x/Pricing page.tsx" → "Pricing page". */
|
|
34
|
+
export function canvasTitle(rel) {
|
|
35
|
+
const name = cleanName(String(rel).split('/').pop() ?? rel, String(rel));
|
|
36
|
+
return name.replace(/\.tsx$/i, '');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** refs → [{ canvas, title, files: [{ file, detail, fix }] }] in the order the server sent them. */
|
|
40
|
+
export function groupByCanvas(refs) {
|
|
41
|
+
const by = new Map();
|
|
42
|
+
for (const r of refs) {
|
|
43
|
+
let g = by.get(r.canvas);
|
|
44
|
+
if (!g) {
|
|
45
|
+
g = { canvas: r.canvas, title: canvasTitle(r.canvas), files: [] };
|
|
46
|
+
by.set(r.canvas, g);
|
|
47
|
+
}
|
|
48
|
+
g.files.push({
|
|
49
|
+
file: cleanName(r.file),
|
|
50
|
+
detail: cleanName(r.detail, '', 240),
|
|
51
|
+
fix: cleanName(r.fix ?? '', '', 240),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return [...by.values()];
|
|
55
|
+
}
|
|
@@ -31,6 +31,8 @@ export const OPEN_FOLDER = 'Open the Downloads folder';
|
|
|
31
31
|
export const SHOW_IN_FINDER = 'Show in Finder';
|
|
32
32
|
export const DOWNLOAD = 'Download';
|
|
33
33
|
export const EXPORT_AGAIN = 'Export again';
|
|
34
|
+
/** #128 T3.7b — stop a running cloud export (registry `export.cancel`). */
|
|
35
|
+
export const CANCEL_EXPORT = 'Cancel';
|
|
34
36
|
export const MORE = 'More';
|
|
35
37
|
export const EXPORT_AGAIN_WITH = 'Export again with other settings…';
|
|
36
38
|
export const COPY_FILE_NAMES = 'Copy file names';
|
|
@@ -233,6 +235,9 @@ export function jobMeta(job, { now = Date.now(), eta = null } = {}) {
|
|
|
233
235
|
if (job?.status === 'queued' && typeof job?.waiting === 'string' && job.waiting)
|
|
234
236
|
return `${where} · ${job.waiting}`;
|
|
235
237
|
if (job?.status === 'queued') return `${where} · Queued`;
|
|
238
|
+
// #128 T3.7 — the render service holds this video behind the one it is rendering
|
|
239
|
+
if (job?.status === 'running' && typeof job?.waiting === 'string' && job.waiting)
|
|
240
|
+
return `${where} · ${job.waiting}`;
|
|
236
241
|
if (job?.status === 'running') return `${where} · ${progressWords(job, eta)}`;
|
|
237
242
|
if (job?.status === 'failed') return `${where} · Failed`;
|
|
238
243
|
const t = itemTally(job);
|
|
@@ -252,6 +257,8 @@ export function stateWord(job) {
|
|
|
252
257
|
if (job?.status === 'failed') return 'Failed';
|
|
253
258
|
if (job?.degraded?.audioDropped) return 'Ready · no audio';
|
|
254
259
|
if (job?.degraded?.fontsNotEmbedded?.length) return 'Ready · font warning';
|
|
260
|
+
if (job?.degraded?.captionsMissing?.length) return 'Ready · no captions';
|
|
261
|
+
if (job?.degraded?.unsupportedFeatures?.length) return 'Ready · check preview';
|
|
255
262
|
if (job?.degraded) return 'Ready · degraded';
|
|
256
263
|
if (isPartial(job)) return '';
|
|
257
264
|
return 'Ready';
|
|
@@ -62,6 +62,7 @@ export function ExportsPanel({
|
|
|
62
62
|
download: center.download,
|
|
63
63
|
again: center.again,
|
|
64
64
|
retry: center.retry,
|
|
65
|
+
cancel: center.cancel,
|
|
65
66
|
renderHere: center.renderHere,
|
|
66
67
|
// 09 ex-history — the row menu: the same settings in the sheet, the names on the clipboard, off the list
|
|
67
68
|
againWith: (job) => {
|
|
@@ -11,6 +11,7 @@ import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
|
11
11
|
import { summarizeNoticeText } from '../../../notifications.tsx';
|
|
12
12
|
import { StIcon } from '../../shell/icons.jsx';
|
|
13
13
|
import {
|
|
14
|
+
CANCEL_EXPORT,
|
|
14
15
|
DOWNLOAD,
|
|
15
16
|
EXPORT_AGAIN,
|
|
16
17
|
jobMenuItems,
|
|
@@ -80,11 +81,20 @@ export function DegradedNote({ degraded, compact = false }) {
|
|
|
80
81
|
// The font case names the fonts, because "reduced fidelity" is useless to someone about to send this
|
|
81
82
|
// to a printer — what they need is which faces came out unprintable (issue #116).
|
|
82
83
|
const fonts = degraded.fontsNotEmbedded ?? [];
|
|
84
|
+
// Captions over a clip with no transcript export empty — name the clip (#128 §7).
|
|
85
|
+
const noCaptions = degraded.captionsMissing ?? [];
|
|
86
|
+
// CSS the video exporter cannot draw, found before the render (#150 §4) — the file is complete,
|
|
87
|
+
// so this is the quietest headline and yields to every real loss above it.
|
|
88
|
+
const unsupported = degraded.unsupportedFeatures ?? [];
|
|
83
89
|
const headline = degraded.audioDropped
|
|
84
90
|
? 'Exported without audio.'
|
|
85
91
|
: fonts.length
|
|
86
92
|
? `Fonts a print shop will reject: ${fonts.join(', ')}.`
|
|
87
|
-
:
|
|
93
|
+
: noCaptions.length
|
|
94
|
+
? `No captions for ${noCaptions.join(', ')}: no transcript was saved.`
|
|
95
|
+
: unsupported.length
|
|
96
|
+
? `May not match the preview: ${unsupported.join('; ')}.`
|
|
97
|
+
: 'Exported with reduced fidelity.';
|
|
88
98
|
return (
|
|
89
99
|
<div className="ex-export-degraded" data-testid="export-degraded-note">
|
|
90
100
|
<span aria-hidden="true">!</span> {compact ? summarizeNoticeText(headline) : headline}
|
|
@@ -217,7 +227,7 @@ function StateWord({ job }) {
|
|
|
217
227
|
* @param selected the row to focus when the panel opens on it
|
|
218
228
|
* @param native a Mac app: Show in Finder; a browser tab downloads instead
|
|
219
229
|
* @param busy this job's bytes are being fetched or saved
|
|
220
|
-
* @param on { reveal(job), download(job), again(job), retry(job) }
|
|
230
|
+
* @param on { reveal(job), download(job), again(job), retry(job), cancel(job)? }
|
|
221
231
|
*/
|
|
222
232
|
export function JobRow({
|
|
223
233
|
job,
|
|
@@ -231,6 +241,7 @@ export function JobRow({
|
|
|
231
241
|
const ref = useRef(null);
|
|
232
242
|
const moreRef = useRef(null);
|
|
233
243
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
244
|
+
const [cancelling, setCancelling] = useState(false);
|
|
234
245
|
useEffect(() => {
|
|
235
246
|
if (!selected) return;
|
|
236
247
|
ref.current?.scrollIntoView?.({ block: 'nearest' });
|
|
@@ -297,6 +308,25 @@ export function JobRow({
|
|
|
297
308
|
>
|
|
298
309
|
{RENDER_HERE}
|
|
299
310
|
</button>
|
|
311
|
+
) : job.status === 'running' && job.runsOn === 'cloud' && on?.cancel ? (
|
|
312
|
+
// #128 T3.7b — a cloud video can be stopped: registry `export.cancel`
|
|
313
|
+
<button
|
|
314
|
+
type="button"
|
|
315
|
+
className="btn btn--sm ex-retry"
|
|
316
|
+
data-testid={`export-job-cancel-${job.id}`}
|
|
317
|
+
disabled={cancelling}
|
|
318
|
+
title={cancelling ? 'Stopping the export…' : undefined}
|
|
319
|
+
onClick={async () => {
|
|
320
|
+
setCancelling(true);
|
|
321
|
+
try {
|
|
322
|
+
await on.cancel(job);
|
|
323
|
+
} finally {
|
|
324
|
+
setCancelling(false);
|
|
325
|
+
}
|
|
326
|
+
}}
|
|
327
|
+
>
|
|
328
|
+
{CANCEL_EXPORT}
|
|
329
|
+
</button>
|
|
300
330
|
) : (
|
|
301
331
|
<StateWord job={job} />
|
|
302
332
|
)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// client/v2/handoff/ready-card.jsx — S8.10 (09 ex-handoff-ready): Ready means ONE thing to copy.
|
|
2
2
|
// The web result is one command; the app and the animation give code. Advanced keeps the file on
|
|
3
3
|
// this Mac, the Claude Code command and the terminal verb — today's /design:handoff, /design:to-rn and
|
|
4
|
-
// /design:to-lottie, unchanged. Mono lives only inside Advanced.
|
|
4
|
+
// /design-video:to-lottie, unchanged. Mono lives only inside Advanced.
|
|
5
5
|
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { ADVANCED_COUNT, readyBody, readyTitle } from './targets.js';
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
18
18
|
import { diffPatch } from '../../../edit-ops/words-css.ts';
|
|
19
|
+
import { declaredBackgroundOk } from '../../../editing/declared-background.ts';
|
|
19
20
|
import { trackRecordableWrite } from '../../inspector/css-knobs.jsx';
|
|
20
21
|
|
|
21
22
|
let chain = Promise.resolve();
|
|
@@ -47,10 +48,14 @@ const BG_PARTS = ['background', 'background-color', 'background-image'];
|
|
|
47
48
|
export function declaredOf(t) {
|
|
48
49
|
const out = { ...(t?.authored || {}) };
|
|
49
50
|
const sh = t?.declared?.background;
|
|
50
|
-
if (sh && !BG_PARTS.some((k) => k in out)) out.background = sh;
|
|
51
|
+
if (declaredBackgroundOk(sh) && !BG_PARTS.some((k) => k in out)) out.background = sh;
|
|
51
52
|
return out;
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
// #168 F4: the canvas is untrusted, so the shell re-checks the shorthand it reports (the same shape the canvas
|
|
56
|
+
// side applies): at most 512 characters, a colour, a `var()` or a gradient — never a `url()`.
|
|
57
|
+
export { declaredBackgroundOk };
|
|
58
|
+
|
|
54
59
|
const keyOf = (t) => `${t?.id ?? ''}#${t?.index ?? 0}`;
|
|
55
60
|
|
|
56
61
|
/**
|
|
@@ -34,9 +34,13 @@ import {
|
|
|
34
34
|
cssTextOf,
|
|
35
35
|
hasUsableId,
|
|
36
36
|
isLockedSelection,
|
|
37
|
+
moduleLine,
|
|
38
|
+
moduleOfSelection,
|
|
37
39
|
placementOf,
|
|
38
40
|
titleOf,
|
|
39
41
|
} from './model.js';
|
|
42
|
+
import { menuRunner } from '../shell/menu-runner.js';
|
|
43
|
+
import { projectRel } from '../shell/native-doors.js';
|
|
40
44
|
import { effectiveCss } from './sections/row.jsx';
|
|
41
45
|
import { sectionsFor } from './sections.js';
|
|
42
46
|
import { useFormatsVersion } from './formats-ui.js';
|
|
@@ -206,17 +210,36 @@ export function InspectorFrame({
|
|
|
206
210
|
// is the view-mode switch for it — every value readable, no field opens — with the lock line on screen
|
|
207
211
|
const locked = isLockedSelection(selected, layersTree);
|
|
208
212
|
const lockOff = locked && !readOnly && !hold.view;
|
|
213
|
+
// #151 T2.3b — an element of a component imported from another file is selectable and commentable but
|
|
214
|
+
// edit-read-only (the edit engine reads only the canvas file): the same switch as a lock, with its own line
|
|
215
|
+
// and the one door that helps — the file itself, opened through the registry's open-in-editor
|
|
216
|
+
const moduleFile = moduleOfSelection(selected);
|
|
217
|
+
const moduleOff = !!moduleFile && !locked && !readOnly && !hold.view;
|
|
218
|
+
const moduleWhy = moduleFile ? moduleLine(moduleFile) : '';
|
|
209
219
|
const line = lockOff
|
|
210
220
|
? { tone: 'lock', text: disabledReason('locked'), comment: false }
|
|
211
|
-
:
|
|
221
|
+
: moduleOff
|
|
222
|
+
? {
|
|
223
|
+
tone: 'module',
|
|
224
|
+
text: moduleWhy,
|
|
225
|
+
comment: false,
|
|
226
|
+
act: {
|
|
227
|
+
label: `Open ${moduleFile.split('/').pop()}`,
|
|
228
|
+
run: () =>
|
|
229
|
+
menuRunner.run('canvas.open-in-editor', {
|
|
230
|
+
path: projectRel(cfg?.designRel, moduleFile),
|
|
231
|
+
}),
|
|
232
|
+
},
|
|
233
|
+
}
|
|
234
|
+
: hold.line;
|
|
212
235
|
const ctx = {
|
|
213
236
|
canvasFile,
|
|
214
237
|
cfg,
|
|
215
|
-
editable: !!el.id && !readOnly && !locked,
|
|
238
|
+
editable: !!el.id && !readOnly && !locked && !moduleFile,
|
|
216
239
|
// the access alone, for a kind whose writes are not element edits (a ds direction's pick, direction-bar.jsx)
|
|
217
240
|
readOnly: !!readOnly,
|
|
218
241
|
// p8-sweep-errors — a locked object refuses every edit-op but the lock (409): an ask is off and says why
|
|
219
|
-
locked,
|
|
242
|
+
locked: locked || !!moduleFile,
|
|
220
243
|
// V2-8.5 c6 (14 ed-obj-enter): "In Services · Set by Services · 2 of 3"
|
|
221
244
|
placement: placementOf(layersTree, Array.isArray(selected) ? null : el),
|
|
222
245
|
// 14 ed-lay-free: the object's own name, for the sentence "Post places things freely … keep Datum 64 from …"
|
|
@@ -271,8 +294,9 @@ export function InspectorFrame({
|
|
|
271
294
|
object's fieldset says why on itself too, so each control under it does (p8-lock-reasons) */}
|
|
272
295
|
<fieldset
|
|
273
296
|
className="ed-insp-fields"
|
|
274
|
-
disabled={hold.view || readOnly || locked}
|
|
297
|
+
disabled={hold.view || readOnly || locked || !!moduleFile}
|
|
275
298
|
{...reasonProps(lockOff, 'locked')}
|
|
299
|
+
{...reasonProps(moduleOff, moduleWhy)}
|
|
276
300
|
>
|
|
277
301
|
{/* S2.17 — what only this kind has (an instance: Component · Content), above the ten sections */}
|
|
278
302
|
{blocksFor(kind.id, 'top').map(({ id, Body }) => (
|
|
@@ -188,3 +188,54 @@ export const gradeMeaningful = (g) =>
|
|
|
188
188
|
/** The crop wrapper's neutral value. */
|
|
189
189
|
export const NO_CROP = Object.freeze({ scale: 1, x: 0, y: 0 });
|
|
190
190
|
export const cropIsNeutral = (f) => !f || (f.scale === 1 && f.x === 0 && f.y === 0);
|
|
191
|
+
|
|
192
|
+
// ── #128 §5 (T3.6): how a clip really sits, and Zoom / Focus as numbers ──────────────────────────────────────
|
|
193
|
+
const VIDEO_TAGS = ['Video', 'OffthreadVideo', 'MaudeVideo'];
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* What the Framing select shows. A Reframe's `fit` wins; a clip with a Reframe and no fit is Fill. A bare `<Video>`
|
|
197
|
+
* (no Reframe) renders what its `objectFit` says — `cover` is Fill, and anything else, the default `contain` included,
|
|
198
|
+
* is Fit: the select used to say "All formats" for a clip that was letterboxed. A picture, or a clip whose media
|
|
199
|
+
* is not read (a wrapper component), keeps Fill as its default.
|
|
200
|
+
*/
|
|
201
|
+
export function framingOf(seq) {
|
|
202
|
+
if (seq?.fit) return framingValue(seq.fit);
|
|
203
|
+
if (seq?.reframe) return 'fill';
|
|
204
|
+
if (!VIDEO_TAGS.includes(seq?.mediaTag ?? '') || !seq?.mediaProps) return 'fill';
|
|
205
|
+
return seq.mediaProps.objectFit === 'cover' ? 'fill' : 'fit';
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export const ZOOM_MIN = 1;
|
|
209
|
+
export const ZOOM_MAX = 8;
|
|
210
|
+
const clampNum = (n, lo, hi) => Math.min(hi, Math.max(lo, n));
|
|
211
|
+
|
|
212
|
+
/** The clip's zoom (`<Reframe zoom>`); 1 when it has none. */
|
|
213
|
+
export const zoomOf = (seq) => seq?.reframe?.zoom ?? 1;
|
|
214
|
+
|
|
215
|
+
/** The `video.reframe` params for a zoom; 1 is the default and clears the prop. */
|
|
216
|
+
export function zoomParams(zoom) {
|
|
217
|
+
const z = Math.round(clampNum(Number(zoom) || 1, ZOOM_MIN, ZOOM_MAX) * 100) / 100;
|
|
218
|
+
return { zoom: z === 1 ? null : z };
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/** The shared ("All formats") focus point as whole percents of the picture; `animated` when it has several keys. */
|
|
222
|
+
export function focusOf(seq) {
|
|
223
|
+
const keys = seq?.reframe?.focus ?? [];
|
|
224
|
+
const k = keys[0];
|
|
225
|
+
return {
|
|
226
|
+
x: k ? Math.round(k[1] * 100) : 50,
|
|
227
|
+
y: k ? Math.round(k[2] * 100) : 50,
|
|
228
|
+
animated: keys.length > 1,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** The `video.reframe` params for moving one axis of the focus; the centre clears the framing. */
|
|
233
|
+
export function focusParams(seq, axis, percent) {
|
|
234
|
+
const cur = focusOf(seq);
|
|
235
|
+
const v = Math.round(clampNum(Number(percent) || 0, 0, 100));
|
|
236
|
+
const x = axis === 'x' ? v : cur.x;
|
|
237
|
+
const y = axis === 'y' ? v : cur.y;
|
|
238
|
+
if (x === 50 && y === 50) return { focus: null };
|
|
239
|
+
const t = seq?.reframe?.focus?.[0]?.[0] ?? 0;
|
|
240
|
+
return { focus: [[t, x / 100, y / 100]] };
|
|
241
|
+
}
|
|
@@ -18,6 +18,7 @@ import { AdvancedFold } from '../../fold/advanced-fold.jsx';
|
|
|
18
18
|
import { Quiet, Row } from '../sections/row.jsx';
|
|
19
19
|
import { FootageRows, footageAdvanced, useClipFootage } from '../../timeline/footage-rows.jsx';
|
|
20
20
|
import { otherTakesUi } from '../../timeline/other-takes.jsx';
|
|
21
|
+
import { frameHandleUi } from '../../timeline/frame-handle-model.js';
|
|
21
22
|
import { reframeUi } from '../../timeline/reframe-island.jsx';
|
|
22
23
|
import { registerKind, singleOf } from './index.js';
|
|
23
24
|
import { registerSlot } from '../slots.js';
|
|
@@ -27,7 +28,9 @@ import {
|
|
|
27
28
|
NO_CROP,
|
|
28
29
|
cropIsNeutral,
|
|
29
30
|
filterToGradeParams,
|
|
30
|
-
|
|
31
|
+
focusOf,
|
|
32
|
+
focusParams,
|
|
33
|
+
framingOf,
|
|
31
34
|
gradeMeaningful,
|
|
32
35
|
hasSound,
|
|
33
36
|
lengthWords,
|
|
@@ -35,6 +38,10 @@ import {
|
|
|
35
38
|
speedOptions,
|
|
36
39
|
srcInOut,
|
|
37
40
|
volumeOf,
|
|
41
|
+
ZOOM_MAX,
|
|
42
|
+
ZOOM_MIN,
|
|
43
|
+
zoomOf,
|
|
44
|
+
zoomParams,
|
|
38
45
|
} from './clip-model.js';
|
|
39
46
|
import { MotionGrid, StyleRows, TextRows } from './title-rows.jsx';
|
|
40
47
|
|
|
@@ -142,7 +149,7 @@ function FramingRow({ t, ctx }) {
|
|
|
142
149
|
<Row k="Framing" name="clip-framing">
|
|
143
150
|
<span className="insp-framing">
|
|
144
151
|
<Select
|
|
145
|
-
value={
|
|
152
|
+
value={framingOf(t.seq)}
|
|
146
153
|
options={FRAMING_OPTIONS}
|
|
147
154
|
ariaLabel="How the picture sits"
|
|
148
155
|
testId="insp-clip-framing"
|
|
@@ -162,6 +169,19 @@ function FramingRow({ t, ctx }) {
|
|
|
162
169
|
>
|
|
163
170
|
Re-frame…
|
|
164
171
|
</button>
|
|
172
|
+
{/* #128 §5 (T3.6b): drag the picture and its corners on the canvas itself; the same link leaves it */}
|
|
173
|
+
<button
|
|
174
|
+
type="button"
|
|
175
|
+
className="insp-quietlink"
|
|
176
|
+
data-testid="insp-clip-frame-handle"
|
|
177
|
+
onClick={() =>
|
|
178
|
+
typeof ctx?.onShellAction === 'function'
|
|
179
|
+
? ctx.onShellAction('video.frame-handle')
|
|
180
|
+
: frameHandleUi.toggle()
|
|
181
|
+
}
|
|
182
|
+
>
|
|
183
|
+
Move on canvas
|
|
184
|
+
</button>
|
|
165
185
|
{/* S7.15 (07 · ve-ai-adjust): the clip's other good moments, swapped in at the same length */}
|
|
166
186
|
{['Video', 'OffthreadVideo', 'MaudeVideo'].includes(t.seq.mediaTag ?? '') &&
|
|
167
187
|
t.seq.mediaSrc ? (
|
|
@@ -184,6 +204,58 @@ function FramingRow({ t, ctx }) {
|
|
|
184
204
|
);
|
|
185
205
|
}
|
|
186
206
|
|
|
207
|
+
/** #128 §5: Zoom and where the picture is centred — plain numbers over `video.reframe` ("All formats"). */
|
|
208
|
+
function ZoomFocusRows({ t }) {
|
|
209
|
+
const focus = focusOf(t.seq);
|
|
210
|
+
const axis = (k, label, name, id) => (
|
|
211
|
+
<Row k={label} name={name}>
|
|
212
|
+
{focus.animated ? (
|
|
213
|
+
<span className="k-mono" data-testid={id}>
|
|
214
|
+
{focus[k]}
|
|
215
|
+
</span>
|
|
216
|
+
) : (
|
|
217
|
+
<span data-testid={id}>
|
|
218
|
+
<NumberField
|
|
219
|
+
value={focus[k]}
|
|
220
|
+
min={0}
|
|
221
|
+
max={100}
|
|
222
|
+
step={1}
|
|
223
|
+
scrub
|
|
224
|
+
ariaLabel={`${label} in percent of the picture`}
|
|
225
|
+
onCommit={(v) => v !== focus[k] && t.onOp('reframe', focusParams(t.seq, k, v))}
|
|
226
|
+
/>
|
|
227
|
+
</span>
|
|
228
|
+
)}
|
|
229
|
+
</Row>
|
|
230
|
+
);
|
|
231
|
+
return (
|
|
232
|
+
<>
|
|
233
|
+
<Row k="Zoom" name="clip-zoom">
|
|
234
|
+
<span data-testid="insp-clip-zoom">
|
|
235
|
+
<NumberField
|
|
236
|
+
value={zoomOf(t.seq)}
|
|
237
|
+
min={ZOOM_MIN}
|
|
238
|
+
max={ZOOM_MAX}
|
|
239
|
+
step={0.05}
|
|
240
|
+
scrub
|
|
241
|
+
format={(n) => `${Math.round(n * 100) / 100}×`}
|
|
242
|
+
parse={(raw) => Number.parseFloat(String(raw).replace(',', '.'))}
|
|
243
|
+
ariaLabel="Zoom into the picture"
|
|
244
|
+
onCommit={(v) => v !== zoomOf(t.seq) && t.onOp('reframe', zoomParams(v))}
|
|
245
|
+
/>
|
|
246
|
+
</span>
|
|
247
|
+
</Row>
|
|
248
|
+
{axis('x', 'Focus X', 'clip-focus-x', 'insp-clip-focus-x')}
|
|
249
|
+
{axis('y', 'Focus Y', 'clip-focus-y', 'insp-clip-focus-y')}
|
|
250
|
+
{focus.animated ? (
|
|
251
|
+
<Quiet testid="insp-clip-focus-note">
|
|
252
|
+
The focus moves over time. Change it in Re-frame…
|
|
253
|
+
</Quiet>
|
|
254
|
+
) : null}
|
|
255
|
+
</>
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
187
259
|
function ClipRows({ el, ctx }) {
|
|
188
260
|
const t = el?.timeline;
|
|
189
261
|
if (!t) return null;
|
|
@@ -195,6 +267,7 @@ function ClipRows({ el, ctx }) {
|
|
|
195
267
|
<SpeedRow t={t} />
|
|
196
268
|
{hasSound(t.seq) ? <VolumeRow t={t} /> : null}
|
|
197
269
|
{visual(t.seq) ? <FramingRow t={t} ctx={ctx} /> : null}
|
|
270
|
+
{visual(t.seq) ? <ZoomFocusRows t={t} /> : null}
|
|
198
271
|
{ph ? <TextRows t={t} /> : null}
|
|
199
272
|
</div>
|
|
200
273
|
);
|
|
@@ -50,6 +50,27 @@ export function isLockedSelection(selection, layersTree) {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* #151 T2.3b — the file an element of the selection lives in when it is NOT the canvas's: a component the
|
|
55
|
+
* canvas imports from a sibling file. The build stamps `data-cd-module="<design-root-relative path>"` on
|
|
56
|
+
* every element of such a module (canvas-pipeline.ts); it is selectable and commentable but edit-read-only,
|
|
57
|
+
* because the edit engine reads only the canvas file. null = every element is the canvas's own.
|
|
58
|
+
*/
|
|
59
|
+
export function moduleOfSelection(selection) {
|
|
60
|
+
const list = Array.isArray(selection) ? selection : selection ? [selection] : [];
|
|
61
|
+
for (const el of list) {
|
|
62
|
+
if (!el || isArtboardSelection(el)) continue;
|
|
63
|
+
const file = el.attrs?.['data-cd-module'];
|
|
64
|
+
if (typeof file === 'string' && file) return file;
|
|
65
|
+
}
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** The inspector's line for such an element (CONTRACT §3–§4: what happened, then the one door). */
|
|
70
|
+
export function moduleLine(file) {
|
|
71
|
+
return `This part comes from ${file}, another file, so it can’t be edited here.`;
|
|
72
|
+
}
|
|
73
|
+
|
|
53
74
|
/** The name above the rows: the layer's name, else the element's own text, else its tag. */
|
|
54
75
|
export function titleOf(selection, layersTree) {
|
|
55
76
|
if (Array.isArray(selection) && selection.length > 1) {
|
|
@@ -13,7 +13,12 @@ import {
|
|
|
13
13
|
paintFromCss,
|
|
14
14
|
reduceMixed,
|
|
15
15
|
} from '../../../../edit-ops/words-paint.ts';
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
fillSlotFor,
|
|
18
|
+
NEUTRAL_MID_GREY,
|
|
19
|
+
slotCss,
|
|
20
|
+
slotPaint,
|
|
21
|
+
} from '../../../../edit-ops/slot-defaults.ts';
|
|
17
22
|
import { useCssWrite } from '../css-write.js';
|
|
18
23
|
import { BOXY_KINDS } from './size.jsx';
|
|
19
24
|
import { targetOf } from '../kinds/multi.jsx';
|
|
@@ -77,11 +82,15 @@ export function FillBody({ el, selection, kind, ctx }) {
|
|
|
77
82
|
|
|
78
83
|
// P6 T3 (IR-11, TD3): "+" starts from the slot's role token with a literal fallback — a shape's Fill is `--bg-3`,
|
|
79
84
|
// a box's Background `--bg-1`, a gradient runs to `--bg-0` — never `currentColor` (which painted in the panel's own
|
|
80
|
-
// grey and read as code). With no system, the last colour used in this project comes first.
|
|
85
|
+
// grey and read as code). With no system, the last colour used in this project comes first, else a neutral mid grey.
|
|
81
86
|
const slot = fillSlotFor(kind);
|
|
82
87
|
const recent = useRecentColours(ctx);
|
|
83
88
|
const startPaint = () =>
|
|
84
|
-
|
|
89
|
+
fam.hasSystem
|
|
90
|
+
? slotPaint(slot)
|
|
91
|
+
: recent[0]
|
|
92
|
+
? paintFromCss(recent[0])
|
|
93
|
+
: { css: NEUTRAL_MID_GREY }; // IR-11: no system, nothing in Recent — a neutral mid grey, not a role token
|
|
85
94
|
const base = fill ?? { color: null, layers: [] };
|
|
86
95
|
|
|
87
96
|
// r4 #4: the colour popover's Solid · Gradient · Image tabs say what the fill IS and write the whole fill. A drag is
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// client/v2/inspector/sections/recent-colours.js — P6 T2 (inspector-ux-rules IR-8): the colour picker's "Recent" row.
|
|
2
2
|
//
|
|
3
3
|
// The last 8 colours used in this project — tokens (`var(--accent)`) and raw colours alike — newest first. Per Mac, keyed
|
|
4
|
-
// by
|
|
4
|
+
// by the server's own root identity (#168 G3; the page sends only RECENT_HERE), in prefs.json `recentColours` (the V2-4.10 fold-store pattern: `POST /_api/ui-prefs`, merged per project by
|
|
5
5
|
// the server's `writeUiPrefs`), so no new runtime path and no DDR-115 list changes. The store reads the prefs once, on
|
|
6
6
|
// first use; a page that cannot reach the server keeps Recent for the page only.
|
|
7
7
|
|
|
@@ -25,10 +25,13 @@ export function pushRecent(list, css) {
|
|
|
25
25
|
return [t, ...rest].slice(0, RECENT_MAX);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
/** #168 G3: the one key the page uses — "this project". The server keys the list by its OWN root identity (ui-prefs.ts
|
|
29
|
+
* `scopeRecentColoursWrite` / `Read`, the same string as its `RECENT_HERE`), so the page never names the project. */
|
|
30
|
+
export const RECENT_HERE = 'here';
|
|
31
|
+
|
|
32
|
+
/** The prefs map key for this project: always RECENT_HERE (`ctx` is kept for the callers' shape). */
|
|
33
|
+
export function projectKeyOf(_ctx) {
|
|
34
|
+
return RECENT_HERE;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
/** A store of Recent lists by project. `persist(patch)` writes; `load()` resolves to the prefs object (or null). */
|
|
@@ -168,7 +168,7 @@ export function useHoldView({ canvasOrigin, rootRef }) {
|
|
|
168
168
|
return hold;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
/** The view-mode line (`tone` people / ai) + Comment for a person's hold. */
|
|
171
|
+
/** The view-mode line (`tone` people / ai / module) + Comment for a person's hold, or the one `act` a line offers. */
|
|
172
172
|
export function HoldLine({ line }) {
|
|
173
173
|
if (!line) return null;
|
|
174
174
|
return (
|
|
@@ -188,6 +188,16 @@ export function HoldLine({ line }) {
|
|
|
188
188
|
Comment
|
|
189
189
|
</button>
|
|
190
190
|
) : null}
|
|
191
|
+
{line.act ? (
|
|
192
|
+
<button
|
|
193
|
+
type="button"
|
|
194
|
+
className="ed-insp-line-act"
|
|
195
|
+
data-testid="inspector-module-action"
|
|
196
|
+
onClick={line.act.run}
|
|
197
|
+
>
|
|
198
|
+
{line.act.label}
|
|
199
|
+
</button>
|
|
200
|
+
) : null}
|
|
191
201
|
</p>
|
|
192
202
|
);
|
|
193
203
|
}
|