tiny-essentials 1.28.0 → 1.28.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.
Files changed (323) hide show
  1. package/changelog/1/28/1.md +23 -0
  2. package/changelog/1/28/2.md +43 -0
  3. package/dist/_/numbers.d.mts +91 -16
  4. package/dist/v1/TinyAdvancedRaffle.min.js +1 -1
  5. package/dist/v1/TinyAfterScrollWatcher.min.js +1 -1
  6. package/dist/v1/TinyAnalogClock.min.js +1 -1
  7. package/dist/v1/TinyBasicsEs.min.js +1 -1
  8. package/dist/v1/TinyDayNightCycle.min.js +1 -1
  9. package/dist/v1/TinyDragDropDetector.min.js +1 -1
  10. package/dist/v1/TinyDragger.min.js +1 -1
  11. package/dist/v1/TinyElementObserver.min.js +1 -1
  12. package/dist/v1/TinyEssentials.min.js +1 -1
  13. package/dist/v1/TinyGamepad.min.js +1 -1
  14. package/dist/v1/TinyHtml.min.js +1 -1
  15. package/dist/v1/TinyI18.min.js +1 -1
  16. package/dist/v1/TinyIframeEvents.min.js +1 -1
  17. package/dist/v1/TinyLocalStorage.min.js +1 -1
  18. package/dist/v1/TinyMediaPlayer.min.js +1 -1
  19. package/dist/v1/TinyNewWinEvents.min.js +1 -1
  20. package/dist/v1/TinyNotifyCenter.min.js +1 -1
  21. package/dist/v1/TinyRadioFm.min.js +1 -1
  22. package/dist/v1/TinyRateLimiter.min.js +1 -1
  23. package/dist/v1/TinySmartScroller.min.js +1 -1
  24. package/dist/v1/TinyTextDiffer.min.js +1 -1
  25. package/dist/v1/TinyTextarea.min.js +1 -1
  26. package/dist/v1/TinyTimeout.min.js +1 -1
  27. package/dist/v1/TinyToastNotify.min.js +1 -1
  28. package/dist/v1/TinyUploadClicker.min.js +1 -1
  29. package/dist/v1/UltraRandomMsgGen.min.js +1 -1
  30. package/dist/v1/basics/array.cjs +57 -9
  31. package/dist/v1/basics/array.d.mts +28 -12
  32. package/dist/v1/basics/array.mjs +51 -9
  33. package/dist/v1/basics/clock.cjs +94 -42
  34. package/dist/v1/basics/clock.d.mts +22 -22
  35. package/dist/v1/basics/clock.mjs +91 -54
  36. package/dist/v1/basics/collision.d.mts +245 -104
  37. package/dist/v1/basics/deprecated/html.cjs +246 -0
  38. package/dist/v1/basics/deprecated/html.d.mts +63 -0
  39. package/dist/v1/basics/deprecated/html.mjs +190 -0
  40. package/dist/v1/basics/extendObjType/Buffer.d.mts +1 -1
  41. package/dist/v1/basics/fullScreen.d.mts +47 -7
  42. package/dist/v1/basics/html.cjs +149 -130
  43. package/dist/v1/basics/html.d.mts +69 -113
  44. package/dist/v1/basics/html.mjs +113 -105
  45. package/dist/v1/basics/index.cjs +2 -0
  46. package/dist/v1/basics/index.d.mts +11 -65
  47. package/dist/v1/basics/index.mjs +3 -3
  48. package/dist/v1/basics/mediaContent.cjs +116 -32
  49. package/dist/v1/basics/mediaContent.d.mts +143 -159
  50. package/dist/v1/basics/mediaContent.mjs +105 -33
  51. package/dist/v1/basics/objChecker.cjs +7 -5
  52. package/dist/v1/basics/objChecker.d.mts +5 -4
  53. package/dist/v1/basics/objChecker.mjs +6 -6
  54. package/dist/v1/basics/objFilter.cjs +71 -14
  55. package/dist/v1/basics/objFilter.d.mts +16 -19
  56. package/dist/v1/basics/objFilter.mjs +63 -14
  57. package/dist/v1/basics/simpleMath.cjs +81 -25
  58. package/dist/v1/basics/simpleMath.d.mts +22 -22
  59. package/dist/v1/basics/simpleMath.mjs +70 -27
  60. package/dist/v1/basics/text.cjs +76 -31
  61. package/dist/v1/basics/text.d.mts +64 -14
  62. package/dist/v1/basics/text.mjs +62 -31
  63. package/dist/v1/build/ColorSafeStringify.d.mts +1 -1
  64. package/dist/v1/build/TinyAdvancedRaffle.d.mts +1 -1
  65. package/dist/v1/build/TinyAfterScrollWatcher.d.mts +1 -1
  66. package/dist/v1/build/TinyAnalogClock.d.mts +1 -1
  67. package/dist/v1/build/TinyArrayComparator.d.mts +1 -1
  68. package/dist/v1/build/TinyArrayPaginator.d.mts +1 -1
  69. package/dist/v1/build/TinyClassManager.d.mts +1 -1
  70. package/dist/v1/build/TinyClipboard.d.mts +1 -1
  71. package/dist/v1/build/TinyColorConverter.d.mts +1 -1
  72. package/dist/v1/build/TinyColorValidator.d.mts +1 -1
  73. package/dist/v1/build/TinyCookieConsent.d.mts +1 -1
  74. package/dist/v1/build/TinyDayNightCycle.d.mts +1 -1
  75. package/dist/v1/build/TinyDomReadyManager.d.mts +1 -1
  76. package/dist/v1/build/TinyDragDropDetector.d.mts +1 -1
  77. package/dist/v1/build/TinyDragger.d.mts +1 -1
  78. package/dist/v1/build/TinyElementObserver.d.mts +1 -1
  79. package/dist/v1/build/TinyGamepad.d.mts +1 -1
  80. package/dist/v1/build/TinyHtml.d.mts +1 -1
  81. package/dist/v1/build/TinyI18.d.mts +1 -1
  82. package/dist/v1/build/TinyIframeEvents.d.mts +1 -1
  83. package/dist/v1/build/TinyInventory.d.mts +1 -1
  84. package/dist/v1/build/TinyInventoryTrader.d.mts +1 -1
  85. package/dist/v1/build/TinyLevelUp.d.mts +1 -1
  86. package/dist/v1/build/TinyLoadingScreen.d.mts +1 -1
  87. package/dist/v1/build/TinyLocalStorage.d.mts +1 -1
  88. package/dist/v1/build/TinyMediaPlayer.d.mts +1 -1
  89. package/dist/v1/build/TinyNeedBar.d.mts +1 -1
  90. package/dist/v1/build/TinyNewWinEvents.d.mts +1 -1
  91. package/dist/v1/build/TinyNotifications.d.mts +1 -1
  92. package/dist/v1/build/TinyNotifyCenter.d.mts +1 -1
  93. package/dist/v1/build/TinyPromiseQueue.d.mts +1 -1
  94. package/dist/v1/build/TinyRadioFm.d.mts +1 -1
  95. package/dist/v1/build/TinyRateLimiter.d.mts +1 -1
  96. package/dist/v1/build/TinySimpleDice.d.mts +1 -1
  97. package/dist/v1/build/TinySmartScroller.d.mts +1 -1
  98. package/dist/v1/build/TinyTextDiffer.d.mts +1 -1
  99. package/dist/v1/build/TinyTextRangeEditor.d.mts +1 -1
  100. package/dist/v1/build/TinyTextarea.d.mts +1 -1
  101. package/dist/v1/build/TinyTimeout.d.mts +1 -1
  102. package/dist/v1/build/TinyToastNotify.d.mts +1 -1
  103. package/dist/v1/build/TinyUploadClicker.d.mts +1 -1
  104. package/dist/v1/build/UltraRandomMsgGen.d.mts +1 -1
  105. package/dist/v1/fileManager/asyncFuncs.d.mts +13 -13
  106. package/dist/v1/fileManager/index.d.mts +3 -29
  107. package/dist/v1/fileManager/normalFuncs.d.mts +22 -22
  108. package/dist/v1/index.cjs +4 -0
  109. package/dist/v1/index.d.mts +54 -137
  110. package/dist/v1/index.mjs +4 -3
  111. package/dist/v1/libs/ColorSafeStringify.d.mts +3 -12
  112. package/dist/v1/libs/TinyAdvancedRaffle.cjs +64 -50
  113. package/dist/v1/libs/TinyAdvancedRaffle.d.mts +64 -116
  114. package/dist/v1/libs/TinyAdvancedRaffle.mjs +62 -49
  115. package/dist/v1/libs/TinyAfterScrollWatcher.cjs +17 -1
  116. package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +15 -19
  117. package/dist/v1/libs/TinyAfterScrollWatcher.mjs +15 -1
  118. package/dist/v1/libs/TinyAnalogClock.cjs +60 -0
  119. package/dist/v1/libs/TinyAnalogClock.d.mts +12 -9
  120. package/dist/v1/libs/TinyAnalogClock.mjs +57 -0
  121. package/dist/v1/libs/TinyArrayComparator.d.mts +14 -20
  122. package/dist/v1/libs/TinyArrayPaginator.d.mts +22 -26
  123. package/dist/v1/libs/TinyClassManager/TinyPluginInliner.d.mts +8 -8
  124. package/dist/v1/libs/TinyClassManager.cjs +5 -7
  125. package/dist/v1/libs/TinyClassManager.d.mts +16 -16
  126. package/dist/v1/libs/TinyClassManager.mjs +5 -6
  127. package/dist/v1/libs/TinyClipboard.cjs +2 -0
  128. package/dist/v1/libs/TinyClipboard.d.mts +12 -5
  129. package/dist/v1/libs/TinyClipboard.mjs +2 -0
  130. package/dist/v1/libs/TinyColorConverter.cjs +1 -0
  131. package/dist/v1/libs/TinyColorConverter.d.mts +10 -32
  132. package/dist/v1/libs/TinyColorConverter.mjs +1 -0
  133. package/dist/v1/libs/TinyColorValidator.d.mts +145 -184
  134. package/dist/v1/libs/TinyCookieConsent.d.mts +17 -17
  135. package/dist/v1/libs/TinyDayNightCycle.cjs +67 -42
  136. package/dist/v1/libs/TinyDayNightCycle.d.mts +87 -117
  137. package/dist/v1/libs/TinyDayNightCycle.mjs +65 -41
  138. package/dist/v1/libs/TinyDomReadyManager.d.mts +8 -16
  139. package/dist/v1/libs/TinyDragDropDetector.cjs +25 -0
  140. package/dist/v1/libs/TinyDragDropDetector.d.mts +32 -26
  141. package/dist/v1/libs/TinyDragDropDetector.mjs +22 -0
  142. package/dist/v1/libs/TinyDragger.cjs +46 -19
  143. package/dist/v1/libs/TinyDragger.d.mts +82 -81
  144. package/dist/v1/libs/TinyDragger.mjs +45 -18
  145. package/dist/v1/libs/TinyElementObserver.cjs +39 -0
  146. package/dist/v1/libs/TinyElementObserver.d.mts +28 -25
  147. package/dist/v1/libs/TinyElementObserver.mjs +36 -0
  148. package/dist/v1/libs/TinyGamepad.cjs +131 -2
  149. package/dist/v1/libs/TinyGamepad.d.mts +50 -122
  150. package/dist/v1/libs/TinyGamepad.mjs +129 -2
  151. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.cjs +2 -25
  152. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.d.mts +19 -25
  153. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.mjs +3 -27
  154. package/dist/v1/libs/TinyHtml/TinyHtmlButton.cjs +2 -1
  155. package/dist/v1/libs/TinyHtml/TinyHtmlButton.d.mts +55 -55
  156. package/dist/v1/libs/TinyHtml/TinyHtmlButton.mjs +2 -1
  157. package/dist/v1/libs/TinyHtml/TinyHtmlCanvas.d.mts +6 -6
  158. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.cjs +8 -4
  159. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.d.mts +19 -21
  160. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.mjs +7 -4
  161. package/dist/v1/libs/TinyHtml/TinyHtmlEmbed.d.mts +8 -8
  162. package/dist/v1/libs/TinyHtml/TinyHtmlForm.d.mts +18 -18
  163. package/dist/v1/libs/TinyHtml/TinyHtmlIcon.d.mts +5 -6
  164. package/dist/v1/libs/TinyHtml/TinyHtmlIframe.d.mts +19 -19
  165. package/dist/v1/libs/TinyHtml/TinyHtmlImage.cjs +0 -28
  166. package/dist/v1/libs/TinyHtml/TinyHtmlImage.d.mts +22 -28
  167. package/dist/v1/libs/TinyHtml/TinyHtmlImage.mjs +1 -27
  168. package/dist/v1/libs/TinyHtml/TinyHtmlInput.d.mts +11 -11
  169. package/dist/v1/libs/TinyHtml/TinyHtmlLink.d.mts +23 -23
  170. package/dist/v1/libs/TinyHtml/TinyHtmlMedia.d.mts +26 -26
  171. package/dist/v1/libs/TinyHtml/TinyHtmlScript.cjs +4 -30
  172. package/dist/v1/libs/TinyHtml/TinyHtmlScript.d.mts +20 -26
  173. package/dist/v1/libs/TinyHtml/TinyHtmlScript.mjs +5 -32
  174. package/dist/v1/libs/TinyHtml/TinyHtmlSelect.d.mts +19 -19
  175. package/dist/v1/libs/TinyHtml/TinyHtmlStyle.d.mts +8 -8
  176. package/dist/v1/libs/TinyHtml/TinyHtmlTemplate.d.mts +26 -28
  177. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.cjs +14 -15
  178. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.d.mts +32 -32
  179. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.mjs +15 -15
  180. package/dist/v1/libs/TinyHtml/index.d.mts +102 -45
  181. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.cjs +11 -9
  182. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.d.mts +21 -21
  183. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.mjs +11 -9
  184. package/dist/v1/libs/TinyHtml/input/TinyHtmlFileInput.d.mts +11 -11
  185. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.cjs +4 -4
  186. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.d.mts +17 -13
  187. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.mjs +4 -4
  188. package/dist/v1/libs/TinyHtml/input/TinyHtmlImageInput.d.mts +21 -21
  189. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.cjs +5 -4
  190. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.d.mts +14 -14
  191. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.mjs +5 -4
  192. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.cjs +4 -3
  193. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.d.mts +10 -10
  194. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.mjs +4 -3
  195. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.cjs +4 -3
  196. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.d.mts +19 -19
  197. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.mjs +4 -3
  198. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.cjs +5 -4
  199. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.d.mts +11 -11
  200. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.mjs +5 -4
  201. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.cjs +4 -3
  202. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.d.mts +15 -11
  203. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.mjs +4 -3
  204. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.cjs +49 -21
  205. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.d.mts +34 -20
  206. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.mjs +45 -20
  207. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.cjs +1 -1
  208. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.d.mts +14 -14
  209. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.mjs +1 -1
  210. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.cjs +1 -1
  211. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.d.mts +14 -14
  212. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.mjs +1 -1
  213. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.cjs +48 -25
  214. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.d.mts +27 -21
  215. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.mjs +40 -27
  216. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.cjs +1 -1
  217. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.d.mts +14 -14
  218. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.mjs +1 -1
  219. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlNumberInput.d.mts +14 -14
  220. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlRangeInput.d.mts +14 -14
  221. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlEmailInput.d.mts +25 -21
  222. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlPasswordInput.d.mts +18 -18
  223. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlSearchInput.d.mts +33 -29
  224. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTelInput.d.mts +22 -22
  225. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTextInput.d.mts +18 -18
  226. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlUrlInput.d.mts +31 -27
  227. package/dist/v1/libs/TinyHtml/media/TinyHtmlAudio.d.mts +35 -11
  228. package/dist/v1/libs/TinyHtml/media/TinyHtmlObject.d.mts +10 -10
  229. package/dist/v1/libs/TinyHtml/media/TinyHtmlSource.d.mts +12 -12
  230. package/dist/v1/libs/TinyHtml/media/TinyHtmlVideo.d.mts +35 -27
  231. package/dist/v1/libs/TinyHtml.cjs +4 -5
  232. package/dist/v1/libs/TinyHtml.d.mts +1503 -1731
  233. package/dist/v1/libs/TinyHtml.mjs +5 -6
  234. package/dist/v1/libs/TinyI18.cjs +61 -0
  235. package/dist/v1/libs/TinyI18.d.mts +34 -58
  236. package/dist/v1/libs/TinyI18.mjs +55 -0
  237. package/dist/v1/libs/TinyIframeEvents.cjs +19 -2
  238. package/dist/v1/libs/TinyIframeEvents.d.mts +29 -38
  239. package/dist/v1/libs/TinyIframeEvents.mjs +19 -2
  240. package/dist/v1/libs/TinyInventory.d.mts +78 -141
  241. package/dist/v1/libs/TinyInventoryTrader.d.mts +19 -22
  242. package/dist/v1/libs/TinyLevelUp.d.mts +10 -13
  243. package/dist/v1/libs/TinyLoadingScreen.d.mts +21 -31
  244. package/dist/v1/libs/TinyLocalStorage.cjs +48 -0
  245. package/dist/v1/libs/TinyLocalStorage.d.mts +11 -30
  246. package/dist/v1/libs/TinyLocalStorage.mjs +45 -0
  247. package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +37 -23
  248. package/dist/v1/libs/TinyMediaPlayer.cjs +77 -3
  249. package/dist/v1/libs/TinyMediaPlayer.d.mts +109 -106
  250. package/dist/v1/libs/TinyMediaPlayer.mjs +71 -3
  251. package/dist/v1/libs/TinyNeedBar.d.mts +25 -37
  252. package/dist/v1/libs/TinyNewWinEvents.cjs +29 -0
  253. package/dist/v1/libs/TinyNewWinEvents.d.mts +32 -29
  254. package/dist/v1/libs/TinyNewWinEvents.mjs +26 -0
  255. package/dist/v1/libs/TinyNotifications.d.mts +6 -6
  256. package/dist/v1/libs/TinyNotifyCenter.cjs +36 -0
  257. package/dist/v1/libs/TinyNotifyCenter.d.mts +15 -15
  258. package/dist/v1/libs/TinyNotifyCenter.mjs +32 -0
  259. package/dist/v1/libs/TinyPromiseQueue.d.mts +11 -11
  260. package/dist/v1/libs/TinyRadioFm.cjs +70 -12
  261. package/dist/v1/libs/TinyRadioFm.d.mts +45 -80
  262. package/dist/v1/libs/TinyRadioFm.mjs +64 -12
  263. package/dist/v1/libs/TinyRateLimiter.cjs +52 -0
  264. package/dist/v1/libs/TinyRateLimiter.d.mts +29 -36
  265. package/dist/v1/libs/TinyRateLimiter.mjs +48 -0
  266. package/dist/v1/libs/TinySimpleDice.d.mts +17 -36
  267. package/dist/v1/libs/TinySmartScroller.cjs +52 -3
  268. package/dist/v1/libs/TinySmartScroller.d.mts +62 -70
  269. package/dist/v1/libs/TinySmartScroller.mjs +51 -5
  270. package/dist/v1/libs/TinyTextDiffer.cjs +19 -18
  271. package/dist/v1/libs/TinyTextDiffer.d.mts +11 -13
  272. package/dist/v1/libs/TinyTextDiffer.mjs +16 -17
  273. package/dist/v1/libs/TinyTextRangeEditor.d.mts +8 -8
  274. package/dist/v1/libs/TinyTextarea.cjs +19 -0
  275. package/dist/v1/libs/TinyTextarea.d.mts +34 -28
  276. package/dist/v1/libs/TinyTextarea.mjs +17 -0
  277. package/dist/v1/libs/TinyTimeout.cjs +11 -1
  278. package/dist/v1/libs/TinyTimeout.d.mts +14 -14
  279. package/dist/v1/libs/TinyTimeout.mjs +9 -1
  280. package/dist/v1/libs/TinyToastNotify.cjs +36 -1
  281. package/dist/v1/libs/TinyToastNotify.d.mts +15 -17
  282. package/dist/v1/libs/TinyToastNotify.mjs +32 -1
  283. package/dist/v1/libs/TinyUploadClicker.cjs +19 -0
  284. package/dist/v1/libs/TinyUploadClicker.d.mts +38 -8
  285. package/dist/v1/libs/TinyUploadClicker.mjs +17 -0
  286. package/dist/v1/libs/UltraRandomMsgGen.cjs +148 -35
  287. package/dist/v1/libs/UltraRandomMsgGen.d.mts +52 -78
  288. package/dist/v1/libs/UltraRandomMsgGen.mjs +133 -34
  289. package/dist/v1/libs/utils.cjs +21 -0
  290. package/dist/v1/libs/utils.d.mts +6 -0
  291. package/dist/v1/libs/utils.mjs +16 -0
  292. package/docs/v1/README.md +1 -0
  293. package/docs/v1/basics/array.md +2 -2
  294. package/docs/v1/basics/deprecated/html.md +17 -0
  295. package/docs/v1/basics/fullScreen.md +1 -1
  296. package/docs/v1/basics/html.md +12 -26
  297. package/docs/v1/basics/mediaContent.md +1 -1
  298. package/docs/v1/basics/objChecker.md +1 -1
  299. package/docs/v1/basics/text.md +2 -2
  300. package/docs/v1/fileManager/main.md +1 -1
  301. package/docs/v1/libs/ColorSafeStringify.md +1 -1
  302. package/docs/v1/libs/TinyAfterScrollWatcher.md +1 -1
  303. package/docs/v1/libs/TinyAnalogClock.md +1 -1
  304. package/docs/v1/libs/TinyArrayComparator.md +1 -1
  305. package/docs/v1/libs/TinyArrayPaginator.md +1 -1
  306. package/docs/v1/libs/TinyClassManager/TinyPluginInliner.md +2 -2
  307. package/docs/v1/libs/TinyClassManager.md +1 -1
  308. package/docs/v1/libs/TinyClipboard.md +1 -1
  309. package/docs/v1/libs/TinyCookieConsent.md +1 -1
  310. package/docs/v1/libs/TinyDomReadyManager.md +1 -1
  311. package/docs/v1/libs/TinyDragDropDetector.md +1 -1
  312. package/docs/v1/libs/TinyDragger.md +1 -1
  313. package/docs/v1/libs/TinyElementObserver.md +1 -1
  314. package/docs/v1/libs/TinyHtml.md +1 -1
  315. package/docs/v1/libs/TinyIframeEvents.md +2 -2
  316. package/docs/v1/libs/TinyLevelUp.md +1 -1
  317. package/docs/v1/libs/TinyLoadingScreen.md +1 -1
  318. package/docs/v1/libs/TinyNewWinEvents.md +2 -2
  319. package/docs/v1/libs/TinyNotifications.md +1 -1
  320. package/docs/v1/libs/TinyPromiseQueue.md +2 -2
  321. package/docs/v1/libs/TinyTextDiffer.md +1 -1
  322. package/docs/v1/libs/TinyTextarea.md +1 -1
  323. package/package.json +11 -2
