@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.
- package/dist/app/style/theme.css +8 -0
- package/dist/bundled/app.css +2 -2
- package/dist/bundled/chunks/{AboutSection-D3IIVsiV.js → AboutSection-mX7J6xrz.js} +2 -2
- package/dist/bundled/chunks/{AgentCursor-Cg5SLa2H.js → AgentCursor-DcVxonMC.js} +2 -2
- package/dist/bundled/chunks/{AgentPlanApproval-D4hnGlYs.js → AgentPlanApproval-22I_Lbhn.js} +1 -1
- package/dist/bundled/chunks/{AgentsSection-CJGS9C2q.js → AgentsSection-DWmUKCX-.js} +1 -1
- package/dist/bundled/chunks/{AiPanel-B9QWRuSg.js → AiPanel-BICtbtCE.js} +4 -4
- package/dist/bundled/chunks/{AppearanceSection-DMjmDr1Y.js → AppearanceSection-maVgcfMk.js} +6 -6
- package/dist/bundled/chunks/{BasePopover-CQQ8wKev.js → BasePopover-B3Y5H1gd.js} +1 -1
- package/dist/bundled/chunks/{CommentsCanvasOverlay-UX-oYgnx.js → CommentsCanvasOverlay-DhqtbJNX.js} +5 -5
- package/dist/bundled/chunks/{DevBrowseStatus-D2rIG8uC.js → DevBrowseStatus-B6cLRu19.js} +2 -2
- package/dist/bundled/chunks/{DocsTab-BR3BktyF.js → DocsTab-PpFKAC6Q.js} +4 -4
- package/dist/bundled/chunks/{EventsTab-BP0hCGqL.js → EventsTab-DLVYcX1N.js} +3 -3
- package/dist/bundled/chunks/{GeneralSection-CT_-32qT.js → GeneralSection-dvmJUgqN.js} +1 -1
- package/dist/bundled/chunks/{InspectionPanel-C6kUdJj9.js → InspectionPanel-DDuT3guJ.js} +2 -2
- package/dist/bundled/chunks/{InspectorGuideLink-Bqlz1aaY.js → InspectorGuideLink-7Ui_Y2Wd.js} +1 -1
- package/dist/bundled/chunks/{MarkdownPage-DD7XyGkq.js → MarkdownPage-D_LpsCvG.js} +3 -3
- package/dist/bundled/chunks/{MarketplaceUpdateBody-B1cn_zeo.js → MarketplaceUpdateBody-BtLPpA7F.js} +2 -2
- package/dist/bundled/chunks/{MarketplaceView-eDPLtc_x.js → MarketplaceView-C1sVFRsq.js} +39 -10
- package/dist/bundled/chunks/{MatrixInspector-eIr_N5eH.js → MatrixInspector-wqkJJnuf.js} +3 -3
- package/dist/bundled/chunks/{MatrixView-CDmN-Kl9.js → MatrixView-D-Snu47M.js} +82 -40
- package/dist/bundled/chunks/{MatrixVisualActions-Cx3QzDTD.js → MatrixVisualActions-D3b-cp7N.js} +2 -2
- package/dist/bundled/chunks/{McpActivity-CiK3jUTY.js → McpActivity-r2CFr-ny.js} +1 -1
- package/dist/bundled/chunks/{McpSection-DRGzPGXO.js → McpSection-swh7qlM0.js} +1 -1
- package/dist/bundled/chunks/{NeedsAttention-C5zjd6RT.js → NeedsAttention-Cf6ihlT0.js} +2 -2
- package/dist/bundled/chunks/{PermissionPrompt-i5VbZCCJ.js → PermissionPrompt-CXTPfiIu.js} +1 -1
- package/dist/bundled/chunks/{PluginsSection-B3ZWAjrk.js → PluginsSection-Dhv2haa3.js} +6 -3
- package/dist/bundled/chunks/{ScreenshotPopover-DWcV_NAf.js → ScreenshotPopover-BZ37-dfK.js} +4 -4
- package/dist/bundled/chunks/{SettingsPage-BvT1FOl7.js → SettingsPage-D6ZOAgS9.js} +11 -11
- package/dist/bundled/chunks/{ShortcutsSection-D3-4e5Ug.js → ShortcutsSection-EK2-e56v.js} +1 -1
- package/dist/bundled/chunks/{StoryInspector-BJKzoeHc.js → StoryInspector-DCNgw0x8.js} +14 -11
- package/dist/bundled/chunks/{TestsPanel-CpBld3wM.js → TestsPanel-D1USqA8I.js} +5 -5
- package/dist/bundled/chunks/{TestsSection-CEXW49Ge.js → TestsSection-CIkkHlyK.js} +1 -1
- package/dist/bundled/chunks/{TestsTab-B-ZNDgGi.js → TestsTab-ykf9zwmG.js} +3 -3
- package/dist/bundled/chunks/{ThreadMessage-CPRLVXXQ.js → ThreadMessage-DxrvoIea.js} +5 -5
- package/dist/bundled/chunks/{ToolbarPopover-Nd-us4Fg.js → ToolbarPopover-CXizdbQq.js} +3 -3
- package/dist/bundled/chunks/{ViewportsSection-3EWu6WSc.js → ViewportsSection-D6mpKTSM.js} +1 -1
- package/dist/bundled/chunks/{VisualViewer-DV5mNFT8.js → VisualViewer-BQqfw1ov.js} +2 -2
- package/dist/bundled/chunks/{WorkbenchPanelAction-Cl68QrDs.js → WorkbenchPanelAction-SLby10Vh.js} +6 -2
- package/dist/bundled/chunks/{WorkbenchVirtualList-CUTamRgO.js → WorkbenchVirtualList-HCZiNo7p.js} +1 -1
- package/dist/bundled/chunks/{background-CG5-SPiv.js → background-CUUIkZVL.js} +7 -1
- package/dist/bundled/chunks/{canvas-settings-EP62RnvB.js → canvas-settings-Cw7AXzFG.js} +31 -13
- package/dist/bundled/chunks/{capture-SFV9pF9b.js → capture-DxD6llwl.js} +1 -1
- package/dist/bundled/chunks/{color-scheme-mhmCnofm.js → color-scheme-zLURTKoT.js} +1 -0
- package/dist/bundled/chunks/{content-view-Bpn8As7f.js → content-view-ChEpdsxh.js} +2 -2
- package/dist/bundled/chunks/{controls-view-COcHf8Pm.js → controls-view-CtDADD0e.js} +3 -3
- package/dist/bundled/chunks/{explorer-view-5gTgnjcf.js → explorer-view-B717fDtg.js} +6 -4
- package/dist/bundled/chunks/{extensions-DUXM9uEy.js → extensions-BtOjYv3e.js} +11 -2
- package/dist/bundled/chunks/{frame-ledger-BHZ0nJjD.js → frame-ledger-C67dpCuY.js} +160 -45
- package/dist/bundled/chunks/{frame-screenshot-D9R_xDns.js → frame-screenshot-IEmQR7TR.js} +1 -1
- package/dist/bundled/chunks/{icons-Bd36WZPu.js → icons-DoUVE4X3.js} +2 -2
- package/dist/bundled/chunks/{local-mount-CCa2jcqi.js → local-mount-CQ14I_16.js} +2 -1
- package/dist/bundled/chunks/{marketplace-DKeNfni-.js → marketplace-BE5IMmf3.js} +9 -3
- package/dist/bundled/chunks/{measurement-DfNeNMZe.js → measurement-BPE7RMeb.js} +1 -1
- package/dist/bundled/chunks/{model-DhvdMZzS.js → model-CIFxQfDH.js} +1 -1
- package/dist/bundled/chunks/{navigation-view-GU5-aPWL.js → navigation-view-Co43QbrR.js} +2 -2
- package/dist/bundled/chunks/{ownership-004rrffQ.js → ownership-BVQ3d672.js} +1 -1
- package/dist/bundled/chunks/{selection-DQJWdqhl.js → selection-BTc1fRMu.js} +1 -1
- package/dist/bundled/chunks/{settings-DC0gilMg.js → settings-BbefKI5N.js} +1 -1
- package/dist/bundled/chunks/{src-BazVZNon.js → src-CDZfcmuw.js} +7 -1
- package/dist/bundled/chunks/{tests-view-B9J9Gvpt.js → tests-view-RYpujVD_.js} +2 -2
- package/dist/bundled/chunks/{use-install-plan-ChZg4Xyq.js → use-install-plan-D0tiW2wu.js} +1 -1
- package/dist/bundled/chunks/{visual-CId9zv09.js → visual-nnXRPOP8.js} +1 -1
- package/dist/bundled/index.js +580 -313
- package/dist/embed/EmbedDocument.vue_vue_type_script_setup_true_lang.js +6 -1
- package/dist/embed/adapters/explorer-session.js +2 -1
- package/dist/embed/adapters/explorer-view.js +1 -0
- package/dist/embed/adapters/local-mount.js +2 -1
- package/dist/embed/adapters/runtime-frame.js +7 -1
- package/dist/embed/adapters/sandbox-urls.d.ts +2 -0
- package/dist/embed/adapters/sandbox-urls.js +1 -0
- package/dist/embed/app.css +2 -2
- package/dist/embed/handshake.js +5 -2
- package/dist/embed/packages/histoire-vue/src/components/embed/HistoireEmbed.js +6 -0
- package/dist/embed/packages/histoire-vue/src/components/preview/surface.js +11 -2
- package/dist/embed/surfaces.d.ts +2 -0
- package/dist/style.css +57 -13
- package/package.json +8 -8
- package/src/app/components/base/overflow/BaseOverflowToolbar.vue +1 -1
- package/src/app/components/base/overflow/BaseOverflowToolbarItem.vue +1 -1
- package/src/app/components/base/popover/BasePopover.vue +1 -1
- package/src/app/components/canvas/CanvasFrame.vue +47 -8
- package/src/app/components/canvas/CanvasReplicaPreview.vue +3 -1
- package/src/app/components/canvas/CanvasSingleVariant.vue +10 -5
- package/src/app/components/canvas/CanvasStatus.vue +6 -2
- package/src/app/components/canvas/CanvasViewport.vue +29 -10
- package/src/app/components/canvas/FramePaddingAligners.vue +44 -0
- package/src/app/components/canvas/SingleVariantResizeHandles.vue +3 -0
- package/src/app/components/canvas/frame-layout.ts +44 -23
- package/src/app/components/canvas/frame-props-override.ts +16 -2
- package/src/app/components/canvas/matrix/MatrixCell.vue +19 -6
- package/src/app/components/canvas/matrix/MatrixView.vue +10 -8
- package/src/app/components/canvas/matrix/matrix-layout.ts +32 -14
- package/src/app/components/canvas/matrix/matrix-registration.ts +4 -4
- package/src/app/components/canvas/single-resize.ts +4 -2
- package/src/app/components/canvas/single-viewport.ts +5 -0
- package/src/app/components/canvas/story-frame-size.ts +15 -0
- package/src/app/components/canvas/toolbar/ArrangeSwitch.vue +1 -1
- package/src/app/components/canvas/toolbar/CanvasToolbar.vue +1 -1
- package/src/app/components/canvas/toolbar/SearchMatchStepper.vue +1 -1
- package/src/app/components/canvas/toolbar/ToolSwitch.vue +1 -1
- package/src/app/components/canvas/toolbar/ViewportMenu.vue +46 -16
- package/src/app/components/canvas/toolbar/ZoomMenu.vue +13 -11
- package/src/app/components/canvas/toolbar/viewport-size.ts +14 -0
- package/src/app/components/canvas/useCanvasVariantSize.ts +24 -6
- package/src/app/components/canvas/useSingleVariantGeometry.ts +7 -4
- package/src/app/components/comments/prompt/AttachMenuPanel.vue +1 -1
- package/src/app/components/comments/prompt/PromptSuggestions.vue +1 -1
- package/src/app/components/embed/EmbedMenu.vue +8 -6
- package/src/app/components/inspector/InspectorTabs.vue +1 -1
- package/src/app/components/inspector/inspection/plugin.ts +1 -1
- package/src/app/components/marketplace/browse/CatalogState.vue +3 -0
- package/src/app/components/marketplace/detail/DetailHeader.vue +13 -5
- package/src/app/components/marketplace/install/use-install-wizard.ts +7 -2
- package/src/app/components/menu/ContextMenu.vue +1 -1
- package/src/app/components/menu/SubMenu.vue +1 -1
- package/src/app/components/pages/settings/PluginsSection.vue +4 -0
- package/src/app/components/pages/settings/plugins/use-plugin-updates.ts +3 -3
- package/src/app/components/shell/WorkbenchApp.vue +2 -2
- package/src/app/components/shell/WorkbenchPanelAction.vue +5 -3
- package/src/app/composables/canvas-settings.ts +23 -9
- package/src/app/standalone/workbench.ts +2 -0
- package/src/app/stores/canvas.ts +47 -7
- package/src/app/stores/marketplace.ts +1 -0
- package/src/app/stores/story-canvas-views.ts +15 -2
- package/src/app/style/theme.css +8 -0
- package/src/app/util/background.ts +7 -0
- package/src/app/util/frame-actions.ts +6 -0
- package/src/app/util/marketplace-client.ts +5 -2
- package/src/embed/EmbedDocument.vue +1 -1
- package/src/embed/adapters/explorer-session.ts +2 -2
- package/src/embed/adapters/explorer-view.ts +1 -1
- package/src/embed/adapters/local-mount.ts +1 -1
- package/src/embed/adapters/runtime-frame.ts +6 -1
- package/src/embed/adapters/sandbox-urls.ts +3 -0
- package/src/embed/handshake.ts +4 -2
- package/src/embed/surfaces.ts +2 -0
package/dist/bundled/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { J as histoireConfig, U as WorkbenchEmptyState_default, d as setupPluginApi, q as customLogos, u as toRawDeep } from "./chunks/sandbox-shared-CwPQj187.js";
|
|
2
2
|
import { A as useLoadingDelay, F as provideHistoireControls, I as useHistoireControls, N as getControlElement, _ as HstTextarea, d as HstPulsatingDisc, g as HstText, h as HstSwitch, k as restoreControlsFocus, n as HstButton, r as HstButtonGroup, t as BuiltinIcon } from "./chunks/controls-DpdwHd4q.js";
|
|
3
|
-
import { N as useHistoireContext, P as useHistoireResource, b as HISTOIRE_SHOW_UI, c as provideHistoireTestsModel, j as useHistoireSnapshot, r as provideHistoireExtensions, s as createHistoireTestsModel, x as HISTOIRE_TOGGLE_UI, y as HISTOIRE_SEARCH_FOCUS } from "./chunks/extensions-
|
|
4
|
-
import { n as useHistoireSession, t as HistoireProvider } from "./chunks/src-
|
|
3
|
+
import { N as useHistoireContext, P as useHistoireResource, b as HISTOIRE_SHOW_UI, c as provideHistoireTestsModel, j as useHistoireSnapshot, r as provideHistoireExtensions, s as createHistoireTestsModel, x as HISTOIRE_TOGGLE_UI, y as HISTOIRE_SEARCH_FOCUS } from "./chunks/extensions-BtOjYv3e.js";
|
|
4
|
+
import { n as useHistoireSession, t as HistoireProvider } from "./chunks/src-CDZfcmuw.js";
|
|
5
5
|
import { t as createHistoireTestsCollector } from "./chunks/internal-BOzwU0KU.js";
|
|
6
|
-
import { a as ToolbarButton_default, c as overflowToolbarKey, i as PopoverError_default, l as getRegisteredFrameTarget, n as useCanvasPopoverBounds, o as useToolbarPresentation, r as useCanvasPreviewSettings, s as overflowItemKey, t as ToolbarPopover_default, u as getSelectedCanvasFrame } from "./chunks/ToolbarPopover-
|
|
7
|
-
import { n as provideWorkbenchTestsModel, r as useWorkbenchTestsModel, t as createWorkbenchTestsModel } from "./chunks/model-
|
|
6
|
+
import { a as ToolbarButton_default, c as overflowToolbarKey, i as PopoverError_default, l as getRegisteredFrameTarget, n as useCanvasPopoverBounds, o as useToolbarPresentation, r as useCanvasPreviewSettings, s as overflowItemKey, t as ToolbarPopover_default, u as getSelectedCanvasFrame } from "./chunks/ToolbarPopover-CXizdbQq.js";
|
|
7
|
+
import { n as provideWorkbenchTestsModel, r as useWorkbenchTestsModel, t as createWorkbenchTestsModel } from "./chunks/model-CIFxQfDH.js";
|
|
8
8
|
import { i as useContextMenu, n as isContextMenuShortcut, r as provideContextMenu, t as createContextMenu } from "./chunks/context-menu-Cw2xQKsM.js";
|
|
9
9
|
import { i as isPluginContributionId, n as createContributionLookup, t as contributionKey } from "./chunks/shell-registry-dTiCKXFh.js";
|
|
10
10
|
import { a as useOptionalExtensionHost, i as useExtensionHost, n as provideExtensionHost, r as provideWorkbenchPlugins, t as injectWorkbenchPlugins } from "./chunks/extensions-DY0LLiE_.js";
|
|
11
11
|
import { t as useContributionLookup } from "./chunks/shell-extensions-BRqMTtWV.js";
|
|
12
12
|
import { t as captureInspectionFrame } from "./chunks/frame-owner-Di8_BWb0.js";
|
|
13
|
-
import { a as fitOverflowItems, i as toolbarAvailableWidth, n as isPresentationMutation, o as ExtensionOutlet_default, r as measureInlineItem, s as INSPECTOR_BUILTIN_TABS, t as createItemWidthCache } from "./chunks/measurement-
|
|
13
|
+
import { a as fitOverflowItems, i as toolbarAvailableWidth, n as isPresentationMutation, o as ExtensionOutlet_default, r as measureInlineItem, s as INSPECTOR_BUILTIN_TABS, t as createItemWidthCache } from "./chunks/measurement-BPE7RMeb.js";
|
|
14
14
|
import { a as useUiSettingsStore, i as provideUiSettingsStore, n as createUiSettingsStore, r as normalizeSettingsSection, t as SETTINGS_SECTIONS } from "./chunks/settings-B8QvkMcW.js";
|
|
15
15
|
import { a as sendUiEvent, n as onUiDisconnect, r as onUiEvent, t as isUiChannelAvailable } from "./chunks/ui-channel-BPYj8uw2.js";
|
|
16
16
|
import { n as provideMcpStore, t as createMcpStore } from "./chunks/mcp-CbWZxLuC.js";
|
|
17
17
|
import { n as provideProjectConfigStore, t as createProjectConfigStore } from "./chunks/project-config-Di_IAjjN.js";
|
|
18
|
-
import { n as captureFrameRegistration, t as captureFrameScreenshot } from "./chunks/frame-screenshot-
|
|
18
|
+
import { n as captureFrameRegistration, t as captureFrameScreenshot } from "./chunks/frame-screenshot-IEmQR7TR.js";
|
|
19
19
|
import { i as getCanvasTargetGeneration, n as provideMatrix, s as matrixVariantSnippet, t as createMatrixStore } from "./chunks/matrix-BPPIGW-q.js";
|
|
20
20
|
import { a as useShortcutRegistry, i as provideShortcutRegistry, n as isEditing, t as createShortcutRegistry } from "./chunks/shortcuts-BPetXlYX.js";
|
|
21
|
-
import { n as usePageOwnership, t as samePageOwner } from "./chunks/ownership-
|
|
21
|
+
import { n as usePageOwnership, t as samePageOwner } from "./chunks/ownership-BVQ3d672.js";
|
|
22
22
|
import { n as provideAgentsStore, r as useAgentsStore, t as createAgentsStore } from "./chunks/agents-Cnoa7KRp.js";
|
|
23
23
|
import { n as provideAiThreads, t as createAiThreads } from "./chunks/ai-threads-3QfVXZ43.js";
|
|
24
24
|
import { n as createAgentHttpTransport, t as agentIconUrl } from "./chunks/agents-http-BjeGJFYE.js";
|
|
25
|
-
import { a as
|
|
25
|
+
import { a as getBackgroundPresetStyle, i as getBackgroundPreset, o as getBackgroundStyle, s as withCheckerboardPresets } from "./chunks/background-CUUIkZVL.js";
|
|
26
26
|
import { n as useShell, t as provideShell } from "./chunks/shell-VHlsl1Wj.js";
|
|
27
|
-
import { i as useOptionalMarketplaceStore, n as provideMarketplaceStore, r as useMarketplaceStore, t as createMarketplaceStore } from "./chunks/marketplace-
|
|
27
|
+
import { i as useOptionalMarketplaceStore, n as provideMarketplaceStore, r as useMarketplaceStore, t as createMarketplaceStore } from "./chunks/marketplace-BE5IMmf3.js";
|
|
28
28
|
import { n as providePresetConfigStore, r as usePresetConfigStore, t as createPresetConfigStore } from "./chunks/presets-config-CfdpjV2k.js";
|
|
29
|
-
import { n as provideWorkbenchVisual, t as createWorkbenchVisual } from "./chunks/visual-
|
|
29
|
+
import { n as provideWorkbenchVisual, t as createWorkbenchVisual } from "./chunks/visual-nnXRPOP8.js";
|
|
30
30
|
import { t as snapshotScreenshotTargets } from "./chunks/screenshot-targets-1TJFnTQJ.js";
|
|
31
|
-
import { a as useCanvasFrameState, c as useCanvasStore, i as useCanvasFrameBackground, n as provideCanvas, o as useCanvasFrames, r as provideCanvasPointerPan, s as useCanvasPointerPan, t as createCanvasFrames } from "./chunks/canvas-settings-
|
|
32
|
-
import { A as
|
|
33
|
-
import { n as parseViewportSize, r as viewportDimensions, t as backgroundPatch } from "./chunks/settings-
|
|
31
|
+
import { a as useCanvasFrameState, c as useCanvasStore, i as useCanvasFrameBackground, n as provideCanvas, o as useCanvasFrames, r as provideCanvasPointerPan, s as useCanvasPointerPan, t as createCanvasFrames } from "./chunks/canvas-settings-Cw7AXzFG.js";
|
|
32
|
+
import { A as wheelZoom, C as whenCanvasStartupIdle, D as clampZoom, E as canvasToClient, M as canvasContentKey, N as createCanvasContentSizes, O as clientToCanvas, S as provideCanvasStartupCoordinator, T as canvasContentRect, _ as matchSearchText, a as FramePaddingAligners_default, b as observeCanvasStartupRuntime, c as canvasFrameBounds, d as layoutCanvasFrames, f as rankCanvasStartupFrames, g as createStandaloneSession, h as acquireStoryFrame, i as useCanvasFrameAdmission, j as zoomAroundPoint, k as fitCanvas, m as CanvasReplicaPreview_default, n as provideCanvasFrameLedger, o as isFrameMenuShortcut, p as visibleCanvasFrames, s as openFrameMenu, t as holdCanvasFrameSlot, u as keepFrameLayouts, v as rankSearchMatches, w as CanvasLoadingIndicator_default, x as waitForCanvasStartup, y as createCanvasStartupReadiness } from "./chunks/frame-ledger-C67dpCuY.js";
|
|
33
|
+
import { n as parseViewportSize, r as viewportDimensions, t as backgroundPatch } from "./chunks/settings-BbefKI5N.js";
|
|
34
34
|
import { t as WorkbenchErrorState_default } from "./chunks/WorkbenchErrorState-D97EoY89.js";
|
|
35
35
|
import { t as WorkbenchLoadingState_default } from "./chunks/WorkbenchLoadingState-CLA8IBL6.js";
|
|
36
36
|
import { t as WorkbenchPaneHeader_default } from "./chunks/WorkbenchPaneHeader-DBuiBHTT.js";
|
|
37
|
-
import { a as positionPopover, c as usePopoverOverlay, i as popoverScopeKey, l as useMenuKeyboard, n as closePopoverChildren, r as createPopoverScope, s as providePopoverOverlay, t as BasePopover_default } from "./chunks/BasePopover-
|
|
38
|
-
import { n as ExtensionView_default, t as resolveContributionIcon } from "./chunks/icons-
|
|
37
|
+
import { a as positionPopover, c as usePopoverOverlay, i as popoverScopeKey, l as useMenuKeyboard, n as closePopoverChildren, r as createPopoverScope, s as providePopoverOverlay, t as BasePopover_default } from "./chunks/BasePopover-B3Y5H1gd.js";
|
|
38
|
+
import { n as ExtensionView_default, t as resolveContributionIcon } from "./chunks/icons-DoUVE4X3.js";
|
|
39
39
|
import { i as useSpacePan, t as formatKey } from "./chunks/keyboard-DWsKh2rn.js";
|
|
40
40
|
import { n as getMeasureOwner, t as canMeasureFrame } from "./chunks/measure-owner-BJxCiOYZ.js";
|
|
41
41
|
import { t as PopoverDivider_default } from "./chunks/PopoverDivider-vLxqs_KP.js";
|
|
@@ -44,7 +44,7 @@ import { t as workbenchPluginId } from "./chunks/workbench-plugin-id-BgjbPURy.js
|
|
|
44
44
|
import { t as MenuItem_default } from "./chunks/MenuItem-BYRJG5YA.js";
|
|
45
45
|
import { n as HomeHeading_default, t as HomeCard_default } from "./chunks/HomeCard-JYU5jbs7.js";
|
|
46
46
|
import { n as orderedStories, t as browseSections } from "./chunks/catalog-UvMhynPX.js";
|
|
47
|
-
import { t as WorkbenchVirtualList_default } from "./chunks/WorkbenchVirtualList-
|
|
47
|
+
import { t as WorkbenchVirtualList_default } from "./chunks/WorkbenchVirtualList-HCZiNo7p.js";
|
|
48
48
|
import { t as WorkbenchGuideLink_default } from "./chunks/WorkbenchGuideLink-COO1XNvp.js";
|
|
49
49
|
import { DEFAULT_COLLECT_TIMEOUT, MEASURE_REQUEST, MEASURE_RESULT, PREVIEW_SETTINGS_SYNC, STORY_CHANGED_EVENT, TEST_COLLECTION_REPLY_GRACE, isModuleLoadFailure, isPinnedThread } from "@histoire/shared";
|
|
50
50
|
import { useElementBounding, useEventListener } from "@histoire/vendors/vue-use";
|
|
@@ -608,7 +608,7 @@ function createInspectionPicker(api, source, current, selected, publish) {
|
|
|
608
608
|
/** Reserved internal namespace; user entries are never replaced. */
|
|
609
609
|
var INSPECTION_PLUGIN_ID = "histoire-inspection";
|
|
610
610
|
/** Panel code is loaded only when its contribution is opened. */
|
|
611
|
-
var InspectionPanel = defineAsyncComponent(() => import("./chunks/InspectionPanel-
|
|
611
|
+
var InspectionPanel = defineAsyncComponent(() => import("./chunks/InspectionPanel-DDuT3guJ.js"));
|
|
612
612
|
/** Registers a tab only while the connected source grants supported inspection. */
|
|
613
613
|
function setupInspection(api, session, current, selected) {
|
|
614
614
|
let remove;
|
|
@@ -667,7 +667,7 @@ function setupInspection(api, session, current, selected) {
|
|
|
667
667
|
if (canPick && !removeTool) removeTool = api.canvas.addTool({
|
|
668
668
|
id: "pick",
|
|
669
669
|
label: "Pick element",
|
|
670
|
-
icon: "
|
|
670
|
+
icon: "target",
|
|
671
671
|
cursor: "crosshair",
|
|
672
672
|
available: (context) => typeof context.canvas.viewportToFrame === "function",
|
|
673
673
|
onPointerUp: (event, context) => void picker.pick(event, context),
|
|
@@ -1836,6 +1836,18 @@ function createFrameActions(options) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
1838
|
const actions = [
|
|
1839
|
+
{
|
|
1840
|
+
id: "remount",
|
|
1841
|
+
label: "Remount",
|
|
1842
|
+
icon: "renew",
|
|
1843
|
+
group: "run",
|
|
1844
|
+
shortcut: "frame.remount",
|
|
1845
|
+
available: () => !!options.remountFrame,
|
|
1846
|
+
disabled: (target) => options.frameRegistration?.(target)?.documentId ? void 0 : "Variant is not running",
|
|
1847
|
+
run(target) {
|
|
1848
|
+
if (!options.remountFrame?.(target)) throw new Error("Variant unavailable.");
|
|
1849
|
+
}
|
|
1850
|
+
},
|
|
1839
1851
|
{
|
|
1840
1852
|
id: "open-isolated",
|
|
1841
1853
|
label: "Open isolated",
|
|
@@ -1938,6 +1950,10 @@ function createFrameActions(options) {
|
|
|
1938
1950
|
/** Menu hints and native frame shortcuts share action IDs and live capability gates. */
|
|
1939
1951
|
function registerFrameShortcuts(shortcuts, actions, target) {
|
|
1940
1952
|
const dispose = [
|
|
1953
|
+
{
|
|
1954
|
+
action: "remount",
|
|
1955
|
+
id: "frame.remount"
|
|
1956
|
+
},
|
|
1941
1957
|
{
|
|
1942
1958
|
action: "open-isolated",
|
|
1943
1959
|
id: "frame.isolated"
|
|
@@ -2390,18 +2406,25 @@ function copyView(snapshot) {
|
|
|
2390
2406
|
panOffset: { ...snapshot.panOffset }
|
|
2391
2407
|
};
|
|
2392
2408
|
}
|
|
2393
|
-
/** Creates state scoped to one workbench provider
|
|
2409
|
+
/** Creates view state scoped to one workbench provider. */
|
|
2394
2410
|
function createStoryCanvasViews() {
|
|
2395
2411
|
const stories = shallowReactive(/* @__PURE__ */ new Map());
|
|
2396
2412
|
const shared = shallowRef();
|
|
2413
|
+
const toolbarSizedStories = shallowReactive(/* @__PURE__ */ new Set());
|
|
2397
2414
|
return {
|
|
2415
|
+
autoFitPreference: shallowRef(),
|
|
2398
2416
|
getStory: (storyId) => {
|
|
2399
2417
|
const view = stories.get(storyId);
|
|
2400
2418
|
return view ? copyView(view) : void 0;
|
|
2401
2419
|
},
|
|
2402
2420
|
saveStory: (storyId, snapshot) => stories.set(storyId, copyView(snapshot)),
|
|
2403
2421
|
getShared: () => shared.value ? copyView(shared.value) : void 0,
|
|
2404
|
-
saveShared: (snapshot) => shared.value = copyView(snapshot)
|
|
2422
|
+
saveShared: (snapshot) => shared.value = copyView(snapshot),
|
|
2423
|
+
usesToolbarViewport: (storyId) => toolbarSizedStories.has(storyId),
|
|
2424
|
+
setStorySizeFromCode(storyId, fromCode) {
|
|
2425
|
+
if (fromCode) toolbarSizedStories.delete(storyId);
|
|
2426
|
+
else toolbarSizedStories.add(storyId);
|
|
2427
|
+
}
|
|
2405
2428
|
};
|
|
2406
2429
|
}
|
|
2407
2430
|
/** Provide story view ownership for the mounted canvas and its remounts. */
|
|
@@ -2648,6 +2671,7 @@ function useWorkbench(props, error, revealVariant) {
|
|
|
2648
2671
|
},
|
|
2649
2672
|
frameSession: (target) => canvas.value?.registry.getFrame(target.frameKey)?.session ?? null,
|
|
2650
2673
|
frameRegistration: (target) => canvas.value?.registry.getFrame(target.frameKey) ?? null,
|
|
2674
|
+
remountFrame: (target) => canvas.value?.registry.remountFrame(target.frameKey) ?? false,
|
|
2651
2675
|
runTests: (target) => projectTests.run(target),
|
|
2652
2676
|
error
|
|
2653
2677
|
});
|
|
@@ -2753,6 +2777,7 @@ function useWorkbench(props, error, revealVariant) {
|
|
|
2753
2777
|
frameSession: (target) => canvas.value?.registry.getFrame(target.frameKey)?.session ?? props.session
|
|
2754
2778
|
});
|
|
2755
2779
|
useHistoireResource(shortcuts.bind("global.search", () => openSearch(), { allowInput: true }));
|
|
2780
|
+
useHistoireResource(shortcuts.bind("canvas.remount", () => canvas.value?.registry.remountAll(), { enabled: () => [...canvas.value?.registry.frames.values() ?? []].some((frame) => frame.documentId) }));
|
|
2756
2781
|
if (dev) useHistoireResource(shortcuts.bind("canvas.comment", () => {
|
|
2757
2782
|
dev.commentMode.value = true;
|
|
2758
2783
|
}, { enabled: () => dev.threads.pinsAvailable.value }));
|
|
@@ -3060,8 +3085,13 @@ function saveCanvasPreferences(storage, state) {
|
|
|
3060
3085
|
/** Create independent canvas state; nearest shell provides instance to its tools. */
|
|
3061
3086
|
function createCanvasStore(options = {}) {
|
|
3062
3087
|
const preferences = readCanvasPreferences(options.storage);
|
|
3088
|
+
const autoFitPreference = options.autoFitPreference ?? ref();
|
|
3089
|
+
autoFitPreference.value ??= preferences.autoFitContent;
|
|
3090
|
+
const frameSizeFromCode = computed(() => options.frameSizeFromCode?.());
|
|
3063
3091
|
const state = reactive({
|
|
3064
3092
|
...preferences,
|
|
3093
|
+
frameSizeFromCode,
|
|
3094
|
+
autoFitContent: computed(() => autoFitPreference.value === true && !frameSizeFromCode.value),
|
|
3065
3095
|
singleViewport: options.singleViewport ?? { mode: "responsive" },
|
|
3066
3096
|
singleViewportSize: {
|
|
3067
3097
|
width: 1,
|
|
@@ -3101,6 +3131,8 @@ function createCanvasStore(options = {}) {
|
|
|
3101
3131
|
width: 0,
|
|
3102
3132
|
height: 0
|
|
3103
3133
|
};
|
|
3134
|
+
/** Story gutter around the Single variant; Fit keeps it in view. */
|
|
3135
|
+
let singlePadding = 0;
|
|
3104
3136
|
const singleZoomListeners = /* @__PURE__ */ new Set();
|
|
3105
3137
|
/** Notify native scroll ownership before replacing the rendered scale. */
|
|
3106
3138
|
function applySingleZoom(zoom, point, fit = false) {
|
|
@@ -3115,7 +3147,12 @@ function createCanvasStore(options = {}) {
|
|
|
3115
3147
|
});
|
|
3116
3148
|
}
|
|
3117
3149
|
/** Persist only contract preferences; failures leave usable current-session state. */
|
|
3118
|
-
const save = () => saveCanvasPreferences(options.storage,
|
|
3150
|
+
const save = () => saveCanvasPreferences(options.storage, {
|
|
3151
|
+
zoomByArrange: state.zoomByArrange,
|
|
3152
|
+
tool: state.tool,
|
|
3153
|
+
frameBackground: state.frameBackground,
|
|
3154
|
+
autoFitContent: autoFitPreference.value === true
|
|
3155
|
+
});
|
|
3119
3156
|
/** Updates active arrangement preference without mutating another view's scale. */
|
|
3120
3157
|
function setActiveZoom(zoom) {
|
|
3121
3158
|
state.zoom = zoom;
|
|
@@ -3137,7 +3174,10 @@ function createCanvasStore(options = {}) {
|
|
|
3137
3174
|
function fit() {
|
|
3138
3175
|
setActiveZoom("fit");
|
|
3139
3176
|
if (state.arrangement === "single") {
|
|
3140
|
-
if (singleArea.width && singleArea.height) applySingleZoom(fitSingleViewport(singleArea,
|
|
3177
|
+
if (singleArea.width && singleArea.height) applySingleZoom(fitSingleViewport(singleArea, {
|
|
3178
|
+
width: state.singleViewportSize.width + singlePadding * 2,
|
|
3179
|
+
height: state.singleViewportSize.height + singlePadding * 2
|
|
3180
|
+
}), void 0, true);
|
|
3141
3181
|
return save();
|
|
3142
3182
|
}
|
|
3143
3183
|
const transform = fitBounds && frameTransform(fitBounds);
|
|
@@ -3165,8 +3205,9 @@ function createCanvasStore(options = {}) {
|
|
|
3165
3205
|
save();
|
|
3166
3206
|
}
|
|
3167
3207
|
/** Publish unscaled Single geometry; numeric zoom stays fixed during resizing. */
|
|
3168
|
-
function setSingleGeometry(area, size) {
|
|
3208
|
+
function setSingleGeometry(area, size, padding = 0) {
|
|
3169
3209
|
singleArea = area;
|
|
3210
|
+
singlePadding = padding;
|
|
3170
3211
|
state.singleViewportSize = size;
|
|
3171
3212
|
if (state.arrangement === "single" && state.zoom === "fit") fit();
|
|
3172
3213
|
}
|
|
@@ -3333,7 +3374,7 @@ function createCanvasStore(options = {}) {
|
|
|
3333
3374
|
contentSizes: createCanvasContentSizes(),
|
|
3334
3375
|
/** Select sizing without modifying manual dimensions or camera intent. */
|
|
3335
3376
|
setAutoFitContent(value) {
|
|
3336
|
-
|
|
3377
|
+
autoFitPreference.value = value;
|
|
3337
3378
|
save();
|
|
3338
3379
|
},
|
|
3339
3380
|
/** Switch Single sizing intent and retire any transient direct-resize draft. */
|
|
@@ -3859,7 +3900,7 @@ function useFrameBadges(frame) {
|
|
|
3859
3900
|
});
|
|
3860
3901
|
}
|
|
3861
3902
|
// src/app/components/canvas/CanvasFrame.vue?vue&type=script&setup=true&lang.ts
|
|
3862
|
-
var _hoisted_1$
|
|
3903
|
+
var _hoisted_1$52 = [
|
|
3863
3904
|
"data-single",
|
|
3864
3905
|
"data-selected",
|
|
3865
3906
|
"data-highlighted",
|
|
@@ -3867,7 +3908,11 @@ var _hoisted_1$51 = [
|
|
|
3867
3908
|
"data-stale",
|
|
3868
3909
|
"data-frame-id"
|
|
3869
3910
|
];
|
|
3870
|
-
var _hoisted_2$
|
|
3911
|
+
var _hoisted_2$33 = [
|
|
3912
|
+
"data-remount",
|
|
3913
|
+
"aria-pressed",
|
|
3914
|
+
"disabled"
|
|
3915
|
+
];
|
|
3871
3916
|
var _hoisted_3$21 = ["title"];
|
|
3872
3917
|
var _hoisted_4$15 = ["data-tone", "title"];
|
|
3873
3918
|
var _hoisted_5$10 = ["aria-hidden"];
|
|
@@ -3875,24 +3920,30 @@ var _hoisted_6$8 = {
|
|
|
3875
3920
|
key: 0,
|
|
3876
3921
|
class: "htw:sr-only"
|
|
3877
3922
|
};
|
|
3878
|
-
var _hoisted_7$7 =
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3923
|
+
var _hoisted_7$7 = {
|
|
3924
|
+
key: 1,
|
|
3925
|
+
class: "htw:absolute htw:top-0 htw:end-0 htw:flex",
|
|
3926
|
+
"data-canvas-overlay-occluder": ""
|
|
3882
3927
|
};
|
|
3883
|
-
var
|
|
3928
|
+
var _hoisted_8$4 = ["aria-label", "data-remounting"];
|
|
3929
|
+
var _hoisted_9$2 = ["aria-busy", "inert"];
|
|
3930
|
+
var _hoisted_10$1 = {
|
|
3884
3931
|
key: 1,
|
|
3932
|
+
class: "htw:absolute htw:inset-0 htw:flex htw:flex-col htw:items-center htw:justify-center htw:gap-3 htw:p-4 htw:text-[12px] htw:text-center htw:text-muted htw:bg-input"
|
|
3933
|
+
};
|
|
3934
|
+
var _hoisted_11 = {
|
|
3935
|
+
key: 2,
|
|
3885
3936
|
class: "htw:absolute htw:inset-0 htw:flex htw:flex-col htw:items-center htw:justify-center htw:gap-3 htw:p-4 htw:text-[12px] htw:text-center htw:text-muted htw:bg-input",
|
|
3886
3937
|
role: "status",
|
|
3887
3938
|
"aria-label": "Loading variant"
|
|
3888
3939
|
};
|
|
3889
|
-
var
|
|
3890
|
-
key:
|
|
3940
|
+
var _hoisted_12 = {
|
|
3941
|
+
key: 3,
|
|
3891
3942
|
class: "htw:absolute htw:inset-0 htw:flex htw:flex-col htw:items-center htw:justify-center htw:gap-3 htw:p-4 htw:text-[12px] htw:text-center htw:z-[2] htw:text-danger htw:bg-danger-soft",
|
|
3892
3943
|
role: "alert"
|
|
3893
3944
|
};
|
|
3894
|
-
var
|
|
3895
|
-
key:
|
|
3945
|
+
var _hoisted_13 = {
|
|
3946
|
+
key: 4,
|
|
3896
3947
|
class: "histoire-frame-select htw:absolute htw:inset-0 htw:cursor-pointer",
|
|
3897
3948
|
"aria-hidden": "true"
|
|
3898
3949
|
};
|
|
@@ -3909,6 +3960,8 @@ var CanvasFrame_default = /* @__PURE__ */ defineComponent({
|
|
|
3909
3960
|
previewBase: {},
|
|
3910
3961
|
width: {},
|
|
3911
3962
|
height: {},
|
|
3963
|
+
padding: {},
|
|
3964
|
+
fixedSize: { type: Boolean },
|
|
3912
3965
|
stale: { type: Boolean },
|
|
3913
3966
|
highlighted: { type: Boolean },
|
|
3914
3967
|
dimmed: { type: Boolean },
|
|
@@ -3922,6 +3975,7 @@ var CanvasFrame_default = /* @__PURE__ */ defineComponent({
|
|
|
3922
3975
|
const registry = useCanvasFrames();
|
|
3923
3976
|
const menu = useContextMenu();
|
|
3924
3977
|
const tests = useWorkbenchTestsModel();
|
|
3978
|
+
const frameActions = useFrameActions();
|
|
3925
3979
|
const test = computed(() => tests?.rows.value.find((row) => row.target.storyId === props.frame.storyId && row.target.variantId === props.frame.variantId));
|
|
3926
3980
|
const testIcon = computed(() => test.value?.failed || test.value?.error ? "error-filled" : test.value?.stale ? "warning-alt-filled" : test.value?.summary ? "checkmark-filled" : props.variant.hasTests ? "subtract" : null);
|
|
3927
3981
|
/** Plugin badges of this frame's header. */
|
|
@@ -3943,25 +3997,31 @@ var CanvasFrame_default = /* @__PURE__ */ defineComponent({
|
|
|
3943
3997
|
/** Snapshots need the title row to tell they aren't live yet; Single has none. */
|
|
3944
3998
|
const showSnapshot = computed(() => snapshotShown.value && !single.value);
|
|
3945
3999
|
const scale = computed(() => canvas.effectiveZoom);
|
|
4000
|
+
const padding = computed(() => props.padding ?? 0);
|
|
3946
4001
|
const position = computed(() => ({
|
|
3947
4002
|
"left": single.value ? void 0 : `${props.frame.x * canvas.effectiveZoom + canvas.panOffset.x}px`,
|
|
3948
4003
|
"top": single.value ? void 0 : `${props.frame.y * canvas.effectiveZoom + canvas.panOffset.y}px`,
|
|
3949
|
-
"width": `${props.width * scale.value}px`,
|
|
4004
|
+
"width": `${(single.value ? props.width + padding.value * 2 : props.frame.width) * scale.value}px`,
|
|
3950
4005
|
"--histoire-frame-label-height": `28px`
|
|
3951
4006
|
}));
|
|
3952
4007
|
const previewStyle = computed(() => ({
|
|
3953
4008
|
width: `${props.width}px`,
|
|
3954
4009
|
height: `${props.height}px`,
|
|
3955
|
-
transform: `scale(${scale.value})`
|
|
4010
|
+
transform: `translate(${padding.value * scale.value}px, ${padding.value * scale.value}px) scale(${scale.value})`
|
|
3956
4011
|
}));
|
|
3957
4012
|
const background = useCanvasFrameBackground(() => props.frame.id);
|
|
4013
|
+
/** Grid can extend the card beyond the intrinsic sandbox. */
|
|
4014
|
+
const bodyStyle = computed(() => ({
|
|
4015
|
+
height: `${(props.frame.bodyHeight ?? props.height + padding.value * 2) * scale.value}px`,
|
|
4016
|
+
...getBackgroundStyle(background.value)
|
|
4017
|
+
}));
|
|
3958
4018
|
const canSelect = computed(() => !props.stale);
|
|
3959
4019
|
let unregister = () => {};
|
|
3960
4020
|
/** Returns logical preview coordinates beneath frame title chrome. */
|
|
3961
4021
|
function previewRect() {
|
|
3962
4022
|
return {
|
|
3963
|
-
x: props.frame.x,
|
|
3964
|
-
y: props.frame.y + (single.value ? 0 : 28 / scale.value),
|
|
4023
|
+
x: props.frame.x + padding.value,
|
|
4024
|
+
y: props.frame.y + padding.value + (single.value ? 0 : 28 / scale.value),
|
|
3965
4025
|
width: props.width,
|
|
3966
4026
|
height: props.height
|
|
3967
4027
|
};
|
|
@@ -3987,6 +4047,7 @@ var CanvasFrame_default = /* @__PURE__ */ defineComponent({
|
|
|
3987
4047
|
props.frame,
|
|
3988
4048
|
props.width,
|
|
3989
4049
|
props.height,
|
|
4050
|
+
padding.value,
|
|
3990
4051
|
canvas.effectiveZoom
|
|
3991
4052
|
], () => {
|
|
3992
4053
|
const existing = registry.getFrame(props.frame.id);
|
|
@@ -4017,6 +4078,30 @@ var CanvasFrame_default = /* @__PURE__ */ defineComponent({
|
|
|
4017
4078
|
function onKeyDown(event) {
|
|
4018
4079
|
if (isFrameMenuShortcut(event)) openMenu(event);
|
|
4019
4080
|
}
|
|
4081
|
+
/** Frame action keeps label chrome, menu and shortcut on one remount path. */
|
|
4082
|
+
const remountAction = computed(() => frameActions?.entries.get("remount"));
|
|
4083
|
+
/** Label reserves room for Remount on every live frame, so badges never shift when it appears. */
|
|
4084
|
+
const remountSlot = computed(() => props.live && !props.stale && !!remountAction.value);
|
|
4085
|
+
const canRemount = computed(() => remountSlot.value && status.value === "ready");
|
|
4086
|
+
/** Each remount turns the icon once counterclockwise, following its arrows, from the button, menu or shortcut alike. */
|
|
4087
|
+
const remounts = computed(() => registry.getFrame(props.frame.id)?.remounts ?? 0);
|
|
4088
|
+
/** Keeps the button visible while it turns, e.g. after Remount all. */
|
|
4089
|
+
const remounting = ref(false);
|
|
4090
|
+
let remountingTimer;
|
|
4091
|
+
watch(remounts, () => {
|
|
4092
|
+
remounting.value = true;
|
|
4093
|
+
clearTimeout(remountingTimer);
|
|
4094
|
+
remountingTimer = setTimeout(() => remounting.value = false, 600);
|
|
4095
|
+
});
|
|
4096
|
+
onBeforeUnmount(() => clearTimeout(remountingTimer));
|
|
4097
|
+
/** Replay the variant's mount lifecycle, e.g. to watch an enter animation again. */
|
|
4098
|
+
function remount() {
|
|
4099
|
+
if (remountAction.value) frameActions?.run(remountAction.value, {
|
|
4100
|
+
storyId: props.frame.storyId,
|
|
4101
|
+
variantId: props.frame.variantId,
|
|
4102
|
+
frameKey: props.frame.id
|
|
4103
|
+
});
|
|
4104
|
+
}
|
|
4020
4105
|
/** Captured menu target does not mutate URL variant selection. */
|
|
4021
4106
|
function openMenu(event) {
|
|
4022
4107
|
if (props.stale) return;
|
|
@@ -4038,91 +4123,122 @@ var CanvasFrame_default = /* @__PURE__ */ defineComponent({
|
|
|
4038
4123
|
style: normalizeStyle(position.value),
|
|
4039
4124
|
"data-frame-id": __props.frame.id,
|
|
4040
4125
|
onContextmenu: openMenu
|
|
4041
|
-
}, [!single.value ? (openBlock(), createElementBlock("button", {
|
|
4042
|
-
key: 0,
|
|
4043
|
-
type: "button",
|
|
4044
|
-
class: "histoire-frame-label htw:box-border htw:w-full htw:min-w-0 htw:h-(--histoire-frame-label-height) htw:flex htw:items-center htw:justify-between htw:gap-2 htw:m-0 htw:pt-0 htw:px-0 htw:pb-2 htw:border-0 htw:bg-transparent htw:text-muted htw:[font-family:inherit] htw:text-[13px] htw:leading-5 htw:text-left htw:cursor-pointer htw:group-data-[selected=false]/frame:group-data-[highlighted=false]/frame:enabled:hover:text-text htw:focus-visible:outline-2 htw:focus-visible:outline-solid htw:focus-visible:outline-accent htw:focus-visible:outline-offset-2 htw:disabled:opacity-45 htw:disabled:cursor-default htw:group-data-[selected=true]/frame:text-accent htw:group-data-[selected=true]/frame:font-bold htw:group-data-[highlighted=true]/frame:text-accent",
|
|
4045
|
-
"data-canvas-overlay-occluder": "",
|
|
4046
|
-
"aria-pressed": __props.selected,
|
|
4047
|
-
disabled: !canSelect.value,
|
|
4048
|
-
onClick: select,
|
|
4049
|
-
onKeydown: onKeyDown
|
|
4050
4126
|
}, [
|
|
4051
|
-
|
|
4052
|
-
class: "histoire-frame-title htw:flex-1 htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap",
|
|
4053
|
-
title: __props.variant.title
|
|
4054
|
-
}, toDisplayString(__props.variant.title), 9, _hoisted_3$21),
|
|
4055
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(badges), (badge) => {
|
|
4056
|
-
return openBlock(), createElementBlock("span", {
|
|
4057
|
-
key: badge.id,
|
|
4058
|
-
class: "histoire-frame-badge htw:flex-none htw:min-w-[18px] htw:h-[18px] htw:px-[5px] htw:box-border htw:inline-flex htw:items-center htw:justify-center htw:rounded-full htw:text-[11px] htw:font-semibold htw:leading-none htw:tabular-nums htw:data-[tone=neutral]:bg-chip htw:data-[tone=neutral]:text-muted htw:data-[tone=accent]:bg-accent-soft htw:data-[tone=accent]:text-accent-text htw:data-[tone=warning]:bg-warn/20 htw:data-[tone=warning]:text-warn htw:data-[tone=danger]:bg-danger-soft htw:data-[tone=danger]:text-danger-text",
|
|
4059
|
-
"data-tone": badge.tone,
|
|
4060
|
-
title: badge.label
|
|
4061
|
-
}, [createElementVNode("span", { "aria-hidden": badge.label ? "true" : void 0 }, toDisplayString(badge.text), 9, _hoisted_5$10), badge.label ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(badge.label), 1)) : createCommentVNode("", true)], 8, _hoisted_4$15);
|
|
4062
|
-
}), 128)),
|
|
4063
|
-
status.value === "error" ? (openBlock(), createBlock(unref(BuiltinIcon), {
|
|
4127
|
+
!single.value ? (openBlock(), createElementBlock("button", {
|
|
4064
4128
|
key: 0,
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4129
|
+
type: "button",
|
|
4130
|
+
class: "histoire-frame-label htw:box-border htw:w-full htw:min-w-0 htw:data-[remount=true]:pe-6 htw:h-(--histoire-frame-label-height) htw:flex htw:items-center htw:justify-between htw:gap-2 htw:m-0 htw:pt-0 htw:px-0 htw:pb-2 htw:border-0 htw:bg-transparent htw:text-muted htw:[font-family:inherit] htw:text-[13px] htw:leading-5 htw:text-left htw:cursor-pointer htw:group-data-[selected=false]/frame:group-data-[highlighted=false]/frame:enabled:hover:text-text htw:focus-visible:outline-2 htw:focus-visible:outline-solid htw:focus-visible:outline-accent htw:focus-visible:outline-offset-2 htw:disabled:opacity-45 htw:disabled:cursor-default htw:group-data-[selected=true]/frame:text-accent htw:group-data-[selected=true]/frame:font-bold htw:group-data-[highlighted=true]/frame:text-accent",
|
|
4131
|
+
"data-canvas-overlay-occluder": "",
|
|
4132
|
+
"data-remount": remountSlot.value,
|
|
4133
|
+
"aria-pressed": __props.selected,
|
|
4134
|
+
disabled: !canSelect.value,
|
|
4135
|
+
onClick: select,
|
|
4136
|
+
onKeydown: onKeyDown
|
|
4137
|
+
}, [
|
|
4138
|
+
createElementVNode("span", {
|
|
4139
|
+
class: "histoire-frame-title htw:flex-1 htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap",
|
|
4140
|
+
title: __props.variant.title
|
|
4141
|
+
}, toDisplayString(__props.variant.title), 9, _hoisted_3$21),
|
|
4142
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(badges), (badge) => {
|
|
4143
|
+
return openBlock(), createElementBlock("span", {
|
|
4144
|
+
key: badge.id,
|
|
4145
|
+
class: "histoire-frame-badge htw:flex-none htw:min-w-[18px] htw:h-[18px] htw:px-[5px] htw:box-border htw:inline-flex htw:items-center htw:justify-center htw:rounded-full htw:text-[11px] htw:font-semibold htw:leading-none htw:tabular-nums htw:data-[tone=neutral]:bg-chip htw:data-[tone=neutral]:text-muted htw:data-[tone=accent]:bg-accent-soft htw:data-[tone=accent]:text-accent-text htw:data-[tone=warning]:bg-warn/20 htw:data-[tone=warning]:text-warn htw:data-[tone=danger]:bg-danger-soft htw:data-[tone=danger]:text-danger-text",
|
|
4146
|
+
"data-tone": badge.tone,
|
|
4147
|
+
title: badge.label
|
|
4148
|
+
}, [createElementVNode("span", { "aria-hidden": badge.label ? "true" : void 0 }, toDisplayString(badge.text), 9, _hoisted_5$10), badge.label ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(badge.label), 1)) : createCommentVNode("", true)], 8, _hoisted_4$15);
|
|
4149
|
+
}), 128)),
|
|
4150
|
+
status.value === "error" ? (openBlock(), createBlock(unref(BuiltinIcon), {
|
|
4151
|
+
key: 0,
|
|
4152
|
+
icon: "error-filled",
|
|
4153
|
+
size: 16,
|
|
4154
|
+
class: "htw:flex-none htw:text-danger"
|
|
4155
|
+
})) : unref(testRunningVisible) || showSnapshot.value && unref(loadingVisible) ? (openBlock(), createBlock(unref(HstPulsatingDisc), {
|
|
4156
|
+
key: 1,
|
|
4157
|
+
immediate: "",
|
|
4158
|
+
size: 14,
|
|
4159
|
+
class: "htw:flex-none htw:mx-px htw:text-muted"
|
|
4160
|
+
})) : testIcon.value ? (openBlock(), createBlock(unref(BuiltinIcon), {
|
|
4161
|
+
key: 2,
|
|
4162
|
+
icon: testIcon.value,
|
|
4163
|
+
size: 16,
|
|
4164
|
+
class: normalizeClass(["htw:flex-none", test.value?.failed || test.value?.error ? "htw:text-danger" : "htw:text-accent"])
|
|
4165
|
+
}, null, 8, ["icon", "class"])) : createCommentVNode("", true)
|
|
4166
|
+
], 40, _hoisted_2$33)) : createCommentVNode("", true),
|
|
4167
|
+
!single.value && canRemount.value ? (openBlock(), createElementBlock("span", _hoisted_7$7, [createElementVNode("button", {
|
|
4168
|
+
type: "button",
|
|
4169
|
+
class: "histoire-frame-remount htw:flex-none htw:box-border htw:h-(--histoire-frame-label-height) htw:flex htw:items-center htw:m-0 htw:pt-0 htw:px-0.5 htw:pb-2 htw:border-0 htw:bg-transparent htw:text-muted htw:cursor-pointer htw:opacity-0 htw:group-hover/frame:opacity-100 htw:group-data-[selected=true]/frame:opacity-100 htw:focus-visible:opacity-100 htw:data-[remounting=true]:opacity-100 htw:data-[remounting=true]:text-accent htw:hover:text-accent htw:focus-visible:outline-2 htw:focus-visible:outline-solid htw:focus-visible:outline-accent htw:focus-visible:outline-offset-2",
|
|
4170
|
+
"aria-label": `Remount ${__props.variant.title}`,
|
|
4171
|
+
title: "Remount",
|
|
4172
|
+
"data-remounting": remounting.value,
|
|
4173
|
+
onClick: remount
|
|
4174
|
+
}, [createVNode(unref(BuiltinIcon), {
|
|
4175
|
+
icon: "renew",
|
|
4071
4176
|
size: 14,
|
|
4072
|
-
class: "htw:
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
icon: testIcon.value,
|
|
4076
|
-
size: 16,
|
|
4077
|
-
class: normalizeClass(["htw:flex-none", test.value?.failed || test.value?.error ? "htw:text-danger" : "htw:text-accent"])
|
|
4078
|
-
}, null, 8, ["icon", "class"])) : createCommentVNode("", true)
|
|
4079
|
-
], 40, _hoisted_2$31)) : createCommentVNode("", true), createElementVNode("div", {
|
|
4080
|
-
class: "htw:relative htw:w-full htw:overflow-hidden htw:border htw:border-solid htw:border-border htw:rounded-[7px] htw:bg-white htw:group-data-[single=true]/frame:border-0 htw:group-data-[selected=true]/frame:border-accent htw:group-data-[highlighted=true]/frame:border-accent htw:group-data-[selected=true]/frame:after:content-[''] htw:after:hidden htw:group-data-[selected=true]/frame:after:block htw:after:absolute htw:after:inset-0 htw:after:rounded-[inherit] htw:after:pointer-events-none htw:after:z-[3] htw:after:shadow-[inset_0_0_0_1px_var(--histoire-accent)] htw:group-data-[single=true]/frame:after:shadow-[inset_0_0_0_1px_var(--histoire-border)]",
|
|
4081
|
-
"data-test-id": "responsive-preview-bg",
|
|
4082
|
-
style: normalizeStyle({
|
|
4083
|
-
height: `${__props.height * scale.value}px`,
|
|
4084
|
-
...unref(getBackgroundStyle)(unref(background))
|
|
4085
|
-
}),
|
|
4086
|
-
onClick: selectFromBody
|
|
4087
|
-
}, [
|
|
4177
|
+
class: "htw:transition-transform htw:duration-500 htw:ease-out htw:motion-reduce:transition-none",
|
|
4178
|
+
style: normalizeStyle({ transform: `rotate(${remounts.value * -360}deg)` })
|
|
4179
|
+
}, null, 8, ["style"])], 8, _hoisted_8$4)])) : createCommentVNode("", true),
|
|
4088
4180
|
createElementVNode("div", {
|
|
4089
|
-
class: "
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
}, [
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4181
|
+
class: "htw:relative htw:w-full htw:overflow-hidden htw:border htw:border-solid htw:border-border htw:rounded-[7px] htw:bg-white htw:group-data-[single=true]/frame:border-0 htw:group-data-[selected=true]/frame:border-accent htw:group-data-[highlighted=true]/frame:border-accent htw:group-data-[selected=true]/frame:after:content-[''] htw:after:hidden htw:group-data-[selected=true]/frame:after:block htw:after:absolute htw:after:inset-0 htw:after:rounded-[inherit] htw:after:pointer-events-none htw:after:z-[3] htw:after:shadow-[inset_0_0_0_1px_var(--histoire-accent)] htw:group-data-[single=true]/frame:after:shadow-[inset_0_0_0_1px_var(--histoire-border)]",
|
|
4182
|
+
"data-test-id": "responsive-preview-bg",
|
|
4183
|
+
style: normalizeStyle(bodyStyle.value),
|
|
4184
|
+
onClick: selectFromBody
|
|
4185
|
+
}, [
|
|
4186
|
+
createElementVNode("div", {
|
|
4187
|
+
class: "histoire-frame-content htw:origin-top-left htw:group-data-[dimmed=true]/frame:group-data-[selected=true]/frame:opacity-35 htw:group-data-[stale=true]/frame:opacity-40 htw:group-data-[stale=true]/frame:pointer-events-none",
|
|
4188
|
+
style: normalizeStyle(previewStyle.value),
|
|
4189
|
+
"aria-busy": status.value !== "ready",
|
|
4190
|
+
inert: status.value !== "ready" || __props.stale ? true : void 0
|
|
4191
|
+
}, [__props.live ? (openBlock(), createBlock(CanvasReplicaPreview_default, {
|
|
4192
|
+
key: 0,
|
|
4193
|
+
ref_key: "replica",
|
|
4194
|
+
ref: replica,
|
|
4195
|
+
interactive: !__props.dragging,
|
|
4196
|
+
"frame-id": __props.frame.id,
|
|
4197
|
+
"story-id": __props.frame.storyId,
|
|
4198
|
+
"variant-id": __props.frame.variantId,
|
|
4199
|
+
"preview-base": __props.previewBase,
|
|
4200
|
+
viewport: single.value ? {
|
|
4201
|
+
width: __props.width,
|
|
4202
|
+
height: __props.height
|
|
4203
|
+
} : void 0,
|
|
4204
|
+
"declared-size": __props.fixedSize ? {
|
|
4205
|
+
width: __props.width,
|
|
4206
|
+
height: __props.height
|
|
4207
|
+
} : void 0,
|
|
4208
|
+
onStatus: updateStatus,
|
|
4209
|
+
onSnapshot: _cache[0] || (_cache[0] = ($event) => snapshotShown.value = $event)
|
|
4210
|
+
}, null, 8, [
|
|
4211
|
+
"interactive",
|
|
4212
|
+
"frame-id",
|
|
4213
|
+
"story-id",
|
|
4214
|
+
"variant-id",
|
|
4215
|
+
"preview-base",
|
|
4216
|
+
"viewport",
|
|
4217
|
+
"declared-size"
|
|
4218
|
+
])) : createCommentVNode("", true)], 12, _hoisted_9$2),
|
|
4219
|
+
padding.value > 0 ? (openBlock(), createBlock(FramePaddingAligners_default, {
|
|
4220
|
+
key: 0,
|
|
4221
|
+
width: __props.width * scale.value,
|
|
4222
|
+
height: __props.height * scale.value,
|
|
4223
|
+
padding: padding.value * scale.value,
|
|
4224
|
+
background: unref(background)
|
|
4225
|
+
}, null, 8, [
|
|
4226
|
+
"width",
|
|
4227
|
+
"height",
|
|
4228
|
+
"padding",
|
|
4229
|
+
"background"
|
|
4230
|
+
])) : createCommentVNode("", true),
|
|
4231
|
+
!__props.live ? (openBlock(), createElementBlock("div", _hoisted_10$1, toDisplayString(__props.variant.title), 1)) : unref(loadingVisible) && !showSnapshot.value ? (openBlock(), createElementBlock("div", _hoisted_11, [createVNode(CanvasLoadingIndicator_default)])) : status.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_12, [createElementVNode("span", null, toDisplayString(error.value instanceof Error ? error.value.message : "Variant unavailable"), 1), createVNode(unref(HstButton), {
|
|
4232
|
+
class: "htw:py-1 htw:px-2.5 htw:text-inherit",
|
|
4233
|
+
color: "default",
|
|
4234
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => replica.value?.retry(), ["stop"]))
|
|
4235
|
+
}, {
|
|
4236
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Retry ", -1)])]),
|
|
4237
|
+
_: 1
|
|
4238
|
+
})])) : createCommentVNode("", true),
|
|
4239
|
+
!__props.selected && (!__props.live || status.value !== "ready") && canSelect.value ? (openBlock(), createElementBlock("div", _hoisted_13)) : createCommentVNode("", true)
|
|
4240
|
+
], 4)
|
|
4241
|
+
], 46, _hoisted_1$52);
|
|
4126
4242
|
};
|
|
4127
4243
|
}
|
|
4128
4244
|
});
|
|
@@ -4150,13 +4266,13 @@ var CanvasHintItem_default = /* @__PURE__ */ defineComponent({
|
|
|
4150
4266
|
}
|
|
4151
4267
|
});
|
|
4152
4268
|
// src/app/components/canvas/CanvasHintKey.vue?vue&type=script&setup=true&lang.ts
|
|
4153
|
-
var _hoisted_1$
|
|
4269
|
+
var _hoisted_1$51 = { class: "htw:inline-block htw:px-1 htw:border htw:border-solid htw:border-border htw:rounded-[4px] htw:font-mono htw:text-[11px] htw:leading-[14px]" };
|
|
4154
4270
|
// src/app/components/canvas/CanvasHintKey.vue
|
|
4155
4271
|
var CanvasHintKey_default = /* @__PURE__ */ defineComponent({
|
|
4156
4272
|
__name: "CanvasHintKey",
|
|
4157
4273
|
setup(__props) {
|
|
4158
4274
|
return (_ctx, _cache) => {
|
|
4159
|
-
return openBlock(), createElementBlock("kbd", _hoisted_1$
|
|
4275
|
+
return openBlock(), createElementBlock("kbd", _hoisted_1$51, [renderSlot(_ctx.$slots, "default")]);
|
|
4160
4276
|
};
|
|
4161
4277
|
}
|
|
4162
4278
|
});
|
|
@@ -4177,12 +4293,12 @@ var CanvasHintButton_default = /* @__PURE__ */ defineComponent({
|
|
|
4177
4293
|
}
|
|
4178
4294
|
});
|
|
4179
4295
|
// src/app/components/canvas/CanvasMeasureHint.vue?vue&type=script&setup=true&lang.ts
|
|
4180
|
-
var _hoisted_1$
|
|
4296
|
+
var _hoisted_1$50 = {
|
|
4181
4297
|
key: 2,
|
|
4182
4298
|
class: "htw:inline-flex htw:items-center htw:box-border htw:h-6 htw:px-[7px] htw:border htw:border-solid htw:border-transparent htw:rounded-[6px] htw:leading-4 htw:text-text htw:font-semibold htw:flex-none",
|
|
4183
4299
|
"aria-current": "location"
|
|
4184
4300
|
};
|
|
4185
|
-
var _hoisted_2$
|
|
4301
|
+
var _hoisted_2$32 = { class: "htw:flex htw:flex-wrap htw:items-center htw:gap-0.5" };
|
|
4186
4302
|
// src/app/components/canvas/CanvasMeasureHint.vue
|
|
4187
4303
|
var CanvasMeasureHint_default = /* @__PURE__ */ defineComponent({
|
|
4188
4304
|
__name: "CanvasMeasureHint",
|
|
@@ -4221,8 +4337,8 @@ var CanvasMeasureHint_default = /* @__PURE__ */ defineComponent({
|
|
|
4221
4337
|
}, {
|
|
4222
4338
|
default: withCtx(() => [createTextVNode(toDisplayString(label), 1)]),
|
|
4223
4339
|
_: 2
|
|
4224
|
-
}, 1032, ["onClick"])) : (openBlock(), createElementBlock("strong", _hoisted_1$
|
|
4225
|
-
}), 128))], 512)) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$
|
|
4340
|
+
}, 1032, ["onClick"])) : (openBlock(), createElementBlock("strong", _hoisted_1$50, toDisplayString(label), 1))], 64);
|
|
4341
|
+
}), 128))], 512)) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$32, [
|
|
4226
4342
|
createVNode(CanvasHintButton_default, {
|
|
4227
4343
|
"aria-pressed": "true",
|
|
4228
4344
|
title: "Unlock measurement",
|
|
@@ -4281,6 +4397,21 @@ var CanvasMeasureHint_default = /* @__PURE__ */ defineComponent({
|
|
|
4281
4397
|
};
|
|
4282
4398
|
}
|
|
4283
4399
|
});
|
|
4400
|
+
// src/app/components/canvas/story-frame-size.ts
|
|
4401
|
+
/** Width and height a story declares in its layout, whether or not they are in use. */
|
|
4402
|
+
function declaredFrameSize(story) {
|
|
4403
|
+
const layout = story?.layout;
|
|
4404
|
+
if (!layout?.width && !layout?.height) return void 0;
|
|
4405
|
+
return {
|
|
4406
|
+
width: layout.width,
|
|
4407
|
+
height: layout.height
|
|
4408
|
+
};
|
|
4409
|
+
}
|
|
4410
|
+
/** Declared size in use: absent once the story is switched to the toolbar viewport for this session. */
|
|
4411
|
+
function storyFrameSize(views, story) {
|
|
4412
|
+
if (!story || views.usesToolbarViewport(story.id)) return void 0;
|
|
4413
|
+
return declaredFrameSize(story);
|
|
4414
|
+
}
|
|
4284
4415
|
// src/app/components/canvas/toolbar/viewport-size.ts
|
|
4285
4416
|
/** Toolbar uses physical selection dimensions, including locally selected Matrix cells. */
|
|
4286
4417
|
function useCanvasViewportDimensions() {
|
|
@@ -4299,12 +4430,26 @@ function useCanvasViewportDimensions() {
|
|
|
4299
4430
|
return viewportDimensions(snapshot.value.settings);
|
|
4300
4431
|
});
|
|
4301
4432
|
}
|
|
4433
|
+
/** Selected story and its declared size in arrangements that support From code. */
|
|
4434
|
+
function useDeclaredStoryFrame() {
|
|
4435
|
+
const canvas = useCanvasStore();
|
|
4436
|
+
const snapshot = useHistoireSnapshot();
|
|
4437
|
+
return computed(() => {
|
|
4438
|
+
if (canvas.arrangement === "single" || !isBuiltinCanvasArrangement(canvas.arrangement)) return void 0;
|
|
4439
|
+
const story = snapshot.value.catalog.stories.find((item) => item.id === snapshot.value.selection?.storyId);
|
|
4440
|
+
const size = declaredFrameSize(story);
|
|
4441
|
+
return story && size ? {
|
|
4442
|
+
storyId: story.id,
|
|
4443
|
+
...size
|
|
4444
|
+
} : void 0;
|
|
4445
|
+
});
|
|
4446
|
+
}
|
|
4302
4447
|
// src/app/components/canvas/CanvasStatus.vue?vue&type=script&setup=true&lang.ts
|
|
4303
|
-
var _hoisted_1$
|
|
4448
|
+
var _hoisted_1$49 = {
|
|
4304
4449
|
key: 0,
|
|
4305
4450
|
class: "histoire-canvas-info htw:absolute htw:start-(--histoire-canvas-info-inset) htw:end-[calc(var(--histoire-canvas-inspector-reserve)+var(--histoire-canvas-info-inset))] htw:bottom-5 htw:flex htw:items-center htw:min-w-0 htw:@container/canvas-status htw:pointer-events-none htw:z-[4]"
|
|
4306
4451
|
};
|
|
4307
|
-
var _hoisted_2$
|
|
4452
|
+
var _hoisted_2$31 = {
|
|
4308
4453
|
key: 1,
|
|
4309
4454
|
class: "histoire-canvas-status htw:[line-height:normal] htw:flex htw:w-full htw:items-center htw:justify-end htw:gap-2 htw:min-w-0 htw:font-mono htw:text-[11px] htw:text-muted"
|
|
4310
4455
|
};
|
|
@@ -4317,9 +4462,11 @@ var CanvasStatus_default = /* @__PURE__ */ defineComponent({
|
|
|
4317
4462
|
const snapshot = useHistoireSnapshot();
|
|
4318
4463
|
const canvas = useCanvasStore();
|
|
4319
4464
|
const dimensions = useCanvasViewportDimensions();
|
|
4320
|
-
const size = computed(() =>
|
|
4465
|
+
const size = computed(() => {
|
|
4466
|
+
return `${canvas.frameSizeFromCode?.width ?? dimensions.value.width} × ${canvas.frameSizeFromCode?.height ?? dimensions.value.height ?? "Auto"}`;
|
|
4467
|
+
});
|
|
4321
4468
|
return (_ctx, _cache) => {
|
|
4322
|
-
return __props.hint ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4469
|
+
return __props.hint ? (openBlock(), createElementBlock("div", _hoisted_1$49, [__props.hint === "pan" ? (openBlock(), createBlock(CanvasHintBar_default, {
|
|
4323
4470
|
key: 0,
|
|
4324
4471
|
"aria-live": "polite"
|
|
4325
4472
|
}, {
|
|
@@ -4387,17 +4534,17 @@ var CanvasStatus_default = /* @__PURE__ */ defineComponent({
|
|
|
4387
4534
|
})
|
|
4388
4535
|
]),
|
|
4389
4536
|
_: 1
|
|
4390
|
-
}))])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4537
|
+
}))])) : (openBlock(), createElementBlock("div", _hoisted_2$31, [createVNode(unref(BuiltinIcon), {
|
|
4391
4538
|
class: "htw:flex-none",
|
|
4392
|
-
icon: "laptop",
|
|
4539
|
+
icon: unref(canvas).frameSizeFromCode ? "code" : "laptop",
|
|
4393
4540
|
size: 14
|
|
4394
|
-
}), createElementVNode("span", _hoisted_3$20, toDisplayString(size.value) + " · " + toDisplayString(Math.round(unref(canvas).effectiveZoom * 100)) + "% · " + toDisplayString(unref(snapshot).settings.backgroundColor), 1)]));
|
|
4541
|
+
}, null, 8, ["icon"]), createElementVNode("span", _hoisted_3$20, toDisplayString(size.value) + " · " + toDisplayString(Math.round(unref(canvas).effectiveZoom * 100)) + "% · " + toDisplayString(unref(snapshot).settings.backgroundColor), 1)]));
|
|
4395
4542
|
};
|
|
4396
4543
|
}
|
|
4397
4544
|
});
|
|
4398
4545
|
// src/app/components/canvas/CanvasHeader.vue?vue&type=script&setup=true&lang.ts
|
|
4399
|
-
var _hoisted_1$
|
|
4400
|
-
var _hoisted_2$
|
|
4546
|
+
var _hoisted_1$48 = { class: "histoire-canvas-heading htw:flex htw:items-center htw:justify-between htw:gap-4 htw:min-w-0" };
|
|
4547
|
+
var _hoisted_2$30 = { class: "htw:flex htw:flex-1 htw:items-baseline htw:gap-3 htw:min-w-0" };
|
|
4401
4548
|
var _hoisted_3$19 = { class: "htw:min-w-0 htw:overflow-hidden htw:text-ellipsis htw:whitespace-nowrap htw:m-0 htw:text-[24px] htw:font-extrabold htw:leading-[1.2] htw:tracking-[-.02em] htw:text-text" };
|
|
4402
4549
|
var _hoisted_4$14 = { class: "htw:text-muted htw:text-[12px] htw:shrink-0 htw:whitespace-nowrap" };
|
|
4403
4550
|
var _hoisted_5$9 = { class: "htw:flex htw:flex-[0_1_45%] htw:flex-col htw:self-start htw:items-stretch htw:gap-[3px] htw:min-w-0" };
|
|
@@ -4425,7 +4572,7 @@ var CanvasHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
4425
4572
|
const editorLabel = computed(() => `Open ${props.story.relativePath ?? ""} in editor`);
|
|
4426
4573
|
const showFile = computed(() => !!props.story.relativePath && isHistoireProjectFileOrigin(props.story.fileOrigin));
|
|
4427
4574
|
return (_ctx, _cache) => {
|
|
4428
|
-
return openBlock(), createElementBlock("header", _hoisted_1$
|
|
4575
|
+
return openBlock(), createElementBlock("header", _hoisted_1$48, [createElementVNode("div", _hoisted_2$30, [createElementVNode("h1", _hoisted_3$19, toDisplayString(__props.story.title), 1), createElementVNode("span", _hoisted_4$14, toDisplayString(__props.story.variants.length) + " " + toDisplayString(__props.story.variants.length === 1 ? "variant" : "variants"), 1)]), createElementVNode("div", _hoisted_5$9, [showFile.value && __props.canOpenInEditor ? (openBlock(), createElementBlock("button", {
|
|
4429
4576
|
key: 0,
|
|
4430
4577
|
type: "button",
|
|
4431
4578
|
class: "histoire-canvas-file htw:flex htw:w-full htw:min-w-0 htw:items-center htw:justify-end htw:gap-2 htw:overflow-hidden htw:whitespace-nowrap htw:font-mono htw:[@container_canvas-header_(max-width:640px)]:hidden htw:group/file htw:box-border htw:m-0 htw:p-0 htw:border-0 htw:bg-transparent htw:text-inherit htw:[text-align:inherit] htw:cursor-pointer htw:pointer-events-auto htw:focus-visible:outline-2 htw:focus-visible:outline-solid htw:focus-visible:outline-accent htw:focus-visible:outline-offset-2",
|
|
@@ -4671,11 +4818,11 @@ function createSingleResizeController(options) {
|
|
|
4671
4818
|
/** Project a right-edge pointer into centered or overflowed frame width. */
|
|
4672
4819
|
function pointerWidth(event, geometry) {
|
|
4673
4820
|
const right = event.clientX + edgeOffset.x - geometry.surface.left + geometry.surface.scrollLeft;
|
|
4674
|
-
return (right > geometry.surface.width ? right : right * 2 - geometry.surface.width) / geometry.zoom;
|
|
4821
|
+
return (right > geometry.surface.width ? right : right * 2 - geometry.surface.width) / geometry.zoom - (options.getInset?.() ?? 0) * 2;
|
|
4675
4822
|
}
|
|
4676
4823
|
/** Project a bottom-edge pointer through native scroll and displayed zoom. */
|
|
4677
4824
|
function pointerHeight(event, geometry) {
|
|
4678
|
-
return (event.clientY + edgeOffset.y - geometry.surface.top + geometry.surface.scrollTop) / geometry.zoom;
|
|
4825
|
+
return (event.clientY + edgeOffset.y - geometry.surface.top + geometry.surface.scrollTop) / geometry.zoom - (options.getInset?.() ?? 0) * 2;
|
|
4679
4826
|
}
|
|
4680
4827
|
/** Begin primary pointer ownership for one grip. */
|
|
4681
4828
|
function onPointerDown(nextAxis, event) {
|
|
@@ -4788,7 +4935,7 @@ var SingleVariantResizeHandle_default = /* @__PURE__ */ defineComponent({
|
|
|
4788
4935
|
}
|
|
4789
4936
|
});
|
|
4790
4937
|
// src/app/components/canvas/SingleVariantResizeHandles.vue?vue&type=script&setup=true&lang.ts
|
|
4791
|
-
var _hoisted_1$
|
|
4938
|
+
var _hoisted_1$47 = ["data-active", "data-keyboard-input"];
|
|
4792
4939
|
// src/app/components/canvas/SingleVariantResizeHandles.vue
|
|
4793
4940
|
var SingleVariantResizeHandles_default = /* @__PURE__ */ defineComponent({
|
|
4794
4941
|
__name: "SingleVariantResizeHandles",
|
|
@@ -4796,7 +4943,8 @@ var SingleVariantResizeHandles_default = /* @__PURE__ */ defineComponent({
|
|
|
4796
4943
|
surface: {},
|
|
4797
4944
|
frame: {},
|
|
4798
4945
|
size: {},
|
|
4799
|
-
zoom: {}
|
|
4946
|
+
zoom: {},
|
|
4947
|
+
inset: {}
|
|
4800
4948
|
},
|
|
4801
4949
|
emits: [
|
|
4802
4950
|
"update:active",
|
|
@@ -4831,6 +4979,7 @@ var SingleVariantResizeHandles_default = /* @__PURE__ */ defineComponent({
|
|
|
4831
4979
|
], frameBounds.update, { flush: "post" });
|
|
4832
4980
|
const controller = createSingleResizeController({
|
|
4833
4981
|
getSize: () => props.size,
|
|
4982
|
+
getInset: () => props.inset ?? 0,
|
|
4834
4983
|
getGeometry: () => {
|
|
4835
4984
|
if (!props.surface || !props.frame) return;
|
|
4836
4985
|
const surface = props.surface.getBoundingClientRect();
|
|
@@ -4927,7 +5076,7 @@ var SingleVariantResizeHandles_default = /* @__PURE__ */ defineComponent({
|
|
|
4927
5076
|
onPointerdown: _cache[4] || (_cache[4] = ($event) => pointerDown("both", $event)),
|
|
4928
5077
|
onLostpointercapture: unref(controller).onPointerEnd
|
|
4929
5078
|
}, null, 8, ["onLostpointercapture"])
|
|
4930
|
-
], 12, _hoisted_1$
|
|
5079
|
+
], 12, _hoisted_1$47);
|
|
4931
5080
|
};
|
|
4932
5081
|
}
|
|
4933
5082
|
});
|
|
@@ -5064,7 +5213,8 @@ var CanvasSingleVariant_default = /* @__PURE__ */ defineComponent({
|
|
|
5064
5213
|
variant: {},
|
|
5065
5214
|
previewBase: {},
|
|
5066
5215
|
stale: { type: Boolean },
|
|
5067
|
-
resizable: { type: Boolean }
|
|
5216
|
+
resizable: { type: Boolean },
|
|
5217
|
+
padding: {}
|
|
5068
5218
|
},
|
|
5069
5219
|
emits: ["contextmenu", "resize"],
|
|
5070
5220
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -5074,14 +5224,20 @@ var CanvasSingleVariant_default = /* @__PURE__ */ defineComponent({
|
|
|
5074
5224
|
const frameShell = ref();
|
|
5075
5225
|
const resizing = ref(false);
|
|
5076
5226
|
const canvas = useCanvasStore();
|
|
5227
|
+
const gutter = computed(() => props.padding ?? 0);
|
|
5228
|
+
/** Zoom and pan own the whole frame, gutter included. */
|
|
5229
|
+
const outerSize = computed(() => props.frame && {
|
|
5230
|
+
width: props.frame.width + gutter.value * 2,
|
|
5231
|
+
height: props.frame.height + gutter.value * 2
|
|
5232
|
+
});
|
|
5077
5233
|
useSingleVariantZoom(canvas, surface, {
|
|
5078
5234
|
area: () => props.area,
|
|
5079
|
-
size: () =>
|
|
5235
|
+
size: () => outerSize.value,
|
|
5080
5236
|
frameId: () => props.frame?.id
|
|
5081
5237
|
});
|
|
5082
5238
|
__expose(useSingleVariantPan(surface, {
|
|
5083
5239
|
area: () => props.area,
|
|
5084
|
-
size: () =>
|
|
5240
|
+
size: () => outerSize.value,
|
|
5085
5241
|
zoom: () => canvas.effectiveZoom,
|
|
5086
5242
|
resizing: () => resizing.value
|
|
5087
5243
|
}));
|
|
@@ -5135,6 +5291,7 @@ var CanvasSingleVariant_default = /* @__PURE__ */ defineComponent({
|
|
|
5135
5291
|
"preview-base": __props.previewBase,
|
|
5136
5292
|
width: __props.frame.width,
|
|
5137
5293
|
height: __props.frame.height,
|
|
5294
|
+
padding: gutter.value,
|
|
5138
5295
|
stale: __props.stale,
|
|
5139
5296
|
onContextmenu: _cache[0] || (_cache[0] = (event, target) => emit("contextmenu", event, target))
|
|
5140
5297
|
}, null, 8, [
|
|
@@ -5144,6 +5301,7 @@ var CanvasSingleVariant_default = /* @__PURE__ */ defineComponent({
|
|
|
5144
5301
|
"preview-base",
|
|
5145
5302
|
"width",
|
|
5146
5303
|
"height",
|
|
5304
|
+
"padding",
|
|
5147
5305
|
"stale"
|
|
5148
5306
|
]))], 512)) : (openBlock(), createBlock(WorkbenchEmptyState_default, {
|
|
5149
5307
|
key: 1,
|
|
@@ -5154,6 +5312,7 @@ var CanvasSingleVariant_default = /* @__PURE__ */ defineComponent({
|
|
|
5154
5312
|
surface: surface.value,
|
|
5155
5313
|
frame: frameShell.value,
|
|
5156
5314
|
size: __props.frame,
|
|
5315
|
+
inset: gutter.value,
|
|
5157
5316
|
zoom: unref(canvas).effectiveZoom,
|
|
5158
5317
|
"onUpdate:active": _cache[1] || (_cache[1] = ($event) => resizing.value = $event),
|
|
5159
5318
|
onStart: startResize,
|
|
@@ -5163,17 +5322,18 @@ var CanvasSingleVariant_default = /* @__PURE__ */ defineComponent({
|
|
|
5163
5322
|
"surface",
|
|
5164
5323
|
"frame",
|
|
5165
5324
|
"size",
|
|
5325
|
+
"inset",
|
|
5166
5326
|
"zoom"
|
|
5167
5327
|
])) : createCommentVNode("", true)], 4);
|
|
5168
5328
|
};
|
|
5169
5329
|
}
|
|
5170
5330
|
});
|
|
5171
5331
|
// src/app/components/canvas/CollectErrorCard.vue?vue&type=script&setup=true&lang.ts
|
|
5172
|
-
var _hoisted_1$
|
|
5332
|
+
var _hoisted_1$46 = {
|
|
5173
5333
|
class: "htw:absolute htw:left-9 htw:bottom-[54px] htw:flex htw:items-start htw:gap-3 htw:max-w-[min(560px,_calc(100%_-_72px))] htw:max-h-[35%] htw:overflow-auto htw:p-4 htw:border htw:border-solid htw:border-danger htw:rounded-[12px] htw:bg-danger-soft htw:text-danger htw:text-[13px]",
|
|
5174
5334
|
role: "alert"
|
|
5175
5335
|
};
|
|
5176
|
-
var _hoisted_2$
|
|
5336
|
+
var _hoisted_2$29 = {
|
|
5177
5337
|
key: 0,
|
|
5178
5338
|
class: "htw:font-mono htw:text-[11px]"
|
|
5179
5339
|
};
|
|
@@ -5184,11 +5344,11 @@ var CollectErrorCard_default = /* @__PURE__ */ defineComponent({
|
|
|
5184
5344
|
props: { errors: {} },
|
|
5185
5345
|
setup(__props) {
|
|
5186
5346
|
return (_ctx, _cache) => {
|
|
5187
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
5347
|
+
return openBlock(), createElementBlock("section", _hoisted_1$46, [createVNode(unref(BuiltinIcon), {
|
|
5188
5348
|
icon: "error-filled",
|
|
5189
5349
|
size: 18
|
|
5190
5350
|
}), createElementVNode("div", null, [_cache[0] || (_cache[0] = createElementVNode("strong", { class: "htw:block htw:mb-2" }, "Story collection failed", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.errors, (error, index) => {
|
|
5191
|
-
return openBlock(), createElementBlock("div", { key: index }, [error.relativePath ? (openBlock(), createElementBlock("code", _hoisted_2$
|
|
5351
|
+
return openBlock(), createElementBlock("div", { key: index }, [error.relativePath ? (openBlock(), createElementBlock("code", _hoisted_2$29, toDisplayString(error.relativePath), 1)) : createCommentVNode("", true), createElementVNode("p", _hoisted_3$18, toDisplayString(error.message), 1)]);
|
|
5192
5352
|
}), 128))])]);
|
|
5193
5353
|
};
|
|
5194
5354
|
}
|
|
@@ -5461,7 +5621,7 @@ function createCanvasFrameState(canonical) {
|
|
|
5461
5621
|
};
|
|
5462
5622
|
}
|
|
5463
5623
|
// src/app/components/canvas/FrameGrid.vue?vue&type=script&setup=true&lang.ts
|
|
5464
|
-
var _hoisted_1$
|
|
5624
|
+
var _hoisted_1$45 = {
|
|
5465
5625
|
class: "htw:absolute htw:inset-0 htw:pointer-events-none",
|
|
5466
5626
|
role: "group",
|
|
5467
5627
|
"aria-label": "Story variants"
|
|
@@ -5472,7 +5632,7 @@ var FrameGrid_default = /* @__PURE__ */ defineComponent({
|
|
|
5472
5632
|
props: { frames: {} },
|
|
5473
5633
|
setup(__props) {
|
|
5474
5634
|
return (_ctx, _cache) => {
|
|
5475
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5635
|
+
return openBlock(), createElementBlock("div", _hoisted_1$45, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.frames, (frame, index) => {
|
|
5476
5636
|
return renderSlot(_ctx.$slots, "default", {
|
|
5477
5637
|
key: frame.id,
|
|
5478
5638
|
frame,
|
|
@@ -5483,7 +5643,7 @@ var FrameGrid_default = /* @__PURE__ */ defineComponent({
|
|
|
5483
5643
|
}
|
|
5484
5644
|
});
|
|
5485
5645
|
// src/app/components/canvas/FrameList.vue?vue&type=script&setup=true&lang.ts
|
|
5486
|
-
var _hoisted_1$
|
|
5646
|
+
var _hoisted_1$44 = {
|
|
5487
5647
|
class: "htw:flex htw:flex-col",
|
|
5488
5648
|
role: "list",
|
|
5489
5649
|
"aria-label": "Story variants"
|
|
@@ -5494,7 +5654,7 @@ var FrameList_default = /* @__PURE__ */ defineComponent({
|
|
|
5494
5654
|
props: { frames: {} },
|
|
5495
5655
|
setup(__props) {
|
|
5496
5656
|
return (_ctx, _cache) => {
|
|
5497
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$44, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.frames, (frame, index) => {
|
|
5498
5658
|
return openBlock(), createElementBlock("div", {
|
|
5499
5659
|
key: frame.id,
|
|
5500
5660
|
class: "htw:min-w-0",
|
|
@@ -5839,7 +5999,7 @@ function describeToolPointer(event, canvas, frames) {
|
|
|
5839
5999
|
});
|
|
5840
6000
|
}
|
|
5841
6001
|
// src/app/components/canvas/tools/PluginToolLayer.vue?vue&type=script&setup=true&lang.ts
|
|
5842
|
-
var _hoisted_1$
|
|
6002
|
+
var _hoisted_1$43 = ["data-histoire-tool"];
|
|
5843
6003
|
// src/app/components/canvas/tools/PluginToolLayer.vue
|
|
5844
6004
|
var PluginToolLayer_default = /* @__PURE__ */ defineComponent({
|
|
5845
6005
|
__name: "PluginToolLayer",
|
|
@@ -5885,7 +6045,7 @@ var PluginToolLayer_default = /* @__PURE__ */ defineComponent({
|
|
|
5885
6045
|
onPointermove: _cache[1] || (_cache[1] = (...args) => unref(gesture).pointerMove && unref(gesture).pointerMove(...args)),
|
|
5886
6046
|
onPointerup: _cache[2] || (_cache[2] = (...args) => unref(gesture).pointerUp && unref(gesture).pointerUp(...args)),
|
|
5887
6047
|
onPointercancel: _cache[3] || (_cache[3] = (...args) => unref(gesture).pointerCancel && unref(gesture).pointerCancel(...args))
|
|
5888
|
-
}, null, 44, _hoisted_1$
|
|
6048
|
+
}, null, 44, _hoisted_1$43);
|
|
5889
6049
|
};
|
|
5890
6050
|
}
|
|
5891
6051
|
});
|
|
@@ -5962,7 +6122,7 @@ function useFrameOverlayTargets(options) {
|
|
|
5962
6122
|
}) };
|
|
5963
6123
|
}
|
|
5964
6124
|
// src/app/components/canvas/overlays/OverlayItem.vue?vue&type=script&setup=true&lang.ts
|
|
5965
|
-
var _hoisted_1$
|
|
6125
|
+
var _hoisted_1$42 = ["inert"];
|
|
5966
6126
|
// src/app/components/canvas/overlays/OverlayItem.vue
|
|
5967
6127
|
var OverlayItem_default = /* @__PURE__ */ defineComponent({
|
|
5968
6128
|
__name: "OverlayItem",
|
|
@@ -5991,13 +6151,13 @@ var OverlayItem_default = /* @__PURE__ */ defineComponent({
|
|
|
5991
6151
|
"interactive",
|
|
5992
6152
|
"contribution",
|
|
5993
6153
|
"context"
|
|
5994
|
-
])], 8, _hoisted_1$
|
|
6154
|
+
])], 8, _hoisted_1$42);
|
|
5995
6155
|
};
|
|
5996
6156
|
}
|
|
5997
6157
|
});
|
|
5998
6158
|
// src/app/components/canvas/overlays/FrameLayer.vue?vue&type=script&setup=true&lang.ts
|
|
5999
|
-
var _hoisted_1$
|
|
6000
|
-
var _hoisted_2$
|
|
6159
|
+
var _hoisted_1$41 = { class: "htw:absolute htw:inset-0 htw:z-[2] htw:overflow-hidden htw:pointer-events-none" };
|
|
6160
|
+
var _hoisted_2$28 = ["data-frame-key"];
|
|
6001
6161
|
// src/app/components/canvas/overlays/FrameLayer.vue
|
|
6002
6162
|
var FrameLayer_default = /* @__PURE__ */ defineComponent({
|
|
6003
6163
|
__name: "FrameLayer",
|
|
@@ -6014,7 +6174,7 @@ var FrameLayer_default = /* @__PURE__ */ defineComponent({
|
|
|
6014
6174
|
service: props.context.canvas
|
|
6015
6175
|
});
|
|
6016
6176
|
return (_ctx, _cache) => {
|
|
6017
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6177
|
+
return openBlock(), createElementBlock("div", _hoisted_1$41, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(targets), (target) => {
|
|
6018
6178
|
return openBlock(), createElementBlock("div", {
|
|
6019
6179
|
key: target.key,
|
|
6020
6180
|
class: "htw:absolute htw:pointer-events-none",
|
|
@@ -6034,13 +6194,13 @@ var FrameLayer_default = /* @__PURE__ */ defineComponent({
|
|
|
6034
6194
|
context: target.context
|
|
6035
6195
|
}, null, 8, ["contribution", "context"])]),
|
|
6036
6196
|
_: 2
|
|
6037
|
-
}, 1032, ["context"])], 12, _hoisted_2$
|
|
6197
|
+
}, 1032, ["context"])], 12, _hoisted_2$28);
|
|
6038
6198
|
}), 128))]);
|
|
6039
6199
|
};
|
|
6040
6200
|
}
|
|
6041
6201
|
});
|
|
6042
6202
|
// src/app/components/canvas/overlays/OverlayLayer.vue?vue&type=script&setup=true&lang.ts
|
|
6043
|
-
var _hoisted_1$
|
|
6203
|
+
var _hoisted_1$40 = ["data-space"];
|
|
6044
6204
|
// src/app/components/canvas/overlays/OverlayLayer.vue
|
|
6045
6205
|
var OverlayLayer_default = /* @__PURE__ */ defineComponent({
|
|
6046
6206
|
__name: "OverlayLayer",
|
|
@@ -6072,7 +6232,7 @@ var OverlayLayer_default = /* @__PURE__ */ defineComponent({
|
|
|
6072
6232
|
context: __props.context
|
|
6073
6233
|
}, null, 8, ["contribution", "context"])]),
|
|
6074
6234
|
_: 1
|
|
6075
|
-
}, 8, ["context"])], 12, _hoisted_1$
|
|
6235
|
+
}, 8, ["context"])], 12, _hoisted_1$40);
|
|
6076
6236
|
};
|
|
6077
6237
|
}
|
|
6078
6238
|
});
|
|
@@ -6125,6 +6285,13 @@ function singleVariantArea(viewport, insets, inspectorWidth, hidden) {
|
|
|
6125
6285
|
height: Math.max(1, Math.round(viewport.height - top - (insets.bottomInset ?? 0) - padding))
|
|
6126
6286
|
};
|
|
6127
6287
|
}
|
|
6288
|
+
/** Room left for the variant once a story gutter surrounds it. */
|
|
6289
|
+
function insetArea(area, padding) {
|
|
6290
|
+
return {
|
|
6291
|
+
width: Math.max(1, area.width - padding * 2),
|
|
6292
|
+
height: Math.max(1, area.height - padding * 2)
|
|
6293
|
+
};
|
|
6294
|
+
}
|
|
6128
6295
|
/** Resolve logical dimensions without shrinking oversized presets or scaling content. */
|
|
6129
6296
|
function resolveSingleViewport(area, settings, mode) {
|
|
6130
6297
|
if (mode === "responsive") return {
|
|
@@ -6569,25 +6736,43 @@ function useCanvasPan(options) {
|
|
|
6569
6736
|
};
|
|
6570
6737
|
}
|
|
6571
6738
|
// src/app/components/canvas/useCanvasVariantSize.ts
|
|
6572
|
-
/**
|
|
6739
|
+
/**
|
|
6740
|
+
* Resolve canonical fallback and source-fenced variant sizes for every ordinary layout.
|
|
6741
|
+
* @param canvas Workbench canvas owning fit mode and measured content.
|
|
6742
|
+
*/
|
|
6573
6743
|
function useCanvasVariantSize(canvas) {
|
|
6574
6744
|
const snapshot = useHistoireSnapshot();
|
|
6575
|
-
const
|
|
6745
|
+
const viewport = computed(() => {
|
|
6576
6746
|
const settings = snapshot.value.settings;
|
|
6577
6747
|
return {
|
|
6578
6748
|
width: settings.rotate && settings.responsiveHeight ? settings.responsiveHeight : settings.responsiveWidth,
|
|
6579
6749
|
height: settings.rotate ? settings.responsiveWidth : settings.responsiveHeight ?? 640
|
|
6580
6750
|
};
|
|
6581
6751
|
});
|
|
6752
|
+
const size = computed(() => {
|
|
6753
|
+
const declared = canvas.frameSizeFromCode;
|
|
6754
|
+
return {
|
|
6755
|
+
width: declared?.width ?? viewport.value.width,
|
|
6756
|
+
height: declared?.height ?? viewport.value.height
|
|
6757
|
+
};
|
|
6758
|
+
});
|
|
6759
|
+
/** Cache belongs to this source and target, independently of mounted frame lifetime. */
|
|
6760
|
+
function measuredSize(variantId) {
|
|
6761
|
+
const target = {
|
|
6762
|
+
storyId: snapshot.value.selection?.storyId ?? "",
|
|
6763
|
+
variantId
|
|
6764
|
+
};
|
|
6765
|
+
return canvas.autoFitContent ? canvas.contentSizes.get(getHistoireTargetKey(target), canvasContentKey(snapshot.value, target)) : void 0;
|
|
6766
|
+
}
|
|
6582
6767
|
return {
|
|
6583
6768
|
size,
|
|
6584
|
-
/**
|
|
6769
|
+
/** Grid and List size from active content fit, code, or the toolbar viewport. */
|
|
6585
6770
|
frameContentSize(variantId) {
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
return (
|
|
6771
|
+
return measuredSize(variantId) ?? size.value;
|
|
6772
|
+
},
|
|
6773
|
+
/** Single size: measured content or the viewport, ignoring declared dimensions. */
|
|
6774
|
+
viewportContentSize(variantId) {
|
|
6775
|
+
return measuredSize(variantId) ?? viewport.value;
|
|
6591
6776
|
}
|
|
6592
6777
|
};
|
|
6593
6778
|
}
|
|
@@ -6596,13 +6781,18 @@ function useCanvasVariantSize(canvas) {
|
|
|
6596
6781
|
function useSingleVariantGeometry(canvas, options) {
|
|
6597
6782
|
const insets = shallowRef({});
|
|
6598
6783
|
const area = computed(() => singleVariantArea(canvas.viewport, insets.value, options.inspectorWidth(), options.hidden()));
|
|
6599
|
-
const
|
|
6600
|
-
|
|
6784
|
+
const padding = computed(() => options.padding?.() ?? 0);
|
|
6785
|
+
const size = computed(() => canvas.singleViewportDraft ?? options.contentSize?.() ?? resolveSingleViewport(insetArea(area.value, padding.value), options.settings(), canvas.singleViewport.mode));
|
|
6786
|
+
watch([
|
|
6787
|
+
area,
|
|
6788
|
+
size,
|
|
6789
|
+
padding
|
|
6790
|
+
], ([available, logical, gutter]) => {
|
|
6601
6791
|
const measured = canvas.viewport.width > 0 && canvas.viewport.height > 0;
|
|
6602
6792
|
canvas.setSingleGeometry(measured ? available : {
|
|
6603
6793
|
width: 0,
|
|
6604
6794
|
height: 0
|
|
6605
|
-
}, logical);
|
|
6795
|
+
}, logical, gutter);
|
|
6606
6796
|
}, { immediate: true });
|
|
6607
6797
|
return {
|
|
6608
6798
|
area,
|
|
@@ -6799,7 +6989,7 @@ function leasedFrameFor(frames, target) {
|
|
|
6799
6989
|
return candidates.find((entry) => entry.iframe && entry.session) ?? candidates[0] ?? null;
|
|
6800
6990
|
}
|
|
6801
6991
|
// src/app/components/canvas/views/PluginCanvasView.vue?vue&type=script&setup=true&lang.ts
|
|
6802
|
-
var _hoisted_1$
|
|
6992
|
+
var _hoisted_1$39 = { class: "htw:absolute htw:inset-0 htw:grid htw:place-items-center" };
|
|
6803
6993
|
// src/app/components/canvas/views/PluginCanvasView.vue
|
|
6804
6994
|
var PluginCanvasView_default = /* @__PURE__ */ defineComponent({
|
|
6805
6995
|
__name: "PluginCanvasView",
|
|
@@ -6818,7 +7008,7 @@ var PluginCanvasView_default = /* @__PURE__ */ defineComponent({
|
|
|
6818
7008
|
return error instanceof Error ? error.message : String(error);
|
|
6819
7009
|
}
|
|
6820
7010
|
return (_ctx, _cache) => {
|
|
6821
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7011
|
+
return openBlock(), createElementBlock("div", _hoisted_1$39, [__props.view && __props.context && __props.workbench ? (openBlock(), createBlock(ExtensionView_default, {
|
|
6822
7012
|
key: unref(contributionKey)(__props.view),
|
|
6823
7013
|
class: "htw:absolute htw:inset-0 htw:grid htw:place-items-center",
|
|
6824
7014
|
classes: { mount: "htw:absolute htw:inset-0" },
|
|
@@ -6877,12 +7067,12 @@ var PluginCanvasView_default = /* @__PURE__ */ defineComponent({
|
|
|
6877
7067
|
}
|
|
6878
7068
|
});
|
|
6879
7069
|
// src/app/components/canvas/CanvasViewport.vue?vue&type=script&setup=true&lang.ts
|
|
6880
|
-
var _hoisted_1$
|
|
7070
|
+
var _hoisted_1$38 = [
|
|
6881
7071
|
"data-single",
|
|
6882
7072
|
"data-panning",
|
|
6883
7073
|
"data-dragging"
|
|
6884
7074
|
];
|
|
6885
|
-
var _hoisted_2$
|
|
7075
|
+
var _hoisted_2$27 = ["data-obscured"];
|
|
6886
7076
|
var _hoisted_3$17 = {
|
|
6887
7077
|
key: 12,
|
|
6888
7078
|
class: "htw:absolute htw:inset-0 htw:grid htw:place-items-center htw:text-muted htw:pointer-events-none"
|
|
@@ -6893,6 +7083,7 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
6893
7083
|
props: {
|
|
6894
7084
|
previewBase: {},
|
|
6895
7085
|
frameBudget: {},
|
|
7086
|
+
framePadding: {},
|
|
6896
7087
|
arrange: { default: "grid" },
|
|
6897
7088
|
baseArrange: { default: "grid" },
|
|
6898
7089
|
arrangementOverride: {
|
|
@@ -6933,13 +7124,16 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
6933
7124
|
const diagnostics = computed(() => catalog.value.diagnostics.filter((error) => error.code === "COLLECTION_FAILED" && (error.storyId === (currentStory.value?.id ?? cachedStory.value?.id) || error.relativePath === (currentStory.value?.relativePath ?? cachedStory.value?.relativePath))));
|
|
6934
7125
|
const story = computed(() => currentStory.value ?? (diagnostics.value.length ? cachedStory.value : void 0));
|
|
6935
7126
|
const settings = useUiSettingsStore();
|
|
7127
|
+
const renderedArrange = computed(() => props.arrange);
|
|
7128
|
+
const views = useStoryCanvasViews();
|
|
6936
7129
|
const canvas = createCanvasStore({
|
|
6937
7130
|
singleViewport: settings?.singleViewport,
|
|
6938
|
-
|
|
7131
|
+
autoFitPreference: views.autoFitPreference,
|
|
7132
|
+
storage: getCanvasStorage(typeof window === "undefined" ? void 0 : window),
|
|
7133
|
+
frameSizeFromCode: () => renderedArrange.value !== "single" && isBuiltinCanvasArrangement(renderedArrange.value) ? storyFrameSize(views, story.value) : void 0
|
|
6939
7134
|
});
|
|
6940
7135
|
const registry = createCanvasFrames(canvas);
|
|
6941
7136
|
const frameState = createCanvasFrameState(session);
|
|
6942
|
-
const renderedArrange = computed(() => props.arrange);
|
|
6943
7137
|
const activeView = useCanvasViewDescriptor(() => renderedArrange.value);
|
|
6944
7138
|
/** Failure belongs to the hidden runtime; usable axes still take precedence in Matrix. */
|
|
6945
7139
|
const matrixDiscoveryFailed = ref(false);
|
|
@@ -6952,14 +7146,28 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
6952
7146
|
hasArrangementOverride: () => props.arrangementOverride,
|
|
6953
7147
|
getSyncZoom: () => settings?.state.syncZoom ?? false,
|
|
6954
7148
|
canvas,
|
|
6955
|
-
views
|
|
7149
|
+
views
|
|
7150
|
+
});
|
|
7151
|
+
const { size, frameContentSize, viewportContentSize } = useCanvasVariantSize(canvas);
|
|
7152
|
+
/** Story gutter around each frame, else the project one; unusable values leave none. */
|
|
7153
|
+
const framePadding = computed(() => {
|
|
7154
|
+
const value = story.value?.layout?.padding ?? props.framePadding;
|
|
7155
|
+
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : 0;
|
|
6956
7156
|
});
|
|
6957
|
-
|
|
7157
|
+
/** Frame chrome includes the gutter on both sides of the variant. */
|
|
7158
|
+
function paddedFrameSize(variantId) {
|
|
7159
|
+
const content = frameContentSize(variantId);
|
|
7160
|
+
return {
|
|
7161
|
+
width: content.width + framePadding.value * 2,
|
|
7162
|
+
height: content.height + framePadding.value * 2
|
|
7163
|
+
};
|
|
7164
|
+
}
|
|
6958
7165
|
const { area: singleArea, size: singleSize, measure: measureSingle } = useSingleVariantGeometry(canvas, {
|
|
6959
7166
|
settings: () => snapshot.value.settings,
|
|
6960
7167
|
inspectorWidth: () => props.inspectorWidth,
|
|
6961
7168
|
hidden: () => props.uiHidden,
|
|
6962
|
-
contentSize: () => canvas.autoFitContent ?
|
|
7169
|
+
contentSize: () => canvas.autoFitContent ? viewportContentSize(selectedVariantId.value) : void 0,
|
|
7170
|
+
padding: () => framePadding.value
|
|
6963
7171
|
});
|
|
6964
7172
|
/** Reuse arrangement geometry for rendering and target-zoom selection fitting; custom views lay out their own leases. */
|
|
6965
7173
|
function layoutFrames(zoom = canvas.effectiveZoom) {
|
|
@@ -6968,7 +7176,7 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
6968
7176
|
const variantId = selectedVariantId.value ?? (diagnostics.value.length ? cachedVariantId.value : null);
|
|
6969
7177
|
return selectedSingleFrame(story.value, variantId, singleSize.value);
|
|
6970
7178
|
}
|
|
6971
|
-
return story.value ? layoutCanvasFrames(story.value.id, story.value.variants.map((variant) => variant.id),
|
|
7179
|
+
return story.value ? layoutCanvasFrames(story.value.id, story.value.variants.map((variant) => variant.id), paddedFrameSize, renderedArrange.value === "list" ? "list" : "grid", 3, zoom) : [];
|
|
6972
7180
|
}
|
|
6973
7181
|
/** Resolve selection-fit geometry by stable target after visible-frame filtering. */
|
|
6974
7182
|
function fitBoundsForFrame(frame, zoom) {
|
|
@@ -7209,7 +7417,7 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
7209
7417
|
"story",
|
|
7210
7418
|
"can-open-in-editor",
|
|
7211
7419
|
"onOpenInEditor"
|
|
7212
|
-
])])], 8, _hoisted_2$
|
|
7420
|
+
])])], 8, _hoisted_2$27)) : createCommentVNode("", true),
|
|
7213
7421
|
renderedArrange.value === "single" && story.value ? (openBlock(), createBlock(CanvasSingleVariant_default, {
|
|
7214
7422
|
key: 2,
|
|
7215
7423
|
ref_key: "singleVariant",
|
|
@@ -7220,6 +7428,7 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
7220
7428
|
"preview-base": __props.previewBase,
|
|
7221
7429
|
stale: diagnostics.value.length > 0,
|
|
7222
7430
|
resizable: singleResizable.value,
|
|
7431
|
+
padding: framePadding.value,
|
|
7223
7432
|
onResize: resizeSingleViewport,
|
|
7224
7433
|
onContextmenu: _cache[0] || (_cache[0] = (event, target) => emit("contextmenu", event, target))
|
|
7225
7434
|
}, null, 8, [
|
|
@@ -7228,7 +7437,8 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
7228
7437
|
"variant",
|
|
7229
7438
|
"preview-base",
|
|
7230
7439
|
"stale",
|
|
7231
|
-
"resizable"
|
|
7440
|
+
"resizable",
|
|
7441
|
+
"padding"
|
|
7232
7442
|
])) : unref(activeView).id.value ? (openBlock(), createBlock(PluginCanvasView_default, {
|
|
7233
7443
|
key: unref(activeView).id.value,
|
|
7234
7444
|
view: unref(activeView).view.value,
|
|
@@ -7245,6 +7455,7 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
7245
7455
|
canvas: unref(canvas),
|
|
7246
7456
|
frames: unref(registry),
|
|
7247
7457
|
size: unref(size),
|
|
7458
|
+
padding: framePadding.value,
|
|
7248
7459
|
contentInsets: unref(contentInsets),
|
|
7249
7460
|
previewBase: __props.previewBase,
|
|
7250
7461
|
discoveryFailed: matrixDiscoveryFailed.value
|
|
@@ -7259,10 +7470,13 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
7259
7470
|
selected: frame.id === selectedFrame.value?.id,
|
|
7260
7471
|
live: unref(live).has(frame.id),
|
|
7261
7472
|
"preview-base": __props.previewBase,
|
|
7262
|
-
|
|
7263
|
-
|
|
7473
|
+
padding: framePadding.value,
|
|
7474
|
+
"fixed-size": !!unref(canvas).frameSizeFromCode,
|
|
7264
7475
|
stale: diagnostics.value.length > 0
|
|
7265
|
-
},
|
|
7476
|
+
}, {
|
|
7477
|
+
...unref(frameContentSize)(frame.variantId),
|
|
7478
|
+
...unref(getSearchFrameState)(frame.id, !!__props.searchActive, __props.highlightedTargets)
|
|
7479
|
+
}, {
|
|
7266
7480
|
onSelect: selectVariant,
|
|
7267
7481
|
onContextmenu: _cache[1] || (_cache[1] = (event, target) => emit("contextmenu", event, target))
|
|
7268
7482
|
}), null, 16, [
|
|
@@ -7272,8 +7486,8 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
7272
7486
|
"selected",
|
|
7273
7487
|
"live",
|
|
7274
7488
|
"preview-base",
|
|
7275
|
-
"
|
|
7276
|
-
"
|
|
7489
|
+
"padding",
|
|
7490
|
+
"fixed-size",
|
|
7277
7491
|
"stale"
|
|
7278
7492
|
])]),
|
|
7279
7493
|
_: 1
|
|
@@ -7323,7 +7537,7 @@ var CanvasViewport_default = /* @__PURE__ */ defineComponent({
|
|
|
7323
7537
|
icon: "document",
|
|
7324
7538
|
title: "Select a story"
|
|
7325
7539
|
})])) : createCommentVNode("", true)
|
|
7326
|
-
], 44, _hoisted_1$
|
|
7540
|
+
], 44, _hoisted_1$38);
|
|
7327
7541
|
};
|
|
7328
7542
|
}
|
|
7329
7543
|
});
|
|
@@ -7889,8 +8103,8 @@ var MeasureBoxModel_default = /* @__PURE__ */ defineComponent({
|
|
|
7889
8103
|
}
|
|
7890
8104
|
});
|
|
7891
8105
|
// src/app/components/canvas/MeasureGuides.vue?vue&type=script&setup=true&lang.ts
|
|
7892
|
-
var _hoisted_1$
|
|
7893
|
-
var _hoisted_2$
|
|
8106
|
+
var _hoisted_1$37 = ["data-equal"];
|
|
8107
|
+
var _hoisted_2$26 = ["data-equal"];
|
|
7894
8108
|
// src/app/components/canvas/MeasureGuides.vue
|
|
7895
8109
|
var MeasureGuides_default = /* @__PURE__ */ defineComponent({
|
|
7896
8110
|
__name: "MeasureGuides",
|
|
@@ -7916,7 +8130,7 @@ var MeasureGuides_default = /* @__PURE__ */ defineComponent({
|
|
|
7916
8130
|
class: "htw:fixed htw:z-[26] htw:pointer-events-none htw:bg-measure htw:data-[equal]:bg-measure-gap",
|
|
7917
8131
|
"data-equal": segment.equal || void 0,
|
|
7918
8132
|
style: normalizeStyle(lineStyle(segment))
|
|
7919
|
-
}, null, 12, _hoisted_1$
|
|
8133
|
+
}, null, 12, _hoisted_1$37);
|
|
7920
8134
|
}), 128)), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.labels, (label) => {
|
|
7921
8135
|
return openBlock(), createElementBlock("span", {
|
|
7922
8136
|
key: label.id,
|
|
@@ -7926,17 +8140,17 @@ var MeasureGuides_default = /* @__PURE__ */ defineComponent({
|
|
|
7926
8140
|
left: `${label.x}px`,
|
|
7927
8141
|
top: `${label.y}px`
|
|
7928
8142
|
})
|
|
7929
|
-
}, toDisplayString(label.text), 13, _hoisted_2$
|
|
8143
|
+
}, toDisplayString(label.text), 13, _hoisted_2$26);
|
|
7930
8144
|
}), 128))], 64);
|
|
7931
8145
|
};
|
|
7932
8146
|
}
|
|
7933
8147
|
});
|
|
7934
8148
|
// src/app/components/canvas/MeasureOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
7935
|
-
var _hoisted_1$
|
|
8149
|
+
var _hoisted_1$36 = {
|
|
7936
8150
|
key: 0,
|
|
7937
8151
|
class: "htw:absolute htw:inset-0 htw:z-[3] htw:pointer-events-none"
|
|
7938
8152
|
};
|
|
7939
|
-
var _hoisted_2$
|
|
8153
|
+
var _hoisted_2$25 = ["aria-label", "aria-pressed"];
|
|
7940
8154
|
var _hoisted_3$16 = ["data-locked", "data-target"];
|
|
7941
8155
|
// src/app/components/canvas/MeasureOverlay.vue
|
|
7942
8156
|
var MeasureOverlay_default = /* @__PURE__ */ defineComponent({
|
|
@@ -8176,7 +8390,7 @@ var MeasureOverlay_default = /* @__PURE__ */ defineComponent({
|
|
|
8176
8390
|
window.removeEventListener("scroll", resize, true);
|
|
8177
8391
|
});
|
|
8178
8392
|
return (_ctx, _cache) => {
|
|
8179
|
-
return enabled.value && bounds.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8393
|
+
return enabled.value && bounds.value ? (openBlock(), createElementBlock("div", _hoisted_1$36, [
|
|
8180
8394
|
createElementVNode("div", {
|
|
8181
8395
|
class: "histoire-measure-hit htw:fixed htw:z-[25] htw:cursor-crosshair htw:pointer-events-auto htw:focus-visible:outline-2 htw:focus-visible:outline-solid htw:focus-visible:outline-measure htw:focus-visible:-outline-offset-2",
|
|
8182
8396
|
role: "button",
|
|
@@ -8196,7 +8410,7 @@ var MeasureOverlay_default = /* @__PURE__ */ defineComponent({
|
|
|
8196
8410
|
onPointerleave: leave,
|
|
8197
8411
|
onClick: withModifiers(click, ["prevent", "stop"]),
|
|
8198
8412
|
onKeydown: keydown
|
|
8199
|
-
}, null, 44, _hoisted_2$
|
|
8413
|
+
}, null, 44, _hoisted_2$25),
|
|
8200
8414
|
unref(result) && !unref(target) && projection.value ? (openBlock(), createBlock(MeasureBoxModel_default, {
|
|
8201
8415
|
key: 0,
|
|
8202
8416
|
box: project(unref(result).rect),
|
|
@@ -8463,8 +8677,8 @@ function useOverflowLayout(root, trigger, scope, opened, close) {
|
|
|
8463
8677
|
};
|
|
8464
8678
|
}
|
|
8465
8679
|
// src/app/components/base/overflow/BaseOverflowToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
8466
|
-
var _hoisted_1$
|
|
8467
|
-
var _hoisted_2$
|
|
8680
|
+
var _hoisted_1$35 = ["aria-label"];
|
|
8681
|
+
var _hoisted_2$24 = { class: "overflow-toolbar-items htw:flex htw:items-center htw:gap-[inherit] htw:min-w-0" };
|
|
8468
8682
|
var _hoisted_3$15 = ["hidden"];
|
|
8469
8683
|
// src/app/components/base/overflow/BaseOverflowToolbar.vue
|
|
8470
8684
|
var BaseOverflowToolbar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -8570,7 +8784,7 @@ var BaseOverflowToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
8570
8784
|
role: "toolbar",
|
|
8571
8785
|
"aria-label": __props.label
|
|
8572
8786
|
}, [
|
|
8573
|
-
createElementVNode("div", _hoisted_2$
|
|
8787
|
+
createElementVNode("div", _hoisted_2$24, [renderSlot(_ctx.$slots, "default")]),
|
|
8574
8788
|
createVNode(ToolbarButton_default, {
|
|
8575
8789
|
ref: setTrigger,
|
|
8576
8790
|
class: "htw:flex-none htw:[&[hidden]]:hidden",
|
|
@@ -8598,7 +8812,10 @@ var BaseOverflowToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
8598
8812
|
persistent: "",
|
|
8599
8813
|
"onUpdate:open": close
|
|
8600
8814
|
}, {
|
|
8601
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
8815
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
8816
|
+
class: "htw:menu-rows",
|
|
8817
|
+
onKeydown: keyboard
|
|
8818
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item) => {
|
|
8602
8819
|
return openBlock(), createElementBlock("div", {
|
|
8603
8820
|
key: item.id,
|
|
8604
8821
|
ref_for: true,
|
|
@@ -8617,17 +8834,17 @@ var BaseOverflowToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
8617
8834
|
"bounds",
|
|
8618
8835
|
"focus-last"
|
|
8619
8836
|
])
|
|
8620
|
-
], 8, _hoisted_1$
|
|
8837
|
+
], 8, _hoisted_1$35);
|
|
8621
8838
|
};
|
|
8622
8839
|
}
|
|
8623
8840
|
});
|
|
8624
8841
|
// src/app/components/base/overflow/BaseOverflowToolbarItem.vue?vue&type=script&setup=true&lang.ts
|
|
8625
|
-
var _hoisted_1$
|
|
8842
|
+
var _hoisted_1$34 = [
|
|
8626
8843
|
"data-toolbar-presentation",
|
|
8627
8844
|
"data-separator",
|
|
8628
8845
|
"hidden"
|
|
8629
8846
|
];
|
|
8630
|
-
var _hoisted_2$
|
|
8847
|
+
var _hoisted_2$23 = { class: "htw:flex htw:items-center htw:gap-[3px] htw:w-max htw:group-data-[toolbar-presentation=menu]/overflow-item:flex-col htw:group-data-[toolbar-presentation=menu]/overflow-item:items-stretch htw:group-data-[toolbar-presentation=menu]/overflow-item:w-full htw:group-data-[toolbar-presentation=menu]/overflow-item:gap-px" };
|
|
8631
8848
|
// src/app/components/base/overflow/BaseOverflowToolbarItem.vue
|
|
8632
8849
|
var BaseOverflowToolbarItem_default = /* @__PURE__ */ defineComponent({
|
|
8633
8850
|
__name: "BaseOverflowToolbarItem",
|
|
@@ -8675,12 +8892,12 @@ var BaseOverflowToolbarItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8675
8892
|
"data-toolbar-presentation": overflow.value ? "menu" : "inline",
|
|
8676
8893
|
"data-separator": separator.value,
|
|
8677
8894
|
hidden: empty.value
|
|
8678
|
-
}, [createElementVNode("div", _hoisted_2$
|
|
8895
|
+
}, [createElementVNode("div", _hoisted_2$23, [renderSlot(_ctx.$slots, "default")])], 8, _hoisted_1$34)], 8, ["disabled", "to"]))], 64);
|
|
8679
8896
|
};
|
|
8680
8897
|
}
|
|
8681
8898
|
});
|
|
8682
8899
|
// src/app/components/canvas/toolbar/ArrangeSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
8683
|
-
var _hoisted_1$
|
|
8900
|
+
var _hoisted_1$33 = ["data-presentation"];
|
|
8684
8901
|
// src/app/components/canvas/toolbar/ArrangeSwitch.vue
|
|
8685
8902
|
var ArrangeSwitch_default = /* @__PURE__ */ defineComponent({
|
|
8686
8903
|
__name: "ArrangeSwitch",
|
|
@@ -8693,7 +8910,7 @@ var ArrangeSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
8693
8910
|
return (_ctx, _cache) => {
|
|
8694
8911
|
return openBlock(), createElementBlock("div", {
|
|
8695
8912
|
"data-presentation": unref(presentation),
|
|
8696
|
-
class: "histoire-button-group-options htw:data-[presentation=menu]:flex-col htw:data-[presentation=menu]:items-stretch htw:data-[presentation=menu]:gap-
|
|
8913
|
+
class: "histoire-button-group-options htw:data-[presentation=menu]:flex-col htw:data-[presentation=menu]:items-stretch htw:data-[presentation=menu]:gap-px htw:data-[presentation=menu]:p-0 htw:data-[presentation=menu]:bg-transparent",
|
|
8697
8914
|
role: "group",
|
|
8698
8915
|
"aria-label": "Arrange frames"
|
|
8699
8916
|
}, [
|
|
@@ -8740,13 +8957,13 @@ var ArrangeSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
8740
8957
|
"onClick"
|
|
8741
8958
|
]);
|
|
8742
8959
|
}), 128))
|
|
8743
|
-
], 8, _hoisted_1$
|
|
8960
|
+
], 8, _hoisted_1$33);
|
|
8744
8961
|
};
|
|
8745
8962
|
}
|
|
8746
8963
|
});
|
|
8747
8964
|
// src/app/components/canvas/toolbar/BackgroundPicker.vue?vue&type=script&setup=true&lang.ts
|
|
8748
|
-
var _hoisted_1$
|
|
8749
|
-
var _hoisted_2$
|
|
8965
|
+
var _hoisted_1$32 = ["data-presentation"];
|
|
8966
|
+
var _hoisted_2$22 = { "data-test-id": "background-popper" };
|
|
8750
8967
|
var _hoisted_3$14 = { class: "htw:grid htw:grid-cols-6 htw:gap-1.5 htw:p-[0_8px_7px]" };
|
|
8751
8968
|
var _hoisted_4$13 = ["for"];
|
|
8752
8969
|
// src/app/components/canvas/toolbar/BackgroundPicker.vue
|
|
@@ -8807,8 +9024,8 @@ var BackgroundPicker_default = /* @__PURE__ */ defineComponent({
|
|
|
8807
9024
|
color: activePreset.value,
|
|
8808
9025
|
label: ""
|
|
8809
9026
|
}))
|
|
8810
|
-
}, null, 12, _hoisted_1$
|
|
8811
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
9027
|
+
}, null, 12, _hoisted_1$32)]),
|
|
9028
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$22, [
|
|
8812
9029
|
createVNode(PopoverTitle_default, null, {
|
|
8813
9030
|
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode(" Background ", -1)])]),
|
|
8814
9031
|
_: 1
|
|
@@ -8996,8 +9213,8 @@ var PluginToolbarItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8996
9213
|
}
|
|
8997
9214
|
});
|
|
8998
9215
|
// src/app/components/canvas/toolbar/SearchMatchStepper.vue?vue&type=script&setup=true&lang.ts
|
|
8999
|
-
var _hoisted_1$
|
|
9000
|
-
var _hoisted_2$
|
|
9216
|
+
var _hoisted_1$31 = ["data-presentation"];
|
|
9217
|
+
var _hoisted_2$21 = {
|
|
9001
9218
|
class: "htw:[line-height:normal] htw:min-w-9 htw:text-muted htw:font-mono htw:text-[11px] htw:text-center htw:whitespace-nowrap htw:group-data-[presentation=menu]/search-stepper:py-1 htw:group-data-[presentation=menu]/search-stepper:px-2 htw:group-data-[presentation=menu]/search-stepper:text-start",
|
|
9002
9219
|
role: "status",
|
|
9003
9220
|
"aria-label": "Search matches",
|
|
@@ -9018,20 +9235,20 @@ var SearchMatchStepper_default = /* @__PURE__ */ defineComponent({
|
|
|
9018
9235
|
return __props.count > 0 ? (openBlock(), createElementBlock("span", {
|
|
9019
9236
|
key: 0,
|
|
9020
9237
|
"data-presentation": unref(presentation),
|
|
9021
|
-
class: "htw:flex htw:items-center htw:flex-none htw:gap-0.5 htw:group/search-stepper htw:data-[presentation=menu]:flex-col htw:data-[presentation=menu]:items-stretch htw:data-[presentation=menu]:gap-
|
|
9238
|
+
class: "htw:flex htw:items-center htw:flex-none htw:gap-0.5 htw:group/search-stepper htw:data-[presentation=menu]:flex-col htw:data-[presentation=menu]:items-stretch htw:data-[presentation=menu]:gap-px htw:data-[presentation=menu]:p-0 htw:data-[presentation=menu]:bg-transparent"
|
|
9022
9239
|
}, [
|
|
9023
9240
|
createVNode(ToolbarButton_default, {
|
|
9024
9241
|
label: "Previous search match",
|
|
9025
9242
|
icon: "chevron-up",
|
|
9026
9243
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("previous"))
|
|
9027
9244
|
}),
|
|
9028
|
-
createElementVNode("span", _hoisted_2$
|
|
9245
|
+
createElementVNode("span", _hoisted_2$21, toDisplayString(__props.position) + " / " + toDisplayString(__props.count), 1),
|
|
9029
9246
|
createVNode(ToolbarButton_default, {
|
|
9030
9247
|
label: "Next search match",
|
|
9031
9248
|
icon: "chevron-down",
|
|
9032
9249
|
onClick: _cache[1] || (_cache[1] = ($event) => emit("next"))
|
|
9033
9250
|
})
|
|
9034
|
-
], 8, _hoisted_1$
|
|
9251
|
+
], 8, _hoisted_1$31)) : createCommentVNode("", true);
|
|
9035
9252
|
};
|
|
9036
9253
|
}
|
|
9037
9254
|
});
|
|
@@ -9052,7 +9269,7 @@ function registerCanvasShortcuts(shortcuts, canvas, frames) {
|
|
|
9052
9269
|
return () => dispose.forEach((remove) => remove());
|
|
9053
9270
|
}
|
|
9054
9271
|
// src/app/components/canvas/toolbar/ToolSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
9055
|
-
var _hoisted_1$
|
|
9272
|
+
var _hoisted_1$30 = ["data-presentation", "data-leading"];
|
|
9056
9273
|
// src/app/components/canvas/toolbar/ToolSwitch.vue
|
|
9057
9274
|
var ToolSwitch_default = /* @__PURE__ */ defineComponent({
|
|
9058
9275
|
__name: "ToolSwitch",
|
|
@@ -9072,7 +9289,7 @@ var ToolSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
9072
9289
|
return openBlock(), createElementBlock("div", {
|
|
9073
9290
|
"data-presentation": unref(presentation),
|
|
9074
9291
|
"data-leading": __props.leading,
|
|
9075
|
-
class: "histoire-button-group-options htw:data-[presentation=menu]:flex-col htw:data-[presentation=menu]:items-stretch htw:data-[presentation=menu]:gap-
|
|
9292
|
+
class: "histoire-button-group-options htw:data-[presentation=menu]:flex-col htw:data-[presentation=menu]:items-stretch htw:data-[presentation=menu]:gap-px htw:data-[presentation=menu]:p-0 htw:data-[presentation=menu]:bg-transparent htw:data-[presentation=inline]:data-[leading=true]:-ms-[3px]",
|
|
9076
9293
|
role: "group",
|
|
9077
9294
|
"aria-label": "Canvas tool"
|
|
9078
9295
|
}, [
|
|
@@ -9132,18 +9349,18 @@ var ToolSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
9132
9349
|
]);
|
|
9133
9350
|
}), 128)),
|
|
9134
9351
|
renderSlot(_ctx.$slots, "default")
|
|
9135
|
-
], 8, _hoisted_1$
|
|
9352
|
+
], 8, _hoisted_1$30);
|
|
9136
9353
|
};
|
|
9137
9354
|
}
|
|
9138
9355
|
});
|
|
9139
9356
|
// src/app/components/base/popover/PopoverMeta.vue?vue&type=script&setup=true&lang.ts
|
|
9140
|
-
var _hoisted_1$
|
|
9357
|
+
var _hoisted_1$29 = { class: "htw:ms-auto htw:text-muted htw:font-mono htw:text-[11px]" };
|
|
9141
9358
|
// src/app/components/base/popover/PopoverMeta.vue
|
|
9142
9359
|
var PopoverMeta_default = /* @__PURE__ */ defineComponent({
|
|
9143
9360
|
__name: "PopoverMeta",
|
|
9144
9361
|
setup(__props) {
|
|
9145
9362
|
return (_ctx, _cache) => {
|
|
9146
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
9363
|
+
return openBlock(), createElementBlock("span", _hoisted_1$29, [renderSlot(_ctx.$slots, "default")]);
|
|
9147
9364
|
};
|
|
9148
9365
|
}
|
|
9149
9366
|
});
|
|
@@ -9164,7 +9381,8 @@ var PopoverRow_default = /* @__PURE__ */ defineComponent({
|
|
|
9164
9381
|
}
|
|
9165
9382
|
});
|
|
9166
9383
|
// src/app/components/canvas/toolbar/ViewportMenu.vue?vue&type=script&setup=true&lang.ts
|
|
9167
|
-
var _hoisted_1$
|
|
9384
|
+
var _hoisted_1$28 = { class: "htw:text-text htw:font-mono htw:text-[11px]" };
|
|
9385
|
+
var _hoisted_2$20 = { class: "htw:menu-rows" };
|
|
9168
9386
|
// src/app/components/canvas/toolbar/ViewportMenu.vue
|
|
9169
9387
|
var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
9170
9388
|
__name: "ViewportMenu",
|
|
@@ -9174,9 +9392,18 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9174
9392
|
const emit = __emit;
|
|
9175
9393
|
const { snapshot, update } = useCanvasPreviewSettings();
|
|
9176
9394
|
const canvas = useCanvasStore();
|
|
9395
|
+
const views = useStoryCanvasViews();
|
|
9177
9396
|
const presetsOwner = usePresetConfigStore();
|
|
9178
9397
|
const presets = computed(() => presetsOwner?.responsivePresets.value ?? histoireConfig.responsivePresets ?? []);
|
|
9179
9398
|
const dimensions = useCanvasViewportDimensions();
|
|
9399
|
+
const declared = useDeclaredStoryFrame();
|
|
9400
|
+
const fromCode = computed(() => !!canvas.frameSizeFromCode);
|
|
9401
|
+
/** The story's own size replaces the toolbar viewport, so the trigger says where it comes from. */
|
|
9402
|
+
const triggerLabel = computed(() => {
|
|
9403
|
+
if (fromCode.value) return "From code";
|
|
9404
|
+
if (canvas.autoFitContent) return "Auto fit";
|
|
9405
|
+
return String(dimensions.value.width);
|
|
9406
|
+
});
|
|
9180
9407
|
const customWidth = ref("");
|
|
9181
9408
|
const customHeight = ref("");
|
|
9182
9409
|
const error = ref("");
|
|
@@ -9184,9 +9411,19 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9184
9411
|
customWidth.value = String(size.width);
|
|
9185
9412
|
customHeight.value = size.height === null ? "" : String(size.height);
|
|
9186
9413
|
}, { immediate: true });
|
|
9414
|
+
/** Size the selected story from its code until the page reloads. */
|
|
9415
|
+
function selectCode() {
|
|
9416
|
+
if (declared.value) views.setStorySizeFromCode(declared.value.storyId, true);
|
|
9417
|
+
emit("update:open", null);
|
|
9418
|
+
}
|
|
9419
|
+
/** Any other option sizes the selected story from the toolbar viewport instead of its code. */
|
|
9420
|
+
function leaveCode() {
|
|
9421
|
+
if (declared.value) views.setStorySizeFromCode(declared.value.storyId, false);
|
|
9422
|
+
}
|
|
9187
9423
|
/** Named preset sizes retain logical orientation and use existing settings persistence. */
|
|
9188
9424
|
function preset(width, height) {
|
|
9189
9425
|
error.value = "";
|
|
9426
|
+
leaveCode();
|
|
9190
9427
|
canvas.setAutoFitContent(false);
|
|
9191
9428
|
if (canvas.arrangement === "single") canvas.setSingleViewportMode("fixed");
|
|
9192
9429
|
update({
|
|
@@ -9201,6 +9438,7 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9201
9438
|
const patch = parseViewportSize(customWidth.value, customHeight.value);
|
|
9202
9439
|
error.value = patch ? "" : "Use whole pixels from 1 to 16384.";
|
|
9203
9440
|
if (patch) {
|
|
9441
|
+
leaveCode();
|
|
9204
9442
|
canvas.setAutoFitContent(false);
|
|
9205
9443
|
if (canvas.arrangement === "single") canvas.setSingleViewportMode("fixed");
|
|
9206
9444
|
update(patch);
|
|
@@ -9209,6 +9447,7 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9209
9447
|
/** Responsive option fills available canvas width using bounded current root dimensions. */
|
|
9210
9448
|
function responsive() {
|
|
9211
9449
|
error.value = "";
|
|
9450
|
+
leaveCode();
|
|
9212
9451
|
canvas.setAutoFitContent(false);
|
|
9213
9452
|
if (canvas.arrangement === "single") canvas.setSingleViewportMode("responsive");
|
|
9214
9453
|
else update({
|
|
@@ -9221,6 +9460,7 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9221
9460
|
/** Content mode retains stored manual viewport and independent camera zoom. */
|
|
9222
9461
|
function autoFit() {
|
|
9223
9462
|
error.value = "";
|
|
9463
|
+
leaveCode();
|
|
9224
9464
|
canvas.setAutoFitContent(true);
|
|
9225
9465
|
emit("update:open", null);
|
|
9226
9466
|
}
|
|
@@ -9229,11 +9469,11 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9229
9469
|
id: "viewport",
|
|
9230
9470
|
open: __props.open,
|
|
9231
9471
|
label: "Viewport",
|
|
9232
|
-
icon: "laptop",
|
|
9472
|
+
icon: fromCode.value ? "code" : "laptop",
|
|
9233
9473
|
width: 280,
|
|
9234
9474
|
"onUpdate:open": _cache[3] || (_cache[3] = ($event) => emit("update:open", $event))
|
|
9235
9475
|
}, {
|
|
9236
|
-
trigger: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
9476
|
+
trigger: withCtx(() => [createElementVNode("span", _hoisted_1$28, toDisplayString(triggerLabel.value), 1), createVNode(unref(BuiltinIcon), {
|
|
9237
9477
|
icon: "chevron-down",
|
|
9238
9478
|
size: 16
|
|
9239
9479
|
})]),
|
|
@@ -9242,59 +9482,79 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9242
9482
|
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" Viewport ", -1)])]),
|
|
9243
9483
|
_: 1
|
|
9244
9484
|
}),
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
createVNode(unref(BuiltinIcon), {
|
|
9251
|
-
icon: "arrows-horizontal",
|
|
9252
|
-
size: 16
|
|
9253
|
-
}),
|
|
9254
|
-
createTextVNode(toDisplayString(unref(canvas).arrangement === "single" ? "Fill viewport" : "Responsive"), 1),
|
|
9255
|
-
createVNode(PopoverMeta_default, null, {
|
|
9256
|
-
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("fill", -1)])]),
|
|
9257
|
-
_: 1
|
|
9258
|
-
})
|
|
9259
|
-
]),
|
|
9260
|
-
_: 1
|
|
9261
|
-
}, 8, ["aria-pressed"]),
|
|
9262
|
-
createVNode(PopoverRow_default, {
|
|
9263
|
-
"aria-pressed": unref(canvas).autoFitContent,
|
|
9264
|
-
onClick: autoFit
|
|
9265
|
-
}, {
|
|
9266
|
-
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
9267
|
-
icon: "ruler",
|
|
9268
|
-
size: 16
|
|
9269
|
-
}), _cache[6] || (_cache[6] = createTextVNode("Auto fit content ", -1))]),
|
|
9270
|
-
_: 1
|
|
9271
|
-
}, 8, ["aria-pressed"]),
|
|
9272
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(presets.value, (option, index) => {
|
|
9273
|
-
return openBlock(), createBlock(PopoverRow_default, {
|
|
9274
|
-
key: index,
|
|
9275
|
-
"aria-pressed": !unref(canvas).autoFitContent && (unref(canvas).arrangement !== "single" || unref(canvas).singleViewport.mode === "fixed") && unref(snapshot).settings.responsiveWidth === option.width && unref(snapshot).settings.responsiveHeight === (option.height ?? null),
|
|
9276
|
-
onClick: ($event) => preset(option.width, option.height)
|
|
9485
|
+
createElementVNode("div", _hoisted_2$20, [
|
|
9486
|
+
unref(declared) ? (openBlock(), createBlock(PopoverRow_default, {
|
|
9487
|
+
key: 0,
|
|
9488
|
+
"aria-pressed": !!fromCode.value,
|
|
9489
|
+
onClick: selectCode
|
|
9277
9490
|
}, {
|
|
9278
9491
|
default: withCtx(() => [
|
|
9279
9492
|
createVNode(unref(BuiltinIcon), {
|
|
9280
|
-
icon:
|
|
9493
|
+
icon: "code",
|
|
9281
9494
|
size: 16
|
|
9282
|
-
}
|
|
9283
|
-
|
|
9495
|
+
}),
|
|
9496
|
+
_cache[5] || (_cache[5] = createTextVNode("From code", -1)),
|
|
9284
9497
|
createVNode(PopoverMeta_default, null, {
|
|
9285
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
9286
|
-
_:
|
|
9287
|
-
}
|
|
9498
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(declared).width ?? "Auto") + " × " + toDisplayString(unref(declared).height ?? "Auto"), 1)]),
|
|
9499
|
+
_: 1
|
|
9500
|
+
})
|
|
9288
9501
|
]),
|
|
9289
|
-
_:
|
|
9290
|
-
},
|
|
9291
|
-
|
|
9502
|
+
_: 1
|
|
9503
|
+
}, 8, ["aria-pressed"])) : createCommentVNode("", true),
|
|
9504
|
+
createVNode(PopoverRow_default, {
|
|
9505
|
+
"aria-pressed": !fromCode.value && !unref(canvas).autoFitContent && unref(canvas).arrangement === "single" && unref(canvas).singleViewport.mode === "responsive",
|
|
9506
|
+
onClick: responsive
|
|
9507
|
+
}, {
|
|
9508
|
+
default: withCtx(() => [
|
|
9509
|
+
createVNode(unref(BuiltinIcon), {
|
|
9510
|
+
icon: "arrows-horizontal",
|
|
9511
|
+
size: 16
|
|
9512
|
+
}),
|
|
9513
|
+
createTextVNode(toDisplayString(unref(canvas).arrangement === "single" ? "Fill viewport" : "Responsive"), 1),
|
|
9514
|
+
createVNode(PopoverMeta_default, null, {
|
|
9515
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("fill", -1)])]),
|
|
9516
|
+
_: 1
|
|
9517
|
+
})
|
|
9518
|
+
]),
|
|
9519
|
+
_: 1
|
|
9520
|
+
}, 8, ["aria-pressed"]),
|
|
9521
|
+
createVNode(PopoverRow_default, {
|
|
9522
|
+
"aria-pressed": !fromCode.value && unref(canvas).autoFitContent,
|
|
9523
|
+
onClick: autoFit
|
|
9524
|
+
}, {
|
|
9525
|
+
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
9526
|
+
icon: "ruler",
|
|
9527
|
+
size: 16
|
|
9528
|
+
}), _cache[7] || (_cache[7] = createTextVNode("Auto fit content ", -1))]),
|
|
9529
|
+
_: 1
|
|
9530
|
+
}, 8, ["aria-pressed"]),
|
|
9531
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(presets.value, (option, index) => {
|
|
9532
|
+
return openBlock(), createBlock(PopoverRow_default, {
|
|
9533
|
+
key: index,
|
|
9534
|
+
"aria-pressed": !fromCode.value && !unref(canvas).autoFitContent && (unref(canvas).arrangement !== "single" || unref(canvas).singleViewport.mode === "fixed") && unref(snapshot).settings.responsiveWidth === option.width && unref(snapshot).settings.responsiveHeight === (option.height ?? null),
|
|
9535
|
+
onClick: ($event) => preset(option.width, option.height)
|
|
9536
|
+
}, {
|
|
9537
|
+
default: withCtx(() => [
|
|
9538
|
+
createVNode(unref(BuiltinIcon), {
|
|
9539
|
+
icon: option.width < 500 ? "mobile" : option.width < 900 ? "tablet" : "screen",
|
|
9540
|
+
size: 16
|
|
9541
|
+
}, null, 8, ["icon"]),
|
|
9542
|
+
createElementVNode("span", null, toDisplayString(option.label), 1),
|
|
9543
|
+
createVNode(PopoverMeta_default, null, {
|
|
9544
|
+
default: withCtx(() => [createTextVNode(toDisplayString(option.width), 1), option.height ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(" × " + toDisplayString(option.height), 1)], 64)) : createCommentVNode("", true)]),
|
|
9545
|
+
_: 2
|
|
9546
|
+
}, 1024)
|
|
9547
|
+
]),
|
|
9548
|
+
_: 2
|
|
9549
|
+
}, 1032, ["aria-pressed", "onClick"]);
|
|
9550
|
+
}), 128))
|
|
9551
|
+
]),
|
|
9292
9552
|
createVNode(PopoverDivider_default),
|
|
9293
9553
|
createElementVNode("form", {
|
|
9294
9554
|
class: "viewport-custom htw:flex htw:items-center htw:gap-1.5 htw:py-1.5 htw:px-2 htw:text-muted htw:text-[11px]",
|
|
9295
9555
|
onSubmit: withModifiers(custom, ["prevent"])
|
|
9296
9556
|
}, [
|
|
9297
|
-
_cache[
|
|
9557
|
+
_cache[9] || (_cache[9] = createElementVNode("span", { class: "htw:mr-auto" }, "Custom", -1)),
|
|
9298
9558
|
createVNode(unref(HstText), {
|
|
9299
9559
|
modelValue: customWidth.value,
|
|
9300
9560
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => customWidth.value = $event),
|
|
@@ -9304,7 +9564,7 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9304
9564
|
inputmode: "numeric",
|
|
9305
9565
|
onChange: custom
|
|
9306
9566
|
}, null, 8, ["modelValue"]),
|
|
9307
|
-
_cache[
|
|
9567
|
+
_cache[10] || (_cache[10] = createElementVNode("span", null, "×", -1)),
|
|
9308
9568
|
createVNode(unref(HstText), {
|
|
9309
9569
|
modelValue: customHeight.value,
|
|
9310
9570
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => customHeight.value = $event),
|
|
@@ -9320,7 +9580,7 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9320
9580
|
type: "submit",
|
|
9321
9581
|
class: "htw:absolute htw:w-px htw:h-px htw:overflow-hidden htw:[clip-path:inset(50%)]"
|
|
9322
9582
|
}, {
|
|
9323
|
-
default: withCtx(() => [..._cache[
|
|
9583
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [createTextVNode(" Apply custom viewport ", -1)])]),
|
|
9324
9584
|
_: 1
|
|
9325
9585
|
})
|
|
9326
9586
|
], 32),
|
|
@@ -9342,17 +9602,18 @@ var ViewportMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9342
9602
|
default: withCtx(() => [createVNode(unref(BuiltinIcon), {
|
|
9343
9603
|
icon: "settings",
|
|
9344
9604
|
size: 16
|
|
9345
|
-
}), _cache[
|
|
9605
|
+
}), _cache[11] || (_cache[11] = createTextVNode("Edit presets… ", -1))]),
|
|
9346
9606
|
_: 1
|
|
9347
9607
|
})
|
|
9348
9608
|
]),
|
|
9349
9609
|
_: 1
|
|
9350
|
-
}, 8, ["open"]);
|
|
9610
|
+
}, 8, ["open", "icon"]);
|
|
9351
9611
|
};
|
|
9352
9612
|
}
|
|
9353
9613
|
});
|
|
9354
9614
|
// src/app/components/canvas/toolbar/ZoomMenu.vue?vue&type=script&setup=true&lang.ts
|
|
9355
|
-
var _hoisted_1$
|
|
9615
|
+
var _hoisted_1$27 = { class: "htw:text-text htw:font-mono htw:text-[11px] htw:min-w-[29px]" };
|
|
9616
|
+
var _hoisted_2$19 = { class: "htw:menu-rows" };
|
|
9356
9617
|
// src/app/components/canvas/toolbar/ZoomMenu.vue
|
|
9357
9618
|
var ZoomMenu_default = /* @__PURE__ */ defineComponent({
|
|
9358
9619
|
__name: "ZoomMenu",
|
|
@@ -9385,8 +9646,8 @@ var ZoomMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9385
9646
|
width: 240,
|
|
9386
9647
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => emit("update:open", $event))
|
|
9387
9648
|
}, {
|
|
9388
|
-
trigger: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
9389
|
-
default: withCtx(() => [
|
|
9649
|
+
trigger: withCtx(() => [createElementVNode("span", _hoisted_1$27, toDisplayString(label.value), 1)]),
|
|
9650
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$19, [
|
|
9390
9651
|
createVNode(PopoverRow_default, {
|
|
9391
9652
|
"aria-pressed": unref(canvas).zoom === "fit",
|
|
9392
9653
|
onClick: _cache[0] || (_cache[0] = ($event) => zoom("fit"))
|
|
@@ -9426,20 +9687,19 @@ var ZoomMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9426
9687
|
})) : createCommentVNode("", true)]),
|
|
9427
9688
|
_: 2
|
|
9428
9689
|
}, 1032, ["aria-pressed", "onClick"]);
|
|
9429
|
-
}), 64))
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
]),
|
|
9690
|
+
}), 64))
|
|
9691
|
+
]), unref(settings) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(PopoverDivider_default), createVNode(PopoverRow_default, {
|
|
9692
|
+
class: "htw:cursor-default",
|
|
9693
|
+
as: "label"
|
|
9694
|
+
}, {
|
|
9695
|
+
default: withCtx(() => [_cache[5] || (_cache[5] = createTextVNode(" Sync zoom across stories", -1)), createVNode(unref(HstSwitch), {
|
|
9696
|
+
class: "htw:ms-auto",
|
|
9697
|
+
layout: "inline",
|
|
9698
|
+
"model-value": unref(settings).state.syncZoom,
|
|
9699
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(settings).update({ syncZoom: $event }))
|
|
9700
|
+
}, null, 8, ["model-value"])]),
|
|
9701
|
+
_: 1
|
|
9702
|
+
})], 64)) : createCommentVNode("", true)]),
|
|
9443
9703
|
_: 1
|
|
9444
9704
|
}, 8, ["open"]);
|
|
9445
9705
|
};
|
|
@@ -9652,9 +9912,10 @@ var CanvasToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
9652
9912
|
createVNode(ToolbarButton_default, {
|
|
9653
9913
|
label: "Rotate viewport",
|
|
9654
9914
|
icon: "rotate",
|
|
9655
|
-
|
|
9915
|
+
disabled: !!unref(canvas).frameSizeFromCode,
|
|
9916
|
+
pressed: !unref(canvas).frameSizeFromCode && !unref(canvas).autoFitContent && unref(snapshot).settings.rotate,
|
|
9656
9917
|
onClick: rotateViewport
|
|
9657
|
-
}, null, 8, ["pressed"]),
|
|
9918
|
+
}, null, 8, ["disabled", "pressed"]),
|
|
9658
9919
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pluginItems)?.viewport, (item) => {
|
|
9659
9920
|
return openBlock(), createBlock(PluginToolbarItem_default, {
|
|
9660
9921
|
key: unref(plugin).keyOf(item),
|
|
@@ -9867,6 +10128,8 @@ var CanvasToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
9867
10128
|
};
|
|
9868
10129
|
}
|
|
9869
10130
|
});
|
|
10131
|
+
// src/app/components/embed/EmbedMenu.vue?vue&type=script&setup=true&lang.ts
|
|
10132
|
+
var _hoisted_1$26 = { class: "htw:menu-rows" };
|
|
9870
10133
|
// src/app/components/embed/EmbedMenu.vue
|
|
9871
10134
|
var EmbedMenu_default = /* @__PURE__ */ defineComponent({
|
|
9872
10135
|
__name: "EmbedMenu",
|
|
@@ -9898,7 +10161,7 @@ var EmbedMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9898
10161
|
width: 220,
|
|
9899
10162
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => emit("update:open", $event))
|
|
9900
10163
|
}, {
|
|
9901
|
-
default: withCtx(() => [createVNode(PopoverRow_default, {
|
|
10164
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$26, [createVNode(PopoverRow_default, {
|
|
9902
10165
|
disabled: !unref(snapshot).selection?.variantId || !__props.controller.available(unref(snapshot).selection.storyId, unref(snapshot).selection.variantId),
|
|
9903
10166
|
onClick: _cache[0] || (_cache[0] = ($event) => open("variant"))
|
|
9904
10167
|
}, {
|
|
@@ -9910,7 +10173,7 @@ var EmbedMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9910
10173
|
}, {
|
|
9911
10174
|
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" Embed this story ", -1)])]),
|
|
9912
10175
|
_: 1
|
|
9913
|
-
}, 8, ["disabled"])]),
|
|
10176
|
+
}, 8, ["disabled"])])]),
|
|
9914
10177
|
_: 1
|
|
9915
10178
|
}, 8, ["open"]);
|
|
9916
10179
|
};
|
|
@@ -10070,7 +10333,7 @@ var _hoisted_2$17 = {
|
|
|
10070
10333
|
var MarketplaceModal_default = /* @__PURE__ */ defineComponent({
|
|
10071
10334
|
__name: "MarketplaceModal",
|
|
10072
10335
|
setup(__props) {
|
|
10073
|
-
const MarketplaceView = defineAsyncComponent(() => import("./chunks/MarketplaceView-
|
|
10336
|
+
const MarketplaceView = defineAsyncComponent(() => import("./chunks/MarketplaceView-C1sVFRsq.js"));
|
|
10074
10337
|
const store = useMarketplaceStore();
|
|
10075
10338
|
/** Share the native top-layer element without passing it through detail views. */
|
|
10076
10339
|
const dialog = ref(null);
|
|
@@ -10603,7 +10866,7 @@ var _hoisted_1$22 = ["aria-labelledby", "onKeydown"];
|
|
|
10603
10866
|
var MarketplaceUpdateDialog_default = /* @__PURE__ */ defineComponent({
|
|
10604
10867
|
__name: "MarketplaceUpdateDialog",
|
|
10605
10868
|
setup(__props) {
|
|
10606
|
-
const MarketplaceUpdateBody = defineAsyncComponent(() => import("./chunks/MarketplaceUpdateBody-
|
|
10869
|
+
const MarketplaceUpdateBody = defineAsyncComponent(() => import("./chunks/MarketplaceUpdateBody-BtLPpA7F.js"));
|
|
10607
10870
|
const store = useMarketplaceStore();
|
|
10608
10871
|
const dialog = ref();
|
|
10609
10872
|
const title = useId();
|
|
@@ -10717,7 +10980,7 @@ var SubMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
10717
10980
|
key: 0,
|
|
10718
10981
|
ref_key: "menu",
|
|
10719
10982
|
ref: menu,
|
|
10720
|
-
class: "histoire-submenu-panel histoire-control-popover htw:fixed htw:z-[61] htw:w-60 htw:max-w-[calc(100vw-16px)] htw:p-[5px]",
|
|
10983
|
+
class: "histoire-submenu-panel histoire-control-popover htw:fixed htw:z-[61] htw:w-60 htw:max-w-[calc(100vw-16px)] htw:p-[5px] htw:menu-rows",
|
|
10721
10984
|
role: "menu",
|
|
10722
10985
|
"aria-label": __props.action.label,
|
|
10723
10986
|
style: normalizeStyle({
|
|
@@ -10857,7 +11120,7 @@ var ContextMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
10857
11120
|
key: 0,
|
|
10858
11121
|
ref_key: "menu",
|
|
10859
11122
|
ref: menu,
|
|
10860
|
-
class: "histoire-context-menu histoire-control-popover htw:fixed htw:z-60 htw:w-[264px] htw:max-w-[calc(100vw-16px)] htw:max-h-[calc(100vh-16px)] htw:p-[5px]",
|
|
11123
|
+
class: "histoire-context-menu histoire-control-popover htw:fixed htw:z-60 htw:w-[264px] htw:max-w-[calc(100vw-16px)] htw:max-h-[calc(100vh-16px)] htw:p-[5px] htw:menu-rows",
|
|
10861
11124
|
role: "menu",
|
|
10862
11125
|
"aria-label": label.value,
|
|
10863
11126
|
style: normalizeStyle({
|
|
@@ -11260,8 +11523,8 @@ var HomePage_default = /* @__PURE__ */ defineComponent({
|
|
|
11260
11523
|
const guides = computed(() => orderedStories(snapshot.value.catalog).filter((story) => story.docsOnly));
|
|
11261
11524
|
const first = computed(() => guides.value[0] ?? orderedStories(snapshot.value.catalog)[0]);
|
|
11262
11525
|
const description = computed(() => histoireConfig.theme.description);
|
|
11263
|
-
const NeedsAttention = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/NeedsAttention-
|
|
11264
|
-
const DevBrowseStatus = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/DevBrowseStatus-
|
|
11526
|
+
const NeedsAttention = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/NeedsAttention-Cf6ihlT0.js")) : void 0;
|
|
11527
|
+
const DevBrowseStatus = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/DevBrowseStatus-B6cLRu19.js")) : void 0;
|
|
11265
11528
|
/** Catalog navigation uses canonical SDK selection, preserving standalone URL ownership. */
|
|
11266
11529
|
async function select(target) {
|
|
11267
11530
|
await ownership.select(target, (selected) => emit("select", selected), (error) => emit("error", error));
|
|
@@ -13830,23 +14093,23 @@ var WorkbenchApp_default = /* @__PURE__ */ defineComponent({
|
|
|
13830
14093
|
const buildInfo = useWorkbenchBuildInfo();
|
|
13831
14094
|
const { visual, snapshot, route, shell, settings, mcp, dev, search, canvas, shortcuts, highlighted, searchQuery, searchActive, searchMatches, story, markdown, arrange, baseArrange, arrangementOverride, badges } = workbench;
|
|
13832
14095
|
/** Matrix props load only when corresponding inspector is displayed. */
|
|
13833
|
-
const MatrixInspector = defineAsyncComponent(() => import("./chunks/MatrixInspector-
|
|
14096
|
+
const MatrixInspector = defineAsyncComponent(() => import("./chunks/MatrixInspector-wqkJJnuf.js"));
|
|
13834
14097
|
/** Matrix canvas stays outside initial project-test page imports. */
|
|
13835
|
-
const MatrixView = defineAsyncComponent(() => import("./chunks/MatrixView-
|
|
14098
|
+
const MatrixView = defineAsyncComponent(() => import("./chunks/MatrixView-D-Snu47M.js"));
|
|
13836
14099
|
/** Selected-story inspector loads only when its region is mounted. */
|
|
13837
|
-
const StoryInspector = defineAsyncComponent(() => import("./chunks/StoryInspector-
|
|
14100
|
+
const StoryInspector = defineAsyncComponent(() => import("./chunks/StoryInspector-DCNgw0x8.js").then((n) => n.t));
|
|
13838
14101
|
/** Document route downloads its renderer when selected. */
|
|
13839
|
-
const MarkdownPage = defineAsyncComponent(() => import("./chunks/MarkdownPage-
|
|
14102
|
+
const MarkdownPage = defineAsyncComponent(() => import("./chunks/MarkdownPage-D_LpsCvG.js"));
|
|
13840
14103
|
/** Settings route does not delay first project-test discovery. */
|
|
13841
|
-
const SettingsPage = defineAsyncComponent(() => import("./chunks/SettingsPage-
|
|
13842
|
-
const VisualViewer = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/VisualViewer-
|
|
13843
|
-
const TestsPanel = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/TestsPanel-
|
|
13844
|
-
const AiPanel = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/AiPanel-
|
|
13845
|
-
const McpActivity = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/McpActivity-
|
|
13846
|
-
const AgentCursor = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/AgentCursor-
|
|
13847
|
-
const ScreenshotPopover = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/ScreenshotPopover-
|
|
13848
|
-
const CommentsCanvasOverlay = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/CommentsCanvasOverlay-
|
|
13849
|
-
const PermissionPrompt = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/PermissionPrompt-
|
|
14104
|
+
const SettingsPage = defineAsyncComponent(() => import("./chunks/SettingsPage-D6ZOAgS9.js").then((n) => n.t));
|
|
14105
|
+
const VisualViewer = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/VisualViewer-BQqfw1ov.js")) : void 0;
|
|
14106
|
+
const TestsPanel = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/TestsPanel-D1USqA8I.js")) : void 0;
|
|
14107
|
+
const AiPanel = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/AiPanel-BICtbtCE.js")) : void 0;
|
|
14108
|
+
const McpActivity = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/McpActivity-r2CFr-ny.js")) : void 0;
|
|
14109
|
+
const AgentCursor = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/AgentCursor-DcVxonMC.js")) : void 0;
|
|
14110
|
+
const ScreenshotPopover = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/ScreenshotPopover-BZ37-dfK.js")) : void 0;
|
|
14111
|
+
const CommentsCanvasOverlay = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/CommentsCanvasOverlay-DhqtbJNX.js")) : void 0;
|
|
14112
|
+
const PermissionPrompt = __HISTOIRE_DEV__ ? defineAsyncComponent(() => import("./chunks/PermissionPrompt-CXTPfiIu.js")) : void 0;
|
|
13850
14113
|
const EmbedDialog = defineAsyncComponent(() => import("./chunks/EmbedDialog-B70Zo-PZ.js"));
|
|
13851
14114
|
const commentOverlay = dev?.commentOverlay ?? ref();
|
|
13852
14115
|
const selectedSession = shallowRef();
|
|
@@ -13971,6 +14234,7 @@ var WorkbenchApp_default = /* @__PURE__ */ defineComponent({
|
|
|
13971
14234
|
ref: canvas,
|
|
13972
14235
|
"preview-base": __props.previewBase,
|
|
13973
14236
|
"frame-budget": unref(histoireConfig).ui?.frameBudget ?? 6,
|
|
14237
|
+
"frame-padding": unref(histoireConfig).ui?.framePadding,
|
|
13974
14238
|
arrange: unref(arrange),
|
|
13975
14239
|
"base-arrange": unref(baseArrange),
|
|
13976
14240
|
"arrangement-override": unref(arrangementOverride),
|
|
@@ -14056,6 +14320,7 @@ var WorkbenchApp_default = /* @__PURE__ */ defineComponent({
|
|
|
14056
14320
|
cols: cols.value,
|
|
14057
14321
|
"preview-base": __props.previewBase,
|
|
14058
14322
|
size: slot.size,
|
|
14323
|
+
padding: slot.padding,
|
|
14059
14324
|
"content-insets": slot.contentInsets,
|
|
14060
14325
|
"ui-hidden": unref(shell).uiHidden.value,
|
|
14061
14326
|
"discovery-failed": slot.discoveryFailed,
|
|
@@ -14067,6 +14332,7 @@ var WorkbenchApp_default = /* @__PURE__ */ defineComponent({
|
|
|
14067
14332
|
"cols",
|
|
14068
14333
|
"preview-base",
|
|
14069
14334
|
"size",
|
|
14335
|
+
"padding",
|
|
14070
14336
|
"content-insets",
|
|
14071
14337
|
"ui-hidden",
|
|
14072
14338
|
"discovery-failed",
|
|
@@ -14094,6 +14360,7 @@ var WorkbenchApp_default = /* @__PURE__ */ defineComponent({
|
|
|
14094
14360
|
}, 8, [
|
|
14095
14361
|
"preview-base",
|
|
14096
14362
|
"frame-budget",
|
|
14363
|
+
"frame-padding",
|
|
14097
14364
|
"arrange",
|
|
14098
14365
|
"base-arrange",
|
|
14099
14366
|
"arrangement-override",
|