@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,41 +1,38 @@
1
- import { createElementVNode, openBlock, createElementBlock } from "@histoire/vendors/vue";
1
+ import { createElementBlock, openBlock, createElementVNode } from "@histoire/vendors/vue";
2
2
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
3
3
  const _sfc_main = {};
4
4
  const _hoisted_1 = { fill: "none" };
5
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("pattern", {
6
- id: "checkerboard",
7
- width: "64",
8
- height: "64",
9
- patternUnits: "userSpaceOnUse"
10
- }, [
11
- /* @__PURE__ */ createElementVNode("rect", {
12
- x: "0",
13
- y: "0",
14
- width: "32",
15
- height: "32",
16
- fill: "currentColor"
17
- }),
18
- /* @__PURE__ */ createElementVNode("rect", {
19
- x: "32",
20
- y: "32",
21
- width: "32",
22
- height: "32",
23
- fill: "currentColor"
24
- })
25
- ], -1);
26
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("rect", {
27
- x: "0",
28
- y: "0",
29
- width: "100%",
30
- height: "100%",
31
- fill: "url(#checkerboard)"
32
- }, null, -1);
33
- const _hoisted_4 = [
34
- _hoisted_2,
35
- _hoisted_3
36
- ];
37
5
  function _sfc_render(_ctx, _cache) {
38
- return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_4);
6
+ return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
7
+ createElementVNode("pattern", {
8
+ id: "checkerboard",
9
+ width: "64",
10
+ height: "64",
11
+ patternUnits: "userSpaceOnUse"
12
+ }, [
13
+ createElementVNode("rect", {
14
+ x: "0",
15
+ y: "0",
16
+ width: "32",
17
+ height: "32",
18
+ fill: "currentColor"
19
+ }),
20
+ createElementVNode("rect", {
21
+ x: "32",
22
+ y: "32",
23
+ width: "32",
24
+ height: "32",
25
+ fill: "currentColor"
26
+ })
27
+ ], -1),
28
+ createElementVNode("rect", {
29
+ x: "0",
30
+ y: "0",
31
+ width: "100%",
32
+ height: "100%",
33
+ fill: "url(#checkerboard)"
34
+ }, null, -1)
35
+ ]));
39
36
  }
40
37
  const CheckerboardPattern = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
41
38
  export {
@@ -1,8 +1,7 @@
1
- import { pushScopeId, popScopeId, openBlock, createElementBlock } from "@histoire/vendors/vue";
2
- import "./HatchedPattern.vue2.js";
1
+ import { createElementBlock, openBlock } from "@histoire/vendors/vue";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const _sfc_main = {};
5
- const _withScopeId = (n) => (pushScopeId("data-v-91561117"), n = n(), popScopeId(), n);
6
5
  const _hoisted_1 = { class: "__histoire-hatched-pattern" };
7
6
  function _sfc_render(_ctx, _cache) {
8
7
  return openBlock(), createElementBlock("div", _hoisted_1);
@@ -1,6 +1,6 @@
1
- import { defineComponent, computed, resolveDirective, openBlock, createBlock, resolveDynamicComponent, withCtx, withDirectives, createVNode, unref, normalizeClass, withModifiers, createCommentVNode } from "@histoire/vendors/vue";
2
- import { Icon } from "@histoire/vendors/iconify";
1
+ import { defineComponent, computed, resolveDirective, createBlock, createCommentVNode, openBlock, resolveDynamicComponent, withCtx, withDirectives, createVNode, unref, withModifiers, normalizeClass } from "@histoire/vendors/vue";
3
2
  import { HstJson, HstCheckbox, HstNumber, HstText } from "@histoire/controls";
3
+ import { Icon } from "@histoire/vendors/iconify";
4
4
  "use strict";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "ControlsComponentPropItem",
@@ -1,12 +1,10 @@
1
- import { defineComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, withDirectives, createVNode, unref, createTextVNode, toDisplayString, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
1
+ import { defineComponent, resolveDirective, createElementBlock, openBlock, createElementVNode, withDirectives, createVNode, unref, createTextVNode, toDisplayString, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  import "./ControlsComponentPropItem.vue.js";
4
4
  import _sfc_main$1 from "./ControlsComponentPropItem.vue2.js";
5
5
  "use strict";
6
6
  const _hoisted_1 = { class: "histoire-controls-component-props" };
7
7
  const _hoisted_2 = { class: "htw-font-mono htw-p-2 htw-flex htw-items-center htw-gap-1" };
8
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-30" }, "<", -1);
9
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-30" }, ">", -1);
10
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
9
  __name: "ControlsComponentProps",
12
10
  props: {
@@ -25,9 +23,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
23
  [_directive_tooltip, "Auto-detected props"]
26
24
  ]),
27
25
  createElementVNode("div", null, [
28
- _hoisted_3,
26
+ _cache[0] || (_cache[0] = createElementVNode("span", { class: "htw-opacity-30" }, "<", -1)),
29
27
  createTextVNode(toDisplayString(_ctx.definition.name), 1),
30
- _hoisted_4
28
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "htw-opacity-30" }, ">", -1))
31
29
  ])
