@design-edito/tools 0.3.7 → 0.3.9

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 (71) hide show
  1. package/agnostic/arrays/index.d.ts +2 -2
  2. package/agnostic/arrays/index.js +2 -2
  3. package/agnostic/colors/index.d.ts +2 -2
  4. package/agnostic/colors/index.js +2 -2
  5. package/agnostic/css/clss/index.d.ts +8 -0
  6. package/agnostic/css/clss/index.js +31 -0
  7. package/agnostic/css/clss/index.test.d.ts +1 -0
  8. package/agnostic/css/index.d.ts +3 -2
  9. package/agnostic/css/index.js +3 -2
  10. package/agnostic/errors/index.d.ts +1 -1
  11. package/agnostic/errors/index.js +1 -1
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +21 -21
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +21 -21
  14. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +5 -5
  15. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +5 -5
  16. package/agnostic/html/index.d.ts +2 -2
  17. package/agnostic/html/index.js +2 -2
  18. package/agnostic/index.d.ts +7 -7
  19. package/agnostic/index.js +7 -7
  20. package/agnostic/misc/index.d.ts +4 -4
  21. package/agnostic/misc/index.js +4 -4
  22. package/agnostic/misc/logs/logger/index.d.ts +2 -2
  23. package/agnostic/numbers/index.d.ts +2 -2
  24. package/agnostic/numbers/index.js +2 -2
  25. package/agnostic/objects/index.d.ts +3 -3
  26. package/agnostic/objects/index.js +3 -3
  27. package/agnostic/random/index.d.ts +1 -1
  28. package/agnostic/random/index.js +1 -1
  29. package/agnostic/strings/index.d.ts +3 -3
  30. package/agnostic/strings/index.js +3 -3
  31. package/agnostic/time/index.d.ts +2 -2
  32. package/agnostic/time/index.js +2 -2
  33. package/components/EventListener/index.d.ts +10 -0
  34. package/components/EventListener/index.js +47 -0
  35. package/components/EventListener/styles.module.css +0 -0
  36. package/components/Input/index.d.ts +7 -0
  37. package/components/Input/index.js +29 -0
  38. package/components/Input/styles.module.css +0 -0
  39. package/components/IntersectionObserver/index.d.ts +20 -0
  40. package/components/IntersectionObserver/index.js +79 -0
  41. package/components/IntersectionObserver/styles.module.css +0 -0
  42. package/components/index.d.ts +3 -1
  43. package/components/index.js +3 -1
  44. package/components/public-classnames.d.ts +3 -0
  45. package/node/@aws-s3/storage/file/index.d.ts +2 -2
  46. package/node/@aws-s3/storage/file/index.js +2 -2
  47. package/node/@aws-s3/storage/index.d.ts +1 -1
  48. package/node/@aws-s3/storage/index.js +1 -1
  49. package/node/@google-cloud/storage/file/index.d.ts +5 -5
  50. package/node/@google-cloud/storage/file/index.js +5 -5
  51. package/node/@google-cloud/storage/index.d.ts +1 -1
  52. package/node/@google-cloud/storage/index.js +1 -1
  53. package/node/cloud-storage/operations/index.d.ts +1 -1
  54. package/node/cloud-storage/operations/index.js +1 -1
  55. package/node/files/index.d.ts +1 -1
  56. package/node/files/index.js +1 -1
  57. package/node/ftps/directory/index.d.ts +1 -1
  58. package/node/ftps/directory/index.js +1 -1
  59. package/node/ftps/file/index.d.ts +2 -2
  60. package/node/ftps/file/index.js +2 -2
  61. package/node/images/index.d.ts +1 -1
  62. package/node/images/index.js +1 -1
  63. package/node/images/transform/operations/index.d.ts +3 -3
  64. package/node/images/transform/operations/index.js +3 -3
  65. package/node/index.d.ts +1 -1
  66. package/node/index.js +1 -1
  67. package/node/sftp/directory/index.d.ts +1 -1
  68. package/node/sftp/directory/index.js +1 -1
  69. package/package.json +24 -24
  70. package/components/Comp/index.d.ts +0 -1
  71. package/components/Comp/index.js +0 -8
@@ -1,6 +1,6 @@
1
- export * as findDuplicates from './find-duplicates/index.js'
2
1
  export * as dedupe from './dedupe/index.js'
2
+ export * as findDuplicates from './find-duplicates/index.js'
3
3
  export * as isArrayOf from './is-array-of/index.js'
4
- export * as make from './make/index.js'
5
4
  export * as randomPick from './random-pick/index.js'
6
5
  export * as shuffle from './shuffle/index.js'
6
+ export * as make from './make/index.js'
@@ -1,6 +1,6 @@
1
- export * as findDuplicates from './find-duplicates/index.js'
2
1
  export * as dedupe from './dedupe/index.js'
2
+ export * as findDuplicates from './find-duplicates/index.js'
3
3
  export * as isArrayOf from './is-array-of/index.js'
4
- export * as make from './make/index.js'
5
4
  export * as randomPick from './random-pick/index.js'
6
5
  export * as shuffle from './shuffle/index.js'
6
+ export * as make from './make/index.js'
@@ -2,11 +2,11 @@ export * as channels from './channels/index.js'
2
2
  export * as contrast from './contrast/index.js'
3
3
  export * as convert from './convert/index.js'
4
4
  export * as distance from './distance/index.js'
5
- export * as grayscale from './grayscale/index.js'
6
5
  export * as invert from './invert/index.js'
6
+ export * as grayscale from './grayscale/index.js'
7
7
  export * as lerp from './lerp/index.js'
8
8
  export * as luminance from './luminance/index.js'
9
9
  export * as palette from './palette/index.js'
10
- export * as rotate from './rotate/index.js'
11
10
  export * as tidy from './tidy/index.js'
12
11
  export * as typechecks from './typechecks/index.js'
12
+ export * as rotate from './rotate/index.js'
@@ -2,11 +2,11 @@ export * as channels from './channels/index.js'
2
2
  export * as contrast from './contrast/index.js'
3
3
  export * as convert from './convert/index.js'
4
4
  export * as distance from './distance/index.js'
5
- export * as grayscale from './grayscale/index.js'
6
5
  export * as invert from './invert/index.js'
6
+ export * as grayscale from './grayscale/index.js'
7
7
  export * as lerp from './lerp/index.js'
8
8
  export * as luminance from './luminance/index.js'
9
9
  export * as palette from './palette/index.js'
10
- export * as rotate from './rotate/index.js'
11
10
  export * as tidy from './tidy/index.js'
12
11
  export * as typechecks from './typechecks/index.js'
