@tesouro/embedded-components-react 0.5.107 → 0.5.108
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 +6 -5
- package/dist/index.d.ts +16 -2
- package/dist/lib/CounterpartsWidget.d.ts +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +327 -327
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +78 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +149 -135
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +125 -121
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +195 -193
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -337,11 +337,12 @@ A self-contained widget for managing an organization's customers or vendors with
|
|
|
337
337
|
|
|
338
338
|
#### Props
|
|
339
339
|
|
|
340
|
-
| Prop | Type
|
|
341
|
-
| -------------------- |
|
|
342
|
-
| `counterpartType` | `'customer' \| 'vendor'`
|
|
343
|
-
| `pageSizeOptions` | `number[]`
|
|
344
|
-
| `onViewAllDocuments` | `() => void`
|
|
340
|
+
| Prop | Type | Default | Description |
|
|
341
|
+
| -------------------- | ------------------------------------------------ | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
342
|
+
| `counterpartType` | `'customer' \| 'vendor'` | — | Required. Selects receivables/customer copy and queries or payables/vendor copy and queries. |
|
|
343
|
+
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. |
|
|
344
|
+
| `onViewAllDocuments` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Reveals a "View all" action beside the recent-bills/invoices heading in the details sheet, and hands over the counterpart's `id` and `name` so the destination can filter to them. Omit when the host has no document list to navigate to; the action stays hidden rather than dead. |
|
|
345
|
+
| `onCreateDocument` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Runs the details sheet's primary CTA — "Send a payment" for a vendor, "Issue an invoice" for a customer — with the counterpart's `id` and `name`, so the host can open its create flow pre-linked to them. Omit and the button renders disabled. The destination's own scope (payable/invoice write) is the host's to check. |
|
|
345
346
|
|
|
346
347
|
| Prop | Type | Description |
|
|
347
348
|
| ------------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
package/dist/index.d.ts
CHANGED
|
@@ -4111,6 +4111,14 @@ interface CounterpartDetailsSheetLabels {
|
|
|
4111
4111
|
/** Whether this widget is showing customers (receivables) or vendors (payables). */
|
|
4112
4112
|
type CounterpartMode = 'customer' | 'vendor';
|
|
4113
4113
|
|
|
4114
|
+
/**
|
|
4115
|
+
* The counterpart a details-sheet action was invoked for. The name rides along
|
|
4116
|
+
* so a host filtering by it can label that filter without a second lookup.
|
|
4117
|
+
*/
|
|
4118
|
+
interface CounterpartActionTarget {
|
|
4119
|
+
id: string;
|
|
4120
|
+
name: string;
|
|
4121
|
+
}
|
|
4114
4122
|
interface CounterpartsWidgetOwnProps {
|
|
4115
4123
|
/** Selects customer (receivables) or vendor (payables) behavior and copy. */
|
|
4116
4124
|
counterpartType: CounterpartMode;
|
|
@@ -4120,7 +4128,13 @@ interface CounterpartsWidgetOwnProps {
|
|
|
4120
4128
|
* details sheet. Omit when the host has nowhere to send the user; the
|
|
4121
4129
|
* standalone widget does not own a bills or invoices list.
|
|
4122
4130
|
*/
|
|
4123
|
-
onViewAllDocuments?: () => void;
|
|
4131
|
+
onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
|
|
4132
|
+
/**
|
|
4133
|
+
* Opens the host's create flow for this counterpart, behind the "Send a
|
|
4134
|
+
* payment" / "Issue an invoice" button, which stays disabled while unwired.
|
|
4135
|
+
* The destination's own scope is the host's to check.
|
|
4136
|
+
*/
|
|
4137
|
+
onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
|
|
4124
4138
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
|
4125
4139
|
formLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
4126
4140
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
@@ -4908,4 +4922,4 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
4908
4922
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
4909
4923
|
|
|
4910
4924
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
4911
|
-
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetContent, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
4925
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetContent, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
@@ -909,6 +909,14 @@ interface CounterpartDetailsSheetLabels {
|
|
|
909
909
|
/** Whether this widget is showing customers (receivables) or vendors (payables). */
|
|
910
910
|
type CounterpartMode = 'customer' | 'vendor';
|
|
911
911
|
|
|
912
|
+
/**
|
|
913
|
+
* The counterpart a details-sheet action was invoked for. The name rides along
|
|
914
|
+
* so a host filtering by it can label that filter without a second lookup.
|
|
915
|
+
*/
|
|
916
|
+
interface CounterpartActionTarget {
|
|
917
|
+
id: string;
|
|
918
|
+
name: string;
|
|
919
|
+
}
|
|
912
920
|
interface CounterpartsWidgetOwnProps {
|
|
913
921
|
/** Selects customer (receivables) or vendor (payables) behavior and copy. */
|
|
914
922
|
counterpartType: CounterpartMode;
|
|
@@ -918,7 +926,13 @@ interface CounterpartsWidgetOwnProps {
|
|
|
918
926
|
* details sheet. Omit when the host has nowhere to send the user; the
|
|
919
927
|
* standalone widget does not own a bills or invoices list.
|
|
920
928
|
*/
|
|
921
|
-
onViewAllDocuments?: () => void;
|
|
929
|
+
onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
|
|
930
|
+
/**
|
|
931
|
+
* Opens the host's create flow for this counterpart, behind the "Send a
|
|
932
|
+
* payment" / "Issue an invoice" button, which stays disabled while unwired.
|
|
933
|
+
* The destination's own scope is the host's to check.
|
|
934
|
+
*/
|
|
935
|
+
onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
|
|
922
936
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
|
923
937
|
formLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
924
938
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
@@ -951,4 +965,4 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
|
|
|
951
965
|
declare function CounterpartsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: CounterpartsWidgetProps): React.JSX.Element;
|
|
952
966
|
|
|
953
967
|
export { CounterpartsWidget };
|
|
954
|
-
export type { AddressFormSheetLabels, BankAccountFormSheetLabels, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps };
|
|
968
|
+
export type { AddressFormSheetLabels, BankAccountFormSheetLabels, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps };
|