@opengeoweb/warnings 9.15.0 → 9.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/warnings",
3
- "version": "9.15.0",
3
+ "version": "9.17.0",
4
4
  "description": "GeoWeb warinings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -19,7 +19,6 @@
19
19
  "@opengeoweb/form-fields": "*",
20
20
  "react-hook-form": "^7.50.1",
21
21
  "lodash": "^4.17.21",
22
- "redux-saga": "^1.2.3",
23
22
  "@reduxjs/toolkit": "^1.9.7",
24
23
  "@opengeoweb/snackbar": "*",
25
24
  "react-window": "^1.8.10",
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import warningsTranslations from '../locales/warnings.json';
1
2
  export * from './lib/components/ObjectManager';
2
3
  export * from './lib/components/WarningsModuleProvider';
3
4
  export * from './lib/components/DrawingTool';
@@ -5,3 +6,4 @@ export * from './lib/components/DrawingToolForm';
5
6
  export * from './lib/components/PublicWarningsFormDialog';
6
7
  export * from './lib/components/ComponentsLookUp';
7
8
  export * from './lib/store/config';
9
+ export { warningsTranslations };
@@ -11,7 +11,7 @@ export declare const DrawingToolLight: {
11
11
  link: string;
12
12
  }[];
13
13
  };
14
- storyName: string;
14
+ tags: string[];
15
15
  };
16
16
  export declare const DrawingToolDark: {
17
17
  (): React.ReactElement;
@@ -21,7 +21,7 @@ export declare const DrawingToolDark: {
21
21
  link: string;
22
22
  }[];
23
23
  };
24
- storyName: string;
24
+ tags: string[];
25
25
  };
26
26
  export declare const DrawingToolErrorLight: {
27
27
  (): React.ReactElement;
@@ -5,7 +5,7 @@ declare const _default: {
5
5
  export default _default;
6
6
  export declare const ObjectManagerSmall: {
7
7
  (): React.ReactElement;
8
- storyName: string;
8
+ tags: string[];
9
9
  };
10
10
  export declare const ObjectManagerLight: {
11
11
  (): React.ReactElement;
@@ -15,7 +15,7 @@ export declare const ObjectManagerLight: {
15
15
  link: string;
16
16
  }[];
17
17
  };
18
- storyName: string;
18
+ tags: string[];
19
19
  };
20
20
  export declare const ObjectManagerDark: {
21
21
  (): React.ReactElement;
@@ -25,22 +25,22 @@ export declare const ObjectManagerDark: {
25
25
  link: string;
26
26
  }[];
27
27
  };
28
- storyName: string;
28
+ tags: string[];
29
29
  };
30
30
  export declare const ObjectManagerLightNoResults: {
31
31
  (): React.ReactElement;
32
- storyName: string;
32
+ tags: string[];
33
33
  };
34
34
  export declare const ObjectManagerDarkNoResults: {
35
35
  (): React.ReactElement;
36
- storyName: string;
36
+ tags: string[];
37
37
  };
38
38
  export declare const ObjectManagerLoading: () => React.ReactElement;
39
39
  export declare const ObjectManagerErrorLight: {
40
40
  (): React.ReactElement;
41
- storyName: string;
41
+ tags: string[];
42
42
  };
43
43
  export declare const ObjectManagerErrorDark: {
44
44
  (): React.ReactElement;
45
- storyName: string;
45
+ tags: string[];
46
46
  };
@@ -15,6 +15,5 @@ export declare const WarningsThemeStoreProvider: React.FC<WarningsThemeStoreProv
15
15
  interface WarningsTranslationsWrapperProps {
16
16
  children?: React.ReactNode;
17
17
  }
18
- export declare const WarningsTranslationsWrapper: React.FC<WarningsTranslationsWrapperProps>;
19
18
  export declare const WarningsI18nProvider: React.FC<WarningsTranslationsWrapperProps>;
20
19
  export {};
