@histoire/app 0.17.17 → 1.0.0-alpha.2

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 (184) 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/{style.css → app.css} +41 -41
  7. package/dist/bundled/components/HomeView.vue2.js +2 -2
  8. package/dist/bundled/components/app/AppHeader.vue2.js +2 -2
  9. package/dist/bundled/components/app/AppLogo.vue2.js +3 -3
  10. package/dist/bundled/components/app/Breadcrumb.vue.js +2 -2
  11. package/dist/bundled/components/app/Breadcrumb.vue2.js +7 -9
  12. package/dist/bundled/components/app/HomeCounter.vue2.js +1 -1
  13. package/dist/bundled/components/app/InitialLoading.vue2.js +1 -1
  14. package/dist/bundled/components/app/MobileOverlay.vue2.js +1 -1
  15. package/dist/bundled/components/base/BaseButton.vue2.js +1 -1
  16. package/dist/bundled/components/base/BaseCheckbox.vue2.js +1 -1
  17. package/dist/bundled/components/base/BaseEmpty.vue.js +2 -3
  18. package/dist/bundled/components/base/BaseIcon.vue.js +1 -1
  19. package/dist/bundled/components/base/BaseIcon.vue2.js +1 -2
  20. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +1 -1
  21. package/dist/bundled/components/base/BaseListItem.vue2.js +1 -1
  22. package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
  23. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +2 -2
  24. package/dist/bundled/components/base/BaseOverflowTab.vue.js +1 -1
  25. package/dist/bundled/components/base/BaseSelect.vue2.js +3 -3
  26. package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
  27. package/dist/bundled/components/base/BaseSplitPane.vue2.js +2 -4
  28. package/dist/bundled/components/base/BaseTab.vue.js +1 -1
  29. package/dist/bundled/components/base/BaseTag.vue.js +1 -1
  30. package/dist/bundled/components/command/CommandPrompts.vue2.js +12 -16
  31. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +1 -1
  32. package/dist/bundled/components/command/PromptSelect.vue2.js +3 -3
  33. package/dist/bundled/components/command/PromptText.vue2.js +1 -1
  34. package/dist/bundled/components/misc/CheckerboardPattern.vue.js +31 -34
  35. package/dist/bundled/components/misc/HatchedPattern.vue.js +2 -3
  36. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +2 -2
  37. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +3 -5
  38. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +2 -3
  39. package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +1 -1
  40. package/dist/bundled/components/panel/PaneTabs.vue2.js +12 -12
  41. package/dist/bundled/components/panel/StatePresets.vue2.js +4 -5
  42. package/dist/bundled/components/panel/StoryControls.vue2.js +6 -7
  43. package/dist/bundled/components/panel/StoryDocs.vue2.js +5 -5
  44. package/dist/bundled/components/panel/StoryEvent.vue2.js +1 -1
  45. package/dist/bundled/components/panel/StoryEvents.vue2.js +3 -3
  46. package/dist/bundled/components/panel/StorySidePanel.vue2.js +11 -13
  47. package/dist/bundled/components/panel/StorySourceCode.vue.js +2 -2
  48. package/dist/bundled/components/panel/StorySourceCode.vue2.js +16 -21
  49. package/dist/bundled/components/search/SearchItem.vue.js +2 -2
  50. package/dist/bundled/components/search/SearchItem.vue2.js +4 -6
  51. package/dist/bundled/components/search/SearchItemContent.vue2.js +1 -1
  52. package/dist/bundled/components/search/SearchLoading.vue2.js +2 -2
  53. package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
  54. package/dist/bundled/components/search/SearchPane.vue2.js +42 -60
  55. package/dist/bundled/components/search/search-docs-data.js +1 -1
  56. package/dist/bundled/components/search/search-title-data.js +1 -1
  57. package/dist/bundled/components/story/GenericMountStory.vue2.js +1 -1
  58. package/dist/bundled/components/story/GenericRenderStory.vue2.js +1 -1
  59. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +2 -2
  60. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +7 -10
  61. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +5 -8
  62. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +2 -2
  63. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +13 -15
  64. package/dist/bundled/components/story/StoryVariantListItem.vue.js +2 -2
  65. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +3 -4
  66. package/dist/bundled/components/story/StoryVariantSingle.vue.js +2 -2
  67. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +2 -3
  68. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +3 -3
  69. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +4 -4
  70. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +5 -5
  71. package/dist/bundled/components/story/StoryView.vue2.js +5 -5
  72. package/dist/bundled/components/story/StoryViewer.vue.js +2 -2
  73. package/dist/bundled/components/story/StoryViewer.vue2.js +3 -4
  74. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +1 -1
  75. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
  76. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +3 -4
  77. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +1 -1
  78. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +17 -18
  79. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +1 -1
  80. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +1 -1
  81. package/dist/bundled/components/tree/StoryGroup.vue2.js +8 -10
  82. package/dist/bundled/components/tree/StoryList.vue2.js +3 -3
  83. package/dist/bundled/components/tree/StoryListFolder.vue.js +2 -2
  84. package/dist/bundled/components/tree/StoryListFolder.vue2.js +11 -13
  85. package/dist/bundled/components/tree/StoryListItem.vue.js +2 -2
  86. package/dist/bundled/components/tree/StoryListItem.vue2.js +4 -5
  87. package/dist/bundled/index.js +4 -4
  88. package/dist/bundled/plugin.js +1 -2
  89. package/dist/bundled/sandbox.js +14 -19
  90. package/dist/bundled/stores/folder.js +1 -1
  91. package/dist/bundled/stores/preview-settings.js +1 -1
  92. package/dist/bundled/util/dark.js +1 -1
  93. package/dist/bundled/util/events.js +2 -4
  94. package/dist/bundled/util/scroll.js +1 -1
  95. package/dist/style.css +281 -293
  96. package/package.json +22 -23
  97. package/src/app/App.vue +11 -11
  98. package/src/app/api.ts +2 -2
  99. package/src/app/components/HomeView.vue +1 -1
  100. package/src/app/components/app/AppHeader.vue +1 -1
  101. package/src/app/components/app/AppLogo.vue +3 -3
  102. package/src/app/components/app/Breadcrumb.vue +2 -2
  103. package/src/app/components/base/BaseOverflowMenu.vue +2 -2
  104. package/src/app/components/base/BaseSelect.vue +2 -2
  105. package/src/app/components/command/CommandPrompts.vue +3 -6
  106. package/src/app/components/command/PromptSelect.vue +1 -1
  107. package/src/app/components/panel/ControlsComponentPropItem.vue +3 -3
  108. package/src/app/components/panel/ControlsComponentProps.vue +1 -1
  109. package/src/app/components/panel/ControlsComponentState.vue +2 -2
  110. package/src/app/components/panel/ControlsComponentStateItem.vue +2 -2
  111. package/src/app/components/panel/PaneTabs.vue +2 -2
  112. package/src/app/components/panel/StatePresets.vue +4 -4
  113. package/src/app/components/panel/StoryControls.vue +4 -4
  114. package/src/app/components/panel/StoryDocs.vue +5 -5
  115. package/src/app/components/panel/StoryEvent.vue +1 -1
  116. package/src/app/components/panel/StoryEvents.vue +2 -2
  117. package/src/app/components/panel/StorySidePanel.vue +2 -2
  118. package/src/app/components/panel/StorySourceCode.vue +6 -6
  119. package/src/app/components/search/SearchItem.vue +2 -2
  120. package/src/app/components/search/SearchItemContent.vue +1 -1
  121. package/src/app/components/search/SearchPane.vue +49 -61
  122. package/src/app/components/search/search-docs-data.ts +2 -2
  123. package/src/app/components/search/search-title-data.ts +2 -2
  124. package/src/app/components/search/types.ts +1 -1
  125. package/src/app/components/story/GenericMountStory.vue +1 -1
  126. package/src/app/components/story/GenericRenderStory.vue +1 -1
  127. package/src/app/components/story/StoryResponsivePreview.vue +5 -5
  128. package/src/app/components/story/StoryVariantGrid.vue +1 -1
  129. package/src/app/components/story/StoryVariantGridItem.vue +8 -8
  130. package/src/app/components/story/StoryVariantListItem.vue +3 -3
  131. package/src/app/components/story/StoryVariantSingle.vue +1 -1
  132. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +3 -3
  133. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +6 -6
  134. package/src/app/components/story/StoryVariantSingleView.vue +4 -4
  135. package/src/app/components/story/StoryView.vue +4 -4
  136. package/src/app/components/story/StoryViewer.vue +1 -1
  137. package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
  138. package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
  139. package/src/app/components/tree/StoryGroup.vue +2 -2
  140. package/src/app/components/tree/StoryList.vue +2 -2
  141. package/src/app/components/tree/StoryListFolder.vue +1 -1
  142. package/src/app/components/tree/StoryListItem.vue +2 -2
  143. package/src/app/index.ts +4 -4
  144. package/src/app/sandbox.ts +10 -14
  145. package/src/app/stores/folder.ts +1 -1
  146. package/src/app/stores/preview-settings.ts +2 -2
  147. package/src/app/stores/story.ts +1 -1
  148. package/src/app/style/main.pcss +1 -1
  149. package/src/app/style/sandbox.css +1 -1
  150. package/src/app/types.ts +1 -1
  151. package/src/app/util/dark.ts +1 -1
  152. package/src/app/util/docs.ts +1 -1
  153. package/src/app/util/keyboard.ts +1 -1
  154. package/src/app/util/mapping.ts +1 -1
  155. package/src/app/util/preview-settings.ts +1 -1
  156. package/src/app/util/sandbox.ts +1 -1
  157. package/src/app/util/scroll.ts +1 -1
  158. package/src/app/util/variant.ts +1 -1
  159. package/src/bundle-main-dev.js +1 -1
  160. package/src/bundle-main.js +2 -2
  161. package/tailwind.config.cjs +1 -1
  162. package/vite.config.ts +2 -2
  163. package/dist/bundled/components/app/Breadcrumb.vue3.js +0 -1
  164. package/dist/bundled/components/base/BaseEmpty.vue2.js +0 -1
  165. package/dist/bundled/components/base/BaseIcon.vue3.js +0 -1
  166. package/dist/bundled/components/base/BaseSplitPane.vue3.js +0 -1
  167. package/dist/bundled/components/misc/HatchedPattern.vue2.js +0 -1
  168. package/dist/bundled/components/panel/StorySourceCode.vue3.js +0 -1
  169. package/dist/bundled/components/search/SearchItem.vue3.js +0 -1
  170. package/dist/bundled/components/story/StoryResponsivePreview.vue3.js +0 -1
  171. package/dist/bundled/components/story/StoryVariantGridItem.vue3.js +0 -1
  172. package/dist/bundled/components/story/StoryVariantListItem.vue3.js +0 -1
  173. package/dist/bundled/components/story/StoryVariantSingle.vue3.js +0 -1
  174. package/dist/bundled/components/story/StoryViewer.vue3.js +0 -1
  175. package/dist/bundled/components/toolbar/ToolbarBackground.vue3.js +0 -1
  176. package/dist/bundled/components/tree/StoryListFolder.vue3.js +0 -1
  177. package/dist/bundled/components/tree/StoryListItem.vue3.js +0 -1
  178. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/common.js +0 -52
  179. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js +0 -10
  180. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js +0 -16
  181. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/balance.js +0 -31
  182. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +0 -15
  183. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang.js +0 -60
  184. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/type.js +0 -11
