@cappa/plugin-storybook 0.4.2 → 0.4.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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks if the current window is a cappa window
3
+ */
4
+ declare const isCappa: () => boolean;
5
+
6
+ export { isCappa };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks if the current window is a cappa window
3
+ */
4
+ declare const isCappa: () => boolean;
5
+
6
+ export { isCappa };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cappa/plugin-storybook",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "Storybook plugin for Cappa - takes screenshots of Storybook stories",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,6 +9,9 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/tim-richter/cappa.git"
11
11
  },
12
+ "files": [
13
+ "dist"
14
+ ],
12
15
  "license": "MIT",
13
16
  "author": "Tim Richter",
14
17
  "type": "module",
@@ -53,22 +56,22 @@
53
56
  }
54
57
  },
55
58
  "dependencies": {
56
- "@swc/core": "^1.14.0",
59
+ "@swc/core": "^1.15.3",
57
60
  "chalk": "^5.6.2",
58
61
  "minimatch": "^10.1.1",
59
- "@cappa/core": "0.4.2",
60
- "@cappa/logger": "0.0.7"
62
+ "@cappa/core": "0.4.4",
63
+ "@cappa/logger": "0.0.8"
61
64
  },
62
65
  "devDependencies": {
63
- "@types/node": "24.9.2",
64
- "@vitest/coverage-v8": "4.0.6",
65
- "@vitest/ui": "4.0.6",
66
- "playwright-core": "^1.56.1",
67
- "tsup": "8.5.0",
66
+ "@arethetypeswrong/cli": "0.18.2",
67
+ "@types/node": "24.10.1",
68
+ "@vitest/coverage-v8": "4.0.15",
69
+ "@vitest/ui": "4.0.15",
70
+ "playwright-core": "^1.57.0",
71
+ "storybook": "^10.1.4",
72
+ "tsup": "8.5.1",
68
73
  "typescript": "5.9.3",
69
- "vitest": "4.0.6",
70
- "storybook": "^10.0.2",
71
- "@arethetypeswrong/cli": "0.18.2"
74
+ "vitest": "4.0.15"
72
75
  },
