@tesouro/embedded-components-react 0.5.261 → 0.5.263
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/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +104 -93
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index3.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +53 -60
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +187 -176
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +11 -3
- 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/lib/EmbeddedToaster.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/HostIsolationScope.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/isolationRoot.js +4 -0
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js
CHANGED
|
@@ -2007,7 +2007,15 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2007
2007
|
"Content-Type": "application/json",
|
|
2008
2008
|
...e.headers
|
|
2009
2009
|
}
|
|
2010
|
-
}), Dn = (e) => (e
|
|
2010
|
+
}), Dn = (e) => (e?.client ?? t).get({
|
|
2011
|
+
security: [{
|
|
2012
|
+
key: "HTTPBearer",
|
|
2013
|
+
scheme: "bearer",
|
|
2014
|
+
type: "http"
|
|
2015
|
+
}],
|
|
2016
|
+
url: "/identity/v1/users/me",
|
|
2017
|
+
...e
|
|
2018
|
+
}), On = (e) => (e.client ?? t).patch({
|
|
2011
2019
|
security: [{
|
|
2012
2020
|
key: "APPToken",
|
|
2013
2021
|
scheme: "bearer",
|
|
@@ -2023,7 +2031,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2023
2031
|
"Content-Type": "application/json",
|
|
2024
2032
|
...e.headers
|
|
2025
2033
|
}
|
|
2026
|
-
}),
|
|
2034
|
+
}), kn = (e) => (e.client ?? t).post({
|
|
2027
2035
|
security: [{
|
|
2028
2036
|
key: "APPToken",
|
|
2029
2037
|
scheme: "bearer",
|
|
@@ -2037,4 +2045,4 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2037
2045
|
...e
|
|
2038
2046
|
});
|
|
2039
2047
|
//#endregion
|
|
2040
|
-
export { O as activateCreditCard, P as activateDebitCard, dn as bulkUpdateDepartmentMembers, vn as bulkUpdateLocationMembers, xn as bulkUpdateRoleMembers, z as connectExternalBankAccount, q as createAchMoneyMovement, s as createApplication, p as createBankAccount, J as createBookTransfer, b as createCheckDeposit, A as createDebitCard, sn as createDepartment, mn as createLocation, En as createUser, o as createVelocityControl, cn as deactivateDepartment, hn as deactivateLocation, te as deleteApprovalPoliciesId, c as deleteBankAccountApplication, de as deleteCounterpartsId, ye as deleteCounterpartsIdBankAccountsId, Ce as deleteEntitiesIdLogo, Me as deleteFilesId, Fe as deleteLedgerAccountsId, Be as deleteMeasureUnitsId, qe as deletePayablesId, tt as deletePayablesIdFile, bt as deleteProductsId, Tt as deleteReceiptsId, At as deleteReceivablesId,
|
|
2048
|
+
export { O as activateCreditCard, P as activateDebitCard, dn as bulkUpdateDepartmentMembers, vn as bulkUpdateLocationMembers, xn as bulkUpdateRoleMembers, z as connectExternalBankAccount, q as createAchMoneyMovement, s as createApplication, p as createBankAccount, J as createBookTransfer, b as createCheckDeposit, A as createDebitCard, sn as createDepartment, mn as createLocation, En as createUser, o as createVelocityControl, cn as deactivateDepartment, hn as deactivateLocation, te as deleteApprovalPoliciesId, c as deleteBankAccountApplication, de as deleteCounterpartsId, ye as deleteCounterpartsIdBankAccountsId, Ce as deleteEntitiesIdLogo, Me as deleteFilesId, Fe as deleteLedgerAccountsId, Be as deleteMeasureUnitsId, qe as deletePayablesId, tt as deletePayablesIdFile, bt as deleteProductsId, Tt as deleteReceiptsId, At as deleteReceivablesId, kn as disableUser, w as downloadBankAccountTransactions, Y as getAnalyticsPayables, X as getAnalyticsReceipts, Z as getAnalyticsReceivables, Q as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, $ as getApprovalPolicies, re as getApprovalRequests, g as getBankAccount, v as getBankAccountAccess, l as getBankAccountApplication, S as getBankAccountStatement, x as getBankAccountStatements, C as getBankAccountTransactions, T as getBankAccountTransfers, f as getBankAccounts, oe as getBankDetails, ce as getBankDetailsId, le as getCounterparts, fe as getCounterpartsId, me as getCounterpartsIdAddresses, _e as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, ln as getDepartment, h as getDepositableBankAccounts, fn as getDisclosures, Se as getDocumentsIdNextNumbers, Te as getEntitiesIdPaymentMethods, Ee as getEntitiesIdSettings, Oe as getEntityUsers, ke as getEntityUsersMe, Ae as getEntityUsersMyEntity, V as getExternalBankAccount, U as getExternalBankAccountAccess, R as getExternalBankAccounts, Ne as getLedgerAccounts, gn as getLocation, Le as getMailboxes, Dn as getMe, Re as getMeasureUnits, a as getMerchantCategoryGroups, yn as getOrganization, He as getOverdueReminders, We as getPayables, Je as getPayablesId, nt as getPayablesIdHistory, rt as getPayablesIdLineItems, ut as getPayablesIdSuggestions, pt as getPaymentRecords, ht as getPaymentReminders, _t as getPaymentTerms, vt as getProducts, xt as getProductsId, Ct as getReceipts, Dt as getReceivables, jt as getReceivablesId, Lt as getReceivablesIdHistory, Vt as getReceivablesIdPdfLink, kt as getReceivablesRequiredFields, Wt as getRecurrencesId, Yt as getTransactions, Qt as getTransactionsId, tn as getTransactionsIdExpenseHistory, Xt as getTransactionsValidations, Cn as getUserData, Tn as getUsers, y as grantBankAccountAccess, W as grantExternalBankAccountAccess, G as linkExternalBankAccount, on as listDepartments, pn as listLocations, Sn as listRolePermissions, bn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, ne as patchApprovalPoliciesId, pe as patchCounterpartsId, ge as patchCounterpartsIdAddressesId, be as patchCounterpartsIdBankAccountsId, De as patchEntitiesIdSettings, Ie as patchLedgerAccountsId, Ve as patchMeasureUnitsId, Ye as patchPayablesId, St as patchProductsId, Et as patchReceiptsId, Mt as patchReceivablesId, Gt as patchRecurrencesId, $t as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, ee as postApprovalPolicies, ie as postApprovalRequestsIdApprove, ae as postApprovalRequestsIdReject, se as postBankDetails, ue as postCounterparts, he as postCounterpartsIdAddresses, ve as postCounterpartsIdBankAccounts, xe as postCounterpartsIdBankAccountsIdMakeDefault, je as postFiles, Pe as postLedgerAccounts, ze as postMeasureUnits, Ue as postOverdueReminders, Ge as postPayables, Xe as postPayablesIdApprovePaymentOperation, Ze as postPayablesIdAttachFile, Qe as postPayablesIdCancel, $e as postPayablesIdDuplicatesIdConfirm, et as postPayablesIdDuplicatesIdDismiss, at as postPayablesIdMarkAsPaid, ot as postPayablesIdReject, st as postPayablesIdReopen, ct as postPayablesIdSchedulePayment, lt as postPayablesIdSubmitForApproval, dt as postPayablesIdValidate, Ke as postPayablesUploadFromFile, ft as postPaymentIntentsIdCancel, mt as postPaymentRecords, gt as postPaymentReminders, yt as postProducts, wt as postReceiptsUploadFromFile, Ot as postReceivables, Nt as postReceivablesIdAccept, Pt as postReceivablesIdCancel, Ft as postReceivablesIdClone, It as postReceivablesIdDecline, Rt as postReceivablesIdIssue, zt as postReceivablesIdMarkAsPaid, Bt as postReceivablesIdMarkAsUncollectible, Ht as postReceivablesIdSend, Ut as postRecurrences, Kt as postRecurrencesIdCancel, qt as postRecurrencesIdPause, Jt as postRecurrencesIdResume, en as postTransactionsIdApprove, nn as postTransactionsIdReject, rn as postTransactionsIdReopen, an as postTransactionsIdSubmit, we as putEntitiesIdLogo, it as putPayablesIdLineItems, Zt as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, _ as updateBankAccount, N as updateDebitCard, un as updateDepartment, H as updateExternalBankAccount, _n as updateLocation, On as updateUser, wn as upsertUserData, K as validateExternalBankAccount, L as verifyDebitCard };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.263", n = "759b6fc6c60363f415ccba2e5bb33c107e8f9697", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -2,44 +2,66 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Toaster as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Toaster as e, usePortalContainer as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { OVERLAY_Z_INDEX as n, SCOPE_CLASS as r } from "./HostIsolationScope/isolationRoot.js";
|
|
7
|
+
import { useEffect as i, useLayoutEffect as a, useState as o, useSyncExternalStore as s } from "react";
|
|
8
|
+
import { createPortal as c } from "react-dom";
|
|
9
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
8
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let e = globalThis, t = e[
|
|
11
|
+
var u = Symbol.for("tesouro.embedded-toaster.registry.v1");
|
|
12
|
+
function d() {
|
|
13
|
+
let e = globalThis, t = e[u];
|
|
12
14
|
return t || (t = {
|
|
13
15
|
nextId: 1,
|
|
14
16
|
active: /* @__PURE__ */ new Set(),
|
|
15
17
|
listeners: /* @__PURE__ */ new Set()
|
|
16
|
-
}, e[
|
|
18
|
+
}, e[u] = t), t;
|
|
17
19
|
}
|
|
18
|
-
function
|
|
19
|
-
let t =
|
|
20
|
+
function f(e) {
|
|
21
|
+
let t = d();
|
|
20
22
|
return t.listeners.add(e), () => {
|
|
21
23
|
t.listeners.delete(e);
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
+
function p() {
|
|
27
|
+
d().listeners.forEach((e) => e());
|
|
26
28
|
}
|
|
27
|
-
function
|
|
28
|
-
let e =
|
|
29
|
+
function m() {
|
|
30
|
+
let e = d();
|
|
29
31
|
if (e.active.size === 0) return 0;
|
|
30
32
|
let t = Infinity;
|
|
31
33
|
return e.active.forEach((e) => {
|
|
32
34
|
e < t && (t = e);
|
|
33
35
|
}), t;
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
var h = `position: relative; z-index: calc(${n} + 1);`, g = "document" in globalThis ? a : i;
|
|
38
|
+
function _() {
|
|
39
|
+
if (!("document" in globalThis)) return null;
|
|
40
|
+
let e = globalThis.document.createElement("div");
|
|
41
|
+
return e.classList.add(r), e.setAttribute("style", h), e;
|
|
42
|
+
}
|
|
43
|
+
function v(e) {
|
|
44
|
+
let [t] = o(_);
|
|
45
|
+
return g(() => {
|
|
46
|
+
if (!e || !t) return;
|
|
47
|
+
let n = globalThis.document?.body;
|
|
48
|
+
if (n) return n.appendChild(t), () => {
|
|
49
|
+
t.remove();
|
|
50
|
+
};
|
|
51
|
+
}, [e, t]), e ? t : null;
|
|
52
|
+
}
|
|
53
|
+
function y(n = {}) {
|
|
54
|
+
let [r] = o(() => d().nextId++), a = t();
|
|
55
|
+
i(() => {
|
|
56
|
+
let e = d();
|
|
57
|
+
return e.active.add(r), p(), () => {
|
|
58
|
+
e.active.delete(r), p();
|
|
41
59
|
};
|
|
42
|
-
}, [
|
|
60
|
+
}, [r]);
|
|
61
|
+
let u = s(f, m, m) === r, h = v(u && a != null);
|
|
62
|
+
if (!u) return null;
|
|
63
|
+
let g = /* @__PURE__ */ l(e, { ...n });
|
|
64
|
+
return h ? c(g, h) : g;
|
|
43
65
|
}
|
|
44
66
|
//#endregion
|
|
45
|
-
export {
|
|
67
|
+
export { y as EmbeddedToaster };
|
|
@@ -3,30 +3,31 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { PortalContainerProvider as e, usePortalContainer as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { OVERLAY_Z_INDEX as n, SCOPE_CLASS as r } from "./isolationRoot.js";
|
|
7
|
+
import { useEffect as i, useLayoutEffect as a, useState as o } from "react";
|
|
8
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
9
|
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/HostIsolationScope.js
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let
|
|
12
|
-
if (
|
|
10
|
+
var c = { display: "contents" }, l = `position: relative; z-index: ${n};`, u = "document" in globalThis ? a : i;
|
|
11
|
+
function d({ children: n }) {
|
|
12
|
+
let i = t(), [a] = o(() => {
|
|
13
|
+
if (i != null || !("document" in globalThis)) return null;
|
|
13
14
|
let e = globalThis.document.createElement("div");
|
|
14
|
-
return e.classList.add(
|
|
15
|
+
return e.classList.add(r), e.setAttribute("style", l), e;
|
|
15
16
|
});
|
|
16
|
-
return
|
|
17
|
-
if (!
|
|
18
|
-
let e =
|
|
17
|
+
return u(() => {
|
|
18
|
+
if (!a) return;
|
|
19
|
+
let e = a, t = globalThis.document?.body;
|
|
19
20
|
if (t) return t.appendChild(e), () => {
|
|
20
21
|
e.remove();
|
|
21
22
|
};
|
|
22
|
-
}, [
|
|
23
|
-
container:
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
className:
|
|
26
|
-
style:
|
|
23
|
+
}, [a]), /* @__PURE__ */ s(e, {
|
|
24
|
+
container: a ?? i,
|
|
25
|
+
children: /* @__PURE__ */ s("div", {
|
|
26
|
+
className: r,
|
|
27
|
+
style: c,
|
|
27
28
|
children: n
|
|
28
29
|
})
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
//#endregion
|
|
32
|
-
export {
|
|
33
|
+
export { d as HostIsolationScope };
|