@tesouro/embedded-components-react 0.7.34 → 0.7.35
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 +10 -8
- package/dist/index.d.ts +31 -31
- package/dist/index.js +5 -5
- package/dist/lib/{MarketingWidget.d.ts → OfferWidget.d.ts} +31 -31
- package/dist/lib/OfferWidget.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/index.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget/feature/dist/lib/MarketingWidget/MarketingWidget.js → offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js} +11 -11
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget/feature/dist/lib/MarketingWidget → offer-widget/feature/dist/lib/OfferWidget}/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget/feature/dist/lib/MarketingWidget/marketingApplicationView.js → offer-widget/feature/dist/lib/OfferWidget/offerApplicationView.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/analytics/events.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/feature/dist/lib/testIds.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/feature/dist/mocks/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget/feature/dist/mocks/marketing.js → offer-widget/feature/dist/mocks/offer.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/ui/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/ui/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/ui/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/ui/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/ui/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{marketing-widget → offer-widget}/ui/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js +2 -2
- package/dist/scenarios/index.d.ts +2 -2
- package/dist/scenarios/index.js +3 -3
- package/package.json +1 -1
- package/dist/lib/MarketingWidget.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/lib/analytics/events.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/scenarios.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +0 -10
package/README.md
CHANGED
|
@@ -444,18 +444,20 @@ Walks an applicant through bank-account onboarding: business details, personal d
|
|
|
444
444
|
| `showApplicationStatusRefresh` | `boolean` | `false` | Adds a **Check again** button to the application status card that re-reads the organization's application. Never shown over the form or result screens. |
|
|
445
445
|
| `onResultPhaseChange` | `(isInResultPhase: boolean) => void` | `undefined` | Called with `true` once the widget starts processing a submitted application, and with `false` if it unmounts after that. While `true` it keeps its processing or result screen up whatever the status read says, so leave it mounted. |
|
|
446
446
|
|
|
447
|
-
###
|
|
447
|
+
### OfferWidget
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
An offer card and modal that invites the user to apply for a product (today, a bank account) and then shows where their application stands.
|
|
450
|
+
|
|
451
|
+
The card and its "Learn more" modal present your product copy (logo, captions, "How it works" steps, benefits). Its Apply now and modal CTAs call `onPrimaryCtaClick`, which you typically wire to open `BankAccountOnboardingWidget`. Once an application exists, the card swaps its CTAs for the application's status (see Behaviour), and it hides itself when the user already has an account.
|
|
450
452
|
|
|
451
453
|
#### Props
|
|
452
454
|
|
|
453
|
-
| Prop | Type
|
|
454
|
-
| ------------------- |
|
|
455
|
-
| `content` | `
|
|
456
|
-
| `onPrimaryCtaClick` | `() => void`
|
|
457
|
-
| `labels` | `PartialDeep<
|
|
458
|
-
| `statusLabels` | `PartialDeep<
|
|
455
|
+
| Prop | Type | Default | Description |
|
|
456
|
+
| ------------------- | -------------------------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
|
457
|
+
| `content` | `OfferWidgetContent` | **Required** | Host-resolved card and modal copy, images, "How it works" steps, and benefits. |
|
|
458
|
+
| `onPrimaryCtaClick` | `() => void` | **Required** | Called when the applicant clicks Apply now on the card or the modal CTA (default label: Start application). Closes the modal first. |
|
|
459
|
+
| `labels` | `PartialDeep<OfferWidgetLabels>` | English labels | Override the card and modal copy. See the exported `OfferWidgetLabels` type for every key. |
|
|
460
|
+
| `statusLabels` | `PartialDeep<OfferWidgetStatusLabels>` | English labels | Override the Resume application label and each status message. Heading and body are functions of `{ bankName }`. |
|
|
459
461
|
|
|
460
462
|
### ProductsWidget
|
|
461
463
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4811,7 +4811,7 @@ type CustomersWidgetProps = WidgetProviderProps & CustomersWidgetOwnProps;
|
|
|
4811
4811
|
*/
|
|
4812
4812
|
declare function CustomersWidget({ pageSizeOptions, onViewAllDocuments, onCreateDocument, screenLabels, formLabels, detailsLabels, addressLabels, deleteLabels, messageLabels, ...widgetProviderProps }: CustomersWidgetProps): React.JSX.Element;
|
|
4813
4813
|
|
|
4814
|
-
interface
|
|
4814
|
+
interface OfferWidgetLabels {
|
|
4815
4815
|
applyNow: string;
|
|
4816
4816
|
learnMore: string;
|
|
4817
4817
|
primaryCta: string;
|
|
@@ -4819,33 +4819,33 @@ interface MarketingWidgetLabels {
|
|
|
4819
4819
|
primaryCtaSubtext: string;
|
|
4820
4820
|
dismissModalAriaLabel: string;
|
|
4821
4821
|
}
|
|
4822
|
-
declare const
|
|
4822
|
+
declare const OFFER_WIDGET_LABELS_EN: OfferWidgetLabels;
|
|
4823
4823
|
|
|
4824
|
-
interface
|
|
4824
|
+
interface OfferWidgetImage {
|
|
4825
4825
|
src: string;
|
|
4826
4826
|
alt: string;
|
|
4827
4827
|
width?: number;
|
|
4828
4828
|
}
|
|
4829
|
-
declare const
|
|
4829
|
+
declare const OfferBenefitIcon: {
|
|
4830
4830
|
readonly Sync: "sync";
|
|
4831
4831
|
readonly Users: "users";
|
|
4832
4832
|
readonly Document: "document";
|
|
4833
4833
|
readonly Dollar: "dollar";
|
|
4834
4834
|
readonly Card: "card";
|
|
4835
4835
|
};
|
|
4836
|
-
type
|
|
4837
|
-
interface
|
|
4836
|
+
type OfferBenefitIcon = (typeof OfferBenefitIcon)[keyof typeof OfferBenefitIcon];
|
|
4837
|
+
interface OfferWidgetBenefit {
|
|
4838
4838
|
text: string;
|
|
4839
|
-
icon:
|
|
4839
|
+
icon: OfferBenefitIcon;
|
|
4840
4840
|
}
|
|
4841
|
-
interface
|
|
4841
|
+
interface OfferWidgetHowItWorksStep {
|
|
4842
4842
|
/** Caller-supplied step badge text, e.g. "1" — the component never derives this from position. */
|
|
4843
4843
|
number: string;
|
|
4844
4844
|
title: string;
|
|
4845
4845
|
description: string;
|
|
4846
4846
|
}
|
|
4847
|
-
interface
|
|
4848
|
-
vspLogo:
|
|
4847
|
+
interface OfferWidgetContent {
|
|
4848
|
+
vspLogo: OfferWidgetImage;
|
|
4849
4849
|
bankingText: string;
|
|
4850
4850
|
primaryCaption: string;
|
|
4851
4851
|
secondaryCaption: string;
|
|
@@ -4856,10 +4856,10 @@ interface MarketingWidgetContent {
|
|
|
4856
4856
|
howItWorksHeader: string;
|
|
4857
4857
|
/** Numbered steps shown in the modal. A VSP may supply any number of steps;
|
|
4858
4858
|
* the section is omitted entirely when the array is empty. */
|
|
4859
|
-
howItWorksSteps:
|
|
4859
|
+
howItWorksSteps: OfferWidgetHowItWorksStep[];
|
|
4860
4860
|
/** Section heading above the benefits grid, e.g. "FROM DAY ONE". */
|
|
4861
4861
|
fromDayOneHeader: string;
|
|
4862
|
-
benefits:
|
|
4862
|
+
benefits: OfferWidgetBenefit[];
|
|
4863
4863
|
}
|
|
4864
4864
|
|
|
4865
4865
|
/**
|
|
@@ -4873,7 +4873,7 @@ interface MarketingWidgetContent {
|
|
|
4873
4873
|
* copy for the applicant's own application says "your email" instead of the
|
|
4874
4874
|
* spec's "[applicant email]".
|
|
4875
4875
|
*/
|
|
4876
|
-
interface
|
|
4876
|
+
interface OfferStatusLabelValues {
|
|
4877
4877
|
bankName: string;
|
|
4878
4878
|
/** The applicant's full name, for either ownership. */
|
|
4879
4879
|
applicantName?: string;
|
|
@@ -4888,13 +4888,13 @@ interface MarketingStatusLabelValues {
|
|
|
4888
4888
|
* Copy for one application state: the status chip, an optional brand-colored
|
|
4889
4889
|
* heading, and the lines under it.
|
|
4890
4890
|
*/
|
|
4891
|
-
interface
|
|
4891
|
+
interface OfferStatusNoticeLabels {
|
|
4892
4892
|
chipLabel: string;
|
|
4893
4893
|
/** Omit for a state whose mock has no heading (the denied states). */
|
|
4894
|
-
heading?: (values:
|
|
4895
|
-
body: (values:
|
|
4894
|
+
heading?: (values: OfferStatusLabelValues) => string;
|
|
4895
|
+
body: (values: OfferStatusLabelValues) => string[];
|
|
4896
4896
|
}
|
|
4897
|
-
interface
|
|
4897
|
+
interface OfferWidgetStatusLabels {
|
|
4898
4898
|
/** Replaces the Apply CTA (card and modal) while the caller's own application is a draft. */
|
|
4899
4899
|
resumeApplication: string;
|
|
4900
4900
|
/** Stands in for the bank's name when widget init does not carry one. */
|
|
@@ -4905,24 +4905,24 @@ interface MarketingWidgetStatusLabels {
|
|
|
4905
4905
|
* hardcoded formatter, so a host can localize it with the copy.
|
|
4906
4906
|
*/
|
|
4907
4907
|
formatDate: (isoDateTime: string) => string;
|
|
4908
|
-
draftStartedByOther:
|
|
4909
|
-
submittedByYou:
|
|
4910
|
-
submittedByOther:
|
|
4911
|
-
deniedByYou:
|
|
4912
|
-
deniedByOther:
|
|
4908
|
+
draftStartedByOther: OfferStatusNoticeLabels;
|
|
4909
|
+
submittedByYou: OfferStatusNoticeLabels;
|
|
4910
|
+
submittedByOther: OfferStatusNoticeLabels;
|
|
4911
|
+
deniedByYou: OfferStatusNoticeLabels;
|
|
4912
|
+
deniedByOther: OfferStatusNoticeLabels;
|
|
4913
4913
|
}
|
|
4914
|
-
declare const
|
|
4914
|
+
declare const OFFER_WIDGET_STATUS_LABELS_EN: OfferWidgetStatusLabels;
|
|
4915
4915
|
|
|
4916
4916
|
type InnerProps = {
|
|
4917
|
-
content:
|
|
4917
|
+
content: OfferWidgetContent;
|
|
4918
4918
|
onPrimaryCtaClick: () => void;
|
|
4919
|
-
labels?: PartialDeep<
|
|
4919
|
+
labels?: PartialDeep<OfferWidgetLabels>;
|
|
4920
4920
|
/** Overrides for the copy shown when the organization already has an application. */
|
|
4921
|
-
statusLabels?: PartialDeep<
|
|
4921
|
+
statusLabels?: PartialDeep<OfferWidgetStatusLabels>;
|
|
4922
4922
|
};
|
|
4923
|
-
type
|
|
4923
|
+
type OfferWidgetProps = WidgetProviderProps & InnerProps;
|
|
4924
4924
|
/**
|
|
4925
|
-
* Self-contained
|
|
4925
|
+
* Self-contained offer card + modal. Hosts supply tenant-specific
|
|
4926
4926
|
* `content` (logos, copy, colors) and wire `onPrimaryCtaClick` to whatever
|
|
4927
4927
|
* should happen next — typically opening bank-account onboarding.
|
|
4928
4928
|
*
|
|
@@ -4938,7 +4938,7 @@ type MarketingWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
4938
4938
|
* normal offer. A `DENIED` message hides itself 30 days after the denial, and
|
|
4939
4939
|
* a status this widget does not know hides the card.
|
|
4940
4940
|
*/
|
|
4941
|
-
declare function
|
|
4941
|
+
declare function OfferWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: OfferWidgetProps): React.JSX.Element;
|
|
4942
4942
|
|
|
4943
4943
|
interface ProductFormSheetLabels {
|
|
4944
4944
|
createTitle: string;
|
|
@@ -6013,5 +6013,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
6013
6013
|
|
|
6014
6014
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6015
6015
|
|
|
6016
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, LinkedAccountsWidget,
|
|
6017
|
-
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, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps,
|
|
6016
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, 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, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
6017
|
+
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, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, 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, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableBankAttribution, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, 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
|
@@ -44,10 +44,10 @@ import { BankAccountOnboardingWidget as ee } from "./libs/tesouro-embedded-compo
|
|
|
44
44
|
import { WidgetSuite as te } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
|
|
45
45
|
import { CounterpartsWidget as ne } from "./lib/CounterpartsWidgetPublic.js";
|
|
46
46
|
import { CustomersWidget as re } from "./libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
47
|
+
import { OFFER_WIDGET_STATUS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
|
|
48
|
+
import { OFFER_WIDGET_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
|
|
49
|
+
import { OfferBenefitIcon as oe } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
|
|
50
|
+
import { OfferWidget as se } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
|
|
51
51
|
import { ProductsWidget as ce } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
|
|
52
52
|
import { WidgetProvider as le } from "./lib/WidgetProviderPublic.js";
|
|
53
|
-
export { q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Y as ADDITIONAL_OWNERS_LABELS_EN, $ as APPLICATION_STATUS_LABELS_EN, J as AcceptDisclosuresWidget, M as BALANCES_WIDGET_LABELS_EN, X as BUSINESS_DETAILS_LABELS_EN, N as BalancesWidget, ee as BankAccountOnboardingWidget, D as BankAccountsWidget, O as BillPayWidget, k as CardDetailsWidget, ne as CounterpartsWidget, A as CreditCardsWidget, re as CustomersWidget, j as DebitCardsWidget, l as ERROR_STATE_ID, R as ExpenseManagementWidget, V as HELP_FAQ_EN, P as INSIGHTS_FEATURE_LABELS_EN, F as INSIGHTS_WIDGET_LABELS_EN, u as Implementation, L as InsightsWidget, U as LinkedAccountsWidget, ae as
|
|
53
|
+
export { q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Y as ADDITIONAL_OWNERS_LABELS_EN, $ as APPLICATION_STATUS_LABELS_EN, J as AcceptDisclosuresWidget, M as BALANCES_WIDGET_LABELS_EN, X as BUSINESS_DETAILS_LABELS_EN, N as BalancesWidget, ee as BankAccountOnboardingWidget, D as BankAccountsWidget, O as BillPayWidget, k as CardDetailsWidget, ne as CounterpartsWidget, A as CreditCardsWidget, re as CustomersWidget, j as DebitCardsWidget, l as ERROR_STATE_ID, R as ExpenseManagementWidget, V as HELP_FAQ_EN, P as INSIGHTS_FEATURE_LABELS_EN, F as INSIGHTS_WIDGET_LABELS_EN, u as Implementation, L as InsightsWidget, U as LinkedAccountsWidget, ae as OFFER_WIDGET_LABELS_EN, ie as OFFER_WIDGET_STATUS_LABELS_EN, oe as OfferBenefitIcon, se as OfferWidget, Z as PERSONAL_DETAILS_LABELS_EN, ce as ProductsWidget, Q as RESULT_LABELS_EN, z as ReceivablesWidget, y as RefreshingRootWidgetProvider, g as RootWidgetProvider, I as SINGLE_INSIGHT_LABELS_EN, i as Scope, B as SettingsSection, H as SettingsWidget, W as TRANSFERS_FEATURE_LABELS_EN, G as TRANSFERS_WIDGET_LABELS_EN, K as TransfersWidget, o as UIFramework, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, le as WidgetProvider, te as WidgetSuite, n as WidgetSuiteSectionId, _ as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, d as getGlobalWidgetConfig, m as getGlobalWidgetInitState, a as isScope, s as registerDesignSystemEnsurer, c as registerUIRenderers, f as setGlobalWidgetConfig, h as subscribeToGlobalWidgetInitState, p as updateGlobalWidgetConfig, b as useDisclosuresAcceptanceSurface, x as useOwnWidgetConfig, S as useRefetchWidget, C as useWidgetConfig, w as useWidgetError, T as useWidgetInitStaleForToken, E as useWidgetLoading, v as useWidgetToken };
|
|
@@ -3,7 +3,7 @@ import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react
|
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
interface OfferWidgetLabels {
|
|
7
7
|
applyNow: string;
|
|
8
8
|
learnMore: string;
|
|
9
9
|
primaryCta: string;
|
|
@@ -11,33 +11,33 @@ interface MarketingWidgetLabels {
|
|
|
11
11
|
primaryCtaSubtext: string;
|
|
12
12
|
dismissModalAriaLabel: string;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
14
|
+
declare const OFFER_WIDGET_LABELS_EN: OfferWidgetLabels;
|
|
15
15
|
|
|
16
|
-
interface
|
|
16
|
+
interface OfferWidgetImage {
|
|
17
17
|
src: string;
|
|
18
18
|
alt: string;
|
|
19
19
|
width?: number;
|
|
20
20
|
}
|
|
21
|
-
declare const
|
|
21
|
+
declare const OfferBenefitIcon: {
|
|
22
22
|
readonly Sync: "sync";
|
|
23
23
|
readonly Users: "users";
|
|
24
24
|
readonly Document: "document";
|
|
25
25
|
readonly Dollar: "dollar";
|
|
26
26
|
readonly Card: "card";
|
|
27
27
|
};
|
|
28
|
-
type
|
|
29
|
-
interface
|
|
28
|
+
type OfferBenefitIcon = (typeof OfferBenefitIcon)[keyof typeof OfferBenefitIcon];
|
|
29
|
+
interface OfferWidgetBenefit {
|
|
30
30
|
text: string;
|
|
31
|
-
icon:
|
|
31
|
+
icon: OfferBenefitIcon;
|
|
32
32
|
}
|
|
33
|
-
interface
|
|
33
|
+
interface OfferWidgetHowItWorksStep {
|
|
34
34
|
/** Caller-supplied step badge text, e.g. "1" — the component never derives this from position. */
|
|
35
35
|
number: string;
|
|
36
36
|
title: string;
|
|
37
37
|
description: string;
|
|
38
38
|
}
|
|
39
|
-
interface
|
|
40
|
-
vspLogo:
|
|
39
|
+
interface OfferWidgetContent {
|
|
40
|
+
vspLogo: OfferWidgetImage;
|
|
41
41
|
bankingText: string;
|
|
42
42
|
primaryCaption: string;
|
|
43
43
|
secondaryCaption: string;
|
|
@@ -48,10 +48,10 @@ interface MarketingWidgetContent {
|
|
|
48
48
|
howItWorksHeader: string;
|
|
49
49
|
/** Numbered steps shown in the modal. A VSP may supply any number of steps;
|
|
50
50
|
* the section is omitted entirely when the array is empty. */
|
|
51
|
-
howItWorksSteps:
|
|
51
|
+
howItWorksSteps: OfferWidgetHowItWorksStep[];
|
|
52
52
|
/** Section heading above the benefits grid, e.g. "FROM DAY ONE". */
|
|
53
53
|
fromDayOneHeader: string;
|
|
54
|
-
benefits:
|
|
54
|
+
benefits: OfferWidgetBenefit[];
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
type AuthToken = string | undefined;
|
|
@@ -690,7 +690,7 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
690
690
|
* copy for the applicant's own application says "your email" instead of the
|
|
691
691
|
* spec's "[applicant email]".
|
|
692
692
|
*/
|
|
693
|
-
interface
|
|
693
|
+
interface OfferStatusLabelValues {
|
|
694
694
|
bankName: string;
|
|
695
695
|
/** The applicant's full name, for either ownership. */
|
|
696
696
|
applicantName?: string;
|
|
@@ -705,13 +705,13 @@ interface MarketingStatusLabelValues {
|
|
|
705
705
|
* Copy for one application state: the status chip, an optional brand-colored
|
|
706
706
|
* heading, and the lines under it.
|
|
707
707
|
*/
|
|
708
|
-
interface
|
|
708
|
+
interface OfferStatusNoticeLabels {
|
|
709
709
|
chipLabel: string;
|
|
710
710
|
/** Omit for a state whose mock has no heading (the denied states). */
|
|
711
|
-
heading?: (values:
|
|
712
|
-
body: (values:
|
|
711
|
+
heading?: (values: OfferStatusLabelValues) => string;
|
|
712
|
+
body: (values: OfferStatusLabelValues) => string[];
|
|
713
713
|
}
|
|
714
|
-
interface
|
|
714
|
+
interface OfferWidgetStatusLabels {
|
|
715
715
|
/** Replaces the Apply CTA (card and modal) while the caller's own application is a draft. */
|
|
716
716
|
resumeApplication: string;
|
|
717
717
|
/** Stands in for the bank's name when widget init does not carry one. */
|
|
@@ -722,24 +722,24 @@ interface MarketingWidgetStatusLabels {
|
|
|
722
722
|
* hardcoded formatter, so a host can localize it with the copy.
|
|
723
723
|
*/
|
|
724
724
|
formatDate: (isoDateTime: string) => string;
|
|
725
|
-
draftStartedByOther:
|
|
726
|
-
submittedByYou:
|
|
727
|
-
submittedByOther:
|
|
728
|
-
deniedByYou:
|
|
729
|
-
deniedByOther:
|
|
725
|
+
draftStartedByOther: OfferStatusNoticeLabels;
|
|
726
|
+
submittedByYou: OfferStatusNoticeLabels;
|
|
727
|
+
submittedByOther: OfferStatusNoticeLabels;
|
|
728
|
+
deniedByYou: OfferStatusNoticeLabels;
|
|
729
|
+
deniedByOther: OfferStatusNoticeLabels;
|
|
730
730
|
}
|
|
731
|
-
declare const
|
|
731
|
+
declare const OFFER_WIDGET_STATUS_LABELS_EN: OfferWidgetStatusLabels;
|
|
732
732
|
|
|
733
733
|
type InnerProps = {
|
|
734
|
-
content:
|
|
734
|
+
content: OfferWidgetContent;
|
|
735
735
|
onPrimaryCtaClick: () => void;
|
|
736
|
-
labels?: PartialDeep<
|
|
736
|
+
labels?: PartialDeep<OfferWidgetLabels>;
|
|
737
737
|
/** Overrides for the copy shown when the organization already has an application. */
|
|
738
|
-
statusLabels?: PartialDeep<
|
|
738
|
+
statusLabels?: PartialDeep<OfferWidgetStatusLabels>;
|
|
739
739
|
};
|
|
740
|
-
type
|
|
740
|
+
type OfferWidgetProps = WidgetProviderProps & InnerProps;
|
|
741
741
|
/**
|
|
742
|
-
* Self-contained
|
|
742
|
+
* Self-contained offer card + modal. Hosts supply tenant-specific
|
|
743
743
|
* `content` (logos, copy, colors) and wire `onPrimaryCtaClick` to whatever
|
|
744
744
|
* should happen next — typically opening bank-account onboarding.
|
|
745
745
|
*
|
|
@@ -755,7 +755,7 @@ type MarketingWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
755
755
|
* normal offer. A `DENIED` message hides itself 30 days after the denial, and
|
|
756
756
|
* a status this widget does not know hides the card.
|
|
757
757
|
*/
|
|
758
|
-
declare function
|
|
758
|
+
declare function OfferWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: OfferWidgetProps): React.JSX.Element;
|
|
759
759
|
|
|
760
|
-
export {
|
|
761
|
-
export type {
|
|
760
|
+
export { OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget };
|
|
761
|
+
export type { OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OFFER_WIDGET_STATUS_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
|
|
2
|
+
import { OFFER_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
|
|
3
|
+
import { OfferBenefitIcon as n } from "../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
|
|
4
|
+
import { OfferWidget as r } from "../libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
|
|
5
|
+
import "../libs/tesouro-embedded-components-react/offer-widget/feature/dist/index.js";
|
|
6
|
+
export { t as OFFER_WIDGET_LABELS_EN, e as OFFER_WIDGET_STATUS_LABELS_EN, n as OfferBenefitIcon, r as OfferWidget };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OFFER_WIDGET_STATUS_LABELS_EN as e } from "./lib/OfferWidget/labels.js";
|
|
2
|
+
import { OFFER_WIDGET_LABELS_EN as t } from "../../ui/dist/index2.js";
|
|
3
|
+
import { OfferBenefitIcon as n } from "../../ui/dist/index3.js";
|
|
4
|
+
import { OfferWidget as r } from "./lib/OfferWidget/OfferWidget.js";
|
|
5
|
+
export { t as OFFER_WIDGET_LABELS_EN, e as OFFER_WIDGET_STATUS_LABELS_EN, n as OfferBenefitIcon, r as OfferWidget };
|
|
@@ -9,17 +9,17 @@ import { WidgetProvider as n } from "../../../../../shared/feature/dist/lib/Widg
|
|
|
9
9
|
import { useWidgetConfig as r, useWidgetInitStaleForToken as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import { deniedNoticeExpiresAt as a, selectBankAccountApplication as o } from "../../../../../shared/feature/dist/lib/application/bankAccountApplication.js";
|
|
11
11
|
import "../../../../../shared/feature/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
12
|
+
import { OFFER_WIDGET_STATUS_LABELS_EN as s } from "./labels.js";
|
|
13
|
+
import { OfferWidgetAnalyticsEvent as c, WIDGET_NAME as l } from "../analytics/events.js";
|
|
14
|
+
import { offerWidgetTestIds as u } from "../testIds.js";
|
|
15
|
+
import { OfferApplicationView as d, offerApplicationViewFor as f } from "./offerApplicationView.js";
|
|
16
|
+
import { OFFER_WIDGET_LABELS_EN as p } from "../../../../ui/dist/index2.js";
|
|
17
|
+
import { OfferBenefitIcon as m, OfferWidgetStatusTone as h } from "../../../../ui/dist/index3.js";
|
|
18
|
+
import { OfferWidget as g } from "../../../../ui/dist/index9.js";
|
|
19
19
|
import "../../../../ui/dist/index.js";
|
|
20
20
|
import { useCallback as _, useEffect as v, useMemo as y, useReducer as b, useState as x } from "react";
|
|
21
21
|
import { jsx as S } from "react/jsx-runtime";
|
|
22
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
22
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js
|
|
23
23
|
var C = 2 ** 31 - 1, w = /* @__PURE__ */ new Set([
|
|
24
24
|
"ACTIVE",
|
|
25
25
|
"INACTIVE",
|
|
@@ -120,8 +120,8 @@ function A({ content: n, onPrimaryCtaClick: s, labels: l, statusLabels: p }) {
|
|
|
120
120
|
howItWorksSteps: n.howItWorksSteps,
|
|
121
121
|
fromDayOneHeader: n.fromDayOneHeader,
|
|
122
122
|
benefits: n.benefits,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
onOpenOfferModal: W,
|
|
124
|
+
onCloseOfferModal: G,
|
|
125
125
|
onPrimaryCtaClick: K,
|
|
126
126
|
statusMessage: V,
|
|
127
127
|
labels: H,
|
|
@@ -157,4 +157,4 @@ function j({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
|
-
export { p as
|
|
160
|
+
export { p as OFFER_WIDGET_LABELS_EN, s as OFFER_WIDGET_STATUS_LABELS_EN, m as OfferBenefitIcon, j as OfferWidget };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
4
4
|
}
|
|
@@ -34,4 +34,4 @@ var n = {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
|
37
|
-
export { r as
|
|
37
|
+
export { r as OFFER_WIDGET_STATUS_LABELS_EN };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { deniedNoticeExpiresAt as e } from "../../../../../shared/feature/dist/lib/application/bankAccountApplication.js";
|
|
2
2
|
import "../../../../../shared/feature/dist/index.js";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/offerApplicationView.js
|
|
4
4
|
var t = {
|
|
5
5
|
Offer: "offer",
|
|
6
6
|
Resume: "resume",
|
|
@@ -28,4 +28,4 @@ function n(n, r = Date.now()) {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
export { t as
|
|
31
|
+
export { t as OfferApplicationView, n as offerApplicationViewFor };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/analytics/events.js
|
|
2
|
+
var e = {
|
|
3
|
+
Mounted: "marketing.mounted",
|
|
4
|
+
OpenModal: "marketing.open_modal",
|
|
5
|
+
PrimaryCta: "marketing.primary_cta"
|
|
6
|
+
}, t = "marketing";
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as OfferWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/testIds.js
|
|
2
2
|
var e = {
|
|
3
3
|
root: "marketing-widget",
|
|
4
4
|
learnMoreButton: "marketing-widget-learn-more-button",
|
|
@@ -8,4 +8,4 @@ var e = {
|
|
|
8
8
|
primaryCtaButton: "marketing-widget-primary-cta-button"
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
export { e as
|
|
11
|
+
export { e as offerWidgetTestIds };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/feature/dist/mocks/labels.js
|
|
2
2
|
var e = { scenarios: {
|
|
3
3
|
default: {
|
|
4
4
|
label: "Available",
|
|
@@ -26,4 +26,4 @@ var e = { scenarios: {
|
|
|
26
26
|
}
|
|
27
27
|
} };
|
|
28
28
|
//#endregion
|
|
29
|
-
export { e as
|
|
29
|
+
export { e as OFFER_LABELS };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A_COMPLETE_BANK_ACCOUNT_APPLICATION as e } from "../../../../shared/data-access-mocks/dist/lib/fixtures.js";
|
|
2
2
|
import { PROXY as t, initRoute as n, readRoute as r } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
|
|
3
|
-
import {
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
3
|
+
import { OFFER_LABELS as i } from "./labels.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/feature/dist/mocks/offer.js
|
|
5
5
|
var a = {
|
|
6
6
|
status: "NOT_FOUND",
|
|
7
7
|
organizationId: null,
|
|
@@ -31,4 +31,4 @@ var a = {
|
|
|
31
31
|
u("existing-customer", {})
|
|
32
32
|
];
|
|
33
33
|
//#endregion
|
|
34
|
-
export { d as
|
|
34
|
+
export { d as offerScenarios };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OFFER_WIDGET_LABELS_EN as e } from "./index2.js";
|
|
2
|
+
import { OfferBenefitIcon as t, OfferWidgetStatusTone as n } from "./index3.js";
|
|
3
|
+
import "./index7.js";
|
|
4
|
+
import { OfferWidget as r } from "./index9.js";
|
|
5
|
+
export { e as OFFER_WIDGET_LABELS_EN, t as OfferBenefitIcon, r as OfferWidget, n as OfferWidgetStatusTone };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js
|
|
2
|
+
var e = {
|
|
3
|
+
applyNow: "Apply now",
|
|
4
|
+
learnMore: "Learn more",
|
|
5
|
+
primaryCta: "Start application",
|
|
6
|
+
primaryCtaSubtext: "takes about 5 minutes",
|
|
7
|
+
dismissModalAriaLabel: "Close offer modal"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as OFFER_WIDGET_LABELS_EN };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js
|
|
2
2
|
var e = {
|
|
3
3
|
Sync: "sync",
|
|
4
4
|
Users: "users",
|
|
@@ -11,4 +11,4 @@ var e = {
|
|
|
11
11
|
Danger: "danger"
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
|
-
export { e as
|
|
14
|
+
export { e as OfferBenefitIcon, t as OfferWidgetStatusTone };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OfferBenefitIcon as e } from "./index3.js";
|
|
2
2
|
import { CreditCard as t, DollarSign as n, FileText as r, RefreshCw as i, Users as a } from "lucide-react";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index4.js
|
|
4
4
|
var o = {
|
|
5
5
|
[e.Sync]: i,
|
|
6
6
|
[e.Users]: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BENEFIT_ICON_COMPONENTS as e } from "./index4.js";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index5.js
|
|
4
4
|
function r({ text: r, icon: i }) {
|
|
5
5
|
let a = e[i];
|
|
6
6
|
return /* @__PURE__ */ n("div", {
|
|
@@ -15,4 +15,4 @@ function r({ text: r, icon: i }) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
|
-
export { r as
|
|
18
|
+
export { r as OfferBenefitItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index6.js
|
|
3
3
|
function n({ header: n, steps: r }) {
|
|
4
4
|
return r.length === 0 ? null : /* @__PURE__ */ t("div", {
|
|
5
5
|
className: "ttw:mb-6",
|
|
@@ -37,4 +37,4 @@ function n({ header: n, steps: r }) {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
export { n as
|
|
40
|
+
export { n as OfferWidgetHowItWorks };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { OFFER_WIDGET_LABELS_EN as a } from "./index2.js";
|
|
3
|
+
import { OfferBenefitItem as o } from "./index5.js";
|
|
4
|
+
import { OfferWidgetHowItWorks as s } from "./index6.js";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
import { ArrowRight as u, X as d } from "lucide-react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js
|
|
8
8
|
function f({ open: f, vspLogo: p, providedByCaption: m, primaryModalHeader: h, howItWorksHeader: g, howItWorksSteps: _, fromDayOneHeader: v, benefits: y, onClose: b, onPrimaryCtaClick: x, labels: S, testIds: C }) {
|
|
9
9
|
let w = {
|
|
10
10
|
...a,
|
|
@@ -95,4 +95,4 @@ function f({ open: f, vspLogo: p, providedByCaption: m, primaryModalHeader: h, h
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
|
-
export { f as
|
|
98
|
+
export { f as OfferWidgetModal };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { OfferWidgetStatusTone as n } from "./index3.js";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index8.js
|
|
5
5
|
var a = {
|
|
6
6
|
[n.Brand]: "ttw:border-transparent ttw:bg-primary/10 ttw:text-primary",
|
|
7
7
|
[n.Warning]: "ttw:border-amber-100 ttw:bg-amber-100 ttw:text-amber-700",
|
|
@@ -33,4 +33,4 @@ function o({ statusMessage: n, testId: o }) {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
|
-
export { o as
|
|
36
|
+
export { o as OfferWidgetStatus };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { OFFER_WIDGET_LABELS_EN as t } from "./index2.js";
|
|
3
|
+
import { OfferWidgetModal as n } from "./index7.js";
|
|
4
|
+
import { OfferWidgetStatus as r } from "./index8.js";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
7
|
-
function s({ open: s, vspLogo: c, bankingText: l, primaryCaption: u, secondaryCaption: d, providedByCaption: f, primaryModalHeader: p, howItWorksHeader: m, howItWorksSteps: h, fromDayOneHeader: g, benefits: _,
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/offer-widget/ui/dist/index9.js
|
|
7
|
+
function s({ open: s, vspLogo: c, bankingText: l, primaryCaption: u, secondaryCaption: d, providedByCaption: f, primaryModalHeader: p, howItWorksHeader: m, howItWorksSteps: h, fromDayOneHeader: g, benefits: _, onOpenOfferModal: v, onCloseOfferModal: y, onPrimaryCtaClick: b, statusMessage: x, labels: S, testIds: C }) {
|
|
8
8
|
let w = {
|
|
9
9
|
...t,
|
|
10
10
|
...S
|
|
@@ -74,4 +74,4 @@ function s({ open: s, vspLogo: c, bankingText: l, primaryCaption: u, secondaryCa
|
|
|
74
74
|
})] });
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
|
-
export { s as
|
|
77
|
+
export { s as OfferWidget };
|
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.7.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.7.35", n = "23200faee487c4170d4b551363dde15a2d2995fd", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js
CHANGED
|
@@ -20,8 +20,8 @@ import { insightsScenarios as m } from "../../../../insights-widget/feature/dist
|
|
|
20
20
|
import "../../../../insights-widget/feature/dist/scenarios.js";
|
|
21
21
|
import { linkedAccountsScenarios as h } from "../../../../linked-accounts-widget/feature/dist/mocks/linkedAccounts.js";
|
|
22
22
|
import "../../../../linked-accounts-widget/feature/dist/scenarios.js";
|
|
23
|
-
import {
|
|
24
|
-
import "../../../../
|
|
23
|
+
import { offerScenarios as g } from "../../../../offer-widget/feature/dist/mocks/offer.js";
|
|
24
|
+
import "../../../../offer-widget/feature/dist/scenarios.js";
|
|
25
25
|
import { settingsScenarios as _ } from "../../../../settings-widget/feature/dist/mocks/settings.js";
|
|
26
26
|
import "../../../../settings-widget/feature/dist/scenarios.js";
|
|
27
27
|
import { transfersScenarios as v } from "../../../../transfers-widget/feature/dist/mocks/transfers.js";
|
|
@@ -541,7 +541,7 @@ declare const receivablesScenarios: Scenario[];
|
|
|
541
541
|
|
|
542
542
|
declare const linkedAccountsScenarios: Scenario[];
|
|
543
543
|
|
|
544
|
-
declare const
|
|
544
|
+
declare const offerScenarios: Scenario[];
|
|
545
545
|
|
|
546
546
|
declare const productsScenarios: Scenario[];
|
|
547
547
|
|
|
@@ -560,5 +560,5 @@ interface WidgetSuiteDemoProps {
|
|
|
560
560
|
}
|
|
561
561
|
declare const widgetSuiteScenarios: Scenario<WidgetSuiteDemoProps>[];
|
|
562
562
|
|
|
563
|
-
export { CARDS_PAGING, CARD_DETAILS_CARD_ID, CROSS_CUTTING_KEYS, EMBEDDED_PAGING, FINOPS, FINOPS_PAGING, IDENTITY, INIT, LOADING_DELAY_MS, PROXY, SCENARIO_LABELS, acceptDisclosuresScenarios, answer, answerFrom, balancesScenarios, bankAccountOnboardingScenarios, bankAccountsScenarios, billPayScenarios, bodyOf, cardDetailsScenarios, composeScenarios, counterpartsScenarios, creditCardsScenarios, crossCuttingScenarios, counterpartsScenarios as customersScenarios, debitCardsScenarios, defaultScenario, endpoint, expenseManagementScenarios, finopsPage, initRoute, insightsScenarios, invoicingScenarios, json, linkedAccountsScenarios,
|
|
563
|
+
export { CARDS_PAGING, CARD_DETAILS_CARD_ID, CROSS_CUTTING_KEYS, EMBEDDED_PAGING, FINOPS, FINOPS_PAGING, IDENTITY, INIT, LOADING_DELAY_MS, PROXY, SCENARIO_LABELS, acceptDisclosuresScenarios, answer, answerFrom, balancesScenarios, bankAccountOnboardingScenarios, bankAccountsScenarios, billPayScenarios, bodyOf, cardDetailsScenarios, composeScenarios, counterpartsScenarios, creditCardsScenarios, crossCuttingScenarios, counterpartsScenarios as customersScenarios, debitCardsScenarios, defaultScenario, endpoint, expenseManagementScenarios, finopsPage, initRoute, insightsScenarios, invoicingScenarios, json, linkedAccountsScenarios, matchPath, noContent, offerScenarios, page, paged, problem, productsScenarios, readRoute, receivablesScenarios, routesOf, scenarioFetch, settingsScenarios, templatePath, transfersScenarios, wait, widgetSuiteScenarios };
|
|
564
564
|
export type { ConfigClient, CrossCuttingKey, CrossCuttingSpec, PagingStyle, PrimaryRead, RequestSummary, Route, RouteRequest, Scenario, ScenarioCopy, SettingsDemoProps, UploadedFile, WidgetInit, WidgetSuiteDemoProps };
|
package/dist/scenarios/index.js
CHANGED
|
@@ -29,12 +29,12 @@ import { insightsScenarios as W } from "../libs/tesouro-embedded-components-reac
|
|
|
29
29
|
import "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/scenarios.js";
|
|
30
30
|
import { linkedAccountsScenarios as G } from "../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js";
|
|
31
31
|
import "../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/scenarios.js";
|
|
32
|
-
import {
|
|
33
|
-
import "../libs/tesouro-embedded-components-react/
|
|
32
|
+
import { offerScenarios as K } from "../libs/tesouro-embedded-components-react/offer-widget/feature/dist/mocks/offer.js";
|
|
33
|
+
import "../libs/tesouro-embedded-components-react/offer-widget/feature/dist/scenarios.js";
|
|
34
34
|
import { settingsScenarios as q } from "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js";
|
|
35
35
|
import "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/scenarios.js";
|
|
36
36
|
import { transfersScenarios as J } from "../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js";
|
|
37
37
|
import "../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/scenarios.js";
|
|
38
38
|
import { widgetSuiteScenarios as Y } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js";
|
|
39
39
|
import "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/scenarios.js";
|
|
40
|
-
export { n as CARDS_PAGING, B as CARD_DETAILS_CARD_ID, e as CROSS_CUTTING_KEYS, r as EMBEDDED_PAGING, i as FINOPS, a as FINOPS_PAGING, o as IDENTITY, s as INIT, c as LOADING_DELAY_MS, l as PROXY, t as SCENARIO_LABELS, R as acceptDisclosuresScenarios, u as answer, d as answerFrom, z as balancesScenarios, F as bankAccountOnboardingScenarios, L as bankAccountsScenarios, I as billPayScenarios, f as bodyOf, V as cardDetailsScenarios, p as composeScenarios, j as counterpartsScenarios, H as creditCardsScenarios, m as crossCuttingScenarios, j as customersScenarios, U as debitCardsScenarios, h as defaultScenario, g as endpoint, P as expenseManagementScenarios, _ as finopsPage, v as initRoute, W as insightsScenarios, A as invoicingScenarios, y as json, G as linkedAccountsScenarios,
|
|
40
|
+
export { n as CARDS_PAGING, B as CARD_DETAILS_CARD_ID, e as CROSS_CUTTING_KEYS, r as EMBEDDED_PAGING, i as FINOPS, a as FINOPS_PAGING, o as IDENTITY, s as INIT, c as LOADING_DELAY_MS, l as PROXY, t as SCENARIO_LABELS, R as acceptDisclosuresScenarios, u as answer, d as answerFrom, z as balancesScenarios, F as bankAccountOnboardingScenarios, L as bankAccountsScenarios, I as billPayScenarios, f as bodyOf, V as cardDetailsScenarios, p as composeScenarios, j as counterpartsScenarios, H as creditCardsScenarios, m as crossCuttingScenarios, j as customersScenarios, U as debitCardsScenarios, h as defaultScenario, g as endpoint, P as expenseManagementScenarios, _ as finopsPage, v as initRoute, W as insightsScenarios, A as invoicingScenarios, y as json, G as linkedAccountsScenarios, b as matchPath, x as noContent, K as offerScenarios, S as page, C as paged, w as problem, M as productsScenarios, T as readRoute, N as receivablesScenarios, E as routesOf, D as scenarioFetch, q as settingsScenarios, O as templatePath, J as transfersScenarios, k as wait, Y as widgetSuiteScenarios };
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MARKETING_WIDGET_STATUS_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/lib/MarketingWidget/labels.js";
|
|
2
|
-
import { MARKETING_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
|
|
3
|
-
import { MarketingBenefitIcon as n } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
|
|
4
|
-
import { MarketingWidget as r } from "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/lib/MarketingWidget/MarketingWidget.js";
|
|
5
|
-
import "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js";
|
|
6
|
-
export { t as MARKETING_WIDGET_LABELS_EN, e as MARKETING_WIDGET_STATUS_LABELS_EN, n as MarketingBenefitIcon, r as MarketingWidget };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { MARKETING_WIDGET_STATUS_LABELS_EN as e } from "./lib/MarketingWidget/labels.js";
|
|
2
|
-
import { MARKETING_WIDGET_LABELS_EN as t } from "../../ui/dist/index2.js";
|
|
3
|
-
import { MarketingBenefitIcon as n } from "../../ui/dist/index3.js";
|
|
4
|
-
import { MarketingWidget as r } from "./lib/MarketingWidget/MarketingWidget.js";
|
|
5
|
-
export { t as MARKETING_WIDGET_LABELS_EN, e as MARKETING_WIDGET_STATUS_LABELS_EN, n as MarketingBenefitIcon, r as MarketingWidget };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/lib/analytics/events.js
|
|
2
|
-
var e = {
|
|
3
|
-
Mounted: "marketing.mounted",
|
|
4
|
-
OpenModal: "marketing.open_modal",
|
|
5
|
-
PrimaryCta: "marketing.primary_cta"
|
|
6
|
-
}, t = "marketing";
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as MarketingWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { MARKETING_WIDGET_LABELS_EN as e } from "./index2.js";
|
|
2
|
-
import { MarketingBenefitIcon as t, MarketingWidgetStatusTone as n } from "./index3.js";
|
|
3
|
-
import "./index7.js";
|
|
4
|
-
import { MarketingWidget as r } from "./index9.js";
|
|
5
|
-
export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, r as MarketingWidget, n as MarketingWidgetStatusTone };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js
|
|
2
|
-
var e = {
|
|
3
|
-
applyNow: "Apply now",
|
|
4
|
-
learnMore: "Learn more",
|
|
5
|
-
primaryCta: "Start application",
|
|
6
|
-
primaryCtaSubtext: "takes about 5 minutes",
|
|
7
|
-
dismissModalAriaLabel: "Close marketing modal"
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { e as MARKETING_WIDGET_LABELS_EN };
|