@equinor/echo-framework 0.20.19-beta-0 → 0.20.20

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.20.19-beta-0",
3
+ "version": "0.20.20",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.11.0 < 0.12.0",
package/src/index.d.ts CHANGED
@@ -26,6 +26,8 @@ export { createEcho3dInternalLink } from './lib/feature/openItemsIn3d/logic/crea
26
26
  export { OpenIn3dSelectedItemsMenu } from './lib/feature/openItemsIn3d/OpenIn3dSelectedItemsMenu';
27
27
  export { WorkOrderContent } from './lib/feature/workOrder/WorkOrderContent';
28
28
  export { RegisteredHookName } from './lib/hooks/hookLibrary';
29
+ export { useCloseActiveTopMenuAtBreakPoint } from './lib/hooks/useCloseActiveTopMenuAtBreakPoint';
30
+ export { useClosePanelsAtBreakpoint } from './lib/hooks/useClosePanelsAtBreakpoint';
29
31
  export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
30
32
  export { useIsFullScreenModeEnabled } from './lib/hooks/useIsFullScreenModeEnabled';
31
33
  export { useOpenPrepview } from './lib/hooks/useOpenPrepview';
@@ -38,6 +38,10 @@ export declare enum LegendStatus {
38
38
  InProgress = "InProgress",
39
39
  IocAnnotationError = "IocAnnotationError"
40
40
  }
41
+ /**
42
+ * Renaming these strings are BREAKING: since it's saved with zustand store.
43
+ * If you rename these, you need to handle the migration of the old data in userSettingStore.ts.
44
+ */
41
45
  export declare enum LegendType {
42
46
  Stid = "Stid",
43
47
  CommPk = "CommPk",
@@ -52,3 +56,7 @@ export declare enum LegendType {
52
56
  WorkPermit = "WorkPermit",
53
57
  IocAnnotations = "IocAnnotations"
54
58
  }
59
+ export interface SelectedLegend {
60
+ isEnabled: boolean;
61
+ legendType: LegendType;
62
+ }
@@ -0,0 +1 @@
1
+ export declare const useCloseActiveTopMenuAtBreakPoint: () => void;
@@ -0,0 +1 @@
1
+ export declare const useClosePanelsAtBreakpoint: (panelsToClose: string[]) => void;
@@ -1,8 +1,11 @@
1
+ import { SelectedLegend } from '../../feature/legacyLegend/legend';
1
2
  interface UserSettings {
2
3
  measuringPointsEnabled: boolean;
4
+ selectedLegacyLegend: SelectedLegend;
3
5
  }
4
6
  interface UserSettingsActions {
5
7
  setMeasuringPointsEnabled: (value: boolean) => void;
8
+ setSelectedLegacyLegend: (selectedLegend: SelectedLegend) => void;
6
9
  }
7
10
  type UserSettingsStore = UserSettings & UserSettingsActions;
8
11
  export declare const useUserSettingsStore: import("zustand").UseBoundStore<Omit<Omit<Omit<Omit<import("zustand").StoreApi<UserSettingsStore>, "setState"> & {