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.
- package/changelog/1/28/1.md +23 -0
- package/changelog/1/28/2.md +43 -0
- package/dist/_/numbers.d.mts +91 -16
- package/dist/v1/TinyAdvancedRaffle.min.js +1 -1
- package/dist/v1/TinyAfterScrollWatcher.min.js +1 -1
- package/dist/v1/TinyAnalogClock.min.js +1 -1
- package/dist/v1/TinyBasicsEs.min.js +1 -1
- package/dist/v1/TinyDayNightCycle.min.js +1 -1
- package/dist/v1/TinyDragDropDetector.min.js +1 -1
- package/dist/v1/TinyDragger.min.js +1 -1
- package/dist/v1/TinyElementObserver.min.js +1 -1
- package/dist/v1/TinyEssentials.min.js +1 -1
- package/dist/v1/TinyGamepad.min.js +1 -1
- package/dist/v1/TinyHtml.min.js +1 -1
- package/dist/v1/TinyI18.min.js +1 -1
- package/dist/v1/TinyIframeEvents.min.js +1 -1
- package/dist/v1/TinyLocalStorage.min.js +1 -1
- package/dist/v1/TinyMediaPlayer.min.js +1 -1
- package/dist/v1/TinyNewWinEvents.min.js +1 -1
- package/dist/v1/TinyNotifyCenter.min.js +1 -1
- package/dist/v1/TinyRadioFm.min.js +1 -1
- package/dist/v1/TinyRateLimiter.min.js +1 -1
- package/dist/v1/TinySmartScroller.min.js +1 -1
- package/dist/v1/TinyTextDiffer.min.js +1 -1
- package/dist/v1/TinyTextarea.min.js +1 -1
- package/dist/v1/TinyTimeout.min.js +1 -1
- package/dist/v1/TinyToastNotify.min.js +1 -1
- package/dist/v1/TinyUploadClicker.min.js +1 -1
- package/dist/v1/UltraRandomMsgGen.min.js +1 -1
- package/dist/v1/basics/array.cjs +57 -9
- package/dist/v1/basics/array.d.mts +28 -12
- package/dist/v1/basics/array.mjs +51 -9
- package/dist/v1/basics/clock.cjs +94 -42
- package/dist/v1/basics/clock.d.mts +22 -22
- package/dist/v1/basics/clock.mjs +91 -54
- package/dist/v1/basics/collision.d.mts +245 -104
- package/dist/v1/basics/deprecated/html.cjs +246 -0
- package/dist/v1/basics/deprecated/html.d.mts +63 -0
- package/dist/v1/basics/deprecated/html.mjs +190 -0
- package/dist/v1/basics/extendObjType/Buffer.d.mts +1 -1
- package/dist/v1/basics/fullScreen.d.mts +47 -7
- package/dist/v1/basics/html.cjs +149 -130
- package/dist/v1/basics/html.d.mts +69 -113
- package/dist/v1/basics/html.mjs +113 -105
- package/dist/v1/basics/index.cjs +2 -0
- package/dist/v1/basics/index.d.mts +11 -65
- package/dist/v1/basics/index.mjs +3 -3
- package/dist/v1/basics/mediaContent.cjs +116 -32
- package/dist/v1/basics/mediaContent.d.mts +143 -159
- package/dist/v1/basics/mediaContent.mjs +105 -33
- package/dist/v1/basics/objChecker.cjs +7 -5
- package/dist/v1/basics/objChecker.d.mts +5 -4
- package/dist/v1/basics/objChecker.mjs +6 -6
- package/dist/v1/basics/objFilter.cjs +71 -14
- package/dist/v1/basics/objFilter.d.mts +16 -19
- package/dist/v1/basics/objFilter.mjs +63 -14
- package/dist/v1/basics/simpleMath.cjs +81 -25
- package/dist/v1/basics/simpleMath.d.mts +22 -22
- package/dist/v1/basics/simpleMath.mjs +70 -27
- package/dist/v1/basics/text.cjs +76 -31
- package/dist/v1/basics/text.d.mts +64 -14
- package/dist/v1/basics/text.mjs +62 -31
- package/dist/v1/build/ColorSafeStringify.d.mts +1 -1
- package/dist/v1/build/TinyAdvancedRaffle.d.mts +1 -1
- package/dist/v1/build/TinyAfterScrollWatcher.d.mts +1 -1
- package/dist/v1/build/TinyAnalogClock.d.mts +1 -1
- package/dist/v1/build/TinyArrayComparator.d.mts +1 -1
- package/dist/v1/build/TinyArrayPaginator.d.mts +1 -1
- package/dist/v1/build/TinyClassManager.d.mts +1 -1
- package/dist/v1/build/TinyClipboard.d.mts +1 -1
- package/dist/v1/build/TinyColorConverter.d.mts +1 -1
- package/dist/v1/build/TinyColorValidator.d.mts +1 -1
- package/dist/v1/build/TinyCookieConsent.d.mts +1 -1
- package/dist/v1/build/TinyDayNightCycle.d.mts +1 -1
- package/dist/v1/build/TinyDomReadyManager.d.mts +1 -1
- package/dist/v1/build/TinyDragDropDetector.d.mts +1 -1
- package/dist/v1/build/TinyDragger.d.mts +1 -1
- package/dist/v1/build/TinyElementObserver.d.mts +1 -1
- package/dist/v1/build/TinyGamepad.d.mts +1 -1
- package/dist/v1/build/TinyHtml.d.mts +1 -1
- package/dist/v1/build/TinyI18.d.mts +1 -1
- package/dist/v1/build/TinyIframeEvents.d.mts +1 -1
- package/dist/v1/build/TinyInventory.d.mts +1 -1
- package/dist/v1/build/TinyInventoryTrader.d.mts +1 -1
- package/dist/v1/build/TinyLevelUp.d.mts +1 -1
- package/dist/v1/build/TinyLoadingScreen.d.mts +1 -1
- package/dist/v1/build/TinyLocalStorage.d.mts +1 -1
- package/dist/v1/build/TinyMediaPlayer.d.mts +1 -1
- package/dist/v1/build/TinyNeedBar.d.mts +1 -1
- package/dist/v1/build/TinyNewWinEvents.d.mts +1 -1
- package/dist/v1/build/TinyNotifications.d.mts +1 -1
- package/dist/v1/build/TinyNotifyCenter.d.mts +1 -1
- package/dist/v1/build/TinyPromiseQueue.d.mts +1 -1
- package/dist/v1/build/TinyRadioFm.d.mts +1 -1
- package/dist/v1/build/TinyRateLimiter.d.mts +1 -1
- package/dist/v1/build/TinySimpleDice.d.mts +1 -1
- package/dist/v1/build/TinySmartScroller.d.mts +1 -1
- package/dist/v1/build/TinyTextDiffer.d.mts +1 -1
- package/dist/v1/build/TinyTextRangeEditor.d.mts +1 -1
- package/dist/v1/build/TinyTextarea.d.mts +1 -1
- package/dist/v1/build/TinyTimeout.d.mts +1 -1
- package/dist/v1/build/TinyToastNotify.d.mts +1 -1
- package/dist/v1/build/TinyUploadClicker.d.mts +1 -1
- package/dist/v1/build/UltraRandomMsgGen.d.mts +1 -1
- package/dist/v1/fileManager/asyncFuncs.d.mts +13 -13
- package/dist/v1/fileManager/index.d.mts +3 -29
- package/dist/v1/fileManager/normalFuncs.d.mts +22 -22
- package/dist/v1/index.cjs +4 -0
- package/dist/v1/index.d.mts +54 -137
- package/dist/v1/index.mjs +4 -3
- package/dist/v1/libs/ColorSafeStringify.d.mts +3 -12
- package/dist/v1/libs/TinyAdvancedRaffle.cjs +64 -50
- package/dist/v1/libs/TinyAdvancedRaffle.d.mts +64 -116
- package/dist/v1/libs/TinyAdvancedRaffle.mjs +62 -49
- package/dist/v1/libs/TinyAfterScrollWatcher.cjs +17 -1
- package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +15 -19
- package/dist/v1/libs/TinyAfterScrollWatcher.mjs +15 -1
- package/dist/v1/libs/TinyAnalogClock.cjs +60 -0
- package/dist/v1/libs/TinyAnalogClock.d.mts +12 -9
- package/dist/v1/libs/TinyAnalogClock.mjs +57 -0
- package/dist/v1/libs/TinyArrayComparator.d.mts +14 -20
- package/dist/v1/libs/TinyArrayPaginator.d.mts +22 -26
- package/dist/v1/libs/TinyClassManager/TinyPluginInliner.d.mts +8 -8
- package/dist/v1/libs/TinyClassManager.cjs +5 -7
- package/dist/v1/libs/TinyClassManager.d.mts +16 -16
- package/dist/v1/libs/TinyClassManager.mjs +5 -6
- package/dist/v1/libs/TinyClipboard.cjs +2 -0
- package/dist/v1/libs/TinyClipboard.d.mts +12 -5
- package/dist/v1/libs/TinyClipboard.mjs +2 -0
- package/dist/v1/libs/TinyColorConverter.cjs +1 -0
- package/dist/v1/libs/TinyColorConverter.d.mts +10 -32
- package/dist/v1/libs/TinyColorConverter.mjs +1 -0
- package/dist/v1/libs/TinyColorValidator.d.mts +145 -184
- package/dist/v1/libs/TinyCookieConsent.d.mts +17 -17
- package/dist/v1/libs/TinyDayNightCycle.cjs +67 -42
- package/dist/v1/libs/TinyDayNightCycle.d.mts +87 -117
- package/dist/v1/libs/TinyDayNightCycle.mjs +65 -41
- package/dist/v1/libs/TinyDomReadyManager.d.mts +8 -16
- package/dist/v1/libs/TinyDragDropDetector.cjs +25 -0
- package/dist/v1/libs/TinyDragDropDetector.d.mts +32 -26
- package/dist/v1/libs/TinyDragDropDetector.mjs +22 -0
- package/dist/v1/libs/TinyDragger.cjs +46 -19
- package/dist/v1/libs/TinyDragger.d.mts +82 -81
- package/dist/v1/libs/TinyDragger.mjs +45 -18
- package/dist/v1/libs/TinyElementObserver.cjs +39 -0
- package/dist/v1/libs/TinyElementObserver.d.mts +28 -25
- package/dist/v1/libs/TinyElementObserver.mjs +36 -0
- package/dist/v1/libs/TinyGamepad.cjs +131 -2
- package/dist/v1/libs/TinyGamepad.d.mts +50 -122
- package/dist/v1/libs/TinyGamepad.mjs +129 -2
- package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.cjs +2 -25
- package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.d.mts +19 -25
- package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.mjs +3 -27
- package/dist/v1/libs/TinyHtml/TinyHtmlButton.cjs +2 -1
- package/dist/v1/libs/TinyHtml/TinyHtmlButton.d.mts +55 -55
- package/dist/v1/libs/TinyHtml/TinyHtmlButton.mjs +2 -1
- package/dist/v1/libs/TinyHtml/TinyHtmlCanvas.d.mts +6 -6
- package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.cjs +8 -4
- package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.d.mts +19 -21
- package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.mjs +7 -4
- package/dist/v1/libs/TinyHtml/TinyHtmlEmbed.d.mts +8 -8
- package/dist/v1/libs/TinyHtml/TinyHtmlForm.d.mts +18 -18
- package/dist/v1/libs/TinyHtml/TinyHtmlIcon.d.mts +5 -6
- package/dist/v1/libs/TinyHtml/TinyHtmlIframe.d.mts +19 -19
- package/dist/v1/libs/TinyHtml/TinyHtmlImage.cjs +0 -28
- package/dist/v1/libs/TinyHtml/TinyHtmlImage.d.mts +22 -28
- package/dist/v1/libs/TinyHtml/TinyHtmlImage.mjs +1 -27
- package/dist/v1/libs/TinyHtml/TinyHtmlInput.d.mts +11 -11
- package/dist/v1/libs/TinyHtml/TinyHtmlLink.d.mts +23 -23
- package/dist/v1/libs/TinyHtml/TinyHtmlMedia.d.mts +26 -26
- package/dist/v1/libs/TinyHtml/TinyHtmlScript.cjs +4 -30
- package/dist/v1/libs/TinyHtml/TinyHtmlScript.d.mts +20 -26
- package/dist/v1/libs/TinyHtml/TinyHtmlScript.mjs +5 -32
- package/dist/v1/libs/TinyHtml/TinyHtmlSelect.d.mts +19 -19
- package/dist/v1/libs/TinyHtml/TinyHtmlStyle.d.mts +8 -8
- package/dist/v1/libs/TinyHtml/TinyHtmlTemplate.d.mts +26 -28
- package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.cjs +14 -15
- package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.d.mts +32 -32
- package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.mjs +15 -15
- package/dist/v1/libs/TinyHtml/index.d.mts +102 -45
- package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.cjs +11 -9
- package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.d.mts +21 -21
- package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.mjs +11 -9
- package/dist/v1/libs/TinyHtml/input/TinyHtmlFileInput.d.mts +11 -11
- package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.cjs +4 -4
- package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.d.mts +17 -13
- package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.mjs +4 -4
- package/dist/v1/libs/TinyHtml/input/TinyHtmlImageInput.d.mts +21 -21
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.cjs +5 -4
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.mjs +5 -4
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.cjs +4 -3
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.d.mts +10 -10
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.mjs +4 -3
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.cjs +4 -3
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.d.mts +19 -19
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.mjs +4 -3
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.cjs +5 -4
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.d.mts +11 -11
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.mjs +5 -4
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.cjs +4 -3
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.d.mts +15 -11
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.mjs +4 -3
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.cjs +49 -21
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.d.mts +34 -20
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.mjs +45 -20
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.cjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.mjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.cjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.mjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.cjs +48 -25
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.d.mts +27 -21
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.mjs +40 -27
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.cjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.mjs +1 -1
- package/dist/v1/libs/TinyHtml/input/number/TinyHtmlNumberInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/number/TinyHtmlRangeInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlEmailInput.d.mts +25 -21
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlPasswordInput.d.mts +18 -18
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlSearchInput.d.mts +33 -29
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTelInput.d.mts +22 -22
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTextInput.d.mts +18 -18
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlUrlInput.d.mts +31 -27
- package/dist/v1/libs/TinyHtml/media/TinyHtmlAudio.d.mts +35 -11
- package/dist/v1/libs/TinyHtml/media/TinyHtmlObject.d.mts +10 -10
- package/dist/v1/libs/TinyHtml/media/TinyHtmlSource.d.mts +12 -12
- package/dist/v1/libs/TinyHtml/media/TinyHtmlVideo.d.mts +35 -27
- package/dist/v1/libs/TinyHtml.cjs +4 -5
- package/dist/v1/libs/TinyHtml.d.mts +1503 -1731
- package/dist/v1/libs/TinyHtml.mjs +5 -6
- package/dist/v1/libs/TinyI18.cjs +61 -0
- package/dist/v1/libs/TinyI18.d.mts +34 -58
- package/dist/v1/libs/TinyI18.mjs +55 -0
- package/dist/v1/libs/TinyIframeEvents.cjs +19 -2
- package/dist/v1/libs/TinyIframeEvents.d.mts +29 -38
- package/dist/v1/libs/TinyIframeEvents.mjs +19 -2
- package/dist/v1/libs/TinyInventory.d.mts +78 -141
- package/dist/v1/libs/TinyInventoryTrader.d.mts +19 -22
- package/dist/v1/libs/TinyLevelUp.d.mts +10 -13
- package/dist/v1/libs/TinyLoadingScreen.d.mts +21 -31
- package/dist/v1/libs/TinyLocalStorage.cjs +48 -0
- package/dist/v1/libs/TinyLocalStorage.d.mts +11 -30
- package/dist/v1/libs/TinyLocalStorage.mjs +45 -0
- package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +37 -23
- package/dist/v1/libs/TinyMediaPlayer.cjs +77 -3
- package/dist/v1/libs/TinyMediaPlayer.d.mts +109 -106
- package/dist/v1/libs/TinyMediaPlayer.mjs +71 -3
- package/dist/v1/libs/TinyNeedBar.d.mts +25 -37
- package/dist/v1/libs/TinyNewWinEvents.cjs +29 -0
- package/dist/v1/libs/TinyNewWinEvents.d.mts +32 -29
- package/dist/v1/libs/TinyNewWinEvents.mjs +26 -0
- package/dist/v1/libs/TinyNotifications.d.mts +6 -6
- package/dist/v1/libs/TinyNotifyCenter.cjs +36 -0
- package/dist/v1/libs/TinyNotifyCenter.d.mts +15 -15
- package/dist/v1/libs/TinyNotifyCenter.mjs +32 -0
- package/dist/v1/libs/TinyPromiseQueue.d.mts +11 -11
- package/dist/v1/libs/TinyRadioFm.cjs +70 -12
- package/dist/v1/libs/TinyRadioFm.d.mts +45 -80
- package/dist/v1/libs/TinyRadioFm.mjs +64 -12
- package/dist/v1/libs/TinyRateLimiter.cjs +52 -0
- package/dist/v1/libs/TinyRateLimiter.d.mts +29 -36
- package/dist/v1/libs/TinyRateLimiter.mjs +48 -0
- package/dist/v1/libs/TinySimpleDice.d.mts +17 -36
- package/dist/v1/libs/TinySmartScroller.cjs +52 -3
- package/dist/v1/libs/TinySmartScroller.d.mts +62 -70
- package/dist/v1/libs/TinySmartScroller.mjs +51 -5
- package/dist/v1/libs/TinyTextDiffer.cjs +19 -18
- package/dist/v1/libs/TinyTextDiffer.d.mts +11 -13
- package/dist/v1/libs/TinyTextDiffer.mjs +16 -17
- package/dist/v1/libs/TinyTextRangeEditor.d.mts +8 -8
- package/dist/v1/libs/TinyTextarea.cjs +19 -0
- package/dist/v1/libs/TinyTextarea.d.mts +34 -28
- package/dist/v1/libs/TinyTextarea.mjs +17 -0
- package/dist/v1/libs/TinyTimeout.cjs +11 -1
- package/dist/v1/libs/TinyTimeout.d.mts +14 -14
- package/dist/v1/libs/TinyTimeout.mjs +9 -1
- package/dist/v1/libs/TinyToastNotify.cjs +36 -1
- package/dist/v1/libs/TinyToastNotify.d.mts +15 -17
- package/dist/v1/libs/TinyToastNotify.mjs +32 -1
- package/dist/v1/libs/TinyUploadClicker.cjs +19 -0
- package/dist/v1/libs/TinyUploadClicker.d.mts +38 -8
- package/dist/v1/libs/TinyUploadClicker.mjs +17 -0
- package/dist/v1/libs/UltraRandomMsgGen.cjs +148 -35
- package/dist/v1/libs/UltraRandomMsgGen.d.mts +52 -78
- package/dist/v1/libs/UltraRandomMsgGen.mjs +133 -34
- package/dist/v1/libs/utils.cjs +21 -0
- package/dist/v1/libs/utils.d.mts +6 -0
- package/dist/v1/libs/utils.mjs +16 -0
- package/docs/v1/README.md +1 -0
- package/docs/v1/basics/array.md +2 -2
- package/docs/v1/basics/deprecated/html.md +17 -0
- package/docs/v1/basics/fullScreen.md +1 -1
- package/docs/v1/basics/html.md +12 -26
- package/docs/v1/basics/mediaContent.md +1 -1
- package/docs/v1/basics/objChecker.md +1 -1
- package/docs/v1/basics/text.md +2 -2
- package/docs/v1/fileManager/main.md +1 -1
- package/docs/v1/libs/ColorSafeStringify.md +1 -1
- package/docs/v1/libs/TinyAfterScrollWatcher.md +1 -1
- package/docs/v1/libs/TinyAnalogClock.md +1 -1
- package/docs/v1/libs/TinyArrayComparator.md +1 -1
- package/docs/v1/libs/TinyArrayPaginator.md +1 -1
- package/docs/v1/libs/TinyClassManager/TinyPluginInliner.md +2 -2
- package/docs/v1/libs/TinyClassManager.md +1 -1
- package/docs/v1/libs/TinyClipboard.md +1 -1
- package/docs/v1/libs/TinyCookieConsent.md +1 -1
- package/docs/v1/libs/TinyDomReadyManager.md +1 -1
- package/docs/v1/libs/TinyDragDropDetector.md +1 -1
- package/docs/v1/libs/TinyDragger.md +1 -1
- package/docs/v1/libs/TinyElementObserver.md +1 -1
- package/docs/v1/libs/TinyHtml.md +1 -1
- package/docs/v1/libs/TinyIframeEvents.md +2 -2
- package/docs/v1/libs/TinyLevelUp.md +1 -1
- package/docs/v1/libs/TinyLoadingScreen.md +1 -1
- package/docs/v1/libs/TinyNewWinEvents.md +2 -2
- package/docs/v1/libs/TinyNotifications.md +1 -1
- package/docs/v1/libs/TinyPromiseQueue.md +2 -2
- package/docs/v1/libs/TinyTextDiffer.md +1 -1
- package/docs/v1/libs/TinyTextarea.md +1 -1
- package/package.json +11 -2
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Defines the available normalization strategies for probability weight calculations.
|
|
4
|
-
*/
|
|
5
|
-
export type Normalization = "relative" | "softmax";
|
|
6
|
-
/**
|
|
7
|
-
* Generates a pseudo-random number between 0 (inclusive) and 1 (exclusive).
|
|
8
|
-
*/
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
export type Normalization = 'relative' | 'softmax';
|
|
9
3
|
export type RngGenerator = () => number;
|
|
10
|
-
/**
|
|
11
|
-
* Represents a temporary weight modifier that is applied for a limited number of draws.
|
|
12
|
-
*/
|
|
13
4
|
export type TempModifier = {
|
|
14
5
|
/**
|
|
15
6
|
* - Function that modifies the item weights.
|
|
@@ -20,9 +11,6 @@ export type TempModifier = {
|
|
|
20
11
|
*/
|
|
21
12
|
uses: number;
|
|
22
13
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Represents the core data structure for an item in the raffle system.
|
|
25
|
-
*/
|
|
26
14
|
export type ItemDataTemplate<TGroups extends Set<string> | string[]> = {
|
|
27
15
|
/**
|
|
28
16
|
* - Unique identifier for the item.
|
|
@@ -49,9 +37,6 @@ export type ItemDataTemplate<TGroups extends Set<string> | string[]> = {
|
|
|
49
37
|
*/
|
|
50
38
|
meta: ItemMetadata;
|
|
51
39
|
};
|
|
52
|
-
/**
|
|
53
|
-
* Represents the serialized state of the raffle system for export or persistence.
|
|
54
|
-
*/
|
|
55
40
|
export type ExportedJson = {
|
|
56
41
|
/**
|
|
57
42
|
* - Array of item objects in their exported form.
|
|
@@ -74,39 +59,20 @@ export type ExportedJson = {
|
|
|
74
59
|
*/
|
|
75
60
|
seed: number | null;
|
|
76
61
|
};
|
|
77
|
-
/**
|
|
78
|
-
* A concrete version of ItemDataTemplate where groups is Set<string>.
|
|
79
|
-
*/
|
|
80
62
|
export type ItemData = ItemDataTemplate<Set<string>>;
|
|
81
|
-
/**
|
|
82
|
-
* A concrete version of ItemDataTemplate where groups is string[].
|
|
83
|
-
*/
|
|
84
63
|
export type ItemDataGetter = ItemDataTemplate<string[]>;
|
|
85
|
-
/**
|
|
86
|
-
* Arbitrary key-value metadata container for additional item information.
|
|
87
|
-
* Keys can be strings, numbers, or symbols.
|
|
88
|
-
*/
|
|
89
64
|
export type ItemMetadata = Record<string | number | symbol, any>;
|
|
90
|
-
/**
|
|
91
|
-
* Context object passed to weight modification functions during draw calculations.
|
|
92
|
-
*/
|
|
93
65
|
export type ComputeEffectiveWeightsContext = {
|
|
94
66
|
/**
|
|
95
67
|
* - Metadata of the current raffle state or item.
|
|
96
68
|
*/
|
|
97
|
-
metadata?: ItemMetadata
|
|
69
|
+
metadata?: ItemMetadata;
|
|
98
70
|
/**
|
|
99
71
|
* - History of previously drawn items.
|
|
100
72
|
*/
|
|
101
|
-
previousDraws?: DrawOne[]
|
|
73
|
+
previousDraws?: DrawOne[];
|
|
102
74
|
};
|
|
103
|
-
/**
|
|
104
|
-
* Maps each item ID to its computed effective weight.
|
|
105
|
-
*/
|
|
106
75
|
export type Weights = Map<string, number>;
|
|
107
|
-
/**
|
|
108
|
-
* Pity system configuration and current state.
|
|
109
|
-
*/
|
|
110
76
|
export type Pity = {
|
|
111
77
|
/**
|
|
112
78
|
* - Number of draws without a win before pity starts applying.
|
|
@@ -129,13 +95,7 @@ export type Pity = {
|
|
|
129
95
|
*/
|
|
130
96
|
currentAdd: number;
|
|
131
97
|
};
|
|
132
|
-
/**
|
|
133
|
-
* Function used to modify or override computed weights before a draw.
|
|
134
|
-
*/
|
|
135
98
|
export type WeightsCallback = (weights: Weights, context: ComputeEffectiveWeightsContext) => Weights | null;
|
|
136
|
-
/**
|
|
137
|
-
* Represents the result of a single draw.
|
|
138
|
-
*/
|
|
139
99
|
export type DrawOne = {
|
|
140
100
|
/**
|
|
141
101
|
* - Item ID.
|
|
@@ -154,9 +114,6 @@ export type DrawOne = {
|
|
|
154
114
|
*/
|
|
155
115
|
prob: number;
|
|
156
116
|
};
|
|
157
|
-
/**
|
|
158
|
-
* Generic event handler function for message or signal reception.
|
|
159
|
-
*/
|
|
160
117
|
export type handler = (payload: any, event: any) => any;
|
|
161
118
|
/**
|
|
162
119
|
* Defines the available normalization strategies for probability weight calculations.
|
|
@@ -260,19 +217,8 @@ export type handler = (payload: any, event: any) => any;
|
|
|
260
217
|
*
|
|
261
218
|
* @class
|
|
262
219
|
*/
|
|
263
|
-
declare class TinyAdvancedRaffle extends EventEmitter
|
|
264
|
-
|
|
265
|
-
* Creates a new AdvancedRaffle instance.
|
|
266
|
-
* @param {Object} [opts] - Optional configuration.
|
|
267
|
-
* @param {RngGenerator|null} [opts.rng=null] - Custom RNG function. If null, an internal seeded RNG is used when a seed is provided.
|
|
268
|
-
* @param {number|null} [opts.seed=null] - Optional seed for deterministic results.
|
|
269
|
-
* @param {Normalization} [opts.normalization='relative'] - Probability normalization mode.
|
|
270
|
-
*/
|
|
271
|
-
constructor(opts?: {
|
|
272
|
-
rng?: RngGenerator | null | undefined;
|
|
273
|
-
seed?: number | null | undefined;
|
|
274
|
-
normalization?: Normalization | undefined;
|
|
275
|
-
});
|
|
220
|
+
declare class TinyAdvancedRaffle extends EventEmitter {
|
|
221
|
+
#private;
|
|
276
222
|
/**
|
|
277
223
|
* Indicates whether this instance has been destroyed.
|
|
278
224
|
* @type {boolean}
|
|
@@ -289,6 +235,11 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
289
235
|
* @returns {number} Total count of items.
|
|
290
236
|
*/
|
|
291
237
|
get size(): number;
|
|
238
|
+
/**
|
|
239
|
+
* Gets the current probability normalization strategy.
|
|
240
|
+
* @returns {Normalization} Current normalization mode.
|
|
241
|
+
*/
|
|
242
|
+
get normalization(): Normalization;
|
|
292
243
|
/**
|
|
293
244
|
* Sets the probability normalization strategy.
|
|
294
245
|
* @param {Normalization} value - Accepted values: `'relative'` or `'softmax'`.
|
|
@@ -296,10 +247,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
296
247
|
*/
|
|
297
248
|
set normalization(value: Normalization);
|
|
298
249
|
/**
|
|
299
|
-
* Gets the current
|
|
300
|
-
* @returns {
|
|
250
|
+
* Gets the current RNG seed value, if any.
|
|
251
|
+
* @returns {number|null} Current seed or `null` if RNG is not seeded.
|
|
301
252
|
*/
|
|
302
|
-
get
|
|
253
|
+
get seed(): number | null;
|
|
303
254
|
/**
|
|
304
255
|
* Sets the RNG seed for deterministic randomization.
|
|
305
256
|
* @param {number|null} value - Finite number or `null` to disable seeding.
|
|
@@ -307,10 +258,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
307
258
|
*/
|
|
308
259
|
set seed(value: number | null);
|
|
309
260
|
/**
|
|
310
|
-
* Gets
|
|
311
|
-
* @returns {
|
|
261
|
+
* Gets all global weight modifier callbacks.
|
|
262
|
+
* @returns {WeightsCallback[]} Array of registered global modifier functions.
|
|
312
263
|
*/
|
|
313
|
-
get
|
|
264
|
+
get globalModifiers(): WeightsCallback[];
|
|
314
265
|
/**
|
|
315
266
|
* Replaces all global weight modifier callbacks.
|
|
316
267
|
* @param {WeightsCallback[]} value - Array of modifier functions.
|
|
@@ -318,10 +269,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
318
269
|
*/
|
|
319
270
|
set globalModifiers(value: WeightsCallback[]);
|
|
320
271
|
/**
|
|
321
|
-
* Gets all
|
|
322
|
-
* @returns {
|
|
272
|
+
* Gets all temporary modifiers with usage counters.
|
|
273
|
+
* @returns {TempModifier[]} Array of temporary modifier entries.
|
|
323
274
|
*/
|
|
324
|
-
get
|
|
275
|
+
get temporaryModifiers(): TempModifier[];
|
|
325
276
|
/**
|
|
326
277
|
* Replaces all temporary modifiers.
|
|
327
278
|
* @param {TempModifier[]} value - Each object must have a function and a positive integer usage count.
|
|
@@ -329,10 +280,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
329
280
|
*/
|
|
330
281
|
set temporaryModifiers(value: TempModifier[]);
|
|
331
282
|
/**
|
|
332
|
-
* Gets all
|
|
333
|
-
* @returns {
|
|
283
|
+
* Gets all conditional rule callbacks.
|
|
284
|
+
* @returns {WeightsCallback[]} Array of conditional rule functions.
|
|
334
285
|
*/
|
|
335
|
-
get
|
|
286
|
+
get conditionalRules(): WeightsCallback[];
|
|
336
287
|
/**
|
|
337
288
|
* Replaces all conditional rule callbacks.
|
|
338
289
|
* @param {WeightsCallback[]} value - Array of functions.
|
|
@@ -340,10 +291,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
340
291
|
*/
|
|
341
292
|
set conditionalRules(value: WeightsCallback[]);
|
|
342
293
|
/**
|
|
343
|
-
* Gets all
|
|
344
|
-
* @returns {
|
|
294
|
+
* Gets a shallow copy of all configured pity systems.
|
|
295
|
+
* @returns {Record<string, Pity>} Object keyed by system name.
|
|
345
296
|
*/
|
|
346
|
-
get
|
|
297
|
+
get pitySystems(): Record<string, Pity>;
|
|
347
298
|
/**
|
|
348
299
|
* Replaces all pity systems.
|
|
349
300
|
* @param {Map<string, Pity>} value - Map of pity systems with numeric fields.
|
|
@@ -351,10 +302,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
351
302
|
*/
|
|
352
303
|
set pitySystems(value: Map<string, Pity>);
|
|
353
304
|
/**
|
|
354
|
-
* Gets a
|
|
355
|
-
* @returns {
|
|
305
|
+
* Gets a copy of all exclusion IDs.
|
|
306
|
+
* @returns {string[]} Array of item IDs excluded from draws.
|
|
356
307
|
*/
|
|
357
|
-
get
|
|
308
|
+
get exclusions(): string[];
|
|
358
309
|
/**
|
|
359
310
|
* Replaces all exclusion IDs.
|
|
360
311
|
* @param {Set<string>} value - Set of excluded item IDs.
|
|
@@ -362,10 +313,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
362
313
|
*/
|
|
363
314
|
set exclusions(value: Set<string>);
|
|
364
315
|
/**
|
|
365
|
-
* Gets
|
|
366
|
-
* @returns {string[]}
|
|
316
|
+
* Gets all group definitions.
|
|
317
|
+
* @returns {Record<string, string[]>} Object where each key is a group name and value is an array of item IDs.
|
|
367
318
|
*/
|
|
368
|
-
get
|
|
319
|
+
get groups(): Record<string, string[]>;
|
|
369
320
|
/**
|
|
370
321
|
* Replaces all group definitions.
|
|
371
322
|
* @param {Map<string, Set<string>>} value - Map of group names to item ID sets.
|
|
@@ -373,10 +324,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
373
324
|
*/
|
|
374
325
|
set groups(value: Map<string, Set<string>>);
|
|
375
326
|
/**
|
|
376
|
-
* Gets
|
|
377
|
-
* @returns {
|
|
327
|
+
* Gets the current RNG function.
|
|
328
|
+
* @returns {RngGenerator} Function returning a floating-point number in [0, 1).
|
|
378
329
|
*/
|
|
379
|
-
get
|
|
330
|
+
get rng(): RngGenerator;
|
|
380
331
|
/**
|
|
381
332
|
* Sets the RNG function.
|
|
382
333
|
* @param {RngGenerator} value - Function returning a number between 0 and 1.
|
|
@@ -384,10 +335,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
384
335
|
*/
|
|
385
336
|
set rng(value: RngGenerator);
|
|
386
337
|
/**
|
|
387
|
-
* Gets
|
|
388
|
-
* @returns {
|
|
338
|
+
* Gets all item definitions with group names expanded to arrays.
|
|
339
|
+
* @returns {Record<string, ItemDataGetter>} Object keyed by item ID.
|
|
389
340
|
*/
|
|
390
|
-
get
|
|
341
|
+
get items(): Record<string, ItemDataGetter>;
|
|
391
342
|
/**
|
|
392
343
|
* Replaces all items (**and CLEAR OLD LIST**).
|
|
393
344
|
* @param {Map<string, ItemData>} value - Map of item IDs to definitions.
|
|
@@ -395,16 +346,17 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
395
346
|
*/
|
|
396
347
|
set items(value: Map<string, ItemData>);
|
|
397
348
|
/**
|
|
398
|
-
*
|
|
399
|
-
* @
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
* Checks if the instance has been destroyed and throws an error if so.
|
|
404
|
-
* @private
|
|
405
|
-
* @throws {Error} If the instance has already been destroyed.
|
|
349
|
+
* Creates a new AdvancedRaffle instance.
|
|
350
|
+
* @param {Object} [opts] - Optional configuration.
|
|
351
|
+
* @param {RngGenerator|null} [opts.rng=null] - Custom RNG function. If null, an internal seeded RNG is used when a seed is provided.
|
|
352
|
+
* @param {number|null} [opts.seed=null] - Optional seed for deterministic results.
|
|
353
|
+
* @param {Normalization} [opts.normalization='relative'] - Probability normalization mode.
|
|
406
354
|
*/
|
|
407
|
-
|
|
355
|
+
constructor(opts?: {
|
|
356
|
+
rng?: RngGenerator | null;
|
|
357
|
+
seed?: number | null;
|
|
358
|
+
normalization?: Normalization;
|
|
359
|
+
});
|
|
408
360
|
/**
|
|
409
361
|
* Check if an item exists in the system.
|
|
410
362
|
* @param {string} itemId - Item ID to check.
|
|
@@ -424,10 +376,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
424
376
|
* @throws {TypeError} If any parameter has an invalid type.
|
|
425
377
|
*/
|
|
426
378
|
addItem(id: string, opts?: {
|
|
427
|
-
weight?: number
|
|
428
|
-
label?: string
|
|
429
|
-
meta?: ItemMetadata
|
|
430
|
-
groups?: string[] | Set<string
|
|
379
|
+
weight?: number;
|
|
380
|
+
label?: string;
|
|
381
|
+
meta?: ItemMetadata;
|
|
382
|
+
groups?: string[] | Set<string>;
|
|
431
383
|
}): ItemData;
|
|
432
384
|
/**
|
|
433
385
|
* Remove an item from the system.
|
|
@@ -548,7 +500,7 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
548
500
|
configurePity(itemId: string, cfg: {
|
|
549
501
|
threshold: number;
|
|
550
502
|
increment: number;
|
|
551
|
-
cap?: number
|
|
503
|
+
cap?: number;
|
|
552
504
|
}): void;
|
|
553
505
|
/**
|
|
554
506
|
* Reset pity counters for a given item.
|
|
@@ -642,13 +594,9 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
642
594
|
* @param {Map<string, number>} weights - Map of item IDs to their weights.
|
|
643
595
|
* @returns {Array<{id: string, weight: number, p: number, cumulative: number}>} Distribution array.
|
|
644
596
|
* @throws {TypeError} If `weights` is not a Map.
|
|
597
|
+
* @private
|
|
645
598
|
*/
|
|
646
|
-
_weightsToDistribution
|
|
647
|
-
id: string;
|
|
648
|
-
weight: number;
|
|
649
|
-
p: number;
|
|
650
|
-
cumulative: number;
|
|
651
|
-
}>;
|
|
599
|
+
private _weightsToDistribution;
|
|
652
600
|
/**
|
|
653
601
|
* Draw a single item from the raffle using current configuration.
|
|
654
602
|
* Uses previous draws and metadata to influence conditional rules and pity.
|
|
@@ -660,8 +608,8 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
660
608
|
* @throws {TypeError} If `opts` is not an object.
|
|
661
609
|
*/
|
|
662
610
|
drawOne(opts?: {
|
|
663
|
-
previousDraws?: DrawOne[]
|
|
664
|
-
metadata?: ItemMetadata
|
|
611
|
+
previousDraws?: DrawOne[];
|
|
612
|
+
metadata?: ItemMetadata;
|
|
665
613
|
}): DrawOne | null;
|
|
666
614
|
/**
|
|
667
615
|
* Internal helper to decrement usage counts of temporary modifiers,
|
|
@@ -683,10 +631,10 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
683
631
|
* @throws {TypeError} If `opts` is not an object.
|
|
684
632
|
*/
|
|
685
633
|
drawMany(count?: number, opts?: {
|
|
686
|
-
metadata?: ItemMetadata
|
|
687
|
-
withReplacement?: boolean
|
|
688
|
-
ensureUnique?: boolean
|
|
689
|
-
previousDraws?: DrawOne[]
|
|
634
|
+
metadata?: ItemMetadata;
|
|
635
|
+
withReplacement?: boolean;
|
|
636
|
+
ensureUnique?: boolean;
|
|
637
|
+
previousDraws?: DrawOne[];
|
|
690
638
|
}): DrawOne[];
|
|
691
639
|
/**
|
|
692
640
|
* Export the current configuration to a JSON-serializable object.
|
|
@@ -718,15 +666,15 @@ declare class TinyAdvancedRaffle extends EventEmitter<any> {
|
|
|
718
666
|
* @param {number} seed - Seed value for PRNG (integer).
|
|
719
667
|
* @returns {RngGenerator} A function that returns a pseudo-random number in [0, 1).
|
|
720
668
|
* @throws {TypeError} If `seed` is not a finite number.
|
|
669
|
+
* @private
|
|
721
670
|
*/
|
|
722
|
-
_makeSeededRng
|
|
671
|
+
private _makeSeededRng;
|
|
723
672
|
/**
|
|
724
673
|
* Completely destroys the raffle instance, clearing all data,
|
|
725
674
|
* releasing references, and making the object unusable.
|
|
726
675
|
* Once destroyed, any further method calls will throw errors.
|
|
727
676
|
*/
|
|
728
677
|
destroy(): void;
|
|
729
|
-
#private;
|
|
730
678
|
}
|
|
731
|
-
|
|
679
|
+
export default TinyAdvancedRaffle;
|
|
732
680
|
//# sourceMappingURL=TinyAdvancedRaffle.d.mts.map
|