32
30
  ]),
33
31
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.definition.props, (prop) => {
@@ -1,11 +1,10 @@
1
- import { defineComponent, computed, resolveDirective, openBlock, createElementBlock, createElementVNode, withDirectives, createVNode, unref, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, resolveDirective, createElementBlock, openBlock, createElementVNode, withDirectives, createVNode, unref, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  import "./ControlsComponentStateItem.vue.js";
4
4
  import _sfc_main$1 from "./ControlsComponentStateItem.vue2.js";
5
5
  "use strict";
6
6
  const _hoisted_1 = { class: "histoire-controls-component-init-state" };
7
7
  const _hoisted_2 = { class: "htw-p-2 htw-flex htw-items-center htw-gap-1" };
8
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", null, " State ", -1);
9
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
9
  __name: "ControlsComponentState",
11
10
  props: {
@@ -24,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
23
  }, null, 512), [
25
24
  [_directive_tooltip, "Auto-detected state"]
26
25
  ]),
27
- _hoisted_3
26
+ _cache[0] || (_cache[0] = createElementVNode("div", null, " State ", -1))
28
27
  ]),
29
28
  (openBlock(true), createElementBlock(Fragment, null, renderList(stateKeys.value, (key) => {
30
29
  return openBlock(), createBlock(_sfc_main$1, {
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, createCommentVNode } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, createBlock, createCommentVNode, openBlock, resolveDynamicComponent } from "@histoire/vendors/vue";
2
2
  import { HstJson, HstCheckbox, HstNumber, HstText } from "@histoire/controls";
3
3
  "use strict";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,8 +1,8 @@
1
- import { defineComponent, toRefs, computed, openBlock, createBlock, withCtx, createVNode, createTextVNode, normalizeClass, unref, toDisplayString, createCommentVNode } from "@histoire/vendors/vue";
2
- import BaseTab from "../base/BaseTab.vue.js";
1
+ import { defineComponent, toRefs, computed, createBlock, openBlock, withCtx, createVNode, createTextVNode, normalizeClass, unref, createCommentVNode, toDisplayString } from "@histoire/vendors/vue";
3
2
  import { useEventsStore } from "../../stores/events.js";
4
3
  import "../base/BaseOverflowMenu.vue.js";
5
4
  import BaseOverflowTab from "../base/BaseOverflowTab.vue.js";
5
+ import BaseTab from "../base/BaseTab.vue.js";
6
6
  import BaseTag from "../base/BaseTag.vue.js";
7
7
  import "./StoryDocs.vue.js";
8
8
  import { useStoryDoc } from "./StoryDocs.vue2.js";
@@ -27,9 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "" } },
28
28
  matched: !_ctx.$route.query.tab
29
29
  }, {
30
- default: withCtx(() => [
30
+ default: withCtx(() => _cache[3] || (_cache[3] = [
31
31
  createTextVNode(" Controls ")
32
- ]),
32
+ ])),
33
33
  _: 1
34
34
  }, 8, ["to", "matched"]),
35
35
  createVNode(BaseOverflowTab, {
@@ -39,9 +39,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  "opacity-50": !unref(renderedDoc)
40
40
  })
