@sit-onyx/storybook-utils 1.0.0-alpha.16 → 1.0.0-alpha.18

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/README.md CHANGED
@@ -11,3 +11,9 @@
11
11
  # onyx Storybook utils
12
12
 
13
13
  Storybook utilities for Vue created by [Schwarz IT](https://it.schwarz).
14
+
15
+ <br />
16
+
17
+ ## Documentation
18
+
19
+ You can find our documentation [here](https://onyx.schwarz/development/packages/storybook-utils.html).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sit-onyx/storybook-utils",
3
3
  "description": "Storybook utilities for Vue",
4
- "version": "1.0.0-alpha.16",
4
+ "version": "1.0.0-alpha.18",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
7
7
  "license": "Apache-2.0",
@@ -13,13 +13,22 @@
13
13
  ".": "./src/index.ts",
14
14
  "./style.css": "./src/index.css"
15
15
  },
16
+ "homepage": "https://onyx.schwarz/development/packages/storybook-utils.html",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/SchwarzIT/onyx",
20
+ "directory": "packages/storybook-utils"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/SchwarzIT/onyx/issues"
24
+ },
16
25
  "peerDependencies": {
17
- "@storybook/core-events": ">= 7",
18
- "@storybook/preview-api": ">= 7",
19
- "@storybook/theming": ">= 7",
20
- "@storybook/vue3": ">= 7",
26
+ "@storybook/core-events": ">= 8.0.0-beta.3",
27
+ "@storybook/preview-api": ">= 8.0.0-beta.3",
28
+ "@storybook/theming": ">= 8.0.0-beta.3",
29
+ "@storybook/vue3": ">= 8.0.0-beta.3",
21
30
  "storybook-dark-mode": ">= 3",
22
- "sit-onyx": "^1.0.0-alpha.15"
31
+ "sit-onyx": "^1.0.0-alpha.17"
23
32
  },
24
33
  "dependencies": {
25
34
  "deepmerge-ts": "^5.1.0"
package/src/preview.ts CHANGED
@@ -3,7 +3,7 @@ import { addons } from "@storybook/preview-api";
3
3
  import { type ThemeVars } from "@storybook/theming";
4
4
  import { type Preview } from "@storybook/vue3";
5
5
  import { deepmerge } from "deepmerge-ts";
6
- import { DARK_MODE_EVENT_NAME } from "storybook-dark-mode";
6
+
7
7
  import { ONYX_BREAKPOINTS, createTheme } from "./theme";
8
8
 
9
9
  const themes = {
@@ -113,6 +113,11 @@ export const createPreview = <T extends Preview = Preview>(overrides?: T) => {
113
113
 
114
114
  const channel = addons.getChannel();
115
115
 
116
+ // TODO: import from storybook-dark-mode instead
117
+ // but this is currently leading to Storybook build errors with Storybook 8
118
+ // import { DARK_MODE_EVENT_NAME } from "storybook-dark-mode";
119
+ const DARK_MODE_EVENT_NAME = "DARK_MODE";
120
+
116
121
  // our "workaround" above for dynamically setting the docs theme needs a page-reload after
117
122
  // the theme has changed to take effect:
118
123
  channel.once(DOCS_RENDERED, () => {