storybook 10.0.0-rc.2 → 10.0.0-rc.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.
Files changed (73) hide show
  1. package/dist/_node-chunks/{builder-manager-ZNPRP22E.js → builder-manager-CMPC7SCH.js} +12 -12
  2. package/dist/_node-chunks/camelcase-PH4ACE3G.js +18 -0
  3. package/dist/_node-chunks/{chunk-62KDMWXX.js → chunk-2JIAOYKO.js} +7 -7
  4. package/dist/_node-chunks/{chunk-DOCRBDQH.js → chunk-4TLOQYBC.js} +7 -7
  5. package/dist/_node-chunks/{chunk-D5WSRTEX.js → chunk-A3UOLOFM.js} +7 -7
  6. package/dist/_node-chunks/{chunk-X35XJZ7G.js → chunk-AA6WD3A7.js} +7 -7
  7. package/dist/_node-chunks/chunk-AHFZBAQF.js +61 -0
  8. package/dist/_node-chunks/{chunk-VDCU2LFF.js → chunk-AS5N7GY5.js} +7 -7
  9. package/dist/_node-chunks/{chunk-LUDM5RD2.js → chunk-BEHPCFQ2.js} +8 -8
  10. package/dist/_node-chunks/{chunk-VHPYGR5X.js → chunk-BSVBH2ZA.js} +7 -7
  11. package/dist/_node-chunks/{chunk-WD2QJDGV.js → chunk-BZXQJZUK.js} +7 -7
  12. package/dist/_node-chunks/{chunk-6VEWXDI5.js → chunk-DLIUMR5R.js} +6 -6
  13. package/dist/_node-chunks/{chunk-K5GJVTVF.js → chunk-E7XUDQ3W.js} +7 -7
  14. package/dist/_node-chunks/{chunk-H6J6LJQQ.js → chunk-EJGHDAYE.js} +6 -6
  15. package/dist/_node-chunks/{chunk-VSPERFYF.js → chunk-JGDH6YYG.js} +20 -20
  16. package/dist/_node-chunks/{chunk-XJRUDTSD.js → chunk-JPPACTL4.js} +7 -7
  17. package/dist/_node-chunks/{chunk-SSK6CTPD.js → chunk-MC6BOBJJ.js} +12 -12
  18. package/dist/_node-chunks/{chunk-54MOKOMZ.js → chunk-MQY4ZI62.js} +8 -8
  19. package/dist/_node-chunks/{chunk-SF4YWMS2.js → chunk-NCKTVDON.js} +37 -35
  20. package/dist/_node-chunks/{chunk-QD4TA2GK.js → chunk-OJSXOILA.js} +7 -7
  21. package/dist/_node-chunks/{chunk-BPYW7SFB.js → chunk-OOXEC2LP.js} +7 -7
  22. package/dist/_node-chunks/{chunk-M2Y5JVSX.js → chunk-P7GFT5HG.js} +8 -8
  23. package/dist/_node-chunks/{chunk-OCPCEJ7D.js → chunk-PCQGHIXN.js} +7 -7
  24. package/dist/_node-chunks/{chunk-TR7IYGK4.js → chunk-PJCDP6ZD.js} +7 -7
  25. package/dist/_node-chunks/{chunk-MTIN3LKM.js → chunk-PW2V2I6I.js} +7 -7
  26. package/dist/_node-chunks/{chunk-2IEV7XG2.js → chunk-QK5IGJ3H.js} +9 -9
  27. package/dist/_node-chunks/{chunk-ZZMPRSOL.js → chunk-RZ77GUAF.js} +10 -10
  28. package/dist/_node-chunks/{chunk-LR47LSEQ.js → chunk-SN3TDU74.js} +8 -8
  29. package/dist/_node-chunks/{chunk-AFW3U6QG.js → chunk-SX2UZK74.js} +7 -7
  30. package/dist/_node-chunks/{chunk-FXGD2HHQ.js → chunk-USMWLOGR.js} +7 -7
  31. package/dist/_node-chunks/chunk-VBFCHLFV.js +1518 -0
  32. package/dist/_node-chunks/{chunk-6SGQF6CF.js → chunk-VWIHOMFU.js} +8 -8
  33. package/dist/_node-chunks/chunk-XQN3THEO.js +18 -0
  34. package/dist/_node-chunks/{chunk-J34Y4L4Q.js → chunk-YW2UKPPH.js} +9 -9
  35. package/dist/_node-chunks/{chunk-FWBLOTP7.js → chunk-ZW5XA6KG.js} +7 -7
  36. package/dist/_node-chunks/{dist-47EE2CMC.js → dist-U664B537.js} +9 -9
  37. package/dist/_node-chunks/{globby-ZEUQ6QPC.js → globby-HQ3ESL52.js} +9 -9
  38. package/dist/_node-chunks/{lib-LCU5VXJS.js → lib-2IOH44LB.js} +7 -7
  39. package/dist/_node-chunks/{mdx-N42X6CFJ-7LUZM4HR.js → mdx-N42X6CFJ-M54WITPV.js} +8 -8
  40. package/dist/_node-chunks/{p-limit-XJGTO6H5.js → p-limit-PBXTEA6N.js} +7 -7
  41. package/dist/_node-chunks/{plugin-ZN5KCYM2.js → plugin-34QU2FG7.js} +10 -10
  42. package/dist/_node-chunks/{plugin-YZRPWYO5.js → plugin-RSI6B3JI.js} +10 -10
  43. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-CRH6N7YZ.js → webpack-inject-mocker-runtime-plugin-UMXHXRC2.js} +10 -10
  44. package/dist/_node-chunks/{webpack-mock-plugin-NQXGMVTF.js → webpack-mock-plugin-6GKO2XIO.js} +9 -9
  45. package/dist/babel/index.js +11 -11
  46. package/dist/bin/core.js +11 -11
  47. package/dist/bin/dispatcher.js +11 -11
  48. package/dist/bin/loader.js +9 -9
  49. package/dist/cli/index.js +136 -1561
  50. package/dist/common/index.js +20 -20
  51. package/dist/core-server/index.js +48 -35
  52. package/dist/core-server/presets/common-manager.js +1 -0
  53. package/dist/core-server/presets/common-override-preset.js +9 -9
  54. package/dist/core-server/presets/common-preset.js +38 -26
  55. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  56. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  57. package/dist/csf-tools/index.js +9 -9
  58. package/dist/instrumenter/index.js +1 -1
  59. package/dist/manager/globals-runtime.js +9 -6
  60. package/dist/manager-api/index.d.ts +1 -1
  61. package/dist/manager-api/index.js +1 -1
  62. package/dist/node-logger/index.js +14 -14
  63. package/dist/preview/runtime.js +8 -5
  64. package/dist/preview-api/index.d.ts +67 -68
  65. package/dist/server-errors.js +10 -10
  66. package/dist/telemetry/index.d.ts +21 -1
  67. package/dist/telemetry/index.js +24 -24
  68. package/dist/test/index.js +7 -4
  69. package/dist/types/index.d.ts +3 -1
  70. package/package.json +1 -1
  71. package/dist/_node-chunks/camelcase-EY6MYFU4.js +0 -18
  72. package/dist/_node-chunks/chunk-JT5JXOKC.js +0 -61
  73. package/dist/_node-chunks/chunk-N4S7XZKB.js +0 -18
