@uniformdev/canvas-next-rsc 19.201.0 → 19.202.0
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/index.esm.js +2 -7
- package/dist/index.js +2 -7
- package/dist/index.mjs +2 -7
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -673,20 +673,15 @@ var ContextTestTransfer = ({ event }) => {
|
|
|
673
673
|
|
|
674
674
|
// src/components/TestServer.ts
|
|
675
675
|
var TestServer = async (props) => {
|
|
676
|
-
var _a, _b, _c, _d
|
|
676
|
+
var _a, _b, _c, _d;
|
|
677
677
|
if ((_a = getServerConfig().ppr) == null ? void 0 : _a.testSuspense) {
|
|
678
678
|
noStore2();
|
|
679
679
|
}
|
|
680
|
-
const { contextInstance, test } = props;
|
|
681
|
-
const isTestDefined = Boolean((_b = contextInstance.manifest.data.project.test) == null ? void 0 : _b[test]);
|
|
682
|
-
if (!isTestDefined && process.env.NODE_ENV !== "production") {
|
|
683
|
-
console.warn(`Test "${test}" is not defined in Uniform manifest.`);
|
|
684
|
-
}
|
|
685
680
|
const { index, event } = runTest(props);
|
|
686
681
|
if (index === null || event === null) {
|
|
687
682
|
return null;
|
|
688
683
|
}
|
|
689
|
-
const component = typeof index === "number" ? (
|
|
684
|
+
const component = typeof index === "number" ? (_d = (_c = (_b = props.slots) == null ? void 0 : _b[CANVAS_TEST_SLOT]) == null ? void 0 : _c.items[index]) != null ? _d : null : null;
|
|
690
685
|
const eventElement = createElement2(ContextTestTransfer, {
|
|
691
686
|
event,
|
|
692
687
|
key: `${props.slotName}-${props.slotIndex}-server-transfer`
|
package/dist/index.js
CHANGED
|
@@ -706,20 +706,15 @@ var ContextTestTransfer = ({ event }) => {
|
|
|
706
706
|
|
|
707
707
|
// src/components/TestServer.ts
|
|
708
708
|
var TestServer = async (props) => {
|
|
709
|
-
var _a, _b, _c, _d
|
|
709
|
+
var _a, _b, _c, _d;
|
|
710
710
|
if ((_a = getServerConfig().ppr) == null ? void 0 : _a.testSuspense) {
|
|
711
711
|
(0, import_cache2.unstable_noStore)();
|
|
712
712
|
}
|
|
713
|
-
const { contextInstance, test } = props;
|
|
714
|
-
const isTestDefined = Boolean((_b = contextInstance.manifest.data.project.test) == null ? void 0 : _b[test]);
|
|
715
|
-
if (!isTestDefined && process.env.NODE_ENV !== "production") {
|
|
716
|
-
console.warn(`Test "${test}" is not defined in Uniform manifest.`);
|
|
717
|
-
}
|
|
718
713
|
const { index, event } = (0, import_canvas_next_rsc_shared5.runTest)(props);
|
|
719
714
|
if (index === null || event === null) {
|
|
720
715
|
return null;
|
|
721
716
|
}
|
|
722
|
-
const component = typeof index === "number" ? (
|
|
717
|
+
const component = typeof index === "number" ? (_d = (_c = (_b = props.slots) == null ? void 0 : _b[import_canvas6.CANVAS_TEST_SLOT]) == null ? void 0 : _c.items[index]) != null ? _d : null : null;
|
|
723
718
|
const eventElement = (0, import_react7.createElement)(ContextTestTransfer, {
|
|
724
719
|
event,
|
|
725
720
|
key: `${props.slotName}-${props.slotIndex}-server-transfer`
|
package/dist/index.mjs
CHANGED
|
@@ -673,20 +673,15 @@ var ContextTestTransfer = ({ event }) => {
|
|
|
673
673
|
|
|
674
674
|
// src/components/TestServer.ts
|
|
675
675
|
var TestServer = async (props) => {
|
|
676
|
-
var _a, _b, _c, _d
|
|
676
|
+
var _a, _b, _c, _d;
|
|
677
677
|
if ((_a = getServerConfig().ppr) == null ? void 0 : _a.testSuspense) {
|
|
678
678
|
noStore2();
|
|
679
679
|
}
|
|
680
|
-
const { contextInstance, test } = props;
|
|
681
|
-
const isTestDefined = Boolean((_b = contextInstance.manifest.data.project.test) == null ? void 0 : _b[test]);
|
|
682
|
-
if (!isTestDefined && process.env.NODE_ENV !== "production") {
|
|
683
|
-
console.warn(`Test "${test}" is not defined in Uniform manifest.`);
|
|
684
|
-
}
|
|
685
680
|
const { index, event } = runTest(props);
|
|
686
681
|
if (index === null || event === null) {
|
|
687
682
|
return null;
|
|
688
683
|
}
|
|
689
|
-
const component = typeof index === "number" ? (
|
|
684
|
+
const component = typeof index === "number" ? (_d = (_c = (_b = props.slots) == null ? void 0 : _b[CANVAS_TEST_SLOT]) == null ? void 0 : _c.items[index]) != null ? _d : null : null;
|
|
690
685
|
const eventElement = createElement2(ContextTestTransfer, {
|
|
691
686
|
event,
|
|
692
687
|
key: `${props.slotName}-${props.slotIndex}-server-transfer`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.202.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"react-dom": "18.3.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@uniformdev/canvas": "19.
|
|
65
|
-
"@uniformdev/canvas-next-rsc-client": "^19.
|
|
66
|
-
"@uniformdev/canvas-next-rsc-shared": "^19.
|
|
67
|
-
"@uniformdev/canvas-react": "19.
|
|
68
|
-
"@uniformdev/context": "19.
|
|
69
|
-
"@uniformdev/project-map": "19.
|
|
70
|
-
"@uniformdev/redirect": "19.
|
|
71
|
-
"@uniformdev/richtext": "19.
|
|
72
|
-
"@uniformdev/webhooks": "19.
|
|
64
|
+
"@uniformdev/canvas": "19.202.0",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^19.202.0",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.202.0",
|
|
67
|
+
"@uniformdev/canvas-react": "19.202.0",
|
|
68
|
+
"@uniformdev/context": "19.202.0",
|
|
69
|
+
"@uniformdev/project-map": "19.202.0",
|
|
70
|
+
"@uniformdev/redirect": "19.202.0",
|
|
71
|
+
"@uniformdev/richtext": "19.202.0",
|
|
72
|
+
"@uniformdev/webhooks": "19.202.0",
|
|
73
73
|
"@vercel/edge-config": "^0.4.0",
|
|
74
74
|
"encoding": "^0.1.13",
|
|
75
75
|
"server-only": "^0.0.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "133a9ea4d2d3794e2d05ad8277f6bb3803d109d7"
|
|
90
90
|
}
|