@histoire/app 1.0.0-beta.1 → 1.0.0-beta.3
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 +117 -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-mX7J6xrz.js +42 -0
- package/dist/bundled/chunks/AgentCursor-DcVxonMC.js +124 -0
- package/dist/bundled/chunks/AgentLogo-C2uXqX04.js +69 -0
- package/dist/bundled/chunks/AgentPlanApproval-22I_Lbhn.js +693 -0
- package/dist/bundled/chunks/AgentsSection-DWmUKCX-.js +1126 -0
- package/dist/bundled/chunks/AiPanel-BICtbtCE.js +1130 -0
- package/dist/bundled/chunks/AppearanceSection-maVgcfMk.js +306 -0
- package/dist/bundled/chunks/BasePopover-B3Y5H1gd.js +307 -0
- package/dist/bundled/chunks/CommentsCanvasOverlay-DhqtbJNX.js +955 -0
- package/dist/bundled/chunks/DevBrowseStatus-B6cLRu19.js +48 -0
- package/dist/bundled/chunks/DocsTab-PpFKAC6Q.js +31 -0
- package/dist/bundled/chunks/EmbedDialog-B70Zo-PZ.js +475 -0
- package/dist/bundled/chunks/EventsTab-DLVYcX1N.js +37 -0
- package/dist/bundled/chunks/GeneralSection-dvmJUgqN.js +84 -0
- package/dist/bundled/chunks/HomeCard-JYU5jbs7.js +24 -0
- package/dist/bundled/chunks/InspectionPanel-DDuT3guJ.js +584 -0
- package/dist/bundled/chunks/InspectorGuideLink-7Ui_Y2Wd.js +28 -0
- package/dist/bundled/chunks/MarkdownPage-D_LpsCvG.js +349 -0
- package/dist/bundled/chunks/MarketplaceUpdateBody-BtLPpA7F.js +300 -0
- package/dist/bundled/chunks/MarketplaceView-C1sVFRsq.js +2798 -0
- package/dist/bundled/chunks/MatrixInspector-wqkJJnuf.js +893 -0
- package/dist/bundled/chunks/MatrixView-D-Snu47M.js +646 -0
- package/dist/bundled/chunks/MatrixVisualActions-D3b-cp7N.js +70 -0
- package/dist/bundled/chunks/McpActivity-r2CFr-ny.js +136 -0
- package/dist/bundled/chunks/McpSection-swh7qlM0.js +76 -0
- package/dist/bundled/chunks/MenuItem-BYRJG5YA.js +59 -0
- package/dist/bundled/chunks/NeedsAttention-Cf6ihlT0.js +77 -0
- package/dist/bundled/chunks/PermissionPrompt-CXTPfiIu.js +128 -0
- package/dist/bundled/chunks/PluginTile-CfplGy7m.js +97 -0
- package/dist/bundled/chunks/PluginsSection-Dhv2haa3.js +858 -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-BZ37-dfK.js +725 -0
- package/dist/bundled/chunks/SettingsChoices-BoESgi62.js +19 -0
- package/dist/bundled/chunks/SettingsPage-D6ZOAgS9.js +174 -0
- package/dist/bundled/chunks/SettingsRow-C4lda-j7.js +22 -0
- package/dist/bundled/chunks/ShortcutsSection-EK2-e56v.js +43 -0
- package/dist/bundled/chunks/StoryInspector-DCNgw0x8.js +1197 -0
- package/dist/bundled/chunks/TestsPanel-D1USqA8I.js +1264 -0
- package/dist/bundled/chunks/TestsSection-CIkkHlyK.js +33 -0
- package/dist/bundled/chunks/TestsTab-ykf9zwmG.js +50 -0
- package/dist/bundled/chunks/ThreadMessage-DxrvoIea.js +2426 -0
- package/dist/bundled/chunks/ToolbarPopover-CXizdbQq.js +276 -0
- package/dist/bundled/chunks/ViewportsSection-D6mpKTSM.js +203 -0
- package/dist/bundled/chunks/VisualViewer-BQqfw1ov.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-SLby10Vh.js +100 -0
- package/dist/bundled/chunks/WorkbenchVirtualList-HCZiNo7p.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-CUUIkZVL.js +76 -0
- package/dist/bundled/chunks/canvas-settings-Cw7AXzFG.js +119 -0
- package/dist/bundled/chunks/capture-DxD6llwl.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-zLURTKoT.js +97 -0
- package/dist/bundled/chunks/content-view-ChEpdsxh.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-CtDADD0e.js +358 -0
- package/dist/bundled/chunks/events-Dhp302xE.js +30 -0
- package/dist/bundled/chunks/explorer-view-B717fDtg.js +285 -0
- package/dist/bundled/chunks/extensions-BtOjYv3e.js +6283 -0
- package/dist/bundled/chunks/extensions-DY0LLiE_.js +42 -0
- package/dist/bundled/chunks/frame-ledger-C67dpCuY.js +3405 -0
- package/dist/bundled/chunks/frame-owner-Di8_BWb0.js +22 -0
- package/dist/bundled/chunks/frame-screenshot-IEmQR7TR.js +84 -0
- package/dist/bundled/chunks/http-json-B3BE0tJj.js +37 -0
- package/dist/bundled/chunks/icons-DoUVE4X3.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-CQ14I_16.js +199 -0
- package/dist/bundled/chunks/marketplace-BE5IMmf3.js +951 -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-BPE7RMeb.js +237 -0
- package/dist/bundled/chunks/model-CIFxQfDH.js +744 -0
- package/dist/bundled/chunks/navigation-view-Co43QbrR.js +20 -0
- package/dist/bundled/chunks/ownership-BVQ3d672.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-BTc1fRMu.js +35 -0
- package/dist/bundled/chunks/settings-B8QvkMcW.js +173 -0
- package/dist/bundled/chunks/settings-BbefKI5N.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-CDZfcmuw.js +451 -0
- package/dist/bundled/chunks/status-C0sxyPzj.js +48 -0
- package/dist/bundled/chunks/tests-view-RYpujVD_.js +33 -0
- package/dist/bundled/chunks/ui-channel-BPYj8uw2.js +36 -0
- package/dist/bundled/chunks/use-install-plan-D0tiW2wu.js +184 -0
- package/dist/bundled/chunks/visual-nnXRPOP8.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 +15557 -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 +52 -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 +204 -0
- package/dist/embed/adapters/explorer-view.d.ts +9 -0
- package/dist/embed/adapters/explorer-view.js +84 -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 +180 -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 +476 -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 +24 -0
- package/dist/embed/adapters/sandbox-urls.js +41 -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 +174 -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 +99 -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 +130 -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 +44 -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 +8195 -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 +206 -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 +88 -0
- package/src/app/components/canvas/CanvasSingleVariant.vue +75 -0
- package/src/app/components/canvas/CanvasStatus.vue +53 -0
- package/src/app/components/canvas/CanvasViewport.vue +302 -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/FramePaddingAligners.vue +44 -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 +134 -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 +179 -0
- package/src/app/components/canvas/frame-menu.ts +13 -0
- package/src/app/components/canvas/frame-props-override.ts +108 -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 +113 -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 +125 -0
- package/src/app/components/canvas/matrix/MatrixVisualActions.vue +52 -0
- package/src/app/components/canvas/matrix/matrix-layout.ts +81 -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 +194 -0
- package/src/app/components/canvas/single-viewport.ts +46 -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-frame-size.ts +15 -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 +135 -0
- package/src/app/components/canvas/toolbar/ZoomMenu.vue +60 -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 +34 -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 +40 -0
- package/src/app/components/canvas/useSingleVariantGeometry.ts +35 -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 +38 -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 +32 -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 +91 -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 +166 -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 +109 -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 +56 -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 +141 -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 +301 -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 +300 -0
- package/src/app/stores/events.ts +12 -8
- package/src/app/stores/marketplace.ts +229 -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 +62 -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 +117 -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 +63 -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 +204 -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 +180 -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 +342 -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 +58 -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 +142 -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 +64 -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,2798 @@
|
|
|
1
|
+
import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
|
|
2
|
+
import { _ as HstTextarea, d as HstPulsatingDisc, g as HstText, h as HstSwitch, i as HstCheckbox, n as HstButton, p as HstSelect, r as HstButtonGroup, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
|
|
3
|
+
import { t as useContributionLookup } from "./shell-extensions-BRqMTtWV.js";
|
|
4
|
+
import { a as jobProgressLabel, o as useCatalogCollections, r as useMarketplaceStore } from "./marketplace-BE5IMmf3.js";
|
|
5
|
+
import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
|
|
6
|
+
import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
|
|
7
|
+
import { t as WorkbenchPanelAction_default } from "./WorkbenchPanelAction-SLby10Vh.js";
|
|
8
|
+
import { t as workbenchPluginId } from "./workbench-plugin-id-BgjbPURy.js";
|
|
9
|
+
import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
|
|
10
|
+
import { n as BaseChip_default, t as PluginTile_default } from "./PluginTile-CfplGy7m.js";
|
|
11
|
+
import { i as ReleaseNotes_default, n as ConfigDiff_default, r as CommandBlock_default, t as useInstallPlan } from "./use-install-plan-D0tiW2wu.js";
|
|
12
|
+
import { executablePackageManagers, manualConfigSteps, packageCommand } from "@histoire/shared";
|
|
13
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, onBeforeUnmount, onScopeDispose, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, watch, withCtx, withModifiers } from "@histoire/vendors/vue";
|
|
14
|
+
// src/app/components/marketplace/browse/CatalogState.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var _hoisted_1$25 = {
|
|
16
|
+
key: 2,
|
|
17
|
+
role: "status",
|
|
18
|
+
class: "htw:m-0 htw:rounded-control htw:bg-chip htw:p-[12px] htw:text-[12px] htw:text-muted"
|
|
19
|
+
};
|
|
20
|
+
var _hoisted_2$24 = { key: 0 };
|
|
21
|
+
var _hoisted_3$23 = {
|
|
22
|
+
key: 3,
|
|
23
|
+
role: "status",
|
|
24
|
+
class: "htw:m-0 htw:rounded-control htw:bg-chip htw:p-[12px] htw:text-[12px] htw:text-muted"
|
|
25
|
+
};
|
|
26
|
+
// src/app/components/marketplace/browse/CatalogState.vue
|
|
27
|
+
var CatalogState_default = /* @__PURE__ */ defineComponent({
|
|
28
|
+
__name: "CatalogState",
|
|
29
|
+
props: { view: {} },
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const store = useMarketplaceStore();
|
|
33
|
+
const ready = computed(() => !!store.page.value && store.pageView.value === props.view);
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
36
|
+
unref(store).loading.value && !ready.value ? (openBlock(), createBlock(WorkbenchLoadingState_default, {
|
|
37
|
+
key: 0,
|
|
38
|
+
title: "Loading plugins"
|
|
39
|
+
})) : createCommentVNode("", true),
|
|
40
|
+
unref(store).error.value ? (openBlock(), createBlock(WorkbenchErrorState_default, {
|
|
41
|
+
key: 1,
|
|
42
|
+
title: "Couldn't load plugins"
|
|
43
|
+
}, {
|
|
44
|
+
actions: withCtx(() => [createVNode(unref(HstButton), {
|
|
45
|
+
color: "flat",
|
|
46
|
+
"aria-label": "Retry loading plugins",
|
|
47
|
+
onClick: unref(store).loadCatalog
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode(" Retry ", -1)])]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["onClick"])]),
|
|
52
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(store).error.value) + " ", 1)]),
|
|
53
|
+
_: 1
|
|
54
|
+
})) : createCommentVNode("", true),
|
|
55
|
+
ready.value && ["stale", "error"].includes(unref(store).page.value.sources.community) ? (openBlock(), createElementBlock("p", _hoisted_1$25, [_cache[1] || (_cache[1] = createTextVNode(" Community plugins unavailable", -1)), unref(store).page.value.sources.community === "stale" ? (openBlock(), createElementBlock("span", _hoisted_2$24, " · Showing saved results")) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
56
|
+
ready.value && unref(store).page.value.sources.official !== "ok" ? (openBlock(), createElementBlock("p", _hoisted_3$23, toDisplayString(unref(store).page.value.sources.official === "stale" ? "Showing saved official plugins" : "Showing bundled official plugins"), 1)) : createCommentVNode("", true),
|
|
57
|
+
ready.value ? renderSlot(_ctx.$slots, "default", { key: 4 }) : createCommentVNode("", true)
|
|
58
|
+
], 64);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
// src/app/components/marketplace/browse/labels.ts
|
|
63
|
+
/** Shared visible category names for navigation, facets and cards. */
|
|
64
|
+
var categories = {
|
|
65
|
+
testing: "Testing",
|
|
66
|
+
design: "Design",
|
|
67
|
+
inspection: "Inspection",
|
|
68
|
+
frameworks: "Frameworks",
|
|
69
|
+
data: "Data & mocks"
|
|
70
|
+
};
|
|
71
|
+
/** Shared contribution labels, avoiding raw protocol values in controls. */
|
|
72
|
+
var additions = {
|
|
73
|
+
"rail-pane": "Project pane",
|
|
74
|
+
"inspector-tab": "Inspector tab",
|
|
75
|
+
"toolbar-tool": "Toolbar tool",
|
|
76
|
+
"story-tests": "Story tests",
|
|
77
|
+
"cli-command": "CLI command",
|
|
78
|
+
"settings-section": "Settings section",
|
|
79
|
+
"canvas-view": "Canvas view"
|
|
80
|
+
};
|
|
81
|
+
/** Human-readable stack names, preserving unknown framework names. */
|
|
82
|
+
function frameworkLabel(value) {
|
|
83
|
+
return {
|
|
84
|
+
vue: "Vue 3",
|
|
85
|
+
react: "React",
|
|
86
|
+
svelte: "Svelte",
|
|
87
|
+
vite: "Vite",
|
|
88
|
+
tailwindcss: "Tailwind CSS",
|
|
89
|
+
vitest: "Vitest"
|
|
90
|
+
}[value] ?? value.replace(/^vite (?=\d+$)/, "Vite ");
|
|
91
|
+
}
|
|
92
|
+
// src/app/components/marketplace/browse/use-catalog-filters.ts
|
|
93
|
+
/** Shared facet editing keeps checkbox, chip and switch behavior consistent. */
|
|
94
|
+
function useCatalogFilters() {
|
|
95
|
+
const store = useMarketplaceStore();
|
|
96
|
+
const chips = computed(() => {
|
|
97
|
+
const filters = store.filters.value;
|
|
98
|
+
return [
|
|
99
|
+
...filters.category ? [{
|
|
100
|
+
key: "category",
|
|
101
|
+
label: categories[filters.category],
|
|
102
|
+
field: "category"
|
|
103
|
+
}] : [],
|
|
104
|
+
...(filters.frameworks ?? []).map((value) => ({
|
|
105
|
+
key: `framework-${value}`,
|
|
106
|
+
label: frameworkLabel(value),
|
|
107
|
+
field: "frameworks",
|
|
108
|
+
value
|
|
109
|
+
})),
|
|
110
|
+
...filters.officialOnly ? [{
|
|
111
|
+
key: "official",
|
|
112
|
+
label: "Official only",
|
|
113
|
+
field: "officialOnly"
|
|
114
|
+
}] : [],
|
|
115
|
+
...(filters.adds ?? []).map((value) => ({
|
|
116
|
+
key: `add-${value}`,
|
|
117
|
+
label: additions[value],
|
|
118
|
+
field: "adds",
|
|
119
|
+
value
|
|
120
|
+
})),
|
|
121
|
+
...filters.collection ? [{
|
|
122
|
+
key: "collection",
|
|
123
|
+
label: filters.collection,
|
|
124
|
+
field: "collection"
|
|
125
|
+
}] : []
|
|
126
|
+
];
|
|
127
|
+
});
|
|
128
|
+
/** Change only chosen members and drop empty arrays from outgoing requests. */
|
|
129
|
+
function toggle(field, values, checked) {
|
|
130
|
+
const selected = new Set(store.filters.value[field] ?? []);
|
|
131
|
+
for (const value of values) if (checked) selected.add(value);
|
|
132
|
+
else selected.delete(value);
|
|
133
|
+
const filters = {
|
|
134
|
+
...store.filters.value,
|
|
135
|
+
[field]: [...selected]
|
|
136
|
+
};
|
|
137
|
+
if (!selected.size) delete filters[field];
|
|
138
|
+
store.setFilters(filters);
|
|
139
|
+
}
|
|
140
|
+
/** Remove one chip without resetting unrelated filters or search. */
|
|
141
|
+
function remove(chip) {
|
|
142
|
+
if (chip.field === "frameworks" || chip.field === "adds") toggle(chip.field, [chip.value], false);
|
|
143
|
+
else {
|
|
144
|
+
const filters = { ...store.filters.value };
|
|
145
|
+
delete filters[chip.field];
|
|
146
|
+
store.setFilters(filters);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
chips,
|
|
151
|
+
toggle,
|
|
152
|
+
remove
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
// src/app/components/marketplace/browse/FacetPanel.vue?vue&type=script&setup=true&lang.ts
|
|
156
|
+
var _hoisted_1$24 = {
|
|
157
|
+
"aria-label": "Plugin facets",
|
|
158
|
+
class: "htw:box-border htw:flex htw:w-[240px] htw:shrink-0 htw:flex-col htw:gap-[20px] htw:overflow-auto htw:border-0 htw:border-r htw:border-solid htw:border-border htw:bg-surface htw:p-[16px]"
|
|
159
|
+
};
|
|
160
|
+
var _hoisted_2$23 = { class: "htw:flex htw:items-center htw:justify-between" };
|
|
161
|
+
var _hoisted_3$22 = { class: "htw:m-0 htw:min-w-0 htw:border-0 htw:p-0" };
|
|
162
|
+
var _hoisted_4$20 = { class: "htw:font-sans htw:font-normal" };
|
|
163
|
+
var _hoisted_5$18 = { class: "htw:font-mono htw:text-[11px] htw:text-muted" };
|
|
164
|
+
var _hoisted_6$15 = { class: "htw:m-0 htw:min-w-0 htw:border-0 htw:p-0" };
|
|
165
|
+
var _hoisted_7$11 = { class: "htw:font-sans htw:font-normal" };
|
|
166
|
+
var _hoisted_8$9 = {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: "htw:text-[11px] htw:text-muted"
|
|
169
|
+
};
|
|
170
|
+
var _hoisted_9$5 = { class: "htw:font-mono htw:text-[11px] htw:text-muted" };
|
|
171
|
+
var _hoisted_10$3 = { class: "htw:m-0 htw:min-w-0 htw:border-0 htw:p-0" };
|
|
172
|
+
var _hoisted_11$2 = { class: "htw:flex htw:h-[30px] htw:items-center htw:gap-[8px]" };
|
|
173
|
+
var _hoisted_12$1 = { class: "htw:font-mono htw:text-[11px] htw:text-muted" };
|
|
174
|
+
var _hoisted_13$1 = { class: "htw:m-0 htw:min-w-0 htw:border-0 htw:p-0" };
|
|
175
|
+
var _hoisted_14$1 = { class: "htw:font-sans htw:font-normal" };
|
|
176
|
+
var _hoisted_15$1 = { class: "htw:font-mono htw:text-[11px] htw:text-muted" };
|
|
177
|
+
// src/app/components/marketplace/browse/FacetPanel.vue
|
|
178
|
+
var FacetPanel_default = /* @__PURE__ */ defineComponent({
|
|
179
|
+
__name: "FacetPanel",
|
|
180
|
+
props: { page: {} },
|
|
181
|
+
setup(__props) {
|
|
182
|
+
const props = __props;
|
|
183
|
+
const store = useMarketplaceStore();
|
|
184
|
+
const { toggle } = useCatalogFilters();
|
|
185
|
+
const frameworks = computed(() => [.../* @__PURE__ */ new Set([
|
|
186
|
+
...Object.keys(props.page.facets.frameworks),
|
|
187
|
+
...props.page.project.frameworks,
|
|
188
|
+
...store.filters.value.frameworks ?? []
|
|
189
|
+
])]);
|
|
190
|
+
return (_ctx, _cache) => {
|
|
191
|
+
return openBlock(), createElementBlock("aside", _hoisted_1$24, [
|
|
192
|
+
createElementVNode("div", _hoisted_2$23, [_cache[3] || (_cache[3] = createElementVNode("h2", { class: "htw:m-0 htw:text-[15px] htw:font-extrabold" }, " Filters ", -1)), createVNode(unref(HstButton), {
|
|
193
|
+
color: "flat",
|
|
194
|
+
"aria-label": "Reset facets",
|
|
195
|
+
class: "htw:h-[28px] htw:px-[10px] htw:text-[12px]",
|
|
196
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(store).setFilters({}))
|
|
197
|
+
}, {
|
|
198
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Reset ", -1)])]),
|
|
199
|
+
_: 1
|
|
200
|
+
})]),
|
|
201
|
+
createElementVNode("fieldset", _hoisted_3$22, [_cache[5] || (_cache[5] = createElementVNode("legend", { class: "htw:mb-[8px] htw:p-0 htw:text-[11px] htw:font-bold htw:tracking-[0.04em] htw:text-muted htw:uppercase" }, " Category ", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(categories), (label, category) => {
|
|
202
|
+
return openBlock(), createElementBlock("div", {
|
|
203
|
+
key: category,
|
|
204
|
+
class: "htw:flex htw:h-[30px] htw:items-center htw:gap-[8px]"
|
|
205
|
+
}, [createVNode(unref(HstCheckbox), {
|
|
206
|
+
"aria-label": `Category: ${label}`,
|
|
207
|
+
"model-value": unref(store).filters.value.category === category,
|
|
208
|
+
class: "htw:m-0 htw:min-w-0 htw:flex-1 htw:flex-row-reverse htw:p-0 htw:text-[13px]",
|
|
209
|
+
"onUpdate:modelValue": ($event) => unref(store).setFilters({
|
|
210
|
+
...unref(store).filters.value,
|
|
211
|
+
category: $event ? category : void 0
|
|
212
|
+
})
|
|
213
|
+
}, {
|
|
214
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_4$20, [_cache[4] || (_cache[4] = createElementVNode("span", { class: "htw:sr-only" }, "Category: ", -1)), createTextVNode(toDisplayString(label), 1)])]),
|
|
215
|
+
_: 2
|
|
216
|
+
}, 1032, [
|
|
217
|
+
"aria-label",
|
|
218
|
+
"model-value",
|
|
219
|
+
"onUpdate:modelValue"
|
|
220
|
+
]), createElementVNode("span", _hoisted_5$18, toDisplayString(__props.page.facets.category[category]), 1)]);
|
|
221
|
+
}), 128))]),
|
|
222
|
+
createElementVNode("fieldset", _hoisted_6$15, [_cache[7] || (_cache[7] = createElementVNode("legend", { class: "htw:mb-[8px] htw:p-0 htw:text-[11px] htw:font-bold htw:tracking-[0.04em] htw:text-muted htw:uppercase" }, " Framework ", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(frameworks.value, (framework) => {
|
|
223
|
+
return openBlock(), createElementBlock("div", {
|
|
224
|
+
key: framework,
|
|
225
|
+
class: "htw:flex htw:h-[30px] htw:items-center htw:gap-[8px]"
|
|
226
|
+
}, [
|
|
227
|
+
createVNode(unref(HstCheckbox), {
|
|
228
|
+
"aria-label": `Framework: ${unref(frameworkLabel)(framework)}`,
|
|
229
|
+
"model-value": unref(store).filters.value.frameworks?.includes(framework),
|
|
230
|
+
class: "htw:m-0 htw:min-w-0 htw:flex-1 htw:flex-row-reverse htw:p-0 htw:text-[13px]",
|
|
231
|
+
"onUpdate:modelValue": ($event) => unref(toggle)("frameworks", [framework], !!$event)
|
|
232
|
+
}, {
|
|
233
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_7$11, [_cache[6] || (_cache[6] = createElementVNode("span", { class: "htw:sr-only" }, "Framework: ", -1)), createTextVNode(toDisplayString(unref(frameworkLabel)(framework)), 1)])]),
|
|
234
|
+
_: 2
|
|
235
|
+
}, 1032, [
|
|
236
|
+
"aria-label",
|
|
237
|
+
"model-value",
|
|
238
|
+
"onUpdate:modelValue"
|
|
239
|
+
]),
|
|
240
|
+
__props.page.project.frameworks.includes(framework) ? (openBlock(), createElementBlock("span", _hoisted_8$9, "detected")) : createCommentVNode("", true),
|
|
241
|
+
createElementVNode("span", _hoisted_9$5, toDisplayString(__props.page.facets.frameworks[framework] ?? 0), 1)
|
|
242
|
+
]);
|
|
243
|
+
}), 128))]),
|
|
244
|
+
createElementVNode("fieldset", _hoisted_10$3, [_cache[9] || (_cache[9] = createElementVNode("legend", { class: "htw:mb-[8px] htw:p-0 htw:text-[11px] htw:font-bold htw:tracking-[0.04em] htw:text-muted htw:uppercase" }, " Publisher ", -1)), createElementVNode("div", _hoisted_11$2, [createVNode(unref(HstCheckbox), {
|
|
245
|
+
"aria-label": "Official only",
|
|
246
|
+
"model-value": unref(store).filters.value.officialOnly,
|
|
247
|
+
class: "htw:m-0 htw:min-w-0 htw:flex-1 htw:flex-row-reverse htw:p-0 htw:text-[13px]",
|
|
248
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(store).setFilters({
|
|
249
|
+
...unref(store).filters.value,
|
|
250
|
+
officialOnly: !!$event || void 0
|
|
251
|
+
}))
|
|
252
|
+
}, {
|
|
253
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [createElementVNode("span", { class: "htw:font-sans htw:font-normal" }, "Official only", -1)])]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, ["model-value"]), createElementVNode("span", _hoisted_12$1, toDisplayString(__props.page.facets.official), 1)])]),
|
|
256
|
+
createElementVNode("fieldset", _hoisted_13$1, [_cache[11] || (_cache[11] = createElementVNode("legend", { class: "htw:mb-[8px] htw:p-0 htw:text-[11px] htw:font-bold htw:tracking-[0.04em] htw:text-muted htw:uppercase" }, " Adds ", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(additions), (label, kind) => {
|
|
257
|
+
return openBlock(), createElementBlock("div", {
|
|
258
|
+
key: kind,
|
|
259
|
+
class: "htw:flex htw:h-[30px] htw:items-center htw:gap-[8px]"
|
|
260
|
+
}, [createVNode(unref(HstCheckbox), {
|
|
261
|
+
"aria-label": `Adds: ${label}`,
|
|
262
|
+
"model-value": unref(store).filters.value.adds?.includes(kind),
|
|
263
|
+
class: "htw:m-0 htw:min-w-0 htw:flex-1 htw:flex-row-reverse htw:p-0 htw:text-[13px]",
|
|
264
|
+
"onUpdate:modelValue": ($event) => unref(toggle)("adds", [kind], !!$event)
|
|
265
|
+
}, {
|
|
266
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_14$1, [_cache[10] || (_cache[10] = createElementVNode("span", { class: "htw:sr-only" }, "Adds: ", -1)), createTextVNode(toDisplayString(label), 1)])]),
|
|
267
|
+
_: 2
|
|
268
|
+
}, 1032, [
|
|
269
|
+
"aria-label",
|
|
270
|
+
"model-value",
|
|
271
|
+
"onUpdate:modelValue"
|
|
272
|
+
]), createElementVNode("span", _hoisted_15$1, toDisplayString(__props.page.facets.adds[kind]), 1)]);
|
|
273
|
+
}), 128))])
|
|
274
|
+
]);
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
// src/app/components/marketplace/browse/NoResults.vue?vue&type=script&setup=true&lang.ts
|
|
279
|
+
var _hoisted_1$23 = { class: "htw:mx-auto htw:flex htw:w-full htw:max-w-[920px] htw:flex-col htw:items-center htw:gap-[16px]" };
|
|
280
|
+
var _hoisted_2$22 = { key: 0 };
|
|
281
|
+
var _hoisted_3$21 = {
|
|
282
|
+
key: 1,
|
|
283
|
+
class: "htw:block"
|
|
284
|
+
};
|
|
285
|
+
var _hoisted_4$19 = {
|
|
286
|
+
key: 0,
|
|
287
|
+
class: "htw:flex htw:flex-wrap htw:items-center htw:justify-center htw:gap-[8px] htw:text-[12px]"
|
|
288
|
+
};
|
|
289
|
+
var _hoisted_5$17 = { class: "htw:mt-[32px] htw:box-border htw:flex htw:w-full htw:max-w-[560px] htw:items-center htw:gap-[14px] htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:px-[18px] htw:py-[16px]" };
|
|
290
|
+
var _hoisted_6$14 = {
|
|
291
|
+
"aria-hidden": "true",
|
|
292
|
+
class: "htw:grid htw:size-[36px] htw:shrink-0 htw:place-items-center htw:rounded-[10px] htw:bg-chip htw:text-body"
|
|
293
|
+
};
|
|
294
|
+
// src/app/components/marketplace/browse/NoResults.vue
|
|
295
|
+
var NoResults_default = /* @__PURE__ */ defineComponent({
|
|
296
|
+
__name: "NoResults",
|
|
297
|
+
props: { collections: {} },
|
|
298
|
+
emits: ["clear", "collection"],
|
|
299
|
+
setup(__props) {
|
|
300
|
+
const store = useMarketplaceStore();
|
|
301
|
+
/** Describe actual active facets without inventing a query. */
|
|
302
|
+
const context = computed(() => [
|
|
303
|
+
store.filters.value.category && categories[store.filters.value.category],
|
|
304
|
+
...store.filters.value.frameworks?.map(frameworkLabel) ?? [],
|
|
305
|
+
store.filters.value.officialOnly && "Official only",
|
|
306
|
+
...store.filters.value.adds?.map((kind) => additions[kind]) ?? []
|
|
307
|
+
].filter(Boolean).join(" · "));
|
|
308
|
+
return (_ctx, _cache) => {
|
|
309
|
+
return openBlock(), createElementBlock("div", _hoisted_1$23, [
|
|
310
|
+
createVNode(WorkbenchEmptyState_default, {
|
|
311
|
+
icon: "search",
|
|
312
|
+
title: "No matches"
|
|
313
|
+
}, createSlots({
|
|
314
|
+
actions: withCtx(() => [!unref(store).prefs.value.community ? (openBlock(), createBlock(unref(HstButton), {
|
|
315
|
+
key: 0,
|
|
316
|
+
color: "flat",
|
|
317
|
+
"aria-label": "Include community plugins",
|
|
318
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(store).prefs.value.community = true)
|
|
319
|
+
}, {
|
|
320
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" Include community plugins ", -1)])]),
|
|
321
|
+
_: 1
|
|
322
|
+
})) : createCommentVNode("", true), createVNode(unref(HstButton), {
|
|
323
|
+
color: "flat",
|
|
324
|
+
"aria-label": "Clear filters",
|
|
325
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("clear"))
|
|
326
|
+
}, {
|
|
327
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" Clear filters ", -1)])]),
|
|
328
|
+
_: 1
|
|
329
|
+
})]),
|
|
330
|
+
_: 2
|
|
331
|
+
}, [unref(store).query.value || context.value ? {
|
|
332
|
+
name: "default",
|
|
333
|
+
fn: withCtx(() => [unref(store).query.value ? (openBlock(), createElementBlock("span", _hoisted_2$22, [_cache[2] || (_cache[2] = createTextVNode("Nothing for ", -1)), createElementVNode("q", null, toDisplayString(unref(store).query.value), 1)])) : createCommentVNode("", true), context.value ? (openBlock(), createElementBlock("span", _hoisted_3$21, toDisplayString(context.value), 1)) : createCommentVNode("", true)]),
|
|
334
|
+
key: "0"
|
|
335
|
+
} : void 0]), 1024),
|
|
336
|
+
__props.collections.length ? (openBlock(), createElementBlock("div", _hoisted_4$19, [_cache[5] || (_cache[5] = createElementVNode("span", { class: "htw:text-muted" }, "Try", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.collections, (collection) => {
|
|
337
|
+
return openBlock(), createBlock(BaseChip_default, {
|
|
338
|
+
key: collection.id,
|
|
339
|
+
as: "button",
|
|
340
|
+
tone: "outline",
|
|
341
|
+
"aria-label": `Try ${collection.title}`,
|
|
342
|
+
onClick: ($event) => _ctx.$emit("collection", collection)
|
|
343
|
+
}, {
|
|
344
|
+
default: withCtx(() => [createTextVNode(toDisplayString(collection.title), 1)]),
|
|
345
|
+
_: 2
|
|
346
|
+
}, 1032, ["aria-label", "onClick"]);
|
|
347
|
+
}), 128))])) : createCommentVNode("", true),
|
|
348
|
+
createElementVNode("div", _hoisted_5$17, [
|
|
349
|
+
createElementVNode("span", _hoisted_6$14, [createVNode(unref(BuiltinIcon), {
|
|
350
|
+
icon: "code",
|
|
351
|
+
size: 18
|
|
352
|
+
})]),
|
|
353
|
+
_cache[7] || (_cache[7] = createElementVNode("div", { class: "htw:min-w-0 htw:flex-1 htw:text-[13px]" }, [createElementVNode("h3", { class: "htw:m-0 htw:text-[13px] htw:font-extrabold" }, " Build it yourself "), createElementVNode("p", { class: "htw:m-0 htw:text-muted" }, " Workbench plugins add panes, inspector tabs and toolbar tools ")], -1)),
|
|
354
|
+
createVNode(unref(HstButton), {
|
|
355
|
+
as: "a",
|
|
356
|
+
href: "https://histoire.dev/guide/plugins/development",
|
|
357
|
+
target: "_blank",
|
|
358
|
+
rel: "noopener noreferrer",
|
|
359
|
+
class: "htw:h-[28px] htw:shrink-0 htw:px-[10px] htw:text-[12px]"
|
|
360
|
+
}, {
|
|
361
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode(" Plugin guide ", -1)])]),
|
|
362
|
+
_: 1
|
|
363
|
+
})
|
|
364
|
+
])
|
|
365
|
+
]);
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
// src/app/components/marketplace/shell/compatibility-reason.ts
|
|
370
|
+
/** Keep missing server compatibility reasons consistent across catalog and version views. */
|
|
371
|
+
function incompatibleReason(reason) {
|
|
372
|
+
return reason || "Incompatible with this project";
|
|
373
|
+
}
|
|
374
|
+
// src/app/components/marketplace/browse/MatchText.vue?vue&type=script&setup=true&lang.ts
|
|
375
|
+
var _hoisted_1$22 = {
|
|
376
|
+
key: 0,
|
|
377
|
+
class: "htw:rounded-[2px] htw:bg-warn/25 htw:text-inherit"
|
|
378
|
+
};
|
|
379
|
+
// src/app/components/marketplace/browse/MatchText.vue
|
|
380
|
+
var MatchText_default = /* @__PURE__ */ defineComponent({
|
|
381
|
+
__name: "MatchText",
|
|
382
|
+
props: {
|
|
383
|
+
text: {},
|
|
384
|
+
ranges: {}
|
|
385
|
+
},
|
|
386
|
+
setup(__props) {
|
|
387
|
+
const props = __props;
|
|
388
|
+
/** Clamp, sort and merge ranges before slicing so overlapping matches never duplicate text. */
|
|
389
|
+
const segments = computed(() => {
|
|
390
|
+
const ranges = (props.ranges ?? []).filter(([start, end]) => Number.isInteger(start) && Number.isInteger(end) && start <= end && end >= 0 && start < props.text.length).map(([start, end]) => [Math.max(0, start), Math.min(props.text.length, end + 1)]).sort((a, b) => a[0] - b[0]);
|
|
391
|
+
const result = [];
|
|
392
|
+
let position = 0;
|
|
393
|
+
for (let index = 0; index < ranges.length; index++) {
|
|
394
|
+
const [start, initialEnd] = ranges[index];
|
|
395
|
+
let end = initialEnd;
|
|
396
|
+
while (index + 1 < ranges.length && ranges[index + 1][0] <= end) end = Math.max(end, ranges[++index][1]);
|
|
397
|
+
if (start > position) result.push({
|
|
398
|
+
text: props.text.slice(position, start),
|
|
399
|
+
matched: false
|
|
400
|
+
});
|
|
401
|
+
result.push({
|
|
402
|
+
text: props.text.slice(start, end),
|
|
403
|
+
matched: true
|
|
404
|
+
});
|
|
405
|
+
position = end;
|
|
406
|
+
}
|
|
407
|
+
if (position < props.text.length) result.push({
|
|
408
|
+
text: props.text.slice(position),
|
|
409
|
+
matched: false
|
|
410
|
+
});
|
|
411
|
+
return result;
|
|
412
|
+
});
|
|
413
|
+
return (_ctx, _cache) => {
|
|
414
|
+
return openBlock(), createElementBlock("span", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(segments.value, (segment, index) => {
|
|
415
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [segment.matched ? (openBlock(), createElementBlock("mark", _hoisted_1$22, toDisplayString(segment.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(segment.text), 1)], 64))], 64);
|
|
416
|
+
}), 128))]);
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
// src/app/components/marketplace/browse/plugin-actions.ts
|
|
421
|
+
/** Capture local preferences when entering review from a card or project recommendation. */
|
|
422
|
+
function installPlugin(store, id) {
|
|
423
|
+
store.startInstall({
|
|
424
|
+
kind: "install",
|
|
425
|
+
id,
|
|
426
|
+
prefs: {
|
|
427
|
+
...store.prefs.value,
|
|
428
|
+
skippedVersions: { ...store.prefs.value.skippedVersions }
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
// src/app/components/marketplace/browse/PluginInstallAction.vue
|
|
433
|
+
var PluginInstallAction_default = /* @__PURE__ */ defineComponent({
|
|
434
|
+
__name: "PluginInstallAction",
|
|
435
|
+
props: {
|
|
436
|
+
plugin: {},
|
|
437
|
+
primary: {
|
|
438
|
+
type: Boolean,
|
|
439
|
+
default: false
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
setup(__props) {
|
|
443
|
+
const store = useMarketplaceStore();
|
|
444
|
+
return (_ctx, _cache) => {
|
|
445
|
+
return __props.plugin.installed ? (openBlock(), createBlock(BaseChip_default, {
|
|
446
|
+
key: 0,
|
|
447
|
+
tone: "accent"
|
|
448
|
+
}, {
|
|
449
|
+
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
450
|
+
icon: "checkmark",
|
|
451
|
+
size: 12
|
|
452
|
+
}), _cache[1] || (_cache[1] = createTextVNode("Installed ", -1))]),
|
|
453
|
+
_: 1
|
|
454
|
+
})) : (openBlock(), createBlock(unref(HstButton), {
|
|
455
|
+
key: 1,
|
|
456
|
+
color: __props.primary ? "primary" : "default",
|
|
457
|
+
"aria-label": `Install ${__props.plugin.displayName}`,
|
|
458
|
+
class: normalizeClass([__props.primary ? "htw:h-[32px] htw:px-[12px] htw:text-[13px]" : "htw:h-[28px] htw:px-[10px] htw:text-[12px]", "htw:shrink-0 htw:rounded-[8px]"]),
|
|
459
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(installPlugin)(unref(store), __props.plugin.id), ["stop"]))
|
|
460
|
+
}, {
|
|
461
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Install ", -1)])]),
|
|
462
|
+
_: 1
|
|
463
|
+
}, 8, [
|
|
464
|
+
"color",
|
|
465
|
+
"aria-label",
|
|
466
|
+
"class"
|
|
467
|
+
]));
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
// src/app/components/marketplace/browse/PluginCard.vue?vue&type=script&setup=true&lang.ts
|
|
472
|
+
var _hoisted_1$21 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-[6px]" };
|
|
473
|
+
var _hoisted_2$21 = { class: "htw:m-0 htw:text-[14px] htw:font-extrabold" };
|
|
474
|
+
var _hoisted_3$20 = ["aria-label"];
|
|
475
|
+
var _hoisted_4$18 = {
|
|
476
|
+
key: 0,
|
|
477
|
+
class: "htw:break-all htw:font-mono htw:text-[11px] htw:text-muted"
|
|
478
|
+
};
|
|
479
|
+
var _hoisted_5$16 = { class: "htw:col-start-2 htw:row-start-2 htw:m-0 htw:text-body" };
|
|
480
|
+
var _hoisted_6$13 = {
|
|
481
|
+
key: 0,
|
|
482
|
+
class: "htw:col-start-2 htw:row-start-3 htw:mt-[4px] htw:flex htw:flex-wrap htw:items-center htw:gap-[6px]"
|
|
483
|
+
};
|
|
484
|
+
var _hoisted_7$10 = {
|
|
485
|
+
key: 2,
|
|
486
|
+
class: "htw:col-span-full htw:m-0 htw:text-[12px] htw:text-muted"
|
|
487
|
+
};
|
|
488
|
+
// src/app/components/marketplace/browse/PluginCard.vue
|
|
489
|
+
var PluginCard_default = /* @__PURE__ */ defineComponent({
|
|
490
|
+
__name: "PluginCard",
|
|
491
|
+
props: {
|
|
492
|
+
plugin: {},
|
|
493
|
+
layout: { default: "list" }
|
|
494
|
+
},
|
|
495
|
+
setup(__props) {
|
|
496
|
+
const props = __props;
|
|
497
|
+
const store = useMarketplaceStore();
|
|
498
|
+
/** Keep the same content/actions across rows and picks; only their grid placement changes. */
|
|
499
|
+
const layouts = {
|
|
500
|
+
/** Search rows share their enclosing card border and separate each result. */
|
|
501
|
+
list: "htw:grid-cols-[40px_minmax(0,1fr)_auto] htw:gap-x-[14px] htw:gap-y-[4px] htw:border-0 htw:border-b htw:border-solid htw:border-border htw:px-[18px] htw:py-[16px] htw:last:border-b-0",
|
|
502
|
+
/** Compact recommendations keep install next to the heading. */
|
|
503
|
+
pick: "htw:flex-1 htw:grid-cols-[40px_minmax(0,1fr)_auto] htw:gap-x-[12px] htw:gap-y-[6px] htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:p-[16px]"
|
|
504
|
+
};
|
|
505
|
+
/** Inclusive matches for exactly the field being rendered. */
|
|
506
|
+
function ranges(field) {
|
|
507
|
+
return props.plugin.match?.filter((match) => match.field === field).flatMap((match) => match.ranges) ?? [];
|
|
508
|
+
}
|
|
509
|
+
return (_ctx, _cache) => {
|
|
510
|
+
return openBlock(), createElementBlock("article", {
|
|
511
|
+
class: normalizeClass(["htw:grid htw:min-w-0 htw:content-start htw:bg-surface htw:text-[13px]", layouts[__props.layout]]),
|
|
512
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(store).showPlugin(__props.plugin.id))
|
|
513
|
+
}, [
|
|
514
|
+
createVNode(PluginTile_default, {
|
|
515
|
+
plugin: __props.plugin,
|
|
516
|
+
size: 40,
|
|
517
|
+
class: "htw:col-start-1 htw:row-start-1 htw:row-span-3 htw:text-[13px]"
|
|
518
|
+
}, null, 8, ["plugin"]),
|
|
519
|
+
createElementVNode("div", { class: normalizeClass(["htw:col-start-2 htw:row-start-1 htw:min-w-0 htw:self-center", __props.layout === "list" ? "htw:flex htw:flex-wrap htw:items-baseline htw:gap-[8px]" : ""]) }, [
|
|
520
|
+
createElementVNode("div", _hoisted_1$21, [createElementVNode("h3", _hoisted_2$21, [createElementVNode("button", {
|
|
521
|
+
type: "button",
|
|
522
|
+
"aria-label": `Details for ${__props.plugin.displayName}`,
|
|
523
|
+
class: "htw:m-0 htw:cursor-pointer htw:rounded-[3px] htw:border-0 htw:bg-transparent htw:p-0 htw:text-left htw:text-inherit htw:[font:inherit] htw:hover:text-accent-text htw:focus-visible:outline-2 htw:focus-visible:outline-accent",
|
|
524
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(store).showPlugin(__props.plugin.id), ["stop"]))
|
|
525
|
+
}, [createVNode(MatchText_default, {
|
|
526
|
+
text: __props.plugin.displayName,
|
|
527
|
+
ranges: ranges("displayName")
|
|
528
|
+
}, null, 8, ["text", "ranges"])], 8, _hoisted_3$20)])]),
|
|
529
|
+
__props.layout === "list" ? (openBlock(), createElementBlock("span", _hoisted_4$18, [createVNode(MatchText_default, {
|
|
530
|
+
text: __props.plugin.id,
|
|
531
|
+
ranges: ranges("id")
|
|
532
|
+
}, null, 8, ["text", "ranges"])])) : createCommentVNode("", true),
|
|
533
|
+
__props.plugin.official && __props.layout === "list" ? (openBlock(), createBlock(BaseChip_default, {
|
|
534
|
+
key: 1,
|
|
535
|
+
tone: "accent",
|
|
536
|
+
compact: ""
|
|
537
|
+
}, {
|
|
538
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Official ", -1)])]),
|
|
539
|
+
_: 1
|
|
540
|
+
})) : createCommentVNode("", true)
|
|
541
|
+
], 2),
|
|
542
|
+
createVNode(PluginInstallAction_default, {
|
|
543
|
+
plugin: __props.plugin,
|
|
544
|
+
class: "htw:col-start-3 htw:row-start-1 htw:self-start"
|
|
545
|
+
}, null, 8, ["plugin"]),
|
|
546
|
+
createElementVNode("p", _hoisted_5$16, [createVNode(MatchText_default, {
|
|
547
|
+
text: __props.plugin.summary,
|
|
548
|
+
ranges: ranges("summary")
|
|
549
|
+
}, null, 8, ["text", "ranges"])]),
|
|
550
|
+
__props.layout === "list" ? (openBlock(), createElementBlock("div", _hoisted_6$13, [(openBlock(true), createElementBlock(Fragment, null, renderList([...new Set(__props.plugin.adds.map((add) => add.kind))], (kind) => {
|
|
551
|
+
return openBlock(), createBlock(BaseChip_default, { key: kind }, {
|
|
552
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(additions)[kind]), 1)]),
|
|
553
|
+
_: 2
|
|
554
|
+
}, 1024);
|
|
555
|
+
}), 128))])) : createCommentVNode("", true),
|
|
556
|
+
__props.plugin.reason && __props.layout === "pick" ? (openBlock(), createBlock(BaseChip_default, {
|
|
557
|
+
key: 1,
|
|
558
|
+
tone: "accent",
|
|
559
|
+
class: "htw:col-start-2 htw:row-start-3 htw:justify-self-start"
|
|
560
|
+
}, {
|
|
561
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.plugin.reason), 1)]),
|
|
562
|
+
_: 1
|
|
563
|
+
})) : createCommentVNode("", true),
|
|
564
|
+
!__props.plugin.compatible.ok ? (openBlock(), createElementBlock("p", _hoisted_7$10, toDisplayString(unref(incompatibleReason)(__props.plugin.compatible.reason)), 1)) : createCommentVNode("", true)
|
|
565
|
+
], 2);
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
// src/app/components/marketplace/browse/ResultsBar.vue?vue&type=script&setup=true&lang.ts
|
|
570
|
+
var _hoisted_1$20 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-[8px] htw:text-[13px]" };
|
|
571
|
+
var _hoisted_2$20 = {
|
|
572
|
+
"aria-live": "polite",
|
|
573
|
+
class: "htw:mr-[4px] htw:font-semibold htw:text-muted"
|
|
574
|
+
};
|
|
575
|
+
var _hoisted_3$19 = ["aria-label", "onClick"];
|
|
576
|
+
var _hoisted_4$17 = { class: "htw:ml-auto htw:flex htw:items-center htw:gap-[16px]" };
|
|
577
|
+
var _hoisted_5$15 = {
|
|
578
|
+
key: 0,
|
|
579
|
+
class: "htw:flex htw:cursor-pointer htw:items-center htw:gap-[8px] htw:font-semibold htw:text-body"
|
|
580
|
+
};
|
|
581
|
+
// src/app/components/marketplace/browse/ResultsBar.vue
|
|
582
|
+
var ResultsBar_default = /* @__PURE__ */ defineComponent({
|
|
583
|
+
__name: "ResultsBar",
|
|
584
|
+
props: {
|
|
585
|
+
total: {},
|
|
586
|
+
frameworks: {},
|
|
587
|
+
collectionTitle: {}
|
|
588
|
+
},
|
|
589
|
+
setup(__props) {
|
|
590
|
+
const props = __props;
|
|
591
|
+
const store = useMarketplaceStore();
|
|
592
|
+
const { chips: activeFilters, toggle, remove } = useCatalogFilters();
|
|
593
|
+
const chips = computed(() => activeFilters.value.map((chip) => chip.field === "collection" ? {
|
|
594
|
+
...chip,
|
|
595
|
+
label: props.collectionTitle ?? chip.label
|
|
596
|
+
} : chip));
|
|
597
|
+
const frameworkTitle = computed(() => `Works with ${props.frameworks.map(frameworkLabel).join(", ")}`);
|
|
598
|
+
const matchesProject = computed(() => props.frameworks.length > 0 && props.frameworks.every((value) => store.filters.value.frameworks?.includes(value)));
|
|
599
|
+
return (_ctx, _cache) => {
|
|
600
|
+
return openBlock(), createElementBlock("div", _hoisted_1$20, [
|
|
601
|
+
createElementVNode("span", _hoisted_2$20, toDisplayString(__props.total) + " " + toDisplayString(__props.total === 1 ? "plugin" : "plugins"), 1),
|
|
602
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(chips.value, (chip) => {
|
|
603
|
+
return openBlock(), createBlock(BaseChip_default, {
|
|
604
|
+
key: chip.key,
|
|
605
|
+
tone: "accent"
|
|
606
|
+
}, {
|
|
607
|
+
default: withCtx(() => [createTextVNode(toDisplayString(chip.label) + " ", 1), createElementVNode("button", {
|
|
608
|
+
type: "button",
|
|
609
|
+
"aria-label": `Remove ${chip.label} filter`,
|
|
610
|
+
class: "htw:m-0 htw:flex htw:cursor-pointer htw:items-center htw:rounded-[3px] htw:border-0 htw:bg-transparent htw:p-0 htw:text-inherit htw:[font:inherit] htw:focus-visible:outline-2 htw:focus-visible:outline-accent",
|
|
611
|
+
onClick: ($event) => unref(remove)(chip)
|
|
612
|
+
}, [createVNode(unref(BuiltinIcon), {
|
|
613
|
+
icon: "close",
|
|
614
|
+
size: 12
|
|
615
|
+
})], 8, _hoisted_3$19)]),
|
|
616
|
+
_: 2
|
|
617
|
+
}, 1024);
|
|
618
|
+
}), 128)),
|
|
619
|
+
createElementVNode("div", _hoisted_4$17, [__props.frameworks.length ? (openBlock(), createElementBlock("label", _hoisted_5$15, [createVNode(unref(HstSwitch), {
|
|
620
|
+
layout: "inline",
|
|
621
|
+
"aria-label": frameworkTitle.value,
|
|
622
|
+
"model-value": matchesProject.value,
|
|
623
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(toggle)("frameworks", __props.frameworks, $event))
|
|
624
|
+
}, null, 8, ["aria-label", "model-value"]), createTextVNode(" " + toDisplayString(frameworkTitle.value), 1)])) : createCommentVNode("", true), createVNode(unref(HstSelect), {
|
|
625
|
+
layout: "inline",
|
|
626
|
+
"aria-label": "Sort plugins",
|
|
627
|
+
"model-value": unref(store).sort.value,
|
|
628
|
+
options: [
|
|
629
|
+
{
|
|
630
|
+
value: "relevance",
|
|
631
|
+
label: "Relevance"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
value: "name",
|
|
635
|
+
label: "Name"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
value: "updated",
|
|
639
|
+
label: "Recently updated"
|
|
640
|
+
}
|
|
641
|
+
],
|
|
642
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(store).sort.value = $event)
|
|
643
|
+
}, null, 8, ["model-value"])])
|
|
644
|
+
]);
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
// src/app/components/marketplace/browse/use-catalog-query.ts
|
|
649
|
+
/** Adapt shared store data without starting a second first-page request owner. */
|
|
650
|
+
function useCatalogQuery() {
|
|
651
|
+
const store = useMarketplaceStore();
|
|
652
|
+
const { collections, selectedCollection, selectCollection } = useCatalogCollections(store);
|
|
653
|
+
let activeMore;
|
|
654
|
+
/** Additional server pages, separate from the store's retained first page. */
|
|
655
|
+
const extra = shallowRef([]);
|
|
656
|
+
/** Next opaque page cursor. */
|
|
657
|
+
const cursor = ref();
|
|
658
|
+
/** Cursor request activity, independent from first-page refreshes. */
|
|
659
|
+
const loadingMore = ref(false);
|
|
660
|
+
/** Recoverable cursor error keeps existing rows usable. */
|
|
661
|
+
const moreError = ref();
|
|
662
|
+
const entries = computed(() => [...store.page.value?.entries ?? [], ...extra.value]);
|
|
663
|
+
watch(() => store.page.value, (page) => {
|
|
664
|
+
retireMore();
|
|
665
|
+
extra.value = [];
|
|
666
|
+
cursor.value = page?.cursor;
|
|
667
|
+
moreError.value = void 0;
|
|
668
|
+
}, { immediate: true });
|
|
669
|
+
watch([
|
|
670
|
+
store.query,
|
|
671
|
+
store.filters,
|
|
672
|
+
store.sort,
|
|
673
|
+
() => store.prefs.value.community
|
|
674
|
+
], () => {
|
|
675
|
+
retireMore();
|
|
676
|
+
cursor.value = void 0;
|
|
677
|
+
moreError.value = void 0;
|
|
678
|
+
}, {
|
|
679
|
+
deep: true,
|
|
680
|
+
flush: "sync"
|
|
681
|
+
});
|
|
682
|
+
/** Retire cursor ownership before a new first page or component lifetime starts. */
|
|
683
|
+
function retireMore() {
|
|
684
|
+
activeMore?.abort();
|
|
685
|
+
activeMore = void 0;
|
|
686
|
+
loadingMore.value = false;
|
|
687
|
+
}
|
|
688
|
+
/** Reset search and facets together so empty-state recovery always widens results. */
|
|
689
|
+
function clearFilters() {
|
|
690
|
+
store.setQuery("");
|
|
691
|
+
store.setFilters({});
|
|
692
|
+
}
|
|
693
|
+
/** Append a server cursor page; page/filter changes retire this request. */
|
|
694
|
+
async function loadMore() {
|
|
695
|
+
if (!cursor.value || loadingMore.value || store.loading.value || store.error.value) return;
|
|
696
|
+
loadingMore.value = true;
|
|
697
|
+
moreError.value = void 0;
|
|
698
|
+
const controller = activeMore = new AbortController();
|
|
699
|
+
try {
|
|
700
|
+
const page = await store.client.catalog({
|
|
701
|
+
view: "all",
|
|
702
|
+
query: store.query.value,
|
|
703
|
+
filters: store.filters.value,
|
|
704
|
+
sort: store.sort.value,
|
|
705
|
+
prefs: store.prefs.value,
|
|
706
|
+
cursor: cursor.value
|
|
707
|
+
}, { signal: controller.signal });
|
|
708
|
+
if (activeMore !== controller || controller.signal.aborted) return;
|
|
709
|
+
const seen = new Set(entries.value.map((entry) => entry.id));
|
|
710
|
+
extra.value = [...extra.value, ...page.entries.filter((entry) => !seen.has(entry.id))];
|
|
711
|
+
cursor.value = page.cursor;
|
|
712
|
+
} catch (cause) {
|
|
713
|
+
if (activeMore === controller && !controller.signal.aborted) moreError.value = cause instanceof Error ? cause.message : "Could not load plugins";
|
|
714
|
+
} finally {
|
|
715
|
+
if (activeMore === controller) loadingMore.value = false;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
const offClose = store.onClose(retireMore);
|
|
719
|
+
onBeforeUnmount(() => {
|
|
720
|
+
offClose();
|
|
721
|
+
retireMore();
|
|
722
|
+
});
|
|
723
|
+
return {
|
|
724
|
+
store,
|
|
725
|
+
entries,
|
|
726
|
+
selectedCollection,
|
|
727
|
+
collections,
|
|
728
|
+
cursor,
|
|
729
|
+
loadingMore,
|
|
730
|
+
moreError,
|
|
731
|
+
selectCollection,
|
|
732
|
+
clearFilters,
|
|
733
|
+
loadMore
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
// src/app/components/marketplace/browse/MarketplaceAll.vue?vue&type=script&setup=true&lang.ts
|
|
737
|
+
var _hoisted_1$19 = { class: "htw:flex htw:min-h-0 htw:flex-1 htw:flex-col" };
|
|
738
|
+
var _hoisted_2$19 = ["aria-busy"];
|
|
739
|
+
var _hoisted_3$18 = { class: "htw:flex htw:min-w-0 htw:flex-1 htw:flex-col htw:gap-[20px] htw:overflow-auto htw:px-[32px] htw:py-[24px]" };
|
|
740
|
+
var _hoisted_4$16 = {
|
|
741
|
+
key: 0,
|
|
742
|
+
class: "htw:flex htw:items-center htw:justify-between htw:gap-[12px]"
|
|
743
|
+
};
|
|
744
|
+
var _hoisted_5$14 = { class: "htw:m-0 htw:text-[15px] htw:font-extrabold" };
|
|
745
|
+
var _hoisted_6$12 = {
|
|
746
|
+
key: 1,
|
|
747
|
+
class: "htw:shrink-0 htw:overflow-hidden htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface"
|
|
748
|
+
};
|
|
749
|
+
// src/app/components/marketplace/browse/MarketplaceAll.vue
|
|
750
|
+
var MarketplaceAll_default = /* @__PURE__ */ defineComponent({
|
|
751
|
+
__name: "MarketplaceAll",
|
|
752
|
+
setup(__props) {
|
|
753
|
+
const { store, entries, selectedCollection, collections, cursor, loadingMore, moreError, selectCollection, clearFilters, loadMore } = useCatalogQuery();
|
|
754
|
+
return (_ctx, _cache) => {
|
|
755
|
+
return openBlock(), createElementBlock("div", _hoisted_1$19, [createVNode(CatalogState_default, { view: "all" }, {
|
|
756
|
+
default: withCtx(() => [unref(store).page.value ? (openBlock(), createElementBlock("div", {
|
|
757
|
+
key: 0,
|
|
758
|
+
class: "htw:flex htw:min-h-0 htw:flex-1",
|
|
759
|
+
"aria-busy": unref(store).loading.value
|
|
760
|
+
}, [createVNode(FacetPanel_default, { page: unref(store).page.value }, null, 8, ["page"]), createElementVNode("main", _hoisted_3$18, [
|
|
761
|
+
unref(selectedCollection) ? (openBlock(), createElementBlock("div", _hoisted_4$16, [createElementVNode("h2", _hoisted_5$14, toDisplayString(unref(selectedCollection).title), 1), createVNode(unref(HstButton), {
|
|
762
|
+
color: "flat",
|
|
763
|
+
onClick: unref(clearFilters)
|
|
764
|
+
}, {
|
|
765
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode(" All plugins ", -1)])]),
|
|
766
|
+
_: 1
|
|
767
|
+
}, 8, ["onClick"])])) : createCommentVNode("", true),
|
|
768
|
+
createVNode(ResultsBar_default, {
|
|
769
|
+
total: unref(store).page.value.total,
|
|
770
|
+
frameworks: unref(store).page.value.project.frameworks,
|
|
771
|
+
"collection-title": unref(selectedCollection)?.title
|
|
772
|
+
}, null, 8, [
|
|
773
|
+
"total",
|
|
774
|
+
"frameworks",
|
|
775
|
+
"collection-title"
|
|
776
|
+
]),
|
|
777
|
+
unref(entries).length ? (openBlock(), createElementBlock("div", _hoisted_6$12, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(entries), (entry) => {
|
|
778
|
+
return openBlock(), createBlock(PluginCard_default, {
|
|
779
|
+
key: entry.id,
|
|
780
|
+
plugin: entry
|
|
781
|
+
}, null, 8, ["plugin"]);
|
|
782
|
+
}), 128))])) : (openBlock(), createBlock(NoResults_default, {
|
|
783
|
+
key: 2,
|
|
784
|
+
collections: unref(collections),
|
|
785
|
+
onClear: unref(clearFilters),
|
|
786
|
+
onCollection: unref(selectCollection)
|
|
787
|
+
}, null, 8, [
|
|
788
|
+
"collections",
|
|
789
|
+
"onClear",
|
|
790
|
+
"onCollection"
|
|
791
|
+
])),
|
|
792
|
+
unref(moreError) ? (openBlock(), createBlock(WorkbenchErrorState_default, {
|
|
793
|
+
key: 3,
|
|
794
|
+
title: "Couldn't load plugins"
|
|
795
|
+
}, {
|
|
796
|
+
actions: withCtx(() => [createVNode(unref(HstButton), {
|
|
797
|
+
color: "flat",
|
|
798
|
+
onClick: unref(loadMore)
|
|
799
|
+
}, {
|
|
800
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" Retry ", -1)])]),
|
|
801
|
+
_: 1
|
|
802
|
+
}, 8, ["onClick"])]),
|
|
803
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(moreError)), 1)]),
|
|
804
|
+
_: 1
|
|
805
|
+
})) : createCommentVNode("", true),
|
|
806
|
+
unref(cursor) ? (openBlock(), createBlock(unref(HstButton), {
|
|
807
|
+
key: 4,
|
|
808
|
+
color: "flat",
|
|
809
|
+
disabled: unref(loadingMore) || unref(store).loading.value || !!unref(store).error.value,
|
|
810
|
+
"aria-label": "Load more plugins",
|
|
811
|
+
class: "htw:self-center",
|
|
812
|
+
onClick: unref(loadMore)
|
|
813
|
+
}, {
|
|
814
|
+
default: withCtx(() => [unref(loadingMore) ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
|
|
815
|
+
key: 0,
|
|
816
|
+
size: 12
|
|
817
|
+
})) : createCommentVNode("", true), _cache[2] || (_cache[2] = createTextVNode("Load more ", -1))]),
|
|
818
|
+
_: 1
|
|
819
|
+
}, 8, ["disabled", "onClick"])) : createCommentVNode("", true)
|
|
820
|
+
])], 8, _hoisted_2$19)) : createCommentVNode("", true)]),
|
|
821
|
+
_: 1
|
|
822
|
+
})]);
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
// src/app/components/marketplace/browse/CollectionRow.vue?vue&type=script&setup=true&lang.ts
|
|
827
|
+
var _hoisted_1$18 = ["aria-label"];
|
|
828
|
+
var _hoisted_2$18 = { class: "htw:flex htw:items-baseline htw:justify-between htw:gap-[12px]" };
|
|
829
|
+
var _hoisted_3$17 = { class: "htw:m-0 htw:text-[15px] htw:font-extrabold" };
|
|
830
|
+
var _hoisted_4$15 = { class: "htw:grid htw:grid-cols-1 htw:gap-[12px] htw:md:grid-cols-2 htw:xl:grid-cols-4" };
|
|
831
|
+
var _hoisted_5$13 = ["aria-label", "onClick"];
|
|
832
|
+
var _hoisted_6$11 = { class: "htw:min-w-0" };
|
|
833
|
+
var _hoisted_7$9 = { class: "htw:block htw:text-[13px] htw:font-extrabold" };
|
|
834
|
+
var _hoisted_8$8 = { class: "htw:block htw:truncate htw:text-[12px] htw:text-muted" };
|
|
835
|
+
// src/app/components/marketplace/browse/CollectionRow.vue
|
|
836
|
+
var CollectionRow_default = /* @__PURE__ */ defineComponent({
|
|
837
|
+
__name: "CollectionRow",
|
|
838
|
+
props: { collection: {} },
|
|
839
|
+
emits: ["select"],
|
|
840
|
+
setup(__props) {
|
|
841
|
+
const store = useMarketplaceStore();
|
|
842
|
+
return (_ctx, _cache) => {
|
|
843
|
+
return openBlock(), createElementBlock("section", {
|
|
844
|
+
"aria-label": __props.collection.title,
|
|
845
|
+
class: "htw:flex htw:flex-col htw:gap-[12px]"
|
|
846
|
+
}, [createElementVNode("div", _hoisted_2$18, [createElementVNode("h2", _hoisted_3$17, toDisplayString(__props.collection.title), 1), createVNode(unref(HstButton), {
|
|
847
|
+
color: "flat",
|
|
848
|
+
tone: "accent",
|
|
849
|
+
"aria-label": `See all ${__props.collection.title}`,
|
|
850
|
+
class: "htw:h-auto htw:p-0 htw:font-bold htw:text-accent-link",
|
|
851
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select"))
|
|
852
|
+
}, {
|
|
853
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" See all ", -1)])]),
|
|
854
|
+
_: 1
|
|
855
|
+
}, 8, ["aria-label"])]), createElementVNode("div", _hoisted_4$15, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.collection.entries.slice(0, 4), (entry) => {
|
|
856
|
+
return openBlock(), createElementBlock("button", {
|
|
857
|
+
key: entry.id,
|
|
858
|
+
type: "button",
|
|
859
|
+
"aria-label": `Details for ${entry.displayName}`,
|
|
860
|
+
class: "htw:m-0 htw:flex htw:min-w-0 htw:cursor-pointer htw:items-center htw:gap-[10px] htw:rounded-[14px] htw:border-0 htw:bg-surface htw:p-[14px] htw:text-left htw:text-inherit htw:inset-ring htw:inset-ring-border htw:[font:inherit] htw:hover:bg-chip htw:focus-visible:outline-2 htw:focus-visible:outline-accent",
|
|
861
|
+
onClick: ($event) => unref(store).showPlugin(entry.id)
|
|
862
|
+
}, [createVNode(PluginTile_default, {
|
|
863
|
+
plugin: entry,
|
|
864
|
+
size: 34,
|
|
865
|
+
class: "htw:text-[12px]"
|
|
866
|
+
}, null, 8, ["plugin"]), createElementVNode("span", _hoisted_6$11, [createElementVNode("span", _hoisted_7$9, toDisplayString(entry.displayName), 1), createElementVNode("span", _hoisted_8$8, toDisplayString(entry.official ? "Official" : entry.publisher) + toDisplayString(entry.installed ? " · installed" : ""), 1)])], 8, _hoisted_5$13);
|
|
867
|
+
}), 128))])], 8, _hoisted_1$18);
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
// src/app/components/marketplace/browse/DiscoverHero.vue?vue&type=script&setup=true&lang.ts
|
|
872
|
+
var _hoisted_1$17 = ["aria-label"];
|
|
873
|
+
var _hoisted_2$17 = { class: "htw:flex htw:items-center htw:gap-[12px]" };
|
|
874
|
+
var _hoisted_3$16 = { class: "htw:min-w-0" };
|
|
875
|
+
var _hoisted_4$14 = { class: "htw:m-0 htw:text-[18px] htw:font-extrabold" };
|
|
876
|
+
var _hoisted_5$12 = { class: "htw:text-[13px] htw:text-muted" };
|
|
877
|
+
var _hoisted_6$10 = { class: "htw:m-0 htw:text-[14px] htw:text-body" };
|
|
878
|
+
var _hoisted_7$8 = { class: "htw:mt-auto htw:flex htw:items-center htw:gap-[8px]" };
|
|
879
|
+
// src/app/components/marketplace/browse/DiscoverHero.vue
|
|
880
|
+
var DiscoverHero_default = /* @__PURE__ */ defineComponent({
|
|
881
|
+
__name: "DiscoverHero",
|
|
882
|
+
props: { plugin: {} },
|
|
883
|
+
setup(__props) {
|
|
884
|
+
const store = useMarketplaceStore();
|
|
885
|
+
return (_ctx, _cache) => {
|
|
886
|
+
return openBlock(), createElementBlock("section", {
|
|
887
|
+
"aria-label": `Recommended: ${__props.plugin.displayName}`,
|
|
888
|
+
class: "htw:flex htw:min-w-0 htw:flex-col htw:gap-[12px] htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:p-[22px]"
|
|
889
|
+
}, [
|
|
890
|
+
createElementVNode("div", _hoisted_2$17, [createVNode(PluginTile_default, {
|
|
891
|
+
plugin: __props.plugin,
|
|
892
|
+
size: 48,
|
|
893
|
+
class: "htw:text-[15px]"
|
|
894
|
+
}, null, 8, ["plugin"]), createElementVNode("div", _hoisted_3$16, [createElementVNode("h3", _hoisted_4$14, toDisplayString(__props.plugin.displayName), 1), createElementVNode("div", _hoisted_5$12, [__props.plugin.official ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(" Official · ")], 64)) : createCommentVNode("", true), createTextVNode(toDisplayString(__props.plugin.publisher), 1)])])]),
|
|
895
|
+
createElementVNode("p", _hoisted_6$10, toDisplayString(__props.plugin.summary), 1),
|
|
896
|
+
createVNode(BaseChip_default, {
|
|
897
|
+
tone: "accent",
|
|
898
|
+
class: "htw:self-start"
|
|
899
|
+
}, {
|
|
900
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.plugin.reason), 1)]),
|
|
901
|
+
_: 1
|
|
902
|
+
}),
|
|
903
|
+
createElementVNode("div", _hoisted_7$8, [createVNode(PluginInstallAction_default, {
|
|
904
|
+
plugin: __props.plugin,
|
|
905
|
+
primary: ""
|
|
906
|
+
}, null, 8, ["plugin"]), createVNode(unref(HstButton), {
|
|
907
|
+
color: "flat",
|
|
908
|
+
"aria-label": `Details for ${__props.plugin.displayName}`,
|
|
909
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(store).showPlugin(__props.plugin.id))
|
|
910
|
+
}, {
|
|
911
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" Details ", -1)])]),
|
|
912
|
+
_: 1
|
|
913
|
+
}, 8, ["aria-label"])])
|
|
914
|
+
], 8, _hoisted_1$17);
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
// src/app/components/marketplace/browse/MarketplaceDiscover.vue?vue&type=script&setup=true&lang.ts
|
|
919
|
+
var _hoisted_1$16 = { class: "htw:min-h-0 htw:flex-1 htw:overflow-auto htw:px-[32px] htw:py-[24px]" };
|
|
920
|
+
var _hoisted_2$16 = { class: "htw:mx-auto htw:flex htw:max-w-[1100px] htw:flex-col htw:gap-[26px]" };
|
|
921
|
+
var _hoisted_3$15 = {
|
|
922
|
+
"aria-label": "For this project",
|
|
923
|
+
class: "htw:flex htw:flex-col htw:gap-[12px]"
|
|
924
|
+
};
|
|
925
|
+
var _hoisted_4$13 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-[8px]" };
|
|
926
|
+
var _hoisted_5$11 = {
|
|
927
|
+
key: 1,
|
|
928
|
+
class: "htw:flex htw:flex-col htw:gap-[14px]"
|
|
929
|
+
};
|
|
930
|
+
var _hoisted_6$9 = {
|
|
931
|
+
key: 1,
|
|
932
|
+
"aria-label": "Official plugins",
|
|
933
|
+
class: "htw:overflow-hidden htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface"
|
|
934
|
+
};
|
|
935
|
+
// src/app/components/marketplace/browse/MarketplaceDiscover.vue
|
|
936
|
+
var MarketplaceDiscover_default = /* @__PURE__ */ defineComponent({
|
|
937
|
+
__name: "MarketplaceDiscover",
|
|
938
|
+
setup(__props) {
|
|
939
|
+
const store = useMarketplaceStore();
|
|
940
|
+
const { selectCollection } = useCatalogCollections(store);
|
|
941
|
+
/** Recommendations can be empty even when every catalog plugin is installed. */
|
|
942
|
+
const hasDiscovery = computed(() => {
|
|
943
|
+
const discovery = store.page.value?.discover;
|
|
944
|
+
return !!(discovery?.hero || discovery?.picks.length || discovery?.collections.length);
|
|
945
|
+
});
|
|
946
|
+
return (_ctx, _cache) => {
|
|
947
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [createElementVNode("div", _hoisted_2$16, [createVNode(CatalogState_default, { view: "discover" }, {
|
|
948
|
+
default: withCtx(() => [unref(store).page.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
949
|
+
createElementVNode("section", _hoisted_3$15, [createElementVNode("div", _hoisted_4$13, [_cache[0] || (_cache[0] = createElementVNode("h2", { class: "htw:m-0 htw:mr-[6px] htw:text-[15px] htw:font-extrabold" }, " For this project ", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList([.../* @__PURE__ */ new Set([...unref(store).page.value.project.frameworks, ...unref(store).page.value.project.signals])], (signal) => {
|
|
950
|
+
return openBlock(), createBlock(BaseChip_default, {
|
|
951
|
+
key: signal,
|
|
952
|
+
tone: "outline"
|
|
953
|
+
}, {
|
|
954
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(frameworkLabel)(signal)), 1)]),
|
|
955
|
+
_: 2
|
|
956
|
+
}, 1024);
|
|
957
|
+
}), 128))]), unref(store).page.value.discover?.hero || unref(store).page.value.discover?.picks.length ? (openBlock(), createElementBlock("div", {
|
|
958
|
+
key: 0,
|
|
959
|
+
class: normalizeClass(["htw:grid htw:grid-cols-1 htw:gap-[14px]", unref(store).page.value.discover?.hero && unref(store).page.value.discover?.picks.length ? "htw:xl:grid-cols-[minmax(0,1.6fr)_minmax(0,1fr)]" : ""])
|
|
960
|
+
}, [unref(store).page.value.discover?.hero ? (openBlock(), createBlock(DiscoverHero_default, {
|
|
961
|
+
key: 0,
|
|
962
|
+
plugin: unref(store).page.value.discover.hero
|
|
963
|
+
}, null, 8, ["plugin"])) : createCommentVNode("", true), unref(store).page.value.discover?.picks.length ? (openBlock(), createElementBlock("div", _hoisted_5$11, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).page.value.discover.picks, (entry) => {
|
|
964
|
+
return openBlock(), createBlock(PluginCard_default, {
|
|
965
|
+
key: entry.id,
|
|
966
|
+
plugin: entry,
|
|
967
|
+
layout: "pick"
|
|
968
|
+
}, null, 8, ["plugin"]);
|
|
969
|
+
}), 128))])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)]),
|
|
970
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).page.value.discover?.collections ?? [], (collection) => {
|
|
971
|
+
return openBlock(), createBlock(CollectionRow_default, {
|
|
972
|
+
key: collection.id,
|
|
973
|
+
collection,
|
|
974
|
+
onSelect: ($event) => unref(selectCollection)(collection)
|
|
975
|
+
}, null, 8, ["collection", "onSelect"]);
|
|
976
|
+
}), 128)),
|
|
977
|
+
!hasDiscovery.value && (unref(store).page.value.discover || !unref(store).page.value.entries.length) ? (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
978
|
+
key: 0,
|
|
979
|
+
icon: "puzzle",
|
|
980
|
+
title: "No recommendations",
|
|
981
|
+
tone: "neutral"
|
|
982
|
+
})) : createCommentVNode("", true),
|
|
983
|
+
!unref(store).page.value.discover && unref(store).page.value.entries.length ? (openBlock(), createElementBlock("section", _hoisted_6$9, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).page.value.entries, (entry) => {
|
|
984
|
+
return openBlock(), createBlock(PluginCard_default, {
|
|
985
|
+
key: entry.id,
|
|
986
|
+
plugin: entry
|
|
987
|
+
}, null, 8, ["plugin"]);
|
|
988
|
+
}), 128))])) : createCommentVNode("", true)
|
|
989
|
+
], 64)) : createCommentVNode("", true)]),
|
|
990
|
+
_: 1
|
|
991
|
+
})])]);
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
// src/app/components/marketplace/detail/ChangelogTab.vue?vue&type=script&setup=true&lang.ts
|
|
996
|
+
var _hoisted_1$15 = { class: "htw:space-y-[18px] htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:p-[18px] htw:text-body" };
|
|
997
|
+
var _hoisted_2$15 = {
|
|
998
|
+
key: 0,
|
|
999
|
+
class: "htw:m-0 htw:font-mono htw:text-[14px] htw:font-extrabold htw:text-text"
|
|
1000
|
+
};
|
|
1001
|
+
var _hoisted_3$14 = ["href"];
|
|
1002
|
+
// src/app/components/marketplace/detail/ChangelogTab.vue
|
|
1003
|
+
var ChangelogTab_default = /* @__PURE__ */ defineComponent({
|
|
1004
|
+
__name: "ChangelogTab",
|
|
1005
|
+
props: { plugin: {} },
|
|
1006
|
+
setup(__props) {
|
|
1007
|
+
const props = __props;
|
|
1008
|
+
/** Resolve supported repository release pages from package-specific URLs. */
|
|
1009
|
+
const releases = computed(() => {
|
|
1010
|
+
const repo = props.plugin.repoUrl;
|
|
1011
|
+
if (!repo) return void 0;
|
|
1012
|
+
const url = new URL(repo);
|
|
1013
|
+
const path = url.pathname.replace(/\/$/, "").replace(/\.git$/, "");
|
|
1014
|
+
if (url.hostname === "github.com") return `${url.origin}/${path.split("/").filter(Boolean).slice(0, 2).join("/")}/releases`;
|
|
1015
|
+
if (url.hostname === "gitlab.com") return `${url.origin}${path.split("/-/")[0]}/-/releases`;
|
|
1016
|
+
});
|
|
1017
|
+
return (_ctx, _cache) => {
|
|
1018
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
1019
|
+
__props.plugin.releaseNotes?.length ? (openBlock(), createElementBlock("h2", _hoisted_2$15, toDisplayString(__props.plugin.latest), 1)) : createCommentVNode("", true),
|
|
1020
|
+
createVNode(ReleaseNotes_default, { notes: __props.plugin.releaseNotes ?? [] }, null, 8, ["notes"]),
|
|
1021
|
+
releases.value ? (openBlock(), createElementBlock("a", {
|
|
1022
|
+
key: 1,
|
|
1023
|
+
href: releases.value,
|
|
1024
|
+
target: "_blank",
|
|
1025
|
+
rel: "noopener noreferrer",
|
|
1026
|
+
"aria-label": "Repository releases",
|
|
1027
|
+
class: "htw:inline-block htw:font-bold htw:text-accent-link htw:no-underline htw:hover:text-accent-text htw:focus-visible:outline-2 htw:focus-visible:outline-accent"
|
|
1028
|
+
}, "Repository releases", 8, _hoisted_3$14)) : createCommentVNode("", true)
|
|
1029
|
+
]);
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
});
|
|
1033
|
+
// src/app/components/marketplace/detail/DetailHeader.vue?vue&type=script&setup=true&lang.ts
|
|
1034
|
+
var _hoisted_1$14 = {
|
|
1035
|
+
"aria-label": "Plugin breadcrumb",
|
|
1036
|
+
class: "htw:mb-[18px] htw:flex htw:items-center htw:gap-[6px] htw:font-semibold htw:text-muted"
|
|
1037
|
+
};
|
|
1038
|
+
var _hoisted_2$14 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-[18px]" };
|
|
1039
|
+
var _hoisted_3$13 = { class: "htw:min-w-[260px] htw:flex-1" };
|
|
1040
|
+
var _hoisted_4$12 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-[10px]" };
|
|
1041
|
+
var _hoisted_5$10 = { class: "htw:m-0 htw:text-[28px] htw:font-extrabold htw:tracking-[-0.02em] htw:text-text" };
|
|
1042
|
+
var _hoisted_6$8 = { class: "htw:m-0 htw:mt-[2px] htw:text-muted" };
|
|
1043
|
+
var _hoisted_7$7 = { class: "htw:font-mono" };
|
|
1044
|
+
var _hoisted_8$7 = {
|
|
1045
|
+
key: 0,
|
|
1046
|
+
class: "htw:m-0 htw:mt-2 htw:text-muted"
|
|
1047
|
+
};
|
|
1048
|
+
var _hoisted_9$4 = ["href"];
|
|
1049
|
+
var _hoisted_10$2 = {
|
|
1050
|
+
key: 0,
|
|
1051
|
+
role: "status",
|
|
1052
|
+
class: "htw:m-0 htw:mt-[18px] htw:rounded-lg htw:bg-warn/10 htw:p-3 htw:text-warn"
|
|
1053
|
+
};
|
|
1054
|
+
// src/app/components/marketplace/detail/DetailHeader.vue
|
|
1055
|
+
var DetailHeader_default = /* @__PURE__ */ defineComponent({
|
|
1056
|
+
__name: "DetailHeader",
|
|
1057
|
+
props: { plugin: {} },
|
|
1058
|
+
setup(__props) {
|
|
1059
|
+
const props = __props;
|
|
1060
|
+
const store = useMarketplaceStore();
|
|
1061
|
+
/** Prefer the compatible installed update over the latest catalog release. */
|
|
1062
|
+
const target = computed(() => props.plugin.installed?.update ?? props.plugin.installVersion ?? props.plugin.latest);
|
|
1063
|
+
/** Main action reflects installation state and its exact target version. */
|
|
1064
|
+
const label = computed(() => props.plugin.installed ? props.plugin.installed.update ? `Update to ${target.value}` : `Installed ${props.plugin.installed.version}` : "Install");
|
|
1065
|
+
/** Installed packages without a suggested update retain their existing management actions. */
|
|
1066
|
+
const installedWithoutUpdate = computed(() => Boolean(props.plugin.installed && !props.plugin.installed.update));
|
|
1067
|
+
const disabled = computed(() => installedWithoutUpdate.value || Boolean(versionReason(target.value)));
|
|
1068
|
+
const menuDisabled = computed(() => installedWithoutUpdate.value || disabled.value && props.plugin.versions.every((version) => reason(version)));
|
|
1069
|
+
/** Show the server's version-specific incompatibility in disabled menu items. */
|
|
1070
|
+
function reason(version) {
|
|
1071
|
+
return version.compatible ? void 0 : incompatibleReason(version.reason);
|
|
1072
|
+
}
|
|
1073
|
+
/** Resolve a suggested target independently of the listing's compatibility verdict. */
|
|
1074
|
+
function versionReason(version) {
|
|
1075
|
+
if (version === props.plugin.latest && !props.plugin.compatible.ok) return incompatibleReason(props.plugin.compatible.reason);
|
|
1076
|
+
const row = props.plugin.versions.find((item) => item.version === version);
|
|
1077
|
+
return row ? reason(row) : void 0;
|
|
1078
|
+
}
|
|
1079
|
+
/** Start a wizard only; project changes still require the later review action. */
|
|
1080
|
+
function install(version = target.value) {
|
|
1081
|
+
if (installedWithoutUpdate.value || versionReason(version)) return;
|
|
1082
|
+
store.startInstall({
|
|
1083
|
+
id: props.plugin.id,
|
|
1084
|
+
kind: props.plugin.installed ? "update" : "install",
|
|
1085
|
+
version,
|
|
1086
|
+
prefs: {
|
|
1087
|
+
...store.prefs.value,
|
|
1088
|
+
skippedVersions: { ...store.prefs.value.skippedVersions }
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
/** Return to this category without losing the user's query or other facets. */
|
|
1093
|
+
function browseCategory() {
|
|
1094
|
+
store.setFilters({
|
|
1095
|
+
...store.filters.value,
|
|
1096
|
+
category: props.plugin.category
|
|
1097
|
+
});
|
|
1098
|
+
store.setView("all");
|
|
1099
|
+
}
|
|
1100
|
+
return (_ctx, _cache) => {
|
|
1101
|
+
return openBlock(), createElementBlock("header", null, [
|
|
1102
|
+
createElementVNode("nav", _hoisted_1$14, [
|
|
1103
|
+
createElementVNode("button", {
|
|
1104
|
+
type: "button",
|
|
1105
|
+
class: "htw:m-0 htw:cursor-pointer htw:border-0 htw:bg-transparent htw:p-0 htw:text-inherit htw:[font:inherit] htw:hover:text-accent-text htw:focus-visible:outline-2 htw:focus-visible:outline-accent",
|
|
1106
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(store).setView("all"))
|
|
1107
|
+
}, " All plugins "),
|
|
1108
|
+
_cache[2] || (_cache[2] = createElementVNode("span", { "aria-hidden": "true" }, " / ", -1)),
|
|
1109
|
+
createElementVNode("button", {
|
|
1110
|
+
type: "button",
|
|
1111
|
+
class: "htw:m-0 htw:cursor-pointer htw:border-0 htw:bg-transparent htw:p-0 htw:text-inherit htw:[font:inherit] htw:hover:text-accent-text htw:focus-visible:outline-2 htw:focus-visible:outline-accent",
|
|
1112
|
+
onClick: browseCategory
|
|
1113
|
+
}, toDisplayString(unref(categories)[__props.plugin.category]), 1)
|
|
1114
|
+
]),
|
|
1115
|
+
createElementVNode("div", _hoisted_2$14, [
|
|
1116
|
+
createVNode(PluginTile_default, {
|
|
1117
|
+
plugin: __props.plugin,
|
|
1118
|
+
size: 64,
|
|
1119
|
+
class: "htw:text-[20px]"
|
|
1120
|
+
}, null, 8, ["plugin"]),
|
|
1121
|
+
createElementVNode("div", _hoisted_3$13, [
|
|
1122
|
+
createElementVNode("div", _hoisted_4$12, [createElementVNode("h1", _hoisted_5$10, toDisplayString(__props.plugin.displayName), 1), __props.plugin.official ? (openBlock(), createBlock(BaseChip_default, {
|
|
1123
|
+
key: 0,
|
|
1124
|
+
tone: "accent"
|
|
1125
|
+
}, {
|
|
1126
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" Official ", -1)])]),
|
|
1127
|
+
_: 1
|
|
1128
|
+
})) : createCommentVNode("", true)]),
|
|
1129
|
+
createElementVNode("p", _hoisted_6$8, [createElementVNode("code", _hoisted_7$7, toDisplayString(__props.plugin.id), 1), createTextVNode(" · by " + toDisplayString(__props.plugin.publisher), 1)]),
|
|
1130
|
+
__props.plugin.installed?.update ? (openBlock(), createElementBlock("p", _hoisted_8$7, " Installed " + toDisplayString(__props.plugin.installed.version), 1)) : createCommentVNode("", true)
|
|
1131
|
+
]),
|
|
1132
|
+
createVNode(WorkbenchPanelAction_default, {
|
|
1133
|
+
icon: "add-alt",
|
|
1134
|
+
label: label.value,
|
|
1135
|
+
disabled: disabled.value,
|
|
1136
|
+
"menu-disabled": menuDisabled.value,
|
|
1137
|
+
"menu-label": "Choose version",
|
|
1138
|
+
"menu-width": 280,
|
|
1139
|
+
onClick: _cache[1] || (_cache[1] = ($event) => install())
|
|
1140
|
+
}, createSlots({ _: 2 }, [__props.plugin.versions.length ? {
|
|
1141
|
+
name: "menu",
|
|
1142
|
+
fn: withCtx(({ close }) => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plugin.versions, (version) => {
|
|
1143
|
+
return openBlock(), createBlock(MenuItem_default, {
|
|
1144
|
+
key: version.version,
|
|
1145
|
+
label: version.version,
|
|
1146
|
+
disabled: reason(version),
|
|
1147
|
+
onClick: ($event) => {
|
|
1148
|
+
install(version.version);
|
|
1149
|
+
close();
|
|
1150
|
+
}
|
|
1151
|
+
}, null, 8, [
|
|
1152
|
+
"label",
|
|
1153
|
+
"disabled",
|
|
1154
|
+
"onClick"
|
|
1155
|
+
]);
|
|
1156
|
+
}), 128))]),
|
|
1157
|
+
key: "0"
|
|
1158
|
+
} : void 0]), 1032, [
|
|
1159
|
+
"label",
|
|
1160
|
+
"disabled",
|
|
1161
|
+
"menu-disabled"
|
|
1162
|
+
]),
|
|
1163
|
+
__props.plugin.docsUrl ? (openBlock(), createElementBlock("a", {
|
|
1164
|
+
key: 0,
|
|
1165
|
+
href: __props.plugin.docsUrl,
|
|
1166
|
+
"aria-label": "Documentation",
|
|
1167
|
+
target: "_blank",
|
|
1168
|
+
rel: "noopener noreferrer",
|
|
1169
|
+
class: "htw:box-border htw:inline-flex htw:size-[32px] htw:shrink-0 htw:items-center htw:justify-center htw:rounded-[8px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:text-text htw:no-underline htw:hover:text-accent-text htw:focus-visible:outline-2 htw:focus-visible:outline-accent"
|
|
1170
|
+
}, [createVNode(unref(BuiltinIcon), {
|
|
1171
|
+
icon: "launch",
|
|
1172
|
+
size: 16
|
|
1173
|
+
})], 8, _hoisted_9$4)) : createCommentVNode("", true)
|
|
1174
|
+
]),
|
|
1175
|
+
!__props.plugin.compatible.ok ? (openBlock(), createElementBlock("p", _hoisted_10$2, toDisplayString(unref(incompatibleReason)(__props.plugin.compatible.reason)), 1)) : createCommentVNode("", true)
|
|
1176
|
+
]);
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
// src/app/components/marketplace/detail/MetaList.vue?vue&type=script&setup=true&lang.ts
|
|
1181
|
+
var _hoisted_1$13 = {
|
|
1182
|
+
"aria-label": "Plugin metadata",
|
|
1183
|
+
class: "htw:box-border htw:flex htw:min-w-0 htw:flex-[1_1_260px] htw:flex-col htw:gap-[18px] htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:p-[18px]"
|
|
1184
|
+
};
|
|
1185
|
+
var _hoisted_2$13 = { class: "htw:m-0 htw:grid htw:grid-cols-[110px_minmax(0,1fr)] htw:gap-x-[12px] htw:gap-y-[10px]" };
|
|
1186
|
+
var _hoisted_3$12 = { class: "htw:m-0 htw:overflow-x-auto htw:font-mono htw:text-[12px] htw:font-semibold htw:whitespace-nowrap" };
|
|
1187
|
+
var _hoisted_4$11 = { class: "htw:m-0 htw:font-semibold" };
|
|
1188
|
+
var _hoisted_5$9 = ["datetime"];
|
|
1189
|
+
var _hoisted_6$7 = { class: "htw:m-0 htw:font-semibold" };
|
|
1190
|
+
var _hoisted_7$6 = { class: "htw:m-0 htw:space-y-1 htw:font-mono htw:text-[12px] htw:font-semibold htw:wrap-anywhere" };
|
|
1191
|
+
var _hoisted_8$6 = { key: 0 };
|
|
1192
|
+
var _hoisted_9$3 = { class: "htw:m-0 htw:flex htw:flex-wrap htw:gap-[4px] htw:font-semibold" };
|
|
1193
|
+
var _hoisted_10$1 = { key: 0 };
|
|
1194
|
+
var _hoisted_11$1 = {
|
|
1195
|
+
"aria-label": "Declared access",
|
|
1196
|
+
class: "htw:border-0 htw:border-t htw:border-solid htw:border-border htw:pt-[16px]"
|
|
1197
|
+
};
|
|
1198
|
+
var _hoisted_12 = {
|
|
1199
|
+
key: 0,
|
|
1200
|
+
class: "htw:m-0 htw:flex htw:list-none htw:flex-col htw:gap-[6px] htw:p-0 htw:text-body"
|
|
1201
|
+
};
|
|
1202
|
+
var _hoisted_13 = {
|
|
1203
|
+
key: 1,
|
|
1204
|
+
class: "htw:text-body"
|
|
1205
|
+
};
|
|
1206
|
+
var _hoisted_14 = ["href"];
|
|
1207
|
+
var _hoisted_15 = {
|
|
1208
|
+
key: 1,
|
|
1209
|
+
class: "htw:m-0 htw:rounded-lg htw:bg-chip htw:p-3 htw:text-[12px] htw:text-body"
|
|
1210
|
+
};
|
|
1211
|
+
// src/app/components/marketplace/detail/MetaList.vue
|
|
1212
|
+
var MetaList_default = /* @__PURE__ */ defineComponent({
|
|
1213
|
+
__name: "MetaList",
|
|
1214
|
+
props: { plugin: {} },
|
|
1215
|
+
setup(__props) {
|
|
1216
|
+
const store = useMarketplaceStore();
|
|
1217
|
+
/** Human-readable labels for every locked access capability. */
|
|
1218
|
+
const accessLabels = {
|
|
1219
|
+
"story-frames": "Story frames",
|
|
1220
|
+
"story-dom": "Story DOM",
|
|
1221
|
+
"network": "Network",
|
|
1222
|
+
"filesystem": "Filesystem",
|
|
1223
|
+
"child-process": "Child processes"
|
|
1224
|
+
};
|
|
1225
|
+
return (_ctx, _cache) => {
|
|
1226
|
+
return openBlock(), createElementBlock("aside", _hoisted_1$13, [
|
|
1227
|
+
createElementVNode("dl", _hoisted_2$13, [
|
|
1228
|
+
_cache[1] || (_cache[1] = createElementVNode("dt", { class: "htw:text-muted" }, " Version ", -1)),
|
|
1229
|
+
createElementVNode("dd", _hoisted_3$12, toDisplayString(__props.plugin.latest), 1),
|
|
1230
|
+
__props.plugin.updatedAt ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[0] || (_cache[0] = createElementVNode("dt", { class: "htw:text-muted" }, " Updated ", -1)), createElementVNode("dd", _hoisted_4$11, [createElementVNode("time", { datetime: __props.plugin.updatedAt }, toDisplayString(__props.plugin.updatedAt.slice(0, 10)), 9, _hoisted_5$9)])], 64)) : createCommentVNode("", true),
|
|
1231
|
+
_cache[2] || (_cache[2] = createElementVNode("dt", { class: "htw:text-muted" }, " License ", -1)),
|
|
1232
|
+
createElementVNode("dd", _hoisted_6$7, toDisplayString(__props.plugin.license ?? "—"), 1),
|
|
1233
|
+
_cache[3] || (_cache[3] = createElementVNode("dt", { class: "htw:text-muted" }, " Requires ", -1)),
|
|
1234
|
+
createElementVNode("dd", _hoisted_7$6, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plugin.requires, (range, name) => {
|
|
1235
|
+
return openBlock(), createElementBlock("div", { key: name }, toDisplayString(name) + " " + toDisplayString(range), 1);
|
|
1236
|
+
}), 128)), !Object.keys(__props.plugin.requires).length ? (openBlock(), createElementBlock("span", _hoisted_8$6, "—")) : createCommentVNode("", true)]),
|
|
1237
|
+
_cache[4] || (_cache[4] = createElementVNode("dt", { class: "htw:text-muted" }, " Frameworks ", -1)),
|
|
1238
|
+
createElementVNode("dd", _hoisted_9$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plugin.frameworks, (framework) => {
|
|
1239
|
+
return openBlock(), createBlock(BaseChip_default, {
|
|
1240
|
+
key: framework,
|
|
1241
|
+
tone: unref(store).page.value?.project.frameworks.includes(framework) ? "accent" : "neutral"
|
|
1242
|
+
}, {
|
|
1243
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(frameworkLabel)(framework)), 1)]),
|
|
1244
|
+
_: 2
|
|
1245
|
+
}, 1032, ["tone"]);
|
|
1246
|
+
}), 128)), !__props.plugin.frameworks.length ? (openBlock(), createElementBlock("span", _hoisted_10$1, "Any")) : createCommentVNode("", true)])
|
|
1247
|
+
]),
|
|
1248
|
+
createElementVNode("section", _hoisted_11$1, [
|
|
1249
|
+
_cache[5] || (_cache[5] = createElementVNode("h3", { class: "htw:m-0 htw:mb-[8px] htw:text-[12px] htw:font-extrabold htw:text-text" }, " Access ", -1)),
|
|
1250
|
+
_cache[6] || (_cache[6] = createElementVNode("p", { class: "htw:m-0 htw:mb-[8px] htw:text-[12px] htw:text-muted" }, " Declared by publisher ", -1)),
|
|
1251
|
+
__props.plugin.access.length ? (openBlock(), createElementBlock("ul", _hoisted_12, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plugin.access, (access) => {
|
|
1252
|
+
return openBlock(), createElementBlock("li", { key: access }, toDisplayString(accessLabels[access]), 1);
|
|
1253
|
+
}), 128))])) : (openBlock(), createElementBlock("span", _hoisted_13, "None declared"))
|
|
1254
|
+
]),
|
|
1255
|
+
__props.plugin.repoUrl ? (openBlock(), createElementBlock("a", {
|
|
1256
|
+
key: 0,
|
|
1257
|
+
href: __props.plugin.repoUrl,
|
|
1258
|
+
target: "_blank",
|
|
1259
|
+
rel: "noopener noreferrer",
|
|
1260
|
+
class: "htw:font-bold htw:text-accent-link htw:no-underline htw:hover:text-accent-text htw:focus-visible:outline-2 htw:focus-visible:outline-accent"
|
|
1261
|
+
}, "Repository", 8, _hoisted_14)) : createCommentVNode("", true),
|
|
1262
|
+
__props.plugin.provenance ? (openBlock(), createElementBlock("p", _hoisted_15, " Published with npm provenance ")) : createCommentVNode("", true)
|
|
1263
|
+
]);
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
});
|
|
1267
|
+
// src/app/components/marketplace/detail/OptionsTab.vue?vue&type=script&setup=true&lang.ts
|
|
1268
|
+
var _hoisted_1$12 = {
|
|
1269
|
+
key: 0,
|
|
1270
|
+
class: "htw:overflow-x-auto htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:p-[18px]"
|
|
1271
|
+
};
|
|
1272
|
+
var _hoisted_2$12 = { class: "htw:w-full htw:border-collapse htw:text-left htw:text-[13px] htw:text-body" };
|
|
1273
|
+
var _hoisted_3$11 = {
|
|
1274
|
+
scope: "row",
|
|
1275
|
+
class: "htw:p-[10px] htw:align-top htw:font-bold htw:text-text"
|
|
1276
|
+
};
|
|
1277
|
+
var _hoisted_4$10 = { class: "htw:mt-[4px] htw:block htw:font-mono htw:text-[12px] htw:font-normal htw:text-muted" };
|
|
1278
|
+
var _hoisted_5$8 = { class: "htw:p-[10px] htw:align-top" };
|
|
1279
|
+
var _hoisted_6$6 = { class: "htw:font-mono htw:text-[12px]" };
|
|
1280
|
+
var _hoisted_7$5 = { class: "htw:p-[10px] htw:align-top" };
|
|
1281
|
+
var _hoisted_8$5 = { class: "htw:font-mono htw:text-[12px]" };
|
|
1282
|
+
var _hoisted_9$2 = { class: "htw:p-[10px] htw:align-top htw:text-muted" };
|
|
1283
|
+
// src/app/components/marketplace/detail/OptionsTab.vue
|
|
1284
|
+
var OptionsTab_default = /* @__PURE__ */ defineComponent({
|
|
1285
|
+
__name: "OptionsTab",
|
|
1286
|
+
props: { options: {} },
|
|
1287
|
+
setup(__props) {
|
|
1288
|
+
return (_ctx, _cache) => {
|
|
1289
|
+
return __props.options.length ? (openBlock(), createElementBlock("div", _hoisted_1$12, [createElementVNode("table", _hoisted_2$12, [
|
|
1290
|
+
_cache[0] || (_cache[0] = createElementVNode("caption", { class: "htw:sr-only" }, " Plugin options ", -1)),
|
|
1291
|
+
_cache[1] || (_cache[1] = createElementVNode("thead", null, [createElementVNode("tr", { class: "htw:border-0 htw:border-b htw:border-solid htw:border-border htw:text-text" }, [
|
|
1292
|
+
createElementVNode("th", {
|
|
1293
|
+
scope: "col",
|
|
1294
|
+
class: "htw:px-[10px] htw:pb-[10px] htw:font-extrabold"
|
|
1295
|
+
}, " Option "),
|
|
1296
|
+
createElementVNode("th", {
|
|
1297
|
+
scope: "col",
|
|
1298
|
+
class: "htw:px-[10px] htw:pb-[10px] htw:font-extrabold"
|
|
1299
|
+
}, " Type "),
|
|
1300
|
+
createElementVNode("th", {
|
|
1301
|
+
scope: "col",
|
|
1302
|
+
class: "htw:px-[10px] htw:pb-[10px] htw:font-extrabold"
|
|
1303
|
+
}, " Default "),
|
|
1304
|
+
createElementVNode("th", {
|
|
1305
|
+
scope: "col",
|
|
1306
|
+
class: "htw:px-[10px] htw:pb-[10px] htw:font-extrabold"
|
|
1307
|
+
}, " Description ")
|
|
1308
|
+
])], -1)),
|
|
1309
|
+
createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
1310
|
+
return openBlock(), createElementBlock("tr", { key: option.key }, [
|
|
1311
|
+
createElementVNode("th", _hoisted_3$11, [createTextVNode(toDisplayString(option.label), 1), createElementVNode("code", _hoisted_4$10, toDisplayString(option.key), 1)]),
|
|
1312
|
+
createElementVNode("td", _hoisted_5$8, [createElementVNode("code", _hoisted_6$6, toDisplayString(option.type), 1)]),
|
|
1313
|
+
createElementVNode("td", _hoisted_7$5, [createElementVNode("code", _hoisted_8$5, toDisplayString(option.default === void 0 ? "—" : JSON.stringify(option.default)), 1)]),
|
|
1314
|
+
createElementVNode("td", _hoisted_9$2, toDisplayString(option.description ?? "—"), 1)
|
|
1315
|
+
]);
|
|
1316
|
+
}), 128))])
|
|
1317
|
+
])])) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
1318
|
+
key: 1,
|
|
1319
|
+
icon: "settings",
|
|
1320
|
+
title: "No options",
|
|
1321
|
+
tone: "neutral"
|
|
1322
|
+
}));
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
// src/app/components/marketplace/detail/OverviewTab.vue?vue&type=script&setup=true&lang.ts
|
|
1327
|
+
var _hoisted_1$11 = { class: "htw:flex htw:flex-col htw:gap-[20px]" };
|
|
1328
|
+
var _hoisted_2$11 = { class: "htw:m-0 htw:max-w-[640px] htw:text-[14px] htw:text-body" };
|
|
1329
|
+
var _hoisted_3$10 = { "aria-label": "Adds to your workbench" };
|
|
1330
|
+
var _hoisted_4$9 = {
|
|
1331
|
+
key: 0,
|
|
1332
|
+
class: "htw:m-0 htw:grid htw:list-none htw:grid-cols-1 htw:gap-[10px] htw:p-0 htw:sm:grid-cols-3"
|
|
1333
|
+
};
|
|
1334
|
+
var _hoisted_5$7 = { class: "htw:m-0 htw:text-[13px] htw:font-extrabold htw:text-text" };
|
|
1335
|
+
var _hoisted_6$5 = { class: "htw:text-muted" };
|
|
1336
|
+
// src/app/components/marketplace/detail/OverviewTab.vue
|
|
1337
|
+
var OverviewTab_default = /* @__PURE__ */ defineComponent({
|
|
1338
|
+
__name: "OverviewTab",
|
|
1339
|
+
props: { plugin: {} },
|
|
1340
|
+
setup(__props) {
|
|
1341
|
+
return (_ctx, _cache) => {
|
|
1342
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [createElementVNode("p", _hoisted_2$11, toDisplayString(__props.plugin.summary), 1), createElementVNode("section", _hoisted_3$10, [_cache[0] || (_cache[0] = createElementVNode("h2", { class: "htw:m-0 htw:mb-[10px] htw:text-[14px] htw:font-extrabold htw:text-text" }, " Adds to your workbench ", -1)), __props.plugin.adds.length ? (openBlock(), createElementBlock("ul", _hoisted_4$9, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plugin.adds, (add, index) => {
|
|
1343
|
+
return openBlock(), createElementBlock("li", {
|
|
1344
|
+
key: index,
|
|
1345
|
+
class: "htw:flex htw:flex-col htw:gap-[4px] htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:p-[14px]"
|
|
1346
|
+
}, [createElementVNode("h3", _hoisted_5$7, toDisplayString(unref(additions)[add.kind]), 1), createElementVNode("span", _hoisted_6$5, toDisplayString(add.text), 1)]);
|
|
1347
|
+
}), 128))])) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
1348
|
+
key: 1,
|
|
1349
|
+
icon: "plug",
|
|
1350
|
+
title: "No declared contributions",
|
|
1351
|
+
tone: "neutral"
|
|
1352
|
+
}))])]);
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1356
|
+
// src/app/components/marketplace/detail/use-plugin-detail.ts
|
|
1357
|
+
/** Own detail reads for one visible package visit; obsolete replies cannot publish. */
|
|
1358
|
+
function usePluginDetail() {
|
|
1359
|
+
const store = useMarketplaceStore();
|
|
1360
|
+
const detail = shallowRef();
|
|
1361
|
+
const loading = ref(false);
|
|
1362
|
+
const error = ref();
|
|
1363
|
+
const notFound = ref(false);
|
|
1364
|
+
let controller;
|
|
1365
|
+
/** Replace the previous read and clear metadata before another package can act. */
|
|
1366
|
+
async function load() {
|
|
1367
|
+
controller?.abort();
|
|
1368
|
+
controller = void 0;
|
|
1369
|
+
detail.value = void 0;
|
|
1370
|
+
error.value = void 0;
|
|
1371
|
+
notFound.value = false;
|
|
1372
|
+
loading.value = false;
|
|
1373
|
+
const id = store.selectedId.value;
|
|
1374
|
+
if (!id) return;
|
|
1375
|
+
const current = controller = new AbortController();
|
|
1376
|
+
loading.value = true;
|
|
1377
|
+
try {
|
|
1378
|
+
const result = await store.client.detail(id, store.prefs.value, { signal: current.signal });
|
|
1379
|
+
if (!current.signal.aborted) detail.value = result;
|
|
1380
|
+
} catch (cause) {
|
|
1381
|
+
if (current.signal.aborted) return;
|
|
1382
|
+
const message = cause instanceof Error ? cause.message : "Could not load plugin";
|
|
1383
|
+
if (cause && typeof cause === "object" && "code" in cause && cause.code === "not-found") notFound.value = true;
|
|
1384
|
+
else error.value = message;
|
|
1385
|
+
} finally {
|
|
1386
|
+
if (controller === current) loading.value = false;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
const stop = watch([store.selectedId, () => store.prefs.value.community], load, {
|
|
1390
|
+
deep: true,
|
|
1391
|
+
immediate: true,
|
|
1392
|
+
flush: "sync"
|
|
1393
|
+
});
|
|
1394
|
+
const offClose = store.onClose(() => controller?.abort());
|
|
1395
|
+
onScopeDispose(() => {
|
|
1396
|
+
offClose();
|
|
1397
|
+
stop();
|
|
1398
|
+
controller?.abort();
|
|
1399
|
+
});
|
|
1400
|
+
return {
|
|
1401
|
+
detail,
|
|
1402
|
+
loading,
|
|
1403
|
+
error,
|
|
1404
|
+
notFound,
|
|
1405
|
+
load
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
// src/app/components/marketplace/detail/VersionsTab.vue?vue&type=script&setup=true&lang.ts
|
|
1409
|
+
var _hoisted_1$10 = {
|
|
1410
|
+
key: 0,
|
|
1411
|
+
"aria-label": "Published versions",
|
|
1412
|
+
class: "htw:m-0 htw:list-none htw:space-y-[14px] htw:rounded-[14px] htw:border htw:border-solid htw:border-border htw:bg-surface htw:p-[18px]"
|
|
1413
|
+
};
|
|
1414
|
+
var _hoisted_2$10 = { class: "htw:font-mono htw:text-[12px] htw:font-semibold htw:whitespace-nowrap htw:text-text" };
|
|
1415
|
+
var _hoisted_3$9 = ["datetime"];
|
|
1416
|
+
var _hoisted_4$8 = { class: "htw:ml-auto htw:text-muted htw:text-[12px]" };
|
|
1417
|
+
// src/app/components/marketplace/detail/VersionsTab.vue
|
|
1418
|
+
var VersionsTab_default = /* @__PURE__ */ defineComponent({
|
|
1419
|
+
__name: "VersionsTab",
|
|
1420
|
+
props: { plugin: {} },
|
|
1421
|
+
setup(__props) {
|
|
1422
|
+
return (_ctx, _cache) => {
|
|
1423
|
+
return __props.plugin.versions.length ? (openBlock(), createElementBlock("ul", _hoisted_1$10, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plugin.versions, (version) => {
|
|
1424
|
+
return openBlock(), createElementBlock("li", {
|
|
1425
|
+
key: version.version,
|
|
1426
|
+
class: "htw:flex htw:flex-wrap htw:items-center htw:gap-[12px]"
|
|
1427
|
+
}, [
|
|
1428
|
+
createElementVNode("code", _hoisted_2$10, toDisplayString(version.version), 1),
|
|
1429
|
+
version.date ? (openBlock(), createElementBlock("time", {
|
|
1430
|
+
key: 0,
|
|
1431
|
+
datetime: version.date,
|
|
1432
|
+
class: "htw:text-muted htw:text-[12px]"
|
|
1433
|
+
}, toDisplayString(version.date.slice(0, 10)), 9, _hoisted_3$9)) : createCommentVNode("", true),
|
|
1434
|
+
version.deprecated ? (openBlock(), createBlock(BaseChip_default, {
|
|
1435
|
+
key: 1,
|
|
1436
|
+
tone: "warn"
|
|
1437
|
+
}, {
|
|
1438
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode(" Deprecated ", -1)])]),
|
|
1439
|
+
_: 1
|
|
1440
|
+
})) : createCommentVNode("", true),
|
|
1441
|
+
createElementVNode("span", _hoisted_4$8, toDisplayString(version.compatible ? "Compatible" : unref(incompatibleReason)(version.reason)), 1)
|
|
1442
|
+
]);
|
|
1443
|
+
}), 128))])) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
1444
|
+
key: 1,
|
|
1445
|
+
icon: "catalog",
|
|
1446
|
+
title: "No versions",
|
|
1447
|
+
tone: "neutral"
|
|
1448
|
+
}));
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1452
|
+
// src/app/components/marketplace/detail/MarketplaceDetail.vue?vue&type=script&setup=true&lang.ts
|
|
1453
|
+
var _hoisted_1$9 = {
|
|
1454
|
+
key: 0,
|
|
1455
|
+
"aria-label": "Plugin details",
|
|
1456
|
+
class: "htw:flex htw:min-h-0 htw:flex-1 htw:flex-col htw:overflow-auto"
|
|
1457
|
+
};
|
|
1458
|
+
var _hoisted_2$9 = {
|
|
1459
|
+
key: 3,
|
|
1460
|
+
class: "htw:box-border htw:mx-auto htw:w-full htw:max-w-[1144px] htw:px-[32px] htw:py-[24px] htw:text-[13px] htw:leading-[1.45]"
|
|
1461
|
+
};
|
|
1462
|
+
var _hoisted_3$8 = [
|
|
1463
|
+
"id",
|
|
1464
|
+
"aria-selected",
|
|
1465
|
+
"aria-controls",
|
|
1466
|
+
"tabindex",
|
|
1467
|
+
"onClick"
|
|
1468
|
+
];
|
|
1469
|
+
var _hoisted_4$7 = { class: "htw:text-[13px] htw:font-bold" };
|
|
1470
|
+
var _hoisted_5$6 = {
|
|
1471
|
+
key: 0,
|
|
1472
|
+
"aria-hidden": "true",
|
|
1473
|
+
class: "htw:absolute htw:inset-x-0 htw:bottom-0 htw:h-[2px] htw:bg-accent"
|
|
1474
|
+
};
|
|
1475
|
+
var _hoisted_6$4 = { class: "htw:flex htw:flex-wrap htw:items-start htw:gap-[28px]" };
|
|
1476
|
+
var _hoisted_7$4 = { class: "htw:min-w-0 htw:flex-[999_1_520px]" };
|
|
1477
|
+
var _hoisted_8$4 = [
|
|
1478
|
+
"id",
|
|
1479
|
+
"hidden",
|
|
1480
|
+
"aria-labelledby"
|
|
1481
|
+
];
|
|
1482
|
+
// src/app/components/marketplace/detail/MarketplaceDetail.vue
|
|
1483
|
+
var MarketplaceDetail_default = /* @__PURE__ */ defineComponent({
|
|
1484
|
+
__name: "MarketplaceDetail",
|
|
1485
|
+
setup(__props) {
|
|
1486
|
+
const store = useMarketplaceStore();
|
|
1487
|
+
const { detail, loading, error, notFound, load } = usePluginDetail();
|
|
1488
|
+
/** Fixed order defines automatic tab activation and wraparound navigation. */
|
|
1489
|
+
const tabs = [
|
|
1490
|
+
"Overview",
|
|
1491
|
+
"Options",
|
|
1492
|
+
"Changelog",
|
|
1493
|
+
"Versions"
|
|
1494
|
+
];
|
|
1495
|
+
const active = computed({
|
|
1496
|
+
/** Resolve intent before metadata arrives, so loading cannot reset selected tab. */
|
|
1497
|
+
get: () => tabs.find((tab) => tab.toLowerCase() === store.detailTab.value),
|
|
1498
|
+
/** Tab clicks and keyboard navigation share the same history-aware intent. */
|
|
1499
|
+
set: (tab) => {
|
|
1500
|
+
store.detailTab.value = tab.toLowerCase();
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
const prefix = `marketplace-detail-${useId()}`;
|
|
1504
|
+
const tablist = ref();
|
|
1505
|
+
/** Arrow/Home/End select and focus one tab, leaving a single tab stop. */
|
|
1506
|
+
async function navigate(event) {
|
|
1507
|
+
const current = tabs.indexOf(active.value);
|
|
1508
|
+
const next = 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;
|
|
1509
|
+
if (next < 0) return;
|
|
1510
|
+
event.preventDefault();
|
|
1511
|
+
active.value = tabs[next];
|
|
1512
|
+
await nextTick();
|
|
1513
|
+
tablist.value?.querySelectorAll("[role=\"tab\"]")[next]?.focus();
|
|
1514
|
+
}
|
|
1515
|
+
return (_ctx, _cache) => {
|
|
1516
|
+
return unref(store).open.value && unref(store).view.value === "detail" ? (openBlock(), createElementBlock("section", _hoisted_1$9, [unref(loading) ? (openBlock(), createBlock(WorkbenchLoadingState_default, {
|
|
1517
|
+
key: 0,
|
|
1518
|
+
title: "Loading plugin",
|
|
1519
|
+
immediate: ""
|
|
1520
|
+
})) : unref(error) ? (openBlock(), createBlock(WorkbenchErrorState_default, {
|
|
1521
|
+
key: 1,
|
|
1522
|
+
title: "Couldn't load plugin"
|
|
1523
|
+
}, {
|
|
1524
|
+
actions: withCtx(() => [createVNode(unref(HstButton), {
|
|
1525
|
+
color: "flat",
|
|
1526
|
+
"aria-label": "Retry",
|
|
1527
|
+
onClick: unref(load)
|
|
1528
|
+
}, {
|
|
1529
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" Retry ", -1)])]),
|
|
1530
|
+
_: 1
|
|
1531
|
+
}, 8, ["onClick"])]),
|
|
1532
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(error)) + " ", 1)]),
|
|
1533
|
+
_: 1
|
|
1534
|
+
})) : unref(notFound) ? (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
1535
|
+
key: 2,
|
|
1536
|
+
icon: "search",
|
|
1537
|
+
title: "Plugin not found"
|
|
1538
|
+
})) : unref(detail) ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
1539
|
+
createVNode(DetailHeader_default, { plugin: unref(detail) }, null, 8, ["plugin"]),
|
|
1540
|
+
createElementVNode("div", {
|
|
1541
|
+
ref_key: "tablist",
|
|
1542
|
+
ref: tablist,
|
|
1543
|
+
role: "tablist",
|
|
1544
|
+
"aria-label": "Plugin details",
|
|
1545
|
+
class: "htw:my-[22px] htw:flex htw:flex-wrap htw:gap-[22px] htw:border-0 htw:border-b htw:border-solid htw:border-border",
|
|
1546
|
+
onKeydown: navigate
|
|
1547
|
+
}, [(openBlock(), createElementBlock(Fragment, null, renderList(tabs, (tab) => {
|
|
1548
|
+
return createElementVNode("button", {
|
|
1549
|
+
id: `${prefix}-tab-${tab}`,
|
|
1550
|
+
key: tab,
|
|
1551
|
+
type: "button",
|
|
1552
|
+
role: "tab",
|
|
1553
|
+
"aria-selected": active.value === tab,
|
|
1554
|
+
"aria-controls": `${prefix}-panel-${tab}`,
|
|
1555
|
+
tabindex: active.value === tab ? 0 : -1,
|
|
1556
|
+
class: normalizeClass(["htw:relative htw:m-0 htw:h-[40px] htw:cursor-pointer htw:border-0 htw:bg-transparent htw:px-[2px] htw:py-0 htw:[font:inherit] htw:focus-visible:outline-2 htw:focus-visible:outline-accent", active.value === tab ? "htw:text-text" : "htw:text-muted"]),
|
|
1557
|
+
onClick: ($event) => active.value = tab
|
|
1558
|
+
}, [createElementVNode("span", _hoisted_4$7, toDisplayString(tab), 1), active.value === tab ? (openBlock(), createElementBlock("span", _hoisted_5$6)) : createCommentVNode("", true)], 10, _hoisted_3$8);
|
|
1559
|
+
}), 64))], 544),
|
|
1560
|
+
createElementVNode("div", _hoisted_6$4, [createElementVNode("div", _hoisted_7$4, [(openBlock(), createElementBlock(Fragment, null, renderList(tabs, (tab) => {
|
|
1561
|
+
return createElementVNode("div", {
|
|
1562
|
+
id: `${prefix}-panel-${tab}`,
|
|
1563
|
+
key: tab,
|
|
1564
|
+
role: "tabpanel",
|
|
1565
|
+
hidden: active.value !== tab,
|
|
1566
|
+
"aria-labelledby": `${prefix}-tab-${tab}`,
|
|
1567
|
+
tabindex: "0"
|
|
1568
|
+
}, [active.value === tab ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [tab === "Overview" ? (openBlock(), createBlock(OverviewTab_default, {
|
|
1569
|
+
key: 0,
|
|
1570
|
+
plugin: unref(detail)
|
|
1571
|
+
}, null, 8, ["plugin"])) : tab === "Options" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(OptionsTab_default, { options: unref(detail).manifest.config.options ?? [] }, null, 8, ["options"]), unref(store).installRequest.value?.kind === "options" && unref(store).installRequest.value.id === unref(detail).id ? (openBlock(), createBlock(unref(HstButton), {
|
|
1572
|
+
key: 0,
|
|
1573
|
+
color: "primary",
|
|
1574
|
+
class: "htw:mt-[18px]",
|
|
1575
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(store).startInstall(unref(store).installRequest.value))
|
|
1576
|
+
}, {
|
|
1577
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Edit options ", -1)])]),
|
|
1578
|
+
_: 1
|
|
1579
|
+
})) : createCommentVNode("", true)], 64)) : tab === "Changelog" ? (openBlock(), createBlock(ChangelogTab_default, {
|
|
1580
|
+
key: 2,
|
|
1581
|
+
plugin: unref(detail)
|
|
1582
|
+
}, null, 8, ["plugin"])) : (openBlock(), createBlock(VersionsTab_default, {
|
|
1583
|
+
key: 3,
|
|
1584
|
+
plugin: unref(detail)
|
|
1585
|
+
}, null, 8, ["plugin"]))], 64)) : createCommentVNode("", true)], 8, _hoisted_8$4);
|
|
1586
|
+
}), 64))]), createVNode(MetaList_default, { plugin: unref(detail) }, null, 8, ["plugin"])])
|
|
1587
|
+
])) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
1588
|
+
key: 4,
|
|
1589
|
+
icon: "plug",
|
|
1590
|
+
title: "Select a plugin",
|
|
1591
|
+
tone: "neutral"
|
|
1592
|
+
}))])) : createCommentVNode("", true);
|
|
1593
|
+
};
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
// src/app/components/marketplace/install/InstallFooter.vue?vue&type=script&setup=true&lang.ts
|
|
1597
|
+
var _hoisted_1$8 = { class: "htw:flex htw:flex-wrap htw:items-center htw:justify-end htw:gap-2 htw:border-0 htw:border-t htw:border-solid htw:border-border htw:px-[22px] htw:py-3.5" };
|
|
1598
|
+
var _hoisted_2$8 = {
|
|
1599
|
+
key: 0,
|
|
1600
|
+
class: "htw:mr-auto"
|
|
1601
|
+
};
|
|
1602
|
+
// src/app/components/marketplace/install/InstallFooter.vue
|
|
1603
|
+
var InstallFooter_default = /* @__PURE__ */ defineComponent({
|
|
1604
|
+
__name: "InstallFooter",
|
|
1605
|
+
setup(__props) {
|
|
1606
|
+
return (_ctx, _cache) => {
|
|
1607
|
+
return openBlock(), createElementBlock("footer", _hoisted_1$8, [_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$8, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]);
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
});
|
|
1611
|
+
// src/app/components/marketplace/install/OutputLog.vue
|
|
1612
|
+
var OutputLog_default = /* @__PURE__ */ defineComponent({
|
|
1613
|
+
__name: "OutputLog",
|
|
1614
|
+
props: { output: {} },
|
|
1615
|
+
setup(__props) {
|
|
1616
|
+
const props = __props;
|
|
1617
|
+
const log = ref();
|
|
1618
|
+
let follow = true;
|
|
1619
|
+
/** Keep user's scroll position when reading earlier output. */
|
|
1620
|
+
function scroll() {
|
|
1621
|
+
const element = log.value;
|
|
1622
|
+
if (element) follow = element.scrollHeight - element.scrollTop - element.clientHeight < 24;
|
|
1623
|
+
}
|
|
1624
|
+
watch(() => props.output, async () => {
|
|
1625
|
+
await nextTick();
|
|
1626
|
+
if (follow && log.value) log.value.scrollTop = log.value.scrollHeight;
|
|
1627
|
+
}, {
|
|
1628
|
+
immediate: true,
|
|
1629
|
+
deep: true
|
|
1630
|
+
});
|
|
1631
|
+
return (_ctx, _cache) => {
|
|
1632
|
+
return openBlock(), createElementBlock("pre", {
|
|
1633
|
+
ref_key: "log",
|
|
1634
|
+
ref: log,
|
|
1635
|
+
tabindex: "0",
|
|
1636
|
+
"aria-label": "Install output",
|
|
1637
|
+
class: "htw:m-0 htw:font-mono htw:leading-[1.7] htw:text-body htw:max-h-64 htw:overflow-auto htw:rounded-xl htw:bg-canvas htw:p-4 htw:text-xs",
|
|
1638
|
+
onScroll: scroll
|
|
1639
|
+
}, [createElementVNode("code", null, toDisplayString(__props.output.join("\n")), 1)], 544);
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
});
|
|
1643
|
+
// src/app/components/marketplace/install/use-copy.ts
|
|
1644
|
+
/** Copy reviewed text, preserving selectable output when clipboard access fails. */
|
|
1645
|
+
function useCopy() {
|
|
1646
|
+
const status = ref("");
|
|
1647
|
+
/** Report clipboard denial without discarding source text. */
|
|
1648
|
+
async function copy(text) {
|
|
1649
|
+
try {
|
|
1650
|
+
await navigator.clipboard.writeText(text);
|
|
1651
|
+
status.value = "Copied";
|
|
1652
|
+
} catch {
|
|
1653
|
+
status.value = "Could not copy. Select and copy the text.";
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
return {
|
|
1657
|
+
status,
|
|
1658
|
+
copy
|
|
1659
|
+
};
|
|
1660
|
+
}
|
|
1661
|
+
// src/app/components/marketplace/install/FailureStep.vue?vue&type=script&setup=true&lang.ts
|
|
1662
|
+
var _hoisted_1$7 = { class: "htw:grid htw:gap-3 htw:px-[22px] htw:pt-8 htw:pb-[18px]" };
|
|
1663
|
+
var _hoisted_2$7 = { key: 0 };
|
|
1664
|
+
var _hoisted_3$7 = {
|
|
1665
|
+
key: 0,
|
|
1666
|
+
class: "htw:flex htw:flex-wrap htw:items-center htw:gap-3 htw:rounded-xl htw:border htw:border-solid htw:border-border htw:px-3.5 htw:py-3"
|
|
1667
|
+
};
|
|
1668
|
+
var _hoisted_4$6 = { class: "htw:min-w-0 htw:flex-1" };
|
|
1669
|
+
var _hoisted_5$5 = { class: "htw:m-0 htw:font-extrabold" };
|
|
1670
|
+
var _hoisted_6$3 = { class: "htw:m-0 htw:mt-0.5 htw:text-xs htw:text-muted" };
|
|
1671
|
+
var _hoisted_7$3 = {
|
|
1672
|
+
key: 1,
|
|
1673
|
+
"aria-label": "Remaining changes",
|
|
1674
|
+
class: "htw:m-0 htw:pl-5 htw:text-xs htw:text-muted"
|
|
1675
|
+
};
|
|
1676
|
+
var _hoisted_8$3 = {
|
|
1677
|
+
key: 2,
|
|
1678
|
+
role: "status",
|
|
1679
|
+
class: "htw:text-xs htw:text-muted"
|
|
1680
|
+
};
|
|
1681
|
+
// src/app/components/marketplace/install/FailureStep.vue
|
|
1682
|
+
var FailureStep_default = /* @__PURE__ */ defineComponent({
|
|
1683
|
+
__name: "FailureStep",
|
|
1684
|
+
props: { job: {} },
|
|
1685
|
+
emits: [
|
|
1686
|
+
"retry",
|
|
1687
|
+
"version",
|
|
1688
|
+
"manual"
|
|
1689
|
+
],
|
|
1690
|
+
setup(__props) {
|
|
1691
|
+
const { status, copy } = useCopy();
|
|
1692
|
+
return (_ctx, _cache) => {
|
|
1693
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$7, [
|
|
1694
|
+
createVNode(WorkbenchErrorState_default, {
|
|
1695
|
+
title: "Install failed",
|
|
1696
|
+
flush: ""
|
|
1697
|
+
}, {
|
|
1698
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.job.failure?.message) + " ", 1), __props.job.failure?.restored ? (openBlock(), createElementBlock("span", _hoisted_2$7, "No project files were changed.")) : createCommentVNode("", true)]),
|
|
1699
|
+
_: 1
|
|
1700
|
+
}),
|
|
1701
|
+
createVNode(OutputLog_default, { output: __props.job.output }, null, 8, ["output"]),
|
|
1702
|
+
__props.job.failure?.suggestion ? (openBlock(), createElementBlock("div", _hoisted_3$7, [createElementVNode("div", _hoisted_4$6, [createElementVNode("p", _hoisted_5$5, " Install " + toDisplayString(__props.job.failure.suggestion.version) + " instead ", 1), createElementVNode("p", _hoisted_6$3, toDisplayString(__props.job.failure.suggestion.reason), 1)]), createVNode(unref(HstButton), {
|
|
1703
|
+
"aria-label": `Install ${__props.job.failure.suggestion.version} instead`,
|
|
1704
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("version", __props.job.failure.suggestion.version))
|
|
1705
|
+
}, {
|
|
1706
|
+
default: withCtx(() => [createTextVNode(" Use " + toDisplayString(__props.job.failure.suggestion.version), 1)]),
|
|
1707
|
+
_: 1
|
|
1708
|
+
}, 8, ["aria-label"])])) : createCommentVNode("", true),
|
|
1709
|
+
__props.job.failure?.leftovers.length ? (openBlock(), createElementBlock("ul", _hoisted_7$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.job.failure.leftovers, (item) => {
|
|
1710
|
+
return openBlock(), createElementBlock("li", { key: item }, toDisplayString(item), 1);
|
|
1711
|
+
}), 128))])) : createCommentVNode("", true),
|
|
1712
|
+
unref(status) ? (openBlock(), createElementBlock("span", _hoisted_8$3, toDisplayString(unref(status)), 1)) : createCommentVNode("", true)
|
|
1713
|
+
]), createVNode(InstallFooter_default, null, {
|
|
1714
|
+
leading: withCtx(() => [createVNode(unref(HstButton), {
|
|
1715
|
+
color: "flat",
|
|
1716
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(copy)(__props.job.output.join("\n")))
|
|
1717
|
+
}, {
|
|
1718
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" Copy log ", -1)])]),
|
|
1719
|
+
_: 1
|
|
1720
|
+
})]),
|
|
1721
|
+
default: withCtx(() => [createVNode(unref(HstButton), { onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("manual")) }, {
|
|
1722
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode(" Install manually ", -1)])]),
|
|
1723
|
+
_: 1
|
|
1724
|
+
}), createVNode(unref(HstButton), {
|
|
1725
|
+
color: "primary",
|
|
1726
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("retry"))
|
|
1727
|
+
}, {
|
|
1728
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode(" Retry ", -1)])]),
|
|
1729
|
+
_: 1
|
|
1730
|
+
})]),
|
|
1731
|
+
_: 1
|
|
1732
|
+
})], 64);
|
|
1733
|
+
};
|
|
1734
|
+
}
|
|
1735
|
+
});
|
|
1736
|
+
// src/app/components/marketplace/install/ManualStep.vue?vue&type=script&setup=true&lang.ts
|
|
1737
|
+
var _hoisted_1$6 = { class: "htw:grid htw:gap-5 htw:px-[22px] htw:py-5" };
|
|
1738
|
+
var _hoisted_2$6 = {
|
|
1739
|
+
key: 0,
|
|
1740
|
+
class: "htw:flex htw:items-center htw:gap-3 htw:rounded-xl htw:bg-chip htw:px-3.5 htw:py-3"
|
|
1741
|
+
};
|
|
1742
|
+
var _hoisted_3$6 = { class: "htw:grid htw:gap-0.5" };
|
|
1743
|
+
var _hoisted_4$5 = { class: "htw:m-0 htw:text-xs htw:text-muted" };
|
|
1744
|
+
var _hoisted_5$4 = { class: "htw:m-0 htw:grid htw:list-none htw:gap-[18px] htw:p-0" };
|
|
1745
|
+
var _hoisted_6$2 = {
|
|
1746
|
+
"aria-hidden": "true",
|
|
1747
|
+
class: "htw:grid htw:size-6 htw:shrink-0 htw:place-items-center htw:rounded-full htw:bg-chip htw:text-xs htw:font-bold htw:text-body"
|
|
1748
|
+
};
|
|
1749
|
+
var _hoisted_7$2 = { class: "htw:grid htw:min-w-0 htw:flex-1 htw:gap-2" };
|
|
1750
|
+
var _hoisted_8$2 = { class: "htw:flex htw:flex-wrap htw:items-center htw:justify-between htw:gap-2" };
|
|
1751
|
+
var _hoisted_9$1 = { class: "htw:m-0 htw:text-[13px] htw:font-extrabold" };
|
|
1752
|
+
var _hoisted_10 = [
|
|
1753
|
+
"id",
|
|
1754
|
+
"role",
|
|
1755
|
+
"aria-labelledby"
|
|
1756
|
+
];
|
|
1757
|
+
var _hoisted_11 = {
|
|
1758
|
+
key: 0,
|
|
1759
|
+
role: "status",
|
|
1760
|
+
class: "htw:mr-auto htw:text-xs htw:text-muted"
|
|
1761
|
+
};
|
|
1762
|
+
// src/app/components/marketplace/install/ManualStep.vue
|
|
1763
|
+
var ManualStep_default = /* @__PURE__ */ defineComponent({
|
|
1764
|
+
__name: "ManualStep",
|
|
1765
|
+
props: {
|
|
1766
|
+
plan: {},
|
|
1767
|
+
forced: { type: Boolean }
|
|
1768
|
+
},
|
|
1769
|
+
emits: ["done"],
|
|
1770
|
+
setup(__props) {
|
|
1771
|
+
const props = __props;
|
|
1772
|
+
const selected = ref(props.plan.packageManager.name);
|
|
1773
|
+
const prefix = `marketplace-manager-${useId()}`;
|
|
1774
|
+
const { status, copy } = useCopy();
|
|
1775
|
+
const managers = computed(() => [props.plan.packageManager.name, ...[
|
|
1776
|
+
"pnpm",
|
|
1777
|
+
"npm",
|
|
1778
|
+
"yarn",
|
|
1779
|
+
"bun"
|
|
1780
|
+
].filter((name) => name !== props.plan.packageManager.name)]);
|
|
1781
|
+
const reason = computed(() => ({
|
|
1782
|
+
"static": "Static build. Run these steps in your project.",
|
|
1783
|
+
"config-not-literal": "Config requires a manual edit.",
|
|
1784
|
+
"no-package-manager": "No package manager found.",
|
|
1785
|
+
"migration-manual": "Config migration requires a manual edit.",
|
|
1786
|
+
"workspace-unsupported": "Workspace requires a manual install."
|
|
1787
|
+
})[props.plan.manual?.reason ?? "config-not-literal"]);
|
|
1788
|
+
/** Choose only this manager's command, preserving server-provided config text verbatim. */
|
|
1789
|
+
const steps = computed(() => {
|
|
1790
|
+
return (props.plan.manual?.steps ?? []).filter((step) => !/^Run with (?:pnpm|npm|yarn|bun)$/.test(step.title) || step.title === `Run with ${selected.value}`);
|
|
1791
|
+
});
|
|
1792
|
+
/** Static instructions end with rebuild, replacing the development restart instruction. */
|
|
1793
|
+
function title(step) {
|
|
1794
|
+
if (/^Run with (?:pnpm|npm|yarn|bun)$/.test(step.title)) return "Install the package";
|
|
1795
|
+
return props.plan.manual?.reason === "static" && step.title === "Restart Histoire" ? "Rebuild with histoire build" : step.title;
|
|
1796
|
+
}
|
|
1797
|
+
/** Roving manager tabs support arrows, Home and End. */
|
|
1798
|
+
function navigate(event) {
|
|
1799
|
+
const names = managers.value;
|
|
1800
|
+
const index = names.indexOf(selected.value);
|
|
1801
|
+
const next = event.key === "ArrowRight" ? (index + 1) % names.length : event.key === "ArrowLeft" ? (index + names.length - 1) % names.length : event.key === "Home" ? 0 : event.key === "End" ? names.length - 1 : -1;
|
|
1802
|
+
if (next < 0) return;
|
|
1803
|
+
event.preventDefault();
|
|
1804
|
+
selected.value = names[next];
|
|
1805
|
+
event.currentTarget.querySelectorAll("[role=\"tab\"]")[next]?.focus();
|
|
1806
|
+
}
|
|
1807
|
+
return (_ctx, _cache) => {
|
|
1808
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$6, [!__props.forced ? (openBlock(), createElementBlock("div", _hoisted_2$6, [createVNode(unref(BuiltinIcon), {
|
|
1809
|
+
icon: "information",
|
|
1810
|
+
size: 18,
|
|
1811
|
+
class: "htw:shrink-0 htw:text-muted"
|
|
1812
|
+
}), createElementVNode("div", _hoisted_3$6, [_cache[2] || (_cache[2] = createElementVNode("p", { class: "htw:m-0 htw:font-extrabold" }, " This workbench can't edit project files ", -1)), createElementVNode("p", _hoisted_4$5, toDisplayString(reason.value), 1)])])) : createCommentVNode("", true), createElementVNode("ol", _hoisted_5$4, [(openBlock(true), createElementBlock(Fragment, null, renderList(steps.value, (step, index) => {
|
|
1813
|
+
return openBlock(), createElementBlock("li", {
|
|
1814
|
+
key: index,
|
|
1815
|
+
class: "htw:flex htw:gap-3"
|
|
1816
|
+
}, [createElementVNode("span", _hoisted_6$2, toDisplayString(index + 1), 1), createElementVNode("div", _hoisted_7$2, [createElementVNode("div", _hoisted_8$2, [createElementVNode("h2", _hoisted_9$1, toDisplayString(title(step)), 1), index === 0 ? (openBlock(), createElementBlock("div", {
|
|
1817
|
+
key: 0,
|
|
1818
|
+
role: "tablist",
|
|
1819
|
+
"aria-label": "Package manager",
|
|
1820
|
+
class: "htw:flex htw:flex-wrap htw:gap-0.5 htw:rounded-[9px] htw:bg-chip htw:p-[3px]",
|
|
1821
|
+
onKeydown: navigate
|
|
1822
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(managers.value, (name) => {
|
|
1823
|
+
return openBlock(), createBlock(unref(HstButton), {
|
|
1824
|
+
id: `${prefix}-${name}`,
|
|
1825
|
+
key: name,
|
|
1826
|
+
role: "tab",
|
|
1827
|
+
color: "flat",
|
|
1828
|
+
"aria-selected": selected.value === name,
|
|
1829
|
+
"aria-controls": `${prefix}-panel`,
|
|
1830
|
+
tabindex: selected.value === name ? 0 : -1,
|
|
1831
|
+
class: normalizeClass(["htw:h-[26px] htw:rounded-[7px] htw:px-2.5 htw:text-xs", selected.value === name ? "htw:bg-surface htw:text-text htw:shadow-sm" : "htw:text-muted"]),
|
|
1832
|
+
onClick: ($event) => selected.value = name
|
|
1833
|
+
}, {
|
|
1834
|
+
default: withCtx(() => [createTextVNode(toDisplayString(name), 1)]),
|
|
1835
|
+
_: 2
|
|
1836
|
+
}, 1032, [
|
|
1837
|
+
"id",
|
|
1838
|
+
"aria-selected",
|
|
1839
|
+
"aria-controls",
|
|
1840
|
+
"tabindex",
|
|
1841
|
+
"class",
|
|
1842
|
+
"onClick"
|
|
1843
|
+
]);
|
|
1844
|
+
}), 128))], 32)) : createCommentVNode("", true)]), createElementVNode("div", {
|
|
1845
|
+
id: index === 0 ? `${prefix}-panel` : void 0,
|
|
1846
|
+
role: index === 0 ? "tabpanel" : void 0,
|
|
1847
|
+
"aria-labelledby": index === 0 ? `${prefix}-${selected.value}` : void 0
|
|
1848
|
+
}, [step.code ? (openBlock(), createBlock(CommandBlock_default, {
|
|
1849
|
+
key: 0,
|
|
1850
|
+
code: step.code,
|
|
1851
|
+
label: index === 0 ? "Copy command" : "Copy snippet"
|
|
1852
|
+
}, null, 8, ["code", "label"])) : createCommentVNode("", true)], 8, _hoisted_10)])]);
|
|
1853
|
+
}), 128))])]), createVNode(InstallFooter_default, null, {
|
|
1854
|
+
default: withCtx(() => [
|
|
1855
|
+
unref(status) ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(unref(status)), 1)) : createCommentVNode("", true),
|
|
1856
|
+
createVNode(unref(HstButton), { onClick: _cache[0] || (_cache[0] = ($event) => unref(copy)(steps.value.map((step) => step.code ?? title(step)).join("\n\n"))) }, {
|
|
1857
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" Copy all ", -1)])]),
|
|
1858
|
+
_: 1
|
|
1859
|
+
}),
|
|
1860
|
+
createVNode(unref(HstButton), {
|
|
1861
|
+
color: "primary",
|
|
1862
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("done"))
|
|
1863
|
+
}, {
|
|
1864
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" Done ", -1)])]),
|
|
1865
|
+
_: 1
|
|
1866
|
+
})
|
|
1867
|
+
]),
|
|
1868
|
+
_: 1
|
|
1869
|
+
})], 64);
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
});
|
|
1873
|
+
// src/app/components/marketplace/install/OptionField.vue?vue&type=script&setup=true&lang.ts
|
|
1874
|
+
var _hoisted_1$5 = { class: "htw:grid htw:gap-1.5" };
|
|
1875
|
+
var _hoisted_2$5 = {
|
|
1876
|
+
key: 0,
|
|
1877
|
+
class: "htw:flex htw:items-center htw:justify-between htw:gap-3"
|
|
1878
|
+
};
|
|
1879
|
+
var _hoisted_3$5 = { class: "htw:grid htw:gap-1" };
|
|
1880
|
+
var _hoisted_4$4 = ["id"];
|
|
1881
|
+
var _hoisted_5$3 = ["id"];
|
|
1882
|
+
// src/app/components/marketplace/install/OptionField.vue
|
|
1883
|
+
var OptionField_default = /* @__PURE__ */ defineComponent({
|
|
1884
|
+
__name: "OptionField",
|
|
1885
|
+
props: {
|
|
1886
|
+
option: {},
|
|
1887
|
+
modelValue: { type: [
|
|
1888
|
+
null,
|
|
1889
|
+
Boolean,
|
|
1890
|
+
Number,
|
|
1891
|
+
String,
|
|
1892
|
+
Array,
|
|
1893
|
+
Object
|
|
1894
|
+
] }
|
|
1895
|
+
},
|
|
1896
|
+
emits: ["update:modelValue"],
|
|
1897
|
+
setup(__props, { emit: __emit }) {
|
|
1898
|
+
const props = __props;
|
|
1899
|
+
const emit = __emit;
|
|
1900
|
+
const id = `marketplace-option-${useId()}`;
|
|
1901
|
+
const descriptionId = computed(() => props.option.description ? `${id}-description` : void 0);
|
|
1902
|
+
/** One selector per line; empty rows never become config entries. */
|
|
1903
|
+
function updateList(value) {
|
|
1904
|
+
emit("update:modelValue", value.split("\n").map((line) => line.trim()).filter(Boolean));
|
|
1905
|
+
}
|
|
1906
|
+
return (_ctx, _cache) => {
|
|
1907
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [__props.option.type === "boolean" ? (openBlock(), createElementBlock("div", _hoisted_2$5, [createElementVNode("div", _hoisted_3$5, [createElementVNode("label", {
|
|
1908
|
+
for: id,
|
|
1909
|
+
class: "htw:font-bold"
|
|
1910
|
+
}, toDisplayString(__props.option.label), 1), __props.option.description ? (openBlock(), createElementBlock("p", {
|
|
1911
|
+
key: 0,
|
|
1912
|
+
id: descriptionId.value,
|
|
1913
|
+
class: "htw:m-0 htw:text-xs htw:text-muted"
|
|
1914
|
+
}, toDisplayString(__props.option.description), 9, _hoisted_4$4)) : createCommentVNode("", true)]), createVNode(unref(HstSwitch), {
|
|
1915
|
+
id,
|
|
1916
|
+
title: __props.option.label,
|
|
1917
|
+
layout: "inline",
|
|
1918
|
+
"aria-label": __props.option.label,
|
|
1919
|
+
"aria-describedby": descriptionId.value,
|
|
1920
|
+
"model-value": __props.modelValue === true,
|
|
1921
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
1922
|
+
}, null, 8, [
|
|
1923
|
+
"title",
|
|
1924
|
+
"aria-label",
|
|
1925
|
+
"aria-describedby",
|
|
1926
|
+
"model-value"
|
|
1927
|
+
])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1928
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.option.type === "enum" && __props.option.display === "segmented" ? "span" : "label"), {
|
|
1929
|
+
for: __props.option.type === "enum" && __props.option.display === "segmented" ? void 0 : id,
|
|
1930
|
+
class: "htw:font-bold"
|
|
1931
|
+
}, {
|
|
1932
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.option.label), 1)]),
|
|
1933
|
+
_: 1
|
|
1934
|
+
}, 8, ["for"])),
|
|
1935
|
+
__props.option.type === "enum" && __props.option.display === "segmented" ? (openBlock(), createBlock(unref(HstButtonGroup), {
|
|
1936
|
+
key: 0,
|
|
1937
|
+
id,
|
|
1938
|
+
title: __props.option.label,
|
|
1939
|
+
layout: "inline",
|
|
1940
|
+
"aria-label": __props.option.label,
|
|
1941
|
+
options: __props.option.choices ?? [],
|
|
1942
|
+
"model-value": __props.modelValue,
|
|
1943
|
+
"aria-describedby": descriptionId.value,
|
|
1944
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", $event))
|
|
1945
|
+
}, null, 8, [
|
|
1946
|
+
"title",
|
|
1947
|
+
"aria-label",
|
|
1948
|
+
"options",
|
|
1949
|
+
"model-value",
|
|
1950
|
+
"aria-describedby"
|
|
1951
|
+
])) : __props.option.type === "enum" ? (openBlock(), createBlock(unref(HstSelect), {
|
|
1952
|
+
key: 1,
|
|
1953
|
+
id,
|
|
1954
|
+
title: __props.option.label,
|
|
1955
|
+
layout: "inline",
|
|
1956
|
+
"aria-label": __props.option.label,
|
|
1957
|
+
options: __props.option.choices ?? [],
|
|
1958
|
+
"model-value": __props.modelValue,
|
|
1959
|
+
"aria-describedby": descriptionId.value,
|
|
1960
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => emit("update:modelValue", $event))
|
|
1961
|
+
}, null, 8, [
|
|
1962
|
+
"title",
|
|
1963
|
+
"aria-label",
|
|
1964
|
+
"options",
|
|
1965
|
+
"model-value",
|
|
1966
|
+
"aria-describedby"
|
|
1967
|
+
])) : __props.option.type === "string-list" ? (openBlock(), createBlock(unref(HstTextarea), {
|
|
1968
|
+
key: 2,
|
|
1969
|
+
id,
|
|
1970
|
+
class: "htw:w-full",
|
|
1971
|
+
title: __props.option.label,
|
|
1972
|
+
layout: "inline",
|
|
1973
|
+
"aria-label": __props.option.label,
|
|
1974
|
+
"model-value": Array.isArray(__props.modelValue) ? __props.modelValue.join("\n") : "",
|
|
1975
|
+
rows: 3,
|
|
1976
|
+
"aria-describedby": descriptionId.value,
|
|
1977
|
+
"input-class": "htw:font-mono htw:text-xs",
|
|
1978
|
+
"onUpdate:modelValue": updateList
|
|
1979
|
+
}, null, 8, [
|
|
1980
|
+
"title",
|
|
1981
|
+
"aria-label",
|
|
1982
|
+
"model-value",
|
|
1983
|
+
"aria-describedby"
|
|
1984
|
+
])) : (openBlock(), createBlock(unref(HstText), {
|
|
1985
|
+
key: 3,
|
|
1986
|
+
id,
|
|
1987
|
+
class: "htw:w-full",
|
|
1988
|
+
title: __props.option.label,
|
|
1989
|
+
layout: "inline",
|
|
1990
|
+
"aria-label": __props.option.label,
|
|
1991
|
+
"model-value": typeof __props.modelValue === "string" ? __props.modelValue : "",
|
|
1992
|
+
"aria-describedby": descriptionId.value,
|
|
1993
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
|
|
1994
|
+
}, null, 8, [
|
|
1995
|
+
"title",
|
|
1996
|
+
"aria-label",
|
|
1997
|
+
"model-value",
|
|
1998
|
+
"aria-describedby"
|
|
1999
|
+
])),
|
|
2000
|
+
__props.option.description ? (openBlock(), createElementBlock("p", {
|
|
2001
|
+
key: 4,
|
|
2002
|
+
id: descriptionId.value,
|
|
2003
|
+
class: "htw:m-0 htw:text-xs htw:text-muted"
|
|
2004
|
+
}, toDisplayString(__props.option.description), 9, _hoisted_5$3)) : createCommentVNode("", true)
|
|
2005
|
+
], 64))]);
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
});
|
|
2009
|
+
// src/app/components/marketplace/install/OptionsStep.vue?vue&type=script&setup=true&lang.ts
|
|
2010
|
+
var _hoisted_1$4 = { class: "htw:flex htw:flex-wrap" };
|
|
2011
|
+
var _hoisted_2$4 = { class: "htw:flex htw:min-w-0 htw:flex-[1_1_300px] htw:flex-col htw:gap-5 htw:p-[22px]" };
|
|
2012
|
+
var _hoisted_3$4 = { class: "htw:min-w-0 htw:flex-[1.4_1_440px] htw:bg-canvas htw:p-[22px]" };
|
|
2013
|
+
// src/app/components/marketplace/install/OptionsStep.vue
|
|
2014
|
+
var OptionsStep_default = /* @__PURE__ */ defineComponent({
|
|
2015
|
+
__name: "OptionsStep",
|
|
2016
|
+
props: {
|
|
2017
|
+
fields: {},
|
|
2018
|
+
values: {},
|
|
2019
|
+
plan: {},
|
|
2020
|
+
loading: { type: Boolean }
|
|
2021
|
+
},
|
|
2022
|
+
emits: [
|
|
2023
|
+
"change",
|
|
2024
|
+
"cancel",
|
|
2025
|
+
"continue"
|
|
2026
|
+
],
|
|
2027
|
+
setup(__props) {
|
|
2028
|
+
return (_ctx, _cache) => {
|
|
2029
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$4, [createElementVNode("div", _hoisted_2$4, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fields, (field) => {
|
|
2030
|
+
return openBlock(), createBlock(OptionField_default, {
|
|
2031
|
+
key: field.key,
|
|
2032
|
+
option: field,
|
|
2033
|
+
"model-value": __props.values[field.key],
|
|
2034
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("change", field.key, $event)
|
|
2035
|
+
}, null, 8, [
|
|
2036
|
+
"option",
|
|
2037
|
+
"model-value",
|
|
2038
|
+
"onUpdate:modelValue"
|
|
2039
|
+
]);
|
|
2040
|
+
}), 128)), !__props.fields.length ? (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
2041
|
+
key: 0,
|
|
2042
|
+
icon: "settings",
|
|
2043
|
+
title: "No options",
|
|
2044
|
+
tone: "neutral"
|
|
2045
|
+
})) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_3$4, [__props.loading ? (openBlock(), createBlock(WorkbenchLoadingState_default, {
|
|
2046
|
+
key: 0,
|
|
2047
|
+
title: "Planning changes",
|
|
2048
|
+
immediate: ""
|
|
2049
|
+
})) : __props.plan ? (openBlock(), createBlock(ConfigDiff_default, {
|
|
2050
|
+
key: 1,
|
|
2051
|
+
files: __props.plan.files.filter((file) => !file.path.endsWith("package.json"))
|
|
2052
|
+
}, null, 8, ["files"])) : createCommentVNode("", true)])]), createVNode(InstallFooter_default, null, {
|
|
2053
|
+
default: withCtx(() => [createVNode(unref(HstButton), {
|
|
2054
|
+
color: "flat",
|
|
2055
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("cancel"))
|
|
2056
|
+
}, {
|
|
2057
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Cancel ", -1)])]),
|
|
2058
|
+
_: 1
|
|
2059
|
+
}), createVNode(unref(HstButton), {
|
|
2060
|
+
color: "primary",
|
|
2061
|
+
disabled: __props.loading || !__props.plan,
|
|
2062
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("continue"))
|
|
2063
|
+
}, {
|
|
2064
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" Continue ", -1)])]),
|
|
2065
|
+
_: 1
|
|
2066
|
+
}, 8, ["disabled"])]),
|
|
2067
|
+
_: 1
|
|
2068
|
+
})], 64);
|
|
2069
|
+
};
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
// src/app/components/marketplace/install/ProgressStep.vue?vue&type=script&setup=true&lang.ts
|
|
2073
|
+
var _hoisted_1$3 = { class: "htw:grid htw:gap-4 htw:px-[22px] htw:py-5" };
|
|
2074
|
+
var _hoisted_2$3 = {
|
|
2075
|
+
"aria-live": "polite",
|
|
2076
|
+
"aria-atomic": "true",
|
|
2077
|
+
"aria-label": "Install progress",
|
|
2078
|
+
class: "htw:m-0 htw:grid htw:list-none htw:gap-0.5 htw:p-0"
|
|
2079
|
+
};
|
|
2080
|
+
var _hoisted_3$3 = { class: "htw:grid htw:size-[18px] htw:shrink-0 htw:place-items-center htw:text-accent" };
|
|
2081
|
+
var _hoisted_4$3 = {
|
|
2082
|
+
key: 3,
|
|
2083
|
+
"aria-hidden": "true",
|
|
2084
|
+
class: "htw:size-3.5 htw:rounded-full htw:border htw:border-solid htw:border-border"
|
|
2085
|
+
};
|
|
2086
|
+
var _hoisted_5$2 = { class: "htw:min-w-0 htw:flex-1 htw:break-words htw:font-semibold" };
|
|
2087
|
+
var _hoisted_6$1 = { class: "htw:sr-only" };
|
|
2088
|
+
var _hoisted_7$1 = {
|
|
2089
|
+
key: 0,
|
|
2090
|
+
class: "htw:font-mono htw:text-[11px] htw:text-muted"
|
|
2091
|
+
};
|
|
2092
|
+
var _hoisted_8$1 = { open: "" };
|
|
2093
|
+
var _hoisted_9 = {
|
|
2094
|
+
key: 0,
|
|
2095
|
+
role: "status",
|
|
2096
|
+
class: "htw:m-0 htw:text-muted"
|
|
2097
|
+
};
|
|
2098
|
+
// src/app/components/marketplace/install/ProgressStep.vue
|
|
2099
|
+
var ProgressStep_default = /* @__PURE__ */ defineComponent({
|
|
2100
|
+
__name: "ProgressStep",
|
|
2101
|
+
props: {
|
|
2102
|
+
job: {},
|
|
2103
|
+
canOpenPane: { type: Boolean },
|
|
2104
|
+
restarting: { type: Boolean }
|
|
2105
|
+
},
|
|
2106
|
+
emits: [
|
|
2107
|
+
"background",
|
|
2108
|
+
"restart",
|
|
2109
|
+
"open",
|
|
2110
|
+
"done"
|
|
2111
|
+
],
|
|
2112
|
+
setup(__props) {
|
|
2113
|
+
return (_ctx, _cache) => {
|
|
2114
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$3, [
|
|
2115
|
+
createElementVNode("ol", _hoisted_2$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.job.steps, (step) => {
|
|
2116
|
+
return openBlock(), createElementBlock("li", {
|
|
2117
|
+
key: step.id,
|
|
2118
|
+
class: normalizeClass(["htw:flex htw:items-center htw:gap-3 htw:py-[9px]", step.state === "pending" ? "htw:text-muted" : "htw:text-text"])
|
|
2119
|
+
}, [
|
|
2120
|
+
createElementVNode("span", _hoisted_3$3, [step.state === "running" && !__props.job.awaiting ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
|
|
2121
|
+
key: 0,
|
|
2122
|
+
size: 16
|
|
2123
|
+
})) : step.state === "done" ? (openBlock(), createBlock(unref(BuiltinIcon), {
|
|
2124
|
+
key: 1,
|
|
2125
|
+
icon: "checkmark-filled",
|
|
2126
|
+
size: 18
|
|
2127
|
+
})) : step.state === "failed" ? (openBlock(), createBlock(unref(BuiltinIcon), {
|
|
2128
|
+
key: 2,
|
|
2129
|
+
icon: "error-filled",
|
|
2130
|
+
size: 18,
|
|
2131
|
+
class: "htw:text-danger-text"
|
|
2132
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_4$3))]),
|
|
2133
|
+
createElementVNode("span", _hoisted_5$2, toDisplayString(unref(jobProgressLabel)(__props.job, step.id)), 1),
|
|
2134
|
+
createElementVNode("span", _hoisted_6$1, toDisplayString(step.state), 1),
|
|
2135
|
+
step.ms !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_7$1, toDisplayString(step.ms) + " ms", 1)) : createCommentVNode("", true)
|
|
2136
|
+
], 2);
|
|
2137
|
+
}), 128))]),
|
|
2138
|
+
createElementVNode("details", _hoisted_8$1, [_cache[4] || (_cache[4] = createElementVNode("summary", { class: "htw:mb-2 htw:cursor-pointer htw:font-bold htw:text-body" }, " Output ", -1)), createVNode(OutputLog_default, { output: __props.job.output }, null, 8, ["output"])]),
|
|
2139
|
+
__props.job.awaiting === "restart" ? (openBlock(), createElementBlock("p", _hoisted_9, " Restart the dev server to finish ")) : createCommentVNode("", true)
|
|
2140
|
+
]), createVNode(InstallFooter_default, null, {
|
|
2141
|
+
default: withCtx(() => [
|
|
2142
|
+
__props.job.awaiting === "continue" ? (openBlock(), createBlock(unref(HstButton), {
|
|
2143
|
+
key: 0,
|
|
2144
|
+
color: "primary",
|
|
2145
|
+
disabled: __props.restarting,
|
|
2146
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("restart"))
|
|
2147
|
+
}, {
|
|
2148
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode(" Restart now ", -1)])]),
|
|
2149
|
+
_: 1
|
|
2150
|
+
}, 8, ["disabled"])) : createCommentVNode("", true),
|
|
2151
|
+
__props.job.status === "running" ? (openBlock(), createBlock(unref(HstButton), {
|
|
2152
|
+
key: 1,
|
|
2153
|
+
color: "flat",
|
|
2154
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("background"))
|
|
2155
|
+
}, {
|
|
2156
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode(" Run in background ", -1)])]),
|
|
2157
|
+
_: 1
|
|
2158
|
+
})) : createCommentVNode("", true),
|
|
2159
|
+
createVNode(unref(HstButton), {
|
|
2160
|
+
color: "primary",
|
|
2161
|
+
disabled: !__props.canOpenPane,
|
|
2162
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("open"))
|
|
2163
|
+
}, {
|
|
2164
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [createTextVNode(" Open pane ", -1)])]),
|
|
2165
|
+
_: 1
|
|
2166
|
+
}, 8, ["disabled"]),
|
|
2167
|
+
__props.job.status !== "running" ? (openBlock(), createBlock(unref(HstButton), {
|
|
2168
|
+
key: 2,
|
|
2169
|
+
color: "flat",
|
|
2170
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("done"))
|
|
2171
|
+
}, {
|
|
2172
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [createTextVNode(" Done ", -1)])]),
|
|
2173
|
+
_: 1
|
|
2174
|
+
})) : createCommentVNode("", true)
|
|
2175
|
+
]),
|
|
2176
|
+
_: 1
|
|
2177
|
+
})], 64);
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
});
|
|
2181
|
+
// src/app/components/marketplace/install/ReviewStep.vue?vue&type=script&setup=true&lang.ts
|
|
2182
|
+
var _hoisted_1$2 = { class: "htw:grid htw:gap-[18px] htw:px-[22px] htw:py-5" };
|
|
2183
|
+
var _hoisted_2$2 = { class: "htw:grid htw:gap-0.5" };
|
|
2184
|
+
var _hoisted_3$2 = { class: "htw:font-extrabold" };
|
|
2185
|
+
var _hoisted_4$2 = { class: "htw:text-xs" };
|
|
2186
|
+
var _hoisted_5$1 = {
|
|
2187
|
+
key: 0,
|
|
2188
|
+
class: "htw:grid htw:gap-2",
|
|
2189
|
+
"aria-label": "Command"
|
|
2190
|
+
};
|
|
2191
|
+
var _hoisted_6 = {
|
|
2192
|
+
class: "htw:grid htw:gap-2",
|
|
2193
|
+
"aria-label": "Files"
|
|
2194
|
+
};
|
|
2195
|
+
var _hoisted_7 = { class: "htw:grid htw:gap-2.5" };
|
|
2196
|
+
var _hoisted_8 = { class: "htw:font-sans htw:font-semibold" };
|
|
2197
|
+
// src/app/components/marketplace/install/ReviewStep.vue
|
|
2198
|
+
var ReviewStep_default = /* @__PURE__ */ defineComponent({
|
|
2199
|
+
__name: "ReviewStep",
|
|
2200
|
+
props: {
|
|
2201
|
+
plan: {},
|
|
2202
|
+
plugin: {},
|
|
2203
|
+
restart: { type: Boolean },
|
|
2204
|
+
pane: {},
|
|
2205
|
+
openPane: { type: Boolean },
|
|
2206
|
+
starting: { type: Boolean }
|
|
2207
|
+
},
|
|
2208
|
+
emits: [
|
|
2209
|
+
"restart",
|
|
2210
|
+
"open",
|
|
2211
|
+
"back",
|
|
2212
|
+
"cancel",
|
|
2213
|
+
"install",
|
|
2214
|
+
"manual"
|
|
2215
|
+
],
|
|
2216
|
+
setup(__props) {
|
|
2217
|
+
return (_ctx, _cache) => {
|
|
2218
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$2, [
|
|
2219
|
+
createElementVNode("div", { class: normalizeClass(["htw:flex htw:items-center htw:gap-3 htw:rounded-xl htw:px-3.5 htw:py-3", __props.plugin.official ? "htw:bg-accent-soft htw:text-accent-text" : "htw:bg-chip htw:text-body"]) }, [createVNode(unref(BuiltinIcon), {
|
|
2220
|
+
icon: "checkmark-filled",
|
|
2221
|
+
size: 20,
|
|
2222
|
+
class: "htw:shrink-0"
|
|
2223
|
+
}), createElementVNode("div", _hoisted_2$2, [createElementVNode("span", _hoisted_3$2, toDisplayString(__props.plugin.official ? "Official plugin" : __props.plugin.displayName), 1), createElementVNode("span", _hoisted_4$2, [createTextVNode("Published by " + toDisplayString(__props.plugin.publisher), 1), __props.plugin.provenance ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(" · Published with npm provenance")], 64)) : createCommentVNode("", true)])])], 2),
|
|
2224
|
+
__props.plan.command ? (openBlock(), createElementBlock("section", _hoisted_5$1, [_cache[6] || (_cache[6] = createElementVNode("h2", { class: "htw:m-0 htw:text-[11px] htw:font-bold htw:tracking-wide htw:text-muted htw:uppercase" }, " Command ", -1)), createVNode(CommandBlock_default, {
|
|
2225
|
+
code: __props.plan.command.display,
|
|
2226
|
+
label: "Copy command"
|
|
2227
|
+
}, null, 8, ["code"])])) : createCommentVNode("", true),
|
|
2228
|
+
createElementVNode("section", _hoisted_6, [_cache[7] || (_cache[7] = createElementVNode("h2", { class: "htw:m-0 htw:text-[11px] htw:font-bold htw:tracking-wide htw:text-muted htw:uppercase" }, " Files ", -1)), createVNode(ConfigDiff_default, {
|
|
2229
|
+
files: __props.plan.files,
|
|
2230
|
+
collapsible: ""
|
|
2231
|
+
}, null, 8, ["files"])]),
|
|
2232
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plan.warnings, (warning) => {
|
|
2233
|
+
return openBlock(), createElementBlock("p", {
|
|
2234
|
+
key: warning,
|
|
2235
|
+
role: "note",
|
|
2236
|
+
class: "htw:m-0 htw:rounded-lg htw:bg-warn/10 htw:p-3 htw:text-body"
|
|
2237
|
+
}, toDisplayString(warning), 1);
|
|
2238
|
+
}), 128)),
|
|
2239
|
+
createElementVNode("div", _hoisted_7, [createVNode(unref(HstCheckbox), {
|
|
2240
|
+
class: "htw:m-0 htw:flex-row-reverse htw:p-0",
|
|
2241
|
+
title: "Restart dev server when done",
|
|
2242
|
+
"model-value": __props.restart,
|
|
2243
|
+
disabled: __props.starting,
|
|
2244
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("restart", $event === true))
|
|
2245
|
+
}, {
|
|
2246
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [createElementVNode("span", { class: "htw:font-sans htw:font-semibold" }, "Restart dev server when done", -1)])]),
|
|
2247
|
+
_: 1
|
|
2248
|
+
}, 8, ["model-value", "disabled"]), __props.pane ? (openBlock(), createBlock(unref(HstCheckbox), {
|
|
2249
|
+
key: 0,
|
|
2250
|
+
class: "htw:m-0 htw:flex-row-reverse htw:p-0",
|
|
2251
|
+
title: `Open ${__props.pane} after install`,
|
|
2252
|
+
"model-value": __props.openPane,
|
|
2253
|
+
disabled: __props.starting,
|
|
2254
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("open", $event === true))
|
|
2255
|
+
}, {
|
|
2256
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_8, "Open " + toDisplayString(__props.pane) + " after install", 1)]),
|
|
2257
|
+
_: 1
|
|
2258
|
+
}, 8, [
|
|
2259
|
+
"title",
|
|
2260
|
+
"model-value",
|
|
2261
|
+
"disabled"
|
|
2262
|
+
])) : createCommentVNode("", true)])
|
|
2263
|
+
]), createVNode(InstallFooter_default, null, {
|
|
2264
|
+
leading: withCtx(() => [createVNode(unref(HstButton), {
|
|
2265
|
+
color: "flat",
|
|
2266
|
+
disabled: __props.starting,
|
|
2267
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("manual"))
|
|
2268
|
+
}, {
|
|
2269
|
+
default: withCtx(() => [..._cache[9] || (_cache[9] = [createTextVNode(" Copy commands instead ", -1)])]),
|
|
2270
|
+
_: 1
|
|
2271
|
+
}, 8, ["disabled"])]),
|
|
2272
|
+
default: withCtx(() => [
|
|
2273
|
+
createVNode(unref(HstButton), {
|
|
2274
|
+
color: "flat",
|
|
2275
|
+
disabled: __props.starting,
|
|
2276
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("cancel"))
|
|
2277
|
+
}, {
|
|
2278
|
+
default: withCtx(() => [..._cache[10] || (_cache[10] = [createTextVNode(" Cancel ", -1)])]),
|
|
2279
|
+
_: 1
|
|
2280
|
+
}, 8, ["disabled"]),
|
|
2281
|
+
createVNode(unref(HstButton), {
|
|
2282
|
+
disabled: __props.starting,
|
|
2283
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("back"))
|
|
2284
|
+
}, {
|
|
2285
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [createTextVNode(" Back ", -1)])]),
|
|
2286
|
+
_: 1
|
|
2287
|
+
}, 8, ["disabled"]),
|
|
2288
|
+
createVNode(unref(HstButton), {
|
|
2289
|
+
color: "primary",
|
|
2290
|
+
disabled: __props.starting,
|
|
2291
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("install"))
|
|
2292
|
+
}, {
|
|
2293
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [createTextVNode(" Install ", -1)])]),
|
|
2294
|
+
_: 1
|
|
2295
|
+
}, 8, ["disabled"])
|
|
2296
|
+
]),
|
|
2297
|
+
_: 1
|
|
2298
|
+
})], 64);
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2301
|
+
});
|
|
2302
|
+
// src/app/components/marketplace/install/manual-instructions.ts
|
|
2303
|
+
/** Add copyable manager alternatives while retaining reviewed commands and config bytes. */
|
|
2304
|
+
async function manualInstructions(request, detail, reviewed) {
|
|
2305
|
+
const commands = executablePackageManagers.flatMap((name) => {
|
|
2306
|
+
const command = packageCommand({
|
|
2307
|
+
name,
|
|
2308
|
+
workspaceRoot: false
|
|
2309
|
+
}, {
|
|
2310
|
+
...request,
|
|
2311
|
+
version: request.version ?? detail.latest
|
|
2312
|
+
});
|
|
2313
|
+
if (!command) return [];
|
|
2314
|
+
return [{
|
|
2315
|
+
title: `Run with ${name}`,
|
|
2316
|
+
code: name === reviewed.packageManager.name && reviewed.command ? reviewed.command.display : command.display
|
|
2317
|
+
}];
|
|
2318
|
+
});
|
|
2319
|
+
const codes = new Set(commands.map((command) => command.code));
|
|
2320
|
+
const original = reviewed.manual?.steps;
|
|
2321
|
+
if (original && commands.length && commands.every((command) => original.some((step) => step.code === command.code))) return reviewed;
|
|
2322
|
+
const steps = (original ?? manualConfigSteps(request, detail)).filter((step) => !codes.has(step.code ?? "") && !["Install package", "Remove package"].includes(step.title));
|
|
2323
|
+
return {
|
|
2324
|
+
...reviewed,
|
|
2325
|
+
manual: {
|
|
2326
|
+
reason: reviewed.manual?.reason ?? "config-not-literal",
|
|
2327
|
+
steps: [...commands, ...steps]
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
// src/app/components/marketplace/install/use-install-wizard.ts
|
|
2332
|
+
/** One visible wizard visit owns reads; project jobs remain owned by the server. */
|
|
2333
|
+
function useInstallWizard() {
|
|
2334
|
+
const store = useMarketplaceStore();
|
|
2335
|
+
const detail = shallowRef();
|
|
2336
|
+
const values = ref({});
|
|
2337
|
+
const intent = shallowRef();
|
|
2338
|
+
const step = ref(0);
|
|
2339
|
+
const error = ref();
|
|
2340
|
+
const notice = ref();
|
|
2341
|
+
const starting = ref(false);
|
|
2342
|
+
const restarting = store.restarting;
|
|
2343
|
+
const openAfter = ref(false);
|
|
2344
|
+
const manual = shallowRef();
|
|
2345
|
+
const forcedManual = ref(false);
|
|
2346
|
+
const activeJob = shallowRef();
|
|
2347
|
+
const fields = computed(() => (detail.value?.manifest.config.options ?? []).filter((field) => Object.entries(field.when ?? {}).every(([key, value]) => JSON.stringify(values.value[key]) === JSON.stringify(value))));
|
|
2348
|
+
const request = computed(() => {
|
|
2349
|
+
if (!intent.value || !detail.value) return void 0;
|
|
2350
|
+
const options = Object.fromEntries(fields.value.filter((field) => values.value[field.key] !== void 0).map((field) => [field.key, values.value[field.key]]));
|
|
2351
|
+
return {
|
|
2352
|
+
...intent.value,
|
|
2353
|
+
options: JSON.parse(JSON.stringify(options))
|
|
2354
|
+
};
|
|
2355
|
+
});
|
|
2356
|
+
const { plan, loading, error: planError, replan } = useInstallPlan(request);
|
|
2357
|
+
let disposed = false;
|
|
2358
|
+
let detailController;
|
|
2359
|
+
let jobController;
|
|
2360
|
+
let manualRevision = 0;
|
|
2361
|
+
let ignoredJob;
|
|
2362
|
+
const offClose = store.onClose(() => {
|
|
2363
|
+
manualRevision++;
|
|
2364
|
+
detailController?.abort();
|
|
2365
|
+
jobController?.abort();
|
|
2366
|
+
});
|
|
2367
|
+
/** Load declarative fields for the current install request, retaining defaults as literals. */
|
|
2368
|
+
async function load() {
|
|
2369
|
+
detailController?.abort();
|
|
2370
|
+
const change = store.installRequest.value;
|
|
2371
|
+
if (!change) return;
|
|
2372
|
+
const current = detailController = new AbortController();
|
|
2373
|
+
detail.value = void 0;
|
|
2374
|
+
error.value = void 0;
|
|
2375
|
+
try {
|
|
2376
|
+
const options = {
|
|
2377
|
+
signal: current.signal,
|
|
2378
|
+
version: change.version
|
|
2379
|
+
};
|
|
2380
|
+
let result = await store.client.detail(change.id, change.prefs, options);
|
|
2381
|
+
if (!change.version && change.kind === "install" && result.installVersion) result = await store.client.detail(change.id, change.prefs, {
|
|
2382
|
+
...options,
|
|
2383
|
+
version: result.installVersion
|
|
2384
|
+
});
|
|
2385
|
+
if (current.signal.aborted) return;
|
|
2386
|
+
values.value = Object.fromEntries((result.manifest.config.options ?? []).filter((field) => field.default !== void 0).map((field) => [field.key, structuredClone(field.default)]));
|
|
2387
|
+
Object.assign(values.value, change.options);
|
|
2388
|
+
const version = change.version ?? (change.kind === "install" ? result.latest : void 0);
|
|
2389
|
+
intent.value = {
|
|
2390
|
+
...change,
|
|
2391
|
+
...version ? { version } : {},
|
|
2392
|
+
prefs: { ...change.prefs }
|
|
2393
|
+
};
|
|
2394
|
+
detail.value = result;
|
|
2395
|
+
} catch (cause) {
|
|
2396
|
+
if (!current.signal.aborted) error.value = cause instanceof Error ? cause.message : "Could not load options";
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
watch(store.installRequest, load, { immediate: true });
|
|
2400
|
+
/** Build manual commands through existing static planner, preserving reviewed manager command. */
|
|
2401
|
+
async function showManual(source = plan.value) {
|
|
2402
|
+
if (!source || !request.value || !detail.value) return;
|
|
2403
|
+
const revision = ++manualRevision;
|
|
2404
|
+
try {
|
|
2405
|
+
const result = await manualInstructions(request.value, detail.value, source);
|
|
2406
|
+
if (!disposed && revision === manualRevision) manual.value = result;
|
|
2407
|
+
} catch (cause) {
|
|
2408
|
+
if (!disposed) error.value = cause instanceof Error ? cause.message : "Could not load manual steps";
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
watch(request, () => {
|
|
2412
|
+
manualRevision++;
|
|
2413
|
+
if (!store.manualPlan.value) manual.value = void 0;
|
|
2414
|
+
}, { flush: "sync" });
|
|
2415
|
+
watch(plan, (value) => {
|
|
2416
|
+
if (value?.manual) showManual(value);
|
|
2417
|
+
});
|
|
2418
|
+
watch(store.manualPlan, (value) => {
|
|
2419
|
+
if (value) manual.value = value;
|
|
2420
|
+
}, { immediate: true });
|
|
2421
|
+
/** Explicit restart follows amended protocol; no browser code writes project files. */
|
|
2422
|
+
async function restart() {
|
|
2423
|
+
await store.restartJob(activeJob.value);
|
|
2424
|
+
}
|
|
2425
|
+
watch(store.job, (job) => {
|
|
2426
|
+
if (!job || job.jobId === ignoredJob) return;
|
|
2427
|
+
const change = store.installRequest.value;
|
|
2428
|
+
if (job.id === change?.id && job.kind === change.kind && (!change.version || job.version === change.version) || job.status === "running" && job.id === change?.id || job.jobId === activeJob.value?.jobId) activeJob.value = job;
|
|
2429
|
+
}, { immediate: true });
|
|
2430
|
+
/** Admit only a settled, reviewed plan; recover stale hashes and another owner's busy job. */
|
|
2431
|
+
async function install() {
|
|
2432
|
+
if (!plan.value || loading.value || starting.value || plan.value.manual) return;
|
|
2433
|
+
const reviewed = plan.value;
|
|
2434
|
+
const current = jobController = new AbortController();
|
|
2435
|
+
starting.value = true;
|
|
2436
|
+
error.value = void 0;
|
|
2437
|
+
try {
|
|
2438
|
+
const job = await store.startJob(reviewed.planId, reviewed.hash, request.value, openAfter.value ? detail.value?.adds.find((add) => add.kind === "rail-pane")?.contribution : void 0);
|
|
2439
|
+
if (!current.signal.aborted) activeJob.value = job;
|
|
2440
|
+
} catch (cause) {
|
|
2441
|
+
if (current.signal.aborted) return;
|
|
2442
|
+
const code = cause && typeof cause === "object" && "code" in cause ? cause.code : void 0;
|
|
2443
|
+
if (code === "stale") {
|
|
2444
|
+
step.value = 1;
|
|
2445
|
+
notice.value = "Review updated changes";
|
|
2446
|
+
await replan();
|
|
2447
|
+
} else if (code === "busy") {
|
|
2448
|
+
const job = await store.client.currentJob({ signal: current.signal }).catch((failure) => {
|
|
2449
|
+
if (!current.signal.aborted) error.value = failure instanceof Error ? failure.message : "Could not load running job";
|
|
2450
|
+
return null;
|
|
2451
|
+
});
|
|
2452
|
+
if (!current.signal.aborted && job) activeJob.value = job;
|
|
2453
|
+
} else error.value = cause instanceof Error ? cause.message : "Could not start install";
|
|
2454
|
+
} finally {
|
|
2455
|
+
if (!disposed) starting.value = false;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
/** Failures always get a fresh plan and review; alternatives never start automatically. */
|
|
2459
|
+
async function retry(version) {
|
|
2460
|
+
ignoredJob = activeJob.value?.jobId;
|
|
2461
|
+
activeJob.value = void 0;
|
|
2462
|
+
manual.value = void 0;
|
|
2463
|
+
forcedManual.value = false;
|
|
2464
|
+
step.value = 1;
|
|
2465
|
+
error.value = void 0;
|
|
2466
|
+
if (version && intent.value) intent.value = {
|
|
2467
|
+
...intent.value,
|
|
2468
|
+
version
|
|
2469
|
+
};
|
|
2470
|
+
await replan();
|
|
2471
|
+
}
|
|
2472
|
+
/** Keep the policy in the request so a checkbox edit cannot reuse its old hash. */
|
|
2473
|
+
function setRestart(value) {
|
|
2474
|
+
if (intent.value) intent.value = {
|
|
2475
|
+
...intent.value,
|
|
2476
|
+
prefs: {
|
|
2477
|
+
...intent.value.prefs,
|
|
2478
|
+
afterInstall: value ? "restart" : "ask"
|
|
2479
|
+
}
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2482
|
+
/** Manual fallback does not admit a job. */
|
|
2483
|
+
function copyCommands() {
|
|
2484
|
+
forcedManual.value = true;
|
|
2485
|
+
showManual();
|
|
2486
|
+
}
|
|
2487
|
+
onScopeDispose(() => {
|
|
2488
|
+
offClose();
|
|
2489
|
+
disposed = true;
|
|
2490
|
+
manualRevision++;
|
|
2491
|
+
detailController?.abort();
|
|
2492
|
+
jobController?.abort();
|
|
2493
|
+
});
|
|
2494
|
+
return {
|
|
2495
|
+
store,
|
|
2496
|
+
detail,
|
|
2497
|
+
values,
|
|
2498
|
+
fields,
|
|
2499
|
+
intent,
|
|
2500
|
+
plan,
|
|
2501
|
+
loading,
|
|
2502
|
+
step,
|
|
2503
|
+
error: computed(() => error.value ?? store.restartError.value),
|
|
2504
|
+
planError,
|
|
2505
|
+
notice,
|
|
2506
|
+
starting,
|
|
2507
|
+
restarting,
|
|
2508
|
+
openAfter,
|
|
2509
|
+
manual,
|
|
2510
|
+
forcedManual,
|
|
2511
|
+
activeJob,
|
|
2512
|
+
load,
|
|
2513
|
+
replan,
|
|
2514
|
+
install,
|
|
2515
|
+
retry,
|
|
2516
|
+
restart,
|
|
2517
|
+
setRestart,
|
|
2518
|
+
copyCommands
|
|
2519
|
+
};
|
|
2520
|
+
}
|
|
2521
|
+
// src/app/components/marketplace/install/WizardSteps.vue?vue&type=script&setup=true&lang.ts
|
|
2522
|
+
var _hoisted_1$1 = { "aria-label": "Install steps" };
|
|
2523
|
+
var _hoisted_2$1 = { class: "htw:m-0 htw:flex htw:list-none htw:flex-wrap htw:gap-3.5 htw:p-0" };
|
|
2524
|
+
var _hoisted_3$1 = ["aria-current"];
|
|
2525
|
+
var _hoisted_4$1 = { key: 1 };
|
|
2526
|
+
// src/app/components/marketplace/install/WizardSteps.vue
|
|
2527
|
+
var WizardSteps_default = /* @__PURE__ */ defineComponent({
|
|
2528
|
+
__name: "WizardSteps",
|
|
2529
|
+
props: {
|
|
2530
|
+
active: {},
|
|
2531
|
+
locked: { type: Boolean }
|
|
2532
|
+
},
|
|
2533
|
+
emits: ["select"],
|
|
2534
|
+
setup(__props) {
|
|
2535
|
+
/** Fixed workflow order. */
|
|
2536
|
+
const labels = [
|
|
2537
|
+
"Options",
|
|
2538
|
+
"Review",
|
|
2539
|
+
"Install"
|
|
2540
|
+
];
|
|
2541
|
+
return (_ctx, _cache) => {
|
|
2542
|
+
return openBlock(), createElementBlock("nav", _hoisted_1$1, [createElementVNode("ol", _hoisted_2$1, [(openBlock(), createElementBlock(Fragment, null, renderList(labels, (label, index) => {
|
|
2543
|
+
return createElementVNode("li", {
|
|
2544
|
+
key: label,
|
|
2545
|
+
"aria-current": __props.active === index ? "step" : void 0,
|
|
2546
|
+
class: normalizeClass(["htw:flex htw:items-center htw:gap-1.5 htw:text-xs htw:font-semibold", index === __props.active ? "htw:text-text" : "htw:text-muted"])
|
|
2547
|
+
}, [createElementVNode("span", {
|
|
2548
|
+
"aria-hidden": "true",
|
|
2549
|
+
class: normalizeClass(["htw:grid htw:size-5 htw:shrink-0 htw:place-items-center htw:rounded-full htw:text-[11px]", index === __props.active ? "htw:bg-accent htw:text-surface" : index < __props.active ? "htw:bg-accent-soft htw:text-accent-text" : "htw:bg-chip"])
|
|
2550
|
+
}, toDisplayString(index < __props.active ? "✓" : index + 1), 3), index < __props.active && !__props.locked ? (openBlock(), createBlock(unref(HstButton), {
|
|
2551
|
+
key: 0,
|
|
2552
|
+
color: "flat",
|
|
2553
|
+
class: "htw:h-auto htw:p-0 htw:text-xs",
|
|
2554
|
+
onClick: ($event) => _ctx.$emit("select", index)
|
|
2555
|
+
}, {
|
|
2556
|
+
default: withCtx(() => [createTextVNode(toDisplayString(label), 1)]),
|
|
2557
|
+
_: 2
|
|
2558
|
+
}, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(label), 1))], 10, _hoisted_3$1);
|
|
2559
|
+
}), 64))])]);
|
|
2560
|
+
};
|
|
2561
|
+
}
|
|
2562
|
+
});
|
|
2563
|
+
// src/app/components/marketplace/install/MarketplaceInstall.vue?vue&type=script&setup=true&lang.ts
|
|
2564
|
+
var _hoisted_1 = {
|
|
2565
|
+
"aria-label": "Install plugin",
|
|
2566
|
+
class: "htw:min-h-0 htw:min-w-0 htw:flex-1 htw:overflow-auto htw:bg-canvas htw:px-6 htw:py-6 htw:md:px-8"
|
|
2567
|
+
};
|
|
2568
|
+
var _hoisted_2 = {
|
|
2569
|
+
"aria-label": "Install breadcrumb",
|
|
2570
|
+
class: "htw:flex htw:flex-wrap htw:items-center htw:gap-1.5 htw:text-[13px] htw:font-semibold htw:text-muted"
|
|
2571
|
+
};
|
|
2572
|
+
var _hoisted_3 = ["aria-labelledby", "aria-label"];
|
|
2573
|
+
var _hoisted_4 = {
|
|
2574
|
+
key: 0,
|
|
2575
|
+
class: "htw:flex htw:flex-wrap htw:items-center htw:gap-3.5 htw:border-0 htw:border-b htw:border-solid htw:border-border htw:px-[22px] htw:py-[18px]"
|
|
2576
|
+
};
|
|
2577
|
+
var _hoisted_5 = {
|
|
2578
|
+
key: 1,
|
|
2579
|
+
role: "status",
|
|
2580
|
+
class: "htw:mx-[22px] htw:my-3 htw:rounded-lg htw:bg-accent-soft htw:p-3 htw:text-accent-text"
|
|
2581
|
+
};
|
|
2582
|
+
// src/app/components/marketplace/install/MarketplaceInstall.vue
|
|
2583
|
+
var MarketplaceInstall_default = /* @__PURE__ */ defineComponent({
|
|
2584
|
+
__name: "MarketplaceInstall",
|
|
2585
|
+
setup(__props) {
|
|
2586
|
+
const { store, detail, values, fields, intent, plan, loading, step, error, planError, notice, starting, restarting, openAfter, manual, forcedManual, activeJob, load, replan, install, retry, restart, setRestart, copyCommands } = useInstallWizard();
|
|
2587
|
+
const titleId = `marketplace-install-${useId()}`;
|
|
2588
|
+
/** A busy job can belong to a different package than requested detail. */
|
|
2589
|
+
const pluginName = computed(() => activeJob.value && activeJob.value.id !== detail.value?.id ? activeJob.value.id : detail.value?.displayName ?? store.selectedId.value ?? "plugin");
|
|
2590
|
+
/** Manual recovery uses normal card even when retained job failed. */
|
|
2591
|
+
const failed = computed(() => !manual.value && activeJob.value?.status === "failed");
|
|
2592
|
+
const title = computed(() => {
|
|
2593
|
+
if (manual.value) return `Install ${pluginName.value} manually`;
|
|
2594
|
+
if (activeJob.value) {
|
|
2595
|
+
const status = activeJob.value.status;
|
|
2596
|
+
return `${status === "succeeded" ? "Installed" : status === "cancelled" ? "Install cancelled" : "Installing"} ${pluginName.value}`;
|
|
2597
|
+
}
|
|
2598
|
+
return step.value === 1 ? "Review project changes" : `Install ${pluginName.value}`;
|
|
2599
|
+
});
|
|
2600
|
+
/** Return to selected plugin without starting or cancelling server work. */
|
|
2601
|
+
function cancel() {
|
|
2602
|
+
const id = store.selectedId.value;
|
|
2603
|
+
store.back();
|
|
2604
|
+
if (id && (store.view.value !== "detail" || store.selectedId.value !== id)) store.showPlugin(id);
|
|
2605
|
+
}
|
|
2606
|
+
const panes = useContributionLookup("shell.pane");
|
|
2607
|
+
const paneLabel = computed(() => detail.value?.adds.find((add) => add.kind === "rail-pane")?.text);
|
|
2608
|
+
const pluginId = ref();
|
|
2609
|
+
/** Keep reviewed manifest destination when one plugin registers several panes. */
|
|
2610
|
+
const pane = computed(() => {
|
|
2611
|
+
const destination = store.postInstall.value?.jobId === activeJob.value?.jobId ? store.postInstall.value?.openPane : void 0;
|
|
2612
|
+
return panes.list().find((item) => item.pluginId === pluginId.value && (!destination || item.id === `${pluginId.value}:${destination}`));
|
|
2613
|
+
});
|
|
2614
|
+
const loaded = computed(() => activeJob.value?.status === "succeeded" && activeJob.value.steps.some((item) => item.id === "load" && item.state === "done"));
|
|
2615
|
+
let disposed = false;
|
|
2616
|
+
watch([loaded, () => activeJob.value?.id], async ([ready, id]) => {
|
|
2617
|
+
pluginId.value = void 0;
|
|
2618
|
+
if (!ready || !id) return;
|
|
2619
|
+
try {
|
|
2620
|
+
const resolved = await workbenchPluginId(id);
|
|
2621
|
+
if (!disposed && activeJob.value?.id === id && loaded.value) pluginId.value = resolved;
|
|
2622
|
+
} catch {}
|
|
2623
|
+
}, { immediate: true });
|
|
2624
|
+
onScopeDispose(() => {
|
|
2625
|
+
disposed = true;
|
|
2626
|
+
});
|
|
2627
|
+
const canOpenPane = computed(() => loaded.value && !!pane.value);
|
|
2628
|
+
/** Open only a registered contribution after the server load check succeeds. */
|
|
2629
|
+
function openPane() {
|
|
2630
|
+
if (!canOpenPane.value || !pane.value || !panes.workbench) return;
|
|
2631
|
+
panes.workbench.context.navigation.openPane(pane.value.id);
|
|
2632
|
+
if (activeJob.value) store.acknowledgePostInstall(activeJob.value.jobId);
|
|
2633
|
+
store.close();
|
|
2634
|
+
}
|
|
2635
|
+
watch(canOpenPane, (available) => {
|
|
2636
|
+
if (available && store.postInstall.value?.jobId === activeJob.value?.jobId && store.postInstall.value?.openPane) openPane();
|
|
2637
|
+
});
|
|
2638
|
+
return (_ctx, _cache) => {
|
|
2639
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [createElementVNode("div", { class: normalizeClass(["htw:mx-auto htw:flex htw:w-full htw:flex-col htw:gap-3.5", failed.value ? "htw:max-w-[600px]" : "htw:max-w-[920px]"]) }, [createElementVNode("nav", _hoisted_2, [
|
|
2640
|
+
createVNode(unref(HstButton), {
|
|
2641
|
+
color: "flat",
|
|
2642
|
+
class: "htw:h-auto htw:p-0",
|
|
2643
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(store).setView("all"))
|
|
2644
|
+
}, {
|
|
2645
|
+
default: withCtx(() => [..._cache[9] || (_cache[9] = [createTextVNode(" All plugins ", -1)])]),
|
|
2646
|
+
_: 1
|
|
2647
|
+
}),
|
|
2648
|
+
_cache[10] || (_cache[10] = createElementVNode("span", { "aria-hidden": "true" }, "/", -1)),
|
|
2649
|
+
createVNode(unref(HstButton), {
|
|
2650
|
+
color: "flat",
|
|
2651
|
+
class: "htw:h-auto htw:p-0",
|
|
2652
|
+
onClick: cancel
|
|
2653
|
+
}, {
|
|
2654
|
+
default: withCtx(() => [createTextVNode(toDisplayString(pluginName.value), 1)]),
|
|
2655
|
+
_: 1
|
|
2656
|
+
}),
|
|
2657
|
+
_cache[11] || (_cache[11] = createElementVNode("span", { "aria-hidden": "true" }, "/", -1)),
|
|
2658
|
+
_cache[12] || (_cache[12] = createElementVNode("span", {
|
|
2659
|
+
"aria-current": "page",
|
|
2660
|
+
class: "htw:text-text"
|
|
2661
|
+
}, "Install", -1))
|
|
2662
|
+
]), createElementVNode("section", {
|
|
2663
|
+
"aria-labelledby": failed.value ? void 0 : titleId,
|
|
2664
|
+
"aria-label": failed.value ? `Install ${pluginName.value}` : void 0,
|
|
2665
|
+
class: "htw:flex htw:flex-col htw:overflow-hidden htw:rounded-2xl htw:border htw:border-solid htw:border-border htw:bg-surface htw:text-[13px] htw:text-text"
|
|
2666
|
+
}, [
|
|
2667
|
+
!failed.value ? (openBlock(), createElementBlock("header", _hoisted_4, [createElementVNode("h1", {
|
|
2668
|
+
id: titleId,
|
|
2669
|
+
class: "htw:m-0 htw:flex-1 htw:text-[17px] htw:font-extrabold"
|
|
2670
|
+
}, toDisplayString(title.value), 1), !unref(manual) ? (openBlock(), createBlock(WizardSteps_default, {
|
|
2671
|
+
key: 0,
|
|
2672
|
+
active: unref(activeJob) ? 2 : unref(step),
|
|
2673
|
+
locked: !!unref(activeJob) || unref(starting),
|
|
2674
|
+
onSelect: _cache[1] || (_cache[1] = ($event) => step.value = $event)
|
|
2675
|
+
}, null, 8, ["active", "locked"])) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
2676
|
+
unref(notice) ? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString(unref(notice)), 1)) : createCommentVNode("", true),
|
|
2677
|
+
unref(error) || unref(planError) ? (openBlock(), createBlock(WorkbenchErrorState_default, {
|
|
2678
|
+
key: 2,
|
|
2679
|
+
title: "Couldn't prepare install",
|
|
2680
|
+
class: "htw:p-[22px]",
|
|
2681
|
+
flush: ""
|
|
2682
|
+
}, {
|
|
2683
|
+
actions: withCtx(() => [createVNode(unref(HstButton), {
|
|
2684
|
+
color: "flat",
|
|
2685
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(detail) ? unref(replan)() : unref(load)())
|
|
2686
|
+
}, {
|
|
2687
|
+
default: withCtx(() => [..._cache[13] || (_cache[13] = [createTextVNode(" Retry ", -1)])]),
|
|
2688
|
+
_: 1
|
|
2689
|
+
})]),
|
|
2690
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(error) ?? unref(planError)) + " ", 1)]),
|
|
2691
|
+
_: 1
|
|
2692
|
+
})) : createCommentVNode("", true),
|
|
2693
|
+
unref(manual) ? (openBlock(), createBlock(ManualStep_default, {
|
|
2694
|
+
key: 3,
|
|
2695
|
+
plan: unref(manual),
|
|
2696
|
+
forced: unref(forcedManual),
|
|
2697
|
+
onDone: unref(store).close
|
|
2698
|
+
}, null, 8, [
|
|
2699
|
+
"plan",
|
|
2700
|
+
"forced",
|
|
2701
|
+
"onDone"
|
|
2702
|
+
])) : unref(activeJob)?.status === "failed" ? (openBlock(), createBlock(FailureStep_default, {
|
|
2703
|
+
key: 4,
|
|
2704
|
+
job: unref(activeJob),
|
|
2705
|
+
onRetry: _cache[3] || (_cache[3] = ($event) => unref(retry)()),
|
|
2706
|
+
onVersion: unref(retry),
|
|
2707
|
+
onManual: unref(copyCommands)
|
|
2708
|
+
}, null, 8, [
|
|
2709
|
+
"job",
|
|
2710
|
+
"onVersion",
|
|
2711
|
+
"onManual"
|
|
2712
|
+
])) : unref(activeJob) ? (openBlock(), createBlock(ProgressStep_default, {
|
|
2713
|
+
key: 5,
|
|
2714
|
+
job: unref(activeJob),
|
|
2715
|
+
"can-open-pane": canOpenPane.value,
|
|
2716
|
+
restarting: unref(restarting),
|
|
2717
|
+
onBackground: _cache[4] || (_cache[4] = ($event) => unref(store).setView("all")),
|
|
2718
|
+
onRestart: unref(restart),
|
|
2719
|
+
onOpen: openPane,
|
|
2720
|
+
onDone: unref(store).close
|
|
2721
|
+
}, null, 8, [
|
|
2722
|
+
"job",
|
|
2723
|
+
"can-open-pane",
|
|
2724
|
+
"restarting",
|
|
2725
|
+
"onRestart",
|
|
2726
|
+
"onDone"
|
|
2727
|
+
])) : !unref(store).installRequest.value ? (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
2728
|
+
key: 6,
|
|
2729
|
+
icon: "plug",
|
|
2730
|
+
title: "Select a plugin",
|
|
2731
|
+
tone: "neutral"
|
|
2732
|
+
})) : !unref(detail) ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [!unref(error) ? (openBlock(), createBlock(WorkbenchLoadingState_default, {
|
|
2733
|
+
key: 0,
|
|
2734
|
+
title: "Loading options",
|
|
2735
|
+
immediate: ""
|
|
2736
|
+
})) : createCommentVNode("", true)], 64)) : unref(step) === 1 && unref(plan) && !unref(loading) ? (openBlock(), createBlock(ReviewStep_default, {
|
|
2737
|
+
key: 8,
|
|
2738
|
+
plan: unref(plan),
|
|
2739
|
+
plugin: unref(detail),
|
|
2740
|
+
restart: unref(intent)?.prefs.afterInstall === "restart",
|
|
2741
|
+
pane: paneLabel.value,
|
|
2742
|
+
"open-pane": unref(openAfter),
|
|
2743
|
+
starting: unref(starting),
|
|
2744
|
+
onRestart: unref(setRestart),
|
|
2745
|
+
onOpen: _cache[5] || (_cache[5] = ($event) => openAfter.value = $event),
|
|
2746
|
+
onInstall: unref(install),
|
|
2747
|
+
onManual: unref(copyCommands),
|
|
2748
|
+
onBack: _cache[6] || (_cache[6] = ($event) => step.value = 0),
|
|
2749
|
+
onCancel: cancel
|
|
2750
|
+
}, null, 8, [
|
|
2751
|
+
"plan",
|
|
2752
|
+
"plugin",
|
|
2753
|
+
"restart",
|
|
2754
|
+
"pane",
|
|
2755
|
+
"open-pane",
|
|
2756
|
+
"starting",
|
|
2757
|
+
"onRestart",
|
|
2758
|
+
"onInstall",
|
|
2759
|
+
"onManual"
|
|
2760
|
+
])) : unref(step) === 1 ? (openBlock(), createBlock(WorkbenchLoadingState_default, {
|
|
2761
|
+
key: 9,
|
|
2762
|
+
title: "Planning changes",
|
|
2763
|
+
immediate: ""
|
|
2764
|
+
})) : unref(intent) ? (openBlock(), createBlock(OptionsStep_default, {
|
|
2765
|
+
key: 10,
|
|
2766
|
+
fields: unref(fields),
|
|
2767
|
+
values: unref(values),
|
|
2768
|
+
plan: unref(plan),
|
|
2769
|
+
loading: unref(loading),
|
|
2770
|
+
onChange: _cache[7] || (_cache[7] = (key, value) => unref(values)[key] = value),
|
|
2771
|
+
onContinue: _cache[8] || (_cache[8] = ($event) => step.value = 1),
|
|
2772
|
+
onCancel: cancel
|
|
2773
|
+
}, null, 8, [
|
|
2774
|
+
"fields",
|
|
2775
|
+
"values",
|
|
2776
|
+
"plan",
|
|
2777
|
+
"loading"
|
|
2778
|
+
])) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
2779
|
+
key: 11,
|
|
2780
|
+
icon: "plug",
|
|
2781
|
+
title: "Select a plugin",
|
|
2782
|
+
tone: "neutral"
|
|
2783
|
+
}))
|
|
2784
|
+
], 8, _hoisted_3)], 2)]);
|
|
2785
|
+
};
|
|
2786
|
+
}
|
|
2787
|
+
});
|
|
2788
|
+
// src/app/components/marketplace/shell/MarketplaceView.vue
|
|
2789
|
+
var MarketplaceView_default = /* @__PURE__ */ defineComponent({
|
|
2790
|
+
__name: "MarketplaceView",
|
|
2791
|
+
setup(__props) {
|
|
2792
|
+
const store = useMarketplaceStore();
|
|
2793
|
+
return (_ctx, _cache) => {
|
|
2794
|
+
return unref(store).view.value === "discover" ? (openBlock(), createBlock(MarketplaceDiscover_default, { key: 0 })) : unref(store).view.value === "all" ? (openBlock(), createBlock(MarketplaceAll_default, { key: 1 })) : unref(store).view.value === "detail" ? (openBlock(), createBlock(MarketplaceDetail_default, { key: 2 })) : (openBlock(), createBlock(MarketplaceInstall_default, { key: 3 }));
|
|
2795
|
+
};
|
|
2796
|
+
}
|
|
2797
|
+
});
|
|
2798
|
+
export { MarketplaceView_default as default };
|