@tesouro/embedded-components-react 0.2.280 → 0.2.281
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 +17 -14
- package/dist/experimental/WidgetSuite.d.ts +9 -1
- package/dist/experimental/index.d.ts +9 -1
- package/dist/index.css +3 -0
- package/dist/index.d.ts +46 -23
- package/dist/index.js +54 -53
- package/dist/lib/AcceptDisclosuresWidget.d.ts +9 -1
- package/dist/lib/BalancesWidget.d.ts +8 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -1
- package/dist/lib/BankAccountsWidget.d.ts +9 -1
- package/dist/lib/BillPayWidget.d.ts +8 -0
- package/dist/lib/CardDetailsWidget.d.ts +9 -1
- package/dist/lib/CardsWidget.d.ts +9 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +9 -1
- package/dist/lib/CounterpartsWidget.d.ts +9 -1
- package/dist/lib/CreateCardWidget.d.ts +9 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +9 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +9 -1
- package/dist/lib/ExpenseRequirementsWidget.d.ts +9 -1
- package/dist/lib/HelpWidget.d.ts +9 -1
- package/dist/lib/InsightsWidget.d.ts +8 -0
- package/dist/lib/InvoicingWidget.d.ts +9 -1
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -1
- package/dist/lib/ProductsWidget.d.ts +9 -1
- package/dist/lib/ProfileWidget.d.ts +9 -1
- package/dist/lib/ReceiptMatchWidget.d.ts +9 -1
- package/dist/lib/ReceivablesWidget.d.ts +9 -1
- package/dist/lib/SettingsWidget.d.ts +9 -1
- package/dist/lib/TagsWidget.d.ts +9 -1
- package/dist/lib/TeamWidget.d.ts +9 -1
- package/dist/lib/TransfersWidget.d.ts +8 -0
- package/dist/lib/WidgetProvider.d.ts +25 -2
- package/dist/lib/WidgetProvider.js +8 -7
- package/dist/lib/WidgetProviderPublic.d.ts +8 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +54 -53
- 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/index15.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +3 -2
- 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/index8.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 +30 -29
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +7 -6
- 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/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +69 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +158 -132
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +6 -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/ui/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js +19 -18
- 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/index6.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -119,6 +119,7 @@ App-level provider. Resolves `baseUrl` / `widgetToken` / `organizationId` (falli
|
|
|
119
119
|
| `implementation` | `'native' \| 'monite' \| null` | Which implementation the widgets render with for this tree. Falls back to `global.implementation`, then to `'native'`. See Implementation selection. |
|
|
120
120
|
| `analytics` | `boolean` | Enables anonymous analytics for this provider tree (default `true`). `RootWidgetProvider` is the analytics owner; set `false` to disable capture and skip loading PostHog. |
|
|
121
121
|
| `unstable_initResponseOverride` | `WidgetInitResponse` | First-party hosts only. Skips the `GET /api/widget-gateway/init` fetch and exposes this host-authored object as `initResponse` to the subtree. Use when the host authenticates users directly against the Tesouro issuer and passes the user's bearer access token as `widgetToken`. Embed integrations minting widget JWEs must leave this unset. |
|
|
122
|
+
| `disclosuresAcceptance` | `ReactNode` | Accept surface shown when an ACTIVE user owes a new disclosure version. Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` with no invite credentials. Cascades to nested providers. Omit for INVITED — that path still uses invite-link `invitationToken` / `userId` on the host landing page. |
|
|
122
123
|
| `children` | `ReactNode` | The React subtree that consumes the widget context. |
|
|
123
124
|
|
|
124
125
|
### `WidgetProvider`
|
|
@@ -127,20 +128,21 @@ Mid-tree or standalone provider. With no props it is a transparent pass-through
|
|
|
127
128
|
|
|
128
129
|
#### Props
|
|
129
130
|
|
|
130
|
-
| Prop
|
|
131
|
-
|
|
|
132
|
-
| `baseUrl`
|
|
133
|
-
| `widgetToken`
|
|
134
|
-
| `organizationId`
|
|
135
|
-
| `configClient`
|
|
136
|
-
| `gatewayRouting`
|
|
137
|
-
| `linkComponent`
|
|
138
|
-
| `uiFramework`
|
|
139
|
-
| `implementation`
|
|
140
|
-
| `errorFallback`
|
|
141
|
-
| `onError`
|
|
142
|
-
| `analytics`
|
|
143
|
-
| `
|
|
131
|
+
| Prop | Type | Description |
|
|
132
|
+
| ----------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
133
|
+
| `baseUrl` | `string` | Override the base URL for this subtree. Recreates the HTTP client. When omitted, inherits from the nearest ancestor. |
|
|
134
|
+
| `widgetToken` | `string \| null` | Override the widget token for this subtree. Triggers a new `/api/widget-gateway/init` fetch. Pass `null` to suppress auth at this level. When omitted, inherits from parent. |
|
|
135
|
+
| `organizationId` | `string \| null` | Override the org ID for this subtree. Does **not** trigger a re-fetch on its own. When omitted, inherits from parent; if unset through the whole cascade, defaults to this level's `initResponse.organizationId` (an ancestor's explicit org wins over it). Pass `null` to explicitly clear org scoping (never falls back). |
|
|
136
|
+
| `configClient` | `(client: EmbeddedClient) => EmbeddedClient` | Optional post-creation hook for the scoped HTTP client. Only called when this provider creates its own client (i.e. not in pass-through mode). When omitted, inherits from parent. |
|
|
137
|
+
| `gatewayRouting` | `boolean` | Overrides widget-gateway routing (the `/api/widget-gateway/proxy` path prefix plus the `X-Widget-Token` header) for this subtree's scoped client. Unset, routing applies per request when the request origin is a known Tesouro API host; `true` forces it on, `false` forces it off. When omitted, inherits from parent. |
|
|
138
|
+
| `linkComponent` | `LinkComponent` | Override the host link component for this subtree. When omitted, inherits from parent. |
|
|
139
|
+
| `uiFramework` | `'shadcn' \| 'tecton' \| null` | Override the UI framework for this subtree. When omitted (or `null`), inherits the nearest ancestor's selection, defaulting to `'shadcn'`. See UI framework selection. |
|
|
140
|
+
| `implementation` | `'native' \| 'monite' \| null` | Override the implementation for this subtree. When omitted (or `null`), inherits the nearest ancestor's selection, defaulting to `'native'`. See Implementation selection. |
|
|
141
|
+
| `errorFallback` | `ReactNode \| (props: FallbackProps) => ReactNode` | Custom fallback for the built-in error boundary in this subtree. A `ReactNode` is rendered as-is; a function receives `{ error, resetErrorBoundary }`. Defaults to a generic `role="alert"` message. |
|
|
142
|
+
| `onError` | `(error: unknown, info: ErrorInfo) => void` | Optional telemetry hook. Runs once per caught error before the fallback renders. |
|
|
143
|
+
| `analytics` | `boolean` | Enables anonymous analytics (default `true`). Honored only when this is a standalone analytics owner (no `RootWidgetProvider` ancestor); on a nested provider it is a no-op. |
|
|
144
|
+
| `disclosuresAcceptance` | `ReactNode` | Accept surface shown when an ACTIVE user owes a new disclosure version. Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` with no invite credentials. When omitted, inherits from the nearest ancestor. |
|
|
145
|
+
| `children` | `ReactNode` | The React subtree that consumes the overridden context. |
|
|
144
146
|
|
|
145
147
|
### `WidgetTokenRefreshProvider`
|
|
146
148
|
|
|
@@ -172,6 +174,7 @@ Bundles `WidgetTokenRefreshProvider` + `RootWidgetProvider` and wires the live t
|
|
|
172
174
|
| `implementation` | `RootWidgetProvider` | `'native'` (default) or `'monite'`; inherits down the provider cascade. |
|
|
173
175
|
| `analytics` | `RootWidgetProvider` | Enables anonymous analytics (default `true`); set `false` to disable capture. |
|
|
174
176
|
| `unstable_initResponseOverride` | `RootWidgetProvider` | First-party hosts only. Skips the gateway init fetch and supplies host-authored identity for the subtree. |
|
|
177
|
+
| `disclosuresAcceptance` | `RootWidgetProvider` | Accept surface for an ACTIVE user who owes a new disclosure version. Cascades to nested providers. |
|
|
175
178
|
| `fetcher` | `WidgetTokenRefreshProvider` | Required. |
|
|
176
179
|
| `leadSeconds` | `WidgetTokenRefreshProvider` | Default `60`. |
|
|
177
180
|
| `onToken` | `WidgetTokenRefreshProvider` | Fires once per distinct token; useful for telemetry, persistence, or — for non-React hosts — mirroring the token via `updateGlobalWidgetConfig`. |
|
|
@@ -617,6 +617,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
617
617
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
618
618
|
*/
|
|
619
619
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
620
|
+
/**
|
|
621
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
622
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
623
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
624
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
625
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
626
|
+
*/
|
|
627
|
+
disclosuresAcceptance?: ReactNode;
|
|
620
628
|
}
|
|
621
629
|
|
|
622
630
|
/**
|
|
@@ -801,7 +809,7 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
801
809
|
* deep-linking, and is deliberately not invented on an experimental export
|
|
802
810
|
* before a host asks for it.
|
|
803
811
|
*/
|
|
804
|
-
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
812
|
+
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
805
813
|
|
|
806
814
|
export { WIDGET_SUITE_CONTENT_LABELS_EN, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_DISCLOSURE_LABELS_EN, WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SECTION_TITLE_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
|
|
807
815
|
export type { PartialDeep, WidgetSuiteContentLabels, WidgetSuiteDisclosureLabels, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteSectionTitleLabels, WidgetSuiteShellLabels };
|
|
@@ -617,6 +617,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
617
617
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
618
618
|
*/
|
|
619
619
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
620
|
+
/**
|
|
621
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
622
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
623
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
624
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
625
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
626
|
+
*/
|
|
627
|
+
disclosuresAcceptance?: ReactNode;
|
|
620
628
|
}
|
|
621
629
|
|
|
622
630
|
/**
|
|
@@ -801,7 +809,7 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
801
809
|
* deep-linking, and is deliberately not invented on an experimental export
|
|
802
810
|
* before a host asks for it.
|
|
803
811
|
*/
|
|
804
|
-
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
812
|
+
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
805
813
|
|
|
806
814
|
export { WIDGET_SUITE_CONTENT_LABELS_EN, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_DISCLOSURE_LABELS_EN, WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SECTION_TITLE_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
|
|
807
815
|
export type { PartialDeep, WidgetSuiteContentLabels, WidgetSuiteDisclosureLabels, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteSectionTitleLabels, WidgetSuiteShellLabels };
|
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -554,6 +554,8 @@ declare function registerUIRenderers(framework: UIFramework, map: RendererMap):
|
|
|
554
554
|
*/
|
|
555
555
|
declare function registerDesignSystemEnsurer(framework: UIFramework, ensurer: DesignSystemEnsurer): void;
|
|
556
556
|
|
|
557
|
+
declare const ERROR_STATE_ID = "error-state";
|
|
558
|
+
|
|
557
559
|
interface PaginationFooterLabels {
|
|
558
560
|
rowsPerPageLabel: string;
|
|
559
561
|
previousPageButton: string;
|
|
@@ -1009,6 +1011,13 @@ interface RootWidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
1009
1011
|
* gateway init response is the source of truth for their scopes and status.
|
|
1010
1012
|
*/
|
|
1011
1013
|
unstable_initResponseOverride?: WidgetInitResponse;
|
|
1014
|
+
/**
|
|
1015
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
1016
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
1017
|
+
* credentials) so gated widgets have somewhere to accept. Cascades to
|
|
1018
|
+
* nested WidgetProviders.
|
|
1019
|
+
*/
|
|
1020
|
+
disclosuresAcceptance?: ReactNode;
|
|
1012
1021
|
}
|
|
1013
1022
|
/**
|
|
1014
1023
|
* Top-level provider for the widget config cascade.
|
|
@@ -1062,7 +1071,7 @@ interface RootWidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
1062
1071
|
* @see {@link useWidgetConfig} to read the resolved config in descendants
|
|
1063
1072
|
* @see {@link setGlobalWidgetConfig} to push config imperatively from outside React
|
|
1064
1073
|
*/
|
|
1065
|
-
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, implementation, analytics, unstable_initResponseOverride, }: PropsWithChildren<RootWidgetProviderProps>): React.JSX.Element;
|
|
1074
|
+
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, implementation, analytics, unstable_initResponseOverride, disclosuresAcceptance, }: PropsWithChildren<RootWidgetProviderProps>): React.JSX.Element;
|
|
1066
1075
|
|
|
1067
1076
|
/**
|
|
1068
1077
|
* Props for {@link WidgetProvider}.
|
|
@@ -1086,6 +1095,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
1086
1095
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
1087
1096
|
*/
|
|
1088
1097
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
1098
|
+
/**
|
|
1099
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
1100
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
1101
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
1102
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
1103
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
1104
|
+
*/
|
|
1105
|
+
disclosuresAcceptance?: ReactNode;
|
|
1089
1106
|
}
|
|
1090
1107
|
|
|
1091
1108
|
declare const USStateAbbreviation: {
|
|
@@ -1264,6 +1281,12 @@ declare function useWidgetConfig(): WidgetConfig;
|
|
|
1264
1281
|
* @see {@link useWidgetConfig} to read the fully-resolved cascaded config instead
|
|
1265
1282
|
*/
|
|
1266
1283
|
declare function useOwnWidgetConfig(): WidgetConfigInput | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* Host-supplied AcceptDisclosuresWidget (or equivalent) for ACTIVE users who
|
|
1286
|
+
* owe a new disclosure version. `undefined` outside a provider or when the
|
|
1287
|
+
* host has not passed `disclosuresAcceptance`.
|
|
1288
|
+
*/
|
|
1289
|
+
declare function useDisclosuresAcceptanceSurface(): ReactNode | undefined;
|
|
1267
1290
|
/**
|
|
1268
1291
|
* Returns a stable callback that re-triggers the widget-init fetch at the
|
|
1269
1292
|
* **nearest provider level that owns a fetch**.
|
|
@@ -1497,7 +1520,7 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
1497
1520
|
* passes neither, and the same init refresh clears the gate that mounted this.
|
|
1498
1521
|
* See `WidgetSuite`, which mounts it as its acceptance state.
|
|
1499
1522
|
*/
|
|
1500
|
-
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
1523
|
+
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
1501
1524
|
|
|
1502
1525
|
interface Labels$6 {
|
|
1503
1526
|
title: string;
|
|
@@ -1634,7 +1657,7 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
|
|
|
1634
1657
|
/** Called when the user opens account details or goes back to the list. */
|
|
1635
1658
|
onSelectedAccountIdChange?: (accountId: string | null) => void;
|
|
1636
1659
|
}
|
|
1637
|
-
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
|
|
1660
|
+
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
|
|
1638
1661
|
|
|
1639
1662
|
/**
|
|
1640
1663
|
* Action handlers for custom payment flows in payable operations.
|
|
@@ -2044,7 +2067,7 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
2044
2067
|
* Both placements are covered by specs, because they take different code paths
|
|
2045
2068
|
* through the provider and this export exists for the standalone one.
|
|
2046
2069
|
*/
|
|
2047
|
-
declare function CardDetailsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CardDetailsWidgetProps): React.JSX.Element;
|
|
2070
|
+
declare function CardDetailsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CardDetailsWidgetProps): React.JSX.Element;
|
|
2048
2071
|
|
|
2049
2072
|
type PartialDeep$2<T> = {
|
|
2050
2073
|
[K in keyof T]?: T[K] extends object ? PartialDeep$2<T[K]> : T[K];
|
|
@@ -2153,7 +2176,7 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
2153
2176
|
* Self-contained Create Card widget. Issues a debit card via the Embed API and
|
|
2154
2177
|
* drives setup → preparing → success with sonner toasts for the mutation.
|
|
2155
2178
|
*/
|
|
2156
|
-
declare function CreateCardWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CreateCardWidgetProps): React.JSX.Element;
|
|
2179
|
+
declare function CreateCardWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CreateCardWidgetProps): React.JSX.Element;
|
|
2157
2180
|
|
|
2158
2181
|
/** Opaque UI format values — mapped to API `DebitCardType` in the feature. */
|
|
2159
2182
|
declare const CardFormatValue: {
|
|
@@ -2373,7 +2396,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
2373
2396
|
* inside `WidgetProvider`'s subtree, which is what the data-access hooks read
|
|
2374
2397
|
* their client, org and token from.
|
|
2375
2398
|
*/
|
|
2376
|
-
declare function CardsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CardsWidgetProps): React.JSX.Element;
|
|
2399
|
+
declare function CardsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CardsWidgetProps): React.JSX.Element;
|
|
2377
2400
|
|
|
2378
2401
|
interface AddressFieldGroupLabels {
|
|
2379
2402
|
line1: string;
|
|
@@ -2644,7 +2667,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
|
|
|
2644
2667
|
* />
|
|
2645
2668
|
* ```
|
|
2646
2669
|
*/
|
|
2647
|
-
declare function CounterpartsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CounterpartsWidgetProps): React.JSX.Element;
|
|
2670
|
+
declare function CounterpartsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CounterpartsWidgetProps): React.JSX.Element;
|
|
2648
2671
|
|
|
2649
2672
|
interface Labels$4 {
|
|
2650
2673
|
title: string;
|
|
@@ -2688,7 +2711,7 @@ interface ExpenseManagementWidgetProps extends WidgetProviderProps {
|
|
|
2688
2711
|
policiesContent?: ReactNode;
|
|
2689
2712
|
requirementsContent?: ReactNode;
|
|
2690
2713
|
}
|
|
2691
|
-
declare function ExpenseManagementWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ExpenseManagementWidgetProps): React.JSX.Element;
|
|
2714
|
+
declare function ExpenseManagementWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ExpenseManagementWidgetProps): React.JSX.Element;
|
|
2692
2715
|
|
|
2693
2716
|
type ExpenseApprovalPoliciesWidgetProps = WidgetProviderProps & {
|
|
2694
2717
|
/** @deprecated Use `widgetToken` instead */
|
|
@@ -2696,7 +2719,7 @@ type ExpenseApprovalPoliciesWidgetProps = WidgetProviderProps & {
|
|
|
2696
2719
|
/** @deprecated Use `organizationId` instead */
|
|
2697
2720
|
orgId?: string | null;
|
|
2698
2721
|
};
|
|
2699
|
-
declare function ExpenseApprovalPoliciesWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, }?: ExpenseApprovalPoliciesWidgetProps): React.JSX.Element;
|
|
2722
|
+
declare function ExpenseApprovalPoliciesWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, disclosuresAcceptance, }?: ExpenseApprovalPoliciesWidgetProps): React.JSX.Element;
|
|
2700
2723
|
|
|
2701
2724
|
type ExpenseRequirementsWidgetProps = WidgetProviderProps & {
|
|
2702
2725
|
/** @deprecated Use `widgetToken` instead */
|
|
@@ -2704,7 +2727,7 @@ type ExpenseRequirementsWidgetProps = WidgetProviderProps & {
|
|
|
2704
2727
|
/** @deprecated Use `organizationId` instead */
|
|
2705
2728
|
orgId?: string | null;
|
|
2706
2729
|
};
|
|
2707
|
-
declare function ExpenseRequirementsWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, }?: ExpenseRequirementsWidgetProps): React.JSX.Element;
|
|
2730
|
+
declare function ExpenseRequirementsWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, disclosuresAcceptance, }?: ExpenseRequirementsWidgetProps): React.JSX.Element;
|
|
2708
2731
|
|
|
2709
2732
|
interface BalancesWidgetLabels {
|
|
2710
2733
|
/** Card header title (e.g. next to the building icon) */
|
|
@@ -3159,7 +3182,7 @@ type ChartOfAccountsWidgetProps = WidgetProviderProps & TableProps & ChartOfAcco
|
|
|
3159
3182
|
* />
|
|
3160
3183
|
* ```
|
|
3161
3184
|
*/
|
|
3162
|
-
declare function ChartOfAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, analytics, errorFallback, onError, ...tableProps }: ChartOfAccountsWidgetProps): React.JSX.Element;
|
|
3185
|
+
declare function ChartOfAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, analytics, disclosuresAcceptance, errorFallback, onError, ...tableProps }: ChartOfAccountsWidgetProps): React.JSX.Element;
|
|
3163
3186
|
|
|
3164
3187
|
/**
|
|
3165
3188
|
* Static FAQ content for the Help widget.
|
|
@@ -3267,12 +3290,12 @@ type HelpWidgetProps = WidgetProviderProps & HelpContentProps;
|
|
|
3267
3290
|
* <HelpWidget bankName="Acme Bank" contactUrl="https://acme.example/support" />
|
|
3268
3291
|
* ```
|
|
3269
3292
|
*/
|
|
3270
|
-
declare function HelpWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...contentProps }: HelpWidgetProps): React.JSX.Element;
|
|
3293
|
+
declare function HelpWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...contentProps }: HelpWidgetProps): React.JSX.Element;
|
|
3271
3294
|
|
|
3272
3295
|
type ReceivablesWidgetMoniteProps = MoniteRegionProviderProps & Omit<ReceivablesProps, 'pageTitleComponent' | 'initialView' | 'initialCounterpartId'> & {
|
|
3273
3296
|
pageTitleComponent?: ReceivablesProps['pageTitleComponent'];
|
|
3274
3297
|
};
|
|
3275
|
-
declare function ReceivablesWidgetMonite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, errorFallback, onError, finopsThemeColors, analytics, pageTitleComponent, uiFramework, ...receivablesProps }: ReceivablesWidgetMoniteProps): React.JSX.Element;
|
|
3298
|
+
declare function ReceivablesWidgetMonite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, errorFallback, onError, finopsThemeColors, analytics, disclosuresAcceptance, pageTitleComponent, uiFramework, ...receivablesProps }: ReceivablesWidgetMoniteProps): React.JSX.Element;
|
|
3276
3299
|
|
|
3277
3300
|
interface ProductFormSheetLabels {
|
|
3278
3301
|
createTitle: string;
|
|
@@ -3597,7 +3620,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
3597
3620
|
}
|
|
3598
3621
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
3599
3622
|
|
|
3600
|
-
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
3623
|
+
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
3601
3624
|
|
|
3602
3625
|
interface Labels$3 {
|
|
3603
3626
|
title: string;
|
|
@@ -3679,7 +3702,7 @@ interface LinkedAccountsWidgetProps extends WidgetProviderProps {
|
|
|
3679
3702
|
labels?: Partial<Labels$3>;
|
|
3680
3703
|
featureLabels?: Partial<FeatureLabels$4>;
|
|
3681
3704
|
}
|
|
3682
|
-
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
|
|
3705
|
+
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
|
|
3683
3706
|
|
|
3684
3707
|
interface AdditionalOwnersLabels {
|
|
3685
3708
|
heading: string;
|
|
@@ -3983,7 +4006,7 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
3983
4006
|
onOpenChange?: (open: boolean) => void;
|
|
3984
4007
|
}
|
|
3985
4008
|
type BankAccountOnboardingWidgetProps = WidgetProviderProps & BankAccountOnboardingWidgetInnerProps;
|
|
3986
|
-
declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: BankAccountOnboardingWidgetProps): React.JSX.Element;
|
|
4009
|
+
declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: BankAccountOnboardingWidgetProps): React.JSX.Element;
|
|
3987
4010
|
|
|
3988
4011
|
/**
|
|
3989
4012
|
* Co-located user-facing strings for the products widget UI. Each component
|
|
@@ -4081,7 +4104,7 @@ type ProductsWidgetProps = WidgetProviderProps & ProductsWidgetOwnProps;
|
|
|
4081
4104
|
* <ProductsWidget baseUrl="https://api.tesouro.com" widgetToken="wt_..." organizationId="org_..." />
|
|
4082
4105
|
* ```
|
|
4083
4106
|
*/
|
|
4084
|
-
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ProductsWidgetProps): React.JSX.Element;
|
|
4107
|
+
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ProductsWidgetProps): React.JSX.Element;
|
|
4085
4108
|
|
|
4086
4109
|
interface Labels$2 {
|
|
4087
4110
|
loadingLabel: string;
|
|
@@ -4122,7 +4145,7 @@ interface ProfileWidgetProps extends WidgetProviderProps {
|
|
|
4122
4145
|
*/
|
|
4123
4146
|
contactUrl?: string;
|
|
4124
4147
|
}
|
|
4125
|
-
declare function ProfileWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ProfileWidgetProps): React.JSX.Element;
|
|
4148
|
+
declare function ProfileWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ProfileWidgetProps): React.JSX.Element;
|
|
4126
4149
|
|
|
4127
4150
|
type ReceiptMatchWidgetProps = WidgetProviderProps & {
|
|
4128
4151
|
isOpen?: boolean;
|
|
@@ -4131,7 +4154,7 @@ type ReceiptMatchWidgetProps = WidgetProviderProps & {
|
|
|
4131
4154
|
targetTransactionId?: string;
|
|
4132
4155
|
onSingleTransactionUpdate?: () => void;
|
|
4133
4156
|
};
|
|
4134
|
-
declare function ReceiptMatchWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, isOpen, preSelectedReceiptIds, onClose, targetTransactionId, onSingleTransactionUpdate, }: ReceiptMatchWidgetProps): React.JSX.Element;
|
|
4157
|
+
declare function ReceiptMatchWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, disclosuresAcceptance, isOpen, preSelectedReceiptIds, onClose, targetTransactionId, onSingleTransactionUpdate, }: ReceiptMatchWidgetProps): React.JSX.Element;
|
|
4135
4158
|
|
|
4136
4159
|
interface Labels$1 {
|
|
4137
4160
|
title: string;
|
|
@@ -4237,7 +4260,7 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
4237
4260
|
tagsContent?: ReactNode;
|
|
4238
4261
|
invoiceContent?: ReactNode;
|
|
4239
4262
|
}
|
|
4240
|
-
declare function SettingsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, finopsThemeColors, analytics, ...innerProps }: SettingsWidgetProps): React.JSX.Element;
|
|
4263
|
+
declare function SettingsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, finopsThemeColors, analytics, disclosuresAcceptance, ...innerProps }: SettingsWidgetProps): React.JSX.Element;
|
|
4241
4264
|
|
|
4242
4265
|
/**
|
|
4243
4266
|
* Co-located user-facing strings for the tags widget UI. Each component takes a
|
|
@@ -4326,7 +4349,7 @@ type TagsWidgetProps = WidgetProviderProps & TagsWidgetOwnProps;
|
|
|
4326
4349
|
* <TagsWidget baseUrl="https://api.tesouro.com" widgetToken="wt_..." organizationId="org_..." />
|
|
4327
4350
|
* ```
|
|
4328
4351
|
*/
|
|
4329
|
-
declare function TagsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: TagsWidgetProps): React.JSX.Element;
|
|
4352
|
+
declare function TagsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: TagsWidgetProps): React.JSX.Element;
|
|
4330
4353
|
|
|
4331
4354
|
interface Labels {
|
|
4332
4355
|
title: string;
|
|
@@ -4576,7 +4599,7 @@ interface TeamWidgetProps extends WidgetProviderProps {
|
|
|
4576
4599
|
*/
|
|
4577
4600
|
acceptInviteRedirectUri?: string;
|
|
4578
4601
|
}
|
|
4579
|
-
declare function TeamWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: TeamWidgetProps): React.JSX.Element;
|
|
4602
|
+
declare function TeamWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: TeamWidgetProps): React.JSX.Element;
|
|
4580
4603
|
|
|
4581
4604
|
interface TransfersWidgetLabels {
|
|
4582
4605
|
widgetTitle: string;
|
|
@@ -4743,5 +4766,5 @@ interface GapCoverageAlertProps {
|
|
|
4743
4766
|
|
|
4744
4767
|
type PendingFeatureStyleSources = GapCoverageAlertProps | NoPolicyBannerProps;
|
|
4745
4768
|
|
|
4746
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, AccountDeleteDialog, AccountFormSheet, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, CREATE_CARD_FEATURE_LABELS_EN, CardDetailsWidget, CardFormatValue, CardsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreateCardWidget, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, ProfileWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TagsWidget, TeamWidget, TransfersWidget, UIFramework, UploadReceiptWidget, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, resolveCreateCardFeatureLabels, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
|
4769
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, AccountDeleteDialog, AccountFormSheet, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, CREATE_CARD_FEATURE_LABELS_EN, CardDetailsWidget, CardFormatValue, CardsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreateCardWidget, ERROR_STATE_ID, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, ProfileWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TagsWidget, TeamWidget, TransfersWidget, UIFramework, UploadReceiptWidget, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, resolveCreateCardFeatureLabels, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
|
4747
4770
|
export type { AcceptDisclosuresLinks, AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccountDeleteDialogLabels, AccountDeleteDialogProps, Labels$5 as AccountDetailsWidgetLabels, AccountFormErrors, AccountFormMode, AccountFormSheetLabels, AccountFormSheetProps, AccountFormValues, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$5 as BankAccountsWidgetFeatureLabels, Labels$6 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels as CardsWidgetFeatureLabels, CardsListLabels as CardsWidgetLabels, CardsWidgetPagination, CardsWidgetProps, ChartOfAccountsLabels, ChartOfAccountsMessageLabels, ChartOfAccountsTableProps, ChartOfAccountsWidgetLabelProps, ChartOfAccountsWidgetProps, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreateCardFeatureLabels, CreateCardWidgetLabels, CreateCardWidgetProps, DisclosureLinks, EmbeddedClient, ExpenseApprovalPoliciesWidgetProps, Labels$4 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseRequirementsWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, HelpWidgetLabels, HelpWidgetProps, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LedgerAccountRow, LinkComponent, LinkComponentProps, FeatureLabels$4 as LinkedAccountsWidgetFeatureLabels, Labels$3 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetContent, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, FeatureLabels$3 as ProfileWidgetFeatureLabels, Labels$2 as ProfileWidgetLabels, ProfileWidgetProps, ReceiptMatchSummary, ReceiptMatchWidgetProps, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$1 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TagDeleteDialogLabels, TagFormSheetLabels, TagMessageLabels, TagsScreenLabels, TagsWidgetProps, FeatureLabels$1 as TeamWidgetFeatureLabels, Labels as TeamWidgetLabels, TeamWidgetProps, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderProps, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -5,83 +5,84 @@ import { getGlobalWidgetConfig as r, setGlobalWidgetConfig as i, updateGlobalWid
|
|
|
5
5
|
import { getGlobalWidgetInitState as o, subscribeToGlobalWidgetInitState as s } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/widgetInitChannel.js";
|
|
6
6
|
import { UIFramework as c } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/UIContext.js";
|
|
7
7
|
import { registerDesignSystemEnsurer as l, registerUIRenderers as u } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
8
|
+
import { ERROR_STATE_ID as d } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
9
|
+
import { RootWidgetProvider as f } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js";
|
|
10
|
+
import { WidgetTokenRefreshProvider as p } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
11
|
+
import { useWidgetToken as m } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetToken.js";
|
|
12
|
+
import { RefreshingRootWidgetProvider as h } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
13
|
+
import { useDisclosuresAcceptanceSurface as g, useOwnWidgetConfig as _, useRefetchWidget as v, useWidgetConfig as y, useWidgetError as b, useWidgetLoading as x } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
14
|
+
import { AcceptDisclosuresWidget as S } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js";
|
|
14
15
|
import "./lib/AcceptDisclosuresWidget.js";
|
|
15
|
-
import { BankAccountsWidget as
|
|
16
|
+
import { BankAccountsWidget as C } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
16
17
|
import "./lib/BankAccountsWidget.js";
|
|
17
|
-
import { CounterpartsWidget as
|
|
18
|
-
import { BillPayWidget as
|
|
18
|
+
import { CounterpartsWidget as w } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
19
|
+
import { BillPayWidget as T } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js";
|
|
19
20
|
import "./lib/BillPayWidget.js";
|
|
20
|
-
import { CardDetailsWidget as
|
|
21
|
-
import { CardFormatValue as
|
|
22
|
-
import { CREATE_CARD_FEATURE_LABELS_EN as
|
|
23
|
-
import { CreateCardWidget as
|
|
24
|
-
import { CardsWidget as
|
|
21
|
+
import { CardDetailsWidget as E } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
|
|
22
|
+
import { CardFormatValue as D } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js";
|
|
23
|
+
import { CREATE_CARD_FEATURE_LABELS_EN as O, resolveCreateCardFeatureLabels as k } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index4.js";
|
|
24
|
+
import { CreateCardWidget as A } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js";
|
|
25
|
+
import { CardsWidget as j } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js";
|
|
25
26
|
import "./lib/CardsWidget.js";
|
|
26
27
|
import "./lib/CardDetailsWidget.js";
|
|
27
28
|
import "./lib/CreateCardWidget.js";
|
|
28
29
|
import "./lib/CounterpartsWidget.js";
|
|
29
|
-
import { ExpenseApprovalPoliciesWidget as
|
|
30
|
-
import { ExpenseRequirementsWidget as
|
|
31
|
-
import { UploadReceiptWidget as
|
|
32
|
-
import { ExpenseManagementWidget as
|
|
30
|
+
import { ExpenseApprovalPoliciesWidget as M } from "./libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js";
|
|
31
|
+
import { ExpenseRequirementsWidget as N } from "./libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js";
|
|
32
|
+
import { UploadReceiptWidget as P } from "./libs/tesouro-embedded-components-react/expense-upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js";
|
|
33
|
+
import { ExpenseManagementWidget as F } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js";
|
|
33
34
|
import "./lib/ExpenseManagementWidget.js";
|
|
34
35
|
import "./lib/ExpenseApprovalPoliciesWidget.js";
|
|
35
36
|
import "./lib/ExpenseRequirementsWidget.js";
|
|
36
|
-
import { BALANCES_WIDGET_LABELS_EN as
|
|
37
|
-
import { BalancesWidget as
|
|
37
|
+
import { BALANCES_WIDGET_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
|
|
38
|
+
import { BalancesWidget as L } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js";
|
|
38
39
|
import "./lib/BalancesWidget.js";
|
|
39
|
-
import { INSIGHTS_FEATURE_LABELS_EN as
|
|
40
|
-
import { INSIGHTS_WIDGET_LABELS_EN as
|
|
41
|
-
import { SINGLE_INSIGHT_LABELS_EN as
|
|
42
|
-
import { InsightsWidget as
|
|
40
|
+
import { INSIGHTS_FEATURE_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
|
|
41
|
+
import { INSIGHTS_WIDGET_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
42
|
+
import { SINGLE_INSIGHT_LABELS_EN as B } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
43
|
+
import { InsightsWidget as V } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
|
|
43
44
|
import "./lib/InsightsWidget.js";
|
|
44
|
-
import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as
|
|
45
|
-
import { ACCOUNT_DELETE_DIALOG_LABELS_EN as
|
|
46
|
-
import { ChartOfAccountsTable as
|
|
47
|
-
import { AccountFormSheet as
|
|
48
|
-
import { AccountDeleteDialog as
|
|
49
|
-
import { ChartOfAccountsWidget as
|
|
45
|
+
import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as H } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js";
|
|
46
|
+
import { ACCOUNT_DELETE_DIALOG_LABELS_EN as U, ACCOUNT_FORM_SHEET_LABELS_EN as W, CHART_OF_ACCOUNTS_LABELS_EN as G } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js";
|
|
47
|
+
import { ChartOfAccountsTable as K } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js";
|
|
48
|
+
import { AccountFormSheet as q } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index4.js";
|
|
49
|
+
import { AccountDeleteDialog as J } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index5.js";
|
|
50
|
+
import { ChartOfAccountsWidget as Y } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js";
|
|
50
51
|
import "./lib/ChartOfAccountsWidget.js";
|
|
51
|
-
import { HELP_WIDGET_LABELS_EN as
|
|
52
|
-
import { HELP_FAQ_EN as
|
|
53
|
-
import { HelpWidget as
|
|
52
|
+
import { HELP_WIDGET_LABELS_EN as X } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index2.js";
|
|
53
|
+
import { HELP_FAQ_EN as Z } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js";
|
|
54
|
+
import { HelpWidget as Q } from "./libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js";
|
|
54
55
|
import "./lib/HelpWidget.js";
|
|
55
|
-
import { InvoicingWidget as
|
|
56
|
-
import { ReceivablesWidget as
|
|
56
|
+
import { InvoicingWidget as $ } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
|
|
57
|
+
import { ReceivablesWidget as ee } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js";
|
|
57
58
|
import "./lib/InvoicingWidget.js";
|
|
58
|
-
import { LinkedAccountsWidget as
|
|
59
|
+
import { LinkedAccountsWidget as te } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js";
|
|
59
60
|
import "./lib/LinkedAccountsWidget.js";
|
|
60
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as
|
|
61
|
-
import { BUSINESS_DETAILS_LABELS_EN as
|
|
62
|
-
import { PERSONAL_DETAILS_LABELS_EN as
|
|
63
|
-
import { RESULT_LABELS_EN as
|
|
64
|
-
import { BankAccountOnboardingWidget as
|
|
61
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js";
|
|
62
|
+
import { BUSINESS_DETAILS_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js";
|
|
63
|
+
import { PERSONAL_DETAILS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js";
|
|
64
|
+
import { RESULT_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
|
|
65
|
+
import { BankAccountOnboardingWidget as oe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js";
|
|
65
66
|
import "./lib/BankAccountOnboardingWidget.js";
|
|
66
|
-
import { ProductsWidget as
|
|
67
|
+
import { ProductsWidget as se } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
|
|
67
68
|
import "./lib/ProductsWidget.js";
|
|
68
|
-
import { ProfileWidget as
|
|
69
|
+
import { ProfileWidget as ce } from "./libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js";
|
|
69
70
|
import "./lib/ProfileWidget.js";
|
|
70
71
|
import "./lib/ReceivablesWidget.js";
|
|
71
|
-
import { ReceiptMatchWidget as
|
|
72
|
+
import { ReceiptMatchWidget as le } from "./libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js";
|
|
72
73
|
import "./lib/ReceiptMatchWidget.js";
|
|
73
|
-
import { SettingsSection as
|
|
74
|
-
import { TagsWidget as
|
|
75
|
-
import { TeamWidget as
|
|
76
|
-
import { SettingsWidget as
|
|
74
|
+
import { SettingsSection as ue } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
|
|
75
|
+
import { TagsWidget as de } from "./libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js";
|
|
76
|
+
import { TeamWidget as fe } from "./libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js";
|
|
77
|
+
import { SettingsWidget as pe } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
|
|
77
78
|
import "./lib/SettingsWidget.js";
|
|
78
79
|
import "./lib/TagsWidget.js";
|
|
79
80
|
import "./lib/TeamWidget.js";
|
|
80
|
-
import { DEFAULT_FEATURE_LABELS as
|
|
81
|
-
import { TRANSFERS_WIDGET_LABELS_EN as
|
|
82
|
-
import { TransfersWidget as
|
|
81
|
+
import { DEFAULT_FEATURE_LABELS as me } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
|
|
82
|
+
import { TRANSFERS_WIDGET_LABELS_EN as he } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
|
|
83
|
+
import { TransfersWidget as ge } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js";
|
|
83
84
|
import "./lib/TransfersWidget.js";
|
|
84
85
|
import "./lib/UploadReceiptWidget.js";
|
|
85
|
-
import { WidgetProvider as
|
|
86
|
+
import { WidgetProvider as _e } from "./lib/WidgetProviderPublic.js";
|
|
86
87
|
import "./lib/WidgetProvider.js";
|
|
87
|
-
export { e as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN,
|
|
88
|
+
export { e as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, U as ACCOUNT_DELETE_DIALOG_LABELS_EN, W as ACCOUNT_FORM_SHEET_LABELS_EN, ne as ADDITIONAL_OWNERS_LABELS_EN, S as AcceptDisclosuresWidget, J as AccountDeleteDialog, q as AccountFormSheet, I as BALANCES_WIDGET_LABELS_EN, re as BUSINESS_DETAILS_LABELS_EN, L as BalancesWidget, oe as BankAccountOnboardingWidget, C as BankAccountsWidget, T as BillPayWidget, G as CHART_OF_ACCOUNTS_LABELS_EN, H as CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, O as CREATE_CARD_FEATURE_LABELS_EN, E as CardDetailsWidget, D as CardFormatValue, j as CardsWidget, K as ChartOfAccountsTable, Y as ChartOfAccountsWidget, w as CounterpartsWidget, A as CreateCardWidget, d as ERROR_STATE_ID, M as ExpenseApprovalPoliciesWidget, F as ExpenseManagementWidget, N as ExpenseRequirementsWidget, Z as HELP_FAQ_EN, X as HELP_WIDGET_LABELS_EN, Q as HelpWidget, R as INSIGHTS_FEATURE_LABELS_EN, z as INSIGHTS_WIDGET_LABELS_EN, n as Implementation, V as InsightsWidget, $ as InvoicingWidget, te as LinkedAccountsWidget, ie as PERSONAL_DETAILS_LABELS_EN, se as ProductsWidget, ce as ProfileWidget, ae as RESULT_LABELS_EN, le as ReceiptMatchWidget, ee as ReceivablesWidget, h as RefreshingRootWidgetProvider, f as RootWidgetProvider, B as SINGLE_INSIGHT_LABELS_EN, ue as SettingsSection, pe as SettingsWidget, me as TRANSFERS_FEATURE_LABELS_EN, he as TRANSFERS_WIDGET_LABELS_EN, de as TagsWidget, fe as TeamWidget, ge as TransfersWidget, c as UIFramework, P as UploadReceiptWidget, _e as WidgetProvider, p as WidgetTokenRefreshProvider, t as cloneEmbeddedClient, r as getGlobalWidgetConfig, o as getGlobalWidgetInitState, l as registerDesignSystemEnsurer, u as registerUIRenderers, k as resolveCreateCardFeatureLabels, i as setGlobalWidgetConfig, s as subscribeToGlobalWidgetInitState, a as updateGlobalWidgetConfig, g as useDisclosuresAcceptanceSurface, _ as useOwnWidgetConfig, v as useRefetchWidget, y as useWidgetConfig, b as useWidgetError, x as useWidgetLoading, m as useWidgetToken };
|
|
@@ -703,6 +703,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
703
703
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
704
704
|
*/
|
|
705
705
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
706
|
+
/**
|
|
707
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
708
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
709
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
710
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
711
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
712
|
+
*/
|
|
713
|
+
disclosuresAcceptance?: ReactNode;
|
|
706
714
|
}
|
|
707
715
|
|
|
708
716
|
/**
|
|
@@ -775,7 +783,7 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
775
783
|
* passes neither, and the same init refresh clears the gate that mounted this.
|
|
776
784
|
* See `WidgetSuite`, which mounts it as its acceptance state.
|
|
777
785
|
*/
|
|
778
|
-
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
786
|
+
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
779
787
|
|
|
780
788
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, AcceptDisclosuresWidget };
|
|
781
789
|
export type { AcceptDisclosuresLinks, AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps };
|
|
@@ -609,6 +609,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
609
609
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
610
610
|
*/
|
|
611
611
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
612
|
+
/**
|
|
613
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
614
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
615
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
616
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
617
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
618
|
+
*/
|
|
619
|
+
disclosuresAcceptance?: ReactNode;
|
|
612
620
|
}
|
|
613
621
|
|
|
614
622
|
interface BalancesWidgetWithContextProps {
|