@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
@@ -1,42 +1,57 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
2
  import { A as useLoadingDelay, n as HstButton, p as HstSelect, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
3
- import { N as useHistoireContext, j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
3
+ import { N as useHistoireContext, j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
4
4
  import { i as useContextMenu } from "./context-menu-Cw2xQKsM.js";
5
5
  import { c as equalMatrixValue, o as filterMatrixValues, r as useMatrixStore, u as formatMatrixValue } from "./matrix-BPPIGW-q.js";
6
- import { a as getBackgroundStyle } from "./background-CG5-SPiv.js";
7
- import { c as useCanvasStore, i as useCanvasFrameBackground, o as useCanvasFrames } from "./canvas-settings-EP62RnvB.js";
8
- import { C as CanvasLoadingIndicator_default, D as clientToCanvas, E as clampZoom, a as isFrameMenuShortcut, c as canvasTrackOffsets, i as useCanvasFrameAdmission, j as canvasContentKey, o as openFrameMenu, p as CanvasReplicaPreview_default, r as useCanvasFrameLedger, s as canvasFrameBounds, w as canvasContentRect } from "./frame-ledger-BHZ0nJjD.js";
6
+ import { o as getBackgroundStyle } from "./background-CUUIkZVL.js";
7
+ import { c as useCanvasStore, i as useCanvasFrameBackground, o as useCanvasFrames } from "./canvas-settings-Cw7AXzFG.js";
8
+ import { D as clampZoom, M as canvasContentKey, O as clientToCanvas, T as canvasContentRect, a as FramePaddingAligners_default, c as canvasFrameBounds, i as useCanvasFrameAdmission, l as canvasTrackOffsets, m as CanvasReplicaPreview_default, o as isFrameMenuShortcut, r as useCanvasFrameLedger, s as openFrameMenu, w as CanvasLoadingIndicator_default } from "./frame-ledger-C67dpCuY.js";
9
9
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
10
10
  import { t as WorkbenchGuideLink_default } from "./WorkbenchGuideLink-COO1XNvp.js";
11
- import { t as useSelection } from "./selection-DQJWdqhl.js";
12
- import { t as MatrixVisualActions_default } from "./MatrixVisualActions-Cx3QzDTD.js";
11
+ import { t as useSelection } from "./selection-BTc1fRMu.js";
12
+ import { t as MatrixVisualActions_default } from "./MatrixVisualActions-D3b-cp7N.js";
13
13
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, toDisplayString, unref, watch, withCtx, withModifiers } from "@histoire/vendors/vue";
14
14
  /** Adjacent previews retain the same screen-space separation. */
15
15
  var MATRIX_GAP = 16;
16
- /** Place previews in world coordinates without scaling labels or gaps. */
16
+ /** Fill row and column tracks in world coordinates while retaining fixed-pixel chrome. */
17
17
  function layoutMatrixFrames(cells, options) {
18
18
  const scale = clampZoom(options.zoom);
19
+ const padding = options.padding ?? 0;
19
20
  const sizes = cells.map((cell) => typeof options.size === "function" ? options.size(cell) : options.size);
20
21
  const rows = cells.map((cell) => options.rows.findIndex((value) => equalMatrixValue(value, cell.row)));
21
22
  const cols = cells.map((cell) => options.cols.findIndex((value) => equalMatrixValue(value, cell.col)));
22
23
  const widths = options.cols.map(() => 0);
23
24
  const heights = options.rows.map(() => 0);
24
25
  sizes.forEach((size, index) => {
25
- widths[cols[index]] = Math.max(widths[cols[index]], size.width);
26
- heights[rows[index]] = Math.max(heights[rows[index]], size.height);
26
+ widths[cols[index]] = Math.max(widths[cols[index]], size.width + padding * 2);
27
+ heights[rows[index]] = Math.max(heights[rows[index]], size.height + padding * 2);
27
28
  });
28
29
  const xs = canvasTrackOffsets(widths, MATRIX_GAP / scale, 128 / scale);
29
30
  const ys = canvasTrackOffsets(heights, MATRIX_GAP / scale, 28 / scale);
30
- return cells.map((cell, index) => ({
31
- id: cell.key,
32
- storyId: options.storyId,
33
- variantId: options.variantId,
34
- x: xs[cols[index]],
35
- y: ys[rows[index]],
36
- width: sizes[index].width,
37
- height: sizes[index].height,
38
- ...typeof options.size === "function" ? { rowBottom: ys[rows[index]] + heights[rows[index]] } : {}
39
- }));
31
+ return cells.map((cell, index) => {
32
+ const column = cols[index];
33
+ const row = rows[index];
34
+ const x = xs[column];
35
+ const y = ys[row];
36
+ const { width, height } = sizes[index];
37
+ const contentRect = {
38
+ x: x + padding,
39
+ y: y + padding,
40
+ width,
41
+ height
42
+ };
43
+ return {
44
+ id: cell.key,
45
+ storyId: options.storyId,
46
+ variantId: options.variantId,
47
+ x,
48
+ y,
49
+ width: widths[column],
50
+ height: heights[row],
51
+ contentRect,
52
+ runtimeBounds: contentRect
53
+ };
54
+ });
40
55
  }
41
56
  /** Include row and column labels once, without artificial scaled outer margins. */
42
57
  function matrixLayoutBounds(frames) {
@@ -237,7 +252,7 @@ function watchMatrixFrameRegistration(options) {
237
252
  id: frame.id,
238
253
  storyId: frame.storyId,
239
254
  variantId: options.getVariantId(),
240
- rect: frame,
255
+ rect: frame.contentRect,
241
256
  fitBounds: options.getFitBounds,
242
257
  propsOverride: options.getPropsOverride?.()
243
258
  });
@@ -247,7 +262,7 @@ function watchMatrixFrameRegistration(options) {
247
262
  });
248
263
  const stopGeometry = watch(options.getFrame, (frame) => {
249
264
  const entry = options.registry.getFrame(frame.id);
250
- if (entry) entry.rect = frame;
265
+ if (entry) entry.rect = frame.contentRect;
251
266
  }, { flush: "sync" });
252
267
  const stopProps = watch(() => options.getPropsOverride?.(), (value) => {
253
268
  const entry = options.registry.getFrame(options.getFrame().id);
@@ -267,17 +282,17 @@ function watchMatrixFrameRegistration(options) {
267
282
  var _hoisted_1$1 = ["data-frame-id", "data-selected"];
268
283
  var _hoisted_2$1 = ["aria-label", "aria-pressed"];
269
284
  var _hoisted_3$1 = {
270
- key: 0,
285
+ key: 1,
271
286
  class: "htw:absolute htw:inset-0 htw:grid htw:[place-content:center] htw:gap-2 htw:p-3 htw:text-muted htw:bg-input htw:text-[11px] htw:text-center htw:pointer-events-none"
272
287
  };
273
288
  var _hoisted_4 = {
274
- key: 1,
289
+ key: 2,
275
290
  class: "histoire-matrix-cell-loading htw:absolute htw:inset-0 htw:grid htw:[place-content:center] htw:gap-2 htw:p-3 htw:text-muted htw:bg-input htw:text-[11px] htw:text-center htw:pointer-events-none",
276
291
  role: "status",
277
292
  "aria-label": "Loading variant"
278
293
  };
279
294
  var _hoisted_5 = {
280
- key: 2,
295
+ key: 3,
281
296
  class: "htw:absolute htw:inset-0 htw:grid htw:[place-content:center] htw:gap-2 htw:p-3 htw:text-muted htw:bg-input htw:text-[11px] htw:text-center htw:pointer-events-none htw:text-danger htw:bg-danger-soft",
282
297
  role: "alert"
283
298
  };
@@ -290,7 +305,9 @@ var MatrixCell_default = /* @__PURE__ */ defineComponent({
290
305
  fitBounds: { type: Function },
291
306
  live: { type: Boolean },
292
307
  variantId: {},
293
- previewBase: {}
308
+ previewBase: {},
309
+ padding: {},
310
+ fixedSize: { type: Boolean }
294
311
  },
295
312
  setup(__props) {
296
313
  const props = __props;
@@ -309,10 +326,13 @@ var MatrixCell_default = /* @__PURE__ */ defineComponent({
309
326
  width: `${props.frame.width * canvas.effectiveZoom}px`,
310
327
  height: `${props.frame.height * canvas.effectiveZoom}px`
311
328
  }));
312
- const style = computed(() => ({
313
- width: `${props.frame.width}px`,
314
- height: `${props.frame.height}px`,
315
- transform: `scale(${canvas.effectiveZoom})`
329
+ const gutter = computed(() => props.padding ?? 0);
330
+ /** Variant bounds inside the gutter; measuring and comments target these. */
331
+ const inner = computed(() => props.frame.contentRect);
332
+ const contentStyle = computed(() => ({
333
+ width: `${inner.value.width}px`,
334
+ height: `${inner.value.height}px`,
335
+ transform: `translate(${gutter.value * canvas.effectiveZoom}px, ${gutter.value * canvas.effectiveZoom}px) scale(${canvas.effectiveZoom})`
316
336
  }));
317
337
  let releaseSource = () => {};
318
338
  const unregister = watchMatrixFrameRegistration({
@@ -371,7 +391,7 @@ var MatrixCell_default = /* @__PURE__ */ defineComponent({
371
391
  }, [
372
392
  createElementVNode("div", {
373
393
  class: "histoire-matrix-cell-content htw:origin-top-left",
374
- style: normalizeStyle(style.value)
394
+ style: normalizeStyle(contentStyle.value)
375
395
  }, [__props.live ? (openBlock(), createBlock(CanvasReplicaPreview_default, {
376
396
  key: __props.variantId,
377
397
  ref_key: "preview",
@@ -381,14 +401,31 @@ var MatrixCell_default = /* @__PURE__ */ defineComponent({
381
401
  "variant-id": __props.variantId,
382
402
  "preview-base": __props.previewBase,
383
403
  "props-override": __props.cell.props,
404
+ "declared-size": __props.fixedSize ? {
405
+ width: inner.value.width,
406
+ height: inner.value.height
407
+ } : void 0,
384
408
  onStatus: updateStatus
385
409
  }, null, 8, [
386
410
  "frame-id",
387
411
  "story-id",
388
412
  "variant-id",
389
413
  "preview-base",
390
- "props-override"
414
+ "props-override",
415
+ "declared-size"
391
416
  ])) : createCommentVNode("", true)], 4),
417
+ gutter.value > 0 ? (openBlock(), createBlock(FramePaddingAligners_default, {
418
+ key: 0,
419
+ width: inner.value.width * unref(canvas).effectiveZoom,
420
+ height: inner.value.height * unref(canvas).effectiveZoom,
421
+ padding: gutter.value * unref(canvas).effectiveZoom,
422
+ background: unref(background)
423
+ }, null, 8, [
424
+ "width",
425
+ "height",
426
+ "padding",
427
+ "background"
428
+ ])) : createCommentVNode("", true),
392
429
  createElementVNode("button", {
393
430
  class: "histoire-matrix-cell-select htw:absolute htw:inset-0 htw:w-full htw:m-0 htw:p-0 htw:border-0 htw:rounded-[inherit] htw:bg-transparent htw:cursor-pointer htw:[appearance:none] htw:focus-visible:outline-2 htw:focus-visible:outline-solid htw:focus-visible:outline-accent htw:focus-visible:-outline-offset-[3px]",
394
431
  type: "button",
@@ -427,6 +464,7 @@ var MatrixView_default = /* @__PURE__ */ defineComponent({
427
464
  rows: {},
428
465
  cols: {},
429
466
  size: {},
467
+ padding: {},
430
468
  previewBase: {},
431
469
  contentInsets: {},
432
470
  uiHidden: { type: Boolean },
@@ -453,14 +491,15 @@ var MatrixView_default = /* @__PURE__ */ defineComponent({
453
491
  const baseVariant = computed(() => variant.value?.id ?? story.value?.variants[0]?.id);
454
492
  const rowValues = computed(() => matrix.rowAxis.value ? filterMatrixValues(matrix.rowAxis.value, matrix.rowValues.value) : []);
455
493
  const colValues = computed(() => matrix.colAxis.value ? filterMatrixValues(matrix.colAxis.value, matrix.colValues.value) : []);
456
- /** Matrix projections share a variant, but never share intrinsic dimensions. */
494
+ /** Matrix projections share a variant and measure their own content in Auto fit. */
457
495
  function cellSize(cell) {
458
496
  const target = {
459
497
  storyId: story.value?.id ?? "",
460
498
  variantId: baseVariant.value ?? ""
461
499
  };
462
- return canvas.contentSizes.get(cell.key, canvasContentKey(snapshot.value, target, cell.props)) ?? props.size;
500
+ return (canvas.autoFitContent ? canvas.contentSizes.get(cell.key, canvasContentKey(snapshot.value, target, cell.props)) : void 0) ?? props.size;
463
501
  }
502
+ const gutter = computed(() => props.padding ?? 0);
464
503
  /** Rendering and selection share fixed-pixel matrix gutter/gap calculations. */
465
504
  function layoutFrames(zoom = canvas.effectiveZoom) {
466
505
  return layoutMatrixFrames(matrix.cells.value, {
@@ -468,7 +507,8 @@ var MatrixView_default = /* @__PURE__ */ defineComponent({
468
507
  variantId: baseVariant.value ?? "",
469
508
  rows: rowValues.value,
470
509
  cols: colValues.value,
471
- size: canvas.autoFitContent ? cellSize : props.size,
510
+ size: cellSize,
511
+ padding: gutter.value,
472
512
  zoom
473
513
  });
474
514
  }
@@ -510,11 +550,10 @@ var MatrixView_default = /* @__PURE__ */ defineComponent({
510
550
  if (!frames.value.length) return [];
511
551
  return rowValues.value.map((value, index) => {
512
552
  const frame = frames.value[index * colValues.value.length];
513
- const height = Math.max(...frames.value.slice(index * colValues.value.length, (index + 1) * colValues.value.length).map((frame) => frame.height));
514
553
  return {
515
554
  value,
516
555
  style: {
517
- top: `${(frame.y + height / 2) * canvas.effectiveZoom + canvas.panOffset.y}px`,
556
+ top: `${(frame.y + frame.height / 2) * canvas.effectiveZoom + canvas.panOffset.y}px`,
518
557
  left: `${canvas.panOffset.x}px`,
519
558
  width: `128px`
520
559
  }
@@ -525,13 +564,12 @@ var MatrixView_default = /* @__PURE__ */ defineComponent({
525
564
  if (!frames.value.length) return [];
526
565
  return colValues.value.map((value, index) => {
527
566
  const frame = frames.value[index];
528
- const width = Math.max(...frames.value.filter((_, cellIndex) => cellIndex % colValues.value.length === index).map((frame) => frame.width));
529
567
  return {
530
568
  value,
531
569
  style: {
532
570
  top: `${frame.y * canvas.effectiveZoom + canvas.panOffset.y - 28}px`,
533
571
  left: `${frame.x * canvas.effectiveZoom + canvas.panOffset.x}px`,
534
- width: `${width * canvas.effectiveZoom}px`
572
+ width: `${frame.width * canvas.effectiveZoom}px`
535
573
  }
536
574
  };
537
575
  });
@@ -587,14 +625,18 @@ var MatrixView_default = /* @__PURE__ */ defineComponent({
587
625
  "fit-bounds": (zoom) => layoutFrames(zoom)[index],
588
626
  live: unref(live).has(cell.key),
589
627
  "variant-id": baseVariant.value ?? "",
590
- "preview-base": __props.previewBase
628
+ "preview-base": __props.previewBase,
629
+ padding: gutter.value,
630
+ "fixed-size": !!unref(canvas).frameSizeFromCode
591
631
  }, null, 8, [
592
632
  "cell",
593
633
  "frame",
594
634
  "fit-bounds",
595
635
  "live",
596
636
  "variant-id",
597
- "preview-base"
637
+ "preview-base",
638
+ "padding",
639
+ "fixed-size"
598
640
  ]);
599
641
  }), 128))
600
642
  ], 4)], 4))]);
@@ -1,8 +1,8 @@
1
1
  import { d as HstPulsatingDisc, n as HstButton } from "./controls-DpdwHd4q.js";
2
2
  import { r as useMatrixStore, u as formatMatrixValue } from "./matrix-BPPIGW-q.js";
3
- import { r as useWorkbenchVisual } from "./visual-CId9zv09.js";
3
+ import { r as useWorkbenchVisual } from "./visual-nnXRPOP8.js";
4
4
  import { t as snapshotScreenshotTargets } from "./screenshot-targets-1TJFnTQJ.js";
5
- import { t as useSelection } from "./selection-DQJWdqhl.js";
5
+ import { t as useSelection } from "./selection-BTc1fRMu.js";
6
6
  import { createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, ref, toDisplayString, unref, withCtx } from "@histoire/vendors/vue";
7
7
  // src/app/components/canvas/matrix/MatrixVisualActions.vue?vue&type=script&setup=true&lang.ts
8
8
  var _hoisted_1 = {
@@ -1,5 +1,5 @@
1
1
  import { A as useLoadingDelay, n as HstButton, 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 { t as catalogTargetLabel } from "./catalog-target-BN1NsBKA.js";
4
4
  import { i as isMcpOperationCancellable, l as mcpTimeAgo, o as mcpOperationIcon, r as useMcpStore, s as mcpOperationProgress } from "./mcp-CbWZxLuC.js";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderList, toDisplayString, unref, withCtx } from "@histoire/vendors/vue";
@@ -1,7 +1,7 @@
1
1
  import { n as HstButton } from "./controls-DpdwHd4q.js";
2
2
  import { a as mcpClientConfig, c as mcpStdioClientConfig, r as useMcpStore } from "./mcp-CbWZxLuC.js";
3
3
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
4
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
4
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, toDisplayString, unref, withCtx } from "@histoire/vendors/vue";
6
6
  // src/app/components/pages/settings/McpSection.vue?vue&type=script&setup=true&lang.ts
7
7
  var _hoisted_1 = { class: "htw:w-[min(100%,_740px)] htw:mx-auto" };
@@ -1,6 +1,6 @@
1
1
  import { n as HstButton, 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 { n as HomeHeading_default, t as HomeCard_default } from "./HomeCard-JYU5jbs7.js";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref, withCtx } from "@histoire/vendors/vue";
6
6
  // src/app/components/pages/home/NeedsAttention.vue?vue&type=script&setup=true&lang.ts
@@ -1,7 +1,7 @@
1
1
  import { N as getControlElement, n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
2
  import { r as useAgentsStore } from "./agents-Cnoa7KRp.js";
3
3
  import { r as useAiThreads } from "./ai-threads-3QfVXZ43.js";
4
- import { r as AgentElicitation_default, t as AgentPlanApproval_default } from "./AgentPlanApproval-D4hnGlYs.js";
4
+ import { r as AgentElicitation_default, t as AgentPlanApproval_default } from "./AgentPlanApproval-22I_Lbhn.js";
5
5
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, onBeforeUnmount, openBlock, ref, toDisplayString, unref, watch, withCtx, withKeys, withModifiers } from "@histoire/vendors/vue";
6
6
  // src/app/components/agents/PermissionPrompt.vue?vue&type=script&setup=true&lang.ts
7
7
  var _hoisted_1 = {
@@ -2,14 +2,14 @@ import { U as WorkbenchEmptyState_default, m as createClientUuid } from "./sandb
2
2
  import { d as HstPulsatingDisc, h as HstSwitch, n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
3
3
  import { t as useContributionLookup } from "./shell-extensions-BRqMTtWV.js";
4
4
  import { r as uiHttpUrl } from "./http-json-B3BE0tJj.js";
5
- import { r as useMarketplaceStore } from "./marketplace-DKeNfni-.js";
6
- import { l as useMenuKeyboard, t as BasePopover_default } from "./BasePopover-CQQ8wKev.js";
5
+ import { r as useMarketplaceStore } from "./marketplace-BE5IMmf3.js";
6
+ import { l as useMenuKeyboard, t as BasePopover_default } from "./BasePopover-B3Y5H1gd.js";
7
7
  import { t as PopoverDivider_default } from "./PopoverDivider-vLxqs_KP.js";
8
8
  import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
9
9
  import { n as BaseChip_default, t as PluginTile_default } from "./PluginTile-CfplGy7m.js";
10
10
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
11
11
  import { t as SettingsChoices_default } from "./SettingsChoices-BoESgi62.js";
12
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
12
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
13
13
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, onMounted, onScopeDispose, onUnmounted, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, watch, withCtx } from "@histoire/vendors/vue";
14
14
  import { installedPlugins } from "virtual:$histoire-config";
15
15
  import { officialPlugins } from "virtual:$histoire-marketplace-official";
@@ -706,6 +706,9 @@ var PluginsSection_default = /* @__PURE__ */ defineComponent({
706
706
  const dev = __props.dev;
707
707
  const store = useMarketplaceStore();
708
708
  const updates = store.updates;
709
+ onMounted(() => {
710
+ updates.refresh();
711
+ });
709
712
  const jobs = store.settingsJobs;
710
713
  const manager = usePackageManager(store, dev);
711
714
  const sections = useContributionLookup("settings.section");
@@ -1,12 +1,12 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
2
  import { n as HstButton, r as HstButtonGroup, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
3
- import { i as PopoverError_default, r as useCanvasPreviewSettings, t as ToolbarPopover_default, u as getSelectedCanvasFrame } from "./ToolbarPopover-Nd-us4Fg.js";
3
+ import { i as PopoverError_default, r as useCanvasPreviewSettings, t as ToolbarPopover_default, u as getSelectedCanvasFrame } from "./ToolbarPopover-CXizdbQq.js";
4
4
  import { a as sendUiEvent, n as onUiDisconnect, r as onUiEvent } from "./ui-channel-BPYj8uw2.js";
5
5
  import { t as catalogTargetLabel } from "./catalog-target-BN1NsBKA.js";
6
- import { n as getBackgroundCapture } from "./background-CG5-SPiv.js";
7
- import { t as useCaptureDiscoveryPause } from "./capture-SFV9pF9b.js";
6
+ import { n as getBackgroundCapture } from "./background-CUUIkZVL.js";
7
+ import { t as useCaptureDiscoveryPause } from "./capture-DxD6llwl.js";
8
8
  import { t as snapshotScreenshotTargets } from "./screenshot-targets-1TJFnTQJ.js";
9
- import { c as useCanvasStore, o as useCanvasFrames } from "./canvas-settings-EP62RnvB.js";
9
+ import { c as useCanvasStore, o as useCanvasFrames } from "./canvas-settings-Cw7AXzFG.js";
10
10
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
11
11
  import { t as PopoverDivider_default } from "./PopoverDivider-vLxqs_KP.js";
12
12
  import { t as PopoverTitle_default } from "./PopoverTitle-zikHVKQE.js";
@@ -3,9 +3,9 @@ import { n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
3
3
  import { i as isPluginContributionId, t as contributionKey } from "./shell-registry-dTiCKXFh.js";
4
4
  import { t as useContributionLookup } from "./shell-extensions-BRqMTtWV.js";
5
5
  import { r as normalizeSettingsSection, t as SETTINGS_SECTIONS } from "./settings-B8QvkMcW.js";
6
- import { i as useOptionalMarketplaceStore } from "./marketplace-DKeNfni-.js";
6
+ import { i as useOptionalMarketplaceStore } from "./marketplace-BE5IMmf3.js";
7
7
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
8
- import { n as ExtensionView_default, t as resolveContributionIcon } from "./icons-Bd36WZPu.js";
8
+ import { n as ExtensionView_default, t as resolveContributionIcon } from "./icons-DoUVE4X3.js";
9
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, withCtx } from "@histoire/vendors/vue";
10
10
  // src/app/components/pages/settings/SettingsCard.vue?vue&type=script&setup=true&lang.ts
11
11
  var _hoisted_1$2 = { class: "htw:[border:1px_solid_var(--histoire-border,_#e4e4e7)] htw:rounded-[15px] htw:bg-surface htw:mb-[18px] htw:overflow-hidden" };
@@ -130,16 +130,16 @@ var SettingsPage_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
130
130
  /** Selected plugin section, when registered and available. */
131
131
  const pluginSection = computed(() => isPluginContributionId(section.value) ? plugins.list().find((item) => item.id === section.value) : void 0);
132
132
  const sections = {
133
- general: defineAsyncComponent(() => import("./GeneralSection-CT_-32qT.js")),
134
- appearance: defineAsyncComponent(() => import("./AppearanceSection-DMjmDr1Y.js")),
135
- viewports: defineAsyncComponent(() => import("./ViewportsSection-3EWu6WSc.js").then((n) => n.n)),
136
- shortcuts: defineAsyncComponent(() => import("./ShortcutsSection-D3-4e5Ug.js")),
137
- plugins: defineAsyncComponent(() => import("./PluginsSection-B3ZWAjrk.js")),
138
- about: defineAsyncComponent(() => import("./AboutSection-D3IIVsiV.js")),
133
+ general: defineAsyncComponent(() => import("./GeneralSection-dvmJUgqN.js")),
134
+ appearance: defineAsyncComponent(() => import("./AppearanceSection-maVgcfMk.js")),
135
+ viewports: defineAsyncComponent(() => import("./ViewportsSection-D6mpKTSM.js").then((n) => n.n)),
136
+ shortcuts: defineAsyncComponent(() => import("./ShortcutsSection-EK2-e56v.js")),
137
+ plugins: defineAsyncComponent(() => import("./PluginsSection-Dhv2haa3.js")),
138
+ about: defineAsyncComponent(() => import("./AboutSection-mX7J6xrz.js")),
139
139
  ...dev ? {
140
- tests: defineAsyncComponent(() => import("./TestsSection-CEXW49Ge.js")),
141
- mcp: defineAsyncComponent(() => import("./McpSection-DRGzPGXO.js")),
142
- agents: defineAsyncComponent(() => import("./AgentsSection-CJGS9C2q.js"))
140
+ tests: defineAsyncComponent(() => import("./TestsSection-CIkkHlyK.js")),
141
+ mcp: defineAsyncComponent(() => import("./McpSection-swh7qlM0.js")),
142
+ agents: defineAsyncComponent(() => import("./AgentsSection-DWmUKCX-.js"))
143
143
  } : {}
144
144
  };
145
145
  watch(section, (value) => {
@@ -1,6 +1,6 @@
1
1
  import { a as useShortcutRegistry } from "./shortcuts-BPetXlYX.js";
2
2
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
3
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
3
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
4
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderList, toDisplayString, unref, withCtx } from "@histoire/vendors/vue";
5
5
  // src/app/components/pages/settings/ShortcutsSection.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = { class: "htw:w-[min(100%,_740px)] htw:mx-auto" };
@@ -1,18 +1,18 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
2
2
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
3
3
  import { A as useLoadingDelay, d as HstPulsatingDisc, n as HstButton, r as HstButtonGroup, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
4
- import { D as HistoireControls, N as useHistoireContext, h as HistoireSource, j as useHistoireSnapshot, l as useProvidedHistoireTestsModel } from "./extensions-DUXM9uEy.js";
5
- import { r as useWorkbenchTestsModel } from "./model-DhvdMZzS.js";
4
+ import { D as HistoireControls, N as useHistoireContext, h as HistoireSource, j as useHistoireSnapshot, l as useProvidedHistoireTestsModel } from "./extensions-BtOjYv3e.js";
5
+ import { r as useWorkbenchTestsModel } from "./model-CIFxQfDH.js";
6
6
  import { i as useContextMenu, n as isContextMenuShortcut } from "./context-menu-Cw2xQKsM.js";
7
7
  import { i as useExtensionHost } from "./extensions-DY0LLiE_.js";
8
- import { a as fitOverflowItems, c as createInspectorEventCounter, d as getInspectorTabKey, f as getInspectorTabs, i as toolbarAvailableWidth, l as findChangedSourceLine, m as resolveInspectorTab, o as ExtensionOutlet_default, p as isInspectorTestsEnabled, r as measureInlineItem, t as createItemWidthCache, u as getInspectorTabId } from "./measurement-DfNeNMZe.js";
9
- import { n as usePageOwnership } from "./ownership-004rrffQ.js";
8
+ import { a as fitOverflowItems, c as createInspectorEventCounter, d as getInspectorTabKey, f as getInspectorTabs, i as toolbarAvailableWidth, l as findChangedSourceLine, m as resolveInspectorTab, o as ExtensionOutlet_default, p as isInspectorTestsEnabled, r as measureInlineItem, t as createItemWidthCache, u as getInspectorTabId } from "./measurement-BPE7RMeb.js";
9
+ import { n as usePageOwnership } from "./ownership-BVQ3d672.js";
10
10
  import { n as useShell } from "./shell-VHlsl1Wj.js";
11
11
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
12
- import { l as useMenuKeyboard, t as BasePopover_default } from "./BasePopover-CQQ8wKev.js";
13
- import { n as ExtensionView_default, t as resolveContributionIcon } from "./icons-Bd36WZPu.js";
12
+ import { l as useMenuKeyboard, t as BasePopover_default } from "./BasePopover-B3Y5H1gd.js";
13
+ import { n as ExtensionView_default, t as resolveContributionIcon } from "./icons-DoUVE4X3.js";
14
14
  import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
15
- import { t as useSelection } from "./selection-DQJWdqhl.js";
15
+ import { t as useSelection } from "./selection-BTc1fRMu.js";
16
16
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineAsyncComponent, defineComponent, inject, nextTick, normalizeClass, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, vShow, watch, withCtx, withDirectives } from "@histoire/vendors/vue";
17
17
  import { getHistoireTargetKey } from "@histoire/protocol";
18
18
  import { canOpenHistoireTargetInEditor, requestHistoireOpenInEditor } from "@histoire/sdk/internal";
@@ -202,9 +202,9 @@ var TestsBadge_default = /* @__PURE__ */ defineComponent({
202
202
  }
203
203
  });
204
204
  // src/app/components/inspector/builtins.ts
205
- var DocsTab = defineAsyncComponent(() => import("./DocsTab-BR3BktyF.js"));
206
- var EventsTab = defineAsyncComponent(() => import("./EventsTab-BP0hCGqL.js"));
207
- var TestsTab = defineAsyncComponent(() => import("./TestsTab-B-ZNDgGi.js"));
205
+ var DocsTab = defineAsyncComponent(() => import("./DocsTab-PpFKAC6Q.js"));
206
+ var EventsTab = defineAsyncComponent(() => import("./EventsTab-DLVYcX1N.js"));
207
+ var TestsTab = defineAsyncComponent(() => import("./TestsTab-ykf9zwmG.js"));
208
208
  /**
209
209
  * Built-in tab views keyed by route value; identity and order live in
210
210
  * `INSPECTOR_BUILTIN_TABS`. A new built-in panel adds one entry in each, never a template branch.
@@ -605,7 +605,10 @@ var InspectorTabs_default = /* @__PURE__ */ defineComponent({
605
605
  width: 200,
606
606
  "focus-last": unref(focusLast)
607
607
  }, {
608
- default: withCtx(() => [createElementVNode("div", { onKeydown: _cache[1] || (_cache[1] = (...args) => unref(menuKey) && unref(menuKey)(...args)) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(menu.value, (tab) => {
608
+ default: withCtx(() => [createElementVNode("div", {
609
+ class: "htw:menu-rows",
610
+ onKeydown: _cache[1] || (_cache[1] = (...args) => unref(menuKey) && unref(menuKey)(...args))
611
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(menu.value, (tab) => {
609
612
  return openBlock(), createBlock(MenuItem_default, {
610
613
  key: tab.value,
611
614
  label: tab.label,
@@ -1,16 +1,16 @@
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, p as HstSelect, r as HstButtonGroup, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
3
- import { N as useHistoireContext, P as useHistoireResource, j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
4
- import { i as getCollectionFailure, r as useWorkbenchTestsModel } from "./model-DhvdMZzS.js";
3
+ import { N as useHistoireContext, P as useHistoireResource, j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
4
+ import { i as getCollectionFailure, r as useWorkbenchTestsModel } from "./model-CIFxQfDH.js";
5
5
  import { i as useContextMenu, n as isContextMenuShortcut } from "./context-menu-Cw2xQKsM.js";
6
- import { r as useWorkbenchVisual } from "./visual-CId9zv09.js";
6
+ import { r as useWorkbenchVisual } from "./visual-nnXRPOP8.js";
7
7
  import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
8
8
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
9
9
  import { t as WorkbenchPaneHeader_default } from "./WorkbenchPaneHeader-DBuiBHTT.js";
10
- import { t as WorkbenchPanelAction_default } from "./WorkbenchPanelAction-Cl68QrDs.js";
10
+ import { t as WorkbenchPanelAction_default } from "./WorkbenchPanelAction-SLby10Vh.js";
11
11
  import { t as WorkbenchPaneToolbar_default } from "./WorkbenchPaneToolbar-DEYUs_bD.js";
12
12
  import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
13
- import { t as WorkbenchVirtualList_default } from "./WorkbenchVirtualList-CUTamRgO.js";
13
+ import { t as WorkbenchVirtualList_default } from "./WorkbenchVirtualList-HCZiNo7p.js";
14
14
  import { t as WorkbenchGuideLink_default } from "./WorkbenchGuideLink-COO1XNvp.js";
15
15
  import { n as visualStatus, t as VISUAL_STATUS } from "./status-C0sxyPzj.js";
16
16
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, toDisplayString, unref, useId, withCtx } from "@histoire/vendors/vue";
@@ -1,7 +1,7 @@
1
1
  import { h as HstSwitch } from "./controls-DpdwHd4q.js";
2
2
  import { a as useUiSettingsStore } from "./settings-B8QvkMcW.js";
3
3
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
4
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
4
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
5
5
  import { createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, unref, withCtx } from "@histoire/vendors/vue";
6
6
  // src/app/components/pages/settings/TestsSection.vue?vue&type=script&setup=true&lang.ts
7
7
  var _hoisted_1 = { class: "htw:w-[min(100%,_740px)] htw:mx-auto" };
@@ -1,9 +1,9 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
- import { o as HistoireTests } from "./extensions-DUXM9uEy.js";
2
+ import { o as HistoireTests } from "./extensions-BtOjYv3e.js";
3
3
  import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
4
4
  import { t as WorkbenchLoadingState_default } from "./WorkbenchLoadingState-CLA8IBL6.js";
5
- import { t as InspectorGuideLink_default } from "./InspectorGuideLink-Bqlz1aaY.js";
6
- import { n as useInspectorModel } from "./StoryInspector-BJKzoeHc.js";
5
+ import { t as InspectorGuideLink_default } from "./InspectorGuideLink-7Ui_Y2Wd.js";
6
+ import { n as useInspectorModel } from "./StoryInspector-DCNgw0x8.js";
7
7
  import { Fragment, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, withCtx } from "@histoire/vendors/vue";
8
8
  // src/app/components/inspector/TestsTab.vue
9
9
  var TestsTab_default = /* @__PURE__ */ defineComponent({
@@ -1,17 +1,17 @@
1
1
  import { A as useLoadingDelay, d as HstPulsatingDisc, n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
- import { N as useHistoireContext, j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
2
+ import { N as useHistoireContext, j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
3
3
  import { a as sendUiEvent, r as onUiEvent } from "./ui-channel-BPYj8uw2.js";
4
4
  import { t as catalogTargetLabel } from "./catalog-target-BN1NsBKA.js";
5
5
  import { a as useShortcutRegistry, r as matchesShortcut, t as createShortcutRegistry } from "./shortcuts-BPetXlYX.js";
6
6
  import { r as useAgentsStore } from "./agents-Cnoa7KRp.js";
7
7
  import { r as useAiThreads } from "./ai-threads-3QfVXZ43.js";
8
8
  import { n as requestJson, r as uiHttpUrl, t as jsonBody } from "./http-json-B3BE0tJj.js";
9
- import { t as BasePopover_default } from "./BasePopover-CQQ8wKev.js";
9
+ import { t as BasePopover_default } from "./BasePopover-B3Y5H1gd.js";
10
10
  import { n as isMac, r as isTypingTarget, t as formatKey } from "./keyboard-DWsKh2rn.js";
11
11
  import { t as PopoverDivider_default } from "./PopoverDivider-vLxqs_KP.js";
12
12
  import { t as PopoverTitle_default } from "./PopoverTitle-zikHVKQE.js";
13
13
  import { t as MenuItem_default } from "./MenuItem-BYRJG5YA.js";
14
- import { n as AgentMarkdown_default, r as AgentElicitation_default, t as AgentPlanApproval_default } from "./AgentPlanApproval-D4hnGlYs.js";
14
+ import { n as AgentMarkdown_default, r as AgentElicitation_default, t as AgentPlanApproval_default } from "./AgentPlanApproval-22I_Lbhn.js";
15
15
  import { n as screenshotUrl } from "./screenshot-file-5sIH6A7o.js";
16
16
  import { n as useAgentDiscovery, t as AgentLogo_default } from "./AgentLogo-C2uXqX04.js";
17
17
  import { COMMENT_ATTACHMENT_LIMIT, isPinnedThread } from "@histoire/shared";
@@ -633,7 +633,7 @@ function useAutoGrow(textarea, value) {
633
633
  onMounted(resize);
634
634
  }
635
635
  // src/app/components/comments/prompt/AttachMenuPanel.vue?vue&type=script&setup=true&lang.ts
636
- var _hoisted_1$11 = { class: "htw:grid htw:[grid-template-columns:repeat(3,_1fr)] htw:gap-1.5 htw:pt-0 htw:px-2 htw:pb-2" };
636
+ var _hoisted_1$11 = { class: "htw:grid htw:[grid-template-columns:repeat(3,_1fr)] htw:gap-px htw:pt-0 htw:px-2 htw:pb-2" };
637
637
  var _hoisted_2$10 = [
638
638
  "aria-label",
639
639
  "title",
@@ -869,7 +869,7 @@ var PromptSuggestions_default = /* @__PURE__ */ defineComponent({
869
869
  return (_ctx, _cache) => {
870
870
  return openBlock(), createElementBlock("ul", {
871
871
  id: __props.id,
872
- class: "htw:absolute htw:[z-index:2] htw:[right:-1px] htw:[bottom:calc(100%_+_4px)] htw:[left:-1px] htw:max-h-55 htw:m-0 htw:p-1 htw:overflow-y-auto htw:list-none htw:border htw:border-border htw:rounded-control htw:bg-surface htw:shadow-panel",
872
+ class: "htw:absolute htw:[z-index:2] htw:[right:-1px] htw:[bottom:calc(100%_+_4px)] htw:[left:-1px] htw:max-h-55 htw:m-0 htw:p-1 htw:overflow-y-auto htw:list-none htw:border htw:border-border htw:rounded-control htw:bg-surface htw:shadow-panel htw:menu-rows",
873
873
  role: "listbox",
874
874
  "aria-label": __props.label,
875
875
  onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"]))
@@ -1,7 +1,7 @@
1
1
  import { n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
2
- import { N as useHistoireContext, j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
3
- import { c as useCanvasStore } from "./canvas-settings-EP62RnvB.js";
4
- import { o as reservePopoverInlineEnd, t as BasePopover_default } from "./BasePopover-CQQ8wKev.js";
2
+ import { N as useHistoireContext, j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
3
+ import { c as useCanvasStore } from "./canvas-settings-Cw7AXzFG.js";
4
+ import { o as reservePopoverInlineEnd, t as BasePopover_default } from "./BasePopover-B3Y5H1gd.js";
5
5
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, openBlock, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useSlots, watch, withCtx } from "@histoire/vendors/vue";
6
6
  import { getHistoireTargetKey } from "@histoire/protocol";
7
7
  // src/app/components/canvas/frame-target.ts
@@ -3,7 +3,7 @@ import { J as histoireConfig } from "./sandbox-shared-CwPQj187.js";
3
3
  import { g as HstText, n as HstButton, t as BuiltinIcon, u as HstNumber } from "./controls-DpdwHd4q.js";
4
4
  import { r as usePresetConfigStore } from "./presets-config-CfdpjV2k.js";
5
5
  import { t as SettingsRow_default } from "./SettingsRow-C4lda-j7.js";
6
- import { n as SettingsCard_default } from "./SettingsPage-BvT1FOl7.js";
6
+ import { n as SettingsCard_default } from "./SettingsPage-D6ZOAgS9.js";
7
7
  import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, withCtx, withModifiers } from "@histoire/vendors/vue";
8
8
  // src/app/components/pages/settings/ViewportsSection.vue?vue&type=script&setup=true&lang.ts
9
9
  var _hoisted_1 = {
@@ -1,7 +1,7 @@
1
1
  import { U as WorkbenchEmptyState_default } from "./sandbox-shared-CwPQj187.js";
2
2
  import { A as useLoadingDelay, d as HstPulsatingDisc, n as HstButton, t as BuiltinIcon } from "./controls-DpdwHd4q.js";
3
- import { j as useHistoireSnapshot } from "./extensions-DUXM9uEy.js";
4
- import { r as useWorkbenchVisual } from "./visual-CId9zv09.js";
3
+ import { j as useHistoireSnapshot } from "./extensions-BtOjYv3e.js";
4
+ import { r as useWorkbenchVisual } from "./visual-nnXRPOP8.js";
5
5
  import { t as WorkbenchErrorState_default } from "./WorkbenchErrorState-D97EoY89.js";
6
6
  import { n as visualStatus } from "./status-C0sxyPzj.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, isRef, nextTick, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, watch, withCtx } from "@histoire/vendors/vue";