@design-edito/tools 0.1.20 → 0.1.22

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 (221) 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 -8
  4. package/agnostic/arrays/is-array-of/index.js +3 -19
  5. package/agnostic/arrays/make/index.d.ts +3 -0
  6. package/agnostic/arrays/make/index.js +6 -0
  7. package/agnostic/arrays/random-pick/index.d.ts +2 -0
  8. package/agnostic/arrays/random-pick/index.js +8 -0
  9. package/agnostic/css/index.js +13 -13
  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 +16 -0
  15. package/agnostic/html/hyper-json/index.js +40 -0
  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.d.ts +2 -0
  73. package/agnostic/html/index.js +50 -10
  74. package/agnostic/html/replace-in-element/index.d.ts +1 -0
  75. package/agnostic/html/replace-in-element/index.js +6 -0
  76. package/agnostic/html/sanitize/index.js +5 -3
  77. package/agnostic/html/selector-to-element/index.js +5 -3
  78. package/agnostic/html/string-to-nodes/index.js +6 -4
  79. package/agnostic/index.d.ts +0 -2
  80. package/agnostic/misc/{web-crawler → crawler}/index.d.ts +1 -1
  81. package/agnostic/misc/crawler/index.js +7 -0
  82. package/agnostic/misc/crossenv/get-document/index.d.ts +2 -0
  83. package/agnostic/misc/crossenv/get-document/index.js +7 -0
  84. package/agnostic/misc/crossenv/get-window/browser.d.ts +2 -0
  85. package/agnostic/misc/crossenv/get-window/index.d.ts +2 -0
  86. package/agnostic/misc/crossenv/get-window/index.js +6 -0
  87. package/agnostic/misc/crossenv/index.d.ts +4 -1
  88. package/agnostic/misc/crossenv/index.js +3 -1
  89. package/agnostic/misc/crossenv/types.d.ts +3 -0
  90. package/agnostic/misc/index.d.ts +5 -1
  91. package/agnostic/misc/index.js +21 -6
  92. package/agnostic/misc/lorem-ipsum/index.d.ts +5 -0
  93. package/agnostic/misc/lorem-ipsum/index.js +12 -0
  94. package/agnostic/numbers/index.js +5 -5
  95. package/agnostic/objects/index.js +4 -4
  96. package/agnostic/optim/index.js +3 -3
  97. package/agnostic/random/index.js +6 -0
  98. package/agnostic/strings/index.js +9 -9
  99. package/agnostic/time/duration/index.d.ts +26 -0
  100. package/agnostic/time/duration/index.js +6 -0
  101. package/agnostic/time/index.d.ts +8 -7
  102. package/agnostic/time/index.js +17 -28
  103. package/agnostic/time/timeout/index.d.ts +1 -0
  104. package/agnostic/time/timeout/index.js +6 -0
  105. package/agnostic/time/transitions/index.js +7 -0
  106. package/agnostic/time/wait/index.js +6 -0
  107. package/chunks/chunk-2DMWYLFG.js +16 -0
  108. package/chunks/chunk-2PI5AZIL.js +211 -0
  109. package/chunks/chunk-3KQRMKQJ.js +27 -0
  110. package/chunks/chunk-3LVR6KZH.js +22 -0
  111. package/chunks/chunk-3PHPA25U.js +18 -0
  112. package/chunks/chunk-3PM7GZ6B.js +33 -0
  113. package/chunks/chunk-3SQJEEBK.js +642 -0
  114. package/chunks/chunk-3UURICGY.js +211 -0
  115. package/chunks/chunk-3X6RXJBR.js +37 -0
  116. package/chunks/{chunk-DQNJQBC6.js → chunk-4CIS3R7T.js} +1 -1
  117. package/chunks/chunk-4F7ZVE7T.js +332 -0
  118. package/chunks/chunk-4GUDL44X.js +13 -0
  119. package/chunks/chunk-4RDW62CU.js +36 -0
  120. package/chunks/chunk-5IR2PWO6.js +211 -0
  121. package/chunks/chunk-6CM2SWSX.js +35 -0
  122. package/chunks/chunk-6EYBQHJS.js +33 -0
  123. package/chunks/chunk-6NYUQXJT.js +109 -0
  124. package/chunks/chunk-6NZCBAT4.js +19 -0
  125. package/chunks/chunk-6RGDWX4A.js +24 -0
  126. package/chunks/chunk-6V23XMYE.js +982 -0
  127. package/chunks/chunk-73V5RDSG.js +13 -0
  128. package/chunks/chunk-7IGZP4TV.js +30 -0
  129. package/chunks/chunk-7QMAYGNV.js +25 -0
  130. package/chunks/chunk-7YW5HL6N.js +168 -0
  131. package/chunks/chunk-AFFLZUW5.js +33 -0
  132. package/chunks/chunk-AMS3FB24.js +85 -0
  133. package/chunks/chunk-AXMPRLPI.js +35 -0
  134. package/chunks/chunk-B6CSCX7J.js +278 -0
  135. package/chunks/chunk-BDHNULU7.js +211 -0
  136. package/chunks/chunk-BNB7LEMQ.js +35 -0
  137. package/chunks/chunk-CECF6UZV.js +29 -0
  138. package/chunks/chunk-DBAJ66BR.js +18 -0
  139. package/chunks/chunk-DGQLPQS2.js +33 -0
  140. package/chunks/chunk-DLLTITVO.js +33 -0
  141. package/chunks/chunk-DMDOCC72.js +18 -0
  142. package/chunks/{chunk-2H4QYFEP.js → chunk-DRH7Q4FL.js} +3 -6
  143. package/chunks/chunk-DRNK3RLE.js +64 -0
  144. package/chunks/{chunk-C5WKMLKU.js → chunk-EAY65ZP6.js} +1 -1
  145. package/chunks/{chunk-4GDNHUCZ.js → chunk-ENMBK6H7.js} +2 -2
  146. package/chunks/chunk-F5YMP5WU.js +18 -0
  147. package/chunks/chunk-F7EVMWVG.js +27 -0
  148. package/chunks/chunk-F7XWUG2V.js +18 -0
  149. package/chunks/chunk-FCU6IHKD.js +15 -0
  150. package/chunks/chunk-FFOATPL4.js +211 -0
  151. package/chunks/chunk-FWHUASVA.js +22 -0
  152. package/chunks/chunk-GBMHGF7P.js +20 -0
  153. package/chunks/{chunk-GJOU3UAL.js → chunk-GDYVCEWA.js} +8 -6
  154. package/chunks/chunk-GNBIAWSY.js +278 -0
  155. package/chunks/chunk-GQSPY2CV.js +19 -0
  156. package/chunks/chunk-HDALT7XM.js +620 -0
  157. package/chunks/chunk-HUKHWFVL.js +19 -0
  158. package/chunks/chunk-IGD53YL5.js +870 -0
  159. package/chunks/chunk-ILEM73XB.js +981 -0
  160. package/chunks/chunk-IPB3U2PD.js +278 -0
  161. package/chunks/chunk-JY3QZ2YO.js +211 -0
  162. package/chunks/chunk-K3OQEJI3.js +33 -0
  163. package/chunks/chunk-KXBKJ3GS.js +642 -0
  164. package/chunks/chunk-LCFDDWJR.js +278 -0
  165. package/chunks/chunk-LGECI2WL.js +306 -0
  166. package/chunks/chunk-LGUEB5L5.js +211 -0
  167. package/chunks/chunk-LI6QDZCA.js +211 -0
  168. package/chunks/chunk-LYMZZ4BB.js +22 -0
  169. package/chunks/chunk-MDEDNPU5.js +38 -0
  170. package/chunks/chunk-MQHKEGP4.js +33 -0
  171. package/chunks/chunk-NF5ACCXZ.js +211 -0
  172. package/chunks/chunk-NK557MKV.js +35 -0
  173. package/chunks/chunk-NWMEWFTK.js +33 -0
  174. package/chunks/chunk-O5OTBN22.js +35 -0
  175. package/chunks/chunk-O7MDUYEF.js +211 -0
  176. package/chunks/{chunk-FYHRUYTU.js → chunk-OO5SJJDW.js} +2 -5
  177. package/chunks/chunk-Q52UJOBC.js +18 -0
  178. package/chunks/chunk-QFEF4EET.js +211 -0
  179. package/chunks/chunk-QHSVCGLD.js +280 -0
  180. package/chunks/chunk-QO64L4KB.js +97 -0
  181. package/chunks/{chunk-WLL3FNVL.js → chunk-R6KCN6CK.js} +1 -1
  182. package/chunks/chunk-RJ5E22H5.js +15 -0
  183. package/chunks/chunk-RLAZR3NL.js +8 -0
  184. package/chunks/chunk-RWUPHV54.js +25 -0
  185. package/chunks/chunk-S2757FI3.js +36 -0
  186. package/chunks/chunk-S42P73SC.js +30 -0
  187. package/chunks/chunk-S5XDYLJH.js +18 -0
  188. package/chunks/chunk-SCM6NACT.js +15 -0
  189. package/chunks/chunk-SH3Y2I5P.js +18 -0
  190. package/chunks/chunk-SMLKMOAX.js +18 -0
  191. package/chunks/chunk-TATRVKBS.js +211 -0
  192. package/chunks/chunk-UODQZRY2.js +620 -0
  193. package/chunks/chunk-UOULDS6J.js +33 -0
  194. package/chunks/chunk-UUDXUSI5.js +211 -0
  195. package/chunks/{chunk-6ETCY4VK.js → chunk-UWAMSJ2X.js} +3 -6
  196. package/chunks/chunk-UZUXLD2Q.js +35 -0
  197. package/chunks/chunk-VA6HXRX4.js +211 -0
  198. package/chunks/chunk-VRUJR6WR.js +39 -0
  199. package/chunks/chunk-W6YBEEZM.js +211 -0
  200. package/chunks/chunk-WECTUHS5.js +127 -0
  201. package/chunks/chunk-WH6BPDAC.js +17 -0
  202. package/chunks/chunk-YE5HI3RK.js +211 -0
  203. package/chunks/chunk-YEBOL67V.js +32 -0
  204. package/chunks/chunk-YS6WMSWC.js +15 -0
  205. package/{agnostic/misc/web-crawler/index.js → chunks/chunk-YUP434IY.js} +8 -7
  206. package/chunks/chunk-YYE2MVZO.js +211 -0
  207. package/chunks/chunk-Z7ZDDBV5.js +18 -0
  208. package/chunks/chunk-ZB73RE7P.js +35 -0
  209. package/chunks/chunk-ZONKYNKA.js +28 -0
  210. package/package.json +4 -1
  211. package/agnostic/async/index.d.ts +0 -8
  212. package/agnostic/async/index.js +0 -20
  213. package/agnostic/async/timeout-call/index.d.ts +0 -1
  214. package/agnostic/async/timeout-call/index.js +0 -6
  215. package/agnostic/async/transitions/index.js +0 -7
  216. package/agnostic/async/wait/index.js +0 -6
  217. package/agnostic/misc/random/index.js +0 -6
  218. package/chunks/chunk-4VC5PT5T.js +0 -13
  219. /package/agnostic/{misc/random → random}/index.d.ts +0 -0
  220. /package/agnostic/{async → time}/transitions/index.d.ts +0 -0
  221. /package/agnostic/{async → time}/wait/index.d.ts +0 -0
