@tesouro/embedded-components-react 0.11.70 → 0.11.71
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 +6 -0
- package/dist/index.d.ts +18 -2
- package/dist/lib/WidgetSuite.d.ts +18 -2
- 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 +12 -4
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/labels.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/CardsSection.js +25 -23
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardQuickActions.js +74 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/InvoicingSection.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/SettingsSection.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js +23 -21
- package/dist/packages/shared-ui-shadcn/dist/index.js +1040 -996
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -3932,6 +3932,9 @@
|
|
|
3932
3932
|
.ttw\:pr-3 {
|
|
3933
3933
|
padding-right: calc(var(--ttw-spacing) * 3);
|
|
3934
3934
|
}
|
|
3935
|
+
.ttw\:pr-4 {
|
|
3936
|
+
padding-right: calc(var(--ttw-spacing) * 4);
|
|
3937
|
+
}
|
|
3935
3938
|
.ttw\:pr-8 {
|
|
3936
3939
|
padding-right: calc(var(--ttw-spacing) * 8);
|
|
3937
3940
|
}
|
|
@@ -5809,6 +5812,9 @@
|
|
|
5809
5812
|
.ttw\:has-\[\>svg\]\:pr-0:has( > svg) {
|
|
5810
5813
|
padding-right: 0px;
|
|
5811
5814
|
}
|
|
5815
|
+
.ttw\:has-\[\>svg\]\:pl-1:has( > svg) {
|
|
5816
|
+
padding-left: var(--ttw-spacing);
|
|
5817
|
+
}
|
|
5812
5818
|
.ttw\:aria-disabled\:pointer-events-none[aria-disabled="true"] {
|
|
5813
5819
|
pointer-events: none;
|
|
5814
5820
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4336,6 +4336,21 @@ interface WidgetSuiteSectionTitleLabels {
|
|
|
4336
4336
|
* Both are places the gate cannot proceed, and neither is reachable by a correct
|
|
4337
4337
|
* integration against a healthy API.
|
|
4338
4338
|
*/
|
|
4339
|
+
/**
|
|
4340
|
+
* The quick actions row atop the Dashboard section. Suite-owned rather than
|
|
4341
|
+
* taken from the dashboards' `QuickActions`, which lives outside the embedded
|
|
4342
|
+
* scope; the wording is kept the same so the three surfaces read alike.
|
|
4343
|
+
*/
|
|
4344
|
+
interface WidgetSuiteQuickActionsLabels {
|
|
4345
|
+
/** Accessible name of the button group. */
|
|
4346
|
+
groupLabel: string;
|
|
4347
|
+
transferMoney: string;
|
|
4348
|
+
payBill: string;
|
|
4349
|
+
createInvoice: string;
|
|
4350
|
+
uploadReceipt: string;
|
|
4351
|
+
issueCard: string;
|
|
4352
|
+
inviteTeammate: string;
|
|
4353
|
+
}
|
|
4339
4354
|
interface WidgetSuiteDisclosureLabels {
|
|
4340
4355
|
/**
|
|
4341
4356
|
* The first init fetch failed before the disclosure flags were known. The suite
|
|
@@ -4463,7 +4478,7 @@ interface WidgetSuiteSectionContentLabels {
|
|
|
4463
4478
|
* Every string the suite puts on screen, including the copy inside the widgets
|
|
4464
4479
|
* it mounts. Two kinds of group, differing in who holds the default:
|
|
4465
4480
|
*
|
|
4466
|
-
* - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `disclosure`,
|
|
4481
|
+
* - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `quickActions`, `disclosure`,
|
|
4467
4482
|
* `onboardingGate`, and the two card-list titles. Defaulted in
|
|
4468
4483
|
* {@link WIDGET_SUITE_LABELS_EN}, with an override merged over it.
|
|
4469
4484
|
* - **Forwarded** — `onboarding`, and every other key under `sections`.
|
|
@@ -4480,6 +4495,7 @@ interface WidgetSuiteLabels {
|
|
|
4480
4495
|
shell: WidgetSuiteShellLabels;
|
|
4481
4496
|
menu: WidgetSuiteMenuLabels;
|
|
4482
4497
|
sectionTitle: WidgetSuiteSectionTitleLabels;
|
|
4498
|
+
quickActions: WidgetSuiteQuickActionsLabels;
|
|
4483
4499
|
disclosure: WidgetSuiteDisclosureLabels;
|
|
4484
4500
|
onboardingGate: WidgetSuiteOnboardingGateLabels;
|
|
4485
4501
|
/** Forwarded to the entry-point onboarding widget, untouched. No default. */
|
|
@@ -6583,4 +6599,4 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
6583
6599
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6584
6600
|
|
|
6585
6601
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, 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, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
6586
|
-
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, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, 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, 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, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, 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 };
|
|
6602
|
+
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, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, 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, 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, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
@@ -3255,6 +3255,21 @@ interface WidgetSuiteSectionTitleLabels {
|
|
|
3255
3255
|
* Both are places the gate cannot proceed, and neither is reachable by a correct
|
|
3256
3256
|
* integration against a healthy API.
|
|
3257
3257
|
*/
|
|
3258
|
+
/**
|
|
3259
|
+
* The quick actions row atop the Dashboard section. Suite-owned rather than
|
|
3260
|
+
* taken from the dashboards' `QuickActions`, which lives outside the embedded
|
|
3261
|
+
* scope; the wording is kept the same so the three surfaces read alike.
|
|
3262
|
+
*/
|
|
3263
|
+
interface WidgetSuiteQuickActionsLabels {
|
|
3264
|
+
/** Accessible name of the button group. */
|
|
3265
|
+
groupLabel: string;
|
|
3266
|
+
transferMoney: string;
|
|
3267
|
+
payBill: string;
|
|
3268
|
+
createInvoice: string;
|
|
3269
|
+
uploadReceipt: string;
|
|
3270
|
+
issueCard: string;
|
|
3271
|
+
inviteTeammate: string;
|
|
3272
|
+
}
|
|
3258
3273
|
interface WidgetSuiteDisclosureLabels {
|
|
3259
3274
|
/**
|
|
3260
3275
|
* The first init fetch failed before the disclosure flags were known. The suite
|
|
@@ -3382,7 +3397,7 @@ interface WidgetSuiteSectionContentLabels {
|
|
|
3382
3397
|
* Every string the suite puts on screen, including the copy inside the widgets
|
|
3383
3398
|
* it mounts. Two kinds of group, differing in who holds the default:
|
|
3384
3399
|
*
|
|
3385
|
-
* - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `disclosure`,
|
|
3400
|
+
* - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `quickActions`, `disclosure`,
|
|
3386
3401
|
* `onboardingGate`, and the two card-list titles. Defaulted in
|
|
3387
3402
|
* {@link WIDGET_SUITE_LABELS_EN}, with an override merged over it.
|
|
3388
3403
|
* - **Forwarded** — `onboarding`, and every other key under `sections`.
|
|
@@ -3399,6 +3414,7 @@ interface WidgetSuiteLabels {
|
|
|
3399
3414
|
shell: WidgetSuiteShellLabels;
|
|
3400
3415
|
menu: WidgetSuiteMenuLabels;
|
|
3401
3416
|
sectionTitle: WidgetSuiteSectionTitleLabels;
|
|
3417
|
+
quickActions: WidgetSuiteQuickActionsLabels;
|
|
3402
3418
|
disclosure: WidgetSuiteDisclosureLabels;
|
|
3403
3419
|
onboardingGate: WidgetSuiteOnboardingGateLabels;
|
|
3404
3420
|
/** Forwarded to the entry-point onboarding widget, untouched. No default. */
|
|
@@ -3546,4 +3562,4 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
3546
3562
|
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
3547
3563
|
|
|
3548
3564
|
export { WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
|
|
3549
|
-
export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
|
|
3565
|
+
export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
|
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.71", n = "eba20db8fdcd4208e5421e28e7b8d94860d6fcea", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -17,10 +17,16 @@ function l({ sections: t, availableSections: r, grantedScopes: l, labels: u, sec
|
|
|
17
17
|
i(() => {
|
|
18
18
|
v !== e.Accounts && b(null);
|
|
19
19
|
}, [v]);
|
|
20
|
-
let x =
|
|
20
|
+
let [x, S] = a(null);
|
|
21
|
+
i(() => {
|
|
22
|
+
S((e) => e === v ? e : null);
|
|
23
|
+
}, [v]);
|
|
24
|
+
let C = n((e) => {
|
|
21
25
|
_(e), p?.(e);
|
|
22
|
-
}, [p, _]),
|
|
26
|
+
}, [p, _]), w = n((t) => {
|
|
23
27
|
b(t), _(e.Accounts), p?.(e.Accounts);
|
|
28
|
+
}, [p, _]), T = n((e) => {
|
|
29
|
+
S(e), _(e), p?.(e);
|
|
24
30
|
}, [p, _]);
|
|
25
31
|
return /* @__PURE__ */ o(c.Provider, {
|
|
26
32
|
value: {
|
|
@@ -29,8 +35,10 @@ function l({ sections: t, availableSections: r, grantedScopes: l, labels: u, sec
|
|
|
29
35
|
grantedScopes: l,
|
|
30
36
|
labels: u,
|
|
31
37
|
arrivingAccountId: y,
|
|
32
|
-
navigate:
|
|
33
|
-
openAccount:
|
|
38
|
+
navigate: C,
|
|
39
|
+
openAccount: w,
|
|
40
|
+
arrivingFlow: x,
|
|
41
|
+
openFlow: T,
|
|
34
42
|
cardArtSrc: m
|
|
35
43
|
},
|
|
36
44
|
children: h
|
|
@@ -16,6 +16,15 @@ var n = {
|
|
|
16
16
|
settings: "Settings"
|
|
17
17
|
},
|
|
18
18
|
sectionTitle: { bankTagline: "Business Banking provided by {bankName}" },
|
|
19
|
+
quickActions: {
|
|
20
|
+
groupLabel: "Quick actions",
|
|
21
|
+
transferMoney: "Transfer money",
|
|
22
|
+
payBill: "Pay a bill",
|
|
23
|
+
createInvoice: "Create an invoice",
|
|
24
|
+
uploadReceipt: "Upload a receipt",
|
|
25
|
+
issueCard: "Issue a card",
|
|
26
|
+
inviteTeammate: "Invite a teammate"
|
|
27
|
+
},
|
|
19
28
|
disclosure: {
|
|
20
29
|
initFailedState: {
|
|
21
30
|
title: "We couldn't load this page",
|
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { WidgetSuiteSectionId as e } from "./sectionIds.js";
|
|
6
|
+
import { useWidgetSuiteProvider as t } from "../WidgetSuiteProvider.js";
|
|
7
|
+
import { Scope as n } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
6
8
|
import "../../../../../../shared/data-access/dist/index.js";
|
|
7
|
-
import { BillPayWidget as
|
|
9
|
+
import { BillPayWidget as r } from "../../../../../../bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
|
|
8
10
|
import "../../../../../../bill-pay-widget/feature/dist/index.js";
|
|
9
|
-
import { jsx as
|
|
11
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
10
12
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
+
function a() {
|
|
14
|
+
let { arrivingFlow: n } = t();
|
|
15
|
+
return /* @__PURE__ */ i(r, { ...n === e.BillPay && { initialView: "create" } });
|
|
13
16
|
}
|
|
14
|
-
var
|
|
15
|
-
anyOfScopes: [
|
|
16
|
-
Content:
|
|
17
|
+
var o = {
|
|
18
|
+
anyOfScopes: [n.PayableReadOrg],
|
|
19
|
+
Content: a
|
|
17
20
|
};
|
|
18
|
-
export {
|
|
21
|
+
export { a as BillPaySection, o as billPaySection };
|
|
@@ -2,39 +2,41 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { WidgetSuiteSectionId as e } from "./sectionIds.js";
|
|
6
|
+
import { useWidgetSuiteProvider as t } from "../WidgetSuiteProvider.js";
|
|
7
|
+
import { hasAnyScope as n } from "../../../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
8
|
+
import { Scope as r } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
8
9
|
import "../../../../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { SectionHeading as
|
|
10
|
+
import { SectionHeading as i } from "../../../../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
|
|
10
11
|
import "../../../../../../shared/ui/dist/index.js";
|
|
11
|
-
import { CreditCardsWidget as
|
|
12
|
-
import { DebitCardsWidget as
|
|
12
|
+
import { CreditCardsWidget as a } from "../../../../../../cards-widget/feature/dist/lib/CreditCardsWidget.js";
|
|
13
|
+
import { DebitCardsWidget as o } from "../../../../../../cards-widget/feature/dist/lib/DebitCardsWidget.js";
|
|
13
14
|
import "../../../../../../cards-widget/feature/dist/index.js";
|
|
14
|
-
import { jsx as
|
|
15
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
15
16
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/CardsSection.js
|
|
16
|
-
function
|
|
17
|
-
let { grantedScopes:
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
function l() {
|
|
18
|
+
let { grantedScopes: l, labels: u, cardArtSrc: d, arrivingFlow: f } = t(), p = u.sections.cards, m = n(l, [r.CreditCardReadOrg]), h = n(l, [r.DebitCardReadOrg]), g = m && h;
|
|
19
|
+
return /* @__PURE__ */ c("div", {
|
|
19
20
|
className: "ttw:grid ttw:gap-8",
|
|
20
|
-
children: [
|
|
21
|
-
...
|
|
22
|
-
headerStart:
|
|
21
|
+
children: [m && /* @__PURE__ */ s(a, {
|
|
22
|
+
...p.creditCards,
|
|
23
|
+
headerStart: g && /* @__PURE__ */ s(i, {
|
|
23
24
|
className: "ttw:mb-0",
|
|
24
|
-
children:
|
|
25
|
+
children: p.creditCardsTitle
|
|
25
26
|
})
|
|
26
|
-
}),
|
|
27
|
-
...
|
|
28
|
-
cardArtSrc:
|
|
29
|
-
|
|
27
|
+
}), h && /* @__PURE__ */ s(o, {
|
|
28
|
+
...p.debitCards,
|
|
29
|
+
cardArtSrc: d,
|
|
30
|
+
...f === e.Cards && { initialView: "create" },
|
|
31
|
+
headerStart: g && /* @__PURE__ */ s(i, {
|
|
30
32
|
className: "ttw:mb-0",
|
|
31
|
-
children:
|
|
33
|
+
children: p.debitCardsTitle
|
|
32
34
|
})
|
|
33
35
|
})]
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
|
-
var
|
|
37
|
-
anyOfScopes: [
|
|
38
|
-
Content:
|
|
38
|
+
var u = {
|
|
39
|
+
anyOfScopes: [r.CreditCardReadOrg, r.DebitCardReadOrg],
|
|
40
|
+
Content: l
|
|
39
41
|
};
|
|
40
|
-
export {
|
|
42
|
+
export { l as CardsSection, u as cardsSection };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { QuickActionsBar as e } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { WidgetSuiteSectionId as t } from "./sectionIds.js";
|
|
7
|
+
import { useWidgetSuiteProvider as n } from "../WidgetSuiteProvider.js";
|
|
8
|
+
import { hasAnyScope as r } from "../../../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
9
|
+
import { Scope as i } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
10
|
+
import "../../../../../../shared/data-access/dist/index.js";
|
|
11
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
12
|
+
import { ArrowRightLeft as o, Banknote as s, CreditCard as c, File as l, ReceiptText as u, UserPlus as d } from "lucide-react";
|
|
13
|
+
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardQuickActions.js
|
|
14
|
+
var f = {
|
|
15
|
+
root: "widget-suite-quick-actions",
|
|
16
|
+
transferMoney: "widget-suite-quick-actions-transfer-money",
|
|
17
|
+
payBill: "widget-suite-quick-actions-pay-bill",
|
|
18
|
+
createInvoice: "widget-suite-quick-actions-create-invoice",
|
|
19
|
+
uploadReceipt: "widget-suite-quick-actions-upload-receipt",
|
|
20
|
+
issueCard: "widget-suite-quick-actions-issue-card",
|
|
21
|
+
inviteTeammate: "widget-suite-quick-actions-invite-teammate"
|
|
22
|
+
}, p = [
|
|
23
|
+
{
|
|
24
|
+
key: "transferMoney",
|
|
25
|
+
section: t.Transfers,
|
|
26
|
+
anyOfScopes: [i.TransferWriteOrg],
|
|
27
|
+
icon: /* @__PURE__ */ a(o, {})
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "payBill",
|
|
31
|
+
section: t.BillPay,
|
|
32
|
+
anyOfScopes: [i.PayablePayOrg],
|
|
33
|
+
icon: /* @__PURE__ */ a(s, {})
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: "createInvoice",
|
|
37
|
+
section: t.Invoicing,
|
|
38
|
+
anyOfScopes: [i.InvoiceWriteOrg],
|
|
39
|
+
icon: /* @__PURE__ */ a(l, {})
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: "uploadReceipt",
|
|
43
|
+
section: t.Expenses,
|
|
44
|
+
anyOfScopes: [i.ExpenseWriteSelf, i.ExpenseWriteOrg],
|
|
45
|
+
icon: /* @__PURE__ */ a(u, {})
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: "issueCard",
|
|
49
|
+
section: t.Cards,
|
|
50
|
+
anyOfScopes: [i.DebitCardIssueOrg],
|
|
51
|
+
icon: /* @__PURE__ */ a(c, {})
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: "inviteTeammate",
|
|
55
|
+
section: t.Settings,
|
|
56
|
+
anyOfScopes: [i.UserWriteOrg],
|
|
57
|
+
icon: /* @__PURE__ */ a(d, {})
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
function m() {
|
|
61
|
+
let { grantedScopes: t, availableSections: i, labels: o, openFlow: s } = n(), c = p.filter(({ section: e, anyOfScopes: n }) => i.includes(e) && r(t, n)).map(({ key: e, section: t, icon: n }) => ({
|
|
62
|
+
id: e,
|
|
63
|
+
label: o.quickActions[e],
|
|
64
|
+
icon: n,
|
|
65
|
+
onClick: () => s(t),
|
|
66
|
+
testId: f[e]
|
|
67
|
+
}));
|
|
68
|
+
return /* @__PURE__ */ a(e, {
|
|
69
|
+
actions: c,
|
|
70
|
+
labels: { groupLabel: o.quickActions.groupLabel },
|
|
71
|
+
testIds: { root: f.root }
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export { f as DASHBOARD_QUICK_ACTIONS_TEST_IDS, m as DashboardQuickActions };
|
|
@@ -8,25 +8,29 @@ import { useWidgetSuiteProvider as n } from "../WidgetSuiteProvider.js";
|
|
|
8
8
|
import { hasAnyScope as r } from "../../../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
9
9
|
import { Scope as i } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
10
10
|
import "../../../../../../shared/data-access/dist/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { DashboardQuickActions as a } from "./DashboardQuickActions.js";
|
|
12
|
+
import { BalancesWidget as o } from "../../../../../../balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
|
|
12
13
|
import "../../../../../../balances-widget/feature/dist/index.js";
|
|
13
|
-
import { InsightsWidget as
|
|
14
|
+
import { InsightsWidget as s } from "../../../../../../insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
14
15
|
import "../../../../../../insights-widget/feature/dist/index.js";
|
|
15
|
-
import { jsx as
|
|
16
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
16
17
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js
|
|
17
|
-
function
|
|
18
|
-
let { grantedScopes:
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
className:
|
|
21
|
-
children: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
function u() {
|
|
19
|
+
let { grantedScopes: u, availableSections: d, labels: f, navigate: p, openAccount: m } = n(), h = r(u, [i.BankAccountReadOrg]), g = d.includes(t.Accounts), _ = d.includes(t.Transfers), v = g ? () => p(t.Accounts) : void 0;
|
|
20
|
+
return /* @__PURE__ */ l("div", {
|
|
21
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
22
|
+
children: [/* @__PURE__ */ c(a, {}), /* @__PURE__ */ l("div", {
|
|
23
|
+
className: e("ttw:grid ttw:gap-4", h && "ttw:md:grid-cols-2"),
|
|
24
|
+
children: [h && /* @__PURE__ */ c(o, {
|
|
25
|
+
...f.sections.dashboard.balances,
|
|
26
|
+
onViewAllAccountsClick: v,
|
|
27
|
+
onBalanceRowClick: g ? m : void 0
|
|
28
|
+
}), /* @__PURE__ */ c(s, {
|
|
29
|
+
...f.sections.dashboard.insights,
|
|
30
|
+
onLinkExternalAccountClick: _ ? () => p(t.Transfers) : void 0
|
|
31
|
+
})]
|
|
28
32
|
})]
|
|
29
33
|
});
|
|
30
34
|
}
|
|
31
|
-
var
|
|
32
|
-
export {
|
|
35
|
+
var d = { Content: u };
|
|
36
|
+
export { u as DashboardSection, d as dashboardSection };
|
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { WidgetSuiteSectionId as e } from "./sectionIds.js";
|
|
6
|
+
import { useWidgetSuiteProvider as t } from "../WidgetSuiteProvider.js";
|
|
7
|
+
import { Scope as n } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
6
8
|
import "../../../../../../shared/data-access/dist/index.js";
|
|
7
|
-
import { ReceivablesWidget as
|
|
9
|
+
import { ReceivablesWidget as r } from "../../../../../../invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
8
10
|
import "../../../../../../invoicing-widget/feature/dist/index.js";
|
|
9
|
-
import { jsx as
|
|
11
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
10
12
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/InvoicingSection.js
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
+
function a({ renderTitle: n } = {}) {
|
|
14
|
+
let { arrivingFlow: a } = t();
|
|
15
|
+
return /* @__PURE__ */ i(r, {
|
|
16
|
+
headerStart: n?.(),
|
|
17
|
+
...a === e.Invoicing && { initialView: "create" }
|
|
18
|
+
});
|
|
13
19
|
}
|
|
14
|
-
var
|
|
15
|
-
anyOfScopes: [
|
|
20
|
+
var o = {
|
|
21
|
+
anyOfScopes: [n.InvoiceReadOrg],
|
|
16
22
|
placesOwnTitle: !0,
|
|
17
|
-
Content:
|
|
23
|
+
Content: a
|
|
18
24
|
};
|
|
19
|
-
export {
|
|
25
|
+
export { a as InvoicingSection, o as invoicingSection };
|
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { WidgetSuiteSectionId as e } from "./sectionIds.js";
|
|
6
|
+
import { useWidgetSuiteProvider as t } from "../WidgetSuiteProvider.js";
|
|
7
|
+
import { SettingsWidget as n } from "../../../../../../settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js";
|
|
7
8
|
import "../../../../../../settings-widget/feature/dist/index.js";
|
|
8
|
-
import { jsx as
|
|
9
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
9
10
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/SettingsSection.js
|
|
10
|
-
function
|
|
11
|
-
let { labels:
|
|
12
|
-
return /* @__PURE__ */ n
|
|
11
|
+
function i() {
|
|
12
|
+
let { labels: i, arrivingFlow: a } = t();
|
|
13
|
+
return /* @__PURE__ */ r(n, {
|
|
14
|
+
...i.sections.settings,
|
|
15
|
+
...a === e.Settings && {
|
|
16
|
+
defaultSelectedSection: "team",
|
|
17
|
+
teamInitialView: "invite"
|
|
18
|
+
}
|
|
19
|
+
});
|
|
13
20
|
}
|
|
14
|
-
var
|
|
15
|
-
export {
|
|
21
|
+
var a = { Content: i };
|
|
22
|
+
export { i as SettingsSection, a as settingsSection };
|
|
@@ -2,33 +2,35 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { WidgetSuiteSectionId as e } from "./sectionIds.js";
|
|
6
|
+
import { useWidgetSuiteProvider as t } from "../WidgetSuiteProvider.js";
|
|
7
|
+
import { hasAnyScope as n } from "../../../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
8
|
+
import { Scope as r } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
8
9
|
import "../../../../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { LinkedAccountsWidget as
|
|
10
|
+
import { LinkedAccountsWidget as i } from "../../../../../../linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js";
|
|
10
11
|
import "../../../../../../linked-accounts-widget/feature/dist/index.js";
|
|
11
|
-
import { TransfersWidget as
|
|
12
|
+
import { TransfersWidget as a } from "../../../../../../transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
|
|
12
13
|
import "../../../../../../transfers-widget/feature/dist/index.js";
|
|
13
|
-
import { useState as
|
|
14
|
-
import { jsx as
|
|
14
|
+
import { useState as o } from "react";
|
|
15
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
15
16
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js
|
|
16
|
-
function
|
|
17
|
-
let { grantedScopes:
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
function l() {
|
|
18
|
+
let { grantedScopes: l, labels: u, arrivingFlow: d } = t(), f = n(l, [r.ExternalBankAccountReadOrg]), p = f && n(l, [r.ExternalBankAccountWriteOrg]), [m, h] = o(!1);
|
|
19
|
+
return /* @__PURE__ */ c("div", {
|
|
19
20
|
className: "ttw:grid ttw:gap-4",
|
|
20
|
-
children: [
|
|
21
|
-
...
|
|
22
|
-
isLinkAccountOpen:
|
|
23
|
-
onLinkAccountOpenChange:
|
|
24
|
-
}), /* @__PURE__ */
|
|
25
|
-
...
|
|
26
|
-
|
|
21
|
+
children: [f && /* @__PURE__ */ s(i, {
|
|
22
|
+
...u.sections.linkedAccounts,
|
|
23
|
+
isLinkAccountOpen: m,
|
|
24
|
+
onLinkAccountOpenChange: h
|
|
25
|
+
}), /* @__PURE__ */ s(a, {
|
|
26
|
+
...u.sections.transfers,
|
|
27
|
+
...d === e.Transfers && { defaultIsTransferMoneyOpen: !0 },
|
|
28
|
+
onLinkAccountClick: p ? () => h(!0) : void 0
|
|
27
29
|
})]
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
|
-
var
|
|
31
|
-
anyOfScopes: [
|
|
32
|
-
Content:
|
|
32
|
+
var u = {
|
|
33
|
+
anyOfScopes: [r.BankAccountReadOrg],
|
|
34
|
+
Content: l
|
|
33
35
|
};
|
|
34
|
-
export {
|
|
36
|
+
export { l as TransfersSection, u as transfersSection };
|