@commercelayer/app-elements 0.0.63 → 0.0.65
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/dist/{Async-8b24ead8.js → Async-d7cb8b62.js} +15 -12
- package/dist/{InputDateComponent-dcf8af25.js → InputDateComponent-790ed57c.js} +2 -2
- package/dist/{Select-c231dee0.js → Select-e78285a4.js} +3 -3
- package/dist/{main-2d006085.js → main-06441275.js} +2246 -2226
- package/dist/main.js +1 -1
- package/dist/{overrides-a131dcff.js → overrides-4590560a.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Tag.d.ts +3 -2
- package/dist/ui/resources/ResourceTags.d.ts +1 -0
- package/dist/{unsupportedIterableToArray-a39befd2.js → unsupportedIterableToArray-63261cba.js} +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { L as de, H as le } from "./main-
|
|
1
|
+
import { L as de, H as le } from "./main-06441275.js";
|
|
2
2
|
import * as ce from "react";
|
|
3
|
-
import { useRef as F, useState as a, useEffect as x, useCallback as
|
|
4
|
-
import { _ as Oe, a as s, h as Se, b as g, u as me, S as _e, c as he, s as ge } from "./overrides-
|
|
5
|
-
import { d as ye } from "./unsupportedIterableToArray-
|
|
3
|
+
import { useRef as F, useState as a, useEffect as x, useCallback as D, forwardRef as ve } from "react";
|
|
4
|
+
import { _ as Oe, a as s, h as Se, b as g, u as me, S as _e, c as he, s as ge } from "./overrides-4590560a.js";
|
|
5
|
+
import { d as ye } from "./unsupportedIterableToArray-63261cba.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "@commercelayer/sdk";
|
|
8
8
|
var Ce = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
9
9
|
function Ie(t) {
|
|
10
10
|
var o = t.defaultOptions, n = o === void 0 ? !1 : o, i = t.cacheOptions, u = i === void 0 ? !1 : i, r = t.loadOptions;
|
|
11
11
|
t.options;
|
|
12
|
-
var v = t.isLoading, O = v === void 0 ? !1 : v, S = t.onInputChange, m = t.filterOption, y = m === void 0 ? null : m,
|
|
12
|
+
var v = t.isLoading, O = v === void 0 ? !1 : v, S = t.onInputChange, m = t.filterOption, y = m === void 0 ? null : m, E = Oe(t, Ce), $ = E.inputValue, f = F(void 0), _ = F(!1), G = a(Array.isArray(n) ? n : void 0), j = s(G, 2), J = j[0], R = j[1], K = a(typeof $ < "u" ? $ : ""), w = s(K, 2), q = w[0], C = w[1], Q = a(n === !0), H = s(Q, 2), U = H[0], d = H[1], X = a(void 0), M = s(X, 2), I = M[0], L = M[1], Y = a([]), N = s(Y, 2), Z = N[0], A = N[1], k = a(!1), T = s(k, 2), ee = T[0], h = T[1], te = a({}), W = s(te, 2), l = W[0], b = W[1], ne = a(void 0), z = s(ne, 2), ae = z[0], se = z[1], re = a(void 0), B = s(re, 2), oe = B[0], ie = B[1];
|
|
13
13
|
u !== oe && (b({}), ie(u)), n !== ae && (R(Array.isArray(n) ? n : void 0), se(n)), x(function() {
|
|
14
14
|
return _.current = !0, function() {
|
|
15
15
|
_.current = !1;
|
|
16
16
|
};
|
|
17
17
|
}, []);
|
|
18
|
-
var P =
|
|
18
|
+
var P = D(function(c, p) {
|
|
19
19
|
if (!r)
|
|
20
20
|
return p();
|
|
21
21
|
var e = r(c, p);
|
|
@@ -24,11 +24,11 @@ function Ie(t) {
|
|
|
24
24
|
});
|
|
25
25
|
}, [r]);
|
|
26
26
|
x(function() {
|
|
27
|
-
n === !0 && P(
|
|
27
|
+
n === !0 && P(q, function(c) {
|
|
28
28
|
_.current && (R(c || []), d(!!f.current));
|
|
29
29
|
});
|
|
30
30
|
}, []);
|
|
31
|
-
var ue =
|
|
31
|
+
var ue = D(function(c, p) {
|
|
32
32
|
var e = Se(c, p, S);
|
|
33
33
|
if (!e) {
|
|
34
34
|
f.current = void 0, C(""), L(""), A([]), d(!1), h(!1);
|
|
@@ -42,8 +42,8 @@ function Ie(t) {
|
|
|
42
42
|
_ && fe === f.current && (f.current = void 0, d(!1), L(e), A(V || []), h(!1), b(V ? g(g({}, l), {}, ye({}, e, V)) : l));
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
}, [u, P, I, l, S]), pe = ee ? [] :
|
|
46
|
-
return g(g({},
|
|
45
|
+
}, [u, P, I, l, S]), pe = ee ? [] : q && I ? Z : J || [];
|
|
46
|
+
return g(g({}, E), {}, {
|
|
47
47
|
options: pe,
|
|
48
48
|
isLoading: U || O,
|
|
49
49
|
onInputChange: ue,
|
|
@@ -65,7 +65,7 @@ function Pe({
|
|
|
65
65
|
debounceMs: r = 500,
|
|
66
66
|
...v
|
|
67
67
|
}) {
|
|
68
|
-
const O =
|
|
68
|
+
const O = D(
|
|
69
69
|
de((S, m) => {
|
|
70
70
|
u(S).then((y) => {
|
|
71
71
|
m(y);
|
|
@@ -83,7 +83,10 @@ function Pe({
|
|
|
83
83
|
onChange: t,
|
|
84
84
|
noOptionsMessage: () => o,
|
|
85
85
|
loadOptions: O,
|
|
86
|
-
components:
|
|
86
|
+
components: {
|
|
87
|
+
...ge,
|
|
88
|
+
DropdownIndicator: null
|
|
89
|
+
},
|
|
87
90
|
isOptionDisabled: i
|
|
88
91
|
}
|
|
89
92
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Ma, r as E, a as Rn, t as H, b as Mt, c as Ee, d as _, g as Cr, _ as Qt, s as je, e as cr, f as xa, h as ur, i as Ln, j as Sa, k as Oa, l as Ea, m as qr, n as _a, o as Kr, p as Pa, q as Ta, u as Na, v as An, w as ae, x as nt, y as pr, z as Hn, A as Ya, B as lr, C as Zr, D as Ia, E as Ra, F as La, G as At, H as Ke, I as Aa, J as Ha, K as Fa } from "./main-
|
|
1
|
+
import { P as Ma, r as E, a as Rn, t as H, b as Mt, c as Ee, d as _, g as Cr, _ as Qt, s as je, e as cr, f as xa, h as ur, i as Ln, j as Sa, k as Oa, l as Ea, m as qr, n as _a, o as Kr, p as Pa, q as Ta, u as Na, v as An, w as ae, x as nt, y as pr, z as Hn, A as Ya, B as lr, C as Zr, D as Ia, E as Ra, F as La, G as At, H as Ke, I as Aa, J as Ha, K as Fa } from "./main-06441275.js";
|
|
2
2
|
import * as B from "react";
|
|
3
3
|
import h, { forwardRef as Fn, createElement as ja, Component as Ua, createRef as Ba } from "react";
|
|
4
|
-
import { _ as Wa, a as I, b as R, c as N, d as D, e as b, f as Y } from "./unsupportedIterableToArray-
|
|
4
|
+
import { _ as Wa, a as I, b as R, c as N, d as D, e as b, f as Y } from "./unsupportedIterableToArray-63261cba.js";
|
|
5
5
|
import * as Va from "react-dom";
|
|
6
6
|
import Qa, { findDOMNode as $a } from "react-dom";
|
|
7
7
|
import "@commercelayer/sdk";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as n } from "./main-
|
|
2
|
-
import { u as s, S as m, c as p, s as i } from "./overrides-
|
|
1
|
+
import { H as n } from "./main-06441275.js";
|
|
2
|
+
import { u as s, S as m, c as p, s as i } from "./overrides-4590560a.js";
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { forwardRef as S } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
|
-
import "./unsupportedIterableToArray-
|
|
7
|
+
import "./unsupportedIterableToArray-63261cba.js";
|
|
8
8
|
var f = /* @__PURE__ */ S(function(e, t) {
|
|
9
9
|
var o = s(e);
|
|
10
10
|
return /* @__PURE__ */ c.createElement(m, p({
|