@design-edito/tools 0.1.27 → 0.1.28

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 (57) hide show
  1. package/agnostic/css/bem/index.js +2 -2
  2. package/agnostic/css/index.js +10 -10
  3. package/agnostic/errors/index.js +2 -2
  4. package/agnostic/html/hyper-json/cast/index.js +3 -3
  5. package/agnostic/html/hyper-json/index.js +4 -4
  6. package/agnostic/html/hyper-json/transformers/append/index.js +3 -3
  7. package/agnostic/html/hyper-json/transformers/classList/index.js +3 -3
  8. package/agnostic/html/hyper-json/transformers/index.js +3 -3
  9. package/agnostic/html/hyper-json/transformers/join/index.js +3 -3
  10. package/agnostic/html/hyper-json/transformers/length/index.js +3 -3
  11. package/agnostic/html/hyper-json/transformers/print/index.js +3 -3
  12. package/agnostic/html/hyper-json/transformers/push/index.js +3 -3
  13. package/agnostic/html/hyper-json/transformers/querySelector/index.js +3 -3
  14. package/agnostic/html/hyper-json/transformers/ref/index.js +3 -3
  15. package/agnostic/html/hyper-json/transformers/replace/index.js +3 -3
  16. package/agnostic/html/hyper-json/transformers/split/index.js +3 -3
  17. package/agnostic/html/hyper-json/transformers/toArray/index.js +3 -3
  18. package/agnostic/html/hyper-json/transformers/toBoolean/index.js +3 -3
  19. package/agnostic/html/hyper-json/transformers/toElement/index.js +3 -3
  20. package/agnostic/html/hyper-json/transformers/toNodeList/index.js +3 -3
  21. package/agnostic/html/hyper-json/transformers/toNull/index.js +3 -3
  22. package/agnostic/html/hyper-json/transformers/toNumber/index.js +3 -3
  23. package/agnostic/html/hyper-json/transformers/toRecord/index.js +3 -3
  24. package/agnostic/html/hyper-json/transformers/toRef/index.js +3 -3
  25. package/agnostic/html/hyper-json/transformers/toString/index.js +3 -3
  26. package/agnostic/html/hyper-json/transformers/toText/index.js +3 -3
  27. package/agnostic/html/hyper-json/transformers/toTransformer/index.js +3 -3
  28. package/agnostic/html/hyper-json/transformers/transformSelected/index.js +3 -3
  29. package/agnostic/html/hyper-json/transformers/trim/index.js +3 -3
  30. package/agnostic/html/hyper-json/tree/index.js +3 -3
  31. package/agnostic/html/hyper-json/utils/index.js +3 -3
  32. package/agnostic/html/index.js +19 -19
  33. package/agnostic/html/sanitize/index.js +4 -4
  34. package/agnostic/html/selector-to-element/index.js +4 -4
  35. package/agnostic/html/string-to-nodes/index.js +5 -5
  36. package/agnostic/misc/index.js +19 -16
  37. package/agnostic/misc/logs/index.d.ts +5 -44
  38. package/agnostic/misc/logs/index.js +4 -1
  39. package/agnostic/misc/logs/logger/index.d.ts +42 -0
  40. package/agnostic/misc/logs/logger/index.js +6 -0
  41. package/agnostic/misc/logs/make-text-block/index.d.ts +1 -0
  42. package/agnostic/misc/logs/make-text-block/index.js +6 -0
  43. package/agnostic/misc/logs/styles/index.d.ts +11 -0
  44. package/agnostic/misc/logs/styles/index.js +7 -0
  45. package/agnostic/misc/lorem-ipsum/index.js +3 -3
  46. package/agnostic/numbers/index.js +3 -3
  47. package/agnostic/objects/index.js +7 -7
  48. package/agnostic/strings/index.js +10 -10
  49. package/agnostic/time/index.js +3 -3
  50. package/chunks/chunk-B2O7PFSF.js +1108 -0
  51. package/chunks/chunk-BEJSITDG.js +31 -0
  52. package/chunks/chunk-H4PP6AHP.js +15 -0
  53. package/chunks/chunk-JWKI6G6E.js +102 -0
  54. package/chunks/chunk-L3OCRR3V.js +25 -0
  55. package/chunks/chunk-TEB7KZWB.js +21 -0
  56. package/node/files/index.js +4 -4
  57. package/package.json +1 -1
