@tesouro/embedded-components-react 0.5.116 → 0.5.118

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 (163) hide show
  1. package/README.md +6 -6
  2. package/dist/index.css +13 -6
  3. package/dist/index.d.ts +31 -4
  4. package/dist/index.js +5 -4
  5. package/dist/lib/MarketingWidget.d.ts +31 -4
  6. package/dist/lib/MarketingWidget.js +3 -2
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  21. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  22. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  44. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  45. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  46. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  48. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  49. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  50. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  51. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  52. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  53. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  54. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  55. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  58. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  59. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  60. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  66. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  67. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  68. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -2
  69. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
  70. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +27 -23
  71. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -3
  72. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +3 -1
  73. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +8 -17
  74. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js +10 -80
  75. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +16 -72
  76. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js +45 -0
  77. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js +109 -0
  78. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +88 -0
  79. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  80. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  81. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  82. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  83. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  105. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  106. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  108. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  109. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  110. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  111. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  112. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  113. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  114. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  115. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  116. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  117. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  118. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  119. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  120. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  122. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  123. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  124. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  125. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  126. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  127. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  131. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  132. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  134. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  135. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  136. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  137. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  138. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  139. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  140. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  141. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  142. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  143. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  144. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  145. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  146. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  147. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  148. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  149. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  150. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  151. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  152. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  153. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  154. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  155. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  156. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  157. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  158. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  159. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  160. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  161. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  162. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  163. package/package.json +1 -1
package/README.md CHANGED
@@ -477,17 +477,17 @@ A self-contained widget that walks an applicant through the embedded bank-accoun
477
477
 
478
478
  ### MarketingWidget
479
479
 
480
- A self-contained marketing card and modal that presents host-supplied banking product copy (logo, captions, benefits, colors). The host wires the modal's primary CTA to whatever should happen next — typically opening `BankAccountOnboardingWidget`.
480
+ A self-contained marketing card and modal that presents host-supplied banking product copy (logo, captions, "How it works" steps, benefits, colors). The card renders two CTAs — Apply now and Learn more — and the modal's own CTA. The host wires all three to whatever should happen next — typically opening `BankAccountOnboardingWidget`.
481
481
 
482
482
  The widget renders nothing until widget init resolves, and hides itself when the caller is already onboarded (`ACTIVE` / `INACTIVE`), invited (`INVITED`), or their organization already has a bank-account application (`COMPLETE`, or started by another member). A `NOT_FOUND` colleague of an onboarded org therefore does not see an Apply CTA. Tenant-specific assets and copy are always passed in as `content` — the published package does not look up white-label or bank maps.
483
483
 
484
484
  #### Props
485
485
 
486
- | Prop | Type | Required | Description |
487
- | ------------------- | ------------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------- |
488
- | `content` | `MarketingWidgetContent` | Yes | Host-resolved card and modal copy, images, and appearance. |
489
- | `onPrimaryCtaClick` | `() => void` | Yes | Called when the applicant clicks the modal CTA (default label: Apply for an account). Closes the modal first. |
490
- | `labels` | `PartialDeep<MarketingWidgetLabels>` | No | Override Learn more, Apply, and the modal dismiss `aria-label`. |
486
+ | Prop | Type | Required | Description |
487
+ | ------------------- | ------------------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
488
+ | `content` | `MarketingWidgetContent` | Yes | Host-resolved card and modal copy, images, "How it works" steps, benefits, and appearance. |
489
+ | `onPrimaryCtaClick` | `() => void` | Yes | Called when the applicant clicks Apply now on the card or the modal CTA (default label: Start application). Closes the modal first. |
490
+ | `labels` | `PartialDeep<MarketingWidgetLabels>` | No | Override Apply now, Learn more, the modal CTA + subtext, and the modal dismiss `aria-label`. |
491
491
 
492
492
  ### ProductsWidget
493
493
 
package/dist/index.css CHANGED
@@ -674,6 +674,10 @@
674
674
  width: 22px;
675
675
  height: 22px;
676
676
  }
