@opengeoweb/knmi-components 15.0.0 → 15.1.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/index.esm.js CHANGED
@@ -87,7 +87,7 @@ var knmicomponentTranslations = {
87
87
  * */
88
88
  const config = sessionStorageProvider.getConfig();
89
89
  const publisherBaseUrl = config.GW_KNMI_PUBLISHER_BASE_URL || '';
90
- const publishProduct = async (auth, data) => fetch(`${publisherBaseUrl}/publish`, {
90
+ const publishProduct = async (auth, data, productType = 'trajks') => fetch(`${publisherBaseUrl}/publish/${productType}`, {
91
91
  headers: getHeaders(auth),
92
92
  method: 'POST',
93
93
  body: JSON.stringify(data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/knmi-components",
3
- "version": "15.0.0",
3
+ "version": "15.1.0",
4
4
  "description": "GeoWeb knmi-components library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,18 +8,18 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/form-fields": "15.0.0",
11
+ "@opengeoweb/form-fields": "15.1.0",
12
12
  "react-hook-form": "^7.61.1",
13
13
  "@mui/material": "^7.2.0",
14
- "@opengeoweb/shared": "15.0.0",
15
- "@opengeoweb/theme": "15.0.0",
14
+ "@opengeoweb/shared": "15.1.0",
15
+ "@opengeoweb/theme": "15.1.0",
16
16
  "i18next": "^25.3.2",
17
17
  "react-i18next": "^15.1.1",
18
- "@opengeoweb/api": "15.0.0",
19
- "@opengeoweb/authentication": "15.0.0",
18
+ "@opengeoweb/api": "15.1.0",
19
+ "@opengeoweb/authentication": "15.1.0",
20
20
  "@tanstack/react-query": "^5.85.5",
21
21
  "react-redux": "^9.2.0",
22
- "@opengeoweb/snackbar": "15.0.0"
22
+ "@opengeoweb/snackbar": "15.1.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "eslint-plugin-storybook": "9.0.17"
@@ -1,3 +1,3 @@
1
1
  import type { Credentials } from '@opengeoweb/authentication';
2
2
  import type { TrajksFormValues } from '../components/Trajks';
3
- export declare const publishProduct: (auth: Credentials, data: TrajksFormValues) => Promise<Headers | null>;
3
+ export declare const publishProduct: (auth: Credentials, data: TrajksFormValues, productType?: string) => Promise<Headers | null>;