@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.
Files changed (241) hide show
  1. package/AccessToken2.js +1 -1
  2. package/ActiveFilters.js +49 -50
  3. package/AddMedia.js +19 -18
  4. package/Advanced.js +13 -13
  5. package/App.js +60 -59
  6. package/Arrow.js +1 -1
  7. package/AssetFilter.js +38 -38
  8. package/AssetItem.js +10 -17
  9. package/AssetList.js +5 -5
  10. package/AssetTypeItem.js +21 -21
  11. package/AssetsView.js +13 -13
  12. package/Axios2.js +82 -76
  13. package/AxiosError.js +36 -35
  14. package/ButtonAction.js +1 -1
  15. package/CanceledError.js +15 -8
  16. package/Card.js +1 -1
  17. package/Chip.js +1 -1
  18. package/CollectionCard.js +22 -22
  19. package/CollectionItem.js +9 -9
  20. package/CollectionList.js +5 -5
  21. package/CollectionView.js +11 -11
  22. package/ColorPicker.js +1 -1
  23. package/ColorPickerSolid.js +3 -3
  24. package/ColorPickerWithOpacity.js +3 -3
  25. package/Component.js +158 -0
  26. package/Component2.js +4 -0
  27. package/ConfigContext.js +7 -8
  28. package/Container.js +1 -1
  29. package/ContextAction.js +1 -1
  30. package/ControlGroup.js +6 -6
  31. package/Dat.js +33 -32
  32. package/DatDropdownItem.js +1 -1
  33. package/DesignSystemProvider.js +7 -7
  34. package/DirectionSelect.js +11 -10
  35. package/DomainInput.js +19 -11
  36. package/Draggable.js +337 -0
  37. package/Draggable2.js +4 -0
  38. package/DraggableCore.js +312 -0
  39. package/DraggableCore2.js +4 -0
  40. package/Dropdown.js +37 -37
  41. package/Dropdown2.js +1 -1
  42. package/DropdownListItem.js +1 -1
  43. package/FieldSelect.js +19 -17
  44. package/FileSelector.js +38 -37
  45. package/FontPicker.js +1 -1
  46. package/Form.js +1 -1
  47. package/Header.js +5 -4
  48. package/HttpStatusCode.js +7 -1
  49. package/InfiniteScroll.js +1 -1
  50. package/InlineBanner.js +1 -1
  51. package/Input.js +1 -1
  52. package/InterceptorManager.js +2 -1
  53. package/Item.js +8 -8
  54. package/Item4.js +2 -2
  55. package/LeftArrow.js +1 -1
  56. package/ListItem2.js +1 -1
  57. package/ModalBase.js +15 -15
  58. package/NoResults.js +1 -1
  59. package/Option_new.js +36 -29
  60. package/ReactPropTypesSecret.js +10 -0
  61. package/RightArrow.js +1 -1
  62. package/SearchInput.js +1 -1
  63. package/SearchInput2.js +1 -1
  64. package/SelectionFooter.js +41 -31
  65. package/Shield.js +2 -2
  66. package/Smartfilters_new.js +107 -98
  67. package/StatefulAssetList.js +50 -50
  68. package/StoreInitializer.js +32 -16
  69. package/SwitchNLS.js +1 -1
  70. package/TagItem.js +15 -15
  71. package/Tags.js +1 -1
  72. package/Toolbar.js +23 -20
  73. package/Tooltip2.js +1 -1
  74. package/ViewSwitch.js +17 -15
  75. package/_commonjsHelpers.js +28 -3
  76. package/adapters.js +54 -42
  77. package/api/filterAssets.d.ts +1 -1
  78. package/api/getAssets.d.ts +1 -1
  79. package/api/getFilters.d.ts +1 -1
  80. package/api/rest/index.d.ts +1 -1
  81. package/api/rest/types.d.ts +1 -1
  82. package/api2.js +1 -1
  83. package/asset.type.js +1 -1
  84. package/axios.js +1 -1
  85. package/bodyScrollLock.esm.js +68 -0
  86. package/buildURL.js +13 -15
  87. package/checkGlobals.js +1 -1
  88. package/cjs.js +7 -0
  89. package/cjs2.js +15 -0
  90. package/cjs3.js +4 -0
  91. package/clsx.m.js +6 -0
  92. package/clsx.m2.js +15 -0
  93. package/combineMetaproperties.js +3 -1
  94. package/composeSignals.js +1 -1
  95. package/cookieStore.js +1 -1
  96. package/cookies.js +13 -11
  97. package/currentScopes.js +1 -1
  98. package/data.js +1 -1
  99. package/devUtils.js +1 -1
  100. package/dispatchRequest.js +5 -5
  101. package/domFns.js +151 -0
  102. package/domFns2.js +4 -0
  103. package/factoryWithThrowingShims.js +52 -0
  104. package/fetch2.js +156 -128
  105. package/filter/AssetFilterContext.d.ts +3 -3
  106. package/getPrefix.js +35 -0
  107. package/getPrefix2.js +4 -0
  108. package/goober.modern.js +75 -0
  109. package/handlers.js +1 -1
  110. package/iconBase.js +56 -0
  111. package/iconContext.js +12 -0
  112. package/iconsManifest.js +222 -0
  113. package/index-esm.js +1 -4
  114. package/index.browser.js +1 -1
  115. package/index.m.js +9 -0
  116. package/index.m2.js +17 -0
  117. package/index10.js +1 -1
  118. package/index11.js +181 -15
  119. package/index112.js +1 -1
  120. package/index12.js +313 -36
  121. package/index13.js +5 -2430
  122. package/index14.js +3 -557
  123. package/index15.js +15 -55
  124. package/index16.js +3 -2
  125. package/index17.js +3 -87
  126. package/index18.js +36 -7
  127. package/index19.js +3 -60
  128. package/index20.js +2429 -12
  129. package/index21.js +557 -10
  130. package/index22.js +1 -1
  131. package/index23.js +119 -6
  132. package/index24.js +39 -7
  133. package/index25.js +2 -5
  134. package/index26.js +86 -9
  135. package/index27.js +55 -8
  136. package/index28.js +6 -636
  137. package/index29.js +8692 -74
  138. package/index3.js +1684 -5
  139. package/index30.js +2 -5
  140. package/index31.js +4 -20
  141. package/index310.js +2 -0
  142. package/index32.js +11 -2
  143. package/index33.js +5083 -4
  144. package/index34.js +2 -18
  145. package/index35.js +59 -5
  146. package/index36.js +2 -2
  147. package/index37.js +13 -11
  148. package/index38.js +46 -10
  149. package/index39.js +6 -12
  150. package/index4.js +5 -1684
  151. package/index40.js +8 -11
  152. package/index41.js +26 -18
  153. package/index42.js +2 -64
  154. package/index43.js +63 -5
  155. package/index44.js +9 -55
  156. package/index45.js +7 -67
  157. package/index46.js +8 -31
  158. package/index47.js +5 -11
  159. package/index48.js +10 -121
  160. package/index49.js +9 -86
  161. package/index5.js +215 -23
  162. package/index50.js +636 -7
  163. package/index51.js +74 -11
  164. package/index52.js +4 -13
  165. package/index53.js +19 -13
  166. package/index54.js +4 -6
  167. package/index55.js +18 -7
  168. package/index56.js +5 -14
  169. package/index57.js +10 -28
  170. package/index58.js +10 -15
  171. package/index59.js +15 -0
  172. package/index6.js +250 -299
  173. package/index60.js +13 -0
  174. package/index61.js +21 -0
  175. package/index62.js +8 -0
  176. package/index63.js +57 -0
  177. package/index64.js +4 -0
  178. package/index65.js +69 -0
  179. package/index66.js +33 -0
  180. package/index67.js +13 -0
  181. package/index68.js +123 -0
  182. package/index69.js +88 -0
  183. package/index7.js +25 -2
  184. package/index70.js +10 -0
  185. package/index71.js +13 -0
  186. package/index72.js +13 -225
  187. package/index73.js +16 -0
  188. package/index74.js +9 -0
  189. package/index75.js +228 -0
  190. package/index76.js +9 -0
  191. package/index77.js +17 -0
  192. package/index78.js +31 -0
  193. package/index79.js +18 -0
  194. package/index8.js +1537 -1536
  195. package/index9.js +1 -1
  196. package/isAbsoluteURL.js +1 -1
  197. package/isURLSameOrigin.js +1 -1
  198. package/localization.js +15 -15
  199. package/log.js +14 -0
  200. package/log2.js +4 -0
  201. package/matchRequestUrl.js +1 -1
  202. package/mergeConfig.js +37 -32
  203. package/notify.js +2 -2
  204. package/package.json +1 -1
  205. package/positionFns.js +101 -0
  206. package/positionFns2.js +4 -0
  207. package/react-laag.esm.js +957 -0
  208. package/react.js +8 -8
  209. package/react2.js +9 -9
  210. package/resolveConfig.js +23 -23
  211. package/select/add-media/AddMedia.d.ts +3 -1
  212. package/select/current-selection/SelectedItems.d.ts +1 -1
  213. package/shims.js +29 -0
  214. package/shims2.js +4 -0
  215. package/store/StoreInitializer.d.ts +5 -1
  216. package/store/useAssetFilterStore.d.ts +55 -0
  217. package/store/useSelectionStore.d.ts +47 -0
  218. package/styled-components.browser.esm.js +2 -2
  219. package/throttle.js +1 -1
  220. package/toURLEncodedForm.js +11 -10
  221. package/tokenExpirationHelper.js +1 -1
  222. package/transformData.js +1 -1
  223. package/transitional.js +4 -3
  224. package/useAssetFilterStore.js +152 -0
  225. package/useDatStore.js +1 -1
  226. package/useEffectEvent.js +7 -7
  227. package/useFonts.js +1 -1
  228. package/useOrderingStore.js +1 -1
  229. package/useRouterStore.js +1 -1
  230. package/useSearchStore.js +1 -1
  231. package/useSelectionStore.js +131 -0
  232. package/useSimilaritySearchStore.js +1 -1
  233. package/useTranslate.js +1 -1
  234. package/utils/combineMetaproperties.d.ts +2 -0
  235. package/utils6.js +160 -118
  236. package/xhr.js +47 -46
  237. package/AssetFilterContext.js +0 -161
  238. package/Middleware.js +0 -49
  239. package/SelectionContext.js +0 -143
  240. package/middleware2.js +0 -177
  241. package/select/SelectionContext.d.ts +0 -30
