@beinformed/ui 1.65.29 → 1.66.0
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/CHANGELOG.md +13 -0
- package/esm/hooks/useErrorHandler.js +26 -0
- package/esm/hooks/useErrorHandler.js.flow +31 -0
- package/esm/hooks/useErrorHandler.js.map +1 -0
- package/esm/hooks/useI18n.js +16 -2
- package/esm/hooks/useI18n.js.flow +21 -2
- package/esm/hooks/useI18n.js.map +1 -1
- package/esm/hooks/useModelSelectors.js +13 -2
- package/esm/hooks/useModelSelectors.js.flow +15 -1
- package/esm/hooks/useModelSelectors.js.map +1 -1
- package/esm/models/concepts/BusinessScenarioModel.js +1 -0
- package/esm/models/concepts/BusinessScenarioModel.js.flow +1 -0
- package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/esm/redux/_i18n/types.js.flow +16 -0
- package/esm/redux/_i18n/types.js.map +1 -1
- package/esm/redux/_modularui/ModularUISelectors.js +8 -2
- package/esm/redux/_modularui/ModularUISelectors.js.flow +12 -7
- package/esm/redux/_modularui/ModularUISelectors.js.map +1 -1
- package/esm/redux/_modularui/types.js.flow +72 -0
- package/esm/redux/_modularui/types.js.map +1 -1
- package/esm/redux/_router/types.js.flow +51 -0
- package/esm/redux/_router/types.js.map +1 -1
- package/esm/redux/types.js.flow +276 -1
- package/esm/redux/types.js.map +1 -1
- package/lib/hooks/useErrorHandler.js +33 -0
- package/lib/hooks/useErrorHandler.js.map +1 -0
- package/lib/hooks/useI18n.js +16 -1
- package/lib/hooks/useI18n.js.map +1 -1
- package/lib/hooks/useModelSelectors.js +14 -1
- package/lib/hooks/useModelSelectors.js.map +1 -1
- package/lib/models/concepts/BusinessScenarioModel.js +1 -0
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/lib/redux/_i18n/types.js.map +1 -1
- package/lib/redux/_modularui/ModularUISelectors.js +8 -2
- package/lib/redux/_modularui/ModularUISelectors.js.map +1 -1
- package/lib/redux/_modularui/types.js.map +1 -1
- package/lib/redux/_router/types.js.map +1 -1
- package/lib/redux/types.js.map +1 -1
- package/package.json +5 -5
|
@@ -29,6 +29,14 @@ export type ModularUIState = {
|
|
|
29
29
|
...
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
34
|
+
*
|
|
35
|
+
* Recommended fixes:
|
|
36
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
37
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
38
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
39
|
+
*/
|
|
32
40
|
export type SetModelAction = {
|
|
33
41
|
type: "MODULARUI/SET",
|
|
34
42
|
payload: {
|
|
@@ -37,6 +45,14 @@ export type SetModelAction = {
|
|
|
37
45
|
},
|
|
38
46
|
};
|
|
39
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
50
|
+
*
|
|
51
|
+
* Recommended fixes:
|
|
52
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
53
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
54
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
55
|
+
*/
|
|
40
56
|
export type InitModelAction = {
|
|
41
57
|
type: "MODULARUI/INIT",
|
|
42
58
|
payload: Array<{
|
|
@@ -45,16 +61,40 @@ export type InitModelAction = {
|
|
|
45
61
|
}>,
|
|
46
62
|
};
|
|
47
63
|
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
66
|
+
*
|
|
67
|
+
* Recommended fixes:
|
|
68
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
69
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
70
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
71
|
+
*/
|
|
48
72
|
export type UpdateModelAction = {
|
|
49
73
|
type: "MODULARUI/UPDATE",
|
|
50
74
|
payload: ModularUIModel,
|
|
51
75
|
};
|
|
52
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
79
|
+
*
|
|
80
|
+
* Recommended fixes:
|
|
81
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
82
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
83
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
84
|
+
*/
|
|
53
85
|
export type UpdateFormAction = {
|
|
54
86
|
type: "MODULARUI/UPDATE_FORM",
|
|
55
87
|
payload: ModularUIModel,
|
|
56
88
|
};
|
|
57
89
|
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
92
|
+
*
|
|
93
|
+
* Recommended fixes:
|
|
94
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
95
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
96
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
97
|
+
*/
|
|
58
98
|
export type SuccessAction = (
|
|
59
99
|
model: ModularUIModel,
|
|
60
100
|
) => UpdateModelAction | SetModelAction;
|
|
@@ -63,6 +103,14 @@ export type ErrorAction = (
|
|
|
63
103
|
error: FetchException,
|
|
64
104
|
) => UpdateStatusAction | RemoveModelByKeyAction | NoAction;
|
|
65
105
|
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
108
|
+
*
|
|
109
|
+
* Recommended fixes:
|
|
110
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
111
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
112
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
113
|
+
*/
|
|
66
114
|
export type ModularUIAction = {
|
|
67
115
|
type: "MODULARUI/FETCH",
|
|
68
116
|
payload: {
|
|
@@ -98,15 +146,39 @@ export type ModularUIAction = {
|
|
|
98
146
|
},
|
|
99
147
|
};
|
|
100
148
|
|
|
149
|
+
/**
|
|
150
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
151
|
+
*
|
|
152
|
+
* Recommended fixes:
|
|
153
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
154
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
155
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
156
|
+
*/
|
|
101
157
|
export type RemoveModelByKeyAction = {
|
|
102
158
|
type: "MODULARUI/REMOVE_KEY",
|
|
103
159
|
payload: string,
|
|
104
160
|
};
|
|
105
161
|
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
164
|
+
*
|
|
165
|
+
* Recommended fixes:
|
|
166
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
167
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
168
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
169
|
+
*/
|
|
106
170
|
export type ResetModularUIAction = {
|
|
107
171
|
type: "MODULARUI/RESET",
|
|
108
172
|
};
|
|
109
173
|
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
176
|
+
*
|
|
177
|
+
* Recommended fixes:
|
|
178
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
179
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
180
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
181
|
+
*/
|
|
110
182
|
export type UpdateStatusAction = {
|
|
111
183
|
type: "MODULARUI/STATUS",
|
|
112
184
|
payload: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/redux/_modularui/types.js"],"sourcesContent":["// @flow\nimport type { ModularUIModel } from \"../../models/types\";\nimport type Href from \"../../models/href/Href\";\nimport type { FetchException } from \"../../exceptions\";\nimport type { NoAction } from \"../types\";\nimport typeof {\n HTTP_METHODS,\n MODULARUI_STATUS,\n} from \"../../constants/Constants\";\nimport type { ComponentType } from \"react\";\nimport type { TargetModel } from \"../../modularui/types\";\nimport type { RequestModularUIOptions } from \"../../utils/fetch/types\";\n\nexport type ModularUIOptions = {\n propName?: string,\n removeOnUnmount?: boolean,\n ...RequestModularUIOptions,\n};\n\nexport type ModelEntry = {\n +status: string,\n +model: ModularUIModel,\n +lastModification: number,\n +requestOptions?: any,\n};\n\nexport type ModularUIState = {\n [string]: ModelEntry,\n ...\n};\n\nexport type SetModelAction = {\n type: \"MODULARUI/SET\",\n payload: {\n key: string,\n model: ?ModularUIModel,\n },\n};\n\nexport type InitModelAction = {\n type: \"MODULARUI/INIT\",\n payload: Array<{\n key: string,\n model: ModularUIModel,\n }>,\n};\n\nexport type UpdateModelAction = {\n type: \"MODULARUI/UPDATE\",\n payload: ModularUIModel,\n};\n\nexport type UpdateFormAction = {\n type: \"MODULARUI/UPDATE_FORM\",\n payload: ModularUIModel,\n};\n\nexport type SuccessAction = (\n model: ModularUIModel,\n) => UpdateModelAction | SetModelAction;\n\nexport type ErrorAction = (\n error: FetchException,\n) => UpdateStatusAction | RemoveModelByKeyAction | NoAction;\n\nexport type ModularUIAction = {\n type: \"MODULARUI/FETCH\",\n payload: {\n key: string,\n origin?: string,\n contextPath?: string,\n href: Href,\n method?: $Keys<HTTP_METHODS>,\n params?: string,\n data?: any,\n timeout?: number,\n headers?: {\n [headerName: string]: string,\n Accept?: string,\n \"Accept-Language\"?: string,\n \"Content-Type\"?: string,\n \"x-filename\"?: string,\n \"x-filesize\"?: string,\n },\n events?: { [eventName: string]: () => void },\n onProgress?: ProgressEventHandler,\n locale: string,\n childmodels?: boolean,\n targetModel?: TargetModel,\n forceTargetModel?: boolean,\n cache?: boolean,\n isReload?: boolean,\n withCredentials?: boolean,\n successAction: (\n model: ModularUIModel,\n ) => UpdateModelAction | SetModelAction,\n errorAction?: ErrorAction,\n },\n};\n\nexport type RemoveModelByKeyAction = {\n type: \"MODULARUI/REMOVE_KEY\",\n payload: string,\n};\n\nexport type ResetModularUIAction = {\n type: \"MODULARUI/RESET\",\n};\n\nexport type UpdateStatusAction = {\n type: \"MODULARUI/STATUS\",\n payload: {\n key: string,\n status: $Keys<MODULARUI_STATUS>,\n requestOptions: any,\n },\n};\n\nexport type ModularUIConnector = (\n Component: ComponentType<any>,\n) => ComponentType<any>;\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/redux/_modularui/types.js"],"sourcesContent":["// @flow\nimport type { ModularUIModel } from \"../../models/types\";\nimport type Href from \"../../models/href/Href\";\nimport type { FetchException } from \"../../exceptions\";\nimport type { NoAction } from \"../types\";\nimport typeof {\n HTTP_METHODS,\n MODULARUI_STATUS,\n} from \"../../constants/Constants\";\nimport type { ComponentType } from \"react\";\nimport type { TargetModel } from \"../../modularui/types\";\nimport type { RequestModularUIOptions } from \"../../utils/fetch/types\";\n\nexport type ModularUIOptions = {\n propName?: string,\n removeOnUnmount?: boolean,\n ...RequestModularUIOptions,\n};\n\nexport type ModelEntry = {\n +status: string,\n +model: ModularUIModel,\n +lastModification: number,\n +requestOptions?: any,\n};\n\nexport type ModularUIState = {\n [string]: ModelEntry,\n ...\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type SetModelAction = {\n type: \"MODULARUI/SET\",\n payload: {\n key: string,\n model: ?ModularUIModel,\n },\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type InitModelAction = {\n type: \"MODULARUI/INIT\",\n payload: Array<{\n key: string,\n model: ModularUIModel,\n }>,\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type UpdateModelAction = {\n type: \"MODULARUI/UPDATE\",\n payload: ModularUIModel,\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type UpdateFormAction = {\n type: \"MODULARUI/UPDATE_FORM\",\n payload: ModularUIModel,\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type SuccessAction = (\n model: ModularUIModel,\n) => UpdateModelAction | SetModelAction;\n\nexport type ErrorAction = (\n error: FetchException,\n) => UpdateStatusAction | RemoveModelByKeyAction | NoAction;\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type ModularUIAction = {\n type: \"MODULARUI/FETCH\",\n payload: {\n key: string,\n origin?: string,\n contextPath?: string,\n href: Href,\n method?: $Keys<HTTP_METHODS>,\n params?: string,\n data?: any,\n timeout?: number,\n headers?: {\n [headerName: string]: string,\n Accept?: string,\n \"Accept-Language\"?: string,\n \"Content-Type\"?: string,\n \"x-filename\"?: string,\n \"x-filesize\"?: string,\n },\n events?: { [eventName: string]: () => void },\n onProgress?: ProgressEventHandler,\n locale: string,\n childmodels?: boolean,\n targetModel?: TargetModel,\n forceTargetModel?: boolean,\n cache?: boolean,\n isReload?: boolean,\n withCredentials?: boolean,\n successAction: (\n model: ModularUIModel,\n ) => UpdateModelAction | SetModelAction,\n errorAction?: ErrorAction,\n },\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type RemoveModelByKeyAction = {\n type: \"MODULARUI/REMOVE_KEY\",\n payload: string,\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type ResetModularUIAction = {\n type: \"MODULARUI/RESET\",\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type UpdateStatusAction = {\n type: \"MODULARUI/STATUS\",\n payload: {\n key: string,\n status: $Keys<MODULARUI_STATUS>,\n requestOptions: any,\n },\n};\n\nexport type ModularUIConnector = (\n Component: ComponentType<any>,\n) => ComponentType<any>;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -6,6 +6,14 @@ export type RouterState = {
|
|
|
6
6
|
+action: HistoryAction,
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
11
|
+
*
|
|
12
|
+
* Recommended fixes:
|
|
13
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
14
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
15
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
16
|
+
*/
|
|
9
17
|
export type LocationChangeAction = {
|
|
10
18
|
type: "ROUTER/LOCATION_CHANGE",
|
|
11
19
|
payload: {
|
|
@@ -14,6 +22,14 @@ export type LocationChangeAction = {
|
|
|
14
22
|
},
|
|
15
23
|
};
|
|
16
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
27
|
+
*
|
|
28
|
+
* Recommended fixes:
|
|
29
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
30
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
31
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
32
|
+
*/
|
|
17
33
|
export type PushAction = {
|
|
18
34
|
type: "ROUTER/PUSH",
|
|
19
35
|
payload: {
|
|
@@ -21,6 +37,15 @@ export type PushAction = {
|
|
|
21
37
|
state?: { ... },
|
|
22
38
|
},
|
|
23
39
|
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
43
|
+
*
|
|
44
|
+
* Recommended fixes:
|
|
45
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
46
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
47
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
48
|
+
*/
|
|
24
49
|
export type ReplaceAction = {
|
|
25
50
|
type: "ROUTER/REPLACE",
|
|
26
51
|
payload: {
|
|
@@ -28,16 +53,42 @@ export type ReplaceAction = {
|
|
|
28
53
|
state?: { ... },
|
|
29
54
|
},
|
|
30
55
|
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
59
|
+
*
|
|
60
|
+
* Recommended fixes:
|
|
61
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
62
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
63
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
64
|
+
*/
|
|
31
65
|
export type GoAction = {
|
|
32
66
|
type: "ROUTER/GO",
|
|
33
67
|
payload: {
|
|
34
68
|
delta: number,
|
|
35
69
|
},
|
|
36
70
|
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
74
|
+
*
|
|
75
|
+
* Recommended fixes:
|
|
76
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
77
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
78
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
79
|
+
*/
|
|
37
80
|
export type GoBackAction = {
|
|
38
81
|
type: "ROUTER/GOBACK",
|
|
39
82
|
};
|
|
40
83
|
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated This manual action type will be removed in a future major release.
|
|
86
|
+
*
|
|
87
|
+
* Recommended fixes:
|
|
88
|
+
* - Type component props as a simple callback: e.g. `onDismiss: () => void`.
|
|
89
|
+
* - Use the appropriate hook to encapsulate this logic.
|
|
90
|
+
* - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.
|
|
91
|
+
*/
|
|
41
92
|
export type GoForwardAction = {
|
|
42
93
|
type: "ROUTER/GOFORWARD",
|
|
43
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/redux/_router/types.js"],"sourcesContent":["// @flow\nimport type { HistoryAction, Location, LocationShape } from \"react-router\";\n\nexport type RouterState = {\n +location: Location,\n +action: HistoryAction,\n};\n\nexport type LocationChangeAction = {\n type: \"ROUTER/LOCATION_CHANGE\",\n payload: {\n location: Location,\n action: HistoryAction,\n },\n};\n\nexport type PushAction = {\n type: \"ROUTER/PUSH\",\n payload: {\n location: string | LocationShape,\n state?: { ... },\n },\n};\nexport type ReplaceAction = {\n type: \"ROUTER/REPLACE\",\n payload: {\n location: string | LocationShape,\n state?: { ... },\n },\n};\nexport type GoAction = {\n type: \"ROUTER/GO\",\n payload: {\n delta: number,\n },\n};\nexport type GoBackAction = {\n type: \"ROUTER/GOBACK\",\n};\n\nexport type GoForwardAction = {\n type: \"ROUTER/GOFORWARD\",\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/redux/_router/types.js"],"sourcesContent":["// @flow\nimport type { HistoryAction, Location, LocationShape } from \"react-router\";\n\nexport type RouterState = {\n +location: Location,\n +action: HistoryAction,\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type LocationChangeAction = {\n type: \"ROUTER/LOCATION_CHANGE\",\n payload: {\n location: Location,\n action: HistoryAction,\n },\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type PushAction = {\n type: \"ROUTER/PUSH\",\n payload: {\n location: string | LocationShape,\n state?: { ... },\n },\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type ReplaceAction = {\n type: \"ROUTER/REPLACE\",\n payload: {\n location: string | LocationShape,\n state?: { ... },\n },\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type GoAction = {\n type: \"ROUTER/GO\",\n payload: {\n delta: number,\n },\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type GoBackAction = {\n type: \"ROUTER/GOBACK\",\n};\n\n/**\n * @deprecated This manual action type will be removed in a future major release.\n *\n * Recommended fixes:\n * - Type component props as a simple callback: e.g. `onDismiss: () => void`.\n * - Use the appropriate hook to encapsulate this logic.\n * - Reference the action object type for middleware, use ReturnType<typeof actionCreator>.\n */\nexport type GoForwardAction = {\n type: \"ROUTER/GOFORWARD\",\n};\n"],"mappings":"","ignoreList":[]}
|