@@ -1,29 +1,25 @@
1
1
  import {
2
2
  LoremIpsum
3
- } from "../../chunks/chunk-SFV2NYY4.js";
3
+ } from "../../chunks/chunk-VA6HXRX4.js";
4
4
  import {
5
- Crawler
6
- } from "../../chunks/chunk-YUP434IY.js";
7
- import {
8
- getCurrentDownlink
9
- } from "../../chunks/chunk-7AWTHZLY.js";
5
+ Logs
6
+ } from "../../chunks/chunk-TEB7KZWB.js";
7
+ import "../../chunks/chunk-JWKI6G6E.js";
8
+ import "../../chunks/chunk-L3OCRR3V.js";
9
+ import "../../chunks/chunk-H4PP6AHP.js";
10
10
  import {
11
11
  Assert
12
12
  } from "../../chunks/chunk-W7YBGJ4H.js";
13
- import {
14
- Logs
15
- } from "../../chunks/chunk-HEJV6JIO.js";
16
13
  import {
17
14
  Cast
18
15
  } from "../../chunks/chunk-4QQBKBYH.js";
19
- import "../../chunks/chunk-4CIS3R7T.js";
20
- import "../../chunks/chunk-YS6WMSWC.js";
21
- import "../../chunks/chunk-6RGDWX4A.js";
22
16
  import {
23
- isConstructorFunction
24
- } from "../../chunks/chunk-RCO57B6F.js";
25
- import "../../chunks/chunk-FCU6IHKD.js";
26
- import "../../chunks/chunk-RLAZR3NL.js";
17
+ Crawler
18
+ } from "../../chunks/chunk-YUP434IY.js";
19
+ import {
20
+ getCurrentDownlink
21
+ } from "../../chunks/chunk-7AWTHZLY.js";
22
+ import "../../chunks/chunk-4CIS3R7T.js";
27
23
  import {
28
24
  Crossenv
29
25
  } from "../../chunks/chunk-GDYVCEWA.js";
@@ -32,6 +28,13 @@ import "../../chunks/chunk-4GUDL44X.js";
32
28
  import {
33
29
  Random
34
30
  } from "../../chunks/chunk-R6KCN6CK.js";
31
+ import "../../chunks/chunk-YS6WMSWC.js";
32
+ import "../../chunks/chunk-6RGDWX4A.js";
33
+ import {
34
+ isConstructorFunction
35
+ } from "../../chunks/chunk-RCO57B6F.js";
36
+ import "../../chunks/chunk-RLAZR3NL.js";
37
+ import "../../chunks/chunk-FCU6IHKD.js";
35
38
  import "../../chunks/chunk-QXAJXTXV.js";
