@design-edito/tools 0.1.42 → 0.1.44

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 (141) hide show
  1. package/agnostic/arrays/index.d.ts +2 -2
  2. package/agnostic/arrays/is-array-of/index.d.ts +3 -3
  3. package/agnostic/arrays/random-pick/index.d.ts +2 -2
  4. package/agnostic/arrays/random-pick/index.js +13 -5
  5. package/agnostic/css/index.d.ts +2 -2
  6. package/agnostic/css/index.js +12 -12
  7. package/agnostic/errors/index.js +2 -2
  8. package/agnostic/html/hyper-json/cast/index.js +4 -4
  9. package/agnostic/html/hyper-json/index.js +5 -5
  10. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -4
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -4
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -4
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -4
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -4
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -4
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -4
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -4
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -4
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -4
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -4
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -4
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -4
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -4
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -4
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -4
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -4
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -4
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -4
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -4
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -4
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -4
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -4
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -4
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -4
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -4
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -4
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -4
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +4 -1
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -4
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -4
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -4
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -4
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -4
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +4 -4
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -4
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -4
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.d.ts +4 -0
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +21 -0
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -4
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -4
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -4
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -4
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -4
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -4
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -4
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -4
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -4
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -4
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -4
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -4
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -4
  62. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -4
  63. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -4
  64. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -4
  65. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -4
  66. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -4
  67. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -4
  68. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -4
  69. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -4
  70. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -4
  71. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -4
  72. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -4
  73. package/agnostic/html/hyper-json/tree/index.js +4 -4
  74. package/agnostic/html/hyper-json/utils/index.js +4 -4
  75. package/agnostic/html/index.js +23 -23
  76. package/agnostic/html/sanitize/index.js +6 -6
  77. package/agnostic/html/selector-to-element/index.js +6 -6
  78. package/agnostic/html/string-to-nodes/index.js +7 -7
  79. package/agnostic/misc/assert/index.d.ts +4 -2
  80. package/agnostic/misc/assert/index.js +5 -1
  81. package/agnostic/misc/crossenv/index.js +2 -2
  82. package/agnostic/misc/index.d.ts +0 -2
  83. package/agnostic/misc/index.js +27 -25
  84. package/agnostic/misc/is-constructor-function/index.d.ts +1 -1
  85. package/agnostic/misc/lorem-ipsum/index.js +15 -7
  86. package/agnostic/numbers/index.js +5 -5
  87. package/agnostic/objects/index.js +8 -8
  88. package/agnostic/random/index.js +2 -2
  89. package/agnostic/strings/index.d.ts +3 -0
  90. package/agnostic/strings/index.js +9 -3
  91. package/agnostic/strings/trim/index.d.ts +2 -0
  92. package/agnostic/strings/trim/index.js +8 -0
  93. package/agnostic/time/index.js +3 -3
  94. package/chunks/chunk-2HU2AWWJ.js +35 -0
  95. package/chunks/chunk-36CTYZYA.js +28 -0
  96. package/chunks/chunk-65YZMVWZ.js +35 -0
  97. package/chunks/chunk-6XL25OZX.js +12 -0
  98. package/chunks/chunk-6Z6GDMOR.js +28 -0
  99. package/chunks/chunk-72NLUT3X.js +29 -0
  100. package/chunks/chunk-72U4TDEB.js +127 -0
  101. package/chunks/chunk-7K2EL46G.js +2391 -0
  102. package/chunks/chunk-B446JIN3.js +29 -0
  103. package/chunks/chunk-C7SRAQMW.js +29 -0
  104. package/chunks/chunk-CHUOCTRP.js +26 -0
  105. package/chunks/chunk-CQEDNACN.js +28 -0
  106. package/chunks/chunk-CRGUZBZX.js +37 -0
  107. package/chunks/chunk-E4FJHD5R.js +67 -0
  108. package/chunks/chunk-GGT2PUZH.js +21 -0
  109. package/chunks/chunk-HNB6B4FO.js +37 -0
  110. package/chunks/chunk-HP722G2E.js +211 -0
  111. package/chunks/chunk-HQACEDCF.js +37 -0
  112. package/chunks/chunk-IECKIGM7.js +2391 -0
  113. package/chunks/chunk-JJK5733Z.js +211 -0
  114. package/chunks/chunk-JWF5EKM2.js +127 -0
  115. package/chunks/chunk-JYW5L62E.js +211 -0
  116. package/chunks/chunk-LLGU4W6F.js +37 -0
  117. package/chunks/chunk-MTT7TVR3.js +127 -0
  118. package/chunks/chunk-MW3KNVTG.js +29 -0
  119. package/chunks/chunk-N37FT2RW.js +2391 -0
  120. package/chunks/chunk-NHQVXC4Y.js +2391 -0
  121. package/chunks/chunk-P2H6PV4O.js +26 -0
  122. package/chunks/chunk-PIIE3634.js +37 -0
  123. package/chunks/chunk-RDQJSWRC.js +127 -0
  124. package/chunks/chunk-SA2IY5LN.js +35 -0
  125. package/chunks/chunk-SJLH36CH.js +26 -0
  126. package/chunks/chunk-TL3JMADI.js +2391 -0
  127. package/chunks/chunk-UBFLFJMH.js +37 -0
  128. package/chunks/chunk-VZQ4WCBH.js +2391 -0
  129. package/chunks/chunk-WAMSK4A3.js +67 -0
  130. package/chunks/chunk-WC2LQPQP.js +26 -0
  131. package/chunks/chunk-WTAMA5WX.js +37 -0
  132. package/chunks/chunk-X5HMM3LD.js +35 -0
  133. package/chunks/chunk-X7KWB2VQ.js +21 -0
  134. package/chunks/chunk-XH6TZMNR.js +211 -0
  135. package/chunks/chunk-XI2XIH6L.js +2391 -0
  136. package/chunks/chunk-XWU7O5KD.js +211 -0
  137. package/chunks/chunk-YVHJ7TUJ.js +211 -0
  138. package/chunks/chunk-ZNPRJEP5.js +28 -0
  139. package/node/files/index.js +3 -3
  140. package/package.json +1 -1
  141. package/shared/errors/index.d.ts +38 -1
