@mapsight/lib-redux 2.0.3 → 2.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.
Files changed (70) hide show
  1. package/dist/clone-action.d.ts +1 -1
  2. package/dist/clone-action.d.ts.map +1 -1
  3. package/dist/combine-sub-path-reducers.d.ts +6 -4
  4. package/dist/combine-sub-path-reducers.d.ts.map +1 -1
  5. package/dist/combine-sub-path-reducers.js +1 -1
  6. package/dist/combine-sub-path-reducers.js.map +1 -1
  7. package/dist/create-filtered-reducer-for-path.d.ts +1 -1
  8. package/dist/create-filtered-reducer-for-path.d.ts.map +1 -1
  9. package/dist/create-immutable-path-reducer.d.ts +1 -1
  10. package/dist/create-immutable-path-reducer.d.ts.map +1 -1
  11. package/dist/create-immutable-path-reducer.js.map +1 -1
  12. package/dist/create-prefixed-async-action-middleware.d.ts +1 -1
  13. package/dist/create-prefixed-async-action-middleware.d.ts.map +1 -1
  14. package/dist/create-prefixed-async-action-middleware.js +17 -3
  15. package/dist/create-prefixed-async-action-middleware.js.map +1 -1
  16. package/dist/createSelectorUsingOwnProps.d.ts +1 -1
  17. package/dist/createSelectorUsingOwnProps.js +1 -1
  18. package/dist/enable-async-dispatch.d.ts +1 -1
  19. package/dist/enable-async-dispatch.d.ts.map +1 -1
  20. package/dist/enable-controlled-dispatch-and-observe.d.ts +1 -1
  21. package/dist/enable-controlled-dispatch-and-observe.d.ts.map +1 -1
  22. package/dist/enable-initialization.d.ts +1 -1
  23. package/dist/enable-initialization.d.ts.map +1 -1
  24. package/dist/flatten-actions.d.ts +1 -1
  25. package/dist/flatten-actions.d.ts.map +1 -1
  26. package/dist/local-storage.d.ts +1 -1
  27. package/dist/local-storage.d.ts.map +1 -1
  28. package/dist/local-storage.js.map +1 -1
  29. package/dist/observe-state.d.ts +4 -4
  30. package/dist/observe-state.d.ts.map +1 -1
  31. package/dist/package.json +5 -9
  32. package/dist/reducers/immutable/add-to.d.ts +1 -1
  33. package/dist/reducers/immutable/add-to.d.ts.map +1 -1
  34. package/dist/reducers/immutable/index.d.ts +1 -1
  35. package/dist/reducers/immutable/index.d.ts.map +1 -1
  36. package/dist/reducers/immutable/merge.d.ts +1 -1
  37. package/dist/reducers/immutable/merge.d.ts.map +1 -1
  38. package/dist/reducers/immutable/merge.js.map +1 -1
  39. package/dist/reducers/immutable/noop.d.ts +1 -1
  40. package/dist/reducers/immutable/noop.d.ts.map +1 -1
  41. package/dist/reducers/immutable/remove-from.d.ts +1 -1
  42. package/dist/reducers/immutable/remove-from.d.ts.map +1 -1
  43. package/dist/reducers/immutable/set.d.ts +1 -1
  44. package/dist/reducers/immutable/set.d.ts.map +1 -1
  45. package/dist/reducers/immutable-path/add-to.d.ts +1 -1
  46. package/dist/reducers/immutable-path/index.d.ts +1 -1
  47. package/dist/reducers/immutable-path/index.d.ts.map +1 -1
  48. package/dist/reducers/immutable-path/merge.d.ts +1 -1
  49. package/dist/reducers/immutable-path/remove-from.d.ts +1 -1
  50. package/dist/reducers/immutable-path/set.d.ts +1 -1
  51. package/package.json +4 -8
  52. package/src/js/clone-action.ts +1 -1
  53. package/src/js/combine-sub-path-reducers.ts +2 -1
  54. package/src/js/create-filtered-reducer-for-path.ts +1 -1
  55. package/src/js/create-immutable-path-reducer.ts +1 -1
  56. package/src/js/create-prefixed-async-action-middleware.ts +8 -5
  57. package/src/js/createSelectorUsingOwnProps.ts +1 -1
  58. package/src/js/enable-async-dispatch.ts +1 -1
  59. package/src/js/enable-controlled-dispatch-and-observe.ts +1 -1
  60. package/src/js/enable-initialization.ts +1 -1
  61. package/src/js/flatten-actions.ts +1 -1
  62. package/src/js/local-storage.ts +1 -1
  63. package/src/js/observe-state.ts +1 -1
  64. package/src/js/reducers/immutable/add-to.ts +1 -1
  65. package/src/js/reducers/immutable/index.ts +1 -1
  66. package/src/js/reducers/immutable/merge.ts +1 -1
  67. package/src/js/reducers/immutable/noop.ts +1 -1
  68. package/src/js/reducers/immutable/remove-from.ts +1 -1
  69. package/src/js/reducers/immutable/set.ts +1 -1
  70. package/src/js/reducers/immutable-path/index.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { AnyAction } from "redux";
