tiny-essentials 1.24.2 → 1.24.4

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.
@@ -310,6 +310,12 @@ const __elemCollision = {
310
310
  class TinyHtml {
311
311
  /** @typedef {import('../basics/collision.mjs').ObjRect} ObjRect */
312
312
  static Utils = { ...TinyCollision };
313
+ /** @type {number} */
314
+ static #version = 1;
315
+ /** @returns {number} */
316
+ static get version() {
317
+ return this.#version;
318
+ }
313
319
  /**
314
320
  * Controls whether TinyHtml emits detailed debug output to the console.
315
321
  * When enabled, helper methods print structured diagnostics for easier troubleshooting.
@@ -945,7 +951,6 @@ class TinyHtml {
945
951
  * @param {string} where - The method name or context calling this.
946
952
  * @param {number} index - The index of the element to retrieve.
947
953
  * @returns {ConstructorElValues} - The instance's element.
948
- * @readonly
949
954
  */
950
955
  _getElement(where, index) {
951
956
  if (!(this.#el[index] instanceof Element) &&
@@ -962,7 +967,6 @@ class TinyHtml {
962
967
  *
963
968
  * @param {string} where - The method name or context calling this.
964
969
  * @returns {ConstructorElValues[]} - The instance's elements.
965
- * @readonly
966
970
  */
967
971
  _getElements(where) {
968
972
  if (!this.#el.every((el) => el instanceof Element ||
@@ -985,7 +989,6 @@ class TinyHtml {
985
989
  * @param {string[]} elemName - The list of expected element names for error reporting.
986
990
  * @returns {any[]} - A flat array of validated elements.
987
991
  * @throws {Error} - If any element is not an instance of one of the allowed types.
988
- * @readonly
989
992
  */
990
993
  static _preElemsTemplate(elems, where, TheTinyElements, elemName) {
991
994
  /** @param {(TinyElement|EventTarget|null)[]} item */
@@ -1021,7 +1024,6 @@ class TinyHtml {
1021
1024
  * @param {string[]} elemName - The list of expected element names for error reporting.
1022
1025
  * @returns {any[]} - A flat array of validated elements.
1023
1026
  * @throws {Error} - If any element is not an instance of one of the allowed types.
1024
- * @readonly
1025
1027
  */
1026
1028
  _preElemsTemplate(where, TheTinyElements, elemName) {
1027
1029
  return TinyHtml._preElemsTemplate(this, where, TheTinyElements, elemName);
@@ -1036,7 +1038,6 @@ class TinyHtml {
1036
1038
  * @param {boolean} [canNull=false] - Whether `null` is allowed as a valid value.
1037
1039
  * @returns {any} - The validated element or `null` if allowed.
1038
1040
  * @throws {Error} - If the element is not valid or if multiple elements are provided.
1039
- * @readonly
1040
1041
  */
1041
1042
  static _preElemTemplate(elems, where, TheTinyElements, elemName, canNull = false) {
1042
1043
  /** @param {(TinyElement|EventTarget|null)[]} item */
@@ -1081,7 +1082,6 @@ class TinyHtml {
1081
1082
  * @param {boolean} [canNull=false] - Whether `null` is allowed as a valid value.
1082
1083
  * @returns {any} - The validated element or `null` if allowed.
1083
1084
  * @throws {Error} - If the element is not valid or if multiple elements are provided.
1084
- * @readonly
1085
1085
  */
1086
1086
  _preElemTemplate(where, TheTinyElements, elemName, canNull = false) {
1087
1087
  return TinyHtml._preElemTemplate(this, where, TheTinyElements, elemName, canNull);
@@ -1093,7 +1093,6 @@ class TinyHtml {
1093
1093
  * @param {TinyElement|TinyElement[]} elems - A single element or array of elements.
1094
1094
  * @param {string} where - The method or context name where validation is being called.
1095
1095
  * @returns {Element[]} - Always returns an array of elements.
1096
- * @readonly
1097
1096
  */
1098
1097
  static _preElems(elems, where) {
1099
1098
  return TinyHtml._preElemsTemplate(elems, where, [Element], ['Element']);
@@ -1104,7 +1103,6 @@ class TinyHtml {
1104
1103
  *
1105
1104
  * @param {string} where - The method or context name where validation is being called.
1106
1105
  * @returns {Element[]} - Always returns an array of elements.
1107
- * @readonly
1108
1106
  */
1109
1107
  _preElems(where) {
1110
1108
  return TinyHtml._preElems(this, where);
@@ -1116,7 +1114,6 @@ class TinyHtml {
1116
1114
  * @param {TinyElement|TinyElement[]} elems - A single element or array of elements.
1117
1115
  * @param {string} where - The method or context name where validation is being called.
1118
1116
  * @returns {Element} - Always returns an single element.
1119
- * @readonly
1120
1117
  */
1121
1118
  static _preElem(elems, where) {
1122
1119
  return TinyHtml._preElemTemplate(elems, where, [Element], ['Element']);
@@ -1127,7 +1124,6 @@ class TinyHtml {
1127
1124
  *
1128
1125
  * @param {string} where - The method or context name where validation is being called.
1129
1126
  * @returns {Element} - Always returns an single element.
1130
- * @readonly
1131
1127
  */
1132
1128
  _preElem(where) {
1133
1129
  return TinyHtml._preElem(this, where);
@@ -1139,7 +1135,6 @@ class TinyHtml {
1139
1135
  * @param {TinyNode|TinyNode[]} elems - A single node or array of nodes.
1140
1136
  * @param {string} where - The method or context name where validation is being called.
1141
1137
  * @returns {Node[]} - Always returns an array of nodes.
1142
- * @readonly
1143
1138
  */
1144
1139
  static _preNodeElems(elems, where) {
1145
1140
  return TinyHtml._preElemsTemplate(elems, where, [Node], ['Node']);
@@ -1150,7 +1145,6 @@ class TinyHtml {
1150
1145
  *
1151
1146
  * @param {string} where - The method or context name where validation is being called.
1152
1147
  * @returns {Node[]} - Always returns an array of nodes.
1153
- * @readonly
1154
1148
  */
1155
1149
  _preNodeElems(where) {
1156
1150
  return TinyHtml._preNodeElems(this, where);
@@ -1162,7 +1156,6 @@ class TinyHtml {
1162
1156
  * @param {TinyNode|TinyNode[]} elems - A single node or array of nodes.
1163
1157
  * @param {string} where - The method or context name where validation is being called.
1164
1158
  * @returns {Node} - Always returns an single node.
1165
- * @readonly
1166
1159
  */
1167
1160
  static _preNodeElem(elems, where) {
1168
1161
  return TinyHtml._preElemTemplate(elems, where, [Node], ['Node']);
@@ -1173,7 +1166,6 @@ class TinyHtml {
1173
1166
  *
1174
1167
  * @param {string} where - The method or context name where validation is being called.
1175
1168
  * @returns {Node} - Always returns an single node.
1176
- * @readonly
1177
1169
  */
1178
1170
  _preNodeElem(where) {
1179
1171
  return TinyHtml._preNodeElem(this, where);
@@ -1185,7 +1177,6 @@ class TinyHtml {
1185
1177
  * @param {TinyNode|TinyNode[]} elems - A single node or array of nodes.
1186
1178
  * @param {string} where - The method or context name where validation is being called.
1187
1179
  * @returns {Node|null} - Always returns an single node or null.
1188
- * @readonly
1189
1180
  */
1190
1181
  static _preNodeElemWithNull(elems, where) {
1191
1182
  return TinyHtml._preElemTemplate(elems, where, [Node], ['Node'], true);
@@ -1196,7 +1187,6 @@ class TinyHtml {
1196
1187
  *
1197
1188
  * @param {string} where - The method or context name where validation is being called.
1198
1189
  * @returns {Node|null} - Always returns an single node or null.
1199
- * @readonly
1200
1190
  */
1201
1191
  _preNodeElemWithNull(where) {
1202
1192
  return TinyHtml._preNodeElemWithNull(this, where);
@@ -1208,7 +1198,6 @@ class TinyHtml {
1208
1198
  * @param {TinyElement|TinyElement[]} elems - A single html element or array of html elements.
1209
1199
  * @param {string} where - The method or context name where validation is being called.
1210
1200
  * @returns {HTMLElement[]} - Always returns an array of html elements.
1211
- * @readonly
1212
1201
  */
1213
1202
  static _preHtmlElems(elems, where) {
1214
1203
  return TinyHtml._preElemsTemplate(elems, where, [HTMLElement], ['HTMLElement']);
@@ -1219,7 +1208,6 @@ class TinyHtml {
1219
1208
  *
1220
1209
  * @param {string} where - The method or context name where validation is being called.
1221
1210
  * @returns {HTMLElement[]} - Always returns an array of html elements.
1222
- * @readonly
1223
1211
  */
1224
1212
  _preHtmlElems(where) {
1225
1213
  return TinyHtml._preHtmlElems(this, where);
@@ -1231,7 +1219,6 @@ class TinyHtml {
1231
1219
  * @param {TinyElement|TinyElement[]} elems - A single html element or array of html elements.
1232
1220
  * @param {string} where - The method or context name where validation is being called.
1233
1221
  * @returns {HTMLElement} - Always returns an single html element.
1234
- * @readonly
1235
1222
  */
1236
1223
  static _preHtmlElem(elems, where) {
1237
1224
  return TinyHtml._preElemTemplate(elems, where, [HTMLElement], ['HTMLElement']);
@@ -1242,7 +1229,6 @@ class TinyHtml {
1242
1229
  *
1243
1230
  * @param {string} where - The method or context name where validation is being called.
1244
1231
  * @returns {HTMLElement} - Always returns an single html element.
1245
- * @readonly
1246
1232
  */
1247
1233
  _preHtmlElem(where) {
1248
1234
  return TinyHtml._preHtmlElem(this, where);
@@ -1254,7 +1240,6 @@ class TinyHtml {
1254
1240
  * @param {TinyInputElement|TinyInputElement[]} elems - A single event target element or array of html elements.
1255
1241
  * @param {string} where - The method or context name where validation is being called.
1256
1242
  * @returns {InputElement[]} - Always returns an array of event target elements.
1257
- * @readonly
1258
1243
  */
1259
1244
  static _preInputElems(elems, where) {
1260
1245
  return TinyHtml._preElemsTemplate(elems, where, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement, HTMLOptionElement], ['HTMLInputElement', 'HTMLSelectElement', 'HTMLTextAreaElement', 'HTMLOptionElement']);
@@ -1265,7 +1250,6 @@ class TinyHtml {
1265
1250
  *
1266
1251
  * @param {string} where - The method or context name where validation is being called.
1267
1252
  * @returns {InputElement[]} - Always returns an array of event target elements.
1268
- * @readonly
1269
1253
  */
1270
1254
  _preInputElems(where) {
1271
1255
  return TinyHtml._preInputElems(this, where);
@@ -1277,7 +1261,6 @@ class TinyHtml {
1277
1261
  * @param {TinyInputElement|TinyInputElement[]} elems - A single event target element or array of html elements.
1278
1262
  * @param {string} where - The method or context name where validation is being called.
1279
1263
  * @returns {InputElement} - Always returns an single event target element.
1280
- * @readonly
1281
1264
  */
1282
1265
  static _preInputElem(elems, where) {
1283
1266
  return TinyHtml._preElemTemplate(elems, where, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement, HTMLOptionElement], ['HTMLInputElement', 'HTMLSelectElement', 'HTMLTextAreaElement', 'HTMLOptionElement']);
@@ -1288,7 +1271,6 @@ class TinyHtml {
1288
1271
  *
1289
1272
  * @param {string} where - The method or context name where validation is being called.
1290
1273
  * @returns {InputElement} - Always returns an single event target element.
1291
- * @readonly
1292
1274
  */
1293
1275
  _preInputElem(where) {
1294
1276
  return TinyHtml._preInputElem(this, where);
@@ -1300,7 +1282,6 @@ class TinyHtml {
1300
1282
  * @param {TinyEventTarget|TinyEventTarget[]} elems - A single event target element or array of html elements.
1301
1283
  * @param {string} where - The method or context name where validation is being called.
1302
1284
  * @returns {EventTarget[]} - Always returns an array of event target elements.
1303
- * @readonly
1304
1285
  */
1305
1286
  static _preEventTargetElems(elems, where) {
1306
1287
  return TinyHtml._preElemsTemplate(elems, where, [EventTarget], ['EventTarget']);
@@ -1311,7 +1292,6 @@ class TinyHtml {
1311
1292
  *
1312
1293
  * @param {string} where - The method or context name where validation is being called.
1313
1294
  * @returns {EventTarget[]} - Always returns an array of event target elements.
1314
- * @readonly
1315
1295
  */
1316
1296
  _preEventTargetElems(where) {
1317
1297
  return TinyHtml._preEventTargetElems(this, where);
@@ -1323,7 +1303,6 @@ class TinyHtml {
1323
1303
  * @param {TinyEventTarget|TinyEventTarget[]} elems - A single event target element or array of html elements.
1324
1304
  * @param {string} where - The method or context name where validation is being called.
1325
1305
  * @returns {EventTarget} - Always returns an single event target element.
1326
- * @readonly
1327
1306
  */
1328
1307
  static _preEventTargetElem(elems, where) {
1329
1308
  return TinyHtml._preElemTemplate(elems, where, [EventTarget], ['EventTarget']);
@@ -1334,7 +1313,6 @@ class TinyHtml {
1334
1313
  *
1335
1314
  * @param {string} where - The method or context name where validation is being called.
1336
1315
  * @returns {EventTarget} - Always returns an single event target element.
1337
- * @readonly
1338
1316
  */
1339
1317
  _preEventTargetElem(where) {
1340
1318
  return TinyHtml._preEventTargetElem(this, where);
@@ -1346,7 +1324,6 @@ class TinyHtml {
1346
1324
  * @param {TinyElementAndWindow|TinyElementAndWindow[]} elems - A single element/window element or array of html elements.
1347
1325
  * @param {string} where - The method or context name where validation is being called.
1348
1326
  * @returns {ElementAndWindow[]} - Always returns an array of element/window elements.
1349
- * @readonly
1350
1327
  */
1351
1328
  static _preElemsAndWindow(elems, where) {
1352
1329
  return TinyHtml._preElemsTemplate(elems, where, [Element, Window], ['Element', 'Window']);
@@ -1357,7 +1334,6 @@ class TinyHtml {
1357
1334
  *
1358
1335
  * @param {string} where - The method or context name where validation is being called.
1359
1336
  * @returns {ElementAndWindow[]} - Always returns an array of element/window elements.
1360
- * @readonly
1361
1337
  */
1362
1338
  _preElemsAndWindow(where) {
1363
1339
  return TinyHtml._preElemsAndWindow(this, where);
@@ -1369,7 +1345,6 @@ class TinyHtml {
1369
1345
  * @param {TinyElementAndWindow|TinyElementAndWindow[]} elems - A single element/window element or array of html elements.
1370
1346
  * @param {string} where - The method or context name where validation is being called.
1371
1347
  * @returns {ElementAndWindow} - Always returns an single element/window element.
1372
- * @readonly
1373
1348
  */
1374
1349
  static _preElemAndWindow(elems, where) {
1375
1350
  return TinyHtml._preElemTemplate(elems, where, [Element, Window], ['Element', 'Window']);
@@ -1380,7 +1355,6 @@ class TinyHtml {
1380
1355
  *
1381
1356
  * @param {string} where - The method or context name where validation is being called.
1382
1357
  * @returns {ElementAndWindow} - Always returns an single element/window element.
1383
- * @readonly
1384
1358
  */
1385
1359
  _preElemAndWindow(where) {
1386
1360
  return TinyHtml._preElemAndWindow(this, where);
@@ -1392,7 +1366,6 @@ class TinyHtml {
1392
1366
  * @param {TinyElementAndWinAndDoc|TinyElementAndWinAndDoc[]} elems - A single element/document/window element or array of html elements.
1393
1367
  * @param {string} where - The method or context name where validation is being called.
1394
1368
  * @returns {ElementAndWindow[]} - Always returns an array of element/document/window elements.
1395
- * @readonly
1396
1369
  */
1397
1370
  static _preElemsAndWinAndDoc(elems, where) {
1398
1371
  const result = TinyHtml._preElemsTemplate(elems, where, [Element, Window, Document], ['Element', 'Window', 'Document']);
@@ -1404,7 +1377,6 @@ class TinyHtml {
1404
1377
  *
1405
1378
  * @param {string} where - The method or context name where validation is being called.
1406
1379
  * @returns {ElementAndWindow[]} - Always returns an array of element/document/window elements.
1407
- * @readonly
1408
1380
  */
1409
1381
  _preElemsAndWinAndDoc(where) {
1410
1382
  return TinyHtml._preElemsAndWinAndDoc(this, where);
@@ -1416,7 +1388,6 @@ class TinyHtml {
1416
1388
  * @param {TinyElementAndWinAndDoc|TinyElementAndWinAndDoc[]} elems - A single element/document/window element or array of html elements.
1417
1389
  * @param {string} where - The method or context name where validation is being called.
1418
1390
  * @returns {ElementAndWindow} - Always returns an single element/document/window element.
1419
- * @readonly
1420
1391
  */
1421
1392
  static _preElemAndWinAndDoc(elems, where) {
1422
1393
  const result = TinyHtml._preElemTemplate(elems, where, [Element, Window, Document], ['Element', 'Window', 'Document']);
@@ -1430,7 +1401,6 @@ class TinyHtml {
1430
1401
  *
1431
1402
  * @param {string} where - The method or context name where validation is being called.
1432
1403
  * @returns {ElementAndWindow} - Always returns an single element/document/window element.
1433
- * @readonly
1434
1404
  */
1435
1405
  _preElemAndWinAndDoc(where) {
1436
1406
  return TinyHtml._preElemAndWinAndDoc(this, where);
@@ -1442,7 +1412,6 @@ class TinyHtml {
1442
1412
  * @param {TinyElementWithDoc|TinyElementWithDoc[]} elems - A single element with document element or array of html elements.
1443
1413
  * @param {string} where - The method or context name where validation is being called.
1444
1414
  * @returns {ElementWithDoc[]} - Always returns an array of element with document elements.
1445
- * @readonly
1446
1415
  */
1447
1416
  static _preElemsWithDoc(elems, where) {
1448
1417
  return TinyHtml._preElemsTemplate(elems, where, [Element, Document], ['Element', 'Document']);
@@ -1453,7 +1422,6 @@ class TinyHtml {
1453
1422
  *
1454
1423
  * @param {string} where - The method or context name where validation is being called.
1455
1424
  * @returns {ElementWithDoc[]} - Always returns an array of element with document elements.
1456
- * @readonly
1457
1425
  */
1458
1426
  _preElemsWithDoc(where) {
1459
1427
  return TinyHtml._preElemsWithDoc(this, where);
@@ -1465,7 +1433,6 @@ class TinyHtml {
1465
1433
  * @param {TinyElementWithDoc|TinyElementWithDoc[]} elems - A single element/window element or array of html elements.
1466
1434
  * @param {string} where - The method or context name where validation is being called.
1467
1435
  * @returns {ElementWithDoc} - Always returns an single element/window element.
1468
- * @readonly
1469
1436
  */
1470
1437
  static _preElemWithDoc(elems, where) {
1471
1438
  return TinyHtml._preElemTemplate(elems, where, [Element, Document], ['Element', 'Document']);
@@ -1476,7 +1443,6 @@ class TinyHtml {
1476
1443
  *
1477
1444
  * @param {string} where - The method or context name where validation is being called.
1478
1445
  * @returns {ElementWithDoc} - Always returns an single element/window element.
1479
- * @readonly
1480
1446
  */
1481
1447
  _preElemWithDoc(where) {
1482
1448
  return TinyHtml._preElemWithDoc(this, where);
@@ -1753,7 +1719,6 @@ class TinyHtml {
1753
1719
  * Internal data selectors for accessing public or private data stores.
1754
1720
  *
1755
1721
  * @type {Record<string, (where: string, elem: TinyElement) => ElementDataStore>}
1756
- * @readonly
1757
1722
  */
1758
1723
  static _dataSelector = {
1759
1724
  public: (where, el) => {
@@ -1895,7 +1860,6 @@ class TinyHtml {
1895
1860
  * @param {"previousSibling"|"nextSibling"} direction
1896
1861
  * @param {string} where
1897
1862
  * @returns {ChildNode|null}
1898
- * @readonly
1899
1863
  */
1900
1864
  static _getSibling(el, direction, where) {
1901
1865
  /** @type {Node|null} */
@@ -1911,7 +1875,6 @@ class TinyHtml {
1911
1875
  * @param {Node|null} start
1912
1876
  * @param {Node|null} [exclude]
1913
1877
  * @returns {ChildNode[]}
1914
- * @readonly
1915
1878
  */
1916
1879
  static _getSiblings(start, exclude) {
1917
1880
  /** @type {Node|null} */
@@ -2187,7 +2150,6 @@ class TinyHtml {
2187
2150
  * Normalize and validate nodes before DOM insertion.
2188
2151
  * Converts TinyNode-like structures or strings into DOM-compatible nodes.
2189
2152
  * @type {(where: string, ...nodes: (AppendCheckerValues|Record<string, AppendCheckerValues>)[]) => (Node | string)[]}
2190
- * @readonly
2191
2153
  */
2192
2154
  static _appendChecker(where, ...nodes) {
2193
2155
  /** @type {(string | Node)[]} */
@@ -5543,7 +5505,6 @@ class TinyHtml {
5543
5505
  }
5544
5506
  ///////////////////////////////////////////////
5545
5507
  // TITLE: Value Stuff
5546
- /** @readonly */
5547
5508
  static _valHooks = {
5548
5509
  option: {
5549
5510
  /**
@@ -5715,7 +5676,6 @@ class TinyHtml {
5715
5676
  /**
5716
5677
  * Maps value types to their corresponding getter functions.
5717
5678
  * Each function extracts a value of a specific type from a compatible HTMLInputElement.
5718
- * @readonly
5719
5679
  */
5720
5680
  static _valTypes = {
5721
5681
  /**
@@ -5746,7 +5706,6 @@ class TinyHtml {
5746
5706
  * @param {string} where - The context/method name using this validation.
5747
5707
  * @returns {any} The extracted value, depending on the type.
5748
5708
  * @throws {Error} If the element is not an HTMLInputElement or if the type handler is invalid.
5749
- * @readonly
5750
5709
  */
5751
5710
  static _getValByType(elem, type, where) {
5752
5711
  if (typeof type !== 'string')
@@ -5768,7 +5727,6 @@ class TinyHtml {
5768
5727
  * @param {GetValueTypes} type - The type of value to retrieve ("string", "date", or "number").
5769
5728
  * @param {string} where - The context/method name using this validation.
5770
5729
  * @returns {any} The raw value retrieved from the element or hook.
5771
- * @readonly
5772
5730
  */
5773
5731
  static _val(el, where, type) {
5774
5732
  const elem = TinyHtml._preInputElem(el, where);
@@ -5788,7 +5746,6 @@ class TinyHtml {
5788
5746
  * @param {GetValueTypes} type - The type of value to retrieve ("string", "date", or "number").
5789
5747
  * @param {string} where - The context/method name using this validation.
5790
5748
  * @returns {any} The raw value retrieved from the element or hook.
5791
- * @readonly
5792
5749
  */
5793
5750
  _val(where, type) {
5794
5751
  return TinyHtml._val(this, where, type);
@@ -5841,7 +5798,6 @@ class TinyHtml {
5841
5798
  * @param {GetValueTypes} type - The type of value to retrieve ("string", "date", or "number").
5842
5799
  * @returns {SetValueBase[]} - The validated value as an array.
5843
5800
  * @throws {Error} If the returned value is not an array.
5844
- * @readonly
5845
5801
  */
5846
5802
  static _valArr(el, where, type) {
5847
5803
  /** @type {SetValueBase[]} */
@@ -5857,7 +5813,6 @@ class TinyHtml {
5857
5813
  * @param {GetValueTypes} type - The type of value to retrieve ("string", "date", or "number").
5858
5814
  * @returns {SetValueBase[]} - The validated value as an array.
5859
5815
  * @throws {Error} If the returned value is not an array.
5860
- * @readonly
5861
5816
  */
5862
5817
  _valArr(where, type) {
5863
5818
  return TinyHtml._valArr(this, where, type);
@@ -6988,7 +6943,6 @@ class TinyHtml {
6988
6943
  * @param {DOMRect} rect - The base rectangle to be cloned and extended.
6989
6944
  * @param {Partial<DOMRect>} extraRect - Additional dimensions to apply to the base rect (e.g., extra padding or offset).
6990
6945
  * @returns {DOMRect} - A new DOMRect object with the combined dimensions.
6991
- * @readonly
6992
6946
  */
6993
6947
  static _getCustomRect(rect, extraRect) {
6994
6948
  /** @type {DOMRect} */
@@ -7102,7 +7056,6 @@ class TinyHtml {
7102
7056
  * @param {Element} elem1 - The element to track collision state for.
7103
7057
  * @param {CollisionDirLock} lockDirection - The direction from which the collision was first detected.
7104
7058
  * @returns {boolean} Returns `true` if the element is still considered colliding (locked), otherwise `false`.
7105
- * @readonly
7106
7059
  */
7107
7060
  static _isCollWithLock(isColliding, rect1, rect2, elem1, lockDirection) {
7108
7061
  const lockMap = __elemCollision[lockDirection];
@@ -328,7 +328,7 @@ declare class TinyInventory {
328
328
  * Keys are item IDs, values are configuration objects created with {@link TinyInventory.defineItem}.
329
329
  * @type {Map<string, ItemDef>}
330
330
  */
331
- static "__#28@#ItemRegistry": Map<string, ItemDef>;
331
+ static "__#private@#ItemRegistry": Map<string, ItemDef>;
332
332
  /**
333
333
  * Returns a deep-cloned snapshot of all registered items.
334
334
  * Ensures the caller cannot mutate the internal registry.