@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.
Files changed (204) hide show
  1. package/dist/app/assets/poveste-text-dark.svg +15 -0
  2. package/dist/app/assets/poveste-text.svg +15 -0
  3. package/dist/app/assets/poveste.svg +14 -0
  4. package/dist/app/style/main.pcss +3 -3
  5. package/dist/app/style/sandbox.css +1 -1
  6. package/dist/app/style/transitions.pcss +4 -4
  7. package/dist/bundled/App.vue2.js +9 -9
  8. package/dist/bundled/app.css +54 -54
  9. package/dist/bundled/assets/poveste-text-dark.svg.js +4 -0
  10. package/dist/bundled/assets/poveste-text.svg.js +4 -0
  11. package/dist/bundled/assets/poveste.svg.js +4 -0
  12. package/dist/bundled/components/HomeView.vue2.js +4 -4
  13. package/dist/bundled/components/app/AppHeader.vue2.js +4 -4
  14. package/dist/bundled/components/app/AppLogo.vue2.js +7 -7
  15. package/dist/bundled/components/app/Breadcrumb.vue.js +1 -1
  16. package/dist/bundled/components/app/Breadcrumb.vue2.js +2 -2
  17. package/dist/bundled/components/app/InitialLoading.vue2.js +3 -3
  18. package/dist/bundled/components/app/MobileOverlay.vue2.js +2 -2
  19. package/dist/bundled/components/base/BaseButton.vue2.js +1 -1
  20. package/dist/bundled/components/base/BaseCheckbox.vue2.js +1 -1
  21. package/dist/bundled/components/base/BaseEmpty.vue.js +2 -2
  22. package/dist/bundled/components/base/BaseIcon.vue.js +1 -1
  23. package/dist/bundled/components/base/BaseIcon.vue2.js +2 -2
  24. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +1 -1
  25. package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
  26. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +1 -1
  27. package/dist/bundled/components/base/BaseOverflowTab.vue.js +2 -2
  28. package/dist/bundled/components/base/BaseSelect.vue2.js +1 -1
  29. package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
  30. package/dist/bundled/components/base/BaseSplitPane.vue2.js +2 -2
  31. package/dist/bundled/components/base/BaseTab.vue.js +2 -2
  32. package/dist/bundled/components/base/BaseTag.vue.js +1 -1
  33. package/dist/bundled/components/command/CommandPrompts.vue2.js +1 -1
  34. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +1 -1
  35. package/dist/bundled/components/command/PromptSelect.vue2.js +1 -1
  36. package/dist/bundled/components/command/PromptText.vue2.js +1 -1
  37. package/dist/bundled/components/misc/HatchedPattern.vue.js +2 -2
  38. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +1 -1
  39. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +1 -1
  40. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +1 -1
  41. package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +1 -1
  42. package/dist/bundled/components/panel/PaneTabs.vue2.js +1 -1
  43. package/dist/bundled/components/panel/StatePresets.vue2.js +3 -3
  44. package/dist/bundled/components/panel/StoryControls.vue2.js +2 -2
  45. package/dist/bundled/components/panel/StoryDocs.vue2.js +6 -6
  46. package/dist/bundled/components/panel/StoryEvent.vue2.js +1 -1
  47. package/dist/bundled/components/panel/StoryEvents.vue2.js +1 -1
  48. package/dist/bundled/components/panel/StorySidePanel.vue2.js +3 -3
  49. package/dist/bundled/components/panel/StorySourceCode.vue.js +1 -1
  50. package/dist/bundled/components/panel/StorySourceCode.vue2.js +4 -4
  51. package/dist/bundled/components/search/SearchItem.vue.js +1 -1
  52. package/dist/bundled/components/search/SearchItem.vue2.js +2 -2
  53. package/dist/bundled/components/search/SearchLoading.vue2.js +1 -1
  54. package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
  55. package/dist/bundled/components/search/SearchPane.vue2.js +3 -3
  56. package/dist/bundled/components/search/search-docs-data.js +1 -1
  57. package/dist/bundled/components/search/search-title-data.js +1 -1
  58. package/dist/bundled/components/story/GenericMountStory.vue2.js +2 -2
  59. package/dist/bundled/components/story/GenericRenderStory.vue2.js +2 -2
  60. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +1 -1
  61. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +3 -3
  62. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +2 -2
  63. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +1 -1
  64. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +8 -6
  65. package/dist/bundled/components/story/StoryVariantListItem.vue.js +1 -1
  66. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +2 -2
  67. package/dist/bundled/components/story/StoryVariantSingle.vue.js +1 -1
  68. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +3 -3
  69. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +7 -5
  70. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +1 -1
  71. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +2 -2
  72. package/dist/bundled/components/story/StoryView.vue2.js +2 -2
  73. package/dist/bundled/components/story/StoryViewer.vue.js +1 -1
  74. package/dist/bundled/components/story/StoryViewer.vue2.js +2 -2
  75. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +1 -1
  76. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
  77. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +6 -6
  78. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +1 -1
  79. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +5 -5
  80. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +1 -1
  81. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +1 -1
  82. package/dist/bundled/components/tree/StoryGroup.vue2.js +1 -1
  83. package/dist/bundled/components/tree/StoryList.vue2.js +1 -1
  84. package/dist/bundled/components/tree/StoryListFolder.vue.js +1 -1
  85. package/dist/bundled/components/tree/StoryListFolder.vue2.js +4 -4
  86. package/dist/bundled/components/tree/StoryListItem.vue.js +1 -1
  87. package/dist/bundled/components/tree/StoryListItem.vue2.js +3 -3
  88. package/dist/bundled/index.js +2 -2
  89. package/dist/bundled/plugin.js +2 -2
  90. package/dist/bundled/router.js +2 -2
  91. package/dist/bundled/sandbox.js +6 -6
  92. package/dist/bundled/stores/folder.js +1 -1
  93. package/dist/bundled/stores/preview-settings.js +1 -1
  94. package/dist/bundled/util/commands.js +2 -2
  95. package/dist/bundled/util/config.js +3 -3
  96. package/dist/bundled/util/const.js +4 -4
  97. package/dist/bundled/util/dark.js +4 -4
  98. package/dist/bundled/util/docs.js +1 -1
  99. package/dist/bundled/util/events.js +1 -1
  100. package/dist/bundled/util/preview-settings.js +4 -3
  101. package/dist/style.css +348 -121
  102. package/package.json +8 -4
  103. package/src/app/App.vue +9 -9
  104. package/src/app/assets/poveste-text-dark.svg +15 -0
  105. package/src/app/assets/poveste-text.svg +15 -0
  106. package/src/app/assets/poveste.svg +14 -0
  107. package/src/app/components/HomeView.vue +4 -4
  108. package/src/app/components/app/AppHeader.vue +4 -4
  109. package/src/app/components/app/AppLogo.vue +7 -7
  110. package/src/app/components/app/Breadcrumb.vue +1 -1
  111. package/src/app/components/app/InitialLoading.vue +3 -3
  112. package/src/app/components/app/MobileOverlay.vue +2 -2
  113. package/src/app/components/base/BaseButton.vue +1 -1
  114. package/src/app/components/base/BaseCheckbox.vue +1 -1
  115. package/src/app/components/base/BaseCopyIcon.vue +1 -1
  116. package/src/app/components/base/BaseEmpty.vue +1 -1
  117. package/src/app/components/base/BaseIcon.vue +2 -2
  118. package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
  119. package/src/app/components/base/BaseListItemLink.vue +1 -1
  120. package/src/app/components/base/BaseOverflowMenu.vue +1 -1
  121. package/src/app/components/base/BaseOverflowTab.vue +2 -2
  122. package/src/app/components/base/BaseSelect.vue +1 -1
  123. package/src/app/components/base/BaseSplitPane.vue +2 -2
  124. package/src/app/components/base/BaseTab.vue +2 -2
  125. package/src/app/components/base/BaseTag.vue +1 -1
  126. package/src/app/components/command/CommandPrompts.vue +1 -1
  127. package/src/app/components/command/CommandPromptsModal.vue +1 -1
  128. package/src/app/components/command/PromptSelect.vue +1 -1
  129. package/src/app/components/command/PromptText.vue +1 -1
  130. package/src/app/components/misc/HatchedPattern.vue +2 -2
  131. package/src/app/components/panel/ControlsComponentPropItem.vue +1 -1
  132. package/src/app/components/panel/ControlsComponentProps.vue +1 -1
  133. package/src/app/components/panel/ControlsComponentState.vue +1 -1
  134. package/src/app/components/panel/ControlsComponentStateItem.vue +1 -1
  135. package/src/app/components/panel/PaneTabs.vue +1 -1
  136. package/src/app/components/panel/StatePresets.vue +3 -3
  137. package/src/app/components/panel/StoryControls.vue +2 -2
  138. package/src/app/components/panel/StoryDocs.vue +6 -6
  139. package/src/app/components/panel/StoryEvent.vue +1 -1
  140. package/src/app/components/panel/StoryEvents.vue +1 -1
  141. package/src/app/components/panel/StorySidePanel.vue +3 -3
  142. package/src/app/components/panel/StorySourceCode.vue +5 -5
  143. package/src/app/components/search/SearchItem.vue +1 -1
  144. package/src/app/components/search/SearchLoading.vue +1 -1
  145. package/src/app/components/search/SearchModal.vue +1 -1
  146. package/src/app/components/search/SearchPane.vue +3 -3
  147. package/src/app/components/search/search-docs-data.ts +1 -1
  148. package/src/app/components/search/search-title-data.ts +1 -1
  149. package/src/app/components/story/GenericMountStory.vue +2 -2
  150. package/src/app/components/story/GenericRenderStory.vue +2 -2
  151. package/src/app/components/story/StoryResponsivePreview.vue +1 -1
  152. package/src/app/components/story/StoryVariantGrid.vue +2 -2
  153. package/src/app/components/story/StoryVariantGridItem.vue +6 -4
  154. package/src/app/components/story/StoryVariantListItem.vue +1 -1
  155. package/src/app/components/story/StoryVariantSingle.vue +2 -2
  156. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +7 -5
  157. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +1 -1
  158. package/src/app/components/story/StoryVariantSingleView.vue +2 -2
  159. package/src/app/components/story/StoryView.vue +2 -2
  160. package/src/app/components/story/StoryViewer.vue +1 -1
  161. package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +1 -1
  162. package/src/app/components/toolbar/ToolbarBackground.vue +4 -4
  163. package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
  164. package/src/app/components/toolbar/ToolbarResponsiveSize.vue +5 -5
  165. package/src/app/components/toolbar/ToolbarTextDirection.vue +1 -1
  166. package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
  167. package/src/app/components/tree/StoryGroup.vue +1 -1
  168. package/src/app/components/tree/StoryList.vue +1 -1
  169. package/src/app/components/tree/StoryListFolder.vue +3 -3
  170. package/src/app/components/tree/StoryListItem.vue +1 -1
  171. package/src/app/index.ts +2 -2
  172. package/src/app/plugin.ts +2 -2
  173. package/src/app/router.ts +2 -2
  174. package/src/app/sandbox.ts +6 -6
  175. package/src/app/stores/folder.ts +1 -1
  176. package/src/app/stores/preview-settings.ts +1 -1
  177. package/src/app/style/main.pcss +3 -3
  178. package/src/app/style/sandbox.css +1 -1
  179. package/src/app/style/transitions.pcss +4 -4
  180. package/src/app/types.ts +2 -2
  181. package/src/app/util/commands.ts +2 -2
  182. package/src/app/util/config.ts +2 -2
  183. package/src/app/util/const.ts +4 -4
  184. package/src/app/util/dark.ts +4 -4
  185. package/src/app/util/docs.ts +1 -1
  186. package/src/app/util/events.ts +1 -1
  187. package/src/app/util/preview-settings.ts +5 -3
  188. package/src/virtual.d.ts +1 -1
  189. package/dist/app/assets/histoire-text-dark.svg +0 -89
  190. package/dist/app/assets/histoire-text.svg +0 -89
  191. package/dist/app/assets/histoire.svg +0 -51
  192. package/dist/bundled/assets/histoire-text-dark.svg.js +0 -4
  193. package/dist/bundled/assets/histoire-text.svg.js +0 -4
  194. package/dist/bundled/assets/histoire.svg.js +0 -4
  195. package/postcss-scope-wrapper.cjs +0 -35
  196. package/postcss.config.cjs +0 -9
  197. package/scripts/copy.mjs +0 -12
  198. package/scripts/watchAndCopy.mjs +0 -15
  199. package/src/app/assets/histoire-text-dark.svg +0 -89
  200. package/src/app/assets/histoire-text.svg +0 -89
  201. package/src/app/assets/histoire.svg +0 -51
  202. package/tailwind.config.cjs +0 -137
  203. package/tsconfig.json +0 -53
  204. package/vite.config.ts +0 -88
@@ -1,5 +1,5 @@
1
1
  import { unindent } from "@poveste/shared";
2
- import { clientSupportPlugins } from "virtual:$histoire-support-plugins-client";
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("[histoire] Event fired", { name, argument });
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 { histoireConfig } from "./config.js";
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 (histoireConfig.autoApplyContrastColor) {
11
+ if (povesteConfig.autoApplyContrastColor) {
11
12
  document.documentElement.style.color = contrastColor;
12
13
  }
13
14
  }
14
15
  function getContrastColor(setting) {
15
- return histoireConfig.backgroundPresets.find((preset) => preset.color === setting.backgroundColor)?.contrastColor ?? "unset";
16
+ return povesteConfig.backgroundPresets.find((preset) => preset.color === setting.backgroundColor)?.contrastColor ?? "unset";
16
17
  }
17
18
  export {
18
19
  applyPreviewSettings,