histoire 0.4.2 → 0.4.5
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/bundled/BaseEmpty.js +1 -1
- package/dist/bundled/HomeView.js +2 -2
- package/dist/bundled/MobileOverlay.js +8 -8
- package/dist/bundled/SearchPane.js +7 -7
- package/dist/bundled/StoryView.js +54 -54
- package/dist/bundled/events.js +1 -1
- package/dist/bundled/global-components.js +12 -2
- package/dist/bundled/index.js +1 -1
- package/dist/bundled/index2.js +25 -22
- package/dist/bundled/reactivity.js +1 -1
- package/dist/bundled/sandbox.js +1 -1
- package/dist/bundled/search-docs-data.js +1 -1
- package/dist/bundled/story.js +2 -2
- package/dist/client/app/index.js +5 -0
- package/dist/client/app/util/mapping.js +11 -1
- package/dist/node/build.js +3 -3
- package/dist/node/collect/worker.js +0 -4
- package/dist/node/commands/preview.js +1 -1
- package/dist/node/config.js +5 -0
- package/dist/node/server.js +53 -45
- package/dist/node/vite.d.ts +1 -1
- package/dist/node/vite.js +11 -2
- package/package.json +6 -6
- package/src/client/app/index.ts +6 -0
- package/src/client/app/util/mapping.ts +12 -1
- package/src/node/build.ts +3 -3
- package/src/node/collect/worker.ts +0 -4
- package/src/node/commands/preview.ts +1 -1
- package/src/node/config.ts +6 -0
- package/src/node/server.ts +55 -47
- package/src/node/vite.ts +12 -2
- package/vite.config.ts +26 -0
- package/dist/bundled/vue.runtime.esm-bundler.js +0 -8657
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pushScopeId, popScopeId, openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "./MobileOverlay.js";
|
|
3
3
|
var BaseEmpty_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4
4
|
const _sfc_main = {};
|
package/dist/bundled/HomeView.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, unref } from "vue";
|
|
2
2
|
import { h as histoireConfig, c as customLogos } from "./config.js";
|
|
3
3
|
var HistoireLogo = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iNTEyIgogICBoZWlnaHQ9IjUxMiIKICAgdmlld0JveD0iMCAwIDUxMiA1MTIiCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzUiCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczIiIC8+CiAgPGcKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0ib3BhY2l0eTowLjU7ZmlsbDojMzRkMzk5O2ZpbGwtb3BhY2l0eToxO3N0cm9rZS13aWR0aDoxLjAwMzc1IgogICAgICAgaWQ9InJlY3QxMzcyIgogICAgICAgd2lkdGg9IjMxNC4zMDkyMyIKICAgICAgIGhlaWdodD0iNDA2LjYwOTAxIgogICAgICAgeD0iLTI2LjU2NTA2MyIKICAgICAgIHk9IjEzNC43NTA3OSIKICAgICAgIHRyYW5zZm9ybT0icm90YXRlKC0yMy44MjEyNjIpIgogICAgICAgcnk9IjgiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6IzM0ZDM5OTtmaWxsLW9wYWNpdHk6MTtzdHJva2Utd2lkdGg6MS4wMDM3NSIKICAgICAgIGlkPSJyZWN0ODUwIgogICAgICAgd2lkdGg9IjMxNC4zMDkyMyIKICAgICAgIGhlaWdodD0iNDA2LjYwOTAxIgogICAgICAgeD0iNzcuNTcxODM4IgogICAgICAgeT0iNzIuODA4NzA4IgogICAgICAgcnk9IjgiCiAgICAgICB0cmFuc2Zvcm09InJvdGF0ZSgtNC41NzQ0NTM0KSIgLz4KICA8L2c+CiAgPGcKICAgICBpZD0ibGF5ZXIzIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDE2NTctMyIKICAgICAgIHN0eWxlPSJkaXNwbGF5OmlubGluZTtmaWxsOiNiNGZhZTI7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiNiNGZhZTI7c3Ryb2tlLXdpZHRoOjguMzQ5MjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzU5LjM4OTQ3LDM1NS45NTEzNCAzMjAuNzI5MzUsMTc2LjUyOTQyIDIzOC4zNDYxMywyMzguOTQxMTggWiBNIDI3My42NDEyNCwyNzMuMDY2MDggMTUyLjU5Nzg4LDE1Ni4wNTU5MSAxOTEuMjU4MDQsMzM1LjQ3Nzg2IFoiIC8+CiAgPC9nPgogIDxnCiAgICAgaWQ9ImxheWVyMiIKICAgICBzdHlsZT0iZGlzcGxheTpub25lIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDE2NTciCiAgICAgICBzdHlsZT0iZmlsbDojYjRmYWUyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojYjRmYWUyO3N0cm9rZS13aWR0aDo4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDI5NiwxMDMuOTgyNDIgLTEzNS41MzEyNSwxNzcuOTY2OCBoIDg4LjcwMTE3IHogTSAyNjIuODMwMDgsMjMwLjA1MDc4IDIxNiw0MDguMDE3NTggMzUxLjUzMTI1LDIzMC4wNTA3OCBaIgogICAgICAgdHJhbnNmb3JtPSJyb3RhdGUoLTQuMTU2NTUzLDI1NiwyNTYuMDA2OTEpIiAvPgogIDwvZz4KPC9zdmc+Cg==";
|
|
4
4
|
const _hoisted_1 = { class: "htw-flex htw-items-center htw-justify-center htw-h-full" };
|
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
});
|
|
12
12
|
return (_ctx, _cache) => {
|
|
13
13
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
14
|
-
|
|
14
|
+
createElementVNode("img", {
|
|
15
15
|
src: unref(logoUrl),
|
|
16
16
|
alt: "Logo",
|
|
17
17
|
class: "htw-w-64 htw-h-64 htw-opacity-25"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeClass, withKeys, renderSlot, watch, onMounted, pushScopeId, popScopeId, ref, computed, onUnmounted, createElementBlock, normalizeStyle, unref, withModifiers, Transition, toDisplayString, createVNode, createCommentVNode } from "vue";
|
|
2
2
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
3
3
|
import { useMediaQuery } from "@vueuse/core";
|
|
4
4
|
import { Icon } from "@iconify/vue";
|
|
@@ -35,7 +35,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35
35
|
const _component_RouterLink = resolveComponent("RouterLink");
|
|
36
36
|
return openBlock(), createBlock(_component_RouterLink, mergeProps(_ctx.$attrs, { custom: "" }), {
|
|
37
37
|
default: withCtx(({ isActive: linkIsActive, href, navigate }) => [
|
|
38
|
-
|
|
38
|
+
createElementVNode("a", {
|
|
39
39
|
href,
|
|
40
40
|
class: normalizeClass(["htw-flex htw-items-center htw-gap-2 htw-text-gray-900 dark:htw-text-gray-100", [
|
|
41
41
|
_ctx.$attrs.class,
|
|
@@ -227,7 +227,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
227
227
|
[__props.orientation]: true
|
|
228
228
|
}])
|
|
229
229
|
}, [
|
|
230
|
-
|
|
230
|
+
createElementVNode("div", {
|
|
231
231
|
class: normalizeClass(["htw-relative htw-top-0 htw-left-0 htw-z-20", {
|
|
232
232
|
"htw-pointer-events-none": dragging.value,
|
|
233
233
|
"htw-border-r htw-border-gray-200 dark:htw-border-gray-850": __props.orientation === "landscape",
|
|
@@ -236,7 +236,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
236
236
|
style: normalizeStyle(unref(leftStyle))
|
|
237
237
|
}, [
|
|
238
238
|
renderSlot(_ctx.$slots, "first", {}, void 0, true),
|
|
239
|
-
|
|
239
|
+
createElementVNode("div", {
|
|
240
240
|
class: normalizeClass(["dragger htw-absolute htw-z-100 hover:htw-bg-primary-500/50 htw-transition-colors htw-duration-150 htw-delay-150", {
|
|
241
241
|
"htw-top-0 htw-bottom-0 htw-cursor-ew-resize": __props.orientation === "landscape",
|
|
242
242
|
"htw-left-0 htw-right-0 htw-cursor-ns-resize": __props.orientation === "portrait",
|
|
@@ -246,7 +246,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
246
246
|
onMousedown: withModifiers(dragStart, ["prevent"])
|
|
247
247
|
}, null, 42, _hoisted_1$1)
|
|
248
248
|
], 6),
|
|
249
|
-
|
|
249
|
+
createElementVNode("div", {
|
|
250
250
|
class: normalizeClass(["htw-relative htw-bottom-0 htw-right-0", {
|
|
251
251
|
"htw-pointer-events-none": dragging.value,
|
|
252
252
|
"htw-border-t htw-border-gray-200 dark:htw-border-gray-850": __props.orientation === "portrait",
|
|
@@ -280,9 +280,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
280
|
return openBlock(), createBlock(Transition, { name: "__histoire-fade" }, {
|
|
281
281
|
default: withCtx(() => [
|
|
282
282
|
__props.opened ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
createElementVNode("div", _hoisted_2, [
|
|
284
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1),
|
|
285
|
+
createElementVNode("a", {
|
|
286
286
|
class: "htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer",
|
|
287
287
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
|
|
288
288
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pushScopeId, popScopeId, defineComponent, useCssVars, ref, toRefs, openBlock, createElementBlock, unref, createVNode, withCtx, normalizeClass, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList, createBlock, createCommentVNode, markRaw, watch, computed, withDirectives, withKeys, withModifiers, vModelText } from "vue";
|
|
2
2
|
import { useFocus, useDebounce } from "@vueuse/core";
|
|
3
3
|
import { Icon } from "@iconify/vue";
|
|
4
4
|
import flexsearch from "flexsearch";
|
|
@@ -216,10 +216,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
216
216
|
] : []
|
|
217
217
|
]])
|
|
218
218
|
}, null, 8, ["icon", "class"]),
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
220
|
+
createElementVNode("div", _hoisted_3, [
|
|
221
221
|
createTextVNode(toDisplayString(__props.result.title) + " ", 1),
|
|
222
|
-
|
|
222
|
+
createElementVNode("span", _hoisted_4, toDisplayString(kindLabels[__props.result.kind]), 1)
|
|
223
223
|
]),
|
|
224
224
|
((_b = __props.result.path) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
225
225
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.result.path, (p, index) => {
|
|
@@ -232,7 +232,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
232
232
|
icon: "carbon:chevron-right",
|
|
233
233
|
class: "htw-w-4 htw-h-4 htw-mt-0.5 htw-opacity-50"
|
|
234
234
|
})) : createCommentVNode("", true),
|
|
235
|
-
|
|
235
|
+
createElementVNode("span", null, toDisplayString(p), 1)
|
|
236
236
|
]);
|
|
237
237
|
}), 128))
|
|
238
238
|
])) : createCommentVNode("", true)
|
|
@@ -456,7 +456,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
456
456
|
}
|
|
457
457
|
return (_ctx, _cache) => {
|
|
458
458
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
459
|
-
|
|
459
|
+
createElementVNode("div", {
|
|
460
460
|
class: "htw-flex htw-items-center htw-gap-4 htw-pl-6 htw-border htw-border-transparent focus-visible:htw-border-primary-500",
|
|
461
461
|
onClick: _cache[4] || (_cache[4] = ($event) => focused.value = true)
|
|
462
462
|
}, [
|
|
@@ -464,7 +464,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
464
464
|
icon: "carbon:search",
|
|
465
465
|
class: "flex-none htw-w-4 htw-h-4"
|
|
466
466
|
}),
|
|
467
|
-
withDirectives(
|
|
467
|
+
withDirectives(createElementVNode("input", {
|
|
468
468
|
ref_key: "input",
|
|
469
469
|
ref: input,
|
|
470
470
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchInputText.value = $event),
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
20
|
+
import { computed, pushScopeId, popScopeId, defineComponent, useCssVars, unref, toRefs, ref, openBlock, createElementBlock, createVNode, withCtx, normalizeClass, createElementVNode, toDisplayString, resolveComponent, withModifiers, watch, normalizeStyle, Fragment, renderList, createBlock, withKeys, renderSlot, createTextVNode, resolveDirective, withDirectives, vModelText, createCommentVNode, createStaticVNode, onUnmounted, toRaw, watchEffect, onMounted, nextTick, Text, vModelSelect, vModelRadio, vModelCheckbox, vModelDynamic, shallowRef, mergeProps, Transition, reactive, onBeforeUnmount, h, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { useRoute, useRouter } from "vue-router";
|
|
22
22
|
import { Icon } from "@iconify/vue";
|
|
23
23
|
import { u as useStoryStore, b as base } from "./story.js";
|
|
@@ -86,7 +86,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
"bind-icon-color": !active && unref(variant).iconColor
|
|
87
87
|
}])
|
|
88
88
|
}, null, 8, ["icon", "class"]),
|
|
89
|
-
|
|
89
|
+
createElementVNode("span", _hoisted_1$o, toDisplayString(unref(variant).title), 1)
|
|
90
90
|
];
|
|
91
91
|
}),
|
|
92
92
|
_: 1
|
|
@@ -149,7 +149,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
ref: el,
|
|
150
150
|
class: "htw-cursor-default htw-flex htw-flex-col htw-gap-y-1"
|
|
151
151
|
}, [
|
|
152
|
-
|
|
152
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
153
153
|
createVNode(_component_RouterLink, {
|
|
154
154
|
to: unref(targetRoute),
|
|
155
155
|
class: normalizeClass(["htw-rounded htw-w-max htw-px-2 htw-py-0.5 htw-min-w-16 htw-cursor-pointer htw-flex htw-items-center htw-gap-1", {
|
|
@@ -167,13 +167,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
167
167
|
"bind-icon-color": !unref(isActive) && unref(variant).iconColor
|
|
168
168
|
}])
|
|
169
169
|
}, null, 8, ["icon", "class"]),
|
|
170
|
-
|
|
170
|
+
createElementVNode("span", null, toDisplayString(unref(variant).title), 1)
|
|
171
171
|
];
|
|
172
172
|
}),
|
|
173
173
|
_: 1
|
|
174
174
|
}, 8, ["to", "class"])
|
|
175
175
|
]),
|
|
176
|
-
|
|
176
|
+
createElementVNode("div", {
|
|
177
177
|
class: normalizeClass(["htw-border htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-flex-1 htw-p-4", {
|
|
178
178
|
"htw-border-gray-100 dark:htw-border-gray-800": !unref(isActive),
|
|
179
179
|
"htw-border-primary-200 dark:htw-border-primary-900": unref(isActive)
|
|
@@ -255,12 +255,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
255
255
|
class: "htw-h-full htw-overflow-y-auto",
|
|
256
256
|
onScroll: _cache[0] || (_cache[0] = ($event) => updateMaxCount())
|
|
257
257
|
}, [
|
|
258
|
-
|
|
258
|
+
createElementVNode("div", {
|
|
259
259
|
style: normalizeStyle({
|
|
260
260
|
minHeight: `${unref(storyStore).currentStory.variants.length / countPerRow.value * (maxItemHeight.value + gap) - gap}px`
|
|
261
261
|
})
|
|
262
262
|
}, [
|
|
263
|
-
|
|
263
|
+
createElementVNode("div", {
|
|
264
264
|
class: "htw-grid htw-gap-4 htw-m-4",
|
|
265
265
|
style: normalizeStyle({
|
|
266
266
|
gridTemplateColumns: `repeat(auto-fill, ${unref(gridTemplateWidth)})`
|
|
@@ -295,7 +295,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
295
295
|
__props.variant.iconColor ? "bind-icon-color" : "htw-text-gray-500"
|
|
296
296
|
]])
|
|
297
297
|
}, null, 8, ["icon", "class"]),
|
|
298
|
-
|
|
298
|
+
createElementVNode("span", null, toDisplayString(__props.variant.title), 1)
|
|
299
299
|
]);
|
|
300
300
|
};
|
|
301
301
|
}
|
|
@@ -356,14 +356,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
356
356
|
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["space"]))
|
|
357
357
|
]
|
|
358
358
|
}, [
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
360
|
+
createElementVNode("div", {
|
|
361
361
|
class: normalizeClass(["htw-border group-active:htw-bg-gray-500/20 htw-rounded-sm htw-box-border htw-absolute htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out", [
|
|
362
362
|
__props.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
|
|
363
363
|
]])
|
|
364
364
|
}, null, 2),
|
|
365
365
|
(openBlock(), createElementBlock("svg", _hoisted_2$h, [
|
|
366
|
-
|
|
366
|
+
createElementVNode("path", {
|
|
367
367
|
ref_key: "path",
|
|
368
368
|
ref: path,
|
|
369
369
|
d: "m 4 12 l 5 5 l 10 -10",
|
|
@@ -387,7 +387,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
387
387
|
const _hoisted_1$k = { class: "htw-flex htw-flex-col htw-items-stretch" };
|
|
388
388
|
const _hoisted_2$g = /* @__PURE__ */ createTextVNode(" Rotate ");
|
|
389
389
|
const _hoisted_3$8 = { class: "htw-flex htw-gap-2 htw-px-4 htw-py-3" };
|
|
390
|
-
const _hoisted_4$6 = /* @__PURE__ */
|
|
390
|
+
const _hoisted_4$6 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-50" }, "x", -1);
|
|
391
391
|
const _hoisted_5$5 = ["onClick"];
|
|
392
392
|
const _hoisted_6$5 = { class: "htw-ml-auto htw-opacity-70 htw-flex htw-gap-1" };
|
|
393
393
|
const _hoisted_7$3 = { key: 0 };
|
|
@@ -409,7 +409,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
409
409
|
class: "htw-h-full htw-flex-none"
|
|
410
410
|
}, {
|
|
411
411
|
popper: withCtx(({ hide }) => [
|
|
412
|
-
|
|
412
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
413
413
|
createVNode(_sfc_main$m, {
|
|
414
414
|
modelValue: unref(settings).rotate,
|
|
415
415
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).rotate = $event)
|
|
@@ -419,8 +419,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
419
419
|
]),
|
|
420
420
|
_: 1
|
|
421
421
|
}, 8, ["modelValue"]),
|
|
422
|
-
|
|
423
|
-
withDirectives(
|
|
422
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
423
|
+
withDirectives(createElementVNode("input", {
|
|
424
424
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(settings).responsiveWidth = $event),
|
|
425
425
|
type: "number",
|
|
426
426
|
class: "htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0",
|
|
@@ -436,7 +436,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
436
436
|
[_directive_tooltip, "Responsive width (px)"]
|
|
437
437
|
]),
|
|
438
438
|
_hoisted_4$6,
|
|
439
|
-
withDirectives(
|
|
439
|
+
withDirectives(createElementVNode("input", {
|
|
440
440
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(settings).responsiveHeight = $event),
|
|
441
441
|
type: "number",
|
|
442
442
|
class: "htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0",
|
|
@@ -465,7 +465,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
465
465
|
}
|
|
466
466
|
}, [
|
|
467
467
|
createTextVNode(toDisplayString(preset.label) + " ", 1),
|
|
468
|
-
|
|
468
|
+
createElementVNode("span", _hoisted_6$5, [
|
|
469
469
|
preset.width ? (openBlock(), createElementBlock("span", _hoisted_7$3, [
|
|
470
470
|
createTextVNode(toDisplayString(preset.width), 1),
|
|
471
471
|
!preset.height ? (openBlock(), createElementBlock("span", _hoisted_8$2, "px")) : createCommentVNode("", true)
|
|
@@ -509,7 +509,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
509
509
|
var StoryVariantBackground_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
510
510
|
const _withScopeId$5 = (n) => (pushScopeId("data-v-bde73868"), n = n(), popScopeId(), n);
|
|
511
511
|
const _hoisted_1$j = { 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" };
|
|
512
|
-
const _hoisted_2$f = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */
|
|
512
|
+
const _hoisted_2$f = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", { class: "bind-preview-bg htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/50 dark:htw-border-white/50" }, null, -1));
|
|
513
513
|
const _hoisted_3$7 = { class: "htw-flex htw-flex-col htw-items-stretch" };
|
|
514
514
|
const _hoisted_4$5 = /* @__PURE__ */ createTextVNode(" Checkerboard ");
|
|
515
515
|
const _hoisted_5$4 = ["onClick"];
|
|
@@ -531,7 +531,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
531
531
|
class: "htw-h-full htw-flex-none"
|
|
532
532
|
}, {
|
|
533
533
|
popper: withCtx(({ hide }) => [
|
|
534
|
-
|
|
534
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
535
535
|
createVNode(_sfc_main$m, {
|
|
536
536
|
modelValue: unref(settings).checkerboard,
|
|
537
537
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).checkerboard = $event)
|
|
@@ -552,10 +552,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
552
552
|
hide();
|
|
553
553
|
}
|
|
554
554
|
}, [
|
|
555
|
-
|
|
555
|
+
createElementVNode("span", _hoisted_6$4, toDisplayString(option.label), 1),
|
|
556
556
|
option.color !== "$checkerboard" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
createElementVNode("span", _hoisted_7$2, toDisplayString(option.color), 1),
|
|
558
|
+
createElementVNode("div", {
|
|
559
559
|
class: "htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20",
|
|
560
560
|
style: normalizeStyle({
|
|
561
561
|
backgroundColor: option.color
|
|
@@ -627,20 +627,20 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
627
627
|
var HatchedPattern = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$3], ["__scopeId", "data-v-250960ac"]]);
|
|
628
628
|
const _sfc_main$h = {};
|
|
629
629
|
const _hoisted_1$g = { fill: "none" };
|
|
630
|
-
const _hoisted_2$e = /* @__PURE__ */
|
|
630
|
+
const _hoisted_2$e = /* @__PURE__ */ createElementVNode("pattern", {
|
|
631
631
|
id: "checkerboard",
|
|
632
632
|
width: "64",
|
|
633
633
|
height: "64",
|
|
634
634
|
patternUnits: "userSpaceOnUse"
|
|
635
635
|
}, [
|
|
636
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
637
637
|
x: "0",
|
|
638
638
|
y: "0",
|
|
639
639
|
width: "32",
|
|
640
640
|
height: "32",
|
|
641
641
|
fill: "currentColor"
|
|
642
642
|
}),
|
|
643
|
-
/* @__PURE__ */
|
|
643
|
+
/* @__PURE__ */ createElementVNode("rect", {
|
|
644
644
|
x: "32",
|
|
645
645
|
y: "32",
|
|
646
646
|
width: "32",
|
|
@@ -648,7 +648,7 @@ const _hoisted_2$e = /* @__PURE__ */ createBaseVNode("pattern", {
|
|
|
648
648
|
fill: "currentColor"
|
|
649
649
|
})
|
|
650
650
|
], -1);
|
|
651
|
-
const _hoisted_3$6 = /* @__PURE__ */
|
|
651
|
+
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("rect", {
|
|
652
652
|
x: "0",
|
|
653
653
|
y: "0",
|
|
654
654
|
width: "100%",
|
|
@@ -672,7 +672,7 @@ const _hoisted_2$d = {
|
|
|
672
672
|
};
|
|
673
673
|
const _hoisted_3$5 = { class: "htw-p-4 htw-h-full htw-relative" };
|
|
674
674
|
const _hoisted_4$3 = { class: "htw-w-full htw-h-full htw-border htw-border-gray-100 dark:htw-border-gray-800 htw-rounded-sm htw-relative" };
|
|
675
|
-
const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */
|
|
675
|
+
const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "bind-preview-bg htw-absolute htw-inset-0" }, null, -1));
|
|
676
676
|
const _hoisted_6$3 = /* @__PURE__ */ createStaticVNode('<div class="htw-absolute htw-top-1 htw-left-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div><div class="htw-absolute htw-top-1 htw-right-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div><div class="htw-absolute htw-bottom-1 htw-left-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div><div class="htw-absolute htw-bottom-1 htw-right-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div><div class="htw-absolute htw-left-1 htw-top-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div><div class="htw-absolute htw-left-1 htw-bottom-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div><div class="htw-absolute htw-right-1 htw-top-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div><div class="htw-absolute htw-right-1 htw-bottom-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800" data-v-769a585e></div>', 8);
|
|
677
677
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
678
678
|
props: {
|
|
@@ -773,19 +773,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
773
773
|
unref(isResponsiveEnabled) ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
774
774
|
createVNode(HatchedPattern, { class: "htw-w-full htw-h-full htw-text-black/[2%] dark:htw-text-white/[2%]" })
|
|
775
775
|
])) : createCommentVNode("", true),
|
|
776
|
-
|
|
776
|
+
createElementVNode("div", {
|
|
777
777
|
ref_key: "previewWrapper",
|
|
778
778
|
ref: previewWrapper,
|
|
779
779
|
class: "htw-h-full htw-overflow-auto htw-relative"
|
|
780
780
|
}, [
|
|
781
|
-
|
|
781
|
+
createElementVNode("div", {
|
|
782
782
|
class: normalizeClass(["htw-h-full htw-p-4 htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-relative", unref(isResponsiveEnabled) ? {
|
|
783
783
|
"htw-w-fit": !!unref(finalWidth),
|
|
784
784
|
"htw-h-fit": !!unref(finalHeight)
|
|
785
785
|
} : void 0])
|
|
786
786
|
}, [
|
|
787
|
-
|
|
788
|
-
|
|
787
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
788
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
789
789
|
_hoisted_5$3,
|
|
790
790
|
unref(settings).checkerboard ? (openBlock(), createBlock(CheckerboardPattern, {
|
|
791
791
|
key: 0,
|
|
@@ -801,7 +801,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
801
801
|
_hoisted_6$3
|
|
802
802
|
]),
|
|
803
803
|
unref(isResponsiveEnabled) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
804
|
-
|
|
804
|
+
createElementVNode("div", {
|
|
805
805
|
ref_key: "horizontalDragger",
|
|
806
806
|
ref: horizontalDragger,
|
|
807
807
|
class: "htw-absolute htw-w-4 htw-top-0 htw-bottom-4 htw-right-0 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-items-center htw-justify-center htw-cursor-ew-resize htw-group hover:htw-text-primary-500"
|
|
@@ -811,7 +811,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
811
811
|
class: "htw-w-4 htw-h-4 htw-opacity-20 group-hover:htw-opacity-90"
|
|
812
812
|
})
|
|
813
813
|
], 512),
|
|
814
|
-
|
|
814
|
+
createElementVNode("div", {
|
|
815
815
|
ref_key: "verticalDragger",
|
|
816
816
|
ref: verticalDragger,
|
|
817
817
|
class: "htw-absolute htw-h-4 htw-left-0 htw-right-4 htw-bottom-0 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-items-center htw-justify-center htw-cursor-ns-resize htw-group hover:htw-text-primary-500"
|
|
@@ -821,7 +821,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
821
821
|
class: "htw-w-4 htw-h-4 htw-opacity-20 group-hover:htw-opacity-90"
|
|
822
822
|
})
|
|
823
823
|
], 512),
|
|
824
|
-
|
|
824
|
+
createElementVNode("div", {
|
|
825
825
|
ref_key: "cornerDragger",
|
|
826
826
|
ref: cornerDragger,
|
|
827
827
|
class: "htw-absolute htw-w-4 htw-h-4 htw-right-0 htw-bottom-0 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-items-center htw-justify-center htw-cursor-nwse-resize htw-group hover:htw-text-primary-500"
|
|
@@ -852,7 +852,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
852
852
|
return (_ctx, _cache) => {
|
|
853
853
|
return openBlock(), createBlock(StoryResponsivePreview, { variant: __props.variant }, {
|
|
854
854
|
default: withCtx(({ isResponsiveEnabled, finalWidth, finalHeight }) => [
|
|
855
|
-
|
|
855
|
+
createElementVNode("div", {
|
|
856
856
|
style: normalizeStyle(isResponsiveEnabled ? {
|
|
857
857
|
width: finalWidth ? `${finalWidth}px` : "100%",
|
|
858
858
|
height: finalHeight ? `${finalHeight}px` : "100%"
|
|
@@ -969,7 +969,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
969
969
|
return (_ctx, _cache) => {
|
|
970
970
|
return openBlock(), createBlock(StoryResponsivePreview, { variant: __props.variant }, {
|
|
971
971
|
default: withCtx(({ isResponsiveEnabled, finalWidth, finalHeight, resizing }) => [
|
|
972
|
-
|
|
972
|
+
createElementVNode("iframe", {
|
|
973
973
|
ref_key: "iframe",
|
|
974
974
|
ref: iframe,
|
|
975
975
|
src: unref(sandboxUrl),
|
|
@@ -1076,7 +1076,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1076
1076
|
}, null, 8, ["variant", "story"])) : createCommentVNode("", true)
|
|
1077
1077
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1078
1078
|
unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
1079
|
-
|
|
1079
|
+
createElementVNode("a", {
|
|
1080
1080
|
class: "htw-px-6 htw-h-12 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-flex htw-gap-2 htw-flex-wrap htw-w-full htw-items-center",
|
|
1081
1081
|
onClick: openMenu
|
|
1082
1082
|
}, [
|
|
@@ -1112,7 +1112,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1112
1112
|
"default-split": 17
|
|
1113
1113
|
}, {
|
|
1114
1114
|
first: withCtx(() => [
|
|
1115
|
-
|
|
1115
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
1116
1116
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(storyStore).currentStory.variants, (variant2, index) => {
|
|
1117
1117
|
return openBlock(), createBlock(StoryVariantListItem, {
|
|
1118
1118
|
key: index,
|
|
@@ -1158,7 +1158,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1158
1158
|
});
|
|
1159
1159
|
return (_ctx, _cache) => {
|
|
1160
1160
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
1161
|
-
|
|
1161
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
1162
1162
|
unref(storyStore).currentStory.layout.type === "grid" ? (openBlock(), createBlock(_sfc_main$o, { key: 0 })) : unref(storyStore).currentStory.layout.type === "single" ? (openBlock(), createBlock(StoryVariantSingle, { key: 1 })) : createCommentVNode("", true)
|
|
1163
1163
|
]),
|
|
1164
1164
|
createVNode(_sfc_main$s, {
|
|
@@ -1182,7 +1182,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1182
1182
|
});
|
|
1183
1183
|
var StoryViewer = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-141c6b20"]]);
|
|
1184
1184
|
const _hoisted_1$a = { "data-test-id": "story-controls" };
|
|
1185
|
-
const _hoisted_2$a = /* @__PURE__ */
|
|
1185
|
+
const _hoisted_2$a = /* @__PURE__ */ createElementVNode("span", null, "No controls available for this story", -1);
|
|
1186
1186
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1187
1187
|
props: {
|
|
1188
1188
|
variant: {
|
|
@@ -1289,12 +1289,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1289
1289
|
"data-test-id": "event-item"
|
|
1290
1290
|
}, {
|
|
1291
1291
|
default: withCtx(({ shown }) => [
|
|
1292
|
-
|
|
1292
|
+
createElementVNode("div", {
|
|
1293
1293
|
class: normalizeClass(["group-hover:htw-bg-primary-100 dark:group-hover:htw-bg-primary-700 htw-cursor-pointer htw-py-2 htw-px-4 htw-flex htw-items-baseline htw-gap-1 htw-leading-normal", [
|
|
1294
1294
|
shown ? "htw-bg-primary-50 dark:htw-bg-primary-600" : "group-odd:htw-bg-gray-100/50 dark:group-odd:htw-bg-gray-750/40"
|
|
1295
1295
|
]])
|
|
1296
1296
|
}, [
|
|
1297
|
-
|
|
1297
|
+
createElementVNode("span", {
|
|
1298
1298
|
class: normalizeClass({
|
|
1299
1299
|
"htw-text-primary-500": shown
|
|
1300
1300
|
})
|
|
@@ -1303,8 +1303,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1303
1303
|
], 2)
|
|
1304
1304
|
]),
|
|
1305
1305
|
popper: withCtx(() => [
|
|
1306
|
-
|
|
1307
|
-
|
|
1306
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
1307
|
+
createElementVNode("pre", _hoisted_3$3, toDisplayString(__props.event.argument), 1)
|
|
1308
1308
|
])
|
|
1309
1309
|
]),
|
|
1310
1310
|
_: 1
|
|
@@ -1842,8 +1842,8 @@ const _hoisted_2$6 = {
|
|
|
1842
1842
|
key: 0,
|
|
1843
1843
|
class: "htw-h-10 htw-flex-none htw-border-b htw-border-solid htw-border-gray-150 dark:htw-border-gray-850 htw-px-4 htw-flex htw-items-center"
|
|
1844
1844
|
};
|
|
1845
|
-
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */
|
|
1846
|
-
const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */
|
|
1845
|
+
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "htw-text-gray-900 dark:htw-text-gray-100" }, " Source ", -1));
|
|
1846
|
+
const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "htw-flex-1" }, null, -1));
|
|
1847
1847
|
const _hoisted_5$1 = {
|
|
1848
1848
|
key: 1,
|
|
1849
1849
|
class: "htw-text-red-500 htw-h-full htw-p-2 htw-overflow-auto htw-font-mono htw-text-sm"
|
|
@@ -1926,7 +1926,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1926
1926
|
readonly: "",
|
|
1927
1927
|
"data-test-id": "story-source-code"
|
|
1928
1928
|
}, null, 8, _hoisted_6$1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
1929
|
-
|
|
1929
|
+
createElementVNode("div", {
|
|
1930
1930
|
class: "__histoire-code htw-p-4 htw-w-fit",
|
|
1931
1931
|
innerHTML: unref(sourceHtml)
|
|
1932
1932
|
}, null, 8, _hoisted_8$1)
|
|
@@ -1958,7 +1958,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1958
1958
|
const _component_router_link = resolveComponent("router-link");
|
|
1959
1959
|
return openBlock(), createBlock(_component_router_link, mergeProps(_ctx.$attrs, { custom: "" }), {
|
|
1960
1960
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [
|
|
1961
|
-
|
|
1961
|
+
createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
1962
1962
|
href,
|
|
1963
1963
|
class: ["htw-px-4 htw-h-full htw-inline-flex htw-items-center hover:htw-bg-primary-50 dark:hover:htw-bg-primary-900 htw-relative htw-text-gray-900 dark:htw-text-gray-100", {
|
|
1964
1964
|
"htw-text-primary-500 dark:htw-text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive
|
|
@@ -2046,7 +2046,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2046
2046
|
}),
|
|
2047
2047
|
unref(visibleChildrenCount) < children.value.size ? (openBlock(), createBlock(_component_VDropdown, { key: 0 }, {
|
|
2048
2048
|
popper: withCtx(() => [
|
|
2049
|
-
|
|
2049
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
2050
2050
|
createVNode(ChildrenSlice, { start: unref(visibleChildrenCount) }, {
|
|
2051
2051
|
default: withCtx(() => [
|
|
2052
2052
|
renderSlot(_ctx.$slots, "overflow")
|
|
@@ -2056,7 +2056,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2056
2056
|
])
|
|
2057
2057
|
]),
|
|
2058
2058
|
default: withCtx(() => [
|
|
2059
|
-
|
|
2059
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
2060
2060
|
createVNode(unref(Icon), {
|
|
2061
2061
|
icon: "carbon:caret-down",
|
|
2062
2062
|
class: "htw-w-4 htw-h-4 htw-opacity-50 group-hover:htw-opacity-100"
|
|
@@ -2091,7 +2091,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2091
2091
|
const _component_router_link = resolveComponent("router-link");
|
|
2092
2092
|
return openBlock(), createBlock(_component_router_link, mergeProps(_ctx.$attrs, { custom: "" }), {
|
|
2093
2093
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [
|
|
2094
|
-
|
|
2094
|
+
createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
2095
2095
|
href,
|
|
2096
2096
|
class: ["htw-px-4 htw-h-10 htw-min-w-[150px] htw-inline-flex htw-items-center hover:htw-bg-primary-50 dark:hover:htw-bg-primary-900 htw-relative htw-text-gray-900 dark:htw-text-gray-100", {
|
|
2097
2097
|
"htw-text-primary-500 dark:htw-text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive
|
|
@@ -2195,8 +2195,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2195
2195
|
};
|
|
2196
2196
|
}
|
|
2197
2197
|
});
|
|
2198
|
-
const _hoisted_1$1 = /* @__PURE__ */
|
|
2199
|
-
const _hoisted_2$1 = /* @__PURE__ */
|
|
2198
|
+
const _hoisted_1$1 = /* @__PURE__ */ createElementVNode("span", null, "Select a variant", -1);
|
|
2199
|
+
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("span", null, "Loading...", -1);
|
|
2200
2200
|
const _hoisted_3 = { class: "htw-flex htw-flex-col htw-h-full" };
|
|
2201
2201
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2202
2202
|
setup(__props) {
|
|
@@ -2231,7 +2231,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2231
2231
|
"data-test-id": "story-side-panel"
|
|
2232
2232
|
}, {
|
|
2233
2233
|
first: withCtx(() => [
|
|
2234
|
-
|
|
2234
|
+
createElementVNode("div", _hoisted_3, [
|
|
2235
2235
|
createVNode(_sfc_main$2),
|
|
2236
2236
|
(openBlock(), createBlock(resolveDynamicComponent(unref(panelContentComponent)), {
|
|
2237
2237
|
story: unref(storyStore).currentStory,
|
package/dist/bundled/events.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore } from "pinia";
|
|
2
|
-
import {
|
|
2
|
+
import { reactive, ref, watch } from "vue";
|
|
3
3
|
import { u as useStoryStore } from "./story.js";
|
|
4
4
|
const useEventsStore = defineStore("events", () => {
|
|
5
5
|
const storyStore = useStoryStore();
|
|
@@ -17,8 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
20
|
+
import { markRaw, defineComponent, useAttrs, getCurrentInstance, inject, watch, computed, provide, h } from "vue";
|
|
21
21
|
import { registerVueComponents } from "@histoire/controls";
|
|
22
|
+
const copiedFromExistingVariant = [
|
|
23
|
+
"state",
|
|
24
|
+
"slots",
|
|
25
|
+
"initState",
|
|
26
|
+
"source",
|
|
27
|
+
"responsiveDisabled",
|
|
28
|
+
"setupApp",
|
|
29
|
+
"configReady",
|
|
30
|
+
"previewReady"
|
|
31
|
+
];
|
|
22
32
|
function mapFile(file, existingFile) {
|
|
23
33
|
const result = __spreadProps(__spreadValues({}, file), {
|
|
24
34
|
component: markRaw(file.component),
|
|
@@ -34,7 +44,7 @@ function mapFile(file, existingFile) {
|
|
|
34
44
|
const variant = result.story.variants[index];
|
|
35
45
|
const existingVariant = existingFile.story.variants[index];
|
|
36
46
|
if (existingVariant) {
|
|
37
|
-
for (const key
|
|
47
|
+
for (const key of copiedFromExistingVariant) {
|
|
38
48
|
if (typeof existingVariant[key] !== "undefined") {
|
|
39
49
|
if (key === "state") {
|
|
40
50
|
variant.state = existingVariant.state;
|
package/dist/bundled/index.js
CHANGED