@cedarjs/router 4.2.0 → 4.2.1-next.258
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-route-loader.d.ts","sourceRoot":"","sources":["../src/active-route-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAG1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAIrC,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,GAAG,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;
|
|
1
|
+
{"version":3,"file":"active-route-loader.d.ts","sourceRoot":"","sources":["../src/active-route-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAG1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAIrC,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,GAAG,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAmCD,eAAO,MAAM,iBAAiB,GAAI,qCAI/B,KAAK,sBAmEP,CAAA"}
|
|
@@ -4,8 +4,8 @@ import { usePageLoadingContext } from "./PageLoadingContext.js";
|
|
|
4
4
|
import { inIframe } from "./util.js";
|
|
5
5
|
let isPrerendered = false;
|
|
6
6
|
if (typeof window !== "undefined") {
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
7
|
+
const cedarAppElement = document.getElementById("cedar-app") ?? document.getElementById("redwood-app");
|
|
8
|
+
if (cedarAppElement && cedarAppElement.children.length > 0) {
|
|
9
9
|
isPrerendered = true;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-route-loader.d.ts","sourceRoot":"","sources":["../../src/active-route-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAG1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAIrC,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,GAAG,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;
|
|
1
|
+
{"version":3,"file":"active-route-loader.d.ts","sourceRoot":"","sources":["../../src/active-route-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAG1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAIrC,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,GAAG,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAmCD,eAAO,MAAM,iBAAiB,GAAI,qCAI/B,KAAK,sBAmEP,CAAA"}
|
|
@@ -37,8 +37,8 @@ var import_PageLoadingContext = require("./PageLoadingContext.js");
|
|
|
37
37
|
var import_util = require("./util.js");
|
|
38
38
|
let isPrerendered = false;
|
|
39
39
|
if (typeof window !== "undefined") {
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
40
|
+
const cedarAppElement = document.getElementById("cedar-app") ?? document.getElementById("redwood-app");
|
|
41
|
+
if (cedarAppElement && cedarAppElement.children.length > 0) {
|
|
42
42
|
isPrerendered = true;
|
|
43
43
|
}
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/router",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1-next.258",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -94,27 +94,28 @@
|
|
|
94
94
|
"test:watch": "vitest watch"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@cedarjs/auth": "4.2.0",
|
|
98
97
|
"@cedarjs/server-store": "4.2.0",
|
|
99
98
|
"react": "18.3.1",
|
|
100
99
|
"react-dom": "18.3.1"
|
|
101
100
|
},
|
|
102
101
|
"devDependencies": {
|
|
103
|
-
"@arethetypeswrong/cli": "0.18.
|
|
104
|
-
"@babel/cli": "7.
|
|
102
|
+
"@arethetypeswrong/cli": "0.18.4",
|
|
103
|
+
"@babel/cli": "7.29.7",
|
|
105
104
|
"@babel/core": "^7.26.10",
|
|
105
|
+
"@cedarjs/auth": "4.2.0",
|
|
106
106
|
"@cedarjs/framework-tools": "4.2.0",
|
|
107
107
|
"@testing-library/jest-dom": "6.9.1",
|
|
108
108
|
"@types/react": "^18.2.55",
|
|
109
109
|
"@types/react-dom": "^18.2.19",
|
|
110
110
|
"concurrently": "9.2.1",
|
|
111
|
-
"publint": "0.3.
|
|
111
|
+
"publint": "0.3.21",
|
|
112
112
|
"tstyche": "5.0.2",
|
|
113
|
-
"tsx": "4.
|
|
113
|
+
"tsx": "4.22.4",
|
|
114
114
|
"typescript": "5.9.3",
|
|
115
|
-
"vitest": "3.2.
|
|
115
|
+
"vitest": "3.2.6"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
|
+
"@cedarjs/auth": "4.2.0",
|
|
118
119
|
"react": "18.3.1",
|
|
119
120
|
"react-dom": "18.3.1"
|
|
120
121
|
},
|