@dexteel/mesf-core 5.10.0 → 5.12.0

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
- ".": "5.10.0"
2
+ ".": "5.12.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,48 @@
1
+ # Changelog
2
+
3
+ ## [5.12.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.11.0...@dexteel/mesf-core-v5.12.0) (2025-09-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * **asset-configuration:** add search functionality to Assets Tree ([ef22460](https://github.com/dexteel/mesf-core-frontend/commit/ef22460bc96f75b3a5454fc4aee0fbf1cb3b7d80))
9
+ * **asset-configuration:** add search functionality to Assets Tree ([2fefd83](https://github.com/dexteel/mesf-core-frontend/commit/2fefd83a61a05f083882c0898b8b0826f216517e))
10
+ * **userContext:** add useHasProfile hook ([#460](https://github.com/dexteel/mesf-core-frontend/issues/460)) ([8788000](https://github.com/dexteel/mesf-core-frontend/commit/8788000718b33c4af2732f88f8c0f47a9cecb29a))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **real-time-config:** Show the names of SP instead of id's ([c97ad12](https://github.com/dexteel/mesf-core-frontend/commit/c97ad128d1519c7498784fa575c7e6fb7741f0d7))
16
+ * **real-time-config:** Show the names of SP instead of id's ([b994a0b](https://github.com/dexteel/mesf-core-frontend/commit/b994a0bdb46c9d74e8d85bc3d4a0b1cdd2c862cb))
17
+
18
+ ## [5.11.0] - 2025-09-08
19
+
20
+
21
+
22
+ # Changelog
23
+
24
+ ## [5.11.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.10.0...@dexteel/mesf-core-v5.11.0) (2025-09-03)
25
+
26
+
27
+ ### Features
28
+
29
+ * **QueryCacheInvalidations:** remove custom styles and use Material-UI components only ([#455](https://github.com/dexteel/mesf-core-frontend/issues/455)) ([f108216](https://github.com/dexteel/mesf-core-frontend/commit/f1082167dbfeba2df365c8ca77a9b7d23617ea60))
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **account:** improve account configuration UI and functionality ([b7ccbdd](https://github.com/dexteel/mesf-core-frontend/commit/b7ccbddabe50df58fbfc4966e617709d13133aa9))
35
+ * **account:** improve account configuration UI and functionality ([14b476d](https://github.com/dexteel/mesf-core-frontend/commit/14b476d0468c38889c653341f71a607a2453c897))
36
+ * **account:** remove custom styles and replace with Material-UI props ([c910339](https://github.com/dexteel/mesf-core-frontend/commit/c910339f5670f757c982532202f3caf0e3dcc8cc))
37
+ * **AssetSelector:** allow plantAssetId to be configured via MESFMain props ([55e9486](https://github.com/dexteel/mesf-core-frontend/commit/55e9486c78df5722cbcfe914c9c219fc08d7260f))
38
+ * **AssetSelector:** handle AssetId 0 correctly and remove None option when assets exist ([66036cc](https://github.com/dexteel/mesf-core-frontend/commit/66036cc2162127d06362dbe289e3c5a8eba50d9b))
39
+ * **AssetSelector:** use plantAssetId from context as default instead of first asset ([8063686](https://github.com/dexteel/mesf-core-frontend/commit/8063686fd3f8bf04af98ffd6448f202724e8ae5b))
40
+ * **QueryCacheInvalidations:** standardize page layout and improve UX consistency ([#451](https://github.com/dexteel/mesf-core-frontend/issues/451)) ([c3009e2](https://github.com/dexteel/mesf-core-frontend/commit/c3009e235e558b4a3773dfe9ba89aa749c602dc6))
41
+
42
+ ## [5.10.0] - 2025-09-02
43
+
44
+
45
+
1
46
  # Changelog
2
47
 
3
48
  ## [5.10.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.9.1...@dexteel/mesf-core-v5.10.0) (2025-09-02)
@@ -0,0 +1,10 @@
1
+ import { NodeModel } from "@minoru/react-dnd-treeview";
2
+ import React from "react";
3
+ import { AssetSearchResult } from "../../hooks/useAssetSearch";
4
+ import { FileProperties } from "../../models/FileProperties";
5
+ interface AssetSearchInputProps {
6
+ assetNodes: NodeModel<FileProperties>[];
7
+ onSearchResultClick: (result: AssetSearchResult) => void;
8
+ }
9
+ export declare const AssetSearchInput: React.FC<AssetSearchInputProps>;
10
+ export {};
@@ -0,0 +1,29 @@
1
+ import { NodeModel } from "@minoru/react-dnd-treeview";
2
+ import React from "react";
3
+ import { FileProperties } from "../models/FileProperties";
4
+ export interface AssetSearchResult {
5
+ id: number;
6
+ name: string;
7
+ path: string;
8
+ isDroppable: boolean;
9
+ hasChildren: boolean;
10
+ node: NodeModel<FileProperties>;
11
+ }
12
+ interface UseAssetSearchProps {
13
+ assetNodes: NodeModel<FileProperties>[];
14
+ externalSearchTerm?: string;
15
+ onSearchTermChange?: (term: string) => void;
16
+ }
17
+ export declare const useAssetSearch: ({ assetNodes, externalSearchTerm, onSearchTermChange, }: UseAssetSearchProps) => {
18
+ searchTerm: string;
19
+ searchResults: AssetSearchResult[];
20
+ showSearchResults: boolean;
21
+ focusedSearchIndex: number;
22
+ searchResultsRefs: React.MutableRefObject<(HTMLElement | null)[]>;
23
+ handleSearchChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
24
+ handleKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => AssetSearchResult | undefined;
25
+ scrollFocusedItemIntoView: (index: number) => void;
26
+ clearSearch: () => void;
27
+ triggerSearch: (term: string) => void;
28
+ };
29
+ export {};
@@ -27,5 +27,6 @@ export declare const getUserPermissionsFromAPI: ({ UserId, UserName, }: Permissi
27
27
  UserName: string;
28
28
  ProfilesId: string;
29
29
  Permissions: string;
30
+ Profiles: string;
30
31
  } | null>;
31
32
  export {};
@@ -7,6 +7,7 @@ export declare const useUserContext: () => {
7
7
  defaultAreaName: string | null;
8
8
  userLogged: boolean;
9
9
  permissions: string[];
10
+ profiles: string[];
10
11
  };
11
12
  actions: import("@reduxjs/toolkit").CaseReducerActions<{
12
13
  setUserId(state: import("immer/dist/internal").WritableDraft<{
@@ -16,6 +17,7 @@ export declare const useUserContext: () => {
16
17
  defaultAreaName: string | null;
17
18
  userLogged: boolean;
18
19
  permissions: string[];
20
+ profiles: string[];
19
21
  }>, { payload }: {
20
22
  payload: any;
21
23
  type: string;
@@ -27,6 +29,7 @@ export declare const useUserContext: () => {
27
29
  defaultAreaName: string | null;
28
30
  userLogged: boolean;
29
31
  permissions: string[];
32
+ profiles: string[];
30
33
  }>, { payload }: {
31
34
  payload: any;
32
35
  type: string;
@@ -38,6 +41,7 @@ export declare const useUserContext: () => {
38
41
  defaultAreaName: string | null;
39
42
  userLogged: boolean;
40
43
  permissions: string[];
44
+ profiles: string[];
41
45
  }>, { payload }: {
42
46
  payload: any;
43
47
  type: string;
@@ -49,6 +53,7 @@ export declare const useUserContext: () => {
49
53
  defaultAreaName: string | null;
50
54
  userLogged: boolean;
51
55
  permissions: string[];
56
+ profiles: string[];
52
57
  }>, { payload }: {
53
58
  payload: any;
54
59
  type: string;
@@ -60,6 +65,7 @@ export declare const useUserContext: () => {
60
65
  defaultAreaName: string | null;
61
66
  userLogged: boolean;
62
67
  permissions: string[];
68
+ profiles: string[];
63
69
  }>, { payload }: {
64
70
  payload: any;
65
71
  type: string;
@@ -71,6 +77,19 @@ export declare const useUserContext: () => {
71
77
  defaultAreaName: string | null;
72
78
  userLogged: boolean;
73
79
  permissions: string[];
80
+ profiles: string[];
81
+ }>, { payload }: {
82
+ payload: any;
83
+ type: string;
84
+ }): void;
85
+ setProfiles(state: import("immer/dist/internal").WritableDraft<{
86
+ userLastName: string;
87
+ userId: number | null;
88
+ defaultAreaId: number | string | null;
89
+ defaultAreaName: string | null;
90
+ userLogged: boolean;
91
+ permissions: string[];
92
+ profiles: string[];
74
93
  }>, { payload }: {
75
94
  payload: any;
76
95
  type: string;
@@ -79,6 +98,7 @@ export declare const useUserContext: () => {
79
98
  isLoading: boolean;
80
99
  };
81
100
  export declare const useHasPermission: () => (permission: string) => boolean;
101
+ export declare const useHasProfile: () => (profile: string) => boolean;
82
102
  export declare const UserProvider: ({ children }: {
83
103
  children: ReactNode;
84
104
  }) => React.JSX.Element;