@uniformdev/canvas-react 20.35.1-alpha.210 → 20.35.1-alpha.238

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
@@ -22,7 +22,7 @@ function DefaultNotImplementedComponent(props) {
22
22
  return null;
23
23
  }
24
24
  if (componentType === EMPTY_COMPOSITION.type) {
25
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style", null, `@keyframes _uniformDelayedFadeIn { 0%,75% { opacity: 0; } to { opacity: 1; } }`), /* @__PURE__ */ React.createElement("p", { style: { animation: "_uniformDelayedFadeIn 3s" } }, "This component only works inside Uniform Canvas editor.", /* @__PURE__ */ React.createElement("br", null), "If you think this is an error, try", " ", /* @__PURE__ */ React.createElement("a", { href: "", style: { fontWeight: "bolder", textDecoration: "underline" } }, "reloading the page"), "."));
25
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style", null, `@keyframes _uniformDelayedFadeIn { 0%,92.5% { opacity: 0; } to { opacity: 1; } }`), /* @__PURE__ */ React.createElement("p", { style: { animation: "_uniformDelayedFadeIn 10s" } }, "This component only works inside Uniform Canvas editor.", /* @__PURE__ */ React.createElement("br", null), "If you think this is an error, try", " ", /* @__PURE__ */ React.createElement("a", { href: "", style: { fontWeight: "bolder", textDecoration: "underline" } }, "reloading the page"), "."));
26
26
  }
27
27
  if (componentType === CANVAS_LOCALIZATION_TYPE) {
28
28
  return /* @__PURE__ */ React.createElement("div", { style: wrapperStyles }, /* @__PURE__ */ React.createElement("p", null, "Seems like localization is not enabled in your application. Please read our documentation on how to", " ", /* @__PURE__ */ React.createElement(
@@ -193,7 +193,9 @@ function useClientConditionsComposition(data) {
193
193
  try {
194
194
  return produce(data, (draft) => {
195
195
  walkNodeTree(draft, (context) => {
196
- evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false });
196
+ if (!evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false })) {
197
+ return;
198
+ }
197
199
  evaluateWalkTreePropertyCriteria({ node: context.node, rules, keepIndeterminate: false });
198
200
  });
199
201
  });
package/dist/index.js CHANGED
@@ -78,7 +78,7 @@ function DefaultNotImplementedComponent(props) {
78
78
  return null;
79
79
  }
80
80
  if (componentType === import_canvas.EMPTY_COMPOSITION.type) {
81
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("style", null, `@keyframes _uniformDelayedFadeIn { 0%,75% { opacity: 0; } to { opacity: 1; } }`), /* @__PURE__ */ import_react.default.createElement("p", { style: { animation: "_uniformDelayedFadeIn 3s" } }, "This component only works inside Uniform Canvas editor.", /* @__PURE__ */ import_react.default.createElement("br", null), "If you think this is an error, try", " ", /* @__PURE__ */ import_react.default.createElement("a", { href: "", style: { fontWeight: "bolder", textDecoration: "underline" } }, "reloading the page"), "."));
81
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("style", null, `@keyframes _uniformDelayedFadeIn { 0%,92.5% { opacity: 0; } to { opacity: 1; } }`), /* @__PURE__ */ import_react.default.createElement("p", { style: { animation: "_uniformDelayedFadeIn 10s" } }, "This component only works inside Uniform Canvas editor.", /* @__PURE__ */ import_react.default.createElement("br", null), "If you think this is an error, try", " ", /* @__PURE__ */ import_react.default.createElement("a", { href: "", style: { fontWeight: "bolder", textDecoration: "underline" } }, "reloading the page"), "."));
82
82
  }
