@bynder/compact-view 5.2.2 → 5.2.3

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/Dat.js CHANGED
@@ -5,7 +5,7 @@ import v from "./styled-components.browser.esm.js";
5
5
  import { Button as c } from "./Button.js";
6
6
  import { Modal as P } from "./Modal2.js";
7
7
  import { token as y } from "./token.js";
8
- import { DATBuilder as S } from "./index8.js";
8
+ import { DATBuilder as S } from "./index7.js";
9
9
  import { useRootElement as j } from "./RootElementContext.js";
10
10
  import { useDat as E } from "./useDatStore.js";
11
11
  import { useAuth as I } from "./LoginContext.js";
package/autocomplete.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getRequest as a } from "./index10.js";
1
+ import { getRequest as a } from "./index9.js";
2
2
  import { handlers as m } from "./handlers2.js";
3
3
  import { ensureValidUrl as d } from "./url.js";
4
4
  const f = async ({
package/cookies.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import r from "./utils6.js";
2
- import c from "./index18.js";
2
+ import c from "./index19.js";
3
3
  const p = c.hasStandardBrowserEnv ? (
4
4
  // Standard browser envs support document.cookie
5
5
  {
package/fetch2.js CHANGED
@@ -1,4 +1,4 @@
1
- import D from "./index18.js";
1
+ import D from "./index19.js";
2
2
  import r from "./utils6.js";
3
3
  import l from "./AxiosError.js";
4
4
  import H from "./composeSignals.js";
package/filterAssets.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useState as y, useEffect as A } from "react";
2
2
  import { isErr as m, ok as v } from "./result.type.js";
3
- import { fetchWithGraphql as p } from "./index9.js";
3
+ import { fetchWithGraphql as p } from "./index8.js";
4
4
  import { useAuth as I } from "./LoginContext.js";
5
5
  import { combineFilters as f } from "./combineFilters.js";
6
6
  import { convertOptionsToBase64 as w } from "./base64Converter.js";
package/getAsset.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isErr as d, ok as o } from "./result.type.js";
2
- import { fetchWithGraphql as l } from "./index9.js";
2
+ import { fetchWithGraphql as l } from "./index8.js";
3
3
  const p = `
4
4
  id
5
5
  name
package/getAssetCounts.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ensureValidUrl as c } from "./url.js";
2
- import { getRequest as d } from "./index10.js";
2
+ import { getRequest as d } from "./index9.js";
3
3
  const g = async ({
4
4
  auth: t,
5
5
  filter: e
package/getAssets.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isErr as A, ok as h } from "./result.type.js";
2
- import { fetchWithGraphql as v } from "./index9.js";
2
+ import { fetchWithGraphql as v } from "./index8.js";
3
3
  import { MAX_GET_ASSETS_LIMIT as I } from "./constants3.js";
4
4
  import { chunk as S } from "./chunk.js";
5
5
  import { convertAssetIdToBase64 as _ } from "./base64Converter.js";
package/getCollections.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useState as g, useEffect as m } from "react";
2
2
  import { isErr as h } from "./result.type.js";
3
- import { fetchWithGraphql as v } from "./index9.js";
3
+ import { fetchWithGraphql as v } from "./index8.js";
4
4
  import { useAuth as C } from "./LoginContext.js";
5
5
  const y = `
6
6
  query getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {
@@ -1,7 +1,7 @@
1
1
  import { useState as p, useRef as l, useEffect as m } from "react";
2
2
  import { isErr as f } from "./result.type.js";
3
3
  import { useAuth as c } from "./LoginContext.js";
4
- import { fetchWithGraphql as d } from "./index9.js";
4
+ import { fetchWithGraphql as d } from "./index8.js";
5
5
  const y = `
6
6
  query getMetapropertyFilterOptions($smartfilterId: String!, $metapropertyId: String!, $cursor: String) {
7
7
  filterOptions(smartfilterId: $smartfilterId, metapropertyId: $metapropertyId, cursor: $cursor) {
package/getFilters.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useState as F, useEffect as v } from "react";
2
2
  import { isErr as L } from "./result.type.js";
3
- import { fetchWithGraphql as A } from "./index9.js";
3
+ import { fetchWithGraphql as A } from "./index8.js";
4
4
  import { useAuth as b } from "./LoginContext.js";
5
5
  import { combineFilters as n } from "./combineFilters.js";
6
6
  import { convertOptionsToBase64 as w } from "./base64Converter.js";
package/getFilters_new.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { useState as o, useEffect as n } from "react";
2
2
  import { isErr as u } from "./result.type.js";
3
3
  import { useAuth as c } from "./LoginContext.js";
4
- import { fetchWithGraphql as f } from "./index9.js";
4
+ import { fetchWithGraphql as f } from "./index8.js";
5
5
  const m = `
6
6
  query getFilters {
7
7
  filters {
@@ -2,7 +2,7 @@ import { useState as m } from "react";
2
2
  import { isErr as A } from "./result.type.js";
3
3
  import { useAuth as I } from "./LoginContext.js";
4
4
  import { useConfig as x } from "./ConfigContext.js";
5
- import { fetchWithGraphql as w } from "./index9.js";
5
+ import { fetchWithGraphql as w } from "./index8.js";
6
6
  import { useSimilaritySearchStore as L } from "./useSimilaritySearchStore.js";
7
7
  function h(s) {
8
8
  return {
package/index.browser.js CHANGED
@@ -1,4 +1,4 @@
1
- import { urlAlphabet as l } from "./index7.js";
1
+ import { urlAlphabet as l } from "./index10.js";
2
2
  let o = (t = 21) => {
3
3
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
package/index10.js CHANGED
@@ -1,20 +1,4 @@
1
- import "./index12.js";
2
- import r from "./axios.js";
3
- const n = (e) => e.data, s = r.create({
4
- timeout: 1e4,
5
- headers: {
6
- Accept: "application/json",
7
- "Content-Type": "application/json"
8
- }
9
- }), i = async (e, o) => {
10
- try {
11
- const t = await s.get(e, o);
12
- return n(t);
13
- } catch (t) {
14
- throw console.error("GET request error:", t), t;
15
- }
16
- };
1
+ const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
17
2
  export {
18
- i as getRequest,
19
- n as onSuccess
3
+ t as urlAlphabet
20
4
  };
package/index13.js CHANGED
@@ -16,7 +16,7 @@ import { token as v } from "./token.js";
16
16
  import { IconSearch as cn, IconSortOrder as Yn, IconExitApp as qn, IconCancel as un, IconCaretDown as Xn, IconArrowLeft as Gn, IconArrowRight as Kn, IconTag as Jn, IconAdjust as Zn, IconCheck as dn, IconArchive as Qn, IconVideocam as er, IconCamera as tr, IconFile as nr, IconVolumeUp as rr, IconOpenInNew as ir, IconAspectRatioOutline as ar, IconImage as or, IconCrop as lr } from "./index4.js";
17
17
  import { useDebouncedCallback as sr, useDebounce as Ze } from "./index.module2.js";
18
18
  import { useInView as cr } from "react-intersection-observer";
19
- import ur from "./index19.js";
19
+ import ur from "./index18.js";
20
20
  var fn = ce({ assetTypes: [], language: "en_US", onSuccess: function(e, n) {
21
21
  var r = n.selectedFile;
22
22
  return console.log(e, r);
package/index17.js CHANGED
@@ -3,7 +3,7 @@ import p from "./AxiosError.js";
3
3
  import u from "./transitional.js";
4
4
  import S from "./toFormData.js";
5
5
  import h from "./toURLEncodedForm.js";
6
- import l from "./index18.js";
6
+ import l from "./index19.js";
7
7
  import O from "./formDataToJSON.js";
8
8
  function y(i, r, e) {
9
9
  if (t.isString(i))
package/index18.js CHANGED
@@ -1,9 +1,62 @@
1
- import o from "./index20.js";
2
- import * as t from "./utils7.js";
3
- const m = {
4
- ...t,
5
- ...o
6
- };
1
+ import P from "./index26.js";
2
+ import L from "./index27.js";
3
+ import T from "./index24.js";
4
+ import I from "./index28.js";
5
+ import M from "./index29.js";
6
+ import Y from "./index30.js";
7
+ import { isProtectedWeekYearToken as j, throwProtectedError as $, isProtectedDayOfYearToken as q } from "./index31.js";
8
+ import D from "./index23.js";
9
+ import y from "./index25.js";
10
+ import { getDefaultOptions as A } from "./index33.js";
11
+ import Q from "./index34.js";
12
+ var F = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, H = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, K = /^'([^]*?)'?$/, V = /''/g, Z = /[a-zA-Z]/;
13
+ function ie(r, t, G) {
14
+ var f, c, m, v, p, s, d, u, g, w, h, k, O, _;
15
+ y(2, arguments);
16
+ var S = String(t), a = A(), n = (f = (c = void 0) !== null && c !== void 0 ? c : a.locale) !== null && f !== void 0 ? f : Q, E = D((m = (v = (p = (s = void 0) !== null && s !== void 0 ? s : void 0) !== null && p !== void 0 ? p : a.firstWeekContainsDate) !== null && v !== void 0 ? v : (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && m !== void 0 ? m : 1);
17
+ if (!(E >= 1 && E <= 7))
18
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
19
+ var R = D((g = (w = (h = (k = void 0) !== null && k !== void 0 ? k : void 0) !== null && h !== void 0 ? h : a.weekStartsOn) !== null && w !== void 0 ? w : (O = a.locale) === null || O === void 0 || (_ = O.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && g !== void 0 ? g : 0);
20
+ if (!(R >= 0 && R <= 6))
21
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
22
+ if (!n.localize)
23
+ throw new RangeError("locale must contain localize property");
24
+ if (!n.formatLong)
25
+ throw new RangeError("locale must contain formatLong property");
26
+ var i = T(r);
27
+ if (!P(i))
28
+ throw new RangeError("Invalid time value");
29
+ var C = Y(i), W = L(i, C), x = {
30
+ firstWeekContainsDate: E,
31
+ weekStartsOn: R,
32
+ locale: n,
33
+ _originalDate: i
34
+ }, z = S.match(H).map(function(e) {
35
+ var o = e[0];
36
+ if (o === "p" || o === "P") {
37
+ var l = M[o];
38
+ return l(e, n.formatLong);
39
+ }
40
+ return e;
41
+ }).join("").match(F).map(function(e) {
42
+ if (e === "''")
43
+ return "'";
44
+ var o = e[0];
45
+ if (o === "'")
46
+ return B(e);
47
+ var l = I[o];
48
+ if (l)
49
+ return j(e) && $(e, t, String(r)), q(e) && $(e, t, String(r)), l(W, e, n.localize, x);
50
+ if (o.match(Z))
51
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + o + "`");
52
+ return e;
53
+ }).join("");
54
+ return z;
55
+ }
56
+ function B(r) {
57
+ var t = r.match(K);
58
+ return t ? t[1].replace(V, "'") : r;
59
+ }
7
60
  export {
8
- m as default
61
+ ie as default
9
62
  };
package/index19.js CHANGED
@@ -1,62 +1,9 @@
1
- import P from "./index26.js";
2
- import L from "./index27.js";
3
- import T from "./index24.js";
4
- import I from "./index28.js";
5
- import M from "./index29.js";
6
- import Y from "./index30.js";
7
- import { isProtectedWeekYearToken as j, throwProtectedError as $, isProtectedDayOfYearToken as q } from "./index31.js";
8
- import D from "./index23.js";
9
- import y from "./index25.js";
10
- import { getDefaultOptions as A } from "./index33.js";
11
- import Q from "./index34.js";
12
- var F = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, H = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, K = /^'([^]*?)'?$/, V = /''/g, Z = /[a-zA-Z]/;
13
- function ie(r, t, G) {
14
- var f, c, m, v, p, s, d, u, g, w, h, k, O, _;
15
- y(2, arguments);
16
- var S = String(t), a = A(), n = (f = (c = void 0) !== null && c !== void 0 ? c : a.locale) !== null && f !== void 0 ? f : Q, E = D((m = (v = (p = (s = void 0) !== null && s !== void 0 ? s : void 0) !== null && p !== void 0 ? p : a.firstWeekContainsDate) !== null && v !== void 0 ? v : (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && m !== void 0 ? m : 1);
17
- if (!(E >= 1 && E <= 7))
18
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
19
- var R = D((g = (w = (h = (k = void 0) !== null && k !== void 0 ? k : void 0) !== null && h !== void 0 ? h : a.weekStartsOn) !== null && w !== void 0 ? w : (O = a.locale) === null || O === void 0 || (_ = O.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && g !== void 0 ? g : 0);
20
- if (!(R >= 0 && R <= 6))
21
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
22
- if (!n.localize)
23
- throw new RangeError("locale must contain localize property");
24
- if (!n.formatLong)
25
- throw new RangeError("locale must contain formatLong property");
26
- var i = T(r);
27
- if (!P(i))
28
- throw new RangeError("Invalid time value");
29
- var C = Y(i), W = L(i, C), x = {
30
- firstWeekContainsDate: E,
31
- weekStartsOn: R,
32
- locale: n,
33
- _originalDate: i
34
- }, z = S.match(H).map(function(e) {
35
- var o = e[0];
36
- if (o === "p" || o === "P") {
37
- var l = M[o];
38
- return l(e, n.formatLong);
39
- }
40
- return e;
41
- }).join("").match(F).map(function(e) {
42
- if (e === "''")
43
- return "'";
44
- var o = e[0];
45
- if (o === "'")
46
- return B(e);
47
- var l = I[o];
48
- if (l)
49
- return j(e) && $(e, t, String(r)), q(e) && $(e, t, String(r)), l(W, e, n.localize, x);
50
- if (o.match(Z))
51
- throw new RangeError("Format string contains an unescaped latin alphabet character `" + o + "`");
52
- return e;
53
- }).join("");
54
- return z;
55
- }
56
- function B(r) {
57
- var t = r.match(K);
58
- return t ? t[1].replace(V, "'") : r;
59
- }
1
+ import o from "./index20.js";
2
+ import * as t from "./utils8.js";
3
+ const m = {
4
+ ...t,
5
+ ...o
6
+ };
60
7
  export {
61
- ie as default
8
+ m as default
62
9
  };