1
+ import type { AnyAction } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Creates a new action (object or function) with the same content but new reference.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"clone-action.d.ts","sourceRoot":"","sources":["../src/js/clone-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAMhC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAuB/D"}
1
+ {"version":3,"file":"clone-action.d.ts","sourceRoot":"","sources":["../src/js/clone-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAMhD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAuB/D"}
@@ -1,4 +1,4 @@
1
- import { AnyAction, Reducer } from "redux";
1
+ import type { AnyAction, Reducer } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Combines the given reducers, so they only get actions without a path or
4
4
  * a path matching the map key.
@@ -7,7 +7,9 @@ import { AnyAction, Reducer } from "redux";
7
7
  * @param pathKey key of the action parameter that contains the path array
8
8
  * @returns combined reducer
9
9
  */
10
- export default function combineSubPathReducers(reducerMap: Record<string, Reducer>, pathKey?: string): Reducer<import("redux").CombinedState<{
11
- [x: string]: /*elided*/ any;
12
- }>, AnyAction>;
10
+ export default function combineSubPathReducers(reducerMap: Record<string, Reducer>, pathKey?: string): Reducer<{
11
+ [x: string]: any;
12
+ }, AnyAction, Partial<{
13
+ [x: string]: unknown;
14
+ }>>;
13
15
  //# sourceMappingURL=combine-sub-path-reducers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combine-sub-path-reducers.d.ts","sourceRoot":"","sources":["../src/js/combine-sub-path-reducers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAkB,MAAM,OAAO,CAAC;AAI1D;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC7C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,SAAS;;eA6BhB"}
1
+ {"version":3,"file":"combine-sub-path-reducers.d.ts","sourceRoot":"","sources":["../src/js/combine-sub-path-reducers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAKzD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC7C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,SAAS;;;;IA6BhB"}
@@ -1,4 +1,4 @@
1
- import { combineReducers } from "redux";
1
+ import { combineReducers } from "@reduxjs/toolkit";
2
2
  import cloneAction from "./clone-action";
3
3
  /**
4
4
  * Combines the given reducers, so they only get actions without a path or
@@ -1 +1 @@
1
- {"version":3,"file":"combine-sub-path-reducers.js","sourceRoot":"","sources":["../src/js/combine-sub-path-reducers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAC,MAAM,OAAO,CAAC;AAE1D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC7C,UAAmC,EACnC,OAAO,GAAG,MAAM;IAEhB,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;QACzE,MAAM,cAAc,GAAG,CAAI,KAAQ,EAAE,MAAiB,EAAO,EAAE;YAC9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GAAG,CAAI,KAAQ,EAAE,MAAiB,EAAO,EAAE;YAC9D,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACrC,8GAA8G;gBAC9G,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAElC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;oBACxC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;wBACtB,OAAO,KAAK,CAAC;oBACd,CAAC;oBAED,MAAM,gBAAgB,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;oBAC7C,gBAAgB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;oBAE1C,+DAA+D;oBAC/D,OAAO,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;gBACzC,CAAC;YACF,CAAC;YAED,+DAA+D;YAC/D,OAAO,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC;QAEF,OAAO,CAAC,IAAI,EAAE,cAAc,CAAU,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC;AAC5D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Filters the actions, so the reducer only gets actions without a path or
4
4
  * a path matching the given key.
@@ -1 +1 @@
1
- {"version":3,"file":"create-filtered-reducer-for-path.d.ts","sourceRoot":"","sources":["../src/js/create-filtered-reducer-for-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAC,MAAM,OAAO,CAAC;AAIzC;;;;;;;;GAQG;AACH,iBAAS,4BAA4B,CACpC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,EACX,gBAAgB,SAAS,GACvB,OAAO,CAgCT;AAED,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"create-filtered-reducer-for-path.d.ts","sourceRoot":"","sources":["../src/js/create-filtered-reducer-for-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAIzD;;;;;;;;GAQG;AACH,iBAAS,4BAA4B,CACpC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,EACX,gBAAgB,SAAS,GACvB,OAAO,CAgCT;AAED,eAAe,4BAA4B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Creates a new reducer, that replaces an value at the given path using the given reducer,
4
4
  * replacing all parent objects, instead of mutating the existing object(s).
@@ -1 +1 @@
1
- {"version":3,"file":"create-immutable-path-reducer.d.ts","sourceRoot":"","sources":["../src/js/create-immutable-path-reducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,OAAO,EAAC,MAAM,OAAO,CAAC;AAIzC;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CACjD,OAAO,EAAE,OAAO,EAChB,OAAO,SAAS,GACd,OAAO,CAsBT"}
1
+ {"version":3,"file":"create-immutable-path-reducer.d.ts","sourceRoot":"","sources":["../src/js/create-immutable-path-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAKzD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CACjD,OAAO,EAAE,OAAO,EAChB,OAAO,SAAS,GACd,OAAO,CAsBT"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-immutable-path-reducer.js","sourceRoot":"","sources":["../src/js/create-immutable-path-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAG7B,OAA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AAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAM,CAAC;QAChE,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAM,CAAC;QAChD,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC3B,OAAO,KAAK,CAAC;QACd,CAAC;QAED,OAAO,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAC;IAEF,qBAAqB;IACrB,oGAAoG;IACpG,GAAG;IAEH,OAAO,oBAAoB,CAAC;AAC7B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { Middleware } from "@reduxjs/toolkit";
1
2
  /**
2
3
  * Creates a redux middleware that allows dispatching of functions as actions, when the action
3
4
  * exposes the defined actionFlag. If a prefix is provided, the action function will receive a
@@ -11,6 +12,5 @@
11
12
  *
12
13
  * @returns {function(*=): function(*): Function} resulting middleware
13
14
  */
14
- import { Middleware } from "redux";
15
15
  export default function createPrefixedAsyncActionMiddleware<Prefix extends string | undefined>(actionFlag?: string, prefix?: Prefix, extraArgument?: unknown): Middleware;
16
16
  //# sourceMappingURL=create-prefixed-async-action-middleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-prefixed-async-action-middleware.d.ts","sourceRoot":"","sources":["../src/js/create-prefixed-async-action-middleware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAC,UAAU,EAAgB,MAAM,OAAO,CAAC;AAEhD,MAAM,CAAC,OAAO,UAAU,mCAAmC,CAC1D,MAAM,SAAS,MAAM,GAAG,SAAS,EAEjC,UAAU,SAAY,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,aAAa,GAAE,OAAmB,GAChC,UAAU,CAyBZ"}
1
+ {"version":3,"file":"create-prefixed-async-action-middleware.d.ts","sourceRoot":"","sources":["../src/js/create-prefixed-async-action-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAgB,MAAM,kBAAkB,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,mCAAmC,CAC1D,MAAM,SAAS,MAAM,GAAG,SAAS,EAEjC,UAAU,SAAY,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,aAAa,GAAE,OAAmB,GAChC,UAAU,CA4BZ"}
@@ -1,3 +1,16 @@
1
+ /**
2
+ * Creates a redux middleware that allows dispatching of functions as actions, when the action
3
+ * exposes the defined actionFlag. If a prefix is provided, the action function will receive a
4
+ * prefixed getState, meaning it will retrieve the sub store with the prefix key (store.getState()[prefix]).
5
+ *
6
+ * Works similar to thunk, but with additional flag and optional sub store getState.
7
+ *
8
+ * @param [actionFlag] action flag, default: 'isAsync'
9
+ * @param [prefix] prefix state prefix
10
+ * @param [extraArgument] extra argument to be passed to action function
11
+ *
12
+ * @returns {function(*=): function(*): Function} resulting middleware
13
+ */
1
14
  export default function createPrefixedAsyncActionMiddleware(actionFlag = "isAsync", prefix, extraArgument = undefined) {
2
15
  return function prefixedAsyncActionMiddleware(api) {
3
16
  // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -11,12 +24,13 @@ export default function createPrefixedAsyncActionMiddleware(actionFlag = "isAsyn
11
24
  }
12
25
  return function (next) {
13
26
  return function prefixedAsyncActionMiddlewareWithAction(action) {
14
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
15
- if (typeof action === "function" && action.meta?.[actionFlag]) {
27
+ if (typeof action === "function" &&
28
+ "meta" in action &&
29
+ typeof action.meta === "object" &&
30
+ action.meta[actionFlag]) {
16
31
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-return
17
32
  return action(api.dispatch, getState, extraArgument);
18
33
  }
19
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
20
34
  return next(action);
21
35
  };
22
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-prefixed-async-action-middleware.js","sourceRoot":"","sources":["../src/js/create-prefixed-async-action-middleware.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,OAAO,UAAU,mCAAmC,CAG1D,UAAU,GAAG,SAAS,EACtB,MAAe,EACf,gBAAyB,SAAS;IAElC,OAAO,SAAS,6BAA6B,CAAC,GAAkB;QAC/D,6DAA6D;QAC7D,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAChC,6DAA6D;YAC7D,MAAM,YAAY,GAAG,GAAG,CAAC,QAAyC,CAAC;YACnE,QAAQ,GAAG,SAAS,kBAAkB;gBACrC,OAAO,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC;YAC/B,CAAC,CAAC;QACH,CAAC;QAED,OAAO,UAAU,IAAI;YACpB,OAAO,SAAS,uCAAuC,CAAC,MAAM;gBAC7D,sEAAsE;gBACtE,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC/D,iGAAiG;oBACjG,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC;gBACtD,CAAC;gBAED,+DAA+D;gBAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,CAAC,CAAC;QACH,CAAC,CAAC;IACH,CAAC,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"create-prefixed-async-action-middleware.js","sourceRoot":"","sources":["../src/js/create-prefixed-async-action-middleware.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,mCAAmC,CAG1D,UAAU,GAAG,SAAS,EACtB,MAAe,EACf,gBAAyB,SAAS;IAElC,OAAO,SAAS,6BAA6B,CAAC,GAAkB;QAC/D,6DAA6D;QAC7D,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAChC,6DAA6D;YAC7D,MAAM,YAAY,GAAG,GAAG,CAAC,QAAyC,CAAC;YACnE,QAAQ,GAAG,SAAS,kBAAkB;gBACrC,OAAO,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC;YAC/B,CAAC,CAAC;QACH,CAAC;QAED,OAAO,UAAU,IAAI;YACpB,OAAO,SAAS,uCAAuC,CAAC,MAAM;gBAC7D,IACC,OAAO,MAAM,KAAK,UAAU;oBAC5B,MAAM,IAAI,MAAM;oBAChB,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ;oBAC9B,MAAM,CAAC,IAAgC,CAAC,UAAU,CAAC,EACnD,CAAC;oBACF,iGAAiG;oBACjG,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC;gBACtD,CAAC;gBAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,CAAC,CAAC;QACH,CAAC,CAAC;IACH,CAAC,CAAC;AACH,CAAC"}
@@ -15,7 +15,7 @@ type SelectorFactory<OwnProps extends Array<unknown> = Array<unknown>, State = u
15
15
  * @param [options] optional options
16
16
  * @param [options.equals] function that check equality, defaults to strict equality (===)
17
17
  * @returns selector function to be used as mapState in react-redux's connect() function.
18
- * May be combined with createSelector/createStructuredSelector or any other function as
18
+ * May be combined with createSelector or any other function as
19
19
  * long as the selector is called with state as first and own props as second argument.
20
20
  */
21
21
  export default function createSelectorUsingOwnProps<State = unknown, Value = unknown, OwnProps extends Array<unknown> = Array<unknown>>(ownPropsSelectorOrSelectors: OwnPropsSelector<OwnProps> | Array<OwnPropsSelector<OwnProps>>, selectorFactory: SelectorFactory<OwnProps, State, Value>, options?: SelectorUsingPropsOptions): (state: State, ownProps: OwnProps) => Value;
@@ -11,7 +11,7 @@ function strictEqualityComparison(a, b) {
11
11
  * @param [options] optional options
12
12
  * @param [options.equals] function that check equality, defaults to strict equality (===)
13
13
  * @returns selector function to be used as mapState in react-redux's connect() function.
14
- * May be combined with createSelector/createStructuredSelector or any other function as
14
+ * May be combined with createSelector or any other function as
15
15
  * long as the selector is called with state as first and own props as second argument.
16
16
  */
17
17
  export default function createSelectorUsingOwnProps(ownPropsSelectorOrSelectors, selectorFactory, options = {}) {
@@ -1,4 +1,4 @@
1
- import { Store } from "redux";
1
+ import type { Store } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Enhances the stores dispatch function, so you can dispatch actions flagged as async.
4
4
  * This allows "dispatching while dispatching" by queueing actions that are dispatched while dispatching is already
@@ -1 +1 @@
1
- {"version":3,"file":"enable-async-dispatch.d.ts","sourceRoot":"","sources":["../src/js/enable-async-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAC,MAAM,OAAO,CAAC;AAUvC;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAC1C,KAAK,EAAE,KAAK,EACZ,eAAe,GAAE,MAAM,GAAG,MAAkB,QAsC5C"}
1
+ {"version":3,"file":"enable-async-dispatch.d.ts","sourceRoot":"","sources":["../src/js/enable-async-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAUvD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAC1C,KAAK,EAAE,KAAK,EACZ,eAAe,GAAE,MAAM,GAAG,MAAkB,QAsC5C"}
@@ -1,4 +1,4 @@
1
- import { Store } from "redux";
1
+ import type { Store } from "@reduxjs/toolkit";
2
2
  type CompareFunction = (a: unknown, b: unknown) => boolean;
3
3
  type UncontrolledActionListener<State = unknown> = (previousState: State, state: State) => void;
4
4
  type SubscribeUncontrolled<State = unknown> = (listener: UncontrolledActionListener<State>) => () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"enable-controlled-dispatch-and-observe.d.ts","sourceRoot":"","sources":["../src/js/enable-controlled-dispatch-and-observe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAA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,SAAiB,QAmErC"}
1
+ {"version":3,"file":"enable-controlled-dispatch-and-observe.d.ts","sourceRoot":"","sources":["../src/js/enable-controlled-dispatch-and-observe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAEjE,KAAK,eAAe,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;AAI3D,KAAK,0BAA0B,CAAC,KAAK,GAAG,OAAO,IAAI,CAClD,aAAa,EAAE,KAAK,EACpB,KAAK,EAAE,KAAK,KACR,IAAI,CAAC;AACV,KAAK,qBAAqB,CAAC,KAAK,GAAG,OAAO,IAAI,CAC7C,QAAQ,EAAE,0BAA0B,CAAC,KAAK,CAAC,KACvC,MAAM,IAAI,CAAC;AAEhB,MAAM,MAAM,cAAc,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,IAAI,CAC9D,QAAQ,CAAC,EAAE,KAAK,EAChB,aAAa,CAAC,EAAE,KAAK,EACrB,KAAK,CAAC,EAAE,KAAK,KACT,IAAI,CAAC;AAEV,MAAM,MAAM,mBAAmB,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,IAAI,CACnE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,EACjC,QAAQ,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACtC,OAAO,CAAC,EAAE,eAAe,KACrB,MAAM,IAAI,CAAC;AAEhB,MAAM,MAAM,yBAAyB,CAAC,MAAM,GAAG,OAAO,IAAI;IACzD,qBAAqB,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACrD,mBAAmB,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,0BAA0B,CACrC,CAAC,SAAS,KAAK,GAAG,KAAK,EACvB,MAAM,GAAG,OAAO,IACb,CAAC,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAiB1C;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,kCAAkC,CAAC,KAAK,GAAG,OAAO,EACzE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EACnB,oBAAoB,SAAiB,QAmErC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Add initialization reducer to existing reducer
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"enable-initialization.d.ts","sourceRoot":"","sources":["../src/js/enable-initialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAC,MAAM,OAAO,CAAC;AAEzC;;;;;;;;GAQG;AAEH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC3C,OAAO,EAAE,OAAO,EAChB,UAAU,SAAe,WAqBzB"}
1
+ {"version":3,"file":"enable-initialization.d.ts","sourceRoot":"","sources":["../src/js/enable-initialization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEzD;;;;;;;;GAQG;AAEH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC3C,OAAO,EAAE,OAAO,EAChB,UAAU,SAAe,WAqBzB"}
@@ -1,4 +1,4 @@
1
- import { AnyAction } from "redux";
1
+ import type { AnyAction } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Flattens (deeply) batched actions into a flat array of actions
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"flatten-actions.d.ts","sourceRoot":"","sources":["../src/js/flatten-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAa1E"}
1
+ {"version":3,"file":"flatten-actions.d.ts","sourceRoot":"","sources":["../src/js/flatten-actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAa1E"}
@@ -1,4 +1,4 @@
1
- import { Store } from "redux";
1
+ import type { Store } from "@reduxjs/toolkit";
2
2
  /**
3
3
  * Creates a storage object to access local storage.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../src/js/local-storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,KAAK,EAAC,MAAM,OAAO,CAAC;AAI5B;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,GAAE,MAAM,GAAG,IAAW;uBACnC,MAAM,GAAG,IAAI;gCAIN,OAAO;kCAeH,OAAO;oCAarC,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,SACrB,OAAO;4CAoBP,KAAK,SACL,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;EA4BrC"}
1
+ {"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../src/js/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAM5C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,GAAE,MAAM,GAAG,IAAW;uBACnC,MAAM,GAAG,IAAI;gCAIN,OAAO;kCAeH,OAAO;oCAarC,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,SACrB,OAAO;4CAoBP,KAAK,SACL,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;EA4BrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"local-storage.js","sourceRoot":"","sources":["../src/js/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAC7B,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AAoB;QAC1C,uBAAuB,EAAE,uBAAuB;QAChD,8BAA8B,EAAE,8BAA8B;KAC9D,CAAC;AACH,CAAC"}
@@ -1,8 +1,8 @@
1
- import { Store } from "redux";
1
+ import type { Store } from "@reduxjs/toolkit";
2
2
  declare function strictEqualCompare<T>(a: T, b: T): boolean;
3
3
  export declare const AbortObserving: unique symbol;
4
- export declare function observeState<State = unknown, Value = unknown>(store: Store<State>, selector: (state: State) => Value, listener: (newValue: Value, oldValue: Value | null, state: State) => void | typeof AbortObserving, compare?: typeof strictEqualCompare): import("redux").Unsubscribe;
5
- export declare function observeStateOnce<State = unknown, Value = unknown>(store: Store, selector: (state: State) => Value, listener: (newValue: Value, oldValue: Value | null, state: State) => void | typeof AbortObserving, compare?: typeof strictEqualCompare): import("redux").Unsubscribe;
6
- export declare function getAndObserveState<State = unknown, Value = unknown>(store: Store<State>, selector: (state: State) => Value, listener: (newValue: Value, oldValue: Value | null, state: State) => void | typeof AbortObserving, compare?: typeof strictEqualCompare): import("redux").Unsubscribe;
4
+ export declare function observeState<State = unknown, Value = unknown>(store: Store<State>, selector: (state: State) => Value, listener: (newValue: Value, oldValue: Value | null, state: State) => void | typeof AbortObserving, compare?: typeof strictEqualCompare): import("@reduxjs/toolkit").Unsubscribe;
5
+ export declare function observeStateOnce<State = unknown, Value = unknown>(store: Store, selector: (state: State) => Value, listener: (newValue: Value, oldValue: Value | null, state: State) => void | typeof AbortObserving, compare?: typeof strictEqualCompare): import("@reduxjs/toolkit").Unsubscribe;
6
+ export declare function getAndObserveState<State = unknown, Value = unknown>(store: Store<State>, selector: (state: State) => Value, listener: (newValue: Value, oldValue: Value | null, state: State) => void | typeof AbortObserving, compare?: typeof strictEqualCompare): import("@reduxjs/toolkit").Unsubscribe;
7
7
  export {};
8
8
  //# sourceMappingURL=observe-state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"observe-state.d.ts","sourceRoot":"","sources":["../src/js/observe-state.ts"],"names":[],"mappings":"AAAA,OAAO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"description": "Mapsight Redux Library",
4
- "version": "2.0.3",
4
+ "version": "2.1.0",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@mapsight/lib-js": "workspace:^",
8
- "lodash": "catalog:",
9
- "redux-thunk": "catalog:"
8
+ "@reduxjs/toolkit": "catalog:",
9
+ "@types/lodash": "catalog:",
10
+ "lodash": "catalog:"
10
11
  },
11
12
  "devDependencies": {
12
- "@types/lodash": "catalog:",
13
- "cpx2": "^8.0.2",
14
- "redux": "catalog:"
13
+ "cpx2": "^8.0.2"
15
14
  },
16
15
  "exports": {
17
16
  ".": {
@@ -33,9 +32,6 @@
33
32
  },
34
33
  "license": "UNLICENSED",
35
34
  "main": "index.js",
36
- "peerDependencies": {
37
- "redux": "catalog:"
38
- },
39
35
  "repository": {
40
36
  "url": "https://github.com/open-mapsight/mapsight"
41
37
  },
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  declare const addTo: Reducer<Array<unknown>>;
3
3
  export default addTo;
4
4
  //# sourceMappingURL=add-to.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-to.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/add-to.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAE9B,QAAA,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CACI,CAAC;AAExC,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"add-to.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/add-to.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CACI,CAAC;AAExC,eAAe,KAAK,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  declare const reducers: Record<string, Reducer>;
3
3
  export default reducers;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAQ9B,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAMrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAQ9C,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAMrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  declare const mergeReducer: Reducer;
3
3
  export default mergeReducer;
4
4
  //# sourceMappingURL=merge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,OAAO,EAAC,MAAM,OAAO,CAAC;AAEzC,QAAA,MAAM,YAAY,EAAE,OAYnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/merge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAGzD,QAAA,MAAM,YAAY,EAAE,OAYnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../src/js/reducers/immutable/merge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAGjC,MAAM,YAAY,GAAY,CAG7B,KAAQ,EACR,MAAiB,EACb,EAAE;IACN,MAAM,MAAM,GAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAM,CAAC;IAExD,6DAA6D;IAC7D,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAEnC,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../src/js/reducers/immutable/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,MAAM,YAAY,GAAY,CAG7B,KAAQ,EACR,MAAiB,EACb,EAAE;IACN,MAAM,MAAM,GAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAM,CAAC;IAExD,6DAA6D;IAC7D,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAEnC,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  declare const noopReducer: Reducer;
3
3
  export default noopReducer;
4
4
  //# sourceMappingURL=noop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noop.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/noop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAE9B,QAAA,MAAM,WAAW,EAAE,OAAmC,CAAC;AAEvD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"noop.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/noop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,WAAW,EAAE,OAAmC,CAAC;AAEvD,eAAe,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  declare const removeFromReducer: Reducer;
3
3
  export default removeFromReducer;
4
4
  //# sourceMappingURL=remove-from.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-from.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/remove-from.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAC,MAAM,OAAO,CAAC;AAEzC,QAAA,MAAM,iBAAiB,EAAE,OAGiC,CAAC;AAE3D,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"remove-from.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/remove-from.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEzD,QAAA,MAAM,iBAAiB,EAAE,OAGiC,CAAC;AAE3D,eAAe,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  declare const setReducer: Reducer;
3
3
  export default setReducer;
4
4
  //# sourceMappingURL=set.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAC,MAAM,OAAO,CAAC;AAEzC,QAAA,MAAM,UAAU,EAAE,OAA6D,CAAC;AAEhF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable/set.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEzD,QAAA,MAAM,UAAU,EAAE,OAA6D,CAAC;AAEhF,eAAe,UAAU,CAAC"}
@@ -1,3 +1,3 @@
1
- declare const _default: import("redux").Reducer;
1
+ declare const _default: import("@reduxjs/toolkit").Reducer;
2
2
  export default _default;
3
3
  //# sourceMappingURL=add-to.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Reducer } from "redux";
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
2
  import noop from "./noop";
3
3
  declare const reducers: {
4
4
  addTo: Reducer;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable-path/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAI9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAI1B,QAAA,MAAM,QAAQ;;;;;;CAMqB,CAAC;AAEpC,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/reducers/immutable-path/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAI9C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAI1B,QAAA,MAAM,QAAQ;;;;;;CAMqB,CAAC;AAEpC,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
- declare const _default: import("redux").Reducer;
1
+ declare const _default: import("@reduxjs/toolkit").Reducer;
2
2
  export default _default;
3
3
  //# sourceMappingURL=merge.d.ts.map
@@ -1,3 +1,3 @@
1
- declare const _default: import("redux").Reducer;
1
+ declare const _default: import("@reduxjs/toolkit").Reducer;
2
2
  export default _default;
3
3
  //# sourceMappingURL=remove-from.d.ts.map
@@ -1,3 +1,3 @@
1
- declare const _default: import("redux").Reducer;
1
+ declare const _default: import("@reduxjs/toolkit").Reducer;
2
2
  export default _default;
3
3
  //# sourceMappingURL=set.d.ts.map
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@mapsight/lib-redux",
3
3
  "description": "Mapsight Redux Library",
4
- "version": "2.0.3",
4
+ "version": "2.1.0",
5
5
  "type": "module",
6
6
  "dependencies": {
7
+ "@reduxjs/toolkit": "^2.11.2",
8
+ "@types/lodash": "^4.17.24",
7
9
  "lodash": "^4.18.1",
8
- "redux-thunk": "^2.4.2",
9
10
  "@mapsight/lib-js": "^3.0.3"
10
11
  },
11
12
  "devDependencies": {
12
- "@types/lodash": "^4.17.24",
13
- "cpx2": "^8.0.2",
14
- "redux": "^4.2.1"
13
+ "cpx2": "^8.0.2"
15
14
  },
16
15
  "exports": {
17
16
  ".": {
@@ -33,9 +32,6 @@
33
32
  },
34
33
  "license": "UNLICENSED",
35
34
  "main": "index.js",
36
- "peerDependencies": {
37
- "redux": "^4.2.1"
38
- },
39
35
  "repository": {
40
36
  "url": "https://github.com/open-mapsight/mapsight"
41
37
  },
@@ -1,4 +1,4 @@
1
- import {AnyAction} from "redux";
1
+ import type {AnyAction} from "@reduxjs/toolkit";
2
2
 
3
3
  function shallowCloneObject<T>(o: T): T {
4
4
  return {...o};
@@ -1,4 +1,5 @@
1
- import {AnyAction, Reducer, combineReducers} from "redux";
1
+ import type {AnyAction, Reducer} from "@reduxjs/toolkit";
2
+ import {combineReducers} from "@reduxjs/toolkit";
2
3
 
3
4
  import cloneAction from "./clone-action";
4
5
 
@@ -1,4 +1,4 @@
1
- import {AnyAction, Reducer} from "redux";
1
+ import type {AnyAction, Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  import cloneAction from "./clone-action";
4
4
 
@@ -1,5 +1,5 @@
1
+ import type {AnyAction, Reducer} from "@reduxjs/toolkit";
1
2
  import get from "lodash/get";
2
- import {AnyAction, Reducer} from "redux";
3
3
 
4
4
  import deepChangeState from "./deep-change-state";
5
5
 
@@ -1,3 +1,5 @@
1
+ import type {Middleware, MiddlewareAPI} from "@reduxjs/toolkit";
2
+
1
3
  /**
2
4
  * Creates a redux middleware that allows dispatching of functions as actions, when the action
3
5
  * exposes the defined actionFlag. If a prefix is provided, the action function will receive a
@@ -11,8 +13,6 @@
11
13
  *
12
14
  * @returns {function(*=): function(*): Function} resulting middleware
13
15
  */
14
- import {Middleware, MiddlewareAPI} from "redux";
15
-
16
16
  export default function createPrefixedAsyncActionMiddleware<
17
17
  Prefix extends string | undefined,
18
18
  >(
@@ -33,13 +33,16 @@ export default function createPrefixedAsyncActionMiddleware<
33
33
 
34
34
  return function (next) {
35
35
  return function prefixedAsyncActionMiddlewareWithAction(action) {
36
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
37
- if (typeof action === "function" && action.meta?.[actionFlag]) {
36
+ if (
37
+ typeof action === "function" &&
38
+ "meta" in action &&
39
+ typeof action.meta === "object" &&
40
+ (action.meta as Record<string, unknown>)[actionFlag]
41
+ ) {
38
42
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-return
39
43
  return action(api.dispatch, getState, extraArgument);
40
44
  }
41
45
 
42
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
43
46
  return next(action);
44
47
  };
45
48
  };
@@ -31,7 +31,7 @@ type SelectorFactory<
31
31
  * @param [options] optional options
32
32
  * @param [options.equals] function that check equality, defaults to strict equality (===)
33
33
  * @returns selector function to be used as mapState in react-redux's connect() function.
34
- * May be combined with createSelector/createStructuredSelector or any other function as
34
+ * May be combined with createSelector or any other function as
35
35
  * long as the selector is called with state as first and own props as second argument.
36
36
  */
37
37
  export default function createSelectorUsingOwnProps<
@@ -1,4 +1,4 @@
1
- import {AnyAction, Store} from "redux";
1
+ import type {AnyAction, Store} from "@reduxjs/toolkit";
2
2
 
3
3
  function runAsync(fn: () => void) {
4
4
  return setTimeout(() => fn(), 10);
@@ -1,4 +1,4 @@
1
- import {AnyAction, Dispatch, Store} from "redux";
1
+ import type {AnyAction, Dispatch, Store} from "@reduxjs/toolkit";
2
2
 
3
3
  type CompareFunction = (a: unknown, b: unknown) => boolean;
4
4
 
@@ -1,4 +1,4 @@
1
- import {AnyAction, Reducer} from "redux";
1
+ import type {AnyAction, Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  /**
4
4
  * Add initialization reducer to existing reducer
@@ -1,4 +1,4 @@
1
- import {AnyAction} from "redux";
1
+ import type {AnyAction} from "@reduxjs/toolkit";
2
2
 
3
3
  /**
4
4
  * Flattens (deeply) batched actions into a flat array of actions
@@ -1,6 +1,6 @@
1
+ import type {Store} from "@reduxjs/toolkit";
1
2
  import get from "lodash/get";
2
3
  import set from "lodash/set";
3
- import {Store} from "redux";
4
4
 
5
5
  import {observeState} from "./observe-state";
6
6
 
@@ -1,4 +1,4 @@
1
- import {Store} from "redux";
1
+ import type {Store} from "@reduxjs/toolkit";
2
2
 
3
3
  function strictEqualCompare<T>(a: T, b: T): boolean {
4
4
  return a === b;
@@ -1,4 +1,4 @@
1
- import {Reducer} from "redux";
1
+ import type {Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  const addTo: Reducer<Array<unknown>> = (state, action) =>
4
4
  (state || []).concat([action.element]);
@@ -1,4 +1,4 @@
1
- import {Reducer} from "redux";
1
+ import type {Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  import addTo from "./add-to";
4
4
  import merge from "./merge";
@@ -1,5 +1,5 @@
1
+ import type {AnyAction, Reducer} from "@reduxjs/toolkit";
1
2
  import merge from "lodash/merge";
2
- import {AnyAction, Reducer} from "redux";
3
3
 
4
4
  const mergeReducer: Reducer = <
5
5
  T extends Array<unknown> | Record<string | number | symbol, unknown>,
@@ -1,4 +1,4 @@
1
- import {Reducer} from "redux";
1
+ import type {Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  const noopReducer: Reducer = <T>(state: T): T => state;
4
4
 
@@ -1,4 +1,4 @@
1
- import {AnyAction, Reducer} from "redux";
1
+ import type {AnyAction, Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  const removeFromReducer: Reducer = <T extends Array<unknown>>(
4
4
  state: T,
@@ -1,4 +1,4 @@
1
- import {AnyAction, Reducer} from "redux";
1
+ import type {AnyAction, Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  const setReducer: Reducer = (state, action: AnyAction): unknown => action.value;
4
4
 
@@ -1,4 +1,4 @@
1
- import {Reducer} from "redux";
1
+ import type {Reducer} from "@reduxjs/toolkit";
2
2
 
3
3
  import addTo from "./add-to";
4
4
  import merge from "./merge";