@tesouro/embedded-components-react 0.5.18 → 0.5.20

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.
Files changed (146) hide show
  1. package/README.md +22 -21
  2. package/dist/index.css +18 -0
  3. package/dist/index.d.ts +29 -6
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/CardDetailsWidget.d.ts +20 -2
  7. package/dist/lib/CreditCardsWidget.d.ts +29 -6
  8. package/dist/lib/DebitCardsWidget.d.ts +29 -6
  9. package/dist/lib/WidgetSuite.d.ts +29 -6
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +2 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -9
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +4 -91
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +78 -83
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -3
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +3 -49
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +47 -136
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +136 -33
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +33 -187
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +188 -75
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -21
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +22 -232
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +223 -210
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +202 -108
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +126 -13
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -47
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +47 -53
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +49 -202
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +202 -31
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -234
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +240 -19
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +19 -434
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +436 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -38
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +35 -231
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +235 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -4
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +2 -44
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +46 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -8
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +6 -10
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +10 -110
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +112 -3
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -127
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -46
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +43 -18
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +27 -82
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +83 -47
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +47 -250
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +239 -104
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +110 -206
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +213 -3
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +4 -8
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +6 -113
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +115 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +0 -24
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +25 -0
  60. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +152 -149
  61. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index3.js +8 -11
  62. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index4.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +2 -0
  64. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index7.js +4 -4
  65. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index9.js +81 -79
  66. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +39 -38
  67. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/AddressLine.js +23 -0
  68. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +142 -118
  69. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +24 -14
  70. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +4 -1
  71. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +1 -0
  72. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/PerTransactionMaximumControl.js +17 -16
  73. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/SpendLimitControl.js +25 -24
  74. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/limitDecimalPlaces.js +7 -0
  75. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/SetupView.js +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
  77. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index.js +1 -1
  78. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index10.js +6 -6
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index11.js +3 -0
  80. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index12.js +7 -7
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +24 -0
  82. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index14.js +7 -7
  83. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index15.js +7 -7
  84. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index16.js +1 -1
  85. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index17.js +7 -7
  86. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index18.js +6 -6
  87. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index19.js +7 -7
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +10 -0
  89. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index20.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index21.js +7 -7
  91. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index22.js +6 -6
  92. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index23.js +7 -7
  93. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index3.js +4 -4
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +29 -0
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +10 -0
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +10 -0
  97. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index7.js +7 -7
  98. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index8.js +6 -6
  99. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index9.js +6 -6
  100. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index10.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index11.js +4 -4
  102. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index12.js +9 -9
  103. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index13.js +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index14.js +6 -6
  105. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index15.js +8 -8
  106. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index16.js +5 -5
  107. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index17.js +11 -11
  108. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js +10 -0
  109. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index3.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index4.js +2 -2
  111. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index5.js +1 -1
  112. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index6.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index7.js +3 -3
  114. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index8.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index9.js +1 -1
  116. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index10.js +5 -5
  117. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index11.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index12.js +4 -4
  119. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index13.js +1 -1
  120. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index14.js +2 -2
  121. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index15.js +4 -4
  122. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index16.js +5 -5
  123. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index17.js +4 -4
  124. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index18.js +2 -2
  125. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index2.js +1 -1
  126. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index3.js +2 -2
  127. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index4.js +2 -2
  128. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index5.js +3 -3
  129. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index6.js +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index7.js +2 -2
  131. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index8.js +4 -4
  132. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index9.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +12 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/card/cardPresentation.js +1 -1
  136. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  137. package/package.json +1 -1
  138. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +0 -3
  139. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +0 -24
  140. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index2.js +0 -10
  141. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +0 -29
  142. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +0 -10
  143. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +0 -10
  144. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +0 -9
  145. /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index.js +0 -0
  146. /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index.js +0 -0
package/README.md CHANGED
@@ -289,26 +289,26 @@ One page of an organization's **debit** cards, with a scope-gated "Show my cards
289
289
 
290
290
  #### Props
