@design-edito/tools 0.0.33 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. package/agnostic/arrays/index.d.ts +11 -0
  2. package/{utils/agnostic → agnostic/arrays}/is-array-of/index.d.ts +2 -2
  3. package/agnostic/arrays/is-array-of/index.js +23 -0
  4. package/agnostic/async/index.d.ts +8 -0
  5. package/agnostic/async/index.js +20 -0
  6. package/agnostic/async/timeout-call/index.d.ts +1 -0
  7. package/agnostic/async/timeout-call/index.js +6 -0
  8. package/agnostic/async/transitions/index.d.ts +41 -0
  9. package/agnostic/async/transitions/index.js +7 -0
  10. package/agnostic/async/wait/index.d.ts +1 -0
  11. package/agnostic/async/wait/index.js +6 -0
  12. package/agnostic/booleans/index.d.ts +8 -0
  13. package/agnostic/booleans/index.js +17 -0
  14. package/{utils/agnostic → agnostic/booleans}/is-falsy/index.d.ts +1 -2
  15. package/agnostic/booleans/is-falsy/index.js +11 -0
  16. package/agnostic/css/bem/index.d.ts +7 -0
  17. package/agnostic/css/bem/index.js +9 -0
  18. package/{utils/agnostic → agnostic/css}/generate-nice-color/index.d.ts +0 -1
  19. package/agnostic/css/generate-nice-color/index.js +8 -0
  20. package/agnostic/css/index.d.ts +14 -0
  21. package/agnostic/css/index.js +177 -0
  22. package/agnostic/css/is-valid-css-class-name/index.d.ts +2 -0
  23. package/agnostic/css/is-valid-css-class-name/index.js +8 -0
  24. package/agnostic/css/styles-set/index.d.ts +37 -0
  25. package/agnostic/errors/index.d.ts +30 -0
  26. package/agnostic/errors/index.js +6 -0
  27. package/agnostic/html/get-node-ancestors/index.d.ts +1 -0
  28. package/agnostic/html/get-node-ancestors/index.js +6 -0
  29. package/agnostic/html/get-position-inside-parent/index.d.ts +1 -0
  30. package/agnostic/html/get-position-inside-parent/index.js +6 -0
  31. package/agnostic/html/index.d.ts +17 -0
  32. package/agnostic/html/index.js +39 -0
  33. package/agnostic/html/insert-node/index.d.ts +2 -0
  34. package/agnostic/html/insert-node/index.js +6 -0
  35. package/agnostic/html/placeholders/index.d.ts +9 -0
  36. package/agnostic/html/placeholders/index.js +6 -0
  37. package/agnostic/html/sanitize/index.d.ts +24 -0
  38. package/agnostic/html/sanitize/index.js +9 -0
  39. package/agnostic/html/selector-to-element/index.d.ts +1 -0
  40. package/agnostic/html/selector-to-element/index.js +9 -0
  41. package/agnostic/html/string-to-nodes/index.d.ts +7 -0
  42. package/agnostic/html/string-to-nodes/index.js +10 -0
  43. package/agnostic/index.d.ts +26 -0
  44. package/agnostic/misc/assert/index.d.ts +5 -0
  45. package/agnostic/misc/assert/index.js +6 -0
  46. package/agnostic/misc/cast/index.d.ts +9 -0
  47. package/agnostic/misc/cast/index.js +8 -0
  48. package/agnostic/misc/crossenv/index.d.ts +13 -0
  49. package/agnostic/misc/crossenv/index.js +6 -0
  50. package/agnostic/misc/get-current-downlink/index.d.ts +1 -0
  51. package/agnostic/misc/get-current-downlink/index.js +6 -0
  52. package/agnostic/misc/index.d.ts +22 -0
  53. package/agnostic/misc/index.js +45 -0
  54. package/{utils/agnostic → agnostic/misc}/is-constructor-function/index.d.ts +1 -1
  55. package/agnostic/misc/is-constructor-function/index.js +6 -0
  56. package/{utils/agnostic → agnostic/misc}/is-nullish/index.d.ts +0 -1
  57. package/agnostic/misc/is-nullish/index.js +10 -0
  58. package/agnostic/misc/logs/index.d.ts +55 -0
  59. package/agnostic/misc/logs/index.js +6 -0
  60. package/agnostic/misc/random/index.d.ts +10 -0
  61. package/agnostic/misc/random/index.js +6 -0
  62. package/agnostic/numbers/absolute-modulo/index.d.ts +1 -0
  63. package/agnostic/numbers/absolute-modulo/index.js +6 -0
  64. package/agnostic/numbers/clamp/index.d.ts +1 -0
  65. package/agnostic/numbers/clamp/index.js +6 -0
  66. package/agnostic/numbers/index.d.ts +13 -0
  67. package/agnostic/numbers/index.js +30 -0
  68. package/agnostic/numbers/interpolate/index.d.ts +1 -0
  69. package/agnostic/numbers/interpolate/index.js +6 -0
  70. package/agnostic/numbers/responsive-harmonics/index.js +9 -0
  71. package/agnostic/numbers/round/index.d.ts +1 -0
  72. package/agnostic/numbers/round/index.js +6 -0
  73. package/agnostic/objects/enums/index.d.ts +4 -0
  74. package/agnostic/objects/enums/index.js +7 -0
  75. package/{utils/agnostic → agnostic/objects/enums}/is-in-enum/index.d.ts +1 -1
  76. package/agnostic/objects/enums/is-in-enum/index.js +6 -0
  77. package/agnostic/objects/flatten-getters/index.d.ts +1 -0
  78. package/agnostic/objects/flatten-getters/index.js +9 -0
  79. package/agnostic/objects/index.d.ts +12 -0
  80. package/agnostic/objects/index.js +32 -0
  81. package/agnostic/objects/is-object/index.d.ts +1 -0
  82. package/agnostic/objects/is-object/index.js +6 -0
  83. package/agnostic/objects/is-record/index.d.ts +1 -0
  84. package/agnostic/objects/is-record/index.js +6 -0
  85. package/agnostic/objects/record-format/index.js +16 -0
  86. package/agnostic/objects/validation/index.d.ts +3 -0
  87. package/agnostic/objects/validation/index.js +6 -0
  88. package/agnostic/optim/index.d.ts +7 -0
  89. package/agnostic/optim/index.js +18 -0
  90. package/{utils/agnostic → agnostic/optim}/memoize/index.d.ts +1 -1
  91. package/agnostic/optim/memoize/index.js +6 -0
  92. package/agnostic/optim/throttle-debounce/index.js +8 -0
  93. package/{utils/agnostic → agnostic/optim}/throttle-debounce/types.d.ts +0 -1
  94. package/agnostic/regexps/index.d.ts +23 -0
  95. package/agnostic/regexps/index.js +89 -0
  96. package/agnostic/strings/char-codes/index.d.ts +17 -0
  97. package/agnostic/strings/char-codes/index.js +6 -0
  98. package/agnostic/strings/index.d.ts +14 -0
  99. package/agnostic/strings/index.js +32 -0
  100. package/agnostic/strings/matches/index.d.ts +3 -0
  101. package/agnostic/strings/matches/index.js +10 -0
  102. package/agnostic/strings/normalize-indent/index.d.ts +1 -0
  103. package/agnostic/strings/normalize-indent/index.js +6 -0
  104. package/{utils/agnostic → agnostic/strings}/replace-all/index.d.ts +1 -1
  105. package/agnostic/strings/replace-all/index.js +6 -0
  106. package/agnostic/strings/to-alphanum/index.d.ts +1 -0
  107. package/agnostic/strings/to-alphanum/index.js +6 -0
  108. package/chunks/chunk-32IRF4OP.js +9 -0
  109. package/chunks/chunk-34U4HX4V.js +73 -0
  110. package/chunks/chunk-4GDNHUCZ.js +162 -0
  111. package/chunks/chunk-4QQBKBYH.js +59 -0
  112. package/chunks/chunk-4VC5PT5T.js +13 -0
  113. package/chunks/chunk-5LNUCDQ6.js +132 -0
  114. package/chunks/chunk-7AWTHZLY.js +12 -0
  115. package/chunks/chunk-7DBNMU6N.js +14 -0
  116. package/chunks/chunk-7YW5HL6N.js +168 -0
  117. package/chunks/chunk-COVPTTAD.js +10 -0
  118. package/chunks/chunk-DNIOWD7K.js +8 -0
  119. package/chunks/chunk-DQNJQBC6.js +10 -0
  120. package/chunks/chunk-E6MSDKON.js +13 -0
  121. package/chunks/chunk-EDVNAV3G.js +72 -0
  122. package/chunks/chunk-EW46EXFB.js +8 -0
  123. package/chunks/chunk-FPEW3A27.js +14 -0
  124. package/chunks/chunk-GJOU3UAL.js +36 -0
  125. package/chunks/chunk-HC6ZOHCS.js +14 -0
  126. package/chunks/chunk-HGCG2J77.js +122 -0
  127. package/chunks/chunk-IFD7GSGK.js +130 -0
  128. package/chunks/chunk-JQXNEJAP.js +18 -0
  129. package/chunks/chunk-JWBDZPQG.js +18 -0
  130. package/chunks/chunk-K37RALUX.js +8 -0
  131. package/chunks/chunk-KQT5CTGF.js +21 -0
  132. package/chunks/chunk-LEXQ6E6L.js +31 -0
  133. package/chunks/chunk-LQFKUNVQ.js +19 -0
  134. package/chunks/chunk-MF56TTC5.js +15 -0
  135. package/chunks/chunk-MT74WIQR.js +41 -0
  136. package/chunks/chunk-NRITRUZW.js +10 -0
  137. package/chunks/chunk-NRJQKVQV.js +31 -0
  138. package/chunks/chunk-OSAXBA7G.js +10 -0
  139. package/chunks/chunk-PO3V3I57.js +23 -0
  140. package/chunks/chunk-QXAJXTXV.js +19 -0
  141. package/chunks/chunk-RCO57B6F.js +9 -0
  142. package/chunks/chunk-SQZGZ3VT.js +15 -0
  143. package/chunks/chunk-UYTXXUU7.js +54 -0
  144. package/chunks/chunk-VTPRO4NJ.js +10 -0
  145. package/chunks/chunk-VYW4IADX.js +35 -0
  146. package/chunks/chunk-VZDUZTW6.js +113 -0
  147. package/chunks/chunk-W5A2TON3.js +10 -0
  148. package/chunks/chunk-W7YBGJ4H.js +28 -0
  149. package/chunks/chunk-WLL3FNVL.js +40 -0
  150. package/chunks/chunk-WOAYU6LB.js +13 -0
  151. package/chunks/chunk-XA4HVHJ4.js +18 -0
  152. package/chunks/chunk-XN3PZIVL.js +38 -0
  153. package/chunks/chunk-YDIBNEGA.js +9 -0
  154. package/components/index.d.ts +4 -0
  155. package/index.d.ts +3 -0
  156. package/node/files/index.d.ts +9 -0
  157. package/node/files/index.js +21 -0
  158. package/node/files/is-in-directory/index.d.ts +1 -0
  159. package/node/files/is-in-directory/index.js +6 -0
  160. package/node/files/read-write/index.d.ts +9 -0
  161. package/node/files/read-write/index.js +6 -0
  162. package/node/files/subpaths/index.d.ts +34 -0
  163. package/node/files/subpaths/index.js +7 -0
  164. package/node/index.d.ts +6 -0
  165. package/node/process/index.d.ts +8 -0
  166. package/node/process/index.js +20 -0
  167. package/{utils/node/process-exit → node/process/on-exit}/index.d.ts +1 -1
  168. package/node/process/on-exit/index.js +14 -0
  169. package/package.json +12 -12
  170. package/shared/errors/index.d.ts +14 -0
  171. package/shared/index.d.ts +0 -0
  172. package/chunks/chunk-BEZTX3QU.js +0 -1
  173. package/chunks/chunk-BW5CY5YB.js +0 -1
  174. package/chunks/chunk-DIPJ73JH.js +0 -1
  175. package/chunks/chunk-EFFU6KXJ.js +0 -1
  176. package/chunks/chunk-KNE7WIIW.js +0 -1
  177. package/chunks/chunk-LCLAV6Q2.js +0 -1
  178. package/chunks/chunk-PCAKH6ZJ.js +0 -1
  179. package/chunks/chunk-QQRJPDR7.js +0 -1
  180. package/chunks/chunk-WZBNXYN3.js +0 -1
  181. package/chunks/chunk-XCKXCF4A.js +0 -1
  182. package/chunks/chunk-ZVJO36JU.js +0 -1
  183. package/components/Comp/index.js +0 -1
  184. package/index.js +0 -96
  185. package/utils/agnostic/absolute-modulo/index.d.ts +0 -1
  186. package/utils/agnostic/absolute-modulo/index.js +0 -1
  187. package/utils/agnostic/array/index.d.ts +0 -7
  188. package/utils/agnostic/array/index.js +0 -1
  189. package/utils/agnostic/assert/index.d.ts +0 -3
  190. package/utils/agnostic/assert/index.js +0 -1
  191. package/utils/agnostic/await-timeout/index.d.ts +0 -2
  192. package/utils/agnostic/await-timeout/index.js +0 -1
  193. package/utils/agnostic/bem/index.d.ts +0 -5
  194. package/utils/agnostic/bem/index.js +0 -1
  195. package/utils/agnostic/cast/index.d.ts +0 -7
  196. package/utils/agnostic/cast/index.js +0 -1
  197. package/utils/agnostic/charcode-string/index.d.ts +0 -2
  198. package/utils/agnostic/charcode-string/index.js +0 -1
  199. package/utils/agnostic/clamp/index.d.ts +0 -1
  200. package/utils/agnostic/clamp/index.js +0 -1
  201. package/utils/agnostic/clientside-html-sanitizer/index.d.ts +0 -22
  202. package/utils/agnostic/clientside-html-sanitizer/index.js +0 -1
  203. package/utils/agnostic/crossenv/index.d.ts +0 -11
  204. package/utils/agnostic/crossenv/index.js +0 -1
  205. package/utils/agnostic/flatten-getters/index.d.ts +0 -1
  206. package/utils/agnostic/flatten-getters/index.js +0 -1
  207. package/utils/agnostic/generate-html-placeholders/index.d.ts +0 -7
  208. package/utils/agnostic/generate-html-placeholders/index.js +0 -5
  209. package/utils/agnostic/generate-nice-color/index.js +0 -1
  210. package/utils/agnostic/insert-node/index.d.ts +0 -2
  211. package/utils/agnostic/insert-node/index.js +0 -1
  212. package/utils/agnostic/interpolate/index.d.ts +0 -3
  213. package/utils/agnostic/interpolate/index.js +0 -1
  214. package/utils/agnostic/is-array-of/index.js +0 -1
  215. package/utils/agnostic/is-constructor-function/index.js +0 -1
  216. package/utils/agnostic/is-falsy/index.js +0 -1
  217. package/utils/agnostic/is-in-enum/index.js +0 -1
  218. package/utils/agnostic/is-nullish/index.js +0 -1
  219. package/utils/agnostic/is-object/index.d.ts +0 -1
  220. package/utils/agnostic/is-object/index.js +0 -1
  221. package/utils/agnostic/is-record/index.d.ts +0 -1
  222. package/utils/agnostic/is-record/index.js +0 -1
  223. package/utils/agnostic/is-valid-css-class-name/index.d.ts +0 -2
  224. package/utils/agnostic/is-valid-css-class-name/index.js +0 -1
  225. package/utils/agnostic/memoize/index.js +0 -1
  226. package/utils/agnostic/object-validate-from-partial/index.d.ts +0 -1
  227. package/utils/agnostic/object-validate-from-partial/index.js +0 -1
  228. package/utils/agnostic/random/index.d.ts +0 -9
  229. package/utils/agnostic/random/index.js +0 -1
  230. package/utils/agnostic/record-format/index.js +0 -1
  231. package/utils/agnostic/regexp/index.d.ts +0 -21
  232. package/utils/agnostic/regexp/index.js +0 -1
  233. package/utils/agnostic/replace-all/index.js +0 -1
  234. package/utils/agnostic/responsive-harmonics/index.js +0 -1
  235. package/utils/agnostic/round-numbers/index.d.ts +0 -1
  236. package/utils/agnostic/round-numbers/index.js +0 -1
  237. package/utils/agnostic/selector-to-element/index.d.ts +0 -1
  238. package/utils/agnostic/selector-to-element/index.js +0 -1
  239. package/utils/agnostic/silent-log/index.d.ts +0 -53
  240. package/utils/agnostic/silent-log/index.js +0 -9
  241. package/utils/agnostic/str-to-nodes/index.d.ts +0 -7
  242. package/utils/agnostic/str-to-nodes/index.js +0 -1
  243. package/utils/agnostic/string-matches/index.d.ts +0 -4
  244. package/utils/agnostic/string-matches/index.js +0 -1
  245. package/utils/agnostic/string-normalize-indent/index.d.ts +0 -1
  246. package/utils/agnostic/string-normalize-indent/index.js +0 -3
  247. package/utils/agnostic/throttle-debounce/index.js +0 -1
  248. package/utils/agnostic/to-alphanum/index.d.ts +0 -1
  249. package/utils/agnostic/to-alphanum/index.js +0 -1
  250. package/utils/agnostic/transition/index.d.ts +0 -39
  251. package/utils/agnostic/transition/index.js +0 -1
  252. package/utils/agnostic/wait/index.d.ts +0 -1
  253. package/utils/agnostic/wait/index.js +0 -1
  254. package/utils/browser/dynamic-css/index.d.ts +0 -4
  255. package/utils/browser/dynamic-css/index.js +0 -2
  256. package/utils/browser/get-current-downlink/index.d.ts +0 -1
  257. package/utils/browser/get-current-downlink/index.js +0 -1
  258. package/utils/browser/get-node-ancestors/index.d.ts +0 -1
  259. package/utils/browser/get-node-ancestors/index.js +0 -1
  260. package/utils/node/is-in-directory/index.d.ts +0 -1
  261. package/utils/node/is-in-directory/index.js +0 -1
  262. package/utils/node/list-subpaths/index.d.ts +0 -33
  263. package/utils/node/list-subpaths/index.js +0 -1
  264. package/utils/node/process-exit/index.js +0 -1
  265. package/utils/node/read-write-file/index.d.ts +0 -12
  266. package/utils/node/read-write-file/index.js +0 -1
  267. /package/{utils/agnostic → agnostic/css}/bem/BEM.d.ts +0 -0
  268. /package/{utils/agnostic → agnostic/css}/bem/getNamesArr.d.ts +0 -0
  269. /package/{utils/agnostic → agnostic/numbers}/responsive-harmonics/index.d.ts +0 -0
  270. /package/{utils/agnostic → agnostic/objects}/record-format/index.d.ts +0 -0
  271. /package/{utils/agnostic → agnostic/optim}/throttle-debounce/index.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ import {
2
+ Sanitize
3
+ } from "../../../chunks/chunk-IFD7GSGK.js";
4
+ import "../../../chunks/chunk-KQT5CTGF.js";
5
+ import "../../../chunks/chunk-GJOU3UAL.js";
6
+ import "../../../chunks/chunk-MT74WIQR.js";
7
+ export {
8
+ Sanitize
9
+ };
@@ -0,0 +1 @@
1
+ export declare function selectorToElement(selector: string, documentObj?: Document): HTMLElement;
@@ -0,0 +1,9 @@
1
+ import {
2
+ selectorToElement
3
+ } from "../../../chunks/chunk-XN3PZIVL.js";
4
+ import "../../../chunks/chunk-KQT5CTGF.js";
5
+ import "../../../chunks/chunk-GJOU3UAL.js";
6
+ import "../../../chunks/chunk-MT74WIQR.js";
7
+ export {
8
+ selectorToElement
9
+ };
@@ -0,0 +1,7 @@
1
+ import { Sanitize } from '~/agnostic/html/sanitize';
2
+ type Options = {
3
+ sanitize?: Sanitize.Options;
4
+ documentObj?: Document;
5
+ };
6
+ export declare function stringToNodes(dirtyStr: string, options?: Options): Node[];
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import {
2
+ stringToNodes
3
+ } from "../../../chunks/chunk-NRJQKVQV.js";
4
+ import "../../../chunks/chunk-IFD7GSGK.js";
5
+ import "../../../chunks/chunk-KQT5CTGF.js";
6
+ import "../../../chunks/chunk-GJOU3UAL.js";
7
+ import "../../../chunks/chunk-MT74WIQR.js";
8
+ export {
9
+ stringToNodes
10
+ };
@@ -0,0 +1,26 @@
1
+ import { Arrays as ArraysNamespace } from './arrays';
2
+ import { Async as AsyncNamespace } from './async';
3
+ import { Booleans as BooleansNamespace } from './booleans';
4
+ import { Css as CssNamespace } from './css';
5
+ import { Errors as ErrorsNamespace } from './errors';
6
+ import { Html as HtmlNamespace } from './html';
7
+ import { Misc as MiscNamespace } from './misc';
8
+ import { Numbers as NumbersNamespace } from './numbers';
9
+ import { Objects as ObjectsNamespace } from './objects';
10
+ import { Optim as OptimNamespace } from './optim';
11
+ import { Regexps as RegexpsNamespace } from './regexps';
12
+ import { Strings as StringsNamespace } from './strings';
13
+ export declare namespace Agnostic {
14
+ export import Arrays = ArraysNamespace;
15
+ export import Async = AsyncNamespace;
16
+ export import Booleans = BooleansNamespace;
17
+ export import Css = CssNamespace;
18
+ export import Errors = ErrorsNamespace;
19
+ export import Html = HtmlNamespace;
20
+ export import Misc = MiscNamespace;
21
+ export import Numbers = NumbersNamespace;
22
+ export import Objects = ObjectsNamespace;
23
+ export import Optim = OptimNamespace;
24
+ export import Regexps = RegexpsNamespace;
25
+ export import Strings = StringsNamespace;
26
+ }
@@ -0,0 +1,5 @@
1
+ export declare namespace Assert {
2
+ type Assertion = (() => boolean) | boolean;
3
+ export function assert(label: string, assertion: Assertion | Array<Assertion>): void;
4
+ export {};
5
+ }
@@ -0,0 +1,6 @@
1
+ import {
2
+ Assert
3
+ } from "../../../chunks/chunk-W7YBGJ4H.js";
4
+ export {
5
+ Assert
6
+ };
@@ -0,0 +1,9 @@
1
+ export declare namespace Cast {
2
+ function toBoolean(value: unknown): boolean;
3
+ function toNumber(value: unknown): number;
4
+ function toString(value: unknown): string;
5
+ function toNull(_value: unknown): null;
6
+ function toArray(value: unknown): any[];
7
+ function toNumberArr(value: unknown): number[];
8
+ function toRecord(value: unknown): Record<string, unknown>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ Cast
3
+ } from "../../../chunks/chunk-4QQBKBYH.js";
4
+ import "../../../chunks/chunk-QXAJXTXV.js";
5
+ import "../../../chunks/chunk-HC6ZOHCS.js";
6
+ export {
7
+ Cast
8
+ };
@@ -0,0 +1,13 @@
1
+ export declare namespace Crossenv {
2
+ enum RuntimeName {
3
+ NODE = "Node.js",
4
+ BROWSER = "Browser",
5
+ DENO = "Deno",
6
+ REACT_NATIVE = "React Native",
7
+ ELECTRON = "Electron",
8
+ CLOUDFLARE = "Cloudflare Workers",
9
+ AWS_LAMBDA = "AWS Lambda"
10
+ }
11
+ function detectRuntime(): RuntimeName | null;
12
+ function getDocument(): Document | null;
13
+ }
@@ -0,0 +1,6 @@
1
+ import {
2
+ Crossenv
3
+ } from "../../../chunks/chunk-GJOU3UAL.js";
4
+ export {
5
+ Crossenv
6
+ };
@@ -0,0 +1 @@
1
+ export declare function getCurrentDownlink(): number | undefined;
@@ -0,0 +1,6 @@
1
+ import {
2
+ getCurrentDownlink
3
+ } from "../../../chunks/chunk-7AWTHZLY.js";
4
+ export {
5
+ getCurrentDownlink
6
+ };
@@ -0,0 +1,22 @@
1
+ import { Assert as AssertNamespace } from './assert';
2
+ import { Cast as CastNamespace } from './cast';
3
+ import { Crossenv as CrossenvNamespace } from './crossenv';
4
+ import { getCurrentDownlink as getCurrentDownlinkFunc } from './get-current-downlink';
5
+ import { ConstructorFunction as ConstructorFunctionType, isConstructorFunction as isConstructorFunctionFunc } from './is-constructor-function';
6
+ import { Nullish as NullishType, isNullish as isNullishFunc, isNotNullish as isNotNullishFunc } from './is-nullish';
7
+ import { Logs as LogsNamespace } from './logs';
8
+ import { Random as RandomNamespace } from './random';
9
+ export declare namespace Misc {
10
+ export import Assert = AssertNamespace;
11
+ export import Cast = CastNamespace;
12
+ export import Crossenv = CrossenvNamespace;
13
+ const getCurrentDownlink: typeof getCurrentDownlinkFunc;
14
+ type ConstructorFunction = ConstructorFunctionType;
15
+ const isConstructorFunction: typeof isConstructorFunctionFunc;
16
+ const nullishValues: (null | undefined)[];
17
+ type Nullish = NullishType;
18
+ const isNullish: typeof isNullishFunc;
19
+ const isNotNullish: typeof isNotNullishFunc;
20
+ export import Logs = LogsNamespace;
21
+ export import Random = RandomNamespace;
22
+ }
@@ -0,0 +1,45 @@
1
+ import {
2
+ Cast
3
+ } from "../../chunks/chunk-4QQBKBYH.js";
4
+ import {
5
+ Logs
6
+ } from "../../chunks/chunk-5LNUCDQ6.js";
7
+ import {
8
+ getCurrentDownlink
9
+ } from "../../chunks/chunk-7AWTHZLY.js";
10
+ import {
11
+ Assert
12
+ } from "../../chunks/chunk-W7YBGJ4H.js";
13
+ import {
14
+ isConstructorFunction
15
+ } from "../../chunks/chunk-RCO57B6F.js";
16
+ import {
17
+ Random
18
+ } from "../../chunks/chunk-WLL3FNVL.js";
19
+ import {
20
+ Crossenv
21
+ } from "../../chunks/chunk-GJOU3UAL.js";
22
+ import "../../chunks/chunk-QXAJXTXV.js";
23
+ import {
24
+ isNotNullish,
25
+ isNullish,
26
+ nullishValues
27
+ } from "../../chunks/chunk-HC6ZOHCS.js";
28
+
29
+ // src/agnostic/misc/index.ts
30
+ var Misc;
31
+ ((Misc2) => {
32
+ Misc2.Assert = Assert;
33
+ Misc2.Cast = Cast;
34
+ Misc2.Crossenv = Crossenv;
35
+ Misc2.getCurrentDownlink = getCurrentDownlink;
36
+ Misc2.isConstructorFunction = isConstructorFunction;
37
+ Misc2.nullishValues = nullishValues;
38
+ Misc2.isNullish = isNullish;
39
+ Misc2.isNotNullish = isNotNullish;
40
+ Misc2.Logs = Logs;
41
+ Misc2.Random = Random;
42
+ })(Misc || (Misc = {}));
43
+ export {
44
+ Misc
45
+ };
@@ -1,2 +1,2 @@
1
1
  export type ConstructorFunction = new (...args: any[]) => any;
