@uniformdev/canvas-next-rsc 19.209.0 → 19.210.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 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +5 -1
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -419,6 +419,7 @@ async function generateStaticParams() {
|
|
|
419
419
|
|
|
420
420
|
// src/components/UniformComposition.ts
|
|
421
421
|
import {
|
|
422
|
+
CANVAS_CONTEXTUAL_EDITING_PARAM,
|
|
422
423
|
CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE2,
|
|
423
424
|
CANVAS_EDITOR_STATE as CANVAS_EDITOR_STATE2,
|
|
424
425
|
CANVAS_ENRICHMENT_TAG_PARAM,
|
|
@@ -778,13 +779,16 @@ var UniformComposition = async ({
|
|
|
778
779
|
const state = route.compositionApiResponse.state;
|
|
779
780
|
if (state === CANVAS_DRAFT_STATE2 || state === CANVAS_EDITOR_STATE2) {
|
|
780
781
|
walkNodeTree(route.compositionApiResponse.composition, (node) => {
|
|
782
|
+
var _a, _b;
|
|
781
783
|
if (node.type === "component" && node.node.parameters) {
|
|
784
|
+
const contextualEditing = node.node.parameters[CANVAS_CONTEXTUAL_EDITING_PARAM];
|
|
785
|
+
const editableFields = (_b = (_a = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a.editableParameters) != null ? _b : [];
|
|
782
786
|
Object.keys(node.node.parameters).forEach((key) => {
|
|
783
787
|
const parameter = node.node.parameters[key];
|
|
784
788
|
if (parameter.type === "text") {
|
|
785
789
|
const contextualParameter = parameter;
|
|
786
790
|
contextualParameter._contextualEditing = {
|
|
787
|
-
isEditable:
|
|
791
|
+
isEditable: editableFields.includes(key)
|
|
788
792
|
};
|
|
789
793
|
}
|
|
790
794
|
});
|
package/dist/index.js
CHANGED
|
@@ -805,13 +805,16 @@ var UniformComposition = async ({
|
|
|
805
805
|
const state = route.compositionApiResponse.state;
|
|
806
806
|
if (state === import_canvas8.CANVAS_DRAFT_STATE || state === import_canvas8.CANVAS_EDITOR_STATE) {
|
|
807
807
|
(0, import_canvas8.walkNodeTree)(route.compositionApiResponse.composition, (node) => {
|
|
808
|
+
var _a, _b;
|
|
808
809
|
if (node.type === "component" && node.node.parameters) {
|
|
810
|
+
const contextualEditing = node.node.parameters[import_canvas8.CANVAS_CONTEXTUAL_EDITING_PARAM];
|
|
811
|
+
const editableFields = (_b = (_a = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a.editableParameters) != null ? _b : [];
|
|
809
812
|
Object.keys(node.node.parameters).forEach((key) => {
|
|
810
813
|
const parameter = node.node.parameters[key];
|
|
811
814
|
if (parameter.type === "text") {
|
|
812
815
|
const contextualParameter = parameter;
|
|
813
816
|
contextualParameter._contextualEditing = {
|
|
814
|
-
isEditable:
|
|
817
|
+
isEditable: editableFields.includes(key)
|
|
815
818
|
};
|
|
816
819
|
}
|
|
817
820
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -419,6 +419,7 @@ async function generateStaticParams() {
|
|
|
419
419
|
|
|
420
420
|
// src/components/UniformComposition.ts
|
|
421
421
|
import {
|
|
422
|
+
CANVAS_CONTEXTUAL_EDITING_PARAM,
|
|
422
423
|
CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE2,
|
|
423
424
|
CANVAS_EDITOR_STATE as CANVAS_EDITOR_STATE2,
|
|
424
425
|
CANVAS_ENRICHMENT_TAG_PARAM,
|
|
@@ -778,13 +779,16 @@ var UniformComposition = async ({
|
|
|
778
779
|
const state = route.compositionApiResponse.state;
|
|
779
780
|
if (state === CANVAS_DRAFT_STATE2 || state === CANVAS_EDITOR_STATE2) {
|
|
780
781
|
walkNodeTree(route.compositionApiResponse.composition, (node) => {
|
|
782
|
+
var _a, _b;
|
|
781
783
|
if (node.type === "component" && node.node.parameters) {
|
|
784
|
+
const contextualEditing = node.node.parameters[CANVAS_CONTEXTUAL_EDITING_PARAM];
|
|
785
|
+
const editableFields = (_b = (_a = contextualEditing == null ? void 0 : contextualEditing.value) == null ? void 0 : _a.editableParameters) != null ? _b : [];
|
|
782
786
|
Object.keys(node.node.parameters).forEach((key) => {
|
|
783
787
|
const parameter = node.node.parameters[key];
|
|
784
788
|
if (parameter.type === "text") {
|
|
785
789
|
const contextualParameter = parameter;
|
|
786
790
|
contextualParameter._contextualEditing = {
|
|
787
|
-
isEditable:
|
|
791
|
+
isEditable: editableFields.includes(key)
|
|
788
792
|
};
|
|
789
793
|
}
|
|
790
794
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.210.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.210.0",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^19.210.0",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.210.0",
|
|
67
|
+
"@uniformdev/canvas-react": "19.210.0",
|
|
68
|
+
"@uniformdev/context": "19.210.0",
|
|
69
|
+
"@uniformdev/project-map": "19.210.0",
|
|
70
|
+
"@uniformdev/redirect": "19.210.0",
|
|
71
|
+
"@uniformdev/richtext": "19.210.0",
|
|
72
|
+
"@uniformdev/webhooks": "19.210.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": "0bf0f0eaaae612c7f69b859aa6c78e9b039c496f"
|
|
90
90
|
}
|