@design-edito/tools 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/agnostic/arrays/find-duplicates/index.d.ts +1 -0
  2. package/agnostic/arrays/find-duplicates/index.js +6 -0
  3. package/agnostic/arrays/index.d.ts +8 -7
  4. package/agnostic/arrays/make/index.d.ts +3 -0
  5. package/agnostic/arrays/make/index.js +6 -0
  6. package/agnostic/arrays/random-pick/index.d.ts +2 -0
  7. package/agnostic/arrays/random-pick/index.js +8 -0
  8. package/agnostic/css/index.js +10 -10
  9. package/agnostic/errors/index.js +2 -2
  10. package/agnostic/html/hyper-json/cast/index.d.ts +18 -0
  11. package/agnostic/html/hyper-json/cast/index.js +11 -0
  12. package/agnostic/html/hyper-json/crossenv/index.d.ts +13 -0
  13. package/agnostic/html/hyper-json/crossenv/index.js +6 -0
  14. package/agnostic/html/hyper-json/index.d.ts +14 -43
  15. package/agnostic/html/hyper-json/index.js +32 -2
  16. package/agnostic/html/hyper-json/serialize/index.d.ts +5 -0
  17. package/agnostic/html/hyper-json/serialize/index.js +7 -0
  18. package/agnostic/html/hyper-json/transformers/append/index.d.ts +2 -0
  19. package/agnostic/html/hyper-json/transformers/append/index.js +12 -0
  20. package/agnostic/html/hyper-json/transformers/classList/index.d.ts +2 -0
  21. package/agnostic/html/hyper-json/transformers/classList/index.js +12 -0
  22. package/agnostic/html/hyper-json/transformers/index.d.ts +4 -0
  23. package/agnostic/html/hyper-json/transformers/index.js +39 -0
  24. package/agnostic/html/hyper-json/transformers/join/index.d.ts +2 -0
  25. package/agnostic/html/hyper-json/transformers/join/index.js +12 -0
  26. package/agnostic/html/hyper-json/transformers/length/index.d.ts +2 -0
  27. package/agnostic/html/hyper-json/transformers/length/index.js +8 -0
  28. package/agnostic/html/hyper-json/transformers/print/index.d.ts +2 -0
  29. package/agnostic/html/hyper-json/transformers/print/index.js +7 -0
  30. package/agnostic/html/hyper-json/transformers/push/index.d.ts +2 -0
  31. package/agnostic/html/hyper-json/transformers/push/index.js +7 -0
  32. package/agnostic/html/hyper-json/transformers/querySelector/index.d.ts +2 -0
  33. package/agnostic/html/hyper-json/transformers/querySelector/index.js +12 -0
  34. package/agnostic/html/hyper-json/transformers/ref/index.d.ts +2 -0
  35. package/agnostic/html/hyper-json/transformers/ref/index.js +12 -0
  36. package/agnostic/html/hyper-json/transformers/replace/index.d.ts +2 -0
  37. package/agnostic/html/hyper-json/transformers/replace/index.js +13 -0
  38. package/agnostic/html/hyper-json/transformers/split/index.d.ts +2 -0
  39. package/agnostic/html/hyper-json/transformers/split/index.js +12 -0
  40. package/agnostic/html/hyper-json/transformers/toArray/index.d.ts +2 -0
  41. package/agnostic/html/hyper-json/transformers/toArray/index.js +12 -0
  42. package/agnostic/html/hyper-json/transformers/toBoolean/index.d.ts +2 -0
  43. package/agnostic/html/hyper-json/transformers/toBoolean/index.js +12 -0
  44. package/agnostic/html/hyper-json/transformers/toElement/index.d.ts +2 -0
  45. package/agnostic/html/hyper-json/transformers/toElement/index.js +12 -0
  46. package/agnostic/html/hyper-json/transformers/toNodeList/index.d.ts +2 -0
  47. package/agnostic/html/hyper-json/transformers/toNodeList/index.js +12 -0
  48. package/agnostic/html/hyper-json/transformers/toNull/index.d.ts +2 -0
  49. package/agnostic/html/hyper-json/transformers/toNull/index.js +7 -0
  50. package/agnostic/html/hyper-json/transformers/toNumber/index.d.ts +2 -0
  51. package/agnostic/html/hyper-json/transformers/toNumber/index.js +12 -0
  52. package/agnostic/html/hyper-json/transformers/toRecord/index.d.ts +2 -0
  53. package/agnostic/html/hyper-json/transformers/toRecord/index.js +12 -0
  54. package/agnostic/html/hyper-json/transformers/toRef/index.d.ts +2 -0
  55. package/agnostic/html/hyper-json/transformers/toRef/index.js +12 -0
  56. package/agnostic/html/hyper-json/transformers/toString/index.d.ts +2 -0
  57. package/agnostic/html/hyper-json/transformers/toString/index.js +12 -0
  58. package/agnostic/html/hyper-json/transformers/toText/index.d.ts +2 -0
  59. package/agnostic/html/hyper-json/transformers/toText/index.js +12 -0
  60. package/agnostic/html/hyper-json/transformers/toTransformer/index.d.ts +2 -0
  61. package/agnostic/html/hyper-json/transformers/toTransformer/index.js +12 -0
  62. package/agnostic/html/hyper-json/transformers/transformSelected/index.d.ts +2 -0
  63. package/agnostic/html/hyper-json/transformers/transformSelected/index.js +39 -0
  64. package/agnostic/html/hyper-json/transformers/trim/index.d.ts +2 -0
  65. package/agnostic/html/hyper-json/transformers/trim/index.js +12 -0
  66. package/agnostic/html/hyper-json/tree/index.d.ts +56 -0
  67. package/agnostic/html/hyper-json/tree/index.js +39 -0
  68. package/agnostic/html/hyper-json/types/index.d.ts +86 -0
  69. package/agnostic/html/hyper-json/types/index.js +6 -0
  70. package/agnostic/html/hyper-json/utils/index.d.ts +10 -0
  71. package/agnostic/html/hyper-json/utils/index.js +6 -0
  72. package/agnostic/html/index.js +51 -19
  73. package/agnostic/html/replace-in-element/index.d.ts +1 -0
  74. package/agnostic/html/replace-in-element/index.js +6 -0
  75. package/agnostic/html/sanitize/index.js +7 -5
  76. package/agnostic/html/selector-to-element/index.js +7 -5
  77. package/agnostic/html/string-to-nodes/index.js +8 -6
  78. package/agnostic/index.d.ts +0 -2
  79. package/agnostic/misc/{web-crawler → crawler}/index.d.ts +1 -1
  80. package/agnostic/misc/crawler/index.js +7 -0
  81. package/agnostic/misc/crossenv/get-document/index.d.ts +2 -0
  82. package/agnostic/misc/crossenv/get-document/index.js +7 -0
  83. package/agnostic/misc/crossenv/get-window/browser.d.ts +2 -0
  84. package/agnostic/misc/crossenv/get-window/index.d.ts +2 -0
  85. package/agnostic/misc/crossenv/get-window/index.js +6 -0
  86. package/agnostic/misc/crossenv/index.d.ts +4 -1
  87. package/agnostic/misc/crossenv/index.js +3 -1
  88. package/agnostic/misc/crossenv/types.d.ts +3 -0
  89. package/agnostic/misc/index.d.ts +3 -1
  90. package/agnostic/misc/index.js +24 -14
  91. package/agnostic/misc/lorem-ipsum/index.js +5 -2
  92. package/agnostic/numbers/index.js +3 -3
  93. package/agnostic/objects/index.js +10 -10
  94. package/agnostic/optim/index.js +3 -3
  95. package/agnostic/random/index.js +6 -0
  96. package/agnostic/strings/index.js +9 -9
  97. package/agnostic/time/duration/index.d.ts +26 -0
  98. package/agnostic/time/duration/index.js +6 -0
  99. package/agnostic/time/index.d.ts +8 -7
  100. package/agnostic/time/index.js +17 -28
  101. package/agnostic/time/timeout/index.d.ts +1 -0
  102. package/agnostic/time/timeout/index.js +6 -0
  103. package/agnostic/time/transitions/index.js +7 -0
  104. package/agnostic/time/wait/index.js +6 -0
  105. package/chunks/chunk-2DMWYLFG.js +16 -0
  106. package/chunks/chunk-2KT7AKRW.js +17 -0
  107. package/chunks/{chunk-UCV2AZZV.js → chunk-2PI5AZIL.js} +14 -25
  108. package/chunks/chunk-3KQRMKQJ.js +27 -0
  109. package/chunks/chunk-3LVR6KZH.js +22 -0
  110. package/chunks/chunk-3PHPA25U.js +18 -0
  111. package/chunks/chunk-3PM7GZ6B.js +33 -0
  112. package/chunks/chunk-3SQJEEBK.js +642 -0
  113. package/chunks/chunk-3UURICGY.js +211 -0
  114. package/chunks/chunk-3X6RXJBR.js +37 -0
  115. package/chunks/{chunk-DQNJQBC6.js → chunk-4CIS3R7T.js} +1 -1
  116. package/chunks/chunk-4F7ZVE7T.js +332 -0
  117. package/chunks/chunk-4GUDL44X.js +13 -0
  118. package/chunks/chunk-4RDW62CU.js +36 -0
  119. package/chunks/chunk-5IR2PWO6.js +211 -0
  120. package/chunks/chunk-6CM2SWSX.js +35 -0
  121. package/chunks/chunk-6EYBQHJS.js +33 -0
  122. package/chunks/chunk-6NYUQXJT.js +109 -0
  123. package/chunks/chunk-6NZCBAT4.js +19 -0
  124. package/chunks/chunk-6V23XMYE.js +982 -0
  125. package/chunks/chunk-73V5RDSG.js +13 -0
  126. package/chunks/chunk-7IGZP4TV.js +30 -0
  127. package/chunks/chunk-7QMAYGNV.js +25 -0
  128. package/chunks/chunk-7YW5HL6N.js +168 -0
  129. package/chunks/chunk-AFFLZUW5.js +33 -0
  130. package/chunks/chunk-AMS3FB24.js +85 -0
  131. package/chunks/chunk-AXMPRLPI.js +35 -0
  132. package/chunks/chunk-B6CSCX7J.js +278 -0
  133. package/chunks/chunk-BDHNULU7.js +211 -0
  134. package/chunks/chunk-BNB7LEMQ.js +35 -0
  135. package/chunks/chunk-CECF6UZV.js +29 -0
  136. package/chunks/chunk-DBAJ66BR.js +18 -0
  137. package/chunks/chunk-DGQLPQS2.js +33 -0
  138. package/chunks/chunk-DLLTITVO.js +33 -0
  139. package/chunks/chunk-DMDOCC72.js +18 -0
  140. package/chunks/{chunk-IFT6HLDW.js → chunk-DRH7Q4FL.js} +3 -6
  141. package/chunks/chunk-DRNK3RLE.js +64 -0
  142. package/chunks/chunk-EAY65ZP6.js +22 -0
  143. package/chunks/{chunk-4GDNHUCZ.js → chunk-ENMBK6H7.js} +2 -2
  144. package/chunks/chunk-F5YMP5WU.js +18 -0
  145. package/chunks/chunk-F7EVMWVG.js +27 -0
  146. package/chunks/chunk-F7XWUG2V.js +18 -0
  147. package/chunks/chunk-FCU6IHKD.js +15 -0
  148. package/chunks/chunk-FFOATPL4.js +211 -0
  149. package/chunks/chunk-FWHUASVA.js +22 -0
  150. package/chunks/chunk-GBMHGF7P.js +20 -0
  151. package/chunks/{chunk-GJOU3UAL.js → chunk-GDYVCEWA.js} +8 -6
  152. package/chunks/chunk-GNBIAWSY.js +278 -0
  153. package/chunks/chunk-GQSPY2CV.js +19 -0
  154. package/chunks/chunk-HDALT7XM.js +620 -0
  155. package/chunks/chunk-HUKHWFVL.js +19 -0
  156. package/chunks/chunk-IGD53YL5.js +870 -0
  157. package/chunks/chunk-ILEM73XB.js +981 -0
  158. package/chunks/{chunk-DMGR57KA.js → chunk-IPB3U2PD.js} +20 -18
  159. package/chunks/chunk-JY3QZ2YO.js +211 -0
  160. package/chunks/chunk-K3OQEJI3.js +33 -0
  161. package/chunks/chunk-KXBKJ3GS.js +642 -0
  162. package/chunks/chunk-LCFDDWJR.js +278 -0
  163. package/chunks/chunk-LGECI2WL.js +306 -0
  164. package/chunks/chunk-LGUEB5L5.js +211 -0
  165. package/chunks/chunk-LI6QDZCA.js +211 -0
  166. package/chunks/{chunk-ZMHKLIP2.js → chunk-LYMZZ4BB.js} +1 -1
  167. package/chunks/chunk-MDEDNPU5.js +38 -0
  168. package/chunks/chunk-MQHKEGP4.js +33 -0
  169. package/chunks/chunk-NF5ACCXZ.js +211 -0
  170. package/chunks/chunk-NK557MKV.js +35 -0
  171. package/chunks/chunk-NWMEWFTK.js +33 -0
  172. package/chunks/chunk-O5OTBN22.js +35 -0
  173. package/chunks/chunk-O7MDUYEF.js +211 -0
  174. package/chunks/{chunk-LI5KVXAJ.js → chunk-OO5SJJDW.js} +2 -5
  175. package/chunks/chunk-Q52UJOBC.js +18 -0
  176. package/chunks/chunk-QFEF4EET.js +211 -0
  177. package/chunks/chunk-QHSVCGLD.js +280 -0
  178. package/chunks/chunk-QO64L4KB.js +97 -0
  179. package/chunks/{chunk-WLL3FNVL.js → chunk-R6KCN6CK.js} +1 -1
  180. package/chunks/chunk-RJ5E22H5.js +15 -0
  181. package/chunks/chunk-RLAZR3NL.js +8 -0
  182. package/chunks/chunk-RWUPHV54.js +25 -0
  183. package/chunks/chunk-S2757FI3.js +36 -0
  184. package/chunks/chunk-S42P73SC.js +30 -0
  185. package/chunks/chunk-S5XDYLJH.js +18 -0
  186. package/chunks/chunk-SCM6NACT.js +15 -0
  187. package/chunks/chunk-SH3Y2I5P.js +18 -0
  188. package/chunks/chunk-SMLKMOAX.js +18 -0
  189. package/chunks/chunk-TATRVKBS.js +211 -0
  190. package/chunks/chunk-UODQZRY2.js +620 -0
  191. package/chunks/chunk-UOULDS6J.js +33 -0
  192. package/chunks/chunk-UUDXUSI5.js +211 -0
  193. package/chunks/{chunk-GL23YDEH.js → chunk-UWAMSJ2X.js} +3 -6
  194. package/chunks/chunk-UZUXLD2Q.js +35 -0
  195. package/chunks/chunk-VA6HXRX4.js +211 -0
  196. package/chunks/chunk-VRUJR6WR.js +39 -0
  197. package/chunks/chunk-W6YBEEZM.js +211 -0
  198. package/chunks/chunk-WECTUHS5.js +127 -0
  199. package/chunks/chunk-YE5HI3RK.js +211 -0
  200. package/chunks/chunk-YEBOL67V.js +32 -0
  201. package/chunks/chunk-YS6WMSWC.js +15 -0
  202. package/{agnostic/misc/web-crawler/index.js → chunks/chunk-YUP434IY.js} +8 -7
  203. package/chunks/chunk-YYE2MVZO.js +211 -0
  204. package/chunks/chunk-Z7ZDDBV5.js +18 -0
  205. package/chunks/chunk-ZB73RE7P.js +35 -0
  206. package/chunks/chunk-ZONKYNKA.js +28 -0
  207. package/node/files/index.js +3 -3
  208. package/package.json +4 -1
  209. package/agnostic/async/index.d.ts +0 -8
  210. package/agnostic/async/index.js +0 -20
  211. package/agnostic/async/timeout-call/index.d.ts +0 -1
  212. package/agnostic/async/timeout-call/index.js +0 -6
  213. package/agnostic/async/transitions/index.js +0 -7
  214. package/agnostic/async/wait/index.js +0 -6
  215. package/agnostic/misc/random/index.js +0 -6
  216. package/chunks/chunk-4VC5PT5T.js +0 -13
  217. /package/agnostic/{misc/random → random}/index.d.ts +0 -0
  218. /package/agnostic/{async → time}/transitions/index.d.ts +0 -0
  219. /package/agnostic/{async → time}/wait/index.d.ts +0 -0