@@ -1,49 +1,49 @@
1
1
  import {
2
- selectorToElement
3
- } from "../../chunks/chunk-COLNKMBN.js";
2
+ Placeholders
3
+ } from "../../chunks/chunk-VYW4IADX.js";
4
4
  import {
5
5
  stringToNodes
6
- } from "../../chunks/chunk-EX7FS6IR.js";
6
+ } from "../../chunks/chunk-ZNPRJEP5.js";
7
+ import {
8
+ Sanitize
9
+ } from "../../chunks/chunk-72U4TDEB.js";
10
+ import {
11
+ selectorToElement
12
+ } from "../../chunks/chunk-65YZMVWZ.js";
7
13
  import {
8
14
  HyperJson
9
- } from "../../chunks/chunk-XDZD6C76.js";
10
- import "../../chunks/chunk-R23B2MRN.js";
15
+ } from "../../chunks/chunk-CRGUZBZX.js";
16
+ import "../../chunks/chunk-NHQVXC4Y.js";
11
17
  import "../../chunks/chunk-QAVYONH6.js";
12
- import "../../chunks/chunk-XEQ2PBT2.js";
13
18
  import "../../chunks/chunk-VDNIN3V5.js";
19
+ import "../../chunks/chunk-XEQ2PBT2.js";
14
20
  import "../../chunks/chunk-FHLCPVND.js";
15
21
  import "../../chunks/chunk-UT2J62LH.js";
16
22
  import "../../chunks/chunk-SXRWMH3U.js";
17
23
  import "../../chunks/chunk-BKO7GLC2.js";
18
24
  import "../../chunks/chunk-RW7VAKJW.js";
19
25
  import {
20
- getNodeAncestors
21
- } from "../../chunks/chunk-LUPVHC73.js";
26
+ insertNode
27
+ } from "../../chunks/chunk-XA4HVHJ4.js";
22
28
  import {
23
29
  getPositionInsideParent
24
30
  } from "../../chunks/chunk-VTPRO4NJ.js";
25
31
  import {
26
- Placeholders
27
- } from "../../chunks/chunk-VYW4IADX.js";
28
- import {
29
- insertNode
30
- } from "../../chunks/chunk-XA4HVHJ4.js";
31
- import {
32
- Sanitize
33
- } from "../../chunks/chunk-WXXW6YLW.js";
34
- import "../../chunks/chunk-E6MSDKON.js";
32
+ getNodeAncestors
33
+ } from "../../chunks/chunk-LUPVHC73.js";
34
+ import "../../chunks/chunk-JMU5PDBD.js";
35
35
  import "../../chunks/chunk-YDIBNEGA.js";
36
36
  import "../../chunks/chunk-XNF5MLCQ.js";
37
- import "../../chunks/chunk-JMU5PDBD.js";
37
+ import "../../chunks/chunk-E6MSDKON.js";
38
38
  import "../../chunks/chunk-ZTDVUXPR.js";
