@tesouro/embedded-components-react 0.7.11 → 0.7.14

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 (39) hide show
  1. package/README.md +6 -8
  2. package/dist/index.d.ts +15 -193
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BillPayWidget.d.ts +10 -188
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/CounterpartsWidget.d.ts +1 -1
  7. package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -1
  8. package/dist/lib/CustomersWidget.d.ts +1 -2
  9. package/dist/lib/WidgetSuite.d.ts +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative/BillPayWidgetNative.js → BillPayWidget/BillPayWidget.js} +4 -3
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/BillsTab.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/labels.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/testIds.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidgetMonite/CustomersWidgetMonite.js +7 -7
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +53 -53
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +23 -23
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +74 -74
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +30 -30
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +28 -28
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +13 -13
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +9 -9
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +6 -6
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +57 -57
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +6 -6
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +3 -3
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +3 -3
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -6
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +29 -29
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +24 -24
  33. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js +7 -11
  35. package/package.json +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js +0 -27
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/BillPayWidgetMonite.js +0 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/index.js +0 -1
  39. 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.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";
@@ -1,158 +1,6 @@
1
- import * as React from 'react';
2
- import { ReactNode, ComponentType, AnchorHTMLAttributes, ErrorInfo } from 'react';
1
+ import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, ReactElement } from 'react';
3
2
  import { FallbackProps } from 'react-error-boundary';
4
3
 
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
4
  type AuthToken = string | undefined;
157
5
  interface Auth {
158
6
  /**
@@ -778,49 +626,23 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
778
626
  providerLabels?: Partial<WidgetProviderLabels>;
779
627
  }
780
628
 
781
- type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
782
-
783
- type BillPayWidgetMoniteProps = MoniteRegionProviderProps & Omit<PayablesProps, 'pageTitleComponent'> & {
784
- pageTitleComponent?: PayablesProps['pageTitleComponent'];
785
- };
786
-
787
629
  declare const TabId: {
788
630
  readonly Bills: "bills";
789
631
  readonly Vendors: "vendors";
790
632
  };
791
- type BillPayWidgetNativeTabId = (typeof TabId)[keyof typeof TabId];
792
-
793
- type BillPayWidgetProps = BillPayWidgetMoniteProps & {
794
- /** Tab to open on initial mount. Native implementation only; ignored under `monite`. */
795
- initialTab?: BillPayWidgetNativeTabId;
796
- /** Bank shown as "Powered by {bank}" next to the source account when paying a bill. Native implementation only; ignored under `monite`. */
633
+ type BillPayWidgetTabId = (typeof TabId)[keyof typeof TabId];
634
+ interface BillPayWidgetProps extends WidgetProviderProps {
635
+ /** Tab to open on initial mount. */
636
+ initialTab?: BillPayWidgetTabId;
637
+ /** Bank shown as "Powered by {bank}" next to the source account when paying; omitted hides the badge. */
797
638
  poweredByBankName?: string;
798
639
  /**
799
- * Opens the host's bill-pay settings surface, from a cog beside the bill
800
- * list's "Add bill" button. Rendered only for a user whose scopes reach that
801
- * surface. Native implementation only; under `monite` the equivalent is a
802
- * settings button the host builds into `pageTitleComponent`.
640
+ * Opens the host's bill-pay settings surface, from a cog beside the Bills
641
+ * tab's "Add bill" button. Only rendered for a user whose scopes reach it.
803
642
  */
804
643
  onSettingsClick?: () => void;
805
- };
806
- /**
807
- * BillPay widget entry point — selects the rendering implementation.
808
- *
809
- * BillPay is deliberately **pinned to `monite`** until the Tesouro-native
810
- * (shadcn) build reaches parity (epic EMBD-2171;
811
- * `docs/billpay-usification-shadcn/technical-design.md` §2). `native` is the
812
- * global default across widgets, so BillPay applies its own `monite` fallback
813
- * whenever *nothing* selects an implementation — this is what keeps the native
814
- * build off by default.
815
- *
816
- * An explicit selection is still honored, whether it comes from this widget's
817
- * `implementation` prop or from the provider/global cascade
818
- * (`RootWidgetProvider implementation="native"`, `setGlobalWidgetConfig`). We
819
- * read the *raw* cascade value (undefined when unset) rather than the resolved
820
- * one so the global `native` default does not leak past the pin. The cutover is
821
- * a one-line change: drop the `monite` fallback once native is at parity.
822
- */
823
- declare function BillPayWidget({ implementation, initialTab, onSettingsClick, ...props }: BillPayWidgetProps): React.JSX.Element;
644
+ }
645
+ declare const BillPayWidget: (props: BillPayWidgetProps) => ReactElement;
824
646
 
825
647
  export { BillPayWidget };
826
648
  export type { BillPayWidgetProps };
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -961,7 +961,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
961
961
  *
962
962
  * The workspace-internal component additionally accepts a `passThrough` prop
963
963
  * that tells it to give up its own analytics identity when a composing widget
