@tesouro/embedded-components-react 0.2.280 → 0.2.282
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 +20 -6
- 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/BillPayWidget.js +1 -1
- 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/index.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +42 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +69 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +46 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +81 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +46 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +43 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +11 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +127 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +7 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +114 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +50 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +86 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +89 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +31 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +80 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +228 -6
- 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/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +53 -11
- 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/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +3 -2
- package/dist/packages/shared-ui-shadcn/dist/index.js +3445 -3413
- package/package.json +1 -1
|
@@ -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 };
|
|
@@ -4,12 +4,13 @@ import { getGlobalWidgetConfig as n, setGlobalWidgetConfig as r, updateGlobalWid
|
|
|
4
4
|
import { getGlobalWidgetInitState as a, subscribeToGlobalWidgetInitState as o } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/widgetInitChannel.js";
|
|
5
5
|
import { UIFramework as s } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/UIContext.js";
|
|
6
6
|
import { registerDesignSystemEnsurer as c, registerUIRenderers as l } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
|
|
7
|
+
import { ERROR_STATE_ID as u } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
7
8
|
import "../libs/tesouro-embedded-components-react/shared/ui/dist/index.js";
|
|
8
|
-
import { RootWidgetProvider as
|
|
9
|
-
import { WidgetTokenRefreshProvider as
|
|
10
|
-
import { useWidgetToken as
|
|
11
|
-
import { RefreshingRootWidgetProvider as
|
|
12
|
-
import { useOwnWidgetConfig as
|
|
9
|
+
import { RootWidgetProvider as d } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js";
|
|
10
|
+
import { WidgetTokenRefreshProvider as f } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
11
|
+
import { useWidgetToken as p } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetToken.js";
|
|
12
|
+
import { RefreshingRootWidgetProvider as m } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
13
|
+
import { useDisclosuresAcceptanceSurface as h, useOwnWidgetConfig as g, useRefetchWidget as _, useWidgetConfig as v, useWidgetError as y, useWidgetLoading as b } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
14
|
import "../libs/tesouro-embedded-components-react/shared/feature/dist/index.js";
|
|
14
|
-
import { WidgetProvider as
|
|
15
|
-
export { t as Implementation,
|
|
15
|
+
import { WidgetProvider as x } from "./WidgetProviderPublic.js";
|
|
16
|
+
export { u as ERROR_STATE_ID, t as Implementation, m as RefreshingRootWidgetProvider, d as RootWidgetProvider, s as UIFramework, x as WidgetProvider, f as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, c as registerDesignSystemEnsurer, l as registerUIRenderers, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, h as useDisclosuresAcceptanceSurface, g as useOwnWidgetConfig, _ as useRefetchWidget, v as useWidgetConfig, y as useWidgetError, b as useWidgetLoading, p as useWidgetToken };
|
|
@@ -587,6 +587,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
587
587
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
588
588
|
*/
|
|
589
589
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
590
|
+
/**
|
|
591
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
592
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
593
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
594
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
595
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
596
|
+
*/
|
|
597
|
+
disclosuresAcceptance?: ReactNode;
|
|
590
598
|
}
|
|
591
599
|
|
|
592
600
|
/**
|
package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js
CHANGED
|
@@ -131,7 +131,7 @@ function C({ invitationToken: e, userId: t, displayedVersion: n, labelOverrides:
|
|
|
131
131
|
errorMessage: h
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function w({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f,
|
|
134
|
+
function w({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...m }) {
|
|
135
135
|
return /* @__PURE__ */ y(l, {
|
|
136
136
|
widgetName: t,
|
|
137
137
|
baseUrl: e,
|
|
@@ -145,7 +145,8 @@ function w({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
145
145
|
errorFallback: u,
|
|
146
146
|
onError: d,
|
|
147
147
|
analytics: f,
|
|
148
|
-
|
|
148
|
+
disclosuresAcceptance: p,
|
|
149
|
+
children: /* @__PURE__ */ y(S, { ...m })
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
//#endregion
|
|
@@ -23,12 +23,12 @@ import { AdditionalOwnersStep as ae } from "./index13.js";
|
|
|
23
23
|
import { buildCreateApplicationBody as oe, buildUpdateApplicationBody as se } from "./index14.js";
|
|
24
24
|
import { OnboardingAnalyticsEvent as f, WIDGET_NAME as p } from "./index15.js";
|
|
25
25
|
import { DEFAULT_LABELS as m } from "./index16.js";
|
|
26
|
-
import { ApplicationClientSecretProvider as
|
|
27
|
-
import { useCreateApplication as
|
|
28
|
-
import { useUpdateApplication as
|
|
29
|
-
import { useSubmitApplication as
|
|
30
|
-
import { usePollApplicationCompletion as
|
|
31
|
-
import { OnboardingSuppressionReason as
|
|
26
|
+
import { ApplicationClientSecretProvider as h, useApplicationClientSecret as ce } from "../../data-access/dist/index2.js";
|
|
27
|
+
import { useCreateApplication as le } from "../../data-access/dist/index4.js";
|
|
28
|
+
import { useUpdateApplication as ue } from "../../data-access/dist/index6.js";
|
|
29
|
+
import { useSubmitApplication as de } from "../../data-access/dist/index7.js";
|
|
30
|
+
import { usePollApplicationCompletion as fe } from "../../data-access/dist/index8.js";
|
|
31
|
+
import { OnboardingSuppressionReason as pe } from "../../data-access/dist/index9.js";
|
|
32
32
|
import { useOrganizationOnboardingSuppression as me } from "../../data-access/dist/index10.js";
|
|
33
33
|
import "../../data-access/dist/index.js";
|
|
34
34
|
import { useCallback as g, useEffect as _, useMemo as v, useRef as he, useState as y } from "react";
|
|
@@ -80,12 +80,12 @@ function ye(e, t) {
|
|
|
80
80
|
subtitle: n.subheading
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboard: u, labels: p, initialBusinessDetails:
|
|
84
|
-
let
|
|
83
|
+
function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboard: u, labels: p, initialBusinessDetails: h, initialPersonalDetails: be, initialAdditionalOwners: S, bankLogoSrc: xe, disclosureLinks: Se, marketingContent: C = null, open: Ce, defaultOpen: w, onOpenChange: T }) {
|
|
84
|
+
let E = i();
|
|
85
85
|
_(() => {
|
|
86
|
-
|
|
87
|
-
}, [
|
|
88
|
-
let
|
|
86
|
+
E(f.Mounted);
|
|
87
|
+
}, [E]);
|
|
88
|
+
let D = {
|
|
89
89
|
...m,
|
|
90
90
|
...p,
|
|
91
91
|
stepIndicator: {
|
|
@@ -99,36 +99,36 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
99
99
|
...m.result,
|
|
100
100
|
...p?.result
|
|
101
101
|
}
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
}, [
|
|
105
|
-
|
|
106
|
-
}, [
|
|
107
|
-
|
|
102
|
+
}, O = c().initResponse, { termsHref: we, privacyHref: Te, electronicCommunicationHref: Ee, patriotActHref: De } = Se ?? {}, Oe = C !== null, k = Ce === void 0, [ke, A] = y(!1), [Ae, je] = y(!0), [Me, Ne] = y(() => w ?? !1), Pe = xe ?? C?.bankLogoSrc ?? void 0, Fe = k ? Me : Ce, Ie = w ?? !1, j = g((e) => {
|
|
103
|
+
k && Ne(e), T?.(e);
|
|
104
|
+
}, [T, k]), Le = g(() => {
|
|
105
|
+
E(f.OpenMarketing), A(!0);
|
|
106
|
+
}, [E]), Re = g(() => {
|
|
107
|
+
A(!1);
|
|
108
108
|
}, []), ze = g(() => {
|
|
109
|
-
|
|
110
|
-
}, [j,
|
|
111
|
-
|
|
109
|
+
E(f.BeginOnboarding), A(!1), j(!0);
|
|
110
|
+
}, [j, E]), Be = g(() => {
|
|
111
|
+
je(!1), a();
|
|
112
112
|
}, [a]), Ve = ee(), [M, N] = y(0), [He, Ue] = y(() => ({
|
|
113
113
|
..._e,
|
|
114
|
-
...
|
|
114
|
+
...h
|
|
115
115
|
})), [P, We] = y(() => ({
|
|
116
116
|
...ve,
|
|
117
117
|
...be
|
|
118
|
-
})), [Ge, Ke] = y(() => S ?? []), [F, qe] = y(null), [I, Je] = y(null), [L, Ye] = y(null), [R, Xe] = y(null), [Ze, z] = y(null), [B, V] = y(!1), [H, U] = y(null), W =
|
|
118
|
+
})), [Ge, Ke] = y(() => S ?? []), [F, qe] = y(null), [I, Je] = y(null), [L, Ye] = y(null), [R, Xe] = y(null), [Ze, z] = y(null), [B, V] = y(!1), [H, U] = y(null), W = le(), G = ue(), K = de(), Qe = fe(), { setClientSecret: $e } = ce(), q = me(), J = he(null);
|
|
119
119
|
_(() => () => J.current?.abort(), []);
|
|
120
|
-
let et = v(() => l(
|
|
120
|
+
let et = v(() => l(D.businessDetails.naicsTitles), [D.businessDetails.naicsTitles]), tt = v(() => o(D.businessDetails.stateTitles), [D.businessDetails.stateTitles]), nt = v(() => o(D.personalDetails.stateTitles), [D.personalDetails.stateTitles]), rt = v(() => o(D.additionalOwners.stateTitles), [D.additionalOwners.stateTitles]), Y = B || H !== null, X = O?.status === "ACTIVE" || O?.status === "INACTIVE", it = O?.status === "INVITED", Z = !!O && !Y && (X || it || q.isSuppressed), Q = Z ? X ? pe.UserAlreadyOnboarded : it ? pe.UserInvitedToOrganization : q.reason : null;
|
|
121
121
|
if (_(() => {
|
|
122
|
-
!Z || !Q || (
|
|
122
|
+
!Z || !Q || (E(f.Suppressed, { reason: Q }), console.info(`[onboarding] not shown: ${Q}`));
|
|
123
123
|
}, [
|
|
124
124
|
Z,
|
|
125
125
|
Q,
|
|
126
|
-
|
|
127
|
-
]), !
|
|
126
|
+
E
|
|
127
|
+
]), !O || !Y && (Z || !q.isResolved)) return null;
|
|
128
128
|
let at = F?.companyStructure === "SOLE_PROPRIETORSHIP", ot = [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
D.stepIndicator.business,
|
|
130
|
+
D.stepIndicator.personal,
|
|
131
|
+
D.stepIndicator.ownership
|
|
132
132
|
], st = M === 0 ? F : M === 1 ? I : M === 2 ? L : null, $ = W.isPending || G.isPending || K.isPending || B, ct = () => {
|
|
133
133
|
z(null), N((e) => e === 0 ? 0 : e - 1);
|
|
134
134
|
}, lt = () => {
|
|
@@ -141,7 +141,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
141
141
|
try {
|
|
142
142
|
let r = await K.mutateAsync({ path: { id: e } });
|
|
143
143
|
if (t.signal.aborted) return;
|
|
144
|
-
if (!r.id) throw Error(
|
|
144
|
+
if (!r.id) throw Error(D.submitFailedError);
|
|
145
145
|
n = !0, (await Qe(e, { signal: t.signal })).status === "complete" ? (U("success"), Ve(), Be()) : U("pending");
|
|
146
146
|
} catch (e) {
|
|
147
147
|
if (e instanceof DOMException && e.name === "AbortError") return;
|
|
@@ -178,23 +178,23 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
178
178
|
}), await ut(R);
|
|
179
179
|
}
|
|
180
180
|
} catch (e) {
|
|
181
|
-
let t = s(e) ?? (e instanceof Error ? e.message : void 0) ??
|
|
181
|
+
let t = s(e) ?? (e instanceof Error ? e.message : void 0) ?? D.genericRetryError;
|
|
182
182
|
z(t);
|
|
183
183
|
}
|
|
184
|
-
}, ft = ye(Math.min(M, 2),
|
|
184
|
+
}, ft = ye(Math.min(M, 2), D), pt = O.bankName?.trim() || D.fallbackBankName, mt = d(D.shellFdicDisclaimer, pt);
|
|
185
185
|
if (Y) {
|
|
186
|
-
let r = F?.companyLegalName ?? "", i =
|
|
186
|
+
let r = F?.companyLegalName ?? "", i = O.bankName?.trim() || D.fallbackBankName, a = H ?? "pending", o = a === "success", s = {
|
|
187
187
|
...m.result,
|
|
188
|
-
...
|
|
188
|
+
...D.result
|
|
189
189
|
};
|
|
190
190
|
return /* @__PURE__ */ b(e, {
|
|
191
|
-
open:
|
|
191
|
+
open: Fe,
|
|
192
192
|
onOpenChange: j,
|
|
193
193
|
children: /* @__PURE__ */ x(t, {
|
|
194
194
|
className: "ttw:grid ttw:max-h-[95vh] ttw:w-[720px] ttw:max-w-[calc(100vw-2rem)] ttw:grid-rows-[1fr] ttw:gap-0 ttw:overflow-hidden ttw:rounded-2xl ttw:p-0",
|
|
195
195
|
children: [/* @__PURE__ */ b(n, {
|
|
196
196
|
className: "ttw:sr-only",
|
|
197
|
-
children:
|
|
197
|
+
children: D.modalTitle
|
|
198
198
|
}), /* @__PURE__ */ b(te, {
|
|
199
199
|
status: a,
|
|
200
200
|
isLoading: B,
|
|
@@ -205,7 +205,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
205
205
|
followUpEmail: I?.workEmail ?? "",
|
|
206
206
|
emailBoxLead: s.pendingEmailBoxLead,
|
|
207
207
|
navigateToDashboardLabel: s.navigateToDashboard,
|
|
208
|
-
bankLogoSrc:
|
|
208
|
+
bankLogoSrc: Pe,
|
|
209
209
|
bankLogoAlt: d(s.bankLogoAlt, i),
|
|
210
210
|
fdicDisclaimer: d(s.fdicDisclaimer, i),
|
|
211
211
|
onNavigateToDashboard: u
|
|
@@ -213,9 +213,9 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
let ht = M === 2 ?
|
|
217
|
-
return /* @__PURE__ */ x(ge, { children: [
|
|
218
|
-
open:
|
|
216
|
+
let ht = M === 2 ? D.submit : D.next, gt = st === null || $;
|
|
217
|
+
return /* @__PURE__ */ x(ge, { children: [Oe && Ae && C ? /* @__PURE__ */ b(ne, {
|
|
218
|
+
open: ke,
|
|
219
219
|
isVisible: !0,
|
|
220
220
|
vspLogo: C.vspLogo,
|
|
221
221
|
bankingText: C.bankingText,
|
|
@@ -230,7 +230,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
230
230
|
onCloseMarketingModal: Re,
|
|
231
231
|
onPrimaryCtaClick: ze
|
|
232
232
|
}) : null, /* @__PURE__ */ x(r, {
|
|
233
|
-
open:
|
|
233
|
+
open: Fe,
|
|
234
234
|
defaultOpen: Ie,
|
|
235
235
|
onOpenChange: j,
|
|
236
236
|
title: ft.title,
|
|
@@ -248,8 +248,8 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
248
248
|
nextIcon: null,
|
|
249
249
|
errorMessage: Ze,
|
|
250
250
|
labels: {
|
|
251
|
-
backButton: M === 0 ?
|
|
252
|
-
cancelButton:
|
|
251
|
+
backButton: M === 0 ? D.cancel : D.back,
|
|
252
|
+
cancelButton: D.cancel
|
|
253
253
|
},
|
|
254
254
|
children: [
|
|
255
255
|
M === 0 ? /* @__PURE__ */ b(re, {
|
|
@@ -259,12 +259,12 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
259
259
|
naicsOptions: et,
|
|
260
260
|
stateOptions: tt,
|
|
261
261
|
isSubmitting: $,
|
|
262
|
-
labels:
|
|
262
|
+
labels: D.businessDetails,
|
|
263
263
|
bankName: pt,
|
|
264
|
-
termsHref:
|
|
265
|
-
privacyHref:
|
|
266
|
-
electronicCommunicationHref:
|
|
267
|
-
patriotActHref:
|
|
264
|
+
termsHref: we,
|
|
265
|
+
privacyHref: Te,
|
|
266
|
+
electronicCommunicationHref: Ee,
|
|
267
|
+
patriotActHref: De
|
|
268
268
|
}, "business") : null,
|
|
269
269
|
M === 1 ? /* @__PURE__ */ b(ie, {
|
|
270
270
|
value: P,
|
|
@@ -272,7 +272,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
272
272
|
onSnapshotChange: Je,
|
|
273
273
|
stateOptions: nt,
|
|
274
274
|
isSubmitting: $,
|
|
275
|
-
labels:
|
|
275
|
+
labels: D.personalDetails
|
|
276
276
|
}, "personal") : null,
|
|
277
277
|
M === 2 ? /* @__PURE__ */ b(ae, {
|
|
278
278
|
owners: Ge,
|
|
@@ -282,12 +282,12 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
282
282
|
stateOptions: rt,
|
|
283
283
|
onSnapshotChange: Ye,
|
|
284
284
|
isSubmitting: $,
|
|
285
|
-
labels:
|
|
285
|
+
labels: D.additionalOwners
|
|
286
286
|
}) : null
|
|
287
287
|
]
|
|
288
288
|
})] });
|
|
289
289
|
}
|
|
290
|
-
function S({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: ee, errorFallback: c, onError: l, analytics: u,
|
|
290
|
+
function S({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: ee, errorFallback: c, onError: l, analytics: u, disclosuresAcceptance: d, ...te }) {
|
|
291
291
|
return /* @__PURE__ */ b(a, {
|
|
292
292
|
baseUrl: e,
|
|
293
293
|
widgetToken: t,
|
|
@@ -300,13 +300,14 @@ function S({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
300
300
|
errorFallback: c,
|
|
301
301
|
onError: l,
|
|
302
302
|
analytics: u,
|
|
303
|
+
disclosuresAcceptance: d,
|
|
303
304
|
widgetName: p,
|
|
304
|
-
children: /* @__PURE__ */ b(xe, { ...
|
|
305
|
+
children: /* @__PURE__ */ b(xe, { ...te })
|
|
305
306
|
});
|
|
306
307
|
}
|
|
307
308
|
function xe(e) {
|
|
308
309
|
let { initResponse: t } = c(), n = t?.userId ?? null, [r, i] = y(n), [a, o] = y(0);
|
|
309
|
-
return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ b(
|
|
310
|
+
return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ b(h, { children: /* @__PURE__ */ b(be, { ...e }, a) }, a);
|
|
310
311
|
}
|
|
311
312
|
//#endregion
|
|
312
313
|
export { S as BankAccountOnboardingWidget, S as default };
|
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js
CHANGED
|
@@ -45,7 +45,7 @@ function l({ labels: t, accountDetailsLabels: n, featureLabels: l, isBankingTagl
|
|
|
45
45
|
...C
|
|
46
46
|
})] });
|
|
47
47
|
}
|
|
48
|
-
function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m,
|
|
48
|
+
function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
|
|
49
49
|
return /* @__PURE__ */ s(t, {
|
|
50
50
|
widgetName: n,
|
|
51
51
|
baseUrl: e,
|
|
@@ -59,7 +59,8 @@ function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
|
|
|
59
59
|
errorFallback: f,
|
|
60
60
|
onError: p,
|
|
61
61
|
analytics: m,
|
|
62
|
-
|
|
62
|
+
disclosuresAcceptance: h,
|
|
63
|
+
children: /* @__PURE__ */ s(l, { ...g })
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
//#endregion
|
|
@@ -3,14 +3,18 @@ import "./index8.js";
|
|
|
3
3
|
import "./index10.js";
|
|
4
4
|
import "./index12.js";
|
|
5
5
|
import "./index13.js";
|
|
6
|
+
import "./index14.js";
|
|
7
|
+
import "./index15.js";
|
|
8
|
+
import "./index16.js";
|
|
6
9
|
import "./index17.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./index20.js";
|
|
9
|
-
import "./index21.js";
|
|
10
|
-
import "./index22.js";
|
|
10
|
+
import "./index18.js";
|
|
11
11
|
import "./index23.js";
|
|
12
12
|
import "./index24.js";
|
|
13
13
|
import "./index25.js";
|
|
14
14
|
import "./index26.js";
|
|
15
|
-
import
|
|
15
|
+
import "./index27.js";
|
|
16
|
+
import "./index28.js";
|
|
17
|
+
import "./index29.js";
|
|
18
|
+
import "./index30.js";
|
|
19
|
+
import { BillPayWidget as e } from "./index34.js";
|
|
16
20
|
export { e as BillPayWidget };
|