storybook 9.0.0-alpha.3 → 9.0.0-alpha.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/README.md +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/bin/index.cjs +63 -64
- package/dist/bin/index.js +63 -64
- package/dist/channels/index.cjs +207 -230
- package/dist/channels/index.js +302 -304
- package/dist/cli/bin/index.cjs +405 -405
- package/dist/cli/bin/index.js +410 -410
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +65 -67
- package/dist/common/index.d.ts +1 -4
- package/dist/common/index.js +65 -67
- package/dist/components/index.cjs +9413 -11578
- package/dist/components/index.d.ts +92 -92
- package/dist/components/index.js +6768 -7544
- package/dist/core-events/index.d.ts +138 -25
- package/dist/core-server/index.cjs +5241 -5265
- package/dist/core-server/index.js +5353 -5375
- package/dist/core-server/presets/common-manager.js +11 -19
- package/dist/core-server/presets/common-preset.cjs +243 -242
- package/dist/core-server/presets/common-preset.js +379 -378
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +2 -4
- package/dist/csf/index.js +69 -113
- package/dist/docs-tools/index.cjs +1 -1
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +1 -1
- package/dist/instrumenter/index.cjs +1260 -1289
- package/dist/instrumenter/index.js +1344 -1348
- package/dist/manager/globals-module-info.cjs +272 -135
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +257 -120
- package/dist/manager/globals-runtime.js +59553 -22371
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +129 -129
- package/dist/manager-api/index.cjs +1182 -1205
- package/dist/manager-api/index.d.ts +2 -2
- package/dist/manager-api/index.js +1010 -1008
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +43946 -6546
- package/dist/preview-api/index.cjs +1243 -1239
- package/dist/preview-api/index.d.ts +104 -60
- package/dist/preview-api/index.js +1310 -1270
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/test/index.cjs +10068 -10205
- package/dist/test/index.d.ts +4 -4
- package/dist/test/index.js +9741 -9623
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14441 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.d.ts +242 -242
- package/package.json +134 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.5",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -48,11 +48,21 @@
|
|
|
48
48
|
"import": "./dist/theming/index.js",
|
|
49
49
|
"require": "./dist/theming/index.cjs"
|
|
50
50
|
},
|
|
51
|
+
"./theming": {
|
|
52
|
+
"types": "./dist/theming/index.d.ts",
|
|
53
|
+
"import": "./dist/theming/index.js",
|
|
54
|
+
"require": "./dist/theming/index.cjs"
|
|
55
|
+
},
|
|
51
56
|
"./internal/theming/create": {
|
|
52
57
|
"types": "./dist/theming/create.d.ts",
|
|
53
58
|
"import": "./dist/theming/create.js",
|
|
54
59
|
"require": "./dist/theming/create.cjs"
|
|
55
60
|
},
|
|
61
|
+
"./theming/create": {
|
|
62
|
+
"types": "./dist/theming/create.d.ts",
|
|
63
|
+
"import": "./dist/theming/create.js",
|
|
64
|
+
"require": "./dist/theming/create.cjs"
|
|
65
|
+
},
|
|
56
66
|
"./internal/core-server": {
|
|
57
67
|
"types": "./dist/core-server/index.d.ts",
|
|
58
68
|
"import": "./dist/core-server/index.js",
|
|
@@ -69,6 +79,40 @@
|
|
|
69
79
|
"import": "./dist/core-server/presets/common-override-preset.js",
|
|
70
80
|
"require": "./dist/core-server/presets/common-override-preset.cjs"
|
|
71
81
|
},
|
|
82
|
+
"./internal/actions": {
|
|
83
|
+
"types": "./dist/actions/index.d.ts",
|
|
84
|
+
"import": "./dist/actions/index.js",
|
|
85
|
+
"require": "./dist/actions/index.cjs"
|
|
86
|
+
},
|
|
87
|
+
"./actions": {
|
|
88
|
+
"types": "./dist/actions/index.d.ts",
|
|
89
|
+
"import": "./dist/actions/index.js",
|
|
90
|
+
"require": "./dist/actions/index.cjs"
|
|
91
|
+
},
|
|
92
|
+
"./internal/actions/preview": {
|
|
93
|
+
"types": "./dist/actions/preview.d.ts",
|
|
94
|
+
"import": "./dist/actions/preview.js",
|
|
95
|
+
"require": "./dist/actions/preview.cjs"
|
|
96
|
+
},
|
|
97
|
+
"./actions/preview": {
|
|
98
|
+
"types": "./dist/actions/preview.d.ts",
|
|
99
|
+
"import": "./dist/actions/preview.js",
|
|
100
|
+
"require": "./dist/actions/preview.cjs"
|
|
101
|
+
},
|
|
102
|
+
"./internal/actions/manager": {
|
|
103
|
+
"import": "./dist/actions/manager.js"
|
|
104
|
+
},
|
|
105
|
+
"./actions/manager": {
|
|
106
|
+
"import": "./dist/actions/manager.js"
|
|
107
|
+
},
|
|
108
|
+
"./internal/actions/decorator": {
|
|
109
|
+
"types": "./dist/actions/decorator.d.ts",
|
|
110
|
+
"import": "./dist/actions/decorator.js"
|
|
111
|
+
},
|
|
112
|
+
"./actions/decorator": {
|
|
113
|
+
"types": "./dist/actions/decorator.d.ts",
|
|
114
|
+
"import": "./dist/actions/decorator.js"
|
|
115
|
+
},
|
|
72
116
|
"./internal/core-events": {
|
|
73
117
|
"types": "./dist/core-events/index.d.ts",
|
|
74
118
|
"import": "./dist/core-events/index.js",
|
|
@@ -128,11 +172,21 @@
|
|
|
128
172
|
"import": "./dist/preview-api/index.js",
|
|
129
173
|
"require": "./dist/preview-api/index.cjs"
|
|
130
174
|
},
|
|
175
|
+
"./preview-api": {
|
|
176
|
+
"types": "./dist/preview-api/index.d.ts",
|
|
177
|
+
"import": "./dist/preview-api/index.js",
|
|
178
|
+
"require": "./dist/preview-api/index.cjs"
|
|
179
|
+
},
|
|
131
180
|
"./internal/manager-api": {
|
|
132
181
|
"types": "./dist/manager-api/index.d.ts",
|
|
133
182
|
"import": "./dist/manager-api/index.js",
|
|
134
183
|
"require": "./dist/manager-api/index.cjs"
|
|
135
184
|
},
|
|
185
|
+
"./manager-api": {
|
|
186
|
+
"types": "./dist/manager-api/index.d.ts",
|
|
187
|
+
"import": "./dist/manager-api/index.js",
|
|
188
|
+
"require": "./dist/manager-api/index.cjs"
|
|
189
|
+
},
|
|
136
190
|
"./internal/router": {
|
|
137
191
|
"types": "./dist/router/index.d.ts",
|
|
138
192
|
"import": "./dist/router/index.js",
|
|
@@ -187,6 +241,31 @@
|
|
|
187
241
|
"import": "./dist/instrumenter/index.js",
|
|
188
242
|
"require": "./dist/instrumenter/index.cjs"
|
|
189
243
|
},
|
|
244
|
+
"./internal/test/preview": {
|
|
245
|
+
"types": "./dist/test/preview.d.ts",
|
|
246
|
+
"import": "./dist/test/preview.js",
|
|
247
|
+
"require": "./dist/test/preview.cjs"
|
|
248
|
+
},
|
|
249
|
+
"./test/preview": {
|
|
250
|
+
"types": "./dist/test/preview.d.ts",
|
|
251
|
+
"import": "./dist/test/preview.js",
|
|
252
|
+
"require": "./dist/test/preview.cjs"
|
|
253
|
+
},
|
|
254
|
+
"./internal/test/spy": {
|
|
255
|
+
"types": "./dist/test/spy.d.ts",
|
|
256
|
+
"import": "./dist/test/spy.js",
|
|
257
|
+
"require": "./dist/test/spy.cjs"
|
|
258
|
+
},
|
|
259
|
+
"./test/spy": {
|
|
260
|
+
"types": "./dist/test/spy.d.ts",
|
|
261
|
+
"import": "./dist/test/spy.js",
|
|
262
|
+
"require": "./dist/test/spy.cjs"
|
|
263
|
+
},
|
|
264
|
+
"./internal/test": {
|
|
265
|
+
"types": "./dist/test/index.d.ts",
|
|
266
|
+
"import": "./dist/test/index.js",
|
|
267
|
+
"require": "./dist/test/index.cjs"
|
|
268
|
+
},
|
|
190
269
|
"./test": {
|
|
191
270
|
"types": "./dist/test/index.d.ts",
|
|
192
271
|
"import": "./dist/test/index.js",
|
|
@@ -217,12 +296,36 @@
|
|
|
217
296
|
"internal/theming": [
|
|
218
297
|
"./dist/theming/index.d.ts"
|
|
219
298
|
],
|
|
299
|
+
"theming": [
|
|
300
|
+
"./dist/theming/index.d.ts"
|
|
301
|
+
],
|
|
220
302
|
"internal/theming/create": [
|
|
221
303
|
"./dist/theming/create.d.ts"
|
|
222
304
|
],
|
|
305
|
+
"theming/create": [
|
|
306
|
+
"./dist/theming/create.d.ts"
|
|
307
|
+
],
|
|
223
308
|
"internal/core-server": [
|
|
224
309
|
"./dist/core-server/index.d.ts"
|
|
225
310
|
],
|
|
311
|
+
"internal/actions": [
|
|
312
|
+
"./dist/actions/index.d.ts"
|
|
313
|
+
],
|
|
314
|
+
"actions": [
|
|
315
|
+
"./dist/actions/index.d.ts"
|
|
316
|
+
],
|
|
317
|
+
"internal/actions/preview": [
|
|
318
|
+
"./dist/actions/preview.d.ts"
|
|
319
|
+
],
|
|
320
|
+
"actions/preview": [
|
|
321
|
+
"./dist/actions/preview.d.ts"
|
|
322
|
+
],
|
|
323
|
+
"internal/actions/decorator": [
|
|
324
|
+
"./dist/actions/decorator.d.ts"
|
|
325
|
+
],
|
|
326
|
+
"actions/decorator": [
|
|
327
|
+
"./dist/actions/decorator.d.ts"
|
|
328
|
+
],
|
|
226
329
|
"internal/core-events": [
|
|
227
330
|
"./dist/core-events/index.d.ts"
|
|
228
331
|
],
|
|
@@ -259,9 +362,15 @@
|
|
|
259
362
|
"internal/preview-api": [
|
|
260
363
|
"./dist/preview-api/index.d.ts"
|
|
261
364
|
],
|
|
365
|
+
"preview-api": [
|
|
366
|
+
"./dist/preview-api/index.d.ts"
|
|
367
|
+
],
|
|
262
368
|
"internal/manager-api": [
|
|
263
369
|
"./dist/manager-api/index.d.ts"
|
|
264
370
|
],
|
|
371
|
+
"manager-api": [
|
|
372
|
+
"./dist/manager-api/index.d.ts"
|
|
373
|
+
],
|
|
265
374
|
"internal/router": [
|
|
266
375
|
"./dist/router/index.d.ts"
|
|
267
376
|
],
|
|
@@ -292,6 +401,21 @@
|
|
|
292
401
|
"internal/instrumenter": [
|
|
293
402
|
"./dist/instrumenter/index.d.ts"
|
|
294
403
|
],
|
|
404
|
+
"internal/test/preview": [
|
|
405
|
+
"./dist/test/preview.d.ts"
|
|
406
|
+
],
|
|
407
|
+
"test/preview": [
|
|
408
|
+
"./dist/test/preview.d.ts"
|
|
409
|
+
],
|
|
410
|
+
"internal/test/spy": [
|
|
411
|
+
"./dist/test/spy.d.ts"
|
|
412
|
+
],
|
|
413
|
+
"test/spy": [
|
|
414
|
+
"./dist/test/spy.d.ts"
|
|
415
|
+
],
|
|
416
|
+
"internal/test": [
|
|
417
|
+
"./dist/test/index.d.ts"
|
|
418
|
+
],
|
|
295
419
|
"test": [
|
|
296
420
|
"./dist/test/index.d.ts"
|
|
297
421
|
]
|
|
@@ -308,10 +432,15 @@
|
|
|
308
432
|
"check": "jiti ./scripts/check.ts",
|
|
309
433
|
"prep": "jiti ./scripts/prep.ts"
|
|
310
434
|
},
|
|
435
|
+
"resolutions": {
|
|
436
|
+
"@testing-library/user-event": "patch:@testing-library/user-event@npm%3A14.6.1#~/../.yarn/patches/@testing-library-user-event-npm-14.6.1-5da7e1d4e2.patch"
|
|
437
|
+
},
|
|
311
438
|
"dependencies": {
|
|
439
|
+
"@storybook/global": "^5.0.0",
|
|
312
440
|
"@testing-library/dom": "10.4.0",
|
|
313
441
|
"@testing-library/jest-dom": "^6.6.3",
|
|
314
|
-
"@testing-library/user-event": "14.
|
|
442
|
+
"@testing-library/user-event": "^14.6.1",
|
|
443
|
+
"@types/uuid": "^9.0.1",
|
|
315
444
|
"@vitest/expect": "2.0.5",
|
|
316
445
|
"@vitest/spy": "2.0.5",
|
|
317
446
|
"better-opn": "^3.0.2",
|
|
@@ -319,10 +448,12 @@
|
|
|
319
448
|
"esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0",
|
|
320
449
|
"esbuild-register": "^3.5.0",
|
|
321
450
|
"jsdoc-type-pratt-parser": "^4.0.0",
|
|
451
|
+
"polished": "^4.2.2",
|
|
322
452
|
"process": "^0.11.10",
|
|
323
453
|
"recast": "^0.23.5",
|
|
324
454
|
"semver": "^7.6.2",
|
|
325
455
|
"util": "^0.12.5",
|
|
456
|
+
"uuid": "^9.0.0",
|
|
326
457
|
"ws": "^8.18.0"
|
|
327
458
|
},
|
|
328
459
|
"devDependencies": {
|
|
@@ -348,7 +479,6 @@
|
|
|
348
479
|
"@radix-ui/react-scroll-area": "1.2.0-rc.7",
|
|
349
480
|
"@radix-ui/react-slot": "^1.0.2",
|
|
350
481
|
"@storybook/docs-mdx": "4.0.0-next.1",
|
|
351
|
-
"@storybook/global": "^5.0.0",
|
|
352
482
|
"@storybook/icons": "^1.3.2",
|
|
353
483
|
"@tanstack/react-virtual": "^3.3.0",
|
|
354
484
|
"@testing-library/react": "^14.0.0",
|
|
@@ -429,6 +559,7 @@
|
|
|
429
559
|
"react-dom": "^18.2.0",
|
|
430
560
|
"react-draggable": "^4.4.5",
|
|
431
561
|
"react-helmet-async": "^1.3.0",
|
|
562
|
+
"react-inspector": "^6.0.0",
|
|
432
563
|
"react-popper-tooltip": "^4.4.2",
|
|
433
564
|
"react-resize-detector": "^7.1.2",
|
|
434
565
|
"react-router-dom": "6.0.2",
|