@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/CollectionView.js
CHANGED
|
@@ -7,31 +7,31 @@ import { useRouter as v } from "./useRouterStore.js";
|
|
|
7
7
|
import { useFilterAssets as w } from "./filterAssets.js";
|
|
8
8
|
import { __ as x } from "./index2.js";
|
|
9
9
|
import { StatefulAssetList as F } from "./StatefulAssetList.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
10
|
+
import { useSearchStateByPage as L } from "./useSearchStore.js";
|
|
11
|
+
import { useSimilaritySearchStore as V } from "./useSimilaritySearchStore.js";
|
|
12
|
+
import { useSimilarityAssets as B } from "./getSimilarityAssets.js";
|
|
13
|
+
import { useAssetFilterStore as N } from "./useAssetFilterStore.js";
|
|
14
14
|
function K(o) {
|
|
15
|
-
const { value:
|
|
15
|
+
const { value: r } = L("collection"), [, n] = v(), c = k.use.collection(), { language: s, noCache: l } = A(), { assetTypes: a, tags: m, isLimited: u, selectedSmartfilterOptions: d } = N(), {
|
|
16
16
|
isSelected: p,
|
|
17
17
|
isNLSSelected: f,
|
|
18
|
-
NLSSearchText:
|
|
19
|
-
} =
|
|
18
|
+
NLSSearchText: S
|
|
19
|
+
} = V(), { connection: g } = B(), h = w(
|
|
20
20
|
{
|
|
21
21
|
collection: o.collection,
|
|
22
22
|
filter: { assetTypes: a, selectedSmartfilterOptions: d, tags: m, isLimited: u },
|
|
23
|
-
searchTerm:
|
|
23
|
+
searchTerm: r,
|
|
24
24
|
orderBy: c,
|
|
25
25
|
language: s
|
|
26
26
|
},
|
|
27
27
|
l
|
|
28
|
-
), C = p || f &&
|
|
28
|
+
), C = p || f && S;
|
|
29
29
|
return /* @__PURE__ */ e(b, { children: [
|
|
30
30
|
/* @__PURE__ */ e(T, { "data-testid": "collection-toolbar", children: [
|
|
31
31
|
/* @__PURE__ */ e(
|
|
32
32
|
$,
|
|
33
33
|
{
|
|
34
|
-
onClick: () =>
|
|
34
|
+
onClick: () => n({ page: "collections" }),
|
|
35
35
|
type: "button",
|
|
36
36
|
children: [
|
|
37
37
|
x("Collections"),
|
|
@@ -48,7 +48,7 @@ function K(o) {
|
|
|
48
48
|
/* @__PURE__ */ y(
|
|
49
49
|
F,
|
|
50
50
|
{
|
|
51
|
-
connection: C ?
|
|
51
|
+
connection: C ? g : h,
|
|
52
52
|
totalCount: o.collection.assetCount,
|
|
53
53
|
showActiveFilters: !0
|
|
54
54
|
}
|
package/ColorPicker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as w, jsx as o, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as v, useRef as b } from "react";
|
|
3
|
-
import { useLayer as y, mergeRefs as k } from "react-laag";
|
|
3
|
+
import { useLayer as y, mergeRefs as k } from "./react-laag.esm.js";
|
|
4
4
|
import u from "./styled-components.browser.esm.js";
|
|
5
5
|
import { token as r } from "./token.js";
|
|
6
6
|
import { useId as I } from "./useId.js";
|
package/ColorPickerSolid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { HexColorPicker as m } from "
|
|
2
|
+
import { HexColorPicker as m } from "./index11.js";
|
|
3
3
|
import { ColorHexInput as p } from "./ColorHexInput.js";
|
|
4
4
|
import { InputContainer as c } from "./InputContainer.js";
|
|
5
|
-
function
|
|
5
|
+
function s({
|
|
6
6
|
value: n,
|
|
7
7
|
onChange: i
|
|
8
8
|
}) {
|
|
@@ -16,5 +16,5 @@ function d({
|
|
|
16
16
|
] });
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
s as ColorPickerSolid
|
|
20
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as p, Fragment as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { HexAlphaColorPicker as
|
|
3
|
-
import { makeHexWithOpacity as
|
|
2
|
+
import { HexAlphaColorPicker as a } from "./index11.js";
|
|
3
|
+
import { makeHexWithOpacity as m } from "./makeHexWithOpacity.js";
|
|
4
4
|
import { opacityPercentageFromHex as n } from "./opacityPercentageFromHex.js";
|
|
5
5
|
import { ColorHexInput as e } from "./ColorHexInput.js";
|
|
6
6
|
import { InputContainer as y } from "./InputContainer.js";
|
|
@@ -10,7 +10,7 @@ function H({
|
|
|
10
10
|
onChange: t
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ p(c, { children: [
|
|
13
|
-
/* @__PURE__ */ i(
|
|
13
|
+
/* @__PURE__ */ i(a, { color: m(o), onChange: (r) => {
|
|
14
14
|
t({
|
|
15
15
|
color: r.substring(0, 7),
|
|
16
16
|
opacity: n(r)
|
package/Component.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { __exports as f } from "./Component2.js";
|
|
2
|
+
import W from "react";
|
|
3
|
+
import { __require as $ } from "./index38.js";
|
|
4
|
+
var C;
|
|
5
|
+
function L() {
|
|
6
|
+
if (C) return f;
|
|
7
|
+
C = 1;
|
|
8
|
+
function y(e) {
|
|
9
|
+
"@babel/helpers - typeof";
|
|
10
|
+
return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
11
|
+
return typeof t;
|
|
12
|
+
} : function(t) {
|
|
13
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
14
|
+
}, y(e);
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(f, "__esModule", {
|
|
17
|
+
value: !0
|
|
18
|
+
}), f.CopyToClipboard = void 0;
|
|
19
|
+
var p = O(W), w = O($()), j = ["text", "onCopy", "options", "children"];
|
|
20
|
+
function O(e) {
|
|
21
|
+
return e && e.__esModule ? e : { default: e };
|
|
22
|
+
}
|
|
23
|
+
function _(e, t) {
|
|
24
|
+
var n = Object.keys(e);
|
|
25
|
+
if (Object.getOwnPropertySymbols) {
|
|
26
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
27
|
+
t && (r = r.filter(function(o) {
|
|
28
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
29
|
+
})), n.push.apply(n, r);
|
|
30
|
+
}
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
33
|
+
function h(e) {
|
|
34
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
35
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
36
|
+
t % 2 ? _(Object(n), !0).forEach(function(r) {
|
|
37
|
+
b(e, r, n[r]);
|
|
38
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _(Object(n)).forEach(function(r) {
|
|
39
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}
|
|
44
|
+
function S(e, t) {
|
|
45
|
+
if (e == null) return {};
|
|
46
|
+
var n = R(e, t), r, o;
|
|
47
|
+
if (Object.getOwnPropertySymbols) {
|
|
48
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
49
|
+
for (o = 0; o < i.length; o++)
|
|
50
|
+
r = i[o], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
51
|
+
}
|
|
52
|
+
return n;
|
|
53
|
+
}
|
|
54
|
+
function R(e, t) {
|
|
55
|
+
if (e == null) return {};
|
|
56
|
+
var n = {}, r = Object.keys(e), o, i;
|
|
57
|
+
for (i = 0; i < r.length; i++)
|
|
58
|
+
o = r[i], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
59
|
+
return n;
|
|
60
|
+
}
|
|
61
|
+
function x(e, t) {
|
|
62
|
+
if (!(e instanceof t))
|
|
63
|
+
throw new TypeError("Cannot call a class as a function");
|
|
64
|
+
}
|
|
65
|
+
function T(e, t) {
|
|
66
|
+
for (var n = 0; n < t.length; n++) {
|
|
67
|
+
var r = t[n];
|
|
68
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function E(e, t, n) {
|
|
72
|
+
return t && T(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
73
|
+
}
|
|
74
|
+
function k(e, t) {
|
|
75
|
+
if (typeof t != "function" && t !== null)
|
|
76
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
77
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && s(e, t);
|
|
78
|
+
}
|
|
79
|
+
function s(e, t) {
|
|
80
|
+
return s = Object.setPrototypeOf || function(r, o) {
|
|
81
|
+
return r.__proto__ = o, r;
|
|
82
|
+
}, s(e, t);
|
|
83
|
+
}
|
|
84
|
+
function q(e) {
|
|
85
|
+
var t = I();
|
|
86
|
+
return function() {
|
|
87
|
+
var r = c(e), o;
|
|
88
|
+
if (t) {
|
|
89
|
+
var i = c(this).constructor;
|
|
90
|
+
o = Reflect.construct(r, arguments, i);
|
|
91
|
+
} else
|
|
92
|
+
o = r.apply(this, arguments);
|
|
93
|
+
return D(this, o);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function D(e, t) {
|
|
97
|
+
if (t && (y(t) === "object" || typeof t == "function"))
|
|
98
|
+
return t;
|
|
99
|
+
if (t !== void 0)
|
|
100
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
101
|
+
return v(e);
|
|
102
|
+
}
|
|
103
|
+
function v(e) {
|
|
104
|
+
if (e === void 0)
|
|
105
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
106
|
+
return e;
|
|
107
|
+
}
|
|
108
|
+
function I() {
|
|
109
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
110
|
+
if (typeof Proxy == "function") return !0;
|
|
111
|
+
try {
|
|
112
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
113
|
+
})), !0;
|
|
114
|
+
} catch {
|
|
115
|
+
return !1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function c(e) {
|
|
119
|
+
return c = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
120
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
121
|
+
}, c(e);
|
|
122
|
+
}
|
|
123
|
+
function b(e, t, n) {
|
|
124
|
+
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
125
|
+
}
|
|
126
|
+
var m = /* @__PURE__ */ (function(e) {
|
|
127
|
+
k(n, e);
|
|
128
|
+
var t = q(n);
|
|
129
|
+
function n() {
|
|
130
|
+
var r;
|
|
131
|
+
x(this, n);
|
|
132
|
+
for (var o = arguments.length, i = new Array(o), u = 0; u < o; u++)
|
|
133
|
+
i[u] = arguments[u];
|
|
134
|
+
return r = t.call.apply(t, [this].concat(i)), b(v(r), "onClick", function(d) {
|
|
135
|
+
var a = r.props, P = a.text, g = a.onCopy, B = a.children, M = a.options, l = p.default.Children.only(B), N = (0, w.default)(P, M);
|
|
136
|
+
g && g(P, N), l && l.props && typeof l.props.onClick == "function" && l.props.onClick(d);
|
|
137
|
+
}), r;
|
|
138
|
+
}
|
|
139
|
+
return E(n, [{
|
|
140
|
+
key: "render",
|
|
141
|
+
value: function() {
|
|
142
|
+
var o = this.props;
|
|
143
|
+
o.text, o.onCopy, o.options;
|
|
144
|
+
var i = o.children, u = S(o, j), d = p.default.Children.only(i);
|
|
145
|
+
return /* @__PURE__ */ p.default.cloneElement(d, h(h({}, u), {}, {
|
|
146
|
+
onClick: this.onClick
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
}]), n;
|
|
150
|
+
})(p.default.PureComponent);
|
|
151
|
+
return f.CopyToClipboard = m, b(m, "defaultProps", {
|
|
152
|
+
onCopy: void 0,
|
|
153
|
+
options: void 0
|
|
154
|
+
}), f;
|
|
155
|
+
}
|
|
156
|
+
export {
|
|
157
|
+
L as __require
|
|
158
|
+
};
|
package/Component2.js
ADDED
package/ConfigContext.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { createContext as
|
|
1
|
+
import { createContext as s, useContext as c } from "react";
|
|
2
2
|
const i = {
|
|
3
3
|
assetTypes: [],
|
|
4
4
|
language: "en_US",
|
|
5
|
-
onSuccess: (
|
|
5
|
+
onSuccess: (t, { selectedFile: n }) => console.log(t, n),
|
|
6
6
|
// eslint-disable-line no-console
|
|
7
7
|
selectionMode: "MultiSelect",
|
|
8
8
|
hideExternalAccess: !1
|
|
9
|
-
},
|
|
9
|
+
}, e = s(i), d = e.Provider, o = () => c(e), r = () => o().selectionMode, u = () => o().hideSwitch;
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
d as ConfigProvider,
|
|
12
12
|
i as defaultConfig,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
u as useSelectionMode
|
|
13
|
+
o as useConfig,
|
|
14
|
+
u as useHideSwitch,
|
|
15
|
+
r as useSelectionMode
|
|
17
16
|
};
|
package/Container.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import i from "./styled-components.browser.esm.js";
|
|
3
|
-
import { IconCancel as l } from "./
|
|
3
|
+
import { IconCancel as l } from "./index3.js";
|
|
4
4
|
import { Button as c } from "./Button.js";
|
|
5
5
|
import { token as t } from "./token.js";
|
|
6
6
|
import { useModalContext as s } from "./Modal.js";
|
package/ContextAction.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { IconOpenInNew as s, IconCrop as a, IconMore as C } from "./
|
|
2
|
+
import { IconOpenInNew as s, IconCrop as a, IconMore as C } from "./index3.js";
|
|
3
3
|
import { Card as t } from "./Card.js";
|
|
4
4
|
import { Dropdown as o } from "./Dropdown2.js";
|
|
5
5
|
import { useConfig as w } from "./ConfigContext.js";
|
package/ControlGroup.js
CHANGED
|
@@ -4,10 +4,10 @@ import m from "./styled-components.browser.esm.js";
|
|
|
4
4
|
import { token as g } from "./token.js";
|
|
5
5
|
import { Form as i } from "./Form.js";
|
|
6
6
|
import { useId as l } from "./useId.js";
|
|
7
|
-
function
|
|
8
|
-
children:
|
|
7
|
+
function j({
|
|
8
|
+
children: a,
|
|
9
9
|
label: r,
|
|
10
|
-
labelSecondaryText:
|
|
10
|
+
labelSecondaryText: c,
|
|
11
11
|
isInvalid: n,
|
|
12
12
|
helperText: t,
|
|
13
13
|
helperTextIcon: p,
|
|
@@ -15,8 +15,8 @@ function q({
|
|
|
15
15
|
}) {
|
|
16
16
|
const e = l("control-group-label"), d = l("control-group-helper-text");
|
|
17
17
|
return /* @__PURE__ */ u(i.Group, { "aria-labelledby": r ? e : void 0, "aria-describedby": t ? d : void 0, "aria-invalid": n, ...s, children: [
|
|
18
|
-
r && /* @__PURE__ */ o(i.Label, { id: e, secondaryText:
|
|
19
|
-
/* @__PURE__ */ o(b, { children: h.Children.map(
|
|
18
|
+
r && /* @__PURE__ */ o(i.Label, { id: e, secondaryText: c, children: r }),
|
|
19
|
+
/* @__PURE__ */ o(b, { children: h.Children.map(a, (f) => /* @__PURE__ */ o(y, { children: f })) }),
|
|
20
20
|
t && /* @__PURE__ */ o(i.HelperText, { isInvalid: n, icon: p, id: d, children: t })
|
|
21
21
|
] });
|
|
22
22
|
}
|
|
@@ -28,5 +28,5 @@ const b = m.ul.withConfig({
|
|
|
28
28
|
componentId: "sc-166qdv5-1"
|
|
29
29
|
})(["&:not(:last-child){margin-bottom:", ";}"], g.spacing2);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
j as ControlGroup
|
|
32
32
|
};
|
package/Dat.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as u, useEffect as
|
|
3
|
-
import { createPortal as
|
|
1
|
+
import { jsxs as U, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useEffect as M } from "react";
|
|
3
|
+
import { createPortal as P } from "react-dom";
|
|
4
4
|
import v from "./styled-components.browser.esm.js";
|
|
5
5
|
import { Button as c } from "./Button.js";
|
|
6
|
-
import { Modal as
|
|
6
|
+
import { Modal as j } from "./Modal2.js";
|
|
7
7
|
import { token as y } from "./token.js";
|
|
8
|
-
import { DATBuilder as
|
|
9
|
-
import { useRootElement as
|
|
10
|
-
import { useDat as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
import { DATBuilder as E } from "./index8.js";
|
|
9
|
+
import { useRootElement as I } from "./RootElementContext.js";
|
|
10
|
+
import { useDat as F } from "./useDatStore.js";
|
|
11
|
+
import { useSelectionStore as O } from "./useSelectionStore.js";
|
|
12
|
+
import { useAuth as R } from "./LoginContext.js";
|
|
13
|
+
import { fixFontSpacesInUrl as V } from "./fixFontSpaceInUrl.js";
|
|
14
|
+
function oo() {
|
|
15
|
+
const l = I(), d = R(), [i, x] = u(), [s, m] = u(), {
|
|
15
16
|
datUrl: k,
|
|
16
17
|
assetName: g,
|
|
17
18
|
datExtension: w,
|
|
@@ -19,28 +20,28 @@ function X() {
|
|
|
19
20
|
closeDat: f,
|
|
20
21
|
setTransformation: p,
|
|
21
22
|
assetId: B
|
|
22
|
-
} =
|
|
23
|
-
|
|
23
|
+
} = F(), { clear: D, selectAssets: T } = O();
|
|
24
|
+
M(() => {
|
|
24
25
|
const o = l.querySelector(".cv-root");
|
|
25
26
|
o && x(o);
|
|
26
27
|
}, [l]);
|
|
27
|
-
const
|
|
28
|
+
const a = (o, e) => {
|
|
28
29
|
if (o && t) {
|
|
29
|
-
const
|
|
30
|
-
p({ url:
|
|
30
|
+
const S = V(o);
|
|
31
|
+
p({ url: S, preset: e, asset: t.asset }), D(), T([t.asset]);
|
|
31
32
|
}
|
|
32
33
|
f();
|
|
33
34
|
}, h = (o, e) => {
|
|
34
|
-
|
|
35
|
-
}, r = () => m(void 0),
|
|
36
|
-
s
|
|
37
|
-
},
|
|
35
|
+
C(e) && t ? m({ url: o, preset: e, asset: t.asset }) : a(o, e);
|
|
36
|
+
}, r = () => m(void 0), b = () => {
|
|
37
|
+
a(s?.url, s?.preset), r();
|
|
38
|
+
}, A = () => {
|
|
38
39
|
p(void 0), r(), f();
|
|
39
|
-
},
|
|
40
|
-
return i ?
|
|
41
|
-
/* @__PURE__ */
|
|
40
|
+
}, C = (o) => o.content.io.length > 0;
|
|
41
|
+
return i ? P(
|
|
42
|
+
/* @__PURE__ */ U($, { children: [
|
|
42
43
|
/* @__PURE__ */ n(
|
|
43
|
-
|
|
44
|
+
q,
|
|
44
45
|
{
|
|
45
46
|
mediaInfo: {
|
|
46
47
|
extension: [w],
|
|
@@ -54,7 +55,7 @@ function X() {
|
|
|
54
55
|
canViewPresets: !1,
|
|
55
56
|
canViewTransformations: !0,
|
|
56
57
|
hideBottomBar: !0,
|
|
57
|
-
onApply:
|
|
58
|
+
onApply: a,
|
|
58
59
|
onDone: h,
|
|
59
60
|
onBack: h,
|
|
60
61
|
initialTransformations: t?.preset?.content.io,
|
|
@@ -62,15 +63,15 @@ function X() {
|
|
|
62
63
|
}
|
|
63
64
|
),
|
|
64
65
|
/* @__PURE__ */ n(
|
|
65
|
-
|
|
66
|
+
j,
|
|
66
67
|
{
|
|
67
|
-
isOpen: !!
|
|
68
|
+
isOpen: !!s,
|
|
68
69
|
title: "Transformations not yet applied",
|
|
69
70
|
container: i,
|
|
70
71
|
onClose: r,
|
|
71
|
-
actionPrimary: /* @__PURE__ */ n(c, { variant: "primary", onClick:
|
|
72
|
+
actionPrimary: /* @__PURE__ */ n(c, { variant: "primary", onClick: b, children: "Apply transformations" }),
|
|
72
73
|
actionSecondary: /* @__PURE__ */ n(c, { variant: "secondary", onClick: r, children: "Cancel" }),
|
|
73
|
-
actionTertiary: /* @__PURE__ */ n(c, { variant: "secondary", onClick:
|
|
74
|
+
actionTertiary: /* @__PURE__ */ n(c, { variant: "secondary", onClick: A, children: "Discard changes" }),
|
|
74
75
|
children: "Transformations not yet applied. Do you want to apply transformations now, or discard changes?"
|
|
75
76
|
}
|
|
76
77
|
)
|
|
@@ -78,7 +79,7 @@ function X() {
|
|
|
78
79
|
i
|
|
79
80
|
) : null;
|
|
80
81
|
}
|
|
81
|
-
const
|
|
82
|
+
const $ = v.div`
|
|
82
83
|
background-color: ${y.white};
|
|
83
84
|
z-index: 999999;
|
|
84
85
|
overflow: hidden;
|
|
@@ -92,10 +93,10 @@ const O = v.div`
|
|
|
92
93
|
bottom: 0;
|
|
93
94
|
left: 0;
|
|
94
95
|
right: 0;
|
|
95
|
-
`,
|
|
96
|
+
`, q = v(E)`
|
|
96
97
|
height: 100%;
|
|
97
98
|
width: 100%;
|
|
98
99
|
`;
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
oo as Dat
|
|
101
102
|
};
|
package/DatDropdownItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as p, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useEffect as g } from "react";
|
|
3
3
|
import b from "./styled-components.browser.esm.js";
|
|
4
|
-
import { IconArrowRight as w, IconCrop as x } from "./
|
|
4
|
+
import { IconArrowRight as w, IconCrop as x } from "./index3.js";
|
|
5
5
|
import { List as l } from "./List.js";
|
|
6
6
|
import { Thumbnail as s } from "./Thumbnail.js";
|
|
7
7
|
import { useDat as D } from "./useDatStore.js";
|
package/DesignSystemProvider.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import c, { useMemo as f } from "react";
|
|
3
3
|
import { ThemeStyles as l } from "./theme.js";
|
|
4
4
|
import { Button as a } from "./Button.js";
|
|
5
5
|
import { LocalizationProvider as p } from "./localization.js";
|
|
6
|
-
const t = 10001, v =
|
|
6
|
+
const t = 10001, v = c.createContext({
|
|
7
7
|
zIndexBase: t
|
|
8
8
|
});
|
|
9
|
-
function
|
|
9
|
+
function y({
|
|
10
10
|
children: n,
|
|
11
11
|
noTheme: i,
|
|
12
12
|
zIndexBase: r = t,
|
|
@@ -14,16 +14,16 @@ function D({
|
|
|
14
14
|
dateFnsLocale: o,
|
|
15
15
|
locale: s = "en-US"
|
|
16
16
|
}) {
|
|
17
|
-
const
|
|
17
|
+
const d = f(() => ({
|
|
18
18
|
zIndexBase: r,
|
|
19
19
|
dateFnsLocale: o
|
|
20
20
|
}), [o, r]);
|
|
21
|
-
return /* @__PURE__ */ e(v.Provider, { value:
|
|
21
|
+
return /* @__PURE__ */ e(v.Provider, { value: d, children: /* @__PURE__ */ e(p, { locale: s, children: /* @__PURE__ */ u(a.VersionProvider, { value: m, children: [
|
|
22
22
|
!i && /* @__PURE__ */ e(l, {}),
|
|
23
23
|
n
|
|
24
24
|
] }) }) });
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
v as DesignSystemContext,
|
|
28
|
-
|
|
28
|
+
y as DesignSystemProvider
|
|
29
29
|
};
|
package/DirectionSelect.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import n from "./styled-components.browser.esm.js";
|
|
3
|
-
import { IconSortOrder as m } from "./
|
|
3
|
+
import { IconSortOrder as m } from "./index3.js";
|
|
4
4
|
import { Button as l } from "./Button.js";
|
|
5
|
-
import { token as
|
|
5
|
+
import { token as e } from "./token.js";
|
|
6
6
|
import { __ as r } from "./index2.js";
|
|
7
7
|
import { useOrderingByPage as f } from "./useOrderingStore.js";
|
|
8
8
|
import { useRouterSelectors as g } from "./useRouterStore.js";
|
|
9
|
-
function k({ nlSearch:
|
|
9
|
+
function k({ nlSearch: t = !1 }) {
|
|
10
10
|
const c = g.use.page(), [i, s] = f(c.page), d = {
|
|
11
11
|
ASC: r("Ascending"),
|
|
12
12
|
DESC: r("Descending")
|
|
@@ -17,15 +17,16 @@ function k({ nlSearch: o = !1 }) {
|
|
|
17
17
|
function a() {
|
|
18
18
|
s({ field: i.field, direction: p[i.direction] });
|
|
19
19
|
}
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ o(
|
|
21
21
|
S,
|
|
22
22
|
{
|
|
23
23
|
variant: "clean",
|
|
24
24
|
isSmall: !0,
|
|
25
25
|
title: d[i.direction],
|
|
26
26
|
onClick: a,
|
|
27
|
-
icon: /* @__PURE__ */
|
|
28
|
-
isDisabled:
|
|
27
|
+
icon: /* @__PURE__ */ o(u, { $isAscending: i.direction === "ASC" }),
|
|
28
|
+
isDisabled: t,
|
|
29
|
+
"data-testid": "order-direction-button"
|
|
29
30
|
}
|
|
30
31
|
);
|
|
31
32
|
}
|
|
@@ -34,9 +35,9 @@ const S = n(l)`
|
|
|
34
35
|
border: 1px solid #d9dee1;
|
|
35
36
|
height: 42px;
|
|
36
37
|
`, u = n(m)`
|
|
37
|
-
width: ${
|
|
38
|
-
height: ${
|
|
39
|
-
${(
|
|
38
|
+
width: ${e.spacing6};
|
|
39
|
+
height: ${e.spacing6};
|
|
40
|
+
${(t) => t.$isAscending && "transform: scaleY(-1)"}
|
|
40
41
|
`;
|
|
41
42
|
export {
|
|
42
43
|
k as DirectionSelect
|
package/DomainInput.js
CHANGED
|
@@ -1,35 +1,43 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import t from "./styled-components.browser.esm.js";
|
|
3
3
|
import { InputField as m } from "./InputField.js";
|
|
4
4
|
import { token as h } from "./token.js";
|
|
5
|
-
import { Spinner as
|
|
5
|
+
import { Spinner as v } from "./Spinner.js";
|
|
6
6
|
import { __ as e } from "./index2.js";
|
|
7
|
-
function D({ status: i, isReadOnly: o, value:
|
|
8
|
-
function
|
|
9
|
-
i === "valid" && p.keyCode === 13 &&
|
|
7
|
+
function D({ status: i, isReadOnly: o, value: r, onChange: a, onSubmit: d }) {
|
|
8
|
+
function l(p) {
|
|
9
|
+
i === "valid" && p.keyCode === 13 && d();
|
|
10
10
|
}
|
|
11
|
-
return /* @__PURE__ */ n(
|
|
11
|
+
return /* @__PURE__ */ n(c, { children: /* @__PURE__ */ n(
|
|
12
12
|
m,
|
|
13
13
|
{
|
|
14
14
|
type: "url",
|
|
15
|
-
value:
|
|
15
|
+
value: r,
|
|
16
16
|
placeholder: "yourdomain.bynder.com",
|
|
17
17
|
label: e("Enter the portal domain"),
|
|
18
18
|
onChange: a,
|
|
19
|
-
onKeyDown:
|
|
19
|
+
onKeyDown: l,
|
|
20
20
|
isInvalid: i === "invalid",
|
|
21
21
|
helperText: i === "invalid" && e("This portal domain does not exist"),
|
|
22
22
|
hasClearButton: i !== "validating" && !o,
|
|
23
|
-
iconRight: i === "validating" ? /* @__PURE__ */ n(
|
|
23
|
+
iconRight: i === "validating" ? /* @__PURE__ */ n(
|
|
24
|
+
g,
|
|
25
|
+
{
|
|
26
|
+
role: "alert",
|
|
27
|
+
"aria-live": "polite",
|
|
28
|
+
"data-testid": "domain-validation-spinner",
|
|
29
|
+
children: /* @__PURE__ */ n(v, { isRelative: !0, isNotUsingMargin: !0 })
|
|
30
|
+
}
|
|
31
|
+
) : void 0,
|
|
24
32
|
isDisabled: o,
|
|
25
33
|
"data-testid": "login-input"
|
|
26
34
|
}
|
|
27
35
|
) });
|
|
28
36
|
}
|
|
29
|
-
const
|
|
37
|
+
const c = t.div`
|
|
30
38
|
margin: ${h.spacing4} 0;
|
|
31
39
|
width: 320px;
|
|
32
|
-
`,
|
|
40
|
+
`, g = t.div`
|
|
33
41
|
height: 100%;
|
|
34
42
|
display: flex;
|
|
35
43
|
align-items: center;
|