@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/Dropdown.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as d, Fragment as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as $, useMemo as v } from "react";
|
|
3
3
|
import r from "./styled-components.browser.esm.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { token as
|
|
6
|
-
import { DropdownContent as
|
|
7
|
-
import {
|
|
8
|
-
function
|
|
4
|
+
import { Button as x } from "./Button.js";
|
|
5
|
+
import { token as C } from "./token.js";
|
|
6
|
+
import { DropdownContent as A } from "./DropdownContent.js";
|
|
7
|
+
import { useAssetFilterStore as b } from "./useAssetFilterStore.js";
|
|
8
|
+
function R({
|
|
9
9
|
buttonKind: t = "clean",
|
|
10
|
-
direction:
|
|
11
|
-
isSmall:
|
|
12
|
-
fadeIn:
|
|
13
|
-
isMetapropertyDropdown:
|
|
10
|
+
direction: c = "Down",
|
|
11
|
+
isSmall: l,
|
|
12
|
+
fadeIn: m,
|
|
13
|
+
isMetapropertyDropdown: f,
|
|
14
14
|
...n
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const { setDropdownState: u, isDropdownActive: p } = b(), a = I(), [e, g] = D(!1), s = $(null), i = () => {
|
|
17
|
+
g((w) => !w), u(!p);
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
return /* @__PURE__ */ d(h, { children: [
|
|
20
|
+
/* @__PURE__ */ o(S, { $fadeIn: !!m, children: /* @__PURE__ */ d(
|
|
21
|
+
x,
|
|
22
22
|
{
|
|
23
23
|
variant: t,
|
|
24
|
-
isSmall:
|
|
25
|
-
onClick:
|
|
26
|
-
ref:
|
|
24
|
+
isSmall: l,
|
|
25
|
+
onClick: i,
|
|
26
|
+
ref: s,
|
|
27
27
|
isDisabled: n.disabled,
|
|
28
28
|
isPressed: e,
|
|
29
29
|
"aria-haspopup": !0,
|
|
30
30
|
"aria-expanded": e,
|
|
31
|
-
"aria-controls":
|
|
31
|
+
"aria-controls": a,
|
|
32
32
|
"data-testid": "button",
|
|
33
33
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ o(P, { title: n.alt, children: n.title }),
|
|
35
|
+
/* @__PURE__ */ o(k, { $active: e, className: "fa fa-caret-down" })
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
) }),
|
|
39
|
-
e && /* @__PURE__ */
|
|
40
|
-
|
|
39
|
+
e && /* @__PURE__ */ o(
|
|
40
|
+
A,
|
|
41
41
|
{
|
|
42
42
|
isPaddingContent: n.isPaddingContent,
|
|
43
|
-
onClickOutside:
|
|
44
|
-
direction:
|
|
45
|
-
target:
|
|
46
|
-
id:
|
|
47
|
-
isMetapropertyDropdown:
|
|
48
|
-
children: n.children(
|
|
43
|
+
onClickOutside: i,
|
|
44
|
+
direction: c,
|
|
45
|
+
target: s,
|
|
46
|
+
id: a,
|
|
47
|
+
isMetapropertyDropdown: f,
|
|
48
|
+
children: n.children(i)
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
] });
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function I() {
|
|
54
|
+
return v(
|
|
55
55
|
() => `dropdownmenu-${Date.now()}-${Math.random().toString(36).substring(2)}`,
|
|
56
56
|
[]
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const S = r.div`
|
|
60
60
|
text-transform: inherit;
|
|
61
61
|
${(t) => t.$fadeIn ? "animation: var(--fade-in-down);" : ""}
|
|
62
|
-
`,
|
|
63
|
-
margin-left: ${
|
|
62
|
+
`, k = r.i`
|
|
63
|
+
margin-left: ${C.spacing3};
|
|
64
64
|
transition: transform 200ms;
|
|
65
65
|
${(t) => t.$active ? "transform: rotate(180deg);" : ""}
|
|
66
|
-
`,
|
|
66
|
+
`, P = r.span`
|
|
67
67
|
display: inline-flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
`;
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
R as Dropdown
|
|
72
72
|
};
|
package/Dropdown2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g, jsxs as P } from "react/jsx-runtime";
|
|
2
2
|
import { useReducer as B, useRef as y, useEffect as I, useCallback as F, useMemo as W } from "react";
|
|
3
|
-
import { useLayer as j, mergeRefs as O } from "react-laag";
|
|
3
|
+
import { useLayer as j, mergeRefs as O } from "./react-laag.esm.js";
|
|
4
4
|
import { useKeyDown as n } from "./useKeyDown.js";
|
|
5
5
|
import { useId as K } from "./useId.js";
|
|
6
6
|
import { Arrow as N } from "./Arrow.js";
|
package/DropdownListItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import r from "./styled-components.browser.esm.js";
|
|
3
3
|
import { token as o } from "./token.js";
|
|
4
|
-
import { IconCheck as a } from "./
|
|
4
|
+
import { IconCheck as a } from "./index3.js";
|
|
5
5
|
function m({ selected: i = !1, ...t }) {
|
|
6
6
|
return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ e(
|
|
7
7
|
c,
|
package/FieldSelect.js
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import t from "./styled-components.browser.esm.js";
|
|
3
3
|
import { token as l } from "./token.js";
|
|
4
|
-
import { Dropdown as
|
|
4
|
+
import { Dropdown as p } from "./Dropdown.js";
|
|
5
5
|
import { __ as i } from "./index2.js";
|
|
6
|
-
import { useOrderingByPage as
|
|
6
|
+
import { useOrderingByPage as f } from "./useOrderingStore.js";
|
|
7
7
|
import { useRouterSelectors as g } from "./useRouterStore.js";
|
|
8
8
|
import { DropdownListItem as u } from "./DropdownListItem.js";
|
|
9
|
-
function
|
|
10
|
-
const d = g.use.page(), [
|
|
9
|
+
function R({ options: e }) {
|
|
10
|
+
const d = g.use.page(), [n, a] = f(d.page), s = {
|
|
11
11
|
CREATED_AT: i("Date added"),
|
|
12
12
|
NAME: i("Name"),
|
|
13
13
|
PUBLISHED_AT: i("Date published"),
|
|
14
14
|
UPDATED_AT: i("Date modified"),
|
|
15
15
|
NL_SEARCH: i("Similarity")
|
|
16
16
|
};
|
|
17
|
-
return /* @__PURE__ */ r(
|
|
18
|
-
|
|
17
|
+
return /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(
|
|
18
|
+
p,
|
|
19
19
|
{
|
|
20
20
|
title: /* @__PURE__ */ r(
|
|
21
21
|
D,
|
|
22
22
|
{
|
|
23
23
|
stringOfFieldMap: s,
|
|
24
|
-
orderingField: e[0] === "NL_SEARCH" ? e[0] :
|
|
24
|
+
orderingField: e[0] === "NL_SEARCH" ? e[0] : n.field
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
27
|
alt: i("Order by"),
|
|
28
28
|
isPaddingContent: !0,
|
|
29
29
|
disabled: e[0] === "NL_SEARCH",
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
"data-testid": "order-by-field-dropdown",
|
|
31
|
+
children: (c) => /* @__PURE__ */ r(S, { children: e.map((o) => /* @__PURE__ */ r(
|
|
32
|
+
b,
|
|
32
33
|
{
|
|
33
|
-
selected:
|
|
34
|
+
selected: n.field === o,
|
|
34
35
|
onClick: () => {
|
|
35
|
-
a({ field:
|
|
36
|
+
a({ field: o, direction: n.direction }), c();
|
|
36
37
|
},
|
|
37
38
|
isFieldSelect: !0,
|
|
38
|
-
|
|
39
|
+
"data-testid": "order-by-option",
|
|
40
|
+
children: /* @__PURE__ */ r(h, { children: s[o] })
|
|
39
41
|
},
|
|
40
|
-
s[
|
|
42
|
+
s[o]
|
|
41
43
|
)) })
|
|
42
44
|
}
|
|
43
45
|
) });
|
|
@@ -53,14 +55,14 @@ const S = t.ul`
|
|
|
53
55
|
margin: 0;
|
|
54
56
|
padding: 0;
|
|
55
57
|
list-style: none;
|
|
56
|
-
`,
|
|
58
|
+
`, b = t(u)`
|
|
57
59
|
font-size: ${l.fontSize75};
|
|
58
|
-
`,
|
|
60
|
+
`, h = t.span`
|
|
59
61
|
flex-grow: 1;
|
|
60
62
|
min-width: 96px;
|
|
61
63
|
padding: ${l.spacing3} 0;
|
|
62
64
|
font-size: ${l.fontSize75};
|
|
63
|
-
`,
|
|
65
|
+
`, A = t.div`
|
|
64
66
|
margin-left: auto;
|
|
65
67
|
border-radius: 5px 0 0 5px;
|
|
66
68
|
border: 1px solid #d9dee1;
|
|
@@ -69,5 +71,5 @@ const S = t.ul`
|
|
|
69
71
|
color: ${(e) => e.$isDisabled ? "rgba(0, 34, 51, 0.5)" : "#212c40"};
|
|
70
72
|
`;
|
|
71
73
|
export {
|
|
72
|
-
|
|
74
|
+
R as FieldSelect
|
|
73
75
|
};
|
package/FileSelector.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as p, jsx as n, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import { useState as k, useRef as U, useEffect as I } from "react";
|
|
3
3
|
import a from "./styled-components.browser.esm.js";
|
|
4
|
-
import { IconCrop as E, IconAspectRatioOutline as R, IconImage as j } from "./
|
|
4
|
+
import { IconCrop as E, IconAspectRatioOutline as R, IconImage as j } from "./index3.js";
|
|
5
5
|
import { Badge as N } from "./Badge.js";
|
|
6
6
|
import { token as o } from "./token.js";
|
|
7
7
|
import "./AssetCard.js";
|
|
@@ -34,9 +34,9 @@ import { convertAssetIdToBase64 as ne } from "./base64Converter.js";
|
|
|
34
34
|
import { useDat as oe } from "./useDatStore.js";
|
|
35
35
|
import { useSimilaritySearchStore as se } from "./useSimilaritySearchStore.js";
|
|
36
36
|
async function ae(s) {
|
|
37
|
-
const { asset: m, auth:
|
|
37
|
+
const { asset: m, auth: t, assetFieldSelection: f, noCache: v, isSimilaritySelected: u } = s, d = await X({
|
|
38
38
|
assetId: u ? ne(m.id) : m.id,
|
|
39
|
-
auth:
|
|
39
|
+
auth: t,
|
|
40
40
|
assetFieldSelection: f,
|
|
41
41
|
noCache: v
|
|
42
42
|
});
|
|
@@ -48,7 +48,7 @@ async function ae(s) {
|
|
|
48
48
|
}
|
|
49
49
|
const A = "Custom transformation", c = "adaptiveVideo";
|
|
50
50
|
function et({ asset: s, onChange: m }) {
|
|
51
|
-
const [
|
|
51
|
+
const [t, f] = k({ status: "Loading" }), [v, u] = k(!1), d = U(null), w = q(), { isSelected: S, NLSSearchText: O, isNLSSelected: z } = se(), {
|
|
52
52
|
assetFieldSelection: b,
|
|
53
53
|
noCache: F,
|
|
54
54
|
defaultImageDerivativeName: D,
|
|
@@ -56,27 +56,27 @@ function et({ asset: s, onChange: m }) {
|
|
|
56
56
|
__shouldAddOriginal__: K
|
|
57
57
|
} = Y(), { transformation: h } = oe();
|
|
58
58
|
I(() => {
|
|
59
|
-
if (h?.url &&
|
|
60
|
-
const
|
|
61
|
-
y(
|
|
59
|
+
if (h?.url && t.status === "Data") {
|
|
60
|
+
const i = h.url !== t.files?.transformBaseUrl?.url;
|
|
61
|
+
y(i ? A : "transformBaseUrl");
|
|
62
62
|
}
|
|
63
|
-
}, [h]), I(() => {
|
|
64
|
-
|
|
65
|
-
}, [
|
|
63
|
+
}, [h, t.status]), I(() => {
|
|
64
|
+
t.status === "Data" && t.key !== c && u(!1);
|
|
65
|
+
}, [t]), I(() => {
|
|
66
66
|
s.id && (f({ status: "Loading" }), m(void 0), ae({
|
|
67
67
|
asset: s,
|
|
68
68
|
auth: w,
|
|
69
69
|
assetFieldSelection: b,
|
|
70
70
|
noCache: F,
|
|
71
71
|
isSimilaritySelected: S || !!O && z
|
|
72
|
-
}).then((
|
|
73
|
-
if (G(
|
|
74
|
-
M.error(
|
|
72
|
+
}).then((i) => {
|
|
73
|
+
if (G(i)) {
|
|
74
|
+
M.error(i.error), f({ status: "Failure" });
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const { files: r, streamingLinks: e } =
|
|
77
|
+
const { files: r, streamingLinks: e } = i.value;
|
|
78
78
|
K && !("original" in r) && (r.original = {
|
|
79
|
-
url:
|
|
79
|
+
url: i.value.databaseId,
|
|
80
80
|
isFakeOriginal: !0
|
|
81
81
|
}), e && Object.keys(e).length > 0 && (r[c] = {
|
|
82
82
|
url: "Adaptive video"
|
|
@@ -93,49 +93,50 @@ function et({ asset: s, onChange: m }) {
|
|
|
93
93
|
}), m(l === c && e ? { url: e[g] } : r[l]);
|
|
94
94
|
}));
|
|
95
95
|
}, [s.id, w, b]);
|
|
96
|
-
function y(
|
|
96
|
+
function y(i, r) {
|
|
97
97
|
f((e) => {
|
|
98
98
|
if (e.status !== "Data")
|
|
99
99
|
return e;
|
|
100
|
-
const C = { ...e, key:
|
|
100
|
+
const C = { ...e, key: i };
|
|
101
101
|
let l;
|
|
102
|
-
if (
|
|
102
|
+
if (i === A && h)
|
|
103
103
|
l = { url: h.url };
|
|
104
|
-
else if (
|
|
104
|
+
else if (i === c) {
|
|
105
105
|
const g = r || e.selectedAdaptiveKey;
|
|
106
106
|
g && e.streamingLinks && (l = { url: e.streamingLinks[g] }, C.selectedAdaptiveKey = g, u(!r));
|
|
107
107
|
} else
|
|
108
|
-
l = e.files[
|
|
108
|
+
l = e.files[i];
|
|
109
109
|
return setTimeout(() => m(l)), C;
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const _ = (
|
|
113
|
-
if (
|
|
114
|
-
return
|
|
112
|
+
const _ = (i) => {
|
|
113
|
+
if (t.status === "Data")
|
|
114
|
+
return t.key === i;
|
|
115
115
|
};
|
|
116
116
|
return /* @__PURE__ */ p(de, { children: [
|
|
117
117
|
/* @__PURE__ */ n(
|
|
118
118
|
V,
|
|
119
119
|
{
|
|
120
|
-
title: /* @__PURE__ */ n(le, { state:
|
|
120
|
+
title: /* @__PURE__ */ n(le, { state: t }),
|
|
121
121
|
buttonKind: "secondary",
|
|
122
122
|
isPaddingContent: !0,
|
|
123
123
|
direction: "Up",
|
|
124
|
-
disabled:
|
|
125
|
-
children: (
|
|
126
|
-
Object.entries(
|
|
124
|
+
disabled: t.status === "Loading",
|
|
125
|
+
children: (i) => t.status === "Data" && /* @__PURE__ */ p(L, { children: [
|
|
126
|
+
Object.entries(t.files).map(([r, e]) => /* @__PURE__ */ p(
|
|
127
127
|
$,
|
|
128
128
|
{
|
|
129
129
|
selected: _(r),
|
|
130
130
|
onClick: () => {
|
|
131
|
-
y(r), r !== c &&
|
|
131
|
+
y(r), r !== c && i();
|
|
132
132
|
},
|
|
133
|
+
"data-testid": "file-format-option",
|
|
133
134
|
children: [
|
|
134
135
|
/* @__PURE__ */ n(me, { "data-testid": "file-extension", children: r === "transformBaseUrl" ? /* @__PURE__ */ n(pe, {}) : ee(e.url) ?? /* @__PURE__ */ n(fe, {}) }),
|
|
135
136
|
/* @__PURE__ */ p(ue, { children: [
|
|
136
137
|
/* @__PURE__ */ p(ge, { children: [
|
|
137
138
|
T(r),
|
|
138
|
-
r === c &&
|
|
139
|
+
r === c && t.selectedAdaptiveKey && /* @__PURE__ */ n(we, { children: /* @__PURE__ */ n(N, { isSmall: !0, color: "black-alpha", children: t.selectedAdaptiveKey.toUpperCase() }) })
|
|
139
140
|
] }),
|
|
140
141
|
/* @__PURE__ */ p(he, { children: [
|
|
141
142
|
e.width && e.height && `${e.width} x ${e.height} px`,
|
|
@@ -150,15 +151,15 @@ function et({ asset: s, onChange: m }) {
|
|
|
150
151
|
/* @__PURE__ */ n(
|
|
151
152
|
re,
|
|
152
153
|
{
|
|
153
|
-
transformBaseUrl:
|
|
154
|
-
toggleDropdown:
|
|
154
|
+
transformBaseUrl: t.files?.transformBaseUrl?.url,
|
|
155
|
+
toggleDropdown: i,
|
|
155
156
|
asset: s
|
|
156
157
|
}
|
|
157
158
|
)
|
|
158
159
|
] })
|
|
159
160
|
}
|
|
160
161
|
),
|
|
161
|
-
|
|
162
|
+
t.status === "Data" && t.key === c && /* @__PURE__ */ n(ve, { ref: d, children: v && /* @__PURE__ */ n(
|
|
162
163
|
H,
|
|
163
164
|
{
|
|
164
165
|
isPaddingContent: !0,
|
|
@@ -167,14 +168,14 @@ function et({ asset: s, onChange: m }) {
|
|
|
167
168
|
target: d,
|
|
168
169
|
"data-testid": "streaming-links-dropdown",
|
|
169
170
|
id: "streaming-links-dropdown",
|
|
170
|
-
children: /* @__PURE__ */ n(L, { children: Object.keys(
|
|
171
|
+
children: /* @__PURE__ */ n(L, { children: Object.keys(t.streamingLinks || {}).map((i) => /* @__PURE__ */ n(
|
|
171
172
|
$,
|
|
172
173
|
{
|
|
173
|
-
selected:
|
|
174
|
-
onClick: () => y(c,
|
|
175
|
-
children:
|
|
174
|
+
selected: t.selectedAdaptiveKey === i,
|
|
175
|
+
onClick: () => y(c, i),
|
|
176
|
+
children: i.toUpperCase()
|
|
176
177
|
},
|
|
177
|
-
|
|
178
|
+
i
|
|
178
179
|
)) })
|
|
179
180
|
}
|
|
180
181
|
) })
|
package/FontPicker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, Fragment as z, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useId as L, useState as A, useMemo as H, useEffect as v, useCallback as x } from "react";
|
|
3
3
|
import { produce as J } from "./immer.js";
|
|
4
|
-
import { useTranslate as K, Translate as u } from "./
|
|
4
|
+
import { useTranslate as K, Translate as u } from "./index12.js";
|
|
5
5
|
import { Form as b } from "./Form.js";
|
|
6
6
|
import { Select as i } from "./Select.js";
|
|
7
7
|
import { useFonts as O } from "./useFonts.js";
|
package/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { IconError as e } from "./
|
|
2
|
+
import { IconError as e } from "./index3.js";
|
|
3
3
|
import { Group as f } from "./Group.js";
|
|
4
4
|
import { HelperText as i } from "./HelperText.js";
|
|
5
5
|
import { Label as n } from "./Label.js";
|
package/Header.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as
|
|
2
|
-
import { __ as
|
|
1
|
+
import { jsxs as a, Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { __ as l } from "./index2.js";
|
|
3
3
|
function n() {
|
|
4
|
-
return /* @__PURE__ */ a(
|
|
4
|
+
return /* @__PURE__ */ a(e, { children: [
|
|
5
5
|
/* @__PURE__ */ t(
|
|
6
6
|
"svg",
|
|
7
7
|
{
|
|
@@ -31,7 +31,8 @@ function n() {
|
|
|
31
31
|
{
|
|
32
32
|
className: "text-xl mb-2",
|
|
33
33
|
style: { fontSize: 20, margin: 0, marginBottom: 8, fontWeight: 400 },
|
|
34
|
-
|
|
34
|
+
"data-testid": "connect-portal-title",
|
|
35
|
+
children: l("Connect your brand portal")
|
|
35
36
|
}
|
|
36
37
|
)
|
|
37
38
|
] });
|
package/HttpStatusCode.js
CHANGED
|
@@ -61,7 +61,13 @@ const e = {
|
|
|
61
61
|
InsufficientStorage: 507,
|
|
62
62
|
LoopDetected: 508,
|
|
63
63
|
NotExtended: 510,
|
|
64
|
-
NetworkAuthenticationRequired: 511
|
|
64
|
+
NetworkAuthenticationRequired: 511,
|
|
65
|
+
WebServerIsDown: 521,
|
|
66
|
+
ConnectionTimedOut: 522,
|
|
67
|
+
OriginIsUnreachable: 523,
|
|
68
|
+
TimeoutOccurred: 524,
|
|
69
|
+
SslHandshakeFailed: 525,
|
|
70
|
+
InvalidSslCertificate: 526
|
|
65
71
|
};
|
|
66
72
|
Object.entries(e).forEach(([t, o]) => {
|
|
67
73
|
e[o] = t;
|
package/InfiniteScroll.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, Fragment as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as a } from "react";
|
|
3
|
-
import { useInView as f } from "
|
|
3
|
+
import { useInView as f } from "./index23.js";
|
|
4
4
|
import l from "./styled-components.browser.esm.js";
|
|
5
5
|
import { Spinner as s } from "./Spinner.js";
|
|
6
6
|
function u(e) {
|
package/InlineBanner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import n, { css as e } from "./styled-components.browser.esm.js";
|
|
3
|
-
import { IconError as u, IconWarning as m, IconInfo as v } from "./
|
|
3
|
+
import { IconError as u, IconWarning as m, IconInfo as v } from "./index3.js";
|
|
4
4
|
import { textStyles as l } from "./textStyles.js";
|
|
5
5
|
import { token as o } from "./token.js";
|
|
6
6
|
const f = {
|
package/Input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Y, useState as _, useRef as D } from "react";
|
|
3
|
-
import { IconShow as aa, IconHide as ea, IconClear as ta } from "./
|
|
3
|
+
import { IconShow as aa, IconHide as ea, IconClear as ta } from "./index3.js";
|
|
4
4
|
import { InputWrapper as na, LeftItems as ra, IconLeftContainer as ia, PrefixContainer as oa, InputStyled as sa, RightItems as la, SuffixContainer as da, ClearButton as ca, IconRightContainer as pa } from "./Input.styles.js";
|
|
5
5
|
import { InteractiveIcon as ua } from "./InteractiveIcon.js";
|
|
6
6
|
import { useTranslate as fa } from "./useTranslate.js";
|
package/InterceptorManager.js
CHANGED
|
@@ -8,6 +8,7 @@ class a {
|
|
|
8
8
|
*
|
|
9
9
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
10
10
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
11
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
11
12
|
*
|
|
12
13
|
* @return {Number} An ID used to remove interceptor later
|
|
13
14
|
*/
|
|
@@ -24,7 +25,7 @@ class a {
|
|
|
24
25
|
*
|
|
25
26
|
* @param {Number} id The ID that was returned by `use`
|
|
26
27
|
*
|
|
27
|
-
* @returns {
|
|
28
|
+
* @returns {void}
|
|
28
29
|
*/
|
|
29
30
|
eject(s) {
|
|
30
31
|
this.handlers[s] && (this.handlers[s] = null);
|
package/Item.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as C, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import L, { forwardRef as
|
|
2
|
+
import L, { forwardRef as _ } from "react";
|
|
3
3
|
import a, { css as l } from "./styled-components.browser.esm.js";
|
|
4
|
-
import { useFocusRing as
|
|
4
|
+
import { useFocusRing as j } from "./useFocusRing.js";
|
|
5
5
|
import { textStyles as T } from "./textStyles.js";
|
|
6
6
|
import { token as e } from "./token.js";
|
|
7
7
|
import { Checkbox as w } from "./Checkbox.js";
|
|
8
|
-
import { Thumbnail as
|
|
9
|
-
import { useId as
|
|
8
|
+
import { Thumbnail as O } from "./Thumbnail.js";
|
|
9
|
+
import { useId as B } from "./useId.js";
|
|
10
10
|
import { Switch as $ } from "./Switch.js";
|
|
11
11
|
import { TruncatedText as I } from "./TruncatedText.js";
|
|
12
|
-
import { useItemDragAndDropContext as
|
|
12
|
+
import { useItemDragAndDropContext as M } from "./context10.js";
|
|
13
13
|
import { makeInternalTokens as q } from "./makeInternalTokens.js";
|
|
14
|
-
const me =
|
|
14
|
+
const me = _(({
|
|
15
15
|
children: i,
|
|
16
16
|
subtext: u,
|
|
17
17
|
switchProps: d,
|
|
@@ -25,10 +25,10 @@ const me = j(({
|
|
|
25
25
|
isIndeterminateCheckbox: S = !1,
|
|
26
26
|
...A
|
|
27
27
|
}, R) => {
|
|
28
|
-
const m =
|
|
28
|
+
const m = B("list-item-label"), {
|
|
29
29
|
isFocusVisible: N,
|
|
30
30
|
focusProps: z
|
|
31
|
-
} =
|
|
31
|
+
} = j(), h = M(), x = L.useRef(null), E = d?.onChange ? "" : $.pointerEventsClassname, F = [w.pointerEventsClassname, E, O.pointerEventsClassname].join(" "), g = typeof s == "function", K = c === "switch" && !!d?.onChange, k = g && !!c && !K, p = g && !r && !k;
|
|
32
32
|
function P(t) {
|
|
33
33
|
t.key !== "ArrowDown" && t.key !== "ArrowUp" && t.key !== "ArrowLeft" && t.key !== "ArrowRight" && t.stopPropagation();
|
|
34
34
|
}
|
package/Item4.js
CHANGED
|
@@ -3,8 +3,8 @@ import { useState as F, useContext as V, useEffect as C } from "react";
|
|
|
3
3
|
import s, { css as H } from "./styled-components.browser.esm.js";
|
|
4
4
|
import { useHover as ee } from "./useHover.js";
|
|
5
5
|
import { useFocusRing as oe } from "./useFocusRing.js";
|
|
6
|
-
import { useLayer as ne } from "react-laag";
|
|
7
|
-
import { IconCheck as te, IconArrowRight as re } from "./
|
|
6
|
+
import { useLayer as ne } from "./react-laag.esm.js";
|
|
7
|
+
import { IconCheck as te, IconArrowRight as re } from "./index3.js";
|
|
8
8
|
import { textStyles as ie } from "./textStyles.js";
|
|
9
9
|
import { token as e } from "./token.js";
|
|
10
10
|
import { Checkbox as A } from "./Checkbox.js";
|
package/LeftArrow.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import t from "./styled-components.browser.esm.js";
|
|
3
|
-
import { IconArrowLeft as i } from "./
|
|
3
|
+
import { IconArrowLeft as i } from "./index3.js";
|
|
4
4
|
import { Button as e } from "./Button.js";
|
|
5
5
|
function p(r) {
|
|
6
6
|
return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(
|
package/ListItem2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as I, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as m } from "react";
|
|
3
3
|
import v from "./styled-components.browser.esm.js";
|
|
4
|
-
import { IconCheck as y } from "./
|
|
4
|
+
import { IconCheck as y } from "./index3.js";
|
|
5
5
|
import { token as a } from "./token.js";
|
|
6
6
|
import { useId as S } from "./useId.js";
|
|
7
7
|
import { useDropdownContext as w } from "./context3.js";
|
package/ModalBase.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { IconCancel as
|
|
2
|
+
import M, { useState as S, useMemo as T, useEffect as I, useContext as y } from "react";
|
|
3
|
+
import E from "./index5.js";
|
|
4
|
+
import { IconCancel as $, IconArrowLeft as g } from "./index3.js";
|
|
5
5
|
import { Flex as N } from "./Flex.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as v } from "./Button.js";
|
|
7
7
|
import { Sidebar as O } from "./Sidebar.js";
|
|
8
|
-
import { classNames as n, CloseButton as
|
|
8
|
+
import { classNames as n, CloseButton as j, GlobalStyles as z, HeaderStyled as B, BackButton as L, Headings as R, Title as k, SecondaryInformation as D, AdditionalActions as G, ContentStyled as P, ContentInner as V, ContentExpander as Z, FooterStyled as q, ActionsRight as J, SidebarStyled as K } from "./ModalBase.styles.js";
|
|
9
9
|
import { useZIndex as Q } from "./useZIndex.js";
|
|
10
10
|
import { useTranslate as U } from "./useTranslate.js";
|
|
11
11
|
import { useId as W } from "./useId.js";
|
|
12
|
-
const u =
|
|
12
|
+
const u = M.createContext({
|
|
13
13
|
hideCloseIcon: !1,
|
|
14
14
|
setHasSidebar: () => {
|
|
15
15
|
},
|
|
@@ -28,8 +28,8 @@ function d({
|
|
|
28
28
|
isClosedOnOverlayClick: i = !1,
|
|
29
29
|
onCloseAnimationEnd: s,
|
|
30
30
|
children: m,
|
|
31
|
-
container:
|
|
32
|
-
...
|
|
31
|
+
container: A,
|
|
32
|
+
...b
|
|
33
33
|
}) {
|
|
34
34
|
const [p, x] = S(!1), c = W("modal-title"), H = {
|
|
35
35
|
root: n.root,
|
|
@@ -42,7 +42,7 @@ function d({
|
|
|
42
42
|
overlayAnimationOut: n.overlayAnimationOut
|
|
43
43
|
}, {
|
|
44
44
|
translate: f
|
|
45
|
-
} = U(), h = !a,
|
|
45
|
+
} = U(), h = !a, _ = Q("modal"), w = T(() => ({
|
|
46
46
|
hideCloseIcon: a,
|
|
47
47
|
setHasSidebar: x,
|
|
48
48
|
modalTitleId: c
|
|
@@ -50,13 +50,13 @@ function d({
|
|
|
50
50
|
return I(() => {
|
|
51
51
|
o && C(!0);
|
|
52
52
|
}, [o]), /* @__PURE__ */ r(u.Provider, { value: w, children: [
|
|
53
|
-
/* @__PURE__ */ r(
|
|
53
|
+
/* @__PURE__ */ r(E, { open: o, onClose: t, classNames: H, animationDuration: 200, showCloseIcon: !1, closeOnEsc: h, closeOnOverlayClick: i, container: A, ariaLabelledby: c, onAnimationEnd: () => {
|
|
54
54
|
o || (C(!1), s?.());
|
|
55
|
-
}, ...
|
|
55
|
+
}, ...b, children: [
|
|
56
56
|
o || F ? m : null,
|
|
57
|
-
h && /* @__PURE__ */ e(
|
|
57
|
+
h && /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(v, { variant: "clean", icon: /* @__PURE__ */ e($, {}), "aria-label": f("modal.close"), title: f("modal.close"), onClick: t }) })
|
|
58
58
|
] }),
|
|
59
|
-
/* @__PURE__ */ e(
|
|
59
|
+
/* @__PURE__ */ e(z, { zIndex: _ })
|
|
60
60
|
] });
|
|
61
61
|
}
|
|
62
62
|
d.Header = Y;
|
|
@@ -74,8 +74,8 @@ function Y({
|
|
|
74
74
|
hideCloseIcon: s,
|
|
75
75
|
modalTitleId: m
|
|
76
76
|
} = y(u);
|
|
77
|
-
return /* @__PURE__ */ r(
|
|
78
|
-
a && /* @__PURE__ */ e(
|
|
77
|
+
return /* @__PURE__ */ r(B, { $hideCloseIcon: s, children: [
|
|
78
|
+
a && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(v, { variant: "clean", icon: /* @__PURE__ */ e(g, {}), "aria-label": a.title, ...a }) }),
|
|
79
79
|
l && /* @__PURE__ */ e("div", { children: l }),
|
|
80
80
|
/* @__PURE__ */ r(R, { children: [
|
|
81
81
|
/* @__PURE__ */ e(k, { id: m, children: o }),
|
package/NoResults.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import i from "./styled-components.browser.esm.js";
|
|
3
|
-
import { IconSearch as s } from "./
|
|
3
|
+
import { IconSearch as s } from "./index3.js";
|
|
4
4
|
import { Button as c } from "./Button.js";
|
|
5
5
|
import { token as t } from "./token.js";
|
|
6
6
|
import { __ as n } from "./index2.js";
|