storybook 9.0.0-alpha.12 → 9.0.0-alpha.14

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 (89) hide show
  1. package/assets/docs/addon-backgrounds.gif +0 -0
  2. package/assets/docs/highlight.png +0 -0
  3. package/dist/actions/decorator.js +46 -47
  4. package/dist/actions/index.cjs +28 -29
  5. package/dist/actions/index.d.ts +0 -3
  6. package/dist/actions/index.js +27 -28
  7. package/dist/actions/preview.cjs +22 -23
  8. package/dist/actions/preview.js +18 -19
  9. package/dist/backgrounds/index.cjs +148 -0
  10. package/dist/backgrounds/index.d.ts +91 -0
  11. package/dist/backgrounds/index.js +130 -0
  12. package/dist/backgrounds/preview.cjs +143 -0
  13. package/dist/backgrounds/preview.d.ts +54 -0
  14. package/dist/backgrounds/preview.js +127 -0
  15. package/dist/bin/index.cjs +62 -73
  16. package/dist/bin/index.js +57 -68
  17. package/dist/builder-manager/index.cjs +390 -380
  18. package/dist/builder-manager/index.js +489 -479
  19. package/dist/channels/index.cjs +1018 -948
  20. package/dist/channels/index.js +1194 -1161
  21. package/dist/cli/bin/index.cjs +225 -225
  22. package/dist/cli/bin/index.js +234 -234
  23. package/dist/cli/index.cjs +1860 -1873
  24. package/dist/cli/index.js +308 -321
  25. package/dist/common/index.cjs +2396 -2380
  26. package/dist/common/index.d.ts +0 -11
  27. package/dist/common/index.js +2604 -2588
  28. package/dist/components/index.cjs +6393 -12704
  29. package/dist/components/index.d.ts +1 -2
  30. package/dist/components/index.js +4665 -10778
  31. package/dist/core-events/index.cjs +72 -84
  32. package/dist/core-events/index.d.ts +2 -77
  33. package/dist/core-events/index.js +61 -73
  34. package/dist/core-server/index.cjs +13484 -13318
  35. package/dist/core-server/index.js +13652 -13486
  36. package/dist/core-server/presets/common-manager.js +9815 -12
  37. package/dist/core-server/presets/common-preset.cjs +2809 -3005
  38. package/dist/core-server/presets/common-preset.js +2891 -3087
  39. package/dist/docs-tools/index.cjs +626 -600
  40. package/dist/docs-tools/index.js +613 -587
  41. package/dist/highlight/index.cjs +27 -0
  42. package/dist/highlight/index.d.ts +17 -0
  43. package/dist/highlight/index.js +7 -0
  44. package/dist/highlight/preview.cjs +81 -0
  45. package/dist/highlight/preview.d.ts +54 -0
  46. package/dist/highlight/preview.js +67 -0
  47. package/dist/instrumenter/index.cjs +70 -60
  48. package/dist/instrumenter/index.d.ts +8 -7
  49. package/dist/instrumenter/index.js +98 -88
  50. package/dist/manager/globals-module-info.cjs +12 -22
  51. package/dist/manager/globals-module-info.js +2 -12
  52. package/dist/manager/globals-runtime.js +31295 -33999
  53. package/dist/manager/runtime.js +3419 -3522
  54. package/dist/manager-api/index.cjs +2521 -2445
  55. package/dist/manager-api/index.d.ts +7 -21
  56. package/dist/manager-api/index.js +2431 -2349
  57. package/dist/measure/index.cjs +474 -0
  58. package/dist/measure/index.d.ts +66 -0
  59. package/dist/measure/index.js +462 -0
  60. package/dist/measure/preview.cjs +464 -0
  61. package/dist/measure/preview.d.ts +59 -0
  62. package/dist/measure/preview.js +448 -0
  63. package/dist/outline/index.cjs +528 -0
  64. package/dist/outline/index.d.ts +66 -0
  65. package/dist/outline/index.js +500 -0
  66. package/dist/outline/preview.cjs +518 -0
  67. package/dist/outline/preview.d.ts +59 -0
  68. package/dist/outline/preview.js +486 -0
  69. package/dist/preview/runtime.js +20735 -17220
  70. package/dist/preview-api/index.cjs +1069 -1057
  71. package/dist/preview-api/index.d.ts +384 -157
  72. package/dist/preview-api/index.js +1123 -1109
  73. package/dist/server-errors.cjs +66 -67
  74. package/dist/server-errors.d.ts +0 -1
  75. package/dist/server-errors.js +68 -69
  76. package/dist/test/index.cjs +1547 -1546
  77. package/dist/test/index.js +2308 -2307
  78. package/dist/test/preview.cjs +1906 -1905
  79. package/dist/test/preview.js +1439 -1438
  80. package/dist/test/spy.cjs +65 -64
  81. package/dist/test/spy.js +59 -58
  82. package/dist/types/index.cjs +10 -10
  83. package/dist/types/index.d.ts +203 -243
  84. package/package.json +122 -17
  85. package/dist/actions/manager.js +0 -1195
  86. package/dist/component-testing/manager.js +0 -3126
  87. package/dist/controls/manager.js +0 -5593
  88. package/dist/viewport/manager.js +0 -400
  89. /package/dist/{component-testing/manager.css → core-server/presets/common-manager.css} +0 -0