291
291
 
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 — its controls, columns, states, 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. |
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 — its controls, columns, states, 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. Ignored there when `cardArtSrc` is set. Omit both 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 **and** the details panel's card face. Required for the create sheet: omit it (with no `onCreateCard`) and Create card is hidden. The details panel has no such requirement — omit it there and it falls back to `bankLogoSrc`. 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. |
312
312
 
313
313
  ### CardDetailsWidget
314
314
 
@@ -324,7 +324,8 @@ Details for one credit **or** debit card — status, form factor, program, maske
324
324
  | `labels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Overrides the panel's own copy — header, card face alt text, row headings, copy-button accessible names, the nickname editor, the lock control and its locked notice, and the loading/error/not-found screens. |
325
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
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 and nickname-updated toasts, the activation, lock and nickname conflict toasts, 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. |
327
+ | `cardArtSrc` | `string` | `undefined` | Full per-tenant plastic art for the card face — the same asset you pass `CreateCardWidget`. Takes priority over `bankLogoSrc`; see **Card art** below. |
328
+ | `bankLogoSrc` | `string` | `undefined` | Bank logo for the card face. Ignored when `cardArtSrc` is set. Omit and the face renders without a logo rather than with a placeholder. |
328
329
  | `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. Falls back to `labels.cardFace.bankLogoAlt`. |
329
330
 
330
331
  ### CounterpartsWidget
package/dist/index.css CHANGED
@@ -758,6 +758,9 @@
758
758
  .ttw\:h-18 {
759
759
  height: calc(var(--ttw-spacing) * 18);
760
760
  }
761
+ .ttw\:h-20 {
762
+ height: calc(var(--ttw-spacing) * 20);
763
+ }
761
764
  .ttw\:h-21 {
762
765
  height: calc(var(--ttw-spacing) * 21);
763
766
  }
@@ -2733,6 +2736,10 @@
2733
2736
  --tw-gradient-position: to right in oklab;
2734
2737
  background-image: linear-gradient(var(--tw-gradient-stops));
2735
2738
  }
2739
+ .ttw\:bg-gradient-to-t {
2740
+ --tw-gradient-position: to top in oklab;
2741
+ background-image: linear-gradient(var(--tw-gradient-stops));
2742
+ }
2736
2743
  .ttw\:bg-\[radial-gradient\(120\%_120\%_at_85\%_100\%\,rgba\(45\,212\,191\,0\.22\)_0\%\,transparent_55\%\)\] {
2737
2744
  background-image: radial-gradient(120% 120% at 85% 100%,rgba(45,212,191,0.22) 0%,transparent 55%);
2738
2745
  }
@@ -2740,6 +2747,13 @@
2740
2747
  --tw-gradient-from: var(--ttw-background);
2741
2748
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2742
2749
  }
2750
+ .ttw\:from-black\/70 {
2751
+ --tw-gradient-from: var(--ttw-color-black);
2752
+ @supports (color: color-mix(in lab, red, red)) {
2753
+ --tw-gradient-from: color-mix(in oklab, var(--ttw-color-black) 70%, transparent);
2754
+ }
2755
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2756
+ }
2743
2757
  .ttw\:from-sky-200 {
2744
2758
  --tw-gradient-from: var(--ttw-color-sky-200);
2745
2759
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
@@ -2777,6 +2791,10 @@
2777
2791
  --tw-gradient-to: var(--ttw-color-slate-200);
2778
2792
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2779
2793
  }
