@opengeoweb/taf 8.3.0 → 8.4.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 (2) hide show
  1. package/index.esm.js +73 -68
  2. package/package.json +13 -11
package/index.esm.js CHANGED
@@ -929,12 +929,12 @@ function getContext() {
929
929
 
930
930
  const ReactReduxContext = /*#__PURE__*/getContext();
931
931
 
932
- /**
933
- * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
934
- * hook that you should usually not need to call directly.
935
- *
936
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
937
- * @returns {Function} A `useReduxContext` hook bound to the specified context.
932
+ /**
933
+ * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
934
+ * hook that you should usually not need to call directly.
935
+ *
936
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
937
+ * @returns {Function} A `useReduxContext` hook bound to the specified context.
938
938
  */
939
939
  function createReduxContextHook(context = ReactReduxContext) {
940
940
  return function useReduxContext() {
@@ -947,21 +947,21 @@ function createReduxContextHook(context = ReactReduxContext) {
947
947
  return contextValue;
948
948
  };
949
949
  }
950
- /**
951
- * A hook to access the value of the `ReactReduxContext`. This is a low-level
952
- * hook that you should usually not need to call directly.
953
- *
954
- * @returns {any} the value of the `ReactReduxContext`
955
- *
956
- * @example
957
- *
958
- * import React from 'react'
959
- * import { useReduxContext } from 'react-redux'
960
- *
961
- * export const CounterComponent = () => {
962
- * const { store } = useReduxContext()
963
- * return <div>{store.getState()}</div>
964
- * }
950
+ /**
951
+ * A hook to access the value of the `ReactReduxContext`. This is a low-level
952
+ * hook that you should usually not need to call directly.
953
+ *
954
+ * @returns {any} the value of the `ReactReduxContext`
955
+ *
956
+ * @example
957
+ *
958
+ * import React from 'react'
959
+ * import { useReduxContext } from 'react-redux'
960
+ *
961
+ * export const CounterComponent = () => {
962
+ * const { store } = useReduxContext()
963
+ * return <div>{store.getState()}</div>
964
+ * }
965
965
  */
966
966
 
967
967
  const useReduxContext = /*#__PURE__*/createReduxContextHook();
@@ -1432,11 +1432,11 @@ reactIs_development.typeOf = typeOf;
1432
1432
 
1433
1433
  if (process.env.NODE_ENV === 'production') ;
1434
1434
 
1435
- /**
1436
- * Hook factory, which creates a `useStore` hook bound to a given context.
1437
- *
1438
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1439
- * @returns {Function} A `useStore` hook bound to the specified context.
1435
+ /**
1436
+ * Hook factory, which creates a `useStore` hook bound to a given context.
1437
+ *
1438
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1439
+ * @returns {Function} A `useStore` hook bound to the specified context.
1440
1440
  */
1441
1441
 
1442
1442
  function createStoreHook(context = ReactReduxContext) {
@@ -1451,29 +1451,29 @@ function createStoreHook(context = ReactReduxContext) {
1451
1451
  return store;
1452
1452
  };
1453
1453
  }
1454
- /**
1455
- * A hook to access the redux store.
1456
- *
1457
- * @returns {any} the redux store
1458
- *
1459
- * @example
1460
- *
1461
- * import React from 'react'
1462
- * import { useStore } from 'react-redux'
1463
- *
1464
- * export const ExampleComponent = () => {
1465
- * const store = useStore()
1466
- * return <div>{store.getState()}</div>
1467
- * }
1454
+ /**
1455
+ * A hook to access the redux store.
1456
+ *
1457
+ * @returns {any} the redux store
1458
+ *
1459
+ * @example
1460
+ *
1461
+ * import React from 'react'
1462
+ * import { useStore } from 'react-redux'
1463
+ *
1464
+ * export const ExampleComponent = () => {
1465
+ * const store = useStore()
1466
+ * return <div>{store.getState()}</div>
1467
+ * }
1468
1468
  */
1469
1469
 
1470
1470
  const useStore = /*#__PURE__*/createStoreHook();
1471
1471
 
1472
- /**
1473
- * Hook factory, which creates a `useDispatch` hook bound to a given context.
1474
- *
1475
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1476
- * @returns {Function} A `useDispatch` hook bound to the specified context.
1472
+ /**
1473
+ * Hook factory, which creates a `useDispatch` hook bound to a given context.
1474
+ *
1475
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1476
+ * @returns {Function} A `useDispatch` hook bound to the specified context.
1477
1477
  */
1478
1478
 
1479
1479
  function createDispatchHook(context = ReactReduxContext) {
@@ -1485,26 +1485,26 @@ function createDispatchHook(context = ReactReduxContext) {
1485
1485
  return store.dispatch;
1486
1486
  };
1487
1487
  }
1488
- /**
1489
- * A hook to access the redux `dispatch` function.
1490
- *
1491
- * @returns {any|function} redux store's `dispatch` function
1492
- *
1493
- * @example
1494
- *
1495
- * import React, { useCallback } from 'react'
1496
- * import { useDispatch } from 'react-redux'
1497
- *
1498
- * export const CounterComponent = ({ value }) => {
1499
- * const dispatch = useDispatch()
1500
- * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
1501
- * return (
1502
- * <div>
1503
- * <span>{value}</span>
1504
- * <button onClick={increaseCounter}>Increase counter</button>
1505
- * </div>
1506
- * )
1507
- * }
1488
+ /**
1489
+ * A hook to access the redux `dispatch` function.
1490
+ *
1491
+ * @returns {any|function} redux store's `dispatch` function
1492
+ *
1493
+ * @example
1494
+ *
1495
+ * import React, { useCallback } from 'react'
1496
+ * import { useDispatch } from 'react-redux'
1497
+ *
1498
+ * export const CounterComponent = ({ value }) => {
1499
+ * const dispatch = useDispatch()
1500
+ * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
1501
+ * return (
1502
+ * <div>
1503
+ * <span>{value}</span>
1504
+ * <button onClick={increaseCounter}>Increase counter</button>
1505
+ * </div>
1506
+ * )
1507
+ * }
1508
1508
  */
1509
1509
 
1510
1510
  const useDispatch = /*#__PURE__*/createDispatchHook();
@@ -32455,7 +32455,8 @@ var TafFormTextField = function TafFormTextField(_ref2) {
32455
32455
  },
32456
32456
  inputProps: {
32457
32457
  maxLength: maxLength,
32458
- className: 'inputText'
32458
+ className: 'inputText',
32459
+ 'aria-label': name
32459
32460
  },
32460
32461
  autoFocus: autoFocus,
32461
32462
  shouldPreventUppercase: shouldPreventUppercase
@@ -33548,7 +33549,8 @@ var TafForm = /*#__PURE__*/React__default.memo(function (_ref) {
33548
33549
  }), hiddenInputFields.map(function (field) {
33549
33550
  return /*#__PURE__*/React__default.createElement(ReactHookFormHiddenInput, {
33550
33551
  name: field,
33551
- key: field
33552
+ key: field,
33553
+ "data-testid": field
33552
33554
  });
33553
33555
  })));