@@ -0,0 +1,12 @@
1
+ import {
2
+ toRef
3
+ } from "../../../../../chunks/chunk-4RDW62CU.js";
4
+ import "../../../../../chunks/chunk-QO64L4KB.js";
5
+ import "../../../../../chunks/chunk-3LVR6KZH.js";
6
+ import "../../../../../chunks/chunk-YEBOL67V.js";
7
+ import "../../../../../chunks/chunk-YDIBNEGA.js";
8
+ import "../../../../../chunks/chunk-QXAJXTXV.js";
9
+ import "../../../../../chunks/chunk-HC6ZOHCS.js";
10
+ export {
11
+ toRef
12
+ };
@@ -0,0 +1,2 @@
1
+ import { Types } from '../../types';
2
+ export declare const toString: Types.TransformerGenerator;
@@ -0,0 +1,12 @@
1
+ import {
2
+ toString
3
+ } from "../../../../../chunks/chunk-DMDOCC72.js";
4
+ import "../../../../../chunks/chunk-QO64L4KB.js";
5
+ import "../../../../../chunks/chunk-3LVR6KZH.js";
6
+ import "../../../../../chunks/chunk-YEBOL67V.js";
7
+ import "../../../../../chunks/chunk-YDIBNEGA.js";
8
+ import "../../../../../chunks/chunk-QXAJXTXV.js";
9
+ import "../../../../../chunks/chunk-HC6ZOHCS.js";
10
+ export {
11
+ toString
12
+ };
@@ -0,0 +1,2 @@
1
+ import { Types } from '../../types';
2
+ export declare const toText: Types.TransformerGenerator;
@@ -0,0 +1,12 @@
1
+ import {
2
+ toText
3
+ } from "../../../../../chunks/chunk-3PHPA25U.js";
4
+ import "../../../../../chunks/chunk-QO64L4KB.js";
5
+ import "../../../../../chunks/chunk-3LVR6KZH.js";
6
+ import "../../../../../chunks/chunk-YEBOL67V.js";
7
+ import "../../../../../chunks/chunk-YDIBNEGA.js";
8
+ import "../../../../../chunks/chunk-QXAJXTXV.js";
9
+ import "../../../../../chunks/chunk-HC6ZOHCS.js";
10
+ export {
11
+ toText
12
+ };
@@ -0,0 +1,2 @@
1
+ import { Types } from '../../types';
2
+ export declare const toTransformer: Types.TransformerGenerator;
@@ -0,0 +1,12 @@
1
+ import {
2
+ toTransformer
3
+ } from "../../../../../chunks/chunk-SMLKMOAX.js";
4
+ import "../../../../../chunks/chunk-QO64L4KB.js";
5
+ import "../../../../../chunks/chunk-3LVR6KZH.js";
6
+ import "../../../../../chunks/chunk-YEBOL67V.js";
7
+ import "../../../../../chunks/chunk-YDIBNEGA.js";
8
+ import "../../../../../chunks/chunk-QXAJXTXV.js";
9
+ import "../../../../../chunks/chunk-HC6ZOHCS.js";
10
+ export {
11
+ toTransformer
12
+ };
@@ -0,0 +1,2 @@
1
+ import { Types } from '../../types';
2
+ export declare const transformSelected: Types.TransformerGenerator;
@@ -0,0 +1,39 @@
1
+ import {
2
+ transformSelected
3
+ } from "../../../../../chunks/chunk-KXBKJ3GS.js";
4
+ import "../../../../../chunks/chunk-S5XDYLJH.js";
5
+ import "../../../../../chunks/chunk-4RDW62CU.js";
6
+ import "../../../../../chunks/chunk-DMDOCC72.js";
7
+ import "../../../../../chunks/chunk-F5YMP5WU.js";
8
+ import "../../../../../chunks/chunk-3PHPA25U.js";
9
+ import "../../../../../chunks/chunk-SMLKMOAX.js";
10
+ import "../../../../../chunks/chunk-7IGZP4TV.js";
11
+ import "../../../../../chunks/chunk-MDEDNPU5.js";
12
+ import "../../../../../chunks/chunk-3X6RXJBR.js";
13
+ import "../../../../../chunks/chunk-6CM2SWSX.js";
14
+ import "../../../../../chunks/chunk-SH3Y2I5P.js";
15
+ import "../../../../../chunks/chunk-Q52UJOBC.js";
16
+ import "../../../../../chunks/chunk-DBAJ66BR.js";
17
+ import "../../../../../chunks/chunk-F7XWUG2V.js";
18
+ import "../../../../../chunks/chunk-RJ5E22H5.js";
19
+ import "../../../../../chunks/chunk-VRUJR6WR.js";
20
+ import "../../../../../chunks/chunk-K3OQEJI3.js";
21
+ import "../../../../../chunks/chunk-RWUPHV54.js";
22
+ import "../../../../../chunks/chunk-S42P73SC.js";
23
+ import "../../../../../chunks/chunk-FWHUASVA.js";
24
+ import "../../../../../chunks/chunk-2DMWYLFG.js";
25
+ import "../../../../../chunks/chunk-BNB7LEMQ.js";
26
+ import "../../../../../chunks/chunk-DRNK3RLE.js";
27
+ import "../../../../../chunks/chunk-QO64L4KB.js";
28
+ import "../../../../../chunks/chunk-3LVR6KZH.js";
29
+ import "../../../../../chunks/chunk-7QMAYGNV.js";
30
+ import "../../../../../chunks/chunk-YEBOL67V.js";
31
+ import "../../../../../chunks/chunk-GBMHGF7P.js";
32
+ import "../../../../../chunks/chunk-YDIBNEGA.js";
33
+ import "../../../../../chunks/chunk-E6MSDKON.js";
34
+ import "../../../../../chunks/chunk-MF56TTC5.js";
35
+ import "../../../../../chunks/chunk-QXAJXTXV.js";
36
+ import "../../../../../chunks/chunk-HC6ZOHCS.js";
37
+ export {
38
+ transformSelected
39
+ };
@@ -0,0 +1,2 @@
1
+ import { Types } from '../../types';
2
+ export declare const trim: Types.TransformerGenerator;
@@ -0,0 +1,12 @@
1
+ import {
2
+ trim
3
+ } from "../../../../../chunks/chunk-7IGZP4TV.js";
4
+ import "../../../../../chunks/chunk-QO64L4KB.js";
5
+ import "../../../../../chunks/chunk-3LVR6KZH.js";
6
+ import "../../../../../chunks/chunk-YEBOL67V.js";
7
+ import "../../../../../chunks/chunk-YDIBNEGA.js";
8
+ import "../../../../../chunks/chunk-QXAJXTXV.js";
9
+ import "../../../../../chunks/chunk-HC6ZOHCS.js";
10
+ export {
11
+ trim
12
+ };
@@ -0,0 +1,56 @@
1
+ import { Types } from '../types';
2
+ export declare namespace Tree {
3
+ const defaultKeyAttribute = "_key";
4
+ const defaultActionAttribute = "_action";
5
+ const defaultRootKey = "_ROOT_";
6
+ function mergeValues(currentValue: Types.Value, incomingValue: Types.Value, mergeKey: string | number, initiatorTree: Tree): Types.Value;
7
+ function mergeRootNodes(...args: Parameters<typeof mergeNodes>): Element | Text;
8
+ function mergeNodes(nodes: Array<Element | Text>, options?: {
9
+ actionAttribute?: string;
10
+ keyAttribute?: string;
11
+ rootKey?: string;
12
+ }): Element | Text;
13
+ class Tree<T extends Element | Text = Element | Text> {
14
+ readonly node: T;
15
+ readonly name: string | null;
16
+ readonly parent: Tree | null;
17
+ readonly root: Tree;
18
+ readonly isRoot: boolean;
19
+ readonly path: ReadonlyArray<string | number>;
20
+ readonly pathString: string;
21
+ readonly tagName: T extends Element ? Element['tagName'] : null;
22
+ readonly attributes: T extends Element ? ReadonlyArray<Readonly<Attr>> : null;
23
+ readonly subtrees: ReadonlyMap<string | number, Tree>;
24
+ readonly children: ReadonlyArray<Tree>;
25
+ readonly type: 'element' | 'text' | 'null' | 'number' | 'string' | 'boolean' | 'nodelist' | 'array' | 'record' | 'transformer';
26
+ readonly generators: ReadonlyMap<string, Types.TransformerGenerator>;
27
+ keyAttribute: string;
28
+ actionAttribute: string;
29
+ constructor(node: T, parentOrOptions?: Partial<Types.TreeOptions>);
30
+ constructor(node: T, parentOrOptions: Tree, pathFromParent: number | string, options?: Partial<Types.TreeOptions>);
31
+ resolve: Types.Resolver;
32
+ getGenerator(this: Tree, name: string): Types.TransformerGenerator | undefined;
33
+ initValue(this: Tree<T>): string | number | false | NodeListOf<Element | Text> | Types.Value[] | {
34
+ [k: string]: Types.Value;
35
+ } | null;
36
+ getInnerValue(this: Tree<T>, initialValue: ReturnType<typeof this.initValue>): Types.Value;
37
+ wrapInnerValue(this: Tree<T>, innerValue: Types.Value): Types.Value | Types.Transformer;
38
+ private cache;
39
+ private setCache;
40
+ perfCounters: {
41
+ computed: number;
42
+ computeTime: number;
43
+ computeTimeAvg: number;
44
+ cached: number;
45
+ cacheTime: number;
46
+ cacheTimeAvg: number;
47
+ totalTime: number;
48
+ };
49
+ getPerfCounters(): [string, this["perfCounters"]][];
50
+ printPerfCounters(): void;
51
+ callstack: string[];
52
+ pushToEvalCallStack(path: string): void;
53
+ flushEvalCallStack(): void;
54
+ evaluate(this: Tree<T>): Types.Value;
55
+ }
56
+ }
@@ -0,0 +1,39 @@
1
+ import {
2
+ Tree
3
+ } from "../../../../chunks/chunk-KXBKJ3GS.js";
4
+ import "../../../../chunks/chunk-S5XDYLJH.js";
5
+ import "../../../../chunks/chunk-4RDW62CU.js";
6
+ import "../../../../chunks/chunk-DMDOCC72.js";
7
+ import "../../../../chunks/chunk-F5YMP5WU.js";
8
+ import "../../../../chunks/chunk-3PHPA25U.js";
9
+ import "../../../../chunks/chunk-SMLKMOAX.js";
10
+ import "../../../../chunks/chunk-7IGZP4TV.js";
11
+ import "../../../../chunks/chunk-MDEDNPU5.js";
12
+ import "../../../../chunks/chunk-3X6RXJBR.js";
13
+ import "../../../../chunks/chunk-6CM2SWSX.js";
14
+ import "../../../../chunks/chunk-SH3Y2I5P.js";
15
+ import "../../../../chunks/chunk-Q52UJOBC.js";
16
+ import "../../../../chunks/chunk-DBAJ66BR.js";
17
+ import "../../../../chunks/chunk-F7XWUG2V.js";
18
+ import "../../../../chunks/chunk-RJ5E22H5.js";
19
+ import "../../../../chunks/chunk-VRUJR6WR.js";
20
+ import "../../../../chunks/chunk-K3OQEJI3.js";
21
+ import "../../../../chunks/chunk-RWUPHV54.js";
22
+ import "../../../../chunks/chunk-S42P73SC.js";
23
+ import "../../../../chunks/chunk-FWHUASVA.js";
24
+ import "../../../../chunks/chunk-2DMWYLFG.js";
25
+ import "../../../../chunks/chunk-BNB7LEMQ.js";
26
+ import "../../../../chunks/chunk-DRNK3RLE.js";
27
+ import "../../../../chunks/chunk-QO64L4KB.js";
28
+ import "../../../../chunks/chunk-3LVR6KZH.js";
29
+ import "../../../../chunks/chunk-7QMAYGNV.js";
30
+ import "../../../../chunks/chunk-YEBOL67V.js";
31
+ import "../../../../chunks/chunk-GBMHGF7P.js";
32
+ import "../../../../chunks/chunk-YDIBNEGA.js";
33
+ import "../../../../chunks/chunk-E6MSDKON.js";
34
+ import "../../../../chunks/chunk-MF56TTC5.js";
35
+ import "../../../../chunks/chunk-QXAJXTXV.js";
36
+ import "../../../../chunks/chunk-HC6ZOHCS.js";
37
+ export {
38
+ Tree
39
+ };
@@ -0,0 +1,86 @@
1
+ import { Tree } from '../tree';
2
+ export declare namespace Types {
3
+ enum TyperTagName {
4
+ NULL = "null",
5
+ BOOLEAN = "boolean",
6
+ NUMBER = "number",
7
+ STRING = "string",
8
+ TEXT = "text",
9
+ NODELIST = "nodelist",
10
+ ARRAY = "array",
11
+ RECORD = "record"
12
+ }
13
+ type PrimitiveValue = null | string | number | boolean | Element | Text | NodeListOf<Text | Element> | Transformer;
14
+ type Value = PrimitiveValue | Value[] | {
15
+ [k: string]: Value;
16
+ };
17
+ type TransformerHooks = {
18
+ resolver: Tree.Tree['resolve'];
19
+ getGenerator: Tree.Tree['getGenerator'];
20
+ };
21
+ type TransformerErrorReturnType = {
22
+ action: 'ERROR';
23
+ value: Value;
24
+ };
25
+ type TransformerReplaceReturnType = {
26
+ action: 'REPLACE';
27
+ value: Value;
28
+ };
29
+ type TransformerMergeReturnType = {
30
+ action: 'MERGE';
31
+ value: Value;
32
+ };
33
+ type TransformerNullReturnType = {
34
+ action: null;
35
+ };
36
+ type TransformerReturnType = TransformerErrorReturnType | TransformerReplaceReturnType | TransformerMergeReturnType | TransformerNullReturnType;
37
+ type AnonymousTransformer = (currentValue: Value, callerTree: Tree.Tree) => TransformerReturnType;
38
+ type Transformer = AnonymousTransformer & {
39
+ transformerName: string;
40
+ };
41
+ type TransformerGenerator = (name: string, ...args: Value[]) => Transformer;
42
+ type Resolver = (path: Tree.Tree['path']) => Tree.Tree | undefined;
43
+ type TreeOptions = {
44
+ generatorsMap: Map<string, Types.TransformerGenerator>;
45
+ keyAttribute: string;
46
+ actionAttribute: string;
47
+ };
48
+ enum ReductionAction {
49
+ APPEND = "append",
50
+ PREPEND = "prepend",
51
+ REPLACE = "replace"
52
+ }
53
+ type Serialized = {
54
+ type: 'null';
55
+ value: null;
56
+ } | {
57
+ type: 'boolean';
58
+ value: boolean;
59
+ } | {
60
+ type: 'number';
61
+ value: number;
62
+ } | {
63
+ type: 'string';
64
+ value: string;
65
+ } | {
66
+ type: 'text';
67
+ value: string;
68
+ } | {
69
+ type: 'element';
70
+ value: string;
71
+ } | {
72
+ type: 'nodelist';
73
+ value: string;
74
+ } | {
75
+ type: 'array';
76
+ value: Array<Serialized>;
77
+ } | {
78
+ type: 'record';
79
+ value: {
80
+ [k: string]: Serialized;
81
+ };
82
+ } | {
83
+ type: 'transformer';
84
+ value: Transformer;
85
+ };
86
+ }
@@ -0,0 +1,6 @@
1
+ import {
2
+ Types
3
+ } from "../../../../chunks/chunk-7QMAYGNV.js";
4
+ export {
5
+ Types
6
+ };
@@ -0,0 +1,10 @@
1
+ import { Tree } from '../tree';
2
+ import { Types } from '../types';
3
+ export declare namespace Utils {
4
+ export const pathStringToPath: (pathString: Tree.Tree["pathString"]) => Tree.Tree["path"];
5
+ export const pathToPathString: (path: Tree.Tree["path"]) => string;
6
+ type ErrReturn = Types.TransformerErrorReturnType;
7
+ export const makeTransformerError: (value: ErrReturn["value"]) => ErrReturn;
8
+ export const toNamedTransformer: (name: string, anonymous: Types.AnonymousTransformer) => Types.Transformer;
9
+ export {};
10
+ }
@@ -0,0 +1,6 @@
1
+ import {
2
+ Utils
3
+ } from "../../../../chunks/chunk-YEBOL67V.js";
4
+ export {
5
+ Utils
6
+ };
@@ -1,34 +1,66 @@
1
1
  import {
2
- Placeholders
3
- } from "../../chunks/chunk-VYW4IADX.js";
2
+ stringToNodes
3
+ } from "../../chunks/chunk-ZONKYNKA.js";
4
4
  import {
5
- getPositionInsideParent
6
- } from "../../chunks/chunk-VTPRO4NJ.js";
5
+ HyperJson
6
+ } from "../../chunks/chunk-NK557MKV.js";
7
+ import "../../chunks/chunk-KXBKJ3GS.js";
8
+ import "../../chunks/chunk-S5XDYLJH.js";
9
+ import "../../chunks/chunk-4RDW62CU.js";
10
+ import "../../chunks/chunk-DMDOCC72.js";
11
+ import "../../chunks/chunk-F5YMP5WU.js";
12
+ import "../../chunks/chunk-3PHPA25U.js";
13
+ import "../../chunks/chunk-SMLKMOAX.js";
14
+ import "../../chunks/chunk-7IGZP4TV.js";
15
+ import "../../chunks/chunk-MDEDNPU5.js";
16
+ import "../../chunks/chunk-3X6RXJBR.js";
17
+ import "../../chunks/chunk-6CM2SWSX.js";
18
+ import "../../chunks/chunk-SH3Y2I5P.js";
19
+ import "../../chunks/chunk-Q52UJOBC.js";
20
+ import "../../chunks/chunk-DBAJ66BR.js";
21
+ import "../../chunks/chunk-F7XWUG2V.js";
22
+ import "../../chunks/chunk-RJ5E22H5.js";
23
+ import "../../chunks/chunk-VRUJR6WR.js";
24
+ import "../../chunks/chunk-K3OQEJI3.js";
25
+ import "../../chunks/chunk-RWUPHV54.js";
26
+ import "../../chunks/chunk-S42P73SC.js";
27
+ import "../../chunks/chunk-FWHUASVA.js";
28
+ import "../../chunks/chunk-2DMWYLFG.js";
29
+ import "../../chunks/chunk-BNB7LEMQ.js";
30
+ import "../../chunks/chunk-DRNK3RLE.js";
31
+ import "../../chunks/chunk-QO64L4KB.js";
32
+ import "../../chunks/chunk-3LVR6KZH.js";
33
+ import "../../chunks/chunk-7QMAYGNV.js";
34
+ import "../../chunks/chunk-YEBOL67V.js";
7
35
  import {
8
36
  getNodeAncestors
9
37
  } from "../../chunks/chunk-SQZGZ3VT.js";
