@design-edito/tools 0.1.39 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. package/agnostic/css/index.js +11 -11
  2. package/agnostic/errors/index.js +2 -2
  3. package/agnostic/html/hyper-json/cast/index.d.ts +8 -14
  4. package/agnostic/html/hyper-json/cast/index.js +13 -8
  5. package/agnostic/html/hyper-json/index.d.ts +8 -4
  6. package/agnostic/html/hyper-json/index.js +14 -9
  7. package/agnostic/html/hyper-json/method/index.d.ts +7 -0
  8. package/agnostic/html/hyper-json/method/index.js +6 -0
  9. package/agnostic/html/hyper-json/serialize/index.d.ts +2 -2
  10. package/agnostic/html/hyper-json/serialize/index.js +4 -1
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.d.ts +4 -0
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +21 -0
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.d.ts +3 -0
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +21 -0
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.d.ts +2 -0
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +21 -0
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.d.ts +6 -0
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +21 -0
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.d.ts +5 -0
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +21 -0
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.d.ts +4 -0
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +21 -0
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.d.ts +2 -0
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +21 -0
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.d.ts +4 -0
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +21 -0
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.d.ts +2 -0
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +21 -0
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.d.ts +4 -0
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +21 -0
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.d.ts +4 -0
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +21 -0
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.d.ts +5 -0
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +23 -0
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.d.ts +8 -0
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +21 -0
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.d.ts +4 -0
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +21 -0
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.d.ts +5 -0
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +21 -0
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.d.ts +4 -0
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +21 -0
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.d.ts +4 -0
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +21 -0
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.d.ts +1 -0
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +21 -0
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.d.ts +5 -0
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +21 -0
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.d.ts +2 -0
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +21 -0
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.d.ts +2 -0
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +21 -0
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.d.ts +6 -0
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +21 -0
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.d.ts +2 -0
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +21 -0
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.d.ts +2 -0
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +21 -0
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.d.ts +4 -0
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +21 -0
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.d.ts +2 -0
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +21 -0
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +5 -0
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +21 -0
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.d.ts +3 -0
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +21 -0
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +4 -0
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +21 -0
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +6 -0
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +21 -0
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.d.ts +5 -0
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +21 -0
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.d.ts +4 -0
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +21 -0
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +5 -0
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +21 -0
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.d.ts +4 -0
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.js +21 -0
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +4 -0
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +21 -0
  81. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.d.ts +5 -0
  82. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +21 -0
  83. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.d.ts +5 -0
  84. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +21 -0
  85. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.d.ts +2 -0
  86. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +21 -0
  87. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.d.ts +2 -0
  88. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +21 -0
  89. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +2 -0
  90. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +21 -0
  91. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.d.ts +3 -0
  92. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +21 -0
  93. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.d.ts +4 -0
  94. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +21 -0
  95. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.d.ts +2 -0
  96. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +21 -0
  97. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.d.ts +2 -0
  98. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +21 -0
  99. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.d.ts +2 -0
  100. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +21 -0
  101. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.d.ts +2 -0
  102. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +21 -0
  103. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.d.ts +2 -0
  104. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +21 -0
  105. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.d.ts +2 -0
  106. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +21 -0
  107. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.d.ts +9 -0
  108. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +21 -0
  109. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.d.ts +4 -0
  110. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +21 -0
  111. package/agnostic/html/hyper-json/smart-tags/index.d.ts +4 -0
  112. package/agnostic/html/hyper-json/smart-tags/index.js +9 -0
  113. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +2 -0
  114. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +10 -0
  115. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +2 -0
  116. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +10 -0
  117. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.d.ts +4 -0
  118. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +21 -0
  119. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.d.ts +4 -0
  120. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +21 -0
  121. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.d.ts +4 -0
  122. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +21 -0
  123. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +2 -0
  124. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +21 -0
  125. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts +2 -0
  126. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +21 -0
  127. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +4 -0
  128. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +21 -0
  129. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +2 -0
  130. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +10 -0
  131. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.d.ts +4 -0
  132. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +21 -0
  133. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.d.ts +4 -0
  134. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +21 -0
  135. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.d.ts +7 -0
  136. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +23 -0
  137. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.d.ts +4 -0
  138. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +21 -0
  139. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.d.ts +4 -0
  140. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +21 -0
  141. package/agnostic/html/hyper-json/transformer/index.d.ts +33 -0
  142. package/agnostic/html/hyper-json/transformer/index.js +8 -0
  143. package/agnostic/html/hyper-json/tree/index.d.ts +50 -41
  144. package/agnostic/html/hyper-json/tree/index.js +13 -8
  145. package/agnostic/html/hyper-json/types/index.d.ts +138 -84
  146. package/agnostic/html/hyper-json/types/index.js +1 -1
  147. package/agnostic/html/hyper-json/utils/index.d.ts +49 -8
  148. package/agnostic/html/hyper-json/utils/index.js +13 -8
  149. package/agnostic/html/index.js +24 -19
  150. package/agnostic/html/replace-in-element/index.js +20 -3
  151. package/agnostic/html/sanitize/index.js +6 -6
  152. package/agnostic/html/selector-to-element/index.js +6 -6
  153. package/agnostic/html/string-to-nodes/index.js +7 -7
  154. package/agnostic/misc/crossenv/index.js +2 -2
  155. package/agnostic/misc/index.js +9 -9
  156. package/agnostic/misc/logs/index.js +2 -2
  157. package/agnostic/misc/lorem-ipsum/index.js +5 -5
  158. package/agnostic/misc/outcome/index.js +3 -16
  159. package/agnostic/numbers/index.js +6 -6
  160. package/agnostic/objects/deep-get-property/index.d.ts +1 -0
  161. package/agnostic/objects/deep-get-property/index.js +7 -0
  162. package/agnostic/objects/index.d.ts +2 -0
  163. package/agnostic/objects/index.js +15 -11
  164. package/agnostic/optim/index.js +3 -3
  165. package/agnostic/random/index.js +2 -2
  166. package/agnostic/strings/index.js +5 -5
  167. package/agnostic/time/index.js +3 -3
  168. package/chunks/chunk-2G5MFJ66.js +2420 -0
  169. package/chunks/chunk-7VL2O6SQ.js +211 -0
  170. package/chunks/chunk-BKO7GLC2.js +133 -0
  171. package/chunks/chunk-DLGA4UD5.js +37 -0
  172. package/chunks/chunk-EJEG2LDE.js +2427 -0
  173. package/chunks/chunk-FHLCPVND.js +23 -0
  174. package/chunks/chunk-FOLCH72D.js +211 -0
  175. package/chunks/chunk-GPWFYPER.js +211 -0
  176. package/chunks/chunk-JMU5PDBD.js +20 -0
  177. package/chunks/chunk-MAP7OSVR.js +37 -0
  178. package/chunks/chunk-PMYUC6VD.js +37 -0
  179. package/chunks/chunk-QAVYONH6.js +20 -0
  180. package/chunks/chunk-QIXAGMCI.js +211 -0
  181. package/chunks/chunk-RW7VAKJW.js +15 -0
  182. package/chunks/chunk-SKMCIFS3.js +27 -0
  183. package/chunks/chunk-SR2YFPJZ.js +2419 -0
  184. package/chunks/chunk-SXRWMH3U.js +78 -0
  185. package/chunks/chunk-UT2J62LH.js +37 -0
  186. package/chunks/chunk-VDNIN3V5.js +23 -0
  187. package/chunks/chunk-XEQ2PBT2.js +20 -0
  188. package/chunks/chunk-XPRBKRSB.js +37 -0
  189. package/chunks/chunk-YGJHHWBJ.js +37 -0
  190. package/chunks/chunk-YMNBUQVR.js +2420 -0
  191. package/chunks/chunk-YYE7TVB6.js +2420 -0
  192. package/node/files/index.js +3 -3
  193. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { Types } from '../../../types';
