@sit-onyx/storybook-utils 1.0.0-beta.3 → 1.0.0-beta.5
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 -7
- package/src/actions.ts +1 -1
- package/src/preview.ts +4 -5
- package/src/source-code-generator.ts +1 -1
- package/src/theme.ts +1 -2
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-beta.
|
|
4
|
+
"version": "1.0.0-beta.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Schwarz IT KG",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -23,14 +23,11 @@
|
|
|
23
23
|
"url": "https://github.com/SchwarzIT/onyx/issues"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@storybook/
|
|
27
|
-
"
|
|
28
|
-
"@storybook/preview-api": ">= 8.0.0",
|
|
29
|
-
"@storybook/theming": ">= 8.0.0",
|
|
30
|
-
"@storybook/vue3": ">= 8.0.0",
|
|
26
|
+
"@storybook/vue3": ">= 8.2.0",
|
|
27
|
+
"storybook": ">= 8.2.0",
|
|
31
28
|
"storybook-dark-mode": ">= 4",
|
|
32
29
|
"@sit-onyx/icons": "^1.0.0-beta.0",
|
|
33
|
-
"sit-onyx": "^1.0.0-beta.
|
|
30
|
+
"sit-onyx": "^1.0.0-beta.4"
|
|
34
31
|
},
|
|
35
32
|
"dependencies": {
|
|
36
33
|
"deepmerge-ts": "^7.0.3"
|
package/src/actions.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useArgs } from "@storybook/preview-api";
|
|
2
1
|
import type { ArgTypes, Decorator, Meta } from "@storybook/vue3";
|
|
3
2
|
import { deepmerge } from "deepmerge-ts";
|
|
3
|
+
import { useArgs } from "storybook/internal/preview-api";
|
|
4
4
|
import { isReactive, reactive, watch } from "vue";
|
|
5
5
|
import type { DefineStorybookActionsAndVModelsOptions, ExtractVueEventNames } from ".";
|
|
6
6
|
|
package/src/preview.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { addons } from "@storybook/preview-api";
|
|
3
|
-
import { type ThemeVars } from "@storybook/theming";
|
|
1
|
+
import { getIconImportName } from "@sit-onyx/icons";
|
|
4
2
|
import { type Preview, type StoryContext } from "@storybook/vue3";
|
|
5
3
|
import { deepmerge } from "deepmerge-ts";
|
|
6
4
|
import { DARK_MODE_EVENT_NAME } from "storybook-dark-mode";
|
|
7
|
-
|
|
8
|
-
import {
|
|
5
|
+
import { DOCS_RENDERED } from "storybook/internal/core-events";
|
|
6
|
+
import { addons } from "storybook/internal/preview-api";
|
|
7
|
+
import type { ThemeVars } from "storybook/internal/theming";
|
|
9
8
|
import { requiredGlobalType, withRequired } from "./required";
|
|
10
9
|
import { generateSourceCode } from "./source-code-generator";
|
|
11
10
|
import { ONYX_BREAKPOINTS, createTheme } from "./theme";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// It is intended to be deleted once its officially released in Storybook itself, see:
|
|
4
4
|
// https://github.com/storybookjs/storybook/pull/27194
|
|
5
5
|
//
|
|
6
|
-
import { SourceType } from "@storybook/docs-tools";
|
|
7
6
|
import type { Args, StoryContext } from "@storybook/vue3";
|
|
7
|
+
import { SourceType } from "storybook/internal/docs-tools";
|
|
8
8
|
import { isVNode, type VNode } from "vue";
|
|
9
9
|
import { replaceAll } from "./preview";
|
|
10
10
|
|
package/src/theme.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { ThemeVars, ThemeVarsPartial } from "@storybook/theming";
|
|
2
|
-
import { create } from "@storybook/theming/create";
|
|
3
1
|
import onyxVariables from "sit-onyx/themes/onyx.json";
|
|
4
2
|
import { ONYX_BREAKPOINTS as RAW_ONYX_BREAKPOINTS, type OnyxBreakpoint } from "sit-onyx/types";
|
|
3
|
+
import { create, type ThemeVars, type ThemeVarsPartial } from "storybook/internal/theming";
|
|
5
4
|
import onyxLogo from "./assets/logo-onyx.svg";
|
|
6
5
|
|
|
7
6
|
/**
|