@tesouro/embedded-components-react 0.11.141 → 0.11.168
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/NOTICE +24 -0
- package/README.md +15 -37
- package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
- package/dist/experimental/QuickViewWidget.d.ts +0 -11
- package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
- package/dist/experimental/index.d.ts +0 -11
- package/dist/fixtures/index.d.ts +27 -1
- package/dist/index.css +6976 -6246
- package/dist/index.d.ts +67 -173
- package/dist/index.js +9 -10
- package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
- package/dist/lib/BalancesWidget.d.ts +0 -11
- package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
- package/dist/lib/BankAccountsWidget.d.ts +3 -11
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
- package/dist/lib/BillPayWidget.d.ts +0 -11
- package/dist/lib/CardDetailsWidget.d.ts +0 -11
- package/dist/lib/CounterpartsWidget.d.ts +1 -12
- package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
- package/dist/lib/CreditCardsWidget.d.ts +1 -11
- package/dist/lib/DebitCardsWidget.d.ts +1 -11
- package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
- package/dist/lib/InsightsWidget.d.ts +0 -11
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -11
- package/dist/lib/OfferWidget.d.ts +0 -11
- package/dist/lib/ReceivablesWidget.d.ts +60 -17
- package/dist/lib/ReceivablesWidget.js +3 -2
- package/dist/lib/SettingsWidget.d.ts +0 -11
- package/dist/lib/TransfersWidget.d.ts +0 -11
- package/dist/lib/WidgetProvider.d.ts +0 -11
- package/dist/lib/WidgetProviderPublic.d.ts +0 -11
- package/dist/lib/WidgetSuite.d.ts +63 -15
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +122 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +63 -59
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +161 -160
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +126 -122
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +193 -192
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +100 -96
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
- 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/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
- package/dist/node_modules/sonner/dist/index.js +620 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
- package/dist/scenarios/index.d.ts +1 -3
- package/dist/scenarios/index.js +17 -20
- package/package.json +17 -4
- package/dist/lib/CustomersWidget.d.ts +0 -993
- package/dist/lib/CustomersWidget.js +0 -2
- package/dist/lib/ProductsWidget.d.ts +0 -893
- package/dist/lib/ProductsWidget.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PartialDeep } from 'type-fest';
|
|
2
|
-
import { RowData } from '@tanstack/react-table';
|
|
3
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
@@ -332,16 +331,6 @@ type EmbeddedClient = Client;
|
|
|
332
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
333
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
334
333
|
|
|
335
|
-
declare module '@tanstack/react-table' {
|
|
336
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
337
|
-
/**
|
|
338
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
339
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
340
|
-
*/
|
|
341
|
-
fitContent?: boolean;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
334
|
interface LabelLabels {
|
|
346
335
|
/**
|
|
347
336
|
* How the field name and its requirement fragment compose. `{label}` is the
|
|
@@ -1000,7 +989,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
|
|
|
1000
989
|
*
|
|
1001
990
|
* The workspace-internal component additionally accepts a `passThrough` prop
|
|
1002
991
|
* that tells it to give up its own analytics identity when a composing widget
|
|
1003
|
-
* (`
|
|
992
|
+
* (`ReceivablesWidget`'s Customers tab, `BillPayWidget`'s Vendors tab) mounts it to
|
|
1004
993
|
* inherit the host's identity instead (EMBD-5384). That choice is set **only**
|
|
1005
994
|
* by those composing widgets, never by integrators: an integrator's own
|
|
1006
995
|
* standalone mount must always claim its own identity.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
2
2
|
import { PartialDeep } from 'type-fest';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
type AuthToken = string | undefined;
|
|
@@ -332,16 +331,6 @@ type EmbeddedClient = Client;
|
|
|
332
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
333
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
334
333
|
|
|
335
|
-
declare module '@tanstack/react-table' {
|
|
336
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
337
|
-
/**
|
|
338
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
339
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
340
|
-
*/
|
|
341
|
-
fitContent?: boolean;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
334
|
interface LabelLabels {
|
|
346
335
|
/**
|
|
347
336
|
* How the field name and its requirement fragment compose. `{label}` is the
|
|
@@ -1000,7 +989,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
|
|
|
1000
989
|
*
|
|
1001
990
|
* The workspace-internal component additionally accepts a `passThrough` prop
|
|
1002
991
|
* that tells it to give up its own analytics identity when a composing widget
|
|
1003
|
-
* (`
|
|
992
|
+
* (`ReceivablesWidget`'s Customers tab, `BillPayWidget`'s Vendors tab) mounts it to
|
|
1004
993
|
* inherit the host's identity instead (EMBD-5384). That choice is set **only**
|
|
1005
994
|
* by those composing widgets, never by integrators: an integrator's own
|
|
1006
995
|
* standalone mount must always claim its own identity.
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { PartialDeep } from 'type-fest';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
|
-
declare module '@tanstack/react-table' {
|
|
8
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
9
|
-
/**
|
|
10
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
11
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
12
|
-
*/
|
|
13
|
-
fitContent?: boolean;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
6
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
18
7
|
children?: ReactNode;
|
|
19
8
|
};
|
|
@@ -98,6 +87,7 @@ interface CardsListLabels {
|
|
|
98
87
|
loadingLabel: string;
|
|
99
88
|
emptyTitle: string;
|
|
100
89
|
emptyDescription: string;
|
|
90
|
+
accessRestrictedTitle: string;
|
|
101
91
|
errorTitle: string;
|
|
102
92
|
errorDescription: string;
|
|
103
93
|
retryButton: string;
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { RowData } from '@tanstack/react-table';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
4
3
|
import { PartialDeep } from 'type-fest';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
|
-
declare module '@tanstack/react-table' {
|
|
8
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
9
|
-
/**
|
|
10
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
11
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
12
|
-
*/
|
|
13
|
-
fitContent?: boolean;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
6
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
18
7
|
children?: ReactNode;
|
|
19
8
|
};
|
|
@@ -98,6 +87,7 @@ interface CardsListLabels {
|
|
|
98
87
|
loadingLabel: string;
|
|
99
88
|
emptyTitle: string;
|
|
100
89
|
emptyDescription: string;
|
|
90
|
+
accessRestrictedTitle: string;
|
|
101
91
|
errorTitle: string;
|
|
102
92
|
errorDescription: string;
|
|
103
93
|
retryButton: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, Ref } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface ExpensesHeaderLabels {
|
|
@@ -103,16 +102,6 @@ interface AccordionItemCardLabels {
|
|
|
103
102
|
location: string;
|
|
104
103
|
}
|
|
105
104
|
|
|
106
|
-
declare module '@tanstack/react-table' {
|
|
107
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
108
|
-
/**
|
|
109
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
110
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
111
|
-
*/
|
|
112
|
-
fitContent?: boolean;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
105
|
interface TransactionDetailsActionsLabels {
|
|
117
106
|
returnToExpenses: string;
|
|
118
107
|
cancel: string;
|
|
@@ -829,7 +818,7 @@ type ExpenseManagementWidgetProps = WidgetProviderProps & ExpenseManagementWidge
|
|
|
829
818
|
* the unmatched-receipts Action Item), and an Upload Receipts entry
|
|
830
819
|
* point — composed from `ExpensesScreen` rather than a monolithic UI
|
|
831
820
|
* component, following the `WidgetProvider` "Feature Component Pattern" the
|
|
832
|
-
* same way `
|
|
821
|
+
* same way `ReceivablesWidget` does.
|
|
833
822
|
*
|
|
834
823
|
* Team tab visibility matches legacy: `ExpenseReadOrg`, or a direct-reports
|
|
835
824
|
* probe for people-managers without org-wide read. The Team list, its count
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface InsightsWidgetLabels {
|
|
@@ -371,16 +370,6 @@ type EmbeddedClient = Client;
|
|
|
371
370
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
372
371
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
373
372
|
|
|
374
|
-
declare module '@tanstack/react-table' {
|
|
375
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
376
|
-
/**
|
|
377
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
378
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
379
|
-
*/
|
|
380
|
-
fitContent?: boolean;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
373
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
385
374
|
children?: ReactNode;
|
|
386
375
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface Labels {
|
|
@@ -86,6 +85,7 @@ interface Labels {
|
|
|
86
85
|
verifyErrorTitle: string;
|
|
87
86
|
emptyTitle: string;
|
|
88
87
|
emptyDescription: string;
|
|
88
|
+
accessRestrictedTitle: string;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
type AuthToken = string | undefined;
|
|
@@ -417,16 +417,6 @@ type EmbeddedClient = Client;
|
|
|
417
417
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
418
418
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
419
419
|
|
|
420
|
-
declare module '@tanstack/react-table' {
|
|
421
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
422
|
-
/**
|
|
423
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
424
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
425
|
-
*/
|
|
426
|
-
fitContent?: boolean;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
420
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
431
421
|
children?: ReactNode;
|
|
432
422
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
|
-
import { RowData } from '@tanstack/react-table';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
6
|
interface OfferWidgetLabels {
|
|
@@ -384,16 +383,6 @@ type EmbeddedClient = Client;
|
|
|
384
383
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
385
384
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
386
385
|
|
|
387
|
-
declare module '@tanstack/react-table' {
|
|
388
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
389
|
-
/**
|
|
390
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
391
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
392
|
-
*/
|
|
393
|
-
fitContent?: boolean;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
386
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
398
387
|
children?: ReactNode;
|
|
399
388
|
};
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
|
-
import { RowData } from '@tanstack/react-table';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
|
-
declare module '@tanstack/react-table' {
|
|
8
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
9
|
-
/**
|
|
10
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
11
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
12
|
-
*/
|
|
13
|
-
fitContent?: boolean;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
6
|
interface LabelLabels {
|
|
18
7
|
/**
|
|
19
8
|
* How the field name and its requirement fragment compose. `{label}` is the
|
|
@@ -1132,6 +1121,7 @@ interface ReceivablesScreenLabels {
|
|
|
1132
1121
|
columnNumber: string;
|
|
1133
1122
|
columnCustomer: string;
|
|
1134
1123
|
columnIssueDate: string;
|
|
1124
|
+
columnBalanceDue: string;
|
|
1135
1125
|
columnAmount: string;
|
|
1136
1126
|
/**
|
|
1137
1127
|
* A focused row's accessible name. The row itself is the control that
|
|
@@ -1166,6 +1156,7 @@ interface UnsavedInvoiceDialogLabels {
|
|
|
1166
1156
|
}
|
|
1167
1157
|
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
1168
1158
|
createTitle: string;
|
|
1159
|
+
createRecurringTitle: string;
|
|
1169
1160
|
createDescription: string;
|
|
1170
1161
|
editTitle: string;
|
|
1171
1162
|
editDescription: string;
|
|
@@ -1356,6 +1347,28 @@ interface ReceivablePreviewLabels {
|
|
|
1356
1347
|
paymentQrCodeLabel: string;
|
|
1357
1348
|
}
|
|
1358
1349
|
|
|
1350
|
+
interface RecurringSeriesScreenLabels {
|
|
1351
|
+
createButton: string;
|
|
1352
|
+
columnCustomer: string;
|
|
1353
|
+
columnRepeats: string;
|
|
1354
|
+
columnNextInvoice: string;
|
|
1355
|
+
columnStatus: string;
|
|
1356
|
+
columnAmount: string;
|
|
1357
|
+
openRow: (customerLabel: string) => string;
|
|
1358
|
+
searchPlaceholder: string;
|
|
1359
|
+
searchLabel: string;
|
|
1360
|
+
emptyTitle: string;
|
|
1361
|
+
emptyDescription: string;
|
|
1362
|
+
filterEmptyTitle: string;
|
|
1363
|
+
filterEmptyAction: string;
|
|
1364
|
+
errorTitle: string;
|
|
1365
|
+
errorDescription: string;
|
|
1366
|
+
errorRetry: string;
|
|
1367
|
+
accessRestrictedTitle: string;
|
|
1368
|
+
accessRestrictedDescription: string;
|
|
1369
|
+
}
|
|
1370
|
+
type RecurringSeriesScreenLabelOverrides = Partial<RecurringSeriesScreenLabels>;
|
|
1371
|
+
|
|
1359
1372
|
declare const InvoicesDatePreset: {
|
|
1360
1373
|
readonly Today: "today";
|
|
1361
1374
|
readonly ThisWeek: "this_week";
|
|
@@ -1377,6 +1390,7 @@ interface InvoicesFilterLabels {
|
|
|
1377
1390
|
presetGroupCurrent: string;
|
|
1378
1391
|
presetGroupPast: string;
|
|
1379
1392
|
dateFieldNames: Record<InvoicesDateFilterField, string>;
|
|
1393
|
+
paidDateFieldName: string;
|
|
1380
1394
|
dateRange: (from: string, to: string) => string;
|
|
1381
1395
|
dateFrom: (from: string) => string;
|
|
1382
1396
|
dateTo: (to: string) => string;
|
|
@@ -1449,11 +1463,28 @@ interface ReceivableMessageLabels {
|
|
|
1449
1463
|
untitledDocument: string;
|
|
1450
1464
|
/** Shown in an invoice row's number and date cells while they have no value. */
|
|
1451
1465
|
pendingValue: string;
|
|
1452
|
-
/**
|
|
1453
|
-
|
|
1466
|
+
/** Repeats or Next invoice for a series with nothing to show there. */
|
|
1467
|
+
listSeriesNoValue: string;
|
|
1468
|
+
/** Repeats for a series that skips periods; `{interval}` is replaced. */
|
|
1469
|
+
listSeriesEveryDays: string;
|
|
1470
|
+
listSeriesEveryWeeks: string;
|
|
1471
|
+
listSeriesEveryMonths: string;
|
|
1472
|
+
listSeriesEveryQuarters: string;
|
|
1473
|
+
listSeriesEveryYears: string;
|
|
1474
|
+
/** A monthly series' Repeats; `{cadence}` and `{day}` are replaced, e.g. "Monthly, last day". */
|
|
1475
|
+
listSeriesMonthDay: string;
|
|
1476
|
+
listSeriesFirstDay: string;
|
|
1477
|
+
listSeriesLastDay: string;
|
|
1478
|
+
/** Next invoice for a series that will issue no more invoices. */
|
|
1479
|
+
listSeriesNoNextInvoice: string;
|
|
1480
|
+
listDueToday: string;
|
|
1481
|
+
listDueTomorrow: string;
|
|
1454
1482
|
/** `{days}` is replaced. */
|
|
1455
1483
|
listDayOverdue: string;
|
|
1456
1484
|
listDaysOverdue: string;
|
|
1485
|
+
/** An overdue due date's accessible name; `{overdue}` and `{date}` are replaced. */
|
|
1486
|
+
listOverdueAccessibleName: string;
|
|
1487
|
+
listRecurringBadge: string;
|
|
1457
1488
|
unknownCustomer: string;
|
|
1458
1489
|
notAvailable: string;
|
|
1459
1490
|
summaryUnpaid: string;
|
|
@@ -1757,6 +1788,14 @@ interface ReceivableMessageLabels {
|
|
|
1757
1788
|
previewLogoAltNoName: string;
|
|
1758
1789
|
}
|
|
1759
1790
|
|
|
1791
|
+
declare const ReceivableStatusCard: {
|
|
1792
|
+
readonly Unpaid: "unpaid";
|
|
1793
|
+
readonly Overdue: "overdue";
|
|
1794
|
+
readonly Paid: "paid";
|
|
1795
|
+
readonly Drafts: "drafts";
|
|
1796
|
+
};
|
|
1797
|
+
type ReceivableStatusCard = (typeof ReceivableStatusCard)[keyof typeof ReceivableStatusCard];
|
|
1798
|
+
|
|
1760
1799
|
declare const InvoicingTab: {
|
|
1761
1800
|
readonly Invoices: "invoices";
|
|
1762
1801
|
readonly Recurring: "recurring";
|
|
@@ -1769,7 +1808,6 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
|
1769
1808
|
recurringTab: string;
|
|
1770
1809
|
customersTab: string;
|
|
1771
1810
|
productsTab: string;
|
|
1772
|
-
createRecurringInvoiceButton: string;
|
|
1773
1811
|
}
|
|
1774
1812
|
|
|
1775
1813
|
interface ReceivablesWidgetOwnProps {
|
|
@@ -1781,16 +1819,21 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1781
1819
|
selectedTab?: InvoicingTabId;
|
|
1782
1820
|
/** Called when the user picks a tab, so the host can keep it in the URL. */
|
|
1783
1821
|
onTabChange?: (tab: InvoicingTabId) => void;
|
|
1822
|
+
/** The active summary card on the Invoices tab, or `null` for none. Applied on mount and whenever it changes; omit to let the widget track it. */
|
|
1823
|
+
selectedStatusCard?: ReceivableStatusCard | null;
|
|
1824
|
+
/** Called when the active summary card changes: a card click, or a Status filter change that matches or leaves a card. */
|
|
1825
|
+
onStatusCardChange?: (card: ReceivableStatusCard | null) => void;
|
|
1784
1826
|
initialView?: 'create';
|
|
1785
1827
|
/** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
|
|
1786
1828
|
initialCounterpartId?: string;
|
|
1787
1829
|
pageSizeOptions?: number[];
|
|
1788
1830
|
onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
|
|
1789
1831
|
onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
|
|
1790
|
-
/** Shows an invoice settings button on the
|
|
1832
|
+
/** Shows an invoice settings button at the top right, on the `headerStart` line, for users holding `organization_settings:write:org`. */
|
|
1791
1833
|
onTemplateSettingsClick?: () => void;
|
|
1792
1834
|
tabLabels?: Partial<InvoicingTabLabels>;
|
|
1793
1835
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
1836
|
+
seriesScreenLabels?: RecurringSeriesScreenLabelOverrides;
|
|
1794
1837
|
filterBarLabels?: InvoicesFilterBarLabelOverrides;
|
|
1795
1838
|
filterLabels?: InvoicesFilterLabelOverrides;
|
|
1796
1839
|
formLabels?: Partial<ReceivableFormDialogLabels>;
|
|
@@ -1812,5 +1855,5 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
|
1812
1855
|
|
|
1813
1856
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1814
1857
|
|
|
1815
|
-
export { InvoicingTab, ReceivablesWidget };
|
|
1816
|
-
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps };
|
|
1858
|
+
export { InvoicingTab, ReceivableStatusCard, ReceivablesWidget };
|
|
1859
|
+
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InvoicingTab as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ReceivableStatusCard as t } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js";
|
|
3
|
+
import { ReceivablesWidget as n } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
3
4
|
import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
|
|
4
|
-
export { e as InvoicingTab, t as ReceivablesWidget };
|
|
5
|
+
export { e as InvoicingTab, t as ReceivableStatusCard, n as ReceivablesWidget };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode, ComponentType, AnchorHTMLAttributes, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface Labels {
|
|
@@ -384,16 +383,6 @@ type EmbeddedClient = Client;
|
|
|
384
383
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
385
384
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
386
385
|
|
|
387
|
-
declare module '@tanstack/react-table' {
|
|
388
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
389
|
-
/**
|
|
390
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
391
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
392
|
-
*/
|
|
393
|
-
fitContent?: boolean;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
386
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
398
387
|
children?: ReactNode;
|
|
399
388
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
type AuthToken = string | undefined;
|
|
@@ -332,16 +331,6 @@ type EmbeddedClient = Client;
|
|
|
332
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
333
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
334
333
|
|
|
335
|
-
declare module '@tanstack/react-table' {
|
|
336
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
337
|
-
/**
|
|
338
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
339
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
340
|
-
*/
|
|
341
|
-
fitContent?: boolean;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
334
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
346
335
|
children?: ReactNode;
|
|
347
336
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RowData } from '@tanstack/react-table';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo } from 'react';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
@@ -383,16 +382,6 @@ type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
|
383
382
|
*/
|
|
384
383
|
declare function cloneEmbeddedClient(source: EmbeddedClient): EmbeddedClient;
|
|
385
384
|
|
|
386
|
-
declare module '@tanstack/react-table' {
|
|
387
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
388
|
-
/**
|
|
389
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
390
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
391
|
-
*/
|
|
392
|
-
fitContent?: boolean;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
385
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
397
386
|
children?: ReactNode;
|
|
398
387
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, PropsWithChildren } from 'react';
|
|
2
|
-
import { RowData } from '@tanstack/react-table';
|
|
3
2
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
3
|
|
|
5
4
|
type AuthToken = string | undefined;
|
|
@@ -331,16 +330,6 @@ type EmbeddedClient = Client;
|
|
|
331
330
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
332
331
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
333
332
|
|
|
334
|
-
declare module '@tanstack/react-table' {
|
|
335
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
336
|
-
/**
|
|
337
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
338
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
339
|
-
*/
|
|
340
|
-
fitContent?: boolean;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
333
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
345
334
|
children?: ReactNode;
|
|
346
335
|
};
|