@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.
- package/AccessToken2.js +1 -1
- package/ActiveFilters.js +49 -50
- package/AddMedia.js +19 -18
- package/Advanced.js +13 -13
- package/App.js +60 -59
- package/Arrow.js +1 -1
- package/AssetFilter.js +38 -38
- package/AssetItem.js +10 -17
- package/AssetList.js +5 -5
- package/AssetTypeItem.js +21 -21
- package/AssetsView.js +13 -13
- package/Axios2.js +82 -76
- package/AxiosError.js +36 -35
- package/ButtonAction.js +1 -1
- package/CanceledError.js +15 -8
- package/Card.js +1 -1
- package/Chip.js +1 -1
- package/CollectionCard.js +22 -22
- package/CollectionItem.js +9 -9
- package/CollectionList.js +5 -5
- package/CollectionView.js +11 -11
- package/ColorPicker.js +1 -1
- package/ColorPickerSolid.js +3 -3
- package/ColorPickerWithOpacity.js +3 -3
- package/Component.js +158 -0
- package/Component2.js +4 -0
- package/ConfigContext.js +7 -8
- package/Container.js +1 -1
- package/ContextAction.js +1 -1
- package/ControlGroup.js +6 -6
- package/Dat.js +33 -32
- package/DatDropdownItem.js +1 -1
- package/DesignSystemProvider.js +7 -7
- package/DirectionSelect.js +11 -10
- package/DomainInput.js +19 -11
- package/Draggable.js +337 -0
- package/Draggable2.js +4 -0
- package/DraggableCore.js +312 -0
- package/DraggableCore2.js +4 -0
- package/Dropdown.js +37 -37
- package/Dropdown2.js +1 -1
- package/DropdownListItem.js +1 -1
- package/FieldSelect.js +19 -17
- package/FileSelector.js +38 -37
- package/FontPicker.js +1 -1
- package/Form.js +1 -1
- package/Header.js +5 -4
- package/HttpStatusCode.js +7 -1
- package/InfiniteScroll.js +1 -1
- package/InlineBanner.js +1 -1
- package/Input.js +1 -1
- package/InterceptorManager.js +2 -1
- package/Item.js +8 -8
- package/Item4.js +2 -2
- package/LeftArrow.js +1 -1
- package/ListItem2.js +1 -1
- package/ModalBase.js +15 -15
- package/NoResults.js +1 -1
- package/Option_new.js +36 -29
- package/ReactPropTypesSecret.js +10 -0
- package/RightArrow.js +1 -1
- package/SearchInput.js +1 -1
- package/SearchInput2.js +1 -1
- package/SelectionFooter.js +41 -31
- package/Shield.js +2 -2
- package/Smartfilters_new.js +107 -98
- package/StatefulAssetList.js +50 -50
- package/StoreInitializer.js +32 -16
- package/SwitchNLS.js +1 -1
- package/TagItem.js +15 -15
- package/Tags.js +1 -1
- package/Toolbar.js +23 -20
- package/Tooltip2.js +1 -1
- package/ViewSwitch.js +17 -15
- package/_commonjsHelpers.js +28 -3
- package/adapters.js +54 -42
- package/api/filterAssets.d.ts +1 -1
- package/api/getAssets.d.ts +1 -1
- package/api/getFilters.d.ts +1 -1
- package/api/rest/index.d.ts +1 -1
- package/api/rest/types.d.ts +1 -1
- package/api2.js +1 -1
- package/asset.type.js +1 -1
- package/axios.js +1 -1
- package/bodyScrollLock.esm.js +68 -0
- package/buildURL.js +13 -15
- package/checkGlobals.js +1 -1
- package/cjs.js +7 -0
- package/cjs2.js +15 -0
- package/cjs3.js +4 -0
- package/clsx.m.js +6 -0
- package/clsx.m2.js +15 -0
- package/combineMetaproperties.js +3 -1
- package/composeSignals.js +1 -1
- package/cookieStore.js +1 -1
- package/cookies.js +13 -11
- package/currentScopes.js +1 -1
- package/data.js +1 -1
- package/devUtils.js +1 -1
- package/dispatchRequest.js +5 -5
- package/domFns.js +151 -0
- package/domFns2.js +4 -0
- package/factoryWithThrowingShims.js +52 -0
- package/fetch2.js +156 -128
- package/filter/AssetFilterContext.d.ts +3 -3
- package/getPrefix.js +35 -0
- package/getPrefix2.js +4 -0
- package/goober.modern.js +75 -0
- package/handlers.js +1 -1
- package/iconBase.js +56 -0
- package/iconContext.js +12 -0
- package/iconsManifest.js +222 -0
- package/index-esm.js +1 -4
- package/index.browser.js +1 -1
- package/index.m.js +9 -0
- package/index.m2.js +17 -0
- package/index10.js +1 -1
- package/index11.js +181 -15
- package/index112.js +1 -1
- package/index12.js +313 -36
- package/index13.js +5 -2430
- package/index14.js +3 -557
- package/index15.js +15 -55
- package/index16.js +3 -2
- package/index17.js +3 -87
- package/index18.js +36 -7
- package/index19.js +3 -60
- package/index20.js +2429 -12
- package/index21.js +557 -10
- package/index22.js +1 -1
- package/index23.js +119 -6
- package/index24.js +39 -7
- package/index25.js +2 -5
- package/index26.js +86 -9
- package/index27.js +55 -8
- package/index28.js +6 -636
- package/index29.js +8692 -74
- package/index3.js +1684 -5
- package/index30.js +2 -5
- package/index31.js +4 -20
- package/index310.js +2 -0
- package/index32.js +11 -2
- package/index33.js +5083 -4
- package/index34.js +2 -18
- package/index35.js +59 -5
- package/index36.js +2 -2
- package/index37.js +13 -11
- package/index38.js +46 -10
- package/index39.js +6 -12
- package/index4.js +5 -1684
- package/index40.js +8 -11
- package/index41.js +26 -18
- package/index42.js +2 -64
- package/index43.js +63 -5
- package/index44.js +9 -55
- package/index45.js +7 -67
- package/index46.js +8 -31
- package/index47.js +5 -11
- package/index48.js +10 -121
- package/index49.js +9 -86
- package/index5.js +215 -23
- package/index50.js +636 -7
- package/index51.js +74 -11
- package/index52.js +4 -13
- package/index53.js +19 -13
- package/index54.js +4 -6
- package/index55.js +18 -7
- package/index56.js +5 -14
- package/index57.js +10 -28
- package/index58.js +10 -15
- package/index59.js +15 -0
- package/index6.js +250 -299
- package/index60.js +13 -0
- package/index61.js +21 -0
- package/index62.js +8 -0
- package/index63.js +57 -0
- package/index64.js +4 -0
- package/index65.js +69 -0
- package/index66.js +33 -0
- package/index67.js +13 -0
- package/index68.js +123 -0
- package/index69.js +88 -0
- package/index7.js +25 -2
- package/index70.js +10 -0
- package/index71.js +13 -0
- package/index72.js +13 -225
- package/index73.js +16 -0
- package/index74.js +9 -0
- package/index75.js +228 -0
- package/index76.js +9 -0
- package/index77.js +17 -0
- package/index78.js +31 -0
- package/index79.js +18 -0
- package/index8.js +1537 -1536
- package/index9.js +1 -1
- package/isAbsoluteURL.js +1 -1
- package/isURLSameOrigin.js +1 -1
- package/localization.js +15 -15
- package/log.js +14 -0
- package/log2.js +4 -0
- package/matchRequestUrl.js +1 -1
- package/mergeConfig.js +37 -32
- package/notify.js +2 -2
- package/package.json +1 -1
- package/positionFns.js +101 -0
- package/positionFns2.js +4 -0
- package/react-laag.esm.js +957 -0
- package/react.js +8 -8
- package/react2.js +9 -9
- package/resolveConfig.js +23 -23
- package/select/add-media/AddMedia.d.ts +3 -1
- package/select/current-selection/SelectedItems.d.ts +1 -1
- package/shims.js +29 -0
- package/shims2.js +4 -0
- package/store/StoreInitializer.d.ts +5 -1
- package/store/useAssetFilterStore.d.ts +55 -0
- package/store/useSelectionStore.d.ts +47 -0
- package/styled-components.browser.esm.js +2 -2
- package/throttle.js +1 -1
- package/toURLEncodedForm.js +11 -10
- package/tokenExpirationHelper.js +1 -1
- package/transformData.js +1 -1
- package/transitional.js +4 -3
- package/useAssetFilterStore.js +152 -0
- package/useDatStore.js +1 -1
- package/useEffectEvent.js +7 -7
- package/useFonts.js +1 -1
- package/useOrderingStore.js +1 -1
- package/useRouterStore.js +1 -1
- package/useSearchStore.js +1 -1
- package/useSelectionStore.js +131 -0
- package/useSimilaritySearchStore.js +1 -1
- package/useTranslate.js +1 -1
- package/utils/combineMetaproperties.d.ts +2 -0
- package/utils6.js +160 -118
- package/xhr.js +47 -46
- package/AssetFilterContext.js +0 -161
- package/Middleware.js +0 -49
- package/SelectionContext.js +0 -143
- package/middleware2.js +0 -177
- package/select/SelectionContext.d.ts +0 -30
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 "./
|
|
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
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
|
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,
|
|
7
|
-
if (!
|
|
6
|
+
function m(e, i, n) {
|
|
7
|
+
if (!i)
|
|
8
8
|
return e;
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
package/cjs.js
ADDED
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
package/clsx.m.js
ADDED
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
|
+
};
|
package/combineMetaproperties.js
CHANGED
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}
|
|
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 "./
|
|
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
|
|
2
|
-
import
|
|
3
|
-
const p =
|
|
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(
|
|
7
|
-
|
|
8
|
-
|
|
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(
|
|
11
|
-
|
|
12
|
-
|
|
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(
|
|
15
|
-
this.write(
|
|
16
|
+
remove(t) {
|
|
17
|
+
this.write(t, "", Date.now() - 864e5, "/");
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
) : (
|
package/currentScopes.js
CHANGED
package/data.js
CHANGED
package/devUtils.js
CHANGED
package/dispatchRequest.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import r from "./transformData.js";
|
|
2
2
|
import p from "./isCancel.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import l from "./index26.js";
|
|
4
|
+
import m from "./CanceledError.js";
|
|
5
5
|
import a from "./AxiosHeaders.js";
|
|
6
|
-
import
|
|
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
|
|
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),
|
|
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,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
|
+
};
|