@histoire/app 1.0.0-beta.2 → 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.
Files changed (137) hide show
  1. package/dist/app/style/theme.css +8 -0
  2. package/dist/bundled/app.css +2 -2
  3. package/dist/bundled/chunks/{AboutSection-D3IIVsiV.js → AboutSection-mX7J6xrz.js} +2 -2
  4. package/dist/bundled/chunks/{AgentCursor-Cg5SLa2H.js → AgentCursor-DcVxonMC.js} +2 -2
  5. package/dist/bundled/chunks/{AgentPlanApproval-D4hnGlYs.js → AgentPlanApproval-22I_Lbhn.js} +1 -1
  6. package/dist/bundled/chunks/{AgentsSection-CJGS9C2q.js → AgentsSection-DWmUKCX-.js} +1 -1
  7. package/dist/bundled/chunks/{AiPanel-B9QWRuSg.js → AiPanel-BICtbtCE.js} +4 -4
  8. package/dist/bundled/chunks/{AppearanceSection-DMjmDr1Y.js → AppearanceSection-maVgcfMk.js} +6 -6
  9. package/dist/bundled/chunks/{BasePopover-CQQ8wKev.js → BasePopover-B3Y5H1gd.js} +1 -1
  10. package/dist/bundled/chunks/{CommentsCanvasOverlay-UX-oYgnx.js → CommentsCanvasOverlay-DhqtbJNX.js} +5 -5
  11. package/dist/bundled/chunks/{DevBrowseStatus-D2rIG8uC.js → DevBrowseStatus-B6cLRu19.js} +2 -2
  12. package/dist/bundled/chunks/{DocsTab-BR3BktyF.js → DocsTab-PpFKAC6Q.js} +4 -4
  13. package/dist/bundled/chunks/{EventsTab-BP0hCGqL.js → EventsTab-DLVYcX1N.js} +3 -3
  14. package/dist/bundled/chunks/{GeneralSection-CT_-32qT.js → GeneralSection-dvmJUgqN.js} +1 -1
  15. package/dist/bundled/chunks/{InspectionPanel-C6kUdJj9.js → InspectionPanel-DDuT3guJ.js} +2 -2
  16. package/dist/bundled/chunks/{InspectorGuideLink-Bqlz1aaY.js → InspectorGuideLink-7Ui_Y2Wd.js} +1 -1
  17. package/dist/bundled/chunks/{MarkdownPage-DD7XyGkq.js → MarkdownPage-D_LpsCvG.js} +3 -3
  18. package/dist/bundled/chunks/{MarketplaceUpdateBody-B1cn_zeo.js → MarketplaceUpdateBody-BtLPpA7F.js} +2 -2
  19. package/dist/bundled/chunks/{MarketplaceView-eDPLtc_x.js → MarketplaceView-C1sVFRsq.js} +39 -10
  20. package/dist/bundled/chunks/{MatrixInspector-eIr_N5eH.js → MatrixInspector-wqkJJnuf.js} +3 -3
  21. package/dist/bundled/chunks/{MatrixView-CDmN-Kl9.js → MatrixView-D-Snu47M.js} +82 -40
  22. package/dist/bundled/chunks/{MatrixVisualActions-Cx3QzDTD.js → MatrixVisualActions-D3b-cp7N.js} +2 -2
  23. package/dist/bundled/chunks/{McpActivity-CiK3jUTY.js → McpActivity-r2CFr-ny.js} +1 -1
  24. package/dist/bundled/chunks/{McpSection-DRGzPGXO.js → McpSection-swh7qlM0.js} +1 -1
  25. package/dist/bundled/chunks/{NeedsAttention-C5zjd6RT.js → NeedsAttention-Cf6ihlT0.js} +2 -2
  26. package/dist/bundled/chunks/{PermissionPrompt-i5VbZCCJ.js → PermissionPrompt-CXTPfiIu.js} +1 -1
  27. package/dist/bundled/chunks/{PluginsSection-B3ZWAjrk.js → PluginsSection-Dhv2haa3.js} +6 -3
  28. package/dist/bundled/chunks/{ScreenshotPopover-DWcV_NAf.js → ScreenshotPopover-BZ37-dfK.js} +4 -4
  29. package/dist/bundled/chunks/{SettingsPage-BvT1FOl7.js → SettingsPage-D6ZOAgS9.js} +11 -11
  30. package/dist/bundled/chunks/{ShortcutsSection-D3-4e5Ug.js → ShortcutsSection-EK2-e56v.js} +1 -1
  31. package/dist/bundled/chunks/{StoryInspector-BJKzoeHc.js → StoryInspector-DCNgw0x8.js} +14 -11
  32. package/dist/bundled/chunks/{TestsPanel-CpBld3wM.js → TestsPanel-D1USqA8I.js} +5 -5
  33. package/dist/bundled/chunks/{TestsSection-CEXW49Ge.js → TestsSection-CIkkHlyK.js} +1 -1
  34. package/dist/bundled/chunks/{TestsTab-B-ZNDgGi.js → TestsTab-ykf9zwmG.js} +3 -3
  35. package/dist/bundled/chunks/{ThreadMessage-CPRLVXXQ.js → ThreadMessage-DxrvoIea.js} +5 -5
  36. package/dist/bundled/chunks/{ToolbarPopover-Nd-us4Fg.js → ToolbarPopover-CXizdbQq.js} +3 -3
  37. package/dist/bundled/chunks/{ViewportsSection-3EWu6WSc.js → ViewportsSection-D6mpKTSM.js} +1 -1
  38. package/dist/bundled/chunks/{VisualViewer-DV5mNFT8.js → VisualViewer-BQqfw1ov.js} +2 -2
  39. package/dist/bundled/chunks/{WorkbenchPanelAction-Cl68QrDs.js → WorkbenchPanelAction-SLby10Vh.js} +6 -2
  40. package/dist/bundled/chunks/{WorkbenchVirtualList-CUTamRgO.js → WorkbenchVirtualList-HCZiNo7p.js} +1 -1
  41. package/dist/bundled/chunks/{background-CG5-SPiv.js → background-CUUIkZVL.js} +7 -1
  42. package/dist/bundled/chunks/{canvas-settings-EP62RnvB.js → canvas-settings-Cw7AXzFG.js} +31 -13
  43. package/dist/bundled/chunks/{capture-SFV9pF9b.js → capture-DxD6llwl.js} +1 -1
  44. package/dist/bundled/chunks/{color-scheme-mhmCnofm.js → color-scheme-zLURTKoT.js} +1 -0
  45. package/dist/bundled/chunks/{content-view-Bpn8As7f.js → content-view-ChEpdsxh.js} +2 -2
  46. package/dist/bundled/chunks/{controls-view-COcHf8Pm.js → controls-view-CtDADD0e.js} +3 -3
  47. package/dist/bundled/chunks/{explorer-view-5gTgnjcf.js → explorer-view-B717fDtg.js} +6 -4
  48. package/dist/bundled/chunks/{extensions-DUXM9uEy.js → extensions-BtOjYv3e.js} +11 -2
  49. package/dist/bundled/chunks/{frame-ledger-BHZ0nJjD.js → frame-ledger-C67dpCuY.js} +160 -45
  50. package/dist/bundled/chunks/{frame-screenshot-D9R_xDns.js → frame-screenshot-IEmQR7TR.js} +1 -1
  51. package/dist/bundled/chunks/{icons-Bd36WZPu.js → icons-DoUVE4X3.js} +2 -2
  52. package/dist/bundled/chunks/{local-mount-CCa2jcqi.js → local-mount-CQ14I_16.js} +2 -1
  53. package/dist/bundled/chunks/{marketplace-DKeNfni-.js → marketplace-BE5IMmf3.js} +9 -3
  54. package/dist/bundled/chunks/{measurement-DfNeNMZe.js → measurement-BPE7RMeb.js} +1 -1
  55. package/dist/bundled/chunks/{model-DhvdMZzS.js → model-CIFxQfDH.js} +1 -1
  56. package/dist/bundled/chunks/{navigation-view-GU5-aPWL.js → navigation-view-Co43QbrR.js} +2 -2
  57. package/dist/bundled/chunks/{ownership-004rrffQ.js → ownership-BVQ3d672.js} +1 -1
  58. package/dist/bundled/chunks/{selection-DQJWdqhl.js → selection-BTc1fRMu.js} +1 -1
  59. package/dist/bundled/chunks/{settings-DC0gilMg.js → settings-BbefKI5N.js} +1 -1
  60. package/dist/bundled/chunks/{src-BazVZNon.js → src-CDZfcmuw.js} +7 -1
  61. package/dist/bundled/chunks/{tests-view-B9J9Gvpt.js → tests-view-RYpujVD_.js} +2 -2
  62. package/dist/bundled/chunks/{use-install-plan-ChZg4Xyq.js → use-install-plan-D0tiW2wu.js} +1 -1
  63. package/dist/bundled/chunks/{visual-CId9zv09.js → visual-nnXRPOP8.js} +1 -1
  64. package/dist/bundled/index.js +580 -313
  65. package/dist/embed/EmbedDocument.vue_vue_type_script_setup_true_lang.js +6 -1
  66. package/dist/embed/adapters/explorer-session.js +2 -1
  67. package/dist/embed/adapters/explorer-view.js +1 -0
  68. package/dist/embed/adapters/local-mount.js +2 -1
  69. package/dist/embed/adapters/runtime-frame.js +7 -1
  70. package/dist/embed/adapters/sandbox-urls.d.ts +2 -0
  71. package/dist/embed/adapters/sandbox-urls.js +1 -0
  72. package/dist/embed/app.css +2 -2
  73. package/dist/embed/handshake.js +5 -2
  74. package/dist/embed/packages/histoire-vue/src/components/embed/HistoireEmbed.js +6 -0
  75. package/dist/embed/packages/histoire-vue/src/components/preview/surface.js +11 -2
  76. package/dist/embed/surfaces.d.ts +2 -0
  77. package/dist/style.css +57 -13
  78. package/package.json +8 -8
  79. package/src/app/components/base/overflow/BaseOverflowToolbar.vue +1 -1
  80. package/src/app/components/base/overflow/BaseOverflowToolbarItem.vue +1 -1
  81. package/src/app/components/base/popover/BasePopover.vue +1 -1
  82. package/src/app/components/canvas/CanvasFrame.vue +47 -8
  83. package/src/app/components/canvas/CanvasReplicaPreview.vue +3 -1
  84. package/src/app/components/canvas/CanvasSingleVariant.vue +10 -5
  85. package/src/app/components/canvas/CanvasStatus.vue +6 -2
  86. package/src/app/components/canvas/CanvasViewport.vue +29 -10
  87. package/src/app/components/canvas/FramePaddingAligners.vue +44 -0
  88. package/src/app/components/canvas/SingleVariantResizeHandles.vue +3 -0
  89. package/src/app/components/canvas/frame-layout.ts +44 -23
  90. package/src/app/components/canvas/frame-props-override.ts +16 -2
  91. package/src/app/components/canvas/matrix/MatrixCell.vue +19 -6
  92. package/src/app/components/canvas/matrix/MatrixView.vue +10 -8
  93. package/src/app/components/canvas/matrix/matrix-layout.ts +32 -14
  94. package/src/app/components/canvas/matrix/matrix-registration.ts +4 -4
  95. package/src/app/components/canvas/single-resize.ts +4 -2
  96. package/src/app/components/canvas/single-viewport.ts +5 -0
  97. package/src/app/components/canvas/story-frame-size.ts +15 -0
  98. package/src/app/components/canvas/toolbar/ArrangeSwitch.vue +1 -1
  99. package/src/app/components/canvas/toolbar/CanvasToolbar.vue +1 -1
  100. package/src/app/components/canvas/toolbar/SearchMatchStepper.vue +1 -1
  101. package/src/app/components/canvas/toolbar/ToolSwitch.vue +1 -1
  102. package/src/app/components/canvas/toolbar/ViewportMenu.vue +46 -16
  103. package/src/app/components/canvas/toolbar/ZoomMenu.vue +13 -11
  104. package/src/app/components/canvas/toolbar/viewport-size.ts +14 -0
  105. package/src/app/components/canvas/useCanvasVariantSize.ts +24 -6
  106. package/src/app/components/canvas/useSingleVariantGeometry.ts +7 -4
  107. package/src/app/components/comments/prompt/AttachMenuPanel.vue +1 -1
  108. package/src/app/components/comments/prompt/PromptSuggestions.vue +1 -1
  109. package/src/app/components/embed/EmbedMenu.vue +8 -6
  110. package/src/app/components/inspector/InspectorTabs.vue +1 -1
  111. package/src/app/components/inspector/inspection/plugin.ts +1 -1
  112. package/src/app/components/marketplace/browse/CatalogState.vue +3 -0
  113. package/src/app/components/marketplace/detail/DetailHeader.vue +13 -5
  114. package/src/app/components/marketplace/install/use-install-wizard.ts +7 -2
  115. package/src/app/components/menu/ContextMenu.vue +1 -1
  116. package/src/app/components/menu/SubMenu.vue +1 -1
  117. package/src/app/components/pages/settings/PluginsSection.vue +4 -0
  118. package/src/app/components/pages/settings/plugins/use-plugin-updates.ts +3 -3
  119. package/src/app/components/shell/WorkbenchApp.vue +2 -2
  120. package/src/app/components/shell/WorkbenchPanelAction.vue +5 -3
  121. package/src/app/composables/canvas-settings.ts +23 -9
  122. package/src/app/standalone/workbench.ts +2 -0
  123. package/src/app/stores/canvas.ts +47 -7
  124. package/src/app/stores/marketplace.ts +1 -0
  125. package/src/app/stores/story-canvas-views.ts +15 -2
  126. package/src/app/style/theme.css +8 -0
  127. package/src/app/util/background.ts +7 -0
  128. package/src/app/util/frame-actions.ts +6 -0
  129. package/src/app/util/marketplace-client.ts +5 -2
  130. package/src/embed/EmbedDocument.vue +1 -1
  131. package/src/embed/adapters/explorer-session.ts +2 -2
  132. package/src/embed/adapters/explorer-view.ts +1 -1
  133. package/src/embed/adapters/local-mount.ts +1 -1
  134. package/src/embed/adapters/runtime-frame.ts +6 -1
  135. package/src/embed/adapters/sandbox-urls.ts +3 -0
  136. package/src/embed/handshake.ts +4 -2
  137. package/src/embed/surfaces.ts +2 -0
