@storybook/tanstack-react 10.4.0-alpha.17 → 10.4.0-alpha.18

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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_fmhd7e5wemi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_fmhd7e5wemi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_fmhd7e5wemi from "node:module";
1
+ import CJS_COMPAT_NODE_URL_846xwv5762j from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_846xwv5762j from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_846xwv5762j from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_fmhd7e5wemi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_fmhd7e5wemi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_fmhd7e5wemi.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_846xwv5762j.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_846xwv5762j.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_846xwv5762j.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/preset.d.ts CHANGED
@@ -3,6 +3,7 @@ import { StorybookConfigVite } from '@storybook/builder-vite';
3
3
 
4
4
  declare const core: PresetProperty<'core'>;
5
5
  declare const previewAnnotations: PresetProperty<'previewAnnotations'>;
6
+ declare const optimizeViteDeps: string[];
6
7
  declare const viteFinal: StorybookConfigVite['viteFinal'];
7
8
 
8
- export { core, previewAnnotations, viteFinal };
9
+ export { core, optimizeViteDeps, previewAnnotations, viteFinal };
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_fmhd7e5wemi from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_fmhd7e5wemi from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_fmhd7e5wemi from "node:module";
1
+ import CJS_COMPAT_NODE_URL_846xwv5762j from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_846xwv5762j from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_846xwv5762j from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_fmhd7e5wemi.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_fmhd7e5wemi.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_fmhd7e5wemi.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_846xwv5762j.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_846xwv5762j.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_846xwv5762j.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -370,6 +370,10 @@ var core = async (config, options) => {
370
370
  }, previewAnnotations = (entry = []) => [
371
371
  ...entry,
372
372
  fileURLToPath(import.meta.resolve("@storybook/tanstack-react/preview"))
373
+ ], optimizeViteDeps = [
374
+ "@tanstack/react-store",
375
+ "@tanstack/react-router > @tanstack/react-store",
376
+ "use-sync-external-store/shim/with-selector"
373
377
  ], viteFinal = async (config, options) => {
374
378
  let reactConfig = await reactViteFinal(config, options), isTanStackStartPlugin = (p) => {
375
379
  if (Array.isArray(p))
@@ -393,6 +397,7 @@ var core = async (config, options) => {
393
397
  };
394
398
  export {
395
399
  core,
400
+ optimizeViteDeps,
396
401
  previewAnnotations,
397
402
  viteFinal
398
403
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/tanstack-react",
3
- "version": "10.4.0-alpha.17",
3
+ "version": "10.4.0-alpha.18",
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": "10.4.0-alpha.17",
79
- "@storybook/react": "10.4.0-alpha.17",
80
- "@storybook/react-vite": "10.4.0-alpha.17"
78
+ "@storybook/builder-vite": "10.4.0-alpha.18",
79
+ "@storybook/react": "10.4.0-alpha.18",
80
+ "@storybook/react-vite": "10.4.0-alpha.18"
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": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
97
97
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
98
- "storybook": "^10.4.0-alpha.17",
98
+ "storybook": "^10.4.0-alpha.18",
99
99
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
100
100
  },
101
101
  "peerDependenciesMeta": {