@storybook/vue3 6.5.9 → 7.0.0-alpha.10

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 (107) hide show
  1. package/README.md +1 -43
  2. package/dist/chunk-5QBITULU.mjs +4 -0
  3. package/dist/config.d.ts +23 -0
  4. package/dist/config.js +4 -0
  5. package/dist/config.mjs +1 -0
  6. package/dist/index.d.ts +61 -0
  7. package/dist/index.js +4 -0
  8. package/dist/index.mjs +1 -0
  9. package/dist/render-ea26216d.d.ts +23 -0
  10. package/package.json +35 -39
  11. package/preview.js +1 -0
  12. package/bin/build.js +0 -4
  13. package/bin/index.js +0 -3
  14. package/dist/cjs/client/docs/config.js +0 -24
  15. package/dist/cjs/client/docs/extractArgTypes.js +0 -62
  16. package/dist/cjs/client/docs/prepareForInline.js +0 -61
  17. package/dist/cjs/client/index.js +0 -103
  18. package/dist/cjs/client/preview/config.js +0 -33
  19. package/dist/cjs/client/preview/decorateStory.js +0 -75
  20. package/dist/cjs/client/preview/globals.js +0 -9
  21. package/dist/cjs/client/preview/index.js +0 -62
  22. package/dist/cjs/client/preview/render.js +0 -82
  23. package/dist/cjs/client/preview/types-6-0.js +0 -5
  24. package/dist/cjs/client/preview/types-7-0.js +0 -5
  25. package/dist/cjs/client/preview/types.js +0 -5
  26. package/dist/cjs/server/build.js +0 -9
  27. package/dist/cjs/server/framework-preset-vue3-docs.js +0 -50
  28. package/dist/cjs/server/framework-preset-vue3.js +0 -66
  29. package/dist/cjs/server/index.js +0 -9
  30. package/dist/cjs/server/options.js +0 -17
  31. package/dist/cjs/server/preset.js +0 -8
  32. package/dist/esm/client/docs/config.js +0 -12
  33. package/dist/esm/client/docs/extractArgTypes.js +0 -45
  34. package/dist/esm/client/docs/prepareForInline.js +0 -22
  35. package/dist/esm/client/index.js +0 -6
  36. package/dist/esm/client/preview/config.js +0 -5
  37. package/dist/esm/client/preview/decorateStory.js +0 -64
  38. package/dist/esm/client/preview/globals.js +0 -4
  39. package/dist/esm/client/preview/index.js +0 -38
  40. package/dist/esm/client/preview/render.js +0 -60
  41. package/dist/esm/client/preview/types-6-0.js +0 -1
  42. package/dist/esm/client/preview/types-7-0.js +0 -1
  43. package/dist/esm/client/preview/types.js +0 -1
  44. package/dist/esm/server/build.js +0 -3
  45. package/dist/esm/server/framework-preset-vue3-docs.js +0 -37
  46. package/dist/esm/server/framework-preset-vue3.js +0 -52
  47. package/dist/esm/server/index.js +0 -3
  48. package/dist/esm/server/options.js +0 -8
  49. package/dist/esm/server/preset.js +0 -1
  50. package/dist/modern/client/docs/config.js +0 -12
  51. package/dist/modern/client/docs/extractArgTypes.js +0 -42
  52. package/dist/modern/client/docs/prepareForInline.js +0 -22
  53. package/dist/modern/client/index.js +0 -6
  54. package/dist/modern/client/preview/config.js +0 -5
  55. package/dist/modern/client/preview/decorateStory.js +0 -59
  56. package/dist/modern/client/preview/globals.js +0 -6
  57. package/dist/modern/client/preview/index.js +0 -38
  58. package/dist/modern/client/preview/render.js +0 -60
  59. package/dist/modern/client/preview/types-6-0.js +0 -1
  60. package/dist/modern/client/preview/types-7-0.js +0 -1
  61. package/dist/modern/client/preview/types.js +0 -1
  62. package/dist/modern/server/build.js +0 -3
  63. package/dist/modern/server/framework-preset-vue3-docs.js +0 -37
  64. package/dist/modern/server/framework-preset-vue3.js +0 -52
  65. package/dist/modern/server/index.js +0 -3
  66. package/dist/modern/server/options.js +0 -8
  67. package/dist/modern/server/preset.js +0 -1
  68. package/dist/ts3.4/client/docs/config.d.ts +0 -10
  69. package/dist/ts3.4/client/docs/extractArgTypes.d.ts +0 -2
  70. package/dist/ts3.4/client/docs/prepareForInline.d.ts +0 -4
  71. package/dist/ts3.4/client/index.d.ts +0 -2
  72. package/dist/ts3.4/client/preview/config.d.ts +0 -5
  73. package/dist/ts3.4/client/preview/decorateStory.d.ts +0 -3
  74. package/dist/ts3.4/client/preview/globals.d.ts +0 -1
  75. package/dist/ts3.4/client/preview/index.d.ts +0 -31
  76. package/dist/ts3.4/client/preview/render.d.ts +0 -7
  77. package/dist/ts3.4/client/preview/types-6-0.d.ts +0 -35
  78. package/dist/ts3.4/client/preview/types-7-0.d.ts +0 -9
  79. package/dist/ts3.4/client/preview/types.d.ts +0 -15
  80. package/dist/ts3.4/server/build.d.ts +0 -1
  81. package/dist/ts3.4/server/framework-preset-vue3-docs.d.ts +0 -3
  82. package/dist/ts3.4/server/framework-preset-vue3.d.ts +0 -4
  83. package/dist/ts3.4/server/index.d.ts +0 -1
  84. package/dist/ts3.4/server/options.d.ts +0 -3
  85. package/dist/ts3.4/server/preset.d.ts +0 -2
  86. package/dist/ts3.9/client/docs/config.d.ts +0 -10
  87. package/dist/ts3.9/client/docs/extractArgTypes.d.ts +0 -2
  88. package/dist/ts3.9/client/docs/prepareForInline.d.ts +0 -4
  89. package/dist/ts3.9/client/index.d.ts +0 -2
  90. package/dist/ts3.9/client/preview/config.d.ts +0 -5
  91. package/dist/ts3.9/client/preview/decorateStory.d.ts +0 -3
  92. package/dist/ts3.9/client/preview/globals.d.ts +0 -1
  93. package/dist/ts3.9/client/preview/index.d.ts +0 -31
  94. package/dist/ts3.9/client/preview/render.d.ts +0 -7
  95. package/dist/ts3.9/client/preview/types-6-0.d.ts +0 -35
  96. package/dist/ts3.9/client/preview/types-7-0.d.ts +0 -9
  97. package/dist/ts3.9/client/preview/types.d.ts +0 -15
  98. package/dist/ts3.9/server/build.d.ts +0 -1
  99. package/dist/ts3.9/server/framework-preset-vue3-docs.d.ts +0 -3
  100. package/dist/ts3.9/server/framework-preset-vue3.d.ts +0 -4
  101. package/dist/ts3.9/server/index.d.ts +0 -1
  102. package/dist/ts3.9/server/options.d.ts +0 -3
  103. package/dist/ts3.9/server/preset.d.ts +0 -2
  104. package/preset.js +0 -1
  105. package/standalone.js +0 -8
  106. package/types-6-0.d.ts +0 -1
  107. package/types-7-0.d.ts +0 -1