2
- export default function isConstructorFunction(input: unknown): input is ConstructorFunction;
2
+ export declare function isConstructorFunction(input: unknown): input is ConstructorFunction;
@@ -0,0 +1,6 @@
1
+ import {
2
+ isConstructorFunction
3
+ } from "../../../chunks/chunk-RCO57B6F.js";
4
+ export {
5
+ isConstructorFunction
6
+ };
@@ -2,4 +2,3 @@ export declare const nullishValues: (null | undefined)[];
2
2
  export type Nullish = null | undefined;
3
3
  export declare function isNullish<T>(val: T | Nullish): val is Nullish;
4
4
  export declare function isNotNullish<T>(val: T): val is Exclude<T, Nullish>;
5
- export default isNullish;
@@ -0,0 +1,10 @@
1
+ import {
2
+ isNotNullish,
3
+ isNullish,
4
+ nullishValues
5
+ } from "../../../chunks/chunk-HC6ZOHCS.js";
6
+ export {
7
+ isNotNullish,
8
+ isNullish,
9
+ nullishValues
10
+ };
@@ -0,0 +1,55 @@
1
+ export declare namespace Logs {
2
+ export function makeTextBlock(text: string, vPadding?: number, hPadding?: number): string;
3
+ export const styles: {
4
+ regular: (text: string) => string;
5
+ light: (text: string) => string;
6
+ danger: (text: string) => string;
7
+ important: (text: string) => string;
8
+ title: (text: string) => string;
9
+ info: (text: string) => string;
10
+ error: (text: string) => string;
11
+ warning: (text: string) => string;
12
+ };
13
+ type ConsoleMethod = 'assert' | 'count' | 'countReset' | 'debug' | 'dir' | 'dirxml' | 'error' | 'group' | 'groupCollapsed' | 'groupEnd' | 'info' | 'log' | 'table' | 'time' | 'timeEnd' | 'trace' | 'warn';
14
+ type ConsoleMethodsParams = {
15
+ assert: Parameters<typeof console.assert>;
16
+ count: Parameters<typeof console.count>;
17
+ countReset: Parameters<typeof console.countReset>;
18
+ debug: Parameters<typeof console.debug>;
19
+ dir: Parameters<typeof console.dir>;
20
+ dirxml: Parameters<typeof console.dirxml>;
21
+ error: Parameters<typeof console.error>;
22
+ group: Parameters<typeof console.group>;
23
+ groupCollapsed: Parameters<typeof console.groupCollapsed>;
24
+ groupEnd: Parameters<typeof console.groupEnd>;
25
+ info: Parameters<typeof console.info>;
26
+ log: Parameters<typeof console.log>;
27
+ table: Parameters<typeof console.table>;
28
+ time: Parameters<typeof console.time>;
29
+ timeEnd: Parameters<typeof console.timeEnd>;
30
+ trace: Parameters<typeof console.trace>;
31
+ warn: Parameters<typeof console.warn>;
32
+ };
33
+ class Log<T extends ConsoleMethod = ConsoleMethod> {
34
+ type: T;
35
+ data: ConsoleMethodsParams[T];
36
+ time: Date;
37
+ stack: string;
38
+ constructor(type: T, data: ConsoleMethodsParams[T]);
39
+ get displayTime(): string;
40
+ get elapsedTimeMs(): number;
41
+ get displayStack(): string;
42
+ }
43
+ export class Logger {
44
+ _private_threads: Map<string, Log[]>;
45
+ constructor();
46
+ dir(thread: string | undefined, ...args: ConsoleMethodsParams['dir']): void;
47
+ error(thread?: string, ...args: ConsoleMethodsParams['error']): void;
48
+ log(thread?: string, ...args: ConsoleMethodsParams['log']): void;
49
+ warn(thread?: string, ...args: ConsoleMethodsParams['warn']): void;
50
+ setLog<T extends ConsoleMethod>(threadName: string, type: T, data: ConsoleMethodsParams[T]): this;
51
+ print(this: Logger, threadFilter?: string, withStack?: boolean): void;
52
+ printThreads(this: Logger, withStack?: boolean): void;
53
+ }
54
+ export {};
55
+ }
@@ -0,0 +1,6 @@
1
+ import {
2
+ Logs
3
+ } from "../../../chunks/chunk-5LNUCDQ6.js";
4
+ export {
5
+ Logs
6
+ };
@@ -0,0 +1,10 @@
1
+ export declare namespace Random {
2
+ function random(bound1?: number): number | undefined;
3
+ function random(bound1?: number, bound2?: number | undefined): number | undefined;
4
+ function randomInt(...args: Parameters<typeof random>): number | undefined;
5
+ const hexChars: string[];
6
+ function randomHexChar(): string;
7
+ function randomHash(length?: number): string;
8
+ function randomHashPattern(pattern: number[], joiner?: string): string;
9
+ function randomUUID(): string;
10
+ }
@@ -0,0 +1,6 @@
1
+ import {
2
+ Random
3
+ } from "../../../chunks/chunk-WLL3FNVL.js";
4
+ export {
5
+ Random
6
+ };
@@ -0,0 +1 @@
1
+ export declare function absoluteModulo(nbr: number, modulo: number): number;
@@ -0,0 +1,6 @@
1
+ import {
2
+ absoluteModulo
3
+ } from "../../../chunks/chunk-DNIOWD7K.js";
4
+ export {
5
+ absoluteModulo
6
+ };
@@ -0,0 +1 @@
1
+ export declare function clamp(num: number, bound1: number, bound2: number): number;
@@ -0,0 +1,6 @@
1
+ import {
2
+ clamp
3
+ } from "../../../chunks/chunk-OSAXBA7G.js";
4
+ export {
5
+ clamp
6
+ };
@@ -0,0 +1,13 @@
1
+ import { absoluteModulo as absoluteModuloFunc } from './absolute-modulo';
2
+ import { clamp as clampFunc } from './clamp';
3
+ import { interpolate as interpolateFunc } from './interpolate';
4
+ import { getHarmonic as getHarmonicFunc, createScale as createScaleFunc } from './responsive-harmonics';
5
+ import { round as roundFunc } from './round';
6
+ export declare namespace Numbers {
7
+ const absoluteModulo: typeof absoluteModuloFunc;
8
+ const clamp: typeof clampFunc;
9
+ const interpolate: typeof interpolateFunc;
10
+ const getHarmonic: typeof getHarmonicFunc;
11
+ const createScale: typeof createScaleFunc;
12
+ const round: typeof roundFunc;
13
+ }
@@ -0,0 +1,30 @@
1
+ import {
2
+ interpolate
3
+ } from "../../chunks/chunk-EW46EXFB.js";
4
+ import {
5
+ createScale,
6
+ getHarmonic
7
+ } from "../../chunks/chunk-UYTXXUU7.js";
8
+ import {
9
+ round
10
+ } from "../../chunks/chunk-32IRF4OP.js";
11
+ import {
12
+ clamp
13
+ } from "../../chunks/chunk-OSAXBA7G.js";
14
+ import {
15
+ absoluteModulo
16
+ } from "../../chunks/chunk-DNIOWD7K.js";
17
+
18
+ // src/agnostic/numbers/index.ts
19
+ var Numbers;
20
+ ((Numbers2) => {
21
+ Numbers2.absoluteModulo = absoluteModulo;
22
+ Numbers2.clamp = clamp;
23
+ Numbers2.interpolate = interpolate;
24
+ Numbers2.getHarmonic = getHarmonic;
25
+ Numbers2.createScale = createScale;
26
+ Numbers2.round = round;
27
+ })(Numbers || (Numbers = {}));
28
+ export {
29
+ Numbers
30
+ };
@@ -0,0 +1 @@
1
+ export declare function interpolate(ratio: number, bound1: number, bound2: number): number;
@@ -0,0 +1,6 @@
1
+ import {
2
+ interpolate
3
+ } from "../../../chunks/chunk-EW46EXFB.js";
4
+ export {
5
+ interpolate
6
+ };
@@ -0,0 +1,9 @@
1
+ import {
2
+ createScale,
3
+ getHarmonic
4
+ } from "../../../chunks/chunk-UYTXXUU7.js";
5
+ import "../../../chunks/chunk-32IRF4OP.js";
6
+ export {
7
+ createScale,
8
+ getHarmonic
9
+ };
@@ -0,0 +1 @@
1
+ export declare function round(number: number, nbDecimals: number): number;
@@ -0,0 +1,6 @@
1
+ import {
2
+ round
3
+ } from "../../../chunks/chunk-32IRF4OP.js";
4
+ export {
5
+ round
6
+ };
@@ -0,0 +1,4 @@
1
+ import { isInEnum as isInEnumFunc } from './is-in-enum';
2
+ export declare namespace Enums {
3
+ const isInEnum: typeof isInEnumFunc;
4
+ }
@@ -0,0 +1,7 @@
1
+ import {
2
+ Enums
3
+ } from "../../../chunks/chunk-WOAYU6LB.js";
4
+ import "../../../chunks/chunk-E6MSDKON.js";
5
+ export {
6
+ Enums
7
+ };
@@ -1 +1 @@
1
- export default function isInEnum<E extends Record<string, string | number>>(enumObj: E, value: string | number): value is E[keyof E];
1
+ export declare function isInEnum<E extends Record<string, string | number>>(enumObj: E, value: string | number): value is E[keyof E];
@@ -0,0 +1,6 @@
1
+ import {
2
+ isInEnum
3
+ } from "../../../../chunks/chunk-E6MSDKON.js";
4
+ export {
5
+ isInEnum
6
+ };
@@ -0,0 +1 @@
1
+ export declare function flattenGetters(obj: unknown): Record<string, unknown>;
@@ -0,0 +1,9 @@
1
+ import {
2
+ flattenGetters
3
+ } from "../../../chunks/chunk-PO3V3I57.js";
4
+ import "../../../chunks/chunk-4QQBKBYH.js";
5
+ import "../../../chunks/chunk-QXAJXTXV.js";
6
+ import "../../../chunks/chunk-HC6ZOHCS.js";
7
+ export {
8
+ flattenGetters
9
+ };
@@ -0,0 +1,12 @@
1
+ import { Enums as EnumsNamespace } from './enums';
2
+ import { flattenGetters as flattenGettersFunc } from './flatten-getters';
3
+ import { isObject as isObjectFunc } from './is-object';
4
+ import { isRecord as isRecordFunc } from './is-record';
5
+ import { Validation as ValidationNamespace } from './validation';
6
+ export declare namespace Objects {
7
+ export import Enums = EnumsNamespace;
8
+ const flattenGetters: typeof flattenGettersFunc;
9
+ const isObject: typeof isObjectFunc;
10
+ const isRecord: typeof isRecordFunc;
11
+ export import Validation = ValidationNamespace;
12
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ isRecord
3
+ } from "../../chunks/chunk-YDIBNEGA.js";
4
+ import {
5
+ Validation
6
+ } from "../../chunks/chunk-FPEW3A27.js";
7
+ import {
8
+ Enums
9
+ } from "../../chunks/chunk-WOAYU6LB.js";
10
+ import "../../chunks/chunk-E6MSDKON.js";
11
+ import {
12
+ isObject
13
+ } from "../../chunks/chunk-K37RALUX.js";
14
+ import {
15
+ flattenGetters
16
+ } from "../../chunks/chunk-PO3V3I57.js";
17
+ import "../../chunks/chunk-4QQBKBYH.js";
18
+ import "../../chunks/chunk-QXAJXTXV.js";
19
+ import "../../chunks/chunk-HC6ZOHCS.js";
20
+
21
+ // src/agnostic/objects/index.ts
22
+ var Objects;
23
+ ((Objects2) => {
24
+ Objects2.Enums = Enums;
25
+ Objects2.flattenGetters = flattenGetters;
26
+ Objects2.isObject = isObject;
27
+ Objects2.isRecord = isRecord;
28
+ Objects2.Validation = Validation;
29
+ })(Objects || (Objects = {}));
30
+ export {
31
+ Objects
32
+ };
@@ -0,0 +1 @@
1
+ export declare function isObject(unk: unknown): unk is object;
@@ -0,0 +1,6 @@
1
+ import {
2
+ isObject
3
+ } from "../../../chunks/chunk-K37RALUX.js";
4
+ export {
5
+ isObject
6
+ };
@@ -0,0 +1 @@
1
+ export declare function isRecord(input: unknown): input is Record<string, unknown>;
@@ -0,0 +1,6 @@
1
+ import {
2
+ isRecord
3
+ } from "../../../chunks/chunk-YDIBNEGA.js";
4
+ export {
5
+ isRecord
6
+ };
@@ -0,0 +1,16 @@
1
+ // src/agnostic/objects/record-format/index.ts
2
+ async function recordFormat(input, format) {
3
+ const result = {};
4
+ for (const key in format) {
5
+ const formatter = format[key];
6
+ if (typeof formatter === "function") {
7
+ result[key] = await formatter(input[key]);
8
+ } else {
9
+ result[key] = formatter;
10
+ }
11
+ }
12
+ return result;
13
+ }
14
+ export {
15
+ recordFormat as default
16
+ };
@@ -0,0 +1,3 @@
1
+ export declare namespace Validation {
2
+ function fromPartial<T extends object>(obj: T, partial: Partial<T>): boolean;
3
+ }
@@ -0,0 +1,6 @@
1
+ import {
2
+ Validation
3
+ } from "../../../chunks/chunk-FPEW3A27.js";
4
+ export {
5
+ Validation
6
+ };
@@ -0,0 +1,7 @@
1
+ import { memoize as memoizeFunc } from './memoize';
2
+ import { throttle as throttleFunc, debounce as debounceFunc } from './throttle-debounce';
3
+ export declare namespace Optim {
4
+ const memoize: typeof memoizeFunc;
5
+ const throttle: typeof throttleFunc;
6
+ const debounce: typeof debounceFunc;
7
+ }
@@ -0,0 +1,18 @@
1
+ import {
2
+ memoize
3
+ } from "../../chunks/chunk-JWBDZPQG.js";
4
+ import {
5
+ debounce,
6
+ throttle
7
+ } from "../../chunks/chunk-VZDUZTW6.js";
8
+
9
+ // src/agnostic/optim/index.ts
10
+ var Optim;
11
+ ((Optim2) => {
12
+ Optim2.memoize = memoize;
13
+ Optim2.throttle = throttle;
14
+ Optim2.debounce = debounce;
15
+ })(Optim || (Optim = {}));
16
+ export {
17
+ Optim
18
+ };
@@ -1,3 +1,3 @@
1
1
  type BasicFunc = (...args: any[]) => any;
2
- export default function memoize<T extends BasicFunc = BasicFunc>(toMemoizeFunc: T): (...args: Parameters<T>) => any;
2
+ export declare function memoize<T extends BasicFunc = BasicFunc>(toMemoizeFunc: T): (...args: Parameters<T>) => any;
3
3
  export {};
@@ -0,0 +1,6 @@
1
+ import {
2
+ memoize
3
+ } from "../../../chunks/chunk-JWBDZPQG.js";
4
+ export {
5
+ memoize
6
+ };
@@ -0,0 +1,8 @@
1
+ import {
2
+ debounce,
3
+ throttle
4
+ } from "../../../chunks/chunk-VZDUZTW6.js";
5
+ export {
6
+ debounce,
7
+ throttle
8
+ };
@@ -1,3 +1,2 @@
1
- /// <reference types="node" />
2
1
  import { setTimeout } from 'node:timers';
3
2
  export type Timeout = ReturnType<typeof setTimeout>;