@@ -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,5 +1,6 @@
1
1
  import { getNodeAncestors as getNodeAncestorsFunc } from './get-node-ancestors';
2
2
  import { getPositionInsideParent as getPositionInsideParentFunc } from './get-position-inside-parent';
3
+ import { HyperJson as HyperJsonNamespace } from './hyper-json';
3
4
  import { InsertNodePosition as InsertNodePositionType, insertNode as insertNodeFunc } from './insert-node';
4
5
  import { Placeholders as PlaceholdersNamespace } from './placeholders';
5
6
  import { Sanitize as SanitizeNamespace } from './sanitize';
@@ -8,6 +9,7 @@ import { stringToNodes as stringToNodesFunc } from './string-to-nodes';
8
9
  export declare namespace Html {
9
10
  const getNodeAncestors: typeof getNodeAncestorsFunc;
10
11
  const getPositionInsideParent: typeof getPositionInsideParentFunc;
12
+ export import HyperJson = HyperJsonNamespace;
11
13
  type InsertNodePosition = InsertNodePositionType;
12
14
  const insertNode: typeof insertNodeFunc;
13
15
  export import Placeholders = PlaceholdersNamespace;
@@ -1,35 +1,75 @@
1
+ import {
2
+ stringToNodes
3
+ } from "../../chunks/chunk-ZONKYNKA.js";
4
+ import {
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";
1
35
  import {
2
36
  getNodeAncestors
3
37
  } from "../../chunks/chunk-SQZGZ3VT.js";
38
+ import {
39
+ insertNode
40
+ } from "../../chunks/chunk-XA4HVHJ4.js";
4
41
  import {
5
42
  getPositionInsideParent
6
43
  } from "../../chunks/chunk-VTPRO4NJ.js";
7
44
  import {
8
45
  Placeholders
9
46
  } from "../../chunks/chunk-VYW4IADX.js";
10
- import {
11
- insertNode
12
- } from "../../chunks/chunk-XA4HVHJ4.js";
13
47
  import {
14
48
  selectorToElement
15
- } from "../../chunks/chunk-FYHRUYTU.js";
16
- import {
17
- stringToNodes
18
- } from "../../chunks/chunk-6ETCY4VK.js";
49
+ } from "../../chunks/chunk-OO5SJJDW.js";
19
50
  import {
20
51
  Sanitize
21
- } from "../../chunks/chunk-2H4QYFEP.js";
22
- import "../../chunks/chunk-C5WKMLKU.js";
23
- import "../../chunks/chunk-GJOU3UAL.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";
24
61
  import "../../chunks/chunk-2KT7AKRW.js";
25
62
  import "../../chunks/chunk-FENXVJYO.js";
26
63
  import "../../chunks/chunk-QHLQVR3E.js";
64
+ import "../../chunks/chunk-QXAJXTXV.js";
65
+ import "../../chunks/chunk-HC6ZOHCS.js";
27
66
 
28
67
  // src/agnostic/html/index.ts
29
68
  var Html;
30
69
  ((Html2) => {
31
70
  Html2.getNodeAncestors = getNodeAncestors;
32
71
  Html2.getPositionInsideParent = getPositionInsideParent;
72
+ Html2.HyperJson = HyperJson;
33
73
  Html2.insertNode = insertNode;
34
74
  Html2.Placeholders = Placeholders;
35
75
  Html2.Sanitize = Sanitize;
@@ -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,8 +1,10 @@
1
1
  import {
2
2
  Sanitize
3
- } from "../../../chunks/chunk-2H4QYFEP.js";
4
- import "../../../chunks/chunk-C5WKMLKU.js";
5
- import "../../../chunks/chunk-GJOU3UAL.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";
6
8
  import "../../../chunks/chunk-2KT7AKRW.js";
7
9
  import "../../../chunks/chunk-FENXVJYO.js";
8
10
  import "../../../chunks/chunk-QHLQVR3E.js";
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  selectorToElement
3
- } from "../../../chunks/chunk-FYHRUYTU.js";
4
- import "../../../chunks/chunk-C5WKMLKU.js";
5
- import "../../../chunks/chunk-GJOU3UAL.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";
6
8
  import "../../../chunks/chunk-2KT7AKRW.js";
7
9
  import "../../../chunks/chunk-FENXVJYO.js";
8
10
  import "../../../chunks/chunk-QHLQVR3E.js";
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  stringToNodes
3
- } from "../../../chunks/chunk-6ETCY4VK.js";
4
- import "../../../chunks/chunk-2H4QYFEP.js";
5
- import "../../../chunks/chunk-C5WKMLKU.js";
6
- import "../../../chunks/chunk-GJOU3UAL.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";
7
9
  import "../../../chunks/chunk-2KT7AKRW.js";
8
10
  import "../../../chunks/chunk-FENXVJYO.js";
9
11
  import "../../../chunks/chunk-QHLQVR3E.js";
@@ -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,14 +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
- import { Random as RandomNamespace } from './random';
9
+ import { LoremIpsum as LoremIpsumNamespace } from './lorem-ipsum';
10
+ import { Random as RandomNamespace } from '../random';
9
11
  export declare namespace Misc {
10
12
  export import Assert = AssertNamespace;
11
13
  export import Cast = CastNamespace;
14
+ export import Crawler = CrawlerNamespace;
12
15
  export import Crossenv = CrossenvNamespace;
13
16
  const getCurrentDownlink: typeof getCurrentDownlinkFunc;
14
17
  type ConstructorFunction = ConstructorFunctionType;
@@ -18,5 +21,6 @@ export declare namespace Misc {
18
21
  const isNullish: typeof isNullishFunc;
19
22
  const isNotNullish: typeof isNotNullishFunc;
20
23
  export import Logs = LogsNamespace;
24
+ export import LoremIpsum = LoremIpsumNamespace;
21
25
  export import Random = RandomNamespace;
22
26
  }