@cappa/plugin-storybook 0.2.3 → 0.2.4

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @cappa/plugin-storybook
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 6afa8eb: fix: less redundant logs
8
+ - Updated dependencies [6afa8eb]
9
+ - @cappa/core@0.2.4
10
+
3
11
  ## 0.2.3
4
12
 
5
13
  ### 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",
3
+ "version": "0.2.4",
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.3",
34
+ "@cappa/core": "0.2.4",
35
35
  "@cappa/logger": "0.0.4"
36
36
  },
37
37
  "devDependencies": {
@@ -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(