@tesouro/embedded-components-react 0.9.59 → 0.10.2
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 +137 -96
- package/dist/experimental/index.js +4 -3
- 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/dist/packages/shared-ui-shadcn/dist/index.js +3374 -3474
- package/package.json +1 -1
- package/dist/experimental/ApprovalRequests.d.ts +0 -706
- package/dist/experimental/ApprovalRequests.js +0 -2
- 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/approval-requests-widget/data-access/dist/index.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index2.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index3.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index4.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index5.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index6.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index7.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/ApprovalRequestsWidget.js +0 -89
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/buildApprovalRequestRows.js +0 -44
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/canDecideApprovalRequest.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/constants.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/labels.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/permissions.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestDecisions.js +0 -93
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestNames.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestsFilters.js +0 -148
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestsTable.js +0 -73
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index2.js +0 -47
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index3.js +0 -142
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index4.js +0 -136
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index5.js +0 -43
- /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,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { PartialDeep } from 'type-fest';
|
|
2
|
+
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties } from 'react';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
type AuthToken = string | undefined;
|
|
@@ -327,27 +326,11 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
327
326
|
type ClientOptions = {
|
|
328
327
|
baseUrl: 'https://api.stage.tesouro.com' | 'https://api.sandbox.stage.tesouro.com' | 'https://api.stage.business-banking.app' | 'https://api.tesouro.com' | 'https://api.sandbox.tesouro.com' | 'https://api.business-banking.app' | (string & {});
|
|
329
328
|
};
|
|
330
|
-
type ApprovalRequestStatus = 'waiting' | 'approved' | 'rejected' | 'canceled';
|
|
331
329
|
|
|
332
330
|
type EmbeddedClient = Client;
|
|
333
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
334
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
335
333
|
|
|
336
|
-
interface FilterMenuButtonLabels {
|
|
337
|
-
/** Button text, followed by "(N)" when `activeCount` is set. */
|
|
338
|
-
filters: string;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
interface FilterTagLabels {
|
|
342
|
-
/**
|
|
343
|
-
* Accessible name for the editable tag body. `{label}` is substituted with
|
|
344
|
-
* the tag's own text; keep the placeholder when overriding.
|
|
345
|
-
*/
|
|
346
|
-
edit: string;
|
|
347
|
-
/** Accessible name for the × dismiss button. `{label}` is substituted. */
|
|
348
|
-
remove: string;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
334
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
352
335
|
children?: ReactNode;
|
|
353
336
|
};
|
|
@@ -613,94 +596,152 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
613
596
|
providerLabels?: Partial<WidgetProviderLabels>;
|
|
614
597
|
}
|
|
615
598
|
|
|
616
|
-
interface
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
userLoading: string;
|
|
628
|
-
userError: string;
|
|
629
|
-
clearAll: string;
|
|
630
|
-
filterMenuButton: FilterMenuButtonLabels;
|
|
631
|
-
filterTag: FilterTagLabels;
|
|
599
|
+
interface AccountsQuickViewTileLabels {
|
|
600
|
+
/** Tile heading above the total. */
|
|
601
|
+
title: string;
|
|
602
|
+
/** Call to action that opens the accounts list. */
|
|
603
|
+
viewAccounts: string;
|
|
604
|
+
/** Screen-reader only: names the wait while accounts load. */
|
|
605
|
+
loadingLabel: string;
|
|
606
|
+
/** Shown when the bank account request failed. */
|
|
607
|
+
loadErrorTitle: string;
|
|
608
|
+
/** Label for retry after a failed load. */
|
|
609
|
+
loadErrorRetry: string;
|
|
632
610
|
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
approve: string;
|
|
644
|
-
reject: string;
|
|
645
|
-
/** Read by screen readers in a cell whose name is still loading. */
|
|
646
|
-
loadingValue: string;
|
|
647
|
-
errorTitle: string;
|
|
648
|
-
errorDescription: string;
|
|
649
|
-
errorRetry: string;
|
|
650
|
-
filterBar: ApprovalRequestsFilterBarLabels;
|
|
651
|
-
accessRestrictedTitle: string;
|
|
652
|
-
accessRestrictedDescription: string;
|
|
611
|
+
|
|
612
|
+
interface AccountsQuickViewWidgetLabels extends AccountsQuickViewTileLabels {
|
|
613
|
+
/** Line under the total, e.g. "5 accounts". */
|
|
614
|
+
accountCount: (count: number) => string;
|
|
615
|
+
/**
|
|
616
|
+
* Line under the total when the org holds more than one currency, e.g.
|
|
617
|
+
* "3 of 5 accounts, USD only". Accounts in other currencies are not
|
|
618
|
+
* converted, so the total covers only `included` of them.
|
|
619
|
+
*/
|
|
620
|
+
accountCountInCurrency: (included: number, total: number, currencyCode: string) => string;
|
|
653
621
|
}
|
|
654
|
-
|
|
622
|
+
|
|
623
|
+
interface InvoicesQuickViewTileLabels {
|
|
624
|
+
/** Tile heading above the total. */
|
|
655
625
|
title: string;
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
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;
|
|
662
632
|
}
|
|
663
633
|
|
|
664
|
-
interface
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
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
670
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
/** Shown in a cell whose value the request's payable does not carry. */
|
|
677
|
-
missingValue: string;
|
|
678
|
-
/** Shown for a vendor or creator this session may not read, or whose lookup failed. */
|
|
679
|
-
unavailableValue: string;
|
|
680
|
-
status: Record<ApprovalRequestStatus, string>;
|
|
681
|
-
filters: ApprovalRequestsFilterLabels;
|
|
671
|
+
|
|
672
|
+
/** Every tile's copy, keyed by `QuickViewWidget` `type`. */
|
|
673
|
+
interface QuickViewWidgetLabels {
|
|
674
|
+
accounts: AccountsQuickViewWidgetLabels;
|
|
675
|
+
invoices: InvoicesQuickViewWidgetLabels;
|
|
682
676
|
}
|
|
683
|
-
/**
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
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>;
|
|
689
684
|
}
|
|
685
|
+
declare const QUICK_VIEW_WIDGET_LABELS_EN: QuickViewWidgetLabels;
|
|
690
686
|
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
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;
|
|
721
|
+
/**
|
|
722
|
+
* Copy overrides, keyed by tile type. Only the group matching `type` is
|
|
723
|
+
* read; each is merged with that tile's English defaults.
|
|
724
|
+
*/
|
|
725
|
+
labels?: QuickViewWidgetLabelOverrides;
|
|
726
|
+
/**
|
|
727
|
+
* Added to the tile's root. The tile defaults to 320px wide; a host rule on
|
|
728
|
+
* this class (e.g. `width: auto; display: block`) overrides it.
|
|
729
|
+
*/
|
|
730
|
+
className?: string;
|
|
731
|
+
/** Inline styles on the tile's root. */
|
|
732
|
+
style?: CSSProperties;
|
|
696
733
|
}
|
|
697
|
-
/** Public props for {@link ApprovalRequestsWidget}. */
|
|
698
|
-
type ApprovalRequestsWidgetProps = WidgetProviderProps & ApprovalRequestsWidgetOwnProps;
|
|
699
734
|
/**
|
|
700
|
-
*
|
|
701
|
-
*
|
|
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`.
|
|
702
743
|
*/
|
|
703
|
-
declare function
|
|
744
|
+
declare function QuickViewWidget({ type, labels, onViewAccountsClick, onViewInvoicesClick, onCreateInvoiceClick, className, style, ...widgetProviderProps }: QuickViewWidgetProps): React.JSX.Element | null;
|
|
704
745
|
|
|
705
746
|
interface CheckAmountAndDetailScreenLabels {
|
|
706
747
|
title: string;
|
|
@@ -812,5 +853,5 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
|
|
|
812
853
|
}
|
|
813
854
|
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
|
|
814
855
|
|
|
815
|
-
export {
|
|
816
|
-
export type {
|
|
856
|
+
export { QUICK_VIEW_CLICK_HANDLERS, QUICK_VIEW_WIDGET_LABELS_EN, QuickViewType, QuickViewWidget, RemoteCheckCaptureWidget };
|
|
857
|
+
export type { AccountsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps, RemoteCheckCaptureWidgetProps };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
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 { RemoteCheckCaptureWidget as i } from "../libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js";
|
|
4
|
+
export { e as QUICK_VIEW_CLICK_HANDLERS, r as QUICK_VIEW_WIDGET_LABELS_EN, t as QuickViewType, n as QuickViewWidget, i 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 };
|