tiny-essentials 1.28.1 → 1.28.3

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 (218) hide show
  1. package/changelog/1/28/2.md +43 -0
  2. package/changelog/1/28/3.md +9 -0
  3. package/dist/_/numbers.d.mts +91 -16
  4. package/dist/v1/TinyBasicsEs.min.js +1 -1
  5. package/dist/v1/TinyEssentials.min.js +1 -1
  6. package/dist/v1/TinyMediaPlayer.min.js +1 -1
  7. package/dist/v1/TinyRadioFm.min.js +1 -1
  8. package/dist/v1/basics/array.d.mts +14 -14
  9. package/dist/v1/basics/clock.cjs +15 -15
  10. package/dist/v1/basics/clock.d.mts +21 -21
  11. package/dist/v1/basics/clock.mjs +15 -15
  12. package/dist/v1/basics/collision.d.mts +245 -104
  13. package/dist/v1/basics/deprecated/html.d.mts +33 -33
  14. package/dist/v1/basics/extendObjType/Buffer.d.mts +1 -1
  15. package/dist/v1/basics/fullScreen.d.mts +47 -7
  16. package/dist/v1/basics/html.d.mts +52 -61
  17. package/dist/v1/basics/index.cjs +2 -0
  18. package/dist/v1/basics/index.d.mts +11 -67
  19. package/dist/v1/basics/index.mjs +2 -2
  20. package/dist/v1/basics/mediaContent.cjs +65 -23
  21. package/dist/v1/basics/mediaContent.d.mts +144 -73
  22. package/dist/v1/basics/mediaContent.mjs +65 -23
  23. package/dist/v1/basics/objChecker.d.mts +2 -2
  24. package/dist/v1/basics/objFilter.cjs +50 -16
  25. package/dist/v1/basics/objFilter.d.mts +34 -13
  26. package/dist/v1/basics/objFilter.mjs +48 -16
  27. package/dist/v1/basics/simpleMath.d.mts +21 -21
  28. package/dist/v1/basics/text.d.mts +34 -46
  29. package/dist/v1/build/ColorSafeStringify.d.mts +1 -1
  30. package/dist/v1/build/TinyAdvancedRaffle.d.mts +1 -1
  31. package/dist/v1/build/TinyAfterScrollWatcher.d.mts +1 -1
  32. package/dist/v1/build/TinyAnalogClock.d.mts +1 -1
  33. package/dist/v1/build/TinyArrayComparator.d.mts +1 -1
  34. package/dist/v1/build/TinyArrayPaginator.d.mts +1 -1
  35. package/dist/v1/build/TinyClassManager.d.mts +1 -1
  36. package/dist/v1/build/TinyClipboard.d.mts +1 -1
  37. package/dist/v1/build/TinyColorConverter.d.mts +1 -1
  38. package/dist/v1/build/TinyColorValidator.d.mts +1 -1
  39. package/dist/v1/build/TinyCookieConsent.d.mts +1 -1
  40. package/dist/v1/build/TinyDayNightCycle.d.mts +1 -1
  41. package/dist/v1/build/TinyDomReadyManager.d.mts +1 -1
  42. package/dist/v1/build/TinyDragDropDetector.d.mts +1 -1
  43. package/dist/v1/build/TinyDragger.d.mts +1 -1
  44. package/dist/v1/build/TinyElementObserver.d.mts +1 -1
  45. package/dist/v1/build/TinyGamepad.d.mts +1 -1
  46. package/dist/v1/build/TinyHtml.d.mts +1 -1
  47. package/dist/v1/build/TinyI18.d.mts +1 -1
  48. package/dist/v1/build/TinyIframeEvents.d.mts +1 -1
  49. package/dist/v1/build/TinyInventory.d.mts +1 -1
  50. package/dist/v1/build/TinyInventoryTrader.d.mts +1 -1
  51. package/dist/v1/build/TinyLevelUp.d.mts +1 -1
  52. package/dist/v1/build/TinyLoadingScreen.d.mts +1 -1
  53. package/dist/v1/build/TinyLocalStorage.d.mts +1 -1
  54. package/dist/v1/build/TinyMediaPlayer.d.mts +1 -1
  55. package/dist/v1/build/TinyNeedBar.d.mts +1 -1
  56. package/dist/v1/build/TinyNewWinEvents.d.mts +1 -1
  57. package/dist/v1/build/TinyNotifications.d.mts +1 -1
  58. package/dist/v1/build/TinyNotifyCenter.d.mts +1 -1
  59. package/dist/v1/build/TinyPromiseQueue.d.mts +1 -1
  60. package/dist/v1/build/TinyRadioFm.d.mts +1 -1
  61. package/dist/v1/build/TinyRateLimiter.d.mts +1 -1
  62. package/dist/v1/build/TinySimpleDice.d.mts +1 -1
  63. package/dist/v1/build/TinySmartScroller.d.mts +1 -1
  64. package/dist/v1/build/TinyTextDiffer.d.mts +1 -1
  65. package/dist/v1/build/TinyTextRangeEditor.d.mts +1 -1
  66. package/dist/v1/build/TinyTextarea.d.mts +1 -1
  67. package/dist/v1/build/TinyTimeout.d.mts +1 -1
  68. package/dist/v1/build/TinyToastNotify.d.mts +1 -1
  69. package/dist/v1/build/TinyUploadClicker.d.mts +1 -1
  70. package/dist/v1/build/UltraRandomMsgGen.d.mts +1 -1
  71. package/dist/v1/fileManager/asyncFuncs.d.mts +13 -13
  72. package/dist/v1/fileManager/index.d.mts +3 -29
  73. package/dist/v1/fileManager/normalFuncs.d.mts +22 -22
  74. package/dist/v1/index.cjs +2 -0
  75. package/dist/v1/index.d.mts +53 -139
  76. package/dist/v1/index.mjs +2 -2
  77. package/dist/v1/libs/ColorSafeStringify.d.mts +3 -12
  78. package/dist/v1/libs/TinyAdvancedRaffle.d.mts +60 -103
  79. package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +11 -18
  80. package/dist/v1/libs/TinyAnalogClock.d.mts +8 -11
  81. package/dist/v1/libs/TinyArrayComparator.d.mts +14 -20
  82. package/dist/v1/libs/TinyArrayPaginator.d.mts +22 -26
  83. package/dist/v1/libs/TinyClassManager/TinyPluginInliner.d.mts +8 -8
  84. package/dist/v1/libs/TinyClassManager.cjs +5 -7
  85. package/dist/v1/libs/TinyClassManager.d.mts +16 -16
  86. package/dist/v1/libs/TinyClassManager.mjs +5 -6
  87. package/dist/v1/libs/TinyClipboard.d.mts +8 -3
  88. package/dist/v1/libs/TinyColorConverter.d.mts +8 -31
  89. package/dist/v1/libs/TinyColorValidator.d.mts +145 -184
  90. package/dist/v1/libs/TinyCookieConsent.d.mts +17 -17
  91. package/dist/v1/libs/TinyDayNightCycle.d.mts +85 -110
  92. package/dist/v1/libs/TinyDomReadyManager.d.mts +8 -16
  93. package/dist/v1/libs/TinyDragDropDetector.d.mts +30 -30
  94. package/dist/v1/libs/TinyDragger.d.mts +82 -81
  95. package/dist/v1/libs/TinyElementObserver.d.mts +25 -28
  96. package/dist/v1/libs/TinyGamepad.cjs +0 -1
  97. package/dist/v1/libs/TinyGamepad.d.mts +50 -122
  98. package/dist/v1/libs/TinyGamepad.mjs +0 -1
  99. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.cjs +2 -25
  100. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.d.mts +19 -25
  101. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.mjs +3 -27
  102. package/dist/v1/libs/TinyHtml/TinyHtmlButton.cjs +2 -1
  103. package/dist/v1/libs/TinyHtml/TinyHtmlButton.d.mts +55 -55
  104. package/dist/v1/libs/TinyHtml/TinyHtmlButton.mjs +2 -1
  105. package/dist/v1/libs/TinyHtml/TinyHtmlCanvas.d.mts +6 -6
  106. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.cjs +8 -4
  107. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.d.mts +19 -21
  108. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.mjs +7 -4
  109. package/dist/v1/libs/TinyHtml/TinyHtmlEmbed.d.mts +8 -8
  110. package/dist/v1/libs/TinyHtml/TinyHtmlForm.d.mts +18 -18
  111. package/dist/v1/libs/TinyHtml/TinyHtmlIcon.d.mts +5 -6
  112. package/dist/v1/libs/TinyHtml/TinyHtmlIframe.d.mts +19 -19
  113. package/dist/v1/libs/TinyHtml/TinyHtmlImage.cjs +0 -28
  114. package/dist/v1/libs/TinyHtml/TinyHtmlImage.d.mts +22 -28
  115. package/dist/v1/libs/TinyHtml/TinyHtmlImage.mjs +1 -27
  116. package/dist/v1/libs/TinyHtml/TinyHtmlInput.d.mts +11 -11
  117. package/dist/v1/libs/TinyHtml/TinyHtmlLink.d.mts +23 -23
  118. package/dist/v1/libs/TinyHtml/TinyHtmlMedia.d.mts +26 -26
  119. package/dist/v1/libs/TinyHtml/TinyHtmlScript.cjs +4 -30
  120. package/dist/v1/libs/TinyHtml/TinyHtmlScript.d.mts +20 -26
  121. package/dist/v1/libs/TinyHtml/TinyHtmlScript.mjs +5 -32
  122. package/dist/v1/libs/TinyHtml/TinyHtmlSelect.d.mts +19 -19
  123. package/dist/v1/libs/TinyHtml/TinyHtmlStyle.d.mts +8 -8
  124. package/dist/v1/libs/TinyHtml/TinyHtmlTemplate.d.mts +26 -28
  125. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.cjs +14 -15
  126. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.d.mts +32 -32
  127. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.mjs +15 -15
  128. package/dist/v1/libs/TinyHtml/index.d.mts +102 -45
  129. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.cjs +11 -9
  130. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.d.mts +21 -21
  131. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.mjs +11 -9
  132. package/dist/v1/libs/TinyHtml/input/TinyHtmlFileInput.d.mts +11 -11
  133. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.cjs +4 -4
  134. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.d.mts +17 -13
  135. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.mjs +4 -4
  136. package/dist/v1/libs/TinyHtml/input/TinyHtmlImageInput.d.mts +21 -21
  137. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.cjs +5 -4
  138. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.d.mts +14 -14
  139. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.mjs +5 -4
  140. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.cjs +4 -3
  141. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.d.mts +10 -10
  142. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.mjs +4 -3
  143. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.cjs +4 -3
  144. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.d.mts +19 -19
  145. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.mjs +4 -3
  146. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.cjs +5 -4
  147. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.d.mts +11 -11
  148. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.mjs +5 -4
  149. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.cjs +4 -3
  150. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.d.mts +15 -11
  151. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.mjs +4 -3
  152. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.cjs +49 -21
  153. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.d.mts +34 -20
  154. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.mjs +45 -20
  155. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.cjs +1 -1
  156. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.d.mts +14 -14
  157. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.mjs +1 -1
  158. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.cjs +1 -1
  159. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.d.mts +14 -14
  160. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.mjs +1 -1
  161. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.cjs +48 -25
  162. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.d.mts +27 -21
  163. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.mjs +40 -27
  164. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.cjs +1 -1
  165. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.d.mts +14 -14
  166. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.mjs +1 -1
  167. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlNumberInput.d.mts +14 -14
  168. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlRangeInput.d.mts +14 -14
  169. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlEmailInput.d.mts +25 -21
  170. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlPasswordInput.d.mts +18 -18
  171. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlSearchInput.d.mts +33 -29
  172. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTelInput.d.mts +22 -22
  173. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTextInput.d.mts +18 -18
  174. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlUrlInput.d.mts +31 -27
  175. package/dist/v1/libs/TinyHtml/media/TinyHtmlAudio.d.mts +35 -11
  176. package/dist/v1/libs/TinyHtml/media/TinyHtmlObject.d.mts +10 -10
  177. package/dist/v1/libs/TinyHtml/media/TinyHtmlSource.d.mts +12 -12
  178. package/dist/v1/libs/TinyHtml/media/TinyHtmlVideo.d.mts +35 -27
  179. package/dist/v1/libs/TinyHtml.cjs +3 -4
  180. package/dist/v1/libs/TinyHtml.d.mts +1503 -1731
  181. package/dist/v1/libs/TinyHtml.mjs +3 -4
  182. package/dist/v1/libs/TinyI18.d.mts +23 -61
  183. package/dist/v1/libs/TinyIframeEvents.cjs +1 -1
  184. package/dist/v1/libs/TinyIframeEvents.d.mts +29 -38
  185. package/dist/v1/libs/TinyIframeEvents.mjs +1 -1
  186. package/dist/v1/libs/TinyInventory.d.mts +78 -141
  187. package/dist/v1/libs/TinyInventoryTrader.d.mts +19 -22
  188. package/dist/v1/libs/TinyLevelUp.d.mts +10 -13
  189. package/dist/v1/libs/TinyLoadingScreen.d.mts +21 -31
  190. package/dist/v1/libs/TinyLocalStorage.d.mts +11 -36
  191. package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +37 -23
  192. package/dist/v1/libs/TinyMediaPlayer.cjs +5 -3
  193. package/dist/v1/libs/TinyMediaPlayer.d.mts +102 -109
  194. package/dist/v1/libs/TinyMediaPlayer.mjs +5 -3
  195. package/dist/v1/libs/TinyNeedBar.d.mts +25 -37
  196. package/dist/v1/libs/TinyNewWinEvents.d.mts +29 -32
  197. package/dist/v1/libs/TinyNotifications.d.mts +6 -6
  198. package/dist/v1/libs/TinyNotifyCenter.d.mts +15 -21
  199. package/dist/v1/libs/TinyPromiseQueue.d.mts +11 -11
  200. package/dist/v1/libs/TinyRadioFm.cjs +32 -12
  201. package/dist/v1/libs/TinyRadioFm.d.mts +44 -80
  202. package/dist/v1/libs/TinyRadioFm.mjs +29 -12
  203. package/dist/v1/libs/TinyRateLimiter.d.mts +26 -39
  204. package/dist/v1/libs/TinySimpleDice.d.mts +17 -36
  205. package/dist/v1/libs/TinySmartScroller.d.mts +50 -60
  206. package/dist/v1/libs/TinyTextDiffer.d.mts +11 -14
  207. package/dist/v1/libs/TinyTextRangeEditor.d.mts +8 -8
  208. package/dist/v1/libs/TinyTextarea.d.mts +31 -31
  209. package/dist/v1/libs/TinyTimeout.d.mts +14 -14
  210. package/dist/v1/libs/TinyToastNotify.cjs +1 -1
  211. package/dist/v1/libs/TinyToastNotify.d.mts +15 -23
  212. package/dist/v1/libs/TinyToastNotify.mjs +1 -1
  213. package/dist/v1/libs/TinyUploadClicker.d.mts +38 -14
  214. package/dist/v1/libs/UltraRandomMsgGen.d.mts +44 -84
  215. package/dist/v1/libs/utils.d.mts +5 -1
  216. package/docs/v1/basics/deprecated/objFilter.md +14 -0
  217. package/docs/v1/basics/objFilter.md +31 -17
  218. package/package.json +2 -2
