@design-edito/tools 0.3.17 → 0.4.1

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 (148) hide show
  1. package/agnostic/colors/index.d.ts +1 -1
  2. package/agnostic/colors/index.js +1 -1
  3. package/agnostic/css/bem/index.js +3 -3
  4. package/agnostic/css/index.d.ts +1 -1
  5. package/agnostic/css/index.js +1 -1
  6. package/agnostic/css/scale/index.js +3 -3
  7. package/agnostic/html/hyper-json/cast/index.js +8 -9
  8. package/agnostic/html/hyper-json/index.d.ts +1 -0
  9. package/agnostic/html/hyper-json/index.js +13 -12
  10. package/agnostic/html/hyper-json/method/index.d.ts +2 -2
  11. package/agnostic/html/hyper-json/serialize/index.js +2 -2
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +8 -9
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +8 -9
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +8 -9
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +8 -9
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +8 -9
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +8 -9
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +8 -9
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +8 -9
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +8 -9
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +8 -9
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +8 -9
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +8 -9
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +8 -9
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +8 -9
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +8 -9
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +6 -6
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +6 -6
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +8 -9
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +8 -9
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +8 -9
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +8 -9
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +8 -9
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +8 -9
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +8 -9
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +8 -9
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +8 -9
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +8 -9
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +8 -9
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +8 -9
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +8 -9
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +8 -9
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +8 -9
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +8 -9
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +8 -9
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +8 -9
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +8 -9
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +8 -9
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +8 -9
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +8 -9
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +8 -9
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +8 -9
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +8 -9
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +8 -9
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +8 -9
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +8 -9
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +8 -9
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +8 -9
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +8 -9
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +8 -9
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +8 -9
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +8 -9
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +8 -9
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +8 -9
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +8 -9
  66. package/agnostic/html/hyper-json/smart-tags/index.d.ts +8 -1
  67. package/agnostic/html/hyper-json/smart-tags/index.js +2 -2
  68. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +3 -1
  69. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +3 -3
  70. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +3 -1
  71. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +3 -3
  72. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +8 -9
  73. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +8 -9
  74. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +8 -9
  75. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +8 -9
  76. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +2 -3
  77. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +2 -3
  78. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +2 -1
  79. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +8 -9
  80. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +3 -1
  81. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +3 -3
  82. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +8 -9
  83. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +8 -9
  84. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +8 -9
  85. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +8 -9
  86. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +8 -9
  87. package/agnostic/html/hyper-json/transformer/index.d.ts +7 -7
  88. package/agnostic/html/hyper-json/transformer/index.js +1 -1
  89. package/agnostic/html/hyper-json/tree/index.d.ts +3 -5
  90. package/agnostic/html/hyper-json/tree/index.js +8 -9
  91. package/agnostic/html/hyper-json/types/index.d.ts +4 -10
  92. package/agnostic/html/hyper-json/utils/index.js +8 -9
  93. package/agnostic/html/index.d.ts +2 -2
  94. package/agnostic/html/index.js +2 -2
  95. package/agnostic/index.d.ts +4 -4
  96. package/agnostic/index.js +4 -4
  97. package/agnostic/misc/index.d.ts +5 -5
  98. package/agnostic/misc/index.js +5 -5
  99. package/agnostic/misc/logs/index.d.ts +1 -1
  100. package/agnostic/misc/logs/index.js +1 -1
  101. package/agnostic/numbers/index.d.ts +1 -1
  102. package/agnostic/numbers/index.js +1 -1
  103. package/agnostic/objects/index.d.ts +3 -3
  104. package/agnostic/objects/index.js +3 -3
  105. package/agnostic/optim/index.d.ts +1 -1
  106. package/agnostic/optim/index.js +1 -1
  107. package/agnostic/sanitization/index.d.ts +1 -1
  108. package/agnostic/sanitization/index.js +1 -1
  109. package/agnostic/strings/index.d.ts +3 -3
  110. package/agnostic/strings/index.js +3 -3
  111. package/agnostic/strings/replace-all/index.js +14 -3
  112. package/chunks/{chunk-FJH35B3Q.js → chunk-B4HGXMP3.js} +2 -2
  113. package/chunks/{chunk-QQPOSZFR.js → chunk-E33STMH3.js} +37 -64
  114. package/chunks/{chunk-QDHET2TE.js → chunk-HYGUIF2O.js} +5 -2
  115. package/chunks/{chunk-4STX5SQX.js → chunk-LEBGVBYD.js} +9 -2
  116. package/chunks/{chunk-FCABYQRX.js → chunk-MSU7JU63.js} +13 -1
  117. package/chunks/{chunk-H4KLHV6B.js → chunk-O32IRXDX.js} +1 -1
  118. package/chunks/{chunk-DU6U226H.js → chunk-RJRNYRPM.js} +2 -2
  119. package/components/index.d.ts +2 -2
  120. package/components/index.js +2 -2
  121. package/index.d.ts +1 -1
  122. package/index.js +1 -1
  123. package/node/@aws-s3/storage/file/index.d.ts +2 -2
  124. package/node/@aws-s3/storage/file/index.js +2 -2
  125. package/node/@google-cloud/storage/directory/index.d.ts +1 -1
  126. package/node/@google-cloud/storage/directory/index.js +1 -1
  127. package/node/@google-cloud/storage/file/index.d.ts +3 -3
  128. package/node/@google-cloud/storage/file/index.js +3 -3
  129. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
  130. package/node/cloud-storage/index.d.ts +1 -1
  131. package/node/cloud-storage/index.js +1 -1
  132. package/node/cloud-storage/operations/index.d.ts +2 -2
  133. package/node/cloud-storage/operations/index.js +2 -2
  134. package/node/ftps/file/index.d.ts +2 -2
  135. package/node/ftps/file/index.js +2 -2
  136. package/node/images/transform/index.js +28 -28
  137. package/node/images/transform/operations/index.d.ts +5 -5
  138. package/node/images/transform/operations/index.js +5 -5
  139. package/node/index.d.ts +2 -2
  140. package/node/index.js +2 -2
  141. package/node/process/index.d.ts +1 -1
  142. package/node/process/index.js +1 -1
  143. package/node/sftp/directory/index.d.ts +1 -1
  144. package/node/sftp/directory/index.js +1 -1
  145. package/package.json +1 -8
  146. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +0 -2
  147. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +0 -25
  148. package/chunks/chunk-EPUHVR7J.js +0 -17
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  nullFunc
3
- } from "./chunk-FJH35B3Q.js";
3
+ } from "./chunk-B4HGXMP3.js";
4
+ import {
5
+ Types
6
+ } from "./chunk-XEQ2PBT2.js";
4
7
  import {
5
8
  any
6
- } from "./chunk-DU6U226H.js";
9
+ } from "./chunk-RJRNYRPM.js";
7
10
  import {
8
11
  array
9
- } from "./chunk-QDHET2TE.js";
12
+ } from "./chunk-HYGUIF2O.js";
10
13
  import {
11
14
  SmartTags
12
- } from "./chunk-FCABYQRX.js";
15
+ } from "./chunk-MSU7JU63.js";
13
16
  import {
14
17
  Serialize
15
- } from "./chunk-H4KLHV6B.js";
18
+ } from "./chunk-O32IRXDX.js";
16
19
  import {
17
20
  Transformer
18
- } from "./chunk-4STX5SQX.js";
21
+ } from "./chunk-LEBGVBYD.js";
19
22
  import {
20
23
  Method
21
24
  } from "./chunk-RW7VAKJW.js";
