@opengeoweb/space-weather 13.0.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/README.md +43 -0
- package/index.d.ts +1 -0
- package/index.esm.js +8391 -0
- package/package.json +38 -0
- package/src/index.d.ts +10 -0
- package/src/lib/components/Bulletin/Bulletin.d.ts +10 -0
- package/src/lib/components/Bulletin/Bulletin.noNewBulletins.stories.d.ts +8 -0
- package/src/lib/components/Bulletin/Bulletin.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/Bulletin.stories.d.ts +8 -0
- package/src/lib/components/Bulletin/BulletinControls.d.ts +6 -0
- package/src/lib/components/Bulletin/BulletinControls.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinHistoryDialog.d.ts +7 -0
- package/src/lib/components/Bulletin/BulletinHistoryDialog.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinHistoryDialog.stories.d.ts +7 -0
- package/src/lib/components/Bulletin/BulletinHistoryList.d.ts +8 -0
- package/src/lib/components/Bulletin/BulletinHistoryList.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinTabs.d.ts +11 -0
- package/src/lib/components/Bulletin/BulletinTabs.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinViewer.d.ts +8 -0
- package/src/lib/components/Bulletin/BulletinViewer.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/index.d.ts +4 -0
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +15 -0
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +1 -0
- package/src/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/src/lib/components/ContentDialog/ContentDialog.d.ts +12 -0
- package/src/lib/components/ContentDialog/ContentDialog.spec.d.ts +1 -0
- package/src/lib/components/ContentDialog/ContentDialog.stories.d.ts +12 -0
- package/src/lib/components/ContentDialog/index.d.ts +1 -0
- package/src/lib/components/Layout/Layout.d.ts +18 -0
- package/src/lib/components/Layout/Layout.spec.d.ts +1 -0
- package/src/lib/components/Layout/index.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/CategoryLabelStatusTag.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/DataSourceStatusTag.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/EditFormFields.styles.d.ts +15 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/EventLevel.d.ts +3 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/GScaleStatusTag.d.ts +8 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.d.ts +3 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.d.ts +10 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.d.ts +3 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/Threshold.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.d.ts +8 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/index.d.ts +9 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/validations.d.ts +5 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/validations.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/FormWrapper.d.ts +9 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleActions.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleActions.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleColumn.d.ts +10 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleColumn.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDialog.d.ts +12 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDialog.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDialog.stories.d.ts +34 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDisplay.d.ts +11 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDisplay.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEdit.d.ts +19 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEdit.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEdit.unregister.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.d.ts +8 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/index.d.ts +5 -0
- package/src/lib/components/LifeCycleDialog/utils.d.ts +10 -0
- package/src/lib/components/LifeCycleDialog/utils.spec.d.ts +1 -0
- package/src/lib/components/NotificationTrigger/NotificationTrigger.d.ts +3 -0
- package/src/lib/components/NotificationTrigger/NotificationTrigger.spec.d.ts +1 -0
- package/src/lib/components/NotificationTrigger/NotificationTrigger.stories.d.ts +7 -0
- package/src/lib/components/NotificationTrigger/NotificationTriggerContext.d.ts +14 -0
- package/src/lib/components/NotificationTrigger/NotificationTriggerContext.spec.d.ts +1 -0
- package/src/lib/components/NotificationTrigger/index.d.ts +2 -0
- package/src/lib/components/Notifications/NotificationList.d.ts +13 -0
- package/src/lib/components/Notifications/NotificationList.spec.d.ts +1 -0
- package/src/lib/components/Notifications/NotificationRow.d.ts +8 -0
- package/src/lib/components/Notifications/NotificationRow.spec.d.ts +7 -0
- package/src/lib/components/Notifications/NotificationRow.stories.d.ts +8 -0
- package/src/lib/components/Notifications/NotificationTabs.d.ts +9 -0
- package/src/lib/components/Notifications/NotificationTabs.spec.d.ts +1 -0
- package/src/lib/components/Notifications/Notifications.d.ts +10 -0
- package/src/lib/components/Notifications/Notifications.spec.d.ts +1 -0
- package/src/lib/components/Notifications/Notifications.stories.d.ts +15 -0
- package/src/lib/components/Notifications/index.d.ts +3 -0
- package/src/lib/components/Notifications/utils.d.ts +2 -0
- package/src/lib/components/Notifications/utils.spec.d.ts +1 -0
- package/src/lib/components/Providers/Providers.d.ts +4 -0
- package/src/lib/components/Providers/index.d.ts +1 -0
- package/src/lib/components/TimeSeries/GraphErrors.d.ts +12 -0
- package/src/lib/components/TimeSeries/Graphs.d.ts +12 -0
- package/src/lib/components/TimeSeries/Graphs.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/Graphs.stories.d.ts +10 -0
- package/src/lib/components/TimeSeries/TimeSeries.d.ts +3 -0
- package/src/lib/components/TimeSeries/TimeSeries.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/TimeSeries.stories.d.ts +9 -0
- package/src/lib/components/TimeSeries/TimeSeries.utils.d.ts +4 -0
- package/src/lib/components/TimeSeries/TimeSeries.utils.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/TimeSeriesHeader.d.ts +3 -0
- package/src/lib/components/TimeSeries/createChartSeriesData.d.ts +4 -0
- package/src/lib/components/TimeSeries/createChartSeriesData.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/index.d.ts +1 -0
- package/src/lib/components/TimeSeries/styles.d.ts +14 -0
- package/src/lib/components/TimeSeries/types.d.ts +34 -0
- package/src/lib/components/TimeSeries/utils.d.ts +22 -0
- package/src/lib/components/TimeSeries/utils.spec.d.ts +1 -0
- package/src/lib/demo.stories.d.ts +5 -0
- package/src/lib/types.d.ts +207 -0
- package/src/lib/utils/DummyData.d.ts +367 -0
- package/src/lib/utils/defaultTimeRange.d.ts +4 -0
- package/src/lib/utils/fakedata.d.ts +21 -0
- package/src/lib/utils/i18n.d.ts +7 -0
- package/src/lib/utils/spaceweather-api/api.d.ts +16 -0
- package/src/lib/utils/spaceweather-api/fakeApi.d.ts +8 -0
- package/src/lib/utils/spaceweather-api/hooks.d.ts +38 -0
- package/src/lib/utils/storybookUtils.d.ts +2 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
# space-weather
|
|
5
|
+
|
|
6
|
+
React component library with space-weather components for the opengeoweb project.
|
|
7
|
+
This library was generated with [Nx](https://nx.dev).
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
npm install @opengeoweb/space-weather
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Use
|
|
16
|
+
|
|
17
|
+
The front-end uses the [tanstack](https://tanstack.com/query) library to fetch data from the api. Importing components from the Space Weather repository should be wrapped by a QueryClient provider. Example:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
import { QueryClientProvider } from '@tanstack/react-query';
|
|
21
|
+
import { TimeSeries } from '@opengeoweb/space-weather';
|
|
22
|
+
|
|
23
|
+
const Component = () =>
|
|
24
|
+
<QueryClientProvider client={queryClient}>
|
|
25
|
+
<TimeSeries />
|
|
26
|
+
</QueryClientProvider>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
https://opengeoweb.gitlab.io/opengeoweb/docs/space-weather/
|
|
32
|
+
|
|
33
|
+
### API
|
|
34
|
+
|
|
35
|
+
Documentation of the API can be found on Swagger (make sure you're connected to the KNMI network). There are three controllers:
|
|
36
|
+
|
|
37
|
+
1. [TimeSeries API](http://ec2-34-242-250-251.eu-west-1.compute.amazonaws.com:8080/ui/#/time-series-controller)
|
|
38
|
+
2. [Bulletin API](http://ec2-34-242-250-251.eu-west-1.compute.amazonaws.com:8080/bulletin/ui/)
|
|
39
|
+
3. [Notification API](http://ec2-34-242-250-251.eu-west-1.compute.amazonaws.com:8080/notification/ui/)
|
|
40
|
+
|
|
41
|
+
### TypeScript Documentation
|
|
42
|
+
|
|
43
|
+
- [TypeScript Docs](https://opengeoweb.gitlab.io/opengeoweb/typescript-docs/space-weather/)
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|