@histoire/app 0.17.16 → 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/app/style/main.pcss +1 -1
  2. package/dist/app/style/sandbox.css +1 -1
  3. package/dist/bundle-main-dev.js +1 -1
  4. package/dist/bundle-main.js +2 -2
  5. package/dist/bundled/App.vue2.js +11 -11
  6. package/dist/bundled/app.css +101 -0
  7. package/dist/bundled/components/HomeView.vue2.js +1 -1
  8. package/dist/bundled/components/app/AppHeader.vue2.js +3 -3
  9. package/dist/bundled/components/app/AppLogo.vue2.js +4 -4
  10. package/dist/bundled/components/app/Breadcrumb.vue.js +2 -2
  11. package/dist/bundled/components/app/Breadcrumb.vue2.js +8 -10
  12. package/dist/bundled/components/app/HomeCounter.vue2.js +2 -7
  13. package/dist/bundled/components/app/InitialLoading.vue2.js +1 -1
  14. package/dist/bundled/components/base/BaseCheckbox.vue2.js +1 -2
  15. package/dist/bundled/components/base/BaseEmpty.vue.js +2 -3
  16. package/dist/bundled/components/base/BaseIcon.vue.js +2 -2
  17. package/dist/bundled/components/base/BaseIcon.vue2.js +1 -2
  18. package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
  19. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +5 -5
  20. package/dist/bundled/components/base/BaseOverflowTab.vue.js +1 -1
  21. package/dist/bundled/components/base/BaseSelect.vue2.js +2 -2
  22. package/dist/bundled/components/base/BaseSplitPane.vue.js +2 -2
  23. package/dist/bundled/components/base/BaseSplitPane.vue2.js +3 -6
  24. package/dist/bundled/components/base/BaseTab.vue.js +1 -1
  25. package/dist/bundled/components/base/BaseTag.vue.js +1 -1
  26. package/dist/bundled/components/command/CommandPrompts.vue2.js +3 -7
  27. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +1 -1
  28. package/dist/bundled/components/command/PromptSelect.vue2.js +3 -3
  29. package/dist/bundled/components/command/PromptText.vue2.js +1 -1
  30. package/dist/bundled/components/misc/CheckerboardPattern.vue.js +31 -34
  31. package/dist/bundled/components/misc/HatchedPattern.vue.js +2 -3
  32. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +1 -1
  33. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +2 -4
  34. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +1 -2
  35. package/dist/bundled/components/panel/PaneTabs.vue2.js +12 -12
  36. package/dist/bundled/components/panel/StatePresets.vue2.js +3 -4
  37. package/dist/bundled/components/panel/StoryControls.vue2.js +5 -6
  38. package/dist/bundled/components/panel/StoryDocs.vue2.js +6 -6
  39. package/dist/bundled/components/panel/StoryEvents.vue2.js +2 -2
  40. package/dist/bundled/components/panel/StorySidePanel.vue2.js +10 -12
  41. package/dist/bundled/components/panel/StorySourceCode.vue.js +2 -2
  42. package/dist/bundled/components/panel/StorySourceCode.vue2.js +15 -20
  43. package/dist/bundled/components/search/SearchItem.vue.js +2 -2
  44. package/dist/bundled/components/search/SearchItem.vue2.js +4 -6
  45. package/dist/bundled/components/search/SearchLoading.vue2.js +2 -2
  46. package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
  47. package/dist/bundled/components/search/SearchPane.vue2.js +42 -60
  48. package/dist/bundled/components/search/search-docs-data.js +1 -1
  49. package/dist/bundled/components/search/search-title-data.js +1 -1
  50. package/dist/bundled/components/story/GenericMountStory.vue2.js +1 -1
  51. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +2 -2
  52. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +9 -12
  53. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +8 -11
  54. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +2 -2
  55. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +16 -19
  56. package/dist/bundled/components/story/StoryVariantListItem.vue.js +2 -2
  57. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +4 -5
  58. package/dist/bundled/components/story/StoryVariantSingle.vue.js +2 -2
  59. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +5 -6
  60. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +3 -3
  61. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +4 -4
  62. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +4 -4
  63. package/dist/bundled/components/story/StoryView.vue2.js +5 -5
  64. package/dist/bundled/components/story/StoryViewer.vue.js +2 -2
  65. package/dist/bundled/components/story/StoryViewer.vue2.js +3 -4
  66. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
  67. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +3 -4
  68. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +16 -17
  69. package/dist/bundled/components/tree/StoryGroup.vue2.js +9 -11
  70. package/dist/bundled/components/tree/StoryList.vue2.js +3 -3
  71. package/dist/bundled/components/tree/StoryListFolder.vue.js +2 -2
  72. package/dist/bundled/components/tree/StoryListFolder.vue2.js +13 -15
  73. package/dist/bundled/components/tree/StoryListItem.vue.js +2 -2
  74. package/dist/bundled/components/tree/StoryListItem.vue2.js +5 -6
  75. package/dist/bundled/index.js +4 -4
  76. package/dist/bundled/plugin.js +1 -2
  77. package/dist/bundled/sandbox.js +15 -20
  78. package/dist/bundled/stores/folder.js +1 -1
  79. package/dist/bundled/stores/preview-settings.js +1 -1
  80. package/dist/bundled/util/commands.js +1 -1
  81. package/dist/bundled/util/dark.js +1 -1
  82. package/dist/bundled/util/events.js +2 -4
  83. package/dist/bundled/util/scroll.js +1 -1
  84. package/dist/bundled/util/state.js +2 -2
  85. package/dist/style.css +281 -293
  86. package/package.json +24 -25
  87. package/scripts/copy.mjs +1 -1
  88. package/scripts/watchAndCopy.mjs +4 -4
  89. package/src/app/App.vue +15 -15
  90. package/src/app/api.ts +3 -3
  91. package/src/app/components/HomeView.vue +4 -3
  92. package/src/app/components/app/AppHeader.vue +2 -2
  93. package/src/app/components/app/AppLogo.vue +4 -4
  94. package/src/app/components/app/Breadcrumb.vue +5 -5
  95. package/src/app/components/app/HomeCounter.vue +1 -10
  96. package/src/app/components/app/MobileOverlay.vue +1 -1
  97. package/src/app/components/base/BaseCheckbox.vue +2 -3
  98. package/src/app/components/base/BaseIcon.vue +2 -2
  99. package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
  100. package/src/app/components/base/BaseListItem.vue +2 -2
  101. package/src/app/components/base/BaseListItemLink.vue +3 -3
  102. package/src/app/components/base/BaseOverflowMenu.vue +5 -5
  103. package/src/app/components/base/BaseSelect.vue +6 -5
  104. package/src/app/components/base/BaseSplitPane.vue +19 -15
  105. package/src/app/components/command/CommandPrompts.vue +8 -10
  106. package/src/app/components/command/CommandPromptsModal.vue +2 -1
  107. package/src/app/components/command/PromptSelect.vue +7 -5
  108. package/src/app/components/command/PromptText.vue +4 -3
  109. package/src/app/components/panel/ControlsComponentPropItem.vue +4 -4
  110. package/src/app/components/panel/ControlsComponentState.vue +3 -3
  111. package/src/app/components/panel/ControlsComponentStateItem.vue +2 -2
  112. package/src/app/components/panel/PaneTabs.vue +3 -3
  113. package/src/app/components/panel/StatePresets.vue +16 -13
  114. package/src/app/components/panel/StoryControls.vue +5 -5
  115. package/src/app/components/panel/StoryDocs.vue +28 -24
  116. package/src/app/components/panel/StoryEvent.vue +2 -2
  117. package/src/app/components/panel/StoryEvents.vue +3 -3
  118. package/src/app/components/panel/StorySidePanel.vue +2 -2
  119. package/src/app/components/panel/StorySourceCode.vue +12 -8
  120. package/src/app/components/search/SearchItem.vue +5 -4
  121. package/src/app/components/search/SearchItemContent.vue +4 -4
  122. package/src/app/components/search/SearchModal.vue +2 -1
  123. package/src/app/components/search/SearchPane.vue +64 -76
  124. package/src/app/components/search/search-docs-data.ts +3 -3
  125. package/src/app/components/search/search-title-data.ts +3 -3
  126. package/src/app/components/search/types.ts +1 -1
  127. package/src/app/components/story/GenericMountStory.vue +2 -2
  128. package/src/app/components/story/GenericRenderStory.vue +4 -3
  129. package/src/app/components/story/StoryResponsivePreview.vue +17 -16
  130. package/src/app/components/story/StoryVariantGrid.vue +10 -9
  131. package/src/app/components/story/StoryVariantGridItem.vue +14 -14
  132. package/src/app/components/story/StoryVariantListItem.vue +4 -3
  133. package/src/app/components/story/StoryVariantSingle.vue +3 -3
  134. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +5 -5
  135. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +14 -14
  136. package/src/app/components/story/StoryVariantSingleView.vue +4 -4
  137. package/src/app/components/story/StoryView.vue +8 -8
  138. package/src/app/components/story/StoryViewer.vue +2 -3
  139. package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
  140. package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
  141. package/src/app/components/tree/StoryGroup.vue +3 -3
  142. package/src/app/components/tree/StoryList.vue +3 -3
  143. package/src/app/components/tree/StoryListFolder.vue +3 -3
  144. package/src/app/components/tree/StoryListItem.vue +2 -2
  145. package/src/app/index.ts +6 -7
  146. package/src/app/plugin.ts +4 -3
  147. package/src/app/router.ts +2 -2
  148. package/src/app/sandbox.ts +24 -27
  149. package/src/app/stores/command.ts +4 -3
  150. package/src/app/stores/events.ts +4 -4
  151. package/src/app/stores/folder.ts +10 -8
  152. package/src/app/stores/preview-settings.ts +2 -2
  153. package/src/app/stores/story.ts +4 -4
  154. package/src/app/style/main.pcss +1 -1
  155. package/src/app/style/sandbox.css +1 -1
  156. package/src/app/types.ts +3 -3
  157. package/src/app/util/commands.ts +5 -4
  158. package/src/app/util/dark.ts +3 -3
  159. package/src/app/util/docs.ts +6 -4
  160. package/src/app/util/events.ts +4 -3
  161. package/src/app/util/keyboard.ts +9 -8
  162. package/src/app/util/mapping.ts +9 -6
  163. package/src/app/util/open-in-editor.ts +1 -1
  164. package/src/app/util/preview-settings.ts +3 -3
  165. package/src/app/util/sandbox.ts +2 -3
  166. package/src/app/util/scroll.ts +5 -4
  167. package/src/app/util/select.ts +5 -4
  168. package/src/app/util/state.ts +6 -5
  169. package/src/app/util/tooltip.ts +2 -2
  170. package/src/app/util/variant.ts +4 -3
  171. package/src/bundle-main-dev.js +1 -1
  172. package/src/bundle-main.js +2 -2
  173. package/src/shim.d.ts +0 -6
  174. package/src/virtual.d.ts +1 -0
  175. package/tailwind.config.cjs +20 -21
  176. package/tsconfig.json +26 -26
  177. package/vite.config.ts +8 -7
  178. package/dist/bundled/components/app/Breadcrumb.vue3.js +0 -1
  179. package/dist/bundled/components/base/BaseEmpty.vue2.js +0 -1
  180. package/dist/bundled/components/base/BaseIcon.vue3.js +0 -1
  181. package/dist/bundled/components/base/BaseSplitPane.vue3.js +0 -1
  182. package/dist/bundled/components/misc/HatchedPattern.vue2.js +0 -1
  183. package/dist/bundled/components/panel/StorySourceCode.vue3.js +0 -1
  184. package/dist/bundled/components/search/SearchItem.vue3.js +0 -1
  185. package/dist/bundled/components/story/StoryResponsivePreview.vue3.js +0 -1
  186. package/dist/bundled/components/story/StoryVariantGridItem.vue3.js +0 -1
  187. package/dist/bundled/components/story/StoryVariantListItem.vue3.js +0 -1
  188. package/dist/bundled/components/story/StoryVariantSingle.vue3.js +0 -1
  189. package/dist/bundled/components/story/StoryViewer.vue3.js +0 -1
  190. package/dist/bundled/components/toolbar/ToolbarBackground.vue3.js +0 -1
  191. package/dist/bundled/components/tree/StoryListFolder.vue3.js +0 -1
  192. package/dist/bundled/components/tree/StoryListItem.vue3.js +0 -1
  193. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/common.js +0 -52
  194. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js +0 -10
  195. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js +0 -16
  196. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/balance.js +0 -31
  197. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +0 -15
  198. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang.js +0 -60
  199. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/type.js +0 -11
  200. package/dist/bundled/style.css +0 -101
