@bynder/compact-view 5.2.3 → 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 (253) 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/autocomplete.js +1 -1
  85. package/axios.js +1 -1
  86. package/bodyScrollLock.esm.js +68 -0
  87. package/buildURL.js +13 -15
  88. package/checkGlobals.js +1 -1
  89. package/cjs.js +7 -0
  90. package/cjs2.js +15 -0
  91. package/cjs3.js +4 -0
  92. package/clsx.m.js +6 -0
  93. package/clsx.m2.js +15 -0
  94. package/combineMetaproperties.js +3 -1
  95. package/composeSignals.js +1 -1
  96. package/cookieStore.js +1 -1
  97. package/cookies.js +13 -11
  98. package/currentScopes.js +1 -1
  99. package/data.js +1 -1
  100. package/devUtils.js +1 -1
  101. package/dispatchRequest.js +5 -5
  102. package/domFns.js +151 -0
  103. package/domFns2.js +4 -0
  104. package/factoryWithThrowingShims.js +52 -0
  105. package/fetch2.js +156 -128
  106. package/filter/AssetFilterContext.d.ts +3 -3
  107. package/filterAssets.js +1 -1
  108. package/getAsset.js +1 -1
  109. package/getAssetCounts.js +1 -1
  110. package/getAssets.js +1 -1
  111. package/getCollections.js +1 -1
  112. package/getFilterOptions.js +1 -1
  113. package/getFilters.js +1 -1
  114. package/getFilters_new.js +1 -1
  115. package/getPrefix.js +35 -0
  116. package/getPrefix2.js +4 -0
  117. package/getSimilarityAssets.js +1 -1
  118. package/goober.modern.js +75 -0
  119. package/handlers.js +1 -1
  120. package/iconBase.js +56 -0
  121. package/iconContext.js +12 -0
  122. package/iconsManifest.js +222 -0
  123. package/index-esm.js +1 -4
  124. package/index.browser.js +1 -1
  125. package/index.m.js +9 -0
  126. package/index.m2.js +17 -0
  127. package/index10.js +18 -2
  128. package/index11.js +181 -15
  129. package/index112.js +1 -1
  130. package/index12.js +313 -36
  131. package/index13.js +5 -2430
  132. package/index14.js +3 -557
  133. package/index15.js +15 -55
  134. package/index16.js +3 -2
  135. package/index17.js +3 -87
  136. package/index18.js +36 -60
  137. package/index19.js +3 -7
  138. package/index20.js +2429 -12
  139. package/index21.js +557 -10
  140. package/index22.js +1 -1
  141. package/index23.js +119 -6
  142. package/index24.js +39 -7
  143. package/index25.js +2 -5
  144. package/index26.js +86 -9
  145. package/index27.js +55 -8
  146. package/index28.js +6 -636
  147. package/index29.js +8692 -74
  148. package/index3.js +1684 -5
  149. package/index30.js +2 -5
  150. package/index31.js +4 -20
  151. package/index310.js +2 -0
  152. package/index32.js +11 -2
  153. package/index33.js +5083 -4
  154. package/index34.js +2 -18
  155. package/index35.js +59 -5
  156. package/index36.js +2 -2
  157. package/index37.js +13 -11
  158. package/index38.js +46 -10
  159. package/index39.js +6 -12
  160. package/index4.js +5 -1684
  161. package/index40.js +8 -11
  162. package/index41.js +26 -18
  163. package/index42.js +2 -64
  164. package/index43.js +63 -5
  165. package/index44.js +9 -55
  166. package/index45.js +7 -67
  167. package/index46.js +8 -31
  168. package/index47.js +5 -11
  169. package/index48.js +10 -121
  170. package/index49.js +9 -86
  171. package/index5.js +215 -23
  172. package/index50.js +636 -7
  173. package/index51.js +74 -11
  174. package/index52.js +4 -13
  175. package/index53.js +19 -13
  176. package/index54.js +4 -6
  177. package/index55.js +18 -7
  178. package/index56.js +5 -14
  179. package/index57.js +10 -28
  180. package/index58.js +10 -15
  181. package/index59.js +15 -0
  182. package/index6.js +250 -299
  183. package/index60.js +13 -0
  184. package/index61.js +21 -0
  185. package/index62.js +8 -0
  186. package/index63.js +57 -0
  187. package/index64.js +4 -0
  188. package/index65.js +69 -0
  189. package/index66.js +33 -0
  190. package/index67.js +13 -0
  191. package/index68.js +123 -0
  192. package/index69.js +88 -0
  193. package/index7.js +22 -5047
  194. package/index70.js +10 -0
  195. package/index71.js +13 -0
  196. package/index72.js +13 -225
  197. package/index73.js +16 -0
  198. package/index74.js +9 -0
  199. package/index75.js +228 -0
  200. package/index76.js +9 -0
  201. package/index77.js +17 -0
  202. package/index78.js +31 -0
  203. package/index79.js +18 -0
  204. package/index8.js +5044 -47
  205. package/index9.js +50 -15
  206. package/isAbsoluteURL.js +1 -1
  207. package/isURLSameOrigin.js +1 -1
  208. package/localization.js +15 -15
  209. package/log.js +14 -0
  210. package/log2.js +4 -0
  211. package/matchRequestUrl.js +1 -1
  212. package/mergeConfig.js +37 -32
  213. package/notify.js +2 -2
  214. package/package.json +1 -1
  215. package/positionFns.js +101 -0
  216. package/positionFns2.js +4 -0
  217. package/react-laag.esm.js +957 -0
  218. package/react.js +8 -8
  219. package/react2.js +9 -9
  220. package/resolveConfig.js +23 -23
  221. package/select/add-media/AddMedia.d.ts +3 -1
  222. package/select/current-selection/SelectedItems.d.ts +1 -1
  223. package/shims.js +29 -0
  224. package/shims2.js +4 -0
  225. package/store/StoreInitializer.d.ts +5 -1
  226. package/store/useAssetFilterStore.d.ts +55 -0
  227. package/store/useSelectionStore.d.ts +47 -0
  228. package/styled-components.browser.esm.js +2 -2
  229. package/throttle.js +1 -1
  230. package/toURLEncodedForm.js +11 -10
  231. package/tokenExpirationHelper.js +1 -1
  232. package/transformData.js +1 -1
  233. package/transitional.js +4 -3
  234. package/useAssetFilterStore.js +152 -0
  235. package/useDatStore.js +1 -1
  236. package/useEffectEvent.js +7 -7
  237. package/useFonts.js +2 -2
  238. package/useOrderingStore.js +1 -1
  239. package/useRouterStore.js +1 -1
  240. package/useSearchStore.js +1 -1
  241. package/useSelectionStore.js +131 -0
  242. package/useSimilaritySearchStore.js +1 -1
  243. package/useTranslate.js +1 -1
  244. package/utils/combineMetaproperties.d.ts +2 -0
  245. package/utils6.js +160 -118
  246. package/utils7.js +7 -68
  247. package/utils8.js +68 -7
  248. package/xhr.js +47 -46
  249. package/AssetFilterContext.js +0 -161
  250. package/SelectionContext.js +0 -143
  251. package/select/SelectionContext.d.ts +0 -30
  252. /package/{Middleware.js → Middleware2.js} +0 -0
  253. /package/{middleware2.js → middleware.js} +0 -0
