@equinor/echo-framework 0.20.5-beta30 → 0.20.5

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.5-beta30",
3
+ "version": "0.20.5",
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",
@@ -21,6 +21,5 @@
21
21
  "react-swipeable": "7.0.1"
22
22
  },
23
23
  "main": "./index.cjs.js",
24
- "type": "commonjs",
25
- "types": "./index.cjs.d.ts"
26
- }
24
+ "type": "commonjs"
25
+ }
package/src/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './lib/coreApplication';
11
11
  export * from './lib/feature/equipment/index';
12
12
  export * from './lib/feature/globalSelection';
13
13
  export type { GlobalSelectionItem, OptimizedWorkOrderDto } from './lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types';
14
+ export { PanTo3DButton } from './lib/feature/globalSelection/panToEcho3d/panTo3DButton';
14
15
  export * from './lib/feature/legend/index';
15
16
  export { getLatestMeasurementDate, sortMeasuringPointsByMeasurementDate } from './lib/feature/measuringPoint/components/measuringPoints.utils';
16
17
  export * from './lib/feature/measuringPoint/index';
@@ -12,6 +12,8 @@ interface PrepviewProps {
12
12
  tagClicked: (tagId: string, instCode: string) => void;
13
13
  packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
14
14
  historicItemClicked?: (item: HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem, itemType: WorkItemType) => void;
15
+ objectNotificationClicked?: (notification: HistoricNotificationItem) => void;
16
+ showLongTextClicked?: (id: string, type: WorkItemType, longText: string) => void;
15
17
  headerAction?: React.ReactNode;
16
18
  colorMap?: ColorMap;
17
19
  workOrderDateType?: WorkOrderDateType;
@@ -5,3 +5,4 @@ export * from './fileSizeDisplay';
5
5
  export * from './info';
6
6
  export * from './statusLabel/StatusLabel';
7
7
  export * from './error';
8
+ export * from './showMore';
@@ -0,0 +1,10 @@
1
+ import { WorkItemType } from '../../../utils';
2
+ export interface Props {
3
+ itemId: string;
4
+ itemType: WorkItemType;
5
+ shortText: string;
6
+ longText?: string;
7
+ contentClassName?: string;
8
+ }
9
+ declare function DescriptionBlock({ itemId, itemType, shortText, longText, contentClassName, }: Props): JSX.Element;
10
+ export { DescriptionBlock };
@@ -0,0 +1 @@
1
+ export * from './DescriptionBlock';
@@ -2,3 +2,4 @@ export * from './block';
2
2
  export * from './section';
3
3
  export * from './list';
4
4
  export * from './label';
5
+ export * from './description';
@@ -0,0 +1,6 @@
1
+ interface ShowMoreButtonProps {
2
+ isActive: boolean;
3
+ onClick: () => void;
4
+ }
5
+ export declare const ShowMoreButton: ({ isActive, onClick }: ShowMoreButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ShowMoreButton';
@@ -11,6 +11,8 @@ interface PrepviewContext {
11
11
  tagClicked: (tagId: string, instCode: string) => void;
12
12
  packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
13
13
  historicItemClicked?: (item: HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem, itemType: WorkItemType) => void;
14
+ objectNotificationClicked?: (notification: HistoricNotificationItem) => void;
15
+ showLongTextClicked?: (id: string, type: WorkItemType, longText: string) => void;
14
16
  }
15
17
  export declare const PrepviewContext: React.Context<PrepviewContext>;
16
18
  export declare const usePrepviewContext: () => PrepviewContext;
@@ -1,4 +1,4 @@
1
- import { HistoricNotificationItem, HistoricWorkOrderItem, HistoricPunchItem } from '../../../types';
1
+ import { HistoricNotificationItem, HistoricPunchItem, HistoricWorkOrderItem } from '../../../types';
2
2
  import { WorkItemType } from '../../../utils';
3
3
  type Items = Array<HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem>;
4
4
  export interface ItemProps {
@@ -15,6 +15,7 @@ export type ContentPickerItem = {
15
15
  id: string;
16
16
  title: string;
17
17
  content: React.ReactNode;
18
+ onClick?: () => void;
18
19
  };
19
20
  export type PrepviewTagInformation = {
20
21
  id: string;
@@ -42,6 +42,7 @@ export type SubseaWorkOrderDetails = FetchStatus & {
42
42
  export type PrepviewOperation = {
43
43
  operationNumber: string;
44
44
  title: string;
45
+ longText: string;
45
46
  workCenterId: string;
46
47
  activeStatusIds: string;
47
48
  earliestStartDateTime: Date;
@@ -1,5 +1,6 @@
1
1
  export declare enum WorkItemType {
2
2
  Notifications = 0,
3
3
  WorkOrders = 1,
4
- Punches = 2
4
+ Punches = 2,
5
+ Operations = 3
5
6
  }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { GlobalSelectionItem } from '../globalSelectionStore/globalSelectionStore.types';
3
+ interface PanTo3DButtonProps {
4
+ item: GlobalSelectionItem;
5
+ }
6
+ export declare const PanTo3DButton: React.FC<PanTo3DButtonProps>;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ import { GlobalSelectionItem } from '../globalSelectionStore/globalSelectionStore.types';
2
+ export declare const usePanTo3dWeb: () => {
3
+ panTo3D: (item: GlobalSelectionItem) => Promise<void>;
4
+ };