@equinor/echo-framework 0.20.1 → 0.20.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.20.1",
3
+ "version": "0.20.3",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.11.0 < 0.12.0",
package/src/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { getEquipmentWithMeasuringPointsFromApi } from './lib/feature/equipment/api/api-equipmentWithMeasuringPoints';
3
2
  import { getLegendStatusColor } from './lib/feature/legend/utils/legendUtils';
4
3
  import './lib/globalStyles.css';
5
4
  import { getPlantsInfo, getTagDetails } from './lib/services/api';
@@ -11,6 +10,7 @@ export { SelectedItemsMenu } from './lib/components/openIn3d/SelectedItemsMenu';
11
10
  export { PrepviewButton } from './lib/components/prepviewButton/prepviewButton';
12
11
  export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
13
12
  export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
13
+ export { useFetchPlantInfo } from './lib/components/requestAccess/hooks/fetchPlantInfo';
14
14
  export { WorkOrderListItem } from './lib/components/workOrderListItem';
15
15
  export * from './lib/coreApplication';
16
16
  export * from './lib/feature/equipment/index';
@@ -128,7 +128,6 @@ declare const EchoFramework: Readonly<{
128
128
  web3dUrl: string;
129
129
  }>;
130
130
  createTemporarilyEchoHubListFor3D: (request: import("./lib/types/api-echohub").TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<import("./lib/types/api-echohub").TemporaryHubListCreatedResponse>;
131
- getEquipmentWithMeasuringPointsFromApi: typeof getEquipmentWithMeasuringPointsFromApi;
132
131
  }>;
133
132
  }>;
134
133
  export default EchoFramework;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  type RequestProCoSysAccessProps = {
3
3
  className?: string;
4
4
  onClicked?: () => void;
5
+ plantName?: string;
5
6
  };
6
7
  export declare const RequestProCoSysAccess: React.FC<RequestProCoSysAccessProps>;
7
8
  export {};
@@ -0,0 +1,2 @@
1
+ import { EchoHubPlant } from '../../../types/echoHubPlant';
2
+ export declare const useFetchPlantInfo: (instCode: string, handleError: (error: unknown) => void) => EchoHubPlant[] | undefined;
@@ -0,0 +1 @@
1
+ export declare const TabSpinner: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { EquipmentWithMeasuringPoints } from '../types/equipmentWithMeasuringPoints';
2
- export declare function getEquipmentWithMeasuringPointsFromApi({ equipmentId }: {
2
+ export declare function getEquipmentFromApi({ equipmentId, includeMeasuringPoints }: {
3
3
  equipmentId: string;
4
+ includeMeasuringPoints?: boolean;
4
5
  }): Promise<EquipmentWithMeasuringPoints[]>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface MeasuringPointsPanelProps {
3
+ equipmentId: string;
4
+ onLoadUpdate?: (args: {
5
+ isLoading: boolean;
6
+ numberOfItemsLoaded?: number;
7
+ }) => void;
8
+ }
9
+ export declare const MeasuringPointsForEquipmentItem: React.FC<MeasuringPointsPanelProps>;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { MeasuringPointDto } from '../../../measuringPoint';
3
2
  import { Equipment } from '../../types/equipment';
4
3
  export interface EquipmentTabsProps {
5
4
  equipment: Equipment;
6
- measuringPoints: MeasuringPointDto[];
7
5
  tagNo: string;
8
6
  }
9
7
  export declare const EquipmentTabs: React.FC<EquipmentTabsProps>;
@@ -1,4 +1,8 @@
1
1
  import { EquipmentWithMeasuringPoints } from '../types/equipmentWithMeasuringPoints';
2
+ export declare function useEquipmentWithoutMeasuringPoints(equipmentId: string): {
3
+ status: 'error' | 'success' | 'pending';
4
+ equipmentWithMeasuringPoints: EquipmentWithMeasuringPoints[];
5
+ };
2
6
  export declare function useEquipmentWithMeasuringPoints(equipmentId: string): {
3
7
  status: 'error' | 'success' | 'pending';
4
8
  equipmentWithMeasuringPoints: EquipmentWithMeasuringPoints[];
@@ -1,4 +1,3 @@
1
- export { getEquipmentWithMeasuringPointsFromApi } from './api/api-equipmentWithMeasuringPoints';
2
1
  export { EquipmentItemHeader, EquipmentItemInfo, EquipmentListItem, EquipmentTabs } from './components';
3
2
  export { useOpenEquipmentDetails } from './hooks/useOpenEquipmentDetails';
4
3
  export type { Equipment } from './types/equipment';
@@ -2,4 +2,5 @@ export { getGlobalSelectionStoreState, useGlobalSelectionStore } from './globalS
2
2
  export * from './globalSelectionStore/globalSelectionStore.types';
3
3
  export * from './globalSelectionStore/globalSelectionStore.utils';
4
4
  export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
5
+ export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
5
6
  export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';