@@ -1,12 +1,208 @@
1
1
  import { StoryId, StoryName, ComponentTitle, Tag as Tag$1, Parameters, Args, ArgTypes, ComponentId, StoryKind, Globals, GlobalTypes, InputType, StoryContext, PartialStoryFn, LegacyStoryFn, ArgsStoryFn, StoryFn, DecoratorFunction, LoaderFunction, Renderer as Renderer$1, ViewMode as ViewMode$1, StoryIdentifier, ProjectAnnotations as ProjectAnnotations$1, StrictArgTypes, StrictGlobalTypes, StepRunner, BeforeAll, ComponentAnnotations, StoryAnnotations, StoryContextForEnhancers, CleanupCallback, Canvas, StoryAnnotationsOrFn, AnnotatedStoryFn } from 'storybook/internal/csf';
2
2
  export { AfterEach, AnnotatedStoryFn, ArgTypes, ArgTypesEnhancer, Args, ArgsEnhancer, ArgsFromMeta, ArgsStoryFn, BaseAnnotations, ProjectAnnotations as BaseProjectAnnotations, BeforeAll, BeforeEach, Canvas, CleanupCallback, ComponentAnnotations, ComponentId, ComponentTitle, Conditional, DecoratorApplicator, DecoratorFunction, GlobalTypes, Globals, IncludeExcludeOptions, InputType, LegacyAnnotatedStoryFn, LegacyStoryAnnotationsOrFn, LegacyStoryFn, LoaderFunction, Parameters, PartialStoryFn, PlayFunction, PlayFunctionContext, SBArrayType, SBEnumType, SBIntersectionType, SBObjectType, SBOtherType, SBScalarType, SBType, SBUnionType, SeparatorOptions, StepFunction, StepLabel, StepRunner, StoryAnnotations, StoryAnnotationsOrFn, StoryContext, StoryContextForEnhancers, StoryContextForLoaders, StoryContextUpdate, StoryFn, StoryId, StoryIdentifier, StoryKind, StoryName, StrictArgTypes, StrictArgs, StrictGlobalTypes, StrictInputType, Tag } from 'storybook/internal/csf';
3
3
  import { ReactElement, FC, ReactNode, PropsWithChildren } from 'react';
4
- import { Addon_TestProviderType as Addon_TestProviderType$1, NormalizedProjectAnnotations as NormalizedProjectAnnotations$1, ProjectAnnotations as ProjectAnnotations$2, ComposedStoryFn as ComposedStoryFn$1 } from 'storybook/internal/types';
5
4
  import { FileSystemCache } from 'storybook/internal/common';