10
- import {
11
- selectorToElement
12
- } from "../../chunks/chunk-LI5KVXAJ.js";
13
- import {
14
- HyperJson
15
- } from "../../chunks/chunk-DMGR57KA.js";
16
- import "../../chunks/chunk-E6MSDKON.js";
17
- import "../../chunks/chunk-YDIBNEGA.js";
18
38
  import {
19
39
  insertNode
20
40
  } from "../../chunks/chunk-XA4HVHJ4.js";
21
41
  import {
22
- stringToNodes
23
- } from "../../chunks/chunk-GL23YDEH.js";
42
+ getPositionInsideParent
43
+ } from "../../chunks/chunk-VTPRO4NJ.js";
44
+ import {
45
+ Placeholders
46
+ } from "../../chunks/chunk-VYW4IADX.js";
47
+ import {
48
+ selectorToElement
49
+ } from "../../chunks/chunk-OO5SJJDW.js";
24
50
  import {
25
51
  Sanitize
26
- } from "../../chunks/chunk-IFT6HLDW.js";
27
- import "../../chunks/chunk-ZMHKLIP2.js";
28
- import "../../chunks/chunk-GJOU3UAL.js";
29
- import "../../chunks/chunk-WH6BPDAC.js";
30
- import "../../chunks/chunk-QHLQVR3E.js";
52
+ } from "../../chunks/chunk-WECTUHS5.js";
53
+ import "../../chunks/chunk-GBMHGF7P.js";
54
+ import "../../chunks/chunk-YDIBNEGA.js";
55
+ import "../../chunks/chunk-E6MSDKON.js";
56
+ import "../../chunks/chunk-MF56TTC5.js";
57
+ import "../../chunks/chunk-EAY65ZP6.js";
58
+ import "../../chunks/chunk-GDYVCEWA.js";
59
+ import "../../chunks/chunk-73V5RDSG.js";
60
+ import "../../chunks/chunk-4GUDL44X.js";
61
+ import "../../chunks/chunk-2KT7AKRW.js";
31
62
  import "../../chunks/chunk-FENXVJYO.js";
