@storybook/vue3 10.6.0-alpha.0 → 10.6.0-alpha.2
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cpbkhyrn9zg from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cpbkhyrn9zg from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cpbkhyrn9zg from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cpbkhyrn9zg.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cpbkhyrn9zg.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cpbkhyrn9zg.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/index.d.ts
CHANGED
|
@@ -1,64 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { PreviewAddon, InferTypes, AddonTypes, Preview as Preview$1, Meta as Meta$1, Story } from 'storybook/internal/csf';
|
|
1
|
+
import { AnnotatedStoryFn, ArgTypes, Args, Args as Args$1, ArgsFromMeta, ArgsStoryFn, Canvas, ComponentAnnotations, ComposedStoryFn, DecoratorFunction, LoaderFunction, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Parameters, ProjectAnnotations, Renderer, Store_CSFExports, StoriesWithPartialProps, StoryAnnotations, StoryAnnotationsOrFn, StoryContext as StoryContext$1, StrictArgs, StrictArgs as StrictArgs$1, WebRenderer } from "storybook/internal/types";
|
|
2
|
+
import { App, ConcreteComponent, FunctionalComponent, VNodeChild } from "vue";
|
|
3
|
+
import { Constructor, OmitIndexSignature, SetOptional, Simplify, UnionToIntersection } from "type-fest";
|
|
4
|
+
import { ComponentProps, ComponentSlots } from "vue-component-type-helpers";
|
|
5
|
+
import { AddonTypes, InferTypes, Meta as Meta$1, Preview as Preview$1, PreviewAddon, Story } from "storybook/internal/csf";
|
|
7
6
|
|
|
7
|
+
//#region code/renderers/vue3/.dts-emit/code/renderers/vue3/src/types.d.ts
|
|
8
8
|
type StoryFnVueReturnType = ConcreteComponent<any>;
|
|
9
9
|
interface VueRenderer extends WebRenderer {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
component: Omit<ConcreteComponent<this['T']>, 'props'>;
|
|
11
|
+
storyResult: StoryFnVueReturnType;
|
|
12
|
+
mount: (Component?: StoryFnVueReturnType, options?: {
|
|
13
|
+
props?: Record<string, any>;
|
|
14
|
+
slots?: Record<string, any>;
|
|
15
|
+
}) => Promise<Canvas>;
|
|
16
16
|
}
|
|
17
|
-
interface VueTypes extends VueRenderer {
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
interface VueTypes extends VueRenderer {}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region code/renderers/vue3/.dts-emit/code/renderers/vue3/src/render.d.ts
|
|
20
20
|
declare const setup: <AppHostElement = any>(fn: (app: App<AppHostElement>, storyContext?: StoryContext$1<VueRenderer>) => unknown) => void;
|
|
21
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region code/renderers/vue3/.dts-emit/code/renderers/vue3/src/public-types.d.ts
|
|
22
23
|
/**
|
|
23
24
|
* Metadata to configure the stories for a component.
|
|
24
25
|
*
|
|
25
26
|
* @see [Default export](https://storybook.js.org/docs/api/csf#default-export)
|
|
26
27
|
*/
|
|
27
|
-
type Meta<TCmpOrArgs = Args> = ComponentAnnotations<VueRenderer, ComponentPropsOrProps<TCmpOrArgs>>;
|
|
28
|
+
type Meta<TCmpOrArgs = Args$1> = ComponentAnnotations<VueRenderer, ComponentPropsOrProps<TCmpOrArgs>>;
|
|
28
29
|
/**
|
|
29
30
|
* Story function that represents a CSFv2 component example.
|
|
30
31
|
*
|
|
31
32
|
* @see [Named Story exports](https://storybook.js.org/docs/api/csf#named-story-exports)
|
|
32
33
|
*/
|
|
33
|
-
type StoryFn<TCmpOrArgs = Args> = AnnotatedStoryFn<VueRenderer, ComponentPropsOrProps<TCmpOrArgs>>;
|
|
34
|
+
type StoryFn<TCmpOrArgs = Args$1> = AnnotatedStoryFn<VueRenderer, ComponentPropsOrProps<TCmpOrArgs>>;
|
|
34
35
|
/**
|
|
35
36
|
* Story object that represents a CSFv3 component example.
|
|
36
37
|
*
|
|
37
38
|
* @see [Named Story exports](https://storybook.js.org/docs/api/csf#named-story-exports)
|
|
38
39
|
*/
|
|
39
|
-
type StoryObj<TMetaOrCmpOrArgs = Args> = TMetaOrCmpOrArgs extends {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
type StoryObj<TMetaOrCmpOrArgs = Args$1> = TMetaOrCmpOrArgs extends {
|
|
41
|
+
render?: ArgsStoryFn<VueRenderer, any>;
|
|
42
|
+
component?: infer Component;
|
|
43
|
+
args?: infer DefaultArgs;
|
|
43
44
|
} ? Simplify<ComponentPropsAndSlots<Component> & ArgsFromMeta<VueRenderer, TMetaOrCmpOrArgs>> extends infer TArgs ? StoryAnnotations<VueRenderer, TArgs, SetOptional<TArgs, Extract<keyof TArgs, keyof DefaultArgs>>> : never : StoryAnnotations<VueRenderer, ComponentPropsOrProps<TMetaOrCmpOrArgs>>;
|
|
44
45
|
type ExtractSlots<C> = AllowNonFunctionSlots<Partial<OmitIndexSignature<ComponentSlots<C>>>>;
|
|
45
|
-
type AllowNonFunctionSlots<Slots> = {
|
|
46
|
-
[K in keyof Slots]: Slots[K] | VNodeChild;
|
|
47
|
-
};
|
|
46
|
+
type AllowNonFunctionSlots<Slots> = { [K in keyof Slots]: Slots[K] | VNodeChild };
|
|
48
47
|
type ComponentPropsAndSlots<C> = ComponentProps<C> & ExtractSlots<C>;
|
|
49
48
|
type ComponentPropsOrProps<TCmpOrArgs> = TCmpOrArgs extends Constructor<any> ? ComponentPropsAndSlots<TCmpOrArgs> : TCmpOrArgs extends FunctionalComponent<any> ? ComponentPropsAndSlots<TCmpOrArgs> : TCmpOrArgs;
|
|
50
|
-
type Decorator<TArgs = StrictArgs> = DecoratorFunction<VueRenderer, TArgs>;
|
|
51
|
-
type Loader<TArgs = StrictArgs> = LoaderFunction<VueRenderer, TArgs>;
|
|
52
|
-
type StoryContext<TArgs = StrictArgs> = StoryContext$1<VueRenderer, TArgs>;
|
|
49
|
+
type Decorator<TArgs = StrictArgs$1> = DecoratorFunction<VueRenderer, TArgs>;
|
|
50
|
+
type Loader<TArgs = StrictArgs$1> = LoaderFunction<VueRenderer, TArgs>;
|
|
51
|
+
type StoryContext<TArgs = StrictArgs$1> = StoryContext$1<VueRenderer, TArgs>;
|
|
53
52
|
type Preview = ProjectAnnotations<VueRenderer>;
|
|
54
|
-
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region code/renderers/vue3/.dts-emit/code/renderers/vue3/src/portable-stories.d.ts
|
|
55
55
|
type JSXAble<TElement> = TElement & {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
type MapToJSXAble<T> = {
|
|
60
|
-
[K in keyof T]: JSXAble<T[K]>;
|
|
56
|
+
new (...args: any[]): any;
|
|
57
|
+
$props: any;
|
|
61
58
|
};
|
|
59
|
+
type MapToJSXAble<T> = { [K in keyof T]: JSXAble<T[K]> };
|
|
62
60
|
/**
|
|
63
61
|
* Function that sets the globalConfig of your Storybook. The global config is the preview module of
|
|
64
62
|
* your .storybook folder.
|
|
@@ -108,7 +106,7 @@ declare const vueProjectAnnotations: ProjectAnnotations<VueRenderer>;
|
|
|
108
106
|
* this can be applied automatically if you use `setProjectAnnotations` in your setup files.
|
|
109
107
|
* @param [exportsName] - In case your story does not contain a name and you want it to have a name.
|
|
110
108
|
*/
|
|
111
|
-
declare function composeStory<TArgs extends Args = Args>(story: StoryAnnotationsOrFn<VueRenderer, TArgs>, componentAnnotations: Meta<TArgs | any>, projectAnnotations?: ProjectAnnotations<VueRenderer>, exportsName?: string): JSXAble<ComposedStoryFn<VueRenderer, Partial<TArgs>>>;
|
|
109
|
+
declare function composeStory<TArgs extends Args$1 = Args$1>(story: StoryAnnotationsOrFn<VueRenderer, TArgs>, componentAnnotations: Meta<TArgs | any>, projectAnnotations?: ProjectAnnotations<VueRenderer>, exportsName?: string): JSXAble<ComposedStoryFn<VueRenderer, Partial<TArgs>>>;
|
|
112
110
|
/**
|
|
113
111
|
* Function that will receive a stories import (e.g. `import * as stories from './Button.stories'`)
|
|
114
112
|
* and optionally projectAnnotations (e.g. `import * from '../.storybook/preview`) and will return
|
|
@@ -137,7 +135,8 @@ declare function composeStory<TArgs extends Args = Args>(story: StoryAnnotations
|
|
|
137
135
|
* this can be applied automatically if you use `setProjectAnnotations` in your setup files.
|
|
138
136
|
*/
|
|
139
137
|
declare function composeStories<TModule extends Store_CSFExports<VueRenderer, any>>(csfExports: TModule, projectAnnotations?: ProjectAnnotations<VueRenderer>): MapToJSXAble<Omit<StoriesWithPartialProps<VueRenderer, TModule>, keyof Store_CSFExports>>;
|
|
140
|
-
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region code/renderers/vue3/.dts-emit/code/renderers/vue3/src/preview.d.ts
|
|
141
140
|
/**
|
|
142
141
|
* Creates a Vue3-specific preview configuration with CSF factories support.
|
|
143
142
|
*
|
|
@@ -158,11 +157,11 @@ declare function composeStories<TModule extends Store_CSFExports<VueRenderer, an
|
|
|
158
157
|
* ```
|
|
159
158
|
*/
|
|
160
159
|
declare function __definePreview<Addons extends PreviewAddon<never>[]>(input: {
|
|
161
|
-
|
|
160
|
+
addons: Addons;
|
|
162
161
|
} & ProjectAnnotations<VueTypes & InferTypes<Addons>>): VuePreview<VueTypes & InferTypes<Addons>>;
|
|
163
162
|
type InferArgs<TArgs, T, Decorators> = Simplify<TArgs & Simplify<OmitIndexSignature<DecoratorsArgs<VueTypes & T, Decorators>>>>;
|
|
164
163
|
type InferVueTypes<T, TArgs, Decorators> = VueTypes & T & {
|
|
165
|
-
|
|
164
|
+
args: Simplify<InferArgs<TArgs, T, Decorators>>;
|
|
166
165
|
};
|
|
167
166
|
/**
|
|
168
167
|
* Vue3-specific Preview interface that provides type-safe CSF factory methods.
|
|
@@ -179,33 +178,33 @@ type InferVueTypes<T, TArgs, Decorators> = VueTypes & T & {
|
|
|
179
178
|
* ```
|
|
180
179
|
*/
|
|
181
180
|
interface VuePreview<T extends AddonTypes> extends Preview$1<VueTypes & T> {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
181
|
+
/**
|
|
182
|
+
* Narrows the type of the preview to include additional type information. This is useful when you
|
|
183
|
+
* need to add args that aren't inferred from the component.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
*
|
|
187
|
+
* ```ts
|
|
188
|
+
* const meta = preview.type<{ args: { theme: 'light' | 'dark' } }>().meta({
|
|
189
|
+
* component: Button,
|
|
190
|
+
* });
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
type<R>(): VuePreview<T & R>;
|
|
194
|
+
meta<C, Decorators extends DecoratorFunction<VueTypes & T, any>, TMetaArgs extends Partial<ComponentPropsAndSlots<C> & T['args']>>(meta: {
|
|
195
|
+
component?: C;
|
|
196
|
+
args?: TMetaArgs;
|
|
197
|
+
decorators?: Decorators | Decorators[];
|
|
198
|
+
} & Omit<ComponentAnnotations<VueTypes & T, ComponentPropsAndSlots<C> & T['args']>, 'decorators' | 'component' | 'args'>): VueMeta<InferVueTypes<T, ComponentPropsAndSlots<C>, Decorators>, Omit<ComponentAnnotations<InferVueTypes<T, ComponentPropsAndSlots<C>, Decorators>>, 'args'> & {
|
|
199
|
+
args: {} extends TMetaArgs ? {} : TMetaArgs;
|
|
200
|
+
}>;
|
|
201
|
+
meta<TArgs extends Args, Decorators extends DecoratorFunction<VueTypes & T, any>, TMetaArgs extends Partial<TArgs>>(meta: {
|
|
202
|
+
render?: ArgsStoryFn<VueTypes & T, TArgs>;
|
|
203
|
+
args?: TMetaArgs;
|
|
204
|
+
decorators?: Decorators | Decorators[];
|
|
205
|
+
} & Omit<ComponentAnnotations<VueTypes & T, TArgs & T['args']>, 'decorators' | 'component' | 'args' | 'render'>): VueMeta<InferVueTypes<T, TArgs, Decorators>, Omit<ComponentAnnotations<InferVueTypes<T, TArgs, Decorators>>, 'args'> & {
|
|
206
|
+
args: {} extends TMetaArgs ? {} : TMetaArgs;
|
|
207
|
+
}>;
|
|
209
208
|
}
|
|
210
209
|
/** Extracts and unions all args types from an array of decorators. */
|
|
211
210
|
type DecoratorsArgs<TRenderer extends Renderer, Decorators> = UnionToIntersection<Decorators extends DecoratorFunction<TRenderer, infer TArgs> ? TArgs : unknown>;
|
|
@@ -216,75 +215,73 @@ type DecoratorsArgs<TRenderer extends Renderer, Decorators> = UnionToIntersectio
|
|
|
216
215
|
* provided in meta become optional in stories, while missing required args must be provided at the
|
|
217
216
|
* story level.
|
|
218
217
|
*/
|
|
219
|
-
interface VueMeta<T extends VueTypes, MetaInput extends ComponentAnnotations<T>>
|
|
220
|
-
/**
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
*/
|
|
287
|
-
story(..._args: Partial<T['args']> extends SetOptional<T['args'], keyof T['args'] & keyof MetaInput['args']> ? [] : [never]): VueStory<T, {}>;
|
|
218
|
+
interface VueMeta<T extends VueTypes, MetaInput extends ComponentAnnotations<T>> /** @ts-expect-error VueMeta requires two type parameters, but Meta's constraints differ */ extends Meta$1<T, MetaInput> {
|
|
219
|
+
/**
|
|
220
|
+
* Creates a story with a custom render function that takes no args.
|
|
221
|
+
*
|
|
222
|
+
* This overload allows you to define a story using just a render function or an object with a
|
|
223
|
+
* render function that doesn't depend on args. Since the render function doesn't use args, no
|
|
224
|
+
* args need to be provided regardless of what's required by the component.
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
*
|
|
228
|
+
* ```ts
|
|
229
|
+
* // Using just a render function
|
|
230
|
+
* export const CustomRender = meta.story(() => h('div', 'Custom content'));
|
|
231
|
+
*
|
|
232
|
+
* // Using defineComponent
|
|
233
|
+
* export const WithDefineComponent = meta.story(() =>
|
|
234
|
+
* defineComponent({
|
|
235
|
+
* template: '<div>Static component</div>',
|
|
236
|
+
* })
|
|
237
|
+
* );
|
|
238
|
+
* ```
|
|
239
|
+
*/
|
|
240
|
+
story<TInput extends (() => VueTypes['storyResult']) | (StoryAnnotations<T, T['args']> & {
|
|
241
|
+
render: () => VueTypes['storyResult'];
|
|
242
|
+
})>(story: TInput): VueStory<T, TInput extends (() => VueTypes['storyResult']) ? {
|
|
243
|
+
render: TInput;
|
|
244
|
+
} : TInput>;
|
|
245
|
+
/**
|
|
246
|
+
* Creates a story with custom configuration including args, decorators, or other annotations.
|
|
247
|
+
*
|
|
248
|
+
* This is the primary overload for defining stories. Args that were already provided in meta
|
|
249
|
+
* become optional, while any remaining required args must be specified here.
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
*
|
|
253
|
+
* ```ts
|
|
254
|
+
* // Provide required args not in meta
|
|
255
|
+
* export const Primary = meta.story({
|
|
256
|
+
* args: { label: 'Click me', disabled: false },
|
|
257
|
+
* });
|
|
258
|
+
*
|
|
259
|
+
* // Override meta args and add story-specific configuration
|
|
260
|
+
* export const Disabled = meta.story({
|
|
261
|
+
* args: { disabled: true },
|
|
262
|
+
* decorators: [withCustomWrapper],
|
|
263
|
+
* });
|
|
264
|
+
* ```
|
|
265
|
+
*/
|
|
266
|
+
story<TInput extends Simplify<StoryAnnotations<T, T['args'], SetOptional<T['args'], keyof T['args'] & keyof MetaInput['args']>>>>(story: TInput): VueStory<T, TInput>;
|
|
267
|
+
/**
|
|
268
|
+
* Creates a story with no additional configuration.
|
|
269
|
+
*
|
|
270
|
+
* This overload is only available when all required args have been provided in meta. The
|
|
271
|
+
* conditional type `Partial<T['args']> extends SetOptional<...>` checks if the remaining required
|
|
272
|
+
* args (after accounting for args provided in meta) are all optional. If so, the function accepts
|
|
273
|
+
* zero arguments `[]`. Otherwise, it requires `[never]` which makes this overload unmatchable,
|
|
274
|
+
* forcing the user to provide args.
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
*
|
|
278
|
+
* ```ts
|
|
279
|
+
* // When meta provides all required args, story() can be called with no arguments
|
|
280
|
+
* const meta = preview.meta({ component: Button, args: { label: 'Hi', disabled: false } });
|
|
281
|
+
* export const Default = meta.story(); // Valid - all args provided in meta
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
story(..._args: Partial<T['args']> extends SetOptional<T['args'], keyof T['args'] & keyof MetaInput['args']> ? [] : [never]): VueStory<T, {}>;
|
|
288
285
|
}
|
|
289
286
|
/**
|
|
290
287
|
* Vue3-specific Story interface returned by `meta.story()`.
|
|
@@ -292,7 +289,6 @@ interface VueMeta<T extends VueTypes, MetaInput extends ComponentAnnotations<T>>
|
|
|
292
289
|
* Represents a single story with its configuration and provides access to the composed story for
|
|
293
290
|
* testing via `story.run()`.
|
|
294
291
|
*/
|
|
295
|
-
interface VueStory<T extends VueTypes, TInput extends StoryAnnotations<T, T['args']>> extends Story<T, TInput> {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
export { type ComponentPropsAndSlots, type Decorator, type Loader, type Meta, type Preview, type StoryContext, type StoryFn, type StoryObj, type VueMeta, type VuePreview, type VueRenderer, type VueStory, type VueTypes, __definePreview, composeStories, composeStory, setProjectAnnotations, setup, vueProjectAnnotations };
|
|
292
|
+
interface VueStory<T extends VueTypes, TInput extends StoryAnnotations<T, T['args']>> extends Story<T, TInput> {}
|
|
293
|
+
//#endregion
|
|
294
|
+
export { type ArgTypes, type Args, ComponentPropsAndSlots, Decorator, Loader, Meta, type Parameters, Preview, StoryContext, StoryFn, StoryObj, type StrictArgs, VueMeta, VuePreview, type VueRenderer, VueStory, type VueTypes, __definePreview, composeStories, composeStory, setProjectAnnotations, setup, vueProjectAnnotations };
|
package/dist/playwright.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { createPlaywrightTest as createTest } from "storybook/preview-api";
|
|
2
|
+
export { createTest };
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cpbkhyrn9zg from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cpbkhyrn9zg from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cpbkhyrn9zg from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cpbkhyrn9zg.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cpbkhyrn9zg.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cpbkhyrn9zg.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -18,7 +18,7 @@ var previewAnnotations = async (input = [], options) => {
|
|
|
18
18
|
docsEnabled ? [fileURLToPath(import.meta.resolve("@storybook/vue3/entry-preview-docs"))] : []
|
|
19
19
|
);
|
|
20
20
|
}, experimental_importParsers = async (input = []) => {
|
|
21
|
-
let { vueImportParser } = await import("./_node-chunks/parsers-
|
|
21
|
+
let { vueImportParser } = await import("./_node-chunks/parsers-27PLHUJ3.js");
|
|
22
22
|
return [...input, vueImportParser];
|
|
23
23
|
};
|
|
24
24
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/vue3",
|
|
3
|
-
"version": "10.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.2",
|
|
4
4
|
"description": "Storybook Vue 3 renderer: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@testing-library/vue": "^8.0.0",
|
|
58
58
|
"@vitejs/plugin-vue": "^4.6.2",
|
|
59
|
-
"typescript": "^
|
|
59
|
+
"typescript": "^6.0.3",
|
|
60
60
|
"vue": "^3.2.47",
|
|
61
61
|
"vue-tsc": "latest"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"storybook": "^10.6.0-alpha.
|
|
64
|
+
"storybook": "^10.6.0-alpha.2",
|
|
65
65
|
"vue": "^3.0.0"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|