@storybook/tanstack-react 11.0.0-alpha.3 → 11.0.0-alpha.5
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 +2 -2
- package/dist/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as TanStackPreviewOptions, c as IsRoute, d as StoryRouteOptions, i as TanStackParameters, l as RouterParameters, n as FrameworkOptions, o as TanStackTypes, r as StorybookConfig, s as CreateStoryRouteOptions, t as DefaultStoryPath, u as StoryRouteFileOptions } from "./chunk-B0pqNVvJ.js";
|
|
2
2
|
import { ComponentType } from "react";
|
|
3
|
-
import { AddonTypes, InferTypes, MetaInput, MetaTypes,
|
|
3
|
+
import { AddonTypes, InferTypes, MetaInput, MetaTypes, PreviewAddonEntry } from "storybook/internal/csf";
|
|
4
4
|
import { Args, ArgsStoryFn, ComponentAnnotations, DecoratorFunction, Parameters, ProjectAnnotations, StoryAnnotations } from "storybook/internal/types";
|
|
5
5
|
import { AnyRoute } from "@tanstack/react-router";
|
|
6
6
|
import { Meta as Meta$1, ReactMeta, ReactPreview, ReactRenderer, ReactTypes, StoryObj as StoryObj$1 } from "@storybook/react";
|
|
@@ -8,7 +8,7 @@ export * from "@storybook/react";
|
|
|
8
8
|
|
|
9
9
|
//#region code/frameworks/tanstack-react/.dts-emit/code/frameworks/tanstack-react/src/index.d.ts
|
|
10
10
|
type Preview<TRoute extends AnyRoute | undefined = undefined> = ProjectAnnotations<ReactTypes & TanStackTypes<TRoute>>;
|
|
11
|
-
declare function definePreview<TRoute extends AnyRoute | undefined = undefined, const TPath extends DefaultStoryPath<TRoute> = DefaultStoryPath<TRoute>, Addons extends
|
|
11
|
+
declare function definePreview<TRoute extends AnyRoute | undefined = undefined, const TPath extends DefaultStoryPath<TRoute> = DefaultStoryPath<TRoute>, Addons extends PreviewAddonEntry[] = []>(preview: {
|
|
12
12
|
addons?: Addons;
|
|
13
13
|
route?: TRoute;
|
|
14
14
|
} & ProjectAnnotations<ReactTypes & TanStackTypes<NoInfer<TRoute>, TPath> & InferTypes<Addons>>): TanStackPreview<InferTypes<Addons>, TRoute>;
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_s0bp0obrwoj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_s0bp0obrwoj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_s0bp0obrwoj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_s0bp0obrwoj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_s0bp0obrwoj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_s0bp0obrwoj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_s0bp0obrwoj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_s0bp0obrwoj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_s0bp0obrwoj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_s0bp0obrwoj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_s0bp0obrwoj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_s0bp0obrwoj.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/tanstack-react",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.5",
|
|
4
4
|
"description": "Storybook for TanStack (React, Vite): Router and Start ready Storybook framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"!src/**/*"
|
|
76
76
|
],
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@storybook/builder-vite": "11.0.0-alpha.
|
|
79
|
-
"@storybook/react": "11.0.0-alpha.
|
|
80
|
-
"@storybook/react-vite": "11.0.0-alpha.
|
|
78
|
+
"@storybook/builder-vite": "11.0.0-alpha.5",
|
|
79
|
+
"@storybook/react": "11.0.0-alpha.5",
|
|
80
|
+
"@storybook/react-vite": "11.0.0-alpha.5"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@tanstack/react-router": "^1.168.10",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@tanstack/start-client-core": "^1.167.9",
|
|
96
96
|
"react": "^18.0.0 || ^19.0.0",
|
|
97
97
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
98
|
-
"storybook": "^11.0.0-alpha.
|
|
98
|
+
"storybook": "^11.0.0-alpha.5",
|
|
99
99
|
"vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
|
|
100
100
|
},
|
|
101
101
|
"peerDependenciesMeta": {
|