@tesouro/embedded-components-react 0.7.6 → 0.7.12

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 (43) hide show
  1. package/README.md +6 -8
  2. package/dist/index.css +0 -76
  3. package/dist/index.d.ts +15 -193
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BillPayWidget.d.ts +10 -188
  6. package/dist/lib/BillPayWidget.js +1 -1
  7. package/dist/lib/CounterpartsWidget.d.ts +1 -1
  8. package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -1
  9. package/dist/lib/CustomersWidget.d.ts +1 -2
  10. package/dist/lib/WidgetSuite.d.ts +4 -4
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative/BillPayWidgetNative.js → BillPayWidget/BillPayWidget.js} +4 -3
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/BillsTab.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/labels.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/testIds.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidgetMonite/CustomersWidgetMonite.js +7 -7
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +53 -53
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +23 -23
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +74 -74
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +30 -30
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +28 -28
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +6 -6
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -2
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +13 -13
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +9 -9
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +6 -6
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +57 -57
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +6 -6
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +3 -3
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -6
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +29 -29
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +24 -24
  37. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js +7 -11
  39. package/package.json +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js +0 -27
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/BillPayWidgetMonite.js +0 -46
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/index.js +0 -1
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/index.js +0 -1
package/README.md CHANGED
@@ -238,17 +238,15 @@ Lists the organization's Tesouro bank accounts, lets the user open an account wi
238
238
 
239
239
  ### BillPayWidget
240
240
 
241
- A bill pay widget with Tesouro widget auth and theming. It renders the `'monite'` implementation unless you set `implementation="native"`.
241
+ A bill pay widget with Tesouro widget auth and theming: a Bills tab for uploading, reviewing and paying bills, and a Vendors tab for the vendors they are paid to.
242
242
 
243
243
  #### Props
244
244
 
