@thednp/shorty 2.0.0-alpha2 → 2.0.0-alpha21

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 (903) hide show
  1. package/.eslintrc.cjs +224 -0
  2. package/.lgtm.yml +8 -0
  3. package/.prettierrc.json +15 -0
  4. package/README.md +9 -3
  5. package/cypress/e2e/att.cy.ts +46 -0
  6. package/cypress/e2e/boolean.cy.ts +44 -0
  7. package/cypress/e2e/class.cy.ts +28 -0
  8. package/cypress/e2e/event.cy.ts +51 -0
  9. package/cypress/e2e/get.cy.ts +168 -0
  10. package/cypress/e2e/is.cy.ts +233 -0
  11. package/cypress/e2e/misc.cy.ts +354 -0
  12. package/cypress/e2e/selectors.cy.ts +85 -0
  13. package/cypress/fixtures/custom-elem.js +18 -0
  14. package/cypress/plugins/esbuild-istanbul.ts +50 -0
  15. package/cypress/plugins/tsCompile.ts +34 -0
  16. package/cypress/support/commands.ts +37 -0
  17. package/cypress/support/e2e.ts +21 -0
  18. package/cypress/support/index.js +22 -0
  19. package/cypress/test.html +63 -0
  20. package/cypress.config.ts +30 -0
  21. package/dist/shorty.cjs +2 -0
  22. package/dist/shorty.cjs.map +1 -0
  23. package/dist/shorty.d.ts +1700 -0
  24. package/dist/shorty.js +1 -1566
  25. package/dist/shorty.js.map +1 -7
  26. package/dist/shorty.mjs +669 -0
  27. package/dist/shorty.mjs.map +1 -0
  28. package/dts.config.ts +22 -0
  29. package/package.json +72 -68
  30. package/src/attr/getAttribute.ts +1 -0
  31. package/src/attr/getAttributeNS.ts +1 -0
  32. package/src/attr/hasAttribute.ts +1 -0
  33. package/src/attr/hasAttributeNS.ts +1 -0
  34. package/src/attr/removeAttribute.ts +1 -0
  35. package/src/attr/removeAttributeNS.ts +1 -0
  36. package/src/attr/setAttribute.ts +1 -0
  37. package/src/attr/setAttributeNS.ts +1 -0
  38. package/src/boolean/isApple.ts +3 -3
  39. package/src/boolean/isFirefox.ts +2 -2
  40. package/src/boolean/isMobile.ts +3 -3
  41. package/src/boolean/support3DTransform.ts +2 -4
  42. package/src/boolean/supportAnimation.ts +2 -2
  43. package/src/boolean/supportPassive.ts +6 -5
  44. package/src/boolean/supportTouch.ts +1 -1
  45. package/src/boolean/supportTransform.ts +2 -2
  46. package/src/boolean/supportTransition.ts +2 -2
  47. package/src/event/off.ts +9 -7
  48. package/src/event/on.ts +9 -7
  49. package/src/event/one.ts +8 -7
  50. package/src/get/getBoundingClientRect.ts +4 -3
  51. package/src/get/getDocument.ts +8 -7
  52. package/src/get/getDocumentBody.ts +1 -1
  53. package/src/get/getDocumentElement.ts +1 -1
  54. package/src/get/getDocumentHead.ts +2 -2
  55. package/src/get/getElementAnimationDelay.ts +5 -5
  56. package/src/get/getElementAnimationDuration.ts +5 -5
  57. package/src/get/getElementStyle.ts +8 -7
  58. package/src/get/getElementTransitionDelay.ts +7 -5
  59. package/src/get/getElementTransitionDuration.ts +7 -5
  60. package/src/get/getParentNode.ts +2 -1
  61. package/src/get/getRectRelativeToOffsetParent.ts +3 -2
  62. package/src/get/getUID.ts +3 -3
  63. package/src/get/getWindow.ts +5 -4
  64. package/src/index.ts +37 -5
  65. package/src/interface/{boundingClientRect.ts → boundingClientRect.d.ts} +10 -10
  66. package/src/interface/css4Declaration.d.ts +4 -0
  67. package/src/interface/{customElement.ts → customElement.d.ts} +8 -8
  68. package/src/interface/event.d.ts +247 -0
  69. package/src/interface/{navigatorUA.ts → navigatorUA.d.ts} +15 -15
  70. package/src/interface/{offsetRect.ts → offsetRect.d.ts} +6 -6
  71. package/src/interface/originalEvent.d.ts +4 -0
  72. package/src/is/isArray.ts +1 -1
  73. package/src/is/isCanvas.ts +4 -2
  74. package/src/is/isCustomElement.ts +4 -3
  75. package/src/is/isDocument.ts +4 -1
  76. package/src/is/isElement.ts +8 -3
  77. package/src/is/isElementInScrollRange.ts +3 -3
  78. package/src/is/isElementInViewport.ts +3 -3
  79. package/src/is/isElementsArray.ts +3 -3
  80. package/src/is/isFunction.ts +2 -2
  81. package/src/is/isHTMLCollection.ts +4 -2
  82. package/src/is/isHTMLElement.ts +5 -2
  83. package/src/is/isHTMLImageElement.ts +5 -2
  84. package/src/is/isJSON.ts +20 -0
  85. package/src/is/isMap.ts +11 -8
  86. package/src/is/isMedia.ts +6 -4
  87. package/src/is/isNode.ts +9 -3
  88. package/src/is/isNodeList.ts +4 -2
  89. package/src/is/isNumber.ts +1 -1
  90. package/src/is/isObject.ts +2 -1
  91. package/src/is/isRTL.ts +3 -2
  92. package/src/is/isSVGElement.ts +4 -2
  93. package/src/is/isScaledElement.ts +7 -4
  94. package/src/is/isShadowRoot.ts +4 -2
  95. package/src/is/isString.ts +1 -1
  96. package/src/is/isTableElement.ts +4 -2
  97. package/src/is/isWeakMap.ts +11 -9
  98. package/src/is/isWindow.ts +4 -1
  99. package/src/misc/Float32ArrayFrom.ts +1 -0
  100. package/src/misc/Float64ArrayFrom.ts +1 -0
  101. package/src/misc/ObjectAssign.ts +35 -3
  102. package/src/misc/ObjectEntries.ts +4 -1
  103. package/src/misc/ObjectFromEntries.ts +11 -0
  104. package/src/misc/ObjectHasOwn.ts +17 -0
  105. package/src/misc/ObjectKeys.ts +3 -1
  106. package/src/misc/ObjectValues.ts +4 -1
  107. package/src/misc/{OriginalEvent.ts → createCustomEvent.ts} +10 -6
  108. package/src/misc/createElement.ts +9 -14
  109. package/src/misc/createElementNS.ts +15 -19
  110. package/src/misc/data.ts +21 -19
  111. package/src/misc/distinct.ts +1 -0
  112. package/src/misc/emulateAnimationEnd.ts +4 -4
  113. package/src/misc/emulateTransitionEnd.ts +4 -4
  114. package/src/misc/getInstance.ts +9 -0
  115. package/src/misc/noop.ts +3 -1
  116. package/src/misc/normalizeOptions.ts +6 -6
  117. package/src/misc/normalizeValue.ts +8 -8
  118. package/src/misc/setElementStyle.ts +7 -5
  119. package/src/misc/timer.ts +16 -13
  120. package/src/selectors/getCustomElements.ts +2 -1
  121. package/src/selectors/getElementsByClassName.ts +2 -2
  122. package/src/selectors/getElementsByTagName.ts +3 -3
  123. package/src/selectors/querySelector.ts +5 -4
  124. package/src/strings/DOMContentLoadedEvent.ts +1 -1
  125. package/src/strings/DOMMouseScrollEvent.ts +1 -1
  126. package/src/strings/abortEvent.ts +1 -1
  127. package/src/strings/addEventListener.ts +1 -1
  128. package/src/strings/animationDelay.ts +1 -1
  129. package/src/strings/animationDuration.ts +1 -1
  130. package/src/strings/animationEndEvent.ts +1 -1
  131. package/src/strings/animationName.ts +1 -1
  132. package/src/strings/ariaChecked.ts +1 -1
  133. package/src/strings/ariaDescribedBy.ts +1 -1
  134. package/src/strings/ariaDescription.ts +1 -1
  135. package/src/strings/ariaExpanded.ts +1 -1
  136. package/src/strings/ariaHasPopup.ts +1 -1
  137. package/src/strings/ariaHidden.ts +1 -1
  138. package/src/strings/ariaLabel.ts +1 -1
  139. package/src/strings/ariaLabelledBy.ts +1 -1
  140. package/src/strings/ariaModal.ts +1 -1
  141. package/src/strings/ariaPressed.ts +1 -1
  142. package/src/strings/ariaSelected.ts +1 -1
  143. package/src/strings/ariaValueMax.ts +1 -1
  144. package/src/strings/ariaValueMin.ts +1 -1
  145. package/src/strings/ariaValueNow.ts +1 -1
  146. package/src/strings/ariaValueText.ts +1 -1
  147. package/src/strings/beforeunloadEvent.ts +1 -1
  148. package/src/strings/bezierEasings.ts +25 -25
  149. package/src/strings/blurEvent.ts +1 -1
  150. package/src/strings/changeEvent.ts +1 -1
  151. package/src/strings/contextmenuEvent.ts +1 -1
  152. package/src/strings/dragEvent.ts +5 -0
  153. package/src/strings/dragendEvent.ts +5 -0
  154. package/src/strings/dragenterEvent.ts +5 -0
  155. package/src/strings/dragleaveEvent.ts +5 -0
  156. package/src/strings/dragoverEvent.ts +5 -0
  157. package/src/strings/dragstartEvent.ts +5 -0
  158. package/src/strings/errorEvent.ts +1 -1
  159. package/src/strings/focusEvent.ts +1 -1
  160. package/src/strings/focusEvents.ts +1 -1
  161. package/src/strings/focusinEvent.ts +1 -1
  162. package/src/strings/focusoutEvent.ts +1 -1
  163. package/src/strings/gesturechangeEvent.ts +1 -1
  164. package/src/strings/gestureendEvent.ts +1 -1
  165. package/src/strings/gesturestartEvent.ts +1 -1
  166. package/src/strings/keyAlt.ts +1 -1
  167. package/src/strings/keyArrowDown.ts +1 -1
  168. package/src/strings/keyArrowLeft.ts +1 -1
  169. package/src/strings/keyArrowRight.ts +1 -1
  170. package/src/strings/keyArrowUp.ts +1 -1
  171. package/src/strings/keyBackspace.ts +1 -1
  172. package/src/strings/keyCapsLock.ts +1 -1
  173. package/src/strings/keyControl.ts +1 -1
  174. package/src/strings/keyDelete.ts +1 -1
  175. package/src/strings/keyEnter.ts +1 -1
  176. package/src/strings/keyEscape.ts +1 -1
  177. package/src/strings/keyInsert.ts +1 -1
  178. package/src/strings/keyMeta.ts +1 -1
  179. package/src/strings/keyNumpadEnter.ts +7 -0
  180. package/src/strings/keyPause.ts +1 -1
  181. package/src/strings/keyScrollLock.ts +1 -1
  182. package/src/strings/keyShift.ts +1 -1
  183. package/src/strings/keySpace.ts +1 -1
  184. package/src/strings/keyTab.ts +1 -1
  185. package/src/strings/keyboardEventKeys.ts +19 -19
  186. package/src/strings/keydownEvent.ts +1 -1
  187. package/src/strings/keypressEvent.ts +1 -1
  188. package/src/strings/keyupEvent.ts +1 -1
  189. package/src/strings/loadEvent.ts +1 -1
  190. package/src/strings/loadstartEvent.ts +1 -1
  191. package/src/strings/mouseClickEvents.ts +1 -1
  192. package/src/strings/mouseHoverEvents.ts +3 -3
  193. package/src/strings/mouseSwipeEvents.ts +4 -4
  194. package/src/strings/mouseclickEvent.ts +1 -1
  195. package/src/strings/mousedblclickEvent.ts +1 -1
  196. package/src/strings/mousedownEvent.ts +1 -1
  197. package/src/strings/mouseenterEvent.ts +1 -1
  198. package/src/strings/mousehoverEvent.ts +1 -1
  199. package/src/strings/mouseinEvent.ts +1 -1
  200. package/src/strings/mouseleaveEvent.ts +1 -1
  201. package/src/strings/mousemoveEvent.ts +1 -1
  202. package/src/strings/mouseoutEvent.ts +1 -1
  203. package/src/strings/mouseoverEvent.ts +1 -1
  204. package/src/strings/mouseupEvent.ts +1 -1
  205. package/src/strings/mousewheelEvent.ts +1 -1
  206. package/src/strings/moveEvent.ts +1 -1
  207. package/src/strings/offsetHeight.ts +1 -1
  208. package/src/strings/offsetWidth.ts +1 -1
  209. package/src/strings/orientationchangeEvent.ts +1 -1
  210. package/src/strings/pointercancelEvent.ts +1 -1
  211. package/src/strings/pointerdownEvent.ts +1 -1
  212. package/src/strings/pointerleaveEvent.ts +1 -1
  213. package/src/strings/pointermoveEvent.ts +1 -1
  214. package/src/strings/pointerupEvent.ts +1 -1
  215. package/src/strings/readystatechangeEvent.ts +1 -1
  216. package/src/strings/removeEventListener.ts +1 -1
  217. package/src/strings/resetEvent.ts +1 -1
  218. package/src/strings/resizeEvent.ts +1 -1
  219. package/src/strings/scrollEvent.ts +1 -1
  220. package/src/strings/scrollHeight.ts +1 -1
  221. package/src/strings/scrollWidth.ts +1 -1
  222. package/src/strings/selectEvent.ts +1 -1
  223. package/src/strings/selectendEvent.ts +1 -1
  224. package/src/strings/selectstartEvent.ts +1 -1
  225. package/src/strings/submitEvent.ts +1 -1
  226. package/src/strings/tabindex.ts +1 -1
  227. package/src/strings/touchEvents.ts +4 -4
  228. package/src/strings/touchcancelEvent.ts +1 -1
  229. package/src/strings/touchendEvent.ts +1 -1
  230. package/src/strings/touchmoveEvent.ts +1 -1
  231. package/src/strings/touchstartEvent.ts +1 -1
  232. package/src/strings/transitionDelay.ts +1 -1
  233. package/src/strings/transitionDuration.ts +1 -1
  234. package/src/strings/transitionEndEvent.ts +1 -1
  235. package/src/strings/transitionProperty.ts +1 -1
  236. package/src/strings/unloadEvent.ts +1 -1
  237. package/src/strings/userAgentData.ts +2 -2
  238. package/tsconfig.json +30 -0
  239. package/vite.config.ts +30 -0
  240. package/dist/shorty.cjs.js +0 -1592
  241. package/dist/shorty.cjs.js.map +0 -7
  242. package/dist/shorty.cjs.min.js +0 -3
  243. package/dist/shorty.cjs.min.js.map +0 -7
  244. package/dist/shorty.es5.js +0 -1593
  245. package/dist/shorty.es5.js.map +0 -7
  246. package/dist/shorty.es5.min.js +0 -4
  247. package/dist/shorty.es5.min.js.map +0 -7
  248. package/dist/shorty.min.js +0 -3
  249. package/dist/shorty.min.js.map +0 -7
  250. package/src/attr/getAttribute.js +0 -2
  251. package/src/attr/getAttribute.js.map +0 -1
  252. package/src/attr/getAttributeNS.js +0 -2
  253. package/src/attr/getAttributeNS.js.map +0 -1
  254. package/src/attr/hasAttribute.js +0 -2
  255. package/src/attr/hasAttribute.js.map +0 -1
  256. package/src/attr/hasAttributeNS.js +0 -2
  257. package/src/attr/hasAttributeNS.js.map +0 -1
  258. package/src/attr/removeAttribute.js +0 -2
  259. package/src/attr/removeAttribute.js.map +0 -1
  260. package/src/attr/removeAttributeNS.js +0 -2
  261. package/src/attr/removeAttributeNS.js.map +0 -1
  262. package/src/attr/setAttribute.js +0 -2
  263. package/src/attr/setAttribute.js.map +0 -1
  264. package/src/attr/setAttributeNS.js +0 -2
  265. package/src/attr/setAttributeNS.js.map +0 -1
  266. package/src/blocks/documentBody.js +0 -2
  267. package/src/blocks/documentBody.js.map +0 -1
  268. package/src/blocks/documentElement.js +0 -2
  269. package/src/blocks/documentElement.js.map +0 -1
  270. package/src/blocks/documentHead.js +0 -2
  271. package/src/blocks/documentHead.js.map +0 -1
  272. package/src/boolean/isApple.js +0 -7
  273. package/src/boolean/isApple.js.map +0 -1
  274. package/src/boolean/isFirefox.js +0 -3
  275. package/src/boolean/isFirefox.js.map +0 -1
  276. package/src/boolean/isMobile.js +0 -12
  277. package/src/boolean/isMobile.js.map +0 -1
  278. package/src/boolean/support3DTransform.js +0 -3
  279. package/src/boolean/support3DTransform.js.map +0 -1
  280. package/src/boolean/supportAnimation.js +0 -3
  281. package/src/boolean/supportAnimation.js.map +0 -1
  282. package/src/boolean/supportPassive.js +0 -18
  283. package/src/boolean/supportPassive.js.map +0 -1
  284. package/src/boolean/supportTouch.js +0 -2
  285. package/src/boolean/supportTouch.js.map +0 -1
  286. package/src/boolean/supportTransform.js +0 -3
  287. package/src/boolean/supportTransform.js.map +0 -1
  288. package/src/boolean/supportTransition.js +0 -3
  289. package/src/boolean/supportTransition.js.map +0 -1
  290. package/src/class/addClass.js +0 -4
  291. package/src/class/addClass.js.map +0 -1
  292. package/src/class/hasClass.js +0 -4
  293. package/src/class/hasClass.js.map +0 -1
  294. package/src/class/removeClass.js +0 -4
  295. package/src/class/removeClass.js.map +0 -1
  296. package/src/event/off.js +0 -4
  297. package/src/event/off.js.map +0 -1
  298. package/src/event/on.js +0 -4
  299. package/src/event/on.js.map +0 -1
  300. package/src/event/one.js +0 -12
  301. package/src/event/one.js.map +0 -1
  302. package/src/get/getBoundingClientRect.js +0 -22
  303. package/src/get/getBoundingClientRect.js.map +0 -1
  304. package/src/get/getDocument.js +0 -13
  305. package/src/get/getDocument.js.map +0 -1
  306. package/src/get/getDocumentBody.js +0 -5
  307. package/src/get/getDocumentBody.js.map +0 -1
  308. package/src/get/getDocumentElement.js +0 -5
  309. package/src/get/getDocumentElement.js.map +0 -1
  310. package/src/get/getDocumentHead.js +0 -5
  311. package/src/get/getDocumentHead.js.map +0 -1
  312. package/src/get/getElementAnimationDelay.js +0 -11
  313. package/src/get/getElementAnimationDelay.js.map +0 -1
  314. package/src/get/getElementAnimationDuration.js +0 -11
  315. package/src/get/getElementAnimationDuration.js.map +0 -1
  316. package/src/get/getElementStyle.js +0 -7
  317. package/src/get/getElementStyle.js.map +0 -1
  318. package/src/get/getElementTransitionDelay.js +0 -11
  319. package/src/get/getElementTransitionDelay.js.map +0 -1
  320. package/src/get/getElementTransitionDuration.js +0 -11
  321. package/src/get/getElementTransitionDuration.js.map +0 -1
  322. package/src/get/getNodeScroll.js +0 -8
  323. package/src/get/getNodeScroll.js.map +0 -1
  324. package/src/get/getParentNode.js +0 -14
  325. package/src/get/getParentNode.js.map +0 -1
  326. package/src/get/getRectRelativeToOffsetParent.js +0 -20
  327. package/src/get/getRectRelativeToOffsetParent.js.map +0 -1
  328. package/src/get/getUID.js +0 -31
  329. package/src/get/getUID.js.map +0 -1
  330. package/src/get/getWindow.js +0 -12
  331. package/src/get/getWindow.js.map +0 -1
  332. package/src/index.js +0 -416
  333. package/src/index.js.map +0 -1
  334. package/src/interface/boundingClientRect.js +0 -1
  335. package/src/interface/boundingClientRect.js.map +0 -1
  336. package/src/interface/css4Declaration.js +0 -1
  337. package/src/interface/css4Declaration.js.map +0 -1
  338. package/src/interface/css4Declaration.ts +0 -3
  339. package/src/interface/customElement.js +0 -1
  340. package/src/interface/customElement.js.map +0 -1
  341. package/src/interface/navigatorUA.js +0 -1
  342. package/src/interface/navigatorUA.js.map +0 -1
  343. package/src/interface/offsetRect.js +0 -1
  344. package/src/interface/offsetRect.js.map +0 -1
  345. package/src/interface/originalEvent.js +0 -1
  346. package/src/interface/originalEvent.js.map +0 -1
  347. package/src/interface/originalEvent.ts +0 -3
  348. package/src/is/isArray.js +0 -2
  349. package/src/is/isArray.js.map +0 -1
  350. package/src/is/isCanvas.js +0 -2
  351. package/src/is/isCanvas.js.map +0 -1
  352. package/src/is/isCustomElement.js +0 -2
  353. package/src/is/isCustomElement.js.map +0 -1
  354. package/src/is/isDocument.js +0 -2
  355. package/src/is/isDocument.js.map +0 -1
  356. package/src/is/isElement.js +0 -2
  357. package/src/is/isElement.js.map +0 -1
  358. package/src/is/isElementInScrollRange.js +0 -11
  359. package/src/is/isElementInScrollRange.js.map +0 -1
  360. package/src/is/isElementInViewport.js +0 -11
  361. package/src/is/isElementInViewport.js.map +0 -1
  362. package/src/is/isElementsArray.js +0 -4
  363. package/src/is/isElementsArray.js.map +0 -1
  364. package/src/is/isFunction.js +0 -2
  365. package/src/is/isFunction.js.map +0 -1
  366. package/src/is/isHTMLCollection.js +0 -2
  367. package/src/is/isHTMLCollection.js.map +0 -1
  368. package/src/is/isHTMLElement.js +0 -2
  369. package/src/is/isHTMLElement.js.map +0 -1
  370. package/src/is/isHTMLImageElement.js +0 -2
  371. package/src/is/isHTMLImageElement.js.map +0 -1
  372. package/src/is/isMap.js +0 -2
  373. package/src/is/isMap.js.map +0 -1
  374. package/src/is/isMedia.js +0 -5
  375. package/src/is/isMedia.js.map +0 -1
  376. package/src/is/isNode.js +0 -2
  377. package/src/is/isNode.js.map +0 -1
  378. package/src/is/isNodeList.js +0 -2
  379. package/src/is/isNodeList.js.map +0 -1
  380. package/src/is/isNumber.js +0 -2
  381. package/src/is/isNumber.js.map +0 -1
  382. package/src/is/isObject.js +0 -2
  383. package/src/is/isObject.js.map +0 -1
  384. package/src/is/isRTL.js +0 -3
  385. package/src/is/isRTL.js.map +0 -1
  386. package/src/is/isSVGElement.js +0 -2
  387. package/src/is/isSVGElement.js.map +0 -1
  388. package/src/is/isScaledElement.js +0 -9
  389. package/src/is/isScaledElement.js.map +0 -1
  390. package/src/is/isShadowRoot.js +0 -2
  391. package/src/is/isShadowRoot.js.map +0 -1
  392. package/src/is/isString.js +0 -2
  393. package/src/is/isString.js.map +0 -1
  394. package/src/is/isTableElement.js +0 -2
  395. package/src/is/isTableElement.js.map +0 -1
  396. package/src/is/isWeakMap.js +0 -2
  397. package/src/is/isWeakMap.js.map +0 -1
  398. package/src/is/isWindow.js +0 -2
  399. package/src/is/isWindow.js.map +0 -1
  400. package/src/misc/ArrayFrom.js +0 -2
  401. package/src/misc/ArrayFrom.js.map +0 -1
  402. package/src/misc/Float32ArrayFrom.js +0 -2
  403. package/src/misc/Float32ArrayFrom.js.map +0 -1
  404. package/src/misc/Float64ArrayFrom.js +0 -2
  405. package/src/misc/Float64ArrayFrom.js.map +0 -1
  406. package/src/misc/ObjectAssign.js +0 -2
  407. package/src/misc/ObjectAssign.js.map +0 -1
  408. package/src/misc/ObjectEntries.js +0 -2
  409. package/src/misc/ObjectEntries.js.map +0 -1
  410. package/src/misc/ObjectKeys.js +0 -2
  411. package/src/misc/ObjectKeys.js.map +0 -1
  412. package/src/misc/ObjectValues.js +0 -2
  413. package/src/misc/ObjectValues.js.map +0 -1
  414. package/src/misc/OriginalEvent.js +0 -13
  415. package/src/misc/OriginalEvent.js.map +0 -1
  416. package/src/misc/createElement.js +0 -24
  417. package/src/misc/createElement.js.map +0 -1
  418. package/src/misc/createElementNS.js +0 -24
  419. package/src/misc/createElementNS.js.map +0 -1
  420. package/src/misc/data.js +0 -35
  421. package/src/misc/data.js.map +0 -1
  422. package/src/misc/dispatchEvent.js +0 -2
  423. package/src/misc/dispatchEvent.js.map +0 -1
  424. package/src/misc/distinct.js +0 -2
  425. package/src/misc/distinct.js.map +0 -1
  426. package/src/misc/emulateAnimationEnd.js +0 -28
  427. package/src/misc/emulateAnimationEnd.js.map +0 -1
  428. package/src/misc/emulateTransitionEnd.js +0 -28
  429. package/src/misc/emulateTransitionEnd.js.map +0 -1
  430. package/src/misc/focus.js +0 -2
  431. package/src/misc/focus.js.map +0 -1
  432. package/src/misc/noop.js +0 -2
  433. package/src/misc/noop.js.map +0 -1
  434. package/src/misc/normalizeOptions.js +0 -33
  435. package/src/misc/normalizeOptions.js.map +0 -1
  436. package/src/misc/normalizeValue.js +0 -16
  437. package/src/misc/normalizeValue.js.map +0 -1
  438. package/src/misc/passiveHandler.js +0 -2
  439. package/src/misc/passiveHandler.js.map +0 -1
  440. package/src/misc/reflow.js +0 -2
  441. package/src/misc/reflow.js.map +0 -1
  442. package/src/misc/setElementStyle.js +0 -15
  443. package/src/misc/setElementStyle.js.map +0 -1
  444. package/src/misc/timer.js +0 -50
  445. package/src/misc/timer.js.map +0 -1
  446. package/src/misc/toLowerCase.js +0 -2
  447. package/src/misc/toLowerCase.js.map +0 -1
  448. package/src/misc/toUpperCase.js +0 -2
  449. package/src/misc/toUpperCase.js.map +0 -1
  450. package/src/selectors/closest.js +0 -7
  451. package/src/selectors/closest.js.map +0 -1
  452. package/src/selectors/getCustomElements.js +0 -7
  453. package/src/selectors/getCustomElements.js.map +0 -1
  454. package/src/selectors/getElementById.js +0 -5
  455. package/src/selectors/getElementById.js.map +0 -1
  456. package/src/selectors/getElementsByClassName.js +0 -7
  457. package/src/selectors/getElementsByClassName.js.map +0 -1
  458. package/src/selectors/getElementsByTagName.js +0 -7
  459. package/src/selectors/getElementsByTagName.js.map +0 -1
  460. package/src/selectors/matches.js +0 -2
  461. package/src/selectors/matches.js.map +0 -1
  462. package/src/selectors/querySelector.js +0 -10
  463. package/src/selectors/querySelector.js.map +0 -1
  464. package/src/selectors/querySelectorAll.js +0 -7
  465. package/src/selectors/querySelectorAll.js.map +0 -1
  466. package/src/strings/DOMContentLoadedEvent.js +0 -2
  467. package/src/strings/DOMContentLoadedEvent.js.map +0 -1
  468. package/src/strings/DOMMouseScrollEvent.js +0 -2
  469. package/src/strings/DOMMouseScrollEvent.js.map +0 -1
  470. package/src/strings/abortEvent.js +0 -2
  471. package/src/strings/abortEvent.js.map +0 -1
  472. package/src/strings/addEventListener.js +0 -2
  473. package/src/strings/addEventListener.js.map +0 -1
  474. package/src/strings/animationDelay.js +0 -2
  475. package/src/strings/animationDelay.js.map +0 -1
  476. package/src/strings/animationDuration.js +0 -2
  477. package/src/strings/animationDuration.js.map +0 -1
  478. package/src/strings/animationEndEvent.js +0 -2
  479. package/src/strings/animationEndEvent.js.map +0 -1
  480. package/src/strings/animationName.js +0 -2
  481. package/src/strings/animationName.js.map +0 -1
  482. package/src/strings/ariaChecked.js +0 -2
  483. package/src/strings/ariaChecked.js.map +0 -1
  484. package/src/strings/ariaDescribedBy.js +0 -2
  485. package/src/strings/ariaDescribedBy.js.map +0 -1
  486. package/src/strings/ariaDescription.js +0 -2
  487. package/src/strings/ariaDescription.js.map +0 -1
  488. package/src/strings/ariaExpanded.js +0 -2
  489. package/src/strings/ariaExpanded.js.map +0 -1
  490. package/src/strings/ariaHasPopup.js +0 -2
  491. package/src/strings/ariaHasPopup.js.map +0 -1
  492. package/src/strings/ariaHidden.js +0 -2
  493. package/src/strings/ariaHidden.js.map +0 -1
  494. package/src/strings/ariaLabel.js +0 -2
  495. package/src/strings/ariaLabel.js.map +0 -1
  496. package/src/strings/ariaLabelledBy.js +0 -2
  497. package/src/strings/ariaLabelledBy.js.map +0 -1
  498. package/src/strings/ariaModal.js +0 -2
  499. package/src/strings/ariaModal.js.map +0 -1
  500. package/src/strings/ariaPressed.js +0 -2
  501. package/src/strings/ariaPressed.js.map +0 -1
  502. package/src/strings/ariaSelected.js +0 -2
  503. package/src/strings/ariaSelected.js.map +0 -1
  504. package/src/strings/ariaValueMax.js +0 -2
  505. package/src/strings/ariaValueMax.js.map +0 -1
  506. package/src/strings/ariaValueMin.js +0 -2
  507. package/src/strings/ariaValueMin.js.map +0 -1
  508. package/src/strings/ariaValueNow.js +0 -2
  509. package/src/strings/ariaValueNow.js.map +0 -1
  510. package/src/strings/ariaValueText.js +0 -2
  511. package/src/strings/ariaValueText.js.map +0 -1
  512. package/src/strings/beforeunloadEvent.js +0 -2
  513. package/src/strings/beforeunloadEvent.js.map +0 -1
  514. package/src/strings/bezierEasings.js +0 -28
  515. package/src/strings/bezierEasings.js.map +0 -1
  516. package/src/strings/blurEvent.js +0 -2
  517. package/src/strings/blurEvent.js.map +0 -1
  518. package/src/strings/changeEvent.js +0 -2
  519. package/src/strings/changeEvent.js.map +0 -1
  520. package/src/strings/contextmenuEvent.js +0 -2
  521. package/src/strings/contextmenuEvent.js.map +0 -1
  522. package/src/strings/errorEvent.js +0 -2
  523. package/src/strings/errorEvent.js.map +0 -1
  524. package/src/strings/focusEvent.js +0 -2
  525. package/src/strings/focusEvent.js.map +0 -1
  526. package/src/strings/focusEvents.js +0 -2
  527. package/src/strings/focusEvents.js.map +0 -1
  528. package/src/strings/focusinEvent.js +0 -2
  529. package/src/strings/focusinEvent.js.map +0 -1
  530. package/src/strings/focusoutEvent.js +0 -2
  531. package/src/strings/focusoutEvent.js.map +0 -1
  532. package/src/strings/gesturechangeEvent.js +0 -2
  533. package/src/strings/gesturechangeEvent.js.map +0 -1
  534. package/src/strings/gestureendEvent.js +0 -2
  535. package/src/strings/gestureendEvent.js.map +0 -1
  536. package/src/strings/gesturestartEvent.js +0 -2
  537. package/src/strings/gesturestartEvent.js.map +0 -1
  538. package/src/strings/keyAlt.js +0 -2
  539. package/src/strings/keyAlt.js.map +0 -1
  540. package/src/strings/keyArrowDown.js +0 -2
  541. package/src/strings/keyArrowDown.js.map +0 -1
  542. package/src/strings/keyArrowLeft.js +0 -2
  543. package/src/strings/keyArrowLeft.js.map +0 -1
  544. package/src/strings/keyArrowRight.js +0 -2
  545. package/src/strings/keyArrowRight.js.map +0 -1
  546. package/src/strings/keyArrowUp.js +0 -2
  547. package/src/strings/keyArrowUp.js.map +0 -1
  548. package/src/strings/keyBackspace.js +0 -2
  549. package/src/strings/keyBackspace.js.map +0 -1
  550. package/src/strings/keyCapsLock.js +0 -2
  551. package/src/strings/keyCapsLock.js.map +0 -1
  552. package/src/strings/keyControl.js +0 -2
  553. package/src/strings/keyControl.js.map +0 -1
  554. package/src/strings/keyDelete.js +0 -2
  555. package/src/strings/keyDelete.js.map +0 -1
  556. package/src/strings/keyEnter.js +0 -2
  557. package/src/strings/keyEnter.js.map +0 -1
  558. package/src/strings/keyEscape.js +0 -2
  559. package/src/strings/keyEscape.js.map +0 -1
  560. package/src/strings/keyInsert.js +0 -2
  561. package/src/strings/keyInsert.js.map +0 -1
  562. package/src/strings/keyMeta.js +0 -2
  563. package/src/strings/keyMeta.js.map +0 -1
  564. package/src/strings/keyPause.js +0 -2
  565. package/src/strings/keyPause.js.map +0 -1
  566. package/src/strings/keyScrollLock.js +0 -2
  567. package/src/strings/keyScrollLock.js.map +0 -1
  568. package/src/strings/keyShift.js +0 -2
  569. package/src/strings/keyShift.js.map +0 -1
  570. package/src/strings/keySpace.js +0 -2
  571. package/src/strings/keySpace.js.map +0 -1
  572. package/src/strings/keyTab.js +0 -2
  573. package/src/strings/keyTab.js.map +0 -1
  574. package/src/strings/keyboardEventKeys.js +0 -22
  575. package/src/strings/keyboardEventKeys.js.map +0 -1
  576. package/src/strings/keydownEvent.js +0 -2
  577. package/src/strings/keydownEvent.js.map +0 -1
  578. package/src/strings/keypressEvent.js +0 -2
  579. package/src/strings/keypressEvent.js.map +0 -1
  580. package/src/strings/keyupEvent.js +0 -2
  581. package/src/strings/keyupEvent.js.map +0 -1
  582. package/src/strings/loadEvent.js +0 -2
  583. package/src/strings/loadEvent.js.map +0 -1
  584. package/src/strings/loadstartEvent.js +0 -2
  585. package/src/strings/loadstartEvent.js.map +0 -1
  586. package/src/strings/mouseClickEvents.js +0 -2
  587. package/src/strings/mouseClickEvents.js.map +0 -1
  588. package/src/strings/mouseHoverEvents.js +0 -4
  589. package/src/strings/mouseHoverEvents.js.map +0 -1
  590. package/src/strings/mouseSwipeEvents.js +0 -7
  591. package/src/strings/mouseSwipeEvents.js.map +0 -1
  592. package/src/strings/mouseclickEvent.js +0 -2
  593. package/src/strings/mouseclickEvent.js.map +0 -1
  594. package/src/strings/mousedblclickEvent.js +0 -2
  595. package/src/strings/mousedblclickEvent.js.map +0 -1
  596. package/src/strings/mousedownEvent.js +0 -2
  597. package/src/strings/mousedownEvent.js.map +0 -1
  598. package/src/strings/mouseenterEvent.js +0 -2
  599. package/src/strings/mouseenterEvent.js.map +0 -1
  600. package/src/strings/mousehoverEvent.js +0 -2
  601. package/src/strings/mousehoverEvent.js.map +0 -1
  602. package/src/strings/mouseinEvent.js +0 -2
  603. package/src/strings/mouseinEvent.js.map +0 -1
  604. package/src/strings/mouseleaveEvent.js +0 -2
  605. package/src/strings/mouseleaveEvent.js.map +0 -1
  606. package/src/strings/mousemoveEvent.js +0 -2
  607. package/src/strings/mousemoveEvent.js.map +0 -1
  608. package/src/strings/mouseoutEvent.js +0 -2
  609. package/src/strings/mouseoutEvent.js.map +0 -1
  610. package/src/strings/mouseoverEvent.js +0 -2
  611. package/src/strings/mouseoverEvent.js.map +0 -1
  612. package/src/strings/mouseupEvent.js +0 -2
  613. package/src/strings/mouseupEvent.js.map +0 -1
  614. package/src/strings/mousewheelEvent.js +0 -2
  615. package/src/strings/mousewheelEvent.js.map +0 -1
  616. package/src/strings/moveEvent.js +0 -2
  617. package/src/strings/moveEvent.js.map +0 -1
  618. package/src/strings/nativeEvents.js +0 -103
  619. package/src/strings/nativeEvents.js.map +0 -1
  620. package/src/strings/offsetHeight.js +0 -2
  621. package/src/strings/offsetHeight.js.map +0 -1
  622. package/src/strings/offsetWidth.js +0 -2
  623. package/src/strings/offsetWidth.js.map +0 -1
  624. package/src/strings/orientationchangeEvent.js +0 -2
  625. package/src/strings/orientationchangeEvent.js.map +0 -1
  626. package/src/strings/pointercancelEvent.js +0 -2
  627. package/src/strings/pointercancelEvent.js.map +0 -1
  628. package/src/strings/pointerdownEvent.js +0 -2
  629. package/src/strings/pointerdownEvent.js.map +0 -1
  630. package/src/strings/pointerleaveEvent.js +0 -2
  631. package/src/strings/pointerleaveEvent.js.map +0 -1
  632. package/src/strings/pointermoveEvent.js +0 -2
  633. package/src/strings/pointermoveEvent.js.map +0 -1
  634. package/src/strings/pointerupEvent.js +0 -2
  635. package/src/strings/pointerupEvent.js.map +0 -1
  636. package/src/strings/readystatechangeEvent.js +0 -2
  637. package/src/strings/readystatechangeEvent.js.map +0 -1
  638. package/src/strings/removeEventListener.js +0 -2
  639. package/src/strings/removeEventListener.js.map +0 -1
  640. package/src/strings/resetEvent.js +0 -2
  641. package/src/strings/resetEvent.js.map +0 -1
  642. package/src/strings/resizeEvent.js +0 -2
  643. package/src/strings/resizeEvent.js.map +0 -1
  644. package/src/strings/scrollEvent.js +0 -2
  645. package/src/strings/scrollEvent.js.map +0 -1
  646. package/src/strings/scrollHeight.js +0 -2
  647. package/src/strings/scrollHeight.js.map +0 -1
  648. package/src/strings/scrollWidth.js +0 -2
  649. package/src/strings/scrollWidth.js.map +0 -1
  650. package/src/strings/selectEvent.js +0 -2
  651. package/src/strings/selectEvent.js.map +0 -1
  652. package/src/strings/selectendEvent.js +0 -2
  653. package/src/strings/selectendEvent.js.map +0 -1
  654. package/src/strings/selectstartEvent.js +0 -2
  655. package/src/strings/selectstartEvent.js.map +0 -1
  656. package/src/strings/submitEvent.js +0 -2
  657. package/src/strings/submitEvent.js.map +0 -1
  658. package/src/strings/tabindex.js +0 -2
  659. package/src/strings/tabindex.js.map +0 -1
  660. package/src/strings/touchEvents.js +0 -7
  661. package/src/strings/touchEvents.js.map +0 -1
  662. package/src/strings/touchcancelEvent.js +0 -2
  663. package/src/strings/touchcancelEvent.js.map +0 -1
  664. package/src/strings/touchendEvent.js +0 -2
  665. package/src/strings/touchendEvent.js.map +0 -1
  666. package/src/strings/touchmoveEvent.js +0 -2
  667. package/src/strings/touchmoveEvent.js.map +0 -1
  668. package/src/strings/touchstartEvent.js +0 -2
  669. package/src/strings/touchstartEvent.js.map +0 -1
  670. package/src/strings/transitionDelay.js +0 -2
  671. package/src/strings/transitionDelay.js.map +0 -1
  672. package/src/strings/transitionDuration.js +0 -2
  673. package/src/strings/transitionDuration.js.map +0 -1
  674. package/src/strings/transitionEndEvent.js +0 -2
  675. package/src/strings/transitionEndEvent.js.map +0 -1
  676. package/src/strings/transitionProperty.js +0 -2
  677. package/src/strings/transitionProperty.js.map +0 -1
  678. package/src/strings/unloadEvent.js +0 -2
  679. package/src/strings/unloadEvent.js.map +0 -1
  680. package/src/strings/userAgent.js +0 -3
  681. package/src/strings/userAgent.js.map +0 -1
  682. package/src/strings/userAgentData.js +0 -3
  683. package/src/strings/userAgentData.js.map +0 -1
  684. package/src/types.js +0 -1
  685. package/src/types.js.map +0 -1
  686. package/src/types.ts +0 -1
  687. package/types/attr/getAttribute.d.ts +0 -2
  688. package/types/attr/getAttributeNS.d.ts +0 -2
  689. package/types/attr/hasAttribute.d.ts +0 -2
  690. package/types/attr/hasAttributeNS.d.ts +0 -2
  691. package/types/attr/removeAttribute.d.ts +0 -2
  692. package/types/attr/removeAttributeNS.d.ts +0 -2
  693. package/types/attr/setAttribute.d.ts +0 -2
  694. package/types/attr/setAttributeNS.d.ts +0 -2
  695. package/types/blocks/documentBody.d.ts +0 -2
  696. package/types/blocks/documentElement.d.ts +0 -2
  697. package/types/blocks/documentHead.d.ts +0 -2
  698. package/types/boolean/isApple.d.ts +0 -2
  699. package/types/boolean/isFirefox.d.ts +0 -2
  700. package/types/boolean/isMobile.d.ts +0 -2
  701. package/types/boolean/support3DTransform.d.ts +0 -2
  702. package/types/boolean/supportAnimation.d.ts +0 -2
  703. package/types/boolean/supportPassive.d.ts +0 -2
  704. package/types/boolean/supportTouch.d.ts +0 -2
  705. package/types/boolean/supportTransform.d.ts +0 -2
  706. package/types/boolean/supportTransition.d.ts +0 -2
  707. package/types/class/addClass.d.ts +0 -2
  708. package/types/class/hasClass.d.ts +0 -2
  709. package/types/class/removeClass.d.ts +0 -2
  710. package/types/event/off.d.ts +0 -1
  711. package/types/event/on.d.ts +0 -1
  712. package/types/event/one.d.ts +0 -2
  713. package/types/get/getBoundingClientRect.d.ts +0 -3
  714. package/types/get/getDocument.d.ts +0 -2
  715. package/types/get/getDocumentBody.d.ts +0 -2
  716. package/types/get/getDocumentElement.d.ts +0 -2
  717. package/types/get/getDocumentHead.d.ts +0 -2
  718. package/types/get/getElementAnimationDelay.d.ts +0 -2
  719. package/types/get/getElementAnimationDuration.d.ts +0 -2
  720. package/types/get/getElementStyle.d.ts +0 -2
  721. package/types/get/getElementTransitionDelay.d.ts +0 -2
  722. package/types/get/getElementTransitionDuration.d.ts +0 -2
  723. package/types/get/getNodeScroll.d.ts +0 -5
  724. package/types/get/getParentNode.d.ts +0 -2
  725. package/types/get/getRectRelativeToOffsetParent.d.ts +0 -6
  726. package/types/get/getUID.d.ts +0 -2
  727. package/types/get/getWindow.d.ts +0 -2
  728. package/types/index.d.ts +0 -351
  729. package/types/interface/boundingClientRect.d.ts +0 -10
  730. package/types/interface/css4Declaration.d.ts +0 -3
  731. package/types/interface/customElement.d.ts +0 -8
  732. package/types/interface/navigatorUA.d.ts +0 -12
  733. package/types/interface/offsetRect.d.ts +0 -6
  734. package/types/interface/originalEvent.d.ts +0 -3
  735. package/types/is/isArray.d.ts +0 -2
  736. package/types/is/isCanvas.d.ts +0 -2
  737. package/types/is/isCustomElement.d.ts +0 -3
  738. package/types/is/isDocument.d.ts +0 -2
  739. package/types/is/isElement.d.ts +0 -2
  740. package/types/is/isElementInScrollRange.d.ts +0 -2
  741. package/types/is/isElementInViewport.d.ts +0 -2
  742. package/types/is/isElementsArray.d.ts +0 -2
  743. package/types/is/isFunction.d.ts +0 -2
  744. package/types/is/isHTMLCollection.d.ts +0 -2
  745. package/types/is/isHTMLElement.d.ts +0 -2
  746. package/types/is/isHTMLImageElement.d.ts +0 -2
  747. package/types/is/isMap.d.ts +0 -2
  748. package/types/is/isMedia.d.ts +0 -2
  749. package/types/is/isNode.d.ts +0 -2
  750. package/types/is/isNodeList.d.ts +0 -2
  751. package/types/is/isNumber.d.ts +0 -2
  752. package/types/is/isObject.d.ts +0 -2
  753. package/types/is/isRTL.d.ts +0 -2
  754. package/types/is/isSVGElement.d.ts +0 -2
  755. package/types/is/isScaledElement.d.ts +0 -1
  756. package/types/is/isShadowRoot.d.ts +0 -2
  757. package/types/is/isString.d.ts +0 -2
  758. package/types/is/isTableElement.d.ts +0 -2
  759. package/types/is/isWeakMap.d.ts +0 -2
  760. package/types/is/isWindow.d.ts +0 -2
  761. package/types/misc/ArrayFrom.d.ts +0 -2
  762. package/types/misc/Float32ArrayFrom.d.ts +0 -2
  763. package/types/misc/Float64ArrayFrom.d.ts +0 -2
  764. package/types/misc/ObjectAssign.d.ts +0 -2
  765. package/types/misc/ObjectEntries.d.ts +0 -2
  766. package/types/misc/ObjectKeys.d.ts +0 -2
  767. package/types/misc/ObjectValues.d.ts +0 -2
  768. package/types/misc/OriginalEvent.d.ts +0 -3
  769. package/types/misc/createElement.d.ts +0 -2
  770. package/types/misc/createElementNS.d.ts +0 -2
  771. package/types/misc/data.d.ts +0 -10
  772. package/types/misc/dispatchEvent.d.ts +0 -2
  773. package/types/misc/distinct.d.ts +0 -2
  774. package/types/misc/emulateAnimationEnd.d.ts +0 -2
  775. package/types/misc/emulateTransitionEnd.d.ts +0 -2
  776. package/types/misc/focus.d.ts +0 -2
  777. package/types/misc/noop.d.ts +0 -2
  778. package/types/misc/normalizeOptions.d.ts +0 -5
  779. package/types/misc/normalizeValue.d.ts +0 -3
  780. package/types/misc/passiveHandler.d.ts +0 -2
  781. package/types/misc/reflow.d.ts +0 -2
  782. package/types/misc/setElementStyle.d.ts +0 -3
  783. package/types/misc/timer.d.ts +0 -6
  784. package/types/misc/toLowerCase.d.ts +0 -2
  785. package/types/misc/toUpperCase.d.ts +0 -2
  786. package/types/selectors/closest.d.ts +0 -2
  787. package/types/selectors/getCustomElements.d.ts +0 -3
  788. package/types/selectors/getElementById.d.ts +0 -2
  789. package/types/selectors/getElementsByClassName.d.ts +0 -2
  790. package/types/selectors/getElementsByTagName.d.ts +0 -2
  791. package/types/selectors/matches.d.ts +0 -2
  792. package/types/selectors/querySelector.d.ts +0 -2
  793. package/types/selectors/querySelectorAll.d.ts +0 -2
  794. package/types/strings/DOMContentLoadedEvent.d.ts +0 -2
  795. package/types/strings/DOMMouseScrollEvent.d.ts +0 -2
  796. package/types/strings/abortEvent.d.ts +0 -2
  797. package/types/strings/addEventListener.d.ts +0 -2
  798. package/types/strings/animationDelay.d.ts +0 -2
  799. package/types/strings/animationDuration.d.ts +0 -2
  800. package/types/strings/animationEndEvent.d.ts +0 -2
  801. package/types/strings/animationName.d.ts +0 -2
  802. package/types/strings/ariaChecked.d.ts +0 -2
  803. package/types/strings/ariaDescribedBy.d.ts +0 -2
  804. package/types/strings/ariaDescription.d.ts +0 -2
  805. package/types/strings/ariaExpanded.d.ts +0 -2
  806. package/types/strings/ariaHasPopup.d.ts +0 -2
  807. package/types/strings/ariaHidden.d.ts +0 -2
  808. package/types/strings/ariaLabel.d.ts +0 -2
  809. package/types/strings/ariaLabelledBy.d.ts +0 -2
  810. package/types/strings/ariaModal.d.ts +0 -2
  811. package/types/strings/ariaPressed.d.ts +0 -2
  812. package/types/strings/ariaSelected.d.ts +0 -2
  813. package/types/strings/ariaValueMax.d.ts +0 -2
  814. package/types/strings/ariaValueMin.d.ts +0 -2
  815. package/types/strings/ariaValueNow.d.ts +0 -2
  816. package/types/strings/ariaValueText.d.ts +0 -2
  817. package/types/strings/beforeunloadEvent.d.ts +0 -2
  818. package/types/strings/bezierEasings.d.ts +0 -28
  819. package/types/strings/blurEvent.d.ts +0 -2
  820. package/types/strings/changeEvent.d.ts +0 -2
  821. package/types/strings/contextmenuEvent.d.ts +0 -2
  822. package/types/strings/errorEvent.d.ts +0 -2
  823. package/types/strings/focusEvent.d.ts +0 -2
  824. package/types/strings/focusEvents.d.ts +0 -5
  825. package/types/strings/focusinEvent.d.ts +0 -2
  826. package/types/strings/focusoutEvent.d.ts +0 -2
  827. package/types/strings/gesturechangeEvent.d.ts +0 -2
  828. package/types/strings/gestureendEvent.d.ts +0 -2
  829. package/types/strings/gesturestartEvent.d.ts +0 -2
  830. package/types/strings/keyAlt.d.ts +0 -2
  831. package/types/strings/keyArrowDown.d.ts +0 -2
  832. package/types/strings/keyArrowLeft.d.ts +0 -2
  833. package/types/strings/keyArrowRight.d.ts +0 -2
  834. package/types/strings/keyArrowUp.d.ts +0 -2
  835. package/types/strings/keyBackspace.d.ts +0 -2
  836. package/types/strings/keyCapsLock.d.ts +0 -2
  837. package/types/strings/keyControl.d.ts +0 -2
  838. package/types/strings/keyDelete.d.ts +0 -2
  839. package/types/strings/keyEnter.d.ts +0 -2
  840. package/types/strings/keyEscape.d.ts +0 -2
  841. package/types/strings/keyInsert.d.ts +0 -2
  842. package/types/strings/keyMeta.d.ts +0 -2
  843. package/types/strings/keyPause.d.ts +0 -2
  844. package/types/strings/keyScrollLock.d.ts +0 -2
  845. package/types/strings/keyShift.d.ts +0 -2
  846. package/types/strings/keySpace.d.ts +0 -2
  847. package/types/strings/keyTab.d.ts +0 -2
  848. package/types/strings/keyboardEventKeys.d.ts +0 -22
  849. package/types/strings/keydownEvent.d.ts +0 -2
  850. package/types/strings/keypressEvent.d.ts +0 -2
  851. package/types/strings/keyupEvent.d.ts +0 -2
  852. package/types/strings/loadEvent.d.ts +0 -2
  853. package/types/strings/loadstartEvent.d.ts +0 -2
  854. package/types/strings/mouseClickEvents.d.ts +0 -5
  855. package/types/strings/mouseHoverEvents.d.ts +0 -2
  856. package/types/strings/mouseSwipeEvents.d.ts +0 -7
  857. package/types/strings/mouseclickEvent.d.ts +0 -2
  858. package/types/strings/mousedblclickEvent.d.ts +0 -2
  859. package/types/strings/mousedownEvent.d.ts +0 -2
  860. package/types/strings/mouseenterEvent.d.ts +0 -2
  861. package/types/strings/mousehoverEvent.d.ts +0 -2
  862. package/types/strings/mouseinEvent.d.ts +0 -2
  863. package/types/strings/mouseleaveEvent.d.ts +0 -2
  864. package/types/strings/mousemoveEvent.d.ts +0 -2
  865. package/types/strings/mouseoutEvent.d.ts +0 -2
  866. package/types/strings/mouseoverEvent.d.ts +0 -2
  867. package/types/strings/mouseupEvent.d.ts +0 -2
  868. package/types/strings/mousewheelEvent.d.ts +0 -2
  869. package/types/strings/moveEvent.d.ts +0 -2
  870. package/types/strings/nativeEvents.d.ts +0 -53
  871. package/types/strings/offsetHeight.d.ts +0 -2
  872. package/types/strings/offsetWidth.d.ts +0 -2
  873. package/types/strings/orientationchangeEvent.d.ts +0 -2
  874. package/types/strings/pointercancelEvent.d.ts +0 -2
  875. package/types/strings/pointerdownEvent.d.ts +0 -2
  876. package/types/strings/pointerleaveEvent.d.ts +0 -2
  877. package/types/strings/pointermoveEvent.d.ts +0 -2
  878. package/types/strings/pointerupEvent.d.ts +0 -2
  879. package/types/strings/readystatechangeEvent.d.ts +0 -2
  880. package/types/strings/removeEventListener.d.ts +0 -2
  881. package/types/strings/resetEvent.d.ts +0 -2
  882. package/types/strings/resizeEvent.d.ts +0 -2
  883. package/types/strings/scrollEvent.d.ts +0 -2
  884. package/types/strings/scrollHeight.d.ts +0 -2
  885. package/types/strings/scrollWidth.d.ts +0 -2
  886. package/types/strings/selectEvent.d.ts +0 -2
  887. package/types/strings/selectendEvent.d.ts +0 -2
  888. package/types/strings/selectstartEvent.d.ts +0 -2
  889. package/types/strings/submitEvent.d.ts +0 -2
  890. package/types/strings/tabindex.d.ts +0 -2
  891. package/types/strings/touchEvents.d.ts +0 -7
  892. package/types/strings/touchcancelEvent.d.ts +0 -2
  893. package/types/strings/touchendEvent.d.ts +0 -2
  894. package/types/strings/touchmoveEvent.d.ts +0 -2
  895. package/types/strings/touchstartEvent.d.ts +0 -2
  896. package/types/strings/transitionDelay.d.ts +0 -2
  897. package/types/strings/transitionDuration.d.ts +0 -2
  898. package/types/strings/transitionEndEvent.d.ts +0 -2
  899. package/types/strings/transitionProperty.d.ts +0 -2
  900. package/types/strings/unloadEvent.d.ts +0 -2
  901. package/types/strings/userAgent.d.ts +0 -2
  902. package/types/strings/userAgentData.d.ts +0 -3
  903. package/types/types.d.ts +0 -1