39
- import "../../chunks/chunk-UDY37VIJ.js";
40
- import "../../chunks/chunk-FR5H2OCV.js";
39
+ import "../../chunks/chunk-SJLH36CH.js";
40
+ import "../../chunks/chunk-GGT2PUZH.js";
41
41
  import "../../chunks/chunk-S2NMAH7K.js";
42
- import "../../chunks/chunk-LV2VMOWR.js";
43
42
  import "../../chunks/chunk-RLJOYG64.js";
44
- import "../../chunks/chunk-2KT7AKRW.js";
45
- import "../../chunks/chunk-FENXVJYO.js";
43
+ import "../../chunks/chunk-LV2VMOWR.js";
44
+ import "../../chunks/chunk-WH6BPDAC.js";
46
45
  import "../../chunks/chunk-QHLQVR3E.js";
46
+ import "../../chunks/chunk-FENXVJYO.js";
47
47
 
48
48
  // src/agnostic/html/index.ts
49
49
  var Html;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  Sanitize
3
- } from "../../../chunks/chunk-WXXW6YLW.js";
4
- import "../../../chunks/chunk-UDY37VIJ.js";
5
- import "../../../chunks/chunk-FR5H2OCV.js";
3
+ } from "../../../chunks/chunk-72U4TDEB.js";
4
+ import "../../../chunks/chunk-SJLH36CH.js";
5
+ import "../../../chunks/chunk-GGT2PUZH.js";
6
6
  import "../../../chunks/chunk-S2NMAH7K.js";
7
- import "../../../chunks/chunk-LV2VMOWR.js";
8
7
  import "../../../chunks/chunk-RLJOYG64.js";
9
- import "../../../chunks/chunk-2KT7AKRW.js";
10
- import "../../../chunks/chunk-FENXVJYO.js";
8
+ import "../../../chunks/chunk-LV2VMOWR.js";
9
+ import "../../../chunks/chunk-WH6BPDAC.js";
11
10
  import "../../../chunks/chunk-QHLQVR3E.js";
11
+ import "../../../chunks/chunk-FENXVJYO.js";
12
12
  export {
13
13
  Sanitize
14
14
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  selectorToElement
3
- } from "../../../chunks/chunk-COLNKMBN.js";
4
- import "../../../chunks/chunk-UDY37VIJ.js";
5
- import "../../../chunks/chunk-FR5H2OCV.js";
3
+ } from "../../../chunks/chunk-65YZMVWZ.js";
4
+ import "../../../chunks/chunk-SJLH36CH.js";
5
+ import "../../../chunks/chunk-GGT2PUZH.js";
6
6
  import "../../../chunks/chunk-S2NMAH7K.js";
7
- import "../../../chunks/chunk-LV2VMOWR.js";
8
7
  import "../../../chunks/chunk-RLJOYG64.js";
9
- import "../../../chunks/chunk-2KT7AKRW.js";
10
- import "../../../chunks/chunk-FENXVJYO.js";
8
+ import "../../../chunks/chunk-LV2VMOWR.js";
9
+ import "../../../chunks/chunk-WH6BPDAC.js";
11
10
  import "../../../chunks/chunk-QHLQVR3E.js";
11
+ import "../../../chunks/chunk-FENXVJYO.js";
12
12
  export {
13
13
  selectorToElement
14
14
  };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  stringToNodes
3
- } from "../../../chunks/chunk-EX7FS6IR.js";
4
- import "../../../chunks/chunk-WXXW6YLW.js";
5
- import "../../../chunks/chunk-UDY37VIJ.js";
6
- import "../../../chunks/chunk-FR5H2OCV.js";
3
+ } from "../../../chunks/chunk-ZNPRJEP5.js";
4
+ import "../../../chunks/chunk-72U4TDEB.js";
5
+ import "../../../chunks/chunk-SJLH36CH.js";
6
+ import "../../../chunks/chunk-GGT2PUZH.js";
7
7
  import "../../../chunks/chunk-S2NMAH7K.js";
8
- import "../../../chunks/chunk-LV2VMOWR.js";
9
8
  import "../../../chunks/chunk-RLJOYG64.js";
10
- import "../../../chunks/chunk-2KT7AKRW.js";
11
- import "../../../chunks/chunk-FENXVJYO.js";
9
+ import "../../../chunks/chunk-LV2VMOWR.js";
10
+ import "../../../chunks/chunk-WH6BPDAC.js";
12
11
  import "../../../chunks/chunk-QHLQVR3E.js";
12
+ import "../../../chunks/chunk-FENXVJYO.js";
13
13
  export {
14
14
  stringToNodes
15
15
  };
