@tesouro/embedded-components-react 0.3.63 → 0.4.1
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 +1 -70
- package/dist/index.d.ts +67 -832
- package/dist/index.js +18 -34
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/SettingsWidget.d.ts +53 -7
- package/dist/lib/SettingsWidget.js +4 -2
- package/dist/lib/WidgetSuite.d.ts +38 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +7 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +56 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +18 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +126 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +22 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +40 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +5 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +72 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +47 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +91 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +33 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +167 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +23 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +199 -203
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +198 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +105 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +27 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +198 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +30 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +240 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +18 -341
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +343 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +31 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -163
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +170 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +125 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +239 -101
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +107 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +209 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index4.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +35 -32
- 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/index8.js +1 -1
- package/package.json +1 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +0 -958
- package/dist/lib/ChartOfAccountsWidget.js +0 -9
- package/dist/lib/HelpWidget.d.ts +0 -739
- package/dist/lib/HelpWidget.js +0 -6
- package/dist/lib/ProfileWidget.d.ts +0 -672
- package/dist/lib/ProfileWidget.js +0 -3
- package/dist/lib/TagsWidget.d.ts +0 -719
- package/dist/lib/TagsWidget.js +0 -3
- package/dist/lib/TeamWidget.d.ts +0 -878
- package/dist/lib/TeamWidget.js +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo, ReactElement } from 'react';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
|
-
import { SortingState, OnChangeFn } from '@tanstack/react-table';
|
|
5
4
|
|
|
6
5
|
type AuthToken = string | undefined;
|
|
7
6
|
interface Auth {
|
|
@@ -1411,7 +1410,7 @@ interface BalancesWidgetProps extends WidgetProviderProps, BalancesWidgetPassthr
|
|
|
1411
1410
|
}
|
|
1412
1411
|
declare function BalancesWidget({ maxAccounts, labels, onBalanceRowClick, onViewAllAccountsClick, ...widgetProviderProps }: BalancesWidgetProps): React.JSX.Element;
|
|
1413
1412
|
|
|
1414
|
-
interface Labels$
|
|
1413
|
+
interface Labels$4 {
|
|
1415
1414
|
bankingTaglinePrefix: string;
|
|
1416
1415
|
availableBalanceLabel: string;
|
|
1417
1416
|
availableBalanceTooltip: string;
|
|
@@ -1449,7 +1448,7 @@ interface Labels$6 {
|
|
|
1449
1448
|
errorTitle: string;
|
|
1450
1449
|
}
|
|
1451
1450
|
|
|
1452
|
-
interface Labels$
|
|
1451
|
+
interface Labels$3 {
|
|
1453
1452
|
backToAccounts: string;
|
|
1454
1453
|
bankingTaglinePrefix: string;
|
|
1455
1454
|
availableBalanceLabel: string;
|
|
@@ -1501,7 +1500,7 @@ interface Labels$5 {
|
|
|
1501
1500
|
errorTitle: string;
|
|
1502
1501
|
}
|
|
1503
1502
|
|
|
1504
|
-
interface FeatureLabels$
|
|
1503
|
+
interface FeatureLabels$3 {
|
|
1505
1504
|
accountFallback: string;
|
|
1506
1505
|
createSuccessToast: string;
|
|
1507
1506
|
editSuccessToast: string;
|
|
@@ -1516,9 +1515,9 @@ interface FeatureLabels$5 {
|
|
|
1516
1515
|
}
|
|
1517
1516
|
|
|
1518
1517
|
interface BankAccountsWidgetProps extends WidgetProviderProps {
|
|
1519
|
-
labels?: Partial<Labels$
|
|
1520
|
-
accountDetailsLabels?: Partial<Labels$
|
|
1521
|
-
featureLabels?: Partial<FeatureLabels$
|
|
1518
|
+
labels?: Partial<Labels$4>;
|
|
1519
|
+
accountDetailsLabels?: Partial<Labels$3>;
|
|
1520
|
+
featureLabels?: Partial<FeatureLabels$3>;
|
|
1522
1521
|
isBankingTaglineVisible?: boolean;
|
|
1523
1522
|
/**
|
|
1524
1523
|
* Bank logo for the tagline row. The widget ships no bank artwork of its own —
|
|
@@ -2452,7 +2451,7 @@ interface InsightsWidgetProps extends WidgetProviderProps, InsightsWidgetPassthr
|
|
|
2452
2451
|
}
|
|
2453
2452
|
declare function InsightsWidget({ labels, singleInsightLabels, featureLabels, routingEnabled, onRoutingToggleChange, onLinkExternalAccountClick, ...widgetProviderProps }: InsightsWidgetProps): React.JSX.Element;
|
|
2454
2453
|
|
|
2455
|
-
interface Labels$
|
|
2454
|
+
interface Labels$2 {
|
|
2456
2455
|
description?: string;
|
|
2457
2456
|
}
|
|
2458
2457
|
|
|
@@ -2462,6 +2461,47 @@ interface SettingsWidgetSection {
|
|
|
2462
2461
|
content: ReactNode;
|
|
2463
2462
|
}
|
|
2464
2463
|
|
|
2464
|
+
/**
|
|
2465
|
+
* Static FAQ content for the Help widget.
|
|
2466
|
+
*
|
|
2467
|
+
* The shape mirrors the original MUI `HelpPage` rich-text model so the renderer
|
|
2468
|
+
* can reproduce paragraphs, ordered/unordered bullet lists, nested bullets, and
|
|
2469
|
+
* inline `<bold>…</bold>` runs. Callers may supply their own `HelpFaqSection[]`
|
|
2470
|
+
* to override the default content below.
|
|
2471
|
+
*/
|
|
2472
|
+
/** Which list marker to render for a group of bullet points. */
|
|
2473
|
+
type HelpFaqBulletType = 'bullet' | 'numeric';
|
|
2474
|
+
/** A single bullet point, optionally with its own nested list. */
|
|
2475
|
+
interface HelpFaqBullet {
|
|
2476
|
+
text: string;
|
|
2477
|
+
bulletPointType?: HelpFaqBulletType;
|
|
2478
|
+
bulletPoints?: HelpFaqBullet[];
|
|
2479
|
+
}
|
|
2480
|
+
/** One answer block: a paragraph, optionally followed by a bullet list. */
|
|
2481
|
+
interface HelpFaqAnswer {
|
|
2482
|
+
text: string;
|
|
2483
|
+
bulletPointType?: HelpFaqBulletType;
|
|
2484
|
+
bulletPoints?: HelpFaqBullet[];
|
|
2485
|
+
}
|
|
2486
|
+
/** A question and its ordered list of answer blocks. */
|
|
2487
|
+
interface HelpFaqItem {
|
|
2488
|
+
question: string;
|
|
2489
|
+
answers: HelpFaqAnswer[];
|
|
2490
|
+
}
|
|
2491
|
+
/** A titled group of questions rendered as a single card. */
|
|
2492
|
+
interface HelpFaqSection {
|
|
2493
|
+
title: string;
|
|
2494
|
+
items: HelpFaqItem[];
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
* Default English FAQ content, ported from the original
|
|
2498
|
+
* `embedded-banking-dashboard-settings` Help page (`defaultWidgetFaqContent` —
|
|
2499
|
+
* the embedded-widget variant, which omits the password-management questions
|
|
2500
|
+
* since embedded users authenticate through the provider). A stray "Testing 1"
|
|
2501
|
+
* placeholder bullet from the source has been dropped.
|
|
2502
|
+
*/
|
|
2503
|
+
declare const HELP_FAQ_EN: HelpFaqSection[];
|
|
2504
|
+
|
|
2465
2505
|
interface FinopsThemeColors {
|
|
2466
2506
|
primary?: string;
|
|
2467
2507
|
primaryForeground?: string;
|
|
@@ -2472,7 +2512,7 @@ interface MoniteWrapperProps {
|
|
|
2472
2512
|
|
|
2473
2513
|
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
2474
2514
|
|
|
2475
|
-
interface FeatureLabels$
|
|
2515
|
+
interface FeatureLabels$2 {
|
|
2476
2516
|
profileSection: string;
|
|
2477
2517
|
teamSection: string;
|
|
2478
2518
|
invoiceSection: string;
|
|
@@ -2526,8 +2566,8 @@ interface SettingsWidgetAdditionalSection extends SettingsWidgetSection {
|
|
|
2526
2566
|
}
|
|
2527
2567
|
|
|
2528
2568
|
interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
2529
|
-
labels?: Partial<Labels$
|
|
2530
|
-
featureLabels?: Partial<FeatureLabels$
|
|
2569
|
+
labels?: Partial<Labels$2>;
|
|
2570
|
+
featureLabels?: Partial<FeatureLabels$2>;
|
|
2531
2571
|
/** Forwarded to the embedded Team section's {@link TeamWidget} — the
|
|
2532
2572
|
* allowlisted URL invite emails link to. Defaults to
|
|
2533
2573
|
* `${window.location.origin}/accept-invite`; set it when the host app's
|
|
@@ -2540,6 +2580,11 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
2540
2580
|
* support address to fall back on. The bank name in that line comes from
|
|
2541
2581
|
* widget init, so this is the only value a host needs to supply. */
|
|
2542
2582
|
helpContactUrl?: string;
|
|
2583
|
+
/** Forwarded to the embedded Help section's {@link HelpWidget} — the FAQ it
|
|
2584
|
+
* renders. Defaults to the package's own list. A host that owns surfaces the
|
|
2585
|
+
* package cannot answer for (passwords, say) supplies an extended list here;
|
|
2586
|
+
* it is the reason a host does not need `helpContent` just to change copy. */
|
|
2587
|
+
helpFaq?: HelpFaqSection[];
|
|
2543
2588
|
/** Forwarded to the embedded Profile section's {@link ProfileWidget} — where
|
|
2544
2589
|
* its "to change this information, contact your bank" line links. The line
|
|
2545
2590
|
* falls back to a plain, unlinked sentence when unset, for the same reason
|
|
@@ -2645,17 +2690,17 @@ interface TransfersWidgetLabels {
|
|
|
2645
2690
|
}
|
|
2646
2691
|
declare const TRANSFERS_WIDGET_LABELS_EN: TransfersWidgetLabels;
|
|
2647
2692
|
|
|
2648
|
-
interface FeatureLabels$
|
|
2693
|
+
interface FeatureLabels$1 {
|
|
2649
2694
|
unavailableLabel: string;
|
|
2650
2695
|
routeSeparator: string;
|
|
2651
2696
|
defaultCurrencyCode: string;
|
|
2652
2697
|
defaultSecCode: string;
|
|
2653
2698
|
}
|
|
2654
|
-
declare const DEFAULT_FEATURE_LABELS: FeatureLabels$
|
|
2699
|
+
declare const DEFAULT_FEATURE_LABELS: FeatureLabels$1;
|
|
2655
2700
|
|
|
2656
2701
|
interface TransfersWidgetPassthroughProps {
|
|
2657
2702
|
labels?: Partial<TransfersWidgetLabels>;
|
|
2658
|
-
featureLabels?: Partial<FeatureLabels$
|
|
2703
|
+
featureLabels?: Partial<FeatureLabels$1>;
|
|
2659
2704
|
/**
|
|
2660
2705
|
* Whether the transfer money modal is showing. Supplying it makes the modal
|
|
2661
2706
|
* controlled: the widget reports every open and close through
|
|
@@ -3676,7 +3721,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
|
|
|
3676
3721
|
*/
|
|
3677
3722
|
declare function CounterpartsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: CounterpartsWidgetProps): React.JSX.Element;
|
|
3678
3723
|
|
|
3679
|
-
interface Labels$
|
|
3724
|
+
interface Labels$1 {
|
|
3680
3725
|
description: string;
|
|
3681
3726
|
receiptsTab: string;
|
|
3682
3727
|
matchingTab: string;
|
|
@@ -3710,7 +3755,7 @@ interface UploadReceiptWidgetProps {
|
|
|
3710
3755
|
declare function UploadReceiptWidget({ emailAddress, onFileUpload, onAwaitMatching, isUploading, }: UploadReceiptWidgetProps): React.JSX.Element;
|
|
3711
3756
|
|
|
3712
3757
|
interface ExpenseManagementWidgetProps extends WidgetProviderProps {
|
|
3713
|
-
labels?: Partial<Labels$
|
|
3758
|
+
labels?: Partial<Labels$1>;
|
|
3714
3759
|
receiptUpload?: UploadReceiptWidgetProps;
|
|
3715
3760
|
receiptsContent?: ReactNode;
|
|
3716
3761
|
matchingContent?: ReactNode;
|
|
@@ -3744,440 +3789,6 @@ type ExpenseRequirementsWidgetProps = WidgetProviderProps & {
|
|
|
3744
3789
|
};
|
|
3745
3790
|
declare function ExpenseRequirementsWidget({ token, orgId, widgetToken, organizationId, baseUrl, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, disclosuresAcceptance, providerLabels, }?: ExpenseRequirementsWidgetProps): React.JSX.Element;
|
|
3746
3791
|
|
|
3747
|
-
/**
|
|
3748
|
-
* Co-located user-facing strings for every chart-of-accounts surface: the table,
|
|
3749
|
-
* the create/edit sheet, and the delete confirmation. Each component takes a
|
|
3750
|
-
* `labels?: Partial<…Labels>` prop merged over the matching `*_LABELS_EN`
|
|
3751
|
-
* default.
|
|
3752
|
-
*
|
|
3753
|
-
* This is the single home for the widget's translation surface. Keeping any of
|
|
3754
|
-
* it next to a component instead splits what a translator has to find.
|
|
3755
|
-
*
|
|
3756
|
-
* The copy follows the Chart of accounts design, which calls each row an
|
|
3757
|
-
* "account" rather than a "GL code" or a "category": the GL code is one field on
|
|
3758
|
-
* an account, not the thing itself.
|
|
3759
|
-
*/
|
|
3760
|
-
interface ChartOfAccountsLabels {
|
|
3761
|
-
/** Section heading, and the sentence beneath it explaining what the list is. */
|
|
3762
|
-
subtitle: string;
|
|
3763
|
-
columnGlCode: string;
|
|
3764
|
-
columnName: string;
|
|
3765
|
-
columnDescription: string;
|
|
3766
|
-
columnActions: string;
|
|
3767
|
-
actionEdit: string;
|
|
3768
|
-
actionDelete: string;
|
|
3769
|
-
/** Accessible name for the icon-only sort control in the name column. */
|
|
3770
|
-
sortByName: string;
|
|
3771
|
-
openActionsMenu: string;
|
|
3772
|
-
/** Toolbar and empty-state call to action. */
|
|
3773
|
-
addAccount: string;
|
|
3774
|
-
emptyTitle: string;
|
|
3775
|
-
emptyDescription: string;
|
|
3776
|
-
/**
|
|
3777
|
-
* Shown instead of {@link ChartOfAccountsLabels.emptyTitle} when a later page
|
|
3778
|
-
* comes back empty, which happens when the rows it held were deleted. The
|
|
3779
|
-
* organization still has accounts, so the copy must not claim otherwise.
|
|
3780
|
-
*/
|
|
3781
|
-
emptyPageTitle: string;
|
|
3782
|
-
emptyPageDescription: string;
|
|
3783
|
-
errorTitle: string;
|
|
3784
|
-
errorDescription: string;
|
|
3785
|
-
paginationPrev: string;
|
|
3786
|
-
paginationNext: string;
|
|
3787
|
-
}
|
|
3788
|
-
declare const CHART_OF_ACCOUNTS_LABELS_EN: ChartOfAccountsLabels;
|
|
3789
|
-
/**
|
|
3790
|
-
* Copy for the create/edit sheet.
|
|
3791
|
-
*
|
|
3792
|
-
* Four of these are resolved by the **owner** rather than by `AccountFormSheet`:
|
|
3793
|
-
* `createTitle`, `createDescription`, `editDescription`, and `descriptionCounter`.
|
|
3794
|
-
* The sheet takes an already-assembled `title`, `description`, and
|
|
3795
|
-
* `descriptionCounterText`, because choosing between create and edit copy is form
|
|
3796
|
-
* policy and filling `{count}`/`{max}` is formatting, neither of which belongs in
|
|
3797
|
-
* a presentational component. They stay in this file anyway: it is the single
|
|
3798
|
-
* home for the widget's translation surface, and splitting it by which layer
|
|
3799
|
-
* happens to read a key would make a translator hunt in two places.
|
|
3800
|
-
*
|
|
3801
|
-
* There is no `editTitle`. The design titles the edit sheet with the account's
|
|
3802
|
-
* own name, verbatim, so there is no template to translate.
|
|
3803
|
-
*/
|
|
3804
|
-
interface AccountFormSheetLabels {
|
|
3805
|
-
/** Create-mode heading. Owner-resolved. */
|
|
3806
|
-
createTitle: string;
|
|
3807
|
-
/** Screen-reader description of the edit sheet's purpose. Owner-resolved. */
|
|
3808
|
-
editDescription: string;
|
|
3809
|
-
/** Screen-reader description of the create sheet's purpose. Owner-resolved. */
|
|
3810
|
-
createDescription: string;
|
|
3811
|
-
glCodeLabel: string;
|
|
3812
|
-
glCodePlaceholder: string;
|
|
3813
|
-
nameLabel: string;
|
|
3814
|
-
namePlaceholder: string;
|
|
3815
|
-
descriptionLabel: string;
|
|
3816
|
-
descriptionPlaceholder: string;
|
|
3817
|
-
/**
|
|
3818
|
-
* `{count}` and `{max}` are replaced with the current and maximum length.
|
|
3819
|
-
* Owner-resolved; the sheet renders the finished `descriptionCounterText`.
|
|
3820
|
-
*/
|
|
3821
|
-
descriptionCounter: string;
|
|
3822
|
-
cancelButton: string;
|
|
3823
|
-
saveButton: string;
|
|
3824
|
-
/** Tooltip on a disabled save, explaining why it cannot be pressed yet. */
|
|
3825
|
-
saveDisabledHint: string;
|
|
3826
|
-
openAccountMenu: string;
|
|
3827
|
-
deleteAction: string;
|
|
3828
|
-
/**
|
|
3829
|
-
* Accessible name for the sheet's close control. The built-in `SheetContent`
|
|
3830
|
-
* close is switched off in favour of one this widget owns, so the copy stays
|
|
3831
|
-
* inside the label contract instead of the primitive's hardcoded "Close".
|
|
3832
|
-
*/
|
|
3833
|
-
closeSheet: string;
|
|
3834
|
-
}
|
|
3835
|
-
declare const ACCOUNT_FORM_SHEET_LABELS_EN: AccountFormSheetLabels;
|
|
3836
|
-
interface AccountDeleteDialogLabels {
|
|
3837
|
-
/**
|
|
3838
|
-
* `{name}` is replaced with the account name. Owner-resolved, for the same
|
|
3839
|
-
* reason as the sheet's titles above: the dialog takes a finished `title`
|
|
3840
|
-
* rather than a domain value plus a template.
|
|
3841
|
-
*/
|
|
3842
|
-
title: string;
|
|
3843
|
-
/** Used when the owner passes no `message`, which is the normal case. */
|
|
3844
|
-
message: string;
|
|
3845
|
-
confirmButton: string;
|
|
3846
|
-
cancelButton: string;
|
|
3847
|
-
}
|
|
3848
|
-
declare const ACCOUNT_DELETE_DIALOG_LABELS_EN: AccountDeleteDialogLabels;
|
|
3849
|
-
|
|
3850
|
-
type LedgerAccountRow = {
|
|
3851
|
-
id: string;
|
|
3852
|
-
name: string;
|
|
3853
|
-
nominal_code: string;
|
|
3854
|
-
description: string;
|
|
3855
|
-
/**
|
|
3856
|
-
* True when the account came from an external accounting system. The API
|
|
3857
|
-
* refuses to update or delete these (403), so row actions are withheld.
|
|
3858
|
-
*/
|
|
3859
|
-
is_external?: boolean;
|
|
3860
|
-
};
|
|
3861
|
-
interface ChartOfAccountsTableProps {
|
|
3862
|
-
data: LedgerAccountRow[];
|
|
3863
|
-
isLoading?: boolean;
|
|
3864
|
-
isError?: boolean;
|
|
3865
|
-
sorting: SortingState;
|
|
3866
|
-
onSortingChange: OnChangeFn<SortingState>;
|
|
3867
|
-
pageSize: number;
|
|
3868
|
-
onPageSizeChange: (pageSize: number) => void;
|
|
3869
|
-
pageSizeOptions: number[];
|
|
3870
|
-
hasNextPage?: boolean;
|
|
3871
|
-
hasPrevPage?: boolean;
|
|
3872
|
-
onNextPage: () => void;
|
|
3873
|
-
onPrevPage: () => void;
|
|
3874
|
-
/** Merged with CHART_OF_ACCOUNTS_LABELS_EN; only override what you need. */
|
|
3875
|
-
labels?: Partial<ChartOfAccountsLabels>;
|
|
3876
|
-
onEdit?: (row: LedgerAccountRow) => void;
|
|
3877
|
-
onDelete?: (row: LedgerAccountRow) => void;
|
|
3878
|
-
/**
|
|
3879
|
-
* Enables the add action. Rendered as a toolbar button above the table, or as
|
|
3880
|
-
* the centred call to action when the first page comes back with no rows.
|
|
3881
|
-
* Omit it (for example when the user lacks write permission) to withhold the
|
|
3882
|
-
* affordance entirely.
|
|
3883
|
-
*/
|
|
3884
|
-
onAdd?: () => void;
|
|
3885
|
-
/** Applied to the empty state's root element. Supplied by the caller, not decided here. */
|
|
3886
|
-
emptyStateTestId?: string;
|
|
3887
|
-
}
|
|
3888
|
-
declare function ChartOfAccountsTable({ data, isLoading, isError, sorting, onSortingChange, pageSize, onPageSizeChange, pageSizeOptions, hasNextPage, hasPrevPage, onNextPage, onPrevPage, labels, emptyStateTestId, onEdit, onDelete, onAdd, }: ChartOfAccountsTableProps): React.JSX.Element;
|
|
3889
|
-
|
|
3890
|
-
/**
|
|
3891
|
-
* Which form the owner has open. Deliberately *not* a prop on
|
|
3892
|
-
* {@link AccountFormSheet}: the sheet renders whatever `title` and `description`
|
|
3893
|
-
* it is handed, so create-versus-edit is the owner's state rather than something
|
|
3894
|
-
* the sheet interprets. Lives here because it belongs to this widget's shared
|
|
3895
|
-
* vocabulary and is part of the published package surface;
|
|
3896
|
-
* `useChartOfAccountsCrud` is the consumer.
|
|
3897
|
-
*/
|
|
3898
|
-
type AccountFormMode = 'create' | 'edit';
|
|
3899
|
-
interface AccountFormValues {
|
|
3900
|
-
name: string;
|
|
3901
|
-
nominal_code: string;
|
|
3902
|
-
description: string;
|
|
3903
|
-
}
|
|
3904
|
-
interface AccountFormErrors {
|
|
3905
|
-
name?: string;
|
|
3906
|
-
nominal_code?: string;
|
|
3907
|
-
description?: string;
|
|
3908
|
-
/** Form-level error (e.g. an API failure not tied to a single field). */
|
|
3909
|
-
form?: string;
|
|
3910
|
-
}
|
|
3911
|
-
interface AccountFormSheetProps {
|
|
3912
|
-
open: boolean;
|
|
3913
|
-
onOpenChange: (open: boolean) => void;
|
|
3914
|
-
/**
|
|
3915
|
-
* Heading, already assembled. The owner decides whether that is the create
|
|
3916
|
-
* copy or the edited account's own name; the sheet does not interpolate a
|
|
3917
|
-
* domain value into a template or branch on a form mode to pick one.
|
|
3918
|
-
*/
|
|
3919
|
-
title: string;
|
|
3920
|
-
/** Screen-reader description of the sheet's purpose, already assembled. */
|
|
3921
|
-
description: string;
|
|
3922
|
-
values: AccountFormValues;
|
|
3923
|
-
errors?: AccountFormErrors;
|
|
3924
|
-
/** Disables every action while a mutation is in flight. */
|
|
3925
|
-
inProgress?: boolean;
|
|
3926
|
-
/**
|
|
3927
|
-
* Whether the form is not yet complete enough to submit. The owner decides,
|
|
3928
|
-
* so the rule stays with the validation that enforces it; the sheet only
|
|
3929
|
-
* reflects the answer and shows {@link AccountFormSheetLabels.saveDisabledHint}.
|
|
3930
|
-
*/
|
|
3931
|
-
submitDisabled?: boolean;
|
|
3932
|
-
/** Already-formatted character counter for the description, e.g. "53/280 characters". */
|
|
3933
|
-
descriptionCounterText: string;
|
|
3934
|
-
onNameChange: (name: string) => void;
|
|
3935
|
-
onGlCodeChange: (nominalCode: string) => void;
|
|
3936
|
-
onDescriptionChange: (description: string) => void;
|
|
3937
|
-
onSubmit: () => void;
|
|
3938
|
-
onCancel: () => void;
|
|
3939
|
-
/**
|
|
3940
|
-
* Shows the header menu when supplied. The owner withholds it for a form that
|
|
3941
|
-
* has nothing to delete yet, so its presence is the whole condition here.
|
|
3942
|
-
*/
|
|
3943
|
-
onDelete?: () => void;
|
|
3944
|
-
/** Merged with {@link ACCOUNT_FORM_SHEET_LABELS_EN}. */
|
|
3945
|
-
labels?: Partial<AccountFormSheetLabels>;
|
|
3946
|
-
}
|
|
3947
|
-
/**
|
|
3948
|
-
* Presentational create/edit form for a ledger account, rendered in a side
|
|
3949
|
-
* sheet. Fully controlled: the owner holds `values` and validation `errors` and
|
|
3950
|
-
* reacts to the field-change and submit/cancel/delete gestures.
|
|
3951
|
-
*
|
|
3952
|
-
* Three fields (GL code, account name, description), in the order the design
|
|
3953
|
-
* lists them. An **Account type** select is also in the design and deliberately
|
|
3954
|
-
* absent here: the API exposes `type` on the response only, so the control would
|
|
3955
|
-
* silently discard whatever was chosen. It arrives with EMBD-4603.
|
|
3956
|
-
*/
|
|
3957
|
-
declare function AccountFormSheet({ open, onOpenChange, title, description, values, errors, inProgress, submitDisabled, descriptionCounterText, onNameChange, onGlCodeChange, onDescriptionChange, onSubmit, onCancel, onDelete, labels, }: AccountFormSheetProps): React.JSX.Element;
|
|
3958
|
-
|
|
3959
|
-
interface AccountDeleteDialogProps {
|
|
3960
|
-
open: boolean;
|
|
3961
|
-
onOpenChange: (open: boolean) => void;
|
|
3962
|
-
/**
|
|
3963
|
-
* Confirmation heading, already assembled. The owner names the account, so the
|
|
3964
|
-
* dialog never interpolates a domain value into a template.
|
|
3965
|
-
*/
|
|
3966
|
-
title: string;
|
|
3967
|
-
/**
|
|
3968
|
-
* Body copy. Falls back to
|
|
3969
|
-
* {@link AccountDeleteDialogLabels.message} when omitted, since nothing about
|
|
3970
|
-
* this sentence depends on which account is being deleted.
|
|
3971
|
-
*/
|
|
3972
|
-
message?: string;
|
|
3973
|
-
/** Disables the buttons while the delete mutation is in flight. */
|
|
3974
|
-
isDeleting?: boolean;
|
|
3975
|
-
/** Failure message from the delete attempt; keeps the dialog open. */
|
|
3976
|
-
error?: string;
|
|
3977
|
-
onConfirm: () => void;
|
|
3978
|
-
onCancel: () => void;
|
|
3979
|
-
/** Merged with {@link ACCOUNT_DELETE_DIALOG_LABELS_EN}. */
|
|
3980
|
-
labels?: Partial<AccountDeleteDialogLabels>;
|
|
3981
|
-
}
|
|
3982
|
-
/**
|
|
3983
|
-
* Destructive confirmation dialog for deleting a GL code. Controlled by the
|
|
3984
|
-
* owner; composes the shared `AlertDialog` primitive with a destructive confirm
|
|
3985
|
-
* button.
|
|
3986
|
-
*/
|
|
3987
|
-
declare function AccountDeleteDialog({ open, onOpenChange, title, message, isDeleting, error, onConfirm, onCancel, labels, }: AccountDeleteDialogProps): React.JSX.Element;
|
|
3988
|
-
|
|
3989
|
-
/**
|
|
3990
|
-
* Feature-layer copy for the widget's built-in create/edit/delete flow.
|
|
3991
|
-
*
|
|
3992
|
-
* The table, form sheet, and delete dialog each carry their own label sets in
|
|
3993
|
-
* the `ui` library; these are only the strings the orchestration produces
|
|
3994
|
-
* itself, which is validation messages, API failure fallbacks, and the
|
|
3995
|
-
* confirmation toasts. Consumers override them through the widget's
|
|
3996
|
-
* `messageLabels` prop, merged over {@link CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN}.
|
|
3997
|
-
*/
|
|
3998
|
-
interface ChartOfAccountsMessageLabels {
|
|
3999
|
-
nameRequired: string;
|
|
4000
|
-
glCodeRequired: string;
|
|
4001
|
-
/** `{max}` is replaced with the field's character limit. */
|
|
4002
|
-
nameTooLong: string;
|
|
4003
|
-
/** `{max}` is replaced with the field's character limit. */
|
|
4004
|
-
glCodeTooLong: string;
|
|
4005
|
-
/** `{max}` is replaced with the field's character limit. */
|
|
4006
|
-
descriptionTooLong: string;
|
|
4007
|
-
saveError: string;
|
|
4008
|
-
deleteError: string;
|
|
4009
|
-
/** `{name}` is replaced with the account's name. */
|
|
4010
|
-
accountCreated: string;
|
|
4011
|
-
/** `{name}` is replaced with the account's name. */
|
|
4012
|
-
accountUpdated: string;
|
|
4013
|
-
/** `{name}` is replaced with the account's name. */
|
|
4014
|
-
accountDeleted: string;
|
|
4015
|
-
}
|
|
4016
|
-
declare const CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN: ChartOfAccountsMessageLabels;
|
|
4017
|
-
|
|
4018
|
-
/**
|
|
4019
|
-
* Props that the feature layer owns and wires internally. Consumers cannot
|
|
4020
|
-
* override these because they are driven by the query and pagination state.
|
|
4021
|
-
* Everything else on `ChartOfAccountsTableProps` (including `title`) passes through
|
|
4022
|
-
* this `Omit` untouched via the `...tableProps` spread below, so no explicit
|
|
4023
|
-
* feature-layer wiring needed when a new pass-through UI prop is added there.
|
|
4024
|
-
*/
|
|
4025
|
-
type TableProps = Omit<ChartOfAccountsTableProps, 'data' | 'isLoading' | 'isError' | 'sorting' | 'onSortingChange' | 'pageSize' | 'onPageSizeChange' | 'pageSizeOptions' | 'hasNextPage' | 'hasPrevPage' | 'onNextPage' | 'onPrevPage' | 'emptyStateTestId' | 'labels'>;
|
|
4026
|
-
/**
|
|
4027
|
-
* Label override channels, one per surface the widget mounts.
|
|
4028
|
-
*
|
|
4029
|
-
* The widget renders more than the table, so a single `labels` prop would leave
|
|
4030
|
-
* the built-in create/edit/delete flow stuck on English while the table around
|
|
4031
|
-
* it localized. Split per surface rather than nested under one object, which is
|
|
4032
|
-
* the shape `tags-widget`, `products-widget`, and `counterparts-widget` all use.
|
|
4033
|
-
*/
|
|
4034
|
-
interface ChartOfAccountsWidgetLabelProps {
|
|
4035
|
-
/** Table copy: headings, column headers, row actions, empty and error states. */
|
|
4036
|
-
screenLabels?: Partial<ChartOfAccountsLabels>;
|
|
4037
|
-
/** Create/edit sheet copy: titles, field labels, placeholders, buttons. */
|
|
4038
|
-
formLabels?: Partial<AccountFormSheetLabels>;
|
|
4039
|
-
/** Delete confirmation copy. */
|
|
4040
|
-
deleteLabels?: Partial<AccountDeleteDialogLabels>;
|
|
4041
|
-
/** Validation messages, save/delete failure fallbacks, and success toasts. */
|
|
4042
|
-
messageLabels?: Partial<ChartOfAccountsMessageLabels>;
|
|
4043
|
-
}
|
|
4044
|
-
/**
|
|
4045
|
-
* Public props for {@link ChartOfAccountsWidget}.
|
|
4046
|
-
*
|
|
4047
|
-
* Merges {@link WidgetProviderProps} (auth/base-URL scope) with the subset of
|
|
4048
|
-
* {@link ChartOfAccountsTableProps} that consumers are allowed to control (row
|
|
4049
|
-
* action callbacks, empty-state CTAs, etc.) plus a label channel per surface.
|
|
4050
|
-
*/
|
|
4051
|
-
type ChartOfAccountsWidgetProps = WidgetProviderProps & TableProps & ChartOfAccountsWidgetLabelProps;
|
|
4052
|
-
/**
|
|
4053
|
-
* Self-contained GL code table widget.
|
|
4054
|
-
*
|
|
4055
|
-
* Composes a {@link WidgetProvider} scope with the table's query and pagination
|
|
4056
|
-
* logic. The two-component split (`ChartOfAccountsWidget` → `ChartOfAccountsWidgetInner`)
|
|
4057
|
-
* ensures that `useGetLedgerAccountsQuery` runs *inside* the provider tree and
|
|
4058
|
-
* can therefore resolve the correct API base URL and auth token from context.
|
|
4059
|
-
*
|
|
4060
|
-
* @example
|
|
4061
|
-
* ```tsx
|
|
4062
|
-
* <ChartOfAccountsWidget
|
|
4063
|
-
* baseUrl="https://api.example.com"
|
|
4064
|
-
* widgetToken="wt_..."
|
|
4065
|
-
* organizationId="org_..."
|
|
4066
|
-
* onEdit={(row) => openEditDialog(row)}
|
|
4067
|
-
* onDelete={(row) => confirmDelete(row)}
|
|
4068
|
-
* />
|
|
4069
|
-
* ```
|
|
4070
|
-
*/
|
|
4071
|
-
declare function ChartOfAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, analytics, disclosuresAcceptance, providerLabels, errorFallback, onError, ...tableProps }: ChartOfAccountsWidgetProps): React.JSX.Element;
|
|
4072
|
-
|
|
4073
|
-
/**
|
|
4074
|
-
* Static FAQ content for the Help widget.
|
|
4075
|
-
*
|
|
4076
|
-
* The shape mirrors the original MUI `HelpPage` rich-text model so the renderer
|
|
4077
|
-
* can reproduce paragraphs, ordered/unordered bullet lists, nested bullets, and
|
|
4078
|
-
* inline `<bold>…</bold>` runs. Callers may supply their own `HelpFaqSection[]`
|
|
4079
|
-
* to override the default content below.
|
|
4080
|
-
*/
|
|
4081
|
-
/** Which list marker to render for a group of bullet points. */
|
|
4082
|
-
type HelpFaqBulletType = 'bullet' | 'numeric';
|
|
4083
|
-
/** A single bullet point, optionally with its own nested list. */
|
|
4084
|
-
interface HelpFaqBullet {
|
|
4085
|
-
text: string;
|
|
4086
|
-
bulletPointType?: HelpFaqBulletType;
|
|
4087
|
-
bulletPoints?: HelpFaqBullet[];
|
|
4088
|
-
}
|
|
4089
|
-
/** One answer block: a paragraph, optionally followed by a bullet list. */
|
|
4090
|
-
interface HelpFaqAnswer {
|
|
4091
|
-
text: string;
|
|
4092
|
-
bulletPointType?: HelpFaqBulletType;
|
|
4093
|
-
bulletPoints?: HelpFaqBullet[];
|
|
4094
|
-
}
|
|
4095
|
-
/** A question and its ordered list of answer blocks. */
|
|
4096
|
-
interface HelpFaqItem {
|
|
4097
|
-
question: string;
|
|
4098
|
-
answers: HelpFaqAnswer[];
|
|
4099
|
-
}
|
|
4100
|
-
/** A titled group of questions rendered as a single card. */
|
|
4101
|
-
interface HelpFaqSection {
|
|
4102
|
-
title: string;
|
|
4103
|
-
items: HelpFaqItem[];
|
|
4104
|
-
}
|
|
4105
|
-
/**
|
|
4106
|
-
* Default English FAQ content, ported from the original
|
|
4107
|
-
* `embedded-banking-dashboard-settings` Help page (`defaultWidgetFaqContent` —
|
|
4108
|
-
* the embedded-widget variant, which omits the password-management questions
|
|
4109
|
-
* since embedded users authenticate through the provider). A stray "Testing 1"
|
|
4110
|
-
* placeholder bullet from the source has been dropped.
|
|
4111
|
-
*/
|
|
4112
|
-
declare const HELP_FAQ_EN: HelpFaqSection[];
|
|
4113
|
-
|
|
4114
|
-
/**
|
|
4115
|
-
* Externalized, overridable display strings for the Help widget.
|
|
4116
|
-
*
|
|
4117
|
-
* Callers pass `labels={{ ... }}` to override individual strings (merged over
|
|
4118
|
-
* `HELP_WIDGET_LABELS_EN`). Defaults reproduce the copy from the original
|
|
4119
|
-
* `embedded-banking-dashboard-settings` Help page.
|
|
4120
|
-
*/
|
|
4121
|
-
interface HelpWidgetLabels {
|
|
4122
|
-
/** Heading above the FAQ accordion. */
|
|
4123
|
-
title: string;
|
|
4124
|
-
/** Heading for the contact section. */
|
|
4125
|
-
contactUsTitle: string;
|
|
4126
|
-
/**
|
|
4127
|
-
* Lead-in text for the contact line, rendered as
|
|
4128
|
-
* `{contactUsBody} {bankName} {link}.`
|
|
4129
|
-
*/
|
|
4130
|
-
contactUsBody: string;
|
|
4131
|
-
/** Text of the contact link (wraps `contactUrl`). */
|
|
4132
|
-
contactUsLinkText: string;
|
|
4133
|
-
}
|
|
4134
|
-
declare const HELP_WIDGET_LABELS_EN: HelpWidgetLabels;
|
|
4135
|
-
|
|
4136
|
-
/**
|
|
4137
|
-
* The Help widget's public, framework-agnostic API surface.
|
|
4138
|
-
*
|
|
4139
|
-
* This is the single source of truth for the props consumers pass. Both the
|
|
4140
|
-
* shadcn and Tecton implementations accept exactly these props, and the public
|
|
4141
|
-
* {@link HelpWidget} switch forwards them unchanged — so the UI-framework choice
|
|
4142
|
-
* never leaks into a consumer-facing prop. Keep this contract identical across
|
|
4143
|
-
* implementations: a prop that only one framework honors does not belong here.
|
|
4144
|
-
*/
|
|
4145
|
-
interface HelpWidgetProps$1 {
|
|
4146
|
-
/** FAQ content to render, grouped into titled sections. */
|
|
4147
|
-
faq: HelpFaqSection[];
|
|
4148
|
-
/** Bank/provider name interpolated into the contact line. Defaulted from the
|
|
4149
|
-
* widget-init response by {@link HelpWidget}, so hosts rarely pass it. */
|
|
4150
|
-
bankName?: string;
|
|
4151
|
-
/** When set, renders a "Contact Us" card linking here. Omit to hide it. */
|
|
4152
|
-
contactUrl?: string;
|
|
4153
|
-
/** Overrides merged over {@link HELP_WIDGET_LABELS_EN}. */
|
|
4154
|
-
labels?: Partial<HelpWidgetLabels>;
|
|
4155
|
-
}
|
|
4156
|
-
|
|
4157
|
-
/**
|
|
4158
|
-
* Presentational props consumers may override. `faq` is optional here and
|
|
4159
|
-
* defaults to {@link HELP_FAQ_EN} so the widget renders standalone with no
|
|
4160
|
-
* configuration.
|
|
4161
|
-
*/
|
|
4162
|
-
type HelpContentProps = Partial<HelpWidgetProps$1>;
|
|
4163
|
-
/**
|
|
4164
|
-
* Public props for {@link HelpWidget}: {@link WidgetProviderProps} (auth/base-URL
|
|
4165
|
-
* scope) plus the overridable presentational props of the underlying UI widget.
|
|
4166
|
-
*/
|
|
4167
|
-
type HelpWidgetProps = WidgetProviderProps & HelpContentProps;
|
|
4168
|
-
/**
|
|
4169
|
-
* Self-contained Help widget: a static, shadcn FAQ accordion with an optional
|
|
4170
|
-
* "Contact Us" card. Composes a {@link WidgetProvider} scope around the
|
|
4171
|
-
* presentational UI component so it can be wired as the Settings `help` section
|
|
4172
|
-
* default with no props, or mounted standalone by an integrator.
|
|
4173
|
-
*
|
|
4174
|
-
* @example
|
|
4175
|
-
* ```tsx
|
|
4176
|
-
* <HelpWidget bankName="Acme Bank" contactUrl="https://acme.example/support" />
|
|
4177
|
-
* ```
|
|
4178
|
-
*/
|
|
4179
|
-
declare function HelpWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...contentProps }: HelpWidgetProps): React.JSX.Element;
|
|
4180
|
-
|
|
4181
3792
|
type ReceivablesWidgetMoniteProps = MoniteRegionProviderProps & Omit<ReceivablesProps, 'pageTitleComponent' | 'initialView' | 'initialCounterpartId'> & {
|
|
4182
3793
|
pageTitleComponent?: ReceivablesProps['pageTitleComponent'];
|
|
4183
3794
|
};
|
|
@@ -4508,7 +4119,7 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
|
4508
4119
|
|
|
4509
4120
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
4510
4121
|
|
|
4511
|
-
interface Labels
|
|
4122
|
+
interface Labels {
|
|
4512
4123
|
title: string;
|
|
4513
4124
|
connectButton: string;
|
|
4514
4125
|
verifyCtaButton: string;
|
|
@@ -4576,7 +4187,7 @@ interface Labels$2 {
|
|
|
4576
4187
|
emptyDescription: string;
|
|
4577
4188
|
}
|
|
4578
4189
|
|
|
4579
|
-
interface FeatureLabels
|
|
4190
|
+
interface FeatureLabels {
|
|
4580
4191
|
accountFallback: string;
|
|
4581
4192
|
accountLabel: string;
|
|
4582
4193
|
pendingStatus: string;
|
|
@@ -4585,8 +4196,8 @@ interface FeatureLabels$2 {
|
|
|
4585
4196
|
}
|
|
4586
4197
|
|
|
4587
4198
|
interface LinkedAccountsWidgetProps extends WidgetProviderProps {
|
|
4588
|
-
labels?: Partial<Labels
|
|
4589
|
-
featureLabels?: Partial<FeatureLabels
|
|
4199
|
+
labels?: Partial<Labels>;
|
|
4200
|
+
featureLabels?: Partial<FeatureLabels>;
|
|
4590
4201
|
}
|
|
4591
4202
|
declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
|
|
4592
4203
|
|
|
@@ -4991,382 +4602,6 @@ type ProductsWidgetProps = WidgetProviderProps & ProductsWidgetOwnProps;
|
|
|
4991
4602
|
*/
|
|
4992
4603
|
declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ProductsWidgetProps): React.JSX.Element;
|
|
4993
4604
|
|
|
4994
|
-
interface Labels$1 {
|
|
4995
|
-
loadingLabel: string;
|
|
4996
|
-
errorLabel: string;
|
|
4997
|
-
/**
|
|
4998
|
-
* Lead-in for the contact line, rendered as
|
|
4999
|
-
* `{contactPrefix} {bankName} {link}.` when both a bank name and a contact
|
|
5000
|
-
* URL are available.
|
|
5001
|
-
*/
|
|
5002
|
-
contactPrefix: string;
|
|
5003
|
-
/** Text of the contact link (wraps the contact URL). */
|
|
5004
|
-
contactLinkText: string;
|
|
5005
|
-
}
|
|
5006
|
-
|
|
5007
|
-
interface FeatureLabels$1 {
|
|
5008
|
-
personalTab: string;
|
|
5009
|
-
businessTab: string;
|
|
5010
|
-
subtitle: string;
|
|
5011
|
-
nameLabel: string;
|
|
5012
|
-
emailLabel: string;
|
|
5013
|
-
phoneLabel: string;
|
|
5014
|
-
legalNameLabel: string;
|
|
5015
|
-
companyAddressLabel: string;
|
|
5016
|
-
companyPhoneLabel: string;
|
|
5017
|
-
companyEmailLabel: string;
|
|
5018
|
-
emptyValue: string;
|
|
5019
|
-
}
|
|
5020
|
-
|
|
5021
|
-
interface ProfileWidgetProps extends WidgetProviderProps {
|
|
5022
|
-
labels?: Partial<Labels$1>;
|
|
5023
|
-
featureLabels?: Partial<FeatureLabels$1>;
|
|
5024
|
-
/**
|
|
5025
|
-
* Where the "to change this information, contact your bank" line links (a
|
|
5026
|
-
* support page URL or a `mailto:`). Left unset, the card shows the plain
|
|
5027
|
-
* unlinked sentence instead — the package has no tenant-agnostic support
|
|
5028
|
-
* address to fall back on. The bank name in that line comes from widget init,
|
|
5029
|
-
* so this is the only value a host needs to supply.
|
|
5030
|
-
*/
|
|
5031
|
-
contactUrl?: string;
|
|
5032
|
-
}
|
|
5033
|
-
declare function ProfileWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ProfileWidgetProps): React.JSX.Element;
|
|
5034
|
-
|
|
5035
|
-
/**
|
|
5036
|
-
* Co-located user-facing strings for the tags widget UI. Each component takes a
|
|
5037
|
-
* `labels?: Partial<…Labels>` prop merged over the matching `*_LABELS_EN` default.
|
|
5038
|
-
*/
|
|
5039
|
-
interface TagsScreenLabels {
|
|
5040
|
-
createButton: string;
|
|
5041
|
-
columnName: string;
|
|
5042
|
-
columnCategory: string;
|
|
5043
|
-
columnKeywords: string;
|
|
5044
|
-
columnCreatedAt: string;
|
|
5045
|
-
columnUpdatedAt: string;
|
|
5046
|
-
columnCreatedBy: string;
|
|
5047
|
-
columnActions: string;
|
|
5048
|
-
actionDelete: string;
|
|
5049
|
-
openActionsMenu: string;
|
|
5050
|
-
emptyTitle: string;
|
|
5051
|
-
emptyDescription: string;
|
|
5052
|
-
emptyAction: string;
|
|
5053
|
-
errorTitle: string;
|
|
5054
|
-
errorDescription: string;
|
|
5055
|
-
errorRetry: string;
|
|
5056
|
-
}
|
|
5057
|
-
interface TagFormSheetLabels {
|
|
5058
|
-
createTitle: string;
|
|
5059
|
-
/** `{name}` is replaced with the tag being edited. */
|
|
5060
|
-
editTitle: string;
|
|
5061
|
-
nameLabel: string;
|
|
5062
|
-
categoryLabel: string;
|
|
5063
|
-
categoryPlaceholder: string;
|
|
5064
|
-
keywordsLabel: string;
|
|
5065
|
-
keywordsPlaceholder: string;
|
|
5066
|
-
/** Accessible label for a keyword chip's remove button. `{keyword}` is replaced. */
|
|
5067
|
-
removeKeyword: string;
|
|
5068
|
-
cancelButton: string;
|
|
5069
|
-
createButton: string;
|
|
5070
|
-
saveButton: string;
|
|
5071
|
-
deleteButton: string;
|
|
5072
|
-
}
|
|
5073
|
-
interface TagDeleteDialogLabels {
|
|
5074
|
-
/** `{name}` is replaced with the tag name. */
|
|
5075
|
-
title: string;
|
|
5076
|
-
message: string;
|
|
5077
|
-
confirmButton: string;
|
|
5078
|
-
cancelButton: string;
|
|
5079
|
-
}
|
|
5080
|
-
|
|
5081
|
-
/**
|
|
5082
|
-
* Overridable validation / error messages produced by the tags feature layer
|
|
5083
|
-
* and surfaced through the form's `errors` prop. Consumers override via the
|
|
5084
|
-
* widget's `messageLabels` prop, merged over {@link TAG_MESSAGE_LABELS_EN}.
|
|
5085
|
-
*/
|
|
5086
|
-
interface TagMessageLabels {
|
|
5087
|
-
nameRequired: string;
|
|
5088
|
-
nameTooLong: string;
|
|
5089
|
-
keywordTooShort: string;
|
|
5090
|
-
keywordTooLong: string;
|
|
5091
|
-
/** Shown for a non-field-specific submit failure. */
|
|
5092
|
-
genericError: string;
|
|
5093
|
-
}
|
|
5094
|
-
|
|
5095
|
-
interface TagsWidgetOwnProps {
|
|
5096
|
-
/** Page-size options for the table footer. */
|
|
5097
|
-
pageSizeOptions?: number[];
|
|
5098
|
-
/** Label overrides for the tags table screen. */
|
|
5099
|
-
screenLabels?: Partial<TagsScreenLabels>;
|
|
5100
|
-
/** Label overrides for the create/edit form. */
|
|
5101
|
-
formLabels?: Partial<TagFormSheetLabels>;
|
|
5102
|
-
/** Label overrides for the delete confirmation. */
|
|
5103
|
-
deleteLabels?: Partial<TagDeleteDialogLabels>;
|
|
5104
|
-
/** Overrides for validation / error messages produced by the widget. */
|
|
5105
|
-
messageLabels?: Partial<TagMessageLabels>;
|
|
5106
|
-
}
|
|
5107
|
-
/** Public props for {@link TagsWidget}. */
|
|
5108
|
-
type TagsWidgetProps = WidgetProviderProps & TagsWidgetOwnProps;
|
|
5109
|
-
|
|
5110
|
-
/**
|
|
5111
|
-
* Self-contained tags widget: lists, creates, edits, and deletes tags, and
|
|
5112
|
-
* manages per-tag OCR auto-tagging keywords. The provider/inner split keeps the
|
|
5113
|
-
* public component a pure {@link WidgetProvider} wrapper while the inner runs
|
|
5114
|
-
* inside the provider tree so data-access hooks can read widget context.
|
|
5115
|
-
*
|
|
5116
|
-
* @example
|
|
5117
|
-
* ```tsx
|
|
5118
|
-
* <TagsWidget baseUrl="https://api.tesouro.com" widgetToken="wt_..." organizationId="org_..." />
|
|
5119
|
-
* ```
|
|
5120
|
-
*/
|
|
5121
|
-
declare function TagsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: TagsWidgetProps): React.JSX.Element;
|
|
5122
|
-
|
|
5123
|
-
interface Labels {
|
|
5124
|
-
title: string;
|
|
5125
|
-
nameColumn: string;
|
|
5126
|
-
roleColumn: string;
|
|
5127
|
-
/** Placeholder shown in the role cell for deactivated members (no role). */
|
|
5128
|
-
inactiveRolePlaceholder: string;
|
|
5129
|
-
departmentColumn: string;
|
|
5130
|
-
statusColumn: string;
|
|
5131
|
-
loadingLabel: string;
|
|
5132
|
-
emptyTitle: string;
|
|
5133
|
-
emptyDescription: string;
|
|
5134
|
-
errorTitle: string;
|
|
5135
|
-
errorDescription: string;
|
|
5136
|
-
rowsPerPageLabel: string;
|
|
5137
|
-
previousPageButton: string;
|
|
5138
|
-
nextPageButton: string;
|
|
5139
|
-
detailsBackButton: string;
|
|
5140
|
-
/** "Member details" section heading on the detail view. */
|
|
5141
|
-
detailsMemberDetailsHeading: string;
|
|
5142
|
-
detailsNameLabel: string;
|
|
5143
|
-
detailsEmailLabel: string;
|
|
5144
|
-
detailsRoleLabel: string;
|
|
5145
|
-
detailsStatusLabel: string;
|
|
5146
|
-
detailsLastSignInLabel: string;
|
|
5147
|
-
detailsDepartmentLabel: string;
|
|
5148
|
-
detailsLocationLabel: string;
|
|
5149
|
-
/** "Reporting manager" section heading on the detail view. */
|
|
5150
|
-
detailsReportingManagerLabel: string;
|
|
5151
|
-
/** Shown in the reporting-manager section when the member has no manager. */
|
|
5152
|
-
detailsReportingManagerNone: string;
|
|
5153
|
-
/** "Approves expenses for" section heading (the member's direct reports). */
|
|
5154
|
-
detailsApprovesExpensesHeading: string;
|
|
5155
|
-
detailsAccountAccessLabel: string;
|
|
5156
|
-
rolesSectionHeading: string;
|
|
5157
|
-
rolesSectionDescription: string;
|
|
5158
|
-
roleLoadingLabel: string;
|
|
5159
|
-
detailsEditButton: string;
|
|
5160
|
-
detailsDeactivateButton: string;
|
|
5161
|
-
/** Resend-invite action on the detail view (pending members only). */
|
|
5162
|
-
detailsResendButton: string;
|
|
5163
|
-
inviteButton: string;
|
|
5164
|
-
inviteTitle: string;
|
|
5165
|
-
inviteBackToTeamButton: string;
|
|
5166
|
-
inviteDetailsSectionHeading: string;
|
|
5167
|
-
/** Single full-name field — the create endpoint takes one `name`. */
|
|
5168
|
-
inviteNameLabel: string;
|
|
5169
|
-
inviteWorkEmailLabel: string;
|
|
5170
|
-
inviteDepartmentLabel: string;
|
|
5171
|
-
inviteDepartmentPlaceholder: string;
|
|
5172
|
-
inviteDepartmentEmpty: string;
|
|
5173
|
-
/** Error placeholder + helper when the department list fails to load. */
|
|
5174
|
-
inviteDepartmentLoadError: string;
|
|
5175
|
-
inviteDepartmentLoadErrorHelper: string;
|
|
5176
|
-
/** Helper shown when the department list loaded but is empty. */
|
|
5177
|
-
inviteDepartmentEmptyHelper: string;
|
|
5178
|
-
inviteLocationLabel: string;
|
|
5179
|
-
inviteLocationPlaceholder: string;
|
|
5180
|
-
inviteLocationEmpty: string;
|
|
5181
|
-
inviteLocationLoadError: string;
|
|
5182
|
-
inviteLocationLoadErrorHelper: string;
|
|
5183
|
-
inviteLocationEmptyHelper: string;
|
|
5184
|
-
inviteReportingManagerLabel: string;
|
|
5185
|
-
inviteReportingManagerPlaceholder: string;
|
|
5186
|
-
inviteReportingManagerEmpty: string;
|
|
5187
|
-
inviteReportingManagerLoadError: string;
|
|
5188
|
-
inviteReportingManagerLoadErrorHelper: string;
|
|
5189
|
-
inviteReportingManagerEmptyHelper: string;
|
|
5190
|
-
/** Explainer shown under the reporting-manager select when managers exist. */
|
|
5191
|
-
inviteReportingManagerHelper: string;
|
|
5192
|
-
/** Placeholder in the reporting-manager search box. */
|
|
5193
|
-
inviteReportingManagerSearchPlaceholder: string;
|
|
5194
|
-
/** Shown in the reporting-manager list when a search matches no one. */
|
|
5195
|
-
inviteReportingManagerNoResults: string;
|
|
5196
|
-
inviteOptionsLoading: string;
|
|
5197
|
-
/** Clears an optional select (department/location/reporting manager). */
|
|
5198
|
-
inviteOptionNone: string;
|
|
5199
|
-
inviteRoleSectionHeading: string;
|
|
5200
|
-
inviteRoleSectionDescription: string;
|
|
5201
|
-
inviteAccountAccessSectionHeading: string;
|
|
5202
|
-
inviteAccountAccessSectionDescription: string;
|
|
5203
|
-
inviteAccountAccessPlaceholder: string;
|
|
5204
|
-
inviteAccountAccessEmpty: string;
|
|
5205
|
-
/** Account-access table column headers, shared by the invite section and the
|
|
5206
|
-
* view/change access modal. */
|
|
5207
|
-
accountAccessNameColumn: string;
|
|
5208
|
-
accountAccessAccessColumn: string;
|
|
5209
|
-
/** aria-label for an account row's access checkbox; the name is appended. */
|
|
5210
|
-
accountAccessToggleLabel: string;
|
|
5211
|
-
/** Read-only account table columns on the member detail view. */
|
|
5212
|
-
accountAccessNumberColumn: string;
|
|
5213
|
-
accountAccessTypeColumn: string;
|
|
5214
|
-
accountAccessSourceColumn: string;
|
|
5215
|
-
/** Shown in place of the picker when the selected role is an admin. */
|
|
5216
|
-
inviteAccountAccessAdminNote: string;
|
|
5217
|
-
/** Shown beneath the account-access heading when the selected role is an
|
|
5218
|
-
* employee, who inherits no account access (invite and edit flows). */
|
|
5219
|
-
manageAccessEmployeeNote: string;
|
|
5220
|
-
/** Shown when the account list failed to load, blocking the invite. */
|
|
5221
|
-
inviteAccountAccessLoadError: string;
|
|
5222
|
-
inviteCancelButton: string;
|
|
5223
|
-
inviteSubmitButton: string;
|
|
5224
|
-
/** Empty state for the account-access checklist (no accounts in the org). */
|
|
5225
|
-
manageAccessAccountsEmpty: string;
|
|
5226
|
-
/** Loading placeholder for the account-access checklist. */
|
|
5227
|
-
manageAccessLoadingLabel: string;
|
|
5228
|
-
/** Shown in place of the checklist when the selected role is an admin. */
|
|
5229
|
-
manageAccessAdminNote: string;
|
|
5230
|
-
editTitle: string;
|
|
5231
|
-
editDescription: string;
|
|
5232
|
-
/** Back gesture on the full-page edit form (returns to the member detail). */
|
|
5233
|
-
editBackButton: string;
|
|
5234
|
-
editNameLabel: string;
|
|
5235
|
-
/** Work email in edit — read-only, so no required asterisk. */
|
|
5236
|
-
editEmailLabel: string;
|
|
5237
|
-
editRoleLabel: string;
|
|
5238
|
-
editRolePlaceholder: string;
|
|
5239
|
-
/** Section heading for the account-access checklist on the edit page. */
|
|
5240
|
-
editAccountAccessLabel: string;
|
|
5241
|
-
editCancelButton: string;
|
|
5242
|
-
editSaveButton: string;
|
|
5243
|
-
actionDialogCancelButton: string;
|
|
5244
|
-
}
|
|
5245
|
-
|
|
5246
|
-
/** Strings the feature layer bakes into the display-ready view models. */
|
|
5247
|
-
interface FeatureLabels {
|
|
5248
|
-
/** Placeholder for fields the API has no value for (role, department, ...). */
|
|
5249
|
-
notAvailable: string;
|
|
5250
|
-
/** Last sign-in value for members who have never signed in. */
|
|
5251
|
-
neverSignedIn: string;
|
|
5252
|
-
/** Prefix for the pagination range, e.g. "Viewing 1-10". */
|
|
5253
|
-
viewingRangeLabel: string;
|
|
5254
|
-
/** Validation messages the feature attaches to form fields. */
|
|
5255
|
-
nameRequiredError: string;
|
|
5256
|
-
firstNameRequiredError: string;
|
|
5257
|
-
lastNameRequiredError: string;
|
|
5258
|
-
emailRequiredError: string;
|
|
5259
|
-
emailInvalidError: string;
|
|
5260
|
-
roleRequiredError: string;
|
|
5261
|
-
/** Toasts shown after a mutation succeeds. */
|
|
5262
|
-
inviteSuccessToast: string;
|
|
5263
|
-
resendSuccessToast: string;
|
|
5264
|
-
/** Mutation failure messages shown inline in the workflows. */
|
|
5265
|
-
inviteFailedError: string;
|
|
5266
|
-
editFailedError: string;
|
|
5267
|
-
deactivateFailedError: string;
|
|
5268
|
-
manageAccessFailedError: string;
|
|
5269
|
-
/** Shown when a member's per-account access could not be loaded. */
|
|
5270
|
-
loadAccessFailedError: string;
|
|
5271
|
-
/** Shown when an Admin/Employee role change can't reconcile account access
|
|
5272
|
-
* (the token lacks the account-access scopes). */
|
|
5273
|
-
roleNeedsAccountAccessError: string;
|
|
5274
|
-
/** Account-access detail summary building blocks. */
|
|
5275
|
-
accountAccessAll: string;
|
|
5276
|
-
/** Shown for a non-admin member with zero granted accounts (distinct from the
|
|
5277
|
-
* not-available placeholder used while access is still loading). */
|
|
5278
|
-
accountAccessNone: string;
|
|
5279
|
-
accountAccessCountSingular: string;
|
|
5280
|
-
accountAccessCountPlural: string;
|
|
5281
|
-
accountAccessOf: string;
|
|
5282
|
-
/** Account type labels shown in the account-access table. */
|
|
5283
|
-
accountTypeChecking: string;
|
|
5284
|
-
accountTypeSavings: string;
|
|
5285
|
-
/** Account source labels shown in the detail view's account table. */
|
|
5286
|
-
accountSourceInternal: string;
|
|
5287
|
-
accountSourceExternal: string;
|
|
5288
|
-
/** Deactivate confirmation copy. */
|
|
5289
|
-
deactivateDialogTitle: string;
|
|
5290
|
-
deactivateDialogDescription: string;
|
|
5291
|
-
deactivateConfirmButton: string;
|
|
5292
|
-
/** Resend-invite confirmation copy (pending members). */
|
|
5293
|
-
resendDialogTitle: string;
|
|
5294
|
-
resendDialogDescription: string;
|
|
5295
|
-
resendConfirmButton: string;
|
|
5296
|
-
resendFailedError: string;
|
|
5297
|
-
/** Tabs. */
|
|
5298
|
-
teamMembersTab: string;
|
|
5299
|
-
departmentsTab: string;
|
|
5300
|
-
locationsTab: string;
|
|
5301
|
-
/** Shared group-admin (departments + locations) strings. */
|
|
5302
|
-
groupNameColumn: string;
|
|
5303
|
-
groupAssignedColumn: string;
|
|
5304
|
-
groupActionsColumn: string;
|
|
5305
|
-
groupEditAction: string;
|
|
5306
|
-
groupRowActionsAriaLabel: string;
|
|
5307
|
-
groupMembersLabel: string;
|
|
5308
|
-
groupMembersSearchPlaceholder: string;
|
|
5309
|
-
groupMembersEmpty: string;
|
|
5310
|
-
groupCancelButton: string;
|
|
5311
|
-
groupSaveButton: string;
|
|
5312
|
-
groupMemberSingular: string;
|
|
5313
|
-
groupMemberPlural: string;
|
|
5314
|
-
groupNoMembers: string;
|
|
5315
|
-
/** Departments. */
|
|
5316
|
-
departmentsTitle: string;
|
|
5317
|
-
departmentsAddButton: string;
|
|
5318
|
-
departmentsEmpty: string;
|
|
5319
|
-
departmentsLoading: string;
|
|
5320
|
-
departmentsErrorTitle: string;
|
|
5321
|
-
departmentsErrorDescription: string;
|
|
5322
|
-
departmentCreateTitle: string;
|
|
5323
|
-
departmentEditTitle: string;
|
|
5324
|
-
departmentDrawerDescription: string;
|
|
5325
|
-
departmentNameLabel: string;
|
|
5326
|
-
departmentNamePlaceholder: string;
|
|
5327
|
-
departmentDeleteAction: string;
|
|
5328
|
-
departmentDeleteDialogTitle: string;
|
|
5329
|
-
departmentDeleteDialogDescription: string;
|
|
5330
|
-
departmentDeleteConfirmButton: string;
|
|
5331
|
-
departmentSaveFailed: string;
|
|
5332
|
-
departmentDeleteFailed: string;
|
|
5333
|
-
/** Locations. */
|
|
5334
|
-
locationsTitle: string;
|
|
5335
|
-
locationsAddButton: string;
|
|
5336
|
-
locationsEmpty: string;
|
|
5337
|
-
locationsLoading: string;
|
|
5338
|
-
locationsErrorTitle: string;
|
|
5339
|
-
locationsErrorDescription: string;
|
|
5340
|
-
locationCreateTitle: string;
|
|
5341
|
-
locationEditTitle: string;
|
|
5342
|
-
locationDrawerDescription: string;
|
|
5343
|
-
locationNameLabel: string;
|
|
5344
|
-
locationNamePlaceholder: string;
|
|
5345
|
-
locationDeleteAction: string;
|
|
5346
|
-
locationDeleteDialogTitle: string;
|
|
5347
|
-
locationDeleteDialogDescription: string;
|
|
5348
|
-
locationDeleteConfirmButton: string;
|
|
5349
|
-
locationSaveFailed: string;
|
|
5350
|
-
locationDeleteFailed: string;
|
|
5351
|
-
}
|
|
5352
|
-
|
|
5353
|
-
interface TeamWidgetProps extends WidgetProviderProps {
|
|
5354
|
-
labels?: Partial<Labels>;
|
|
5355
|
-
featureLabels?: Partial<FeatureLabels>;
|
|
5356
|
-
/**
|
|
5357
|
-
* Absolute URL the accept-invite link in invitation emails points at (sent
|
|
5358
|
-
* as `redirectUri` on the identity create-user call, for both invite and
|
|
5359
|
-
* resend). Must be registered on the OIDC application's redirect-URI
|
|
5360
|
-
* allowlist. Defaults to `${window.location.origin}/accept-invite` — the
|
|
5361
|
-
* universal invite landing route every dashboard host registers. Set it
|
|
5362
|
-
* when the host app's registered landing route differs from that default,
|
|
5363
|
-
* or the origin is not on the allowlist (e.g. a preview deployment or
|
|
5364
|
-
* localhost).
|
|
5365
|
-
*/
|
|
5366
|
-
acceptInviteRedirectUri?: string;
|
|
5367
|
-
}
|
|
5368
|
-
declare function TeamWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: TeamWidgetProps): React.JSX.Element;
|
|
5369
|
-
|
|
5370
4605
|
/**
|
|
5371
4606
|
* Public {@link WidgetProvider} — the integrator-facing provider.
|
|
5372
4607
|
*
|
|
@@ -5427,5 +4662,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
5427
4662
|
|
|
5428
4663
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
5429
4664
|
|
|
5430
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN,
|
|
5431
|
-
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps,
|
|
4665
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
|
4666
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, ExpenseApprovalPoliciesWidgetProps, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseRequirementsWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetContent, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceiptMatchWidgetProps, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|