@tesouro/embedded-components-react 0.5.132 → 0.5.134

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 (36) hide show
  1. package/dist/index.css +8 -0
  2. package/dist/index.d.ts +31 -0
  3. package/dist/lib/BankAccountsWidget.d.ts +13 -0
  4. package/dist/lib/CounterpartsWidget.d.ts +6 -0
  5. package/dist/lib/ProductsWidget.d.ts +6 -0
  6. package/dist/lib/ReceivablesWidget.d.ts +6 -0
  7. package/dist/lib/WidgetSuite.d.ts +13 -0
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +6 -4
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +13 -12
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +17 -35
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +35 -24
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +28 -0
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +32 -0
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +17 -5
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +2 -1
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index8.js +226 -139
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +100 -5
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +11 -0
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +110 -95
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index4.js +2 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +0 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +219 -241
  23. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -0
  24. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +1 -0
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +1 -0
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -0
  27. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +1 -0
  28. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +1 -0
  29. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +1 -0
  30. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index3.js +1 -0
  31. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +34 -34
  32. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +203 -192
  33. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +168 -144
  34. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  35. package/dist/packages/shared-ui-shadcn/dist/index.js +3270 -3265
  36. package/package.json +1 -1
@@ -2,169 +2,184 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Button as e, Skeleton as t, Tabs as n, TabsContent as r, TabsList as i, TabsTrigger as a, Tooltip as o, TooltipContent as s, TooltipProvider as c, TooltipTrigger as l, Typography as u } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { InlineErrorAlert as d } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
5
+ import { Button as e, Skeleton as t, Tabs as ee, TabsContent as n, TabsList as r, TabsTrigger as i, Tooltip as a, TooltipContent as o, TooltipProvider as s, TooltipTrigger as c, Typography as l } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { InlineErrorAlert as u } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
7
7
  import "../../../../shared/ui/dist/index.js";
8
- import { DEFAULT_LABELS as f } from "./index7.js";
9
- import { AccountDetailsPanel as ee } from "./index2.js";
10
- import { AccountActionsMenu as te, EditAccountDialog as ne } from "./index3.js";
11
- import { ExportTransactionsDialog as re } from "./index4.js";
12
- import { StatementsPanel as ie } from "./index5.js";
13
- import { TransactionsTable as ae } from "./index6.js";
14
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
15
- import { ChevronLeftIcon as g, HelpCircleIcon as _ } from "lucide-react";
8
+ import { DEFAULT_LABELS as te } from "./index7.js";
9
+ import { AccountDetailsPanel as ne } from "./index2.js";
10
+ import { AccountActionsMenu as re, EditAccountDialog as ie } from "./index3.js";
11
+ import { ExportTransactionsDialog as ae } from "./index4.js";
12
+ import { StatementsPanel as oe } from "./index5.js";
13
+ import { TransactionsTable as se } from "./index6.js";
14
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
15
+ import { ChevronLeftIcon as m, HelpCircleIcon as h } from "lucide-react";
16
16
  //#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js
