@tesouro/embedded-components-react 0.3.52 → 0.3.55
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 +47 -64
- package/dist/index.css +0 -6
- package/dist/index.d.ts +80 -26
- package/dist/index.js +45 -49
- package/dist/lib/CardDetailsWidget.d.ts +61 -1
- package/dist/lib/CardDetailsWidget.js +1 -1
- package/dist/lib/CreditCardsWidget.d.ts +78 -4
- package/dist/lib/DebitCardsWidget.d.ts +78 -4
- package/dist/lib/WidgetSuite.d.ts +78 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index3.js +43 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +40 -14
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index5.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index5.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +17 -160
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index7.js +107 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index8.js +188 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +137 -8
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/FieldError.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/validation.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +47 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +22 -20
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiConflictError.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiUnprocessableError.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +246 -225
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +170 -134
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +27 -2
- package/dist/lib/CreateCardWidget.d.ts +0 -823
- package/dist/lib/CreateCardWidget.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/PinField.js +0 -5
package/README.md
CHANGED
|
@@ -265,22 +265,23 @@ One page of an organization's **credit** cards, with a scope-gated "Show my card
|
|
|
265
265
|
|
|
266
266
|
#### Props
|
|
267
267
|
|
|
268
|
-
| Prop
|
|
269
|
-
|
|
|
270
|
-
| `pagination`
|
|
271
|
-
| `defaultPagination`
|
|
272
|
-
| `onPaginationChange`
|
|
273
|
-
| `labels`
|
|
274
|
-
| `featureLabels`
|
|
275
|
-
| `selectedCardId`
|
|
276
|
-
| `defaultSelectedCardId`
|
|
277
|
-
| `onSelectedCardIdChange`
|
|
278
|
-
| `cardDetailsLabels`
|
|
279
|
-
| `cardDetailsFeatureLabels`
|
|
280
|
-
| `
|
|
281
|
-
| `
|
|
282
|
-
| `
|
|
283
|
-
| `
|
|
268
|
+
| Prop | Type | Default | Description |
|
|
269
|
+
| --------------------------- | --------------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
270
|
+
| `pagination` | `{ paginationToken?, pageSize? }` | `undefined` | Controlled cursor and page size. Supply with `onPaginationChange` when your app owns the list position. |
|
|
271
|
+
| `defaultPagination` | `{ paginationToken?, pageSize? }` | First page, 10 | Initial cursor and page size when uncontrolled. Ignored when `pagination` is supplied. |
|
|
272
|
+
| `onPaginationChange` | `(pagination: CardsPagination) => void` | `undefined` | Called whenever the widget moves page or changes page size. Persist the whole object, not the token alone. |
|
|
273
|
+
| `labels` | `PartialDeep<CardsLabels>` | English labels | Overrides the copy of the list screen, including the details sheet's screen-reader name under `detailsSheet`. Nested groups merge per group. |
|
|
274
|
+
| `featureLabels` | `PartialDeep<CardsFeatureLabels>` | English labels | Overrides the copy this widget resolves rather than passes through — status and form-factor vocabulary, the empty-cell placeholder, and name fallbacks. |
|
|
275
|
+
| `selectedCardId` | `string \| null` | `undefined` | Controlled selection of the card whose details panel is open. `null` closes it; omit for uncontrolled. See **Selection** below. |
|
|
276
|
+
| `defaultSelectedCardId` | `string \| null` | `undefined` | Initial selection when uncontrolled. Ignored when `selectedCardId` is supplied. |
|
|
277
|
+
| `onSelectedCardIdChange` | `(cardId: string \| null) => void` | `undefined` | Fires whenever the open card changes, including on close (`null`). Supplying it does **not** change what renders. |
|
|
278
|
+
| `cardDetailsLabels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Label overrides forwarded into the details panel. |
|
|
279
|
+
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides for the copy the panel's feature layer resolves — status vocabulary, form-factor copy, program label, copy-success toast. Distinct from `featureLabels`. |
|
|
280
|
+
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides for the Activate Card form the details panel opens — its heading, the two field labels, and its validation and status copy. |
|
|
281
|
+
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the details panel's card face. Omit and the face renders without a logo rather than with a placeholder. |
|
|
282
|
+
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. |
|
|
283
|
+
| `onCreateCard` | `() => void` | `undefined` | Host-owned Create card handler. Required for the button to render at all. See **Create card** below. |
|
|
284
|
+
| `onActivateCard` | `(cardId: string) => void` | `undefined` | Called when a row's Activate button is clicked. Omit it and the button is not rendered. |
|
|
284
285
|
|
|
285
286
|
### DebitCardsWidget
|
|
286
287
|
|
|
@@ -288,25 +289,26 @@ One page of an organization's **debit** cards, with a scope-gated "Show my cards
|
|
|
288
289
|
|
|
289
290
|
#### Props
|
|
290
291
|
|
|
291
|
-
| Prop
|
|
292
|
-
|
|
|
293
|
-
| `pagination`
|
|
294
|
-
| `defaultPagination`
|
|
295
|
-
| `onPaginationChange`
|
|
296
|
-
| `labels`
|
|
297
|
-
| `featureLabels`
|
|
298
|
-
| `selectedCardId`
|
|
299
|
-
| `defaultSelectedCardId`
|
|
300
|
-
| `onSelectedCardIdChange`
|
|
301
|
-
| `cardDetailsLabels`
|
|
302
|
-
| `cardDetailsFeatureLabels`
|
|
303
|
-
| `
|
|
304
|
-
| `
|
|
305
|
-
| `
|
|
306
|
-
| `
|
|
307
|
-
| `
|
|
308
|
-
| `
|
|
309
|
-
| `
|
|
292
|
+
| Prop | Type | Default | Description |
|
|
293
|
+
| --------------------------- | --------------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
294
|
+
| `pagination` | `{ paginationToken?, pageSize? }` | `undefined` | Controlled cursor and page size. Supply with `onPaginationChange` when your app owns the list position. |
|
|
295
|
+
| `defaultPagination` | `{ paginationToken?, pageSize? }` | First page, 10 | Initial cursor and page size when uncontrolled. Ignored when `pagination` is supplied. |
|
|
296
|
+
| `onPaginationChange` | `(pagination: CardsPagination) => void` | `undefined` | Called whenever the widget moves page or changes page size. Persist the whole object, not the token alone. |
|
|
297
|
+
| `labels` | `PartialDeep<CardsLabels>` | English labels | Overrides the copy of the list screen, including the details sheet's screen-reader name under `detailsSheet` and the create sheet's under `createSheet`. Nested groups merge per group. |
|
|
298
|
+
| `featureLabels` | `PartialDeep<CardsFeatureLabels>` | English labels | Overrides the copy this widget resolves rather than passes through — status and form-factor vocabulary, the empty-cell placeholder, and name fallbacks. |
|
|
299
|
+
| `selectedCardId` | `string \| null` | `undefined` | Controlled selection of the card whose details panel is open. `null` closes it; omit for uncontrolled. See **Selection** below. |
|
|
300
|
+
| `defaultSelectedCardId` | `string \| null` | `undefined` | Initial selection when uncontrolled. Ignored when `selectedCardId` is supplied. |
|
|
301
|
+
| `onSelectedCardIdChange` | `(cardId: string \| null) => void` | `undefined` | Fires whenever the open card changes, including on close (`null`). Supplying it does **not** change what renders. |
|
|
302
|
+
| `cardDetailsLabels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Label overrides forwarded into the details panel. |
|
|
303
|
+
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides for the copy the panel's feature layer resolves — status vocabulary, form-factor copy, program label, copy-success toast. Distinct from `featureLabels`. |
|
|
304
|
+
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides for the Activate Card form the details panel opens — its heading, the two field labels, and its validation and status copy. |
|
|
305
|
+
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the details panel's card face. Omit and the face renders without a logo rather than with a placeholder. |
|
|
306
|
+
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. |
|
|
307
|
+
| `cardArtSrc` | `string` | `undefined` | Plastic art for the built-in create sheet. Required for that sheet: omit it (with no `onCreateCard`) and Create card is hidden. See **Create card** below. |
|
|
308
|
+
| `createCardLabels` | `PartialDeep<CreateCardWidgetLabels>` | English labels | Label overrides forwarded into the nested create-card panel. |
|
|
309
|
+
| `createCardFeatureLabels` | toast / untitled-funding overrides | English labels | Overrides for the copy the create panel's feature layer resolves — mutation toasts, untitled funding-account fallback, pending-activation success copy. |
|
|
310
|
+
| `onCreateCard` | `() => void` | `undefined` | Host-owned Create card handler. When supplied, the built-in sheet does not open — use it for a custom issuance flow. |
|
|
311
|
+
| `onActivateCard` | `(cardId: string) => void` | `undefined` | Called when a row's Activate button is clicked. Omit it and the button is not rendered. |
|
|
310
312
|
|
|
311
313
|
### CardDetailsWidget
|
|
312
314
|
|
|
@@ -314,35 +316,16 @@ Read-only details for one credit **or** debit card — status, form factor, prog
|
|
|
314
316
|
|
|
315
317
|
#### Props
|
|
316
318
|
|
|
317
|
-
| Prop | Type | Default | Description
|
|
318
|
-
| ---------------- | --------------------------------------- | -------------- |
|
|
319
|
-
| `cardId` | `string` | **Required** | Id of the card to show.
|
|
320
|
-
| `cardProgram` | `'credit' \| 'debit'` | **Required** | Which issuing program `cardId` belongs to. Selects the endpoint the card is fetched from.
|
|
321
|
-
| `onClose` | `() => void` | `undefined` | Called when the header's close control is pressed. Omit it and no close control is rendered at all.
|
|
322
|
-
| `labels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Overrides the panel's own copy — header, card face alt text, row headings, copy-button accessible names, and the loading/error/not-found screens.
|
|
323
|
-
| `
|
|
324
|
-
| `
|
|
325
|
-
| `
|
|
326
|
-
|
|
327
|
-
### CreateCardWidget
|
|
328
|
-
|
|
329
|
-
Issues a new **debit** card for an enrolled team member: cardholder, format
|
|
330
|
-
(virtual / physical), funding bank account, and — for physical cards — a mailing
|
|
331
|
-
destination. Optional spend limit and per-transaction maximum are applied after
|
|
332
|
-
issuance. Loading, success, and error feedback use both full-screen views and
|
|
333
|
-
sonner toasts.
|
|
334
|
-
|
|
335
|
-
#### Props
|
|
336
|
-
|
|
337
|
-
| Prop | Type | Default | Description |
|
|
338
|
-
| --------------- | ---------------------------------------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
339
|
-
| `cardArtSrc` | `string` | **Required** | Static card plastic image URL (no name overlays). |
|
|
340
|
-
| `labels` | `PartialDeep<CreateCardWidgetLabels>` | English labels | Overrides presentational copy (header, setup, mailing, card controls, preparing, success, footer). Nested groups merge per group. |
|
|
341
|
-
| `featureLabels` | toast / untitled-funding / velocity-control-name overrides | English labels | Overrides mutation toast strings (including spend-control and admin-access warnings), the funding-account fallback name, and API velocity-control `name`s. |
|
|
342
|
-
| `className` | `string` | — | Optional class on the presentational root. |
|
|
343
|
-
| `onClose` | `() => void` | — | Header close control. Omit and no close control is rendered. |
|
|
344
|
-
| `onCancel` | `() => void` | — | Called when Cancel is pressed (also invokes `onClose` when both are set). |
|
|
345
|
-
| `onViewCard` | `(cardId: string) => void` | — | Called with the new debit card id after a successful create when the user presses **View card**. |
|
|
319
|
+
| Prop | Type | Default | Description |
|
|
320
|
+
| ---------------- | --------------------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
321
|
+
| `cardId` | `string` | **Required** | Id of the card to show. |
|
|
322
|
+
| `cardProgram` | `'credit' \| 'debit'` | **Required** | Which issuing program `cardId` belongs to. Selects the endpoint the card is fetched from. |
|
|
323
|
+
| `onClose` | `() => void` | `undefined` | Called when the header's close control is pressed. Omit it and no close control is rendered at all. |
|
|
324
|
+
| `labels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Overrides the panel's own copy — header, card face alt text, row headings, copy-button accessible names, and the loading/error/not-found screens. |
|
|
325
|
+
| `activateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the Activate Card form's copy — its heading, the two field labels, the security-code explanation, and the validation and status text. |
|
|
326
|
+
| `featureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the copy this widget resolves rather than passes through — status, form-factor and program vocabulary, the copy-success toast, the activation-conflict toast, and the refused-reveal sentence. |
|
|
327
|
+
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the card face. Omit and the face renders without a logo rather than with a placeholder. |
|
|
328
|
+
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. Falls back to `labels.cardFace.bankLogoAlt`. |
|
|
346
329
|
|
|
347
330
|
### CounterpartsWidget
|
|
348
331
|
|
package/dist/index.css
CHANGED
|
@@ -220,9 +220,6 @@
|
|
|
220
220
|
.ttw\:end-0 {
|
|
221
221
|
inset-inline-end: calc(var(--ttw-spacing) * 0);
|
|
222
222
|
}
|
|
223
|
-
.ttw\:end-1 {
|
|
224
|
-
inset-inline-end: calc(var(--ttw-spacing) * 1);
|
|
225
|
-
}
|
|
226
223
|
.ttw\:\!top-2 {
|
|
227
224
|
top: calc(var(--ttw-spacing) * 2) !important;
|
|
228
225
|
}
|
|
@@ -2940,9 +2937,6 @@
|
|
|
2940
2937
|
.ttw\:py-\[7px\] {
|
|
2941
2938
|
padding-block: 7px;
|
|
2942
2939
|
}
|
|
2943
|
-
.ttw\:pe-10 {
|
|
2944
|
-
padding-inline-end: calc(var(--ttw-spacing) * 10);
|
|
2945
|
-
}
|
|
2946
2940
|
.ttw\:pt-0 {
|
|
2947
2941
|
padding-top: 0px;
|
|
2948
2942
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1700,6 +1700,58 @@ interface CardDetailsPanelLabels {
|
|
|
1700
1700
|
status: CardDetailsStatusScreenLabels;
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
+
/** Chrome around the form. */
|
|
1704
|
+
interface ActivateCardHeaderLabels {
|
|
1705
|
+
title: string;
|
|
1706
|
+
/** Accessible name for the close (X) control. */
|
|
1707
|
+
closeAriaLabel: string;
|
|
1708
|
+
}
|
|
1709
|
+
/** Accessible copy for the card face this panel reuses. */
|
|
1710
|
+
interface ActivateCardCardFaceLabels {
|
|
1711
|
+
/** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
|
|
1712
|
+
bankLogoAlt: string;
|
|
1713
|
+
}
|
|
1714
|
+
/** Field headings, placeholders and the copy behind each affordance. */
|
|
1715
|
+
interface ActivateCardFieldLabels {
|
|
1716
|
+
expirationDate: string;
|
|
1717
|
+
expirationDatePlaceholder: string;
|
|
1718
|
+
securityCode: string;
|
|
1719
|
+
securityCodePlaceholder: string;
|
|
1720
|
+
/** Accessible name for the (?) control that reveals the explanation. */
|
|
1721
|
+
securityCodeInfoAriaLabel: string;
|
|
1722
|
+
/** The explanation itself, shown in the tooltip. */
|
|
1723
|
+
securityCodeInfo: string;
|
|
1724
|
+
}
|
|
1725
|
+
/** One message per failure the panel can mark. */
|
|
1726
|
+
interface ActivateCardValidationLabels {
|
|
1727
|
+
impossibleMonth: string;
|
|
1728
|
+
pastExpiration: string;
|
|
1729
|
+
/**
|
|
1730
|
+
* Shown when the server rejects the pair. Names both values because the
|
|
1731
|
+
* verify endpoint withholds which one missed — see `ActivateCardFormErrors`.
|
|
1732
|
+
*/
|
|
1733
|
+
verificationRejected: string;
|
|
1734
|
+
}
|
|
1735
|
+
/** The CTA and the two screens that replace or accompany the form. */
|
|
1736
|
+
interface ActivateCardStatusLabels {
|
|
1737
|
+
submit: string;
|
|
1738
|
+
/** Accessible name announced while the activation is in flight. */
|
|
1739
|
+
submittingAriaLabel: string;
|
|
1740
|
+
successTitle: string;
|
|
1741
|
+
successDescription: string;
|
|
1742
|
+
/** Label for the optional post-success control. */
|
|
1743
|
+
done: string;
|
|
1744
|
+
/** Fallback failure copy when the owner supplies no `errorMessage`. */
|
|
1745
|
+
errorDescription: string;
|
|
1746
|
+
}
|
|
1747
|
+
interface ActivateCardPanelLabels {
|
|
1748
|
+
header: ActivateCardHeaderLabels;
|
|
1749
|
+
cardFace: ActivateCardCardFaceLabels;
|
|
1750
|
+
fields: ActivateCardFieldLabels;
|
|
1751
|
+
validation: ActivateCardValidationLabels;
|
|
1752
|
+
status: ActivateCardStatusLabels;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1703
1755
|
/**
|
|
1704
1756
|
* Deep partial for label overrides.
|
|
1705
1757
|
*
|
|
@@ -1726,6 +1778,12 @@ type PartialDeep$6<T> = {
|
|
|
1726
1778
|
interface CardDetailsFeatureLabels {
|
|
1727
1779
|
/** Confirmation toast after a copy affordance writes to the clipboard. */
|
|
1728
1780
|
copySuccessToast: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* Toast shown when activation is refused because the card is no longer
|
|
1783
|
+
* awaiting it. Resolved here rather than in the panel because it is an
|
|
1784
|
+
* API outcome, and because the panel closes as it fires.
|
|
1785
|
+
*/
|
|
1786
|
+
activationConflictToast: string;
|
|
1729
1787
|
/**
|
|
1730
1788
|
* Replaces the panel's generic reveal error when the credentials call was
|
|
1731
1789
|
* refused (HTTP 403).
|
|
@@ -1787,6 +1845,8 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
1787
1845
|
onClose?: () => void;
|
|
1788
1846
|
/** Overrides for the panel's own copy. */
|
|
1789
1847
|
labels?: PartialDeep$6<CardDetailsPanelLabels>;
|
|
1848
|
+
/** Overrides for the Activate Card form's copy. */
|
|
1849
|
+
activateLabels?: PartialDeep$6<ActivateCardPanelLabels>;
|
|
1790
1850
|
/** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
|
|
1791
1851
|
featureLabels?: PartialDeep$6<CardDetailsFeatureLabels>;
|
|
1792
1852
|
/**
|
|
@@ -1969,14 +2029,6 @@ interface CreateCardFeatureLabels {
|
|
|
1969
2029
|
createdDescription: string;
|
|
1970
2030
|
};
|
|
1971
2031
|
}
|
|
1972
|
-
declare const CREATE_CARD_FEATURE_LABELS_EN: CreateCardFeatureLabels;
|
|
1973
|
-
declare function resolveCreateCardFeatureLabels(overrides?: Partial<{
|
|
1974
|
-
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
1975
|
-
untitledFundingAccount: string;
|
|
1976
|
-
velocityControlNames: Partial<CreateCardFeatureLabels['velocityControlNames']>;
|
|
1977
|
-
spendLimit: Partial<CreateCardFeatureLabels['spendLimit']>;
|
|
1978
|
-
success: Partial<CreateCardFeatureLabels['success']>;
|
|
1979
|
-
}>): CreateCardFeatureLabels;
|
|
1980
2032
|
|
|
1981
2033
|
type CreateCardWidgetProps = WidgetProviderProps & {
|
|
1982
2034
|
/** Static card plastic image URL (no overlays). Host / white-label supplied. */
|
|
@@ -1995,18 +2047,6 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
1995
2047
|
/** Fired with the new debit card id after a successful create. */
|
|
1996
2048
|
onViewCard?: (cardId: string) => void;
|
|
1997
2049
|
};
|
|
1998
|
-
/**
|
|
1999
|
-
* Self-contained Create Card widget. Issues a debit card via the Embed API and
|
|
2000
|
-
* drives setup → preparing → success with sonner toasts for the mutation.
|
|
2001
|
-
*/
|
|
2002
|
-
declare function CreateCardWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: CreateCardWidgetProps): React.JSX.Element;
|
|
2003
|
-
|
|
2004
|
-
/** Opaque UI format values — mapped to API `DebitCardType` in the feature. */
|
|
2005
|
-
declare const CardFormatValue: {
|
|
2006
|
-
readonly Virtual: "virtual";
|
|
2007
|
-
readonly Physical: "physical";
|
|
2008
|
-
};
|
|
2009
|
-
type CardFormatValue = (typeof CardFormatValue)[keyof typeof CardFormatValue];
|
|
2010
2050
|
|
|
2011
2051
|
/**
|
|
2012
2052
|
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
@@ -2167,6 +2207,15 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
2167
2207
|
* renames a status in the list would still read the default inside the panel.
|
|
2168
2208
|
*/
|
|
2169
2209
|
cardDetailsFeatureLabels?: CardDetailsWidgetProps['featureLabels'];
|
|
2210
|
+
/**
|
|
2211
|
+
* Overrides for the Activate Card form the details panel opens.
|
|
2212
|
+
*
|
|
2213
|
+
* Its own prop for the same reason `cardDetailsLabels` is: without it that
|
|
2214
|
+
* screen's copy is unreachable from this composition, so a host that translated
|
|
2215
|
+
* everything else would still meet English on the one form that asks the reader
|
|
2216
|
+
* to type something.
|
|
2217
|
+
*/
|
|
2218
|
+
cardDetailsActivateLabels?: CardDetailsWidgetProps['activateLabels'];
|
|
2170
2219
|
/**
|
|
2171
2220
|
* Bank logo for the details panel's card face. Forwarded verbatim; the panel
|
|
2172
2221
|
* renders no logo without it, so omitting these leaves the built-in sheet
|
|
@@ -2211,10 +2260,15 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
2211
2260
|
* renders only on cards in `PENDING_ACTIVATION`, and only when the widget token
|
|
2212
2261
|
* also holds the program's activate scope.
|
|
2213
2262
|
*
|
|
2214
|
-
* Host-owned
|
|
2215
|
-
*
|
|
2216
|
-
*
|
|
2217
|
-
* one
|
|
2263
|
+
* Host-owned because EMBD-4398 designs no activation flow for the *list*.
|
|
2264
|
+
*
|
|
2265
|
+
* The original second reason — that no activate endpoint existed — no longer
|
|
2266
|
+
* holds: both programs have one, and the details panel this widget opens now
|
|
2267
|
+
* runs the whole flow itself (EMBD-5085). So a built-in row flow is now
|
|
2268
|
+
* buildable, and this callback stays host-owned by choice rather than by
|
|
2269
|
+
* necessity. Changing it would be a breaking change to a published prop and
|
|
2270
|
+
* belongs in its own ticket; until then a host that wants the built-in flow
|
|
2271
|
+
* can omit this and let the reader open the card.
|
|
2218
2272
|
*/
|
|
2219
2273
|
onActivateCard?: (cardId: string) => void;
|
|
2220
2274
|
}
|
|
@@ -5329,5 +5383,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
5329
5383
|
|
|
5330
5384
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
5331
5385
|
|
|
5332
|
-
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,
|
|
5333
|
-
export type { 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, CardsListLabels as CardsLabels, CardsPagination, ChartOfAccountsLabels, ChartOfAccountsMessageLabels, ChartOfAccountsTableProps, ChartOfAccountsWidgetLabelProps, ChartOfAccountsWidgetProps, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps,
|
|
5386
|
+
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, CardDetailsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, 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, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
|
5387
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccountDeleteDialogLabels, AccountDeleteDialogProps, Labels$5 as AccountDetailsWidgetLabels, AccountFormErrors, AccountFormMode, AccountFormSheetLabels, AccountFormSheetProps, AccountFormValues, ActivateCardPanelLabels, 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, CardsListLabels as CardsLabels, CardsPagination, ChartOfAccountsLabels, ChartOfAccountsMessageLabels, ChartOfAccountsTableProps, ChartOfAccountsWidgetLabelProps, ChartOfAccountsWidgetProps, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, ExpenseApprovalPoliciesWidgetProps, Labels$3 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseRequirementsWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, HelpWidgetLabels, HelpWidgetProps, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LedgerAccountRow, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$2 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetContent, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, FeatureLabels$1 as ProfileWidgetFeatureLabels, Labels$1 as ProfileWidgetLabels, ProfileWidgetProps, ReceiptMatchSummary, ReceiptMatchWidgetProps, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$4 as SettingsWidgetFeatureLabels, Labels$4 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TagDeleteDialogLabels, TagFormSheetLabels, TagMessageLabels, TagsScreenLabels, TagsWidgetProps, FeatureLabels as TeamWidgetFeatureLabels, Labels as TeamWidgetLabels, TeamWidgetProps, FeatureLabels$3 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -15,45 +15,42 @@ import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefet
|
|
|
15
15
|
import { BankAccountsWidget as w } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
16
16
|
import { CounterpartsWidget as T } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
17
17
|
import { BillPayWidget as E } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js";
|
|
18
|
-
import { CardDetailsWidget as D } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/
|
|
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
|
-
import {
|
|
54
|
-
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as fe } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
|
|
55
|
-
import { AcceptDisclosuresWidget as pe } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js";
|
|
56
|
-
import { WidgetSuite as me } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js";
|
|
18
|
+
import { CardDetailsWidget as D } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index8.js";
|
|
19
|
+
import { CreditCardsWidget as O } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
|
|
20
|
+
import { DebitCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
|
|
21
|
+
import { BALANCES_WIDGET_LABELS_EN as A } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
|
|
22
|
+
import { BalancesWidget as j } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/index6.js";
|
|
23
|
+
import { INSIGHTS_FEATURE_LABELS_EN as M } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
|
|
24
|
+
import { INSIGHTS_WIDGET_LABELS_EN as N } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
25
|
+
import { SINGLE_INSIGHT_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
26
|
+
import { InsightsWidget as F } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index12.js";
|
|
27
|
+
import { InvoicingWidget as I } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
|
|
28
|
+
import { ReceivablesWidget as L } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js";
|
|
29
|
+
import { SettingsSection as R } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
|
|
30
|
+
import { ExpenseApprovalPoliciesWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js";
|
|
31
|
+
import { UploadReceiptWidget as B } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js";
|
|
32
|
+
import { ExpenseRequirementsWidget as V } from "./libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js";
|
|
33
|
+
import { ExpenseManagementWidget as H } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js";
|
|
34
|
+
import { ReceiptMatchWidget as U } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js";
|
|
35
|
+
import { TagsWidget as W } from "./libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js";
|
|
36
|
+
import { TeamWidget as G } from "./libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js";
|
|
37
|
+
import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as K } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js";
|
|
38
|
+
import { ACCOUNT_DELETE_DIALOG_LABELS_EN as q, ACCOUNT_FORM_SHEET_LABELS_EN as J, CHART_OF_ACCOUNTS_LABELS_EN as Y } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js";
|
|
39
|
+
import { ChartOfAccountsTable as X } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js";
|
|
40
|
+
import { AccountFormSheet as Z } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index4.js";
|
|
41
|
+
import { AccountDeleteDialog as Q } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index5.js";
|
|
42
|
+
import { ChartOfAccountsWidget as $ } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js";
|
|
43
|
+
import { HELP_WIDGET_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index2.js";
|
|
44
|
+
import { HELP_FAQ_EN as te } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js";
|
|
45
|
+
import { HelpWidget as ne } from "./libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js";
|
|
46
|
+
import { ProfileWidget as re } from "./libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js";
|
|
47
|
+
import { SettingsWidget as ie } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
|
|
48
|
+
import { DEFAULT_FEATURE_LABELS as ae } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
|
|
49
|
+
import { TRANSFERS_WIDGET_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
|
|
50
|
+
import { TransfersWidget as se } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index7.js";
|
|
51
|
+
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as ce } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
|
|
52
|
+
import { AcceptDisclosuresWidget as le } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js";
|
|
53
|
+
import { WidgetSuite as ue } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js";
|
|
57
54
|
import "./lib/WidgetSuite.js";
|
|
58
55
|
import "./lib/AcceptDisclosuresWidget.js";
|
|
59
56
|
import "./lib/BankAccountsWidget.js";
|
|
@@ -61,7 +58,6 @@ import "./lib/BillPayWidget.js";
|
|
|
61
58
|
import "./lib/CreditCardsWidget.js";
|
|
62
59
|
import "./lib/DebitCardsWidget.js";
|
|
63
60
|
import "./lib/CardDetailsWidget.js";
|
|
64
|
-
import "./lib/CreateCardWidget.js";
|
|
65
61
|
import "./lib/CounterpartsWidget.js";
|
|
66
62
|
import "./lib/ExpenseManagementWidget.js";
|
|
67
63
|
import "./lib/ExpenseApprovalPoliciesWidget.js";
|
|
@@ -71,15 +67,15 @@ import "./lib/InsightsWidget.js";
|
|
|
71
67
|
import "./lib/ChartOfAccountsWidget.js";
|
|
72
68
|
import "./lib/HelpWidget.js";
|
|
73
69
|
import "./lib/InvoicingWidget.js";
|
|
74
|
-
import { LinkedAccountsWidget as
|
|
70
|
+
import { LinkedAccountsWidget as de } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js";
|
|
75
71
|
import "./lib/LinkedAccountsWidget.js";
|
|
76
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as
|
|
77
|
-
import { BUSINESS_DETAILS_LABELS_EN as
|
|
78
|
-
import { PERSONAL_DETAILS_LABELS_EN as
|
|
79
|
-
import { RESULT_LABELS_EN as
|
|
80
|
-
import { BankAccountOnboardingWidget as
|
|
72
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as fe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js";
|
|
73
|
+
import { BUSINESS_DETAILS_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js";
|
|
74
|
+
import { PERSONAL_DETAILS_LABELS_EN as me } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js";
|
|
75
|
+
import { RESULT_LABELS_EN as he } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
|
|
76
|
+
import { BankAccountOnboardingWidget as ge } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js";
|
|
81
77
|
import "./lib/BankAccountOnboardingWidget.js";
|
|
82
|
-
import { ProductsWidget as
|
|
78
|
+
import { ProductsWidget as _e } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
|
|
83
79
|
import "./lib/ProductsWidget.js";
|
|
84
80
|
import "./lib/ProfileWidget.js";
|
|
85
81
|
import "./lib/ReceivablesWidget.js";
|
|
@@ -89,6 +85,6 @@ import "./lib/TagsWidget.js";
|
|
|
89
85
|
import "./lib/TeamWidget.js";
|
|
90
86
|
import "./lib/TransfersWidget.js";
|
|
91
87
|
import "./lib/UploadReceiptWidget.js";
|
|
92
|
-
import { WidgetProvider as
|
|
88
|
+
import { WidgetProvider as ve } from "./lib/WidgetProviderPublic.js";
|
|
93
89
|
import "./lib/WidgetProvider.js";
|
|
94
|
-
export {
|
|
90
|
+
export { ce as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, q as ACCOUNT_DELETE_DIALOG_LABELS_EN, J as ACCOUNT_FORM_SHEET_LABELS_EN, fe as ADDITIONAL_OWNERS_LABELS_EN, le as AcceptDisclosuresWidget, Q as AccountDeleteDialog, Z as AccountFormSheet, A as BALANCES_WIDGET_LABELS_EN, pe as BUSINESS_DETAILS_LABELS_EN, j as BalancesWidget, ge as BankAccountOnboardingWidget, w as BankAccountsWidget, E as BillPayWidget, Y as CHART_OF_ACCOUNTS_LABELS_EN, K as CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, D as CardDetailsWidget, X as ChartOfAccountsTable, $ as ChartOfAccountsWidget, T as CounterpartsWidget, O as CreditCardsWidget, k as DebitCardsWidget, s as ERROR_STATE_ID, z as ExpenseApprovalPoliciesWidget, H as ExpenseManagementWidget, V as ExpenseRequirementsWidget, te as HELP_FAQ_EN, ee as HELP_WIDGET_LABELS_EN, ne as HelpWidget, M as INSIGHTS_FEATURE_LABELS_EN, N as INSIGHTS_WIDGET_LABELS_EN, c as Implementation, F as InsightsWidget, I as InvoicingWidget, de as LinkedAccountsWidget, me as PERSONAL_DETAILS_LABELS_EN, _e as ProductsWidget, re as ProfileWidget, he as RESULT_LABELS_EN, U as ReceiptMatchWidget, L as ReceivablesWidget, _ as RefreshingRootWidgetProvider, m as RootWidgetProvider, P as SINGLE_INSIGHT_LABELS_EN, R as SettingsSection, ie as SettingsWidget, ae as TRANSFERS_FEATURE_LABELS_EN, oe as TRANSFERS_WIDGET_LABELS_EN, W as TagsWidget, G as TeamWidget, se as TransfersWidget, i as UIFramework, B as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ve as WidgetProvider, ue as WidgetSuite, n as WidgetSuiteSectionId, h as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, l as getGlobalWidgetConfig, f as getGlobalWidgetInitState, a as registerDesignSystemEnsurer, o as registerUIRenderers, u as setGlobalWidgetConfig, p as subscribeToGlobalWidgetInitState, d as updateGlobalWidgetConfig, v as useDisclosuresAcceptanceSurface, y as useOwnWidgetConfig, b as useRefetchWidget, x as useWidgetConfig, S as useWidgetError, C as useWidgetLoading, g as useWidgetToken };
|
|
@@ -74,6 +74,58 @@ interface CardDetailsPanelLabels {
|
|
|
74
74
|
status: CardDetailsStatusScreenLabels;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/** Chrome around the form. */
|
|
78
|
+
interface ActivateCardHeaderLabels {
|
|
79
|
+
title: string;
|
|
80
|
+
/** Accessible name for the close (X) control. */
|
|
81
|
+
closeAriaLabel: string;
|
|
82
|
+
}
|
|
83
|
+
/** Accessible copy for the card face this panel reuses. */
|
|
84
|
+
interface ActivateCardCardFaceLabels {
|
|
85
|
+
/** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
|
|
86
|
+
bankLogoAlt: string;
|
|
87
|
+
}
|
|
88
|
+
/** Field headings, placeholders and the copy behind each affordance. */
|
|
89
|
+
interface ActivateCardFieldLabels {
|
|
90
|
+
expirationDate: string;
|
|
91
|
+
expirationDatePlaceholder: string;
|
|
92
|
+
securityCode: string;
|
|
93
|
+
securityCodePlaceholder: string;
|
|
94
|
+
/** Accessible name for the (?) control that reveals the explanation. */
|
|
95
|
+
securityCodeInfoAriaLabel: string;
|
|
96
|
+
/** The explanation itself, shown in the tooltip. */
|
|
97
|
+
securityCodeInfo: string;
|
|
98
|
+
}
|
|
99
|
+
/** One message per failure the panel can mark. */
|
|
100
|
+
interface ActivateCardValidationLabels {
|
|
101
|
+
impossibleMonth: string;
|
|
102
|
+
pastExpiration: string;
|
|
103
|
+
/**
|
|
104
|
+
* Shown when the server rejects the pair. Names both values because the
|
|
105
|
+
* verify endpoint withholds which one missed — see `ActivateCardFormErrors`.
|
|
106
|
+
*/
|
|
107
|
+
verificationRejected: string;
|
|
108
|
+
}
|
|
109
|
+
/** The CTA and the two screens that replace or accompany the form. */
|
|
110
|
+
interface ActivateCardStatusLabels {
|
|
111
|
+
submit: string;
|
|
112
|
+
/** Accessible name announced while the activation is in flight. */
|
|
113
|
+
submittingAriaLabel: string;
|
|
114
|
+
successTitle: string;
|
|
115
|
+
successDescription: string;
|
|
116
|
+
/** Label for the optional post-success control. */
|
|
117
|
+
done: string;
|
|
118
|
+
/** Fallback failure copy when the owner supplies no `errorMessage`. */
|
|
119
|
+
errorDescription: string;
|
|
120
|
+
}
|
|
121
|
+
interface ActivateCardPanelLabels {
|
|
122
|
+
header: ActivateCardHeaderLabels;
|
|
123
|
+
cardFace: ActivateCardCardFaceLabels;
|
|
124
|
+
fields: ActivateCardFieldLabels;
|
|
125
|
+
validation: ActivateCardValidationLabels;
|
|
126
|
+
status: ActivateCardStatusLabels;
|
|
127
|
+
}
|
|
128
|
+
|
|
77
129
|
type AuthToken = string | undefined;
|
|
78
130
|
interface Auth {
|
|
79
131
|
/**
|
|
@@ -773,6 +825,12 @@ type PartialDeep<T> = {
|
|
|
773
825
|
interface CardDetailsFeatureLabels {
|
|
774
826
|
/** Confirmation toast after a copy affordance writes to the clipboard. */
|
|
775
827
|
copySuccessToast: string;
|
|
828
|
+
/**
|
|
829
|
+
* Toast shown when activation is refused because the card is no longer
|
|
830
|
+
* awaiting it. Resolved here rather than in the panel because it is an
|
|
831
|
+
* API outcome, and because the panel closes as it fires.
|
|
832
|
+
*/
|
|
833
|
+
activationConflictToast: string;
|
|
776
834
|
/**
|
|
777
835
|
* Replaces the panel's generic reveal error when the credentials call was
|
|
778
836
|
* refused (HTTP 403).
|
|
@@ -834,6 +892,8 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
834
892
|
onClose?: () => void;
|
|
835
893
|
/** Overrides for the panel's own copy. */
|
|
836
894
|
labels?: PartialDeep<CardDetailsPanelLabels>;
|
|
895
|
+
/** Overrides for the Activate Card form's copy. */
|
|
896
|
+
activateLabels?: PartialDeep<ActivateCardPanelLabels>;
|
|
837
897
|
/** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
|
|
838
898
|
featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
|
|
839
899
|
/**
|
|
@@ -864,4 +924,4 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
864
924
|
declare function CardDetailsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: CardDetailsWidgetProps): React.JSX.Element;
|
|
865
925
|
|
|
866
926
|
export { CardDetailsWidget };
|
|
867
|
-
export type { CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps };
|
|
927
|
+
export type { ActivateCardPanelLabels, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps };
|