245
- | Prop | Type | Default | Description |
246
- | -------------------- | ------------------------------------ | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
247
- | `pageTitleComponent` | `(children: ReactNode) => ReactNode` | Pass-through | Customizes the page title action region. |
248
- | `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Optional theme color overrides for the `'monite'` implementation. |
249
- | `initialTab` | `'bills' \| 'vendors'` | `'bills'` | Tab to open on initial mount. Native implementation only (`implementation="native"`); has no effect under the default `'monite'` implementation. |
250
- | `poweredByBankName` | `string` | `undefined` | Bank shown as "Powered by {bank}" next to the source account when paying a bill. Native implementation only (`implementation="native"`); has no effect under the default `'monite'` implementation. |
251
- | `onSettingsClick` | `() => void` | `undefined` | Opens your bill pay settings surface from a cog beside the bill list's "Add bill" button. The cog renders only when this is supplied and the user's scopes reach that surface. Native implementation only; under `'monite'`, build a settings button into `pageTitleComponent` instead. |
245
+ | Prop | Type | Default | Description |
246
+ | ------------------- | ---------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
247
+ | `initialTab` | `'bills' \| 'vendors'` | `'bills'` | Tab to open on initial mount. |
248
+ | `poweredByBankName` | `string` | `undefined` | Bank shown as "Powered by {bank}" next to the source account when paying a bill. Omit it to hide the badge. |
249
+ | `onSettingsClick` | `() => void` | `undefined` | Opens your bill pay settings surface from a cog beside the bill list's "Add bill" button. The cog renders only when this is supplied and the user's scopes reach that surface. |
252
250
 
253
251
  ### CreditCardsWidget
254
252
 
package/dist/index.css CHANGED
@@ -159,10 +159,6 @@
159
159
  }
160
160
  }
161
161
  @layer utilities {
162
- .ttw\:\@container\/card-header {
163
- container-type: inline-size;
164
- container-name: card-header;
165
- }
166
162
  .ttw\:\@container\/field-group {
167
163
  container-type: inline-size;
168
164
  container-name: field-group;
@@ -387,12 +383,6 @@
387
383
  .ttw\:col-start-2 {
388
384
  grid-column-start: 2;
389
385
  }
390
- .ttw\:row-span-2 {
391
- grid-row: span 2 / span 2;
392
- }
393
- .ttw\:row-start-1 {
394
- grid-row-start: 1;
395
- }
396
386
  .ttw\:m-0 {
397
387
  margin: 0px;
398
388
  }
@@ -1000,9 +990,6 @@
1000
990
  .ttw\:min-h-9 {
1001
991
  min-height: calc(var(--ttw-spacing) * 9);
1002
992
  }
1003
- .ttw\:min-h-10 {
1004
- min-height: calc(var(--ttw-spacing) * 10);
1005
- }
1006
993
  .ttw\:min-h-12 {
1007
994
  min-height: calc(var(--ttw-spacing) * 12);
1008
995
  }
@@ -1108,9 +1095,6 @@
1108
1095
  .ttw\:w-2\/5 {
1109
1096
  width: calc(2 / 5 * 100%);
1110
1097
  }
1111
- .ttw\:w-3 {
1112
- width: calc(var(--ttw-spacing) * 3);
1113
- }
1114
1098
  .ttw\:w-3\/4 {
1115
1099
  width: calc(3 / 4 * 100%);
1116
1100
  }
@@ -1844,9 +1828,6 @@
1844
1828
  .ttw\:list-none {
1845
1829
  list-style-type: none;
1846
1830
  }
1847
- .ttw\:auto-rows-min {
1848
- grid-auto-rows: min-content;
1849
- }
1850
1831
  .ttw\:grid-cols-1 {
1851
1832
  grid-template-columns: repeat(1, minmax(0, 1fr));
1852
1833
  }
@@ -1892,9 +1873,6 @@
1892
1873
  .ttw\:grid-rows-\[auto_1fr_auto\] {
1893
1874
  grid-template-rows: auto 1fr auto;
1894
1875
  }
1895
- .ttw\:grid-rows-\[auto_auto\] {
1896
- grid-template-rows: auto auto;
1897
- }
1898
1876
  .ttw\:flex-col {
1899
1877
  flex-direction: column;
1900
1878
  }
@@ -2460,9 +2438,6 @@
2460
2438
  .ttw\:border-muted {
2461
2439
  border-color: var(--ttw-muted);
2462
2440
  }
2463
- .ttw\:border-neutral-200 {
2464
- border-color: var(--ttw-color-neutral-200);
2465
- }
2466
2441
  .ttw\:border-orange-100 {
2467
2442
  border-color: var(--ttw-color-orange-100);
2468
2443
  }
@@ -4084,9 +4059,6 @@
4084
4059
  .ttw\:ring-offset-background {
4085
4060
  --tw-ring-offset-color: var(--ttw-background);
4086
4061
  }
4087
- .ttw\:ring-offset-white {
4088
- --tw-ring-offset-color: var(--ttw-color-white);
4089
- }
4090
4062
  .ttw\:outline-hidden {
4091
4063
  --tw-outline-style: none;
4092
4064
  outline-style: none;
@@ -4355,9 +4327,6 @@
4355
4327
  .ttw\:group-data-\[focused\=true\]\/day\:z-10:is(:where(.ttw\:group\/day)[data-focused="true"] *) {
4356
4328
  z-index: 10;
4357
4329
  }
4358
- .ttw\:group-data-\[focused\=true\]\/day\:z-1300:is(:where(.ttw\:group\/day)[data-focused="true"] *) {
4359
- z-index: 1300;
4360
- }
4361
4330
  .ttw\:group-data-\[focused\=true\]\/day\:border-ring:is(:where(.ttw\:group\/day)[data-focused="true"] *) {
4362
4331
  border-color: var(--ttw-ring);
4363
4332
  }
@@ -4407,10 +4376,6 @@
4407
4376
  width: calc(var(--ttw-spacing) * 2.5);
4408
4377
  height: calc(var(--ttw-spacing) * 2.5);
4409
4378
  }
4410
- .ttw\:group-data-\[size\=default\]\/switch\:size-4:is(:where(.ttw\:group\/switch)[data-size="default"] *) {
4411
- width: calc(var(--ttw-spacing) * 4);
4412
- height: calc(var(--ttw-spacing) * 4);
4413
- }
4414
4379
  .ttw\:group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.ttw\:group\/avatar)[data-size="lg"] *) {
4415
4380
  width: calc(var(--ttw-spacing) * 3);
4416
4381
  height: calc(var(--ttw-spacing) * 3);
@@ -4423,10 +4388,6 @@
4423
4388
  font-size: var(--ttw-text-xs);
4424
4389
  line-height: var(--tw-leading, var(--ttw-text-xs--line-height));
4425
4390
  }
4426
- .ttw\:group-data-\[size\=sm\]\/switch\:size-3:is(:where(.ttw\:group\/switch)[data-size="sm"] *) {
4427
- width: calc(var(--ttw-spacing) * 3);
4428
- height: calc(var(--ttw-spacing) * 3);
4429
- }
4430
4391
  .ttw\:group-data-\[state\=active\]\/tab\:bg-muted:is(:where(.ttw\:group\/tab)[data-state="active"] *) {
4431
4392
  background-color: var(--ttw-muted);
4432
4393
  }
@@ -5228,9 +5189,6 @@
5228
5189
  --tw-ring-color: color-mix(in oklab, var(--ttw-destructive) 20%, transparent);
5229
5190
  }
5230
5191
  }
5231
- .ttw\:has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot="card-action"]) {
5232
- grid-template-columns: 1fr auto;
5233
- }
5234
5192
  .ttw\:has-data-\[slot\=combobox-chip\]\:px-1\.5:has([data-slot="combobox-chip"]) {
5235
5193
  padding-inline: calc(var(--ttw-spacing) * 1.5);
5236
5194
  }
@@ -5652,15 +5610,9 @@
5652
5610
  .ttw\:data-\[size\=default\]\:h-14[data-size="default"] {
5653
5611
  height: calc(var(--ttw-spacing) * 14);
5654
5612
  }
5655
- .ttw\:data-\[size\=default\]\:h-\[1\.15rem\][data-size="default"] {
5656
- height: 1.15rem;
5657
- }
5658
5613
  .ttw\:data-\[size\=default\]\:h-auto[data-size="default"] {
5659
5614
  height: auto;
5660
5615
  }
5661
- .ttw\:data-\[size\=default\]\:w-8[data-size="default"] {
5662
- width: calc(var(--ttw-spacing) * 8);
5663
- }
5664
5616
  .ttw\:data-\[size\=lg\]\:size-10[data-size="lg"] {
5665
5617
  width: calc(var(--ttw-spacing) * 10);
5666
5618
  height: calc(var(--ttw-spacing) * 10);
@@ -5669,15 +5621,9 @@
5669
5621
  width: calc(var(--ttw-spacing) * 6);
5670
5622
  height: calc(var(--ttw-spacing) * 6);
5671
5623
  }
5672
- .ttw\:data-\[size\=sm\]\:h-3\.5[data-size="sm"] {
5673
- height: calc(var(--ttw-spacing) * 3.5);
5674
- }
5675
5624
  .ttw\:data-\[size\=sm\]\:h-8[data-size="sm"] {
5676
5625
  height: calc(var(--ttw-spacing) * 8);
5677
5626
  }
5678
- .ttw\:data-\[size\=sm\]\:w-6[data-size="sm"] {
5679
- width: calc(var(--ttw-spacing) * 6);
5680
- }
5681
5627
  :is(.ttw\:\*\:data-\[slot\=alert-description\]\:text-destructive\/90 > *)[data-slot="alert-description"] {
5682
5628
  color: var(--ttw-destructive);
5683
5629
  @supports (color: color-mix(in lab, red, red)) {
@@ -5805,10 +5751,6 @@
5805
5751
  --tw-translate-x: calc(var(--ttw-spacing) * 4);
5806
5752
  translate: var(--tw-translate-x) var(--tw-translate-y);
5807
5753
  }
5808
- .ttw\:data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state="checked"] {
5809
- --tw-translate-x: calc(100% - 2px);
5810
- translate: var(--tw-translate-x) var(--tw-translate-y);
5811
- }
5812
5754
  .ttw\:data-\[state\=checked\]\:border-primary[data-state="checked"] {
5813
5755
  border-color: var(--ttw-primary);
5814
5756
  }
@@ -6354,18 +6296,6 @@
6354
6296
  .ttw\:dark\:data-\[state\=checked\]\:bg-primary:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *)[data-state="checked"] {
6355
6297
  background-color: var(--ttw-primary);
6356
6298
  }
6357
- .ttw\:dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *)[data-state="checked"] {
6358
- background-color: var(--ttw-primary-foreground);
6359
- }
6360
- .ttw\:dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *)[data-state="unchecked"] {
6361
- background-color: var(--ttw-foreground);
6362
- }
6363
- .ttw\:dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *)[data-state="unchecked"] {
6364
- background-color: var(--ttw-input);
6365
- @supports (color: color-mix(in lab, red, red)) {
6366
- background-color: color-mix(in oklab, var(--ttw-input) 80%, transparent);
6367
- }
6368
- }
6369
6299
  .ttw\:dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *)[data-variant="destructive"]:focus {
6370
6300
  background-color: var(--ttw-destructive);
6371
6301
  @supports (color: color-mix(in lab, red, red)) {
@@ -6509,15 +6439,9 @@
6509
6439
  .ttw\:\[\.border-b\]\:pb-3:is(.border-b) {
6510
6440
  padding-bottom: calc(var(--ttw-spacing) * 3);
6511
6441
  }
6512
- .ttw\:\[\.border-b\]\:pb-6:is(.border-b) {
6513
- padding-bottom: calc(var(--ttw-spacing) * 6);
6514
- }
6515
6442
  .ttw\:\[\.border-t\]\:pt-3:is(.border-t) {
6516
6443
  padding-top: calc(var(--ttw-spacing) * 3);
6517
6444
  }
6518
- .ttw\:\[\.border-t\]\:pt-6:is(.border-t) {
6519
- padding-top: calc(var(--ttw-spacing) * 6);
6520
- }
6521
6445
  :is(.ttw\:\*\:\[\[role\=checkbox\]\]\:translate-y-0\.5 > *):is([role=checkbox]) {
6522
6446
  --tw-translate-y: calc(var(--ttw-spacing) * 0.5);
6523
6447
  translate: var(--tw-translate-x) var(--tw-translate-y);
package/dist/index.d.ts CHANGED
@@ -3962,10 +3962,10 @@ interface WidgetSuiteCardsLabels {
3962
3962
  * A group is shaped as the override its widget accepts, so it is handed down by
3963
3963
  * reference rather than remapped key by key.
3964
3964
  *
3965
- * Two sections have no group: Bill Pay and Invoicing both mount a Monite
3966
- * surface, which carries its own copy and takes no label props at all. They get
3967
- * one when the native builds replace them, and adding a group to an
3968
- * already-optional tree breaks nobody.
3965
+ * Two sections have no group. Invoicing mounts a Monite surface, which carries
3966
+ * its own copy and takes no label props at all. Bill Pay is native, but
3967
+ * `BillPayWidget` does not publish its `labels` yet. Each gets a group when it
3968
+ * can take one, and adding a group to an already-optional tree breaks nobody.
3969
3969
  */
3970
3970
  interface WidgetSuiteSectionContentLabels {
3971
3971
  dashboard: WidgetSuiteDashboardLabels;
@@ -4297,163 +4297,6 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$1;
4297
4297
  */
4298
4298
  declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
4299
4299
 
4300
- /**
4301
- * Action handlers for custom payment flows in payable operations.
4302
- *
4303
- * These handlers provide fine-grained control over payment workflows, allowing customers to:
4304
- * - Integrate external payment providers
4305
- * - Implement custom approval processes or multi-step authentication
4306
- * - Add specialized banking solutions or enterprise payment workflows
4307
- * - Control UI feedback and data refresh timing after payment completion
4308
- *
4309
- * @example Custom payment provider integration:
4310
- * ```typescript
4311
- * const onPay = (id: string, _data?: unknown, actions?: PayActionHandlers) => {
4312
- * // Start custom payment flow
4313
- * initiatePayment(id)
4314
- * .then(() => {
4315
- * // Payment successful - update SDK state and show success message
4316
- * actions?.resolve({ showToast: true });
4317
- * })
4318
- * .catch((error) => {
4319
- * // Payment failed - update SDK state and show error message
4320
- * actions?.reject(error, { showToast: true });
4321
- * });
4322
- * };
4323
- * ```
4324
- */
4325
- type PayActionHandlers = {
4326
- /**
4327
- * Call when a custom payment flow has been successfully initiated/completed.
4328
- * This triggers SDK's built-in state management: refreshes payable data,
4329
- * payment records, and optionally displays success feedback to the user.
4330
- *
4331
- * @param options.showToast - Whether to display a success toast notification
4332
- */
4333
- resolve: (options?: {
4334
- showToast?: boolean;
4335
- }) => void;
4336
- /**
4337
- * Call when a custom payment flow failed or was cancelled by the user.
4338
- * This triggers SDK's built-in state management: refreshes payable data,
4339
- * payment records, and optionally displays error feedback to the user.
4340
- *
4341
- * @param error - Optional error details from the failed payment attempt
4342
- * @param options.showToast - Whether to display an error toast notification
4343
- */
4344
- reject: (error?: unknown, options?: {
4345
- showToast?: boolean;
4346
- }) => void;
4347
- };
4348
-
4349
- type UsePayableDetailsProps = {
4350
- /**
4351
- * The ID of the payable
4352
- */
4353
- id?: string;
4354
- /** when provided it takes precedence over component settings */
4355
- enableGLCodes?: boolean;
4356
- /** when provided it makes the payable open in edit mode */
4357
- shouldOpenInEditMode?: boolean;
4358
- /**
4359
- * Callback function that is called when the payable is saved
4360
- *
4361
- * @param {string} id - The ID of the payable
4362
- *
4363
- * @returns {void}
4364
- */
4365
- onSaved?: (id: string) => void;
4366
- /**
4367
- * Callback function that is called when the payable is canceled
4368
- *
4369
- * @param {string} id - The ID of the payable
4370
- *
4371
- * @returns {void}
4372
- */
4373
- onCanceled?: (id: string) => void;
4374
- /**
4375
- * Callback function that is called when the payable is submitted
4376
- *
4377
- * @param {string} id - The ID of the payable
4378
- *
4379
- * @returns {void}
4380
- */
4381
- onSubmitted?: (id: string) => void;
4382
- /**
4383
- * Callback function that is called when the payable is rejected
4384
- *
4385
- * @param {string} id - The ID of the payable
4386
- *
4387
- * @returns {void}
4388
- */
4389
- onRejected?: (id: string) => void;
4390
- /**
4391
- * Callback function that is called when the payable is approved
4392
- *
4393
- * @param {string} id - The ID of the payable
4394
- *
4395
- * @returns {void}
4396
- */
4397
- onApproved?: (id: string) => void;
4398
- /** Callback function that is called when the payable is reopened
4399
- *
4400
- * @param {string} id - The ID of the payable
4401
- *
4402
- * @returns {void}
4403
- */
4404
- onReopened?: (id: string) => void;
4405
- /** Callback function that is called when the payable is deleted
4406
- *
4407
- * @param {string} id - The ID of the payable
4408
- *
4409
- * @returns {void}
4410
- */
4411
- onDeleted?: (id: string) => void;
4412
- /**
4413
- * Callback function that is called when the user press the Pay button
4414
- *
4415
- * @param {string} id - The ID of the payable
4416
- *
4417
- * @returns {void}
4418
- */
4419
- onPay?: (id: string, _data?: unknown, actions?: PayActionHandlers) => void;
4420
- };
4421
-
4422
- type PayablesProps = {
4423
- pageTitleComponent: (children: ReactNode) => ReactNode;
4424
- /**
4425
- * Enable GL code selection for payable line items.
4426
- * When true, users can assign GL codes to individual line items.
4427
- * GL codes are fetched from the connected accounting system.
4428
- */
4429
- enableGLCodes?: boolean;
4430
- /** Arrival prop: 'create' opens the create-bill dialog on mount. */
4431
- initialView?: 'create';
4432
- /** Arrival prop: preselects this counterpart in the create-bill form. */
4433
- initialCounterpartId?: string;
4434
- } & Partial<Pick<UsePayableDetailsProps, 'onSaved' | 'onCanceled' | 'onSubmitted' | 'onRejected' | 'onApproved' | 'onReopened' | 'onDeleted' | 'onPay'>>;
4435
-
4436
- type ALIGN_DIALOG_TYPES = 'left' | 'right';
4437
- declare module '@mui/material/transitions' {
4438
- interface TransitionProps {
4439
- alignDialog?: ALIGN_DIALOG_TYPES;
4440
- }
4441
- }
4442
-
4443
- interface FinopsThemeColors {
4444
- primary?: string;
4445
- primaryForeground?: string;
4446
- }
4447
- interface MoniteWrapperProps {
4448
- finopsThemeColors?: FinopsThemeColors;
4449
- }
4450
-
4451
- type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
4452
-
4453
- type BillPayWidgetMoniteProps = MoniteRegionProviderProps & Omit<PayablesProps, 'pageTitleComponent'> & {
4454
- pageTitleComponent?: PayablesProps['pageTitleComponent'];
4455
- };
4456
-
4457
4300
  interface AddressFieldGroupLabels {
4458
4301
  line1: string;
4459
4302
  line2: string;
@@ -4827,46 +4670,26 @@ declare const TabId: {
4827
4670
  readonly Bills: "bills";
4828
4671
  readonly Vendors: "vendors";
4829
4672
  };
4830
- type BillPayWidgetNativeTabId = (typeof TabId)[keyof typeof TabId];
4831
-
4832
- type BillPayWidgetProps = BillPayWidgetMoniteProps & {
4833
- /** Tab to open on initial mount. Native implementation only; ignored under `monite`. */
4834
- initialTab?: BillPayWidgetNativeTabId;
4835
- /** Bank shown as "Powered by {bank}" next to the source account when paying a bill. Native implementation only; ignored under `monite`. */
4673
+ type BillPayWidgetTabId = (typeof TabId)[keyof typeof TabId];
4674
+ interface BillPayWidgetProps extends WidgetProviderProps {
4675
+ /** Tab to open on initial mount. */
4676
+ initialTab?: BillPayWidgetTabId;
4677
+ /** Bank shown as "Powered by {bank}" next to the source account when paying; omitted hides the badge. */
4836
4678
  poweredByBankName?: string;
4837
4679
  /**
4838
- * Opens the host's bill-pay settings surface, from a cog beside the bill
4839
- * list's "Add bill" button. Rendered only for a user whose scopes reach that
4840
- * surface. Native implementation only; under `monite` the equivalent is a
4841
- * settings button the host builds into `pageTitleComponent`.
4680
+ * Opens the host's bill-pay settings surface, from a cog beside the Bills
4681
+ * tab's "Add bill" button. Only rendered for a user whose scopes reach it.
4842
4682
  */
4843
4683
  onSettingsClick?: () => void;
4844
- };
4845
- /**
4846
- * BillPay widget entry point — selects the rendering implementation.
4847
- *
4848
- * BillPay is deliberately **pinned to `monite`** until the Tesouro-native
4849
- * (shadcn) build reaches parity (epic EMBD-2171;
4850
- * `docs/billpay-usification-shadcn/technical-design.md` §2). `native` is the
4851
- * global default across widgets, so BillPay applies its own `monite` fallback
4852
- * whenever *nothing* selects an implementation — this is what keeps the native
4853
- * build off by default.
4854
- *
4855
- * An explicit selection is still honored, whether it comes from this widget's
4856
- * `implementation` prop or from the provider/global cascade
4857
- * (`RootWidgetProvider implementation="native"`, `setGlobalWidgetConfig`). We
4858
- * read the *raw* cascade value (undefined when unset) rather than the resolved
4859
- * one so the global `native` default does not leak past the pin. The cutover is
4860
- * a one-line change: drop the `monite` fallback once native is at parity.
4861
- */
4862
- declare function BillPayWidget({ implementation, initialTab, onSettingsClick, ...props }: BillPayWidgetProps): React.JSX.Element;
4684
+ }
4685
+ declare const BillPayWidget: (props: BillPayWidgetProps) => ReactElement;
4863
4686
 
4864
4687
  /**
4865
4688
  * Public {@link CounterpartsWidget} — the integrator-facing widget.
4866
4689
  *
4867
4690
  * The workspace-internal component additionally accepts a `passThrough` prop
4868
4691
  * that tells it to give up its own analytics identity when a composing widget
4869
- * (`CustomersWidgetNative`, `BillPayWidgetNative`'s Vendors tab) mounts it to
4692
+ * (`CustomersWidgetNative`, `BillPayWidget`'s Vendors tab) mounts it to
4870
4693
  * inherit the host's identity instead (EMBD-5384). That choice is set **only**
4871
4694
  * by those composing widgets, never by integrators: an integrator's own
4872
4695
  * standalone mount must always claim its own identity.
@@ -4912,8 +4735,7 @@ type CustomersWidgetProps = WidgetProviderProps & CustomersWidgetOwnProps;
4912
4735
  /**
4913
4736
  * Customers widget entry point — selects the rendering implementation.
4914
4737
  *
4915
- * Unlike `BillPayWidget`, this one is not pinned to Monite: the native
4916
- * implementation (a thin `counterpartType="customer"` wrapper around the
4738
+ * The native implementation (a thin `counterpartType="customer"` wrapper around the
4917
4739
  * published `CounterpartsWidget`) is already at parity, so this simply
4918
4740
  * inherits the package-wide `native` default. An explicit selection is still
4919
4741
  * honored, whether from this widget's `implementation` prop or from the
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { useWidgetToken as v } from "./libs/tesouro-embedded-components-react/sh
14
14
  import { RefreshingRootWidgetProvider as y } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
15
15
  import { useDisclosuresAcceptanceSurface as b, useOwnWidgetConfig as x, useRefetchWidget as S, useWidgetConfig as C, useWidgetError as w, useWidgetInitStaleForToken as T, useWidgetLoading as E } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
16
16
  import { BankAccountsWidget as D } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js";
17
- import { BillPayWidget as O } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js";
17
+ import { BillPayWidget as O } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
18
18
  import { CardDetailsWidget as k } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js";
19
19
  import { CreditCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CreditCardsWidget.js";
20
20
  import { DebitCardsWidget as j } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/DebitCardsWidget.js";