@@ -1,5 +1,6 @@
1
- import DOMContentLoadedEvent from "../strings/DOMContentLoadedEvent";
2
- import one from "../event/one";
1
+ import DOMContentLoadedEvent from '../strings/DOMContentLoadedEvent';
2
+ import one from '../event/one';
3
+ import noop from '../misc/noop';
3
4
 
4
5
  /**
5
6
  * A global `boolean` for passive events support,
@@ -10,14 +11,14 @@ import one from "../event/one";
10
11
  const supportPassive = (() => {
11
12
  let result = false;
12
13
  try {
13
- const opts = Object.defineProperty({}, "passive", {
14
- get() {
14
+ const opts = Object.defineProperty({}, 'passive', {
15
+ get: () => {
15
16
  result = true;
16
17
  return result;
17
18
  },
18
19
  });
19
20
  /* istanbul ignore next */
20
- one(document, DOMContentLoadedEvent, () => {}, opts);
21
+ one(document, DOMContentLoadedEvent, noop, opts);
21
22
  } catch (e) {
22
23
  // throw Error('Passive events are not supported');
23
24
  }
@@ -2,6 +2,6 @@
2
2
  * A global `boolean` for touch events support.
3
3
  */
4
4
  const supportTouch =
5
- "ontouchstart" in window || /* istanbul ignore next */ "msMaxTouchPoints" in navigator;
5
+ 'ontouchstart' in window || /* istanbul ignore next */ 'msMaxTouchPoints' in navigator;
6
6
 
