@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/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 { useAssetFilter as L } from "./AssetFilterContext.js";
11
- import { useSearchStateByPage as V } from "./useSearchStore.js";
12
- import { useSimilaritySearchStore as B } from "./useSimilaritySearchStore.js";
13
- import { useSimilarityAssets as N } from "./getSimilarityAssets.js";
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: n } = V("collection"), [, r] = v(), c = k.use.collection(), { language: s, noCache: l } = A(), { assetTypes: a, tags: m, isLimited: u, selectedSmartfilterOptions: d } = L(), {
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: g
19
- } = B(), { connection: S } = N(), h = w(
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: n,
23
+ searchTerm: r,
24
24
  orderBy: c,
25
25
  language: s
26
26
  },
27
27
  l
28
- ), C = p || f && g;
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: () => r({ page: "collections" }),
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 ? S : h,
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";
@@ -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 "react-colorful";
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 d({
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
- d as ColorPickerSolid
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 m } from "react-colorful";
3
- import { makeHexWithOpacity as a } from "./makeHexWithOpacity.js";
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(m, { color: a(o), onChange: (r) => {
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
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
package/ConfigContext.js CHANGED
@@ -1,17 +1,16 @@
1
- import { createContext as n, useContext as c } from "react";
1
+ import { createContext as s, useContext as c } from "react";
2
2
  const i = {
3
3
  assetTypes: [],
4
4
  language: "en_US",
5
- onSuccess: (o, { selectedFile: s }) => console.log(o, s),
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
- }, t = n(i), r = t.Provider, e = () => c(t), d = () => e().assetFilter, u = () => e().selectionMode, a = () => e().hideSwitch;
9
+ }, e = s(i), d = e.Provider, o = () => c(e), r = () => o().selectionMode, u = () => o().hideSwitch;
10
10
  export {
11
- r as ConfigProvider,
11
+ d as ConfigProvider,
12
12
  i as defaultConfig,
13
- d as useAssetFilter,
14
- e as useConfig,
15
- a as useHideSwitch,
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 "./index4.js";
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 "./index4.js";
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 q({
8
- children: c,
7
+ function j({
8
+ children: a,
9
9
  label: r,
10
- labelSecondaryText: a,
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: a, children: r }),
19
- /* @__PURE__ */ o(b, { children: h.Children.map(c, (f) => /* @__PURE__ */ o(y, { children: f })) }),
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
- q as ControlGroup
31
+ j as ControlGroup
32
32
  };
package/Dat.js CHANGED
@@ -1,17 +1,18 @@
1
- import { jsxs as C, jsx as n } from "react/jsx-runtime";
2
- import { useState as u, useEffect as U } from "react";
3
- import { createPortal as M } from "react-dom";
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 P } from "./Modal2.js";
6
+ import { Modal as j } from "./Modal2.js";
7
7
  import { token as y } from "./token.js";
8
- import { DATBuilder as S } from "./index8.js";
9
- import { useRootElement as j } from "./RootElementContext.js";
10
- import { useDat as E } from "./useDatStore.js";
11
- import { useAuth as I } from "./LoginContext.js";
12
- import { fixFontSpacesInUrl as F } from "./fixFontSpaceInUrl.js";
13
- function X() {
14
- const l = j(), d = I(), [i, x] = u(), [a, m] = u(), {
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
- } = E();
23
- U(() => {
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 s = (o, e) => {
28
+ const a = (o, e) => {
28
29
  if (o && t) {
29
- const A = F(o);
30
- p({ url: A, preset: e, asset: t.asset });
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
- b(e) && t ? m({ url: o, preset: e, asset: t.asset }) : s(o, e);
35
- }, r = () => m(void 0), D = () => {
36
- s(a?.url, a?.preset), r();
37
- }, T = () => {
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
- }, b = (o) => o.content.io.length > 0;
40
- return i ? M(
41
- /* @__PURE__ */ C(O, { children: [
40
+ }, C = (o) => o.content.io.length > 0;
41
+ return i ? P(
42
+ /* @__PURE__ */ U($, { children: [
42
43
  /* @__PURE__ */ n(
43
- R,
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: s,
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
- P,
66
+ j,
66
67
  {
67
- isOpen: !!a,
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: D, children: "Apply transformations" }),
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: T, children: "Discard changes" }),
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 O = v.div`
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
- `, R = v(S)`
96
+ `, q = v(E)`
96
97
  height: 100%;
97
98
  width: 100%;
98
99
  `;
99
100
  export {
100
- X as Dat
101
+ oo as Dat
101
102
  };
@@ -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 "./index4.js";
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";
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import u, { useMemo as f } from "react";
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 = u.createContext({
6
+ const t = 10001, v = c.createContext({
7
7
  zIndexBase: t
8
8
  });
9
- function D({
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 c = f(() => ({
17
+ const d = f(() => ({
18
18
  zIndexBase: r,
19
19
  dateFnsLocale: o
20
20
  }), [o, r]);
21
- return /* @__PURE__ */ e(v.Provider, { value: c, children: /* @__PURE__ */ e(p, { locale: s, children: /* @__PURE__ */ d(a.VersionProvider, { value: m, children: [
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
- D as DesignSystemProvider
28
+ y as DesignSystemProvider
29
29
  };
@@ -1,12 +1,12 @@
1
- import { jsx as e } from "react/jsx-runtime";
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 "./index4.js";
3
+ import { IconSortOrder as m } from "./index3.js";
4
4
  import { Button as l } from "./Button.js";
5
- import { token as t } from "./token.js";
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: o = !1 }) {
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__ */ e(
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__ */ e(u, { $isAscending: i.direction === "ASC" }),
28
- isDisabled: o
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: ${t.spacing6};
38
- height: ${t.spacing6};
39
- ${(o) => o.$isAscending && "transform: scaleY(-1)"}
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 r from "./styled-components.browser.esm.js";
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 c } from "./Spinner.js";
5
+ import { Spinner as v } from "./Spinner.js";
6
6
  import { __ as e } from "./index2.js";
7
- function D({ status: i, isReadOnly: o, value: t, onChange: a, onSubmit: l }) {
8
- function d(p) {
9
- i === "valid" && p.keyCode === 13 && l();
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(g, { children: /* @__PURE__ */ n(
11
+ return /* @__PURE__ */ n(c, { children: /* @__PURE__ */ n(
12
12
  m,
13
13
  {
14
14
  type: "url",
15
- value: t,
15
+ value: r,
16
16
  placeholder: "yourdomain.bynder.com",
17
17
  label: e("Enter the portal domain"),
18
18
  onChange: a,
19
- onKeyDown: d,
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(v, { role: "alert", "aria-live": "polite", children: /* @__PURE__ */ n(c, { isRelative: !0, isNotUsingMargin: !0 }) }) : void 0,
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 g = r.div`
37
+ const c = t.div`
30
38
  margin: ${h.spacing4} 0;
31
39
  width: 320px;
32
- `, v = r.div`
40
+ `, g = t.div`
33
41
  height: 100%;
34
42
  display: flex;
35
43
  align-items: center;