@equinor/echo-framework 0.11.0-rc12 → 0.11.0-rc14
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/dist/components/panel/corePanelLeft.d.ts +1 -4
- package/dist/components/panel/corePanelRight.d.ts +1 -4
- package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +1 -1
- package/dist/components/tagNumber/tagNumber.d.ts +3 -2
- package/dist/coreApplication/EchoBarComponent.d.ts +0 -8
- package/dist/coreApplication/EchoToolBar.d.ts +8 -0
- package/dist/coreApplication/{EchoUserInterfaceContextProvider.d.ts → EchoUserInterfaceStore.d.ts} +4 -8
- package/dist/coreApplication/index.d.ts +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +30 -3
- package/dist/services/componentRegistry/componentRegistry.d.ts +26 -6
- package/dist/services/deviceInformation/deepDeviceInfo.d.ts +41 -0
- package/dist/services/deviceInformation/deviceInfo.d.ts +45 -0
- package/dist/services/searchItemDetails/searchItemDetails.store.d.ts +26 -0
- package/dist/services/searchItemDetails/searchItemDetails.store.test.d.ts +1 -0
- package/dist/services/searchItemDetails/searchItemDetailsContainer.d.ts +6 -0
- package/dist/types/device.d.ts +53 -0
- package/dist/types/eventTypes/index.d.ts +1 -0
- package/dist/types/eventTypes/searchDetailsContainerEvents.d.ts +3 -0
- package/dist/types/hookLibrary.d.ts +18 -3
- package/dist/types/legend.d.ts +1 -0
- package/dist/utils/legendUtils.d.ts +7 -4
- package/package.json +126 -123
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
toggleLongText: () => void;
|
|
5
5
|
isPunch?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare function LongTextSection({ text, toggleLongText
|
|
7
|
+
declare function LongTextSection({ text, toggleLongText }: Props): JSX.Element;
|
|
8
8
|
export { LongTextSection };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
interface TagNoProps {
|
|
3
3
|
tagNo: string;
|
|
4
4
|
className?: string;
|
|
5
|
+
replaceLastNavigationItem?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const TagNumber: ({ tagNo, className }: TagNoProps) => JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export declare const TagNumber: ({ tagNo, className, replaceLastNavigationItem }: TagNoProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -4,14 +4,6 @@ interface EchoBottomBarProps {
|
|
|
4
4
|
activeAppMenuItem: string;
|
|
5
5
|
updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
|
|
6
6
|
}
|
|
7
|
-
interface EchoBottomBarButtonProps {
|
|
8
|
-
name: string;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
onButtonClick: (name: string) => void;
|
|
11
|
-
label?: string;
|
|
12
|
-
iconClassName?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const EchoBottomBarButton: React.FC<EchoBottomBarButtonProps>;
|
|
15
7
|
export declare const EchoBarComponent: React.FC<EchoBottomBarProps>;
|
|
16
8
|
declare const _default: React.NamedExoticComponent<EchoBottomBarProps>;
|
|
17
9
|
export default _default;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export interface SidebarButtonListType {
|
|
3
|
+
buttonTitle: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
iconName: string;
|
|
6
|
+
iconColor: string;
|
|
7
|
+
isVisible: boolean;
|
|
8
|
+
active: boolean;
|
|
9
|
+
}
|
|
2
10
|
export declare const EchoToolBar: () => JSX.Element;
|
|
3
11
|
export default EchoToolBar;
|
package/dist/coreApplication/{EchoUserInterfaceContextProvider.d.ts → EchoUserInterfaceStore.d.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import * as zustand from 'zustand';
|
|
3
|
+
export interface EchoUiState {
|
|
3
4
|
activeAppMenuItem: string;
|
|
4
5
|
isLegendActive: boolean | undefined;
|
|
5
6
|
activeTopMenuItem: string;
|
|
@@ -13,9 +14,4 @@ interface EchoUiContextState {
|
|
|
13
14
|
updateModuleName: (newModuleName: string) => void;
|
|
14
15
|
updateShowPlantNameContent: (showPlantNameContent: boolean) => void;
|
|
15
16
|
}
|
|
16
|
-
export declare const
|
|
17
|
-
interface EchoUiContextProviderProps {
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
export declare const EchoUiContextProvider: React.FC<EchoUiContextProviderProps>;
|
|
21
|
-
export {};
|
|
17
|
+
export declare const useEchoUserInterfaceStore: zustand.UseBoundStore<zustand.StoreApi<EchoUiState>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,11 @@ export { useIsCompactLayout } from './hooks/useIsCompactLayout';
|
|
|
10
10
|
export { useScreenOrientation } from './hooks/useScreenOrientation';
|
|
11
11
|
export { useScreenValues } from './hooks/useScreenValues';
|
|
12
12
|
export { RegisteredComponentName } from './services/componentRegistry/componentRegistry';
|
|
13
|
+
export { DetailedDeviceInformationProvider, detailedDeviceInformationProvider } from './services/deviceInformation/deepDeviceInfo';
|
|
14
|
+
export { deviceInfo, DeviceInformation } from './services/deviceInformation/deviceInfo';
|
|
13
15
|
export * from './services/eventHubActions';
|
|
16
|
+
export * from './services/searchItemDetails/searchItemDetails.store';
|
|
17
|
+
export { SearchItemDetailsContainer } from './services/searchItemDetails/searchItemDetailsContainer';
|
|
14
18
|
export * from './theme/themeConst';
|
|
15
19
|
export type { EchoHubPlant } from './types/echoHubPlant';
|
|
16
20
|
export * from './types/eventTypes';
|
|
@@ -20,7 +24,7 @@ export { LegendStatus, LegendType } from './types/legend';
|
|
|
20
24
|
export type { ModelPermissions } from './types/modelPermissions';
|
|
21
25
|
export { PingableSources } from './types/pingableSources';
|
|
22
26
|
export * from './utils';
|
|
23
|
-
export { getLegendStatusColor, legendTypeToLegendStatus, valueToEnum } from './utils/legendUtils';
|
|
27
|
+
export { getLegendStatusColor, legendTypeToLegendStatus, toLegendStatusOrString, valueToEnum } from './utils/legendUtils';
|
|
24
28
|
export * from './utils/startup';
|
|
25
29
|
export declare const registerEchopediaComponent: ({ name, component }: {
|
|
26
30
|
name: import("./services/componentRegistry/componentRegistry").RegisteredComponentName;
|
|
@@ -36,6 +40,11 @@ declare const EchoFramework: Readonly<{
|
|
|
36
40
|
}>;
|
|
37
41
|
}>;
|
|
38
42
|
Hooks: Readonly<{
|
|
43
|
+
searchItems: Readonly<{
|
|
44
|
+
useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState>, "setState"> & {
|
|
45
|
+
setState(nextStateOrUpdater: import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState | Partial<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState> | ((state: import("immer/dist/internal").WritableDraft<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState>) => void), shouldReplace?: boolean | undefined): void;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
39
48
|
useEchoHistory(): (path: string, params?: {
|
|
40
49
|
[key: string]: string;
|
|
41
50
|
} | undefined, state?: any) => void;
|
|
@@ -60,7 +69,19 @@ declare const EchoFramework: Readonly<{
|
|
|
60
69
|
useSetActiveMcPackNo: () => import("./types/hookLibrary").SetActiveMcPackNo;
|
|
61
70
|
}>;
|
|
62
71
|
EchopediaComponentLibrary: Readonly<{
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Please use 'getTagListItem()' instead - that supports the new search flow
|
|
74
|
+
* Returns with the TagItem component, which is used in EchopediaWeb's search panel
|
|
75
|
+
* and pdf side drawer when listing out tags.
|
|
76
|
+
* @returns {React.FC<any>} legacy TagItem component
|
|
77
|
+
*/
|
|
63
78
|
getTagItem: () => import("react").FunctionComponent<any>;
|
|
79
|
+
/**
|
|
80
|
+
* Returns with the TagItem component, which is used in EchopediaWeb's search panel
|
|
81
|
+
* and pdf side drawer when listing out tags.
|
|
82
|
+
* @returns {React.FC<any>} TagListItem component
|
|
83
|
+
*/
|
|
84
|
+
getTagListItem: () => import("react").FunctionComponent<any>;
|
|
64
85
|
}>;
|
|
65
86
|
APIs: Readonly<{
|
|
66
87
|
getPlantsInfo: typeof getPlantsInfo;
|