package/axios.js CHANGED
@@ -2,7 +2,7 @@ import a from "./utils6.js";
2
2
  import p from "./bind.js";
3
3
  import m from "./Axios2.js";
4
4
  import i from "./mergeConfig.js";
5
- import f from "./index17.js";
5
+ import f from "./index26.js";
6
6
  import l from "./formDataToJSON.js";
7
7
  import c from "./CanceledError.js";
8
8
  import d from "./CancelToken.js";
@@ -0,0 +1,68 @@
1
+ function w(n) {
2
+ if (Array.isArray(n)) {
3
+ for (var e = 0, o = Array(n.length); e < n.length; e++)
4
+ o[e] = n[e];
5
+ return o;
6
+ } else
7
+ return Array.from(n);
8
+ }
9
+ var f = !1;
10
+ if (typeof window < "u") {
11
+ var s = {
12
+ get passive() {
13
+ f = !0;
14
+ }
15
+ };
16
+ window.addEventListener("testPassive", null, s), window.removeEventListener("testPassive", null, s);
17
+ }
18
+ var c = typeof window < "u" && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 1), t = [], u = !1, v = -1, l = void 0, d = void 0, h = function(e) {
19
+ return t.some(function(o) {
20
+ return !!(o.options.allowTouchMove && o.options.allowTouchMove(e));
21
+ });
22
+ }, a = function(e) {
23
+ var o = e || window.event;
24
+ return h(o.target) || o.touches.length > 1 ? !0 : (o.preventDefault && o.preventDefault(), !1);
25
+ }, y = function(e) {
26
+ if (d === void 0) {
27
+ var o = !!e && e.reserveScrollBarGap === !0, r = window.innerWidth - document.documentElement.clientWidth;
28
+ o && r > 0 && (d = document.body.style.paddingRight, document.body.style.paddingRight = r + "px");
29
+ }
30
+ l === void 0 && (l = document.body.style.overflow, document.body.style.overflow = "hidden");
31
+ }, g = function() {
32
+ d !== void 0 && (document.body.style.paddingRight = d, d = void 0), l !== void 0 && (document.body.style.overflow = l, l = void 0);
33
+ }, p = function(e) {
34
+ return e ? e.scrollHeight - e.scrollTop <= e.clientHeight : !1;
35
+ }, m = function(e, o) {
36
+ var r = e.targetTouches[0].clientY - v;
37
+ return h(e.target) ? !1 : o && o.scrollTop === 0 && r > 0 || p(o) && r < 0 ? a(e) : (e.stopPropagation(), !0);
38
+ }, S = function(e, o) {
39
+ if (!e) {
40
+ console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");
41
+ return;
42
+ }
43
+ if (!t.some(function(i) {
44
+ return i.targetElement === e;
45
+ })) {
46
+ var r = {
47
+ targetElement: e,
48
+ options: o || {}
49
+ };
50
+ t = [].concat(w(t), [r]), c ? (e.ontouchstart = function(i) {
51
+ i.targetTouches.length === 1 && (v = i.targetTouches[0].clientY);
52
+ }, e.ontouchmove = function(i) {
53
+ i.targetTouches.length === 1 && m(i, e);
54
+ }, u || (document.addEventListener("touchmove", a, f ? { passive: !1 } : void 0), u = !0)) : y(o);
55
+ }
56
+ }, b = function(e) {
57
+ if (!e) {
58
+ console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");
59
+ return;
60
+ }
61
+ t = t.filter(function(o) {
62
+ return o.targetElement !== e;
63
+ }), c ? (e.ontouchstart = null, e.ontouchmove = null, u && t.length === 0 && (document.removeEventListener("touchmove", a, f ? { passive: !1 } : void 0), u = !1)) : t.length || g();
64
+ };
65
+ export {
66
+ S as disableBodyScroll,
67
+ b as enableBodyScroll
68
+ };
package/buildURL.js CHANGED
@@ -1,20 +1,18 @@
1
- import f from "./utils6.js";
2
- import d from "./AxiosURLSearchParams.js";
3
- function l(e) {
4
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1
+ import a from "./utils6.js";
2
+ import f from "./AxiosURLSearchParams.js";
3
+ function d(e) {
4
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
5
5
  }
6
- function m(e, c, i) {
7
- if (!c)
6
+ function m(e, i, n) {
7
+ if (!i)
8
8
  return e;
9
- const t = i && i.encode || l;
10
- f.isFunction(i) && (i = {
11
- serialize: i
12
- });
13
- const n = i && i.serialize;
14
- let r;
15
- if (n ? r = n(c, i) : r = f.isURLSearchParams(c) ? c.toString() : new d(c, i).toString(t), r) {
16
- const a = e.indexOf("#");
17
- a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + r;
9
+ const s = n && n.encode || d, c = a.isFunction(n) ? {
10
+ serialize: n
11
+ } : n, r = c && c.serialize;
12
+ let t;
13
+ if (r ? t = r(i, c) : t = a.isURLSearchParams(i) ? i.toString() : new f(i, c).toString(s), t) {
14
+ const o = e.indexOf("#");
15
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + t;
18
16
  }
19
17
  return e;
20
18
  }
package/checkGlobals.js CHANGED
@@ -1,4 +1,4 @@
1
- import { invariant as e } from "./index42.js";
1
+ import { invariant as e } from "./index43.js";
2
2
  import { devUtils as t } from "./devUtils.js";
3
3
  function i() {
4
4
  e(
package/cjs.js ADDED
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as e } from "./cjs2.js";
3
+ var o = e();
4
+ const s = /* @__PURE__ */ r(o);
5
+ export {
6
+ s as default
7
+ };
package/cjs2.js ADDED
@@ -0,0 +1,15 @@
1
+ import { __module as r } from "./cjs3.js";
2
+ import { __require as t } from "./Draggable.js";
3
+ var a;
4
+ function i() {
5
+ if (a) return r.exports;
6
+ a = 1;
7
+ const {
8
+ default: e,
9
+ DraggableCore: o
10
+ } = t();
11
+ return r.exports = e, r.exports.default = e, r.exports.DraggableCore = o, r.exports;
12
+ }
13
+ export {
14
+ i as __require
15
+ };
package/cjs3.js ADDED
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
package/clsx.m.js ADDED
@@ -0,0 +1,6 @@
1
+ import { getAugmentedNamespace as e } from "./_commonjsHelpers.js";
2
+ import * as m from "./clsx.m2.js";
3
+ const t = /* @__PURE__ */ e(m);
4
+ export {
5
+ t as default
6
+ };
package/clsx.m2.js ADDED
@@ -0,0 +1,15 @@
1
+ function o(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number") t += r;
4
+ else if (typeof r == "object") if (Array.isArray(r)) for (f = 0; f < r.length; f++) r[f] && (n = o(r[f])) && (t && (t += " "), t += n);
5
+ else for (f in r) r[f] && (t && (t += " "), t += f);
6
+ return t;
7
+ }
8
+ function a() {
9
+ for (var r, f, n = 0, t = ""; n < arguments.length; ) (r = arguments[n++]) && (f = o(r)) && (t && (t += " "), t += f);
10
+ return t;
11
+ }
12
+ export {
13
+ a as clsx,
14
+ a as default
15
+ };
@@ -20,5 +20,7 @@ const z = (e, n) => e.zIndex && !n.zIndex ? -1 : !e.zIndex && n.zIndex ? 1 : !e.
20
20
  return [...m, ...u].sort(z);
21
21
  };
22
22
  export {
23
- x as combineMetaproperties
23
+ x as combineMetaproperties,
24
+ E as normalizeDate,
25
+ z as sortMetaproperties
24
26
  };
package/composeSignals.js CHANGED
@@ -13,7 +13,7 @@ const h = (e, t) => {
13
13
  }
14
14
  };
15
15
  let c = t && setTimeout(() => {
16
- c = null, n(new s(`timeout ${t} of ms exceeded`, s.ETIMEDOUT));
16
+ c = null, n(new s(`timeout of ${t}ms exceeded`, s.ETIMEDOUT));
17
17
  }, t);
18
18
  const i = () => {
19
19
  e && (c && clearTimeout(c), c = null, e.forEach((r) => {
package/cookieStore.js CHANGED
@@ -1,4 +1,4 @@
1
- import { invariant as u } from "./index42.js";
1
+ import { invariant as u } from "./index43.js";
2
2
  import { isNodeProcess as c } from "./index92.js";
3
3
  import f from "./index-esm.js";
4
4
  var h = Object.defineProperty, l = (s, o, t) => o in s ? h(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, a = (s, o, t) => l(s, typeof o != "symbol" ? o + "" : o, t);
package/cookies.js CHANGED
@@ -1,18 +1,20 @@
1
- import r from "./utils6.js";
2
- import c from "./index19.js";
3
- const p = c.hasStandardBrowserEnv ? (
1
+ import n from "./utils6.js";
2
+ import d from "./index28.js";
3
+ const p = d.hasStandardBrowserEnv ? (
4
4
  // Standard browser envs support document.cookie
5
5
  {
6
- write(e, t, n, i, s, u) {
7
- const o = [e + "=" + encodeURIComponent(t)];
8
- r.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), r.isString(i) && o.push("path=" + i), r.isString(s) && o.push("domain=" + s), u === !0 && o.push("secure"), document.cookie = o.join("; ");
6
+ write(t, o, r, i, u, c, s) {
7
+ if (typeof document > "u") return;
8
+ const e = [`${t}=${encodeURIComponent(o)}`];
9
+ n.isNumber(r) && e.push(`expires=${new Date(r).toUTCString()}`), n.isString(i) && e.push(`path=${i}`), n.isString(u) && e.push(`domain=${u}`), c === !0 && e.push("secure"), n.isString(s) && e.push(`SameSite=${s}`), document.cookie = e.join("; ");
9
10
  },
10
- read(e) {
11
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
12
- return t ? decodeURIComponent(t[3]) : null;
11
+ read(t) {
12
+ if (typeof document > "u") return null;
13
+ const o = document.cookie.match(new RegExp("(?:^|; )" + t + "=([^;]*)"));
14
+ return o ? decodeURIComponent(o[1]) : null;
13
15
  },
14
- remove(e) {
15
- this.write(e, "", Date.now() - 864e5);
16
+ remove(t) {
17
+ this.write(t, "", Date.now() - 864e5, "/");
16
18
  }
17
19
  }
18
20
  ) : (
package/currentScopes.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getAsyncContextStrategy as t } from "./index54.js";
1
+ import { getAsyncContextStrategy as t } from "./index74.js";
2
2
  import { getMainCarrier as e } from "./carrier.js";
3
3
  function a() {
4
4
  const r = e();
package/data.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = "1.10.0";
1
+ const o = "1.13.5";
2
2
  export {
3
3
  o as VERSION
4
4
  };
package/devUtils.js CHANGED
@@ -1,4 +1,4 @@
1
- import { format as e } from "./index42.js";
1
+ import { format as e } from "./index43.js";
2
2
  const s = "[MSW]";
3
3
  function n(o, ...r) {
4
4
  const t = e(o, ...r);
@@ -1,18 +1,18 @@
1
1
  import r from "./transformData.js";
2
2
  import p from "./isCancel.js";
3
- import o from "./index17.js";
4
- import l from "./CanceledError.js";
3
+ import l from "./index26.js";
4
+ import m from "./CanceledError.js";
5
5
  import a from "./AxiosHeaders.js";
6
- import m from "./adapters.js";
6
+ import o from "./adapters.js";
7
7
  function d(e) {
8
8
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
9
- throw new l(null, e);
9
+ throw new m(null, e);
10
10
  }
11
11
  function q(e) {
12
12
  return d(e), e.headers = a.from(e.headers), e.data = r.call(
13
13
  e,
14
14
  e.transformRequest
15
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), m.getAdapter(e.adapter || o.adapter)(e).then(function(t) {
15
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), o.getAdapter(e.adapter || l.adapter, e)(e).then(function(t) {
16
16
  return d(e), t.data = r.call(
17
17
  e,
18
18
  e.transformResponse,
package/domFns.js ADDED
@@ -0,0 +1,151 @@
1
+ import { __exports as n } from "./domFns2.js";
2
+ import { __require as q } from "./shims.js";
3
+ import { __require as B } from "./getPrefix.js";
4
+ var p;
5
+ function N() {
6
+ if (p) return n;
7
+ p = 1, Object.defineProperty(n, "__esModule", {
8
+ value: !0
9
+ }), n.addClassName = g, n.addEvent = T, n.addUserSelectStyles = P, n.createCSSTransform = L, n.createSVGTransform = b, n.getTouch = x, n.getTouchIdentifier = M, n.getTranslation = l, n.innerHeight = _, n.innerWidth = W, n.matchesSelector = h, n.matchesSelectorAndParentsTo = S, n.offsetXYFromParent = C, n.outerHeight = w, n.outerWidth = E, n.removeClassName = m, n.removeEvent = v, n.removeUserSelectStyles = D;
10
+ var i = q(), d = y(B());
11
+ function f(e) {
12
+ if (typeof WeakMap != "function") return null;
13
+ var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
14
+ return (f = function(a) {
15
+ return a ? r : t;
16
+ })(e);
17
+ }
18
+ function y(e, t) {
19
+ if (e && e.__esModule)
20
+ return e;
21
+ if (e === null || typeof e != "object" && typeof e != "function")
22
+ return { default: e };
23
+ var r = f(t);
24
+ if (r && r.has(e))
25
+ return r.get(e);
26
+ var a = {}, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
27
+ for (var c in e)
28
+ if (c !== "default" && Object.prototype.hasOwnProperty.call(e, c)) {
29
+ var s = o ? Object.getOwnPropertyDescriptor(e, c) : null;
30
+ s && (s.get || s.set) ? Object.defineProperty(a, c, s) : a[c] = e[c];
31
+ }
32
+ return a.default = e, r && r.set(e, a), a;
33
+ }
34
+ let u = "";
35
+ function h(e, t) {
36
+ return u || (u = (0, i.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
37
+ return (0, i.isFunction)(e[r]);
38
+ })), (0, i.isFunction)(e[u]) ? e[u](t) : !1;
39
+ }
40
+ function S(e, t, r) {
41
+ let a = e;
42
+ do {
43
+ if (h(a, t)) return !0;
44
+ if (a === r) return !1;
45
+ a = a.parentNode;
46
+ } while (a);
47
+ return !1;
48
+ }
49
+ function T(e, t, r, a) {
50
+ if (!e) return;
51
+ const o = {
52
+ capture: !0,
53
+ ...a
54
+ };
55
+ e.addEventListener ? e.addEventListener(t, r, o) : e.attachEvent ? e.attachEvent("on" + t, r) : e["on" + t] = r;
56
+ }
57
+ function v(e, t, r, a) {
58
+ if (!e) return;
59
+ const o = {
60
+ capture: !0,
61
+ ...a
62
+ };
63
+ e.removeEventListener ? e.removeEventListener(t, r, o) : e.detachEvent ? e.detachEvent("on" + t, r) : e["on" + t] = null;
64
+ }
65
+ function w(e) {
66
+ let t = e.clientHeight;
67
+ const r = e.ownerDocument.defaultView.getComputedStyle(e);
68
+ return t += (0, i.int)(r.borderTopWidth), t += (0, i.int)(r.borderBottomWidth), t;
69
+ }
70
+ function E(e) {
71
+ let t = e.clientWidth;
72
+ const r = e.ownerDocument.defaultView.getComputedStyle(e);
73
+ return t += (0, i.int)(r.borderLeftWidth), t += (0, i.int)(r.borderRightWidth), t;
74
+ }
75
+ function _(e) {
76
+ let t = e.clientHeight;
77
+ const r = e.ownerDocument.defaultView.getComputedStyle(e);
78
+ return t -= (0, i.int)(r.paddingTop), t -= (0, i.int)(r.paddingBottom), t;
79
+ }
80
+ function W(e) {
81
+ let t = e.clientWidth;
82
+ const r = e.ownerDocument.defaultView.getComputedStyle(e);
83
+ return t -= (0, i.int)(r.paddingLeft), t -= (0, i.int)(r.paddingRight), t;
84
+ }
85
+ function C(e, t, r) {
86
+ const o = t === t.ownerDocument.body ? {
87
+ left: 0,
88
+ top: 0
89
+ } : t.getBoundingClientRect(), c = (e.clientX + t.scrollLeft - o.left) / r, s = (e.clientY + t.scrollTop - o.top) / r;
90
+ return {
91
+ x: c,
92
+ y: s
93
+ };
94
+ }
95
+ function L(e, t) {
96
+ const r = l(e, t, "px");
97
+ return {
98
+ [(0, d.browserPrefixToKey)("transform", d.default)]: r
99
+ };
100
+ }
101
+ function b(e, t) {
102
+ return l(e, t, "");
103
+ }
104
+ function l(e, t, r) {
105
+ let {
106
+ x: a,
107
+ y: o
108
+ } = e, c = "translate(".concat(a).concat(r, ",").concat(o).concat(r, ")");
109
+ if (t) {
110
+ const s = "".concat(typeof t.x == "string" ? t.x : t.x + r), R = "".concat(typeof t.y == "string" ? t.y : t.y + r);
111
+ c = "translate(".concat(s, ", ").concat(R, ")") + c;
112
+ }
113
+ return c;
114
+ }
115
+ function x(e, t) {
116
+ return e.targetTouches && (0, i.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, i.findInArray)(e.changedTouches, (r) => t === r.identifier);
117
+ }
118
+ function M(e) {
119
+ if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
120
+ if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
121
+ }
122
+ function P(e) {
123
+ if (!e) return;
124
+ let t = e.getElementById("react-draggable-style-el");
125
+ t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
126
+ `, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
127
+ `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && g(e.body, "react-draggable-transparent-selection");
128
+ }
129
+ function D(e) {
130
+ if (e)
131
+ try {
132
+ if (e.body && m(e.body, "react-draggable-transparent-selection"), e.selection)
133
+ e.selection.empty();
134
+ else {
135
+ const t = (e.defaultView || window).getSelection();
136
+ t && t.type !== "Caret" && t.removeAllRanges();
137
+ }
138
+ } catch {
139
+ }
140
+ }
141
+ function g(e, t) {
142
+ e.classList ? e.classList.add(t) : e.className.match(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"))) || (e.className += " ".concat(t));
143
+ }
144
+ function m(e, t) {
145
+ e.classList ? e.classList.remove(t) : e.className = e.className.replace(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"), "g"), "");
146
+ }
147
+ return n;
148
+ }
149
+ export {
150
+ N as __require
151
+ };
package/domFns2.js ADDED
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,52 @@
1
+ import { __require as u } from "./ReactPropTypesSecret.js";
2
+ var o, p;
3
+ function g() {
4
+ if (p) return o;
5
+ p = 1;
6
+ var c = /* @__PURE__ */ u();
7
+ function n() {
8
+ }
9
+ function i() {
10
+ }
11
+ return i.resetWarningCache = n, o = function() {
12
+ function e(h, y, m, f, l, s) {
13
+ if (s !== c) {
14
+ var a = new Error(
15
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
16
+ );
17
+ throw a.name = "Invariant Violation", a;
18
+ }
19
+ }
20
+ e.isRequired = e;
21
+ function r() {
22
+ return e;
23
+ }
24
+ var t = {
25
+ array: e,
26
+ bigint: e,
27
+ bool: e,
28
+ func: e,
29
+ number: e,
30
+ object: e,
31
+ string: e,
32
+ symbol: e,
33
+ any: e,
34
+ arrayOf: r,
35
+ element: e,
36
+ elementType: e,
37
+ instanceOf: r,
38
+ node: e,
39
+ objectOf: r,
40
+ oneOf: r,
41
+ oneOfType: r,
42
+ shape: r,
43
+ exact: r,
44
+ checkPropTypes: i,
45
+ resetWarningCache: n
46
+ };
47
+ return t.PropTypes = t, t;
48
+ }, o;
49
+ }
50
+ export {
51
+ g as __require
52
+ };