storybook-framework-cedarjs 7.0.0 → 7.0.1-next.307
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/preset.d.ts.map +1 -1
- package/dist/preset.js +13 -32
- package/dist/types.d.ts +0 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/preset.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAIA,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,
|
|
1
|
+
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAIA,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,CAqJlD,CAAA"}
|
package/dist/preset.js
CHANGED
|
@@ -37,21 +37,6 @@ const viteFinal = async (config) => {
|
|
|
37
37
|
alias: {
|
|
38
38
|
"~__CEDAR__USER_ROUTES_FOR_MOCK": cedarProjectPaths.web.routes,
|
|
39
39
|
"~__CEDAR__USER_WEB_SRC": cedarProjectPaths.web.src,
|
|
40
|
-
// @cedarjs/web imports @apollo/client via explicit .cjs sub-paths
|
|
41
|
-
// (e.g. `@apollo/client/cache/cache.cjs`). In a Node.js / tsc build
|
|
42
|
-
// context these resolve fine, but Vite (ESM-first, browser target)
|
|
43
|
-
// falls back to a ?import CJS interop that can't statically detect
|
|
44
|
-
// named exports, causing runtime SyntaxErrors. Alias the .cjs paths
|
|
45
|
-
// to their package-root equivalents so Vite resolves them through
|
|
46
|
-
// Apollo's package.json `exports` field and picks up the ESM build.
|
|
47
|
-
"@apollo/client/cache/cache.cjs": "@apollo/client/cache",
|
|
48
|
-
"@apollo/client/core/core.cjs": "@apollo/client/core",
|
|
49
|
-
"@apollo/client/link/context/context.cjs": "@apollo/client/link/context",
|
|
50
|
-
"@apollo/client/link/core/core.cjs": "@apollo/client/link/core",
|
|
51
|
-
"@apollo/client/link/persisted-queries/persisted-queries.cjs": "@apollo/client/link/persisted-queries",
|
|
52
|
-
"@apollo/client/react/hooks/hooks.cjs": "@apollo/client/react/hooks",
|
|
53
|
-
"@apollo/client/react/react.cjs": "@apollo/client/react",
|
|
54
|
-
"@apollo/client/utilities/utilities.cjs": "@apollo/client/utilities",
|
|
55
40
|
// graphql ships CJS-only; alias the explicit sub-path to the package
|
|
56
41
|
// root so Vite resolves it through the exports field (ESM build).
|
|
57
42
|
"graphql/language/printer.js": "graphql"
|
|
@@ -79,24 +64,20 @@ const viteFinal = async (config) => {
|
|
|
79
64
|
// storybook-framework-cedarjs (excluded above). Without this, Vite serves
|
|
80
65
|
// them via ?import interop, which can't detect named exports in CJS files.
|
|
81
66
|
//
|
|
82
|
-
// Also pre-bundle the Apollo
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
// itself, so this list is valid for all Cedar apps, not just the test
|
|
89
|
-
// project.
|
|
67
|
+
// Also pre-bundle the Apollo entry points that @cedarjs/web imports.
|
|
68
|
+
// Without this, Vite discovers them on the first page load and
|
|
69
|
+
// triggers a mid-session reload, which tears down the
|
|
70
|
+
// StorybookProvider's Apollo context and breaks nested-Cell stories.
|
|
71
|
+
// These are structural deps of @cedarjs/web itself, so this list is
|
|
72
|
+
// valid for all Cedar apps, not just the test project.
|
|
90
73
|
include: [
|
|
91
|
-
"
|
|
92
|
-
"@apollo/client/cache
|
|
93
|
-
"@apollo/client/
|
|
94
|
-
"@apollo/client/link/
|
|
95
|
-
"@apollo/client/
|
|
96
|
-
"@apollo/client/
|
|
97
|
-
"
|
|
98
|
-
"@apollo/client/react/react.cjs",
|
|
99
|
-
"@apollo/client/utilities/utilities.cjs",
|
|
74
|
+
"@apollo/client",
|
|
75
|
+
"@apollo/client/cache",
|
|
76
|
+
"@apollo/client/link/context",
|
|
77
|
+
"@apollo/client/link/persisted-queries",
|
|
78
|
+
"@apollo/client/react",
|
|
79
|
+
"@apollo/client/utilities",
|
|
80
|
+
"rxjs",
|
|
100
81
|
"graphql/language/printer.js",
|
|
101
82
|
// Pre-bundle @cedarjs/testing and graphql-tag so they don't cause
|
|
102
83
|
// mid-session reloads when StorybookProvider loads mock files.
|
package/dist/types.d.ts
CHANGED
|
@@ -5,14 +5,6 @@ type BuilderName = '@storybook/builder-vite';
|
|
|
5
5
|
export type FrameworkOptions = {
|
|
6
6
|
builder?: BuilderOptions;
|
|
7
7
|
strictMode?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Use React's legacy root API to mount components
|
|
10
|
-
* @description
|
|
11
|
-
* React has introduced a new root API with React 18.x to enable a whole set of new features (e.g. concurrent features)
|
|
12
|
-
* If this flag is true, the legacy Root API is used to mount components to make it easier to migrate step by step to React 18.
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
legacyRootApi?: boolean;
|
|
16
8
|
};
|
|
17
9
|
type StorybookConfigFramework = {
|
|
18
10
|
framework: FrameworkName | {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],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;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": "7.0.
|
|
3
|
+
"version": "7.0.1-next.307",
|
|
4
4
|
"description": "Storybook for CedarJS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Storybook",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"test:watch": "vitest watch"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@cedarjs/testing": "7.0.
|
|
52
|
+
"@cedarjs/testing": "7.0.1-next.307",
|
|
53
53
|
"@rollup/pluginutils": "5.4.0",
|
|
54
54
|
"@storybook/addon-essentials": "8.6.14",
|
|
55
55
|
"@storybook/builder-vite": "8.6.18",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"vitest": "4.1.11"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@cedarjs/project-config": "7.0.
|
|
72
|
-
"@cedarjs/router": "7.0.
|
|
73
|
-
"react": "
|
|
74
|
-
"react-dom": "
|
|
71
|
+
"@cedarjs/project-config": "7.0.1-next.307",
|
|
72
|
+
"@cedarjs/router": "7.0.1-next.307",
|
|
73
|
+
"react": "19.3.0",
|
|
74
|
+
"react-dom": "19.3.0",
|
|
75
75
|
"storybook": "8.6.18"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|