@storybook/preact 6.4.0-alpha.37 → 6.4.0-alpha.40
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/cjs/client/preview/types-7-0.js +1 -0
- package/dist/esm/client/preview/types-7-0.js +0 -0
- package/dist/modern/client/preview/types-7-0.js +0 -0
- package/dist/ts3.4/client/preview/types-6-0.d.ts +18 -3
- package/dist/ts3.4/client/preview/types-7-0.d.ts +9 -0
- package/dist/ts3.9/client/preview/types-6-0.d.ts +18 -3
- package/dist/ts3.9/client/preview/types-7-0.d.ts +9 -0
- package/package.json +7 -7
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
File without changes
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AnyComponent } from 'preact';
|
2
|
-
import { Args, ComponentAnnotations,
|
2
|
+
import { Args, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
3
3
|
import { StoryFnPreactReturnType } from './types';
|
4
4
|
export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/csf';
|
5
5
|
export declare type PreactFramework = {
|
@@ -13,8 +13,23 @@ export declare type PreactFramework = {
|
|
13
13
|
*/
|
14
14
|
export declare type Meta<TArgs = Args> = ComponentAnnotations<PreactFramework, TArgs>;
|
15
15
|
/**
|
16
|
-
* Story function that represents a component example.
|
16
|
+
* Story function that represents a CSFv2 component example.
|
17
17
|
*
|
18
18
|
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
19
19
|
*/
|
20
|
-
export declare type
|
20
|
+
export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<PreactFramework, TArgs>;
|
21
|
+
/**
|
22
|
+
* Story function that represents a CSFv3 component example.
|
23
|
+
*
|
24
|
+
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
25
|
+
*/
|
26
|
+
export declare type StoryObj<TArgs = Args> = StoryAnnotations<PreactFramework, TArgs>;
|
27
|
+
/**
|
28
|
+
* Story function that represents a CSFv2 component example.
|
29
|
+
*
|
30
|
+
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
31
|
+
*
|
32
|
+
* NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
|
33
|
+
*
|
34
|
+
*/
|
35
|
+
export declare type Story<TArgs = Args> = StoryFn<TArgs>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Args } from '@storybook/csf';
|
2
|
+
import { StoryObj } from './types-6-0';
|
3
|
+
export { StoryFn, StoryObj, Meta } from './types-6-0';
|
4
|
+
/**
|
5
|
+
* Story function that represents a CSFv3 component example.
|
6
|
+
*
|
7
|
+
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
8
|
+
*/
|
9
|
+
export declare type Story<TArgs = Args> = StoryObj<TArgs>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AnyComponent } from 'preact';
|
2
|
-
import { Args, ComponentAnnotations,
|
2
|
+
import { Args, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
3
3
|
import { StoryFnPreactReturnType } from './types';
|
4
4
|
export type { Args, ArgTypes, Parameters, StoryContext } from '@storybook/csf';
|
5
5
|
export declare type PreactFramework = {
|
@@ -13,8 +13,23 @@ export declare type PreactFramework = {
|
|
13
13
|
*/
|
14
14
|
export declare type Meta<TArgs = Args> = ComponentAnnotations<PreactFramework, TArgs>;
|
15
15
|
/**
|
16
|
-
* Story function that represents a component example.
|
16
|
+
* Story function that represents a CSFv2 component example.
|
17
17
|
*
|
18
18
|
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
19
19
|
*/
|
20
|
-
export declare type
|
20
|
+
export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<PreactFramework, TArgs>;
|
21
|
+
/**
|
22
|
+
* Story function that represents a CSFv3 component example.
|
23
|
+
*
|
24
|
+
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
25
|
+
*/
|
26
|
+
export declare type StoryObj<TArgs = Args> = StoryAnnotations<PreactFramework, TArgs>;
|
27
|
+
/**
|
28
|
+
* Story function that represents a CSFv2 component example.
|
29
|
+
*
|
30
|
+
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
31
|
+
*
|
32
|
+
* NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
|
33
|
+
*
|
34
|
+
*/
|
35
|
+
export declare type Story<TArgs = Args> = StoryFn<TArgs>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Args } from '@storybook/csf';
|
2
|
+
import type { StoryObj } from './types-6-0';
|
3
|
+
export type { StoryFn, StoryObj, Meta } from './types-6-0';
|
4
|
+
/**
|
5
|
+
* Story function that represents a CSFv3 component example.
|
6
|
+
*
|
7
|
+
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
8
|
+
*/
|
9
|
+
export declare type Story<TArgs = Args> = StoryObj<TArgs>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact",
|
3
|
-
"version": "6.4.0-alpha.
|
3
|
+
"version": "6.4.0-alpha.40",
|
4
4
|
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -46,11 +46,11 @@
|
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"@babel/plugin-transform-react-jsx": "^7.12.12",
|
49
|
-
"@storybook/addons": "6.4.0-alpha.
|
50
|
-
"@storybook/core": "6.4.0-alpha.
|
51
|
-
"@storybook/core-common": "6.4.0-alpha.
|
52
|
-
"@storybook/csf": "0.0.2--canary.
|
53
|
-
"@storybook/store": "6.4.0-alpha.
|
49
|
+
"@storybook/addons": "6.4.0-alpha.40",
|
50
|
+
"@storybook/core": "6.4.0-alpha.40",
|
51
|
+
"@storybook/core-common": "6.4.0-alpha.40",
|
52
|
+
"@storybook/csf": "0.0.2--canary.6aca495.0",
|
53
|
+
"@storybook/store": "6.4.0-alpha.40",
|
54
54
|
"@types/webpack-env": "^1.16.0",
|
55
55
|
"core-js": "^3.8.2",
|
56
56
|
"global": "^4.4.0",
|
@@ -74,6 +74,6 @@
|
|
74
74
|
"publishConfig": {
|
75
75
|
"access": "public"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "6b767d7c8f81b45cccd89a224223963fa751ad91",
|
78
78
|
"sbmodern": "dist/modern/client/index.js"
|
79
79
|
}
|