tiny-essentials 1.28.0 → 1.28.1

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 (168) hide show
  1. package/changelog/1/28/1.md +23 -0
  2. package/dist/v1/TinyAdvancedRaffle.min.js +1 -1
  3. package/dist/v1/TinyAfterScrollWatcher.min.js +1 -1
  4. package/dist/v1/TinyAnalogClock.min.js +1 -1
  5. package/dist/v1/TinyBasicsEs.min.js +1 -1
  6. package/dist/v1/TinyDayNightCycle.min.js +1 -1
  7. package/dist/v1/TinyDragDropDetector.min.js +1 -1
  8. package/dist/v1/TinyDragger.min.js +1 -1
  9. package/dist/v1/TinyElementObserver.min.js +1 -1
  10. package/dist/v1/TinyEssentials.min.js +1 -1
  11. package/dist/v1/TinyGamepad.min.js +1 -1
  12. package/dist/v1/TinyHtml.min.js +1 -1
  13. package/dist/v1/TinyI18.min.js +1 -1
  14. package/dist/v1/TinyIframeEvents.min.js +1 -1
  15. package/dist/v1/TinyLocalStorage.min.js +1 -1
  16. package/dist/v1/TinyMediaPlayer.min.js +1 -1
  17. package/dist/v1/TinyNewWinEvents.min.js +1 -1
  18. package/dist/v1/TinyNotifyCenter.min.js +1 -1
  19. package/dist/v1/TinyRadioFm.min.js +1 -1
  20. package/dist/v1/TinyRateLimiter.min.js +1 -1
  21. package/dist/v1/TinySmartScroller.min.js +1 -1
  22. package/dist/v1/TinyTextDiffer.min.js +1 -1
  23. package/dist/v1/TinyTextarea.min.js +1 -1
  24. package/dist/v1/TinyTimeout.min.js +1 -1
  25. package/dist/v1/TinyToastNotify.min.js +1 -1
  26. package/dist/v1/TinyUploadClicker.min.js +1 -1
  27. package/dist/v1/UltraRandomMsgGen.min.js +1 -1
  28. package/dist/v1/basics/array.cjs +57 -9
  29. package/dist/v1/basics/array.d.mts +27 -11
  30. package/dist/v1/basics/array.mjs +51 -9
  31. package/dist/v1/basics/clock.cjs +94 -42
  32. package/dist/v1/basics/clock.d.mts +10 -10
  33. package/dist/v1/basics/clock.mjs +91 -54
  34. package/dist/v1/basics/deprecated/html.cjs +246 -0
  35. package/dist/v1/basics/deprecated/html.d.mts +63 -0
  36. package/dist/v1/basics/deprecated/html.mjs +190 -0
  37. package/dist/v1/basics/html.cjs +149 -130
  38. package/dist/v1/basics/html.d.mts +26 -61
  39. package/dist/v1/basics/html.mjs +113 -105
  40. package/dist/v1/basics/index.cjs +2 -0
  41. package/dist/v1/basics/index.d.mts +3 -1
  42. package/dist/v1/basics/index.mjs +3 -3
  43. package/dist/v1/basics/mediaContent.cjs +51 -9
  44. package/dist/v1/basics/mediaContent.d.mts +0 -87
  45. package/dist/v1/basics/mediaContent.mjs +40 -10
  46. package/dist/v1/basics/objChecker.cjs +7 -5
  47. package/dist/v1/basics/objChecker.d.mts +3 -2
  48. package/dist/v1/basics/objChecker.mjs +6 -6
  49. package/dist/v1/basics/objFilter.cjs +40 -7
  50. package/dist/v1/basics/objFilter.d.mts +6 -6
  51. package/dist/v1/basics/objFilter.mjs +32 -7
  52. package/dist/v1/basics/simpleMath.cjs +81 -25
  53. package/dist/v1/basics/simpleMath.d.mts +2 -2
  54. package/dist/v1/basics/simpleMath.mjs +70 -27
  55. package/dist/v1/basics/text.cjs +76 -31
  56. package/dist/v1/basics/text.d.mts +69 -7
  57. package/dist/v1/basics/text.mjs +62 -31
  58. package/dist/v1/index.cjs +4 -0
  59. package/dist/v1/index.d.mts +4 -1
  60. package/dist/v1/index.mjs +4 -3
  61. package/dist/v1/libs/TinyAdvancedRaffle.cjs +64 -50
  62. package/dist/v1/libs/TinyAdvancedRaffle.d.mts +4 -13
  63. package/dist/v1/libs/TinyAdvancedRaffle.mjs +62 -49
  64. package/dist/v1/libs/TinyAfterScrollWatcher.cjs +17 -1
  65. package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +4 -1
  66. package/dist/v1/libs/TinyAfterScrollWatcher.mjs +15 -1
  67. package/dist/v1/libs/TinyAnalogClock.cjs +60 -0
  68. package/dist/v1/libs/TinyAnalogClock.d.mts +6 -0
  69. package/dist/v1/libs/TinyAnalogClock.mjs +57 -0
  70. package/dist/v1/libs/TinyClipboard.cjs +2 -0
  71. package/dist/v1/libs/TinyClipboard.d.mts +4 -2
  72. package/dist/v1/libs/TinyClipboard.mjs +2 -0
  73. package/dist/v1/libs/TinyColorConverter.cjs +1 -0
  74. package/dist/v1/libs/TinyColorConverter.d.mts +2 -1
  75. package/dist/v1/libs/TinyColorConverter.mjs +1 -0
  76. package/dist/v1/libs/TinyDayNightCycle.cjs +67 -42
  77. package/dist/v1/libs/TinyDayNightCycle.d.mts +2 -7
  78. package/dist/v1/libs/TinyDayNightCycle.mjs +65 -41
  79. package/dist/v1/libs/TinyDragDropDetector.cjs +25 -0
  80. package/dist/v1/libs/TinyDragDropDetector.d.mts +6 -0
  81. package/dist/v1/libs/TinyDragDropDetector.mjs +22 -0
  82. package/dist/v1/libs/TinyDragger.cjs +46 -19
  83. package/dist/v1/libs/TinyDragger.mjs +45 -18
  84. package/dist/v1/libs/TinyElementObserver.cjs +39 -0
  85. package/dist/v1/libs/TinyElementObserver.d.mts +6 -0
  86. package/dist/v1/libs/TinyElementObserver.mjs +36 -0
  87. package/dist/v1/libs/TinyGamepad.cjs +131 -1
  88. package/dist/v1/libs/TinyGamepad.mjs +129 -1
  89. package/dist/v1/libs/TinyHtml.cjs +1 -1
  90. package/dist/v1/libs/TinyHtml.mjs +2 -2
  91. package/dist/v1/libs/TinyI18.cjs +61 -0
  92. package/dist/v1/libs/TinyI18.d.mts +14 -0
  93. package/dist/v1/libs/TinyI18.mjs +55 -0
  94. package/dist/v1/libs/TinyIframeEvents.cjs +18 -1
  95. package/dist/v1/libs/TinyIframeEvents.mjs +18 -1
  96. package/dist/v1/libs/TinyLocalStorage.cjs +48 -0
  97. package/dist/v1/libs/TinyLocalStorage.d.mts +6 -0
  98. package/dist/v1/libs/TinyLocalStorage.mjs +45 -0
  99. package/dist/v1/libs/TinyMediaPlayer.cjs +72 -0
  100. package/dist/v1/libs/TinyMediaPlayer.d.mts +10 -0
  101. package/dist/v1/libs/TinyMediaPlayer.mjs +66 -0
  102. package/dist/v1/libs/TinyNewWinEvents.cjs +29 -0
  103. package/dist/v1/libs/TinyNewWinEvents.d.mts +6 -0
  104. package/dist/v1/libs/TinyNewWinEvents.mjs +26 -0
  105. package/dist/v1/libs/TinyNotifyCenter.cjs +36 -0
  106. package/dist/v1/libs/TinyNotifyCenter.d.mts +6 -0
  107. package/dist/v1/libs/TinyNotifyCenter.mjs +32 -0
  108. package/dist/v1/libs/TinyRadioFm.cjs +38 -0
  109. package/dist/v1/libs/TinyRadioFm.d.mts +1 -0
  110. package/dist/v1/libs/TinyRadioFm.mjs +35 -0
  111. package/dist/v1/libs/TinyRateLimiter.cjs +52 -0
  112. package/dist/v1/libs/TinyRateLimiter.d.mts +6 -0
  113. package/dist/v1/libs/TinyRateLimiter.mjs +48 -0
  114. package/dist/v1/libs/TinySmartScroller.cjs +52 -3
  115. package/dist/v1/libs/TinySmartScroller.d.mts +17 -15
  116. package/dist/v1/libs/TinySmartScroller.mjs +51 -5
  117. package/dist/v1/libs/TinyTextDiffer.cjs +19 -18
  118. package/dist/v1/libs/TinyTextDiffer.d.mts +1 -0
  119. package/dist/v1/libs/TinyTextDiffer.mjs +16 -17
  120. package/dist/v1/libs/TinyTextarea.cjs +19 -0
  121. package/dist/v1/libs/TinyTextarea.d.mts +6 -0
  122. package/dist/v1/libs/TinyTextarea.mjs +17 -0
  123. package/dist/v1/libs/TinyTimeout.cjs +11 -1
  124. package/dist/v1/libs/TinyTimeout.mjs +9 -1
  125. package/dist/v1/libs/TinyToastNotify.cjs +35 -0
  126. package/dist/v1/libs/TinyToastNotify.d.mts +6 -0
  127. package/dist/v1/libs/TinyToastNotify.mjs +31 -0
  128. package/dist/v1/libs/TinyUploadClicker.cjs +19 -0
  129. package/dist/v1/libs/TinyUploadClicker.d.mts +6 -0
  130. package/dist/v1/libs/TinyUploadClicker.mjs +17 -0
  131. package/dist/v1/libs/UltraRandomMsgGen.cjs +148 -35
  132. package/dist/v1/libs/UltraRandomMsgGen.d.mts +17 -3
  133. package/dist/v1/libs/UltraRandomMsgGen.mjs +133 -34
  134. package/dist/v1/libs/utils.cjs +21 -0
  135. package/dist/v1/libs/utils.d.mts +2 -0
  136. package/dist/v1/libs/utils.mjs +16 -0
  137. package/docs/v1/README.md +1 -0
  138. package/docs/v1/basics/array.md +2 -2
  139. package/docs/v1/basics/deprecated/html.md +17 -0
  140. package/docs/v1/basics/fullScreen.md +1 -1
  141. package/docs/v1/basics/html.md +12 -26
  142. package/docs/v1/basics/mediaContent.md +1 -1
  143. package/docs/v1/basics/objChecker.md +1 -1
  144. package/docs/v1/basics/text.md +2 -2
  145. package/docs/v1/fileManager/main.md +1 -1
  146. package/docs/v1/libs/ColorSafeStringify.md +1 -1
  147. package/docs/v1/libs/TinyAfterScrollWatcher.md +1 -1
  148. package/docs/v1/libs/TinyAnalogClock.md +1 -1
  149. package/docs/v1/libs/TinyArrayComparator.md +1 -1
  150. package/docs/v1/libs/TinyArrayPaginator.md +1 -1
  151. package/docs/v1/libs/TinyClassManager/TinyPluginInliner.md +2 -2
  152. package/docs/v1/libs/TinyClassManager.md +1 -1
  153. package/docs/v1/libs/TinyClipboard.md +1 -1
  154. package/docs/v1/libs/TinyCookieConsent.md +1 -1
  155. package/docs/v1/libs/TinyDomReadyManager.md +1 -1
  156. package/docs/v1/libs/TinyDragDropDetector.md +1 -1
  157. package/docs/v1/libs/TinyDragger.md +1 -1
  158. package/docs/v1/libs/TinyElementObserver.md +1 -1
  159. package/docs/v1/libs/TinyHtml.md +1 -1
  160. package/docs/v1/libs/TinyIframeEvents.md +2 -2
  161. package/docs/v1/libs/TinyLevelUp.md +1 -1
  162. package/docs/v1/libs/TinyLoadingScreen.md +1 -1
  163. package/docs/v1/libs/TinyNewWinEvents.md +2 -2
  164. package/docs/v1/libs/TinyNotifications.md +1 -1
  165. package/docs/v1/libs/TinyPromiseQueue.md +2 -2
  166. package/docs/v1/libs/TinyTextDiffer.md +1 -1
  167. package/docs/v1/libs/TinyTextarea.md +1 -1
  168. package/package.json +10 -1
