@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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/account/AuthContext.d.ts +23 -0
- package/dist/account/AuthProvider.d.ts +2 -23
- package/dist/account/login-strategies/azure-ad/LoginWithAzureAD.d.ts +1 -1
- package/dist/account/tokenUtils.d.ts +5 -0
- package/dist/account/useToken.d.ts +2 -1
- package/dist/components/shared/buttons/ExcelButton.d.ts +0 -1
- package/dist/components/shared/icons/ExcelIcon.d.ts +3 -0
- package/dist/configuration/pages/asset/components/TreeAsset.d.ts +1 -2
- package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +2 -0
- package/dist/configuration/pages/users/hooks/useSearchUser.d.ts +5 -0
- package/dist/controls/contextMenu/ContextMenu.d.ts +11 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +9001 -8961
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/logbook/entry/LogbookPage.d.ts +1 -8
- package/dist/pages/logbook/entry/hooks/useEntries.d.ts +8 -0
- package/dist/pages/logbook/report/LogbookPage.d.ts +1 -9
- package/dist/pages/logbook/report/hooks/useEntriesReport.d.ts +9 -0
- package/dist/pages/trendings/TrendingsPage.d.ts +1 -15
- package/dist/pages/trendings/hooks/useTrendingQueries.d.ts +15 -0
- package/opencode.json +12 -0
- package/package.json +124 -124
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
|
-
|
|
3
|
-
|
|
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,4 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
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,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
|
-
|
|
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";
|