@tesouro/embedded-components-react 0.2.254 → 0.2.256

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 (142) hide show
  1. package/dist/core.js +1 -1
  2. package/dist/index.css +15 -0
  3. package/dist/index.js +2 -2
  4. package/dist/lib/BillPayWidget.d.ts +151 -151
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/InsightsWidget.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +4 -4
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +119 -121
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +40 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +36 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +28 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +22 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +7 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +75 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +166 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +17 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +9 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +99 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +4 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +43 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +50 -0
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +8 -0
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +7 -0
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +93 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +42 -2
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +8 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +9 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +85 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +3 -0
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +8 -0
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +112 -0
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +25 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +51 -35
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +235 -1
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +106 -7
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +35 -88
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +122 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +36 -22
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +74 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +15 -8
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +24 -3
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +12 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +83 -3
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +1 -0
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +18 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +205 -4
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -0
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +89 -4
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +10 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +131 -4
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +1 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +10 -0
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +45 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +17 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +149 -7
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +73 -4
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -0
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +24 -2
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +24 -1
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +145 -6
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +10 -0
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +8 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +93 -4
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +7 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +30 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +88 -5
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +62 -5
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +7 -0
  85. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js +2 -2
  86. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +13 -13
  87. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js +58 -58
  88. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +19 -19
  89. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +2 -2
  91. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +13 -62
  92. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +66 -0
  93. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +11 -109
  94. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +113 -21
  95. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +21 -15
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +2 -2
  98. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index8.js +3 -3
  99. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +1 -1
  100. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +15 -15
  102. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +9 -9
  103. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +32 -29
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useSubEntityForm.js +1 -1
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
  107. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +232 -220
  108. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +19 -19
  109. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +171 -138
  110. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/client/index.js +1 -0
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/core/bodySerializer.gen.js +9 -2
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +404 -293
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +6 -4
  114. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
  115. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +1 -1
  116. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +6 -3
  117. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +75 -45
  119. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/index.js +1 -1
  120. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
  121. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index3.js → lib/amountOutputToMajorUnits.js} +1 -1
  123. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index14.js → lib/apiErrors.js} +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index2.js → lib/coerceAmountValueToMinorUnits.js} +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js +13 -0
  126. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index4.js → lib/formatMoneyExact.js} +1 -1
  127. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index5.js → lib/formatPhoneDisplay.js} +1 -1
  128. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index6.js → lib/getInitials.js} +1 -1
  129. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index7.js → lib/normalizeAmountOutputCurrencyCode.js} +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index8.js → lib/parseAmountOutputMajorUnits.js} +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index9.js → lib/parseDecimalAmountToMinorUnits.js} +2 -2
  132. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index10.js → lib/sumAmountOutputsMajorUnits.js} +3 -3
  133. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index11.js → lib/usStates.js} +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index13.js → lib/widgetDomEvents.js} +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index12.js → lib/widgetTokenManager.js} +1 -1
  136. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index8.js +1 -1
  137. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +1 -1
  138. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index4.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +4 -4
  140. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +1 -1
  141. package/dist/packages/shared-ui-shadcn/dist/index.js +3593 -3582
  142. package/package.json +1 -1
package/dist/core.js CHANGED
@@ -1,2 +1,2 @@
1
- import { createWidgetTokenManager as e } from "./libs/tesouro-embedded-components-react/shared/util/dist/index12.js";
1
+ import { createWidgetTokenManager as e } from "./libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetTokenManager.js";
2
2
  export { e as createWidgetTokenManager };
package/dist/index.css CHANGED
@@ -724,6 +724,9 @@
724
724
  .ttw\:h-21 {
725
725
  height: calc(var(--ttw-spacing) * 21);
726
726
  }
727
+ .ttw\:h-24 {
728
+ height: calc(var(--ttw-spacing) * 24);
729
+ }
727
730
  .ttw\:h-26 {
728
731
  height: calc(var(--ttw-spacing) * 26);
729
732
  }
@@ -793,6 +796,9 @@
793
796
  .ttw\:h-\[calc\(100vh-290px\)\] {
794
797
  height: calc(100vh - 290px);
795
798
  }
