@storybook/preact 7.0.0-alpha.47 → 7.0.0-alpha.48
Sign up to get free protection for your applications and to get access to all the features.
package/dist/config.d.ts
CHANGED
@@ -6,6 +6,9 @@ declare const render: ArgsStoryFn<PreactFramework>;
|
|
6
6
|
declare function renderToDOM({ storyFn, title, name, showMain, showError, forceRemount }: Store_RenderContext<PreactFramework>, domElement: Element): void;
|
7
7
|
|
8
8
|
declare const parameters: {
|
9
|
+
docs: {
|
10
|
+
inlineStories: boolean;
|
11
|
+
};
|
9
12
|
framework: "preact";
|
10
13
|
};
|
11
14
|
|
package/dist/config.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var h=Object.create;var m=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var g=(e,r)=>{for(var t in r)m(e,t,{get:r[t],enumerable:!0})},c=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of F(r))!S.call(e,a)&&a!==t&&m(e,a,{get:()=>r[a],enumerable:!(o=w(r,a))||o.enumerable});return e};var P=(e,r,t)=>(t=e!=null?h(x(e)):{},c(r||!e||!e.__esModule?m(t,"default",{value:e,enumerable:!0}):t,e)),E=e=>c(m({},"__esModule",{value:!0}),e);var M={};g(M,{parameters:()=>R,render:()=>f,renderToDOM:()=>u});module.exports=E(M);var i={docs:{inlineStories:!0}};var n=P(require("preact")),y=require("ts-dedent"),{h:k}=n,f=(e,r)=>{let{id:t,component:o}=r;if(!o)throw new Error(`Unable to render story ${t} as the component annotation is missing from the default export`);return k(o,{...e})},d;function l(e,r){n.Fragment?n.render(e,r):d=n.render(e,r,d)}var C=({showError:e,name:r,title:t,storyFn:o,domElement:a})=>{let s=n.h(o,null);return s||(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)};function
|
4
|
+
`}),null)};function u({storyFn:e,title:r,name:t,showMain:o,showError:a,forceRemount:s},p){s&&l(null,p),o(),l(n.h(C,{name:t,title:r,showError:a,storyFn:e,domElement:p}),p)}var R={framework:"preact",...i};0&&(module.exports={parameters,render,renderToDOM});
|
package/dist/config.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{a as
|
1
|
+
import{a as e,b as o}from"./chunk-VVPUC5MQ.mjs";var r={docs:{inlineStories:!0}};var m={framework:"preact",...r};export{m as parameters,e as render,o as renderToDOM};
|
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.48",
|
4
4
|
"description": "Storybook Preact renderer",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -51,10 +51,10 @@
|
|
51
51
|
"prep": "../../../scripts/prepare/bundle.ts"
|
52
52
|
},
|
53
53
|
"dependencies": {
|
54
|
-
"@storybook/addons": "7.0.0-alpha.
|
55
|
-
"@storybook/core-client": "7.0.0-alpha.
|
56
|
-
"@storybook/store": "7.0.0-alpha.
|
57
|
-
"@storybook/types": "7.0.0-alpha.
|
54
|
+
"@storybook/addons": "7.0.0-alpha.48",
|
55
|
+
"@storybook/core-client": "7.0.0-alpha.48",
|
56
|
+
"@storybook/store": "7.0.0-alpha.48",
|
57
|
+
"@storybook/types": "7.0.0-alpha.48",
|
58
58
|
"global": "^4.4.0",
|
59
59
|
"react": "16.14.0",
|
60
60
|
"react-dom": "16.14.0",
|
@@ -80,5 +80,5 @@
|
|
80
80
|
],
|
81
81
|
"platform": "browser"
|
82
82
|
},
|
83
|
-
"gitHead": "
|
83
|
+
"gitHead": "b58a29b785462f8a8b711b6bb2d7223fd6dc17fd"
|
84
84
|
}
|
@@ -4,6 +4,8 @@ import { Button } from './Button';
|
|
4
4
|
export default {
|
5
5
|
title: 'Example/Button',
|
6
6
|
component: Button,
|
7
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/preact/writing-docs/docs-page
|
8
|
+
tags: ['docsPage'],
|
7
9
|
// More on argTypes: https://storybook.js.org/docs/preact/api/argtypes
|
8
10
|
argTypes: {
|
9
11
|
backgroundColor: { control: 'color' },
|
@@ -3,6 +3,8 @@ import { Header } from './Header';
|
|
3
3
|
export default {
|
4
4
|
title: 'Example/Header',
|
5
5
|
component: Header,
|
6
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/preact/writing-docs/docs-page
|
7
|
+
tags: ['docsPage'],
|
6
8
|
parameters: {
|
7
9
|
// More on Story layout: https://storybook.js.org/docs/preact/configure/story-layout
|
8
10
|
layout: 'fullscreen',
|