@@ -1,5 +1,7 @@
1
+ import { Outcome } from '../outcome';
1
2
  export declare namespace Assert {
2
- type Assertion = (() => boolean) | boolean;
3
- export function assert(label: string, assertion: Assertion | Array<Assertion>): void;
3
+ type Assertion = (() => boolean) | (() => Promise<boolean>) | boolean;
4
+ export function assert(label: string, assertion: Assertion | Array<Assertion> | Map<string, Assertion> | Record<string, Assertion>): Promise<Outcome.Either<string, string>>;
5
+ export function assertVerbose(label: string, assertion: Assertion | Array<Assertion> | Map<string, Assertion>): Promise<void | Outcome.Success<string>>;
4
6
  export {};
5
7
  }
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  Assert
3
- } from "../../../chunks/chunk-W7YBGJ4H.js";
3
+ } from "../../../chunks/chunk-WAMSK4A3.js";
4
+ import "../../../chunks/chunk-JMU5PDBD.js";
5
+ import "../../../chunks/chunk-WH6BPDAC.js";
6
+ import "../../../chunks/chunk-QHLQVR3E.js";
7
+ import "../../../chunks/chunk-FENXVJYO.js";
4
8
  export {
5
9
  Assert
6
10
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Crossenv
3
- } from "../../../chunks/chunk-FR5H2OCV.js";
3
+ } from "../../../chunks/chunk-GGT2PUZH.js";
4
4
  import "../../../chunks/chunk-S2NMAH7K.js";
5
- import "../../../chunks/chunk-LV2VMOWR.js";
6
5
  import "../../../chunks/chunk-RLJOYG64.js";
6
+ import "../../../chunks/chunk-LV2VMOWR.js";
7
7
  export {
8
8
  Crossenv
9
9
  };
@@ -7,7 +7,6 @@ import { ConstructorFunction as ConstructorFunctionType, isConstructorFunction a
7
7
  import { Nullish as NullishType, isNullish as isNullishFunc, isNotNullish as isNotNullishFunc } from './is-nullish';
8
8
  import { Logs as LogsNamespace } from './logs';
9
9
  import { LoremIpsum as LoremIpsumNamespace } from './lorem-ipsum';
10
- import { Random as RandomNamespace } from '../random';
11
10
  export declare namespace Misc {
12
11
  export import Assert = AssertNamespace;
13
12
  export import Cast = CastNamespace;
@@ -22,5 +21,4 @@ export declare namespace Misc {
22
21
  const isNotNullish: typeof isNotNullishFunc;
23
22
  export import Logs = LogsNamespace;
24
23
  export import LoremIpsum = LoremIpsumNamespace;
25
- export import Random = RandomNamespace;
26
24
  }
@@ -1,3 +1,6 @@
1
+ import {
2
+ LoremIpsum
3
+ } from "../../chunks/chunk-JJK5733Z.js";
1
4
  import {
2
5
  Logs
3
6
  } from "../../chunks/chunk-MJQF3YZO.js";
@@ -6,45 +9,45 @@ import "../../chunks/chunk-L3OCRR3V.js";
6
9
  import "../../chunks/chunk-H4PP6AHP.js";
7
10
  import {
8
11
  Assert
9
- } from "../../chunks/chunk-W7YBGJ4H.js";
12
+ } from "../../chunks/chunk-WAMSK4A3.js";
13
+ import "../../chunks/chunk-JMU5PDBD.js";
10
14
  import {
11
- Cast
12
- } from "../../chunks/chunk-SNJJII7A.js";
15
+ Crawler
16
+ } from "../../chunks/chunk-YUP434IY.js";
13
17
  import {
14
18
  getCurrentDownlink
15
19
  } from "../../chunks/chunk-7AWTHZLY.js";
20
+ import "../../chunks/chunk-4CIS3R7T.js";
16
21
  import {
17
- LoremIpsum
18
- } from "../../chunks/chunk-FONURDTX.js";
22
+ Cast
23
+ } from "../../chunks/chunk-SNJJII7A.js";
24
+ import "../../chunks/chunk-DCKTGQOX.js";
25
+ import "../../chunks/chunk-75BICI4L.js";
26
+ import "../../chunks/chunk-D3ERTRDW.js";
27
+ import "../../chunks/chunk-OGBUSUE6.js";
28
+ import "../../chunks/chunk-QXAJXTXV.js";
19
29
  import {
20
- Crawler
21
- } from "../../chunks/chunk-YUP434IY.js";
22
- import "../../chunks/chunk-4CIS3R7T.js";
30
+ isNotNullish,
31
+ isNullish,
32
+ nullishValues
33
+ } from "../../chunks/chunk-HC6ZOHCS.js";
23
34
  import "../../chunks/chunk-YS6WMSWC.js";
