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