@tesouro/embedded-components-react 0.11.141 → 0.11.168
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/NOTICE +24 -0
- package/README.md +15 -37
- package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
- package/dist/experimental/QuickViewWidget.d.ts +0 -11
- package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
- package/dist/experimental/index.d.ts +0 -11
- package/dist/fixtures/index.d.ts +27 -1
- package/dist/index.css +6976 -6246
- package/dist/index.d.ts +67 -173
- package/dist/index.js +9 -10
- package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
- package/dist/lib/BalancesWidget.d.ts +0 -11
- package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
- package/dist/lib/BankAccountsWidget.d.ts +3 -11
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
- package/dist/lib/BillPayWidget.d.ts +0 -11
- package/dist/lib/CardDetailsWidget.d.ts +0 -11
- package/dist/lib/CounterpartsWidget.d.ts +1 -12
- package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
- package/dist/lib/CreditCardsWidget.d.ts +1 -11
- package/dist/lib/DebitCardsWidget.d.ts +1 -11
- package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
- package/dist/lib/InsightsWidget.d.ts +0 -11
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -11
- package/dist/lib/OfferWidget.d.ts +0 -11
- package/dist/lib/ReceivablesWidget.d.ts +60 -17
- package/dist/lib/ReceivablesWidget.js +3 -2
- package/dist/lib/SettingsWidget.d.ts +0 -11
- package/dist/lib/TransfersWidget.d.ts +0 -11
- package/dist/lib/WidgetProvider.d.ts +0 -11
- package/dist/lib/WidgetProviderPublic.d.ts +0 -11
- package/dist/lib/WidgetSuite.d.ts +63 -15
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +122 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +63 -59
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +161 -160
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +126 -122
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +193 -192
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +100 -96
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
- 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/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
- package/dist/node_modules/sonner/dist/index.js +620 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
- package/dist/scenarios/index.d.ts +1 -3
- package/dist/scenarios/index.js +17 -20
- package/package.json +17 -4
- package/dist/lib/CustomersWidget.d.ts +0 -993
- package/dist/lib/CustomersWidget.js +0 -2
- package/dist/lib/ProductsWidget.d.ts +0 -893
- package/dist/lib/ProductsWidget.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js
CHANGED
|
@@ -7,142 +7,146 @@ import { Link as ee } from "../../../shared/ui/dist/lib/Link/Link.js";
|
|
|
7
7
|
import { WidgetFrame as te } from "../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
|
|
8
8
|
import { StatePanel as r } from "../../../shared/ui/dist/lib/StatePanel/StatePanel.js";
|
|
9
9
|
import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
10
|
-
import {
|
|
10
|
+
import { NoAccessState as a } from "../../../shared/ui/dist/lib/StatePanel/NoAccessState.js";
|
|
11
|
+
import { LoadingRegion as o } from "../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
|
|
11
12
|
import "../../../shared/ui/dist/index.js";
|
|
12
|
-
import { DEFAULT_LABELS as
|
|
13
|
-
import { AccountRow as
|
|
14
|
-
import { linkedAccountsWidgetUiTestIds as
|
|
15
|
-
import { ConnectAccountDialog as
|
|
16
|
-
import { EditAccountDialog as
|
|
17
|
-
import { SendDepositsDialog as
|
|
18
|
-
import { UnlinkAccountDialog as
|
|
13
|
+
import { DEFAULT_LABELS as s } from "./index13.js";
|
|
14
|
+
import { AccountRow as c } from "./index2.js";
|
|
15
|
+
import { linkedAccountsWidgetUiTestIds as l } from "./index6.js";
|
|
16
|
+
import { ConnectAccountDialog as u } from "./index7.js";
|
|
17
|
+
import { EditAccountDialog as d } from "./index8.js";
|
|
18
|
+
import { SendDepositsDialog as f } from "./index10.js";
|
|
19
|
+
import { UnlinkAccountDialog as p } from "./index11.js";
|
|
19
20
|
import { VerifyAccountDialog as ne } from "./index12.js";
|
|
20
|
-
import { Fragment as re, jsx as
|
|
21
|
-
import { LinkIcon as
|
|
21
|
+
import { Fragment as re, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
22
|
+
import { LinkIcon as g } from "lucide-react";
|
|
22
23
|
// ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js
|
|
23
|
-
function
|
|
24
|
+
function _({ labels: _, rows: v, isLoading: y = !1, isError: b = !1, isAccessRestricted: x = !1, onRetry: S, isConnectOpen: C, isEditOpen: w, isVerifyOpen: T, isUnlinkOpen: E, isSendDepositsOpen: D = !1, isSubmitting: O = !1, isActionDisabled: k = !1, isAuthPending: A = !1, canConnect: j = !0, isConnectError: M = !1, isEditError: N = !1, isVerifyError: P = !1, isUnlinkError: F = !1, isSendDepositsError: I = !1, learnMoreUrl: L, unlinkAccountNumber: R, sendDepositsAccountNumber: z, verifyAccountName: B, verifyAccountNumber: V, connectStep: H, accessRows: U, accessGrantedCount: ie, isTeamMembersLoading: W = !1, isTeamMembersError: G = !1, isConnectRequiredErrorVisible: K = !1, isConnectRoutingNumberInvalid: q = !1, connectErrorMessage: J, isVerifyFirstAmountInvalid: Y = !1, isVerifySecondAmountInvalid: ae = !1, isVerifyRequiredErrorVisible: oe = !1, connectSummary: se, connectForm: ce, editForm: le, verifyForm: ue, onConnectOpenChange: X, onEditOpenChange: de, onVerifyOpenChange: fe, onUnlinkOpenChange: pe, onSendDepositsOpenChange: me, onConnectFormChange: he, onEditFormChange: ge, onVerifyFormChange: _e, onConnectNext: ve, onConnectBack: ye, onTeamMembersRetry: be, onEditSubmit: xe, onVerifySubmit: Se, onUnlinkConfirm: Ce, onSendDepositsConfirm: we }) {
|
|
24
25
|
let Z = {
|
|
25
|
-
...
|
|
26
|
-
...
|
|
27
|
-
}, Q = !
|
|
26
|
+
...s,
|
|
27
|
+
..._
|
|
28
|
+
}, Q = !y && !b && v.length === 0, $ = /* @__PURE__ */ m(e, {
|
|
28
29
|
type: "button",
|
|
29
30
|
size: "sm",
|
|
30
|
-
disabled:
|
|
31
|
-
"data-testid":
|
|
31
|
+
disabled: k,
|
|
32
|
+
"data-testid": l.connectAccountButton,
|
|
32
33
|
onClick: () => X(!0),
|
|
33
34
|
children: Z.connectButton
|
|
34
35
|
});
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ h(re, { children: [
|
|
37
|
+
/* @__PURE__ */ m(te, {
|
|
37
38
|
title: Z.title,
|
|
38
|
-
action:
|
|
39
|
-
children:
|
|
39
|
+
action: j && !Q && !x ? $ : void 0,
|
|
40
|
+
children: x ? /* @__PURE__ */ m(a, {
|
|
41
|
+
title: Z.accessRestrictedTitle,
|
|
42
|
+
testId: l.accessRestricted
|
|
43
|
+
}) : b ? /* @__PURE__ */ m(i, {
|
|
40
44
|
title: Z.errorTitle,
|
|
41
45
|
retryLabel: Z.retryButton,
|
|
42
|
-
onRetry:
|
|
43
|
-
}) : Q ? /* @__PURE__ */
|
|
46
|
+
onRetry: S
|
|
47
|
+
}) : Q ? /* @__PURE__ */ m(r, {
|
|
44
48
|
kind: "empty",
|
|
45
|
-
icon: /* @__PURE__ */
|
|
49
|
+
icon: /* @__PURE__ */ m(g, {}),
|
|
46
50
|
title: Z.emptyTitle,
|
|
47
51
|
description: Z.emptyDescription,
|
|
48
|
-
testId:
|
|
49
|
-
action:
|
|
52
|
+
testId: l.emptyState,
|
|
53
|
+
action: j || L ? /* @__PURE__ */ h("div", {
|
|
50
54
|
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3",
|
|
51
|
-
children: [
|
|
52
|
-
href:
|
|
55
|
+
children: [j ? $ : null, L ? /* @__PURE__ */ m(ee, {
|
|
56
|
+
href: L,
|
|
53
57
|
target: "_blank",
|
|
54
58
|
rel: "noopener noreferrer",
|
|
55
59
|
className: "ttw:text-sm ttw:font-medium ttw:text-primary ttw:underline-offset-4 ttw:hover:underline",
|
|
56
60
|
children: Z.learnMoreButton
|
|
57
61
|
}) : null]
|
|
58
62
|
}) : void 0
|
|
59
|
-
}) : /* @__PURE__ */
|
|
60
|
-
isLoading:
|
|
63
|
+
}) : /* @__PURE__ */ m(o, {
|
|
64
|
+
isLoading: y,
|
|
61
65
|
loadingLabel: Z.loadingLabel,
|
|
62
|
-
children:
|
|
66
|
+
children: y ? /* @__PURE__ */ h("div", {
|
|
63
67
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
-
}) : /* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ m(t, { className: "ttw:h-11 ttw:w-full" }), /* @__PURE__ */ m(t, { className: "ttw:h-11 ttw:w-full" })]
|
|
69
|
+
}) : /* @__PURE__ */ m(n, { children: /* @__PURE__ */ m("ul", {
|
|
66
70
|
className: "ttw:-my-3 ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
67
|
-
children:
|
|
71
|
+
children: v.map((e) => /* @__PURE__ */ m(c, {
|
|
68
72
|
row: e,
|
|
69
|
-
isActionDisabled:
|
|
73
|
+
isActionDisabled: k
|
|
70
74
|
}, e.key))
|
|
71
75
|
}) })
|
|
72
76
|
})
|
|
73
77
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
open:
|
|
78
|
+
/* @__PURE__ */ m(u, {
|
|
79
|
+
open: C,
|
|
76
80
|
labels: Z,
|
|
77
|
-
connectStep:
|
|
78
|
-
connectForm:
|
|
79
|
-
accessRows:
|
|
80
|
-
accessGrantedCount:
|
|
81
|
-
connectSummary:
|
|
82
|
-
isTeamMembersLoading:
|
|
83
|
-
isTeamMembersError:
|
|
84
|
-
isSubmitting:
|
|
85
|
-
isActionDisabled:
|
|
86
|
-
canConnect:
|
|
87
|
-
isConnectError:
|
|
88
|
-
isConnectRequiredErrorVisible:
|
|
89
|
-
isConnectRoutingNumberInvalid:
|
|
90
|
-
connectErrorMessage:
|
|
81
|
+
connectStep: H,
|
|
82
|
+
connectForm: ce,
|
|
83
|
+
accessRows: U,
|
|
84
|
+
accessGrantedCount: ie,
|
|
85
|
+
connectSummary: se,
|
|
86
|
+
isTeamMembersLoading: W,
|
|
87
|
+
isTeamMembersError: G,
|
|
88
|
+
isSubmitting: O,
|
|
89
|
+
isActionDisabled: k,
|
|
90
|
+
canConnect: j,
|
|
91
|
+
isConnectError: M,
|
|
92
|
+
isConnectRequiredErrorVisible: K,
|
|
93
|
+
isConnectRoutingNumberInvalid: q,
|
|
94
|
+
connectErrorMessage: J,
|
|
91
95
|
onOpenChange: X,
|
|
92
|
-
onConnectFormChange:
|
|
93
|
-
onConnectNext:
|
|
94
|
-
onConnectBack:
|
|
95
|
-
onTeamMembersRetry:
|
|
96
|
-
}),
|
|
97
|
-
/* @__PURE__ */ p(u, {
|
|
98
|
-
open: S,
|
|
99
|
-
labels: Z,
|
|
100
|
-
editForm: se,
|
|
101
|
-
isSubmitting: E,
|
|
102
|
-
isAuthPending: O,
|
|
103
|
-
isActionDisabled: D,
|
|
104
|
-
isEditError: j,
|
|
105
|
-
onOpenChange: le,
|
|
106
|
-
onEditFormChange: me,
|
|
107
|
-
onEditSubmit: ye
|
|
96
|
+
onConnectFormChange: he,
|
|
97
|
+
onConnectNext: ve,
|
|
98
|
+
onConnectBack: ye,
|
|
99
|
+
onTeamMembersRetry: be
|
|
108
100
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
open:
|
|
101
|
+
/* @__PURE__ */ m(d, {
|
|
102
|
+
open: w,
|
|
111
103
|
labels: Z,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
isRequiredErrorVisible: Y,
|
|
121
|
-
isVerifyError: M,
|
|
122
|
-
onOpenChange: ue,
|
|
123
|
-
onVerifyFormChange: he,
|
|
124
|
-
onVerifySubmit: be
|
|
104
|
+
editForm: le,
|
|
105
|
+
isSubmitting: O,
|
|
106
|
+
isAuthPending: A,
|
|
107
|
+
isActionDisabled: k,
|
|
108
|
+
isEditError: N,
|
|
109
|
+
onOpenChange: de,
|
|
110
|
+
onEditFormChange: ge,
|
|
111
|
+
onEditSubmit: xe
|
|
125
112
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ m(ne, {
|
|
127
114
|
open: T,
|
|
128
115
|
labels: Z,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
verifyForm: ue,
|
|
117
|
+
accountName: B,
|
|
118
|
+
accountNumber: V,
|
|
119
|
+
isSubmitting: O,
|
|
120
|
+
isAuthPending: A,
|
|
121
|
+
isActionDisabled: k,
|
|
122
|
+
isVerifyFirstAmountInvalid: Y,
|
|
123
|
+
isVerifySecondAmountInvalid: ae,
|
|
124
|
+
isRequiredErrorVisible: oe,
|
|
125
|
+
isVerifyError: P,
|
|
133
126
|
onOpenChange: fe,
|
|
134
|
-
|
|
127
|
+
onVerifyFormChange: _e,
|
|
128
|
+
onVerifySubmit: Se
|
|
135
129
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
open:
|
|
130
|
+
/* @__PURE__ */ m(f, {
|
|
131
|
+
open: D,
|
|
138
132
|
labels: Z,
|
|
139
|
-
accountNumber:
|
|
140
|
-
isSubmitting:
|
|
141
|
-
isAuthPending:
|
|
142
|
-
isError:
|
|
143
|
-
onOpenChange:
|
|
144
|
-
|
|
133
|
+
accountNumber: z,
|
|
134
|
+
isSubmitting: O,
|
|
135
|
+
isAuthPending: A,
|
|
136
|
+
isError: I,
|
|
137
|
+
onOpenChange: me,
|
|
138
|
+
onConfirm: we
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ m(p, {
|
|
141
|
+
open: E,
|
|
142
|
+
labels: Z,
|
|
143
|
+
accountNumber: R,
|
|
144
|
+
isSubmitting: O,
|
|
145
|
+
isAuthPending: A,
|
|
146
|
+
isError: F,
|
|
147
|
+
onOpenChange: pe,
|
|
148
|
+
onUnlinkConfirm: Ce
|
|
145
149
|
})
|
|
146
150
|
] });
|
|
147
151
|
}
|
|
148
|
-
export {
|
|
152
|
+
export { _ as LinkedAccountsWidgetUi };
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
connectAccountButton: "linked-accounts-widget-connect-account-button",
|
|
4
4
|
emptyState: "linked-accounts-widget-empty-state",
|
|
5
|
+
accessRestricted: "linked-accounts-widget-access-restricted",
|
|
5
6
|
connectAccountDialog: "linked-accounts-widget-connect-account-dialog"
|
|
6
7
|
};
|
|
7
8
|
export { e as linkedAccountsWidgetUiTestIds };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { extractApiErrorMessage as t } from "../../../../../shared/util/dist/lib/apiErrors.js";
|
|
7
7
|
import "../../../../../shared/ui/dist/index.js";
|
|
8
8
|
import { formatDeleteError as n } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
|
package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js
CHANGED
|
@@ -178,14 +178,6 @@ function I(e, t, { products: n = k, scopes: r = y, ...i } = {}) {
|
|
|
178
178
|
var L = (e, t = {}) => I(e, {
|
|
179
179
|
label: r[e].label,
|
|
180
180
|
blurb: v.blurbs[e]
|
|
181
|
-
}, t)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
L("loading", { list: "held" }),
|
|
185
|
-
L("error", { list: "failing" }),
|
|
186
|
-
L("paginated", { products: [...k, ...A] }),
|
|
187
|
-
L("control-hidden", { scopes: [e.InvoiceReadOrg] }),
|
|
188
|
-
I("access-restricted", v.scenarios["access-restricted"], { scopes: [e.CounterpartReadOrg] }),
|
|
189
|
-
I("product-not-found", v.scenarios["product-not-found"], { detailMissing: !0 })
|
|
190
|
-
];
|
|
191
|
-
export { E as MEASURE_UNITS, k as PRODUCTS, F as productRoutes, j as productWorld, R as productsScenarios };
|
|
181
|
+
}, t);
|
|
182
|
+
L("populated"), L("empty", { products: [] }), L("loading", { list: "held" }), L("error", { list: "failing" }), L("paginated", { products: [...k, ...A] }), L("control-hidden", { scopes: [e.InvoiceReadOrg] }), I("access-restricted", v.scenarios["access-restricted"], { scopes: [e.CounterpartReadOrg] }), I("product-not-found", v.scenarios["product-not-found"], { detailMissing: !0 });
|
|
183
|
+
export { E as MEASURE_UNITS, k as PRODUCTS, F as productRoutes, j as productWorld };
|
package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { productRoutes, productWorld
|
|
1
|
+
export { productRoutes, productWorld } from "./mocks/products.js";
|
|
@@ -2,97 +2,56 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { useAllDebitCardsQuery as a } from "../../../../shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js";
|
|
5
|
+
import { getDebitCardSpendSummaryOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import { useAllDebitCardsQuery as i } from "../../../../shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js";
|
|
11
10
|
import "../../../../shared/data-access/dist/index.js";
|
|
12
|
-
import {
|
|
11
|
+
import { useQuery as a } from "@tanstack/react-query";
|
|
13
12
|
// ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js
|
|
14
|
-
var
|
|
13
|
+
var o = {
|
|
15
14
|
staleTime: 6e4,
|
|
16
15
|
refetchOnWindowFocus: !0
|
|
17
|
-
},
|
|
18
|
-
staleTime: 3e5,
|
|
19
|
-
refetchOnWindowFocus: !1
|
|
20
|
-
}, u = {
|
|
16
|
+
}, s = {
|
|
21
17
|
retry: 2,
|
|
22
18
|
retryDelay: 300
|
|
23
19
|
};
|
|
24
|
-
function
|
|
25
|
-
return {
|
|
26
|
-
transactions: e.every((e) => e.data !== void 0) ? e.flatMap((e) => e.data ?? []) : void 0,
|
|
27
|
-
isLoading: e.some((e) => e.isLoading),
|
|
28
|
-
isFetching: e.some((e) => e.isFetching),
|
|
29
|
-
isError: e.some((e) => e.isError),
|
|
30
|
-
refetch: () => Promise.all(e.map((e) => e.refetch()))
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
async function f(e) {
|
|
34
|
-
let t = [], n = /* @__PURE__ */ new Set(), r;
|
|
35
|
-
do {
|
|
36
|
-
let i = await e(r);
|
|
37
|
-
t.push(...i.data), r && n.add(r), r = i.nextPaginationToken ?? void 0;
|
|
38
|
-
} while (r && !n.has(r));
|
|
39
|
-
return t;
|
|
40
|
-
}
|
|
41
|
-
function p(e) {
|
|
20
|
+
function c(e) {
|
|
42
21
|
return e.data !== void 0 && !e.isPlaceholderData && !e.hasNextPage && !e.isFetchingNextPage;
|
|
43
22
|
}
|
|
44
|
-
function
|
|
45
|
-
return e.data !== void 0 && !e.isError && !
|
|
23
|
+
function l(e) {
|
|
24
|
+
return e.data !== void 0 && !e.isError && !c(e);
|
|
46
25
|
}
|
|
47
|
-
function
|
|
48
|
-
let { client:
|
|
49
|
-
enabled:
|
|
50
|
-
...
|
|
51
|
-
...
|
|
52
|
-
}),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
headers: C,
|
|
65
|
-
path: { id: r.id },
|
|
66
|
-
query: {
|
|
67
|
-
limit: s,
|
|
68
|
-
...n ? { paginationToken: n } : {}
|
|
69
|
-
},
|
|
70
|
-
signal: t,
|
|
71
|
-
throwOnError: !0
|
|
72
|
-
});
|
|
73
|
-
return i;
|
|
74
|
-
})
|
|
75
|
-
}, {
|
|
76
|
-
authEpoch: y,
|
|
77
|
-
organizationStatus: b
|
|
78
|
-
}),
|
|
79
|
-
...l,
|
|
80
|
-
...u,
|
|
81
|
-
enabled: !!(_ && v) && h
|
|
82
|
-
})),
|
|
83
|
-
combine: d
|
|
26
|
+
function u({ since: u, enabled: d = !0 } = {}) {
|
|
27
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = n(), _ = i({
|
|
28
|
+
enabled: d,
|
|
29
|
+
...o,
|
|
30
|
+
...s
|
|
31
|
+
}), v = c(_) ? _.data?.data : void 0, y = a({
|
|
32
|
+
...t(e({
|
|
33
|
+
client: f,
|
|
34
|
+
headers: r(p),
|
|
35
|
+
query: { since: u ?? "" }
|
|
36
|
+
}), {
|
|
37
|
+
authEpoch: h,
|
|
38
|
+
organizationStatus: g
|
|
39
|
+
}),
|
|
40
|
+
...o,
|
|
41
|
+
...s,
|
|
42
|
+
enabled: !!(p && m && u) && d
|
|
84
43
|
});
|
|
85
44
|
return {
|
|
86
|
-
data:
|
|
87
|
-
cards:
|
|
88
|
-
|
|
45
|
+
data: v && y.data ? {
|
|
46
|
+
cards: v,
|
|
47
|
+
totals: y.data.totals
|
|
89
48
|
} : void 0,
|
|
90
|
-
isLoading:
|
|
91
|
-
isFetching:
|
|
92
|
-
isError:
|
|
49
|
+
isLoading: _.isLoading || l(_) || y.isLoading,
|
|
50
|
+
isFetching: _.isFetching || y.isFetching,
|
|
51
|
+
isError: _.isError || y.isError,
|
|
93
52
|
refetch: async () => {
|
|
94
|
-
await
|
|
53
|
+
await Promise.all([_.refetch(), y.refetch()]);
|
|
95
54
|
}
|
|
96
55
|
};
|
|
97
56
|
}
|
|
98
|
-
export {
|
|
57
|
+
export { c as isCardListComplete, l as isCardListPaging, u as useCardSpendReads };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js
|
|
2
|
-
var e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return t.type === "REFUND" ? e - r : e + r;
|
|
10
|
-
}, 0);
|
|
2
|
+
var e = (e) => String(e).padStart(2, "0");
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = Number(t.slice(0, 4)), r = Number(t.slice(5, 7)), i = -new Date(n, r - 1, 1).getTimezoneOffset(), a = i < 0 ? "-" : "+", o = Math.abs(i);
|
|
5
|
+
return `${t.slice(0, 7)}-01T00:00:00${a}${e(Math.floor(o / 60))}:${e(o % 60)}`;
|
|
6
|
+
}
|
|
7
|
+
function n({ cards: e, totals: t }) {
|
|
8
|
+
let n = t.find((e) => e.currencyCode === "USD");
|
|
11
9
|
return {
|
|
12
|
-
hasCards:
|
|
13
|
-
cardCount:
|
|
14
|
-
spendAmount:
|
|
10
|
+
hasCards: e.length > 0,
|
|
11
|
+
cardCount: e.filter((e) => e.cardStatus !== "CLOSED").length,
|
|
12
|
+
spendAmount: n ? Number(n.value) : 0
|
|
15
13
|
};
|
|
16
14
|
}
|
|
17
|
-
export {
|
|
15
|
+
export { t as startOfLocalMonth, n as summarizeCardSpend };
|
|
@@ -6,24 +6,27 @@ import { useEmbedApi as e } from "../../../../../../shared/data-access/dist/lib/
|
|
|
6
6
|
import "../../../../../../shared/data-access/dist/index.js";
|
|
7
7
|
import { useLocalCalendarDay as t } from "../../../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
|
|
8
8
|
import "../../../../../../shared/feature/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import { useCardSpendReads as
|
|
9
|
+
import { startOfLocalMonth as n, summarizeCardSpend as r } from "./summarizeCardSpend.js";
|
|
10
|
+
import { useCardSpendReads as i } from "../../../../data-access/dist/index2.js";
|
|
11
11
|
import "../../../../data-access/dist/index.js";
|
|
12
|
-
import { useMemo as
|
|
12
|
+
import { useMemo as a, useState as o } from "react";
|
|
13
13
|
// ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
var s = (e, t) => Object.keys(e).every((n) => e[n] === t[n]);
|
|
15
|
+
function c({ enabled: c } = {}) {
|
|
16
|
+
let l = t(), u = l === void 0 ? void 0 : n(l), d = i({
|
|
17
|
+
since: u,
|
|
18
|
+
enabled: c
|
|
19
|
+
}), { organizationId: f, authEpoch: p } = e(), m = a(() => d.data ? r(d.data) : void 0, [d.data]), [h, g] = o(), _ = l?.slice(0, 7), v = h !== void 0 && h.organizationId === f && h.authEpoch === p && h.month === _, y = m !== void 0 && (!d.isFetching && !d.isError || !v), b = v ? h.summary : m;
|
|
20
|
+
return y && !(v && s(h.summary, m)) && (g({
|
|
21
|
+
organizationId: f,
|
|
22
|
+
authEpoch: p,
|
|
23
|
+
month: _,
|
|
24
|
+
summary: m
|
|
25
|
+
}), b = m), {
|
|
26
|
+
...d,
|
|
27
|
+
data: b,
|
|
28
|
+
today: l,
|
|
29
|
+
isLoading: (d.isLoading || l === void 0) && !b
|
|
27
30
|
};
|
|
28
31
|
}
|
|
29
|
-
export {
|
|
32
|
+
export { c as useCardSpendSummary };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { amountOutputToMajorUnits as t, minorExponentForCurrency as n } from "../../../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
7
7
|
import { formatCalendarDate as r } from "../../../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
8
8
|
import { formatMoneyExact as i } from "../../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { extractApiErrorMessage as t } from "../../../../shared/util/dist/lib/apiErrors.js";
|
|
7
7
|
import "../../../../shared/util/dist/index.js";
|
|
8
8
|
import "../../../../shared/ui/dist/index.js";
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js
CHANGED
|
@@ -155,6 +155,13 @@ function L({ canWrite: e }) {
|
|
|
155
155
|
let i = t.find((e) => e.id === n);
|
|
156
156
|
return i ? b(i) : S(404, "Not Found", "No such user.");
|
|
157
157
|
}),
|
|
158
|
+
p("POST", "/users/:id/resend-invitation", (e, { id: n }) => {
|
|
159
|
+
let r = t.find((e) => e.id === n);
|
|
160
|
+
return r ? b({
|
|
161
|
+
email: r.email,
|
|
162
|
+
userId: r.id
|
|
163
|
+
}) : S(404, "Not Found", "No such user.");
|
|
164
|
+
}),
|
|
158
165
|
p("POST", "/users/:id/disable", (e, { id: n }) => (t = t.map((e) => e.id === n ? {
|
|
159
166
|
...e,
|
|
160
167
|
status: "INACTIVE"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import "../../../../shared/ui/dist/index.js";
|
|
7
7
|
import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
|
|
8
8
|
import { buildDocumentRendering as n, getBankDisplayValue as r } from "./index3.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import "../../../../shared/ui/dist/index.js";
|
|
7
7
|
import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
|
|
8
8
|
import { useUploadEntityLogoMutation as n } from "../../data-access/dist/index6.js";
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { resendUserInvitation as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
7
|
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
@@ -13,17 +13,12 @@ import { useMutation as a } from "@tanstack/react-query";
|
|
|
13
13
|
function o() {
|
|
14
14
|
let { client: o, organizationId: s } = n(), c = r(s);
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({
|
|
16
|
+
mutationFn: async ({ userId: t, redirectUri: n }) => {
|
|
17
17
|
await e({
|
|
18
18
|
client: o,
|
|
19
19
|
headers: c,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
email: n,
|
|
23
|
-
status: "INVITED",
|
|
24
|
-
permissionIds: [],
|
|
25
|
-
redirectUri: r
|
|
26
|
-
},
|
|
20
|
+
path: { userId: t },
|
|
21
|
+
body: { redirectUri: n },
|
|
27
22
|
throwOnError: !0
|
|
28
23
|
});
|
|
29
24
|
},
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { isAllPagesResolving as t } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
7
7
|
import { useAllBankAccountsQuery as n } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
8
8
|
import { useAllDebitCardsQuery as r } from "../../../../shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js";
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { isApiUnprocessableError as t } from "../../../../shared/data-access/dist/lib/isApiUnprocessableError.js";
|
|
7
7
|
import "../../../../shared/data-access/dist/index.js";
|
|
8
8
|
import "../../../../shared/ui/dist/index.js";
|
|
@@ -66,8 +66,7 @@ function f({ canDeactivate: o, canResendInvite: l, members: u, featureLabels: f,
|
|
|
66
66
|
onResendOpenChange: y.onOpenChange,
|
|
67
67
|
onResendConfirm: () => {
|
|
68
68
|
l && y.member && g.mutate({
|
|
69
|
-
|
|
70
|
-
email: y.member.email,
|
|
69
|
+
userId: y.member.id,
|
|
71
70
|
redirectUri: c(p)
|
|
72
71
|
}, { onSuccess: () => {
|
|
73
72
|
e.success(f.resendSuccessToast), y.close();
|