@opengeoweb/store 12.4.1 → 12.5.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
@@ -4555,7 +4555,7 @@ var selectLinkedState = createSelector(synchronizationGroupStore, function (sync
4555
4555
  var getLinkedMaps = createSelector([selectLinkedState, function (store, panelId) {
4556
4556
  return panelId;
4557
4557
  }], function (linkedState, panelId) {
4558
- return linkedState.links[panelId] || [];
4558
+ return panelId && linkedState.links[panelId] || [];
4559
4559
  }, selectorMemoizationOptions);
4560
4560
  var getLinkedFeatureProviders = function getLinkedFeatureProviders(linkedState, mapId) {
4561
4561
  return linkedState ? Object.keys(linkedState.links).filter(function (panelId) {
@@ -4569,7 +4569,7 @@ var selectSharedData = createSelector([selectLinkedState, function (store, panel
4569
4569
  }], function (linkedState, panelId) {
4570
4570
  var sharedDataForPanel = linkedState.sharedData[panelId];
4571
4571
  return sharedDataForPanel || {};
4572
- });
4572
+ }, selectorMemoizationOptions);
4573
4573
  var selectLinkedPanelId = createSelector([selectLinkedState, function (_, mapViewId) {
4574
4574
  return mapViewId;
4575
4575
  }], function (linkedState, mapViewId) {
@@ -4700,8 +4700,8 @@ var useUpdateSharedData = function useUpdateSharedData(data, panelId) {
4700
4700
  var sharedData = useSelector(function (state) {
4701
4701
  return selectSharedData(state, panelId);
4702
4702
  });
4703
- var linkedMaps = useSelector(function (store) {
4704
- return getLinkedMaps(store, panelId);
4703
+ var linkedMaps = useSelector(function (state) {
4704
+ return getLinkedMaps(state, panelId);
4705
4705
  });
4706
4706
  var dispatch = useDispatch();
4707
4707
  useEffect(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "12.4.1",
3
+ "version": "12.5.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,15 +8,15 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/shared": "12.4.1",
11
+ "@opengeoweb/shared": "12.5.0",
12
12
  "react-redux": "^9.2.0",
13
13
  "@reduxjs/toolkit": "^2.6.1",
14
- "@opengeoweb/webmap-react": "12.4.1",
15
- "@opengeoweb/webmap": "12.4.1",
14
+ "@opengeoweb/webmap-react": "12.5.0",
15
+ "@opengeoweb/webmap": "12.5.0",
16
16
  "immer": "^10.0.3",
17
17
  "lodash": "^4.17.21",
18
- "@opengeoweb/metronome": "12.4.1",
19
- "@opengeoweb/timeslider": "12.4.1",
18
+ "@opengeoweb/metronome": "12.5.0",
19
+ "@opengeoweb/timeslider": "12.5.0",
20
20
  "react-router-dom": "^6.23.1",
21
21
  "ol": "^10.4.0",
22
22
  "@turf/turf": "^7.2.0"
@@ -42,13 +42,13 @@ export declare const getTime: ((state: SynchronizationGroupState, id: string) =>
42
42
  memoize: typeof import("reselect").weakMapMemoize;
43
43
  argsMemoize: typeof import("reselect").weakMapMemoize;
44
44
  };
45
- export declare const getLinkedMaps: ((state: any, panelId: string) => string[]) & {
45
+ export declare const getLinkedMaps: ((state: any, panelId?: string | undefined) => string[]) & {
46
46
  clearCache: () => void;
47
47
  resultsCount: () => number;
48
48
  resetResultsCount: () => void;
49
49
  } & {
50
- resultFunc: (resultFuncArgs_0: LinkedState, resultFuncArgs_1: string) => string[];
51
- memoizedResultFunc: ((resultFuncArgs_0: LinkedState, resultFuncArgs_1: string) => string[]) & {
50
+ resultFunc: (resultFuncArgs_0: LinkedState, resultFuncArgs_1: string | undefined) => string[];
51
+ memoizedResultFunc: ((resultFuncArgs_0: LinkedState, resultFuncArgs_1: string | undefined) => string[]) & {
52
52
  clearCache: () => void;
53
53
  resultsCount: () => number;
54
54
  resetResultsCount: () => void;
@@ -74,7 +74,7 @@ export declare const getLinkedMaps: ((state: any, panelId: string) => string[])
74
74
  } & {
75
75
  memoize: typeof import("reselect").weakMapMemoize;
76
76
  argsMemoize: typeof import("reselect").weakMapMemoize;
77
- }, (store: any, panelId: string) => string];
77
+ }, (store: any, panelId?: string) => string | undefined];
78
78
  recomputations: () => number;
79
79
  resetRecomputations: () => void;
80
80
  dependencyRecomputations: () => number;