@uniformdev/canvas-next-rsc 20.39.3-alpha.11 → 20.40.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 +5 -3
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -748,6 +748,7 @@ var UniformComposition = async ({
|
|
|
748
748
|
route,
|
|
749
749
|
...props
|
|
750
750
|
}) => {
|
|
751
|
+
var _a;
|
|
751
752
|
let searchParams;
|
|
752
753
|
let serverContext = void 0;
|
|
753
754
|
if (props.mode === "static") {
|
|
@@ -772,10 +773,10 @@ var UniformComposition = async ({
|
|
|
772
773
|
const state = route.compositionApiResponse.state;
|
|
773
774
|
if (state === CANVAS_DRAFT_STATE2 || state === CANVAS_EDITOR_STATE2) {
|
|
774
775
|
walkNodeTree(route.compositionApiResponse.composition, (node) => {
|
|
775
|
-
var
|
|
776
|
+
var _a2, _b;
|
|
776
777
|
if (node.type === "component" && node.node.parameters) {
|
|
777
778
|
const contextualEditing = node.node.parameters[CANVAS_CONTEXTUAL_EDITING_PARAM];
|
|
778
|
-
const editableFields = (_b = (
|
|
779
|
+
const editableFields = (_b = (_a2 = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a2.editableParameters) != null ? _b : [];
|
|
779
780
|
Object.keys(node.node.parameters).forEach((key) => {
|
|
780
781
|
const parameter = node.node.parameters[key];
|
|
781
782
|
if (parameter.type === "text") {
|
|
@@ -792,7 +793,8 @@ var UniformComposition = async ({
|
|
|
792
793
|
composition: route.compositionApiResponse.composition,
|
|
793
794
|
matchedRoute: route.matchedRoute,
|
|
794
795
|
searchParams,
|
|
795
|
-
|
|
796
|
+
// provide default non-undefined values to avoid serialization issues
|
|
797
|
+
dynamicInputs: (_a = route.dynamicInputs) != null ? _a : {},
|
|
796
798
|
type: "composition",
|
|
797
799
|
isContextualEditing: isIncontextEditingEnabled({ searchParams }),
|
|
798
800
|
isDraftMode: await isDraftModeEnabled({ searchParams }),
|
package/dist/index.js
CHANGED
|
@@ -771,6 +771,7 @@ var UniformComposition = async ({
|
|
|
771
771
|
route,
|
|
772
772
|
...props
|
|
773
773
|
}) => {
|
|
774
|
+
var _a;
|
|
774
775
|
let searchParams;
|
|
775
776
|
let serverContext = void 0;
|
|
776
777
|
if (props.mode === "static") {
|
|
@@ -795,10 +796,10 @@ var UniformComposition = async ({
|
|
|
795
796
|
const state = route.compositionApiResponse.state;
|
|
796
797
|
if (state === import_canvas8.CANVAS_DRAFT_STATE || state === import_canvas8.CANVAS_EDITOR_STATE) {
|
|
797
798
|
(0, import_canvas8.walkNodeTree)(route.compositionApiResponse.composition, (node) => {
|
|
798
|
-
var
|
|
799
|
+
var _a2, _b;
|
|
799
800
|
if (node.type === "component" && node.node.parameters) {
|
|
800
801
|
const contextualEditing = node.node.parameters[import_canvas8.CANVAS_CONTEXTUAL_EDITING_PARAM];
|
|
801
|
-
const editableFields = (_b = (
|
|
802
|
+
const editableFields = (_b = (_a2 = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a2.editableParameters) != null ? _b : [];
|
|
802
803
|
Object.keys(node.node.parameters).forEach((key) => {
|
|
803
804
|
const parameter = node.node.parameters[key];
|
|
804
805
|
if (parameter.type === "text") {
|
|
@@ -815,7 +816,8 @@ var UniformComposition = async ({
|
|
|
815
816
|
composition: route.compositionApiResponse.composition,
|
|
816
817
|
matchedRoute: route.matchedRoute,
|
|
817
818
|
searchParams,
|
|
818
|
-
|
|
819
|
+
// provide default non-undefined values to avoid serialization issues
|
|
820
|
+
dynamicInputs: (_a = route.dynamicInputs) != null ? _a : {},
|
|
819
821
|
type: "composition",
|
|
820
822
|
isContextualEditing: isIncontextEditingEnabled({ searchParams }),
|
|
821
823
|
isDraftMode: await isDraftModeEnabled({ searchParams }),
|
package/dist/index.mjs
CHANGED
|
@@ -748,6 +748,7 @@ var UniformComposition = async ({
|
|
|
748
748
|
route,
|
|
749
749
|
...props
|
|
750
750
|
}) => {
|
|
751
|
+
var _a;
|
|
751
752
|
let searchParams;
|
|
752
753
|
let serverContext = void 0;
|
|
753
754
|
if (props.mode === "static") {
|
|
@@ -772,10 +773,10 @@ var UniformComposition = async ({
|
|
|
772
773
|
const state = route.compositionApiResponse.state;
|
|
773
774
|
if (state === CANVAS_DRAFT_STATE2 || state === CANVAS_EDITOR_STATE2) {
|
|
774
775
|
walkNodeTree(route.compositionApiResponse.composition, (node) => {
|
|
775
|
-
var
|
|
776
|
+
var _a2, _b;
|
|
776
777
|
if (node.type === "component" && node.node.parameters) {
|
|
777
778
|
const contextualEditing = node.node.parameters[CANVAS_CONTEXTUAL_EDITING_PARAM];
|
|
778
|
-
const editableFields = (_b = (
|
|
779
|
+
const editableFields = (_b = (_a2 = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a2.editableParameters) != null ? _b : [];
|
|
779
780
|
Object.keys(node.node.parameters).forEach((key) => {
|
|
780
781
|
const parameter = node.node.parameters[key];
|
|
781
782
|
if (parameter.type === "text") {
|
|
@@ -792,7 +793,8 @@ var UniformComposition = async ({
|
|
|
792
793
|
composition: route.compositionApiResponse.composition,
|
|
793
794
|
matchedRoute: route.matchedRoute,
|
|
794
795
|
searchParams,
|
|
795
|
-
|
|
796
|
+
// provide default non-undefined values to avoid serialization issues
|
|
797
|
+
dynamicInputs: (_a = route.dynamicInputs) != null ? _a : {},
|
|
796
798
|
type: "composition",
|
|
797
799
|
isContextualEditing: isIncontextEditingEnabled({ searchParams }),
|
|
798
800
|
isDraftMode: await isDraftModeEnabled({ searchParams }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.40.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": "20.
|
|
65
|
-
"@uniformdev/canvas-next-rsc-client": "^20.
|
|
66
|
-
"@uniformdev/canvas-next-rsc-shared": "^20.
|
|
67
|
-
"@uniformdev/canvas-react": "20.
|
|
68
|
-
"@uniformdev/context": "20.
|
|
69
|
-
"@uniformdev/project-map": "20.
|
|
70
|
-
"@uniformdev/redirect": "20.
|
|
71
|
-
"@uniformdev/richtext": "20.
|
|
72
|
-
"@uniformdev/webhooks": "20.
|
|
64
|
+
"@uniformdev/canvas": "20.40.0",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^20.40.0",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^20.40.0",
|
|
67
|
+
"@uniformdev/canvas-react": "20.40.0",
|
|
68
|
+
"@uniformdev/context": "20.40.0",
|
|
69
|
+
"@uniformdev/project-map": "20.40.0",
|
|
70
|
+
"@uniformdev/redirect": "20.40.0",
|
|
71
|
+
"@uniformdev/richtext": "20.40.0",
|
|
72
|
+
"@uniformdev/webhooks": "20.40.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": "5a63373f91355d8865feac0d3fc11be59a5e38bd"
|
|
90
90
|
}
|