@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.
- 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/autocomplete.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/filterAssets.js +1 -1
- package/getAsset.js +1 -1
- package/getAssetCounts.js +1 -1
- package/getAssets.js +1 -1
- package/getCollections.js +1 -1
- package/getFilterOptions.js +1 -1
- package/getFilters.js +1 -1
- package/getFilters_new.js +1 -1
- package/getPrefix.js +35 -0
- package/getPrefix2.js +4 -0
- package/getSimilarityAssets.js +1 -1
- 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 +18 -2
- 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 -60
- package/index19.js +3 -7
- 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 +22 -5047
- 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 +5044 -47
- package/index9.js +50 -15
- 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 +2 -2
- 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/utils7.js +7 -68
- package/utils8.js +68 -7
- package/xhr.js +47 -46
- package/AssetFilterContext.js +0 -161
- package/SelectionContext.js +0 -143
- package/select/SelectionContext.d.ts +0 -30
- /package/{Middleware.js → Middleware2.js} +0 -0
- /package/{middleware2.js → middleware.js} +0 -0
package/fetch2.js
CHANGED
|
@@ -1,141 +1,169 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { trackStream as
|
|
6
|
-
import
|
|
7
|
-
import { progressEventDecorator as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
1
|
+
import K from "./index28.js";
|
|
2
|
+
import t from "./utils6.js";
|
|
3
|
+
import b from "./AxiosError.js";
|
|
4
|
+
import ee from "./composeSignals.js";
|
|
5
|
+
import { trackStream as z } from "./trackStream.js";
|
|
6
|
+
import te from "./AxiosHeaders.js";
|
|
7
|
+
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./progressEventReducer.js";
|
|
8
|
+
import se from "./resolveConfig.js";
|
|
9
|
+
import re from "./settle.js";
|
|
10
|
+
const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o }) => ({
|
|
11
|
+
Request: n,
|
|
12
|
+
Response: o
|
|
13
|
+
}))(t.global), {
|
|
14
|
+
ReadableStream: V,
|
|
15
|
+
TextEncoder: W
|
|
16
|
+
} = t.global, Z = (n, ...o) => {
|
|
11
17
|
try {
|
|
12
|
-
return !!
|
|
18
|
+
return !!n(...o);
|
|
13
19
|
} catch {
|
|
14
20
|
return !1;
|
|
15
21
|
}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
stream: T && ((e) => e.body)
|
|
28
|
-
};
|
|
29
|
-
w && ((e) => {
|
|
30
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
31
|
-
!g[t] && (g[t] = r.isFunction(e[t]) ? (s) => s[t]() : (s, u) => {
|
|
32
|
-
throw new l(`Response type '${t}' is not supported`, l.ERR_NOT_SUPPORT, u);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
})(new Response());
|
|
36
|
-
const V = async (e) => {
|
|
37
|
-
if (e == null)
|
|
38
|
-
return 0;
|
|
39
|
-
if (r.isBlob(e))
|
|
40
|
-
return e.size;
|
|
41
|
-
if (r.isSpecCompliantForm(e))
|
|
42
|
-
return (await new Request(D.origin, {
|
|
22
|
+
}, oe = (n) => {
|
|
23
|
+
n = t.merge.call({
|
|
24
|
+
skipUndefined: !0
|
|
25
|
+
}, ne, n);
|
|
26
|
+
const { fetch: o, Request: a, Response: y } = n, g = o ? P(o) : typeof fetch == "function", f = P(a), F = P(y);
|
|
27
|
+
if (!g)
|
|
28
|
+
return !1;
|
|
29
|
+
const w = g && P(V), R = g && (typeof W == "function" ? /* @__PURE__ */ ((e) => (s) => e.encode(s))(new W()) : async (e) => new Uint8Array(await new a(e).arrayBuffer())), d = f && w && Z(() => {
|
|
30
|
+
let e = !1;
|
|
31
|
+
const s = new a(K.origin, {
|
|
32
|
+
body: new V(),
|
|
43
33
|
method: "POST",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
cancelToken: x,
|
|
60
|
-
timeout: v,
|
|
61
|
-
onDownloadProgress: R,
|
|
62
|
-
onUploadProgress: b,
|
|
63
|
-
responseType: n,
|
|
64
|
-
headers: y,
|
|
65
|
-
withCredentials: m = "same-origin",
|
|
66
|
-
fetchOptions: E
|
|
67
|
-
} = z(e);
|
|
68
|
-
n = n ? (n + "").toLowerCase() : "text";
|
|
69
|
-
let d = H([U, x && x.toAbortSignal()], v), f;
|
|
70
|
-
const c = d && d.unsubscribe && (() => {
|
|
71
|
-
d.unsubscribe();
|
|
34
|
+
get duplex() {
|
|
35
|
+
return e = !0, "half";
|
|
36
|
+
}
|
|
37
|
+
}).headers.has("Content-Type");
|
|
38
|
+
return e && !s;
|
|
39
|
+
}), h = F && w && Z(() => t.isReadableStream(new y("").body)), x = {
|
|
40
|
+
stream: h && ((e) => e.body)
|
|
41
|
+
};
|
|
42
|
+
g && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
43
|
+
!x[e] && (x[e] = (s, i) => {
|
|
44
|
+
let c = s && s[e];
|
|
45
|
+
if (c)
|
|
46
|
+
return c.call(s);
|
|
47
|
+
throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, i);
|
|
48
|
+
});
|
|
72
49
|
});
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
50
|
+
const $ = async (e) => {
|
|
51
|
+
if (e == null)
|
|
52
|
+
return 0;
|
|
53
|
+
if (t.isBlob(e))
|
|
54
|
+
return e.size;
|
|
55
|
+
if (t.isSpecCompliantForm(e))
|
|
56
|
+
return (await new a(K.origin, {
|
|
77
57
|
method: "POST",
|
|
78
|
-
body:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
58
|
+
body: e
|
|
59
|
+
}).arrayBuffer()).byteLength;
|
|
60
|
+
if (t.isArrayBufferView(e) || t.isArrayBuffer(e))
|
|
61
|
+
return e.byteLength;
|
|
62
|
+
if (t.isURLSearchParams(e) && (e = e + ""), t.isString(e))
|
|
63
|
+
return (await R(e)).byteLength;
|
|
64
|
+
}, G = async (e, s) => {
|
|
65
|
+
const i = t.toFiniteNumber(e.getContentLength());
|
|
66
|
+
return i ?? $(s);
|
|
67
|
+
};
|
|
68
|
+
return async (e) => {
|
|
69
|
+
let {
|
|
70
|
+
url: s,
|
|
71
|
+
method: i,
|
|
72
|
+
data: c,
|
|
73
|
+
signal: Q,
|
|
74
|
+
cancelToken: _,
|
|
75
|
+
timeout: X,
|
|
76
|
+
onDownloadProgress: O,
|
|
77
|
+
onUploadProgress: B,
|
|
78
|
+
responseType: l,
|
|
79
|
+
headers: q,
|
|
80
|
+
withCredentials: C = "same-origin",
|
|
81
|
+
fetchOptions: U
|
|
82
|
+
} = se(e), v = o || fetch;
|
|
83
|
+
l = l ? (l + "").toLowerCase() : "text";
|
|
84
|
+
let E = ee([Q, _ && _.toAbortSignal()], X), T = null;
|
|
85
|
+
const m = E && E.unsubscribe && (() => {
|
|
86
|
+
E.unsubscribe();
|
|
87
|
+
});
|
|
88
|
+
let D;
|
|
89
|
+
try {
|
|
90
|
+
if (B && d && i !== "get" && i !== "head" && (D = await G(q, c)) !== 0) {
|
|
91
|
+
let p = new a(s, {
|
|
92
|
+
method: "POST",
|
|
93
|
+
body: c,
|
|
94
|
+
duplex: "half"
|
|
95
|
+
}), S;
|
|
96
|
+
if (t.isFormData(c) && (S = p.headers.get("content-type")) && q.setContentType(S), p.body) {
|
|
97
|
+
const [A, L] = I(
|
|
98
|
+
D,
|
|
99
|
+
M(j(B))
|
|
100
|
+
);
|
|
101
|
+
c = z(p.body, J, A, L);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
t.isString(C) || (C = C ? "include" : "omit");
|
|
105
|
+
const r = f && "credentials" in a.prototype, N = {
|
|
106
|
+
...U,
|
|
107
|
+
signal: E,
|
|
108
|
+
method: i.toUpperCase(),
|
|
109
|
+
headers: q.normalize().toJSON(),
|
|
110
|
+
body: c,
|
|
111
|
+
duplex: "half",
|
|
112
|
+
credentials: r ? C : void 0
|
|
113
|
+
};
|
|
114
|
+
T = f && new a(s, N);
|
|
115
|
+
let u = await (f ? v(T, U) : v(s, N));
|
|
116
|
+
const k = h && (l === "stream" || l === "response");
|
|
117
|
+
if (h && (O || k && m)) {
|
|
118
|
+
const p = {};
|
|
119
|
+
["status", "statusText", "headers"].forEach((H) => {
|
|
120
|
+
p[H] = u[H];
|
|
121
|
+
});
|
|
122
|
+
const S = t.toFiniteNumber(u.headers.get("content-length")), [A, L] = O && I(
|
|
123
|
+
S,
|
|
124
|
+
M(j(O), !0)
|
|
125
|
+
) || [];
|
|
126
|
+
u = new y(
|
|
127
|
+
z(u.body, J, A, () => {
|
|
128
|
+
L && L(), m && m();
|
|
129
|
+
}),
|
|
130
|
+
p
|
|
85
131
|
);
|
|
86
|
-
u = P(i.body, B, S, h);
|
|
87
132
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
});
|
|
100
|
-
let a = await fetch(f, E);
|
|
101
|
-
const q = T && (n === "stream" || n === "response");
|
|
102
|
-
if (T && (R || q && c)) {
|
|
103
|
-
const i = {};
|
|
104
|
-
["status", "statusText", "headers"].forEach((L) => {
|
|
105
|
-
i[L] = a[L];
|
|
133
|
+
l = l || "text";
|
|
134
|
+
let Y = await x[t.findKey(x, l) || "text"](u, e);
|
|
135
|
+
return !k && m && m(), await new Promise((p, S) => {
|
|
136
|
+
re(p, S, {
|
|
137
|
+
data: Y,
|
|
138
|
+
headers: te.from(u.headers),
|
|
139
|
+
status: u.status,
|
|
140
|
+
statusText: u.statusText,
|
|
141
|
+
config: e,
|
|
142
|
+
request: T
|
|
143
|
+
});
|
|
106
144
|
});
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}),
|
|
115
|
-
i
|
|
116
|
-
);
|
|
145
|
+
} catch (r) {
|
|
146
|
+
throw m && m(), r && r.name === "TypeError" && /Load failed|fetch/i.test(r.message) ? Object.assign(
|
|
147
|
+
new b("Network Error", b.ERR_NETWORK, e, T, r && r.response),
|
|
148
|
+
{
|
|
149
|
+
cause: r.cause || r
|
|
150
|
+
}
|
|
151
|
+
) : b.from(r, r && r.code, e, T, r && r.response);
|
|
117
152
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
new l("Network Error", l.ERR_NETWORK, e, f),
|
|
133
|
-
{
|
|
134
|
-
cause: o.cause || o
|
|
135
|
-
}
|
|
136
|
-
) : l.from(o, o && o.code, e, f);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
153
|
+
};
|
|
154
|
+
}, ae = /* @__PURE__ */ new Map(), ie = (n) => {
|
|
155
|
+
let o = n && n.env || {};
|
|
156
|
+
const { fetch: a, Request: y, Response: g } = o, f = [
|
|
157
|
+
y,
|
|
158
|
+
g,
|
|
159
|
+
a
|
|
160
|
+
];
|
|
161
|
+
let F = f.length, w = F, R, d, h = ae;
|
|
162
|
+
for (; w--; )
|
|
163
|
+
R = f[w], d = h.get(R), d === void 0 && h.set(R, d = w ? /* @__PURE__ */ new Map() : oe(o)), h = d;
|
|
164
|
+
return d;
|
|
165
|
+
};
|
|
166
|
+
ie();
|
|
139
167
|
export {
|
|
140
|
-
|
|
168
|
+
ie as getFetch
|
|
141
169
|
};
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { AssetType } from '../views/asset/asset.type';
|
|
3
3
|
import { MetapropertyOptionType as MetapropertyOption } from './filters/metaproperty/MetapropertyOption';
|
|
4
4
|
import { AssetFilterJson } from './assetFilter.type';
|
|
5
|
-
import {
|
|
5
|
+
import { AutocompleteResponseOption, SmartfilterOption, selectedSmartfilterOptionsType, AssetCountType } from '../api/rest/types';
|
|
6
6
|
export interface Filter {
|
|
7
7
|
assetTypes: AssetType[];
|
|
8
8
|
metaproperties: MetapropertyOption[];
|
|
@@ -13,7 +13,7 @@ export interface Filter {
|
|
|
13
13
|
selectedSmartfilterOptions?: selectedSmartfilterOptionsType;
|
|
14
14
|
existingFilters?: Record<string, Record<string, number>> | null;
|
|
15
15
|
}
|
|
16
|
-
interface Actions {
|
|
16
|
+
export interface Actions {
|
|
17
17
|
addAssetType: (assetType: AssetType) => void;
|
|
18
18
|
removeAssetType: (assetType: AssetType) => void;
|
|
19
19
|
addMetaproperty: (metaproperty: MetapropertyOption) => void;
|
|
@@ -23,7 +23,7 @@ interface Actions {
|
|
|
23
23
|
removeTag: (tag: string) => void;
|
|
24
24
|
clear: () => void;
|
|
25
25
|
setDropdownState: (active: boolean) => void;
|
|
26
|
-
selectSmartfilterOption: (metapropertyName: string, option: SmartfilterOption |
|
|
26
|
+
selectSmartfilterOption: (metapropertyName: string, option: SmartfilterOption | AutocompleteResponseOption, isMultifilter?: boolean) => void;
|
|
27
27
|
removeSmartfilterOption: (metapropertyName: string, optionId: string) => void;
|
|
28
28
|
setActiveFiltersState: (count: AssetCountType) => void;
|
|
29
29
|
}
|
package/filterAssets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as y, useEffect as A } from "react";
|
|
2
2
|
import { isErr as m, ok as v } from "./result.type.js";
|
|
3
|
-
import { fetchWithGraphql as p } from "./
|
|
3
|
+
import { fetchWithGraphql as p } from "./index9.js";
|
|
4
4
|
import { useAuth as I } from "./LoginContext.js";
|
|
5
5
|
import { combineFilters as f } from "./combineFilters.js";
|
|
6
6
|
import { convertOptionsToBase64 as w } from "./base64Converter.js";
|
package/getAsset.js
CHANGED
package/getAssetCounts.js
CHANGED
package/getAssets.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isErr as A, ok as h } from "./result.type.js";
|
|
2
|
-
import { fetchWithGraphql as v } from "./
|
|
2
|
+
import { fetchWithGraphql as v } from "./index9.js";
|
|
3
3
|
import { MAX_GET_ASSETS_LIMIT as I } from "./constants3.js";
|
|
4
4
|
import { chunk as S } from "./chunk.js";
|
|
5
5
|
import { convertAssetIdToBase64 as _ } from "./base64Converter.js";
|
package/getCollections.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as g, useEffect as m } from "react";
|
|
2
2
|
import { isErr as h } from "./result.type.js";
|
|
3
|
-
import { fetchWithGraphql as v } from "./
|
|
3
|
+
import { fetchWithGraphql as v } from "./index9.js";
|
|
4
4
|
import { useAuth as C } from "./LoginContext.js";
|
|
5
5
|
const y = `
|
|
6
6
|
query getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {
|
package/getFilterOptions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState as p, useRef as l, useEffect as m } from "react";
|
|
2
2
|
import { isErr as f } from "./result.type.js";
|
|
3
3
|
import { useAuth as c } from "./LoginContext.js";
|
|
4
|
-
import { fetchWithGraphql as d } from "./
|
|
4
|
+
import { fetchWithGraphql as d } from "./index9.js";
|
|
5
5
|
const y = `
|
|
6
6
|
query getMetapropertyFilterOptions($smartfilterId: String!, $metapropertyId: String!, $cursor: String) {
|
|
7
7
|
filterOptions(smartfilterId: $smartfilterId, metapropertyId: $metapropertyId, cursor: $cursor) {
|
package/getFilters.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as F, useEffect as v } from "react";
|
|
2
2
|
import { isErr as L } from "./result.type.js";
|
|
3
|
-
import { fetchWithGraphql as A } from "./
|
|
3
|
+
import { fetchWithGraphql as A } from "./index9.js";
|
|
4
4
|
import { useAuth as b } from "./LoginContext.js";
|
|
5
5
|
import { combineFilters as n } from "./combineFilters.js";
|
|
6
6
|
import { convertOptionsToBase64 as w } from "./base64Converter.js";
|
package/getFilters_new.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState as o, useEffect as n } from "react";
|
|
2
2
|
import { isErr as u } from "./result.type.js";
|
|
3
3
|
import { useAuth as c } from "./LoginContext.js";
|
|
4
|
-
import { fetchWithGraphql as f } from "./
|
|
4
|
+
import { fetchWithGraphql as f } from "./index9.js";
|
|
5
5
|
const m = `
|
|
6
6
|
query getFilters {
|
|
7
7
|
filters {
|
package/getPrefix.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __exports as n } from "./getPrefix2.js";
|
|
2
|
+
var l;
|
|
3
|
+
function c() {
|
|
4
|
+
if (l) return n;
|
|
5
|
+
l = 1, Object.defineProperty(n, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), n.browserPrefixToKey = f, n.browserPrefixToStyle = a, n.default = void 0, n.getPrefix = u;
|
|
8
|
+
const i = ["Moz", "Webkit", "O", "ms"];
|
|
9
|
+
function u() {
|
|
10
|
+
var e;
|
|
11
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
12
|
+
if (typeof window > "u") return "";
|
|
13
|
+
const o = (e = window.document) === null || e === void 0 || (e = e.documentElement) === null || e === void 0 ? void 0 : e.style;
|
|
14
|
+
if (!o || t in o) return "";
|
|
15
|
+
for (let r = 0; r < i.length; r++)
|
|
16
|
+
if (f(t, i[r]) in o) return i[r];
|
|
17
|
+
return "";
|
|
18
|
+
}
|
|
19
|
+
function f(e, t) {
|
|
20
|
+
return t ? "".concat(t).concat(s(e)) : e;
|
|
21
|
+
}
|
|
22
|
+
function a(e, t) {
|
|
23
|
+
return t ? "-".concat(t.toLowerCase(), "-").concat(e) : e;
|
|
24
|
+
}
|
|
25
|
+
function s(e) {
|
|
26
|
+
let t = "", o = !0;
|
|
27
|
+
for (let r = 0; r < e.length; r++)
|
|
28
|
+
o ? (t += e[r].toUpperCase(), o = !1) : e[r] === "-" ? o = !0 : t += e[r];
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
return n.default = u(), n;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
c as __require
|
|
35
|
+
};
|
package/getPrefix2.js
ADDED
package/getSimilarityAssets.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useState as m } from "react";
|
|
|
2
2
|
import { isErr as A } from "./result.type.js";
|
|
3
3
|
import { useAuth as I } from "./LoginContext.js";
|
|
4
4
|
import { useConfig as x } from "./ConfigContext.js";
|
|
5
|
-
import { fetchWithGraphql as w } from "./
|
|
5
|
+
import { fetchWithGraphql as w } from "./index9.js";
|
|
6
6
|
import { useSimilaritySearchStore as L } from "./useSimilaritySearchStore.js";
|
|
7
7
|
function h(s) {
|
|
8
8
|
return {
|
package/goober.modern.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
let _ = { data: "" }, k = (e) => {
|
|
2
|
+
if (typeof window == "object") {
|
|
3
|
+
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), { innerHTML: " ", id: "_goober" });
|
|
4
|
+
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
5
|
+
}
|
|
6
|
+
return e || _;
|
|
7
|
+
}, N = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, O = /\/\*[^]*?\*\/| +/g, w = /\n+/g, d = (e, t) => {
|
|
8
|
+
let n = "", i = "", o = "";
|
|
9
|
+
for (let r in e) {
|
|
10
|
+
let l = e[r];
|
|
11
|
+
r[0] == "@" ? r[1] == "i" ? n = r + " " + l + ";" : i += r[1] == "f" ? d(l, r) : r + "{" + d(l, r[1] == "k" ? "" : t) + "}" : typeof l == "object" ? i += d(l, t ? t.replace(/([^,])+/g, (a) => r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (s) => /&/.test(s) ? s.replace(/&/g, a) : a ? a + " " + s : s)) : r) : l != null && (r = /^--/.test(r) ? r : r.replace(/[A-Z]/g, "-$&").toLowerCase(), o += d.p ? d.p(r, l) : r + ":" + l + ";");
|
|
12
|
+
}
|
|
13
|
+
return n + (t && o ? t + "{" + o + "}" : o) + i;
|
|
14
|
+
}, p = {}, y = (e) => {
|
|
15
|
+
if (typeof e == "object") {
|
|
16
|
+
let t = "";
|
|
17
|
+
for (let n in e) t += n + y(e[n]);
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
return e;
|
|
21
|
+
}, C = (e, t, n, i, o) => {
|
|
22
|
+
let r = y(e), l = p[r] || (p[r] = ((s) => {
|
|
23
|
+
let c = 0, u = 11;
|
|
24
|
+
for (; c < s.length; ) u = 101 * u + s.charCodeAt(c++) >>> 0;
|
|
25
|
+
return "go" + u;
|
|
26
|
+
})(r));
|
|
27
|
+
if (!p[l]) {
|
|
28
|
+
let s = r !== e ? e : ((c) => {
|
|
29
|
+
let u, f, g = [{}];
|
|
30
|
+
for (; u = N.exec(c.replace(O, "")); ) u[4] ? g.shift() : u[3] ? (f = u[3].replace(w, " ").trim(), g.unshift(g[0][f] = g[0][f] || {})) : g[0][u[1]] = u[2].replace(w, " ").trim();
|
|
31
|
+
return g[0];
|
|
32
|
+
})(e);
|
|
33
|
+
p[l] = d(o ? { ["@keyframes " + l]: s } : s, n ? "" : "." + l);
|
|
34
|
+
}
|
|
35
|
+
let a = n && p.g ? p.g : null;
|
|
36
|
+
return n && (p.g = p[l]), ((s, c, u, f) => {
|
|
37
|
+
f ? c.data = c.data.replace(f, s) : c.data.indexOf(s) === -1 && (c.data = u ? s + c.data : c.data + s);
|
|
38
|
+
})(p[l], t, i, a), l;
|
|
39
|
+
}, F = (e, t, n) => e.reduce((i, o, r) => {
|
|
40
|
+
let l = t[r];
|
|
41
|
+
if (l && l.call) {
|
|
42
|
+
let a = l(n), s = a && a.props && a.props.className || /^go/.test(a) && a;
|
|
43
|
+
l = s ? "." + s : a && typeof a == "object" ? a.props ? "" : d(a, "") : a === !1 ? "" : a;
|
|
44
|
+
}
|
|
45
|
+
return i + o + (l ?? "");
|
|
46
|
+
}, "");
|
|
47
|
+
function h(e) {
|
|
48
|
+
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
49
|
+
return C(n.unshift ? n.raw ? F(n, [].slice.call(arguments, 1), t.p) : n.reduce((i, o) => Object.assign(i, o && o.call ? o(t.p) : o), {}) : n, k(t.target), t.g, t.o, t.k);
|
|
50
|
+
}
|
|
51
|
+
let j, m, b;
|
|
52
|
+
h.bind({ g: 1 });
|
|
53
|
+
let x = h.bind({ k: 1 });
|
|
54
|
+
function A(e, t, n, i) {
|
|
55
|
+
d.p = t, j = e, m = n, b = i;
|
|
56
|
+
}
|
|
57
|
+
function L(e, t) {
|
|
58
|
+
let n = this || {};
|
|
59
|
+
return function() {
|
|
60
|
+
let i = arguments;
|
|
61
|
+
function o(r, l) {
|
|
62
|
+
let a = Object.assign({}, r), s = a.className || o.className;
|
|
63
|
+
n.p = Object.assign({ theme: m && m() }, a), n.o = / *go\d+/.test(s), a.className = h.apply(n, i) + (s ? " " + s : "");
|
|
64
|
+
let c = e;
|
|
65
|
+
return e[0] && (c = a.as || e, delete a.as), b && c[0] && b(a), j(c, a);
|
|
66
|
+
}
|
|
67
|
+
return o;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
h as css,
|
|
72
|
+
x as keyframes,
|
|
73
|
+
A as setup,
|
|
74
|
+
L as styled
|
|
75
|
+
};
|
package/handlers.js
CHANGED
package/iconBase.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import { IconContext as f, DefaultContext as d } from "./iconContext.js";
|
|
3
|
+
var l = function() {
|
|
4
|
+
return l = Object.assign || function(e) {
|
|
5
|
+
for (var r, t = 1, n = arguments.length; t < n; t++) {
|
|
6
|
+
r = arguments[t];
|
|
7
|
+
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
8
|
+
}
|
|
9
|
+
return e;
|
|
10
|
+
}, l.apply(this, arguments);
|
|
11
|
+
}, g = function(e, r) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && r.indexOf(n) < 0 && (t[n] = e[n]);
|
|
14
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
15
|
+
r.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (t[n[a]] = e[n[a]]);
|
|
16
|
+
return t;
|
|
17
|
+
};
|
|
18
|
+
function m(e) {
|
|
19
|
+
return e && e.map(function(r, t) {
|
|
20
|
+
return o.createElement(r.tag, l({
|
|
21
|
+
key: t
|
|
22
|
+
}, r.attr), m(r.child));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function O(e) {
|
|
26
|
+
return function(r) {
|
|
27
|
+
return o.createElement(y, l({
|
|
28
|
+
attr: l({}, e.attr)
|
|
29
|
+
}, r), m(e.child));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function y(e) {
|
|
33
|
+
var r = function(t) {
|
|
34
|
+
var n = e.attr, a = e.size, u = e.title, s = g(e, ["attr", "size", "title"]), c = a || t.size || "1em", i;
|
|
35
|
+
return t.className && (i = t.className), e.className && (i = (i ? i + " " : "") + e.className), o.createElement("svg", l({
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
strokeWidth: "0"
|
|
39
|
+
}, t.attr, n, s, {
|
|
40
|
+
className: i,
|
|
41
|
+
style: l(l({
|
|
42
|
+
color: e.color || t.color
|
|
43
|
+
}, t.style), e.style),
|
|
44
|
+
height: c,
|
|
45
|
+
width: c,
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
47
|
+
}), u && o.createElement("title", null, u), e.children);
|
|
48
|
+
};
|
|
49
|
+
return f !== void 0 ? o.createElement(f.Consumer, null, function(t) {
|
|
50
|
+
return r(t);
|
|
51
|
+
}) : r(d);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
O as GenIcon,
|
|
55
|
+
y as IconBase
|
|
56
|
+
};
|
package/iconContext.js
ADDED