@uniformdev/canvas 20.45.1-alpha.0 → 20.46.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.d.mts CHANGED
@@ -12489,9 +12489,10 @@ interface EvaluateNodeTreeVisibilityOptions extends Pick<EvaluateNodeVisibilityO
12489
12489
  /**
12490
12490
  * Function to call to evaluate visibility rules when traversing the node tree with walkNodeTree.
12491
12491
  *
12492
- * If the function returns false, that means the current node is removed and you should stop any other code handling.
12492
+ * @returns `true` if the node is visible (or processing was skipped e.g. for blocks or entries that don't have visibility control),
12493
+ * `false` if the node was removed and you should stop any other code handling for it.
12493
12494
  */
12494
- declare function evaluateWalkTreeNodeVisibility({ rules, showIndeterminate, rootNodeInvisibleHandling, context, }: EvaluateNodeTreeVisibilityOptions): boolean | undefined;
12495
+ declare function evaluateWalkTreeNodeVisibility({ rules, showIndeterminate, rootNodeInvisibleHandling, context, }: EvaluateNodeTreeVisibilityOptions): boolean;
12495
12496
 
12496
12497
  interface EvaluateWalkTreePropertyCriteriaOptions extends Pick<EvaluatePropertyCriteriaOptions, 'rules' | 'keepIndeterminate'> {
12497
12498
  node: ComponentInstance;
@@ -13688,7 +13689,7 @@ declare function hasReferencedVariables(value: string | undefined): number;
13688
13689
  */
13689
13690
  declare function parseVariableExpression(serialized: string, onToken?: (token: string, type: 'text' | 'variable') => void | false): number;
13690
13691
 
13691
- declare const version = "20.45.0";
13692
+ declare const version = "20.46.0";
13692
13693
 
13693
13694
  /** API client to enable managing workflow definitions */
13694
13695
  declare class WorkflowClient extends ApiClient {
package/dist/index.d.ts CHANGED
@@ -12489,9 +12489,10 @@ interface EvaluateNodeTreeVisibilityOptions extends Pick<EvaluateNodeVisibilityO
12489
12489
  /**
12490
12490
  * Function to call to evaluate visibility rules when traversing the node tree with walkNodeTree.
12491
12491
  *
12492
- * If the function returns false, that means the current node is removed and you should stop any other code handling.
12492
+ * @returns `true` if the node is visible (or processing was skipped e.g. for blocks or entries that don't have visibility control),
12493
+ * `false` if the node was removed and you should stop any other code handling for it.
12493
12494
  */
12494
- declare function evaluateWalkTreeNodeVisibility({ rules, showIndeterminate, rootNodeInvisibleHandling, context, }: EvaluateNodeTreeVisibilityOptions): boolean | undefined;
12495
+ declare function evaluateWalkTreeNodeVisibility({ rules, showIndeterminate, rootNodeInvisibleHandling, context, }: EvaluateNodeTreeVisibilityOptions): boolean;
12495
12496
 
12496
12497
  interface EvaluateWalkTreePropertyCriteriaOptions extends Pick<EvaluatePropertyCriteriaOptions, 'rules' | 'keepIndeterminate'> {
12497
12498
  node: ComponentInstance;
@@ -13688,7 +13689,7 @@ declare function hasReferencedVariables(value: string | undefined): number;
13688
13689
  */
13689
13690
  declare function parseVariableExpression(serialized: string, onToken?: (token: string, type: 'text' | 'variable') => void | false): number;
13690
13691
 
13691
- declare const version = "20.45.0";
13692
+ declare const version = "20.46.0";
13692
13693
 
13693
13694
  /** API client to enable managing workflow definitions */
13694
13695
  declare class WorkflowClient extends ApiClient {
package/dist/index.esm.js CHANGED
@@ -2108,7 +2108,7 @@ function evaluateWalkTreeNodeVisibility({
2108
2108
  }) {
2109
2109
  const { type, node, actions, ancestorsAndSelf } = context;
2110
2110
  if (type !== "component") {
2111
- return;
2111
+ return true;
2112
2112
  }
2113
2113
  const result = evaluateNodeVisibility({ node, rules, simplifyCriteria: true });
2114
2114
  if (result === null && !showIndeterminate || result === false) {
@@ -3531,7 +3531,7 @@ function handleRichTextNodeBinding(object, options) {
3531
3531
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
3532
3532
 
3533
3533
  // src/.version.ts
3534
- var version = "20.45.0";
3534
+ var version = "20.46.0";
3535
3535
 
3536
3536
  // src/WorkflowClient.ts
3537
3537
  import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
package/dist/index.js CHANGED
@@ -2278,7 +2278,7 @@ function evaluateWalkTreeNodeVisibility({
2278
2278
  }) {
2279
2279
  const { type, node, actions, ancestorsAndSelf } = context;
2280
2280
  if (type !== "component") {
2281
- return;
2281
+ return true;
2282
2282
  }
2283
2283
  const result = evaluateNodeVisibility({ node, rules, simplifyCriteria: true });
2284
2284
  if (result === null && !showIndeterminate || result === false) {
@@ -3701,7 +3701,7 @@ function handleRichTextNodeBinding(object, options) {
3701
3701
  var import_api18 = require("@uniformdev/context/api");
3702
3702
 
3703
3703
  // src/.version.ts
3704
- var version = "20.45.0";
3704
+ var version = "20.46.0";
3705
3705
 
3706
3706
  // src/WorkflowClient.ts
3707
3707
  var import_api17 = require("@uniformdev/context/api");
package/dist/index.mjs CHANGED
@@ -2108,7 +2108,7 @@ function evaluateWalkTreeNodeVisibility({
2108
2108
  }) {
2109
2109
  const { type, node, actions, ancestorsAndSelf } = context;
2110
2110
  if (type !== "component") {
2111
- return;
2111
+ return true;
2112
2112
  }
2113
2113
  const result = evaluateNodeVisibility({ node, rules, simplifyCriteria: true });
2114
2114
  if (result === null && !showIndeterminate || result === false) {
@@ -3531,7 +3531,7 @@ function handleRichTextNodeBinding(object, options) {
3531
3531
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
3532
3532
 
3533
3533
  // src/.version.ts
3534
- var version = "20.45.0";
3534
+ var version = "20.46.0";
3535
3535
 
3536
3536
  // src/WorkflowClient.ts
3537
3537
  import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "20.45.1-alpha.0+3f08beecad",
3
+ "version": "20.46.0",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -41,9 +41,9 @@
41
41
  "svix": "1.71.0"
42
42
  },
43
43
  "dependencies": {
44
- "@uniformdev/assets": "20.45.1-alpha.0+3f08beecad",
45
- "@uniformdev/context": "20.45.1-alpha.0+3f08beecad",
46
- "@uniformdev/richtext": "20.45.1-alpha.0+3f08beecad",
44
+ "@uniformdev/assets": "20.46.0",
45
+ "@uniformdev/context": "20.46.0",
46
+ "@uniformdev/richtext": "20.46.0",
47
47
  "immer": "10.1.1"
48
48
  },
49
49
  "files": [
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "3f08beecadddc06c128a11442f67b434ad219160"
55
+ "gitHead": "a28087762e91360d73750aeeab47537f8c26fd4f"
56
56
  }