@@ -1,7 +1,3 @@
1
- export default TinyGamepad;
2
- /**
3
- * Describes the status of a key or button.
4
- */
5
1
  export type KeyStatus = {
6
2
  /**
7
3
  * - Whether the key is currently pressed.
@@ -10,84 +6,30 @@ export type KeyStatus = {
10
6
  /**
11
7
  * - Optional analog value associated with the key.
12
8
  */
13
- value?: number | undefined;
9
+ value?: number;
14
10
  /**
15
11
  * - Optional second analog value.
16
12
  */
17
- value2?: number | undefined;
13
+ value2?: number;
18
14
  };
19
- /**
20
- * Defines the available input modes.
21
- */
22
- export type InputMode = "gamepad-only" | "keyboard-only" | "both";
23
- /**
24
- * A callback function that is invoked when a mapped logical input is activated or deactivated.
25
- *
26
- * This function receives the logical name associated with the input (e.g., "Jump", "Shoot", "Menu")
27
- * and can be used to handle input-related actions such as triggering game mechanics or UI behavior.
28
- */
15
+ export type InputMode = 'gamepad-only' | 'keyboard-only' | 'both';
29
16
  export type MappedInputCallback = (payload: {
30
17
  logicalName: string;
31
18
  activeTime: number;
32
19
  comboTime: number;
33
20
  }) => void;