22
- import {
23
- Types
24
- } from "./chunk-XEQ2PBT2.js";
25
25
  import {
26
26
  insertNode
27
27
  } from "./chunk-XA4HVHJ4.js";
@@ -38,9 +38,6 @@ import {
38
38
  trimEnd,
39
39
  trimStart
40
40
  } from "./chunk-6XL25OZX.js";
41
- import {
42
- replaceAll
43
- } from "./chunk-EPUHVR7J.js";
44
41
  import {
45
42
  makeFailure,
46
43
  makeSuccess,
@@ -195,25 +192,12 @@ var get2 = SmartTags.makeSmartTag({
195
192
  }
196
193
  });
197
194
 
198
- // src/agnostic/html/hyper-json/smart-tags/isolated/global/index.ts
199
- var global = SmartTags.makeSmartTag({
200
- name: "global",
201
- defaultMode: "isolation",
202
- isolationInitType: "array",
203
- mainValueCheck: (m) => makeSuccess(m),
204
- argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
205
- func: (_m, _a, { sourceTree }) => {
206
- const globalObject = sourceTree.options.globalObject ?? {};
207
- return makeSuccess({ ...globalObject });
208
- }
209
- });
210
-
211
195
  // src/agnostic/html/hyper-json/smart-tags/isolated/guess/index.ts
