@cxbox-ui/core 1.37.3-alpha.9 → 2.0.0-alpha.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.
@@ -1,10 +1,19 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { AnyAction } from 'redux';
3
3
  import { isAnyOf } from '@reduxjs/toolkit';
4
+ /**
5
+ * Type tweak for backward @reduxjs/toolkit compatibility
6
+ */
7
+ type TypeGuard<T> = (value: any) => value is T;
8
+ interface HasMatchFunction<T> {
9
+ match: TypeGuard<T>;
10
+ }
11
+ /** @public */
12
+ type Matcher<T> = HasMatchFunction<T> | TypeGuard<T>;
4
13
  /**
5
14
  * Default list of action types which are triggers for request cancel
6
15
  */
7
- export declare const cancelRequestActionTypes: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("../interfaces").ViewMetaResponse, string>[];
16
+ export declare const cancelRequestActionTypes: [Matcher<any>, ...Matcher<any>[]];
8
17
  /**
9
18
  * Creator of request cancel epic
10
19
  *
@@ -15,3 +24,4 @@ export declare const cancelRequestActionTypes: import("@reduxjs/toolkit").Action
15
24
  * @param filterFn a callback function which filters come actions
16
25
  */
17
26
  export declare function cancelRequestEpic(action$: Observable<AnyAction>, actionTypes: Parameters<typeof isAnyOf>, cancelFn: (() => void) | undefined, cancelActionCreator: AnyAction, filterFn?: (actions: AnyAction) => boolean): Observable<AnyAction>;
27
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cxbox-ui/core",
3
- "version": "1.37.3-alpha.9",
3
+ "version": "2.0.0-alpha.0",
4
4
  "description": "CXBox RTK business logic",
5
5
  "author": "cxbox",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@cxbox-ui/schema": "0.7.1",
32
- "@reduxjs/toolkit": "1.9.6",
32
+ "@reduxjs/toolkit": "1.7.2",
33
33
  "@types/convert-source-map": "^2.0.1",
34
34
  "@types/react-redux": "7.1.27",
35
35
  "@typescript-eslint/eslint-plugin": "6.7.4",
@@ -63,7 +63,7 @@
63
63
  "yargs": "^17.7.2"
64
64
  },
65
65
  "peerDependencies": {
66
- "@reduxjs/toolkit": "^1.9.5",
66
+ "@reduxjs/toolkit": "^1.7.2",
67
67
  "axios": "^1.5.0",
68
68
  "react": "^16.9.0 || ^17.0.0 || ^18",
69
69
  "react-redux": "^7.2.1 || ^8.0.2",