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,3 +1,5 @@
1
+ import { createCheckDestroyed } from './utils.mjs';
2
+ const checkDestroy = createCheckDestroyed('TinyAnalogClock');
1
3
  /**
2
4
  * Configuration object for the Analog Clock.
3
5
  * @typedef {Object} ClockConfig
@@ -32,6 +34,19 @@ class TinyAnalogClock {
32
34
  #config;
33
35
  /** @type {number|null} */
34
36
  #animationFrame = null;
37
+ /**
38
+ * Tracks whether the instance has been destroyed.
39
+ * @type {boolean}
40
+ */
41
+ #destroyed = false;
42
+ /**
43
+ * Gets the current destruction status of the instance.
44
+ *
45
+ * @returns {boolean} True if the instance is destroyed, false otherwise.
46
+ */
47
+ get destroyed() {
48
+ return this.#destroyed;
49
+ }
35
50
  /**
36
51
  * Retrieves the current date and extracts the specific hour, minute, and second components.
37
52
  * @returns {{ now: Date, s: number, m: number, h: number }}
@@ -297,6 +312,7 @@ class TinyAnalogClock {
297
312
  * @returns {HTMLElement} The clock container.
298
313
  */
299
314
  get element() {
315
+ checkDestroy(this.#destroyed);
300
316
  return this.#element;
301
317
  }
302
318
  /**
@@ -305,6 +321,7 @@ class TinyAnalogClock {
305
321
  * @throws {Error} If value is not a positive number.
306
322
  */
307
323
  set size(value) {
324
+ checkDestroy(this.#destroyed);
308
325
  if (typeof value !== 'number' || value <= 0 || isNaN(value)) {
309
326
  throw new Error(`TinyAnalogClock: 'size' must be a positive number. Received: ${value}`);
310
327
  }
@@ -316,6 +333,7 @@ class TinyAnalogClock {
316
333
  * @returns {number}
317
334
  */
318
335
  get size() {
336
+ checkDestroy(this.#destroyed);
319
337
  return this.#config.size;
320
338
  }
321
339
  /**
@@ -324,6 +342,7 @@ class TinyAnalogClock {
324
342
  * @throws {Error} If value is not a string or null.
325
343
  */
326
344
  set skinUrl(url) {
345
+ checkDestroy(this.#destroyed);
327
346
  if (url !== null && typeof url !== 'string') {
328
347
  throw new Error(`TinyAnalogClock: 'skin' must be a URL string or null. Received type: ${typeof url}`);
329
348
  }
@@ -335,6 +354,7 @@ class TinyAnalogClock {
335
354
  * @returns {string|null}
336
355
  */
337
356
  get skinUrl() {
357
+ checkDestroy(this.#destroyed);
338
358
  return this.#config.skinUrl;
339
359
  }
340
360
  /**
@@ -343,6 +363,7 @@ class TinyAnalogClock {
343
363
  * @throws {Error} If value is not a non-empty string.
344
364
  */
345
365
  set borderColor(color) {
366
+ checkDestroy(this.#destroyed);
346
367
  if (typeof color !== 'string' || color.trim() === '') {
347
368
  throw new Error(`TinyAnalogClock: 'borderColor' must be a non-empty string. Received: ${color}`);
348
369
  }
@@ -355,6 +376,7 @@ class TinyAnalogClock {
355
376
  * @returns {string}
356
377
  */
357
378
  get borderColor() {
379
+ checkDestroy(this.#destroyed);
358
380
  return this.#config.borderColor;
359
381
  }
360
382
  /**
@@ -363,6 +385,7 @@ class TinyAnalogClock {
363
385
  * @throws {Error} If value is not a non-empty string.
364
386
  */
365
387
  set markColor(color) {
388
+ checkDestroy(this.#destroyed);
366
389
  if (typeof color !== 'string' || color.trim() === '') {
367
390
  throw new Error(`TinyAnalogClock: 'markColor' must be a non-empty string. Received: ${color}`);
368
391
  }
@@ -375,6 +398,7 @@ class TinyAnalogClock {
375
398
  * @returns {string}
376
399
  */
377
400
  get markColor() {
401
+ checkDestroy(this.#destroyed);
378
402
  return this.#config.markColor;
379
403
  }
380
404
  /**
@@ -383,6 +407,7 @@ class TinyAnalogClock {
383
407
  * @throws {Error} If value is not a non-empty string.
384
408
  */
385
409
  set textColor(color) {
410
+ checkDestroy(this.#destroyed);
386
411
  if (typeof color !== 'string' || color.trim() === '') {
387
412
  throw new Error(`TinyAnalogClock: 'textColor' must be a non-empty string. Received: ${color}`);
388
413
  }
@@ -395,6 +420,7 @@ class TinyAnalogClock {
395
420
  * @returns {string}
396
421
  */
397
422
  get textColor() {
423
+ checkDestroy(this.#destroyed);
398
424
  return this.#config.textColor;
399
425
  }
400
426
  /**
@@ -403,6 +429,7 @@ class TinyAnalogClock {
403
429
  * @throws {Error} If value is not a boolean.
404
430
  */
405
431
  set showNumbers(value) {
432
+ checkDestroy(this.#destroyed);
406
433
  if (typeof value !== 'boolean') {
407
434
  throw new Error(`TinyAnalogClock: 'showNumbers' must be a boolean. Received type: ${typeof value}`);
408
435
  }
@@ -414,6 +441,7 @@ class TinyAnalogClock {
414
441
  * @returns {boolean}
415
442
  */
416
443
  get showNumbers() {
444
+ checkDestroy(this.#destroyed);
417
445
  return this.#config.showNumbers;
418
446
  }
419
447
  /**
@@ -421,6 +449,7 @@ class TinyAnalogClock {
421
449
  * @param {string} value
422
450
  */
423
451
  set bgColor(value) {
452
+ checkDestroy(this.#destroyed);
424
453
  if (typeof value !== 'string' || !value)
425
454
  throw new Error("TinyAnalogClock: 'bgColor' must be a non-empty string.");
426
455
  this.#config.bgColor = value;
@@ -431,6 +460,7 @@ class TinyAnalogClock {
431
460
  * @returns {string}
432
461
  */
433
462
  get bgColor() {
463
+ checkDestroy(this.#destroyed);
434
464
  return this.#config.bgColor;
435
465
  }
436
466
  /**
@@ -438,6 +468,7 @@ class TinyAnalogClock {
438
468
  * @param {number} value
439
469
  */
440
470
  set borderWidth(value) {
471
+ checkDestroy(this.#destroyed);
441
472
  if (typeof value !== 'number' || value < 0)
442
473
  throw new Error("TinyAnalogClock: 'borderWidth' must be a non-negative number.");
443
474
  this.#config.borderWidth = value;
@@ -449,6 +480,7 @@ class TinyAnalogClock {
449
480
  * @returns {number}
450
481
  */
451
482
  get borderWidth() {
483
+ checkDestroy(this.#destroyed);
452
484
  return this.#config.borderWidth;
453
485
  }
454
486
  /**
@@ -456,6 +488,7 @@ class TinyAnalogClock {
456
488
  * @param {string} value
457
489
  */
458
490
  set hourHandColor(value) {
491
+ checkDestroy(this.#destroyed);
459
492
  if (typeof value !== 'string' || !value)
460
493
  throw new Error("TinyAnalogClock: 'hourHandColor' must be a non-empty string.");
461
494
  this.#config.hourHandColor = value;
@@ -466,6 +499,7 @@ class TinyAnalogClock {
466
499
  * @returns {string}
467
500
  */
468
501
  get hourHandColor() {
502
+ checkDestroy(this.#destroyed);
469
503
  return this.#config.hourHandColor;
470
504
  }
471
505
  /**
@@ -473,6 +507,7 @@ class TinyAnalogClock {
473
507
  * @param {string} value
474
508
  */
475
509
  set minuteHandColor(value) {
510
+ checkDestroy(this.#destroyed);
476
511
  if (typeof value !== 'string' || !value)
477
512
  throw new Error("TinyAnalogClock: 'minuteHandColor' must be a non-empty string.");
478
513
  this.#config.minuteHandColor = value;
@@ -483,6 +518,7 @@ class TinyAnalogClock {
483
518
  * @returns {string}
484
519
  */
485
520
  get minuteHandColor() {
521
+ checkDestroy(this.#destroyed);
486
522
  return this.#config.minuteHandColor;
487
523
  }
488
524
  /**
@@ -490,6 +526,7 @@ class TinyAnalogClock {
490
526
  * @param {string} value
491
527
  */
492
528
  set secondHandColor(value) {
529
+ checkDestroy(this.#destroyed);
493
530
  if (typeof value !== 'string' || !value)
494
531
  throw new Error("TinyAnalogClock: 'secondHandColor' must be a non-empty string.");
495
532
  this.#config.secondHandColor = value;
@@ -500,6 +537,7 @@ class TinyAnalogClock {
500
537
  * @returns {string}
501
538
  */
502
539
  get secondHandColor() {
540
+ checkDestroy(this.#destroyed);
503
541
  return this.#config.secondHandColor;
504
542
  }
505
543
  /**
@@ -507,6 +545,7 @@ class TinyAnalogClock {
507
545
  * @param {boolean} value
508
546
  */
509
547
  set showSeconds(value) {
548
+ checkDestroy(this.#destroyed);
510
549
  if (typeof value !== 'boolean')
511
550
  throw new Error("TinyAnalogClock: 'showSeconds' must be a boolean.");
512
551
  this.#config.showSeconds = value;
@@ -517,6 +556,7 @@ class TinyAnalogClock {
517
556
  * @returns {boolean}
518
557
  */
519
558
  get showSeconds() {
559
+ checkDestroy(this.#destroyed);
520
560
  return this.#config.showSeconds;
521
561
  }
522
562
  /**
@@ -524,6 +564,7 @@ class TinyAnalogClock {
524
564
  * @param {number} value - Positive number.
525
565
  */
526
566
  set sizeAdjust(value) {
567
+ checkDestroy(this.#destroyed);
527
568
  if (typeof value !== 'number' || value <= 0)
528
569
  throw new Error("TinyAnalogClock: 'sizeAdjust' must be a positive number.");
529
570
  this.#config.sizeAdjust = value;
@@ -534,6 +575,7 @@ class TinyAnalogClock {
534
575
  * @returns {number}
535
576
  */
536
577
  get sizeAdjust() {
578
+ checkDestroy(this.#destroyed);
537
579
  return this.#config.sizeAdjust;
538
580
  }
539
581
  /**
@@ -541,6 +583,7 @@ class TinyAnalogClock {
541
583
  * @param {number} value - Non-negative number in pixels.
542
584
  */
543
585
  set padding(value) {
586
+ checkDestroy(this.#destroyed);
544
587
  if (typeof value !== 'number' || value < 0)
545
588
  throw new Error("TinyAnalogClock: 'padding' must be a non-negative number.");
546
589
  this.#config.padding = value;
@@ -551,6 +594,7 @@ class TinyAnalogClock {
551
594
  * @returns {number}
552
595
  */
553
596
  get padding() {
597
+ checkDestroy(this.#destroyed);
554
598
  return this.#config.padding;
555
599
  }
556
600
  /**
@@ -558,6 +602,7 @@ class TinyAnalogClock {
558
602
  * @param {number} value - Positive number.
559
603
  */
560
604
  set angleDistance(value) {
605
+ checkDestroy(this.#destroyed);
561
606
  if (typeof value !== 'number' || value <= 0)
562
607
  throw new Error("TinyAnalogClock: 'angleDistance' must be a positive number.");
563
608
  this.#config.angleDistance = value;
@@ -568,6 +613,7 @@ class TinyAnalogClock {
568
613
  * @returns {number}
569
614
  */
570
615
  get angleDistance() {
616
+ checkDestroy(this.#destroyed);
571
617
  return this.#config.angleDistance;
572
618
  }
573
619
  /**
@@ -575,6 +621,7 @@ class TinyAnalogClock {
575
621
  * @param {number} value - Positive number.
576
622
  */
577
623
  set pwH(value) {
624
+ checkDestroy(this.#destroyed);
578
625
  if (typeof value !== 'number' || value <= 0)
579
626
  throw new Error("TinyAnalogClock: 'pwH' must be a positive number.");
580
627
  this.#config.pwH = value;
@@ -585,6 +632,7 @@ class TinyAnalogClock {
585
632
  * @returns {number}
586
633
  */
587
634
  get pwH() {
635
+ checkDestroy(this.#destroyed);
588
636
  return this.#config.pwH;
589
637
  }
590
638
  /**
@@ -592,6 +640,7 @@ class TinyAnalogClock {
592
640
  * @param {number} value - Positive number.
593
641
  */
594
642
  set phH(value) {
643
+ checkDestroy(this.#destroyed);
595
644
  if (typeof value !== 'number' || value <= 0)
596
645
  throw new Error("TinyAnalogClock: 'phH' must be a positive number.");
597
646
  this.#config.phH = value;
@@ -602,6 +651,7 @@ class TinyAnalogClock {
602
651
  * @returns {number}
603
652
  */
604
653
  get phH() {
654
+ checkDestroy(this.#destroyed);
605
655
  return this.#config.phH;
606
656
  }
607
657
  /**
@@ -609,6 +659,7 @@ class TinyAnalogClock {
609
659
  * @param {number} value - Positive number.
610
660
  */
611
661
  set pwM(value) {
662
+ checkDestroy(this.#destroyed);
612
663
  if (typeof value !== 'number' || value <= 0)
613
664
  throw new Error("TinyAnalogClock: 'pwM' must be a positive number.");
614
665
  this.#config.pwM = value;
@@ -619,6 +670,7 @@ class TinyAnalogClock {
619
670
  * @returns {number}
620
671
  */
621
672
  get pwM() {
673
+ checkDestroy(this.#destroyed);
622
674
  return this.#config.pwM;
623
675
  }
624
676
  /**
@@ -626,6 +678,7 @@ class TinyAnalogClock {
626
678
  * @param {number} value - Positive number.
627
679
  */
628
680
  set phM(value) {
681
+ checkDestroy(this.#destroyed);
629
682
  if (typeof value !== 'number' || value <= 0)
630
683
  throw new Error("TinyAnalogClock: 'phM' must be a positive number.");
631
684
  this.#config.phM = value;
@@ -636,6 +689,7 @@ class TinyAnalogClock {
636
689
  * @returns {number}
637
690
  */
638
691
  get phM() {
692
+ checkDestroy(this.#destroyed);
639
693
  return this.#config.phM;
640
694
  }
641
695
  /**
@@ -643,11 +697,14 @@ class TinyAnalogClock {
643
697
  * @returns {void}
644
698
  */
645
699
  destroy() {
700
+ if (this.#destroyed)
701
+ return;
646
702
  if (this.#animationFrame) {
647
703
  cancelAnimationFrame(this.#animationFrame);
648
704
  this.#animationFrame = null;
649
705
  }
650
706
  this.#element.remove();
707
+ this.#destroyed = true;
651
708
  }
652
709
  }
653
710
  export default TinyAnalogClock;
@@ -1,8 +1,8 @@
1
- export default TinyArrayComparator;
2
1
  /**
3
- * Holds the internal tracking variables during the comparison process.
2
+ * @fileoverview Array comparison utility.
3
+ * @module TinyArrayComparator
4
4
  */
5
- export type InternalState<ArrayItem extends unknown> = {
5
+ export type InternalState<ArrayItem extends any> = {
6
6
  /**
7
7
  * - A map storing the hash as the key and the original item as the value.
8
8
  */
@@ -12,17 +12,10 @@ export type InternalState<ArrayItem extends unknown> = {
12
12
  */
13
13
  affectedItems: AffectedItems<ArrayItem>;
14
14
  };
15
- /**
16
- * The final array that collects added or deleted items.
17
- */
18
- export type AffectedItems<ArrayItem extends unknown> = Array<{
15
+ export type AffectedItems<ArrayItem extends any> = Array<{
19
16
  item: ArrayItem;
20
- status: "added" | "deleted";
17
+ status: 'added' | 'deleted';
21
18
  }>;
22
- /**
23
- * @fileoverview Array comparison utility.
24
- * @module TinyArrayComparator
25
- */
26
19
  /**
27
20
  * @template {any} ArrayItem
28
21
  * @typedef {Object} InternalState
@@ -39,7 +32,8 @@ export type AffectedItems<ArrayItem extends unknown> = Array<{
39
32
  * Compares two arrays efficiently by hashing their items to detect additions and deletions.
40
33
  * @template {any} ArrayItem
41
34
  */
42
- declare class TinyArrayComparator<ArrayItem extends unknown> {
35
+ declare class TinyArrayComparator<ArrayItem extends any> {
36
+ #private;
43
37
  /**
44
38
  * Generates a simple 32-bit integer hash converted to a base36 string.
45
39
  * @param {any} item - The item to be hashed (can be an object, array, string, or number).
@@ -47,10 +41,10 @@ declare class TinyArrayComparator<ArrayItem extends unknown> {
47
41
  */
48
42
  static generateHash(item: any): string;
49
43
  /**
50
- * Initializes the comparator with an optional base array.
51
- * @param {ArrayItem[]} [oldArray] - The initial state of the array to be stored.
44
+ * Gets the current base array used for comparisons.
45
+ * @returns {ArrayItem[]} The current initial state of the array.
52
46
  */
53
- constructor(oldArray?: ArrayItem[]);
47
+ get oldArray(): ArrayItem[];
54
48
  /**
55
49
  * Sets a new base array for future comparisons.
56
50
  * @param {ArrayItem[]} oldArray - The initial state of the array.
@@ -58,10 +52,10 @@ declare class TinyArrayComparator<ArrayItem extends unknown> {
58
52
  */
59
53
  set oldArray(oldArray: ArrayItem[]);
60
54
  /**
61
- * Gets the current base array used for comparisons.
62
- * @returns {ArrayItem[]} The current initial state of the array.
55
+ * Initializes the comparator with an optional base array.
56
+ * @param {ArrayItem[]} [oldArray] - The initial state of the array to be stored.
63
57
  */
64
- get oldArray(): ArrayItem[];
58
+ constructor(oldArray?: ArrayItem[]);
65
59
  /**
66
60
  * Proxy to generates a hash converted to a string.
67
61
  * @param {ArrayItem} item - The item to be hashed (can be an object, array, string, or number).
@@ -77,6 +71,6 @@ declare class TinyArrayComparator<ArrayItem extends unknown> {
77
71
  * @throws {TypeError} Throws an error if the provided value is not an array.
78
72
  */
79
73
  compare(newArray: ArrayItem[]): AffectedItems<ArrayItem>;
80
- #private;
81
74
  }
75
+ export default TinyArrayComparator;
82
76
  //# sourceMappingURL=TinyArrayComparator.d.mts.map
@@ -1,10 +1,16 @@
1
- export default TinyArrayPaginator;
2
1
  /**
3
2
  * A predicate function used to determine whether an item should be included in the filtered results.
4
3
  * Works similarly to the callback function of `Array.prototype.filter`.
4
+ *
5
+ * @template {any} ArrayItem
6
+ * @callback GetFilter
7
+ * @param {ArrayItem} value - The current element being processed in the array.
8
+ * @param {number} index - The index of the current element within the array.
9
+ * @param {ArrayItem[]} array - The full array being processed.
10
+ * @returns {boolean} Returns `true` to include the element in the results, or `false` to exclude it.
5
11
  */
6
- export type GetFilter<ArrayItem extends unknown> = (value: ArrayItem, index: number, array: ArrayItem[]) => boolean;
7
- export type GetterResult<ArrayItem extends unknown> = {
12
+ export type GetFilter<ArrayItem extends any> = (value: ArrayItem, index: number, array: ArrayItem[]) => boolean;
13
+ export type GetterResult<ArrayItem extends any> = {
8
14
  /**
9
15
  * - The subset of items for the requested page.
10
16
  */
@@ -34,17 +40,6 @@ export type GetterResult<ArrayItem extends unknown> = {
34
40
  */
35
41
  hasNext: boolean;
36
42
  };
37
- /**
38
- * A predicate function used to determine whether an item should be included in the filtered results.
39
- * Works similarly to the callback function of `Array.prototype.filter`.
40
- *
41
- * @template {any} ArrayItem
42
- * @callback GetFilter
43
- * @param {ArrayItem} value - The current element being processed in the array.
44
- * @param {number} index - The index of the current element within the array.
45
- * @param {ArrayItem[]} array - The full array being processed.
46
- * @returns {boolean} Returns `true` to include the element in the results, or `false` to exclude it.
47
- */
48
43
  /**
49
44
  * @template {any} ArrayItem
50
45
  * @typedef {Object} GetterResult
@@ -62,29 +57,30 @@ export type GetterResult<ArrayItem extends unknown> = {
62
57
  * while keeping the source array safe from direct modifications.
63
58
  * @template {any} ArrayItem
64
59
  */
65
- declare class TinyArrayPaginator<ArrayItem extends unknown> {
60
+ declare class TinyArrayPaginator<ArrayItem extends any> {
61
+ #private;
66
62
  /**
67
- * Creates a new paginator instance for the given data array.
68
- * @param {ArrayItem[]|Set<ArrayItem>} data - The array to be paginated.
69
- * @throws {TypeError} If the provided data is not an array.
63
+ * Gets current stored array.
64
+ * @returns {ArrayItem[]|Set<ArrayItem>}
70
65
  */
71
- constructor(data: ArrayItem[] | Set<ArrayItem>);
66
+ get data(): ArrayItem[] | Set<ArrayItem>;
72
67
  /**
73
68
  * Replaces the current data array.
74
69
  * @param {ArrayItem[]|Set<ArrayItem>} value - The new array to be used as the data source.
75
70
  * @throws {TypeError} If the provided value is not an array.
76
71
  */
77
72
  set data(value: ArrayItem[] | Set<ArrayItem>);
78
- /**
79
- * Gets current stored array.
80
- * @returns {ArrayItem[]|Set<ArrayItem>}
81
- */
82
- get data(): ArrayItem[] | Set<ArrayItem>;
83
73
  /**
84
74
  * Gets the total number of items in the current data array.
85
75
  * @returns {number} Total number of stored items.
86
76
  */
87
77
  get size(): number;
78
+ /**
79
+ * Creates a new paginator instance for the given data array.
80
+ * @param {ArrayItem[]|Set<ArrayItem>} data - The array to be paginated.
81
+ * @throws {TypeError} If the provided data is not an array.
82
+ */
83
+ constructor(data: ArrayItem[] | Set<ArrayItem>);
88
84
  /**
89
85
  * Filters data according to a search query and returns paginated results.
90
86
  * @param {Object} settings
@@ -98,8 +94,8 @@ declare class TinyArrayPaginator<ArrayItem extends unknown> {
98
94
  get({ page, perPage, filter }: {
99
95
  page: number;
100
96
  perPage: number;
101
- filter?: Record<string, RegExp | ArrayItem> | GetFilter<ArrayItem> | undefined;
97
+ filter?: Record<string, ArrayItem | RegExp> | GetFilter<ArrayItem>;
102
98
  }): GetterResult<ArrayItem>;
103
- #private;
104
99
  }
100
+ export default TinyArrayPaginator;
105
101
  //# sourceMappingURL=TinyArrayPaginator.d.mts.map
@@ -1,4 +1,3 @@
1
- export default TinyPluginInliner;
2
1
  export type RootReplacement = {
3
2
  /**
4
3
  * - The directory name to replace (e.g., 'src').
@@ -25,7 +24,7 @@ export type InlinerConfig = {
25
24
  /**
26
25
  * - Optional customization to remap project import roots.
27
26
  */
28
- rootReplacement?: RootReplacement | undefined;
27
+ rootReplacement?: RootReplacement;
29
28
  };
30
29
  /**
31
30
  * @typedef {Object} RootReplacement
@@ -40,12 +39,6 @@ export type InlinerConfig = {
40
39
  * @property {RootReplacement} [rootReplacement] - Optional customization to remap project import roots.
41
40
  */
42
41
  declare class TinyPluginInliner {
43
- /**
44
- * Creates an instance of the TinyPluginInliner.
45
- *
46
- * @param {InlinerConfig} config - The configuration object for the build process.
47
- */
48
- constructor(config: InlinerConfig);
49
42
  config: InlinerConfig;
50
43
  entryFile: string;
51
44
  outDir: string;
@@ -53,6 +46,12 @@ declare class TinyPluginInliner {
53
46
  entryDir: string;
54
47
  hoistedImports: Set<any>;
55
48
  hoistedTypedefs: Set<any>;
49
+ /**
50
+ * Creates an instance of the TinyPluginInliner.
51
+ *
52
+ * @param {InlinerConfig} config - The configuration object for the build process.
53
+ */
54
+ constructor(config: InlinerConfig);
56
55
  /**
57
56
  * Rewrites all import paths (both standard and inside JSDocs) in a given code string.
58
57
  * Handles local path root replacements and NPM package absolute path conversion.
@@ -89,4 +88,5 @@ declare class TinyPluginInliner {
89
88
  */
90
89
  build(): Promise<void>;
91
90
  }
91
+ export default TinyPluginInliner;
92
92
  //# sourceMappingURL=TinyPluginInliner.d.mts.map
@@ -9,7 +9,7 @@
9
9
  * @typedef {Object} PluginDefinition
10
10
  * @property {string} name - The unique identifier for the plugin.
11
11
  * @property {string[]} [dependencies] - Array of plugin names required before applying this one.
12
- * @property {function(TBase, AppliedPluginClasses): TExtended} apply - Function that receives the base class and returns the extended class.
12
+ * @property {(Base: TBase, classes: AppliedPluginClasses) => TExtended} apply - Function that receives the base class and returns the extended class.
13
13
  */
14
14
 
15
15
  /**
@@ -18,8 +18,6 @@
18
18
  * @template {T|NewTinyClass} oldT
19
19
  */
20
20
  class TinyClassManager {
21
- /** @typedef {[...oldT[], T]} AppliedPluginClasses */
22
-
23
21
  /**
24
22
  * @type {Set<string>}
25
23
  * Tracks the names of successfully applied plugins to prevent duplication and check dependencies.
@@ -36,7 +34,7 @@ class TinyClassManager {
36
34
  }
37
35
 
38
36
  /**
39
- * @type {AppliedPluginClasses}
37
+ * @type {[...oldT[], T]}
40
38
  * Tracks the classes of successfully applied plugins to prevent duplication and check dependencies.
41
39
  */
42
40
  // @ts-ignore
@@ -44,7 +42,7 @@ class TinyClassManager {
44
42
 
45
43
  /**
46
44
  * Gets the list of plugin classes currently applied to this instance.
47
- * @returns {AppliedPluginClasses} Array of applied plugin classes.
45
+ * @returns {[...oldT[], T]} Array of applied plugin classes.
48
46
  */
49
47
  get appliedPluginClasses() {
50
48
  if (this.#used) throw new Error(`[TinyClassManager] Cannot get a consumed manager instance.`);
@@ -140,7 +138,7 @@ class TinyClassManager {
140
138
  * Applies a plugin to the class chain using a definition object.
141
139
  * @deprecated Use {@link insert} instead.
142
140
  * @template {NewTinyClass} R
143
- * @param {PluginDefinition<T, R, AppliedPluginClasses>} plugin - The plugin module to be integrated.
141
+ * @param {PluginDefinition<T, R, [...oldT[], T]>} plugin - The plugin module to be integrated.
144
142
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
145
143
  * @throws {Error} Throws if instance is already consumed, plugin is duplicate, or dependencies are missing.
146
144
  */
@@ -164,7 +162,7 @@ class TinyClassManager {
164
162
  * Inserts a plugin directly by passing its apply function.
165
163
  * It reads `_tinyDepName` and `_tinyDeps` statically from the returned class.
166
164
  * @template {NewTinyClass} R
167
- * @param {function(T, AppliedPluginClasses): R} applyFn - Function that receives the base class and returns the extended class.
165
+ * @param {(ClassItem: T, classes: [...oldT[], T]) => R} applyFn - Function that receives the base class and returns the extended class.
168
166
  * @returns {TinyClassManager<R, T | oldT>} A new manager instance holding the extended class chain.
169
167
  * @throws {Error} Throws if static properties are missing, instance is consumed, or validation fails.
170
168
  */