@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { unindent } from "@poveste/shared";
|
|
2
|
-
import { clientSupportPlugins } from "virtual:$
|
|
2
|
+
import { clientSupportPlugins } from "virtual:$poveste-support-plugins-client";
|
|
3
3
|
"use strict";
|
|
4
4
|
async function getSourceCode(story, variant) {
|
|
5
5
|
if (variant.source) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EVENT_SEND } from "./const.js";
|
|
2
2
|
"use strict";
|
|
3
3
|
async function logEvent(name, argument) {
|
|
4
|
-
console.log("[
|
|
4
|
+
console.log("[poveste] Event fired", { name, argument });
|
|
5
5
|
const event = {
|
|
6
6
|
name,
|
|
7
7
|
argument: JSON.parse(stringifyEvent(argument))
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { reactive } from "@poveste/vendors/vue";
|
|
2
|
-
import {
|
|
2
|
+
import { povesteConfig } from "./config.js";
|
|
3
3
|
"use strict";
|
|
4
4
|
const receivedSettings = reactive({});
|
|
5
5
|
function applyPreviewSettings(settings) {
|
|
6
6
|
Object.assign(receivedSettings, settings);
|
|
7
7
|
document.documentElement.setAttribute("dir", settings.textDirection);
|
|
8
8
|
const contrastColor = getContrastColor(settings);
|
|
9
|
+
document.documentElement.style.setProperty("--poveste-contrast-color", contrastColor);
|
|
9
10
|
document.documentElement.style.setProperty("--histoire-contrast-color", contrastColor);
|
|
10
|
-
if (
|
|
11
|
+
if (povesteConfig.autoApplyContrastColor) {
|
|
11
12
|
document.documentElement.style.color = contrastColor;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
function getContrastColor(setting) {
|
|
15
|
-
return
|
|
16
|
+
return povesteConfig.backgroundPresets.find((preset) => preset.color === setting.backgroundColor)?.contrastColor ?? "unset";
|
|
16
17
|
}
|
|
17
18
|
export {
|
|
18
19
|
applyPreviewSettings,
|