63
+ import "../../chunks/chunk-QHLQVR3E.js";
32
64
  import "../../chunks/chunk-QXAJXTXV.js";
33
65
  import "../../chunks/chunk-HC6ZOHCS.js";
34
66
 
@@ -0,0 +1 @@
1
+ export declare function replaceInElement(inputElement: Element, replaceMap: Map<Element, Element>): Element;
@@ -0,0 +1,6 @@
1
+ import {
2
+ replaceInElement
3
+ } from "../../../chunks/chunk-GBMHGF7P.js";
4
+ export {
5
+ replaceInElement
6
+ };
@@ -1,11 +1,13 @@
1
1
  import {
2
2
  Sanitize
3
- } from "../../../chunks/chunk-IFT6HLDW.js";
4
- import "../../../chunks/chunk-ZMHKLIP2.js";
5
- import "../../../chunks/chunk-GJOU3UAL.js";
6
- import "../../../chunks/chunk-WH6BPDAC.js";
7
- import "../../../chunks/chunk-QHLQVR3E.js";
3
+ } from "../../../chunks/chunk-WECTUHS5.js";
4
+ import "../../../chunks/chunk-EAY65ZP6.js";
5
+ import "../../../chunks/chunk-GDYVCEWA.js";
6
+ import "../../../chunks/chunk-73V5RDSG.js";
7
+ import "../../../chunks/chunk-4GUDL44X.js";
8
+ import "../../../chunks/chunk-2KT7AKRW.js";
8
9
  import "../../../chunks/chunk-FENXVJYO.js";
