@cedarjs/router 8.0.0-canary.3633 → 8.0.0-canary.3636
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/rsc/rscCss.d.ts +1 -0
- package/dist/rsc/rscCss.d.ts.map +1 -1
- package/dist/rsc/rscCss.js +20 -11
- package/package.json +6 -6
package/dist/rsc/rscCss.d.ts
CHANGED
package/dist/rsc/rscCss.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rscCss.d.ts","sourceRoot":"","sources":["../../src/rsc/rscCss.ts"],"names":[],"mappings":"AAaA,wBAAgB,6BAA6B,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,kBAiCrE"}
|
|
1
|
+
{"version":3,"file":"rscCss.d.ts","sourceRoot":"","sources":["../../src/rsc/rscCss.ts"],"names":[],"mappings":"AAaA,wBAAgB,6BAA6B,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,kBAiCrE;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,yBAgC1E"}
|
package/dist/rsc/rscCss.js
CHANGED
|
@@ -36,18 +36,26 @@ function extractCssMappingFromManifest(manifest) {
|
|
|
36
36
|
const manifestCss = /* @__PURE__ */ new Map();
|
|
37
37
|
const lookupCssAssets = (id) => {
|
|
38
38
|
const assets = [];
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (asset.css) {
|
|
44
|
-
assets.push(...asset.css);
|
|
45
|
-
}
|
|
46
|
-
if (asset.imports) {
|
|
47
|
-
for (const importId of asset.imports) {
|
|
48
|
-
assets.push(...lookupCssAssets(importId));
|
|
39
|
+
const visited = /* @__PURE__ */ new Set();
|
|
40
|
+
const visit = (chunkId) => {
|
|
41
|
+
if (visited.has(chunkId)) {
|
|
42
|
+
return;
|
|
49
43
|
}
|
|
50
|
-
|
|
44
|
+
visited.add(chunkId);
|
|
45
|
+
const asset = manifest[chunkId];
|
|
46
|
+
if (!asset) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (asset.css) {
|
|
50
|
+
assets.push(...asset.css);
|
|
51
|
+
}
|
|
52
|
+
if (asset.imports) {
|
|
53
|
+
for (const importId of asset.imports) {
|
|
54
|
+
visit(importId);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
visit(id);
|
|
51
59
|
return assets;
|
|
52
60
|
};
|
|
53
61
|
for (const key of Object.keys(manifest)) {
|
|
@@ -56,5 +64,6 @@ function extractCssMappingFromManifest(manifest) {
|
|
|
56
64
|
return manifestCss;
|
|
57
65
|
}
|
|
58
66
|
export {
|
|
67
|
+
extractCssMappingFromManifest,
|
|
59
68
|
getRscStylesheetLinkGenerator
|
|
60
69
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/router",
|
|
3
|
-
"version": "8.0.0-canary.
|
|
3
|
+
"version": "8.0.0-canary.3636",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"test:watch": "vitest watch"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@cedarjs/project-config": "8.0.0-canary.
|
|
56
|
-
"@cedarjs/server-store": "8.0.0-canary.
|
|
55
|
+
"@cedarjs/project-config": "8.0.0-canary.3636",
|
|
56
|
+
"@cedarjs/server-store": "8.0.0-canary.3636",
|
|
57
57
|
"react-server-dom-webpack": "19.3.1",
|
|
58
58
|
"ts-toolbelt": "9.6.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@arethetypeswrong/cli": "0.18.5",
|
|
62
|
-
"@cedarjs/auth": "8.0.0-canary.
|
|
63
|
-
"@cedarjs/framework-tools": "8.0.0-canary.
|
|
62
|
+
"@cedarjs/auth": "8.0.0-canary.3636",
|
|
63
|
+
"@cedarjs/framework-tools": "8.0.0-canary.3636",
|
|
64
64
|
"@testing-library/jest-dom": "6.9.1",
|
|
65
65
|
"@types/react": "^19.2.0",
|
|
66
66
|
"@types/react-dom": "^19.2.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"vitest": "5.1.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@cedarjs/auth": "8.0.0-canary.
|
|
77
|
+
"@cedarjs/auth": "8.0.0-canary.3636",
|
|
78
78
|
"react": "19.3.1",
|
|
79
79
|
"react-dom": "19.3.1"
|
|
80
80
|
},
|