@@ -1,17 +1,15 @@
1
1
  import { defineComponent, ref, watch, computed, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, unref, withDirectives, withKeys, withModifiers, vModelText, createBlock, withCtx, createTextVNode, renderList, createCommentVNode } from "@histoire/vendors/vue";
2
- import { useFocus, useDebounce } from "@histoire/vendors/vue-use";
3
2
  import { Icon } from "@histoire/vendors/iconify";
4
- import * as flexsearch from "flexsearch";
5
- import charset from "../../node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js";
6
- import language from "../../node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js";
3
+ import { useFocus, useDebounce } from "@histoire/vendors/vue-use";
4
+ import Fuse from "fuse.js";
7
5
  import { registeredCommands } from "virtual:$histoire-commands";
6
+ import { useCommandStore } from "../../stores/command.js";
8
7
  import { useStoryStore } from "../../stores/story.js";
9
- import BaseEmpty from "../base/BaseEmpty.vue.js";
10
- import SearchItem from "./SearchItem.vue.js";
11
- import { onUpdate, searchData } from "./search-title-data.js";
12
8
  import { getCommandContext, builtinCommands } from "../../util/commands.js";
13
- import { useCommandStore } from "../../stores/command.js";
14
9
  import { useSelection } from "../../util/select.js";
10
+ import BaseEmpty from "../base/BaseEmpty.vue.js";
11
+ import { onUpdate, searchData } from "./search-title-data.js";
12
+ import SearchItem from "./SearchItem.vue.js";
15
13
  "use strict";
