@equinor/echo-framework 0.26.9 → 0.26.10

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,12 +1,12 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.26.9",
3
+ "version": "0.26.10",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.26.8 < 0.27.0",
6
6
  "@equinor/echo-components": ">= 0.26.9 < 0.27.0",
7
- "@equinor/echo-core": ">= 0.26.8 < 0.27.0",
7
+ "@equinor/echo-core": ">= 0.26.9 < 0.27.0",
8
8
  "@equinor/echo-search": ">= 0.26.8 < 0.27.0",
9
- "@equinor/echo-utils": ">= 0.26.9 < 0.27.0",
9
+ "@equinor/echo-utils": ">= 0.26.10 < 0.27.0",
10
10
  "@equinor/eds-core-react": "0.43.0",
11
11
  "@equinor/eds-icons": "0.22.0",
12
12
  "react": ">= 17.0.2",
package/src/index.d.ts CHANGED
@@ -100,6 +100,8 @@ declare const EchoFramework: Readonly<{
100
100
  sapPlantId: string | undefined;
101
101
  }) => string | undefined;
102
102
  useIsFullScreenModeEnabled(): boolean;
103
+ disableFullScreenMode: () => void;
104
+ enableFullScreenMode: () => void;
103
105
  useOpenPdfFile(): (args: {
104
106
  instCode: string;
105
107
  docNo: string;
@@ -1,5 +1,14 @@
1
1
  interface FullScreenModeChipProps {
2
2
  className?: string;
3
3
  }
4
+ /**
5
+ * Renders a chip component that allows users to toggle full screen mode.
6
+ * This makes the application header and sidebar disappear, providing a more immersive experience.
7
+ * The chip is only visible when full screen mode is enabled and the chip visibility state is true.
8
+ *
9
+ * The chip provides two actions:
10
+ * - Clicking the chip toggles the full screen mode.
11
+ * - Deleting the chip hides it from view.
12
+ */
4
13
  export declare const FullScreenModeChip: ({ className }: FullScreenModeChipProps) => false | import("react/jsx-runtime").JSX.Element;
5
14
  export {};
@@ -1 +1,11 @@
1
+ /**
2
+ * Custom hook that returns whether the full screen mode is enabled.
3
+ *
4
+ * Using this mode hides the header and footer of the application, providing a more immersive experience.
5
+ * Mainly used in PDF viewer and 3D.
6
+ *
7
+ * @returns {boolean} `true` if full screen mode is enabled, otherwise `false`.
8
+ */
1
9
  export declare function useIsFullScreenModeEnabled(): boolean;
10
+ export declare const disableFullScreenMode: () => void;
11
+ export declare const enableFullScreenMode: () => void;