@@ -1,43 +1,43 @@
1
- import CJS_COMPAT_NODE_URL_oali8g6joqi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_oali8g6joqi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_oali8g6joqi from "node:module";
1
+ import CJS_COMPAT_NODE_URL_me0y3sd4o2e from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_me0y3sd4o2e from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_me0y3sd4o2e from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_oali8g6joqi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_oali8g6joqi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_oali8g6joqi.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_me0y3sd4o2e.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_me0y3sd4o2e.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_me0y3sd4o2e.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_pretty_hrtime
14
- } from "../_node-chunks/chunk-VDCU2LFF.js";
14
+ } from "../_node-chunks/chunk-AS5N7GY5.js";
15
15
  import {
16
16
  ansi_styles_default,
17
17
  boxen,
18
18
  require_string_width,
19
19
  stripAnsi
20
- } from "../_node-chunks/chunk-LUDM5RD2.js";
21
- import "../_node-chunks/chunk-BPYW7SFB.js";
20
+ } from "../_node-chunks/chunk-BEHPCFQ2.js";
21
+ import "../_node-chunks/chunk-OOXEC2LP.js";
22
22
  import {
23
23
  execaSync,
24
24
  optionalEnvToBoolean
25
- } from "../_node-chunks/chunk-J34Y4L4Q.js";
26
- import "../_node-chunks/chunk-FXGD2HHQ.js";
25
+ } from "../_node-chunks/chunk-YW2UKPPH.js";
26
+ import "../_node-chunks/chunk-USMWLOGR.js";
27
27
  import {
28
28
  require_prompts,
29
29
  require_src
30
- } from "../_node-chunks/chunk-AFW3U6QG.js";
30
+ } from "../_node-chunks/chunk-SX2UZK74.js";
31
31
  import {
32
32
  require_picocolors
33
- } from "../_node-chunks/chunk-DOCRBDQH.js";
33
+ } from "../_node-chunks/chunk-4TLOQYBC.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __export,
37
37
  __name,
38
38
  __require,
39
39
  __toESM
40
- } from "../_node-chunks/chunk-H6J6LJQQ.js";
40
+ } from "../_node-chunks/chunk-EJGHDAYE.js";
41
41
 
42
42
  // ../node_modules/are-we-there-yet/lib/tracker-base.js