7
7
  export default supportTouch;
@@ -1,8 +1,8 @@
1
- import documentHead from "../blocks/documentHead";
1
+ import documentHead from '../blocks/documentHead';
2
2
 
3
3
  /**
4
4
  * A global `boolean` for CSS3 transform support.
5
5
  */
6
- const supportTransform = ["webkitTransform", "transform"].some((p) => p in documentHead.style);
6
+ const supportTransform = ['webkitTransform', 'transform'].some(p => p in documentHead.style);
7
7
 
8
8
  export default supportTransform;
@@ -1,8 +1,8 @@
1
- import documentHead from "../blocks/documentHead";
1
+ import documentHead from '../blocks/documentHead';
2
2
 
3
3
  /**
4
4
  * A global `boolean` for CSS3 transition support.
5
5
  */
6
- const supportTransition = ["webkitTransition", "transition"].some((p) => p in documentHead.style);
6
+ const supportTransition = ['webkitTransition', 'transition'].some(p => p in documentHead.style);
7
7
 
8
8
  export default supportTransition;
package/src/event/off.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  /**
2
2
  * Remove eventListener from an `EventTarget` object.
3
3
  */
4
- export default function off(
5
- element: EventTarget,
4
+ const off = <T extends EventTarget, L = EventListener>(
5
+ element: T,
6
6
  eventName: string,
7
- listener: EventListener,
8
- options?: AddEventListenerOptions
9
- ) {
7
+ listener: L,
8
+ options?: AddEventListenerOptions,
9
+ ) => {
10
10
  const ops = options || false;
11
- element.removeEventListener(eventName, listener, ops);
12
- }
11
+ element.removeEventListener(eventName, listener as EventListenerOrEventListenerObject, ops);
12
+ };
13
+
14
+ export default off;
package/src/event/on.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  /**
2
2
  * Add eventListener to an `EventTarget` object.
3
3
  */