@@ -1,7 +0,0 @@
1
- import { RenderContext } from '@storybook/store';
2
- import { ArgsStoryFn } from '@storybook/csf';
3
- import { VueFramework } from './types-6-0';
4
- export declare const render: ArgsStoryFn<VueFramework>;
5
- export declare const activeStoryComponent: import("vue").Ref<import("vue").ComponentOptions<any, any, any, Record<string, import("@vue/reactivity").ComputedGetter<any> | import("vue").WritableComputedOptions<any>>, import("vue").MethodOptions, any, any, any>> | import("vue").Ref<import("vue").FunctionalComponent<any, any>>;
6
- export declare const storybookApp: import("vue").App<Element>;
7
- export declare function renderToDOM({ title, name, storyFn, showMain, showError, showException }: RenderContext<VueFramework>, domElement: HTMLElement): void;
@@ -1,35 +0,0 @@
1
- import { ConcreteComponent } from 'vue';
2
- import { Args, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
3
- import { StoryFnVueReturnType } from './types';
4
- export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/csf';
5
- export declare type VueFramework = {
6
- component: ConcreteComponent<any>;
7
- storyResult: StoryFnVueReturnType;
8
- };
9
- /**
10
- * Metadata to configure the stories for a component.
11
- *
12
- * @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
13
- */
14
- export declare type Meta<TArgs = Args> = ComponentAnnotations<VueFramework, TArgs>;
15
- /**
16
- * Story function that represents a CSFv2 component example.
17
- *
18
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
19
- */
20
- export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<VueFramework, TArgs>;
21
- /**
22
- * Story function that represents a CSFv3 component example.
23
- *
24
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
25
- */
26
- export declare type StoryObj<TArgs = Args> = StoryAnnotations<VueFramework, TArgs>;
27
- /**
28
- * Story function that represents a CSFv2 component example.
29
- *
30
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
31
- *
32
- * NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
33
- *
34
- */
35
- export declare type Story<TArgs = Args> = StoryFn<TArgs>;
@@ -1,9 +0,0 @@
1
- import { Args } from '@storybook/csf';
2
- import { StoryObj } from './types-6-0';
3
- export { StoryFn, StoryObj, Meta } from './types-6-0';
4
- /**
5
- * Story function that represents a CSFv3 component example.
6
- *
7
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
8
- */
9
- export declare type Story<TArgs = Args> = StoryObj<TArgs>;
@@ -1,15 +0,0 @@
1
- import { ConcreteComponent } from 'vue';
2
- export { RenderContext } from '@storybook/core';
3
- export interface ShowErrorArgs {
4
- title: string;
5
- description: string;
6
- }
7
- export declare type StoryFnVueReturnType = ConcreteComponent<any>;
8
- export interface IStorybookStory {
9
- name: string;
10
- render: (context: any) => any;
11
- }
12
- export interface IStorybookSection {
13
- kind: string;
14
- stories: IStorybookStory[];
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { Options, StorybookConfig } from '@storybook/core-common';
2
- export declare function webpackFinal(webpackConfig: any, options: Options): any;
3
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1,4 +0,0 @@
1
- import { Configuration } from 'webpack';
2
- import { StorybookConfig } from '@storybook/core-common';
3
- export declare function webpack(config: Configuration): Configuration;
4
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { LoadOptions } from '@storybook/core-common';
2
- declare const _default: LoadOptions;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- import { StorybookConfig } from '@storybook/core-common';
2
- export declare const addons: StorybookConfig['addons'];
@@ -1,10 +0,0 @@
1
- import { extractComponentDescription } from '@storybook/docs-tools';
2
- export declare const parameters: {
3
- docs: {
4
- inlineStories: boolean;
5
- prepareForInline: (storyFn: import("@storybook/csf").PartialStoryFn<import("..").VueFramework, import("@storybook/csf").Args>, { args }: import("@storybook/csf").StoryContext<import("..").VueFramework, import("@storybook/csf").Args>) => import("react").DetailedReactHTMLElement<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
6
- extractArgTypes: import("@storybook/docs-tools").ArgTypesExtractor;
7
- extractComponentDescription: typeof extractComponentDescription;
8
- };
9
- };
10
- export declare const argTypesEnhancers: (<TFramework extends import("@storybook/csf").AnyFramework>(context: import("@storybook/csf").StoryContextForEnhancers<TFramework, import("@storybook/csf").Args>) => import("@storybook/csf").StrictArgTypes<import("@storybook/csf").Args> | import("@storybook/addons").Parameters)[];
@@ -1,2 +0,0 @@
1
- import type { ArgTypesExtractor } from '@storybook/docs-tools';
2
- export declare const extractArgTypes: ArgTypesExtractor;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { StoryContext, PartialStoryFn } from '@storybook/csf';
3
- import { VueFramework } from '../index';
4
- export declare const prepareForInline: (storyFn: PartialStoryFn<VueFramework>, { args }: StoryContext<VueFramework>) => React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
@@ -1,2 +0,0 @@
1
- export { storiesOf, setAddon, addDecorator, addParameters, configure, getStorybook, forceReRender, raw, app, activeStoryComponent, } from './preview';
2
- export * from './preview/types-6-0';
@@ -1,5 +0,0 @@
1
- export { render, renderToDOM } from './render';
2
- export { decorateStory as applyDecorators } from './decorateStory';
3
- export declare const parameters: {
4
- framework: string;
5
- };
@@ -1,3 +0,0 @@
1
- import type { DecoratorFunction, LegacyStoryFn } from '@storybook/csf';
2
- import type { VueFramework } from './types-6-0';
3
- export declare function decorateStory(storyFn: LegacyStoryFn<VueFramework>, decorators: DecoratorFunction<VueFramework>[]): LegacyStoryFn<VueFramework>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,31 +0,0 @@
1
- /// <reference types="webpack-env" />
2
- /// <reference types="node" />
3
- import type { App } from 'vue';
4
- import type { ClientStoryApi, Loadable } from '@storybook/addons';
5
- import './globals';
6
- import type { IStorybookSection } from './types';
7
- import type { VueFramework } from './types-6-0';
8
- interface ClientApi extends ClientStoryApi<VueFramework['storyResult']> {
9
- setAddon(addon: any): void;
10
- configure(loader: Loadable, module: NodeModule): void;
11
- getStorybook(): IStorybookSection[];
12
- clearDecorators(): void;
13
- forceReRender(): void;
14
- raw: () => any;
15
- load: (...args: any[]) => void;
16
- app: App;
17
- }
18
- export declare const storiesOf: ClientApi['storiesOf'];
19
- export declare const configure: ClientApi['configure'];
20
- export declare const addDecorator: (() => never) | ((decorator: import("@storybook/csf").DecoratorFunction<VueFramework, import("@storybook/addons").Args>) => void);
21
- export declare const addParameters: (() => never) | (({ globals, globalTypes, ...parameters }: import("@storybook/csf/dist/story").Parameters & {
22
- globals?: import("@storybook/csf").Globals;
23
- globalTypes?: import("@storybook/csf").GlobalTypes;
24
- }) => void);
25
- export declare const clearDecorators: (() => never) | (() => void);
26
- export declare const setAddon: (() => never) | ((addon: any) => void);
27
- export declare const forceReRender: (() => never) | (() => void);
28
- export declare const getStorybook: (() => never) | (() => import("@storybook/client-api/dist/ts3.9/ClientApi").GetStorybookKind<VueFramework>[]);
29
- export declare const raw: (() => never) | (() => import("@storybook/store").BoundStory<VueFramework>[]);
30
- export declare const app: ClientApi['app'];
31
- export { activeStoryComponent } from './render';
@@ -1,7 +0,0 @@
1
- import type { RenderContext } from '@storybook/store';
2
- import type { ArgsStoryFn } from '@storybook/csf';
3
- import { VueFramework } from './types-6-0';
4
- export declare const render: ArgsStoryFn<VueFramework>;
5
- export declare const activeStoryComponent: import("vue").Ref<import("vue").ComponentOptions<any, any, any, Record<string, import("@vue/reactivity").ComputedGetter<any> | import("vue").WritableComputedOptions<any>>, import("vue").MethodOptions, any, any, any>> | import("vue").Ref<import("vue").FunctionalComponent<any, any>>;
6
- export declare const storybookApp: import("vue").App<Element>;
7
- export declare function renderToDOM({ title, name, storyFn, showMain, showError, showException }: RenderContext<VueFramework>, domElement: HTMLElement): void;
@@ -1,35 +0,0 @@
1
- import type { ConcreteComponent } from 'vue';
2
- import type { Args, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
3
- import type { StoryFnVueReturnType } from './types';
4
- export type { Args, ArgTypes, Parameters, StoryContext } from '@storybook/csf';
5
- export declare type VueFramework = {
6
- component: ConcreteComponent<any>;
7
- storyResult: StoryFnVueReturnType;
8
- };
9
- /**
10
- * Metadata to configure the stories for a component.
11
- *
12
- * @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
13
- */
14
- export declare type Meta<TArgs = Args> = ComponentAnnotations<VueFramework, TArgs>;
15
- /**
16
- * Story function that represents a CSFv2 component example.
17
- *
18
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
19
- */
20
- export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<VueFramework, TArgs>;
21
- /**
22
- * Story function that represents a CSFv3 component example.
23
- *
24
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
25
- */
26
- export declare type StoryObj<TArgs = Args> = StoryAnnotations<VueFramework, TArgs>;
27
- /**
28
- * Story function that represents a CSFv2 component example.
29
- *
30
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
31
- *
32
- * NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
33
- *
34
- */
35
- export declare type Story<TArgs = Args> = StoryFn<TArgs>;
@@ -1,9 +0,0 @@
1
- import type { Args } from '@storybook/csf';
2
- import type { StoryObj } from './types-6-0';
3
- export type { StoryFn, StoryObj, Meta } from './types-6-0';
4
- /**
5
- * Story function that represents a CSFv3 component example.
6
- *
7
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
8
- */
9
- export declare type Story<TArgs = Args> = StoryObj<TArgs>;
@@ -1,15 +0,0 @@
1
- import { ConcreteComponent } from 'vue';
2
- export type { RenderContext } from '@storybook/core';
3
- export interface ShowErrorArgs {
4
- title: string;
5
- description: string;
6
- }
7
- export declare type StoryFnVueReturnType = ConcreteComponent<any>;
8
- export interface IStorybookStory {
9
- name: string;
10
- render: (context: any) => any;
11
- }
12
- export interface IStorybookSection {
13
- kind: string;
14
- stories: IStorybookStory[];
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import type { Options, StorybookConfig } from '@storybook/core-common';
2
- export declare function webpackFinal(webpackConfig: any, options: Options): any;
3
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1,4 +0,0 @@
1
- import { Configuration } from 'webpack';
2
- import type { StorybookConfig } from '@storybook/core-common';
3
- export declare function webpack(config: Configuration): Configuration;
4
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import type { LoadOptions } from '@storybook/core-common';
2
- declare const _default: LoadOptions;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/core-common';
2
- export declare const addons: StorybookConfig['addons'];
package/preset.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/cjs/server/preset');
package/standalone.js DELETED
@@ -1,8 +0,0 @@
1
- const build = require('@storybook/core/standalone');
2
- const frameworkOptions = require('./dist/cjs/server/options').default;
3
-
4
- async function buildStandalone(options) {
5
- return build(options, frameworkOptions);
6
- }
7
-
8
- module.exports = buildStandalone;
package/types-6-0.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/ts3.9/client/preview/types-6-0.d';
package/types-7-0.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/ts3.9/client/preview/types-7-0.d';