@equinor/echo-framework 0.11.0-rc11 → 0.11.0-rc13

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 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const HomePage: () => JSX.Element;
@@ -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,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,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
@@ -20,7 +20,7 @@ export { LegendStatus, LegendType } from './types/legend';
20
20
  export type { ModelPermissions } from './types/modelPermissions';
21
21
  export { PingableSources } from './types/pingableSources';
22
22
  export * from './utils';
23
- export { getLegendStatusColor, legendTypeToLegendStatus, valueToEnum } from './utils/legendUtils';
23
+ export { getLegendStatusColor, legendTypeToLegendStatus, toLegendStatusOrString, valueToEnum } from './utils/legendUtils';
24
24
  export * from './utils/startup';
25
25
  export declare const registerEchopediaComponent: ({ name, component }: {
26
26
  name: import("./services/componentRegistry/componentRegistry").RegisteredComponentName;