799
+ .ttw\:h-\[min\(70vh\,44rem\)\] {
800
+ height: min(70vh, 44rem);
801
+ }
796
802
  .ttw\:h-\[var\(--radix-navigation-menu-viewport-height\)\] {
797
803
  height: var(--radix-navigation-menu-viewport-height);
798
804
  }
@@ -901,6 +907,9 @@
901
907
  .ttw\:min-h-28 {
902
908
  min-height: calc(var(--ttw-spacing) * 28);
903
909
  }
910
+ .ttw\:min-h-44 {
911
+ min-height: calc(var(--ttw-spacing) * 44);
912
+ }
904
913
  .ttw\:min-h-48 {
905
914
  min-height: calc(var(--ttw-spacing) * 48);
906
915
  }
@@ -970,12 +979,18 @@
970
979
  .ttw\:w-2\.5 {
971
980
  width: calc(var(--ttw-spacing) * 2.5);
972
981
  }
982
+ .ttw\:w-2\/5 {
983
+ width: calc(2 / 5 * 100%);
984
+ }
973
985
  .ttw\:w-3 {
974
986
  width: calc(var(--ttw-spacing) * 3);
975
987
  }
976
988
  .ttw\:w-3\/4 {
977
989
  width: calc(3 / 4 * 100%);
978
990
  }
991
+ .ttw\:w-3\/5 {
992
+ width: calc(3 / 5 * 100%);
993
+ }
979
994
  .ttw\:w-4 {
980
995
  width: calc(var(--ttw-spacing) * 4);
981
996
  }
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import "./lib/AcceptDisclosuresWidget.js";
15
15
  import { BankAccountsWidget as x } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
16
16
  import "./lib/BankAccountsWidget.js";
17
17
  import { CounterpartsWidget as S } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
18
- import { BillPayWidget as C } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js";
18
+ import { BillPayWidget as C } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js";
19
19
  import "./lib/BillPayWidget.js";
20
20
  import { CardDetailsWidget as w } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
21
21
  import { CardsWidget as T } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js";
@@ -35,7 +35,7 @@ import "./lib/BalancesWidget.js";
35
35
  import { INSIGHTS_FEATURE_LABELS_EN as M } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
36
36
  import { INSIGHTS_WIDGET_LABELS_EN as N } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
