@dexteel/mesf-core 7.5.1 → 7.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "7.5.1"
2
+ ".": "7.5.2"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.5.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.5.1...@dexteel/mesf-core-v7.5.2) (2025-12-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** add date-fns peer dependency to 3.0.0 || 4.0.0 ([c009378](https://github.com/dexteel/mesf-core-frontend/commit/c0093787828704572e42b18de3553ce31c4ae9ab))
9
+ * **deps:** remove dependency of font-awesome ([2ff6ee4](https://github.com/dexteel/mesf-core-frontend/commit/2ff6ee4d4070a80698f9ccbbcaa8134a22ba9943))
10
+ * **devops:** fix some dependencies warnings ([36cda0a](https://github.com/dexteel/mesf-core-frontend/commit/36cda0a6311f6485b0e69d8793612ec4de0829fc))
11
+ * **devops:** remove duplicated dependencies ([89f4ec9](https://github.com/dexteel/mesf-core-frontend/commit/89f4ec9bce2aa77bd31fdb3ccba495ce8374a829))
12
+
3
13
  ## [7.5.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.5.0...@dexteel/mesf-core-v7.5.1) (2025-12-11)
4
14
 
5
15
 
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ export declare const AuthContext: React.Context<{
3
+ getUserName: () => string;
4
+ saveUserData: (userToken: any) => void;
5
+ clearUserData: () => void;
6
+ getFirstName: () => any;
7
+ getLastName: () => any;
8
+ getUserId: () => any;
9
+ hasPermission: (permissionId: number) => boolean;
10
+ token: string;
11
+ }>;
12
+ export type AuthConfig = {
13
+ guestIsEnabled: boolean;
14
+ useEmailAndPassword: boolean;
15
+ useAzureAD: boolean;
16
+ useWindowsAuth: boolean;
17
+ AzureConfig: AzureConfig;
18
+ };
19
+ export type AzureConfig = {
20
+ clientId: string;
21
+ authority: string;
22
+ redirectUri: string;
23
+ };
@@ -1,29 +1,8 @@
1
1
  import React from "react";
2
- export declare const AuthContext: React.Context<{
3
- getUserName: () => string;
4
- saveUserData: (userToken: any) => void;
5
- clearUserData: () => void;
6
- getFirstName: () => any;
7
- getLastName: () => any;
8
- getUserId: () => any;
9
- hasPermission: (permissionId: number) => boolean;
10
- token: string;
11
- }>;
12
- export type AuthConfig = {
13
- guestIsEnabled: boolean;
14
- useEmailAndPassword: boolean;
15
- useAzureAD: boolean;
16
- useWindowsAuth: boolean;
17
- AzureConfig: AzureConfig;
18
- };
19
- export type AzureConfig = {
20
- clientId: string;
21
- authority: string;
22
- redirectUri: string;
23
- };
2
+ import { AuthConfig } from "./AuthContext";
3
+ export { AuthConfig, AuthContext, type AzureConfig } from "./AuthContext";
24
4
  type AuthProviderProps = {
25
5
  children: any;
26
6
  authConfig: AuthConfig;
27
7
  };
28
8
  export declare const AuthProvider: ({ children, authConfig }: AuthProviderProps) => React.JSX.Element;
29
- export {};
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { AzureConfig } from "../../AuthProvider";
2
+ import { AzureConfig } from "../../AuthContext";
3
3
  export declare const LoginWithAzureAD: ({ config }: {
4
4
  config: AzureConfig;
5
5
  }) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Get the authentication token from localStorage.
3
+ * This is extracted to a separate file to avoid circular dependencies.
4
+ */
5
+ export declare const getTokenFromLS: () => string;
@@ -1,4 +1,5 @@
1
- export declare const getTokenFromLS: () => string;
1
+ import { getTokenFromLS } from "./tokenUtils";
2
+ export { getTokenFromLS };
2
3
  export declare function useToken(): {
3
4
  getUserName: () => string;
4
5
  saveUserData: (userToken: any) => void;
@@ -1,4 +1,3 @@
1
- import "@fortawesome/fontawesome-free/css/all.min.css";
2
1
  import React from "react";
3
2
  interface Props {
4
3
  handleExportToExcel: () => void;
@@ -0,0 +1,3 @@
1
+ import { type SvgIconProps } from "@mui/material";
2
+ import React from "react";
3
+ export declare const ExcelIcon: (props: SvgIconProps) => React.JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import React from "react";
2
- import { Asset } from "../../../../models/Asset";
3
- export declare const searchAssets: () => import("@tanstack/react-query").UseQueryResult<Asset[], Error>;
2
+ export { useSearchAssets as searchAssets } from "../hooks/useSearchAssets";
4
3
  export declare const TreeAsset: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { Asset } from "../../../../models/Asset";
2
+ export declare const useSearchAssets: () => import("@tanstack/react-query").UseQueryResult<Asset[], Error>;
@@ -0,0 +1,5 @@
1
+ import { User } from "../models/User";
2
+ export declare const useSearchUsers: () => import("@tanstack/react-query").UseQueryResult<User[], Error>;
3
+ export declare const useSearchUser: ({ userId }: {
4
+ userId: number | null;
5
+ }) => import("@tanstack/react-query").UseQueryResult<User[], Error>;
@@ -1,2 +1,12 @@
1
1
  import * as React from "react";
2
- export declare const ContextMenu: () => React.JSX.Element | null;
2
+ import { MenuOptionType } from "./models/MenuOptionType";
3
+ interface ContextMenuProps {
4
+ show: boolean;
5
+ position: {
6
+ x: number;
7
+ y: number;
8
+ };
9
+ options: MenuOptionType[];
10
+ }
11
+ export declare const ContextMenu: ({ show, position, options }: ContextMenuProps) => React.JSX.Element | null;
12
+ export {};
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./components/modals/error-modal";
5
5
  export * from "./components/modals/modal.mesf";
6
6
  export * from "./components/navigation/TimeAndUserMenu";
7
7
  export * from "./components/shared/buttons/button-with-loading";
8
+ export { ExcelIcon } from "./components/shared/icons/ExcelIcon";
8
9
  export * from "./configuration";
9
10
  export { searchAssets } from "./configuration/pages/asset/components/TreeAsset";
10
11
  export { AssetTreePicker } from "./controls/asset-tree-picker/AssetTreePicker";