@histoire/app 0.12.4 → 0.13.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.
Files changed (42) hide show
  1. package/dist/bundled/App.vue.js +1 -2
  2. package/dist/bundled/App.vue2.js +1 -0
  3. package/dist/bundled/components/HomeView.vue.js +1 -2
  4. package/dist/bundled/components/app/AppHeader.vue.js +1 -2
  5. package/dist/bundled/components/app/AppLogo.vue.js +1 -2
  6. package/dist/bundled/components/app/InitialLoading.vue.js +1 -2
  7. package/dist/bundled/components/app/MobileOverlay.vue.js +1 -2
  8. package/dist/bundled/components/base/BaseCheckbox.vue.js +1 -2
  9. package/dist/bundled/components/base/BaseCheckbox.vue2.js +1 -0
  10. package/dist/bundled/components/base/BaseOverflowMenu.vue.js +1 -2
  11. package/dist/bundled/components/base/BaseSelect.vue.js +1 -2
  12. package/dist/bundled/components/base/BaseSplitPane.vue2.js +1 -0
  13. package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +1 -2
  14. package/dist/bundled/components/panel/ControlsComponentProps.vue.js +1 -2
  15. package/dist/bundled/components/panel/PaneTabs.vue.js +1 -2
  16. package/dist/bundled/components/panel/StatePresets.vue.js +1 -2
  17. package/dist/bundled/components/panel/StoryControls.vue.js +1 -2
  18. package/dist/bundled/components/panel/StoryDocs.vue.js +2 -2
  19. package/dist/bundled/components/panel/StoryEvent.vue.js +1 -2
  20. package/dist/bundled/components/panel/StoryEvents.vue.js +1 -2
  21. package/dist/bundled/components/panel/StorySidePanel.vue.js +1 -2
  22. package/dist/bundled/components/search/SearchLoading.vue.js +1 -2
  23. package/dist/bundled/components/search/SearchModal.vue.js +1 -2
  24. package/dist/bundled/components/search/SearchPane.vue.js +1 -2
  25. package/dist/bundled/components/story/GenericMountStory.vue.js +1 -2
  26. package/dist/bundled/components/story/GenericRenderStory.vue.js +1 -2
  27. package/dist/bundled/components/story/StoryVariantGrid.vue.js +1 -2
  28. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +1 -0
  29. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +1 -2
  30. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +1 -2
  31. package/dist/bundled/components/story/StoryVariantSingleView.vue.js +1 -2
  32. package/dist/bundled/components/story/StoryView.vue.js +1 -2
  33. package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +1 -2
  34. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +1 -2
  35. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +1 -2
  36. package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +1 -2
  37. package/dist/bundled/components/tree/StoryGroup.vue.js +1 -2
  38. package/dist/bundled/components/tree/StoryList.vue.js +1 -2
  39. package/dist/bundled/style.css +12 -12
  40. package/dist/bundled/util/events.js +1 -0
  41. package/dist/style.css +5 -5
  42. package/package.json +8 -8
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./App.vue2.js";
2
- import { default as default2 } from "./App.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -98,6 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
98
  createElementVNode("div", {
99
99
  class: "htw-h-screen htw-bg-white dark:htw-bg-gray-700 dark:htw-text-gray-100",
100
100
  style: normalizeStyle({
101
+ // Prevent flash of content
101
102
  opacity: mounted.value && !loading.value ? 1 : 0
102
103
  })
103
104
  }, [
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./HomeView.vue2.js";
2
- import { default as default2 } from "./HomeView.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./AppHeader.vue2.js";
2
- import { default as default2 } from "./AppHeader.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./AppLogo.vue2.js";
2
- import { default as default2 } from "./AppLogo.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./InitialLoading.vue2.js";
2
- import { default as default2 } from "./InitialLoading.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./MobileOverlay.vue2.js";
2
- import { default as default2 } from "./MobileOverlay.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./BaseCheckbox.vue2.js";
2
- import { default as default2 } from "./BaseCheckbox.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  }
18
18
  },
19
19
  emits: {
20
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
20
21
  "update:modelValue": (newValue) => true
21
22
  },
22
23
  setup(__props, { emit }) {
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./BaseOverflowMenu.vue2.js";
2
- import { default as default2 } from "./BaseOverflowMenu.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./BaseSelect.vue2.js";
2
- import { default as default2 } from "./BaseSelect.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -41,6 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  }
42
42
  },
43
43
  emits: {
44
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
44
45
  "update:split": (value) => true
45
46
  },
46
47
  setup(__props, { emit }) {
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./ControlsComponentPropItem.vue2.js";
2
- import { default as default2 } from "./ControlsComponentPropItem.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./ControlsComponentProps.vue2.js";
2
- import { default as default2 } from "./ControlsComponentProps.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./PaneTabs.vue2.js";
2
- import { default as default2 } from "./PaneTabs.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StatePresets.vue2.js";
2
- import { default as default2 } from "./StatePresets.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryControls.vue2.js";
2
- import { default as default2 } from "./StoryControls.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./StoryDocs.vue2.js";
2
- import { default as default2, useStoryDoc } from "./StoryDocs.vue2.js";
2
+ import { useStoryDoc } from "./StoryDocs.vue2.js";
3
3
  "use strict";
4
4
  export {
5
- default2 as default,
5
+ _sfc_main as default,
6
6
  useStoryDoc
7
7
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryEvent.vue2.js";
2
- import { default as default2 } from "./StoryEvent.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryEvents.vue2.js";
2
- import { default as default2 } from "./StoryEvents.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StorySidePanel.vue2.js";
2
- import { default as default2 } from "./StorySidePanel.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./SearchLoading.vue2.js";
2
- import { default as default2 } from "./SearchLoading.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./SearchModal.vue2.js";
2
- import { default as default2 } from "./SearchModal.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./SearchPane.vue2.js";
2
- import { default as default2 } from "./SearchPane.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./GenericMountStory.vue2.js";
2
- import { default as default2 } from "./GenericMountStory.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./GenericRenderStory.vue2.js";
2
- import { default as default2 } from "./GenericRenderStory.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryVariantGrid.vue2.js";
2
- import { default as default2 } from "./StoryVariantGrid.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -34,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  }
35
35
  },
36
36
  emits: {
37
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
37
38
  resize: (width, height) => true
38
39
  },
39
40
  setup(__props, { emit }) {
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryVariantSinglePreviewNative.vue2.js";
2
- import { default as default2 } from "./StoryVariantSinglePreviewNative.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryVariantSinglePreviewRemote.vue2.js";
2
- import { default as default2 } from "./StoryVariantSinglePreviewRemote.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryVariantSingleView.vue2.js";
2
- import { default as default2 } from "./StoryVariantSingleView.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryView.vue2.js";
2
- import { default as default2 } from "./StoryView.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./ToolbarNewTab.vue2.js";
2
- import { default as default2 } from "./ToolbarNewTab.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./ToolbarResponsiveSize.vue2.js";
2
- import { default as default2 } from "./ToolbarResponsiveSize.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./ToolbarTextDirection.vue2.js";
2
- import { default as default2 } from "./ToolbarTextDirection.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./ToolbarTitle.vue2.js";
2
- import { default as default2 } from "./ToolbarTitle.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryGroup.vue2.js";
2
- import { default as default2 } from "./StoryGroup.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import _sfc_main from "./StoryList.vue2.js";
2
- import { default as default2 } from "./StoryList.vue2.js";
3
2
  "use strict";
4
3
  export {
5
- default2 as default
4
+ _sfc_main as default
6
5
  };
@@ -36,14 +36,14 @@
36
36
  bottom: -.625rem;
37
37
  }
38
38
 
39
- .bind-icon-color[data-v-6046525f] {
40
- color: var(--663732b6);
41
- }
42
-
43
39
  .bind-icon-color[data-v-36846ccf] {
44
40
  color: var(--5792748b);
45
41
  }
46
42
 
43
+ .bind-icon-color[data-v-6046525f] {
44
+ color: var(--663732b6);
45
+ }
46
+
47
47
  .bind-tree-margin[data-v-19810958] {
48
48
  margin-left: var(--444efc12);
49
49
  }
@@ -55,19 +55,23 @@
55
55
  padding-left: var(--6851b0a7);
56
56
  }
57
57
 
58
+ .bind-icon-color[data-v-ab890d9c] {
59
+ color: var(--89126aaa);
60
+ }
61
+
58
62
  .__histoire-code-placeholder[data-v-f528bb1b] {
59
63
  color: inherit;
60
64
  font-size: inherit;
61
65
  }
62
66
 
63
- .bind-icon-color[data-v-ab890d9c] {
64
- color: var(--89126aaa);
65
- }
66
-
67
67
  .bind-icon-color[data-v-ddfc5b4f] {
68
68
  color: var(--4d25d048);
69
69
  }
70
70
 
71
+ .bind-icon-color[data-v-d95fcb03] {
72
+ color: var(--beebbd52);
73
+ }
74
+
71
75
  .bind-preview-bg[data-v-c48fb2b2] {
72
76
  background-color: var(--627bec82);
73
77
  color: var(--35068428);
@@ -80,10 +84,6 @@
80
84
  background-color: var(--f4b27ac2);
81
85
  }
82
86
 
83
- .bind-icon-color[data-v-d95fcb03] {
84
- color: var(--beebbd52);
85
- }
86
-
87
87
  .bind-preview-bg[data-v-a83b1911] {
88
88
  background-color: var(--03d1950e);
89
89
  }
@@ -6,6 +6,7 @@ async function logEvent(name, argument) {
6
6
  const event = {
7
7
  name,
8
8
  argument: JSON.parse(stringifyEvent(argument))
9
+ // Needed for HTMLEvent that can't be cloned
9
10
  };
10
11
  if (location.href.includes("__sandbox")) {
11
12
  (_a = window.parent) == null ? void 0 : _a.postMessage({
package/dist/style.css CHANGED
@@ -567,6 +567,11 @@ body {
567
567
  max-width:65ch;
568
568
  }
569
569
 
570
+ .htw-prose :where(p):not(:where([class~="htw-not-prose"] *)){
571
+ margin-top:1.25em;
572
+ margin-bottom:1.25em
573
+ }
574
+
570
575
  .htw-prose :where([class~="lead"]):not(:where([class~="htw-not-prose"] *)){
571
576
  color:var(--tw-prose-lead);
572
577
  font-size:1.25em;
@@ -946,11 +951,6 @@ body {
946
951
  line-height:1.75
947
952
  }
948
953
 
949
- .htw-prose :where(p):not(:where([class~="htw-not-prose"] *)){
950
- margin-top:1.25em;
951
- margin-bottom:1.25em
952
- }
953
-
954
954
  .htw-prose :where(video):not(:where([class~="htw-not-prose"] *)){
955
955
  margin-top:2em;
956
956
  margin-bottom:2em
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/app",
3
- "version": "0.12.4",
3
+ "version": "0.13.1",
4
4
  "description": "Pre-bundled UI for Histoire",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "types": "./src/index.ts",
26
26
  "dependencies": {
27
- "@histoire/controls": "^0.12.4",
28
- "@histoire/shared": "^0.12.4",
29
- "@histoire/vendors": "^0.12.4",
27
+ "@histoire/controls": "^0.13.1",
28
+ "@histoire/shared": "^0.13.1",
29
+ "@histoire/vendors": "^0.13.1",
30
30
  "@types/flexsearch": "^0.7.3",
31
31
  "flexsearch": "0.7.21",
32
- "shiki-es": "^0.1.2"
32
+ "shiki-es": "^0.2.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@tailwindcss/typography": "^0.5.2",
@@ -45,9 +45,9 @@
45
45
  "postcss": "^8.4.12",
46
46
  "postcss-import": "^14.1.0",
47
47
  "tailwindcss": "^3.0.23",
48
- "typescript": "^4.7.4",
49
- "vite": "^4.0.0",
50
- "vue": "^3.2.31"
48
+ "typescript": "^4.9.5",
49
+ "vite": "^4.1.0",
50
+ "vue": "^3.2.47"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "rimraf dist && vite build && pnpm run build:css && node ./scripts/copy.mjs",