6
5
  import { Server, IncomingMessage, ServerResponse } from 'http';
7
6
  import { Server as Server$1 } from 'net';
7
+ import { NormalizedProjectAnnotations as NormalizedProjectAnnotations$1, ProjectAnnotations as ProjectAnnotations$2, ComposedStoryFn as ComposedStoryFn$1 } from 'storybook/internal/types';
8
8
  import { Channel as Channel$1 } from 'storybook/internal/channels';
9
9
 
10
+ /**
11
+ * A URL pathname, beginning with a /.
12
+ *
13
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.pathname
14
+ */
15
+ declare type Pathname = string;
16
+ /**
17
+ * A URL search string, beginning with a ?.
18
+ *
19
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.search
20
+ */
21
+ declare type Search = string;
22
+ /**
23
+ * A URL fragment identifier, beginning with a #.
24
+ *
25
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.hash
26
+ */
27
+ declare type Hash = string;
28
+ /**
29
+ * A unique string associated with a location. May be used to safely store
30
+ * and retrieve data in some other storage API, like `localStorage`.
31
+ *
32
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.key
33
+ */
34
+ declare type Key = string;
35
+ /**
36
+ * The pathname, search, and hash values of a URL.
37
+ */
38
+ interface Path$1 {
39
+ /**
40
+ * A URL pathname, beginning with a /.
41
+ *
42
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.pathname
43
+ */
44
+ pathname: Pathname;
45
+ /**
46
+ * A URL search string, beginning with a ?.
47
+ *
48
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.search
49
+ */
50
+ search: Search;
51
+ /**
52
+ * A URL fragment identifier, beginning with a #.
53
+ *
54
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.hash
55
+ */
56
+ hash: Hash;
57
+ }
58
+ /**
59
+ * An entry in a history stack. A location contains information about the
60
+ * URL path, as well as possibly some arbitrary state and a key.
61
+ *
62
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location
63
+ */
64
+ interface Location extends Path$1 {
65
+ /**
66
+ * A value of arbitrary data associated with this location.
67
+ *
68
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.state
69
+ */
70
+ state: unknown;
71
+ /**
72
+ * A unique string associated with this location. May be used to safely store
73
+ * and retrieve data in some other storage API, like `localStorage`.
74
+ *
75
+ * Note: This value is always "default" on the initial location.
76
+ *
77
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.key
78
+ */
79
+ key: Key;
80
+ }
81
+ /**
82
+ * Describes a location that is the destination of some navigation, either via
83
+ * `history.push` or `history.replace`. May be either a URL or the pieces of a
84
+ * URL path.
85
+ */
86
+ declare type To = string | Partial<Path$1>;
87
+
88
+ interface NavigateOptions$1 {
89
+ replace?: boolean;
90
+ state?: any;
91
+ }
92
+
93
+ interface StoryData {
94
+ viewMode?: string;
95
+ storyId?: string;
96
+ refId?: string;
97
+ }
98
+
99
+ interface Other extends StoryData {
100
+ path: string;
101
+ singleStory?: boolean;
102
+ }
103
+ type NavigateOptions = NavigateOptions$1 & {
104
+ plain?: boolean;
105
+ };
106
+ type NavigateFunction = (to: To | number, options?: NavigateOptions) => void;
107
+ type RouterData = {
108
+ location: Partial<Location>;
109
+ navigate: NavigateFunction;
110
+ } & Other;
111
+ type RenderData = Pick<RouterData, 'location'> & Other;
112
+
113
+ interface ThemeVars extends ThemeVarsBase, ThemeVarsColors {
114
+ }
115
+ interface ThemeVarsBase {
116
+ base: 'light' | 'dark';
117
+ }
118
+ interface ThemeVarsColors {
119
+ colorPrimary: string;
120
+ colorSecondary: string;
121
+ appBg: string;
122
+ appContentBg: string;
123
+ appPreviewBg: string;
124
+ appBorderColor: string;
125
+ appBorderRadius: number;
126
+ fontBase: string;
127
+ fontCode: string;
128
+ textColor: string;
129
+ textInverseColor: string;
130
+ textMutedColor: string;
131
+ barTextColor: string;
132
+ barHoverColor: string;
133
+ barSelectedColor: string;
134
+ barBg: string;
135
+ buttonBg: string;
136
+ buttonBorder: string;
137
+ booleanBg: string;
138
+ booleanSelectedBg: string;
139
+ inputBg: string;
140
+ inputBorder: string;
141
+ inputTextColor: string;
142
+ inputBorderRadius: number;
143
+ brandTitle?: string;
144
+ brandUrl?: string;
145
+ brandImage?: string;
146
+ brandTarget?: string;
147
+ gridCellSize?: number;
148
+ }
149
+
150
+ type ChannelHandler = (event: ChannelEvent) => void;
151
+ interface ChannelTransport {
152
+ send(event: ChannelEvent, options?: any): void;
153
+ setHandler(handler: ChannelHandler): void;
154
+ }
155
+ interface ChannelEvent {
156
+ type: string;
157
+ from: string;
158
+ args: any[];
159
+ }
160
+ interface Listener$1 {
161
+ (...args: any[]): void;
162
+ }
163
+ interface ChannelArgsSingle {
164
+ transport?: ChannelTransport;
165
+ async?: boolean;
166
+ }
167
+ interface ChannelArgsMulti {
168
+ transports: ChannelTransport[];
169
+ async?: boolean;
170
+ }
171
+
172
+ declare class Channel {
173
+ readonly isAsync: boolean;
174
+ private sender;
175
+ private events;
176
+ private data;
177
+ private readonly transports;
178
+ constructor(input: ChannelArgsMulti);
179
+ constructor(input: ChannelArgsSingle);
180
+ get hasTransport(): boolean;
181
+ addListener(eventName: string, listener: Listener$1): void;
182
+ emit(eventName: string, ...args: any): void;
183
+ last(eventName: string): any;
184
+ eventNames(): string[];
185
+ listenerCount(eventName: string): number;
186
+ listeners(eventName: string): Listener$1[] | undefined;
187
+ once(eventName: string, listener: Listener$1): void;
188
+ removeAllListeners(eventName?: string): void;
189
+ removeListener(eventName: string, listener: Listener$1): void;
190
+ on(eventName: string, listener: Listener$1): void;
191
+ off(eventName: string, listener: Listener$1): void;
192
+ private handleEvent;
193
+ private onceListener;
194
+ }
195
+
196
+ interface Options$1 {
197
+ allowRegExp: boolean;
198
+ allowSymbol: boolean;
199
+ allowDate: boolean;
200
+ allowUndefined: boolean;
201
+ allowError: boolean;
202
+ maxDepth: number;
203
+ space: number | undefined;
204
+ }
205
+
10
206
  /**
11
207
  Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
12
208
 
@@ -723,217 +919,6 @@ PackageJson$1.TypeScriptConfiguration &
723
919
  PackageJson$1.YarnConfiguration &
724
920
  PackageJson$1.JSPMConfiguration;
725
921
 
726
- type DateNow = number;
727
- type TestProviderConfig = Addon_TestProviderType$1;
728
- type TestingModuleProgressReportProgress = {
729
- startedAt: DateNow;
730
- finishedAt?: DateNow;
731
- numTotalTests?: number;
732
- numPassedTests?: number;
733
- numFailedTests?: number;
734
- numPendingTests?: number;
735
- percentageCompleted?: number;
736
- };
737
-
738
- /**
739
- * A URL pathname, beginning with a /.
740
- *
741
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.pathname
742
- */
743
- declare type Pathname = string;
744
- /**
745
- * A URL search string, beginning with a ?.
746
- *
747
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.search
748
- */
749
- declare type Search = string;
750
- /**
751
- * A URL fragment identifier, beginning with a #.
752
- *
753
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.hash
754
- */
755
- declare type Hash = string;
756
- /**
757
- * A unique string associated with a location. May be used to safely store
758
- * and retrieve data in some other storage API, like `localStorage`.
759
- *
760
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.key
761
- */
762
- declare type Key = string;
763
- /**
764
- * The pathname, search, and hash values of a URL.
765
- */
766
- interface Path$1 {
767
- /**
768
- * A URL pathname, beginning with a /.
769
- *
770
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.pathname
771
- */
772
- pathname: Pathname;
773
- /**
774
- * A URL search string, beginning with a ?.
775
- *
776
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.search
777
- */
778
- search: Search;
779
- /**
780
- * A URL fragment identifier, beginning with a #.
781
- *
782
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.hash
783
- */
784
- hash: Hash;
785
- }
786
- /**
787
- * An entry in a history stack. A location contains information about the
788
- * URL path, as well as possibly some arbitrary state and a key.
789
- *
790
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location
791
- */
792
- interface Location extends Path$1 {
793
- /**
794
- * A value of arbitrary data associated with this location.
795
- *
796
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.state
797
- */
798
- state: unknown;
799
- /**
800
- * A unique string associated with this location. May be used to safely store
801
- * and retrieve data in some other storage API, like `localStorage`.
802
- *
803
- * Note: This value is always "default" on the initial location.
804
- *
805
- * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.key
806
- */
807
- key: Key;
808
- }
809
- /**
810
- * Describes a location that is the destination of some navigation, either via
811
- * `history.push` or `history.replace`. May be either a URL or the pieces of a
812
- * URL path.
813
- */
814
- declare type To = string | Partial<Path$1>;
815
-
816
- interface NavigateOptions$1 {
817
- replace?: boolean;
818
- state?: any;
819
- }
820
-
821
- interface StoryData {
822
- viewMode?: string;
823
- storyId?: string;
824
- refId?: string;
825
- }
826
-
827
- interface Other extends StoryData {
828
- path: string;
829
- singleStory?: boolean;
830
- }
831
- type NavigateOptions = NavigateOptions$1 & {
832
- plain?: boolean;
833
- };
834
- type NavigateFunction = (to: To | number, options?: NavigateOptions) => void;
835
- type RouterData = {
836
- location: Partial<Location>;
837
- navigate: NavigateFunction;
838
- } & Other;
839
- type RenderData = Pick<RouterData, 'location'> & Other;
840
-
841
- interface ThemeVars extends ThemeVarsBase, ThemeVarsColors {
842
- }
843
- interface ThemeVarsBase {
844
- base: 'light' | 'dark';
845
- }
846
- interface ThemeVarsColors {
847
- colorPrimary: string;
848
- colorSecondary: string;
849
- appBg: string;
850
- appContentBg: string;
851
- appPreviewBg: string;
852
- appBorderColor: string;
853
- appBorderRadius: number;
854
- fontBase: string;
855
- fontCode: string;
856
- textColor: string;
857
- textInverseColor: string;
858
- textMutedColor: string;
859
- barTextColor: string;
860
- barHoverColor: string;
861
- barSelectedColor: string;
862
- barBg: string;
863
- buttonBg: string;
864
- buttonBorder: string;
865
- booleanBg: string;
866
- booleanSelectedBg: string;
867
- inputBg: string;
868
- inputBorder: string;
869
- inputTextColor: string;
870
- inputBorderRadius: number;
871
- brandTitle?: string;
872
- brandUrl?: string;
873
- brandImage?: string;
874
- brandTarget?: string;
875
- gridCellSize?: number;
876
- }
877
-
878
- type ChannelHandler = (event: ChannelEvent) => void;
879
- interface ChannelTransport {
880
- send(event: ChannelEvent, options?: any): void;
881
- setHandler(handler: ChannelHandler): void;
882
- }
883
- interface ChannelEvent {
884
- type: string;
885
- from: string;
886
- args: any[];
887
- }
888
- interface Listener$1 {
889
- (...args: any[]): void;
890
- }
891
- interface ChannelArgsSingle {
892
- transport?: ChannelTransport;
893
- async?: boolean;
894
- }
895
- interface ChannelArgsMulti {
896
- transports: ChannelTransport[];
897
- async?: boolean;
898
- }
899
-
900
- declare class Channel {
901
- readonly isAsync: boolean;
902
- private sender;
903
- private events;
904
- private data;
905
- private readonly transports;
906
- constructor(input: ChannelArgsMulti);
907
- constructor(input: ChannelArgsSingle);
908
- get hasTransport(): boolean;
909
- addListener(eventName: string, listener: Listener$1): void;
910
- emit(eventName: string, ...args: any): void;
911
- last(eventName: string): any;
912
- eventNames(): string[];
913
- listenerCount(eventName: string): number;
914
- listeners(eventName: string): Listener$1[] | undefined;
915
- once(eventName: string, listener: Listener$1): void;
916
- removeAllListeners(eventName?: string): void;
917
- removeListener(eventName: string, listener: Listener$1): void;
918
- on(eventName: string, listener: Listener$1): void;
919
- off(eventName: string, listener: Listener$1): void;
920
- private handleEvent;
921
- private onceListener;
922
- }
923
-
924
- interface Options$1 {
925
- allowRegExp: boolean;
926
- allowFunction: boolean;
927
- allowSymbol: boolean;
928
- allowDate: boolean;
929
- allowUndefined: boolean;
930
- allowClass: boolean;
931
- allowError: boolean;
932
- maxDepth: number;
933
- space: number | undefined;
934
- lazyEval: boolean;
935
- }
936
-
937
922
  type ExportName = string;