33554
33556
  }, function (prevProps, nextProps) {
@@ -34004,7 +34006,9 @@ var TacContainer = function TacContainer(_ref) {
34004
34006
  marginBottom: '20px'
34005
34007
  },
34006
34008
  "data-location": location,
34007
- className: isActive ? 'active' : undefined
34009
+ className: isActive ? 'active' : undefined,
34010
+ role: "listitem",
34011
+ "aria-label": location
34008
34012
  }, /*#__PURE__*/React__default.createElement(Box, {
34009
34013
  sx: {
34010
34014
  display: 'flex',
@@ -35176,6 +35180,7 @@ var TafModule = function TafModule() {
35176
35180
  return /*#__PURE__*/React.createElement(ResponsiveWrapper, null, /*#__PURE__*/React.createElement(Box, {
35177
35181
  component: "div",
35178
35182
  id: "tafmodule",
35183
+ "data-testid": "tafmodule",
35179
35184
  sx: {
35180
35185
  height: '100%'
35181
35186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "8.3.0",
3
+ "version": "8.4.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,21 +14,23 @@
14
14
  "peerDependencies": {
15
15
  "@emotion/react": "11.11.1",
16
16
  "@mui/material": "5.12.0",
17
- "@opengeoweb/api": "8.3.0",
18
- "@opengeoweb/authentication": "8.3.0",
19
- "@opengeoweb/core": "8.3.0",
20
- "@opengeoweb/form-fields": "8.3.0",
21
- "@opengeoweb/shared": "8.3.0",
22
- "@opengeoweb/store": "8.3.0",
23
- "@opengeoweb/theme": "8.3.0",
24
- "@reduxjs/toolkit": "1.9.5",
17
+ "@opengeoweb/api": "8.4.0",
18
+ "@opengeoweb/authentication": "8.4.0",
19
+ "@opengeoweb/core": "8.4.0",
20
+ "@opengeoweb/form-fields": "8.4.0",
21
+ "@opengeoweb/shared": "8.4.0",
22
+ "@opengeoweb/store": "8.4.0",
23
+ "@opengeoweb/theme": "8.4.0",
24
+ "@redux-eggs/redux-toolkit": "2.2.0",
25
+ "@redux-eggs/saga-extension": "2.2.0",
26
+ "@reduxjs/toolkit": "1.9.7",
25
27
  "axios": "1.5.0",
26
28
  "lodash": "4.17.21",
27
29
  "moment": "2.29.4",
28
30
  "react": "18.2.0",
29
31
  "react-dom": "18.2.0",
30
- "react-hook-form": "7.46.2",
31
- "react-redux": "8.1.2",
32
+ "react-hook-form": "7.47.0",
33
+ "react-redux": "8.1.3",
32
34
  "react-sortablejs": "6.1.4",
33
35
  "sortablejs": "1.15.0"
34
36
  }