677
+ .ttw\:size-\[23px\] {
678
+ width: 23px;
679
+ height: 23px;
680
+ }
677
681
  .ttw\:size-\[65px\] {
678
682
  width: 65px;
679
683
  height: 65px;
@@ -1238,9 +1242,6 @@
1238
1242
  .ttw\:w-\[82\%\] {
1239
1243
  width: 82%;
1240
1244
  }
1241
- .ttw\:w-\[83\%\] {
1242
- width: 83%;
1243
- }
1244
1245
  .ttw\:w-\[85\%\] {
1245
1246
  width: 85%;
1246
1247
  }
@@ -1901,6 +1902,9 @@
1901
1902
  margin-block-start: calc(calc(var(--ttw-spacing) * 8) * var(--tw-space-y-reverse));
1902
1903
  margin-block-end: calc(calc(var(--ttw-spacing) * 8) * calc(1 - var(--tw-space-y-reverse)));
1903
1904
  }
1905
+ .ttw\:gap-x-2 {
1906
+ column-gap: calc(var(--ttw-spacing) * 2);
1907
+ }
1904
1908
  .ttw\:gap-x-4 {
1905
1909
  column-gap: calc(var(--ttw-spacing) * 4);
1906
1910
  }
@@ -2916,6 +2920,9 @@
2916
2920
  .ttw\:p-\[3px\] {
2917
2921
  padding: 3px;
2918
2922
  }
2923
+ .ttw\:p-\[18px\] {
2924
+ padding: 18px;
2925
+ }
2919
2926
  .ttw\:\!px-0 {
2920
2927
  padding-inline: 0px !important;
2921
2928
  }
@@ -3258,9 +3265,6 @@
3258
3265
  .ttw\:text-\[0\.8rem\] {
3259
3266
  font-size: 0.8rem;
3260
3267
  }
3261
- .ttw\:text-\[1\.35rem\] {
3262
- font-size: 1.35rem;
3263
- }
3264
3268
  .ttw\:text-\[9px\] {
3265
3269
  font-size: 9px;
3266
3270
  }
@@ -3697,6 +3701,9 @@
3697
3701
  .ttw\:opacity-70 {
3698
3702
  opacity: 70%;
3699
3703
  }
3704
+ .ttw\:opacity-90 {
3705
+ opacity: 90%;
3706
+ }
3700
3707
  .ttw\:opacity-100 {
3701
3708
  opacity: 100%;
3702
3709
  }
