@storybook/preact 7.0.0-alpha.16 → 7.0.0-alpha.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/chunk-5JPFR37Q.mjs +4 -0
- package/dist/config.js +2 -2
- package/dist/config.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +7 -8
- package/LICENSE +0 -21
- package/dist/chunk-K52S5SIL.mjs +0 -4
@@ -0,0 +1,4 @@
|
|
1
|
+
import*as e from"preact";import{dedent as s}from"ts-dedent";var p;function i(r,t){e.Fragment?e.render(r,t):p=e.render(r,t,p)}var l=({showError:r,name:t,title:o,storyFn:a,domElement:m})=>{let n=e.h(a,null);return n||(r({title:`Expecting a Preact element from the story: "${t}" of "${o}".`,description:s`
|
2
|
+
Did you forget to return the Preact element from the story?
|
3
|
+
Use "() => (<MyComp/>)" or "() => { return <MyComp/>; }" when defining the story.
|
4
|
+
`}),null)};function d({storyFn:r,title:t,name:o,showMain:a,showError:m,forceRemount:n},c){n&&i(null,c),a(),i(e.h(l,{name:o,title:t,showError:m,storyFn:r,domElement:c}),c)}export{d as a};
|
package/dist/config.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var d=Object.create;var c=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var x=(e,r)=>{for(var t in r)c(e,t,{get:r[t],enumerable:!0})},s=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of h(r))!F.call(e,n)&&n!==t&&c(e,n,{get:()=>r[n],enumerable:!(a=u(r,n))||a.enumerable});return e};var E=(e,r,t)=>(t=e!=null?d(w(e)):{},s(r||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e)),P=e=>s(c({},"__esModule",{value:!0}),e);var C={};x(C,{parameters:()=>k,renderToDOM:()=>f});module.exports=P(C);var o=E(require("preact")),y=require("ts-dedent"),i;function l(e,r){o.Fragment?o.render(e,r):i=o.render(e,r,i)}var g=({showError:e,name:r,title:t,storyFn:a,domElement:n})=>{let p=o.h(a,null);return p||(e({title:`Expecting a Preact element from the story: "${r}" of "${t}".`,description:y.dedent`
|
2
2
|
Did you forget to return the Preact element from the story?
|
3
3
|
Use "() => (<MyComp/>)" or "() => { return <MyComp/>; }" when defining the story.
|
4
|
-
`}),null)}
|
4
|
+
`}),null)};function f({storyFn:e,title:r,name:t,showMain:a,showError:n,forceRemount:p},m){p&&l(null,m),a(),l(o.h(g,{name:t,title:r,showError:n,storyFn:e,domElement:m}),m)}var k={framework:"preact"};0&&(module.exports={parameters,renderToDOM});
|
package/dist/config.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{
|
1
|
+
import{a as r}from"./chunk-5JPFR37Q.mjs";var o={framework:"preact"};export{o as parameters,r as renderToDOM};
|
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var w=Object.create;var
|
1
|
+
"use strict";var w=Object.create;var p=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var D=(e,r)=>{for(var t in r)p(e,t,{get:r[t],enumerable:!0})},s=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of S(r))!b.call(e,n)&&n!==t&&p(e,n,{get:()=>r[n],enumerable:!(i=k(r,n))||i.enumerable});return e};var l=(e,r,t)=>(t=e!=null?w(P(e)):{},s(r||!e||!e.__esModule?p(t,"default",{value:e,enumerable:!0}):t,e)),F=e=>s(p({},"__esModule",{value:!0}),e);var W={};D(W,{addDecorator:()=>v,addParameters:()=>M,clearDecorators:()=>T,configure:()=>E,forceReRender:()=>K,getStorybook:()=>L,raw:()=>N,setAddon:()=>I,storiesOf:()=>O});module.exports=F(W);var f=l(require("global")),{window:m}=f.default;m&&(m.STORYBOOK_ENV="preact");var x=require("@storybook/core-client");var a=l(require("preact")),u=require("ts-dedent"),y;function A(e,r){a.Fragment?a.render(e,r):y=a.render(e,r,y)}var h=({showError:e,name:r,title:t,storyFn:i,domElement:n})=>{let c=a.h(i,null);return c||(e({title:`Expecting a Preact element from the story: "${r}" of "${t}".`,description:u.dedent`
|
2
2
|
Did you forget to return the Preact element from the story?
|
3
3
|
Use "() => (<MyComp/>)" or "() => { return <MyComp/>; }" when defining the story.
|
4
|
-
`}),null)}
|
4
|
+
`}),null)};function C({storyFn:e,title:r,name:t,showMain:i,showError:n,forceRemount:c},d){c&&A(null,d),i(),A(a.h(h,{name:t,title:r,showError:n,storyFn:e,domElement:d}),d)}var R="preact",o=(0,x.start)(C),O=(e,r)=>o.clientApi.storiesOf(e,r).addParameters({framework:R}),E=(...e)=>o.configure(R,...e),v=o.clientApi.addDecorator,M=o.clientApi.addParameters,T=o.clientApi.clearDecorators,I=o.clientApi.setAddon,K=o.forceReRender,L=o.clientApi.getStorybook,N=o.clientApi.raw;var g;(g=module==null?void 0:module.hot)==null||g.decline();0&&(module.exports={addDecorator,addParameters,clearDecorators,configure,forceReRender,getStorybook,raw,setAddon,storiesOf});
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{a as e
|
1
|
+
import{a as e}from"./chunk-5JPFR37Q.mjs";import s from"global";var{window:n}=s;n&&(n.STORYBOOK_ENV="preact");import{start as p}from"@storybook/core-client";var a="preact",o=p(e),l=(r,i)=>o.clientApi.storiesOf(r,i).addParameters({framework:a}),m=(...r)=>o.configure(a,...r),y=o.clientApi.addDecorator,f=o.clientApi.addParameters,g=o.clientApi.clearDecorators,x=o.clientApi.setAddon,S=o.forceReRender,C=o.clientApi.getStorybook,k=o.clientApi.raw;module?.hot?.decline();export{y as addDecorator,f as addParameters,g as clearDecorators,m as configure,S as forceReRender,C as getStorybook,k as raw,x as setAddon,l as storiesOf};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact",
|
3
|
-
"version": "7.0.0-alpha.
|
3
|
+
"version": "7.0.0-alpha.19",
|
4
4
|
"description": "Storybook Preact renderer",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,13 +47,13 @@
|
|
47
47
|
],
|
48
48
|
"scripts": {
|
49
49
|
"check": "tsc --noEmit",
|
50
|
-
"prepare": "
|
50
|
+
"prepare": "../../../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/store": "7.0.0-alpha.
|
53
|
+
"@storybook/addons": "7.0.0-alpha.19",
|
54
|
+
"@storybook/core-client": "7.0.0-alpha.19",
|
55
|
+
"@storybook/csf": "0.0.2--canary.0899bb7.0",
|
56
|
+
"@storybook/store": "7.0.0-alpha.19",
|
57
57
|
"core-js": "^3.8.2",
|
58
58
|
"global": "^4.4.0",
|
59
59
|
"react": "16.14.0",
|
@@ -61,7 +61,6 @@
|
|
61
61
|
"ts-dedent": "^2.0.0"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
|
-
"@digitak/esrun": "^3.2.2",
|
65
64
|
"preact": "^10.5.13",
|
66
65
|
"typescript": "~4.6.3"
|
67
66
|
},
|
@@ -81,5 +80,5 @@
|
|
81
80
|
],
|
82
81
|
"platform": "browser"
|
83
82
|
},
|
84
|
-
"gitHead": "
|
83
|
+
"gitHead": "74bdb53f67dd59bae2661c668d2d5d4296113281"
|
85
84
|
}
|
package/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2017 Kadira Inc. <hello@kadira.io>
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
package/dist/chunk-K52S5SIL.mjs
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
var u=Object.defineProperty;var o=(e,r)=>u(e,"name",{value:r,configurable:!0});import*as t from"preact";import{dedent as d}from"ts-dedent";var f;function s(e,r){t.Fragment?t.render(e,r):f=t.render(e,r,f)}o(s,"preactRender");var l=o(({showError:e,name:r,title:c,storyFn:i,domElement:a})=>{let n=t.h(i,null);return n||(e({title:`Expecting a Preact element from the story: "${r}" of "${c}".`,description:d`
|
2
|
-
Did you forget to return the Preact element from the story?
|
3
|
-
Use "() => (<MyComp/>)" or "() => { return <MyComp/>; }" when defining the story.
|
4
|
-
`}),null)},"StoryHarness");function g({storyFn:e,title:r,name:c,showMain:i,showError:a,forceRemount:n},p){n&&s(null,p),i(),s(t.h(l,{name:c,title:r,showError:a,storyFn:e,domElement:p}),p)}o(g,"renderToDOM");export{o as a,g as b};
|