@histoire/app 0.17.6 → 0.17.9
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/assets/histoire.svg.js +1 -1
- package/dist/bundled/components/app/AppHeader.vue2.js +1 -1
- package/dist/bundled/components/app/AppLogo.vue2.js +1 -1
- package/dist/bundled/components/app/Breadcrumb.vue2.js +1 -1
- package/dist/bundled/components/app/Breadcrumb.vue3.js +1 -4
- package/dist/bundled/components/app/InitialLoading.vue2.js +1 -1
- package/dist/bundled/components/base/BaseEmpty.vue.js +1 -1
- package/dist/bundled/components/base/BaseEmpty.vue2.js +1 -4
- package/dist/bundled/components/base/BaseIcon.vue3.js +1 -4
- package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue3.js +1 -4
- package/dist/bundled/components/base/BaseTab.vue.js +1 -1
- package/dist/bundled/components/base/BaseTag.vue.js +1 -1
- package/dist/bundled/components/command/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/HatchedPattern.vue2.js +1 -4
- package/dist/bundled/components/panel/StorySourceCode.vue3.js +1 -4
- package/dist/bundled/components/search/SearchItem.vue3.js +1 -4
- package/dist/bundled/components/search/SearchLoading.vue2.js +1 -1
- package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
- package/dist/bundled/components/story/GenericMountStory.vue2.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue3.js +1 -4
- package/dist/bundled/components/story/StoryVariantGridItem.vue3.js +1 -4
- package/dist/bundled/components/story/StoryVariantListItem.vue3.js +1 -4
- package/dist/bundled/components/story/StoryVariantSingle.vue3.js +1 -4
- package/dist/bundled/components/story/StoryViewer.vue3.js +1 -4
- package/dist/bundled/components/toolbar/ToolbarBackground.vue3.js +1 -4
- 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/StoryListFolder.vue3.js +1 -4
- package/dist/bundled/components/tree/StoryListItem.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryListItem.vue3.js +1 -4
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +1 -1
- package/dist/bundled/sandbox.js +1 -1
- package/dist/bundled/style.css +17 -17
- package/dist/bundled/util/sandbox.js +2 -1
- package/package.json +6 -6
- package/src/app/util/sandbox.ts +2 -1
package/dist/bundled/App.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref, computed, watch, onMounted, resolveComponent, openBlock, Fragment, unref, createBlock, createElementBlock, createCommentVNode, normalizeStyle, createVNode, createElementVNode, withCtx, Transition, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import { files, tree, onUpdate } from "virtual:$histoire-stories";
|
|
3
3
|
import "./components/tree/StoryList.vue.js";
|
|
4
4
|
import BaseSplitPane from "./components/base/BaseSplitPane.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const HistoireLogo = "data:image/svg+xml;
|
|
1
|
+
const HistoireLogo = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20version='1.1'%20id='svg5'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3cg%20id='layer1'%3e%3crect%20style='opacity:0.5;fill:%2334d399;fill-opacity:1;stroke-width:1.00375'%20id='rect1372'%20width='314.30923'%20height='406.60901'%20x='-26.565063'%20y='134.75079'%20transform='rotate(-23.821262)'%20ry='8'%20/%3e%3crect%20style='fill:%2334d399;fill-opacity:1;stroke-width:1.00375'%20id='rect850'%20width='314.30923'%20height='406.60901'%20x='77.571838'%20y='72.808708'%20ry='8'%20transform='rotate(-4.5744534)'%20/%3e%3c/g%3e%3cg%20id='layer3'%3e%3cpath%20id='path1657-3'%20style='display:inline;fill:%23b4fae2;fill-opacity:1;stroke:%23b4fae2;stroke-width:8.34923;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20d='M%20359.38947,355.95134%20320.72935,176.52942%20238.34613,238.94118%20Z%20M%20273.64124,273.06608%20152.59788,156.05591%20191.25804,335.47786%20Z'%20/%3e%3c/g%3e%3cg%20id='layer2'%20style='display:none'%3e%3cpath%20id='path1657'%20style='fill:%23b4fae2;fill-opacity:1;stroke:%23b4fae2;stroke-width:8;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20d='m%20296,103.98242%20-135.53125,177.9668%20h%2088.70117%20z%20M%20262.83008,230.05078%20216,408.01758%20351.53125,230.05078%20Z'%20transform='rotate(-4.156553,256,256.00691)'%20/%3e%3c/g%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
HistoireLogo as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed, resolveDirective, openBlock, unref, createVNode, createElementVNode, createElementBlock, withDirectives, createCommentVNode, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import "./AppLogo.vue.js";
|
|
4
4
|
import { isDark, toggleDark } from "../../util/dark.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed, openBlock, createElementBlock, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import { isDark } from "../../util/dark.js";
|
|
3
3
|
import { histoireConfig, customLogos } from "../../util/config.js";
|
|
4
4
|
import HistoireLogoDark from "../../assets/histoire-text-dark.svg.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { pushScopeId, popScopeId, createElementVNode,
|
|
1
|
+
import { pushScopeId, popScopeId, createElementVNode, useCssVars, computed, ref, watch, openBlock, Fragment, toDisplayString, createElementBlock, renderList, unref, normalizeClass, createVNode, createTextVNode, withCtx, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { useStoryStore } from "../../stores/story.js";
|
|
4
4
|
import "./MobileOverlay.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { reactive, openBlock, Transition, normalizeStyle, Fragment, normalizeClass, createElementVNode, createElementBlock, renderList, createCommentVNode, withCtx, createVNode, defineComponent } 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 { pushScopeId, popScopeId, openBlock,
|
|
1
|
+
import { pushScopeId, popScopeId, openBlock, renderSlot, createElementBlock } from "@histoire/vendors/vue";
|
|
2
2
|
import "./BaseEmpty.vue2.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./BaseListItemLink.vue2.js";
|
|
2
|
-
import { resolveComponent, openBlock,
|
|
2
|
+
import { resolveComponent, openBlock, mergeProps, normalizeClass, withKeys, renderSlot, createElementVNode, withCtx, createBlock } 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,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./BaseOverflowTab.vue2.js";
|
|
2
|
-
import { resolveComponent, openBlock,
|
|
2
|
+
import { resolveComponent, openBlock, mergeProps, renderSlot, Transition, createElementBlock, createCommentVNode, withCtx, createVNode, createElementVNode, createBlock } 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,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./BaseTab.vue2.js";
|
|
2
|
-
import { resolveComponent, openBlock,
|
|
2
|
+
import { resolveComponent, openBlock, mergeProps, renderSlot, Transition, createElementBlock, createCommentVNode, withCtx, createVNode, createElementVNode, createBlock } 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 { openBlock,
|
|
1
|
+
import { openBlock, renderSlot, createElementBlock } 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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineAsyncComponent, openBlock, createElementVNode, unref, createVNode, createElementBlock, createCommentVNode, defineComponent } 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 {
|
|
1
|
+
import { computed, ref, watchEffect, openBlock, createElementVNode, vModelText, withDirectives, toDisplayString, createElementBlock, createCommentVNode, createTextVNode, createVNode, unref, withModifiers, withKeys, Fragment, normalizeClass, createBlock, renderList, defineComponent } 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 {
|
|
1
|
+
import { computed, ref, watch, openBlock, toDisplayString, createElementVNode, createElementBlock, createCommentVNode, vModelText, withDirectives, defineComponent } 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 { openBlock, unref, createVNode, createTextVNode, createElementBlock, defineComponent } 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 {
|
|
1
|
+
import { defineAsyncComponent, openBlock, createElementVNode, unref, createVNode, createElementBlock, vShow, withDirectives, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import "./SearchLoading.vue.js";
|
|
3
3
|
import _sfc_main$1 from "./SearchLoading.vue2.js";
|
|
4
4
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref, markRaw, watchEffect, openBlock, resolveDynamicComponent, mergeProps, createBlock, createCommentVNode, defineComponent } 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 { createElementVNode,
|
|
1
|
+
import { createElementVNode, computed, openBlock, Fragment, withKeys, unref, createVNode, toDisplayString, createElementBlock, createCommentVNode, createBlock, renderList, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import StoryListItem from "./StoryListItem.vue.js";
|
|
3
3
|
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
4
4
|
import { Icon } from "@histoire/vendors/iconify";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock, Fragment, createBlock, createElementBlock, renderList, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import StoryListItem from "./StoryListItem.vue.js";
|
|
3
3
|
import StoryListFolder from "./StoryListFolder.vue.js";
|
|
4
4
|
import "./StoryGroup.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { pushScopeId, popScopeId,
|
|
1
|
+
import { pushScopeId, popScopeId, useCssVars, computed, resolveComponent, openBlock, withKeys, unref, normalizeClass, createVNode, createElementVNode, toDisplayString, Fragment, createBlock, createElementBlock, renderList, createCommentVNode, defineComponent } from "@histoire/vendors/vue";
|
|
2
2
|
import StoryListItem from "./StoryListItem.vue.js";
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useFolderStore } from "../../stores/folder.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { pushScopeId, popScopeId,
|
|
1
|
+
import { pushScopeId, popScopeId, useCssVars, computed, ref, openBlock, unref, normalizeClass, createVNode, toDisplayString, createElementVNode, createElementBlock, createCommentVNode, withCtx, defineComponent } from "@histoire/vendors/vue";
|
|
2
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../type.js";
|
|
2
|
-
import { regex,
|
|
2
|
+
import { regex, normalize, regex_whitespace, pipeline } from "../../lang.js";
|
|
3
3
|
const rtl = false;
|
|
4
4
|
const tokenize = "";
|
|
5
5
|
const simple = { encode, rtl: false, tokenize: "" };
|
package/dist/bundled/sandbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseQuery } from "@histoire/vendors/vue-router";
|
|
2
|
-
import { ref,
|
|
2
|
+
import { ref, computed, watch, onMounted, h, createApp } from "@histoire/vendors/vue";
|
|
3
3
|
import { createPinia } from "@histoire/vendors/pinia";
|
|
4
4
|
import { applyState } from "@histoire/shared";
|
|
5
5
|
import "./components/story/GenericMountStory.vue.js";
|
package/dist/bundled/style.css
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.htw-base-empty[data-v-c5ecfead]:not(.no-animation) {
|
|
3
|
-
animation: htw-base-empty-c5ecfead .15s .2s both;
|
|
4
|
-
}
|
|
5
|
-
@keyframes htw-base-empty-c5ecfead {
|
|
6
|
-
0% {
|
|
7
|
-
opacity: 0;
|
|
8
|
-
}
|
|
9
|
-
100% {
|
|
10
|
-
opacity: 1;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
2
|
.landscape > div > .dragger[data-v-ed925107] {
|
|
15
3
|
width: .625rem;
|
|
16
4
|
}
|
|
@@ -40,6 +28,18 @@
|
|
|
40
28
|
color: var(--5792748b);
|
|
41
29
|
}
|
|
42
30
|
|
|
31
|
+
.htw-base-empty[data-v-c5ecfead]:not(.no-animation) {
|
|
32
|
+
animation: htw-base-empty-c5ecfead .15s .2s both;
|
|
33
|
+
}
|
|
34
|
+
@keyframes htw-base-empty-c5ecfead {
|
|
35
|
+
0% {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
}
|
|
38
|
+
100% {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
43
|
.bind-icon-color[data-v-6046525f] {
|
|
44
44
|
color: var(--663732b6);
|
|
45
45
|
}
|
|
@@ -72,11 +72,6 @@
|
|
|
72
72
|
color: var(--a8c1277e);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.bind-preview-bg[data-v-c48fb2b2] {
|
|
76
|
-
background-color: var(--627bec82);
|
|
77
|
-
color: var(--35068428);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
75
|
.bind-icon-color[data-v-cf76cd68] {
|
|
81
76
|
color: var(--29d8c174);
|
|
82
77
|
}
|
|
@@ -84,6 +79,11 @@
|
|
|
84
79
|
background-color: var(--0eff7465);
|
|
85
80
|
}
|
|
86
81
|
|
|
82
|
+
.bind-preview-bg[data-v-c48fb2b2] {
|
|
83
|
+
background-color: var(--627bec82);
|
|
84
|
+
color: var(--35068428);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
87
|
img.colorize-black[data-v-74182813] {
|
|
88
88
|
filter: grayscale(100) brightness(0);
|
|
89
89
|
}
|
|
@@ -4,7 +4,8 @@ function getSandboxUrl(story, variant) {
|
|
|
4
4
|
const url = new URLSearchParams();
|
|
5
5
|
url.append("storyId", story.id);
|
|
6
6
|
url.append("variantId", variant.id);
|
|
7
|
-
|
|
7
|
+
const baseUrl = base === "/" ? base : base + "/";
|
|
8
|
+
return `${baseUrl}__sandbox.html?${url.toString()}`;
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
11
|
getSandboxUrl
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.9",
|
|
4
4
|
"description": "Pre-bundled UI for Histoire",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"@types/flexsearch": "^0.7.6",
|
|
28
28
|
"flexsearch": "0.7.21",
|
|
29
29
|
"shiki-es": "^0.2.0",
|
|
30
|
-
"@histoire/controls": "^0.17.
|
|
31
|
-
"@histoire/
|
|
32
|
-
"@histoire/
|
|
30
|
+
"@histoire/controls": "^0.17.9",
|
|
31
|
+
"@histoire/shared": "^0.17.9",
|
|
32
|
+
"@histoire/vendors": "^0.17.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@tailwindcss/typography": "^0.5.10",
|
|
36
36
|
"@types/fs-extra": "^9.0.13",
|
|
37
|
-
"@types/node": "^
|
|
37
|
+
"@types/node": "^18.11.9",
|
|
38
38
|
"@vitejs/plugin-vue": "^4.5.0",
|
|
39
39
|
"autoprefixer": "^10.4.16",
|
|
40
40
|
"chokidar": "^3.5.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"postcss-import": "^14.1.0",
|
|
47
47
|
"tailwindcss": "^3.3.5",
|
|
48
48
|
"typescript": "^4.9.5",
|
|
49
|
-
"vite": "^
|
|
49
|
+
"vite": "^5.0.11",
|
|
50
50
|
"vue": "^3.3.8"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
package/src/app/util/sandbox.ts
CHANGED
|
@@ -6,5 +6,6 @@ export function getSandboxUrl (story: Story, variant: Variant) {
|
|
|
6
6
|
const url = new URLSearchParams()
|
|
7
7
|
url.append('storyId', story.id)
|
|
8
8
|
url.append('variantId', variant.id)
|
|
9
|
-
|
|
9
|
+
const baseUrl = base === '/' ? base : base + '/'
|
|
10
|
+
return `${baseUrl}__sandbox.html?${url.toString()}`
|
|
10
11
|
}
|