@tesouro/embedded-components-react 0.2.342 → 0.3.0
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
CHANGED
|
@@ -201,11 +201,10 @@ Once the atomic accept _and_ any async `onAccepted` continuation succeed, the ch
|
|
|
201
201
|
|
|
202
202
|
#### Props
|
|
203
203
|
|
|
204
|
-
| Prop
|
|
205
|
-
|
|
|
206
|
-
| `labels`
|
|
207
|
-
| `onAccepted`
|
|
208
|
-
| `disclosureLinks` | `AcceptDisclosuresLinks` | — | **Deprecated.** Ignored. Documents come from `GET /identity/v1/disclosures`. Kept so existing hosts continue to typecheck until a breaking release. |
|
|
204
|
+
| Prop | Type | Default | Description |
|
|
205
|
+
| ------------ | ---------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
206
|
+
| `labels` | `Partial<AcceptDisclosuresWidgetLabels>` | — | Override shell copy (title, Accept, agreement/attribution templates). `{documents}` in `agreementTextTemplate` is replaced with the backend-returned titles; a template that omits `{documents}` still has those titles appended. When the backend returns no documents, `noDocumentsTitle` / `noDocumentsAgreementTextTemplate` / `noDocumentsAgreementCheckboxAriaLabel` replace the disclosures copy (including the checkbox `aria-label`). Document titles themselves are not overridable. |
|
|
207
|
+
| `onAccepted` | `() => void \| Promise<void>` | — | Called after the atomic accept succeeds and before init refresh; awaited before the widget locks. Reject to surface an error and keep Accept retryable. |
|
|
209
208
|
|
|
210
209
|
### BankAccountsWidget
|
|
211
210
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1450,20 +1450,6 @@ type CardStatus = CreditCardStatus;
|
|
|
1450
1450
|
*/
|
|
1451
1451
|
type CardType = CreditCardType;
|
|
1452
1452
|
|
|
1453
|
-
/**
|
|
1454
|
-
* Host-supplied URLs for the four disclosure documents.
|
|
1455
|
-
*
|
|
1456
|
-
* @deprecated The widget fetches title/url pairs from
|
|
1457
|
-
* `GET /identity/v1/disclosures`. This type remains exported so existing
|
|
1458
|
-
* consumers continue to typecheck until a coordinated breaking release.
|
|
1459
|
-
*/
|
|
1460
|
-
interface AcceptDisclosuresLinks {
|
|
1461
|
-
termsOfUseUrl: string;
|
|
1462
|
-
privacyPolicyUrl: string;
|
|
1463
|
-
electronicCommunicationsAgreementUrl: string;
|
|
1464
|
-
usaPatriotActUrl: string;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
1453
|
type UiOwnedProps = 'providerAttribution' | 'agreementText' | 'disclosureLinks' | 'isAgreed' | 'onAgreedChange' | 'onAccept' | 'isSubmitting' | 'isAccepted' | 'errorMessage';
|
|
1468
1454
|
type InnerProps = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
|
|
1469
1455
|
/**
|
|
@@ -1473,12 +1459,6 @@ type InnerProps = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
|
|
|
1473
1459
|
* Accept retryable (and the host gate stays mounted).
|
|
1474
1460
|
*/
|
|
1475
1461
|
onAccepted?: () => void | Promise<void>;
|
|
1476
|
-
/**
|
|
1477
|
-
* @deprecated Ignored. Documents come from `GET /identity/v1/disclosures`.
|
|
1478
|
-
* Kept so existing hosts that still pass this continue to typecheck until a
|
|
1479
|
-
* coordinated breaking release.
|
|
1480
|
-
*/
|
|
1481
|
-
disclosureLinks?: AcceptDisclosuresLinks;
|
|
1482
1462
|
};
|
|
1483
1463
|
type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps;
|
|
1484
1464
|
/**
|
|
@@ -4885,4 +4865,4 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
4885
4865
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
4886
4866
|
|
|
4887
4867
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, AccountDeleteDialog, AccountFormSheet, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, CREATE_CARD_FEATURE_LABELS_EN, CardDetailsWidget, CardFormatValue, CardsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreateCardWidget, ERROR_STATE_ID, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, ProfileWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TagsWidget, TeamWidget, TransfersWidget, UIFramework, UploadReceiptWidget, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, resolveCreateCardFeatureLabels, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
|
4888
|
-
export type {
|
|
4868
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccountDeleteDialogLabels, AccountDeleteDialogProps, Labels$5 as AccountDetailsWidgetLabels, AccountFormErrors, AccountFormMode, AccountFormSheetLabels, AccountFormSheetProps, AccountFormValues, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$5 as BankAccountsWidgetFeatureLabels, Labels$6 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels as CardsWidgetFeatureLabels, CardsListLabels as CardsWidgetLabels, CardsWidgetPagination, CardsWidgetProps, ChartOfAccountsLabels, ChartOfAccountsMessageLabels, ChartOfAccountsTableProps, ChartOfAccountsWidgetLabelProps, ChartOfAccountsWidgetProps, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreateCardFeatureLabels, CreateCardWidgetLabels, CreateCardWidgetProps, DisclosureLinks, EmbeddedClient, ExpenseApprovalPoliciesWidgetProps, Labels$4 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseRequirementsWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, HelpWidgetLabels, HelpWidgetProps, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LedgerAccountRow, LinkComponent, LinkComponentProps, FeatureLabels$4 as LinkedAccountsWidgetFeatureLabels, Labels$3 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetContent, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, FeatureLabels$3 as ProfileWidgetFeatureLabels, Labels$2 as ProfileWidgetLabels, ProfileWidgetProps, ReceiptMatchSummary, ReceiptMatchWidgetProps, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$1 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TagDeleteDialogLabels, TagFormSheetLabels, TagMessageLabels, TagsScreenLabels, TagsWidgetProps, FeatureLabels$1 as TeamWidgetFeatureLabels, Labels as TeamWidgetLabels, TeamWidgetProps, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderProps, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
@@ -713,20 +713,6 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
713
713
|
disclosuresAcceptance?: ReactNode;
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
-
/**
|
|
717
|
-
* Host-supplied URLs for the four disclosure documents.
|
|
718
|
-
*
|
|
719
|
-
* @deprecated The widget fetches title/url pairs from
|
|
720
|
-
* `GET /identity/v1/disclosures`. This type remains exported so existing
|
|
721
|
-
* consumers continue to typecheck until a coordinated breaking release.
|
|
722
|
-
*/
|
|
723
|
-
interface AcceptDisclosuresLinks {
|
|
724
|
-
termsOfUseUrl: string;
|
|
725
|
-
privacyPolicyUrl: string;
|
|
726
|
-
electronicCommunicationsAgreementUrl: string;
|
|
727
|
-
usaPatriotActUrl: string;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
716
|
type UiOwnedProps = 'providerAttribution' | 'agreementText' | 'disclosureLinks' | 'isAgreed' | 'onAgreedChange' | 'onAccept' | 'isSubmitting' | 'isAccepted' | 'errorMessage';
|
|
731
717
|
type InnerProps = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
|
|
732
718
|
/**
|
|
@@ -736,12 +722,6 @@ type InnerProps = Omit<AcceptDisclosuresWidgetProps$1, UiOwnedProps> & {
|
|
|
736
722
|
* Accept retryable (and the host gate stays mounted).
|
|
737
723
|
*/
|
|
738
724
|
onAccepted?: () => void | Promise<void>;
|
|
739
|
-
/**
|
|
740
|
-
* @deprecated Ignored. Documents come from `GET /identity/v1/disclosures`.
|
|
741
|
-
* Kept so existing hosts that still pass this continue to typecheck until a
|
|
742
|
-
* coordinated breaking release.
|
|
743
|
-
*/
|
|
744
|
-
disclosureLinks?: AcceptDisclosuresLinks;
|
|
745
725
|
};
|
|
746
726
|
type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps;
|
|
747
727
|
/**
|
|
@@ -766,4 +746,4 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
766
746
|
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
767
747
|
|
|
768
748
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, AcceptDisclosuresWidget };
|
|
769
|
-
export type {
|
|
749
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps };
|
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.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.3.0", n = "1e8459870f8870f6d93aaaf98fbadf824b3e9813", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|