@carbonorm/carbonreact 3.4.5 → 3.4.7

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
- "version": "3.4.5",
3
+ "version": "3.4.7",
4
4
  "browser": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "main": "dist/index.cjs.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@carbonorm/carbonnode": "^1.2.14",
10
+ "@carbonorm/carbonnode": "^1.2.16",
11
11
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
12
12
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
13
13
  "@fortawesome/react-fontawesome": "^0.2.0",
@@ -12,6 +12,8 @@ export interface iGetStatefulObjectWithWhere {
12
12
  export default ({request}: { request: iAPI<any> & iWHERE }) => {
13
13
 
14
14
 
15
+ console.log('request', request)
16
+
15
17
 
16
18
 
17
19
  }
@@ -1,7 +1,7 @@
1
1
  import {ChangeEvent} from "react";
2
2
  import {timeout} from "@carbonorm/carbonnode";
3
3
 
4
- export default function watchInputElementChangeEvent(event: ChangeEvent<HTMLInputElement>, cb: (event: ChangeEvent<HTMLInputElement>) => (Promise<boolean> | boolean), timeoutMs: number = 3000) {
4
+ export default function watchInputElementChangeEvent(event: ChangeEvent<HTMLInputElement|HTMLTextAreaElement>, cb: (event: ChangeEvent<HTMLInputElement|HTMLTextAreaElement>) => (Promise<boolean> | boolean), timeoutMs: number = 3000) {
5
5
 
6
6
  const target = event.target;
7
7
 
@@ -1,7 +1,7 @@
1
1
  import classNames from "classnames";
2
2
  import OutsideClickHandler from 'react-outside-click-handler';
3
3
  import getStyles from "hoc/getStyles";
4
- import {PropsWithChildren} from "react";
4
+ import {PropsWithChildren, ReactElement} from "react";
5
5
 
6
6
 
7
7
  interface iPopupProperties {
@@ -18,12 +18,12 @@ export default function Popup({
18
18
  handleClose,
19
19
  children,
20
20
  maxWidth,
21
- }: PropsWithChildren<iPopupProperties>) {
21
+ }: PropsWithChildren<iPopupProperties>) : ReactElement {
22
22
 
23
23
  if (false === open) {
24
24
 
25
25
  // @link https://legacy.reactjs.org/docs/conditional-rendering.html#preventing-component-from-rendering
26
- return null;
26
+ return <></>;
27
27
 
28
28
  }
29
29