@storybook/html 10.6.0-alpha.0 → 10.6.0-alpha.1
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 +16 -14
- package/dist/preset.js +6 -6
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ArgTypes, Args, Parameters, StrictArgs } from 'storybook/internal/types';
|
|
1
|
+
import { AnnotatedStoryFn, ArgTypes, Args, Args as Args$1, ArgsStoryFn, ComponentAnnotations, DecoratorFunction, LoaderFunction, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Parameters, ProjectAnnotations, StoryAnnotations, StoryContext as StoryContext$1, StrictArgs, StrictArgs as StrictArgs$1, WebRenderer } from "storybook/internal/types";
|
|
3
2
|
|
|
3
|
+
//#region code/renderers/html/.dts-emit/code/renderers/html/src/types.d.ts
|
|
4
4
|
type StoryFnHtmlReturnType = string | Node;
|
|
5
5
|
interface HtmlRenderer extends WebRenderer {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
component: string | HTMLElement | ArgsStoryFn<HtmlRenderer>;
|
|
7
|
+
storyResult: StoryFnHtmlReturnType;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region code/renderers/html/.dts-emit/code/renderers/html/src/public-types.d.ts
|
|
10
11
|
/**
|
|
11
12
|
* Metadata to configure the stories for a component.
|
|
12
13
|
*
|
|
13
14
|
* @see [Default export](https://storybook.js.org/docs/api/csf#default-export)
|
|
14
15
|
*/
|
|
15
|
-
type Meta<TArgs = Args> = ComponentAnnotations<HtmlRenderer, TArgs>;
|
|
16
|
+
type Meta<TArgs = Args$1> = ComponentAnnotations<HtmlRenderer, TArgs>;
|
|
16
17
|
/**
|
|
17
18
|
* Story function that represents a CSFv2 component example.
|
|
18
19
|
*
|
|
19
20
|
* @see [Named Story exports](https://storybook.js.org/docs/api/csf#named-story-exports)
|
|
20
21
|
*/
|
|
21
|
-
type StoryFn<TArgs = Args> = AnnotatedStoryFn<HtmlRenderer, TArgs>;
|
|
22
|
+
type StoryFn<TArgs = Args$1> = AnnotatedStoryFn<HtmlRenderer, TArgs>;
|
|
22
23
|
/**
|
|
23
24
|
* Story object that represents a CSFv3 component example.
|
|
24
25
|
*
|
|
25
26
|
* @see [Named Story exports](https://storybook.js.org/docs/api/csf#named-story-exports)
|
|
26
27
|
*/
|
|
27
|
-
type StoryObj<TArgs = Args> = StoryAnnotations<HtmlRenderer, TArgs>;
|
|
28
|
-
type Decorator<TArgs = StrictArgs> = DecoratorFunction<HtmlRenderer, TArgs>;
|
|
29
|
-
type Loader<TArgs = StrictArgs> = LoaderFunction<HtmlRenderer, TArgs>;
|
|
30
|
-
type StoryContext<TArgs = StrictArgs> = StoryContext$1<HtmlRenderer, TArgs>;
|
|
28
|
+
type StoryObj<TArgs = Args$1> = StoryAnnotations<HtmlRenderer, TArgs>;
|
|
29
|
+
type Decorator<TArgs = StrictArgs$1> = DecoratorFunction<HtmlRenderer, TArgs>;
|
|
30
|
+
type Loader<TArgs = StrictArgs$1> = LoaderFunction<HtmlRenderer, TArgs>;
|
|
31
|
+
type StoryContext<TArgs = StrictArgs$1> = StoryContext$1<HtmlRenderer, TArgs>;
|
|
31
32
|
type Preview = ProjectAnnotations<HtmlRenderer>;
|
|
32
|
-
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region code/renderers/html/.dts-emit/code/renderers/html/src/portable-stories.d.ts
|
|
33
35
|
/**
|
|
34
36
|
* Function that sets the globalConfig of your storybook. The global config is the preview module of
|
|
35
37
|
* your .storybook folder.
|
|
@@ -50,5 +52,5 @@ type Preview = ProjectAnnotations<HtmlRenderer>;
|
|
|
50
52
|
* @param projectAnnotations - E.g. (import projectAnnotations from '../.storybook/preview')
|
|
51
53
|
*/
|
|
52
54
|
declare function setProjectAnnotations(projectAnnotations: NamedOrDefaultProjectAnnotations<any> | NamedOrDefaultProjectAnnotations<any>[]): NormalizedProjectAnnotations<HtmlRenderer>;
|
|
53
|
-
|
|
54
|
-
export { type Decorator, type HtmlRenderer,
|
|
55
|
+
//#endregion
|
|
56
|
+
export { type ArgTypes, type Args, Decorator, type HtmlRenderer, Loader, Meta, type Parameters, Preview, StoryContext, StoryFn, StoryObj, type StrictArgs, setProjectAnnotations };
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_th4q2tu6z4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_th4q2tu6z4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_th4q2tu6z4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_th4q2tu6z4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_th4q2tu6z4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_th4q2tu6z4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/html",
|
|
3
|
-
"version": "10.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.1",
|
|
4
4
|
"description": "Storybook HTML renderer: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"ts-dedent": "^2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"typescript": "^
|
|
51
|
+
"typescript": "^6.0.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"storybook": "^10.6.0-alpha.
|
|
54
|
+
"storybook": "^10.6.0-alpha.1"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|