938
923
  type MetaId = string;
939
924
  interface StoriesSpecifier {
@@ -2024,7 +2009,7 @@ type BaseStory<TArgs, StoryFnReturnType> = Addon_BaseStoryFn<TArgs, StoryFnRetur
2024
2009
  interface Addon_RenderOptions {
2025
2010
  active: boolean;
2026
2011
  }
2027
- type Addon_Type = Addon_BaseType | Addon_PageType | Addon_WrapperType | Addon_TestProviderType<Addon_TestProviderState>;
2012
+ type Addon_Type = Addon_BaseType | Addon_PageType | Addon_WrapperType | Addon_TestProviderType;
2028
2013
  interface Addon_BaseType {
2029
2014
  /**
2030
2015
  * The title of the addon. This can be a simple string, but it can also be a
@@ -2127,45 +2112,20 @@ interface Addon_WrapperType {
2127
2112
  storyId: StoryId;
2128
2113
  }>>;
2129
2114
  }
2130
- interface Addon_TestProviderType<Details extends {
2131
- [key: string]: any;
2132
- } = NonNullable<unknown>> {
2115
+ interface Addon_TestProviderType {
2133
2116
  type: Addon_TypesEnum.experimental_TEST_PROVIDER;
2134
2117
  /** The unique id of the test provider. */
2135
2118
  id: string;
2136
- name: string;
2137
- /** @deprecated Use render instead */
2138
- title?: (state: TestProviderConfig & Addon_TestProviderState<Details>) => ReactNode;
2139
- /** @deprecated Use render instead */
2140
- description?: (state: TestProviderConfig & Addon_TestProviderState<Details>) => ReactNode;
2141
- render?: (state: TestProviderConfig & Addon_TestProviderState<Details>) => ReactNode;
2119
+ render: () => ReactNode;
2142
2120
  sidebarContextMenu?: (options: {
2143
2121
  context: API_HashEntry;
2144
- state: TestProviderConfig & Addon_TestProviderState<Details>;
2145
2122
  }) => ReactNode;
2146
- stateUpdater?: (state: TestProviderConfig & Addon_TestProviderState<Details>, update: Partial<Addon_TestProviderState<Details>>) => void | Partial<TestProviderConfig & Addon_TestProviderState<Details>>;
2147
- runnable?: boolean;
2148
2123
  }
2149
- type Addon_TestProviderState<Details extends {
2150
- [key: string]: any;
2151
- } = NonNullable<unknown>> = Pick<Addon_TestProviderType, 'runnable'> & {
2152
- progress?: TestingModuleProgressReportProgress;
2153
- details: Details;
2154
- cancellable: boolean;
2155
- cancelling: boolean;
2156
- running: boolean;
2157
- failed: boolean;
2158
- crashed: boolean;
2159
- error?: {
2160
- name: string;
2161
- message?: string;
2162
- };
2163
- };
2164
2124
  type Addon_TypeBaseNames = Exclude<Addon_TypesEnum, Addon_TypesEnum.PREVIEW | Addon_TypesEnum.experimental_PAGE | Addon_TypesEnum.experimental_TEST_PROVIDER>;
2165
2125
  interface Addon_TypesMapping extends Record<Addon_TypeBaseNames, Addon_BaseType> {
2166
2126
  [Addon_TypesEnum.PREVIEW]: Addon_WrapperType;
2167
2127
  [Addon_TypesEnum.experimental_PAGE]: Addon_PageType;
2168
- [Addon_TypesEnum.experimental_TEST_PROVIDER]: Addon_TestProviderType<Addon_TestProviderState>;
2128
+ [Addon_TypesEnum.experimental_TEST_PROVIDER]: Addon_TestProviderType;
2169
2129
  }
2170
2130
  type Addon_Loader<API> = (api: API) => void;
2171
2131
  interface Addon_Loaders<API> {
@@ -2468,7 +2428,7 @@ interface ComposeStoryFn<TRenderer extends Renderer$1 = Renderer$1, TArgs extend
2468
2428
  (storyAnnotations: AnnotatedStoryFn<TRenderer, TArgs> | StoryAnnotations<TRenderer, TArgs>, componentAnnotations: ComponentAnnotations<TRenderer, TArgs>, projectAnnotations: ProjectAnnotations$1<TRenderer>, exportsName?: string): ComposedStoryFn;
2469
2429
  }
2470
2430
 
2471
- type SupportedFrameworks = 'angular' | 'ember' | 'html-vite' | 'html-webpack5' | 'nextjs' | 'nextjs-vite' | 'preact-vite' | 'react-native-web-vite' | 'react-vite' | 'react-webpack5' | 'server-webpack5' | 'svelte-vite' | 'svelte-webpack5' | 'sveltekit' | 'vue3-vite' | 'web-components-vite' | 'web-components-webpack5' | 'qwik' | 'solid' | 'nuxt' | 'react-rsbuild' | 'vue3-rsbuild';
2431
+ type SupportedFrameworks = 'angular' | 'ember' | 'html-vite' | 'nextjs' | 'nextjs-vite' | 'preact-vite' | 'react-native-web-vite' | 'react-vite' | 'react-webpack5' | 'server-webpack5' | 'svelte-vite' | 'sveltekit' | 'vue3-vite' | 'web-components-vite' | 'qwik' | 'solid' | 'nuxt' | 'react-rsbuild' | 'vue3-rsbuild';
2472
2432
 
2473
2433
  type SupportedRenderers = 'react' | 'react-native' | 'vue3' | 'angular' | 'ember' | 'preact' | 'svelte' | 'qwik' | 'html' | 'web-components' | 'server' | 'solid' | 'nuxt';
2474
2434
 
@@ -3033,4 +2993,4 @@ declare class MockUniversalStore<State, CustomEvent extends {
3033
2993
  unsubscribeAll(): void;
3034
2994
  }
3035
2995
 
3036
- 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_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_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_TestProviderState, 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 Renderer, 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 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 };
2996
+ 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_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_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 Renderer, 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 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 };