@uniformdev/canvas-react 19.42.1-alpha.7 → 19.45.1

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
@@ -333,7 +333,7 @@ function ContextualEditingComponentWrapper({
333
333
  var _a, _b, _c, _d, _e;
334
334
  const isPlaceholder = (component == null ? void 0 : component._id) === PLACEHOLDER_ID;
335
335
  const { isContextualEditing } = useUniformCurrentComposition();
336
- const isEditable = ((_a = component == null ? void 0 : component._contextualEditing) == null ? void 0 : _a.isEditable) ? "true" : void 0;
336
+ const isReadOnly = ((_a = component == null ? void 0 : component._contextualEditing) == null ? void 0 : _a.isEditable) ? void 0 : "true";
337
337
  return !isContextualEditing ? /* @__PURE__ */ React4.createElement(React4.Fragment, null, children) : isPlaceholder && emptyPlaceholder === null ? null : /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
338
338
  "script",
339
339
  {
@@ -348,7 +348,7 @@ function ContextualEditingComponentWrapper({
348
348
  "data-is-placeholder": isPlaceholder ? "true" : void 0,
349
349
  "data-is-localized": ((_b = component == null ? void 0 : component.parameters) == null ? void 0 : _b[CANVAS_LOCALE_TAG_PARAM]) ? "true" : void 0,
350
350
  "data-component-title": (_e = (_d = (_c = component == null ? void 0 : component.parameters) == null ? void 0 : _c.title) == null ? void 0 : _d.value) != null ? _e : "",
351
- "data-is-editable": isEditable
351
+ "data-is-readonly": isReadOnly
352
352
  }
353
353
  ), isPlaceholder && emptyPlaceholder !== void 0 ? emptyPlaceholder : children, /* @__PURE__ */ React4.createElement("script", { "data-role": IN_CONTEXT_EDITOR_COMPONENT_END_ROLE }));
354
354
  }
package/dist/index.js CHANGED
@@ -365,7 +365,7 @@ function ContextualEditingComponentWrapper({
365
365
  var _a, _b, _c, _d, _e;
366
366
  const isPlaceholder = (component == null ? void 0 : component._id) === import_canvas4.PLACEHOLDER_ID;
367
367
  const { isContextualEditing } = useUniformCurrentComposition();
368
- const isEditable = ((_a = component == null ? void 0 : component._contextualEditing) == null ? void 0 : _a.isEditable) ? "true" : void 0;
368
+ const isReadOnly = ((_a = component == null ? void 0 : component._contextualEditing) == null ? void 0 : _a.isEditable) ? void 0 : "true";
369
369
  return !isContextualEditing ? /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, children) : isPlaceholder && emptyPlaceholder === null ? null : /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(
370
370
  "script",
371
371
  {
@@ -380,7 +380,7 @@ function ContextualEditingComponentWrapper({
380
380
  "data-is-placeholder": isPlaceholder ? "true" : void 0,
381
381
  "data-is-localized": ((_b = component == null ? void 0 : component.parameters) == null ? void 0 : _b[import_canvas4.CANVAS_LOCALE_TAG_PARAM]) ? "true" : void 0,
382
382
  "data-component-title": (_e = (_d = (_c = component == null ? void 0 : component.parameters) == null ? void 0 : _c.title) == null ? void 0 : _d.value) != null ? _e : "",
383
- "data-is-editable": isEditable
383
+ "data-is-readonly": isReadOnly
384
384
  }
385
385
  ), isPlaceholder && emptyPlaceholder !== void 0 ? emptyPlaceholder : children, /* @__PURE__ */ import_react4.default.createElement("script", { "data-role": import_canvas4.IN_CONTEXT_EDITOR_COMPONENT_END_ROLE }));
386
386
  }
package/dist/index.mjs CHANGED
@@ -333,7 +333,7 @@ function ContextualEditingComponentWrapper({
333
333
  var _a, _b, _c, _d, _e;
334
334
  const isPlaceholder = (component == null ? void 0 : component._id) === PLACEHOLDER_ID;
335
335
  const { isContextualEditing } = useUniformCurrentComposition();
336
- const isEditable = ((_a = component == null ? void 0 : component._contextualEditing) == null ? void 0 : _a.isEditable) ? "true" : void 0;
336
+ const isReadOnly = ((_a = component == null ? void 0 : component._contextualEditing) == null ? void 0 : _a.isEditable) ? void 0 : "true";
337
337
  return !isContextualEditing ? /* @__PURE__ */ React4.createElement(React4.Fragment, null, children) : isPlaceholder && emptyPlaceholder === null ? null : /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
338
338
  "script",
339
339
  {
@@ -348,7 +348,7 @@ function ContextualEditingComponentWrapper({
348
348
  "data-is-placeholder": isPlaceholder ? "true" : void 0,
349
349
  "data-is-localized": ((_b = component == null ? void 0 : component.parameters) == null ? void 0 : _b[CANVAS_LOCALE_TAG_PARAM]) ? "true" : void 0,
350
350
  "data-component-title": (_e = (_d = (_c = component == null ? void 0 : component.parameters) == null ? void 0 : _c.title) == null ? void 0 : _d.value) != null ? _e : "",
351
- "data-is-editable": isEditable
351
+ "data-is-readonly": isReadOnly
352
352
  }
353
353
  ), isPlaceholder && emptyPlaceholder !== void 0 ? emptyPlaceholder : children, /* @__PURE__ */ React4.createElement("script", { "data-role": IN_CONTEXT_EDITOR_COMPONENT_END_ROLE }));
354
354
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "19.42.1-alpha.7+1380aadd7",
3
+ "version": "19.45.1",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -24,17 +24,17 @@
24
24
  "document": "api-extractor run --local"
25
25
  },
26
26
  "dependencies": {
27
- "@uniformdev/canvas": "19.42.1-alpha.7+1380aadd7",
28
- "@uniformdev/context": "19.42.1-alpha.7+1380aadd7",
29
- "@uniformdev/context-react": "19.42.1-alpha.7+1380aadd7",
30
- "@uniformdev/richtext": "19.42.1-alpha.7+1380aadd7"
27
+ "@uniformdev/canvas": "19.45.1",
28
+ "@uniformdev/context": "19.45.1",
29
+ "@uniformdev/context-react": "19.45.1",
30
+ "@uniformdev/richtext": "19.45.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">= 16 || 17 || 18",
34
34
  "react-dom": ">=16"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/react": "18.2.18",
37
+ "@types/react": "18.2.20",
38
38
  "react": "18.2.0",
39
39
  "react-dom": "18.2.0"
40
40
  },
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "1380aadd7c71f6f120f933a40e73e113518e3716"
47
+ "gitHead": "27d329b913db64152e9d49bcfa7dddf8b3b31bb6"
48
48
  }