10
+ import "../../../chunks/chunk-QHLQVR3E.js";
9
11
  export {
10
12
  Sanitize
11
13
  };
@@ -1,11 +1,13 @@
1
1
  import {
2
2
  selectorToElement
3
- } from "../../../chunks/chunk-LI5KVXAJ.js";
4
- import "../../../chunks/chunk-ZMHKLIP2.js";
5
- import "../../../chunks/chunk-GJOU3UAL.js";
6
- import "../../../chunks/chunk-WH6BPDAC.js";
7
- import "../../../chunks/chunk-QHLQVR3E.js";
3
+ } from "../../../chunks/chunk-OO5SJJDW.js";
4
+ import "../../../chunks/chunk-EAY65ZP6.js";
5
+ import "../../../chunks/chunk-GDYVCEWA.js";
6
+ import "../../../chunks/chunk-73V5RDSG.js";
7
+ import "../../../chunks/chunk-4GUDL44X.js";
8
+ import "../../../chunks/chunk-2KT7AKRW.js";
8
9
  import "../../../chunks/chunk-FENXVJYO.js";
10
+ import "../../../chunks/chunk-QHLQVR3E.js";
9
11
  export {
10
12
  selectorToElement
11
13
  };
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  stringToNodes
3
- } from "../../../chunks/chunk-GL23YDEH.js";
4
- import "../../../chunks/chunk-IFT6HLDW.js";
5
- import "../../../chunks/chunk-ZMHKLIP2.js";
6
- import "../../../chunks/chunk-GJOU3UAL.js";
7
- import "../../../chunks/chunk-WH6BPDAC.js";
8
- import "../../../chunks/chunk-QHLQVR3E.js";
3
+ } from "../../../chunks/chunk-ZONKYNKA.js";
4
+ import "../../../chunks/chunk-WECTUHS5.js";
5
+ import "../../../chunks/chunk-EAY65ZP6.js";
6
+ import "../../../chunks/chunk-GDYVCEWA.js";
7
+ import "../../../chunks/chunk-73V5RDSG.js";
8
+ import "../../../chunks/chunk-4GUDL44X.js";
9
+ import "../../../chunks/chunk-2KT7AKRW.js";
9
10
  import "../../../chunks/chunk-FENXVJYO.js";
