@koine/react 1.0.74 → 1.0.77
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/Forms/helpers.js
CHANGED
|
@@ -31,9 +31,9 @@ export function triggerOnChange(onChange, name, value) {
|
|
|
31
31
|
export function triggerChange(input, value) {
|
|
32
32
|
var obj = window.Object;
|
|
33
33
|
if (!obj) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
if (process.env["NODE_ENV"] !== "production") {
|
|
35
|
+
console.warn("[@koine/react:Forms:triggerChange] window.Object does not exists, bailing.");
|
|
36
|
+
}
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
// @ts-expect-error nevermind
|
package/hooks/useTraceUpdate.js
CHANGED
|
@@ -14,7 +14,7 @@ export function useTraceUpdate(props) {
|
|
|
14
14
|
return ps;
|
|
15
15
|
}, {});
|
|
16
16
|
if (Object.keys(changedProps).length > 0) {
|
|
17
|
-
console.
|
|
17
|
+
console.info("[@koine/react:useTraceUpdate] changed props:", changedProps);
|
|
18
18
|
}
|
|
19
19
|
prev.current = props;
|
|
20
20
|
});
|
package/node/Forms/helpers.js
CHANGED
|
@@ -37,9 +37,9 @@ exports.triggerOnChange = triggerOnChange;
|
|
|
37
37
|
function triggerChange(input, value) {
|
|
38
38
|
var obj = window.Object;
|
|
39
39
|
if (!obj) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
if (process.env["NODE_ENV"] !== "production") {
|
|
41
|
+
console.warn("[@koine/react:Forms:triggerChange] window.Object does not exists, bailing.");
|
|
42
|
+
}
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
// @ts-expect-error nevermind
|
|
@@ -17,7 +17,7 @@ function useTraceUpdate(props) {
|
|
|
17
17
|
return ps;
|
|
18
18
|
}, {});
|
|
19
19
|
if (Object.keys(changedProps).length > 0) {
|
|
20
|
-
console.
|
|
20
|
+
console.info("[@koine/react:useTraceUpdate] changed props:", changedProps);
|
|
21
21
|
}
|
|
22
22
|
prev.current = props;
|
|
23
23
|
});
|
package/package.json
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"framer-motion": "^6.5.1",
|
|
10
10
|
"react": "^16.8 || ^17 || ^18",
|
|
11
11
|
"@mui/base": "^5.0.0-alpha.90",
|
|
12
|
-
"@koine/utils": "1.0.
|
|
12
|
+
"@koine/utils": "1.0.77",
|
|
13
|
+
"date-fns-tz": "^1.3.7",
|
|
13
14
|
"react-icons": "^4.4.0",
|
|
14
15
|
"date-fns": "^2.29.1",
|
|
15
16
|
"react-swipeable": "^7.0.0",
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"react-popper": "^2.3.0",
|
|
22
23
|
"tslib": "^2.4.0"
|
|
23
24
|
},
|
|
24
|
-
"version": "1.0.
|
|
25
|
+
"version": "1.0.77",
|
|
25
26
|
"module": "./index.js",
|
|
26
27
|
"types": "./index.d.ts"
|
|
27
28
|
}
|