@tesouro/embedded-components-react 0.10.0 → 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/dist/experimental/index.d.ts +2 -108
- package/dist/experimental/index.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- 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/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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties } from 'react';
|
|
3
|
-
import { PartialDeep } from 'type-fest';
|
|
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,95 +596,6 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
613
596
|
providerLabels?: Partial<WidgetProviderLabels>;
|
|
614
597
|
}
|
|
615
598
|
|
|
616
|
-
interface ApprovalRequestsFilterBarLabels {
|
|
617
|
-
fields: {
|
|
618
|
-
status: string;
|
|
619
|
-
addedBy: string;
|
|
620
|
-
requestedOn: string;
|
|
621
|
-
};
|
|
622
|
-
fieldMenuLabel: string;
|
|
623
|
-
onlyMine: string;
|
|
624
|
-
userSearchLabel: string;
|
|
625
|
-
userSearchPlaceholder: string;
|
|
626
|
-
userEmpty: string;
|
|
627
|
-
userLoading: string;
|
|
628
|
-
userError: string;
|
|
629
|
-
clearAll: string;
|
|
630
|
-
filterMenuButton: FilterMenuButtonLabels;
|
|
631
|
-
filterTag: FilterTagLabels;
|
|
632
|
-
}
|
|
633
|
-
interface ApprovalRequestsScreenLabels {
|
|
634
|
-
columnInvoiceNumber: string;
|
|
635
|
-
columnVendor: string;
|
|
636
|
-
columnIssueDate: string;
|
|
637
|
-
columnDueDate: string;
|
|
638
|
-
columnStatus: string;
|
|
639
|
-
columnAmount: string;
|
|
640
|
-
columnAddedBy: string;
|
|
641
|
-
columnActions: string;
|
|
642
|
-
rowActions: string;
|
|
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;
|
|
653
|
-
}
|
|
654
|
-
interface RejectApprovalRequestDialogLabels {
|
|
655
|
-
title: string;
|
|
656
|
-
description: string;
|
|
657
|
-
reason: string;
|
|
658
|
-
optionalNote: string;
|
|
659
|
-
confirm: string;
|
|
660
|
-
cancel: string;
|
|
661
|
-
close: string;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
interface ApprovalRequestsFilterLabels {
|
|
665
|
-
statusChip: (value: string) => string;
|
|
666
|
-
addedByChip: (name: string) => string;
|
|
667
|
-
requestedOnChip: (range: string) => string;
|
|
668
|
-
moreSelected: (first: string, count: number) => string;
|
|
669
|
-
dateRange: (from: string, to: string) => string;
|
|
670
|
-
}
|
|
671
|
-
interface ApprovalRequestsListLabels {
|
|
672
|
-
emptyTitle: string;
|
|
673
|
-
emptyDescription: string;
|
|
674
|
-
filterEmptyTitle: string;
|
|
675
|
-
filterEmptyDescription: string;
|
|
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;
|
|
682
|
-
}
|
|
683
|
-
/** Toast copy for approve and reject; the error copy is the fallback when the API gives no reason. */
|
|
684
|
-
interface ApprovalRequestsMessageLabels {
|
|
685
|
-
approved: string;
|
|
686
|
-
rejected: string;
|
|
687
|
-
approveError: string;
|
|
688
|
-
rejectError: string;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
interface ApprovalRequestsWidgetOwnProps {
|
|
692
|
-
screenLabels?: PartialDeep<ApprovalRequestsScreenLabels>;
|
|
693
|
-
listLabels?: PartialDeep<ApprovalRequestsListLabels>;
|
|
694
|
-
rejectDialogLabels?: PartialDeep<RejectApprovalRequestDialogLabels>;
|
|
695
|
-
messageLabels?: PartialDeep<ApprovalRequestsMessageLabels>;
|
|
696
|
-
}
|
|
697
|
-
/** Public props for {@link ApprovalRequestsWidget}. */
|
|
698
|
-
type ApprovalRequestsWidgetProps = WidgetProviderProps & ApprovalRequestsWidgetOwnProps;
|
|
699
|
-
/**
|
|
700
|
-
* Self-contained approval requests widget, a native port of Monite's approval
|
|
701
|
-
* requests (FOPS-97). Exported only from the package's `/experimental` entry.
|
|
702
|
-
*/
|
|
703
|
-
declare function ApprovalRequestsWidget({ screenLabels, listLabels, rejectDialogLabels, messageLabels, ...widgetProviderProps }: ApprovalRequestsWidgetProps): React.JSX.Element;
|
|
704
|
-
|
|
705
599
|
interface AccountsQuickViewTileLabels {
|
|
706
600
|
/** Tile heading above the total. */
|
|
707
601
|
title: string;
|
|
@@ -959,5 +853,5 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
|
|
|
959
853
|
}
|
|
960
854
|
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
|
|
961
855
|
|
|
962
|
-
export {
|
|
963
|
-
export type { AccountsQuickViewWidgetLabels,
|
|
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,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
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 };
|
|
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/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.10.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.10.2", n = "b8b36be3b9c28307bf603b0c0ffa1f64496d0199", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|