@sit-onyx/storybook-utils 1.1.2 → 1.1.3-dev-20260423123216
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 +7 -7
- package/src/preview.ts +1 -0
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.1.
|
|
4
|
+
"version": "1.1.3-dev-20260423123216",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Schwarz IT KG",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"prettier": ">= 3.0.0",
|
|
32
32
|
"storybook": ">= 9.0.0",
|
|
33
33
|
"vue-component-type-helpers": ">= 2",
|
|
34
|
-
"@sit-onyx/flags": "^1.
|
|
35
|
-
"@sit-onyx/icons": "^1.
|
|
34
|
+
"@sit-onyx/flags": "^1.2.0",
|
|
35
|
+
"@sit-onyx/icons": "^1.9.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"deepmerge-ts": "^7.1.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"storybook": "^10.
|
|
42
|
-
"vue": "3.5.
|
|
43
|
-
"vue-component-type-helpers": "^3.2.
|
|
44
|
-
"@sit-onyx/icons": "^1.
|
|
41
|
+
"storybook": "^10.3.5",
|
|
42
|
+
"vue": "3.5.32",
|
|
43
|
+
"vue-component-type-helpers": "^3.2.6",
|
|
44
|
+
"@sit-onyx/icons": "^1.9.0",
|
|
45
45
|
"@sit-onyx/shared": "^0.1.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
package/src/preview.ts
CHANGED
|
@@ -161,6 +161,7 @@ export const sourceCodeTransformer = async (originalSourceCode: string): Promise
|
|
|
161
161
|
|
|
162
162
|
packagesToReplace.forEach((_package) => {
|
|
163
163
|
Object.entries(_package.data).forEach(([name, content]) => {
|
|
164
|
+
if (typeof content !== "string") return;
|
|
164
165
|
const singleQuotedContent = `'${replaceAll(content, '"', "\\'")}'`;
|
|
165
166
|
const escapedContent = `"${replaceAll(content, '"', '\\"')}"`;
|
|
166
167
|
|