@uniformdev/canvas 19.165.2-alpha.0 → 19.167.2-alpha.3

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
@@ -13390,6 +13390,13 @@ interface paths$7 {
13390
13390
  * This is a list query parameter and cannot be used with any primary query parameters
13391
13391
  */
13392
13392
  pattern?: components$5["parameters"]["pattern"];
13393
+ /**
13394
+ * This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
13395
+ * * `all` - Returns all pattern instances
13396
+ * * `component` - Returns only component patterns
13397
+ * * `composition` - Returns only composition patterns
13398
+ */
13399
+ patternType?: components$5["parameters"]["patternType"];
13393
13400
  /** The project the composition(s) belong to */
13394
13401
  projectId: components$5["parameters"]["projectId"];
13395
13402
  /**
@@ -13820,6 +13827,13 @@ interface components$5 {
13820
13827
  * This is a list query parameter and cannot be used with any primary query parameters
13821
13828
  */
13822
13829
  pattern: boolean;
13830
+ /**
13831
+ * @description This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
13832
+ * * `all` - Returns all pattern instances
13833
+ * * `component` - Returns only component patterns
13834
+ * * `composition` - Returns only composition patterns
13835
+ */
13836
+ patternType: "all" | "component" | "composition";
13823
13837
  /**
13824
13838
  * @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
13825
13839
  * Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
@@ -17402,6 +17416,13 @@ interface external$6 {
17402
17416
  * This is a list query parameter and cannot be used with any primary query parameters
17403
17417
  */
17404
17418
  pattern?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["pattern"];
17419
+ /**
17420
+ * This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
17421
+ * * `all` - Returns all pattern instances
17422
+ * * `component` - Returns only component patterns
17423
+ * * `composition` - Returns only composition patterns
17424
+ */
17425
+ patternType?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
17405
17426
  /** The project the composition(s) belong to */
17406
17427
  projectId: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
17407
17428
  /**
@@ -17832,6 +17853,13 @@ interface external$6 {
17832
17853
  * This is a list query parameter and cannot be used with any primary query parameters
17833
17854
  */
17834
17855
  pattern: boolean;
17856
+ /**
17857
+ * @description This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
17858
+ * * `all` - Returns all pattern instances
17859
+ * * `component` - Returns only component patterns
17860
+ * * `composition` - Returns only composition patterns
17861
+ */
17862
+ patternType: "all" | "component" | "composition";
17835
17863
  /**
17836
17864
  * @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
17837
17865
  * Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
@@ -20281,6 +20309,13 @@ interface external$5 {
20281
20309
  * This is a list query parameter and cannot be used with any primary query parameters
20282
20310
  */
20283
20311
  pattern?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["pattern"];
20312
+ /**
20313
+ * This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
20314
+ * * `all` - Returns all pattern instances
20315
+ * * `component` - Returns only component patterns
20316
+ * * `composition` - Returns only composition patterns
20317
+ */
20318
+ patternType?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
20284
20319
  /** The project the composition(s) belong to */
20285
20320
  projectId: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
20286
20321
  /**
@@ -20711,6 +20746,13 @@ interface external$5 {
20711
20746
  * This is a list query parameter and cannot be used with any primary query parameters
20712
20747
  */
20713
20748
  pattern: boolean;
20749
+ /**
20750
+ * @description This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
20751
+ * * `all` - Returns all pattern instances
20752
+ * * `component` - Returns only component patterns
20753
+ * * `composition` - Returns only composition patterns
20754
+ */
20755
+ patternType: "all" | "component" | "composition";
20714
20756
  /**
20715
20757
  * @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
20716
20758
  * Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
@@ -21494,6 +21536,10 @@ type DataResolutionParameters = {
21494
21536
  * Because this adds a lot of data to the response, we do not recommend using this unless diagnosing performance issues.
21495
21537
  */
21496
21538
  diagnostics?: boolean;
21539
+ /**
21540
+ * Controls how many levels deep content references should be resolved.
21541
+ */
21542
+ resolutionDepth?: number;
21497
21543
  };
21498
21544
  /** Types of issue that can occur when fetching composition data */
21499
21545
  type DataResolutionIssue = PatternIssue | DataResourceIssue | DataElementBindingIssue | DynamicInputIssue | DataResolutionConfigIssue;
