@tesouro/embedded-components-react 0.7.53 → 0.7.57
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 +13 -3
- package/dist/experimental/RemoteCheckCapture.d.ts +1 -32
- package/dist/experimental/index.d.ts +1 -32
- package/dist/index.css +12 -0
- package/dist/index.d.ts +58 -47
- package/dist/index.js +47 -46
- package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -32
- package/dist/lib/BalancesWidget.d.ts +0 -31
- package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -32
- package/dist/lib/BankAccountsWidget.d.ts +1 -32
- package/dist/lib/BankingComplianceBannerWidget.d.ts +643 -0
- package/dist/lib/BankingComplianceBannerWidget.js +5 -0
- package/dist/lib/BillPayWidget.d.ts +0 -31
- package/dist/lib/CardDetailsWidget.d.ts +1 -32
- package/dist/lib/CounterpartsWidget.d.ts +0 -31
- package/dist/lib/CounterpartsWidgetPublic.d.ts +0 -31
- package/dist/lib/CreditCardsWidget.d.ts +0 -31
- package/dist/lib/CustomersWidget.d.ts +1 -33
- package/dist/lib/DebitCardsWidget.d.ts +0 -31
- package/dist/lib/ExpenseManagementWidget.d.ts +0 -31
- package/dist/lib/InsightsWidget.d.ts +0 -31
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -32
- package/dist/lib/OfferWidget.d.ts +1 -32
- package/dist/lib/ProductsWidget.d.ts +1 -32
- package/dist/lib/ReceivablesWidget.d.ts +1 -32
- package/dist/lib/SettingsWidget.d.ts +0 -31
- package/dist/lib/TransfersWidget.d.ts +0 -31
- package/dist/lib/WidgetProvider.d.ts +2 -33
- package/dist/lib/WidgetProvider.js +9 -10
- package/dist/lib/WidgetProviderPublic.d.ts +0 -31
- package/dist/lib/WidgetSuite.d.ts +1 -32
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +395 -396
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index2.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index3.js +42 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/isFdicBacked.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/analytics/events.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/testIds.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index2.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index4.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +83 -84
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +91 -95
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +2 -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/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +120 -121
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/types.js +0 -8
|
@@ -55,7 +55,7 @@ function v({ labels: a, onDepositComplete: o }) {
|
|
|
55
55
|
]
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: s,
|
|
58
|
+
function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, labels: h, onDepositComplete: g }) {
|
|
59
59
|
return /* @__PURE__ */ m(a, {
|
|
60
60
|
widgetName: o,
|
|
61
61
|
baseUrl: e,
|
|
@@ -64,16 +64,15 @@ function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
64
64
|
configClient: r,
|
|
65
65
|
gatewayRouting: i,
|
|
66
66
|
linkComponent: s,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
providerLabels: h,
|
|
67
|
+
uiFramework: c,
|
|
68
|
+
errorFallback: l,
|
|
69
|
+
onError: u,
|
|
70
|
+
analytics: d,
|
|
71
|
+
disclosuresAcceptance: f,
|
|
72
|
+
providerLabels: p,
|
|
74
73
|
children: /* @__PURE__ */ m(v, {
|
|
75
|
-
labels:
|
|
76
|
-
onDepositComplete:
|
|
74
|
+
labels: h,
|
|
75
|
+
onDepositComplete: g
|
|
77
76
|
})
|
|
78
77
|
});
|
|
79
78
|
}
|
|
@@ -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,
|
|
114
|
+
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, uiFramework: c, analytics: l, disclosuresAcceptance: u, providerLabels: d, errorFallback: f, onError: p, ...m }) {
|
|
115
115
|
return /* @__PURE__ */ _(r, {
|
|
116
116
|
widgetName: o,
|
|
117
117
|
baseUrl: e,
|
|
@@ -120,14 +120,13 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
|
|
|
120
120
|
configClient: i,
|
|
121
121
|
gatewayRouting: a,
|
|
122
122
|
linkComponent: s,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
children: /* @__PURE__ */ _(b, { ...h })
|
|
123
|
+
uiFramework: c,
|
|
124
|
+
analytics: l,
|
|
125
|
+
disclosuresAcceptance: u,
|
|
126
|
+
providerLabels: d,
|
|
127
|
+
errorFallback: f,
|
|
128
|
+
onError: p,
|
|
129
|
+
children: /* @__PURE__ */ _(b, { ...m })
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
132
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js
CHANGED
|
@@ -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,
|
|
32
|
+
function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, uiFramework: c, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
33
33
|
return /* @__PURE__ */ l(n, {
|
|
34
34
|
widgetName: a,
|
|
35
35
|
baseUrl: e,
|
|
@@ -38,14 +38,13 @@ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
38
38
|
configClient: i,
|
|
39
39
|
gatewayRouting: o,
|
|
40
40
|
linkComponent: s,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
children: /* @__PURE__ */ l(u, { ..._ })
|
|
41
|
+
uiFramework: c,
|
|
42
|
+
errorFallback: d,
|
|
43
|
+
onError: f,
|
|
44
|
+
analytics: p,
|
|
45
|
+
disclosuresAcceptance: m,
|
|
46
|
+
providerLabels: h,
|
|
47
|
+
children: /* @__PURE__ */ l(u, { ...g })
|
|
49
48
|
});
|
|
50
49
|
}
|
|
51
50
|
//#endregion
|
|
@@ -120,7 +120,7 @@ function T({ handleRef: r, panelLabels: o, logoLabels: u, dropzoneLabels: f, mes
|
|
|
120
120
|
...m
|
|
121
121
|
}, N);
|
|
122
122
|
}
|
|
123
|
-
function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s,
|
|
123
|
+
function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, uiFramework: c, analytics: l, disclosuresAcceptance: u, providerLabels: d, errorFallback: f, onError: p, ref: m, ...h }) {
|
|
124
124
|
return /* @__PURE__ */ S(r, {
|
|
125
125
|
widgetName: o,
|
|
126
126
|
baseUrl: e,
|
|
@@ -129,16 +129,15 @@ function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
|
|
|
129
129
|
configClient: i,
|
|
130
130
|
gatewayRouting: a,
|
|
131
131
|
linkComponent: s,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
onError: m,
|
|
132
|
+
uiFramework: c,
|
|
133
|
+
analytics: l,
|
|
134
|
+
disclosuresAcceptance: u,
|
|
135
|
+
providerLabels: d,
|
|
136
|
+
errorFallback: f,
|
|
137
|
+
onError: p,
|
|
139
138
|
children: /* @__PURE__ */ S(T, {
|
|
140
|
-
handleRef:
|
|
141
|
-
...
|
|
139
|
+
handleRef: m,
|
|
140
|
+
...h
|
|
142
141
|
})
|
|
143
142
|
});
|
|
144
143
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js
CHANGED
|
@@ -93,7 +93,7 @@ function v({ labels: i, featureLabels: c, contactUrl: v }) {
|
|
|
93
93
|
isError: P
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o,
|
|
96
|
+
function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, uiFramework: s, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...h }) {
|
|
97
97
|
return /* @__PURE__ */ m(i, {
|
|
98
98
|
widgetName: c,
|
|
99
99
|
baseUrl: e,
|
|
@@ -102,14 +102,13 @@ function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
102
102
|
configClient: r,
|
|
103
103
|
gatewayRouting: a,
|
|
104
104
|
linkComponent: o,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
children: /* @__PURE__ */ m(v, { ...g })
|
|
105
|
+
uiFramework: s,
|
|
106
|
+
errorFallback: l,
|
|
107
|
+
onError: u,
|
|
108
|
+
analytics: d,
|
|
109
|
+
disclosuresAcceptance: f,
|
|
110
|
+
providerLabels: p,
|
|
111
|
+
children: /* @__PURE__ */ m(v, { ...h })
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
114
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js
CHANGED
|
@@ -356,7 +356,7 @@ function h({ labels: i, featureLabels: o, acceptInviteRedirectUri: h }) {
|
|
|
356
356
|
})
|
|
357
357
|
] });
|
|
358
358
|
}
|
|
359
|
-
function g({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: t, gatewayRouting: n, linkComponent: r,
|
|
359
|
+
function g({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: t, gatewayRouting: n, linkComponent: r, uiFramework: ne, errorFallback: re, onError: ie, analytics: ae, disclosuresAcceptance: oe, providerLabels: se, ...a }) {
|
|
360
360
|
return /* @__PURE__ */ f(i, {
|
|
361
361
|
widgetName: o,
|
|
362
362
|
baseUrl: e,
|
|
@@ -365,14 +365,13 @@ function g({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: t, g
|
|
|
365
365
|
configClient: t,
|
|
366
366
|
gatewayRouting: n,
|
|
367
367
|
linkComponent: r,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
children: /* @__PURE__ */ f(h, { ...ce })
|
|
368
|
+
uiFramework: ne,
|
|
369
|
+
errorFallback: re,
|
|
370
|
+
onError: ie,
|
|
371
|
+
analytics: ae,
|
|
372
|
+
disclosuresAcceptance: oe,
|
|
373
|
+
providerLabels: se,
|
|
374
|
+
children: /* @__PURE__ */ f(h, { ...a })
|
|
376
375
|
});
|
|
377
376
|
}
|
|
378
377
|
//#endregion
|
|
@@ -40,7 +40,7 @@ function p({ labels: n }) {
|
|
|
40
40
|
testIds: c
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function m({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s,
|
|
43
|
+
function m({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
44
44
|
return /* @__PURE__ */ f(n, {
|
|
45
45
|
widgetName: o,
|
|
46
46
|
baseUrl: e,
|
|
@@ -49,14 +49,13 @@ function m({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
49
49
|
configClient: i,
|
|
50
50
|
gatewayRouting: a,
|
|
51
51
|
linkComponent: s,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
children: /* @__PURE__ */ f(p, { ..._ })
|
|
52
|
+
uiFramework: c,
|
|
53
|
+
errorFallback: l,
|
|
54
|
+
onError: u,
|
|
55
|
+
analytics: d,
|
|
56
|
+
disclosuresAcceptance: m,
|
|
57
|
+
providerLabels: h,
|
|
58
|
+
children: /* @__PURE__ */ f(p, { ...g })
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
61
|
//#endregion
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { cloneEmbeddedClient as e } from "../../data-access/dist/lib/createEmbeddedClient.js";
|
|
2
2
|
import "../../data-access/dist/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { getGlobalWidgetInitState as a, subscribeToGlobalWidgetInitState as o } from "./lib/WidgetProvider/widgetInitChannel.js";
|
|
3
|
+
import { getGlobalWidgetConfig as t, setGlobalWidgetConfig as n, updateGlobalWidgetConfig as r } from "./lib/WidgetProvider/globalStore.js";
|
|
4
|
+
import { getGlobalWidgetInitState as i, subscribeToGlobalWidgetInitState as a } from "./lib/WidgetProvider/widgetInitChannel.js";
|
|
6
5
|
import "./lib/analytics/events.js";
|
|
7
6
|
import "./lib/analytics/runtime.js";
|
|
8
|
-
import { RootWidgetProvider as
|
|
9
|
-
import { useAnalyticsCaptureException as
|
|
10
|
-
import { WidgetProvider as
|
|
11
|
-
import { WidgetTokenRefreshProvider as
|
|
12
|
-
import { useOptionalWidgetToken as
|
|
13
|
-
import { RefreshingRootWidgetProvider as
|
|
14
|
-
import { useDisclosuresAcceptanceSurface as
|
|
7
|
+
import { RootWidgetProvider as o } from "./lib/WidgetProvider/RootWidgetProvider.js";
|
|
8
|
+
import { useAnalyticsCaptureException as s, useAnalyticsTrack as c } from "./lib/analytics/hooks.js";
|
|
9
|
+
import { WidgetProvider as l } from "./lib/WidgetProvider/WidgetProvider.js";
|
|
10
|
+
import { WidgetTokenRefreshProvider as u } from "./lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
11
|
+
import { useOptionalWidgetToken as d, useWidgetToken as f } from "./lib/WidgetProvider/useWidgetToken.js";
|
|
12
|
+
import { RefreshingRootWidgetProvider as p } from "./lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
13
|
+
import { useDisclosuresAcceptanceSurface as m, useOwnWidgetConfig as h, useRefetchWidget as g, useWidgetConfig as _, useWidgetError as v, useWidgetInitStaleForToken as y, useWidgetLoading as b } from "./lib/WidgetProvider/hooks.js";
|
|
15
14
|
import "./lib/WidgetProvider/index.js";
|
|
16
|
-
import { getNaicsOptions as
|
|
17
|
-
import { useOrganizationUserNames as
|
|
18
|
-
import { useLocalCalendarDay as
|
|
19
|
-
import { CardProgram as
|
|
20
|
-
import { CARD_STATUS_LABELS_EN as
|
|
21
|
-
import { deniedNoticeExpiresAt as
|
|
15
|
+
import { getNaicsOptions as x } from "./lib/naicsCodeMap.js";
|
|
16
|
+
import { useOrganizationUserNames as S } from "./lib/user/useOrganizationUserNames.js";
|
|
17
|
+
import { useLocalCalendarDay as C } from "./lib/calendar/useLocalCalendarDay.js";
|
|
18
|
+
import { CardProgram as w } from "./lib/card/cardProgram.js";
|
|
19
|
+
import { CARD_STATUS_LABELS_EN as T, CARD_STATUS_TONE as E, CARD_TYPE_LABELS_EN as D } from "./lib/card/cardPresentation.js";
|
|
20
|
+
import { deniedNoticeExpiresAt as O, selectBankAccountApplication as k } from "./lib/application/bankAccountApplication.js";
|
|
22
21
|
import "./lib/analytics/index.js";
|
|
23
|
-
export {
|
|
22
|
+
export { T as CARD_STATUS_LABELS_EN, E as CARD_STATUS_TONE, D as CARD_TYPE_LABELS_EN, w as CardProgram, p as RefreshingRootWidgetProvider, o as RootWidgetProvider, l as WidgetProvider, u as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, O as deniedNoticeExpiresAt, t as getGlobalWidgetConfig, i as getGlobalWidgetInitState, x as getNaicsOptions, k as selectBankAccountApplication, n as setGlobalWidgetConfig, a as subscribeToGlobalWidgetInitState, r as updateGlobalWidgetConfig, s as useAnalyticsCaptureException, c as useAnalyticsTrack, m as useDisclosuresAcceptanceSurface, C as useLocalCalendarDay, d as useOptionalWidgetToken, S as useOrganizationUserNames, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetInitStaleForToken, b as useWidgetLoading, f as useWidgetToken };
|
|
@@ -19,30 +19,30 @@ import { resolveOrgId as o, useAuthEpoch as s } from "./utils.js";
|
|
|
19
19
|
import { useWidgetFetch as se } from "./useWidgetFetch.js";
|
|
20
20
|
import { deriveOrganizationStatus as ce } from "./deriveOrganizationStatus.js";
|
|
21
21
|
import { deriveWidgetInitState as le, useWidgetInitPublisher as ue } from "./useWidgetInitPublisher.js";
|
|
22
|
-
import { useEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as
|
|
23
|
-
import { jsx as
|
|
24
|
-
import { QueryClient as
|
|
22
|
+
import { useEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
|
|
23
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
24
|
+
import { QueryClient as m, QueryClientProvider as de } from "@tanstack/react-query";
|
|
25
25
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js
|
|
26
|
-
function
|
|
27
|
-
let D =
|
|
28
|
-
enabled:
|
|
26
|
+
function h({ children: h, baseUrl: g, widgetToken: _, organizationId: v, configClient: y, gatewayRouting: b, linkComponent: x, uiFramework: S, analytics: C, unstable_initResponseOverride: w, disclosuresAcceptance: T, providerLabels: E }) {
|
|
27
|
+
let D = f(ie, i, i), O = g ?? D.baseUrl, k = _ === void 0 ? D.widgetToken : _, A = v === void 0 ? D.organizationId : v, j = y ?? D.configClient, M = b ?? D.gatewayRouting, N = x ?? D.linkComponent, P = S ?? D.uiFramework, F = C !== !1, [I] = d(oe), L = u({
|
|
28
|
+
enabled: F,
|
|
29
29
|
organizationId: A,
|
|
30
|
-
rootCorrelationId:
|
|
31
|
-
}), [
|
|
30
|
+
rootCorrelationId: I
|
|
31
|
+
}), [R] = d(() => new m({ defaultOptions: {
|
|
32
32
|
queries: {
|
|
33
33
|
retry: !1,
|
|
34
34
|
refetchOnWindowFocus: !1
|
|
35
35
|
},
|
|
36
36
|
mutations: { retry: !1 }
|
|
37
37
|
} }));
|
|
38
|
-
c(() => (t(
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
let
|
|
38
|
+
c(() => (t(R), () => ee(R)), [R]);
|
|
39
|
+
let z = u(k);
|
|
40
|
+
z.current = k;
|
|
41
|
+
let B = u(null), V = l(() => e(B), []), fe = s(k), H = l(() => {
|
|
42
42
|
let e = ae(te(O), {
|
|
43
|
-
tokenRef:
|
|
44
|
-
analyticsContextRef:
|
|
45
|
-
clientSecretRef:
|
|
43
|
+
tokenRef: z,
|
|
44
|
+
analyticsContextRef: L,
|
|
45
|
+
clientSecretRef: B,
|
|
46
46
|
gatewayRouting: M
|
|
47
47
|
});
|
|
48
48
|
return j ? j(e) : e;
|
|
@@ -52,19 +52,19 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
|
|
|
52
52
|
M
|
|
53
53
|
]);
|
|
54
54
|
c(() => {
|
|
55
|
-
if (!
|
|
55
|
+
if (!F || !("window" in globalThis)) return;
|
|
56
56
|
let e = !1;
|
|
57
57
|
return import("../analytics/install.js").then(({ ensureAnalyticsAdapterInstalled: t }) => {
|
|
58
58
|
e || t();
|
|
59
59
|
}), () => {
|
|
60
60
|
e = !0;
|
|
61
61
|
};
|
|
62
|
-
}, [
|
|
62
|
+
}, [F]);
|
|
63
63
|
let U = re(r(P));
|
|
64
64
|
c(() => {
|
|
65
65
|
U && U().catch(() => {});
|
|
66
66
|
}, [U]);
|
|
67
|
-
let { result:
|
|
67
|
+
let { result: pe, loading: W, error: G, initStaleForToken: me, initReplacementPending: K, refetch: q } = se(w ? null : H, k, L), J = k ? w ?? pe ?? void 0 : void 0, Y = !w && me, X = o(A, Y ? void 0 : J?.organizationId), he = ce({
|
|
68
68
|
organizationId: X,
|
|
69
69
|
cascadeOrgId: A,
|
|
70
70
|
ownsFetch: !0,
|
|
@@ -73,8 +73,8 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
|
|
|
73
73
|
loading: W,
|
|
74
74
|
error: G,
|
|
75
75
|
hasResult: !!J,
|
|
76
|
-
initReplacementPending:
|
|
77
|
-
}),
|
|
76
|
+
initReplacementPending: K
|
|
77
|
+
}), ge = l(() => le({
|
|
78
78
|
hasToken: !!k,
|
|
79
79
|
loading: W,
|
|
80
80
|
error: G,
|
|
@@ -87,28 +87,26 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
|
|
|
87
87
|
J,
|
|
88
88
|
Y
|
|
89
89
|
]);
|
|
90
|
-
ue(
|
|
90
|
+
ue(ge, k);
|
|
91
91
|
let Z = l(() => ({
|
|
92
|
-
enabled:
|
|
92
|
+
enabled: F,
|
|
93
93
|
organizationId: X,
|
|
94
|
-
rootCorrelationId:
|
|
94
|
+
rootCorrelationId: I
|
|
95
95
|
}), [
|
|
96
|
-
|
|
96
|
+
F,
|
|
97
97
|
X,
|
|
98
|
-
|
|
98
|
+
I
|
|
99
99
|
]);
|
|
100
|
-
|
|
100
|
+
L.current = Z;
|
|
101
101
|
let Q = l(() => ({
|
|
102
|
-
baseUrl:
|
|
103
|
-
widgetToken:
|
|
104
|
-
organizationId:
|
|
105
|
-
configClient:
|
|
106
|
-
gatewayRouting:
|
|
107
|
-
linkComponent:
|
|
108
|
-
uiFramework:
|
|
109
|
-
implementation: S
|
|
102
|
+
baseUrl: g,
|
|
103
|
+
widgetToken: _,
|
|
104
|
+
organizationId: v,
|
|
105
|
+
configClient: y,
|
|
106
|
+
gatewayRouting: b,
|
|
107
|
+
linkComponent: x,
|
|
108
|
+
uiFramework: S
|
|
110
109
|
}), [
|
|
111
|
-
h,
|
|
112
110
|
g,
|
|
113
111
|
_,
|
|
114
112
|
v,
|
|
@@ -124,7 +122,6 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
|
|
|
124
122
|
gatewayRouting: M,
|
|
125
123
|
linkComponent: N,
|
|
126
124
|
uiFramework: P,
|
|
127
|
-
implementation: F,
|
|
128
125
|
initResponse: J
|
|
129
126
|
}), [
|
|
130
127
|
O,
|
|
@@ -134,9 +131,8 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
|
|
|
134
131
|
M,
|
|
135
132
|
N,
|
|
136
133
|
P,
|
|
137
|
-
F,
|
|
138
134
|
J
|
|
139
|
-
]),
|
|
135
|
+
]), _e = l(() => ({
|
|
140
136
|
resolved: $,
|
|
141
137
|
own: Q,
|
|
142
138
|
refetch: q,
|
|
@@ -159,25 +155,25 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
|
|
|
159
155
|
T,
|
|
160
156
|
E
|
|
161
157
|
]);
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
client:
|
|
164
|
-
children: /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ p(de, {
|
|
159
|
+
client: R,
|
|
160
|
+
children: /* @__PURE__ */ p(n, {
|
|
165
161
|
client: H,
|
|
166
162
|
organizationId: X,
|
|
167
163
|
widgetToken: k,
|
|
168
|
-
installClientSecret:
|
|
169
|
-
authEpoch:
|
|
170
|
-
organizationStatus:
|
|
171
|
-
children: /* @__PURE__ */
|
|
172
|
-
value:
|
|
173
|
-
children: /* @__PURE__ */
|
|
164
|
+
installClientSecret: V,
|
|
165
|
+
authEpoch: fe,
|
|
166
|
+
organizationStatus: he,
|
|
167
|
+
children: /* @__PURE__ */ p(a.Provider, {
|
|
168
|
+
value: _e,
|
|
169
|
+
children: /* @__PURE__ */ p(ne, {
|
|
174
170
|
linkComponent: N,
|
|
175
171
|
uiFramework: P,
|
|
176
|
-
children:
|
|
172
|
+
children: h
|
|
177
173
|
})
|
|
178
174
|
})
|
|
179
175
|
})
|
|
180
176
|
});
|
|
181
177
|
}
|
|
182
178
|
//#endregion
|
|
183
|
-
export {
|
|
179
|
+
export { h as RootWidgetProvider };
|