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,5 +1,9 @@
1
1
  'use strict';
2
2
 
3
+ var utils = require('./utils.cjs');
4
+
5
+ const checkDestroy = utils.createCheckDestroyed('UltraRandomMsgGen');
6
+
3
7
  const defaultWords = [
4
8
  'lorem',
5
9
  'ipsum',
@@ -53,6 +57,33 @@ const defaultEmojis = [
53
57
  '🎮',
54
58
  '🥓',
55
59
  '🍮',
60
+ '🍬',
61
+ '🍓',
62
+ '🍒',
63
+ '🥝',
64
+ '🥑',
65
+ '🍄',
66
+ '🌊',
67
+ '☁️',
68
+ '🌟',
69
+ '🌙',
70
+ '🧚',
71
+ '🐾',
72
+ '🐥',
73
+ '🐼',
74
+ '🐨',
75
+ '🐳',
76
+ '✨',
77
+ '🧁',
78
+ '🌸',
79
+ '🍃',
80
+ '💎',
81
+ '🎐',
82
+ '🎀',
83
+ '🫧',
84
+ '☄️',
85
+ '🛸',
86
+ '🔮',
56
87
  ];
57
88
 
58
89
  const defaultNouns = [
@@ -248,6 +279,16 @@ const defaultTemplates = [
248
279
  'I trusted the {noun} and all I got was a glitter-covered sock.',
249
280
  'Plot twist: the {adj} {noun} was inside us all along.',
250
281
 
282
+ // ✨ Magical/Dreamy (New Category)
283
+ 'In the glow of the {adj} moon, the {noun} began to {verb}.',
284
+ 'A sprinkle of {adj} dust made the {noun} {verb} through the air.',
285
+ 'The {noun} whispered a {adj} secret that made everyone {verb}.',
286
+ 'Everything felt {adj} and {adj}, especially when the {noun} {verb}ed.',
287
+
288
+ // 🌀 Chaos/Glitch (New Category)
289
+ 'The {noun} is {verb}ing! The {noun} is {verb}ing! AAAAA!',
290
+ 'Glitch in the {noun}: the {adj} {noun} just {verb}ed out of existence.',
291
+
251
292
  // Mini cute explosions and chaos
252
293
  'The {adj} {noun} {verb} and {verb} all over the {adj} {noun}!',
253
294
  'Oops! {noun}s {verb}ed into the {adj} {noun} while {verb}ing crazily.',
@@ -461,8 +502,23 @@ class UltraRandomMsgGen {
461
502
  this.#defaultTemplates = [...value];
462
503
  }
463
504
 
505
+ /**
506
+ * Tracks whether the instance has been destroyed.
507
+ * @type {boolean}
508
+ */
509
+ #destroyed = false;
510
+
511
+ /**
512
+ * Gets the current destruction status of the instance.
513
+ *
514
+ * @returns {boolean} True if the instance is destroyed, false otherwise.
515
+ */
516
+ get destroyed() {
517
+ return this.#destroyed;
518
+ }
519
+
464
520
  /** @type {MsgGenConfig} */
465
- config = {
521
+ #config = {
466
522
  minLength: 10,
467
523
  maxLength: 300,
468
524
  readable: true,
@@ -488,6 +544,18 @@ class UltraRandomMsgGen {
488
544
  },
489
545
  };
490
546
 
547
+ get config() {
548
+ checkDestroy(this.#destroyed);
549
+ return structuredClone(this.#config);
550
+ }
551
+
552
+ #symbols = '!@#$%^&*()-_=+[]{}|;:,.<>?/\\~'.split('');
553
+
554
+ get symbols() {
555
+ checkDestroy(this.#destroyed);
556
+ return structuredClone(this.#symbols);
557
+ }
558
+
491
559
  /**
492
560
  * Creates an instance of UltraRandomMsgGen.
493
561
  *
@@ -518,8 +586,6 @@ class UltraRandomMsgGen {
518
586
  * @param {number} [config.line.emojiChance=0.3] - Probability (0–1) of placing emoji per line.
519
587
  */
520
588
  constructor(config = {}) {
521
- this.symbols = '!@#$%^&*()-_=+[]{}|;:,.<>?/\\~'.split('');
522
-
523
589
  const {
524
590
  minLength,
525
591
  maxLength,
@@ -648,14 +714,14 @@ class UltraRandomMsgGen {
648
714
  }
649
715
  }
650
716
 
651
- this.config.emojiSet = [...UltraRandomMsgGen.#defaultEmojis];
652
- this.config.wordSet = [...UltraRandomMsgGen.#defaultWords];
717
+ this.#config.emojiSet = [...UltraRandomMsgGen.#defaultEmojis];
718
+ this.#config.wordSet = [...UltraRandomMsgGen.#defaultWords];
653
719
 
654
- this.config.grammar.templates = [...UltraRandomMsgGen.#defaultTemplates];
655
- this.config.grammar.nouns = [...UltraRandomMsgGen.#defaultNouns];
656
- this.config.grammar.verbs = [...UltraRandomMsgGen.#defaultVerbs];
657
- this.config.grammar.adjectives = [...UltraRandomMsgGen.#defaultAdjectives];
658
- Object.assign(this.config, config);
720
+ this.#config.grammar.templates = [...UltraRandomMsgGen.#defaultTemplates];
721
+ this.#config.grammar.nouns = [...UltraRandomMsgGen.#defaultNouns];
722
+ this.#config.grammar.verbs = [...UltraRandomMsgGen.#defaultVerbs];
723
+ this.#config.grammar.adjectives = [...UltraRandomMsgGen.#defaultAdjectives];
724
+ Object.assign(this.#config, config);
659
725
  }
660
726
 
661
727
  /**
@@ -664,7 +730,8 @@ class UltraRandomMsgGen {
664
730
  * @returns {this} - The instance for chaining.
665
731
  */
666
732
  configure(newConfig = {}) {
667
- Object.assign(this.config, newConfig);
733
+ checkDestroy(this.#destroyed);
734
+ Object.assign(this.#config, newConfig);
668
735
  return this;
669
736
  }
670
737
 
@@ -674,7 +741,8 @@ class UltraRandomMsgGen {
674
741
  * @returns {this} - The instance for chaining.
675
742
  */
676
743
  setGrammarTemplates(...templates) {
677
- this.config.grammar.templates = templates.flat();
744
+ checkDestroy(this.#destroyed);
745
+ this.#config.grammar.templates = templates.flat();
678
746
  return this;
679
747
  }
680
748
 
@@ -684,7 +752,8 @@ class UltraRandomMsgGen {
684
752
  * @returns {this} - The instance for chaining.
685
753
  */
686
754
  addGrammarTemplates(...templates) {
687
- this.config.grammar.templates.push(...templates.flat());
755
+ checkDestroy(this.#destroyed);
756
+ this.#config.grammar.templates.push(...templates.flat());
688
757
  return this;
689
758
  }
690
759
 
@@ -694,7 +763,8 @@ class UltraRandomMsgGen {
694
763
  * @returns {this} - The instance for chaining.
695
764
  */
696
765
  setGrammarNouns(...nouns) {
697
- this.config.grammar.nouns = nouns.flat();
766
+ checkDestroy(this.#destroyed);
767
+ this.#config.grammar.nouns = nouns.flat();
698
768
  return this;
699
769
  }
700
770
 
@@ -704,7 +774,8 @@ class UltraRandomMsgGen {
704
774
  * @returns {this} - The instance for chaining.
705
775
  */
706
776
  addGrammarNouns(...nouns) {
707
- this.config.grammar.nouns.push(...nouns.flat());
777
+ checkDestroy(this.#destroyed);
778
+ this.#config.grammar.nouns.push(...nouns.flat());
708
779
  return this;
709
780
  }
710
781
 
@@ -714,7 +785,8 @@ class UltraRandomMsgGen {
714
785
  * @returns {this} - The instance for chaining.
715
786
  */
716
787
  setGrammarVerbs(...verbs) {
717
- this.config.grammar.verbs = verbs.flat();
788
+ checkDestroy(this.#destroyed);
789
+ this.#config.grammar.verbs = verbs.flat();
718
790
  return this;
719
791
  }
720
792
 
@@ -724,7 +796,8 @@ class UltraRandomMsgGen {
724
796
  * @returns {this} - The instance for chaining.
725
797
  */
726
798
  addGrammarVerbs(...verbs) {
727
- this.config.grammar.verbs.push(...verbs.flat());
799
+ checkDestroy(this.#destroyed);
800
+ this.#config.grammar.verbs.push(...verbs.flat());
728
801
  return this;
729
802
  }
730
803
 
@@ -734,7 +807,8 @@ class UltraRandomMsgGen {
734
807
  * @returns {this} - The instance for chaining.
735
808
  */
736
809
  setGrammarAdjectives(...adjectives) {
737
- this.config.grammar.adjectives = adjectives.flat();
810
+ checkDestroy(this.#destroyed);
811
+ this.#config.grammar.adjectives = adjectives.flat();
738
812
  return this;
739
813
  }
740
814
 
@@ -744,7 +818,8 @@ class UltraRandomMsgGen {
744
818
  * @returns {this} - The instance for chaining.
745
819
  */
746
820
  addGrammarAdjectives(...adjectives) {
747
- this.config.grammar.adjectives.push(...adjectives.flat());
821
+ checkDestroy(this.#destroyed);
822
+ this.#config.grammar.adjectives.push(...adjectives.flat());
748
823
  return this;
749
824
  }
750
825
 
@@ -754,8 +829,11 @@ class UltraRandomMsgGen {
754
829
  * @returns {this} - The instance for chaining.
755
830
  */
756
831
  removeGrammarTemplates(...templates) {
832
+ checkDestroy(this.#destroyed);
757
833
  const removeSet = new Set(templates.flat());
758
- this.config.grammar.templates = this.config.grammar.templates.filter((t) => !removeSet.has(t));
834
+ this.#config.grammar.templates = this.#config.grammar.templates.filter(
835
+ (t) => !removeSet.has(t),
836
+ );
759
837
  return this;
760
838
  }
761
839
 
@@ -765,8 +843,9 @@ class UltraRandomMsgGen {
765
843
  * @returns {this} - The instance for chaining.
766
844
  */
767
845
  removeGrammarNouns(...nouns) {
846
+ checkDestroy(this.#destroyed);
768
847
  const removeSet = new Set(nouns.flat());
769
- this.config.grammar.nouns = this.config.grammar.nouns.filter((n) => !removeSet.has(n));
848
+ this.#config.grammar.nouns = this.#config.grammar.nouns.filter((n) => !removeSet.has(n));
770
849
  return this;
771
850
  }
772
851
 
@@ -776,8 +855,9 @@ class UltraRandomMsgGen {
776
855
  * @returns {this} - The instance for chaining.
777
856
  */
778
857
  removeGrammarVerbs(...verbs) {
858
+ checkDestroy(this.#destroyed);
779
859
  const removeSet = new Set(verbs.flat());
780
- this.config.grammar.verbs = this.config.grammar.verbs.filter((v) => !removeSet.has(v));
860
+ this.#config.grammar.verbs = this.#config.grammar.verbs.filter((v) => !removeSet.has(v));
781
861
  return this;
782
862
  }
783
863
 
@@ -787,8 +867,9 @@ class UltraRandomMsgGen {
787
867
  * @returns {this} - The instance for chaining.
788
868
  */
789
869
  removeGrammarAdjectives(...adjectives) {
870
+ checkDestroy(this.#destroyed);
790
871
  const removeSet = new Set(adjectives.flat());
791
- this.config.grammar.adjectives = this.config.grammar.adjectives.filter(
872
+ this.#config.grammar.adjectives = this.#config.grammar.adjectives.filter(
792
873
  (a) => !removeSet.has(a),
793
874
  );
794
875
  return this;
@@ -800,7 +881,8 @@ class UltraRandomMsgGen {
800
881
  * @returns {this} - The instance for chaining.
801
882
  */
802
883
  setWords(...words) {
803
- this.config.wordSet = words.flat();
884
+ checkDestroy(this.#destroyed);
885
+ this.#config.wordSet = words.flat();
804
886
  return this;
805
887
  }
806
888
 
@@ -810,7 +892,8 @@ class UltraRandomMsgGen {
810
892
  * @returns {this} - The instance for chaining.
811
893
  */
812
894
  addWords(...words) {
813
- this.config.wordSet.push(...words.flat());
895
+ checkDestroy(this.#destroyed);
896
+ this.#config.wordSet.push(...words.flat());
814
897
  return this;
815
898
  }
816
899
 
@@ -820,8 +903,9 @@ class UltraRandomMsgGen {
820
903
  * @returns {this} - The instance for chaining.
821
904
  */
822
905
  removeWords(...words) {
906
+ checkDestroy(this.#destroyed);
823
907
  const removeSet = new Set(words.flat());
824
- this.config.wordSet = this.config.wordSet.filter((word) => !removeSet.has(word));
908
+ this.#config.wordSet = this.#config.wordSet.filter((word) => !removeSet.has(word));
825
909
  return this;
826
910
  }
827
911
 
@@ -831,7 +915,8 @@ class UltraRandomMsgGen {
831
915
  * @returns {this} - The instance for chaining.
832
916
  */
833
917
  setEmojis(...emojis) {
834
- this.config.emojiSet = emojis.flat();
918
+ checkDestroy(this.#destroyed);
919
+ this.#config.emojiSet = emojis.flat();
835
920
  return this;
836
921
  }
837
922
 
@@ -841,7 +926,8 @@ class UltraRandomMsgGen {
841
926
  * @returns {this} - The instance for chaining.
842
927
  */
843
928
  addEmojis(...emojis) {
844
- this.config.emojiSet.push(...emojis.flat());
929
+ checkDestroy(this.#destroyed);
930
+ this.#config.emojiSet.push(...emojis.flat());
845
931
  return this;
846
932
  }
847
933
 
@@ -851,8 +937,9 @@ class UltraRandomMsgGen {
851
937
  * @returns {this} - The instance for chaining.
852
938
  */
853
939
  removeEmojis(...emojis) {
940
+ checkDestroy(this.#destroyed);
854
941
  const removeSet = new Set(emojis.flat());
855
- this.config.emojiSet = this.config.emojiSet.filter((emoji) => !removeSet.has(emoji));
942
+ this.#config.emojiSet = this.#config.emojiSet.filter((emoji) => !removeSet.has(emoji));
856
943
  return this;
857
944
  }
858
945
 
@@ -881,7 +968,7 @@ class UltraRandomMsgGen {
881
968
  readable,
882
969
  mode,
883
970
  emojiPlacement,
884
- } = this.config;
971
+ } = this.#config;
885
972
 
886
973
  if (mode === 'natural') {
887
974
  return this._generateNaturalSentence();
@@ -902,7 +989,7 @@ class UltraRandomMsgGen {
902
989
  }
903
990
 
904
991
  if (includeSymbols) {
905
- pools.push(this._getRandomItem(this.symbols));
992
+ pools.push(this._getRandomItem(this.#symbols));
906
993
  }
907
994
 
908
995
  if (emojiPlacement === 'inline' && useEmojis && emojiSet.length) {
@@ -918,7 +1005,7 @@ class UltraRandomMsgGen {
918
1005
  * @returns {string} - A generated sentence.
919
1006
  */
920
1007
  _generateNaturalSentence() {
921
- const { templates, nouns, verbs, adjectives } = this.config.grammar;
1008
+ const { templates, nouns, verbs, adjectives } = this.#config.grammar;
922
1009
 
923
1010
  let template = this._getRandomItem(templates);
924
1011
 
@@ -937,7 +1024,7 @@ class UltraRandomMsgGen {
937
1024
  */
938
1025
  _generateLine(targetLength, seenWords) {
939
1026
  const { allowWeirdSpacing, repeatWords, readable, emojiSet, useEmojis, emojiPlacement, line } =
940
- this.config;
1027
+ this.#config;
941
1028
 
942
1029
  const parts = [];
943
1030
  seenWords ??= new Set();
@@ -978,7 +1065,7 @@ class UltraRandomMsgGen {
978
1065
  * @returns {string[]} - Array of lines that form the paragraph.
979
1066
  */
980
1067
  _generateParagraphLines(totalLength) {
981
- const { line } = this.config;
1068
+ const { line } = this.#config;
982
1069
  const lines = [];
983
1070
  const seenWords = new Set();
984
1071
  let currentTotal = 0;
@@ -1003,7 +1090,8 @@ class UltraRandomMsgGen {
1003
1090
  * @returns {string} - A full generated message.
1004
1091
  */
1005
1092
  generate() {
1006
- const { minLength, maxLength, paragraphs } = this.config;
1093
+ checkDestroy(this.#destroyed);
1094
+ const { minLength, maxLength, paragraphs } = this.#config;
1007
1095
 
1008
1096
  const totalLength = Math.floor(Math.random() * (maxLength - minLength + 1)) + minLength;
1009
1097
 
@@ -1023,6 +1111,31 @@ class UltraRandomMsgGen {
1023
1111
 
1024
1112
  return this._generateParagraphLines(totalLength).join('\n');
1025
1113
  }
1114
+
1115
+ /**
1116
+ * Safely destroys the instance by clearing references to aid garbage collection.
1117
+ * Once destroyed, the instance cannot be used to generate new messages.
1118
+ *
1119
+ * @throws {Error} If the instance has already been destroyed.
1120
+ * @returns {void}
1121
+ */
1122
+ destroy() {
1123
+ if (this.destroyed) return;
1124
+
1125
+ // Clear primary memory references
1126
+ this.#symbols = [];
1127
+
1128
+ this.#config.emojiSet = [];
1129
+ this.#config.wordSet = [];
1130
+
1131
+ this.#config.grammar.templates = [];
1132
+ this.#config.grammar.nouns = [];
1133
+ this.#config.grammar.verbs = [];
1134
+ this.#config.grammar.adjectives = [];
1135
+
1136
+ // Lock the instance
1137
+ this.#destroyed = true;
1138
+ }
1026
1139
  }
1027
1140
 
1028
1141
  module.exports = UltraRandomMsgGen;
@@ -1,22 +1,5 @@
1
- export default UltraRandomMsgGen;
2
- /**
3
- * Defines how the message content is generated:
4
- * - `mixed`: Combines readable words, gibberish, symbols, emojis, etc.
5
- * - `readable`: Focuses on human-readable words only.
6
- * - `chaotic`: Pure chaos, mostly gibberish and symbols.
7
- * - `natural`: Uses structured grammar templates to form silly but proper sentences.
8
- */
9
- export type RandomMsgModes = "mixed" | "readable" | "chaotic" | "natural";
10
- /**
11
- * Controls where emojis are placed:
12
- * - `inline`: Emojis may appear throughout the text.
13
- * - `end`: Emojis appear at the end of lines.
14
- * - `none`: No emojis will be used.
15
- */
16
- export type EmojiPlacement = "inline" | "end" | "none";
17
- /**
18
- * Configuration object for customizing message generation.
19
- */
1
+ export type RandomMsgModes = 'mixed' | 'readable' | 'chaotic' | 'natural';
2
+ export type EmojiPlacement = 'inline' | 'end' | 'none';
20
3
  export type MsgGenConfig = {
21
4
  /**
22
5
  * - Minimum total length (in characters) of the final generated text.
@@ -79,15 +62,9 @@ export type MsgGenConfig = {
79
62
  * - Optional paragraph configuration.
80
63
  */
81
64
  paragraphs?: {
82
- /**
83
- * - Minimum number of paragraphs to generate.
84
- */
85
65
  min: number;
86
- /**
87
- * - Maximum number of paragraphs to generate.
88
- */
89
66
  max: number;
90
- } | undefined;
67
+ };
91
68
  /**
92
69
  * - Configuration for line-based generation.
93
70
  */
@@ -159,48 +136,39 @@ export type MsgGenConfig = {
159
136
  * @class
160
137
  */
161
138
  declare class UltraRandomMsgGen {
162
- /** @type {string[]} */
163
- static #defaultWords: string[];
164
- /** @type {string[]} */
165
- static #defaultEmojis: string[];
166
- /** @type {string[]} */
167
- static #defaultNouns: string[];
168
- /** @type {string[]} */
169
- static #defaultVerbs: string[];
170
- /** @type {string[]} */
171
- static #defaultAdjectives: string[];
172
- /** @type {string[]} */
173
- static #defaultTemplates: string[];
174
- /**
175
- * Utility to validate arrays before setting.
176
- * @param {any} value
177
- * @param {string} field
178
- */
179
- static #validateArray(value: any, field: string): void;
180
- /** @param {string[]} value */
181
- static set defaultWords(value: string[]);
139
+ #private;
182
140
  /** @returns {string[]} */
183
141
  static get defaultWords(): string[];
184
142
  /** @param {string[]} value */
185
- static set defaultEmojis(value: string[]);
143
+ static set defaultWords(value: string[]);
186
144
  /** @returns {string[]} */
187
145
  static get defaultEmojis(): string[];
188
146
  /** @param {string[]} value */
189
- static set defaultNouns(value: string[]);
147
+ static set defaultEmojis(value: string[]);
190
148
  /** @returns {string[]} */
191
149
  static get defaultNouns(): string[];
192
150
  /** @param {string[]} value */
193
- static set defaultVerbs(value: string[]);
151
+ static set defaultNouns(value: string[]);
194
152
  /** @returns {string[]} */
195
153
  static get defaultVerbs(): string[];
196
154
  /** @param {string[]} value */
197
- static set defaultAdjectives(value: string[]);
155
+ static set defaultVerbs(value: string[]);
198
156
  /** @returns {string[]} */
199
157
  static get defaultAdjectives(): string[];
200
158
  /** @param {string[]} value */
201
- static set defaultTemplates(value: string[]);
159
+ static set defaultAdjectives(value: string[]);
202
160
  /** @returns {string[]} */
203
161
  static get defaultTemplates(): string[];
162
+ /** @param {string[]} value */
163
+ static set defaultTemplates(value: string[]);
164
+ /**
165
+ * Gets the current destruction status of the instance.
166
+ *
167
+ * @returns {boolean} True if the instance is destroyed, false otherwise.
168
+ */
169
+ get destroyed(): boolean;
170
+ get config(): MsgGenConfig;
171
+ get symbols(): string[];
204
172
  /**
205
173
  * Creates an instance of UltraRandomMsgGen.
206
174
  *
@@ -231,37 +199,34 @@ declare class UltraRandomMsgGen {
231
199
  * @param {number} [config.line.emojiChance=0.3] - Probability (0–1) of placing emoji per line.
232
200
  */
233
201
  constructor(config?: {
234
- minLength?: number | undefined;
235
- maxLength?: number | undefined;
236
- readable?: boolean | undefined;
237
- useEmojis?: boolean | undefined;
238
- includeNumbers?: boolean | undefined;
239
- includeSymbols?: boolean | undefined;
240
- allowWeirdSpacing?: boolean | undefined;
241
- emojiSet?: string[] | undefined;
242
- wordSet?: string[] | undefined;
243
- mode?: RandomMsgModes | undefined;
202
+ minLength?: number;
203
+ maxLength?: number;
204
+ readable?: boolean;
205
+ useEmojis?: boolean;
206
+ includeNumbers?: boolean;
207
+ includeSymbols?: boolean;
208
+ allowWeirdSpacing?: boolean;
209
+ emojiSet?: string[];
210
+ wordSet?: string[];
211
+ mode?: RandomMsgModes;
244
212
  grammar?: {
245
- templates?: string[] | undefined;
246
- nouns?: string[] | undefined;
247
- verbs?: string[] | undefined;
248
- adjectives?: string[] | undefined;
249
- } | undefined;
250
- repeatWords?: boolean | undefined;
251
- emojiPlacement?: EmojiPlacement | undefined;
213
+ templates?: string[];
214
+ nouns?: string[];
215
+ verbs?: string[];
216
+ adjectives?: string[];
217
+ };
218
+ repeatWords?: boolean;
219
+ emojiPlacement?: EmojiPlacement;
252
220
  paragraphs?: {
253
- min?: number | undefined;
254
- max?: number | undefined;
255
- } | undefined;
221
+ min?: number;
222
+ max?: number;
223
+ };
256
224
  line?: {
257
- minLength?: number | undefined;
258
- maxLength?: number | undefined;
259
- emojiChance?: number | undefined;
260
- } | undefined;
225
+ minLength?: number;
226
+ maxLength?: number;
227
+ emojiChance?: number;
228
+ };
261
229
  });
262
- /** @type {MsgGenConfig} */
263
- config: MsgGenConfig;
264
- symbols: string[];
265
230
  /**
266
231
  * Merges new configuration values into the current instance.
267
232
  * @param {Object} newConfig - Object with one or more configuration overrides.
@@ -416,5 +381,14 @@ declare class UltraRandomMsgGen {
416
381
  * @returns {string} - A full generated message.
417
382
  */
418
383
  generate(): string;
384
+ /**
385
+ * Safely destroys the instance by clearing references to aid garbage collection.
386
+ * Once destroyed, the instance cannot be used to generate new messages.
387
+ *
388
+ * @throws {Error} If the instance has already been destroyed.
389
+ * @returns {void}
390
+ */
391
+ destroy(): void;
419
392
  }
393
+ export default UltraRandomMsgGen;
420
394
  //# sourceMappingURL=UltraRandomMsgGen.d.mts.map