@@ -4,15 +4,24 @@
4
4
  * @param {string} str - The input string to perform replacements on.
5
5
  * @param {RegExp} regex - The regular expression to match substrings for replacement.
6
6
  * @param {Function} asyncFn - An asynchronous function that returns a replacement for each match.
7
- * It receives the same arguments as a standard `replace` callback.
7
+ * It receives the same arguments as a standard `replace` callback.
8
8
  * @returns {Promise<string>} The resulting string with all async replacements applied.
9
9
  *
10
10
  * @example
11
11
  * await asyncReplace("Hello @user1 and @user2!", /@\w+/g, async (mention) => {
12
- * return await getUserNameFromMention(mention);
12
+ * return await getUserNameFromMention(mention);
13
13
  * });
14
14
  */
15
15
  export async function asyncReplace(str, regex, asyncFn) {
16
+ if (typeof str !== 'string') {
17
+ throw new TypeError(`Expected a string for 'str', but received ${typeof str}`);
18
+ }
19
+ if (!(regex instanceof RegExp)) {
20
+ throw new TypeError(`Expected a RegExp for 'regex', but received ${typeof regex}`);
21
+ }
22
+ if (typeof asyncFn !== 'function') {
23
+ throw new TypeError(`Expected a function for 'asyncFn', but received ${typeof asyncFn}`);
24
+ }
16
25
  /**
17
26
  * @type {any[]}
18
27
  */
@@ -36,6 +45,9 @@ export async function asyncReplace(str, regex, asyncFn) {
36
45
  * @returns {string} The string converted to title case.
37
46
  */
38
47
  export function toTitleCase(str) {
48
+ if (typeof str !== 'string') {
49
+ throw new TypeError(`Expected a string for 'str', but received ${typeof str}`);
50
+ }
39
51
  return str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
40
52
  }
41
53
  /**
@@ -48,6 +60,9 @@ export function toTitleCase(str) {
48
60
  * @returns {string} The string converted to title case with the first letter in lowercase.
49
61
  */
50
62
  export function toTitleCaseLowerFirst(str) {
63
+ if (typeof str !== 'string') {
64
+ throw new TypeError(`Expected a string for 'str', but received ${typeof str}`);
65
+ }
51
66
  const titleCased = str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
52
67
  return titleCased.charAt(0).toLowerCase() + titleCased.slice(1);
53
68
  }
@@ -87,6 +102,12 @@ export function toTitleCaseLowerFirst(str) {
87
102
  export function addAiMarkerShortcut({ key = 'a', className = 'detect-made-by-ai' } = {}) {
88
103
  if (typeof HTMLElement === 'undefined')
89
104
  throw new Error('[AiMarkerShortcut] Environment does not support the DOM. This function must be run in a browser.');
105
+ if (typeof key !== 'string') {
106
+ throw new TypeError(`Expected a string for 'config.key', but received ${typeof key}`);
107
+ }
108
+ if (typeof className !== 'string') {
109
+ throw new TypeError(`Expected a string for 'config.className', but received ${typeof className}`);
110
+ }
90
111
  /** @type {(this: Document, ev: KeyboardEvent) => any} */
91
112
  const keydownEvent = function (event) {
92
113
  if (event.ctrlKey && event.altKey && event.key.toLowerCase() === key) {
@@ -110,7 +131,7 @@ export function addAiMarkerShortcut({ key = 'a', className = 'detect-made-by-ai'
110
131
  * @param {string} text - The input text to be trimmed.
111
132
  * @param {number} limit - The maximum number of characters allowed.
112
133
  * @param {number} [safeCutZone=0.6] - A decimal between 0 and 1 representing the minimal acceptable position
113
- * (as a fraction of `limit`) to cut at a space. Defaults to 0.6.
134
+ * (as a fraction of `limit`) to cut at a space. Defaults to 0.6.
114
135
  * @returns {string} - The trimmed text, possibly ending with an ellipsis ("...").
115
136
  * @throws {TypeError} - Throws if `text` is not a string.
116
137
  * @throws {TypeError} - Throws if `limit` is not a positive integer.
@@ -139,17 +160,40 @@ export function safeTextTrim(text, limit, safeCutZone = 0.6) {
139
160
  return result;
140
161
  }
141
162
  /**
142
- * Diff two string objects.
143
- * @param {Record<string,string>} oldStrings
144
- * @param {Record<string,string>} newStrings
163
+ * @template {Record<string, any>} CompareValue
164
+ * @typedef {Object} DiffStringsModifiedValue
165
+ * @property {CompareValue[keyof CompareValue]} old - The value before the modification.
166
+ * @property {CompareValue[keyof CompareValue]} new - The new value after the modification.
167
+ */
168
+ /**
169
+ * @template {Record<string, any>} CompareValue
170
+ * @typedef {Object} DiffStringsData
171
+ * @property {Partial<CompareValue>} added - Properties that only exist in the new object.
172
+ * @property {Partial<CompareValue>} removed - Properties that only existed in the old object.
173
+ * @property {Partial<Record<keyof CompareValue, DiffStringsModifiedValue<CompareValue>>>} modified - Properties that changed, containing their old and new values.
145
174
  */
146
- export function diffStrings(oldStrings, newStrings) {
147
- /** @type {Record<string,Record<string,string|Record<string,string>>>}} */
175
+ /**
176
+ * Diff two objects.
177
+ * @template {Record<string, any>} CompareValue1
178
+ * @template {Record<string, any>} CompareValue2
179
+ * @param {CompareValue1} oldStrings - The original/old object for comparison.
180
+ * @param {CompareValue2} newStrings - The new object for comparison.
181
+ * @returns {DiffStringsData<CompareValue1 & CompareValue2>} An object containing what was added, removed, and modified.
182
+ */
183
+ export function diffObjList(oldStrings, newStrings) {
184
+ if (typeof oldStrings !== 'object' || oldStrings === null || Array.isArray(oldStrings)) {
185
+ throw new TypeError(`Expected an object for 'oldStrings', but received ${oldStrings === null ? 'null' : typeof oldStrings}`);
186
+ }
187
+ if (typeof newStrings !== 'object' || newStrings === null || Array.isArray(newStrings)) {
188
+ throw new TypeError(`Expected an object for 'newStrings', but received ${newStrings === null ? 'null' : typeof newStrings}`);
189
+ }
190
+ /** @type {DiffStringsData<CompareValue1 & CompareValue2>} */
148
191
  const changes = { added: {}, removed: {}, modified: {} };
149
192
  // detect removed and modified
150
193
  for (const prop in oldStrings) {
151
194
  if (!(prop in newStrings)) {
152
195
  changes.removed[prop] = oldStrings[prop];
196
+ // @ts-ignore
153
197
  }
154
198
  else if (oldStrings[prop] !== newStrings[prop]) {
155
199
  changes.modified[prop] = { old: oldStrings[prop], new: newStrings[prop] };
@@ -163,26 +207,13 @@ export function diffStrings(oldStrings, newStrings) {
163
207
  }
164
208
  return changes;
165
209
  }
166
- /*
167
- import { useEffect } from "react";
168
-
169
- function KeyPressHandler() {
170
- useEffect(() => {
171
- const handleKeyDown = (event) => {
172
- if (event.ctrlKey && event.altKey && event.key.toLowerCase() === "a") {
173
- event.preventDefault();
174
- document.body.classList.toggle("detect-made-by-ai");
175
- }
176
- };
177
-
178
- document.addEventListener("keydown", handleKeyDown);
179
- return () => {
180
- document.removeEventListener("keydown", handleKeyDown);
181
- };
182
- }, []);
183
-
184
- return null;
185
- }
186
-
187
- export default KeyPressHandler;
188
- */
210
+ /**
211
+ * Diff two objects.
212
+ * @template {Record<string, any>} CompareValue1
213
+ * @template {Record<string, any>} CompareValue2
214
+ * @param {CompareValue1} oldStrings - The original/old object for comparison.
215
+ * @param {CompareValue2} newStrings - The new object for comparison.
216
+ * @returns {DiffStringsData<CompareValue1 & CompareValue2>} An object containing what was added, removed, and modified.
217
+ * @deprecated Function rename! Use {@link diffObjList} instead.
218
+ */
219
+ export const diffStrings = diffObjList;
package/dist/v1/index.cjs CHANGED
@@ -54,12 +54,14 @@ var TinyMamdaniInferenceSystem = require('./libs/TinyMamdaniInferenceSystem.cjs'
54
54
  var TinyClassManager = require('./libs/TinyClassManager.cjs');
55
55
  var TinyRadioFm = require('./libs/TinyRadioFm.cjs');
56
56
  var TinyMediaPlayer = require('./libs/TinyMediaPlayer.cjs');
57
+ var utils = require('./libs/utils.cjs');
57
58
 
58
59
 
59
60
 
60
61
  exports.TinyLevelUp = TinyLevelUp;
61
62
  exports.arraySortPositions = array.arraySortPositions;
62
63
  exports.diffArrayList = array.diffArrayList;
64
+ exports.multiplyArrayBlocks = array.multiplyArrayBlocks;
63
65
  exports.shuffleArray = array.shuffleArray;
64
66
  exports.breakdownDuration = clock.breakdownDuration;
65
67
  exports.formatCustomTimer = clock.formatCustomTimer;
@@ -90,6 +92,7 @@ exports.getSimplePerc = simpleMath.getSimplePerc;
90
92
  exports.ruleOfThree = simpleMath.ruleOfThree;
91
93
  exports.addAiMarkerShortcut = text.addAiMarkerShortcut;
92
94
  exports.asyncReplace = text.asyncReplace;
95
+ exports.diffObjList = text.diffObjList;
93
96
  exports.diffStrings = text.diffStrings;
94
97
  exports.safeTextTrim = text.safeTextTrim;
95
98
  exports.toTitleCase = text.toTitleCase;
@@ -195,3 +198,4 @@ exports.trapezoid = TinyMamdaniInferenceSystem.trapezoid;
195
198
  exports.TinyClassManager = TinyClassManager;
196
199
  exports.TinyRadioFm = TinyRadioFm;
197
200
  exports.TinyMediaPlayer = TinyMediaPlayer;
201
+ exports.createCheckDestroyed = utils.createCheckDestroyed;
@@ -41,6 +41,8 @@ import TinyRateLimiter from './libs/TinyRateLimiter.mjs';
41
41
  import ColorSafeStringify from './libs/ColorSafeStringify.mjs';
42
42
  import TinyPromiseQueue from './libs/TinyPromiseQueue.mjs';
43
43
  import TinyLevelUp from './libs/TinyLevelUp.mjs';
44
+ import { multiplyArrayBlocks } from './basics/array.mjs';
45
+ import { createCheckDestroyed } from './libs/utils.mjs';
44
46
  import { valMediaContentMetadata } from './basics/mediaContent.mjs';
45
47
  import { valMediaContentMetadataPartial } from './basics/mediaContent.mjs';
46
48
  import { parseMediaMetadata } from './basics/mediaContent.mjs';
@@ -49,6 +51,7 @@ import { defuzzifyCentroid } from './libs/TinyMamdaniInferenceSystem.mjs';
49
51
  import { trapezoid } from './libs/TinyMamdaniInferenceSystem.mjs';
50
52
  import { diffArrayList } from './basics/array.mjs';
51
53
  import { diffStrings } from './basics/text.mjs';
54
+ import { diffObjList } from './basics/text.mjs';
52
55
  import { breakdownDuration } from './basics/clock.mjs';
53
56
  import { calculateMarketcap } from './basics/simpleMath.mjs';
54
57
  import { compareMarketcap } from './basics/simpleMath.mjs';
@@ -136,5 +139,5 @@ import { getTimeDuration } from './basics/clock.mjs';
136
139
  import { shuffleArray } from './basics/array.mjs';
137
140
  import { toTitleCase } from './basics/text.mjs';
138
141
  import { toTitleCaseLowerFirst } from './basics/text.mjs';
139
- export { TinyMediaPlayer, TinyRadioFm, TinyClassManager, FuzzySet, MamdaniInferenceSystem, TinyArrayComparator, TinyTextDiffer, TinyAnalogClock, TinyColorValidator, TinyLoadingScreen, TinyElementObserver, TinySimpleDice, TinyNeedBar, TinyI18, TinyCookieConsent, TinyInventory, TinyInventoryTrader, TinyArrayPaginator, TinyAdvancedRaffle, TinyDayNightCycle, TinyGamepad, TinyTextarea, TinyNewWinEvents, TinyIframeEvents, TinyLocalStorage, TinyTimeout, TinyColorConverter, TinyClipboard, TinyTextRangeEditor, TinySmartScroller, UltraRandomMsgGen, TinyAfterScrollWatcher, TinyHtml, TinyNotifications, TinyDomReadyManager, TinyDragger, TinyDragDropDetector, TinyToastNotify, TinyNotifyCenter, TinyRateLimiter, ColorSafeStringify, TinyPromiseQueue, TinyLevelUp, valMediaContentMetadata, valMediaContentMetadataPartial, parseMediaMetadata, extractMediaId3Tags, defuzzifyCentroid, trapezoid, diffArrayList, diffStrings, breakdownDuration, calculateMarketcap, compareMarketcap, getPercentage, areElsCollTop, areElsCollBottom, areElsCollLeft, areElsCollRight, areElsCollPerfTop, areElsCollPerfBottom, areElsCollPerfLeft, areElsCollPerfRight, areElsColliding, areElsPerfColliding, getElsColliding, getElsPerfColliding, getElsCollOverlap, getElsCollOverlapPos, getRectCenter, getElsRelativeCenterOffset, getElsCollDirDepth, getElsCollDetails, safeTextTrim, installWindowHiddenScript, genFibonacciSeq, isDirEmptyAsync, fileSizeAsync, dirSizeAsync, listFilesAsync, listDirsAsync, getLatestBackupPath, fetchJson, fetchText, readJsonBlob, readFileBlob, readBase64Blob, saveJsonFile, readJsonFile, writeJsonFile, ensureDirectory, clearDirectoryAsync, clearDirectory, fileExists, dirExists, isDirEmpty, ensureCopyFile, tryDeleteFile, writeTextFile, listFiles, listDirs, fileSize, dirSize, backupFile, restoreLatestBackup, renameFileBatch, renameFileRegex, renameFileAddPrefixSuffix, renameFileNormalizeCase, renameFilePadNumbers, documentIsFullScreen, isScreenFilled, requestFullScreen, exitFullScreen, isFullScreenMode, onFullScreenChange, offFullScreenChange, isJsonObject, arraySortPositions, formatBytes, addAiMarkerShortcut, extendObjType, reorderObjTypeOrder, cloneObjTypeOrder, countObj, checkObj, objType, ruleOfThree, getSimplePerc, asyncReplace, getAge, formatCustomTimer, formatDayTimer, formatTimer, getTimeDuration, shuffleArray, toTitleCase, toTitleCaseLowerFirst };
142
+ export { TinyMediaPlayer, TinyRadioFm, TinyClassManager, FuzzySet, MamdaniInferenceSystem, TinyArrayComparator, TinyTextDiffer, TinyAnalogClock, TinyColorValidator, TinyLoadingScreen, TinyElementObserver, TinySimpleDice, TinyNeedBar, TinyI18, TinyCookieConsent, TinyInventory, TinyInventoryTrader, TinyArrayPaginator, TinyAdvancedRaffle, TinyDayNightCycle, TinyGamepad, TinyTextarea, TinyNewWinEvents, TinyIframeEvents, TinyLocalStorage, TinyTimeout, TinyColorConverter, TinyClipboard, TinyTextRangeEditor, TinySmartScroller, UltraRandomMsgGen, TinyAfterScrollWatcher, TinyHtml, TinyNotifications, TinyDomReadyManager, TinyDragger, TinyDragDropDetector, TinyToastNotify, TinyNotifyCenter, TinyRateLimiter, ColorSafeStringify, TinyPromiseQueue, TinyLevelUp, multiplyArrayBlocks, createCheckDestroyed, valMediaContentMetadata, valMediaContentMetadataPartial, parseMediaMetadata, extractMediaId3Tags, defuzzifyCentroid, trapezoid, diffArrayList, diffStrings, diffObjList, breakdownDuration, calculateMarketcap, compareMarketcap, getPercentage, areElsCollTop, areElsCollBottom, areElsCollLeft, areElsCollRight, areElsCollPerfTop, areElsCollPerfBottom, areElsCollPerfLeft, areElsCollPerfRight, areElsColliding, areElsPerfColliding, getElsColliding, getElsPerfColliding, getElsCollOverlap, getElsCollOverlapPos, getRectCenter, getElsRelativeCenterOffset, getElsCollDirDepth, getElsCollDetails, safeTextTrim, installWindowHiddenScript, genFibonacciSeq, isDirEmptyAsync, fileSizeAsync, dirSizeAsync, listFilesAsync, listDirsAsync, getLatestBackupPath, fetchJson, fetchText, readJsonBlob, readFileBlob, readBase64Blob, saveJsonFile, readJsonFile, writeJsonFile, ensureDirectory, clearDirectoryAsync, clearDirectory, fileExists, dirExists, isDirEmpty, ensureCopyFile, tryDeleteFile, writeTextFile, listFiles, listDirs, fileSize, dirSize, backupFile, restoreLatestBackup, renameFileBatch, renameFileRegex, renameFileAddPrefixSuffix, renameFileNormalizeCase, renameFilePadNumbers, documentIsFullScreen, isScreenFilled, requestFullScreen, exitFullScreen, isFullScreenMode, onFullScreenChange, offFullScreenChange, isJsonObject, arraySortPositions, formatBytes, addAiMarkerShortcut, extendObjType, reorderObjTypeOrder, cloneObjTypeOrder, countObj, checkObj, objType, ruleOfThree, getSimplePerc, asyncReplace, getAge, formatCustomTimer, formatDayTimer, formatTimer, getTimeDuration, shuffleArray, toTitleCase, toTitleCaseLowerFirst };
140
143
  //# sourceMappingURL=index.d.mts.map
package/dist/v1/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import TinyLevelUp from './libs/TinyLevelUp.mjs';
2
- import { diffArrayList, shuffleArray, arraySortPositions } from './basics/array.mjs';
2
+ import { diffArrayList, shuffleArray, arraySortPositions, multiplyArrayBlocks, } from './basics/array.mjs';
3
3
  import { breakdownDuration, formatCustomTimer, formatDayTimer, formatTimer, getTimeDuration, } from './basics/clock.mjs';
4
4
  import { extendObjType, reorderObjTypeOrder, cloneObjTypeOrder, objType, checkObj, } from './basics/objFilter.mjs';
5
5
  import { countObj, isJsonObject } from './basics/objChecker.mjs';
6
6
  import { documentIsFullScreen, isScreenFilled, requestFullScreen, exitFullScreen, isFullScreenMode, onFullScreenChange, offFullScreenChange, } from './basics/fullScreen.mjs';
7
7
  import { calculateMarketcap, compareMarketcap, formatBytes, genFibonacciSeq, getAge, getPercentage, getSimplePerc, ruleOfThree, } from './basics/simpleMath.mjs';
8
- import { addAiMarkerShortcut, diffStrings, safeTextTrim, toTitleCase, toTitleCaseLowerFirst, asyncReplace, } from './basics/text.mjs';
8
+ import { addAiMarkerShortcut, diffStrings, diffObjList, safeTextTrim, toTitleCase, toTitleCaseLowerFirst, asyncReplace, } from './basics/text.mjs';
9
9
  import ColorSafeStringify from './libs/ColorSafeStringify.mjs';
10
10
  import TinyPromiseQueue from './libs/TinyPromiseQueue.mjs';
11
11
  import TinyRateLimiter from './libs/TinyRateLimiter.mjs';
@@ -52,7 +52,8 @@ import { FuzzySet, MamdaniInferenceSystem, trapezoid, defuzzifyCentroid, } from
52
52
  import TinyClassManager from './libs/TinyClassManager.mjs';
53
53
  import TinyRadioFm from './libs/TinyRadioFm.mjs';
54
54
  import TinyMediaPlayer from './libs/TinyMediaPlayer.mjs';
55
+ import { createCheckDestroyed } from './libs/utils.mjs';
55
56
  // import TinyHtmlElems from './libs/TinyHtml/index.mjs';
56
57
  export { TinyMediaPlayer, TinyRadioFm, TinyClassManager, FuzzySet, MamdaniInferenceSystem, TinyArrayComparator, TinyTextDiffer, TinyAnalogClock,
57
58
  // TinyHtmlElems,
58
- TinyColorValidator, TinyLoadingScreen, TinyElementObserver, TinySimpleDice, TinyNeedBar, TinyI18, TinyCookieConsent, TinyInventory, TinyInventoryTrader, TinyArrayPaginator, TinyAdvancedRaffle, TinyDayNightCycle, TinyGamepad, TinyTextarea, TinyNewWinEvents, TinyIframeEvents, TinyLocalStorage, TinyTimeout, TinyColorConverter, TinyClipboard, TinyTextRangeEditor, TinySmartScroller, UltraRandomMsgGen, TinyAfterScrollWatcher, TinyHtml, TinyNotifications, TinyDomReadyManager, TinyDragger, TinyDragDropDetector, TinyToastNotify, TinyNotifyCenter, TinyRateLimiter, ColorSafeStringify, TinyPromiseQueue, TinyLevelUp, valMediaContentMetadata, valMediaContentMetadataPartial, parseMediaMetadata, extractMediaId3Tags, defuzzifyCentroid, trapezoid, diffArrayList, diffStrings, breakdownDuration, calculateMarketcap, compareMarketcap, getPercentage, areElsCollTop, areElsCollBottom, areElsCollLeft, areElsCollRight, areElsCollPerfTop, areElsCollPerfBottom, areElsCollPerfLeft, areElsCollPerfRight, areElsColliding, areElsPerfColliding, getElsColliding, getElsPerfColliding, getElsCollOverlap, getElsCollOverlapPos, getRectCenter, getElsRelativeCenterOffset, getElsCollDirDepth, getElsCollDetails, safeTextTrim, installWindowHiddenScript, genFibonacciSeq, isDirEmptyAsync, fileSizeAsync, dirSizeAsync, listFilesAsync, listDirsAsync, getLatestBackupPath, fetchJson, fetchText, readJsonBlob, readFileBlob, readBase64Blob, saveJsonFile, readJsonFile, writeJsonFile, ensureDirectory, clearDirectoryAsync, clearDirectory, fileExists, dirExists, isDirEmpty, ensureCopyFile, tryDeleteFile, writeTextFile, listFiles, listDirs, fileSize, dirSize, backupFile, restoreLatestBackup, renameFileBatch, renameFileRegex, renameFileAddPrefixSuffix, renameFileNormalizeCase, renameFilePadNumbers, documentIsFullScreen, isScreenFilled, requestFullScreen, exitFullScreen, isFullScreenMode, onFullScreenChange, offFullScreenChange, isJsonObject, arraySortPositions, formatBytes, addAiMarkerShortcut, extendObjType, reorderObjTypeOrder, cloneObjTypeOrder, countObj, checkObj, objType, ruleOfThree, getSimplePerc, asyncReplace, getAge, formatCustomTimer, formatDayTimer, formatTimer, getTimeDuration, shuffleArray, toTitleCase, toTitleCaseLowerFirst, };
59
+ TinyColorValidator, TinyLoadingScreen, TinyElementObserver, TinySimpleDice, TinyNeedBar, TinyI18, TinyCookieConsent, TinyInventory, TinyInventoryTrader, TinyArrayPaginator, TinyAdvancedRaffle, TinyDayNightCycle, TinyGamepad, TinyTextarea, TinyNewWinEvents, TinyIframeEvents, TinyLocalStorage, TinyTimeout, TinyColorConverter, TinyClipboard, TinyTextRangeEditor, TinySmartScroller, UltraRandomMsgGen, TinyAfterScrollWatcher, TinyHtml, TinyNotifications, TinyDomReadyManager, TinyDragger, TinyDragDropDetector, TinyToastNotify, TinyNotifyCenter, TinyRateLimiter, ColorSafeStringify, TinyPromiseQueue, TinyLevelUp, multiplyArrayBlocks, createCheckDestroyed, valMediaContentMetadata, valMediaContentMetadataPartial, parseMediaMetadata, extractMediaId3Tags, defuzzifyCentroid, trapezoid, diffArrayList, diffStrings, diffObjList, breakdownDuration, calculateMarketcap, compareMarketcap, getPercentage, areElsCollTop, areElsCollBottom, areElsCollLeft, areElsCollRight, areElsCollPerfTop, areElsCollPerfBottom, areElsCollPerfLeft, areElsCollPerfRight, areElsColliding, areElsPerfColliding, getElsColliding, getElsPerfColliding, getElsCollOverlap, getElsCollOverlapPos, getRectCenter, getElsRelativeCenterOffset, getElsCollDirDepth, getElsCollDetails, safeTextTrim, installWindowHiddenScript, genFibonacciSeq, isDirEmptyAsync, fileSizeAsync, dirSizeAsync, listFilesAsync, listDirsAsync, getLatestBackupPath, fetchJson, fetchText, readJsonBlob, readFileBlob, readBase64Blob, saveJsonFile, readJsonFile, writeJsonFile, ensureDirectory, clearDirectoryAsync, clearDirectory, fileExists, dirExists, isDirEmpty, ensureCopyFile, tryDeleteFile, writeTextFile, listFiles, listDirs, fileSize, dirSize, backupFile, restoreLatestBackup, renameFileBatch, renameFileRegex, renameFileAddPrefixSuffix, renameFileNormalizeCase, renameFilePadNumbers, documentIsFullScreen, isScreenFilled, requestFullScreen, exitFullScreen, isFullScreenMode, onFullScreenChange, offFullScreenChange, isJsonObject, arraySortPositions, formatBytes, addAiMarkerShortcut, extendObjType, reorderObjTypeOrder, cloneObjTypeOrder, countObj, checkObj, objType, ruleOfThree, getSimplePerc, asyncReplace, getAge, formatCustomTimer, formatDayTimer, formatTimer, getTimeDuration, shuffleArray, toTitleCase, toTitleCaseLowerFirst, };