@tesouro/embedded-components-react 0.3.25 → 0.3.27
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/README.md +3 -0
- package/dist/experimental/WidgetSuite.d.ts +32 -3
- package/dist/experimental/index.d.ts +32 -3
- package/dist/index.d.ts +60 -25
- package/dist/lib/AcceptDisclosuresWidget.d.ts +32 -3
- package/dist/lib/BalancesWidget.d.ts +31 -2
- package/dist/lib/BankAccountOnboardingWidget.d.ts +32 -3
- package/dist/lib/BankAccountsWidget.d.ts +32 -3
- package/dist/lib/BillPayWidget.d.ts +31 -2
- package/dist/lib/CardDetailsWidget.d.ts +32 -3
- package/dist/lib/CardsWidget.d.ts +32 -3
- package/dist/lib/ChartOfAccountsWidget.d.ts +32 -3
- package/dist/lib/CounterpartsWidget.d.ts +32 -3
- package/dist/lib/CreateCardWidget.d.ts +32 -3
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +32 -3
- package/dist/lib/ExpenseManagementWidget.d.ts +32 -3
- package/dist/lib/ExpenseRequirementsWidget.d.ts +32 -3
- package/dist/lib/HelpWidget.d.ts +32 -3
- package/dist/lib/InsightsWidget.d.ts +31 -2
- package/dist/lib/InvoicingWidget.d.ts +32 -3
- package/dist/lib/LinkedAccountsWidget.d.ts +32 -3
- package/dist/lib/ProductsWidget.d.ts +32 -3
- package/dist/lib/ProfileWidget.d.ts +32 -3
- package/dist/lib/ReceiptMatchWidget.d.ts +32 -3
- package/dist/lib/ReceivablesWidget.d.ts +32 -3
- package/dist/lib/SettingsWidget.d.ts +32 -3
- package/dist/lib/TagsWidget.d.ts +32 -3
- package/dist/lib/TeamWidget.d.ts +32 -3
- package/dist/lib/TransfersWidget.d.ts +31 -2
- package/dist/lib/WidgetProvider.d.ts +39 -4
- package/dist/lib/WidgetProviderPublic.d.ts +31 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +131 -130
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +88 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetErrorBoundary.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +174 -163
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/events.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +3 -2
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
CHANGED
|
@@ -18,26 +18,26 @@ import { CREATE_CARD_WIDGET_LABELS_EN as l } from "../../ui/dist/lib/CreateCardW
|
|
|
18
18
|
import { CreateCardView as u, MailingOptionValue as d } from "../../ui/dist/lib/CreateCardWidget/types.js";
|
|
19
19
|
import { CreateCardWidget as f } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
|
|
20
20
|
import "../../ui/dist/index.js";
|
|
21
|
-
import { CardFormatValue as p, buildCreateDebitCardRequest as
|
|
22
|
-
import { resolveCreateCardFeatureLabels as
|
|
23
|
-
import { CreateCardWidgetAnalyticsEvent as
|
|
24
|
-
import { getCreateCardPermissions as
|
|
25
|
-
import { useCreateCardCardholderOptions as
|
|
26
|
-
import { useCreateCard as
|
|
27
|
-
import { useCreateDebitCardMutation as
|
|
28
|
-
import { useManageDebitCardAccessMutation as
|
|
29
|
-
import { useCreateCardOrganizationQuery as
|
|
21
|
+
import { CardFormatValue as p, buildCreateDebitCardRequest as m, createDebitCardReference as ee, formatBusinessAddress as te, isBusinessAddressComplete as ne, isManualAddressComplete as re } from "./index3.js";
|
|
22
|
+
import { resolveCreateCardFeatureLabels as ie } from "./index4.js";
|
|
23
|
+
import { CreateCardWidgetAnalyticsEvent as ae, WIDGET_NAME as oe } from "./index2.js";
|
|
24
|
+
import { getCreateCardPermissions as se } from "./index5.js";
|
|
25
|
+
import { useCreateCardCardholderOptions as ce } from "./index6.js";
|
|
26
|
+
import { useCreateCard as le } from "../../data-access/dist/index2.js";
|
|
27
|
+
import { useCreateDebitCardMutation as ue } from "../../data-access/dist/index4.js";
|
|
28
|
+
import { useManageDebitCardAccessMutation as de } from "../../data-access/dist/index5.js";
|
|
29
|
+
import { useCreateCardOrganizationQuery as fe } from "../../data-access/dist/index6.js";
|
|
30
30
|
import "../../data-access/dist/index.js";
|
|
31
|
-
import { useEffect as
|
|
32
|
-
import { Fragment as
|
|
31
|
+
import { useEffect as h, useMemo as g, useRef as _, useState as v } from "react";
|
|
32
|
+
import { Fragment as pe, jsx as y, jsxs as me } from "react/jsx-runtime";
|
|
33
33
|
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
|
|
34
|
-
var
|
|
34
|
+
var he = t.DebitCardIssueOrg, ge = {
|
|
35
35
|
street: "",
|
|
36
36
|
city: "",
|
|
37
37
|
state: "",
|
|
38
38
|
zip: ""
|
|
39
|
-
},
|
|
40
|
-
function
|
|
39
|
+
}, _e = 3e3, b = 5e3;
|
|
40
|
+
function ve(e, t) {
|
|
41
41
|
if (e === "PENDING_ACTIVATION") return {
|
|
42
42
|
title: t.success.pendingActivationTitle,
|
|
43
43
|
description: t.success.pendingActivationDescription
|
|
@@ -47,58 +47,58 @@ function ye(e, t) {
|
|
|
47
47
|
description: t.success.createdDescription
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function x(e) {
|
|
51
51
|
let t = e?.trim().slice(-4);
|
|
52
52
|
return t ? `••••${t}` : void 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
let n = e.nickname?.trim(), r =
|
|
54
|
+
function S(e, t) {
|
|
55
|
+
let n = e.nickname?.trim(), r = x(e.accountNumber);
|
|
56
56
|
return n && r ? `${n} (${r})` : n || r || t;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
let
|
|
58
|
+
function C({ cardArtSrc: t, labels: o, featureLabels: oe, className: x, onClose: C, onCancel: w, onViewCard: T }) {
|
|
59
|
+
let E = a(), { isReady: D } = le(), { initResponse: O, organizationId: k } = c(), A = g(() => se(O?.scopes), [O?.scopes]), j = ie(oe), M = {
|
|
60
60
|
...l,
|
|
61
61
|
...o,
|
|
62
62
|
setup: {
|
|
63
63
|
...l.setup,
|
|
64
64
|
...o?.setup
|
|
65
65
|
}
|
|
66
|
-
},
|
|
66
|
+
}, ye = g(() => [{
|
|
67
67
|
value: p.Virtual,
|
|
68
|
-
label:
|
|
68
|
+
label: M.setup.cardFormatVirtual
|
|
69
69
|
}, {
|
|
70
70
|
value: p.Physical,
|
|
71
|
-
label:
|
|
72
|
-
}], [
|
|
73
|
-
|
|
74
|
-
}, Oe =
|
|
75
|
-
|
|
76
|
-
let U =
|
|
77
|
-
|
|
71
|
+
label: M.setup.cardFormatPhysical
|
|
72
|
+
}], [M.setup.cardFormatPhysical, M.setup.cardFormatVirtual]), be = g(() => s(), []), [xe, N] = v(u.Setup), [P, F] = v(null), [I, L] = v(null), [Se, R] = v(null), [z, B] = v(null), [V, H] = v(ge), [Ce, we] = v(null), [Te, Ee] = v(null), De = () => {
|
|
73
|
+
F(null), L(null), R(null), B(null), H(ge), we(null), Ee(null), N(u.Setup);
|
|
74
|
+
}, Oe = _(k);
|
|
75
|
+
k && k !== Oe.current && (Oe.current = k, De());
|
|
76
|
+
let U = _(!0);
|
|
77
|
+
h(() => (U.current = !0, () => {
|
|
78
78
|
U.current = !1;
|
|
79
|
-
}), []),
|
|
80
|
-
|
|
81
|
-
}, [
|
|
82
|
-
let { options: ke, isError: W, refetch: Ae } =
|
|
83
|
-
enabled:
|
|
84
|
-
permissions: [
|
|
85
|
-
}), je =
|
|
79
|
+
}), []), h(() => {
|
|
80
|
+
E(ae.Mounted);
|
|
81
|
+
}, [E]);
|
|
82
|
+
let { options: ke, isError: W, refetch: Ae } = ce({ enabled: D && A.canReadUsers }), G = r({
|
|
83
|
+
enabled: D && A.canReadUsers,
|
|
84
|
+
permissions: [he]
|
|
85
|
+
}), je = g(() => !D || !A.canReadUsers || G.isResolving || G.isError ? [] : (G.data?.data ?? []).filter((e) => e.organizationId === k).map((e) => e.id), [
|
|
86
86
|
G.data?.data,
|
|
87
87
|
G.isError,
|
|
88
88
|
G.isResolving,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
]), K = !!G.isError &&
|
|
93
|
-
|
|
89
|
+
D,
|
|
90
|
+
k,
|
|
91
|
+
A.canReadUsers
|
|
92
|
+
]), K = !!G.isError && D && A.canReadUsers, Me = D && A.canReadUsers && G.isResolving, q = _(null);
|
|
93
|
+
h(() => {
|
|
94
94
|
if (!K) {
|
|
95
95
|
q.current !== null && (e.dismiss(q.current), q.current = null);
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
return q.current = e.error(
|
|
98
|
+
return q.current = e.error(j.toast.debitCardIssuersError, {
|
|
99
99
|
duration: Infinity,
|
|
100
100
|
action: {
|
|
101
|
-
label:
|
|
101
|
+
label: j.toast.retry,
|
|
102
102
|
onClick: () => {
|
|
103
103
|
G.refetch();
|
|
104
104
|
}
|
|
@@ -108,19 +108,19 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
|
|
|
108
108
|
};
|
|
109
109
|
}, [
|
|
110
110
|
G.refetch,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
j.toast.debitCardIssuersError,
|
|
112
|
+
j.toast.retry,
|
|
113
113
|
K
|
|
114
114
|
]);
|
|
115
|
-
let Ne =
|
|
115
|
+
let Ne = fe({ enabled: D && A.canReadOrganization }), J = n({ enabled: D && A.canReadFundingAccounts }), Pe = ue(), Fe = de(), Y = !!J.isError && D && A.canReadFundingAccounts, X = g(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
|
|
116
116
|
value: e.id,
|
|
117
|
-
label:
|
|
117
|
+
label: S(e, j.untitledFundingAccount)
|
|
118
118
|
})), [
|
|
119
119
|
J.data?.data,
|
|
120
|
-
|
|
120
|
+
j.untitledFundingAccount,
|
|
121
121
|
Y
|
|
122
|
-
]), Z =
|
|
123
|
-
let e =
|
|
122
|
+
]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Ne.data?.address, Ie = te(Q), Le = ne(Q), $ = I === p.Physical, Re = $ && z === d.BusinessAddress && !!Ie, ze = $ && z === d.DifferentAddress, Be = Y || X.length > 0, Ve = !D || !A.canIssue || Pe.isPending || W || Y || K || Me || !P || !I || !Z || I === p.Physical && (!z || z === d.BusinessAddress && !Le || z === d.DifferentAddress && !re(V)), He = g(() => {
|
|
123
|
+
let e = ve(Te, j);
|
|
124
124
|
return {
|
|
125
125
|
...o,
|
|
126
126
|
success: {
|
|
@@ -130,22 +130,22 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
|
|
|
130
130
|
};
|
|
131
131
|
}, [
|
|
132
132
|
Te,
|
|
133
|
-
|
|
133
|
+
j,
|
|
134
134
|
o
|
|
135
135
|
]), Ue = async () => {
|
|
136
|
-
if (!
|
|
137
|
-
let t =
|
|
138
|
-
cardholderUserId:
|
|
139
|
-
format:
|
|
136
|
+
if (!D) return;
|
|
137
|
+
let t = ee(), n = m({
|
|
138
|
+
cardholderUserId: P,
|
|
139
|
+
format: I,
|
|
140
140
|
bankAccountId: Z,
|
|
141
141
|
reference: t,
|
|
142
|
-
mailingOption:
|
|
142
|
+
mailingOption: z,
|
|
143
143
|
orgAddress: Q,
|
|
144
|
-
manualAddress:
|
|
144
|
+
manualAddress: V
|
|
145
145
|
});
|
|
146
146
|
if (!n) return;
|
|
147
|
-
|
|
148
|
-
let r = e.loading(
|
|
147
|
+
N(u.Preparing);
|
|
148
|
+
let r = e.loading(j.toast.creating);
|
|
149
149
|
try {
|
|
150
150
|
let t = await Pe.mutateAsync({ body: n });
|
|
151
151
|
if (!U.current) {
|
|
@@ -163,9 +163,9 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
|
|
|
163
163
|
e.dismiss(r);
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
N(u.Success), e.warning(j.toast.companyAdminAccessWarning, {
|
|
167
167
|
id: r,
|
|
168
|
-
duration:
|
|
168
|
+
duration: b
|
|
169
169
|
});
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
@@ -173,73 +173,73 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
|
|
|
173
173
|
e.dismiss(r);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
N(u.Success), e.success(j.toast.success, {
|
|
177
177
|
id: r,
|
|
178
|
-
duration:
|
|
178
|
+
duration: _e
|
|
179
179
|
});
|
|
180
180
|
} catch {
|
|
181
181
|
if (!U.current) {
|
|
182
182
|
e.dismiss(r);
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
N(u.Setup), e.error(j.toast.error, {
|
|
186
186
|
id: r,
|
|
187
|
-
duration:
|
|
187
|
+
duration: b
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
|
-
return /* @__PURE__ */
|
|
192
|
-
view:
|
|
191
|
+
return /* @__PURE__ */ me(pe, { children: [/* @__PURE__ */ y(i, {}), /* @__PURE__ */ y(f, {
|
|
192
|
+
view: xe,
|
|
193
193
|
cardArtSrc: t,
|
|
194
194
|
labels: He,
|
|
195
|
-
className:
|
|
195
|
+
className: x,
|
|
196
196
|
cardholderOptions: ke,
|
|
197
|
-
selectedCardholder:
|
|
198
|
-
onCardholderSelect:
|
|
197
|
+
selectedCardholder: P,
|
|
198
|
+
onCardholderSelect: F,
|
|
199
199
|
isCardholderError: W,
|
|
200
200
|
onCardholderRetry: W ? Ae : void 0,
|
|
201
|
-
cardFormatOptions:
|
|
202
|
-
selectedCardFormat:
|
|
201
|
+
cardFormatOptions: ye,
|
|
202
|
+
selectedCardFormat: I,
|
|
203
203
|
onCardFormatSelect: (e) => {
|
|
204
|
-
|
|
204
|
+
L(e), B(null);
|
|
205
205
|
},
|
|
206
206
|
isFundingAccountVisible: Be,
|
|
207
207
|
fundingAccountOptions: X,
|
|
208
208
|
selectedFundingAccount: Z,
|
|
209
|
-
onFundingAccountSelect:
|
|
209
|
+
onFundingAccountSelect: R,
|
|
210
210
|
isFundingAccountError: Y,
|
|
211
211
|
onFundingAccountRetry: Y ? () => {
|
|
212
212
|
J.refetch();
|
|
213
213
|
} : void 0,
|
|
214
214
|
isMailingSectionVisible: $,
|
|
215
|
-
selectedMailingOption:
|
|
216
|
-
onMailingOptionSelect:
|
|
215
|
+
selectedMailingOption: z,
|
|
216
|
+
onMailingOptionSelect: B,
|
|
217
217
|
businessAddress: Ie,
|
|
218
218
|
isBusinessAddressVisible: Re,
|
|
219
219
|
isManualAddressVisible: ze,
|
|
220
|
-
manualAddress:
|
|
221
|
-
onManualAddressChange: (e) =>
|
|
220
|
+
manualAddress: V,
|
|
221
|
+
onManualAddressChange: (e) => H((t) => ({
|
|
222
222
|
...t,
|
|
223
223
|
...e
|
|
224
224
|
})),
|
|
225
|
-
stateOptions:
|
|
225
|
+
stateOptions: be,
|
|
226
226
|
isCreateDisabled: Ve,
|
|
227
227
|
onCreateClick: () => {
|
|
228
228
|
Ue();
|
|
229
229
|
},
|
|
230
230
|
onCancelClick: () => {
|
|
231
|
-
|
|
231
|
+
w?.(), C?.();
|
|
232
232
|
},
|
|
233
|
-
onClose:
|
|
233
|
+
onClose: C,
|
|
234
234
|
onCreateAnotherClick: De,
|
|
235
|
-
onViewCardClick:
|
|
236
|
-
|
|
235
|
+
onViewCardClick: T && Ce ? () => {
|
|
236
|
+
T(Ce);
|
|
237
237
|
} : void 0
|
|
238
238
|
})] });
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
-
widgetName:
|
|
240
|
+
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...m }) {
|
|
241
|
+
return /* @__PURE__ */ y(o, {
|
|
242
|
+
widgetName: oe,
|
|
243
243
|
baseUrl: e,
|
|
244
244
|
widgetToken: t,
|
|
245
245
|
organizationId: n,
|
|
@@ -252,8 +252,9 @@ function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
252
252
|
onError: u,
|
|
253
253
|
analytics: d,
|
|
254
254
|
disclosuresAcceptance: f,
|
|
255
|
-
|
|
255
|
+
providerLabels: p,
|
|
256
|
+
children: /* @__PURE__ */ y(C, { ...m })
|
|
256
257
|
});
|
|
257
258
|
}
|
|
258
259
|
//#endregion
|
|
259
|
-
export {
|
|
260
|
+
export { w as CreateCardWidget, S as formatFundingAccountLabel };
|
|
@@ -46,7 +46,7 @@ function m({ isOpen: e, onClose: t, ...n }) {
|
|
|
46
46
|
...n
|
|
47
47
|
}) : null;
|
|
48
48
|
}
|
|
49
|
-
function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, disclosuresAcceptance: p,
|
|
49
|
+
function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, disclosuresAcceptance: p, providerLabels: h, isOpen: g, preSelectedReceiptIds: _, onClose: v, targetTransactionId: y, onSingleTransactionUpdate: b }) {
|
|
50
50
|
return /* @__PURE__ */ d(n, {
|
|
51
51
|
widgetName: o,
|
|
52
52
|
baseUrl: e,
|
|
@@ -60,12 +60,13 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
60
60
|
errorFallback: u,
|
|
61
61
|
onError: f,
|
|
62
62
|
disclosuresAcceptance: p,
|
|
63
|
+
providerLabels: h,
|
|
63
64
|
children: /* @__PURE__ */ d(m, {
|
|
64
|
-
isOpen:
|
|
65
|
-
preSelectedReceiptIds:
|
|
66
|
-
onClose:
|
|
67
|
-
targetTransactionId:
|
|
68
|
-
onSingleTransactionUpdate:
|
|
65
|
+
isOpen: g,
|
|
66
|
+
preSelectedReceiptIds: _,
|
|
67
|
+
onClose: v,
|
|
68
|
+
targetTransactionId: y,
|
|
69
|
+
onSingleTransactionUpdate: b
|
|
69
70
|
})
|
|
70
71
|
});
|
|
71
72
|
}
|
package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js
CHANGED
|
@@ -210,7 +210,7 @@ function z() {
|
|
|
210
210
|
}
|
|
211
211
|
})] });
|
|
212
212
|
}
|
|
213
|
-
function B({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p, disclosuresAcceptance: m } = {}) {
|
|
213
|
+
function B({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p, disclosuresAcceptance: m, providerLabels: h } = {}) {
|
|
214
214
|
return /* @__PURE__ */ C(o, {
|
|
215
215
|
widgetName: f,
|
|
216
216
|
baseUrl: i,
|
|
@@ -224,6 +224,7 @@ function B({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i,
|
|
|
224
224
|
errorFallback: d,
|
|
225
225
|
onError: p,
|
|
226
226
|
disclosuresAcceptance: m,
|
|
227
|
+
providerLabels: h,
|
|
227
228
|
children: /* @__PURE__ */ C(z, {})
|
|
228
229
|
});
|
|
229
230
|
}
|
package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js
CHANGED
|
@@ -27,7 +27,7 @@ function u({ labels: t, receiptUpload: o, receiptsContent: u, matchingContent: d
|
|
|
27
27
|
requirementsContent: p ?? /* @__PURE__ */ l(s, {})
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h,
|
|
30
|
+
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
|
|
31
31
|
return /* @__PURE__ */ l(t, {
|
|
32
32
|
widgetName: o,
|
|
33
33
|
baseUrl: e,
|
|
@@ -42,7 +42,8 @@ function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
42
42
|
onError: p,
|
|
43
43
|
analytics: m,
|
|
44
44
|
disclosuresAcceptance: h,
|
|
45
|
-
|
|
45
|
+
providerLabels: g,
|
|
46
|
+
children: /* @__PURE__ */ l(u, { ..._ })
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
//#endregion
|
|
@@ -63,7 +63,7 @@ function x() {
|
|
|
63
63
|
})]
|
|
64
64
|
})] });
|
|
65
65
|
}
|
|
66
|
-
function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, disclosuresAcceptance: m } = {}) {
|
|
66
|
+
function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, disclosuresAcceptance: m, providerLabels: g } = {}) {
|
|
67
67
|
return /* @__PURE__ */ h(i, {
|
|
68
68
|
widgetName: l,
|
|
69
69
|
baseUrl: a,
|
|
@@ -77,6 +77,7 @@ function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a,
|
|
|
77
77
|
errorFallback: f,
|
|
78
78
|
onError: p,
|
|
79
79
|
disclosuresAcceptance: m,
|
|
80
|
+
providerLabels: g,
|
|
80
81
|
children: /* @__PURE__ */ h(x, {})
|
|
81
82
|
});
|
|
82
83
|
}
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js
CHANGED
|
@@ -111,7 +111,7 @@ function b({ onEdit: r, onDelete: o, onAdd: b, screenLabels: x, formLabels: S, d
|
|
|
111
111
|
})
|
|
112
112
|
] })] });
|
|
113
113
|
}
|
|
114
|
-
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d,
|
|
114
|
+
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, errorFallback: p, onError: m, ...h }) {
|
|
115
115
|
return /* @__PURE__ */ _(r, {
|
|
116
116
|
widgetName: o,
|
|
117
117
|
baseUrl: e,
|
|
@@ -124,9 +124,10 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
|
|
|
124
124
|
uiFramework: l,
|
|
125
125
|
analytics: u,
|
|
126
126
|
disclosuresAcceptance: d,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
providerLabels: f,
|
|
128
|
+
errorFallback: p,
|
|
129
|
+
onError: m,
|
|
130
|
+
children: /* @__PURE__ */ _(b, { ...h })
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
133
|
//#endregion
|
|
@@ -29,7 +29,7 @@ function u({ faq: n = o, bankName: a, ...u }) {
|
|
|
29
29
|
...u
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h,
|
|
32
|
+
function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
|
|
33
33
|
return /* @__PURE__ */ l(n, {
|
|
34
34
|
widgetName: a,
|
|
35
35
|
baseUrl: e,
|
|
@@ -44,7 +44,8 @@ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
44
44
|
onError: p,
|
|
45
45
|
analytics: m,
|
|
46
46
|
disclosuresAcceptance: h,
|
|
47
|
-
|
|
47
|
+
providerLabels: g,
|
|
48
|
+
children: /* @__PURE__ */ l(u, { ..._ })
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js
CHANGED
|
@@ -212,7 +212,7 @@ function S({ counterpartFormLabels: t, counterpartMessageLabels: a, defaultTab:
|
|
|
212
212
|
})
|
|
213
213
|
] });
|
|
214
214
|
}
|
|
215
|
-
function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p,
|
|
215
|
+
function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
|
|
216
216
|
return /* @__PURE__ */ b(t, {
|
|
217
217
|
widgetName: a,
|
|
218
218
|
baseUrl: e,
|
|
@@ -227,7 +227,8 @@ function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
227
227
|
onError: d,
|
|
228
228
|
analytics: f,
|
|
229
229
|
disclosuresAcceptance: p,
|
|
230
|
-
|
|
230
|
+
providerLabels: m,
|
|
231
|
+
children: /* @__PURE__ */ b(S, { ...h })
|
|
231
232
|
});
|
|
232
233
|
}
|
|
233
234
|
//#endregion
|
|
@@ -19,7 +19,7 @@ function c(n) {
|
|
|
19
19
|
i(r.Mounted);
|
|
20
20
|
}, [i]), /* @__PURE__ */ o(t, { ...n });
|
|
21
21
|
}
|
|
22
|
-
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h,
|
|
22
|
+
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, pageTitleComponent: _ = s, uiFramework: v, ...y }) {
|
|
23
23
|
return /* @__PURE__ */ o(n, {
|
|
24
24
|
widgetName: i,
|
|
25
25
|
baseUrl: e,
|
|
@@ -33,10 +33,11 @@ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gat
|
|
|
33
33
|
finopsThemeColors: p,
|
|
34
34
|
analytics: m,
|
|
35
35
|
disclosuresAcceptance: h,
|
|
36
|
-
|
|
36
|
+
providerLabels: g,
|
|
37
|
+
uiFramework: v,
|
|
37
38
|
children: /* @__PURE__ */ o(c, {
|
|
38
|
-
...
|
|
39
|
-
pageTitleComponent:
|
|
39
|
+
...y,
|
|
40
|
+
pageTitleComponent: _
|
|
40
41
|
})
|
|
41
42
|
});
|
|
42
43
|
}
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js
CHANGED
|
@@ -22,7 +22,7 @@ function c({ labels: t, featureLabels: n }) {
|
|
|
22
22
|
...c
|
|
23
23
|
})] });
|
|
24
24
|
}
|
|
25
|
-
function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h,
|
|
25
|
+
function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
|
|
26
26
|
return /* @__PURE__ */ o(t, {
|
|
27
27
|
widgetName: n,
|
|
28
28
|
baseUrl: e,
|
|
@@ -37,7 +37,8 @@ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
|
|
|
37
37
|
onError: p,
|
|
38
38
|
analytics: m,
|
|
39
39
|
disclosuresAcceptance: h,
|
|
40
|
-
|
|
40
|
+
providerLabels: g,
|
|
41
|
+
children: /* @__PURE__ */ o(c, { ..._ })
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
//#endregion
|
|
@@ -103,7 +103,7 @@ function h({ pageSizeOptions: t = o, screenLabels: a, formLabels: h, detailsLabe
|
|
|
103
103
|
})
|
|
104
104
|
] });
|
|
105
105
|
}
|
|
106
|
-
function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m,
|
|
106
|
+
function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, providerLabels: g, ..._ }) {
|
|
107
107
|
return /* @__PURE__ */ p(t, {
|
|
108
108
|
widgetName: a,
|
|
109
109
|
baseUrl: e,
|
|
@@ -118,7 +118,8 @@ function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
118
118
|
onError: d,
|
|
119
119
|
analytics: f,
|
|
120
120
|
disclosuresAcceptance: m,
|
|
121
|
-
|
|
121
|
+
providerLabels: g,
|
|
122
|
+
children: /* @__PURE__ */ p(h, { ..._ })
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
125
|
//#endregion
|
|
@@ -100,7 +100,7 @@ function v({ labels: t, featureLabels: o, contactUrl: v }) {
|
|
|
100
100
|
isError: k
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, disclosuresAcceptance: m,
|
|
103
|
+
function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
104
104
|
return /* @__PURE__ */ f(t, {
|
|
105
105
|
widgetName: o,
|
|
106
106
|
baseUrl: e,
|
|
@@ -115,7 +115,8 @@ function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
115
115
|
onError: d,
|
|
116
116
|
analytics: p,
|
|
117
117
|
disclosuresAcceptance: m,
|
|
118
|
-
|
|
118
|
+
providerLabels: h,
|
|
119
|
+
children: /* @__PURE__ */ f(v, { ...g })
|
|
119
120
|
});
|
|
120
121
|
}
|
|
121
122
|
//#endregion
|
|
@@ -108,7 +108,7 @@ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContac
|
|
|
108
108
|
onSectionChange: G
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p,
|
|
111
|
+
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, ...g }) {
|
|
112
112
|
return /* @__PURE__ */ b(o, {
|
|
113
113
|
widgetName: m,
|
|
114
114
|
baseUrl: e,
|
|
@@ -124,7 +124,8 @@ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
124
124
|
finopsThemeColors: d,
|
|
125
125
|
analytics: f,
|
|
126
126
|
disclosuresAcceptance: p,
|
|
127
|
-
|
|
127
|
+
providerLabels: h,
|
|
128
|
+
children: /* @__PURE__ */ b(C, { ...g })
|
|
128
129
|
});
|
|
129
130
|
}
|
|
130
131
|
//#endregion
|