@@ -1,7 +1,6 @@
1
- export default TinySmartScroller;
2
- /**
3
- * Represents the dimensions of a DOM element.
4
- */
1
+ import { EventEmitter } from 'events';
2
+ import TinyHtml from './TinyHtml.mjs';
3
+ import * as TinyCollision from '../basics/collision.mjs';
5
4
  export type NodeSizes = {
6
5
  /**
7
6
  * - The height of the element in pixels.
@@ -12,9 +11,6 @@ export type NodeSizes = {
12
11
  */
13
12
  width: number;
14
13
  };
15
- /**
16
- * A callback function that receives node size change data and optionally returns a modified NodeSizes object.
17
- */
18
14
  export type NodeSizesEvent = (elem: Element, sizes: {
19
15
  old: NodeSizes;
20
16
  now: NodeSizes;
@@ -22,9 +18,6 @@ export type NodeSizesEvent = (elem: Element, sizes: {
22
18
  old: number;
23
19
  now: number;
24
20
  }) => NodeSizes | undefined;
25
- /**
26
- * A generic scroll-related event listener callback function.
27
- */
28
21
  export type ScrollListenersFunc = (payload: any) => void;
29
22
  /**
30
23
  * Represents the dimensions of a DOM element.
@@ -67,57 +60,57 @@ export type ScrollListenersFunc = (payload: any) => void;
67
60
  * This class is **not framework-dependent** and works with vanilla DOM elements and the window object.
68
61
  * @template {Element|Window} HTMLTarget
69
62
  */
70
- declare class TinySmartScroller<HTMLTarget extends Element | Window> extends EventEmitter<any> {
63
+ declare class TinySmartScroller<HTMLTarget extends Element | Window> extends EventEmitter {
64
+ #private;
71
65
  static Utils: {
72
- TinyHtml: typeof TinyHtml;
73
- getElsRelativeCenterOffset(rect1: ObjRect, rect2: ObjRect): {
74
- x: number;
75
- y: number;
76
- };
77
- getElsCollDirDepth(rect1: ObjRect, rect2: ObjRect): {
78
- inDir: Dirs | null;
79
- dirX: Dirs | null;
80
- dirY: Dirs | null;
81
- depthX: number;
82
- depthY: number;
83
- };
84
- getElsCollDetails(rect1: ObjRect, rect2: ObjRect): {
85
- depth: CollData;
86
- dirs: CollDirs;
87
- isNeg: NegCollDirs;
88
- };
89
- areElsCollTop: (rect1: ObjRect, rect2: ObjRect) => boolean;
90
- areElsCollBottom: (rect1: ObjRect /** @type {null|EventListenerOrEventListenerObject} */, rect2: ObjRect) => boolean;
91
- areElsCollLeft: (rect1: ObjRect, rect2: ObjRect) => boolean;
92
- areElsCollRight: (rect1: ObjRect, rect2: ObjRect) => boolean;
93
- areElsCollPerfTop: (rect1: ObjRect, rect2: ObjRect) => boolean;
94
- areElsCollPerfBottom: (rect1: ObjRect, rect2: ObjRect) => boolean;
95
- areElsCollPerfLeft: (rect1: ObjRect, rect2: ObjRect) => boolean;
96
- areElsCollPerfRight: (rect1: ObjRect, rect2: ObjRect) => boolean;
97
- areElsColliding: (rect1: ObjRect, rect2: ObjRect) => boolean;
98
- areElsPerfColliding: (rect1: ObjRect, rect2: ObjRect) => boolean;
99
- getElsColliding: (rect1: ObjRect, rect2: ObjRect) => string | null;
100
- getElsPerfColliding: (rect1: ObjRect, // === debounceTime ===
101
- rect2: ObjRect) => "top" | "bottom" | "left" | "right" | null;
102
- getElsCollOverlap: (rect1: ObjRect, rect2: ObjRect) => {
66
+ areElsCollTop: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
67
+ areElsCollBottom: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
68
+ areElsCollLeft: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
69
+ areElsCollRight: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
70
+ areElsCollPerfTop: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
71
+ areElsCollPerfBottom: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
72
+ areElsCollPerfLeft: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
73
+ areElsCollPerfRight: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
74
+ areElsColliding: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
75
+ areElsPerfColliding: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => boolean;
76
+ getElsColliding: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => string | null;
77
+ getElsPerfColliding: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => 'top' | 'bottom' | 'left' | 'right' | null;
78
+ getElsCollOverlap: (rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect) => {
103
79
  overlapLeft: number;
104
80
  overlapRight: number;
105
81
  overlapTop: number;
106
82
  overlapBottom: number;
107
83
  };
108
84
  getElsCollOverlapPos: ({ overlapLeft, overlapRight, overlapTop, overlapBottom, }?: {
109
- overlapLeft?: number | undefined;
110
- overlapRight?: number | undefined;
111
- overlapTop?: number | undefined;
112
- overlapBottom?: number | undefined;
85
+ overlapLeft?: number;
86
+ overlapRight?: number;
87
+ overlapTop?: number;
88
+ overlapBottom?: number;
113
89
  }) => {
114
- dirX: Dirs;
115
- dirY: Dirs;
90
+ dirX: TinyCollision.Dirs;
91
+ dirY: TinyCollision.Dirs;
116
92
  };
117
- getRectCenter: (rect: ObjRect) => {
93
+ getRectCenter: (rect: TinyCollision.ObjRect) => {
118
94
  x: number;
119
95
  y: number;
120
96
  };
97
+ getElsRelativeCenterOffset(rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect): {
98
+ x: number;
99
+ y: number;
100
+ };
101
+ getElsCollDirDepth(rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect): {
102
+ inDir: TinyCollision.Dirs | null;
103
+ dirX: TinyCollision.Dirs | null;
104
+ dirY: TinyCollision.Dirs | null;
105
+ depthX: number;
106
+ depthY: number;
107
+ };
108
+ getElsCollDetails(rect1: TinyCollision.ObjRect, rect2: TinyCollision.ObjRect): {
109
+ depth: TinyCollision.CollData;
110
+ dirs: TinyCollision.CollDirs;
111
+ isNeg: TinyCollision.NegCollDirs;
112
+ };
113
+ TinyHtml: typeof TinyHtml;
121
114
  };
122
115
  /**
123
116
  * Creates a new instance of TinySmartScroller, attaching scroll and resize observers to manage
@@ -135,13 +128,13 @@ declare class TinySmartScroller<HTMLTarget extends Element | Window> extends Eve
135
128
  * - Which attributes to observe for changes.
136
129
  */
137
130
  constructor(target: HTMLTarget, { extraScrollBoundary, autoScrollBottom, observeMutations, preserveScrollOnLayoutShift, debounceTime, querySelector, attributeFilter, }?: {
138
- extraScrollBoundary?: number | undefined;
139
- autoScrollBottom?: boolean | undefined;
140
- observeMutations?: boolean | undefined;
141
- preserveScrollOnLayoutShift?: boolean | undefined;
142
- debounceTime?: number | undefined;
143
- querySelector?: string | null | undefined;
144
- attributeFilter?: string[] | Set<string> | null | undefined;
131
+ extraScrollBoundary?: number;
132
+ autoScrollBottom?: boolean;
133
+ observeMutations?: boolean;
134
+ preserveScrollOnLayoutShift?: boolean;
135
+ debounceTime?: number;
136
+ querySelector?: string | null;
137
+ attributeFilter?: string[] | Set<string> | null;
145
138
  });
146
139
  /**
147
140
  * Returns a size difference callback that only reacts when height changes, filtered by tag name.
@@ -458,9 +451,6 @@ declare class TinySmartScroller<HTMLTarget extends Element | Window> extends Eve
458
451
  * Once destroyed, this instance should no longer be used.
459
452
  */
460
453
  destroy(): void;
461
- #private;
462
454
  }
463
- import { EventEmitter } from 'events';
464
- import TinyHtml from './TinyHtml.mjs';
465
- import * as TinyCollision from '../basics/collision.mjs';
455
+ export default TinySmartScroller;
466
456
  //# sourceMappingURL=TinySmartScroller.d.mts.map
@@ -1,7 +1,3 @@
1
- export default TinyTextDiffer;
2
- /**
3
- * Represents the result of a single text segment comparison.
4
- */
5
1
  export type DiffResult = {
6
2
  /**
7
3
  * - The actual string content of the segment.
@@ -23,27 +19,28 @@ export type DiffResult = {
23
19
  * between any two versions, generating a detailed diff output.
24
20
  */
25
21
  declare class TinyTextDiffer {
22
+ #private;
23
+ get destroyed(): boolean;
26
24
  /**
27
- * Initializes a new instance of TinyTextDiffer.
28
- * @param {string[]} [history=[]]
25
+ * Retrieves a shallow copy of the current history array.
26
+ * @returns {string[]}
29
27
  */
30
- constructor(history?: string[]);
31
- get destroyed(): boolean;
28
+ get history(): string[];
32
29
  /**
33
30
  * Overwrites the current history array, ensuring all elements are valid strings.
34
31
  * @param {string[]} history
35
32
  */
36
33
  set history(history: string[]);
37
- /**
38
- * Retrieves a shallow copy of the current history array.
39
- * @returns {string[]}
40
- */
41
- get history(): string[];
42
34
  /**
43
35
  * Gets the total number of versions currently stored in the history.
44
36
  * @returns {number}
45
37
  */
46
38
  get size(): number;
39
+ /**
40
+ * Initializes a new instance of TinyTextDiffer.
41
+ * @param {string[]} [history=[]]
42
+ */
43
+ constructor(history?: string[]);
47
44
  /**
48
45
  * Retrieves the text string at the specified index.
49
46
  * @param {number} index
@@ -105,6 +102,6 @@ declare class TinyTextDiffer {
105
102
  * @returns {void}
106
103
  */
107
104
  destroy(): void;
108
- #private;
109
105
  }
106
+ export default TinyTextDiffer;
110
107
  //# sourceMappingURL=TinyTextDiffer.d.mts.map
@@ -1,9 +1,9 @@
1
- export default TinyTextRangeEditor;
2
1
  /**
3
2
  * A full-featured text range editor for `<input>` and `<textarea>` elements,
4
3
  * including advanced utilities for BBCode or similar tag-based markup editing.
5
4
  */
6
5
  declare class TinyTextRangeEditor {
6
+ #private;
7
7
  /**
8
8
  * @param {HTMLInputElement | HTMLTextAreaElement} elem - The target editable input or textarea element.
9
9
  * @param {Object} [settings={}] - Optional tag symbol customization.
@@ -11,8 +11,8 @@ declare class TinyTextRangeEditor {
11
11
  * @param {string} [settings.closeTag=']'] - The character or symbol used to end a tag (e.g., `']'`).
12
12
  */
13
13
  constructor(elem: HTMLInputElement | HTMLTextAreaElement, { openTag, closeTag }?: {
14
- openTag?: string | undefined;
15
- closeTag?: string | undefined;
14
+ openTag?: string;
15
+ closeTag?: string;
16
16
  });
17
17
  /** @returns {string} The current open tag symbol. */
18
18
  getOpenTag(): string;
@@ -66,10 +66,10 @@ declare class TinyTextRangeEditor {
66
66
  * @returns {this}
67
67
  */
68
68
  insertText(text: string, { newCursor, autoSpacing, autoSpaceLeft, autoSpaceRight, }?: {
69
- newCursor?: "end" | "start" | "preserve" | undefined;
70
- autoSpacing?: boolean | undefined;
71
- autoSpaceLeft?: boolean | undefined;
72
- autoSpaceRight?: boolean | undefined;
69
+ newCursor?: 'start' | 'end' | 'preserve';
70
+ autoSpacing?: boolean;
71
+ autoSpaceLeft?: boolean;
72
+ autoSpaceRight?: boolean;
73
73
  }): this;
74
74
  /**
75
75
  * Deletes the currently selected text.
@@ -195,6 +195,6 @@ declare class TinyTextRangeEditor {
195
195
  * @returns {this}
196
196
  */
197
197
  toggleTag(tagName: string, attributes?: Record<string, string> | string[]): this;
198
- #private;
199
198
  }
199
+ export default TinyTextRangeEditor;
200
200
  //# sourceMappingURL=TinyTextRangeEditor.d.mts.map
@@ -1,4 +1,13 @@
1
- export default TinyTextarea;
1
+ /**
2
+ * @typedef {Object} OnInputInfo
3
+ * @property {number} breakLines - Total number of `\n` line breaks in the textarea value.
4
+ * @property {number} height - Final calculated height (in pixels) applied to the textarea.
5
+ * @property {number} scrollHeight - Internal scrollHeight before limiting.
6
+ * @property {number} maxHeight - Maximum allowed height before scrolling is forced.
7
+ * @property {number} lineHeight - Height of one line of text, computed from CSS.
8
+ * @property {number} maxRows - Maximum number of visible rows allowed.
9
+ * @property {number} rows - Effective number of visual rows being used.
10
+ */
2
11
  export type OnInputInfo = {
3
12
  /**
4
13
  * - Total number of `\n` line breaks in the textarea value.
@@ -29,16 +38,6 @@ export type OnInputInfo = {
29
38
  */
30
39
  rows: number;
31
40
  };
32
- /**
33
- * @typedef {Object} OnInputInfo
34
- * @property {number} breakLines - Total number of `\n` line breaks in the textarea value.
35
- * @property {number} height - Final calculated height (in pixels) applied to the textarea.
36
- * @property {number} scrollHeight - Internal scrollHeight before limiting.
37
- * @property {number} maxHeight - Maximum allowed height before scrolling is forced.
38
- * @property {number} lineHeight - Height of one line of text, computed from CSS.
39
- * @property {number} maxRows - Maximum number of visible rows allowed.
40
- * @property {number} rows - Effective number of visual rows being used.
41
- */
42
41
  /**
43
42
  * A lightweight utility class that automatically adjusts the height of a `<textarea>`
44
43
  * element based on its content. It prevents scrollbars by expanding vertically as needed,
@@ -58,24 +57,8 @@ export type OnInputInfo = {
58
57
  * @beta
59
58
  */
60
59
  declare class TinyTextarea {
61
- /**
62
- * Creates a new TinyTextarea instance.
63
- *
64
- * @param {HTMLTextAreaElement} textarea - The `<textarea>` element to enhance.
65
- * @param {Object} [options={}] - Optional configuration parameters.
66
- * @param {number} [options.maxRows] - Maximum number of visible rows before scrolling.
67
- * @param {number} [options.extraHeight] - Additional pixels to add to final height.
68
- * @param {(info: OnInputInfo) => void} [options.onResize] - Callback when the number of rows changes.
69
- * @param {(info: OnInputInfo) => void} [options.onInput] - Callback on every input event.
70
- * @throws {Error} If `textarea` is not a valid `<textarea>` element.
71
- * @throws {TypeError} If provided options are of invalid types.
72
- */
73
- constructor(textarea: HTMLTextAreaElement, options?: {
74
- maxRows?: number | undefined;
75
- extraHeight?: number | undefined;
76
- onResize?: ((info: OnInputInfo) => void) | undefined;
77
- onInput?: ((info: OnInputInfo) => void) | undefined;
78
- });
60
+ #private;
61
+ _handleInput: () => void;
79
62
  /**
80
63
  * Gets the current destruction status of the instance.
81
64
  *
@@ -112,7 +95,24 @@ declare class TinyTextarea {
112
95
  * @returns {HTMLTextAreaElement}
113
96
  */
114
97
  get textarea(): HTMLTextAreaElement;
115
- _handleInput: () => void;
98
+ /**
99
+ * Creates a new TinyTextarea instance.
100
+ *
101
+ * @param {HTMLTextAreaElement} textarea - The `<textarea>` element to enhance.
102
+ * @param {Object} [options={}] - Optional configuration parameters.
103
+ * @param {number} [options.maxRows] - Maximum number of visible rows before scrolling.
104
+ * @param {number} [options.extraHeight] - Additional pixels to add to final height.
105
+ * @param {(info: OnInputInfo) => void} [options.onResize] - Callback when the number of rows changes.
106
+ * @param {(info: OnInputInfo) => void} [options.onInput] - Callback on every input event.
107
+ * @throws {Error} If `textarea` is not a valid `<textarea>` element.
108
+ * @throws {TypeError} If provided options are of invalid types.
109
+ */
110
+ constructor(textarea: HTMLTextAreaElement, options?: {
111
+ maxRows?: number;
112
+ extraHeight?: number;
113
+ onResize?: (info: OnInputInfo) => void;
114
+ onInput?: (info: OnInputInfo) => void;
115
+ });
116
116
  /**
117
117
  * Returns the latest height and row count of the textarea.
118
118
  * @returns {{ height: number, rows: number }} - Last known resize state.
@@ -129,6 +129,6 @@ declare class TinyTextarea {
129
129
  * Cleans up internal listeners and disables dynamic behavior.
130
130
  */
131
131
  destroy(): void;
132
- #private;
133
132
  }
133
+ export default TinyTextarea;
134
134
  //# sourceMappingURL=TinyTextarea.d.mts.map
@@ -1,19 +1,9 @@
1
- export default TinyTimeout;
2
1
  /**
3
2
  * A utility class to manage dynamically adjusted timeouts based on how often
4
3
  * each unique ID is triggered. Also provides polling support for asynchronous conditions.
5
4
  */
6
5
  declare class TinyTimeout {
7
- /**
8
- * Waits until a provided function returns `true`, checking repeatedly at the defined interval.
9
- * Useful for polling asynchronous conditions.
10
- *
11
- * @param {() => boolean} getValue - A function that returns `true` when the condition is met.
12
- * @param {number} [checkInterval=100] - How often (in ms) to check the condition.
13
- * @returns {Promise<void>} Resolves when the condition is met.
14
- * @throws {TypeError} If arguments are invalid.
15
- */
16
- static waitForTrue(getValue: () => boolean, checkInterval?: number): Promise<void>;
6
+ #private;
17
7
  /**
18
8
  * Creates a new instance of TinyTimeout.
19
9
  *
@@ -22,8 +12,8 @@ declare class TinyTimeout {
22
12
  * @param {boolean} [options.allowAutoConfigChange=false] Whether to allow auto value changes for existing IDs.
23
13
  */
24
14
  constructor({ cooldownWatcherTime, allowAutoConfigChange }?: {
25
- cooldownWatcherTime?: number | undefined;
26
- allowAutoConfigChange?: boolean | undefined;
15
+ cooldownWatcherTime?: number;
16
+ allowAutoConfigChange?: boolean;
27
17
  });
28
18
  /**
29
19
  * Whether this instance has been destroyed and is no longer usable.
@@ -69,6 +59,16 @@ declare class TinyTimeout {
69
59
  * @throws {Error} Throws if the instance has been destroyed or arguments are invalid.
70
60
  */
71
61
  set(id: string, callback: Function, value: number, limit?: number | null): number;
62
+ /**
63
+ * Waits until a provided function returns `true`, checking repeatedly at the defined interval.
64
+ * Useful for polling asynchronous conditions.
65
+ *
66
+ * @param {() => boolean} getValue - A function that returns `true` when the condition is met.
67
+ * @param {number} [checkInterval=100] - How often (in ms) to check the condition.
68
+ * @returns {Promise<void>} Resolves when the condition is met.
69
+ * @throws {TypeError} If arguments are invalid.
70
+ */
71
+ static waitForTrue(getValue: () => boolean, checkInterval?: number): Promise<void>;
72
72
  /**
73
73
  * Instance version of `waitForTrue`, which defaults to using the instance's
74
74
  * cooldownWatcherTime if not explicitly provided.
@@ -84,6 +84,6 @@ declare class TinyTimeout {
84
84
  * After calling this, the instance becomes unusable.
85
85
  */
86
86
  destroy(): void;
87
- #private;
88
87
  }
88
+ export default TinyTimeout;
89
89
  //# sourceMappingURL=TinyTimeout.d.mts.map
@@ -18,7 +18,7 @@ const checkDestroy = utils.createCheckDestroyed('TinyToastNotify');
18
18
  * @typedef {string | {
19
19
  * message: string, // The main message to display
20
20
  * title?: string, // Optional title to appear above the message
21
- * onClick?: function(MouseEvent, CloseToastFunc): void, // Optional click handler for the notification
21
+ * onClick?: (event: MouseEvent, func: CloseToastFunc) => void, // Optional click handler for the notification
22
22
  * html?: boolean, // Whether the message should be interpreted as raw HTML
23
23
  * avatar?: string // Optional URL to an avatar image shown on the left
24
24
  * }} NotifyData
@@ -1,17 +1,8 @@
1
- export default TinyToastNotify;
2
- /**
3
- * A callback function used to manually close a notification.
4
- * Passed as a second argument to `onClick` handlers, allowing programmatic dismissal of the toast.
5
- */
6
1
  export type CloseToastFunc = () => void;
7
- /**
8
- * Represents the data used to display a notification.
9
- * Can be a plain string (used as the message), or an object with more customization options.
10
- */
11
2
  export type NotifyData = string | {
12
3
  message: string;
13
4
  title?: string;
14
- onClick?: (arg0: MouseEvent, arg1: CloseToastFunc) => void;
5
+ onClick?: (event: MouseEvent, func: CloseToastFunc) => void;
15
6
  html?: boolean;
16
7
  avatar?: string;
17
8
  };
@@ -28,7 +19,7 @@ export type NotifyData = string | {
28
19
  * @typedef {string | {
29
20
  * message: string, // The main message to display
30
21
  * title?: string, // Optional title to appear above the message
31
- * onClick?: function(MouseEvent, CloseToastFunc): void, // Optional click handler for the notification
22
+ * onClick?: (event: MouseEvent, func: CloseToastFunc) => void, // Optional click handler for the notification
32
23
  * html?: boolean, // Whether the message should be interpreted as raw HTML
33
24
  * avatar?: string // Optional URL to an avatar image shown on the left
34
25
  * }} NotifyData
@@ -54,6 +45,13 @@ export type NotifyData = string | {
54
45
  * @class
55
46
  */
56
47
  declare class TinyToastNotify {
48
+ #private;
49
+ /**
50
+ * Gets the current destruction status of the instance.
51
+ *
52
+ * @returns {boolean} True if the instance is destroyed, false otherwise.
53
+ */
54
+ get destroyed(): boolean;
57
55
  /**
58
56
  * @param {'top'|'bottom'} y - 'top' or 'bottom'
59
57
  * @param {'right'|'left'|'center'} x - 'right', 'left', or 'center'
@@ -62,13 +60,7 @@ declare class TinyToastNotify {
62
60
  * @param {number} fadeOutDuration - Time in ms for fade-out effect
63
61
  * @param {string} [selector='.notify-container'] - Base selector for container
64
62
  */
65
- constructor(y?: "top" | "bottom", x?: "right" | "left" | "center", baseDuration?: number, extraPerChar?: number, fadeOutDuration?: number, selector?: string);
66
- /**
67
- * Gets the current destruction status of the instance.
68
- *
69
- * @returns {boolean} True if the instance is destroyed, false otherwise.
70
- */
71
- get destroyed(): boolean;
63
+ constructor(y?: 'top' | 'bottom', x?: 'right' | 'left' | 'center', baseDuration?: number, extraPerChar?: number, fadeOutDuration?: number, selector?: string);
72
64
  /**
73
65
  * Returns the notification container element.
74
66
  * Ensures that the container is a valid HTMLElement.
@@ -82,7 +74,7 @@ declare class TinyToastNotify {
82
74
  *
83
75
  * @returns {'top'|'bottom'} The vertical direction of the notification container.
84
76
  */
85
- getY(): "top" | "bottom";
77
+ getY(): 'top' | 'bottom';
86
78
  /**
87
79
  * Sets the vertical position of the notification container.
88
80
  * Updates the container's class to reflect the new position.
@@ -90,13 +82,13 @@ declare class TinyToastNotify {
90
82
  * @param {'top'|'bottom'} value - The vertical direction to set.
91
83
  * @throws {Error} If the value is invalid.
92
84
  */
93
- setY(value: "top" | "bottom"): void;
85
+ setY(value: 'top' | 'bottom'): void;
94
86
  /**
95
87
  * Returns the current horizontal position.
96
88
  *
97
89
  * @returns {'left'|'right'|'center'} The horizontal direction of the notification container.
98
90
  */
99
- getX(): "left" | "right" | "center";
91
+ getX(): 'left' | 'right' | 'center';
100
92
  /**
101
93
  * Sets the horizontal position of the notification container.
102
94
  * Updates the container's class to reflect the new position.
@@ -104,7 +96,7 @@ declare class TinyToastNotify {
104
96
  * @param {'left'|'right'|'center'} value - The horizontal direction to set.
105
97
  * @throws {Error} If the value is invalid.
106
98
  */
107
- setX(value: "left" | "right" | "center"): void;
99
+ setX(value: 'left' | 'right' | 'center'): void;
108
100
  /**
109
101
  * Returns the base duration for displaying the notification.
110
102
  *
@@ -166,6 +158,6 @@ declare class TinyToastNotify {
166
158
  * @returns {void}
167
159
  */
168
160
  destroy(): void;
169
- #private;
170
161
  }
162
+ export default TinyToastNotify;
171
163
  //# sourceMappingURL=TinyToastNotify.d.mts.map
@@ -13,7 +13,7 @@ const checkDestroy = createCheckDestroyed('TinyToastNotify');
13
13
  * @typedef {string | {
14
14
  * message: string, // The main message to display
15
15
  * title?: string, // Optional title to appear above the message
16
- * onClick?: function(MouseEvent, CloseToastFunc): void, // Optional click handler for the notification
16
+ * onClick?: (event: MouseEvent, func: CloseToastFunc) => void, // Optional click handler for the notification
17
17
  * html?: boolean, // Whether the message should be interpreted as raw HTML
18
18
  * avatar?: string // Optional URL to an avatar image shown on the left
19
19
  * }} NotifyData
@@ -1,4 +1,27 @@
1
- export default TinyUploadClicker;
1
+ /**
2
+ * @typedef {Object} UploaderConfig
3
+ *
4
+ * @property {string | HTMLElement | Array<string | HTMLElement>} triggers -
5
+ * Single or multiple elements (or selectors) that will act as upload triggers.
6
+ *
7
+ * @property {boolean} [multiple=false] -
8
+ * Whether to allow selection of multiple files.
9
+ *
10
+ * @property {string|string[]} [accept=""] -
11
+ * A comma-separated list of accepted file types (e.g., ".png,.jpg" or "image/*").
12
+ *
13
+ * @property {Record<string, string>} [inputAttributes={}] -
14
+ * Additional attributes to apply to the created `<input type="file">`.
15
+ *
16
+ * @property {Partial<CSSStyleDeclaration>} [inputStyles={ display: 'none' }] -
17
+ * Inline CSS styles to apply to the hidden input. Default hides the element.
18
+ *
19
+ * @property {((triggerElement: HTMLElement) => void)|null} [onClick=null] -
20
+ * Callback executed when a trigger is clicked (before the file dialog opens).
21
+ *
22
+ * @property {((files: FileList, triggerElement: HTMLElement) => void)|null} [onFileLoad=null] -
23
+ * Callback executed when files are selected through the file input.
24
+ */
2
25
  export type UploaderConfig = {
3
26
  /**
4
27
  * -
@@ -9,32 +32,32 @@ export type UploaderConfig = {
9
32
  * -
10
33
  * Whether to allow selection of multiple files.
11
34
  */
12
- multiple?: boolean | undefined;
35
+ multiple?: boolean;
13
36
  /**
14
37
  * -
15
38
  * A comma-separated list of accepted file types (e.g., ".png,.jpg" or "image/*").
16
39
  */
17
- accept?: string | string[] | undefined;
40
+ accept?: string | string[];
18
41
  /**
19
42
  * -
20
43
  * Additional attributes to apply to the created `<input type="file">`.
21
44
  */
22
- inputAttributes?: Record<string, string> | undefined;
45
+ inputAttributes?: Record<string, string>;
23
46
  /**
24
47
  * -
25
48
  * Inline CSS styles to apply to the hidden input. Default hides the element.
26
49
  */
27
- inputStyles?: Partial<CSSStyleDeclaration> | undefined;
50
+ inputStyles?: Partial<CSSStyleDeclaration>;
28
51
  /**
29
52
  * -
30
53
  * Callback executed when a trigger is clicked (before the file dialog opens).
31
54
  */
32
- onClick?: ((triggerElement: HTMLElement) => void) | null | undefined;
55
+ onClick?: ((triggerElement: HTMLElement) => void) | null;
33
56
  /**
34
57
  * -
35
58
  * Callback executed when files are selected through the file input.
36
59
  */
37
- onFileLoad?: ((files: FileList, triggerElement: HTMLElement) => void) | null | undefined;
60
+ onFileLoad?: ((files: FileList, triggerElement: HTMLElement) => void) | null;
38
61
  };
39
62
  /**
40
63
  * TinyUploadClicker is a lightweight utility class for attaching custom clickable elements
@@ -64,6 +87,13 @@ export type UploaderConfig = {
64
87
  * uploader.destroy();
65
88
  */
66
89
  declare class TinyUploadClicker {
90
+ #private;
91
+ /**
92
+ * Gets the current destruction status of the instance.
93
+ *
94
+ * @returns {boolean} True if the instance is destroyed, false otherwise.
95
+ */
96
+ get destroyed(): boolean;
67
97
  /**
68
98
  * Creates a new instance of TinyUploadClicker.
69
99
  *
@@ -71,16 +101,10 @@ declare class TinyUploadClicker {
71
101
  * @throws {TypeError} If the config is invalid or required options are missing.
72
102
  */
73
103
  constructor(options: UploaderConfig);
74
- /**
75
- * Gets the current destruction status of the instance.
76
- *
77
- * @returns {boolean} True if the instance is destroyed, false otherwise.
78
- */
79
- get destroyed(): boolean;
80
104
  /**
81
105
  * Cleans up all internal elements and event listeners, removing created inputs and breaking references.
82
106
  */
83
107
  destroy(): void;
84
- #private;
85
108
  }
109
+ export default TinyUploadClicker;
86
110
  //# sourceMappingURL=TinyUploadClicker.d.mts.map