package/dist/index.d.ts CHANGED
@@ -13390,6 +13390,13 @@ interface paths$7 {
13390
13390
  * This is a list query parameter and cannot be used with any primary query parameters
13391
13391
  */
13392
13392
  pattern?: components$5["parameters"]["pattern"];
13393
+ /**
13394
+ * This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
13395
+ * * `all` - Returns all pattern instances
13396
+ * * `component` - Returns only component patterns
13397
+ * * `composition` - Returns only composition patterns
13398
+ */
13399
+ patternType?: components$5["parameters"]["patternType"];
13393
13400
  /** The project the composition(s) belong to */
13394
13401
  projectId: components$5["parameters"]["projectId"];
13395
13402
  /**
@@ -13820,6 +13827,13 @@ interface components$5 {
13820
13827
  * This is a list query parameter and cannot be used with any primary query parameters
13821
13828
  */
13822
13829
  pattern: boolean;
13830
+ /**
13831
+ * @description This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
13832
+ * * `all` - Returns all pattern instances
13833
+ * * `component` - Returns only component patterns
13834
+ * * `composition` - Returns only composition patterns
13835
+ */
13836
+ patternType: "all" | "component" | "composition";
13823
13837
  /**
13824
13838
  * @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
13825
13839
  * Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
@@ -17402,6 +17416,13 @@ interface external$6 {
17402
17416
  * This is a list query parameter and cannot be used with any primary query parameters
17403
17417
  */
17404
17418
  pattern?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["pattern"];
17419
+ /**
17420
+ * This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
17421
+ * * `all` - Returns all pattern instances
17422
+ * * `component` - Returns only component patterns
17423
+ * * `composition` - Returns only composition patterns
17424
+ */
17425
+ patternType?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
17405
17426
  /** The project the composition(s) belong to */
17406
17427
  projectId: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
17407
17428
  /**
@@ -17832,6 +17853,13 @@ interface external$6 {
17832
17853
  * This is a list query parameter and cannot be used with any primary query parameters
17833
17854
  */
17834
17855
  pattern: boolean;
17856
+ /**
17857
+ * @description This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
17858
+ * * `all` - Returns all pattern instances
17859
+ * * `component` - Returns only component patterns
17860
+ * * `composition` - Returns only composition patterns
17861
+ */
17862
+ patternType: "all" | "component" | "composition";
17835
17863
  /**
17836
17864
  * @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
17837
17865
  * Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
@@ -20281,6 +20309,13 @@ interface external$5 {
20281
20309
  * This is a list query parameter and cannot be used with any primary query parameters
20282
20310
  */
20283
20311
  pattern?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["pattern"];
20312
+ /**
20313
+ * This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
20314
+ * * `all` - Returns all pattern instances
20315
+ * * `component` - Returns only component patterns
20316
+ * * `composition` - Returns only composition patterns
20317
+ */
20318
+ patternType?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
20284
20319
  /** The project the composition(s) belong to */
20285
20320
  projectId: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
20286
20321
  /**
@@ -20711,6 +20746,13 @@ interface external$5 {
20711
20746
  * This is a list query parameter and cannot be used with any primary query parameters
20712
20747
  */
20713
20748
  pattern: boolean;
20749
+ /**
20750
+ * @description This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
20751
+ * * `all` - Returns all pattern instances
20752
+ * * `component` - Returns only component patterns
20753
+ * * `composition` - Returns only composition patterns
20754
+ */
20755
+ patternType: "all" | "component" | "composition";
20714
20756
  /**
20715
20757
  * @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
20716
20758
  * Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
@@ -21494,6 +21536,10 @@ type DataResolutionParameters = {
21494
21536
  * Because this adds a lot of data to the response, we do not recommend using this unless diagnosing performance issues.
21495
21537
  */
21496
21538
  diagnostics?: boolean;
21539
+ /**
21540
+ * Controls how many levels deep content references should be resolved.
21541
+ */
21542
+ resolutionDepth?: number;
21497
21543
  };
21498
21544
  /** Types of issue that can occur when fetching composition data */
21499
21545
  type DataResolutionIssue = PatternIssue | DataResourceIssue | DataElementBindingIssue | DynamicInputIssue | DataResolutionConfigIssue;
