@tesouro/embedded-components-react 0.5.68 → 0.5.70
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/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index3.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -93,7 +93,7 @@ function D({ labels: u, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandle
|
|
|
93
93
|
k(e), j(!0);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
N(e),
|
|
96
|
+
N(e), L(!0);
|
|
97
97
|
}, [G]), se = t(B?.scopes, [n.CounterpartReadOrg]), q = f({
|
|
98
98
|
enabled: W,
|
|
99
99
|
canReadVendors: se,
|
|
@@ -107,7 +107,7 @@ function D({ labels: u, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandle
|
|
|
107
107
|
label: D.queues[e],
|
|
108
108
|
icon: E[e]
|
|
109
109
|
})), [D.queues]), ue = (e) => {
|
|
110
|
-
z(!1), N(e),
|
|
110
|
+
z(!1), N(e), L(!0);
|
|
111
111
|
}, de = () => {
|
|
112
112
|
F(!1), L(!0);
|
|
113
113
|
}, fe = () => {
|
|
@@ -28,10 +28,9 @@ function p({ labels: n }) {
|
|
|
28
28
|
}), x = l(n), S = s(g).map((e) => ({
|
|
29
29
|
...e,
|
|
30
30
|
ariaLabel: x.viewButtonAriaLabel.replace("{title}", e.title)
|
|
31
|
-
}))
|
|
31
|
+
}));
|
|
32
32
|
return /* @__PURE__ */ f(u, {
|
|
33
33
|
documents: S,
|
|
34
|
-
versionLabel: C,
|
|
35
34
|
isLoading: !h || _ || v,
|
|
36
35
|
isError: y,
|
|
37
36
|
onRetry: () => {
|
package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index2.js
CHANGED
|
@@ -3,7 +3,6 @@ var e = {
|
|
|
3
3
|
fileTypeBadge: "PDF",
|
|
4
4
|
viewButton: "View",
|
|
5
5
|
viewButtonAriaLabel: "View {title}",
|
|
6
|
-
versionLabel: "Version {version}",
|
|
7
6
|
emptyTitle: "No disclosures available",
|
|
8
7
|
emptyDescription: "Your bank has not published any disclosures yet.",
|
|
9
8
|
errorTitle: "Unable to load disclosures",
|
package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index3.js
CHANGED
|
@@ -7,19 +7,19 @@ import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
|
7
7
|
import { ExternalLinkIcon as s, FileTextIcon as c } from "lucide-react";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index3.js
|
|
9
9
|
var l = 3;
|
|
10
|
-
function u({ documents: u,
|
|
11
|
-
let
|
|
10
|
+
function u({ documents: u, isLoading: d = !1, isError: f = !1, onRetry: p, labels: m, testIds: h }) {
|
|
11
|
+
let g = i(m);
|
|
12
12
|
return /* @__PURE__ */ a("div", {
|
|
13
|
-
"data-testid":
|
|
13
|
+
"data-testid": h?.root,
|
|
14
14
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
15
|
-
children:
|
|
16
|
-
testId:
|
|
17
|
-
title:
|
|
18
|
-
description:
|
|
19
|
-
retryLabel:
|
|
20
|
-
onRetry:
|
|
21
|
-
}) :
|
|
22
|
-
"data-testid":
|
|
15
|
+
children: f ? /* @__PURE__ */ a(r, {
|
|
16
|
+
testId: h?.error,
|
|
17
|
+
title: g.errorTitle,
|
|
18
|
+
description: g.errorDescription,
|
|
19
|
+
retryLabel: p ? g.errorRetry : void 0,
|
|
20
|
+
onRetry: p
|
|
21
|
+
}) : d ? /* @__PURE__ */ a("div", {
|
|
22
|
+
"data-testid": h?.loading,
|
|
23
23
|
className: "ttw:divide-y ttw:divide-border ttw:rounded-lg ttw:border ttw:border-border ttw:bg-background",
|
|
24
24
|
children: Array.from({ length: l }, (e, n) => /* @__PURE__ */ o("div", {
|
|
25
25
|
className: "ttw:flex ttw:items-center ttw:gap-4 ttw:p-4",
|
|
@@ -30,15 +30,12 @@ function u({ documents: u, versionLabel: d, isLoading: f = !1, isError: p = !1,
|
|
|
30
30
|
]
|
|
31
31
|
}, n))
|
|
32
32
|
}) : u.length === 0 ? /* @__PURE__ */ a(n, {
|
|
33
|
-
testId:
|
|
34
|
-
title:
|
|
35
|
-
description:
|
|
36
|
-
}) : /* @__PURE__ */
|
|
33
|
+
testId: h?.empty,
|
|
34
|
+
title: g.emptyTitle,
|
|
35
|
+
description: g.emptyDescription
|
|
36
|
+
}) : /* @__PURE__ */ a("div", {
|
|
37
37
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
38
|
-
children:
|
|
39
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
40
|
-
children: d
|
|
41
|
-
}) : null, /* @__PURE__ */ a("ul", {
|
|
38
|
+
children: /* @__PURE__ */ a("ul", {
|
|
42
39
|
className: "ttw:divide-y ttw:divide-border ttw:rounded-lg ttw:border ttw:border-border ttw:bg-background",
|
|
43
40
|
children: u.map((t) => /* @__PURE__ */ o("li", {
|
|
44
41
|
className: "ttw:flex ttw:items-center ttw:gap-4 ttw:p-4",
|
|
@@ -48,7 +45,7 @@ function u({ documents: u, versionLabel: d, isLoading: f = !1, isError: p = !1,
|
|
|
48
45
|
className: "ttw:flex ttw:h-12 ttw:w-10 ttw:shrink-0 ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-0.5 ttw:rounded ttw:border ttw:border-border ttw:text-muted-foreground",
|
|
49
46
|
children: [/* @__PURE__ */ a(c, { className: "ttw:size-4" }), /* @__PURE__ */ a("span", {
|
|
50
47
|
className: "ttw:text-[9px] ttw:font-medium ttw:uppercase ttw:tracking-wide",
|
|
51
|
-
children:
|
|
48
|
+
children: g.fileTypeBadge
|
|
52
49
|
})]
|
|
53
50
|
}),
|
|
54
51
|
/* @__PURE__ */ a("span", {
|
|
@@ -67,12 +64,12 @@ function u({ documents: u, versionLabel: d, isLoading: f = !1, isError: p = !1,
|
|
|
67
64
|
children: [/* @__PURE__ */ a(s, {
|
|
68
65
|
"aria-hidden": !0,
|
|
69
66
|
className: "ttw:size-4"
|
|
70
|
-
}),
|
|
67
|
+
}), g.viewButton]
|
|
71
68
|
})
|
|
72
69
|
})
|
|
73
70
|
]
|
|
74
71
|
}, t.url))
|
|
75
|
-
})
|
|
72
|
+
})
|
|
76
73
|
})
|
|
77
74
|
});
|
|
78
75
|
}
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.70", n = "93c2e9b8f132e91b7d00a50d6fe917a0f4e73ca8", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|