11
+ import "../../../chunks/chunk-QHLQVR3E.js";
10
12
  export {
11
13
  stringToNodes
12
14
  };
@@ -1,5 +1,4 @@
1
1
  import { Arrays as ArraysNamespace } from './arrays';
2
- import { Async as AsyncNamespace } from './async';
3
2
  import { Booleans as BooleansNamespace } from './booleans';
4
3
  import { Css as CssNamespace } from './css';
5
4
  import { Errors as ErrorsNamespace } from './errors';
@@ -12,7 +11,6 @@ import { Regexps as RegexpsNamespace } from './regexps';
12
11
  import { Strings as StringsNamespace } from './strings';
13
12
  export declare namespace Agnostic {
14
13
  export import Arrays = ArraysNamespace;
15
- export import Async = AsyncNamespace;
16
14
  export import Booleans = BooleansNamespace;
17
15
  export import Css = CssNamespace;
18
16
  export import Errors = ErrorsNamespace;
@@ -1,4 +1,4 @@
1
- export declare namespace WebCrawler {
1
+ export declare namespace Crawler {
2
2
  function create<T extends any>(options: {
3
3
  limit: number;
4
4
  delayMs?: number | (() => number);
@@ -0,0 +1,7 @@
1
+ import {
2
+ Crawler
3
+ } from "../../../chunks/chunk-YUP434IY.js";
4
+ import "../../../chunks/chunk-4CIS3R7T.js";
5
+ export {
6
+ Crawler
7
+ };
@@ -0,0 +1,2 @@
1
+ import { GetWindowReturnType } from '../types';
2
+ export declare function getDocument(): Promise<GetWindowReturnType['document']>;
@@ -0,0 +1,7 @@
1
+ import {
2
+ getDocument
3
+ } from "../../../../chunks/chunk-73V5RDSG.js";
4
+ import "../../../../chunks/chunk-4GUDL44X.js";
5
+ export {
6
+ getDocument
7
+ };
@@ -0,0 +1,2 @@
1
+ import { GetWindowReturnType } from '../types';
2
+ export declare function getWindow(): GetWindowReturnType;
@@ -0,0 +1,2 @@
1
+ import { GetWindowReturnType } from '../types';
2
+ export declare function getWindow(): Promise<GetWindowReturnType>;
@@ -0,0 +1,6 @@
1
+ import {
2
+ getWindow
3
+ } from "../../../../chunks/chunk-4GUDL44X.js";
4
+ export {
5
+ getWindow
6
+ };
@@ -1,3 +1,5 @@
1
+ import { getWindow as getWindowFunction } from './get-window';
2
+ import { getDocument as getDocumentFunction } from './get-document';
1
3
  export declare namespace Crossenv {
2
4
  enum RuntimeName {
3
5
  NODE = "Node.js",
@@ -9,5 +11,6 @@ export declare namespace Crossenv {
9
11
  AWS_LAMBDA = "AWS Lambda"
10
12
  }
11
13
  function detectRuntime(): RuntimeName | null;
12
- function getDocument(): Document | null;
14
+ const getWindow: typeof getWindowFunction;
15
+ const getDocument: typeof getDocumentFunction;
13
16
  }
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  Crossenv
3
- } from "../../../chunks/chunk-GJOU3UAL.js";
3
+ } from "../../../chunks/chunk-GDYVCEWA.js";
4
+ import "../../../chunks/chunk-73V5RDSG.js";
5
+ import "../../../chunks/chunk-4GUDL44X.js";
4
6
  export {
5
7
  Crossenv
6
8
  };
@@ -0,0 +1,3 @@
1
+ import { DOMWindow } from 'jsdom';
2
+ export type CrossenvWindow = Window & typeof globalThis | DOMWindow;
3
+ export type GetWindowReturnType = CrossenvWindow;
@@ -1,15 +1,17 @@
1
1
  import { Assert as AssertNamespace } from './assert';
2
2
  import { Cast as CastNamespace } from './cast';
3
+ import { Crawler as CrawlerNamespace } from './crawler';
3
4
  import { Crossenv as CrossenvNamespace } from './crossenv';
4
5
  import { getCurrentDownlink as getCurrentDownlinkFunc } from './get-current-downlink';
5
6
  import { ConstructorFunction as ConstructorFunctionType, isConstructorFunction as isConstructorFunctionFunc } from './is-constructor-function';
6
7
  import { Nullish as NullishType, isNullish as isNullishFunc, isNotNullish as isNotNullishFunc } from './is-nullish';
7
8
  import { Logs as LogsNamespace } from './logs';
8
9
  import { LoremIpsum as LoremIpsumNamespace } from './lorem-ipsum';
9
- import { Random as RandomNamespace } from './random';
10
+ import { Random as RandomNamespace } from '../random';
10
11
  export declare namespace Misc {
11
12
  export import Assert = AssertNamespace;
12
13
  export import Cast = CastNamespace;
14
+ export import Crawler = CrawlerNamespace;
13
15
  export import Crossenv = CrossenvNamespace;
14
16
  const getCurrentDownlink: typeof getCurrentDownlinkFunc;
15
17
  type ConstructorFunction = ConstructorFunctionType;