@poveste/app 0.1.0 → 0.1.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/app/assets/poveste-text-dark.svg +15 -0
- package/dist/app/assets/poveste-text.svg +15 -0
- package/dist/app/assets/poveste.svg +14 -0
- package/dist/app/style/main.pcss +3 -3
- package/dist/app/style/sandbox.css +1 -1
- package/dist/app/style/transitions.pcss +4 -4
- package/dist/bundled/App.vue2.js +9 -9
- package/dist/bundled/app.css +54 -54
- package/dist/bundled/assets/poveste-text-dark.svg.js +4 -0
- package/dist/bundled/assets/poveste-text.svg.js +4 -0
- package/dist/bundled/assets/poveste.svg.js +4 -0
- package/dist/bundled/components/HomeView.vue2.js +4 -4
- package/dist/bundled/components/app/AppHeader.vue2.js +4 -4
- package/dist/bundled/components/app/AppLogo.vue2.js +7 -7
- package/dist/bundled/components/app/Breadcrumb.vue.js +1 -1
- package/dist/bundled/components/app/Breadcrumb.vue2.js +2 -2
- package/dist/bundled/components/app/InitialLoading.vue2.js +3 -3
- package/dist/bundled/components/app/MobileOverlay.vue2.js +2 -2
- 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 +2 -2
- package/dist/bundled/components/base/BaseIcon.vue.js +1 -1
- package/dist/bundled/components/base/BaseIcon.vue2.js +2 -2
- package/dist/bundled/components/base/BaseKeyboardShortcut.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 +2 -2
- package/dist/bundled/components/base/BaseSelect.vue2.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +2 -2
- package/dist/bundled/components/base/BaseTab.vue.js +2 -2
- package/dist/bundled/components/base/BaseTag.vue.js +1 -1
- package/dist/bundled/components/command/CommandPrompts.vue2.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.vue.js +2 -2
- 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 +3 -3
- package/dist/bundled/components/panel/StoryControls.vue2.js +2 -2
- package/dist/bundled/components/panel/StoryDocs.vue2.js +6 -6
- 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 +3 -3
- package/dist/bundled/components/panel/StorySourceCode.vue.js +1 -1
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +4 -4
- package/dist/bundled/components/search/SearchItem.vue.js +1 -1
- package/dist/bundled/components/search/SearchItem.vue2.js +2 -2
- package/dist/bundled/components/search/SearchLoading.vue2.js +1 -1
- package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue2.js +3 -3
- package/dist/bundled/components/search/search-docs-data.js +1 -1
- package/dist/bundled/components/search/search-title-data.js +1 -1
- package/dist/bundled/components/story/GenericMountStory.vue2.js +2 -2
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +2 -2
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +3 -3
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +2 -2
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +8 -6
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +2 -2
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +3 -3
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +7 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +2 -2
- package/dist/bundled/components/story/StoryView.vue2.js +2 -2
- package/dist/bundled/components/story/StoryViewer.vue.js +1 -1
- package/dist/bundled/components/story/StoryViewer.vue2.js +2 -2
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +6 -6
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +5 -5
- 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.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +4 -4
- package/dist/bundled/components/tree/StoryListItem.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListItem.vue2.js +3 -3
- package/dist/bundled/index.js +2 -2
- package/dist/bundled/plugin.js +2 -2
- package/dist/bundled/router.js +2 -2
- package/dist/bundled/sandbox.js +6 -6
- package/dist/bundled/stores/folder.js +1 -1
- package/dist/bundled/stores/preview-settings.js +1 -1
- package/dist/bundled/util/commands.js +2 -2
- package/dist/bundled/util/config.js +3 -3
- package/dist/bundled/util/const.js +4 -4
- package/dist/bundled/util/dark.js +4 -4
- package/dist/bundled/util/docs.js +1 -1
- package/dist/bundled/util/events.js +1 -1
- package/dist/bundled/util/preview-settings.js +4 -3
- package/dist/style.css +348 -121
- package/package.json +8 -4
- package/src/app/App.vue +9 -9
- package/src/app/assets/poveste-text-dark.svg +15 -0
- package/src/app/assets/poveste-text.svg +15 -0
- package/src/app/assets/poveste.svg +14 -0
- package/src/app/components/HomeView.vue +4 -4
- package/src/app/components/app/AppHeader.vue +4 -4
- package/src/app/components/app/AppLogo.vue +7 -7
- package/src/app/components/app/Breadcrumb.vue +1 -1
- package/src/app/components/app/InitialLoading.vue +3 -3
- package/src/app/components/app/MobileOverlay.vue +2 -2
- package/src/app/components/base/BaseButton.vue +1 -1
- package/src/app/components/base/BaseCheckbox.vue +1 -1
- package/src/app/components/base/BaseCopyIcon.vue +1 -1
- package/src/app/components/base/BaseEmpty.vue +1 -1
- package/src/app/components/base/BaseIcon.vue +2 -2
- package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
- package/src/app/components/base/BaseListItemLink.vue +1 -1
- package/src/app/components/base/BaseOverflowMenu.vue +1 -1
- package/src/app/components/base/BaseOverflowTab.vue +2 -2
- package/src/app/components/base/BaseSelect.vue +1 -1
- package/src/app/components/base/BaseSplitPane.vue +2 -2
- package/src/app/components/base/BaseTab.vue +2 -2
- package/src/app/components/base/BaseTag.vue +1 -1
- package/src/app/components/command/CommandPrompts.vue +1 -1
- package/src/app/components/command/CommandPromptsModal.vue +1 -1
- package/src/app/components/command/PromptSelect.vue +1 -1
- package/src/app/components/command/PromptText.vue +1 -1
- package/src/app/components/misc/HatchedPattern.vue +2 -2
- package/src/app/components/panel/ControlsComponentPropItem.vue +1 -1
- package/src/app/components/panel/ControlsComponentProps.vue +1 -1
- package/src/app/components/panel/ControlsComponentState.vue +1 -1
- package/src/app/components/panel/ControlsComponentStateItem.vue +1 -1
- package/src/app/components/panel/PaneTabs.vue +1 -1
- package/src/app/components/panel/StatePresets.vue +3 -3
- package/src/app/components/panel/StoryControls.vue +2 -2
- package/src/app/components/panel/StoryDocs.vue +6 -6
- package/src/app/components/panel/StoryEvent.vue +1 -1
- package/src/app/components/panel/StoryEvents.vue +1 -1
- package/src/app/components/panel/StorySidePanel.vue +3 -3
- package/src/app/components/panel/StorySourceCode.vue +5 -5
- package/src/app/components/search/SearchItem.vue +1 -1
- package/src/app/components/search/SearchLoading.vue +1 -1
- package/src/app/components/search/SearchModal.vue +1 -1
- package/src/app/components/search/SearchPane.vue +3 -3
- package/src/app/components/search/search-docs-data.ts +1 -1
- package/src/app/components/search/search-title-data.ts +1 -1
- package/src/app/components/story/GenericMountStory.vue +2 -2
- package/src/app/components/story/GenericRenderStory.vue +2 -2
- package/src/app/components/story/StoryResponsivePreview.vue +1 -1
- package/src/app/components/story/StoryVariantGrid.vue +2 -2
- package/src/app/components/story/StoryVariantGridItem.vue +6 -4
- package/src/app/components/story/StoryVariantListItem.vue +1 -1
- package/src/app/components/story/StoryVariantSingle.vue +2 -2
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +7 -5
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +1 -1
- package/src/app/components/story/StoryVariantSingleView.vue +2 -2
- package/src/app/components/story/StoryView.vue +2 -2
- package/src/app/components/story/StoryViewer.vue +1 -1
- package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +1 -1
- package/src/app/components/toolbar/ToolbarBackground.vue +4 -4
- package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
- package/src/app/components/toolbar/ToolbarResponsiveSize.vue +5 -5
- package/src/app/components/toolbar/ToolbarTextDirection.vue +1 -1
- package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
- package/src/app/components/tree/StoryGroup.vue +1 -1
- package/src/app/components/tree/StoryList.vue +1 -1
- package/src/app/components/tree/StoryListFolder.vue +3 -3
- package/src/app/components/tree/StoryListItem.vue +1 -1
- package/src/app/index.ts +2 -2
- package/src/app/plugin.ts +2 -2
- package/src/app/router.ts +2 -2
- package/src/app/sandbox.ts +6 -6
- package/src/app/stores/folder.ts +1 -1
- package/src/app/stores/preview-settings.ts +1 -1
- package/src/app/style/main.pcss +3 -3
- package/src/app/style/sandbox.css +1 -1
- package/src/app/style/transitions.pcss +4 -4
- package/src/app/types.ts +2 -2
- package/src/app/util/commands.ts +2 -2
- package/src/app/util/config.ts +2 -2
- package/src/app/util/const.ts +4 -4
- package/src/app/util/dark.ts +4 -4
- package/src/app/util/docs.ts +1 -1
- package/src/app/util/events.ts +1 -1
- package/src/app/util/preview-settings.ts +5 -3
- package/src/virtual.d.ts +1 -1
- package/dist/app/assets/histoire-text-dark.svg +0 -89
- package/dist/app/assets/histoire-text.svg +0 -89
- package/dist/app/assets/histoire.svg +0 -51
- package/dist/bundled/assets/histoire-text-dark.svg.js +0 -4
- package/dist/bundled/assets/histoire-text.svg.js +0 -4
- package/dist/bundled/assets/histoire.svg.js +0 -4
- package/postcss-scope-wrapper.cjs +0 -35
- package/postcss.config.cjs +0 -9
- package/scripts/copy.mjs +0 -12
- package/scripts/watchAndCopy.mjs +0 -15
- package/src/app/assets/histoire-text-dark.svg +0 -89
- package/src/app/assets/histoire-text.svg +0 -89
- package/src/app/assets/histoire.svg +0 -51
- package/tailwind.config.cjs +0 -137
- package/tsconfig.json +0 -53
- package/vite.config.ts +0 -88
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
return openBlock(), createElementBlock("div", {
|
|
63
63
|
ref_key: "el",
|
|
64
64
|
ref: el,
|
|
65
|
-
class: "
|
|
65
|
+
class: "poveste-base-overflow-menu htw-flex htw-overflow-hidden htw-relative"
|
|
66
66
|
}, [
|
|
67
67
|
createVNode(ChildrenRender, null, {
|
|
68
68
|
default: withCtx(() => [
|
|
@@ -9,7 +9,7 @@ const _hoisted_2 = {
|
|
|
9
9
|
};
|
|
10
10
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
11
|
const _component_router_link = resolveComponent("router-link");
|
|
12
|
-
return openBlock(), createBlock(_component_router_link, mergeProps({ class: "
|
|
12
|
+
return openBlock(), createBlock(_component_router_link, mergeProps({ class: "poveste-base-overflow-tab" }, _ctx.$attrs, { custom: "" }), {
|
|
13
13
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [
|
|
14
14
|
createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
15
15
|
href,
|
|
@@ -19,7 +19,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19
19
|
onClick: navigate
|
|
20
20
|
}), [
|
|
21
21
|
renderSlot(_ctx.$slots, "default"),
|
|
22
|
-
createVNode(Transition, { name: "
|
|
22
|
+
createVNode(Transition, { name: "__poveste-scale-y" }, {
|
|
23
23
|
default: withCtx(() => [
|
|
24
24
|
(_ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
|
25
25
|
]),
|
|
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
}
|
|
31
31
|
return (_ctx, _cache) => {
|
|
32
32
|
return openBlock(), createBlock(unref(Dropdown), {
|
|
33
|
-
class: "
|
|
33
|
+
class: "poveste-base-select",
|
|
34
34
|
"auto-size": "",
|
|
35
35
|
"auto-boundary-max-size": ""
|
|
36
36
|
}, {
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./BaseSplitPane.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const BaseSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const BaseSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6c89c62e"]]);
|
|
6
6
|
export {
|
|
7
7
|
BaseSplitPane as default
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, computed, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, withModifiers } from "@poveste/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
|
-
const SAVE_PREFIX = "
|
|
3
|
+
const SAVE_PREFIX = "__poveste";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "BaseSplitPane",
|
|
6
6
|
props: {
|
|
@@ -138,7 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
return openBlock(), createElementBlock("div", {
|
|
139
139
|
ref_key: "el",
|
|
140
140
|
ref: el,
|
|
141
|
-
class: normalizeClass(["
|
|
141
|
+
class: normalizeClass(["poveste-base-split-pane htw-flex htw-h-full htw-isolate htw-overflow-auto", {
|
|
142
142
|
"htw-flex-col": __props.orientation === "portrait",
|
|
143
143
|
"htw-cursor-ew-resize": dragging.value && __props.orientation === "landscape",
|
|
144
144
|
"htw-cursor-ns-resize": dragging.value && __props.orientation === "portrait",
|
|
@@ -9,7 +9,7 @@ const _hoisted_2 = {
|
|
|
9
9
|
};
|
|
10
10
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
11
|
const _component_router_link = resolveComponent("router-link");
|
|
12
|
-
return openBlock(), createBlock(_component_router_link, mergeProps({ class: "
|
|
12
|
+
return openBlock(), createBlock(_component_router_link, mergeProps({ class: "poveste-base-tab" }, _ctx.$attrs, { custom: "" }), {
|
|
13
13
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [
|
|
14
14
|
createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
15
15
|
href,
|
|
@@ -19,7 +19,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19
19
|
onClick: navigate
|
|
20
20
|
}), [
|
|
21
21
|
renderSlot(_ctx.$slots, "default"),
|
|
22
|
-
createVNode(Transition, { name: "
|
|
22
|
+
createVNode(Transition, { name: "__poveste-scale-x" }, {
|
|
23
23
|
default: withCtx(() => [
|
|
24
24
|
(_ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
|
25
25
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue";
|
|
2
2
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const _sfc_main = {};
|
|
4
|
-
const _hoisted_1 = { class: "
|
|
4
|
+
const _hoisted_1 = { class: "poveste-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" };
|
|
5
5
|
function _sfc_render(_ctx, _cache) {
|
|
6
6
|
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
7
7
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
});
|
|
51
51
|
return (_ctx, _cache) => {
|
|
52
52
|
return openBlock(), createElementBlock("form", {
|
|
53
|
-
class: "
|
|
53
|
+
class: "poveste-command-prompts htw-flex htw-flex-col",
|
|
54
54
|
onSubmit: _cache[0] || (_cache[0] = withModifiers(($event) => submit(), ["prevent"])),
|
|
55
55
|
onKeyup: _cache[1] || (_cache[1] = withKeys(($event) => _ctx.$emit("close"), ["escape"]))
|
|
56
56
|
}, [
|
|
@@ -3,7 +3,7 @@ import { useCommandStore } from "../../stores/command.js";
|
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "
|
|
6
|
+
class: "poveste-command-prompts-modal htw-fixed htw-inset-0 htw-bg-white/80 dark:htw-bg-gray-900/80 htw-z-20"
|
|
7
7
|
};
|
|
8
8
|
const _hoisted_2 = { class: "htw-bg-white dark:htw-bg-gray-900 md:htw-mt-16 md:htw-mx-auto htw-w-screen htw-max-w-[512px] htw-max-h-[80vh] htw-overflow-y-auto htw-scroll-smooth htw-shadow-xl htw-border htw-border-gray-200 dark:htw-border-gray-750 htw-rounded-lg htw-relative htw-divide-y htw-divide-gray-200 dark:htw-divide-gray-850" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -4,7 +4,7 @@ import { useSelection } from "../../util/select.js";
|
|
|
4
4
|
import "../base/BaseKeyboardShortcut.vue.js";
|
|
5
5
|
import _sfc_main$1 from "../base/BaseKeyboardShortcut.vue2.js";
|
|
6
6
|
"use strict";
|
|
7
|
-
const _hoisted_1 = { class: "
|
|
7
|
+
const _hoisted_1 = { class: "poveste-prompt-select htw-relative htw-group" };
|
|
8
8
|
const _hoisted_2 = ["required"];
|
|
9
9
|
const _hoisted_3 = { class: "htw-flex htw-flex-col htw-gap-2 htw-p-2" };
|
|
10
10
|
const _hoisted_4 = { class: "htw-px-2 htw-flex" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, createElementBlock, openBlock, createElementVNode, withDirectives, createCommentVNode, toDisplayString, vModelText } from "@poveste/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
|
-
const _hoisted_1 = { class: "
|
|
3
|
+
const _hoisted_1 = { class: "poveste-prompt-text" };
|
|
4
4
|
const _hoisted_2 = { class: "htw-flex htw-flex-col htw-gap-2 htw-p-2" };
|
|
5
5
|
const _hoisted_3 = { class: "htw-px-2" };
|
|
6
6
|
const _hoisted_4 = {
|
|
@@ -2,11 +2,11 @@ import { createElementBlock, openBlock } from "@poveste/vendors/vue";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = {};
|
|
5
|
-
const _hoisted_1 = { class: "
|
|
5
|
+
const _hoisted_1 = { class: "__poveste-hatched-pattern" };
|
|
6
6
|
function _sfc_render(_ctx, _cache) {
|
|
7
7
|
return openBlock(), createElementBlock("div", _hoisted_1);
|
|
8
8
|
}
|
|
9
|
-
const HatchedPattern = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
9
|
+
const HatchedPattern = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c1be54fa"]]);
|
|
10
10
|
export {
|
|
11
11
|
HatchedPattern as default
|
|
12
12
|
};
|
|
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
modelValue: model.value,
|
|
49
49
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => model.value = $event),
|
|
50
50
|
placeholder: model.value === void 0 ? __props.definition?.default : null,
|
|
51
|
-
class: "
|
|
51
|
+
class: "poveste-controls-component-prop-item",
|
|
52
52
|
title: `${__props.definition.name}${canReset.value ? " *" : ""}`
|
|
53
53
|
}, {
|
|
54
54
|
actions: withCtx(() => [
|
|
@@ -3,7 +3,7 @@ import { Icon } from "@poveste/vendors/iconify";
|
|
|
3
3
|
import "./ControlsComponentPropItem.vue.js";
|
|
4
4
|
import _sfc_main$1 from "./ControlsComponentPropItem.vue2.js";
|
|
5
5
|
"use strict";
|
|
6
|
-
const _hoisted_1 = { class: "
|
|
6
|
+
const _hoisted_1 = { class: "poveste-controls-component-props" };
|
|
7
7
|
const _hoisted_2 = { class: "htw-font-mono htw-p-2 htw-flex htw-items-center htw-gap-1" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "ControlsComponentProps",
|
|
@@ -3,7 +3,7 @@ import { Icon } from "@poveste/vendors/iconify";
|
|
|
3
3
|
import "./ControlsComponentStateItem.vue.js";
|
|
4
4
|
import _sfc_main$1 from "./ControlsComponentStateItem.vue2.js";
|
|
5
5
|
"use strict";
|
|
6
|
-
const _hoisted_1 = { class: "
|
|
6
|
+
const _hoisted_1 = { class: "poveste-controls-component-init-state" };
|
|
7
7
|
const _hoisted_2 = { class: "htw-p-2 htw-flex htw-items-center htw-gap-1" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "ControlsComponentState",
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
key: 0,
|
|
36
36
|
modelValue: model.value,
|
|
37
37
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
38
|
-
class: "
|
|
38
|
+
class: "poveste-controls-component-prop-item",
|
|
39
39
|
title: props.item
|
|
40
40
|
}, null, 8, ["modelValue", "title"])) : createCommentVNode("", true);
|
|
41
41
|
};
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const eventsStore = useEventsStore();
|
|
22
22
|
const hasEvents = computed(() => eventsStore.events.length);
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
|
-
return openBlock(), createBlock(_sfc_main$1, { class: "
|
|
24
|
+
return openBlock(), createBlock(_sfc_main$1, { class: "poveste-pane-tabs htw-h-10 htw-flex-none htw-border-b htw-border-gray-100 dark:htw-border-gray-750" }, {
|
|
25
25
|
overflow: withCtx(() => [
|
|
26
26
|
createVNode(BaseOverflowTab, {
|
|
27
27
|
to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "" } },
|
|
@@ -6,7 +6,7 @@ import { toRawDeep } from "../../util/state.js";
|
|
|
6
6
|
import "../base/BaseSelect.vue.js";
|
|
7
7
|
import _sfc_main$1 from "../base/BaseSelect.vue2.js";
|
|
8
8
|
"use strict";
|
|
9
|
-
const _hoisted_1 = { class: "
|
|
9
|
+
const _hoisted_1 = { class: "poveste-state-presets htw-flex htw-gap-2 htw-w-full htw-items-center" };
|
|
10
10
|
const _hoisted_2 = ["onUpdate:modelValue"];
|
|
11
11
|
const _hoisted_3 = {
|
|
12
12
|
key: 1,
|
|
@@ -28,11 +28,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const omitKeys = ["_hPropDefs"];
|
|
29
29
|
const defaultState = clone(omit(toRawDeep(props.variant.state), omitKeys));
|
|
30
30
|
const selectedOption = useStorage(
|
|
31
|
-
`
|
|
31
|
+
`_poveste-presets/${saveId.value}/selected`,
|
|
32
32
|
DEFAULT_ID
|
|
33
33
|
);
|
|
34
34
|
const presetStates = useStorage(
|
|
35
|
-
`
|
|
35
|
+
`_poveste-presets/${saveId.value}/states`,
|
|
36
36
|
/* @__PURE__ */ new Map()
|
|
37
37
|
);
|
|
38
38
|
const presetsOptions = computed(() => {
|
|
@@ -12,7 +12,7 @@ import _sfc_main$4 from "./ControlsComponentProps.vue2.js";
|
|
|
12
12
|
"use strict";
|
|
13
13
|
const _hoisted_1 = {
|
|
14
14
|
"data-test-id": "story-controls",
|
|
15
|
-
class: "
|
|
15
|
+
class: "poveste-story-controls htw-flex htw-flex-col htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-750"
|
|
16
16
|
};
|
|
17
17
|
const _hoisted_2 = { class: "htw-h-9 htw-flex-none htw-px-2 htw-flex htw-items-center" };
|
|
18
18
|
const _hoisted_3 = { key: 1 };
|
|
@@ -51,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
"slot-name": "controls",
|
|
52
52
|
variant: __props.variant,
|
|
53
53
|
story: __props.story,
|
|
54
|
-
class: "__histoire-render-custom-controls htw-flex-none",
|
|
54
|
+
class: "__poveste-render-custom-controls __histoire-render-custom-controls htw-flex-none",
|
|
55
55
|
onReady: _cache[0] || (_cache[0] = ($event) => ready.value = true)
|
|
56
56
|
}, null, 8, ["variant", "story"])) : hasInitState.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
57
57
|
createVNode(_sfc_main$3, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, toRefs, watch, ref, computed, createElementBlock, openBlock, createCommentVNode, createBlock, unref, normalizeClass, withCtx, createVNode, createTextVNode, watchEffect, nextTick } from "@poveste/vendors/vue";
|
|
2
2
|
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
-
import { markdownFiles } from "virtual:$
|
|
3
|
+
import { markdownFiles } from "virtual:$poveste-markdown-files";
|
|
4
4
|
import { useRouter, useRoute } from "@poveste/vendors/vue-router";
|
|
5
|
-
import {
|
|
5
|
+
import { povesteConfig } from "../../util/config.js";
|
|
6
6
|
import BaseEmpty from "../base/BaseEmpty.vue.js";
|
|
7
7
|
import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
|
|
8
8
|
import _sfc_main$1 from "../toolbar/DevOnlyToolbarOpenInEditor.vue2.js";
|
|
@@ -70,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
70
|
}
|
|
71
71
|
function getHash() {
|
|
72
72
|
const hash = location.hash;
|
|
73
|
-
if (
|
|
73
|
+
if (povesteConfig.routerMode === "hash") {
|
|
74
74
|
const index = hash.indexOf("#", 1);
|
|
75
75
|
if (index !== -1) {
|
|
76
76
|
return hash.slice(index);
|
|
@@ -101,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
const route = useRoute();
|
|
102
102
|
async function patchAnchorLinks() {
|
|
103
103
|
await nextTick();
|
|
104
|
-
if (
|
|
104
|
+
if (povesteConfig.routerMode === "hash" && renderedEl.value) {
|
|
105
105
|
const links = renderedEl.value.querySelectorAll("a.header-anchor");
|
|
106
106
|
for (const link of links) {
|
|
107
107
|
const href = link.getAttribute("href");
|
|
@@ -119,10 +119,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
const filePath = computed(() => story.value.file?.docsFilePath ?? (props.standalone && story.value.file?.filePath));
|
|
120
120
|
return (_ctx, _cache) => {
|
|
121
121
|
return openBlock(), createElementBlock("div", {
|
|
122
|
-
class: "
|
|
122
|
+
class: "poveste-story-docs",
|
|
123
123
|
onClickCapture: onClick
|
|
124
124
|
}, [
|
|
125
|
-
_ctx.
|
|
125
|
+
_ctx.__POVESTE_DEV__ && unref(renderedDoc) && filePath.value ? (openBlock(), createElementBlock("div", {
|
|
126
126
|
key: 0,
|
|
127
127
|
class: normalizeClass(["htw-flex htw-items-center htw-gap-2 htw-p-2", {
|
|
128
128
|
"htw-pt-4": !__props.standalone
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
return (_ctx, _cache) => {
|
|
27
27
|
const _component_VDropdown = resolveComponent("VDropdown");
|
|
28
28
|
return openBlock(), createBlock(_component_VDropdown, {
|
|
29
|
-
class: "
|
|
29
|
+
class: "poveste-story-event htw-group",
|
|
30
30
|
placement: "right",
|
|
31
31
|
"data-test-id": "event-item"
|
|
32
32
|
}, {
|
|
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
return openBlock(), createElementBlock("div", {
|
|
26
26
|
ref_key: "eventsElement",
|
|
27
27
|
ref: eventsElement,
|
|
28
|
-
class: "
|
|
28
|
+
class: "poveste-story-events"
|
|
29
29
|
}, [
|
|
30
30
|
!hasEvents.value ? (openBlock(), createBlock(BaseEmpty, { key: 0 }, {
|
|
31
31
|
default: withCtx(() => [
|
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
return (_ctx, _cache) => {
|
|
33
33
|
return !unref(storyStore).currentVariant ? (openBlock(), createBlock(BaseEmpty, {
|
|
34
34
|
key: 0,
|
|
35
|
-
class: "
|
|
35
|
+
class: "poveste-story-side-panel poveste-selection"
|
|
36
36
|
}, {
|
|
37
37
|
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
38
38
|
createElementVNode("span", null, "Select a variant", -1)
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
_: 1
|
|
41
41
|
})) : !unref(storyStore).currentVariant.configReady || !unref(storyStore).currentVariant.previewReady ? (openBlock(), createBlock(BaseEmpty, {
|
|
42
42
|
key: 1,
|
|
43
|
-
class: "
|
|
43
|
+
class: "poveste-story-side-panel poveste-loading"
|
|
44
44
|
}, {
|
|
45
45
|
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
46
46
|
createElementVNode("span", null, "Loading...", -1)
|
|
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
key: 2,
|
|
51
51
|
"save-id": "story-sidepane",
|
|
52
52
|
orientation: "portrait",
|
|
53
|
-
class: "
|
|
53
|
+
class: "poveste-story-side-panel poveste-loaded htw-h-full",
|
|
54
54
|
"data-test-id": "story-side-panel"
|
|
55
55
|
}, {
|
|
56
56
|
first: withCtx(() => [
|
|
@@ -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-82d96c7f"]]);
|
|
6
6
|
export {
|
|
7
7
|
StorySourceCode as default
|
|
8
8
|
};
|
|
@@ -3,11 +3,11 @@ import { Icon } from "@poveste/vendors/iconify";
|
|
|
3
3
|
import { HstCopyIcon } from "@poveste/controls";
|
|
4
4
|
import { unindent } from "@poveste/shared";
|
|
5
5
|
import { createHighlighter } from "shiki";
|
|
6
|
-
import { clientSupportPlugins } from "virtual:$
|
|
6
|
+
import { clientSupportPlugins } from "virtual:$poveste-support-plugins-client";
|
|
7
7
|
import { isDark } from "../../util/dark.js";
|
|
8
8
|
import BaseEmpty from "../base/BaseEmpty.vue.js";
|
|
9
9
|
"use strict";
|
|
10
|
-
const _hoisted_1 = { class: "
|
|
10
|
+
const _hoisted_1 = { class: "poveste-story-source-code htw-bg-gray-50 dark:htw-bg-gray-750 htw-h-full htw-overflow-hidden htw-flex htw-flex-col" };
|
|
11
11
|
const _hoisted_2 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "htw-h-10 htw-flex-none htw-border-b htw-border-solid htw-border-gray-500/5 htw-px-4 htw-flex htw-items-center htw-gap-2"
|
|
@@ -177,7 +177,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
177
177
|
key: 3,
|
|
178
178
|
ref_key: "scroller",
|
|
179
179
|
ref: scroller,
|
|
180
|
-
class: "
|
|
180
|
+
class: "__poveste-code-placeholder htw-w-full htw-h-full htw-p-4 htw-outline-none htw-bg-transparent htw-resize-none htw-m-0",
|
|
181
181
|
value: displayedSourceCode.value,
|
|
182
182
|
readonly: "",
|
|
183
183
|
"data-test-id": "story-source-code",
|
|
@@ -191,7 +191,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
191
191
|
onScroll
|
|
192
192
|
}, [
|
|
193
193
|
createElementVNode("div", {
|
|
194
|
-
class: "__histoire-code htw-p-4 htw-w-fit",
|
|
194
|
+
class: "__poveste-code __histoire-code htw-p-4 htw-w-fit",
|
|
195
195
|
innerHTML: sourceHtml.value
|
|
196
196
|
}, null, 8, _hoisted_6)
|
|
197
197
|
], 544))
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./SearchItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const SearchItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const SearchItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0c821aae"]]);
|
|
6
6
|
export {
|
|
7
7
|
SearchItem as default
|
|
8
8
|
};
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
},
|
|
27
27
|
setup(__props, { emit: __emit }) {
|
|
28
28
|
useCssVars((_ctx) => ({
|
|
29
|
-
"
|
|
29
|
+
"v12a213a0": __props.result.iconColor
|
|
30
30
|
}));
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emit = __emit;
|
|
@@ -51,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
return openBlock(), createElementBlock("div", {
|
|
52
52
|
ref_key: "el",
|
|
53
53
|
ref: el,
|
|
54
|
-
class: "
|
|
54
|
+
class: "poveste-search-item",
|
|
55
55
|
"data-test-id": "search-item",
|
|
56
56
|
"data-selected": unref(selected) ? "" : void 0
|
|
57
57
|
}, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createVNode, createTextVNode, unref } from "@poveste/vendors/vue";
|
|
2
2
|
import { Icon } from "@poveste/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
|
-
const _hoisted_1 = { class: "
|
|
4
|
+
const _hoisted_1 = { class: "poveste-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" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "SearchLoading",
|
|
7
7
|
setup(__props) {
|
|
@@ -3,7 +3,7 @@ import "./SearchLoading.vue.js";
|
|
|
3
3
|
import _sfc_main$1 from "./SearchLoading.vue2.js";
|
|
4
4
|
"use strict";
|
|
5
5
|
const _hoisted_1 = {
|
|
6
|
-
class: "
|
|
6
|
+
class: "poveste-search-modal htw-fixed htw-inset-0 htw-bg-white/80 dark:htw-bg-gray-900/80 htw-z-20",
|
|
7
7
|
"data-test-id": "search-modal"
|
|
8
8
|
};
|
|
9
9
|
const _hoisted_2 = { class: "htw-bg-white dark:htw-bg-gray-900 md:htw-mt-16 md:htw-mx-auto htw-w-screen htw-max-w-[512px] htw-shadow-xl htw-border htw-border-gray-200 dark:htw-border-gray-750 htw-rounded-lg htw-relative htw-divide-y htw-divide-gray-200 dark:htw-divide-gray-850" };
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, watch, computed, createElementBlock, openBlock, F
|
|
|
2
2
|
import { Icon } from "@poveste/vendors/iconify";
|
|
3
3
|
import { useFocus, useDebounce } from "@poveste/vendors/vue-use";
|
|
4
4
|
import Fuse from "fuse.js";
|
|
5
|
-
import { registeredCommands } from "virtual:$
|
|
5
|
+
import { registeredCommands } from "virtual:$poveste-commands";
|
|
6
6
|
import { useCommandStore } from "../../stores/command.js";
|
|
7
7
|
import { useStoryStore } from "../../stores/story.js";
|
|
8
8
|
import { getCommandContext, builtinCommands } from "../../util/commands.js";
|
|
@@ -179,7 +179,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
179
179
|
...registeredCommands
|
|
180
180
|
];
|
|
181
181
|
const commandResults = computed(() => {
|
|
182
|
-
if (
|
|
182
|
+
if (__POVESTE_DEV__) {
|
|
183
183
|
const commandCtx = getCommandContext();
|
|
184
184
|
const searchText = searchInputText.value.toLowerCase();
|
|
185
185
|
return allCommands.filter((command) => !command.showIf || command.showIf(commandCtx)).filter((command) => command.label.toLowerCase().includes(searchText) || command.searchText?.toLowerCase().includes(searchText)).map((command) => commandResultFactory(command, 0));
|
|
@@ -223,7 +223,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
223
223
|
return (_ctx, _cache) => {
|
|
224
224
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
225
225
|
createElementVNode("div", {
|
|
226
|
-
class: "
|
|
226
|
+
class: "poveste-search-pane htw-flex htw-items-center htw-gap-4 htw-pl-6 htw-border htw-border-transparent focus-visible:htw-border-primary-500",
|
|
227
227
|
onClick: _cache[4] || (_cache[4] = ($event) => focused.value = true)
|
|
228
228
|
}, [
|
|
229
229
|
createVNode(unref(Icon), {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { searchData as searchData$1, onUpdate as onUpdate$1 } from "virtual:$
|
|
1
|
+
import { searchData as searchData$1, onUpdate as onUpdate$1 } from "virtual:$poveste-search-docs-data";
|
|
2
2
|
import { markRaw } from "@poveste/vendors/vue";
|
|
3
3
|
"use strict";
|
|
4
4
|
const searchData = markRaw(searchData$1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { searchData as searchData$1, onUpdate as onUpdate$1 } from "virtual:$
|
|
1
|
+
import { searchData as searchData$1, onUpdate as onUpdate$1 } from "virtual:$poveste-search-title-data";
|
|
2
2
|
import { markRaw } from "@poveste/vendors/vue";
|
|
3
3
|
"use strict";
|
|
4
4
|
const searchData = markRaw(searchData$1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watchEffect, markRaw, createBlock, createCommentVNode, openBlock, resolveDynamicComponent, mergeProps } from "@poveste/vendors/vue";
|
|
2
|
-
import { clientSupportPlugins } from "virtual:$
|
|
2
|
+
import { clientSupportPlugins } from "virtual:$poveste-support-plugins-client";
|
|
3
3
|
"use strict";
|
|
4
4
|
const __default__ = {
|
|
5
5
|
inheritAttrs: false
|
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
24
|
return mountComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(mountComponent.value), mergeProps({
|
|
25
25
|
key: 0,
|
|
26
|
-
class: "histoire-generic-mount-story",
|
|
26
|
+
class: "poveste-generic-mount-story histoire-generic-mount-story",
|
|
27
27
|
story: __props.story
|
|
28
28
|
}, _ctx.$attrs), null, 16, ["story"])) : createCommentVNode("", true);
|
|
29
29
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watchEffect, markRaw, createBlock, createCommentVNode, openBlock, resolveDynamicComponent, mergeProps } from "@poveste/vendors/vue";
|
|
2
|
-
import { clientSupportPlugins } from "virtual:$
|
|
2
|
+
import { clientSupportPlugins } from "virtual:$poveste-support-plugins-client";
|
|
3
3
|
"use strict";
|
|
4
4
|
const __default__ = {
|
|
5
5
|
inheritAttrs: false
|
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return mountComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(mountComponent.value), mergeProps({
|
|
30
30
|
key: 0,
|
|
31
|
-
class: "histoire-generic-render-story __histoire-render-story",
|
|
31
|
+
class: "poveste-generic-render-story __poveste-render-story histoire-generic-render-story __histoire-render-story",
|
|
32
32
|
story: __props.story
|
|
33
33
|
}, _ctx.$attrs), null, 16, ["story"])) : createCommentVNode("", true);
|
|
34
34
|
};
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./StoryResponsivePreview.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const StoryResponsivePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const StoryResponsivePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-275bf3ef"]]);
|
|
6
6
|
export {
|
|
7
7
|
StoryResponsivePreview as default
|
|
8
8
|
};
|
|
@@ -6,7 +6,7 @@ import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
|
6
6
|
import CheckerboardPattern from "../misc/CheckerboardPattern.vue.js";
|
|
7
7
|
import HatchedPattern from "../misc/HatchedPattern.vue.js";
|
|
8
8
|
"use strict";
|
|
9
|
-
const _hoisted_1 = { class: "
|
|
9
|
+
const _hoisted_1 = { class: "poveste-story-responsive-preview htw-w-full htw-h-full htw-flex-1 htw-rounded-lg htw-relative htw-overflow-hidden" };
|
|
10
10
|
const _hoisted_2 = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "htw-absolute htw-inset-0 htw-w-full htw-h-full htw-bg-gray-100 dark:htw-bg-gray-750 htw-rounded-r-lg htw-border-l-2 htw-border-gray-500/10 dark:htw-border-gray-700/30 htw-overflow-hidden"
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
},
|
|
25
25
|
setup(__props) {
|
|
26
26
|
useCssVars((_ctx) => ({
|
|
27
|
-
"
|
|
27
|
+
"v30eb5fc0": unref(settings).backgroundColor
|
|
28
28
|
}));
|
|
29
29
|
const props = __props;
|
|
30
30
|
const settings = usePreviewSettingsStore().currentSettings;
|
|
@@ -145,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
145
145
|
resizing: resizing.value
|
|
146
146
|
}, void 0, true)
|
|
147
147
|
]),
|
|
148
|
-
_cache[1] || (_cache[1] = createStaticVNode('<div class="htw-absolute htw-top-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-
|
|
148
|
+
_cache[1] || (_cache[1] = createStaticVNode('<div class="htw-absolute htw-top-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-275bf3ef></div><div class="htw-absolute htw-top-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-275bf3ef></div><div class="htw-absolute htw-bottom-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-275bf3ef></div><div class="htw-absolute htw-bottom-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-275bf3ef></div><div class="htw-absolute htw-left-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-275bf3ef></div><div class="htw-absolute htw-left-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-275bf3ef></div><div class="htw-absolute htw-right-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-275bf3ef></div><div class="htw-absolute htw-right-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-275bf3ef></div>', 8))
|
|
149
149
|
]),
|
|
150
150
|
isResponsiveEnabled.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
151
151
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
@@ -9,7 +9,7 @@ import StoryVariantGridItem from "./StoryVariantGridItem.vue.js";
|
|
|
9
9
|
import _sfc_main$1 from "../toolbar/ToolbarTextDirection.vue2.js";
|
|
10
10
|
import _sfc_main$2 from "../toolbar/DevOnlyToolbarOpenInEditor.vue2.js";
|
|
11
11
|
"use strict";
|
|
12
|
-
const _hoisted_1 = { class: "
|
|
12
|
+
const _hoisted_1 = { class: "poveste-story-variant-grid htw-flex htw-flex-col htw-items-stretch htw-h-full __poveste-pane-shadow-from-right" };
|
|
13
13
|
const _hoisted_2 = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "htw-flex-none htw-flex htw-items-center htw-justify-end htw-h-8 htw-mx-2 htw-mt-1"
|
|
@@ -98,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
98
|
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
99
99
|
createVNode(ToolbarBackground),
|
|
100
100
|
createVNode(_sfc_main$1),
|
|
101
|
-
_ctx.
|
|
101
|
+
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$2, {
|
|
102
102
|
key: 0,
|
|
103
103
|
file: unref(storyStore).currentStory.file?.filePath,
|
|
104
104
|
tooltip: "Edit story in editor"
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./StoryVariantGridItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const StoryVariantGridItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const StoryVariantGridItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a3dc7302"]]);
|
|
6
6
|
export {
|
|
7
7
|
StoryVariantGridItem as default
|
|
8
8
|
};
|