@opengeoweb/taf 12.2.0 → 12.4.1

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
@@ -1,14 +1,14 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
- import { Grid2, Button, Chip, Box, Typography, TextField, Card, Tabs, Tab, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
4
+ import { Grid, Button, Chip, Box, Typography, TextField, Card, Tabs, Tab, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
5
5
  import { useFormContext, useFieldArray, Controller } from 'react-hook-form';
6
6
  import { useDispatch } from 'react-redux';
7
7
  import { ReactSortable } from 'react-sortablejs';
8
8
  import Sortable from 'sortablejs';
9
- import { getConfig, useAuthenticationContext as useAuthenticationContext$1 } from '@opengeoweb/authentication';
9
+ import { useAuthenticationContext as useAuthenticationContext$1 } from '@opengeoweb/authentication';
10
10
  import { HIDDEN_INPUT_HELPER_IS_DRAFT, getDeepProperty, useDraftFormHelpers, ReactHookFormHiddenInput, ReactHookFormProvider } from '@opengeoweb/form-fields';
11
- import { SHARED_NAMESPACE, dateUtils, getErrorMessage as getErrorMessage$1, getWarningMessage, CustomIconButton, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, usePreventBrowserClose, SwitchButton, CustomDialog, ToolHeader, AlertBanner, LastUpdateTime, ErrorBoundary } from '@opengeoweb/shared';
11
+ import { SHARED_NAMESPACE, dateUtils, sessionStorageProvider, getErrorMessage as getErrorMessage$1, getWarningMessage, CustomIconButton, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, usePreventBrowserClose, SwitchButton, CustomDialog, ToolHeader, AlertBanner, LastUpdateTime, ErrorBoundary } from '@opengeoweb/shared';
12
12
  import { snackbarActions, snackbarTypes } from '@opengeoweb/snackbar';
13
13
  import 'i18next';
14
14
  import { useTranslation } from 'react-i18next';
@@ -808,13 +808,13 @@ var TafFormButtons = function TafFormButtons(_ref2) {
808
808
  onTafViewModeButtonPress = _ref2.onTafViewModeButtonPress;
809
809
  var _useTafTranslation2 = useTafTranslation(),
810
810
  t = _useTafTranslation2.t;
811
- return jsxs(Grid2, {
811
+ return jsxs(Grid, {
812
812
  container: true,
813
813
  columns: 24,
814
814
  sx: [{
815
815
  justifyContent: 'flex-end'
816
816
  }].concat(Array.isArray(buttonsStyle) ? buttonsStyle : [buttonsStyle]),
817
- children: [jsx(Grid2, {
817
+ children: [jsx(Grid, {
818
818
  container: true,
819
819
  columns: 24,
820
820
  size: {
@@ -866,7 +866,7 @@ var TafFormButtons = function TafFormButtons(_ref2) {
866
866
  children: t('button-publish')
867
867
  })]
868
868
  })
869
- }), jsx(Grid2, {
869
+ }), jsx(Grid, {
870
870
  columns: 24,
871
871
  size: {
872
872
  sm: 1
@@ -2626,7 +2626,7 @@ var DATE_FORMAT_BASE_TIME = 'HH:mm dd MMM';
2626
2626
  * Copyright 2025 - Finnish Meteorological Institute (FMI)
2627
2627
  * Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
2628
2628
  * */
2629
- var config = getConfig();
2629
+ var config = sessionStorageProvider.getConfig();
2630
2630
  var tafBaseUrl = config.GW_TAF_BASE_URL || '';
2631
2631
  var getTafList = function getTafList(auth) {
2632
2632
  return fetch(tafBaseUrl + "/taflist", {
@@ -4202,7 +4202,7 @@ var TafFormTextField = function TafFormTextField(_ref3) {
4202
4202
  onBlur();
4203
4203
  }, [onBlur, name, setValue, shouldPreventUppercase]);
4204
4204
  var hasError = !!fieldErrors;
4205
- return jsx(Grid2, {
4205
+ return jsx(Grid, {
4206
4206
  sx: {
4207
4207
  width: 100 / 13 + "%",
4208
4208
  minWidth: 60
@@ -4482,7 +4482,7 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
4482
4482
  var clearRow = React__default.useCallback(function () {
4483
4483
  onClearRow(index);
4484
4484
  }, [onClearRow, index]);
4485
- return jsxs(Grid2, Object.assign({
4485
+ return jsxs(Grid, Object.assign({
4486
4486
  "data-testid": "row-" + namePrefix,
4487
4487
  container: true,
4488
4488
  ref: ref
@@ -4508,7 +4508,7 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
4508
4508
  opacity: 0.5
4509
4509
  }
4510
4510
  }].concat(Array.isArray(props.sx) ? props.sx : [props.sx]),
4511
- children: [jsxs(Grid2, {
4511
+ children: [jsxs(Grid, {
4512
4512
  container: true,
4513
4513
  size: "grow",
4514
4514
  sx: {
@@ -4779,7 +4779,7 @@ var TafFormRow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
4779
4779
  }
4780
4780
  }
4781
4781
  })]
4782
- }), !disabled && jsx(Grid2, {
4782
+ }), !disabled && jsx(Grid, {
4783
4783
  container: true,
4784
4784
  sx: {
4785
4785
  justifyContent: 'flex-end',
@@ -5324,7 +5324,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
5324
5324
  isNotRequiredForAction: isNotRequiredForAction
5325
5325
  }, item.id);
5326
5326
  })
5327
- }), !isDisabled && isEditor && jsx(Grid2, {
5327
+ }), !isDisabled && isEditor && jsx(Grid, {
5328
5328
  container: true,
5329
5329
  sx: {
5330
5330
  justifyContent: 'space-between',
@@ -5332,7 +5332,7 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
5332
5332
  marginLeft: 1.5,
5333
5333
  marginTop: 1
5334
5334
  },
5335
- children: jsx(Grid2, {
5335
+ children: jsx(Grid, {
5336
5336
  children: jsx(IssuesButton, {
5337
5337
  errors: errors,
5338
5338
  isIssuesPaneOpen: isIssuesPaneOpen,
@@ -6533,14 +6533,14 @@ var TafLayout = function TafLayout(_ref) {
6533
6533
  display: 'flex',
6534
6534
  flexDirection: 'column'
6535
6535
  },
6536
- children: [jsxs(Grid2, {
6536
+ children: [jsxs(Grid, {
6537
6537
  container: true,
6538
6538
  spacing: 2,
6539
6539
  sx: {
6540
6540
  paddingLeft: 1,
6541
6541
  paddingRight: 1
6542
6542
  },
6543
- children: [jsx(Grid2, {
6543
+ children: [jsx(Grid, {
6544
6544
  size: {
6545
6545
  xs: 12,
6546
6546
  sm: 9
@@ -6550,7 +6550,7 @@ var TafLayout = function TafLayout(_ref) {
6550
6550
  timeSlot: timeSlot,
6551
6551
  onChangeTimeSlot: onChangeTimeSlot
6552
6552
  })
6553
- }), jsx(Grid2, {
6553
+ }), jsx(Grid, {
6554
6554
  size: {
6555
6555
  xs: 12,
6556
6556
  sm: 3
@@ -6561,13 +6561,13 @@ var TafLayout = function TafLayout(_ref) {
6561
6561
  dataTestId: "lastupdated-time"
6562
6562
  })
6563
6563
  })]
6564
- }), jsx(Grid2, {
6564
+ }), jsx(Grid, {
6565
6565
  container: true,
6566
6566
  sx: {
6567
6567
  flexGrow: 1,
6568
6568
  overflow: 'hidden'
6569
6569
  },
6570
- children: jsxs(Grid2, {
6570
+ children: jsxs(Grid, {
6571
6571
  container: true,
6572
6572
  spacing: 2,
6573
6573
  sx: {
@@ -6577,7 +6577,7 @@ var TafLayout = function TafLayout(_ref) {
6577
6577
  paddingTop: 2,
6578
6578
  overflow: 'auto'
6579
6579
  },
6580
- children: [jsx(Grid2, {
6580
+ children: [jsx(Grid, {
6581
6581
  size: {
6582
6582
  xs: 3,
6583
6583
  sm: 1
@@ -6588,7 +6588,7 @@ var TafLayout = function TafLayout(_ref) {
6588
6588
  onChangeTab: onChangeLocationTab,
6589
6589
  timeSlot: timeSlot
6590
6590
  })
6591
- }), jsx(Grid2, {
6591
+ }), jsx(Grid, {
6592
6592
  size: "grow",
6593
6593
  children: jsxs(Card, {
6594
6594
  variant: "outlined",
@@ -6622,7 +6622,7 @@ var TafLayout = function TafLayout(_ref) {
6622
6622
  }, tafFromBackend.taf.uuid);
6623
6623
  })]
6624
6624
  })
6625
- }), jsxs(Grid2, {
6625
+ }), jsxs(Grid, {
6626
6626
  size: {
6627
6627
  xs: 0,
6628
6628
  sm: 3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "12.2.0",
3
+ "version": "12.4.1",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,22 +8,22 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "12.2.0",
12
- "@opengeoweb/shared": "12.2.0",
11
+ "@opengeoweb/api": "12.4.1",
12
+ "@opengeoweb/shared": "12.4.1",
13
13
  "react-hook-form": "^7.50.1",
14
- "@opengeoweb/theme": "12.2.0",
15
- "@opengeoweb/form-fields": "12.2.0",
16
- "@opengeoweb/authentication": "12.2.0",
17
- "@reduxjs/toolkit": "^1.9.7",
18
- "react-redux": "^8.1.3",
19
- "@opengeoweb/snackbar": "12.2.0",
14
+ "@opengeoweb/theme": "12.4.1",
15
+ "@opengeoweb/form-fields": "12.4.1",
16
+ "@opengeoweb/authentication": "12.4.1",
17
+ "@reduxjs/toolkit": "^2.6.1",
18
+ "react-redux": "^9.2.0",
19
+ "@opengeoweb/snackbar": "12.4.1",
20
20
  "react-sortablejs": "^6.1.4",
21
21
  "sortablejs": "^1.15.1",
22
22
  "@emotion/react": "^11.11.1",
23
23
  "lodash": "^4.17.21",
24
24
  "axios": "^1.7.7",
25
- "i18next": "^23.11.5",
26
- "@mui/material": "^6.1.1",
25
+ "i18next": "^25.0.1",
26
+ "@mui/material": "^7.0.1",
27
27
  "react-i18next": "^15.1.1",
28
28
  "@tanstack/react-query": "^5.69.2"
29
29
  },
@@ -2,8 +2,6 @@ import * as React from 'react';
2
2
  import { Theme } from '@mui/material';
3
3
  import { Store } from '@reduxjs/toolkit';
4
4
  import { UseFormProps } from 'react-hook-form';
5
- import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
6
- export declare const createTestTafStore: () => ToolkitStore;
7
5
  export interface TafThemeApiProviderProps {
8
6
  children: React.ReactNode;
9
7
  theme?: Theme;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Grid2Props } from '@mui/material';
2
+ import { GridProps } from '@mui/material';
3
3
  import { FieldValues } from 'react-hook-form';
4
- export interface TafFormRowProps extends Grid2Props {
4
+ export interface TafFormRowProps extends GridProps {
5
5
  isNotRequiredForAction: (value: string) => boolean | string;
6
6
  isChangeGroup?: boolean;
7
7
  disabled?: boolean;
@@ -1,3 +1 @@
1
- import { ConfigureStoreOptions, ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
2
1
  export declare const getCurrentUrlLocation: (url: string, appUrl: string) => string;
3
- export declare const createTafTestStore: (preloadedState?: ConfigureStoreOptions['preloadedState']) => ToolkitStore;