@tesouro/embedded-components-react 0.11.111 → 0.11.114
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/experimental/BalanceHistoryWidget.d.ts +702 -0
- package/dist/experimental/BalanceHistoryWidget.js +5 -0
- package/dist/experimental/index.d.ts +93 -2
- package/dist/experimental/index.js +7 -4
- package/dist/index.css +9 -0
- package/dist/index.d.ts +2607 -2525
- package/dist/lib/WidgetSuite.d.ts +1210 -8
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index2.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index3.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/testIds.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/analytics/events.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/balanceHistoryRange.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/buildBalanceHistoryView.js +70 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index2.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index3.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index4.js +176 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +115 -115
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +199 -175
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/InvoicingSection.js +2 -1
- package/package.json +2 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BALANCE_HISTORY_RANGES as e, BalanceHistoryRange as t } from "../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/balanceHistoryRange.js";
|
|
2
|
+
import { BALANCE_HISTORY_WIDGET_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js";
|
|
3
|
+
import { BalanceHistoryWidget as r } from "../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js";
|
|
4
|
+
import "../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/index.js";
|
|
5
|
+
export { e as BALANCE_HISTORY_RANGES, n as BALANCE_HISTORY_WIDGET_LABELS_EN, t as BalanceHistoryRange, r as BalanceHistoryWidget };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { RowData } from '@tanstack/react-table';
|
|
4
5
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
6
|
|
|
@@ -607,6 +608,96 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
607
608
|
providerLabels?: Partial<WidgetProviderLabels>;
|
|
608
609
|
}
|
|
609
610
|
|
|
611
|
+
/** The range buttons, in display order. */
|
|
612
|
+
declare const BalanceHistoryRange: {
|
|
613
|
+
readonly Days30: "30d";
|
|
614
|
+
readonly Days90: "90d";
|
|
615
|
+
readonly Year: "1y";
|
|
616
|
+
};
|
|
617
|
+
type BalanceHistoryRange = (typeof BalanceHistoryRange)[keyof typeof BalanceHistoryRange];
|
|
618
|
+
declare const BALANCE_HISTORY_RANGES: readonly BalanceHistoryRange[];
|
|
619
|
+
|
|
620
|
+
interface BalanceHistoryCardLabels {
|
|
621
|
+
title: string;
|
|
622
|
+
/** Accessible name of the account picker. */
|
|
623
|
+
accountSelect: string;
|
|
624
|
+
/** Placeholder of the account search, used once there are more than ten accounts. */
|
|
625
|
+
accountSearchPlaceholder: string;
|
|
626
|
+
/** Shown when the account search matches nothing. */
|
|
627
|
+
accountSearchEmpty: string;
|
|
628
|
+
/** Accessible name of the account search's clear button. */
|
|
629
|
+
accountSearchClear: string;
|
|
630
|
+
/** Accessible name of the range buttons. */
|
|
631
|
+
rangeTabs: string;
|
|
632
|
+
/** Accessible name of the chart. */
|
|
633
|
+
chart: string;
|
|
634
|
+
/** Name of the plotted series, shown in the tooltip and as the data table's value column. */
|
|
635
|
+
seriesName: string;
|
|
636
|
+
/** Between the series name and the value in the tooltip, e.g. "Balance: $34,054.35". */
|
|
637
|
+
tooltipSeparator: string;
|
|
638
|
+
/** Caption of the chart's data table, read to screen readers only. */
|
|
639
|
+
dataTable: string;
|
|
640
|
+
/** Heading of the data table's date column. */
|
|
641
|
+
dateColumn: string;
|
|
642
|
+
loading: string;
|
|
643
|
+
errorTitle: string;
|
|
644
|
+
errorDescription: string;
|
|
645
|
+
retry: string;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
interface BalanceHistoryWidgetLabels extends BalanceHistoryCardLabels {
|
|
649
|
+
/** The picker's first option, the sum of every account. */
|
|
650
|
+
allAccounts: string;
|
|
651
|
+
/** A picker option, e.g. "Business Checking - 0578". */
|
|
652
|
+
accountOption: (name: string, last4: string) => string;
|
|
653
|
+
/** Range button text, e.g. "30D". */
|
|
654
|
+
ranges: Record<BalanceHistoryRange, string>;
|
|
655
|
+
/** The span a full range covers, e.g. "in the last 30 days". */
|
|
656
|
+
rangeSpans: Record<BalanceHistoryRange, string>;
|
|
657
|
+
/** Read to screen readers on a range the account is too young for. */
|
|
658
|
+
rangeTooYoung: Record<BalanceHistoryRange, string>;
|
|
659
|
+
/** Read to screen readers on a range an unfunded account cannot show. */
|
|
660
|
+
rangeNeedsMoney: string;
|
|
661
|
+
/** The span when the window starts on the opening day, e.g. "since account opened Oct 30". */
|
|
662
|
+
sinceOpened: (date: string) => string;
|
|
663
|
+
/** Line beside the change, e.g. "in the last 30 days · $1.00 → $2.00". */
|
|
664
|
+
changeDescription: (span: string, from: string, to: string) => string;
|
|
665
|
+
/** Notice over the chart while a new account has no money yet. */
|
|
666
|
+
accountReady: string;
|
|
667
|
+
/** Notice over the chart once an unfunded account is past 30 days. */
|
|
668
|
+
addMoney: string;
|
|
669
|
+
/** Notice link, shown when the host passes `onTransferFromExternalClick`. */
|
|
670
|
+
transferFromExternal: string;
|
|
671
|
+
/** Read in place of a fall's parentheses, e.g. "negative $25.00". */
|
|
672
|
+
negativeAmount: (amount: string) => string;
|
|
673
|
+
}
|
|
674
|
+
declare const BALANCE_HISTORY_WIDGET_LABELS_EN: BalanceHistoryWidgetLabels;
|
|
675
|
+
|
|
676
|
+
interface BalanceHistoryWidgetWithContextProps {
|
|
677
|
+
/** Merged with BALANCE_HISTORY_WIDGET_LABELS_EN — only override what you need. */
|
|
678
|
+
labels?: PartialDeep<BalanceHistoryWidgetLabels>;
|
|
679
|
+
/** The range shown first. Defaults to 30 days. */
|
|
680
|
+
defaultRange?: BalanceHistoryRange;
|
|
681
|
+
/**
|
|
682
|
+
* Shows "Transfer from an external account" on the notice over an
|
|
683
|
+
* unfunded account's chart. The host routes it, usually to its transfers
|
|
684
|
+
* page; without it the notice has no link.
|
|
685
|
+
*/
|
|
686
|
+
onTransferFromExternalClick?: () => void;
|
|
687
|
+
className?: string;
|
|
688
|
+
style?: CSSProperties;
|
|
689
|
+
}
|
|
690
|
+
interface BalanceHistoryWidgetProps extends WidgetProviderProps, BalanceHistoryWidgetWithContextProps {
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Dashboard card: the org's balance over 30 days, 90 days or a year, for
|
|
694
|
+
* every account summed or one picked from a list, as a line chart with the
|
|
695
|
+
* change over the range. Ranges longer than the account's history stay
|
|
696
|
+
* disabled, and an account that has never held money gets a notice over its
|
|
697
|
+
* chart. Renders nothing when the token lacks `bank_account:read:org`.
|
|
698
|
+
*/
|
|
699
|
+
declare function BalanceHistoryWidget({ labels, defaultRange, onTransferFromExternalClick, className, style, ...widgetProviderProps }: BalanceHistoryWidgetProps): React.JSX.Element;
|
|
700
|
+
|
|
610
701
|
interface AccountsQuickViewTileLabels {
|
|
611
702
|
/** Tile heading above the total. */
|
|
612
703
|
title: string;
|
|
@@ -1001,5 +1092,5 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
|
|
|
1001
1092
|
}
|
|
1002
1093
|
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
|
|
1003
1094
|
|
|
1004
|
-
export { QUICK_VIEW_CLICK_HANDLERS, QUICK_VIEW_WIDGET_LABELS_EN, QuickViewType, QuickViewWidget, RemoteCheckCaptureWidget };
|
|
1005
|
-
export type { AccountsQuickViewWidgetLabels, BillsQuickViewWidgetLabels, CardsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps, RemoteCheckCaptureWidgetProps };
|
|
1095
|
+
export { BALANCE_HISTORY_RANGES, BALANCE_HISTORY_WIDGET_LABELS_EN, BalanceHistoryRange, BalanceHistoryWidget, QUICK_VIEW_CLICK_HANDLERS, QUICK_VIEW_WIDGET_LABELS_EN, QuickViewType, QuickViewWidget, RemoteCheckCaptureWidget };
|
|
1096
|
+
export type { AccountsQuickViewWidgetLabels, BalanceHistoryWidgetLabels, BalanceHistoryWidgetProps, BillsQuickViewWidgetLabels, CardsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps, RemoteCheckCaptureWidgetProps };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { BALANCE_HISTORY_RANGES as e, BalanceHistoryRange as t } from "../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/balanceHistoryRange.js";
|
|
2
|
+
import { BALANCE_HISTORY_WIDGET_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js";
|
|
3
|
+
import { BalanceHistoryWidget as r } from "../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js";
|
|
4
|
+
import { QUICK_VIEW_CLICK_HANDLERS as i, QuickViewType as a, QuickViewWidget as o } from "../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js";
|
|
5
|
+
import { QUICK_VIEW_WIDGET_LABELS_EN as s } from "../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js";
|
|
6
|
+
import { RemoteCheckCaptureWidget as c } from "../libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js";
|
|
7
|
+
export { e as BALANCE_HISTORY_RANGES, n as BALANCE_HISTORY_WIDGET_LABELS_EN, t as BalanceHistoryRange, r as BalanceHistoryWidget, i as QUICK_VIEW_CLICK_HANDLERS, s as QUICK_VIEW_WIDGET_LABELS_EN, a as QuickViewType, o as QuickViewWidget, c as RemoteCheckCaptureWidget };
|
package/dist/index.css
CHANGED
|
@@ -704,6 +704,9 @@
|
|
|
704
704
|
.ttw\:h-52 {
|
|
705
705
|
height: calc(var(--ttw-spacing) * 52);
|
|
706
706
|
}
|
|
707
|
+
.ttw\:h-56 {
|
|
708
|
+
height: calc(var(--ttw-spacing) * 56);
|
|
709
|
+
}
|
|
707
710
|
.ttw\:h-60 {
|
|
708
711
|
height: calc(var(--ttw-spacing) * 60);
|
|
709
712
|
}
|
|
@@ -1085,6 +1088,9 @@
|
|
|
1085
1088
|
.ttw\:w-\[616px\] {
|
|
1086
1089
|
width: 616px;
|
|
1087
1090
|
}
|
|
1091
|
+
.ttw\:w-\[640px\] {
|
|
1092
|
+
width: 640px;
|
|
1093
|
+
}
|
|
1088
1094
|
.ttw\:w-\[672px\] {
|
|
1089
1095
|
width: 672px;
|
|
1090
1096
|
}
|
|
@@ -3903,6 +3909,9 @@
|
|
|
3903
3909
|
.ttw\:pl-9\! {
|
|
3904
3910
|
padding-left: calc(var(--ttw-spacing) * 9) !important;
|
|
3905
3911
|
}
|
|
3912
|
+
.ttw\:pl-14 {
|
|
3913
|
+
padding-left: calc(var(--ttw-spacing) * 14);
|
|
3914
|
+
}
|
|
3906
3915
|
.ttw\:pl-20 {
|
|
3907
3916
|
padding-left: calc(var(--ttw-spacing) * 20);
|
|
3908
3917
|
}
|