@cappa/plugin-storybook 0.8.10 → 0.8.11
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/dist/index.cjs.cjs +1 -1
- package/dist/index.cjs.d.cts +0 -1
- package/dist/index.esm.d.mts +0 -1
- package/dist/index.esm.mjs +1 -1
- package/package.json +11 -11
package/dist/index.cjs.cjs
CHANGED
|
@@ -97,7 +97,7 @@ const waitForVisualIdle = async (page) => {
|
|
|
97
97
|
* @returns The filename for the story. Slashes represent folders that should be handled by seperate file system calls.
|
|
98
98
|
*/
|
|
99
99
|
const buildFilename = (story) => {
|
|
100
|
-
return `${story.title.replace(/[^a-zA-Z0-9/]/g, "")}/${story.name.replace(/[^a-zA-Z0-9]/g, "")}.png`;
|
|
100
|
+
return `${story.title.replace(/[^a-zA-Z0-9/]/g, "").toLowerCase()}/${story.name.replace(/[^a-zA-Z0-9]/g, "").toLowerCase()}.png`;
|
|
101
101
|
};
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/cappa/plugin.ts
|
package/dist/index.cjs.d.cts
CHANGED
package/dist/index.esm.d.mts
CHANGED
package/dist/index.esm.mjs
CHANGED
|
@@ -97,7 +97,7 @@ const waitForVisualIdle = async (page) => {
|
|
|
97
97
|
* @returns The filename for the story. Slashes represent folders that should be handled by seperate file system calls.
|
|
98
98
|
*/
|
|
99
99
|
const buildFilename = (story) => {
|
|
100
|
-
return `${story.title.replace(/[^a-zA-Z0-9/]/g, "")}/${story.name.replace(/[^a-zA-Z0-9]/g, "")}.png`;
|
|
100
|
+
return `${story.title.replace(/[^a-zA-Z0-9/]/g, "").toLowerCase()}/${story.name.replace(/[^a-zA-Z0-9]/g, "").toLowerCase()}.png`;
|
|
101
101
|
};
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/cappa/plugin.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cappa/plugin-storybook",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.11",
|
|
4
4
|
"description": "Storybook plugin for Cappa - takes screenshots of Storybook stories",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@swc/core": "^1.15.
|
|
64
|
+
"@swc/core": "^1.15.43",
|
|
65
65
|
"chalk": "^5.6.2",
|
|
66
|
-
"@cappa/
|
|
67
|
-
"@cappa/
|
|
66
|
+
"@cappa/core": "0.12.3",
|
|
67
|
+
"@cappa/logger": "0.0.11"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@arethetypeswrong/cli": "0.18.
|
|
70
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
71
71
|
"@types/node": "25.9.3",
|
|
72
|
-
"@vitest/coverage-v8": "4.1.
|
|
73
|
-
"@vitest/ui": "4.1.
|
|
74
|
-
"playwright-core": "^1.61.
|
|
75
|
-
"storybook": "^10.
|
|
76
|
-
"tsdown": "0.22.
|
|
72
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
73
|
+
"@vitest/ui": "4.1.10",
|
|
74
|
+
"playwright-core": "^1.61.1",
|
|
75
|
+
"storybook": "^10.5.0",
|
|
76
|
+
"tsdown": "0.22.8",
|
|
77
77
|
"typescript": "6.0.3",
|
|
78
|
-
"vitest": "4.1.
|
|
78
|
+
"vitest": "4.1.10"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest",
|