34
- /**
35
- * A callback function that is invoked when a mapped key is activated or deactivated.
36
- *
37
- * This function receives the key name associated with the input (e.g., "KeyA", "KeyB", "KeyC")
38
- * and can be used to handle input-related actions such as triggering game mechanics or UI behavior.
39
- */
40
21
  export type MappedKeyCallback = (payload: {
41
22
  key: string;
42
23
  activeTime: number;
43
24
  }) => void;
44
- /**
45
- * Callback for handling input events.
46
- */
47
25
  export type PayloadCallback = (payload: InputPayload | InputAnalogPayload) => void;
48
- /**
49
- * Callback for handling gamepad connection events.
50
- */
51
26
  export type ConnectionCallback = (payload: ConnectionPayload) => void;
52
- /**
53
- * A callback function that is triggered when a registered input sequence is fully activated.
54
- */
55
27
  export type InputSequenceCallback = (timestamp: number) => any;
56
- /**
57
- * A callback function that is triggered when a registered key sequence is fully activated.
58
- */
59
28
  export type KeySequenceCallback = (timestamp: number) => any;
60
- /**
61
- * Represents any valid callback type used in the TinyGamepad event system.
62
- * This is a union of all supported callback signatures.
63
- */
64
29
  export type CallbackList = ConnectionCallback | PayloadCallback | MappedInputCallback | MappedKeyCallback;
