@uniformdev/canvas-next-rsc 20.39.3-alpha.11 → 20.41.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 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 _a, _b;
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 = (_a = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a.editableParameters) != null ? _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
- dynamicInputs: route.dynamicInputs,
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 _a, _b;
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 = (_a = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a.editableParameters) != null ? _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
- dynamicInputs: route.dynamicInputs,
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 _a, _b;
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 = (_a = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a.editableParameters) != null ? _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
- dynamicInputs: route.dynamicInputs,
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.39.3-alpha.11+b3ab5fb305",
3
+ "version": "20.41.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.39.3-alpha.11+b3ab5fb305",
65
- "@uniformdev/canvas-next-rsc-client": "^20.39.3-alpha.11+b3ab5fb305",
66
- "@uniformdev/canvas-next-rsc-shared": "^20.39.3-alpha.11+b3ab5fb305",
67
- "@uniformdev/canvas-react": "20.39.3-alpha.11+b3ab5fb305",
68
- "@uniformdev/context": "20.39.3-alpha.11+b3ab5fb305",
69
- "@uniformdev/project-map": "20.39.3-alpha.11+b3ab5fb305",
70
- "@uniformdev/redirect": "20.39.3-alpha.11+b3ab5fb305",
71
- "@uniformdev/richtext": "20.39.3-alpha.11+b3ab5fb305",
72
- "@uniformdev/webhooks": "20.39.3-alpha.11+b3ab5fb305",
64
+ "@uniformdev/canvas": "20.41.0",
65
+ "@uniformdev/canvas-next-rsc-client": "^20.41.0",
66
+ "@uniformdev/canvas-next-rsc-shared": "^20.41.0",
67
+ "@uniformdev/canvas-react": "20.41.0",
68
+ "@uniformdev/context": "20.41.0",
69
+ "@uniformdev/project-map": "20.41.0",
70
+ "@uniformdev/redirect": "20.41.0",
71
+ "@uniformdev/richtext": "20.41.0",
72
+ "@uniformdev/webhooks": "20.41.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": "b3ab5fb305533690de4bbd859a69196b6c26ee2f"
89
+ "gitHead": "0ec454ba75fa0b042566d38359e1db3bca61c30d"
90
90
  }