@@ -1,17 +1,15 @@
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";
1
+ import { defineComponent, ref, watch, computed, createElementBlock, openBlock, Fragment, createElementVNode, createBlock, createCommentVNode, createVNode, withDirectives, unref, withKeys, withModifiers, vModelText, withCtx, createTextVNode, renderList } from "@histoire/vendors/vue";
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
8
  import { getCommandContext, builtinCommands } from "../../util/commands.js";
11
- import { useCommandStore } from "../../stores/command.js";
12
9
  import { useSelection } from "../../util/select.js";
13
- import SearchItem from "./SearchItem.vue.js";
10
+ import BaseEmpty from "../base/BaseEmpty.vue.js";
14
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, createBlock, createCommentVNode, openBlock, resolveDynamicComponent, mergeProps } from "@histoire/vendors/vue";
2
2
  import { clientSupportPlugins } from "virtual:$histoire-support-plugins-client";
3
3
  "use strict";
4
4
  const __default__ = {
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, watchEffect, markRaw, openBlock, createBlock, resolveDynamicComponent, mergeProps, createCommentVNode } from "@histoire/vendors/vue";
1
+ import { defineComponent, ref, watchEffect, markRaw, createBlock, createCommentVNode, openBlock, resolveDynamicComponent, mergeProps } 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-9bc3d486"]]);
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, createElementBlock, openBlock, createCommentVNode, createElementVNode, createVNode, normalizeClass, createBlock, createStaticVNode, renderSlot, Fragment, withDirectives } from "@histoire/vendors/vue";
3
2
  import { Icon } from "@histoire/vendors/iconify";
