mixlea-utils-js 0.1.13 → 0.1.15

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.
@@ -337,10 +337,10 @@ export declare function deepMultiSet<T = unknown>(target: T, assignment: Record<
337
337
 
338
338
  export declare function deepSet(obj: any, path: string | Array<string | number>, value: any): void;
339
339
 
340
- declare function dispatchEvent_2(el: any, e: EventEmit): void;
340
+ declare function dispatchEvent_2<T = any>(el: T, e: EventEmit): Promise<T>;
341
341
  export { dispatchEvent_2 as dispatchEvent }
342
342
 
343
- export declare function dispatchEvents(el: any, events: EventEmit_2[]): void;
343
+ export declare function dispatchEvents<T = any>(el: T, events: EventEmit_2[]): Promise<T>;
344
344
 
345
345
  export declare function distanceSimilarity(a: string, b: string): number;
346
346
 
@@ -462,7 +462,7 @@ export declare function extractWeightInfo(input: string): {
462
462
 
463
463
  export declare function extractWeightInfoToKg(spec: string): number | null;
464
464
 
465
- export declare function findDOMDataBubble<T = any>(start: any, dataKey: string, end?: any): T | null;
465
+ export declare function findDOMDataBubble(start: any, dataKey: string, end?: any): string | null | undefined;
466
466
 
467
467
  export declare function findHtmlElementById(id: string, defaultValue?: HTMLElement): HTMLElement | null;
468
468
 
@@ -696,6 +696,10 @@ export declare function isFormData(input: any): input is FormData;
696
696
 
697
697
  export declare function isFunction<T extends Function>(input: unknown): input is T;
698
698
 
699
+ export declare function isHtmlElement(input: any): input is HTMLElement;
700
+
701
+ export declare function isHtmlInputElement(input: any): input is HTMLInputElement;
702
+
699
703
  export declare function isMobileBrowser(): boolean;
700
704
 
701
705
  export declare function isMoreThanZero(val: any): boolean;
@@ -1183,9 +1187,9 @@ export declare function setDOMStyle(element: any, styles: Record<string, any>):
1183
1187
 
1184
1188
  export declare function setDOMStylePropertys(element: any, propertys: Record<string, any>): void;
1185
1189
 
1186
- export declare function setHtmlInputValue(input: any, value: any, opts?: {
1190
+ export declare function setHtmlInputValue<T = any>(el: T, value: any, opts?: {
1187
1191
  dispatchEvent: boolean | 'bubbles';
1188
- }): void;
1192
+ }): Promise<T>;
1189
1193
 
1190
1194
  export declare function shareAmount(totalAmount: any, target: {
1191
1195
  items: Record<string, any>[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.13",
4
+ "version": "0.1.15",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {