@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.
- package/dist/app/style/main.pcss +1 -1
- package/dist/app/style/sandbox.css +1 -1
- package/dist/bundle-main-dev.js +1 -1
- package/dist/bundle-main.js +2 -2
- package/dist/bundled/App.vue2.js +11 -11
- package/dist/bundled/{style.css → app.css} +41 -41
- package/dist/bundled/components/HomeView.vue2.js +2 -2
- package/dist/bundled/components/app/AppHeader.vue2.js +2 -2
- package/dist/bundled/components/app/AppLogo.vue2.js +3 -3
- package/dist/bundled/components/app/Breadcrumb.vue.js +2 -2
- package/dist/bundled/components/app/Breadcrumb.vue2.js +7 -9
- package/dist/bundled/components/app/HomeCounter.vue2.js +1 -1
- package/dist/bundled/components/app/InitialLoading.vue2.js +1 -1
- package/dist/bundled/components/app/MobileOverlay.vue2.js +1 -1
- package/dist/bundled/components/base/BaseButton.vue2.js +1 -1
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +1 -1
- package/dist/bundled/components/base/BaseEmpty.vue.js +2 -3
- package/dist/bundled/components/base/BaseIcon.vue.js +1 -1
- package/dist/bundled/components/base/BaseIcon.vue2.js +1 -2
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +1 -1
- package/dist/bundled/components/base/BaseListItem.vue2.js +1 -1
- package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +2 -2
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +1 -1
- package/dist/bundled/components/base/BaseSelect.vue2.js +3 -3
- package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +2 -4
- package/dist/bundled/components/base/BaseTab.vue.js +1 -1
- package/dist/bundled/components/base/BaseTag.vue.js +1 -1
- package/dist/bundled/components/command/CommandPrompts.vue2.js +12 -16
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +1 -1
- package/dist/bundled/components/command/PromptSelect.vue2.js +3 -3
- package/dist/bundled/components/command/PromptText.vue2.js +1 -1
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +31 -34
- package/dist/bundled/components/misc/HatchedPattern.vue.js +2 -3
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +2 -2
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +3 -5
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +2 -3
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +1 -1
- package/dist/bundled/components/panel/PaneTabs.vue2.js +12 -12
- package/dist/bundled/components/panel/StatePresets.vue2.js +4 -5
- package/dist/bundled/components/panel/StoryControls.vue2.js +6 -7
- package/dist/bundled/components/panel/StoryDocs.vue2.js +5 -5
- package/dist/bundled/components/panel/StoryEvent.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryEvents.vue2.js +3 -3
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +11 -13
- package/dist/bundled/components/panel/StorySourceCode.vue.js +2 -2
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +16 -21
- package/dist/bundled/components/search/SearchItem.vue.js +2 -2
- package/dist/bundled/components/search/SearchItem.vue2.js +4 -6
- package/dist/bundled/components/search/SearchItemContent.vue2.js +1 -1
- package/dist/bundled/components/search/SearchLoading.vue2.js +2 -2
- package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue2.js +42 -60
- package/dist/bundled/components/search/search-docs-data.js +1 -1
- package/dist/bundled/components/search/search-title-data.js +1 -1
- package/dist/bundled/components/story/GenericMountStory.vue2.js +1 -1
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +2 -2
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +7 -10
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +5 -8
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +2 -2
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +13 -15
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +2 -2
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +3 -4
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +2 -2
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +2 -3
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +3 -3
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +4 -4
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +5 -5
- package/dist/bundled/components/story/StoryView.vue2.js +5 -5
- package/dist/bundled/components/story/StoryViewer.vue.js +2 -2
- package/dist/bundled/components/story/StoryViewer.vue2.js +3 -4
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +3 -4
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +17 -18
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryGroup.vue2.js +8 -10
- package/dist/bundled/components/tree/StoryList.vue2.js +3 -3
- package/dist/bundled/components/tree/StoryListFolder.vue.js +2 -2
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +11 -13
- package/dist/bundled/components/tree/StoryListItem.vue.js +2 -2
- package/dist/bundled/components/tree/StoryListItem.vue2.js +4 -5
- package/dist/bundled/index.js +4 -4
- package/dist/bundled/plugin.js +1 -2
- package/dist/bundled/sandbox.js +14 -19
- package/dist/bundled/stores/folder.js +1 -1
- package/dist/bundled/stores/preview-settings.js +1 -1
- package/dist/bundled/util/dark.js +1 -1
- package/dist/bundled/util/events.js +2 -4
- package/dist/bundled/util/scroll.js +1 -1
- package/dist/style.css +281 -293
- package/package.json +22 -23
- package/src/app/App.vue +11 -11
- package/src/app/api.ts +2 -2
- package/src/app/components/HomeView.vue +1 -1
- package/src/app/components/app/AppHeader.vue +1 -1
- package/src/app/components/app/AppLogo.vue +3 -3
- package/src/app/components/app/Breadcrumb.vue +2 -2
- package/src/app/components/base/BaseOverflowMenu.vue +2 -2
- package/src/app/components/base/BaseSelect.vue +2 -2
- package/src/app/components/command/CommandPrompts.vue +3 -6
- package/src/app/components/command/PromptSelect.vue +1 -1
- package/src/app/components/panel/ControlsComponentPropItem.vue +3 -3
- package/src/app/components/panel/ControlsComponentProps.vue +1 -1
- package/src/app/components/panel/ControlsComponentState.vue +2 -2
- package/src/app/components/panel/ControlsComponentStateItem.vue +2 -2
- package/src/app/components/panel/PaneTabs.vue +2 -2
- package/src/app/components/panel/StatePresets.vue +4 -4
- package/src/app/components/panel/StoryControls.vue +4 -4
- package/src/app/components/panel/StoryDocs.vue +5 -5
- package/src/app/components/panel/StoryEvent.vue +1 -1
- package/src/app/components/panel/StoryEvents.vue +2 -2
- package/src/app/components/panel/StorySidePanel.vue +2 -2
- package/src/app/components/panel/StorySourceCode.vue +6 -6
- package/src/app/components/search/SearchItem.vue +2 -2
- package/src/app/components/search/SearchItemContent.vue +1 -1
- package/src/app/components/search/SearchPane.vue +49 -61
- package/src/app/components/search/search-docs-data.ts +2 -2
- package/src/app/components/search/search-title-data.ts +2 -2
- package/src/app/components/search/types.ts +1 -1
- package/src/app/components/story/GenericMountStory.vue +1 -1
- package/src/app/components/story/GenericRenderStory.vue +1 -1
- package/src/app/components/story/StoryResponsivePreview.vue +5 -5
- package/src/app/components/story/StoryVariantGrid.vue +1 -1
- package/src/app/components/story/StoryVariantGridItem.vue +8 -8
- package/src/app/components/story/StoryVariantListItem.vue +3 -3
- package/src/app/components/story/StoryVariantSingle.vue +1 -1
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +3 -3
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +6 -6
- package/src/app/components/story/StoryVariantSingleView.vue +4 -4
- package/src/app/components/story/StoryView.vue +4 -4
- package/src/app/components/story/StoryViewer.vue +1 -1
- package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
- package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
- package/src/app/components/tree/StoryGroup.vue +2 -2
- package/src/app/components/tree/StoryList.vue +2 -2
- package/src/app/components/tree/StoryListFolder.vue +1 -1
- package/src/app/components/tree/StoryListItem.vue +2 -2
- package/src/app/index.ts +4 -4
- package/src/app/sandbox.ts +10 -14
- package/src/app/stores/folder.ts +1 -1
- package/src/app/stores/preview-settings.ts +2 -2
- package/src/app/stores/story.ts +1 -1
- package/src/app/style/main.pcss +1 -1
- package/src/app/style/sandbox.css +1 -1
- package/src/app/types.ts +1 -1
- package/src/app/util/dark.ts +1 -1
- package/src/app/util/docs.ts +1 -1
- package/src/app/util/keyboard.ts +1 -1
- package/src/app/util/mapping.ts +1 -1
- package/src/app/util/preview-settings.ts +1 -1
- package/src/app/util/sandbox.ts +1 -1
- package/src/app/util/scroll.ts +1 -1
- package/src/app/util/variant.ts +1 -1
- package/src/bundle-main-dev.js +1 -1
- package/src/bundle-main.js +2 -2
- package/tailwind.config.cjs +1 -1
- package/vite.config.ts +2 -2
- package/dist/bundled/components/app/Breadcrumb.vue3.js +0 -1
- package/dist/bundled/components/base/BaseEmpty.vue2.js +0 -1
- package/dist/bundled/components/base/BaseIcon.vue3.js +0 -1
- package/dist/bundled/components/base/BaseSplitPane.vue3.js +0 -1
- package/dist/bundled/components/misc/HatchedPattern.vue2.js +0 -1
- package/dist/bundled/components/panel/StorySourceCode.vue3.js +0 -1
- package/dist/bundled/components/search/SearchItem.vue3.js +0 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue3.js +0 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue3.js +0 -1
- package/dist/bundled/components/story/StoryVariantListItem.vue3.js +0 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue3.js +0 -1
- package/dist/bundled/components/story/StoryViewer.vue3.js +0 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue3.js +0 -1
- package/dist/bundled/components/tree/StoryListFolder.vue3.js +0 -1
- package/dist/bundled/components/tree/StoryListItem.vue3.js +0 -1
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/common.js +0 -52
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js +0 -10
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js +0 -16
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/balance.js +0 -31
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +0 -15
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang.js +0 -60
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/type.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, resolveDirective,
|
|
1
|
+
import { defineComponent, resolveComponent, resolveDirective, createBlock, openBlock, unref, withCtx, withDirectives, createElementBlock, normalizeClass, createVNode, createElementVNode, createTextVNode, vModelText, Fragment, renderList, toDisplayString, createCommentVNode } 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";
|
|
@@ -7,14 +7,13 @@ import _sfc_main$1 from "../base/BaseCheckbox.vue2.js";
|
|
|
7
7
|
"use strict";
|
|
8
8
|
const _hoisted_1 = { class: "htw-flex htw-flex-col htw-items-stretch" };
|
|
9
9
|
const _hoisted_2 = { class: "htw-flex htw-items-center htw-gap-2 htw-px-4 htw-py-3" };
|
|
10
|
-
const _hoisted_3 =
|
|
11
|
-
const _hoisted_4 =
|
|
12
|
-
const _hoisted_5 = {
|
|
10
|
+
const _hoisted_3 = ["onClick"];
|
|
11
|
+
const _hoisted_4 = { class: "htw-ml-auto htw-opacity-70 htw-flex htw-gap-1" };
|
|
12
|
+
const _hoisted_5 = { key: 0 };
|
|
13
13
|
const _hoisted_6 = { key: 0 };
|
|
14
|
-
const _hoisted_7 = { key:
|
|
15
|
-
const _hoisted_8 = { key:
|
|
16
|
-
const _hoisted_9 = { key:
|
|
17
|
-
const _hoisted_10 = { key: 0 };
|
|
14
|
+
const _hoisted_7 = { key: 1 };
|
|
15
|
+
const _hoisted_8 = { key: 2 };
|
|
16
|
+
const _hoisted_9 = { key: 0 };
|
|
18
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
18
|
__name: "ToolbarResponsiveSize",
|
|
20
19
|
setup(__props) {
|
|
@@ -35,9 +34,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
34
|
modelValue: unref(settings).rotate,
|
|
36
35
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).rotate = $event)
|
|
37
36
|
}, {
|
|
38
|
-
default: withCtx(() => [
|
|
37
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
39
38
|
createTextVNode(" Rotate ")
|
|
40
|
-
]),
|
|
39
|
+
])),
|
|
41
40
|
_: 1
|
|
42
41
|
}, 8, ["modelValue"]),
|
|
43
42
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -56,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
55
|
],
|
|
57
56
|
[_directive_tooltip, "Responsive width (px)"]
|
|
58
57
|
]),
|
|
59
|
-
|
|
58
|
+
_cache[4] || (_cache[4] = createElementVNode("span", { class: "htw-opacity-50" }, "×", -1)),
|
|
60
59
|
withDirectives(createElementVNode("input", {
|
|
61
60
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(settings).responsiveHeight = $event),
|
|
62
61
|
type: "number",
|
|
@@ -86,18 +85,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
85
|
}
|
|
87
86
|
}, [
|
|
88
87
|
createTextVNode(toDisplayString(preset.label) + " ", 1),
|
|
89
|
-
createElementVNode("span",
|
|
90
|
-
preset.width ? (openBlock(), createElementBlock("span",
|
|
88
|
+
createElementVNode("span", _hoisted_4, [
|
|
89
|
+
preset.width ? (openBlock(), createElementBlock("span", _hoisted_5, [
|
|
91
90
|
createTextVNode(toDisplayString(preset.width), 1),
|
|
92
|
-
!preset.height ? (openBlock(), createElementBlock("span",
|
|
91
|
+
!preset.height ? (openBlock(), createElementBlock("span", _hoisted_6, "px")) : createCommentVNode("", true)
|
|
93
92
|
])) : createCommentVNode("", true),
|
|
94
|
-
preset.width && preset.height ? (openBlock(), createElementBlock("span",
|
|
95
|
-
preset.height ? (openBlock(), createElementBlock("span",
|
|
93
|
+
preset.width && preset.height ? (openBlock(), createElementBlock("span", _hoisted_7, "x")) : createCommentVNode("", true),
|
|
94
|
+
preset.height ? (openBlock(), createElementBlock("span", _hoisted_8, [
|
|
96
95
|
createTextVNode(toDisplayString(preset.height), 1),
|
|
97
|
-
!preset.width ? (openBlock(), createElementBlock("span",
|
|
96
|
+
!preset.width ? (openBlock(), createElementBlock("span", _hoisted_9, "px")) : createCommentVNode("", true)
|
|
98
97
|
])) : createCommentVNode("", true)
|
|
99
98
|
])
|
|
100
|
-
], 10,
|
|
99
|
+
], 10, _hoisted_3);
|
|
101
100
|
}), 128))
|
|
102
101
|
])
|
|
103
102
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveDirective, withDirectives,
|
|
1
|
+
import { defineComponent, resolveDirective, withDirectives, createElementBlock, openBlock, unref, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
4
4
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode, unref, normalizeClass, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = { class: "histoire-toolbar-title htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0" };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, createElementVNode, withKeys, createVNode, unref, toDisplayString, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useFolderStore } from "../../stores/folder.js";
|
|
4
|
-
import StoryListItem from "./StoryListItem.vue.js";
|
|
5
4
|
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
5
|
+
import StoryListItem from "./StoryListItem.vue.js";
|
|
6
6
|
"use strict";
|
|
7
7
|
const _hoisted_1 = {
|
|
8
8
|
"data-test-id": "story-group",
|
|
9
9
|
class: "histoire-story-group htw-my-2 first:htw-mt-0 last:htw-mb-0 htw-group"
|
|
10
10
|
};
|
|
11
|
-
const _hoisted_2 =
|
|
12
|
-
const _hoisted_3 =
|
|
13
|
-
const _hoisted_4 = { class: "htw-truncate" };
|
|
14
|
-
const _hoisted_5 = { key: 1 };
|
|
11
|
+
const _hoisted_2 = { class: "htw-truncate" };
|
|
12
|
+
const _hoisted_3 = { key: 1 };
|
|
15
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
14
|
__name: "StoryGroup",
|
|
17
15
|
props: {
|
|
@@ -30,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
28
|
return (_ctx, _cache) => {
|
|
31
29
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
32
30
|
_ctx.group.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33
|
-
|
|
31
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "htw-h-[1px] htw-bg-gray-500/10 htw-mx-6 htw-mb-2 group-first:htw-hidden" }, null, -1)),
|
|
34
32
|
createElementVNode("div", {
|
|
35
33
|
role: "button",
|
|
36
34
|
tabindex: "0",
|
|
@@ -45,10 +43,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
43
|
icon: isFolderOpen.value ? "ri:subtract-line" : "ri:add-line",
|
|
46
44
|
class: "htw-w-4 htw-h-4 htw-ml-4 htw-rounded-sm htw-border htw-border-gray-500/40"
|
|
47
45
|
}, null, 8, ["icon"]),
|
|
48
|
-
createElementVNode("span",
|
|
49
|
-
],
|
|
46
|
+
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.group.title), 1)
|
|
47
|
+
], 32)
|
|
50
48
|
], 64)) : createCommentVNode("", true),
|
|
51
|
-
isFolderOpen.value ? (openBlock(), createElementBlock("div",
|
|
49
|
+
isFolderOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
52
50
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.group.children, (element) => {
|
|
53
51
|
return openBlock(), createElementBlock(Fragment, {
|
|
54
52
|
key: element.title
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import StoryListItem from "./StoryListItem.vue.js";
|
|
3
|
-
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
|
|
4
2
|
import "./StoryGroup.vue.js";
|
|
3
|
+
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
4
|
+
import StoryListItem from "./StoryListItem.vue.js";
|
|
5
5
|
import _sfc_main$1 from "./StoryGroup.vue2.js";
|
|
6
6
|
"use strict";
|
|
7
7
|
const _hoisted_1 = { class: "histoire-story-list htw-overflow-y-auto" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _sfc_main from "./StoryListFolder.vue2.js";
|
|
2
|
-
|
|
2
|
+
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10840b73"]]);
|
|
6
6
|
export {
|
|
7
7
|
StoryListFolder as default
|
|
8
8
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, useCssVars, computed, resolveComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, withKeys, createVNode, unref, normalizeClass, toDisplayString, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useFolderStore } from "../../stores/folder.js";
|
|
4
4
|
import StoryListItem from "./StoryListItem.vue.js";
|
|
5
5
|
"use strict";
|
|
6
|
-
const _withScopeId = (n) => (pushScopeId("data-v-cace6303"), n = n(), popScopeId(), n);
|
|
7
6
|
const _hoisted_1 = {
|
|
8
7
|
"data-test-id": "story-list-folder",
|
|
9
8
|
class: "histoire-story-list-folder"
|
|
10
9
|
};
|
|
11
|
-
const _hoisted_2 =
|
|
12
|
-
const _hoisted_3 = { class: "
|
|
13
|
-
const _hoisted_4 = { class: "htw-
|
|
14
|
-
const _hoisted_5 = {
|
|
15
|
-
const _hoisted_6 = { key: 0 };
|
|
10
|
+
const _hoisted_2 = { class: "bind-tree-padding htw-flex htw-items-center htw-gap-2 htw-min-w-0" };
|
|
11
|
+
const _hoisted_3 = { class: "htw-flex htw-flex-none htw-items-center htw-opacity-30 [.histoire-story-list-folder-button:hover_&]:htw-opacity-100 htw-ml-4 htw-w-4 htw-h-4 htw-rounded-sm htw-border htw-border-gray-500/40" };
|
|
12
|
+
const _hoisted_4 = { class: "htw-truncate" };
|
|
13
|
+
const _hoisted_5 = { key: 0 };
|
|
16
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
15
|
__name: "StoryListFolder",
|
|
18
16
|
props: {
|
|
@@ -23,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
21
|
},
|
|
24
22
|
setup(__props) {
|
|
25
23
|
useCssVars((_ctx) => ({
|
|
26
|
-
"
|
|
24
|
+
"224f37c4": folderPadding.value
|
|
27
25
|
}));
|
|
28
26
|
const props = __props;
|
|
29
27
|
const folderStore = useFolderStore();
|
|
@@ -48,8 +46,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
46
|
withKeys(toggleOpen, ["space"])
|
|
49
47
|
]
|
|
50
48
|
}, [
|
|
51
|
-
createElementVNode("span",
|
|
52
|
-
createElementVNode("span",
|
|
49
|
+
createElementVNode("span", _hoisted_2, [
|
|
50
|
+
createElementVNode("span", _hoisted_3, [
|
|
53
51
|
createVNode(unref(Icon), {
|
|
54
52
|
icon: "carbon:caret-right",
|
|
55
53
|
class: normalizeClass(["htw-w-full htw-h-full htw-transition-transform htw-duration-150", {
|
|
@@ -57,10 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
55
|
}])
|
|
58
56
|
}, null, 8, ["class"])
|
|
59
57
|
]),
|
|
60
|
-
createElementVNode("span",
|
|
58
|
+
createElementVNode("span", _hoisted_4, toDisplayString(_ctx.folder.title), 1)
|
|
61
59
|
])
|
|
62
|
-
],
|
|
63
|
-
isFolderOpen.value ? (openBlock(), createElementBlock("div",
|
|
60
|
+
], 32),
|
|
61
|
+
isFolderOpen.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
64
62
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.folder.children, (element) => {
|
|
65
63
|
return openBlock(), createElementBlock(Fragment, {
|
|
66
64
|
key: element.title
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _sfc_main from "./StoryListItem.vue2.js";
|
|
2
|
-
|
|
2
|
+
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const StoryListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const StoryListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-048885b7"]]);
|
|
6
6
|
export {
|
|
7
7
|
StoryListItem as default
|
|
8
8
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, useCssVars, computed, ref, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, createCommentVNode, unref, normalizeClass, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useRoute } from "@histoire/vendors/vue-router";
|
|
4
|
-
import BaseListItemLink from "../base/BaseListItemLink.vue.js";
|
|
5
4
|
import { useScrollOnActive } from "../../util/scroll.js";
|
|
5
|
+
import BaseListItemLink from "../base/BaseListItemLink.vue.js";
|
|
6
6
|
"use strict";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-c9b616b5"), n = n(), popScopeId(), n);
|
|
8
7
|
const _hoisted_1 = { class: "bind-tree-margin htw-flex htw-items-center htw-gap-2 htw-pl-4 htw-min-w-0" };
|
|
9
8
|
const _hoisted_2 = { class: "htw-truncate" };
|
|
10
9
|
const _hoisted_3 = {
|
|
@@ -19,8 +18,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
18
|
},
|
|
20
19
|
setup(__props) {
|
|
21
20
|
useCssVars((_ctx) => ({
|
|
22
|
-
"
|
|
23
|
-
"
|
|
21
|
+
"10fa28ae": filePadding.value,
|
|
22
|
+
"8aa08936": _ctx.story.iconColor
|
|
24
23
|
}));
|
|
25
24
|
const props = __props;
|
|
26
25
|
const filePadding = computed(() => {
|
package/dist/bundled/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "virtual:$histoire-theme";
|
|
2
|
-
import { createApp } from "@histoire/vendors/vue";
|
|
3
|
-
import { createPinia } from "@histoire/vendors/pinia";
|
|
4
1
|
import FloatingVue from "@histoire/vendors/floating-vue";
|
|
2
|
+
import { createPinia } from "@histoire/vendors/pinia";
|
|
3
|
+
import { createApp } from "@histoire/vendors/vue";
|
|
5
4
|
import "./App.vue.js";
|
|
6
|
-
import { router } from "./router.js";
|
|
7
5
|
import { setupPluginApi } from "./plugin.js";
|
|
6
|
+
import { router } from "./router.js";
|
|
7
|
+
import "virtual:$histoire-theme";
|
|
8
8
|
import _sfc_main from "./App.vue2.js";
|
|
9
9
|
"use strict";
|
|
10
10
|
async function mountMainApp() {
|
package/dist/bundled/plugin.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { router } from "./router.js";
|
|
2
2
|
"use strict";
|
|
3
3
|
function setupPluginApi() {
|
|
4
|
-
if (!import.meta.hot)
|
|
5
|
-
return;
|
|
4
|
+
if (!import.meta.hot) return;
|
|
6
5
|
const listeners = {};
|
|
7
6
|
import.meta.hot.on("histoire:dev-event-result", ({ event, result }) => {
|
|
8
7
|
const set = listeners[event];
|
package/dist/bundled/sandbox.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { parseQuery } from "@histoire/vendors/vue-router";
|
|
2
|
-
import { ref, computed, watch, onMounted, h, createApp } from "@histoire/vendors/vue";
|
|
3
|
-
import { createPinia } from "@histoire/vendors/pinia";
|
|
4
1
|
import { applyState } from "@histoire/shared";
|
|
2
|
+
import { createPinia } from "@histoire/vendors/pinia";
|
|
5
3
|
import { files } from "virtual:$histoire-stories";
|
|
4
|
+
import { ref, createApp, h, computed, watch, onMounted } from "@histoire/vendors/vue";
|
|
5
|
+
import { parseQuery } from "@histoire/vendors/vue-router";
|
|
6
6
|
import "./components/story/GenericMountStory.vue.js";
|
|
7
7
|
import "./components/story/GenericRenderStory.vue.js";
|
|
8
|
+
import { setupPluginApi } from "./plugin.js";
|
|
9
|
+
import { histoireConfig } from "./util/config.js";
|
|
10
|
+
import { SANDBOX_READY, STATE_SYNC, PREVIEW_SETTINGS_SYNC } from "./util/const.js";
|
|
11
|
+
import { isDark } from "./util/dark.js";
|
|
8
12
|
import { mapFile } from "./util/mapping.js";
|
|
9
|
-
import { STATE_SYNC, PREVIEW_SETTINGS_SYNC, SANDBOX_READY } from "./util/const.js";
|
|
10
13
|
import { applyPreviewSettings } from "./util/preview-settings.js";
|
|
11
|
-
import { isDark } from "./util/dark.js";
|
|
12
|
-
import { histoireConfig } from "./util/config.js";
|
|
13
14
|
import { toRawDeep } from "./util/state.js";
|
|
14
|
-
import { setupPluginApi } from "./plugin.js";
|
|
15
15
|
import _sfc_main from "./components/story/GenericMountStory.vue2.js";
|
|
16
16
|
import _sfc_main$1 from "./components/story/GenericRenderStory.vue2.js";
|
|
17
17
|
"use strict";
|
|
@@ -30,8 +30,7 @@ const app = createApp({
|
|
|
30
30
|
window.addEventListener("message", (event) => {
|
|
31
31
|
var _a, _b;
|
|
32
32
|
if (((_a = event.data) == null ? void 0 : _a.type) === STATE_SYNC) {
|
|
33
|
-
if (!mounted)
|
|
34
|
-
return;
|
|
33
|
+
if (!mounted) return;
|
|
35
34
|
synced = true;
|
|
36
35
|
applyState(variant.value.state, event.data.state);
|
|
37
36
|
} else if (((_b = event.data) == null ? void 0 : _b.type) === PREVIEW_SETTINGS_SYNC) {
|
|
@@ -67,16 +66,12 @@ const app = createApp({
|
|
|
67
66
|
story: file.value.story
|
|
68
67
|
})
|
|
69
68
|
]),
|
|
70
|
-
this.story && this.variant ? h(_sfc_main$1, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
type: SANDBOX_READY
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}) : null
|
|
69
|
+
this.story && this.variant ? h(_sfc_main$1, { story: this.story, variant: this.variant, onReady: () => {
|
|
70
|
+
var _a;
|
|
71
|
+
(_a = window.parent) == null ? void 0 : _a.postMessage({
|
|
72
|
+
type: SANDBOX_READY
|
|
73
|
+
});
|
|
74
|
+
} }) : null
|
|
80
75
|
];
|
|
81
76
|
}
|
|
82
77
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useStorage } from "@histoire/vendors/vue-use";
|
|
1
2
|
import { defineStore } from "@histoire/vendors/pinia";
|
|
2
3
|
import { watch } from "@histoire/vendors/vue";
|
|
3
|
-
import { useStorage } from "@histoire/vendors/vue-use";
|
|
4
4
|
import { useStoryStore } from "./story.js";
|
|
5
5
|
"use strict";
|
|
6
6
|
const useFolderStore = defineStore("folder", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineStore } from "@histoire/vendors/pinia";
|
|
2
1
|
import { useStorage } from "@histoire/vendors/vue-use";
|
|
2
|
+
import { defineStore } from "@histoire/vendors/pinia";
|
|
3
3
|
"use strict";
|
|
4
4
|
const usePreviewSettingsStore = defineStore("preview-settings", () => {
|
|
5
5
|
const currentSettings = useStorage("_histoire-sandbox-settings-v3", {
|
|
@@ -24,10 +24,8 @@ function stringifyEvent(e) {
|
|
|
24
24
|
obj[k] = e[k];
|
|
25
25
|
}
|
|
26
26
|
return JSON.stringify(obj, (k, v) => {
|
|
27
|
-
if (v instanceof Node)
|
|
28
|
-
|
|
29
|
-
if (v instanceof Window)
|
|
30
|
-
return "Window";
|
|
27
|
+
if (v instanceof Node) return "Node";
|
|
28
|
+
if (v instanceof Window) return "Window";
|
|
31
29
|
return v;
|
|
32
30
|
}, " ");
|
|
33
31
|
}
|