@design-edito/tools 0.1.39 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/agnostic/css/bem/index.js +2 -2
  2. package/agnostic/css/index.js +13 -13
  3. package/agnostic/errors/index.js +2 -2
  4. package/agnostic/html/hyper-json/cast/index.d.ts +8 -14
  5. package/agnostic/html/hyper-json/cast/index.js +13 -8
  6. package/agnostic/html/hyper-json/index.d.ts +8 -4
  7. package/agnostic/html/hyper-json/index.js +14 -9
  8. package/agnostic/html/hyper-json/method/index.d.ts +7 -0
  9. package/agnostic/html/hyper-json/method/index.js +6 -0
  10. package/agnostic/html/hyper-json/serialize/index.d.ts +2 -2
  11. package/agnostic/html/hyper-json/serialize/index.js +4 -1
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.d.ts +4 -0
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +21 -0
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.d.ts +3 -0
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +21 -0
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.d.ts +2 -0
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +21 -0
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.d.ts +6 -0
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +21 -0
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.d.ts +5 -0
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +21 -0
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.d.ts +4 -0
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +21 -0
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.d.ts +2 -0
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +21 -0
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.d.ts +4 -0
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +21 -0
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.d.ts +2 -0
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +21 -0
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.d.ts +4 -0
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +21 -0
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.d.ts +4 -0
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +21 -0
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.d.ts +5 -0
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +23 -0
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.d.ts +8 -0
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +21 -0
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.d.ts +4 -0
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +21 -0
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.d.ts +5 -0
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +21 -0
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.d.ts +4 -0
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +21 -0
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.d.ts +4 -0
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +21 -0
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.d.ts +1 -0
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +21 -0
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.d.ts +5 -0
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +21 -0
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.d.ts +2 -0
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +21 -0
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.d.ts +2 -0
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +21 -0
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.d.ts +6 -0
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +21 -0
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.d.ts +2 -0
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +21 -0
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.d.ts +2 -0
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +21 -0
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.d.ts +4 -0
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +21 -0
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.d.ts +2 -0
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +21 -0
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +5 -0
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +21 -0
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.d.ts +3 -0
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +21 -0
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +4 -0
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +21 -0
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +6 -0
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +21 -0
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.d.ts +5 -0
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +21 -0
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.d.ts +4 -0
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +21 -0
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +5 -0
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +21 -0
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.d.ts +4 -0
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.js +21 -0
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +4 -0
  81. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +21 -0
  82. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.d.ts +5 -0
  83. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +21 -0
  84. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.d.ts +5 -0
  85. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +21 -0
  86. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.d.ts +2 -0
  87. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +21 -0
  88. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.d.ts +2 -0
  89. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +21 -0
  90. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +2 -0
  91. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +21 -0
  92. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.d.ts +3 -0
  93. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +21 -0
  94. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.d.ts +4 -0
  95. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +21 -0
  96. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.d.ts +2 -0
  97. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +21 -0
  98. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.d.ts +2 -0
  99. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +21 -0
  100. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.d.ts +2 -0
  101. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +21 -0
  102. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.d.ts +2 -0
  103. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +21 -0
  104. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.d.ts +2 -0
  105. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +21 -0
  106. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.d.ts +2 -0
  107. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +21 -0
  108. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.d.ts +9 -0
  109. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +21 -0
  110. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.d.ts +4 -0
  111. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +21 -0
  112. package/agnostic/html/hyper-json/smart-tags/index.d.ts +4 -0
  113. package/agnostic/html/hyper-json/smart-tags/index.js +9 -0
  114. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +2 -0
  115. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +10 -0
  116. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +2 -0
  117. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +10 -0
  118. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.d.ts +4 -0
  119. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +21 -0
  120. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.d.ts +4 -0
  121. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +21 -0
  122. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.d.ts +4 -0
  123. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +21 -0
  124. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +2 -0
  125. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +21 -0
  126. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts +2 -0
  127. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +21 -0
  128. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +4 -0
  129. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +21 -0
  130. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +2 -0
  131. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +10 -0
  132. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.d.ts +4 -0
  133. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +21 -0
  134. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.d.ts +4 -0
  135. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +21 -0
  136. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.d.ts +7 -0
  137. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +23 -0
  138. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.d.ts +4 -0
  139. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +21 -0
  140. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.d.ts +4 -0
  141. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +21 -0
  142. package/agnostic/html/hyper-json/transformer/index.d.ts +33 -0
  143. package/agnostic/html/hyper-json/transformer/index.js +8 -0
  144. package/agnostic/html/hyper-json/tree/index.d.ts +50 -41
  145. package/agnostic/html/hyper-json/tree/index.js +15 -8
  146. package/agnostic/html/hyper-json/types/index.d.ts +138 -84
  147. package/agnostic/html/hyper-json/types/index.js +1 -1
  148. package/agnostic/html/hyper-json/utils/index.d.ts +49 -8
  149. package/agnostic/html/hyper-json/utils/index.js +13 -8
  150. package/agnostic/html/index.js +27 -22
  151. package/agnostic/html/replace-in-element/index.js +20 -3
  152. package/agnostic/html/sanitize/index.js +4 -4
  153. package/agnostic/html/selector-to-element/index.js +4 -4
  154. package/agnostic/html/string-to-nodes/index.js +5 -5
  155. package/agnostic/misc/index.js +16 -16
  156. package/agnostic/misc/logs/index.js +2 -2
  157. package/agnostic/misc/lorem-ipsum/index.js +7 -7
  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 +13 -9
  164. package/agnostic/random/index.js +2 -2
  165. package/agnostic/strings/index.js +3 -3
  166. package/agnostic/time/index.js +3 -3
  167. package/chunks/chunk-2G5MFJ66.js +2420 -0
  168. package/chunks/chunk-7VL2O6SQ.js +211 -0
  169. package/chunks/chunk-BKO7GLC2.js +133 -0
  170. package/chunks/chunk-EJEG2LDE.js +2427 -0
  171. package/chunks/chunk-FHLCPVND.js +23 -0
  172. package/chunks/chunk-FOLCH72D.js +211 -0
  173. package/chunks/chunk-GPWFYPER.js +211 -0
  174. package/chunks/chunk-JMU5PDBD.js +20 -0
  175. package/chunks/chunk-MAP7OSVR.js +37 -0
  176. package/chunks/chunk-PMYUC6VD.js +37 -0
  177. package/chunks/chunk-QAVYONH6.js +20 -0
  178. package/chunks/chunk-RW7VAKJW.js +15 -0
  179. package/chunks/chunk-SKMCIFS3.js +27 -0
  180. package/chunks/chunk-SXRWMH3U.js +78 -0
  181. package/chunks/chunk-UT2J62LH.js +37 -0
  182. package/chunks/chunk-VDNIN3V5.js +23 -0
  183. package/chunks/chunk-XEQ2PBT2.js +20 -0
  184. package/chunks/chunk-XPRBKRSB.js +37 -0
  185. package/chunks/chunk-YGJHHWBJ.js +37 -0
  186. package/chunks/chunk-YMNBUQVR.js +2420 -0
  187. package/chunks/chunk-YYE7TVB6.js +2420 -0
  188. package/node/files/index.js +3 -3
  189. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import { Types } from '../../../types';