package/Dropdown.js CHANGED
@@ -1,72 +1,72 @@
1
- import { jsxs as c, Fragment as w, jsx as i } from "react/jsx-runtime";
2
- import { useState as h, useRef as D, useMemo as $ } from "react";
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 v } from "./Button.js";
5
- import { token as x } from "./token.js";
6
- import { DropdownContent as C } from "./DropdownContent.js";
7
- import { useAssetFilter as A } from "./AssetFilterContext.js";
8
- function O({
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: l = "Down",
11
- isSmall: m,
12
- fadeIn: f,
13
- isMetapropertyDropdown: u,
10
+ direction: c = "Down",
11
+ isSmall: l,
12
+ fadeIn: m,
13
+ isMetapropertyDropdown: f,
14
14
  ...n
15
15
  }) {
16
- const a = A(), s = b(), [e, p] = h(!1), d = D(null), o = () => {
17
- p((g) => !g), a.setDropdownState(!a.isDropdownActive);
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__ */ c(w, { children: [
20
- /* @__PURE__ */ i(I, { $fadeIn: !!f, children: /* @__PURE__ */ c(
21
- v,
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: m,
25
- onClick: o,
26
- ref: d,
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": s,
31
+ "aria-controls": a,
32
32
  "data-testid": "button",
33
33
  children: [
34
- /* @__PURE__ */ i(k, { title: n.alt, children: n.title }),
35
- /* @__PURE__ */ i(S, { $active: e, className: "fa fa-caret-down" })
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__ */ i(
40
- C,
39
+ e && /* @__PURE__ */ o(
40
+ A,
41
41
  {
42
42
  isPaddingContent: n.isPaddingContent,
43
- onClickOutside: o,
44
- direction: l,
45
- target: d,
46
- id: s,
47
- isMetapropertyDropdown: u,
48
- children: n.children(o)
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 b() {
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 I = r.div`
59
+ const S = r.div`
60
60
  text-transform: inherit;
61
61
  ${(t) => t.$fadeIn ? "animation: var(--fade-in-down);" : ""}
62
- `, S = r.i`
63
- margin-left: ${x.spacing3};
62
+ `, k = r.i`
63
+ margin-left: ${C.spacing3};
64
64
  transition: transform 200ms;
65
65
  ${(t) => t.$active ? "transform: rotate(180deg);" : ""}
66
- `, k = r.span`
66
+ `, P = r.span`
67
67
  display: inline-flex;
68
68
  align-items: center;
69
69
  `;
70
70
  export {
71
- O as Dropdown
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";
@@ -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 "./index4.js";
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 f } from "./Dropdown.js";
4
+ import { Dropdown as p } from "./Dropdown.js";
5
5
  import { __ as i } from "./index2.js";
6
- import { useOrderingByPage as p } from "./useOrderingStore.js";
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 $({ options: e }) {
10
- const d = g.use.page(), [o, a] = p(d.page), s = {
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(b, { children: /* @__PURE__ */ r(
18
- f,
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] : o.field
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
- children: (c) => /* @__PURE__ */ r(S, { children: e.map((n) => /* @__PURE__ */ r(
31
- h,
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: o.field === n,
34
+ selected: n.field === o,
34
35
  onClick: () => {
35
- a({ field: n, direction: o.direction }), c();
36
+ a({ field: o, direction: n.direction }), c();
36
37
  },
37
38
  isFieldSelect: !0,
38
- children: /* @__PURE__ */ r(A, { children: s[n] })
39
+ "data-testid": "order-by-option",
40
+ children: /* @__PURE__ */ r(h, { children: s[o] })
39
41
  },
40
- s[n]
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
- `, h = t(u)`
58
+ `, b = t(u)`
57
59
  font-size: ${l.fontSize75};
58
- `, A = t.span`
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
- `, b = t.div`
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
- $ as FieldSelect
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 "./index4.js";
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: i, assetFieldSelection: f, noCache: v, isSimilaritySelected: u } = s, d = await X({
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: i,
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 [i, f] = k({ status: "Loading" }), [v, u] = k(!1), d = U(null), w = q(), { isSelected: S, NLSSearchText: O, isNLSSelected: z } = se(), {
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 && i.status === "Data") {
60
- const t = h.url !== i.files?.transformBaseUrl?.url;
61
- y(t ? A : "transformBaseUrl");
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
- i.status === "Data" && i.key !== c && u(!1);
65
- }, [i]), I(() => {
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((t) => {
73
- if (G(t)) {
74
- M.error(t.error), f({ status: "Failure" });
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 } = t.value;
77
+ const { files: r, streamingLinks: e } = i.value;
78
78
  K && !("original" in r) && (r.original = {
79
- url: t.value.databaseId,
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(t, r) {
96
+ function y(i, r) {
97
97
  f((e) => {
98
98
  if (e.status !== "Data")
99
99
  return e;
100
- const C = { ...e, key: t };
100
+ const C = { ...e, key: i };
101
101
  let l;
102
- if (t === A && h)
102
+ if (i === A && h)
103
103
  l = { url: h.url };
104
- else if (t === c) {
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[t];
108
+ l = e.files[i];
109
109
  return setTimeout(() => m(l)), C;
110
110
  });
111
111
  }
112
- const _ = (t) => {
113
- if (i.status === "Data")
114
- return i.key === t;
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: i }),
120
+ title: /* @__PURE__ */ n(le, { state: t }),
121
121
  buttonKind: "secondary",
122
122
  isPaddingContent: !0,
123
123
  direction: "Up",
124
- disabled: i.status === "Loading",
125
- children: (t) => i.status === "Data" && /* @__PURE__ */ p(L, { children: [
126
- Object.entries(i.files).map(([r, e]) => /* @__PURE__ */ p(
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 && t();
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 && i.selectedAdaptiveKey && /* @__PURE__ */ n(we, { children: /* @__PURE__ */ n(N, { isSmall: !0, color: "black-alpha", children: i.selectedAdaptiveKey.toUpperCase() }) })
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: i.files?.transformBaseUrl?.url,
154
- toggleDropdown: t,
154
+ transformBaseUrl: t.files?.transformBaseUrl?.url,
155
+ toggleDropdown: i,
155
156
  asset: s
156
157
  }
157
158
  )
158
159
  ] })
159
160
  }
160
161
  ),
161
- i.status === "Data" && i.key === c && /* @__PURE__ */ n(ve, { ref: d, children: v && /* @__PURE__ */ n(
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(i.streamingLinks || {}).map((t) => /* @__PURE__ */ n(
171
+ children: /* @__PURE__ */ n(L, { children: Object.keys(t.streamingLinks || {}).map((i) => /* @__PURE__ */ n(
171
172
  $,
172
173
  {
173
- selected: i.selectedAdaptiveKey === t,
174
- onClick: () => y(c, t),
175
- children: t.toUpperCase()
174
+ selected: t.selectedAdaptiveKey === i,
175
+ onClick: () => y(c, i),
176
+ children: i.toUpperCase()
176
177
  },
177
- t
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 "./index6.js";
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 "./index4.js";
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 r, jsx as t } from "react/jsx-runtime";
2
- import { __ as e } from "./index2.js";
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(r, { children: [
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
- children: e("Connect your brand portal")
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 "react-intersection-observer";
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 "./index4.js";
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 "./index4.js";
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";
@@ -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 {Boolean} `true` if the interceptor was removed, `false` otherwise
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 j } from "react";
2
+ import L, { forwardRef as _ } from "react";
3
3
  import a, { css as l } from "./styled-components.browser.esm.js";
4
- import { useFocusRing as O } from "./useFocusRing.js";
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 B } from "./Thumbnail.js";
9
- import { useId as M } from "./useId.js";
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 _ } from "./context10.js";
12
+ import { useItemDragAndDropContext as M } from "./context10.js";
13
13
  import { makeInternalTokens as q } from "./makeInternalTokens.js";
14
- const me = j(({
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 = M("list-item-label"), {
28
+ const m = B("list-item-label"), {
29
29
  isFocusVisible: N,
30
30
  focusProps: z
31
- } = O(), h = _(), x = L.useRef(null), E = d?.onChange ? "" : $.pointerEventsClassname, F = [w.pointerEventsClassname, E, B.pointerEventsClassname].join(" "), g = typeof s == "function", K = c === "switch" && !!d?.onChange, k = g && !!c && !K, p = g && !r && !k;
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 "./index4.js";
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 "./index4.js";
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 "./index4.js";
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 T, { useState as S, useMemo as E, useEffect as I, useContext as y } from "react";
3
- import $ from "react-responsive-modal";
4
- import { IconCancel as g, IconArrowLeft as L } from "./index4.js";
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 b } from "./Button.js";
6
+ import { Button as v } from "./Button.js";
7
7
  import { Sidebar as O } from "./Sidebar.js";
8
- import { classNames as n, CloseButton as _, GlobalStyles as j, HeaderStyled as z, BackButton as B, 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";
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 = T.createContext({
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: v,
32
- ...A
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, M = Q("modal"), w = E(() => ({
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($, { open: o, onClose: t, classNames: H, animationDuration: 200, showCloseIcon: !1, closeOnEsc: h, closeOnOverlayClick: i, container: v, ariaLabelledby: c, onAnimationEnd: () => {
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
- }, ...A, children: [
55
+ }, ...b, children: [
56
56
  o || F ? m : null,
57
- h && /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(b, { variant: "clean", icon: /* @__PURE__ */ e(g, {}), "aria-label": f("modal.close"), title: f("modal.close"), onClick: t }) })
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(j, { zIndex: M })
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(z, { $hideCloseIcon: s, children: [
78
- a && /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(b, { variant: "clean", icon: /* @__PURE__ */ e(L, {}), "aria-label": a.title, ...a }) }),
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 "./index4.js";
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";