35
+ import "../../chunks/chunk-RLAZR3NL.js";
24
36
  import "../../chunks/chunk-6RGDWX4A.js";
25
37
  import {
26
38
  isConstructorFunction
27
39
  } from "../../chunks/chunk-RCO57B6F.js";
28
- import "../../chunks/chunk-FCU6IHKD.js";
29
- import "../../chunks/chunk-RLAZR3NL.js";
40
+ import "../../chunks/chunk-72NLUT3X.js";
41
+ import "../../chunks/chunk-SJLH36CH.js";
30
42
  import {
31
43
  Crossenv
32
- } from "../../chunks/chunk-FR5H2OCV.js";
44
+ } from "../../chunks/chunk-GGT2PUZH.js";
33
45
  import "../../chunks/chunk-S2NMAH7K.js";
34
- import "../../chunks/chunk-LV2VMOWR.js";
35
46
  import "../../chunks/chunk-RLJOYG64.js";
36
- import {
37
- Random
38
- } from "../../chunks/chunk-OVG5RGI3.js";
39
- import "../../chunks/chunk-75BICI4L.js";
40
- import "../../chunks/chunk-OGBUSUE6.js";
41
- import "../../chunks/chunk-D3ERTRDW.js";
42
- import "../../chunks/chunk-QXAJXTXV.js";
43
- import {
44
- isNotNullish,
45
- isNullish,
46
- nullishValues
47
- } from "../../chunks/chunk-HC6ZOHCS.js";
47
+ import "../../chunks/chunk-LV2VMOWR.js";
48
+ import "../../chunks/chunk-WH6BPDAC.js";
49
+ import "../../chunks/chunk-QHLQVR3E.js";
50
+ import "../../chunks/chunk-FENXVJYO.js";
48
51
 
49
52
  // src/agnostic/misc/index.ts
50
53
  var Misc;
@@ -60,7 +63,6 @@ var Misc;
60
63
  Misc2.isNotNullish = isNotNullish;
61
64
  Misc2.Logs = Logs;
62
65
  Misc2.LoremIpsum = LoremIpsum;
63
- Misc2.Random = Random;
64
66
  })(Misc || (Misc = {}));
65
67
  export {
66
68
  Misc
@@ -1,2 +1,2 @@
1
- export type ConstructorFunction = new (...args: any[]) => any;
1
+ export type ConstructorFunction<T extends any = any> = new (...args: any[]) => T;
2
2
  export declare function isConstructorFunction(input: unknown): input is ConstructorFunction;
@@ -1,15 +1,23 @@
1
1
  import {
2
2
  LoremIpsum
3
- } from "../../../chunks/chunk-FONURDTX.js";
3
+ } from "../../../chunks/chunk-JJK5733Z.js";
4
+ import "../../../chunks/chunk-DCKTGQOX.js";
5
+ import "../../../chunks/chunk-75BICI4L.js";
6
+ import "../../../chunks/chunk-D3ERTRDW.js";
7
+ import "../../../chunks/chunk-OGBUSUE6.js";
4
8
  import "../../../chunks/chunk-YS6WMSWC.js";
9
+ import "../../../chunks/chunk-RLAZR3NL.js";
5
10
  import "../../../chunks/chunk-6RGDWX4A.js";
6
11
  import "../../../chunks/chunk-RCO57B6F.js";
7
- import "../../../chunks/chunk-FCU6IHKD.js";
8
- import "../../../chunks/chunk-RLAZR3NL.js";
9
- import "../../../chunks/chunk-OVG5RGI3.js";
10
- import "../../../chunks/chunk-75BICI4L.js";
11
- import "../../../chunks/chunk-OGBUSUE6.js";
12
- import "../../../chunks/chunk-D3ERTRDW.js";
12
+ import "../../../chunks/chunk-72NLUT3X.js";
13
+ import "../../../chunks/chunk-SJLH36CH.js";
14
+ import "../../../chunks/chunk-GGT2PUZH.js";
15
+ import "../../../chunks/chunk-S2NMAH7K.js";
16
+ import "../../../chunks/chunk-RLJOYG64.js";
17
+ import "../../../chunks/chunk-LV2VMOWR.js";
18
+ import "../../../chunks/chunk-WH6BPDAC.js";
19
+ import "../../../chunks/chunk-QHLQVR3E.js";
20
+ import "../../../chunks/chunk-FENXVJYO.js";
13
21
  export {
14
22
  LoremIpsum
15
23
  };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  interpolate