41
41
  }, {
42
- default: withCtx(() => [
42
+ default: withCtx(() => _cache[4] || (_cache[4] = [
43
43
  createTextVNode(" Docs ")
44
- ]),
44
+ ])),
45
45
  _: 1
46
46
  }, 8, ["to", "matched", "class"]),
47
47
  createVNode(BaseOverflowTab, {
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  })
53
53
  }, {
54
54
  default: withCtx(() => [
55
- createTextVNode(" Events "),
55
+ _cache[5] || (_cache[5] = createTextVNode(" Events ")),
56
56
  unref(eventsStore).unseen ? (openBlock(), createBlock(BaseTag, { key: 0 }, {
57
57
  default: withCtx(() => [
58
58
  createTextVNode(toDisplayString(unref(eventsStore).unseen <= 99 ? unref(eventsStore).unseen : "99+"), 1)
@@ -68,9 +68,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "" } },
69
69
  matched: !_ctx.$route.query.tab
70
70
  }, {
71
- default: withCtx(() => [
71
+ default: withCtx(() => _cache[0] || (_cache[0] = [
72
72
  createTextVNode(" Controls ")
73
- ]),
73
+ ])),
74
74
  _: 1
75
75
  }, 8, ["to", "matched"]),
76
76
  createVNode(BaseTab, {
@@ -80,9 +80,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  "htw-opacity-50": !unref(renderedDoc)
81
81
  })
82
82
  }, {
83
- default: withCtx(() => [
83
+ default: withCtx(() => _cache[1] || (_cache[1] = [
84
84
  createTextVNode(" Docs ")
85
- ]),
85
+ ])),
86
86
  _: 1
87
87
  }, 8, ["to", "matched", "class"]),
88
88
  createVNode(BaseTab, {
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  })
94
94
  }, {
95
95
  default: withCtx(() => [
96
- createTextVNode(" Events "),
96
+ _cache[2] || (_cache[2] = createTextVNode(" Events ")),
97
97
  unref(eventsStore).unseen ? (openBlock(), createBlock(BaseTag, { key: 0 }, {
98
98
  default: withCtx(() => [
99
99
  createTextVNode(toDisplayString(unref(eventsStore).unseen <= 99 ? unref(eventsStore).unseen : "99+"), 1)
@@ -1,9 +1,9 @@
1
- import { defineComponent, computed, onMounted, ref, resolveDirective, openBlock, createElementBlock, createElementVNode, createVNode, unref, isRef, withKeys, withCtx, withDirectives, withModifiers, vModelText, toDisplayString, createBlock, createCommentVNode, normalizeClass, nextTick } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, onMounted, ref, resolveDirective, createElementBlock, openBlock, createElementVNode, withDirectives, createVNode, withKeys, unref, isRef, withCtx, createCommentVNode, toDisplayString, createBlock, withModifiers, vModelText, normalizeClass, nextTick } from "@histoire/vendors/vue";
2
+ import { clone, omit, applyState } from "@histoire/shared";
2
3
  import { Icon } from "@histoire/vendors/iconify";
3
4
  import { useStorage, useTimeoutFn, onClickOutside } from "@histoire/vendors/vue-use";
4
- import { clone, omit, applyState } from "@histoire/shared";
5
- import "../base/BaseSelect.vue.js";
6
5
  import { toRawDeep } from "../../util/state.js";
6
+ import "../base/BaseSelect.vue.js";
7
7
  import _sfc_main$1 from "../base/BaseSelect.vue2.js";
8
8
  "use strict";
9
9
  const _hoisted_1 = { class: "histoire-state-presets htw-flex htw-gap-2 htw-w-full htw-items-center" };
@@ -75,8 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
75
75
  savedNotif.value = false;
76
76
  }, 1e3);
77
77
  async function savePreset() {
78
- if (!canEdit.value)
79
- return;
78
+ if (!canEdit.value) return;
80
79
  const preset = presetStates.value.get(selectedOption.value);
81
80
  preset.state = clone(omit(toRawDeep(props.variant.state), omitKeys));
82
81
  savedNotif.value = true;
@@ -1,10 +1,10 @@
1
- import { defineComponent, ref, watch, computed, openBlock, createElementBlock, createElementVNode, createBlock, createCommentVNode, createVNode, withCtx, unref, Fragment, renderList } from "@histoire/vendors/vue";
1
+ import { defineComponent, ref, watch, computed, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, createVNode, withCtx, unref, Fragment, renderList } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
- import "../story/GenericRenderStory.vue.js";
4
3
  import BaseEmpty from "../base/BaseEmpty.vue.js";
5
- import "./StatePresets.vue.js";
4
+ import "../story/GenericRenderStory.vue.js";
6
5
  import "./ControlsComponentProps.vue.js";
7
6
  import "./ControlsComponentState.vue.js";
7
+ import "./StatePresets.vue.js";
8
8
  import _sfc_main$1 from "./StatePresets.vue2.js";
9
9
  import _sfc_main$2 from "../story/GenericRenderStory.vue2.js";
10
10
  import _sfc_main$3 from "./ControlsComponentState.vue2.js";
@@ -16,8 +16,7 @@ const _hoisted_1 = {
16
16
  };
17
17
  const _hoisted_2 = { class: "htw-h-9 htw-flex-none htw-px-2 htw-flex htw-items-center" };
18
18
  const _hoisted_3 = { key: 1 };
19
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", null, "No controls available for this story", -1);
20
- const _hoisted_5 = { key: 3 };
19
+ const _hoisted_4 = { key: 3 };
21
20
  const _sfc_main = /* @__PURE__ */ defineComponent({
22
21
  __name: "StoryControls",
23
22
  props: {
@@ -66,11 +65,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
65
  icon: "carbon:audio-console",
67
66
  class: "htw-w-8 htw-h-8 htw-opacity-50 htw-mb-6"
68
67
  }),
69
- _hoisted_4
68
+ _cache[1] || (_cache[1] = createElementVNode("span", null, "No controls available for this story", -1))
70
69
  ]),
71
70
  _: 1
72
71
  })) : createCommentVNode("", true),
73
- ((_d = (_c = __props.variant.state) == null ? void 0 : _c._hPropDefs) == null ? void 0 : _d.length) ? (openBlock(), createElementBlock("div", _hoisted_5, [
72
+ ((_d = (_c = __props.variant.state) == null ? void 0 : _c._hPropDefs) == null ? void 0 : _d.length) ? (openBlock(), createElementBlock("div", _hoisted_4, [
74
73
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.variant.state._hPropDefs, (def, index) => {
75
74
  return openBlock(), createBlock(_sfc_main$4, {
76
75
  key: index,
@@ -1,10 +1,10 @@
1
- import { defineComponent, toRefs, watch, ref, computed, openBlock, createElementBlock, unref, normalizeClass, createBlock, createCommentVNode, withCtx, createVNode, createTextVNode, watchEffect, nextTick } from "@histoire/vendors/vue";
2
- import { markdownFiles } from "virtual:$histoire-markdown-files";
1
+ import { defineComponent, toRefs, watch, ref, computed, createElementBlock, openBlock, createCommentVNode, createBlock, unref, normalizeClass, withCtx, createVNode, createTextVNode, watchEffect, nextTick } from "@histoire/vendors/vue";
3
2
  import { Icon } from "@histoire/vendors/iconify";
3
+ import { markdownFiles } from "virtual:$histoire-markdown-files";
4
4
  import { useRouter, useRoute } from "@histoire/vendors/vue-router";
5
5
  import { histoireConfig } from "../../util/config.js";
6
- import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
7
6
  import BaseEmpty from "../base/BaseEmpty.vue.js";
7
+ import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
8
8
  import _sfc_main$1 from "../toolbar/DevOnlyToolbarOpenInEditor.vue2.js";
9
9
  "use strict";
10
10
  const _hoisted_1 = ["innerHTML"];
@@ -12,7 +12,7 @@ function useStoryDoc(story) {
12
12
  const renderedDoc = ref("");
13
13
  watchEffect(async () => {
14
14
  var _a;
15
- const mdKey = story.value.file.filePath.replace(/\.(\w*?)$/, ".md");
15
+ const mdKey = story.value.file.filePath.replace(/\.(\w*)$/, ".md");
16
16
  if (markdownFiles[mdKey]) {
17
17
  const md = await markdownFiles[mdKey]();
18
18
  renderedDoc.value = md.html;
@@ -144,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
144
  icon: "carbon:document-unknown",
145
145
  class: "htw-w-8 htw-h-8 htw-opacity-50 htw-mb-6"
146
146
  }),
147
- createTextVNode(" No documentation available ")
147
+ _cache[0] || (_cache[0] = createTextVNode(" No documentation available "))
148
148
  ]),
149
149
  _: 1
150
150
  })) : (openBlock(), createElementBlock("div", {
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, toDisplayString, createElementBlock, createCommentVNode } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, toDisplayString, normalizeClass, createElementBlock, createCommentVNode } from "@histoire/vendors/vue";
2
2
  "use strict";
3
3
  const _hoisted_1 = {
4
4
  key: 0,
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed, onMounted, watch, nextTick, ref, openBlock, createElementBlock, createBlock, withCtx, createVNode, unref, createTextVNode, Fragment, renderList } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, onMounted, watch, nextTick, ref, createElementBlock, openBlock, createBlock, withCtx, createVNode, createTextVNode, unref, Fragment, renderList } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
- import BaseEmpty from "../base/BaseEmpty.vue.js";
4
3
  import { useEventsStore } from "../../stores/events.js";
4
+ import BaseEmpty from "../base/BaseEmpty.vue.js";
5
5
  import "./StoryEvent.vue.js";
6
6
  import _sfc_main$1 from "./StoryEvent.vue2.js";
7
7
  "use strict";
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  icon: "carbon:event-schedule",
34
34
  class: "htw-w-8 htw-h-8 htw-opacity-50 htw-mb-6"
35
35
  }),
36
- createTextVNode(" No event fired ")
36
+ _cache[0] || (_cache[0] = createTextVNode(" No event fired "))
37
37
  ]),
38
38
  _: 1
39
39
  })) : (openBlock(), createElementBlock("div", _hoisted_1, [
@@ -1,21 +1,19 @@
1
- import { defineComponent, computed, unref, openBlock, createBlock, withCtx, createElementVNode, createVNode, resolveDynamicComponent } from "@histoire/vendors/vue";
1
+ import { defineComponent, computed, createBlock, unref, openBlock, withCtx, createElementVNode, createVNode, resolveDynamicComponent } from "@histoire/vendors/vue";
2
2
  import { useRoute } from "@histoire/vendors/vue-router";
3
3
  import { useStoryStore } from "../../stores/story.js";
4
- import BaseSplitPane from "../base/BaseSplitPane.vue.js";
5
4
  import BaseEmpty from "../base/BaseEmpty.vue.js";
5
+ import BaseSplitPane from "../base/BaseSplitPane.vue.js";
6
+ import "./PaneTabs.vue.js";
6
7
  import "./StoryControls.vue.js";
7
8
  import "./StoryDocs.vue.js";
8
9
  import "./StoryEvents.vue.js";
9
10
  import StorySourceCode from "./StorySourceCode.vue.js";
10
- import "./PaneTabs.vue.js";
11
11
  import _sfc_main$1 from "./StoryControls.vue2.js";
12
12
  import _sfc_main$2 from "./StoryEvents.vue2.js";
13
13
  import _sfc_main$3 from "./StoryDocs.vue2.js";
14
14
  import _sfc_main$4 from "./PaneTabs.vue2.js";
15
15
  "use strict";
16
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "Select a variant", -1);
17
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, "Loading...", -1);
18
- const _hoisted_3 = { class: "htw-flex htw-flex-col htw-h-full" };
16
+ const _hoisted_1 = { class: "htw-flex htw-flex-col htw-h-full" };
19
17
  const _sfc_main = /* @__PURE__ */ defineComponent({
20
18
  __name: "StorySidePanel",
21
19
  setup(__props) {
@@ -36,17 +34,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
34
  key: 0,
37
35
  class: "histoire-story-side-panel histoire-selection"
38
36
  }, {
39
- default: withCtx(() => [
40
- _hoisted_1
41
- ]),
37
+ default: withCtx(() => _cache[0] || (_cache[0] = [
38
+ createElementVNode("span", null, "Select a variant", -1)
39
+ ])),
42
40
  _: 1
43
41
  })) : !unref(storyStore).currentVariant.configReady || !unref(storyStore).currentVariant.previewReady ? (openBlock(), createBlock(BaseEmpty, {
44
42
  key: 1,
45
43
  class: "histoire-story-side-panel histoire-loading"
46
44
  }, {
47
- default: withCtx(() => [
48
- _hoisted_2
49
- ]),
45
+ default: withCtx(() => _cache[1] || (_cache[1] = [
46
+ createElementVNode("span", null, "Loading...", -1)
47
+ ])),
50
48
  _: 1
51
49
  })) : (openBlock(), createBlock(BaseSplitPane, {
52
50
  key: 2,
@@ -56,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
54
  "data-test-id": "story-side-panel"
57
55
  }, {
58
56
  first: withCtx(() => [
59
- createElementVNode("div", _hoisted_3, [
57
+ createElementVNode("div", _hoisted_1, [
60
58
  createVNode(_sfc_main$4, {
61
59
  story: unref(storyStore).currentStory,
62
60
  variant: unref(storyStore).currentVariant
@@ -1,8 +1,8 @@
1
1
  import _sfc_main from "./StorySourceCode.vue2.js";
2
- import "./StorySourceCode.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f7d2e46a"]]);
5
+ const StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-96af7f40"]]);
6
6
  export {
7
7
  StorySourceCode as default
8
8
  };
@@ -1,28 +1,24 @@
1
- import { defineComponent, ref, watchEffect, markRaw, shallowRef, watch, computed, onMounted, nextTick, resolveDirective, openBlock, createElementBlock, createElementVNode, withDirectives, normalizeClass, createVNode, unref, createCommentVNode, toDisplayString, createBlock, withCtx, pushScopeId, popScopeId } from "@histoire/vendors/vue";
2
- import { Icon } from "@histoire/vendors/iconify";
3
- import { getHighlighter } from "shiki-es";
1
+ import { defineComponent, ref, watchEffect, markRaw, shallowRef, watch, computed, onMounted, nextTick, resolveDirective, createElementBlock, openBlock, createCommentVNode, createBlock, createElementVNode, createVNode, withDirectives, normalizeClass, unref, toDisplayString, withCtx } from "@histoire/vendors/vue";
4
2
  import { HstCopyIcon } from "@histoire/controls";
5
3
  import { unindent } from "@histoire/shared";
4
+ import { Icon } from "@histoire/vendors/iconify";
5
+ import { createHighlighter } from "shiki";
6
6
  import { clientSupportPlugins } from "virtual:$histoire-support-plugins-client";
7
7
  import { isDark } from "../../util/dark.js";
8
8
  import BaseEmpty from "../base/BaseEmpty.vue.js";
9
9
  "use strict";
10
- const _withScopeId = (n) => (pushScopeId("data-v-f7d2e46a"), n = n(), popScopeId(), n);
11
10
  const _hoisted_1 = { class: "histoire-story-source-code htw-bg-gray-50 dark:htw-bg-gray-750 htw-h-full htw-overflow-hidden htw-flex htw-flex-col" };
12
11
  const _hoisted_2 = {
13
12
  key: 0,
14
13
  class: "htw-h-10 htw-flex-none htw-border-b htw-border-solid htw-border-gray-500/5 htw-px-4 htw-flex htw-items-center htw-gap-2"
15
14
  };
16
- const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "htw-text-gray-900 dark:htw-text-gray-100" }, " Source ", -1));
17
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "htw-flex-1" }, null, -1));
18
- const _hoisted_5 = { class: "htw-flex htw-flex-none htw-gap-px htw-h-full htw-py-2" };
19
- const _hoisted_6 = {
15
+ const _hoisted_3 = { class: "htw-flex htw-flex-none htw-gap-px htw-h-full htw-py-2" };
16
+ const _hoisted_4 = {
20
17
  key: 1,
21
18
  class: "htw-text-red-500 htw-h-full htw-p-2 htw-overflow-auto htw-font-mono htw-text-sm"
22
19
  };
23
- const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "Not available", -1));
24
- const _hoisted_8 = ["value"];
25
- const _hoisted_9 = ["innerHTML"];
20
+ const _hoisted_5 = ["value"];
21
+ const _hoisted_6 = ["innerHTML"];
26
22
  const _sfc_main = /* @__PURE__ */ defineComponent({
27
23
  __name: "StorySourceCode",
28
24
  props: {
@@ -45,8 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
41
  const error = ref(null);
46
42
  watch(() => [props.variant, generateSourceCodeFn.value], async () => {
47
43
  var _a, _b, _c, _d;
48
- if (!generateSourceCodeFn.value)
49
- return;
44
+ if (!generateSourceCodeFn.value) return;
50
45
  error.value = null;
51
46
  dynamicSourceCode.value = "";
52
47
  try {
@@ -93,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
88
  return staticSourceCode.value;
94
89
  });
95
90
  onMounted(async () => {
96
- highlighter.value = await getHighlighter({
91
+ highlighter.value = await createHighlighter({
97
92
  langs: [
98
93
  "html",
99
94
  "jsx"
@@ -131,9 +126,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
126
  const _directive_tooltip = resolveDirective("tooltip");
132
127
  return openBlock(), createElementBlock("div", _hoisted_1, [
133
128
  !error.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
134
- _hoisted_3,
135
- _hoisted_4,
136
- createElementVNode("div", _hoisted_5, [
129
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "htw-text-gray-900 dark:htw-text-gray-100" }, " Source ", -1)),
130
+ _cache[3] || (_cache[3] = createElementVNode("div", { class: "htw-flex-1" }, null, -1)),
131
+ createElementVNode("div", _hoisted_3, [
137
132
  withDirectives((openBlock(), createElementBlock("button", {
138
133
  class: normalizeClass(["htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-1 htw-bg-gray-500/10 htw-rounded-l htw-transition-all htw-ease-[cubic-bezier(0,1,.6,1)] htw-duration-300 htw-overflow-hidden", [
139
134
  displayedSource.value !== "dynamic" ? "htw-max-w-6 htw-opacity-70" : "htw-max-w-[82px] htw-text-primary-600 dark:htw-text-primary-400",
@@ -178,13 +173,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
178
173
  class: "htw-flex-none"
179
174
  }, null, 8, ["content"])
180
175
  ])) : createCommentVNode("", true),
181
- error.value ? (openBlock(), createElementBlock("div", _hoisted_6, " Error: " + toDisplayString(error.value), 1)) : !displayedSourceCode.value ? (openBlock(), createBlock(BaseEmpty, { key: 2 }, {
176
+ error.value ? (openBlock(), createElementBlock("div", _hoisted_4, " Error: " + toDisplayString(error.value), 1)) : !displayedSourceCode.value ? (openBlock(), createBlock(BaseEmpty, { key: 2 }, {
182
177
  default: withCtx(() => [
183
178
  createVNode(unref(Icon), {
184
179
  icon: "carbon:code-hide",
185
180
  class: "htw-w-8 htw-h-8 htw-opacity-50 htw-mb-6"
186
181
  }),
187
- _hoisted_7
182
+ _cache[4] || (_cache[4] = createElementVNode("span", null, "Not available", -1))
188
183
  ]),
189
184
  _: 1
190
185
  })) : !sourceHtml.value ? (openBlock(), createElementBlock("textarea", {
@@ -196,7 +191,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
196
191
  readonly: "",
197
192
  "data-test-id": "story-source-code",
198
193
  onScroll
199
- }, null, 40, _hoisted_8)) : (openBlock(), createElementBlock("div", {
194
+ }, null, 40, _hoisted_5)) : (openBlock(), createElementBlock("div", {
200
195
  key: 4,
201
196
  ref_key: "scroller",
202
197
  ref: scroller,
@@ -207,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
207
202
  createElementVNode("div", {
208
203
  class: "__histoire-code htw-p-4 htw-w-fit",
209
204
  innerHTML: sourceHtml.value
210
- }, null, 8, _hoisted_9)
205
+ }, null, 8, _hoisted_6)
211
206
  ], 544))
212
207
  ]);
213
208
  };
@@ -1,8 +1,8 @@
1
1
  import _sfc_main from "./SearchItem.vue2.js";
2
- import "./SearchItem.vue3.js";
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const SearchItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d75a2748"]]);
5
+ const SearchItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f94ad2b"]]);
6
6
  export {
7
7
  SearchItem as default
8
8
  };
@@ -1,14 +1,13 @@
1
- import { defineComponent, useCssVars, ref, toRefs, openBlock, createElementBlock, unref, createBlock, withCtx, createVNode, createCommentVNode, pushScopeId, popScopeId } from "@histoire/vendors/vue";
1
+ import { defineComponent, useCssVars, ref, toRefs, createElementBlock, openBlock, unref, createBlock, createCommentVNode, withCtx, createVNode } from "@histoire/vendors/vue";
2
2
  import { useRouter } from "@histoire/vendors/vue-router";
3
3
  import { onKeyboardShortcut } from "../../util/keyboard.js";
4
4
  import { useScrollOnActive } from "../../util/scroll.js";
5
- import BaseListItemLink from "../base/BaseListItemLink.vue.js";
6
5
  import "../base/BaseListItem.vue.js";
6
+ import BaseListItemLink from "../base/BaseListItemLink.vue.js";
7
7
  import "./SearchItemContent.vue.js";
8
8
  import _sfc_main$1 from "./SearchItemContent.vue2.js";
9
9
  import _sfc_main$2 from "../base/BaseListItem.vue2.js";
10
10
  "use strict";
11
- const _withScopeId = (n) => (pushScopeId("data-v-d75a2748"), n = n(), popScopeId(), n);
12
11
  const _hoisted_1 = ["data-selected"];
13
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
13
  __name: "SearchItem",
@@ -27,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
26
  },
28
27
  setup(__props, { emit: __emit }) {
29
28
  useCssVars((_ctx) => ({
30
- "ddaae392": __props.result.iconColor
29
+ "1f9aa6ca": __props.result.iconColor
31
30
  }));
32
31
  const props = __props;
33
32
  const emit = __emit;
@@ -36,8 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
35
  useScrollOnActive(selected, el);
37
36
  const router = useRouter();
38
37
  onKeyboardShortcut(["enter"], () => {
39
- if (!props.selected)
40
- return;
38
+ if (!props.selected) return;
41
39
  action();
42
40
  });
43
41
  function action(fromClick = false) {
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, Fragment, createVNode, normalizeClass, createElementVNode, createTextVNode, toDisplayString, renderList, createBlock, unref, createCommentVNode } from "@histoire/vendors/vue";
1
+ import { defineComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, normalizeClass, createCommentVNode, createTextVNode, toDisplayString, renderList, createBlock, unref } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  import BaseIcon from "../base/BaseIcon.vue.js";
4
4
  "use strict";
@@ -1,4 +1,4 @@
1
- import { openBlock, unref, createVNode, createTextVNode, createElementBlock, defineComponent } from "@histoire/vendors/vue";
1
+ import { defineComponent, createElementBlock, openBlock, createVNode, createTextVNode, unref } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
3
  "use strict";
4
4
  const _hoisted_1 = { class: "histoire-search-loading htw-flex htw-items-center htw-gap-4 htw-pl-6 htw-border htw-border-transparent focus-visible:htw-border-primary-500 htw-h-[51px] htw-opacity-30" };
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  icon: "carbon:search",
12
12
  class: "flex-none htw-w-4 htw-h-4"
13
13
  }),
14
- createTextVNode(" Loading... ")
14
+ _cache[0] || (_cache[0] = createTextVNode(" Loading... "))
15
15
  ]);
16
16
  };
17
17
  }
@@ -1,4 +1,4 @@
1
- import { defineAsyncComponent, openBlock, createElementVNode, unref, createVNode, createElementBlock, vShow, withDirectives, defineComponent } from "@histoire/vendors/vue";
1
+ import { defineComponent, defineAsyncComponent, withDirectives, openBlock, createElementBlock, createElementVNode, createVNode, unref, vShow } from "@histoire/vendors/vue";
2
2
  import "./SearchLoading.vue.js";
3
3
  import _sfc_main$1 from "./SearchLoading.vue2.js";
4
4
  "use strict";