16
14
  const _hoisted_1 = {
17
15
  key: 1,
@@ -53,24 +51,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
51
  let titleSearchIndex;
54
52
  let titleIdMap;
55
53
  function createIndex() {
56
- return new flexsearch.Document({
57
- preset: "match",
58
- document: {
59
- id: "id",
60
- index: [
61
- "text"
62
- ]
63
- },
64
- worker: true,
65
- charset,
66
- language,
67
- tokenize: "forward"
54
+ return new Fuse([], {
55
+ keys: ["text"]
68
56
  });
69
57
  }
70
58
  async function loadSearchIndex(data) {
71
59
  titleSearchIndex = createIndex();
72
- for (const key of Object.keys(data.index)) {
73
- await titleSearchIndex.import(key, data.index[key]);
60
+ for (const document of data.index) {
61
+ titleSearchIndex.add(document);
74
62
  }
75
63
  titleIdMap = data.idMap;
76
64
  }
@@ -83,16 +71,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
71
  async function loadDocSearchIndex() {
84
72
  async function load(data) {
85
73
  docSearchIndex = createIndex();
86
- for (const key of Object.keys(data.index)) {
87
- await docSearchIndex.import(key, data.index[key]);
74
+ for (const document of data.index) {
75
+ docSearchIndex.add(document);
88
76
  }
89
77
  docIdMap = data.idMap;
90
78
  if (rateLimitedSearch.value) {
91
- searchOnDocField(rateLimitedSearch.value);
79
+ await searchOnDocField(rateLimitedSearch.value);
92
80
  }
93
81
  }
94
82
  const searchDataModule = await DocSearchData();
95
- load(searchDataModule.searchData);
83
+ await load(searchDataModule.searchData);
96
84
  searchDataModule.onUpdate((searchData2) => {
97
85
  load(searchData2);
98
86
  });
@@ -101,27 +89,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
89
  const titleResults = ref([]);
102
90
  watch(rateLimitedSearch, async (value) => {
103
91
  const list = [];
104
- const raw = await titleSearchIndex.search(value);
92
+ const result = titleSearchIndex.search(value);
105
93
  let rank = 0;
106
- for (const field of raw) {
107
- for (const id of field.result) {
108
- const idMapData = titleIdMap[id];
109
- if (!idMapData)
110
- continue;
111
- switch (idMapData.kind) {
112
- case "story": {
113
- list.push(storyResultFactory(storyStore.getStoryById(idMapData.id), rank));
114
- rank++;
115
- break;
116
- }
117
- case "variant": {
118
- const [storyId] = idMapData.id.split(":");
119
- const story = storyStore.getStoryById(storyId);
120
- const variant = storyStore.getVariantById(idMapData.id);
121
- list.push(variantResultFactory(story, variant, rank));
122
- rank++;
123
- break;
124
- }
94
+ for (const document of result) {
95
+ const idMapData = titleIdMap[document.item.id];
96
+ if (!idMapData) continue;
97
+ switch (idMapData.kind) {
98
+ case "story": {
99
+ list.push(storyResultFactory(storyStore.getStoryById(idMapData.id), rank));
100
+ rank++;
101
+ break;
102
+ }
103
+ case "variant": {
104
+ const [storyId] = idMapData.id.split(":");
105
+ const story = storyStore.getStoryById(storyId);
106
+ const variant = storyStore.getVariantById(idMapData.id);
107
+ list.push(variantResultFactory(story, variant, rank));
108
+ rank++;
109
+ break;
125
110
  }
126
111
  }
127
112
  }
@@ -131,19 +116,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
116
  async function searchOnDocField(query) {
132
117
  if (docSearchIndex) {
133
118
  const list = [];
134
- const raw = await docSearchIndex.search(query);
119
+ const result = docSearchIndex.search(query);
135
120
  let rank = 0;
136
- for (const field of raw) {
137
- for (const id of field.result) {
138
- const idMapData = docIdMap[id];
139
- if (!idMapData)
140
- continue;
141
- switch (idMapData.kind) {
142
- case "story": {
143
- list.push(storyResultFactory(storyStore.getStoryById(idMapData.id), rank, "docs"));
144
- rank++;
145
- break;
146
- }
121
+ for (const document of result) {
122
+ const idMapData = docIdMap[document.item.id];
123
+ if (!idMapData) continue;
124
+ switch (idMapData.kind) {
125
+ case "story": {
126
+ list.push(storyResultFactory(storyStore.getStoryById(idMapData.id), rank, "docs"));
127
+ rank++;
128
+ break;
147
129
  }
148
130
  }
149
131
  }
@@ -270,9 +252,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
270
252
  key: 0,
271
253
  class: "no-animation"
272
254
  }, {
273
- default: withCtx(() => [
255
+ default: withCtx(() => _cache[6] || (_cache[6] = [
274
256
  createTextVNode(" No results ")
275
- ]),
257
+ ])),
276
258
  _: 1
277
259
  })) : results.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
278
260
  (openBlock(true), createElementBlock(Fragment, null, renderList(results.value, (result, index) => {
@@ -1,5 +1,5 @@
1
- import { markRaw } from "@histoire/vendors/vue";
2
1
  import { searchData as searchData$1, onUpdate as onUpdate$1 } from "virtual:$histoire-search-docs-data";
2
+ import { markRaw } from "@histoire/vendors/vue";
3
3
  "use strict";
4
4
  const searchData = markRaw(searchData$1);
5
5
  function onUpdate(cb) {
@@ -1,5 +1,5 @@
1
- import { markRaw } from "@histoire/vendors/vue";
2
1
  import { searchData as searchData$1, onUpdate as onUpdate$1 } from "virtual:$histoire-search-title-data";
2
+ import { markRaw } from "@histoire/vendors/vue";
3
3
  "use strict";
4
4
  const searchData = markRaw(searchData$1);
5
5
  function onUpdate(cb) {
@@ -1,4 +1,4 @@
1
- import { ref, markRaw, watchEffect, openBlock, resolveDynamicComponent, mergeProps, createBlock, createCommentVNode, defineComponent } from "@histoire/vendors/vue";
1
+ import { defineComponent, ref, watchEffect, markRaw, openBlock, createBlock, resolveDynamicComponent, mergeProps, createCommentVNode } from "@histoire/vendors/vue";
2
2
  import { clientSupportPlugins } from "virtual:$histoire-support-plugins-client";
3
3
  "use strict";
4
4
  const __default__ = {
@@ -1,8 +1,8 @@
1
1
  import _sfc_main from "./StoryResponsivePreview.vue2.js";
2
- import "./StoryResponsivePreview.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const StoryResponsivePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a09bd522"]]);
5
+ const StoryResponsivePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-18122333"]]);
6
6
  export {
7
7
  StoryResponsivePreview as default
8
8
  };
@@ -1,12 +1,11 @@
1
- import { defineComponent, useCssVars, unref, ref, onUnmounted, computed, openBlock, createElementBlock, createVNode, createCommentVNode, createElementVNode, normalizeClass, createBlock, renderSlot, Fragment, withDirectives, pushScopeId, popScopeId, createStaticVNode } from "@histoire/vendors/vue";
2
- import { useEventListener } from "@histoire/vendors/vue-use";
1
+ import { defineComponent, useCssVars, unref, ref, onUnmounted, computed, openBlock, createElementBlock, createVNode, createCommentVNode, createElementVNode, normalizeClass, createBlock, renderSlot, createStaticVNode, Fragment, withDirectives } from "@histoire/vendors/vue";
3
2
  import { Icon } from "@histoire/vendors/iconify";
4
- import HatchedPattern from "../misc/HatchedPattern.vue.js";
5
- import CheckerboardPattern from "../misc/CheckerboardPattern.vue.js";
6
- import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
3
+ import { useEventListener } from "@histoire/vendors/vue-use";
7
4
  import { VTooltip } from "@histoire/vendors/floating-vue";
5
+ import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
6
+ import CheckerboardPattern from "../misc/CheckerboardPattern.vue.js";
7
+ import HatchedPattern from "../misc/HatchedPattern.vue.js";
8
8
  "use strict";
9
- const _withScopeId = (n) => (pushScopeId("data-v-a09bd522"), n = n(), popScopeId(), n);
10
9
  const _hoisted_1 = { class: "histoire-story-responsive-preview htw-w-full htw-h-full htw-flex-1 htw-rounded-lg htw-relative htw-overflow-hidden" };
11
10
  const _hoisted_2 = {
12
11
  key: 0,
@@ -18,8 +17,6 @@ const _hoisted_3 = {
18
17
  };
19
18
  const _hoisted_4 = { class: "htw-p-8 htw-h-full htw-relative" };
20
19
  const _hoisted_5 = { class: "htw-w-full htw-h-full htw-relative" };
21
- const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "htw-absolute htw-inset-0" }, null, -1));
22
- const _hoisted_7 = /* @__PURE__ */ createStaticVNode('<div class="htw-absolute htw-top-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-top-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-bottom-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-bottom-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-left-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-left-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-right-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-right-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div>', 8);
23
20
  const _sfc_main = /* @__PURE__ */ defineComponent({
24
21
  __name: "StoryResponsivePreview",
25
22
  props: {
@@ -27,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
24
  },
28
25
  setup(__props) {
29
26
  useCssVars((_ctx) => ({
30
- "09fda46e": unref(settings).backgroundColor
27
+ "5f6f4ee9": unref(settings).backgroundColor
31
28
  }));
32
29
  const props = __props;
33
30
  const settings = usePreviewSettingsStore().currentSettings;
@@ -115,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
115
112
  const finalWidth = computed(() => settings.rotate ? settings.responsiveHeight : settings.responsiveWidth);
116
113
  const finalHeight = computed(() => settings.rotate ? settings.responsiveWidth : settings.responsiveHeight);
117
114
  const isResponsiveEnabled = computed(() => !props.variant.responsiveDisabled);
118
- const sizeTooltip = computed(() => (responsiveWidth.value ?? "Auto") + " × " + (responsiveHeight.value ?? "Auto"));
115
+ const sizeTooltip = computed(() => `${responsiveWidth.value ?? "Auto"} × ${responsiveHeight.value ?? "Auto"}`);
119
116
  return (_ctx, _cache) => {
120
117
  return openBlock(), createElementBlock("div", _hoisted_1, [
121
118
  isResponsiveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
@@ -140,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
140
137
  })) : createCommentVNode("", true),
141
138
  createElementVNode("div", _hoisted_4, [
142
139
  createElementVNode("div", _hoisted_5, [
143
- _hoisted_6,
140
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "htw-absolute htw-inset-0" }, null, -1)),
144
141
  renderSlot(_ctx.$slots, "default", {
145
142
  isResponsiveEnabled: isResponsiveEnabled.value,
146
143
  finalWidth: finalWidth.value,
@@ -148,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
145
  resizing: resizing.value
149
146
  }, void 0, true)
150
147
  ]),
151
- _hoisted_7
148
+ _cache[1] || (_cache[1] = createStaticVNode('<div class="htw-absolute htw-top-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-18122333></div><div class="htw-absolute htw-top-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-18122333></div><div class="htw-absolute htw-bottom-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-18122333></div><div class="htw-absolute htw-bottom-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-18122333></div><div class="htw-absolute htw-left-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-18122333></div><div class="htw-absolute htw-left-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-18122333></div><div class="htw-absolute htw-right-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-18122333></div><div class="htw-absolute htw-right-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-18122333></div>', 8))
152
149
  ]),
153
150
  isResponsiveEnabled.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
154
151
  withDirectives((openBlock(), createElementBlock("div", {
@@ -2,10 +2,10 @@ import { defineComponent, computed, ref, watch, onMounted, openBlock, createElem
2
2
  import { useResizeObserver } from "@histoire/vendors/vue-use";
3
3
  import { useStoryStore } from "../../stores/story.js";
4
4
  import { isMobile } from "../../util/responsive.js";
5
- import StoryVariantGridItem from "./StoryVariantGridItem.vue.js";
5
+ import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
6
6
  import ToolbarBackground from "../toolbar/ToolbarBackground.vue.js";
7
7
  import "../toolbar/ToolbarTextDirection.vue.js";
8
- import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
8
+ import StoryVariantGridItem from "./StoryVariantGridItem.vue.js";
9
9
  import _sfc_main$1 from "../toolbar/ToolbarTextDirection.vue2.js";
10
10
  import _sfc_main$2 from "../toolbar/DevOnlyToolbarOpenInEditor.vue2.js";
11
11
  "use strict";
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  return "200px";
31
31
  }
32
32
  if (typeof layoutWidth === "number") {
33
- return layoutWidth + "px";
33
+ return `${layoutWidth}px`;
34
34
  }
35
35
  return layoutWidth;
36
36
  });
@@ -45,8 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  updateSize();
46
46
  });
47
47
  function updateMaxCount() {
48
- if (!maxItemHeight.value)
49
- return;
48
+ if (!maxItemHeight.value) return;
50
49
  const width = el.value.clientWidth - margin * 2;
51
50
  const height = el.value.clientHeight;
52
51
  const scrollTop = el.value.scrollTop;
@@ -78,15 +77,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
77
  const gridColumnWidth = ref(1);
79
78
  const viewWidth = ref(1);
80
79
  function updateSize() {
81
- if (!el.value)
82
- return;
80
+ if (!el.value) return;
83
81
  viewWidth.value = el.value.clientWidth;
84
- if (!gridEl.value)
85
- return;
82
+ if (!gridEl.value) return;
86
83
  if (gridTemplateWidth.value.endsWith("%")) {
87
- gridColumnWidth.value = viewWidth.value * parseInt(gridTemplateWidth.value) / 100 - gap;
84
+ gridColumnWidth.value = viewWidth.value * Number.parseInt(gridTemplateWidth.value) / 100 - gap;
88
85
  } else {
89
- gridColumnWidth.value = parseInt(gridTemplateWidth.value);
86
+ gridColumnWidth.value = Number.parseInt(gridTemplateWidth.value);
90
87
  }
91
88
  }
92
89
  onMounted(() => {
@@ -1,8 +1,8 @@
1
1
  import _sfc_main from "./StoryVariantGridItem.vue2.js";
2
- import "./StoryVariantGridItem.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const StoryVariantGridItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cf76cd68"]]);
5
+ const StoryVariantGridItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-feff9239"]]);
6
6
  export {
7
7
  StoryVariantGridItem as default
8
8
  };
@@ -1,29 +1,24 @@
1
- import { defineComponent, useCssVars, unref, toRefs, ref, computed, resolveComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, withDirectives, createBlock, normalizeClass, withCtx, createVNode, toDisplayString, withModifiers, createCommentVNode, normalizeStyle, pushScopeId, popScopeId } from "@histoire/vendors/vue";
1
+ import { defineComponent, useCssVars, unref, toRefs, ref, computed, resolveComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, withDirectives, createBlock, normalizeClass, withCtx, createVNode, toDisplayString, withModifiers, createCommentVNode, normalizeStyle } from "@histoire/vendors/vue";
2
+ import { HstCopyIcon } from "@histoire/controls";
2
3
  import { Icon } from "@histoire/vendors/iconify";
3
- import { useRouter } from "@histoire/vendors/vue-router";
4
4
  import { useResizeObserver } from "@histoire/vendors/vue-use";
5
- import { HstCopyIcon } from "@histoire/controls";
6
- import { useCurrentVariantRoute } from "../../util/variant.js";
7
- import { useScrollOnActive } from "../../util/scroll.js";
5
+ import { useRouter } from "@histoire/vendors/vue-router";
8
6
  import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
9
- import { getContrastColor } from "../../util/preview-settings.js";
10
7
  import { histoireConfig } from "../../util/config.js";
11
8
  import { isDark } from "../../util/dark.js";
12
9
  import { getSourceCode } from "../../util/docs.js";
13
- import "./GenericRenderStory.vue.js";
14
- import "../toolbar/ToolbarNewTab.vue.js";
10
+ import { getContrastColor } from "../../util/preview-settings.js";
11
+ import { useScrollOnActive } from "../../util/scroll.js";
12
+ import { useCurrentVariantRoute } from "../../util/variant.js";
15
13
  import CheckerboardPattern from "../misc/CheckerboardPattern.vue.js";
14
+ import "../toolbar/ToolbarNewTab.vue.js";
15
+ import "./GenericRenderStory.vue.js";
16
16
  import _sfc_main$1 from "../toolbar/ToolbarNewTab.vue2.js";
17
17
  import _sfc_main$2 from "./GenericRenderStory.vue2.js";
18
18
  "use strict";
19
- const _withScopeId = (n) => (pushScopeId("data-v-cf76cd68"), n = n(), popScopeId(), n);
20
19
  const _hoisted_1 = { class: "htw-flex-none htw-flex htw-items-center" };
21
20
  const _hoisted_2 = { class: "htw-truncate htw-flex-1" };
22
21
  const _hoisted_3 = { class: "htw-flex-none htw-ml-auto htw-hidden group-hover:htw-flex htw-items-center" };
23
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
24
- class: "htw-absolute htw-inset-0 htw-rounded bind-preview-bg",
25
- "data-test-id": "responsive-preview-bg"
26
- }, null, -1));
27
22
  const _sfc_main = /* @__PURE__ */ defineComponent({
28
23
  __name: "StoryVariantGridItem",
29
24
  props: {
@@ -37,13 +32,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
32
  }
38
33
  },
39
34
  emits: {
40
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
41
- resize: (width, height) => true
35
+ resize: (_width, _height) => true
42
36
  },
43
37
  setup(__props, { emit: __emit }) {
44
38
  useCssVars((_ctx) => ({
45
- "29d8c174": unref(variant).iconColor,
46
- "0eff7465": unref(settings).backgroundColor
39
+ "60afaf4d": unref(variant).iconColor,
40
+ "3bd99e7e": unref(settings).backgroundColor
47
41
  }));
48
42
  const props = __props;
49
43
  const emit = __emit;
@@ -123,7 +117,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
117
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectVariant(), ["stop"])),
124
118
  onKeyup: _cache[1] || (_cache[1] = ($event) => selectVariant())
125
119
  }, [
126
- _hoisted_4,
120
+ _cache[2] || (_cache[2] = createElementVNode("div", {
121
+ class: "htw-absolute htw-inset-0 htw-rounded bind-preview-bg",
122
+ "data-test-id": "responsive-preview-bg"
123
+ }, null, -1)),
127
124
  unref(settings).checkerboard ? (openBlock(), createBlock(CheckerboardPattern, {
128
125
  key: 0,
129
126
  class: "htw-absolute htw-inset-0 htw-w-full htw-h-full htw-text-gray-500/20"
@@ -132,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
132
129
  class: "htw-relative htw-h-full",
133
130
  style: normalizeStyle({
134
131
  "--histoire-contrast-color": contrastColor.value,
135
- color: autoApplyContrastColor.value ? contrastColor.value : void 0
132
+ "color": autoApplyContrastColor.value ? contrastColor.value : void 0
136
133
  })
137
134
  }, [
138
135
  (openBlock(), createBlock(_sfc_main$2, {
@@ -1,8 +1,8 @@
1
1
  import _sfc_main from "./StoryVariantListItem.vue2.js";
2
- import "./StoryVariantListItem.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const StoryVariantListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ab890d9c"]]);
5
+ const StoryVariantListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b279b85"]]);
6
6
  export {
7
7
  StoryVariantListItem as default
8
8
  };
@@ -1,10 +1,9 @@
1
- import { defineComponent, useCssVars, unref, toRefs, ref, openBlock, createElementBlock, createVNode, withCtx, normalizeClass, createElementVNode, toDisplayString, pushScopeId, popScopeId } from "@histoire/vendors/vue";
2
- import { useCurrentVariantRoute } from "../../util/variant.js";
3
- import BaseListItemLink from "../base/BaseListItemLink.vue.js";
1
+ import { defineComponent, useCssVars, unref, toRefs, ref, openBlock, createElementBlock, createVNode, withCtx, normalizeClass, createElementVNode, toDisplayString } from "@histoire/vendors/vue";
4
2
  import { Icon } from "@histoire/vendors/iconify";
5
3
  import { useScrollOnActive } from "../../util/scroll.js";
4
+ import { useCurrentVariantRoute } from "../../util/variant.js";
5
+ import BaseListItemLink from "../base/BaseListItemLink.vue.js";
6
6
  "use strict";
7
- const _withScopeId = (n) => (pushScopeId("data-v-ab890d9c"), n = n(), popScopeId(), n);
8
7
  const _hoisted_1 = { class: "htw-truncate" };
9
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
9
  __name: "StoryVariantListItem",
@@ -16,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  },
17
16
  setup(__props) {
18
17
  useCssVars((_ctx) => ({
19
- "89126aaa": unref(variant).iconColor
18
+ "ab2181a2": unref(variant).iconColor
20
19
  }));
21
20
  const props = __props;
22
21
  const { variant } = toRefs(props);
@@ -1,8 +1,8 @@
1
1
  import _sfc_main from "./StoryVariantSingle.vue2.js";
2
- import "./StoryVariantSingle.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const StoryVariantSingle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ddfc5b4f"]]);
5
+ const StoryVariantSingle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c2a43485"]]);
6
6
  export {
7
7
  StoryVariantSingle as default
8
8
  };
@@ -1,13 +1,12 @@
1
- import { defineComponent, useCssVars, computed, openBlock, createElementBlock, createVNode, unref, Fragment, createElementVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createBlock, withCtx, renderList, pushScopeId, popScopeId } from "@histoire/vendors/vue";
2
- import { useStoryStore } from "../../stores/story.js";
1
+ import { defineComponent, useCssVars, computed, openBlock, createElementBlock, createVNode, unref, Fragment, createElementVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createBlock, withCtx, renderList } from "@histoire/vendors/vue";
3
2
  import { Icon } from "@histoire/vendors/iconify";
3
+ import { useStoryStore } from "../../stores/story.js";
4
4
  import { isMobile } from "../../util/responsive.js";
5
5
  import BaseSplitPane from "../base/BaseSplitPane.vue.js";
6
6
  import StoryVariantListItem from "./StoryVariantListItem.vue.js";
7
7
  import "./StoryVariantSingleView.vue.js";
8
8
  import _sfc_main$1 from "./StoryVariantSingleView.vue2.js";
9
9
  "use strict";
10
- const _withScopeId = (n) => (pushScopeId("data-v-ddfc5b4f"), n = n(), popScopeId(), n);
11
10
  const _hoisted_1 = {
12
11
  key: 0,
13
12
  class: "histoire-story-variant-single htw-p-2 htw-h-full __histoire-pane-shadow-from-right"
@@ -28,13 +27,13 @@ const _hoisted_5 = {
28
27
  const _sfc_main = /* @__PURE__ */ defineComponent({
29
28
  __name: "StoryVariantSingle",
30
29
  emits: {
31
- "open-variant-menu": () => true
30
+ openVariantMenu: () => true
32
31
  },
33
32
  setup(__props) {
34
33
  useCssVars((_ctx) => {
35
34
  var _a;
36
35
  return {
37
- "4d25d048": (_a = variant.value) == null ? void 0 : _a.iconColor
36
+ "41c4d268": (_a = variant.value) == null ? void 0 : _a.iconColor
38
37
  };
39
38
  });
40
39
  const storyStore = useStoryStore();
@@ -53,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
52
  unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_2, [
54
53
  createElementVNode("a", {
55
54
  class: "htw-px-6 htw-h-12 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-flex htw-gap-2 htw-flex-wrap htw-w-full htw-items-center htw-flex-none",
56
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("open-variant-menu"))
55
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("openVariantMenu"))
57
56
  }, [
58
57
  variant.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
59
58
  createVNode(unref(Icon), {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, unref } from "@histoire/vendors/vue";
2
- import { isDark } from "../../util/dark.js";
3
- import { histoireConfig } from "../../util/config.js";
4
2
  import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
3
+ import { histoireConfig } from "../../util/config.js";
4
+ import { isDark } from "../../util/dark.js";
5
5
  import { getContrastColor } from "../../util/preview-settings.js";
6
6
  import "./GenericRenderStory.vue.js";
7
7
  import StoryResponsivePreview from "./StoryResponsivePreview.vue.js";
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  } : { width: "100%", height: "100%" },
41
41
  {
42
42
  "--histoire-contrast-color": contrastColor.value,
43
- color: autoApplyContrastColor.value ? contrastColor.value : void 0
43
+ "color": autoApplyContrastColor.value ? contrastColor.value : void 0
44
44
  }
45
45
  ]),
46
46
  class: "htw-relative",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, ref, watch, computed, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, toRaw } from "@histoire/vendors/vue";
2
- import { useEventListener } from "@histoire/vendors/vue-use";
3
2
  import { applyState } from "@histoire/shared";
3
+ import { useEventListener } from "@histoire/vendors/vue-use";
4
+ import { useEventsStore } from "../../stores/events.js";
5
+ import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
4
6
  import { SANDBOX_READY, EVENT_SEND, STATE_SYNC, PREVIEW_SETTINGS_SYNC } from "../../util/const.js";
5
7
  import { getSandboxUrl } from "../../util/sandbox.js";
6
- import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
7
- import { useEventsStore } from "../../stores/events.js";
8
- import StoryResponsivePreview from "./StoryResponsivePreview.vue.js";
9
8
  import { toRawDeep } from "../../util/state.js";
9
+ import StoryResponsivePreview from "./StoryResponsivePreview.vue.js";
10
10
  "use strict";
11
11
  const _hoisted_1 = ["src"];
12
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, openBlock, createElementBlock, unref, createVNode, createBlock, createCommentVNode } from "@histoire/vendors/vue";
2
2
  import { isMobile } from "../../util/responsive.js";
3
- import "../toolbar/ToolbarTitle.vue.js";
4
- import "../toolbar/ToolbarResponsiveSize.vue.js";
3
+ import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
5
4
  import ToolbarBackground from "../toolbar/ToolbarBackground.vue.js";
6
- import "../toolbar/ToolbarTextDirection.vue.js";
7
5
  import "../toolbar/ToolbarNewTab.vue.js";
8
- import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
6
+ import "../toolbar/ToolbarResponsiveSize.vue.js";
7
+ import "../toolbar/ToolbarTextDirection.vue.js";
8
+ import "../toolbar/ToolbarTitle.vue.js";
9
9
  import "./StoryVariantSinglePreviewNative.vue.js";
10
10
  import "./StoryVariantSinglePreviewRemote.vue.js";
11
11
  import _sfc_main$1 from "../toolbar/ToolbarTitle.vue2.js";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent, watch, ref, unref, openBlock, createBlock, withCtx, createVNode, createElementBlock } from "@histoire/vendors/vue";
2
- import { useRouter, useRoute } from "@histoire/vendors/vue-router";
3
2
  import { Icon } from "@histoire/vendors/iconify";
3
+ import { useRouter, useRoute } from "@histoire/vendors/vue-router";
4
4
  import { useStoryStore } from "../../stores/story.js";
5
- import BaseSplitPane from "../base/BaseSplitPane.vue.js";
6
- import BaseEmpty from "../base/BaseEmpty.vue.js";
7
5
  import { isMobile } from "../../util/responsive.js";
8
- import StoryViewer from "./StoryViewer.vue.js";
9
- import "../panel/StorySidePanel.vue.js";
6
+ import BaseEmpty from "../base/BaseEmpty.vue.js";
7
+ import BaseSplitPane from "../base/BaseSplitPane.vue.js";
10
8
  import "../panel/StoryDocs.vue.js";
9
+ import "../panel/StorySidePanel.vue.js";
10
+ import StoryViewer from "./StoryViewer.vue.js";
11
11
  import _sfc_main$1 from "../panel/StoryDocs.vue2.js";
12
12
  import _sfc_main$2 from "../panel/StorySidePanel.vue2.js";
13
13
  "use strict";
@@ -1,8 +1,8 @@
1
1
  import _sfc_main from "./StoryViewer.vue2.js";
2
- import "./StoryViewer.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const StoryViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6046525f"]]);
5
+ const StoryViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-096f6d6e"]]);
6
6
  export {
7
7
  StoryViewer as default
8
8
  };
@@ -1,13 +1,12 @@
1
- import { defineComponent, useCssVars, computed, ref, watch, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, createCommentVNode, createVNode, withCtx, renderList, pushScopeId, popScopeId } from "@histoire/vendors/vue";
1
+ import { defineComponent, useCssVars, computed, ref, watch, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, createCommentVNode, createVNode, withCtx, renderList } from "@histoire/vendors/vue";
2
2
  import { useStoryStore } from "../../stores/story.js";
3
- import StoryVariantListItem from "./StoryVariantListItem.vue.js";
4
3
  import "../app/MobileOverlay.vue.js";
5
4
  import "./StoryVariantGrid.vue.js";
5
+ import StoryVariantListItem from "./StoryVariantListItem.vue.js";
6
6
  import StoryVariantSingle from "./StoryVariantSingle.vue.js";
7
7
  import _sfc_main$1 from "./StoryVariantGrid.vue2.js";
8
8
  import _sfc_main$2 from "../app/MobileOverlay.vue2.js";
9
9
  "use strict";
10
- const _withScopeId = (n) => (pushScopeId("data-v-6046525f"), n = n(), popScopeId(), n);
11
10
  const _hoisted_1 = { class: "histoire-story-viewer htw-bg-gray-50 htw-h-full dark:htw-bg-gray-750" };
12
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
12
  __name: "StoryViewer",
@@ -15,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
14
  useCssVars((_ctx) => {
16
15
  var _a;
17
16
  return {
18
- "663732b6": (_a = variant.value) == null ? void 0 : _a.iconColor
17
+ "0f021d3c": (_a = variant.value) == null ? void 0 : _a.iconColor
19
18
  };
20
19
  });
21
20
  const storyStore = useStoryStore();
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from "./ToolbarBackground.vue2.js";
2
- import "./ToolbarBackground.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
5
  const ToolbarBackground = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c48fb2b2"]]);