@cappa/plugin-storybook 0.2.3 → 0.2.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/CHANGELOG.md +15 -0
- package/dist/index.js +0 -5
- package/dist/index.mjs +0 -5
- package/package.json +2 -2
- package/src/cappa/plugin.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @cappa/plugin-storybook
|
|
2
2
|
|
|
3
|
+
## 0.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [faa5c05]
|
|
8
|
+
- @cappa/core@0.2.5
|
|
9
|
+
|
|
10
|
+
## 0.2.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 6afa8eb: fix: less redundant logs
|
|
15
|
+
- Updated dependencies [6afa8eb]
|
|
16
|
+
- @cappa/core@0.2.4
|
|
17
|
+
|
|
3
18
|
## 0.2.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -345,11 +345,6 @@ var cappaPluginStorybook = (options) => {
|
|
|
345
345
|
const variantFilename = variant.filename;
|
|
346
346
|
if (!variantFilename) continue;
|
|
347
347
|
variantFilenameMap.set(variant.id, variantFilename);
|
|
348
|
-
if (!screenshotTool.filesystem.hasExpectedFile(variantFilename)) {
|
|
349
|
-
logger.info(
|
|
350
|
-
`Expected image not found for variant ${story.title} - ${story.name} [${variant.label ?? variant.id}], taking screenshot`
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
348
|
}
|
|
354
349
|
const variantExtrasEntries = variantsWithUrls.map(
|
|
355
350
|
(variant) => [
|
package/dist/index.mjs
CHANGED
|
@@ -315,11 +315,6 @@ var cappaPluginStorybook = (options) => {
|
|
|
315
315
|
const variantFilename = variant.filename;
|
|
316
316
|
if (!variantFilename) continue;
|
|
317
317
|
variantFilenameMap.set(variant.id, variantFilename);
|
|
318
|
-
if (!screenshotTool.filesystem.hasExpectedFile(variantFilename)) {
|
|
319
|
-
logger.info(
|
|
320
|
-
`Expected image not found for variant ${story.title} - ${story.name} [${variant.label ?? variant.id}], taking screenshot`
|
|
321
|
-
);
|
|
322
|
-
}
|
|
323
318
|
}
|
|
324
319
|
const variantExtrasEntries = variantsWithUrls.map(
|
|
325
320
|
(variant) => [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cappa/plugin-storybook",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Storybook plugin for Cappa - takes screenshots of Storybook stories",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@swc/core": "^1.13.5",
|
|
32
32
|
"chalk": "^5.6.2",
|
|
33
33
|
"storybook": "^9.1.12",
|
|
34
|
-
"@cappa/core": "0.2.
|
|
34
|
+
"@cappa/core": "0.2.5",
|
|
35
35
|
"@cappa/logger": "0.0.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/src/cappa/plugin.ts
CHANGED
|
@@ -320,12 +320,6 @@ export const cappaPluginStorybook: Plugin<StorybookPluginOptions> = (
|
|
|
320
320
|
if (!variantFilename) continue; // Skip if no filename
|
|
321
321
|
|
|
322
322
|
variantFilenameMap.set(variant.id, variantFilename);
|
|
323
|
-
|
|
324
|
-
if (!screenshotTool.filesystem.hasExpectedFile(variantFilename)) {
|
|
325
|
-
logger.info(
|
|
326
|
-
`Expected image not found for variant ${story.title} - ${story.name} [${variant.label ?? variant.id}], taking screenshot`,
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
323
|
}
|
|
330
324
|
|
|
331
325
|
const variantExtrasEntries = variantsWithUrls.map(
|