@tesouro/embedded-components-react 0.7.56 → 0.7.57
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 +0 -3
- package/dist/experimental/RemoteCheckCapture.d.ts +1 -32
- package/dist/experimental/index.d.ts +1 -32
- package/dist/index.d.ts +12 -44
- package/dist/index.js +47 -48
- package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -32
- package/dist/lib/BalancesWidget.d.ts +0 -31
- package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -32
- package/dist/lib/BankAccountsWidget.d.ts +1 -32
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -31
- package/dist/lib/BillPayWidget.d.ts +0 -31
- package/dist/lib/CardDetailsWidget.d.ts +1 -32
- package/dist/lib/CounterpartsWidget.d.ts +0 -31
- package/dist/lib/CounterpartsWidgetPublic.d.ts +0 -31
- package/dist/lib/CreditCardsWidget.d.ts +0 -31
- package/dist/lib/CustomersWidget.d.ts +1 -33
- package/dist/lib/DebitCardsWidget.d.ts +0 -31
- package/dist/lib/ExpenseManagementWidget.d.ts +0 -31
- package/dist/lib/InsightsWidget.d.ts +0 -31
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -32
- package/dist/lib/OfferWidget.d.ts +1 -32
- package/dist/lib/ProductsWidget.d.ts +1 -32
- package/dist/lib/ReceivablesWidget.d.ts +1 -32
- package/dist/lib/SettingsWidget.d.ts +0 -31
- package/dist/lib/TransfersWidget.d.ts +0 -31
- package/dist/lib/WidgetProvider.d.ts +2 -33
- package/dist/lib/WidgetProvider.js +9 -10
- package/dist/lib/WidgetProviderPublic.d.ts +0 -31
- package/dist/lib/WidgetSuite.d.ts +1 -32
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +395 -396
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +83 -84
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +91 -95
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +120 -121
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/types.js +0 -8
|
@@ -353,21 +353,6 @@ declare const UIFramework: {
|
|
|
353
353
|
};
|
|
354
354
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
355
355
|
|
|
356
|
-
/**
|
|
357
|
-
* The implementation a widget renders with.
|
|
358
|
-
*
|
|
359
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
360
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
361
|
-
* - `monite` — the Monite SDK implementation.
|
|
362
|
-
*
|
|
363
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
364
|
-
* convention.
|
|
365
|
-
*/
|
|
366
|
-
declare const Implementation: {
|
|
367
|
-
readonly Native: "native";
|
|
368
|
-
readonly Monite: "monite";
|
|
369
|
-
};
|
|
370
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
371
356
|
/**
|
|
372
357
|
* The settable fields of the widget config cascade.
|
|
373
358
|
*
|
|
@@ -526,22 +511,6 @@ interface WidgetConfigInput {
|
|
|
526
511
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
527
512
|
*/
|
|
528
513
|
uiFramework?: UIFramework | null;
|
|
529
|
-
/**
|
|
530
|
-
* Which implementation a widget renders with.
|
|
531
|
-
*
|
|
532
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
533
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
534
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
535
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
536
|
-
* is read via `useImplementation`.
|
|
537
|
-
*
|
|
538
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
539
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
540
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
541
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
542
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
543
|
-
*/
|
|
544
|
-
implementation?: Implementation | null;
|
|
545
514
|
}
|
|
546
515
|
/**
|
|
547
516
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -815,7 +784,7 @@ type ProductsWidgetProps = WidgetProviderProps & ProductsWidgetOwnProps;
|
|
|
815
784
|
* <ProductsWidget baseUrl="https://api.tesouro.com" widgetToken="wt_..." organizationId="org_..." />
|
|
816
785
|
* ```
|
|
817
786
|
*/
|
|
818
|
-
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
787
|
+
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ProductsWidgetProps): React.JSX.Element;
|
|
819
788
|
|
|
820
789
|
export { ProductsWidget };
|
|
821
790
|
export type { MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps };
|
|
@@ -427,21 +427,6 @@ declare const UIFramework: {
|
|
|
427
427
|
};
|
|
428
428
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
429
429
|
|
|
430
|
-
/**
|
|
431
|
-
* The implementation a widget renders with.
|
|
432
|
-
*
|
|
433
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
434
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
435
|
-
* - `monite` — the Monite SDK implementation.
|
|
436
|
-
*
|
|
437
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
438
|
-
* convention.
|
|
439
|
-
*/
|
|
440
|
-
declare const Implementation: {
|
|
441
|
-
readonly Native: "native";
|
|
442
|
-
readonly Monite: "monite";
|
|
443
|
-
};
|
|
444
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
445
430
|
/**
|
|
446
431
|
* The settable fields of the widget config cascade.
|
|
447
432
|
*
|
|
@@ -600,22 +585,6 @@ interface WidgetConfigInput {
|
|
|
600
585
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
601
586
|
*/
|
|
602
587
|
uiFramework?: UIFramework | null;
|
|
603
|
-
/**
|
|
604
|
-
* Which implementation a widget renders with.
|
|
605
|
-
*
|
|
606
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
607
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
608
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
609
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
610
|
-
* is read via `useImplementation`.
|
|
611
|
-
*
|
|
612
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
613
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
614
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
615
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
616
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
617
|
-
*/
|
|
618
|
-
implementation?: Implementation | null;
|
|
619
588
|
}
|
|
620
589
|
/**
|
|
621
590
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -1739,7 +1708,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1739
1708
|
|
|
1740
1709
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
1741
1710
|
|
|
1742
|
-
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
1711
|
+
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1743
1712
|
|
|
1744
1713
|
export { ReceivablesWidget };
|
|
1745
1714
|
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableBankAttribution, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps };
|
|
@@ -403,21 +403,6 @@ declare const UIFramework: {
|
|
|
403
403
|
};
|
|
404
404
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
405
405
|
|
|
406
|
-
/**
|
|
407
|
-
* The implementation a widget renders with.
|
|
408
|
-
*
|
|
409
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
410
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
411
|
-
* - `monite` — the Monite SDK implementation.
|
|
412
|
-
*
|
|
413
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
414
|
-
* convention.
|
|
415
|
-
*/
|
|
416
|
-
declare const Implementation: {
|
|
417
|
-
readonly Native: "native";
|
|
418
|
-
readonly Monite: "monite";
|
|
419
|
-
};
|
|
420
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
421
406
|
/**
|
|
422
407
|
* The settable fields of the widget config cascade.
|
|
423
408
|
*
|
|
@@ -576,22 +561,6 @@ interface WidgetConfigInput {
|
|
|
576
561
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
577
562
|
*/
|
|
578
563
|
uiFramework?: UIFramework | null;
|
|
579
|
-
/**
|
|
580
|
-
* Which implementation a widget renders with.
|
|
581
|
-
*
|
|
582
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
583
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
584
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
585
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
586
|
-
* is read via `useImplementation`.
|
|
587
|
-
*
|
|
588
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
589
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
590
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
591
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
592
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
593
|
-
*/
|
|
594
|
-
implementation?: Implementation | null;
|
|
595
564
|
}
|
|
596
565
|
/**
|
|
597
566
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -352,21 +352,6 @@ declare const UIFramework: {
|
|
|
352
352
|
};
|
|
353
353
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
354
354
|
|
|
355
|
-
/**
|
|
356
|
-
* The implementation a widget renders with.
|
|
357
|
-
*
|
|
358
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
359
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
360
|
-
* - `monite` — the Monite SDK implementation.
|
|
361
|
-
*
|
|
362
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
363
|
-
* convention.
|
|
364
|
-
*/
|
|
365
|
-
declare const Implementation: {
|
|
366
|
-
readonly Native: "native";
|
|
367
|
-
readonly Monite: "monite";
|
|
368
|
-
};
|
|
369
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
370
355
|
/**
|
|
371
356
|
* The settable fields of the widget config cascade.
|
|
372
357
|
*
|
|
@@ -525,22 +510,6 @@ interface WidgetConfigInput {
|
|
|
525
510
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
526
511
|
*/
|
|
527
512
|
uiFramework?: UIFramework | null;
|
|
528
|
-
/**
|
|
529
|
-
* Which implementation a widget renders with.
|
|
530
|
-
*
|
|
531
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
532
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
533
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
534
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
535
|
-
* is read via `useImplementation`.
|
|
536
|
-
*
|
|
537
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
538
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
539
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
540
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
541
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
542
|
-
*/
|
|
543
|
-
implementation?: Implementation | null;
|
|
544
513
|
}
|
|
545
514
|
/**
|
|
546
515
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -438,21 +438,6 @@ declare function registerDesignSystemEnsurer(framework: UIFramework, ensurer: De
|
|
|
438
438
|
|
|
439
439
|
declare const ERROR_STATE_ID = "error-state";
|
|
440
440
|
|
|
441
|
-
/**
|
|
442
|
-
* The implementation a widget renders with.
|
|
443
|
-
*
|
|
444
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
445
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
446
|
-
* - `monite` — the Monite SDK implementation.
|
|
447
|
-
*
|
|
448
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
449
|
-
* convention.
|
|
450
|
-
*/
|
|
451
|
-
declare const Implementation: {
|
|
452
|
-
readonly Native: "native";
|
|
453
|
-
readonly Monite: "monite";
|
|
454
|
-
};
|
|
455
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
456
441
|
/**
|
|
457
442
|
* The settable fields of the widget config cascade.
|
|
458
443
|
*
|
|
@@ -611,22 +596,6 @@ interface WidgetConfigInput {
|
|
|
611
596
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
612
597
|
*/
|
|
613
598
|
uiFramework?: UIFramework | null;
|
|
614
|
-
/**
|
|
615
|
-
* Which implementation a widget renders with.
|
|
616
|
-
*
|
|
617
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
618
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
619
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
620
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
621
|
-
* is read via `useImplementation`.
|
|
622
|
-
*
|
|
623
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
624
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
625
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
626
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
627
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
628
|
-
*/
|
|
629
|
-
implementation?: Implementation | null;
|
|
630
599
|
}
|
|
631
600
|
/**
|
|
632
601
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -973,7 +942,7 @@ interface RootWidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
973
942
|
* @see {@link useWidgetConfig} to read the resolved config in descendants
|
|
974
943
|
* @see {@link setGlobalWidgetConfig} to push config imperatively from outside React
|
|
975
944
|
*/
|
|
976
|
-
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework,
|
|
945
|
+
declare function RootWidgetProvider({ children, baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, analytics, unstable_initResponseOverride, disclosuresAcceptance, providerLabels, }: PropsWithChildren<RootWidgetProviderProps>): React.JSX.Element;
|
|
977
946
|
|
|
978
947
|
/**
|
|
979
948
|
* Props for {@link WidgetProvider}.
|
|
@@ -1303,5 +1272,5 @@ declare function useWidgetToken(): UseWidgetTokenResult;
|
|
|
1303
1272
|
*/
|
|
1304
1273
|
declare function WidgetProvider(props: PropsWithChildren<WidgetProviderProps>): ReactNode;
|
|
1305
1274
|
|
|
1306
|
-
export { ERROR_STATE_ID,
|
|
1275
|
+
export { ERROR_STATE_ID, RefreshingRootWidgetProvider, RootWidgetProvider, UIFramework, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
1307
1276
|
export type { EmbeddedClient, LinkComponent, LinkComponentProps, RefreshingRootWidgetProviderProps, RootWidgetProviderProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
@@ -3,14 +3,13 @@ import { UIFramework as t } from "../libs/tesouro-embedded-components-react/shar
|
|
|
3
3
|
import { registerDesignSystemEnsurer as n, registerUIRenderers as r } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
|
|
4
4
|
import { ERROR_STATE_ID as i } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
5
5
|
import "../libs/tesouro-embedded-components-react/shared/ui/dist/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { useDisclosuresAcceptanceSurface as h, useOwnWidgetConfig as g, useRefetchWidget as _, useWidgetConfig as v, useWidgetError as y, useWidgetInitStaleForToken as b, useWidgetLoading as x } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
6
|
+
import { getGlobalWidgetConfig as a, setGlobalWidgetConfig as o, updateGlobalWidgetConfig as s } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/globalStore.js";
|
|
7
|
+
import { getGlobalWidgetInitState as c, subscribeToGlobalWidgetInitState as l } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/widgetInitChannel.js";
|
|
8
|
+
import { RootWidgetProvider as u } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js";
|
|
9
|
+
import { WidgetTokenRefreshProvider as d } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
10
|
+
import { useWidgetToken as f } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetToken.js";
|
|
11
|
+
import { RefreshingRootWidgetProvider as p } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
12
|
+
import { useDisclosuresAcceptanceSurface as m, useOwnWidgetConfig as h, useRefetchWidget as g, useWidgetConfig as _, useWidgetError as v, useWidgetInitStaleForToken as y, useWidgetLoading as b } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
14
13
|
import "../libs/tesouro-embedded-components-react/shared/feature/dist/index.js";
|
|
15
|
-
import { WidgetProvider as
|
|
16
|
-
export { i as ERROR_STATE_ID,
|
|
14
|
+
import { WidgetProvider as x } from "./WidgetProviderPublic.js";
|
|
15
|
+
export { i as ERROR_STATE_ID, p as RefreshingRootWidgetProvider, u as RootWidgetProvider, t as UIFramework, x as WidgetProvider, d as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, a as getGlobalWidgetConfig, c as getGlobalWidgetInitState, n as registerDesignSystemEnsurer, r as registerUIRenderers, o as setGlobalWidgetConfig, l as subscribeToGlobalWidgetInitState, s as updateGlobalWidgetConfig, m as useDisclosuresAcceptanceSurface, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetInitStaleForToken, b as useWidgetLoading, f as useWidgetToken };
|
|
@@ -351,21 +351,6 @@ declare const UIFramework: {
|
|
|
351
351
|
};
|
|
352
352
|
type UIFramework = (typeof UIFramework)[keyof typeof UIFramework];
|
|
353
353
|
|
|
354
|
-
/**
|
|
355
|
-
* The implementation a widget renders with.
|
|
356
|
-
*
|
|
357
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
358
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
359
|
-
* - `monite` — the Monite SDK implementation.
|
|
360
|
-
*
|
|
361
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
362
|
-
* convention.
|
|
363
|
-
*/
|
|
364
|
-
declare const Implementation: {
|
|
365
|
-
readonly Native: "native";
|
|
366
|
-
readonly Monite: "monite";
|
|
367
|
-
};
|
|
368
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
369
354
|
/**
|
|
370
355
|
* The settable fields of the widget config cascade.
|
|
371
356
|
*
|
|
@@ -524,22 +509,6 @@ interface WidgetConfigInput {
|
|
|
524
509
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
525
510
|
*/
|
|
526
511
|
uiFramework?: UIFramework | null;
|
|
527
|
-
/**
|
|
528
|
-
* Which implementation a widget renders with.
|
|
529
|
-
*
|
|
530
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
531
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
532
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
533
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
534
|
-
* is read via `useImplementation`.
|
|
535
|
-
*
|
|
536
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
537
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
538
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
539
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
540
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
541
|
-
*/
|
|
542
|
-
implementation?: Implementation | null;
|
|
543
512
|
}
|
|
544
513
|
/**
|
|
545
514
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -366,21 +366,6 @@ interface PaginationFooterLabels {
|
|
|
366
366
|
nextPageButton: string;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
/**
|
|
370
|
-
* The implementation a widget renders with.
|
|
371
|
-
*
|
|
372
|
-
* - `native` — the Tesouro-native implementation. This is the default and the
|
|
373
|
-
* implicit fallback, so consumers that select nothing keep rendering native.
|
|
374
|
-
* - `monite` — the Monite SDK implementation.
|
|
375
|
-
*
|
|
376
|
-
* Declared as an `as const` object (not a TypeScript `enum`) per repo
|
|
377
|
-
* convention.
|
|
378
|
-
*/
|
|
379
|
-
declare const Implementation: {
|
|
380
|
-
readonly Native: "native";
|
|
381
|
-
readonly Monite: "monite";
|
|
382
|
-
};
|
|
383
|
-
type Implementation = (typeof Implementation)[keyof typeof Implementation];
|
|
384
369
|
/**
|
|
385
370
|
* The settable fields of the widget config cascade.
|
|
386
371
|
*
|
|
@@ -539,22 +524,6 @@ interface WidgetConfigInput {
|
|
|
539
524
|
* `shadcn` is the implicit default, so existing consumers need no changes.
|
|
540
525
|
*/
|
|
541
526
|
uiFramework?: UIFramework | null;
|
|
542
|
-
/**
|
|
543
|
-
* Which implementation a widget renders with.
|
|
544
|
-
*
|
|
545
|
-
* Lets a consuming context bind widgets to either the Tesouro-native or the
|
|
546
|
-
* Monite SDK implementation behind the same outward-facing API. It cascades
|
|
547
|
-
* through the provider tree exactly like {@link linkComponent} and
|
|
548
|
-
* {@link uiFramework} — provider prop > nearest ancestor > global store — and
|
|
549
|
-
* is read via `useImplementation`.
|
|
550
|
-
*
|
|
551
|
-
* - `'native'` — the Tesouro-native implementation.
|
|
552
|
-
* - `'monite'` — the Monite SDK implementation.
|
|
553
|
-
* - `null` / `undefined` — not set at this level; inherit from the nearest
|
|
554
|
-
* ancestor or global store, falling back to `native` when unset everywhere.
|
|
555
|
-
* `native` is the implicit default, so existing consumers need no changes.
|
|
556
|
-
*/
|
|
557
|
-
implementation?: Implementation | null;
|
|
558
527
|
}
|
|
559
528
|
/**
|
|
560
529
|
* Props shared by every analytics-owner-capable widget provider.
|
|
@@ -3192,7 +3161,7 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
3192
3161
|
* lists, the widget's own opening tab. A host that needs to deep-link into one
|
|
3193
3162
|
* of those mounts that widget itself rather than reaching through the suite.
|
|
3194
3163
|
*/
|
|
3195
|
-
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent,
|
|
3164
|
+
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
3196
3165
|
|
|
3197
3166
|
export { WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
|
|
3198
3167
|
export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
|
|
@@ -131,7 +131,7 @@ function w({ displayedVersion: e, labelOverrides: n, content: r, labels: i, onAc
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o,
|
|
134
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, uiFramework: s, errorFallback: c, onError: l, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...m }) {
|
|
135
135
|
return /* @__PURE__ */ b(a, {
|
|
136
136
|
widgetName: u,
|
|
137
137
|
baseUrl: e,
|
|
@@ -140,14 +140,13 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
140
140
|
configClient: r,
|
|
141
141
|
gatewayRouting: i,
|
|
142
142
|
linkComponent: o,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
children: /* @__PURE__ */ b(C, { ...h })
|
|
143
|
+
uiFramework: s,
|
|
144
|
+
errorFallback: c,
|
|
145
|
+
onError: l,
|
|
146
|
+
analytics: d,
|
|
147
|
+
disclosuresAcceptance: f,
|
|
148
|
+
providerLabels: p,
|
|
149
|
+
children: /* @__PURE__ */ b(C, { ...m })
|
|
151
150
|
});
|
|
152
151
|
}
|
|
153
152
|
//#endregion
|