65
- /**
66
- * Represents a specific input source from a gamepad.
67
- * - 'gamepad-analog' refers to analog sticks or analog triggers.
68
- * - 'gamepad-button' refers to digital buttons on the gamepad.
69
- */
70
- export type GamepadDeviceSource = "gamepad-analog" | "gamepad-button";
71
- /**
72
- * Represents any possible physical device source that can be used for input.
73
- * - 'mouse': Input from a mouse.
74
- * - 'keyboard': Input from a keyboard.
75
- * - 'gamepad-analog': Analog input from a gamepad (e.g., sticks, triggers).
76
- * - 'gamepad-button': Digital button input from a gamepad.
77
- */
78
- export type DeviceSource = "mouse" | "keyboard" | GamepadDeviceSource;
79
- /**
80
- * Represents the type of input interaction detected.
81
- * - 'up': Input was released.
82
- * - 'down': Input was pressed.
83
- * - 'hold': Input is being held.
84
- * - 'change': Input value changed (e.g., pressure or axis).
85
- * - 'move': Analog movement detected (e.g., joystick motion).
86
- */
87
- export type DeviceInputType = "up" | "down" | "hold" | "change" | "move";
88
- /**
89
- * Structure for digital button input payload.
90
- */
30
+ export type GamepadDeviceSource = 'gamepad-analog' | 'gamepad-button';
31
+ export type DeviceSource = 'mouse' | 'keyboard' | GamepadDeviceSource;
32
+ export type DeviceInputType = 'up' | 'down' | 'hold' | 'change' | 'move';
91
33
  export type InputPayload = {
92
34
  /**
93
35
  * - Unique identifier for the input.
@@ -96,7 +38,7 @@ export type InputPayload = {
96
38
  /**
97
39
  * - Optional DOM event reference.
98
40
  */
99
- event?: Event | undefined;
41
+ event?: Event;
100
42
  /**
101
43
  * - Type of input event (down, up, hold).
102
44
  */
@@ -132,7 +74,7 @@ export type InputPayload = {
132
74
  /**
133
75
  * - Previous pressed status.
134
76
  */
135
- prevPressed?: boolean | null | undefined;
77
+ prevPressed?: boolean | null;
136
78
  /**
137
79
  * - Timestamp of the event.
138
80
  */
@@ -140,11 +82,8 @@ export type InputPayload = {
140
82
  /**
141
83
  * - Reference to the originating Gamepad.
142
84
  */
143
- gp?: Gamepad | undefined;
85
+ gp?: Gamepad;
144
86
  };
145
- /**
146
- * Structure for analog input payload.
147
- */
148
87
  export type InputAnalogPayload = {
149
88
  /**
150
89
  * - Unique identifier for the input.
@@ -153,7 +92,7 @@ export type InputAnalogPayload = {
153
92
  /**
154
93
  * - Optional DOM event reference.
155
94
  */
156
- event?: Event | undefined;
95
+ event?: Event;
157
96
  /**
158
97
  * - Type of input event (change).
159
98
  */
@@ -185,11 +124,8 @@ export type InputAnalogPayload = {
185
124
  /**
186
125
  * - Reference to the originating Gamepad.
187
126
  */
188
- gp?: Gamepad | undefined;
127
+ gp?: Gamepad;
189
128
  };
190
- /**
191
- * Internal structure for digital input events.
192
- */
193
129
  export type InputEvents = {
194
130
  /**
195
131
  * - Unique identifier for the input.
@@ -198,7 +134,7 @@ export type InputEvents = {
198
134
  /**
199
135
  * - Optional DOM event reference.
200
136
  */
201
- event?: Event | undefined;
137
+ event?: Event;
202
138
  /**
203
139
  * - Input key identifier.
204
140
  */
@@ -230,7 +166,7 @@ export type InputEvents = {
230
166
  /**
231
167
  * - Previous pressed status.
232
168
  */
233
- prevPressed?: boolean | null | undefined;
169
+ prevPressed?: boolean | null;
234
170
  /**
235
171
  * - Timestamp of the event.
236
172
  */
@@ -238,11 +174,8 @@ export type InputEvents = {
238
174
  /**
239
175
  * - Reference to the gamepad.
240
176
  */
241
- gp?: Gamepad | undefined;
177
+ gp?: Gamepad;
242
178
  };
243
- /**
244
- * Internal structure for analog input events.
245
- */
246
179
  export type InputAnalogEvents = {
247
180
  /**
248
181
  * - Unique identifier for the input.
@@ -251,7 +184,7 @@ export type InputAnalogEvents = {
251
184
  /**
252
185
  * - Optional DOM event reference.
253
186
  */
254
- event?: Event | undefined;
187
+ event?: Event;
255
188
  /**
256
189
  * - Analog key.
257
190
  */
@@ -279,11 +212,8 @@ export type InputAnalogEvents = {
279
212
  /**
280
213
  * - Gamepad reference.
281
214
  */
282
- gp?: Gamepad | undefined;
215
+ gp?: Gamepad;
283
216
  };
284
- /**
285
- * Payload for connection-related events.
286
- */
287
217
  export type ConnectionPayload = {
288
218
  /**
289
219
  * - ID of the gamepad.
@@ -492,8 +422,7 @@ export type ExportedConfig = {
492
422
  * detailed input feedback, and JSON-based profile serialization for saving and restoring mappings.
493
423
  */
494
424
  declare class TinyGamepad {
495
- /** @type {Record<string, string>} */
496
- static #specialMap: Record<string, string>;
425
+ #private;
497
426
  /**
498
427
  * Add or update a special key mapping.
499
428
  * @param {string} char - The character to map.
@@ -541,14 +470,14 @@ declare class TinyGamepad {
541
470
  * @param {Window|Element} [options.elementBase=window] - The DOM element or window to bind keyboard and mouse events to.
542
471
  */
543
472
  constructor({ expectedId, inputMode, ignoreIds, deadZone, axisActiveSensitivity, timeoutComboKeys, allowMouse, elementBase, }?: {
544
- expectedId?: string | null | undefined;
545
- inputMode?: InputMode | undefined;
546
- ignoreIds?: string[] | undefined;
547
- deadZone?: number | undefined;
548
- allowMouse?: boolean | undefined;
549
- timeoutComboKeys?: number | undefined;
550
- axisActiveSensitivity?: number | undefined;
551
- elementBase?: Element | Window | undefined;
473
+ expectedId?: string | null;
474
+ inputMode?: InputMode;
475
+ ignoreIds?: string[];
476
+ deadZone?: number;
477
+ allowMouse?: boolean;
478
+ timeoutComboKeys?: number;
479
+ axisActiveSensitivity?: number;
480
+ elementBase?: Window | Element;
552
481
  });
553
482
  /**
554
483
  * Waits for a single input event from the user and resolves with detailed input information.
@@ -570,9 +499,9 @@ declare class TinyGamepad {
570
499
  * - `gp`: the Gamepad object (only if the input source is a gamepad).
571
500
  */
572
501
  awaitInputMapping({ timeout, eventName, canMove }?: {
573
- timeout?: number | undefined;
574
- eventName?: string | undefined;
575
- canMove?: boolean | undefined;
502
+ timeout?: number;
503
+ eventName?: string;
504
+ canMove?: boolean;
576
505
  }): Promise<{
577
506
  key: string | null;
578
507
  source: DeviceSource | null;
@@ -906,20 +835,20 @@ declare class TinyGamepad {
906
835
  * @param {'all' | 'start' | 'end' | 'hold' | 'change' | 'move'} [type='all']
907
836
  * @returns {Function[]}
908
837
  */
909
- getCalls(logicalName: string, type?: "all" | "start" | "end" | "hold" | "change" | "move"): Function[];
838
+ getCalls(logicalName: string, type?: 'all' | 'start' | 'end' | 'hold' | 'change' | 'move'): Function[];
910
839
  /**
911
840
  * Removes all callbacks for a specific logical input event.
912
841
  * @param {string} logicalName
913
842
  * @param {'all'| 'start' | 'end' | 'hold' | 'change' | 'move'} [type='all']
914
843
  */
915
- offAllInputs(logicalName: string, type?: "all" | "start" | "end" | "hold" | "change" | "move"): void;
844
+ offAllInputs(logicalName: string, type?: 'all' | 'start' | 'end' | 'hold' | 'change' | 'move'): void;
916
845
  /**
917
846
  * Returns the number of registered callbacks for a specific logical input and type.
918
847
  * @param {string} logicalName
919
848
  * @param {'all' | 'start' | 'end' | 'hold' | 'change' | 'move'} [type='all']
920
849
  * @returns {number}
921
850
  */
922
- getCallSize(logicalName: string, type?: "all" | "start" | "end" | "hold" | "change" | "move"): number;
851
+ getCallSize(logicalName: string, type?: 'all' | 'start' | 'end' | 'hold' | 'change' | 'move'): number;
923
852
  /**
924
853
  * Returns the current default haptic feedback effect configuration.
925
854
  *
@@ -1220,6 +1149,11 @@ declare class TinyGamepad {
1220
1149
  * @returns {number}
1221
1150
  */
1222
1151
  get timeMappedInputs(): number;
1152
+ /**
1153
+ * Returns the timeout duration (in milliseconds) before raw key combos are reset.
1154
+ * @returns {number}
1155
+ */
1156
+ get timeoutComboKeys(): number;
1223
1157
  /**
1224
1158
  * Sets the timeout duration (in milliseconds) before raw key combos are reset.
1225
1159
  * Must be a positive number.
@@ -1227,10 +1161,14 @@ declare class TinyGamepad {
1227
1161
  */
1228
1162
  set timeoutComboKeys(value: number);
1229
1163
  /**
1230
- * Returns the timeout duration (in milliseconds) before raw key combos are reset.
1231
- * @returns {number}
1164
+ * Gets the sensitivity threshold used to detect when an axis (like a thumbstick or trigger)
1165
+ * is considered "actively moved". This helps distinguish minor noise from intentional input.
1166
+ *
1167
+ * A value of 0 means even the slightest movement is detected; a value closer to 1 means only strong input is accepted.
1168
+ *
1169
+ * @returns {number} The current axis activity sensitivity (between 0 and 1).
1232
1170
  */
1233
- get timeoutComboKeys(): number;
1171
+ get axisActiveSensitivity(): number;
1234
1172
  /**
1235
1173
  * Sets the sensitivity threshold used to detect active axis input.
1236
1174
  * This value defines how far an analog axis (such as a thumbstick or trigger) must move from its rest position
@@ -1242,14 +1180,10 @@ declare class TinyGamepad {
1242
1180
  */
1243
1181
  set axisActiveSensitivity(value: number);
1244
1182
  /**
1245
- * Gets the sensitivity threshold used to detect when an axis (like a thumbstick or trigger)
1246
- * is considered "actively moved". This helps distinguish minor noise from intentional input.
1247
- *
1248
- * A value of 0 means even the slightest movement is detected; a value closer to 1 means only strong input is accepted.
1249
- *
1250
- * @returns {number} The current axis activity sensitivity (between 0 and 1).
1183
+ * Returns the current dead zone threshold for analog inputs.
1184
+ * @returns {number}
1251
1185
  */
1252
- get axisActiveSensitivity(): number;
1186
+ get deadZone(): number;
1253
1187
  /**
1254
1188
  * Sets a new dead zone threshold for analog inputs.
1255
1189
  * Must be a number between 0 and 1.
@@ -1257,20 +1191,14 @@ declare class TinyGamepad {
1257
1191
  */
1258
1192
  set deadZone(value: number);
1259
1193
  /**
1260
- * Returns the current dead zone threshold for analog inputs.
1261
- * @returns {number}
1194
+ * Returns the expected device ID, or null if any is accepted.
1195
+ * @returns {string|null}
1262
1196
  */
1263
- get deadZone(): number;
1197
+ get expectedId(): string | null;
1264
1198
  /**
1265
1199
  * Sets the expected device ID.
1266
- * @returns {string}
1267
1200
  */
1268
1201
  set expectedId(value: string | null);
1269
- /**
1270
- * Returns the expected device ID, or null if any is accepted.
1271
- * @returns {string|null}
1272
- */
1273
- get expectedId(): string | null;
1274
1202
  /**
1275
1203
  * Returns whether the instance has been destroyed
1276
1204
  * @returns {boolean}
@@ -1281,6 +1209,6 @@ declare class TinyGamepad {
1281
1209
  * Marks the instance as destroyed.
1282
1210
  */
1283
1211
  destroy(): void;
1284
- #private;
1285
1212
  }
1213
+ export default TinyGamepad;
1286
1214
  //# sourceMappingURL=TinyGamepad.d.mts.map