@@ -67,6 +67,14 @@
67
67
  50% { opacity: 1; }
68
68
  }
69
69
 
70
+ /* Keep menu items at their intrinsic heights when a panel has to scroll. */
71
+ @utility menu-rows {
72
+ display: grid;
73
+ grid-template-columns: minmax(0, 1fr);
74
+ align-content: start;
75
+ row-gap: 1px;
76
+ }
77
+
70
78
  /* Keep the existing markdown contract while typography supplies structural defaults. */
71
79
  @utility prose {
72
80
  --tw-prose-invert-quote-borders: rgb(var(--_histoire-color-gray-800) / var(--_histoire-color-gray-800-alpha, 1));
@@ -161,7 +161,7 @@ img.colorize-black[data-v-80027ef8] { filter: grayscale(100) brightness(0);
161
161
  --histoire-control-resolved-on-accent: var(--histoire-control-on-accent, var(--histoire-accent-foreground, #0d0e11));
162
162
  color-scheme: dark;
163
163
  }.histoire-wrapper { display: flex; flex-direction: column; gap: var(--histoire-control-gap, 8px); min-width: 0; max-width: 100%; padding: var(--histoire-control-wrapper-padding, 8px); margin: 0 0 var(--histoire-control-margin, 10px); }.histoire-wrapper:where([data-layout="inline"]) { display: inline-flex; padding: 0; margin: 0; vertical-align: middle; }.histoire-wrapper:where([data-layout="horizontal"]) { flex-direction: row; align-items: center; }.histoire-control-label { width: 100%; display: flex; align-items: baseline; gap: 8px; min-width: 0; font-family: var(--histoire-font-mono, "JetBrains Mono", ui-monospace, monospace); }.histoire-control-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.histoire-control-label-actions { display: inline-flex; flex: none; align-items: center; }.histoire-control-type { margin-inline-start: auto; color: var(--histoire-control-resolved-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.histoire-control-content { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; }.histoire-control-value { display: block; flex: 1; min-width: 0; max-width: 100%; }.histoire-control-actions { display: inline-flex; flex: none; align-items: center; gap: 4px; }.histoire-prop-control { border-radius: var(--histoire-radius-button, 9px); }.histoire-prop-control:is(:hover, :focus-within) { background: color-mix(in srgb, var(--histoire-control-resolved-text) 3%, transparent); }:where(.histoire-prop-control) .histoire-control-label-actions { visibility: hidden; opacity: 0; pointer-events: none; }:where(.histoire-prop-control):is(:hover, :focus-within) .histoire-control-label-actions { visibility: visible; opacity: 1; pointer-events: auto; }:where(.histoire-prop-control) .histoire-control-label,
164
- :where(.histoire-prop-control-unavailable) .histoire-control-label { align-items: center; }.histoire-prop-control-reset { --histoire-icon-button-size: 24px; border-radius: 6px; }.histoire-prop-control-reset-icon { display: block; flex: none; color: var(--histoire-control-resolved-text); }.histoire-prop-control-unavailable { display: flex; flex-direction: column; gap: var(--histoire-control-gap, 8px); padding: var(--histoire-control-wrapper-padding, 8px); margin: 0 0 var(--histoire-control-margin, 10px); }:where(.histoire-wrapper):where([data-layout="horizontal"]) .histoire-control-label { width: auto; flex: none; }:where(.histoire-wrapper):where([data-layout="horizontal"]) .histoire-control-content { width: auto; flex: 1; }:where(.histoire-wrapper):where([data-layout="horizontal"]):has(.histoire-switch-input, .histoire-simple-checkbox) .histoire-control-label { flex: 1; }:where(.histoire-wrapper):where([data-layout="horizontal"]):has(.histoire-switch-input, .histoire-simple-checkbox) .histoire-control-content { flex: none; }.histoire-control-field, .histoire-select-trigger, .__histoire-json-code { box-sizing: border-box; width: 100%; min-width: 0; min-height: var(--histoire-control-height, 34px); margin: 0; padding: var(--histoire-control-padding, 7px) 9px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; background: var(--histoire-control-resolved-input); color: inherit; font: inherit; }textarea.histoire-control-field { resize: vertical; }.histoire-control-field::placeholder { color: var(--histoire-control-resolved-muted); opacity: 1; }:is(.histoire-control-field, .histoire-select-trigger):focus, .__histoire-json-code:focus-within { outline: none; border-color: var(--histoire-control-resolved-accent); }.histoire-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: var(--histoire-control-padding, 7px) 10px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 9px; background: var(--histoire-control-resolved-surface); cursor: pointer; }.histoire-button:where([data-color="flat"]):is([aria-pressed="true"], [aria-selected="true"], [aria-current="page"], [aria-checked="true"]) { background: var(--histoire-control-resolved-chip); color: var(--histoire-control-resolved-text); }.histoire-button:where([data-color="primary"]) { border-color: transparent; background: var(--histoire-control-resolved-accent); color: var(--histoire-control-resolved-on-accent); }.histoire-button:where([data-color="flat"]) { border-color: transparent; background: transparent; }.histoire-button:where(:not(:disabled)):hover { background: var(--histoire-control-resolved-chip); }.histoire-button:where([data-color="primary"]):where(:not(:disabled)):hover { background: color-mix(in srgb, var(--histoire-control-resolved-accent) 88%, #000); }.histoire-button:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 2px; }/* Explicit opacity can hide disabled actions; disabled cursors still outrank field defaults. */:is(.histoire-button, .histoire-control-field, .histoire-select-trigger):where(:disabled), .histoire-wrapper:where([aria-disabled="true"]) { opacity: .45; }:is(.histoire-button, .histoire-control-field, .histoire-select-trigger):disabled, .histoire-wrapper[aria-disabled="true"] { cursor: default; }.histoire-select-trigger { display: flex; align-items: center; gap: 8px; text-align: start; cursor: pointer; }.histoire-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }:is(.histoire-control-menu, .histoire-controls-options) { display: flex; flex-direction: column; max-height: min(360px, 80vh, var(--histoire-control-menu-boundary, 100vh)); overflow-y: auto; padding: 4px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 9px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); background: var(--histoire-control-resolved-surface); }:where(.histoire-control-menu, .histoire-controls-options) .histoire-button { flex: none; justify-content: flex-start; text-align: start; white-space: normal; overflow-wrap: anywhere; padding: 7px 9px; border-radius: 6px; }:where(.histoire-control-menu, .histoire-controls-options) .histoire-button:is([aria-selected="true"], :focus-visible) { background: var(--histoire-control-resolved-accent-soft); }.histoire-button-group-options { display: flex; flex-wrap: nowrap; gap: 3px; min-width: 0; padding: 3px; border-radius: 7px; background: var(--histoire-control-resolved-chip); }:where(.histoire-button-group-options) .histoire-button { flex: 1 1 0; min-width: 0; max-width: 100%; padding: max(2px, calc((var(--histoire-control-height, 34px) - 24px) / 2)) 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; border-radius: 6px; color: var(--histoire-control-resolved-muted); }:where(.histoire-button-group-options) .histoire-button:is([aria-pressed="true"], [aria-selected="true"]) { color: var(--histoire-control-resolved-text); background: var(--histoire-control-resolved-surface); box-shadow: 0 1px 3px rgb(0 0 0 / .08); font-weight: 700; }/* Bound both axes so flex/grid stretching and surrounding button padding cannot
164
+ :where(.histoire-prop-control-unavailable) .histoire-control-label { align-items: center; }.histoire-prop-control-reset { --histoire-icon-button-size: 24px; border-radius: 6px; }.histoire-prop-control-reset-icon { display: block; flex: none; color: var(--histoire-control-resolved-text); }.histoire-prop-control-unavailable { display: flex; flex-direction: column; gap: var(--histoire-control-gap, 8px); padding: var(--histoire-control-wrapper-padding, 8px); margin: 0 0 var(--histoire-control-margin, 10px); }:where(.histoire-wrapper):where([data-layout="horizontal"]) .histoire-control-label { width: auto; flex: none; }:where(.histoire-wrapper):where([data-layout="horizontal"]) .histoire-control-content { width: auto; flex: 1; }:where(.histoire-wrapper):where([data-layout="horizontal"]):has(.histoire-switch-input, .histoire-simple-checkbox) .histoire-control-label { flex: 1; }:where(.histoire-wrapper):where([data-layout="horizontal"]):has(.histoire-switch-input, .histoire-simple-checkbox) .histoire-control-content { flex: none; }.histoire-control-field, .histoire-select-trigger, .__histoire-json-code { box-sizing: border-box; width: 100%; min-width: 0; min-height: var(--histoire-control-height, 34px); margin: 0; padding: var(--histoire-control-padding, 7px) 9px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; background: var(--histoire-control-resolved-input); color: inherit; font: inherit; }textarea.histoire-control-field { resize: vertical; }.histoire-control-field::placeholder { color: var(--histoire-control-resolved-muted); opacity: 1; }:is(.histoire-control-field, .histoire-select-trigger):focus, .__histoire-json-code:focus-within { outline: none; border-color: var(--histoire-control-resolved-accent); }.histoire-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: var(--histoire-control-padding, 7px) 10px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 9px; background: var(--histoire-control-resolved-surface); cursor: pointer; }.histoire-button:where([data-color="flat"]):is([aria-pressed="true"], [aria-selected="true"], [aria-current="page"], [aria-checked="true"]) { background: var(--histoire-control-resolved-chip); color: var(--histoire-control-resolved-text); }.histoire-button:where([data-color="primary"]) { border-color: transparent; background: var(--histoire-control-resolved-accent); color: var(--histoire-control-resolved-on-accent); }.histoire-button:where([data-color="flat"]) { border-color: transparent; background: transparent; }.histoire-button:where(:not(:disabled)):hover { background: var(--histoire-control-resolved-chip); }.histoire-button:where([data-color="primary"]):where(:not(:disabled)):hover { background: color-mix(in srgb, var(--histoire-control-resolved-accent) 88%, #000); }.histoire-button:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 2px; }/* Explicit opacity can hide disabled actions; disabled cursors still outrank field defaults. */:is(.histoire-button, .histoire-control-field, .histoire-select-trigger):where(:disabled), .histoire-wrapper:where([aria-disabled="true"]) { opacity: .45; }:is(.histoire-button, .histoire-control-field, .histoire-select-trigger):disabled, .histoire-wrapper[aria-disabled="true"] { cursor: default; }.histoire-select-trigger { display: flex; align-items: center; gap: 8px; text-align: start; cursor: pointer; }.histoire-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }:is(.histoire-control-menu, .histoire-controls-options) { display: flex; flex-direction: column; row-gap: 1px; max-height: min(360px, 80vh, var(--histoire-control-menu-boundary, 100vh)); overflow-y: auto; padding: 4px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 9px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); background: var(--histoire-control-resolved-surface); }:where(.histoire-control-menu, .histoire-controls-options) .histoire-button { flex: none; justify-content: flex-start; text-align: start; white-space: normal; overflow-wrap: anywhere; padding: 7px 9px; border-radius: 6px; }:where(.histoire-control-menu, .histoire-controls-options) .histoire-button:is([aria-selected="true"], :focus-visible) { background: var(--histoire-control-resolved-accent-soft); }.histoire-button-group-options { display: flex; flex-wrap: nowrap; gap: 3px; min-width: 0; padding: 3px; border-radius: 7px; background: var(--histoire-control-resolved-chip); }:where(.histoire-button-group-options) .histoire-button { flex: 1 1 0; min-width: 0; max-width: 100%; padding: max(2px, calc((var(--histoire-control-height, 34px) - 24px) / 2)) 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; border-radius: 6px; color: var(--histoire-control-resolved-muted); }:where(.histoire-button-group-options) .histoire-button:is([aria-pressed="true"], [aria-selected="true"]) { color: var(--histoire-control-resolved-text); background: var(--histoire-control-resolved-surface); box-shadow: 0 1px 3px rgb(0 0 0 / .08); font-weight: 700; }/* Bound both axes so flex/grid stretching and surrounding button padding cannot
165
165
  turn an icon action into a rectangle. Hosts customize only the shared size. */:where(.histoire-button).histoire-icon-button, a.histoire-icon-button {
166
166
  box-sizing: border-box;
167
167
  display: inline-flex; align-items: center; justify-content: center;
@@ -173,7 +173,7 @@ img.colorize-black[data-v-80027ef8] { filter: grayscale(100) brightness(0);
173
173
  min-height: var(--histoire-icon-button-size, var(--histoire-control-height, 32px));
174
174
  max-height: var(--histoire-icon-button-size, var(--histoire-control-height, 32px));
175
175
  padding: 0;
176
- }.histoire-switch-input { appearance: none; display: block; flex: none; width: 36px; height: 20px; margin: 0; border: 0; border-radius: 12px; background: var(--histoire-control-resolved-border); cursor: pointer; }.histoire-switch-input::before { content: ''; display: block; width: 16px; height: 16px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .14); transition: transform 120ms ease-out; }.histoire-switch-input:checked { background: var(--histoire-control-resolved-accent); }.histoire-switch-input:checked::before { transform: translateX(16px); }.histoire-switch-input:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 3px; }.histoire-switch-input:disabled { opacity: .45; cursor: default; }.histoire-checkbox { cursor: pointer; }.histoire-checkbox:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: -2px; border-radius: 7px; }/* Keep the line box stable when the checkmark changes the inline grid's baseline. */.histoire-simple-checkbox { display: inline-grid; vertical-align: middle; place-items: center; width: 16px; height: 16px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 4px; background: var(--histoire-control-resolved-input); }.histoire-simple-checkbox:where([data-checked="true"]) { background: var(--histoire-control-resolved-accent); border-color: var(--histoire-control-resolved-accent); color: #fff; }.histoire-choice-list { display: flex; flex-direction: column; gap: 6px; }.histoire-choice-list label { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }.histoire-choice-list input { accent-color: var(--histoire-control-resolved-accent); }.__histoire-json-code { height: 192px; min-height: 128px; padding: 0; overflow: auto; resize: vertical; }:where(.__histoire-json-code) .cm-editor { min-width: 0; }.histoire-controls-tooltip { padding: 4px 8px; background: var(--histoire-control-resolved-surface); border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; box-shadow: 0 4px 12px rgb(0 0 0 / .1); }:is(.histoire-wrapper, .histoire-control-menu) ::selection { color: var(--histoire-control-resolved-text); background: var(--histoire-control-resolved-accent-soft); }@media (prefers-reduced-motion: reduce) { .histoire-switch-input::before { transition: none; } }:is(.histoire-token-grid, .histoire-token-list, .histoire-color-shades, .histoire-controls-floating-tooltip, .histoire-control-popover, .histoire-button-group-options) pre { font-family: var(--histoire-font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 13px; }:where(.histoire-control-content):has(.histoire-switch-input, .histoire-simple-checkbox) .histoire-control-value { flex: none; }.histoire-color-fields { display: flex; gap: 6px; }.histoire-color-fields > input:where([type="color"]) { flex: none; width: var(--histoire-control-height, 34px); height: var(--histoire-control-height, 34px); padding: 2px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; background: var(--histoire-control-resolved-input); }:where(.histoire-controls-floating-tooltip) .v-popper__inner { font: inherit; color: var(--histoire-control-resolved-text); background: var(--histoire-control-resolved-surface); border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; padding: 4px 8px; box-shadow: 0 4px 12px rgb(0 0 0 / .1); }:where(.histoire-controls-floating-tooltip) .v-popper__arrow-container { display: none; }.histoire-choice-list label:has(input:disabled) { opacity: .45; cursor: default; }.histoire-choice-list input:where([type="checkbox"]) { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }:where(.histoire-choice-list) input:where([type="checkbox"]) + .histoire-simple-checkbox { pointer-events: none; }.histoire-choice-list input:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 3px; }:where(.histoire-choice-list) input:where([type="checkbox"]):focus-visible + .histoire-simple-checkbox { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 3px; }.histoire-choice-list input:where([type="radio"]) { appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--histoire-control-resolved-border); border-radius: 50%; background: var(--histoire-control-resolved-input); }.histoire-choice-list input:where([type="radio"]):checked { border-color: var(--histoire-control-resolved-accent); background: radial-gradient(circle, var(--histoire-control-resolved-accent) 0 4px, var(--histoire-control-resolved-input) 4.5px); }.histoire-control-popover { overflow: auto; padding: 6px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 9px; background: var(--histoire-control-resolved-surface); box-shadow: 0 8px 24px rgb(0 0 0 / .12); }:where(.histoire-control-popover) .histoire-button:where([role="menuitem"]):focus-visible { background: var(--histoire-control-resolved-chip); }.htw-range-input:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 2px; border-radius: 7px; }.htw-range-input:disabled { opacity: .45; cursor: default; }/* Explicit tones retain state-level priority, including pressed buttons. */.histoire-button:where([data-color="flat"])[data-tone="accent"] { color: var(--histoire-control-resolved-accent); }.histoire-wrapper:where([data-block]),
176
+ }/* Anchor the thumb to the track so Firefox cannot collapse its top margin. */.histoire-switch-input { appearance: none; position: relative; display: block; flex: none; width: 36px; height: 20px; margin: 0; border: 0; border-radius: 12px; background: var(--histoire-control-resolved-border); cursor: pointer; }.histoire-switch-input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .14); transition: transform 120ms ease-out; }.histoire-switch-input:checked { background: var(--histoire-control-resolved-accent); }.histoire-switch-input:checked::before { transform: translateX(16px); }.histoire-switch-input:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 3px; }.histoire-switch-input:disabled { opacity: .45; cursor: default; }.histoire-checkbox { cursor: pointer; }.histoire-checkbox:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: -2px; border-radius: 7px; }/* Keep the line box stable when the checkmark changes the inline grid's baseline. */.histoire-simple-checkbox { display: inline-grid; vertical-align: middle; place-items: center; width: 16px; height: 16px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 4px; background: var(--histoire-control-resolved-input); }.histoire-simple-checkbox:where([data-checked="true"]) { background: var(--histoire-control-resolved-accent); border-color: var(--histoire-control-resolved-accent); color: #fff; }.histoire-choice-list { display: flex; flex-direction: column; gap: 6px; }.histoire-choice-list label { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }.histoire-choice-list input { accent-color: var(--histoire-control-resolved-accent); }.__histoire-json-code { height: 192px; min-height: 128px; padding: 0; overflow: auto; resize: vertical; }:where(.__histoire-json-code) .cm-editor { min-width: 0; }.histoire-controls-tooltip { padding: 4px 8px; background: var(--histoire-control-resolved-surface); border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; box-shadow: 0 4px 12px rgb(0 0 0 / .1); }:is(.histoire-wrapper, .histoire-control-menu) ::selection { color: var(--histoire-control-resolved-text); background: var(--histoire-control-resolved-accent-soft); }@media (prefers-reduced-motion: reduce) { .histoire-switch-input::before { transition: none; } }:is(.histoire-token-grid, .histoire-token-list, .histoire-color-shades, .histoire-controls-floating-tooltip, .histoire-control-popover, .histoire-button-group-options) pre { font-family: var(--histoire-font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 13px; }:where(.histoire-control-content):has(.histoire-switch-input, .histoire-simple-checkbox) .histoire-control-value { flex: none; }.histoire-color-fields { display: flex; gap: 6px; }.histoire-color-fields > input:where([type="color"]) { flex: none; width: var(--histoire-control-height, 34px); height: var(--histoire-control-height, 34px); padding: 2px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; background: var(--histoire-control-resolved-input); }:where(.histoire-controls-floating-tooltip) .v-popper__inner { font: inherit; color: var(--histoire-control-resolved-text); background: var(--histoire-control-resolved-surface); border: 1px solid var(--histoire-control-resolved-border); border-radius: 7px; padding: 4px 8px; box-shadow: 0 4px 12px rgb(0 0 0 / .1); }:where(.histoire-controls-floating-tooltip) .v-popper__arrow-container { display: none; }.histoire-choice-list label:has(input:disabled) { opacity: .45; cursor: default; }.histoire-choice-list input:where([type="checkbox"]) { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }:where(.histoire-choice-list) input:where([type="checkbox"]) + .histoire-simple-checkbox { pointer-events: none; }.histoire-choice-list input:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 3px; }:where(.histoire-choice-list) input:where([type="checkbox"]):focus-visible + .histoire-simple-checkbox { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 3px; }.histoire-choice-list input:where([type="radio"]) { appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--histoire-control-resolved-border); border-radius: 50%; background: var(--histoire-control-resolved-input); }.histoire-choice-list input:where([type="radio"]):checked { border-color: var(--histoire-control-resolved-accent); background: radial-gradient(circle, var(--histoire-control-resolved-accent) 0 4px, var(--histoire-control-resolved-input) 4.5px); }.histoire-control-popover { overflow: auto; padding: 6px; border: 1px solid var(--histoire-control-resolved-border); border-radius: 9px; background: var(--histoire-control-resolved-surface); box-shadow: 0 8px 24px rgb(0 0 0 / .12); }:where(.histoire-control-popover) .histoire-button:where([role="menuitem"]):focus-visible { background: var(--histoire-control-resolved-chip); }.htw-range-input:focus-visible { outline: 2px solid var(--histoire-control-resolved-accent); outline-offset: 2px; border-radius: 7px; }.htw-range-input:disabled { opacity: .45; cursor: default; }/* Explicit tones retain state-level priority, including pressed buttons. */.histoire-button:where([data-color="flat"])[data-tone="accent"] { color: var(--histoire-control-resolved-accent); }.histoire-wrapper:where([data-block]),
177
177
  :where(.histoire-wrapper[data-block]) > .histoire-control-content,
178
178
  :where(.histoire-wrapper[data-block] > .histoire-control-content) > .histoire-control-value,
179
179
  .histoire-button-group-options:where([data-block]) { width: 100%; }.histoire-button:where([data-color="flat"])[data-tone="danger"] { color: var(--histoire-danger-text, var(--histoire-control-resolved-danger)); }
@@ -1,7 +1,7 @@
1
1
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
2
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
2
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
3
3
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, withCtx } from "@histoire/vendors/vue";
4
- var version = "1.0.0-beta.2";
4
+ var version = "1.0.0-beta.3";
5
5
  // src/app/components/pages/settings/AboutSection.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = { class: "htw:w-[min(100%,_740px)] htw:mx-auto" };
7
7
  // src/app/components/pages/settings/AboutSection.vue
@@ -1,7 +1,7 @@
1
1
  import { t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
- import { j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
2
+ import { j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
3
3
  import { r as useMcpStore } from "./mcp-CbWZxLuC.js";
4
- import { c as useCanvasStore, o as useCanvasFrames } from "./canvas-settings-EP62RnvB.js";
4
+ import { c as useCanvasStore, o as useCanvasFrames } from "./canvas-settings-Cw7AXzFG.js";
5
5
  import { n as getMeasureOwner } from "./measure-owner-BJxCiOYZ.js";
6
6
  import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, toDisplayString, unref, watch } from "@histoire/vendors/vue";
7
7
  import { getHistoireTargetKey } from "@histoire/protocol";
@@ -1,5 +1,5 @@
1
1
  import { A as useLoadingDelay, L as _plugin_vue_export_helper_default, d as HstPulsatingDisc, g as HstText, n as HstButton, p as HstSelect, t as BuiltinIcon, u as HstNumber } from "./controls-DpdwHd4q.js";
2
- import { E as sanitizeDocsHtml } from "./extensions-DUXM9uEy.js";
2
+ import { E as sanitizeDocsHtml } from "./extensions-BtOjYv3e.js";
3
3
  import { r as useAgentsStore } from "./agents-Cnoa7KRp.js";
4
4
  import { validateElicitationContent } from "@histoire/shared";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, onBeforeUnmount, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useId, watch, withCtx, withModifiers } from "@histoire/vendors/vue";
@@ -8,7 +8,7 @@ import { n as useAgentDiscovery, t as AgentLogo_default } from "./AgentLogo-C2uX
8
8
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
9
9
  import { t as SaveToProject_default } from "./SaveToProject-F-tQZKCG.js";
10
10
  import { t as SettingsChoices_default } from "./SettingsChoices-BoESgi62.js";
11
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
11
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
12
12
  import { ACP_INSTALL_HINTS, ACP_PRESETS } from "@histoire/shared";
13
13
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useModel, watch, withCtx, withKeys, withModifiers } from "@histoire/vendors/vue";
14
14
  // src/app/util/agent-catalog-rows.ts
@@ -1,19 +1,19 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
2
  import { A as useLoadingDelay, d as HstPulsatingDisc, h as HstSwitch, n as HstButton, r as HstButtonGroup, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
3
- import { j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
3
+ import { j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
4
4
  import { i as useContextMenu, n as isContextMenuShortcut } from "./context-menu-Cw2xQKsM.js";
5
5
  import { t as catalogTargetLabel } from "./catalog-target-BN1NsBKA.js";
6
6
  import { a as mcpClientConfig, c as mcpStdioClientConfig, i as isMcpOperationCancellable, l as mcpTimeAgo, o as mcpOperationIcon, r as useMcpStore, s as mcpOperationProgress } from "./mcp-CbWZxLuC.js";
7
7
  import { r as useAgentsStore } from "./agents-Cnoa7KRp.js";
8
8
  import { i as isThreadBusy, r as useAiThreads } from "./ai-threads-3QfVXZ43.js";
9
9
  import { n as useShell } from "./shell-VHlsl1Wj.js";
10
- import { t as useCaptureDiscoveryPause } from "./capture-SFV9pF9b.js";
10
+ import { t as useCaptureDiscoveryPause } from "./capture-DxD6llwl.js";
11
11
  import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
12
12
  import { t as WorkbenchPaneList_default } from "./WorkbenchPaneList-cOz9-XSR.js";
13
13
  import { t as WorkbenchPaneToolbar_default } from "./WorkbenchPaneToolbar-DEYUs_bD.js";
14
- import { t as WorkbenchVirtualList_default } from "./WorkbenchVirtualList-CUTamRgO.js";
14
+ import { t as WorkbenchVirtualList_default } from "./WorkbenchVirtualList-HCZiNo7p.js";
15
15
  import { t as WorkbenchGuideLink_default } from "./WorkbenchGuideLink-COO1XNvp.js";
16
- import { a as useReplyDrafts, c as AgentPrompt_default, d as commentAge, h as pinNumbers, i as AgentLiveTail_default, l as agentDisplay, m as isOnCanvas, n as useStickToBottom, o as PLAN_FOLLOW_UP_PLACEHOLDER, p as groupThreads, r as AgentPendingInput_default, s as usePlanFollowUp, t as ThreadMessage_default, u as useCommentDestination } from "./ThreadMessage-CPRLVXXQ.js";
16
+ import { a as useReplyDrafts, c as AgentPrompt_default, d as commentAge, h as pinNumbers, i as AgentLiveTail_default, l as agentDisplay, m as isOnCanvas, n as useStickToBottom, o as PLAN_FOLLOW_UP_PLACEHOLDER, p as groupThreads, r as AgentPendingInput_default, s as usePlanFollowUp, t as ThreadMessage_default, u as useCommentDestination } from "./ThreadMessage-DxrvoIea.js";
17
17
  import { t as AgentLogo_default } from "./AgentLogo-C2uXqX04.js";
18
18
  import { useClipboard } from "@histoire/vendors/vue-use";
19
19
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx, withModifiers } from "@histoire/vendors/vue";
@@ -1,15 +1,15 @@
1
1
  import { J as histoireConfig } from "./sandbox-shared-CwPQj187.js";
2
2
  import { g as HstText, n as HstButton } from "./controls-DpdwHd4q.js";
3
- import { j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
4
- import { n as useHistoireSession } from "./src-BazVZNon.js";
3
+ import { j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
4
+ import { n as useHistoireSession } from "./src-CDZfcmuw.js";
5
5
  import { a as useUiSettingsStore } from "./settings-B8QvkMcW.js";
6
- import { i as getBackgroundPresetStyle, r as getBackgroundPreset } from "./background-CG5-SPiv.js";
6
+ import { a as getBackgroundPresetStyle, i as getBackgroundPreset } from "./background-CUUIkZVL.js";
7
7
  import { r as usePresetConfigStore } from "./presets-config-CfdpjV2k.js";
8
- import { t as backgroundPatch } from "./settings-DC0gilMg.js";
8
+ import { t as backgroundPatch } from "./settings-BbefKI5N.js";
9
9
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
10
10
  import { t as SettingsChoices_default } from "./SettingsChoices-BoESgi62.js";
11
- import { t as ViewportsSection_default } from "./ViewportsSection-3EWu6WSc.js";
12
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
11
+ import { t as ViewportsSection_default } from "./ViewportsSection-D6mpKTSM.js";
12
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
13
13
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, normalizeStyle, openBlock, ref, renderList, toDisplayString, unref, withCtx, withModifiers } from "@histoire/vendors/vue";
14
14
  // src/app/components/pages/settings/BackgroundsSection.vue?vue&type=script&setup=true&lang.ts
15
15
  var _hoisted_1$1 = { class: "htw:flex htw:items-center htw:justify-between htw:gap-[10px] htw:p-[13px_20px] htw:[border-bottom:1px_solid_var(--histoire-border,_#e4e4e7)]" };
@@ -287,7 +287,7 @@ var BasePopover_default = /* @__PURE__ */ defineComponent({
287
287
  ref_key: "panel",
288
288
  ref: panel
289
289
  }, _ctx.$attrs, {
290
- class: "histoire-base-popover histoire-control-popover htw:fixed htw:box-border htw:max-w-[calc(100vw-16px)]",
290
+ class: ["histoire-base-popover histoire-control-popover htw:fixed htw:box-border htw:max-w-[calc(100vw-16px)]", { "htw:menu-rows": __props.role === "menu" }],
291
291
  role: __props.role,
292
292
  "aria-label": __props.label,
293
293
  tabindex: "-1",
@@ -1,10 +1,10 @@
1
1
  import { T as getControlStateKeys, n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
- import { N as useHistoireContext, P as useHistoireResource } from "./extensions-DUXM9uEy.js";
3
- import { n as captureFrameRegistration, t as captureFrameScreenshot } from "./frame-screenshot-D9R_xDns.js";
2
+ import { N as useHistoireContext, P as useHistoireResource } from "./extensions-BtOjYv3e.js";
3
+ import { n as captureFrameRegistration, t as captureFrameScreenshot } from "./frame-screenshot-IEmQR7TR.js";
4
4
  import { i as isThreadBusy, r as useAiThreads } from "./ai-threads-3QfVXZ43.js";
5
- import { t as useCaptureDiscoveryPause } from "./capture-SFV9pF9b.js";
6
- import { c as useCanvasStore, o as useCanvasFrames } from "./canvas-settings-EP62RnvB.js";
7
- import { _ as selectorParts, a as useReplyDrafts, c as AgentPrompt_default, f as compactSelectorPath, g as propsSummary, h as pinNumbers, i as AgentLiveTail_default, l as agentDisplay, n as useStickToBottom, o as PLAN_FOLLOW_UP_PLACEHOLDER, r as AgentPendingInput_default, s as usePlanFollowUp, t as ThreadMessage_default, u as useCommentDestination } from "./ThreadMessage-CPRLVXXQ.js";
5
+ import { t as useCaptureDiscoveryPause } from "./capture-DxD6llwl.js";
6
+ import { c as useCanvasStore, o as useCanvasFrames } from "./canvas-settings-Cw7AXzFG.js";
7
+ import { _ as selectorParts, a as useReplyDrafts, c as AgentPrompt_default, f as compactSelectorPath, g as propsSummary, h as pinNumbers, i as AgentLiveTail_default, l as agentDisplay, n as useStickToBottom, o as PLAN_FOLLOW_UP_PLACEHOLDER, r as AgentPendingInput_default, s as usePlanFollowUp, t as ThreadMessage_default, u as useCommentDestination } from "./ThreadMessage-DxrvoIea.js";
8
8
  import { ELEMENT_PICK_REQUEST, ELEMENT_PICK_RESULT, isPinnedThread } from "@histoire/shared";
9
9
  import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, watch, withCtx, withKeys, withModifiers } from "@histoire/vendors/vue";
10
10
  import { getHistoireTargetKey } from "@histoire/protocol";
@@ -1,6 +1,6 @@
1
1
  import { t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
- import { j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
3
- import { r as useWorkbenchTestsModel } from "./model-DhvdMZzS.js";
2
+ import { j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
3
+ import { r as useWorkbenchTestsModel } from "./model-CIFxQfDH.js";
4
4
  import { computed, createCommentVNode, createElementBlock, createVNode, defineComponent, normalizeStyle, openBlock, unref } from "@histoire/vendors/vue";
5
5
  // src/app/components/pages/home/DevBrowseStatus.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = ["aria-label", "title"];
@@ -1,8 +1,8 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
- import { T as HistoireDocs } from "./extensions-DUXM9uEy.js";
3
- import { t as useSelection } from "./selection-DQJWdqhl.js";
4
- import { t as InspectorGuideLink_default } from "./InspectorGuideLink-Bqlz1aaY.js";
5
- import { n as useInspectorModel } from "./StoryInspector-BJKzoeHc.js";
2
+ import { T as HistoireDocs } from "./extensions-BtOjYv3e.js";
3
+ import { t as useSelection } from "./selection-BTc1fRMu.js";
4
+ import { t as InspectorGuideLink_default } from "./InspectorGuideLink-7Ui_Y2Wd.js";
5
+ import { n as useInspectorModel } from "./StoryInspector-DCNgw0x8.js";
6
6
  import { createBlock, createVNode, defineComponent, openBlock, unref, withCtx } from "@histoire/vendors/vue";
7
7
  // src/app/components/inspector/DocsTab.vue
8
8
  var DocsTab_default = /* @__PURE__ */ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
- import { g as HistoireEvents } from "./extensions-DUXM9uEy.js";
3
- import { t as InspectorGuideLink_default } from "./InspectorGuideLink-Bqlz1aaY.js";
4
- import { n as useInspectorModel } from "./StoryInspector-BJKzoeHc.js";
2
+ import { g as HistoireEvents } from "./extensions-BtOjYv3e.js";
3
+ import { t as InspectorGuideLink_default } from "./InspectorGuideLink-7Ui_Y2Wd.js";
4
+ import { n as useInspectorModel } from "./StoryInspector-DCNgw0x8.js";
5
5
  import { createBlock, createVNode, defineComponent, openBlock, unref, withCtx } from "@histoire/vendors/vue";
6
6
  // src/app/components/inspector/EventsTab.vue
7
7
  var EventsTab_default = /* @__PURE__ */ defineComponent({
@@ -3,7 +3,7 @@ import { h as HstSwitch, n as HstButton } from "./controls-DpdwHd4q.js";
3
3
  import { a as useUiSettingsStore } from "./settings-B8QvkMcW.js";
4
4
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
5
5
  import { t as SettingsChoices_default } from "./SettingsChoices-BoESgi62.js";
6
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
6
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
7
7
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, openBlock, unref, withCtx } from "@histoire/vendors/vue";
8
8
  // src/app/components/pages/settings/GeneralSection.vue?vue&type=script&setup=true&lang.ts
9
9
  var _hoisted_1 = { class: "htw:w-[min(100%,_740px)] htw:mx-auto" };
@@ -1,12 +1,12 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
2
  import { A as useLoadingDelay, d as HstPulsatingDisc, n as HstButton } from "./controls-DpdwHd4q.js";
3
- import { n as useHistoireSession } from "./src-BazVZNon.js";
3
+ import { n as useHistoireSession } from "./src-CDZfcmuw.js";
4
4
  import { a as useOptionalExtensionHost } from "./extensions-DY0LLiE_.js";
5
5
  import { t as captureInspectionFrame } from "./frame-owner-Di8_BWb0.js";
6
6
  import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
7
7
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
8
8
  import { t as WorkbenchPaneHeader_default } from "./WorkbenchPaneHeader-DBuiBHTT.js";
9
- import { t as WorkbenchPanelAction_default } from "./WorkbenchPanelAction-Cl68QrDs.js";
9
+ import { t as WorkbenchPanelAction_default } from "./WorkbenchPanelAction-SLby10Vh.js";
10
10
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, onScopeDispose, openBlock, ref, renderList, shallowRef, toDisplayString, unref, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "@histoire/vendors/vue";
11
11
  import { HistoireSdkError, sameInspectionOwner } from "@histoire/protocol";
12
12
  import { getHistoireSessionDescriptor } from "@histoire/sdk/internal";
@@ -1,5 +1,5 @@
1
1
  import { t as WorkbenchGuideLink_default } from "./WorkbenchGuideLink-COO1XNvp.js";
2
- import { t as useSelection } from "./selection-DQJWdqhl.js";
2
+ import { t as useSelection } from "./selection-BTc1fRMu.js";
3
3
  import { computed, createBlock, defineComponent, openBlock } from "@histoire/vendors/vue";
4
4
  // src/app/components/inspector/InspectorGuideLink.vue
5
5
  var InspectorGuideLink_default = /* @__PURE__ */ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import { n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
- import { T as HistoireDocs, j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
3
- import { n as useHistoireSession } from "./src-BazVZNon.js";
4
- import { n as usePageOwnership } from "./ownership-004rrffQ.js";
2
+ import { T as HistoireDocs, j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
3
+ import { n as useHistoireSession } from "./src-CDZfcmuw.js";
4
+ import { n as usePageOwnership } from "./ownership-BVQ3d672.js";
5
5
  import { n as orderedStories } from "./catalog-UvMhynPX.js";
6
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, onBeforeUnmount, openBlock, ref, renderList, shallowRef, toDisplayString, unref, watch, withCtx } from "@histoire/vendors/vue";
7
7
  import { canOpenHistoireTargetInEditor, requestHistoireOpenInEditor } from "@histoire/sdk/internal";
@@ -1,9 +1,9 @@
1
1
  import { d as HstPulsatingDisc, i as HstCheckbox, n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
- import { a as jobProgressLabel, r as useMarketplaceStore } from "./marketplace-DKeNfni-.js";
2
+ import { a as jobProgressLabel, r as useMarketplaceStore } from "./marketplace-BE5IMmf3.js";
3
3
  import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
4
4
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
5
5
  import { t as PluginTile_default } from "./PluginTile-CfplGy7m.js";
6
- import { i as ReleaseNotes_default, n as ConfigDiff_default, r as CommandBlock_default, t as useInstallPlan } from "./use-install-plan-ChZg4Xyq.js";
6
+ import { i as ReleaseNotes_default, n as ConfigDiff_default, r as CommandBlock_default, t as useInstallPlan } from "./use-install-plan-D0tiW2wu.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onScopeDispose, openBlock, ref, renderList, shallowRef, toDisplayString, unref, watch, withCtx } from "@histoire/vendors/vue";
8
8
  // src/app/components/marketplace/update/use-update-dialog.ts
9
9
  /** Dialog reads belong to its visit; admitted jobs and restart policy belong to the store. */
@@ -1,14 +1,14 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
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
3
  import { t as useContributionLookup } from "./shell-extensions-BRqMTtWV.js";
4
- import { a as jobProgressLabel, o as useCatalogCollections, r as useMarketplaceStore } from "./marketplace-DKeNfni-.js";
4
+ import { a as jobProgressLabel, o as useCatalogCollections, r as useMarketplaceStore } from "./marketplace-BE5IMmf3.js";
5
5
  import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
6
6
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
7
- import { t as WorkbenchPanelAction_default } from "./WorkbenchPanelAction-Cl68QrDs.js";
7
+ import { t as WorkbenchPanelAction_default } from "./WorkbenchPanelAction-SLby10Vh.js";
8
8
  import { t as workbenchPluginId } from "./workbench-plugin-id-BgjbPURy.js";
9
9
  import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
10
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-ChZg4Xyq.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
12
  import { executablePackageManagers, manualConfigSteps, packageCommand } from "@histoire/shared";
13
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
14
  // src/app/components/marketplace/browse/CatalogState.vue?vue&type=script&setup=true&lang.ts
@@ -18,6 +18,11 @@ var _hoisted_1$25 = {
18
18
  class: "htw:m-0 htw:rounded-control htw:bg-chip htw:p-[12px] htw:text-[12px] htw:text-muted"
19
19
  };
20
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
+ };
21
26
  // src/app/components/marketplace/browse/CatalogState.vue
22
27
  var CatalogState_default = /* @__PURE__ */ defineComponent({
23
28
  __name: "CatalogState",
@@ -48,7 +53,8 @@ var CatalogState_default = /* @__PURE__ */ defineComponent({
48
53
  _: 1
49
54
  })) : createCommentVNode("", true),
50
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),
51
- ready.value ? renderSlot(_ctx.$slots, "default", { key: 3 }) : 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)
52
58
  ], 64);
53
59
  };
54
60
  }
@@ -1053,18 +1059,26 @@ var DetailHeader_default = /* @__PURE__ */ defineComponent({
1053
1059
  const props = __props;
1054
1060
  const store = useMarketplaceStore();
1055
1061
  /** Prefer the compatible installed update over the latest catalog release. */
1056
- const target = computed(() => props.plugin.installed?.update ?? props.plugin.latest);
1062
+ const target = computed(() => props.plugin.installed?.update ?? props.plugin.installVersion ?? props.plugin.latest);
1057
1063
  /** Main action reflects installation state and its exact target version. */
1058
1064
  const label = computed(() => props.plugin.installed ? props.plugin.installed.update ? `Update to ${target.value}` : `Installed ${props.plugin.installed.version}` : "Install");
1059
- /** Installed packages without updates and incompatible packages cannot install. */
1060
- const disabled = computed(() => !props.plugin.compatible.ok || Boolean(props.plugin.installed && !props.plugin.installed.update));
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)));
1061
1069
  /** Show the server's version-specific incompatibility in disabled menu items. */
1062
1070
  function reason(version) {
1063
1071
  return version.compatible ? void 0 : incompatibleReason(version.reason);
1064
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
+ }
1065
1079
  /** Start a wizard only; project changes still require the later review action. */
1066
1080
  function install(version = target.value) {
1067
- if (disabled.value || props.plugin.versions.some((item) => item.version === version && !item.compatible)) return;
1081
+ if (installedWithoutUpdate.value || versionReason(version)) return;
1068
1082
  store.startInstall({
1069
1083
  id: props.plugin.id,
1070
1084
  kind: props.plugin.installed ? "update" : "install",
@@ -1119,6 +1133,7 @@ var DetailHeader_default = /* @__PURE__ */ defineComponent({
1119
1133
  icon: "add-alt",
1120
1134
  label: label.value,
1121
1135
  disabled: disabled.value,
1136
+ "menu-disabled": menuDisabled.value,
1122
1137
  "menu-label": "Choose version",
1123
1138
  "menu-width": 280,
1124
1139
  onClick: _cache[1] || (_cache[1] = ($event) => install())
@@ -1140,7 +1155,11 @@ var DetailHeader_default = /* @__PURE__ */ defineComponent({
1140
1155
  ]);
1141
1156
  }), 128))]),
1142
1157
  key: "0"
1143
- } : void 0]), 1032, ["label", "disabled"]),
1158
+ } : void 0]), 1032, [
1159
+ "label",
1160
+ "disabled",
1161
+ "menu-disabled"
1162
+ ]),
1144
1163
  __props.plugin.docsUrl ? (openBlock(), createElementBlock("a", {
1145
1164
  key: 0,
1146
1165
  href: __props.plugin.docsUrl,
@@ -2354,12 +2373,22 @@ function useInstallWizard() {
2354
2373
  detail.value = void 0;
2355
2374
  error.value = void 0;
2356
2375
  try {
2357
- const result = await store.client.detail(change.id, change.prefs, { signal: current.signal });
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
+ });
2358
2385
  if (current.signal.aborted) return;
2359
2386
  values.value = Object.fromEntries((result.manifest.config.options ?? []).filter((field) => field.default !== void 0).map((field) => [field.key, structuredClone(field.default)]));
2360
2387
  Object.assign(values.value, change.options);
2388
+ const version = change.version ?? (change.kind === "install" ? result.latest : void 0);
2361
2389
  intent.value = {
2362
2390
  ...change,
2391
+ ...version ? { version } : {},
2363
2392
  prefs: { ...change.prefs }
2364
2393
  };
2365
2394
  detail.value = result;
@@ -1,9 +1,9 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
2
  import { _ as HstTextarea, g as HstText, h as HstSwitch, n as HstButton, p as HstSelect, r as HstButtonGroup, t as BuiltinIcon, u as HstNumber } from "./controls-DpdwHd4q.js";
3
- import { N as useHistoireContext, P as useHistoireResource } from "./extensions-DUXM9uEy.js";
3
+ import { N as useHistoireContext, P as useHistoireResource } from "./extensions-BtOjYv3e.js";
4
4
  import { a as isNumericMatrixAxis, c as equalMatrixValue, d as matrixValueKey, f as parseMatrixCustomValues, l as formatMatrixCustomValues, o as filterMatrixValues, r as useMatrixStore, s as matrixVariantSnippet, u as formatMatrixValue } from "./matrix-BPPIGW-q.js";
5
- import { t as useSelection } from "./selection-DQJWdqhl.js";
6
- import { t as MatrixVisualActions_default } from "./MatrixVisualActions-Cx3QzDTD.js";
5
+ import { t as useSelection } from "./selection-BTc1fRMu.js";
6
+ import { t as MatrixVisualActions_default } from "./MatrixVisualActions-D3b-cp7N.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, watch, withCtx, withKeys, withModifiers } from "@histoire/vendors/vue";
8
8
  import { getHistoireMatrixRange, getHistoireMatrixRangeValues, getHistoireNumericMatrixValues } from "@histoire/protocol";
9
9
  // src/app/components/canvas/matrix/MatrixAxisForm.vue