@storybook/html 7.0.0-beta.13 → 7.0.0-beta.15
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/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Addon_ClientStoryApi, Addon_Loadable, Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1 } from '@storybook/types';
|
|
2
2
|
export { ArgTypes, Args, Parameters, StrictArgs } from '@storybook/types';
|
|
3
3
|
import { H as HtmlRenderer } from './types-fb08647b.js';
|
|
4
|
-
export { H as HtmlRenderer } from './types-fb08647b.js';
|
|
5
4
|
import 'lib/docs-tools/dist';
|
|
6
5
|
import 'lib/types/dist';
|
|
7
6
|
|
|
@@ -47,4 +46,4 @@ type Decorator<TArgs = StrictArgs> = DecoratorFunction<HtmlRenderer, TArgs>;
|
|
|
47
46
|
type Loader<TArgs = StrictArgs> = LoaderFunction<HtmlRenderer, TArgs>;
|
|
48
47
|
type StoryContext<TArgs = StrictArgs> = StoryContext$1<HtmlRenderer, TArgs>;
|
|
49
48
|
|
|
50
|
-
export { Decorator, Loader, Meta, Story, StoryContext, StoryFn, StoryObj, configure, forceReRender, raw, storiesOf };
|
|
49
|
+
export { Decorator, HtmlRenderer, Loader, Meta, Story, StoryContext, StoryFn, StoryObj, configure, forceReRender, raw, storiesOf };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/html",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.15",
|
|
4
4
|
"description": "Storybook HTML renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
+
"node": "./dist/index.js",
|
|
24
25
|
"require": "./dist/index.js",
|
|
25
26
|
"import": "./dist/index.mjs",
|
|
26
27
|
"types": "./dist/index.d.ts"
|
|
@@ -30,11 +31,7 @@
|
|
|
30
31
|
"import": "./dist/config.mjs",
|
|
31
32
|
"types": "./dist/config.d.ts"
|
|
32
33
|
},
|
|
33
|
-
"./package.json":
|
|
34
|
-
"require": "./package.json",
|
|
35
|
-
"import": "./package.json",
|
|
36
|
-
"types": "./package.json"
|
|
37
|
-
}
|
|
34
|
+
"./package.json": "./package.json"
|
|
38
35
|
},
|
|
39
36
|
"main": "dist/index.js",
|
|
40
37
|
"module": "dist/index.mjs",
|
|
@@ -51,11 +48,11 @@
|
|
|
51
48
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
52
49
|
},
|
|
53
50
|
"dependencies": {
|
|
54
|
-
"@storybook/core-client": "7.0.0-beta.
|
|
55
|
-
"@storybook/docs-tools": "7.0.0-beta.
|
|
51
|
+
"@storybook/core-client": "7.0.0-beta.15",
|
|
52
|
+
"@storybook/docs-tools": "7.0.0-beta.15",
|
|
56
53
|
"@storybook/global": "^5.0.0",
|
|
57
|
-
"@storybook/preview-api": "7.0.0-beta.
|
|
58
|
-
"@storybook/types": "7.0.0-beta.
|
|
54
|
+
"@storybook/preview-api": "7.0.0-beta.15",
|
|
55
|
+
"@storybook/types": "7.0.0-beta.15",
|
|
59
56
|
"ts-dedent": "^2.0.0"
|
|
60
57
|
},
|
|
61
58
|
"devDependencies": {
|
|
@@ -77,5 +74,5 @@
|
|
|
77
74
|
],
|
|
78
75
|
"platform": "browser"
|
|
79
76
|
},
|
|
80
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "ed794f9d13e2bfe696ed2b230a3da04c203519eb"
|
|
81
78
|
}
|
|
@@ -3,7 +3,7 @@ import { createButton } from './Button';
|
|
|
3
3
|
// More on how to set up stories at: https://storybook.js.org/docs/7.0/html/writing-stories/introduction
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Example/Button',
|
|
6
|
-
tags: ['
|
|
6
|
+
tags: ['autodocs'],
|
|
7
7
|
render: ({ label, ...args }) => {
|
|
8
8
|
// You can either use a function to create DOM elements or use a plain html string!
|
|
9
9
|
// return `<div>${label}</div>`;
|
|
@@ -2,8 +2,8 @@ import { createHeader } from './Header';
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Example/Header',
|
|
5
|
-
// This component will have an automatically generated
|
|
6
|
-
tags: ['
|
|
5
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/7.0/html/writing-docs/docs-page
|
|
6
|
+
tags: ['autodocs'],
|
|
7
7
|
render: (args) => createHeader(args),
|
|
8
8
|
parameters: {
|
|
9
9
|
// More on how to position stories at: https://storybook.js.org/docs/7.0/html/configure/story-layout
|
|
@@ -5,7 +5,7 @@ import { createButton } from './Button';
|
|
|
5
5
|
// More on how to set up stories at: https://storybook.js.org/docs/html/writing-stories/introduction#default-export
|
|
6
6
|
const meta: Meta<ButtonProps> = {
|
|
7
7
|
title: 'Example/Button',
|
|
8
|
-
tags: ['
|
|
8
|
+
tags: ['autodocs'],
|
|
9
9
|
render: (args) => {
|
|
10
10
|
// You can either use a function to create DOM elements or use a plain html string!
|
|
11
11
|
// return `<div>${label}</div>`;
|
|
@@ -4,8 +4,8 @@ import { createHeader } from './Header';
|
|
|
4
4
|
|
|
5
5
|
const meta: Meta<HeaderProps> = {
|
|
6
6
|
title: 'Example/Header',
|
|
7
|
-
// This component will have an automatically generated
|
|
8
|
-
tags: ['
|
|
7
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/7.0/html/writing-docs/docs-page
|
|
8
|
+
tags: ['autodocs'],
|
|
9
9
|
render: (args) => createHeader(args),
|
|
10
10
|
parameters: {
|
|
11
11
|
// More on how to position stories at: https://storybook.js.org/docs/7.0/html/configure/story-layout
|