@1agh/maude 1.9.1 → 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/README.md +4 -4
- 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 +2 -0
- package/cli/commands/design.mjs +401 -72
- package/cli/commands/flow.mjs +73 -0
- package/cli/commands/help.mjs +14 -1
- package/cli/commands/init.mjs +1 -1
- package/cli/commands/migrate.mjs +55 -0
- package/cli/lib/bash-guard.mjs +1691 -0
- package/cli/lib/cache.mjs +1 -1
- 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/ddr-to-kgai.mjs +2 -2
- 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 +133 -0
- 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 +30 -11
- 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 +170 -9
- package/plugins/flow/README.md +18 -17
- package/plugins/flow/dependencies.json +25 -26
- package/plugins/flow/templates/ai-skeleton/INDEX.md +3 -3
- package/plugins/flow/templates/ai-skeleton/README.md +5 -5
- package/plugins/flow/templates/ai-skeleton/context/README.md +1 -1
- package/plugins/flow/templates/ai-skeleton/logs/README.md +1 -1
- package/plugins/flow/templates/ai-skeleton/plans/README.md +1 -1
- package/plugins/flow/templates/ai-skeleton/reviews/README.md +2 -2
- package/plugins/flow/templates/ai-skeleton/scenario-guide.md +4 -4
- package/plugins/flow/templates/ai-skeleton/scenarios/README.md +2 -2
- package/plugins/flow/templates/ai-skeleton/templates/HANDOFF.md +1 -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
|
@@ -4,10 +4,64 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
4
4
|
import { activeDsNameFor, useAllDsTokens } from './ds-tokens.js';
|
|
5
5
|
import { cssColorToHex, cssHint, cssSplitUnit } from './color.js';
|
|
6
6
|
import { sizingModeOf, sizingModePatch } from '../../sizing-mode.ts';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
AlignPad,
|
|
9
|
+
AngleDial,
|
|
10
|
+
ColorField,
|
|
11
|
+
IconButtonGroup,
|
|
12
|
+
IconToggleGroup,
|
|
13
|
+
NumberField,
|
|
14
|
+
RadiusControl,
|
|
15
|
+
Segmented,
|
|
16
|
+
SliderField,
|
|
17
|
+
Toggle,
|
|
18
|
+
UnitSelect,
|
|
19
|
+
ValueTokenField,
|
|
20
|
+
makeScrubHandler,
|
|
21
|
+
} from '../inspector-controls.jsx';
|
|
8
22
|
import { Lu, StIcon } from '../shell/icons.jsx';
|
|
9
|
-
import {
|
|
10
|
-
|
|
23
|
+
import {
|
|
24
|
+
AlignCenter as LuAlignCenter,
|
|
25
|
+
AlignHorizontalJustifyCenter as LuJustifyCenter,
|
|
26
|
+
AlignHorizontalJustifyEnd as LuJustifyEnd,
|
|
27
|
+
AlignHorizontalJustifyStart as LuJustifyStart,
|
|
28
|
+
AlignHorizontalSpaceBetween as LuSpaceBetween,
|
|
29
|
+
AlignJustify as LuAlignJustify,
|
|
30
|
+
AlignLeft as LuAlignLeft,
|
|
31
|
+
AlignRight as LuAlignRight,
|
|
32
|
+
AlignVerticalJustifyCenter as LuVJustifyCenter,
|
|
33
|
+
AlignVerticalJustifyEnd as LuVJustifyEnd,
|
|
34
|
+
AlignVerticalJustifyStart as LuVJustifyStart,
|
|
35
|
+
Bold as LuBold,
|
|
36
|
+
Braces as LuBraces,
|
|
37
|
+
Columns3 as LuColumns3,
|
|
38
|
+
Eye as LuEye,
|
|
39
|
+
Italic as LuItalic,
|
|
40
|
+
RotateCw as LuRotateCw,
|
|
41
|
+
Rows3 as LuRows3,
|
|
42
|
+
Scissors as LuScissors,
|
|
43
|
+
ScrollText as LuScrollText,
|
|
44
|
+
StretchHorizontal as LuStretch,
|
|
45
|
+
Underline as LuUnderline,
|
|
46
|
+
Wand2 as LuWand2,
|
|
47
|
+
} from 'lucide-react';
|
|
48
|
+
import {
|
|
49
|
+
CSS_ALIGN_SELF,
|
|
50
|
+
CSS_ASPECT_RATIO,
|
|
51
|
+
CSS_BLEND_MODES,
|
|
52
|
+
CSS_BORDER_STYLES,
|
|
53
|
+
CSS_DISPLAYS,
|
|
54
|
+
CSS_FONTS,
|
|
55
|
+
CSS_FONT_STYLE,
|
|
56
|
+
CSS_OBJECT_FIT,
|
|
57
|
+
CSS_POSITION,
|
|
58
|
+
CSS_TEXT_TRANSFORM,
|
|
59
|
+
CSS_UNITLESS,
|
|
60
|
+
CSS_UNITS,
|
|
61
|
+
CSS_WEIGHTS,
|
|
62
|
+
CSS_WHITE_SPACE,
|
|
63
|
+
PROP_LEAD,
|
|
64
|
+
} from './css-vocab.jsx';
|
|
11
65
|
import { TokenPopover } from './token-popover.jsx';
|
|
12
66
|
import { parseTrackList, serializeTrackList } from '../../grid-track-handles.ts';
|
|
13
67
|
import { GridTracksEditor } from './grid-tracks-editor.jsx';
|
|
@@ -33,7 +87,16 @@ export function afterRecordableWrites() {
|
|
|
33
87
|
: new Promise((resolve) => recordableWrites.waiters.push(resolve));
|
|
34
88
|
}
|
|
35
89
|
|
|
36
|
-
export function CssKnobs({
|
|
90
|
+
export function CssKnobs({
|
|
91
|
+
el,
|
|
92
|
+
cfg,
|
|
93
|
+
onOptimistic,
|
|
94
|
+
onRecordEdit,
|
|
95
|
+
onReplaceMedia,
|
|
96
|
+
onUndoRedo,
|
|
97
|
+
mode,
|
|
98
|
+
onSetMode,
|
|
99
|
+
}) {
|
|
37
100
|
const editable = !!el.id;
|
|
38
101
|
const computed = el.computed || {};
|
|
39
102
|
// Phase 12.3 — optimistic local overlay over the selection's authored / custom
|
|
@@ -94,8 +157,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
94
157
|
// CSS props / HTML attrs, so a just-added (or pre-existing) custom value is
|
|
95
158
|
// visible without hunting for the disclosure. Keyed on el.id so it re-runs per
|
|
96
159
|
// selection (CssKnobs persists across selections — the el prop changes).
|
|
97
|
-
const hasCustom =
|
|
98
|
-
Object.keys(customStyles).length > 0 || Object.keys(attrs).length > 0;
|
|
160
|
+
const hasCustom = Object.keys(customStyles).length > 0 || Object.keys(attrs).length > 0;
|
|
99
161
|
useEffect(() => {
|
|
100
162
|
if (hasCustom) setOpen((o) => (o.Advanced ? o : { ...o, Advanced: true }));
|
|
101
163
|
}, [el.id, hasCustom]);
|
|
@@ -103,7 +165,8 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
103
165
|
// precedent: collapsed by default (position is the rare case), auto-opens
|
|
104
166
|
// the moment the element actually has a non-static position so the inset
|
|
105
167
|
// fields the user just set (or that came from the source) aren't hidden.
|
|
106
|
-
const hasCustomPosition =
|
|
168
|
+
const hasCustomPosition =
|
|
169
|
+
(authored.position || cssHint(computed.position) || 'static') !== 'static';
|
|
107
170
|
useEffect(() => {
|
|
108
171
|
if (hasCustomPosition) setOpen((o) => (o['d:Position'] ? o : { ...o, 'd:Position': true }));
|
|
109
172
|
}, [el.id, hasCustomPosition]);
|
|
@@ -294,21 +357,26 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
294
357
|
for (const p of patch.reset) if (authored[p]) reset(p);
|
|
295
358
|
for (const [prop, value] of patch.set) commit(prop, value);
|
|
296
359
|
};
|
|
297
|
-
const parentIsFlexChild =
|
|
298
|
-
el.parentDisplay === 'flex' || el.parentDisplay === 'inline-flex';
|
|
360
|
+
const parentIsFlexChild = el.parentDisplay === 'flex' || el.parentDisplay === 'inline-flex';
|
|
299
361
|
const sizeModeSeg = (axis) => {
|
|
300
362
|
const cur = sizingModeOf(axis, authored, computed, parentLayout);
|
|
301
363
|
return (
|
|
302
364
|
// handoff — a proper inspector row: "Width sizing" / "Height sizing" label
|
|
303
365
|
// in the label column, the shared Segmented right-aligned in the control
|
|
304
366
|
// column (aligned with the number inputs below), input-matching height.
|
|
305
|
-
<div className="
|
|
306
|
-
<span className="
|
|
307
|
-
|
|
367
|
+
<div className="insp-cp-moderow" key={`mode-${axis}`}>
|
|
368
|
+
<span className="insp-cp-modelabel">
|
|
369
|
+
{axis === 'width' ? 'Width sizing' : 'Height sizing'}
|
|
370
|
+
</span>
|
|
371
|
+
<div className="insp-cp-modeseg" role="group" aria-label={`${axis} sizing mode`}>
|
|
308
372
|
<Segmented
|
|
309
373
|
value={cur}
|
|
310
374
|
ariaLabel={`${axis} sizing`}
|
|
311
|
-
options={[
|
|
375
|
+
options={[
|
|
376
|
+
{ value: 'fixed', label: 'fixed' },
|
|
377
|
+
{ value: 'hug', label: 'hug' },
|
|
378
|
+
{ value: 'fill', label: 'fill' },
|
|
379
|
+
]}
|
|
312
380
|
onChange={(m) => applySizing(axis, m)}
|
|
313
381
|
/>
|
|
314
382
|
</div>
|
|
@@ -328,8 +396,17 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
328
396
|
const AP_ROWS = ['t', 'c', 'b'];
|
|
329
397
|
const AP_COLS = ['l', 'c', 'r'];
|
|
330
398
|
const alignPadCell = () => {
|
|
331
|
-
const isRow = !(
|
|
332
|
-
|
|
399
|
+
const isRow = !(
|
|
400
|
+
authored['flex-direction'] ||
|
|
401
|
+
cssHint(computed['flex-direction']) ||
|
|
402
|
+
'row'
|
|
403
|
+
).startsWith('column');
|
|
404
|
+
const jcPos = Math.max(
|
|
405
|
+
0,
|
|
406
|
+
AP_JC.indexOf(
|
|
407
|
+
authored['justify-content'] || cssHint(computed['justify-content']) || 'flex-start'
|
|
408
|
+
)
|
|
409
|
+
);
|
|
333
410
|
const aiRaw = authored['align-items'] || cssHint(computed['align-items']) || 'stretch';
|
|
334
411
|
const aiPos = aiRaw === 'stretch' ? 1 : Math.max(0, AP_AI.indexOf(aiRaw));
|
|
335
412
|
const [h, v] = isRow ? [jcPos, aiPos] : [aiPos, jcPos];
|
|
@@ -338,7 +415,11 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
338
415
|
const setAlignPadCell = (cell) => {
|
|
339
416
|
const v = AP_ROWS.indexOf(cell[0]);
|
|
340
417
|
const h = AP_COLS.indexOf(cell[1]);
|
|
341
|
-
const isRow = !(
|
|
418
|
+
const isRow = !(
|
|
419
|
+
authored['flex-direction'] ||
|
|
420
|
+
cssHint(computed['flex-direction']) ||
|
|
421
|
+
'row'
|
|
422
|
+
).startsWith('column');
|
|
342
423
|
const [jcPos, aiPos] = isRow ? [h, v] : [v, h];
|
|
343
424
|
commit('justify-content', AP_JC[jcPos]);
|
|
344
425
|
commit('align-items', AP_AI[aiPos]);
|
|
@@ -366,13 +447,12 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
366
447
|
|
|
367
448
|
if (!editable) {
|
|
368
449
|
return (
|
|
369
|
-
<div className="
|
|
370
|
-
<div className="
|
|
371
|
-
<span className="
|
|
450
|
+
<div className="insp-cp">
|
|
451
|
+
<div className="insp-cp-id">
|
|
452
|
+
<span className="insp-cp-idtag">{el.tag || 'element'}</span>
|
|
372
453
|
</div>
|
|
373
|
-
<div className="
|
|
374
|
-
This
|
|
375
|
-
it with <code>/design:edit</code>.
|
|
454
|
+
<div className="insp-css-disabled">
|
|
455
|
+
This can’t be edited here. Ask AI in the chat to change it.
|
|
376
456
|
</div>
|
|
377
457
|
</div>
|
|
378
458
|
);
|
|
@@ -380,7 +460,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
380
460
|
|
|
381
461
|
const PROVLABEL = { bound: 'token-bound', raw: 'raw override', inherit: 'inherited' };
|
|
382
462
|
const prov = (p) => (
|
|
383
|
-
<span className={`
|
|
463
|
+
<span className={`insp-cp-prov insp-cp-prov--${p}`} role="img" aria-label={PROVLABEL[p]} />
|
|
384
464
|
);
|
|
385
465
|
|
|
386
466
|
// Phase 12.3 (#4) — the LEADING dot carries it all: provenance (shape) + save
|
|
@@ -391,7 +471,13 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
391
471
|
const k = provKind ?? provOf(prop);
|
|
392
472
|
const s = status[prop];
|
|
393
473
|
const errMsg = typeof s === 'string' && s.startsWith('err:') ? s.slice(4) : '';
|
|
394
|
-
const stCls = errMsg
|
|
474
|
+
const stCls = errMsg
|
|
475
|
+
? ' is-err'
|
|
476
|
+
: s === 'saved'
|
|
477
|
+
? ' is-saved'
|
|
478
|
+
: s === 'saving'
|
|
479
|
+
? ' is-saving'
|
|
480
|
+
: '';
|
|
395
481
|
const canReset = !!authored[prop];
|
|
396
482
|
const tip = errMsg
|
|
397
483
|
? `error: ${errMsg}`
|
|
@@ -401,7 +487,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
401
487
|
return (
|
|
402
488
|
<button
|
|
403
489
|
type="button"
|
|
404
|
-
className={`
|
|
490
|
+
className={`insp-cp-prov insp-cp-prov--${k}${stCls}${canReset ? ' is-resettable' : ''}`}
|
|
405
491
|
aria-label={tip}
|
|
406
492
|
title={tip}
|
|
407
493
|
tabIndex={canReset ? 0 : -1}
|
|
@@ -431,12 +517,12 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
431
517
|
const unset = provKind === undefined && !authored[prop];
|
|
432
518
|
const label = labelOverride ?? prop;
|
|
433
519
|
return (
|
|
434
|
-
<div className={`
|
|
520
|
+
<div className={`insp-cp-row${unset ? ' is-unset' : ''}`} key={prop}>
|
|
435
521
|
{provDot(prop, provKind)}
|
|
436
|
-
<label className="
|
|
522
|
+
<label className="insp-cp-label" title={label}>
|
|
437
523
|
{label}
|
|
438
524
|
</label>
|
|
439
|
-
<div className="
|
|
525
|
+
<div className="insp-cp-ctl">{control}</div>
|
|
440
526
|
</div>
|
|
441
527
|
);
|
|
442
528
|
};
|
|
@@ -516,16 +602,16 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
516
602
|
const sec = (name, body) => {
|
|
517
603
|
const dirty = (SECTION_PROPS[name] || []).some((p) => authored[p]);
|
|
518
604
|
return (
|
|
519
|
-
<section className="
|
|
520
|
-
<div className="
|
|
605
|
+
<section className="insp-cp-sec" key={name}>
|
|
606
|
+
<div className="insp-cp-sechd-row">
|
|
521
607
|
<button
|
|
522
608
|
type="button"
|
|
523
|
-
className="
|
|
609
|
+
className="insp-cp-sechd"
|
|
524
610
|
data-testid={`inspector-section-${name.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`}
|
|
525
611
|
aria-expanded={!!open[name]}
|
|
526
612
|
onClick={() => setOpen((o) => ({ ...o, [name]: !o[name] }))}
|
|
527
613
|
>
|
|
528
|
-
<span className="
|
|
614
|
+
<span className="insp-cp-caret" aria-hidden="true">
|
|
529
615
|
{open[name] ? '▾' : '▸'}
|
|
530
616
|
</span>
|
|
531
617
|
{name}
|
|
@@ -533,7 +619,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
533
619
|
{/* handoff — reset always present (design), dimmed when nothing to reset. */}
|
|
534
620
|
<button
|
|
535
621
|
type="button"
|
|
536
|
-
className={`
|
|
622
|
+
className={`insp-cp-secreset${dirty ? '' : ' is-quiet'}`}
|
|
537
623
|
aria-label={`reset ${name} section to original`}
|
|
538
624
|
title={`reset ${name}`}
|
|
539
625
|
disabled={!dirty}
|
|
@@ -544,16 +630,16 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
544
630
|
</div>
|
|
545
631
|
{/* animated collapse — grid-rows 0fr→1fr keeps the DOM + interpolates
|
|
546
632
|
height (feature-inspector-controls-redesign handoff). */}
|
|
547
|
-
<div className={`
|
|
548
|
-
<div className="
|
|
633
|
+
<div className={`insp-cp-sec-anim${open[name] ? ' is-open' : ''}`}>
|
|
634
|
+
<div className="insp-cp-sec-inner">{body}</div>
|
|
549
635
|
</div>
|
|
550
636
|
</section>
|
|
551
637
|
);
|
|
552
638
|
};
|
|
553
639
|
|
|
554
640
|
// DDR-171 — Designer mode's cluster wrapper. Mirrors `sec()`'s exact chrome
|
|
555
|
-
// (caret, reset, animated collapse — reuses `.
|
|
556
|
-
// `.
|
|
641
|
+
// (caret, reset, animated collapse — reuses `.insp-cp-sec`/`.insp-cp-sechd`/
|
|
642
|
+
// `.insp-cp-sec-anim` verbatim, no new CSS shape) but takes an explicit
|
|
557
643
|
// `props` reset-list instead of looking one up in `SECTION_PROPS`, because
|
|
558
644
|
// Designer clusters cut across Advanced-mode section boundaries and don't
|
|
559
645
|
// map 1:1 onto it (e.g. "Auto layout" pulls from both Layout and Size).
|
|
@@ -565,32 +651,36 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
565
651
|
const isOpen = open[key] === undefined ? defaultOpen : open[key];
|
|
566
652
|
const dirty = props.some((p) => authored[p]);
|
|
567
653
|
return (
|
|
568
|
-
<section className="
|
|
569
|
-
<div className="
|
|
654
|
+
<section className="insp-cp-sec" key={key}>
|
|
655
|
+
<div className="insp-cp-sechd-row">
|
|
570
656
|
<button
|
|
571
657
|
type="button"
|
|
572
|
-
className="
|
|
658
|
+
className="insp-cp-sechd"
|
|
573
659
|
aria-expanded={isOpen}
|
|
574
660
|
onClick={() => setOpen((o) => ({ ...o, [key]: !isOpen }))}
|
|
575
661
|
>
|
|
576
|
-
<span className="
|
|
662
|
+
<span className="insp-cp-caret" aria-hidden="true">
|
|
577
663
|
{isOpen ? '▾' : '▸'}
|
|
578
664
|
</span>
|
|
579
665
|
{name}
|
|
580
666
|
</button>
|
|
581
667
|
<button
|
|
582
668
|
type="button"
|
|
583
|
-
className={`
|
|
669
|
+
className={`insp-cp-secreset${dirty ? '' : ' is-quiet'}`}
|
|
584
670
|
aria-label={`reset ${name} to original`}
|
|
585
671
|
title={`reset ${name}`}
|
|
586
672
|
disabled={!dirty}
|
|
587
|
-
onClick={() =>
|
|
673
|
+
onClick={() =>
|
|
674
|
+
props.forEach((p) => {
|
|
675
|
+
if (authored[p]) reset(p);
|
|
676
|
+
})
|
|
677
|
+
}
|
|
588
678
|
>
|
|
589
679
|
<Lu as={LuRotateCw} size={12} />
|
|
590
680
|
</button>
|
|
591
681
|
</div>
|
|
592
|
-
<div className={`
|
|
593
|
-
<div className="
|
|
682
|
+
<div className={`insp-cp-sec-anim${isOpen ? ' is-open' : ''}`}>
|
|
683
|
+
<div className="insp-cp-sec-inner">{body}</div>
|
|
594
684
|
</div>
|
|
595
685
|
</section>
|
|
596
686
|
);
|
|
@@ -601,7 +691,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
601
691
|
const moreBtn = (key) => (
|
|
602
692
|
<button
|
|
603
693
|
type="button"
|
|
604
|
-
className="
|
|
694
|
+
className="insp-cp-clustermore"
|
|
605
695
|
aria-expanded={!!designerMore[key]}
|
|
606
696
|
aria-label={designerMore[key] ? `${key} — fewer options` : `${key} — more options`}
|
|
607
697
|
title={designerMore[key] ? 'fewer' : 'more'}
|
|
@@ -614,7 +704,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
614
704
|
// native <select> committing a CSS value directly
|
|
615
705
|
const csel = (prop, list) => (
|
|
616
706
|
<select
|
|
617
|
-
className="
|
|
707
|
+
className="insp-cp-nsel"
|
|
618
708
|
aria-label={prop}
|
|
619
709
|
value={list.includes(authored[prop]) ? authored[prop] : ''}
|
|
620
710
|
onChange={(e) => commit(prop, e.target.value)}
|
|
@@ -632,10 +722,18 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
632
722
|
|
|
633
723
|
// ── feature-inspector-controls-redesign handoff — the design's control set,
|
|
634
724
|
// wired to CssKnobs' CSS-string commit lane. ────────────────────────────────
|
|
635
|
-
const flatTokens = (familyKey) =>
|
|
725
|
+
const flatTokens = (familyKey) =>
|
|
726
|
+
tokenGroups(familyKey).flatMap((g) =>
|
|
727
|
+
(g.names || []).map((n) => ({ name: n, value: g.vals?.[n] || '' }))
|
|
728
|
+
);
|
|
636
729
|
// enum → lucide icon button group (commits the raw CSS keyword)
|
|
637
730
|
const iconseg = (prop, options) => (
|
|
638
|
-
<IconButtonGroup
|
|
731
|
+
<IconButtonGroup
|
|
732
|
+
value={authored[prop] || cssHint(computed[prop]) || options[0].value}
|
|
733
|
+
ariaLabel={prop}
|
|
734
|
+
options={options}
|
|
735
|
+
onChange={(v) => commit(prop, v)}
|
|
736
|
+
/>
|
|
639
737
|
);
|
|
640
738
|
// number + unit + ◇ design-token binding (space / radius / type families)
|
|
641
739
|
const vtok = (prop, familyKey, opts = {}) => {
|
|
@@ -654,19 +752,51 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
654
752
|
ariaLabel={prop}
|
|
655
753
|
min={opts.min ?? 0}
|
|
656
754
|
lead={lead ? (lead.node ?? lead.t) : undefined}
|
|
657
|
-
unitSlot={
|
|
658
|
-
|
|
755
|
+
unitSlot={
|
|
756
|
+
unitless ? null : (
|
|
757
|
+
<UnitSelect
|
|
758
|
+
units={CSS_UNITS}
|
|
759
|
+
value={cur.unit || 'px'}
|
|
760
|
+
ariaLabel={`${prop} unit`}
|
|
761
|
+
onChange={(u) => commit(prop, u === 'auto' ? 'auto' : `${cur.n || '0'}${u}`)}
|
|
762
|
+
/>
|
|
763
|
+
)
|
|
764
|
+
}
|
|
765
|
+
onChange={(v) =>
|
|
766
|
+
commit(prop, typeof v === 'string' ? v : unitless ? `${v}` : `${v}${unit}`)
|
|
767
|
+
}
|
|
659
768
|
/>
|
|
660
769
|
);
|
|
661
770
|
};
|
|
662
771
|
// border-radius → uniform field + ▢ detach → 2×2 corner quad
|
|
663
772
|
const radiusControl = () => {
|
|
664
|
-
const parse = (p) =>
|
|
665
|
-
|
|
773
|
+
const parse = (p) =>
|
|
774
|
+
Number.parseFloat(
|
|
775
|
+
cssSplitUnit(
|
|
776
|
+
authored[p] ??
|
|
777
|
+
authored['border-radius'] ??
|
|
778
|
+
cssHint(computed[p]) ??
|
|
779
|
+
cssHint(computed['border-radius']) ??
|
|
780
|
+
'0'
|
|
781
|
+
).n
|
|
782
|
+
) || 0;
|
|
783
|
+
const corners = {
|
|
784
|
+
tl: parse('border-top-left-radius'),
|
|
785
|
+
tr: parse('border-top-right-radius'),
|
|
786
|
+
bl: parse('border-bottom-left-radius'),
|
|
787
|
+
br: parse('border-bottom-right-radius'),
|
|
788
|
+
};
|
|
666
789
|
const onCorners = (c) => {
|
|
667
790
|
const uniform = c.tl === c.tr && c.tr === c.bl && c.bl === c.br;
|
|
668
791
|
if (uniform) {
|
|
669
|
-
[
|
|
792
|
+
[
|
|
793
|
+
'border-top-left-radius',
|
|
794
|
+
'border-top-right-radius',
|
|
795
|
+
'border-bottom-left-radius',
|
|
796
|
+
'border-bottom-right-radius',
|
|
797
|
+
].forEach((p) => {
|
|
798
|
+
if (authored[p]) reset(p);
|
|
799
|
+
});
|
|
670
800
|
commit('border-radius', `${c.tl}px`);
|
|
671
801
|
} else {
|
|
672
802
|
commit('border-top-left-radius', `${c.tl}px`);
|
|
@@ -676,16 +806,22 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
676
806
|
}
|
|
677
807
|
};
|
|
678
808
|
const lead = PROP_LEAD['border-radius'];
|
|
679
|
-
return
|
|
809
|
+
return (
|
|
810
|
+
<RadiusControl
|
|
811
|
+
corners={corners}
|
|
812
|
+
lead={lead ? (lead.node ?? lead.t) : undefined}
|
|
813
|
+
onCorners={onCorners}
|
|
814
|
+
/>
|
|
815
|
+
);
|
|
680
816
|
};
|
|
681
817
|
// border composite (width + style + colour) — DDR-171 pulled this out of the
|
|
682
818
|
// Advanced-mode Appearance row inline JSX so Designer mode's "Stroke"
|
|
683
819
|
// cluster (Task 6) can reuse the exact same control, not a re-implementation.
|
|
684
820
|
const borderControl = () => (
|
|
685
|
-
<div className="
|
|
821
|
+
<div className="insp-cp-border">
|
|
686
822
|
{num('border-width', null, { fixedUnit: 'px' })}
|
|
687
823
|
<select
|
|
688
|
-
className="
|
|
824
|
+
className="insp-cp-nsel insp-cp-nsel--mini"
|
|
689
825
|
aria-label="border-style"
|
|
690
826
|
value={CSS_BORDER_STYLES.includes(authored['border-style']) ? authored['border-style'] : ''}
|
|
691
827
|
onChange={(e) => commit('border-style', e.target.value)}
|
|
@@ -722,9 +858,25 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
722
858
|
commit('transform', `${base ? `${base} ` : ''}rotate(${norm}deg)`.trim());
|
|
723
859
|
};
|
|
724
860
|
return (
|
|
725
|
-
<div
|
|
861
|
+
<div
|
|
862
|
+
className="insp-cp-num"
|
|
863
|
+
style={{ border: 0, background: 'transparent', gap: 'var(--space-1)' }}
|
|
864
|
+
>
|
|
726
865
|
<AngleDial value={deg} onChange={setDeg} />
|
|
727
|
-
<NumberField
|
|
866
|
+
<NumberField
|
|
867
|
+
value={deg}
|
|
868
|
+
min={0}
|
|
869
|
+
max={360}
|
|
870
|
+
ariaLabel="rotation"
|
|
871
|
+
lead={<Lu as={LuRotateCw} />}
|
|
872
|
+
steppers={false}
|
|
873
|
+
unitSlot={
|
|
874
|
+
<span className="insp-cp-numsuffix" aria-hidden="true">
|
|
875
|
+
°
|
|
876
|
+
</span>
|
|
877
|
+
}
|
|
878
|
+
onCommit={setDeg}
|
|
879
|
+
/>
|
|
728
880
|
</div>
|
|
729
881
|
);
|
|
730
882
|
};
|
|
@@ -743,13 +895,28 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
743
895
|
const base = (authored.filter || '').replace(/\s*blur\([^)]*\)\s*/g, ' ').trim();
|
|
744
896
|
commit('filter', n > 0 ? `${base ? `${base} ` : ''}blur(${n}px)`.trim() : base || 'none');
|
|
745
897
|
};
|
|
746
|
-
return
|
|
898
|
+
return (
|
|
899
|
+
<NumberField
|
|
900
|
+
value={px}
|
|
901
|
+
min={0}
|
|
902
|
+
ariaLabel="filter blur"
|
|
903
|
+
unitSlot={
|
|
904
|
+
<span className="insp-cp-numsuffix" aria-hidden="true">
|
|
905
|
+
px
|
|
906
|
+
</span>
|
|
907
|
+
}
|
|
908
|
+
onCommit={setBlur}
|
|
909
|
+
/>
|
|
910
|
+
);
|
|
747
911
|
};
|
|
748
912
|
// handoff — shown as 0–100 % (design), stored as the CSS 0–1 value. Pulled
|
|
749
913
|
// out (DDR-171) so Designer mode's "Opacity" cluster reuses it verbatim.
|
|
750
914
|
const opacityControl = () => {
|
|
751
915
|
const a = authored.opacity;
|
|
752
|
-
const raw =
|
|
916
|
+
const raw =
|
|
917
|
+
a != null && a !== ''
|
|
918
|
+
? Number.parseFloat(a)
|
|
919
|
+
: Number.parseFloat(cssHint(computed.opacity)) || 1;
|
|
753
920
|
const pct = Math.round((Number.isNaN(raw) ? 1 : raw) * 100);
|
|
754
921
|
return (
|
|
755
922
|
<SliderField
|
|
@@ -767,14 +934,22 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
767
934
|
};
|
|
768
935
|
// B / I / U quick-style toggle group → font-weight / font-style / text-decoration
|
|
769
936
|
const textStyleToggle = () => {
|
|
770
|
-
const isBold =
|
|
937
|
+
const isBold =
|
|
938
|
+
Number.parseInt(authored['font-weight'] || cssHint(computed['font-weight']) || '400', 10) >=
|
|
939
|
+
600;
|
|
771
940
|
const isItalic = (authored['font-style'] || cssHint(computed['font-style'])) === 'italic';
|
|
772
|
-
const isUnder = /underline/.test(
|
|
941
|
+
const isUnder = /underline/.test(
|
|
942
|
+
authored['text-decoration'] || cssHint(computed['text-decoration']) || ''
|
|
943
|
+
);
|
|
773
944
|
return (
|
|
774
945
|
<IconToggleGroup
|
|
775
946
|
value={{ b: isBold, i: isItalic, u: isUnder }}
|
|
776
947
|
ariaLabel="text style"
|
|
777
|
-
options={[
|
|
948
|
+
options={[
|
|
949
|
+
{ value: 'b', node: <Lu as={LuBold} />, label: 'Bold' },
|
|
950
|
+
{ value: 'i', node: <Lu as={LuItalic} />, label: 'Italic' },
|
|
951
|
+
{ value: 'u', node: <Lu as={LuUnderline} />, label: 'Underline' },
|
|
952
|
+
]}
|
|
778
953
|
onToggle={(k) => {
|
|
779
954
|
if (k === 'b') commit('font-weight', isBold ? '400' : '700');
|
|
780
955
|
else if (k === 'i') commit('font-style', isItalic ? 'normal' : 'italic');
|
|
@@ -783,11 +958,33 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
783
958
|
/>
|
|
784
959
|
);
|
|
785
960
|
};
|
|
786
|
-
const DIR_OPTS = [
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
const
|
|
961
|
+
const DIR_OPTS = [
|
|
962
|
+
{ value: 'row', node: <Lu as={LuColumns3} />, label: 'Row' },
|
|
963
|
+
{ value: 'column', node: <Lu as={LuRows3} />, label: 'Column' },
|
|
964
|
+
];
|
|
965
|
+
const JUSTIFY_OPTS = [
|
|
966
|
+
{ value: 'flex-start', node: <Lu as={LuJustifyStart} />, label: 'Start' },
|
|
967
|
+
{ value: 'center', node: <Lu as={LuJustifyCenter} />, label: 'Center' },
|
|
968
|
+
{ value: 'flex-end', node: <Lu as={LuJustifyEnd} />, label: 'End' },
|
|
969
|
+
{ value: 'space-between', node: <Lu as={LuSpaceBetween} />, label: 'Space between' },
|
|
970
|
+
];
|
|
971
|
+
const ALIGNITEMS_OPTS = [
|
|
972
|
+
{ value: 'flex-start', node: <Lu as={LuVJustifyStart} />, label: 'Start' },
|
|
973
|
+
{ value: 'center', node: <Lu as={LuVJustifyCenter} />, label: 'Center' },
|
|
974
|
+
{ value: 'flex-end', node: <Lu as={LuVJustifyEnd} />, label: 'End' },
|
|
975
|
+
{ value: 'stretch', node: <Lu as={LuStretch} />, label: 'Stretch' },
|
|
976
|
+
];
|
|
977
|
+
const TEXTALIGN_OPTS = [
|
|
978
|
+
{ value: 'left', node: <Lu as={LuAlignLeft} />, label: 'Left' },
|
|
979
|
+
{ value: 'center', node: <Lu as={LuAlignCenter} />, label: 'Center' },
|
|
980
|
+
{ value: 'right', node: <Lu as={LuAlignRight} />, label: 'Right' },
|
|
981
|
+
{ value: 'justify', node: <Lu as={LuAlignJustify} />, label: 'Justify' },
|
|
982
|
+
];
|
|
983
|
+
const OVERFLOW_OPTS = [
|
|
984
|
+
{ value: 'visible', node: <Lu as={LuEye} />, label: 'Visible' },
|
|
985
|
+
{ value: 'hidden', node: <Lu as={LuScissors} />, label: 'Hidden' },
|
|
986
|
+
{ value: 'scroll', node: <Lu as={LuScrollText} />, label: 'Scroll' },
|
|
987
|
+
];
|
|
791
988
|
|
|
792
989
|
// token quick-pick — Figma-style POPOVER (W2.1) listing the DS variables for
|
|
793
990
|
// this property (name + resolved value), grouped per design system (W3);
|
|
@@ -834,7 +1031,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
834
1031
|
// free text input — raw value or var(--token), commits on blur/Enter
|
|
835
1032
|
const text = (prop) => (
|
|
836
1033
|
<input
|
|
837
|
-
className="
|
|
1034
|
+
className="insp-cp-fin"
|
|
838
1035
|
key={`${prop}:${authored[prop] ?? ''}`}
|
|
839
1036
|
aria-label={prop}
|
|
840
1037
|
defaultValue={authored[prop] ?? ''}
|
|
@@ -859,7 +1056,9 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
859
1056
|
// `opts.fixedUnit` — a px-only field (border-width) skips the unit <select>
|
|
860
1057
|
// entirely so the compact border-cluster row (width + style + swatch) has
|
|
861
1058
|
// room to fit at the panel's 260-304px widths (Task 5 overflow fix).
|
|
862
|
-
const unit = unitless
|
|
1059
|
+
const unit = unitless
|
|
1060
|
+
? ''
|
|
1061
|
+
: opts.fixedUnit || (cur.unit && cur.unit !== 'auto' ? cur.unit : 'px');
|
|
863
1062
|
const lead = PROP_LEAD[prop];
|
|
864
1063
|
// Unset (no authored value) shows the computed/inherited value as the
|
|
865
1064
|
// starting number — same value the old placeholder hinted at; the row's own
|
|
@@ -901,13 +1100,18 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
901
1100
|
const resolved = computed[prop] || authored[prop] || '';
|
|
902
1101
|
const av = authored[prop] ?? '';
|
|
903
1102
|
const bound = typeof av === 'string' && /var\(\s*--/.test(av);
|
|
904
|
-
const display = bound
|
|
1103
|
+
const display = bound
|
|
1104
|
+
? av
|
|
1105
|
+
.replace(/^var\(\s*|\s*\)$/g, '')
|
|
1106
|
+
.replace(/^--/, '')
|
|
1107
|
+
.replace(/-/g, ' ')
|
|
1108
|
+
: av;
|
|
905
1109
|
return (
|
|
906
1110
|
<ColorField
|
|
907
1111
|
swatch={
|
|
908
1112
|
<TokenPopover
|
|
909
1113
|
kind="color"
|
|
910
|
-
swatchClassName="
|
|
1114
|
+
swatchClassName="insp-cp-cf-sw"
|
|
911
1115
|
groups={tokenGroups('color')}
|
|
912
1116
|
current={authored[prop]}
|
|
913
1117
|
activeDs={_activeDs}
|
|
@@ -953,10 +1157,10 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
953
1157
|
onInput: (n, activeSides) => {
|
|
954
1158
|
if (node) node.value = String(n);
|
|
955
1159
|
if (activeSides) {
|
|
956
|
-
const box = node?.closest('.
|
|
1160
|
+
const box = node?.closest('.insp-cp-box');
|
|
957
1161
|
for (const p of activeSides) {
|
|
958
1162
|
if (p === prop) continue;
|
|
959
|
-
const sib = box?.querySelector(`.
|
|
1163
|
+
const sib = box?.querySelector(`.insp-cp-boxv[aria-label="${p}"]`);
|
|
960
1164
|
if (sib) sib.value = String(n);
|
|
961
1165
|
}
|
|
962
1166
|
}
|
|
@@ -989,7 +1193,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
989
1193
|
const all = [`${group}-top`, `${group}-right`, `${group}-bottom`, `${group}-left`];
|
|
990
1194
|
return (
|
|
991
1195
|
<input
|
|
992
|
-
className={`
|
|
1196
|
+
className={`insp-cp-boxv insp-cp-scrub insp-cp-boxv--${group[0]}${prop.split('-').pop()[0]}${
|
|
993
1197
|
isZero ? ' is-zero' : ''
|
|
994
1198
|
}`}
|
|
995
1199
|
key={`${prop}:${a ?? ''}`}
|
|
@@ -1027,7 +1231,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1027
1231
|
const all = ['top', 'right', 'bottom', 'left'];
|
|
1028
1232
|
return (
|
|
1029
1233
|
<input
|
|
1030
|
-
className={`
|
|
1234
|
+
className={`insp-cp-boxv insp-cp-scrub insp-cp-boxv--i${prop[0]}${isZero ? ' is-zero' : ''}`}
|
|
1031
1235
|
key={`${prop}:${a ?? ''}`}
|
|
1032
1236
|
aria-label={prop}
|
|
1033
1237
|
defaultValue={shown}
|
|
@@ -1064,9 +1268,13 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1064
1268
|
// design.
|
|
1065
1269
|
const mediaGate = () => {
|
|
1066
1270
|
const t = (el.tag || '').toLowerCase();
|
|
1067
|
-
const isMediaEl =
|
|
1271
|
+
const isMediaEl =
|
|
1272
|
+
t === 'img' || t === 'video' || t === 'picture' || t === 'svg' || t === 'canvas';
|
|
1068
1273
|
const showMedia =
|
|
1069
|
-
isMediaEl ||
|
|
1274
|
+
isMediaEl ||
|
|
1275
|
+
!!authored['object-fit'] ||
|
|
1276
|
+
!!authored['object-position'] ||
|
|
1277
|
+
!!authored['aspect-ratio'];
|
|
1070
1278
|
// Stage F2 — "Replace…" opens the AssetPicker to re-point src (authored
|
|
1071
1279
|
// <img>/<video> only; a template-expression src can't be string-swapped,
|
|
1072
1280
|
// so gate on a real src attr being present).
|
|
@@ -1076,8 +1284,12 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1076
1284
|
const mediaBody = (canReplace) => (
|
|
1077
1285
|
<>
|
|
1078
1286
|
{canReplace && (
|
|
1079
|
-
<div className="
|
|
1080
|
-
<button
|
|
1287
|
+
<div className="insp-cp-mediabtn">
|
|
1288
|
+
<button
|
|
1289
|
+
type="button"
|
|
1290
|
+
className="sh-btn insp-cp-replace"
|
|
1291
|
+
onClick={() => onReplaceMedia(el)}
|
|
1292
|
+
>
|
|
1081
1293
|
Replace…
|
|
1082
1294
|
</button>
|
|
1083
1295
|
</div>
|
|
@@ -1087,9 +1299,11 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1087
1299
|
{row(
|
|
1088
1300
|
'aspect-ratio',
|
|
1089
1301
|
<select
|
|
1090
|
-
className="
|
|
1302
|
+
className="insp-cp-nsel"
|
|
1091
1303
|
aria-label="aspect-ratio"
|
|
1092
|
-
value={
|
|
1304
|
+
value={
|
|
1305
|
+
CSS_ASPECT_RATIO.includes(authored['aspect-ratio']) ? authored['aspect-ratio'] : ''
|
|
1306
|
+
}
|
|
1093
1307
|
onChange={(e) => {
|
|
1094
1308
|
const v = e.target.value;
|
|
1095
1309
|
commit('aspect-ratio', v);
|
|
@@ -1114,11 +1328,16 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1114
1328
|
);
|
|
1115
1329
|
|
|
1116
1330
|
return (
|
|
1117
|
-
<div
|
|
1118
|
-
|
|
1119
|
-
|
|
1331
|
+
<div
|
|
1332
|
+
className={`insp-cp${mode === 'designer' ? ' insp-cp--designer' : ''}`}
|
|
1333
|
+
key={el.id}
|
|
1334
|
+
data-tour="css-panel"
|
|
1335
|
+
onKeyDown={onKnobKeyDown}
|
|
1336
|
+
>
|
|
1337
|
+
<div className="insp-cp-id">
|
|
1338
|
+
<span className="insp-cp-idtag">
|
|
1120
1339
|
{el.tag || 'element'}
|
|
1121
|
-
{el.classes ? <span className="
|
|
1340
|
+
{el.classes ? <span className="insp-cp-idcls">.{el.classes.split(/\s+/)[0]}</span> : null}
|
|
1122
1341
|
</span>
|
|
1123
1342
|
{/* DDR-171 — vocabulary mode toggle, tucked into the id row's corner
|
|
1124
1343
|
slot (was a full-width Segmented row — read as too heavy; a
|
|
@@ -1128,43 +1347,75 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1128
1347
|
Named "Advanced" (not "Simple"/"Basic") so neither mode reads as
|
|
1129
1348
|
the lesser fallback — see DDR-171 for the naming-collision call
|
|
1130
1349
|
against the nested Advanced *section* below. */}
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1350
|
+
{/* S2.2 (rule 13) — the Inspector frame mounts this panel in Advanced with no `onSetMode`: Designer is the
|
|
1351
|
+
only default there, so the switch is not drawn. Settings › Look keeps the setting for a mount that passes one. */}
|
|
1352
|
+
{setMode ? (
|
|
1353
|
+
<span className="insp-cp-idmode" data-tour="cp-mode">
|
|
1354
|
+
<IconButtonGroup
|
|
1355
|
+
value={mode}
|
|
1356
|
+
ariaLabel="panel vocabulary mode"
|
|
1357
|
+
options={[
|
|
1358
|
+
{
|
|
1359
|
+
value: 'advanced',
|
|
1360
|
+
node: <Lu as={LuBraces} size={12} />,
|
|
1361
|
+
label: 'Advanced — raw CSS',
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
value: 'designer',
|
|
1365
|
+
node: <Lu as={LuWand2} size={12} />,
|
|
1366
|
+
label: 'Designer — Figma vocabulary',
|
|
1367
|
+
},
|
|
1368
|
+
]}
|
|
1369
|
+
onChange={setMode}
|
|
1370
|
+
/>
|
|
1371
|
+
</span>
|
|
1372
|
+
) : null}
|
|
1142
1373
|
</div>
|
|
1143
1374
|
|
|
1144
1375
|
{mode === 'designer' ? (
|
|
1145
1376
|
<>
|
|
1146
1377
|
{dsec(
|
|
1147
1378
|
'Auto layout',
|
|
1148
|
-
[
|
|
1379
|
+
[
|
|
1380
|
+
'display',
|
|
1381
|
+
'flex-direction',
|
|
1382
|
+
'flex-wrap',
|
|
1383
|
+
'align-items',
|
|
1384
|
+
'justify-content',
|
|
1385
|
+
'gap',
|
|
1386
|
+
'padding-top',
|
|
1387
|
+
'padding-right',
|
|
1388
|
+
'padding-bottom',
|
|
1389
|
+
'padding-left',
|
|
1390
|
+
],
|
|
1149
1391
|
(() => {
|
|
1150
1392
|
const disp = (authored.display || cssHint(computed.display) || '').trim();
|
|
1151
1393
|
const isFlex = disp === 'flex' || disp === 'inline-flex';
|
|
1152
1394
|
return isFlex ? (
|
|
1153
1395
|
<>
|
|
1154
|
-
{row(
|
|
1396
|
+
{row(
|
|
1397
|
+
'flex-direction',
|
|
1398
|
+
iconseg('flex-direction', DIR_OPTS),
|
|
1399
|
+
undefined,
|
|
1400
|
+
'Direction'
|
|
1401
|
+
)}
|
|
1155
1402
|
{row(
|
|
1156
1403
|
'align-items',
|
|
1157
|
-
<AlignPad
|
|
1404
|
+
<AlignPad
|
|
1405
|
+
value={alignPadCell()}
|
|
1406
|
+
onChange={setAlignPadCell}
|
|
1407
|
+
ariaLabel="auto-layout alignment"
|
|
1408
|
+
/>,
|
|
1158
1409
|
provOf('align-items'),
|
|
1159
1410
|
'Alignment'
|
|
1160
1411
|
)}
|
|
1161
1412
|
{row('gap', vtok('gap', 'space'), undefined, 'Gap')}
|
|
1162
|
-
<div className="
|
|
1413
|
+
<div className="insp-cp-modes">
|
|
1163
1414
|
{sizeModeSeg('width')}
|
|
1164
1415
|
{sizeModeSeg('height')}
|
|
1165
1416
|
</div>
|
|
1166
|
-
<div className="
|
|
1167
|
-
<span className="
|
|
1417
|
+
<div className="insp-cp-box" aria-label="padding">
|
|
1418
|
+
<span className="insp-cp-boxtag insp-cp-boxtag--p">
|
|
1168
1419
|
{prov(provOf('padding-top'))}padding
|
|
1169
1420
|
</span>
|
|
1170
1421
|
{side('padding-top', 'padding')}
|
|
@@ -1172,12 +1423,14 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1172
1423
|
{side('padding-bottom', 'padding')}
|
|
1173
1424
|
{side('padding-left', 'padding')}
|
|
1174
1425
|
</div>
|
|
1175
|
-
<div className="
|
|
1426
|
+
<div className="insp-cp-clustermore-row">{moreBtn('Auto layout')}</div>
|
|
1176
1427
|
{designerMore['Auto layout']
|
|
1177
1428
|
? row(
|
|
1178
1429
|
'flex-wrap',
|
|
1179
1430
|
<Toggle
|
|
1180
|
-
checked={/^wrap/.test(
|
|
1431
|
+
checked={/^wrap/.test(
|
|
1432
|
+
authored['flex-wrap'] || cssHint(computed['flex-wrap']) || ''
|
|
1433
|
+
)}
|
|
1181
1434
|
label="wrap items"
|
|
1182
1435
|
ariaLabel="flex-wrap"
|
|
1183
1436
|
onChange={(w) => commit('flex-wrap', w ? 'wrap' : 'nowrap')}
|
|
@@ -1188,7 +1441,11 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1188
1441
|
: null}
|
|
1189
1442
|
</>
|
|
1190
1443
|
) : (
|
|
1191
|
-
<button
|
|
1444
|
+
<button
|
|
1445
|
+
type="button"
|
|
1446
|
+
className="insp-cp-makeflex"
|
|
1447
|
+
onClick={() => commit('display', 'flex')}
|
|
1448
|
+
>
|
|
1192
1449
|
+ Auto layout (flex)
|
|
1193
1450
|
</button>
|
|
1194
1451
|
);
|
|
@@ -1201,7 +1458,7 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1201
1458
|
<>
|
|
1202
1459
|
{row('width', num('width'), undefined, 'Width')}
|
|
1203
1460
|
{row('height', num('height'), undefined, 'Height')}
|
|
1204
|
-
<div className="
|
|
1461
|
+
<div className="insp-cp-clustermore-row">{moreBtn('Size')}</div>
|
|
1205
1462
|
{designerMore.Size ? (
|
|
1206
1463
|
<>
|
|
1207
1464
|
{row('min-width', num('min-width'), undefined, 'Min width')}
|
|
@@ -1218,34 +1475,54 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1218
1475
|
['position', 'top', 'right', 'bottom', 'left', 'z-index'],
|
|
1219
1476
|
<>
|
|
1220
1477
|
{row('position', csel('position', CSS_POSITION), undefined, 'Position')}
|
|
1221
|
-
<div
|
|
1222
|
-
|
|
1478
|
+
<div
|
|
1479
|
+
className="insp-cp-box insp-cp-box--inset"
|
|
1480
|
+
aria-label="position inset (top / right / bottom / left)"
|
|
1481
|
+
>
|
|
1482
|
+
<span className="insp-cp-boxtag insp-cp-boxtag--i">{prov(provOf('top'))}inset</span>
|
|
1223
1483
|
{inset('top')}
|
|
1224
1484
|
{inset('right')}
|
|
1225
1485
|
{inset('bottom')}
|
|
1226
1486
|
{inset('left')}
|
|
1227
|
-
<div className="
|
|
1487
|
+
<div className="insp-cp-boxcore insp-cp-boxcore--pos">
|
|
1228
1488
|
{authored.position || cssHint(computed.position) || 'static'}
|
|
1229
1489
|
</div>
|
|
1230
1490
|
</div>
|
|
1231
1491
|
{(authored.position || cssHint(computed.position) || 'static') === 'static' ? (
|
|
1232
|
-
<div className="
|
|
1233
|
-
top / right / bottom / left apply once position is relative, absolute, fixed, or
|
|
1492
|
+
<div className="insp-cp-note">
|
|
1493
|
+
top / right / bottom / left apply once position is relative, absolute, fixed, or
|
|
1494
|
+
sticky
|
|
1234
1495
|
</div>
|
|
1235
1496
|
) : null}
|
|
1236
|
-
<div className="
|
|
1237
|
-
{designerMore.Position
|
|
1497
|
+
<div className="insp-cp-clustermore-row">{moreBtn('Position')}</div>
|
|
1498
|
+
{designerMore.Position
|
|
1499
|
+
? row('z-index', num('z-index'), undefined, 'Layer order')
|
|
1500
|
+
: null}
|
|
1238
1501
|
</>,
|
|
1239
1502
|
false
|
|
1240
1503
|
)}
|
|
1241
1504
|
|
|
1242
|
-
{dsec(
|
|
1505
|
+
{dsec(
|
|
1506
|
+
'Fill',
|
|
1507
|
+
['background-color'],
|
|
1508
|
+
row('background-color', color('background-color'), undefined, 'Fill')
|
|
1509
|
+
)}
|
|
1243
1510
|
|
|
1244
|
-
{dsec(
|
|
1511
|
+
{dsec(
|
|
1512
|
+
'Stroke',
|
|
1513
|
+
['border-width', 'border-style', 'border-color'],
|
|
1514
|
+
row('border', borderControl(), provOf('border-width'), 'Stroke')
|
|
1515
|
+
)}
|
|
1245
1516
|
|
|
1246
1517
|
{dsec(
|
|
1247
1518
|
'Corner radius',
|
|
1248
|
-
[
|
|
1519
|
+
[
|
|
1520
|
+
'border-radius',
|
|
1521
|
+
'border-top-left-radius',
|
|
1522
|
+
'border-top-right-radius',
|
|
1523
|
+
'border-bottom-left-radius',
|
|
1524
|
+
'border-bottom-right-radius',
|
|
1525
|
+
],
|
|
1249
1526
|
row('border-radius', radiusControl(), provOf('border-radius'), 'Corner radius')
|
|
1250
1527
|
)}
|
|
1251
1528
|
|
|
@@ -1253,7 +1530,12 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1253
1530
|
'Effects',
|
|
1254
1531
|
['box-shadow', 'filter', 'mix-blend-mode'],
|
|
1255
1532
|
<>
|
|
1256
|
-
{row(
|
|
1533
|
+
{row(
|
|
1534
|
+
'box-shadow',
|
|
1535
|
+
tok('box-shadow', 'shadow') || text('box-shadow'),
|
|
1536
|
+
undefined,
|
|
1537
|
+
'Shadow'
|
|
1538
|
+
)}
|
|
1257
1539
|
{row('filter', blurControl(), provOf('filter'), 'Blur')}
|
|
1258
1540
|
{row('mix-blend-mode', csel('mix-blend-mode', CSS_BLEND_MODES), undefined, 'Blend')}
|
|
1259
1541
|
</>
|
|
@@ -1263,7 +1545,18 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1263
1545
|
|
|
1264
1546
|
{dsec(
|
|
1265
1547
|
'Text',
|
|
1266
|
-
[
|
|
1548
|
+
[
|
|
1549
|
+
'font-family',
|
|
1550
|
+
'color',
|
|
1551
|
+
'font-size',
|
|
1552
|
+
'font-weight',
|
|
1553
|
+
'line-height',
|
|
1554
|
+
'text-align',
|
|
1555
|
+
'letter-spacing',
|
|
1556
|
+
'font-style',
|
|
1557
|
+
'text-transform',
|
|
1558
|
+
'white-space',
|
|
1559
|
+
],
|
|
1267
1560
|
<>
|
|
1268
1561
|
{row('font-family', csel('font-family', CSS_FONTS), undefined, 'Font')}
|
|
1269
1562
|
{row('color', color('color'), undefined, 'Color')}
|
|
@@ -1271,13 +1564,28 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1271
1564
|
{row('font-weight', csel('font-weight', CSS_WEIGHTS), undefined, 'Weight')}
|
|
1272
1565
|
{row('line-height', num('line-height', 'lh'), undefined, 'Line height')}
|
|
1273
1566
|
{row('text-align', iconseg('text-align', TEXTALIGN_OPTS), undefined, 'Align')}
|
|
1274
|
-
<div className="
|
|
1567
|
+
<div className="insp-cp-clustermore-row">{moreBtn('Text')}</div>
|
|
1275
1568
|
{designerMore.Text ? (
|
|
1276
1569
|
<>
|
|
1277
|
-
{row(
|
|
1570
|
+
{row(
|
|
1571
|
+
'letter-spacing',
|
|
1572
|
+
num('letter-spacing', null, { min: -Infinity }),
|
|
1573
|
+
undefined,
|
|
1574
|
+
'Letter spacing'
|
|
1575
|
+
)}
|
|
1278
1576
|
{row('font-style', csel('font-style', CSS_FONT_STYLE), undefined, 'Style')}
|
|
1279
|
-
{row(
|
|
1280
|
-
|
|
1577
|
+
{row(
|
|
1578
|
+
'text-transform',
|
|
1579
|
+
csel('text-transform', CSS_TEXT_TRANSFORM),
|
|
1580
|
+
undefined,
|
|
1581
|
+
'Case'
|
|
1582
|
+
)}
|
|
1583
|
+
{row(
|
|
1584
|
+
'white-space',
|
|
1585
|
+
csel('white-space', CSS_WHITE_SPACE),
|
|
1586
|
+
undefined,
|
|
1587
|
+
'Whitespace'
|
|
1588
|
+
)}
|
|
1281
1589
|
</>
|
|
1282
1590
|
) : null}
|
|
1283
1591
|
</>
|
|
@@ -1286,8 +1594,10 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1286
1594
|
{dsec(
|
|
1287
1595
|
'Spacing',
|
|
1288
1596
|
['margin-top', 'margin-right', 'margin-bottom', 'margin-left'],
|
|
1289
|
-
<div className="
|
|
1290
|
-
<span className="
|
|
1597
|
+
<div className="insp-cp-box" aria-label="margin">
|
|
1598
|
+
<span className="insp-cp-boxtag insp-cp-boxtag--m">
|
|
1599
|
+
{prov(provOf('margin-top'))}margin
|
|
1600
|
+
</span>
|
|
1291
1601
|
{side('margin-top', 'margin')}
|
|
1292
1602
|
{side('margin-right', 'margin')}
|
|
1293
1603
|
{side('margin-bottom', 'margin')}
|
|
@@ -1298,350 +1608,369 @@ export function CssKnobs({ el, cfg, onOptimistic, onRecordEdit, onReplaceMedia,
|
|
|
1298
1608
|
{(() => {
|
|
1299
1609
|
const { showMedia, canReplace } = mediaGate();
|
|
1300
1610
|
return showMedia
|
|
1301
|
-
? dsec(
|
|
1611
|
+
? dsec(
|
|
1612
|
+
'Media',
|
|
1613
|
+
['object-fit', 'object-position', 'aspect-ratio'],
|
|
1614
|
+
mediaBody(canReplace)
|
|
1615
|
+
)
|
|
1302
1616
|
: null;
|
|
1303
1617
|
})()}
|
|
1304
1618
|
</>
|
|
1305
1619
|
) : (
|
|
1306
1620
|
<>
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
<>
|
|
1321
|
-
{row('display', csel('display', CSS_DISPLAYS))}
|
|
1322
|
-
{isFlex ? (
|
|
1621
|
+
{sec(
|
|
1622
|
+
'Layout',
|
|
1623
|
+
(() => {
|
|
1624
|
+
// Stage M2 — auto-layout editor. Present the flex vocabulary (Direction ·
|
|
1625
|
+
// Wrap · Distribution · Align · Gap) only when the element IS a flex/grid
|
|
1626
|
+
// container, so a plain block doesn't carry knobs that do nothing; a
|
|
1627
|
+
// non-container gets a one-click "make it a flex layout" instead (the
|
|
1628
|
+
// DDR-104 gap-degrades-gracefully precedent). align-items / justify-content
|
|
1629
|
+
// / gap apply to grid too; flex-direction / flex-wrap are flex-only.
|
|
1630
|
+
const disp = (authored.display || cssHint(computed.display) || '').trim();
|
|
1631
|
+
const isFlex = disp === 'flex' || disp === 'inline-flex';
|
|
1632
|
+
const isGrid = disp === 'grid' || disp === 'inline-grid';
|
|
1633
|
+
return (
|
|
1323
1634
|
<>
|
|
1324
|
-
{row('
|
|
1325
|
-
{
|
|
1635
|
+
{row('display', csel('display', CSS_DISPLAYS))}
|
|
1636
|
+
{isFlex ? (
|
|
1637
|
+
<>
|
|
1638
|
+
{row('flex-direction', iconseg('flex-direction', DIR_OPTS))}
|
|
1639
|
+
{row(
|
|
1640
|
+
'flex-wrap',
|
|
1641
|
+
<Toggle
|
|
1642
|
+
checked={/^wrap/.test(
|
|
1643
|
+
authored['flex-wrap'] || cssHint(computed['flex-wrap']) || ''
|
|
1644
|
+
)}
|
|
1645
|
+
label="wrap items"
|
|
1646
|
+
ariaLabel="flex-wrap"
|
|
1647
|
+
onChange={(w) => commit('flex-wrap', w ? 'wrap' : 'nowrap')}
|
|
1648
|
+
/>,
|
|
1649
|
+
provOf('flex-wrap')
|
|
1650
|
+
)}
|
|
1651
|
+
</>
|
|
1652
|
+
) : null}
|
|
1653
|
+
{isFlex || isGrid ? (
|
|
1654
|
+
<>
|
|
1655
|
+
{row('align-items', iconseg('align-items', ALIGNITEMS_OPTS))}
|
|
1656
|
+
{row('justify-content', iconseg('justify-content', JUSTIFY_OPTS))}
|
|
1657
|
+
{row('gap', vtok('gap', 'space'))}
|
|
1658
|
+
</>
|
|
1659
|
+
) : (
|
|
1660
|
+
<button
|
|
1661
|
+
type="button"
|
|
1662
|
+
className="insp-cp-makeflex"
|
|
1663
|
+
onClick={() => commit('display', 'flex')}
|
|
1664
|
+
>
|
|
1665
|
+
+ Auto layout (flex)
|
|
1666
|
+
</button>
|
|
1667
|
+
)}
|
|
1326
1668
|
</>
|
|
1669
|
+
);
|
|
1670
|
+
})()
|
|
1671
|
+
)}
|
|
1672
|
+
|
|
1673
|
+
{(() => {
|
|
1674
|
+
// feature-3-web-artboards T5 (absorbed feature-grid-track-editor
|
|
1675
|
+
// stub) — Grid section, only when the element IS a grid container.
|
|
1676
|
+
// Track parse/serialize is the SAME grid-track-handles.ts module the
|
|
1677
|
+
// on-canvas gutter-drag overlay uses, so the Inspector and the drag
|
|
1678
|
+
// handles never disagree about track shape.
|
|
1679
|
+
const disp = (authored.display || cssHint(computed.display) || '').trim();
|
|
1680
|
+
const isGrid = disp === 'grid' || disp === 'inline-grid';
|
|
1681
|
+
if (!isGrid) return null;
|
|
1682
|
+
const colsRaw = authored['grid-template-columns'] || '';
|
|
1683
|
+
const rowsRaw = authored['grid-template-rows'] || '';
|
|
1684
|
+
const cols = parseTrackList(colsRaw);
|
|
1685
|
+
const rows = parseTrackList(rowsRaw);
|
|
1686
|
+
const colsEditable = cols.length > 0 || !colsRaw.trim();
|
|
1687
|
+
const rowsEditable = rows.length > 0 || !rowsRaw.trim();
|
|
1688
|
+
return sec(
|
|
1689
|
+
'Grid',
|
|
1690
|
+
<>
|
|
1691
|
+
{colsEditable ? (
|
|
1692
|
+
<GridTracksEditor
|
|
1693
|
+
label="Columns"
|
|
1694
|
+
tracks={cols}
|
|
1695
|
+
editable={editable}
|
|
1696
|
+
onChange={(next) => commit('grid-template-columns', serializeTrackList(next))}
|
|
1697
|
+
/>
|
|
1698
|
+
) : (
|
|
1699
|
+
<div className="insp-cp-note">
|
|
1700
|
+
Columns use <code>{colsRaw}</code> — not editable as tracks here (repeat()/
|
|
1701
|
+
minmax()/subgrid); use /design:edit for these.
|
|
1702
|
+
</div>
|
|
1703
|
+
)}
|
|
1704
|
+
{rowsEditable ? (
|
|
1705
|
+
<GridTracksEditor
|
|
1706
|
+
label="Rows"
|
|
1707
|
+
tracks={rows}
|
|
1708
|
+
editable={editable}
|
|
1709
|
+
onChange={(next) => commit('grid-template-rows', serializeTrackList(next))}
|
|
1710
|
+
/>
|
|
1711
|
+
) : (
|
|
1712
|
+
<div className="insp-cp-note">
|
|
1713
|
+
Rows use <code>{rowsRaw}</code> — not editable as tracks here
|
|
1714
|
+
(repeat()/minmax()/ subgrid); use /design:edit for these.
|
|
1715
|
+
</div>
|
|
1716
|
+
)}
|
|
1717
|
+
</>
|
|
1718
|
+
);
|
|
1719
|
+
})()}
|
|
1720
|
+
|
|
1721
|
+
{sec(
|
|
1722
|
+
'Position',
|
|
1723
|
+
<>
|
|
1724
|
+
{row('position', csel('position', CSS_POSITION))}
|
|
1725
|
+
<div
|
|
1726
|
+
className="insp-cp-box insp-cp-box--inset"
|
|
1727
|
+
aria-label="position inset (top / right / bottom / left)"
|
|
1728
|
+
>
|
|
1729
|
+
<span className="insp-cp-boxtag insp-cp-boxtag--i">{prov(provOf('top'))}inset</span>
|
|
1730
|
+
{inset('top')}
|
|
1731
|
+
{inset('right')}
|
|
1732
|
+
{inset('bottom')}
|
|
1733
|
+
{inset('left')}
|
|
1734
|
+
<div className="insp-cp-boxcore insp-cp-boxcore--pos">
|
|
1735
|
+
{authored.position || cssHint(computed.position) || 'static'}
|
|
1736
|
+
</div>
|
|
1737
|
+
</div>
|
|
1738
|
+
{(authored.position || cssHint(computed.position) || 'static') === 'static' ? (
|
|
1739
|
+
<div className="insp-cp-note">
|
|
1740
|
+
top / right / bottom / left apply once position is relative, absolute, fixed, or
|
|
1741
|
+
sticky
|
|
1742
|
+
</div>
|
|
1327
1743
|
) : null}
|
|
1328
|
-
{
|
|
1329
|
-
<>
|
|
1330
|
-
{row('align-items', iconseg('align-items', ALIGNITEMS_OPTS))}
|
|
1331
|
-
{row('justify-content', iconseg('justify-content', JUSTIFY_OPTS))}
|
|
1332
|
-
{row('gap', vtok('gap', 'space'))}
|
|
1333
|
-
</>
|
|
1334
|
-
) : (
|
|
1335
|
-
<button
|
|
1336
|
-
type="button"
|
|
1337
|
-
className="st-cp-makeflex"
|
|
1338
|
-
disabled={!editable}
|
|
1339
|
-
onClick={() => commit('display', 'flex')}
|
|
1340
|
-
>
|
|
1341
|
-
+ Auto layout (flex)
|
|
1342
|
-
</button>
|
|
1343
|
-
)}
|
|
1744
|
+
{row('z-index', num('z-index'))}
|
|
1344
1745
|
</>
|
|
1345
|
-
)
|
|
1346
|
-
})()
|
|
1347
|
-
)}
|
|
1746
|
+
)}
|
|
1348
1747
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
const rowsRaw = authored['grid-template-rows'] || '';
|
|
1360
|
-
const cols = parseTrackList(colsRaw);
|
|
1361
|
-
const rows = parseTrackList(rowsRaw);
|
|
1362
|
-
const colsEditable = cols.length > 0 || !colsRaw.trim();
|
|
1363
|
-
const rowsEditable = rows.length > 0 || !rowsRaw.trim();
|
|
1364
|
-
return sec(
|
|
1365
|
-
'Grid',
|
|
1366
|
-
<>
|
|
1367
|
-
{colsEditable ? (
|
|
1368
|
-
<GridTracksEditor
|
|
1369
|
-
label="Columns"
|
|
1370
|
-
tracks={cols}
|
|
1371
|
-
editable={editable}
|
|
1372
|
-
onChange={(next) => commit('grid-template-columns', serializeTrackList(next))}
|
|
1373
|
-
/>
|
|
1374
|
-
) : (
|
|
1375
|
-
<div className="st-cp-note">
|
|
1376
|
-
Columns use <code>{colsRaw}</code> — not editable as tracks here (repeat()/
|
|
1377
|
-
minmax()/subgrid); use /design:edit for these.
|
|
1378
|
-
</div>
|
|
1379
|
-
)}
|
|
1380
|
-
{rowsEditable ? (
|
|
1381
|
-
<GridTracksEditor
|
|
1382
|
-
label="Rows"
|
|
1383
|
-
tracks={rows}
|
|
1384
|
-
editable={editable}
|
|
1385
|
-
onChange={(next) => commit('grid-template-rows', serializeTrackList(next))}
|
|
1386
|
-
/>
|
|
1387
|
-
) : (
|
|
1388
|
-
<div className="st-cp-note">
|
|
1389
|
-
Rows use <code>{rowsRaw}</code> — not editable as tracks here (repeat()/minmax()/
|
|
1390
|
-
subgrid); use /design:edit for these.
|
|
1391
|
-
</div>
|
|
1748
|
+
{(el.parentDisplay === 'grid' || el.parentDisplay === 'inline-grid') &&
|
|
1749
|
+
sec(
|
|
1750
|
+
'Grid item',
|
|
1751
|
+
<>
|
|
1752
|
+
<div className="insp-cp-note">
|
|
1753
|
+
Manual cell placement — <code>start / end</code> or <code>start / span N</code>.
|
|
1754
|
+
</div>
|
|
1755
|
+
{row('grid-column', text('grid-column'))}
|
|
1756
|
+
{row('grid-row', text('grid-row'))}
|
|
1757
|
+
</>
|
|
1392
1758
|
)}
|
|
1393
|
-
</>
|
|
1394
|
-
);
|
|
1395
|
-
})()}
|
|
1396
1759
|
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
<div className="st-cp-boxcore st-cp-boxcore--pos">
|
|
1408
|
-
{authored.position || cssHint(computed.position) || 'static'}
|
|
1409
|
-
</div>
|
|
1410
|
-
</div>
|
|
1411
|
-
{(authored.position || cssHint(computed.position) || 'static') === 'static' ? (
|
|
1412
|
-
<div className="st-cp-note">
|
|
1413
|
-
top / right / bottom / left apply once position is relative, absolute, fixed, or sticky
|
|
1414
|
-
</div>
|
|
1415
|
-
) : null}
|
|
1416
|
-
{row('z-index', num('z-index'))}
|
|
1417
|
-
</>
|
|
1418
|
-
)}
|
|
1419
|
-
|
|
1420
|
-
{(el.parentDisplay === 'grid' || el.parentDisplay === 'inline-grid') &&
|
|
1421
|
-
sec(
|
|
1422
|
-
'Grid item',
|
|
1423
|
-
<>
|
|
1424
|
-
<div className="st-cp-note">
|
|
1425
|
-
Manual cell placement — <code>start / end</code> or <code>start / span N</code>.
|
|
1426
|
-
</div>
|
|
1427
|
-
{row('grid-column', text('grid-column'))}
|
|
1428
|
-
{row('grid-row', text('grid-row'))}
|
|
1429
|
-
</>
|
|
1430
|
-
)}
|
|
1431
|
-
|
|
1432
|
-
{sec(
|
|
1433
|
-
'Typography',
|
|
1434
|
-
<>
|
|
1435
|
-
{row('font-family', csel('font-family', CSS_FONTS))}
|
|
1436
|
-
{row('color', color('color'))}
|
|
1437
|
-
{row('font-size', vtok('font-size', 'type'))}
|
|
1438
|
-
{row('font-weight', csel('font-weight', CSS_WEIGHTS))}
|
|
1439
|
-
{row('line-height', num('line-height', 'lh'))}
|
|
1440
|
-
{row('letter-spacing', num('letter-spacing', null, { min: -Infinity }))}
|
|
1441
|
-
{/* handoff — text-align as a lucide icon button group; B/I/U as a toggle
|
|
1760
|
+
{sec(
|
|
1761
|
+
'Typography',
|
|
1762
|
+
<>
|
|
1763
|
+
{row('font-family', csel('font-family', CSS_FONTS))}
|
|
1764
|
+
{row('color', color('color'))}
|
|
1765
|
+
{row('font-size', vtok('font-size', 'type'))}
|
|
1766
|
+
{row('font-weight', csel('font-weight', CSS_WEIGHTS))}
|
|
1767
|
+
{row('line-height', num('line-height', 'lh'))}
|
|
1768
|
+
{row('letter-spacing', num('letter-spacing', null, { min: -Infinity }))}
|
|
1769
|
+
{/* handoff — text-align as a lucide icon button group; B/I/U as a toggle
|
|
1442
1770
|
group mapped to font-weight / font-style / text-decoration. */}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1771
|
+
{row('text-align', iconseg('text-align', TEXTALIGN_OPTS))}
|
|
1772
|
+
{row('font-style', textStyleToggle(), provOf('font-style'))}
|
|
1773
|
+
{/* Stage B (Task B4) — promoted typography knobs (was DDR-104 OUT-list). */}
|
|
1774
|
+
{row('text-transform', csel('text-transform', CSS_TEXT_TRANSFORM))}
|
|
1775
|
+
{row('white-space', csel('white-space', CSS_WHITE_SPACE))}
|
|
1776
|
+
</>
|
|
1777
|
+
)}
|
|
1450
1778
|
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1779
|
+
{sec(
|
|
1780
|
+
'Spacing',
|
|
1781
|
+
<>
|
|
1782
|
+
<div className="insp-cp-box" aria-label="margin and padding">
|
|
1783
|
+
<span className="insp-cp-boxtag insp-cp-boxtag--m">
|
|
1784
|
+
{prov(provOf('margin-top'))}margin
|
|
1785
|
+
</span>
|
|
1786
|
+
{side('margin-top', 'margin')}
|
|
1787
|
+
{side('margin-right', 'margin')}
|
|
1788
|
+
{side('margin-bottom', 'margin')}
|
|
1789
|
+
{side('margin-left', 'margin')}
|
|
1790
|
+
<div className="insp-cp-boxpad">
|
|
1791
|
+
<span className="insp-cp-boxtag insp-cp-boxtag--p">
|
|
1792
|
+
{prov(provOf('padding-top'))}padding
|
|
1793
|
+
</span>
|
|
1794
|
+
{side('padding-top', 'padding')}
|
|
1795
|
+
{side('padding-right', 'padding')}
|
|
1796
|
+
{side('padding-bottom', 'padding')}
|
|
1797
|
+
{side('padding-left', 'padding')}
|
|
1798
|
+
<div className="insp-cp-boxcore">
|
|
1799
|
+
{/* handoff — prefer the AUTHORED size (updates live as you edit
|
|
1472
1800
|
width/height); el.bounds is stale until the canvas re-measures. */}
|
|
1473
|
-
|
|
1801
|
+
{Math.round(Number.parseFloat(authored.width) || el.bounds?.w || 0)} ×{' '}
|
|
1802
|
+
{Math.round(Number.parseFloat(authored.height) || el.bounds?.h || 0)}
|
|
1803
|
+
</div>
|
|
1804
|
+
</div>
|
|
1474
1805
|
</div>
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
</>
|
|
1478
|
-
)}
|
|
1806
|
+
</>
|
|
1807
|
+
)}
|
|
1479
1808
|
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1809
|
+
{sec(
|
|
1810
|
+
'Size',
|
|
1811
|
+
<>
|
|
1812
|
+
{/* Stage M1 — per-axis Fixed / Hug / Fill sizing mode (Figma parity). The
|
|
1484
1813
|
Fixed case leaves the numeric width/height knobs below in control. */}
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1814
|
+
<div className="insp-cp-modes">
|
|
1815
|
+
{sizeModeSeg('width')}
|
|
1816
|
+
{sizeModeSeg('height')}
|
|
1817
|
+
</div>
|
|
1818
|
+
{row('width', num('width'))}
|
|
1819
|
+
{row('height', num('height'))}
|
|
1820
|
+
{row('min-width', num('min-width'))}
|
|
1821
|
+
{row('max-width', num('max-width'))}
|
|
1822
|
+
{row('min-height', num('min-height'))}
|
|
1823
|
+
{row('max-height', num('max-height'))}
|
|
1824
|
+
{row('overflow', iconseg('overflow', OVERFLOW_OPTS))}
|
|
1825
|
+
{/* Stage M1 — flex-CHILD controls, only meaningful when the parent is a
|
|
1497
1826
|
flex container. align-self is the cross-axis override; flex-grow/shrink/
|
|
1498
1827
|
basis are the main-axis behavior the Fill mode writes for you. */}
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1828
|
+
{parentIsFlexChild ? (
|
|
1829
|
+
<>
|
|
1830
|
+
<div className="insp-cp-subhd">In flex parent</div>
|
|
1831
|
+
{row('align-self', csel('align-self', CSS_ALIGN_SELF))}
|
|
1832
|
+
{row('flex-grow', num('flex-grow', null, { unitless: true }))}
|
|
1833
|
+
{row('flex-shrink', num('flex-shrink', null, { unitless: true }))}
|
|
1834
|
+
{row('flex-basis', num('flex-basis'))}
|
|
1835
|
+
</>
|
|
1836
|
+
) : null}
|
|
1506
1837
|
</>
|
|
1507
|
-
)
|
|
1508
|
-
</>
|
|
1509
|
-
)}
|
|
1838
|
+
)}
|
|
1510
1839
|
|
|
1511
|
-
|
|
1840
|
+
{/* Stage B (Task B5) — Media framing (gate/body pulled into mediaGate()/
|
|
1512
1841
|
mediaBody() above, DDR-171, so Designer mode's "Media" cluster
|
|
1513
1842
|
reuses the identical content). */}
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1843
|
+
{(() => {
|
|
1844
|
+
const { showMedia, canReplace } = mediaGate();
|
|
1845
|
+
return showMedia ? sec('Media', mediaBody(canReplace)) : null;
|
|
1846
|
+
})()}
|
|
1518
1847
|
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1848
|
+
{sec(
|
|
1849
|
+
'Appearance',
|
|
1850
|
+
<>
|
|
1851
|
+
{row('background-color', color('background-color'))}
|
|
1852
|
+
{row('border-radius', radiusControl(), provOf('border-radius'))}
|
|
1853
|
+
{row('border', borderControl(), provOf('border-width'))}
|
|
1854
|
+
{row('box-shadow', tok('box-shadow', 'shadow') || text('box-shadow'))}
|
|
1855
|
+
{/* DDR-171 — blur + blend, real Advanced-mode rows (not Designer-exclusive);
|
|
1527
1856
|
also power Designer mode's "Effects" cluster. */}
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1857
|
+
{row('filter', blurControl(), provOf('filter'))}
|
|
1858
|
+
{row('mix-blend-mode', csel('mix-blend-mode', CSS_BLEND_MODES))}
|
|
1859
|
+
{row('opacity', opacityControl())}
|
|
1860
|
+
{/* Stage B (Task B4) — transform as a free-value row (mirrors box-shadow). */}
|
|
1861
|
+
{row('rotation', rotationControl(), provOf('transform'))}
|
|
1862
|
+
{row('transform', text('transform'))}
|
|
1863
|
+
{row('transform-origin', text('transform-origin'))}
|
|
1864
|
+
</>
|
|
1865
|
+
)}
|
|
1537
1866
|
|
|
1538
|
-
|
|
1867
|
+
{/* #5 — the idle/saved status now lives in each row's leading dot (a glow),
|
|
1539
1868
|
so the panel no longer carries a confusing standing 'written to source'
|
|
1540
1869
|
line. Only a hard ERROR surfaces here, with the failing property. */}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1870
|
+
{(() => {
|
|
1871
|
+
const err = Object.entries(status).find(
|
|
1872
|
+
([, s]) => typeof s === 'string' && s.startsWith('err:')
|
|
1873
|
+
);
|
|
1874
|
+
return err ? (
|
|
1875
|
+
<div className="insp-cp-save is-err" role="status">
|
|
1876
|
+
<StIcon name="x" size={12} />
|
|
1877
|
+
{err[0]}: {err[1].slice(4)}
|
|
1878
|
+
</div>
|
|
1879
|
+
) : null;
|
|
1880
|
+
})()}
|
|
1552
1881
|
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1882
|
+
{sec(
|
|
1883
|
+
'Advanced',
|
|
1884
|
+
<div className="insp-cp-advbody">
|
|
1885
|
+
{customStyleRows.length ? (
|
|
1886
|
+
<>
|
|
1887
|
+
<div className="insp-cp-advgrp">Custom CSS properties</div>
|
|
1888
|
+
{customStyleRows.map(([p, v]) => (
|
|
1889
|
+
<div className="insp-cp-kv" key={`cs:${p}`}>
|
|
1890
|
+
<input
|
|
1891
|
+
className="insp-cp-fin insp-cp-fin--ro"
|
|
1892
|
+
readOnly
|
|
1893
|
+
value={p}
|
|
1894
|
+
aria-label={`custom property ${p} name`}
|
|
1895
|
+
/>
|
|
1896
|
+
<input
|
|
1897
|
+
className="insp-cp-fin"
|
|
1898
|
+
key={`cs:${p}:${v}`}
|
|
1899
|
+
defaultValue={v}
|
|
1900
|
+
aria-label={`${p} value`}
|
|
1901
|
+
onKeyDown={(e) => {
|
|
1902
|
+
if (e.key === 'Enter') e.currentTarget.blur();
|
|
1903
|
+
}}
|
|
1904
|
+
onBlur={(e) => commitCustom(p, e.currentTarget.value)}
|
|
1905
|
+
/>
|
|
1906
|
+
<button
|
|
1907
|
+
type="button"
|
|
1908
|
+
className="insp-cp-kvx"
|
|
1909
|
+
aria-label={`remove ${p}`}
|
|
1910
|
+
title="remove"
|
|
1911
|
+
onClick={() => resetCustom(p)}
|
|
1912
|
+
>
|
|
1913
|
+
<StIcon name="x" size={11} />
|
|
1914
|
+
</button>
|
|
1915
|
+
</div>
|
|
1916
|
+
))}
|
|
1917
|
+
</>
|
|
1918
|
+
) : null}
|
|
1919
|
+
<div className="insp-cp-advgrp">Add CSS property</div>
|
|
1920
|
+
<RawKnob commit={commitCustom} />
|
|
1921
|
+
<div className="insp-cp-note">applied as-is — not token-bound</div>
|
|
1922
|
+
{attrRows.length ? (
|
|
1923
|
+
<>
|
|
1924
|
+
<div className="insp-cp-advgrp">Custom HTML attributes</div>
|
|
1925
|
+
{attrRows.map(([a, v]) => (
|
|
1926
|
+
<div className="insp-cp-kv" key={`at:${a}`}>
|
|
1927
|
+
<input
|
|
1928
|
+
className="insp-cp-fin insp-cp-fin--ro"
|
|
1929
|
+
readOnly
|
|
1930
|
+
value={a}
|
|
1931
|
+
aria-label={`attribute ${a} name`}
|
|
1932
|
+
/>
|
|
1933
|
+
<input
|
|
1934
|
+
className="insp-cp-fin"
|
|
1935
|
+
key={`at:${a}:${v}`}
|
|
1936
|
+
defaultValue={v}
|
|
1937
|
+
aria-label={`${a} value`}
|
|
1938
|
+
onKeyDown={(e) => {
|
|
1939
|
+
if (e.key === 'Enter') e.currentTarget.blur();
|
|
1940
|
+
}}
|
|
1941
|
+
onBlur={(e) => commitAttr(a, e.currentTarget.value)}
|
|
1942
|
+
/>
|
|
1943
|
+
<button
|
|
1944
|
+
type="button"
|
|
1945
|
+
className="insp-cp-kvx"
|
|
1946
|
+
aria-label={`remove ${a}`}
|
|
1947
|
+
title="remove"
|
|
1948
|
+
onClick={() => resetAttr(a)}
|
|
1949
|
+
>
|
|
1950
|
+
<StIcon name="x" size={11} />
|
|
1951
|
+
</button>
|
|
1952
|
+
</div>
|
|
1953
|
+
))}
|
|
1954
|
+
</>
|
|
1955
|
+
) : null}
|
|
1956
|
+
<div className="insp-cp-advgrp">Add HTML attribute</div>
|
|
1957
|
+
<AttrKnob commit={commitAttr} />
|
|
1958
|
+
</div>
|
|
1959
|
+
)}
|
|
1631
1960
|
</>
|
|
1632
1961
|
)}
|
|
1633
1962
|
|
|
1634
|
-
<div className="
|
|
1963
|
+
<div className="insp-cp-legend">
|
|
1635
1964
|
<span>
|
|
1636
|
-
<i className="
|
|
1965
|
+
<i className="insp-cp-prov insp-cp-prov--bound" aria-hidden="true" />
|
|
1637
1966
|
token
|
|
1638
1967
|
</span>
|
|
1639
1968
|
<span>
|
|
1640
|
-
<i className="
|
|
1969
|
+
<i className="insp-cp-prov insp-cp-prov--raw" aria-hidden="true" />
|
|
1641
1970
|
override
|
|
1642
1971
|
</span>
|
|
1643
1972
|
<span>
|
|
1644
|
-
<i className="
|
|
1973
|
+
<i className="insp-cp-prov insp-cp-prov--inherit" aria-hidden="true" />
|
|
1645
1974
|
inherited
|
|
1646
1975
|
</span>
|
|
1647
1976
|
</div>
|
|
@@ -1661,16 +1990,16 @@ export function RawKnob({ commit }) {
|
|
|
1661
1990
|
}
|
|
1662
1991
|
};
|
|
1663
1992
|
return (
|
|
1664
|
-
<div className="
|
|
1993
|
+
<div className="insp-cp-kv" data-testid="inspector-custom-css">
|
|
1665
1994
|
<input
|
|
1666
|
-
className="
|
|
1995
|
+
className="insp-cp-fin"
|
|
1667
1996
|
aria-label="custom property name"
|
|
1668
1997
|
placeholder="property"
|
|
1669
1998
|
value={prop}
|
|
1670
1999
|
onChange={(e) => setProp(e.target.value)}
|
|
1671
2000
|
/>
|
|
1672
2001
|
<input
|
|
1673
|
-
className="
|
|
2002
|
+
className="insp-cp-fin"
|
|
1674
2003
|
aria-label="custom property value"
|
|
1675
2004
|
placeholder="value"
|
|
1676
2005
|
value={val}
|
|
@@ -1696,16 +2025,16 @@ export function AttrKnob({ commit }) {
|
|
|
1696
2025
|
}
|
|
1697
2026
|
};
|
|
1698
2027
|
return (
|
|
1699
|
-
<div className="
|
|
2028
|
+
<div className="insp-cp-kv" data-testid="inspector-html-attrs">
|
|
1700
2029
|
<input
|
|
1701
|
-
className="
|
|
2030
|
+
className="insp-cp-fin"
|
|
1702
2031
|
aria-label="custom attribute name"
|
|
1703
2032
|
placeholder="data-…"
|
|
1704
2033
|
value={attr}
|
|
1705
2034
|
onChange={(e) => setAttr(e.target.value)}
|
|
1706
2035
|
/>
|
|
1707
2036
|
<input
|
|
1708
|
-
className="
|
|
2037
|
+
className="insp-cp-fin"
|
|
1709
2038
|
aria-label="custom attribute value"
|
|
1710
2039
|
placeholder="value"
|
|
1711
2040
|
value={val}
|