3
3
  } from "../../chunks/chunk-BJAYUP7M.js";
4
- import {
5
- clamp
6
- } from "../../chunks/chunk-OSAXBA7G.js";
7
4
  import {
8
5
  createScale,
9
6
  getHarmonic
10
7
  } from "../../chunks/chunk-UYTXXUU7.js";
8
+ import {
9
+ absoluteModulo
10
+ } from "../../chunks/chunk-DNIOWD7K.js";
11
11
  import {
12
12
  round
13
13
  } from "../../chunks/chunk-32IRF4OP.js";
14
14
  import {
15
- absoluteModulo
16
- } from "../../chunks/chunk-DNIOWD7K.js";
15
+ clamp
16
+ } from "../../chunks/chunk-OSAXBA7G.js";
17
17
 
18
18
  // src/agnostic/numbers/index.ts
19
19
  var Numbers;
@@ -1,20 +1,17 @@
1
- import {
2
- Enums
3
- } from "../../chunks/chunk-WOAYU6LB.js";
4
- import "../../chunks/chunk-E6MSDKON.js";
5
1
  import {
6
2
  deepGetProperty
7
3
  } from "../../chunks/chunk-SKMCIFS3.js";
8
- import {
9
- isRecord
10
- } from "../../chunks/chunk-YDIBNEGA.js";
11
4
  import {
12
5
  flattenGetters
13
6
  } from "../../chunks/chunk-VFJYLXCI.js";
7
+ import "../../chunks/chunk-SNJJII7A.js";
14
8
  import {
15
9
  isNonNullObject,
16
10
  isObject
17
11
  } from "../../chunks/chunk-HQLRJ7XW.js";
12
+ import {
13
+ isRecord
14
+ } from "../../chunks/chunk-YDIBNEGA.js";
18
15
  import {
19
16
  recordFormat
20
17
  } from "../../chunks/chunk-YP64J65L.js";
@@ -24,7 +21,10 @@ import {
24
21
  import {
25
22
  Validation
26
23
  } from "../../chunks/chunk-FPEW3A27.js";
27
- import "../../chunks/chunk-SNJJII7A.js";
24
+ import {
25
+ Enums
26
+ } from "../../chunks/chunk-WOAYU6LB.js";
27
+ import "../../chunks/chunk-E6MSDKON.js";
28
28
  import "../../chunks/chunk-QXAJXTXV.js";
29
29
  import "../../chunks/chunk-HC6ZOHCS.js";
30
30
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Random
3
- } from "../../chunks/chunk-OVG5RGI3.js";
3
+ } from "../../chunks/chunk-DCKTGQOX.js";
4
4
  import "../../chunks/chunk-75BICI4L.js";
5
- import "../../chunks/chunk-OGBUSUE6.js";
6
5
  import "../../chunks/chunk-D3ERTRDW.js";
6
+ import "../../chunks/chunk-OGBUSUE6.js";
7
7
  export {
8
8
  Random
9
9
  };
