@equinor/echo-components 0.5.18 → 0.5.19

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.
@@ -3,6 +3,8 @@ export interface MenuItem {
3
3
  labelId: string;
4
4
  label: string;
5
5
  icon: string | React.ReactNode;
6
+ skipPanelContent?: boolean;
7
+ isBottomItem?: boolean;
6
8
  panelSize?: PanelSize;
7
9
  component: React.FC<Record<string, unknown>>;
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
4
4
  "description": "Package for creating echo related components.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,14 +37,14 @@
37
37
  "styled-components": "^5.3.5"
38
38
  },
39
39
  "dependencies": {
40
- "@equinor/eds-icons": "^0.16.0",
41
- "lodash.throttle": "^4.1.1",
42
40
  "@babel/runtime": "^7.20.0",
43
41
  "@floating-ui/react": "^0.17.0",
44
42
  "jest-environment-jsdom": "^29.2.2",
43
+ "lodash.throttle": "^4.1.1",
45
44
  "react-datepicker": "^4.8.0",
46
45
  "react-sortablejs": "^6.1.4",
47
- "sortablejs": "^1.15.0"
46
+ "sortablejs": "^1.15.0",
47
+ "zustand": "^4.3.2"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/core": "^7.18.2",
@@ -72,8 +72,8 @@
72
72
  "@svgr/webpack": "^6.2.1",
73
73
  "@testing-library/dom": "^8.13.0",
74
74
  "@testing-library/react": "^12.1.4",
75
- "@types/lodash.throttle": "^4.1.7",
76
75
  "@types/jest": "^29.2.0",
76
+ "@types/lodash.throttle": "^4.1.7",
77
77
  "@types/react": "^17.0.43",
78
78
  "@types/react-datepicker": "^4.4.1",
79
79
  "@types/react-test-renderer": "^17.0.1",
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { PanelSize } from '../../types/menuItem';
3
- export interface PanelContextState {
4
- activePanel: string | undefined;
5
- panelSize: PanelSize;
6
- updateActivePanel: (newActivePanel: string | undefined) => void;
7
- updatePanelSize: (newPanelSize: PanelSize) => void;
8
- }
9
- /**
10
- * Panel context with default initialized values
11
- *
12
- */
13
- export declare const PanelContext: React.Context<PanelContextState>;
14
- /**
15
- * The panel context wrapper that should be used within Panel component to store the state of the panel
16
- *
17
- */
18
- export declare const PanelContextWrapper: React.FC;
19
- export default PanelContextWrapper;
@@ -1,8 +0,0 @@
1
- import { PanelContextState } from './PanelContextWrapper';
2
- /**
3
- * Hook that exposes panel context, if not used within a PanelContext this hook will throw an error
4
- *
5
- * @export
6
- * @return {*} {PanelContextState} Returns the existing panel context or throws error if not used within a PanelContext
7
- */
8
- export declare function usePanelContext(): PanelContextState;