@@ -5,7 +5,7 @@ declare const _default: {
5
5
  export default _default;
6
6
  export declare const PublicWarningListLight: {
7
7
  (): React.ReactElement;
8
- storyName: string;
8
+ tags: string[];
9
9
  parameters: {
10
10
  zeplinLink: {
11
11
  name: string;
@@ -15,7 +15,7 @@ export declare const PublicWarningListLight: {
15
15
  };
16
16
  export declare const PublicWarningListDark: {
17
17
  (): React.ReactElement;
18
- storyName: string;
18
+ tags: string[];
19
19
  parameters: {
20
20
  zeplinLink: {
21
21
  name: string;
@@ -25,3 +25,11 @@ export declare const PublicWarningListDark: {
25
25
  };
26
26
  export declare const PublicWarningListError: () => React.ReactElement;
27
27
  export declare const PublicWarningListLoading: () => React.ReactElement;
28
+ export declare const PublicWarningListSmallLight: {
29
+ (): React.ReactElement;
30
+ tags: string[];
31
+ };
32
+ export declare const PublicWarningListSmallDark: {
33
+ (): React.ReactElement;
34
+ tags: string[];
35
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export declare const probablityOptions: number[];
3
+ export declare const defaultProbability = 30;
4
+ export declare const ProbabilityField: React.FC<{
5
+ isDisabled?: boolean;
6
+ isReadOnly?: boolean;
7
+ }>;
@@ -0,0 +1 @@
1
+ export * from './ProbabilityField';
@@ -11,7 +11,7 @@ export declare const PublicWarningsFormDialogLight: {
11
11
  link: string;
12
12
  }[];
13
13
  };
14
- storyName: string;
14
+ tags: string[];
15
15
  };
16
16
  export declare const PublicWarningsFormDialogDark: {
17
17
  (): React.ReactElement;
@@ -21,37 +21,37 @@ export declare const PublicWarningsFormDialogDark: {
21
21
  link: string;
22
22
  }[];
23
23
  };
24
- storyName: string;
24
+ tags: string[];
25
25
  };
26
- export declare const PublicWarningsFormDialogLightBig: {
26
+ export declare const PublicWarningsFormDialogBigLight: {
27
27
  (): React.ReactElement;
28
- storyName: string;
28
+ tags: string[];
29
29
  };
30
- export declare const PublicWarningsDarkBig: {
30
+ export declare const PublicWarningsFormDialogBigDark: {
31
31
  (): React.ReactElement;
32
- storyName: string;
32
+ tags: string[];
33
33
  };
34
- export declare const PublicWarningsFormDialogLightBigError: {
34
+ export declare const PublicWarningsFormDialogBigErrorLight: {
35
35
  (): React.ReactElement;
36
- storyName: string;
36
+ tags: string[];
37
37
  };
38
- export declare const PublicWarningsFormDialogDarkBigError: {
38
+ export declare const PublicWarningsFormDialogBigErrorDark: {
39
39
  (): React.ReactElement;
40
- storyName: string;
40
+ tags: string[];
41
41
  };
42
- export declare const PublicWarningsFormDialogLightReadOnly: {
42
+ export declare const PublicWarningsFormDialogReadOnlyLight: {
43
43
  (): React.ReactElement;
44
- storyName: string;
44
+ tags: string[];
45
45
  };
46
- export declare const PublicWarningsFormDialogDarkReadOnly: {
46
+ export declare const PublicWarningsFormDialogReadOnlyDark: {
47
47
  (): React.ReactElement;
48
- storyName: string;
48
+ tags: string[];
49
49
  };
50
- export declare const PublicWarningsFormDialogLightTakeoverWarning: {
50
+ export declare const PublicWarningsFormDialogTakeoverWarningLight: {
51
51
  (): React.ReactElement;
52
- storyName: string;
52
+ tags: string[];
53
53
  };
54
- export declare const PublicWarningsFormDialogDarkTakeoverWarning: {
54
+ export declare const PublicWarningsFormDialogTakeoverWarningDark: {
55
55
  (): React.ReactElement;
56
- storyName: string;
56
+ tags: string[];
57
57
  };
@@ -1,4 +1,3 @@
1
- import publicWarningFormSagas from './publicWarningForm/sagas';
2
1
  export declare const drawingModuleConfig: {
3
2
  id: string;
4
3
  reducersMap: {
@@ -6,7 +5,6 @@ export declare const drawingModuleConfig: {
6
5
  publicWarningForm: import("redux").Reducer<import("./publicWarningForm/reducer").PublicWarningFormState, import("redux").AnyAction>;
7
6
  publicWarnings: import("redux").Reducer<import("./publicWarnings/types").PublicWarningsState, import("redux").AnyAction>;
8
7
  };
9
- sagas: (typeof publicWarningFormSagas)[];
10
8
  middlewares: import("@reduxjs/toolkit").ListenerMiddleware<import("./types").WarningModuleStore, import("redux-thunk").ThunkDispatch<import("./types").WarningModuleStore, unknown, import("redux").AnyAction>, unknown>[];
11
9
  };
12
10
  export default drawingModuleConfig;
@@ -0,0 +1,2 @@
1
+ import { WarningModuleStore } from '../types';
2
+ export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
@@ -0,0 +1,3 @@
1
+ import { WarningModuleStore } from '../types';
2
+ export declare const getLastUpdatedTimeFormatted: () => string;
3
+ export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
@@ -1,2 +1 @@
1
1
  export declare const DATE_FORMAT_HEADER = "EEEE, MMMM dd";
2
- export declare const DATE_FORMAT_LASTUPDATEDTIME = "HH:mm";
@@ -1,3 +1,5 @@
1
+ import i18n from 'i18next';
2
+ import { UseTranslationResponse } from 'react-i18next';
1
3
  export declare const WARN_NAMESPACE = "warn";
2
4
  export declare const initWarnI18n: () => void;
3
5
  export declare const outsideComponentTranslations: {
@@ -65,6 +67,7 @@ export declare const outsideComponentTranslations: {
65
67
  "warning-phenomenon-low-temp": string;
66
68
  "warning-phenomenon-funnel-cloud": string;
67
69
  "warning-phenomenon-coastal-event": string;
70
+ "warning-probability-moderate-level-invalid": string;
68
71
  "warning-valid-from": string;
69
72
  "warning-valid-until": string;
70
73
  "warning-valid-from-error-before-current": string;
@@ -101,6 +104,7 @@ export declare const outsideComponentTranslations: {
101
104
  "warning-list-header-domain": string;
102
105
  "warning-list-header-phenomenon": string;
103
106
  "warning-list-header-level": string;
107
+ "warning-list-header-status": string;
104
108
  "warning-list-header-draft": string;
105
109
  } | {
106
110
  "drawing-tool-form-tools": string;
@@ -167,6 +171,7 @@ export declare const outsideComponentTranslations: {
167
171
  "warning-phenomenon-low-temp": string;
168
172
  "warning-phenomenon-funnel-cloud": string;
169
173
  "warning-phenomenon-coastal-event": string;
174
+ "warning-probability-moderate-level-invalid": string;
170
175
  "warning-valid-from": string;
171
176
  "warning-valid-until": string;
172
177
  "warning-valid-from-error-before-current": string;
@@ -203,6 +208,7 @@ export declare const outsideComponentTranslations: {
203
208
  "warning-list-header-domain": string;
204
209
  "warning-list-header-phenomenon": string;
205
210
  "warning-list-header-level": string;
211
+ "warning-list-header-status": string;
206
212
  "warning-list-header-draft": string;
207
213
  } | {
208
214
  "drawing-tool-form-tools": string;
@@ -269,6 +275,7 @@ export declare const outsideComponentTranslations: {
269
275
  "warning-phenomenon-low-temp": string;
270
276
  "warning-phenomenon-funnel-cloud": string;
271
277
  "warning-phenomenon-coastal-event": string;
278
+ "warning-probability-moderate-level-invalid": string;
272
279
  "warning-valid-from": string;
273
280
  "warning-valid-until": string;
274
281
  "warning-valid-from-error-before-current": string;
@@ -305,6 +312,7 @@ export declare const outsideComponentTranslations: {
305
312
  "warning-list-header-domain": string;
306
313
  "warning-list-header-phenomenon": string;
307
314
  "warning-list-header-level": string;
315
+ "warning-list-header-status": string;
308
316
  "warning-list-header-draft": string;
309
317
  } | {
310
318
  "drawing-tool-form-tools": string;
@@ -371,6 +379,7 @@ export declare const outsideComponentTranslations: {
371
379
  "warning-phenomenon-low-temp": string;
372
380
  "warning-phenomenon-funnel-cloud": string;
373
381
  "warning-phenomenon-coastal-event": string;
382
+ "warning-probability-moderate-level-invalid": string;
374
383
  "warning-valid-from": string;
375
384
  "warning-valid-until": string;
376
385
  "warning-valid-from-error-before-current": string;
@@ -407,5 +416,7 @@ export declare const outsideComponentTranslations: {
407
416
  "warning-list-header-domain": string;
408
417
  "warning-list-header-phenomenon": string;
409
418
  "warning-list-header-level": string;
419
+ "warning-list-header-status": string;
410
420
  "warning-list-header-draft": string;
411
421
  };
422
+ export declare const useWarningsTranslation: () => UseTranslationResponse<typeof WARN_NAMESPACE, typeof i18n>;
@@ -1,14 +0,0 @@
1
- import { SagaIterator } from 'redux-saga';
2
- import { publicWarningFormActions } from './reducer';
3
- import { PublicWarning } from './types';
4
- export declare function saveOrUpdateWarning(publicWarning: PublicWarning): SagaIterator<PublicWarning>;
5
- export declare const getToggleEditorSuccessMessage: (isEditor: boolean) => string;
6
- export declare function toggleEditorWarningSaga({ payload, }: ReturnType<typeof publicWarningFormActions.toggleEditorWarning>): SagaIterator;
7
- export declare function publishWarningSaga({ payload, }: ReturnType<typeof publicWarningFormActions.publishWarning>): SagaIterator;
8
- export declare function saveWarningSaga({ payload, }: ReturnType<typeof publicWarningFormActions.saveWarning>): SagaIterator;
9
- export declare function successSaga({ payload, }: ReturnType<typeof publicWarningFormActions.publishWarningSuccess | typeof publicWarningFormActions.saveWarningSuccess>): SagaIterator;
10
- export declare function errorSaga(message: string): SagaIterator;
11
- export declare function toggleDialogLoadingSaga(isLoading: boolean): SagaIterator;
12
- export declare function openDialogSaga(): SagaIterator;
13
- declare function publicWarningRootSaga(): SagaIterator;
14
- export default publicWarningRootSaga;
@@ -1,6 +0,0 @@
1
- import { SagaIterator } from 'redux-saga';
2
- export declare const getLastUpdatedTimeFormatted: () => string;
3
- export declare function fetchWarningsSaga(): SagaIterator;
4
- export declare function refetchWarnings(): SagaIterator;
5
- declare function publicWarnings(): SagaIterator;
6
- export default publicWarnings;