4
- export default function on(
5
- element: EventTarget,
4
+ const on = <T extends EventTarget, L = EventListener>(
5
+ element: T,
6
6
  eventName: string,
7
- listener: EventListener,
8
- options?: AddEventListenerOptions
9
- ) {
7
+ listener: L,
8
+ options?: AddEventListenerOptions,
9
+ ) => {
10
10
  const ops = options || false;
11
- element.addEventListener(eventName, listener, ops);
12
- }
11
+ element.addEventListener(eventName, listener as EventListenerOrEventListenerObject, ops);
12
+ };
13
+
14
+ export default on;
package/src/event/one.ts CHANGED
@@ -1,21 +1,22 @@
1
1
  import on from './on';
2
2
  import off from './off';
3
+ import { NativeEventHandler } from '../interface/event';
3
4
 
4
5
  /**
5
6
  * Add an `eventListener` to an `EventTarget`
6
7
  * element and remove it once callback is called.
7
8
  */
8
- const one = (
9
- element: EventTarget,
9
+ const one = <T extends EventTarget, L = EventListener>(
10
+ element: T,
10
11
  eventName: string,
11
- listener: EventListener,
12
- options?: AddEventListenerOptions
12
+ listener: L,
13
+ options?: AddEventListenerOptions,
13
14
  ) => {
14
15
  /** Wrap the listener for easy on -> off */
15
- const handlerWrapper = (e: Event): void => {
16
+ const handlerWrapper: NativeEventHandler<T> = e => {
16
17
  /* istanbul ignore else */
17
- if (e.target === element) {
18
- listener.apply(element, [e]);
18
+ if (e.target === element || e.currentTarget === element) {
19
+ (listener as NativeEventHandler<T>).apply(element, [e]);
19
20
  off(element, eventName, handlerWrapper, options);
20
21
  }
21
22
  };
@@ -1,8 +1,9 @@
1
- import isHTMLElement from "../is/isHTMLElement";
2
- import BoundingClientRect from "../interface/boundingClientRect";
1
+ import isHTMLElement from '../is/isHTMLElement';
2
+ import type { BoundingClientRect } from '../interface/boundingClientRect';
3
3
 
4
4
  /**
5
5
  * Returns the bounding client rect of a target `HTMLElement`.
6
+ *
6
7
  * @see https://github.com/floating-ui/floating-ui
7
8
  *
8
9
  * @param element event.target
@@ -11,7 +12,7 @@ import BoundingClientRect from "../interface/boundingClientRect";
11
12
  */
12
13
  const getBoundingClientRect = (
13
14
  element: HTMLElement,
14
- includeScale?: boolean
15
+ includeScale?: boolean,
15
16
  ): BoundingClientRect => {
16
17
  const { width, height, top, right, bottom, left } = element.getBoundingClientRect();
17
18
  let scaleX = 1;
@@ -1,21 +1,22 @@
1
- import isNode from "../is/isNode";
2
- import isWindow from "../is/isWindow";
3
- import isDocument from "../is/isDocument";
1
+ import isNode from '../is/isNode';
2
+ import isWindow from '../is/isWindow';
3
+ import isDocument from '../is/isDocument';
4
4
 
5
5
  /**
6
6
  * Returns the `document` or the `#document` element.
7
+ *
7
8
  * @see https://github.com/floating-ui/floating-ui
8
9
  *
9
10
  * @param node the reference node
10
11
  * @returns the parent document of the given node
11
12
  */
12
- const getDocument = (node?: any): Document => {
13
+ const getDocument = (node?: Node | Document | Window): Document => {
14
+ // node instanceof Window
15
+ if (isWindow(node)) return node.document;
13
16
  // node instanceof Document
14
17
  if (isDocument(node)) return node;
15
18
  // node instanceof Node
16
- if (isNode(node)) return node.ownerDocument;
17
- // node instanceof Window
18
- if (isWindow(node)) return node.document;
19
+ if (isNode(node)) return node.ownerDocument as Document;
19
20
  // node is undefined | NULL
20
21
  return window.document;
21
22
  };
@@ -6,7 +6,7 @@ import getDocument from './getDocument';
6
6
  * @param node the reference node
7
7
  * @returns the parent `<body>` of the specified node
8
8
  */
9
- const getDocumentBody = (node?: any): HTMLElement => {
9
+ const getDocumentBody = (node?: Node | Document | Window): HTMLElement => {
10
10
  return getDocument(node).body;
11
11
  };
12
12
 
@@ -6,7 +6,7 @@ import getDocument from './getDocument';
6
6
  * @param node the reference node
7
7
  * @returns the parent `<HTML>` of the node's parent document
8
8
  */
9
- const getDocumentElement = (node?: Node): HTMLElement => {
9
+ const getDocumentElement = (node?: Node | Document | Window): HTMLElement => {
10
10
  return getDocument(node).documentElement;
11
11
  };
12
12
 
@@ -1,11 +1,11 @@
1
- import getDocument from "./getDocument";
1
+ import getDocument from './getDocument';
2
2
  /**
3
3
  * Returns the `document.head` or the `<head>` element.
4
4
  *
5
5
  * @param node the reference node
6
6
  * @returns the `<head>` of the node's parent document
7
7
  */
8
- const getDocumentHead = (node?: Node): HTMLElement & HTMLHeadElement => {
8
+ const getDocumentHead = (node?: Node | Document | Window): HTMLElement & HTMLHeadElement => {
9
9
  return getDocument(node).head;
10
10
  };
11
11
 
@@ -1,6 +1,6 @@
1
- import animationDelay from "../strings/animationDelay";
2
- import animationName from "../strings/animationName";
3
- import getElementStyle from "./getElementStyle";
1
+ import animationDelay from '../strings/animationDelay';
2
+ import animationName from '../strings/animationName';
3
+ import getElementStyle from './getElementStyle';
4
4
 
5
5
  /**
6
6
  * Utility to get the computed `animationDelay`
@@ -12,9 +12,9 @@ import getElementStyle from "./getElementStyle";
12
12
  const getElementAnimationDelay = (element: HTMLElement): number => {
13
13
  const propertyValue = getElementStyle(element, animationName);
14
14
  const durationValue = getElementStyle(element, animationDelay);
15
- const durationScale = durationValue.includes("ms") ? /* istanbul ignore next */ 1 : 1000;
15
+ const durationScale = durationValue.includes('ms') ? /* istanbul ignore next */ 1 : 1000;
16
16
  const duration =
17
- propertyValue && propertyValue !== "none" ? parseFloat(durationValue) * durationScale : 0;
17
+ propertyValue && propertyValue !== 'none' ? parseFloat(durationValue) * durationScale : 0;
18
18
 
19
19
  return !Number.isNaN(duration) ? duration : /* istanbul ignore next */ 0;
20
20
  };
@@ -1,6 +1,6 @@
1
- import animationDuration from "../strings/animationDuration";
2
- import animationName from "../strings/animationName";
3
- import getElementStyle from "./getElementStyle";
1
+ import animationDuration from '../strings/animationDuration';
2
+ import animationName from '../strings/animationName';
3
+ import getElementStyle from './getElementStyle';
4
4
 
5
5
  /**
6
6
  * Utility to get the computed `animationDuration`
@@ -12,9 +12,9 @@ import getElementStyle from "./getElementStyle";
12
12
  const getElementAnimationDuration = (element: HTMLElement): number => {
13
13
  const propertyValue = getElementStyle(element, animationName);
14
14
  const durationValue = getElementStyle(element, animationDuration);
15
- const durationScale = durationValue.includes("ms") ? /* istanbul ignore next */ 1 : 1000;
15
+ const durationScale = durationValue.includes('ms') ? /* istanbul ignore next */ 1 : 1000;
16
16
  const duration =
17
- propertyValue && propertyValue !== "none" ? parseFloat(durationValue) * durationScale : 0;
17
+ propertyValue && propertyValue !== 'none' ? parseFloat(durationValue) * durationScale : 0;
18
18
 
19
19
  return !Number.isNaN(duration) ? duration : /* istanbul ignore next */ 0;
20
20
  };
@@ -1,4 +1,4 @@
1
- import CSS4Declaration from "../interface/css4Declaration";
1
+ // import CSS4Declaration from "../interface/css4Declaration";
2
2
 
3
3
  /**
4
4
  * Shortcut for `window.getComputedStyle(element).propertyName`
@@ -12,13 +12,14 @@ import CSS4Declaration from "../interface/css4Declaration";
12
12
  * @return the css property value
13
13
  */
14
14
  const getElementStyle = (element: HTMLElement, property: string): string => {
15
- const computedStyle: CSS4Declaration = getComputedStyle(element);
15
+ const computedStyle = getComputedStyle(element);
16
+ const prop = property
17
+ .replace('webkit', 'Webkit')
18
+ .replace(/([A-Z])/g, '-$1')
19
+ .toLowerCase();
16
20
 
17
- // must use camelcase strings,
18
- // or non-camelcase strings with `getPropertyValue`
19
- return property.includes("--")
20
- ? computedStyle.getPropertyValue(property)
21
- : computedStyle[property];
21
+ // modern browsers only
22
+ return computedStyle.getPropertyValue(prop);
22
23
  };
23
24
 
24
25
  export default getElementStyle;
@@ -1,6 +1,6 @@
1
- import transitionDelay from "../strings/transitionDelay";
2
- import transitionProperty from "../strings/transitionProperty";
3
- import getElementStyle from "./getElementStyle";
1
+ import transitionDelay from '../strings/transitionDelay';
2
+ import transitionProperty from '../strings/transitionProperty';
3
+ import getElementStyle from './getElementStyle';
4
4
 
5
5
  /**
6
6
  * Utility to get the computed `transitionDelay`
@@ -12,9 +12,11 @@ import getElementStyle from "./getElementStyle";
12
12
  const getElementTransitionDelay = (element: HTMLElement): number => {
13
13
  const propertyValue = getElementStyle(element, transitionProperty);
14
14
  const delayValue = getElementStyle(element, transitionDelay);
15
- const delayScale = delayValue.includes("ms") ? /* istanbul ignore next */ 1 : 1000;
15
+ const delayScale = delayValue.includes('ms') ? /* istanbul ignore next */ 1 : 1000;
16
16
  const duration =
17
- propertyValue && propertyValue !== "none" ? parseFloat(delayValue) * delayScale : 0;
17
+ propertyValue && propertyValue !== 'none'
18
+ ? parseFloat(delayValue) * delayScale
19
+ : /* istanbul ignore next */ 0;
18
20
 
19
21
  return !Number.isNaN(duration) ? duration : /* istanbul ignore next */ 0;
20
22
  };
@@ -1,6 +1,6 @@
1
- import transitionDuration from "../strings/transitionDuration";
2
- import transitionProperty from "../strings/transitionProperty";
3
- import getElementStyle from "./getElementStyle";
1
+ import transitionDuration from '../strings/transitionDuration';
2
+ import transitionProperty from '../strings/transitionProperty';
3
+ import getElementStyle from './getElementStyle';
4
4
 
5
5
  /**
6
6
  * Utility to get the computed `transitionDuration`
@@ -12,9 +12,11 @@ import getElementStyle from "./getElementStyle";
12
12
  const getElementTransitionDuration = (element: HTMLElement): number => {
13
13
  const propertyValue = getElementStyle(element, transitionProperty);
14
14
  const durationValue = getElementStyle(element, transitionDuration);
15
- const durationScale = durationValue.includes("ms") ? /* istanbul ignore next */ 1 : 1000;
15
+ const durationScale = durationValue.includes('ms') ? /* istanbul ignore next */ 1 : 1000;
16
16
  const duration =
17
- propertyValue && propertyValue !== "none" ? parseFloat(durationValue) * durationScale : 0;
17
+ propertyValue && propertyValue !== 'none'
18
+ ? parseFloat(durationValue) * durationScale
19
+ : /* istanbul ignore next */ 0;
18
20
 
19
21
  return !Number.isNaN(duration) ? duration : /* istanbul ignore next */ 0;
20
22
  };
@@ -5,12 +5,13 @@ import isNode from '../is/isNode';
5
5
 
6
6
  /**
7
7
  * Returns the `parentNode` also going through `ShadowRoot`.
8
+ *
8
9
  * @see https://github.com/floating-ui/floating-ui
9
10
  *
10
11
  * @param {Node} node the target node
11
12
  * @returns {Node} the apropriate parent node
12
13
  */
13
- const getParentNode = (node: Node): Node => {
14
+ const getParentNode = (node: Node): Node | ParentNode => {
14
15
  if (node.nodeName === 'HTML') {
15
16
  return node;
16
17
  }
@@ -1,10 +1,11 @@
1
- import OffsetRect from '../interface/offsetRect';
1
+ import type { OffsetRect } from '../interface/offsetRect';
2
2
  import isScaledElement from '../is/isScaledElement';
3
3
  import isHTMLElement from '../is/isHTMLElement';
4
4
  import getBoundingClientRect from './getBoundingClientRect';
5
5
 
6
6
  /**
7
7
  * Returns the rect relative to a given offset parent and its scroll position.
8
+ *
8
9
  * @see https://github.com/floating-ui/floating-ui
9
10
  *
10
11
  * @param element target
@@ -15,7 +16,7 @@ import getBoundingClientRect from './getBoundingClientRect';
15
16
  const getRectRelativeToOffsetParent = (
16
17
  element: HTMLElement,
17
18
  offsetParent: HTMLElement,
18
- scroll: { x: number; y: number }
19
+ scroll: { x: number; y: number },
19
20
  ): OffsetRect => {
20
21
  const isParentAnElement = isHTMLElement(offsetParent);
21
22
  const rect = getBoundingClientRect(element, isParentAnElement && isScaledElement(offsetParent));
package/src/get/getUID.ts CHANGED
@@ -24,10 +24,10 @@ const getUID = (element: HTMLElement, key?: string): number => {
24
24
  if (!elementIDMap.has(elID)) {
25
25
  elementIDMap.set(elID, elMap);
26
26
  }
27
- if (isMap(elMap) && !elMap.has(key)) {
28
- elMap.set(key, result);
27
+ if (isMap(elMap as KeyIdMap) && !(elMap as KeyIdMap).has(key)) {
28
+ (elMap as KeyIdMap).set(key, result);
29
29
  elementUID += 1;
30
- } else result = (elMap as KeyIdMap).get(key);
30
+ } else result = (elMap as KeyIdMap).get(key) as number;
31
31
  } else {
32
32
  const elkey = element.id || element;
33
33
 
@@ -1,8 +1,9 @@
1
- import isDocument from "../is/isDocument";
2
- import isNode from "../is/isNode";
1
+ import isDocument from '../is/isDocument';
2
+ import isNode from '../is/isNode';
3
3
 
4
4
  /**
5
5
  * Returns the `Window` object of a target node.
6
+ *
6
7
  * @see https://github.com/floating-ui/floating-ui
7
8
  *
8
9
  * @param node target node
@@ -12,9 +13,9 @@ const getWindow = (node?: Node): Window => {
12
13
  // node is undefined | NULL
13
14
  if (!node) return window;
14
15
  // node instanceof Document
15
- if (isDocument(node)) return node.defaultView;
16
+ if (isDocument(node)) return node.defaultView as Window;
16
17
  // node instanceof Node
17
- if (isNode(node)) return node.ownerDocument.defaultView;
18
+ if (isNode(node)) return node?.ownerDocument?.defaultView as Window;
18
19
  // node is instanceof Window
19
20
  return node;
20
21
  };
package/src/index.ts CHANGED
@@ -20,6 +20,12 @@ import abortEvent from './strings/abortEvent';
20
20
  import blurEvent from './strings/blurEvent';
21
21
  import moveEvent from './strings/moveEvent';
22
22
  import changeEvent from './strings/changeEvent';
23
+ import dragEvent from './strings/dragEvent';
24
+ import dragstartEvent from './strings/dragstartEvent';
25
+ import dragenterEvent from './strings/dragenterEvent';
26
+ import dragleaveEvent from './strings/dragleaveEvent';
27
+ import dragoverEvent from './strings/dragoverEvent';
28
+ import dragendEvent from './strings/dragendEvent';
23
29
  import errorEvent from './strings/errorEvent';
24
30
  import resetEvent from './strings/resetEvent';
25
31
  import resizeEvent from './strings/resizeEvent';
@@ -90,6 +96,7 @@ import keyCapsLock from './strings/keyCapsLock';
90
96
  import keyControl from './strings/keyControl';
91
97
  import keyDelete from './strings/keyDelete';
92
98
  import keyEnter from './strings/keyEnter';
99
+ import keyNumpadEnter from './strings/keyNumpadEnter';
93
100
  import keyEscape from './strings/keyEscape';
94
101
  import keyInsert from './strings/keyInsert';
95
102
  import keyMeta from './strings/keyMeta';
@@ -153,9 +160,15 @@ import on from './event/on';
153
160
  import off from './event/off';
154
161
  import one from './event/one';
155
162
 
163
+ // blocks
164
+ import documentBody from './blocks/documentBody';
165
+ import documentElement from './blocks/documentElement';
166
+ import documentHead from './blocks/documentHead';
167
+
156
168
  // misc
157
169
  import ArrayFrom from './misc/ArrayFrom';
158
- import Data, { getInstance } from './misc/data';
170
+ import Data from './misc/data';
171
+ import getInstance from './misc/getInstance';
159
172
  import createElement from './misc/createElement';
160
173
  import createElementNS from './misc/createElementNS';
161
174
  import dispatchEvent from './misc/dispatchEvent';
@@ -170,9 +183,11 @@ import normalizeOptions from './misc/normalizeOptions';
170
183
  import normalizeValue from './misc/normalizeValue';
171
184
  import ObjectAssign from './misc/ObjectAssign';
172
185
  import ObjectEntries from './misc/ObjectEntries';
186
+ import ObjectHasOwn from './misc/ObjectHasOwn';
173
187
  import ObjectKeys from './misc/ObjectKeys';
174
188
  import ObjectValues from './misc/ObjectValues';
175
- import OriginalEvent from './misc/OriginalEvent';
189
+ import ObjectFromEntries from './misc/ObjectFromEntries';
190
+ import createCustomEvent from './misc/createCustomEvent';
176
191
  import passiveHandler from './misc/passiveHandler';
177
192
  import reflow from './misc/reflow';
178
193
  import setElementStyle from './misc/setElementStyle';
@@ -211,6 +226,7 @@ import isObject from './is/isObject';
211
226
  import isHTMLCollection from './is/isHTMLCollection';
212
227
  import isHTMLElement from './is/isHTMLElement';
213
228
  import isHTMLImageElement from './is/isHTMLImageElement';
229
+ import isJSON from './is/isJSON';
214
230
  import isMap from './is/isMap';
215
231
  import isWeakMap from './is/isWeakMap';
216
232
  import isMedia from './is/isMedia';
@@ -235,7 +251,9 @@ import getElementsByTagName from './selectors/getElementsByTagName';
235
251
  import getElementsByClassName from './selectors/getElementsByClassName';
236
252
  import matches from './selectors/matches';
237
253
 
238
- const SHORTY = {
254
+ import { version } from '../package.json';
255
+
256
+ export {
239
257
  ariaChecked,
240
258
  ariaDescription,
241
259
  ariaDescribedBy,
@@ -256,6 +274,12 @@ const SHORTY = {
256
274
  blurEvent,
257
275
  moveEvent,
258
276
  changeEvent,
277
+ dragEvent,
278
+ dragstartEvent,
279
+ dragenterEvent,
280
+ dragoverEvent,
281
+ dragleaveEvent,
282
+ dragendEvent,
259
283
  errorEvent,
260
284
  resetEvent,
261
285
  resizeEvent,
@@ -339,6 +363,7 @@ const SHORTY = {
339
363
  keyControl,
340
364
  keyDelete,
341
365
  keyEnter,
366
+ keyNumpadEnter,
342
367
  keyEscape,
343
368
  keyInsert,
344
369
  keyMeta,
@@ -360,12 +385,16 @@ const SHORTY = {
360
385
  on,
361
386
  off,
362
387
  one,
388
+ documentBody,
389
+ documentElement,
390
+ documentHead,
363
391
  dispatchEvent,
364
392
  distinct,
365
393
  Data,
366
394
  getInstance,
367
395
  createElement,
368
396
  createElementNS,
397
+ createCustomEvent,
369
398
  toUpperCase,
370
399
  toLowerCase,
371
400
  Timer,
@@ -387,6 +416,7 @@ const SHORTY = {
387
416
  isString,
388
417
  isCustomElement,
389
418
  isElement,
419
+ isJSON,
390
420
  isMap,
391
421
  isWeakMap,
392
422
  isNode,
@@ -423,11 +453,12 @@ const SHORTY = {
423
453
  ArrayFrom,
424
454
  Float32ArrayFrom,
425
455
  Float64ArrayFrom,
456
+ ObjectHasOwn,
426
457
  ObjectAssign,
427
458
  ObjectEntries,
428
459
  ObjectKeys,
429
460
  ObjectValues,
430
- OriginalEvent,
461
+ ObjectFromEntries,
431
462
  getBoundingClientRect,
432
463
  getDocument,
433
464
  getDocumentBody,
@@ -443,6 +474,7 @@ const SHORTY = {
443
474
  setAttributeNS,
444
475
  removeAttribute,
445
476
  removeAttributeNS,
477
+ version,
446
478
  };
447
479
 
448
- export default SHORTY;
480
+ export * from './interface/event.d';
@@ -1,10 +1,10 @@
1
- export default interface BoundingClientRect {
2
- width: number;
3
- height: number;
4
- top: number;
5
- left: number;
6
- right: number;
7
- bottom: number;
8
- x: number;
9
- y: number;
10
- }
1
+ export declare interface BoundingClientRect {
2
+ width: number;
3
+ height: number;
4
+ top: number;
5
+ left: number;
6
+ right: number;
7
+ bottom: number;
8
+ x: number;
9
+ y: number;
10
+ }
@@ -0,0 +1,4 @@
1
+ export declare interface CSS4Declaration
2
+ extends Exclude<() => string | symbol, CSSStyleDeclaration> {
3
+ [key: string]: string;
4
+ }
@@ -1,8 +1,8 @@
1
- export default interface CustomElement extends HTMLElement {
2
- shadowRoot: ShadowRoot;
3
- connectedCallback?: () => void;
4
- disconnectedCallback?: () => void;
5
- adoptedCallback?: () => void;
6
- attributeChangedCallback?: () => void;
7
- [key: string]: any;
8
- }
1
+ export declare interface CustomElement extends HTMLElement {
2
+ shadowRoot: ShadowRoot;
3
+ connectedCallback?: () => void;
4
+ disconnectedCallback?: () => void;
5
+ adoptedCallback?: () => void;
6
+ attributeChangedCallback?: () => void;
7
+ // [key: PropertyKey]: any;
8
+ }