@tesouro/embedded-components-react 0.11.167 → 0.11.169
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/index.d.ts +3 -0
- package/dist/lib/BankAccountsWidget.d.ts +1 -0
- package/dist/lib/CreditCardsWidget.d.ts +1 -0
- package/dist/lib/DebitCardsWidget.d.ts +1 -0
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -0
- package/dist/lib/WidgetSuite.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +122 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +63 -59
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +161 -160
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +126 -122
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +192 -191
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +100 -96
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js
CHANGED
|
@@ -7,142 +7,146 @@ import { Link as ee } from "../../../shared/ui/dist/lib/Link/Link.js";
|
|
|
7
7
|
import { WidgetFrame as te } from "../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
|
|
8
8
|
import { StatePanel as r } from "../../../shared/ui/dist/lib/StatePanel/StatePanel.js";
|
|
9
9
|
import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
10
|
-
import {
|
|
10
|
+
import { NoAccessState as a } from "../../../shared/ui/dist/lib/StatePanel/NoAccessState.js";
|
|
11
|
+
import { LoadingRegion as o } from "../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
|
|
11
12
|
import "../../../shared/ui/dist/index.js";
|
|
12
|
-
import { DEFAULT_LABELS as
|
|
13
|
-
import { AccountRow as
|
|
14
|
-
import { linkedAccountsWidgetUiTestIds as
|
|
15
|
-
import { ConnectAccountDialog as
|
|
16
|
-
import { EditAccountDialog as
|
|
17
|
-
import { SendDepositsDialog as
|
|
18
|
-
import { UnlinkAccountDialog as
|
|
13
|
+
import { DEFAULT_LABELS as s } from "./index13.js";
|
|
14
|
+
import { AccountRow as c } from "./index2.js";
|
|
15
|
+
import { linkedAccountsWidgetUiTestIds as l } from "./index6.js";
|
|
16
|
+
import { ConnectAccountDialog as u } from "./index7.js";
|
|
17
|
+
import { EditAccountDialog as d } from "./index8.js";
|
|
18
|
+
import { SendDepositsDialog as f } from "./index10.js";
|
|
19
|
+
import { UnlinkAccountDialog as p } from "./index11.js";
|
|
19
20
|
import { VerifyAccountDialog as ne } from "./index12.js";
|
|
20
|
-
import { Fragment as re, jsx as
|
|
21
|
-
import { LinkIcon as
|
|
21
|
+
import { Fragment as re, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
22
|
+
import { LinkIcon as g } from "lucide-react";
|
|
22
23
|
// ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js
|
|
23
|
-
function
|
|
24
|
+
function _({ labels: _, rows: v, isLoading: y = !1, isError: b = !1, isAccessRestricted: x = !1, onRetry: S, isConnectOpen: C, isEditOpen: w, isVerifyOpen: T, isUnlinkOpen: E, isSendDepositsOpen: D = !1, isSubmitting: O = !1, isActionDisabled: k = !1, isAuthPending: A = !1, canConnect: j = !0, isConnectError: M = !1, isEditError: N = !1, isVerifyError: P = !1, isUnlinkError: F = !1, isSendDepositsError: I = !1, learnMoreUrl: L, unlinkAccountNumber: R, sendDepositsAccountNumber: z, verifyAccountName: B, verifyAccountNumber: V, connectStep: H, accessRows: U, accessGrantedCount: ie, isTeamMembersLoading: W = !1, isTeamMembersError: G = !1, isConnectRequiredErrorVisible: K = !1, isConnectRoutingNumberInvalid: q = !1, connectErrorMessage: J, isVerifyFirstAmountInvalid: Y = !1, isVerifySecondAmountInvalid: ae = !1, isVerifyRequiredErrorVisible: oe = !1, connectSummary: se, connectForm: ce, editForm: le, verifyForm: ue, onConnectOpenChange: X, onEditOpenChange: de, onVerifyOpenChange: fe, onUnlinkOpenChange: pe, onSendDepositsOpenChange: me, onConnectFormChange: he, onEditFormChange: ge, onVerifyFormChange: _e, onConnectNext: ve, onConnectBack: ye, onTeamMembersRetry: be, onEditSubmit: xe, onVerifySubmit: Se, onUnlinkConfirm: Ce, onSendDepositsConfirm: we }) {
|
|
24
25
|
let Z = {
|
|
25
|
-
...
|
|
26
|
-
...
|
|
27
|
-
}, Q = !
|
|
26
|
+
...s,
|
|
27
|
+
..._
|
|
28
|
+
}, Q = !y && !b && v.length === 0, $ = /* @__PURE__ */ m(e, {
|
|
28
29
|
type: "button",
|
|
29
30
|
size: "sm",
|
|
30
|
-
disabled:
|
|
31
|
-
"data-testid":
|
|
31
|
+
disabled: k,
|
|
32
|
+
"data-testid": l.connectAccountButton,
|
|
32
33
|
onClick: () => X(!0),
|
|
33
34
|
children: Z.connectButton
|
|
34
35
|
});
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ h(re, { children: [
|
|
37
|
+
/* @__PURE__ */ m(te, {
|
|
37
38
|
title: Z.title,
|
|
38
|
-
action:
|
|
39
|
-
children:
|
|
39
|
+
action: j && !Q && !x ? $ : void 0,
|
|
40
|
+
children: x ? /* @__PURE__ */ m(a, {
|
|
41
|
+
title: Z.accessRestrictedTitle,
|
|
42
|
+
testId: l.accessRestricted
|
|
43
|
+
}) : b ? /* @__PURE__ */ m(i, {
|
|
40
44
|
title: Z.errorTitle,
|
|
41
45
|
retryLabel: Z.retryButton,
|
|
42
|
-
onRetry:
|
|
43
|
-
}) : Q ? /* @__PURE__ */
|
|
46
|
+
onRetry: S
|
|
47
|
+
}) : Q ? /* @__PURE__ */ m(r, {
|
|
44
48
|
kind: "empty",
|
|
45
|
-
icon: /* @__PURE__ */
|
|
49
|
+
icon: /* @__PURE__ */ m(g, {}),
|
|
46
50
|
title: Z.emptyTitle,
|
|
47
51
|
description: Z.emptyDescription,
|
|
48
|
-
testId:
|
|
49
|
-
action:
|
|
52
|
+
testId: l.emptyState,
|
|
53
|
+
action: j || L ? /* @__PURE__ */ h("div", {
|
|
50
54
|
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3",
|
|
51
|
-
children: [
|
|
52
|
-
href:
|
|
55
|
+
children: [j ? $ : null, L ? /* @__PURE__ */ m(ee, {
|
|
56
|
+
href: L,
|
|
53
57
|
target: "_blank",
|
|
54
58
|
rel: "noopener noreferrer",
|
|
55
59
|
className: "ttw:text-sm ttw:font-medium ttw:text-primary ttw:underline-offset-4 ttw:hover:underline",
|
|
56
60
|
children: Z.learnMoreButton
|
|
57
61
|
}) : null]
|
|
58
62
|
}) : void 0
|
|
59
|
-
}) : /* @__PURE__ */
|
|
60
|
-
isLoading:
|
|
63
|
+
}) : /* @__PURE__ */ m(o, {
|
|
64
|
+
isLoading: y,
|
|
61
65
|
loadingLabel: Z.loadingLabel,
|
|
62
|
-
children:
|
|
66
|
+
children: y ? /* @__PURE__ */ h("div", {
|
|
63
67
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
-
}) : /* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ m(t, { className: "ttw:h-11 ttw:w-full" }), /* @__PURE__ */ m(t, { className: "ttw:h-11 ttw:w-full" })]
|
|
69
|
+
}) : /* @__PURE__ */ m(n, { children: /* @__PURE__ */ m("ul", {
|
|
66
70
|
className: "ttw:-my-3 ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
67
|
-
children:
|
|
71
|
+
children: v.map((e) => /* @__PURE__ */ m(c, {
|
|
68
72
|
row: e,
|
|
69
|
-
isActionDisabled:
|
|
73
|
+
isActionDisabled: k
|
|
70
74
|
}, e.key))
|
|
71
75
|
}) })
|
|
72
76
|
})
|
|
73
77
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
open:
|
|
78
|
+
/* @__PURE__ */ m(u, {
|
|
79
|
+
open: C,
|
|
76
80
|
labels: Z,
|
|
77
|
-
connectStep:
|
|
78
|
-
connectForm:
|
|
79
|
-
accessRows:
|
|
80
|
-
accessGrantedCount:
|
|
81
|
-
connectSummary:
|
|
82
|
-
isTeamMembersLoading:
|
|
83
|
-
isTeamMembersError:
|
|
84
|
-
isSubmitting:
|
|
85
|
-
isActionDisabled:
|
|
86
|
-
canConnect:
|
|
87
|
-
isConnectError:
|
|
88
|
-
isConnectRequiredErrorVisible:
|
|
89
|
-
isConnectRoutingNumberInvalid:
|
|
90
|
-
connectErrorMessage:
|
|
81
|
+
connectStep: H,
|
|
82
|
+
connectForm: ce,
|
|
83
|
+
accessRows: U,
|
|
84
|
+
accessGrantedCount: ie,
|
|
85
|
+
connectSummary: se,
|
|
86
|
+
isTeamMembersLoading: W,
|
|
87
|
+
isTeamMembersError: G,
|
|
88
|
+
isSubmitting: O,
|
|
89
|
+
isActionDisabled: k,
|
|
90
|
+
canConnect: j,
|
|
91
|
+
isConnectError: M,
|
|
92
|
+
isConnectRequiredErrorVisible: K,
|
|
93
|
+
isConnectRoutingNumberInvalid: q,
|
|
94
|
+
connectErrorMessage: J,
|
|
91
95
|
onOpenChange: X,
|
|
92
|
-
onConnectFormChange:
|
|
93
|
-
onConnectNext:
|
|
94
|
-
onConnectBack:
|
|
95
|
-
onTeamMembersRetry:
|
|
96
|
-
}),
|
|
97
|
-
/* @__PURE__ */ p(u, {
|
|
98
|
-
open: S,
|
|
99
|
-
labels: Z,
|
|
100
|
-
editForm: se,
|
|
101
|
-
isSubmitting: E,
|
|
102
|
-
isAuthPending: O,
|
|
103
|
-
isActionDisabled: D,
|
|
104
|
-
isEditError: j,
|
|
105
|
-
onOpenChange: le,
|
|
106
|
-
onEditFormChange: me,
|
|
107
|
-
onEditSubmit: ye
|
|
96
|
+
onConnectFormChange: he,
|
|
97
|
+
onConnectNext: ve,
|
|
98
|
+
onConnectBack: ye,
|
|
99
|
+
onTeamMembersRetry: be
|
|
108
100
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
open:
|
|
101
|
+
/* @__PURE__ */ m(d, {
|
|
102
|
+
open: w,
|
|
111
103
|
labels: Z,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
isRequiredErrorVisible: Y,
|
|
121
|
-
isVerifyError: M,
|
|
122
|
-
onOpenChange: ue,
|
|
123
|
-
onVerifyFormChange: he,
|
|
124
|
-
onVerifySubmit: be
|
|
104
|
+
editForm: le,
|
|
105
|
+
isSubmitting: O,
|
|
106
|
+
isAuthPending: A,
|
|
107
|
+
isActionDisabled: k,
|
|
108
|
+
isEditError: N,
|
|
109
|
+
onOpenChange: de,
|
|
110
|
+
onEditFormChange: ge,
|
|
111
|
+
onEditSubmit: xe
|
|
125
112
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ m(ne, {
|
|
127
114
|
open: T,
|
|
128
115
|
labels: Z,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
verifyForm: ue,
|
|
117
|
+
accountName: B,
|
|
118
|
+
accountNumber: V,
|
|
119
|
+
isSubmitting: O,
|
|
120
|
+
isAuthPending: A,
|
|
121
|
+
isActionDisabled: k,
|
|
122
|
+
isVerifyFirstAmountInvalid: Y,
|
|
123
|
+
isVerifySecondAmountInvalid: ae,
|
|
124
|
+
isRequiredErrorVisible: oe,
|
|
125
|
+
isVerifyError: P,
|
|
133
126
|
onOpenChange: fe,
|
|
134
|
-
|
|
127
|
+
onVerifyFormChange: _e,
|
|
128
|
+
onVerifySubmit: Se
|
|
135
129
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
open:
|
|
130
|
+
/* @__PURE__ */ m(f, {
|
|
131
|
+
open: D,
|
|
138
132
|
labels: Z,
|
|
139
|
-
accountNumber:
|
|
140
|
-
isSubmitting:
|
|
141
|
-
isAuthPending:
|
|
142
|
-
isError:
|
|
143
|
-
onOpenChange:
|
|
144
|
-
|
|
133
|
+
accountNumber: z,
|
|
134
|
+
isSubmitting: O,
|
|
135
|
+
isAuthPending: A,
|
|
136
|
+
isError: I,
|
|
137
|
+
onOpenChange: me,
|
|
138
|
+
onConfirm: we
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ m(p, {
|
|
141
|
+
open: E,
|
|
142
|
+
labels: Z,
|
|
143
|
+
accountNumber: R,
|
|
144
|
+
isSubmitting: O,
|
|
145
|
+
isAuthPending: A,
|
|
146
|
+
isError: F,
|
|
147
|
+
onOpenChange: pe,
|
|
148
|
+
onUnlinkConfirm: Ce
|
|
145
149
|
})
|
|
146
150
|
] });
|
|
147
151
|
}
|
|
148
|
-
export {
|
|
152
|
+
export { _ as LinkedAccountsWidgetUi };
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
connectAccountButton: "linked-accounts-widget-connect-account-button",
|
|
4
4
|
emptyState: "linked-accounts-widget-empty-state",
|
|
5
|
+
accessRestricted: "linked-accounts-widget-access-restricted",
|
|
5
6
|
connectAccountDialog: "linked-accounts-widget-connect-account-dialog"
|
|
6
7
|
};
|
|
7
8
|
export { e as linkedAccountsWidgetUiTestIds };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.169", n = "19ef31da0ca040e8075dd7e84fb79819d6734304", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|