3
+ import { useEventListener } from "@histoire/vendors/vue-use";
4
4
  import { VTooltip } from "@histoire/vendors/floating-vue";
5
- import HatchedPattern from "../misc/HatchedPattern.vue.js";
6
- import CheckerboardPattern from "../misc/CheckerboardPattern.vue.js";
7
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-9bc3d486"), 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-9bc3d486></div><div class="htw-absolute htw-top-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-9bc3d486></div><div class="htw-absolute htw-bottom-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-9bc3d486></div><div class="htw-absolute htw-bottom-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-9bc3d486></div><div class="htw-absolute htw-left-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-9bc3d486></div><div class="htw-absolute htw-left-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-9bc3d486></div><div class="htw-absolute htw-right-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-9bc3d486></div><div class="htw-absolute htw-right-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-9bc3d486></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
- "321f9a07": unref(settings).backgroundColor
27
+ "5f6f4ee9": unref(settings).backgroundColor
31
28
  }));
32
29
  const props = __props;
33
30
  const settings = usePreviewSettingsStore().currentSettings;
@@ -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", {
@@ -1,10 +1,10 @@
1
- import { defineComponent, computed, ref, watch, onMounted, openBlock, createElementBlock, unref, createVNode, createBlock, createCommentVNode, createElementVNode, normalizeStyle, Fragment, renderList } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, ref, watch, onMounted, createElementBlock, openBlock, createCommentVNode, createElementVNode, unref, createVNode, createBlock, normalizeStyle, Fragment, renderList } from "@histoire/vendors/vue";
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 "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
5
6
  import ToolbarBackground from "../toolbar/ToolbarBackground.vue.js";
