@tesouro/embedded-components-react 0.11.123 → 0.11.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +0 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +31 -31
- package/dist/lib/WidgetSuite.d.ts +4 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index4.js → lib/BalanceHistoryCard/BalanceHistoryCard.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index2.js → lib/BalanceHistoryCard/BalanceHistoryChart.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index3.js → lib/BalanceHistoryCard/labels.js} +1 -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/WidgetSuiteProvider.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js +31 -34
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5719,6 +5719,10 @@ type WidgetSuiteInvoicingLabels = WidgetLabelProps<ReceivablesWidgetProps>;
|
|
|
5719
5719
|
/** The widgets the Dashboard section holds, each taking its own copy. */
|
|
5720
5720
|
interface WidgetSuiteDashboardLabels {
|
|
5721
5721
|
balanceHistory?: WidgetSuiteBalanceHistoryLabels;
|
|
5722
|
+
/**
|
|
5723
|
+
* @deprecated The Dashboard section no longer renders Balances, so this
|
|
5724
|
+
* copy is ignored. Kept so integrators who pass it still compile.
|
|
5725
|
+
*/
|
|
5722
5726
|
balances?: WidgetSuiteBalancesLabels;
|
|
5723
5727
|
insights?: WidgetSuiteInsightsLabels;
|
|
5724
5728
|
}
|
package/dist/index.js
CHANGED
|
@@ -21,39 +21,39 @@ import { BillPayWidget as N } from "./libs/tesouro-embedded-components-react/bil
|
|
|
21
21
|
import { CardDetailsWidget as P } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js";
|
|
22
22
|
import { CreditCardsWidget as F } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CreditCardsWidget.js";
|
|
23
23
|
import { DebitCardsWidget as I } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/DebitCardsWidget.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
24
|
+
import { INSIGHTS_FEATURE_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/labels.js";
|
|
25
|
+
import { INSIGHTS_WIDGET_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
26
|
+
import { SINGLE_INSIGHT_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
27
|
+
import { InsightsWidget as B } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
28
|
+
import { ExpenseManagementWidget as V } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js";
|
|
29
|
+
import { InvoicingTab as H } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
|
|
30
|
+
import { ProductsWidget as U } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
|
|
31
|
+
import { ReceivablesWidget as W } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
32
|
+
import { SettingsSection as G } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/sections.js";
|
|
33
|
+
import { HELP_FAQ_EN as K } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
34
|
+
import { SettingsWidget as q } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js";
|
|
35
|
+
import { LinkedAccountsWidget as J } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js";
|
|
36
|
+
import { DEFAULT_FEATURE_LABELS as Y } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js";
|
|
37
|
+
import { TRANSFERS_WIDGET_LABELS_EN as X } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
|
|
38
|
+
import { TransfersWidget as Z } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
|
|
39
|
+
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as Q } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
|
|
40
|
+
import { AcceptDisclosuresWidget as $ } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
|
|
41
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
|
|
42
|
+
import { BUSINESS_DETAILS_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
|
|
43
|
+
import { PERSONAL_DETAILS_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
|
|
44
|
+
import { RESULT_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
|
|
45
|
+
import { APPLICATION_STATUS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
|
|
46
|
+
import { BankAccountOnboardingWidget as ae } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
|
|
47
|
+
import { WidgetSuite as oe } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
|
|
48
|
+
import { BANKING_COMPLIANCE_BANNER_LABELS_EN as se } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js";
|
|
49
|
+
import { BankingComplianceBannerWidget as ce } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
|
|
50
|
+
import { CounterpartsWidget as le } from "./lib/CounterpartsWidgetPublic.js";
|
|
51
|
+
import { CustomersWidget as ue } from "./libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js";
|
|
52
|
+
import { BALANCES_WIDGET_LABELS_EN as de } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
|
|
53
|
+
import { BalancesWidget as fe } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
|
|
54
54
|
import { OFFER_WIDGET_STATUS_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
|
|
55
55
|
import { OFFER_WIDGET_LABELS_EN as me } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
|
|
56
56
|
import { OfferBenefitIcon as he } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
|
|
57
57
|
import { OfferWidget as ge } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
|
|
58
58
|
import { WidgetProvider as _e } from "./lib/WidgetProviderPublic.js";
|
|
59
|
-
export {
|
|
59
|
+
export { Q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ee as ADDITIONAL_OWNERS_LABELS_EN, ie as APPLICATION_STATUS_LABELS_EN, $ as AcceptDisclosuresWidget, de as BALANCES_WIDGET_LABELS_EN, se as BANKING_COMPLIANCE_BANNER_LABELS_EN, te as BUSINESS_DETAILS_LABELS_EN, fe as BalancesWidget, ae as BankAccountOnboardingWidget, M as BankAccountsWidget, ce as BankingComplianceBannerWidget, N as BillPayWidget, P as CardDetailsWidget, le as CounterpartsWidget, F as CreditCardsWidget, ue as CustomersWidget, I as DebitCardsWidget, h as ERROR_STATE_ID, V as ExpenseManagementWidget, K as HELP_FAQ_EN, L as INSIGHTS_FEATURE_LABELS_EN, R as INSIGHTS_WIDGET_LABELS_EN, B as InsightsWidget, H as InvoicingTab, J as LinkedAccountsWidget, me as OFFER_WIDGET_LABELS_EN, pe as OFFER_WIDGET_STATUS_LABELS_EN, he as OfferBenefitIcon, ge as OfferWidget, d as OnboardingSuppressionReason, ne as PERSONAL_DETAILS_LABELS_EN, U as ProductsWidget, re as RESULT_LABELS_EN, W as ReceivablesWidget, w as RefreshingRootWidgetProvider, x as RootWidgetProvider, z as SINGLE_INSIGHT_LABELS_EN, l as Scope, G as SettingsSection, q as SettingsWidget, e as THEME_TOKEN_NAMES, Y as TRANSFERS_FEATURE_LABELS_EN, X as TRANSFERS_WIDGET_LABELS_EN, Z as TransfersWidget, f as UIFramework, o as WIDGET_SUITE_DEFAULT_SECTIONS, a as WIDGET_SUITE_LABELS_EN, _e as WidgetProvider, oe as WidgetSuite, s as WidgetSuiteSectionId, S as WidgetTokenRefreshProvider, c as cloneEmbeddedClient, i as configureCsp, t as createTheme, g as getGlobalWidgetConfig, y as getGlobalWidgetInitState, u as isScope, p as registerDesignSystemEnsurer, m as registerUIRenderers, _ as setGlobalWidgetConfig, b as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, v as updateGlobalWidgetConfig, T as useDisclosuresAcceptanceSurface, E as useOwnWidgetConfig, D as useRefetchWidget, O as useWidgetConfig, k as useWidgetError, A as useWidgetInitStaleForToken, j as useWidgetLoading, C as useWidgetToken };
|
|
@@ -4602,6 +4602,10 @@ type WidgetSuiteInvoicingLabels = WidgetLabelProps<ReceivablesWidgetProps>;
|
|
|
4602
4602
|
/** The widgets the Dashboard section holds, each taking its own copy. */
|
|
4603
4603
|
interface WidgetSuiteDashboardLabels {
|
|
4604
4604
|
balanceHistory?: WidgetSuiteBalanceHistoryLabels;
|
|
4605
|
+
/**
|
|
4606
|
+
* @deprecated The Dashboard section no longer renders Balances, so this
|
|
4607
|
+
* copy is ignored. Kept so integrators who pass it still compile.
|
|
4608
|
+
*/
|
|
4605
4609
|
balances?: WidgetSuiteBalancesLabels;
|
|
4606
4610
|
insights?: WidgetSuiteInsightsLabels;
|
|
4607
4611
|
}
|
|
@@ -14,7 +14,7 @@ import { useRefetchWidget as ee, useWidgetConfig as te, useWidgetError as ne, us
|
|
|
14
14
|
import { useLocalCalendarDay as ae } from "../../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
|
|
15
15
|
import "../../../../../shared/feature/dist/index.js";
|
|
16
16
|
import { BALANCE_HISTORY_RANGES as oe, BalanceHistoryRange as s, balanceHistoryFetchDates as c, isBalanceHistoryRange as l, isRangeOldEnough as se, localIsoDate as u } from "../balanceHistoryView/balanceHistoryRange.js";
|
|
17
|
-
import { BalanceHistoryCard as ce } from "../../../../ui/dist/
|
|
17
|
+
import { BalanceHistoryCard as ce } from "../../../../ui/dist/lib/BalanceHistoryCard/BalanceHistoryCard.js";
|
|
18
18
|
import "../../../../ui/dist/index.js";
|
|
19
19
|
import { BALANCE_HISTORY_WIDGET_LABELS_EN as d } from "./labels.js";
|
|
20
20
|
import { buildBalanceHistoryView as le, moneyFormatter as f, shortCalendarDate as ue } from "../balanceHistoryView/buildBalanceHistoryView.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "../../../../ui/dist/
|
|
1
|
+
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "../../../../ui/dist/lib/BalanceHistoryCard/labels.js";
|
|
2
2
|
import "../../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js
|
|
4
4
|
var t = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "./
|
|
2
|
-
import { BalanceHistoryCard as t } from "./
|
|
1
|
+
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "./lib/BalanceHistoryCard/labels.js";
|
|
2
|
+
import { BalanceHistoryCard as t } from "./lib/BalanceHistoryCard/BalanceHistoryCard.js";
|
|
3
3
|
export { e as BALANCE_HISTORY_CARD_LABELS_EN, t as BalanceHistoryCard };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Button as e, Combobox as t, DisplayAmount as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Skeleton as c, Tabs as l, TabsList as u, TabsTrigger as d } from "
|
|
2
|
-
import { WidgetFrame as f } from "
|
|
3
|
-
import { StatePanel as p } from "
|
|
4
|
-
import { ErrorState as m } from "
|
|
5
|
-
import { LoadingRegion as h } from "
|
|
6
|
-
import "
|
|
7
|
-
import { BALANCE_HISTORY_CARD_LABELS_EN as g } from "./
|
|
8
|
-
import { BalanceHistoryChart as _ } from "./
|
|
1
|
+
import { Button as e, Combobox as t, DisplayAmount as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Skeleton as c, Tabs as l, TabsList as u, TabsTrigger as d } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { WidgetFrame as f } from "../../../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
|
|
3
|
+
import { StatePanel as p } from "../../../../../shared/ui/dist/lib/StatePanel/StatePanel.js";
|
|
4
|
+
import { ErrorState as m } from "../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
5
|
+
import { LoadingRegion as h } from "../../../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
|
|
6
|
+
import "../../../../../shared/ui/dist/index.js";
|
|
7
|
+
import { BALANCE_HISTORY_CARD_LABELS_EN as g } from "./labels.js";
|
|
8
|
+
import { BalanceHistoryChart as _ } from "./BalanceHistoryChart.js";
|
|
9
9
|
import { useId as v } from "react";
|
|
10
10
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
11
11
|
import { ChartLineIcon as S } from "lucide-react";
|
|
12
|
-
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/
|
|
12
|
+
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/lib/BalanceHistoryCard/BalanceHistoryCard.js
|
|
13
13
|
var C = "ttw:h-56", ee = 10;
|
|
14
14
|
function w({ accountOptions: w, selectedAccount: T, onAccountChange: E, rangeOptions: D, selectedRange: O, onRangeChange: k, change: A, changeSpokenLabel: j, changeDescription: M, points: N, xDomain: P, xTicks: F, yDomain: I, yTicks: L, yTickLabel: R, markFirstPoint: z, emptyNotice: B, isLoading: V = !1, isError: H = !1, onRetry: U, labels: W, testIds: G, className: K, style: q }) {
|
|
15
15
|
let J = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { Area as n, AreaChart as r, CartesianGrid as i, ResponsiveContainer as a, Tooltip as o, XAxis as s, YAxis as c } from "recharts";
|
|
3
|
-
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/lib/BalanceHistoryCard/BalanceHistoryChart.js
|
|
4
4
|
function l({ points: l, seriesName: u, tooltipSeparator: d, xDomain: f, xTicks: p, yDomain: m, yTicks: h, yTickLabel: g, markFirstPoint: _ = !1 }) {
|
|
5
5
|
let v = l.length - 1, y = new Map(p.map((e) => [e.value, e.label]));
|
|
6
6
|
return /* @__PURE__ */ e(a, {
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.125", n = "0cbf635e6428719ad90c21d104a7771f0f49f66b", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -2,51 +2,42 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useControllableState as s } from "@radix-ui/react-use-controllable-state";
|
|
5
|
+
import { createContext as e, useCallback as t, useContext as n, useEffect as r, useState as i } from "react";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import { useControllableState as o } from "@radix-ui/react-use-controllable-state";
|
|
9
8
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuiteProvider.js
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
let [
|
|
13
|
-
prop:
|
|
14
|
-
defaultProp:
|
|
9
|
+
var s = e(null);
|
|
10
|
+
function c({ sections: e, availableSections: n, grantedScopes: c, labels: l, section: u, defaultSection: d, onSectionChange: f, cardArtSrc: p, children: m }) {
|
|
11
|
+
let [h, g] = o({
|
|
12
|
+
prop: u,
|
|
13
|
+
defaultProp: d ?? e[0],
|
|
15
14
|
caller: "WidgetSuite"
|
|
16
|
-
}),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, [p, _]), w = n((t) => {
|
|
27
|
-
b(t), _(e.Accounts), p?.(e.Accounts);
|
|
28
|
-
}, [p, _]), T = n((e) => {
|
|
29
|
-
S(e), _(e), p?.(e);
|
|
30
|
-
}, [p, _]);
|
|
31
|
-
return /* @__PURE__ */ o(c.Provider, {
|
|
15
|
+
}), _ = h && n.includes(h) ? h : n.at(0), [v, y] = i(null);
|
|
16
|
+
r(() => {
|
|
17
|
+
y((e) => e === _ ? e : null);
|
|
18
|
+
}, [_]);
|
|
19
|
+
let b = t((e) => {
|
|
20
|
+
g(e), f?.(e);
|
|
21
|
+
}, [f, g]), x = t((e) => {
|
|
22
|
+
y(e), g(e), f?.(e);
|
|
23
|
+
}, [f, g]);
|
|
24
|
+
return /* @__PURE__ */ a(s.Provider, {
|
|
32
25
|
value: {
|
|
33
|
-
availableSections:
|
|
34
|
-
activeSection:
|
|
35
|
-
grantedScopes:
|
|
36
|
-
labels:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
openFlow: T,
|
|
42
|
-
cardArtSrc: m
|
|
26
|
+
availableSections: n,
|
|
27
|
+
activeSection: _,
|
|
28
|
+
grantedScopes: c,
|
|
29
|
+
labels: l,
|
|
30
|
+
navigate: b,
|
|
31
|
+
arrivingFlow: v,
|
|
32
|
+
openFlow: x,
|
|
33
|
+
cardArtSrc: p
|
|
43
34
|
},
|
|
44
|
-
children:
|
|
35
|
+
children: m
|
|
45
36
|
});
|
|
46
37
|
}
|
|
47
|
-
function
|
|
48
|
-
let e =
|
|
38
|
+
function l() {
|
|
39
|
+
let e = n(s);
|
|
49
40
|
if (!e) throw Error("useWidgetSuiteProvider must be called inside a section rendered by WidgetSuite.");
|
|
50
41
|
return e;
|
|
51
42
|
}
|
|
52
|
-
export {
|
|
43
|
+
export { c as WidgetSuiteProvider, l as useWidgetSuiteProvider };
|
|
@@ -10,11 +10,8 @@ import "../../../../../../bank-accounts-widget/feature/dist/index.js";
|
|
|
10
10
|
import { jsx as r } from "react/jsx-runtime";
|
|
11
11
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js
|
|
12
12
|
function i() {
|
|
13
|
-
let {
|
|
14
|
-
return /* @__PURE__ */ r(n, {
|
|
15
|
-
defaultSelectedAccountId: t,
|
|
16
|
-
...i.sections.accounts
|
|
17
|
-
});
|
|
13
|
+
let { labels: t } = e();
|
|
14
|
+
return /* @__PURE__ */ r(n, { ...t.sections.accounts });
|
|
18
15
|
}
|
|
19
16
|
var a = {
|
|
20
17
|
anyOfScopes: [t.BankAccountReadOrg, t.ExternalBankAccountReadOrg],
|
|
@@ -2,44 +2,31 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { Scope as i } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
10
|
-
import "../../../../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { DashboardQuickActions as a } from "./DashboardQuickActions.js";
|
|
12
|
-
import { BalanceHistoryWidget as o } from "../../../../../../balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js";
|
|
5
|
+
import { WidgetSuiteSectionId as e } from "./sectionIds.js";
|
|
6
|
+
import { useWidgetSuiteProvider as t } from "../WidgetSuiteProvider.js";
|
|
7
|
+
import { DashboardQuickActions as n } from "./DashboardQuickActions.js";
|
|
8
|
+
import { BalanceHistoryWidget as r } from "../../../../../../balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js";
|
|
13
9
|
import "../../../../../../balance-history-widget/feature/dist/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import "../../../../../../balances-widget/feature/dist/index.js";
|
|
16
|
-
import { InsightsWidget as c } from "../../../../../../insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
10
|
+
import { InsightsWidget as i } from "../../../../../../insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
17
11
|
import "../../../../../../insights-widget/feature/dist/index.js";
|
|
18
|
-
import { jsx as
|
|
12
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
19
13
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js
|
|
20
|
-
function
|
|
21
|
-
let {
|
|
22
|
-
return /* @__PURE__ */
|
|
14
|
+
function s() {
|
|
15
|
+
let { availableSections: s, labels: c, navigate: l } = t(), u = s.includes(e.Transfers) ? () => l(e.Transfers) : void 0;
|
|
16
|
+
return /* @__PURE__ */ o("div", {
|
|
23
17
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
24
18
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
...
|
|
28
|
-
onTransferFromExternalClick:
|
|
19
|
+
/* @__PURE__ */ a(n, {}),
|
|
20
|
+
/* @__PURE__ */ a(r, {
|
|
21
|
+
...c.sections.dashboard.balanceHistory,
|
|
22
|
+
onTransferFromExternalClick: u
|
|
29
23
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
...p.sections.dashboard.balances,
|
|
34
|
-
onViewAllAccountsClick: y,
|
|
35
|
-
onBalanceRowClick: _ ? h : void 0
|
|
36
|
-
}), /* @__PURE__ */ l(c, {
|
|
37
|
-
...p.sections.dashboard.insights,
|
|
38
|
-
onLinkExternalAccountClick: b
|
|
39
|
-
})]
|
|
24
|
+
/* @__PURE__ */ a(i, {
|
|
25
|
+
...c.sections.dashboard.insights,
|
|
26
|
+
onLinkExternalAccountClick: u
|
|
40
27
|
})
|
|
41
28
|
]
|
|
42
29
|
});
|
|
43
30
|
}
|
|
44
|
-
var
|
|
45
|
-
export {
|
|
31
|
+
var c = { Content: s };
|
|
32
|
+
export { s as DashboardSection, c as dashboardSection };
|
package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js
CHANGED
|
@@ -11,59 +11,56 @@ import { bankAccountsScenarios as l } from "../../../../bank-accounts-widget/fea
|
|
|
11
11
|
import "../../../../bank-accounts-widget/feature/dist/scenarios.js";
|
|
12
12
|
import { acceptDisclosuresScenarios as u } from "../../../../accept-disclosures-widget/feature/dist/mocks/acceptDisclosures.js";
|
|
13
13
|
import "../../../../accept-disclosures-widget/feature/dist/scenarios.js";
|
|
14
|
-
import {
|
|
15
|
-
import "../../../../
|
|
16
|
-
import { creditCardsScenarios as f } from "../../../../cards-widget/feature/dist/mocks/creditCards.js";
|
|
17
|
-
import { debitCardsScenarios as p } from "../../../../cards-widget/feature/dist/mocks/debitCards.js";
|
|
14
|
+
import { creditCardsScenarios as d } from "../../../../cards-widget/feature/dist/mocks/creditCards.js";
|
|
15
|
+
import { debitCardsScenarios as f } from "../../../../cards-widget/feature/dist/mocks/debitCards.js";
|
|
18
16
|
import "../../../../cards-widget/feature/dist/scenarios.js";
|
|
19
|
-
import { insightsScenarios as
|
|
17
|
+
import { insightsScenarios as p } from "../../../../insights-widget/feature/dist/mocks/insights.js";
|
|
20
18
|
import "../../../../insights-widget/feature/dist/scenarios.js";
|
|
21
|
-
import { linkedAccountsScenarios as
|
|
19
|
+
import { linkedAccountsScenarios as m } from "../../../../linked-accounts-widget/feature/dist/mocks/linkedAccounts.js";
|
|
22
20
|
import "../../../../linked-accounts-widget/feature/dist/scenarios.js";
|
|
23
|
-
import { offerScenarios as
|
|
21
|
+
import { offerScenarios as h } from "../../../../offer-widget/feature/dist/mocks/offer.js";
|
|
24
22
|
import "../../../../offer-widget/feature/dist/scenarios.js";
|
|
25
|
-
import { settingsScenarios as
|
|
23
|
+
import { settingsScenarios as g } from "../../../../settings-widget/feature/dist/mocks/settings.js";
|
|
26
24
|
import "../../../../settings-widget/feature/dist/scenarios.js";
|
|
27
|
-
import { transfersScenarios as
|
|
25
|
+
import { transfersScenarios as _ } from "../../../../transfers-widget/feature/dist/mocks/transfers.js";
|
|
28
26
|
import "../../../../transfers-widget/feature/dist/scenarios.js";
|
|
29
|
-
import { WIDGET_SUITE_LABELS as
|
|
27
|
+
import { WIDGET_SUITE_LABELS as v } from "./labels.js";
|
|
30
28
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js
|
|
31
|
-
var
|
|
29
|
+
var y = (e, t) => {
|
|
32
30
|
let n = e.find((e) => e.key === t);
|
|
33
31
|
if (!n) throw Error(`No scenario '${t}'`);
|
|
34
32
|
return n;
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
], S = (e, t, r) => ({
|
|
33
|
+
}, b = [
|
|
34
|
+
y(l, "populated"),
|
|
35
|
+
y(m, "populated"),
|
|
36
|
+
y(_, "populated"),
|
|
37
|
+
y(p, "populated"),
|
|
38
|
+
y(d, "populated"),
|
|
39
|
+
y(f, "populated"),
|
|
40
|
+
y(c, "populated"),
|
|
41
|
+
y(a, "populated"),
|
|
42
|
+
y(o, "team-queue"),
|
|
43
|
+
y(g, "team"),
|
|
44
|
+
y(h, "default")
|
|
45
|
+
], x = (e, t, r) => ({
|
|
49
46
|
key: e,
|
|
50
|
-
...
|
|
47
|
+
...v.scenarios[e],
|
|
51
48
|
routes: n(t),
|
|
52
49
|
props: r
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
}), S = [
|
|
51
|
+
x("populated", b),
|
|
52
|
+
x("banking-only", b, { sections: [
|
|
56
53
|
"dashboard",
|
|
57
54
|
"accounts",
|
|
58
55
|
"cards",
|
|
59
56
|
"transfers"
|
|
60
57
|
] }),
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
x("prospect", [y(s, "default"), ...b]),
|
|
59
|
+
x("disclosures-owed", [y(u, "default"), ...b]),
|
|
63
60
|
{
|
|
64
61
|
key: "init-failed",
|
|
65
|
-
...
|
|
66
|
-
routes: () => [t((t) => t.endsWith(e), () => r(503, "Service Unavailable", "Init is unavailable.")), ...i(
|
|
62
|
+
...v.scenarios["init-failed"],
|
|
63
|
+
routes: () => [t((t) => t.endsWith(e), () => r(503, "Service Unavailable", "Init is unavailable.")), ...i(y(h, "default"))]
|
|
67
64
|
}
|
|
68
65
|
];
|
|
69
|
-
export {
|
|
66
|
+
export { S as widgetSuiteScenarios };
|