@histoire/app 1.0.0-alpha.1 → 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/bundled/App.vue2.js +1 -1
- package/dist/bundled/app.css +1 -1
- package/dist/bundled/components/HomeView.vue2.js +2 -2
- package/dist/bundled/components/app/AppHeader.vue2.js +1 -1
- package/dist/bundled/components/app/AppLogo.vue2.js +2 -2
- package/dist/bundled/components/app/Breadcrumb.vue2.js +1 -1
- 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 +1 -1
- package/dist/bundled/components/base/BaseIcon.vue2.js +1 -1
- 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 +1 -1
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +1 -1
- package/dist/bundled/components/base/BaseSelect.vue2.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +1 -1
- 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 +9 -9
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +1 -1
- package/dist/bundled/components/command/PromptSelect.vue2.js +1 -1
- package/dist/bundled/components/command/PromptText.vue2.js +1 -1
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +1 -1
- package/dist/bundled/components/misc/HatchedPattern.vue.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +1 -1
- package/dist/bundled/components/panel/PaneTabs.vue2.js +1 -1
- package/dist/bundled/components/panel/StatePresets.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryControls.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryDocs.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryEvent.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryEvents.vue2.js +1 -1
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +1 -1
- package/dist/bundled/components/panel/StorySourceCode.vue.js +1 -1
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +3 -3
- package/dist/bundled/components/search/SearchItem.vue2.js +1 -1
- package/dist/bundled/components/search/SearchItemContent.vue2.js +1 -1
- package/dist/bundled/components/search/SearchLoading.vue2.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue2.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.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +1 -1
- package/dist/bundled/components/story/StoryView.vue2.js +1 -1
- package/dist/bundled/components/story/StoryViewer.vue2.js +1 -1
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +1 -1
- 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 +1 -1
- package/dist/bundled/components/tree/StoryList.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryListItem.vue2.js +1 -1
- package/dist/bundled/sandbox.js +2 -2
- package/package.json +5 -5
- package/src/app/components/panel/StorySourceCode.vue +3 -3
- package/src/app/sandbox.ts +4 -4
package/dist/bundled/App.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, resolveComponent,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, createVNode, unref, createBlock, normalizeStyle, withCtx, Transition } from "@histoire/vendors/vue";
|
|
2
2
|
import { useTitle } from "@histoire/vendors/vue-use";
|
|
3
3
|
import { files, tree, onUpdate } from "virtual:$histoire-stories";
|
|
4
4
|
import "./components/app/AppHeader.vue.js";
|
package/dist/bundled/app.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import HistoireLogo from "../assets/histoire.svg.js";
|
|
3
3
|
import { useStoryStore } from "../stores/story.js";
|
|
4
|
-
import {
|
|
4
|
+
import { customLogos, histoireConfig } from "../util/config.js";
|
|
5
5
|
import "./app/HomeCounter.vue.js";
|
|
6
6
|
import _sfc_main$1 from "./app/HomeCounter.vue2.js";
|
|
7
7
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveDirective,
|
|
1
|
+
import { defineComponent, computed, resolveDirective, createElementBlock, openBlock, createElementVNode, unref, createVNode, withDirectives, createCommentVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { histoireConfig } from "../../util/config.js";
|
|
4
4
|
import { isDark, toggleDark } from "../../util/dark.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import HistoireLogoDark from "../../assets/histoire-text-dark.svg.js";
|
|
3
3
|
import HistoireLogoLight from "../../assets/histoire-text.svg.js";
|
|
4
|
-
import {
|
|
4
|
+
import { customLogos, histoireConfig } from "../../util/config.js";
|
|
5
5
|
import { isDark } from "../../util/dark.js";
|
|
6
6
|
"use strict";
|
|
7
7
|
const _hoisted_1 = ["src", "alt"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, computed, ref, watch,
|
|
1
|
+
import { defineComponent, useCssVars, computed, ref, watch, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, renderList, toDisplayString, createTextVNode, unref, normalizeClass, withCtx } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useStoryStore } from "../../stores/story.js";
|
|
4
4
|
import "../tree/StoryList.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode, unref, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = { class: "htw-p-2 htw-flex htw-items-center htw-gap-x-2" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, reactive,
|
|
1
|
+
import { defineComponent, reactive, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, Fragment, renderList, createElementVNode, normalizeClass } from "@histoire/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
3
|
const _hoisted_1 = { class: "histoire-initial-loading htw-fixed htw-inset-0 htw-bg-white dark:htw-bg-gray-700 htw-flex htw-flex-col htw-gap-6 htw-items-center htw-justify-center" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, createElementVNode, renderSlot, toDisplayString, createVNode, unref } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot } from "@histoire/vendors/vue";
|
|
2
2
|
import { RouterLink } from "@histoire/vendors/vue-router";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch,
|
|
1
|
+
import { defineComponent, ref, computed, watch, createElementBlock, openBlock, withKeys, withModifiers, createElementVNode, renderSlot, normalizeClass } from "@histoire/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
3
|
const _hoisted_1 = { class: "htw-text-white htw-w-[16px] htw-h-[16px] htw-relative" };
|
|
4
4
|
const _hoisted_2 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock, openBlock, renderSlot } from "@histoire/vendors/vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, createBlock, openBlock, unref } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = ["src", "alt"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { formatKey } from "../../util/keyboard.js";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = { class: "histoire-base-keyboard-shortcut htw-border htw-border-current htw-opacity-50 htw-px-1 htw-rounded-sm" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, withKeys, normalizeClass, renderSlot } from "@histoire/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "BaseListItem",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./BaseListItemLink.vue2.js";
|
|
2
|
-
import { resolveComponent,
|
|
2
|
+
import { resolveComponent, createBlock, openBlock, mergeProps, withCtx, createElementVNode, withKeys, normalizeClass, renderSlot } from "@histoire/vendors/vue";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
5
|
const _hoisted_1 = ["href", "onClick", "onKeyup"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode, withCtx, renderSlot, createElementVNode, unref, reactive, onBeforeUnmount, h } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useResizeObserver } from "@histoire/vendors/vue-use";
|
|
4
4
|
"use strict";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./BaseOverflowTab.vue2.js";
|
|
2
|
-
import { resolveComponent,
|
|
2
|
+
import { resolveComponent, createBlock, openBlock, mergeProps, withCtx, createElementVNode, renderSlot, createVNode, Transition, createElementBlock, createCommentVNode } from "@histoire/vendors/vue";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
5
|
const _hoisted_1 = ["href", "onClick"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, unref, withCtx, createElementVNode, createVNode, renderSlot, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, mergeProps } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { Dropdown } from "@histoire/vendors/floating-vue";
|
|
4
4
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed, onUnmounted,
|
|
1
|
+
import { defineComponent, ref, watch, computed, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, withModifiers } from "@histoire/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
3
|
const SAVE_PREFIX = "__histoire";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./BaseTab.vue2.js";
|
|
2
|
-
import { resolveComponent,
|
|
2
|
+
import { resolveComponent, createBlock, openBlock, mergeProps, withCtx, createElementVNode, renderSlot, createVNode, Transition, createElementBlock, createCommentVNode } from "@histoire/vendors/vue";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
5
|
const _hoisted_1 = ["href", "onClick"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock, openBlock, renderSlot } from "@histoire/vendors/vue";
|
|
2
2
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const _sfc_main = {};
|
|
4
4
|
const _hoisted_1 = { class: "histoire-base-tag htw-text-center htw-text-xs htw-mx-1 htw-px-0.5 htw-h-4 htw-uppercase htw-min-w-4 htw-rounded-full htw-bg-primary-500 htw-text-white dark:htw-text-black" };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent, reactive, ref, onMounted, openBlock,
|
|
1
|
+
import { defineComponent, reactive, ref, onMounted, createElementBlock, openBlock, withKeys, withModifiers, createElementVNode, toDisplayString, Fragment, renderList, createBlock, resolveDynamicComponent, createVNode, withCtx, nextTick } from "@histoire/vendors/vue";
|
|
2
2
|
import { getCommandContext, executeCommand } from "../../util/commands.js";
|
|
3
3
|
import "../base/BaseButton.vue.js";
|
|
4
4
|
import "../base/BaseKeyboardShortcut.vue.js";
|
|
5
5
|
import "./PromptSelect.vue.js";
|
|
6
6
|
import "./PromptText.vue.js";
|
|
7
|
-
import _sfc_main$1 from "
|
|
8
|
-
import _sfc_main$2 from "
|
|
9
|
-
import _sfc_main$3 from "
|
|
10
|
-
import _sfc_main$4 from "
|
|
7
|
+
import _sfc_main$1 from "./PromptSelect.vue2.js";
|
|
8
|
+
import _sfc_main$2 from "./PromptText.vue2.js";
|
|
9
|
+
import _sfc_main$3 from "../base/BaseButton.vue2.js";
|
|
10
|
+
import _sfc_main$4 from "../base/BaseKeyboardShortcut.vue2.js";
|
|
11
11
|
"use strict";
|
|
12
12
|
const _hoisted_1 = { class: "htw-p-4 htw-opacity-70" };
|
|
13
13
|
const _hoisted_2 = { class: "htw-flex htw-justify-end htw-gap-2 htw-p-2" };
|
|
@@ -21,8 +21,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const props = __props;
|
|
22
22
|
const emit = __emit;
|
|
23
23
|
const promptTypes = {
|
|
24
|
-
text: _sfc_main$
|
|
25
|
-
select: _sfc_main$
|
|
24
|
+
text: _sfc_main$2,
|
|
25
|
+
select: _sfc_main$1
|
|
26
26
|
};
|
|
27
27
|
const answers = reactive({});
|
|
28
28
|
for (const prompt of props.command.prompts) {
|
|
@@ -72,12 +72,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "prompt", "answers", "index", "onNext"]);
|
|
73
73
|
}), 128)),
|
|
74
74
|
createElementVNode("div", _hoisted_2, [
|
|
75
|
-
createVNode(_sfc_main$
|
|
75
|
+
createVNode(_sfc_main$3, {
|
|
76
76
|
type: "submit",
|
|
77
77
|
class: "htw-px-4 htw-py-2 htw-flex htw-items-start htw-gap-2"
|
|
78
78
|
}, {
|
|
79
79
|
default: withCtx(() => [
|
|
80
|
-
createVNode(_sfc_main$
|
|
80
|
+
createVNode(_sfc_main$4, { shortcut: "Enter" }),
|
|
81
81
|
_cache[2] || (_cache[2] = createElementVNode("span", null, "Submit", -1))
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent,
|
|
1
|
+
import { defineComponent, defineAsyncComponent, createElementBlock, createCommentVNode, openBlock, createElementVNode, createVNode, unref } from "@histoire/vendors/vue";
|
|
2
2
|
import { useCommandStore } from "../../stores/command.js";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watchEffect,
|
|
1
|
+
import { defineComponent, computed, ref, watchEffect, createElementBlock, openBlock, withDirectives, createElementVNode, vModelText, createCommentVNode, toDisplayString, createTextVNode, createVNode, withKeys, withModifiers, unref, Fragment, renderList, normalizeClass, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useSelection } from "../../util/select.js";
|
|
4
4
|
import "../base/BaseKeyboardShortcut.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch,
|
|
1
|
+
import { defineComponent, computed, ref, watch, createElementBlock, openBlock, createElementVNode, withDirectives, createCommentVNode, toDisplayString, vModelText } from "@histoire/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
3
|
const _hoisted_1 = { class: "histoire-prompt-text" };
|
|
4
4
|
const _hoisted_2 = { class: "htw-flex htw-flex-col htw-gap-2 htw-p-2" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const _sfc_main = {};
|
|
4
4
|
const _hoisted_1 = { fill: "none" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveDirective,
|
|
1
|
+
import { defineComponent, computed, resolveDirective, createBlock, createCommentVNode, openBlock, resolveDynamicComponent, withCtx, withDirectives, createVNode, unref, withModifiers, normalizeClass } from "@histoire/vendors/vue";
|
|
2
2
|
import { HstJson, HstCheckbox, HstNumber, HstText } from "@histoire/controls";
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveDirective,
|
|
1
|
+
import { defineComponent, resolveDirective, createElementBlock, openBlock, createElementVNode, withDirectives, createVNode, unref, createTextVNode, toDisplayString, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import "./ControlsComponentPropItem.vue.js";
|
|
4
4
|
import _sfc_main$1 from "./ControlsComponentPropItem.vue2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveDirective,
|
|
1
|
+
import { defineComponent, computed, resolveDirective, createElementBlock, openBlock, createElementVNode, withDirectives, createVNode, unref, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import "./ControlsComponentStateItem.vue.js";
|
|
4
4
|
import _sfc_main$1 from "./ControlsComponentStateItem.vue2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createBlock, createCommentVNode, openBlock, resolveDynamicComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import { HstJson, HstCheckbox, HstNumber, HstText } from "@histoire/controls";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, toRefs, computed,
|
|
1
|
+
import { defineComponent, toRefs, computed, createBlock, openBlock, withCtx, createVNode, createTextVNode, normalizeClass, unref, createCommentVNode, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { useEventsStore } from "../../stores/events.js";
|
|
3
3
|
import "../base/BaseOverflowMenu.vue.js";
|
|
4
4
|
import BaseOverflowTab from "../base/BaseOverflowTab.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, onMounted, ref, resolveDirective,
|
|
1
|
+
import { defineComponent, computed, onMounted, ref, resolveDirective, createElementBlock, openBlock, createElementVNode, withDirectives, createVNode, withKeys, unref, isRef, withCtx, createCommentVNode, toDisplayString, createBlock, withModifiers, vModelText, normalizeClass, nextTick } from "@histoire/vendors/vue";
|
|
2
2
|
import { clone, omit, applyState } from "@histoire/shared";
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useStorage, useTimeoutFn, onClickOutside } from "@histoire/vendors/vue-use";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed,
|
|
1
|
+
import { defineComponent, ref, watch, computed, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, createVNode, withCtx, unref, Fragment, renderList } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import BaseEmpty from "../base/BaseEmpty.vue.js";
|
|
4
4
|
import "../story/GenericRenderStory.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, toRefs, watch, ref, computed,
|
|
1
|
+
import { defineComponent, toRefs, watch, ref, computed, createElementBlock, openBlock, createCommentVNode, createBlock, unref, normalizeClass, withCtx, createVNode, createTextVNode, watchEffect, nextTick } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { markdownFiles } from "virtual:$histoire-markdown-files";
|
|
4
4
|
import { useRouter, useRoute } from "@histoire/vendors/vue-router";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, toDisplayString, normalizeClass, createElementBlock, createCommentVNode } from "@histoire/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, onMounted, watch, nextTick, ref,
|
|
1
|
+
import { defineComponent, computed, onMounted, watch, nextTick, ref, createElementBlock, openBlock, createBlock, withCtx, createVNode, createTextVNode, unref, Fragment, renderList } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useEventsStore } from "../../stores/events.js";
|
|
4
4
|
import BaseEmpty from "../base/BaseEmpty.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, unref, openBlock,
|
|
1
|
+
import { defineComponent, computed, createBlock, unref, openBlock, withCtx, createElementVNode, createVNode, resolveDynamicComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import { useRoute } from "@histoire/vendors/vue-router";
|
|
3
3
|
import { useStoryStore } from "../../stores/story.js";
|
|
4
4
|
import BaseEmpty from "../base/BaseEmpty.vue.js";
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./StorySourceCode.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-96af7f40"]]);
|
|
6
6
|
export {
|
|
7
7
|
StorySourceCode as default
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, watchEffect, markRaw, shallowRef, watch, computed, onMounted, nextTick, resolveDirective,
|
|
1
|
+
import { defineComponent, ref, watchEffect, markRaw, shallowRef, watch, computed, onMounted, nextTick, resolveDirective, createElementBlock, openBlock, createCommentVNode, createBlock, createElementVNode, createVNode, withDirectives, normalizeClass, unref, toDisplayString, withCtx } from "@histoire/vendors/vue";
|
|
2
2
|
import { HstCopyIcon } from "@histoire/controls";
|
|
3
3
|
import { unindent } from "@histoire/shared";
|
|
4
4
|
import { Icon } from "@histoire/vendors/iconify";
|
|
5
|
-
import {
|
|
5
|
+
import { createHighlighter } from "shiki";
|
|
6
6
|
import { clientSupportPlugins } from "virtual:$histoire-support-plugins-client";
|
|
7
7
|
import { isDark } from "../../util/dark.js";
|
|
8
8
|
import BaseEmpty from "../base/BaseEmpty.vue.js";
|
|
@@ -88,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
return staticSourceCode.value;
|
|
89
89
|
});
|
|
90
90
|
onMounted(async () => {
|
|
91
|
-
highlighter.value = await
|
|
91
|
+
highlighter.value = await createHighlighter({
|
|
92
92
|
langs: [
|
|
93
93
|
"html",
|
|
94
94
|
"jsx"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, ref, toRefs,
|
|
1
|
+
import { defineComponent, useCssVars, ref, toRefs, createElementBlock, openBlock, unref, createBlock, createCommentVNode, withCtx, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { useRouter } from "@histoire/vendors/vue-router";
|
|
3
3
|
import { onKeyboardShortcut } from "../../util/keyboard.js";
|
|
4
4
|
import { useScrollOnActive } from "../../util/scroll.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, normalizeClass, createCommentVNode, createTextVNode, toDisplayString, renderList, createBlock, unref } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import BaseIcon from "../base/BaseIcon.vue.js";
|
|
4
4
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createTextVNode, unref } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = { class: "histoire-search-loading htw-flex htw-items-center htw-gap-4 htw-pl-6 htw-border htw-border-transparent focus-visible:htw-border-primary-500 htw-h-[51px] htw-opacity-30" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed,
|
|
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";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useFocus, useDebounce } from "@histoire/vendors/vue-use";
|
|
4
4
|
import Fuse from "fuse.js";
|
|
@@ -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,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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, unref, ref, onUnmounted, computed,
|
|
1
|
+
import { defineComponent, useCssVars, unref, ref, onUnmounted, computed, createElementBlock, openBlock, createCommentVNode, createElementVNode, createVNode, normalizeClass, createBlock, createStaticVNode, renderSlot, Fragment, withDirectives } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useEventListener } from "@histoire/vendors/vue-use";
|
|
4
4
|
import { VTooltip } from "@histoire/vendors/floating-vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
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
2
|
import { HstCopyIcon } from "@histoire/controls";
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useResizeObserver } from "@histoire/vendors/vue-use";
|
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
import { useScrollOnActive } from "../../util/scroll.js";
|
|
4
4
|
import { useCurrentVariantRoute } from "../../util/variant.js";
|
|
@@ -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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, withCtx, createElementVNode, normalizeStyle, unref, normalizeClass } from "@histoire/vendors/vue";
|
|
2
2
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
3
3
|
import { histoireConfig } from "../../util/config.js";
|
|
4
4
|
import { isDark } from "../../util/dark.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed,
|
|
1
|
+
import { defineComponent, ref, watch, computed, createBlock, openBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, toRaw } from "@histoire/vendors/vue";
|
|
2
2
|
import { applyState } from "@histoire/shared";
|
|
3
3
|
import { useEventListener } from "@histoire/vendors/vue-use";
|
|
4
4
|
import { useEventsStore } from "../../stores/events.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
|
|
4
4
|
import ToolbarBackground from "../toolbar/ToolbarBackground.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, watch, ref, unref, openBlock,
|
|
1
|
+
import { defineComponent, watch, ref, createBlock, createElementBlock, unref, openBlock, withCtx, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useRouter, useRoute } from "@histoire/vendors/vue-router";
|
|
4
4
|
import { useStoryStore } from "../../stores/story.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
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
4
|
import "./StoryVariantGrid.vue.js";
|
|
@@ -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,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";
|
|
@@ -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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, resolveDirective,
|
|
1
|
+
import { defineComponent, resolveComponent, resolveDirective, createBlock, openBlock, unref, withCtx, withDirectives, createElementBlock, normalizeClass, createVNode, createElementVNode, createTextVNode, vModelText, Fragment, renderList, toDisplayString, createCommentVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
4
4
|
import { histoireConfig } from "../../util/config.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveDirective, withDirectives,
|
|
1
|
+
import { defineComponent, resolveDirective, withDirectives, createElementBlock, openBlock, unref, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
4
4
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode, unref, normalizeClass, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = { class: "histoire-toolbar-title htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, createElementVNode, withKeys, createVNode, unref, toDisplayString, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useFolderStore } from "../../stores/folder.js";
|
|
4
4
|
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import "./StoryGroup.vue.js";
|
|
3
3
|
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
4
4
|
import StoryListItem from "./StoryListItem.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, computed, resolveComponent,
|
|
1
|
+
import { defineComponent, useCssVars, computed, resolveComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, withKeys, createVNode, unref, normalizeClass, toDisplayString, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useFolderStore } from "../../stores/folder.js";
|
|
4
4
|
import StoryListItem from "./StoryListItem.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, computed, ref,
|
|
1
|
+
import { defineComponent, useCssVars, computed, ref, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, createCommentVNode, unref, normalizeClass, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useRoute } from "@histoire/vendors/vue-router";
|
|
4
4
|
import { useScrollOnActive } from "../../util/scroll.js";
|
package/dist/bundled/sandbox.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { applyState } from "@histoire/shared";
|
|
2
2
|
import { createPinia } from "@histoire/vendors/pinia";
|
|
3
3
|
import { files } from "virtual:$histoire-stories";
|
|
4
|
-
import { ref, createApp, computed, watch, onMounted
|
|
4
|
+
import { ref, createApp, h, computed, watch, onMounted } from "@histoire/vendors/vue";
|
|
5
5
|
import { parseQuery } from "@histoire/vendors/vue-router";
|
|
6
6
|
import "./components/story/GenericMountStory.vue.js";
|
|
7
7
|
import "./components/story/GenericRenderStory.vue.js";
|
|
8
8
|
import { setupPluginApi } from "./plugin.js";
|
|
9
9
|
import { histoireConfig } from "./util/config.js";
|
|
10
|
-
import { STATE_SYNC, PREVIEW_SETTINGS_SYNC
|
|
10
|
+
import { SANDBOX_READY, STATE_SYNC, PREVIEW_SETTINGS_SYNC } from "./util/const.js";
|
|
11
11
|
import { isDark } from "./util/dark.js";
|
|
12
12
|
import { mapFile } from "./util/mapping.js";
|
|
13
13
|
import { applyPreviewSettings } from "./util/preview-settings.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.2",
|
|
5
5
|
"description": "Pre-bundled UI for Histoire",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Guillaume Chau"
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"types": "./src/index.ts",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"fuse.js": "^7.0.0",
|
|
28
|
-
"shiki
|
|
29
|
-
"@histoire/
|
|
30
|
-
"@histoire/
|
|
31
|
-
"@histoire/
|
|
28
|
+
"shiki": "^3.0.0",
|
|
29
|
+
"@histoire/shared": "^1.0.0-alpha.2",
|
|
30
|
+
"@histoire/vendors": "^1.0.0-alpha.2",
|
|
31
|
+
"@histoire/controls": "^1.0.0-alpha.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@tailwindcss/typography": "^0.5.15",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import type { Highlighter } from 'shiki
|
|
2
|
+
import type { Highlighter } from 'shiki'
|
|
3
3
|
import type { Story, Variant } from '../../types'
|
|
4
4
|
import { HstCopyIcon } from '@histoire/controls'
|
|
5
5
|
import { unindent } from '@histoire/shared'
|
|
6
6
|
import { Icon } from '@iconify/vue'
|
|
7
|
-
import {
|
|
7
|
+
import { createHighlighter } from 'shiki'
|
|
8
8
|
import { clientSupportPlugins } from 'virtual:$histoire-support-plugins-client'
|
|
9
9
|
import { computed, markRaw, nextTick, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'
|
|
10
10
|
import { isDark } from '../../util/dark'
|
|
@@ -87,7 +87,7 @@ const displayedSourceCode = computed(() => {
|
|
|
87
87
|
// HTML render
|
|
88
88
|
|
|
89
89
|
onMounted(async () => {
|
|
90
|
-
highlighter.value = await
|
|
90
|
+
highlighter.value = await createHighlighter({
|
|
91
91
|
langs: [
|
|
92
92
|
'html',
|
|
93
93
|
'jsx',
|
package/src/app/sandbox.ts
CHANGED
|
@@ -72,10 +72,10 @@ const app = createApp({
|
|
|
72
72
|
]),
|
|
73
73
|
this.story && this.variant
|
|
74
74
|
? h(GenericRenderStory, { story: this.story, variant: this.variant, onReady: () => {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
window.parent?.postMessage({
|
|
76
|
+
type: SANDBOX_READY,
|
|
77
|
+
})
|
|
78
|
+
} })
|
|
79
79
|
: null,
|
|
80
80
|
]
|
|
81
81
|
},
|