tiny-essentials 1.22.10 → 1.22.12

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.
@@ -702,16 +702,16 @@ This method is useful when you want to insert raw text content into the DOM with
702
702
 
703
703
  ---
704
704
 
705
- ### `TinyHtml.createElementFromHTML(htmlString)`
705
+ ### `TinyHtml.createFromHTML(htmlString)`
706
706
 
707
- Creates an `HTMLElement` or `TextNode` from an HTML string.
707
+ Creates an `HTMLElement` from an HTML string.
708
708
  Supports both elements and plain text.
709
709
 
710
710
  * **Parameters**:
711
711
 
712
712
  * `htmlString` *(string)* — The HTML string to convert.
713
713
 
714
- * **Returns**: `TinyHtml` — A `TinyHtml` instance wrapping the resulting `HTMLElement` or `TextNode`.
714
+ * **Returns**: `TinyHtml` — A `TinyHtml` instance wrapping the resulting `HTMLElement`.
715
715
 
716
716
  * **Throws**:
717
717
 
@@ -1001,6 +1001,31 @@ static jsonToTinyElems(jsonArray: HtmlParsed[]): TinyHtml[]
1001
1001
 
1002
1002
  ## 🧩 Internal Element Access
1003
1003
 
1004
+ ### `_elCheck(els)`
1005
+
1006
+ Validates if all provided items are acceptable constructor values.
1007
+
1008
+ * **Parameters**:
1009
+
1010
+ * `els` (`ConstructorElValues[]`) — The elements to validate.
1011
+ * **Throws**:
1012
+
1013
+ * `Error` — If any element is not a valid target.
1014
+ * **Returns**: `void`
1015
+
1016
+ ---
1017
+
1018
+ ### `add(...el)`
1019
+
1020
+ Adds elements to the end of the internal collection.
1021
+
1022
+ * **Parameters**:
1023
+
1024
+ * `...el` (`ConstructorElValues`) — The elements to add.
1025
+ * **Returns**: `TinyHtml` — A new TinyHtml object containing the combined elements.
1026
+
1027
+ ---
1028
+
1004
1029
  ### `exists(index)`
1005
1030
  Checks whether the element exists at the given index.
1006
1031
 
@@ -1214,6 +1239,14 @@ Gets data from the element.
1214
1239
 
1215
1240
  Sets a value on the element’s data store.
1216
1241
 
1242
+ #### `TinyHtml.hasData(el, key, isPrivate?)`
1243
+
1244
+ Checks if a specific key exists in the data store of a DOM element.
1245
+
1246
+ #### `TinyHtml.removeData(el, key, isPrivate?)`
1247
+
1248
+ Removes a value associated with a specific key from the data store of a DOM element.
1249
+
1217
1250
  ---
1218
1251
 
1219
1252
  ### 📌 Instance Methods
@@ -1226,6 +1259,14 @@ Shortcut for getting data from the current instance’s element.
1226
1259
 
1227
1260
  Shortcut for setting data on the current element.
1228
1261
 
1262
+ #### `.hasData(key, isPrivate?)`
1263
+
1264
+ Checks if a specific key exists in the data store of this element.
1265
+
1266
+ #### `.removeData(key, isPrivate?)`
1267
+
1268
+ Removes a value associated with a specific key from the data store of this element.
1269
+
1229
1270
  ---
1230
1271
 
1231
1272
  ## 🔄 DOM Traversal Methods
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-essentials",
3
- "version": "1.22.10",
3
+ "version": "1.22.12",
4
4
  "description": "Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.",
5
5
  "scripts": {
6
6
  "test": "npm run test:mjs && npm run test:cjs && npm run test:js",
@@ -38,6 +38,10 @@
38
38
  "types": "./dist/v1/index.d.mts",
39
39
  "ethereum": "jasmindreasond.x",
40
40
  "exports": {
41
+ "./css/aiMarker.min.css": "./dist/v1/css/aiMarker.min.css",
42
+ "./css/TinyCookieConsent.min.css": "./dist/v1/css/TinyCookieConsent.min.css",
43
+ "./css/TinyDraggerExample.min.css": "./dist/v1/css/TinyDraggerExample.min.css",
44
+ "./css/TinyNotify.min.css": "./dist/v1/css/TinyNotify.min.css",
41
45
  ".": {
42
46
  "require": "./dist/v1/index.cjs",
43
47
  "import": "./dist/v1/index.mjs"