@jxsuite/studio 2.0.1 → 2.1.0
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/canvas.html +21 -0
- package/dist/chunks/Overlay.dev-qfjzkms8.js +23 -0
- package/dist/chunks/{Overlay.dev-cszx7yn5.js.map → Overlay.dev-qfjzkms8.js.map} +1 -1
- package/dist/chunks/{adapter-z8fkmbmv.js → adapter-qfnesn5v.js} +2 -2
- package/dist/chunks/{cf-settings-mmyv436d.js → cf-settings-73sh5z4p.js} +3 -3
- package/dist/chunks/{components-799jpvhm.js → components-2bpqp4mq.js} +5 -7
- package/dist/chunks/{components-799jpvhm.js.map → components-2bpqp4mq.js.map} +1 -1
- package/dist/chunks/content-source-34gnkbnn.js +38 -0
- package/dist/chunks/content-source-34gnkbnn.js.map +9 -0
- package/dist/chunks/convert-to-repeater-t8kxre5s.js +258 -0
- package/dist/chunks/convert-to-repeater-t8kxre5s.js.map +10 -0
- package/dist/chunks/extension-sections-6mqydz35.js +301 -0
- package/dist/chunks/extension-sections-6mqydz35.js.map +11 -0
- package/dist/chunks/files-8kn321h1.js +70 -0
- package/dist/chunks/files-8kn321h1.js.map +9 -0
- package/dist/chunks/{format-host-8jxwts2p.js → format-host-mkwsmt8d.js} +3 -3
- package/dist/chunks/git-panel-tjbr191d.js +51 -0
- package/dist/chunks/git-panel-tjbr191d.js.map +9 -0
- package/dist/chunks/{index-baeg2x3y.js → index-7pxchcce.js} +4 -3
- package/dist/chunks/{index-baeg2x3y.js.map → index-7pxchcce.js.map} +3 -3
- package/dist/chunks/{jx-validate-qx8degj7.js → jx-validate-v6qgknrs.js} +3 -3
- package/dist/chunks/layers-panel-87pb25km.js +58 -0
- package/dist/chunks/layers-panel-87pb25km.js.map +9 -0
- package/dist/chunks/{monaco-setup-zjdp9zdw.js → monaco-setup-e0yh25j4.js} +4 -75
- package/dist/chunks/{monaco-setup-zjdp9zdw.js.map → monaco-setup-e0yh25j4.js.map} +3 -4
- package/dist/chunks/publish-panel-m0fcgdrt.js +21 -0
- package/dist/chunks/publish-panel-m0fcgdrt.js.map +9 -0
- package/dist/chunks/quick-search-rhs6cbsb.js +53 -0
- package/dist/chunks/quick-search-rhs6cbsb.js.map +9 -0
- package/dist/chunks/right-panel-zpdxd98t.js +37 -0
- package/dist/chunks/right-panel-zpdxd98t.js.map +9 -0
- package/dist/chunks/section-registry-zmckaxf4.js +30 -0
- package/dist/chunks/section-registry-zmckaxf4.js.map +9 -0
- package/dist/chunks/sp-overlay.dev-9ran0sfq.js +18 -0
- package/dist/chunks/sp-overlay.dev-9ran0sfq.js.map +9 -0
- package/dist/chunks/sp-popover.dev-rebmdncr.js +9 -0
- package/dist/chunks/sp-popover.dev-rebmdncr.js.map +9 -0
- package/dist/chunks/sp-progress-circle.dev-5vkppfkt.js +15 -0
- package/dist/chunks/sp-progress-circle.dev-5vkppfkt.js.map +9 -0
- package/dist/chunks/sp-tooltip.dev-ykqrg8h5.js +15 -0
- package/dist/chunks/sp-tooltip.dev-ykqrg8h5.js.map +9 -0
- package/dist/chunks/{sp-tray.dev-pb2fsd65.js → sp-tray.dev-ey59vfh7.js} +10 -8
- package/dist/chunks/{sp-tray.dev-pb2fsd65.js.map → sp-tray.dev-ey59vfh7.js.map} +2 -2
- package/dist/chunks/{studio-9qr6fq7p.js → studio-0rqqhrdy.js} +10 -378
- package/dist/chunks/{studio-9qr6fq7p.js.map → studio-0rqqhrdy.js.map} +4 -14
- package/dist/chunks/{studio-5x6tqqec.js → studio-2sj1jj3v.js} +10 -8
- package/dist/chunks/{studio-5x6tqqec.js.map → studio-2sj1jj3v.js.map} +2 -2
- package/dist/chunks/{studio-h3fw0wn8.js → studio-3fk1ac9z.js} +6 -4
- package/dist/chunks/{studio-h3fw0wn8.js.map → studio-3fk1ac9z.js.map} +2 -2
- package/dist/chunks/studio-41exgzhq.js +6690 -0
- package/dist/chunks/studio-41exgzhq.js.map +38 -0
- package/dist/chunks/{studio-7v2bpweq.js → studio-4mqb9a0j.js} +6 -4
- package/dist/chunks/{studio-7v2bpweq.js.map → studio-4mqb9a0j.js.map} +2 -2
- package/dist/chunks/studio-50k77cca.js +1787 -0
- package/dist/chunks/studio-50k77cca.js.map +18 -0
- package/dist/chunks/{studio-56v3zwk6.js → studio-6a0h7sne.js} +10 -8
- package/dist/chunks/{studio-56v3zwk6.js.map → studio-6a0h7sne.js.map} +2 -2
- package/dist/chunks/studio-6f0am8f2.js +53 -0
- package/dist/chunks/studio-6f0am8f2.js.map +10 -0
- package/dist/chunks/studio-6nmjc5qk.js +7002 -0
- package/dist/chunks/studio-6nmjc5qk.js.map +32 -0
- package/dist/chunks/studio-7afd21nw.js +67 -0
- package/dist/chunks/studio-7afd21nw.js.map +10 -0
- package/dist/chunks/{studio-xze4zrs1.js → studio-7bmdvzne.js} +2 -2
- package/dist/chunks/studio-7bmdvzne.js.map +10 -0
- package/dist/chunks/studio-8jpzqk5s.js +128 -0
- package/dist/chunks/studio-8jpzqk5s.js.map +10 -0
- package/dist/chunks/studio-94m77tgk.js +1482 -0
- package/dist/chunks/studio-94m77tgk.js.map +13 -0
- package/dist/chunks/studio-9je6w5sq.js +1000 -0
- package/dist/chunks/studio-9je6w5sq.js.map +16 -0
- package/dist/chunks/{studio-w7c6kvk7.js → studio-a7pzveq1.js} +2 -2
- package/dist/chunks/{studio-gs6kqdt1.js → studio-adn0z1k3.js} +14 -8
- package/dist/chunks/{studio-gs6kqdt1.js.map → studio-adn0z1k3.js.map} +3 -3
- package/dist/chunks/{studio-kr88ryr7.js → studio-bsxxx3x2.js} +17 -15
- package/dist/chunks/{studio-kr88ryr7.js.map → studio-bsxxx3x2.js.map} +7 -6
- package/dist/chunks/studio-bw5dz6km.js +608 -0
- package/dist/chunks/studio-bw5dz6km.js.map +21 -0
- package/dist/chunks/studio-c6s5getc.js +4232 -0
- package/dist/chunks/studio-c6s5getc.js.map +39 -0
- package/dist/chunks/studio-cjm7fdjf.js +451 -0
- package/dist/chunks/studio-cjm7fdjf.js.map +14 -0
- package/dist/chunks/{studio-cx91mnh8.js → studio-ckwz4d3x.js} +53 -53
- package/dist/chunks/{studio-cx91mnh8.js.map → studio-ckwz4d3x.js.map} +5 -5
- package/dist/chunks/studio-dg7zyt5x.js +28 -0
- package/dist/chunks/studio-dg7zyt5x.js.map +10 -0
- package/dist/chunks/studio-dzcyvvvz.js +166 -0
- package/dist/chunks/studio-dzcyvvvz.js.map +10 -0
- package/dist/chunks/{studio-7kqe41sa.js → studio-evkr5d3b.js} +15 -7
- package/dist/chunks/{studio-7kqe41sa.js.map → studio-evkr5d3b.js.map} +5 -4
- package/dist/chunks/studio-f12h6177.js +411 -0
- package/dist/chunks/studio-f12h6177.js.map +13 -0
- package/dist/chunks/studio-hbp1s8m9.js +1817 -0
- package/dist/chunks/studio-hbp1s8m9.js.map +14 -0
- package/dist/chunks/studio-k2sxjph5.js +15295 -0
- package/dist/chunks/studio-k2sxjph5.js.map +235 -0
- package/dist/chunks/studio-myje51t3.js +385 -0
- package/dist/chunks/studio-myje51t3.js.map +12 -0
- package/dist/chunks/studio-na6rwzhw.js +353 -0
- package/dist/chunks/studio-na6rwzhw.js.map +11 -0
- package/dist/chunks/{studio-4k0m4fmp.js → studio-p471gg5n.js} +126 -3
- package/dist/chunks/studio-p471gg5n.js.map +14 -0
- package/dist/chunks/{studio-9bjwf0d4.js → studio-rgwcpast.js} +5 -46
- package/dist/chunks/{studio-9bjwf0d4.js.map → studio-rgwcpast.js.map} +4 -5
- package/dist/chunks/{studio-esrewxap.js → studio-s519zc99.js} +3 -3
- package/dist/chunks/studio-sas7mt3k.js +75 -0
- package/dist/chunks/studio-sas7mt3k.js.map +10 -0
- package/dist/chunks/studio-t5wqwzdh.js +74 -0
- package/dist/chunks/studio-t5wqwzdh.js.map +10 -0
- package/dist/chunks/{studio-9qpspwfn.js → studio-temv5bw4.js} +5 -5
- package/dist/chunks/{studio-9qpspwfn.js.map → studio-temv5bw4.js.map} +1 -1
- package/dist/chunks/{studio-qkvt37c0.js → studio-tr20m8g8.js} +669 -18
- package/dist/chunks/studio-tr20m8g8.js.map +9 -0
- package/dist/chunks/{studio-v7jkjqng.js → studio-v96qfnww.js} +5514 -4291
- package/dist/chunks/studio-v96qfnww.js.map +54 -0
- package/dist/chunks/studio-vcetc91k.js +659 -0
- package/dist/chunks/studio-vcetc91k.js.map +10 -0
- package/dist/chunks/{studio-jm0z592w.js → studio-vmymjefp.js} +2972 -4937
- package/dist/chunks/studio-vmymjefp.js.map +98 -0
- package/dist/chunks/{studio-bghqfmea.js → studio-wwseqyw0.js} +2 -2
- package/dist/chunks/studio-x9hmy5kr.js +390 -0
- package/dist/chunks/studio-x9hmy5kr.js.map +10 -0
- package/dist/chunks/studio-xa0ce0n7.js +335 -0
- package/dist/chunks/studio-xa0ce0n7.js.map +10 -0
- package/dist/chunks/studio-xm3dbxvn.js +378 -0
- package/dist/chunks/studio-xm3dbxvn.js.map +19 -0
- package/dist/chunks/{studio-nqw433kv.js → studio-xmvbhg31.js} +2 -2
- package/dist/chunks/studio-zv37yrfa.js +1054 -0
- package/dist/chunks/studio-zv37yrfa.js.map +13 -0
- package/dist/chunks/{ws-client-q7hkz3j9.js → ws-client-654ts66j.js} +6 -4
- package/dist/chunks/ws-client-654ts66j.js.map +11 -0
- package/dist/iframe-entry.js +668 -230
- package/dist/studio.js +21080 -32585
- package/index.html +35 -4685
- package/package.json +17 -15
- package/src/about/about-modal.ts +42 -11
- package/src/browse/library-commands.ts +240 -0
- package/src/browse/library-layouts.ts +369 -0
- package/src/browse/library-model.ts +396 -0
- package/src/browse/library-pane.ts +1049 -0
- package/src/browse/library-preview.ts +252 -0
- package/src/browse/library-source.ts +150 -0
- package/src/canvas/canvas-helpers.ts +33 -9
- package/src/canvas/canvas-live-render.ts +45 -29
- package/src/canvas/canvas-patcher.ts +151 -31
- package/src/canvas/canvas-perf.ts +46 -7
- package/src/canvas/canvas-render.ts +1092 -220
- package/src/canvas/canvas-surface.ts +240 -0
- package/src/canvas/canvas-utils.ts +1166 -124
- package/src/canvas/iframe-drop.ts +2 -1
- package/src/canvas/iframe-entry.ts +241 -4
- package/src/canvas/iframe-host.ts +1226 -143
- package/src/canvas/iframe-inline-edit.ts +31 -0
- package/src/canvas/iframe-interaction.ts +76 -16
- package/src/canvas/iframe-keys.ts +107 -45
- package/src/canvas/iframe-overlay.ts +38 -1
- package/src/canvas/iframe-protocol.ts +137 -2
- package/src/canvas/iframe-render.ts +70 -2
- package/src/canvas/iframe-slash.ts +6 -0
- package/src/canvas/path-mapping.ts +56 -6
- package/src/canvas/surface-registry.ts +292 -0
- package/src/collab/collab-commands.ts +244 -0
- package/src/collab/collab-session.ts +198 -32
- package/src/collab/collab-state.ts +28 -2
- package/src/collab/presence-chips.ts +100 -9
- package/src/commands/active-registry.ts +42 -0
- package/src/commands/app-commands.ts +176 -0
- package/src/commands/budget.ts +158 -0
- package/src/commands/command-args.ts +253 -0
- package/src/commands/context.ts +387 -0
- package/src/commands/defaults.ts +580 -0
- package/src/commands/keymap.ts +571 -0
- package/src/commands/levels.ts +345 -0
- package/src/commands/live-context.ts +193 -0
- package/src/commands/reference.ts +227 -0
- package/src/commands/registry.ts +293 -0
- package/src/component-props.ts +3 -2
- package/src/content/draft-state.ts +106 -0
- package/src/content/entry-commands.ts +282 -0
- package/src/content/entry-editor.ts +327 -0
- package/src/content/entry-fields.ts +116 -0
- package/src/content/entry-model.ts +175 -0
- package/src/editor/canvas-context-menu.ts +17 -11
- package/src/editor/canvas-slash-bridge.ts +11 -4
- package/src/editor/context-menu.ts +804 -204
- package/src/editor/convert-to-component.ts +31 -10
- package/src/editor/convert-to-repeater.ts +3 -2
- package/src/editor/inline-edit-apply.ts +5 -5
- package/src/editor/inline-edit.ts +86 -50
- package/src/editor/insert-zone-action.ts +1 -1
- package/src/editor/shortcuts.ts +1043 -329
- package/src/editor/slash-menu.ts +1 -0
- package/src/files/elements.ts +166 -0
- package/src/files/file-ops.ts +178 -31
- package/src/files/files.ts +898 -268
- package/src/files/fs-events.ts +21 -0
- package/src/files/media-meta.ts +203 -0
- package/src/files/media-paths.ts +141 -0
- package/src/files/media-upload.ts +7 -3
- package/src/files/media-usage.ts +189 -0
- package/src/github/github-auth.ts +235 -33
- package/src/github/github-publish.ts +80 -21
- package/src/grid/grid-controller.ts +152 -12
- package/src/grid/grid-layout.ts +225 -20
- package/src/grid/grid-open.ts +120 -0
- package/src/grid/grid-panel.ts +554 -39
- package/src/grid/grid-source.ts +27 -1
- package/src/grid/redirects-grid.ts +599 -0
- package/src/grid/redirects.ts +398 -0
- package/src/grid/sources/content-source.ts +108 -2
- package/src/i18n/i18n-commands.ts +322 -0
- package/src/new-project/add-repo-modal.ts +8 -10
- package/src/new-project/import-tab.ts +7 -0
- package/src/new-project/location-fields.ts +9 -1
- package/src/new-project/new-project-modal.ts +221 -245
- package/src/packages/jxsuite-update.ts +97 -48
- package/src/packages/pull-package-sync.ts +18 -9
- package/src/page-params.ts +2 -1
- package/src/panels/activity-bar.ts +152 -91
- package/src/panels/activity-panel.ts +481 -0
- package/src/panels/ai-chat/chat-markdown.ts +8 -3
- package/src/panels/ai-chat/chat-view.ts +245 -18
- package/src/panels/ai-chat/composer.ts +31 -5
- package/src/panels/ai-chat/sessions-view.ts +17 -10
- package/src/panels/ai-panel.ts +279 -53
- package/src/panels/block-action-bar.ts +1115 -224
- package/src/panels/bottom-dock.ts +337 -0
- package/src/panels/canvas-dnd-bridge.ts +37 -8
- package/src/panels/chat-panel.ts +29 -12
- package/src/panels/data-explorer.ts +254 -112
- package/src/panels/data-grid.ts +10 -4
- package/src/panels/dnd.ts +28 -51
- package/src/panels/editors.ts +434 -107
- package/src/panels/elements-panel.ts +66 -2
- package/src/panels/empty-state.ts +112 -0
- package/src/panels/events-panel.ts +596 -82
- package/src/panels/formula-workspace.ts +408 -218
- package/src/panels/frontmatter-fields.ts +51 -10
- package/src/panels/frontmatter-panel.ts +357 -79
- package/src/panels/git-panel.ts +375 -164
- package/src/panels/head-panel.ts +791 -85
- package/src/panels/i18n-panel.ts +592 -0
- package/src/panels/imports-panel.ts +95 -85
- package/src/panels/jump-bar.ts +584 -0
- package/src/panels/layers-panel.ts +1106 -328
- package/src/panels/left-panel.ts +109 -204
- package/src/panels/navigator-panels.ts +131 -0
- package/src/panels/overlays.ts +7 -2
- package/src/panels/pane-context.ts +1477 -0
- package/src/panels/pane-grid.ts +406 -0
- package/src/panels/panel-registry.ts +340 -0
- package/src/panels/panel-scheduler.ts +75 -0
- package/src/panels/problems-panel.ts +234 -0
- package/src/panels/properties-panel.ts +946 -1139
- package/src/panels/provenance.ts +258 -0
- package/src/panels/quick-search.ts +791 -122
- package/src/panels/right-panel.ts +228 -102
- package/src/panels/seo-modal.ts +395 -0
- package/src/panels/settings-pane.ts +203 -0
- package/src/panels/signals-panel.ts +354 -137
- package/src/panels/statement-editor.ts +41 -25
- package/src/panels/statusbar.ts +342 -106
- package/src/panels/style-panel.ts +974 -463
- package/src/panels/style-utils.ts +3 -3
- package/src/panels/stylebook-doc.ts +4 -2
- package/src/panels/stylebook-layers-panel.ts +3 -2
- package/src/panels/stylebook-panel.ts +51 -26
- package/src/panels/tab-strip.ts +1058 -78
- package/src/panels/target-line.ts +274 -0
- package/src/panels/toolbar.ts +631 -484
- package/src/panels/welcome-screen.ts +301 -198
- package/src/platform-errors.ts +26 -3
- package/src/platform.ts +96 -2
- package/src/platforms/cloud.ts +71 -8
- package/src/platforms/devserver.ts +92 -29
- package/src/publish/deploy-checklist.ts +383 -0
- package/src/publish/pages-service.ts +10 -1
- package/src/publish/publish-commands.ts +218 -0
- package/src/publish/publish-panel.ts +110 -16
- package/src/recent-projects.ts +3 -2
- package/src/services/a11y-report.ts +505 -0
- package/src/services/ai-models.ts +30 -1
- package/src/services/ai-project-tools.ts +29 -10
- package/src/services/ai-system-prompt.ts +53 -14
- package/src/services/ai-tools.ts +39 -3
- package/src/services/ai-writes.ts +154 -0
- package/src/services/announce.ts +97 -0
- package/src/services/automation.ts +424 -175
- package/src/services/cem-export.ts +9 -4
- package/src/services/clock.ts +61 -0
- package/src/services/document-assistant.ts +36 -8
- package/src/services/idle.ts +179 -0
- package/src/services/import-client.ts +26 -0
- package/src/services/monaco-buffer.ts +627 -0
- package/src/services/monaco-lazy.ts +36 -0
- package/src/services/notify.ts +271 -0
- package/src/services/profile.ts +155 -0
- package/src/services/references.ts +0 -0
- package/src/services/token-lint.ts +3 -2
- package/src/services/tool-executor.ts +53 -7
- package/src/services/trusted-types.ts +123 -0
- package/src/settings/contexts-section.ts +427 -0
- package/src/settings/contributed-section.ts +149 -11
- package/src/settings/css-vars-editor.ts +306 -349
- package/src/settings/defs-editor.ts +93 -34
- package/src/settings/dependencies-editor.ts +7 -7
- package/src/settings/extension-sections.ts +37 -5
- package/src/settings/general-settings.ts +204 -121
- package/src/settings/locales-section.ts +347 -0
- package/src/settings/preferences-accounts.ts +140 -0
- package/src/settings/preferences-dialog.ts +620 -0
- package/src/settings/preferences-keymap.ts +270 -0
- package/src/settings/project-sections.ts +260 -0
- package/src/settings/section-registry.ts +169 -0
- package/src/settings/settings-document.ts +385 -0
- package/src/shell.ts +1549 -0
- package/src/site-context.ts +45 -20
- package/src/state.ts +14 -275
- package/src/store.ts +88 -43
- package/src/studio.ts +790 -346
- package/src/style/live-preview.ts +36 -0
- package/src/style/project-styles.ts +349 -0
- package/src/style/token-ref.ts +123 -0
- package/src/tabs/patch-ops.ts +16 -4
- package/src/tabs/project-config.ts +416 -0
- package/src/tabs/selection.ts +323 -0
- package/src/tabs/tab.ts +182 -47
- package/src/tabs/transact.ts +209 -28
- package/src/types.ts +68 -13
- package/src/ui/ai-credentials-form.ts +39 -35
- package/src/ui/ai-managed-connect.ts +7 -1
- package/src/ui/dynamic-slot.ts +224 -81
- package/src/ui/expression-editor.ts +71 -63
- package/src/ui/field-input.ts +4 -6
- package/src/ui/field-row.ts +215 -38
- package/src/ui/form-controls.ts +194 -7
- package/src/ui/layers.ts +492 -69
- package/src/ui/media-picker.ts +115 -25
- package/src/ui/panel-resize.ts +109 -91
- package/src/ui/progress-modal.ts +131 -50
- package/src/ui/regions.ts +462 -0
- package/src/ui/schema-form.ts +229 -45
- package/src/ui/spectrum.ts +24 -8
- package/src/ui/timing.ts +49 -0
- package/src/ui/value-selector.ts +20 -0
- package/src/ui/value-source.ts +348 -0
- package/src/ui/virtual-window.ts +400 -0
- package/src/utils/edit-display.ts +3 -2
- package/src/utils/inherited-style.ts +67 -37
- package/src/view.ts +64 -78
- package/src/workspace/pane-derive.ts +1258 -0
- package/src/workspace/session.ts +317 -0
- package/src/workspace/workspace.ts +1345 -23
- package/styles/canvas.css +653 -0
- package/styles/forced-colors.css +106 -0
- package/styles/inspector.css +1454 -0
- package/styles/overlays.css +2704 -0
- package/styles/panels.css +1701 -0
- package/styles/shell.css +1423 -0
- package/styles/tokens.css +151 -0
- package/dist/chunks/Overlay.dev-cszx7yn5.js +0 -22
- package/dist/chunks/extension-sections-qr3drkkw.js +0 -531
- package/dist/chunks/extension-sections-qr3drkkw.js.map +0 -12
- package/dist/chunks/files-j8a1t06k.js +0 -50
- package/dist/chunks/files-j8a1t06k.js.map +0 -9
- package/dist/chunks/git-panel-xtq5z81x.js +0 -28
- package/dist/chunks/git-panel-xtq5z81x.js.map +0 -9
- package/dist/chunks/layers-panel-ancn2wpq.js +0 -26
- package/dist/chunks/layers-panel-ancn2wpq.js.map +0 -9
- package/dist/chunks/settings-modal-17ttr96g.js +0 -29
- package/dist/chunks/settings-modal-17ttr96g.js.map +0 -9
- package/dist/chunks/sp-overlay.dev-earn5as8.js +0 -17
- package/dist/chunks/sp-overlay.dev-earn5as8.js.map +0 -9
- package/dist/chunks/sp-popover.dev-frxtfejn.js +0 -8
- package/dist/chunks/sp-popover.dev-frxtfejn.js.map +0 -9
- package/dist/chunks/sp-progress-circle.dev-7tvw34h8.js +0 -14
- package/dist/chunks/sp-progress-circle.dev-7tvw34h8.js.map +0 -9
- package/dist/chunks/sp-tooltip.dev-a9fywesm.js +0 -21
- package/dist/chunks/sp-tooltip.dev-a9fywesm.js.map +0 -10
- package/dist/chunks/studio-0xgs7xrs.js +0 -429
- package/dist/chunks/studio-0xgs7xrs.js.map +0 -13
- package/dist/chunks/studio-4d8hzcz5.js +0 -3427
- package/dist/chunks/studio-4d8hzcz5.js.map +0 -26
- package/dist/chunks/studio-4k0m4fmp.js.map +0 -13
- package/dist/chunks/studio-9smfzqhc.js +0 -19
- package/dist/chunks/studio-9smfzqhc.js.map +0 -10
- package/dist/chunks/studio-jm0z592w.js.map +0 -115
- package/dist/chunks/studio-m2t4mdg5.js +0 -1854
- package/dist/chunks/studio-m2t4mdg5.js.map +0 -18
- package/dist/chunks/studio-n4p11dfy.js +0 -853
- package/dist/chunks/studio-n4p11dfy.js.map +0 -12
- package/dist/chunks/studio-qkvt37c0.js.map +0 -9
- package/dist/chunks/studio-sjh1wt1a.js +0 -3744
- package/dist/chunks/studio-sjh1wt1a.js.map +0 -22
- package/dist/chunks/studio-v7jkjqng.js.map +0 -46
- package/dist/chunks/studio-xq0t7n5t.js +0 -140
- package/dist/chunks/studio-xq0t7n5t.js.map +0 -10
- package/dist/chunks/studio-xze4zrs1.js.map +0 -10
- package/dist/chunks/studio-yfcstdzy.js +0 -399
- package/dist/chunks/studio-yfcstdzy.js.map +0 -12
- package/dist/chunks/studio-zp7jncs8.js +0 -469
- package/dist/chunks/studio-zp7jncs8.js.map +0 -14
- package/dist/chunks/ws-client-q7hkz3j9.js.map +0 -11
- package/src/browse/browse-modal.ts +0 -69
- package/src/browse/browse.ts +0 -904
- package/src/canvas/canvas-diff.ts +0 -216
- package/src/canvas/nested-site-style.ts +0 -58
- package/src/new-project/design-fields.ts +0 -264
- package/src/new-project/templates.ts +0 -61
- package/src/panels/tab-bar.ts +0 -548
- package/src/settings/settings-modal.ts +0 -203
- /package/dist/chunks/{adapter-z8fkmbmv.js.map → adapter-qfnesn5v.js.map} +0 -0
- /package/dist/chunks/{cf-settings-mmyv436d.js.map → cf-settings-73sh5z4p.js.map} +0 -0
- /package/dist/chunks/{format-host-8jxwts2p.js.map → format-host-mkwsmt8d.js.map} +0 -0
- /package/dist/chunks/{jx-validate-qx8degj7.js.map → jx-validate-v6qgknrs.js.map} +0 -0
- /package/dist/chunks/{studio-w7c6kvk7.js.map → studio-a7pzveq1.js.map} +0 -0
- /package/dist/chunks/{studio-esrewxap.js.map → studio-s519zc99.js.map} +0 -0
- /package/dist/chunks/{studio-bghqfmea.js.map → studio-wwseqyw0.js.map} +0 -0
- /package/dist/chunks/{studio-nqw433kv.js.map → studio-xmvbhg31.js.map} +0 -0
package/styles/shell.css
ADDED
|
@@ -0,0 +1,1423 @@
|
|
|
1
|
+
/* Jx Studio — app shell.
|
|
2
|
+
Load after tokens.css.
|
|
3
|
+
|
|
4
|
+
Owns the #app grid and the regions it lays out: the Command Bar, the pane's
|
|
5
|
+
tab strip and chrome layer, the Navigator and Inspector docks, the statusbar,
|
|
6
|
+
the collapsed-sidebar variants, the tab strip and the drag-to-resize
|
|
7
|
+
handles. */
|
|
8
|
+
|
|
9
|
+
/* ─── Layout ─────────────────────────────────── */
|
|
10
|
+
/* Four columns: rail | navigator | pane | inspector. The assistant's fifth column is gone —
|
|
11
|
+
it shares the inspector's cell, because folding it in costs zero additional width (spec §12
|
|
12
|
+
region ⑨). The rail is 56px, not 48px, because every button now carries a text label.
|
|
13
|
+
|
|
14
|
+
Five rows: command bar | pane tabs | stage | BOTTOM DOCK | status bar. The dock's row is a
|
|
15
|
+
full-width track but the dock occupies only the pane's COLUMN, which is the whole of §12
|
|
16
|
+
region ⑪'s claim — it sits under the pane grid, not under the window, so opening it never
|
|
17
|
+
narrows the Navigator or the Inspector. The two side docks span rows 2–4 across it. */
|
|
18
|
+
/* The Bottom dock's track, declared on :root for the reason tokens.css gives for the two panel
|
|
19
|
+
widths: `src/shell.ts`'s applyDockLayout() writes it as an inline style on
|
|
20
|
+
document.documentElement, and a definition on any closer ancestor of #app would shadow that
|
|
21
|
+
override and freeze the dock. It must also be declared SOMEWHERE — an unset custom property
|
|
22
|
+
inside the grid-template-rows shorthand invalidates the whole declaration at computed-value
|
|
23
|
+
time, and the shell would paint one frame with no grid at all. */
|
|
24
|
+
:root {
|
|
25
|
+
--dock-h-bottom: 220px;
|
|
26
|
+
}
|
|
27
|
+
/* FOUR rows, not five. The pane's tab strip used to own row 2 of the APPLICATION grid, which is
|
|
28
|
+
the one thing a per-pane surface can never be — so it is a row of the pane's own cell now and
|
|
29
|
+
this grid is one row shorter.
|
|
30
|
+
|
|
31
|
+
The columns are NAMED. Every rule below addressed them by index, so the four surfaces that left
|
|
32
|
+
this grid would have meant re-counting `grid-column: 4` at seven sites and getting it wrong at
|
|
33
|
+
one of them. A name survives an insertion; a number does not. */
|
|
34
|
+
#app {
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-rows: 36px minmax(0, 1fr) var(--dock-h-bottom) 24px;
|
|
37
|
+
grid-template-columns:
|
|
38
|
+
[rail] 56px
|
|
39
|
+
[nav] var(--panel-w-left)
|
|
40
|
+
[pane] 1fr
|
|
41
|
+
[insp] var(--panel-w-right);
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
#toolbar {
|
|
45
|
+
grid-column: 1 / -1;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 6px;
|
|
49
|
+
padding: 0 8px;
|
|
50
|
+
background: var(--bg);
|
|
51
|
+
border-bottom: 1px solid var(--border);
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
/* Drive the responsive collapse below off the toolbar's own width. */
|
|
55
|
+
container-type: inline-size;
|
|
56
|
+
container-name: toolbar;
|
|
57
|
+
}
|
|
58
|
+
#toolbar > :not(.window-controls) {
|
|
59
|
+
min-width: 0;
|
|
60
|
+
flex-shrink: 1;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
}
|
|
63
|
+
#toolbar > .tb-spacer {
|
|
64
|
+
flex-shrink: 999;
|
|
65
|
+
}
|
|
66
|
+
#toolbar.electrobun-webkit-app-region-drag {
|
|
67
|
+
-webkit-app-region: drag;
|
|
68
|
+
}
|
|
69
|
+
#toolbar sp-action-group,
|
|
70
|
+
#toolbar sp-action-button {
|
|
71
|
+
-webkit-app-region: no-drag;
|
|
72
|
+
}
|
|
73
|
+
/* An icon that means the same thing on the other side.
|
|
74
|
+
Spectrum's workflow set ships `rail-right-open`/`rail-right-close` and no left-hand pair, so the
|
|
75
|
+
Navigator's dock toggle reflects the Inspector's rather than inventing a third glyph — which is
|
|
76
|
+
also what keeps the two buttons reading as a pair. */
|
|
77
|
+
.window-controls {
|
|
78
|
+
margin-left: auto;
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ─── ①b Layout tabs ─────────────────────────── */
|
|
83
|
+
/* Plain text, not a segmented control: a layout is a place you are, and the Command Bar says which
|
|
84
|
+
one the same way the tab strip says which document. Every panel stays reachable from every
|
|
85
|
+
layout — these tabs reconfigure, they never remove. */
|
|
86
|
+
.tb-layouts {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 2px;
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
}
|
|
92
|
+
.tb-layout,
|
|
93
|
+
.tb-layout-add {
|
|
94
|
+
padding: 2px 8px;
|
|
95
|
+
border: none;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
background: none;
|
|
98
|
+
color: var(--fg-dim);
|
|
99
|
+
font: inherit;
|
|
100
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
}
|
|
104
|
+
.tb-layout:hover,
|
|
105
|
+
.tb-layout-add:hover {
|
|
106
|
+
background: var(--hover-bg);
|
|
107
|
+
color: var(--fg);
|
|
108
|
+
}
|
|
109
|
+
.tb-layout.active {
|
|
110
|
+
color: var(--fg);
|
|
111
|
+
background: var(--hover-bg);
|
|
112
|
+
}
|
|
113
|
+
.tb-layout-add {
|
|
114
|
+
padding: 2px 6px;
|
|
115
|
+
}
|
|
116
|
+
.window-controls .csd-close:hover {
|
|
117
|
+
background: var(--spectrum-negative-background-color-default, #e34850);
|
|
118
|
+
color: white;
|
|
119
|
+
}
|
|
120
|
+
/* macOS traffic-light buttons */
|
|
121
|
+
.window-controls.mac {
|
|
122
|
+
margin-left: 0;
|
|
123
|
+
margin-right: 8px;
|
|
124
|
+
order: -1;
|
|
125
|
+
gap: 8px;
|
|
126
|
+
}
|
|
127
|
+
.window-controls.mac sp-action-button {
|
|
128
|
+
/* explicit min/max needed: as a flex item the button's auto min-width
|
|
129
|
+
is the inner shadow-DOM button's min-content size (~28px), which
|
|
130
|
+
would override width and squash the circle into an oval */
|
|
131
|
+
--spectrum-actionbutton-min-width: 12px;
|
|
132
|
+
--mod-actionbutton-min-width: 12px;
|
|
133
|
+
--mod-actionbutton-height: 12px;
|
|
134
|
+
--mod-actionbutton-edge-to-text: 0px;
|
|
135
|
+
--mod-actionbutton-edge-to-visual-only: 0px;
|
|
136
|
+
width: 12px;
|
|
137
|
+
min-width: 12px;
|
|
138
|
+
max-width: 12px;
|
|
139
|
+
height: 12px;
|
|
140
|
+
min-height: 12px;
|
|
141
|
+
max-height: 12px;
|
|
142
|
+
border-radius: 50%;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
border: none;
|
|
145
|
+
padding: 0;
|
|
146
|
+
}
|
|
147
|
+
.window-controls.mac .csd-close {
|
|
148
|
+
background: #ff5f57;
|
|
149
|
+
}
|
|
150
|
+
.window-controls.mac .csd-minimize {
|
|
151
|
+
background: #febc2e;
|
|
152
|
+
}
|
|
153
|
+
.window-controls.mac .csd-maximize {
|
|
154
|
+
background: #28c840;
|
|
155
|
+
}
|
|
156
|
+
.window-controls.mac sp-action-button:hover {
|
|
157
|
+
filter: brightness(0.85);
|
|
158
|
+
}
|
|
159
|
+
.window-controls.mac sp-action-button sp-icon-remove,
|
|
160
|
+
.window-controls.mac sp-action-button sp-icon-rectangle,
|
|
161
|
+
.window-controls.mac sp-action-button sp-icon-close {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
.window-controls.mac:hover sp-action-button sp-icon-remove,
|
|
165
|
+
.window-controls.mac:hover sp-action-button sp-icon-rectangle,
|
|
166
|
+
.window-controls.mac:hover sp-action-button sp-icon-close {
|
|
167
|
+
display: inline-flex;
|
|
168
|
+
color: rgba(0, 0, 0, 0.5);
|
|
169
|
+
width: 8px;
|
|
170
|
+
height: 8px;
|
|
171
|
+
}
|
|
172
|
+
/* Resize edge zones */
|
|
173
|
+
.resize-edge {
|
|
174
|
+
position: fixed;
|
|
175
|
+
z-index: 9999;
|
|
176
|
+
-webkit-app-region: no-drag;
|
|
177
|
+
}
|
|
178
|
+
.resize-edge.top {
|
|
179
|
+
top: 0;
|
|
180
|
+
left: 6px;
|
|
181
|
+
right: 6px;
|
|
182
|
+
height: 4px;
|
|
183
|
+
cursor: ns-resize;
|
|
184
|
+
}
|
|
185
|
+
.resize-edge.bottom {
|
|
186
|
+
bottom: 0;
|
|
187
|
+
left: 6px;
|
|
188
|
+
right: 6px;
|
|
189
|
+
height: 4px;
|
|
190
|
+
cursor: ns-resize;
|
|
191
|
+
}
|
|
192
|
+
.resize-edge.left {
|
|
193
|
+
left: 0;
|
|
194
|
+
top: 6px;
|
|
195
|
+
bottom: 6px;
|
|
196
|
+
width: 4px;
|
|
197
|
+
cursor: ew-resize;
|
|
198
|
+
}
|
|
199
|
+
.resize-edge.right {
|
|
200
|
+
right: 0;
|
|
201
|
+
top: 6px;
|
|
202
|
+
bottom: 6px;
|
|
203
|
+
width: 4px;
|
|
204
|
+
cursor: ew-resize;
|
|
205
|
+
}
|
|
206
|
+
.resize-edge.top-left {
|
|
207
|
+
top: 0;
|
|
208
|
+
left: 0;
|
|
209
|
+
width: 6px;
|
|
210
|
+
height: 6px;
|
|
211
|
+
cursor: nwse-resize;
|
|
212
|
+
}
|
|
213
|
+
.resize-edge.top-right {
|
|
214
|
+
top: 0;
|
|
215
|
+
right: 0;
|
|
216
|
+
width: 6px;
|
|
217
|
+
height: 6px;
|
|
218
|
+
cursor: nesw-resize;
|
|
219
|
+
}
|
|
220
|
+
.resize-edge.bottom-left {
|
|
221
|
+
bottom: 0;
|
|
222
|
+
left: 0;
|
|
223
|
+
width: 6px;
|
|
224
|
+
height: 6px;
|
|
225
|
+
cursor: nesw-resize;
|
|
226
|
+
}
|
|
227
|
+
.resize-edge.bottom-right {
|
|
228
|
+
bottom: 0;
|
|
229
|
+
right: 0;
|
|
230
|
+
width: 6px;
|
|
231
|
+
height: 6px;
|
|
232
|
+
cursor: nwse-resize;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* ─── The pane grid ──────────────────────────── */
|
|
236
|
+
/* One track per pane, laid out by `panels/pane-grid.ts` — the reconciler writes
|
|
237
|
+
`grid-template-columns` because the track count depends on `workspace.panes.length`, which the
|
|
238
|
+
shell's own layout effect must not read. */
|
|
239
|
+
#pane-grid {
|
|
240
|
+
grid-row: 2;
|
|
241
|
+
grid-column: pane;
|
|
242
|
+
display: grid;
|
|
243
|
+
grid-template-rows: 1fr;
|
|
244
|
+
min-width: 0;
|
|
245
|
+
min-height: 0;
|
|
246
|
+
}
|
|
247
|
+
/* One PANE. Its own two-row grid: the strip, then everything stacked in the cell below it.
|
|
248
|
+
|
|
249
|
+
ONE COLUMN, declared. Three children name `grid-row: 2` in order to share the lower cell, and
|
|
250
|
+
auto-placement answers that by inventing an implicit column each: the jump bar, the chrome layer
|
|
251
|
+
and the stage lined up side by side, the stage taking a third of the pane and pinning the
|
|
252
|
+
document to the right edge. `grid-template-columns` is what makes "share the cell" mean it, and
|
|
253
|
+
every row-2 child restates `grid-column: 1` so a future fourth one cannot re-open the same hole.
|
|
254
|
+
|
|
255
|
+
No unit test can see this: happy-dom does no layout, so every rect is zero and the grid the
|
|
256
|
+
assertions describe is the one they were written from. The screenshot lane is what caught it. */
|
|
257
|
+
.pane {
|
|
258
|
+
display: grid;
|
|
259
|
+
grid-template-columns: minmax(0, 1fr);
|
|
260
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
261
|
+
min-width: 0;
|
|
262
|
+
min-height: 0;
|
|
263
|
+
}
|
|
264
|
+
.pane-strip {
|
|
265
|
+
grid-row: 1;
|
|
266
|
+
grid-column: 1;
|
|
267
|
+
min-height: 0;
|
|
268
|
+
min-width: 0;
|
|
269
|
+
}
|
|
270
|
+
.pane-strip:empty {
|
|
271
|
+
display: none;
|
|
272
|
+
}
|
|
273
|
+
/* ⑥ The jump bar. Like `.pane-chrome` below it, this shares the pane's lower cell rather than
|
|
274
|
+
owning a row, so the two bars stack over the stage instead of pushing it down. `align-self:
|
|
275
|
+
start` is what keeps it the height of its own content instead of the height of the cell, so the
|
|
276
|
+
bar never covers the stage it sits above. */
|
|
277
|
+
.pane-jump {
|
|
278
|
+
grid-row: 2;
|
|
279
|
+
grid-column: 1;
|
|
280
|
+
align-self: start;
|
|
281
|
+
position: relative;
|
|
282
|
+
z-index: 3;
|
|
283
|
+
min-width: 0;
|
|
284
|
+
max-width: 100%;
|
|
285
|
+
}
|
|
286
|
+
/* The pane's chrome layer — regions ⑦ and ⑩. It shares the stage's cell; the layer itself is
|
|
287
|
+
inert and only its two children take the pointer. `canvas.css` owns their looks.
|
|
288
|
+
|
|
289
|
+
Offset by `--jump-bar-h` for the same reason `.pane-stage` is: the jump bar is stacked over the
|
|
290
|
+
same cell, and one projection per bar is what keeps "no tab open" costing no dead band. */
|
|
291
|
+
.pane-chrome {
|
|
292
|
+
grid-row: 2;
|
|
293
|
+
grid-column: 1;
|
|
294
|
+
margin-top: var(--jump-bar-h, 0px);
|
|
295
|
+
position: relative;
|
|
296
|
+
z-index: 2;
|
|
297
|
+
min-width: 0;
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
justify-content: space-between;
|
|
301
|
+
pointer-events: none;
|
|
302
|
+
}
|
|
303
|
+
.pane-chrome > * {
|
|
304
|
+
pointer-events: auto;
|
|
305
|
+
}
|
|
306
|
+
/* The stage. Offset by the SUM of the two bars stacked over this cell — `--jump-bar-h` (written by
|
|
307
|
+
`panels/jump-bar.ts`) and `--pane-context-h` (by `panels/pane-context.ts`) — so neither ever
|
|
308
|
+
covers the document, and by zero when no tab is open, so the welcome screen does not sit under a
|
|
309
|
+
band nothing explains. Two variables rather than one total: each bar owns its own answer, and a
|
|
310
|
+
bar that renders nothing writes 0 without knowing the other exists. */
|
|
311
|
+
.pane-stage {
|
|
312
|
+
grid-row: 2;
|
|
313
|
+
grid-column: 1;
|
|
314
|
+
margin-top: calc(var(--jump-bar-h, 0px) + var(--pane-context-h, 0px));
|
|
315
|
+
position: relative;
|
|
316
|
+
overflow: auto;
|
|
317
|
+
background: var(--bg-panel);
|
|
318
|
+
min-width: 0;
|
|
319
|
+
}
|
|
320
|
+
#activity-bar {
|
|
321
|
+
grid-row: 2 / 4;
|
|
322
|
+
grid-column: rail;
|
|
323
|
+
display: flex;
|
|
324
|
+
flex-direction: column;
|
|
325
|
+
background: var(--bg);
|
|
326
|
+
border-right: 1px solid var(--border);
|
|
327
|
+
}
|
|
328
|
+
#left-panel {
|
|
329
|
+
grid-row: 2 / 4;
|
|
330
|
+
grid-column: nav;
|
|
331
|
+
overflow-y: auto;
|
|
332
|
+
background: var(--bg-panel);
|
|
333
|
+
border-right: 1px solid var(--border);
|
|
334
|
+
}
|
|
335
|
+
/* The Inspector dock. A flex COLUMN, not a scroll box: the header and the four-tab strip are
|
|
336
|
+
fixed, and the selected tab's body is the only thing that scrolls — which is what lets the
|
|
337
|
+
Assistant tab (whose chat owns its own scrolling) share the dock at zero extra width. */
|
|
338
|
+
#right-panel {
|
|
339
|
+
grid-row: 2 / 4;
|
|
340
|
+
grid-column: insp;
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-direction: column;
|
|
343
|
+
overflow: hidden;
|
|
344
|
+
background: var(--bg);
|
|
345
|
+
border-left: 1px solid var(--border);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* ─── ⑪ Bottom dock ───────────────────────────── */
|
|
349
|
+
/* A flex COLUMN in the pane's own grid column: the tab strip is fixed and the selected tab's body
|
|
350
|
+
is the only thing that scrolls. It borders on the top only — the sides are the pane's, and a
|
|
351
|
+
box drawn inside the stage's column would read as a second panel rather than as the floor. */
|
|
352
|
+
#bottom-dock {
|
|
353
|
+
grid-row: 3;
|
|
354
|
+
grid-column: pane;
|
|
355
|
+
display: flex;
|
|
356
|
+
flex-direction: column;
|
|
357
|
+
min-width: 0;
|
|
358
|
+
min-height: 0;
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
background: var(--bg-panel);
|
|
361
|
+
border-top: 1px solid var(--border);
|
|
362
|
+
}
|
|
363
|
+
#bottom-dock:empty {
|
|
364
|
+
display: none;
|
|
365
|
+
}
|
|
366
|
+
.bd-strip {
|
|
367
|
+
display: flex;
|
|
368
|
+
align-items: center;
|
|
369
|
+
gap: 4px;
|
|
370
|
+
flex-shrink: 0;
|
|
371
|
+
padding: 0 4px;
|
|
372
|
+
border-bottom: 1px solid var(--border);
|
|
373
|
+
}
|
|
374
|
+
.bd-tabs {
|
|
375
|
+
flex: 1;
|
|
376
|
+
min-width: 0;
|
|
377
|
+
}
|
|
378
|
+
.bd-close {
|
|
379
|
+
flex-shrink: 0;
|
|
380
|
+
padding: 2px 6px;
|
|
381
|
+
border: none;
|
|
382
|
+
border-radius: var(--spectrum-corner-radius-75, 2px);
|
|
383
|
+
background: none;
|
|
384
|
+
color: var(--fg-dim);
|
|
385
|
+
font: inherit;
|
|
386
|
+
line-height: 1;
|
|
387
|
+
cursor: pointer;
|
|
388
|
+
}
|
|
389
|
+
.bd-close:hover {
|
|
390
|
+
background: var(--hover-bg);
|
|
391
|
+
color: var(--fg);
|
|
392
|
+
}
|
|
393
|
+
/* The one scrolling region. `min-height: 0` because a flex item's auto minimum is its content,
|
|
394
|
+
which would push the dock past its own track instead of scrolling inside it. */
|
|
395
|
+
.bd-body {
|
|
396
|
+
flex: 1;
|
|
397
|
+
min-height: 0;
|
|
398
|
+
overflow-y: auto;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* ─── Collapsed sidebars ──────────────────────── */
|
|
402
|
+
#app.left-collapsed {
|
|
403
|
+
--panel-w-left: 0px;
|
|
404
|
+
}
|
|
405
|
+
#app.left-collapsed #left-panel,
|
|
406
|
+
#app.left-collapsed #resize-left {
|
|
407
|
+
display: none;
|
|
408
|
+
}
|
|
409
|
+
#app.right-collapsed {
|
|
410
|
+
--panel-w-right: 0px;
|
|
411
|
+
}
|
|
412
|
+
#app.right-collapsed #right-panel,
|
|
413
|
+
#app.right-collapsed #resize-right {
|
|
414
|
+
display: none;
|
|
415
|
+
}
|
|
416
|
+
#app.bottom-collapsed {
|
|
417
|
+
--dock-h-bottom: 0px;
|
|
418
|
+
}
|
|
419
|
+
#app.bottom-collapsed #bottom-dock,
|
|
420
|
+
#app.bottom-collapsed #resize-bottom {
|
|
421
|
+
display: none;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* ─── AI Panel Chat UI ──────────────────────────── */
|
|
425
|
+
.ai-tab-body {
|
|
426
|
+
display: flex;
|
|
427
|
+
flex-direction: column;
|
|
428
|
+
flex: 1;
|
|
429
|
+
min-height: 0;
|
|
430
|
+
overflow: hidden;
|
|
431
|
+
}
|
|
432
|
+
.ai-chat-header {
|
|
433
|
+
flex-shrink: 0;
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
gap: 4px;
|
|
437
|
+
padding: 4px 6px;
|
|
438
|
+
min-width: 0;
|
|
439
|
+
border-bottom: 1px solid var(--border);
|
|
440
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
441
|
+
}
|
|
442
|
+
.ai-chat-title {
|
|
443
|
+
min-width: 0;
|
|
444
|
+
overflow: hidden;
|
|
445
|
+
text-overflow: ellipsis;
|
|
446
|
+
white-space: nowrap;
|
|
447
|
+
font-weight: 600;
|
|
448
|
+
}
|
|
449
|
+
/* The conversation's share of the model's context. Quiet until it matters: past half the window
|
|
450
|
+
the assistant starts dropping the oldest turns, and this is the only thing that says so. */
|
|
451
|
+
.ai-tokens {
|
|
452
|
+
font-size: 10px;
|
|
453
|
+
font-variant-numeric: tabular-nums;
|
|
454
|
+
color: var(--fg-dim);
|
|
455
|
+
padding: 0 4px;
|
|
456
|
+
border-radius: var(--radius);
|
|
457
|
+
}
|
|
458
|
+
.ai-tokens--warn {
|
|
459
|
+
color: var(--warning, #d98b28);
|
|
460
|
+
background: color-mix(in srgb, var(--warning, #d98b28) 14%, transparent);
|
|
461
|
+
}
|
|
462
|
+
.ai-header-spacer {
|
|
463
|
+
flex: 1;
|
|
464
|
+
}
|
|
465
|
+
/* THE chat scroller — bounded by min-height:0 at every flex level above. */
|
|
466
|
+
.ai-chat-messages {
|
|
467
|
+
flex: 1 1 0;
|
|
468
|
+
min-height: 0;
|
|
469
|
+
overflow-y: auto;
|
|
470
|
+
overscroll-behavior: contain;
|
|
471
|
+
display: flex;
|
|
472
|
+
flex-direction: column;
|
|
473
|
+
gap: 8px;
|
|
474
|
+
padding: 8px;
|
|
475
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
476
|
+
line-height: 1.5;
|
|
477
|
+
}
|
|
478
|
+
.ai-chat-empty {
|
|
479
|
+
color: var(--fg-dim);
|
|
480
|
+
text-align: center;
|
|
481
|
+
padding: 24px 12px;
|
|
482
|
+
}
|
|
483
|
+
.ai-msg-user {
|
|
484
|
+
align-self: flex-end;
|
|
485
|
+
max-width: 85%;
|
|
486
|
+
background: var(--accent-15);
|
|
487
|
+
border-radius: 8px 8px 2px 8px;
|
|
488
|
+
padding: 6px 10px;
|
|
489
|
+
}
|
|
490
|
+
.ai-msg-user-body {
|
|
491
|
+
white-space: pre-wrap;
|
|
492
|
+
overflow-wrap: anywhere;
|
|
493
|
+
}
|
|
494
|
+
.ai-msg-assistant {
|
|
495
|
+
align-self: stretch;
|
|
496
|
+
min-width: 0;
|
|
497
|
+
}
|
|
498
|
+
.ai-msg-md {
|
|
499
|
+
overflow-wrap: anywhere;
|
|
500
|
+
}
|
|
501
|
+
.ai-msg-md > *:first-child {
|
|
502
|
+
margin-top: 0;
|
|
503
|
+
}
|
|
504
|
+
.ai-msg-md > *:last-child {
|
|
505
|
+
margin-bottom: 0;
|
|
506
|
+
}
|
|
507
|
+
.ai-msg-md code {
|
|
508
|
+
background: rgba(0, 0, 0, 0.3);
|
|
509
|
+
padding: 1px 4px;
|
|
510
|
+
border-radius: var(--radius);
|
|
511
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
512
|
+
font-family: var(--font-mono);
|
|
513
|
+
}
|
|
514
|
+
.ai-msg-md pre {
|
|
515
|
+
background: rgba(0, 0, 0, 0.3);
|
|
516
|
+
padding: 8px;
|
|
517
|
+
border-radius: var(--radius);
|
|
518
|
+
overflow-x: auto;
|
|
519
|
+
margin: 6px 0;
|
|
520
|
+
}
|
|
521
|
+
.ai-msg-md pre code {
|
|
522
|
+
background: none;
|
|
523
|
+
padding: 0;
|
|
524
|
+
}
|
|
525
|
+
.ai-msg-md table {
|
|
526
|
+
border-collapse: collapse;
|
|
527
|
+
margin: 6px 0;
|
|
528
|
+
}
|
|
529
|
+
.ai-msg-md th,
|
|
530
|
+
.ai-msg-md td {
|
|
531
|
+
border: 1px solid var(--border);
|
|
532
|
+
padding: 2px 6px;
|
|
533
|
+
}
|
|
534
|
+
.ai-msg-streaming {
|
|
535
|
+
white-space: pre-wrap;
|
|
536
|
+
overflow-wrap: anywhere;
|
|
537
|
+
}
|
|
538
|
+
.ai-msg-streaming::after {
|
|
539
|
+
content: "▋";
|
|
540
|
+
color: var(--accent);
|
|
541
|
+
animation: ai-cursor-blink 1s steps(2) infinite;
|
|
542
|
+
}
|
|
543
|
+
@keyframes ai-cursor-blink {
|
|
544
|
+
50% {
|
|
545
|
+
opacity: 0;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
.ai-msg-typing {
|
|
549
|
+
display: flex;
|
|
550
|
+
gap: 4px;
|
|
551
|
+
padding: 4px 2px;
|
|
552
|
+
}
|
|
553
|
+
.ai-msg-typing span {
|
|
554
|
+
width: 6px;
|
|
555
|
+
height: 6px;
|
|
556
|
+
border-radius: 50%;
|
|
557
|
+
background: var(--fg-dim);
|
|
558
|
+
animation: ai-typing-bounce 1.2s infinite;
|
|
559
|
+
}
|
|
560
|
+
.ai-msg-typing span:nth-child(2) {
|
|
561
|
+
animation-delay: 0.2s;
|
|
562
|
+
}
|
|
563
|
+
.ai-msg-typing span:nth-child(3) {
|
|
564
|
+
animation-delay: 0.4s;
|
|
565
|
+
}
|
|
566
|
+
@keyframes ai-typing-bounce {
|
|
567
|
+
0%,
|
|
568
|
+
60%,
|
|
569
|
+
100% {
|
|
570
|
+
opacity: 0.3;
|
|
571
|
+
}
|
|
572
|
+
30% {
|
|
573
|
+
opacity: 1;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
.ai-msg-tools {
|
|
577
|
+
display: flex;
|
|
578
|
+
flex-direction: column;
|
|
579
|
+
gap: 4px;
|
|
580
|
+
margin-top: 6px;
|
|
581
|
+
}
|
|
582
|
+
.ai-tool-chip {
|
|
583
|
+
display: inline-flex;
|
|
584
|
+
align-items: center;
|
|
585
|
+
gap: 6px;
|
|
586
|
+
align-self: flex-start;
|
|
587
|
+
max-width: 100%;
|
|
588
|
+
overflow: hidden;
|
|
589
|
+
text-overflow: ellipsis;
|
|
590
|
+
white-space: nowrap;
|
|
591
|
+
background: var(--hover-bg);
|
|
592
|
+
border-left: 2px solid var(--accent);
|
|
593
|
+
border-radius: var(--radius);
|
|
594
|
+
padding: 3px 8px;
|
|
595
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
596
|
+
color: var(--fg-dim);
|
|
597
|
+
font-family: var(--font-mono);
|
|
598
|
+
}
|
|
599
|
+
.ai-msg-tool-error {
|
|
600
|
+
background: var(--hover-bg);
|
|
601
|
+
border-left: 2px solid var(--danger);
|
|
602
|
+
border-radius: var(--radius);
|
|
603
|
+
padding: 4px 8px;
|
|
604
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
605
|
+
color: var(--fg-dim);
|
|
606
|
+
}
|
|
607
|
+
.ai-msg-error {
|
|
608
|
+
border-left: 2px solid var(--danger);
|
|
609
|
+
border-radius: var(--radius);
|
|
610
|
+
background: var(--hover-bg);
|
|
611
|
+
padding: 6px 8px;
|
|
612
|
+
color: var(--danger);
|
|
613
|
+
}
|
|
614
|
+
.ai-msg-error-advice {
|
|
615
|
+
margin-top: 4px;
|
|
616
|
+
color: var(--fg-dim);
|
|
617
|
+
}
|
|
618
|
+
.ai-msg-context-chips {
|
|
619
|
+
display: flex;
|
|
620
|
+
flex-wrap: wrap;
|
|
621
|
+
gap: 4px;
|
|
622
|
+
margin-top: 6px;
|
|
623
|
+
}
|
|
624
|
+
.ai-context-chip {
|
|
625
|
+
display: inline-flex;
|
|
626
|
+
align-items: center;
|
|
627
|
+
gap: 2px;
|
|
628
|
+
max-width: 100%;
|
|
629
|
+
overflow: hidden;
|
|
630
|
+
text-overflow: ellipsis;
|
|
631
|
+
white-space: nowrap;
|
|
632
|
+
background: var(--bg-input);
|
|
633
|
+
border: 1px solid var(--border);
|
|
634
|
+
border-radius: var(--radius);
|
|
635
|
+
padding: 1px 6px;
|
|
636
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
637
|
+
color: var(--fg-dim);
|
|
638
|
+
}
|
|
639
|
+
/* Sticky composer */
|
|
640
|
+
.ai-composer {
|
|
641
|
+
flex-shrink: 0;
|
|
642
|
+
display: flex;
|
|
643
|
+
flex-direction: column;
|
|
644
|
+
gap: 6px;
|
|
645
|
+
padding: 8px;
|
|
646
|
+
border-top: 1px solid var(--border);
|
|
647
|
+
}
|
|
648
|
+
.ai-composer-chips {
|
|
649
|
+
display: flex;
|
|
650
|
+
flex-wrap: wrap;
|
|
651
|
+
gap: 4px;
|
|
652
|
+
}
|
|
653
|
+
.ai-composer-input {
|
|
654
|
+
width: 100%;
|
|
655
|
+
box-sizing: border-box;
|
|
656
|
+
resize: none;
|
|
657
|
+
min-height: 30px;
|
|
658
|
+
max-height: 120px;
|
|
659
|
+
overflow-y: auto;
|
|
660
|
+
background: var(--bg-input);
|
|
661
|
+
color: var(--fg);
|
|
662
|
+
border: 1px solid var(--border);
|
|
663
|
+
border-radius: var(--radius);
|
|
664
|
+
padding: 6px 8px;
|
|
665
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
666
|
+
font-family: inherit;
|
|
667
|
+
line-height: 1.4;
|
|
668
|
+
}
|
|
669
|
+
/* Pointer focus gets the accent border only; keyboard focus additionally gets a real ring.
|
|
670
|
+
`outline: none` on plain `:focus` is what makes a control untraversable by keyboard, so the
|
|
671
|
+
suppression is scoped to `:focus:not(:focus-visible)` and never applies to the caret's own path. */
|
|
672
|
+
.ai-composer-input:focus {
|
|
673
|
+
border-color: var(--accent);
|
|
674
|
+
}
|
|
675
|
+
.ai-composer-input:focus:not(:focus-visible) {
|
|
676
|
+
outline: none;
|
|
677
|
+
}
|
|
678
|
+
.ai-composer-input:focus-visible {
|
|
679
|
+
outline: 2px solid var(--accent);
|
|
680
|
+
outline-offset: 1px;
|
|
681
|
+
}
|
|
682
|
+
.ai-composer-row {
|
|
683
|
+
display: flex;
|
|
684
|
+
align-items: center;
|
|
685
|
+
gap: 4px;
|
|
686
|
+
min-width: 0;
|
|
687
|
+
}
|
|
688
|
+
.ai-model-picker {
|
|
689
|
+
max-width: 140px;
|
|
690
|
+
min-width: 0;
|
|
691
|
+
}
|
|
692
|
+
/* Sessions list */
|
|
693
|
+
.ai-sessions {
|
|
694
|
+
flex: 1 1 0;
|
|
695
|
+
min-height: 0;
|
|
696
|
+
overflow-y: auto;
|
|
697
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
698
|
+
}
|
|
699
|
+
.ai-sessions-empty {
|
|
700
|
+
color: var(--fg-dim);
|
|
701
|
+
text-align: center;
|
|
702
|
+
padding: 24px 12px;
|
|
703
|
+
}
|
|
704
|
+
.ai-session-row {
|
|
705
|
+
display: flex;
|
|
706
|
+
align-items: center;
|
|
707
|
+
gap: 4px;
|
|
708
|
+
padding: 6px 8px;
|
|
709
|
+
cursor: pointer;
|
|
710
|
+
border-bottom: 1px solid var(--border);
|
|
711
|
+
min-width: 0;
|
|
712
|
+
}
|
|
713
|
+
.ai-session-row:hover {
|
|
714
|
+
background: var(--hover-bg);
|
|
715
|
+
}
|
|
716
|
+
.ai-session-text {
|
|
717
|
+
flex: 1;
|
|
718
|
+
min-width: 0;
|
|
719
|
+
}
|
|
720
|
+
.ai-session-title {
|
|
721
|
+
font-weight: 600;
|
|
722
|
+
overflow: hidden;
|
|
723
|
+
text-overflow: ellipsis;
|
|
724
|
+
white-space: nowrap;
|
|
725
|
+
}
|
|
726
|
+
.ai-session-meta {
|
|
727
|
+
color: var(--fg-dim);
|
|
728
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
729
|
+
}
|
|
730
|
+
.ai-session-delete {
|
|
731
|
+
visibility: hidden;
|
|
732
|
+
}
|
|
733
|
+
.ai-session-row:hover .ai-session-delete {
|
|
734
|
+
visibility: visible;
|
|
735
|
+
}
|
|
736
|
+
/* The in-panel residue of the retired credentials gate: one sentence and the action that
|
|
737
|
+
fixes it, sitting between the transcript and the composer. */
|
|
738
|
+
.ai-setup-notice {
|
|
739
|
+
flex-shrink: 0;
|
|
740
|
+
display: flex;
|
|
741
|
+
align-items: center;
|
|
742
|
+
justify-content: space-between;
|
|
743
|
+
gap: 8px;
|
|
744
|
+
padding: 6px 8px;
|
|
745
|
+
border-top: 1px solid var(--border);
|
|
746
|
+
color: var(--fg-dim);
|
|
747
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
748
|
+
}
|
|
749
|
+
.ai-managed-connect {
|
|
750
|
+
display: flex;
|
|
751
|
+
flex-direction: column;
|
|
752
|
+
align-items: center;
|
|
753
|
+
gap: 10px;
|
|
754
|
+
width: 100%;
|
|
755
|
+
}
|
|
756
|
+
.ai-managed-connect-error {
|
|
757
|
+
color: var(--danger);
|
|
758
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
759
|
+
max-width: 260px;
|
|
760
|
+
}
|
|
761
|
+
.ai-managed-connect-divider {
|
|
762
|
+
color: var(--fg-dim);
|
|
763
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
764
|
+
margin-top: 6px;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/* ─── Assistant settings (ui/ai-credentials-form.ts) ──────── */
|
|
768
|
+
/* The provider credentials form. Hosted by the `Assistant: Settings…` dialog and by the New
|
|
769
|
+
Project modal's Import/Agent gates, so it sizes itself and never assumes a column. */
|
|
770
|
+
.prefs-assistant {
|
|
771
|
+
display: flex;
|
|
772
|
+
flex-direction: column;
|
|
773
|
+
align-items: center;
|
|
774
|
+
gap: 12px;
|
|
775
|
+
}
|
|
776
|
+
.ai-creds-form {
|
|
777
|
+
display: flex;
|
|
778
|
+
flex-direction: column;
|
|
779
|
+
gap: 10px;
|
|
780
|
+
width: 100%;
|
|
781
|
+
max-width: 320px;
|
|
782
|
+
text-align: left;
|
|
783
|
+
}
|
|
784
|
+
.ai-creds-title {
|
|
785
|
+
align-self: center;
|
|
786
|
+
font-weight: 600;
|
|
787
|
+
}
|
|
788
|
+
.ai-creds-note {
|
|
789
|
+
color: var(--fg-dim);
|
|
790
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
791
|
+
}
|
|
792
|
+
.ai-creds-label {
|
|
793
|
+
margin-top: 4px;
|
|
794
|
+
font-weight: 500;
|
|
795
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
796
|
+
}
|
|
797
|
+
.ai-creds-field {
|
|
798
|
+
width: 100%;
|
|
799
|
+
}
|
|
800
|
+
.ai-creds-models {
|
|
801
|
+
display: flex;
|
|
802
|
+
align-items: center;
|
|
803
|
+
gap: 8px;
|
|
804
|
+
}
|
|
805
|
+
.ai-creds-error {
|
|
806
|
+
color: var(--danger);
|
|
807
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
808
|
+
}
|
|
809
|
+
.ai-creds-actions {
|
|
810
|
+
display: flex;
|
|
811
|
+
align-self: flex-end;
|
|
812
|
+
gap: 8px;
|
|
813
|
+
}
|
|
814
|
+
/* ─── ⑫ Status bar ────────────────────────────────
|
|
815
|
+
Three fields in the shell's own level order, separated by a rule rather than by a run of "|"
|
|
816
|
+
characters: the boundary between PROJECT, DOCUMENT and SELECTION is structural, and the eye
|
|
817
|
+
should be able to find it without reading. */
|
|
818
|
+
#statusbar {
|
|
819
|
+
/* Its OWN row, below the Bottom dock's, which collapses to 0px. Sharing that row put the whole
|
|
820
|
+
bar in a zero-height cell — it rendered its three fields into nothing while the 24px track
|
|
821
|
+
stood empty, so the app looked like it had lost its status bar the day it gained a dock. */
|
|
822
|
+
grid-row: 4;
|
|
823
|
+
grid-column: 1 / -1;
|
|
824
|
+
display: flex;
|
|
825
|
+
align-items: stretch;
|
|
826
|
+
overflow: hidden;
|
|
827
|
+
padding: 0 4px;
|
|
828
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
829
|
+
color: var(--fg-dim);
|
|
830
|
+
background: var(--bg);
|
|
831
|
+
border-top: 1px solid var(--border);
|
|
832
|
+
}
|
|
833
|
+
#statusbar .sb-field {
|
|
834
|
+
display: flex;
|
|
835
|
+
align-items: center;
|
|
836
|
+
gap: 2px;
|
|
837
|
+
min-width: 0;
|
|
838
|
+
padding: 0 6px;
|
|
839
|
+
}
|
|
840
|
+
/* The SELECTION field is the one that grows without bound (a deep tree), so it is the one that
|
|
841
|
+
scrolls — the project name and the save state must never be pushed out of the window. */
|
|
842
|
+
#statusbar .sb-field:last-child {
|
|
843
|
+
min-width: 0;
|
|
844
|
+
overflow: hidden;
|
|
845
|
+
}
|
|
846
|
+
#statusbar .sb-field + .sb-field {
|
|
847
|
+
border-left: 1px solid var(--border);
|
|
848
|
+
}
|
|
849
|
+
#statusbar .sb-item {
|
|
850
|
+
max-width: 32ch;
|
|
851
|
+
overflow: hidden;
|
|
852
|
+
padding: 0 4px;
|
|
853
|
+
border: none;
|
|
854
|
+
border-radius: var(--spectrum-corner-radius-75, 2px);
|
|
855
|
+
background: transparent;
|
|
856
|
+
color: inherit;
|
|
857
|
+
font: inherit;
|
|
858
|
+
line-height: 1;
|
|
859
|
+
white-space: nowrap;
|
|
860
|
+
text-overflow: ellipsis;
|
|
861
|
+
}
|
|
862
|
+
#statusbar button.sb-item {
|
|
863
|
+
cursor: pointer;
|
|
864
|
+
}
|
|
865
|
+
#statusbar button.sb-item:hover:not(:disabled) {
|
|
866
|
+
color: var(--fg);
|
|
867
|
+
background: var(--hover-bg);
|
|
868
|
+
}
|
|
869
|
+
#statusbar button.sb-item:disabled {
|
|
870
|
+
cursor: default;
|
|
871
|
+
opacity: 0.6;
|
|
872
|
+
}
|
|
873
|
+
/* A readout is state, not a control: no hover, no pointer, and no promise that clicking does
|
|
874
|
+
anything. The two are visually distinguishable only on hover, which is the correct amount. */
|
|
875
|
+
#statusbar .sb-state {
|
|
876
|
+
cursor: default;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/* ─── ⑥ Jump bar ──────────────────────────────── */
|
|
880
|
+
/* The pane's address: project › file › node › node, every step a command. It reads at a glance
|
|
881
|
+
because it is ONE line at the top of the pane — the two half-breadcrumbs it replaces were 28px of
|
|
882
|
+
pane chrome (only while a takeover editor was open) and 11px of status bar (only while something
|
|
883
|
+
was selected), and neither ever showed the whole chain.
|
|
884
|
+
|
|
885
|
+
It scrolls rather than wraps: a deep selection must not push the stage down by a second line, and
|
|
886
|
+
the LEAF is the part you are reading, so the overflow is taken at the start. */
|
|
887
|
+
.jump-bar {
|
|
888
|
+
display: flex;
|
|
889
|
+
align-items: center;
|
|
890
|
+
gap: 1px;
|
|
891
|
+
height: 24px;
|
|
892
|
+
padding: 0 6px;
|
|
893
|
+
min-width: 0;
|
|
894
|
+
overflow-x: auto;
|
|
895
|
+
scrollbar-width: none;
|
|
896
|
+
white-space: nowrap;
|
|
897
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
898
|
+
color: var(--fg-dim);
|
|
899
|
+
background: var(--bg-panel);
|
|
900
|
+
border-bottom: 1px solid var(--border);
|
|
901
|
+
}
|
|
902
|
+
.jump-bar::-webkit-scrollbar {
|
|
903
|
+
display: none;
|
|
904
|
+
}
|
|
905
|
+
.jump-bar .jb-seg {
|
|
906
|
+
display: flex;
|
|
907
|
+
align-items: center;
|
|
908
|
+
flex-shrink: 0;
|
|
909
|
+
}
|
|
910
|
+
.jump-bar .jb-crumb {
|
|
911
|
+
max-width: 28ch;
|
|
912
|
+
overflow: hidden;
|
|
913
|
+
padding: 0 4px;
|
|
914
|
+
border: none;
|
|
915
|
+
border-radius: var(--spectrum-corner-radius-75, 2px);
|
|
916
|
+
background: transparent;
|
|
917
|
+
color: inherit;
|
|
918
|
+
font: inherit;
|
|
919
|
+
line-height: 1;
|
|
920
|
+
white-space: nowrap;
|
|
921
|
+
text-overflow: ellipsis;
|
|
922
|
+
}
|
|
923
|
+
.jump-bar button.jb-crumb {
|
|
924
|
+
cursor: pointer;
|
|
925
|
+
}
|
|
926
|
+
.jump-bar button.jb-crumb:hover:not(:disabled) {
|
|
927
|
+
color: var(--fg);
|
|
928
|
+
background: var(--hover-bg);
|
|
929
|
+
}
|
|
930
|
+
.jump-bar button.jb-crumb:disabled {
|
|
931
|
+
cursor: default;
|
|
932
|
+
opacity: 0.6;
|
|
933
|
+
}
|
|
934
|
+
/* Where you ARE is stated by weight, not by removing the control: the leaf still selects, which is
|
|
935
|
+
how a stray click in the canvas is undone without leaving the bar. */
|
|
936
|
+
.jump-bar .jb-crumb[aria-current] {
|
|
937
|
+
color: var(--fg);
|
|
938
|
+
}
|
|
939
|
+
/* A step with no command is a readout, not a dead button — an address with a hole in it would be a
|
|
940
|
+
lie about containment. No hover, no pointer, no promise. */
|
|
941
|
+
.jump-bar .jb-crumb--static {
|
|
942
|
+
cursor: default;
|
|
943
|
+
}
|
|
944
|
+
.jump-bar .jb-alts {
|
|
945
|
+
padding: 0 2px;
|
|
946
|
+
border: none;
|
|
947
|
+
border-radius: var(--spectrum-corner-radius-75, 2px);
|
|
948
|
+
background: transparent;
|
|
949
|
+
color: inherit;
|
|
950
|
+
font: inherit;
|
|
951
|
+
line-height: 1;
|
|
952
|
+
cursor: pointer;
|
|
953
|
+
}
|
|
954
|
+
.jump-bar .jb-alts:hover {
|
|
955
|
+
color: var(--fg);
|
|
956
|
+
background: var(--hover-bg);
|
|
957
|
+
}
|
|
958
|
+
.jump-bar .jb-sep {
|
|
959
|
+
flex-shrink: 0;
|
|
960
|
+
color: var(--fg-dim);
|
|
961
|
+
opacity: 0.6;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/* ─── Tab strip ───────────────────────────────── */
|
|
965
|
+
/* The chevron sits OUTSIDE the scrolling strip, so it stays reachable at any scroll offset —
|
|
966
|
+
which is the whole point of it: the scrollbar is hidden and the wheel is a mouse affordance. */
|
|
967
|
+
.tab-strip-row {
|
|
968
|
+
display: flex;
|
|
969
|
+
align-items: stretch;
|
|
970
|
+
min-width: 0;
|
|
971
|
+
background: var(--bg-panel);
|
|
972
|
+
border-bottom: 1px solid var(--border);
|
|
973
|
+
}
|
|
974
|
+
.tab-strip-row .tab-strip {
|
|
975
|
+
flex: 1 1 auto;
|
|
976
|
+
border-bottom: none;
|
|
977
|
+
}
|
|
978
|
+
.tab-strip-overflow {
|
|
979
|
+
flex: 0 0 auto;
|
|
980
|
+
display: flex;
|
|
981
|
+
align-items: center;
|
|
982
|
+
justify-content: center;
|
|
983
|
+
width: 22px;
|
|
984
|
+
padding: 0;
|
|
985
|
+
border: none;
|
|
986
|
+
border-left: 1px solid var(--border);
|
|
987
|
+
background: none;
|
|
988
|
+
color: var(--fg-dim);
|
|
989
|
+
font-size: var(--spectrum-font-size-100, 14px);
|
|
990
|
+
line-height: 1;
|
|
991
|
+
cursor: pointer;
|
|
992
|
+
}
|
|
993
|
+
.tab-strip-overflow:hover {
|
|
994
|
+
background: var(--hover-bg);
|
|
995
|
+
color: var(--fg);
|
|
996
|
+
}
|
|
997
|
+
/* A LENS pane's strip: one chip naming the projection and the document it projects, where an
|
|
998
|
+
ordinary pane draws tab chips. It is not a tab and must not look like one — no close ✕ of its
|
|
999
|
+
own, because a lens owns no document to close. */
|
|
1000
|
+
.tab-derivation {
|
|
1001
|
+
display: flex;
|
|
1002
|
+
align-items: baseline;
|
|
1003
|
+
gap: 6px;
|
|
1004
|
+
min-width: 0;
|
|
1005
|
+
/* A tab chip's VERTICAL box — `4px` top and bottom plus the 2px underline `.tab-strip-tab`
|
|
1006
|
+
reserves — so the lens's one-chip row sits on the same baseline grid as the tab row in the
|
|
1007
|
+
pane beside it. Horizontally it is 10px rather than a chip's 8px: this row is one chip wide
|
|
1008
|
+
with nothing to sit beside, and a chip's tighter inset exists so several of them read as a
|
|
1009
|
+
series.
|
|
1010
|
+
The row's HEIGHT is set by its tallest child (the 12px `.tab-derivation-preset`, against a
|
|
1011
|
+
chip's 11px), not by a font-size on this box — which is why the numbers above are the only
|
|
1012
|
+
half of this comment a reader can check. The height itself was measured in a browser and
|
|
1013
|
+
cannot be asserted here: happy-dom lays nothing out and returns 0 whether the rule is right
|
|
1014
|
+
or wrong, and a 19px strip against a 28px one is the class of defect only a picture catches. */
|
|
1015
|
+
padding: 4px 10px;
|
|
1016
|
+
border-bottom: 2px solid transparent;
|
|
1017
|
+
white-space: nowrap;
|
|
1018
|
+
overflow: hidden;
|
|
1019
|
+
}
|
|
1020
|
+
.tab-derivation-preset {
|
|
1021
|
+
color: var(--fg);
|
|
1022
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
1023
|
+
}
|
|
1024
|
+
.tab-derivation-of {
|
|
1025
|
+
color: var(--fg-dim);
|
|
1026
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1027
|
+
text-overflow: ellipsis;
|
|
1028
|
+
overflow: hidden;
|
|
1029
|
+
}
|
|
1030
|
+
/* Drill-in marker: this document was opened FROM another one. */
|
|
1031
|
+
.tab-strip-origin {
|
|
1032
|
+
color: var(--fg-dim);
|
|
1033
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1034
|
+
line-height: 1;
|
|
1035
|
+
}
|
|
1036
|
+
.tab-strip {
|
|
1037
|
+
display: flex;
|
|
1038
|
+
align-items: stretch;
|
|
1039
|
+
gap: 0;
|
|
1040
|
+
padding: 0 8px;
|
|
1041
|
+
background: var(--bg-panel);
|
|
1042
|
+
border-bottom: 1px solid var(--border);
|
|
1043
|
+
overflow-x: auto;
|
|
1044
|
+
overflow-y: hidden;
|
|
1045
|
+
scrollbar-width: none;
|
|
1046
|
+
}
|
|
1047
|
+
.tab-strip::-webkit-scrollbar {
|
|
1048
|
+
display: none;
|
|
1049
|
+
}
|
|
1050
|
+
.tab-strip-tab {
|
|
1051
|
+
display: flex;
|
|
1052
|
+
align-items: center;
|
|
1053
|
+
gap: 4px;
|
|
1054
|
+
padding: 4px 8px;
|
|
1055
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1056
|
+
color: var(--fg-dim);
|
|
1057
|
+
cursor: pointer;
|
|
1058
|
+
white-space: nowrap;
|
|
1059
|
+
border-bottom: 2px solid transparent;
|
|
1060
|
+
user-select: none;
|
|
1061
|
+
flex-shrink: 0;
|
|
1062
|
+
}
|
|
1063
|
+
.tab-strip-tab:hover {
|
|
1064
|
+
color: var(--fg);
|
|
1065
|
+
background: var(--hover-bg);
|
|
1066
|
+
}
|
|
1067
|
+
.tab-strip-tab.active {
|
|
1068
|
+
color: var(--fg);
|
|
1069
|
+
border-bottom-color: var(--accent);
|
|
1070
|
+
}
|
|
1071
|
+
.tab-strip-label {
|
|
1072
|
+
max-width: 140px;
|
|
1073
|
+
overflow: hidden;
|
|
1074
|
+
text-overflow: ellipsis;
|
|
1075
|
+
}
|
|
1076
|
+
.tab-strip-dirty {
|
|
1077
|
+
color: var(--accent);
|
|
1078
|
+
font-size: 8px;
|
|
1079
|
+
line-height: 1;
|
|
1080
|
+
}
|
|
1081
|
+
.tab-strip-close {
|
|
1082
|
+
display: flex;
|
|
1083
|
+
align-items: center;
|
|
1084
|
+
justify-content: center;
|
|
1085
|
+
width: 16px;
|
|
1086
|
+
height: 16px;
|
|
1087
|
+
padding: 0;
|
|
1088
|
+
border: none;
|
|
1089
|
+
background: none;
|
|
1090
|
+
color: var(--fg-dim);
|
|
1091
|
+
font-size: var(--spectrum-font-size-100, 14px);
|
|
1092
|
+
line-height: 1;
|
|
1093
|
+
border-radius: var(--radius);
|
|
1094
|
+
cursor: pointer;
|
|
1095
|
+
opacity: 0;
|
|
1096
|
+
}
|
|
1097
|
+
.tab-strip-tab:hover .tab-strip-close,
|
|
1098
|
+
.tab-strip-tab.active .tab-strip-close {
|
|
1099
|
+
opacity: 1;
|
|
1100
|
+
}
|
|
1101
|
+
.tab-strip-close:hover {
|
|
1102
|
+
background: var(--hover-bg);
|
|
1103
|
+
color: var(--fg);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/* ─── Resize handles ─────────────────────────── */
|
|
1107
|
+
/* The two column handles span the stage AND the bottom dock, so the grab target is the dock's
|
|
1108
|
+
full height rather than stopping at the floor of the canvas. */
|
|
1109
|
+
.resize-handle {
|
|
1110
|
+
grid-row: 2 / 4;
|
|
1111
|
+
width: 5px;
|
|
1112
|
+
margin-left: -3px;
|
|
1113
|
+
margin-right: -2px;
|
|
1114
|
+
cursor: col-resize;
|
|
1115
|
+
z-index: 10;
|
|
1116
|
+
position: relative;
|
|
1117
|
+
}
|
|
1118
|
+
.resize-handle:hover,
|
|
1119
|
+
.resize-handle.dragging {
|
|
1120
|
+
background: var(--accent, #3b82f6);
|
|
1121
|
+
opacity: 0.5;
|
|
1122
|
+
}
|
|
1123
|
+
#resize-left {
|
|
1124
|
+
grid-column: pane;
|
|
1125
|
+
justify-self: start;
|
|
1126
|
+
}
|
|
1127
|
+
#resize-right {
|
|
1128
|
+
grid-column: insp;
|
|
1129
|
+
justify-self: start;
|
|
1130
|
+
}
|
|
1131
|
+
/* The Bottom dock's handle resizes on the other axis, so every dimension flips: it is a row in
|
|
1132
|
+
the pane's column, full width, five px tall, and it drags up and down. */
|
|
1133
|
+
/* The pane splitter. A column handle like the two dock ones, but INSIDE the pane grid rather than
|
|
1134
|
+
on `#app`'s grid — so it takes its own track (`panels/pane-grid.ts` writes the 5px column) and
|
|
1135
|
+
spans the cell's full height rather than naming an application row. */
|
|
1136
|
+
/* The splitter between two cells.
|
|
1137
|
+
|
|
1138
|
+
`grid-row: auto`, and it has to be. It inherits `grid-row: 2 / 4` from `.resize-handle` — the
|
|
1139
|
+
APP grid's placement, where the three dock handles live — and any definite row position, that
|
|
1140
|
+
one or the `1 / -1` this rule used to carry, moves the item into an earlier step of CSS Grid's
|
|
1141
|
+
auto-placement: definite-row items are placed before fully-auto ones, so the splitter claimed
|
|
1142
|
+
column 1 and the two cells flowed around it into the 5px track and the second half. DOM order
|
|
1143
|
+
was already correct; the placement algorithm was not reading it. Both axes auto is what makes
|
|
1144
|
+
the DOM order decide. `#pane-grid` has one row, so an auto item still stretches its full height.
|
|
1145
|
+
|
|
1146
|
+
Like the row-1 column declaration above, this is invisible to every test in the package:
|
|
1147
|
+
happy-dom does no layout. */
|
|
1148
|
+
.pane-splitter {
|
|
1149
|
+
grid-row: auto;
|
|
1150
|
+
grid-column: auto;
|
|
1151
|
+
justify-self: stretch;
|
|
1152
|
+
margin: 0;
|
|
1153
|
+
width: auto;
|
|
1154
|
+
background: var(--border);
|
|
1155
|
+
}
|
|
1156
|
+
.resize-handle-row {
|
|
1157
|
+
grid-row: 3;
|
|
1158
|
+
grid-column: pane;
|
|
1159
|
+
align-self: start;
|
|
1160
|
+
width: auto;
|
|
1161
|
+
height: 5px;
|
|
1162
|
+
margin: -3px 0 -2px;
|
|
1163
|
+
cursor: row-resize;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/* ─── Preferences (⌘,) ──────────────────────────
|
|
1167
|
+
The application-preferences sheet: a section list beside one section's body.
|
|
1168
|
+
Distinct from Project Settings, which is a project document (spec §9.3). */
|
|
1169
|
+
.prefs-sheet {
|
|
1170
|
+
display: flex;
|
|
1171
|
+
gap: 16px;
|
|
1172
|
+
min-height: 320px;
|
|
1173
|
+
}
|
|
1174
|
+
.prefs-nav {
|
|
1175
|
+
flex: 0 0 148px;
|
|
1176
|
+
display: flex;
|
|
1177
|
+
flex-direction: column;
|
|
1178
|
+
gap: 2px;
|
|
1179
|
+
border-right: 1px solid var(--border);
|
|
1180
|
+
padding-right: 8px;
|
|
1181
|
+
}
|
|
1182
|
+
.prefs-nav-item {
|
|
1183
|
+
appearance: none;
|
|
1184
|
+
border: 0;
|
|
1185
|
+
background: transparent;
|
|
1186
|
+
color: var(--fg-dim);
|
|
1187
|
+
font: inherit;
|
|
1188
|
+
text-align: left;
|
|
1189
|
+
padding: 6px 8px;
|
|
1190
|
+
border-radius: var(--radius);
|
|
1191
|
+
cursor: pointer;
|
|
1192
|
+
}
|
|
1193
|
+
.prefs-nav-item:hover {
|
|
1194
|
+
background: var(--bg-hover);
|
|
1195
|
+
color: var(--fg);
|
|
1196
|
+
}
|
|
1197
|
+
.prefs-nav-item.active {
|
|
1198
|
+
background: var(--bg-selected);
|
|
1199
|
+
color: var(--fg);
|
|
1200
|
+
}
|
|
1201
|
+
.prefs-body {
|
|
1202
|
+
flex: 1;
|
|
1203
|
+
min-width: 0;
|
|
1204
|
+
display: flex;
|
|
1205
|
+
flex-direction: column;
|
|
1206
|
+
gap: 8px;
|
|
1207
|
+
max-height: 60vh;
|
|
1208
|
+
overflow-y: auto;
|
|
1209
|
+
}
|
|
1210
|
+
.prefs-title {
|
|
1211
|
+
margin: 0;
|
|
1212
|
+
font-size: var(--spectrum-font-size-100, 14px);
|
|
1213
|
+
color: var(--fg);
|
|
1214
|
+
}
|
|
1215
|
+
.prefs-blurb {
|
|
1216
|
+
margin: 0 0 4px;
|
|
1217
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1218
|
+
color: var(--fg-dim);
|
|
1219
|
+
}
|
|
1220
|
+
.prefs-empty {
|
|
1221
|
+
margin: 0;
|
|
1222
|
+
color: var(--fg-dim);
|
|
1223
|
+
}
|
|
1224
|
+
.prefs-field {
|
|
1225
|
+
display: flex;
|
|
1226
|
+
align-items: center;
|
|
1227
|
+
gap: 10px;
|
|
1228
|
+
}
|
|
1229
|
+
.prefs-field-label {
|
|
1230
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
1231
|
+
color: var(--fg-dim);
|
|
1232
|
+
}
|
|
1233
|
+
.prefs-accounts {
|
|
1234
|
+
display: flex;
|
|
1235
|
+
flex-direction: column;
|
|
1236
|
+
gap: 4px;
|
|
1237
|
+
}
|
|
1238
|
+
.prefs-account {
|
|
1239
|
+
display: flex;
|
|
1240
|
+
align-items: center;
|
|
1241
|
+
justify-content: space-between;
|
|
1242
|
+
gap: 12px;
|
|
1243
|
+
padding: 8px;
|
|
1244
|
+
border: 1px solid var(--border);
|
|
1245
|
+
border-radius: var(--radius);
|
|
1246
|
+
}
|
|
1247
|
+
.prefs-account-text {
|
|
1248
|
+
display: flex;
|
|
1249
|
+
flex-direction: column;
|
|
1250
|
+
gap: 2px;
|
|
1251
|
+
min-width: 0;
|
|
1252
|
+
}
|
|
1253
|
+
.prefs-account-label {
|
|
1254
|
+
color: var(--fg);
|
|
1255
|
+
}
|
|
1256
|
+
.prefs-account-detail {
|
|
1257
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1258
|
+
color: var(--fg-dim);
|
|
1259
|
+
}
|
|
1260
|
+
.prefs-keys {
|
|
1261
|
+
display: flex;
|
|
1262
|
+
flex-direction: column;
|
|
1263
|
+
gap: 2px;
|
|
1264
|
+
}
|
|
1265
|
+
.prefs-keys-scope {
|
|
1266
|
+
margin: 10px 0 2px;
|
|
1267
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1268
|
+
font-weight: 700;
|
|
1269
|
+
letter-spacing: 0.06em;
|
|
1270
|
+
text-transform: uppercase;
|
|
1271
|
+
color: var(--fg-dim);
|
|
1272
|
+
}
|
|
1273
|
+
.prefs-key {
|
|
1274
|
+
display: flex;
|
|
1275
|
+
align-items: baseline;
|
|
1276
|
+
gap: 10px;
|
|
1277
|
+
padding: 2px 0;
|
|
1278
|
+
}
|
|
1279
|
+
.prefs-key-chord {
|
|
1280
|
+
flex: 0 0 96px;
|
|
1281
|
+
font-family: var(--font-mono);
|
|
1282
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1283
|
+
color: var(--fg);
|
|
1284
|
+
}
|
|
1285
|
+
.prefs-key-title {
|
|
1286
|
+
color: var(--fg-dim);
|
|
1287
|
+
min-width: 0;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/* ─── Assistant honesty (§7.4) ──────────────────────────────────────────────
|
|
1291
|
+
A tool chip renders its OUTCOME, a turn renders what it CHANGED, and an error
|
|
1292
|
+
offers Retry. `ToolCallRecord.result` was populated by the loop and ignored by
|
|
1293
|
+
the renderer, so a chip said exactly as much when the edit had been refused as
|
|
1294
|
+
when it had landed. */
|
|
1295
|
+
.ai-tool-chip-name {
|
|
1296
|
+
flex: 0 0 auto;
|
|
1297
|
+
}
|
|
1298
|
+
.ai-tool-chip-outcome {
|
|
1299
|
+
min-width: 0;
|
|
1300
|
+
overflow: hidden;
|
|
1301
|
+
text-overflow: ellipsis;
|
|
1302
|
+
font-family: var(--font);
|
|
1303
|
+
}
|
|
1304
|
+
.ai-tool-chip[data-outcome="ok"] {
|
|
1305
|
+
border-left-color: var(--success, var(--accent));
|
|
1306
|
+
}
|
|
1307
|
+
.ai-tool-chip[data-outcome="failed"] {
|
|
1308
|
+
border-left-color: var(--danger);
|
|
1309
|
+
color: var(--danger);
|
|
1310
|
+
}
|
|
1311
|
+
/* The changed-files summary. Collapsed by default because the headline —
|
|
1312
|
+
"Changed 4 files · 2 written to disk — undo cannot reach them" — is the part
|
|
1313
|
+
that must never be missed; the list is for when it is. */
|
|
1314
|
+
.ai-msg-changes {
|
|
1315
|
+
margin-top: 6px;
|
|
1316
|
+
border-left: 2px solid var(--border);
|
|
1317
|
+
border-radius: var(--radius);
|
|
1318
|
+
background: var(--hover-bg);
|
|
1319
|
+
padding: 4px 8px;
|
|
1320
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1321
|
+
color: var(--fg-dim);
|
|
1322
|
+
}
|
|
1323
|
+
.ai-msg-changes > summary {
|
|
1324
|
+
display: flex;
|
|
1325
|
+
align-items: center;
|
|
1326
|
+
gap: 8px;
|
|
1327
|
+
cursor: pointer;
|
|
1328
|
+
}
|
|
1329
|
+
.ai-msg-changes-list {
|
|
1330
|
+
margin: 6px 0 2px;
|
|
1331
|
+
padding-left: 14px;
|
|
1332
|
+
display: flex;
|
|
1333
|
+
flex-direction: column;
|
|
1334
|
+
gap: 3px;
|
|
1335
|
+
}
|
|
1336
|
+
.ai-msg-changes-list li {
|
|
1337
|
+
display: flex;
|
|
1338
|
+
flex-wrap: wrap;
|
|
1339
|
+
gap: 6px;
|
|
1340
|
+
align-items: baseline;
|
|
1341
|
+
}
|
|
1342
|
+
.ai-msg-changes-list li[data-ok="false"] {
|
|
1343
|
+
color: var(--danger);
|
|
1344
|
+
}
|
|
1345
|
+
/* The undo caveat, rendered to the person holding ⌘Z rather than appended to the
|
|
1346
|
+
model-facing tool summary. */
|
|
1347
|
+
.ai-msg-changes-list li[data-disk="true"] em {
|
|
1348
|
+
color: var(--warning);
|
|
1349
|
+
font-style: normal;
|
|
1350
|
+
}
|
|
1351
|
+
.ai-msg-retry {
|
|
1352
|
+
margin-top: 6px;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/* ─── Collaboration presence (§7.4) ─────────────────────────────────────────
|
|
1356
|
+
`.jx-presence*` matched no stylesheet in the repo — the flagship affordance
|
|
1357
|
+
shipped unstyled. The flags are the two states co-editing could not announce:
|
|
1358
|
+
a read-only guest whose edits were dropped at the publish gate, and the
|
|
1359
|
+
source-canonical freeze whose whole rendering was a three-second grey line,
|
|
1360
|
+
which is exactly what a bug looks like. */
|
|
1361
|
+
.jx-presence {
|
|
1362
|
+
display: flex;
|
|
1363
|
+
align-items: center;
|
|
1364
|
+
gap: 6px;
|
|
1365
|
+
min-width: 0;
|
|
1366
|
+
}
|
|
1367
|
+
.jx-presence-status {
|
|
1368
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1369
|
+
color: var(--fg-dim);
|
|
1370
|
+
white-space: nowrap;
|
|
1371
|
+
}
|
|
1372
|
+
.jx-presence-status[data-status="synced"] {
|
|
1373
|
+
color: var(--success, var(--accent));
|
|
1374
|
+
}
|
|
1375
|
+
.jx-presence-status[data-status="connecting"] {
|
|
1376
|
+
color: var(--fg-dim);
|
|
1377
|
+
}
|
|
1378
|
+
.jx-presence-status[data-status="offline"] {
|
|
1379
|
+
color: var(--warning);
|
|
1380
|
+
}
|
|
1381
|
+
.jx-presence-status[data-status="failed"] {
|
|
1382
|
+
color: var(--danger);
|
|
1383
|
+
}
|
|
1384
|
+
.jx-presence-flag {
|
|
1385
|
+
border-radius: var(--radius);
|
|
1386
|
+
padding: 1px 6px;
|
|
1387
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1388
|
+
white-space: nowrap;
|
|
1389
|
+
border: 1px solid currentcolor;
|
|
1390
|
+
}
|
|
1391
|
+
.jx-presence-flag[data-flag="read-only"] {
|
|
1392
|
+
color: var(--fg-dim);
|
|
1393
|
+
}
|
|
1394
|
+
.jx-presence-flag[data-flag="frozen"] {
|
|
1395
|
+
color: var(--warning);
|
|
1396
|
+
}
|
|
1397
|
+
.jx-presence-chip {
|
|
1398
|
+
display: inline-flex;
|
|
1399
|
+
align-items: center;
|
|
1400
|
+
justify-content: center;
|
|
1401
|
+
width: 20px;
|
|
1402
|
+
height: 20px;
|
|
1403
|
+
border-radius: 50%;
|
|
1404
|
+
overflow: hidden;
|
|
1405
|
+
font-size: var(--spectrum-font-size-50, 11px);
|
|
1406
|
+
font-weight: 600;
|
|
1407
|
+
color: var(--spectrum-gray-50, #fff);
|
|
1408
|
+
flex: none;
|
|
1409
|
+
}
|
|
1410
|
+
.jx-presence-chip img {
|
|
1411
|
+
width: 100%;
|
|
1412
|
+
height: 100%;
|
|
1413
|
+
object-fit: cover;
|
|
1414
|
+
}
|
|
1415
|
+
/* A standing statement, not an after-the-fact refusal: a guest without write
|
|
1416
|
+
access used to watch their edits apply locally and vanish at the publish gate. */
|
|
1417
|
+
.jx-collab-banner {
|
|
1418
|
+
padding: 6px 10px;
|
|
1419
|
+
border-bottom: 1px solid var(--border);
|
|
1420
|
+
background: var(--hover-bg);
|
|
1421
|
+
color: var(--fg-dim);
|
|
1422
|
+
font-size: var(--spectrum-font-size-75, 12px);
|
|
1423
|
+
}
|