storybook 9.0.0-alpha.20 → 9.0.0-alpha.21

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.
Files changed (72) hide show
  1. package/assets/server/base-preview-head.html +1 -3
  2. package/dist/actions/decorator.js +34 -38
  3. package/dist/actions/index.cjs +1 -4
  4. package/dist/actions/index.js +1 -4
  5. package/dist/actions/preview.cjs +1 -4
  6. package/dist/actions/preview.js +1 -4
  7. package/dist/babel/index.cjs +822 -816
  8. package/dist/babel/index.js +822 -816
  9. package/dist/backgrounds/index.cjs +16 -16
  10. package/dist/backgrounds/index.js +14 -14
  11. package/dist/backgrounds/preview.cjs +34 -34
  12. package/dist/backgrounds/preview.js +29 -29
  13. package/dist/bin/index.cjs +67 -65
  14. package/dist/bin/index.js +61 -59
  15. package/dist/builder-manager/index.cjs +482 -472
  16. package/dist/builder-manager/index.js +283 -273
  17. package/dist/channels/index.js +941 -919
  18. package/dist/cli/bin/index.cjs +1 -1
  19. package/dist/cli/bin/index.js +1 -1
  20. package/dist/cli/index.cjs +61752 -7591
  21. package/dist/cli/index.d.ts +22 -14
  22. package/dist/cli/index.js +61775 -7614
  23. package/dist/common/index.cjs +16015 -8979
  24. package/dist/common/index.d.ts +30 -1
  25. package/dist/common/index.js +16105 -9063
  26. package/dist/components/index.cjs +3694 -3643
  27. package/dist/components/index.d.ts +5 -2
  28. package/dist/components/index.js +2352 -2294
  29. package/dist/core-server/index.cjs +3540 -3540
  30. package/dist/core-server/index.js +730 -730
  31. package/dist/core-server/presets/common-manager.js +2642 -2592
  32. package/dist/core-server/presets/common-preset.cjs +723 -715
  33. package/dist/core-server/presets/common-preset.js +10 -2
  34. package/dist/docs-tools/index.js +640 -632
  35. package/dist/highlight/index.cjs +16 -16
  36. package/dist/highlight/index.d.ts +45 -1
  37. package/dist/highlight/index.js +2 -2
  38. package/dist/highlight/preview.cjs +522 -68
  39. package/dist/highlight/preview.js +508 -56
  40. package/dist/instrumenter/index.js +1179 -1170
  41. package/dist/manager/globals-module-info.cjs +1 -0
  42. package/dist/manager/globals-module-info.js +1 -0
  43. package/dist/manager/globals-runtime.js +19385 -19190
  44. package/dist/manager/runtime.js +2084 -2079
  45. package/dist/manager-api/index.cjs +352 -352
  46. package/dist/manager-api/index.js +1694 -1663
  47. package/dist/manager-errors.js +41 -37
  48. package/dist/measure/index.cjs +99 -97
  49. package/dist/measure/index.js +95 -93
  50. package/dist/measure/preview.cjs +127 -125
  51. package/dist/measure/preview.js +125 -123
  52. package/dist/outline/index.cjs +41 -41
  53. package/dist/outline/index.js +12 -12
  54. package/dist/outline/preview.cjs +23 -23
  55. package/dist/outline/preview.js +7 -7
  56. package/dist/preview/runtime.js +13577 -12959
  57. package/dist/preview-api/index.cjs +0 -1
  58. package/dist/preview-api/index.d.ts +120 -385
  59. package/dist/preview-api/index.js +827 -812
  60. package/dist/preview-errors.cjs +65 -51
  61. package/dist/preview-errors.d.ts +6 -2
  62. package/dist/preview-errors.js +176 -142
  63. package/dist/server-errors.cjs +105 -72
  64. package/dist/server-errors.d.ts +9 -1
  65. package/dist/server-errors.js +87 -54
  66. package/dist/telemetry/index.cjs +374 -370
  67. package/dist/telemetry/index.js +460 -456
  68. package/dist/test/index.js +9831 -9743
  69. package/dist/test/preview.d.ts +0 -6
  70. package/dist/test/preview.js +3628 -3568
  71. package/dist/types/index.d.ts +72 -6
  72. package/package.json +1 -1
