@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.
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
- interface CorePanelLeftProps {
3
- isToggleButtonVisible?: boolean;
4
- }
5
- declare const CorePanelLeft: React.FC<CorePanelLeftProps>;
2
+ declare const CorePanelLeft: React.FC;
6
3
  export default CorePanelLeft;
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
- interface CorePanelRightProps {
3
- isToggleButtonVisible?: boolean;
4
- }
5
- declare const _default: React.NamedExoticComponent<CorePanelRightProps>;
2
+ declare const _default: React.NamedExoticComponent<{}>;
6
3
  export default _default;
@@ -4,5 +4,5 @@ interface Props {
4
4
  toggleLongText: () => void;
5
5
  isPunch?: boolean;
6
6
  }
7
- declare function LongTextSection({ text, toggleLongText, isPunch }: Props): JSX.Element;
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 default TagNumber;
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;
@@ -1,5 +1,6 @@
1
- import React, { FunctionComponent } from 'react';
2
- interface EchoUiContextState {
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 useEchoUiContext: () => EchoUiContextState;
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>>;
@@ -4,4 +4,4 @@ export * from './EchoContentPanels';
4
4
  export * from './EchoEventHandler';
5
5
  export * from './EchoToolBar';
6
6
  export * from './EchoTopBar';
7
- export * from './EchoUserInterfaceContextProvider';
7
+ export * from './EchoUserInterfaceStore';
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;