package/dist/index.d.ts CHANGED
@@ -4660,8 +4660,11 @@ interface LinkedAccountsWidgetProps extends WidgetProviderProps {
4660
4660
  declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
4661
4661
 
4662
4662
  interface MarketingWidgetLabels {
4663
+ applyNow: string;
4663
4664
  learnMore: string;
4664
4665
  primaryCta: string;
4666
+ /** Small caption next to the modal CTA, e.g. "takes about 5 minutes". */
4667
+ primaryCtaSubtext: string;
4665
4668
  dismissModalAriaLabel: string;
4666
4669
  }
4667
4670
  declare const MARKETING_WIDGET_LABELS_EN: MarketingWidgetLabels;
@@ -4679,6 +4682,24 @@ interface MarketingWidgetAppearance {
4679
4682
  boxShadow: string;
4680
4683
  modalBackgroundColor: string;
4681
4684
  }
4685
+ declare const MarketingBenefitIcon: {
4686
+ readonly Sync: "sync";
4687
+ readonly Users: "users";
4688
+ readonly Document: "document";
4689
+ readonly Dollar: "dollar";
4690
+ readonly Card: "card";
4691
+ };
4692
+ type MarketingBenefitIcon = (typeof MarketingBenefitIcon)[keyof typeof MarketingBenefitIcon];
4693
+ interface MarketingWidgetBenefit {
4694
+ text: string;
4695
+ icon: MarketingBenefitIcon;
4696
+ }
4697
+ interface MarketingWidgetHowItWorksStep {
4698
+ /** Caller-supplied step badge text, e.g. "1" — the component never derives this from position. */
4699
+ number: string;
4700
+ title: string;
4701
+ description: string;
4702
+ }
4682
4703
  interface MarketingWidgetContent {
4683
4704
  vspLogo: MarketingWidgetImage;
4684
4705
  bankingText: string;
@@ -4686,9 +4707,15 @@ interface MarketingWidgetContent {
4686
4707
  secondaryCaption: string;
4687
4708
  /** Full card/modal attribution, e.g. "Provided by Zenith Bank, Member FDIC". */
4688
4709
  providedByCaption: string;
4689
- modalPrimaryImg: MarketingWidgetImage;
4690
4710
  primaryModalHeader: string;
4691
- benefits: string[];
4711
+ /** Section heading above `howItWorksSteps`, e.g. "How it works". */
4712
+ howItWorksHeader: string;
4713
+ /** Numbered steps shown in the modal. A VSP may supply any number of steps;
4714
+ * the section is omitted entirely when the array is empty. */
4715
+ howItWorksSteps: MarketingWidgetHowItWorksStep[];
4716
+ /** Section heading above the benefits grid, e.g. "FROM DAY ONE". */
4717
+ fromDayOneHeader: string;
4718
+ benefits: MarketingWidgetBenefit[];
4692
4719
  appearance: MarketingWidgetAppearance;
4693
4720
  }
4694
4721
 
@@ -4921,5 +4948,5 @@ interface CheckAmountAndDetailScreenProps {
4921
4948
 
4922
4949
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
4923
4950
 
4924
- export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, 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, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
4925
- export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetContent, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
4951
+ export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, 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, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
4952
+ export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
package/dist/index.js CHANGED
@@ -59,13 +59,14 @@ import { LinkedAccountsWidget as te } from "./libs/tesouro-embedded-components-r
59
59
  import "./lib/LinkedAccountsWidget.js";
60
60
  import "./lib/BankAccountOnboardingWidget.js";
61
61
  import { MARKETING_WIDGET_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
62
- import { MarketingWidget as re } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
62
+ import { MarketingBenefitIcon as re } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
63
+ import { MarketingWidget as ie } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
63
64
  import "./lib/MarketingWidget.js";
64
- import { ProductsWidget as ie } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
65
+ import { ProductsWidget as ae } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
65
66
  import "./lib/ProductsWidget.js";
66
67
  import "./lib/ReceivablesWidget.js";
67
68
  import "./lib/SettingsWidget.js";
68
69
  import "./lib/TransfersWidget.js";
69
- import { WidgetProvider as ae } from "./lib/WidgetProviderPublic.js";
70
+ import { WidgetProvider as oe } from "./lib/WidgetProviderPublic.js";
70
71
  import "./lib/WidgetProvider.js";
71
- export { q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Y as ADDITIONAL_OWNERS_LABELS_EN, J as AcceptDisclosuresWidget, j as BALANCES_WIDGET_LABELS_EN, X as BUSINESS_DETAILS_LABELS_EN, M as BalancesWidget, $ as BankAccountOnboardingWidget, T as BankAccountsWidget, D as BillPayWidget, O as CardDetailsWidget, E as CounterpartsWidget, k as CreditCardsWidget, A as DebitCardsWidget, s as ERROR_STATE_ID, V as ExpenseManagementWidget, H as HELP_FAQ_EN, N as INSIGHTS_FEATURE_LABELS_EN, P as INSIGHTS_WIDGET_LABELS_EN, c as Implementation, I as InsightsWidget, L as InvoicingWidget, te as LinkedAccountsWidget, ne as MARKETING_WIDGET_LABELS_EN, re as MarketingWidget, Z as PERSONAL_DETAILS_LABELS_EN, ie as ProductsWidget, Q as RESULT_LABELS_EN, R as ReceivablesWidget, _ as RefreshingRootWidgetProvider, m as RootWidgetProvider, F as SINGLE_INSIGHT_LABELS_EN, z as SettingsSection, U as SettingsWidget, W as TRANSFERS_FEATURE_LABELS_EN, G as TRANSFERS_WIDGET_LABELS_EN, K as TransfersWidget, i as UIFramework, B as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ae as WidgetProvider, ee 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 useWidgetInitStaleForToken, w as useWidgetLoading, g as useWidgetToken };
72
+ export { q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Y as ADDITIONAL_OWNERS_LABELS_EN, J as AcceptDisclosuresWidget, j as BALANCES_WIDGET_LABELS_EN, X as BUSINESS_DETAILS_LABELS_EN, M as BalancesWidget, $ as BankAccountOnboardingWidget, T as BankAccountsWidget, D as BillPayWidget, O as CardDetailsWidget, E as CounterpartsWidget, k as CreditCardsWidget, A as DebitCardsWidget, s as ERROR_STATE_ID, V as ExpenseManagementWidget, H as HELP_FAQ_EN, N as INSIGHTS_FEATURE_LABELS_EN, P as INSIGHTS_WIDGET_LABELS_EN, c as Implementation, I as InsightsWidget, L as InvoicingWidget, te as LinkedAccountsWidget, ne as MARKETING_WIDGET_LABELS_EN, re as MarketingBenefitIcon, ie as MarketingWidget, Z as PERSONAL_DETAILS_LABELS_EN, ae as ProductsWidget, Q as RESULT_LABELS_EN, R as ReceivablesWidget, _ as RefreshingRootWidgetProvider, m as RootWidgetProvider, F as SINGLE_INSIGHT_LABELS_EN, z as SettingsSection, U as SettingsWidget, W as TRANSFERS_FEATURE_LABELS_EN, G as TRANSFERS_WIDGET_LABELS_EN, K as TransfersWidget, i as UIFramework, B as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, oe as WidgetProvider, ee 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 useWidgetInitStaleForToken, w as useWidgetLoading, g as useWidgetToken };
@@ -4,8 +4,11 @@ import { PartialDeep } from 'type-fest';
4
4
  import { FallbackProps } from 'react-error-boundary';
5
5
 
6
6
  interface MarketingWidgetLabels {
7
+ applyNow: string;
7
8
  learnMore: string;
8
9
  primaryCta: string;
10
+ /** Small caption next to the modal CTA, e.g. "takes about 5 minutes". */
11
+ primaryCtaSubtext: string;
9
12
  dismissModalAriaLabel: string;
10
13
  }
11
14
  declare const MARKETING_WIDGET_LABELS_EN: MarketingWidgetLabels;
@@ -23,6 +26,24 @@ interface MarketingWidgetAppearance {
23
26
  boxShadow: string;
24
27
  modalBackgroundColor: string;
25
28
  }
29
+ declare const MarketingBenefitIcon: {
30
+ readonly Sync: "sync";
31
+ readonly Users: "users";
32
+ readonly Document: "document";
33
+ readonly Dollar: "dollar";
34
+ readonly Card: "card";
35
+ };
36
+ type MarketingBenefitIcon = (typeof MarketingBenefitIcon)[keyof typeof MarketingBenefitIcon];
37
+ interface MarketingWidgetBenefit {
38
+ text: string;
39
+ icon: MarketingBenefitIcon;
40
+ }
41
+ interface MarketingWidgetHowItWorksStep {
42
+ /** Caller-supplied step badge text, e.g. "1" — the component never derives this from position. */
43
+ number: string;
44
+ title: string;
45
+ description: string;
46
+ }
26
47
  interface MarketingWidgetContent {
27
48
  vspLogo: MarketingWidgetImage;
28
49
  bankingText: string;
@@ -30,9 +51,15 @@ interface MarketingWidgetContent {
30
51
  secondaryCaption: string;
31
52
  /** Full card/modal attribution, e.g. "Provided by Zenith Bank, Member FDIC". */
32
53
  providedByCaption: string;
33
- modalPrimaryImg: MarketingWidgetImage;
34
54
  primaryModalHeader: string;
35
- benefits: string[];
55
+ /** Section heading above `howItWorksSteps`, e.g. "How it works". */
56
+ howItWorksHeader: string;
57
+ /** Numbered steps shown in the modal. A VSP may supply any number of steps;
58
+ * the section is omitted entirely when the array is empty. */
59
+ howItWorksSteps: MarketingWidgetHowItWorksStep[];
60
+ /** Section heading above the benefits grid, e.g. "FROM DAY ONE". */
61
+ fromDayOneHeader: string;
62
+ benefits: MarketingWidgetBenefit[];
36
63
  appearance: MarketingWidgetAppearance;
37
64
  }
38
65
 
@@ -680,5 +707,5 @@ type MarketingWidgetProps = WidgetProviderProps & InnerProps;
680
707
  */
681
708
  declare function MarketingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: MarketingWidgetProps): React.JSX.Element;
682
709
 
683
- export { MARKETING_WIDGET_LABELS_EN, MarketingWidget };
684
- export type { MarketingWidgetAppearance, MarketingWidgetContent, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps };
710
+ export { MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget };
711
+ export type { MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps };
@@ -1,4 +1,5 @@
1
1
  import { MARKETING_WIDGET_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
2
- import { MarketingWidget as t } from "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
2
+ import { MarketingBenefitIcon as t } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
3
+ import { MarketingWidget as n } from "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
3
4
  import "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js";
4
- export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingWidget };
5
+ export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, n as MarketingWidget };
@@ -2,10 +2,10 @@ import { OnboardingSuppressionReason as e } from "../../../shared/data-access/di
2
2
  import { useOrganizationOnboardingSuppression as t } from "../../../shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js";
3
3
  import "../../../shared/data-access/dist/index.js";
4
4
  import { ApplicationClientSecretProvider as n, useApplicationClientSecret as r } from "./index3.js";
5
- import { useCreateApplication as i } from "./index4.js";
6
- import { useUpdateApplication as a } from "./index5.js";
7
- import { useSubmitApplication as o } from "./index6.js";
8
- import { usePollApplicationCompletion as s } from "./index7.js";
9
- import { useResumableBankAccountApplication as c } from "./index9.js";
10
- import { useStartedBankAccountApplication as l } from "./index10.js";
5
+ import { useCreateApplication as i } from "./index5.js";
6
+ import { useUpdateApplication as a } from "./index6.js";
7
+ import { useSubmitApplication as o } from "./index7.js";
8
+ import { usePollApplicationCompletion as s } from "./index8.js";
9
+ import { useResumableBankAccountApplication as c } from "./index10.js";
10
+ import { useStartedBankAccountApplication as l } from "./index11.js";
11
11
  export { n as ApplicationClientSecretProvider, e as OnboardingSuppressionReason, r as useApplicationClientSecret, i as useCreateApplication, t as useOrganizationOnboardingSuppression, s as usePollApplicationCompletion, c as useResumableBankAccountApplication, l as useStartedBankAccountApplication, o as useSubmitApplication, a as useUpdateApplication };
@@ -2,40 +2,34 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getBankAccountApplicationOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { applicationStatusQueryOptions as e } from "../../../shared/data-access/dist/lib/applicationStatusQueryOptions.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
7
  import "../../../shared/data-access/dist/index.js";
10
- import { useInstallApplicationClientSecret as i } from "./index3.js";
11
- import { hasFreshAnswer as a } from "./index8.js";
12
- import { useMemo as o } from "react";
13
- import { useQuery as s } from "@tanstack/react-query";
8
+ import { hasFreshAnswer as n } from "./index9.js";
9
+ import { useQuery as r } from "@tanstack/react-query";
14
10
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js
15
- var c = (e, t) => (n, r) => {
16
- if (n === void 0 || r === void 0) return;
17
- let [i] = r.queryKey;
18
- if (i !== void 0 && i.baseUrl === e && i.path?.id === t) return n;
19
- };
20
- function l(l, u) {
21
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = e();
22
- i(l, u);
23
- let h = !!(p && l && u), g = d.getConfig().baseUrl, _ = o(() => c(g, l), [g, l]), v = s({
24
- ...r(n({
25
- client: d,
26
- path: { id: l ?? "" },
27
- headers: t(f)
28
- }), m),
29
- placeholderData: _,
30
- enabled: h,
31
- retry: 2,
32
- retryDelay: 300
33
- });
11
+ var i = "DRAFT", a = "BANK_ACCOUNT", o = "STARTED_BY_YOU";
12
+ function s(e) {
13
+ return e.find((e) => e.product === a && e.ownership === o && e.status === i && !!e.applicationId && !!e.clientSecret);
14
+ }
15
+ function c(e) {
16
+ return e.filter((e) => e.product === a && e.ownership === o).map((e) => e.applicationId).filter((e) => !!e);
17
+ }
18
+ function l() {
19
+ let { client: i, widgetToken: a, authEpoch: o } = t(), l = !!a, u = r({
20
+ ...e({
21
+ client: i,
22
+ widgetToken: a,
23
+ authEpoch: o
24
+ }),
25
+ enabled: l
26
+ }), d = l && n(u), f = d && !u.isError ? u.data?.applications ?? null : null, p = f ? s(f) : void 0;
34
27
  return {
35
- application: v.data ?? null,
36
- isResolved: !h || a(v),
37
- isUnavailable: h && v.isError
28
+ applicationId: p?.applicationId ?? null,
29
+ clientSecret: p?.clientSecret ?? null,
30
+ isResolved: d,
31
+ ownApplicationIds: f ? c(f) : null
38
32
  };
39
33
  }
40
34
  //#endregion
41
- export { l as useStartedBankAccountApplication };
35
+ export { l as useResumableBankAccountApplication };
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { getBankAccountApplicationOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { optionalOrganizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
+ import "../../../shared/data-access/dist/index.js";
10
+ import { useInstallApplicationClientSecret as i } from "./index3.js";
11
+ import { hasFreshAnswer as a } from "./index9.js";
12
+ import { useMemo as o } from "react";
13
+ import { useQuery as s } from "@tanstack/react-query";
14
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js
15
+ var c = (e, t) => (n, r) => {
16
+ if (n === void 0 || r === void 0) return;
17
+ let [i] = r.queryKey;
18
+ if (i !== void 0 && i.baseUrl === e && i.path?.id === t) return n;
19
+ };
20
+ function l(l, u) {
21
+ let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = n();
22
+ i(l, u);
23
+ let h = !!(p && l && u), g = d.getConfig().baseUrl, _ = o(() => c(g, l), [g, l]), v = s({
24
+ ...t(e({
25
+ client: d,
26
+ path: { id: l ?? "" },
27
+ headers: r(f)
28
+ }), m),
29
+ placeholderData: _,
30
+ enabled: h,
31
+ retry: 2,
32
+ retryDelay: 300
33
+ });
34
+ return {
35
+ application: v.data ?? null,
36
+ isResolved: !h || a(v),
37
+ isUnavailable: h && v.isError
38
+ };
39
+ }
40
+ //#endregion
41
+ export { l as useStartedBankAccountApplication };
@@ -1,19 +1,10 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { createApplicationMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { applicationStatusInvalidationKey as e } from "../../../shared/data-access/dist/lib/applicationStatusQueryOptions.js";
2
+ import { cancelAllClients as t, invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
8
3
  import "../../../shared/data-access/dist/index.js";
9
- import { useMutation as r } from "@tanstack/react-query";
10
4
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js
11
- function i() {
12
- let { client: i, organizationId: a } = e();
13
- return r(n({
14
- client: i,
15
- headers: t(a)
16
- }));
5
+ async function r(r) {
6
+ let i = e({ client: r });
7
+ await t(i), await n(i);
17
8
  }
18
9
  //#endregion
19
- export { i as useCreateApplication };
10
+ export { r as refreshApplicationStatus };
@@ -2,18 +2,22 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { updateApplicationMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { createApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
- import { useMutation as r } from "@tanstack/react-query";
9
+ import { refreshApplicationStatus as r } from "./index4.js";
10
+ import { useMutation as i } from "@tanstack/react-query";
10
11
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js
11
- function i() {
12
- let { client: i, organizationId: a } = e();
13
- return r(n({
14
- client: i,
15
- headers: t(a)
16
- }));
12
+ function a() {
13
+ let { client: a, organizationId: o } = t();
14
+ return i({
15
+ ...e({
16
+ client: a,
17
+ headers: n(o)
18
+ }),
19
+ onSuccess: () => r(a)
20
+ });
17
21
  }
18
22
  //#endregion
19
- export { i as useUpdateApplication };
23
+ export { a as useCreateApplication };
@@ -2,18 +2,18 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { submitApplicationMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { updateApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
9
  import { useMutation as r } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js
11
11
  function i() {
12
- let { client: i, organizationId: a } = e();
13
- return r(n({
12
+ let { client: i, organizationId: a } = t();
13
+ return r(e({
14
14
  client: i,
15
- headers: t(a)
15
+ headers: n(a)
16
16
  }));
17
17
  }
18
18
  //#endregion
19
- export { i as useSubmitApplication };
19
+ export { i as useUpdateApplication };
@@ -2,45 +2,22 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getApplicationStatus as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { submitApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
8
  import "../../../shared/data-access/dist/index.js";
8
- import { useCallback as n } from "react";
9
+ import { refreshApplicationStatus as r } from "./index4.js";
10
+ import { useMutation as i } from "@tanstack/react-query";
9
11
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js
10
- var r = 1e3, i = 6, a = "COMPLETE", o = "BANK_ACCOUNT";
11
- function s(e, t) {
12
- return new Promise((n, r) => {
13
- if (t?.aborted) {
14
- r(new DOMException("Aborted", "AbortError"));
15
- return;
16
- }
17
- let i = () => {
18
- clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
19
- }, a = setTimeout(() => {
20
- t?.removeEventListener("abort", i), n();
21
- }, e);
22
- t?.addEventListener("abort", i, { once: !0 });
12
+ function a() {
13
+ let { client: a, organizationId: o } = t();
14
+ return i({
15
+ ...e({
16
+ client: a,
17
+ headers: n(o)
18
+ }),
19
+ onSuccess: () => r(a)
23
20
  });
24
21
  }
25
- function c() {
26
- let { client: c } = e();
27
- return n(async (e, n = {}) => {
28
- let { signal: l } = n, u = !1;
29
- for (let n = 0; n < i; n++) {
30
- if (l?.aborted) throw new DOMException("Aborted", "AbortError");
31
- try {
32
- let n = await t({
33
- client: c,
34
- signal: l
35
- });
36
- if (u = !0, n.data?.applications.some((t) => t.product === o && t.applicationId === e && t.status === a)) return { status: "complete" };
37
- } catch (e) {
38
- if (e instanceof DOMException && e.name === "AbortError") throw e;
39
- }
40
- n < 5 && await s(r, l);
41
- }
42
- return u ? { status: "timeout" } : { status: "error" };
43
- }, [c]);
44
- }
45
22
  //#endregion
46
- export { c as usePollApplicationCompletion };
23
+ export { a as useSubmitApplication };
@@ -1,6 +1,46 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { getApplicationStatus as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import "../../../shared/data-access/dist/index.js";
8
+ import { useCallback as n } from "react";
1
9
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js
2
- function e(e) {
3
- return (e.isSuccess || e.isError) && !e.isFetching;
10
+ var r = 1e3, i = 6, a = "COMPLETE", o = "BANK_ACCOUNT";
11
+ function s(e, t) {
12
+ return new Promise((n, r) => {
13
+ if (t?.aborted) {
14
+ r(new DOMException("Aborted", "AbortError"));
15
+ return;
16
+ }
17
+ let i = () => {
18
+ clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
19
+ }, a = setTimeout(() => {
20
+ t?.removeEventListener("abort", i), n();
21
+ }, e);
22
+ t?.addEventListener("abort", i, { once: !0 });
23
+ });
24
+ }
25
+ function c() {
26
+ let { client: c } = t();
27
+ return n(async (t, n = {}) => {
28
+ let { signal: l } = n, u = !1;
29
+ for (let n = 0; n < i; n++) {
30
+ if (l?.aborted) throw new DOMException("Aborted", "AbortError");
31
+ try {
32
+ let n = await e({
33
+ client: c,
34
+ signal: l
35
+ });
36
+ if (u = !0, n.data?.applications.some((e) => e.product === o && e.applicationId === t && e.status === a)) return { status: "complete" };
37
+ } catch (e) {
38
+ if (e instanceof DOMException && e.name === "AbortError") throw e;
39
+ }
40
+ n < 5 && await s(r, l);
41
+ }
42
+ return u ? { status: "timeout" } : { status: "error" };
43
+ }, [c]);
4
44
  }
5
45
  //#endregion
6
- export { e as hasFreshAnswer };
46
+ export { c as usePollApplicationCompletion };
@@ -1,34 +1,6 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getApplicationStatusOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { hasFreshAnswer as r } from "./index8.js";
10
- import { useQuery as i } from "@tanstack/react-query";
11
1
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js
12
- var a = "DRAFT", o = "BANK_ACCOUNT", s = "STARTED_BY_YOU";
13
- function c(e) {
14
- return e.find((e) => e.product === o && e.ownership === s && e.status === a && !!e.applicationId && !!e.clientSecret);
15
- }
16
- function l(e) {
17
- return e.filter((e) => e.product === o && e.ownership === s).map((e) => e.applicationId).filter((e) => !!e);
18
- }
19
- function u() {
20
- let { client: a, widgetToken: o, authEpoch: s } = e(), u = !!o, d = i({
21
- ...n(t({ client: a }), s),
22
- enabled: u,
23
- retry: 2,
24
- retryDelay: 300
25
- }), f = u && r(d), p = f && !d.isError ? d.data?.applications ?? null : null, m = p ? c(p) : void 0;
26
- return {
27
- applicationId: m?.applicationId ?? null,
28
- clientSecret: m?.clientSecret ?? null,
29
- isResolved: f,
30
- ownApplicationIds: p ? l(p) : null
31
- };
2
+ function e(e) {
3
+ return (e.isSuccess || e.isError) && !e.isFetching;
32
4
  }
33
5
  //#endregion
34
- export { u as useResumableBankAccountApplication };
6
+ export { e as hasFreshAnswer };