@tesouro/embedded-components-react 0.5.225 → 0.5.227
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.
- package/README.md +21 -21
- package/dist/index.d.ts +23 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +23 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +210 -199
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -503,27 +503,27 @@ Lists, creates, edits and acts on an organization's invoices, quotes and credit
|
|
|
503
503
|
|
|
504
504
|
#### Props
|
|
505
505
|
|
|
506
|
-
| Prop | Type | Default | Description
|
|
507
|
-
| -------------------------- | ---------------------------------------------------- | ---------------------------------------- |
|
|
508
|
-
| `defaultTab` | `ReceivablesWidgetTab` | `'invoices'` | Initial tab; if omitted or disabled, the widget starts on the first enabled tab.
|
|
509
|
-
| `enabledTabs` | `ReceivablesWidgetTab[]` | `['invoices', 'quotes', 'credit_notes']` | Tabs visible to the user. Duplicate or unknown values are ignored.
|
|
510
|
-
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`.
|
|
511
|
-
| `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds.
|
|
512
|
-
| `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's detail sheet.
|
|
513
|
-
| `onTemplateSettingsClick` | `() => void` | `undefined` | Shows a template settings action in the header and calls this handler when clicked.
|
|
514
|
-
| `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset.
|
|
515
|
-
| `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy.
|
|
516
|
-
| `formLabels` | `Partial<ReceivableFormSheetLabels>` | English labels | Create/edit form copy
|
|
517
|
-
| `detailsLabels` | `ReceivableDetailsSheetLabelOverrides` | English labels | Detail sheet copy, including status badges.
|
|
518
|
-
| `sendLabels` | `Partial<ReceivableSendDialogLabels>` | English labels | Send-email dialog copy.
|
|
519
|
-
| `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy.
|
|
520
|
-
| `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`.
|
|
521
|
-
| `counterpartFormLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Inline customer creation copy.
|
|
522
|
-
| `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English labels | Measure-unit manager copy.
|
|
523
|
-
| `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English labels | Measure-unit delete confirmation copy.
|
|
524
|
-
| `messageLabels` | `Partial<ReceivableMessageLabels>` | English labels | Validation, fallback, summary, activity, reminder and confirmation messages, including a new reminder's subject and body.
|
|
525
|
-
| `productMessageLabels` | `Partial<ProductMessageLabels>` | English labels | Product validation and error messages.
|
|
526
|
-
| `counterpartMessageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Customer validation and error messages.
|
|
506
|
+
| Prop | Type | Default | Description |
|
|
507
|
+
| -------------------------- | ---------------------------------------------------- | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
508
|
+
| `defaultTab` | `ReceivablesWidgetTab` | `'invoices'` | Initial tab; if omitted or disabled, the widget starts on the first enabled tab. |
|
|
509
|
+
| `enabledTabs` | `ReceivablesWidgetTab[]` | `['invoices', 'quotes', 'credit_notes']` | Tabs visible to the user. Duplicate or unknown values are ignored. |
|
|
510
|
+
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`. |
|
|
511
|
+
| `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds. |
|
|
512
|
+
| `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's detail sheet. |
|
|
513
|
+
| `onTemplateSettingsClick` | `() => void` | `undefined` | Shows a template settings action in the header and calls this handler when clicked. |
|
|
514
|
+
| `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
|
|
515
|
+
| `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy. |
|
|
516
|
+
| `formLabels` | `Partial<ReceivableFormSheetLabels>` | English labels | Create/edit form copy; the save and issue buttons are in `messageLabels`. |
|
|
517
|
+
| `detailsLabels` | `ReceivableDetailsSheetLabelOverrides` | English labels | Detail sheet copy, including status badges. |
|
|
518
|
+
| `sendLabels` | `Partial<ReceivableSendDialogLabels>` | English labels | Send-email dialog copy. |
|
|
519
|
+
| `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy. |
|
|
520
|
+
| `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`. |
|
|
521
|
+
| `counterpartFormLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Inline customer creation copy. |
|
|
522
|
+
| `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English labels | Measure-unit manager copy. |
|
|
523
|
+
| `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English labels | Measure-unit delete confirmation copy. |
|
|
524
|
+
| `messageLabels` | `Partial<ReceivableMessageLabels>` | English labels | Validation, fallback, summary, activity, reminder and confirmation messages, including the form's save and issue buttons and a new reminder's subject and body. |
|
|
525
|
+
| `productMessageLabels` | `Partial<ProductMessageLabels>` | English labels | Product validation and error messages. |
|
|
526
|
+
| `counterpartMessageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Customer validation and error messages. |
|
|
527
527
|
|
|
528
528
|
### SettingsWidget
|
|
529
529
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4955,8 +4955,6 @@ interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels, Rece
|
|
|
4955
4955
|
addLineItemButton: string;
|
|
4956
4956
|
removeLineItemButton: string;
|
|
4957
4957
|
cancelButton: string;
|
|
4958
|
-
createButton: string;
|
|
4959
|
-
updateButton: string;
|
|
4960
4958
|
notesHeading: string;
|
|
4961
4959
|
notesDescription: string;
|
|
4962
4960
|
optionalSuffix: string;
|
|
@@ -5204,6 +5202,9 @@ interface ReceivableMessageLabels {
|
|
|
5204
5202
|
recurrenceRemoveRecipient: string;
|
|
5205
5203
|
recurrenceActivateButton: string;
|
|
5206
5204
|
recurrenceUpdateButton: string;
|
|
5205
|
+
saveDraftButton: string;
|
|
5206
|
+
updateDraftButton: string;
|
|
5207
|
+
issueButton: string;
|
|
5207
5208
|
recurrenceStartDateRequired: string;
|
|
5208
5209
|
recurrenceDayOfMonthRequired: string;
|
|
5209
5210
|
recurrenceDayOfWeekRequired: string;
|
|
@@ -5250,6 +5251,23 @@ interface ReceivableMessageLabels {
|
|
|
5250
5251
|
issueRemindersDisabled: string;
|
|
5251
5252
|
issueRemindersNoEmail: string;
|
|
5252
5253
|
issueRemindersDisabledNoEmail: string;
|
|
5254
|
+
lineItemNameRequired: string;
|
|
5255
|
+
lineItemQuantityRequired: string;
|
|
5256
|
+
lineItemsRequired: string;
|
|
5257
|
+
paymentTermsRequired: string;
|
|
5258
|
+
bankAccountRequired: string;
|
|
5259
|
+
issueTaxIdRequired: string;
|
|
5260
|
+
issueBankAccountUnavailable: string;
|
|
5261
|
+
issueChecksLoading: string;
|
|
5262
|
+
attachmentsUploading: string;
|
|
5263
|
+
issueFailedAfterSave: string;
|
|
5264
|
+
/** `{errorMessage}` is replaced with the API's reason. */
|
|
5265
|
+
createFailed: string;
|
|
5266
|
+
/** `{errorMessage}` is replaced with the API's reason. */
|
|
5267
|
+
updateFailed: string;
|
|
5268
|
+
unknownError: string;
|
|
5269
|
+
/** `{message}` is the first reasons, `{count}` how many more there are. */
|
|
5270
|
+
apiErrorsSummary: string;
|
|
5253
5271
|
/** `{taxId}` is replaced with the party's tax ID. */
|
|
5254
5272
|
previewTaxId: string;
|
|
5255
5273
|
previewTaxableYes: string;
|
|
@@ -5275,6 +5293,9 @@ interface ReceivableMessageLabels {
|
|
|
5275
5293
|
previewRoutingNumber: string;
|
|
5276
5294
|
/** `{value}` is replaced with the account number. */
|
|
5277
5295
|
previewAccountNumber: string;
|
|
5296
|
+
/** `{name}` is replaced with the issuer's name. */
|
|
5297
|
+
previewLogoAlt: string;
|
|
5298
|
+
previewLogoAltNoName: string;
|
|
5278
5299
|
}
|
|
5279
5300
|
|
|
5280
5301
|
interface ReceivablesWidgetOwnProps {
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { InsightsWidget as L } from "./libs/tesouro-embedded-components-react/in
|
|
|
27
27
|
import { UploadReceiptWidget as R } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js";
|
|
28
28
|
import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js";
|
|
29
29
|
import { InvoicingWidget as B } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
|
|
30
|
-
import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/
|
|
30
|
+
import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js";
|
|
31
31
|
import { SettingsSection as H } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
|
|
32
32
|
import { HELP_FAQ_EN as U } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
33
33
|
import { SettingsWidget as W } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
|
|
@@ -1015,8 +1015,6 @@ interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels, Rece
|
|
|
1015
1015
|
addLineItemButton: string;
|
|
1016
1016
|
removeLineItemButton: string;
|
|
1017
1017
|
cancelButton: string;
|
|
1018
|
-
createButton: string;
|
|
1019
|
-
updateButton: string;
|
|
1020
1018
|
notesHeading: string;
|
|
1021
1019
|
notesDescription: string;
|
|
1022
1020
|
optionalSuffix: string;
|
|
@@ -1264,6 +1262,9 @@ interface ReceivableMessageLabels {
|
|
|
1264
1262
|
recurrenceRemoveRecipient: string;
|
|
1265
1263
|
recurrenceActivateButton: string;
|
|
1266
1264
|
recurrenceUpdateButton: string;
|
|
1265
|
+
saveDraftButton: string;
|
|
1266
|
+
updateDraftButton: string;
|
|
1267
|
+
issueButton: string;
|
|
1267
1268
|
recurrenceStartDateRequired: string;
|
|
1268
1269
|
recurrenceDayOfMonthRequired: string;
|
|
1269
1270
|
recurrenceDayOfWeekRequired: string;
|
|
@@ -1310,6 +1311,23 @@ interface ReceivableMessageLabels {
|
|
|
1310
1311
|
issueRemindersDisabled: string;
|
|
1311
1312
|
issueRemindersNoEmail: string;
|
|
1312
1313
|
issueRemindersDisabledNoEmail: string;
|
|
1314
|
+
lineItemNameRequired: string;
|
|
1315
|
+
lineItemQuantityRequired: string;
|
|
1316
|
+
lineItemsRequired: string;
|
|
1317
|
+
paymentTermsRequired: string;
|
|
1318
|
+
bankAccountRequired: string;
|
|
1319
|
+
issueTaxIdRequired: string;
|
|
1320
|
+
issueBankAccountUnavailable: string;
|
|
1321
|
+
issueChecksLoading: string;
|
|
1322
|
+
attachmentsUploading: string;
|
|
1323
|
+
issueFailedAfterSave: string;
|
|
1324
|
+
/** `{errorMessage}` is replaced with the API's reason. */
|
|
1325
|
+
createFailed: string;
|
|
1326
|
+
/** `{errorMessage}` is replaced with the API's reason. */
|
|
1327
|
+
updateFailed: string;
|
|
1328
|
+
unknownError: string;
|
|
1329
|
+
/** `{message}` is the first reasons, `{count}` how many more there are. */
|
|
1330
|
+
apiErrorsSummary: string;
|
|
1313
1331
|
/** `{taxId}` is replaced with the party's tax ID. */
|
|
1314
1332
|
previewTaxId: string;
|
|
1315
1333
|
previewTaxableYes: string;
|
|
@@ -1335,6 +1353,9 @@ interface ReceivableMessageLabels {
|
|
|
1335
1353
|
previewRoutingNumber: string;
|
|
1336
1354
|
/** `{value}` is replaced with the account number. */
|
|
1337
1355
|
previewAccountNumber: string;
|
|
1356
|
+
/** `{name}` is replaced with the issuer's name. */
|
|
1357
|
+
previewLogoAlt: string;
|
|
1358
|
+
previewLogoAltNoName: string;
|
|
1338
1359
|
}
|
|
1339
1360
|
|
|
1340
1361
|
interface ReceivablesWidgetOwnProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/
|
|
1
|
+
import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
|
|
3
3
|
export { e as ReceivablesWidget };
|
|
@@ -6,15 +6,17 @@ import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoney
|
|
|
6
6
|
import { normalizeAmountOutputCurrencyCode as t } from "../../../shared/util/dist/lib/normalizeAmountOutputCurrencyCode.js";
|
|
7
7
|
import { parseAmountOutputMajorUnits as n } from "../../../shared/util/dist/lib/parseAmountOutputMajorUnits.js";
|
|
8
8
|
import { sumAmountOutputsMajorUnits as r } from "../../../shared/util/dist/lib/sumAmountOutputsMajorUnits.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { isOrganizationOnItsWay as i } from "../../../shared/data-access/dist/lib/organizationStatus.js";
|
|
10
|
+
import { useEmbedApi as a } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
11
|
+
import { Scope as o } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
12
|
+
import { useAllBankAccountsQuery as s } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
11
13
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import { useRefetchWidget as
|
|
14
|
+
import { useRefetchWidget as c, useWidgetConfig as l, useWidgetError as u, useWidgetLoading as d } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
15
|
import "../../../shared/feature/dist/index.js";
|
|
14
|
-
import { createContext as
|
|
15
|
-
import { jsx as
|
|
16
|
+
import { createContext as f, useCallback as p, useContext as m, useMemo as h } from "react";
|
|
17
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
16
18
|
//#region ../../libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js
|
|
17
|
-
var
|
|
19
|
+
var _ = f({
|
|
18
20
|
accountRows: [],
|
|
19
21
|
isLoading: !1,
|
|
20
22
|
isError: !1,
|
|
@@ -24,14 +26,14 @@ var h = u({
|
|
|
24
26
|
shouldShowViewAllAccounts: !1,
|
|
25
27
|
isRowClickable: !1,
|
|
26
28
|
onViewAllAccountsClicked: () => {}
|
|
27
|
-
}),
|
|
28
|
-
let { data:
|
|
29
|
-
|
|
29
|
+
}), v = () => m(_), y = ({ children: f, maxAccounts: m, onBalanceRowClick: v, onViewAllAccountsClick: y }) => {
|
|
30
|
+
let { data: b, isLoading: x, isError: S, refetch: C, hasNextPage: w, isFetchingNextPage: T } = s(), { initResponse: E } = l(), D = d(), O = i(a().organizationStatus), k = u(), A = c(), j = D && !E || O && !b || x, M = !!k || S, N = p(() => {
|
|
31
|
+
A(), k || C();
|
|
30
32
|
}, [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
]),
|
|
33
|
+
A,
|
|
34
|
+
C,
|
|
35
|
+
k
|
|
36
|
+
]), P = b?.data ?? [], F = h(() => P.map((t) => {
|
|
35
37
|
let r = t.accountNumber.slice(-4), i = n(t.balance);
|
|
36
38
|
return {
|
|
37
39
|
accountId: t.id,
|
|
@@ -44,38 +46,38 @@ var h = u({
|
|
|
44
46
|
})
|
|
45
47
|
}
|
|
46
48
|
};
|
|
47
|
-
}), [
|
|
48
|
-
let n = t(
|
|
49
|
+
}), [P]), I = h(() => {
|
|
50
|
+
let n = t(P[0]?.balance?.currencyCode), i = r(P.map((e) => e.balance), n);
|
|
49
51
|
return e(i, {
|
|
50
52
|
currencyCode: n,
|
|
51
53
|
includeSpaceAfterCurrencySymbol: !1
|
|
52
54
|
});
|
|
53
|
-
}, [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
]),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
]),
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
return /* @__PURE__ */
|
|
55
|
+
}, [P]), L = h(() => P.length > 1 && (E?.scopes?.includes(o.BankAccountReadOrg) ?? !1) && !w && !T, [
|
|
56
|
+
P.length,
|
|
57
|
+
E?.scopes,
|
|
58
|
+
w,
|
|
59
|
+
T
|
|
60
|
+
]), R = h(() => P.length > m && !!y, [
|
|
61
|
+
P.length,
|
|
62
|
+
m,
|
|
63
|
+
y
|
|
64
|
+
]), z = p(() => {
|
|
65
|
+
y?.();
|
|
66
|
+
}, [y]), B = h(() => !!v, [v]);
|
|
67
|
+
return /* @__PURE__ */ g(_.Provider, {
|
|
66
68
|
value: {
|
|
67
|
-
accountRows:
|
|
68
|
-
isLoading:
|
|
69
|
-
isError:
|
|
70
|
-
refetch:
|
|
71
|
-
totalBalance:
|
|
72
|
-
shouldTotalBalanceDisplay:
|
|
73
|
-
shouldShowViewAllAccounts:
|
|
74
|
-
isRowClickable:
|
|
75
|
-
onViewAllAccountsClicked:
|
|
69
|
+
accountRows: F,
|
|
70
|
+
isLoading: j,
|
|
71
|
+
isError: M,
|
|
72
|
+
refetch: N,
|
|
73
|
+
totalBalance: I,
|
|
74
|
+
shouldTotalBalanceDisplay: L,
|
|
75
|
+
shouldShowViewAllAccounts: R,
|
|
76
|
+
isRowClickable: B,
|
|
77
|
+
onViewAllAccountsClicked: z
|
|
76
78
|
},
|
|
77
|
-
children:
|
|
79
|
+
children: f
|
|
78
80
|
});
|
|
79
81
|
};
|
|
80
82
|
//#endregion
|
|
81
|
-
export {
|
|
83
|
+
export { y as BalancesWidgetContextProvider, v as useBalancesWidgetContext };
|
|
@@ -18,7 +18,7 @@ var c = (e, t) => (n, r) => {
|
|
|
18
18
|
if (i !== void 0 && i.baseUrl === e && i.path?.id === t) return n;
|
|
19
19
|
};
|
|
20
20
|
function l(l, u) {
|
|
21
|
-
let { client: d, organizationId: f, widgetToken: p, authEpoch: m,
|
|
21
|
+
let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationStatus: h } = n();
|
|
22
22
|
i(l, u);
|
|
23
23
|
let g = !!(p && l && u), _ = d.getConfig().baseUrl, v = o(() => c(_, l), [_, l]), y = s({
|
|
24
24
|
...t(e({
|
|
@@ -27,7 +27,7 @@ function l(l, u) {
|
|
|
27
27
|
headers: r(f)
|
|
28
28
|
}), {
|
|
29
29
|
authEpoch: m,
|
|
30
|
-
|
|
30
|
+
organizationStatus: h
|
|
31
31
|
}),
|
|
32
32
|
placeholderData: v,
|
|
33
33
|
enabled: g,
|
|
@@ -10,7 +10,7 @@ import "../../../../shared/data-access/dist/index.js";
|
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js
|
|
12
12
|
function a({ id: a, enabled: o }) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
14
14
|
client: s,
|
|
15
15
|
headers: r(c),
|
|
16
16
|
path: { id: a ?? "" }
|
|
@@ -18,7 +18,7 @@ function a({ id: a, enabled: o }) {
|
|
|
18
18
|
return i({
|
|
19
19
|
...t(f, {
|
|
20
20
|
authEpoch: u,
|
|
21
|
-
|
|
21
|
+
organizationStatus: d
|
|
22
22
|
}),
|
|
23
23
|
enabled: !!(a && c && l) && (o === !0 || o === void 0)
|
|
24
24
|
});
|
|
@@ -10,7 +10,7 @@ import "../../../../shared/data-access/dist/index.js";
|
|
|
10
10
|
import { keepPreviousData as i, useQuery as a } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js
|
|
12
12
|
function o({ id: o, enabled: s, ...c }) {
|
|
13
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f,
|
|
13
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = e({
|
|
14
14
|
client: l,
|
|
15
15
|
headers: r(u),
|
|
16
16
|
path: { id: o ?? "" },
|
|
@@ -19,7 +19,7 @@ function o({ id: o, enabled: s, ...c }) {
|
|
|
19
19
|
return a({
|
|
20
20
|
...t(m, {
|
|
21
21
|
authEpoch: f,
|
|
22
|
-
|
|
22
|
+
organizationStatus: p
|
|
23
23
|
}),
|
|
24
24
|
enabled: !!(o && u && d) && (s === !0 || s === void 0),
|
|
25
25
|
placeholderData: i
|
|
@@ -10,7 +10,7 @@ import "../../../../shared/data-access/dist/index.js";
|
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js
|
|
12
12
|
function a({ id: a, enabled: o, ...s }) {
|
|
13
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
13
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
|
|
14
14
|
client: c,
|
|
15
15
|
headers: r(l),
|
|
16
16
|
path: { id: a ?? "" },
|
|
@@ -19,7 +19,7 @@ function a({ id: a, enabled: o, ...s }) {
|
|
|
19
19
|
return i({
|
|
20
20
|
...t(p, {
|
|
21
21
|
authEpoch: d,
|
|
22
|
-
|
|
22
|
+
organizationStatus: f
|
|
23
23
|
}),
|
|
24
24
|
enabled: !!(a && l && u) && (o === !0 || o === void 0)
|
|
25
25
|
});
|