storybook-framework-cedarjs 1.0.0-canary.12741 → 1.0.0-canary.12743

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Storybook for CedarJS
2
2
 
3
3
  Storybook Framework package for CedarJS. Uses the `@storybook/builder-vite`
4
- builder and `@storybook/react` renderer.
4
+ builder and `@storybook/react-vite` renderer.
5
5
 
6
6
  Intended to be used alongside the
7
7
  [CLI package](../cli-packages/storybook-vite/README.md), which handles the
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ export * from '@storybook/react';
2
+ export { __definePreview as definePreview } from '@storybook/react';
1
3
  export * from './types.js';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,eAAe,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEnE,cAAc,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -1 +1,6 @@
1
+ export * from "@storybook/react";
2
+ import { __definePreview } from "@storybook/react";
1
3
  export * from "./types.js";
4
+ export {
5
+ __definePreview as definePreview
6
+ };
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { PresetProperty } from '@storybook/types';
1
+ import type { PresetProperty } from 'storybook/internal/types';
2
2
  import type { StorybookConfig } from './types.js';
3
3
  export declare const core: PresetProperty<'core'>;
4
4
  export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1 +1 @@
1
- {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAUtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAWjD,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,MAAM,CAGvC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,oBAAoB,CAKpE,CAAA;AAID,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,WAAW,CA6BlD,CAAA"}
1
+ {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAU9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAWjD,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,MAAM,CAGvC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,oBAAoB,CAKpE,CAAA;AAID,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,WAAW,CA8BlD,CAAA"}
package/dist/preset.js CHANGED
@@ -39,15 +39,16 @@ const viteFinal = async (config) => {
39
39
  "~__REDWOOD__USER_WEB_SRC": cedarProjectPaths.web.src
40
40
  }
41
41
  },
42
- optimizeDeps: {
43
- // Without this, on first run, Vite throws: `The file does not exist at
44
- // "{project path}/web/node_modules/.cache/sb-vite/deps/DocsRenderer-NNNQARDV-DEXCJJZJ.js?v=c640a8fa"
45
- // which is in the optimize deps directory.`
46
- // This refers to @storybook/addon-docs, which is included as part of @storybook/addon-essentials.
47
- // the docs addon then includes itself here: https://github.com/storybookjs/storybook/blob/a496ec48c708eed753a5251d55fa07947a869e62/code/addons/docs/src/preset.ts#L198C3-L198C27
48
- // which I believe gets included by the builder here: https://github.com/storybookjs/storybook/blob/a496ec48c708eed753a5251d55fa07947a869e62/code/builders/builder-vite/src/optimizeDeps.ts#L117
49
- // TODO: Figure out why this error is being thrown so that this can be removed.
50
- exclude: ["@storybook/addon-docs"]
42
+ server: {
43
+ // CI was flaky. Sometimes the Storybook tests would pass, sometimes they
44
+ // wouldn't.
45
+ // If the dev server starts serving requests before optimization
46
+ // completes, it causes intermittent ESM/CJS loading errors, which locally
47
+ // shows up as an infinite loading spinner in the web browser, and an
48
+ // error in the browser console about missing exports.
49
+ // Disabling pre-transform ensures the server waits for optimization to
50
+ // complete before processing requests.
51
+ preTransformRequests: false
51
52
  }
52
53
  });
53
54
  };
package/dist/preview.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Addon_DecoratorFunction, Addon_Loader } from '@storybook/types';
1
+ import type { Addon_DecoratorFunction, Addon_Loader } from 'storybook/internal/types';
2
2
  declare const _default: {
3
3
  decorators: Addon_DecoratorFunction<any>[];
4
4
  loaders: Addon_Loader<any>[];
@@ -1 +1 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../src/preview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;;;;;AAY7E,wBAGC"}
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../src/preview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EACb,MAAM,0BAA0B,CAAA;;;;;AAYjC,wBAGC"}
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { default as docgenTypescript } from '@joshwooding/vite-plugin-react-docgen-typescript';
2
2
  import type { StorybookConfigVite, BuilderOptions } from '@storybook/builder-vite';
3
- import type { StorybookConfig as StorybookConfigBase, TypescriptOptions as TypescriptOptionsBase } from '@storybook/types';
3
+ import type { StorybookConfig as StorybookConfigBase, TypescriptOptions as TypescriptOptionsBase } from 'storybook/internal/types';
4
4
  type FrameworkName = 'storybook-framework-cedarjs';
5
5
  type BuilderName = '@storybook/builder-vite';
6
6
  export type FrameworkOptions = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names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A;CAC/D,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,mBAAmB,EACnB,MAAM,mBAAmB,GAAG,MAAM,wBAAwB,GAAG,YAAY,CAC1E,GACC,mBAAmB,GACnB,wBAAwB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;CACxC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-framework-cedarjs",
3
- "version": "1.0.0-canary.12741+5891fafb6",
3
+ "version": "1.0.0-canary.12743+3d4deaa2e",
4
4
  "description": "Storybook for CedarJS",
5
5
  "keywords": [
6
6
  "Storybook",
@@ -52,19 +52,19 @@
52
52
  "test:watch": "vitest watch"
53
53
  },
54
54
  "dependencies": {
55
- "@cedarjs/testing": "1.0.0-canary.12741",
55
+ "@cedarjs/testing": "1.0.0-canary.12743",
56
56
  "@joshwooding/vite-plugin-react-docgen-typescript": "0.6.2",
57
57
  "@rollup/pluginutils": "5.1.4",
58
- "@storybook/addon-essentials": "8.6.14",
59
- "@storybook/builder-vite": "8.6.14",
60
- "@storybook/react": "8.6.14",
58
+ "@storybook/addon-docs": "9.1.16",
59
+ "@storybook/builder-vite": "9.1.16",
60
+ "@storybook/react-vite": "9.1.16",
61
+ "empathic": "2.0.0",
61
62
  "magic-string": "0.30.18",
62
63
  "react-docgen": "7.0.3",
63
64
  "unplugin-auto-import": "19.3.0",
64
65
  "vite-plugin-node-polyfills": "0.23.0"
65
66
  },
66
67
  "devDependencies": {
67
- "@storybook/types": "8.6.14",
68
68
  "@types/node": "20.19.17",
69
69
  "tsx": "4.20.5",
70
70
  "typescript": "5.9.2",
@@ -72,11 +72,11 @@
72
72
  "vitest": "3.2.4"
73
73
  },
74
74
  "peerDependencies": {
75
- "@cedarjs/project-config": "1.0.0-canary.12741",
76
- "@cedarjs/router": "1.0.0-canary.12741",
75
+ "@cedarjs/project-config": "1.0.0-canary.12743",
76
+ "@cedarjs/router": "1.0.0-canary.12743",
77
77
  "react": "19.0.0-rc-f2df5694-20240916",
78
78
  "react-dom": "19.0.0-rc-f2df5694-20240916",
79
- "storybook": "8.6.14"
79
+ "storybook": "9.1.16"
80
80
  },
81
81
  "engines": {
82
82
  "node": "=20.x"
@@ -91,5 +91,5 @@
91
91
  ],
92
92
  "platform": "node"
93
93
  },
94
- "gitHead": "5891fafb6da8e09fb2b78b11bd054e571f5a0b04"
94
+ "gitHead": "3d4deaa2e6765ce031ebfab6db2cef73c2d2a45b"
95
95
  }