@poveste/app 0.1.0 → 0.1.1
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/package.json +4 -4
- package/postcss.config.cjs +1 -1
- 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/tailwind.config.cjs +2 -2
- package/vite.config.ts +2 -2
- 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/app/style/floating.pcss +0 -34
- package/dist/app/style/main.pcss +0 -100
- package/dist/app/style/sandbox.css +0 -24
- package/dist/app/style/transitions.pcss +0 -51
- package/dist/bundle-index.js +0 -1
- package/dist/bundle-main-dev.js +0 -4
- package/dist/bundle-main.js +0 -5
- package/dist/bundle-sandbox-dev.js +0 -2
- package/dist/bundle-sandbox.js +0 -2
- package/dist/bundled/App.vue.js +0 -5
- package/dist/bundled/App.vue2.js +0 -167
- package/dist/bundled/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/bundled/api.js +0 -12
- package/dist/bundled/app.css +0 -116
- 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/dist/bundled/components/HomeView.vue.js +0 -5
- package/dist/bundled/components/HomeView.vue2.js +0 -66
- package/dist/bundled/components/app/AppHeader.vue.js +0 -5
- package/dist/bundled/components/app/AppHeader.vue2.js +0 -71
- package/dist/bundled/components/app/AppLogo.vue.js +0 -5
- package/dist/bundled/components/app/AppLogo.vue2.js +0 -29
- package/dist/bundled/components/app/Breadcrumb.vue.js +0 -8
- package/dist/bundled/components/app/Breadcrumb.vue2.js +0 -91
- package/dist/bundled/components/app/HomeCounter.vue.js +0 -5
- package/dist/bundled/components/app/HomeCounter.vue2.js +0 -42
- package/dist/bundled/components/app/InitialLoading.vue.js +0 -5
- package/dist/bundled/components/app/InitialLoading.vue2.js +0 -51
- package/dist/bundled/components/app/MobileOverlay.vue.js +0 -5
- package/dist/bundled/components/app/MobileOverlay.vue2.js +0 -45
- package/dist/bundled/components/base/BaseButton.vue.js +0 -5
- package/dist/bundled/components/base/BaseButton.vue2.js +0 -39
- package/dist/bundled/components/base/BaseCheckbox.vue.js +0 -5
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +0 -78
- package/dist/bundled/components/base/BaseEmpty.vue.js +0 -14
- package/dist/bundled/components/base/BaseIcon.vue.js +0 -8
- package/dist/bundled/components/base/BaseIcon.vue2.js +0 -29
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +0 -5
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +0 -20
- package/dist/bundled/components/base/BaseListItem.vue.js +0 -5
- package/dist/bundled/components/base/BaseListItem.vue2.js +0 -33
- package/dist/bundled/components/base/BaseListItemLink.vue.js +0 -33
- package/dist/bundled/components/base/BaseListItemLink.vue2.js +0 -26
- package/dist/bundled/components/base/BaseOverflowMenu.vue.js +0 -5
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +0 -100
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +0 -36
- package/dist/bundled/components/base/BaseOverflowTab.vue2.js +0 -18
- package/dist/bundled/components/base/BaseSelect.vue.js +0 -5
- package/dist/bundled/components/base/BaseSelect.vue2.js +0 -77
- package/dist/bundled/components/base/BaseSplitPane.vue.js +0 -8
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +0 -183
- package/dist/bundled/components/base/BaseTab.vue.js +0 -36
- package/dist/bundled/components/base/BaseTab.vue2.js +0 -18
- package/dist/bundled/components/base/BaseTag.vue.js +0 -13
- package/dist/bundled/components/command/CommandPrompts.vue.js +0 -5
- package/dist/bundled/components/command/CommandPrompts.vue2.js +0 -91
- package/dist/bundled/components/command/CommandPromptsModal.vue.js +0 -5
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +0 -45
- package/dist/bundled/components/command/PromptSelect.vue.js +0 -5
- package/dist/bundled/components/command/PromptSelect.vue2.js +0 -142
- package/dist/bundled/components/command/PromptText.vue.js +0 -5
- package/dist/bundled/components/command/PromptText.vue2.js +0 -67
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +0 -40
- package/dist/bundled/components/misc/HatchedPattern.vue.js +0 -12
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +0 -72
- package/dist/bundled/components/panel/ControlsComponentProps.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +0 -45
- package/dist/bundled/components/panel/ControlsComponentState.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +0 -41
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +0 -46
- package/dist/bundled/components/panel/PaneTabs.vue.js +0 -5
- package/dist/bundled/components/panel/PaneTabs.vue2.js +0 -114
- package/dist/bundled/components/panel/StatePresets.vue.js +0 -5
- package/dist/bundled/components/panel/StatePresets.vue2.js +0 -193
- package/dist/bundled/components/panel/StoryControls.vue.js +0 -5
- package/dist/bundled/components/panel/StoryControls.vue2.js +0 -87
- package/dist/bundled/components/panel/StoryDocs.vue.js +0 -7
- package/dist/bundled/components/panel/StoryDocs.vue2.js +0 -161
- package/dist/bundled/components/panel/StoryEvent.vue.js +0 -5
- package/dist/bundled/components/panel/StoryEvent.vue2.js +0 -59
- package/dist/bundled/components/panel/StoryEvents.vue.js +0 -5
- package/dist/bundled/components/panel/StoryEvents.vue2.js +0 -53
- package/dist/bundled/components/panel/StorySidePanel.vue.js +0 -5
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +0 -83
- package/dist/bundled/components/panel/StorySourceCode.vue.js +0 -8
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +0 -204
- package/dist/bundled/components/search/SearchItem.vue.js +0 -8
- package/dist/bundled/components/search/SearchItem.vue2.js +0 -93
- package/dist/bundled/components/search/SearchItemContent.vue.js +0 -5
- package/dist/bundled/components/search/SearchItemContent.vue2.js +0 -71
- package/dist/bundled/components/search/SearchLoading.vue.js +0 -5
- package/dist/bundled/components/search/SearchLoading.vue2.js +0 -21
- package/dist/bundled/components/search/SearchModal.vue.js +0 -5
- package/dist/bundled/components/search/SearchModal.vue2.js +0 -51
- package/dist/bundled/components/search/SearchPane.vue.js +0 -5
- package/dist/bundled/components/search/SearchPane.vue2.js +0 -272
- package/dist/bundled/components/search/search-docs-data.js +0 -11
- package/dist/bundled/components/search/search-title-data.js +0 -11
- package/dist/bundled/components/story/GenericMountStory.vue.js +0 -5
- package/dist/bundled/components/story/GenericMountStory.vue2.js +0 -34
- package/dist/bundled/components/story/GenericRenderStory.vue.js +0 -5
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +0 -39
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +0 -8
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +0 -207
- package/dist/bundled/components/story/StoryVariantGrid.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +0 -146
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +0 -153
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +0 -55
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +0 -107
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +0 -70
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +0 -128
- package/dist/bundled/components/story/StoryVariantSingleView.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +0 -66
- package/dist/bundled/components/story/StoryView.vue.js +0 -5
- package/dist/bundled/components/story/StoryView.vue2.js +0 -104
- package/dist/bundled/components/story/StoryViewer.vue.js +0 -8
- package/dist/bundled/components/story/StoryViewer.vue2.js +0 -55
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +0 -5
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +0 -31
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +0 -8
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +0 -98
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +0 -36
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +0 -127
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +0 -27
- package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +0 -26
- package/dist/bundled/components/tree/StoryGroup.vue.js +0 -5
- package/dist/bundled/components/tree/StoryGroup.vue2.js +0 -74
- package/dist/bundled/components/tree/StoryList.vue.js +0 -5
- package/dist/bundled/components/tree/StoryList.vue2.js +0 -41
- package/dist/bundled/components/tree/StoryListFolder.vue.js +0 -8
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +0 -86
- package/dist/bundled/components/tree/StoryListItem.vue.js +0 -8
- package/dist/bundled/components/tree/StoryListItem.vue2.js +0 -69
- package/dist/bundled/index.js +0 -35
- package/dist/bundled/plugin.js +0 -49
- package/dist/bundled/router.js +0 -32
- package/dist/bundled/sandbox.js +0 -87
- package/dist/bundled/stores/command.js +0 -25
- package/dist/bundled/stores/events.js +0 -29
- package/dist/bundled/stores/folder.js +0 -54
- package/dist/bundled/stores/preview-settings.js +0 -19
- package/dist/bundled/stores/story.js +0 -43
- package/dist/bundled/util/commands.js +0 -57
- package/dist/bundled/util/config.js +0 -8
- package/dist/bundled/util/const.js +0 -10
- package/dist/bundled/util/dark.js +0 -28
- package/dist/bundled/util/docs.js +0 -26
- package/dist/bundled/util/env.js +0 -4
- package/dist/bundled/util/events.js +0 -33
- package/dist/bundled/util/keyboard.js +0 -90
- package/dist/bundled/util/mapping.js +0 -70
- package/dist/bundled/util/open-in-editor.js +0 -6
- package/dist/bundled/util/preview-settings.js +0 -21
- package/dist/bundled/util/responsive.js +0 -6
- package/dist/bundled/util/sandbox.js +0 -11
- package/dist/bundled/util/scroll.js +0 -31
- package/dist/bundled/util/select.js +0 -28
- package/dist/bundled/util/state.js +0 -41
- package/dist/bundled/util/tooltip.js +0 -15
- package/dist/bundled/util/variant.js +0 -21
- package/dist/style.css +0 -2626
- 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
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import type { PropType, Ref } from 'vue'
|
|
3
3
|
import type { Story } from '../../types'
|
|
4
4
|
import { Icon } from '@iconify/vue'
|
|
5
|
-
import { markdownFiles } from 'virtual:$
|
|
5
|
+
import { markdownFiles } from 'virtual:$poveste-markdown-files'
|
|
6
6
|
import { computed, nextTick, ref, toRefs, watch, watchEffect } from 'vue'
|
|
7
7
|
import { useRoute, useRouter } from 'vue-router'
|
|
8
|
-
import {
|
|
8
|
+
import { povesteConfig } from '../../util/config.js'
|
|
9
9
|
import BaseEmpty from '../base/BaseEmpty.vue'
|
|
10
10
|
import DevOnlyToolbarOpenInEditor from '../toolbar/DevOnlyToolbarOpenInEditor.vue'
|
|
11
11
|
|
|
@@ -103,7 +103,7 @@ function onClick(e: MouseEvent) {
|
|
|
103
103
|
|
|
104
104
|
function getHash() {
|
|
105
105
|
const hash = location.hash
|
|
106
|
-
if (
|
|
106
|
+
if (povesteConfig.routerMode === 'hash') {
|
|
107
107
|
const index = hash.indexOf('#', 1)
|
|
108
108
|
if (index !== -1) {
|
|
109
109
|
return hash.slice(index)
|
|
@@ -141,7 +141,7 @@ const route = useRoute()
|
|
|
141
141
|
|
|
142
142
|
async function patchAnchorLinks() {
|
|
143
143
|
await nextTick()
|
|
144
|
-
if (
|
|
144
|
+
if (povesteConfig.routerMode === 'hash' && renderedEl.value) {
|
|
145
145
|
const links = renderedEl.value.querySelectorAll('a.header-anchor')
|
|
146
146
|
for (const link of links) {
|
|
147
147
|
const href = link.getAttribute('href')
|
|
@@ -165,11 +165,11 @@ const filePath = computed(() => story.value.file?.docsFilePath ?? (props.standal
|
|
|
165
165
|
|
|
166
166
|
<template>
|
|
167
167
|
<div
|
|
168
|
-
class="
|
|
168
|
+
class="poveste-story-docs"
|
|
169
169
|
@click.capture="onClick"
|
|
170
170
|
>
|
|
171
171
|
<div
|
|
172
|
-
v-if="
|
|
172
|
+
v-if="__POVESTE_DEV__ && renderedDoc && filePath"
|
|
173
173
|
class="htw-flex htw-items-center htw-gap-2 htw-p-2"
|
|
174
174
|
:class="{
|
|
175
175
|
'htw-pt-4': !standalone,
|
|
@@ -30,14 +30,14 @@ const panelContentComponent = computed(() => {
|
|
|
30
30
|
<template>
|
|
31
31
|
<BaseEmpty
|
|
32
32
|
v-if="!storyStore.currentVariant"
|
|
33
|
-
class="
|
|
33
|
+
class="poveste-story-side-panel poveste-selection"
|
|
34
34
|
>
|
|
35
35
|
<span>Select a variant</span>
|
|
36
36
|
</BaseEmpty>
|
|
37
37
|
|
|
38
38
|
<BaseEmpty
|
|
39
39
|
v-else-if="!storyStore.currentVariant.configReady || !storyStore.currentVariant.previewReady"
|
|
40
|
-
class="
|
|
40
|
+
class="poveste-story-side-panel poveste-loading"
|
|
41
41
|
>
|
|
42
42
|
<span>Loading...</span>
|
|
43
43
|
</BaseEmpty>
|
|
@@ -46,7 +46,7 @@ const panelContentComponent = computed(() => {
|
|
|
46
46
|
v-else
|
|
47
47
|
save-id="story-sidepane"
|
|
48
48
|
orientation="portrait"
|
|
49
|
-
class="
|
|
49
|
+
class="poveste-story-side-panel poveste-loaded htw-h-full"
|
|
50
50
|
data-test-id="story-side-panel"
|
|
51
51
|
>
|
|
52
52
|
<template #first>
|
|
@@ -5,7 +5,7 @@ import { Icon } from '@iconify/vue'
|
|
|
5
5
|
import { HstCopyIcon } from '@poveste/controls'
|
|
6
6
|
import { unindent } from '@poveste/shared'
|
|
7
7
|
import { createHighlighter } from 'shiki'
|
|
8
|
-
import { clientSupportPlugins } from 'virtual:$
|
|
8
|
+
import { clientSupportPlugins } from 'virtual:$poveste-support-plugins-client'
|
|
9
9
|
import { computed, markRaw, nextTick, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'
|
|
10
10
|
import { isDark } from '../../util/dark'
|
|
11
11
|
import BaseEmpty from '../base/BaseEmpty.vue'
|
|
@@ -133,7 +133,7 @@ watch(sourceHtml, async () => {
|
|
|
133
133
|
|
|
134
134
|
<template>
|
|
135
135
|
<div
|
|
136
|
-
class="
|
|
136
|
+
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"
|
|
137
137
|
>
|
|
138
138
|
<!-- Toolbar -->
|
|
139
139
|
<div
|
|
@@ -217,7 +217,7 @@ watch(sourceHtml, async () => {
|
|
|
217
217
|
<textarea
|
|
218
218
|
v-else-if="!sourceHtml"
|
|
219
219
|
ref="scroller"
|
|
220
|
-
class="
|
|
220
|
+
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"
|
|
221
221
|
:value="displayedSourceCode"
|
|
222
222
|
readonly
|
|
223
223
|
data-test-id="story-source-code"
|
|
@@ -232,7 +232,7 @@ watch(sourceHtml, async () => {
|
|
|
232
232
|
@scroll="onScroll"
|
|
233
233
|
>
|
|
234
234
|
<div
|
|
235
|
-
class="__histoire-code htw-p-4 htw-w-fit"
|
|
235
|
+
class="__poveste-code __histoire-code htw-p-4 htw-w-fit"
|
|
236
236
|
v-html="sourceHtml"
|
|
237
237
|
/>
|
|
238
238
|
</div>
|
|
@@ -241,7 +241,7 @@ watch(sourceHtml, async () => {
|
|
|
241
241
|
</template>
|
|
242
242
|
|
|
243
243
|
<style scoped>
|
|
244
|
-
.
|
|
244
|
+
.__poveste-code-placeholder {
|
|
245
245
|
color: inherit;
|
|
246
246
|
font-size: inherit;
|
|
247
247
|
}
|
|
@@ -4,7 +4,7 @@ import { Icon } from '@iconify/vue'
|
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
6
|
<div
|
|
7
|
-
class="
|
|
7
|
+
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"
|
|
8
8
|
>
|
|
9
9
|
<Icon
|
|
10
10
|
icon="carbon:search"
|
|
@@ -27,7 +27,7 @@ function close() {
|
|
|
27
27
|
<template>
|
|
28
28
|
<div
|
|
29
29
|
v-show="shown"
|
|
30
|
-
class="
|
|
30
|
+
class="poveste-search-modal htw-fixed htw-inset-0 htw-bg-white/80 dark:htw-bg-gray-900/80 htw-z-20"
|
|
31
31
|
data-test-id="search-modal"
|
|
32
32
|
>
|
|
33
33
|
<div
|
|
@@ -5,7 +5,7 @@ import type { SearchData } from './types'
|
|
|
5
5
|
import { Icon } from '@iconify/vue'
|
|
6
6
|
import { useDebounce, useFocus } from '@vueuse/core'
|
|
7
7
|
import Fuse from 'fuse.js'
|
|
8
|
-
import { registeredCommands } from 'virtual:$
|
|
8
|
+
import { registeredCommands } from 'virtual:$poveste-commands'
|
|
9
9
|
import { computed, ref, watch } from 'vue'
|
|
10
10
|
import { useCommandStore } from '../../stores/command.js'
|
|
11
11
|
import { useStoryStore } from '../../stores/story'
|
|
@@ -222,7 +222,7 @@ const allCommands = [
|
|
|
222
222
|
]
|
|
223
223
|
|
|
224
224
|
const commandResults = computed(() => {
|
|
225
|
-
if (
|
|
225
|
+
if (__POVESTE_DEV__) {
|
|
226
226
|
const commandCtx = getCommandContext()
|
|
227
227
|
const searchText = searchInputText.value.toLowerCase()
|
|
228
228
|
return allCommands
|
|
@@ -278,7 +278,7 @@ const {
|
|
|
278
278
|
|
|
279
279
|
<template>
|
|
280
280
|
<div
|
|
281
|
-
class="
|
|
281
|
+
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"
|
|
282
282
|
@click="focused = true"
|
|
283
283
|
>
|
|
284
284
|
<Icon
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SearchData } from './types.js'
|
|
2
|
-
import { onUpdate as _onUpdate, searchData as _searchData } from 'virtual:$
|
|
2
|
+
import { onUpdate as _onUpdate, searchData as _searchData } from 'virtual:$poveste-search-docs-data'
|
|
3
3
|
import { markRaw } from 'vue'
|
|
4
4
|
|
|
5
5
|
export const searchData: SearchData = markRaw(_searchData)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SearchData } from './types.js'
|
|
2
|
-
import { onUpdate as _onUpdate, searchData as _searchData } from 'virtual:$
|
|
2
|
+
import { onUpdate as _onUpdate, searchData as _searchData } from 'virtual:$poveste-search-title-data'
|
|
3
3
|
import { markRaw } from 'vue'
|
|
4
4
|
|
|
5
5
|
export const searchData: SearchData = markRaw(_searchData)
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
|
|
7
7
|
<script lang="ts" setup>
|
|
8
8
|
import type { Story } from '../../types'
|
|
9
|
-
import { clientSupportPlugins } from 'virtual:$
|
|
9
|
+
import { clientSupportPlugins } from 'virtual:$poveste-support-plugins-client'
|
|
10
10
|
import { markRaw, ref, watchEffect } from 'vue'
|
|
11
11
|
|
|
12
12
|
const props = defineProps<{
|
|
@@ -28,7 +28,7 @@ watchEffect(async () => {
|
|
|
28
28
|
<component
|
|
29
29
|
:is="mountComponent"
|
|
30
30
|
v-if="mountComponent"
|
|
31
|
-
class="histoire-generic-mount-story"
|
|
31
|
+
class="poveste-generic-mount-story histoire-generic-mount-story"
|
|
32
32
|
:story="story"
|
|
33
33
|
v-bind="$attrs"
|
|
34
34
|
/>
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
|
|
7
7
|
<script lang="ts" setup>
|
|
8
8
|
import type { Story } from '../../types'
|
|
9
|
-
import { clientSupportPlugins } from 'virtual:$
|
|
9
|
+
import { clientSupportPlugins } from 'virtual:$poveste-support-plugins-client'
|
|
10
10
|
import { markRaw, ref, watchEffect } from 'vue'
|
|
11
11
|
|
|
12
12
|
const props = defineProps<{
|
|
@@ -34,7 +34,7 @@ watchEffect(async () => {
|
|
|
34
34
|
<component
|
|
35
35
|
:is="mountComponent"
|
|
36
36
|
v-if="mountComponent"
|
|
37
|
-
class="histoire-generic-render-story __histoire-render-story"
|
|
37
|
+
class="poveste-generic-render-story __poveste-render-story histoire-generic-render-story __histoire-render-story"
|
|
38
38
|
:story="story"
|
|
39
39
|
v-bind="$attrs"
|
|
40
40
|
/>
|
|
@@ -122,7 +122,7 @@ const sizeTooltip = computed(() => `${responsiveWidth.value ?? 'Auto'} × ${resp
|
|
|
122
122
|
</script>
|
|
123
123
|
|
|
124
124
|
<template>
|
|
125
|
-
<div class="
|
|
125
|
+
<div class="poveste-story-responsive-preview htw-w-full htw-h-full htw-flex-1 htw-rounded-lg htw-relative htw-overflow-hidden">
|
|
126
126
|
<div
|
|
127
127
|
v-if="isResponsiveEnabled"
|
|
128
128
|
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"
|
|
@@ -119,7 +119,7 @@ const columnCount = computed(() => Math.min(storyStore.currentStory.variants.len
|
|
|
119
119
|
</script>
|
|
120
120
|
|
|
121
121
|
<template>
|
|
122
|
-
<div class="
|
|
122
|
+
<div class="poveste-story-variant-grid htw-flex htw-flex-col htw-items-stretch htw-h-full __poveste-pane-shadow-from-right">
|
|
123
123
|
<!-- Toolbar -->
|
|
124
124
|
<div
|
|
125
125
|
v-if="!isMobile"
|
|
@@ -129,7 +129,7 @@ const columnCount = computed(() => Math.min(storyStore.currentStory.variants.len
|
|
|
129
129
|
<ToolbarTextDirection />
|
|
130
130
|
|
|
131
131
|
<DevOnlyToolbarOpenInEditor
|
|
132
|
-
v-if="
|
|
132
|
+
v-if="__POVESTE_DEV__"
|
|
133
133
|
:file="storyStore.currentStory.file?.filePath"
|
|
134
134
|
tooltip="Edit story in editor"
|
|
135
135
|
/>
|
|
@@ -7,7 +7,7 @@ import { useResizeObserver } from '@vueuse/core'
|
|
|
7
7
|
import { computed, ref, toRefs } from 'vue'
|
|
8
8
|
import { useRouter } from 'vue-router'
|
|
9
9
|
import { usePreviewSettingsStore } from '../../stores/preview-settings'
|
|
10
|
-
import {
|
|
10
|
+
import { povesteConfig } from '../../util/config'
|
|
11
11
|
import { isDark } from '../../util/dark'
|
|
12
12
|
import { getSourceCode } from '../../util/docs'
|
|
13
13
|
import { getContrastColor } from '../../util/preview-settings'
|
|
@@ -67,13 +67,13 @@ useResizeObserver(el, () => {
|
|
|
67
67
|
const settings = usePreviewSettingsStore().currentSettings
|
|
68
68
|
|
|
69
69
|
const contrastColor = computed(() => getContrastColor(settings))
|
|
70
|
-
const autoApplyContrastColor = computed(() => !!
|
|
70
|
+
const autoApplyContrastColor = computed(() => !!povesteConfig.autoApplyContrastColor)
|
|
71
71
|
</script>
|
|
72
72
|
|
|
73
73
|
<template>
|
|
74
74
|
<div
|
|
75
75
|
ref="el"
|
|
76
|
-
class="
|
|
76
|
+
class="poveste-story-variant-grid-item htw-cursor-default htw-flex htw-flex-col htw-gap-y-1 htw-group"
|
|
77
77
|
>
|
|
78
78
|
<!-- Header -->
|
|
79
79
|
<div class="htw-flex-none htw-flex htw-items-center">
|
|
@@ -133,6 +133,8 @@ const autoApplyContrastColor = computed(() => !!histoireConfig.autoApplyContrast
|
|
|
133
133
|
<div
|
|
134
134
|
class="htw-relative htw-h-full"
|
|
135
135
|
:style="{
|
|
136
|
+
'--poveste-contrast-color': contrastColor,
|
|
137
|
+
// Deprecated alias — keep so stories referencing `var(--histoire-contrast-color)` still work.
|
|
136
138
|
'--histoire-contrast-color': contrastColor,
|
|
137
139
|
'color': autoApplyContrastColor ? contrastColor : undefined,
|
|
138
140
|
}"
|
|
@@ -143,7 +145,7 @@ const autoApplyContrastColor = computed(() => !!histoireConfig.autoApplyContrast
|
|
|
143
145
|
:story="story"
|
|
144
146
|
:dir="settings.textDirection"
|
|
145
147
|
:class="{
|
|
146
|
-
[
|
|
148
|
+
[povesteConfig.theme.darkClass]: isDark,
|
|
147
149
|
}"
|
|
148
150
|
@ready="onReady"
|
|
149
151
|
/>
|
|
@@ -21,7 +21,7 @@ const variant = computed(() => storyStore.currentVariant)
|
|
|
21
21
|
<template>
|
|
22
22
|
<div
|
|
23
23
|
v-if="hasSingleVariant && variant"
|
|
24
|
-
class="
|
|
24
|
+
class="poveste-story-variant-single htw-p-2 htw-h-full __poveste-pane-shadow-from-right"
|
|
25
25
|
>
|
|
26
26
|
<StoryVariantSingleView
|
|
27
27
|
:variant="variant"
|
|
@@ -86,7 +86,7 @@ const variant = computed(() => storyStore.currentVariant)
|
|
|
86
86
|
<template #last>
|
|
87
87
|
<div
|
|
88
88
|
v-if="storyStore.currentVariant"
|
|
89
|
-
class="htw-p-2 htw-h-full
|
|
89
|
+
class="htw-p-2 htw-h-full __poveste-pane-shadow-from-right"
|
|
90
90
|
>
|
|
91
91
|
<StoryVariantSingleView
|
|
92
92
|
:variant="storyStore.currentVariant"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { Story, Variant } from '../../types'
|
|
3
3
|
import { computed } from 'vue'
|
|
4
4
|
import { usePreviewSettingsStore } from '../../stores/preview-settings'
|
|
5
|
-
import {
|
|
5
|
+
import { povesteConfig } from '../../util/config'
|
|
6
6
|
import { isDark } from '../../util/dark'
|
|
7
7
|
import { getContrastColor } from '../../util/preview-settings'
|
|
8
8
|
import GenericRenderStory from './GenericRenderStory.vue'
|
|
@@ -26,13 +26,13 @@ function onReady() {
|
|
|
26
26
|
const settings = usePreviewSettingsStore().currentSettings
|
|
27
27
|
|
|
28
28
|
const contrastColor = computed(() => getContrastColor(settings))
|
|
29
|
-
const autoApplyContrastColor = computed(() => !!
|
|
29
|
+
const autoApplyContrastColor = computed(() => !!povesteConfig.autoApplyContrastColor)
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
32
|
<template>
|
|
33
33
|
<StoryResponsivePreview
|
|
34
34
|
v-slot="{ isResponsiveEnabled, finalWidth, finalHeight }"
|
|
35
|
-
class="
|
|
35
|
+
class="poveste-story-variant-single-preview-native"
|
|
36
36
|
:variant="variant"
|
|
37
37
|
>
|
|
38
38
|
<div
|
|
@@ -42,6 +42,8 @@ const autoApplyContrastColor = computed(() => !!histoireConfig.autoApplyContrast
|
|
|
42
42
|
height: finalHeight ? `${finalHeight}px` : '100%',
|
|
43
43
|
} : { width: '100%', height: '100%' },
|
|
44
44
|
{
|
|
45
|
+
'--poveste-contrast-color': contrastColor,
|
|
46
|
+
// Deprecated alias — keep so stories referencing `var(--histoire-contrast-color)` still work.
|
|
45
47
|
'--histoire-contrast-color': contrastColor,
|
|
46
48
|
'color': autoApplyContrastColor ? contrastColor : undefined,
|
|
47
49
|
},
|
|
@@ -55,8 +57,8 @@ const autoApplyContrastColor = computed(() => !!histoireConfig.autoApplyContrast
|
|
|
55
57
|
:story="story"
|
|
56
58
|
class="htw-h-full"
|
|
57
59
|
:class="{
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
+
[povesteConfig.sandboxDarkClass]: isDark, // @TODO remove
|
|
61
|
+
[povesteConfig.theme.darkClass]: isDark,
|
|
60
62
|
}"
|
|
61
63
|
:dir="settings.textDirection"
|
|
62
64
|
@ready="onReady"
|
|
@@ -121,7 +121,7 @@ function onIframeLoad() {
|
|
|
121
121
|
<template>
|
|
122
122
|
<StoryResponsivePreview
|
|
123
123
|
v-slot="{ isResponsiveEnabled, finalWidth, finalHeight, resizing }"
|
|
124
|
-
class="
|
|
124
|
+
class="poveste-story-variant-single-preview-remote"
|
|
125
125
|
:variant="variant"
|
|
126
126
|
>
|
|
127
127
|
<iframe
|
|
@@ -18,7 +18,7 @@ defineProps<{
|
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
20
|
<div
|
|
21
|
-
class="
|
|
21
|
+
class="poveste-story-variant-single-view htw-h-full htw-flex htw-flex-col"
|
|
22
22
|
data-test-id="story-variant-single-view"
|
|
23
23
|
>
|
|
24
24
|
<!-- Toolbar -->
|
|
@@ -40,7 +40,7 @@ defineProps<{
|
|
|
40
40
|
/>
|
|
41
41
|
|
|
42
42
|
<DevOnlyToolbarOpenInEditor
|
|
43
|
-
v-if="
|
|
43
|
+
v-if="__POVESTE_DEV__"
|
|
44
44
|
:file="story.file?.filePath"
|
|
45
45
|
tooltip="Edit story in editor"
|
|
46
46
|
/>
|
|
@@ -63,7 +63,7 @@ function scrollDocsToTop() {
|
|
|
63
63
|
<template>
|
|
64
64
|
<BaseEmpty
|
|
65
65
|
v-if="!storyStore.currentStory"
|
|
66
|
-
class="
|
|
66
|
+
class="poveste-story-view poveste-no-story"
|
|
67
67
|
>
|
|
68
68
|
<Icon
|
|
69
69
|
icon="carbon:software-resource-resource"
|
|
@@ -73,7 +73,7 @@ function scrollDocsToTop() {
|
|
|
73
73
|
|
|
74
74
|
<div
|
|
75
75
|
v-else
|
|
76
|
-
class="
|
|
76
|
+
class="poveste-story-view poveste-with-story htw-h-full"
|
|
77
77
|
>
|
|
78
78
|
<div
|
|
79
79
|
v-if="storyStore.currentStory.docsOnly"
|
|
@@ -22,7 +22,7 @@ watch(variant, () => {
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
|
-
<div class="
|
|
25
|
+
<div class="poveste-story-viewer htw-bg-gray-50 htw-h-full dark:htw-bg-gray-750">
|
|
26
26
|
<StoryVariantGrid
|
|
27
27
|
v-if="storyStore.currentStory.layout.type === 'grid'"
|
|
28
28
|
/>
|
|
@@ -12,7 +12,7 @@ defineProps<{
|
|
|
12
12
|
<a
|
|
13
13
|
v-tooltip="tooltip"
|
|
14
14
|
target="_blank"
|
|
15
|
-
class="
|
|
15
|
+
class="poveste-toolbar-open-in-editor htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 hover:htw-text-primary-500 htw-opacity-50 hover:htw-opacity-100 dark:hover:htw-text-primary-400 htw-text-gray-900 dark:htw-text-gray-100"
|
|
16
16
|
@click="openInEditor(file)"
|
|
17
17
|
>
|
|
18
18
|
<Icon
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Icon } from '@iconify/vue'
|
|
3
3
|
import { computed } from 'vue'
|
|
4
4
|
import { usePreviewSettingsStore } from '../../stores/preview-settings'
|
|
5
|
-
import {
|
|
5
|
+
import { povesteConfig } from '../../util/config'
|
|
6
6
|
import { getContrastColor } from '../../util/preview-settings'
|
|
7
7
|
import BaseCheckbox from '../base/BaseCheckbox.vue'
|
|
8
8
|
|
|
@@ -13,10 +13,10 @@ const contrastColor = computed(() => getContrastColor(settings))
|
|
|
13
13
|
|
|
14
14
|
<template>
|
|
15
15
|
<VDropdown
|
|
16
|
-
v-if="
|
|
16
|
+
v-if="povesteConfig.backgroundPresets.length"
|
|
17
17
|
placement="bottom-end"
|
|
18
18
|
:skidding="6"
|
|
19
|
-
class="
|
|
19
|
+
class="poveste-toolbar-background htw-h-full htw-flex-none"
|
|
20
20
|
data-test-id="toolbar-background"
|
|
21
21
|
>
|
|
22
22
|
<div
|
|
@@ -44,7 +44,7 @@ const contrastColor = computed(() => getContrastColor(settings))
|
|
|
44
44
|
</BaseCheckbox>
|
|
45
45
|
|
|
46
46
|
<button
|
|
47
|
-
v-for="(option, index) in
|
|
47
|
+
v-for="(option, index) in povesteConfig.backgroundPresets"
|
|
48
48
|
:key="index"
|
|
49
49
|
class="htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-items-baseline htw-gap-4"
|
|
50
50
|
:class="[
|
|
@@ -19,7 +19,7 @@ const sandboxUrl = computed(() => {
|
|
|
19
19
|
v-tooltip="'Open variant in new tab'"
|
|
20
20
|
:href="sandboxUrl"
|
|
21
21
|
target="_blank"
|
|
22
|
-
class="
|
|
22
|
+
class="poveste-toolbar-new-tab htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 hover:htw-text-primary-500 htw-opacity-50 hover:htw-opacity-100 dark:hover:htw-text-primary-400 htw-text-gray-900 dark:htw-text-gray-100"
|
|
23
23
|
>
|
|
24
24
|
<Icon
|
|
25
25
|
icon="carbon:launch"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { Icon } from '@iconify/vue'
|
|
3
3
|
import { usePreviewSettingsStore } from '../../stores/preview-settings'
|
|
4
|
-
import {
|
|
4
|
+
import { povesteConfig } from '../../util/config'
|
|
5
5
|
import BaseCheckbox from '../base/BaseCheckbox.vue'
|
|
6
6
|
|
|
7
7
|
const settings = usePreviewSettingsStore().currentSettings
|
|
@@ -12,14 +12,14 @@ const settings = usePreviewSettingsStore().currentSettings
|
|
|
12
12
|
<VDropdown
|
|
13
13
|
placement="bottom-end"
|
|
14
14
|
:skidding="6"
|
|
15
|
-
:disabled="!
|
|
16
|
-
class="
|
|
15
|
+
:disabled="!povesteConfig.responsivePresets?.length"
|
|
16
|
+
class="poveste-toolbar-responsive-size htw-h-full htw-flex-none"
|
|
17
17
|
>
|
|
18
18
|
<div
|
|
19
19
|
v-tooltip="'Responsive sizes'"
|
|
20
20
|
class="htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 htw-group"
|
|
21
21
|
:class="{
|
|
22
|
-
'htw-cursor-pointer hover:htw-text-primary-500':
|
|
22
|
+
'htw-cursor-pointer hover:htw-text-primary-500': povesteConfig.responsivePresets?.length,
|
|
23
23
|
}"
|
|
24
24
|
>
|
|
25
25
|
<Icon
|
|
@@ -59,7 +59,7 @@ const settings = usePreviewSettingsStore().currentSettings
|
|
|
59
59
|
</div>
|
|
60
60
|
|
|
61
61
|
<button
|
|
62
|
-
v-for="(preset, index) in
|
|
62
|
+
v-for="(preset, index) in povesteConfig.responsivePresets"
|
|
63
63
|
:key="index"
|
|
64
64
|
class="htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4"
|
|
65
65
|
:class="[
|
|
@@ -8,7 +8,7 @@ const settings = usePreviewSettingsStore().currentSettings
|
|
|
8
8
|
<template>
|
|
9
9
|
<a
|
|
10
10
|
v-tooltip="`Switch to text direction ${settings.textDirection === 'ltr' ? 'Right to Left' : 'Left to Right'}`"
|
|
11
|
-
class="
|
|
11
|
+
class="poveste-toolbar-text-direction htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 hover:htw-text-primary-500 htw-opacity-50 hover:htw-opacity-100 dark:hover:htw-text-primary-400 htw-text-gray-900 dark:htw-text-gray-100"
|
|
12
12
|
@click="settings.textDirection = settings.textDirection === 'ltr' ? 'rtl' : 'ltr'"
|
|
13
13
|
>
|
|
14
14
|
<Icon
|
|
@@ -8,7 +8,7 @@ defineProps<{
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
|
-
<div class="
|
|
11
|
+
<div class="poveste-toolbar-title htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0">
|
|
12
12
|
<Icon
|
|
13
13
|
:icon="variant.icon ?? 'carbon:cube'"
|
|
14
14
|
class="htw-w-4 htw-h-4 htw-opacity-50"
|
|
@@ -27,7 +27,7 @@ function toggleOpen() {
|
|
|
27
27
|
<template>
|
|
28
28
|
<div
|
|
29
29
|
data-test-id="story-group"
|
|
30
|
-
class="
|
|
30
|
+
class="poveste-story-group htw-my-2 first:htw-mt-0 last:htw-mb-0 htw-group"
|
|
31
31
|
>
|
|
32
32
|
<template v-if="group.title">
|
|
33
33
|
<div class="htw-h-[1px] htw-bg-gray-500/10 htw-mx-6 htw-mb-2 group-first:htw-hidden" />
|
|
@@ -32,18 +32,18 @@ const folderPadding = computed(() => {
|
|
|
32
32
|
<template>
|
|
33
33
|
<div
|
|
34
34
|
data-test-id="story-list-folder"
|
|
35
|
-
class="
|
|
35
|
+
class="poveste-story-list-folder"
|
|
36
36
|
>
|
|
37
37
|
<div
|
|
38
38
|
role="button"
|
|
39
39
|
tabindex="0"
|
|
40
|
-
class="
|
|
40
|
+
class="poveste-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"
|
|
41
41
|
@click="toggleOpen"
|
|
42
42
|
@keyup.enter="toggleOpen"
|
|
43
43
|
@keyup.space="toggleOpen"
|
|
44
44
|
>
|
|
45
45
|
<span class="bind-tree-padding htw-flex htw-items-center htw-gap-2 htw-min-w-0">
|
|
46
|
-
<span class="htw-flex htw-flex-none htw-items-center htw-opacity-30 [.
|
|
46
|
+
<span class="htw-flex htw-flex-none htw-items-center htw-opacity-30 [.poveste-story-list-folder-button:hover_&]:htw-opacity-100 htw-ml-4 htw-w-4 htw-h-4 htw-rounded-sm htw-border htw-border-gray-500/40">
|
|
47
47
|
<Icon
|
|
48
48
|
icon="carbon:caret-right"
|
|
49
49
|
class="htw-w-full htw-h-full htw-transition-transform htw-duration-150"
|
package/src/app/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { createApp } from 'vue'
|
|
|
4
4
|
import App from './App.vue'
|
|
5
5
|
import { setupPluginApi } from './plugin.js'
|
|
6
6
|
import { router } from './router'
|
|
7
|
-
import 'virtual:$
|
|
7
|
+
import 'virtual:$poveste-theme'
|
|
8
8
|
|
|
9
9
|
export async function mountMainApp() {
|
|
10
10
|
const app = createApp(App)
|
|
@@ -26,7 +26,7 @@ export async function mountMainApp() {
|
|
|
26
26
|
app.mount('#app')
|
|
27
27
|
|
|
28
28
|
if (import.meta.hot) {
|
|
29
|
-
import.meta.hot.send('
|
|
29
|
+
import.meta.hot.send('poveste:mount', {})
|
|
30
30
|
|
|
31
31
|
/* #__PURE__ */ setupPluginApi()
|
|
32
32
|
}
|