2
+ export declare const guess: [string, Types.SmartTags.SmartTag<Types.Tree.RestingValue, Types.Tree.RestingArrayValue, Types.Tree.RestingValue>];
@@ -0,0 +1,21 @@
1
+ import {
2
+ guess
3
+ } from "../../../../../../chunks/chunk-2G5MFJ66.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
6
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
9
+ import "../../../../../../chunks/chunk-SXRWMH3U.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-XNF5MLCQ.js";
15
+ import "../../../../../../chunks/chunk-YDIBNEGA.js";
16
+ import "../../../../../../chunks/chunk-JMU5PDBD.js";
17
+ import "../../../../../../chunks/chunk-ZTDVUXPR.js";
18
+ import "../../../../../../chunks/chunk-RLJOYG64.js";
19
+ export {
20
+ guess
21
+ };
@@ -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-2G5MFJ66.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
6
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
9
+ import "../../../../../../chunks/chunk-SXRWMH3U.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-XNF5MLCQ.js";
15
+ import "../../../../../../chunks/chunk-YDIBNEGA.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-2G5MFJ66.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
6
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
9
+ import "../../../../../../chunks/chunk-SXRWMH3U.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-XNF5MLCQ.js";
15
+ import "../../../../../../chunks/chunk-YDIBNEGA.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-2G5MFJ66.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
6
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
9
+ import "../../../../../../chunks/chunk-SXRWMH3U.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-XNF5MLCQ.js";
15
+ import "../../../../../../chunks/chunk-YDIBNEGA.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-2G5MFJ66.js";
5
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
6
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
8
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
9
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../../../chunks/chunk-SXRWMH3U.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-XNF5MLCQ.js";
16
+ import "../../../../../../chunks/chunk-YDIBNEGA.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-2G5MFJ66.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
6
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
9
+ import "../../../../../../chunks/chunk-SXRWMH3U.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-XNF5MLCQ.js";
15
+ import "../../../../../../chunks/chunk-YDIBNEGA.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-2G5MFJ66.js";
4
+ import "../../../../../../chunks/chunk-QAVYONH6.js";
5
+ import "../../../../../../chunks/chunk-XEQ2PBT2.js";
6
+ import "../../../../../../chunks/chunk-VDNIN3V5.js";
7
+ import "../../../../../../chunks/chunk-FHLCPVND.js";
8
+ import "../../../../../../chunks/chunk-UT2J62LH.js";
9
+ import "../../../../../../chunks/chunk-SXRWMH3U.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-XNF5MLCQ.js";
15
+ import "../../../../../../chunks/chunk-YDIBNEGA.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
+ export declare const SMART_TAGS_REGISTER: Types.SmartTags.Register;
2
3
  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;
4
+ class Tree {
5
+ readonly node: Element | Text;
6
+ readonly options: Types.Tree.Options;
18
7
  readonly parent: Tree | null;
8
+ readonly parents: Tree[];
9
+ readonly pathFromParent: string | number | null;
19
10
  readonly root: Tree;
20
11
  readonly isRoot: boolean;
21
- readonly path: ReadonlyArray<string | number>;
12
+ readonly path: Array<string | number>;
22
13
  readonly pathString: string;
23
- readonly tagName: T extends Element ? Element['tagName'] : null;
24
- readonly attributes: T extends Element ? ReadonlyArray<Readonly<Attr>> : null;
14
+ readonly attributes: ReadonlyArray<Readonly<Attr>> | null;
15
+ readonly isMethod: boolean;
16
+ readonly tagName: string | null;
17
+ readonly smartTagName: string | null;
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,23 @@
1
1
  import {
2
+ SMART_TAGS_REGISTER,
2
3
  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";
4
+ } from "../../../../chunks/chunk-2G5MFJ66.js";
5
+ import "../../../../chunks/chunk-QAVYONH6.js";
6
+ import "../../../../chunks/chunk-XEQ2PBT2.js";
7
+ import "../../../../chunks/chunk-VDNIN3V5.js";
8
+ import "../../../../chunks/chunk-FHLCPVND.js";
9
+ import "../../../../chunks/chunk-UT2J62LH.js";
10
+ import "../../../../chunks/chunk-SXRWMH3U.js";
11
+ import "../../../../chunks/chunk-BKO7GLC2.js";
12
+ import "../../../../chunks/chunk-RW7VAKJW.js";
13
+ import "../../../../chunks/chunk-XA4HVHJ4.js";
9
14
  import "../../../../chunks/chunk-E6MSDKON.js";
15
+ import "../../../../chunks/chunk-XNF5MLCQ.js";
16
+ import "../../../../chunks/chunk-YDIBNEGA.js";
17
+ import "../../../../chunks/chunk-JMU5PDBD.js";
10
18
  import "../../../../chunks/chunk-ZTDVUXPR.js";
11
19
  import "../../../../chunks/chunk-RLJOYG64.js";
12
- import "../../../../chunks/chunk-QXAJXTXV.js";
13
- import "../../../../chunks/chunk-HC6ZOHCS.js";
14
20
  export {
21
+ SMART_TAGS_REGISTER,
15
22
  Tree
16
23
  };