36
39
  import {
37
40
  isNotNullish,
@@ -1,6 +1,8 @@
1
+ import { Logger as LoggerClass } from './logger';
2
+ import { makeTextBlock as makeTextBlockFunc } from './make-text-block';
1
3
  export declare namespace Logs {
2
- export function makeTextBlock(text: string, vPadding?: number, hPadding?: number): string;
3
- export const styles: {
4
+ const makeTextBlock: typeof makeTextBlockFunc;
5
+ const styles: {
4
6
  regular: (text: string) => string;
5
7
  light: (text: string) => string;
6
8
  danger: (text: string) => string;
@@ -11,46 +13,5 @@ export declare namespace Logs {
11
13
  error: (text: string) => string;
12
14
  warning: (text: string) => string;
13
15
  };
14
- type ConsoleMethod = 'assert' | 'count' | 'countReset' | 'debug' | 'dir' | 'dirxml' | 'error' | 'group' | 'groupCollapsed' | 'groupEnd' | 'info' | 'log' | 'table' | 'time' | 'timeEnd' | 'trace' | 'warn';
15
- type ConsoleMethodsParams = {
16
- assert: Parameters<typeof console.assert>;
17
- count: Parameters<typeof console.count>;
18
- countReset: Parameters<typeof console.countReset>;
19
- debug: Parameters<typeof console.debug>;
20
- dir: Parameters<typeof console.dir>;
21
- dirxml: Parameters<typeof console.dirxml>;
22
- error: Parameters<typeof console.error>;
23
- group: Parameters<typeof console.group>;
24
- groupCollapsed: Parameters<typeof console.groupCollapsed>;
25
- groupEnd: Parameters<typeof console.groupEnd>;
26
- info: Parameters<typeof console.info>;
27
- log: Parameters<typeof console.log>;
28
- table: Parameters<typeof console.table>;
29
- time: Parameters<typeof console.time>;
30
- timeEnd: Parameters<typeof console.timeEnd>;
31
- trace: Parameters<typeof console.trace>;
32
- warn: Parameters<typeof console.warn>;
33
- };
34
- class Log<T extends ConsoleMethod = ConsoleMethod> {
35
- type: T;
36
- data: ConsoleMethodsParams[T];
37
- time: Date;
38
- stack: string;
39
- constructor(type: T, data: ConsoleMethodsParams[T]);
40
- get displayTime(): string;
41
- get elapsedTimeMs(): number;
42
- get displayStack(): string;
43
- }
44
- export class Logger {
45
- _private_threads: Map<string, Log[]>;
46
- constructor();
47
- dir(thread: string | undefined, ...args: ConsoleMethodsParams['dir']): void;
48
- error(thread?: string, ...args: ConsoleMethodsParams['error']): void;
49
- log(thread?: string, ...args: ConsoleMethodsParams['log']): void;
50
- warn(thread?: string, ...args: ConsoleMethodsParams['warn']): void;
51
- setLog<T extends ConsoleMethod>(threadName: string, type: T, data: ConsoleMethodsParams[T]): this;
52
- print(this: Logger, threadFilter?: string, withStack?: boolean): void;
53
- printThreads(this: Logger, withStack?: boolean): void;
54
- }
55
- export {};
16
+ const Logger: typeof LoggerClass;
56
17
  }
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  Logs
3
- } from "../../../chunks/chunk-HEJV6JIO.js";
3
+ } from "../../../chunks/chunk-TEB7KZWB.js";
4
+ import "../../../chunks/chunk-JWKI6G6E.js";
5
+ import "../../../chunks/chunk-L3OCRR3V.js";
6
+ import "../../../chunks/chunk-H4PP6AHP.js";
4
7
  export {
5
8
  Logs
6
9
  };
@@ -0,0 +1,42 @@
1
+ type ConsoleMethod = 'assert' | 'count' | 'countReset' | 'debug' | 'dir' | 'dirxml' | 'error' | 'group' | 'groupCollapsed' | 'groupEnd' | 'info' | 'log' | 'table' | 'time' | 'timeEnd' | 'trace' | 'warn';
2
+ type ConsoleMethodsParams = {
3
+ assert: Parameters<typeof console.assert>;
4
+ count: Parameters<typeof console.count>;
5
+ countReset: Parameters<typeof console.countReset>;
6
+ debug: Parameters<typeof console.debug>;
7
+ dir: Parameters<typeof console.dir>;
8
+ dirxml: Parameters<typeof console.dirxml>;
9
+ error: Parameters<typeof console.error>;
10
+ group: Parameters<typeof console.group>;
11
+ groupCollapsed: Parameters<typeof console.groupCollapsed>;
12
+ groupEnd: Parameters<typeof console.groupEnd>;
13
+ info: Parameters<typeof console.info>;
14
+ log: Parameters<typeof console.log>;
15
+ table: Parameters<typeof console.table>;
16
+ time: Parameters<typeof console.time>;
17
+ timeEnd: Parameters<typeof console.timeEnd>;
18
+ trace: Parameters<typeof console.trace>;
19
+ warn: Parameters<typeof console.warn>;
20
+ };
21
+ declare class Log<T extends ConsoleMethod = ConsoleMethod> {
22
+ type: T;
23
+ data: ConsoleMethodsParams[T];
24
+ time: Date;
25
+ stack: string;
26
+ constructor(type: T, data: ConsoleMethodsParams[T]);
27
+ get displayTime(): string;
28
+ get elapsedTimeMs(): number;
29
+ get displayStack(): string;
30
+ }
31
+ export declare class Logger {
32
+ _private_threads: Map<string, Log[]>;
33
+ constructor();
34
+ dir(thread: string | undefined, ...args: ConsoleMethodsParams['dir']): void;
35
+ error(thread?: string, ...args: ConsoleMethodsParams['error']): void;
36
+ log(thread?: string, ...args: ConsoleMethodsParams['log']): void;
37
+ warn(thread?: string, ...args: ConsoleMethodsParams['warn']): void;
38
+ setLog<T extends ConsoleMethod>(threadName: string, type: T, data: ConsoleMethodsParams[T]): this;
39
+ print(this: Logger, threadFilter?: string, withStack?: boolean): void;
40
+ printThreads(this: Logger, withStack?: boolean): void;
41
+ }
42
+ export {};
@@ -0,0 +1,6 @@
1
+ import {
2
+ Logger
3
+ } from "../../../../chunks/chunk-JWKI6G6E.js";
4
+ export {
5
+ Logger
6
+ };
@@ -0,0 +1 @@
1
+ export declare function makeTextBlock(text: string, vPadding?: number, hPadding?: number): string;
@@ -0,0 +1,6 @@
1
+ import {
2
+ makeTextBlock
3
+ } from "../../../../chunks/chunk-H4PP6AHP.js";
4
+ export {
5
+ makeTextBlock
6
+ };
@@ -0,0 +1,11 @@
1
+ export declare const styles: {
2
+ regular: (text: string) => string;
3
+ light: (text: string) => string;
4
+ danger: (text: string) => string;
5
+ important: (text: string) => string;
6
+ title: (text: string) => string;
7
+ info: (text: string) => string;
8
+ success: (text: string) => string;
9
+ error: (text: string) => string;
10
+ warning: (text: string) => string;
11
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ styles
3
+ } from "../../../../chunks/chunk-L3OCRR3V.js";
4
+ import "../../../../chunks/chunk-H4PP6AHP.js";
5
+ export {
6
+ styles
7
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LoremIpsum
3
- } from "../../../chunks/chunk-SFV2NYY4.js";
3
+ } from "../../../chunks/chunk-VA6HXRX4.js";
4
+ import "../../../chunks/chunk-R6KCN6CK.js";
4
5
  import "../../../chunks/chunk-YS6WMSWC.js";