2
+ type Output = NodeListOf<Element | Text>;
3
+ export declare const nodelist: [string, Types.SmartTags.SmartTag<Types.Tree.RestingValue, Types.Tree.RestingArrayValue, Output>];
4
+ export {};
@@ -0,0 +1,21 @@
1
+ import {
2
+ nodelist
3
+ } from "../../../../../../chunks/chunk-SR2YFPJZ.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-SXRWMH3U.js";
6
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
9
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../../../chunks/chunk-BKO7GLC2.js";
11
+ import "../../../../../../chunks/chunk-RW7VAKJW.js";
12
+ import "../../../../../../chunks/chunk-XA4HVHJ4.js";
13
+ import "../../../../../../chunks/chunk-E6MSDKON.js";
14
+ import "../../../../../../chunks/chunk-YDIBNEGA.js";
15
+ import "../../../../../../chunks/chunk-XNF5MLCQ.js";
16
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
17
+ import "../../../../../../chunks/chunk-ZTDVUXPR.js";
18
+ import "../../../../../../chunks/chunk-RLJOYG64.js";
19
+ export {
20
+ nodelist
21
+ };
@@ -0,0 +1,2 @@
1
+ import { Types } from '../../../types';
2
+ export declare const nullFunc: [string, Types.SmartTags.SmartTag<Types.Tree.RestingValue, Types.Tree.RestingArrayValue, null>];
@@ -0,0 +1,10 @@
1
+ import {
2
+ nullFunc
3
+ } from "../../../../../../chunks/chunk-QAVYONH6.js";
4
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
5
+ import "../../../../../../chunks/chunk-BKO7GLC2.js";
6
+ import "../../../../../../chunks/chunk-RW7VAKJW.js";
7
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
8
+ export {
9
+ nullFunc
10
+ };
@@ -0,0 +1,4 @@
1
+ type Main = null | boolean | number | string | Text;
2
+ type Args = Array<null | boolean | number | string | Text>;
3
+ export declare const number: [string, import("../../../types").Types.SmartTags.SmartTag<Main, Args, number>];
4
+ export {};
@@ -0,0 +1,21 @@
1
+ import {
2
+ number
3
+ } from "../../../../../../chunks/chunk-SR2YFPJZ.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-SXRWMH3U.js";
6
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
9
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../../../chunks/chunk-BKO7GLC2.js";
11
+ import "../../../../../../chunks/chunk-RW7VAKJW.js";
12
+ import "../../../../../../chunks/chunk-XA4HVHJ4.js";
13
+ import "../../../../../../chunks/chunk-E6MSDKON.js";
14
+ import "../../../../../../chunks/chunk-YDIBNEGA.js";
15
+ import "../../../../../../chunks/chunk-XNF5MLCQ.js";
16
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
17
+ import "../../../../../../chunks/chunk-ZTDVUXPR.js";
18
+ import "../../../../../../chunks/chunk-RLJOYG64.js";
19
+ export {
20
+ number
21
+ };
@@ -0,0 +1,4 @@
1
+ import { Types } from '../../../types';
2
+ type Args = Types.Tree.RestingRecordValue[];
3
+ export declare const record: [string, Types.SmartTags.SmartTag<Types.Tree.RestingRecordValue, Args, Types.Tree.RestingRecordValue>];
4
+ export {};
@@ -0,0 +1,21 @@
1
+ import {
2
+ record
3
+ } from "../../../../../../chunks/chunk-SR2YFPJZ.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-SXRWMH3U.js";
6
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
9
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../../../chunks/chunk-BKO7GLC2.js";
11
+ import "../../../../../../chunks/chunk-RW7VAKJW.js";
12
+ import "../../../../../../chunks/chunk-XA4HVHJ4.js";
13
+ import "../../../../../../chunks/chunk-E6MSDKON.js";
14
+ import "../../../../../../chunks/chunk-YDIBNEGA.js";
15
+ import "../../../../../../chunks/chunk-XNF5MLCQ.js";
16
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
17
+ import "../../../../../../chunks/chunk-ZTDVUXPR.js";
18
+ import "../../../../../../chunks/chunk-RLJOYG64.js";
19
+ export {
20
+ record
21
+ };
@@ -0,0 +1,7 @@
1
+ import { Types } from '../../../types';
2
+ type Main = string | Text;
3
+ type Args = [];
4
+ type Output = Types.Tree.RestingValue;
5
+ export declare const func: Types.Transformations.Function<Main, Args, Output>;
6
+ export declare const ref: [string, Types.SmartTags.SmartTag<Main, [], Types.Tree.RestingValue>];
7
+ export {};
@@ -0,0 +1,23 @@
1
+ import {
2
+ func,
3
+ ref
4
+ } from "../../../../../../chunks/chunk-SR2YFPJZ.js";
5
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
6
+ import "../../../../../../chunks/chunk-SXRWMH3U.js";
7
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
8
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
9
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
10
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
11
+ import "../../../../../../chunks/chunk-BKO7GLC2.js";
12
+ import "../../../../../../chunks/chunk-RW7VAKJW.js";
13
+ import "../../../../../../chunks/chunk-XA4HVHJ4.js";
14
+ import "../../../../../../chunks/chunk-E6MSDKON.js";
15
+ import "../../../../../../chunks/chunk-YDIBNEGA.js";
16
+ import "../../../../../../chunks/chunk-XNF5MLCQ.js";
17
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
18
+ import "../../../../../../chunks/chunk-ZTDVUXPR.js";
19
+ import "../../../../../../chunks/chunk-RLJOYG64.js";
20
+ export {
21
+ func,
22
+ ref
23
+ };
@@ -0,0 +1,4 @@
1
+ type Main = null | boolean | number | string | Text | Element | NodeListOf<Element | Text>;
2
+ type Args = Array<null | boolean | number | string | Text | Element | NodeListOf<Element | Text>>;
3
+ export declare const string: [string, import("../../../types").Types.SmartTags.SmartTag<Main, Args, string>];
4
+ export {};
@@ -0,0 +1,21 @@
1
+ import {
2
+ string
3
+ } from "../../../../../../chunks/chunk-SR2YFPJZ.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-SXRWMH3U.js";
6
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
9
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../../../chunks/chunk-BKO7GLC2.js";
11
+ import "../../../../../../chunks/chunk-RW7VAKJW.js";
12
+ import "../../../../../../chunks/chunk-XA4HVHJ4.js";
13
+ import "../../../../../../chunks/chunk-E6MSDKON.js";
14
+ import "../../../../../../chunks/chunk-YDIBNEGA.js";
15
+ import "../../../../../../chunks/chunk-XNF5MLCQ.js";
16
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
17
+ import "../../../../../../chunks/chunk-ZTDVUXPR.js";
18
+ import "../../../../../../chunks/chunk-RLJOYG64.js";
19
+ export {
20
+ string
21
+ };
@@ -0,0 +1,4 @@
1
+ type Main = null | boolean | number | string | Text | Element | NodeListOf<Element | Text>;
2
+ type Args = Array<null | boolean | number | string | Text | Element | NodeListOf<Element | Text>>;
3
+ export declare const text: [string, import("../../../types").Types.SmartTags.SmartTag<Main, Args, Text>];
4
+ export {};
@@ -0,0 +1,21 @@
1
+ import {
2
+ text
3
+ } from "../../../../../../chunks/chunk-SR2YFPJZ.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-SXRWMH3U.js";
6
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
9
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../../../chunks/chunk-BKO7GLC2.js";
11
+ import "../../../../../../chunks/chunk-RW7VAKJW.js";
12
+ import "../../../../../../chunks/chunk-XA4HVHJ4.js";
13
+ import "../../../../../../chunks/chunk-E6MSDKON.js";
14
+ import "../../../../../../chunks/chunk-YDIBNEGA.js";
15
+ import "../../../../../../chunks/chunk-XNF5MLCQ.js";
16
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
17
+ import "../../../../../../chunks/chunk-ZTDVUXPR.js";
18
+ import "../../../../../../chunks/chunk-RLJOYG64.js";
19
+ export {
20
+ text
21
+ };
@@ -0,0 +1,33 @@
1
+ import { Outcome } from '~/agnostic/misc/outcome';
2
+ import { Method } from '../method';
3
+ import { Tree as TreeNamespace } from '../tree';
4
+ import { Types } from '../types';
5
+ export declare class Transformer<Main extends Types.Tree.RestingValue = Types.Tree.RestingValue, Args extends Types.Tree.RestingArrayValue = Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue = Types.Tree.RestingValue> {
6
+ name: string;
7
+ mode: Types.Tree.Mode;
8
+ innerValue: Types.Tree.RestingValue;
9
+ typeChecks: {
10
+ mainValue: (mainValue: Types.Tree.RestingValue) => Outcome.Either<Main, {
11
+ expected: string;
12
+ found: string;
13
+ }>;
14
+ argsValue: (argsValue: Types.Tree.RestingArrayValue, mainValue: Main) => Outcome.Either<Args, {
15
+ expected: string;
16
+ found: string;
17
+ position?: number;
18
+ }>;
19
+ };
20
+ func: Types.Transformations.Function<Main, Args, Output>;
21
+ sourceTree: TreeNamespace.Tree;
22
+ static clone<Main extends Types.Tree.RestingValue, Args extends Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue>(transformer: Transformer<Main, Args, Output>): Transformer<Main, Args, Output>;
23
+ constructor(name: Transformer<Main, Args, Output>['name'], mode: Transformer<Main, Args, Output>['mode'], innerValue: Transformer<Main, Args, Output>['innerValue'], typeChecks: Transformer<Main, Args, Output>['typeChecks'], func: Transformer<Main, Args, Output>['func'], sourceTree: Transformer<Main, Args, Output>['sourceTree']);
24
+ getMainAndArgsValue(outerValue: Types.Tree.RestingValue): {
25
+ mainValue: Types.Tree.RestingValue;
26
+ argsValue: Types.Tree.RestingArrayValue;
27
+ };
28
+ makeMainValueError(mainValue: Types.Tree.RestingValue, argsValue: Types.Tree.RestingArrayValue, expected: string, found: string, details?: any): Types.Transformations.MainValueFailurePayload;
29
+ makeArgsValueError(mainValue: Types.Tree.RestingValue, argsValue: Types.Tree.RestingArrayValue, expected: string, found: string, position?: number, details?: any): Types.Transformations.ArgsValueFailurePayload;
30
+ makeTransformationError(mainValue: Types.Tree.RestingValue, argsValue: Types.Tree.RestingArrayValue, details?: any): Types.Transformations.TransformationFailurePayload;
31
+ apply(outerValue: Types.Tree.RestingValue): Types.Transformations.Output;
32
+ toMethod(): Method<Main, Args, Output>;
33
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ Transformer
3
+ } from "../../../../chunks/chunk-BKO7GLC2.js";
4
+ import "../../../../chunks/chunk-RW7VAKJW.js";
5
+ import "../../../../chunks/chunk-JMU5PDBD.js";
6
+ export {
7
+ Transformer
8
+ };
@@ -1,45 +1,47 @@
1
1
  import { Types } from '../types';
