@tesouro/embedded-components-react 0.5.68 → 0.5.69

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.
@@ -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), F(!0);
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), F(!0);
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
- })), C = g?.version ? x.versionLabel.replace("{version}", g.version) : void 0;
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: () => {
@@ -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",
@@ -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, versionLabel: d, isLoading: f = !1, isError: p = !1, onRetry: m, labels: h, testIds: g }) {
11
- let _ = i(h);
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": g?.root,
13
+ "data-testid": h?.root,
14
14
  className: "ttw:flex ttw:flex-col ttw:gap-4",
15
- children: p ? /* @__PURE__ */ a(r, {
16
- testId: g?.error,
17
- title: _.errorTitle,
18
- description: _.errorDescription,
19
- retryLabel: m ? _.errorRetry : void 0,
20
- onRetry: m
21
- }) : f ? /* @__PURE__ */ a("div", {
22
- "data-testid": g?.loading,
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: g?.empty,
34
- title: _.emptyTitle,
35
- description: _.emptyDescription
36
- }) : /* @__PURE__ */ o("div", {
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: [d ? /* @__PURE__ */ a("span", {
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: _.fileTypeBadge
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
- }), _.viewButton]
67
+ }), g.viewButton]
71
68
  })
72
69
  })
73
70
  ]
74
71
  }, t.url))
75
- })]
72
+ })
76
73
  })
77
74
  });
78
75
  }
@@ -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.68", n = "9254e7ccf1a0171056396b0f52a95a5e35e14260", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.69", n = "a4d77b036b5ea457e3c6507a73d1361a685d094a", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.68",
3
+ "version": "0.5.69",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {