@uniformdev/canvas 20.72.4-alpha.13 → 20.72.4-alpha.16

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
@@ -1492,7 +1492,7 @@ function getLocaleMatch(index, locale, greedy) {
1492
1492
  }
1493
1493
  const match = index[locale];
1494
1494
  if (match === void 0 && greedy) {
1495
- return Object.values(index)[0];
1495
+ return Object.values(index).find((value) => value !== void 0);
1496
1496
  }
1497
1497
  return match;
1498
1498
  }
package/dist/index.js CHANGED
@@ -1701,7 +1701,7 @@ function getLocaleMatch(index, locale, greedy) {
1701
1701
  }
1702
1702
  const match = index[locale];
1703
1703
  if (match === void 0 && greedy) {
1704
- return Object.values(index)[0];
1704
+ return Object.values(index).find((value) => value !== void 0);
1705
1705
  }
1706
1706
  return match;
1707
1707
  }
package/dist/index.mjs CHANGED
@@ -1492,7 +1492,7 @@ function getLocaleMatch(index, locale, greedy) {
1492
1492
  }
1493
1493
  const match = index[locale];
1494
1494
  if (match === void 0 && greedy) {
1495
- return Object.values(index)[0];
1495
+ return Object.values(index).find((value) => value !== void 0);
1496
1496
  }
1497
1497
  return match;
1498
1498
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "20.72.4-alpha.13+a24dcae01b",
3
+ "version": "20.72.4-alpha.16+0254f3a82e",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -36,10 +36,10 @@
36
36
  "svix": "1.96.0"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/assets": "20.72.4-alpha.13+a24dcae01b",
40
- "@uniformdev/context": "20.72.4-alpha.13+a24dcae01b",
41
- "@uniformdev/richtext": "20.72.4-alpha.13+a24dcae01b",
42
- "immer": "11.1.8",
39
+ "@uniformdev/assets": "20.72.4-alpha.16+0254f3a82e",
40
+ "@uniformdev/context": "20.72.4-alpha.16+0254f3a82e",
41
+ "@uniformdev/richtext": "20.72.4-alpha.16+0254f3a82e",
42
+ "immer": "10.2.0",
43
43
  "p-limit": "6.2.0",
44
44
  "p-retry": "6.2.1",
45
45
  "p-throttle": "6.2.0"
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "a24dcae01b019225974c60290cfef988f1405ea8"
53
+ "gitHead": "0254f3a82ed24bc02a26abbb3b7c453c44f0f8a8"
54
54
  }