@tesouro/embedded-components-react 0.11.175 → 0.11.176

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/dist/index.d.ts CHANGED
@@ -2696,6 +2696,49 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
2696
2696
  }
2697
2697
  declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
2698
2698
 
2699
+ interface BankingComplianceBannerLabels {
2700
+ /** Precedes the bank's logo or name: "Business Banking provided by Zenith Bank". */
2701
+ providedByPrefix: string;
2702
+ /** Shown in place of the bank's name when the caller has none to give. */
2703
+ providerNameFallback: string;
2704
+ /** Screen-reader text for the provider-name placeholder while it loads. */
2705
+ providerNameLoading: string;
2706
+ /** Accessible name of the FDIC logo. */
2707
+ fdicLogoAlt: string;
2708
+ /**
2709
+ * The FDIC official digital sign statement (12 CFR 328.5). Its wording is
2710
+ * regulated: override it for translation, not to rephrase it.
2711
+ */
2712
+ fdicStatement: string;
2713
+ }
2714
+ declare const BANKING_COMPLIANCE_BANNER_LABELS_EN: BankingComplianceBannerLabels;
2715
+
2716
+ type InnerProps$2 = {
2717
+ /**
2718
+ * The providing bank's logo, shown in place of its name. Tenant-specific, so
2719
+ * it is the host's to supply (the same `bankLogoSrc` it hands the accounts
2720
+ * and onboarding widgets); without it the bank's name from widget init is
2721
+ * shown as text.
2722
+ */
2723
+ bankLogoSrc?: string;
2724
+ /**
2725
+ * The logo's alt text. Defaults to the bank's name, since the logo stands in
2726
+ * for the name in "provided by …" and a screen reader should read the same.
2727
+ */
2728
+ bankLogoAlt?: string;
2729
+ labels?: Partial<BankingComplianceBannerLabels>;
2730
+ className?: string;
2731
+ };
2732
+ type BankingComplianceBannerWidgetProps = WidgetProviderProps & InnerProps$2;
2733
+ /**
2734
+ * The "Business Banking provided by …" attribution, plus the FDIC official
2735
+ * sign when `GET /identity/v1/financial_institution` reports the providing
2736
+ * institution as `FDIC_BACKED`. The attribution always renders; the FDIC half
2737
+ * renders only on that explicit status, and never while the request is
2738
+ * loading or has failed.
2739
+ */
2740
+ declare function BankingComplianceBannerWidget({ bankLogoSrc, bankLogoAlt, labels, className, ...widgetProviderProps }: BankingComplianceBannerWidgetProps): React.JSX.Element;
2741
+
2699
2742
  interface CardsListColumnHeaderLabels {
2700
2743
  cardName: string;
2701
2744
  fundingAccount: string;
@@ -5668,10 +5711,15 @@ type WidgetSuiteMenuLabels = Record<WidgetSuiteSectionId, string>;
5668
5711
  /** Copy for the heading above a section, as opposed to its menu item. */
5669
5712
  interface WidgetSuiteSectionTitleLabels {
5670
5713
  /**
5671
- * The bank attribution beneath the heading. `{bankName}` is replaced with the
5714
+ * The bank attribution beneath the Dashboard section's heading. `{bankName}` is replaced with the
5672
5715
  * bank `/init` names, so a translation can put it anywhere in the sentence
5673
5716
  * rather than after a fixed lead-in. An override that drops the placeholder
5674
5717
  * shows no name.
5718
+ *
5719
+ * @deprecated Ignored: the Dashboard now renders the banking compliance
5720
+ * banner, which carries the attribution and FDIC signage. Reword it through
5721
+ * `sections.dashboard.complianceBanner` instead. Kept so integrators who pass
5722
+ * it still compile.
5675
5723
  */
5676
5724
  bankTagline: string;
5677
5725
  }
@@ -5772,6 +5820,7 @@ type WidgetLabelProps<T> = Omit<Pick<T, Extract<keyof T, 'labels' | `${string}La
5772
5820
  type WidgetSuiteBalanceHistoryLabels = WidgetLabelProps<BalanceHistoryWidgetProps>;
5773
5821
  type WidgetSuiteBalancesLabels = WidgetLabelProps<BalancesWidgetProps>;
5774
5822
  type WidgetSuiteInsightsLabels = WidgetLabelProps<InsightsWidgetProps>;
5823
+ type WidgetSuiteComplianceBannerLabels = WidgetLabelProps<BankingComplianceBannerWidgetProps>;
5775
5824
  type WidgetSuiteAccountsLabels = WidgetLabelProps<BankAccountsWidgetProps>;
5776
5825
  type WidgetSuiteOnboardingLabels = WidgetLabelProps<BankAccountOnboardingWidgetProps>;
5777
5826
  type WidgetSuiteCreditCardsLabels = WidgetLabelProps<CreditCardsWidgetProps>;
@@ -5790,6 +5839,11 @@ interface WidgetSuiteDashboardLabels {
5790
5839
  */
5791
5840
  balances?: WidgetSuiteBalancesLabels;
5792
5841
  insights?: WidgetSuiteInsightsLabels;
5842
+ /**
5843
+ * The banking compliance banner beneath the Dashboard heading: the bank
5844
+ * attribution, and FDIC signage when the bank is FDIC-insured.
5845
+ */
5846
+ complianceBanner?: WidgetSuiteComplianceBannerLabels;
5793
5847
  }
5794
5848
  /**
5795
5849
  * The two card lists, plus the heading the suite writes above each.
@@ -6128,7 +6182,7 @@ interface AcceptDisclosuresWidgetProps$1 {
6128
6182
  }
6129
6183
 
6130
6184
  type UiOwnedProps = 'providerAttribution' | 'agreementText' | 'disclosureLinks' | 'isAgreed' | 'onAgreedChange' | 'onAccept' | 'isSubmitting' | 'isAccepted' | 'errorMessage' | 'testIds';
6131
- type InnerProps$2 = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
6185
+ type InnerProps$1 = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
6132
6186
  /**
6133
6187
  * Called after the atomic accept succeeds and before init refresh is kicked.
6134
6188
  * May return a promise — the widget awaits it before locking controls and
@@ -6137,7 +6191,7 @@ type InnerProps$2 = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
6137
6191
  */
6138
6192
  onAccepted?: () => void | Promise<void>;
6139
6193
  };
6140
- type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$2;
6194
+ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$1;
6141
6195
  /**
6142
6196
  * Self-contained AcceptDisclosures widget. Fetches the caller's disclosure
6143
6197
  * document set (title/url pairs, in presentation order) from
@@ -6159,49 +6213,6 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$2;
6159
6213
  */
6160
6214
  declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
6161
6215
 
6162
- interface BankingComplianceBannerLabels {
6163
- /** Precedes the bank's logo or name: "Business Banking provided by Zenith Bank". */
6164
- providedByPrefix: string;
6165
- /** Shown in place of the bank's name when the caller has none to give. */
6166
- providerNameFallback: string;
6167
- /** Screen-reader text for the provider-name placeholder while it loads. */
6168
- providerNameLoading: string;
6169
- /** Accessible name of the FDIC logo. */
6170
- fdicLogoAlt: string;
6171
- /**
6172
- * The FDIC official digital sign statement (12 CFR 328.5). Its wording is
6173
- * regulated: override it for translation, not to rephrase it.
6174
- */
6175
- fdicStatement: string;
6176
- }
6177
- declare const BANKING_COMPLIANCE_BANNER_LABELS_EN: BankingComplianceBannerLabels;
6178
-
6179
- type InnerProps$1 = {
6180
- /**
6181
- * The providing bank's logo, shown in place of its name. Tenant-specific, so
6182
- * it is the host's to supply (the same `bankLogoSrc` it hands the accounts
6183
- * and onboarding widgets); without it the bank's name from widget init is
6184
- * shown as text.
6185
- */
6186
- bankLogoSrc?: string;
6187
- /**
6188
- * The logo's alt text. Defaults to the bank's name, since the logo stands in
6189
- * for the name in "provided by …" and a screen reader should read the same.
6190
- */
6191
- bankLogoAlt?: string;
6192
- labels?: Partial<BankingComplianceBannerLabels>;
6193
- className?: string;
6194
- };
6195
- type BankingComplianceBannerWidgetProps = WidgetProviderProps & InnerProps$1;
6196
- /**
6197
- * The "Business Banking provided by …" attribution, plus the FDIC official
6198
- * sign when `GET /identity/v1/financial_institution` reports the providing
6199
- * institution as `FDIC_BACKED`. The attribution always renders; the FDIC half
6200
- * renders only on that explicit status, and never while the request is
6201
- * loading or has failed.
6202
- */
6203
- declare function BankingComplianceBannerWidget({ bankLogoSrc, bankLogoAlt, labels, className, ...widgetProviderProps }: BankingComplianceBannerWidgetProps): React.JSX.Element;
6204
-
6205
6216
  interface CounterpartsScreenLabels {
6206
6217
  /** Customer-mode create action. */
6207
6218
  createButton: string;
@@ -6654,4 +6665,4 @@ interface CheckAmountAndDetailScreenProps {
6654
6665
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
6655
6666
 
6656
6667
  export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, InvoicingTab, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, RESULT_LABELS_EN, ReceivableStatusCard, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6657
- export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BillPayWidgetTabId, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
6668
+ export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BillPayWidgetTabId, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteComplianceBannerLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
package/dist/index.js CHANGED
@@ -38,15 +38,15 @@ import { TRANSFERS_WIDGET_LABELS_EN as X } from "./libs/tesouro-embedded-compone
38
38
  import { TransfersWidget as Z } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
39
39
  import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as Q } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
40
40
  import { AcceptDisclosuresWidget as $ } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
41
- import { ADDITIONAL_OWNERS_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
42
- import { BUSINESS_DETAILS_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
43
- import { PERSONAL_DETAILS_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
44
- import { RESULT_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
45
- import { APPLICATION_STATUS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
46
- import { BankAccountOnboardingWidget as ae } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
47
- import { WidgetSuite as oe } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
48
- import { BANKING_COMPLIANCE_BANNER_LABELS_EN as se } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js";
49
- import { BankingComplianceBannerWidget as ce } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
41
+ import { BANKING_COMPLIANCE_BANNER_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js";
42
+ import { BankingComplianceBannerWidget as te } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
43
+ import { ADDITIONAL_OWNERS_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
44
+ import { BUSINESS_DETAILS_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
45
+ import { PERSONAL_DETAILS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
46
+ import { RESULT_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
47
+ import { APPLICATION_STATUS_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
48
+ import { BankAccountOnboardingWidget as se } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
49
+ import { WidgetSuite as ce } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
50
50
  import { CounterpartsWidget as le } from "./lib/CounterpartsWidgetPublic.js";
51
51
  import { BALANCES_WIDGET_LABELS_EN as ue } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
52
52
  import { BalancesWidget as de } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
@@ -55,4 +55,4 @@ import { OFFER_WIDGET_LABELS_EN as pe } from "./libs/tesouro-embedded-components
55
55
  import { OfferBenefitIcon as me } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
56
56
  import { OfferWidget as he } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
57
57
  import { WidgetProvider as ge } from "./lib/WidgetProviderPublic.js";
58
- export { Q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ee as ADDITIONAL_OWNERS_LABELS_EN, ie as APPLICATION_STATUS_LABELS_EN, $ as AcceptDisclosuresWidget, ue as BALANCES_WIDGET_LABELS_EN, se as BANKING_COMPLIANCE_BANNER_LABELS_EN, te as BUSINESS_DETAILS_LABELS_EN, de as BalancesWidget, ae as BankAccountOnboardingWidget, M as BankAccountsWidget, ce as BankingComplianceBannerWidget, N as BillPayWidget, P as CardDetailsWidget, le as CounterpartsWidget, F as CreditCardsWidget, I as DebitCardsWidget, h as ERROR_STATE_ID, V as ExpenseManagementWidget, K as HELP_FAQ_EN, L as INSIGHTS_FEATURE_LABELS_EN, R as INSIGHTS_WIDGET_LABELS_EN, B as InsightsWidget, H as InvoicingTab, J as LinkedAccountsWidget, pe as OFFER_WIDGET_LABELS_EN, fe as OFFER_WIDGET_STATUS_LABELS_EN, me as OfferBenefitIcon, he as OfferWidget, d as OnboardingSuppressionReason, ne as PERSONAL_DETAILS_LABELS_EN, re as RESULT_LABELS_EN, U as ReceivableStatusCard, W as ReceivablesWidget, w as RefreshingRootWidgetProvider, x as RootWidgetProvider, z as SINGLE_INSIGHT_LABELS_EN, l as Scope, G as SettingsSection, q as SettingsWidget, e as THEME_TOKEN_NAMES, Y as TRANSFERS_FEATURE_LABELS_EN, X as TRANSFERS_WIDGET_LABELS_EN, Z as TransfersWidget, f as UIFramework, o as WIDGET_SUITE_DEFAULT_SECTIONS, a as WIDGET_SUITE_LABELS_EN, ge as WidgetProvider, oe as WidgetSuite, s as WidgetSuiteSectionId, S as WidgetTokenRefreshProvider, c as cloneEmbeddedClient, i as configureCsp, t as createTheme, g as getGlobalWidgetConfig, y as getGlobalWidgetInitState, u as isScope, p as registerDesignSystemEnsurer, m as registerUIRenderers, _ as setGlobalWidgetConfig, b as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, v as updateGlobalWidgetConfig, T as useDisclosuresAcceptanceSurface, E as useOwnWidgetConfig, D as useRefetchWidget, O as useWidgetConfig, k as useWidgetError, A as useWidgetInitStaleForToken, j as useWidgetLoading, C as useWidgetToken };
58
+ export { Q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ne as ADDITIONAL_OWNERS_LABELS_EN, oe as APPLICATION_STATUS_LABELS_EN, $ as AcceptDisclosuresWidget, ue as BALANCES_WIDGET_LABELS_EN, ee as BANKING_COMPLIANCE_BANNER_LABELS_EN, re as BUSINESS_DETAILS_LABELS_EN, de as BalancesWidget, se as BankAccountOnboardingWidget, M as BankAccountsWidget, te as BankingComplianceBannerWidget, N as BillPayWidget, P as CardDetailsWidget, le as CounterpartsWidget, F as CreditCardsWidget, I as DebitCardsWidget, h as ERROR_STATE_ID, V as ExpenseManagementWidget, K as HELP_FAQ_EN, L as INSIGHTS_FEATURE_LABELS_EN, R as INSIGHTS_WIDGET_LABELS_EN, B as InsightsWidget, H as InvoicingTab, J as LinkedAccountsWidget, pe as OFFER_WIDGET_LABELS_EN, fe as OFFER_WIDGET_STATUS_LABELS_EN, me as OfferBenefitIcon, he as OfferWidget, d as OnboardingSuppressionReason, ie as PERSONAL_DETAILS_LABELS_EN, ae as RESULT_LABELS_EN, U as ReceivableStatusCard, W as ReceivablesWidget, w as RefreshingRootWidgetProvider, x as RootWidgetProvider, z as SINGLE_INSIGHT_LABELS_EN, l as Scope, G as SettingsSection, q as SettingsWidget, e as THEME_TOKEN_NAMES, Y as TRANSFERS_FEATURE_LABELS_EN, X as TRANSFERS_WIDGET_LABELS_EN, Z as TransfersWidget, f as UIFramework, o as WIDGET_SUITE_DEFAULT_SECTIONS, a as WIDGET_SUITE_LABELS_EN, ge as WidgetProvider, ce as WidgetSuite, s as WidgetSuiteSectionId, S as WidgetTokenRefreshProvider, c as cloneEmbeddedClient, i as configureCsp, t as createTheme, g as getGlobalWidgetConfig, y as getGlobalWidgetInitState, u as isScope, p as registerDesignSystemEnsurer, m as registerUIRenderers, _ as setGlobalWidgetConfig, b as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, v as updateGlobalWidgetConfig, T as useDisclosuresAcceptanceSurface, E as useOwnWidgetConfig, D as useRefetchWidget, O as useWidgetConfig, k as useWidgetError, A as useWidgetInitStaleForToken, j as useWidgetLoading, C as useWidgetToken };
@@ -1810,6 +1810,40 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
1810
1810
  onSelectedAccountIdChange?: (accountId: string | null) => void;
1811
1811
  }
1812
1812
 
1813
+ interface BankingComplianceBannerLabels {
1814
+ /** Precedes the bank's logo or name: "Business Banking provided by Zenith Bank". */
1815
+ providedByPrefix: string;
1816
+ /** Shown in place of the bank's name when the caller has none to give. */
1817
+ providerNameFallback: string;
1818
+ /** Screen-reader text for the provider-name placeholder while it loads. */
1819
+ providerNameLoading: string;
1820
+ /** Accessible name of the FDIC logo. */
1821
+ fdicLogoAlt: string;
1822
+ /**
1823
+ * The FDIC official digital sign statement (12 CFR 328.5). Its wording is
1824
+ * regulated: override it for translation, not to rephrase it.
1825
+ */
1826
+ fdicStatement: string;
1827
+ }
1828
+
1829
+ type InnerProps = {
1830
+ /**
1831
+ * The providing bank's logo, shown in place of its name. Tenant-specific, so
1832
+ * it is the host's to supply (the same `bankLogoSrc` it hands the accounts
1833
+ * and onboarding widgets); without it the bank's name from widget init is
1834
+ * shown as text.
1835
+ */
1836
+ bankLogoSrc?: string;
1837
+ /**
1838
+ * The logo's alt text. Defaults to the bank's name, since the logo stands in
1839
+ * for the name in "provided by …" and a screen reader should read the same.
1840
+ */
1841
+ bankLogoAlt?: string;
1842
+ labels?: Partial<BankingComplianceBannerLabels>;
1843
+ className?: string;
1844
+ };
1845
+ type BankingComplianceBannerWidgetProps = WidgetProviderProps & InnerProps;
1846
+
1813
1847
  interface CardsListColumnHeaderLabels {
1814
1848
  cardName: string;
1815
1849
  fundingAccount: string;
@@ -4551,10 +4585,15 @@ type WidgetSuiteMenuLabels = Record<WidgetSuiteSectionId, string>;
4551
4585
  /** Copy for the heading above a section, as opposed to its menu item. */
4552
4586
  interface WidgetSuiteSectionTitleLabels {
4553
4587
  /**
4554
- * The bank attribution beneath the heading. `{bankName}` is replaced with the
4588
+ * The bank attribution beneath the Dashboard section's heading. `{bankName}` is replaced with the
4555
4589
  * bank `/init` names, so a translation can put it anywhere in the sentence
4556
4590
  * rather than after a fixed lead-in. An override that drops the placeholder
4557
4591
  * shows no name.
4592
+ *
4593
+ * @deprecated Ignored: the Dashboard now renders the banking compliance
4594
+ * banner, which carries the attribution and FDIC signage. Reword it through
4595
+ * `sections.dashboard.complianceBanner` instead. Kept so integrators who pass
4596
+ * it still compile.
4558
4597
  */
4559
4598
  bankTagline: string;
4560
4599
  }
@@ -4655,6 +4694,7 @@ type WidgetLabelProps<T> = Omit<Pick<T, Extract<keyof T, 'labels' | `${string}La
4655
4694
  type WidgetSuiteBalanceHistoryLabels = WidgetLabelProps<BalanceHistoryWidgetProps>;
4656
4695
  type WidgetSuiteBalancesLabels = WidgetLabelProps<BalancesWidgetProps>;
4657
4696
  type WidgetSuiteInsightsLabels = WidgetLabelProps<InsightsWidgetProps>;
4697
+ type WidgetSuiteComplianceBannerLabels = WidgetLabelProps<BankingComplianceBannerWidgetProps>;
4658
4698
  type WidgetSuiteAccountsLabels = WidgetLabelProps<BankAccountsWidgetProps>;
4659
4699
  type WidgetSuiteOnboardingLabels = WidgetLabelProps<BankAccountOnboardingWidgetProps>;
4660
4700
  type WidgetSuiteCreditCardsLabels = WidgetLabelProps<CreditCardsWidgetProps>;
@@ -4673,6 +4713,11 @@ interface WidgetSuiteDashboardLabels {
4673
4713
  */
4674
4714
  balances?: WidgetSuiteBalancesLabels;
4675
4715
  insights?: WidgetSuiteInsightsLabels;
4716
+ /**
4717
+ * The banking compliance banner beneath the Dashboard heading: the bank
4718
+ * attribution, and FDIC signage when the bank is FDIC-insured.
4719
+ */
4720
+ complianceBanner?: WidgetSuiteComplianceBannerLabels;
4676
4721
  }
4677
4722
  /**
4678
4723
  * The two card lists, plus the heading the suite writes above each.
@@ -4878,4 +4923,4 @@ interface WidgetSuiteProps extends WidgetProviderProps {
4878
4923
  declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
4879
4924
 
4880
4925
  export { WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
4881
- export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
4926
+ export type { WidgetSuiteCardsLabels, WidgetSuiteComplianceBannerLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.175", n = "a2ab3155d92daa46bdebe618b3d7033feed551ce", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.176", n = "39693bbc7dd3173b2345ccd79e224c8c01c6cdda", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -19,52 +19,54 @@ import "../../../../../shared/ui/dist/index.js";
19
19
  import { useAnalyticsTrack as ee } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
20
20
  import { WidgetProvider as p } from "../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
21
21
  import { useRefetchWidget as m, useWidgetConfig as te, useWidgetError as h, useWidgetInitStaleForToken as g, useWidgetLoading as _ } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
22
- import { deniedNoticeExpiresAt as ne, selectBankAccountApplication as re } from "../../../../../shared/feature/dist/lib/application/bankAccountApplication.js";
22
+ import { deniedNoticeExpiresAt as v, selectBankAccountApplication as ne } from "../../../../../shared/feature/dist/lib/application/bankAccountApplication.js";
23
23
  import "../../../../../shared/feature/dist/index.js";
24
- import { WIDGET_SUITE_SECTIONS as ie } from "./sections/index.js";
25
- import { WIDGET_NAME as v, WidgetSuiteAnalyticsEvent as y } from "../analytics/events.js";
26
- import { needsDisclosureAcceptance as b } from "./disclosureGate.js";
27
- import { AcceptDisclosuresWidget as ae } from "../../../../../accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
24
+ import { WIDGET_SUITE_SECTIONS as re } from "./sections/index.js";
25
+ import { WIDGET_NAME as y, WidgetSuiteAnalyticsEvent as b } from "../analytics/events.js";
26
+ import { needsDisclosureAcceptance as x } from "./disclosureGate.js";
27
+ import { AcceptDisclosuresWidget as ie } from "../../../../../accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
28
28
  import "../../../../../accept-disclosures-widget/feature/dist/index.js";
29
- import { OnboardingApplicationView as x, onboardingApplicationViewFor as S } from "../../../../../bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js";
30
- import { BankAccountOnboardingWidget as oe } from "../../../../../bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
29
+ import { BankingComplianceBannerWidget as ae } from "../../../../../banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
30
+ import "../../../../../banking-compliance-banner-widget/feature/dist/index.js";
31
+ import { OnboardingApplicationView as S, onboardingApplicationViewFor as oe } from "../../../../../bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js";
32
+ import { BankAccountOnboardingWidget as se } from "../../../../../bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
31
33
  import "../../../../../bank-account-onboarding-widget/feature/dist/index.js";
32
- import { useCallback as C, useEffect as w, useMemo as se, useReducer as T, useRef as E, useState as D } from "react";
33
- import { Fragment as ce, jsx as O, jsxs as le } from "react/jsx-runtime";
34
+ import { useCallback as C, useEffect as w, useMemo as ce, useReducer as T, useRef as E, useState as D } from "react";
35
+ import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
34
36
  // ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js
35
- var k = {
37
+ var j = {
36
38
  initFailed: "widget-suite-init-failed",
37
39
  disclosuresRefreshFailed: "widget-suite-disclosures-refresh-failed",
38
40
  applicationUnavailable: "widget-suite-application-unavailable"
39
- }, A = 2 ** 31 - 1;
40
- function j({ showSectionTitle: n = !0, onboardingDisclosureLinks: r, onApplicantLatchChange: a, onResultScreenHeldChange: s }) {
41
- let { availableSections: c, activeSection: ee, labels: p, navigate: v } = o(), { initResponse: y } = te(), j = h(), M = g(), N = _(), P = m(), F = u(), I = d(), L = se(() => re(I.applications), [I.applications]), R = E(null);
42
- I.isResolved && (R.current = { application: L });
43
- let z = I.isResolved ? L : R.current?.application ?? null, [ue, de] = T((e) => e + 1, 0), B = ne(z);
41
+ }, le = 2 ** 31 - 1;
42
+ function M({ showSectionTitle: n = !0, onboardingDisclosureLinks: r, onApplicantLatchChange: a, onResultScreenHeldChange: s }) {
43
+ let { availableSections: c, activeSection: ee, labels: p, navigate: y } = o(), { initResponse: b } = te(), M = h(), N = g(), P = _(), F = m(), I = u(), L = d(), R = ce(() => ne(L.applications), [L.applications]), z = E(null);
44
+ L.isResolved && (z.current = { application: R });
45
+ let B = L.isResolved ? R : z.current?.application ?? null, [ue, de] = T((e) => e + 1, 0), V = v(B);
44
46
  w(() => {
45
- if (B === null) return;
46
- let e = B - Date.now();
47
+ if (V === null) return;
48
+ let e = V - Date.now();
47
49
  if (e < 0) return;
48
- let t = setTimeout(de, Math.min(e + 1, A));
50
+ let t = setTimeout(de, Math.min(e + 1, le));
49
51
  return () => clearTimeout(t);
50
- }, [B, ue]);
51
- let V = S(z), [H, fe] = D(!1), [U, pe] = D(!1), me = F.isResolved || U, he = C((e) => v(e), [v]), [W, ge] = D(!1), _e = C(() => ge(!0), []), [G, ve] = D(!1), ye = G || H;
52
+ }, [V, ue]);
53
+ let H = oe(B), [U, fe] = D(!1), [W, pe] = D(!1), me = I.isResolved || W, he = C((e) => y(e), [y]), [G, ge] = D(!1), _e = C(() => ge(!0), []), [K, ve] = D(!1), ye = K || U;
52
54
  w(() => {
53
55
  a(ye);
54
56
  }, [ye, a]);
55
- let [be, xe] = D(!1), Se = H && !be;
57
+ let [be, xe] = D(!1), Se = U && !be;
56
58
  w(() => {
57
59
  s(Se);
58
60
  }, [Se, s]);
59
- let K = b(y), q = p.disclosure, J = p.onboardingGate, Y = y?.status === "INVITED", X = y?.status === "ACTIVE" || y?.status === "INACTIVE", Ce = !!(y && M), we = Ce && (Y || X), Te = !y && !j || we && !j, Z = !!y && !Te && !Ce && !Y && !X && me && F.reason === l.OrganizationApplicationComplete && !G, Q = E(!1), [Ee, De] = D(!1);
61
+ let q = x(b), J = p.disclosure, Y = p.onboardingGate, X = b?.status === "INVITED", Z = b?.status === "ACTIVE" || b?.status === "INACTIVE", Ce = !!(b && N), we = Ce && (X || Z), Te = !b && !M || we && !M, Q = !!b && !Te && !Ce && !X && !Z && me && I.reason === l.OrganizationApplicationComplete && !K, Ee = E(!1), [De, Oe] = D(!1);
60
62
  w(() => {
61
- !K && W && ge(!1);
62
- }, [W, K]), w(() => {
63
- F.isResolved && !U && pe(!0);
64
- }, [F.isResolved, U]), w(() => {
65
- Z ? Q.current || (Q.current = !0, De(!0), P()) : (Q.current = !1, De(!1));
66
- }, [Z, P]);
67
- let $ = () => /* @__PURE__ */ O(e, {
63
+ !q && G && ge(!1);
64
+ }, [G, q]), w(() => {
65
+ I.isResolved && !W && pe(!0);
66
+ }, [I.isResolved, W]), w(() => {
67
+ Q ? Ee.current || (Ee.current = !0, Oe(!0), F()) : (Ee.current = !1, Oe(!1));
68
+ }, [Q, F]);
69
+ let $ = () => /* @__PURE__ */ k(e, {
68
70
  isLoading: !0,
69
71
  sections: [],
70
72
  selectedSectionId: "",
@@ -72,85 +74,88 @@ function j({ showSectionTitle: n = !0, onboardingDisclosureLinks: r, onApplicant
72
74
  labels: p.shell
73
75
  });
74
76
  if (Te) return $();
75
- if ((!y || we) && j) return /* @__PURE__ */ O(f, {
76
- title: q.initFailedState.title,
77
- description: q.initFailedState.body,
78
- retryLabel: q.initFailedState.retryButton,
79
- onRetry: P,
80
- testId: k.initFailed
77
+ if ((!b || we) && M) return /* @__PURE__ */ k(f, {
78
+ title: J.initFailedState.title,
79
+ description: J.initFailedState.body,
80
+ retryLabel: J.initFailedState.retryButton,
81
+ onRetry: F,
82
+ testId: j.initFailed
81
83
  });
82
- let Oe = () => W && j ? /* @__PURE__ */ O(f, {
83
- title: q.refreshFailedState.title,
84
- description: q.refreshFailedState.body,
85
- retryLabel: q.refreshFailedState.retryButton,
86
- onRetry: P,
87
- testId: k.disclosuresRefreshFailed
88
- }) : /* @__PURE__ */ O(ae, { onAccepted: _e });
89
- if (Y || X) {
90
- if (K) return Oe();
91
- } else return me ? Z ? j || Ee && !N ? /* @__PURE__ */ O(f, {
92
- title: q.initFailedState.title,
93
- description: q.initFailedState.body,
94
- retryLabel: q.initFailedState.retryButton,
95
- onRetry: P,
96
- testId: k.initFailed
97
- }) : $() : !I.isResolved && V !== x.Form && !H ? $() : (V === x.Hidden || V === x.Form && F.isSuppressed) && z?.status !== "COMPLETE" && !H && !G ? /* @__PURE__ */ O(f, {
98
- title: J.applicationUnavailableState.title,
99
- description: J.applicationUnavailableState.body,
100
- retryLabel: J.applicationUnavailableState.retryButton,
101
- onRetry: F.refetch,
102
- testId: k.applicationUnavailable
103
- }) : /* @__PURE__ */ O(oe, {
84
+ let ke = () => G && M ? /* @__PURE__ */ k(f, {
85
+ title: J.refreshFailedState.title,
86
+ description: J.refreshFailedState.body,
87
+ retryLabel: J.refreshFailedState.retryButton,
88
+ onRetry: F,
89
+ testId: j.disclosuresRefreshFailed
90
+ }) : /* @__PURE__ */ k(ie, { onAccepted: _e });
91
+ if (X || Z) {
92
+ if (q) return ke();
93
+ } else return me ? Q ? M || De && !P ? /* @__PURE__ */ k(f, {
94
+ title: J.initFailedState.title,
95
+ description: J.initFailedState.body,
96
+ retryLabel: J.initFailedState.retryButton,
97
+ onRetry: F,
98
+ testId: j.initFailed
99
+ }) : $() : !L.isResolved && H !== S.Form && !U ? $() : (H === S.Hidden || H === S.Form && I.isSuppressed) && B?.status !== "COMPLETE" && !U && !K ? /* @__PURE__ */ k(f, {
100
+ title: Y.applicationUnavailableState.title,
101
+ description: Y.applicationUnavailableState.body,
102
+ retryLabel: Y.applicationUnavailableState.retryButton,
103
+ onRetry: I.refetch,
104
+ testId: j.applicationUnavailable
105
+ }) : /* @__PURE__ */ k(se, {
104
106
  showApplicationStatusRefresh: !0,
105
107
  onResultPhaseChange: fe,
106
108
  onEmbeddedOnboardingCompletedSuccessfully: () => ve(!0),
107
109
  onNavigateToDashboard: () => {
108
- xe(!0), c.includes(i.Dashboard) && v(i.Dashboard), P();
110
+ xe(!0), c.includes(i.Dashboard) && y(i.Dashboard), F();
109
111
  },
110
112
  disclosureLinks: r,
111
113
  ...p.onboarding
112
114
  }) : $();
113
- let ke = y?.bankName?.trim(), Ae = ke ? p.sectionTitle.bankTagline.replaceAll("{bankName}", ke) : void 0, je = c.map((e) => {
114
- let { Content: r, placesOwnTitle: a } = ie[e], o = p.menu[e], s = e === i.Accounts ? void 0 : Ae, c = (e) => /* @__PURE__ */ O(t, {
115
+ let Ae = !!b?.bankName?.trim(), je = c.map((e) => {
116
+ let { Content: r, placesOwnTitle: a } = re[e], o = p.menu[e], s = e === i.Dashboard && Ae ? /* @__PURE__ */ k(ae, {
117
+ ...p.sections.dashboard.complianceBanner,
118
+ className: "ttw:px-0"
119
+ }) : void 0, c = (e) => /* @__PURE__ */ k(t, {
115
120
  title: o,
116
- bankTagline: s,
121
+ attribution: s,
117
122
  children: e
118
- }), l = /* @__PURE__ */ O(r, {});
119
- return n && (l = a ? /* @__PURE__ */ O(r, { renderTitle: c }) : /* @__PURE__ */ le(ce, { children: [c(), /* @__PURE__ */ O(r, {})] })), {
123
+ }), l = /* @__PURE__ */ A(O, { children: [s, /* @__PURE__ */ k(r, {})] });
124
+ return n && (l = a ? /* @__PURE__ */ k(r, { renderTitle: c }) : /* @__PURE__ */ A(O, { children: [c(), /* @__PURE__ */ k(r, {})] })), {
120
125
  id: e,
121
126
  label: o,
122
127
  content: l
123
128
  };
124
129
  });
125
- return /* @__PURE__ */ O(e, {
130
+ return /* @__PURE__ */ k(e, {
126
131
  sections: je,
127
132
  selectedSectionId: ee ?? "",
128
133
  onSectionChange: he,
129
134
  labels: p.shell
130
135
  });
131
136
  }
132
- function M({ sections: e = r, section: t, defaultSection: i, onSectionChange: o, labels: l, cardArtSrc: u, ...d }) {
137
+ function N({ sections: e = r, section: t, defaultSection: i, onSectionChange: o, labels: l, cardArtSrc: u, ...d }) {
133
138
  let f = ee();
134
139
  w(() => {
135
- f(y.Mounted);
140
+ f(b.Mounted);
136
141
  }, [f]);
137
- let { initResponse: p } = te(), m = p?.scopes, { client: h, widgetToken: g } = s(), _ = p?.userId ?? null, [ne, re] = D(_), [v, b] = D(0);
138
- _ !== ne && (re(_), ne !== null && b((e) => e + 1));
139
- let [ae, x] = D(h);
140
- h !== ae && (x(h), b((e) => e + 1));
141
- let S = !!g, [oe, C] = D(S);
142
- S !== oe && (C(S), b((e) => e + 1));
143
- let T = p?.organizationId ?? null, [E, ce] = D(T);
144
- T !== E && (ce(T), E !== null && b((e) => e + 1));
145
- let [le, k] = D(!1), [A, M] = D(!1), [N, P] = D(null), F = () => {
146
- k(!1), b((e) => e + 1);
142
+ let { initResponse: p } = te(), m = p?.scopes, { client: h, widgetToken: g } = s(), _ = p?.userId ?? null, [v, ne] = D(_), [y, x] = D(0);
143
+ _ !== v && (ne(_), v !== null && x((e) => e + 1));
144
+ let [ie, ae] = D(h);
145
+ h !== ie && (ae(h), x((e) => e + 1));
146
+ let S = !!g, [oe, se] = D(S);
147
+ S !== oe && (se(S), x((e) => e + 1));
148
+ let C = p?.organizationId ?? null, [T, E] = D(C);
149
+ C !== T && (E(C), T !== null && x((e) => e + 1));
150
+ let [O, A] = D(!1), [j, le] = D(!1), [N, P] = D(null), F = () => {
151
+ A(!1), x((e) => e + 1);
147
152
  }, [I, L] = D(g);
148
- g !== I && (L(g), le && _ === null && T === null && S === !!I && (A ? P(v) : F())), N !== null && !A && (P(null), N === v && _ === null && T === null && F());
149
- let R = se(() => n(l), [l]), z = e.filter((e) => {
150
- let t = ie[e];
153
+ g !== I && (L(g), O && _ === null && C === null && S === !!I && (j ? P(y) : F())), N !== null && !j && (P(null), N === y && _ === null && C === null && F());
154
+ let R = ce(() => n(l), [l]), z = e.filter((e) => {
155
+ let t = re[e];
151
156
  return !!t && (!t.anyOfScopes || c(m, t.anyOfScopes));
152
157
  });
153
- return /* @__PURE__ */ O(a, {
158
+ return /* @__PURE__ */ k(a, {
154
159
  sections: e,
155
160
  availableSections: z,
156
161
  grantedScopes: m,
@@ -159,16 +164,16 @@ function M({ sections: e = r, section: t, defaultSection: i, onSectionChange: o,
159
164
  defaultSection: i,
160
165
  onSectionChange: o,
161
166
  cardArtSrc: u,
162
- children: /* @__PURE__ */ O(j, {
163
- onApplicantLatchChange: k,
164
- onResultScreenHeldChange: M,
167
+ children: /* @__PURE__ */ k(M, {
168
+ onApplicantLatchChange: A,
169
+ onResultScreenHeldChange: le,
165
170
  ...d
166
- }, v)
171
+ }, y)
167
172
  });
168
173
  }
169
- function N({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, uiFramework: o, errorFallback: s, onError: c, analytics: l, disclosuresAcceptance: u, providerLabels: d, ...f }) {
170
- return /* @__PURE__ */ O(p, {
171
- widgetName: v,
174
+ function P({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, uiFramework: o, errorFallback: s, onError: c, analytics: l, disclosuresAcceptance: u, providerLabels: d, ...f }) {
175
+ return /* @__PURE__ */ k(p, {
176
+ widgetName: y,
172
177
  baseUrl: e,
173
178
  widgetToken: t,
174
179
  organizationId: n,
@@ -181,7 +186,7 @@ function N({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
181
186
  analytics: l,
182
187
  disclosuresAcceptance: u,
183
188
  providerLabels: d,
184
- children: /* @__PURE__ */ O(M, { ...f })
189
+ children: /* @__PURE__ */ k(N, { ...f })
185
190
  });
186
191
  }
187
- export { k as WIDGET_SUITE_TEST_IDS, N as WidgetSuite, N as default };
192
+ export { j as WIDGET_SUITE_TEST_IDS, P as WidgetSuite, P as default };
@@ -11,7 +11,10 @@ import { jsx as r } from "react/jsx-runtime";
11
11
  // ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js
12
12
  function i() {
13
13
  let { labels: t } = e();
14
- return /* @__PURE__ */ r(n, { ...t.sections.accounts });
14
+ return /* @__PURE__ */ r(n, {
15
+ ...t.sections.accounts,
16
+ isBankingTaglineVisible: !1
17
+ });
15
18
  }
16
19
  var a = {
17
20
  anyOfScopes: [t.BankAccountReadOrg, t.ExternalBankAccountReadOrg],
@@ -5,7 +5,7 @@
5
5
  import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
6
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
7
7
  // ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index4.js
8
- function r({ title: r, bankTagline: i, testId: a, children: o }) {
8
+ function r({ title: r, attribution: i, testId: a, children: o }) {
9
9
  return /* @__PURE__ */ n("div", {
10
10
  className: "ttw:mb-6 ttw:flex ttw:justify-between ttw:gap-4",
11
11
  children: [/* @__PURE__ */ n("div", {
@@ -14,11 +14,7 @@ function r({ title: r, bankTagline: i, testId: a, children: o }) {
14
14
  variant: "h1",
15
15
  "data-testid": a,
16
16
  children: r
17
- }), i && /* @__PURE__ */ t(e, {
18
- color: "muted",
19
- variant: "body1",
20
- children: i
21
- })]
17
+ }), i]
22
18
  }), /* @__PURE__ */ t("div", {
23
19
  className: "ttw:flex ttw:items-center ttw:gap-2",
24
20
  children: o
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.175",
3
+ "version": "0.11.176",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [