@storybook/vue3 7.0.0-alpha.44 → 7.0.0-alpha.46
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/chunk-K34XRZNP.mjs +4 -0
- package/dist/config.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/dist/chunk-VOU3URBT.mjs +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{h as l}from"vue";import{sanitizeStoryContextUpdate as d}from"@storybook/store";function w(e){return typeof e=="function"?{render:e,name:e.name}:e}function s(e,r){let o=e;return o==null?null:r?{...w(o),components:{...o.components||{},story:r}}:{render(){return l(o)}}}function g(e,r){return r.reduce((o,p)=>m=>{let t,n=p(u=>(t=o({...m,...d(u)}),t),m);return t||(t=o(m)),n===t?t:s(n,t)},o=>s(e(o)))}import{dedent as C}from"ts-dedent";import{createApp as k,h as c}from"vue";var A=(e,r)=>{let{id:o,component:p}=r;if(!p)throw new Error(`Unable to render story ${o} as the component annotation is missing from the default export`);return c(p,e)},i=e=>{},L=e=>{i=e},a=new Map;function b({title:e,name:r,storyFn:o,showMain:p,showError:m,showException:t},n){let u,y=k({unmounted(){a.delete(n)},render(){return a.set(n,y),i(y),c(u)}});if(y.config.errorHandler=f=>t(f),u=o(),!u){m({title:`Expecting a Vue component from the story: "${r}" of "${e}".`,description:C`
|
|
2
|
+
Did you forget to return the Vue component from the story?
|
|
3
|
+
Use "() => ({ template: '<my-comp></my-comp>' })" or "() => ({ components: MyComp, template: '<my-comp></my-comp>' })" when defining the story.
|
|
4
|
+
`});return}p(),a.get(n)?.unmount(),y.mount(n)}export{g as a,A as b,L as c,b as d};
|
package/dist/config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,b as x,d as T}from"./chunk-
|
|
1
|
+
import{a as u,b as x,d as T}from"./chunk-K34XRZNP.mjs";import{extractComponentDescription as S,enhanceArgTypes as b}from"@storybook/docs-tools";import{hasDocgen as g,extractComponentProps as h,convert as A}from"@storybook/docs-tools";var E=["props","events","slots","methods"],p=e=>{if(!g(e))return null;let t={};return E.forEach(r=>{h(e,r).forEach(({propDef:c,docgenInfo:n,jsDocTags:m})=>{let{name:o,type:y,description:f,defaultValue:i,required:d}=c,l=r==="props"?A(n):{name:"void"};t[o]={name:o,description:f,type:{required:d,...l},table:{type:y,jsDocTags:m,defaultValue:i,category:r}}})}),t};var a={docs:{inlineStories:!0,extractArgTypes:p,extractComponentDescription:S}},v=[b];var w={framework:"vue3",...a};export{u as applyDecorators,v as argTypesEnhancers,w as parameters,x as render,T as renderToDOM};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,b as n,c as i,d as p}from"./chunk-
|
|
1
|
+
import{a as t,b as n,c as i,d as p}from"./chunk-K34XRZNP.mjs";import a from"global";var{window:A}=a;A.STORYBOOK_ENV="vue3";import{start as y}from"@storybook/core-client";var s="vue3",o=y(p,{decorateStory:t,render:n}),O=(r,m)=>o.clientApi.storiesOf(r,m).addParameters({framework:s}),u=(...r)=>o.configure(s,...r),{forceReRender:c}=o,{raw:l}=o.clientApi;module?.hot?.decline();export{u as configure,c as forceReRender,l as raw,i as setup,O 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.46",
|
|
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/docs-tools": "7.0.0-alpha.
|
|
56
|
-
"@storybook/store": "7.0.0-alpha.
|
|
57
|
-
"@storybook/types": "7.0.0-alpha.
|
|
53
|
+
"@storybook/addons": "7.0.0-alpha.46",
|
|
54
|
+
"@storybook/core-client": "7.0.0-alpha.46",
|
|
55
|
+
"@storybook/docs-tools": "7.0.0-alpha.46",
|
|
56
|
+
"@storybook/store": "7.0.0-alpha.46",
|
|
57
|
+
"@storybook/types": "7.0.0-alpha.46",
|
|
58
58
|
"global": "^4.4.0",
|
|
59
59
|
"react": "16.14.0",
|
|
60
60
|
"react-dom": "16.14.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
],
|
|
91
91
|
"platform": "browser"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "c64b5be851ed2affac56e1daaac3f453fbe6f230"
|
|
94
94
|
}
|
package/dist/chunk-VOU3URBT.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{h as l}from"vue";import{sanitizeStoryContextUpdate as d}from"@storybook/store";function w(e){return typeof e=="function"?{render:e,name:e.name}:e}function s(e,t){let o=e;return o==null?null:t?{...w(o),components:{...o.components||{},story:t}}:{render(){return l(o)}}}function g(e,t){return t.reduce((o,p)=>m=>{let r,n=p(u=>(r=o({...m,...d(u)}),r),m);return r||(r=o(m)),n===r?r:s(n,r)},o=>s(e(o)))}import{dedent as C}from"ts-dedent";import{createApp as k,h as c}from"vue";var A=(e,t)=>{let{id:o,component:p}=t;if(!p)throw new Error(`Unable to render story ${o} as the component annotation is missing from the default export`);return c(p,e)},i=e=>{},L=e=>{i=e},a=new Map;function b({title:e,name:t,storyFn:o,showMain:p,showError:m,showException:r},n){let u,y=k({unmounted(){a.delete(n)},render(){return a.set(n,y),i(y),c(u)}});if(y.config.errorHandler=f=>r(f),u=o(),!u){m({title:`Expecting a Vue component from the story: "${t}" of "${e}".`,description:C`
|
|
2
|
-
Did you forget to return the Vue component from the story?
|
|
3
|
-
Use "() => ({ template: '<my-comp></my-comp>' })" or "() => ({ components: MyComp, template: '<my-comp></my-comp>' })" when defining the story.
|
|
4
|
-
`});return}p(),a.get(n)?.unmount(),y.mount(n)}export{g as a,A as b,L as c,b as d};
|