@@ -1257,13 +1257,13 @@ interface TypescriptOptions {
1257
1257
  /**
1258
1258
  * Enables type checking within Storybook.
1259
1259
  *
1260
- * @default `false`
1260
+ * @default false
1261
1261
  */
1262
1262
  check: boolean;
1263
1263
  /**
1264
1264
  * Disable parsing TypeScript files through compiler.
1265
1265
  *
1266
- * @default `false`
1266
+ * @default false
1267
1267
  */
1268
1268
  skipCompiler: boolean;
1269
1269
  }
@@ -1336,19 +1336,85 @@ interface StorybookConfigRaw {
1336
1336
  staticDirs?: (DirectoryMapping | string)[];
1337
1337
  logLevel?: string;
1338
1338
  features?: {
1339
- /** Filter args with a "target" on the type from the render function (EXPERIMENTAL) */
1339
+ /**
1340
+ * Enable the integrated viewport addon
1341
+ *
1342
+ * @default true
1343
+ */
1344
+ viewport?: boolean;
1345
+ /**
1346
+ * Enable the integrated highlight addon
1347
+ *
1348
+ * @default true
1349
+ */
1350
+ highlight?: boolean;
1351
+ /**
1352
+ * Enable the integrated backgrounds addon
1353
+ *
1354
+ * @default true
1355
+ */
1356
+ backgrounds?: boolean;
1357
+ /**
1358
+ * Enable the integrated measure addon
1359
+ *
1360
+ * @default true
1361
+ */
1362
+ measure?: boolean;
1363
+ /**
1364
+ * Enable the integrated outline addon
1365
+ *
1366
+ * @default true
1367
+ */
1368
+ outline?: boolean;
1369
+ /**
1370
+ * Enable the integrated controls addon
1371
+ *
1372
+ * @default true
1373
+ */
1374
+ controls?: boolean;
1375
+ /**
1376
+ * Enable the integrated interactions addon
1377
+ *
1378
+ * @default true
1379
+ */
1380
+ interactions?: boolean;
1381
+ /**
1382
+ * Enable the integrated actions addon
1383
+ *
1384
+ * @default true
1385
+ */
1386
+ actions?: boolean;
1387
+ /**
1388
+ * @temporary This feature flag is a migration assistant, and is scheduled to be removed.
1389
+ *
1390
+ * Filter args with a "target" on the type from the render function (EXPERIMENTAL)
1391
+ */
1340
1392
  argTypeTargetsV7?: boolean;
1341
- /** Apply decorators from preview.js before decorators from addons or frameworks */
1393
+ /**
1394
+ * @temporary This feature flag is a migration assistant, and is scheduled to be removed.
1395
+ *
1396
+ * Apply decorators from preview.js before decorators from addons or frameworks
1397
+ */
1342
1398
  legacyDecoratorFileOrder?: boolean;
1343
1399
  /**
1400
+ * @temporary This feature flag is a migration assistant, and is scheduled to be removed.
1401
+ *
1344
1402
  * Disallow implicit actions during rendering. This will be the default in Storybook 8.
1345
1403
  *
1346
1404
  * This will make sure that your story renders the same no matter if docgen is enabled or not.
1347
1405
  */
1348
1406
  disallowImplicitActionsInRenderV8?: boolean;
1349
- /** Enable asynchronous component rendering in React renderer */
1407
+ /**
1408
+ * @temporary This feature flag is a migration assistant, and is scheduled to be removed.
1409
+ *
1410
+ * Enable asynchronous component rendering in React renderer
1411
+ */
1350
1412
  experimentalRSC?: boolean;
1351
- /** Set NODE_ENV to development in built Storybooks for better testability and debuggability */
1413
+ /**
1414
+ * @temporary This feature flag is a migration assistant, and is scheduled to be removed.
1415
+ *
1416
+ * Set NODE_ENV to development in built Storybooks for better testability and debuggability
1417
+ */
1352
1418
  developmentModeForBuild?: boolean;
1353
1419
  };
1354
1420
  build?: TestBuildConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook",
3
- "version": "9.0.0-alpha.20",
3
+ "version": "9.0.0-alpha.21",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"