@bynder/compact-view 5.2.2 → 5.2.4

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.
Files changed (241) hide show
  1. package/AccessToken2.js +1 -1
  2. package/ActiveFilters.js +49 -50
  3. package/AddMedia.js +19 -18
  4. package/Advanced.js +13 -13
  5. package/App.js +60 -59
  6. package/Arrow.js +1 -1
  7. package/AssetFilter.js +38 -38
  8. package/AssetItem.js +10 -17
  9. package/AssetList.js +5 -5
  10. package/AssetTypeItem.js +21 -21
  11. package/AssetsView.js +13 -13
  12. package/Axios2.js +82 -76
  13. package/AxiosError.js +36 -35
  14. package/ButtonAction.js +1 -1
  15. package/CanceledError.js +15 -8
  16. package/Card.js +1 -1
  17. package/Chip.js +1 -1
  18. package/CollectionCard.js +22 -22
  19. package/CollectionItem.js +9 -9
  20. package/CollectionList.js +5 -5
  21. package/CollectionView.js +11 -11
  22. package/ColorPicker.js +1 -1
  23. package/ColorPickerSolid.js +3 -3
  24. package/ColorPickerWithOpacity.js +3 -3
  25. package/Component.js +158 -0
  26. package/Component2.js +4 -0
  27. package/ConfigContext.js +7 -8
  28. package/Container.js +1 -1
  29. package/ContextAction.js +1 -1
  30. package/ControlGroup.js +6 -6
  31. package/Dat.js +33 -32
  32. package/DatDropdownItem.js +1 -1
  33. package/DesignSystemProvider.js +7 -7
  34. package/DirectionSelect.js +11 -10
  35. package/DomainInput.js +19 -11
  36. package/Draggable.js +337 -0
  37. package/Draggable2.js +4 -0
  38. package/DraggableCore.js +312 -0
  39. package/DraggableCore2.js +4 -0
  40. package/Dropdown.js +37 -37
  41. package/Dropdown2.js +1 -1
  42. package/DropdownListItem.js +1 -1
  43. package/FieldSelect.js +19 -17
  44. package/FileSelector.js +38 -37
  45. package/FontPicker.js +1 -1
  46. package/Form.js +1 -1
  47. package/Header.js +5 -4
  48. package/HttpStatusCode.js +7 -1
  49. package/InfiniteScroll.js +1 -1
  50. package/InlineBanner.js +1 -1
  51. package/Input.js +1 -1
  52. package/InterceptorManager.js +2 -1
  53. package/Item.js +8 -8
  54. package/Item4.js +2 -2
  55. package/LeftArrow.js +1 -1
  56. package/ListItem2.js +1 -1
  57. package/ModalBase.js +15 -15
  58. package/NoResults.js +1 -1
  59. package/Option_new.js +36 -29
  60. package/ReactPropTypesSecret.js +10 -0
  61. package/RightArrow.js +1 -1
  62. package/SearchInput.js +1 -1
  63. package/SearchInput2.js +1 -1
  64. package/SelectionFooter.js +41 -31
  65. package/Shield.js +2 -2
  66. package/Smartfilters_new.js +107 -98
  67. package/StatefulAssetList.js +50 -50
  68. package/StoreInitializer.js +32 -16
  69. package/SwitchNLS.js +1 -1
  70. package/TagItem.js +15 -15
  71. package/Tags.js +1 -1
  72. package/Toolbar.js +23 -20
  73. package/Tooltip2.js +1 -1
  74. package/ViewSwitch.js +17 -15
  75. package/_commonjsHelpers.js +28 -3
  76. package/adapters.js +54 -42
  77. package/api/filterAssets.d.ts +1 -1
  78. package/api/getAssets.d.ts +1 -1
  79. package/api/getFilters.d.ts +1 -1
  80. package/api/rest/index.d.ts +1 -1
  81. package/api/rest/types.d.ts +1 -1
  82. package/api2.js +1 -1
  83. package/asset.type.js +1 -1
  84. package/axios.js +1 -1
  85. package/bodyScrollLock.esm.js +68 -0
  86. package/buildURL.js +13 -15
  87. package/checkGlobals.js +1 -1
  88. package/cjs.js +7 -0
  89. package/cjs2.js +15 -0
  90. package/cjs3.js +4 -0
  91. package/clsx.m.js +6 -0
  92. package/clsx.m2.js +15 -0
  93. package/combineMetaproperties.js +3 -1
  94. package/composeSignals.js +1 -1
  95. package/cookieStore.js +1 -1
  96. package/cookies.js +13 -11
  97. package/currentScopes.js +1 -1
  98. package/data.js +1 -1
  99. package/devUtils.js +1 -1
  100. package/dispatchRequest.js +5 -5
  101. package/domFns.js +151 -0
  102. package/domFns2.js +4 -0
  103. package/factoryWithThrowingShims.js +52 -0
  104. package/fetch2.js +156 -128
  105. package/filter/AssetFilterContext.d.ts +3 -3
  106. package/getPrefix.js +35 -0
  107. package/getPrefix2.js +4 -0
  108. package/goober.modern.js +75 -0
  109. package/handlers.js +1 -1
  110. package/iconBase.js +56 -0
  111. package/iconContext.js +12 -0
  112. package/iconsManifest.js +222 -0
  113. package/index-esm.js +1 -4
  114. package/index.browser.js +1 -1
  115. package/index.m.js +9 -0
  116. package/index.m2.js +17 -0
  117. package/index10.js +1 -1
  118. package/index11.js +181 -15
  119. package/index112.js +1 -1
  120. package/index12.js +313 -36
  121. package/index13.js +5 -2430
  122. package/index14.js +3 -557
  123. package/index15.js +15 -55
  124. package/index16.js +3 -2
  125. package/index17.js +3 -87
  126. package/index18.js +36 -7
  127. package/index19.js +3 -60
  128. package/index20.js +2429 -12
  129. package/index21.js +557 -10
  130. package/index22.js +1 -1
  131. package/index23.js +119 -6
  132. package/index24.js +39 -7
  133. package/index25.js +2 -5
  134. package/index26.js +86 -9
  135. package/index27.js +55 -8
  136. package/index28.js +6 -636
  137. package/index29.js +8692 -74
  138. package/index3.js +1684 -5
  139. package/index30.js +2 -5
  140. package/index31.js +4 -20
  141. package/index310.js +2 -0
  142. package/index32.js +11 -2
  143. package/index33.js +5083 -4
  144. package/index34.js +2 -18
  145. package/index35.js +59 -5
  146. package/index36.js +2 -2
  147. package/index37.js +13 -11
  148. package/index38.js +46 -10
  149. package/index39.js +6 -12
  150. package/index4.js +5 -1684
  151. package/index40.js +8 -11
  152. package/index41.js +26 -18
  153. package/index42.js +2 -64
  154. package/index43.js +63 -5
  155. package/index44.js +9 -55
  156. package/index45.js +7 -67
  157. package/index46.js +8 -31
  158. package/index47.js +5 -11
  159. package/index48.js +10 -121
  160. package/index49.js +9 -86
  161. package/index5.js +215 -23
  162. package/index50.js +636 -7
  163. package/index51.js +74 -11
  164. package/index52.js +4 -13
  165. package/index53.js +19 -13
  166. package/index54.js +4 -6
  167. package/index55.js +18 -7
  168. package/index56.js +5 -14
  169. package/index57.js +10 -28
  170. package/index58.js +10 -15
  171. package/index59.js +15 -0
  172. package/index6.js +250 -299
  173. package/index60.js +13 -0
  174. package/index61.js +21 -0
  175. package/index62.js +8 -0
  176. package/index63.js +57 -0
  177. package/index64.js +4 -0
  178. package/index65.js +69 -0
  179. package/index66.js +33 -0
  180. package/index67.js +13 -0
  181. package/index68.js +123 -0
  182. package/index69.js +88 -0
  183. package/index7.js +25 -2
  184. package/index70.js +10 -0
  185. package/index71.js +13 -0
  186. package/index72.js +13 -225
  187. package/index73.js +16 -0
  188. package/index74.js +9 -0
  189. package/index75.js +228 -0
  190. package/index76.js +9 -0
  191. package/index77.js +17 -0
  192. package/index78.js +31 -0
  193. package/index79.js +18 -0
  194. package/index8.js +1537 -1536
  195. package/index9.js +1 -1
  196. package/isAbsoluteURL.js +1 -1
  197. package/isURLSameOrigin.js +1 -1
  198. package/localization.js +15 -15
  199. package/log.js +14 -0
  200. package/log2.js +4 -0
  201. package/matchRequestUrl.js +1 -1
  202. package/mergeConfig.js +37 -32
  203. package/notify.js +2 -2
  204. package/package.json +1 -1
  205. package/positionFns.js +101 -0
  206. package/positionFns2.js +4 -0
  207. package/react-laag.esm.js +957 -0
  208. package/react.js +8 -8
  209. package/react2.js +9 -9
  210. package/resolveConfig.js +23 -23
  211. package/select/add-media/AddMedia.d.ts +3 -1
  212. package/select/current-selection/SelectedItems.d.ts +1 -1
  213. package/shims.js +29 -0
  214. package/shims2.js +4 -0
  215. package/store/StoreInitializer.d.ts +5 -1
  216. package/store/useAssetFilterStore.d.ts +55 -0
  217. package/store/useSelectionStore.d.ts +47 -0
  218. package/styled-components.browser.esm.js +2 -2
  219. package/throttle.js +1 -1
  220. package/toURLEncodedForm.js +11 -10
  221. package/tokenExpirationHelper.js +1 -1
  222. package/transformData.js +1 -1
  223. package/transitional.js +4 -3
  224. package/useAssetFilterStore.js +152 -0
  225. package/useDatStore.js +1 -1
  226. package/useEffectEvent.js +7 -7
  227. package/useFonts.js +1 -1
  228. package/useOrderingStore.js +1 -1
  229. package/useRouterStore.js +1 -1
  230. package/useSearchStore.js +1 -1
  231. package/useSelectionStore.js +131 -0
  232. package/useSimilaritySearchStore.js +1 -1
  233. package/useTranslate.js +1 -1
  234. package/utils/combineMetaproperties.d.ts +2 -0
  235. package/utils6.js +160 -118
  236. package/xhr.js +47 -46
  237. package/AssetFilterContext.js +0 -161
  238. package/Middleware.js +0 -49
  239. package/SelectionContext.js +0 -143
  240. package/middleware2.js +0 -177
  241. package/select/SelectionContext.d.ts +0 -30
