histoire 0.4.1 → 0.4.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/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 +1 -1
- package/dist/bundled/index.js +1 -1
- package/dist/bundled/index2.js +22 -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 +1 -1
- package/dist/bundled/vue.runtime.esm-bundler.js +8657 -0
- package/package.json +5 -5
package/dist/bundled/index2.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import "$histoire-theme";
|
|
21
|
-
import { pushScopeId, popScopeId, defineComponent, useCssVars, unref, computed, ref, openBlock, createElementBlock, createVNode, withCtx,
|
|
21
|
+
import { p as pushScopeId, a as popScopeId, d as defineComponent, u as useCssVars, b as unref, c as computed, r as ref, o as openBlock, e as createElementBlock, f as createVNode, w as withCtx, g as createBaseVNode, n as normalizeClass, t as toDisplayString, h as createCommentVNode, i as watch, j as resolveComponent, k as withKeys, F as Fragment, l as renderList, m as createBlock, q as isRef, s as resolveDirective, v as withDirectives, x as createTextVNode, y as defineAsyncComponent, z as vShow, A as resolveDynamicComponent, B as createApp } from "./vue.runtime.esm-bundler.js";
|
|
22
22
|
import { defineStore, createPinia } from "pinia";
|
|
23
23
|
import FloatingVue from "floating-vue";
|
|
24
24
|
import { files, tree, onUpdate } from "$histoire-stories";
|
|
@@ -74,7 +74,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
default: withCtx(({ active: active2 }) => {
|
|
75
75
|
var _a;
|
|
76
76
|
return [
|
|
77
|
-
|
|
77
|
+
createBaseVNode("span", _hoisted_1$9, [
|
|
78
78
|
createVNode(unref(Icon), {
|
|
79
79
|
icon: (_a = __props.story.icon) != null ? _a : "carbon:cube",
|
|
80
80
|
class: normalizeClass(["base-list-item-link-icon htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4 htw-flex-none", {
|
|
@@ -82,7 +82,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
"bind-icon-color": !active2 && __props.story.iconColor
|
|
83
83
|
}])
|
|
84
84
|
}, null, 8, ["icon", "class"]),
|
|
85
|
-
|
|
85
|
+
createBaseVNode("span", _hoisted_2$7, toDisplayString(__props.story.title), 1)
|
|
86
86
|
]),
|
|
87
87
|
!__props.story.docsOnly ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString(__props.story.variants.length), 1)) : createCommentVNode("", true)
|
|
88
88
|
];
|
|
@@ -167,7 +167,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
167
167
|
return (_ctx, _cache) => {
|
|
168
168
|
const _component_StoryListFolder = resolveComponent("StoryListFolder", true);
|
|
169
169
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
170
|
-
|
|
170
|
+
createBaseVNode("div", {
|
|
171
171
|
role: "button",
|
|
172
172
|
tabindex: "0",
|
|
173
173
|
class: "htw-px-0.5 htw-py-2 md:htw-py-1.5 htw-mx-1 htw-rounded-sm hover:htw-bg-primary-100 dark:hover:htw-bg-primary-900 htw-cursor-pointer htw-select-none htw-flex",
|
|
@@ -177,8 +177,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
177
177
|
withKeys(toggleOpen, ["space"])
|
|
178
178
|
]
|
|
179
179
|
}, [
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
createBaseVNode("span", _hoisted_3$4, [
|
|
181
|
+
createBaseVNode("span", _hoisted_4$4, [
|
|
182
182
|
createVNode(unref(Icon), {
|
|
183
183
|
icon: "carbon:caret-right",
|
|
184
184
|
class: normalizeClass(["htw-w-4 htw-h-4 htw-transition-transform htw-duration-150 htw-opacity-30", {
|
|
@@ -190,7 +190,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
190
190
|
class: "htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4"
|
|
191
191
|
})
|
|
192
192
|
]),
|
|
193
|
-
|
|
193
|
+
createBaseVNode("span", _hoisted_5$1, toDisplayString(__props.folder.title), 1)
|
|
194
194
|
])
|
|
195
195
|
], 40, _hoisted_2$6),
|
|
196
196
|
unref(isFolderOpen) ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
@@ -223,7 +223,7 @@ const _hoisted_1$7 = {
|
|
|
223
223
|
};
|
|
224
224
|
const _hoisted_2$5 = ["onKeyup"];
|
|
225
225
|
const _hoisted_3$3 = { class: "htw-truncate htw-opacity-50" };
|
|
226
|
-
const _hoisted_4$3 = /* @__PURE__ */
|
|
226
|
+
const _hoisted_4$3 = /* @__PURE__ */ createBaseVNode("span", { class: "htw-h-[1px] htw-flex-1 htw-bg-gray-500/10 htw-mx-2" }, null, -1);
|
|
227
227
|
const _hoisted_5 = { key: 1 };
|
|
228
228
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
229
229
|
props: {
|
|
@@ -258,7 +258,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
258
258
|
"htw-rotate-90": unref(isFolderOpen)
|
|
259
259
|
}])
|
|
260
260
|
}, null, 8, ["class"]),
|
|
261
|
-
|
|
261
|
+
createBaseVNode("span", _hoisted_3$3, toDisplayString(__props.group.title), 1),
|
|
262
262
|
_hoisted_4$3
|
|
263
263
|
], 40, _hoisted_2$5)) : createCommentVNode("", true),
|
|
264
264
|
unref(isFolderOpen) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
@@ -447,8 +447,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
447
447
|
var _a;
|
|
448
448
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
449
449
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
createBaseVNode("div", _hoisted_2$4, [
|
|
451
|
+
createBaseVNode("a", {
|
|
452
452
|
href: (_a = unref(histoireConfig).theme) == null ? void 0 : _a.logoHref,
|
|
453
453
|
target: "_blank",
|
|
454
454
|
class: "htw-w-full htw-h-full htw-flex htw-items-center"
|
|
@@ -456,7 +456,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
456
456
|
createVNode(_sfc_main$5, { class: "htw-max-w-full htw-max-h-full" })
|
|
457
457
|
], 8, _hoisted_3$2)
|
|
458
458
|
]),
|
|
459
|
-
|
|
459
|
+
createBaseVNode("div", _hoisted_4$2, [
|
|
460
460
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
461
461
|
class: "htw-p-2 sm:htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-text-gray-900 dark:htw-text-gray-100",
|
|
462
462
|
"data-test-id": "search-btn",
|
|
@@ -487,7 +487,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
487
487
|
});
|
|
488
488
|
var Breadcrumb_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
489
489
|
const _withScopeId = (n) => (pushScopeId("data-v-5fe505b0"), n = n(), popScopeId(), n);
|
|
490
|
-
const _hoisted_1$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */
|
|
490
|
+
const _hoisted_1$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "htw-opacity-40" }, " / ", -1));
|
|
491
491
|
const _hoisted_2$3 = { class: "htw-flex htw-items-center htw-gap-2" };
|
|
492
492
|
const _hoisted_3$1 = { class: "htw-opacity-40 htw-text-sm" };
|
|
493
493
|
const _hoisted_4$1 = /* @__PURE__ */ createTextVNode(" Select a story... ");
|
|
@@ -522,19 +522,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
522
522
|
return (_ctx, _cache) => {
|
|
523
523
|
var _a;
|
|
524
524
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
createBaseVNode("div", null, [
|
|
526
|
+
createBaseVNode("a", {
|
|
527
527
|
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",
|
|
528
528
|
onClick: openMenu
|
|
529
529
|
}, [
|
|
530
530
|
unref(story) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
531
531
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(folders), (file, key) => {
|
|
532
532
|
return openBlock(), createElementBlock(Fragment, { key }, [
|
|
533
|
-
|
|
533
|
+
createBaseVNode("span", null, toDisplayString(file), 1),
|
|
534
534
|
_hoisted_1$3
|
|
535
535
|
], 64);
|
|
536
536
|
}), 128)),
|
|
537
|
-
|
|
537
|
+
createBaseVNode("span", _hoisted_2$3, [
|
|
538
538
|
createVNode(unref(Icon), {
|
|
539
539
|
icon: (_a = unref(story).icon) != null ? _a : "carbon:cube",
|
|
540
540
|
class: normalizeClass(["base-list-item-link-icon htw-w-5 htw-h-5 htw-flex-none", {
|
|
@@ -543,7 +543,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
543
543
|
}])
|
|
544
544
|
}, null, 8, ["icon", "class"]),
|
|
545
545
|
createTextVNode(" " + toDisplayString(unref(story).title) + " ", 1),
|
|
546
|
-
|
|
546
|
+
createBaseVNode("span", _hoisted_3$1, toDisplayString(unref(story).variants.length), 1)
|
|
547
547
|
])
|
|
548
548
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
549
549
|
_hoisted_4$1
|
|
@@ -614,11 +614,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
614
614
|
}
|
|
615
615
|
return (_ctx, _cache) => {
|
|
616
616
|
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
617
|
-
|
|
617
|
+
createBaseVNode("div", {
|
|
618
618
|
class: "htw-absolute htw-inset-0",
|
|
619
619
|
onClick: _cache[0] || (_cache[0] = ($event) => close())
|
|
620
620
|
}),
|
|
621
|
-
|
|
621
|
+
createBaseVNode("div", _hoisted_2$1, [
|
|
622
622
|
createVNode(unref(SearchPane), {
|
|
623
623
|
shown: __props.shown,
|
|
624
624
|
onClose: _cache[1] || (_cache[1] = ($event) => close())
|
|
@@ -693,7 +693,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
693
693
|
story: unref(storyStore).currentStory
|
|
694
694
|
}, null, 8, ["story"]))
|
|
695
695
|
])) : createCommentVNode("", true),
|
|
696
|
-
|
|
696
|
+
createBaseVNode("div", _hoisted_2, [
|
|
697
697
|
unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
698
698
|
createVNode(_sfc_main$4, {
|
|
699
699
|
onSearch: _cache[0] || (_cache[0] = ($event) => isSearchOpen.value = true)
|
|
@@ -712,7 +712,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
712
712
|
class: "htw-h-full"
|
|
713
713
|
}, {
|
|
714
714
|
first: withCtx(() => [
|
|
715
|
-
|
|
715
|
+
createBaseVNode("div", _hoisted_4, [
|
|
716
716
|
createVNode(_sfc_main$4, {
|
|
717
717
|
class: "htw-flex-none",
|
|
718
718
|
onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, createApp, onMounted, watch, onUnmounted, openBlock, createElementBlock, isRef, unref } from "vue";
|
|
1
|
+
import { d as defineComponent, r as ref, B as createApp, L as onMounted, i as watch, M as onUnmounted, o as openBlock, e as createElementBlock, q as isRef, b as unref } from "./vue.runtime.esm-bundler.js";
|
|
2
2
|
import * as setup from "$histoire-setup";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
props: {
|
package/dist/bundled/sandbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseQuery } from "vue-router";
|
|
2
|
-
import { reactive, ref, createApp, computed, watch, onMounted, h } from "vue";
|
|
2
|
+
import { P as reactive, r as ref, B as createApp, c as computed, i as watch, L as onMounted, I as h } from "./vue.runtime.esm-bundler.js";
|
|
3
3
|
import { createPinia } from "pinia";
|
|
4
4
|
import { m as mapFile, r as registerGlobalComponents } from "./global-components.js";
|
|
5
5
|
import { t as toRawDeep, _ as _sfc_main } from "./reactivity.js";
|
package/dist/bundled/story.js
CHANGED