@etsoo/react 1.6.1 → 1.6.3

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.
@@ -14,7 +14,7 @@ export interface EventWatcherAction {
14
14
  /**
15
15
  * Action
16
16
  */
17
- action: (event: React.BaseSyntheticEvent | string) => void | PromiseLike<void>;
17
+ action: (event: React.BaseSyntheticEvent | string) => any;
18
18
  }
19
19
  /**
20
20
  * Event watcher
@@ -3,7 +3,10 @@ import React from 'react';
3
3
  * Dynamic router props
4
4
  */
5
5
  export declare type DynamicRouterProps = {
6
- basename: string;
6
+ /**
7
+ * basename of the router
8
+ */
9
+ basename?: string;
7
10
  };
8
11
  /**
9
12
  * Dynamic router
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,15 +50,15 @@
50
50
  "@emotion/css": "^11.10.0",
51
51
  "@emotion/react": "^11.10.4",
52
52
  "@emotion/styled": "^11.10.4",
53
- "@etsoo/appscript": "^1.2.96",
53
+ "@etsoo/appscript": "^1.2.97",
54
54
  "@etsoo/notificationbase": "^1.1.7",
55
- "@etsoo/shared": "^1.1.57",
56
- "@types/react": "^18.0.20",
55
+ "@etsoo/shared": "^1.1.58",
56
+ "@types/react": "^18.0.21",
57
57
  "@types/react-dom": "^18.0.6",
58
58
  "@types/react-window": "^1.8.5",
59
59
  "react": "^18.2.0",
60
60
  "react-dom": "^18.2.0",
61
- "react-router-dom": "^6.4.0",
61
+ "react-router-dom": "^6.4.1",
62
62
  "react-window": "^1.8.7"
63
63
  },
64
64
  "devDependencies": {
@@ -72,13 +72,13 @@
72
72
  "@types/jest": "^29.0.3",
73
73
  "@typescript-eslint/eslint-plugin": "^5.38.0",
74
74
  "@typescript-eslint/parser": "^5.38.0",
75
- "eslint": "^8.23.1",
75
+ "eslint": "^8.24.0",
76
76
  "eslint-config-airbnb-base": "^15.0.0",
77
77
  "eslint-plugin-import": "^2.26.0",
78
78
  "eslint-plugin-react": "^7.31.8",
79
79
  "jest": "^29.0.3",
80
80
  "jest-environment-jsdom": "^29.0.3",
81
- "ts-jest": "^29.0.1",
81
+ "ts-jest": "^29.0.2",
82
82
  "typescript": "^4.8.3"
83
83
  }
84
84
  }
@@ -17,9 +17,7 @@ export interface EventWatcherAction {
17
17
  /**
18
18
  * Action
19
19
  */
20
- action: (
21
- event: React.BaseSyntheticEvent | string
22
- ) => void | PromiseLike<void>;
20
+ action: (event: React.BaseSyntheticEvent | string) => any;
23
21
  }
24
22
 
25
23
  /**
@@ -5,7 +5,12 @@ import { BrowserRouter, MemoryRouter } from 'react-router-dom';
5
5
  /**
6
6
  * Dynamic router props
7
7
  */
8
- export type DynamicRouterProps = { basename: string };
8
+ export type DynamicRouterProps = {
9
+ /**
10
+ * basename of the router
11
+ */
12
+ basename?: string;
13
+ };
9
14
 
10
15
  function getEntries(host: IBridgeHost) {
11
16
  const startUrl = host.getStartUrl();