@beinformed/ui 1.65.8 → 1.65.9

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.
@@ -4,7 +4,6 @@ import CaseViewModel from "../models/caseview/CaseViewModel";
4
4
  import TabModel from "../models/tab/TabModel";
5
5
  import GroupingPanelModel from "../models/panels/GroupingPanelModel";
6
6
  import DetailModel from "../models/detail/DetailModel";
7
- import CaseSearchModel from "../models/search/CaseSearchModel";
8
7
  import UserProfileModel from "../models/user/UserProfileModel";
9
8
 
10
9
  import { useModularUIBasic } from "./useModularUIBasic";
@@ -74,30 +73,6 @@ export const useDetailPanel = (
74
73
  ...options,
75
74
  });
76
75
 
77
- /**
78
- */
79
- export const useQuicksearch = (
80
- href: string | Href,
81
- options?: HookOptions,
82
- ): CaseSearchModel | null =>
83
- useModularUIBasic("quicksearch", href, {
84
- expectedModels: ["CaseSearch"],
85
- targetModel: CaseSearchModel,
86
- ...options,
87
- });
88
-
89
- /**
90
- */
91
- export const useSearch = (
92
- href: string | Href,
93
- options?: HookOptions,
94
- ): CaseSearchModel | null =>
95
- useModularUIBasic("search", href, {
96
- expectedModels: ["CaseSearch"],
97
- targetModel: CaseSearchModel,
98
- ...options,
99
- });
100
-
101
76
  /**
102
77
  */
103
78
  export const useUserProfile = (
@@ -0,0 +1,31 @@
1
+ // @flow
2
+ import Href from "../models/href/Href";
3
+ import CaseSearchModel from "../models/search/CaseSearchModel";
4
+
5
+ import { useModularUIBasic } from "./useModularUIBasic";
6
+
7
+ import type { HookOptions } from "./useModularUIBasic";
8
+
9
+ /**
10
+ */
11
+ export const useQuicksearch = (
12
+ href: string | Href,
13
+ options?: HookOptions,
14
+ ): CaseSearchModel | null =>
15
+ useModularUIBasic("quicksearch", href, {
16
+ expectedModels: ["CaseSearch"],
17
+ targetModel: CaseSearchModel,
18
+ ...options,
19
+ });
20
+
21
+ /**
22
+ */
23
+ export const useSearch = (
24
+ href: string | Href,
25
+ options?: HookOptions,
26
+ ): CaseSearchModel | null =>
27
+ useModularUIBasic("search", href, {
28
+ expectedModels: ["CaseSearch"],
29
+ targetModel: CaseSearchModel,
30
+ ...options,
31
+ });