37
37
  import { SINGLE_INSIGHT_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
38
- import { InsightsWidget as F } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js";
38
+ import { InsightsWidget as F } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
39
39
  import "./lib/InsightsWidget.js";
40
40
  import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js";
41
41
  import { ACCOUNT_DELETE_DIALOG_LABELS_EN as L, ACCOUNT_FORM_SHEET_LABELS_EN as R, CHART_OF_ACCOUNTS_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js";
@@ -2,157 +2,6 @@ import * as React from 'react';
2
2
  import { ReactNode, ComponentType, AnchorHTMLAttributes, ErrorInfo } from 'react';
3
3
  import { FallbackProps } from 'react-error-boundary';
4
4
 
5
- /**
6
- * Action handlers for custom payment flows in payable operations.
7
- *
8
- * These handlers provide fine-grained control over payment workflows, allowing customers to:
9
- * - Integrate external payment providers
10
- * - Implement custom approval processes or multi-step authentication
11
- * - Add specialized banking solutions or enterprise payment workflows
12
- * - Control UI feedback and data refresh timing after payment completion
13
- *
14
- * @example Custom payment provider integration:
15
- * ```typescript
16
- * const onPay = (id: string, _data?: unknown, actions?: PayActionHandlers) => {
17
- * // Start custom payment flow
18
- * initiatePayment(id)
19
- * .then(() => {
20
- * // Payment successful - update SDK state and show success message
21
- * actions?.resolve({ showToast: true });
22
- * })
23
- * .catch((error) => {
24
- * // Payment failed - update SDK state and show error message
25
- * actions?.reject(error, { showToast: true });
26
- * });
27
- * };
28
- * ```
29
- */
30
- type PayActionHandlers = {
31
- /**
32
- * Call when a custom payment flow has been successfully initiated/completed.
33
- * This triggers SDK's built-in state management: refreshes payable data,
34
- * payment records, and optionally displays success feedback to the user.
35
- *
36
- * @param options.showToast - Whether to display a success toast notification
37
- */
38
- resolve: (options?: {
39
- showToast?: boolean;
40
- }) => void;
41
- /**
42
- * Call when a custom payment flow failed or was cancelled by the user.
43
- * This triggers SDK's built-in state management: refreshes payable data,
44
- * payment records, and optionally displays error feedback to the user.
45
- *
46
- * @param error - Optional error details from the failed payment attempt
47
- * @param options.showToast - Whether to display an error toast notification
48
- */
49
- reject: (error?: unknown, options?: {
50
- showToast?: boolean;
51
- }) => void;
52
- };
53
-
54
- type UsePayableDetailsProps = {
55
- /**
56
- * The ID of the payable
57
- */
58
- id?: string;
59
- /** when provided it takes precedence over component settings */
60
- enableGLCodes?: boolean;
61
- /** when provided it makes the payable open in edit mode */
62
- shouldOpenInEditMode?: boolean;
63
- /**
64
- * Callback function that is called when the payable is saved
65
- *
66
- * @param {string} id - The ID of the payable
67
- *
68
- * @returns {void}
69
- */
70
- onSaved?: (id: string) => void;
71
- /**
72
- * Callback function that is called when the payable is canceled
73
- *
74
- * @param {string} id - The ID of the payable
75
- *
76
- * @returns {void}
77
- */
78
- onCanceled?: (id: string) => void;
79
- /**
80
- * Callback function that is called when the payable is submitted
81
- *
82
- * @param {string} id - The ID of the payable
83
- *
84
- * @returns {void}
85
- */
86
- onSubmitted?: (id: string) => void;
87
- /**
88
- * Callback function that is called when the payable is rejected
89
- *
90
- * @param {string} id - The ID of the payable
91
- *
92
- * @returns {void}
93
- */
94
- onRejected?: (id: string) => void;
95
- /**
96
- * Callback function that is called when the payable is approved
97
- *
98
- * @param {string} id - The ID of the payable
99
- *
100
- * @returns {void}
101
- */
102
- onApproved?: (id: string) => void;
103
- /** Callback function that is called when the payable is reopened
104
- *
105
- * @param {string} id - The ID of the payable
106
- *
107
- * @returns {void}
108
- */
109
- onReopened?: (id: string) => void;
110
- /** Callback function that is called when the payable is deleted
111
- *
112
- * @param {string} id - The ID of the payable
113
- *
114
- * @returns {void}
115
- */
116
- onDeleted?: (id: string) => void;
117
- /**
118
- * Callback function that is called when the user press the Pay button
119
- *
120
- * @param {string} id - The ID of the payable
121
- *
122
- * @returns {void}
123
- */
124
- onPay?: (id: string, _data?: unknown, actions?: PayActionHandlers) => void;
125
- };
126
-
127
- type PayablesProps = {
128
- pageTitleComponent: (children: ReactNode) => ReactNode;
129
- /**
130
- * Enable GL code selection for payable line items.
131
- * When true, users can assign GL codes to individual line items.
132
- * GL codes are fetched from the connected accounting system.
133
- */
134
- enableGLCodes?: boolean;
135
- /** Arrival prop: 'create' opens the create-bill dialog on mount. */
136
- initialView?: 'create';
137
- /** Arrival prop: preselects this counterpart in the create-bill form. */
138
- initialCounterpartId?: string;
139
- } & Partial<Pick<UsePayableDetailsProps, 'onSaved' | 'onCanceled' | 'onSubmitted' | 'onRejected' | 'onApproved' | 'onReopened' | 'onDeleted' | 'onPay'>>;
140
-
141
- type ALIGN_DIALOG_TYPES = 'left' | 'right';
142
- declare module '@mui/material/transitions' {
143
- interface TransitionProps {
144
- alignDialog?: ALIGN_DIALOG_TYPES;
145
- }
146
- }
147
-
148
- interface FinopsThemeColors {
149
- primary?: string;
150
- primaryForeground?: string;
151
- }
152
- interface MoniteWrapperProps {
153
- finopsThemeColors?: FinopsThemeColors;
154
- }
155
-
156
5
  type AuthToken = string | undefined;
157
6
  interface Auth {
158
7
  /**
@@ -482,6 +331,157 @@ type EmbeddedClient = Client;
482
331
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
483
332
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
484
333
 
334
+ /**
335
+ * Action handlers for custom payment flows in payable operations.
336
+ *
337
+ * These handlers provide fine-grained control over payment workflows, allowing customers to:
338
+ * - Integrate external payment providers
339
+ * - Implement custom approval processes or multi-step authentication
340
+ * - Add specialized banking solutions or enterprise payment workflows
341
+ * - Control UI feedback and data refresh timing after payment completion
342
+ *
343
+ * @example Custom payment provider integration:
344
+ * ```typescript
345
+ * const onPay = (id: string, _data?: unknown, actions?: PayActionHandlers) => {
346
+ * // Start custom payment flow
347
+ * initiatePayment(id)
348
+ * .then(() => {
349
+ * // Payment successful - update SDK state and show success message
350
+ * actions?.resolve({ showToast: true });
351
+ * })
352
+ * .catch((error) => {
353
+ * // Payment failed - update SDK state and show error message
354
+ * actions?.reject(error, { showToast: true });
355
+ * });
356
+ * };
357
+ * ```
358
+ */
359
+ type PayActionHandlers = {
360
+ /**
361
+ * Call when a custom payment flow has been successfully initiated/completed.
362
+ * This triggers SDK's built-in state management: refreshes payable data,
363
+ * payment records, and optionally displays success feedback to the user.
364
+ *
365
+ * @param options.showToast - Whether to display a success toast notification
366
+ */
367
+ resolve: (options?: {
368
+ showToast?: boolean;
369
+ }) => void;
370
+ /**
371
+ * Call when a custom payment flow failed or was cancelled by the user.
372
+ * This triggers SDK's built-in state management: refreshes payable data,
373
+ * payment records, and optionally displays error feedback to the user.
374
+ *
375
+ * @param error - Optional error details from the failed payment attempt
376
+ * @param options.showToast - Whether to display an error toast notification
377
+ */
378
+ reject: (error?: unknown, options?: {
379
+ showToast?: boolean;
380
+ }) => void;
381
+ };
382
+
383
+ type UsePayableDetailsProps = {
384
+ /**
385
+ * The ID of the payable
386
+ */
387
+ id?: string;
388
+ /** when provided it takes precedence over component settings */
389
+ enableGLCodes?: boolean;
390
+ /** when provided it makes the payable open in edit mode */
391
+ shouldOpenInEditMode?: boolean;
392
+ /**
393
+ * Callback function that is called when the payable is saved
394
+ *
395
+ * @param {string} id - The ID of the payable
396
+ *
397
+ * @returns {void}
398
+ */
399
+ onSaved?: (id: string) => void;
400
+ /**
401
+ * Callback function that is called when the payable is canceled
402
+ *
403
+ * @param {string} id - The ID of the payable
404
+ *
405
+ * @returns {void}
406
+ */
407
+ onCanceled?: (id: string) => void;
408
+ /**
409
+ * Callback function that is called when the payable is submitted
410
+ *
411
+ * @param {string} id - The ID of the payable
412
+ *
413
+ * @returns {void}
414
+ */
415
+ onSubmitted?: (id: string) => void;
416
+ /**
417
+ * Callback function that is called when the payable is rejected
418
+ *
419
+ * @param {string} id - The ID of the payable
420
+ *
421
+ * @returns {void}
422
+ */
423
+ onRejected?: (id: string) => void;
424
+ /**
425
+ * Callback function that is called when the payable is approved
426
+ *
427
+ * @param {string} id - The ID of the payable
428
+ *
429
+ * @returns {void}
430
+ */
431
+ onApproved?: (id: string) => void;
432
+ /** Callback function that is called when the payable is reopened
433
+ *
434
+ * @param {string} id - The ID of the payable
435
+ *
436
+ * @returns {void}
437
+ */
438
+ onReopened?: (id: string) => void;
439
+ /** Callback function that is called when the payable is deleted
440
+ *
441
+ * @param {string} id - The ID of the payable
442
+ *
443
+ * @returns {void}
444
+ */
445
+ onDeleted?: (id: string) => void;
446
+ /**
447
+ * Callback function that is called when the user press the Pay button
448
+ *
449
+ * @param {string} id - The ID of the payable
450
+ *
451
+ * @returns {void}
452
+ */
453
+ onPay?: (id: string, _data?: unknown, actions?: PayActionHandlers) => void;
454
+ };
455
+
456
+ type PayablesProps = {
457
+ pageTitleComponent: (children: ReactNode) => ReactNode;
458
+ /**
459
+ * Enable GL code selection for payable line items.
460
+ * When true, users can assign GL codes to individual line items.
461
+ * GL codes are fetched from the connected accounting system.
462
+ */
463
+ enableGLCodes?: boolean;
464
+ /** Arrival prop: 'create' opens the create-bill dialog on mount. */
465
+ initialView?: 'create';
466
+ /** Arrival prop: preselects this counterpart in the create-bill form. */
467
+ initialCounterpartId?: string;
468
+ } & Partial<Pick<UsePayableDetailsProps, 'onSaved' | 'onCanceled' | 'onSubmitted' | 'onRejected' | 'onApproved' | 'onReopened' | 'onDeleted' | 'onPay'>>;
469
+
470
+ type ALIGN_DIALOG_TYPES = 'left' | 'right';
471
+ declare module '@mui/material/transitions' {
472
+ interface TransitionProps {
473
+ alignDialog?: ALIGN_DIALOG_TYPES;
474
+ }
475
+ }
476
+
477
+ interface FinopsThemeColors {
478
+ primary?: string;
479
+ primaryForeground?: string;
480
+ }
481
+ interface MoniteWrapperProps {
482
+ finopsThemeColors?: FinopsThemeColors;
483
+ }
484
+
485
485
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
486
486
  children?: ReactNode;
487
487
  };
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -2,6 +2,6 @@ import { INSIGHTS_FEATURE_LABELS_EN as e } from "../libs/tesouro-embedded-compon
2
2
  import { INSIGHTS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
3
3
  import { SINGLE_INSIGHT_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
4
4
  import "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index.js";
5
- import { InsightsWidget as r } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js";
5
+ import { InsightsWidget as r } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
6
6
  import "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js";
7
7
  export { e as INSIGHTS_FEATURE_LABELS_EN, t as INSIGHTS_WIDGET_LABELS_EN, r as InsightsWidget, n as SINGLE_INSIGHT_LABELS_EN };
@@ -11,7 +11,7 @@ import { useAcceptWidgetDisclosures as a } from "../../data-access/dist/index2.j
11
11
  import "../../data-access/dist/index.js";
12
12
  import { useAnalyticsTrack as o } from "../../../shared/feature/dist/lib/analytics/hooks.js";
13
13
  import { WidgetProvider as s } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
14
- import { extractApiErrorMessage as c } from "../../../shared/util/dist/index14.js";
14
+ import { extractApiErrorMessage as c } from "../../../shared/util/dist/lib/apiErrors.js";
15
15
  import { useRefetchWidget as l, useWidgetConfig as u } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
16
16
  import "../../../shared/feature/dist/index.js";
17
17
  import { useCallback as d, useEffect as f, useRef as p, useState as m } from "react";
@@ -5,10 +5,10 @@
5
5
  import { Scope as e } from "../../../shared/data-access/dist/lib/scopes.js";
6
6
  import { useAllBankAccountsQuery as t } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
7
7
  import "../../../shared/data-access/dist/index.js";
8
- import { formatMoneyExact as n } from "../../../shared/util/dist/index4.js";
9
- import { normalizeAmountOutputCurrencyCode as r } from "../../../shared/util/dist/index7.js";
10
- import { parseAmountOutputMajorUnits as i } from "../../../shared/util/dist/index8.js";
11
- import { sumAmountOutputsMajorUnits as a } from "../../../shared/util/dist/index10.js";
8
+ import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
9
+ import { normalizeAmountOutputCurrencyCode as r } from "../../../shared/util/dist/lib/normalizeAmountOutputCurrencyCode.js";
10
+ import { parseAmountOutputMajorUnits as i } from "../../../shared/util/dist/lib/parseAmountOutputMajorUnits.js";
11
+ import { sumAmountOutputsMajorUnits as a } from "../../../shared/util/dist/lib/sumAmountOutputsMajorUnits.js";
12
12
  import { useWidgetConfig as o } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
13
13
  import "../../../shared/feature/dist/index.js";
14
14
  import { createContext as s, useCallback as c, useContext as l, useMemo as u } from "react";