@tesouro/embedded-components-react 0.5.117 → 0.5.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.css +13 -6
- package/dist/index.d.ts +31 -4
- package/dist/index.js +5 -4
- package/dist/lib/MarketingWidget.d.ts +31 -4
- package/dist/lib/MarketingWidget.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +16 -72
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +88 -0
- 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/util/dist/lib/auditHistory/buildPayableAuditHistory.js +2 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -477,17 +477,17 @@ A self-contained widget that walks an applicant through the embedded bank-accoun
|
|
|
477
477
|
|
|
478
478
|
### MarketingWidget
|
|
479
479
|
|
|
480
|
-
A self-contained marketing card and modal that presents host-supplied banking product copy (logo, captions, benefits, colors). The
|
|
480
|
+
A self-contained marketing card and modal that presents host-supplied banking product copy (logo, captions, "How it works" steps, benefits, colors). The card renders two CTAs — Apply now and Learn more — and the modal's own CTA. The host wires all three to whatever should happen next — typically opening `BankAccountOnboardingWidget`.
|
|
481
481
|
|
|
482
482
|
The widget renders nothing until widget init resolves, and hides itself when the caller is already onboarded (`ACTIVE` / `INACTIVE`), invited (`INVITED`), or their organization already has a bank-account application (`COMPLETE`, or started by another member). A `NOT_FOUND` colleague of an onboarded org therefore does not see an Apply CTA. Tenant-specific assets and copy are always passed in as `content` — the published package does not look up white-label or bank maps.
|
|
483
483
|
|
|
484
484
|
#### Props
|
|
485
485
|
|
|
486
|
-
| Prop | Type | Required | Description
|
|
487
|
-
| ------------------- | ------------------------------------ | -------- |
|
|
488
|
-
| `content` | `MarketingWidgetContent` | Yes | Host-resolved card and modal copy, images, and appearance.
|
|
489
|
-
| `onPrimaryCtaClick` | `() => void` | Yes | Called when the applicant clicks the modal CTA (default label:
|
|
490
|
-
| `labels` | `PartialDeep<MarketingWidgetLabels>` | No | Override Learn more,
|
|
486
|
+
| Prop | Type | Required | Description |
|
|
487
|
+
| ------------------- | ------------------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
|
488
|
+
| `content` | `MarketingWidgetContent` | Yes | Host-resolved card and modal copy, images, "How it works" steps, benefits, and appearance. |
|
|
489
|
+
| `onPrimaryCtaClick` | `() => void` | Yes | Called when the applicant clicks Apply now on the card or the modal CTA (default label: Start application). Closes the modal first. |
|
|
490
|
+
| `labels` | `PartialDeep<MarketingWidgetLabels>` | No | Override Apply now, Learn more, the modal CTA + subtext, and the modal dismiss `aria-label`. |
|
|
491
491
|
|
|
492
492
|
### ProductsWidget
|
|
493
493
|
|
package/dist/index.css
CHANGED
|
@@ -674,6 +674,10 @@
|
|
|
674
674
|
width: 22px;
|
|
675
675
|
height: 22px;
|
|
676
676
|
}
|
|
677
|
+
.ttw\:size-\[23px\] {
|
|
678
|
+
width: 23px;
|
|
679
|
+
height: 23px;
|
|
680
|
+
}
|
|
677
681
|
.ttw\:size-\[65px\] {
|
|
678
682
|
width: 65px;
|
|
679
683
|
height: 65px;
|
|
@@ -1238,9 +1242,6 @@
|
|
|
1238
1242
|
.ttw\:w-\[82\%\] {
|
|
1239
1243
|
width: 82%;
|
|
1240
1244
|
}
|
|
1241
|
-
.ttw\:w-\[83\%\] {
|
|
1242
|
-
width: 83%;
|
|
1243
|
-
}
|
|
1244
1245
|
.ttw\:w-\[85\%\] {
|
|
1245
1246
|
width: 85%;
|
|
1246
1247
|
}
|
|
@@ -1901,6 +1902,9 @@
|
|
|
1901
1902
|
margin-block-start: calc(calc(var(--ttw-spacing) * 8) * var(--tw-space-y-reverse));
|
|
1902
1903
|
margin-block-end: calc(calc(var(--ttw-spacing) * 8) * calc(1 - var(--tw-space-y-reverse)));
|
|
1903
1904
|
}
|
|
1905
|
+
.ttw\:gap-x-2 {
|
|
1906
|
+
column-gap: calc(var(--ttw-spacing) * 2);
|
|
1907
|
+
}
|
|
1904
1908
|
.ttw\:gap-x-4 {
|
|
1905
1909
|
column-gap: calc(var(--ttw-spacing) * 4);
|
|
1906
1910
|
}
|
|
@@ -2916,6 +2920,9 @@
|
|
|
2916
2920
|
.ttw\:p-\[3px\] {
|
|
2917
2921
|
padding: 3px;
|
|
2918
2922
|
}
|
|
2923
|
+
.ttw\:p-\[18px\] {
|
|
2924
|
+
padding: 18px;
|
|
2925
|
+
}
|
|
2919
2926
|
.ttw\:\!px-0 {
|
|
2920
2927
|
padding-inline: 0px !important;
|
|
2921
2928
|
}
|
|
@@ -3258,9 +3265,6 @@
|
|
|
3258
3265
|
.ttw\:text-\[0\.8rem\] {
|
|
3259
3266
|
font-size: 0.8rem;
|
|
3260
3267
|
}
|
|
3261
|
-
.ttw\:text-\[1\.35rem\] {
|
|
3262
|
-
font-size: 1.35rem;
|
|
3263
|
-
}
|
|
3264
3268
|
.ttw\:text-\[9px\] {
|
|
3265
3269
|
font-size: 9px;
|
|
3266
3270
|
}
|
|
@@ -3697,6 +3701,9 @@
|
|
|
3697
3701
|
.ttw\:opacity-70 {
|
|
3698
3702
|
opacity: 70%;
|
|
3699
3703
|
}
|
|
3704
|
+
.ttw\:opacity-90 {
|
|
3705
|
+
opacity: 90%;
|
|
3706
|
+
}
|
|
3700
3707
|
.ttw\:opacity-100 {
|
|
3701
3708
|
opacity: 100%;
|
|
3702
3709
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4660,8 +4660,11 @@ interface LinkedAccountsWidgetProps extends WidgetProviderProps {
|
|
|
4660
4660
|
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
|
|
4661
4661
|
|
|
4662
4662
|
interface MarketingWidgetLabels {
|
|
4663
|
+
applyNow: string;
|
|
4663
4664
|
learnMore: string;
|
|
4664
4665
|
primaryCta: string;
|
|
4666
|
+
/** Small caption next to the modal CTA, e.g. "takes about 5 minutes". */
|
|
4667
|
+
primaryCtaSubtext: string;
|
|
4665
4668
|
dismissModalAriaLabel: string;
|
|
4666
4669
|
}
|
|
4667
4670
|
declare const MARKETING_WIDGET_LABELS_EN: MarketingWidgetLabels;
|
|
@@ -4679,6 +4682,24 @@ interface MarketingWidgetAppearance {
|
|
|
4679
4682
|
boxShadow: string;
|
|
4680
4683
|
modalBackgroundColor: string;
|
|
4681
4684
|
}
|
|
4685
|
+
declare const MarketingBenefitIcon: {
|
|
4686
|
+
readonly Sync: "sync";
|
|
4687
|
+
readonly Users: "users";
|
|
4688
|
+
readonly Document: "document";
|
|
4689
|
+
readonly Dollar: "dollar";
|
|
4690
|
+
readonly Card: "card";
|
|
4691
|
+
};
|
|
4692
|
+
type MarketingBenefitIcon = (typeof MarketingBenefitIcon)[keyof typeof MarketingBenefitIcon];
|
|
4693
|
+
interface MarketingWidgetBenefit {
|
|
4694
|
+
text: string;
|
|
4695
|
+
icon: MarketingBenefitIcon;
|
|
4696
|
+
}
|
|
4697
|
+
interface MarketingWidgetHowItWorksStep {
|
|
4698
|
+
/** Caller-supplied step badge text, e.g. "1" — the component never derives this from position. */
|
|
4699
|
+
number: string;
|
|
4700
|
+
title: string;
|
|
4701
|
+
description: string;
|
|
4702
|
+
}
|
|
4682
4703
|
interface MarketingWidgetContent {
|
|
4683
4704
|
vspLogo: MarketingWidgetImage;
|
|
4684
4705
|
bankingText: string;
|
|
@@ -4686,9 +4707,15 @@ interface MarketingWidgetContent {
|
|
|
4686
4707
|
secondaryCaption: string;
|
|
4687
4708
|
/** Full card/modal attribution, e.g. "Provided by Zenith Bank, Member FDIC". */
|
|
4688
4709
|
providedByCaption: string;
|
|
4689
|
-
modalPrimaryImg: MarketingWidgetImage;
|
|
4690
4710
|
primaryModalHeader: string;
|
|
4691
|
-
|
|
4711
|
+
/** Section heading above `howItWorksSteps`, e.g. "How it works". */
|
|
4712
|
+
howItWorksHeader: string;
|
|
4713
|
+
/** Numbered steps shown in the modal. A VSP may supply any number of steps;
|
|
4714
|
+
* the section is omitted entirely when the array is empty. */
|
|
4715
|
+
howItWorksSteps: MarketingWidgetHowItWorksStep[];
|
|
4716
|
+
/** Section heading above the benefits grid, e.g. "FROM DAY ONE". */
|
|
4717
|
+
fromDayOneHeader: string;
|
|
4718
|
+
benefits: MarketingWidgetBenefit[];
|
|
4692
4719
|
appearance: MarketingWidgetAppearance;
|
|
4693
4720
|
}
|
|
4694
4721
|
|
|
@@ -4921,5 +4948,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
4921
4948
|
|
|
4922
4949
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
4923
4950
|
|
|
4924
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
4925
|
-
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetContent, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
4951
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
4952
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -59,13 +59,14 @@ import { LinkedAccountsWidget as te } from "./libs/tesouro-embedded-components-r
|
|
|
59
59
|
import "./lib/LinkedAccountsWidget.js";
|
|
60
60
|
import "./lib/BankAccountOnboardingWidget.js";
|
|
61
61
|
import { MARKETING_WIDGET_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
|
|
62
|
-
import {
|
|
62
|
+
import { MarketingBenefitIcon as re } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
|
|
63
|
+
import { MarketingWidget as ie } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
|
|
63
64
|
import "./lib/MarketingWidget.js";
|
|
64
|
-
import { ProductsWidget as
|
|
65
|
+
import { ProductsWidget as ae } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
|
|
65
66
|
import "./lib/ProductsWidget.js";
|
|
66
67
|
import "./lib/ReceivablesWidget.js";
|
|
67
68
|
import "./lib/SettingsWidget.js";
|
|
68
69
|
import "./lib/TransfersWidget.js";
|
|
69
|
-
import { WidgetProvider as
|
|
70
|
+
import { WidgetProvider as oe } from "./lib/WidgetProviderPublic.js";
|
|
70
71
|
import "./lib/WidgetProvider.js";
|
|
71
|
-
export { q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Y as ADDITIONAL_OWNERS_LABELS_EN, J as AcceptDisclosuresWidget, j as BALANCES_WIDGET_LABELS_EN, X as BUSINESS_DETAILS_LABELS_EN, M as BalancesWidget, $ as BankAccountOnboardingWidget, T as BankAccountsWidget, D as BillPayWidget, O as CardDetailsWidget, E as CounterpartsWidget, k as CreditCardsWidget, A as DebitCardsWidget, s as ERROR_STATE_ID, V as ExpenseManagementWidget, H as HELP_FAQ_EN, N as INSIGHTS_FEATURE_LABELS_EN, P as INSIGHTS_WIDGET_LABELS_EN, c as Implementation, I as InsightsWidget, L as InvoicingWidget, te as LinkedAccountsWidget, ne as MARKETING_WIDGET_LABELS_EN, re as MarketingWidget, Z as PERSONAL_DETAILS_LABELS_EN,
|
|
72
|
+
export { q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Y as ADDITIONAL_OWNERS_LABELS_EN, J as AcceptDisclosuresWidget, j as BALANCES_WIDGET_LABELS_EN, X as BUSINESS_DETAILS_LABELS_EN, M as BalancesWidget, $ as BankAccountOnboardingWidget, T as BankAccountsWidget, D as BillPayWidget, O as CardDetailsWidget, E as CounterpartsWidget, k as CreditCardsWidget, A as DebitCardsWidget, s as ERROR_STATE_ID, V as ExpenseManagementWidget, H as HELP_FAQ_EN, N as INSIGHTS_FEATURE_LABELS_EN, P as INSIGHTS_WIDGET_LABELS_EN, c as Implementation, I as InsightsWidget, L as InvoicingWidget, te as LinkedAccountsWidget, ne as MARKETING_WIDGET_LABELS_EN, re as MarketingBenefitIcon, ie as MarketingWidget, Z as PERSONAL_DETAILS_LABELS_EN, ae as ProductsWidget, Q as RESULT_LABELS_EN, R as ReceivablesWidget, _ as RefreshingRootWidgetProvider, m as RootWidgetProvider, F as SINGLE_INSIGHT_LABELS_EN, z as SettingsSection, U as SettingsWidget, W as TRANSFERS_FEATURE_LABELS_EN, G as TRANSFERS_WIDGET_LABELS_EN, K as TransfersWidget, i as UIFramework, B as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, oe as WidgetProvider, ee as WidgetSuite, n as WidgetSuiteSectionId, h as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, l as getGlobalWidgetConfig, f as getGlobalWidgetInitState, a as registerDesignSystemEnsurer, o as registerUIRenderers, u as setGlobalWidgetConfig, p as subscribeToGlobalWidgetInitState, d as updateGlobalWidgetConfig, v as useDisclosuresAcceptanceSurface, y as useOwnWidgetConfig, b as useRefetchWidget, x as useWidgetConfig, S as useWidgetError, C as useWidgetInitStaleForToken, w as useWidgetLoading, g as useWidgetToken };
|
|
@@ -4,8 +4,11 @@ import { PartialDeep } from 'type-fest';
|
|
|
4
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
5
|
|
|
6
6
|
interface MarketingWidgetLabels {
|
|
7
|
+
applyNow: string;
|
|
7
8
|
learnMore: string;
|
|
8
9
|
primaryCta: string;
|
|
10
|
+
/** Small caption next to the modal CTA, e.g. "takes about 5 minutes". */
|
|
11
|
+
primaryCtaSubtext: string;
|
|
9
12
|
dismissModalAriaLabel: string;
|
|
10
13
|
}
|
|
11
14
|
declare const MARKETING_WIDGET_LABELS_EN: MarketingWidgetLabels;
|
|
@@ -23,6 +26,24 @@ interface MarketingWidgetAppearance {
|
|
|
23
26
|
boxShadow: string;
|
|
24
27
|
modalBackgroundColor: string;
|
|
25
28
|
}
|
|
29
|
+
declare const MarketingBenefitIcon: {
|
|
30
|
+
readonly Sync: "sync";
|
|
31
|
+
readonly Users: "users";
|
|
32
|
+
readonly Document: "document";
|
|
33
|
+
readonly Dollar: "dollar";
|
|
34
|
+
readonly Card: "card";
|
|
35
|
+
};
|
|
36
|
+
type MarketingBenefitIcon = (typeof MarketingBenefitIcon)[keyof typeof MarketingBenefitIcon];
|
|
37
|
+
interface MarketingWidgetBenefit {
|
|
38
|
+
text: string;
|
|
39
|
+
icon: MarketingBenefitIcon;
|
|
40
|
+
}
|
|
41
|
+
interface MarketingWidgetHowItWorksStep {
|
|
42
|
+
/** Caller-supplied step badge text, e.g. "1" — the component never derives this from position. */
|
|
43
|
+
number: string;
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
}
|
|
26
47
|
interface MarketingWidgetContent {
|
|
27
48
|
vspLogo: MarketingWidgetImage;
|
|
28
49
|
bankingText: string;
|
|
@@ -30,9 +51,15 @@ interface MarketingWidgetContent {
|
|
|
30
51
|
secondaryCaption: string;
|
|
31
52
|
/** Full card/modal attribution, e.g. "Provided by Zenith Bank, Member FDIC". */
|
|
32
53
|
providedByCaption: string;
|
|
33
|
-
modalPrimaryImg: MarketingWidgetImage;
|
|
34
54
|
primaryModalHeader: string;
|
|
35
|
-
|
|
55
|
+
/** Section heading above `howItWorksSteps`, e.g. "How it works". */
|
|
56
|
+
howItWorksHeader: string;
|
|
57
|
+
/** Numbered steps shown in the modal. A VSP may supply any number of steps;
|
|
58
|
+
* the section is omitted entirely when the array is empty. */
|
|
59
|
+
howItWorksSteps: MarketingWidgetHowItWorksStep[];
|
|
60
|
+
/** Section heading above the benefits grid, e.g. "FROM DAY ONE". */
|
|
61
|
+
fromDayOneHeader: string;
|
|
62
|
+
benefits: MarketingWidgetBenefit[];
|
|
36
63
|
appearance: MarketingWidgetAppearance;
|
|
37
64
|
}
|
|
38
65
|
|
|
@@ -680,5 +707,5 @@ type MarketingWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
680
707
|
*/
|
|
681
708
|
declare function MarketingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: MarketingWidgetProps): React.JSX.Element;
|
|
682
709
|
|
|
683
|
-
export { MARKETING_WIDGET_LABELS_EN, MarketingWidget };
|
|
684
|
-
export type { MarketingWidgetAppearance, MarketingWidgetContent, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps };
|
|
710
|
+
export { MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget };
|
|
711
|
+
export type { MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MARKETING_WIDGET_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { MarketingBenefitIcon as t } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
|
|
3
|
+
import { MarketingWidget as n } from "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
|
|
3
4
|
import "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js";
|
|
4
|
-
export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingWidget };
|
|
5
|
+
export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, n as MarketingWidget };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { MARKETING_WIDGET_LABELS_EN as e } from "../../ui/dist/index2.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { MarketingBenefitIcon as t } from "../../ui/dist/index3.js";
|
|
3
|
+
import { MarketingWidget as n } from "./index4.js";
|
|
4
|
+
export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, n as MarketingWidget };
|
|
@@ -11,37 +11,40 @@ import "../../../shared/feature/dist/index.js";
|
|
|
11
11
|
import { MarketingWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index2.js";
|
|
12
12
|
import { marketingWidgetTestIds as o } from "./index3.js";
|
|
13
13
|
import { MARKETING_WIDGET_LABELS_EN as s } from "../../ui/dist/index2.js";
|
|
14
|
-
import {
|
|
14
|
+
import { MarketingBenefitIcon as c } from "../../ui/dist/index3.js";
|
|
15
|
+
import { MarketingWidget as l } from "../../ui/dist/index8.js";
|
|
15
16
|
import "../../ui/dist/index.js";
|
|
16
|
-
import { useCallback as
|
|
17
|
-
import { jsx as
|
|
17
|
+
import { useCallback as u, useEffect as d, useState as f } from "react";
|
|
18
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
18
19
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js
|
|
19
|
-
var
|
|
20
|
+
var m = /* @__PURE__ */ new Set([
|
|
20
21
|
"ACTIVE",
|
|
21
22
|
"INACTIVE",
|
|
22
23
|
"INVITED"
|
|
23
24
|
]);
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}, [
|
|
29
|
-
let y =
|
|
30
|
-
|
|
31
|
-
}, [
|
|
25
|
+
function h({ content: n, onPrimaryCtaClick: a, labels: s }) {
|
|
26
|
+
let c = t(), { initResponse: h } = r(), g = e(), [_, v] = f(!1);
|
|
27
|
+
d(() => {
|
|
28
|
+
c(i.Mounted);
|
|
29
|
+
}, [c]);
|
|
30
|
+
let y = u(() => {
|
|
31
|
+
c(i.OpenModal), v(!0);
|
|
32
|
+
}, [c]), b = u(() => {
|
|
32
33
|
v(!1);
|
|
33
|
-
}, []), x =
|
|
34
|
-
|
|
35
|
-
}, [a,
|
|
36
|
-
return !h?.status ||
|
|
34
|
+
}, []), x = u(() => {
|
|
35
|
+
c(i.PrimaryCta), v(!1), a();
|
|
36
|
+
}, [a, c]);
|
|
37
|
+
return !h?.status || m.has(h.status) || g.isSuppressed || !g.isResolved ? null : /* @__PURE__ */ p(l, {
|
|
37
38
|
open: _,
|
|
38
39
|
vspLogo: n.vspLogo,
|
|
39
40
|
bankingText: n.bankingText,
|
|
40
41
|
primaryCaption: n.primaryCaption,
|
|
41
42
|
secondaryCaption: n.secondaryCaption,
|
|
42
43
|
providedByCaption: n.providedByCaption,
|
|
43
|
-
modalPrimaryImg: n.modalPrimaryImg,
|
|
44
44
|
primaryModalHeader: n.primaryModalHeader,
|
|
45
|
+
howItWorksHeader: n.howItWorksHeader,
|
|
46
|
+
howItWorksSteps: n.howItWorksSteps,
|
|
47
|
+
fromDayOneHeader: n.fromDayOneHeader,
|
|
45
48
|
benefits: n.benefits,
|
|
46
49
|
appearance: n.appearance,
|
|
47
50
|
onOpenMarketingModal: y,
|
|
@@ -51,6 +54,7 @@ function m({ content: n, onPrimaryCtaClick: a, labels: s }) {
|
|
|
51
54
|
testIds: {
|
|
52
55
|
root: o.root,
|
|
53
56
|
learnMoreButton: o.learnMoreButton,
|
|
57
|
+
applyNowButton: o.applyNowButton,
|
|
54
58
|
modal: {
|
|
55
59
|
root: o.modal,
|
|
56
60
|
primaryCtaButton: o.primaryCtaButton
|
|
@@ -58,8 +62,8 @@ function m({ content: n, onPrimaryCtaClick: a, labels: s }) {
|
|
|
58
62
|
}
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
|
-
function
|
|
62
|
-
return /* @__PURE__ */
|
|
65
|
+
function g({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, providerLabels: g, ..._ }) {
|
|
66
|
+
return /* @__PURE__ */ p(n, {
|
|
63
67
|
widgetName: a,
|
|
64
68
|
baseUrl: e,
|
|
65
69
|
widgetToken: t,
|
|
@@ -71,11 +75,11 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
71
75
|
uiFramework: l,
|
|
72
76
|
errorFallback: u,
|
|
73
77
|
onError: d,
|
|
74
|
-
analytics:
|
|
75
|
-
disclosuresAcceptance:
|
|
78
|
+
analytics: f,
|
|
79
|
+
disclosuresAcceptance: m,
|
|
76
80
|
providerLabels: g,
|
|
77
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ p(h, { ..._ })
|
|
78
82
|
});
|
|
79
83
|
}
|
|
80
84
|
//#endregion
|
|
81
|
-
export { s as MARKETING_WIDGET_LABELS_EN,
|
|
85
|
+
export { s as MARKETING_WIDGET_LABELS_EN, c as MarketingBenefitIcon, g as MarketingWidget };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MARKETING_WIDGET_LABELS_EN as e } from "./index2.js";
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import { MarketingBenefitIcon as t } from "./index3.js";
|
|
3
|
+
import "./index7.js";
|
|
4
|
+
import { MarketingWidget as n } from "./index8.js";
|
|
5
|
+
export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, n as MarketingWidget };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
|
+
applyNow: "Apply now",
|
|
3
4
|
learnMore: "Learn more",
|
|
4
|
-
primaryCta: "
|
|
5
|
+
primaryCta: "Start application",
|
|
6
|
+
primaryCtaSubtext: "takes about 5 minutes",
|
|
5
7
|
dismissModalAriaLabel: "Close marketing modal"
|
|
6
8
|
};
|
|
7
9
|
//#endregion
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { CheckCircle2 as n } from "lucide-react";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"aria-hidden": !0
|
|
12
|
-
}), /* @__PURE__ */ e("p", {
|
|
13
|
-
className: "ttw:text-sm ttw:text-foreground",
|
|
14
|
-
children: r
|
|
15
|
-
})]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
Sync: "sync",
|
|
4
|
+
Users: "users",
|
|
5
|
+
Document: "document",
|
|
6
|
+
Dollar: "dollar",
|
|
7
|
+
Card: "card"
|
|
8
|
+
};
|
|
18
9
|
//#endregion
|
|
19
|
-
export {
|
|
10
|
+
export { e as MarketingBenefitIcon };
|
|
@@ -1,82 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { MarketingBenefitItem as o } from "./index3.js";
|
|
4
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
-
import { ArrowRight as l, X as u } from "lucide-react";
|
|
1
|
+
import { MarketingBenefitIcon as e } from "./index3.js";
|
|
2
|
+
import { CreditCard as t, DollarSign as n, FileText as r, RefreshCw as i, Users as a } from "lucide-react";
|
|
6
3
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onOpenChange: (e) => {
|
|
15
|
-
e || _();
|
|
16
|
-
},
|
|
17
|
-
children: /* @__PURE__ */ c(r, {
|
|
18
|
-
"data-testid": b?.root,
|
|
19
|
-
showCloseButton: !1,
|
|
20
|
-
className: "ttw:max-w-[500px] ttw:gap-0 ttw:p-6",
|
|
21
|
-
style: {
|
|
22
|
-
backgroundColor: g.modalBackgroundColor,
|
|
23
|
-
borderRadius: g.borderRadius
|
|
24
|
-
},
|
|
25
|
-
children: [
|
|
26
|
-
/* @__PURE__ */ s(n, {
|
|
27
|
-
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
|
|
28
|
-
onClick: _,
|
|
29
|
-
"aria-label": x.dismissModalAriaLabel,
|
|
30
|
-
children: /* @__PURE__ */ s(u, {
|
|
31
|
-
className: "ttw:size-5",
|
|
32
|
-
"aria-hidden": !0
|
|
33
|
-
})
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ s(i, {
|
|
36
|
-
className: "ttw:mb-2 ttw:text-center ttw:text-[1.35rem] ttw:font-semibold ttw:leading-tight",
|
|
37
|
-
children: m
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ s("p", {
|
|
40
|
-
className: "ttw:mb-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
41
|
-
children: f
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ s("div", {
|
|
44
|
-
className: "ttw:mb-6 ttw:flex ttw:justify-center",
|
|
45
|
-
children: /* @__PURE__ */ s("img", {
|
|
46
|
-
src: p.src,
|
|
47
|
-
alt: p.alt,
|
|
48
|
-
width: 432,
|
|
49
|
-
height: 200,
|
|
50
|
-
className: "ttw:h-[200px] ttw:w-[60%] ttw:rounded-lg ttw:object-cover"
|
|
51
|
-
})
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ s("div", {
|
|
54
|
-
className: "ttw:mb-6 ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
55
|
-
children: h.map((e) => /* @__PURE__ */ s(o, {
|
|
56
|
-
text: e,
|
|
57
|
-
iconColor: g.primaryColor
|
|
58
|
-
}, e))
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ s("div", {
|
|
61
|
-
className: "ttw:flex ttw:justify-center",
|
|
62
|
-
children: /* @__PURE__ */ c(e, {
|
|
63
|
-
type: "button",
|
|
64
|
-
onClick: v,
|
|
65
|
-
className: "ttw:h-auto ttw:w-[83%] ttw:rounded-xl ttw:py-3 ttw:text-base ttw:font-medium ttw:transition-[filter] ttw:hover:brightness-90",
|
|
66
|
-
style: {
|
|
67
|
-
backgroundColor: g.primaryColor,
|
|
68
|
-
color: g.primaryContrastColor
|
|
69
|
-
},
|
|
70
|
-
"data-testid": b?.primaryCtaButton,
|
|
71
|
-
children: [x.primaryCta, /* @__PURE__ */ s(l, {
|
|
72
|
-
className: "ttw:size-4",
|
|
73
|
-
"aria-hidden": !0
|
|
74
|
-
})]
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
]
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
}
|
|
4
|
+
var o = {
|
|
5
|
+
[e.Sync]: i,
|
|
6
|
+
[e.Users]: a,
|
|
7
|
+
[e.Document]: r,
|
|
8
|
+
[e.Dollar]: n,
|
|
9
|
+
[e.Card]: t
|
|
10
|
+
};
|
|
81
11
|
//#endregion
|
|
82
|
-
export {
|
|
12
|
+
export { o as BENEFIT_ICON_COMPONENTS };
|
|
@@ -1,75 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { MarketingWidgetModal as n } from "./index4.js";
|
|
4
|
-
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
1
|
+
import { BENEFIT_ICON_COMPONENTS as e } from "./index4.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
5
3
|
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js
|
|
6
|
-
function
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ a("div", {
|
|
21
|
-
className: "ttw:mb-2 ttw:flex ttw:items-center ttw:gap-3",
|
|
22
|
-
children: [/* @__PURE__ */ i("img", {
|
|
23
|
-
src: s.src,
|
|
24
|
-
alt: s.alt,
|
|
25
|
-
height: 40,
|
|
26
|
-
width: s.width,
|
|
27
|
-
className: "ttw:h-10 ttw:w-auto ttw:object-contain"
|
|
28
|
-
}), /* @__PURE__ */ i("p", {
|
|
29
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
30
|
-
children: c
|
|
31
|
-
})]
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ i("p", {
|
|
34
|
-
className: "ttw:mb-2 ttw:text-sm ttw:text-muted-foreground",
|
|
35
|
-
children: d
|
|
36
|
-
}),
|
|
37
|
-
/* @__PURE__ */ a("div", {
|
|
38
|
-
className: "ttw:mb-2 ttw:flex ttw:flex-col",
|
|
39
|
-
children: [/* @__PURE__ */ i("p", {
|
|
40
|
-
className: "ttw:text-xl ttw:font-semibold",
|
|
41
|
-
style: { color: h.primaryColor },
|
|
42
|
-
children: l
|
|
43
|
-
}), /* @__PURE__ */ i("p", {
|
|
44
|
-
className: "ttw:leading-snug",
|
|
45
|
-
style: { color: h.primaryColor },
|
|
46
|
-
children: u
|
|
47
|
-
})]
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ i(e, {
|
|
50
|
-
type: "button",
|
|
51
|
-
"data-testid": b?.learnMoreButton,
|
|
52
|
-
onClick: g,
|
|
53
|
-
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light ttw:transition-[filter] ttw:hover:brightness-90",
|
|
54
|
-
style: {
|
|
55
|
-
backgroundColor: h.primaryColor,
|
|
56
|
-
color: h.primaryContrastColor
|
|
57
|
-
},
|
|
58
|
-
children: x.learnMore
|
|
59
|
-
})
|
|
60
|
-
]
|
|
61
|
-
}), /* @__PURE__ */ i(n, {
|
|
62
|
-
open: o,
|
|
63
|
-
providedByCaption: d,
|
|
64
|
-
modalPrimaryImg: f,
|
|
65
|
-
primaryModalHeader: p,
|
|
66
|
-
benefits: m,
|
|
67
|
-
appearance: h,
|
|
68
|
-
onClose: _,
|
|
69
|
-
onPrimaryCtaClick: v,
|
|
70
|
-
labels: y,
|
|
71
|
-
testIds: b?.modal
|
|
72
|
-
})] });
|
|
4
|
+
function r({ text: r, icon: i, iconColor: a }) {
|
|
5
|
+
let o = e[i];
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
className: "ttw:flex ttw:gap-2",
|
|
8
|
+
children: [/* @__PURE__ */ t(o, {
|
|
9
|
+
className: "ttw:mt-0.5 ttw:size-5 ttw:shrink-0",
|
|
10
|
+
style: { color: a },
|
|
11
|
+
"aria-hidden": !0
|
|
12
|
+
}), /* @__PURE__ */ t("p", {
|
|
13
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
14
|
+
children: r
|
|
15
|
+
})]
|
|
16
|
+
});
|
|
73
17
|
}
|
|
74
18
|
//#endregion
|
|
75
|
-
export {
|
|
19
|
+
export { r as MarketingBenefitItem };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js
|
|
3
|
+
function n({ header: n, steps: r, primaryColor: i, primaryContrastColor: a }) {
|
|
4
|
+
return r.length === 0 ? null : /* @__PURE__ */ t("div", {
|
|
5
|
+
className: "ttw:mb-6",
|
|
6
|
+
children: [/* @__PURE__ */ e("p", {
|
|
7
|
+
className: "ttw:mb-3 ttw:text-base ttw:font-semibold",
|
|
8
|
+
style: { color: i },
|
|
9
|
+
children: n
|
|
10
|
+
}), /* @__PURE__ */ e("div", {
|
|
11
|
+
className: "ttw:flex ttw:flex-col",
|
|
12
|
+
children: r.map((n, o) => {
|
|
13
|
+
let s = o === r.length - 1;
|
|
14
|
+
return /* @__PURE__ */ t("div", {
|
|
15
|
+
className: "ttw:flex ttw:gap-3",
|
|
16
|
+
children: [/* @__PURE__ */ t("div", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col ttw:items-center",
|
|
18
|
+
children: [/* @__PURE__ */ e("div", {
|
|
19
|
+
className: "ttw:flex ttw:size-[23px] ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:text-xs ttw:font-semibold",
|
|
20
|
+
style: {
|
|
21
|
+
backgroundColor: i,
|
|
22
|
+
color: a
|
|
23
|
+
},
|
|
24
|
+
children: n.number
|
|
25
|
+
}), s ? null : /* @__PURE__ */ e("div", {
|
|
26
|
+
className: "ttw:w-px ttw:flex-1 ttw:bg-border",
|
|
27
|
+
"aria-hidden": !0
|
|
28
|
+
})]
|
|
29
|
+
}), /* @__PURE__ */ t("div", {
|
|
30
|
+
className: s ? "ttw:pb-1" : "ttw:pb-4",
|
|
31
|
+
children: [/* @__PURE__ */ e("p", {
|
|
32
|
+
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
33
|
+
children: n.title
|
|
34
|
+
}), /* @__PURE__ */ e("p", {
|
|
35
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
36
|
+
children: n.description
|
|
37
|
+
})]
|
|
38
|
+
})]
|
|
39
|
+
}, n.title);
|
|
40
|
+
})
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { n as MarketingWidgetHowItWorks };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Button as e, Dialog as t, DialogClose as n, DialogContent as r, DialogTitle as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MARKETING_WIDGET_LABELS_EN as a } from "./index2.js";
|
|
3
|
+
import { MarketingBenefitItem as o } from "./index5.js";
|
|
4
|
+
import { MarketingWidgetHowItWorks as s } from "./index6.js";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { ArrowRight as u, X as d } from "lucide-react";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js
|
|
8
|
+
function f({ open: f, vspLogo: p, providedByCaption: m, primaryModalHeader: h, howItWorksHeader: g, howItWorksSteps: _, fromDayOneHeader: v, benefits: y, appearance: b, onClose: x, onPrimaryCtaClick: S, labels: C, testIds: w }) {
|
|
9
|
+
let T = {
|
|
10
|
+
...a,
|
|
11
|
+
...C
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ c(t, {
|
|
14
|
+
open: f,
|
|
15
|
+
onOpenChange: (e) => {
|
|
16
|
+
e || x();
|
|
17
|
+
},
|
|
18
|
+
children: /* @__PURE__ */ l(r, {
|
|
19
|
+
"data-testid": w?.root,
|
|
20
|
+
showCloseButton: !1,
|
|
21
|
+
className: "ttw:max-h-[90vh] ttw:max-w-[500px] ttw:gap-0 ttw:overflow-y-auto ttw:p-6",
|
|
22
|
+
style: {
|
|
23
|
+
backgroundColor: b.modalBackgroundColor,
|
|
24
|
+
borderRadius: b.borderRadius
|
|
25
|
+
},
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ c(n, {
|
|
28
|
+
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
|
|
29
|
+
onClick: x,
|
|
30
|
+
"aria-label": T.dismissModalAriaLabel,
|
|
31
|
+
children: /* @__PURE__ */ c(d, {
|
|
32
|
+
className: "ttw:size-5",
|
|
33
|
+
"aria-hidden": !0
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ l("div", {
|
|
37
|
+
className: "ttw:mb-6 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-3",
|
|
38
|
+
children: [/* @__PURE__ */ c("img", {
|
|
39
|
+
src: p.src,
|
|
40
|
+
alt: p.alt,
|
|
41
|
+
height: 40,
|
|
42
|
+
width: p.width,
|
|
43
|
+
className: "ttw:h-10 ttw:w-auto ttw:max-w-[120px] ttw:object-contain"
|
|
44
|
+
}), /* @__PURE__ */ l("div", {
|
|
45
|
+
className: "ttw:min-w-0",
|
|
46
|
+
children: [/* @__PURE__ */ c(i, {
|
|
47
|
+
className: "ttw:text-lg ttw:font-semibold ttw:leading-tight",
|
|
48
|
+
children: h
|
|
49
|
+
}), /* @__PURE__ */ c("p", {
|
|
50
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
51
|
+
children: m
|
|
52
|
+
})]
|
|
53
|
+
})]
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ c(s, {
|
|
56
|
+
header: g,
|
|
57
|
+
steps: _,
|
|
58
|
+
primaryColor: b.primaryColor,
|
|
59
|
+
primaryContrastColor: b.primaryContrastColor
|
|
60
|
+
}),
|
|
61
|
+
y.length === 0 ? null : /* @__PURE__ */ l("div", {
|
|
62
|
+
className: "ttw:mb-6 ttw:rounded-lg ttw:bg-muted ttw:p-[18px]",
|
|
63
|
+
children: [/* @__PURE__ */ c("p", {
|
|
64
|
+
className: "ttw:mb-3 ttw:text-xs ttw:font-semibold ttw:uppercase ttw:tracking-wide ttw:text-muted-foreground",
|
|
65
|
+
children: v
|
|
66
|
+
}), /* @__PURE__ */ c("div", {
|
|
67
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
68
|
+
children: y.map((e) => /* @__PURE__ */ c(o, {
|
|
69
|
+
text: e.text,
|
|
70
|
+
icon: e.icon,
|
|
71
|
+
iconColor: b.primaryColor
|
|
72
|
+
}, e.text))
|
|
73
|
+
})]
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ c("div", {
|
|
76
|
+
className: "ttw:flex ttw:justify-center",
|
|
77
|
+
children: /* @__PURE__ */ c(e, {
|
|
78
|
+
type: "button",
|
|
79
|
+
onClick: S,
|
|
80
|
+
className: "ttw:h-auto ttw:w-full ttw:justify-center ttw:rounded-xl ttw:py-3 ttw:text-base ttw:transition-[filter] ttw:hover:brightness-90",
|
|
81
|
+
style: {
|
|
82
|
+
backgroundColor: b.primaryColor,
|
|
83
|
+
color: b.primaryContrastColor
|
|
84
|
+
},
|
|
85
|
+
"data-testid": w?.primaryCtaButton,
|
|
86
|
+
children: /* @__PURE__ */ l("span", {
|
|
87
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-center ttw:gap-x-2 ttw:whitespace-normal",
|
|
88
|
+
children: [/* @__PURE__ */ l("span", {
|
|
89
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
90
|
+
children: [/* @__PURE__ */ c("span", {
|
|
91
|
+
className: "ttw:font-semibold",
|
|
92
|
+
children: T.primaryCta
|
|
93
|
+
}), /* @__PURE__ */ c(u, {
|
|
94
|
+
className: "ttw:size-4",
|
|
95
|
+
"aria-hidden": !0
|
|
96
|
+
})]
|
|
97
|
+
}), /* @__PURE__ */ c("span", {
|
|
98
|
+
className: "ttw:text-sm ttw:font-normal ttw:opacity-90",
|
|
99
|
+
children: T.primaryCtaSubtext
|
|
100
|
+
})]
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { f as MarketingWidgetModal };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MARKETING_WIDGET_LABELS_EN as t } from "./index2.js";
|
|
3
|
+
import { MarketingWidgetModal as n } from "./index7.js";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js
|
|
6
|
+
function o({ open: o, vspLogo: s, bankingText: c, primaryCaption: l, secondaryCaption: u, providedByCaption: d, primaryModalHeader: f, howItWorksHeader: p, howItWorksSteps: m, fromDayOneHeader: h, benefits: g, appearance: _, onOpenMarketingModal: v, onCloseMarketingModal: y, onPrimaryCtaClick: b, labels: x, testIds: S }) {
|
|
7
|
+
let C = {
|
|
8
|
+
...t,
|
|
9
|
+
...x
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
12
|
+
"data-testid": S?.root,
|
|
13
|
+
className: "ttw:relative ttw:flex ttw:w-full ttw:flex-col ttw:items-start ttw:overflow-hidden ttw:border ttw:border-border ttw:p-6",
|
|
14
|
+
style: {
|
|
15
|
+
backgroundColor: _.cardBackgroundColor,
|
|
16
|
+
borderRadius: _.borderRadius,
|
|
17
|
+
boxShadow: _.boxShadow
|
|
18
|
+
},
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ a("div", {
|
|
21
|
+
className: "ttw:mb-2 ttw:flex ttw:items-center ttw:gap-3",
|
|
22
|
+
children: [/* @__PURE__ */ i("img", {
|
|
23
|
+
src: s.src,
|
|
24
|
+
alt: s.alt,
|
|
25
|
+
height: 40,
|
|
26
|
+
width: s.width,
|
|
27
|
+
className: "ttw:h-10 ttw:w-auto ttw:object-contain"
|
|
28
|
+
}), /* @__PURE__ */ i("p", {
|
|
29
|
+
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
30
|
+
children: c
|
|
31
|
+
})]
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ i("p", {
|
|
34
|
+
className: "ttw:mb-2 ttw:text-sm ttw:text-muted-foreground",
|
|
35
|
+
children: d
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ a("div", {
|
|
38
|
+
className: "ttw:mb-2 ttw:flex ttw:flex-col",
|
|
39
|
+
children: [/* @__PURE__ */ i("p", {
|
|
40
|
+
className: "ttw:text-xl ttw:font-semibold",
|
|
41
|
+
style: { color: _.primaryColor },
|
|
42
|
+
children: l
|
|
43
|
+
}), /* @__PURE__ */ i("p", {
|
|
44
|
+
className: "ttw:leading-snug",
|
|
45
|
+
style: { color: _.primaryColor },
|
|
46
|
+
children: u
|
|
47
|
+
})]
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ a("div", {
|
|
50
|
+
className: "ttw:flex ttw:flex-wrap ttw:gap-3",
|
|
51
|
+
children: [/* @__PURE__ */ i(e, {
|
|
52
|
+
type: "button",
|
|
53
|
+
"data-testid": S?.applyNowButton,
|
|
54
|
+
onClick: b,
|
|
55
|
+
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light ttw:transition-[filter] ttw:hover:brightness-90",
|
|
56
|
+
style: {
|
|
57
|
+
backgroundColor: _.primaryColor,
|
|
58
|
+
color: _.primaryContrastColor
|
|
59
|
+
},
|
|
60
|
+
children: C.applyNow
|
|
61
|
+
}), /* @__PURE__ */ i(e, {
|
|
62
|
+
type: "button",
|
|
63
|
+
variant: "outline",
|
|
64
|
+
"data-testid": S?.learnMoreButton,
|
|
65
|
+
onClick: v,
|
|
66
|
+
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light",
|
|
67
|
+
children: C.learnMore
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}), /* @__PURE__ */ i(n, {
|
|
72
|
+
open: o,
|
|
73
|
+
vspLogo: s,
|
|
74
|
+
providedByCaption: d,
|
|
75
|
+
primaryModalHeader: f,
|
|
76
|
+
howItWorksHeader: p,
|
|
77
|
+
howItWorksSteps: m,
|
|
78
|
+
fromDayOneHeader: h,
|
|
79
|
+
benefits: g,
|
|
80
|
+
appearance: _,
|
|
81
|
+
onClose: y,
|
|
82
|
+
onPrimaryCtaClick: b,
|
|
83
|
+
labels: x,
|
|
84
|
+
testIds: S?.modal
|
|
85
|
+
})] });
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { o as MarketingWidget };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.119", n = "4a33fd88d59a0e734e811935e0cf9747de783d05", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -33,15 +33,9 @@ function l(e, t, n, r) {
|
|
|
33
33
|
};
|
|
34
34
|
case "payable_updated": return { title: t.billDetailsUpdated };
|
|
35
35
|
case "submitted_for_approval": return { title: t.submittedForReview };
|
|
36
|
-
case "approval_requested": return {
|
|
37
|
-
title: t.approvalRequested,
|
|
38
|
-
meta: i(l.approval_policy_name)
|
|
39
|
-
};
|
|
36
|
+
case "approval_requested": return { title: t.approvalRequested };
|
|
40
37
|
case "approval_action": return c(l, t);
|
|
41
|
-
case "auto_approved": return {
|
|
42
|
-
title: t.approvedAutomatically,
|
|
43
|
-
meta: i(l.approval_policy_name)
|
|
44
|
-
};
|
|
38
|
+
case "auto_approved": return { title: t.approvedAutomatically };
|
|
45
39
|
case "status_changed": return l.new_status === "canceled" ? { title: t.cancelled } : void 0;
|
|
46
40
|
case "reopened": return { title: t.reopened };
|
|
47
41
|
case "marked_as_paid": return {
|