212
196
  var guess = SmartTags.makeSmartTag({
213
197
  name: "guess",
214
198
  defaultMode: "isolation",
215
199
  isolationInitType: "string",
216
- mainValueCheck: (m) => makeSuccess(m),
200
+ mainValueCheck: SmartTags.expectNotUndef,
217
201
  argsValueCheck: (a) => makeSuccess(a),
218
202
  func: (main, args) => {
219
203
  const { typeCheck } = Utils.Tree.TypeChecks;
@@ -261,10 +245,8 @@ var nodelist = SmartTags.makeSmartTag({
261
245
  func: (main, args) => {
262
246
  const { document } = get();
263
247
  const returnedParent = document.createDocumentFragment();
264
- returnedParent.append(
265
- ...Array.from(Cast.toNodeList(main)),
266
- ...Array.from(Cast.toNodeList(args))
267
- );
248
+ if (main !== void 0) returnedParent.append(...Array.from(Cast.toNodeList(main)));
249
+ returnedParent.append(...Array.from(Cast.toNodeList(args)));
268
250
  const returned = returnedParent.childNodes;
269
251
  return makeSuccess(returned);
270
252
  }
@@ -414,7 +396,7 @@ var and = SmartTags.makeSmartTag({
414
396
  name: "and",
415
397
  defaultMode: "coalescion",
416
398
  isolationInitType: "array",
417
- mainValueCheck: (m) => makeSuccess(m),
399
+ mainValueCheck: SmartTags.expectNotUndef,
418
400
  argsValueCheck: (a) => makeSuccess(a),
419
401
  func: (main, args) => {
420
402
  const all = [main, ...args];
@@ -529,7 +511,7 @@ var clone = SmartTags.makeSmartTag({
529
511
  name: "clone",
530
512
  defaultMode: "coalescion",
531
513
  isolationInitType: "array",
532
- mainValueCheck: (m) => makeSuccess(m),
514
+ mainValueCheck: SmartTags.expectNotUndef,
533
515
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
534
516
  func: (main) => makeSuccess(Utils.clone(main))
535
517
  });
@@ -580,7 +562,7 @@ var equals = SmartTags.makeSmartTag({
580
562
  name: "equals",
581
563
  defaultMode: "coalescion",
582
564
  isolationInitType: "array",
583
- mainValueCheck: (m) => makeSuccess(m),
565
+ mainValueCheck: SmartTags.expectNotUndef,
584
566
  argsValueCheck: (a) => {
585
567
  const [first, ...others] = a;
586
568
  if (first === void 0) return makeFailure(Utils.SmartTags.makeArgsValueError(
@@ -749,7 +731,7 @@ var hjstringify = SmartTags.makeSmartTag({
749
731
  name: "hjstringify",
750
732
  defaultMode: "coalescion",
751
733
  isolationInitType: "array",
752
- mainValueCheck: (m) => makeSuccess(m),
734
+ mainValueCheck: SmartTags.expectNotUndef,
753
735
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
754
736
  func: (main) => {
755
737
  const stringified = stringify(main);
@@ -800,7 +782,7 @@ var initialize = SmartTags.makeSmartTag({
800
782
  name: "initialize",
801
783
  defaultMode: "coalescion",
802
784
  isolationInitType: "array",
803
- mainValueCheck: (m) => makeSuccess(m),
785
+ mainValueCheck: SmartTags.expectNotUndef,
804
786
  argsValueCheck: (a) => {
805
787
  const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
806
788
  const { getType, typeCheck } = Utils.Tree.TypeChecks;
@@ -935,7 +917,7 @@ var or = SmartTags.makeSmartTag({
935
917
  name: "or",
936
918
  defaultMode: "coalescion",
937
919
  isolationInitType: "array",
938
- mainValueCheck: (m) => makeSuccess(m),
920
+ mainValueCheck: SmartTags.expectNotUndef,
939
921
  argsValueCheck: (a) => makeSuccess(a),
940
922
  func: (main, args) => {
941
923
  const all = [main, ...args];
@@ -1028,7 +1010,7 @@ var populate = SmartTags.makeSmartTag({
1028
1010
  for (const [propName, toReplace] of actions) {
1029
1011
  try {
1030
1012
  const value = deepGetProperty(record2, Cast.toString(propName));
1031
- const replaced = replaceAll(returnedStr, Cast.toString(toReplace), Cast.toString(value));
1013
+ const replaced = returnedStr.replaceAll(Cast.toString(toReplace), Cast.toString(value));
1032
1014
  returnedStr = replaced;
1033
1015
  } catch (err) {
1034
1016
  return makeFailure2(makeTransformationError({
@@ -1211,7 +1193,7 @@ var replace = SmartTags.makeSmartTag({
1211
1193
  name: "replace",
1212
1194
  defaultMode: "coalescion",
1213
1195
  isolationInitType: "array",
1214
- mainValueCheck: (m) => makeSuccess(m),
1196
+ mainValueCheck: SmartTags.expectNotUndef,
1215
1197
  argsValueCheck: (a) => {
1216
1198
  const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1217
1199
  const { getType, typeCheckMany } = Utils.Tree.TypeChecks;
@@ -1284,7 +1266,7 @@ var set = SmartTags.makeSmartTag({
1284
1266
  name: "set",
1285
1267
  defaultMode: "coalescion",
1286
1268
  isolationInitType: "array",
1287
- mainValueCheck: (m) => makeSuccess(m),
1269
+ mainValueCheck: SmartTags.expectNotUndef,
1288
1270
  argsValueCheck: (a) => {
1289
1271
  const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1290
1272
  const { makeArgsValueError } = Utils.SmartTags;
@@ -1630,7 +1612,7 @@ var toarray = SmartTags.makeSmartTag({
1630
1612
  name: "toarray",
1631
1613
  defaultMode: "coalescion",
1632
1614
  isolationInitType: "array",
1633
- mainValueCheck: (m) => makeSuccess(m),
1615
+ mainValueCheck: SmartTags.expectNotUndef,
1634
1616
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1635
1617
  func: (main) => makeSuccess(Cast.toArray(main))
1636
1618
  });
@@ -1640,7 +1622,7 @@ var toboolean = SmartTags.makeSmartTag({
1640
1622
  name: "toboolean",
1641
1623
  defaultMode: "coalescion",
1642
1624
  isolationInitType: "array",
1643
- mainValueCheck: (m) => makeSuccess(m),
1625
+ mainValueCheck: SmartTags.expectNotUndef,
1644
1626
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1645
1627
  func: (m) => makeSuccess(Cast.toBoolean(m))
1646
1628
  });
@@ -1650,7 +1632,7 @@ var toelement = SmartTags.makeSmartTag({
1650
1632
  name: "toelement",
1651
1633
  defaultMode: "coalescion",
1652
1634
  isolationInitType: "array",
1653
- mainValueCheck: (m) => makeSuccess(m),
1635
+ mainValueCheck: SmartTags.expectNotUndef,
1654
1636
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckManyWithLength(a, 0, 1, "string", "text"),
1655
1637
  func: (m, a) => {
1656
1638
  const [rawTagName] = a;
@@ -1692,7 +1674,7 @@ var tonodelist = SmartTags.makeSmartTag({
1692
1674
  name: "tonodelist",
1693
1675
  defaultMode: "coalescion",
1694
1676
  isolationInitType: "array",
1695
- mainValueCheck: (m) => makeSuccess(m),
1677
+ mainValueCheck: SmartTags.expectNotUndef,
1696
1678
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1697
1679
  func: (m) => makeSuccess(Cast.toNodeList(m))
1698
1680
  });
@@ -1702,7 +1684,7 @@ var tonull = SmartTags.makeSmartTag({
1702
1684
  name: "tonull",
1703
1685
  defaultMode: "coalescion",
1704
1686
  isolationInitType: "array",
1705
- mainValueCheck: (m) => makeSuccess(m),
1687
+ mainValueCheck: SmartTags.expectNotUndef,
1706
1688
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1707
1689
  func: () => makeSuccess(null)
1708
1690
  });
@@ -1712,7 +1694,7 @@ var tonumber = SmartTags.makeSmartTag({
1712
1694
  name: "tonumber",
1713
1695
  defaultMode: "coalescion",
1714
1696
  isolationInitType: "array",
1715
- mainValueCheck: (m) => makeSuccess(m),
1697
+ mainValueCheck: SmartTags.expectNotUndef,
1716
1698
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1717
1699
  func: (m) => makeSuccess(Cast.toNumber(m))
1718
1700
  });
@@ -1722,7 +1704,7 @@ var torecord = SmartTags.makeSmartTag({
1722
1704
  name: "torecord",
1723
1705
  defaultMode: "coalescion",
1724
1706
  isolationInitType: "array",
1725
- mainValueCheck: (m) => makeSuccess(m),
1707
+ mainValueCheck: SmartTags.expectNotUndef,
1726
1708
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1727
1709
  func: (main) => makeSuccess(Cast.toRecord(main))
1728
1710
  });
@@ -1732,7 +1714,7 @@ var toref = SmartTags.makeSmartTag({
1732
1714
  name: "toref",
1733
1715
  defaultMode: "coalescion",
1734
1716
  isolationInitType: "array",
1735
- mainValueCheck: (m) => makeSuccess(m),
1717
+ mainValueCheck: SmartTags.expectNotUndef,
1736
1718
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1737
1719
  func: (main, args, details) => func(Cast.toString(main), args, details)
1738
1720
  });
@@ -1742,7 +1724,7 @@ var tostring = SmartTags.makeSmartTag({
1742
1724
  name: "tostring",
1743
1725
  defaultMode: "coalescion",
1744
1726
  isolationInitType: "array",
1745
- mainValueCheck: (m) => makeSuccess(m),
1727
+ mainValueCheck: SmartTags.expectNotUndef,
1746
1728
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1747
1729
  func: (m) => makeSuccess(Cast.toString(m))
1748
1730
  });
@@ -1752,7 +1734,7 @@ var totext = SmartTags.makeSmartTag({
1752
1734
  name: "totext",
1753
1735
  defaultMode: "coalescion",
1754
1736
  isolationInitType: "array",
1755
- mainValueCheck: (m) => makeSuccess(m),
1737
+ mainValueCheck: SmartTags.expectNotUndef,
1756
1738
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1757
1739
  func: (m) => makeSuccess(Cast.toText(m))
1758
1740
  });
@@ -1846,7 +1828,6 @@ var Tree;
1846
1828
  ((_Tree) => {
1847
1829
  class Tree2 {
1848
1830
  node;
1849
- options;
1850
1831
  parent;
1851
1832
  parents;
1852
1833
  pathFromParent;
@@ -1872,16 +1853,11 @@ var Tree;
1872
1853
  static modeAttribute = "_mode";
1873
1854
  static preserveAttribute = "_preserve";
1874
1855
  static literalAttribute = "_literal";
1875
- static defaultOptions = {
1876
- globalObject: {},
1877
- logger: null,
1878
- loggerThread: "hyperjson"
1879
- };
1880
- static from(nodes, options) {
1856
+ static from(nodes) {
1881
1857
  const merged = Utils.Tree.mergeNodes(nodes);
1882
- return new Tree2(merged, null, null, options);
1858
+ return new Tree2(merged, null, null);
1883
1859
  }
1884
- constructor(node, parent, pathFromParent, options) {
1860
+ constructor(node, parent, pathFromParent) {
1885
1861
  const { Element: Element2, Text: Text2, document } = get();
1886
1862
  this.resolve = this.resolve.bind(this);
1887
1863
  this.setVariable = this.setVariable.bind(this);
@@ -1893,7 +1869,6 @@ var Tree;
1893
1869
  this.setCachedValue = this.setCachedValue.bind(this);
1894
1870
  this.evaluate = this.evaluate.bind(this);
1895
1871
  this.node = node;
1896
- this.options = options ?? Tree2.defaultOptions;
1897
1872
  if (parent !== null && pathFromParent !== null) {
1898
1873
  this.isRoot = false;
1899
1874
  this.parent = parent;
@@ -1934,7 +1909,6 @@ var Tree;
1934
1909
  boolean,
1935
1910
  element,
1936
1911
  get2,
1937
- global,
1938
1912
  guess,
1939
1913
  nodelist,
1940
1914
  nullFunc,
@@ -2059,7 +2033,7 @@ var Tree;
2059
2033
  const returnedChildNode = document.createTextNode(textContent);
2060
2034
  mutableSubtrees.set(
2061
2035
  positionnedChildrenCount,
2062
- new Tree2(returnedChildNode, this, positionnedChildrenCount, this.options)
2036
+ new Tree2(returnedChildNode, this, positionnedChildrenCount)
2063
2037
  );
2064
2038
  positionnedChildrenCount += 1;
2065
2039
  } else {
@@ -2067,13 +2041,13 @@ var Tree;
2067
2041
  if (propertyName === null) {
2068
2042
  mutableSubtrees.set(
2069
2043
  positionnedChildrenCount,
2070
- new Tree2(childNode, this, positionnedChildrenCount, this.options)
2044
+ new Tree2(childNode, this, positionnedChildrenCount)
2071
2045
  );
2072
2046
  positionnedChildrenCount += 1;
2073
2047
  } else {
2074
2048
  mutableSubtrees.set(
2075
2049
  propertyName,
2076
- new Tree2(childNode, this, propertyName, this.options)
2050
+ new Tree2(childNode, this, propertyName)
2077
2051
  );
2078
2052
  }
2079
2053
  }
@@ -2629,7 +2603,6 @@ export {
2629
2603
  boolean,
2630
2604
  element,
2631
2605
  get2 as get,
2632
- global,
2633
2606
  guess,
2634
2607
  nodelist,
2635
2608
  number,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SmartTags
3
- } from "./chunk-FCABYQRX.js";
3
+ } from "./chunk-MSU7JU63.js";
4
4
  import {
5
5
  makeSuccess
6
6
  } from "./chunk-LUAYN7VJ.js";
@@ -12,7 +12,10 @@ var array = SmartTags.makeSmartTag({
12
12
  isolationInitType: "array",
13
13
  mainValueCheck: (m) => makeSuccess(m),
14
14
  argsValueCheck: (a) => makeSuccess(a),
15
- func: (main, args) => makeSuccess([main, ...args])
15
+ func: (main, args) => {
16
+ if (main === void 0) return makeSuccess([...args]);
17
+ return makeSuccess([main, ...args]);
18
+ }
16
19
  });
17
20
 
18
21
  export {
@@ -38,7 +38,7 @@ var Transformer = class _Transformer {
38
38
  let argsValue;
39
39
  if (mode === "isolation") {
40
40
  if (Array.isArray(innerValue)) {
41
- mainValue = innerValue.at(0) ?? [];
41
+ mainValue = innerValue.at(0);
42
42
  argsValue = innerValue.slice(1);
43
43
  } else {
44
44
  mainValue = innerValue;
@@ -113,7 +113,14 @@ var Transformer = class _Transformer {
113
113
  argsChecked.error.position
114
114
  ));
115
115
  const validArgsValue = argsChecked.payload;
116
- const called = func(validMainValue, validArgsValue, { name: this.name, sourceTree: this.sourceTree });
116
+ const called = func(
117
+ validMainValue,
118
+ validArgsValue,
119
+ {
120
+ name: this.name,
121
+ sourceTree: this.sourceTree
122
+ }
123
+ );
117
124
  if (!called.success) return makeFailure(makeTransformationError(
118
125
  mainValue,
119
126
  argsValue,
@@ -1,9 +1,13 @@
1
1
  import {
2
2
  Transformer
3
- } from "./chunk-4STX5SQX.js";
3
+ } from "./chunk-LEBGVBYD.js";
4
4
  import {
5
5
  Method
6
6
  } from "./chunk-RW7VAKJW.js";
7
+ import {
8
+ makeFailure,
9
+ makeSuccess
10
+ } from "./chunk-LUAYN7VJ.js";
7
11
 
8
12
  // src/agnostic/html/hyper-json/smart-tags/index.ts
9
13
  var SmartTags;
@@ -30,6 +34,14 @@ var SmartTags;
30
34
  }];
31
35
  }
32
36
  SmartTags2.makeSmartTag = makeSmartTag;
37
+ const isNotUndefined = (value) => value !== void 0;
38
+ SmartTags2.expectNotUndef = (value) => {
39
+ if (isNotUndefined(value)) return makeSuccess(value);
40
+ return makeFailure({
41
+ expected: "value",
42
+ found: "undefined"
43
+ });
44
+ };
33
45
  })(SmartTags || (SmartTags = {}));
34
46
 
35
47
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Transformer
3
- } from "./chunk-4STX5SQX.js";
3
+ } from "./chunk-LEBGVBYD.js";
4
4
  import {
5
5
  Method
6
6
  } from "./chunk-RW7VAKJW.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SmartTags
3
- } from "./chunk-FCABYQRX.js";
3
+ } from "./chunk-MSU7JU63.js";
4
4
  import {
5
5
  makeSuccess
6
6
  } from "./chunk-LUAYN7VJ.js";
@@ -13,7 +13,7 @@ var any = SmartTags.makeSmartTag({
13
13
  mainValueCheck: (m) => makeSuccess(m),
14
14
  argsValueCheck: (a) => makeSuccess(a),
15
15
  func: (main, args) => {
16
- if (args.length === 0) return makeSuccess(main);
16
+ if (main === void 0) return makeSuccess([...args]);
17
17
  return makeSuccess([main, ...args]);
18
18
  }
19
19
  });
@@ -1,5 +1,6 @@
1
1
  export * as beforeAfter from './BeforeAfter/index.js'
2
2
  export * as drawer from './Drawer/index.js'
3
+ export * as disclaimer from './Disclaimer/index.js'
3
4
  export * as eventListener from './EventListener/index.js'
4
5
  export * as gallery from './Gallery/index.js'
5
6
  export * as image from './Image/index.js'
@@ -9,7 +10,7 @@ export * as resizeObserver from './ResizeObserver/index.js'
9
10
  export * as scrllgngn from './Scrllgngn/index.js'
10
11
  export * as scrollListener from './ScrollListener/index.js'
11
12
  export * as sequencer from './Sequencer/index.js'
12
- export * as disclaimer from './Disclaimer/index.js'
13
+ export * as shadowRoot from './ShadowRoot/index.js'
13
14
  export * as subtitles from './Subtitles/index.js'
14
15
  export * as theatre from './Theatre/index.js'
15
16
  export * as uiModule from './UIModule/index.js'
@@ -17,4 +18,3 @@ export * as video from './Video/index.js'
17
18
  export * as wipAudioQuote from './_WIP_AudioQuote/index.js'
18
19
  export * as wipIcon from './_WIP_Icon/index.js'
19
20
  export * as utils from './utils/index.js'
20
- export * as shadowRoot from './ShadowRoot/index.js'
@@ -1,5 +1,6 @@
1
1
  export * as beforeAfter from './BeforeAfter/index.js'
2
2
  export * as drawer from './Drawer/index.js'
3
+ export * as disclaimer from './Disclaimer/index.js'
3
4
  export * as eventListener from './EventListener/index.js'
4
5
  export * as gallery from './Gallery/index.js'
5
6
  export * as image from './Image/index.js'
@@ -9,7 +10,7 @@ export * as resizeObserver from './ResizeObserver/index.js'
9
10
  export * as scrllgngn from './Scrllgngn/index.js'
10
11
  export * as scrollListener from './ScrollListener/index.js'
11
12
  export * as sequencer from './Sequencer/index.js'
12
- export * as disclaimer from './Disclaimer/index.js'
13
+ export * as shadowRoot from './ShadowRoot/index.js'
13
14
  export * as subtitles from './Subtitles/index.js'
14
15
  export * as theatre from './Theatre/index.js'
15
16
  export * as uiModule from './UIModule/index.js'
@@ -17,4 +18,3 @@ export * as video from './Video/index.js'
17
18
  export * as wipAudioQuote from './_WIP_AudioQuote/index.js'
18
19
  export * as wipIcon from './_WIP_Icon/index.js'
19
20
  export * as utils from './utils/index.js'
20
- export * as shadowRoot from './ShadowRoot/index.js'
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * as agnostic from './agnostic/index.js'
2
2
  export * as chunks from './chunks/index.js'
3
- export * as node from './node/index.js'
4
3
  export * as components from './components/index.js'
4
+ export * as node from './node/index.js'
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * as agnostic from './agnostic/index.js'
2
2
  export * as chunks from './chunks/index.js'
3
- export * as node from './node/index.js'
4
3
  export * as components from './components/index.js'
4
+ export * as node from './node/index.js'
@@ -1,7 +1,7 @@
1
+ export * as copy from './copy/index.js'
1
2
  export * as download from './download/index.js'
2
3
  export * as exists from './exists/index.js'
3
- export * as copy from './copy/index.js'
4
4
  export * as move from './move/index.js'
5
- export * as stat from './stat/index.js'
6
5
  export * as remove from './remove/index.js'
6
+ export * as stat from './stat/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -1,7 +1,7 @@
1
+ export * as copy from './copy/index.js'
1
2
  export * as download from './download/index.js'
2
3
  export * as exists from './exists/index.js'
3
- export * as copy from './copy/index.js'
4
4
  export * as move from './move/index.js'
5
- export * as stat from './stat/index.js'
6
5
  export * as remove from './remove/index.js'
6
+ export * as stat from './stat/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
2
  export * as list from './list/index.js'
3
- export * as removeDir from './remove-dir/index.js'
4
3
  export * as moveDir from './move-dir/index.js'
4
+ export * as removeDir from './remove-dir/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
2
  export * as list from './list/index.js'
3
- export * as removeDir from './remove-dir/index.js'
4
3
  export * as moveDir from './move-dir/index.js'
4
+ export * as removeDir from './remove-dir/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as copy from './copy/index.js'
2
+ export * as exists from './exists/index.js'
2
3
  export * as download from './download/index.js'
3
4
  export * as generateSignedUrl from './generate-signed-url/index.js'
4
- export * as getPermissions from './get-permissions/index.js'
5
5
  export * as getMetadata from './get-metadata/index.js'
6
+ export * as getPermissions from './get-permissions/index.js'
6
7
  export * as move from './move/index.js'
7
8
  export * as remove from './remove/index.js'
8
- export * as exists from './exists/index.js'
9
9
  export * as revokeSignedUrls from './revoke-signed-urls/index.js'
10
10
  export * as stat from './stat/index.js'
11
- export * as upload from './upload/index.js'
12
11
  export * as updateMetadata from './update-metadata/index.js'
12
+ export * as upload from './upload/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as copy from './copy/index.js'
2
+ export * as exists from './exists/index.js'
2
3
  export * as download from './download/index.js'
3
4
  export * as generateSignedUrl from './generate-signed-url/index.js'
4
- export * as getPermissions from './get-permissions/index.js'
5
5
  export * as getMetadata from './get-metadata/index.js'
6
+ export * as getPermissions from './get-permissions/index.js'
6
7
  export * as move from './move/index.js'
7
8
  export * as remove from './remove/index.js'
8
- export * as exists from './exists/index.js'
9
9
  export * as revokeSignedUrls from './revoke-signed-urls/index.js'
10
10
  export * as stat from './stat/index.js'
11
- export * as upload from './upload/index.js'
12
11
  export * as updateMetadata from './update-metadata/index.js'
12
+ export * as upload from './upload/index.js'
@@ -1,12 +1,12 @@
1
- import {
2
- remove
3
- } from "../../../../../chunks/chunk-MO4TRYNI.js";
4
1
  import {
5
2
  upload
6
3
  } from "../../../../../chunks/chunk-EX2QKFY5.js";
7
4
  import {
8
5
  download
9
6
  } from "../../../../../chunks/chunk-4Q4T7QQO.js";
7
+ import {
8
+ remove
9
+ } from "../../../../../chunks/chunk-MO4TRYNI.js";
10
10
  import {
11
11
  makeSuccess
12
12
  } from "../../../../../chunks/chunk-LUAYN7VJ.js";
@@ -1,2 +1,2 @@
1
- export * as operations from './operations/index.js'
2
1
  export * as clients from './clients/index.js'
2
+ export * as operations from './operations/index.js'
@@ -1,2 +1,2 @@
1
- export * as operations from './operations/index.js'
2
1
  export * as clients from './clients/index.js'
2
+ export * as operations from './operations/index.js'
@@ -1,11 +1,11 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
2
  export * as copyFile from './copy-file/index.js'
3
3
  export * as downloadFile from './download-file/index.js'
4
+ export * as existsFile from './exists-file/index.js'
4
5
  export * as listDir from './list-dir/index.js'
5
6
  export * as moveDir from './move-dir/index.js'
6
- export * as existsFile from './exists-file/index.js'
7
7
  export * as moveFile from './move-file/index.js'
8
+ export * as removeDir from './remove-dir/index.js'
8
9
  export * as removeFile from './remove-file/index.js'
9
10
  export * as statFile from './stat-file/index.js'
10
11
  export * as uploadFile from './upload-file/index.js'
11
- export * as removeDir from './remove-dir/index.js'
@@ -1,11 +1,11 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
2
  export * as copyFile from './copy-file/index.js'
3
3
  export * as downloadFile from './download-file/index.js'
4
+ export * as existsFile from './exists-file/index.js'
4
5
  export * as listDir from './list-dir/index.js'
5
6
  export * as moveDir from './move-dir/index.js'
6
- export * as existsFile from './exists-file/index.js'
7
7
  export * as moveFile from './move-file/index.js'
8
+ export * as removeDir from './remove-dir/index.js'
8
9
  export * as removeFile from './remove-file/index.js'
9
10
  export * as statFile from './stat-file/index.js'
10
11
  export * as uploadFile from './upload-file/index.js'
11
- export * as removeDir from './remove-dir/index.js'
@@ -1,7 +1,7 @@
1
1
  export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
3
  export * as exists from './exists/index.js'
4
- export * as move from './move/index.js'
5
4
  export * as remove from './remove/index.js'
6
- export * as stat from './stat/index.js'
5
+ export * as move from './move/index.js'
7
6
  export * as upload from './upload/index.js'
7
+ export * as stat from './stat/index.js'
@@ -1,7 +1,7 @@
1
1
  export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
3
  export * as exists from './exists/index.js'
4
- export * as move from './move/index.js'
5
4
  export * as remove from './remove/index.js'
6
- export * as stat from './stat/index.js'
5
+ export * as move from './move/index.js'
7
6
  export * as upload from './upload/index.js'
7
+ export * as stat from './stat/index.js'