@uniformdev/canvas 19.165.1-alpha.0 → 19.166.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
@@ -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.1-alpha.0+f8f7ef22e4",
3
+ "version": "19.166.1",
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.1-alpha.0+f8f7ef22e4",
42
- "@uniformdev/context": "19.165.1-alpha.0+f8f7ef22e4",
41
+ "@uniformdev/assets": "19.166.1",
42
+ "@uniformdev/context": "19.166.1",
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": "f8f7ef22e4180653122a8f30f8c184acc8e5b25b"
51
+ "gitHead": "d6a92d76bb91fa41a51cf27a69d81e0cc985f80f"
52
52
  }