12
+ export * as rotate from './rotate/index.js'
@@ -0,0 +1,8 @@
1
+ export type CssModuleObj = Readonly<Record<string, string>>;
2
+ export type ModsDescriptor = string | string[] | Record<string, boolean | null | undefined>;
3
+ export type EltNamesDescriptor = string | null | Array<string | null>;
4
+ export type Options = {
5
+ cssModule: CssModuleObj;
6
+ cssModuleRoot?: string;
7
+ };
8
+ export declare function clss(blockNames: string | string[], options?: Options): (eltNames: EltNamesDescriptor, modNames?: ModsDescriptor) => string;
@@ -0,0 +1,31 @@
1
+ // src/agnostic/css/clss/index.ts
2
+ function clss(blockNames, options) {
3
+ blockNames = Array.isArray(blockNames) ? blockNames : [blockNames];
4
+ return (eltNames, modNames = []) => {
5
+ const eltNamesArr = Array.isArray(eltNames) ? eltNames : [eltNames];
6
+ const modNamesArr = (Array.isArray(modNames) ? modNames : [modNames]).map((modName) => {
7
+ if (typeof modName === "string") return modName;
8
+ const trueModNames = Object.entries(modName).filter((entry) => entry[1] === true).map(([key]) => key);
9
+ return trueModNames;
10
+ }).flat();
11
+ const outputClassesArr = [];
12
+ blockNames.forEach((compName) => {
13
+ eltNamesArr.forEach((eltName) => {
14
+ const targetPublicClss = eltName === null ? compName : `${compName}__${eltName}`;
15
+ const targetPrivateClss = eltName === null ? options?.cssModule[options.cssModuleRoot ?? "root"] : options?.cssModule[eltName];
16
+ outputClassesArr.push(targetPublicClss);
17
+ if (targetPrivateClss !== void 0) outputClassesArr.push(targetPrivateClss);
18
+ modNamesArr.forEach((modName) => {
19
+ const targetModifiedPublicClss = `${targetPublicClss}--${modName}`;
20
+ const targetModifiedPrivateClss = eltName === null ? options?.cssModule[`${options.cssModuleRoot ?? "root"}--${modName}`] : options?.cssModule[`${eltName}--${modName}`];
21
+ outputClassesArr.push(targetModifiedPublicClss);
22
+ if (targetModifiedPrivateClss !== void 0) outputClassesArr.push(targetModifiedPrivateClss);
23
+ });
24
+ });
25
+ });
26
+ return outputClassesArr.join(" ");
27
+ };
28
+ }
29
+ export {
30
+ clss
31
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
- export * as bem from './bem/index.js'
1
+ export * as clss from './clss/index.js'
2
2
  export * as generateNiceColor from './generate-nice-color/index.js'
3
3
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
4
- export * as stylesSet from './styles-set/index.js'
5
4
  export * as scale from './scale/index.js'
5
+ export * as bem from './bem/index.js'
6
+ export * as stylesSet from './styles-set/index.js'
@@ -1,5 +1,6 @@
1
- export * as bem from './bem/index.js'
1
+ export * as clss from './clss/index.js'
2
2
  export * as generateNiceColor from './generate-nice-color/index.js'
3
3
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
4
- export * as stylesSet from './styles-set/index.js'
5
4
  export * as scale from './scale/index.js'
5
+ export * as bem from './bem/index.js'
6
+ export * as stylesSet from './styles-set/index.js'
@@ -1,2 +1,2 @@
1
- export * as unknownToString from './unknown-to-string/index.js'
2
1
  export * as register from './register/index.js'
2
+ export * as unknownToString from './unknown-to-string/index.js'
@@ -1,2 +1,2 @@
1
- export * as unknownToString from './unknown-to-string/index.js'
2
1
  export * as register from './register/index.js'
2
+ export * as unknownToString from './unknown-to-string/index.js'
@@ -1,52 +1,52 @@
1
1
  export * as add from './add/index.js'
2
+ export * as addclass from './addclass/index.js'
2
3
  export * as and from './and/index.js'
3
- export * as append from './append/index.js'
4
4
  export * as at from './at/index.js'
5
- export * as addclass from './addclass/index.js'
5
+ export * as append from './append/index.js'
6
6
  export * as call from './call/index.js'
7
- export * as deleteproperties from './deleteproperties/index.js'
8
7
  export * as clone from './clone/index.js'
9
- export * as getproperties from './getproperties/index.js'
10
- export * as getattribute from './getattribute/index.js'
8
+ export * as deleteproperties from './deleteproperties/index.js'
11
9
  export * as equals from './equals/index.js'
12
- export * as hjparse from './hjparse/index.js'
10
+ export * as getattribute from './getattribute/index.js'
11
+ export * as getproperties from './getproperties/index.js'
13
12
  export * as getproperty from './getproperty/index.js'
13
+ export * as hjstringify from './hjstringify/index.js'
14
+ export * as hjparse from './hjparse/index.js'
14
15
  export * as if from './if/index.js'
15
16
  export * as initialize from './initialize/index.js'
16
- export * as hjstringify from './hjstringify/index.js'
17
17
  export * as join from './join/index.js'
18
18
  export * as length from './length/index.js'
19
19
  export * as negate from './negate/index.js'
20
20
  export * as map from './map/index.js'
21
21
  export * as notrailing from './notrailing/index.js'
22
- export * as pickrandom from './pickrandom/index.js'
23
- export * as populate from './populate/index.js'
24
- export * as push from './push/index.js'
25
22
  export * as or from './or/index.js'
23
+ export * as pickrandom from './pickrandom/index.js'
26
24
  export * as print from './print/index.js'
25
+ export * as push from './push/index.js'
26
+ export * as populate from './populate/index.js'
27
+ export * as pusheach from './pusheach/index.js'
27
28
  export * as recordtoarray from './recordtoarray/index.js'
28
- export * as removeattribute from './removeattribute/index.js'
29
29
  export * as removeclass from './removeclass/index.js'
30
30
  export * as renameproperty from './renameproperty/index.js'
31
31
  export * as replace from './replace/index.js'
32
- export * as pusheach from './pusheach/index.js'
33
- export * as setattribute from './setattribute/index.js'
34
- export * as setproperty from './setproperty/index.js'
35
- export * as set from './set/index.js'
36
32
  export * as select from './select/index.js'
37
- export * as sorton from './sorton/index.js'
33
+ export * as set from './set/index.js'
34
+ export * as setproperty from './setproperty/index.js'
35
+ export * as setattribute from './setattribute/index.js'
36
+ export * as split from './split/index.js'
38
37
  export * as spread from './spread/index.js'
38
+ export * as toarray from './toarray/index.js'
39
39
  export * as toboolean from './toboolean/index.js'
40
+ export * as sorton from './sorton/index.js'
40
41
  export * as toelement from './toelement/index.js'
41
- export * as toarray from './toarray/index.js'
42
+ export * as removeattribute from './removeattribute/index.js'
42
43
  export * as toggleclass from './toggleclass/index.js'
43
44
  export * as tonodelist from './tonodelist/index.js'
44
- export * as split from './split/index.js'
45
45
  export * as tonull from './tonull/index.js'
46
+ export * as tonumber from './tonumber/index.js'
46
47
  export * as torecord from './torecord/index.js'
47
- export * as tostring from './tostring/index.js'
48
+ export * as toref from './toref/index.js'
48
49
  export * as totext from './totext/index.js'
49
50
  export * as transformselected from './transformselected/index.js'
50
- export * as tonumber from './tonumber/index.js'
51
51
  export * as trim from './trim/index.js'
52
- export * as toref from './toref/index.js'
52
+ export * as tostring from './tostring/index.js'
@@ -1,52 +1,52 @@
1
1
  export * as add from './add/index.js'
2
+ export * as addclass from './addclass/index.js'
2
3
  export * as and from './and/index.js'
3
- export * as append from './append/index.js'
4
4
  export * as at from './at/index.js'
5
- export * as addclass from './addclass/index.js'
5
+ export * as append from './append/index.js'
6
6
  export * as call from './call/index.js'
7
- export * as deleteproperties from './deleteproperties/index.js'
8
7
  export * as clone from './clone/index.js'
9
- export * as getproperties from './getproperties/index.js'
10
- export * as getattribute from './getattribute/index.js'
8
+ export * as deleteproperties from './deleteproperties/index.js'
11
9
  export * as equals from './equals/index.js'
12
- export * as hjparse from './hjparse/index.js'
10
+ export * as getattribute from './getattribute/index.js'
11
+ export * as getproperties from './getproperties/index.js'
13
12
  export * as getproperty from './getproperty/index.js'
13
+ export * as hjstringify from './hjstringify/index.js'
14
+ export * as hjparse from './hjparse/index.js'
14
15
  export * as if from './if/index.js'
15
16
  export * as initialize from './initialize/index.js'
16
- export * as hjstringify from './hjstringify/index.js'
17
17
  export * as join from './join/index.js'
18
18
  export * as length from './length/index.js'
19
19
  export * as negate from './negate/index.js'
20
20
  export * as map from './map/index.js'
21
21
  export * as notrailing from './notrailing/index.js'
22
- export * as pickrandom from './pickrandom/index.js'
23
- export * as populate from './populate/index.js'
24
- export * as push from './push/index.js'
25
22
  export * as or from './or/index.js'
23
+ export * as pickrandom from './pickrandom/index.js'
26
24
  export * as print from './print/index.js'
25
+ export * as push from './push/index.js'
26
+ export * as populate from './populate/index.js'
27
+ export * as pusheach from './pusheach/index.js'
27
28
  export * as recordtoarray from './recordtoarray/index.js'
28
- export * as removeattribute from './removeattribute/index.js'
29
29
  export * as removeclass from './removeclass/index.js'
30
30
  export * as renameproperty from './renameproperty/index.js'
31
31
  export * as replace from './replace/index.js'
32
- export * as pusheach from './pusheach/index.js'
33
- export * as setattribute from './setattribute/index.js'
34
- export * as setproperty from './setproperty/index.js'
35
- export * as set from './set/index.js'
36
32
  export * as select from './select/index.js'
37
- export * as sorton from './sorton/index.js'
33
+ export * as set from './set/index.js'
34
+ export * as setproperty from './setproperty/index.js'
35
+ export * as setattribute from './setattribute/index.js'
36
+ export * as split from './split/index.js'
38
37
  export * as spread from './spread/index.js'
38
+ export * as toarray from './toarray/index.js'
39
39
  export * as toboolean from './toboolean/index.js'
40
+ export * as sorton from './sorton/index.js'
40
41
  export * as toelement from './toelement/index.js'
41
- export * as toarray from './toarray/index.js'
42
+ export * as removeattribute from './removeattribute/index.js'
42
43
  export * as toggleclass from './toggleclass/index.js'
43
44
  export * as tonodelist from './tonodelist/index.js'
44
- export * as split from './split/index.js'
45
45
  export * as tonull from './tonull/index.js'
46
+ export * as tonumber from './tonumber/index.js'
46
47
  export * as torecord from './torecord/index.js'
47
- export * as tostring from './tostring/index.js'
48
+ export * as toref from './toref/index.js'
48
49
  export * as totext from './totext/index.js'
49
50
  export * as transformselected from './transformselected/index.js'
50
- export * as tonumber from './tonumber/index.js'
51
51
  export * as trim from './trim/index.js'
52
- export * as toref from './toref/index.js'
52
+ export * as tostring from './tostring/index.js'
@@ -1,14 +1,14 @@
1
- export * as any from './any/index.js'
2
1
  export * as array from './array/index.js'
3
2
  export * as element from './element/index.js'
4
- export * as global from './global/index.js'
5
3
  export * as boolean from './boolean/index.js'
6
- export * as nodelist from './nodelist/index.js'
7
4
  export * as get from './get/index.js'
5
+ export * as global from './global/index.js'
8
6
  export * as guess from './guess/index.js'
7
+ export * as nodelist from './nodelist/index.js'
8
+ export * as any from './any/index.js'
9
9
  export * as number from './number/index.js'
10
- export * as record from './record/index.js'
11
10
  export * as null from './null/index.js'
11
+ export * as record from './record/index.js'
12
12
  export * as ref from './ref/index.js'
13
- export * as string from './string/index.js'
14
13
  export * as text from './text/index.js'
14
+ export * as string from './string/index.js'
@@ -1,14 +1,14 @@
1
- export * as any from './any/index.js'
2
1
  export * as array from './array/index.js'
3
2
  export * as element from './element/index.js'
4
- export * as global from './global/index.js'
5
3
  export * as boolean from './boolean/index.js'
6
- export * as nodelist from './nodelist/index.js'
7
4
  export * as get from './get/index.js'
5
+ export * as global from './global/index.js'
8
6
  export * as guess from './guess/index.js'
7
+ export * as nodelist from './nodelist/index.js'
8
+ export * as any from './any/index.js'
9
9
  export * as number from './number/index.js'
10
- export * as record from './record/index.js'
11
10
  export * as null from './null/index.js'
11
+ export * as record from './record/index.js'
12
12
  export * as ref from './ref/index.js'
13
- export * as string from './string/index.js'
14
13
  export * as text from './text/index.js'
14
+ export * as string from './string/index.js'
@@ -1,8 +1,8 @@
1
1
  export * as getNodeAncestors from './get-node-ancestors/index.js'
2
- export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
2
  export * as hyperJson from './hyper-json/index.js'
4
3
  export * as insertNode from './insert-node/index.js'
4
+ export * as placeholders from './placeholders/index.js'
5
5
  export * as replaceInElement from './replace-in-element/index.js'
6
6
  export * as selectorToElement from './selector-to-element/index.js'
7
- export * as placeholders from './placeholders/index.js'
7
+ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
8
8
  export * as stringToNodes from './string-to-nodes/index.js'
@@ -1,8 +1,8 @@
1
1
  export * as getNodeAncestors from './get-node-ancestors/index.js'
2
- export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
2
  export * as hyperJson from './hyper-json/index.js'
4
3
  export * as insertNode from './insert-node/index.js'
4
+ export * as placeholders from './placeholders/index.js'
5
5
  export * as replaceInElement from './replace-in-element/index.js'
6
6
  export * as selectorToElement from './selector-to-element/index.js'
7
- export * as placeholders from './placeholders/index.js'
7
+ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
8
8
  export * as stringToNodes from './string-to-nodes/index.js'
@@ -1,16 +1,16 @@
1
- export * as booleans from './booleans/index.js'
2
1
  export * as arrays from './arrays/index.js'
2
+ export * as booleans from './booleans/index.js'
3
3
  export * as colors from './colors/index.js'
4
- export * as css from './css/index.js'
5
- export * as errors from './errors/index.js'
6
4
  export * as html from './html/index.js'
5
+ export * as errors from './errors/index.js'
7
6
  export * as misc from './misc/index.js'
8
- export * as numbers from './numbers/index.js'
7
+ export * as css from './css/index.js'
9
8
  export * as objects from './objects/index.js'
9
+ export * as optim from './optim/index.js'
10
+ export * as random from './random/index.js'
10
11
  export * as regexps from './regexps/index.js'
11
12
  export * as sanitization from './sanitization/index.js'
12
- export * as strings from './strings/index.js'
13
+ export * as numbers from './numbers/index.js'
13
14
  export * as time from './time/index.js'
14
15
  export * as typescript from './typescript/index.js'
15
- export * as random from './random/index.js'
16
- export * as optim from './optim/index.js'
16
+ export * as strings from './strings/index.js'
package/agnostic/index.js CHANGED
@@ -1,16 +1,16 @@
1
- export * as booleans from './booleans/index.js'
2
1
  export * as arrays from './arrays/index.js'
2
+ export * as booleans from './booleans/index.js'
3
3
  export * as colors from './colors/index.js'
4
- export * as css from './css/index.js'
5
- export * as errors from './errors/index.js'
6
4
  export * as html from './html/index.js'
5
+ export * as errors from './errors/index.js'
7
6
  export * as misc from './misc/index.js'
8
- export * as numbers from './numbers/index.js'
7
+ export * as css from './css/index.js'
9
8
  export * as objects from './objects/index.js'
9
+ export * as optim from './optim/index.js'
10
+ export * as random from './random/index.js'
10
11
  export * as regexps from './regexps/index.js'
11
12
  export * as sanitization from './sanitization/index.js'
12
- export * as strings from './strings/index.js'
13
+ export * as numbers from './numbers/index.js'
13
14
  export * as time from './time/index.js'
14
15
  export * as typescript from './typescript/index.js'
15
- export * as random from './random/index.js'
16
- export * as optim from './optim/index.js'
16
+ export * as strings from './strings/index.js'
@@ -1,12 +1,12 @@
1
+ export * as connection from './connection/index.js'
1
2
  export * as cast from './cast/index.js'
2
3
  export * as assert from './assert/index.js'
3
- export * as connection from './connection/index.js'
4
4
  export * as crawler from './crawler/index.js'
5
- export * as crossenv from './crossenv/index.js'
6
5
  export * as dataSize from './data-size/index.js'
7
- export * as isConstructorFunction from './is-constructor-function/index.js'
8
6
  export * as isNullish from './is-nullish/index.js'
7
+ export * as isConstructorFunction from './is-constructor-function/index.js'
9
8
  export * as logs from './logs/index.js'
10
9
  export * as loremIpsum from './lorem-ipsum/index.js'
11
- export * as normalizeExtension from './normalize-extension/index.js'
10
+ export * as crossenv from './crossenv/index.js'
12
11
  export * as outcome from './outcome/index.js'
12
+ export * as normalizeExtension from './normalize-extension/index.js'
@@ -1,12 +1,12 @@
1
+ export * as connection from './connection/index.js'
1
2
  export * as cast from './cast/index.js'
2
3
  export * as assert from './assert/index.js'
3
- export * as connection from './connection/index.js'
4
4
  export * as crawler from './crawler/index.js'
5
- export * as crossenv from './crossenv/index.js'
6
5
  export * as dataSize from './data-size/index.js'
7
- export * as isConstructorFunction from './is-constructor-function/index.js'
8
6
  export * as isNullish from './is-nullish/index.js'
7
+ export * as isConstructorFunction from './is-constructor-function/index.js'
9
8
  export * as logs from './logs/index.js'
10
9
  export * as loremIpsum from './lorem-ipsum/index.js'
11
- export * as normalizeExtension from './normalize-extension/index.js'
10
+ export * as crossenv from './crossenv/index.js'
12
11
  export * as outcome from './outcome/index.js'
12
+ export * as normalizeExtension from './normalize-extension/index.js'
@@ -31,12 +31,12 @@ declare class Log<T extends ConsoleMethod = ConsoleMethod> {
31
31
  export declare class Logger {
32
32
  _private_threads: Map<string, Log[]>;
33
33
  constructor();
34
- dir(thread: string | undefined, ...args: ConsoleMethodsParams['dir']): void;
34
+ dir(thread?: string, ...args: ConsoleMethodsParams['dir']): void;
35
35
  error(thread?: string, ...args: ConsoleMethodsParams['error']): void;
36
36
  group(thread?: string, ...args: ConsoleMethodsParams['group']): void;
37
37
  groupEnd(thread?: string, ...args: ConsoleMethodsParams['groupEnd']): void;
38
38
  log(thread?: string, ...args: ConsoleMethodsParams['log']): void;
39
- table(thread: string | undefined, ...args: ConsoleMethodsParams['table']): void;
39
+ table(thread?: string, ...args: ConsoleMethodsParams['table']): void;
40
40
  warn(thread?: string, ...args: ConsoleMethodsParams['warn']): void;
41
41
  setLog<T extends ConsoleMethod>(threadName: string, type: T, data: ConsoleMethodsParams[T]): this;
42
42
  print(this: Logger, threadFilter?: string, withStack?: boolean): void;
@@ -1,6 +1,6 @@
1
1
  export * as absoluteModulo from './absolute-modulo/index.js'
2
- export * as approximateRational from './approximate-rational/index.js'
3
2
  export * as clamp from './clamp/index.js'
4
- export * as round from './round/index.js'
5
3
  export * as geometricProgressions from './geometric-progressions/index.js'
4
+ export * as approximateRational from './approximate-rational/index.js'
5
+ export * as round from './round/index.js'
6
6
  export * as interpolate from './interpolate/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as absoluteModulo from './absolute-modulo/index.js'
2
- export * as approximateRational from './approximate-rational/index.js'
3
2
  export * as clamp from './clamp/index.js'
4
- export * as round from './round/index.js'
5
3
  export * as geometricProgressions from './geometric-progressions/index.js'
4
+ export * as approximateRational from './approximate-rational/index.js'
5
+ export * as round from './round/index.js'
6
6
  export * as interpolate from './interpolate/index.js'
@@ -1,8 +1,8 @@
1
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
- export * as enums from './enums/index.js'
2
+ export * as flattenGetters from './flatten-getters/index.js'
3
3
  export * as isObject from './is-object/index.js'
4
4
  export * as isRecord from './is-record/index.js'
5
- export * as flattenGetters from './flatten-getters/index.js'
6
5
  export * as recordFormat from './record-format/index.js'
7
- export * as recordMap from './record-map/index.js'
8
6
  export * as validation from './validation/index.js'
7
+ export * as recordMap from './record-map/index.js'
8
+ export * as enums from './enums/index.js'
@@ -1,8 +1,8 @@
1
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
- export * as enums from './enums/index.js'
2
+ export * as flattenGetters from './flatten-getters/index.js'
3
3
  export * as isObject from './is-object/index.js'
4
4
  export * as isRecord from './is-record/index.js'
5
- export * as flattenGetters from './flatten-getters/index.js'
6
5
  export * as recordFormat from './record-format/index.js'
7
- export * as recordMap from './record-map/index.js'
8
6
  export * as validation from './validation/index.js'
7
+ export * as recordMap from './record-map/index.js'
8
+ export * as enums from './enums/index.js'
@@ -1,3 +1,3 @@
1
1
  export * as hexChar from './hex-char/index.js'
2
- export * as random from './random/index.js'
3
2
  export * as uuid from './uuid/index.js'
3
+ export * as random from './random/index.js'
@@ -1,3 +1,3 @@
1
1
  export * as hexChar from './hex-char/index.js'
2
- export * as random from './random/index.js'
3
2
  export * as uuid from './uuid/index.js'
3
+ export * as random from './random/index.js'
@@ -1,7 +1,7 @@
1
1
  export * as charCodes from './char-codes/index.js'
2
2
  export * as matches from './matches/index.js'
3
- export * as parseTable from './parse-table/index.js'
4
- export * as toAlphanum from './to-alphanum/index.js'
5
3
  export * as replaceAll from './replace-all/index.js'
6
- export * as normalizeIndent from './normalize-indent/index.js'
4
+ export * as toAlphanum from './to-alphanum/index.js'
7
5
  export * as trim from './trim/index.js'
6
+ export * as normalizeIndent from './normalize-indent/index.js'
7
+ export * as parseTable from './parse-table/index.js'
@@ -1,7 +1,7 @@
1
1
  export * as charCodes from './char-codes/index.js'
2
2
  export * as matches from './matches/index.js'
3
- export * as parseTable from './parse-table/index.js'
4
- export * as toAlphanum from './to-alphanum/index.js'
5
3
  export * as replaceAll from './replace-all/index.js'
6
- export * as normalizeIndent from './normalize-indent/index.js'
4
+ export * as toAlphanum from './to-alphanum/index.js'
7
5
  export * as trim from './trim/index.js'
6
+ export * as normalizeIndent from './normalize-indent/index.js'
7
+ export * as parseTable from './parse-table/index.js'
@@ -1,5 +1,5 @@
1
- export * as dates from './dates/index.js'
2
1
  export * as duration from './duration/index.js'
3
2
  export * as timeout from './timeout/index.js'
4
- export * as wait from './wait/index.js'
5
3
  export * as transitions from './transitions/index.js'
4
+ export * as wait from './wait/index.js'
5
+ export * as dates from './dates/index.js'
@@ -1,5 +1,5 @@
1
- export * as dates from './dates/index.js'
2
1
  export * as duration from './duration/index.js'
3
2
  export * as timeout from './timeout/index.js'
4
- export * as wait from './wait/index.js'
5
3
  export * as transitions from './transitions/index.js'
4
+ export * as wait from './wait/index.js'
5
+ export * as dates from './dates/index.js'
@@ -0,0 +1,10 @@
1
+ import { type ReactNode } from 'react';
2
+ export type Props = {
3
+ className?: string;
4
+ type?: string | string[];
5
+ targetSelector?: string;
6
+ onEvent?: (e: Event) => void;
7
+ content?: ReactNode;
8
+ children?: ReactNode;
9
+ };
10
+ export declare const EventListenerComponent: ({ className, type, targetSelector, onEvent, content, children }: Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ // src/components/EventListener/index.tsx
2
+ import {
3
+ useRef,
4
+ useEffect
5
+ } from "react";
6
+ import { clss } from "../../agnostic/css/clss/index.js";
7
+ import { isNotFalsy } from "../../agnostic/booleans/is-falsy/index.js";
8
+ import { eventListener } from "../public-classnames.js";
9
+ import cssModule from "./styles.module.css";
10
+ import { jsxs } from "react/jsx-runtime";
11
+ var EventListenerComponent = ({
12
+ className,
13
+ type,
14
+ targetSelector,
15
+ onEvent,
16
+ content,
17
+ children
18
+ }) => {
19
+ const rootRef = useRef(null);
20
+ useEffect(() => {
21
+ const root = rootRef.current;
22
+ if (onEvent === void 0 || type === void 0 || root === null) return;
23
+ const typeArr = Array.isArray(type) ? type : [type];
24
+ const elements = Array.from(targetSelector === void 0 ? [root] : root.querySelectorAll(targetSelector));
25
+ elements.forEach(
26
+ (elt) => typeArr.forEach((type2) => {
27
+ elt.addEventListener(type2, onEvent);
28
+ })
29
+ );
30
+ return () => {
31
+ elements.forEach(
32
+ (elt) => typeArr.forEach((type2) => {
33
+ elt.removeEventListener(type2, onEvent);
34
+ })
35
+ );
36
+ };
37
+ }, [targetSelector, type, onEvent]);
38
+ const c = clss(eventListener, { cssModule });
39
+ const wrapperClassName = [c(null), className].filter(isNotFalsy).join(" ");
40
+ return /* @__PURE__ */ jsxs("span", { className: wrapperClassName, ref: rootRef, children: [
41
+ children,
42
+ content
43
+ ] });
44
+ };
45
+ export {
46
+ EventListenerComponent
47
+ };
File without changes
@@ -0,0 +1,7 @@
1
+ import { InputHTMLAttributes, JSX } from 'react';
2
+ export type Props = InputHTMLAttributes<HTMLInputElement> & {
3
+ name: string;
4
+ label?: string | JSX.Element;
5
+ labelAfter?: boolean;
6
+ };
7
+ export declare const Input: (props: Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ // src/components/Input/index.tsx
2
+ import { clss } from "../../agnostic/css/clss/index.js";
3
+ import { randomHash } from "../../agnostic/random/uuid/index.js";
4
+ import * as classes from "../public-classnames.js";
5
+ import styles from "./styles.module.css";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ var Input = (props) => {
8
+ const { label, labelAfter } = props;
9
+ delete props.label;
10
+ delete props.labelAfter;
11
+ const c = clss([classes.input], { cssModule: styles });
12
+ const inputClassName = c(null, { alt: true });
13
+ const inputId = props.id ?? randomHash(8);
14
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
15
+ label !== void 0 && labelAfter !== true && /* @__PURE__ */ jsx("label", { children: label }),
16
+ /* @__PURE__ */ jsx(
17
+ "input",
18
+ {
19
+ ...props,
20
+ className: inputClassName,
21
+ id: inputId
22
+ }
23
+ ),
24
+ label !== void 0 && labelAfter === true && /* @__PURE__ */ jsx("label", { children: label })
25
+ ] });
26
+ };
27
+ export {
28
+ Input
29
+ };
File without changes
@@ -0,0 +1,20 @@
1
+ import { type ReactNode } from 'react';
2
+ export type IO = IntersectionObserver;
3
+ export type IOE = IntersectionObserverEntry;
4
+ type ObserverOptions = {
5
+ root?: HTMLElement;
6
+ rootMargin?: string;
7
+ threshold?: number[] | number;
8
+ };
9
+ export type Props = {
10
+ className?: string;
11
+ render?: ReactNode;
12
+ onIntersection?: (details: {
13
+ ioEntry?: IOE | undefined;
14
+ observer: IO;
15
+ }) => void;
16
+ content?: ReactNode;
17
+ children?: ReactNode;
18
+ } & ObserverOptions;
19
+ export declare const IntersectionObserverComponent: ({ className, render, content, onIntersection, root, rootMargin, threshold, children }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,79 @@
1
+ // src/components/IntersectionObserver/index.tsx
2
+ import {
3
+ useState,
4
+ useRef,
5
+ useEffect,
6
+ useCallback
7
+ } from "react";
8
+ import { clss } from "../../agnostic/css/clss/index.js";
9
+ import { isNotFalsy } from "../../agnostic/booleans/is-falsy/index.js";
10
+ import { intersectionObserver } from "../public-classnames.js";
11
+ import cssModule from "./styles.module.css";
12
+ import { jsxs } from "react/jsx-runtime";
13
+ var IntersectionObserverComponent = ({
14
+ className,
15
+ render,
16
+ content,
17
+ onIntersection,
18
+ root,
19
+ rootMargin,
20
+ threshold,
21
+ children
22
+ }) => {
23
+ const [ioEntry, setIoEntry] = useState(null);
24
+ const rootRef = useRef(null);
25
+ const observerRef = useRef(null);
26
+ const observation = useCallback((entries, observer) => {
27
+ const thisEntry = entries[0];
28
+ if (thisEntry === void 0) return setIoEntry(null);
29
+ if (onIntersection !== void 0) onIntersection({
30
+ ioEntry: thisEntry,
31
+ observer
32
+ });
33
+ setIoEntry(thisEntry);
34
+ }, [onIntersection]);
35
+ const forceObservation = useCallback(() => {
36
+ const rootEl = rootRef.current;
37
+ const observer = observerRef.current;
38
+ if (rootEl === null || observer === null) return;
39
+ observer.unobserve(rootEl);
40
+ observer.observe(rootEl);
41
+ }, []);
42
+ useEffect(() => {
43
+ const rootEl = rootRef.current;
44
+ if (rootEl === null) return console.warn("rootRef.current should not be null");
45
+ const observer = new IntersectionObserver(observation, { root, rootMargin, threshold });
46
+ observerRef.current = observer;
47
+ observer.observe(rootEl);
48
+ return () => observer.disconnect();
49
+ }, [root, rootMargin, threshold, observation]);
50
+ useEffect(() => {
51
+ const timeout1 = window.setTimeout(forceObservation, 100);
52
+ const timeout2 = window.setTimeout(forceObservation, 500);
53
+ return () => {
54
+ window.clearTimeout(timeout1);
55
+ window.clearTimeout(timeout2);
56
+ };
57
+ }, [forceObservation]);
58
+ const c = clss(intersectionObserver, { cssModule });
59
+ const isIntersecting = ioEntry?.isIntersecting ?? false;
60
+ const wrapperClassName = [
61
+ c(null, { "is-intersecting": isIntersecting }),
62
+ className
63
+ ].filter(isNotFalsy).join(" ");
64
+ return /* @__PURE__ */ jsxs(
65
+ "div",
66
+ {
67
+ ref: rootRef,
68
+ className: wrapperClassName,
69
+ children: [
70
+ render ?? null,
71
+ children,
72
+ content
73
+ ]
74
+ }
75
+ );
76
+ };
77
+ export {
78
+ IntersectionObserverComponent
79
+ };
@@ -1 +1,3 @@
1
- export * as comp from './Comp/index.js'
1
+ export * as eventListener from './EventListener/index.js'
2
+ export * as input from './Input/index.js'
3
+ export * as intersectionObserver from './IntersectionObserver/index.js'
@@ -1 +1,3 @@
1
- export * as comp from './Comp/index.js'
1
+ export * as eventListener from './EventListener/index.js'
2
+ export * as input from './Input/index.js'
3
+ export * as intersectionObserver from './IntersectionObserver/index.js'
@@ -0,0 +1,3 @@
1
+ export declare const eventListener = "lm-event-listener";
2
+ export declare const input = "lm-input";
3
+ export declare const intersectionObserver = "lm-intersection-observer";
@@ -1,7 +1,7 @@
1
1
  export * as copy from './copy/index.js'
2
- export * as download from './download/index.js'
3
- export * as move from './move/index.js'
4
2
  export * as exists from './exists/index.js'
3
+ export * as move from './move/index.js'
5
4
  export * as remove from './remove/index.js'
6
5
  export * as stat from './stat/index.js'
6
+ export * as download from './download/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -1,7 +1,7 @@
1
1
  export * as copy from './copy/index.js'
2
- export * as download from './download/index.js'
3
- export * as move from './move/index.js'
4
2
  export * as exists from './exists/index.js'
3
+ export * as move from './move/index.js'
5
4
  export * as remove from './remove/index.js'
6
5
  export * as stat from './stat/index.js'
6
+ export * as download from './download/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -1,2 +1,2 @@
1
- export * as directory from './directory/index.js'
2
1
  export * as file from './file/index.js'
2
+ export * as directory from './directory/index.js'
@@ -1,2 +1,2 @@
1
- export * as directory from './directory/index.js'
2
1
  export * as file from './file/index.js'
2
+ export * as directory from './directory/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
- export * as exists from './exists/index.js'
4
3
  export * as generateSignedUrl from './generate-signed-url/index.js'
5
- export * as getMetadata from './get-metadata/index.js'
6
4
  export * as getPermissions from './get-permissions/index.js'
7
- export * as move from './move/index.js'
8
- export * as remove from './remove/index.js'
5
+ export * as getMetadata from './get-metadata/index.js'
6
+ export * as exists from './exists/index.js'
9
7
  export * as revokeSignedUrls from './revoke-signed-urls/index.js'
8
+ export * as stat from './stat/index.js'
10
9
  export * as updateMetadata from './update-metadata/index.js'
11
10
  export * as upload from './upload/index.js'
12
- export * as stat from './stat/index.js'
11
+ export * as move from './move/index.js'
12
+ export * as remove from './remove/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
- export * as exists from './exists/index.js'
4
3
  export * as generateSignedUrl from './generate-signed-url/index.js'
5
- export * as getMetadata from './get-metadata/index.js'
6
4
  export * as getPermissions from './get-permissions/index.js'
7
- export * as move from './move/index.js'
8
- export * as remove from './remove/index.js'
5
+ export * as getMetadata from './get-metadata/index.js'
6
+ export * as exists from './exists/index.js'
9
7
  export * as revokeSignedUrls from './revoke-signed-urls/index.js'
8
+ export * as stat from './stat/index.js'
10
9
  export * as updateMetadata from './update-metadata/index.js'
11
10
  export * as upload from './upload/index.js'
12
- export * as stat from './stat/index.js'
11
+ export * as move from './move/index.js'
12
+ export * as remove from './remove/index.js'
@@ -1,3 +1,3 @@
1
- export * as bucket from './bucket/index.js'
2
1
  export * as directory from './directory/index.js'
2
+ export * as bucket from './bucket/index.js'
3
3
  export * as file from './file/index.js'
@@ -1,3 +1,3 @@
1
- export * as bucket from './bucket/index.js'
2
1
  export * as directory from './directory/index.js'
2
+ export * as bucket from './bucket/index.js'
3
3
  export * as file from './file/index.js'
@@ -1,6 +1,7 @@
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 moveDir from './move-dir/index.js'
5
6
  export * as listDir from './list-dir/index.js'
6
7
  export * as moveFile from './move-file/index.js'
@@ -8,4 +9,3 @@ 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 existsFile from './exists-file/index.js'
@@ -1,6 +1,7 @@
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 moveDir from './move-dir/index.js'
5
6
  export * as listDir from './list-dir/index.js'
6
7
  export * as moveFile from './move-file/index.js'
@@ -8,4 +9,3 @@ 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 existsFile from './exists-file/index.js'
@@ -1,3 +1,3 @@
1
+ export * as readWrite from './read-write/index.js'
1
2
  export * as isInDirectory from './is-in-directory/index.js'
2
3
  export * as subpaths from './subpaths/index.js'
3
- export * as readWrite from './read-write/index.js'
@@ -1,3 +1,3 @@
1
+ export * as readWrite from './read-write/index.js'
1
2
  export * as isInDirectory from './is-in-directory/index.js'
2
3
  export * as subpaths from './subpaths/index.js'
3
- export * as readWrite from './read-write/index.js'
@@ -1,4 +1,4 @@
1
- export * as list from './list/index.js'
2
1
  export * as copyDir from './copy-dir/index.js'
2
+ export * as list from './list/index.js'
3
3
  export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
@@ -1,4 +1,4 @@
1
- export * as list from './list/index.js'
2
1
  export * as copyDir from './copy-dir/index.js'
2
+ export * as list from './list/index.js'
3
3
  export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
@@ -1,7 +1,7 @@
1
1
  export * as copy from './copy/index.js'
2
- export * as download from './download/index.js'
3
- export * as exists from './exists/index.js'
4
2
  export * as move from './move/index.js'
3
+ export * as download from './download/index.js'
5
4
  export * as remove from './remove/index.js'
5
+ export * as exists from './exists/index.js'
6
6
  export * as stat from './stat/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -1,7 +1,7 @@
1
1
  export * as copy from './copy/index.js'
2
- export * as download from './download/index.js'
3
- export * as exists from './exists/index.js'
4
2
  export * as move from './move/index.js'
3
+ export * as download from './download/index.js'
5
4
  export * as remove from './remove/index.js'
5
+ export * as exists from './exists/index.js'
6
6
  export * as stat from './stat/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -1,5 +1,5 @@
1
1
  export * as create from './create/index.js'
2
2
  export * as format from './format/index.js'
3
- export * as metadata from './metadata/index.js'
4
3
  export * as transform from './transform/index.js'
4
+ export * as metadata from './metadata/index.js'
5
5
  export * as utils from './utils/index.js'
@@ -1,5 +1,5 @@
1
1
  export * as create from './create/index.js'
2
2
  export * as format from './format/index.js'
3
- export * as metadata from './metadata/index.js'
4
3
  export * as transform from './transform/index.js'
4
+ export * as metadata from './metadata/index.js'
5
5
  export * as utils from './utils/index.js'
@@ -5,11 +5,11 @@ export * as extract from './extract/index.js'
5
5
  export * as flatten from './flatten/index.js'
6
6
  export * as flip from './flip/index.js'
7
7
  export * as flop from './flop/index.js'
8
- export * as level from './level/index.js'
9
8
  export * as hue from './hue/index.js'
10
- export * as lighten from './lighten/index.js'
9
+ export * as level from './level/index.js'
11
10
  export * as normalize from './normalize/index.js'
12
- export * as overlay from './overlay/index.js'
13
11
  export * as resize from './resize/index.js'
12
+ export * as overlay from './overlay/index.js'
13
+ export * as lighten from './lighten/index.js'
14
14
  export * as rotate from './rotate/index.js'
15
15
  export * as saturate from './saturate/index.js'
@@ -5,11 +5,11 @@ export * as extract from './extract/index.js'
5
5
  export * as flatten from './flatten/index.js'
6
6
  export * as flip from './flip/index.js'
7
7
  export * as flop from './flop/index.js'
8
- export * as level from './level/index.js'
9
8
  export * as hue from './hue/index.js'
10
- export * as lighten from './lighten/index.js'
9
+ export * as level from './level/index.js'
11
10
  export * as normalize from './normalize/index.js'
12
- export * as overlay from './overlay/index.js'
13
11
  export * as resize from './resize/index.js'
12
+ export * as overlay from './overlay/index.js'
13
+ export * as lighten from './lighten/index.js'
14
14
  export * as rotate from './rotate/index.js'
15
15
  export * as saturate from './saturate/index.js'
package/node/index.d.ts CHANGED
@@ -7,5 +7,5 @@ export * as encryption from './encryption/index.js'
7
7
  export * as files from './files/index.js'
8
8
  export * as ftps from './ftps/index.js'
9
9
  export * as images from './images/index.js'
10
- export * as process from './process/index.js'
11
10
  export * as sftp from './sftp/index.js'
11
+ export * as process from './process/index.js'
package/node/index.js CHANGED
@@ -7,5 +7,5 @@ export * as encryption from './encryption/index.js'
7
7
  export * as files from './files/index.js'
8
8
  export * as ftps from './ftps/index.js'
9
9
  export * as images from './images/index.js'
10
- export * as process from './process/index.js'
11
10
  export * as sftp from './sftp/index.js'
11
+ export * as process from './process/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
- export * as list from './list/index.js'
3
2
  export * as moveDir from './move-dir/index.js'
3
+ export * as list from './list/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
- export * as list from './list/index.js'
3
2
  export * as moveDir from './move-dir/index.js'
3
+ export * as list from './list/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/tools",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",
@@ -12,53 +12,53 @@
12
12
  "main": "index.js",
13
13
  "module": "index.js",
14
14
  "dependencies": {
15
- "@aws-sdk/client-s3": "^3.907.0",
16
- "@aws-sdk/lib-storage": "^3.907.0",
17
- "@google-cloud/storage": "^7.17.2",
15
+ "@aws-sdk/client-s3": "^3.982.0",
16
+ "@aws-sdk/lib-storage": "^3.982.0",
17
+ "@google-cloud/storage": "^7.18.0",
18
18
  "@inquirer/prompts": "^8.2.0",
19
19
  "ansi-regex": "^6.2.2",
20
20
  "archiver": "^7.0.1",
21
- "basic-ftp": "^5.0.5",
21
+ "basic-ftp": "^5.1.0",
22
22
  "chalk": "^5.6.2",
23
- "express": "^5.1.0",
23
+ "express": "^5.2.1",
24
24
  "multer": "^2.0.0",
25
25
  "quantize": "^1.0.2",
26
- "react": "^19.2.0",
27
- "react-dom": "^19.2.0",
28
- "sharp": "^0.34.4",
26
+ "react": "^19.2.4",
27
+ "react-dom": "^19.2.4",
28
+ "sharp": "^0.34.5",
29
29
  "ssh2": "^1.17.0",
30
30
  "ssh2-sftp-client": "^12.0.0",
31
31
  "xss": "^1.0.15",
32
- "zod": "^4.1.12"
32
+ "zod": "^4.3.6"
33
33
  },
34
34
  "devDependencies": {
35
- "@preact/preset-vite": "^2.10.2",
35
+ "@preact/preset-vite": "^2.10.3",
36
36
  "@testing-library/jest-dom": "^6.9.1",
37
37
  "@testing-library/preact": "^3.2.4",
38
- "@testing-library/react": "^16.3.1",
39
- "@types/archiver": "^6.0.3",
40
- "@types/express": "^5.0.2",
38
+ "@testing-library/react": "^16.3.2",
39
+ "@types/archiver": "^7.0.0",
40
+ "@types/express": "^5.0.6",
41
41
  "@types/jsdom": "^27.0.0",
42
42
  "@types/multer": "^2.0.0",
43
- "@types/node": "^24.7.1",
43
+ "@types/node": "^25.2.0",
44
44
  "@types/prompts": "^2.4.9",
45
45
  "@types/quantize": "^1.0.2",
46
- "@types/react": "^19.2.2",
47
- "@types/react-dom": "^19.2.1",
46
+ "@types/react": "^19.2.11",
47
+ "@types/react-dom": "^19.2.3",
48
48
  "@types/semver": "^7.7.1",
49
49
  "@types/sharp": "^0.31.1",
50
- "@types/ssh2-sftp-client": "^9.0.4",
51
- "@vitejs/plugin-react": "^5.1.2",
50
+ "@types/ssh2-sftp-client": "^9.0.6",
51
+ "@vitejs/plugin-react": "^5.1.3",
52
52
  "change-case": "^5.4.4",
53
53
  "chokidar-cli": "^3.0.0",
54
54
  "concurrently": "^9.2.1",
55
- "esbuild": "^0.25.10",
56
- "jsdom": "^27.4.0",
55
+ "esbuild": "^0.27.2",
56
+ "jsdom": "^28.0.0",
57
57
  "prompts": "^2.4.2",
58
- "puppeteer": "^24.23.1",
58
+ "puppeteer": "^24.36.1",
59
59
  "semver": "^7.7.3",
60
- "simple-git": "^3.27.0",
60
+ "simple-git": "^3.30.0",
61
61
  "typescript": "^5.9.3",
62
- "vitest": "^4.0.17"
62
+ "vitest": "^4.0.18"
63
63
  }
64
64
  }
@@ -1 +0,0 @@
1
- export default function Comp(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- // src/components/Comp/index.tsx
2
- import { Fragment, jsx } from "react/jsx-runtime";
3
- function Comp() {
4
- return /* @__PURE__ */ jsx(Fragment, { children: "Coucou !" });
5
- }
6
- export {
7
- Comp as default
8
- };