@whitesev/domutils 1.9.2 → 1.9.4

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.
Files changed (51) hide show
  1. package/README.md +58 -58
  2. package/dist/index.amd.js +53 -30
  3. package/dist/index.amd.js.map +1 -1
  4. package/dist/index.amd.min.js +1 -1
  5. package/dist/index.amd.min.js.map +1 -1
  6. package/dist/index.cjs.js +53 -30
  7. package/dist/index.cjs.js.map +1 -1
  8. package/dist/index.cjs.min.js +1 -1
  9. package/dist/index.cjs.min.js.map +1 -1
  10. package/dist/index.esm.js +53 -30
  11. package/dist/index.esm.js.map +1 -1
  12. package/dist/index.esm.min.js +1 -1
  13. package/dist/index.esm.min.js.map +1 -1
  14. package/dist/index.iife.js +53 -30
  15. package/dist/index.iife.js.map +1 -1
  16. package/dist/index.iife.min.js +1 -1
  17. package/dist/index.iife.min.js.map +1 -1
  18. package/dist/index.system.js +53 -30
  19. package/dist/index.system.js.map +1 -1
  20. package/dist/index.system.min.js +1 -1
  21. package/dist/index.system.min.js.map +1 -1
  22. package/dist/index.umd.js +53 -30
  23. package/dist/index.umd.js.map +1 -1
  24. package/dist/index.umd.min.js +1 -1
  25. package/dist/index.umd.min.js.map +1 -1
  26. package/dist/types/src/ElementEvent.d.ts +2 -2
  27. package/dist/types/src/types/DOMUtilsCSSProperty.d.ts +36 -36
  28. package/dist/types/src/types/DOMUtilsEvent.d.ts +437 -420
  29. package/dist/types/src/types/WindowApi.d.ts +14 -14
  30. package/dist/types/src/types/env.d.ts +10 -10
  31. package/dist/types/src/types/global.d.ts +1 -1
  32. package/dist/types/src/types/gm.d.ts +2 -2
  33. package/index.ts +3 -3
  34. package/package.json +21 -22
  35. package/src/CommonUtils.ts +163 -163
  36. package/src/ElementAnimate.ts +290 -290
  37. package/src/ElementEvent.ts +1593 -1569
  38. package/src/ElementHandler.ts +43 -43
  39. package/src/ElementSelector.ts +307 -289
  40. package/src/ElementWait.ts +742 -742
  41. package/src/GlobalData.ts +5 -5
  42. package/src/OriginPrototype.ts +5 -5
  43. package/src/Utils.ts +388 -388
  44. package/src/WindowApi.ts +59 -59
  45. package/src/index.ts +2052 -2052
  46. package/src/types/DOMUtilsCSSProperty.d.ts +36 -36
  47. package/src/types/DOMUtilsEvent.d.ts +437 -420
  48. package/src/types/WindowApi.d.ts +14 -14
  49. package/src/types/env.d.ts +10 -10
  50. package/src/types/global.d.ts +1 -1
  51. package/src/types/gm.d.ts +2 -2
@@ -1,14 +1,14 @@
1
- /**
2
- * 配置类型
3
- */
4
- export type WindowApiOption = {
5
- document: Document;
6
- window: Window & typeof globalThis;
7
- globalThis?: typeof globalThis | Window;
8
- self?: Window & typeof globalThis;
9
- top: Window;
10
- setTimeout: typeof setTimeout;
11
- clearTimeout: typeof clearTimeout;
12
- setInterval: typeof setInterval;
13
- clearInterval: typeof clearInterval;
14
- };
1
+ /**
2
+ * 配置类型
3
+ */
4
+ export type WindowApiOption = {
5
+ document: Document;
6
+ window: Window & typeof globalThis;
7
+ globalThis?: typeof globalThis | Window;
8
+ self?: Window & typeof globalThis;
9
+ top: Window;
10
+ setTimeout: typeof setTimeout;
11
+ clearTimeout: typeof clearTimeout;
12
+ setInterval: typeof setInterval;
13
+ clearInterval: typeof clearInterval;
14
+ };
@@ -1,10 +1,10 @@
1
- declare const jQuery: any;
2
- declare interface Window {
3
- webkitMutationObserver: MutationObserver;
4
- MozMutationObserver: MutationObserver;
5
- jQuery: any;
6
- // eslint-disable-next-line @typescript-eslint/consistent-type-imports
7
- DOMUtils: typeof import("./../index").DOMUtils;
8
- trustedTypes: any;
9
- }
10
- declare type IArray<T> = T | T[];
1
+ declare const jQuery: any;
2
+ declare interface Window {
3
+ webkitMutationObserver: MutationObserver;
4
+ MozMutationObserver: MutationObserver;
5
+ jQuery: any;
6
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
7
+ DOMUtils: typeof import("./../index").DOMUtils;
8
+ trustedTypes: any;
9
+ }
10
+ declare type IArray<T> = T | T[];
@@ -1 +1 @@
1
- export type DOMUtilsTargetElementType = HTMLElement | string | NodeList | HTMLElement[];
1
+ export type DOMUtilsTargetElementType = HTMLElement | string | NodeList | HTMLElement[];
package/src/types/gm.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- /** GM中的unsafeWindow */
2
- declare const unsafeWindow: Window & typeof globalThis;
1
+ /** GM中的unsafeWindow */
2
+ declare const unsafeWindow: Window & typeof globalThis;