@uniformdev/canvas-react 19.54.3-alpha.5 → 19.56.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
@@ -186,7 +186,7 @@ import {
186
186
  CANVAS_LOCALE_TAG_PARAM,
187
187
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
188
188
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
189
- PLACEHOLDER_ID
189
+ isComponentPlaceholderId
190
190
  } from "@uniformdev/canvas";
191
191
  import React4 from "react";
192
192
 
@@ -331,7 +331,7 @@ function ContextualEditingComponentWrapper({
331
331
  children
332
332
  }) {
333
333
  var _a, _b, _c, _d, _e;
334
- const isPlaceholder = (component == null ? void 0 : component._id) === PLACEHOLDER_ID;
334
+ const isPlaceholder = isComponentPlaceholderId(component == null ? void 0 : component._id);
335
335
  const { isContextualEditing } = useUniformCurrentComposition();
336
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(
package/dist/index.js CHANGED
@@ -365,7 +365,7 @@ function ContextualEditingComponentWrapper({
365
365
  children
366
366
  }) {
367
367
  var _a, _b, _c, _d, _e;
368
- const isPlaceholder = (component == null ? void 0 : component._id) === import_canvas4.PLACEHOLDER_ID;
368
+ const isPlaceholder = (0, import_canvas4.isComponentPlaceholderId)(component == null ? void 0 : component._id);
369
369
  const { isContextualEditing } = useUniformCurrentComposition();
370
370
  const isReadOnly = ((_a = component == null ? void 0 : component._contextualEditing) == null ? void 0 : _a.isEditable) ? void 0 : "true";
371
371
  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(
package/dist/index.mjs CHANGED
@@ -186,7 +186,7 @@ import {
186
186
  CANVAS_LOCALE_TAG_PARAM,
187
187
  IN_CONTEXT_EDITOR_COMPONENT_END_ROLE,
188
188
  IN_CONTEXT_EDITOR_COMPONENT_START_ROLE,
189
- PLACEHOLDER_ID
189
+ isComponentPlaceholderId
190
190
  } from "@uniformdev/canvas";
191
191
  import React4 from "react";
192
192
 
@@ -331,7 +331,7 @@ function ContextualEditingComponentWrapper({
331
331
  children
332
332
  }) {
333
333
  var _a, _b, _c, _d, _e;
334
- const isPlaceholder = (component == null ? void 0 : component._id) === PLACEHOLDER_ID;
334
+ const isPlaceholder = isComponentPlaceholderId(component == null ? void 0 : component._id);
335
335
  const { isContextualEditing } = useUniformCurrentComposition();
336
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(
package/package.json CHANGED
@@ -1,14 +1,24 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "19.54.3-alpha.5+014bd6280",
3
+ "version": "19.56.0",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.esm.js",
6
8
  "exports": {
7
9
  ".": {
8
- "import": "./dist/index.mjs",
9
- "require": "./dist/index.js"
10
+ "import": {
11
+ "types": "./dist/index.d.mts",
12
+ "node": "./dist/index.mjs",
13
+ "default": "./dist/index.esm.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ }
10
19
  },
11
20
  "./core": {
21
+ "types": "./dist/core.d.ts",
12
22
  "import": "./dist/core.mjs",
13
23
  "require": "./dist/core.js"
14
24
  }
@@ -16,7 +26,7 @@
16
26
  "types": "./dist/index.d.ts",
17
27
  "typesVersions": {
18
28
  "*": {
19
- ".": [
29
+ "*": [
20
30
  "./dist/index.d.ts"
21
31
  ],
22
32
  "core": [
@@ -35,10 +45,10 @@
35
45
  "document": "api-extractor run --local"
36
46
  },
37
47
  "dependencies": {
38
- "@uniformdev/canvas": "19.54.3-alpha.5+014bd6280",
39
- "@uniformdev/context": "19.54.3-alpha.5+014bd6280",
40
- "@uniformdev/context-react": "19.54.3-alpha.5+014bd6280",
41
- "@uniformdev/richtext": "19.54.3-alpha.5+014bd6280"
48
+ "@uniformdev/canvas": "19.56.0",
49
+ "@uniformdev/context": "19.56.0",
50
+ "@uniformdev/context-react": "19.56.0",
51
+ "@uniformdev/richtext": "19.56.0"
42
52
  },
43
53
  "peerDependencies": {
44
54
  "react": ">= 16 || 17 || 18",
@@ -55,5 +65,5 @@
55
65
  "publishConfig": {
56
66
  "access": "public"
57
67
  },
58
- "gitHead": "014bd628043639e39e853dfdc2a7f1d2da340854"
68
+ "gitHead": "56938585920b817df15d278b46cbb3bd56f18790"
59
69
  }