@equinor/echo-framework 0.10.24 → 0.10.26-rc0

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Get the current size of the browser window.
3
3
  * @returns {width?: number; height?: number} Width and height of the current browser size.
4
-
4
+
5
5
  */
6
6
  export declare function useWindowSize(): {
7
7
  width: number;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,8 @@ export { useScreenOrientation } from './hooks/useScreenOrientation';
11
11
  export { useScreenValues } from './hooks/useScreenValues';
12
12
  export { RegisteredComponentName } from './services/componentRegistry/componentRegistry';
13
13
  export * from './services/eventHubActions';
14
+ export * from './services/searchItemDetails/searchItemDetails.store';
15
+ export { SearchItemDetailsContainer } from './services/searchItemDetails/searchItemDetailsContainer';
14
16
  export * from './theme/themeConst';
15
17
  export type { EchoHubPlant } from './types/echoHubPlant';
16
18
  export * from './types/eventTypes';
@@ -36,6 +38,11 @@ declare const EchoFramework: Readonly<{
36
38
  }>;
37
39
  }>;
38
40
  Hooks: Readonly<{
41
+ searchItems: Readonly<{
42
+ useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState>, "setState"> & {
43
+ setState(nextStateOrUpdater: import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState | Partial<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState> | ((state: import("immer/dist/internal").WritableDraft<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState>) => void), shouldReplace?: boolean | undefined): void;
44
+ }>;
45
+ }>;
39
46
  useEchoHistory(): (path: string, params?: {
40
47
  [key: string]: string;
41
48
  } | undefined, state?: any) => void;
@@ -60,7 +67,19 @@ declare const EchoFramework: Readonly<{
60
67
  useSetActiveMcPackNo: () => import("./types/hookLibrary").SetActiveMcPackNo;
61
68
  }>;
62
69
  EchopediaComponentLibrary: Readonly<{
70
+ /**
71
+ * @deprecated Please use 'getTagListItem()' instead - that supports the new search flow
72
+ * Returns with the TagItem component, which is used in EchopediaWeb's search panel
73
+ * and pdf side drawer when listing out tags.
74
+ * @returns {React.FC<any>} legacy TagItem component
75
+ */
63
76
  getTagItem: () => import("react").FunctionComponent<any>;
77
+ /**
78
+ * Returns with the TagItem component, which is used in EchopediaWeb's search panel
79
+ * and pdf side drawer when listing out tags.
80
+ * @returns {React.FC<any>} TagListItem component
81
+ */
82
+ getTagListItem: () => import("react").FunctionComponent<any>;
64
83
  }>;
65
84
  APIs: Readonly<{
66
85
  getPlantsInfo: typeof getPlantsInfo;