2794
+ .ttw\:to-transparent {
2795
+ --tw-gradient-to: transparent;
2796
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2797
+ }
2780
2798
  .ttw\:to-violet-400 {
2781
2799
  --tw-gradient-to: var(--ttw-color-violet-400);
2782
2800
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
package/dist/index.d.ts CHANGED
@@ -1664,6 +1664,11 @@ interface CardDetailsCardFaceLabels {
1664
1664
  interface CardDetailsFieldLabels {
1665
1665
  cardholder: string;
1666
1666
  nickname: string;
1667
+ /**
1668
+ * Heading for the billing-address block (EMBD-5466 restyle): one section,
1669
+ * one heading, with each address line as its own copyable line inside it
1670
+ * rather than a separately-labeled row per line.
1671
+ */
1667
1672
  billingAddress: string;
1668
1673
  /** Sub-header over the merchant categories / velocity control rows. */
1669
1674
  cardControlsHeading: string;
@@ -1674,7 +1679,10 @@ interface CardDetailsFieldLabels {
1674
1679
  emptyValue: string;
1675
1680
  copyCardholderAriaLabel: string;
1676
1681
  copyNicknameAriaLabel: string;
1677
- copyBillingAddressAriaLabel: string;
1682
+ copyBillingAddressLine1AriaLabel: string;
1683
+ copyBillingAddressLine2AriaLabel: string;
1684
+ copyBillingAddressCityStateAriaLabel: string;
1685
+ copyBillingAddressPostalCodeAriaLabel: string;
1678
1686
  }
1679
1687
  /** Copy for the controls the owner can switch on alongside the details. */
1680
1688
  interface CardDetailsActionLabels {
@@ -1898,13 +1906,23 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
1898
1906
  activateLabels?: PartialDeep<ActivateCardPanelLabels>;
1899
1907
  /** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
1900
1908
  featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
1909
+ /**
1910
+ * Full per-tenant plastic art (EMBD-5466) — the same asset `CreateCardWidget`
1911
+ * shows for this tenant, e.g. from `CardsWidgetProps.cardArtSrc`. Takes
1912
+ * priority over `bankLogoSrc`, per `CardFace`'s own doc comment. Same
1913
+ * PLAT-1179 / embedded ADR 0005 reason as `bankLogoSrc` below: the package
1914
+ * ships no card artwork of its own, so a host or white-label config supplies
1915
+ * this rather than a bundled lookup table.
1916
+ */
1917
+ cardArtSrc?: string;
1901
1918
  /**
1902
1919
  * Bank logo for the card face. The widget ships no bank artwork of its own and
1903
1920
  * resolves none from the init response: an embeddable library must not depend
1904
1921
  * on a Tesouro-hosted asset a host page's content-security policy can block,
1905
1922
  * and a bundled bank-name→URL table would put internal CDN links in the
1906
1923
  * published package (PLAT-1179, embedded ADR 0005). Omit it and the card face
1907
- * renders without a logo rather than with a placeholder.
1924
+ * renders without a logo rather than with a placeholder. Ignored when
1925
+ * `cardArtSrc` is supplied.
1908
1926
  */
1909
1927
  bankLogoSrc?: string;
1910
1928
  bankLogoAlt?: string;
@@ -2264,11 +2282,16 @@ interface CardsWidgetProps extends WidgetProviderProps {
2264
2282
  bankLogoSrc?: string;
2265
2283
  bankLogoAlt?: string;
2266
2284
  /**
2267
- * Plastic art for the built-in debit create sheet. Forwarded verbatim into
2268
- * nested `CreateCardWidget`. Required for that sheet: omitting it (with no
2285
+ * Plastic art for the built-in debit create sheet, and (EMBD-5466) for the
2286
+ * details panel's card face — forwarded verbatim into both nested
2287
+ * `CreateCardWidget` and `CardDetailsWidget`, so a card created in this
2288
+ * widget's own sheet and that same card's later details view show the same
2289
+ * artwork. Required for the create sheet specifically: omitting it (with no
2269
2290
  * host `onCreateCard`) hides Create card rather than opening a panel that
2270
- * cannot render. Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package
2271
- * ships no card artwork.
2291
+ * cannot render. The details panel has no such requirement — omitting it
2292
+ * just falls back to `bankLogoSrc`, same as `CardDetailsWidget` on its own.
2293
+ * Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package ships no
2294
+ * card artwork.
2272
2295
  */
2273
2296
  cardArtSrc?: string;
2274
2297
  /**
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
14
14
  import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetInitStaleForToken as C, useWidgetLoading as w } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
15
15
  import { BankAccountsWidget as T } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
16
16
  import { CounterpartsWidget as E } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
17
- import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
17
+ import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js";
18
18
  import { CardDetailsWidget as O } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
19
19
  import { CreditCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
20
20
  import { DebitCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -21,6 +21,11 @@ interface CardDetailsCardFaceLabels {
21
21
  interface CardDetailsFieldLabels {
22
22
  cardholder: string;
23
23
  nickname: string;
24
+ /**
25
+ * Heading for the billing-address block (EMBD-5466 restyle): one section,
26
+ * one heading, with each address line as its own copyable line inside it
27
+ * rather than a separately-labeled row per line.
28
+ */
24
29
  billingAddress: string;
25
30
  /** Sub-header over the merchant categories / velocity control rows. */
26
31
  cardControlsHeading: string;
@@ -31,7 +36,10 @@ interface CardDetailsFieldLabels {
31
36
  emptyValue: string;
32
37
  copyCardholderAriaLabel: string;
33
38
  copyNicknameAriaLabel: string;
34
- copyBillingAddressAriaLabel: string;
39
+ copyBillingAddressLine1AriaLabel: string;
40
+ copyBillingAddressLine2AriaLabel: string;
41
+ copyBillingAddressCityStateAriaLabel: string;
42
+ copyBillingAddressPostalCodeAriaLabel: string;
35
43
  }
36
44
  /** Copy for the controls the owner can switch on alongside the details. */
37
45
  interface CardDetailsActionLabels {
@@ -928,13 +936,23 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
928
936
  activateLabels?: PartialDeep<ActivateCardPanelLabels>;
929
937
  /** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
930
938
  featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
939
+ /**
940
+ * Full per-tenant plastic art (EMBD-5466) — the same asset `CreateCardWidget`
941
+ * shows for this tenant, e.g. from `CardsWidgetProps.cardArtSrc`. Takes
942
+ * priority over `bankLogoSrc`, per `CardFace`'s own doc comment. Same
943
+ * PLAT-1179 / embedded ADR 0005 reason as `bankLogoSrc` below: the package
944
+ * ships no card artwork of its own, so a host or white-label config supplies
945
+ * this rather than a bundled lookup table.
946
+ */
947
+ cardArtSrc?: string;
931
948
  /**
932
949
  * Bank logo for the card face. The widget ships no bank artwork of its own and
933
950
  * resolves none from the init response: an embeddable library must not depend
934
951
  * on a Tesouro-hosted asset a host page's content-security policy can block,
935
952
  * and a bundled bank-name→URL table would put internal CDN links in the
936
953
  * published package (PLAT-1179, embedded ADR 0005). Omit it and the card face
937
- * renders without a logo rather than with a placeholder.
954
+ * renders without a logo rather than with a placeholder. Ignored when
955
+ * `cardArtSrc` is supplied.
938
956
  */
939
957
  bankLogoSrc?: string;
940
958
  bankLogoAlt?: string;
@@ -775,6 +775,11 @@ interface CardDetailsCardFaceLabels {
775
775
  interface CardDetailsFieldLabels {
776
776
  cardholder: string;
777
777
  nickname: string;
778
+ /**
779
+ * Heading for the billing-address block (EMBD-5466 restyle): one section,
780
+ * one heading, with each address line as its own copyable line inside it
781
+ * rather than a separately-labeled row per line.
782
+ */
778
783
  billingAddress: string;
779
784
  /** Sub-header over the merchant categories / velocity control rows. */
780
785
  cardControlsHeading: string;
@@ -785,7 +790,10 @@ interface CardDetailsFieldLabels {
785
790
  emptyValue: string;
786
791
  copyCardholderAriaLabel: string;
787
792
  copyNicknameAriaLabel: string;
788
- copyBillingAddressAriaLabel: string;
793
+ copyBillingAddressLine1AriaLabel: string;
794
+ copyBillingAddressLine2AriaLabel: string;
795
+ copyBillingAddressCityStateAriaLabel: string;
796
+ copyBillingAddressPostalCodeAriaLabel: string;
789
797
  }
790
798
  /** Copy for the controls the owner can switch on alongside the details. */
791
799
  interface CardDetailsActionLabels {
@@ -1009,13 +1017,23 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
1009
1017
  activateLabels?: PartialDeep<ActivateCardPanelLabels>;
1010
1018
  /** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
1011
1019
  featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
1020
+ /**
1021
+ * Full per-tenant plastic art (EMBD-5466) — the same asset `CreateCardWidget`
1022
+ * shows for this tenant, e.g. from `CardsWidgetProps.cardArtSrc`. Takes
1023
+ * priority over `bankLogoSrc`, per `CardFace`'s own doc comment. Same
1024
+ * PLAT-1179 / embedded ADR 0005 reason as `bankLogoSrc` below: the package
1025
+ * ships no card artwork of its own, so a host or white-label config supplies
1026
+ * this rather than a bundled lookup table.
1027
+ */
1028
+ cardArtSrc?: string;
1012
1029
  /**
1013
1030
  * Bank logo for the card face. The widget ships no bank artwork of its own and
1014
1031
  * resolves none from the init response: an embeddable library must not depend
1015
1032
  * on a Tesouro-hosted asset a host page's content-security policy can block,
1016
1033
  * and a bundled bank-name→URL table would put internal CDN links in the
1017
1034
  * published package (PLAT-1179, embedded ADR 0005). Omit it and the card face
1018
- * renders without a logo rather than with a placeholder.
1035
+ * renders without a logo rather than with a placeholder. Ignored when
1036
+ * `cardArtSrc` is supplied.
1019
1037
  */
1020
1038
  bankLogoSrc?: string;
1021
1039
  bankLogoAlt?: string;
@@ -1360,11 +1378,16 @@ interface CardsWidgetProps extends WidgetProviderProps {
1360
1378
  bankLogoSrc?: string;
1361
1379
  bankLogoAlt?: string;
1362
1380
  /**
1363
- * Plastic art for the built-in debit create sheet. Forwarded verbatim into
1364
- * nested `CreateCardWidget`. Required for that sheet: omitting it (with no
1381
+ * Plastic art for the built-in debit create sheet, and (EMBD-5466) for the
1382
+ * details panel's card face — forwarded verbatim into both nested
1383
+ * `CreateCardWidget` and `CardDetailsWidget`, so a card created in this
1384
+ * widget's own sheet and that same card's later details view show the same
1385
+ * artwork. Required for the create sheet specifically: omitting it (with no
1365
1386
  * host `onCreateCard`) hides Create card rather than opening a panel that
1366
- * cannot render. Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package
1367
- * ships no card artwork.
1387
+ * cannot render. The details panel has no such requirement — omitting it
1388
+ * just falls back to `bankLogoSrc`, same as `CardDetailsWidget` on its own.
1389
+ * Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package ships no
1390
+ * card artwork.
1368
1391
  */
1369
1392
  cardArtSrc?: string;
1370
1393
  /**
@@ -775,6 +775,11 @@ interface CardDetailsCardFaceLabels {
775
775
  interface CardDetailsFieldLabels {
776
776
  cardholder: string;
777
777
  nickname: string;
778
+ /**
779
+ * Heading for the billing-address block (EMBD-5466 restyle): one section,
780
+ * one heading, with each address line as its own copyable line inside it
781
+ * rather than a separately-labeled row per line.
782
+ */
778
783
  billingAddress: string;
779
784
  /** Sub-header over the merchant categories / velocity control rows. */
780
785
  cardControlsHeading: string;
@@ -785,7 +790,10 @@ interface CardDetailsFieldLabels {
785
790
  emptyValue: string;
786
791
  copyCardholderAriaLabel: string;
787
792
  copyNicknameAriaLabel: string;
788
- copyBillingAddressAriaLabel: string;
793
+ copyBillingAddressLine1AriaLabel: string;
794
+ copyBillingAddressLine2AriaLabel: string;
795
+ copyBillingAddressCityStateAriaLabel: string;
796
+ copyBillingAddressPostalCodeAriaLabel: string;
789
797
  }
790
798
  /** Copy for the controls the owner can switch on alongside the details. */
791
799
  interface CardDetailsActionLabels {
@@ -1009,13 +1017,23 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
1009
1017
  activateLabels?: PartialDeep<ActivateCardPanelLabels>;
1010
1018
  /** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
1011
1019
  featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
1020
+ /**
1021
+ * Full per-tenant plastic art (EMBD-5466) — the same asset `CreateCardWidget`
1022
+ * shows for this tenant, e.g. from `CardsWidgetProps.cardArtSrc`. Takes
1023
+ * priority over `bankLogoSrc`, per `CardFace`'s own doc comment. Same
1024
+ * PLAT-1179 / embedded ADR 0005 reason as `bankLogoSrc` below: the package
1025
+ * ships no card artwork of its own, so a host or white-label config supplies
1026
+ * this rather than a bundled lookup table.
1027
+ */
1028
+ cardArtSrc?: string;
1012
1029
  /**
1013
1030
  * Bank logo for the card face. The widget ships no bank artwork of its own and
1014
1031
  * resolves none from the init response: an embeddable library must not depend
1015
1032
  * on a Tesouro-hosted asset a host page's content-security policy can block,
1016
1033
  * and a bundled bank-name→URL table would put internal CDN links in the
1017
1034
  * published package (PLAT-1179, embedded ADR 0005). Omit it and the card face
1018
- * renders without a logo rather than with a placeholder.
1035
+ * renders without a logo rather than with a placeholder. Ignored when
1036
+ * `cardArtSrc` is supplied.
1019
1037
  */
1020
1038
  bankLogoSrc?: string;
1021
1039
  bankLogoAlt?: string;
@@ -1360,11 +1378,16 @@ interface CardsWidgetProps extends WidgetProviderProps {
1360
1378
  bankLogoSrc?: string;
1361
1379
  bankLogoAlt?: string;
1362
1380
  /**
1363
- * Plastic art for the built-in debit create sheet. Forwarded verbatim into
1364
- * nested `CreateCardWidget`. Required for that sheet: omitting it (with no
1381
+ * Plastic art for the built-in debit create sheet, and (EMBD-5466) for the
1382
+ * details panel's card face — forwarded verbatim into both nested
1383
+ * `CreateCardWidget` and `CardDetailsWidget`, so a card created in this
1384
+ * widget's own sheet and that same card's later details view show the same
1385
+ * artwork. Required for the create sheet specifically: omitting it (with no
1365
1386
  * host `onCreateCard`) hides Create card rather than opening a panel that
1366
- * cannot render. Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package
1367
- * ships no card artwork.
1387
+ * cannot render. The details panel has no such requirement — omitting it
1388
+ * just falls back to `bankLogoSrc`, same as `CardDetailsWidget` on its own.
1389
+ * Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package ships no
1390
+ * card artwork.
1368
1391
  */
1369
1392
  cardArtSrc?: string;
1370
1393
  /**
@@ -944,6 +944,11 @@ interface CardDetailsCardFaceLabels {
944
944
  interface CardDetailsFieldLabels {
945
945
  cardholder: string;
946
946
  nickname: string;
947
+ /**
948
+ * Heading for the billing-address block (EMBD-5466 restyle): one section,
949
+ * one heading, with each address line as its own copyable line inside it
950
+ * rather than a separately-labeled row per line.
951
+ */
947
952
  billingAddress: string;
948
953
  /** Sub-header over the merchant categories / velocity control rows. */
949
954
  cardControlsHeading: string;
@@ -954,7 +959,10 @@ interface CardDetailsFieldLabels {
954
959
  emptyValue: string;
955
960
  copyCardholderAriaLabel: string;
956
961
  copyNicknameAriaLabel: string;
957
- copyBillingAddressAriaLabel: string;
962
+ copyBillingAddressLine1AriaLabel: string;
963
+ copyBillingAddressLine2AriaLabel: string;
964
+ copyBillingAddressCityStateAriaLabel: string;
965
+ copyBillingAddressPostalCodeAriaLabel: string;
958
966
  }
959
967
  /** Copy for the controls the owner can switch on alongside the details. */
960
968
  interface CardDetailsActionLabels {
@@ -1178,13 +1186,23 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
1178
1186
  activateLabels?: PartialDeep<ActivateCardPanelLabels>;
1179
1187
  /** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
1180
1188
  featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
1189
+ /**
1190
+ * Full per-tenant plastic art (EMBD-5466) — the same asset `CreateCardWidget`
1191
+ * shows for this tenant, e.g. from `CardsWidgetProps.cardArtSrc`. Takes
1192
+ * priority over `bankLogoSrc`, per `CardFace`'s own doc comment. Same
1193
+ * PLAT-1179 / embedded ADR 0005 reason as `bankLogoSrc` below: the package
1194
+ * ships no card artwork of its own, so a host or white-label config supplies
1195
+ * this rather than a bundled lookup table.
1196
+ */
1197
+ cardArtSrc?: string;
1181
1198
  /**
1182
1199
  * Bank logo for the card face. The widget ships no bank artwork of its own and
1183
1200
  * resolves none from the init response: an embeddable library must not depend
1184
1201
  * on a Tesouro-hosted asset a host page's content-security policy can block,
1185
1202
  * and a bundled bank-name→URL table would put internal CDN links in the
1186
1203
  * published package (PLAT-1179, embedded ADR 0005). Omit it and the card face
1187
- * renders without a logo rather than with a placeholder.
1204
+ * renders without a logo rather than with a placeholder. Ignored when
1205
+ * `cardArtSrc` is supplied.
1188
1206
  */
1189
1207
  bankLogoSrc?: string;
1190
1208
  bankLogoAlt?: string;
@@ -1529,11 +1547,16 @@ interface CardsWidgetProps extends WidgetProviderProps {
1529
1547
  bankLogoSrc?: string;
1530
1548
  bankLogoAlt?: string;
1531
1549
  /**
1532
- * Plastic art for the built-in debit create sheet. Forwarded verbatim into
1533
- * nested `CreateCardWidget`. Required for that sheet: omitting it (with no
1550
+ * Plastic art for the built-in debit create sheet, and (EMBD-5466) for the
1551
+ * details panel's card face — forwarded verbatim into both nested
1552
+ * `CreateCardWidget` and `CardDetailsWidget`, so a card created in this
1553
+ * widget's own sheet and that same card's later details view show the same
1554
+ * artwork. Required for the create sheet specifically: omitting it (with no
1534
1555
  * host `onCreateCard`) hides Create card rather than opening a panel that
1535
- * cannot render. Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package
1536
- * ships no card artwork.
1556
+ * cannot render. The details panel has no such requirement — omitting it
1557
+ * just falls back to `bankLogoSrc`, same as `CardDetailsWidget` on its own.
1558
+ * Same PLAT-1179 / ADR 0005 rule as `bankLogoSrc` — the package ships no
1559
+ * card artwork.
1537
1560
  */
1538
1561
  cardArtSrc?: string;
1539
1562
  /**
@@ -263,7 +263,8 @@ async function q({ client: e, organizationId: t, payableId: n }) {
263
263
  return await y({
264
264
  client: e,
265
265
  organizationId: t,
266
- payableId: n
266
+ payableId: n,
267
+ includeLineItems: !0
267
268
  }), o;
268
269
  }
269
270
  //#endregion
@@ -10,23 +10,23 @@ import "./index14.js";
10
10
  import "./index27.js";
11
11
  import "./index28.js";
12
12
  import "./index39.js";
13
- import "./index41.js";
14
- import "./index47.js";
15
- import "./index56.js";
16
- import "./index58.js";
17
- import "./index60.js";
13
+ import "./index42.js";
14
+ import "./index48.js";
15
+ import "./index57.js";
16
+ import "./index59.js";
18
17
  import "./index61.js";
19
18
  import "./index62.js";
20
19
  import "./index63.js";
21
20
  import "./index64.js";
22
- import "./index68.js";
21
+ import "./index65.js";
23
22
  import "./index69.js";
24
23
  import "./index70.js";
25
24
  import "./index71.js";
26
25
  import "./index72.js";
27
- import "./index75.js";
28
- import "./index81.js";
26
+ import "./index73.js";
27
+ import "./index76.js";
29
28
  import "./index82.js";
30
29
  import "./index83.js";
31
- import { BillPayWidget as e } from "./index87.js";
30
+ import "./index84.js";
31
+ import { BillPayWidget as e } from "./index88.js";
32
32
  export { e as BillPayWidget };
@@ -1,94 +1,7 @@
1
- import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { derivePayableStatus as t } from "./index7.js";
3
- import { resolveVendor as n, resolveVendorName as r } from "./index8.js";
4
- import { formatBillMoney as i } from "./index2.js";
5
- import { resolveLineItemAmountMinorUnits as a } from "./index40.js";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
7
- function o({ payable: o, lineItems: c, ledgerAccounts: l, labels: u, hasScheduledPayment: d, now: f, rejection: p, achInstructions: m, achInstructionsReadable: h = !1 }) {
8
- let g = o.currency, _ = (e) => i(e, g), v = t({
9
- apiStatus: o.status,
10
- dueDate: o.due_date,
11
- scheduledPaymentDate: o.scheduled_payment_date,
12
- hasScheduledPayment: d,
13
- now: f
14
- }), y = n(o), b = r(o), x = e(o.issued_at) || u.notProvided, S = e(o.due_date) || u.notProvided, C = [{
15
- label: u.vendorRow,
16
- value: b || u.notProvided,
17
- secondaryValue: y?.email ?? void 0
18
- }], w = h ? m?.account_number : void 0;
19
- w && C.push({
20
- label: u.bankAccountRow,
21
- value: u.bankAccountValue(w.slice(-4))
22
- });
23
- let T = [
24
- {
25
- label: u.invoiceNumberRow,
26
- value: o.document_id || u.notProvided
27
- },
28
- {
29
- label: u.issueDateRow,
30
- value: x
31
- },
32
- {
33
- label: u.dueDateRow,
34
- value: S
35
- },
36
- {
37
- label: u.poNumberRow,
38
- value: u.notProvided
39
- }
40
- ], E = new Map(l.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), D = c.map((e) => {
41
- let t = _(e.unit_price);
42
- return {
43
- id: e.id,
44
- description: e.name ?? e.description ?? "",
45
- glCodeLabel: (e.ledger_account_id ? E.get(e.ledger_account_id) : void 0) || u.glCodeMissing,
46
- quantityLabel: e.quantity != null && t ? u.quantityValue(String(e.quantity), t) : "",
47
- amountLabel: _(a(e)) ?? ""
48
- };
49
- }), O = [
50
- {
51
- label: u.subtotalRow,
52
- value: o.subtotal
53
- },
54
- {
55
- label: u.discountsRow,
56
- value: o.discount
57
- },
58
- {
59
- label: u.taxRow,
60
- value: o.tax_amount
61
- }
62
- ].map(({ label: e, value: t }) => ({
63
- label: e,
64
- value: _(t)
65
- })).filter((e) => !!e.value), k = _(o.total_amount);
66
- k && O.push({
67
- label: u.totalRow,
68
- value: k,
69
- emphasis: !0
70
- });
71
- let A = s(o);
72
- return {
73
- title: b,
74
- subtitle: u.subtitle,
75
- status: v.status,
76
- statusTone: v.tone,
77
- amountDueLabel: _(o.amount_due) ?? _(o.total_amount) ?? "",
78
- amountPaidLabel: A ? _(o.amount_paid) : void 0,
79
- paidOnLabel: A ? u.paidOnLabel(A) : void 0,
80
- invoiceDateLabel: x,
81
- dueDateLabel: S,
82
- dueDateTone: v.isOverdue ? "danger" : "default",
83
- payToItems: C,
84
- invoiceItems: T,
85
- lineItems: D,
86
- totals: O,
87
- rejection: p
88
- };
89
- }
90
- function s(t) {
91
- return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
2
+ var e = (e) => typeof e == "number" && Number.isFinite(e) && e > 0;
3
+ function t({ quantity: t, unit_price: n, subtotal: r }) {
4
+ return e(t) ? t : e(n) && e(r) && r % n === 0 ? r / n : 1;
92
5
  }
93
6
  //#endregion
94
- export { s as getPaidAtLabel, o as mapPayableToBillDetails };
7
+ export { t as resolveLineItemQuantity };