package/index51.js CHANGED
@@ -1,13 +1,76 @@
1
- import o from "./index39.js";
2
- import f from "./index50.js";
3
- import u from "./index25.js";
4
- function O(e) {
5
- u(1, arguments);
6
- var t = o(e), r = /* @__PURE__ */ new Date(0);
7
- r.setUTCFullYear(t, 0, 4), r.setUTCHours(0, 0, 0, 0);
8
- var a = f(r);
9
- return a;
10
- }
1
+ var P = function(t, e) {
2
+ switch (t) {
3
+ case "P":
4
+ return e.date({
5
+ width: "short"
6
+ });
7
+ case "PP":
8
+ return e.date({
9
+ width: "medium"
10
+ });
11
+ case "PPP":
12
+ return e.date({
13
+ width: "long"
14
+ });
15
+ case "PPPP":
16
+ default:
17
+ return e.date({
18
+ width: "full"
19
+ });
20
+ }
21
+ }, c = function(t, e) {
22
+ switch (t) {
23
+ case "p":
24
+ return e.time({
25
+ width: "short"
26
+ });
27
+ case "pp":
28
+ return e.time({
29
+ width: "medium"
30
+ });
31
+ case "ppp":
32
+ return e.time({
33
+ width: "long"
34
+ });
35
+ case "pppp":
36
+ default:
37
+ return e.time({
38
+ width: "full"
39
+ });
40
+ }
41
+ }, s = function(t, e) {
42
+ var i = t.match(/(P+)(p+)?/) || [], d = i[1], u = i[2];
43
+ if (!u)
44
+ return P(t, e);
45
+ var a;
46
+ switch (d) {
47
+ case "P":
48
+ a = e.dateTime({
49
+ width: "short"
50
+ });
51
+ break;
52
+ case "PP":
53
+ a = e.dateTime({
54
+ width: "medium"
55
+ });
56
+ break;
57
+ case "PPP":
58
+ a = e.dateTime({
59
+ width: "long"
60
+ });
61
+ break;
62
+ case "PPPP":
63
+ default:
64
+ a = e.dateTime({
65
+ width: "full"
66
+ });
67
+ break;
68
+ }
69
+ return a.replace("{{date}}", P(d, e)).replace("{{time}}", c(u, e));
70
+ }, h = {
71
+ p: c,
72
+ P: s
73
+ };
11
74
  export {
12
- O as default
75
+ h as default
13
76
  };