@@ -3,6 +3,7 @@ import { matches as matchesFunc, matchesSome as matchesSomeFunc, matchesEvery as
3
3
  import { replaceAll as replaceAllFunc } from './replace-all';
4
4
  import { normalizeIndent as normalizeIndentFunc } from './normalize-indent';
5
5
  import { toAlphanum as toAlphanumFunc } from './to-alphanum';
6
+ import { trimStart as trimStartFunc, trimEnd as trimEndFunc } from './trim';
6
7
  export declare namespace Strings {
7
8
  export import CharCodes = CharCodesNamespace;
8
9
  const matches: typeof matchesFunc;
@@ -11,4 +12,6 @@ export declare namespace Strings {
11
12
  const normalizeIndent: typeof normalizeIndentFunc;
12
13
  const replaceAll: typeof replaceAllFunc;
13
14
  const toAlphanum: typeof toAlphanumFunc;
15
+ const trimStart: typeof trimStartFunc;
16
+ const trimEnd: typeof trimEndFunc;
14
17
  }
@@ -1,6 +1,3 @@
1
- import {
2
- replaceAll
3
- } from "../../chunks/chunk-ZTDVUXPR.js";
4
1
  import {
5
2
  CharCodes
6
3
  } from "../../chunks/chunk-34U4HX4V.js";
@@ -15,6 +12,13 @@ import {
15
12
  import {
16
13
  toAlphanum
17
14
  } from "../../chunks/chunk-COVPTTAD.js";
15
+ import {
16
+ replaceAll
17
+ } from "../../chunks/chunk-ZTDVUXPR.js";
18
+ import {
19
+ trimEnd,
20
+ trimStart
21
+ } from "../../chunks/chunk-6XL25OZX.js";
18
22
 
19
23
  // src/agnostic/strings/index.ts
20
24
  var Strings;
@@ -26,6 +30,8 @@ var Strings;
26
30
  Strings2.normalizeIndent = normalizeIndent;
27
31
  Strings2.replaceAll = replaceAll;
28
32
  Strings2.toAlphanum = toAlphanum;
33
+ Strings2.trimStart = trimStart;
34
+ Strings2.trimEnd = trimEnd;
29
35
  })(Strings || (Strings = {}));
30
36
  export {
31
37
  Strings
@@ -0,0 +1,2 @@
1
+ export declare function trimStart(string: string): string;
2
+ export declare function trimEnd(string: string): string;
@@ -0,0 +1,8 @@
1
+ import {
2
+ trimEnd,
3
+ trimStart
4
+ } from "../../../chunks/chunk-6XL25OZX.js";
5
+ export {
6
+ trimEnd,
7
+ trimStart
8
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Duration
3
3
  } from "../../chunks/chunk-6NYUQXJT.js";
4
- import {
5
- Transitions
6
- } from "../../chunks/chunk-ENMBK6H7.js";
7
4
  import {
8
5
  timeout
9
6
  } from "../../chunks/chunk-Z7ZDDBV5.js";
7
+ import {
8
+ Transitions
9
+ } from "../../chunks/chunk-ENMBK6H7.js";
10
10
  import {
11
11
  wait
12
12
  } from "../../chunks/chunk-4CIS3R7T.js";
@@ -0,0 +1,35 @@
1
+ import {
2
+ register
3
+ } from "./chunk-WC2LQPQP.js";
4
+
5
+ // src/agnostic/html/selector-to-element/index.ts
6
+ function selectorToElement(selector, documentObj) {
7
+ const actualDocument = documentObj ?? window.document;
8
+ if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "The optional second parameter expects a Document object");
9
+ const tagRegexp = /^[A-Za-z]+/;
10
+ const idRegexp = /#[A-Za-z]+[\w\-\:]*/;
11
+ const classRegexp = /\.[A-Za-z]+[\w\-]*/;
12
+ const attributeRegexp = /\[[A-Za-z]+[\w\-]*(="[\w\-]+")?\]/;
13
+ const matchedTags = selector.match(tagRegexp) ?? [];
14
+ const matchedIds = selector.match(idRegexp) ?? [];
15
+ const matchedClasses = selector.match(classRegexp) ?? [];
16
+ const matchedAttrs = selector.match(attributeRegexp) ?? [];
17
+ const tag = matchedTags[matchedTags.length - 1] ?? "div";
18
+ const id = matchedIds[matchedIds.length - 1] ?? null;
19
+ const classes = matchedClasses.map((matchedClass) => matchedClass.replace(/^\./, ""));
20
+ const attributes = matchedAttrs.map((matchedAttr) => matchedAttr.replace(/^\[/, "").replace(/\]$/, "").split("="));
21
+ const element = actualDocument.createElement(tag);
22
+ if (id !== null) {
23
+ element.id = id;
24
+ }
25
+ element.classList.add(...classes);
26
+ attributes.forEach(([name, value = ""]) => {
27
+ if (name === void 0) return;
28
+ element.setAttribute(name, value);
29
+ });
30
+ return element;
31
+ }
32
+
33
+ export {
34
+ selectorToElement
35
+ };
@@ -0,0 +1,28 @@
1
+ import {
2
+ Sanitize
3
+ } from "./chunk-JWF5EKM2.js";
4
+ import {
5
+ register
6
+ } from "./chunk-CHUOCTRP.js";
7
+
8
+ // src/agnostic/html/string-to-nodes/index.ts
9
+ function stringToNodes(dirtyStr, options) {
10
+ const actualDocument = options?.documentObj ?? window.document;
11
+ if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
12
+ const sanitizeOptions = {
13
+ ...options?.sanitize,
14
+ documentObj: options?.sanitize?.documentObj ?? options?.documentObj
15
+ };
16
+ const str = options?.sanitize !== void 0 ? Sanitize.sanitize(dirtyStr, sanitizeOptions) : dirtyStr;
17
+ const wrapperDiv = actualDocument.createElement("div");
18
+ wrapperDiv.innerHTML = str;
19
+ const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
20
+ const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
21
+ return allowedNodeTypes.includes(node.nodeType);
22
+ });
23
+ return nodes;
24
+ }
25
+
26
+ export {
27
+ stringToNodes
28
+ };
@@ -0,0 +1,35 @@
1
+ import {
2
+ register
3
+ } from "./chunk-SJLH36CH.js";
4
+
5
+ // src/agnostic/html/selector-to-element/index.ts
6
+ function selectorToElement(selector, documentObj) {
7
+ const actualDocument = documentObj ?? window.document;
8
+ if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "The optional second parameter expects a Document object");
9
+ const tagRegexp = /^[A-Za-z]+/;
10
+ const idRegexp = /#[A-Za-z]+[\w\-\:]*/;
11
+ const classRegexp = /\.[A-Za-z]+[\w\-]*/;
12
+ const attributeRegexp = /\[[A-Za-z]+[\w\-]*(="[\w\-]+")?\]/;
13
+ const matchedTags = selector.match(tagRegexp) ?? [];
14
+ const matchedIds = selector.match(idRegexp) ?? [];
15
+ const matchedClasses = selector.match(classRegexp) ?? [];
16
+ const matchedAttrs = selector.match(attributeRegexp) ?? [];
17
+ const tag = matchedTags[matchedTags.length - 1] ?? "div";
18
+ const id = matchedIds[matchedIds.length - 1] ?? null;
19
+ const classes = matchedClasses.map((matchedClass) => matchedClass.replace(/^\./, ""));
20
+ const attributes = matchedAttrs.map((matchedAttr) => matchedAttr.replace(/^\[/, "").replace(/\]$/, "").split("="));
21
+ const element = actualDocument.createElement(tag);
22
+ if (id !== null) {
23
+ element.id = id;
24
+ }
25
+ element.classList.add(...classes);
26
+ attributes.forEach(([name, value = ""]) => {
27
+ if (name === void 0) return;
28
+ element.setAttribute(name, value);
29
+ });
30
+ return element;
31
+ }
32
+
33
+ export {
34
+ selectorToElement
35
+ };
@@ -0,0 +1,12 @@
1
+ // src/agnostic/strings/trim/index.ts
2
+ function trimStart(string) {
3
+ return string.replace(/^\s*/, "");
4
+ }
5
+ function trimEnd(string) {
6
+ return string.replace(/\s*$/, "");
7
+ }
8
+
9
+ export {
10
+ trimStart,
11
+ trimEnd
12
+ };
@@ -0,0 +1,28 @@
1
+ import {
2
+ Sanitize
3
+ } from "./chunk-MTT7TVR3.js";
4
+ import {
5
+ register
6
+ } from "./chunk-WC2LQPQP.js";
7
+
8
+ // src/agnostic/html/string-to-nodes/index.ts
9
+ function stringToNodes(dirtyStr, options) {
10
+ const actualDocument = options?.documentObj ?? window.document;
11
+ if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
12
+ const sanitizeOptions = {
13
+ ...options?.sanitize,
14
+ documentObj: options?.sanitize?.documentObj ?? options?.documentObj
15
+ };
16
+ const str = options?.sanitize !== void 0 ? Sanitize.sanitize(dirtyStr, sanitizeOptions) : dirtyStr;
17
+ const wrapperDiv = actualDocument.createElement("div");
18
+ wrapperDiv.innerHTML = str;
19
+ const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
20
+ const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
21
+ return allowedNodeTypes.includes(node.nodeType);
22
+ });
23
+ return nodes;
24
+ }
25
+
26
+ export {
27
+ stringToNodes
28
+ };
@@ -0,0 +1,29 @@
1
+ import {
2
+ register
3
+ } from "./chunk-SJLH36CH.js";
4
+
5
+ // src/agnostic/arrays/random-pick/index.ts
6
+ function randomPick(arr, exclude = []) {
7
+ const filteredArr = [...arr].filter((elt) => !exclude.includes(elt));
8
+ const length = filteredArr.length;
9
+ if (length === 0) throw register.getError("impossible-to-pick-in-array" /* IMPOSSIBLE_TO_PICK_IN_ARRAY */, arr);
10
+ const pos = Math.floor(Math.random() * length);
11
+ const found = filteredArr[pos];
12
+ return found;
13
+ }
14
+ function randomPickMany(howMuch, arr, exclude = []) {
15
+ const grindedArr = [...arr];
16
+ const pickedSelection = [];
17
+ for (let i = 0; i < howMuch; i++) {
18
+ const picked = randomPick(grindedArr, exclude);
19
+ const indexOfPicked = grindedArr.indexOf(picked);
20
+ grindedArr.splice(indexOfPicked, 1);
21
+ pickedSelection.push(picked);
22
+ }
23
+ return pickedSelection;
24
+ }
25
+
26
+ export {
27
+ randomPick,
28
+ randomPickMany
29
+ };