@equinor/echo-framework 0.14.0-test-0 → 0.14.1-beta

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.14.0-test-0",
3
+ "version": "0.14.1-beta",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.6.12 < 0.7.0",
6
6
  "@equinor/echo-components": ">= 0.7.0 < 0.8.0",
@@ -11,9 +11,9 @@
11
11
  "@equinor/eds-icons": "^0.17.0",
12
12
  "react": ">= 17.0.2",
13
13
  "react-dom": ">= 17.0.2",
14
- "@microsoft/signalr": "7.0.7",
14
+ "@microsoft/signalr": "7.0.5",
15
15
  "classnames": "2.3.2",
16
- "history": "4.10.1",
16
+ "history": "5.3.0",
17
17
  "lodash": "4.17.21",
18
18
  "react-router-dom": "5.3.4",
19
19
  "ua-parser-js": "1.0.35",
@@ -22,6 +22,6 @@
22
22
  "module": "./index.js",
23
23
  "main": "./index.js",
24
24
  "type": "module",
25
- "types": "./src/index.d.ts",
25
+ "types": "./src\\index.d.ts",
26
26
  "dependencies": {}
27
27
  }
package/src/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './lib/components';
7
7
  export * from './lib/coreApplication';
8
8
  export { RegisteredHookName } from './lib/hooks/hookLibrary';
9
9
  export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
10
+ export { useIsFullScreenModeEnabled } from './lib/hooks/useIsFullScreenModeEnabled';
10
11
  export { useScreenOrientation } from './lib/hooks/useScreenOrientation';
11
12
  export { useScreenValues } from './lib/hooks/useScreenValues';
12
13
  export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
@@ -50,6 +51,7 @@ declare const EchoFramework: Readonly<{
50
51
  [key: string]: string;
51
52
  } | undefined, state?: any) => void;
52
53
  useHas3dAccess(plantCode?: string | undefined): boolean;
54
+ useIsFullScreenModeEnabled(): boolean;
53
55
  usePlantAvailableIn3d(plantCode?: string | undefined): boolean;
54
56
  usePlantAvailableIn3dWeb(plantCode?: string | undefined): boolean;
55
57
  useScreenOrientation(): import("./lib/types/hookLibrary").ScreenOrientation;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface FullScreenButtonProps {
3
+ active: boolean;
4
+ onClick: () => void;
5
+ }
6
+ export declare const FullScreenButton: React.FC<FullScreenButtonProps>;
7
+ export default FullScreenButton;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface FullScreenChipProps {
3
+ active: boolean;
4
+ onClick: () => void;
5
+ onDelete: () => void;
6
+ }
7
+ export declare const FullScreenChip: React.FC<FullScreenChipProps>;
8
+ export default FullScreenChip;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface FullScreenModeButtonsProps {
3
+ buttonClassName?: string;
4
+ chipClassName?: string;
5
+ }
6
+ export declare const FullScreenModeButtons: React.FC<FullScreenModeButtonsProps>;
7
+ export default FullScreenModeButtons;
@@ -0,0 +1,3 @@
1
+ export * from './FullScreenButton';
2
+ export * from './FullScreenChip';
3
+ export * from './FullScreenModeButtons';
@@ -7,6 +7,7 @@ export * from './echoLogo';
7
7
  export * from './errorBoundary';
8
8
  export * from './externalLinkButton/externalLinkButton';
9
9
  export * from './footer';
10
+ export * from './fullScreenButtons';
10
11
  export * from './lazyLoading';
11
12
  export * from './mediator';
12
13
  export * from './pageMenu';
@@ -1,5 +1,6 @@
1
1
  import React, { ErrorInfo } from 'react';
2
2
  export interface EchoRoutesProps {
3
+ homeComponent?: React.FC;
3
4
  routeErrorHandler?: (error: Error, errorInfo: ErrorInfo) => void;
4
5
  }
5
6
  export declare const EchoRoutes: React.FC<EchoRoutesProps>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface EchoBottomBarProps {
3
3
  isBottomBarVisible: boolean;
4
+ isFullScreenModeEnabled: boolean;
4
5
  activeAppMenuItem: string;
5
6
  updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
6
7
  }
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  interface CorePanelsProps {
3
3
  children: React.ReactNode;
4
4
  Legend?: React.FC;
5
- isToggleButtonVisible?: boolean;
6
5
  }
7
6
  export declare const EchoContent: React.FC<CorePanelsProps>;
8
7
  export {};
@@ -12,7 +12,8 @@ export declare enum PanelNames {
12
12
  pdfTagList = "pdfTagList",
13
13
  highlightedPanel = "highlightedPanel",
14
14
  XLDsearchPanel = "XLDsearchPanel",
15
- XLDcommentPanel = "XLDcommentPanel"
15
+ XLDcommentPanel = "XLDcommentPanel",
16
+ bucketPanel = "bucketPanel"
16
17
  }
17
18
  export declare const EchoToolBar: () => import("react/jsx-runtime").JSX.Element;
18
19
  declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -6,13 +6,11 @@ export interface EchoUiState {
6
6
  activeTopMenuItem: string;
7
7
  activeTopMenuComponents: FunctionComponent[];
8
8
  moduleName: string;
9
- showPlantNameContent: boolean;
10
9
  updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
11
10
  updateIsLegendActive: (isLegendActive: boolean) => void;
12
11
  updateActiveTopMenuItem: (newActiveTopMenuItem: string) => void;
13
12
  updateActiveTopMenuComponents: (newActiveTopMenuComponents: FunctionComponent[]) => void;
14
13
  updateModuleName: (newModuleName: string) => void;
15
- updateShowPlantNameContent: (showPlantNameContent: boolean) => void;
16
14
  }
17
15
  export declare const useEchoUserInterfaceStore: zustand.UseBoundStore<zustand.StoreApi<EchoUiState>>;
18
16
  /**
@@ -1,5 +1,6 @@
1
1
  export * from './useEchoHistory';
2
2
  export * from './useHas3dAccess';
3
+ export * from './useIsFullScreenModeEnabled';
3
4
  export * from './usePlantAvailableIn3d';
4
5
  export * from './usePlantAvailableIn3dWeb';
5
6
  export * from './useScreenOrientation';
@@ -0,0 +1 @@
1
+ export declare function useIsFullScreenModeEnabled(): boolean;
@@ -6,4 +6,4 @@ import { History } from 'history';
6
6
  * @param {Plant} newSelectedPlant
7
7
  * @return {*} {Promise<void>}
8
8
  */
9
- export declare const handlePlantChanged: (newSelectedPlant: Plant, history: History<unknown>, stayOnPath?: boolean) => Promise<void>;
9
+ export declare const handlePlantChanged: (newSelectedPlant: Plant, history: History, stayOnPath?: boolean) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ export interface FullScreenModeEvent {
2
+ isFullScreenModeEnabled: boolean;
3
+ }
@@ -1,3 +1,4 @@
1
+ export type { FullScreenModeEvent } from './fullScreenModeEvent';
1
2
  export type { LegendChangedEvent } from './legendEvent';
2
3
  export type { PlantEvent } from './plantEvent';
3
4
  export type { SearchItemDetailsClosedEvent } from './searchDetailsContainerEvents';