@aiszlab/relax 1.2.74 → 1.2.76
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/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export { isOverflow } from "./is/is-overflow";
|
|
|
51
51
|
export { isStyleElement } from "./is/is-style-element";
|
|
52
52
|
export { isFunction } from "./is/is-function";
|
|
53
53
|
export { isThenable } from "./is/is-thenable";
|
|
54
|
+
export { isHTMLElement } from "./is/is-html-element";
|
|
55
|
+
export { isHTMLInputElement } from "./is/is-html-input-element";
|
|
54
56
|
/**
|
|
55
57
|
* @description
|
|
56
58
|
* utils
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,8 @@ export { isOverflow } from './is/is-overflow.js';
|
|
|
43
43
|
export { isStyleElement } from './is/is-style-element.js';
|
|
44
44
|
export { isFunction } from './is/is-function.js';
|
|
45
45
|
export { isThenable } from './is/is-thenable.js';
|
|
46
|
+
export { isHTMLElement } from './is/is-html-element.js';
|
|
47
|
+
export { isHTMLInputElement } from './is/is-html-input-element.js';
|
|
46
48
|
export { effect } from './utils/effect.js';
|
|
47
49
|
export { unique, uniqueBy } from './utils/unique.js';
|
|
48
50
|
export { range } from './utils/range.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { isHTMLElement } from './is-html-element.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param value - The element being tested
|
|
5
|
+
* @returns Returns true if x is an HTML input tag, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
var isHTMLInputElement = function isHTMLInputElement(value) {
|
|
8
|
+
return isHTMLElement(value) && value.tagName === "INPUT";
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { isHTMLInputElement };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiszlab/relax",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.76",
|
|
4
4
|
"description": "react utils collection",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"publish:npm": "npm publish"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.25.
|
|
26
|
+
"@babel/runtime": "^7.25.4",
|
|
27
27
|
"react-is": "^18.3.1",
|
|
28
28
|
"rxjs": "^7.8.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.25.2",
|
|
32
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
33
|
-
"@babel/preset-env": "^7.25.
|
|
32
|
+
"@babel/plugin-transform-runtime": "^7.25.4",
|
|
33
|
+
"@babel/preset-env": "^7.25.4",
|
|
34
34
|
"@babel/preset-react": "^7.24.7",
|
|
35
35
|
"@babel/preset-typescript": "^7.24.7",
|
|
36
36
|
"@jest/globals": "^29.7.0",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
39
39
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
40
40
|
"@testing-library/react": "^16.0.0",
|
|
41
|
-
"@types/react": "^18.3.
|
|
41
|
+
"@types/react": "^18.3.4",
|
|
42
42
|
"@types/react-dom": "^18.3.0",
|
|
43
43
|
"@types/react-is": "^18.3.0",
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"jest-environment-jsdom": "^29.7.0",
|
|
46
46
|
"react": "^18.3.1",
|
|
47
47
|
"react-dom": "^18.3.1",
|
|
48
|
-
"rollup": "^4.
|
|
48
|
+
"rollup": "^4.21.1",
|
|
49
49
|
"typescript": "5.5.4"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|