@opengeoweb/sigmet-airmet 15.1.0 → 15.3.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.
Files changed (3) hide show
  1. package/README.md +0 -62
  2. package/index.esm.js +1 -1
  3. package/package.json +10 -10
package/README.md CHANGED
@@ -35,68 +35,6 @@ You can use any component exported from sigmet-airmet by importing them, for exa
35
35
  import { MetInfoWrapper } from '@opengeoweb/sigmet-airmet'
36
36
  ```
37
37
 
38
- ### API
39
-
40
- Documentation of the API can be found on Swagger (make sure you're connected to the KNMI network).
41
-
42
- The front-end uses the [axios](https://github.com/axios/axios) library to fetch data from the api. Importing components from the sigmet-airmet lib should be wrapped by the ApiProvider component with a specified baseURL. Example:
43
-
44
- ```
45
- import { ApiProvider } from '@opengeoweb/api';
46
- import { MetInfoWrapper } from '@opengeoweb/sigmet-airmet';
47
-
48
- const sigmetProductConfig = {
49
- location_indicator_mwo: 'EHDB',
50
- fir_areas: {
51
- EHAA: {
52
- fir_name: 'AMSTERDAM FIR',
53
- location_indicator_atsr: 'EHAA',
54
- location_indicator_atsu: 'EHAA',
55
- max_hours_of_validity: 4,
56
- hours_before_validity: 4,
57
- tc_max_hours_of_validity: 6,
58
- tc_hours_before_validity: 12,
59
- va_max_hours_of_validity: 6,
60
- va_hours_before_validity: 12,
61
- adjacent_firs: ['EKDK', 'EDWW', 'EDGG', 'EBBU', 'EGTT', 'EGPX'],
62
- units: [
63
- {
64
- unit_type: 'level_unit',
65
- allowed_units: ['FT', 'FL'],
66
- },
67
- {
68
- unit_type: 'movement_unit',
69
- allowed_units: ['KT'],
70
- },
71
- ],
72
- },
73
- },
74
- active_firs: ['EHAA'],
75
- };
76
-
77
- const myAuth = {
78
- username: 'string',
79
- token: 'string',
80
- refresh_token: 'string',
81
- };
82
-
83
- const Component = () => {
84
- const [auth, onSetAuth] = React.useState(myAuth);
85
-
86
- return (
87
- <ApiProvider
88
- baseURL="http://test.com"
89
- appURL="http://app.com"
90
- auth={auth}
91
- onSetAuth={onSetAuth}
92
- createApi={createApi}
93
- authTokenURL="url/tokenrefresh"
94
- >
95
- <MetInfoWrapper productType='sigmet' productConfig={sigmetProductConfig} />
96
- </ApiProvider>
97
- )}
98
- ```
99
-
100
38
  ### Configuration
101
39
 
102
40
  Every country has different rules for aviation so a configuration file is required to let the module work correctly. Airmet uses basic configuration which has been expanded for sigmet to contain more custom properties. The validation rules are stored in schema files following the conventions of https://json-schema.org/. The configuration file is fetched from the backend.
package/index.esm.js CHANGED
@@ -5739,7 +5739,7 @@ var getSequenceStyling = function getSequenceStyling(product, hasTac) {
5739
5739
  if (hasTac === void 0) {
5740
5740
  hasTac = false;
5741
5741
  }
5742
- if (hasTac && !product || product && product.status === 'DRAFT' || product && product.status === '') {
5742
+ if (hasTac && !product || (product == null ? void 0 : product.status) === 'DRAFT' || (product == null ? void 0 : product.status) === '') {
5743
5743
  return {
5744
5744
  fontWeight: 'lighter',
5745
5745
  color: 'geowebColors.typographyAndIcons.inactiveText'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "15.1.0",
3
+ "version": "15.3.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,17 +8,17 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "15.1.0",
12
- "@opengeoweb/shared": "15.1.0",
13
- "@opengeoweb/theme": "15.1.0",
14
- "@opengeoweb/store": "15.1.0",
15
- "@opengeoweb/webmap": "15.1.0",
16
- "@opengeoweb/webmap-react": "15.1.0",
11
+ "@opengeoweb/api": "15.3.0",
12
+ "@opengeoweb/shared": "15.3.0",
13
+ "@opengeoweb/theme": "15.3.0",
14
+ "@opengeoweb/store": "15.3.0",
15
+ "@opengeoweb/webmap": "15.3.0",
16
+ "@opengeoweb/webmap-react": "15.3.0",
17
17
  "react-redux": "^9.2.0",
18
- "@opengeoweb/core": "15.1.0",
19
- "@opengeoweb/authentication": "15.1.0",
18
+ "@opengeoweb/core": "15.3.0",
19
+ "@opengeoweb/authentication": "15.3.0",
20
20
  "@mui/system": "^7.3.2",
21
- "@opengeoweb/form-fields": "15.1.0",
21
+ "@opengeoweb/form-fields": "15.3.0",
22
22
  "react-hook-form": "^7.50.1",
23
23
  "axios": "^1.7.7",
24
24
  "lodash": "^4.17.21",