@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/index9.js
CHANGED
|
@@ -6,7 +6,7 @@ const o = /* @__PURE__ */ new Map();
|
|
|
6
6
|
async function G(g) {
|
|
7
7
|
const { query: d, variables: h, auth: a, noCache: l, isNewGQL: y } = g;
|
|
8
8
|
if (!a) return p("No authentication provided");
|
|
9
|
-
const n = a.getAccessToken?.(), $ = "5.2.
|
|
9
|
+
const n = a.getAccessToken?.(), $ = "5.2.4";
|
|
10
10
|
let e = a.accountDomain !== void 0 ? q(a.accountDomain.trim()) : `https://${window.location.host}`;
|
|
11
11
|
e.charAt(e.length - 1) === "/" && (e = e.slice(0, -1));
|
|
12
12
|
const i = `${e}:${d}:${JSON.stringify(h)}:${n}`;
|
package/isAbsoluteURL.js
CHANGED
package/isURLSameOrigin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./index28.js";
|
|
2
2
|
const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
3
3
|
new URL(o.origin),
|
|
4
4
|
o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
|
package/localization.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { Localization as f } from "./
|
|
3
|
+
import { Localization as f } from "./index12.js";
|
|
4
4
|
import r from "./en_US.json.js";
|
|
5
5
|
import n from "./de_DE.json.js";
|
|
6
6
|
import _ from "./es_ES.json.js";
|
|
7
7
|
import a from "./es_MX.json.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import l from "./fr_FR.json.js";
|
|
9
|
+
import s from "./it_IT.json.js";
|
|
10
|
+
import c from "./ja_JP.json.js";
|
|
11
11
|
import R from "./ko_KR.json.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
12
|
+
import d from "./nl_NL.json.js";
|
|
13
|
+
import u from "./pl_PL.json.js";
|
|
14
|
+
import z from "./pt_BR.json.js";
|
|
15
|
+
import L from "./ru_RU.json.js";
|
|
16
16
|
import P from "./tr_TR.json.js";
|
|
17
17
|
import T from "./zh_CN.json.js";
|
|
18
18
|
import h from "./zh_TW.json.js";
|
|
@@ -21,14 +21,14 @@ const v = {
|
|
|
21
21
|
"en-US": r,
|
|
22
22
|
"es-ES": _,
|
|
23
23
|
"es-MX": a,
|
|
24
|
-
"fr-FR":
|
|
25
|
-
"it-IT":
|
|
26
|
-
"ja-JP":
|
|
24
|
+
"fr-FR": l,
|
|
25
|
+
"it-IT": s,
|
|
26
|
+
"ja-JP": c,
|
|
27
27
|
"ko-KR": R,
|
|
28
|
-
"nl-NL":
|
|
29
|
-
"pl-PL":
|
|
30
|
-
"pt-BR":
|
|
31
|
-
"ru-RU":
|
|
28
|
+
"nl-NL": d,
|
|
29
|
+
"pl-PL": u,
|
|
30
|
+
"pt-BR": z,
|
|
31
|
+
"ru-RU": L,
|
|
32
32
|
"tr-TR": P,
|
|
33
33
|
"zh-CN": T,
|
|
34
34
|
"zh-TW": h
|
package/log.js
ADDED
package/log2.js
ADDED
package/matchRequestUrl.js
CHANGED
package/mergeConfig.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./utils6.js";
|
|
2
2
|
import h from "./AxiosHeaders.js";
|
|
3
|
-
const
|
|
4
|
-
function C(s,
|
|
5
|
-
|
|
3
|
+
const g = (s) => s instanceof h ? { ...s } : s;
|
|
4
|
+
function C(s, f) {
|
|
5
|
+
f = f || {};
|
|
6
6
|
const u = {};
|
|
7
|
-
function
|
|
8
|
-
return
|
|
7
|
+
function o(t, e, i, d) {
|
|
8
|
+
return r.isPlainObject(t) && r.isPlainObject(e) ? r.merge.call({ caseless: d }, t, e) : r.isPlainObject(e) ? r.merge({}, e) : r.isArray(e) ? e.slice() : e;
|
|
9
9
|
}
|
|
10
|
-
function l(t, e,
|
|
11
|
-
if (
|
|
12
|
-
if (!
|
|
13
|
-
return
|
|
14
|
-
} else return
|
|
10
|
+
function l(t, e, i, d) {
|
|
11
|
+
if (r.isUndefined(e)) {
|
|
12
|
+
if (!r.isUndefined(t))
|
|
13
|
+
return o(void 0, t, i, d);
|
|
14
|
+
} else return o(t, e, i, d);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
if (!
|
|
18
|
-
return
|
|
16
|
+
function a(t, e) {
|
|
17
|
+
if (!r.isUndefined(e))
|
|
18
|
+
return o(void 0, e);
|
|
19
19
|
}
|
|
20
20
|
function n(t, e) {
|
|
21
|
-
if (
|
|
22
|
-
if (!
|
|
23
|
-
return
|
|
24
|
-
} else return
|
|
21
|
+
if (r.isUndefined(e)) {
|
|
22
|
+
if (!r.isUndefined(t))
|
|
23
|
+
return o(void 0, t);
|
|
24
|
+
} else return o(void 0, e);
|
|
25
25
|
}
|
|
26
|
-
function m(t, e,
|
|
27
|
-
if (
|
|
28
|
-
return
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
26
|
+
function m(t, e, i) {
|
|
27
|
+
if (i in f)
|
|
28
|
+
return o(t, e);
|
|
29
|
+
if (i in s)
|
|
30
|
+
return o(void 0, t);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
url:
|
|
34
|
-
method:
|
|
35
|
-
data:
|
|
32
|
+
const c = {
|
|
33
|
+
url: a,
|
|
34
|
+
method: a,
|
|
35
|
+
data: a,
|
|
36
36
|
baseURL: n,
|
|
37
37
|
transformRequest: n,
|
|
38
38
|
transformResponse: n,
|
|
@@ -58,12 +58,17 @@ function C(s, a) {
|
|
|
58
58
|
socketPath: n,
|
|
59
59
|
responseEncoding: n,
|
|
60
60
|
validateStatus: m,
|
|
61
|
-
headers: (t, e,
|
|
61
|
+
headers: (t, e, i) => l(g(t), g(e), i, !0)
|
|
62
62
|
};
|
|
63
|
-
return
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
return r.forEach(
|
|
64
|
+
Object.keys({ ...s, ...f }),
|
|
65
|
+
function(e) {
|
|
66
|
+
if (e === "__proto__" || e === "constructor" || e === "prototype")
|
|
67
|
+
return;
|
|
68
|
+
const i = r.hasOwnProp(c, e) ? c[e] : l, d = i(s[e], f[e], e);
|
|
69
|
+
r.isUndefined(d) && i !== m || (u[e] = d);
|
|
70
|
+
}
|
|
71
|
+
), u;
|
|
67
72
|
}
|
|
68
73
|
export {
|
|
69
74
|
C as default
|
package/notify.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { cloneElement as f } from "react";
|
|
3
|
-
import { toast as n } from "
|
|
3
|
+
import { toast as n } from "./index6.js";
|
|
4
4
|
import { nanoid as u } from "./index.browser.js";
|
|
5
|
-
import { IconCancel as s, IconCheck as d } from "./
|
|
5
|
+
import { IconCancel as s, IconCheck as d } from "./index3.js";
|
|
6
6
|
import { Button as C } from "./Button.js";
|
|
7
7
|
import { Thumbnail as c } from "./Thumbnail.js";
|
|
8
8
|
import { Spinner as h } from "./Spinner2.js";
|
package/package.json
CHANGED
package/positionFns.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { __exports as s } from "./positionFns2.js";
|
|
2
|
+
import { __require as q } from "./shims.js";
|
|
3
|
+
import { __require as y } from "./domFns.js";
|
|
4
|
+
var h;
|
|
5
|
+
function F() {
|
|
6
|
+
if (h) return s;
|
|
7
|
+
h = 1, Object.defineProperty(s, "__esModule", {
|
|
8
|
+
value: !0
|
|
9
|
+
}), s.canDragX = D, s.canDragY = _, s.createCoreData = P, s.createDraggableData = M, s.getBoundPosition = X, s.getControlPosition = N, s.snapToGrid = Y;
|
|
10
|
+
var i = q(), u = y();
|
|
11
|
+
function X(t, o, e) {
|
|
12
|
+
if (!t.props.bounds) return [o, e];
|
|
13
|
+
let {
|
|
14
|
+
bounds: n
|
|
15
|
+
} = t.props;
|
|
16
|
+
n = typeof n == "string" ? n : w(n);
|
|
17
|
+
const r = c(t);
|
|
18
|
+
if (typeof n == "string") {
|
|
19
|
+
const {
|
|
20
|
+
ownerDocument: f
|
|
21
|
+
} = r, m = f.defaultView;
|
|
22
|
+
let a;
|
|
23
|
+
if (n === "parent" ? a = r.parentNode : a = f.querySelector(n), !(a instanceof m.HTMLElement))
|
|
24
|
+
throw new Error('Bounds selector "' + n + '" could not find an element.');
|
|
25
|
+
const d = a, p = m.getComputedStyle(r), l = m.getComputedStyle(d);
|
|
26
|
+
n = {
|
|
27
|
+
left: -r.offsetLeft + (0, i.int)(l.paddingLeft) + (0, i.int)(p.marginLeft),
|
|
28
|
+
top: -r.offsetTop + (0, i.int)(l.paddingTop) + (0, i.int)(p.marginTop),
|
|
29
|
+
right: (0, u.innerWidth)(d) - (0, u.outerWidth)(r) - r.offsetLeft + (0, i.int)(l.paddingRight) - (0, i.int)(p.marginRight),
|
|
30
|
+
bottom: (0, u.innerHeight)(d) - (0, u.outerHeight)(r) - r.offsetTop + (0, i.int)(l.paddingBottom) - (0, i.int)(p.marginBottom)
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return (0, i.isNum)(n.right) && (o = Math.min(o, n.right)), (0, i.isNum)(n.bottom) && (e = Math.min(e, n.bottom)), (0, i.isNum)(n.left) && (o = Math.max(o, n.left)), (0, i.isNum)(n.top) && (e = Math.max(e, n.top)), [o, e];
|
|
34
|
+
}
|
|
35
|
+
function Y(t, o, e) {
|
|
36
|
+
const n = Math.round(o / t[0]) * t[0], r = Math.round(e / t[1]) * t[1];
|
|
37
|
+
return [n, r];
|
|
38
|
+
}
|
|
39
|
+
function D(t) {
|
|
40
|
+
return t.props.axis === "both" || t.props.axis === "x";
|
|
41
|
+
}
|
|
42
|
+
function _(t) {
|
|
43
|
+
return t.props.axis === "both" || t.props.axis === "y";
|
|
44
|
+
}
|
|
45
|
+
function N(t, o, e) {
|
|
46
|
+
const n = typeof o == "number" ? (0, u.getTouch)(t, o) : null;
|
|
47
|
+
if (typeof o == "number" && !n) return null;
|
|
48
|
+
const r = c(e), f = e.props.offsetParent || r.offsetParent || r.ownerDocument.body;
|
|
49
|
+
return (0, u.offsetXYFromParent)(n || t, f, e.props.scale);
|
|
50
|
+
}
|
|
51
|
+
function P(t, o, e) {
|
|
52
|
+
const n = !(0, i.isNum)(t.lastX), r = c(t);
|
|
53
|
+
return n ? {
|
|
54
|
+
node: r,
|
|
55
|
+
deltaX: 0,
|
|
56
|
+
deltaY: 0,
|
|
57
|
+
lastX: o,
|
|
58
|
+
lastY: e,
|
|
59
|
+
x: o,
|
|
60
|
+
y: e
|
|
61
|
+
} : {
|
|
62
|
+
node: r,
|
|
63
|
+
deltaX: o - t.lastX,
|
|
64
|
+
deltaY: e - t.lastY,
|
|
65
|
+
lastX: t.lastX,
|
|
66
|
+
lastY: t.lastY,
|
|
67
|
+
x: o,
|
|
68
|
+
y: e
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function M(t, o) {
|
|
72
|
+
const e = t.props.scale;
|
|
73
|
+
return {
|
|
74
|
+
node: o.node,
|
|
75
|
+
x: t.state.x + o.deltaX / e,
|
|
76
|
+
y: t.state.y + o.deltaY / e,
|
|
77
|
+
deltaX: o.deltaX / e,
|
|
78
|
+
deltaY: o.deltaY / e,
|
|
79
|
+
lastX: t.state.x,
|
|
80
|
+
lastY: t.state.y
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function w(t) {
|
|
84
|
+
return {
|
|
85
|
+
left: t.left,
|
|
86
|
+
top: t.top,
|
|
87
|
+
right: t.right,
|
|
88
|
+
bottom: t.bottom
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function c(t) {
|
|
92
|
+
const o = t.findDOMNode();
|
|
93
|
+
if (!o)
|
|
94
|
+
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
95
|
+
return o;
|
|
96
|
+
}
|
|
97
|
+
return s;
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
F as __require
|
|
101
|
+
};
|
package/positionFns2.js
ADDED