964
- * (`CustomersWidgetNative`, `BillPayWidgetNative`'s Vendors tab) mounts it to
964
+ * (`CustomersWidgetNative`, `BillPayWidget`'s Vendors tab) mounts it to
965
965
  * inherit the host's identity instead (EMBD-5384). That choice is set **only**
966
966
  * by those composing widgets, never by integrators: an integrator's own
967
967
  * standalone mount must always claim its own identity.
@@ -961,7 +961,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
961
961
  *
962
962
  * The workspace-internal component additionally accepts a `passThrough` prop
963
963
  * that tells it to give up its own analytics identity when a composing widget
964
- * (`CustomersWidgetNative`, `BillPayWidgetNative`'s Vendors tab) mounts it to
964
+ * (`CustomersWidgetNative`, `BillPayWidget`'s Vendors tab) mounts it to
965
965
  * inherit the host's identity instead (EMBD-5384). That choice is set **only**
966
966
  * by those composing widgets, never by integrators: an integrator's own
967
967
  * standalone mount must always claim its own identity.
@@ -939,8 +939,7 @@ type CustomersWidgetProps = WidgetProviderProps & CustomersWidgetOwnProps;
939
939
  /**
940
940
  * Customers widget entry point — selects the rendering implementation.
941
941
  *
942
- * Unlike `BillPayWidget`, this one is not pinned to Monite: the native
943
- * implementation (a thin `counterpartType="customer"` wrapper around the
942
+ * The native implementation (a thin `counterpartType="customer"` wrapper around the
944
943
  * published `CounterpartsWidget`) is already at parity, so this simply
945
944
  * inherits the package-wide `native` default. An explicit selection is still
946
945
  * honored, whether from this widget's `implementation` prop or from the
@@ -2997,10 +2997,10 @@ interface WidgetSuiteCardsLabels {
2997
2997
  * A group is shaped as the override its widget accepts, so it is handed down by
2998
2998
  * reference rather than remapped key by key.
2999
2999
  *
3000
- * Two sections have no group: Bill Pay and Invoicing both mount a Monite
3001
- * surface, which carries its own copy and takes no label props at all. They get
3002
- * one when the native builds replace them, and adding a group to an
3003
- * already-optional tree breaks nobody.
3000
+ * Two sections have no group. Invoicing mounts a Monite surface, which carries
3001
+ * its own copy and takes no label props at all. Bill Pay is native, but
3002
+ * `BillPayWidget` does not publish its `labels` yet. Each gets a group when it
3003
+ * can take one, and adding a group to an already-optional tree breaks nobody.
3004
3004
  */
3005
3005
  interface WidgetSuiteSectionContentLabels {
3006
3006
  dashboard: WidgetSuiteDashboardLabels;
@@ -1,2 +1,3 @@
1
- import { BillPayWidget as e } from "./lib/BillPayWidget.js";
1
+ import { BillPayWidget as e } from "./lib/BillPayWidget/BillPayWidget.js";
2
+ import "./lib/BillPayWidget/index.js";
2
3
  export { e as BillPayWidget };
@@ -18,12 +18,12 @@ import "../../../../ui/dist/index.js";
18
18
  import { BillUploadWidget as u } from "../../../../bill-upload/feature/dist/index8.js";
19
19
  import "../../../../bill-upload/feature/dist/index.js";
20
20
  import { BillsTab as d } from "./BillsTab.js";
21
- import { BILL_PAY_WIDGET_NATIVE_LABELS_EN as f } from "./labels.js";
21
+ import { BILL_PAY_WIDGET_LABELS_EN as f } from "./labels.js";
22
22
  import { CounterpartsWidget as p } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js";
23
23
  import "../../../../../counterparts-widget/feature/dist/index.js";
24
24
  import { useCallback as m, useEffect as h, useMemo as g, useRef as _, useState as v } from "react";
25
25
  import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
26
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillPayWidgetNative.js
26
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js
27
27
  var S = {
28
28
  Bills: "bills",
29
29
  Vendors: "vendors"
@@ -103,5 +103,6 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
103
103
  children: /* @__PURE__ */ b(w, { ...h })
104
104
  });
105
105
  }
106
+ var E = T;
106
107
  //#endregion
107
- export { T as BillPayWidgetNative, T as default };
108
+ export { E as BillPayWidget, E as default, T as BillPayWidgetWithLabels };
@@ -17,7 +17,7 @@ import { PayBillWidget as s } from "../../../../pay-bill/feature/dist/index14.js
17
17
  import "../../../../pay-bill/feature/dist/index.js";
18
18
  import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
19
19
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
20
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js
20
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js
21
21
  function h({ labels: h, onEnqueueFiles: g, openPayableId: _, onOpenPayableHandled: v, vendorIntent: y, onVendorIntentHandled: b, poweredByBankName: x, onSettingsClick: S }) {
22
22
  let C = d(null), [w, T] = f(), [E, D] = f(), [O, k] = f(!1), [A, j] = f(), [M, N] = f(!1), [P, F] = f(!1), [I, L] = f(null), R = !I || {
23
23
  create: O,
@@ -1,7 +1,7 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/labels.js
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/labels.js
2
2
  var e = {
3
3
  bills: "Bills",
4
4
  vendors: "Vendors"
5
5
  }, t = { tabs: e };
6
6
  //#endregion
7
- export { t as BILL_PAY_WIDGET_NATIVE_LABELS_EN, e as DEFAULT_TABS_LABELS };
7
+ export { t as BILL_PAY_WIDGET_LABELS_EN, e as DEFAULT_TABS_LABELS };
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/testIds.js
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/testIds.js
2
2
  var e = {
3
3
  root: "bill-pay-bills-tab",
4
4
  detailsSheet: "bill-pay-details-sheet"