@equinor/echo-framework 1.3.0 → 1.3.1

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "peerDependencies": {
5
- "@equinor/echo-base": ">= 1.3.0 < 2.0.0",
6
- "@equinor/echo-components": ">= 1.3.0 < 2.0.0",
7
- "@equinor/echo-core": ">= 1.3.0 < 2.0.0",
8
- "@equinor/echo-search": ">= 1.3.0 < 2.0.0",
9
- "@equinor/echo-utils": ">= 1.3.0 < 2.0.0",
5
+ "@equinor/echo-base": ">= 1.3.1 < 2.0.0",
6
+ "@equinor/echo-components": ">= 1.3.1 < 2.0.0",
7
+ "@equinor/echo-core": ">= 1.3.1 < 2.0.0",
8
+ "@equinor/echo-search": ">= 1.3.1 < 2.0.0",
9
+ "@equinor/echo-utils": ">= 1.3.1 < 2.0.0",
10
10
  "@equinor/eds-core-react": "0.43.0",
11
11
  "@equinor/eds-icons": "0.22.0",
12
12
  "react": ">= 17.0.2",
@@ -1,5 +1,5 @@
1
1
  import { Guid } from '@equinor/echo-utils';
2
- import { deleteSelectionId, fetchSelectionHistory, fetchUserSelectionIds } from './selectionMenu/selectionTreeStore/api/selectionTree.api';
2
+ import { createSelection, deleteSelectionId, fetchSelectionHistory, fetchUserSelectionIds } from './selectionMenu/selectionTreeStore/api/selectionTree.api';
3
3
  /**
4
4
  * Internal that should only be used by echopedia
5
5
  */
@@ -8,6 +8,7 @@ export declare const globalSelectionInternal: Readonly<{
8
8
  deleteSelectionId: typeof deleteSelectionId;
9
9
  fetchUserSelectionIds: typeof fetchUserSelectionIds;
10
10
  fetchSelectionHistory: typeof fetchSelectionHistory;
11
+ createSelection: typeof createSelection;
11
12
  }>;
12
13
  declare function loadFromApi(idToLoad: Guid): Promise<boolean>;
13
14
  export {};
@@ -1,4 +1,5 @@
1
1
  export * from './globalSelectionStore/globalSelectionStore.types';
2
+ export * from './selectionMenu/selectionTreeStore/selectionTree.api.types';
2
3
  export * from './selectionMenu/selectionTreeStore/selectionTree.store.types';
3
4
  export { useAreAllItemsVisible } from './hooks/useAreAllItemsVisible';
4
5
  export { useGlobalSelectionByItemId } from './hooks/useGlobalSelectionByItemId';
@@ -9,9 +10,9 @@ export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
9
10
  export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
10
11
  export { useSelectionCategoriesByGroupId } from './hooks/useSelectionCategoriesByGroupId';
11
12
  export { useCurrentSelectionId } from './selectionMenu/hooks/useCurrentSelectionId';
13
+ export { useFetchSelectionHistory } from './selectionMenu/hooks/useFetchSelectionHistory';
12
14
  export { useGlobalSelectionGroups } from './selectionMenu/hooks/useGlobalSelectionGroups';
13
15
  export { useMostUsedSelectionColorByIds } from './selectionMenu/hooks/useSelectionColorFrequency';
14
- export { useFetchSelectionHistory } from './selectionMenu/hooks/useFetchSelectionHistory';
15
16
  export { RemoveSelectionItemsConfirmDialog } from './components/RemoveSelectionItemsConfirmDialog';
16
17
  export { globalSelectionApi } from './globalSelection.api';
17
18
  export { globalSelectionInternal } from './globalSelection.internal';
@@ -19,7 +20,7 @@ export { SELECTION_COLOR_PICKER_COLORS } from './globalSelectionColorService';
19
20
  export { globalSelectionUtils } from './globalSelectionStore/globalSelectionStore.utils';
20
21
  export { OpenGlobalSelectionIn3DButton } from './OpenGlobalSelectionIn3DButton';
21
22
  export { convertGlobalSelectionItemsToPlantTagPairs } from './OpenGlobalSelectionIn3DButton.utils';
22
- export { saveEquipmentAsNewSelectionToApi } from './selectionMenu/selectionTreeStore/api/selectionTree.equipment';
23
23
  export { invalidateHistorySelectionQuery } from './selectionMenu/invalidateHistorySelectionQuery';
24
+ export { saveEquipmentAsNewSelectionToApi } from './selectionMenu/selectionTreeStore/api/selectionTree.equipment';
24
25
  export { SelectionColorConflictDialog } from './selectionMenu/selectionTreeStore/colorConflictHandling/SelectionColorConflictDialog';
25
26
  export { simulatedSelectionTreeApiError } from './selectionMenu/selectionTreeStore/persist/devOnlySimulateOffline';
@@ -1,5 +1,5 @@
1
1
  export declare const historySelectionQueryKey = "historySelection";
2
2
  export declare const useFetchSelectionHistory: () => {
3
3
  status: "error" | "success" | "pending";
4
- data: import("../selectionTreeStore/selectionTree.api.types").ApiSelectionHistory[] | undefined;
4
+ data: import("../..").ApiSelectionHistory[] | undefined;
5
5
  };
@@ -18,3 +18,4 @@ export declare function fetchSelectionTreeById(id: string): Promise<ApiSelection
18
18
  export declare function fetchSelectionHistory(): Promise<ApiSelectionHistory[] | undefined>;
19
19
  export declare function fetchUserSelectionIds(): Promise<Guid[]>;
20
20
  export declare function deleteSelectionId(id: Guid): Promise<void>;
21
+ export declare function createSelection(selection: string): Promise<Guid | undefined>;
@@ -9,11 +9,11 @@ export interface TagIdPlantId {
9
9
  * Groups the input work orders by their `instCode`, fetches additional tag information asynchronously,
10
10
  * and returns an array of objects containing plant and tag details for use in 3D visualization.
11
11
  *
12
- * @param selectedWorkOrders - A readonly array of objects, each containing a `tagNo` and an `instCode`.
12
+ * @param selectedTags - A readonly array of objects, each containing a `tagNo` and an `instCode`.
13
13
  * @returns A promise that resolves to an array of `PlantAndTagForOpenIn3d` objects, each containing
14
14
  * `instCode`, `pdmsPlantCode`, `tagNo`, and `plantNo` properties.
15
15
  */
16
- export declare function tagToPlantTagPairs(selectedWorkOrders: ReadonlyArray<{
16
+ export declare function tagToPlantTagPairs(selectedTags: ReadonlyArray<{
17
17
  tagNo: string;
18
18
  instCode: string;
19
19
  }>): Promise<PlantAndTagForOpenIn3d[]>;