@histoire/app 1.0.0-beta.1 → 1.0.0-beta.2
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/dist/app/style/README.md +167 -0
- package/dist/app/style/controls.css +28 -0
- package/dist/app/style/density.css +38 -0
- package/dist/app/style/document.pcss +60 -0
- package/dist/app/style/fonts.pcss +1 -0
- package/dist/app/style/main.css +25 -0
- package/dist/app/style/theme.css +109 -0
- package/dist/app/style/tokens.pcss +135 -0
- package/dist/bundle-embed-dev.js +6 -0
- package/dist/bundle-embed.js +6 -0
- package/dist/bundle-main-dev.js +1 -1
- package/dist/bundle-main.js +2 -1
- package/dist/bundle-sandbox-dev.js +3 -2
- package/dist/bundle-sandbox.js +3 -2
- package/dist/bundled/api.js +1 -12
- package/dist/bundled/app.css +183 -75
- package/dist/bundled/chunks/AboutSection-D3IIVsiV.js +42 -0
- package/dist/bundled/chunks/AgentCursor-Cg5SLa2H.js +124 -0
- package/dist/bundled/chunks/AgentLogo-C2uXqX04.js +69 -0
- package/dist/bundled/chunks/AgentPlanApproval-D4hnGlYs.js +693 -0
- package/dist/bundled/chunks/AgentsSection-CJGS9C2q.js +1126 -0
- package/dist/bundled/chunks/AiPanel-B9QWRuSg.js +1130 -0
- package/dist/bundled/chunks/AppearanceSection-DMjmDr1Y.js +306 -0
- package/dist/bundled/chunks/BasePopover-CQQ8wKev.js +307 -0
- package/dist/bundled/chunks/CommentsCanvasOverlay-UX-oYgnx.js +955 -0
- package/dist/bundled/chunks/DevBrowseStatus-D2rIG8uC.js +48 -0
- package/dist/bundled/chunks/DocsTab-BR3BktyF.js +31 -0
- package/dist/bundled/chunks/EmbedDialog-B70Zo-PZ.js +475 -0
- package/dist/bundled/chunks/EventsTab-BP0hCGqL.js +37 -0
- package/dist/bundled/chunks/GeneralSection-CT_-32qT.js +84 -0
- package/dist/bundled/chunks/HomeCard-JYU5jbs7.js +24 -0
- package/dist/bundled/chunks/InspectionPanel-C6kUdJj9.js +584 -0
- package/dist/bundled/chunks/InspectorGuideLink-Bqlz1aaY.js +28 -0
- package/dist/bundled/chunks/MarkdownPage-DD7XyGkq.js +349 -0
- package/dist/bundled/chunks/MarketplaceUpdateBody-B1cn_zeo.js +300 -0
- package/dist/bundled/chunks/MarketplaceView-eDPLtc_x.js +2769 -0
- package/dist/bundled/chunks/MatrixInspector-eIr_N5eH.js +893 -0
- package/dist/bundled/chunks/MatrixView-CDmN-Kl9.js +604 -0
- package/dist/bundled/chunks/MatrixVisualActions-Cx3QzDTD.js +70 -0
- package/dist/bundled/chunks/McpActivity-CiK3jUTY.js +136 -0
- package/dist/bundled/chunks/McpSection-DRGzPGXO.js +76 -0
- package/dist/bundled/chunks/MenuItem-BYRJG5YA.js +59 -0
- package/dist/bundled/chunks/NeedsAttention-C5zjd6RT.js +77 -0
- package/dist/bundled/chunks/PermissionPrompt-i5VbZCCJ.js +128 -0
- package/dist/bundled/chunks/PluginTile-CfplGy7m.js +97 -0
- package/dist/bundled/chunks/PluginsSection-B3ZWAjrk.js +855 -0
- package/dist/bundled/chunks/PopoverDivider-vLxqs_KP.js +13 -0
- package/dist/bundled/chunks/PopoverTitle-zikHVKQE.js +12 -0
- package/dist/bundled/chunks/SaveToProject-F-tQZKCG.js +206 -0
- package/dist/bundled/chunks/ScreenshotPopover-DWcV_NAf.js +725 -0
- package/dist/bundled/chunks/SettingsChoices-BoESgi62.js +19 -0
- package/dist/bundled/chunks/SettingsPage-BvT1FOl7.js +174 -0
- package/dist/bundled/chunks/SettingsRow-C4lda-j7.js +22 -0
- package/dist/bundled/chunks/ShortcutsSection-D3-4e5Ug.js +43 -0
- package/dist/bundled/chunks/StoryInspector-BJKzoeHc.js +1194 -0
- package/dist/bundled/chunks/TestsPanel-CpBld3wM.js +1264 -0
- package/dist/bundled/chunks/TestsSection-CEXW49Ge.js +33 -0
- package/dist/bundled/chunks/TestsTab-B-ZNDgGi.js +50 -0
- package/dist/bundled/chunks/ThreadMessage-CPRLVXXQ.js +2426 -0
- package/dist/bundled/chunks/ToolbarPopover-Nd-us4Fg.js +276 -0
- package/dist/bundled/chunks/ViewportsSection-3EWu6WSc.js +203 -0
- package/dist/bundled/chunks/VisualViewer-DV5mNFT8.js +888 -0
- package/dist/bundled/chunks/WorkbenchErrorState-D97EoY89.js +48 -0
- package/dist/bundled/chunks/WorkbenchGuideLink-COO1XNvp.js +26 -0
- package/dist/bundled/chunks/WorkbenchLoadingState-CLA8IBL6.js +50 -0
- package/dist/bundled/chunks/WorkbenchPaneHeader-DBuiBHTT.js +15 -0
- package/dist/bundled/chunks/WorkbenchPaneList-cOz9-XSR.js +13 -0
- package/dist/bundled/chunks/WorkbenchPaneToolbar-DEYUs_bD.js +12 -0
- package/dist/bundled/chunks/WorkbenchPanelAction-Cl68QrDs.js +96 -0
- package/dist/bundled/chunks/WorkbenchVirtualList-CUTamRgO.js +67 -0
- package/dist/bundled/chunks/agents-Cnoa7KRp.js +318 -0
- package/dist/bundled/chunks/agents-http-BjeGJFYE.js +27 -0
- package/dist/bundled/chunks/ai-threads-3QfVXZ43.js +402 -0
- package/dist/bundled/chunks/background-CG5-SPiv.js +70 -0
- package/dist/bundled/chunks/canvas-settings-EP62RnvB.js +101 -0
- package/dist/bundled/chunks/capture-SFV9pF9b.js +20 -0
- package/dist/bundled/chunks/catalog-UvMhynPX.js +39 -0
- package/dist/bundled/chunks/catalog-target-BN1NsBKA.js +9 -0
- package/dist/bundled/chunks/color-scheme-mhmCnofm.js +96 -0
- package/dist/bundled/chunks/content-view-Bpn8As7f.js +15 -0
- package/dist/bundled/chunks/context-menu-Cw2xQKsM.js +121 -0
- package/dist/bundled/chunks/controls-DpdwHd4q.js +23264 -0
- package/dist/bundled/chunks/controls-view-COcHf8Pm.js +358 -0
- package/dist/bundled/chunks/events-Dhp302xE.js +30 -0
- package/dist/bundled/chunks/explorer-view-5gTgnjcf.js +283 -0
- package/dist/bundled/chunks/extensions-DUXM9uEy.js +6274 -0
- package/dist/bundled/chunks/extensions-DY0LLiE_.js +42 -0
- package/dist/bundled/chunks/frame-ledger-BHZ0nJjD.js +3290 -0
- package/dist/bundled/chunks/frame-owner-Di8_BWb0.js +22 -0
- package/dist/bundled/chunks/frame-screenshot-D9R_xDns.js +84 -0
- package/dist/bundled/chunks/http-json-B3BE0tJj.js +37 -0
- package/dist/bundled/chunks/icons-Bd36WZPu.js +128 -0
- package/dist/bundled/chunks/internal-BOzwU0KU.js +49 -0
- package/dist/bundled/chunks/keyboard-DWsKh2rn.js +93 -0
- package/dist/bundled/chunks/local-mount-CCa2jcqi.js +198 -0
- package/dist/bundled/chunks/marketplace-DKeNfni-.js +945 -0
- package/dist/bundled/chunks/matrix-BPPIGW-q.js +770 -0
- package/dist/bundled/chunks/mcp-CbWZxLuC.js +212 -0
- package/dist/bundled/chunks/measure-owner-BJxCiOYZ.js +36 -0
- package/dist/bundled/chunks/measurement-DfNeNMZe.js +237 -0
- package/dist/bundled/chunks/model-DhvdMZzS.js +744 -0
- package/dist/bundled/chunks/navigation-view-GU5-aPWL.js +20 -0
- package/dist/bundled/chunks/ownership-004rrffQ.js +48 -0
- package/dist/bundled/chunks/presets-config-CfdpjV2k.js +173 -0
- package/dist/bundled/chunks/project-config-Di_IAjjN.js +190 -0
- package/dist/bundled/chunks/purify.es-DhaLjfsW.js +2463 -0
- package/dist/bundled/chunks/rolldown-runtime-D8jQpDG7.js +12 -0
- package/dist/bundled/chunks/sandbox-shared-CwPQj187.js +1178 -0
- package/dist/bundled/chunks/screenshot-file-5sIH6A7o.js +22 -0
- package/dist/bundled/chunks/screenshot-targets-1TJFnTQJ.js +21 -0
- package/dist/bundled/chunks/selection-DQJWdqhl.js +35 -0
- package/dist/bundled/chunks/settings-B8QvkMcW.js +173 -0
- package/dist/bundled/chunks/settings-DC0gilMg.js +35 -0
- package/dist/bundled/chunks/shell-VHlsl1Wj.js +15 -0
- package/dist/bundled/chunks/shell-extensions-BRqMTtWV.js +29 -0
- package/dist/bundled/chunks/shell-registry-dTiCKXFh.js +66 -0
- package/dist/bundled/chunks/shortcuts-BPetXlYX.js +84 -0
- package/dist/bundled/chunks/src-BazVZNon.js +445 -0
- package/dist/bundled/chunks/status-C0sxyPzj.js +48 -0
- package/dist/bundled/chunks/tests-view-B9J9Gvpt.js +33 -0
- package/dist/bundled/chunks/ui-channel-BPYj8uw2.js +36 -0
- package/dist/bundled/chunks/use-install-plan-ChZg4Xyq.js +184 -0
- package/dist/bundled/chunks/visual-CId9zv09.js +611 -0
- package/dist/bundled/chunks/workbench-plugin-id-BgjbPURy.js +7 -0
- package/dist/bundled/controls.js +1 -0
- package/dist/bundled/index.js +15290 -33
- package/dist/bundled/sandbox.js +1 -87
- package/dist/embed/EmbedDocument.vue.js +4 -0
- package/dist/embed/EmbedDocument.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/embed/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/embed/_virtual/_rolldown/runtime.js +12 -0
- package/dist/embed/adapters/channels.d.ts +34 -0
- package/dist/embed/adapters/channels.js +105 -0
- package/dist/embed/adapters/content-surface.d.ts +1 -0
- package/dist/embed/adapters/content-surface.js +9 -0
- package/dist/embed/adapters/content-view.d.ts +6 -0
- package/dist/embed/adapters/content-view.js +16 -0
- package/dist/embed/adapters/controls-replica.d.ts +10 -0
- package/dist/embed/adapters/controls-replica.js +294 -0
- package/dist/embed/adapters/controls-view.d.ts +7 -0
- package/dist/embed/adapters/controls-view.js +69 -0
- package/dist/embed/adapters/controls.d.ts +1 -0
- package/dist/embed/adapters/controls.js +8 -0
- package/dist/embed/adapters/document.d.ts +24 -0
- package/dist/embed/adapters/document.js +48 -0
- package/dist/embed/adapters/explorer-session.d.ts +13 -0
- package/dist/embed/adapters/explorer-session.js +203 -0
- package/dist/embed/adapters/explorer-view.d.ts +9 -0
- package/dist/embed/adapters/explorer-view.js +83 -0
- package/dist/embed/adapters/explorer.d.ts +1 -0
- package/dist/embed/adapters/explorer.js +9 -0
- package/dist/embed/adapters/geometry.d.ts +1 -0
- package/dist/embed/adapters/geometry.js +1 -0
- package/dist/embed/adapters/layout.d.ts +14 -0
- package/dist/embed/adapters/layout.js +109 -0
- package/dist/embed/adapters/lazy-surface.d.ts +3 -0
- package/dist/embed/adapters/lazy-surface.js +52 -0
- package/dist/embed/adapters/local-mount.d.ts +3 -0
- package/dist/embed/adapters/local-mount.js +179 -0
- package/dist/embed/adapters/navigation-surface.d.ts +1 -0
- package/dist/embed/adapters/navigation-surface.js +14 -0
- package/dist/embed/adapters/navigation-view.d.ts +7 -0
- package/dist/embed/adapters/navigation-view.js +23 -0
- package/dist/embed/adapters/preview.d.ts +1 -0
- package/dist/embed/adapters/preview.js +5 -0
- package/dist/embed/adapters/runtime-frame.d.ts +14 -0
- package/dist/embed/adapters/runtime-frame.js +470 -0
- package/dist/embed/adapters/runtime-layout.d.ts +23 -0
- package/dist/embed/adapters/runtime-layout.js +44 -0
- package/dist/embed/adapters/runtime-loading.d.ts +30 -0
- package/dist/embed/adapters/runtime-loading.js +57 -0
- package/dist/embed/adapters/runtime-readiness.d.ts +14 -0
- package/dist/embed/adapters/runtime-readiness.js +53 -0
- package/dist/embed/adapters/runtime-requests.d.ts +12 -0
- package/dist/embed/adapters/runtime-requests.js +114 -0
- package/dist/embed/adapters/runtime-revision.d.ts +9 -0
- package/dist/embed/adapters/runtime-revision.js +29 -0
- package/dist/embed/adapters/sandbox-urls.d.ts +22 -0
- package/dist/embed/adapters/sandbox-urls.js +40 -0
- package/dist/embed/adapters/stale-preview.d.ts +14 -0
- package/dist/embed/adapters/stale-preview.js +56 -0
- package/dist/embed/adapters/state-presets.d.ts +28 -0
- package/dist/embed/adapters/state-presets.js +108 -0
- package/dist/embed/adapters/state.d.ts +11 -0
- package/dist/embed/adapters/state.js +29 -0
- package/dist/embed/adapters/test-workers.d.ts +30 -0
- package/dist/embed/adapters/test-workers.js +133 -0
- package/dist/embed/adapters/tests-surface.d.ts +1 -0
- package/dist/embed/adapters/tests-surface.js +9 -0
- package/dist/embed/adapters/tests-view.d.ts +7 -0
- package/dist/embed/adapters/tests-view.js +34 -0
- package/dist/embed/adapters/tests.d.ts +8 -0
- package/dist/embed/adapters/tests.js +21 -0
- package/dist/embed/app/standalone/presets.js +67 -0
- package/dist/embed/app.css +175 -0
- package/dist/embed/capabilities.d.ts +5 -0
- package/dist/embed/capabilities.js +23 -0
- package/dist/embed/color-scheme.d.ts +6 -0
- package/dist/embed/color-scheme.js +10 -0
- package/dist/embed/commands.d.ts +9 -0
- package/dist/embed/commands.js +118 -0
- package/dist/embed/descriptor.d.ts +7 -0
- package/dist/embed/descriptor.js +47 -0
- package/dist/embed/direct.d.ts +4 -0
- package/dist/embed/direct.js +55 -0
- package/dist/embed/document.css +11 -0
- package/dist/embed/fetch.d.ts +4 -0
- package/dist/embed/fetch.js +66 -0
- package/dist/embed/handshake.d.ts +7 -0
- package/dist/embed/handshake.js +171 -0
- package/dist/embed/index.d.ts +14 -0
- package/dist/embed/index.js +36 -0
- package/dist/embed/lifecycle.d.ts +7 -0
- package/dist/embed/lifecycle.js +32 -0
- package/dist/embed/node_modules/.pnpm/@codemirror_commands@6.10.1/node_modules/@codemirror/commands/dist/index.js +1567 -0
- package/dist/embed/node_modules/.pnpm/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +28 -0
- package/dist/embed/node_modules/.pnpm/@codemirror_language@6.12.1/node_modules/@codemirror/language/dist/index.js +1737 -0
- package/dist/embed/node_modules/.pnpm/@codemirror_lint@6.9.2/node_modules/@codemirror/lint/dist/index.js +559 -0
- package/dist/embed/node_modules/.pnpm/@codemirror_state@6.5.3/node_modules/@codemirror/state/dist/index.js +3351 -0
- package/dist/embed/node_modules/.pnpm/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +119 -0
- package/dist/embed/node_modules/.pnpm/@codemirror_view@6.39.9/node_modules/@codemirror/view/dist/index.js +8856 -0
- package/dist/embed/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +1521 -0
- package/dist/embed/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +874 -0
- package/dist/embed/node_modules/.pnpm/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.js +52 -0
- package/dist/embed/node_modules/.pnpm/@lezer_lr@1.4.7/node_modules/@lezer/lr/dist/index.js +1446 -0
- package/dist/embed/node_modules/.pnpm/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js +71 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_core@3.21.0/node_modules/@shikijs/core/dist/index.js +1775 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/index.js +387 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_engine-oniguruma@3.21.0/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +6 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/abap.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ada.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-expression.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-html.js +16 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-inline-template.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template-blocks.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-template.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/angular-ts.js +18 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apache.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apex.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/apl.js +16 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/applescript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ara.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asciidoc.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/asm.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/astro.js +18 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/awk.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ballerina.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bat.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/beancount.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/berry.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bibtex.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bicep.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/blade.js +20 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/bsl.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/c3.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cadence.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cairo.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clarity.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/clojure.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cmake.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cobol.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeowners.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/codeql.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coffee.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/common-lisp.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/coq.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp-macro.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cpp.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/crystal.js +18 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csharp.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/css.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/csv.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cue.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/cypher.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/d.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dart.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dax.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/desktop.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/diff.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/docker.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dotenv.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/dream-maker.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/edge.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elixir.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/elm.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erb.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/erlang.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-css.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-glsl.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-html.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-sql.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fennel.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fish.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fluent.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/fsharp.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdresource.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdscript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gdshader.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/genie.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gherkin.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-commit.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/git-rebase.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gleam.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-js.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glimmer-ts.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/glsl.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gn.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/gnuplot.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/go.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/graphql.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/groovy.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hack.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haml.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/handlebars.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haskell.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/haxe.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hcl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hjson.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hlsl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html-derivative.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/html.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/http.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hurl.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hxml.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/hy.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/imba.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ini.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/java.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/javascript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja-html.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jinja.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jison.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/json5.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonc.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsonnet.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jssm.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/jsx.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/julia.js +16 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kdl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kotlin.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/kusto.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/latex.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lean.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/less.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/liquid.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/llvm.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/log.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/logo.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/lua.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/luau.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/make.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/markdown.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/marko.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/matlab.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdc.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mdx.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mermaid.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mipsasm.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/mojo.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/moonbit.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/move.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/narrat.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nextflow.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nginx.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nim.js +20 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nix.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/nushell.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-c.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ocaml.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/openscad.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pascal.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/perl.js +16 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/php.js +18 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pkl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/plsql.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/po.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/polar.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/postcss.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powerquery.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/powershell.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prisma.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/prolog.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/proto.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/pug.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/puppet.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/purescript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/python.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qml.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qmldir.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/qss.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/r.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/racket.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/raku.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/razor.js +10 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/reg.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/regexp.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rel.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/riscv.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rosmsg.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rst.js +22 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ruby.js +30 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/rust.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sas.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sass.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scala.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scheme.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/scss.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sdbl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shaderlab.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellscript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/shellsession.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/smalltalk.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/solidity.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/soy.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sparql.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/splunk.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/sql.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ssh-config.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stata.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/stylus.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/svelte.js +14 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/swift.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/system-verilog.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/systemd.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/talonscript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tasl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tcl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/templ.js +12 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/terraform.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tex.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/toml.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/ts-tags.js +18 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsv.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/tsx.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/turtle.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/twig.js +18 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typescript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typespec.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/typst.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/v.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vala.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vb.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/verilog.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vhdl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/viml.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-directives.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-html.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue-vine.js +18 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vue.js +26 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/vyper.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wasm.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wenyan.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wgsl.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wikitext.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wit.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/wolfram.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/xsl.js +5 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/yaml.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zenscript.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_langs@3.21.0/node_modules/@shikijs/langs/dist/zig.js +2 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/andromeeda.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/aurora-x.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/ayu-dark.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-latte.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dark-plus.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula-soft.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/dracula.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-dark.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/everforest-light.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-default.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-dark.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-default.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/github-light.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/houston.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/kanagawa-wave.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/laserwave.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/light-plus.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-darker.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-lighter.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-ocean.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme-palenight.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/material-theme.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-dark.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/min-light.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/monokai.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/night-owl.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/nord.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-dark-pro.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/one-light.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/plastic.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/poimandres.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/red.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine-moon.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/rose-pine.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-dark.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/slack-ochin.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/snazzy-light.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-dark.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/solarized-light.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/synthwave-84.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/tokyo-night.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vesper.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-black.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-dark.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_themes@3.21.0/node_modules/@shikijs/themes/dist/vitesse-light.js +3 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_types@3.21.0/node_modules/@shikijs/types/dist/index.js +8 -0
- package/dist/embed/node_modules/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +2320 -0
- package/dist/embed/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +23 -0
- package/dist/embed/node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +261 -0
- package/dist/embed/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +115 -0
- package/dist/embed/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +16 -0
- package/dist/embed/node_modules/.pnpm/crelt@1.0.6/node_modules/crelt/index.js +23 -0
- package/dist/embed/node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.js +2463 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +33 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +23 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +125 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +50 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +25 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +23 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +26 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +238 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +268 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +39 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +97 -0
- package/dist/embed/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +42 -0
- package/dist/embed/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +27 -0
- package/dist/embed/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +29 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +25 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +60 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +80 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +315 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +14 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +561 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +14 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +13 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +52 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +48 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +32 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +25 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +26 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +23 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +18 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +14 -0
- package/dist/embed/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +13 -0
- package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/bundle-full.js +13 -0
- package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/index.js +7 -0
- package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/langs.js +1248 -0
- package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/themes.js +365 -0
- package/dist/embed/node_modules/.pnpm/shiki@3.21.0/node_modules/shiki/dist/wasm.js +1 -0
- package/dist/embed/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +13 -0
- package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +18 -0
- package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +77 -0
- package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +21 -0
- package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +40 -0
- package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +15 -0
- package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +15 -0
- package/dist/embed/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +35 -0
- package/dist/embed/node_modules/.pnpm/style-mod@4.1.3/node_modules/style-mod/src/style-mod.js +92 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScroller.vue_vue_type_script_setup_true_lang-yssX6Q5B.js +130 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/DynamicScrollerItem.vue_vue_type_script_setup_true_lang-qh6MY0wl.js +37 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi.js +202 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScroller.js +705 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/composables/useDynamicScrollerItem.js +47 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/dynamicScrollerMeasurement-Cq5NQLJa.js +122 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/keyField-D6okV6nC.js +15 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/scroller.css_vue_type_style_index_0_src_true_lang--7gJ3zh_.js +100 -0
- package/dist/embed/node_modules/.pnpm/vue-virtual-scroller@3.0.5_vue@3.5.26_@typescript_typescript6@6.0.2_/node_modules/vue-virtual-scroller/dist/useRecycleScroller-D_RDrEg2.js +805 -0
- package/dist/embed/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js +101 -0
- package/dist/embed/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +105 -0
- package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue.js +4 -0
- package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchEmptyState.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue.js +4 -0
- package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchLoadingState.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue.js +4 -0
- package/dist/embed/packages/histoire-app/src/app/components/shell/WorkbenchStateLayout.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue.js +6 -0
- package/dist/embed/packages/histoire-controls/src/components/BuiltinIcon.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue.js +6 -0
- package/dist/embed/packages/histoire-controls/src/components/HstPulsatingDisc.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/HstWrapper.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/button/HstButton.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/button/HstButtonGroup.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/embed/packages/histoire-controls/src/components/design-tokens/HstTokenGrid.vue.js +1 -0
- package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue.js +6 -0
- package/dist/embed/packages/histoire-controls/src/components/json/HstJson.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue.js +6 -0
- package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditor.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/embed/packages/histoire-controls/src/components/json/HstJsonEditorAsync.js +22 -0
- package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/number/HstNumber.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/select/CustomSelect.vue_vue_type_script_setup_true_lang.js +207 -0
- package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/select/HstSelect.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/embed/packages/histoire-controls/src/components/slider/HstSlider.vue.js +1 -0
- package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/switch/HstSwitch.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue.js +4 -0
- package/dist/embed/packages/histoire-controls/src/components/text/HstText.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/embed/packages/histoire-controls/src/context.js +17 -0
- package/dist/embed/packages/histoire-controls/src/field.js +43 -0
- package/dist/embed/packages/histoire-controls/src/index.js +30 -0
- package/dist/embed/packages/histoire-controls/src/loading/LoadingDelayBoundary.js +13 -0
- package/dist/embed/packages/histoire-controls/src/loading/use-loading-delay.js +24 -0
- package/dist/embed/packages/histoire-controls/src/model.js +28 -0
- package/dist/embed/packages/histoire-controls/src/options.js +12 -0
- package/dist/embed/packages/histoire-controls/src/overlay/appearance.js +64 -0
- package/dist/embed/packages/histoire-controls/src/overlay/focus.js +81 -0
- package/dist/embed/packages/histoire-controls/src/overlay/tooltip.js +116 -0
- package/dist/embed/packages/histoire-controls/src/utils.js +15 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/GenericControls.js +40 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/HistoireControls.js +203 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/PresetMenu.js +267 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/PropControl.js +85 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/StateControl.js +34 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/StatePresets.js +127 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/edit.js +80 -0
- package/dist/embed/packages/histoire-vue/src/components/controls/editor.js +29 -0
- package/dist/embed/packages/histoire-vue/src/components/docs/HistoireDocs.js +149 -0
- package/dist/embed/packages/histoire-vue/src/components/docs/anchors.js +21 -0
- package/dist/embed/packages/histoire-vue/src/components/docs/content.js +12 -0
- package/dist/embed/packages/histoire-vue/src/components/docs/links.js +81 -0
- package/dist/embed/packages/histoire-vue/src/components/docs/sanitize.js +30 -0
- package/dist/embed/packages/histoire-vue/src/components/embed/EmbedPanels.js +64 -0
- package/dist/embed/packages/histoire-vue/src/components/embed/HistoireEmbed.js +93 -0
- package/dist/embed/packages/histoire-vue/src/components/embed/geometry.js +39 -0
- package/dist/embed/packages/histoire-vue/src/components/events/HistoireEvents.js +116 -0
- package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerNavigation.js +23 -0
- package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPanels.js +121 -0
- package/dist/embed/packages/histoire-vue/src/components/explorer/ExplorerPreview.js +136 -0
- package/dist/embed/packages/histoire-vue/src/components/explorer/HistoireExplorer.js +58 -0
- package/dist/embed/packages/histoire-vue/src/components/explorer/panel-tabs.js +69 -0
- package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionOutlet.js +48 -0
- package/dist/embed/packages/histoire-vue/src/components/extensions/HistoireExtensionView.js +76 -0
- package/dist/embed/packages/histoire-vue/src/components/extensions/panel-action.js +33 -0
- package/dist/embed/packages/histoire-vue/src/components/extensions/state-renderer.js +65 -0
- package/dist/embed/packages/histoire-vue/src/components/extensions/view-lifecycle.js +109 -0
- package/dist/embed/packages/histoire-vue/src/components/extensions/workbench-components.js +134 -0
- package/dist/embed/packages/histoire-vue/src/components/preview/HistoirePreview.js +5 -0
- package/dist/embed/packages/histoire-vue/src/components/preview/surface.js +121 -0
- package/dist/embed/packages/histoire-vue/src/components/search/HistoireSearch.js +106 -0
- package/dist/embed/packages/histoire-vue/src/components/source/HistoireSource.js +147 -0
- package/dist/embed/packages/histoire-vue/src/components/source/content.js +15 -0
- package/dist/embed/packages/histoire-vue/src/components/source/highlight.js +32 -0
- package/dist/embed/packages/histoire-vue/src/components/source/render.js +15 -0
- package/dist/embed/packages/histoire-vue/src/components/tests/HistoireTests.js +119 -0
- package/dist/embed/packages/histoire-vue/src/components/tests/TestsRunActions.js +186 -0
- package/dist/embed/packages/histoire-vue/src/components/tests/render.js +147 -0
- package/dist/embed/packages/histoire-vue/src/components/toolbar/HistoireToolbar.js +145 -0
- package/dist/embed/packages/histoire-vue/src/components/toolbar/ToolbarExtensions.js +89 -0
- package/dist/embed/packages/histoire-vue/src/components/toolbar/groups.js +25 -0
- package/dist/embed/packages/histoire-vue/src/components/tree/HistoireStoryTree.js +90 -0
- package/dist/embed/packages/histoire-vue/src/composables/snapshot.js +11 -0
- package/dist/embed/packages/histoire-vue/src/content/controller.js +66 -0
- package/dist/embed/packages/histoire-vue/src/foundation/VirtualList.js +156 -0
- package/dist/embed/packages/histoire-vue/src/foundation/floating.js +80 -0
- package/dist/embed/packages/histoire-vue/src/foundation/parts.js +18 -0
- package/dist/embed/packages/histoire-vue/src/overlays/OverlayHost.js +138 -0
- package/dist/embed/packages/histoire-vue/src/overlays/geometry.js +14 -0
- package/dist/embed/packages/histoire-vue/src/overlays/menu-bounds.js +46 -0
- package/dist/embed/packages/histoire-vue/src/provider/HistoireProvider.js +198 -0
- package/dist/embed/packages/histoire-vue/src/provider/context.js +17 -0
- package/dist/embed/packages/histoire-vue/src/provider/extensions.js +150 -0
- package/dist/embed/packages/histoire-vue/src/provider/panels.js +51 -0
- package/dist/embed/packages/histoire-vue/src/provider/plugin-shortcuts.js +75 -0
- package/dist/embed/packages/histoire-vue/src/provider/shortcuts.js +56 -0
- package/dist/embed/packages/histoire-vue/src/provider/theme.js +23 -0
- package/dist/embed/packages/histoire-vue/src/search/navigation.js +51 -0
- package/dist/embed/packages/histoire-vue/src/tests/collector.js +49 -0
- package/dist/embed/packages/histoire-vue/src/tests/controller.js +114 -0
- package/dist/embed/packages/histoire-vue/src/tests/model.js +29 -0
- package/dist/embed/search-match.d.ts +23 -0
- package/dist/embed/search-match.js +51 -0
- package/dist/embed/search.d.ts +5 -0
- package/dist/embed/search.js +54 -0
- package/dist/embed/source.d.ts +4 -0
- package/dist/embed/source.js +151 -0
- package/dist/embed/subscriptions.d.ts +10 -0
- package/dist/embed/subscriptions.js +49 -0
- package/dist/embed/surfaces.d.ts +42 -0
- package/dist/embed/surfaces.js +22 -0
- package/dist/embed/types.d.ts +24 -0
- package/dist/embed/view-session.d.ts +16 -0
- package/dist/embed/view-session.js +196 -0
- package/dist/fonts/SOURCES.txt +2 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono.LICENSE +93 -0
- package/dist/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/manrope-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/manrope.LICENSE +93 -0
- package/dist/style.css +8151 -2836
- package/package.json +34 -14
- package/postcss-scope-wrapper.cjs +21 -22
- package/postcss.config.cjs +2 -4
- package/scripts/asset-path.mjs +8 -0
- package/scripts/copy.mjs +4 -5
- package/scripts/generate-fonts.mjs +42 -0
- package/scripts/generate-icons.mjs +28 -0
- package/scripts/module-file-name.mjs +8 -0
- package/scripts/watchAndCopy.mjs +8 -5
- package/src/app/App.vue +27 -167
- package/src/app/api.ts +8 -1
- package/src/app/components/agents/AgentLogo.vue +31 -0
- package/src/app/components/agents/PermissionPrompt.vue +74 -0
- package/src/app/components/base/BaseButton.vue +13 -23
- package/src/app/components/base/BaseChip.vue +21 -0
- package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
- package/src/app/components/base/overflow/BaseOverflowToolbar.vue +111 -0
- package/src/app/components/base/overflow/BaseOverflowToolbarItem.vue +36 -0
- package/src/app/components/base/overflow/context.ts +47 -0
- package/src/app/components/base/overflow/fit.ts +28 -0
- package/src/app/components/base/overflow/layout.ts +174 -0
- package/src/app/components/base/overflow/measurement.ts +70 -0
- package/src/app/components/base/overflow/presentation.ts +12 -0
- package/src/app/components/base/popover/BasePopover.vue +147 -0
- package/src/app/components/base/popover/PopoverDivider.vue +12 -0
- package/src/app/components/base/popover/PopoverError.vue +12 -0
- package/src/app/components/base/popover/PopoverMeta.vue +10 -0
- package/src/app/components/base/popover/PopoverRow.vue +19 -0
- package/src/app/components/base/popover/PopoverTitle.vue +16 -0
- package/src/app/components/base/popover/overlay.ts +21 -0
- package/src/app/components/base/popover/position.ts +54 -0
- package/src/app/components/base/popover/scope.ts +45 -0
- package/src/app/components/base/use-menu-keyboard.ts +61 -0
- package/src/app/components/canvas/AgentCursor.vue +66 -0
- package/src/app/components/canvas/CanvasFrame.vue +167 -0
- package/src/app/components/canvas/CanvasHeader.vue +35 -0
- package/src/app/components/canvas/CanvasHintBar.vue +16 -0
- package/src/app/components/canvas/CanvasHintButton.vue +18 -0
- package/src/app/components/canvas/CanvasHintItem.vue +16 -0
- package/src/app/components/canvas/CanvasHintKey.vue +10 -0
- package/src/app/components/canvas/CanvasLoadingIndicator.vue +9 -0
- package/src/app/components/canvas/CanvasMatrixPrimary.vue +147 -0
- package/src/app/components/canvas/CanvasMeasureHint.vue +57 -0
- package/src/app/components/canvas/CanvasReplicaPreview.vue +86 -0
- package/src/app/components/canvas/CanvasSingleVariant.vue +70 -0
- package/src/app/components/canvas/CanvasStatus.vue +49 -0
- package/src/app/components/canvas/CanvasViewport.vue +283 -0
- package/src/app/components/canvas/CollectErrorCard.vue +22 -0
- package/src/app/components/canvas/FrameGrid.vue +14 -0
- package/src/app/components/canvas/FrameList.vue +14 -0
- package/src/app/components/canvas/MeasureBoxModel.vue +47 -0
- package/src/app/components/canvas/MeasureGuides.vue +30 -0
- package/src/app/components/canvas/MeasureOverlay.vue +252 -0
- package/src/app/components/canvas/SingleVariantResizeHandle.vue +11 -0
- package/src/app/components/canvas/SingleVariantResizeHandles.vue +131 -0
- package/src/app/components/canvas/active-tool.ts +9 -0
- package/src/app/components/canvas/agent-cursor.ts +57 -0
- package/src/app/components/canvas/canvas-extensions.ts +87 -0
- package/src/app/components/canvas/canvas-header-editor.ts +84 -0
- package/src/app/components/canvas/canvas-overlay-occlusion.ts +20 -0
- package/src/app/components/canvas/canvas-startup-activity.ts +46 -0
- package/src/app/components/canvas/content-measure.ts +92 -0
- package/src/app/components/canvas/content-sizes.ts +37 -0
- package/src/app/components/canvas/frame-activation.ts +49 -0
- package/src/app/components/canvas/frame-admission.ts +42 -0
- package/src/app/components/canvas/frame-badges.ts +74 -0
- package/src/app/components/canvas/frame-focus.ts +31 -0
- package/src/app/components/canvas/frame-interactions.ts +81 -0
- package/src/app/components/canvas/frame-layout.ts +158 -0
- package/src/app/components/canvas/frame-menu.ts +13 -0
- package/src/app/components/canvas/frame-props-override.ts +94 -0
- package/src/app/components/canvas/frame-registration.ts +12 -0
- package/src/app/components/canvas/frame-replica.ts +34 -0
- package/src/app/components/canvas/frame-requests.ts +8 -0
- package/src/app/components/canvas/frame-runtime.ts +100 -0
- package/src/app/components/canvas/frame-selection.ts +90 -0
- package/src/app/components/canvas/frame-source.ts +10 -0
- package/src/app/components/canvas/frame-startup-coordinator.ts +250 -0
- package/src/app/components/canvas/frame-startup-lifecycle.ts +197 -0
- package/src/app/components/canvas/frame-state.ts +92 -0
- package/src/app/components/canvas/frame-target.ts +21 -0
- package/src/app/components/canvas/frames/acquire-story-frame.ts +240 -0
- package/src/app/components/canvas/frames/frame-leases.ts +204 -0
- package/src/app/components/canvas/frames/frame-ledger.ts +79 -0
- package/src/app/components/canvas/frames/story-frame-session.ts +156 -0
- package/src/app/components/canvas/frames/viewport-frames.ts +49 -0
- package/src/app/components/canvas/matrix/MatrixAvailabilityState.vue +51 -0
- package/src/app/components/canvas/matrix/MatrixAxisBar.vue +32 -0
- package/src/app/components/canvas/matrix/MatrixAxisEntry.vue +85 -0
- package/src/app/components/canvas/matrix/MatrixAxisForm.vue +16 -0
- package/src/app/components/canvas/matrix/MatrixAxisFormActions.vue +12 -0
- package/src/app/components/canvas/matrix/MatrixBaseProp.vue +59 -0
- package/src/app/components/canvas/matrix/MatrixCell.vue +100 -0
- package/src/app/components/canvas/matrix/MatrixCustomAxes.vue +71 -0
- package/src/app/components/canvas/matrix/MatrixCustomValues.vue +52 -0
- package/src/app/components/canvas/matrix/MatrixInspector.vue +124 -0
- package/src/app/components/canvas/matrix/MatrixNumericValues.vue +95 -0
- package/src/app/components/canvas/matrix/MatrixView.vue +123 -0
- package/src/app/components/canvas/matrix/MatrixVisualActions.vue +52 -0
- package/src/app/components/canvas/matrix/matrix-layout.ts +63 -0
- package/src/app/components/canvas/matrix/matrix-registration.ts +42 -0
- package/src/app/components/canvas/matrix/matrix-selection.ts +18 -0
- package/src/app/components/canvas/measure-controller.ts +205 -0
- package/src/app/components/canvas/measure-geometry.ts +158 -0
- package/src/app/components/canvas/measure-labels.ts +130 -0
- package/src/app/components/canvas/measure-owner.ts +31 -0
- package/src/app/components/canvas/overlays/CanvasPluginLayers.vue +22 -0
- package/src/app/components/canvas/overlays/FrameLayer.vue +28 -0
- package/src/app/components/canvas/overlays/OverlayItem.vue +26 -0
- package/src/app/components/canvas/overlays/OverlayLayer.vue +32 -0
- package/src/app/components/canvas/overlays/frame-overlays.ts +83 -0
- package/src/app/components/canvas/pan/usePanZoom.ts +147 -0
- package/src/app/components/canvas/pan/usePointerPan.ts +99 -0
- package/src/app/components/canvas/pan/useSpacePan.ts +89 -0
- package/src/app/components/canvas/sandbox-boot-gate.ts +63 -0
- package/src/app/components/canvas/single-resize.ts +192 -0
- package/src/app/components/canvas/single-viewport.ts +41 -0
- package/src/app/components/canvas/single-zoom.ts +10 -0
- package/src/app/components/canvas/snapshots/capture.ts +107 -0
- package/src/app/components/canvas/snapshots/document.ts +24 -0
- package/src/app/components/canvas/snapshots/store.ts +127 -0
- package/src/app/components/canvas/snapshots/useFrameSnapshot.ts +98 -0
- package/src/app/components/canvas/story-view-binding.ts +187 -0
- package/src/app/components/canvas/toolbar/ArrangeSwitch.vue +25 -0
- package/src/app/components/canvas/toolbar/BackgroundPicker.vue +77 -0
- package/src/app/components/canvas/toolbar/CanvasToolbar.vue +157 -0
- package/src/app/components/canvas/toolbar/PluginToolbarItem.vue +74 -0
- package/src/app/components/canvas/toolbar/ScreenshotPopover.vue +195 -0
- package/src/app/components/canvas/toolbar/ScreenshotSetup.vue +193 -0
- package/src/app/components/canvas/toolbar/SearchMatchStepper.vue +27 -0
- package/src/app/components/canvas/toolbar/ToolSwitch.vue +38 -0
- package/src/app/components/canvas/toolbar/ToolbarButton.vue +52 -0
- package/src/app/components/canvas/toolbar/ToolbarPopover.vue +57 -0
- package/src/app/components/canvas/toolbar/ViewportMenu.vue +105 -0
- package/src/app/components/canvas/toolbar/ZoomMenu.vue +58 -0
- package/src/app/components/canvas/toolbar/bounds.ts +30 -0
- package/src/app/components/canvas/toolbar/session-settings.ts +16 -0
- package/src/app/components/canvas/toolbar/settings.ts +25 -0
- package/src/app/components/canvas/toolbar/shortcuts.ts +20 -0
- package/src/app/components/canvas/toolbar/use-screenshot-setup.ts +183 -0
- package/src/app/components/canvas/toolbar/viewport-size.ts +20 -0
- package/src/app/components/canvas/tools/PluginToolLayer.vue +50 -0
- package/src/app/components/canvas/tools/plugin-tool.ts +158 -0
- package/src/app/components/canvas/tools/plugin-tools.ts +134 -0
- package/src/app/components/canvas/useCanvasContentSizing.ts +69 -0
- package/src/app/components/canvas/useCanvasGeometry.ts +99 -0
- package/src/app/components/canvas/useCanvasHeaderOcclusion.ts +52 -0
- package/src/app/components/canvas/useCanvasPan.ts +46 -0
- package/src/app/components/canvas/useCanvasVariantSize.ts +22 -0
- package/src/app/components/canvas/useSingleVariantGeometry.ts +32 -0
- package/src/app/components/canvas/useSingleVariantPan.ts +78 -0
- package/src/app/components/canvas/useSingleVariantZoom.ts +58 -0
- package/src/app/components/canvas/viewport-events.ts +105 -0
- package/src/app/components/canvas/views/PluginCanvasView.vue +59 -0
- package/src/app/components/canvas/views/canvas-views.ts +119 -0
- package/src/app/components/canvas/views/view-input.ts +20 -0
- package/src/app/components/command/CommandPrompts.vue +31 -23
- package/src/app/components/command/PromptSelect.vue +27 -23
- package/src/app/components/command/PromptText.vue +10 -8
- package/src/app/components/comments/CommentComposer.vue +78 -0
- package/src/app/components/comments/CommentContext.vue +56 -0
- package/src/app/components/comments/CommentContextChip.vue +21 -0
- package/src/app/components/comments/CommentPin.vue +31 -0
- package/src/app/components/comments/CommentThread.vue +113 -0
- package/src/app/components/comments/CommentsCanvasOverlay.vue +172 -0
- package/src/app/components/comments/capture.ts +45 -0
- package/src/app/components/comments/destination.ts +45 -0
- package/src/app/components/comments/dismiss-outside.ts +44 -0
- package/src/app/components/comments/frame-geometry.ts +28 -0
- package/src/app/components/comments/pick.ts +83 -0
- package/src/app/components/comments/presentation.ts +85 -0
- package/src/app/components/comments/prompt/AgentPrompt.vue +188 -0
- package/src/app/components/comments/prompt/AttachMenuPanel.vue +67 -0
- package/src/app/components/comments/prompt/AttachmentStrip.vue +54 -0
- package/src/app/components/comments/prompt/AttachmentTile.vue +41 -0
- package/src/app/components/comments/prompt/AttachmentViewer.vue +37 -0
- package/src/app/components/comments/prompt/ContextChip.vue +28 -0
- package/src/app/components/comments/prompt/PromptAttachMenu.vue +52 -0
- package/src/app/components/comments/prompt/PromptMenu.vue +51 -0
- package/src/app/components/comments/prompt/PromptSuggestions.vue +33 -0
- package/src/app/components/comments/prompt/SessionPicker.vue +49 -0
- package/src/app/components/comments/prompt/SessionPopover.vue +21 -0
- package/src/app/components/comments/prompt/SessionRadioList.vue +30 -0
- package/src/app/components/comments/prompt/SessionSettings.vue +71 -0
- package/src/app/components/comments/prompt/actions.ts +85 -0
- package/src/app/components/comments/prompt/attachment-meta.ts +28 -0
- package/src/app/components/comments/prompt/attachments.ts +121 -0
- package/src/app/components/comments/prompt/autogrow.ts +20 -0
- package/src/app/components/comments/prompt/menu-trigger.ts +28 -0
- package/src/app/components/comments/prompt/plan-follow-up.ts +23 -0
- package/src/app/components/comments/prompt/session-labels.ts +36 -0
- package/src/app/components/comments/prompt/suggestions.ts +140 -0
- package/src/app/components/comments/reply-draft.ts +42 -0
- package/src/app/components/comments/thread/AgentActivityPhase.vue +46 -0
- package/src/app/components/comments/thread/AgentDisclosure.vue +12 -0
- package/src/app/components/comments/thread/AgentLiveTail.vue +54 -0
- package/src/app/components/comments/thread/AgentMarkdown.vue +32 -0
- package/src/app/components/comments/thread/AgentPlan.vue +39 -0
- package/src/app/components/comments/thread/AgentPlanDecision.vue +29 -0
- package/src/app/components/comments/thread/ThreadMessage.vue +70 -0
- package/src/app/components/comments/thread/activity-phases.ts +105 -0
- package/src/app/components/comments/thread/markdown.ts +32 -0
- package/src/app/components/comments/thread/questions/AgentElicitation.vue +34 -0
- package/src/app/components/comments/thread/questions/AgentPendingInput.vue +67 -0
- package/src/app/components/comments/thread/questions/AgentPlanApproval.vue +36 -0
- package/src/app/components/comments/thread/questions/ElicitationField.vue +74 -0
- package/src/app/components/comments/thread/questions/ElicitationForm.vue +54 -0
- package/src/app/components/comments/thread/questions/ElicitationLink.vue +64 -0
- package/src/app/components/comments/thread/questions/ElicitationOptions.vue +101 -0
- package/src/app/components/comments/thread/questions/QuestionActions.vue +12 -0
- package/src/app/components/comments/thread/questions/QuestionInput.vue +3 -0
- package/src/app/components/comments/thread/questions/QuestionOption.vue +13 -0
- package/src/app/components/comments/thread/questions/QuestionOptionLabel.vue +12 -0
- package/src/app/components/comments/thread/questions/elicitation-fields.ts +66 -0
- package/src/app/components/comments/thread/questions/use-expiry-countdown.ts +31 -0
- package/src/app/components/comments/thread/stick-to-bottom.ts +43 -0
- package/src/app/components/embed/EmbedDialog.vue +204 -0
- package/src/app/components/embed/EmbedMenu.vue +36 -0
- package/src/app/components/embed/actions.ts +21 -0
- package/src/app/components/embed/controller.ts +74 -0
- package/src/app/components/embed/snippets.ts +124 -0
- package/src/app/components/extensions/ExtensionOutlet.vue +58 -0
- package/src/app/components/extensions/ExtensionView.vue +79 -0
- package/src/app/components/extensions/workbench-components.ts +23 -0
- package/src/app/components/inspector/DocsTab.vue +20 -0
- package/src/app/components/inspector/EventsBadge.vue +9 -0
- package/src/app/components/inspector/EventsTab.vue +29 -0
- package/src/app/components/inspector/InspectorExtensionOutlet.vue +31 -0
- package/src/app/components/inspector/InspectorGuideLink.vue +21 -0
- package/src/app/components/inspector/InspectorHeader.vue +36 -0
- package/src/app/components/inspector/InspectorTabs.vue +103 -0
- package/src/app/components/inspector/PropsTab.vue +33 -0
- package/src/app/components/inspector/SourceAction.vue +14 -0
- package/src/app/components/inspector/SourceDrawer.vue +188 -0
- package/src/app/components/inspector/StoryInspector.vue +149 -0
- package/src/app/components/inspector/TestsBadge.vue +14 -0
- package/src/app/components/inspector/TestsTab.vue +29 -0
- package/src/app/components/inspector/builtins.ts +36 -0
- package/src/app/components/inspector/inspection/InspectionAccessibility.vue +56 -0
- package/src/app/components/inspector/inspection/InspectionComponents.vue +48 -0
- package/src/app/components/inspector/inspection/InspectionPanel.vue +107 -0
- package/src/app/components/inspector/inspection/frame-owner.ts +13 -0
- package/src/app/components/inspector/inspection/picker.ts +80 -0
- package/src/app/components/inspector/inspection/plugin.ts +111 -0
- package/src/app/components/inspector/inspection/use-inspection.ts +227 -0
- package/src/app/components/inspector/model.ts +79 -0
- package/src/app/components/inspector/plugin-tabs.ts +78 -0
- package/src/app/components/inspector/state.ts +131 -0
- package/src/app/components/inspector/tab-overflow.ts +127 -0
- package/src/app/components/lists/WorkbenchVirtualList.vue +41 -0
- package/src/app/components/marketplace/browse/CatalogState.vue +29 -0
- package/src/app/components/marketplace/browse/CollectionRow.vue +36 -0
- package/src/app/components/marketplace/browse/DiscoverHero.vue +43 -0
- package/src/app/components/marketplace/browse/FacetPanel.vue +73 -0
- package/src/app/components/marketplace/browse/MarketplaceAll.vue +46 -0
- package/src/app/components/marketplace/browse/MarketplaceDiscover.vue +53 -0
- package/src/app/components/marketplace/browse/MatchText.vue +28 -0
- package/src/app/components/marketplace/browse/NoResults.vue +63 -0
- package/src/app/components/marketplace/browse/PluginCard.vue +61 -0
- package/src/app/components/marketplace/browse/PluginInstallAction.vue +22 -0
- package/src/app/components/marketplace/browse/ResultsBar.vue +38 -0
- package/src/app/components/marketplace/browse/catalog-client.ts +52 -0
- package/src/app/components/marketplace/browse/catalog-collections.ts +37 -0
- package/src/app/components/marketplace/browse/labels.ts +11 -0
- package/src/app/components/marketplace/browse/plugin-actions.ts +7 -0
- package/src/app/components/marketplace/browse/use-catalog-filters.ts +50 -0
- package/src/app/components/marketplace/browse/use-catalog-query.ts +67 -0
- package/src/app/components/marketplace/detail/ChangelogTab.vue +31 -0
- package/src/app/components/marketplace/detail/DetailHeader.vue +83 -0
- package/src/app/components/marketplace/detail/MarketplaceDetail.vue +83 -0
- package/src/app/components/marketplace/detail/MetaList.vue +76 -0
- package/src/app/components/marketplace/detail/OptionsTab.vue +48 -0
- package/src/app/components/marketplace/detail/OverviewTab.vue +31 -0
- package/src/app/components/marketplace/detail/VersionsTab.vue +24 -0
- package/src/app/components/marketplace/detail/use-plugin-detail.ts +48 -0
- package/src/app/components/marketplace/install/CommandBlock.vue +15 -0
- package/src/app/components/marketplace/install/ConfigDiff.vue +23 -0
- package/src/app/components/marketplace/install/FailureStep.vue +59 -0
- package/src/app/components/marketplace/install/InstallFooter.vue +17 -0
- package/src/app/components/marketplace/install/ManualStep.vue +87 -0
- package/src/app/components/marketplace/install/MarketplaceInstall.vue +121 -0
- package/src/app/components/marketplace/install/OptionField.vue +46 -0
- package/src/app/components/marketplace/install/OptionsStep.vue +43 -0
- package/src/app/components/marketplace/install/OutputLog.vue +22 -0
- package/src/app/components/marketplace/install/ProgressStep.vue +60 -0
- package/src/app/components/marketplace/install/ReviewStep.vue +75 -0
- package/src/app/components/marketplace/install/WizardSteps.vue +27 -0
- package/src/app/components/marketplace/install/manual-instructions.ts +18 -0
- package/src/app/components/marketplace/install/use-copy.ts +15 -0
- package/src/app/components/marketplace/install/use-install-plan.ts +59 -0
- package/src/app/components/marketplace/install/use-install-wizard.ts +161 -0
- package/src/app/components/marketplace/shell/MarketplaceHeader.vue +46 -0
- package/src/app/components/marketplace/shell/MarketplaceModal.vue +52 -0
- package/src/app/components/marketplace/shell/MarketplaceView.vue +16 -0
- package/src/app/components/marketplace/shell/PluginTile.vue +44 -0
- package/src/app/components/marketplace/shell/compatibility-reason.ts +4 -0
- package/src/app/components/marketplace/shell/job-progress-label.ts +22 -0
- package/src/app/components/marketplace/shell/marketplace-jobs.ts +115 -0
- package/src/app/components/marketplace/shell/marketplace-prefs.ts +18 -0
- package/src/app/components/marketplace/shell/marketplace-reads.ts +16 -0
- package/src/app/components/marketplace/shell/marketplace-services.ts +17 -0
- package/src/app/components/marketplace/shell/use-marketplace-keys.ts +34 -0
- package/src/app/components/marketplace/shell/workbench-plugin-id.ts +5 -0
- package/src/app/components/marketplace/spotlight/MarketplaceSpotlightHost.vue +10 -0
- package/src/app/components/marketplace/spotlight/SpotlightCard.vue +95 -0
- package/src/app/components/marketplace/spotlight/use-post-install-spotlight.ts +173 -0
- package/src/app/components/marketplace/spotlight/use-spotlight-targets.ts +80 -0
- package/src/app/components/marketplace/update/MarketplaceUpdateBody.vue +98 -0
- package/src/app/components/marketplace/update/MarketplaceUpdateDialog.vue +40 -0
- package/src/app/components/marketplace/update/ReleaseNotes.vue +27 -0
- package/src/app/components/marketplace/update/use-update-dialog.ts +118 -0
- package/src/app/components/menu/ContextMenu.vue +118 -0
- package/src/app/components/menu/MenuItem.vue +12 -0
- package/src/app/components/menu/SubMenu.vue +48 -0
- package/src/app/components/misc/HatchedPattern.vue +1 -11
- package/src/app/components/pages/home/BrowseSections.vue +39 -0
- package/src/app/components/pages/home/DevBrowseStatus.vue +25 -0
- package/src/app/components/pages/home/GuidesList.vue +31 -0
- package/src/app/components/pages/home/HomeCard.vue +12 -0
- package/src/app/components/pages/home/HomeHeader.vue +30 -0
- package/src/app/components/pages/home/HomeHeading.vue +12 -0
- package/src/app/components/pages/home/HomePage.vue +102 -0
- package/src/app/components/pages/home/HomeRow.vue +18 -0
- package/src/app/components/pages/home/HomeSearch.vue +22 -0
- package/src/app/components/pages/home/NeedsAttention.vue +47 -0
- package/src/app/components/pages/home/PluginHomeSections.vue +44 -0
- package/src/app/components/pages/home/UpdatesList.vue +46 -0
- package/src/app/components/pages/home/catalog.spec.ts +53 -0
- package/src/app/components/pages/home/catalog.ts +59 -0
- package/src/app/components/pages/home/ownership.spec.ts +14 -0
- package/src/app/components/pages/home/ownership.ts +48 -0
- package/src/app/components/pages/markdown/MarkdownOutline.vue +26 -0
- package/src/app/components/pages/markdown/MarkdownPage.vue +141 -0
- package/src/app/components/pages/markdown/MarkdownPager.vue +30 -0
- package/src/app/components/pages/markdown/navigation.spec.ts +18 -0
- package/src/app/components/pages/markdown/navigation.ts +9 -0
- package/src/app/components/pages/markdown/outline-dom.spec.ts +28 -0
- package/src/app/components/pages/markdown/outline-dom.ts +37 -0
- package/src/app/components/pages/markdown/outline.ts +36 -0
- package/src/app/components/pages/settings/AboutSection.vue +27 -0
- package/src/app/components/pages/settings/AgentAdvancedSettings.vue +135 -0
- package/src/app/components/pages/settings/AgentArgumentsField.vue +49 -0
- package/src/app/components/pages/settings/AgentEnvironmentField.vue +67 -0
- package/src/app/components/pages/settings/AgentLaunchField.vue +19 -0
- package/src/app/components/pages/settings/AgentModelSettings.vue +51 -0
- package/src/app/components/pages/settings/AgentPresetRow.vue +79 -0
- package/src/app/components/pages/settings/AgentsSection.vue +149 -0
- package/src/app/components/pages/settings/AppearanceSection.vue +60 -0
- package/src/app/components/pages/settings/BackgroundsSection.vue +96 -0
- package/src/app/components/pages/settings/GeneralSection.vue +33 -0
- package/src/app/components/pages/settings/McpSection.vue +48 -0
- package/src/app/components/pages/settings/PluginsSection.vue +105 -0
- package/src/app/components/pages/settings/ProjectSourceBadge.vue +32 -0
- package/src/app/components/pages/settings/SaveToProject.vue +71 -0
- package/src/app/components/pages/settings/SettingsCard.vue +12 -0
- package/src/app/components/pages/settings/SettingsChoices.vue +7 -0
- package/src/app/components/pages/settings/SettingsNav.vue +35 -0
- package/src/app/components/pages/settings/SettingsPage.vue +59 -0
- package/src/app/components/pages/settings/SettingsRow.vue +20 -0
- package/src/app/components/pages/settings/ShortcutsSection.vue +28 -0
- package/src/app/components/pages/settings/TestsSection.vue +20 -0
- package/src/app/components/pages/settings/ViewportsSection.vue +76 -0
- package/src/app/components/pages/settings/plugins/InstalledPluginRow.vue +90 -0
- package/src/app/components/pages/settings/plugins/MarketplacePrefs.vue +37 -0
- package/src/app/components/pages/settings/plugins/PluginActionsMenu.vue +79 -0
- package/src/app/components/pages/settings/plugins/PluginSettingsCard.vue +23 -0
- package/src/app/components/pages/settings/plugins/builtin-logos.ts +15 -0
- package/src/app/components/pages/settings/plugins/types.ts +4 -0
- package/src/app/components/pages/settings/plugins/use-package-manager.ts +26 -0
- package/src/app/components/pages/settings/plugins/use-plugin-updates.ts +85 -0
- package/src/app/components/pages/settings/plugins/use-settings-jobs.ts +124 -0
- package/src/app/components/pages/settings/project-config-preview.ts +27 -0
- package/src/app/components/pages/settings/usePluginToggles.ts +111 -0
- package/src/app/components/panes/ai/AiCreatedStories.vue +27 -0
- package/src/app/components/panes/ai/AiPanel.vue +102 -0
- package/src/app/components/panes/ai/AiThreadComposer.vue +71 -0
- package/src/app/components/panes/ai/AiThreadHeader.vue +28 -0
- package/src/app/components/panes/ai/AiThreadList.vue +78 -0
- package/src/app/components/panes/ai/AiThreadView.vue +102 -0
- package/src/app/components/panes/ai/created-stories.ts +33 -0
- package/src/app/components/panes/mcp/McpActivity.vue +57 -0
- package/src/app/components/panes/mcp/McpClients.vue +38 -0
- package/src/app/components/panes/mcp/McpContent.vue +49 -0
- package/src/app/components/panes/mcp/McpCurrentOperation.vue +36 -0
- package/src/app/components/panes/mcp/McpEndpoint.vue +51 -0
- package/src/app/components/panes/mcp/McpHistory.vue +39 -0
- package/src/app/components/panes/search/SearchPanel.vue +288 -0
- package/src/app/components/panes/search/SearchResultItem.vue +65 -0
- package/src/app/components/panes/search/SearchResultList.vue +36 -0
- package/src/app/components/panes/search/SearchScopes.vue +21 -0
- package/src/app/components/panes/search/accessibility.ts +14 -0
- package/src/app/components/panes/search/command-execution.ts +42 -0
- package/src/app/components/panes/search/controller.ts +145 -0
- package/src/app/components/panes/search/frame-navigation.ts +61 -0
- package/src/app/components/panes/search/query.ts +114 -0
- package/src/app/components/panes/stories/StoriesPanel.vue +299 -0
- package/src/app/components/panes/stories/row-status.ts +49 -0
- package/src/app/components/panes/stories/tree.spec.ts +79 -0
- package/src/app/components/panes/stories/tree.ts +77 -0
- package/src/app/components/panes/tests/FunctionalTestsPanel.vue +98 -0
- package/src/app/components/panes/tests/TestsFilter.vue +15 -0
- package/src/app/components/panes/tests/TestsPanel.vue +18 -0
- package/src/app/components/panes/tests/TestsSummary.vue +34 -0
- package/src/app/components/panes/tests/TestsTree.vue +122 -0
- package/src/app/components/panes/tests/TestsTreeRow.vue +45 -0
- package/src/app/components/panes/tests/capture.ts +22 -0
- package/src/app/components/panes/tests/dev-runner.ts +48 -0
- package/src/app/components/panes/tests/discovery.ts +201 -0
- package/src/app/components/panes/tests/execution.ts +69 -0
- package/src/app/components/panes/tests/model.ts +305 -0
- package/src/app/components/panes/tests/projection.ts +86 -0
- package/src/app/components/panes/tests/types.ts +96 -0
- package/src/app/components/panes/visual/VisualImageLabel.vue +16 -0
- package/src/app/components/panes/visual/VisualResultRow.vue +43 -0
- package/src/app/components/panes/visual/VisualResultsList.vue +43 -0
- package/src/app/components/panes/visual/VisualRunButton.vue +25 -0
- package/src/app/components/panes/visual/VisualSlider.vue +91 -0
- package/src/app/components/panes/visual/VisualTestsPanel.vue +112 -0
- package/src/app/components/panes/visual/VisualTestsSummary.vue +37 -0
- package/src/app/components/panes/visual/VisualViewer.vue +215 -0
- package/src/app/components/panes/visual/VisualViewerActions.vue +41 -0
- package/src/app/components/panes/visual/VisualViewerDock.vue +75 -0
- package/src/app/components/panes/visual/VisualViewerDockButton.vue +15 -0
- package/src/app/components/panes/visual/VisualViewerHeader.vue +86 -0
- package/src/app/components/panes/visual/VisualViewerSurface.vue +19 -0
- package/src/app/components/panes/visual/projection.ts +62 -0
- package/src/app/components/panes/visual/status.ts +21 -0
- package/src/app/components/panes/visual/viewer-focus.ts +24 -0
- package/src/app/components/panes/visual/viewer-types.ts +5 -0
- package/src/app/components/panes/visual/zoom.spec.ts +21 -0
- package/src/app/components/panes/visual/zoom.ts +30 -0
- package/src/app/components/shell/AppRail.vue +135 -0
- package/src/app/components/shell/InspectorFrame.vue +31 -0
- package/src/app/components/shell/PanelResizeHandle.vue +35 -0
- package/src/app/components/shell/PluginPane.vue +22 -0
- package/src/app/components/shell/RailButton.vue +45 -0
- package/src/app/components/shell/ShellLayout.vue +104 -0
- package/src/app/components/shell/SidePanelHost.vue +24 -0
- package/src/app/components/shell/WorkbenchApp.vue +174 -0
- package/src/app/components/shell/WorkbenchEmptyState.vue +39 -0
- package/src/app/components/shell/WorkbenchErrorState.vue +37 -0
- package/src/app/components/shell/WorkbenchGuideLink.vue +16 -0
- package/src/app/components/shell/WorkbenchLoadingSkeleton.vue +22 -0
- package/src/app/components/shell/WorkbenchLoadingState.vue +34 -0
- package/src/app/components/shell/WorkbenchPaneHeader.vue +19 -0
- package/src/app/components/shell/WorkbenchPaneList.vue +12 -0
- package/src/app/components/shell/WorkbenchPaneToolbar.vue +17 -0
- package/src/app/components/shell/WorkbenchPanelAction.vue +54 -0
- package/src/app/components/shell/WorkbenchStateLayout.vue +36 -0
- package/src/app/components/shell/panel-focus.ts +35 -0
- package/src/app/components/shell/panel-resize.ts +83 -0
- package/src/app/components/shell/rail-items.ts +63 -0
- package/src/app/components/shell/shortcuts.ts +8 -0
- package/src/app/components/story/GenericMountStory.vue +17 -3
- package/src/app/components/story/GenericRenderStory.vue +21 -2
- package/src/app/composables/agent-discovery.ts +25 -0
- package/src/app/composables/canvas-settings.ts +127 -0
- package/src/app/composables/context-menu.ts +156 -0
- package/src/app/composables/controls-host.ts +100 -0
- package/src/app/composables/extensions.ts +50 -0
- package/src/app/composables/keyboard-input.ts +11 -0
- package/src/app/composables/list-density.ts +14 -0
- package/src/app/composables/selection.ts +25 -0
- package/src/app/composables/shell-extensions.ts +40 -0
- package/src/app/composables/shell.ts +18 -0
- package/src/app/extensions/action-surfaces.ts +43 -0
- package/src/app/extensions/canvas-service.ts +208 -0
- package/src/app/extensions/commands.ts +26 -0
- package/src/app/extensions/context.ts +9 -0
- package/src/app/extensions/create-workbench-host.ts +137 -0
- package/src/app/extensions/dev-events.ts +31 -0
- package/src/app/extensions/frame-channels.ts +188 -0
- package/src/app/extensions/frame-context.ts +209 -0
- package/src/app/extensions/icons.ts +28 -0
- package/src/app/extensions/menus.ts +138 -0
- package/src/app/extensions/navigation.ts +144 -0
- package/src/app/extensions/plugins.ts +7 -0
- package/src/app/extensions/shell-registry.ts +87 -0
- package/src/app/extensions/shortcuts.ts +54 -0
- package/src/app/extensions/standalone.ts +50 -0
- package/src/app/extensions/storage.ts +47 -0
- package/src/app/extensions/sync.ts +57 -0
- package/src/app/extensions/tests-service.ts +63 -0
- package/src/app/extensions/toolbar.ts +79 -0
- package/src/app/index.ts +10 -30
- package/src/app/plugin.ts +37 -48
- package/src/app/sandbox.ts +19 -101
- package/src/app/standalone/arrangement.ts +49 -0
- package/src/app/standalone/build-info.ts +10 -0
- package/src/app/standalone/client-actions.ts +58 -0
- package/src/app/standalone/commands.ts +115 -0
- package/src/app/standalone/document.ts +30 -0
- package/src/app/standalone/editable-state.ts +79 -0
- package/src/app/standalone/error-handler.ts +15 -0
- package/src/app/standalone/folders.ts +62 -0
- package/src/app/standalone/markdown-transition.ts +46 -0
- package/src/app/standalone/mount.ts +123 -0
- package/src/app/standalone/navigation.ts +116 -0
- package/src/app/standalone/preferences.ts +36 -0
- package/src/app/standalone/presets.ts +70 -0
- package/src/app/standalone/runtime-binding.ts +57 -0
- package/src/app/standalone/runtime-tests.ts +46 -0
- package/src/app/standalone/selection.ts +76 -0
- package/src/app/standalone/session.ts +32 -0
- package/src/app/standalone/tests.ts +14 -0
- package/src/app/standalone/ui-visibility-menu.ts +27 -0
- package/src/app/standalone/ui-visibility.ts +72 -0
- package/src/app/standalone/workbench-dev.ts +208 -0
- package/src/app/standalone/workbench-navigation.ts +48 -0
- package/src/app/standalone/workbench-stores.ts +54 -0
- package/src/app/standalone/workbench-thread-actions.ts +46 -0
- package/src/app/standalone/workbench-types.ts +39 -0
- package/src/app/standalone/workbench-visual.ts +74 -0
- package/src/app/standalone/workbench.ts +299 -0
- package/src/app/stores/agent-threads.ts +170 -0
- package/src/app/stores/agents-catalog.ts +100 -0
- package/src/app/stores/agents.ts +201 -0
- package/src/app/stores/ai-threads.ts +151 -0
- package/src/app/stores/canvas-arrangement.ts +44 -0
- package/src/app/stores/canvas-preferences.ts +77 -0
- package/src/app/stores/canvas-types.ts +54 -0
- package/src/app/stores/canvas.ts +260 -0
- package/src/app/stores/events.ts +12 -8
- package/src/app/stores/marketplace.ts +228 -0
- package/src/app/stores/matrix-axis-editor.ts +43 -0
- package/src/app/stores/matrix-domains.ts +55 -0
- package/src/app/stores/matrix-preferences.ts +85 -0
- package/src/app/stores/matrix-runtime.ts +106 -0
- package/src/app/stores/matrix.ts +267 -0
- package/src/app/stores/mcp-activity.ts +70 -0
- package/src/app/stores/mcp.ts +170 -0
- package/src/app/stores/presets-config.ts +202 -0
- package/src/app/stores/project-config.ts +170 -0
- package/src/app/stores/project-save-persistence.ts +59 -0
- package/src/app/stores/settings.ts +139 -0
- package/src/app/stores/shell-widths.ts +51 -0
- package/src/app/stores/shell.ts +249 -0
- package/src/app/stores/story-canvas-views.ts +49 -0
- package/src/app/stores/thread-drafts.ts +128 -0
- package/src/app/stores/visual-approval.ts +73 -0
- package/src/app/stores/visual-collection.ts +76 -0
- package/src/app/stores/visual-refresh.ts +31 -0
- package/src/app/stores/visual-transport.ts +85 -0
- package/src/app/stores/visual.ts +293 -0
- package/src/app/style/README.md +167 -0
- package/src/app/style/controls.css +28 -0
- package/src/app/style/density.css +38 -0
- package/src/app/style/document.pcss +60 -0
- package/src/app/style/fonts.pcss +1 -0
- package/src/app/style/main.css +25 -0
- package/src/app/style/theme.css +109 -0
- package/src/app/style/tokens.pcss +135 -0
- package/src/app/types.ts +3 -9
- package/src/app/util/agent-catalog-rows.ts +31 -0
- package/src/app/util/agent-command.ts +9 -0
- package/src/app/util/agents-http.ts +25 -0
- package/src/app/util/agents-transport.ts +24 -0
- package/src/app/util/background.ts +56 -0
- package/src/app/util/builtin-commands.ts +27 -0
- package/src/app/util/catalog-target.ts +17 -0
- package/src/app/util/comments-http.ts +38 -0
- package/src/app/util/const.ts +29 -4
- package/src/app/util/controls-appearance.ts +2 -0
- package/src/app/util/controls-document.ts +26 -0
- package/src/app/util/controls-overlay-anchor.ts +14 -0
- package/src/app/util/dark.ts +45 -17
- package/src/app/util/dev-event-api.ts +236 -0
- package/src/app/util/docs.ts +13 -17
- package/src/app/util/dynamic-source.ts +20 -0
- package/src/app/util/event-payload.ts +30 -0
- package/src/app/util/events.ts +32 -17
- package/src/app/util/frame-actions.ts +198 -0
- package/src/app/util/frame-screenshot.ts +68 -0
- package/src/app/util/frame-variant-source.ts +111 -0
- package/src/app/util/host-channel.ts +148 -0
- package/src/app/util/hot.ts +5 -0
- package/src/app/util/http-json.ts +30 -0
- package/src/app/util/keyboard.ts +1 -82
- package/src/app/util/mapping.ts +26 -5
- package/src/app/util/marketplace-client.ts +177 -0
- package/src/app/util/marketplace-preferences.ts +6 -0
- package/src/app/util/matrix-numeric.ts +19 -0
- package/src/app/util/matrix-values.ts +72 -0
- package/src/app/util/matrix.ts +172 -0
- package/src/app/util/preview-settings.ts +4 -0
- package/src/app/util/runtime-events.ts +101 -0
- package/src/app/util/screenshot-file.ts +32 -0
- package/src/app/util/screenshot-targets.ts +14 -0
- package/src/app/util/shortcuts.ts +111 -0
- package/src/app/util/story-component.ts +51 -0
- package/src/app/util/ui-channel.ts +49 -0
- package/src/app/util/variant-selection.ts +43 -0
- package/src/app/util/vitest-mocker-shim.ts +27 -0
- package/src/bundle-embed-dev.js +6 -0
- package/src/bundle-embed.js +6 -0
- package/src/bundle-main-dev.js +1 -1
- package/src/bundle-main.js +2 -1
- package/src/bundle-sandbox-dev.js +3 -2
- package/src/bundle-sandbox.js +3 -2
- package/src/embed/EmbedDocument.vue +29 -0
- package/src/embed/adapters/channels.ts +113 -0
- package/src/embed/adapters/content-surface.ts +12 -0
- package/src/embed/adapters/content-view.ts +12 -0
- package/src/embed/adapters/controls-replica.ts +281 -0
- package/src/embed/adapters/controls-view.ts +56 -0
- package/src/embed/adapters/controls.ts +8 -0
- package/src/embed/adapters/document.ts +46 -0
- package/src/embed/adapters/explorer-session.ts +171 -0
- package/src/embed/adapters/explorer-view.ts +65 -0
- package/src/embed/adapters/explorer.ts +9 -0
- package/src/embed/adapters/geometry.ts +2 -0
- package/src/embed/adapters/layout.ts +92 -0
- package/src/embed/adapters/lazy-surface.ts +50 -0
- package/src/embed/adapters/local-mount.ts +137 -0
- package/src/embed/adapters/navigation-surface.ts +11 -0
- package/src/embed/adapters/navigation-view.ts +12 -0
- package/src/embed/adapters/preview.ts +5 -0
- package/src/embed/adapters/runtime-frame.ts +337 -0
- package/src/embed/adapters/runtime-layout.ts +58 -0
- package/src/embed/adapters/runtime-loading.ts +66 -0
- package/src/embed/adapters/runtime-readiness.ts +53 -0
- package/src/embed/adapters/runtime-requests.ts +58 -0
- package/src/embed/adapters/runtime-revision.ts +32 -0
- package/src/embed/adapters/sandbox-urls.ts +55 -0
- package/src/embed/adapters/stale-preview.ts +59 -0
- package/src/embed/adapters/state-presets.ts +134 -0
- package/src/embed/adapters/state.ts +24 -0
- package/src/embed/adapters/test-workers.ts +189 -0
- package/src/embed/adapters/tests-surface.ts +9 -0
- package/src/embed/adapters/tests-view.ts +34 -0
- package/src/embed/adapters/tests.ts +27 -0
- package/src/embed/capabilities.ts +12 -0
- package/src/embed/color-scheme.ts +8 -0
- package/src/embed/commands.ts +111 -0
- package/src/embed/descriptor.ts +43 -0
- package/src/embed/direct.ts +49 -0
- package/src/embed/document.css +11 -0
- package/src/embed/fetch.ts +61 -0
- package/src/embed/handshake.ts +140 -0
- package/src/embed/index.ts +36 -0
- package/src/embed/lifecycle.ts +37 -0
- package/src/embed/search-match.ts +50 -0
- package/src/embed/search.ts +33 -0
- package/src/embed/source.ts +129 -0
- package/src/embed/subscriptions.ts +38 -0
- package/src/embed/surfaces.ts +62 -0
- package/src/embed/types.ts +26 -0
- package/src/embed/view-session.ts +153 -0
- package/src/embed/virtual.d.ts +13 -0
- package/src/embed/vue.d.ts +6 -0
- package/src/virtual.d.ts +70 -0
- package/tsconfig.embed.json +11 -0
- package/tsconfig.json +10 -9
- package/tsconfig.workbench.json +12 -0
- package/vite.config.ts +48 -21
- package/vite.embed.config.ts +53 -0
- package/LICENSE +0 -21
- package/dist/app/style/floating.pcss +0 -34
- package/dist/app/style/main.pcss +0 -100
- package/dist/app/style/sandbox.css +0 -24
- package/dist/app/style/transitions.pcss +0 -51
- package/dist/bundled/App.vue.js +0 -5
- package/dist/bundled/App.vue2.js +0 -167
- package/dist/bundled/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/bundled/assets/histoire-text-dark.svg.js +0 -4
- package/dist/bundled/assets/histoire-text.svg.js +0 -4
- package/dist/bundled/assets/histoire.svg.js +0 -4
- package/dist/bundled/components/HomeView.vue.js +0 -5
- package/dist/bundled/components/HomeView.vue2.js +0 -66
- package/dist/bundled/components/app/AppHeader.vue.js +0 -5
- package/dist/bundled/components/app/AppHeader.vue2.js +0 -71
- package/dist/bundled/components/app/AppLogo.vue.js +0 -5
- package/dist/bundled/components/app/AppLogo.vue2.js +0 -29
- package/dist/bundled/components/app/Breadcrumb.vue.js +0 -8
- package/dist/bundled/components/app/Breadcrumb.vue2.js +0 -91
- package/dist/bundled/components/app/HomeCounter.vue.js +0 -5
- package/dist/bundled/components/app/HomeCounter.vue2.js +0 -42
- package/dist/bundled/components/app/InitialLoading.vue.js +0 -5
- package/dist/bundled/components/app/InitialLoading.vue2.js +0 -51
- package/dist/bundled/components/app/MobileOverlay.vue.js +0 -5
- package/dist/bundled/components/app/MobileOverlay.vue2.js +0 -45
- package/dist/bundled/components/base/BaseButton.vue.js +0 -5
- package/dist/bundled/components/base/BaseButton.vue2.js +0 -39
- package/dist/bundled/components/base/BaseCheckbox.vue.js +0 -5
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +0 -78
- package/dist/bundled/components/base/BaseEmpty.vue.js +0 -14
- package/dist/bundled/components/base/BaseIcon.vue.js +0 -8
- package/dist/bundled/components/base/BaseIcon.vue2.js +0 -29
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +0 -5
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +0 -20
- package/dist/bundled/components/base/BaseListItem.vue.js +0 -5
- package/dist/bundled/components/base/BaseListItem.vue2.js +0 -33
- package/dist/bundled/components/base/BaseListItemLink.vue.js +0 -33
- package/dist/bundled/components/base/BaseListItemLink.vue2.js +0 -26
- package/dist/bundled/components/base/BaseOverflowMenu.vue.js +0 -5
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +0 -100
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +0 -36
- package/dist/bundled/components/base/BaseOverflowTab.vue2.js +0 -18
- package/dist/bundled/components/base/BaseSelect.vue.js +0 -5
- package/dist/bundled/components/base/BaseSelect.vue2.js +0 -77
- package/dist/bundled/components/base/BaseSplitPane.vue.js +0 -8
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +0 -183
- package/dist/bundled/components/base/BaseTab.vue.js +0 -36
- package/dist/bundled/components/base/BaseTab.vue2.js +0 -18
- package/dist/bundled/components/base/BaseTag.vue.js +0 -13
- package/dist/bundled/components/command/CommandPrompts.vue.js +0 -5
- package/dist/bundled/components/command/CommandPrompts.vue2.js +0 -91
- package/dist/bundled/components/command/CommandPromptsModal.vue.js +0 -5
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +0 -45
- package/dist/bundled/components/command/PromptSelect.vue.js +0 -5
- package/dist/bundled/components/command/PromptSelect.vue2.js +0 -142
- package/dist/bundled/components/command/PromptText.vue.js +0 -5
- package/dist/bundled/components/command/PromptText.vue2.js +0 -67
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +0 -40
- package/dist/bundled/components/misc/HatchedPattern.vue.js +0 -12
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +0 -72
- package/dist/bundled/components/panel/ControlsComponentProps.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +0 -45
- package/dist/bundled/components/panel/ControlsComponentState.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +0 -41
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +0 -46
- package/dist/bundled/components/panel/PaneTabs.vue.js +0 -5
- package/dist/bundled/components/panel/PaneTabs.vue2.js +0 -114
- package/dist/bundled/components/panel/StatePresets.vue.js +0 -5
- package/dist/bundled/components/panel/StatePresets.vue2.js +0 -193
- package/dist/bundled/components/panel/StoryControls.vue.js +0 -5
- package/dist/bundled/components/panel/StoryControls.vue2.js +0 -87
- package/dist/bundled/components/panel/StoryDocs.vue.js +0 -7
- package/dist/bundled/components/panel/StoryDocs.vue2.js +0 -161
- package/dist/bundled/components/panel/StoryEvent.vue.js +0 -5
- package/dist/bundled/components/panel/StoryEvent.vue2.js +0 -59
- package/dist/bundled/components/panel/StoryEvents.vue.js +0 -5
- package/dist/bundled/components/panel/StoryEvents.vue2.js +0 -53
- package/dist/bundled/components/panel/StorySidePanel.vue.js +0 -5
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +0 -83
- package/dist/bundled/components/panel/StorySourceCode.vue.js +0 -8
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +0 -204
- package/dist/bundled/components/search/SearchItem.vue.js +0 -8
- package/dist/bundled/components/search/SearchItem.vue2.js +0 -93
- package/dist/bundled/components/search/SearchItemContent.vue.js +0 -5
- package/dist/bundled/components/search/SearchItemContent.vue2.js +0 -71
- package/dist/bundled/components/search/SearchLoading.vue.js +0 -5
- package/dist/bundled/components/search/SearchLoading.vue2.js +0 -21
- package/dist/bundled/components/search/SearchModal.vue.js +0 -5
- package/dist/bundled/components/search/SearchModal.vue2.js +0 -51
- package/dist/bundled/components/search/SearchPane.vue.js +0 -5
- package/dist/bundled/components/search/SearchPane.vue2.js +0 -272
- package/dist/bundled/components/search/search-docs-data.js +0 -11
- package/dist/bundled/components/search/search-title-data.js +0 -11
- package/dist/bundled/components/story/GenericMountStory.vue.js +0 -5
- package/dist/bundled/components/story/GenericMountStory.vue2.js +0 -34
- package/dist/bundled/components/story/GenericRenderStory.vue.js +0 -5
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +0 -39
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +0 -8
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +0 -207
- package/dist/bundled/components/story/StoryVariantGrid.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +0 -146
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +0 -153
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +0 -55
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +0 -107
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +0 -70
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +0 -128
- package/dist/bundled/components/story/StoryVariantSingleView.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +0 -66
- package/dist/bundled/components/story/StoryView.vue.js +0 -5
- package/dist/bundled/components/story/StoryView.vue2.js +0 -104
- package/dist/bundled/components/story/StoryViewer.vue.js +0 -8
- package/dist/bundled/components/story/StoryViewer.vue2.js +0 -55
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +0 -5
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +0 -31
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +0 -8
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +0 -98
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +0 -36
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +0 -127
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +0 -27
- package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +0 -26
- package/dist/bundled/components/tree/StoryGroup.vue.js +0 -5
- package/dist/bundled/components/tree/StoryGroup.vue2.js +0 -74
- package/dist/bundled/components/tree/StoryList.vue.js +0 -5
- package/dist/bundled/components/tree/StoryList.vue2.js +0 -41
- package/dist/bundled/components/tree/StoryListFolder.vue.js +0 -8
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +0 -86
- package/dist/bundled/components/tree/StoryListItem.vue.js +0 -8
- package/dist/bundled/components/tree/StoryListItem.vue2.js +0 -69
- package/dist/bundled/plugin.js +0 -49
- package/dist/bundled/router.js +0 -32
- package/dist/bundled/stores/command.js +0 -25
- package/dist/bundled/stores/events.js +0 -29
- package/dist/bundled/stores/folder.js +0 -54
- package/dist/bundled/stores/preview-settings.js +0 -19
- package/dist/bundled/stores/story.js +0 -43
- package/dist/bundled/util/commands.js +0 -57
- package/dist/bundled/util/config.js +0 -8
- package/dist/bundled/util/const.js +0 -10
- package/dist/bundled/util/dark.js +0 -28
- package/dist/bundled/util/docs.js +0 -26
- package/dist/bundled/util/env.js +0 -4
- package/dist/bundled/util/events.js +0 -33
- package/dist/bundled/util/keyboard.js +0 -90
- package/dist/bundled/util/mapping.js +0 -70
- package/dist/bundled/util/open-in-editor.js +0 -6
- package/dist/bundled/util/preview-settings.js +0 -21
- package/dist/bundled/util/responsive.js +0 -6
- package/dist/bundled/util/sandbox.js +0 -11
- package/dist/bundled/util/scroll.js +0 -31
- package/dist/bundled/util/select.js +0 -28
- package/dist/bundled/util/state.js +0 -41
- package/dist/bundled/util/tooltip.js +0 -15
- package/dist/bundled/util/variant.js +0 -21
- package/src/app/components/HomeView.vue +0 -61
- package/src/app/components/app/AppHeader.vue +0 -65
- package/src/app/components/app/AppLogo.vue +0 -25
- package/src/app/components/app/Breadcrumb.vue +0 -98
- package/src/app/components/app/HomeCounter.vue +0 -39
- package/src/app/components/app/InitialLoading.vue +0 -44
- package/src/app/components/app/MobileOverlay.vue +0 -33
- package/src/app/components/base/BaseCheckbox.vue +0 -76
- package/src/app/components/base/BaseCopyIcon.vue +0 -34
- package/src/app/components/base/BaseEmpty.vue +0 -21
- package/src/app/components/base/BaseIcon.vue +0 -31
- package/src/app/components/base/BaseListItem.vue +0 -30
- package/src/app/components/base/BaseListItemLink.vue +0 -56
- package/src/app/components/base/BaseOverflowMenu.vue +0 -119
- package/src/app/components/base/BaseOverflowTab.vue +0 -47
- package/src/app/components/base/BaseSelect.vue +0 -75
- package/src/app/components/base/BaseSplitPane.vue +0 -244
- package/src/app/components/base/BaseTab.vue +0 -47
- package/src/app/components/base/BaseTag.vue +0 -5
- package/src/app/components/command/CommandPromptsModal.vue +0 -41
- package/src/app/components/misc/CheckerboardPattern.vue +0 -32
- package/src/app/components/panel/ControlsComponentPropItem.vue +0 -73
- package/src/app/components/panel/ControlsComponentProps.vue +0 -34
- package/src/app/components/panel/ControlsComponentState.vue +0 -38
- package/src/app/components/panel/ControlsComponentStateItem.vue +0 -44
- package/src/app/components/panel/PaneTabs.vue +0 -84
- package/src/app/components/panel/StatePresets.vue +0 -199
- package/src/app/components/panel/StoryControls.vue +0 -97
- package/src/app/components/panel/StoryDocs.vue +0 -202
- package/src/app/components/panel/StoryEvent.vue +0 -54
- package/src/app/components/panel/StoryEvents.vue +0 -48
- package/src/app/components/panel/StorySidePanel.vue +0 -76
- package/src/app/components/panel/StorySourceCode.vue +0 -248
- package/src/app/components/search/SearchItem.vue +0 -89
- package/src/app/components/search/SearchItemContent.vue +0 -67
- package/src/app/components/search/SearchLoading.vue +0 -16
- package/src/app/components/search/SearchModal.vue +0 -44
- package/src/app/components/search/SearchPane.vue +0 -319
- package/src/app/components/search/search-docs-data.ts +0 -9
- package/src/app/components/search/search-title-data.ts +0 -9
- package/src/app/components/search/types.ts +0 -4
- package/src/app/components/story/StoryResponsivePreview.vue +0 -216
- package/src/app/components/story/StoryVariantGrid.vue +0 -169
- package/src/app/components/story/StoryVariantGridItem.vue +0 -163
- package/src/app/components/story/StoryVariantListItem.vue +0 -52
- package/src/app/components/story/StoryVariantSingle.vue +0 -105
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +0 -66
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +0 -143
- package/src/app/components/story/StoryVariantSingleView.vue +0 -61
- package/src/app/components/story/StoryView.vue +0 -110
- package/src/app/components/story/StoryViewer.vue +0 -52
- package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +0 -23
- package/src/app/components/toolbar/ToolbarBackground.vue +0 -81
- package/src/app/components/toolbar/ToolbarNewTab.vue +0 -29
- package/src/app/components/toolbar/ToolbarResponsiveSize.vue +0 -82
- package/src/app/components/toolbar/ToolbarTextDirection.vue +0 -19
- package/src/app/components/toolbar/ToolbarTitle.vue +0 -21
- package/src/app/components/tree/StoryGroup.vue +0 -73
- package/src/app/components/tree/StoryList.vue +0 -35
- package/src/app/components/tree/StoryListFolder.vue +0 -88
- package/src/app/components/tree/StoryListItem.vue +0 -72
- package/src/app/router.ts +0 -29
- package/src/app/stores/command.ts +0 -26
- package/src/app/stores/folder.ts +0 -63
- package/src/app/stores/preview-settings.ts +0 -18
- package/src/app/stores/story.ts +0 -47
- package/src/app/style/floating.pcss +0 -34
- package/src/app/style/main.pcss +0 -100
- package/src/app/style/sandbox.css +0 -24
- package/src/app/style/transitions.pcss +0 -51
- package/src/app/util/commands.ts +0 -57
- package/src/app/util/responsive.ts +0 -3
- package/src/app/util/sandbox.ts +0 -9
- package/src/app/util/scroll.ts +0 -32
- package/src/app/util/tooltip.ts +0 -13
- package/src/app/util/variant.ts +0 -21
- package/tailwind.config.cjs +0 -137
|
@@ -0,0 +1,1194 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
|
+
import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
|
|
3
|
+
import { A as useLoadingDelay, d as HstPulsatingDisc, n as HstButton, r as HstButtonGroup, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
|
|
4
|
+
import { D as HistoireControls, N as useHistoireContext, h as HistoireSource, j as useHistoireSnapshot, l as useProvidedHistoireTestsModel } from "./extensions-DUXM9uEy.js";
|
|
5
|
+
import { r as useWorkbenchTestsModel } from "./model-DhvdMZzS.js";
|
|
6
|
+
import { i as useContextMenu, n as isContextMenuShortcut } from "./context-menu-Cw2xQKsM.js";
|
|
7
|
+
import { i as useExtensionHost } from "./extensions-DY0LLiE_.js";
|
|
8
|
+
import { a as fitOverflowItems, c as createInspectorEventCounter, d as getInspectorTabKey, f as getInspectorTabs, i as toolbarAvailableWidth, l as findChangedSourceLine, m as resolveInspectorTab, o as ExtensionOutlet_default, p as isInspectorTestsEnabled, r as measureInlineItem, t as createItemWidthCache, u as getInspectorTabId } from "./measurement-DfNeNMZe.js";
|
|
9
|
+
import { n as usePageOwnership } from "./ownership-004rrffQ.js";
|
|
10
|
+
import { n as useShell } from "./shell-VHlsl1Wj.js";
|
|
11
|
+
import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
|
|
12
|
+
import { l as useMenuKeyboard, t as BasePopover_default } from "./BasePopover-CQQ8wKev.js";
|
|
13
|
+
import { n as ExtensionView_default, t as resolveContributionIcon } from "./icons-Bd36WZPu.js";
|
|
14
|
+
import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
|
|
15
|
+
import { t as useSelection } from "./selection-DQJWdqhl.js";
|
|
16
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineAsyncComponent, defineComponent, inject, nextTick, normalizeClass, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, vShow, watch, withCtx, withDirectives } from "@histoire/vendors/vue";
|
|
17
|
+
import { getHistoireTargetKey } from "@histoire/protocol";
|
|
18
|
+
import { canOpenHistoireTargetInEditor, requestHistoireOpenInEditor } from "@histoire/sdk/internal";
|
|
19
|
+
// src/app/components/inspector/model.ts
|
|
20
|
+
/**
|
|
21
|
+
* Test state of the selected target: the project-wide cache for the exact target and current
|
|
22
|
+
* source, falling back to the selected frame's own tests model.
|
|
23
|
+
* @param session Provider session of this inspector.
|
|
24
|
+
* @param snapshot Provider snapshot.
|
|
25
|
+
* @param projectTestSession Root workbench session holding project-wide test aggregation.
|
|
26
|
+
*/
|
|
27
|
+
function useInspectorTestsState(session, snapshot, projectTestSession) {
|
|
28
|
+
const tests = useProvidedHistoireTestsModel(session);
|
|
29
|
+
const projectTests = useWorkbenchTestsModel(projectTestSession ?? session);
|
|
30
|
+
/** Project results are displayed only for exact selected target and current source. */
|
|
31
|
+
const entry = computed(() => {
|
|
32
|
+
const target = snapshot.value.selection;
|
|
33
|
+
if (!target || snapshot.value.stale || snapshot.value.status !== "ready") return void 0;
|
|
34
|
+
const value = projectTests?.entries.value.get(getHistoireTargetKey(target));
|
|
35
|
+
return value?.stale && !value.running ? void 0 : value;
|
|
36
|
+
});
|
|
37
|
+
const cachedSummary = computed(() => entry.value?.running || entry.value?.stale || entry.value?.error ? void 0 : entry.value?.summary ?? void 0);
|
|
38
|
+
const cachedCollection = computed(() => entry.value?.stale ? void 0 : entry.value?.collection ?? void 0);
|
|
39
|
+
return {
|
|
40
|
+
entry,
|
|
41
|
+
cachedSummary,
|
|
42
|
+
cachedCollection,
|
|
43
|
+
cachedFailure: computed(() => {
|
|
44
|
+
const error = entry.value?.error;
|
|
45
|
+
return error ? error.message ?? String(error) : void 0;
|
|
46
|
+
}),
|
|
47
|
+
count: computed(() => cachedSummary.value?.total ?? cachedCollection.value?.definitions.length ?? tests?.state.value.collection?.definitions.length ?? 0),
|
|
48
|
+
status: computed(() => {
|
|
49
|
+
const value = tests?.state.value;
|
|
50
|
+
if (value?.status === "running" || value?.status === "collecting" || entry.value?.running) return "running";
|
|
51
|
+
const summary = cachedSummary.value ?? value?.summary;
|
|
52
|
+
if (summary) return summary.ok ? "passed" : "failed";
|
|
53
|
+
if (value?.status === "failed" || entry.value?.error) return "failed";
|
|
54
|
+
return "idle";
|
|
55
|
+
})
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** One model per mounted inspector; two inspectors never share it. */
|
|
59
|
+
var inspectorModelKey = Symbol("histoire-inspector-model");
|
|
60
|
+
/**
|
|
61
|
+
* Provides the inspector model to its built-in tab bodies and badges.
|
|
62
|
+
* @param model State owned by the calling inspector.
|
|
63
|
+
*/
|
|
64
|
+
function provideInspectorModel(model) {
|
|
65
|
+
provide(inspectorModelKey, model);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Model of the nearest inspector.
|
|
69
|
+
* @throws {Error} Outside a `StoryInspector`.
|
|
70
|
+
*/
|
|
71
|
+
function useInspectorModel() {
|
|
72
|
+
const model = inject(inspectorModelKey, null);
|
|
73
|
+
if (!model) throw new Error("Histoire inspector model is required");
|
|
74
|
+
return model;
|
|
75
|
+
}
|
|
76
|
+
// src/app/components/inspector/EventsBadge.vue?vue&type=script&setup=true&lang.ts
|
|
77
|
+
var _hoisted_1$7 = ["aria-label"];
|
|
78
|
+
// src/app/components/inspector/EventsBadge.vue
|
|
79
|
+
var EventsBadge_default = /* @__PURE__ */ defineComponent({
|
|
80
|
+
__name: "EventsBadge",
|
|
81
|
+
setup(__props) {
|
|
82
|
+
const { unseen } = useInspectorModel();
|
|
83
|
+
return (_ctx, _cache) => {
|
|
84
|
+
return unref(unseen) ? (openBlock(), createElementBlock("span", {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "htw:text-agent-text htw:text-[13px] htw:tabular-nums",
|
|
87
|
+
"aria-label": `${unref(unseen)} unseen events`
|
|
88
|
+
}, toDisplayString(unref(unseen)), 9, _hoisted_1$7)) : createCommentVNode("", true);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
// src/app/components/shell/WorkbenchLoadingSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
93
|
+
var _hoisted_1$6 = ["aria-label"];
|
|
94
|
+
// src/app/components/shell/WorkbenchLoadingSkeleton.vue
|
|
95
|
+
var WorkbenchLoadingSkeleton_default = /* @__PURE__ */ defineComponent({
|
|
96
|
+
__name: "WorkbenchLoadingSkeleton",
|
|
97
|
+
props: {
|
|
98
|
+
label: { default: "Loading" },
|
|
99
|
+
rows: { default: 3 },
|
|
100
|
+
immediate: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: false
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
setup(__props) {
|
|
106
|
+
const props = __props;
|
|
107
|
+
const visible = useLoadingDelay(() => !props.immediate);
|
|
108
|
+
return (_ctx, _cache) => {
|
|
109
|
+
return __props.immediate || unref(visible) ? (openBlock(), createElementBlock("div", {
|
|
110
|
+
key: 0,
|
|
111
|
+
class: "workbench-loading-skeleton htw:grid htw:gap-6 htw:pt-0.5 htw:px-control-wrapper-padding htw:pb-4",
|
|
112
|
+
role: "status",
|
|
113
|
+
"aria-label": __props.label,
|
|
114
|
+
"aria-busy": "true"
|
|
115
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row) => {
|
|
116
|
+
return openBlock(), createElementBlock("div", {
|
|
117
|
+
key: row,
|
|
118
|
+
class: "htw:grid htw:gap-3",
|
|
119
|
+
"aria-hidden": "true"
|
|
120
|
+
}, [..._cache[0] || (_cache[0] = [createElementVNode("div", { class: "htw:w-[30%] htw:h-3 htw:rounded-[4px] htw:bg-chip htw:animate-skeleton-pulse htw:motion-reduce:animate-none" }, null, -1), createElementVNode("div", { class: "htw:w-full htw:h-control htw:rounded-[7px] htw:bg-chip htw:animate-skeleton-pulse htw:motion-reduce:animate-none" }, null, -1)])]);
|
|
121
|
+
}), 128))], 8, _hoisted_1$6)) : createCommentVNode("", true);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
// src/app/components/inspector/PropsTab.vue?vue&type=script&setup=true&lang.ts
|
|
126
|
+
var _hoisted_1$5 = {
|
|
127
|
+
class: "htw:min-w-0",
|
|
128
|
+
"data-test-id": "story-controls",
|
|
129
|
+
"aria-label": "Props"
|
|
130
|
+
};
|
|
131
|
+
// src/app/components/inspector/PropsTab.vue
|
|
132
|
+
var PropsTab_default = /* @__PURE__ */ defineComponent({
|
|
133
|
+
__name: "PropsTab",
|
|
134
|
+
emits: ["error"],
|
|
135
|
+
setup(__props) {
|
|
136
|
+
const snapshot = useHistoireSnapshot();
|
|
137
|
+
return (_ctx, _cache) => {
|
|
138
|
+
return openBlock(), createElementBlock("section", _hoisted_1$5, [renderSlot(_ctx.$slots, "matrix", {}, () => [createVNode(unref(HistoireControls), {
|
|
139
|
+
"compact-presets": "",
|
|
140
|
+
classes: {
|
|
141
|
+
root: "htw:pt-0 htw:px-[calc(var(--histoire-inspector-gutter)-var(--histoire-control-wrapper-padding,8px))] htw:pb-[16px]",
|
|
142
|
+
presets: "htw:mt-[2px] htw:mx-control-wrapper-padding htw:mb-[20px]",
|
|
143
|
+
presetTrigger: "htw:w-control htw:h-control htw:p-0",
|
|
144
|
+
reset: "htw:self-start htw:mt-[2px] htw:mx-control-wrapper-padding htw:mb-0 htw:h-control",
|
|
145
|
+
fieldset: "htw:p-0 htw:mt-0 htw:mx-0 htw:mb-[14px] htw:border-0",
|
|
146
|
+
legend: "htw:p-0 htw:mx-control-wrapper-padding htw:mb-[10px] htw:text-muted htw:text-[13px]"
|
|
147
|
+
},
|
|
148
|
+
onError: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("error", $event))
|
|
149
|
+
}, {
|
|
150
|
+
loading: withCtx(() => [createVNode(WorkbenchLoadingSkeleton_default, {
|
|
151
|
+
label: "Loading controls",
|
|
152
|
+
rows: 4
|
|
153
|
+
})]),
|
|
154
|
+
unavailable: withCtx(() => [unref(snapshot).status === "ready" && unref(snapshot).selection?.variantId && !unref(snapshot).stale && unref(snapshot).runtime.status !== "failed" ? (openBlock(), createBlock(WorkbenchLoadingSkeleton_default, {
|
|
155
|
+
key: 0,
|
|
156
|
+
label: "Loading controls",
|
|
157
|
+
rows: 4
|
|
158
|
+
})) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
159
|
+
key: 1,
|
|
160
|
+
flush: "",
|
|
161
|
+
class: "htw:my-12 htw:mx-control-wrapper-padding",
|
|
162
|
+
icon: "cursor-1",
|
|
163
|
+
title: "Select a variant"
|
|
164
|
+
}))]),
|
|
165
|
+
_: 1
|
|
166
|
+
})])]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
// src/app/components/inspector/TestsBadge.vue?vue&type=script&setup=true&lang.ts
|
|
171
|
+
var _hoisted_1$4 = ["aria-label"];
|
|
172
|
+
var _hoisted_2$4 = ["aria-label"];
|
|
173
|
+
// src/app/components/inspector/TestsBadge.vue
|
|
174
|
+
var TestsBadge_default = /* @__PURE__ */ defineComponent({
|
|
175
|
+
__name: "TestsBadge",
|
|
176
|
+
setup(__props) {
|
|
177
|
+
const { status, count } = useInspectorModel().tests;
|
|
178
|
+
return (_ctx, _cache) => {
|
|
179
|
+
return unref(status) !== "idle" ? (openBlock(), createElementBlock("span", {
|
|
180
|
+
key: 0,
|
|
181
|
+
class: normalizeClass({
|
|
182
|
+
idle: "",
|
|
183
|
+
running: "htw:text-muted",
|
|
184
|
+
passed: "htw:text-accent",
|
|
185
|
+
failed: "htw:text-danger"
|
|
186
|
+
}[unref(status)]),
|
|
187
|
+
role: "img",
|
|
188
|
+
"aria-label": `Tests ${unref(status)}`
|
|
189
|
+
}, [unref(status) === "running" ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
|
|
190
|
+
key: 0,
|
|
191
|
+
size: 12
|
|
192
|
+
})) : (openBlock(), createBlock(unref(BuiltinIcon), {
|
|
193
|
+
key: 1,
|
|
194
|
+
icon: unref(status) === "passed" ? "checkmark" : "close",
|
|
195
|
+
size: 12
|
|
196
|
+
}, null, 8, ["icon"]))], 10, _hoisted_1$4)) : unref(count) ? (openBlock(), createElementBlock("span", {
|
|
197
|
+
key: 1,
|
|
198
|
+
class: "htw:text-muted htw:text-[13px]",
|
|
199
|
+
"aria-label": `${unref(count)} collected tests`
|
|
200
|
+
}, toDisplayString(unref(count)), 9, _hoisted_2$4)) : createCommentVNode("", true);
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
// src/app/components/inspector/builtins.ts
|
|
205
|
+
var DocsTab = defineAsyncComponent(() => import("./DocsTab-BR3BktyF.js"));
|
|
206
|
+
var EventsTab = defineAsyncComponent(() => import("./EventsTab-BP0hCGqL.js"));
|
|
207
|
+
var TestsTab = defineAsyncComponent(() => import("./TestsTab-B-ZNDgGi.js"));
|
|
208
|
+
/**
|
|
209
|
+
* Built-in tab views keyed by route value; identity and order live in
|
|
210
|
+
* `INSPECTOR_BUILTIN_TABS`. A new built-in panel adds one entry in each, never a template branch.
|
|
211
|
+
*/
|
|
212
|
+
var INSPECTOR_BUILTIN_VIEWS = {
|
|
213
|
+
"": {
|
|
214
|
+
component: PropsTab_default,
|
|
215
|
+
icon: "settings-adjust"
|
|
216
|
+
},
|
|
217
|
+
"docs": {
|
|
218
|
+
component: DocsTab,
|
|
219
|
+
icon: "document"
|
|
220
|
+
},
|
|
221
|
+
"events": {
|
|
222
|
+
component: EventsTab,
|
|
223
|
+
icon: "flash",
|
|
224
|
+
badge: EventsBadge_default
|
|
225
|
+
},
|
|
226
|
+
"tests": {
|
|
227
|
+
component: TestsTab,
|
|
228
|
+
icon: "chemistry",
|
|
229
|
+
badge: TestsBadge_default
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
// src/app/components/inspector/InspectorExtensionOutlet.vue
|
|
233
|
+
var InspectorExtensionOutlet_default = /* @__PURE__ */ defineComponent({
|
|
234
|
+
__name: "InspectorExtensionOutlet",
|
|
235
|
+
props: {
|
|
236
|
+
kind: {},
|
|
237
|
+
context: {},
|
|
238
|
+
filter: { type: Function },
|
|
239
|
+
footer: { type: Boolean }
|
|
240
|
+
},
|
|
241
|
+
setup(__props) {
|
|
242
|
+
return (_ctx, _cache) => {
|
|
243
|
+
return openBlock(), createBlock(ExtensionOutlet_default, {
|
|
244
|
+
kind: __props.kind,
|
|
245
|
+
context: __props.context,
|
|
246
|
+
filter: __props.filter
|
|
247
|
+
}, {
|
|
248
|
+
default: withCtx(({ contribution, context: viewContext }) => [createVNode(ExtensionView_default, {
|
|
249
|
+
contribution,
|
|
250
|
+
context: viewContext,
|
|
251
|
+
classes: {
|
|
252
|
+
root: __props.footer ? "htw:flex-none htw:pt-pane-gutter htw:px-inspector-gutter htw:pb-0" : __props.kind === "inspector.tab" ? "htw:h-full htw:box-border htw:pt-0 htw:px-inspector-gutter htw:pb-pane-gutter" : "htw:pt-0 htw:px-inspector-gutter htw:pb-pane-gutter",
|
|
253
|
+
mount: __props.kind === "inspector.tab" ? "htw:h-full" : void 0
|
|
254
|
+
}
|
|
255
|
+
}, null, 8, [
|
|
256
|
+
"contribution",
|
|
257
|
+
"context",
|
|
258
|
+
"classes"
|
|
259
|
+
])]),
|
|
260
|
+
_: 1
|
|
261
|
+
}, 8, [
|
|
262
|
+
"kind",
|
|
263
|
+
"context",
|
|
264
|
+
"filter"
|
|
265
|
+
]);
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
// src/app/components/inspector/InspectorHeader.vue?vue&type=script&setup=true&lang.ts
|
|
270
|
+
var _hoisted_1$3 = { class: "htw:flex htw:items-center htw:gap-[6px] htw:flex-1 htw:min-w-0" };
|
|
271
|
+
var _hoisted_2$3 = {
|
|
272
|
+
key: 0,
|
|
273
|
+
class: "htw:flex htw:items-center htw:gap-[4px] htw:min-w-0 htw:max-w-[50%] htw:text-muted htw:text-[13px] htw:whitespace-nowrap"
|
|
274
|
+
};
|
|
275
|
+
var _hoisted_3$2 = { class: "htw:overflow-hidden htw:text-ellipsis" };
|
|
276
|
+
var _hoisted_4$2 = { class: "htw:m-0 htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap htw:text-[15px] htw:leading-[1.3] htw:font-extrabold" };
|
|
277
|
+
var _hoisted_5$1 = ["href"];
|
|
278
|
+
// src/app/components/inspector/InspectorHeader.vue
|
|
279
|
+
var InspectorHeader_default = /* @__PURE__ */ defineComponent({
|
|
280
|
+
__name: "InspectorHeader",
|
|
281
|
+
props: {
|
|
282
|
+
storyTitle: {},
|
|
283
|
+
variantTitle: {},
|
|
284
|
+
isolatedHref: {}
|
|
285
|
+
},
|
|
286
|
+
emits: ["close", "contextmenu"],
|
|
287
|
+
setup(__props, { emit: __emit }) {
|
|
288
|
+
const emit = __emit;
|
|
289
|
+
/** Header actions expose their story context menu to keyboard users. */
|
|
290
|
+
function onKeydown(event) {
|
|
291
|
+
if (isContextMenuShortcut(event)) emit("contextmenu", event);
|
|
292
|
+
}
|
|
293
|
+
return (_ctx, _cache) => {
|
|
294
|
+
return openBlock(), createElementBlock("header", {
|
|
295
|
+
class: "htw:flex htw:flex-none htw:items-center htw:gap-[8px] htw:box-border htw:h-pane-header htw:py-0 htw:px-inspector-gutter",
|
|
296
|
+
onContextmenu: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("contextmenu", $event)),
|
|
297
|
+
onKeydown
|
|
298
|
+
}, [
|
|
299
|
+
createElementVNode("div", _hoisted_1$3, [__props.variantTitle && __props.variantTitle !== __props.storyTitle ? (openBlock(), createElementBlock("span", _hoisted_2$3, [createElementVNode("span", _hoisted_3$2, toDisplayString(__props.storyTitle), 1), createVNode(unref(BuiltinIcon), {
|
|
300
|
+
class: "htw:flex-none",
|
|
301
|
+
icon: "chevron-right",
|
|
302
|
+
size: 12
|
|
303
|
+
})])) : createCommentVNode("", true), createElementVNode("h2", _hoisted_4$2, toDisplayString(__props.variantTitle || __props.storyTitle), 1)]),
|
|
304
|
+
__props.isolatedHref ? (openBlock(), createElementBlock("a", {
|
|
305
|
+
key: 0,
|
|
306
|
+
href: __props.isolatedHref,
|
|
307
|
+
target: "_blank",
|
|
308
|
+
rel: "noopener noreferrer",
|
|
309
|
+
class: "histoire-icon-button htw:[--histoire-icon-button-size:28px] htw:text-muted htw:hover:bg-chip htw:hover:text-text",
|
|
310
|
+
"aria-label": "Open in new tab",
|
|
311
|
+
title: "Open in new tab"
|
|
312
|
+
}, [createVNode(unref(BuiltinIcon), {
|
|
313
|
+
icon: "launch",
|
|
314
|
+
size: 16
|
|
315
|
+
})], 8, _hoisted_5$1)) : createCommentVNode("", true),
|
|
316
|
+
createVNode(unref(HstButton), {
|
|
317
|
+
"icon-only": "",
|
|
318
|
+
color: "flat",
|
|
319
|
+
type: "button",
|
|
320
|
+
class: "htw:[--histoire-icon-button-size:28px] htw:text-muted htw:hover:bg-chip htw:hover:text-text",
|
|
321
|
+
"aria-label": "Close inspector",
|
|
322
|
+
title: "Close inspector",
|
|
323
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
324
|
+
}, {
|
|
325
|
+
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
326
|
+
icon: "close",
|
|
327
|
+
size: 16
|
|
328
|
+
})]),
|
|
329
|
+
_: 1
|
|
330
|
+
})
|
|
331
|
+
], 32);
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
// src/app/components/inspector/tab-overflow.ts
|
|
336
|
+
/**
|
|
337
|
+
* Tab values that do not fit the row and move to the overflow menu. The active tab takes
|
|
338
|
+
* priority; the other tabs fill remaining space in their original order.
|
|
339
|
+
* @param values Tab values in display order.
|
|
340
|
+
* @param metrics Row geometry; nothing overflows before the first measurement.
|
|
341
|
+
* @param active Active tab value.
|
|
342
|
+
*/
|
|
343
|
+
function getOverflowedTabs(values, metrics, active) {
|
|
344
|
+
if (!metrics) return /* @__PURE__ */ new Set();
|
|
345
|
+
const keepsActive = active !== void 0 && values.includes(active);
|
|
346
|
+
const order = [...keepsActive ? [active] : [], ...values.filter((value) => value !== active)];
|
|
347
|
+
const fitted = fitOverflowItems(order.map((value) => ({ width: metrics.widths.get(value) ?? 0 })), metrics.available, metrics.trigger, metrics.gap);
|
|
348
|
+
return new Set(order.slice(Math.max(fitted, keepsActive ? 1 : 0)));
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Whether an active tab with an icon needs its label visually hidden to leave room for the menu.
|
|
352
|
+
* @param metrics Row geometry; never compact before the first measurement.
|
|
353
|
+
* @param active Active tab value.
|
|
354
|
+
* @param hasIcon Whether the active tab has an icon to represent it.
|
|
355
|
+
* @param hasOverflow Whether the menu trigger is needed.
|
|
356
|
+
*/
|
|
357
|
+
function isActiveTabCompact(metrics, active, hasIcon, hasOverflow) {
|
|
358
|
+
return Boolean(metrics && active !== void 0 && hasIcon && hasOverflow && (metrics.widths.get(active) ?? 0) + metrics.trigger + metrics.gap > metrics.available);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Measures the tab row and derives which tabs overflow. Every tab stays rendered (overflowed
|
|
362
|
+
* ones hidden), so all natural widths are measurable; measurements reuse the overflow toolbar's
|
|
363
|
+
* clone measurement and width cache. Re-measures on mount, tab changes, row resizes and font loads.
|
|
364
|
+
* @param list Tab list element; its direct `[role="tab"]` children follow `values()` order.
|
|
365
|
+
* @param trigger Overflow trigger element.
|
|
366
|
+
* @param values Tab values in display order.
|
|
367
|
+
* @param active Active tab value.
|
|
368
|
+
* @param activeHasIcon Whether the active tab has an icon.
|
|
369
|
+
*/
|
|
370
|
+
function useTabOverflow(list, trigger, values, active, activeHasIcon) {
|
|
371
|
+
const metrics = shallowRef(null);
|
|
372
|
+
const cache = createItemWidthCache();
|
|
373
|
+
let resize;
|
|
374
|
+
let mutations;
|
|
375
|
+
let fonts;
|
|
376
|
+
/** Reads all widths in one detached measurement host, then publishes them at once. */
|
|
377
|
+
function measure() {
|
|
378
|
+
const element = list.value;
|
|
379
|
+
if (!element) return;
|
|
380
|
+
const host = element.ownerDocument.createElement("div");
|
|
381
|
+
host.setAttribute("aria-hidden", "true");
|
|
382
|
+
host.inert = true;
|
|
383
|
+
host.style.cssText = "position:absolute;visibility:hidden;pointer-events:none;width:max-content;top:0;inset-inline-start:0";
|
|
384
|
+
element.append(host);
|
|
385
|
+
try {
|
|
386
|
+
const order = values();
|
|
387
|
+
const widths = /* @__PURE__ */ new Map();
|
|
388
|
+
element.querySelectorAll(":scope > [role=\"tab\"]").forEach((tab, index) => {
|
|
389
|
+
if (index < order.length) widths.set(order[index], cache.measure(tab, host));
|
|
390
|
+
});
|
|
391
|
+
const button = trigger();
|
|
392
|
+
const gap = Number.parseFloat(element.ownerDocument.defaultView?.getComputedStyle(element).columnGap ?? "") || 3;
|
|
393
|
+
metrics.value = {
|
|
394
|
+
widths,
|
|
395
|
+
available: toolbarAvailableWidth(element),
|
|
396
|
+
trigger: button && measureInlineItem(button, host) || 28,
|
|
397
|
+
gap
|
|
398
|
+
};
|
|
399
|
+
} finally {
|
|
400
|
+
host.remove();
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
/** Styling can change without markup changes (resize, fonts): drop cached widths. */
|
|
404
|
+
function remeasureAll() {
|
|
405
|
+
cache.clear();
|
|
406
|
+
measure();
|
|
407
|
+
}
|
|
408
|
+
watch(values, measure, { flush: "post" });
|
|
409
|
+
onMounted(() => {
|
|
410
|
+
fonts = list.value?.ownerDocument.fonts;
|
|
411
|
+
fonts?.addEventListener("loadingdone", remeasureAll);
|
|
412
|
+
if (typeof MutationObserver !== "undefined" && list.value) {
|
|
413
|
+
mutations = new MutationObserver((records) => {
|
|
414
|
+
if (records.some((record) => {
|
|
415
|
+
const target = record.target instanceof Element ? record.target : record.target.parentElement;
|
|
416
|
+
const tab = target?.closest("[role=\"tab\"]");
|
|
417
|
+
return tab?.parentElement === list.value && (record.type !== "attributes" || target !== tab);
|
|
418
|
+
})) measure();
|
|
419
|
+
});
|
|
420
|
+
mutations.observe(list.value, {
|
|
421
|
+
subtree: true,
|
|
422
|
+
childList: true,
|
|
423
|
+
characterData: true,
|
|
424
|
+
attributes: true,
|
|
425
|
+
attributeFilter: ["class", "style"]
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
if (typeof ResizeObserver !== "undefined" && list.value?.parentElement) {
|
|
429
|
+
resize = new ResizeObserver(remeasureAll);
|
|
430
|
+
resize.observe(list.value.parentElement);
|
|
431
|
+
} else measure();
|
|
432
|
+
});
|
|
433
|
+
onBeforeUnmount(() => {
|
|
434
|
+
resize?.disconnect();
|
|
435
|
+
mutations?.disconnect();
|
|
436
|
+
fonts?.removeEventListener("loadingdone", remeasureAll);
|
|
437
|
+
});
|
|
438
|
+
const overflowed = computed(() => getOverflowedTabs(values(), metrics.value, active()));
|
|
439
|
+
return {
|
|
440
|
+
overflowed,
|
|
441
|
+
compact: computed(() => isActiveTabCompact(metrics.value, active(), activeHasIcon(), overflowed.value.size > 0))
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
// src/app/components/inspector/InspectorTabs.vue?vue&type=script&setup=true&lang.ts
|
|
445
|
+
var _hoisted_1$2 = { class: "histoire-button-group-options htw:mt-0 htw:mx-inspector-gutter htw:mb-pane-gutter" };
|
|
446
|
+
var _hoisted_2$2 = ["data-compact"];
|
|
447
|
+
var _hoisted_3$1 = {
|
|
448
|
+
key: 2,
|
|
449
|
+
class: "htw:text-muted htw:text-[13px] htw:tabular-nums"
|
|
450
|
+
};
|
|
451
|
+
var _hoisted_4$1 = {
|
|
452
|
+
key: 1,
|
|
453
|
+
class: "htw:text-muted htw:text-[13px] htw:tabular-nums"
|
|
454
|
+
};
|
|
455
|
+
// src/app/components/inspector/InspectorTabs.vue
|
|
456
|
+
var InspectorTabs_default = /* @__PURE__ */ defineComponent({
|
|
457
|
+
__name: "InspectorTabs",
|
|
458
|
+
props: {
|
|
459
|
+
activeTab: {},
|
|
460
|
+
tabs: {},
|
|
461
|
+
idPrefix: {}
|
|
462
|
+
},
|
|
463
|
+
emits: ["select"],
|
|
464
|
+
setup(__props, { emit: __emit }) {
|
|
465
|
+
const props = __props;
|
|
466
|
+
const emit = __emit;
|
|
467
|
+
const list = shallowRef(null);
|
|
468
|
+
const more = shallowRef(null);
|
|
469
|
+
const trigger = computed(() => more.value?.element ?? null);
|
|
470
|
+
const open = ref(false);
|
|
471
|
+
const { focusLast, openMenu: triggerKey, navigate: menuKey } = useMenuKeyboard({
|
|
472
|
+
open,
|
|
473
|
+
anchor: () => trigger.value
|
|
474
|
+
});
|
|
475
|
+
const values = computed(() => props.tabs.map((tab) => tab.value));
|
|
476
|
+
const { overflowed, compact } = useTabOverflow(list, () => trigger.value, () => values.value, () => props.activeTab, () => Boolean(props.tabs.find((tab) => tab.value === props.activeTab)?.icon));
|
|
477
|
+
const menu = computed(() => props.tabs.filter((tab) => overflowed.value.has(tab.value)));
|
|
478
|
+
watch(() => menu.value.length, (length) => {
|
|
479
|
+
if (!length) open.value = false;
|
|
480
|
+
});
|
|
481
|
+
let pendingFocus;
|
|
482
|
+
/** Focuses the pending tab when it is in the row; returns whether it did. */
|
|
483
|
+
function applyFocus() {
|
|
484
|
+
if (pendingFocus === void 0) return false;
|
|
485
|
+
const tab = list.value?.ownerDocument.getElementById(`${props.idPrefix}-tab-${getInspectorTabKey(pendingFocus)}`);
|
|
486
|
+
if (!tab || tab.hidden) return false;
|
|
487
|
+
tab.focus();
|
|
488
|
+
pendingFocus = void 0;
|
|
489
|
+
return true;
|
|
490
|
+
}
|
|
491
|
+
watch(() => props.activeTab, () => {
|
|
492
|
+
applyFocus();
|
|
493
|
+
pendingFocus = void 0;
|
|
494
|
+
}, { flush: "post" });
|
|
495
|
+
/**
|
|
496
|
+
* Selects a tab and moves focus to it.
|
|
497
|
+
* @param value Tab value.
|
|
498
|
+
*/
|
|
499
|
+
function select(value) {
|
|
500
|
+
pendingFocus = value;
|
|
501
|
+
emit("select", value);
|
|
502
|
+
nextTick(applyFocus);
|
|
503
|
+
}
|
|
504
|
+
/** Arrow/Home/End navigation moves focus and selection together, over overflowed tabs too. */
|
|
505
|
+
function navigate(event) {
|
|
506
|
+
const { tabs } = props;
|
|
507
|
+
const current = tabs.findIndex((tab) => tab.value === props.activeTab);
|
|
508
|
+
const index = event.key === "ArrowRight" ? (current + 1) % tabs.length : event.key === "ArrowLeft" ? (current + tabs.length - 1) % tabs.length : event.key === "Home" ? 0 : event.key === "End" ? tabs.length - 1 : -1;
|
|
509
|
+
if (index < 0) return;
|
|
510
|
+
event.preventDefault();
|
|
511
|
+
select(tabs[index].value);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Picks an overflowed tab from the menu.
|
|
515
|
+
* @param value Tab value.
|
|
516
|
+
*/
|
|
517
|
+
function choose(value) {
|
|
518
|
+
open.value = false;
|
|
519
|
+
select(value);
|
|
520
|
+
}
|
|
521
|
+
return (_ctx, _cache) => {
|
|
522
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
523
|
+
createElementVNode("div", {
|
|
524
|
+
ref_key: "list",
|
|
525
|
+
ref: list,
|
|
526
|
+
class: "htw:relative htw:flex htw:flex-1 htw:gap-[3px] htw:min-w-0",
|
|
527
|
+
role: "tablist",
|
|
528
|
+
"aria-label": "Inspector",
|
|
529
|
+
onKeydown: navigate
|
|
530
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab) => {
|
|
531
|
+
return openBlock(), createBlock(unref(HstButton), {
|
|
532
|
+
id: `${__props.idPrefix}-tab-${unref(getInspectorTabKey)(tab.value)}`,
|
|
533
|
+
key: tab.value,
|
|
534
|
+
class: normalizeClass(["htw:flex htw:items-center htw:justify-center htw:gap-[5px] htw:min-w-0 htw:min-h-[32px] htw:overflow-hidden htw:text-muted htw:font-bold htw:flex-auto htw:hover:text-text htw:[[hidden]]:hidden", { "htw:opacity-60": tab.dimmed }]),
|
|
535
|
+
color: "flat",
|
|
536
|
+
type: "button",
|
|
537
|
+
role: "tab",
|
|
538
|
+
hidden: unref(overflowed).has(tab.value),
|
|
539
|
+
"aria-selected": __props.activeTab === tab.value,
|
|
540
|
+
"aria-controls": `${__props.idPrefix}-panel-${unref(getInspectorTabKey)(tab.value)}`,
|
|
541
|
+
tabindex: __props.activeTab === tab.value || __props.activeTab === void 0 && !tab.value ? 0 : -1,
|
|
542
|
+
"data-histoire-contribution": unref(getInspectorTabId)(tab.value),
|
|
543
|
+
"data-test-id": tab.value === "tests" ? "story-tests-tab" : void 0,
|
|
544
|
+
onClick: ($event) => select(tab.value)
|
|
545
|
+
}, {
|
|
546
|
+
default: withCtx(() => [
|
|
547
|
+
tab.icon ? (openBlock(), createBlock(unref(BuiltinIcon), {
|
|
548
|
+
key: 0,
|
|
549
|
+
icon: tab.icon,
|
|
550
|
+
class: "htw:flex-none",
|
|
551
|
+
size: 16
|
|
552
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
553
|
+
createElementVNode("span", {
|
|
554
|
+
class: "htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap htw:[[role=tablist]>[role=tab]>&]:data-[compact=true]:absolute htw:[[role=tablist]>[role=tab]>&]:data-[compact=true]:w-px htw:[[role=tablist]>[role=tab]>&]:data-[compact=true]:h-px htw:[[role=tablist]>[role=tab]>&]:data-[compact=true]:[clip-path:inset(50%)]",
|
|
555
|
+
"data-compact": unref(compact) && __props.activeTab === tab.value
|
|
556
|
+
}, toDisplayString(tab.label), 9, _hoisted_2$2),
|
|
557
|
+
_cache[3] || (_cache[3] = createTextVNode(toDisplayString(" "), -1)),
|
|
558
|
+
tab.badge ? (openBlock(), createBlock(resolveDynamicComponent(tab.badge), { key: 1 })) : tab.badgeText !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(tab.badgeText), 1)) : createCommentVNode("", true)
|
|
559
|
+
]),
|
|
560
|
+
_: 2
|
|
561
|
+
}, 1032, [
|
|
562
|
+
"id",
|
|
563
|
+
"class",
|
|
564
|
+
"hidden",
|
|
565
|
+
"aria-selected",
|
|
566
|
+
"aria-controls",
|
|
567
|
+
"tabindex",
|
|
568
|
+
"data-histoire-contribution",
|
|
569
|
+
"data-test-id",
|
|
570
|
+
"onClick"
|
|
571
|
+
]);
|
|
572
|
+
}), 128))], 544),
|
|
573
|
+
createVNode(unref(HstButton), {
|
|
574
|
+
ref_key: "more",
|
|
575
|
+
ref: more,
|
|
576
|
+
class: "htw:hover:text-text htw:[[hidden]]:hidden htw:[--histoire-icon-button-size:32px] htw:flex-none htw:text-muted",
|
|
577
|
+
color: "flat",
|
|
578
|
+
type: "button",
|
|
579
|
+
"icon-only": "",
|
|
580
|
+
"aria-label": "More tabs",
|
|
581
|
+
"aria-haspopup": "menu",
|
|
582
|
+
"aria-expanded": open.value,
|
|
583
|
+
hidden: !menu.value.length,
|
|
584
|
+
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value),
|
|
585
|
+
onKeydown: unref(triggerKey)
|
|
586
|
+
}, {
|
|
587
|
+
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
588
|
+
icon: "chevron-down",
|
|
589
|
+
class: "htw:flex-none",
|
|
590
|
+
size: 16
|
|
591
|
+
})]),
|
|
592
|
+
_: 1
|
|
593
|
+
}, 8, [
|
|
594
|
+
"aria-expanded",
|
|
595
|
+
"hidden",
|
|
596
|
+
"onKeydown"
|
|
597
|
+
]),
|
|
598
|
+
open.value ? (openBlock(), createBlock(BasePopover_default, {
|
|
599
|
+
key: 0,
|
|
600
|
+
open: open.value,
|
|
601
|
+
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => open.value = $event),
|
|
602
|
+
anchor: trigger.value,
|
|
603
|
+
label: "More tabs",
|
|
604
|
+
role: "menu",
|
|
605
|
+
width: 200,
|
|
606
|
+
"focus-last": unref(focusLast)
|
|
607
|
+
}, {
|
|
608
|
+
default: withCtx(() => [createElementVNode("div", { onKeydown: _cache[1] || (_cache[1] = (...args) => unref(menuKey) && unref(menuKey)(...args)) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(menu.value, (tab) => {
|
|
609
|
+
return openBlock(), createBlock(MenuItem_default, {
|
|
610
|
+
key: tab.value,
|
|
611
|
+
label: tab.label,
|
|
612
|
+
icon: tab.icon,
|
|
613
|
+
"data-histoire-contribution": unref(getInspectorTabId)(tab.value),
|
|
614
|
+
class: normalizeClass({ "htw:opacity-60": tab.dimmed }),
|
|
615
|
+
onClick: ($event) => choose(tab.value)
|
|
616
|
+
}, {
|
|
617
|
+
default: withCtx(() => [tab.badge ? (openBlock(), createBlock(resolveDynamicComponent(tab.badge), { key: 0 })) : tab.badgeText !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(tab.badgeText), 1)) : createCommentVNode("", true)]),
|
|
618
|
+
_: 2
|
|
619
|
+
}, 1032, [
|
|
620
|
+
"label",
|
|
621
|
+
"icon",
|
|
622
|
+
"data-histoire-contribution",
|
|
623
|
+
"class",
|
|
624
|
+
"onClick"
|
|
625
|
+
]);
|
|
626
|
+
}), 128))], 32)]),
|
|
627
|
+
_: 1
|
|
628
|
+
}, 8, [
|
|
629
|
+
"open",
|
|
630
|
+
"anchor",
|
|
631
|
+
"focus-last"
|
|
632
|
+
])) : createCommentVNode("", true)
|
|
633
|
+
]);
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
// src/app/components/inspector/plugin-tabs.ts
|
|
638
|
+
/**
|
|
639
|
+
* Plugin inspector contributions of the nearest workbench, bound to the selected frame.
|
|
640
|
+
* @param snapshot Provider snapshot; its publications re-evaluate `available` predicates and badges.
|
|
641
|
+
*/
|
|
642
|
+
function useInspectorExtensions(snapshot) {
|
|
643
|
+
const workbench = useExtensionHost();
|
|
644
|
+
const { host, selectedFrame } = workbench;
|
|
645
|
+
const revision = ref(0);
|
|
646
|
+
const ready = ref(false);
|
|
647
|
+
const bump = () => {
|
|
648
|
+
revision.value++;
|
|
649
|
+
};
|
|
650
|
+
const stops = [host.subscribe(bump), selectedFrame.subscribe(bump)];
|
|
651
|
+
onBeforeUnmount(() => {
|
|
652
|
+
for (const stop of stops) stop();
|
|
653
|
+
});
|
|
654
|
+
host.ready.then(() => {
|
|
655
|
+
ready.value = true;
|
|
656
|
+
});
|
|
657
|
+
let last = null;
|
|
658
|
+
/**
|
|
659
|
+
* Context of the selected ready frame. While the next selected frame loads, the previous
|
|
660
|
+
* context is kept so plugin views receive the new one as an update instead of remounting;
|
|
661
|
+
* `null` before any frame was admitted and whenever no variant is selected.
|
|
662
|
+
*/
|
|
663
|
+
const frame = computed(() => {
|
|
664
|
+
revision.value;
|
|
665
|
+
const current = selectedFrame.current()?.context;
|
|
666
|
+
if (current) last = current;
|
|
667
|
+
else if (!workbench.context.selection.target?.variantId) last = null;
|
|
668
|
+
return last;
|
|
669
|
+
});
|
|
670
|
+
/** Plugin tabs shown now, ordered by the registry. */
|
|
671
|
+
const tabs = computed(() => {
|
|
672
|
+
revision.value;
|
|
673
|
+
snapshot.value;
|
|
674
|
+
const context = frame.value;
|
|
675
|
+
if (context) return host.available("inspector.tab", context);
|
|
676
|
+
return host.contributions("inspector.tab").filter((tab) => !tab.devOnly || workbench.context.source.mode === "dev");
|
|
677
|
+
});
|
|
678
|
+
const failedBadges = /* @__PURE__ */ new WeakSet();
|
|
679
|
+
/**
|
|
680
|
+
* Badge text of a plugin tab in the current frame, or `undefined`.
|
|
681
|
+
* @param tab Plugin tab.
|
|
682
|
+
*/
|
|
683
|
+
function badgeOf(tab) {
|
|
684
|
+
revision.value;
|
|
685
|
+
const context = frame.value;
|
|
686
|
+
if (!tab.badge || !context || failedBadges.has(tab)) return void 0;
|
|
687
|
+
try {
|
|
688
|
+
const value = tab.badge(context);
|
|
689
|
+
return value === null || value === "" ? void 0 : value;
|
|
690
|
+
} catch (error) {
|
|
691
|
+
failedBadges.add(tab);
|
|
692
|
+
host.reportViewError(tab.id, error, "update");
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
return {
|
|
697
|
+
frame,
|
|
698
|
+
tabs,
|
|
699
|
+
ready,
|
|
700
|
+
badgeOf
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
// src/app/components/inspector/SourceAction.vue
|
|
704
|
+
var SourceAction_default = /* @__PURE__ */ defineComponent({
|
|
705
|
+
__name: "SourceAction",
|
|
706
|
+
setup(__props) {
|
|
707
|
+
return (_ctx, _cache) => {
|
|
708
|
+
return openBlock(), createBlock(unref(HstButton), {
|
|
709
|
+
"icon-only": "",
|
|
710
|
+
color: "flat",
|
|
711
|
+
type: "button",
|
|
712
|
+
class: "htw:[--histoire-icon-button-size:26px] htw:text-muted"
|
|
713
|
+
}, {
|
|
714
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
715
|
+
_: 3
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
// src/app/components/inspector/SourceDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
721
|
+
var _hoisted_1$1 = ["data-expanded", "data-tone"];
|
|
722
|
+
var _hoisted_2$1 = ["aria-label", "aria-expanded"];
|
|
723
|
+
var _hoisted_3 = ["title"];
|
|
724
|
+
var _hoisted_4 = {
|
|
725
|
+
key: 0,
|
|
726
|
+
class: "htw:p-[16px] htw:[color:#b4b8c0] htw:text-[12px]"
|
|
727
|
+
};
|
|
728
|
+
var _hoisted_5 = {
|
|
729
|
+
key: 1,
|
|
730
|
+
class: "htw:absolute htw:inset-0 htw:overflow-auto htw:bg-code htw:[--histoire-text:#e6e7ea] htw:[--histoire-muted:#b4b8c0]"
|
|
731
|
+
};
|
|
732
|
+
var _hoisted_6 = {
|
|
733
|
+
key: 2,
|
|
734
|
+
class: "htw:p-[16px] htw:[color:#b4b8c0] htw:text-[12px]"
|
|
735
|
+
};
|
|
736
|
+
// src/app/components/inspector/SourceDrawer.vue
|
|
737
|
+
var SourceDrawer_default = /* @__PURE__ */ defineComponent({
|
|
738
|
+
__name: "SourceDrawer",
|
|
739
|
+
props: { tone: {} },
|
|
740
|
+
emits: ["error", "contextmenu"],
|
|
741
|
+
setup(__props, { emit: __emit }) {
|
|
742
|
+
const emit = __emit;
|
|
743
|
+
/** Source header actions share selected story context through native menu keys. */
|
|
744
|
+
function onHeaderKeydown(event) {
|
|
745
|
+
if (isContextMenuShortcut(event)) emit("contextmenu", event);
|
|
746
|
+
}
|
|
747
|
+
const { session, snapshot, story, variant } = useSelection();
|
|
748
|
+
const ownership = usePageOwnership(session);
|
|
749
|
+
const drawerId = `${useId()}-source-content`;
|
|
750
|
+
const { sourceExpanded: expanded, toggleSource } = useShell();
|
|
751
|
+
const mode = ref("dynamic");
|
|
752
|
+
const content = shallowRef();
|
|
753
|
+
const failure = ref();
|
|
754
|
+
const root = ref();
|
|
755
|
+
const panel = ref();
|
|
756
|
+
const copied = ref(false);
|
|
757
|
+
const loading = ref(false);
|
|
758
|
+
/** Source comparison survives native panel's intermediate loading publication. */
|
|
759
|
+
let previousBody;
|
|
760
|
+
/** Metadata determines empty availability; reads remain SDK-owned. */
|
|
761
|
+
const available = computed(() => mode.value === "raw" ? story.value?.content.rawSource : !!variant.value && variant.value.source?.dynamic !== false);
|
|
762
|
+
const dynamicReady = computed(() => mode.value === "raw" || snapshot.value.status === "ready" && !snapshot.value.stale && snapshot.value.runtime.status === "ready");
|
|
763
|
+
const waitingForPreview = computed(() => mode.value === "dynamic" && !!available.value && !dynamicReady.value);
|
|
764
|
+
const loadingVisible = useLoadingDelay(() => loading.value || waitingForPreview.value, () => JSON.stringify([
|
|
765
|
+
snapshot.value.selection?.storyId,
|
|
766
|
+
snapshot.value.selection?.variantId,
|
|
767
|
+
mode.value
|
|
768
|
+
]));
|
|
769
|
+
const fileLabel = computed(() => story.value?.relativePath?.split("/").pop() || "");
|
|
770
|
+
const canEdit = computed(() => canOpenHistoireTargetInEditor(snapshot.value));
|
|
771
|
+
watch([
|
|
772
|
+
() => snapshot.value.status,
|
|
773
|
+
() => snapshot.value.stale,
|
|
774
|
+
() => snapshot.value.source?.sourceId,
|
|
775
|
+
() => snapshot.value.source?.epoch,
|
|
776
|
+
() => snapshot.value.source?.revision,
|
|
777
|
+
() => snapshot.value.selection?.storyId,
|
|
778
|
+
() => mode.value,
|
|
779
|
+
() => mode.value === "dynamic" ? snapshot.value.selection?.variantId : void 0,
|
|
780
|
+
() => mode.value === "dynamic" ? snapshot.value.runtime.status : void 0,
|
|
781
|
+
() => mode.value === "dynamic" ? snapshot.value.runtime.runtimeId : void 0
|
|
782
|
+
], () => {
|
|
783
|
+
content.value = void 0;
|
|
784
|
+
failure.value = void 0;
|
|
785
|
+
copied.value = false;
|
|
786
|
+
loading.value = false;
|
|
787
|
+
previousBody = void 0;
|
|
788
|
+
}, { flush: "sync" });
|
|
789
|
+
/** Generated source changes highlight one line; replacement selection clears comparison. */
|
|
790
|
+
async function receive(value) {
|
|
791
|
+
const changed = mode.value === "dynamic" ? findChangedSourceLine(previousBody, value.body) : -1;
|
|
792
|
+
previousBody = value.body;
|
|
793
|
+
content.value = value;
|
|
794
|
+
failure.value = void 0;
|
|
795
|
+
await nextTick();
|
|
796
|
+
if (content.value !== value) return;
|
|
797
|
+
(root.value?.querySelectorAll(".histoire-source-content .line"))?.forEach((line, index) => line.toggleAttribute("data-source-changed", index === changed));
|
|
798
|
+
}
|
|
799
|
+
/** Clipboard failures stay local and observed; copied state belongs to captured content. */
|
|
800
|
+
async function copy() {
|
|
801
|
+
const current = content.value;
|
|
802
|
+
const owner = ownership.capture();
|
|
803
|
+
if (!current || !ownership.owns(owner)) return;
|
|
804
|
+
try {
|
|
805
|
+
await navigator.clipboard.writeText(current.body);
|
|
806
|
+
if (ownership.owns(owner) && content.value === current) copied.value = true;
|
|
807
|
+
} catch (error) {
|
|
808
|
+
if (ownership.owns(owner) && content.value === current) emit("error", error);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
/** Finite dev capability opens exactly selected story, never a supplied path. */
|
|
812
|
+
function editor() {
|
|
813
|
+
if (!canEdit.value) return;
|
|
814
|
+
const owner = ownership.capture();
|
|
815
|
+
const target = owner.selection;
|
|
816
|
+
if (target && ownership.owns(owner)) requestHistoireOpenInEditor(session, target).catch((error) => {
|
|
817
|
+
if (ownership.owns(owner)) emit("error", error);
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
/** Preserve generation failures distinctly from metadata's unavailable content. */
|
|
821
|
+
function report(error) {
|
|
822
|
+
if (!dynamicReady.value) return;
|
|
823
|
+
failure.value = error;
|
|
824
|
+
emit("error", error);
|
|
825
|
+
}
|
|
826
|
+
/** An explicit retry reuses the native panel's captured ownership controller. */
|
|
827
|
+
function retry() {
|
|
828
|
+
failure.value = void 0;
|
|
829
|
+
panel.value?.refresh();
|
|
830
|
+
}
|
|
831
|
+
/** SDK publishes status only while its source request generation remains current. */
|
|
832
|
+
function status(value) {
|
|
833
|
+
loading.value = value.status === "loading";
|
|
834
|
+
if (value.status === "loading" || value.status === "idle") {
|
|
835
|
+
content.value = void 0;
|
|
836
|
+
failure.value = void 0;
|
|
837
|
+
copied.value = false;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
return (_ctx, _cache) => {
|
|
841
|
+
return openBlock(), createElementBlock("section", {
|
|
842
|
+
ref_key: "root",
|
|
843
|
+
ref: root,
|
|
844
|
+
class: "inspector-source htw:flex-none htw:min-h-0 htw:data-[expanded=true]:flex htw:data-[expanded=true]:flex-col htw:data-[expanded=true]:basis-[42%] htw:data-[tone=surface]:bg-surface htw:[border-top:1px_solid_var(--histoire-border)]",
|
|
845
|
+
"data-expanded": unref(expanded),
|
|
846
|
+
"data-tone": __props.tone,
|
|
847
|
+
"aria-label": "Source"
|
|
848
|
+
}, [createElementVNode("div", {
|
|
849
|
+
class: normalizeClass(["htw:flex htw:items-center htw:gap-[7px] htw:min-h-[46px]", { "htw:px-inspector-gutter": unref(expanded) }]),
|
|
850
|
+
onContextmenu: _cache[2] || (_cache[2] = ($event) => emit("contextmenu", $event)),
|
|
851
|
+
onKeydown: onHeaderKeydown
|
|
852
|
+
}, [
|
|
853
|
+
createElementVNode("button", {
|
|
854
|
+
type: "button",
|
|
855
|
+
class: normalizeClass(["htw:flex htw:min-w-0 htw:cursor-pointer htw:items-center htw:gap-[9px] htw:border-0 htw:bg-transparent htw:text-left htw:text-text htw:hover:bg-chip htw:focus-visible:bg-chip htw:focus-visible:outline-2 htw:focus-visible:-outline-offset-2", unref(expanded) ? "htw:-ms-pane-row-inset htw:h-control htw:rounded-control htw:px-pane-row-inset" : "htw:w-full htw:self-stretch htw:px-inspector-gutter"]),
|
|
856
|
+
"aria-label": unref(expanded) ? "Collapse source" : "Expand source",
|
|
857
|
+
"aria-expanded": unref(expanded),
|
|
858
|
+
"aria-controls": drawerId,
|
|
859
|
+
onClick: _cache[0] || (_cache[0] = (...args) => unref(toggleSource) && unref(toggleSource)(...args))
|
|
860
|
+
}, [
|
|
861
|
+
createVNode(unref(BuiltinIcon), {
|
|
862
|
+
class: "htw:shrink-0 htw:text-muted",
|
|
863
|
+
icon: "code",
|
|
864
|
+
size: 16
|
|
865
|
+
}),
|
|
866
|
+
_cache[3] || (_cache[3] = createElementVNode("strong", { class: "htw:text-[12px] htw:font-extrabold" }, "Source", -1)),
|
|
867
|
+
!unref(expanded) ? (openBlock(), createElementBlock("span", {
|
|
868
|
+
key: 0,
|
|
869
|
+
class: "htw:min-w-0 htw:flex-1 htw:truncate htw:text-right htw:font-mono htw:text-[10px] htw:text-muted",
|
|
870
|
+
title: unref(story)?.relativePath
|
|
871
|
+
}, toDisplayString(fileLabel.value), 9, _hoisted_3)) : createCommentVNode("", true),
|
|
872
|
+
createVNode(unref(BuiltinIcon), {
|
|
873
|
+
class: "htw:shrink-0 htw:text-muted",
|
|
874
|
+
icon: unref(expanded) ? "chevron-down" : "chevron-up",
|
|
875
|
+
size: 12
|
|
876
|
+
}, null, 8, ["icon"])
|
|
877
|
+
], 10, _hoisted_2$1),
|
|
878
|
+
unref(expanded) ? (openBlock(), createBlock(unref(HstButtonGroup), {
|
|
879
|
+
key: 0,
|
|
880
|
+
modelValue: mode.value,
|
|
881
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => mode.value = $event),
|
|
882
|
+
layout: "inline",
|
|
883
|
+
class: "htw:flex htw:flex-1 htw:min-w-0",
|
|
884
|
+
"aria-label": "Source mode",
|
|
885
|
+
options: [{
|
|
886
|
+
value: "dynamic",
|
|
887
|
+
label: "Variant"
|
|
888
|
+
}, {
|
|
889
|
+
value: "raw",
|
|
890
|
+
label: "Story file"
|
|
891
|
+
}]
|
|
892
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
893
|
+
unref(expanded) ? (openBlock(), createBlock(SourceAction_default, {
|
|
894
|
+
key: 1,
|
|
895
|
+
disabled: !content.value,
|
|
896
|
+
"aria-label": copied.value ? "Source copied" : "Copy source",
|
|
897
|
+
title: copied.value ? "Copied" : "Copy source",
|
|
898
|
+
onClick: copy
|
|
899
|
+
}, {
|
|
900
|
+
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
901
|
+
icon: copied.value ? "checkmark" : "copy",
|
|
902
|
+
size: 16
|
|
903
|
+
}, null, 8, ["icon"])]),
|
|
904
|
+
_: 1
|
|
905
|
+
}, 8, [
|
|
906
|
+
"disabled",
|
|
907
|
+
"aria-label",
|
|
908
|
+
"title"
|
|
909
|
+
])) : createCommentVNode("", true),
|
|
910
|
+
unref(expanded) && canEdit.value ? (openBlock(), createBlock(SourceAction_default, {
|
|
911
|
+
key: 2,
|
|
912
|
+
"aria-label": "Open source in editor",
|
|
913
|
+
title: "Open source in editor",
|
|
914
|
+
onClick: editor
|
|
915
|
+
}, {
|
|
916
|
+
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
917
|
+
icon: "launch",
|
|
918
|
+
size: 16
|
|
919
|
+
})]),
|
|
920
|
+
_: 1
|
|
921
|
+
})) : createCommentVNode("", true)
|
|
922
|
+
], 34), withDirectives(createElementVNode("div", {
|
|
923
|
+
id: drawerId,
|
|
924
|
+
class: "htw:relative htw:flex-1 htw:min-h-0 htw:mt-0 htw:mx-inspector-gutter htw:mb-4 htw:overflow-auto htw:rounded-[10px] htw:bg-code htw:[color:#e6e7ea]"
|
|
925
|
+
}, [unref(expanded) && !available.value ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(mode.value === "dynamic" ? "No variant source available." : "No story file source available."), 1)) : unref(expanded) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
926
|
+
dynamicReady.value ? (openBlock(), createBlock(unref(HistoireSource), {
|
|
927
|
+
key: 0,
|
|
928
|
+
ref_key: "panel",
|
|
929
|
+
ref: panel,
|
|
930
|
+
"show-actions": false,
|
|
931
|
+
classes: {
|
|
932
|
+
root: "htw:h-full",
|
|
933
|
+
pre: "htw:min-w-max htw:font-mono htw:text-[11px] htw:leading-[1.7] htw:p-[14px] htw:bg-transparent! htw:[&_.line]:inline-block htw:[&_.line]:min-w-full htw:[&_.line[data-source-changed]]:bg-accent/15",
|
|
934
|
+
alert: "htw:text-danger htw:text-[12px]"
|
|
935
|
+
},
|
|
936
|
+
mode: mode.value,
|
|
937
|
+
appearance: "dark",
|
|
938
|
+
"data-test-id": "story-source-code",
|
|
939
|
+
onContent: receive,
|
|
940
|
+
onError: report,
|
|
941
|
+
onStatus: status
|
|
942
|
+
}, null, 8, ["mode"])) : createCommentVNode("", true),
|
|
943
|
+
unref(loadingVisible) ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(WorkbenchLoadingState_default, {
|
|
944
|
+
title: "Loading source…",
|
|
945
|
+
immediate: ""
|
|
946
|
+
})])) : createCommentVNode("", true),
|
|
947
|
+
content.value?.body === "" ? (openBlock(), createElementBlock("p", _hoisted_6, " Source is empty. ")) : createCommentVNode("", true),
|
|
948
|
+
failure.value ? (openBlock(), createBlock(unref(HstButton), {
|
|
949
|
+
key: 3,
|
|
950
|
+
color: "flat",
|
|
951
|
+
type: "button",
|
|
952
|
+
class: "inspector-source-retry htw:mt-0 htw:mx-inspector-gutter htw:mb-4 htw:text-text htw:p-[7px_10px]",
|
|
953
|
+
onClick: retry
|
|
954
|
+
}, {
|
|
955
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" Retry source ", -1)])]),
|
|
956
|
+
_: 1
|
|
957
|
+
})) : createCommentVNode("", true)
|
|
958
|
+
], 64)) : createCommentVNode("", true)], 512), [[vShow, unref(expanded)]])], 8, _hoisted_1$1);
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
// src/app/components/inspector/StoryInspector.vue?vue&type=script&setup=true&lang.ts
|
|
963
|
+
var _hoisted_1 = ["data-active-tab"];
|
|
964
|
+
var _hoisted_2 = [
|
|
965
|
+
"id",
|
|
966
|
+
"aria-labelledby",
|
|
967
|
+
"aria-busy"
|
|
968
|
+
];
|
|
969
|
+
var StoryInspector_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
970
|
+
__name: "StoryInspector",
|
|
971
|
+
props: {
|
|
972
|
+
activeTab: {},
|
|
973
|
+
docsAnchor: {},
|
|
974
|
+
isolatedHref: {},
|
|
975
|
+
variantTitle: {},
|
|
976
|
+
projectTestSession: {}
|
|
977
|
+
},
|
|
978
|
+
emits: [
|
|
979
|
+
"panel",
|
|
980
|
+
"close",
|
|
981
|
+
"error"
|
|
982
|
+
],
|
|
983
|
+
setup(__props, { emit: __emit }) {
|
|
984
|
+
const props = __props;
|
|
985
|
+
const emit = __emit;
|
|
986
|
+
const { session, snapshot, story, variant } = useSelection();
|
|
987
|
+
const context = useHistoireContext();
|
|
988
|
+
const menu = useContextMenu();
|
|
989
|
+
const id = useId();
|
|
990
|
+
const root = ref();
|
|
991
|
+
const extensions = useInspectorExtensions(snapshot);
|
|
992
|
+
const tests = useInspectorTestsState(session, snapshot, props.projectTestSession);
|
|
993
|
+
const testsEnabled = computed(() => isInspectorTestsEnabled(__HISTOIRE_DEV__, snapshot.value.source?.mode));
|
|
994
|
+
const resolution = computed(() => resolveInspectorTab(props.activeTab ?? "", {
|
|
995
|
+
testsEnabled: testsEnabled.value,
|
|
996
|
+
pluginTabs: extensions.tabs.value.map((tab) => tab.id),
|
|
997
|
+
ready: extensions.ready.value
|
|
998
|
+
}));
|
|
999
|
+
const active = computed(() => resolution.value.value);
|
|
1000
|
+
/** Built-in views of the active tab; `undefined` for plugin tabs. */
|
|
1001
|
+
const builtin = computed(() => Object.hasOwn(INSPECTOR_BUILTIN_VIEWS, active.value) ? INSPECTOR_BUILTIN_VIEWS[active.value] : void 0);
|
|
1002
|
+
/** Qualified id of the active tab; sections attach to it. */
|
|
1003
|
+
const activeId = computed(() => getInspectorTabId(active.value));
|
|
1004
|
+
const panelKey = computed(() => getInspectorTabKey(active.value));
|
|
1005
|
+
const tabs = computed(() => {
|
|
1006
|
+
const noDocs = story.value?.content.docs === false;
|
|
1007
|
+
const items = [...getInspectorTabs(testsEnabled.value).map((tab) => ({
|
|
1008
|
+
value: tab.value,
|
|
1009
|
+
label: tab.label,
|
|
1010
|
+
icon: INSPECTOR_BUILTIN_VIEWS[tab.value].icon,
|
|
1011
|
+
badge: INSPECTOR_BUILTIN_VIEWS[tab.value].badge,
|
|
1012
|
+
dimmed: tab.value === "docs" && noDocs
|
|
1013
|
+
})), ...extensions.tabs.value.map((tab) => ({
|
|
1014
|
+
value: tab.id,
|
|
1015
|
+
label: tab.label,
|
|
1016
|
+
icon: resolveContributionIcon(tab),
|
|
1017
|
+
badgeText: extensions.badgeOf(tab)
|
|
1018
|
+
}))];
|
|
1019
|
+
return noDocs ? [...items.filter((tab) => tab.value !== "docs"), ...items.filter((tab) => tab.value === "docs")] : items;
|
|
1020
|
+
});
|
|
1021
|
+
/** A selected variant whose frame is not admitted yet: plugin views wait for it. */
|
|
1022
|
+
const frameLoading = computed(() => snapshot.value.status === "ready" && Boolean(snapshot.value.selection?.variantId) && !snapshot.value.stale && snapshot.value.runtime.status !== "failed");
|
|
1023
|
+
const unseen = ref(0);
|
|
1024
|
+
const counter = createInspectorEventCounter();
|
|
1025
|
+
const events = computed(() => snapshot.value.events.items.filter((event) => event.runtimeId === snapshot.value.runtime.runtimeId && event.target.storyId === snapshot.value.selection?.storyId && event.target.variantId === snapshot.value.selection?.variantId));
|
|
1026
|
+
provideInspectorModel({
|
|
1027
|
+
docsAnchor: computed(() => props.docsAnchor),
|
|
1028
|
+
events,
|
|
1029
|
+
unseen,
|
|
1030
|
+
tests
|
|
1031
|
+
});
|
|
1032
|
+
watch([snapshot, active], () => unseen.value = counter.observe(snapshot.value, active.value === "events"), {
|
|
1033
|
+
immediate: true,
|
|
1034
|
+
flush: "sync"
|
|
1035
|
+
});
|
|
1036
|
+
watch(() => context.panels.docs.value, (intent) => intent && emit("panel", "docs"));
|
|
1037
|
+
watch(() => resolution.value.rewrite, (rewrite) => {
|
|
1038
|
+
if (!rewrite) return;
|
|
1039
|
+
const focused = typeof document !== "undefined" && Boolean(root.value?.contains(document.activeElement));
|
|
1040
|
+
emit("panel", active.value);
|
|
1041
|
+
if (focused) nextTick(() => document.getElementById(`${id}-tab-${getInspectorTabKey("")}`)?.focus());
|
|
1042
|
+
});
|
|
1043
|
+
/**
|
|
1044
|
+
* Section placement filter.
|
|
1045
|
+
* @param tab Qualified tab id or `footer`.
|
|
1046
|
+
* @param position Placement around the tab body.
|
|
1047
|
+
*/
|
|
1048
|
+
function placement(tab, position) {
|
|
1049
|
+
return (contribution) => contribution.kind === "inspector.section" && contribution.tab === tab && (!position || contribution.position === position);
|
|
1050
|
+
}
|
|
1051
|
+
const isBefore = computed(() => placement(activeId.value, "before"));
|
|
1052
|
+
const isAfter = computed(() => placement(activeId.value, "after"));
|
|
1053
|
+
const isFooter = placement("footer");
|
|
1054
|
+
const isActiveTab = computed(() => (contribution) => contribution.id === active.value);
|
|
1055
|
+
/** Explicit tab choice retires local search intent, while route mutation stays in host. */
|
|
1056
|
+
function select(value) {
|
|
1057
|
+
context.panels.clear();
|
|
1058
|
+
emit("panel", value);
|
|
1059
|
+
}
|
|
1060
|
+
/** Inspector target menus reuse exact frame capabilities for selected variants. */
|
|
1061
|
+
function openSelectionMenu(event) {
|
|
1062
|
+
const target = snapshot.value.selection;
|
|
1063
|
+
if (!target || !menu) return;
|
|
1064
|
+
const frame = target.variantId ? {
|
|
1065
|
+
storyId: target.storyId,
|
|
1066
|
+
variantId: target.variantId,
|
|
1067
|
+
frameKey: getHistoireTargetKey(target)
|
|
1068
|
+
} : void 0;
|
|
1069
|
+
const variantTitle = target.variantId ? story.value?.variants.find((item) => item.id === target.variantId)?.title : void 0;
|
|
1070
|
+
menu.open(event, {
|
|
1071
|
+
kind: "inspector",
|
|
1072
|
+
label: `${story.value?.title ?? target.storyId}${variantTitle ? ` › ${variantTitle}` : ""}`,
|
|
1073
|
+
selection: target,
|
|
1074
|
+
frame
|
|
1075
|
+
}, ["context.copy-link"]);
|
|
1076
|
+
}
|
|
1077
|
+
/** Prop and state rows expose only their supported reset/copy operations. */
|
|
1078
|
+
function openControlMenu(event) {
|
|
1079
|
+
if ("key" in event && !isContextMenuShortcut(event)) return;
|
|
1080
|
+
if (typeof Element === "undefined" || !(event.target instanceof Element) || !menu) return;
|
|
1081
|
+
const element = event.target.closest(".histoire-prop-control, .histoire-state-control");
|
|
1082
|
+
if (!element) {
|
|
1083
|
+
openSelectionMenu(event);
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1086
|
+
const controlKind = element.classList.contains("histoire-prop-control") ? "prop" : "state";
|
|
1087
|
+
const label = element.getAttribute("title")?.replace(/ \*$/, "") || element.getAttribute("aria-label") || "Control";
|
|
1088
|
+
const resetElement = controlKind === "prop" ? element.querySelector(".histoire-prop-control-reset") ?? void 0 : element.closest(".histoire-controls")?.querySelector(".histoire-controls-reset") ?? void 0;
|
|
1089
|
+
const actions = ["control.copy-name", controlKind === "prop" ? "control.reset-override" : "control.reset-state"];
|
|
1090
|
+
menu.open(event, {
|
|
1091
|
+
kind: "control",
|
|
1092
|
+
key: `${controlKind}:${label}`,
|
|
1093
|
+
label,
|
|
1094
|
+
controlKind,
|
|
1095
|
+
element,
|
|
1096
|
+
resetElement
|
|
1097
|
+
}, actions);
|
|
1098
|
+
}
|
|
1099
|
+
return (_ctx, _cache) => {
|
|
1100
|
+
return openBlock(), createElementBlock("section", {
|
|
1101
|
+
ref_key: "root",
|
|
1102
|
+
ref: root,
|
|
1103
|
+
class: "htw:flex htw:flex-col htw:w-full htw:h-full htw:min-w-0 htw:min-h-0 htw:overflow-hidden htw:[border:1px_solid_transparent] htw:rounded-panel htw:text-text htw:bg-surface htw:[&[data-active-tab='docs']]:border-border htw:[&[data-active-tab='docs']]:bg-canvas",
|
|
1104
|
+
"data-active-tab": active.value || "props",
|
|
1105
|
+
"data-test-id": "story-side-panel",
|
|
1106
|
+
"aria-label": "Story inspector"
|
|
1107
|
+
}, [
|
|
1108
|
+
createVNode(InspectorHeader_default, {
|
|
1109
|
+
"story-title": unref(story)?.title || "Story",
|
|
1110
|
+
"variant-title": __props.variantTitle || unref(variant)?.title,
|
|
1111
|
+
"isolated-href": __props.isolatedHref,
|
|
1112
|
+
onClose: _cache[0] || (_cache[0] = ($event) => emit("close")),
|
|
1113
|
+
onContextmenu: openSelectionMenu
|
|
1114
|
+
}, null, 8, [
|
|
1115
|
+
"story-title",
|
|
1116
|
+
"variant-title",
|
|
1117
|
+
"isolated-href"
|
|
1118
|
+
]),
|
|
1119
|
+
createVNode(InspectorTabs_default, {
|
|
1120
|
+
"id-prefix": unref(id),
|
|
1121
|
+
"active-tab": resolution.value.pending ? void 0 : active.value,
|
|
1122
|
+
tabs: tabs.value,
|
|
1123
|
+
onSelect: select
|
|
1124
|
+
}, null, 8, [
|
|
1125
|
+
"id-prefix",
|
|
1126
|
+
"active-tab",
|
|
1127
|
+
"tabs"
|
|
1128
|
+
]),
|
|
1129
|
+
createElementVNode("div", {
|
|
1130
|
+
id: `${unref(id)}-panel-${panelKey.value}`,
|
|
1131
|
+
class: "htw:flex-1 htw:min-h-0 htw:overflow-auto",
|
|
1132
|
+
"data-histoire-docs-scroll": "",
|
|
1133
|
+
role: "tabpanel",
|
|
1134
|
+
"aria-labelledby": resolution.value.pending ? void 0 : `${unref(id)}-tab-${panelKey.value}`,
|
|
1135
|
+
"aria-busy": resolution.value.pending || void 0,
|
|
1136
|
+
onContextmenu: openControlMenu,
|
|
1137
|
+
onKeydown: openControlMenu
|
|
1138
|
+
}, [resolution.value.pending ? (openBlock(), createBlock(WorkbenchLoadingState_default, {
|
|
1139
|
+
key: 0,
|
|
1140
|
+
title: "Loading extensions"
|
|
1141
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1142
|
+
unref(extensions).frame.value ? (openBlock(), createBlock(InspectorExtensionOutlet_default, {
|
|
1143
|
+
key: 0,
|
|
1144
|
+
kind: "inspector.section",
|
|
1145
|
+
context: unref(extensions).frame.value,
|
|
1146
|
+
filter: isBefore.value
|
|
1147
|
+
}, null, 8, ["context", "filter"])) : createCommentVNode("", true),
|
|
1148
|
+
builtin.value ? (openBlock(), createBlock(resolveDynamicComponent(builtin.value.component), {
|
|
1149
|
+
key: 1,
|
|
1150
|
+
onError: _cache[1] || (_cache[1] = ($event) => emit("error", $event))
|
|
1151
|
+
}, createSlots({ _: 2 }, [!active.value && (_ctx.$slots["matrix-props"] || _ctx.$slots.matrix) ? {
|
|
1152
|
+
name: "matrix",
|
|
1153
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "matrix-props", {}, () => [renderSlot(_ctx.$slots, "matrix")])]),
|
|
1154
|
+
key: "0"
|
|
1155
|
+
} : void 0]), 1056)) : unref(extensions).frame.value ? (openBlock(), createBlock(InspectorExtensionOutlet_default, {
|
|
1156
|
+
key: 2,
|
|
1157
|
+
kind: "inspector.tab",
|
|
1158
|
+
context: unref(extensions).frame.value,
|
|
1159
|
+
filter: isActiveTab.value
|
|
1160
|
+
}, null, 8, ["context", "filter"])) : frameLoading.value ? (openBlock(), createBlock(WorkbenchLoadingState_default, {
|
|
1161
|
+
key: 3,
|
|
1162
|
+
title: "Loading variant"
|
|
1163
|
+
})) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
1164
|
+
key: 4,
|
|
1165
|
+
icon: "cursor-1",
|
|
1166
|
+
title: "Select a variant"
|
|
1167
|
+
})),
|
|
1168
|
+
unref(extensions).frame.value ? (openBlock(), createBlock(InspectorExtensionOutlet_default, {
|
|
1169
|
+
key: 5,
|
|
1170
|
+
kind: "inspector.section",
|
|
1171
|
+
context: unref(extensions).frame.value,
|
|
1172
|
+
filter: isAfter.value
|
|
1173
|
+
}, null, 8, ["context", "filter"])) : createCommentVNode("", true)
|
|
1174
|
+
], 64))], 40, _hoisted_2),
|
|
1175
|
+
unref(extensions).frame.value ? (openBlock(), createBlock(InspectorExtensionOutlet_default, {
|
|
1176
|
+
key: 0,
|
|
1177
|
+
kind: "inspector.section",
|
|
1178
|
+
context: unref(extensions).frame.value,
|
|
1179
|
+
filter: unref(isFooter),
|
|
1180
|
+
footer: ""
|
|
1181
|
+
}, null, 8, ["context", "filter"])) : createCommentVNode("", true),
|
|
1182
|
+
createVNode(SourceDrawer_default, {
|
|
1183
|
+
tone: active.value === "docs" ? "surface" : void 0,
|
|
1184
|
+
onError: _cache[2] || (_cache[2] = ($event) => emit("error", $event)),
|
|
1185
|
+
onContextmenu: openSelectionMenu
|
|
1186
|
+
}, null, 8, ["tone"])
|
|
1187
|
+
], 8, _hoisted_1);
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
// src/app/components/inspector/StoryInspector.vue
|
|
1192
|
+
var StoryInspector_exports = /* @__PURE__ */ __exportAll({ default: () => StoryInspector_default });
|
|
1193
|
+
var StoryInspector_default = StoryInspector_vue_vue_type_script_setup_true_lang_default;
|
|
1194
|
+
export { StoryInspector_default as default, useInspectorModel as n, StoryInspector_exports as t };
|