43
43
  var require_tracker_base = __commonJS({
@@ -21942,7 +21942,7 @@ var _Instrumenter = class _Instrumenter {
21942
21942
  }) => {
21943
21943
  const { isDebugging } = this.getState(storyId);
21944
21944
  if (newPhase === "preparing" && isDebugging) {
21945
- return resetState({ storyId, renderPhase: newPhase });
21945
+ return resetState({ storyId, renderPhase: newPhase, isDebugging });
21946
21946
  } else if (newPhase === "playing") {
21947
21947
  return resetState({ storyId, renderPhase: newPhase, isDebugging });
21948
21948
  }
@@ -40140,10 +40140,13 @@ var testingLibrary = instrument(
40140
40140
  );
40141
40141
  testingLibrary.screen = new Proxy(testingLibrary.screen, {
40142
40142
  get(target, prop, receiver) {
40143
- once.warn(dedent`
40144
- You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
40145
- More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error
40146
- `);
40143
+ if (typeof window !== "undefined" && globalThis.location?.href?.includes("viewMode=docs")) {
40144
+ once.warn(dedent`
40145
+ You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
40146
+
40147
+ More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
40148
+ `);
40149
+ }
40147
40150
  return Reflect.get(target, prop, receiver);
40148
40151
  }
40149
40152
  });
@@ -1,7 +1,6 @@
1
1
  import { Channel } from 'storybook/internal/channels';
2
2
  import * as storybook_internal_types from 'storybook/internal/types';
3
3
  import { Args, Renderer, StoryContext, DecoratorApplicator, StoryId, Addon_StoryWrapper, PreparedStory, Globals, GlobalTypes, StoryIndex, StoryName, ComponentTitle, IndexEntry, Path, StoryAnnotationsOrFn, NormalizedComponentAnnotations, NormalizedStoryAnnotations, ModuleExports, CSFFile, NormalizedProjectAnnotations, ModuleExport, PreparedMeta, ProjectAnnotations, StepRunner, ComposedStoryFn, Store_CSFExports, ComposeStoryFn, LegacyStoryAnnotationsOrFn, ComponentAnnotations, NamedOrDefaultProjectAnnotations, ModuleImportFn, StoryContextForEnhancers, Parameters, StrictArgTypes, ArgTypesEnhancer, LegacyStoryFn, DecoratorFunction, PartialStoryFn, StoryContextUpdate, NormalizedStoriesSpecifier, Addon_StorySortParameterV7, DocsContextProps, ResolvedModuleExportType, ResolvedModuleExportFromType, StoryRenderOptions, RenderContextCallbacks, RenderToCanvas, ViewMode } from 'storybook/internal/types';
4
- import * as storybook_internal_csf from 'storybook/internal/csf';
5
4
  import { Story, Meta, CleanupCallback, StoryContext as StoryContext$1, Args as Args$1 } from 'storybook/internal/csf';
6
5
  import { RequestData, ArgTypesRequestPayload } from 'storybook/internal/core-events';
7
6
 
@@ -416,7 +415,7 @@ declare function createPlaywrightTest<TFixture extends {
416
415
  }>(baseTest: TFixture): TFixture;
417
416
 
418
417
  declare function getCsfFactoryAnnotations<TRenderer extends Renderer = Renderer, TArgs extends Args = Args>(story: LegacyStoryAnnotationsOrFn<TRenderer> | Story<Renderer>, meta?: ComponentAnnotations<TRenderer, TArgs> | Meta<Renderer>, projectAnnotations?: ProjectAnnotations<TRenderer>): {
419
- story: storybook_internal_csf.StoryAnnotations<Renderer, unknown>;
418
+ story: storybook_internal_types.StoryAnnotations<Renderer, unknown>;
420
419
  meta: ComponentAnnotations<Renderer, unknown>;
421
420
  preview: storybook_internal_types.NormalizedProjectAnnotations<Renderer>;
422
421
  } | {
@@ -478,10 +477,10 @@ declare class StoryStore<TRenderer extends Renderer> {
478
477
  getStoryContext(story: PreparedStory<TRenderer>, { forceInitialArgs }?: {
479
478
  forceInitialArgs?: boolean | undefined;
480
479
  }): {
481
- args: storybook_internal_csf.Args;
482
- initialGlobals: storybook_internal_csf.Globals;
483
- globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
484
- userGlobals: storybook_internal_csf.Globals;
480
+ args: storybook_internal_types.Args;
481
+ initialGlobals: storybook_internal_types.Globals;
482
+ globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
483
+ userGlobals: storybook_internal_types.Globals;
485
484
  reporting: ReporterAPI;
486
485
  globals: {
487
486
  [x: string]: any;
@@ -493,31 +492,31 @@ declare class StoryStore<TRenderer extends Renderer> {
493
492
  subcomponents?: Record<string, (TRenderer & {
494
493
  T: any;
495
494
  })["component"]> | undefined;
496
- parameters: storybook_internal_csf.Parameters;
497
- initialArgs: storybook_internal_csf.Args;
498
- argTypes: storybook_internal_csf.StrictArgTypes<storybook_internal_csf.Args>;
499
- componentId: storybook_internal_csf.ComponentId;
500
- title: storybook_internal_csf.ComponentTitle;
501
- kind: storybook_internal_csf.ComponentTitle;
495
+ parameters: storybook_internal_types.Parameters;
496
+ initialArgs: storybook_internal_types.Args;
497
+ argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
498
+ componentId: storybook_internal_types.ComponentId;
499
+ title: storybook_internal_types.ComponentTitle;
500
+ kind: storybook_internal_types.ComponentTitle;
502
501
  id: StoryId;
503
- name: storybook_internal_csf.StoryName;
504
- story: storybook_internal_csf.StoryName;
505
- tags: storybook_internal_csf.Tag[];
502
+ name: storybook_internal_types.StoryName;
503
+ story: storybook_internal_types.StoryName;
504
+ tags: storybook_internal_types.Tag[];
506
505
  moduleExport: storybook_internal_types.ModuleExport;
507
- originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
508
- undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
509
- unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
510
- applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<Record<string, any>>;
511
- applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<CleanupCallback[]>;
512
- applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void>;
513
- playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void> | void) | undefined;
514
- runStep: storybook_internal_csf.StepRunner<TRenderer>;
515
- mount: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => () => Promise<storybook_internal_csf.Canvas>;
506
+ originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
507
+ undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
508
+ unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
509
+ applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
510
+ applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<CleanupCallback[]>;
511
+ applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
512
+ playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
513
+ runStep: storybook_internal_types.StepRunner<TRenderer>;
514
+ mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
516
515
  testingLibraryRender?: (...args: never[]) => unknown;
517
516
  renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
518
517
  usesMount: boolean;
519
- storyGlobals: storybook_internal_csf.Globals;
520
- } & Pick<storybook_internal_csf.StoryContextForLoaders<Renderer, storybook_internal_csf.Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
518
+ storyGlobals: storybook_internal_types.Globals;
519
+ } & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, storybook_internal_types.Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
521
520
  addCleanupCallbacks(story: PreparedStory<TRenderer>, ...callbacks: CleanupCallback[]): void;
522
521
  cleanupStory(story: PreparedStory<TRenderer>): Promise<void>;
523
522
  extract(options?: {
@@ -533,7 +532,7 @@ declare class StoryStore<TRenderer extends Renderer> {
533
532
  declare const combineParameters: (...parameterSets: (Parameters | undefined)[]) => Parameters;
534
533
 
535
534
  type PropDescriptor = string[] | RegExp;
536
- declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<storybook_internal_csf.Args>>;
535
+ declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<storybook_internal_types.Args>>;
537
536
 
538
537
  declare const inferControls: ArgTypesEnhancer<Renderer>;
539
538
 
@@ -583,10 +582,10 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
583
582
  getStoryContext: (story: PreparedStory<TRenderer>) => {
584
583
  loaded: {};
585
584
  viewMode: string;
586
- args: storybook_internal_csf.Args;
587
- initialGlobals: storybook_internal_csf.Globals;
588
- globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
589
- userGlobals: storybook_internal_csf.Globals;
585
+ args: storybook_internal_types.Args;
586
+ initialGlobals: storybook_internal_types.Globals;
587
+ globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
588
+ userGlobals: storybook_internal_types.Globals;
590
589
  reporting: ReporterAPI;
591
590
  globals: {
592
591
  [x: string]: any;
@@ -598,30 +597,30 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
598
597
  subcomponents?: Record<string, (TRenderer & {
599
598
  T: any;
600
599
  })["component"]> | undefined;
601
- parameters: storybook_internal_csf.Parameters;
602
- initialArgs: storybook_internal_csf.Args;
603
- argTypes: storybook_internal_csf.StrictArgTypes<storybook_internal_csf.Args>;
604
- componentId: storybook_internal_csf.ComponentId;
605
- title: storybook_internal_csf.ComponentTitle;
606
- kind: storybook_internal_csf.ComponentTitle;
600
+ parameters: storybook_internal_types.Parameters;
601
+ initialArgs: storybook_internal_types.Args;
602
+ argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
603
+ componentId: storybook_internal_types.ComponentId;
604
+ title: storybook_internal_types.ComponentTitle;
605
+ kind: storybook_internal_types.ComponentTitle;
607
606
  id: StoryId;
608
607
  name: StoryName;
609
608
  story: StoryName;
610
- tags: storybook_internal_csf.Tag[];
609
+ tags: storybook_internal_types.Tag[];
611
610
  moduleExport: ModuleExport;
612
- originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
613
- undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
614
- unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
615
- applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<Record<string, any>>;
616
- applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<storybook_internal_csf.CleanupCallback[]>;
617
- applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void>;
618
- playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void> | void) | undefined;
619
- runStep: storybook_internal_csf.StepRunner<TRenderer>;
620
- mount: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => () => Promise<storybook_internal_csf.Canvas>;
611
+ originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
612
+ undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
613
+ unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
614
+ applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
615
+ applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<storybook_internal_types.CleanupCallback[]>;
616
+ applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
617
+ playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
618
+ runStep: storybook_internal_types.StepRunner<TRenderer>;
619
+ mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
621
620
  testingLibraryRender?: (...args: never[]) => unknown;
622
621
  renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
623
622
  usesMount: boolean;
624
- storyGlobals: storybook_internal_csf.Globals;
623
+ storyGlobals: storybook_internal_types.Globals;
625
624
  allArgs: any;
626
625
  argsByTarget: any;
627
626
  unmappedArgs: any;
@@ -843,7 +842,7 @@ declare class Preview<TRenderer extends Renderer> {
843
842
  }): {
844
843
  args: Args;
845
844
  initialGlobals: Globals;
846
- globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
845
+ globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
847
846
  userGlobals: Globals;
848
847
  reporting: ReporterAPI;
849
848
  globals: {
@@ -856,34 +855,34 @@ declare class Preview<TRenderer extends Renderer> {
856
855
  subcomponents?: Record<string, (TRenderer & {
857
856
  T: any;
858
857
  })["component"]> | undefined;
859
- parameters: storybook_internal_csf.Parameters;
858
+ parameters: storybook_internal_types.Parameters;
860
859
  initialArgs: Args;
861
- argTypes: storybook_internal_csf.StrictArgTypes<Args>;
862
- componentId: storybook_internal_csf.ComponentId;
863
- title: storybook_internal_csf.ComponentTitle;
864
- kind: storybook_internal_csf.ComponentTitle;
860
+ argTypes: storybook_internal_types.StrictArgTypes<Args>;
861
+ componentId: storybook_internal_types.ComponentId;
862
+ title: storybook_internal_types.ComponentTitle;
863
+ kind: storybook_internal_types.ComponentTitle;
865
864
  id: StoryId;
866
- name: storybook_internal_csf.StoryName;
867
- story: storybook_internal_csf.StoryName;
868
- tags: storybook_internal_csf.Tag[];
865
+ name: storybook_internal_types.StoryName;
866
+ story: storybook_internal_types.StoryName;
867
+ tags: storybook_internal_types.Tag[];
869
868
  moduleExport: storybook_internal_types.ModuleExport;
870
- originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
871
- undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
872
- unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
873
- applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<Record<string, any>>;
874
- applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>;
875
- applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<void>;
876
- playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<void> | void) | undefined;
877
- runStep: storybook_internal_csf.StepRunner<TRenderer>;
878
- mount: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => () => Promise<storybook_internal_csf.Canvas>;
869
+ originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
870
+ undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
871
+ unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
872
+ applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<Record<string, any>>;
873
+ applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>;
874
+ applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void>;
875
+ playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void> | void) | undefined;
876
+ runStep: storybook_internal_types.StepRunner<TRenderer>;
877
+ mount: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => () => Promise<storybook_internal_types.Canvas>;
879
878
  testingLibraryRender?: (...args: never[]) => unknown;
880
879
  renderToCanvas?: RenderToCanvas<TRenderer> | undefined;
881
880
  usesMount: boolean;
882
881
  storyGlobals: Globals;
883
- } & Pick<storybook_internal_csf.StoryContextForLoaders<Renderer, Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
882
+ } & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
884
883
  extract(options?: {
885
884
  includeDocsOnly: boolean;
886
- }): Promise<Record<string, storybook_internal_csf.StoryContextForEnhancers<TRenderer, Args>>>;
885
+ }): Promise<Record<string, storybook_internal_types.StoryContextForEnhancers<TRenderer, Args>>>;
887
886
  renderPreviewEntryError(reason: string, err: Error): void;
888
887
  }
889
888
 
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_oali8g6joqi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_oali8g6joqi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_oali8g6joqi from "node:module";
1
+ import CJS_COMPAT_NODE_URL_me0y3sd4o2e from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_me0y3sd4o2e from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_me0y3sd4o2e from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_oali8g6joqi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_oali8g6joqi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_oali8g6joqi.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_me0y3sd4o2e.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_me0y3sd4o2e.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_me0y3sd4o2e.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -39,10 +39,10 @@ import {
39
39
  WebpackCompilationError,
40
40
  WebpackInvocationError,
41
41
  WebpackMissingStatsError
42
- } from "./_node-chunks/chunk-2IEV7XG2.js";
43
- import "./_node-chunks/chunk-VHPYGR5X.js";
44
- import "./_node-chunks/chunk-DOCRBDQH.js";
45
- import "./_node-chunks/chunk-H6J6LJQQ.js";
42
+ } from "./_node-chunks/chunk-QK5IGJ3H.js";
43
+ import "./_node-chunks/chunk-BSVBH2ZA.js";
44
+ import "./_node-chunks/chunk-4TLOQYBC.js";
45
+ import "./_node-chunks/chunk-EJGHDAYE.js";
46
46
  export {
47
47
  AngularLegacyBuildOptionsError,
48
48
  Category,
@@ -84,6 +84,9 @@ type StorybookMetadata = {
84
84
  interface Payload {
85
85
  [key: string]: any;
86
86
  }
87
+ interface Context {
88
+ [key: string]: any;
89
+ }
87
90
  interface Options {
88
91
  retryDelay: number;
89
92
  immediate: boolean;
@@ -97,6 +100,23 @@ interface TelemetryData {
97
100
  payload: Payload;
98
101
  metadata?: StorybookMetadata;
99
102
  }
103
+ interface TelemetryEvent extends TelemetryData {
104
+ eventId: string;
105
+ sessionId: string;
106
+ context: Context;
107
+ }
108
+ interface InitPayload {
109
+ projectType: string;
110
+ features: {
111
+ dev: boolean;
112
+ docs: boolean;
113
+ test: boolean;
114
+ onboarding: boolean;
115
+ };
116
+ newUser: boolean;
117
+ versionSpecifier: string | undefined;
118
+ cliIntegration: string | undefined;
119
+ }
100
120
 
101
121
  declare const oneWayHash: (payload: BinaryLike) => string;
102
122
 
@@ -133,4 +153,4 @@ declare const addToGlobalContext: (key: string, value: any) => void;
133
153
  declare const isExampleStoryId: (storyId: string) => boolean;
134
154
  declare const telemetry: (eventType: EventType, payload?: Payload, options?: Partial<Options>) => Promise<void>;
135
155
 
136
- export { type Dependency, type EventType, type IErrorWithStdErrAndStdOut, type Options, type Payload, type StorybookAddon, type StorybookMetadata, type TelemetryData, addToGlobalContext, cleanPaths, computeStorybookMetadata, getPrecedingUpgrade, getStorybookMetadata, isExampleStoryId, metaFrameworks, oneWayHash, removeAnsiEscapeCodes, sanitizeAddonName, sanitizeError, telemetry };
156
+ export { type Context, type Dependency, type EventType, type IErrorWithStdErrAndStdOut, type InitPayload, type Options, type Payload, type StorybookAddon, type StorybookMetadata, type TelemetryData, type TelemetryEvent, addToGlobalContext, cleanPaths, computeStorybookMetadata, getPrecedingUpgrade, getStorybookMetadata, isExampleStoryId, metaFrameworks, oneWayHash, removeAnsiEscapeCodes, sanitizeAddonName, sanitizeError, telemetry };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_oali8g6joqi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_oali8g6joqi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_oali8g6joqi from "node:module";
1
+ import CJS_COMPAT_NODE_URL_me0y3sd4o2e from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_me0y3sd4o2e from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_me0y3sd4o2e from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_oali8g6joqi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_oali8g6joqi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_oali8g6joqi.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_me0y3sd4o2e.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_me0y3sd4o2e.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_me0y3sd4o2e.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -21,26 +21,26 @@ import {
21
21
  sanitizeAddonName,
22
22
  sanitizeError,
23
23
  telemetry
24
- } from "../_node-chunks/chunk-VSPERFYF.js";
25
- import "../_node-chunks/chunk-N4S7XZKB.js";
26
- import "../_node-chunks/chunk-SF4YWMS2.js";
27
- import "../_node-chunks/chunk-XJRUDTSD.js";
28
- import "../_node-chunks/chunk-JT5JXOKC.js";
29
- import "../_node-chunks/chunk-LR47LSEQ.js";
30
- import "../_node-chunks/chunk-J34Y4L4Q.js";
31
- import "../_node-chunks/chunk-FXGD2HHQ.js";
24
+ } from "../_node-chunks/chunk-JGDH6YYG.js";
25
+ import "../_node-chunks/chunk-XQN3THEO.js";
26
+ import "../_node-chunks/chunk-NCKTVDON.js";
27
+ import "../_node-chunks/chunk-JPPACTL4.js";
28
+ import "../_node-chunks/chunk-AHFZBAQF.js";
29
+ import "../_node-chunks/chunk-SN3TDU74.js";
30
+ import "../_node-chunks/chunk-YW2UKPPH.js";
31
+ import "../_node-chunks/chunk-USMWLOGR.js";
32
32
  import {
33
33
  getPrecedingUpgrade
34
- } from "../_node-chunks/chunk-MTIN3LKM.js";
35
- import "../_node-chunks/chunk-X35XJZ7G.js";
36
- import "../_node-chunks/chunk-6SGQF6CF.js";
37
- import "../_node-chunks/chunk-QD4TA2GK.js";
38
- import "../_node-chunks/chunk-AFW3U6QG.js";
39
- import "../_node-chunks/chunk-TR7IYGK4.js";
40
- import "../_node-chunks/chunk-FWBLOTP7.js";
41
- import "../_node-chunks/chunk-VHPYGR5X.js";
42
- import "../_node-chunks/chunk-DOCRBDQH.js";
43
- import "../_node-chunks/chunk-H6J6LJQQ.js";
34
+ } from "../_node-chunks/chunk-PW2V2I6I.js";
35
+ import "../_node-chunks/chunk-AA6WD3A7.js";
36
+ import "../_node-chunks/chunk-VWIHOMFU.js";
37
+ import "../_node-chunks/chunk-OJSXOILA.js";
38
+ import "../_node-chunks/chunk-SX2UZK74.js";
39
+ import "../_node-chunks/chunk-PJCDP6ZD.js";
40
+ import "../_node-chunks/chunk-ZW5XA6KG.js";
41
+ import "../_node-chunks/chunk-BSVBH2ZA.js";
42
+ import "../_node-chunks/chunk-4TLOQYBC.js";
43
+ import "../_node-chunks/chunk-EJGHDAYE.js";
44
44
  export {
45
45
  addToGlobalContext,
46
46
  cleanPaths,
@@ -26941,10 +26941,13 @@ var testingLibrary = instrument(
26941
26941
  );
26942
26942
  testingLibrary.screen = new Proxy(testingLibrary.screen, {
26943
26943
  get(target, prop, receiver) {
26944
- once.warn(dedent`
26945
- You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
26946
- More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error
26947
- `);
26944
+ if (typeof window !== "undefined" && globalThis.location?.href?.includes("viewMode=docs")) {
26945
+ once.warn(dedent`
26946
+ You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
26947
+
26948
+ More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
26949
+ `);
26950
+ }
26948
26951
  return Reflect.get(target, prop, receiver);
26949
26952
  }
26950
26953
  });
@@ -2249,6 +2249,7 @@ interface BuilderResult {
2249
2249
  }
2250
2250
  type PackageJson = PackageJson$1 & Record<string, any>;
2251
2251
  interface LoadOptions {
2252
+ pnp?: boolean;
2252
2253
  packageJson?: PackageJson;
2253
2254
  outputDir?: string;
2254
2255
  configDir?: string;
@@ -2523,6 +2524,7 @@ interface StorybookConfigRaw {
2523
2524
  babelDefault?: any;
2524
2525
  previewAnnotations?: Entry[];
2525
2526
  experimental_indexers?: Indexer[];
2527
+ experimental_devServer?: ServerApp;
2526
2528
  docs?: DocsOptions;
2527
2529
  previewHead?: string;
2528
2530
  previewBody?: string;
@@ -3612,4 +3614,4 @@ type SupportedFrameworks = 'angular' | 'ember' | 'html-vite' | 'nextjs' | 'nextj
3612
3614
 
3613
3615
  type SupportedRenderers = 'react' | 'react-native' | 'vue3' | 'angular' | 'ember' | 'preact' | 'svelte' | 'qwik' | 'html' | 'web-components' | 'server' | 'solid' | 'nuxt';
3614
3616
 
3615
- export { type API_ActiveTabsType, type API_BaseEntry, type API_ComponentEntry, type API_ComposedRef, type API_ComposedRefUpdate, type API_DocsEntry, type API_FilterFunction, type API_GroupEntry, type API_HashEntry, type API_IframeRenderer, type API_IndexHash, type API_Layout, type API_LayoutCustomisations, type API_LeafEntry, type API_LoadedRefData, type API_MatchOptions, type API_Notification, type API_OptionsData, type API_PanelPositions, type API_PreparedIndexEntry, type API_PreparedStoryIndex, type API_Provider, type API_ProviderData, type API_RefId, type API_RefUrl, type API_Refs, type API_ReleaseNotes, type API_RenderOptions, type API_RootEntry, type API_RouteOptions, type API_SetRefData, type API_Settings, type API_SidebarOptions, type API_StateMerger, type API_StoryEntry, type API_StoryMapper, type API_TestEntry, type API_UI, type API_UIOptions, type API_UnknownEntries, type API_Version, type API_Versions$1 as API_Versions, type API_ViewMode, type Actor, type Addon_AddStoryArgs, type Addon_Annotations, type Addon_ArgType, type Addon_ArgsStoryFn, type Addon_BaseAnnotations, type Addon_BaseDecorators, type Addon_BaseMeta, type Addon_BaseStoryFn, type Addon_BaseStoryObject, type Addon_BaseType, type Addon_ClientApiAddon, type Addon_ClientApiAddons, type Addon_ClientApiReturnFn, type Addon_ClientStoryApi, type Addon_Collection, type Addon_Comparator, type Addon_Config, type Addon_DecoratorFunction, type Addon_Elements, type Addon_LegacyStoryFn, type Addon_LoadFn, type Addon_Loadable, type Addon_Loader, type Addon_LoaderFunction, type Addon_Loaders, type Addon_MakeDecoratorResult, type Addon_OptionsParameter, type Addon_OptionsParameterV7, type Addon_PageType, type Addon_PartialStoryFn, type Addon_RenderOptions, type Addon_RequireContext, type Addon_StoryApi, type Addon_StoryContext, type Addon_StoryContextUpdate, type Addon_StoryFn, type Addon_StorySortComparator, type Addon_StorySortComparatorV7, type Addon_StorySortMethod, type Addon_StorySortObjectParameter, type Addon_StorySortParameter, type Addon_StorySortParameterV7, type Addon_StoryWrapper, type Addon_TestProviderType, type Addon_ToolbarConfig, type Addon_Type, type Addon_Types, Addon_TypesEnum, type Addon_TypesMapping, type Addon_WrapperSettings, type Addon_WrapperType, type Addons_ArgTypes, type BaseIndexEntry, type BaseIndexInput, type BaseStory, type BoundStory, type Builder, type BuilderName, type BuilderOptions, type BuilderResult, type BuilderStats, type Builder_EnvsRaw, type Builder_Unpromise, type Builder_WithRequiredProperty, type CLIBaseOptions, type CLIOptions, type CSFFile, type CompatibleString, type ComposeStoryFn, type ComposedStoryFn, type CoreCommon_AddonEntry, type CoreCommon_AddonInfo, type CoreCommon_OptionsEntry, type CoreCommon_ResolvedAddonPreset, type CoreCommon_ResolvedAddonVirtual, type CoreCommon_StorybookInfo, type CoreConfig, type DocsContextProps, type DocsIndexEntry, type DocsIndexInput, type DocsOptions, type DocsPreparedPayload, type DocsRenderFunction, type Entry, type Event, type EventInfo, type GlobalsUpdatedPayload, type IndexEntry, type IndexEntryLegacy, type IndexInput, type IndexInputStats, type IndexedCSFFile, type IndexedStory, type Indexer, type IndexerOptions, type LoadOptions, type LoadedPreset, type Middleware, MockUniversalStore, type ModuleExport, type ModuleExports, type ModuleImportFn, type NamedOrDefaultProjectAnnotations, type NormalizedComponentAnnotations, type NormalizedProjectAnnotations, type NormalizedStoriesSpecifier, type NormalizedStoryAnnotations, type Options, type PackageJson, type PartialArgsStoryFn, type Path, type PreparedMeta, type PreparedStory, type Preset, type PresetConfig, type PresetProperty, type PresetPropertyFn, type PresetValue, type Presets, type PreviewAnnotation, type ProjectAnnotations, type Ref, type RenderContext, type RenderContextCallbacks, type RenderToCanvas, type RendererName, type ResolvedModuleExport, type ResolvedModuleExportFromType, type ResolvedModuleExportType, type SetGlobalsPayload, type SetStoriesPayload, type SetStoriesStory, type SetStoriesStoryData, type Stats, type Status, type StatusByTypeId, type StatusStore, type StatusStoreByTypeId, type StatusTypeId, type StatusValue, type StatusesByStoryIdAndTypeId, type StoreOptions, type Store_CSFExports, type StoriesEntry, type StoriesSpecifier, type StoriesWithPartialProps, type StoryIndex, type StoryIndexEntry, type StoryIndexInput, type StoryIndexV2, type StoryIndexV3, type StoryPreparedPayload, type StoryRenderOptions, type StorybookConfig, type StorybookConfigOptions, type StorybookConfigRaw, type StorybookInternalParameters, type StorybookParameters, type StorybookTypes, type SupportedFrameworks, type SupportedRenderers, type TagOptions, type TagsOptions, type TeardownRenderToCanvas, type TestBuildConfig, type TestBuildFlags, type TestProviderId, type TestProviderState, type TestProviderStateByProviderId, type TestProviderStoreById, type TypescriptOptions, UniversalStore, type UseStatusStore, type UseTestProviderStore, type V3CompatIndexEntry, type VersionCheck, type ViewMode, type WebRenderer };
3617
+ export { type API_ActiveTabsType, type API_BaseEntry, type API_ComponentEntry, type API_ComposedRef, type API_ComposedRefUpdate, type API_DocsEntry, type API_FilterFunction, type API_GroupEntry, type API_HashEntry, type API_IframeRenderer, type API_IndexHash, type API_Layout, type API_LayoutCustomisations, type API_LeafEntry, type API_LoadedRefData, type API_MatchOptions, type API_Notification, type API_OptionsData, type API_PanelPositions, type API_PreparedIndexEntry, type API_PreparedStoryIndex, type API_Provider, type API_ProviderData, type API_RefId, type API_RefUrl, type API_Refs, type API_ReleaseNotes, type API_RenderOptions, type API_RootEntry, type API_RouteOptions, type API_SetRefData, type API_Settings, type API_SidebarOptions, type API_StateMerger, type API_StoryEntry, type API_StoryMapper, type API_TestEntry, type API_UI, type API_UIOptions, type API_UnknownEntries, type API_Version, type API_Versions$1 as API_Versions, type API_ViewMode, type Actor, type Addon_AddStoryArgs, type Addon_Annotations, type Addon_ArgType, type Addon_ArgsStoryFn, type Addon_BaseAnnotations, type Addon_BaseDecorators, type Addon_BaseMeta, type Addon_BaseStoryFn, type Addon_BaseStoryObject, type Addon_BaseType, type Addon_ClientApiAddon, type Addon_ClientApiAddons, type Addon_ClientApiReturnFn, type Addon_ClientStoryApi, type Addon_Collection, type Addon_Comparator, type Addon_Config, type Addon_DecoratorFunction, type Addon_Elements, type Addon_LegacyStoryFn, type Addon_LoadFn, type Addon_Loadable, type Addon_Loader, type Addon_LoaderFunction, type Addon_Loaders, type Addon_MakeDecoratorResult, type Addon_OptionsParameter, type Addon_OptionsParameterV7, type Addon_PageType, type Addon_PartialStoryFn, type Addon_RenderOptions, type Addon_RequireContext, type Addon_StoryApi, type Addon_StoryContext, type Addon_StoryContextUpdate, type Addon_StoryFn, type Addon_StorySortComparator, type Addon_StorySortComparatorV7, type Addon_StorySortMethod, type Addon_StorySortObjectParameter, type Addon_StorySortParameter, type Addon_StorySortParameterV7, type Addon_StoryWrapper, type Addon_TestProviderType, type Addon_ToolbarConfig, type Addon_Type, type Addon_Types, Addon_TypesEnum, type Addon_TypesMapping, type Addon_WrapperSettings, type Addon_WrapperType, type Addons_ArgTypes, type BaseIndexEntry, type BaseIndexInput, type BaseStory, type BoundStory, type Builder, type BuilderName, type BuilderOptions, type BuilderResult, type BuilderStats, type Builder_EnvsRaw, type Builder_Unpromise, type Builder_WithRequiredProperty, type CLIBaseOptions, type CLIOptions, type CSFFile, type CompatibleString, type ComposeStoryFn, type ComposedStoryFn, type CoreCommon_AddonEntry, type CoreCommon_AddonInfo, type CoreCommon_OptionsEntry, type CoreCommon_ResolvedAddonPreset, type CoreCommon_ResolvedAddonVirtual, type CoreCommon_StorybookInfo, type CoreConfig, type DocsContextProps, type DocsIndexEntry, type DocsIndexInput, type DocsOptions, type DocsPreparedPayload, type DocsRenderFunction, type Entry, type Event, type EventInfo, type GlobalsUpdatedPayload, type IndexEntry, type IndexEntryLegacy, type IndexInput, type IndexInputStats, type IndexedCSFFile, type IndexedStory, type Indexer, type IndexerOptions, type LoadOptions, type LoadedPreset, type Middleware, MockUniversalStore, type ModuleExport, type ModuleExports, type ModuleImportFn, type NamedOrDefaultProjectAnnotations, type NormalizedComponentAnnotations, type NormalizedProjectAnnotations, type NormalizedStoriesSpecifier, type NormalizedStoryAnnotations, type Options, type PackageJson, type PartialArgsStoryFn, type Path, type PreparedMeta, type PreparedStory, type Preset, type PresetConfig, type PresetProperty, type PresetPropertyFn, type PresetValue, type Presets, type PreviewAnnotation, type ProjectAnnotations, type Ref, type RenderContext, type RenderContextCallbacks, type RenderToCanvas, type RendererName, type ResolvedModuleExport, type ResolvedModuleExportFromType, type ResolvedModuleExportType, type ServerApp, type SetGlobalsPayload, type SetStoriesPayload, type SetStoriesStory, type SetStoriesStoryData, type Stats, type Status, type StatusByTypeId, type StatusStore, type StatusStoreByTypeId, type StatusTypeId, type StatusValue, type StatusesByStoryIdAndTypeId, type StoreOptions, type Store_CSFExports, type StoriesEntry, type StoriesSpecifier, type StoriesWithPartialProps, type StoryIndex, type StoryIndexEntry, type StoryIndexInput, type StoryIndexV2, type StoryIndexV3, type StoryPreparedPayload, type StoryRenderOptions, type StorybookConfig, type StorybookConfigOptions, type StorybookConfigRaw, type StorybookInternalParameters, type StorybookParameters, type StorybookTypes, type SupportedFrameworks, type SupportedRenderers, type TagOptions, type TagsOptions, type TeardownRenderToCanvas, type TestBuildConfig, type TestBuildFlags, type TestProviderId, type TestProviderState, type TestProviderStateByProviderId, type TestProviderStoreById, type TypescriptOptions, UniversalStore, type UseStatusStore, type UseTestProviderStore, type V3CompatIndexEntry, type VersionCheck, type ViewMode, type WebRenderer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook",
3
- "version": "10.0.0-rc.2",
3
+ "version": "10.0.0-rc.4",
4
4
  "description": "Storybook: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -1,18 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_oali8g6joqi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_oali8g6joqi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_oali8g6joqi from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_oali8g6joqi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_oali8g6joqi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_oali8g6joqi.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- camelCase
14
- } from "./chunk-BPYW7SFB.js";
15
- import "./chunk-H6J6LJQQ.js";
16
- export {
17
- camelCase as default
18
- };
@@ -1,61 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_oali8g6joqi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_oali8g6joqi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_oali8g6joqi from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_oali8g6joqi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_oali8g6joqi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_oali8g6joqi.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
-
13
- // src/common/versions.ts
14
- var versions_default = {
15
- "@storybook/addon-a11y": "10.0.0-rc.2",
16
- "@storybook/addon-docs": "10.0.0-rc.2",
17
- "@storybook/addon-links": "10.0.0-rc.2",
18
- "@storybook/addon-onboarding": "10.0.0-rc.2",
19
- "storybook-addon-pseudo-states": "10.0.0-rc.2",
20
- "@storybook/addon-themes": "10.0.0-rc.2",
21
- "@storybook/addon-vitest": "10.0.0-rc.2",
22
- "@storybook/builder-vite": "10.0.0-rc.2",
23
- "@storybook/builder-webpack5": "10.0.0-rc.2",
24
- storybook: "10.0.0-rc.2",
25
- "@storybook/angular": "10.0.0-rc.2",
26
- "@storybook/ember": "10.0.0-rc.2",
27
- "@storybook/html-vite": "10.0.0-rc.2",
28
- "@storybook/nextjs": "10.0.0-rc.2",
29
- "@storybook/nextjs-vite": "10.0.0-rc.2",
30
- "@storybook/preact-vite": "10.0.0-rc.2",
31
- "@storybook/react-native-web-vite": "10.0.0-rc.2",
32
- "@storybook/react-vite": "10.0.0-rc.2",
33
- "@storybook/react-webpack5": "10.0.0-rc.2",
34
- "@storybook/server-webpack5": "10.0.0-rc.2",
35
- "@storybook/svelte-vite": "10.0.0-rc.2",
36
- "@storybook/sveltekit": "10.0.0-rc.2",
37
- "@storybook/vue3-vite": "10.0.0-rc.2",
38
- "@storybook/web-components-vite": "10.0.0-rc.2",
39
- sb: "10.0.0-rc.2",
40
- "@storybook/cli": "10.0.0-rc.2",
41
- "@storybook/codemod": "10.0.0-rc.2",
42
- "@storybook/core-webpack": "10.0.0-rc.2",
43
- "create-storybook": "10.0.0-rc.2",
44
- "@storybook/csf-plugin": "10.0.0-rc.2",
45
- "eslint-plugin-storybook": "10.0.0-rc.2",
46
- "@storybook/react-dom-shim": "10.0.0-rc.2",
47
- "@storybook/preset-create-react-app": "10.0.0-rc.2",
48
- "@storybook/preset-react-webpack": "10.0.0-rc.2",
49
- "@storybook/preset-server-webpack": "10.0.0-rc.2",
50
- "@storybook/html": "10.0.0-rc.2",
51
- "@storybook/preact": "10.0.0-rc.2",
52
- "@storybook/react": "10.0.0-rc.2",
53
- "@storybook/server": "10.0.0-rc.2",
54
- "@storybook/svelte": "10.0.0-rc.2",
55
- "@storybook/vue3": "10.0.0-rc.2",
56
- "@storybook/web-components": "10.0.0-rc.2"
57
- };
58
-
59
- export {
60
- versions_default
61
- };
@@ -1,18 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_oali8g6joqi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_oali8g6joqi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_oali8g6joqi from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_oali8g6joqi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_oali8g6joqi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_oali8g6joqi.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
-
13
- // package.json
14
- var version = "10.0.0-rc.2";
15
-
16
- export {
17
- version
18
- };