@tesouro/embedded-components-react 0.2.280 → 0.2.282
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 +17 -14
- package/dist/experimental/WidgetSuite.d.ts +9 -1
- package/dist/experimental/index.d.ts +9 -1
- package/dist/index.css +20 -6
- package/dist/index.d.ts +46 -23
- package/dist/index.js +54 -53
- package/dist/lib/AcceptDisclosuresWidget.d.ts +9 -1
- package/dist/lib/BalancesWidget.d.ts +8 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -1
- package/dist/lib/BankAccountsWidget.d.ts +9 -1
- package/dist/lib/BillPayWidget.d.ts +8 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/CardDetailsWidget.d.ts +9 -1
- package/dist/lib/CardsWidget.d.ts +9 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +9 -1
- package/dist/lib/CounterpartsWidget.d.ts +9 -1
- package/dist/lib/CreateCardWidget.d.ts +9 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +9 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +9 -1
- package/dist/lib/ExpenseRequirementsWidget.d.ts +9 -1
- package/dist/lib/HelpWidget.d.ts +9 -1
- package/dist/lib/InsightsWidget.d.ts +8 -0
- package/dist/lib/InvoicingWidget.d.ts +9 -1
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -1
- package/dist/lib/ProductsWidget.d.ts +9 -1
- package/dist/lib/ProfileWidget.d.ts +9 -1
- package/dist/lib/ReceiptMatchWidget.d.ts +9 -1
- package/dist/lib/ReceivablesWidget.d.ts +9 -1
- package/dist/lib/SettingsWidget.d.ts +9 -1
- package/dist/lib/TagsWidget.d.ts +9 -1
- package/dist/lib/TeamWidget.d.ts +9 -1
- package/dist/lib/TransfersWidget.d.ts +8 -0
- package/dist/lib/WidgetProvider.d.ts +25 -2
- package/dist/lib/WidgetProvider.js +8 -7
- package/dist/lib/WidgetProviderPublic.d.ts +8 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +54 -53
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +42 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +69 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +46 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +81 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +46 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +43 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +11 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +127 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +7 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +114 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +50 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +86 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +89 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +31 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +80 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +228 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +53 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +69 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +158 -132
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +3 -2
- package/dist/packages/shared-ui-shadcn/dist/index.js +3445 -3413
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
CHANGED
|
@@ -16,16 +16,16 @@ import { CREATE_CARD_WIDGET_LABELS_EN as o } from "../../ui/dist/lib/CreateCardW
|
|
|
16
16
|
import { CreateCardView as s, MailingOptionValue as c } from "../../ui/dist/lib/CreateCardWidget/types.js";
|
|
17
17
|
import { CreateCardWidget as te } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
|
|
18
18
|
import "../../ui/dist/index.js";
|
|
19
|
-
import { CardFormatValue as l, buildCreateDebitCardRequest as u, createDebitCardReference as
|
|
20
|
-
import { resolveCreateCardFeatureLabels as
|
|
21
|
-
import { CreateCardWidgetAnalyticsEvent as
|
|
22
|
-
import { getCreateCardPermissions as
|
|
23
|
-
import { useCreateCardCardholderOptions as
|
|
24
|
-
import { useCreateCard as
|
|
25
|
-
import { useCreateDebitCardMutation as
|
|
26
|
-
import { useCreateCardOrganizationQuery as
|
|
19
|
+
import { CardFormatValue as l, buildCreateDebitCardRequest as u, createDebitCardReference as d, formatBusinessAddress as ne, isBusinessAddressComplete as re, isManualAddressComplete as ie } from "./index3.js";
|
|
20
|
+
import { resolveCreateCardFeatureLabels as ae } from "./index4.js";
|
|
21
|
+
import { CreateCardWidgetAnalyticsEvent as oe, WIDGET_NAME as f } from "./index2.js";
|
|
22
|
+
import { getCreateCardPermissions as se } from "./index5.js";
|
|
23
|
+
import { useCreateCardCardholderOptions as ce } from "./index6.js";
|
|
24
|
+
import { useCreateCard as le } from "../../data-access/dist/index2.js";
|
|
25
|
+
import { useCreateDebitCardMutation as ue } from "../../data-access/dist/index4.js";
|
|
26
|
+
import { useCreateCardOrganizationQuery as de } from "../../data-access/dist/index5.js";
|
|
27
27
|
import "../../data-access/dist/index.js";
|
|
28
|
-
import { useEffect as
|
|
28
|
+
import { useEffect as p, useMemo as m, useRef as fe, useState as h } from "react";
|
|
29
29
|
import { Fragment as pe, jsx as g, jsxs as me } from "react/jsx-runtime";
|
|
30
30
|
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
|
|
31
31
|
var _ = {
|
|
@@ -52,53 +52,53 @@ function y(e, t) {
|
|
|
52
52
|
let n = e.nickname?.trim(), r = v(e.accountNumber);
|
|
53
53
|
return n && r ? `${n} (${r})` : n || r || t;
|
|
54
54
|
}
|
|
55
|
-
function b({ cardArtSrc: ee, labels:
|
|
56
|
-
let C = r(), { isReady: w } =
|
|
55
|
+
function b({ cardArtSrc: ee, labels: f, featureLabels: v, className: b, onClose: x, onCancel: ve, onViewCard: S }) {
|
|
56
|
+
let C = r(), { isReady: w } = le(), { initResponse: T, organizationId: E } = a(), D = m(() => se(T?.scopes), [T?.scopes]), O = ae(v), k = {
|
|
57
57
|
...o,
|
|
58
|
-
...
|
|
58
|
+
...f,
|
|
59
59
|
setup: {
|
|
60
60
|
...o.setup,
|
|
61
|
-
...
|
|
61
|
+
...f?.setup
|
|
62
62
|
}
|
|
63
|
-
}, ye =
|
|
63
|
+
}, ye = m(() => [{
|
|
64
64
|
value: l.Virtual,
|
|
65
65
|
label: k.setup.cardFormatVirtual
|
|
66
66
|
}, {
|
|
67
67
|
value: l.Physical,
|
|
68
68
|
label: k.setup.cardFormatPhysical
|
|
69
|
-
}], [k.setup.cardFormatPhysical, k.setup.cardFormatVirtual]), be =
|
|
69
|
+
}], [k.setup.cardFormatPhysical, k.setup.cardFormatVirtual]), be = m(() => i(), []), [xe, A] = h(s.Setup), [j, M] = h(null), [N, P] = h(null), [Se, F] = h(null), [I, L] = h(null), [R, z] = h(_), [B, V] = h(null), [H, U] = h(null), W = () => {
|
|
70
70
|
M(null), P(null), F(null), L(null), z(_), V(null), U(null), A(s.Setup);
|
|
71
|
-
}, G =
|
|
71
|
+
}, G = fe(E);
|
|
72
72
|
E && E !== G.current && (G.current = E, W());
|
|
73
|
-
let K =
|
|
74
|
-
|
|
73
|
+
let K = fe(!0);
|
|
74
|
+
p(() => (K.current = !0, () => {
|
|
75
75
|
K.current = !1;
|
|
76
|
-
}), []),
|
|
77
|
-
C(
|
|
76
|
+
}), []), p(() => {
|
|
77
|
+
C(oe.Mounted);
|
|
78
78
|
}, [C]);
|
|
79
|
-
let { options: Ce, isError: q, refetch: we } =
|
|
79
|
+
let { options: Ce, isError: q, refetch: we } = ce({ enabled: w && D.canReadUsers && D.canReadRoles }), Te = de({ enabled: w && D.canReadOrganization }), J = t({ enabled: w && D.canReadFundingAccounts }), Ee = ue(), Y = !!J.isError && w && D.canReadFundingAccounts, X = m(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
|
|
80
80
|
value: e.id,
|
|
81
81
|
label: y(e, O.untitledFundingAccount)
|
|
82
82
|
})), [
|
|
83
83
|
J.data?.data,
|
|
84
84
|
O.untitledFundingAccount,
|
|
85
85
|
Y
|
|
86
|
-
]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Te.data?.address, De =
|
|
86
|
+
]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Te.data?.address, De = ne(Q), Oe = re(Q), $ = N === l.Physical, ke = $ && I === c.BusinessAddress && !!De, Ae = $ && I === c.DifferentAddress, je = Y || X.length > 0, Me = !w || !D.canIssue || Ee.isPending || q || Y || !j || !N || !Z || N === l.Physical && (!I || I === c.BusinessAddress && !Oe || I === c.DifferentAddress && !ie(R)), Ne = m(() => {
|
|
87
87
|
let e = _e(H, O);
|
|
88
88
|
return {
|
|
89
|
-
...
|
|
89
|
+
...f,
|
|
90
90
|
success: {
|
|
91
|
-
...
|
|
91
|
+
...f?.success,
|
|
92
92
|
...e
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
}, [
|
|
96
96
|
H,
|
|
97
97
|
O,
|
|
98
|
-
|
|
98
|
+
f
|
|
99
99
|
]), Pe = async () => {
|
|
100
100
|
if (!w) return;
|
|
101
|
-
let t =
|
|
101
|
+
let t = d(), n = u({
|
|
102
102
|
cardholderUserId: j,
|
|
103
103
|
format: N,
|
|
104
104
|
bankAccountId: Z,
|
|
@@ -180,9 +180,9 @@ function b({ cardArtSrc: ee, labels: d, featureLabels: v, className: b, onClose:
|
|
|
180
180
|
} : void 0
|
|
181
181
|
})] });
|
|
182
182
|
}
|
|
183
|
-
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: te, analytics: l,
|
|
183
|
+
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: te, analytics: l, disclosuresAcceptance: u, ...d }) {
|
|
184
184
|
return /* @__PURE__ */ g(ee, {
|
|
185
|
-
widgetName:
|
|
185
|
+
widgetName: f,
|
|
186
186
|
baseUrl: e,
|
|
187
187
|
widgetToken: t,
|
|
188
188
|
organizationId: n,
|
|
@@ -194,7 +194,8 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
194
194
|
errorFallback: c,
|
|
195
195
|
onError: te,
|
|
196
196
|
analytics: l,
|
|
197
|
-
|
|
197
|
+
disclosuresAcceptance: u,
|
|
198
|
+
children: /* @__PURE__ */ g(b, { ...d })
|
|
198
199
|
});
|
|
199
200
|
}
|
|
200
201
|
//#endregion
|
|
@@ -201,7 +201,7 @@ function R() {
|
|
|
201
201
|
onDeleteRule: (e) => void le(e)
|
|
202
202
|
})] });
|
|
203
203
|
}
|
|
204
|
-
function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p } = {}) {
|
|
204
|
+
function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p, disclosuresAcceptance: m } = {}) {
|
|
205
205
|
return /* @__PURE__ */ S(o, {
|
|
206
206
|
widgetName: f,
|
|
207
207
|
baseUrl: i,
|
|
@@ -214,6 +214,7 @@ function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i,
|
|
|
214
214
|
uiFramework: u,
|
|
215
215
|
errorFallback: d,
|
|
216
216
|
onError: p,
|
|
217
|
+
disclosuresAcceptance: m,
|
|
217
218
|
children: /* @__PURE__ */ S(R, {})
|
|
218
219
|
});
|
|
219
220
|
}
|
package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js
CHANGED
|
@@ -29,7 +29,7 @@ function u({ labels: t, receiptUpload: r, receiptsContent: u, matchingContent: d
|
|
|
29
29
|
requirementsContent: p ?? /* @__PURE__ */ l(o, {})
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m,
|
|
32
|
+
function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
|
|
33
33
|
return /* @__PURE__ */ l(t, {
|
|
34
34
|
widgetName: r,
|
|
35
35
|
baseUrl: e,
|
|
@@ -43,7 +43,8 @@ function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gat
|
|
|
43
43
|
errorFallback: f,
|
|
44
44
|
onError: p,
|
|
45
45
|
analytics: m,
|
|
46
|
-
|
|
46
|
+
disclosuresAcceptance: h,
|
|
47
|
+
children: /* @__PURE__ */ l(u, { ...g })
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
//#endregion
|
|
@@ -46,7 +46,7 @@ function m({ isOpen: e, onClose: t, ...n }) {
|
|
|
46
46
|
...n
|
|
47
47
|
}) : null;
|
|
48
48
|
}
|
|
49
|
-
function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f,
|
|
49
|
+
function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, disclosuresAcceptance: p, isOpen: h, preSelectedReceiptIds: g, onClose: _, targetTransactionId: v, onSingleTransactionUpdate: y }) {
|
|
50
50
|
return /* @__PURE__ */ d(n, {
|
|
51
51
|
widgetName: o,
|
|
52
52
|
baseUrl: e,
|
|
@@ -59,12 +59,13 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
59
59
|
uiFramework: l,
|
|
60
60
|
errorFallback: u,
|
|
61
61
|
onError: f,
|
|
62
|
+
disclosuresAcceptance: p,
|
|
62
63
|
children: /* @__PURE__ */ d(m, {
|
|
63
|
-
isOpen:
|
|
64
|
-
preSelectedReceiptIds:
|
|
65
|
-
onClose:
|
|
66
|
-
targetTransactionId:
|
|
67
|
-
onSingleTransactionUpdate:
|
|
64
|
+
isOpen: h,
|
|
65
|
+
preSelectedReceiptIds: g,
|
|
66
|
+
onClose: _,
|
|
67
|
+
targetTransactionId: v,
|
|
68
|
+
onSingleTransactionUpdate: y
|
|
68
69
|
})
|
|
69
70
|
});
|
|
70
71
|
}
|
|
@@ -63,7 +63,7 @@ function x() {
|
|
|
63
63
|
})]
|
|
64
64
|
})] });
|
|
65
65
|
}
|
|
66
|
-
function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p } = {}) {
|
|
66
|
+
function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, disclosuresAcceptance: m } = {}) {
|
|
67
67
|
return /* @__PURE__ */ h(i, {
|
|
68
68
|
widgetName: l,
|
|
69
69
|
baseUrl: a,
|
|
@@ -76,6 +76,7 @@ function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a,
|
|
|
76
76
|
uiFramework: d,
|
|
77
77
|
errorFallback: f,
|
|
78
78
|
onError: p,
|
|
79
|
+
disclosuresAcceptance: m,
|
|
79
80
|
children: /* @__PURE__ */ h(x, {})
|
|
80
81
|
});
|
|
81
82
|
}
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js
CHANGED
|
@@ -111,7 +111,7 @@ function b({ onEdit: r, onDelete: o, onAdd: b, screenLabels: x, formLabels: S, d
|
|
|
111
111
|
})
|
|
112
112
|
] })] });
|
|
113
113
|
}
|
|
114
|
-
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u,
|
|
114
|
+
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, errorFallback: f, onError: p, ...m }) {
|
|
115
115
|
return /* @__PURE__ */ _(r, {
|
|
116
116
|
widgetName: o,
|
|
117
117
|
baseUrl: e,
|
|
@@ -123,9 +123,10 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
|
|
|
123
123
|
implementation: c,
|
|
124
124
|
uiFramework: l,
|
|
125
125
|
analytics: u,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
disclosuresAcceptance: d,
|
|
127
|
+
errorFallback: f,
|
|
128
|
+
onError: p,
|
|
129
|
+
children: /* @__PURE__ */ _(b, { ...m })
|
|
129
130
|
});
|
|
130
131
|
}
|
|
131
132
|
//#endregion
|
|
@@ -29,7 +29,7 @@ function u({ faq: n = o, bankName: a, ...u }) {
|
|
|
29
29
|
...u
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m,
|
|
32
|
+
function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
|
|
33
33
|
return /* @__PURE__ */ l(n, {
|
|
34
34
|
widgetName: a,
|
|
35
35
|
baseUrl: e,
|
|
@@ -43,7 +43,8 @@ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
43
43
|
errorFallback: f,
|
|
44
44
|
onError: p,
|
|
45
45
|
analytics: m,
|
|
46
|
-
|
|
46
|
+
disclosuresAcceptance: h,
|
|
47
|
+
children: /* @__PURE__ */ l(u, { ...g })
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js
CHANGED
|
@@ -212,7 +212,7 @@ function S({ counterpartFormLabels: t, counterpartMessageLabels: a, defaultTab:
|
|
|
212
212
|
})
|
|
213
213
|
] });
|
|
214
214
|
}
|
|
215
|
-
function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f,
|
|
215
|
+
function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...m }) {
|
|
216
216
|
return /* @__PURE__ */ b(t, {
|
|
217
217
|
widgetName: a,
|
|
218
218
|
baseUrl: e,
|
|
@@ -226,7 +226,8 @@ function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
226
226
|
errorFallback: u,
|
|
227
227
|
onError: d,
|
|
228
228
|
analytics: f,
|
|
229
|
-
|
|
229
|
+
disclosuresAcceptance: p,
|
|
230
|
+
children: /* @__PURE__ */ b(S, { ...m })
|
|
230
231
|
});
|
|
231
232
|
}
|
|
232
233
|
//#endregion
|
|
@@ -19,7 +19,7 @@ function c(n) {
|
|
|
19
19
|
i(r.Mounted);
|
|
20
20
|
}, [i]), /* @__PURE__ */ o(t, { ...n });
|
|
21
21
|
}
|
|
22
|
-
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m,
|
|
22
|
+
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h, pageTitleComponent: g = s, uiFramework: _, ...v }) {
|
|
23
23
|
return /* @__PURE__ */ o(n, {
|
|
24
24
|
widgetName: i,
|
|
25
25
|
baseUrl: e,
|
|
@@ -32,10 +32,11 @@ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gat
|
|
|
32
32
|
onError: f,
|
|
33
33
|
finopsThemeColors: p,
|
|
34
34
|
analytics: m,
|
|
35
|
-
|
|
35
|
+
disclosuresAcceptance: h,
|
|
36
|
+
uiFramework: _,
|
|
36
37
|
children: /* @__PURE__ */ o(c, {
|
|
37
|
-
...
|
|
38
|
-
pageTitleComponent:
|
|
38
|
+
...v,
|
|
39
|
+
pageTitleComponent: g
|
|
39
40
|
})
|
|
40
41
|
});
|
|
41
42
|
}
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js
CHANGED
|
@@ -22,7 +22,7 @@ function c({ labels: t, featureLabels: n }) {
|
|
|
22
22
|
...c
|
|
23
23
|
})] });
|
|
24
24
|
}
|
|
25
|
-
function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m,
|
|
25
|
+
function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
|
|
26
26
|
return /* @__PURE__ */ o(t, {
|
|
27
27
|
widgetName: n,
|
|
28
28
|
baseUrl: e,
|
|
@@ -36,7 +36,8 @@ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
|
|
|
36
36
|
errorFallback: f,
|
|
37
37
|
onError: p,
|
|
38
38
|
analytics: m,
|
|
39
|
-
|
|
39
|
+
disclosuresAcceptance: h,
|
|
40
|
+
children: /* @__PURE__ */ o(c, { ...g })
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
//#endregion
|
|
@@ -103,7 +103,7 @@ function h({ pageSizeOptions: t = o, screenLabels: a, formLabels: h, detailsLabe
|
|
|
103
103
|
})
|
|
104
104
|
] });
|
|
105
105
|
}
|
|
106
|
-
function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f,
|
|
106
|
+
function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, ...g }) {
|
|
107
107
|
return /* @__PURE__ */ p(t, {
|
|
108
108
|
widgetName: a,
|
|
109
109
|
baseUrl: e,
|
|
@@ -117,7 +117,8 @@ function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
117
117
|
errorFallback: u,
|
|
118
118
|
onError: d,
|
|
119
119
|
analytics: f,
|
|
120
|
-
|
|
120
|
+
disclosuresAcceptance: m,
|
|
121
|
+
children: /* @__PURE__ */ p(h, { ...g })
|
|
121
122
|
});
|
|
122
123
|
}
|
|
123
124
|
//#endregion
|
|
@@ -100,7 +100,7 @@ function v({ labels: t, featureLabels: o, contactUrl: v }) {
|
|
|
100
100
|
isError: k
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p,
|
|
103
|
+
function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, disclosuresAcceptance: m, ...h }) {
|
|
104
104
|
return /* @__PURE__ */ f(t, {
|
|
105
105
|
widgetName: o,
|
|
106
106
|
baseUrl: e,
|
|
@@ -114,7 +114,8 @@ function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
114
114
|
errorFallback: u,
|
|
115
115
|
onError: d,
|
|
116
116
|
analytics: p,
|
|
117
|
-
|
|
117
|
+
disclosuresAcceptance: m,
|
|
118
|
+
children: /* @__PURE__ */ f(v, { ...h })
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
121
|
//#endregion
|
|
@@ -112,7 +112,7 @@ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContac
|
|
|
112
112
|
onSectionChange: W
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f,
|
|
115
|
+
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p, ...h }) {
|
|
116
116
|
return /* @__PURE__ */ b(o, {
|
|
117
117
|
widgetName: m,
|
|
118
118
|
baseUrl: e,
|
|
@@ -127,7 +127,8 @@ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
127
127
|
onError: u,
|
|
128
128
|
finopsThemeColors: d,
|
|
129
129
|
analytics: f,
|
|
130
|
-
|
|
130
|
+
disclosuresAcceptance: p,
|
|
131
|
+
children: /* @__PURE__ */ b(C, { ...h })
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
//#endregion
|
|
@@ -21,9 +21,9 @@ import { Scope as An } from "./lib/scopes.js";
|
|
|
21
21
|
import { getAllPagesNextPageParam as jn, getAllPagesNextPaginationTokenParam as Mn, isAllPagesResolving as Nn, useAutoFetchNextPage as Pn } from "./lib/allPages.js";
|
|
22
22
|
import { useAllBankAccountsQuery as Fn } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
23
23
|
import { useAllExternalBankAccountsQuery as In } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
24
|
-
import {
|
|
25
|
-
import { usePaymentTermsQuery as
|
|
26
|
-
import { useAllOrganizationRolesQuery as
|
|
27
|
-
import { useRolePermissionsQueries as
|
|
28
|
-
import { useAllOrganizationUsersQuery as
|
|
29
|
-
export { s as EmbedApiProvider, An as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, we as connectExternalBankAccountMutation, Te as createAchMoneyMovementMutation, Ee as createApplicationMutation, De as createBankAccountMutation, Oe as createBookTransferMutation, ke as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Ae as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, je as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Me as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Ne as disableUserMutation, E as downloadBankAccountTransactions, Se as fetchWidgetInit, jn as getAllPagesNextPageParam, Mn as getAllPagesNextPaginationTokenParam, Pe as getAnalyticsPayablesOptions, Fe as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ie as getApplicationStatusOptions, O as getApprovalPolicies, Le as getApprovalPoliciesOptions, Re as getApprovalPoliciesQueryKey, ze as getApprovalRequestsQueryKey, k as getBankAccountAccess, Be as getBankAccountAccessQueryKey, Ve as getBankAccountOptions, He as getBankAccountQueryKey, Ue as getBankAccountTransactionsOptions, We as getBankAccountTransfersOptions, Ge as getBankAccountTransfersQueryKey, Ke as getBankAccountsQueryKey, qe as getCounterpartsIdAddressesOptions, Je as getCounterpartsIdAddressesQueryKey, Ye as getCounterpartsIdBankAccountsOptions, Xe as getCounterpartsIdBankAccountsQueryKey, Ze as getCounterpartsIdOptions, Qe as getCounterpartsIdQueryKey, $e as getCounterpartsOptions, et as getCounterpartsQueryKey, tt as getCreditCardByIdOptions, nt as getCreditCardsOptions, rt as getDebitCardByIdOptions, it as getDebitCardsOptions, at as getDebitCardsQueryKey, A as getDepartment, ot as getDepartmentOptions, st as getDepartmentQueryKey, j as getDisclosures, ct as getEntitiesIdSettingsOptions, lt as getEntitiesIdSettingsQueryKey, ut as getEntitiesMeOptions, dt as getEntityUsersMyEntityOptions, ft as getEntityUsersOptions, M as getExternalBankAccountAccess, pt as getExternalBankAccountAccessQueryKey, mt as getExternalBankAccountsOptions, ht as getExternalBankAccountsQueryKey, gt as getLedgerAccountsQueryKey, N as getLocation, _t as getLocationOptions, vt as getLocationQueryKey, yt as getMeasureUnitsOptions, bt as getMeasureUnitsQueryKey, xt as getOrganizationOptions, St as getPayablesAnalyticsQueryKey, Ct as getPayablesIdHistoryQueryKey, P as getPayablesIdLineItems, wt as getPayablesIdLineItemsOptions, Tt as getPayablesIdLineItemsQueryKey, Et as getPayablesIdOptions, Dt as getPayablesIdQueryKey, Ot as getPayablesIdSuggestionsOptions, kt as getPayablesOptions, At as getPayablesQueryKey, jt as getProductsIdOptions, Mt as getProductsIdQueryKey, Nt as getProductsOptions, Pt as getProductsQueryKey, Ft as getReceiptsIdQueryKey, It as getReceiptsOptions, Lt as getReceiptsQueryKey, Rt as getReceivablesIdHistoryOptions, zt as getReceivablesIdHistoryQueryKey, Bt as getReceivablesIdMailsOptions, Vt as getReceivablesIdMailsQueryKey, Ht as getReceivablesIdOptions, Ut as getReceivablesIdPdfLinkOptions, Wt as getReceivablesIdPdfLinkQueryKey, Gt as getReceivablesIdQueryKey, Kt as getReceivablesOptions, qt as getReceivablesQueryKey, Jt as getTagsOptions, Yt as getTagsQueryKey, Xt as getTransactionsIdQueryKey, Zt as getTransactionsOptions, Qt as getTransactionsQueryKey, $t as getTransactionsValidationsOptions, en as getTransactionsValidationsQueryKey, F as getUsers, tn as getUsersOptions, nn as getUsersQueryKey, rn as grantBankAccountAccessMutation, an as grantExternalBankAccountAccessMutation, Ce as hasAnyScope, e as invalidateAllClients, Nn as isAllPagesResolving, Dn as isApiNotFoundError, o as isWidgetGatewayHost, on as linkExternalBankAccountMutation, I as listDepartments, sn as listDepartmentsOptions, cn as listDepartmentsQueryKey, L as listLocations, ln as listLocationsOptions, un as listLocationsQueryKey, R as listRoles, dn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, fn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, pn as patchEntitiesIdSettingsMutation, mn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, hn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, J as postApiWidgetGatewayDisclosureAcceptance, gn as postApprovalPoliciesMutation, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, _n as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdSubmitForApproval, re as postPayablesIdValidate, ie as postPayablesUploadFromFile, ae as postProducts, oe as postReceivables, se as postReceivablesIdAccept, ce as postReceivablesIdCancel, le as postReceivablesIdClone, ue as postReceivablesIdDecline, de as postReceivablesIdIssue, fe as postReceivablesIdMarkAsPaid, pe as postReceivablesIdMarkAsPartiallyPaid, me as postReceivablesIdMarkAsUncollectible, he as postReceivablesIdSend, ge as postTags, _e as putPayablesIdLineItems, ve as putReceivablesIdLineItems, vn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, yn as submitApplicationMutation, bn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, xn as updateApplicationMutation, Sn as updateBankAccountMutation, ye as updateDepartment, Cn as updateExternalBankAccountMutation, be as updateLocation, xe as updateUser, Fn as useAllBankAccountsQuery, In as useAllExternalBankAccountsQuery,
|
|
24
|
+
import { useAllLedgerAccountsQuery as Ln, useLedgerAccountsQuery as Rn } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
25
|
+
import { usePaymentTermsQuery as zn } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
26
|
+
import { useAllOrganizationRolesQuery as Bn } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
27
|
+
import { useRolePermissionsQueries as Vn } from "./lib/role/useRolePermissionsQueries.js";
|
|
28
|
+
import { useAllOrganizationUsersQuery as Hn } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
29
|
+
export { s as EmbedApiProvider, An as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, we as connectExternalBankAccountMutation, Te as createAchMoneyMovementMutation, Ee as createApplicationMutation, De as createBankAccountMutation, Oe as createBookTransferMutation, ke as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Ae as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, je as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Me as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Ne as disableUserMutation, E as downloadBankAccountTransactions, Se as fetchWidgetInit, jn as getAllPagesNextPageParam, Mn as getAllPagesNextPaginationTokenParam, Pe as getAnalyticsPayablesOptions, Fe as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ie as getApplicationStatusOptions, O as getApprovalPolicies, Le as getApprovalPoliciesOptions, Re as getApprovalPoliciesQueryKey, ze as getApprovalRequestsQueryKey, k as getBankAccountAccess, Be as getBankAccountAccessQueryKey, Ve as getBankAccountOptions, He as getBankAccountQueryKey, Ue as getBankAccountTransactionsOptions, We as getBankAccountTransfersOptions, Ge as getBankAccountTransfersQueryKey, Ke as getBankAccountsQueryKey, qe as getCounterpartsIdAddressesOptions, Je as getCounterpartsIdAddressesQueryKey, Ye as getCounterpartsIdBankAccountsOptions, Xe as getCounterpartsIdBankAccountsQueryKey, Ze as getCounterpartsIdOptions, Qe as getCounterpartsIdQueryKey, $e as getCounterpartsOptions, et as getCounterpartsQueryKey, tt as getCreditCardByIdOptions, nt as getCreditCardsOptions, rt as getDebitCardByIdOptions, it as getDebitCardsOptions, at as getDebitCardsQueryKey, A as getDepartment, ot as getDepartmentOptions, st as getDepartmentQueryKey, j as getDisclosures, ct as getEntitiesIdSettingsOptions, lt as getEntitiesIdSettingsQueryKey, ut as getEntitiesMeOptions, dt as getEntityUsersMyEntityOptions, ft as getEntityUsersOptions, M as getExternalBankAccountAccess, pt as getExternalBankAccountAccessQueryKey, mt as getExternalBankAccountsOptions, ht as getExternalBankAccountsQueryKey, gt as getLedgerAccountsQueryKey, N as getLocation, _t as getLocationOptions, vt as getLocationQueryKey, yt as getMeasureUnitsOptions, bt as getMeasureUnitsQueryKey, xt as getOrganizationOptions, St as getPayablesAnalyticsQueryKey, Ct as getPayablesIdHistoryQueryKey, P as getPayablesIdLineItems, wt as getPayablesIdLineItemsOptions, Tt as getPayablesIdLineItemsQueryKey, Et as getPayablesIdOptions, Dt as getPayablesIdQueryKey, Ot as getPayablesIdSuggestionsOptions, kt as getPayablesOptions, At as getPayablesQueryKey, jt as getProductsIdOptions, Mt as getProductsIdQueryKey, Nt as getProductsOptions, Pt as getProductsQueryKey, Ft as getReceiptsIdQueryKey, It as getReceiptsOptions, Lt as getReceiptsQueryKey, Rt as getReceivablesIdHistoryOptions, zt as getReceivablesIdHistoryQueryKey, Bt as getReceivablesIdMailsOptions, Vt as getReceivablesIdMailsQueryKey, Ht as getReceivablesIdOptions, Ut as getReceivablesIdPdfLinkOptions, Wt as getReceivablesIdPdfLinkQueryKey, Gt as getReceivablesIdQueryKey, Kt as getReceivablesOptions, qt as getReceivablesQueryKey, Jt as getTagsOptions, Yt as getTagsQueryKey, Xt as getTransactionsIdQueryKey, Zt as getTransactionsOptions, Qt as getTransactionsQueryKey, $t as getTransactionsValidationsOptions, en as getTransactionsValidationsQueryKey, F as getUsers, tn as getUsersOptions, nn as getUsersQueryKey, rn as grantBankAccountAccessMutation, an as grantExternalBankAccountAccessMutation, Ce as hasAnyScope, e as invalidateAllClients, Nn as isAllPagesResolving, Dn as isApiNotFoundError, o as isWidgetGatewayHost, on as linkExternalBankAccountMutation, I as listDepartments, sn as listDepartmentsOptions, cn as listDepartmentsQueryKey, L as listLocations, ln as listLocationsOptions, un as listLocationsQueryKey, R as listRoles, dn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, fn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, pn as patchEntitiesIdSettingsMutation, mn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, hn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, J as postApiWidgetGatewayDisclosureAcceptance, gn as postApprovalPoliciesMutation, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, _n as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdSubmitForApproval, re as postPayablesIdValidate, ie as postPayablesUploadFromFile, ae as postProducts, oe as postReceivables, se as postReceivablesIdAccept, ce as postReceivablesIdCancel, le as postReceivablesIdClone, ue as postReceivablesIdDecline, de as postReceivablesIdIssue, fe as postReceivablesIdMarkAsPaid, pe as postReceivablesIdMarkAsPartiallyPaid, me as postReceivablesIdMarkAsUncollectible, he as postReceivablesIdSend, ge as postTags, _e as putPayablesIdLineItems, ve as putReceivablesIdLineItems, vn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, yn as submitApplicationMutation, bn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, xn as updateApplicationMutation, Sn as updateBankAccountMutation, ye as updateDepartment, Cn as updateExternalBankAccountMutation, be as updateLocation, xe as updateUser, Fn as useAllBankAccountsQuery, In as useAllExternalBankAccountsQuery, Ln as useAllLedgerAccountsQuery, Bn as useAllOrganizationRolesQuery, Hn as useAllOrganizationUsersQuery, Pn as useAutoFetchNextPage, En as useCurrentUserQuery, c as useEmbedApi, On as useGetUserDataQuery, Rn as useLedgerAccountsQuery, zn as usePaymentTermsQuery, Vn as useRolePermissionsQueries, kn as useUpsertUserDataMutation, wn as validateExternalBankAccountMutation, Tn as withAuthEpoch };
|
|
@@ -4,20 +4,62 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useEmbedApi as e } from "../EmbedApiContext.js";
|
|
6
6
|
import { organizationHeaders as t } from "../organizationHeaders.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { getLedgerAccounts as n } from "../rest/sdk.gen.js";
|
|
8
|
+
import { getLedgerAccountsOptions as r } from "../rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as i } from "../withAuthEpoch.js";
|
|
10
|
+
import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
|
|
11
|
+
import { useMemo as c } from "react";
|
|
12
|
+
import { useInfiniteQuery as l, useQuery as u } from "@tanstack/react-query";
|
|
10
13
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
var d = 250;
|
|
15
|
+
function f({ enabled: n, ...a } = {}) {
|
|
16
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), d = !!(s && c) && (n === !0 || n === void 0), f = r({
|
|
17
|
+
client: o,
|
|
18
|
+
headers: t(s),
|
|
19
|
+
query: a
|
|
16
20
|
});
|
|
17
|
-
return
|
|
18
|
-
...
|
|
21
|
+
return u({
|
|
22
|
+
...i(f, l),
|
|
19
23
|
enabled: d
|
|
20
24
|
});
|
|
21
25
|
}
|
|
26
|
+
function p({ enabled: u } = {}) {
|
|
27
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = e(), g = t(p), _ = !!(p && m) && (u === !0 || u === void 0), v = r({
|
|
28
|
+
client: f,
|
|
29
|
+
headers: g,
|
|
30
|
+
query: { limit: d }
|
|
31
|
+
}), y = l({
|
|
32
|
+
queryKey: [...i(v, h).queryKey, "all"],
|
|
33
|
+
enabled: _,
|
|
34
|
+
initialPageParam: void 0,
|
|
35
|
+
queryFn: async ({ signal: e, pageParam: t }) => {
|
|
36
|
+
let { data: r } = await n({
|
|
37
|
+
client: f,
|
|
38
|
+
headers: g,
|
|
39
|
+
query: {
|
|
40
|
+
limit: d,
|
|
41
|
+
...t ? { pagination_token: t } : {}
|
|
42
|
+
},
|
|
43
|
+
signal: e,
|
|
44
|
+
throwOnError: !0
|
|
45
|
+
});
|
|
46
|
+
return r;
|
|
47
|
+
},
|
|
48
|
+
getNextPageParam: a
|
|
49
|
+
});
|
|
50
|
+
s(y, _);
|
|
51
|
+
let b = c(() => {
|
|
52
|
+
if (y.data) return {
|
|
53
|
+
data: y.data.pages.flatMap((e) => e.data ?? []),
|
|
54
|
+
next_pagination_token: void 0,
|
|
55
|
+
prev_pagination_token: void 0
|
|
56
|
+
};
|
|
57
|
+
}, [y.data]);
|
|
58
|
+
return {
|
|
59
|
+
...y,
|
|
60
|
+
data: b,
|
|
61
|
+
isResolving: o(y)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
22
64
|
//#endregion
|
|
23
|
-
export {
|
|
65
|
+
export { p as useAllLedgerAccountsQuery, f as useLedgerAccountsQuery };
|
|
@@ -11,10 +11,10 @@ import { WidgetProvider as l } from "./lib/WidgetProvider/WidgetProvider.js";
|
|
|
11
11
|
import { WidgetTokenRefreshProvider as u } from "./lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
12
12
|
import { useOptionalWidgetToken as d, useWidgetToken as f } from "./lib/WidgetProvider/useWidgetToken.js";
|
|
13
13
|
import { RefreshingRootWidgetProvider as p } from "./lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
14
|
-
import {
|
|
14
|
+
import { useDisclosuresAcceptanceSurface as m, useOwnWidgetConfig as h, useRefetchWidget as g, useWidgetConfig as _, useWidgetError as v, useWidgetInitStaleForToken as y, useWidgetLoading as b } from "./lib/WidgetProvider/hooks.js";
|
|
15
15
|
import "./lib/WidgetProvider/index.js";
|
|
16
|
-
import { getNaicsOptions as
|
|
17
|
-
import { CardProgram as
|
|
18
|
-
import { CARD_STATUS_LABELS_EN as
|
|
16
|
+
import { getNaicsOptions as x } from "./lib/naicsCodeMap.js";
|
|
17
|
+
import { CardProgram as S } from "./lib/card/cardProgram.js";
|
|
18
|
+
import { CARD_STATUS_LABELS_EN as C, CARD_STATUS_TONE as w, CARD_TYPE_LABELS_EN as T } from "./lib/card/cardPresentation.js";
|
|
19
19
|
import "./lib/analytics/index.js";
|
|
20
|
-
export {
|
|
20
|
+
export { C as CARD_STATUS_LABELS_EN, w as CARD_STATUS_TONE, T as CARD_TYPE_LABELS_EN, S as CardProgram, t as Implementation, p as RefreshingRootWidgetProvider, s as RootWidgetProvider, l as WidgetProvider, u as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, x as getNaicsOptions, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsTrack, m as useDisclosuresAcceptanceSurface, d as useOptionalWidgetToken, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetInitStaleForToken, b as useWidgetLoading, f as useWidgetToken };
|