@opengeoweb/sigmet-airmet 8.3.0 → 8.3.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.
Files changed (2) hide show
  1. package/index.esm.js +118 -95
  2. package/package.json +14 -14
package/index.esm.js CHANGED
@@ -4053,12 +4053,12 @@ function getContext() {
4053
4053
 
4054
4054
  const ReactReduxContext = /*#__PURE__*/getContext();
4055
4055
 
4056
- /**
4057
- * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
4058
- * hook that you should usually not need to call directly.
4059
- *
4060
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4061
- * @returns {Function} A `useReduxContext` hook bound to the specified context.
4056
+ /**
4057
+ * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
4058
+ * hook that you should usually not need to call directly.
4059
+ *
4060
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4061
+ * @returns {Function} A `useReduxContext` hook bound to the specified context.
4062
4062
  */
4063
4063
  function createReduxContextHook(context = ReactReduxContext) {
4064
4064
  return function useReduxContext() {
@@ -4071,21 +4071,21 @@ function createReduxContextHook(context = ReactReduxContext) {
4071
4071
  return contextValue;
4072
4072
  };
4073
4073
  }
4074
- /**
4075
- * A hook to access the value of the `ReactReduxContext`. This is a low-level
4076
- * hook that you should usually not need to call directly.
4077
- *
4078
- * @returns {any} the value of the `ReactReduxContext`
4079
- *
4080
- * @example
4081
- *
4082
- * import React from 'react'
4083
- * import { useReduxContext } from 'react-redux'
4084
- *
4085
- * export const CounterComponent = () => {
4086
- * const { store } = useReduxContext()
4087
- * return <div>{store.getState()}</div>
4088
- * }
4074
+ /**
4075
+ * A hook to access the value of the `ReactReduxContext`. This is a low-level
4076
+ * hook that you should usually not need to call directly.
4077
+ *
4078
+ * @returns {any} the value of the `ReactReduxContext`
4079
+ *
4080
+ * @example
4081
+ *
4082
+ * import React from 'react'
4083
+ * import { useReduxContext } from 'react-redux'
4084
+ *
4085
+ * export const CounterComponent = () => {
4086
+ * const { store } = useReduxContext()
4087
+ * return <div>{store.getState()}</div>
4088
+ * }
4089
4089
  */
4090
4090
 
4091
4091
  const useReduxContext = /*#__PURE__*/createReduxContextHook();
@@ -4100,11 +4100,11 @@ const initializeUseSelector = fn => {
4100
4100
  };
4101
4101
 
4102
4102
  const refEquality = (a, b) => a === b;
4103
- /**
4104
- * Hook factory, which creates a `useSelector` hook bound to a given context.
4105
- *
4106
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4107
- * @returns {Function} A `useSelector` hook bound to the specified context.
4103
+ /**
4104
+ * Hook factory, which creates a `useSelector` hook bound to a given context.
4105
+ *
4106
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4107
+ * @returns {Function} A `useSelector` hook bound to the specified context.
4108
4108
  */
4109
4109
 
4110
4110
 
@@ -4152,10 +4152,21 @@ function createSelectorHook(context = ReactReduxContext) {
4152
4152
  const toCompare = selector(state);
4153
4153
 
4154
4154
  if (!equalityFn(selected, toCompare)) {
4155
+ let stack = undefined;
4156
+
4157
+ try {
4158
+ throw new Error();
4159
+ } catch (e) {
4160
+ ({
4161
+ stack
4162
+ } = e);
4163
+ }
4164
+
4155
4165
  console.warn('Selector ' + (selector.name || 'unknown') + ' returned a different result when called with the same parameters. This can lead to unnecessary rerenders.' + '\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization', {
4156
4166
  state,
4157
4167
  selected,
4158
- selected2: toCompare
4168
+ selected2: toCompare,
4169
+ stack
4159
4170
  });
4160
4171
  }
4161
4172
  }
@@ -4165,7 +4176,19 @@ function createSelectorHook(context = ReactReduxContext) {
4165
4176
  if (finalNoopCheck === 'always' || finalNoopCheck === 'once' && firstRun.current) {
4166
4177
  // @ts-ignore
4167
4178
  if (selected === state) {
4168
- console.warn('Selector ' + (selector.name || 'unknown') + ' returned the root state when called. This can lead to unnecessary rerenders.' + '\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.');
4179
+ let stack = undefined;
4180
+
4181
+ try {
4182
+ throw new Error();
4183
+ } catch (e) {
4184
+ ({
4185
+ stack
4186
+ } = e);
4187
+ }
4188
+
4189
+ console.warn('Selector ' + (selector.name || 'unknown') + ' returned the root state when called. This can lead to unnecessary rerenders.' + '\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.', {
4190
+ stack
4191
+ });
4169
4192
  }
4170
4193
  }
4171
4194
 
@@ -4181,28 +4204,28 @@ function createSelectorHook(context = ReactReduxContext) {
4181
4204
  return selectedState;
4182
4205
  };
4183
4206
  }
4184
- /**
4185
- * A hook to access the redux store's state. This hook takes a selector function
4186
- * as an argument. The selector is called with the store state.
4187
- *
4188
- * This hook takes an optional equality comparison function as the second parameter
4189
- * that allows you to customize the way the selected state is compared to determine
4190
- * whether the component needs to be re-rendered.
4191
- *
4192
- * @param {Function} selector the selector function
4193
- * @param {Function=} equalityFn the function that will be used to determine equality
4194
- *
4195
- * @returns {any} the selected state
4196
- *
4197
- * @example
4198
- *
4199
- * import React from 'react'
4200
- * import { useSelector } from 'react-redux'
4201
- *
4202
- * export const CounterComponent = () => {
4203
- * const counter = useSelector(state => state.counter)
4204
- * return <div>{counter}</div>
4205
- * }
4207
+ /**
4208
+ * A hook to access the redux store's state. This hook takes a selector function
4209
+ * as an argument. The selector is called with the store state.
4210
+ *
4211
+ * This hook takes an optional equality comparison function as the second parameter
4212
+ * that allows you to customize the way the selected state is compared to determine
4213
+ * whether the component needs to be re-rendered.
4214
+ *
4215
+ * @param {Function} selector the selector function
4216
+ * @param {Function=} equalityFn the function that will be used to determine equality
4217
+ *
4218
+ * @returns {any} the selected state
4219
+ *
4220
+ * @example
4221
+ *
4222
+ * import React from 'react'
4223
+ * import { useSelector } from 'react-redux'
4224
+ *
4225
+ * export const CounterComponent = () => {
4226
+ * const counter = useSelector(state => state.counter)
4227
+ * return <div>{counter}</div>
4228
+ * }
4206
4229
  */
4207
4230
 
4208
4231
  const useSelector = /*#__PURE__*/createSelectorHook();
@@ -4729,11 +4752,11 @@ function shallowEqual(objA, objB) {
4729
4752
  return true;
4730
4753
  }
4731
4754
 
4732
- /**
4733
- * Hook factory, which creates a `useStore` hook bound to a given context.
4734
- *
4735
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4736
- * @returns {Function} A `useStore` hook bound to the specified context.
4755
+ /**
4756
+ * Hook factory, which creates a `useStore` hook bound to a given context.
4757
+ *
4758
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4759
+ * @returns {Function} A `useStore` hook bound to the specified context.
4737
4760
  */
4738
4761
 
4739
4762
  function createStoreHook(context = ReactReduxContext) {
@@ -4748,29 +4771,29 @@ function createStoreHook(context = ReactReduxContext) {
4748
4771
  return store;
4749
4772
  };
4750
4773
  }
4751
- /**
4752
- * A hook to access the redux store.
4753
- *
4754
- * @returns {any} the redux store
4755
- *
4756
- * @example
4757
- *
4758
- * import React from 'react'
4759
- * import { useStore } from 'react-redux'
4760
- *
4761
- * export const ExampleComponent = () => {
4762
- * const store = useStore()
4763
- * return <div>{store.getState()}</div>
4764
- * }
4774
+ /**
4775
+ * A hook to access the redux store.
4776
+ *
4777
+ * @returns {any} the redux store
4778
+ *
4779
+ * @example
4780
+ *
4781
+ * import React from 'react'
4782
+ * import { useStore } from 'react-redux'
4783
+ *
4784
+ * export const ExampleComponent = () => {
4785
+ * const store = useStore()
4786
+ * return <div>{store.getState()}</div>
4787
+ * }
4765
4788
  */
4766
4789
 
4767
4790
  const useStore = /*#__PURE__*/createStoreHook();
4768
4791
 
4769
- /**
4770
- * Hook factory, which creates a `useDispatch` hook bound to a given context.
4771
- *
4772
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4773
- * @returns {Function} A `useDispatch` hook bound to the specified context.
4792
+ /**
4793
+ * Hook factory, which creates a `useDispatch` hook bound to a given context.
4794
+ *
4795
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4796
+ * @returns {Function} A `useDispatch` hook bound to the specified context.
4774
4797
  */
4775
4798
 
4776
4799
  function createDispatchHook(context = ReactReduxContext) {
@@ -4782,26 +4805,26 @@ function createDispatchHook(context = ReactReduxContext) {
4782
4805
  return store.dispatch;
4783
4806
  };
4784
4807
  }
4785
- /**
4786
- * A hook to access the redux `dispatch` function.
4787
- *
4788
- * @returns {any|function} redux store's `dispatch` function
4789
- *
4790
- * @example
4791
- *
4792
- * import React, { useCallback } from 'react'
4793
- * import { useDispatch } from 'react-redux'
4794
- *
4795
- * export const CounterComponent = ({ value }) => {
4796
- * const dispatch = useDispatch()
4797
- * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
4798
- * return (
4799
- * <div>
4800
- * <span>{value}</span>
4801
- * <button onClick={increaseCounter}>Increase counter</button>
4802
- * </div>
4803
- * )
4804
- * }
4808
+ /**
4809
+ * A hook to access the redux `dispatch` function.
4810
+ *
4811
+ * @returns {any|function} redux store's `dispatch` function
4812
+ *
4813
+ * @example
4814
+ *
4815
+ * import React, { useCallback } from 'react'
4816
+ * import { useDispatch } from 'react-redux'
4817
+ *
4818
+ * export const CounterComponent = ({ value }) => {
4819
+ * const dispatch = useDispatch()
4820
+ * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
4821
+ * return (
4822
+ * <div>
4823
+ * <span>{value}</span>
4824
+ * <button onClick={increaseCounter}>Increase counter</button>
4825
+ * </div>
4826
+ * )
4827
+ * }
4805
4828
  */
4806
4829
 
4807
4830
  const useDispatch = /*#__PURE__*/createDispatchHook();
@@ -12583,7 +12606,7 @@ tags.forEach(function (tagName) {
12583
12606
  });
12584
12607
 
12585
12608
  /**
12586
- * @mui/styled-engine v5.14.10
12609
+ * @mui/styled-engine v5.14.14
12587
12610
  *
12588
12611
  * @license MIT
12589
12612
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "8.3.0",
3
+ "version": "8.3.1",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,27 +12,27 @@
12
12
  "main": "./index.esm.js",
13
13
  "dependencies": {
14
14
  "@mui/material": "5.12.0",
15
- "@mui/system": "5.14.10",
16
- "@opengeoweb/api": "8.3.0",
17
- "@opengeoweb/authentication": "8.3.0",
18
- "@opengeoweb/core": "8.3.0",
19
- "@opengeoweb/form-fields": "8.3.0",
20
- "@opengeoweb/shared": "8.3.0",
21
- "@opengeoweb/store": "8.3.0",
22
- "@opengeoweb/theme": "8.3.0",
23
- "@opengeoweb/webmap": "8.3.0",
24
- "@opengeoweb/webmap-react": "8.3.0",
15
+ "@mui/system": "5.14.14",
16
+ "@opengeoweb/api": "8.3.1",
17
+ "@opengeoweb/authentication": "8.3.1",
18
+ "@opengeoweb/core": "8.3.1",
19
+ "@opengeoweb/form-fields": "8.3.1",
20
+ "@opengeoweb/shared": "8.3.1",
21
+ "@opengeoweb/store": "8.3.1",
22
+ "@opengeoweb/theme": "8.3.1",
23
+ "@opengeoweb/webmap": "8.3.1",
24
+ "@opengeoweb/webmap-react": "8.3.1",
25
25
  "@redux-eggs/redux-toolkit": "2.2.0",
26
26
  "@redux-eggs/saga-extension": "2.2.0",
27
- "@reduxjs/toolkit": "1.9.5",
27
+ "@reduxjs/toolkit": "1.9.7",
28
28
  "@turf/turf": "6.5.0",
29
29
  "axios": "1.5.0",
30
30
  "immer": "9.0.21",
31
31
  "lodash": "4.17.21",
32
32
  "moment": "2.29.4",
33
33
  "react": "18.2.0",
34
- "react-hook-form": "7.46.2",
35
- "react-redux": "8.1.2"
34
+ "react-hook-form": "7.47.0",
35
+ "react-redux": "8.1.3"
36
36
  },
37
37
  "peerDependencies": {}
38
38
  }