@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
|
@@ -5,7 +5,12 @@ import { SYSTEM_TAB, isModuleCanvasPath } from '../shell/constants.js';
|
|
|
5
5
|
import { acceptCanvasNotice } from '../../canvas-notice-message.ts';
|
|
6
6
|
import { acceptFromCanvas, C2S_ACTIVE, DGN_TABLE } from '../../bridge/dgn-protocol.ts';
|
|
7
7
|
import { layersSlot } from '../v2/inspector/layers-slot.jsx';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
notify,
|
|
10
|
+
notifyCanvasText,
|
|
11
|
+
notifyCanvasTriggered,
|
|
12
|
+
setCanvasPopoverOpen,
|
|
13
|
+
} from '../../notifications.tsx';
|
|
9
14
|
import { isNativeApp } from '../github.js';
|
|
10
15
|
import {
|
|
11
16
|
annotationScopeOf,
|
|
@@ -20,6 +25,7 @@ import { settleDuplicateAtWidth } from '../v2/create/duplicate-done.js';
|
|
|
20
25
|
import { menuRunner } from '../v2/shell/menu-runner.js';
|
|
21
26
|
import { announceCanvasPointer } from '../v2/shell/canvas-pointer.js';
|
|
22
27
|
import { panelLayout } from '../v2/shell/use-panel-layout.js';
|
|
28
|
+
import { handleStillBridge } from '../v2/shell/still-bridge.js';
|
|
23
29
|
|
|
24
30
|
// 01 cf-duplicate-done / 08 ak-web-widths: a copy made is told with the copy glyph, not a success tick
|
|
25
31
|
const DUPLICATE_TOAST = { kind: 'info', icon: 'duplicate' };
|
|
@@ -36,11 +42,14 @@ import {
|
|
|
36
42
|
trashArtboardBody,
|
|
37
43
|
} from '../edit-op-relay.ts';
|
|
38
44
|
import {
|
|
45
|
+
CLIP_CONFIRM_ARM_MS,
|
|
46
|
+
confirmedPasteBody,
|
|
39
47
|
frameClipResult,
|
|
40
48
|
noteClipResult,
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
noteFramePasteIntent,
|
|
50
|
+
shapeClipPaste,
|
|
43
51
|
} from '../clipboard-relay.ts';
|
|
52
|
+
import { clipWords } from '../../editing/clip-words.ts';
|
|
44
53
|
import { exportRegionOf } from '../export-region.ts';
|
|
45
54
|
import {
|
|
46
55
|
localSelectRecord,
|
|
@@ -177,6 +186,8 @@ export function useCanvasBridge({
|
|
|
177
186
|
const newArtboardSelect = useRef(null);
|
|
178
187
|
// biome-ignore lint/correctness/useExhaustiveDependencies: activePath is the trigger — another canvas, drop the ladder
|
|
179
188
|
useEffect(() => () => newArtboardSelect.current?.(), [activePath]);
|
|
189
|
+
// #170 — a popover belongs to the canvas that said it: switching tabs (or closing the last) puts the toasts back
|
|
190
|
+
useEffect(() => () => setCanvasPopoverOpen(false), [activePath]);
|
|
180
191
|
// S7.22 — the inspector's "Show on canvas" is the person's own view state (view.json, already stored); this tells the
|
|
181
192
|
// open canvas to redraw its safe zones now. Only that one boolean is forwarded, and only to the canvas it names.
|
|
182
193
|
useEffect(() => {
|
|
@@ -235,6 +246,22 @@ export function useCanvasBridge({
|
|
|
235
246
|
: null;
|
|
236
247
|
if (!activeWin || e.source !== activeWin) return;
|
|
237
248
|
}
|
|
249
|
+
// #168 F5 — the Light/Dark pill's path button (active frame only, checked above): the shell copies the path
|
|
250
|
+
// IT holds for the open tab and toasts the result; the message carries nothing
|
|
251
|
+
if (m.dgn === 'copy-canvas-path') {
|
|
252
|
+
menuRunner.run('canvas.copy-file-path');
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
// #170 (T2.4b) — a toolbar popover opened / closed in the active canvas (checked above): the toast stack steps
|
|
256
|
+
// out of the dock while one is open. Only the parsed boolean reaches the store.
|
|
257
|
+
if (m.dgn === 'toolbar-popover') {
|
|
258
|
+
const msg = acceptFromCanvas(e, {
|
|
259
|
+
canvasOrigin: expectedOrigin,
|
|
260
|
+
active: iframesRef.current.get(activePath)?.contentWindow,
|
|
261
|
+
});
|
|
262
|
+
if (msg) setCanvasPopoverOpen(msg.open);
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
238
265
|
// rc3 r4-12 — a press in the active canvas: the shell's open menus close on it (use-dismiss-outside.js)
|
|
239
266
|
if (m.dgn === 'canvas-pointerdown') {
|
|
240
267
|
announceCanvasPointer();
|
|
@@ -267,6 +294,19 @@ export function useCanvasBridge({
|
|
|
267
294
|
});
|
|
268
295
|
return;
|
|
269
296
|
}
|
|
297
|
+
// #212 §5 (T2.2) — the persisted overview stills (client/v2/shell/still-bridge.js). Already through the
|
|
298
|
+
// `active` gate above; the bridge also pins `file` to activePath, checks the frame's own src, and picks the key.
|
|
299
|
+
if (m.dgn === 'stills-want' || m.dgn === 'still-put') {
|
|
300
|
+
const onCanvas = !!activePath && activePath !== SYSTEM_TAB;
|
|
301
|
+
void handleStillBridge(e, {
|
|
302
|
+
canvasOrigin: expectedOrigin,
|
|
303
|
+
activePath: onCanvas ? activePath : null,
|
|
304
|
+
frame: onCanvas ? iframesRef.current.get(activePath) : null,
|
|
305
|
+
designRel: cfg?.designRel,
|
|
306
|
+
frameKey: cfg?.frameKey,
|
|
307
|
+
});
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
270
310
|
if (m.dgn === 'tool-cursor') {
|
|
271
311
|
// Phase 24 — show the active canvas tool's cursor across the WHOLE app
|
|
272
312
|
// shell (sidebar, top bar, everything) so the custom cursor is visible
|
|
@@ -507,104 +547,138 @@ export function useCanvasBridge({
|
|
|
507
547
|
};
|
|
508
548
|
// V2-clipboard-objects — the clipboard is the shell's (client/clipboard-relay.ts): a paste names the
|
|
509
549
|
// shell's handle, never the canvas's; a clip from ANOTHER canvas waits for a click on the shell's toast.
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
//
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
.
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
.
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
replyTo?.postMessage({ dgn: 'record-edit', payload }, expectedOrigin);
|
|
550
|
+
// (#122: a cloud tab holds no copy made in another project — its refusal says so, not "nothing to paste")
|
|
551
|
+
const onShaped = (shaped) => {
|
|
552
|
+
if (shaped.kind === 'reply') {
|
|
553
|
+
reply(shaped.result);
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
if (shaped.kind === 'confirm') {
|
|
557
|
+
reply(shaped.reply);
|
|
558
|
+
const askedFile = asked.file;
|
|
559
|
+
// V2-8.9 r2 C1 — asked by the canvas: one reused, rate-limited notice, below the shell's own
|
|
560
|
+
notifyCanvasTriggered({
|
|
561
|
+
id: 'canvas-clip-confirm',
|
|
562
|
+
title: shaped.line,
|
|
563
|
+
kind: 'success',
|
|
564
|
+
action: {
|
|
565
|
+
label: 'Paste',
|
|
566
|
+
// inert for a moment after it appears: a click the canvas lured lands on nothing
|
|
567
|
+
armAfterMs: CLIP_CONFIRM_ARM_MS,
|
|
568
|
+
onClick: () => {
|
|
569
|
+
// the canvas that asked is still open (the toast may be clicked later)
|
|
570
|
+
if (iframesRef.current.get(askedFile)?.contentWindow !== replyTo) return;
|
|
571
|
+
editApplyChainRef.current = editApplyChainRef.current
|
|
572
|
+
.catch(() => {})
|
|
573
|
+
// #122 (122-C) — another project's copy: Rust carries it now, after the click
|
|
574
|
+
.then(() => confirmedPasteBody(shaped))
|
|
575
|
+
.then((ready) => {
|
|
576
|
+
if (!ready.ok) {
|
|
577
|
+
replyTo?.postMessage(
|
|
578
|
+
{ dgn: 'op-toast', message: ready.message },
|
|
579
|
+
expectedOrigin
|
|
580
|
+
);
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
return fetch('/_api/edit-op', {
|
|
584
|
+
method: 'POST',
|
|
585
|
+
headers: { 'content-type': 'application/json' },
|
|
586
|
+
body: JSON.stringify(ready.body),
|
|
548
587
|
})
|
|
549
|
-
|
|
550
|
-
|
|
588
|
+
.then(readEditOpAnswer)
|
|
589
|
+
.then((r) => {
|
|
590
|
+
if (!r.ok) {
|
|
591
|
+
replyTo?.postMessage(
|
|
592
|
+
{ dgn: 'op-toast', message: r.message },
|
|
593
|
+
expectedOrigin
|
|
594
|
+
);
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
const payload = legacyRecordPayload(r, 'Paste');
|
|
598
|
+
if (payload)
|
|
599
|
+
replyTo?.postMessage({ dgn: 'record-edit', payload }, expectedOrigin);
|
|
600
|
+
// #122 — said where the paste landed: what came along ("· added 2 imports")
|
|
601
|
+
const said = clipWords(r);
|
|
602
|
+
if (said)
|
|
603
|
+
replyTo?.postMessage(
|
|
604
|
+
{ dgn: 'op-toast', message: said },
|
|
605
|
+
expectedOrigin
|
|
606
|
+
);
|
|
607
|
+
});
|
|
608
|
+
})
|
|
609
|
+
.catch(() => {});
|
|
610
|
+
},
|
|
551
611
|
},
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
body = follow.rewrite(body, builtAt);
|
|
565
|
-
})
|
|
566
|
-
.then(() =>
|
|
567
|
-
fetch('/_api/edit-op', {
|
|
568
|
-
method: 'POST',
|
|
569
|
-
headers: { 'content-type': 'application/json' },
|
|
570
|
-
body: JSON.stringify(body),
|
|
612
|
+
});
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
// p8-sweep-close — built from the tree of now; sent once the writes before it answered, by which time
|
|
616
|
+
// one of them may have stamped an object this request still names by its computed id.
|
|
617
|
+
const follow = stampFollowRef.current;
|
|
618
|
+
const builtAt = follow.generation();
|
|
619
|
+
let body = shaped.body;
|
|
620
|
+
editApplyChainRef.current = editApplyChainRef.current
|
|
621
|
+
.catch(() => {})
|
|
622
|
+
.then(() => {
|
|
623
|
+
body = follow.rewrite(body, builtAt);
|
|
571
624
|
})
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
reply(frameClipResult(body, result));
|
|
578
|
-
// S7.21 — "Tablet and Mobile are beside Desktop." + Undo, when the inspector asked for the copies
|
|
579
|
-
const added = settleAddedWidths(body, result);
|
|
580
|
-
if (added) shellToast(added.message, true, added.action, DUPLICATE_TOAST);
|
|
581
|
-
else {
|
|
582
|
-
// S6.16b (01 cf-duplicate-done) — the artboard menu's "Duplicate at another width ▸": the
|
|
583
|
-
// shell says it, off the request it forwarded and the server's answer, with its own ⌘Z.
|
|
584
|
-
const done = settleDuplicateAtWidth(body, result, () =>
|
|
585
|
-
menuRunner.run('edit.undo')
|
|
586
|
-
);
|
|
587
|
-
if (done) shellToast(done.message, true, done.action, DUPLICATE_TOAST);
|
|
588
|
-
}
|
|
589
|
-
// S2.24 G1 — a write to the selected text changes what the inspector measured (the style it wears,
|
|
590
|
-
// what differs from it, the size): put the selection back so the canvas probes it again.
|
|
591
|
-
if (result?.ok && /^text\./.test(body.op) && body.file) {
|
|
592
|
-
// S2.25 G1 — and a write that gives the text an authored name (`Use a style` on a text that had only a
|
|
593
|
-
// content-hash id) leaves the id the shell holds naming nothing: follow it to the new one.
|
|
594
|
-
const map = renamedIdsRef.current;
|
|
595
|
-
if (map.size > 64) map.clear();
|
|
596
|
-
for (const [k, v] of renamesOf(body.targets, result.refs)) map.set(k, v);
|
|
597
|
-
restoreSelectionOn(body.file, RESTORE_LEAD_MS);
|
|
598
|
-
}
|
|
625
|
+
.then(() =>
|
|
626
|
+
fetch('/_api/edit-op', {
|
|
627
|
+
method: 'POST',
|
|
628
|
+
headers: { 'content-type': 'application/json' },
|
|
629
|
+
body: JSON.stringify(body),
|
|
599
630
|
})
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
ok
|
|
603
|
-
|
|
604
|
-
|
|
631
|
+
.then(readEditOpAnswer)
|
|
632
|
+
.then((result) => {
|
|
633
|
+
if (result?.ok) follow.record(body.file, body.targets, result.refs);
|
|
634
|
+
noteClipResult(body, result);
|
|
635
|
+
// V2-8.9 attacker L3 — the canvas hears kind + count, never the handle
|
|
636
|
+
reply(frameClipResult(body, result));
|
|
637
|
+
// S7.21 — "Tablet and Mobile are beside Desktop." + Undo, when the inspector asked for the copies
|
|
638
|
+
const added = settleAddedWidths(body, result);
|
|
639
|
+
if (added) shellToast(added.message, true, added.action, DUPLICATE_TOAST);
|
|
640
|
+
else {
|
|
641
|
+
// S6.16b (01 cf-duplicate-done) — the artboard menu's "Duplicate at another width ▸": the
|
|
642
|
+
// shell says it, off the request it forwarded and the server's answer, with its own ⌘Z.
|
|
643
|
+
const done = settleDuplicateAtWidth(body, result, () =>
|
|
644
|
+
menuRunner.run('edit.undo')
|
|
645
|
+
);
|
|
646
|
+
if (done)
|
|
647
|
+
shellToast(done.message, true, done.action, {
|
|
648
|
+
...DUPLICATE_TOAST,
|
|
649
|
+
id: done.id,
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
// S2.24 G1 — a write to the selected text changes what the inspector measured (the style it wears,
|
|
653
|
+
// what differs from it, the size): put the selection back so the canvas probes it again.
|
|
654
|
+
if (result?.ok && /^text\./.test(body.op) && body.file) {
|
|
655
|
+
// S2.25 G1 — and a write that gives the text an authored name (`Use a style` on a text that had only a
|
|
656
|
+
// content-hash id) leaves the id the shell holds naming nothing: follow it to the new one.
|
|
657
|
+
const map = renamedIdsRef.current;
|
|
658
|
+
if (map.size > 64) map.clear();
|
|
659
|
+
for (const [k, v] of renamesOf(body.file, body.targets, result.refs))
|
|
660
|
+
map.set(k, v);
|
|
661
|
+
restoreSelectionOn(body.file, RESTORE_LEAD_MS);
|
|
662
|
+
}
|
|
605
663
|
})
|
|
606
|
-
|
|
607
|
-
|
|
664
|
+
.catch(() =>
|
|
665
|
+
reply({
|
|
666
|
+
ok: false,
|
|
667
|
+
code: 'invalid',
|
|
668
|
+
message: 'The studio could not be reached; try again.',
|
|
669
|
+
})
|
|
670
|
+
)
|
|
671
|
+
);
|
|
672
|
+
};
|
|
673
|
+
// #122 (122-C) — on the desktop a paste first asks the shell which copy is the latest on this Mac
|
|
674
|
+
// (another project's tab may hold it); every other edit-op is shaped synchronously, as before.
|
|
675
|
+
const shapedNow = shapeClipPaste(asked, {
|
|
676
|
+
cloudTab: !!cfg?.cloud,
|
|
677
|
+
synced: !!cfg?.linkedHub?.url,
|
|
678
|
+
here: typeof cfg?.name === 'string' ? cfg.name : '',
|
|
679
|
+
});
|
|
680
|
+
if (shapedNow instanceof Promise) shapedNow.then(onShaped, () => {});
|
|
681
|
+
else onShaped(shapedNow);
|
|
608
682
|
} else if (m.dgn === 'reorder-slot') {
|
|
609
683
|
// S2.11b — the slot a lifted card would land in; Layers draws the same numbered place.
|
|
610
684
|
// The row is parsed through the typed table (a planted canvas sends whatever it likes).
|
|
@@ -1273,9 +1347,10 @@ export function useCanvasBridge({
|
|
|
1273
1347
|
if (activeWin && e.source === activeWin && m.chord === '⌘V') {
|
|
1274
1348
|
// V2-8.9 attacker L2 — a ⌘V in the canvas is a paste intent only while the active frame
|
|
1275
1349
|
// holds the focus of a focused window (the sec-a undo-key gate): the shell's cross-canvas
|
|
1276
|
-
// paste ask may follow it for ~1 s (client/clipboard-relay.ts). It runs no action.
|
|
1350
|
+
// paste ask may follow it for ~1 s (client/clipboard-relay.ts). It runs no action. The frame
|
|
1351
|
+
// relayed it, so it is noted as the frame's: never enough for a paste from another project.
|
|
1277
1352
|
const frame = iframesRef.current.get(activePath);
|
|
1278
|
-
if (document.hasFocus() && document.activeElement === frame)
|
|
1353
|
+
if (document.hasFocus() && document.activeElement === frame) noteFramePasteIntent();
|
|
1279
1354
|
return;
|
|
1280
1355
|
}
|
|
1281
1356
|
if (activeWin && e.source === activeWin) {
|
|
@@ -28,6 +28,7 @@ import { useLayersTreeRequest } from '../v2/layers/layers-request.js';
|
|
|
28
28
|
import { bindPaletteEnv, sendToAskAI } from '../v2/search/search-env.js';
|
|
29
29
|
import { desktopProjectsEnv } from '../v2/search/search-projects.js';
|
|
30
30
|
import { actionSearchRows, settingsSearchRows } from '../v2/search/search-model.js';
|
|
31
|
+
import { settingsTarget } from '../v2/settings/settings-cards.js';
|
|
31
32
|
import { isNativeApp, onMenuAction } from '../github.js';
|
|
32
33
|
import { DOCK_PANELS, PANEL_SIDES_DEFAULTS } from '../shell/dock.jsx';
|
|
33
34
|
import { EMPTY_GROUPS, SYSTEM_TAB } from '../shell/constants.js';
|
|
@@ -439,7 +440,8 @@ export function usePaletteAndPanels({
|
|
|
439
440
|
...settingsSearchRows({
|
|
440
441
|
cloud: cfg.cloud,
|
|
441
442
|
readOnly: viewerMode,
|
|
442
|
-
|
|
443
|
+
// 2.1.1 T6: the tab AND the card that holds the row ("advanced#privacy"), so a closed card opens
|
|
444
|
+
run: (section, row) => setSettingsOpen(settingsTarget(section, row)),
|
|
443
445
|
}),
|
|
444
446
|
// S10.13 — the Design system and everything in it by name (a converted system opens its canvas, an
|
|
445
447
|
// older one its v1 view)
|
|
@@ -903,6 +905,8 @@ export function usePaletteAndPanels({
|
|
|
903
905
|
// viewer's empty line names the people who see a comment right away
|
|
904
906
|
onShare={viewerMode ? undefined : () => showShare()}
|
|
905
907
|
viewer={viewerMode}
|
|
908
|
+
// #170: the empty line teaches the C key only where it leaves a comment (not view-only, not an observer)
|
|
909
|
+
canComment={viewerMode ? canCommentNow(cfg) : !cfg?.formatGate}
|
|
906
910
|
// 10 co-comment-thread: the panel's own close (Hide Comments), beside its title
|
|
907
911
|
onClose={() => togglePanel('comments')}
|
|
908
912
|
artboardLabel={labelOfArtboard}
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { CANVAS_EXT_RE, SYSTEM_TAB } from '../shell/constants.js';
|
|
5
5
|
import { remapDirPrefix, revealPath } from '../tree-expansion.js';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
buildShareLinks,
|
|
8
|
+
normalizeOpenPath,
|
|
9
|
+
readOpenParam,
|
|
10
|
+
shareTargetFor,
|
|
11
|
+
withOpenParam,
|
|
12
|
+
} from '../share-link.js';
|
|
7
13
|
import { basename, displayName, previewKind, shellToast } from '../shell/util.js';
|
|
8
14
|
import { assembleVideoFlow } from '../v2/timeline/assemble-video.js';
|
|
9
15
|
import { notify } from '../../notifications.tsx';
|
|
@@ -205,9 +211,10 @@ export function useTabs({
|
|
|
205
211
|
localUrl: location.origin,
|
|
206
212
|
readOnly: !!cfg.readOnly,
|
|
207
213
|
});
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
214
|
+
// `{ project: true }` (Move to Maude Cloud, Connect): the project's sheet when no canvas is open
|
|
215
|
+
const showShare = (path = sharePath, opts) => {
|
|
216
|
+
const target = shareTargetFor(path, cfg.designRel, opts);
|
|
217
|
+
if (target) setShareDialog(target);
|
|
211
218
|
};
|
|
212
219
|
|
|
213
220
|
// Retry from the #115 error panel: re-read /_config FIRST (the stale
|
|
@@ -185,7 +185,13 @@ function CanvasView({ src, view, setView, label }) {
|
|
|
185
185
|
>
|
|
186
186
|
{/* A read-only preview: out of the tab order, so the modal's focus
|
|
187
187
|
never falls into a document whose keys the shell cannot see. */}
|
|
188
|
-
<iframe
|
|
188
|
+
<iframe
|
|
189
|
+
className="dv-frame"
|
|
190
|
+
src={src}
|
|
191
|
+
sandbox="allow-scripts allow-same-origin"
|
|
192
|
+
title={label}
|
|
193
|
+
tabIndex={-1}
|
|
194
|
+
/>
|
|
189
195
|
</div>
|
|
190
196
|
) : (
|
|
191
197
|
<div className="dv-thumb-note">No saved version of this canvas to compare yet.</div>
|