83
83
  if (componentType === import_canvas.CANVAS_LOCALIZATION_TYPE) {
84
84
  return /* @__PURE__ */ import_react.default.createElement("div", { style: wrapperStyles }, /* @__PURE__ */ import_react.default.createElement("p", null, "Seems like localization is not enabled in your application. Please read our documentation on how to", " ", /* @__PURE__ */ import_react.default.createElement(
@@ -231,7 +231,9 @@ function useClientConditionsComposition(data) {
231
231
  try {
232
232
  return (0, import_immer.produce)(data, (draft) => {
233
233
  (0, import_canvas3.walkNodeTree)(draft, (context) => {
234
- (0, import_canvas3.evaluateWalkTreeNodeVisibility)({ context, rules, showIndeterminate: false });
234
+ if (!(0, import_canvas3.evaluateWalkTreeNodeVisibility)({ context, rules, showIndeterminate: false })) {
235
+ return;
236
+ }
235
237
  (0, import_canvas3.evaluateWalkTreePropertyCriteria)({ node: context.node, rules, keepIndeterminate: false });
236
238
  });
237
239
  });
package/dist/index.mjs CHANGED
@@ -22,7 +22,7 @@ function DefaultNotImplementedComponent(props) {
22
22
  return null;
23
23
  }
24
24
  if (componentType === EMPTY_COMPOSITION.type) {
25
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style", null, `@keyframes _uniformDelayedFadeIn { 0%,75% { opacity: 0; } to { opacity: 1; } }`), /* @__PURE__ */ React.createElement("p", { style: { animation: "_uniformDelayedFadeIn 3s" } }, "This component only works inside Uniform Canvas editor.", /* @__PURE__ */ React.createElement("br", null), "If you think this is an error, try", " ", /* @__PURE__ */ React.createElement("a", { href: "", style: { fontWeight: "bolder", textDecoration: "underline" } }, "reloading the page"), "."));
25
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style", null, `@keyframes _uniformDelayedFadeIn { 0%,92.5% { opacity: 0; } to { opacity: 1; } }`), /* @__PURE__ */ React.createElement("p", { style: { animation: "_uniformDelayedFadeIn 10s" } }, "This component only works inside Uniform Canvas editor.", /* @__PURE__ */ React.createElement("br", null), "If you think this is an error, try", " ", /* @__PURE__ */ React.createElement("a", { href: "", style: { fontWeight: "bolder", textDecoration: "underline" } }, "reloading the page"), "."));
26
26
  }
27
27
  if (componentType === CANVAS_LOCALIZATION_TYPE) {
28
28
  return /* @__PURE__ */ React.createElement("div", { style: wrapperStyles }, /* @__PURE__ */ React.createElement("p", null, "Seems like localization is not enabled in your application. Please read our documentation on how to", " ", /* @__PURE__ */ React.createElement(
@@ -193,7 +193,9 @@ function useClientConditionsComposition(data) {
193
193
  try {
194
194
  return produce(data, (draft) => {
195
195
  walkNodeTree(draft, (context) => {
196
- evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false });
196
+ if (!evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false })) {
197
+ return;
198
+ }
197
199
  evaluateWalkTreePropertyCriteria({ node: context.node, rules, keepIndeterminate: false });
198
200
  });
199
201
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "20.35.1-alpha.210+4fa236da76",
3
+ "version": "20.35.1-alpha.238+9863606d41",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,10 +45,10 @@
45
45
  "document:prebuild": "api-extractor run --local"
46
46
  },
47
47
  "dependencies": {
48
- "@uniformdev/canvas": "20.35.1-alpha.210+4fa236da76",
49
- "@uniformdev/context": "20.35.1-alpha.210+4fa236da76",
50
- "@uniformdev/context-react": "20.35.1-alpha.210+4fa236da76",
51
- "@uniformdev/richtext": "20.35.1-alpha.210+4fa236da76"
48
+ "@uniformdev/canvas": "20.35.1-alpha.238+9863606d41",
49
+ "@uniformdev/context": "20.35.1-alpha.238+9863606d41",
50
+ "@uniformdev/context-react": "20.35.1-alpha.238+9863606d41",
51
+ "@uniformdev/richtext": "20.35.1-alpha.238+9863606d41"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "immer": ">= 10",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "4fa236da76e057582eae6c2595a2fa763fda886a"
70
+ "gitHead": "9863606d41f4248fa790dbf7da6db6a755bda19a"
71
71
  }