@storybook/vue3 7.0.0-alpha.34 → 7.0.0-alpha.37
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.
- package/dist/config.d.ts +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as lib_docs_tools_dist_types from 'lib/docs-tools/dist/types';
|
|
2
|
-
import * as
|
|
2
|
+
import * as lib_addons_dist from 'lib/addons/dist';
|
|
3
3
|
import * as _storybook_csf from '@storybook/csf';
|
|
4
4
|
import { LegacyStoryFn, DecoratorFunction } from '@storybook/csf';
|
|
5
5
|
import { V as VueFramework } from './render-ea26216d.js';
|
|
@@ -7,7 +7,7 @@ export { r as render, a as renderToDOM } from './render-ea26216d.js';
|
|
|
7
7
|
import '@storybook/store';
|
|
8
8
|
import 'vue';
|
|
9
9
|
|
|
10
|
-
declare const argTypesEnhancers: (<TFramework extends _storybook_csf.AnyFramework>(context: _storybook_csf.StoryContextForEnhancers<TFramework, _storybook_csf.Args>) => _storybook_csf.StrictArgTypes<_storybook_csf.Args> |
|
|
10
|
+
declare const argTypesEnhancers: (<TFramework extends _storybook_csf.AnyFramework>(context: _storybook_csf.StoryContextForEnhancers<TFramework, _storybook_csf.Args>) => _storybook_csf.StrictArgTypes<_storybook_csf.Args> | lib_addons_dist.Parameters)[];
|
|
11
11
|
|
|
12
12
|
declare function decorateStory(storyFn: LegacyStoryFn<VueFramework>, decorators: DecoratorFunction<VueFramework>[]): LegacyStoryFn<VueFramework>;
|
|
13
13
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as lib_store_dist from 'lib/store/dist';
|
|
2
|
+
import * as lib_client_api_dist from 'lib/client-api/dist';
|
|
3
3
|
import * as _storybook_csf from '@storybook/csf';
|
|
4
4
|
import { Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations } from '@storybook/csf';
|
|
5
5
|
export { ArgTypes, Args, Parameters, StoryContext } from '@storybook/csf';
|
|
@@ -22,16 +22,16 @@ interface ClientApi extends ClientStoryApi<VueFramework['storyResult']> {
|
|
|
22
22
|
}
|
|
23
23
|
declare const storiesOf: ClientApi['storiesOf'];
|
|
24
24
|
declare const configure: ClientApi['configure'];
|
|
25
|
-
declare const addDecorator: (() => never) | ((decorator: _storybook_csf.DecoratorFunction<VueFramework, _storybook_addons.Args>) => void);
|
|
26
|
-
declare const addParameters: (() => never) | (({ globals, globalTypes, ...parameters }: _storybook_csf.Parameters & {
|
|
25
|
+
declare const addDecorator: ((...args: any[]) => never) | ((decorator: _storybook_csf.DecoratorFunction<VueFramework, _storybook_addons.Args>) => void);
|
|
26
|
+
declare const addParameters: ((...args: any[]) => never) | (({ globals, globalTypes, ...parameters }: _storybook_csf.Parameters & {
|
|
27
27
|
globals?: _storybook_csf.Globals;
|
|
28
28
|
globalTypes?: _storybook_csf.GlobalTypes;
|
|
29
29
|
}) => void);
|
|
30
|
-
declare const clearDecorators: (() => never) | (() => void);
|
|
31
|
-
declare const setAddon: (() => never) | ((addon: any) => void);
|
|
32
|
-
declare const forceReRender: (
|
|
33
|
-
declare const getStorybook: (() => never) | (() =>
|
|
34
|
-
declare const raw: (() => never) | (() =>
|
|
30
|
+
declare const clearDecorators: ((...args: any[]) => never) | (() => void);
|
|
31
|
+
declare const setAddon: ((...args: any[]) => never) | ((addon: any) => void);
|
|
32
|
+
declare const forceReRender: () => void;
|
|
33
|
+
declare const getStorybook: ((...args: any[]) => never) | (() => lib_client_api_dist.GetStorybookKind<VueFramework>[]);
|
|
34
|
+
declare const raw: ((...args: any[]) => never) | (() => lib_store_dist.BoundStory<VueFramework>[]);
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Metadata to configure the stories for a component.
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var h=Object.create;var u=Object.defineProperty;var
|
|
1
|
+
var h=Object.create;var u=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var D=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var T=(o,e)=>{for(var r in e)u(o,r,{get:e[r],enumerable:!0})},f=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of v(e))!L.call(o,t)&&t!==r&&u(o,t,{get:()=>e[t],enumerable:!(n=O(e,t))||n.enumerable});return o};var M=(o,e,r)=>(r=o!=null?h(D(o)):{},f(e||!o||!o.__esModule?u(r,"default",{value:o,enumerable:!0}):r,o)),P=o=>f(u({},"__esModule",{value:!0}),o);var _={};T(_,{addDecorator:()=>I,addParameters:()=>K,clearDecorators:()=>N,configure:()=>E,forceReRender:()=>B,getStorybook:()=>H,raw:()=>Y,setAddon:()=>W,setup:()=>g,storiesOf:()=>z});module.exports=P(_);var d=M(require("global")),{window:U}=d.default;U.STORYBOOK_ENV="vue3";var V=require("@storybook/core-client");var F=require("vue"),k=require("@storybook/store");function $(o){return typeof o=="function"?{render:o,name:o.name}:o}function l(o,e){let r=o;return r==null?null:e?{...$(r),components:{...r.components||{},story:e}}:{render(){return(0,F.h)(r)}}}function w(o,e){return e.reduce((r,n)=>t=>{let p,m=n(a=>(p=r({...t,...(0,k.sanitizeStoryContextUpdate)(a)}),p),t);return p||(p=r(t)),m===p?p:l(m,p)},r=>l(o(r)))}var C=require("ts-dedent"),s=require("vue"),A=(o,e)=>{let{id:r,component:n}=e;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return(0,s.h)(n,o)},S=o=>{},g=o=>{S=o},y=new Map;function x({title:o,name:e,storyFn:r,showMain:n,showError:t,showException:p},m){let a,c=(0,s.createApp)({unmounted(){y.delete(m)},render(){return y.set(m,c),S(c),(0,s.h)(a)}});if(c.config.errorHandler=p,a=r(),!a){t({title:`Expecting a Vue component from the story: "${e}" of "${o}".`,description:C.dedent`
|
|
2
2
|
Did you forget to return the Vue component from the story?
|
|
3
3
|
Use "() => ({ template: '<my-comp></my-comp>' })" or "() => ({ components: MyComp, template: '<my-comp></my-comp>' })" when defining the story.
|
|
4
|
-
`});return}n(),y.has(m)&&y.get(m).unmount(),c.mount(m)}var
|
|
4
|
+
`});return}n(),y.has(m)&&y.get(m).unmount(),c.mount(m)}var R="vue3",i=(0,V.start)(x,{decorateStory:w,render:A}),z=(o,e)=>i.clientApi.storiesOf(o,e).addParameters({framework:R}),E=(...o)=>i.configure(R,...o),{addDecorator:I}=i.clientApi,{addParameters:K}=i.clientApi,{clearDecorators:N}=i.clientApi,{setAddon:W}=i.clientApi,{forceReRender:B}=i,{getStorybook:H}=i.clientApi,{raw:Y}=i.clientApi;var b;(b=module==null?void 0:module.hot)==null||b.decline();0&&(module.exports={addDecorator,addParameters,clearDecorators,configure,forceReRender,getStorybook,raw,setAddon,setup,storiesOf});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as n,c as
|
|
1
|
+
import{a as e,b as n,c as a,d as p}from"./chunk-C4YTJRJQ.mjs";import A from"global";var{window:d}=A;d.STORYBOOK_ENV="vue3";import{start as c}from"@storybook/core-client";var i="vue3",o=c(p,{decorateStory:e,render:n}),g=(r,s)=>o.clientApi.storiesOf(r,s).addParameters({framework:i}),u=(...r)=>o.configure(i,...r),{addDecorator:x}=o.clientApi,{addParameters:S}=o.clientApi,{clearDecorators:k}=o.clientApi,{setAddon:b}=o.clientApi,{forceReRender:w}=o,{getStorybook:T}=o.clientApi,{raw:O}=o.clientApi;module?.hot?.decline();export{x as addDecorator,S as addParameters,k as clearDecorators,u as configure,w as forceReRender,T as getStorybook,O as raw,b as setAddon,a as setup,g as storiesOf};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/vue3",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.37",
|
|
4
4
|
"description": "Storybook Vue 3 renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@storybook/addons": "7.0.0-alpha.
|
|
54
|
-
"@storybook/core-client": "7.0.0-alpha.
|
|
55
|
-
"@storybook/csf": "0.0.2--canary.
|
|
56
|
-
"@storybook/docs-tools": "7.0.0-alpha.
|
|
57
|
-
"@storybook/store": "7.0.0-alpha.
|
|
53
|
+
"@storybook/addons": "7.0.0-alpha.37",
|
|
54
|
+
"@storybook/core-client": "7.0.0-alpha.37",
|
|
55
|
+
"@storybook/csf": "0.0.2--canary.49.258942b.0",
|
|
56
|
+
"@storybook/docs-tools": "7.0.0-alpha.37",
|
|
57
|
+
"@storybook/store": "7.0.0-alpha.37",
|
|
58
58
|
"global": "^4.4.0",
|
|
59
59
|
"react": "16.14.0",
|
|
60
60
|
"react-dom": "16.14.0",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
],
|
|
84
84
|
"platform": "browser"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "82667a655108283aafc828427f00bb3590a334e5"
|
|
87
87
|
}
|