@tesouro/embedded-components-react 0.9.59 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -13
- package/dist/{lib/AccountsQuickViewWidget.d.ts → experimental/QuickViewWidget.d.ts} +112 -15
- package/dist/experimental/QuickViewWidget.js +4 -0
- package/dist/experimental/index.d.ts +150 -3
- package/dist/experimental/index.js +4 -2
- package/dist/index.d.ts +3 -53
- package/dist/index.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/accounts/data-access/dist/index2.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/AccountsQuickViewWidget/AccountsQuickViewWidgetFeature.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/AccountsQuickViewWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/AccountsQuickViewWidget/testIds.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/accountsBalanceSummary/summarizeAccountBalances.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/accountsBalanceSummary/useAccountsBalanceSummary.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/analytics/events.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/ui/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js +56 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/data-access/dist/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/data-access/dist/index2.js +118 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +106 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/labels.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/summarizeOpenInvoices.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/testIds.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/useOpenInvoicesSummary.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/analytics/events.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index2.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/shared/util/dist/lib/widgetName.js +3 -0
- 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/quick-view/ui/dist/index3.js +38 -37
- package/package.json +1 -1
- package/dist/lib/AccountsQuickViewWidget.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/data-access/dist/index2.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/analytics/events.js +0 -3
- /package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/data-access/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/ui/dist/index.js +0 -0
package/README.md
CHANGED
|
@@ -572,19 +572,6 @@ Shows the organization's embedded bank account balances, up to a configurable nu
|
|
|
572
572
|
| `onBalanceRowClick` | `(accountId: string) => void` | `undefined` | When set, balance rows are clickable and receive the account id. |
|
|
573
573
|
| `onViewAllAccountsClick` | `() => void` | `undefined` | When set and more than `maxAccounts` exist, shows **View all accounts**. |
|
|
574
574
|
|
|
575
|
-
### AccountsQuickViewWidget
|
|
576
|
-
|
|
577
|
-
A compact dashboard tile with the organization's total available balance across every bank account, the account count, and a **View accounts** link into your accounts page.
|
|
578
|
-
|
|
579
|
-
#### Props
|
|
580
|
-
|
|
581
|
-
| Prop | Type | Default | Description |
|
|
582
|
-
| ------------- | ---------------------------------------- | -------------- | ----------------------------------------------------------------------------------------------- |
|
|
583
|
-
| `labels` | `Partial<AccountsQuickViewWidgetLabels>` | English labels | Override the tile copy (title, link text, account count, loading and error text). |
|
|
584
|
-
| `onTileClick` | `() => void` | `undefined` | When set, the whole tile is clickable and calls this. Wire it to your accounts page. |
|
|
585
|
-
| `className` | `string` | `undefined` | Added to the tile's root. The tile is 320px wide by default; a rule on this class overrides it. |
|
|
586
|
-
| `style` | `CSSProperties` | `undefined` | Inline styles on the tile's root. |
|
|
587
|
-
|
|
588
575
|
### InsightsWidget
|
|
589
576
|
|
|
590
577
|
Shows onboarding-style insights derived from the organization's embedded and external bank accounts, in **Active** and **Dismissed** tabs. Users can dismiss insights, and the widget remembers dismissals per organization.
|
|
@@ -619,16 +619,110 @@ interface AccountsQuickViewWidgetLabels extends AccountsQuickViewTileLabels {
|
|
|
619
619
|
*/
|
|
620
620
|
accountCountInCurrency: (included: number, total: number, currencyCode: string) => string;
|
|
621
621
|
}
|
|
622
|
-
declare const ACCOUNTS_QUICK_VIEW_WIDGET_LABELS_EN: AccountsQuickViewWidgetLabels;
|
|
623
622
|
|
|
624
|
-
interface
|
|
625
|
-
/**
|
|
626
|
-
|
|
623
|
+
interface InvoicesQuickViewTileLabels {
|
|
624
|
+
/** Tile heading above the total. */
|
|
625
|
+
title: string;
|
|
626
|
+
/** Screen-reader only: names the wait while invoices load. */
|
|
627
|
+
loadingLabel: string;
|
|
628
|
+
/** Shown when the invoice summary request failed. */
|
|
629
|
+
loadErrorTitle: string;
|
|
630
|
+
/** Label for retry after a failed load. */
|
|
631
|
+
loadErrorRetry: string;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
interface InvoicesQuickViewWidgetLabels extends InvoicesQuickViewTileLabels {
|
|
635
|
+
/** Call to action that opens the invoices list. */
|
|
636
|
+
viewInvoices: string;
|
|
637
|
+
/** Call to action when the org has never sent an invoice. */
|
|
638
|
+
sendFirstInvoice: string;
|
|
639
|
+
/** Line under the total when the org has never sent an invoice. */
|
|
640
|
+
noInvoicesYet: string;
|
|
641
|
+
/**
|
|
642
|
+
* Line under the total when nothing sent is still open. Deliberately not
|
|
643
|
+
* "all paid": a canceled or uncollectible invoice also closes, unpaid.
|
|
644
|
+
*/
|
|
645
|
+
noOpenInvoices: string;
|
|
646
|
+
/**
|
|
647
|
+
* Line under the total when invoices are open, but none in the currency the
|
|
648
|
+
* tile totals, e.g. "No open USD invoices". `currency` is an ISO code.
|
|
649
|
+
*/
|
|
650
|
+
noOpenInvoicesInCurrency: (currency: string) => string;
|
|
651
|
+
/** Line under the total when nothing is overdue, e.g. "5 open invoices". */
|
|
652
|
+
openInvoiceCount: (count: number) => string;
|
|
653
|
+
/**
|
|
654
|
+
* Line under the total when something is overdue, e.g.
|
|
655
|
+
* "$6,450.00 overdue · 3 invoices". `amount` is already formatted.
|
|
656
|
+
*/
|
|
657
|
+
overdueSummary: (amount: string, count: number) => string;
|
|
658
|
+
/** The overdue line as a screen reader hears it, without the separator. */
|
|
659
|
+
overdueDescription: (amount: string, count: number) => string;
|
|
660
|
+
/**
|
|
661
|
+
* The tile's one-sentence accessible name, e.g. "Open invoices, $18,300.00,
|
|
662
|
+
* $6,450.00 overdue across 3 invoices. View invoices."
|
|
663
|
+
*/
|
|
664
|
+
accessibleName: (parts: {
|
|
665
|
+
title: string;
|
|
666
|
+
value: string;
|
|
667
|
+
detail: string;
|
|
668
|
+
action: string;
|
|
669
|
+
}) => string;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/** Every tile's copy, keyed by `QuickViewWidget` `type`. */
|
|
673
|
+
interface QuickViewWidgetLabels {
|
|
674
|
+
accounts: AccountsQuickViewWidgetLabels;
|
|
675
|
+
invoices: InvoicesQuickViewWidgetLabels;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Overrides for `QuickViewWidget`'s `labels` prop. Each group is merged with
|
|
679
|
+
* that tile's defaults, so unset keys keep their English copy.
|
|
680
|
+
*/
|
|
681
|
+
interface QuickViewWidgetLabelOverrides {
|
|
682
|
+
accounts?: Partial<AccountsQuickViewWidgetLabels>;
|
|
683
|
+
invoices?: Partial<InvoicesQuickViewWidgetLabels>;
|
|
684
|
+
}
|
|
685
|
+
declare const QUICK_VIEW_WIDGET_LABELS_EN: QuickViewWidgetLabels;
|
|
686
|
+
|
|
687
|
+
declare const QuickViewType: {
|
|
688
|
+
readonly Accounts: "accounts";
|
|
689
|
+
readonly Invoices: "invoices";
|
|
690
|
+
};
|
|
691
|
+
type QuickViewType = (typeof QuickViewType)[keyof typeof QuickViewType];
|
|
692
|
+
interface QuickViewWidgetClickHandlers {
|
|
693
|
+
/**
|
|
694
|
+
* `type="accounts"`: called when the tile is clicked. Wire it to the host's
|
|
695
|
+
* accounts list. Without it the tile is static.
|
|
696
|
+
*/
|
|
697
|
+
onViewAccountsClick?: () => void;
|
|
698
|
+
/**
|
|
699
|
+
* `type="invoices"`: called when the tile is clicked. Wire it to the host's
|
|
700
|
+
* invoices page. Without it the tile is static.
|
|
701
|
+
*/
|
|
702
|
+
onViewInvoicesClick?: () => void;
|
|
703
|
+
/**
|
|
704
|
+
* `type="invoices"`: called instead of `onViewInvoicesClick` while the org
|
|
705
|
+
* has never sent an invoice and the token holds `invoice:write:org`, when the
|
|
706
|
+
* tile reads "Send your first invoice". Without it that tile is static.
|
|
707
|
+
*/
|
|
708
|
+
onCreateInvoiceClick?: () => void;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Which click handlers each tile calls. Every other handler is ignored for that
|
|
712
|
+
* type, and passing one logs a warning.
|
|
713
|
+
*/
|
|
714
|
+
declare const QUICK_VIEW_CLICK_HANDLERS: {
|
|
715
|
+
readonly accounts: readonly ["onViewAccountsClick"];
|
|
716
|
+
readonly invoices: readonly ["onViewInvoicesClick", "onCreateInvoiceClick"];
|
|
717
|
+
};
|
|
718
|
+
interface QuickViewWidgetProps extends WidgetProviderProps, QuickViewWidgetClickHandlers {
|
|
719
|
+
/** Which summary the tile shows. */
|
|
720
|
+
type: QuickViewType;
|
|
627
721
|
/**
|
|
628
|
-
*
|
|
629
|
-
*
|
|
722
|
+
* Copy overrides, keyed by tile type. Only the group matching `type` is
|
|
723
|
+
* read; each is merged with that tile's English defaults.
|
|
630
724
|
*/
|
|
631
|
-
|
|
725
|
+
labels?: QuickViewWidgetLabelOverrides;
|
|
632
726
|
/**
|
|
633
727
|
* Added to the tile's root. The tile defaults to 320px wide; a host rule on
|
|
634
728
|
* this class (e.g. `width: auto; display: block`) overrides it.
|
|
@@ -637,14 +731,17 @@ interface AccountsQuickViewWidgetWithContextProps {
|
|
|
637
731
|
/** Inline styles on the tile's root. */
|
|
638
732
|
style?: CSSProperties;
|
|
639
733
|
}
|
|
640
|
-
interface AccountsQuickViewWidgetProps extends WidgetProviderProps, AccountsQuickViewWidgetWithContextProps {
|
|
641
|
-
}
|
|
642
734
|
/**
|
|
643
|
-
* Dashboard tile
|
|
644
|
-
*
|
|
645
|
-
*
|
|
735
|
+
* Dashboard summary tile. `type` picks the summary:
|
|
736
|
+
*
|
|
737
|
+
* - `accounts`: the org's total available balance and account count. Renders
|
|
738
|
+
* nothing without `bank_account:read:org` or for an org with no accounts.
|
|
739
|
+
* - `invoices`: the total due on open invoices and how much is overdue.
|
|
740
|
+
* Renders nothing without `invoice:read:org`.
|
|
741
|
+
*
|
|
742
|
+
* Each type calls only its own click handlers; see `QUICK_VIEW_CLICK_HANDLERS`.
|
|
646
743
|
*/
|
|
647
|
-
declare function
|
|
744
|
+
declare function QuickViewWidget({ type, labels, onViewAccountsClick, onViewInvoicesClick, onCreateInvoiceClick, className, style, ...widgetProviderProps }: QuickViewWidgetProps): React.JSX.Element | null;
|
|
648
745
|
|
|
649
|
-
export {
|
|
650
|
-
export type { AccountsQuickViewWidgetLabels,
|
|
746
|
+
export { QUICK_VIEW_CLICK_HANDLERS, QUICK_VIEW_WIDGET_LABELS_EN, QuickViewType, QuickViewWidget };
|
|
747
|
+
export type { AccountsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { QUICK_VIEW_CLICK_HANDLERS as e, QuickViewType as t, QuickViewWidget as n } from "../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js";
|
|
2
|
+
import { QUICK_VIEW_WIDGET_LABELS_EN as r } from "../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js";
|
|
3
|
+
import "../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/index.js";
|
|
4
|
+
export { e as QUICK_VIEW_CLICK_HANDLERS, r as QUICK_VIEW_WIDGET_LABELS_EN, t as QuickViewType, n as QuickViewWidget };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
2
|
+
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties } from 'react';
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
5
|
|
|
@@ -702,6 +702,153 @@ type ApprovalRequestsWidgetProps = WidgetProviderProps & ApprovalRequestsWidgetO
|
|
|
702
702
|
*/
|
|
703
703
|
declare function ApprovalRequestsWidget({ screenLabels, listLabels, rejectDialogLabels, messageLabels, ...widgetProviderProps }: ApprovalRequestsWidgetProps): React.JSX.Element;
|
|
704
704
|
|
|
705
|
+
interface AccountsQuickViewTileLabels {
|
|
706
|
+
/** Tile heading above the total. */
|
|
707
|
+
title: string;
|
|
708
|
+
/** Call to action that opens the accounts list. */
|
|
709
|
+
viewAccounts: string;
|
|
710
|
+
/** Screen-reader only: names the wait while accounts load. */
|
|
711
|
+
loadingLabel: string;
|
|
712
|
+
/** Shown when the bank account request failed. */
|
|
713
|
+
loadErrorTitle: string;
|
|
714
|
+
/** Label for retry after a failed load. */
|
|
715
|
+
loadErrorRetry: string;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
interface AccountsQuickViewWidgetLabels extends AccountsQuickViewTileLabels {
|
|
719
|
+
/** Line under the total, e.g. "5 accounts". */
|
|
720
|
+
accountCount: (count: number) => string;
|
|
721
|
+
/**
|
|
722
|
+
* Line under the total when the org holds more than one currency, e.g.
|
|
723
|
+
* "3 of 5 accounts, USD only". Accounts in other currencies are not
|
|
724
|
+
* converted, so the total covers only `included` of them.
|
|
725
|
+
*/
|
|
726
|
+
accountCountInCurrency: (included: number, total: number, currencyCode: string) => string;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
interface InvoicesQuickViewTileLabels {
|
|
730
|
+
/** Tile heading above the total. */
|
|
731
|
+
title: string;
|
|
732
|
+
/** Screen-reader only: names the wait while invoices load. */
|
|
733
|
+
loadingLabel: string;
|
|
734
|
+
/** Shown when the invoice summary request failed. */
|
|
735
|
+
loadErrorTitle: string;
|
|
736
|
+
/** Label for retry after a failed load. */
|
|
737
|
+
loadErrorRetry: string;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
interface InvoicesQuickViewWidgetLabels extends InvoicesQuickViewTileLabels {
|
|
741
|
+
/** Call to action that opens the invoices list. */
|
|
742
|
+
viewInvoices: string;
|
|
743
|
+
/** Call to action when the org has never sent an invoice. */
|
|
744
|
+
sendFirstInvoice: string;
|
|
745
|
+
/** Line under the total when the org has never sent an invoice. */
|
|
746
|
+
noInvoicesYet: string;
|
|
747
|
+
/**
|
|
748
|
+
* Line under the total when nothing sent is still open. Deliberately not
|
|
749
|
+
* "all paid": a canceled or uncollectible invoice also closes, unpaid.
|
|
750
|
+
*/
|
|
751
|
+
noOpenInvoices: string;
|
|
752
|
+
/**
|
|
753
|
+
* Line under the total when invoices are open, but none in the currency the
|
|
754
|
+
* tile totals, e.g. "No open USD invoices". `currency` is an ISO code.
|
|
755
|
+
*/
|
|
756
|
+
noOpenInvoicesInCurrency: (currency: string) => string;
|
|
757
|
+
/** Line under the total when nothing is overdue, e.g. "5 open invoices". */
|
|
758
|
+
openInvoiceCount: (count: number) => string;
|
|
759
|
+
/**
|
|
760
|
+
* Line under the total when something is overdue, e.g.
|
|
761
|
+
* "$6,450.00 overdue · 3 invoices". `amount` is already formatted.
|
|
762
|
+
*/
|
|
763
|
+
overdueSummary: (amount: string, count: number) => string;
|
|
764
|
+
/** The overdue line as a screen reader hears it, without the separator. */
|
|
765
|
+
overdueDescription: (amount: string, count: number) => string;
|
|
766
|
+
/**
|
|
767
|
+
* The tile's one-sentence accessible name, e.g. "Open invoices, $18,300.00,
|
|
768
|
+
* $6,450.00 overdue across 3 invoices. View invoices."
|
|
769
|
+
*/
|
|
770
|
+
accessibleName: (parts: {
|
|
771
|
+
title: string;
|
|
772
|
+
value: string;
|
|
773
|
+
detail: string;
|
|
774
|
+
action: string;
|
|
775
|
+
}) => string;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/** Every tile's copy, keyed by `QuickViewWidget` `type`. */
|
|
779
|
+
interface QuickViewWidgetLabels {
|
|
780
|
+
accounts: AccountsQuickViewWidgetLabels;
|
|
781
|
+
invoices: InvoicesQuickViewWidgetLabels;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Overrides for `QuickViewWidget`'s `labels` prop. Each group is merged with
|
|
785
|
+
* that tile's defaults, so unset keys keep their English copy.
|
|
786
|
+
*/
|
|
787
|
+
interface QuickViewWidgetLabelOverrides {
|
|
788
|
+
accounts?: Partial<AccountsQuickViewWidgetLabels>;
|
|
789
|
+
invoices?: Partial<InvoicesQuickViewWidgetLabels>;
|
|
790
|
+
}
|
|
791
|
+
declare const QUICK_VIEW_WIDGET_LABELS_EN: QuickViewWidgetLabels;
|
|
792
|
+
|
|
793
|
+
declare const QuickViewType: {
|
|
794
|
+
readonly Accounts: "accounts";
|
|
795
|
+
readonly Invoices: "invoices";
|
|
796
|
+
};
|
|
797
|
+
type QuickViewType = (typeof QuickViewType)[keyof typeof QuickViewType];
|
|
798
|
+
interface QuickViewWidgetClickHandlers {
|
|
799
|
+
/**
|
|
800
|
+
* `type="accounts"`: called when the tile is clicked. Wire it to the host's
|
|
801
|
+
* accounts list. Without it the tile is static.
|
|
802
|
+
*/
|
|
803
|
+
onViewAccountsClick?: () => void;
|
|
804
|
+
/**
|
|
805
|
+
* `type="invoices"`: called when the tile is clicked. Wire it to the host's
|
|
806
|
+
* invoices page. Without it the tile is static.
|
|
807
|
+
*/
|
|
808
|
+
onViewInvoicesClick?: () => void;
|
|
809
|
+
/**
|
|
810
|
+
* `type="invoices"`: called instead of `onViewInvoicesClick` while the org
|
|
811
|
+
* has never sent an invoice and the token holds `invoice:write:org`, when the
|
|
812
|
+
* tile reads "Send your first invoice". Without it that tile is static.
|
|
813
|
+
*/
|
|
814
|
+
onCreateInvoiceClick?: () => void;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Which click handlers each tile calls. Every other handler is ignored for that
|
|
818
|
+
* type, and passing one logs a warning.
|
|
819
|
+
*/
|
|
820
|
+
declare const QUICK_VIEW_CLICK_HANDLERS: {
|
|
821
|
+
readonly accounts: readonly ["onViewAccountsClick"];
|
|
822
|
+
readonly invoices: readonly ["onViewInvoicesClick", "onCreateInvoiceClick"];
|
|
823
|
+
};
|
|
824
|
+
interface QuickViewWidgetProps extends WidgetProviderProps, QuickViewWidgetClickHandlers {
|
|
825
|
+
/** Which summary the tile shows. */
|
|
826
|
+
type: QuickViewType;
|
|
827
|
+
/**
|
|
828
|
+
* Copy overrides, keyed by tile type. Only the group matching `type` is
|
|
829
|
+
* read; each is merged with that tile's English defaults.
|
|
830
|
+
*/
|
|
831
|
+
labels?: QuickViewWidgetLabelOverrides;
|
|
832
|
+
/**
|
|
833
|
+
* Added to the tile's root. The tile defaults to 320px wide; a host rule on
|
|
834
|
+
* this class (e.g. `width: auto; display: block`) overrides it.
|
|
835
|
+
*/
|
|
836
|
+
className?: string;
|
|
837
|
+
/** Inline styles on the tile's root. */
|
|
838
|
+
style?: CSSProperties;
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* Dashboard summary tile. `type` picks the summary:
|
|
842
|
+
*
|
|
843
|
+
* - `accounts`: the org's total available balance and account count. Renders
|
|
844
|
+
* nothing without `bank_account:read:org` or for an org with no accounts.
|
|
845
|
+
* - `invoices`: the total due on open invoices and how much is overdue.
|
|
846
|
+
* Renders nothing without `invoice:read:org`.
|
|
847
|
+
*
|
|
848
|
+
* Each type calls only its own click handlers; see `QUICK_VIEW_CLICK_HANDLERS`.
|
|
849
|
+
*/
|
|
850
|
+
declare function QuickViewWidget({ type, labels, onViewAccountsClick, onViewInvoicesClick, onCreateInvoiceClick, className, style, ...widgetProviderProps }: QuickViewWidgetProps): React.JSX.Element | null;
|
|
851
|
+
|
|
705
852
|
interface CheckAmountAndDetailScreenLabels {
|
|
706
853
|
title: string;
|
|
707
854
|
backButton: string;
|
|
@@ -812,5 +959,5 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
|
|
|
812
959
|
}
|
|
813
960
|
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
|
|
814
961
|
|
|
815
|
-
export { ApprovalRequestsWidget, RemoteCheckCaptureWidget };
|
|
816
|
-
export type { ApprovalRequestsWidgetProps, RemoteCheckCaptureWidgetProps };
|
|
962
|
+
export { ApprovalRequestsWidget, QUICK_VIEW_CLICK_HANDLERS, QUICK_VIEW_WIDGET_LABELS_EN, QuickViewType, QuickViewWidget, RemoteCheckCaptureWidget };
|
|
963
|
+
export type { AccountsQuickViewWidgetLabels, ApprovalRequestsWidgetProps, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps, RemoteCheckCaptureWidgetProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ApprovalRequestsWidget as e } from "../libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/ApprovalRequestsWidget.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { QUICK_VIEW_CLICK_HANDLERS as t, QuickViewType as n, QuickViewWidget as r } from "../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js";
|
|
3
|
+
import { QUICK_VIEW_WIDGET_LABELS_EN as i } from "../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js";
|
|
4
|
+
import { RemoteCheckCaptureWidget as a } from "../libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js";
|
|
5
|
+
export { e as ApprovalRequestsWidget, t as QUICK_VIEW_CLICK_HANDLERS, i as QUICK_VIEW_WIDGET_LABELS_EN, n as QuickViewType, r as QuickViewWidget, a as RemoteCheckCaptureWidget };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo, ReactElement
|
|
2
|
+
import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo, ReactElement } from 'react';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
4
|
import { PartialDeep } from 'type-fest';
|
|
5
5
|
|
|
@@ -5150,56 +5150,6 @@ type CustomersWidgetProps = WidgetProviderProps & CustomersWidgetOwnProps;
|
|
|
5150
5150
|
*/
|
|
5151
5151
|
declare function CustomersWidget({ pageSizeOptions, onViewAllDocuments, onCreateDocument, screenLabels, formLabels, detailsLabels, addressLabels, deleteLabels, messageLabels, ...widgetProviderProps }: CustomersWidgetProps): React.JSX.Element;
|
|
5152
5152
|
|
|
5153
|
-
interface AccountsQuickViewTileLabels {
|
|
5154
|
-
/** Tile heading above the total. */
|
|
5155
|
-
title: string;
|
|
5156
|
-
/** Call to action that opens the accounts list. */
|
|
5157
|
-
viewAccounts: string;
|
|
5158
|
-
/** Screen-reader only: names the wait while accounts load. */
|
|
5159
|
-
loadingLabel: string;
|
|
5160
|
-
/** Shown when the bank account request failed. */
|
|
5161
|
-
loadErrorTitle: string;
|
|
5162
|
-
/** Label for retry after a failed load. */
|
|
5163
|
-
loadErrorRetry: string;
|
|
5164
|
-
}
|
|
5165
|
-
|
|
5166
|
-
interface AccountsQuickViewWidgetLabels extends AccountsQuickViewTileLabels {
|
|
5167
|
-
/** Line under the total, e.g. "5 accounts". */
|
|
5168
|
-
accountCount: (count: number) => string;
|
|
5169
|
-
/**
|
|
5170
|
-
* Line under the total when the org holds more than one currency, e.g.
|
|
5171
|
-
* "3 of 5 accounts, USD only". Accounts in other currencies are not
|
|
5172
|
-
* converted, so the total covers only `included` of them.
|
|
5173
|
-
*/
|
|
5174
|
-
accountCountInCurrency: (included: number, total: number, currencyCode: string) => string;
|
|
5175
|
-
}
|
|
5176
|
-
declare const ACCOUNTS_QUICK_VIEW_WIDGET_LABELS_EN: AccountsQuickViewWidgetLabels;
|
|
5177
|
-
|
|
5178
|
-
interface AccountsQuickViewWidgetWithContextProps {
|
|
5179
|
-
/** Merged with ACCOUNTS_QUICK_VIEW_WIDGET_LABELS_EN — only override what you need. */
|
|
5180
|
-
labels?: Partial<AccountsQuickViewWidgetLabels>;
|
|
5181
|
-
/**
|
|
5182
|
-
* Called when the tile is clicked. Wire it to the host's accounts list.
|
|
5183
|
-
* Without it the tile is static.
|
|
5184
|
-
*/
|
|
5185
|
-
onTileClick?: () => void;
|
|
5186
|
-
/**
|
|
5187
|
-
* Added to the tile's root. The tile defaults to 320px wide; a host rule on
|
|
5188
|
-
* this class (e.g. `width: auto; display: block`) overrides it.
|
|
5189
|
-
*/
|
|
5190
|
-
className?: string;
|
|
5191
|
-
/** Inline styles on the tile's root. */
|
|
5192
|
-
style?: CSSProperties;
|
|
5193
|
-
}
|
|
5194
|
-
interface AccountsQuickViewWidgetProps extends WidgetProviderProps, AccountsQuickViewWidgetWithContextProps {
|
|
5195
|
-
}
|
|
5196
|
-
/**
|
|
5197
|
-
* Dashboard tile: the org's total available balance across every bank
|
|
5198
|
-
* account, the account count, and a click-through to the accounts list.
|
|
5199
|
-
* Renders nothing when the token lacks `bank_account:read:org`.
|
|
5200
|
-
*/
|
|
5201
|
-
declare function AccountsQuickViewWidget({ labels, onTileClick, className, style, ...widgetProviderProps }: AccountsQuickViewWidgetProps): React.JSX.Element;
|
|
5202
|
-
|
|
5203
5153
|
interface OfferWidgetLabels {
|
|
5204
5154
|
applyNow: string;
|
|
5205
5155
|
learnMore: string;
|
|
@@ -6414,5 +6364,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
6414
6364
|
|
|
6415
6365
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6416
6366
|
|
|
6417
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN,
|
|
6418
|
-
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels,
|
|
6367
|
+
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, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
6368
|
+
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -48,12 +48,10 @@ import { BANKING_COMPLIANCE_BANNER_LABELS_EN as oe } from "./libs/tesouro-embedd
|
|
|
48
48
|
import { BankingComplianceBannerWidget as se } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
|
|
49
49
|
import { CounterpartsWidget as ce } from "./lib/CounterpartsWidgetPublic.js";
|
|
50
50
|
import { CustomersWidget as le } from "./libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
|
|
58
|
-
import { WidgetProvider as _e } from "./lib/WidgetProviderPublic.js";
|
|
59
|
-
export { Z as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ue as ACCOUNTS_QUICK_VIEW_WIDGET_LABELS_EN, $ as ADDITIONAL_OWNERS_LABELS_EN, re as APPLICATION_STATUS_LABELS_EN, Q as AcceptDisclosuresWidget, de as AccountsQuickViewWidget, I as BALANCES_WIDGET_LABELS_EN, oe as BANKING_COMPLIANCE_BANNER_LABELS_EN, ee as BUSINESS_DETAILS_LABELS_EN, L as BalancesWidget, ie as BankAccountOnboardingWidget, j as BankAccountsWidget, se as BankingComplianceBannerWidget, M as BillPayWidget, N as CardDetailsWidget, ce as CounterpartsWidget, P as CreditCardsWidget, le as CustomersWidget, F as DebitCardsWidget, m as ERROR_STATE_ID, H as ExpenseManagementWidget, G as HELP_FAQ_EN, R as INSIGHTS_FEATURE_LABELS_EN, z as INSIGHTS_WIDGET_LABELS_EN, V as InsightsWidget, q as LinkedAccountsWidget, pe as OFFER_WIDGET_LABELS_EN, fe as OFFER_WIDGET_STATUS_LABELS_EN, me as OfferBenefitIcon, he as OfferWidget, u as OnboardingSuppressionReason, te as PERSONAL_DETAILS_LABELS_EN, ge as ProductsWidget, ne as RESULT_LABELS_EN, U as ReceivablesWidget, C as RefreshingRootWidgetProvider, b as RootWidgetProvider, B as SINGLE_INSIGHT_LABELS_EN, c as Scope, W as SettingsSection, K as SettingsWidget, e as THEME_TOKEN_NAMES, J as TRANSFERS_FEATURE_LABELS_EN, Y as TRANSFERS_WIDGET_LABELS_EN, X as TransfersWidget, d as UIFramework, a as WIDGET_SUITE_DEFAULT_SECTIONS, i as WIDGET_SUITE_LABELS_EN, _e as WidgetProvider, ae as WidgetSuite, o as WidgetSuiteSectionId, x as WidgetTokenRefreshProvider, s as cloneEmbeddedClient, t as createTheme, h as getGlobalWidgetConfig, v as getGlobalWidgetInitState, l as isScope, f as registerDesignSystemEnsurer, p as registerUIRenderers, g as setGlobalWidgetConfig, y as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, _ as updateGlobalWidgetConfig, w as useDisclosuresAcceptanceSurface, T as useOwnWidgetConfig, E as useRefetchWidget, D as useWidgetConfig, O as useWidgetError, k as useWidgetInitStaleForToken, A as useWidgetLoading, S as useWidgetToken };
|
|
51
|
+
import { OFFER_WIDGET_STATUS_LABELS_EN as ue } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
|
|
52
|
+
import { OFFER_WIDGET_LABELS_EN as de } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
|
|
53
|
+
import { OfferBenefitIcon as fe } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
|
|
54
|
+
import { OfferWidget as pe } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
|
|
55
|
+
import { ProductsWidget as me } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
|
|
56
|
+
import { WidgetProvider as he } from "./lib/WidgetProviderPublic.js";
|
|
57
|
+
export { Z as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, $ as ADDITIONAL_OWNERS_LABELS_EN, re as APPLICATION_STATUS_LABELS_EN, Q as AcceptDisclosuresWidget, I as BALANCES_WIDGET_LABELS_EN, oe as BANKING_COMPLIANCE_BANNER_LABELS_EN, ee as BUSINESS_DETAILS_LABELS_EN, L as BalancesWidget, ie as BankAccountOnboardingWidget, j as BankAccountsWidget, se as BankingComplianceBannerWidget, M as BillPayWidget, N as CardDetailsWidget, ce as CounterpartsWidget, P as CreditCardsWidget, le as CustomersWidget, F as DebitCardsWidget, m as ERROR_STATE_ID, H as ExpenseManagementWidget, G as HELP_FAQ_EN, R as INSIGHTS_FEATURE_LABELS_EN, z as INSIGHTS_WIDGET_LABELS_EN, V as InsightsWidget, q as LinkedAccountsWidget, de as OFFER_WIDGET_LABELS_EN, ue as OFFER_WIDGET_STATUS_LABELS_EN, fe as OfferBenefitIcon, pe as OfferWidget, u as OnboardingSuppressionReason, te as PERSONAL_DETAILS_LABELS_EN, me as ProductsWidget, ne as RESULT_LABELS_EN, U as ReceivablesWidget, C as RefreshingRootWidgetProvider, b as RootWidgetProvider, B as SINGLE_INSIGHT_LABELS_EN, c as Scope, W as SettingsSection, K as SettingsWidget, e as THEME_TOKEN_NAMES, J as TRANSFERS_FEATURE_LABELS_EN, Y as TRANSFERS_WIDGET_LABELS_EN, X as TransfersWidget, d as UIFramework, a as WIDGET_SUITE_DEFAULT_SECTIONS, i as WIDGET_SUITE_LABELS_EN, he as WidgetProvider, ae as WidgetSuite, o as WidgetSuiteSectionId, x as WidgetTokenRefreshProvider, s as cloneEmbeddedClient, t as createTheme, h as getGlobalWidgetConfig, v as getGlobalWidgetInitState, l as isScope, f as registerDesignSystemEnsurer, p as registerUIRenderers, g as setGlobalWidgetConfig, y as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, _ as updateGlobalWidgetConfig, w as useDisclosuresAcceptanceSurface, T as useOwnWidgetConfig, E as useRefetchWidget, D as useWidgetConfig, O as useWidgetError, k as useWidgetInitStaleForToken, A as useWidgetLoading, S as useWidgetToken };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { isAllPagesResolving as e } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
6
|
+
import { useAllBankAccountsQuery as t } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
7
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
8
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/data-access/dist/index2.js
|
|
9
|
+
function n({ enabled: n } = {}) {
|
|
10
|
+
let r = t({ enabled: n }), { data: i, isLoading: a, isError: o, isPlaceholderData: s, refetch: c } = r;
|
|
11
|
+
return {
|
|
12
|
+
accounts: i?.data,
|
|
13
|
+
isLoading: a,
|
|
14
|
+
isError: o,
|
|
15
|
+
isPlaceholderData: s,
|
|
16
|
+
isResolving: e(r),
|
|
17
|
+
refetch: c
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export { n as useQuickViewBankAccountsQuery };
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { amountOutputToMajorUnits as e, minorExponentForCurrency as t } from "
|
|
6
|
-
import { formatMoneyExact as n } from "
|
|
7
|
-
import "
|
|
8
|
-
import { isOrganizationOnItsWay as r } from "
|
|
9
|
-
import { useEmbedApi as i } from "
|
|
10
|
-
import { Scope as a } from "
|
|
11
|
-
import "
|
|
12
|
-
import { useAnalyticsTrack as o } from "
|
|
13
|
-
import { WidgetProvider as s } from "
|
|
14
|
-
import { useRefetchWidget as c, useWidgetConfig as l, useWidgetError as u, useWidgetLoading as d } from "
|
|
15
|
-
import "
|
|
5
|
+
import { amountOutputToMajorUnits as e, minorExponentForCurrency as t } from "../../../../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
6
|
+
import { formatMoneyExact as n } from "../../../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
7
|
+
import "../../../../../../shared/util/dist/index.js";
|
|
8
|
+
import { isOrganizationOnItsWay as r } from "../../../../../../shared/data-access/dist/lib/organizationStatus.js";
|
|
9
|
+
import { useEmbedApi as i } from "../../../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import { Scope as a } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
11
|
+
import "../../../../../../shared/data-access/dist/index.js";
|
|
12
|
+
import { useAnalyticsTrack as o } from "../../../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
13
|
+
import { WidgetProvider as s } from "../../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
14
|
+
import { useRefetchWidget as c, useWidgetConfig as l, useWidgetError as u, useWidgetLoading as d } from "../../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
|
+
import "../../../../../../shared/feature/dist/index.js";
|
|
16
16
|
import { AccountsQuickViewTile as f } from "../../../../ui/dist/index3.js";
|
|
17
17
|
import "../../../../ui/dist/index.js";
|
|
18
18
|
import { ACCOUNTS_QUICK_VIEW_WIDGET_LABELS_EN as p } from "./labels.js";
|
|
@@ -21,8 +21,8 @@ import { AccountsQuickViewWidgetAnalyticsEvent as h, WIDGET_NAME as g } from "..
|
|
|
21
21
|
import { accountsQuickViewWidgetTestIds as _ } from "./testIds.js";
|
|
22
22
|
import { useCallback as v, useEffect as y, useMemo as b } from "react";
|
|
23
23
|
import { jsx as x } from "react/jsx-runtime";
|
|
24
|
-
// ../../libs/tesouro-embedded-components-react/
|
|
25
|
-
function S({ labels: s,
|
|
24
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/AccountsQuickViewWidget/AccountsQuickViewWidgetFeature.js
|
|
25
|
+
function S({ labels: s, onViewAccountsClick: g, className: S, style: C }) {
|
|
26
26
|
let w = {
|
|
27
27
|
...p,
|
|
28
28
|
...s
|
|
@@ -66,13 +66,13 @@ function S({ labels: s, onTileClick: g, className: S, style: C }) {
|
|
|
66
66
|
style: C
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function C({ labels: e,
|
|
69
|
+
function C({ labels: e, onViewAccountsClick: t, className: n, style: r, ...i }) {
|
|
70
70
|
return /* @__PURE__ */ x(s, {
|
|
71
71
|
...i,
|
|
72
72
|
widgetName: g,
|
|
73
73
|
children: /* @__PURE__ */ x(S, {
|
|
74
74
|
labels: e,
|
|
75
|
-
|
|
75
|
+
onViewAccountsClick: t,
|
|
76
76
|
className: n,
|
|
77
77
|
style: r
|
|
78
78
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ACCOUNTS_QUICK_VIEW_TILE_LABELS_EN as e } from "../../../../ui/dist/index2.js";
|
|
2
2
|
import "../../../../ui/dist/index.js";
|
|
3
|
-
// ../../libs/tesouro-embedded-components-react/
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/AccountsQuickViewWidget/labels.js
|
|
4
4
|
var t = {
|
|
5
5
|
...e,
|
|
6
6
|
accountCount: (e) => `${e.toLocaleString("en-US")} ${e === 1 ? "account" : "accounts"}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/AccountsQuickViewWidget/testIds.js
|
|
2
2
|
var e = {
|
|
3
3
|
tile: "accounts-quick-view-widget-tile",
|
|
4
4
|
skeleton: "accounts-quick-view-widget-skeleton",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { normalizeAmountOutputCurrencyCode as e } from "
|
|
2
|
-
import "
|
|
3
|
-
// ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
import { normalizeAmountOutputCurrencyCode as e } from "../../../../../../shared/util/dist/lib/normalizeAmountOutputCurrencyCode.js";
|
|
2
|
+
import "../../../../../../shared/util/dist/index.js";
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/accountsBalanceSummary/summarizeAccountBalances.js
|
|
4
4
|
function t(t) {
|
|
5
5
|
if (!t.length) return;
|
|
6
6
|
let n = e(t[0]?.balance?.currencyCode), r = 0, i = 0;
|
|
@@ -6,7 +6,7 @@ import { summarizeAccountBalances as e } from "./summarizeAccountBalances.js";
|
|
|
6
6
|
import { useQuickViewBankAccountsQuery as t } from "../../../../data-access/dist/index2.js";
|
|
7
7
|
import "../../../../data-access/dist/index.js";
|
|
8
8
|
import { useMemo as n, useState as r } from "react";
|
|
9
|
-
// ../../libs/tesouro-embedded-components-react/
|
|
9
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/accountsBalanceSummary/useAccountsBalanceSummary.js
|
|
10
10
|
function i({ enabled: i, organizationId: a } = {}) {
|
|
11
11
|
let { accounts: o, isLoading: s, isError: c, isPlaceholderData: l, isResolving: u, refetch: d } = t({ enabled: i }), f = n(() => o ? e(o) : void 0, [o]), p = o !== void 0 && !u && !c, [m, h] = r();
|
|
12
12
|
p && (m === void 0 || m.summary !== f || m.organizationId !== a) && h({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { QUICK_VIEW_WIDGET_NAME as e } from "../../../../../shared/util/dist/lib/widgetName.js";
|
|
2
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/analytics/events.js
|
|
3
|
+
var t = `${e}.accounts_quick_view_widget`, n = { Mounted: `${t}.mounted` };
|
|
4
|
+
export { n as AccountsQuickViewWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ACCOUNTS_QUICK_VIEW_TILE_LABELS_EN as e } from "./index2.js";
|
|
2
|
-
import { QuickViewTile as t } from "
|
|
3
|
-
import "
|
|
2
|
+
import { QuickViewTile as t } from "../../../../shared/quick-view/ui/dist/index3.js";
|
|
3
|
+
import "../../../../shared/quick-view/ui/dist/index.js";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
-
// ../../libs/tesouro-embedded-components-react/
|
|
5
|
+
// ../../libs/tesouro-embedded-components-react/quick-view-widget/accounts/ui/dist/index3.js
|
|
6
6
|
function r({ value: r, subtext: i, onClick: a, isLoading: o, isError: s, onRetry: c, labels: l, testIds: u, className: d, style: f }) {
|
|
7
7
|
let p = {
|
|
8
8
|
...e,
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { QUICK_VIEW_CLICK_HANDLERS as e, QuickViewType as t, QuickViewWidget as n } from "./lib/QuickViewWidget/QuickViewWidget.js";
|
|
2
|
+
import { QUICK_VIEW_WIDGET_LABELS_EN as r } from "./lib/QuickViewWidget/labels.js";
|
|
3
|
+
export { e as QUICK_VIEW_CLICK_HANDLERS, r as QUICK_VIEW_WIDGET_LABELS_EN, t as QuickViewType, n as QuickViewWidget };
|