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

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.0",
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",
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,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
  }
@@ -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';