5
6
  import "../../../chunks/chunk-6RGDWX4A.js";
6
7
  import "../../../chunks/chunk-RCO57B6F.js";
7
- import "../../../chunks/chunk-FCU6IHKD.js";
8
8
  import "../../../chunks/chunk-RLAZR3NL.js";
9
- import "../../../chunks/chunk-R6KCN6CK.js";
9
+ import "../../../chunks/chunk-FCU6IHKD.js";
10
10
  export {
11
11
  LoremIpsum
12
12
  };
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  absoluteModulo
3
3
  } from "../../chunks/chunk-DNIOWD7K.js";
4
+ import {
5
+ clamp
6
+ } from "../../chunks/chunk-OSAXBA7G.js";
4
7
  import {
5
8
  interpolate
6
9
  } from "../../chunks/chunk-EW46EXFB.js";
@@ -8,9 +11,6 @@ import {
8
11
  createScale,
9
12
  getHarmonic
10
13
  } from "../../chunks/chunk-UYTXXUU7.js";
11
- import {
12
- clamp
13
- } from "../../chunks/chunk-OSAXBA7G.js";
14
14
  import {
15
15
  round
16
16
  } from "../../chunks/chunk-32IRF4OP.js";
@@ -1,21 +1,21 @@
1
+ import {
2
+ Validation
3
+ } from "../../chunks/chunk-FPEW3A27.js";
1
4
  import {
2
5
  Enums
3
6
  } from "../../chunks/chunk-WOAYU6LB.js";
4
7
  import "../../chunks/chunk-E6MSDKON.js";
5
- import {
6
- flattenGetters
7
- } from "../../chunks/chunk-PO3V3I57.js";
8
- import "../../chunks/chunk-4QQBKBYH.js";
9
8
  import {
10
9
  isNonNullObject,
11
10
  isObject
12
11
  } from "../../chunks/chunk-HQLRJ7XW.js";
12
+ import {
13
+ flattenGetters
14
+ } from "../../chunks/chunk-PO3V3I57.js";
13
15
  import {
14
16
  isRecord
15
17
  } from "../../chunks/chunk-YDIBNEGA.js";
16
- import {
17
- Validation
18
- } from "../../chunks/chunk-FPEW3A27.js";
18
+ import "../../chunks/chunk-4QQBKBYH.js";
19
19
  import "../../chunks/chunk-QXAJXTXV.js";
20
20
  import "../../chunks/chunk-HC6ZOHCS.js";
21
21
 
@@ -1,20 +1,20 @@
1
1
  import {
2
- normalizeIndent
3
- } from "../../chunks/chunk-JQXNEJAP.js";
4
- import {
5
- replaceAll
6
- } from "../../chunks/chunk-MF56TTC5.js";
7
- import {
8
- toAlphanum
9
- } from "../../chunks/chunk-COVPTTAD.js";
2
+ CharCodes
3
+ } from "../../chunks/chunk-34U4HX4V.js";
10
4
  import {
11
5
  matches,
12
6
  matchesEvery,
13
7
  matchesSome
14
8
  } from "../../chunks/chunk-LQFKUNVQ.js";
15
9
  import {
16
- CharCodes
17
- } from "../../chunks/chunk-34U4HX4V.js";
10
+ toAlphanum
11
+ } from "../../chunks/chunk-COVPTTAD.js";
12
+ import {
13
+ replaceAll
14
+ } from "../../chunks/chunk-MF56TTC5.js";
15
+ import {
16
+ normalizeIndent
17
+ } from "../../chunks/chunk-JQXNEJAP.js";
18
18
 
19
19
  // src/agnostic/strings/index.ts
20
20
  var Strings;
@@ -1,6 +1,3 @@
1
- import {
2
- Duration
3
- } from "../../chunks/chunk-6NYUQXJT.js";
4
1
  import {
5
2
  Transitions
6
3
  } from "../../chunks/chunk-ENMBK6H7.js";
@@ -10,6 +7,9 @@ import {
10
7
  import {
11
8
  wait
12
9
  } from "../../chunks/chunk-4CIS3R7T.js";
10
+ import {
11
+ Duration
12
+ } from "../../chunks/chunk-6NYUQXJT.js";
13
13
 
14
14
  // src/agnostic/time/index.ts
15
15
  var Time;