package/dist/index.esm.js CHANGED
@@ -4,6 +4,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __typeError = (msg) => {
8
+ throw TypeError(msg);
9
+ };
7
10
  var __commonJS = (cb, mod) => function __require() {
8
11
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
12
  };
@@ -23,19 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
26
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
27
  mod
25
28
  ));
26
- var __accessCheck = (obj, member, msg) => {
27
- if (!member.has(obj))
28
- throw TypeError("Cannot " + msg);
29
- };
30
- var __privateGet = (obj, member, getter) => {
31
- __accessCheck(obj, member, "read from private field");
32
- return getter ? getter.call(obj) : member.get(obj);
33
- };
34
- var __privateAdd = (obj, member, value) => {
35
- if (member.has(obj))
36
- throw TypeError("Cannot add the same private member more than once");
37
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
38
- };
29
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
30
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
31
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
39
32
 
40
33
  // ../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
41
34
  var require_retry_operation = __commonJS({
@@ -1050,8 +1043,7 @@ function walkNodeTree(node, visitor, options) {
1050
1043
  const childContexts = /* @__PURE__ */ new Map();
1051
1044
  do {
1052
1045
  const currentQueueEntry = componentQueue.pop();
1053
- if (!currentQueueEntry)
1054
- continue;
1046
+ if (!currentQueueEntry) continue;
1055
1047
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
1056
1048
  let visitDescendants = true;
1057
1049
  let descendantContext = (_a = childContexts.get(currentComponent.node)) != null ? _a : currentQueueEntry.context;
@@ -1262,8 +1254,7 @@ function walkNodeTree(node, visitor, options) {
1262
1254
  const propertyEntries = Object.entries(properties);
1263
1255
  for (let propIndex = propertyEntries.length - 1; propIndex >= 0; propIndex--) {
1264
1256
  const [propKey, propObject] = propertyEntries[propIndex];
1265
- if (!isNestedNodeType(propObject.type))
1266
- continue;
1257
+ if (!isNestedNodeType(propObject.type)) continue;
1267
1258
  const blocks = (_b = propObject.value) != null ? _b : [];
1268
1259
  for (let blockIndex = blocks.length - 1; blockIndex >= 0; blockIndex--) {
1269
1260
  const enqueueingBlock = blocks[blockIndex];
@@ -1915,8 +1906,7 @@ function walkComponentTree(component, visitor, initialContext) {
1915
1906
  const childContexts = /* @__PURE__ */ new Map();
1916
1907
  do {
1917
1908
  const currentQueueEntry = componentQueue.pop();
1918
- if (!currentQueueEntry)
1919
- continue;
1909
+ if (!currentQueueEntry) continue;
1920
1910
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
1921
1911
  let visitDescendants = true;
1922
1912
  let descendantContext = (_a = childContexts.get(currentComponent.component)) != null ? _a : currentQueueEntry.context;
@@ -2683,8 +2673,7 @@ var isSystemComponentDefinition = (componentType) => {
2683
2673
 
2684
2674
  // src/utils/mapSlotToPersonalizedVariations.ts
2685
2675
  function mapSlotToPersonalizedVariations(slot) {
2686
- if (!slot)
2687
- return [];
2676
+ if (!slot) return [];
2688
2677
  return slot.map((v, i) => {
2689
2678
  var _a, _b;
2690
2679
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_PERSONALIZATION_PARAM]) == null ? void 0 : _b.value;
@@ -2699,8 +2688,7 @@ function mapSlotToPersonalizedVariations(slot) {
2699
2688
 
2700
2689
  // src/utils/mapSlotToTestVariations.ts
2701
2690
  function mapSlotToTestVariations(slot) {
2702
- if (!slot)
2703
- return [];
2691
+ if (!slot) return [];
2704
2692
  return slot.map((v, i) => {
2705
2693
  var _a, _b, _c;
2706
2694
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_TEST_VARIANT_PARAM]) == null ? void 0 : _b.value;
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __typeError = (msg) => {
9
+ throw TypeError(msg);
10
+ };
8
11
  var __commonJS = (cb, mod) => function __require() {
9
12
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
13
  };
@@ -29,19 +32,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
32
  mod
30
33
  ));
31
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
- var __accessCheck = (obj, member, msg) => {
33
- if (!member.has(obj))
34
- throw TypeError("Cannot " + msg);
35
- };
36
- var __privateGet = (obj, member, getter) => {
37
- __accessCheck(obj, member, "read from private field");
38
- return getter ? getter.call(obj) : member.get(obj);
39
- };
40
- var __privateAdd = (obj, member, value) => {
41
- if (member.has(obj))
42
- throw TypeError("Cannot add the same private member more than once");
43
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
44
- };
35
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
36
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
37
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
45
38
 
46
39
  // ../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
47
40
  var require_retry_operation = __commonJS({
@@ -1195,8 +1188,7 @@ function walkNodeTree(node, visitor, options) {
1195
1188
  const childContexts = /* @__PURE__ */ new Map();
1196
1189
  do {
1197
1190
  const currentQueueEntry = componentQueue.pop();
1198
- if (!currentQueueEntry)
1199
- continue;
1191
+ if (!currentQueueEntry) continue;
1200
1192
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
1201
1193
  let visitDescendants = true;
1202
1194
  let descendantContext = (_a = childContexts.get(currentComponent.node)) != null ? _a : currentQueueEntry.context;
@@ -1407,8 +1399,7 @@ function walkNodeTree(node, visitor, options) {
1407
1399
  const propertyEntries = Object.entries(properties);
1408
1400
  for (let propIndex = propertyEntries.length - 1; propIndex >= 0; propIndex--) {
1409
1401
  const [propKey, propObject] = propertyEntries[propIndex];
1410
- if (!isNestedNodeType(propObject.type))
1411
- continue;
1402
+ if (!isNestedNodeType(propObject.type)) continue;
1412
1403
  const blocks = (_b = propObject.value) != null ? _b : [];
1413
1404
  for (let blockIndex = blocks.length - 1; blockIndex >= 0; blockIndex--) {
1414
1405
  const enqueueingBlock = blocks[blockIndex];
@@ -2060,8 +2051,7 @@ function walkComponentTree(component, visitor, initialContext) {
2060
2051
  const childContexts = /* @__PURE__ */ new Map();
2061
2052
  do {
2062
2053
  const currentQueueEntry = componentQueue.pop();
2063
- if (!currentQueueEntry)
2064
- continue;
2054
+ if (!currentQueueEntry) continue;
2065
2055
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
2066
2056
  let visitDescendants = true;
2067
2057
  let descendantContext = (_a = childContexts.get(currentComponent.component)) != null ? _a : currentQueueEntry.context;
@@ -2828,8 +2818,7 @@ var isSystemComponentDefinition = (componentType) => {
2828
2818
 
2829
2819
  // src/utils/mapSlotToPersonalizedVariations.ts
2830
2820
  function mapSlotToPersonalizedVariations(slot) {
2831
- if (!slot)
2832
- return [];
2821
+ if (!slot) return [];
2833
2822
  return slot.map((v, i) => {
2834
2823
  var _a, _b;
2835
2824
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_PERSONALIZATION_PARAM]) == null ? void 0 : _b.value;
@@ -2844,8 +2833,7 @@ function mapSlotToPersonalizedVariations(slot) {
2844
2833
 
2845
2834
  // src/utils/mapSlotToTestVariations.ts
2846
2835
  function mapSlotToTestVariations(slot) {
2847
- if (!slot)
2848
- return [];
2836
+ if (!slot) return [];
2849
2837
  return slot.map((v, i) => {
2850
2838
  var _a, _b, _c;
2851
2839
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_TEST_VARIANT_PARAM]) == null ? void 0 : _b.value;
package/dist/index.mjs CHANGED
@@ -4,6 +4,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __typeError = (msg) => {
8
+ throw TypeError(msg);
9
+ };
7
10
  var __commonJS = (cb, mod) => function __require() {
8
11
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
12
  };
@@ -23,19 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
26
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
27
  mod
25
28
  ));
26
- var __accessCheck = (obj, member, msg) => {
27
- if (!member.has(obj))
28
- throw TypeError("Cannot " + msg);
29
- };
30
- var __privateGet = (obj, member, getter) => {
31
- __accessCheck(obj, member, "read from private field");
32
- return getter ? getter.call(obj) : member.get(obj);
33
- };
34
- var __privateAdd = (obj, member, value) => {
35
- if (member.has(obj))
36
- throw TypeError("Cannot add the same private member more than once");
37
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
38
- };
29
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
30
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
31
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
39
32
 
40
33
  // ../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
41
34
  var require_retry_operation = __commonJS({
@@ -1050,8 +1043,7 @@ function walkNodeTree(node, visitor, options) {
1050
1043
  const childContexts = /* @__PURE__ */ new Map();
1051
1044
  do {
1052
1045
  const currentQueueEntry = componentQueue.pop();
1053
- if (!currentQueueEntry)
1054
- continue;
1046
+ if (!currentQueueEntry) continue;
1055
1047
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
1056
1048
  let visitDescendants = true;
1057
1049
  let descendantContext = (_a = childContexts.get(currentComponent.node)) != null ? _a : currentQueueEntry.context;
@@ -1262,8 +1254,7 @@ function walkNodeTree(node, visitor, options) {
1262
1254
  const propertyEntries = Object.entries(properties);
1263
1255
  for (let propIndex = propertyEntries.length - 1; propIndex >= 0; propIndex--) {
1264
1256
  const [propKey, propObject] = propertyEntries[propIndex];
1265
- if (!isNestedNodeType(propObject.type))
1266
- continue;
1257
+ if (!isNestedNodeType(propObject.type)) continue;
1267
1258
  const blocks = (_b = propObject.value) != null ? _b : [];
1268
1259
  for (let blockIndex = blocks.length - 1; blockIndex >= 0; blockIndex--) {
1269
1260
  const enqueueingBlock = blocks[blockIndex];
@@ -1915,8 +1906,7 @@ function walkComponentTree(component, visitor, initialContext) {
1915
1906
  const childContexts = /* @__PURE__ */ new Map();
1916
1907
  do {
1917
1908
  const currentQueueEntry = componentQueue.pop();
1918
- if (!currentQueueEntry)
1919
- continue;
1909
+ if (!currentQueueEntry) continue;
1920
1910
  const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
1921
1911
  let visitDescendants = true;
1922
1912
  let descendantContext = (_a = childContexts.get(currentComponent.component)) != null ? _a : currentQueueEntry.context;
@@ -2683,8 +2673,7 @@ var isSystemComponentDefinition = (componentType) => {
2683
2673
 
2684
2674
  // src/utils/mapSlotToPersonalizedVariations.ts
2685
2675
  function mapSlotToPersonalizedVariations(slot) {
2686
- if (!slot)
2687
- return [];
2676
+ if (!slot) return [];
2688
2677
  return slot.map((v, i) => {
2689
2678
  var _a, _b;
2690
2679
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_PERSONALIZATION_PARAM]) == null ? void 0 : _b.value;
@@ -2699,8 +2688,7 @@ function mapSlotToPersonalizedVariations(slot) {
2699
2688
 
2700
2689
  // src/utils/mapSlotToTestVariations.ts
2701
2690
  function mapSlotToTestVariations(slot) {
2702
- if (!slot)
2703
- return [];
2691
+ if (!slot) return [];
2704
2692
  return slot.map((v, i) => {
2705
2693
  var _a, _b, _c;
2706
2694
  const contextTag = (_b = (_a = v.parameters) == null ? void 0 : _a[CANVAS_TEST_VARIANT_PARAM]) == null ? void 0 : _b.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.165.2-alpha.0+323887559d",
3
+ "version": "19.167.2-alpha.3+d42f32a982",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
38
38
  "pusher-js": "8.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/assets": "19.165.2-alpha.0+323887559d",
42
- "@uniformdev/context": "19.165.2-alpha.0+323887559d",
41
+ "@uniformdev/assets": "19.167.2-alpha.3+d42f32a982",
42
+ "@uniformdev/context": "19.167.2-alpha.3+d42f32a982",
43
43
  "immer": "10.0.4"
44
44
  },
45
45
  "files": [
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "323887559d1bdc7432f91d305afaec90b98f660f"
51
+ "gitHead": "d42f32a98294c96f55a29c10c7c461c5327f56f3"
52
52
  }