@tesouro/embedded-components-react 0.2.280 → 0.2.281
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 +17 -14
- package/dist/experimental/WidgetSuite.d.ts +9 -1
- package/dist/experimental/index.d.ts +9 -1
- package/dist/index.css +3 -0
- package/dist/index.d.ts +46 -23
- package/dist/index.js +54 -53
- package/dist/lib/AcceptDisclosuresWidget.d.ts +9 -1
- package/dist/lib/BalancesWidget.d.ts +8 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -1
- package/dist/lib/BankAccountsWidget.d.ts +9 -1
- package/dist/lib/BillPayWidget.d.ts +8 -0
- package/dist/lib/CardDetailsWidget.d.ts +9 -1
- package/dist/lib/CardsWidget.d.ts +9 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +9 -1
- package/dist/lib/CounterpartsWidget.d.ts +9 -1
- package/dist/lib/CreateCardWidget.d.ts +9 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +9 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +9 -1
- package/dist/lib/ExpenseRequirementsWidget.d.ts +9 -1
- package/dist/lib/HelpWidget.d.ts +9 -1
- package/dist/lib/InsightsWidget.d.ts +8 -0
- package/dist/lib/InvoicingWidget.d.ts +9 -1
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -1
- package/dist/lib/ProductsWidget.d.ts +9 -1
- package/dist/lib/ProfileWidget.d.ts +9 -1
- package/dist/lib/ReceiptMatchWidget.d.ts +9 -1
- package/dist/lib/ReceivablesWidget.d.ts +9 -1
- package/dist/lib/SettingsWidget.d.ts +9 -1
- package/dist/lib/TagsWidget.d.ts +9 -1
- package/dist/lib/TeamWidget.d.ts +9 -1
- package/dist/lib/TransfersWidget.d.ts +8 -0
- package/dist/lib/WidgetProvider.d.ts +25 -2
- package/dist/lib/WidgetProvider.js +8 -7
- package/dist/lib/WidgetProviderPublic.d.ts +8 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +54 -53
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +69 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +158 -132
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +6 -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/ui/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +3 -2
- package/package.json +1 -1
|
@@ -855,6 +855,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
855
855
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
856
856
|
*/
|
|
857
857
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
858
|
+
/**
|
|
859
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
860
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
861
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
862
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
863
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
864
|
+
*/
|
|
865
|
+
disclosuresAcceptance?: ReactNode;
|
|
858
866
|
}
|
|
859
867
|
|
|
860
868
|
/**
|
|
@@ -947,7 +955,7 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
947
955
|
onOpenChange?: (open: boolean) => void;
|
|
948
956
|
}
|
|
949
957
|
type BankAccountOnboardingWidgetProps = WidgetProviderProps & BankAccountOnboardingWidgetInnerProps;
|
|
950
|
-
declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: BankAccountOnboardingWidgetProps): React.JSX.Element;
|
|
958
|
+
declare function BankAccountOnboardingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: BankAccountOnboardingWidgetProps): React.JSX.Element;
|
|
951
959
|
|
|
952
960
|
export { ADDITIONAL_OWNERS_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BankAccountOnboardingWidget, PERSONAL_DETAILS_LABELS_EN, RESULT_LABELS_EN };
|
|
953
961
|
export type { AdditionalOwner, AdditionalOwnersLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CompanyStructureValue, DisclosureLinks, MarketingWidgetContent, PersonalDetailsLabels, PersonalDetailsValues, ResultLabels };
|
|
@@ -627,6 +627,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
627
627
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
628
628
|
*/
|
|
629
629
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
630
|
+
/**
|
|
631
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
632
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
633
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
634
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
635
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
636
|
+
*/
|
|
637
|
+
disclosuresAcceptance?: ReactNode;
|
|
630
638
|
}
|
|
631
639
|
|
|
632
640
|
interface Labels {
|
|
@@ -725,7 +733,7 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
|
|
|
725
733
|
/** Called when the user opens account details or goes back to the list. */
|
|
726
734
|
onSelectedAccountIdChange?: (accountId: string | null) => void;
|
|
727
735
|
}
|
|
728
|
-
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
|
|
736
|
+
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
|
|
729
737
|
|
|
730
738
|
export { BankAccountsWidget };
|
|
731
739
|
export type { Labels as AccountDetailsWidgetLabels, FeatureLabels as BankAccountsWidgetFeatureLabels, Labels$1 as BankAccountsWidgetLabels, BankAccountsWidgetProps };
|
|
@@ -739,6 +739,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
739
739
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
740
740
|
*/
|
|
741
741
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
742
|
+
/**
|
|
743
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
744
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
745
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
746
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
747
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
748
|
+
*/
|
|
749
|
+
disclosuresAcceptance?: ReactNode;
|
|
742
750
|
}
|
|
743
751
|
|
|
744
752
|
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
@@ -633,6 +633,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
633
633
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
634
634
|
*/
|
|
635
635
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
636
|
+
/**
|
|
637
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
638
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
639
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
640
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
641
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
642
|
+
*/
|
|
643
|
+
disclosuresAcceptance?: ReactNode;
|
|
636
644
|
}
|
|
637
645
|
|
|
638
646
|
/**
|
|
@@ -768,7 +776,7 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
768
776
|
* Both placements are covered by specs, because they take different code paths
|
|
769
777
|
* through the provider and this export exists for the standalone one.
|
|
770
778
|
*/
|
|
771
|
-
declare function CardDetailsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CardDetailsWidgetProps): React.JSX.Element;
|
|
779
|
+
declare function CardDetailsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CardDetailsWidgetProps): React.JSX.Element;
|
|
772
780
|
|
|
773
781
|
export { CardDetailsWidget };
|
|
774
782
|
export type { CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps };
|
|
@@ -677,6 +677,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
677
677
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
678
678
|
*/
|
|
679
679
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
680
|
+
/**
|
|
681
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
682
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
683
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
684
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
685
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
686
|
+
*/
|
|
687
|
+
disclosuresAcceptance?: ReactNode;
|
|
680
688
|
}
|
|
681
689
|
|
|
682
690
|
/**
|
|
@@ -1151,7 +1159,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
1151
1159
|
* inside `WidgetProvider`'s subtree, which is what the data-access hooks read
|
|
1152
1160
|
* their client, org and token from.
|
|
1153
1161
|
*/
|
|
1154
|
-
declare function CardsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CardsWidgetProps): React.JSX.Element;
|
|
1162
|
+
declare function CardsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CardsWidgetProps): React.JSX.Element;
|
|
1155
1163
|
|
|
1156
1164
|
export { CardsWidget };
|
|
1157
1165
|
export type { CardsFeatureLabels as CardsWidgetFeatureLabels, CardsListLabels as CardsWidgetLabels, CardsWidgetPagination, CardsWidgetProps };
|
|
@@ -835,6 +835,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
835
835
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
836
836
|
*/
|
|
837
837
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
838
|
+
/**
|
|
839
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
840
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
841
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
842
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
843
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
844
|
+
*/
|
|
845
|
+
disclosuresAcceptance?: ReactNode;
|
|
838
846
|
}
|
|
839
847
|
|
|
840
848
|
/**
|
|
@@ -919,7 +927,7 @@ type ChartOfAccountsWidgetProps = WidgetProviderProps & TableProps & ChartOfAcco
|
|
|
919
927
|
* />
|
|
920
928
|
* ```
|
|
921
929
|
*/
|
|
922
|
-
declare function ChartOfAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, analytics, errorFallback, onError, ...tableProps }: ChartOfAccountsWidgetProps): React.JSX.Element;
|
|
930
|
+
declare function ChartOfAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, analytics, disclosuresAcceptance, errorFallback, onError, ...tableProps }: ChartOfAccountsWidgetProps): React.JSX.Element;
|
|
923
931
|
|
|
924
932
|
export { ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, AccountDeleteDialog, AccountFormSheet, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, ChartOfAccountsTable, ChartOfAccountsWidget };
|
|
925
933
|
export type { AccountDeleteDialogLabels, AccountDeleteDialogProps, AccountFormErrors, AccountFormMode, AccountFormSheetLabels, AccountFormSheetProps, AccountFormValues, ChartOfAccountsLabels, ChartOfAccountsMessageLabels, ChartOfAccountsTableProps, ChartOfAccountsWidgetLabelProps, ChartOfAccountsWidgetProps, LedgerAccountRow };
|
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
interface AddressFieldGroupLabels {
|
|
@@ -859,7 +867,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
|
|
|
859
867
|
* />
|
|
860
868
|
* ```
|
|
861
869
|
*/
|
|
862
|
-
declare function CounterpartsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CounterpartsWidgetProps): React.JSX.Element;
|
|
870
|
+
declare function CounterpartsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CounterpartsWidgetProps): React.JSX.Element;
|
|
863
871
|
|
|
864
872
|
export { CounterpartsWidget };
|
|
865
873
|
export type { AddressFormSheetLabels, BankAccountFormSheetLabels, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps };
|
|
@@ -650,6 +650,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
650
650
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
651
651
|
*/
|
|
652
652
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
653
|
+
/**
|
|
654
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
655
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
656
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
657
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
658
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
659
|
+
*/
|
|
660
|
+
disclosuresAcceptance?: ReactNode;
|
|
653
661
|
}
|
|
654
662
|
|
|
655
663
|
interface CreateCardFeatureLabels {
|
|
@@ -697,7 +705,7 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
697
705
|
* Self-contained Create Card widget. Issues a debit card via the Embed API and
|
|
698
706
|
* drives setup → preparing → success with sonner toasts for the mutation.
|
|
699
707
|
*/
|
|
700
|
-
declare function CreateCardWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: CreateCardWidgetProps): React.JSX.Element;
|
|
708
|
+
declare function CreateCardWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CreateCardWidgetProps): React.JSX.Element;
|
|
701
709
|
|
|
702
710
|
/** Opaque UI format values — mapped to API `DebitCardType` in the feature. */
|
|
703
711
|
declare const CardFormatValue: {
|
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
type ExpenseApprovalPoliciesWidgetProps = WidgetProviderProps & {
|
|
@@ -596,7 +604,7 @@ type ExpenseApprovalPoliciesWidgetProps = WidgetProviderProps & {
|
|
|
596
604
|
/** @deprecated Use `organizationId` instead */
|
|
597
605
|
orgId?: string | null;
|
|
598
606
|
};
|
|
599
|
-
declare function ExpenseApprovalPoliciesWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, }?: ExpenseApprovalPoliciesWidgetProps): React.JSX.Element;
|
|
607
|
+
declare function ExpenseApprovalPoliciesWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, disclosuresAcceptance, }?: ExpenseApprovalPoliciesWidgetProps): React.JSX.Element;
|
|
600
608
|
|
|
601
609
|
export { ExpenseApprovalPoliciesWidget };
|
|
602
610
|
export type { ExpenseApprovalPoliciesWidgetProps };
|
|
@@ -621,6 +621,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
621
621
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
622
622
|
*/
|
|
623
623
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
624
|
+
/**
|
|
625
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
626
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
627
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
628
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
629
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
630
|
+
*/
|
|
631
|
+
disclosuresAcceptance?: ReactNode;
|
|
624
632
|
}
|
|
625
633
|
|
|
626
634
|
interface ExpenseManagementWidgetProps extends WidgetProviderProps {
|
|
@@ -631,7 +639,7 @@ interface ExpenseManagementWidgetProps extends WidgetProviderProps {
|
|
|
631
639
|
policiesContent?: ReactNode;
|
|
632
640
|
requirementsContent?: ReactNode;
|
|
633
641
|
}
|
|
634
|
-
declare function ExpenseManagementWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ExpenseManagementWidgetProps): React.JSX.Element;
|
|
642
|
+
declare function ExpenseManagementWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ExpenseManagementWidgetProps): React.JSX.Element;
|
|
635
643
|
|
|
636
644
|
export { ExpenseManagementWidget };
|
|
637
645
|
export type { Labels as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps };
|
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
type ExpenseRequirementsWidgetProps = WidgetProviderProps & {
|
|
@@ -596,7 +604,7 @@ type ExpenseRequirementsWidgetProps = WidgetProviderProps & {
|
|
|
596
604
|
/** @deprecated Use `organizationId` instead */
|
|
597
605
|
orgId?: string | null;
|
|
598
606
|
};
|
|
599
|
-
declare function ExpenseRequirementsWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, }?: ExpenseRequirementsWidgetProps): React.JSX.Element;
|
|
607
|
+
declare function ExpenseRequirementsWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, disclosuresAcceptance, }?: ExpenseRequirementsWidgetProps): React.JSX.Element;
|
|
600
608
|
|
|
601
609
|
export { ExpenseRequirementsWidget };
|
|
602
610
|
export type { ExpenseRequirementsWidgetProps };
|
package/dist/lib/HelpWidget.d.ts
CHANGED
|
@@ -672,6 +672,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
672
672
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
673
673
|
*/
|
|
674
674
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
675
|
+
/**
|
|
676
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
677
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
678
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
679
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
680
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
681
|
+
*/
|
|
682
|
+
disclosuresAcceptance?: ReactNode;
|
|
675
683
|
}
|
|
676
684
|
|
|
677
685
|
/**
|
|
@@ -696,7 +704,7 @@ type HelpWidgetProps = WidgetProviderProps & HelpContentProps;
|
|
|
696
704
|
* <HelpWidget bankName="Acme Bank" contactUrl="https://acme.example/support" />
|
|
697
705
|
* ```
|
|
698
706
|
*/
|
|
699
|
-
declare function HelpWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...contentProps }: HelpWidgetProps): React.JSX.Element;
|
|
707
|
+
declare function HelpWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...contentProps }: HelpWidgetProps): React.JSX.Element;
|
|
700
708
|
|
|
701
709
|
export { HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget };
|
|
702
710
|
export type { HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, HelpWidgetLabels, HelpWidgetProps };
|
|
@@ -624,6 +624,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
624
624
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
625
625
|
*/
|
|
626
626
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
627
|
+
/**
|
|
628
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
629
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
630
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
631
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
632
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
633
|
+
*/
|
|
634
|
+
disclosuresAcceptance?: ReactNode;
|
|
627
635
|
}
|
|
628
636
|
|
|
629
637
|
interface InsightsFeatureLabels {
|
|
@@ -618,6 +618,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
618
618
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
619
619
|
*/
|
|
620
620
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
621
|
+
/**
|
|
622
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
623
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
624
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
625
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
626
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
627
|
+
*/
|
|
628
|
+
disclosuresAcceptance?: ReactNode;
|
|
621
629
|
}
|
|
622
630
|
|
|
623
631
|
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
@@ -625,7 +633,7 @@ type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
|
625
633
|
type ReceivablesWidgetMoniteProps = MoniteRegionProviderProps & Omit<ReceivablesProps, 'pageTitleComponent' | 'initialView' | 'initialCounterpartId'> & {
|
|
626
634
|
pageTitleComponent?: ReceivablesProps['pageTitleComponent'];
|
|
627
635
|
};
|
|
628
|
-
declare function ReceivablesWidgetMonite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, errorFallback, onError, finopsThemeColors, analytics, pageTitleComponent, uiFramework, ...receivablesProps }: ReceivablesWidgetMoniteProps): React.JSX.Element;
|
|
636
|
+
declare function ReceivablesWidgetMonite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, errorFallback, onError, finopsThemeColors, analytics, disclosuresAcceptance, pageTitleComponent, uiFramework, ...receivablesProps }: ReceivablesWidgetMoniteProps): React.JSX.Element;
|
|
629
637
|
|
|
630
638
|
export { ReceivablesWidgetMonite as InvoicingWidget };
|
|
631
639
|
export type { ReceivablesWidgetMoniteProps as InvoicingWidgetProps };
|
|
@@ -656,6 +656,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
656
656
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
657
657
|
*/
|
|
658
658
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
659
|
+
/**
|
|
660
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
661
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
662
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
663
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
664
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
665
|
+
*/
|
|
666
|
+
disclosuresAcceptance?: ReactNode;
|
|
659
667
|
}
|
|
660
668
|
|
|
661
669
|
interface FeatureLabels {
|
|
@@ -670,7 +678,7 @@ interface LinkedAccountsWidgetProps extends WidgetProviderProps {
|
|
|
670
678
|
labels?: Partial<Labels>;
|
|
671
679
|
featureLabels?: Partial<FeatureLabels>;
|
|
672
680
|
}
|
|
673
|
-
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
|
|
681
|
+
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
|
|
674
682
|
|
|
675
683
|
export { LinkedAccountsWidget };
|
|
676
684
|
export type { FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps };
|
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
interface ProductFormSheetLabels {
|
|
@@ -773,7 +781,7 @@ type ProductsWidgetProps = WidgetProviderProps & ProductsWidgetOwnProps;
|
|
|
773
781
|
* <ProductsWidget baseUrl="https://api.tesouro.com" widgetToken="wt_..." organizationId="org_..." />
|
|
774
782
|
* ```
|
|
775
783
|
*/
|
|
776
|
-
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ProductsWidgetProps): React.JSX.Element;
|
|
784
|
+
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ProductsWidgetProps): React.JSX.Element;
|
|
777
785
|
|
|
778
786
|
export { ProductsWidget };
|
|
779
787
|
export type { MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps };
|
|
@@ -601,6 +601,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
601
601
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
602
602
|
*/
|
|
603
603
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
604
|
+
/**
|
|
605
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
606
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
607
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
608
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
609
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
610
|
+
*/
|
|
611
|
+
disclosuresAcceptance?: ReactNode;
|
|
604
612
|
}
|
|
605
613
|
|
|
606
614
|
interface FeatureLabels {
|
|
@@ -629,7 +637,7 @@ interface ProfileWidgetProps extends WidgetProviderProps {
|
|
|
629
637
|
*/
|
|
630
638
|
contactUrl?: string;
|
|
631
639
|
}
|
|
632
|
-
declare function ProfileWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ProfileWidgetProps): React.JSX.Element;
|
|
640
|
+
declare function ProfileWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ProfileWidgetProps): React.JSX.Element;
|
|
633
641
|
|
|
634
642
|
export { ProfileWidget };
|
|
635
643
|
export type { FeatureLabels as ProfileWidgetFeatureLabels, Labels as ProfileWidgetLabels, ProfileWidgetProps };
|
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
type ReceiptMatchWidgetProps = WidgetProviderProps & {
|
|
@@ -597,7 +605,7 @@ type ReceiptMatchWidgetProps = WidgetProviderProps & {
|
|
|
597
605
|
targetTransactionId?: string;
|
|
598
606
|
onSingleTransactionUpdate?: () => void;
|
|
599
607
|
};
|
|
600
|
-
declare function ReceiptMatchWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, isOpen, preSelectedReceiptIds, onClose, targetTransactionId, onSingleTransactionUpdate, }: ReceiptMatchWidgetProps): React.JSX.Element;
|
|
608
|
+
declare function ReceiptMatchWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, disclosuresAcceptance, isOpen, preSelectedReceiptIds, onClose, targetTransactionId, onSingleTransactionUpdate, }: ReceiptMatchWidgetProps): React.JSX.Element;
|
|
601
609
|
|
|
602
610
|
export { ReceiptMatchWidget };
|
|
603
611
|
export type { ReceiptMatchWidgetProps };
|
|
@@ -595,6 +595,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
595
595
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
596
596
|
*/
|
|
597
597
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
598
|
+
/**
|
|
599
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
600
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
601
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
602
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
603
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
604
|
+
*/
|
|
605
|
+
disclosuresAcceptance?: ReactNode;
|
|
598
606
|
}
|
|
599
607
|
|
|
600
608
|
interface AddressFieldGroupLabels {
|
|
@@ -1003,7 +1011,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1003
1011
|
}
|
|
1004
1012
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
1005
1013
|
|
|
1006
|
-
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1014
|
+
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1007
1015
|
|
|
1008
1016
|
export { ReceivablesWidget };
|
|
1009
1017
|
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
|
|
@@ -607,6 +607,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
607
607
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
608
608
|
*/
|
|
609
609
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
610
|
+
/**
|
|
611
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
612
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
613
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
614
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
615
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
616
|
+
*/
|
|
617
|
+
disclosuresAcceptance?: ReactNode;
|
|
610
618
|
}
|
|
611
619
|
|
|
612
620
|
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
@@ -704,7 +712,7 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
704
712
|
tagsContent?: ReactNode;
|
|
705
713
|
invoiceContent?: ReactNode;
|
|
706
714
|
}
|
|
707
|
-
declare function SettingsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, finopsThemeColors, analytics, ...innerProps }: SettingsWidgetProps): React.JSX.Element;
|
|
715
|
+
declare function SettingsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, finopsThemeColors, analytics, disclosuresAcceptance, ...innerProps }: SettingsWidgetProps): React.JSX.Element;
|
|
708
716
|
|
|
709
717
|
export { SettingsSection, SettingsWidget };
|
|
710
718
|
export type { SettingsWidgetAdditionalSection, FeatureLabels as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId };
|
package/dist/lib/TagsWidget.d.ts
CHANGED
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
/**
|
|
@@ -677,7 +685,7 @@ type TagsWidgetProps = WidgetProviderProps & TagsWidgetOwnProps;
|
|
|
677
685
|
* <TagsWidget baseUrl="https://api.tesouro.com" widgetToken="wt_..." organizationId="org_..." />
|
|
678
686
|
* ```
|
|
679
687
|
*/
|
|
680
|
-
declare function TagsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: TagsWidgetProps): React.JSX.Element;
|
|
688
|
+
declare function TagsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: TagsWidgetProps): React.JSX.Element;
|
|
681
689
|
|
|
682
690
|
export { TagsWidget };
|
|
683
691
|
export type { TagDeleteDialogLabels, TagFormSheetLabels, TagMessageLabels, TagsScreenLabels, TagsWidgetProps };
|
package/dist/lib/TeamWidget.d.ts
CHANGED
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
interface Labels {
|
|
@@ -838,7 +846,7 @@ interface TeamWidgetProps extends WidgetProviderProps {
|
|
|
838
846
|
*/
|
|
839
847
|
acceptInviteRedirectUri?: string;
|
|
840
848
|
}
|
|
841
|
-
declare function TeamWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: TeamWidgetProps): React.JSX.Element;
|
|
849
|
+
declare function TeamWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: TeamWidgetProps): React.JSX.Element;
|
|
842
850
|
|
|
843
851
|
export { TeamWidget };
|
|
844
852
|
export type { FeatureLabels as TeamWidgetFeatureLabels, Labels as TeamWidgetLabels, TeamWidgetProps };
|
|
@@ -588,6 +588,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
588
588
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
589
589
|
*/
|
|
590
590
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
591
|
+
/**
|
|
592
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
593
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
594
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
595
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
596
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
597
|
+
*/
|
|
598
|
+
disclosuresAcceptance?: ReactNode;
|
|
591
599
|
}
|
|
592
600
|
|
|
593
601
|
interface TransfersWidgetLabels {
|
|
@@ -436,6 +436,8 @@ declare function registerUIRenderers(framework: UIFramework, map: RendererMap):
|
|
|
436
436
|
*/
|
|
437
437
|
declare function registerDesignSystemEnsurer(framework: UIFramework, ensurer: DesignSystemEnsurer): void;
|
|
438
438
|
|
|
439
|
+
declare const ERROR_STATE_ID = "error-state";
|
|
440
|
+
|
|
439
441
|
/**
|
|
440
442
|
* The implementation a widget renders with.
|
|
441
443
|
*
|
|
@@ -885,6 +887,13 @@ interface RootWidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
885
887
|
* gateway init response is the source of truth for their scopes and status.
|
|
886
888
|
*/
|
|
887
889
|
unstable_initResponseOverride?: WidgetInitResponse;
|
|
890
|
+
/**
|
|
891
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
892
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
893
|
+
* credentials) so gated widgets have somewhere to accept. Cascades to
|
|
894
|
+
* nested WidgetProviders.
|
|
895
|
+
*/
|
|
896
|
+
disclosuresAcceptance?: ReactNode;
|
|
888
897
|
}
|
|
889
898
|
/**
|
|
890
899
|
* Top-level provider for the widget config cascade.
|
|
@@ -938,7 +947,7 @@ interface RootWidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
938
947
|
* @see {@link useWidgetConfig} to read the resolved config in descendants
|
|
939
948
|
* @see {@link setGlobalWidgetConfig} to push config imperatively from outside React
|
|
940
949
|
*/
|
|
941
|
-
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, implementation, analytics, unstable_initResponseOverride, }: PropsWithChildren<RootWidgetProviderProps>): React.JSX.Element;
|
|
950
|
+
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, implementation, analytics, unstable_initResponseOverride, disclosuresAcceptance, }: PropsWithChildren<RootWidgetProviderProps>): React.JSX.Element;
|
|
942
951
|
|
|
943
952
|
/**
|
|
944
953
|
* Props for {@link WidgetProvider}.
|
|
@@ -962,6 +971,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
962
971
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
963
972
|
*/
|
|
964
973
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
974
|
+
/**
|
|
975
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
976
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
977
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
978
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
979
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
980
|
+
*/
|
|
981
|
+
disclosuresAcceptance?: ReactNode;
|
|
965
982
|
}
|
|
966
983
|
|
|
967
984
|
type WidgetTokenFetcher = () => Promise<{
|
|
@@ -1085,6 +1102,12 @@ declare function useWidgetConfig(): WidgetConfig;
|
|
|
1085
1102
|
* @see {@link useWidgetConfig} to read the fully-resolved cascaded config instead
|
|
1086
1103
|
*/
|
|
1087
1104
|
declare function useOwnWidgetConfig(): WidgetConfigInput | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Host-supplied AcceptDisclosuresWidget (or equivalent) for ACTIVE users who
|
|
1107
|
+
* owe a new disclosure version. `undefined` outside a provider or when the
|
|
1108
|
+
* host has not passed `disclosuresAcceptance`.
|
|
1109
|
+
*/
|
|
1110
|
+
declare function useDisclosuresAcceptanceSurface(): ReactNode | undefined;
|
|
1088
1111
|
/**
|
|
1089
1112
|
* Returns a stable callback that re-triggers the widget-init fetch at the
|
|
1090
1113
|
* **nearest provider level that owns a fetch**.
|
|
@@ -1224,5 +1247,5 @@ declare function useWidgetToken(): UseWidgetTokenResult;
|
|
|
1224
1247
|
*/
|
|
1225
1248
|
declare function WidgetProvider(props: PropsWithChildren<WidgetProviderProps>): ReactNode;
|
|
1226
1249
|
|
|
1227
|
-
export { Implementation, RefreshingRootWidgetProvider, RootWidgetProvider, UIFramework, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
|
1250
|
+
export { ERROR_STATE_ID, Implementation, RefreshingRootWidgetProvider, RootWidgetProvider, UIFramework, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
|
1228
1251
|
export type { EmbeddedClient, LinkComponent, LinkComponentProps, RefreshingRootWidgetProviderProps, RootWidgetProviderProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderProps, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|