2
2
  export declare namespace Tree {
3
- export const defaultKeyAttribute = "_key";
4
- export const defaultActionAttribute = "_action";
5
- export const defaultRootKey = "_ROOT_";
6
- export function mergeValues(currentValue: Types.Value, incomingValue: Types.Value, mergeKey: string | number, initiatorTree: Tree): Types.Value;
7
- type MergeNodesOptions = {
8
- actionAttribute?: string;
9
- keyAttribute?: string;
10
- rootKey?: string;
11
- };
12
- export function mergeNodes(nodes: Array<Element | Text>, options?: MergeNodesOptions): Element | Text;
13
- export function mergeRootNodes(...args: Parameters<typeof mergeNodes>): Element | Text;
14
- export function from(nodes: Array<Element | Text>, options?: Partial<Types.TreeOptions & MergeNodesOptions>): Tree;
15
- export class Tree<T extends Element | Text = Element | Text> {
16
- readonly node: T;
17
- readonly name: string | null;
3
+ class Tree {
4
+ readonly node: Element | Text;
5
+ readonly options: Types.Tree.Options;
18
6
  readonly parent: Tree | null;
7
+ readonly parents: Tree[];
8
+ readonly pathFromParent: string | number | null;
19
9
  readonly root: Tree;
20
10
  readonly isRoot: boolean;
21
- readonly path: ReadonlyArray<string | number>;
11
+ readonly path: Array<string | number>;
22
12
  readonly pathString: string;
23
- readonly tagName: T extends Element ? Element['tagName'] : null;
24
- readonly attributes: T extends Element ? ReadonlyArray<Readonly<Attr>> : null;
13
+ readonly attributes: ReadonlyArray<Readonly<Attr>> | null;
14
+ readonly isMethod: boolean;
15
+ readonly tagName: string | null;
16
+ readonly smartTagName: string | null;
17
+ readonly smartTagsRegister: Map<string, Types.SmartTags.SmartTag<any, any, any>>;
18
+ readonly smartTagData: Types.SmartTags.SmartTag | null;
19
+ readonly mode: Types.Tree.Mode;
20
+ readonly isPreserved: boolean;
21
+ readonly isLiteral: boolean;
22
+ readonly isolationInitType: Exclude<Types.Tree.ValueTypeName, 'transformer' | 'method'>;
25
23
  readonly subtrees: ReadonlyMap<string | number, Tree>;
26
- readonly children: ReadonlyArray<Tree>;
27
- readonly type: 'any' | 'element' | 'text' | 'null' | 'number' | 'string' | 'boolean' | 'nodelist' | 'array' | 'record' | 'transformer' | 'literal';
28
- readonly generators: ReadonlyMap<string, Types.TransformerGenerator>;
29
- keyAttribute: string;
30
- actionAttribute: string;
31
- static fillOptions(options: Partial<Types.TreeOptions>): Types.TreeOptions;
32
- constructor(node: T, parentOrOptions?: Partial<Types.TreeOptions>);
33
- constructor(node: T, parentOrOptions: Tree, pathFromParent: number | string, options?: Partial<Types.TreeOptions>);
34
- resolve: Types.Resolver;
35
- getGenerator(this: Tree, name: string): Types.TransformerGenerator | undefined;
36
- initValue(this: Tree<T>): string | number | false | NodeListOf<Element | Text> | Types.Value[] | {
37
- [k: string]: Types.Value;
38
- } | null;
39
- getInnerValue(this: Tree<T>, initialValue: ReturnType<typeof this.initValue>): Types.Value;
40
- wrapInnerValue(this: Tree<T>, innerValue: Types.Value): Types.Value | Types.Transformer;
41
- private cache;
42
- private setCache;
24
+ static actionAttribute: string;
25
+ static keyAttribute: string;
26
+ static methodAttribute: string;
27
+ static initAttribute: string;
28
+ static modeAttribute: string;
29
+ static preserveAttribute: string;
30
+ static literalAttribute: string;
31
+ static defaultOptions: Types.Tree.Options;
32
+ static from(nodes: Element[], options: Types.Tree.Options): Tree;
33
+ constructor(node: Element | Text, parent: null, pathFromParent: null, options?: Types.Tree.Options);
34
+ constructor(node: Element | Text, parent: Tree, pathFromParent: string | number, options?: Types.Tree.Options);
35
+ resolve: Types.Tree.Resolver;
36
+ variablesStore: Map<string, Types.Tree.Serialized>;
37
+ setVariable(name: string, value: Types.Tree.RestingValue): void;
38
+ getVariable(name: string): Types.Tree.RestingValue | undefined;
39
+ private performSafetyChecks;
40
+ private computeValue;
41
+ private enforceEvaluation;
42
+ private cachedValue;
43
+ private getCachedValue;
44
+ private setCachedValue;
43
45
  perfCounters: {
44
46
  computed: number;
45
47
  computeTime: number;
@@ -49,12 +51,19 @@ export declare namespace Tree {
49
51
  cacheTimeAvg: number;
50
52
  totalTime: number;
51
53
  };
52
- getPerfCounters(): [string, this["perfCounters"]][];
54
+ getPerfCounters(): [string, {
55
+ computed: number;
56
+ computeTime: number;
57
+ computeTimeAvg: number;
58
+ cached: number;
59
+ cacheTime: number;
60
+ cacheTimeAvg: number;
61
+ totalTime: number;
62
+ } & {
63
+ tagName: string;
64
+ evaluated: Types.Tree.Serialized | undefined;
65
+ }][];
53
66
  printPerfCounters(): void;
54
- callstack: string[];
55
- pushToEvalCallStack(path: string): void;
56
- flushEvalCallStack(): void;
57
- evaluate(this: Tree<T>): Types.Value;
67
+ evaluate(): Types.Tree.Value;
58
68
  }
59
- export {};
60
69
  }
@@ -1,16 +1,21 @@
1
1
  import {
2
2
  Tree
3
- } from "../../../../chunks/chunk-LOFELEU3.js";
4
- import "../../../../chunks/chunk-ZCPGE7H7.js";
5
- import "../../../../chunks/chunk-5GI5G45R.js";
6
- import "../../../../chunks/chunk-XWLQR4UY.js";
7
- import "../../../../chunks/chunk-LUPVHC73.js";
8
- import "../../../../chunks/chunk-YDIBNEGA.js";
3
+ } from "../../../../chunks/chunk-SR2YFPJZ.js";
4
+ import "../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../chunks/chunk-SXRWMH3U.js";
6
+ import "../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../chunks/chunk-VDNIN3V5.js";
9
+ import "../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../chunks/chunk-BKO7GLC2.js";
11
+ import "../../../../chunks/chunk-RW7VAKJW.js";
12
+ import "../../../../chunks/chunk-XA4HVHJ4.js";
9
13
  import "../../../../chunks/chunk-E6MSDKON.js";
14
+ import "../../../../chunks/chunk-YDIBNEGA.js";
15
+ import "../../../../chunks/chunk-XNF5MLCQ.js";
16
+ import "../../../../chunks/chunk-JMU5PDBD.js";
10
17
  import "../../../../chunks/chunk-ZTDVUXPR.js";
11
18
  import "../../../../chunks/chunk-RLJOYG64.js";
12
- import "../../../../chunks/chunk-QXAJXTXV.js";
13
- import "../../../../chunks/chunk-HC6ZOHCS.js";
14
19
  export {
15
20
  Tree
16
21
  };
@@ -1,89 +1,143 @@
1
- import { Tree } from '../tree';
1
+ import { Outcome } from '~/agnostic/misc/outcome';
2
+ import { Logger } from '~/agnostic/misc/logs/logger';
3
+ import { Tree as TreeNamespace } from '../tree';
4
+ import { Transformer } from '../transformer';
5
+ import { Method } from '../method';
2
6
  export declare namespace Types {
3
- enum TyperTagName {
4
- ANY = "any",
5
- NULL = "null",
6
- BOOLEAN = "boolean",
7
- NUMBER = "number",
8
- STRING = "string",
9
- TEXT = "text",
10
- NODELIST = "nodelist",
11
- ARRAY = "array",
12
- RECORD = "record",
13
- LITERAL = "literal"
7
+ namespace Transformations {
8
+ type FunctionMainValueFailure = {
9
+ expected: string;
10
+ found: string;
11
+ details?: any;
12
+ };
13
+ type FunctionArgsValueFailure = {
14
+ expected: string;
15
+ found: string;
16
+ position?: number;
17
+ details?: any;
18
+ };
19
+ type FunctionTransformationFailure = {
20
+ details?: any;
21
+ };
22
+ type FunctionFailurePayload = FunctionMainValueFailure | FunctionArgsValueFailure | FunctionTransformationFailure;
23
+ type FunctionDetailsArg = {
24
+ name: string;
25
+ sourceTree: TreeNamespace.Tree;
26
+ };
27
+ type Function<Main extends Tree.RestingValue, Args extends Tree.Value[], Out extends Tree.RestingValue> = (mainValue: Main, args: Args, details: FunctionDetailsArg) => Outcome.Either<Out, FunctionFailurePayload>;
28
+ type FailurePayloadCore = {
29
+ transformerName: string;
30
+ path: string;
31
+ mainValue: Tree.RestingValue;
32
+ argsValue: Tree.RestingArrayValue;
33
+ };
34
+ type MainValueFailurePayload = FailurePayloadCore & FunctionMainValueFailure & {
35
+ message: 'BAD_MAIN_VALUE';
36
+ };
37
+ type ArgsValueFailurePayload = FailurePayloadCore & FunctionArgsValueFailure & {
38
+ message: 'BAD_ARGUMENTS_VALUE';
39
+ };
40
+ type TransformationFailurePayload = FailurePayloadCore & FunctionTransformationFailure & {
41
+ message: 'TRANSFORMATION_ERROR';
42
+ };
43
+ type FailurePayload = MainValueFailurePayload | ArgsValueFailurePayload | TransformationFailurePayload;
44
+ type Output<S extends Tree.RestingValue = Tree.RestingValue, F extends FailurePayload = FailurePayload> = Outcome.Either<S, F>;
14
45
  }
15
- type PrimitiveValue = null | string | number | boolean | Element | Text | NodeListOf<Text | Element> | Transformer;
16
- type Value = PrimitiveValue | Value[] | {
17
- [k: string]: Value;
18
- };
19
- type TransformerHooks = {
20
- resolver: Tree.Tree['resolve'];
21
- getGenerator: Tree.Tree['getGenerator'];
22
- };
23
- type TransformerErrorReturnType = {
24
- action: 'ERROR';
25
- value: Value;
26
- };
27
- type TransformerReplaceReturnType = {
28
- action: 'REPLACE';
29
- value: Value;
30
- };
31
- type TransformerMergeReturnType = {
32
- action: 'MERGE';
33
- value: Value;
34
- };
35
- type TransformerNullReturnType = {
36
- action: null;
37
- };
38
- type TransformerReturnType = TransformerErrorReturnType | TransformerReplaceReturnType | TransformerMergeReturnType | TransformerNullReturnType;
39
- type AnonymousTransformer = (currentValue: Value, callerTree: Tree.Tree) => TransformerReturnType;
40
- type Transformer = AnonymousTransformer & {
41
- transformerName: string;
42
- args: Value[];
43
- };
44
- type TransformerGenerator = (name: string, ...args: Value[]) => Transformer;
45
- type Resolver = (path: Tree.Tree['path']) => Tree.Tree | undefined;
46
- type TreeOptions = {
47
- generatorsMap: Map<string, Types.TransformerGenerator>;
48
- keyAttribute: string;
49
- actionAttribute: string;
50
- };
51
- enum ReductionAction {
52
- APPEND = "append",
53
- PREPEND = "prepend",
54
- REPLACE = "replace"
46
+ namespace Tree {
47
+ namespace Merge {
48
+ enum Action {
49
+ APPEND = "append",
50
+ PREPEND = "prepend",
51
+ REPLACE = "replace"
52
+ }
53
+ }
54
+ type Mode = 'isolation' | 'coalescion';
55
+ type TransformerValue = Transformer;
56
+ type MethodValue = Method;
57
+ type PrimitiveValue = null | boolean | number | string | Text | NodeListOf<Element | Text> | Element | MethodValue;
58
+ type RestingValue = PrimitiveValue | RestingValue[] | {
59
+ [k: string]: RestingValue;
60
+ };
61
+ type Value = RestingValue | TransformerValue;
62
+ type RestingArrayValue = RestingValue[];
63
+ type RestingRecordValue = {
64
+ [k: string]: RestingValue;
65
+ };
66
+ type ValuesTypesNamesIndex = {
67
+ null: null;
68
+ boolean: boolean;
69
+ number: number;
70
+ string: string;
71
+ text: Text;
72
+ nodelist: NodeListOf<Element | Text>;
73
+ element: Element;
74
+ transformer: TransformerValue;
75
+ method: MethodValue;
76
+ array: RestingArrayValue;
77
+ record: RestingRecordValue;
78
+ };
79
+ type ValueTypeName = keyof ValuesTypesNamesIndex;
80
+ type ValueTypeFromNames<N extends ValueTypeName[]> = ValuesTypesNamesIndex[N[number]];
81
+ type Resolver = (path: TreeNamespace.Tree['path']) => TreeNamespace.Tree | undefined;
82
+ type Options = {
83
+ globalObject: RestingRecordValue;
84
+ logger: Logger | null;
85
+ loggerThread: string | undefined;
86
+ };
87
+ type Serialized = {
88
+ type: 'null';
89
+ value: null;
90
+ } | {
91
+ type: 'boolean';
92
+ value: boolean;
93
+ } | {
94
+ type: 'number';
95
+ value: number;
96
+ } | {
97
+ type: 'string';
98
+ value: string;
99
+ } | {
100
+ type: 'text';
101
+ value: string;
102
+ } | {
103
+ type: 'element';
104
+ value: string;
105
+ } | {
106
+ type: 'nodelist';
107
+ value: Array<Serialized>;
108
+ } | {
109
+ type: 'array';
110
+ value: Array<Serialized>;
111
+ } | {
112
+ type: 'record';
113
+ value: {
114
+ [k: string]: Serialized;
115
+ };
116
+ } | {
117
+ type: 'transformer';
118
+ value: Transformer;
119
+ } | {
120
+ type: 'method';
121
+ value: Method;
122
+ };
55
123
  }
56
- type Serialized = {
57
- type: 'null';
58
- value: null;
59
- } | {
60
- type: 'boolean';
61
- value: boolean;
62
- } | {
63
- type: 'number';
64
- value: number;
65
- } | {
66
- type: 'string';
67
- value: string;
68
- } | {
69
- type: 'text';
70
- value: string;
71
- } | {
72
- type: 'element';
73
- value: string;
74
- } | {
75
- type: 'nodelist';
76
- value: string;
77
- } | {
78
- type: 'array';
79
- value: Array<Serialized>;
80
- } | {
81
- type: 'record';
82
- value: {
83
- [k: string]: Serialized;
124
+ namespace SmartTags {
125
+ type SmartTag<Main extends Types.Tree.RestingValue = Types.Tree.RestingValue, Args extends Types.Tree.RestingArrayValue = Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue = Types.Tree.RestingValue> = {
126
+ defaultMode: Types.Tree.Mode;
127
+ isolationInitType: Exclude<Types.Tree.ValueTypeName, 'transformer' | 'method'>;
128
+ generator: (innerValue: Types.Tree.RestingValue, mode: Types.Tree.Mode, sourceTree: TreeNamespace.Tree) => {
129
+ transformer: Transformer<Main, Args, Output>;
130
+ method: Method<Main, Args, Output>;
131
+ };
132
+ };
133
+ type Descriptor<Main extends Types.Tree.RestingValue = Types.Tree.RestingValue, Args extends Types.Tree.RestingArrayValue = Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue = Types.Tree.RestingValue> = {
134
+ name: string;
135
+ defaultMode: Types.Tree.Mode;
136
+ isolationInitType: Exclude<Types.Tree.ValueTypeName, 'transformer' | 'method'>;
137
+ mainValueCheck: Transformer<Main, Args, Output>['typeChecks']['mainValue'];
138
+ argsValueCheck: Transformer<Main, Args, Output>['typeChecks']['argsValue'];
139
+ func: Transformer<Main, Args, Output>['func'];
84
140
  };
85
- } | {
86
- type: 'transformer';
87
- value: Transformer;
88
- };
141
+ type Register = Map<string, Types.SmartTags.SmartTag<any, any, any>>;
142
+ }
89
143
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Types
3
- } from "../../../../chunks/chunk-5GI5G45R.js";
3
+ } from "../../../../chunks/chunk-XEQ2PBT2.js";
4
4
  export {
5
5
  Types
6
6
  };