@storybook/server 10.6.0-alpha.0 → 10.6.0-alpha.2

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,34 +1,34 @@
1
- import { WebRenderer, Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations } from 'storybook/internal/types';
2
- export { ArgTypes, Args, Parameters, StrictArgs } from 'storybook/internal/types';
1
+ import { AnnotatedStoryFn, ArgTypes, Args, Args as Args$1, ComponentAnnotations, DecoratorFunction, LoaderFunction, Parameters, ProjectAnnotations, StoryAnnotations, StoryContext as StoryContext$1, StrictArgs, StrictArgs as StrictArgs$1, WebRenderer } from "storybook/internal/types";
3
2
 
3
+ //#region code/renderers/server/.dts-emit/code/renderers/server/src/types.d.ts
4
4
  type StoryFnServerReturnType = any;
5
5
  interface ServerRenderer extends WebRenderer {
6
- component: string;
7
- storyResult: StoryFnServerReturnType;
6
+ component: string;
7
+ storyResult: StoryFnServerReturnType;
8
8
  }
9
-
9
+ //#endregion
10
+ //#region code/renderers/server/.dts-emit/code/renderers/server/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<ServerRenderer, TArgs>;
16
+ type Meta<TArgs = Args$1> = ComponentAnnotations<ServerRenderer, 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<ServerRenderer, TArgs>;
22
+ type StoryFn<TArgs = Args$1> = AnnotatedStoryFn<ServerRenderer, 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<ServerRenderer, TArgs>;
28
-
29
- type Decorator<TArgs = StrictArgs> = DecoratorFunction<ServerRenderer, TArgs>;
30
- type Loader<TArgs = StrictArgs> = LoaderFunction<ServerRenderer, TArgs>;
31
- type StoryContext<TArgs = StrictArgs> = StoryContext$1<ServerRenderer, TArgs>;
28
+ type StoryObj<TArgs = Args$1> = StoryAnnotations<ServerRenderer, TArgs>;
29
+ type Decorator<TArgs = StrictArgs$1> = DecoratorFunction<ServerRenderer, TArgs>;
30
+ type Loader<TArgs = StrictArgs$1> = LoaderFunction<ServerRenderer, TArgs>;
31
+ type StoryContext<TArgs = StrictArgs$1> = StoryContext$1<ServerRenderer, TArgs>;
32
32
  type Preview = ProjectAnnotations<ServerRenderer>;
33
-
34
- export type { Decorator, Loader, Meta, Preview, ServerRenderer, StoryContext, StoryFn, StoryObj };
33
+ //#endregion
34
+ export { type ArgTypes, type Args, Decorator, Loader, Meta, type Parameters, Preview, type ServerRenderer, StoryContext, StoryFn, StoryObj, type StrictArgs };
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_z7w7wrrx4jc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_z7w7wrrx4jc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_z7w7wrrx4jc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9s3iqltwthl from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9s3iqltwthl from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9s3iqltwthl from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_z7w7wrrx4jc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_z7w7wrrx4jc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_z7w7wrrx4jc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9s3iqltwthl.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9s3iqltwthl.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9s3iqltwthl.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/server",
3
- "version": "10.6.0-alpha.0",
3
+ "version": "10.6.0-alpha.2",
4
4
  "description": "Storybook Server renderer: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -47,10 +47,10 @@
47
47
  "yaml": "^2.8.1"
48
48
  },
49
49
  "devDependencies": {
50
- "typescript": "^5.8.3"
50
+ "typescript": "^6.0.3"
51
51
  },
52
52
  "peerDependencies": {
53
- "storybook": "^10.6.0-alpha.0"
53
+ "storybook": "^10.6.0-alpha.2"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"