73
76
  "scripts": {
74
77
  "test": "vitest",
@@ -1,53 +0,0 @@
1
-
2
- > @cappa/plugin-storybook@0.4.2 build /home/runner/work/cappa/cappa/packages/plugins/plugin-storybook
3
- > tsup
4
-
5
- CLI Building entry: {"index":"src/index.esm.ts"}
6
- CLI Using tsconfig: tsconfig.json
7
- CLI Building entry: {"index":"src/index.cjs.ts"}
8
- CLI Using tsconfig: tsconfig.json
9
- CLI tsup v8.5.0
10
- CLI Using tsup config: /home/runner/work/cappa/cappa/packages/plugins/plugin-storybook/tsup.config.ts
11
- CLI tsup v8.5.0
12
- CLI Using tsup config: /home/runner/work/cappa/cappa/packages/plugins/plugin-storybook/tsup.config.ts
13
- CLI Building entry: src/storybook/addon/preview.ts
14
- CLI Using tsconfig: tsconfig.json
15
- CLI tsup v8.5.0
16
- CLI Using tsup config: /home/runner/work/cappa/cappa/packages/plugins/plugin-storybook/tsup.config.ts
17
- CLI Building entry: src/storybook/addon/browser.ts
18
- CLI Using tsconfig: tsconfig.json
19
- CLI tsup v8.5.0
20
- CLI Using tsup config: /home/runner/work/cappa/cappa/packages/plugins/plugin-storybook/tsup.config.ts
21
- CLI Target: esnext
22
- CLI Target: esnext
23
- CLI Target: node16
24
- CLI Target: es2015
25
- CLI Cleaning output folder
26
- ESM Build start
27
- CLI Cleaning output folder
28
- CJS Build start
29
- CLI Cleaning output folder
30
- ESM Build start
31
- CLI Cleaning output folder
32
- ESM Build start
33
- CJS Build start
34
- CJS dist/browser.cjs 1.12 KB
35
- CJS ⚡️ Build success in 53ms
36
- ESM dist/browser.js 138.00 B
37
- ESM ⚡️ Build success in 53ms
38
- ESM dist/preview.js 1.58 KB
39
- ESM ⚡️ Build success in 60ms
40
- CJS dist/index.cjs 14.08 KB
41
- CJS ⚡️ Build success in 70ms
42
- ESM dist/index.js 12.35 KB
43
- ESM ⚡️ Build success in 76ms
44
- DTS Build start
45
- DTS Build start
46
- DTS Build start
47
- DTS ⚡️ Build success in 4139ms
48
- DTS dist/browser.d.ts 117.00 B
49
- DTS dist/browser.d.cts 117.00 B
50
- DTS ⚡️ Build success in 5475ms
51
- DTS dist/index.cjs.d.cts 2.66 KB
52
- DTS ⚡️ Build success in 5454ms
53
- DTS dist/index.esm.d.ts 2.66 KB
package/CHANGELOG.md DELETED
@@ -1,361 +0,0 @@
1
- # @cappa/plugin-storybook
2
-
3
- ## 0.4.2
4
-
5
- ### Patch Changes
6
-
7
- - 1fad7cc: fix: deleted screenshot handling in approve command
8
- - Updated dependencies [1fad7cc]
9
- - @cappa/logger@0.0.7
10
- - @cappa/core@0.4.2
11
-
12
- ## 0.4.1
13
-
14
- ### Patch Changes
15
-
16
- - 298486b: fix: package export types
17
- - Updated dependencies [298486b]
18
- - @cappa/logger@0.0.6
19
- - @cappa/core@0.4.1
20
-
21
- ## 0.4.0
22
-
23
- ### Minor Changes
24
-
25
- - 915be10: Add a `logConsoleEvents` base configuration option that controls whether Playwright console
26
- messages are logged during captures, and have the Storybook plugin respect the global setting.
27
-
28
- ### Patch Changes
29
-
30
- - Updated dependencies [915be10]
31
- - Updated dependencies [1e8f301]
32
- - @cappa/core@0.4.0
33
- - @cappa/logger@0.0.5
34
-
35
- ## 0.3.3
36
-
37
- ### Patch Changes
38
-
39
- - Updated dependencies [772d0f6]
40
- - @cappa/core@0.3.1
41
-
42
- ## 0.3.2
43
-
44
- ### Patch Changes
45
-
46
- - c2614bc: fix: only run storybook exposed code when in cappa
47
-
48
- ## 0.3.1
49
-
50
- ### Patch Changes
51
-
52
- - fd97a08: fix: emitted types
53
-
54
- ## 0.3.0
55
-
56
- ### Minor Changes
57
-
58
- - 78c4e4c: feat: support storybook 10
59
-
60
- ## 0.2.6
61
-
62
- ### Patch Changes
63
-
64
- - 80b44af: feat: add glob pattern for storybook include/exclude options
65
- - Updated dependencies [e0f7f08]
66
- - @cappa/core@0.3.0
67
-
68
- ## 0.2.5
69
-
70
- ### Patch Changes
71
-
72
- - Updated dependencies [faa5c05]
73
- - @cappa/core@0.2.5
74
-
75
- ## 0.2.4
76
-
77
- ### Patch Changes
78
-
79
- - 6afa8eb: fix: less redundant logs
80
- - Updated dependencies [6afa8eb]
81
- - @cappa/core@0.2.4
82
-
83
- ## 0.2.3
84
-
85
- ### Patch Changes
86
-
87
- - Updated dependencies [4068bca]
88
- - @cappa/core@0.2.3
89
-
90
- ## 0.2.2
91
-
92
- ### Patch Changes
93
-
94
- - 6526418: fix: actual screenshot error
95
- - Updated dependencies [6526418]
96
- - @cappa/core@0.2.2
97
-
98
- ## 0.2.1
99
-
100
- ### Patch Changes
101
-
102
- - 526857a: feat: add variant and play function support
103
- - Updated dependencies [526857a]
104
- - @cappa/core@0.2.1
105
- - @cappa/logger@0.0.4
106
-
107
- ## 0.2.0
108
-
109
- ### Minor Changes
110
-
111
- - 5b1f66f: Add support for capturing screenshot variants and configure Storybook stories to request multiple viewport screenshots.
112
- - 4cd0ee2: Allow configuring Storybook args and globals for captured screenshots.
113
-
114
- ### Patch Changes
115
-
116
- - a1d91c6: feat: add viewport options
117
- - Updated dependencies [5b1f66f]
118
- - Updated dependencies [87c8ab9]
119
- - Updated dependencies [a1d91c6]
120
- - Updated dependencies [88b3648]
121
- - @cappa/core@0.2.0
122
-
123
- ## 0.1.3
124
-
125
- ### Patch Changes
126
-
127
- - f6456fb: feat: add retry functionality
128
- - Updated dependencies [f6456fb]
129
- - @cappa/core@0.1.3
130
- - @cappa/logger@0.0.3
131
-
132
- ## 0.1.2
133
-
134
- ### Patch Changes
135
-
136
- - a772b76: Add better logging + cleanup
137
- - Updated dependencies [a772b76]
138
- - @cappa/core@0.1.2
139
- - @cappa/logger@0.0.2
140
-
141
- ## 0.1.1
142
-
143
- ### Patch Changes
144
-
145
- - d640855: Fix server public folder publish
146
- - Updated dependencies [d640855]
147
- - @cappa/core@0.1.1
148
-
149
- ## 0.1.0
150
-
151
- ### Minor Changes
152
-
153
- - 78c1423: Add review functionality
154
-
155
- ### Patch Changes
156
-
157
- - Updated dependencies [78c1423]
158
- - @cappa/core@0.1.0
159
-
160
- ## 0.0.27
161
-
162
- ### Patch Changes
163
-
164
- - Updated dependencies [8c17aac]
165
- - @cappa/core@0.0.27
166
-
167
- ## 0.0.26
168
-
169
- ### Patch Changes
170
-
171
- - Updated dependencies [f232833]
172
- - @cappa/core@0.0.26
173
-
174
- ## 0.0.25
175
-
176
- ### Patch Changes
177
-
178
- - e949088: Improve ui freezing styles
179
- - Updated dependencies [e949088]
180
- - @cappa/core@0.0.25
181
-
182
- ## 0.0.24
183
-
184
- ### Patch Changes
185
-
186
- - 4e109c5: Fix browsers path discovery
187
- - Updated dependencies [4e109c5]
188
- - @cappa/core@0.0.24
189
-
190
- ## 0.0.23
191
-
192
- ### Patch Changes
193
-
194
- - df7a7ec: Add more screenshot options
195
- - Updated dependencies [df7a7ec]
196
- - @cappa/core@0.0.23
197
-
198
- ## 0.0.22
199
-
200
- ### Patch Changes
201
-
202
- - 27a570a: Always use png screenshots
203
- - Updated dependencies [27a570a]
204
- - @cappa/core@0.0.22
205
-
206
- ## 0.0.21
207
-
208
- ### Patch Changes
209
-
210
- - e01e7c5: Add better report output
211
- - Updated dependencies [e01e7c5]
212
- - @cappa/core@0.0.21
213
-
214
- ## 0.0.20
215
-
216
- ### Patch Changes
217
-
218
- - eb34ecb: Add clean option to cli
219
- - Updated dependencies [eb34ecb]
220
- - @cappa/core@0.0.20
221
-
222
- ## 0.0.19
223
-
224
- ### Patch Changes
225
-
226
- - 63cf442: Use logging in storybook plugin
227
- - Updated dependencies [63cf442]
228
- - @cappa/core@0.0.19
229
-
230
- ## 0.0.18
231
-
232
- ### Patch Changes
233
-
234
- - 3a8b89e: Fix skipped stories and report
235
- - Updated dependencies [3a8b89e]
236
- - @cappa/core@0.0.18
237
-
238
- ## 0.0.17
239
-
240
- ### Patch Changes
241
-
242
- - 6d7176e: Fix error reporting
243
- - Updated dependencies [6d7176e]
244
- - @cappa/core@0.0.17
245
-
246
- ## 0.0.16
247
-
248
- ### Patch Changes
249
-
250
- - 92d164e: Fix directory creation
251
- - Updated dependencies [92d164e]
252
- - @cappa/core@0.0.16
253
-
254
- ## 0.0.15
255
-
256
- ### Patch Changes
257
-
258
- - a41a91e: Add fullPage option
259
- - Updated dependencies [a41a91e]
260
- - @cappa/core@0.0.15
261
-
262
- ## 0.0.14
263
-
264
- ### Patch Changes
265
-
266
- - b8af138: Screenshot Creation folders
267
- - Updated dependencies [b8af138]
268
- - @cappa/core@0.0.14
269
-
270
- ## 0.0.13
271
-
272
- ### Patch Changes
273
-
274
- - c538974: Replace playwright with playwright-core
275
- - Updated dependencies [c538974]
276
- - @cappa/core@0.0.13
277
-
278
- ## 0.0.12
279
-
280
- ### Patch Changes
281
-
282
- - 4e529fd: New options
283
- - Updated dependencies [4e529fd]
284
- - @cappa/core@0.0.12
285
-
286
- ## 0.0.11
287
-
288
- ### Patch Changes
289
-
290
- - Updated dependencies [990246d]
291
- - @cappa/core@0.0.11
292
-
293
- ## 0.0.10
294
-
295
- ### Patch Changes
296
-
297
- - c8f7bd8: Fix concurrency
298
- - Updated dependencies [c8f7bd8]
299
- - @cappa/core@0.0.10
300
-
301
- ## 0.0.9
302
-
303
- ### Patch Changes
304
-
305
- - 37f2587: Fix pages
306
- - Updated dependencies [37f2587]
307
- - @cappa/core@0.0.9
308
-
309
- ## 0.0.8
310
-
311
- ### Patch Changes
312
-
313
- - 76854a2: fix context
314
- - Updated dependencies [76854a2]
315
- - @cappa/core@0.0.8
316
-
317
- ## 0.0.7
318
-
319
- ### Patch Changes
320
-
321
- - 3c53e57: Reuse playwright pages
322
- - Updated dependencies [3c53e57]
323
- - @cappa/core@0.0.7
324
-
325
- ## 0.0.6
326
-
327
- ### Patch Changes
328
-
329
- - 2acecef: Add skip option
330
- - Updated dependencies [2acecef]
331
- - @cappa/core@0.0.6
332
-
333
- ## 0.0.5
334
-
335
- ### Patch Changes
336
-
337
- - a8a0d8f: Add delay option
338
- - Updated dependencies [a8a0d8f]
339
- - @cappa/core@0.0.5
340
-
341
- ## 0.0.4
342
-
343
- ### Patch Changes
344
-
345
- - Updated dependencies [148b9ca]
346
- - @cappa/core@0.0.4
347
-
348
- ## 0.0.3
349
-
350
- ### Patch Changes
351
-
352
- - Updated dependencies [bff1e95]
353
- - @cappa/core@0.0.3
354
-
355
- ## 0.0.2
356
-
357
- ### Patch Changes
358
-
359
- - b3d2806: Init
360
- - Updated dependencies [b3d2806]
361
- - @cappa/core@0.0.2