@histoire/app 0.11.9 → 0.12.0
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.vue.js +6 -0
- package/dist/bundled/{App.vue_vue_type_script_setup_true_lang.js → App.vue2.js} +14 -13
- package/dist/bundled/api.js +1 -0
- package/dist/bundled/assets/{histoire-text-dark.js → histoire-text-dark.svg.js} +0 -0
- package/dist/bundled/assets/{histoire-text.js → histoire-text.svg.js} +0 -0
- package/dist/bundled/assets/{histoire.js → histoire.svg.js} +0 -0
- package/dist/bundled/components/HomeView.vue.js +6 -0
- package/dist/bundled/components/{HomeView.vue_vue_type_script_setup_true_lang.js → HomeView.vue2.js} +2 -1
- package/dist/bundled/components/app/AppHeader.vue.js +6 -0
- package/dist/bundled/components/app/{AppHeader.vue_vue_type_script_setup_true_lang.js → AppHeader.vue2.js} +3 -2
- package/dist/bundled/components/app/AppLogo.vue.js +6 -0
- package/dist/bundled/components/app/{AppLogo.vue_vue_type_script_setup_true_lang.js → AppLogo.vue2.js} +3 -2
- package/dist/bundled/components/app/{Breadcrumb.js → Breadcrumb.vue.js} +3 -2
- package/dist/bundled/components/app/{Breadcrumb.vue_vue_type_script_setup_true_lang.js → Breadcrumb.vue2.js} +6 -6
- package/dist/bundled/components/app/{Breadcrumb.vue_vue_type_style_index_0_scoped_36846ccf_lang.js → Breadcrumb.vue3.js} +0 -0
- package/dist/bundled/components/app/InitialLoading.vue.js +6 -0
- package/dist/bundled/components/app/{InitialLoading.vue_vue_type_script_setup_true_lang.js → InitialLoading.vue2.js} +1 -0
- package/dist/bundled/components/app/MobileOverlay.vue.js +6 -0
- package/dist/bundled/components/app/{MobileOverlay.vue_vue_type_script_setup_true_lang.js → MobileOverlay.vue2.js} +1 -0
- package/dist/bundled/components/base/BaseCheckbox.vue.js +6 -0
- package/dist/bundled/components/base/{BaseCheckbox.vue_vue_type_script_setup_true_lang.js → BaseCheckbox.vue2.js} +3 -2
- package/dist/bundled/components/base/{BaseEmpty.js → BaseEmpty.vue.js} +1 -1
- package/dist/bundled/components/base/{BaseEmpty.vue_vue_type_style_index_0_scoped_c5ecfead_lang.js → BaseEmpty.vue2.js} +0 -0
- package/dist/bundled/components/base/{BaseListItemLink.js → BaseListItemLink.vue.js} +2 -1
- package/dist/bundled/components/base/{BaseListItemLink.vue_vue_type_script_lang.js → BaseListItemLink.vue2.js} +1 -0
- package/dist/bundled/components/base/BaseOverflowMenu.vue.js +6 -0
- package/dist/bundled/components/base/{BaseOverflowMenu.vue_vue_type_script_setup_true_lang.js → BaseOverflowMenu.vue2.js} +1 -0
- package/dist/bundled/components/base/{BaseOverflowTab.js → BaseOverflowTab.vue.js} +2 -1
- package/dist/bundled/components/base/{BaseOverflowTab.vue_vue_type_script_lang.js → BaseOverflowTab.vue2.js} +1 -0
- package/dist/bundled/components/base/BaseSelect.vue.js +6 -0
- package/dist/bundled/components/base/{BaseSelect.vue_vue_type_script_setup_true_lang.js → BaseSelect.vue2.js} +1 -0
- package/dist/bundled/components/base/{BaseSplitPane.js → BaseSplitPane.vue.js} +3 -2
- package/dist/bundled/components/base/{BaseSplitPane.vue_vue_type_script_setup_true_lang.js → BaseSplitPane.vue2.js} +1 -0
- package/dist/bundled/components/base/{BaseSplitPane.vue_vue_type_style_index_0_scoped_ed925107_lang.js → BaseSplitPane.vue3.js} +0 -0
- package/dist/bundled/components/base/{BaseTab.js → BaseTab.vue.js} +2 -1
- package/dist/bundled/components/base/{BaseTab.vue_vue_type_script_lang.js → BaseTab.vue2.js} +1 -0
- package/dist/bundled/components/base/{BaseTag.js → BaseTag.vue.js} +0 -0
- package/dist/bundled/components/misc/{CheckerboardPattern.js → CheckerboardPattern.vue.js} +0 -0
- package/dist/bundled/components/misc/{HatchedPattern.js → HatchedPattern.vue.js} +1 -1
- package/dist/bundled/components/misc/{HatchedPattern.vue_vue_type_style_index_0_scoped_91561117_lang.js → HatchedPattern.vue2.js} +0 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +6 -0
- package/dist/bundled/components/panel/{ControlsComponentPropItem.vue_vue_type_script_setup_true_lang.js → ControlsComponentPropItem.vue2.js} +1 -0
- package/dist/bundled/components/panel/ControlsComponentProps.vue.js +6 -0
- package/dist/bundled/components/panel/{ControlsComponentProps.vue_vue_type_script_setup_true_lang.js → ControlsComponentProps.vue2.js} +3 -2
- package/dist/bundled/components/panel/PaneTabs.vue.js +6 -0
- package/dist/bundled/components/panel/{PaneTabs.vue_vue_type_script_setup_true_lang.js → PaneTabs.vue2.js} +8 -7
- package/dist/bundled/components/panel/StatePresets.vue.js +6 -0
- package/dist/bundled/components/panel/{StatePresets.vue_vue_type_script_setup_true_lang.js → StatePresets.vue2.js} +3 -2
- package/dist/bundled/components/panel/StoryControls.vue.js +6 -0
- package/dist/bundled/components/panel/{StoryControls.vue_vue_type_script_setup_true_lang.js → StoryControls.vue2.js} +8 -7
- package/dist/bundled/components/panel/StoryDocs.vue.js +7 -0
- package/dist/bundled/components/panel/{StoryDocs.vue_vue_type_script_setup_true_lang.js → StoryDocs.vue2.js} +2 -1
- package/dist/bundled/components/panel/StoryEvent.vue.js +6 -0
- package/dist/bundled/components/panel/{StoryEvent.vue_vue_type_script_setup_true_lang.js → StoryEvent.vue2.js} +1 -0
- package/dist/bundled/components/panel/StoryEvents.vue.js +6 -0
- package/dist/bundled/components/panel/{StoryEvents.vue_vue_type_script_setup_true_lang.js → StoryEvents.vue2.js} +4 -3
- package/dist/bundled/components/panel/StorySidePanel.vue.js +6 -0
- package/dist/bundled/components/panel/{StorySidePanel.vue_vue_type_script_setup_true_lang.js → StorySidePanel.vue2.js} +12 -11
- package/dist/bundled/components/panel/{StorySourceCode.js → StorySourceCode.vue.js} +3 -2
- package/dist/bundled/components/panel/{StorySourceCode.vue_vue_type_script_setup_true_lang.js → StorySourceCode.vue2.js} +2 -1
- package/dist/bundled/components/panel/{StorySourceCode.vue_vue_type_style_index_0_scoped_f528bb1b_lang.js → StorySourceCode.vue3.js} +0 -0
- package/dist/bundled/components/search/{SearchItem.js → SearchItem.vue.js} +3 -2
- package/dist/bundled/components/search/{SearchItem.vue_vue_type_script_setup_true_lang.js → SearchItem.vue2.js} +5 -4
- package/dist/bundled/components/search/{SearchItem.vue_vue_type_style_index_0_scoped_d95fcb03_lang.js → SearchItem.vue3.js} +0 -0
- package/dist/bundled/components/search/SearchLoading.vue.js +6 -0
- package/dist/bundled/components/search/{SearchLoading.vue_vue_type_script_setup_true_lang.js → SearchLoading.vue2.js} +1 -0
- package/dist/bundled/components/search/SearchModal.vue.js +6 -0
- package/dist/bundled/components/search/{SearchModal.vue_vue_type_script_setup_true_lang.js → SearchModal.vue2.js} +4 -3
- package/dist/bundled/components/search/SearchPane.vue.js +6 -0
- package/dist/bundled/components/search/{SearchPane.vue_vue_type_script_setup_true_lang.js → SearchPane.vue2.js} +4 -4
- package/dist/bundled/components/search/search-docs-data.js +1 -0
- package/dist/bundled/components/search/search-title-data.js +1 -0
- package/dist/bundled/components/story/GenericMountStory.vue.js +6 -0
- package/dist/bundled/components/story/{GenericMountStory.vue_vue_type_script_setup_true_lang.js → GenericMountStory.vue2.js} +1 -0
- package/dist/bundled/components/story/GenericRenderStory.vue.js +6 -0
- package/dist/bundled/components/story/{GenericRenderStory.vue_vue_type_script_setup_true_lang.js → GenericRenderStory.vue2.js} +1 -0
- package/dist/bundled/components/story/{StoryResponsivePreview.js → StoryResponsivePreview.vue.js} +3 -2
- package/dist/bundled/components/story/{StoryResponsivePreview.vue_vue_type_script_setup_true_lang.js → StoryResponsivePreview.vue2.js} +5 -8
- package/dist/bundled/components/story/{StoryResponsivePreview.vue_vue_type_style_index_0_scoped_a83b1911_lang.js → StoryResponsivePreview.vue3.js} +0 -0
- package/dist/bundled/components/story/StoryVariantGrid.vue.js +6 -0
- package/dist/bundled/components/story/{StoryVariantGrid.vue_vue_type_script_setup_true_lang.js → StoryVariantGrid.vue2.js} +5 -4
- package/dist/bundled/components/story/{StoryVariantGridItem.js → StoryVariantGridItem.vue.js} +3 -2
- package/dist/bundled/components/story/{StoryVariantGridItem.vue_vue_type_script_setup_true_lang.js → StoryVariantGridItem.vue2.js} +16 -18
- package/dist/bundled/components/story/{StoryVariantGridItem.vue_vue_type_style_index_0_scoped_f7c98176_lang.js → StoryVariantGridItem.vue3.js} +0 -0
- package/dist/bundled/components/story/{StoryVariantListItem.js → StoryVariantListItem.vue.js} +3 -2
- package/dist/bundled/components/story/{StoryVariantListItem.vue_vue_type_script_setup_true_lang.js → StoryVariantListItem.vue2.js} +12 -14
- package/dist/bundled/components/story/{StoryVariantListItem.vue_vue_type_style_index_0_scoped_ab890d9c_lang.js → StoryVariantListItem.vue3.js} +0 -0
- package/dist/bundled/components/story/{StoryVariantSingle.js → StoryVariantSingle.vue.js} +3 -2
- package/dist/bundled/components/story/{StoryVariantSingle.vue_vue_type_script_setup_true_lang.js → StoryVariantSingle.vue2.js} +6 -6
- package/dist/bundled/components/story/{StoryVariantSingle.vue_vue_type_style_index_0_scoped_ddfc5b4f_lang.js → StoryVariantSingle.vue3.js} +0 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +6 -0
- package/dist/bundled/components/story/{StoryVariantSinglePreviewNative.vue_vue_type_script_setup_true_lang.js → StoryVariantSinglePreviewNative.vue2.js} +4 -3
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +6 -0
- package/dist/bundled/components/story/{StoryVariantSinglePreviewRemote.vue_vue_type_script_setup_true_lang.js → StoryVariantSinglePreviewRemote.vue2.js} +2 -1
- package/dist/bundled/components/story/StoryVariantSingleView.vue.js +6 -0
- package/dist/bundled/components/story/{StoryVariantSingleView.vue_vue_type_script_setup_true_lang.js → StoryVariantSingleView.vue2.js} +14 -13
- package/dist/bundled/components/story/StoryView.vue.js +6 -0
- package/dist/bundled/components/story/{StoryView.vue_vue_type_script_setup_true_lang.js → StoryView.vue2.js} +8 -7
- package/dist/bundled/components/story/{StoryViewer.js → StoryViewer.vue.js} +3 -2
- package/dist/bundled/components/story/{StoryViewer.vue_vue_type_script_setup_true_lang.js → StoryViewer.vue2.js} +7 -6
- package/dist/bundled/components/story/{StoryViewer.vue_vue_type_style_index_0_scoped_6046525f_lang.js → StoryViewer.vue3.js} +0 -0
- package/dist/bundled/components/toolbar/{ToolbarBackground.js → ToolbarBackground.vue.js} +3 -2
- package/dist/bundled/components/toolbar/{ToolbarBackground.vue_vue_type_script_setup_true_lang.js → ToolbarBackground.vue2.js} +3 -2
- package/dist/bundled/components/toolbar/{ToolbarBackground.vue_vue_type_style_index_0_scoped_c48fb2b2_lang.js → ToolbarBackground.vue3.js} +0 -0
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +6 -0
- package/dist/bundled/components/toolbar/{ToolbarNewTab.vue_vue_type_script_setup_true_lang.js → ToolbarNewTab.vue2.js} +1 -0
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +6 -0
- package/dist/bundled/components/toolbar/{ToolbarResponsiveSize.vue_vue_type_script_setup_true_lang.js → ToolbarResponsiveSize.vue2.js} +4 -3
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +6 -0
- package/dist/bundled/components/toolbar/{ToolbarTextDirection.vue_vue_type_script_setup_true_lang.js → ToolbarTextDirection.vue2.js} +1 -0
- package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +6 -0
- package/dist/bundled/components/toolbar/{ToolbarTitle.vue_vue_type_script_setup_true_lang.js → ToolbarTitle.vue2.js} +2 -2
- package/dist/bundled/components/tree/StoryGroup.vue.js +6 -0
- package/dist/bundled/components/tree/{StoryGroup.vue_vue_type_script_setup_true_lang.js → StoryGroup.vue2.js} +27 -27
- package/dist/bundled/components/tree/StoryList.vue.js +6 -0
- package/dist/bundled/components/tree/{StoryList.vue_vue_type_script_setup_true_lang.js → StoryList.vue2.js} +5 -4
- package/dist/bundled/components/tree/StoryListFolder.vue.js +8 -0
- package/dist/bundled/components/tree/{StoryListFolder.vue_vue_type_script_setup_true_lang.js → StoryListFolder.vue2.js} +8 -11
- package/dist/bundled/components/tree/StoryListFolder.vue3.js +4 -0
- package/dist/bundled/components/tree/{StoryListItem.js → StoryListItem.vue.js} +3 -2
- package/dist/bundled/components/tree/{StoryListItem.vue_vue_type_script_setup_true_lang.js → StoryListItem.vue2.js} +15 -17
- package/dist/bundled/components/tree/{StoryListItem.vue_vue_type_style_index_0_scoped_19810958_lang.js → StoryListItem.vue3.js} +0 -0
- package/dist/bundled/index.js +3 -2
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/balance.js +1 -1
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +1 -1
- package/dist/bundled/router.js +3 -2
- package/dist/bundled/sandbox.js +5 -4
- package/dist/bundled/stores/events.js +1 -0
- package/dist/bundled/stores/folder.js +2 -1
- package/dist/bundled/stores/preview-settings.js +1 -0
- package/dist/bundled/stores/story.js +1 -0
- package/dist/bundled/style.css +12 -12
- package/dist/bundled/util/config.js +1 -0
- package/dist/bundled/util/dark.js +1 -0
- package/dist/bundled/util/events.js +1 -0
- package/dist/bundled/util/keyboard.js +5 -5
- package/dist/bundled/util/mapping.js +1 -0
- package/dist/bundled/util/preview-settings.js +3 -2
- package/dist/bundled/util/responsive.js +1 -0
- package/dist/bundled/util/sandbox.js +1 -0
- package/dist/bundled/util/scroll.js +1 -0
- package/dist/bundled/util/state.js +1 -0
- package/dist/bundled/util/tooltip.js +1 -0
- package/dist/bundled/util/variant.js +1 -0
- package/dist/style.css +26 -5
- package/package.json +6 -6
- package/src/app/components/tree/StoryGroup.vue +18 -20
- package/src/app/components/tree/StoryListFolder.vue +3 -7
- package/dist/bundled/App.js +0 -5
- package/dist/bundled/components/HomeView.js +0 -5
- package/dist/bundled/components/app/AppHeader.js +0 -5
- package/dist/bundled/components/app/AppLogo.js +0 -5
- package/dist/bundled/components/app/InitialLoading.js +0 -5
- package/dist/bundled/components/app/MobileOverlay.js +0 -5
- package/dist/bundled/components/base/BaseCheckbox.js +0 -5
- package/dist/bundled/components/base/BaseOverflowMenu.js +0 -5
- package/dist/bundled/components/base/BaseSelect.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentPropItem.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentProps.js +0 -5
- package/dist/bundled/components/panel/PaneTabs.js +0 -5
- package/dist/bundled/components/panel/StatePresets.js +0 -5
- package/dist/bundled/components/panel/StoryControls.js +0 -5
- package/dist/bundled/components/panel/StoryDocs.js +0 -6
- package/dist/bundled/components/panel/StoryEvent.js +0 -5
- package/dist/bundled/components/panel/StoryEvents.js +0 -5
- package/dist/bundled/components/panel/StorySidePanel.js +0 -5
- package/dist/bundled/components/search/SearchLoading.js +0 -5
- package/dist/bundled/components/search/SearchModal.js +0 -5
- package/dist/bundled/components/search/SearchPane.js +0 -5
- package/dist/bundled/components/story/GenericMountStory.js +0 -5
- package/dist/bundled/components/story/GenericRenderStory.js +0 -5
- package/dist/bundled/components/story/StoryVariantGrid.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.js +0 -5
- package/dist/bundled/components/story/StoryVariantSingleView.js +0 -5
- package/dist/bundled/components/story/StoryView.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarNewTab.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarTextDirection.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarTitle.js +0 -5
- package/dist/bundled/components/tree/StoryGroup.js +0 -5
- package/dist/bundled/components/tree/StoryList.js +0 -5
- package/dist/bundled/components/tree/StoryListFolder.js +0 -7
- package/dist/bundled/components/tree/StoryListFolder.vue_vue_type_style_index_0_scoped_2fedbe45_lang.js +0 -4
|
@@ -3,8 +3,9 @@ import { Icon } from "@histoire/vendors/iconify";
|
|
|
3
3
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
4
4
|
import { histoireConfig } from "../../util/config.js";
|
|
5
5
|
import { getContrastColor } from "../../util/preview-settings.js";
|
|
6
|
-
import "../base/BaseCheckbox.js";
|
|
7
|
-
import _sfc_main$1 from "../base/BaseCheckbox.
|
|
6
|
+
import "../base/BaseCheckbox.vue.js";
|
|
7
|
+
import _sfc_main$1 from "../base/BaseCheckbox.vue2.js";
|
|
8
|
+
"use strict";
|
|
8
9
|
const _withScopeId = (n) => (pushScopeId("data-v-c48fb2b2"), n = n(), popScopeId(), n);
|
|
9
10
|
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" };
|
|
10
11
|
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" };
|
|
File without changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveDirective, withDirectives, openBlock, createElementBlock, unref, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { getSandboxUrl } from "../../util/sandbox.js";
|
|
4
|
+
"use strict";
|
|
4
5
|
const _hoisted_1 = ["href"];
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "ToolbarNewTab",
|
|
@@ -2,11 +2,12 @@ import { defineComponent, resolveComponent, resolveDirective, openBlock, createB
|
|
|
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";
|
|
5
|
-
import "../base/BaseCheckbox.js";
|
|
6
|
-
import _sfc_main$1 from "../base/BaseCheckbox.
|
|
5
|
+
import "../base/BaseCheckbox.vue.js";
|
|
6
|
+
import _sfc_main$1 from "../base/BaseCheckbox.vue2.js";
|
|
7
|
+
"use strict";
|
|
7
8
|
const _hoisted_1 = { class: "htw-flex htw-flex-col htw-items-stretch" };
|
|
8
9
|
const _hoisted_2 = { class: "htw-flex htw-items-center htw-gap-2 htw-px-4 htw-py-3" };
|
|
9
|
-
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-50" }, "
|
|
10
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-50" }, "×", -1);
|
|
10
11
|
const _hoisted_4 = ["onClick"];
|
|
11
12
|
const _hoisted_5 = { class: "htw-ml-auto htw-opacity-70 htw-flex htw-gap-1" };
|
|
12
13
|
const _hoisted_6 = { key: 0 };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, resolveDirective, withDirectives, openBlock, createElementBlock, unref, createVNode } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
4
|
+
"use strict";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "ToolbarTextDirection",
|
|
6
7
|
setup(__props) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createVNode, unref, normalizeClass, createElementVNode, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
|
+
"use strict";
|
|
3
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" };
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "ToolbarTitle",
|
|
@@ -8,10 +9,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
9
|
},
|
|
9
10
|
setup(__props) {
|
|
10
11
|
return (_ctx, _cache) => {
|
|
11
|
-
var _a;
|
|
12
12
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
13
13
|
createVNode(unref(Icon), {
|
|
14
|
-
icon:
|
|
14
|
+
icon: __props.variant.icon ?? "carbon:cube",
|
|
15
15
|
class: normalizeClass(["htw-w-4 htw-h-4 htw-opacity-50", [
|
|
16
16
|
__props.variant.iconColor ? "bind-icon-color" : "htw-text-gray-500"
|
|
17
17
|
]])
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { createElementVNode, defineComponent, computed, openBlock, createElementBlock, withKeys, createVNode, unref,
|
|
2
|
-
import StoryListItem from "./StoryListItem.js";
|
|
3
|
-
import StoryListFolder from "./StoryListFolder.js";
|
|
1
|
+
import { createElementVNode, defineComponent, computed, openBlock, createElementBlock, Fragment, withKeys, createVNode, unref, toDisplayString, createCommentVNode, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
|
+
import StoryListItem from "./StoryListItem.vue.js";
|
|
3
|
+
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
4
4
|
import { Icon } from "@histoire/vendors/iconify";
|
|
5
5
|
import { useFolderStore } from "../../stores/folder.js";
|
|
6
|
+
"use strict";
|
|
6
7
|
const _hoisted_1 = {
|
|
7
8
|
"data-test-id": "story-group",
|
|
8
|
-
class: "histoire-story-group htw-my-2 first:htw-mt-0 last:htw-mb-0"
|
|
9
|
+
class: "histoire-story-group htw-my-2 first:htw-mt-0 last:htw-mb-0 htw-group"
|
|
9
10
|
};
|
|
10
|
-
const _hoisted_2 =
|
|
11
|
-
const _hoisted_3 =
|
|
12
|
-
const _hoisted_4 =
|
|
11
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "htw-h-[1px] htw-bg-gray-500/10 htw-mx-6 htw-mb-2 group-first:htw-hidden" }, null, -1);
|
|
12
|
+
const _hoisted_3 = ["onKeyup"];
|
|
13
|
+
const _hoisted_4 = { class: "htw-truncate" };
|
|
13
14
|
const _hoisted_5 = { key: 1 };
|
|
14
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
16
|
__name: "StoryGroup",
|
|
@@ -28,26 +29,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
29
|
}
|
|
29
30
|
return (_ctx, _cache) => {
|
|
30
31
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
31
|
-
__props.group.title ? (openBlock(), createElementBlock(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"htw-
|
|
46
|
-
}])
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
], 40, _hoisted_2)) : createCommentVNode("", true),
|
|
32
|
+
__props.group.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33
|
+
_hoisted_2,
|
|
34
|
+
createElementVNode("div", {
|
|
35
|
+
role: "button",
|
|
36
|
+
tabindex: "0",
|
|
37
|
+
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 htw-items-center htw-gap-2 htw-min-w-0 htw-opacity-50 hover:htw-opacity-100",
|
|
38
|
+
onClick: toggleOpen,
|
|
39
|
+
onKeyup: [
|
|
40
|
+
withKeys(toggleOpen, ["enter"]),
|
|
41
|
+
withKeys(toggleOpen, ["space"])
|
|
42
|
+
]
|
|
43
|
+
}, [
|
|
44
|
+
createVNode(unref(Icon), {
|
|
45
|
+
icon: unref(isFolderOpen) ? "carbon:subtract" : "carbon:add",
|
|
46
|
+
class: "htw-w-4 htw-h-4 htw-ml-4 htw-rounded-sm htw-border htw-border-gray-500/40"
|
|
47
|
+
}, null, 8, ["icon"]),
|
|
48
|
+
createElementVNode("span", _hoisted_4, toDisplayString(__props.group.title), 1)
|
|
49
|
+
], 40, _hoisted_3)
|
|
50
|
+
], 64)) : createCommentVNode("", true),
|
|
51
51
|
unref(isFolderOpen) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
52
52
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.group.children, (element) => {
|
|
53
53
|
return openBlock(), createElementBlock(Fragment, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, Fragment, renderList, createBlock } from "@histoire/vendors/vue";
|
|
2
|
-
import StoryListItem from "./StoryListItem.js";
|
|
3
|
-
import StoryListFolder from "./StoryListFolder.js";
|
|
4
|
-
import "./StoryGroup.js";
|
|
5
|
-
import _sfc_main$1 from "./StoryGroup.
|
|
2
|
+
import StoryListItem from "./StoryListItem.vue.js";
|
|
3
|
+
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
4
|
+
import "./StoryGroup.vue.js";
|
|
5
|
+
import _sfc_main$1 from "./StoryGroup.vue2.js";
|
|
6
|
+
"use strict";
|
|
6
7
|
const _hoisted_1 = { class: "histoire-story-list htw-overflow-y-auto" };
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
9
|
__name: "StoryList",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./StoryListFolder.vue2.js";
|
|
2
|
+
import "./StoryListFolder.vue3.js";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
"use strict";
|
|
5
|
+
const StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e161f5e0"]]);
|
|
6
|
+
export {
|
|
7
|
+
StoryListFolder as default
|
|
8
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { pushScopeId, popScopeId, defineComponent, useCssVars, unref, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, withKeys, createVNode, normalizeClass, toDisplayString, Fragment, renderList, createBlock, createCommentVNode } from "@histoire/vendors/vue";
|
|
2
|
-
import StoryListItem from "./StoryListItem.js";
|
|
2
|
+
import StoryListItem from "./StoryListItem.vue.js";
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useFolderStore } from "../../stores/folder.js";
|
|
5
|
-
|
|
5
|
+
"use strict";
|
|
6
|
+
const _withScopeId = (n) => (pushScopeId("data-v-e161f5e0"), n = n(), popScopeId(), n);
|
|
6
7
|
const _hoisted_1 = {
|
|
7
8
|
"data-test-id": "story-list-folder",
|
|
8
9
|
class: "histoire-story-list-folder"
|
|
9
10
|
};
|
|
10
11
|
const _hoisted_2 = ["onKeyup"];
|
|
11
12
|
const _hoisted_3 = { class: "bind-tree-padding htw-flex htw-items-center htw-gap-2 htw-min-w-0" };
|
|
12
|
-
const _hoisted_4 = { class: "htw-flex htw-flex-none htw-items-center" };
|
|
13
|
+
const _hoisted_4 = { class: "htw-flex htw-flex-none htw-items-center htw-opacity-30 [.histoire-story-list-folder-button:hover_&]:htw-opacity-100 htw-ml-4 htw-rounded-sm htw-border htw-border-gray-500/40" };
|
|
13
14
|
const _hoisted_5 = { class: "htw-truncate" };
|
|
14
15
|
const _hoisted_6 = { key: 0 };
|
|
15
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -23,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
24
|
setup(__props) {
|
|
24
25
|
const props = __props;
|
|
25
26
|
useCssVars((_ctx) => ({
|
|
26
|
-
"
|
|
27
|
+
"e605dd68": unref(folderPadding)
|
|
27
28
|
}));
|
|
28
29
|
const folderStore = useFolderStore();
|
|
29
30
|
const folderPath = computed(() => [...props.path, props.folder.title]);
|
|
@@ -40,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
createElementVNode("div", {
|
|
41
42
|
role: "button",
|
|
42
43
|
tabindex: "0",
|
|
43
|
-
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",
|
|
44
|
+
class: "histoire-story-list-folder-button 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",
|
|
44
45
|
onClick: toggleOpen,
|
|
45
46
|
onKeyup: [
|
|
46
47
|
withKeys(toggleOpen, ["enter"]),
|
|
@@ -51,14 +52,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
52
|
createElementVNode("span", _hoisted_4, [
|
|
52
53
|
createVNode(unref(Icon), {
|
|
53
54
|
icon: "carbon:caret-right",
|
|
54
|
-
class: normalizeClass(["htw-w-4 htw-h-4 htw-transition-transform htw-duration-150
|
|
55
|
+
class: normalizeClass(["htw-w-4 htw-h-4 htw-transition-transform htw-duration-150", {
|
|
55
56
|
"htw-rotate-90": unref(isFolderOpen)
|
|
56
57
|
}])
|
|
57
|
-
}, null, 8, ["class"])
|
|
58
|
-
createVNode(unref(Icon), {
|
|
59
|
-
icon: "carbon:folder",
|
|
60
|
-
class: "htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4"
|
|
61
|
-
})
|
|
58
|
+
}, null, 8, ["class"])
|
|
62
59
|
]),
|
|
63
60
|
createElementVNode("span", _hoisted_5, toDisplayString(__props.folder.title), 1)
|
|
64
61
|
])
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import _sfc_main from "./StoryListItem.
|
|
2
|
-
import "./StoryListItem.
|
|
1
|
+
import _sfc_main from "./StoryListItem.vue2.js";
|
|
2
|
+
import "./StoryListItem.vue3.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
"use strict";
|
|
4
5
|
const StoryListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-19810958"]]);
|
|
5
6
|
export {
|
|
6
7
|
StoryListItem as default
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { pushScopeId, popScopeId, defineComponent, useCssVars, unref, computed, ref, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, normalizeClass, toDisplayString, createCommentVNode } from "@histoire/vendors/vue";
|
|
2
|
-
import BaseListItemLink from "../base/BaseListItemLink.js";
|
|
2
|
+
import BaseListItemLink from "../base/BaseListItemLink.vue.js";
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useRoute } from "@histoire/vendors/vue-router";
|
|
5
5
|
import { useScrollOnActive } from "../../util/scroll.js";
|
|
6
|
+
"use strict";
|
|
6
7
|
const _withScopeId = (n) => (pushScopeId("data-v-19810958"), n = n(), popScopeId(), n);
|
|
7
8
|
const _hoisted_1 = { class: "bind-tree-margin htw-flex htw-items-center htw-gap-2 htw-pl-4 htw-min-w-0" };
|
|
8
9
|
const _hoisted_2 = { class: "htw-truncate" };
|
|
@@ -45,22 +46,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
},
|
|
46
47
|
class: "htw-pl-0.5 htw-pr-2 htw-py-2 md:htw-py-1.5 htw-mx-1 htw-rounded-sm"
|
|
47
48
|
}, {
|
|
48
|
-
default: withCtx(({ active }) =>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
!__props.story.docsOnly ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.story.variants.length), 1)) : createCommentVNode("", true)
|
|
62
|
-
];
|
|
63
|
-
}),
|
|
49
|
+
default: withCtx(({ active }) => [
|
|
50
|
+
createElementVNode("span", _hoisted_1, [
|
|
51
|
+
createVNode(unref(Icon), {
|
|
52
|
+
icon: __props.story.icon ?? "carbon:cube",
|
|
53
|
+
class: normalizeClass(["htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4 htw-flex-none", {
|
|
54
|
+
"htw-text-primary-500": !active && !__props.story.iconColor,
|
|
55
|
+
"bind-icon-color": !active && __props.story.iconColor
|
|
56
|
+
}])
|
|
57
|
+
}, null, 8, ["icon", "class"]),
|
|
58
|
+
createElementVNode("span", _hoisted_2, toDisplayString(__props.story.title), 1)
|
|
59
|
+
]),
|
|
60
|
+
!__props.story.docsOnly ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.story.variants.length), 1)) : createCommentVNode("", true)
|
|
61
|
+
]),
|
|
64
62
|
_: 1
|
|
65
63
|
}, 8, ["to"])
|
|
66
64
|
], 512);
|
|
File without changes
|
package/dist/bundled/index.js
CHANGED
|
@@ -2,9 +2,10 @@ import "virtual:$histoire-theme";
|
|
|
2
2
|
import { createApp } from "@histoire/vendors/vue";
|
|
3
3
|
import { createPinia } from "@histoire/vendors/pinia";
|
|
4
4
|
import FloatingVue from "@histoire/vendors/floating-vue";
|
|
5
|
-
import "./App.js";
|
|
5
|
+
import "./App.vue.js";
|
|
6
6
|
import { router } from "./router.js";
|
|
7
|
-
import _sfc_main from "./App.
|
|
7
|
+
import _sfc_main from "./App.vue2.js";
|
|
8
|
+
"use strict";
|
|
8
9
|
function mountMainApp() {
|
|
9
10
|
const app = createApp(_sfc_main);
|
|
10
11
|
app.use(createPinia());
|
|
@@ -3,7 +3,7 @@ import { encode as encode$1 } from "./simple.js";
|
|
|
3
3
|
const rtl = false;
|
|
4
4
|
const tokenize = "strict";
|
|
5
5
|
const balance = { encode, rtl: false, tokenize: "strict" };
|
|
6
|
-
const regex_strip = /[^a-z0-9]+/, soundex = { b: "p", v: "f", w: "f", z: "s", x: "s",
|
|
6
|
+
const regex_strip = /[^a-z0-9]+/, soundex = { b: "p", v: "f", w: "f", z: "s", x: "s", ß: "s", d: "t", n: "m", c: "k", g: "k", j: "k", q: "k", i: "e", y: "e", u: "o" };
|
|
7
7
|
function encode(a) {
|
|
8
8
|
a = encode$1.call(this, a).join(" ");
|
|
9
9
|
const b = [];
|
|
@@ -3,7 +3,7 @@ import { regex, pipeline, normalize, regex_whitespace } from "../../lang.js";
|
|
|
3
3
|
const rtl = false;
|
|
4
4
|
const tokenize = "";
|
|
5
5
|
const simple = { encode, rtl: false, tokenize: "" };
|
|
6
|
-
const regex_a = regex("[
|
|
6
|
+
const regex_a = regex("[àáâãäå]"), regex_e = regex("[èéêë]"), regex_i = regex("[ìíîï]"), regex_o = regex("[òóôõöő]"), regex_u = regex("[ùúûüű]"), regex_y = regex("[ýŷÿ]"), regex_n = regex("ñ"), regex_c = regex("[çc]"), regex_s = regex("ß"), regex_and = regex(" & "), pairs = [regex_a, "a", regex_e, "e", regex_i, "i", regex_o, "o", regex_u, "u", regex_y, "y", regex_n, "n", regex_c, "k", regex_s, "s", regex_and, " and "];
|
|
7
7
|
function encode(a) {
|
|
8
8
|
return a = "" + a, pipeline.call(this, normalize(a).toLowerCase(), !a.normalize && pairs, regex_whitespace, false);
|
|
9
9
|
}
|
package/dist/bundled/router.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createWebHistory, createWebHashHistory, createRouter } from "@histoire/vendors/vue-router";
|
|
2
2
|
import { histoireConfig } from "./util/config.js";
|
|
3
|
+
"use strict";
|
|
3
4
|
const base = import.meta.env.BASE_URL;
|
|
4
5
|
function createRouterHistory() {
|
|
5
6
|
switch (histoireConfig.routerMode) {
|
|
@@ -16,12 +17,12 @@ const router = createRouter({
|
|
|
16
17
|
{
|
|
17
18
|
path: "/",
|
|
18
19
|
name: "home",
|
|
19
|
-
component: () => import("./components/HomeView.js")
|
|
20
|
+
component: () => import("./components/HomeView.vue.js")
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
path: "/story/:storyId",
|
|
23
24
|
name: "story",
|
|
24
|
-
component: () => import("./components/story/StoryView.js")
|
|
25
|
+
component: () => import("./components/story/StoryView.vue.js")
|
|
25
26
|
}
|
|
26
27
|
]
|
|
27
28
|
});
|
package/dist/bundled/sandbox.js
CHANGED
|
@@ -2,8 +2,8 @@ import { parseQuery } from "@histoire/vendors/vue-router";
|
|
|
2
2
|
import { ref, createApp, computed, watch, onMounted, h } from "@histoire/vendors/vue";
|
|
3
3
|
import { createPinia } from "@histoire/vendors/pinia";
|
|
4
4
|
import { applyState } from "@histoire/shared";
|
|
5
|
-
import "./components/story/GenericMountStory.js";
|
|
6
|
-
import "./components/story/GenericRenderStory.js";
|
|
5
|
+
import "./components/story/GenericMountStory.vue.js";
|
|
6
|
+
import "./components/story/GenericRenderStory.vue.js";
|
|
7
7
|
import { mapFile } from "./util/mapping.js";
|
|
8
8
|
import { files } from "virtual:$histoire-stories";
|
|
9
9
|
import { STATE_SYNC, PREVIEW_SETTINGS_SYNC, SANDBOX_READY } from "./util/const.js";
|
|
@@ -11,8 +11,9 @@ import { applyPreviewSettings } from "./util/preview-settings.js";
|
|
|
11
11
|
import { isDark } from "./util/dark.js";
|
|
12
12
|
import { histoireConfig } from "./util/config.js";
|
|
13
13
|
import { toRawDeep } from "./util/state.js";
|
|
14
|
-
import _sfc_main from "./components/story/GenericMountStory.
|
|
15
|
-
import _sfc_main$1 from "./components/story/GenericRenderStory.
|
|
14
|
+
import _sfc_main from "./components/story/GenericMountStory.vue2.js";
|
|
15
|
+
import _sfc_main$1 from "./components/story/GenericRenderStory.vue2.js";
|
|
16
|
+
"use strict";
|
|
16
17
|
const query = parseQuery(window.location.search);
|
|
17
18
|
const file = ref(mapFile(files.find((f) => f.id === query.storyId)));
|
|
18
19
|
const app = createApp({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineStore } from "@histoire/vendors/pinia";
|
|
2
2
|
import { reactive, ref, watch } from "@histoire/vendors/vue";
|
|
3
3
|
import { useStoryStore } from "./story.js";
|
|
4
|
+
"use strict";
|
|
4
5
|
const useEventsStore = defineStore("events", () => {
|
|
5
6
|
const storyStore = useStoryStore();
|
|
6
7
|
const events = reactive([]);
|
|
@@ -2,13 +2,14 @@ import { defineStore } from "@histoire/vendors/pinia";
|
|
|
2
2
|
import { watch } from "@histoire/vendors/vue";
|
|
3
3
|
import { useStorage } from "@histoire/vendors/vue-use";
|
|
4
4
|
import { useStoryStore } from "./story.js";
|
|
5
|
+
"use strict";
|
|
5
6
|
const useFolderStore = defineStore("folder", () => {
|
|
6
7
|
const openedFolders = useStorage(
|
|
7
8
|
"_histoire-tree-state",
|
|
8
9
|
/* @__PURE__ */ new Map()
|
|
9
10
|
);
|
|
10
11
|
function getStringPath(path) {
|
|
11
|
-
return path.join("
|
|
12
|
+
return path.join("␜");
|
|
12
13
|
}
|
|
13
14
|
function toggleFolder(path, defaultToggleValue = true) {
|
|
14
15
|
const stringPath = getStringPath(path);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineStore } from "@histoire/vendors/pinia";
|
|
2
2
|
import { useStorage } from "@histoire/vendors/vue-use";
|
|
3
|
+
"use strict";
|
|
3
4
|
const usePreviewSettingsStore = defineStore("preview-settings", () => {
|
|
4
5
|
const currentSettings = useStorage("_histoire-sandbox-settings-v3", {
|
|
5
6
|
responsiveWidth: 720,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineStore } from "@histoire/vendors/pinia";
|
|
2
2
|
import { ref, computed } from "@histoire/vendors/vue";
|
|
3
3
|
import { router } from "../router.js";
|
|
4
|
+
"use strict";
|
|
4
5
|
const useStoryStore = defineStore("story", () => {
|
|
5
6
|
const stories = ref([]);
|
|
6
7
|
function setStories(value) {
|
package/dist/bundled/style.css
CHANGED
|
@@ -44,10 +44,6 @@
|
|
|
44
44
|
color: var(--663732b6);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.bind-tree-padding[data-v-2fedbe45] {
|
|
48
|
-
padding-left: var(--29654456);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
47
|
.bind-tree-margin[data-v-19810958] {
|
|
52
48
|
margin-left: var(--444efc12);
|
|
53
49
|
}
|
|
@@ -55,19 +51,28 @@
|
|
|
55
51
|
color: var(--ae892164);
|
|
56
52
|
}
|
|
57
53
|
|
|
54
|
+
.__histoire-code-placeholder[data-v-f528bb1b] {
|
|
55
|
+
color: inherit;
|
|
56
|
+
font-size: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
58
59
|
.bind-icon-color[data-v-ddfc5b4f] {
|
|
59
60
|
color: var(--4d25d048);
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
.
|
|
63
|
-
|
|
64
|
-
font-size: inherit;
|
|
63
|
+
.bind-tree-padding[data-v-e161f5e0] {
|
|
64
|
+
padding-left: var(--e605dd68);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.bind-icon-color[data-v-ab890d9c] {
|
|
68
68
|
color: var(--89126aaa);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.bind-preview-bg[data-v-c48fb2b2] {
|
|
72
|
+
background-color: var(--627bec82);
|
|
73
|
+
color: var(--35068428);
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
.bind-icon-color[data-v-f7c98176] {
|
|
72
77
|
color: var(--edeb0368);
|
|
73
78
|
}
|
|
@@ -75,11 +80,6 @@
|
|
|
75
80
|
background-color: var(--f4b27ac2);
|
|
76
81
|
}
|
|
77
82
|
|
|
78
|
-
.bind-preview-bg[data-v-c48fb2b2] {
|
|
79
|
-
background-color: var(--627bec82);
|
|
80
|
-
color: var(--35068428);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
83
|
.bind-icon-color[data-v-d95fcb03] {
|
|
84
84
|
color: var(--beebbd52);
|
|
85
85
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEventListener } from "@histoire/vendors/vue-use";
|
|
2
2
|
import { isRef } from "@histoire/vendors/vue";
|
|
3
3
|
import { isMac } from "./env.js";
|
|
4
|
+
"use strict";
|
|
4
5
|
function onKeyboardShortcut(shortcut, handler, options = {}) {
|
|
5
|
-
|
|
6
|
-
useEventListener((_a = options.event) != null ? _a : "keydown", (event) => {
|
|
6
|
+
useEventListener(options.event ?? "keydown", (event) => {
|
|
7
7
|
if (isMatchingShortcut(isRef(shortcut) ? shortcut.value : shortcut)) {
|
|
8
8
|
handler(event);
|
|
9
9
|
}
|
|
@@ -71,13 +71,13 @@ function formatKey(key) {
|
|
|
71
71
|
return isMac ? "^" : "Ctrl";
|
|
72
72
|
}
|
|
73
73
|
if (key === "alt") {
|
|
74
|
-
return isMac ? "
|
|
74
|
+
return isMac ? "⎇" : "Alt";
|
|
75
75
|
}
|
|
76
76
|
if (key === "shift") {
|
|
77
|
-
return "
|
|
77
|
+
return "⇧";
|
|
78
78
|
}
|
|
79
79
|
if (key === "meta") {
|
|
80
|
-
return "
|
|
80
|
+
return "⌘";
|
|
81
81
|
}
|
|
82
82
|
return key.charAt(0).toUpperCase() + key.substring(1).toLowerCase();
|
|
83
83
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { reactive } from "@histoire/vendors/vue";
|
|
2
2
|
import { histoireConfig } from "./config.js";
|
|
3
|
+
"use strict";
|
|
3
4
|
const receivedSettings = reactive({});
|
|
4
5
|
function applyPreviewSettings(settings) {
|
|
5
6
|
Object.assign(receivedSettings, settings);
|
|
@@ -11,8 +12,8 @@ function applyPreviewSettings(settings) {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
function getContrastColor(setting) {
|
|
14
|
-
var _a
|
|
15
|
-
return (
|
|
15
|
+
var _a;
|
|
16
|
+
return ((_a = histoireConfig.backgroundPresets.find((preset) => preset.color === setting.backgroundColor)) == null ? void 0 : _a.contrastColor) ?? "unset";
|
|
16
17
|
}
|
|
17
18
|
export {
|
|
18
19
|
applyPreviewSettings,
|