@etsoo/react 1.7.56 → 1.7.58
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/.github/workflows/main.yml +3 -3
- package/LICENSE +1 -1
- package/lib/app/InputDialogProps.d.ts +0 -1
- package/lib/app/ReactUtils.d.ts +1 -1
- package/lib/app/ReactUtils.js +1 -1
- package/lib/custom/CustomFieldReact.d.ts +0 -1
- package/lib/states/CultureState.d.ts +0 -1
- package/lib/states/PageState.d.ts +0 -1
- package/lib/states/UserState.d.ts +0 -1
- package/lib/uses/useCombinedRefs.d.ts +0 -1
- package/lib/uses/useDimensions.d.ts +2 -1
- package/package.json +15 -15
- package/src/app/ReactUtils.ts +1 -1
|
@@ -22,13 +22,13 @@ jobs:
|
|
|
22
22
|
steps:
|
|
23
23
|
# https://github.com/actions/checkout, This action checks-out your repository under $GITHUB_WORKSPACE
|
|
24
24
|
# so your workflow can access it.
|
|
25
|
-
- uses: actions/checkout@
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
26
|
|
|
27
27
|
# Set up your GitHub Actions workflow with a specific version of node.js
|
|
28
28
|
# Setup .npmrc file to publish to npm
|
|
29
|
-
- uses: actions/setup-node@
|
|
29
|
+
- uses: actions/setup-node@v4
|
|
30
30
|
with:
|
|
31
|
-
node-version: '
|
|
31
|
+
node-version: '20.x'
|
|
32
32
|
registry-url: 'https://registry.npmjs.org'
|
|
33
33
|
|
|
34
34
|
# Named after Continuous Integration, installs dependencies directly from package-lock.json
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2004-2024 ETSOO® (亿速思维 ®), https://
|
|
3
|
+
Copyright (c) 2004-2024 ETSOO ® (亿速思维 ®), https://etsoo.com, https://etsoo.nz
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/lib/app/ReactUtils.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare namespace ReactUtils {
|
|
|
22
22
|
* @param value New value
|
|
23
23
|
* @param cancelable Cancelable
|
|
24
24
|
*/
|
|
25
|
-
function triggerChange(input: HTMLInputElement, value: string, cancelable
|
|
25
|
+
function triggerChange(input: HTMLInputElement, value: string, cancelable?: boolean): void;
|
|
26
26
|
/**
|
|
27
27
|
* Update refs
|
|
28
28
|
* @param refs Refs
|
package/lib/app/ReactUtils.js
CHANGED
|
@@ -53,7 +53,7 @@ export var ReactUtils;
|
|
|
53
53
|
* @param value New value
|
|
54
54
|
* @param cancelable Cancelable
|
|
55
55
|
*/
|
|
56
|
-
function triggerChange(input, value, cancelable) {
|
|
56
|
+
function triggerChange(input, value, cancelable = false) {
|
|
57
57
|
// Radio type not supported
|
|
58
58
|
if (input.type === 'radio')
|
|
59
59
|
return;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface states {
|
|
2
3
|
count: number;
|
|
3
4
|
indices: number[];
|
|
@@ -10,7 +11,7 @@ interface states {
|
|
|
10
11
|
* @param equalCallback Equall callback
|
|
11
12
|
*/
|
|
12
13
|
export declare function useDimensions(elements: number, updateCallback?: (target: Element, rect: DOMRect) => boolean | void, miliseconds?: number, equalCallback?: (d1?: DOMRect, d2?: DOMRect) => boolean): {
|
|
13
|
-
dimensions: [(instance: Element | null) => void, (Element | undefined)?, (DOMRect | undefined)?][];
|
|
14
|
+
dimensions: [(instance: Element | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES], (Element | undefined)?, (DOMRect | undefined)?][];
|
|
14
15
|
state: states;
|
|
15
16
|
};
|
|
16
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.58",
|
|
4
4
|
"description": "TypeScript ReactJs UI Independent Framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -47,24 +47,24 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@dnd-kit/core": "^6.1.0",
|
|
49
49
|
"@dnd-kit/sortable": "^8.0.0",
|
|
50
|
-
"@emotion/css": "^11.
|
|
51
|
-
"@emotion/react": "^11.
|
|
52
|
-
"@emotion/styled": "^11.
|
|
53
|
-
"@etsoo/appscript": "^1.
|
|
54
|
-
"@etsoo/notificationbase": "^1.1.
|
|
55
|
-
"@etsoo/shared": "^1.2.
|
|
50
|
+
"@emotion/css": "^11.13.0",
|
|
51
|
+
"@emotion/react": "^11.13.0",
|
|
52
|
+
"@emotion/styled": "^11.13.0",
|
|
53
|
+
"@etsoo/appscript": "^1.5.0",
|
|
54
|
+
"@etsoo/notificationbase": "^1.1.45",
|
|
55
|
+
"@etsoo/shared": "^1.2.44",
|
|
56
56
|
"react": "^18.3.1",
|
|
57
57
|
"react-dom": "^18.3.1",
|
|
58
|
-
"react-router-dom": "^6.
|
|
58
|
+
"react-router-dom": "^6.26.0",
|
|
59
59
|
"react-window": "^1.8.10"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/cli": "^7.24.
|
|
63
|
-
"@babel/core": "^7.
|
|
62
|
+
"@babel/cli": "^7.24.8",
|
|
63
|
+
"@babel/core": "^7.25.2",
|
|
64
64
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
65
|
-
"@babel/preset-env": "^7.
|
|
66
|
-
"@babel/runtime-corejs3": "^7.
|
|
67
|
-
"@testing-library/jest-dom": "^6.4.
|
|
65
|
+
"@babel/preset-env": "^7.25.3",
|
|
66
|
+
"@babel/runtime-corejs3": "^7.25.0",
|
|
67
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
68
68
|
"@testing-library/react": "^16.0.0",
|
|
69
69
|
"@types/jest": "^29.5.12",
|
|
70
70
|
"@types/react": "^18.3.3",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/react-window": "^1.8.8",
|
|
73
73
|
"jest": "^29.7.0",
|
|
74
74
|
"jest-environment-jsdom": "^29.7.0",
|
|
75
|
-
"ts-jest": "^29.
|
|
76
|
-
"typescript": "^5.4
|
|
75
|
+
"ts-jest": "^29.2.4",
|
|
76
|
+
"typescript": "^5.5.4"
|
|
77
77
|
}
|
|
78
78
|
}
|
package/src/app/ReactUtils.ts
CHANGED