@douyinfe/semi-foundation 2.70.0 → 2.70.2-alpha.0
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/lib/cjs/lottie/foundation.d.ts +1 -1
- package/lib/cjs/tooltip/foundation.js +1 -1
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/upload/constants.d.ts +1 -1
- package/lib/es/lottie/foundation.d.ts +1 -1
- package/lib/es/tooltip/foundation.js +1 -1
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/upload/constants.d.ts +1 -1
- package/lottie/foundation.ts +2 -2
- package/package.json +3 -3
- package/tooltip/foundation.ts +2 -2
|
@@ -8,7 +8,7 @@ export interface LottieAdapter<P = Record<string, any>, S = Record<string, any>>
|
|
|
8
8
|
export interface LottieBaseProps {
|
|
9
9
|
width?: string;
|
|
10
10
|
height?: string;
|
|
11
|
-
params: ArgsType<typeof lottie.loadAnimation>[0]
|
|
11
|
+
params: Partial<ArgsType<typeof lottie.loadAnimation>[0]>;
|
|
12
12
|
getAnimationInstance?: (instance: AnimationItem | null) => void;
|
|
13
13
|
getLottie?: (lottiePKG: typeof lottie) => void;
|
|
14
14
|
}
|
|
@@ -246,7 +246,7 @@ class Tooltip extends _foundation.default {
|
|
|
246
246
|
} = this._generateEvent(trigger);
|
|
247
247
|
this._bindTriggerEvent(triggerEventSet);
|
|
248
248
|
this._bindPortalEvent(portalEventSet);
|
|
249
|
-
this._bindResizeEvent();
|
|
249
|
+
// this._bindResizeEvent();
|
|
250
250
|
}
|
|
251
251
|
unBindEvent() {
|
|
252
252
|
this._adapter.unregisterClickOutsideHandler();
|
|
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
|
|
|
83
83
|
export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
|
|
84
84
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
85
85
|
export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
|
|
86
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
86
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
|
|
87
87
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
88
88
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("custom" | "auto")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
|
@@ -8,7 +8,7 @@ export interface LottieAdapter<P = Record<string, any>, S = Record<string, any>>
|
|
|
8
8
|
export interface LottieBaseProps {
|
|
9
9
|
width?: string;
|
|
10
10
|
height?: string;
|
|
11
|
-
params: ArgsType<typeof lottie.loadAnimation>[0]
|
|
11
|
+
params: Partial<ArgsType<typeof lottie.loadAnimation>[0]>;
|
|
12
12
|
getAnimationInstance?: (instance: AnimationItem | null) => void;
|
|
13
13
|
getLottie?: (lottiePKG: typeof lottie) => void;
|
|
14
14
|
}
|
|
@@ -239,7 +239,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
239
239
|
} = this._generateEvent(trigger);
|
|
240
240
|
this._bindTriggerEvent(triggerEventSet);
|
|
241
241
|
this._bindPortalEvent(portalEventSet);
|
|
242
|
-
this._bindResizeEvent();
|
|
242
|
+
// this._bindResizeEvent();
|
|
243
243
|
}
|
|
244
244
|
unBindEvent() {
|
|
245
245
|
this._adapter.unregisterClickOutsideHandler();
|
|
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
|
|
|
83
83
|
export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
|
|
84
84
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
85
85
|
export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
|
|
86
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
86
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
|
|
87
87
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
88
88
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("custom" | "auto")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
package/lottie/foundation.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface LottieAdapter<P = Record<string, any>, S = Record<string, any>>
|
|
|
10
10
|
export interface LottieBaseProps {
|
|
11
11
|
width?: string;
|
|
12
12
|
height?: string;
|
|
13
|
-
params: ArgsType<typeof lottie.loadAnimation>[0]
|
|
13
|
+
params: Partial<ArgsType<typeof lottie.loadAnimation>[0]>;
|
|
14
14
|
getAnimationInstance?: (instance: AnimationItem|null) => void;
|
|
15
15
|
getLottie?: (lottiePKG: typeof lottie) => void
|
|
16
16
|
|
|
@@ -57,4 +57,4 @@ class LottieFoundation <P = Record<string, any>, S = Record<string, any>> extend
|
|
|
57
57
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export default LottieFoundation;
|
|
60
|
+
export default LottieFoundation;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.70.0",
|
|
3
|
+
"version": "2.70.2-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.70.0",
|
|
10
|
+
"@douyinfe/semi-animation": "2.70.2-alpha.0",
|
|
11
11
|
"@mdx-js/mdx": "^3.0.1",
|
|
12
12
|
"async-validator": "^3.5.0",
|
|
13
13
|
"classnames": "^2.2.6",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"*.scss",
|
|
29
29
|
"*.css"
|
|
30
30
|
],
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "f0fa77f737fb9d480971daacb527ae7fc078b271",
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
34
34
|
"@babel/preset-env": "^7.15.8",
|
package/tooltip/foundation.ts
CHANGED
|
@@ -108,7 +108,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
|
|
|
108
108
|
const { triggerEventSet, portalEventSet } = this._generateEvent(trigger);
|
|
109
109
|
this._bindTriggerEvent(triggerEventSet);
|
|
110
110
|
this._bindPortalEvent(portalEventSet);
|
|
111
|
-
this._bindResizeEvent();
|
|
111
|
+
// this._bindResizeEvent();
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
unBindEvent() {
|
|
@@ -191,7 +191,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
updateStateIfCursorOnTrigger = (trigger: HTMLElement)=>{
|
|
194
|
+
updateStateIfCursorOnTrigger = (trigger: HTMLElement) => {
|
|
195
195
|
if (trigger?.matches?.(":hover")) {
|
|
196
196
|
const eventNames = this._adapter.getEventName();
|
|
197
197
|
const triggerEventSet = this.getState("triggerEventSet");
|