react-luminus-components 1.3.254 → 1.3.256
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/.vite/manifest.json +26 -43
- package/dist/{FormDisabledProvider-ClVK6oV4.cjs → FormDisabledProvider-IZj7rG71.cjs} +1 -1
- package/dist/{FormDisabledProvider-BBQnM3Qs.js → FormDisabledProvider-bsJ46hjN.js} +1 -1
- package/dist/components/Documents/components/DocumentsActions/components/DocumentsUpload/componenets/UploadFilesModal/hooks/useUploadFilesFormSchema.d.ts +3 -0
- package/dist/components/ResponsiveContextDropdown/ResponsiveContextDropdown.d.ts +4 -1
- package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +14 -4
- package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +10 -0
- package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +0 -5
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +38 -39
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +36 -37
- package/dist/main.cjs.js +27 -27
- package/dist/main.es.js +123 -124
- package/dist/models/api/documents/DocumentUploadModel.d.ts +1 -0
- package/dist/models/ui/routes/PathParamsExtraction.d.ts +2 -0
- package/dist/models/ui/routes/PathParamsObject.d.ts +4 -0
- package/dist/models/ui/routes/RouteInfo.d.ts +8 -0
- package/dist/nivo-bar.es-B14IMLis.cjs +279 -0
- package/dist/{nivo-bar.es-DOi9xK6m.js → nivo-bar.es-DUNbYR2n.js} +3746 -3718
- package/dist/{useGetApiData-C1m7JPYe.js → useGetApiData-9CmdrsjA.js} +1 -1
- package/dist/{useGetApiData-Bb04gnp9.cjs → useGetApiData-CDH4JXLT.cjs} +1 -1
- package/dist/utils/constants/CommonLuminusIconsArray.d.ts +1 -1
- package/dist/utils/route/routeUtils.d.ts +3 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +11 -10
- package/package.json +1 -1
- package/dist/nivo-bar.es-zNqQYP51.cjs +0 -279
- package/dist/usePermissions-BfOvEMXe.cjs +0 -1
- package/dist/usePermissions-DJIMk7va.js +0 -21
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./nivo-bar.es-zNqQYP51.cjs"),n=require("react");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-dom");require("react-hook-form");require("react-flexmonster");const c=()=>{const{user:e}=n.useContext(u.UserContext);return{checkUserHasPermissions:n.useCallback((s,t="any")=>s.length===0?!0:t==="any"?s.some(i=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(i)}):s.every(i=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(i)}),[e])}};exports.usePermissions=c;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ak as i } from "./nivo-bar.es-DOi9xK6m.js";
|
|
2
|
-
import { useContext as n, useCallback as m } from "react";
|
|
3
|
-
import "react-router-dom";
|
|
4
|
-
import "@azure/msal-browser";
|
|
5
|
-
import "@azure/msal-react";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
import "react-hook-form";
|
|
8
|
-
import "react-flexmonster";
|
|
9
|
-
const y = () => {
|
|
10
|
-
const { user: r } = n(i);
|
|
11
|
-
return { checkUserHasPermissions: m((s, o = "any") => s.length === 0 ? !0 : o === "any" ? s.some((t) => {
|
|
12
|
-
var e;
|
|
13
|
-
return (e = r == null ? void 0 : r.permissions) == null ? void 0 : e.includes(t);
|
|
14
|
-
}) : s.every((t) => {
|
|
15
|
-
var e;
|
|
16
|
-
return (e = r == null ? void 0 : r.permissions) == null ? void 0 : e.includes(t);
|
|
17
|
-
}), [r]) };
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
y as u
|
|
21
|
-
};
|