@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,17 +1,15 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed,
|
|
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
|
|
5
|
-
import
|
|
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
|
|
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
|
|
57
|
-
|
|
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
|
|
73
|
-
|
|
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
|
|
87
|
-
|
|
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
|
|
92
|
+
const result = titleSearchIndex.search(value);
|
|
105
93
|
let rank = 0;
|
|
106
|
-
for (const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
|
119
|
+
const result = docSearchIndex.search(query);
|
|
135
120
|
let rank = 0;
|
|
136
|
-
for (const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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 {
|
|
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,
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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
|
-
"
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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 {
|
|
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 "
|
|
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
|
-
"
|
|
45
|
-
"
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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
|
-
"
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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
|
-
"
|
|
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,
|
|
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,
|
|
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,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createCommentVNode, createBlock, unref, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { isMobile } from "../../util/responsive.js";
|
|
3
|
-
import "../toolbar/
|
|
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/
|
|
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,
|
|
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 "../
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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
|
-
"
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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";
|