6
7
  import "../toolbar/ToolbarTextDirection.vue.js";
7
- import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
8
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";
@@ -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,11 +77,9 @@ 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
84
  gridColumnWidth.value = viewWidth.value * Number.parseInt(gridTemplateWidth.value) / 100 - gap;
88
85
  } else {
@@ -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-d3ab4dd6"]]);
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, createElementBlock, openBlock, 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 "../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";
14
13
  import CheckerboardPattern from "../misc/CheckerboardPattern.vue.js";
14
+ import "../toolbar/ToolbarNewTab.vue.js";
15
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-d3ab4dd6"), 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: {
@@ -41,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
36
  },
42
37
  setup(__props, { emit: __emit }) {
43
38
  useCssVars((_ctx) => ({
44
- "bd0f30ce": unref(variant).iconColor,
45
- "8da98e9c": unref(settings).backgroundColor
39
+ "60afaf4d": unref(variant).iconColor,
40
+ "3bd99e7e": unref(settings).backgroundColor
46
41
  }));
47
42
  const props = __props;
48
43
  const emit = __emit;
@@ -122,7 +117,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
117
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectVariant(), ["stop"])),
123
118
  onKeyup: _cache[1] || (_cache[1] = ($event) => selectVariant())
124
119
  }, [
125
- _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)),
126
124
  unref(settings).checkerboard ? (openBlock(), createBlock(CheckerboardPattern, {
127
125
  key: 0,
128
126
  class: "htw-absolute htw-inset-0 htw-w-full htw-h-full htw-text-gray-500/20"
@@ -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-f8e09a03"]]);
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";
1
+ import { defineComponent, useCssVars, unref, toRefs, ref, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, normalizeClass, toDisplayString } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
+ import { useScrollOnActive } from "../../util/scroll.js";
3
4
  import { useCurrentVariantRoute } from "../../util/variant.js";
4
5
  import BaseListItemLink from "../base/BaseListItemLink.vue.js";
5
- import { useScrollOnActive } from "../../util/scroll.js";
6
6
  "use strict";
7
- const _withScopeId = (n) => (pushScopeId("data-v-f8e09a03"), 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
- "2762f67a": 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-abf83c04"]]);
5
+ const StoryVariantSingle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c2a43485"]]);
6
6
  export {
7
7
  StoryVariantSingle as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, useCssVars, computed, openBlock, createElementBlock, createVNode, unref, Fragment, createElementVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createBlock, withCtx, renderList, pushScopeId, popScopeId } from "@histoire/vendors/vue";
1
+ import { defineComponent, useCssVars, computed, createElementBlock, openBlock, createVNode, unref, Fragment, createBlock, createElementVNode, createCommentVNode, createTextVNode, normalizeClass, toDisplayString, withCtx, renderList } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  import { useStoryStore } from "../../stores/story.js";
4
4
  import { isMobile } from "../../util/responsive.js";
@@ -7,7 +7,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-abf83c04"), 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"
@@ -34,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
33
  useCssVars((_ctx) => {
35
34
  var _a;
36
35
  return {
37
- "02b8e3da": (_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();
@@ -1,7 +1,7 @@
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";
1
+ import { defineComponent, computed, createBlock, openBlock, withCtx, createElementVNode, normalizeStyle, unref, normalizeClass } from "@histoire/vendors/vue";
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";
@@ -1,10 +1,10 @@
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";
1
+ import { defineComponent, ref, watch, computed, createBlock, openBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, toRaw } from "@histoire/vendors/vue";
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
8
  import { toRawDeep } from "../../util/state.js";
9
9
  import StoryResponsivePreview from "./StoryResponsivePreview.vue.js";
10
10
  "use strict";
@@ -1,11 +1,11 @@
1
- import { defineComponent, openBlock, createElementBlock, unref, createVNode, createBlock, createCommentVNode } from "@histoire/vendors/vue";
1
+ import { defineComponent, createElementBlock, openBlock, createCommentVNode, createBlock, unref, createVNode } 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,12 +1,12 @@
1
- import { defineComponent, watch, ref, unref, openBlock, createBlock, withCtx, createVNode, createElementBlock } from "@histoire/vendors/vue";
2
- import { useRouter, useRoute } from "@histoire/vendors/vue-router";
1
+ import { defineComponent, watch, ref, createBlock, createElementBlock, unref, openBlock, withCtx, createVNode } from "@histoire/vendors/vue";
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 "../panel/StorySidePanel.vue.js";
6
+ import BaseEmpty from "../base/BaseEmpty.vue.js";
7
+ import BaseSplitPane from "../base/BaseSplitPane.vue.js";
9
8
  import "../panel/StoryDocs.vue.js";
9
+ import "../panel/StorySidePanel.vue.js";
10
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";
@@ -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-a5a2e343"]]);
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, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, createBlock, createCommentVNode, unref, withCtx, renderList } from "@histoire/vendors/vue";
2
2
  import { useStoryStore } from "../../stores/story.js";
3
3
  import "../app/MobileOverlay.vue.js";
4
- import StoryVariantListItem from "./StoryVariantListItem.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-a5a2e343"), 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
- "597bf4c4": (_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,4 +1,4 @@
1
- import { defineComponent, resolveDirective, withDirectives, openBlock, createElementBlock, unref, createVNode } from "@histoire/vendors/vue";
1
+ import { defineComponent, resolveDirective, withDirectives, createElementBlock, openBlock, unref, createVNode } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  import { openInEditor } from "../../util/open-in-editor.js";
4
4
  "use strict";
@@ -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"]]);
@@ -1,4 +1,4 @@
1
- import { defineComponent, useCssVars, unref, computed, resolveComponent, resolveDirective, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, normalizeStyle, createCommentVNode, withDirectives, pushScopeId, popScopeId } from "@histoire/vendors/vue";
1
+ import { defineComponent, useCssVars, computed, unref, resolveComponent, resolveDirective, createBlock, createCommentVNode, openBlock, withCtx, withDirectives, createElementBlock, createElementVNode, createVNode, createTextVNode, Fragment, renderList, normalizeClass, toDisplayString, normalizeStyle } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
4
4
  import { histoireConfig } from "../../util/config.js";
@@ -6,7 +6,6 @@ import { getContrastColor } from "../../util/preview-settings.js";
6
6
  import "../base/BaseCheckbox.vue.js";
7
7
  import _sfc_main$1 from "../base/BaseCheckbox.vue2.js";
8
8
  "use strict";
9
- const _withScopeId = (n) => (pushScopeId("data-v-c48fb2b2"), n = n(), popScopeId(), n);
10
9
  const _hoisted_1 = { class: "htw-cursor-pointer hover:htw-text-primary-500 htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 htw-group" };
11
10
  const _hoisted_2 = { class: "bind-preview-bg htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/50 dark:htw-border-white/50 htw-flex htw-items-center htw-justify-center htw-text-xs" };
12
11
  const _hoisted_3 = { key: 0 };
@@ -43,9 +42,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
42
  modelValue: unref(settings).checkerboard,
44
43
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).checkerboard = $event)
45
44
  }, {
46
- default: withCtx(() => [
45
+ default: withCtx(() => _cache[1] || (_cache[1] = [
47
46
  createTextVNode(" Checkerboard ")
48
- ]),
47
+ ])),
49
48
  _: 1
50
49
  }, 8, ["modelValue"]),
51
50
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(histoireConfig).backgroundPresets, (option, index) => {
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveDirective, withDirectives, openBlock, createElementBlock, createVNode, unref } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, resolveDirective, withDirectives, createElementBlock, openBlock, createVNode, unref } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  import { getSandboxUrl } from "../../util/sandbox.js";
4
4
  "use strict";