package/index52.js CHANGED
@@ -1,16 +1,7 @@
1
- import p from "./index24.js";
2
- import w from "./index25.js";
3
- import c from "./index23.js";
4
- import { getDefaultOptions as k } from "./index33.js";
5
- function C(O, e) {
6
- var l, r, a, i, n, d, v, u;
7
- w(1, arguments);
8
- var s = k(), o = c((l = (r = (a = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (n = e.locale) === null || n === void 0 || (d = n.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && a !== void 0 ? a : s.weekStartsOn) !== null && r !== void 0 ? r : (v = s.locale) === null || v === void 0 || (u = v.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && l !== void 0 ? l : 0);
9
- if (!(o >= 0 && o <= 6))
10
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
11
- var t = p(O), f = t.getUTCDay(), m = (f < o ? 7 : 0) + f - o;
12
- return t.setUTCDate(t.getUTCDate() - m), t.setUTCHours(0, 0, 0, 0), t;
1
+ function g(e) {
2
+ var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
3
+ return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
13
4
  }
14
5
  export {
15
- C as default
6
+ g as default
16
7
  };
package/index53.js CHANGED
@@ -1,16 +1,22 @@
1
- import k from "./index41.js";
2
- import W from "./index25.js";
3
- import p from "./index52.js";
4
- import _ from "./index23.js";
5
- import { getDefaultOptions as c } from "./index33.js";
6
- function U(v, e) {
7
- var t, o, r, l, i, a, n, f;
8
- W(1, arguments);
9
- var s = c(), u = _((t = (o = (r = (l = e?.firstWeekContainsDate) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (a = i.options) === null || a === void 0 ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : s.firstWeekContainsDate) !== null && o !== void 0 ? o : (n = s.locale) === null || n === void 0 || (f = n.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), m = k(v, e), d = /* @__PURE__ */ new Date(0);
10
- d.setUTCFullYear(m, 0, u), d.setUTCHours(0, 0, 0, 0);
11
- var C = p(d, e);
12
- return C;
1
+ var n = ["D", "DD"], r = ["YY", "YYYY"];
2
+ function s(e) {
3
+ return n.indexOf(e) !== -1;
4
+ }
5
+ function a(e) {
6
+ return r.indexOf(e) !== -1;
7
+ }
8
+ function c(e, t, o) {
9
+ if (e === "YYYY")
10
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(o, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
11
+ if (e === "YY")
12
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(t, "`) for formatting years to the input `").concat(o, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
13
+ if (e === "D")
14
+ throw new RangeError("Use `d` instead of `D` (in `".concat(t, "`) for formatting days of the month to the input `").concat(o, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
15
+ if (e === "DD")
16
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(o, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
13
17
  }
14
18
  export {
15
- U as default
19
+ s as isProtectedDayOfYearToken,
20
+ a as isProtectedWeekYearToken,
21
+ c as throwProtectedError
16
22
  };
package/index54.js CHANGED
@@ -1,9 +1,7 @@
1
- import { getSentryCarrier as e } from "./carrier.js";
2
- import { getStackAsyncContextStrategy as n } from "./stackStrategy.js";
3
- function a(r) {
4
- const t = e(r);
5
- return t.acs ? t.acs : n();
1
+ var t = {};
2
+ function e() {
3
+ return t;
6
4
  }
7
5
  export {
8
- a as getAsyncContextStrategy
6
+ e as getDefaultOptions
9
7
  };
package/index55.js CHANGED
@@ -1,9 +1,20 @@
1
- function u(t) {
2
- return function() {
3
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = n.width ? String(n.width) : t.defaultWidth, e = t.formats[r] || t.formats[t.defaultWidth];
4
- return e;
5
- };
6
- }
1
+ import o from "./index65.js";
2
+ import t from "./index66.js";
3
+ import a from "./index67.js";
4
+ import r from "./index68.js";
5
+ import e from "./index69.js";
6
+ var c = {
7
+ code: "en-US",
8
+ formatDistance: o,
9
+ formatLong: t,
10
+ formatRelative: a,
11
+ localize: r,
12
+ match: e,
13
+ options: {
14
+ weekStartsOn: 0,
15
+ firstWeekContainsDate: 1
16
+ }
17
+ };
7
18
  export {
8
- u as default
19
+ c as default
9
20
  };
package/index56.js CHANGED
@@ -1,17 +1,8 @@
1
- function f(l) {
2
- return function(e, t) {
3
- var d = t != null && t.context ? String(t.context) : "standalone", a;
4
- if (d === "formatting" && l.formattingValues) {
5
- var u = l.defaultFormattingWidth || l.defaultWidth, n = t != null && t.width ? String(t.width) : u;
6
- a = l.formattingValues[n] || l.formattingValues[u];
7
- } else {
8
- var r = l.defaultWidth, v = t != null && t.width ? String(t.width) : l.defaultWidth;
9
- a = l.values[v] || l.values[r];
10
- }
11
- var i = l.argumentCallback ? l.argumentCallback(e) : e;
12
- return a[i];
13
- };
1
+ import e from "./typeof.js";
2
+ import o from "./index47.js";
3
+ function n(t) {
4
+ return o(1, arguments), t instanceof Date || e(t) === "object" && Object.prototype.toString.call(t) === "[object Date]";
14
5
  }
15
6
  export {
16
- f as default
7
+ n as default
17
8
  };
package/index57.js CHANGED
@@ -1,31 +1,13 @@
1
- function o(t) {
2
- return function(e) {
3
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.width, c = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], f = e.match(c);
4
- if (!f)
5
- return null;
6
- var u = f[0], l = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(l) ? s(l, function(i) {
7
- return i.test(u);
8
- }) : h(l, function(i) {
9
- return i.test(u);
10
- }), a;
11
- a = t.valueCallback ? t.valueCallback(d) : d, a = n.valueCallback ? n.valueCallback(a) : a;
12
- var v = e.slice(u.length);
13
- return {
14
- value: a,
15
- rest: v
16
- };
17
- };
18
- }
19
- function h(t, e) {
20
- for (var n in t)
21
- if (t.hasOwnProperty(n) && e(t[n]))
22
- return n;
23
- }
24
- function s(t, e) {
25
- for (var n = 0; n < t.length; n++)
26
- if (e(t[n]))
27
- return n;
1
+ import o from "./index46.js";
2
+ import f from "./index47.js";
3
+ var i = 864e5;
4
+ function u(r) {
5
+ f(1, arguments);
6
+ var e = o(r), t = e.getTime();
7
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
8
+ var a = e.getTime(), m = t - a;
9
+ return Math.floor(m / i) + 1;
28
10
  }
29
11
  export {
30
- o as default
12
+ u as default
31
13
  };
package/index58.js CHANGED
@@ -1,18 +1,13 @@
1
- function v(a) {
2
- return function(t) {
3
- var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(a.matchPattern);
4
- if (!n) return null;
5
- var r = n[0], l = t.match(a.parsePattern);
6
- if (!l) return null;
7
- var e = a.valueCallback ? a.valueCallback(l[0]) : l[0];
8
- e = u.valueCallback ? u.valueCallback(e) : e;
9
- var c = t.slice(r.length);
10
- return {
11
- value: e,
12
- rest: c
13
- };
14
- };
1
+ import a from "./index46.js";
2
+ import o from "./index70.js";
3
+ import m from "./index71.js";
4
+ import f from "./index47.js";
5
+ var i = 6048e5;
6
+ function g(e) {
7
+ f(1, arguments);
8
+ var r = a(e), t = o(r).getTime() - m(r).getTime();
9
+ return Math.round(t / i) + 1;
15
10
  }
16
11
  export {
17
- v as default
12
+ g as default
18
13
  };
package/index59.js ADDED
@@ -0,0 +1,15 @@
1
+ import o from "./index46.js";
2
+ import T from "./index47.js";
3
+ import f from "./index70.js";
4
+ function O(s) {
5
+ T(1, arguments);
6
+ var r = o(s), e = r.getUTCFullYear(), t = /* @__PURE__ */ new Date(0);
7
+ t.setUTCFullYear(e + 1, 0, 4), t.setUTCHours(0, 0, 0, 0);
8
+ var u = f(t), a = /* @__PURE__ */ new Date(0);
9
+ a.setUTCFullYear(e, 0, 4), a.setUTCHours(0, 0, 0, 0);
10
+ var i = f(a);
11
+ return r.getTime() >= u.getTime() ? e + 1 : r.getTime() >= i.getTime() ? e : e - 1;
12
+ }
13
+ export {
14
+ O as default
15
+ };