@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
package/README.md
CHANGED
|
@@ -199,7 +199,6 @@ App-level provider. Resolves `baseUrl` / `widgetToken` / `organizationId` (falli
|
|
|
199
199
|
| `gatewayRouting` | `boolean` | Forces widget-gateway routing on (`true`) or off (`false`); unset, it applies automatically to known Tesouro API hosts. Falls back to `global.gatewayRouting`. |
|
|
200
200
|
| `linkComponent` | `LinkComponent` | Host link component widgets use for navigational links. Falls back to `global.linkComponent`. |
|
|
201
201
|
| `uiFramework` | `'shadcn' \| 'tecton' \| null` | UI framework for this tree; falls back to `global.uiFramework`, then `'shadcn'`. |
|
|
202
|
-
| `implementation` | `'native' \| 'monite' \| null` | Reserved for widgets with more than one build; no widget reads it today. Falls back to `global.implementation`, then `'native'`. |
|
|
203
202
|
| `analytics` | `boolean` | Enables anonymous analytics (default `true`); `false` disables capture and skips loading PostHog. |
|
|
204
203
|
| `unstable_initResponseOverride` | `WidgetInitResponse` | First-party hosts only: skips the init fetch and uses this object as `initResponse`. Embed integrations minting widget JWEs must leave this unset. |
|
|
205
204
|
| `disclosuresAcceptance` | `ReactNode` | Accept surface shown when the user owes disclosures; pass `<AcceptDisclosuresWidget />`. Cascades to nested providers. |
|
|
@@ -221,7 +220,6 @@ Mid-tree or standalone provider. With no props it is a transparent pass-through
|
|
|
221
220
|
| `gatewayRouting` | `boolean` | Forces widget-gateway routing on or off for this subtree's client; unset, it applies to known Tesouro API hosts. Inherits when omitted. |
|
|
222
221
|
| `linkComponent` | `LinkComponent` | Overrides the host link component for this subtree. Inherits when omitted. |
|
|
223
222
|
| `uiFramework` | `'shadcn' \| 'tecton' \| null` | Overrides the UI framework for this subtree; omitted or `null` inherits, defaulting to `'shadcn'`. |
|
|
224
|
-
| `implementation` | `'native' \| 'monite' \| null` | Reserved for widgets with more than one build; no widget reads it today. Omitted or `null` inherits, defaulting to `'native'`. |
|
|
225
223
|
| `errorFallback` | `ReactNode \| (props: FallbackProps) => ReactNode` | Custom error-boundary fallback: a node, or a function receiving `{ error, resetErrorBoundary }`. |
|
|
226
224
|
| `onError` | `(error: unknown, info: ErrorInfo) => void` | Telemetry hook, called once per caught error before the fallback renders. |
|
|
227
225
|
| `analytics` | `boolean` | Enables anonymous analytics (default `true`); honored only in standalone mode, ignored on a nested provider. |
|
|
@@ -256,7 +254,6 @@ Bundles `WidgetTokenRefreshProvider` + `RootWidgetProvider` and wires the live t
|
|
|
256
254
|
| `gatewayRouting` | `RootWidgetProvider` | Overrides widget-gateway routing; unset, it applies automatically for known Tesouro API hosts. |
|
|
257
255
|
| `linkComponent` | `RootWidgetProvider` | Component used in place of plain `<a>` tags inside widgets. |
|
|
258
256
|
| `uiFramework` | `RootWidgetProvider` | `'shadcn'` (default) or `'tecton'`; inherits down the provider cascade. |
|
|
259
|
-
| `implementation` | `RootWidgetProvider` | Reserved for widgets with more than one build; no widget reads it today. Inherits down the cascade. |
|
|
260
257
|
| `analytics` | `RootWidgetProvider` | Enables anonymous analytics (default `true`); set `false` to disable capture. |
|
|
261
258
|
| `unstable_initResponseOverride` | `RootWidgetProvider` | First-party hosts only. Skips the init fetch and supplies host-authored identity for the subtree. |
|
|
262
259
|
| `disclosuresAcceptance` | `RootWidgetProvider` | Accept surface shown when the user owes disclosures. Cascades to nested providers. |
|
|
@@ -323,6 +320,19 @@ Lists the organization's Tesouro bank accounts, lets the user open an account wi
|
|
|
323
320
|
| `defaultSelectedAccountId` | `string \| null` | `undefined` | Initial uncontrolled details account. |
|
|
324
321
|
| `onSelectedAccountIdChange` | `(id: string \| null) => void` | `undefined` | Called when the user opens details or goes back. |
|
|
325
322
|
|
|
323
|
+
### BankingComplianceBannerWidget
|
|
324
|
+
|
|
325
|
+
Shows "Business Banking provided by" the business customer's bank, plus the FDIC official sign when that bank is FDIC insured. Put it where your app presents banking products, usually the page header.
|
|
326
|
+
|
|
327
|
+
#### Props
|
|
328
|
+
|
|
329
|
+
| Prop | Type | Default | Description |
|
|
330
|
+
| ------------- | ---------------------------------------- | -------------- | ------------------------------------------------------------------- |
|
|
331
|
+
| `bankLogoSrc` | `string` | `undefined` | URL of the bank's logo, shown in place of its name. |
|
|
332
|
+
| `bankLogoAlt` | `string` | Bank name | Alt text for the logo. |
|
|
333
|
+
| `labels` | `Partial<BankingComplianceBannerLabels>` | English labels | Override the attribution, fallback name and FDIC copy. |
|
|
334
|
+
| `className` | `string` | `undefined` | Class names added to the banner's root element, for layout spacing. |
|
|
335
|
+
|
|
326
336
|
### BillPayWidget
|
|
327
337
|
|
|
328
338
|
A bill pay widget with Tesouro widget auth and theming: a Bills tab for uploading, reviewing and paying bills, and a Vendors tab for the vendors they are paid to.
|
|
@@ -352,21 +352,6 @@ declare const UIFramework: {
|
|
|
352
352
|
};
|
|
353
353
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
354
354
|
|
|
355
|
-
/**
|
|
356
|
-
* The implementation a widget renders with.
|
|
357
|
-
*
|
|
358
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
359
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
360
|
-
* - `monite` — the Monite SDK implementation.
|
|
361
|
-
*
|
|
362
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
363
|
-
* convention.
|
|
364
|
-
*/
|
|
365
|
-
declare const Implementation: {
|
|
366
|
-
readonly Native: "native";
|
|
367
|
-
readonly Monite: "monite";
|
|
368
|
-
};
|
|
369
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
370
355
|
/**
|
|
371
356
|
* The settable fields of the widget config cascade.
|
|
372
357
|
*
|
|
@@ -525,22 +510,6 @@ interface WidgetConfigInput {
|
|
|
525
510
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
526
511
|
*/
|
|
527
512
|
uiFramework?: UIFramework | null;
|
|
528
|
-
/**
|
|
529
|
-
* Which implementation a widget renders with.
|
|
530
|
-
*
|
|
531
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
532
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
533
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
534
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
535
|
-
* is read via `useImplementation`.
|
|
536
|
-
*
|
|
537
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
538
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
539
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
540
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
541
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
542
|
-
*/
|
|
543
|
-
implementation?: Implementation | null;
|
|
544
513
|
}
|
|
545
514
|
/**
|
|
546
515
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -735,7 +704,7 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
|
|
|
735
704
|
/** Fired once a deposit successfully submits, before the Complete screen shows. */
|
|
736
705
|
onDepositComplete?: () => void;
|
|
737
706
|
}
|
|
738
|
-
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
707
|
+
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
|
|
739
708
|
|
|
740
709
|
export { RemoteCheckCaptureWidget };
|
|
741
710
|
export type { RemoteCheckCaptureWidgetProps };
|
|
@@ -352,21 +352,6 @@ declare const UIFramework: {
|
|
|
352
352
|
};
|
|
353
353
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
354
354
|
|
|
355
|
-
/**
|
|
356
|
-
* The implementation a widget renders with.
|
|
357
|
-
*
|
|
358
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
359
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
360
|
-
* - `monite` — the Monite SDK implementation.
|
|
361
|
-
*
|
|
362
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
363
|
-
* convention.
|
|
364
|
-
*/
|
|
365
|
-
declare const Implementation: {
|
|
366
|
-
readonly Native: "native";
|
|
367
|
-
readonly Monite: "monite";
|
|
368
|
-
};
|
|
369
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
370
355
|
/**
|
|
371
356
|
* The settable fields of the widget config cascade.
|
|
372
357
|
*
|
|
@@ -525,22 +510,6 @@ interface WidgetConfigInput {
|
|
|
525
510
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
526
511
|
*/
|
|
527
512
|
uiFramework?: UIFramework | null;
|
|
528
|
-
/**
|
|
529
|
-
* Which implementation a widget renders with.
|
|
530
|
-
*
|
|
531
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
532
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
533
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
534
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
535
|
-
* is read via `useImplementation`.
|
|
536
|
-
*
|
|
537
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
538
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
539
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
540
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
541
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
542
|
-
*/
|
|
543
|
-
implementation?: Implementation | null;
|
|
544
513
|
}
|
|
545
514
|
/**
|
|
546
515
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -735,7 +704,7 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
|
|
|
735
704
|
/** Fired once a deposit successfully submits, before the Complete screen shows. */
|
|
736
705
|
onDepositComplete?: () => void;
|
|
737
706
|
}
|
|
738
|
-
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
707
|
+
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
|
|
739
708
|
|
|
740
709
|
export { RemoteCheckCaptureWidget };
|
|
741
710
|
export type { RemoteCheckCaptureWidgetProps };
|
package/dist/index.css
CHANGED
|
@@ -1394,6 +1394,9 @@
|
|
|
1394
1394
|
.ttw\:max-w-29 {
|
|
1395
1395
|
max-width: calc(var(--ttw-spacing) * 29);
|
|
1396
1396
|
}
|
|
1397
|
+
.ttw\:max-w-40 {
|
|
1398
|
+
max-width: calc(var(--ttw-spacing) * 40);
|
|
1399
|
+
}
|
|
1397
1400
|
.ttw\:max-w-41 {
|
|
1398
1401
|
max-width: calc(var(--ttw-spacing) * 41);
|
|
1399
1402
|
}
|
|
@@ -3393,6 +3396,9 @@
|
|
|
3393
3396
|
.ttw\:align-top {
|
|
3394
3397
|
vertical-align: top;
|
|
3395
3398
|
}
|
|
3399
|
+
.ttw\:\[font-family\:\'Source_Sans_Pro\'\,\'Source_Sans_3\'\,ui-sans-serif\,system-ui\,sans-serif\] {
|
|
3400
|
+
font-family: 'Source Sans Pro','Source Sans 3',ui-sans-serif,system-ui,sans-serif;
|
|
3401
|
+
}
|
|
3396
3402
|
.ttw\:font-\[family-name\:Inter\,\'Helvetica_Neue\'\,Helvetica\,Arial\,sans-serif\] {
|
|
3397
3403
|
font-family: Inter,'Helvetica Neue',Helvetica,Arial,sans-serif;
|
|
3398
3404
|
}
|
|
@@ -3672,6 +3678,9 @@
|
|
|
3672
3678
|
.ttw\:text-\[\#432dd7\] {
|
|
3673
3679
|
color: #432dd7;
|
|
3674
3680
|
}
|
|
3681
|
+
.ttw\:text-\[\#003256\] {
|
|
3682
|
+
color: #003256;
|
|
3683
|
+
}
|
|
3675
3684
|
.ttw\:text-\[\#3538CD\] {
|
|
3676
3685
|
color: #3538CD;
|
|
3677
3686
|
}
|
|
@@ -6172,6 +6181,9 @@
|
|
|
6172
6181
|
.ttw\:dark\:text-muted-foreground:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *) {
|
|
6173
6182
|
color: var(--ttw-muted-foreground);
|
|
6174
6183
|
}
|
|
6184
|
+
.ttw\:dark\:text-white:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *) {
|
|
6185
|
+
color: var(--ttw-color-white);
|
|
6186
|
+
}
|
|
6175
6187
|
.ttw\:dark\:text-yellow-100:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *) {
|
|
6176
6188
|
color: var(--ttw-color-yellow-100);
|
|
6177
6189
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -627,21 +627,6 @@ interface PaginationFooterLabels {
|
|
|
627
627
|
nextPageButton: string;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
/**
|
|
631
|
-
* The implementation a widget renders with.
|
|
632
|
-
*
|
|
633
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
634
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
635
|
-
* - `monite` — the Monite SDK implementation.
|
|
636
|
-
*
|
|
637
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
638
|
-
* convention.
|
|
639
|
-
*/
|
|
640
|
-
declare const Implementation: {
|
|
641
|
-
readonly Native: "native";
|
|
642
|
-
readonly Monite: "monite";
|
|
643
|
-
};
|
|
644
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
645
630
|
/**
|
|
646
631
|
* The settable fields of the widget config cascade.
|
|
647
632
|
*
|
|
@@ -800,22 +785,6 @@ interface WidgetConfigInput {
|
|
|
800
785
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
801
786
|
*/
|
|
802
787
|
uiFramework?: UIFramework | null;
|
|
803
|
-
/**
|
|
804
|
-
* Which implementation a widget renders with.
|
|
805
|
-
*
|
|
806
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
807
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
808
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
809
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
810
|
-
* is read via `useImplementation`.
|
|
811
|
-
*
|
|
812
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
813
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
814
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
815
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
816
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
817
|
-
*/
|
|
818
|
-
implementation?: Implementation | null;
|
|
819
788
|
}
|
|
820
789
|
/**
|
|
821
790
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -1162,7 +1131,7 @@ interface RootWidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
1162
1131
|
* @see {@link useWidgetConfig} to read the resolved config in descendants
|
|
1163
1132
|
* @see {@link setGlobalWidgetConfig} to push config imperatively from outside React
|
|
1164
1133
|
*/
|
|
1165
|
-
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework,
|
|
1134
|
+
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, analytics, unstable_initResponseOverride, disclosuresAcceptance, providerLabels, }: PropsWithChildren<RootWidgetProviderProps>): React.JSX.Element;
|
|
1166
1135
|
|
|
1167
1136
|
/**
|
|
1168
1137
|
* Props for {@link WidgetProvider}.
|
|
@@ -2118,7 +2087,7 @@ type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOn
|
|
|
2118
2087
|
initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
|
|
2119
2088
|
initialAdditionalOwners?: HostSuppliedOwner[];
|
|
2120
2089
|
};
|
|
2121
|
-
declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
2090
|
+
declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: BankAccountOnboardingWidgetProps): React.JSX.Element;
|
|
2122
2091
|
|
|
2123
2092
|
interface BalancesWidgetLabels {
|
|
2124
2093
|
/** Card header title (e.g. next to the building icon) */
|
|
@@ -2304,7 +2273,7 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
|
|
|
2304
2273
|
/** Called when the user opens account details or goes back to the list. */
|
|
2305
2274
|
onSelectedAccountIdChange?: (accountId: string | null) => void;
|
|
2306
2275
|
}
|
|
2307
|
-
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
2276
|
+
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
|
|
2308
2277
|
|
|
2309
2278
|
interface CardsListColumnHeaderLabels {
|
|
2310
2279
|
cardName: string;
|
|
@@ -2676,7 +2645,7 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
2676
2645
|
* Both placements are covered by specs, because they take different code paths
|
|
2677
2646
|
* through the provider and this export exists for the standalone one.
|
|
2678
2647
|
*/
|
|
2679
|
-
declare function CardDetailsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
2648
|
+
declare function CardDetailsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: CardDetailsWidgetProps): React.JSX.Element;
|
|
2680
2649
|
|
|
2681
2650
|
/**
|
|
2682
2651
|
* Reset-period tab labels and notice copy are deliberately absent: the owner
|
|
@@ -3521,7 +3490,7 @@ interface LinkedAccountsWidgetProps extends WidgetProviderProps {
|
|
|
3521
3490
|
labels?: Partial<Labels$1>;
|
|
3522
3491
|
featureLabels?: Partial<FeatureLabels$2>;
|
|
3523
3492
|
}
|
|
3524
|
-
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
3493
|
+
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
|
|
3525
3494
|
|
|
3526
3495
|
interface Labels {
|
|
3527
3496
|
description?: string;
|
|
@@ -4157,7 +4126,7 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
4157
4126
|
* lists, the widget's own opening tab. A host that needs to deep-link into one
|
|
4158
4127
|
* of those mounts that widget itself rather than reaching through the suite.
|
|
4159
4128
|
*/
|
|
4160
|
-
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
4129
|
+
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
4161
4130
|
|
|
4162
4131
|
interface AcceptDisclosuresWidgetLabels {
|
|
4163
4132
|
title: string;
|
|
@@ -4289,7 +4258,7 @@ interface AcceptDisclosuresWidgetProps$1 {
|
|
|
4289
4258
|
}
|
|
4290
4259
|
|
|
4291
4260
|
type UiOwnedProps = 'providerAttribution' | 'agreementText' | 'disclosureLinks' | 'isAgreed' | 'onAgreedChange' | 'onAccept' | 'isSubmitting' | 'isAccepted' | 'errorMessage' | 'testIds';
|
|
4292
|
-
type InnerProps$
|
|
4261
|
+
type InnerProps$2 = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
|
|
4293
4262
|
/**
|
|
4294
4263
|
* Called after the atomic accept succeeds and before init refresh is kicked.
|
|
4295
4264
|
* May return a promise — the widget awaits it before locking controls and
|
|
@@ -4298,7 +4267,7 @@ type InnerProps$1 = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
|
|
|
4298
4267
|
*/
|
|
4299
4268
|
onAccepted?: () => void | Promise<void>;
|
|
4300
4269
|
};
|
|
4301
|
-
type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$
|
|
4270
|
+
type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$2;
|
|
4302
4271
|
/**
|
|
4303
4272
|
* Self-contained AcceptDisclosures widget. Fetches the caller's disclosure
|
|
4304
4273
|
* document set (title/url pairs, in presentation order) from
|
|
@@ -4318,7 +4287,50 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$1;
|
|
|
4318
4287
|
*
|
|
4319
4288
|
* See `WidgetSuite`, which mounts it as its acceptance state.
|
|
4320
4289
|
*/
|
|
4321
|
-
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
4290
|
+
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
4291
|
+
|
|
4292
|
+
interface BankingComplianceBannerLabels {
|
|
4293
|
+
/** Precedes the bank's logo or name: "Business Banking provided by Zenith Bank". */
|
|
4294
|
+
providedByPrefix: string;
|
|
4295
|
+
/** Shown in place of the bank's name when the caller has none to give. */
|
|
4296
|
+
providerNameFallback: string;
|
|
4297
|
+
/** Screen-reader text for the provider-name placeholder while it loads. */
|
|
4298
|
+
providerNameLoading: string;
|
|
4299
|
+
/** Accessible name of the FDIC logo. */
|
|
4300
|
+
fdicLogoAlt: string;
|
|
4301
|
+
/**
|
|
4302
|
+
* The FDIC official digital sign statement (12 CFR 328.5). Its wording is
|
|
4303
|
+
* regulated: override it for translation, not to rephrase it.
|
|
4304
|
+
*/
|
|
4305
|
+
fdicStatement: string;
|
|
4306
|
+
}
|
|
4307
|
+
declare const BANKING_COMPLIANCE_BANNER_LABELS_EN: BankingComplianceBannerLabels;
|
|
4308
|
+
|
|
4309
|
+
type InnerProps$1 = {
|
|
4310
|
+
/**
|
|
4311
|
+
* The providing bank's logo, shown in place of its name. Tenant-specific, so
|
|
4312
|
+
* it is the host's to supply (the same `bankLogoSrc` it hands the accounts
|
|
4313
|
+
* and onboarding widgets); without it the bank's name from widget init is
|
|
4314
|
+
* shown as text.
|
|
4315
|
+
*/
|
|
4316
|
+
bankLogoSrc?: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The logo's alt text. Defaults to the bank's name, since the logo stands in
|
|
4319
|
+
* for the name in "provided by …" and a screen reader should read the same.
|
|
4320
|
+
*/
|
|
4321
|
+
bankLogoAlt?: string;
|
|
4322
|
+
labels?: Partial<BankingComplianceBannerLabels>;
|
|
4323
|
+
className?: string;
|
|
4324
|
+
};
|
|
4325
|
+
type BankingComplianceBannerWidgetProps = WidgetProviderProps & InnerProps$1;
|
|
4326
|
+
/**
|
|
4327
|
+
* The "Business Banking provided by …" attribution, plus the FDIC official
|
|
4328
|
+
* sign when `GET /identity/v1/financial_institution` reports the providing
|
|
4329
|
+
* institution as `FDIC_BACKED`. The attribution always renders; the FDIC half
|
|
4330
|
+
* renders only on that explicit status, and never while the request is
|
|
4331
|
+
* loading or has failed.
|
|
4332
|
+
*/
|
|
4333
|
+
declare function BankingComplianceBannerWidget({ bankLogoSrc, bankLogoAlt, labels, className, ...widgetProviderProps }: BankingComplianceBannerWidgetProps): React.JSX.Element;
|
|
4322
4334
|
|
|
4323
4335
|
/** Display statuses; overdue state is represented separately on the due date. */
|
|
4324
4336
|
type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
|
|
@@ -4824,8 +4836,7 @@ type CustomersWidgetProps = WidgetProviderProps & CustomersWidgetOwnProps;
|
|
|
4824
4836
|
* A customer is a counterpart, so the published `CounterpartsWidget` already
|
|
4825
4837
|
* is this surface end to end (list, details, create/edit, delete) via
|
|
4826
4838
|
* `counterpartType`. Reused rather than rebuilt, the same way `BillPayWidget`
|
|
4827
|
-
* reuses it for its Vendors tab.
|
|
4828
|
-
* `implementation` only cascades to descendants and changes nothing here.
|
|
4839
|
+
* reuses it for its Vendors tab.
|
|
4829
4840
|
*/
|
|
4830
4841
|
declare function CustomersWidget({ pageSizeOptions, onViewAllDocuments, onCreateDocument, screenLabels, formLabels, detailsLabels, addressLabels, deleteLabels, messageLabels, ...widgetProviderProps }: CustomersWidgetProps): React.JSX.Element;
|
|
4831
4842
|
|
|
@@ -4956,7 +4967,7 @@ type OfferWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
4956
4967
|
* normal offer. A `DENIED` message hides itself 30 days after the denial, and
|
|
4957
4968
|
* a status this widget does not know hides the card.
|
|
4958
4969
|
*/
|
|
4959
|
-
declare function OfferWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
4970
|
+
declare function OfferWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: OfferWidgetProps): React.JSX.Element;
|
|
4960
4971
|
|
|
4961
4972
|
interface ProductFormSheetLabels {
|
|
4962
4973
|
createTitle: string;
|
|
@@ -5145,7 +5156,7 @@ type ProductsWidgetProps = WidgetProviderProps & ProductsWidgetOwnProps;
|
|
|
5145
5156
|
* <ProductsWidget baseUrl="https://api.tesouro.com" widgetToken="wt_..." organizationId="org_..." />
|
|
5146
5157
|
* ```
|
|
5147
5158
|
*/
|
|
5148
|
-
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
5159
|
+
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ProductsWidgetProps): React.JSX.Element;
|
|
5149
5160
|
|
|
5150
5161
|
declare const InvoicesFilterField: {
|
|
5151
5162
|
readonly DueDate: "dueDate";
|
|
@@ -5899,7 +5910,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
5899
5910
|
|
|
5900
5911
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
5901
5912
|
|
|
5902
|
-
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
5913
|
+
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
5903
5914
|
|
|
5904
5915
|
/**
|
|
5905
5916
|
* Public {@link WidgetProvider} — the integrator-facing provider.
|
|
@@ -6014,5 +6025,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
6014
6025
|
|
|
6015
6026
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6016
6027
|
|
|
6017
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN,
|
|
6018
|
-
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableBankAttribution, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
6028
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
6029
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableBankAttribution, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -5,49 +5,50 @@ import { Scope as i, isScope as a } from "./libs/tesouro-embedded-components-rea
|
|
|
5
5
|
import { UIFramework as o } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/UIContext.js";
|
|
6
6
|
import { registerDesignSystemEnsurer as s, registerUIRenderers as c } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
|
|
7
7
|
import { ERROR_STATE_ID as l } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
|
|
8
|
+
import { getGlobalWidgetConfig as u, setGlobalWidgetConfig as d, updateGlobalWidgetConfig as f } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/globalStore.js";
|
|
9
|
+
import { getGlobalWidgetInitState as p, subscribeToGlobalWidgetInitState as m } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/widgetInitChannel.js";
|
|
10
|
+
import { RootWidgetProvider as h } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js";
|
|
11
|
+
import { WidgetTokenRefreshProvider as g } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
12
|
+
import { useWidgetToken as _ } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetToken.js";
|
|
13
|
+
import { RefreshingRootWidgetProvider as v } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
14
|
+
import { useDisclosuresAcceptanceSurface as y, useOwnWidgetConfig as b, useRefetchWidget as x, useWidgetConfig as S, useWidgetError as C, useWidgetInitStaleForToken as w, useWidgetLoading as T } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
|
+
import { BankAccountsWidget as E } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js";
|
|
16
|
+
import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
|
|
17
|
+
import { CardDetailsWidget as O } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js";
|
|
18
|
+
import { CreditCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CreditCardsWidget.js";
|
|
19
|
+
import { DebitCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/DebitCardsWidget.js";
|
|
20
|
+
import { BALANCES_WIDGET_LABELS_EN as j } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
|
|
21
|
+
import { BalancesWidget as M } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
|
|
22
|
+
import { INSIGHTS_FEATURE_LABELS_EN as N } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/labels.js";
|
|
23
|
+
import { INSIGHTS_WIDGET_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
24
|
+
import { SINGLE_INSIGHT_LABELS_EN as F } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
25
|
+
import { InsightsWidget as I } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
26
|
+
import { ExpenseManagementWidget as L } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js";
|
|
27
|
+
import { ReceivablesWidget as R } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
28
|
+
import { SettingsSection as z } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/sections.js";
|
|
29
|
+
import { HELP_FAQ_EN as B } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
30
|
+
import { SettingsWidget as V } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js";
|
|
31
|
+
import { LinkedAccountsWidget as H } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js";
|
|
32
|
+
import { DEFAULT_FEATURE_LABELS as U } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js";
|
|
33
|
+
import { TRANSFERS_WIDGET_LABELS_EN as W } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
|
|
34
|
+
import { TransfersWidget as G } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
|
|
35
|
+
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as K } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
|
|
36
|
+
import { AcceptDisclosuresWidget as q } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
|
|
37
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as J } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js";
|
|
38
|
+
import { BUSINESS_DETAILS_LABELS_EN as Y } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js";
|
|
39
|
+
import { PERSONAL_DETAILS_LABELS_EN as X } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
|
|
40
|
+
import { RESULT_LABELS_EN as Z } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js";
|
|
41
|
+
import { APPLICATION_STATUS_LABELS_EN as Q } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
|
|
42
|
+
import { BankAccountOnboardingWidget as $ } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
|
|
43
|
+
import { WidgetSuite as ee } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
|
|
44
|
+
import { BANKING_COMPLIANCE_BANNER_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js";
|
|
45
|
+
import { BankingComplianceBannerWidget as ne } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
|
|
46
|
+
import { CounterpartsWidget as re } from "./lib/CounterpartsWidgetPublic.js";
|
|
47
|
+
import { CustomersWidget as ie } from "./libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js";
|
|
48
|
+
import { OFFER_WIDGET_STATUS_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
|
|
49
|
+
import { OFFER_WIDGET_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
|
|
50
|
+
import { OfferBenefitIcon as se } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
|
|
51
|
+
import { OfferWidget as ce } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
|
|
52
|
+
import { ProductsWidget as le } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
|
|
53
|
+
import { WidgetProvider as ue } from "./lib/WidgetProviderPublic.js";
|
|
54
|
+
export { K as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, J as ADDITIONAL_OWNERS_LABELS_EN, Q as APPLICATION_STATUS_LABELS_EN, q as AcceptDisclosuresWidget, j as BALANCES_WIDGET_LABELS_EN, te as BANKING_COMPLIANCE_BANNER_LABELS_EN, Y as BUSINESS_DETAILS_LABELS_EN, M as BalancesWidget, $ as BankAccountOnboardingWidget, E as BankAccountsWidget, ne as BankingComplianceBannerWidget, D as BillPayWidget, O as CardDetailsWidget, re as CounterpartsWidget, k as CreditCardsWidget, ie as CustomersWidget, A as DebitCardsWidget, l as ERROR_STATE_ID, L as ExpenseManagementWidget, B as HELP_FAQ_EN, N as INSIGHTS_FEATURE_LABELS_EN, P as INSIGHTS_WIDGET_LABELS_EN, I as InsightsWidget, H as LinkedAccountsWidget, oe as OFFER_WIDGET_LABELS_EN, ae as OFFER_WIDGET_STATUS_LABELS_EN, se as OfferBenefitIcon, ce as OfferWidget, X as PERSONAL_DETAILS_LABELS_EN, le as ProductsWidget, Z as RESULT_LABELS_EN, R as ReceivablesWidget, v as RefreshingRootWidgetProvider, h as RootWidgetProvider, F as SINGLE_INSIGHT_LABELS_EN, i as Scope, z as SettingsSection, V as SettingsWidget, U as TRANSFERS_FEATURE_LABELS_EN, W as TRANSFERS_WIDGET_LABELS_EN, G as TransfersWidget, o as UIFramework, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ue as WidgetProvider, ee as WidgetSuite, n as WidgetSuiteSectionId, g as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, u as getGlobalWidgetConfig, p as getGlobalWidgetInitState, a as isScope, s as registerDesignSystemEnsurer, c as registerUIRenderers, d as setGlobalWidgetConfig, m as subscribeToGlobalWidgetInitState, f as updateGlobalWidgetConfig, y as useDisclosuresAcceptanceSurface, b as useOwnWidgetConfig, x as useRefetchWidget, S as useWidgetConfig, C as useWidgetError, w as useWidgetInitStaleForToken, T as useWidgetLoading, _ as useWidgetToken };
|
|
@@ -482,21 +482,6 @@ declare const UIFramework: {
|
|
|
482
482
|
};
|
|
483
483
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
484
484
|
|
|
485
|
-
/**
|
|
486
|
-
* The implementation a widget renders with.
|
|
487
|
-
*
|
|
488
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
489
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
490
|
-
* - `monite` — the Monite SDK implementation.
|
|
491
|
-
*
|
|
492
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
493
|
-
* convention.
|
|
494
|
-
*/
|
|
495
|
-
declare const Implementation: {
|
|
496
|
-
readonly Native: "native";
|
|
497
|
-
readonly Monite: "monite";
|
|
498
|
-
};
|
|
499
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
500
485
|
/**
|
|
501
486
|
* The settable fields of the widget config cascade.
|
|
502
487
|
*
|
|
@@ -655,22 +640,6 @@ interface WidgetConfigInput {
|
|
|
655
640
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
656
641
|
*/
|
|
657
642
|
uiFramework?: UIFramework | null;
|
|
658
|
-
/**
|
|
659
|
-
* Which implementation a widget renders with.
|
|
660
|
-
*
|
|
661
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
662
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
663
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
664
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
665
|
-
* is read via `useImplementation`.
|
|
666
|
-
*
|
|
667
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
668
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
669
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
670
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
671
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
672
|
-
*/
|
|
673
|
-
implementation?: Implementation | null;
|
|
674
643
|
}
|
|
675
644
|
/**
|
|
676
645
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -787,7 +756,7 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
787
756
|
*
|
|
788
757
|
* See `WidgetSuite`, which mounts it as its acceptance state.
|
|
789
758
|
*/
|
|
790
|
-
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
759
|
+
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
791
760
|
|
|
792
761
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, AcceptDisclosuresWidget };
|
|
793
762
|
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps };
|