@douyinfe/semi-ui 2.53.1 → 2.53.2
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.
|
@@ -34,8 +34,9 @@ class ReactResizeObserver extends _baseComponent.default {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
this.handleResizeEventTriggered = entries => {
|
|
37
|
+
var _a, _b, _c, _d;
|
|
37
38
|
if (this.props.observerProperty === ObserverProperty.All) {
|
|
38
|
-
this.props.onResize(entries);
|
|
39
|
+
(_b = (_a = this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries);
|
|
39
40
|
} else {
|
|
40
41
|
const finalEntries = [];
|
|
41
42
|
for (const entry of entries) {
|
|
@@ -50,7 +51,7 @@ class ReactResizeObserver extends _baseComponent.default {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
if (finalEntries.length > 0) {
|
|
53
|
-
this.props.onResize(finalEntries);
|
|
54
|
+
(_d = (_c = this.props).onResize) === null || _d === void 0 ? void 0 : _d.call(_c, finalEntries);
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
};
|
|
@@ -26,8 +26,9 @@ export default class ReactResizeObserver extends BaseComponent {
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
this.handleResizeEventTriggered = entries => {
|
|
29
|
+
var _a, _b, _c, _d;
|
|
29
30
|
if (this.props.observerProperty === ObserverProperty.All) {
|
|
30
|
-
this.props.onResize(entries);
|
|
31
|
+
(_b = (_a = this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries);
|
|
31
32
|
} else {
|
|
32
33
|
const finalEntries = [];
|
|
33
34
|
for (const entry of entries) {
|
|
@@ -42,7 +43,7 @@ export default class ReactResizeObserver extends BaseComponent {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
if (finalEntries.length > 0) {
|
|
45
|
-
this.props.onResize(finalEntries);
|
|
46
|
+
(_d = (_c = this.props).onResize) === null || _d === void 0 ? void 0 : _d.call(_c, finalEntries);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.53.
|
|
3
|
+
"version": "2.53.2",
|
|
4
4
|
"description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"@dnd-kit/core": "^6.0.8",
|
|
21
21
|
"@dnd-kit/sortable": "^7.0.2",
|
|
22
22
|
"@dnd-kit/utilities": "^3.2.1",
|
|
23
|
-
"@douyinfe/semi-animation": "2.53.
|
|
24
|
-
"@douyinfe/semi-animation-react": "2.53.
|
|
25
|
-
"@douyinfe/semi-foundation": "2.53.
|
|
26
|
-
"@douyinfe/semi-icons": "2.53.
|
|
27
|
-
"@douyinfe/semi-illustrations": "2.53.
|
|
28
|
-
"@douyinfe/semi-theme-default": "2.53.
|
|
23
|
+
"@douyinfe/semi-animation": "2.53.2",
|
|
24
|
+
"@douyinfe/semi-animation-react": "2.53.2",
|
|
25
|
+
"@douyinfe/semi-foundation": "2.53.2",
|
|
26
|
+
"@douyinfe/semi-icons": "2.53.2",
|
|
27
|
+
"@douyinfe/semi-illustrations": "2.53.2",
|
|
28
|
+
"@douyinfe/semi-theme-default": "2.53.2",
|
|
29
29
|
"async-validator": "^3.5.0",
|
|
30
30
|
"classnames": "^2.2.6",
|
|
31
31
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
],
|
|
76
76
|
"author": "",
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "89bf62ba8b59c0c2c43eaa46922fa9a1ff6a3e35",
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
81
81
|
"@babel/plugin-transform-runtime": "^7.15.8",
|