17
- function v({ labels: v, title: y, bankDisplayName: b, bankLogoSrc: x, bankLogoAlt: S, balanceLabel: C, balanceTestId: w, isBankingTaglineVisible: T, activeTab: E, transactionRows: D, showExport: O, isExportOpen: k, exportStartDate: A, exportEndDate: j, isExportDownloading: M, isExportDownloadDisabled: N, disabledExportStartDates: P, disabledExportEndDates: F, accountNumberLabel: I, maskedAccountNumberLabel: L, accountNumberTestId: R, routingNumberLabel: z, bankAddressLabel: B, wireAccountNumberLabel: oe, domesticWireIntroLabel: V, domesticWireNoteLabel: H, thingsToKnowBodyLabel: U, supportTeamHref: W, isAccountNumberVisible: G, isAccountNumberCopied: K, isRoutingNumberCopied: q, isDomesticWireExpanded: se, isLoading: J, isError: Y, isEditOpen: ce, isEditDisabled: le, isEditError: ue, isSubmitting: de, editForm: fe, canEdit: pe, onBack: me, onTabChange: he, onToggleAccountNumberVisibility: ge, onCopyAccountNumber: X, onCopyRoutingNumber: Z, onCopyBankName: _e, onCopyBankAddress: ve, onDomesticWireExpandedChange: ye, onEditOpenChange: be, onEditFormChange: xe, onEditSubmit: Se, onEditNicknameClick: Ce, onExportOpenChange: Q, onExportStartDateChange: we, onExportEndDateChange: Te, onExportDownload: Ee }) {
17
+ function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAlt: b, balanceLabel: x, balanceTestId: S, isBankingTaglineVisible: C, activeTab: w, transactionRows: T, statementRows: E, isStatementsLoading: D, isStatementsError: O, onStatementsRetry: k, isStatementsPaginationVisible: A, statementsPageSize: j, statementsPageSizeOptions: M, statementsRangeLabel: N = "", isStatementsPreviousPageDisabled: P, isStatementsNextPageDisabled: F, onStatementsPageSizeChange: I, onStatementsPreviousPageClick: L, onStatementsNextPageClick: R, showExport: z, isExportOpen: B, exportStartDate: V, exportEndDate: H, isExportDownloading: U, isExportDownloadDisabled: W, disabledExportStartDates: G, disabledExportEndDates: K, accountNumberLabel: ce, maskedAccountNumberLabel: le, accountNumberTestId: ue, routingNumberLabel: de, bankAddressLabel: fe, wireAccountNumberLabel: pe, domesticWireIntroLabel: me, domesticWireNoteLabel: he, thingsToKnowBodyLabel: ge, supportTeamHref: _e, isAccountNumberVisible: q, isAccountNumberCopied: ve, isRoutingNumberCopied: ye, isDomesticWireExpanded: be, isLoading: J, isError: Y, isEditOpen: xe, isEditDisabled: Se, isEditError: Ce, isSubmitting: we, editForm: Te, canEdit: Ee, onBack: De, onTabChange: Oe, onToggleAccountNumberVisibility: ke, onCopyAccountNumber: X, onCopyRoutingNumber: Z, onCopyBankName: Ae, onCopyBankAddress: je, onDomesticWireExpandedChange: Me, onEditOpenChange: Ne, onEditFormChange: Pe, onEditSubmit: Fe, onEditNicknameClick: Ie, onExportOpenChange: Q, onExportStartDateChange: Le, onExportEndDateChange: Re, onExportDownload: ze }) {
18
18
  let $ = {
19
- ...f,
20
- ...v
21
- }, De = /* @__PURE__ */ h(e, {
19
+ ...te,
20
+ ...g
21
+ }, Be = /* @__PURE__ */ p(e, {
22
22
  type: "button",
23
23
  variant: "ghost",
24
24
  className: "ttw:h-auto ttw:justify-start ttw:gap-1 ttw:px-0 ttw:py-1 ttw:has-[>svg]:px-0 ttw:text-sm ttw:font-medium ttw:leading-5 ttw:text-primary ttw:hover:bg-transparent",
25
- onClick: me,
26
- children: [/* @__PURE__ */ m(g, { className: "ttw:size-4" }), $.backToAccounts]
25
+ onClick: De,
26
+ children: [/* @__PURE__ */ f(m, { className: "ttw:size-4" }), $.backToAccounts]
27
27
  });
28
- return /* @__PURE__ */ h("section", {
28
+ return /* @__PURE__ */ p("section", {
29
29
  className: "ttw:w-full ttw:space-y-4",
30
30
  children: [
31
- !J && !Y ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(ne, {
31
+ !J && !Y ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(ie, {
32
32
  labels: $,
33
- open: ce,
34
- form: fe,
35
- isSubmitting: de,
36
- isError: ue,
37
- onOpenChange: be,
38
- onFormChange: xe,
39
- onSubmit: Se
40
- }), /* @__PURE__ */ m(re, {
33
+ open: xe,
34
+ form: Te,
35
+ isSubmitting: we,
36
+ isError: Ce,
37
+ onOpenChange: Ne,
38
+ onFormChange: Pe,
39
+ onSubmit: Fe
40
+ }), /* @__PURE__ */ f(ae, {
41
41
  labels: $,
42
- open: k,
43
- startDate: A,
44
- endDate: j,
45
- isDownloading: M,
46
- isDownloadDisabled: N,
47
- disabledStartDates: P,
48
- disabledEndDates: F,
42
+ open: B,
43
+ startDate: V,
44
+ endDate: H,
45
+ isDownloading: U,
46
+ isDownloadDisabled: W,
47
+ disabledStartDates: G,
48
+ disabledEndDates: K,
49
49
  onOpenChange: Q,
50
- onStartDateChange: we,
51
- onEndDateChange: Te,
52
- onDownload: Ee
50
+ onStartDateChange: Le,
51
+ onEndDateChange: Re,
52
+ onDownload: ze
53
53
  })] }) : null,
54
- /* @__PURE__ */ h("div", {
54
+ /* @__PURE__ */ p("div", {
55
55
  className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
56
- children: [De, !J && !Y ? /* @__PURE__ */ m(te, {
56
+ children: [Be, !J && !Y ? /* @__PURE__ */ f(re, {
57
57
  labels: $,
58
- canEdit: pe,
59
- onEditNickname: Ce
58
+ canEdit: Ee,
59
+ onEditNickname: Ie
60
60
  }) : null]
61
61
  }),
62
- J ? /* @__PURE__ */ h("div", {
62
+ J ? /* @__PURE__ */ p("div", {
63
63
  className: "ttw:space-y-4",
64
64
  "aria-label": $.loadingLabel,
65
- children: [/* @__PURE__ */ m(t, { className: "ttw:h-10 ttw:w-64" }), /* @__PURE__ */ m(t, { className: "ttw:h-64 ttw:w-full ttw:rounded-xl" })]
66
- }) : Y ? /* @__PURE__ */ m(d, { children: $.errorTitle }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
65
+ children: [/* @__PURE__ */ f(t, { className: "ttw:h-10 ttw:w-64" }), /* @__PURE__ */ f(t, { className: "ttw:h-64 ttw:w-full ttw:rounded-xl" })]
66
+ }) : Y ? /* @__PURE__ */ f(u, { children: $.errorTitle }) : /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p("div", {
67
67
  className: "ttw:space-y-4",
68
- children: [/* @__PURE__ */ h("div", {
68
+ children: [/* @__PURE__ */ p("div", {
69
69
  className: "ttw:space-y-0.5",
70
- children: [/* @__PURE__ */ m(u, {
70
+ children: [/* @__PURE__ */ f(l, {
71
71
  variant: "h2",
72
72
  className: "ttw:leading-9 ttw:tracking-[-0.75px]",
73
- children: y
74
- }), T && b ? /* @__PURE__ */ h("div", {
73
+ children: _
74
+ }), C && v ? /* @__PURE__ */ p("div", {
75
75
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1",
76
- children: [/* @__PURE__ */ m(u, {
76
+ children: [/* @__PURE__ */ f(l, {
77
77
  component: "span",
78
78
  variant: "body2",
79
79
  color: "muted",
80
80
  className: "ttw:text-sm ttw:font-normal ttw:leading-5",
81
81
  children: $.bankingTaglinePrefix
82
- }), x ? /* @__PURE__ */ m("img", {
83
- src: x,
84
- alt: S ?? b,
82
+ }), y ? /* @__PURE__ */ f("img", {
83
+ src: y,
84
+ alt: b ?? v,
85
85
  className: "ttw:block ttw:h-auto ttw:max-w-[120px]"
86
- }) : /* @__PURE__ */ m(u, {
86
+ }) : /* @__PURE__ */ f(l, {
87
87
  component: "span",
88
88
  variant: "body2",
89
89
  color: "muted",
90
90
  className: "ttw:text-sm ttw:font-normal ttw:leading-5",
91
- children: b
91
+ children: v
92
92
  })]
93
93
  }) : null]
94
- }), /* @__PURE__ */ h("div", {
94
+ }), /* @__PURE__ */ p("div", {
95
95
  className: "ttw:space-y-1.5",
96
- children: [/* @__PURE__ */ h("div", {
96
+ children: [/* @__PURE__ */ p("div", {
97
97
  className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-muted-foreground",
98
- children: [/* @__PURE__ */ m("span", { children: $.availableBalanceLabel }), /* @__PURE__ */ m(c, { children: /* @__PURE__ */ h(o, { children: [/* @__PURE__ */ m(l, {
98
+ children: [/* @__PURE__ */ f("span", { children: $.availableBalanceLabel }), /* @__PURE__ */ f(s, { children: /* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(c, {
99
99
  type: "button",
100
100
  className: "ttw:inline-flex ttw:cursor-help",
101
101
  "aria-label": $.availableBalanceTooltip,
102
- children: /* @__PURE__ */ m(_, { className: "ttw:size-4" })
103
- }), /* @__PURE__ */ m(s, { children: $.availableBalanceTooltip })] }) })]
104
- }), /* @__PURE__ */ m("p", {
105
- "data-testid": w,
102
+ children: /* @__PURE__ */ f(h, { className: "ttw:size-4" })
103
+ }), /* @__PURE__ */ f(o, { children: $.availableBalanceTooltip })] }) })]
104
+ }), /* @__PURE__ */ f("p", {
105
+ "data-testid": S,
106
106
  className: "ttw:text-4xl ttw:font-bold ttw:text-primary",
107
- children: C
107
+ children: x
108
108
  })]
109
109
  })]
110
- }), /* @__PURE__ */ h(n, {
111
- value: E,
112
- onValueChange: (e) => he(e),
110
+ }), /* @__PURE__ */ p(ee, {
111
+ value: w,
112
+ onValueChange: (e) => Oe(e),
113
113
  className: "ttw:gap-4",
114
114
  children: [
115
- /* @__PURE__ */ h(i, { children: [
116
- /* @__PURE__ */ m(a, {
115
+ /* @__PURE__ */ p(r, { children: [
116
+ /* @__PURE__ */ f(i, {
117
117
  value: "transactions",
118
118
  children: $.transactionsTab
119
119
  }),
120
- /* @__PURE__ */ m(a, {
120
+ /* @__PURE__ */ f(i, {
121
121
  value: "statements",
122
122
  children: $.statementsTab
123
123
  }),
124
- /* @__PURE__ */ m(a, {
124
+ /* @__PURE__ */ f(i, {
125
125
  value: "details",
126
126
  children: $.detailsTab
127
127
  })
128
128
  ] }),
129
- /* @__PURE__ */ m(r, {
129
+ /* @__PURE__ */ f(n, {
130
130
  value: "transactions",
131
- children: /* @__PURE__ */ m(ae, {
131
+ children: /* @__PURE__ */ f(se, {
132
132
  labels: $,
133
- rows: D,
134
- showExport: O,
133
+ rows: T,
134
+ showExport: z,
135
135
  onExportClick: () => Q(!0)
136
136
  })
137
137
  }),
138
- /* @__PURE__ */ m(r, {
138
+ /* @__PURE__ */ f(n, {
139
139
  value: "statements",
140
- children: /* @__PURE__ */ m(ie, { labels: $ })
140
+ children: /* @__PURE__ */ f(oe, {
141
+ labels: $,
142
+ rows: E,
143
+ isLoading: D,
144
+ isError: O,
145
+ onRetry: k,
146
+ isPaginationVisible: A,
147
+ pageSize: j,
148
+ pageSizeOptions: M,
149
+ rangeLabel: N,
150
+ isPreviousPageDisabled: P,
151
+ isNextPageDisabled: F,
152
+ onPageSizeChange: I,
153
+ onPreviousPageClick: L,
154
+ onNextPageClick: R
155
+ })
141
156
  }),
142
- /* @__PURE__ */ m(r, {
157
+ /* @__PURE__ */ f(n, {
143
158
  value: "details",
144
- children: /* @__PURE__ */ m(ee, {
159
+ children: /* @__PURE__ */ f(ne, {
145
160
  labels: $,
146
- routingNumberLabel: z,
147
- accountNumberDisplayLabel: G ? I : L,
148
- accountNumberTestId: R,
149
- wireAccountNumberLabel: oe,
150
- bankNameLabel: b,
151
- bankAddressLabel: B,
152
- domesticWireIntroLabel: V,
153
- domesticWireNoteLabel: H,
154
- thingsToKnowBodyLabel: U,
155
- supportTeamHref: W,
156
- isAccountNumberVisible: G,
157
- isAccountNumberCopied: K,
158
- isRoutingNumberCopied: q,
159
- isDomesticWireExpanded: se,
160
- onDomesticWireExpandedChange: ye,
161
- onToggleAccountNumberVisibility: ge,
161
+ routingNumberLabel: de,
162
+ accountNumberDisplayLabel: q ? ce : le,
163
+ accountNumberTestId: ue,
164
+ wireAccountNumberLabel: pe,
165
+ bankNameLabel: v,
166
+ bankAddressLabel: fe,
167
+ domesticWireIntroLabel: me,
168
+ domesticWireNoteLabel: he,
169
+ thingsToKnowBodyLabel: ge,
170
+ supportTeamHref: _e,
171
+ isAccountNumberVisible: q,
172
+ isAccountNumberCopied: ve,
173
+ isRoutingNumberCopied: ye,
174
+ isDomesticWireExpanded: be,
175
+ onDomesticWireExpandedChange: Me,
176
+ onToggleAccountNumberVisibility: ke,
162
177
  onCopyAccountNumber: X,
163
178
  onCopyRoutingNumber: Z,
164
179
  onCopyWireAccountNumber: X,
165
180
  onCopyWireRoutingNumber: Z,
166
- onCopyBankName: _e,
167
- onCopyBankAddress: ve
181
+ onCopyBankName: Ae,
182
+ onCopyBankAddress: je
168
183
  })
169
184
  })
170
185
  ]
@@ -173,4 +188,4 @@ function v({ labels: v, title: y, bankDisplayName: b, bankLogoSrc: x, bankLogoAl
173
188
  });
174
189
  }
175
190
  //#endregion
176
- export { v as AccountDetailsWidgetUi };
191
+ export { g as AccountDetailsWidgetUi };
@@ -7,7 +7,8 @@ var e = {
7
7
  copyRoutingNumberToast: "Routing number copied to clipboard",
8
8
  exportLoadingToast: "Exporting CSV...",
9
9
  exportSuccessToast: "Transactions have been exported",
10
- exportErrorToast: "Unable to export transactions"
10
+ exportErrorToast: "Unable to export transactions",
11
+ viewStatementErrorToast: "Unable to open statement"
11
12
  };
12
13
  //#endregion
13
14
  export { e as DEFAULT_FEATURE_LABELS };
@@ -73,7 +73,6 @@ var c = {
73
73
  columnTotalAmount: "Total amount",
74
74
  columnStatus: "Status",
75
75
  columnAddedOn: "Added on",
76
- columnActions: "Actions",
77
76
  openRow: (e) => `View bill — ${e}`,
78
77
  duplicateBillsReviewButton: "Review duplicates",
79
78
  searchPlaceholder: "Search by vendor name",