@design-edito/tools 0.2.15 → 0.2.16

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 (245) hide show
  1. package/agnostic/arrays/index.js +10 -10
  2. package/agnostic/arrays/random-pick/index.js +6 -6
  3. package/agnostic/colors/channels/index.d.ts +5 -0
  4. package/agnostic/colors/channels/index.js +18 -0
  5. package/agnostic/colors/contrast/index.d.ts +2 -0
  6. package/agnostic/colors/contrast/index.js +13 -0
  7. package/agnostic/colors/convert/index.d.ts +20 -0
  8. package/agnostic/colors/convert/index.js +45 -0
  9. package/agnostic/colors/distance/index.d.ts +2 -0
  10. package/agnostic/colors/distance/index.js +12 -0
  11. package/agnostic/colors/grayscale/index.d.ts +2 -0
  12. package/agnostic/colors/grayscale/index.js +12 -0
  13. package/agnostic/colors/index.d.ts +14 -16
  14. package/agnostic/colors/index.js +95 -27
  15. package/agnostic/colors/invert/index.d.ts +2 -0
  16. package/agnostic/colors/invert/index.js +12 -0
  17. package/agnostic/colors/lerp/index.d.ts +2 -0
  18. package/agnostic/colors/lerp/index.js +12 -0
  19. package/agnostic/colors/luminance/index.d.ts +2 -0
  20. package/agnostic/colors/luminance/index.js +12 -0
  21. package/agnostic/colors/palette/index.d.ts +2 -0
  22. package/agnostic/colors/palette/index.js +14 -0
  23. package/agnostic/colors/rotate/index.d.ts +2 -0
  24. package/agnostic/colors/rotate/index.js +13 -0
  25. package/agnostic/colors/tidy/index.d.ts +2 -0
  26. package/agnostic/colors/tidy/index.js +11 -0
  27. package/agnostic/colors/typechecks/index.d.ts +11 -0
  28. package/agnostic/colors/typechecks/index.js +26 -0
  29. package/agnostic/colors/types.d.ts +82 -0
  30. package/agnostic/css/index.js +10 -10
  31. package/agnostic/css/styles-set/index.js +8 -8
  32. package/agnostic/errors/index.js +2 -2
  33. package/agnostic/html/hyper-json/cast/index.js +6 -6
  34. package/agnostic/html/hyper-json/index.js +7 -7
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +6 -6
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +6 -6
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +6 -6
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +6 -6
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +6 -6
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +6 -6
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +6 -6
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +6 -6
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +6 -6
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +6 -6
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +6 -6
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +6 -6
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +6 -6
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +6 -6
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +6 -6
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +6 -6
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +6 -6
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +6 -6
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +6 -6
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +6 -6
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +6 -6
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +6 -6
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +6 -6
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +6 -6
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +6 -6
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +6 -6
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +6 -6
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +6 -6
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +6 -6
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +6 -6
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +6 -6
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +6 -6
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +6 -6
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +6 -6
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +6 -6
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +6 -6
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +6 -6
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +6 -6
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +6 -6
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +6 -6
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +6 -6
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +6 -6
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +6 -6
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +6 -6
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +6 -6
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +6 -6
  81. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +6 -6
  82. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +6 -6
  83. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +6 -6
  84. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +6 -6
  85. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +6 -6
  86. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +6 -6
  87. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +6 -6
  88. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +6 -6
  89. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +6 -6
  90. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +6 -6
  91. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +6 -6
  92. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +6 -6
  93. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +6 -6
  94. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +6 -6
  95. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +6 -6
  96. package/agnostic/html/hyper-json/tree/index.js +6 -6
  97. package/agnostic/html/hyper-json/utils/index.js +6 -6
  98. package/agnostic/html/index.js +22 -22
  99. package/agnostic/html/sanitize/index.js +6 -6
  100. package/agnostic/html/selector-to-element/index.js +6 -6
  101. package/agnostic/html/string-to-nodes/index.js +7 -7
  102. package/agnostic/index.d.ts +1 -1
  103. package/agnostic/misc/assert/index.js +3 -3
  104. package/agnostic/misc/crossenv/index.js +2 -2
  105. package/agnostic/misc/index.js +25 -25
  106. package/agnostic/misc/lorem-ipsum/index.js +13 -13
  107. package/agnostic/numbers/index.js +6 -6
  108. package/agnostic/objects/index.js +15 -15
  109. package/agnostic/random/index.js +2 -2
  110. package/agnostic/strings/index.js +11 -11
  111. package/agnostic/time/index.js +6 -6
  112. package/chunks/chunk-2EHYEUX4.js +21 -0
  113. package/chunks/chunk-5LK2YLTK.js +21 -0
  114. package/chunks/chunk-65NTXENV.js +157 -0
  115. package/chunks/{chunk-XDITZ5QN.js → chunk-AF2NAJS2.js} +2 -2
  116. package/chunks/chunk-ALMK24GK.js +0 -0
  117. package/chunks/chunk-BKIF2ELV.js +47 -0
  118. package/chunks/{chunk-B446JIN3.js → chunk-C7SRAQMW.js} +1 -1
  119. package/chunks/{chunk-36CTYZYA.js → chunk-CQEDNACN.js} +2 -2
  120. package/chunks/chunk-D7SXHHU3.js +47 -0
  121. package/chunks/{chunk-IWDIKDYR.js → chunk-E33DCHHS.js} +13 -13
  122. package/chunks/{chunk-WAMSK4A3.js → chunk-E4FJHD5R.js} +1 -1
  123. package/chunks/chunk-GUBFCOBT.js +98 -0
  124. package/chunks/{chunk-Q6DUKZU6.js → chunk-I2HTBYNO.js} +6 -6
  125. package/chunks/chunk-IDXUS2IO.js +296 -0
  126. package/chunks/chunk-JHUOMGOX.js +81 -0
  127. package/chunks/{chunk-EDJ3TVNV.js → chunk-KDOMQ4LM.js} +15 -6
  128. package/chunks/chunk-MN4FVOU2.js +28 -0
  129. package/chunks/{chunk-2M33FCDG.js → chunk-O7VFJHQX.js} +11 -5
  130. package/chunks/{chunk-2UAVBQI5.js → chunk-OD2XVVE2.js} +4 -4
  131. package/chunks/{chunk-CHUOCTRP.js → chunk-P2H6PV4O.js} +2 -2
  132. package/chunks/chunk-P4YT4RBG.js +51 -0
  133. package/chunks/{chunk-CYUEPBUN.js → chunk-PX4DPCZM.js} +2 -2
  134. package/chunks/{chunk-YIZODJC7.js → chunk-QRS3G3YD.js} +5 -5
  135. package/chunks/{chunk-FQ4UTWMP.js → chunk-QTA7ZEVX.js} +3 -1
  136. package/chunks/chunk-QW34TQCS.js +48 -0
  137. package/chunks/{chunk-HMAK6VAF.js → chunk-RBCZWVQH.js} +11 -5
  138. package/chunks/{chunk-JWF5EKM2.js → chunk-RDQJSWRC.js} +1 -1
  139. package/chunks/{chunk-AI6AGF4I.js → chunk-S7637BQZ.js} +8 -5
  140. package/chunks/{chunk-GVQVGFAA.js → chunk-TQXFC6OS.js} +4 -4
  141. package/chunks/chunk-UG5EMKGN.js +265 -0
  142. package/chunks/chunk-VA67YLZL.js +26 -0
  143. package/chunks/{chunk-TSZAQ3RQ.js → chunk-VKNQ7MVZ.js} +86 -87
  144. package/chunks/{chunk-SA2IY5LN.js → chunk-X5HMM3LD.js} +1 -1
  145. package/chunks/chunk-XAYMIITK.js +103 -0
  146. package/chunks/chunk-YZVZKBVJ.js +631 -0
  147. package/chunks/chunk-ZJ63OCMA.js +207 -0
  148. package/node/@aws-s3/index.js +8 -8
  149. package/node/@aws-s3/storage/directory/index.js +7 -7
  150. package/node/@aws-s3/storage/file/index.js +10 -10
  151. package/node/@aws-s3/storage/index.js +10 -10
  152. package/node/@google-cloud/index.js +11 -11
  153. package/node/@google-cloud/storage/bucket/index.js +4 -4
  154. package/node/@google-cloud/storage/directory/index.js +7 -7
  155. package/node/@google-cloud/storage/file/index.js +14 -14
  156. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
  157. package/node/@google-cloud/storage/index.js +13 -13
  158. package/node/cloud-storage/index.js +26 -26
  159. package/node/cloud-storage/operations/index.js +36 -36
  160. package/node/encryption/index.js +3 -3
  161. package/node/files/index.js +3 -3
  162. package/node/ftps/directory/index.js +7 -7
  163. package/node/ftps/file/index.js +10 -10
  164. package/node/ftps/index.js +9 -9
  165. package/node/images/create/index.d.ts +3 -0
  166. package/node/images/create/index.js +23 -0
  167. package/node/images/format/index.d.ts +17 -51
  168. package/node/images/format/index.js +30 -4
  169. package/node/images/index.d.ts +4 -2
  170. package/node/images/index.js +41 -21
  171. package/node/images/metadata/index.d.ts +3 -0
  172. package/node/images/metadata/index.js +23 -0
  173. package/node/images/transform/index.d.ts +2 -97
  174. package/node/images/transform/index.js +27 -16
  175. package/node/images/transform/operations/blur/index.d.ts +1 -3
  176. package/node/images/transform/operations/brighten/index.d.ts +1 -3
  177. package/node/images/transform/operations/extend/index.d.ts +1 -8
  178. package/node/images/transform/operations/extend/index.js +17 -2
  179. package/node/images/transform/operations/extract/index.d.ts +1 -6
  180. package/node/images/transform/operations/flatten/index.d.ts +1 -3
  181. package/node/images/transform/operations/flatten/index.js +17 -2
  182. package/node/images/transform/operations/hue/index.d.ts +1 -3
  183. package/node/images/transform/operations/level/index.d.ts +1 -4
  184. package/node/images/transform/operations/lighten/index.d.ts +1 -3
  185. package/node/images/transform/operations/normalize/index.d.ts +1 -4
  186. package/node/images/transform/operations/overlay/index.d.ts +5 -0
  187. package/node/images/transform/operations/overlay/index.js +27 -0
  188. package/node/images/transform/operations/resize/index.d.ts +1 -11
  189. package/node/images/transform/operations/resize/index.js +17 -2
  190. package/node/images/transform/operations/rotate/index.d.ts +1 -4
  191. package/node/images/transform/operations/rotate/index.js +17 -2
  192. package/node/images/transform/operations/saturate/index.d.ts +1 -3
  193. package/node/images/transform/operations/saturate/index.js +1 -1
  194. package/node/images/types.d.ts +252 -0
  195. package/node/images/utils/index.d.ts +7 -0
  196. package/node/images/utils/index.js +28 -0
  197. package/node/sftp/directory/index.js +7 -7
  198. package/node/sftp/file/index.js +10 -10
  199. package/node/sftp/index.js +9 -9
  200. package/package.json +1 -1
  201. package/agnostic/colors/complement-color/index.d.ts +0 -1
  202. package/agnostic/colors/complement-color/index.js +0 -7
  203. package/agnostic/colors/hex-to-rgb/index.d.ts +0 -1
  204. package/agnostic/colors/hex-to-rgb/index.js +0 -7
  205. package/agnostic/colors/hsl-to-rgb/index.d.ts +0 -1
  206. package/agnostic/colors/hsl-to-rgb/index.js +0 -7
  207. package/agnostic/colors/lighten-color/index.d.ts +0 -2
  208. package/agnostic/colors/lighten-color/index.js +0 -11
  209. package/agnostic/colors/rgb-to-hex/index.d.ts +0 -1
  210. package/agnostic/colors/rgb-to-hex/index.js +0 -7
  211. package/agnostic/colors/rgb-to-hsl/index.d.ts +0 -1
  212. package/agnostic/colors/rgb-to-hsl/index.js +0 -7
  213. package/agnostic/colors/saturate-color/index.d.ts +0 -2
  214. package/agnostic/colors/saturate-color/index.js +0 -11
  215. package/chunks/chunk-2POD3TAX.js +0 -11
  216. package/chunks/chunk-2TJCB6IM.js +0 -12
  217. package/chunks/chunk-7EDDWSWS.js +0 -123
  218. package/chunks/chunk-FAXNZG5C.js +0 -10
  219. package/chunks/chunk-IFQA5PWI.js +0 -112
  220. package/chunks/chunk-MB7HWF22.js +0 -23
  221. package/chunks/chunk-MFYNJMVM.js +0 -18
  222. package/chunks/chunk-NYVARFI7.js +0 -20
  223. package/chunks/chunk-QLC3A6PC.js +0 -17
  224. package/chunks/chunk-U57Q62IN.js +0 -23
  225. package/chunks/chunk-YVLJKJV2.js +0 -17
  226. package/node/images/get-metadata/index.d.ts +0 -4
  227. package/node/images/get-metadata/index.js +0 -7
  228. package/node/images/transform/operations/composite/index.d.ts +0 -7
  229. package/node/images/transform/operations/composite/index.js +0 -12
  230. package/node/images/transform/utils/index.d.ts +0 -2
  231. package/node/images/transform/utils/index.js +0 -8
  232. package/chunks/{chunk-WH6BPDAC.js → chunk-2KT7AKRW.js} +3 -3
  233. package/chunks/{chunk-JSW6R3ZH.js → chunk-6QFELK4E.js} +9 -9
  234. package/chunks/{chunk-LAVXHKKR.js → chunk-73FF7HWQ.js} +9 -9
  235. package/chunks/{chunk-74CFPDKM.js → chunk-A7K5DUP7.js} +6 -6
  236. package/chunks/{chunk-7KSMK42F.js → chunk-CNMP2GU4.js} +6 -6
  237. package/chunks/{chunk-DEQWCMAL.js → chunk-EXPVRDPR.js} +9 -9
  238. package/chunks/{chunk-UFKH5WD2.js → chunk-FR5H2OCV.js} +3 -3
  239. package/chunks/{chunk-G5RRNREY.js → chunk-LSZVKXDZ.js} +3 -3
  240. package/chunks/{chunk-QCMBG5LN.js → chunk-MLLP7YSK.js} +13 -13
  241. package/chunks/{chunk-IOJTC6CN.js → chunk-PJSPZGT2.js} +15 -15
  242. package/chunks/{chunk-OVG5RGI3.js → chunk-S32K7POB.js} +4 -4
  243. package/chunks/{chunk-UXEKCYL7.js → chunk-UEAMPAHK.js} +3 -3
  244. package/chunks/{chunk-AIC5YAJU.js → chunk-X5F6XGEP.js} +6 -6
  245. package/chunks/{chunk-4OK2UH4M.js → chunk-ZBAKY6DB.js} +6 -6
@@ -1,16 +1,16 @@
1
- import "../../../chunks/chunk-74CFPDKM.js";
2
- import {
3
- remove_dir_exports
4
- } from "../../../chunks/chunk-5ZJ3KJPK.js";
5
- import {
6
- copy_dir_exports
7
- } from "../../../chunks/chunk-WAHPAZQS.js";
1
+ import "../../../chunks/chunk-A7K5DUP7.js";
8
2
  import {
9
3
  list_exports
10
4
  } from "../../../chunks/chunk-UK2F7CWI.js";
11
5
  import {
12
6
  move_dir_exports
13
7
  } from "../../../chunks/chunk-RWO53U4X.js";
8
+ import {
9
+ remove_dir_exports
10
+ } from "../../../chunks/chunk-5ZJ3KJPK.js";
11
+ import {
12
+ copy_dir_exports
13
+ } from "../../../chunks/chunk-WAHPAZQS.js";
14
14
  import "../../../chunks/chunk-JMU5PDBD.js";
15
15
  import "../../../chunks/chunk-FENXVJYO.js";
16
16
  import "../../../chunks/chunk-WSFCRVEQ.js";
@@ -1,25 +1,25 @@
1
- import "../../../chunks/chunk-DEQWCMAL.js";
2
- import {
3
- remove_exports
4
- } from "../../../chunks/chunk-ANPXBD2G.js";
5
- import {
6
- stat_exports
7
- } from "../../../chunks/chunk-TGVYEQIA.js";
1
+ import "../../../chunks/chunk-EXPVRDPR.js";
8
2
  import {
9
3
  upload_exports
10
4
  } from "../../../chunks/chunk-QDVDHFMZ.js";
11
5
  import {
12
6
  download_exports
13
7
  } from "../../../chunks/chunk-HWEGQVBQ.js";
14
- import {
15
- copy_exports
16
- } from "../../../chunks/chunk-QH64MYGA.js";
17
8
  import {
18
9
  exists_exports
19
10
  } from "../../../chunks/chunk-QVPS2BCJ.js";
11
+ import {
12
+ remove_exports
13
+ } from "../../../chunks/chunk-ANPXBD2G.js";
20
14
  import {
21
15
  move_exports
22
16
  } from "../../../chunks/chunk-FE4DECBU.js";
17
+ import {
18
+ stat_exports
19
+ } from "../../../chunks/chunk-TGVYEQIA.js";
20
+ import {
21
+ copy_exports
22
+ } from "../../../chunks/chunk-QH64MYGA.js";
23
23
  import "../../../chunks/chunk-JMU5PDBD.js";
24
24
  import "../../../chunks/chunk-FENXVJYO.js";
25
25
  import "../../../chunks/chunk-WSFCRVEQ.js";
@@ -1,20 +1,20 @@
1
- import {
2
- file_exports
3
- } from "../../chunks/chunk-DEQWCMAL.js";
4
1
  import {
5
2
  directory_exports
6
- } from "../../chunks/chunk-74CFPDKM.js";
7
- import "../../chunks/chunk-5ZJ3KJPK.js";
8
- import "../../chunks/chunk-ANPXBD2G.js";
9
- import "../../chunks/chunk-TGVYEQIA.js";
3
+ } from "../../chunks/chunk-A7K5DUP7.js";
4
+ import {
5
+ file_exports
6
+ } from "../../chunks/chunk-EXPVRDPR.js";
10
7
  import "../../chunks/chunk-QDVDHFMZ.js";
11
- import "../../chunks/chunk-WAHPAZQS.js";
12
8
  import "../../chunks/chunk-HWEGQVBQ.js";
13
- import "../../chunks/chunk-QH64MYGA.js";
14
9
  import "../../chunks/chunk-QVPS2BCJ.js";
15
10
  import "../../chunks/chunk-UK2F7CWI.js";
16
11
  import "../../chunks/chunk-RWO53U4X.js";
12
+ import "../../chunks/chunk-5ZJ3KJPK.js";
13
+ import "../../chunks/chunk-ANPXBD2G.js";
17
14
  import "../../chunks/chunk-FE4DECBU.js";
15
+ import "../../chunks/chunk-TGVYEQIA.js";
16
+ import "../../chunks/chunk-WAHPAZQS.js";
17
+ import "../../chunks/chunk-QH64MYGA.js";
18
18
  import "../../chunks/chunk-JMU5PDBD.js";
19
19
  import "../../chunks/chunk-FENXVJYO.js";
20
20
  import "../../chunks/chunk-WSFCRVEQ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/tools",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",
@@ -1 +0,0 @@
1
- export declare function complementColor(color: [number, number, number]): [number, number, number];
@@ -1,7 +0,0 @@
1
- import {
2
- complementColor
3
- } from "../../../chunks/chunk-2POD3TAX.js";
4
- import "../../../chunks/chunk-WSFCRVEQ.js";
5
- export {
6
- complementColor
7
- };
@@ -1 +0,0 @@
1
- export declare function HEXToRGB(hexColor: string): [number, number, number];
@@ -1,7 +0,0 @@
1
- import {
2
- HEXToRGB
3
- } from "../../../chunks/chunk-FAXNZG5C.js";
4
- import "../../../chunks/chunk-WSFCRVEQ.js";
5
- export {
6
- HEXToRGB
7
- };
@@ -1 +0,0 @@
1
- export declare function HSLToRGB(color: [number, number, number]): [number, number, number];
@@ -1,7 +0,0 @@
1
- import {
2
- HSLToRGB
3
- } from "../../../chunks/chunk-QLC3A6PC.js";
4
- import "../../../chunks/chunk-WSFCRVEQ.js";
5
- export {
6
- HSLToRGB
7
- };
@@ -1,2 +0,0 @@
1
- export declare function lightenColor(color: [number, number, number], intensity?: number): [number, number, number];
2
- export declare function setColorLuminance(color: [number, number, number], intensity?: number): [number, number, number];
@@ -1,11 +0,0 @@
1
- import {
2
- lightenColor,
3
- setColorLuminance
4
- } from "../../../chunks/chunk-U57Q62IN.js";
5
- import "../../../chunks/chunk-QLC3A6PC.js";
6
- import "../../../chunks/chunk-YVLJKJV2.js";
7
- import "../../../chunks/chunk-WSFCRVEQ.js";
8
- export {
9
- lightenColor,
10
- setColorLuminance
11
- };
@@ -1 +0,0 @@
1
- export declare function RGBToHEX(color: [number, number, number]): string;
@@ -1,7 +0,0 @@
1
- import {
2
- RGBToHEX
3
- } from "../../../chunks/chunk-2TJCB6IM.js";
4
- import "../../../chunks/chunk-WSFCRVEQ.js";
5
- export {
6
- RGBToHEX
7
- };
@@ -1 +0,0 @@
1
- export declare function RGBToHSL(color: [number, number, number]): [number, number, number];
@@ -1,7 +0,0 @@
1
- import {
2
- RGBToHSL
3
- } from "../../../chunks/chunk-YVLJKJV2.js";
4
- import "../../../chunks/chunk-WSFCRVEQ.js";
5
- export {
6
- RGBToHSL
7
- };
@@ -1,2 +0,0 @@
1
- export declare function saturateColor(color: [number, number, number], intensity?: number): [number, number, number];
2
- export declare function setColorSaturation(color: [number, number, number], intensity?: number): [number, number, number];
@@ -1,11 +0,0 @@
1
- import {
2
- saturateColor,
3
- setColorSaturation
4
- } from "../../../chunks/chunk-MB7HWF22.js";
5
- import "../../../chunks/chunk-QLC3A6PC.js";
6
- import "../../../chunks/chunk-YVLJKJV2.js";
7
- import "../../../chunks/chunk-WSFCRVEQ.js";
8
- export {
9
- saturateColor,
10
- setColorSaturation
11
- };
@@ -1,11 +0,0 @@
1
- // src/agnostic/colors/complement-color/index.ts
2
- function complementColor(color) {
3
- const r = 255 - color[0];
4
- const g = 255 - color[1];
5
- const b = 255 - color[2];
6
- return [r, g, b];
7
- }
8
-
9
- export {
10
- complementColor
11
- };
@@ -1,12 +0,0 @@
1
- // src/agnostic/colors/rgb-to-hex/index.ts
2
- function toHEX(color) {
3
- const hex = color.toString(16);
4
- return hex.length === 1 ? `0${hex}` : hex;
5
- }
6
- function RGBToHEX(color) {
7
- return `#${toHEX(color[0])}${toHEX(color[1])}${toHEX(color[2])}`;
8
- }
9
-
10
- export {
11
- RGBToHEX
12
- };
@@ -1,123 +0,0 @@
1
- import {
2
- isSharpColor
3
- } from "./chunk-MFYNJMVM.js";
4
- import {
5
- zod_default
6
- } from "./chunk-DZ2T5DTY.js";
7
- import {
8
- Outcome
9
- } from "./chunk-JMU5PDBD.js";
10
- import {
11
- clamp
12
- } from "./chunk-OSAXBA7G.js";
13
- import {
14
- __export
15
- } from "./chunk-WSFCRVEQ.js";
16
-
17
- // src/node/images/format/index.ts
18
- var format_exports = {};
19
- __export(format_exports, {
20
- format: () => format,
21
- isFormatAvifOptions: () => isFormatAvifOptions,
22
- isFormatCommonOptions: () => isFormatCommonOptions,
23
- isFormatHeifOptions: () => isFormatHeifOptions,
24
- isFormatJpgOptions: () => isFormatJpgOptions,
25
- isFormatKeepOptions: () => isFormatKeepOptions,
26
- isFormatOptions: () => isFormatOptions,
27
- isFormatPngOptions: () => isFormatPngOptions,
28
- isFormatTiffOptions: () => isFormatTiffOptions,
29
- isFormatWebpOptions: () => isFormatWebpOptions,
30
- toAvif: () => toAvif,
31
- toHeif: () => toHeif,
32
- toHeight: () => toHeight,
33
- toJpg: () => toJpg,
34
- toPng: () => toPng,
35
- toTiff: () => toTiff,
36
- toWebp: () => toWebp,
37
- toWidth: () => toWidth
38
- });
39
- import sharp from "sharp";
40
- var formatCommonOptionsSchema = zod_default.object({
41
- width: zod_default.number().optional(),
42
- height: zod_default.number().optional(),
43
- fit: zod_default.enum(["contain", "cover", "fill", "inside", "outside"]).optional(),
44
- position: zod_default.union([zod_default.number(), zod_default.string()]).optional(),
45
- background: zod_default.custom((val) => isSharpColor(val)).optional(),
46
- kernel: zod_default.enum(["nearest", "cubic", "mitchell", "lanczos2", "lanczos3"]).optional(),
47
- withoutEnlargement: zod_default.boolean().optional(),
48
- withoutReduction: zod_default.boolean().optional(),
49
- fastShrinkOnLoad: zod_default.boolean().optional()
50
- });
51
- var formatJpgOptionsSchema = formatCommonOptionsSchema.extend({ quality: zod_default.number().optional() });
52
- var formatPngOptionsSchema = formatCommonOptionsSchema.extend({
53
- quality: zod_default.number().optional(),
54
- compressionLevel: zod_default.number().min(0).max(9).optional()
55
- });
56
- var formatWebpOptionsSchema = formatCommonOptionsSchema.extend({ quality: zod_default.number().optional() });
57
- var formatAvifOptionsSchema = formatCommonOptionsSchema.extend({ quality: zod_default.number().optional() });
58
- var formatTiffOptionsSchema = formatCommonOptionsSchema.extend({
59
- quality: zod_default.number().optional(),
60
- compression: zod_default.enum(["none", "jpeg", "deflate", "packbits", "ccittfax4", "lzw", "webp", "zstd", "jp2k"]).optional()
61
- });
62
- var formatHeifOptionsSchema = formatCommonOptionsSchema.extend({ quality: zod_default.number().optional() });
63
- var formatKeepOptionsSchema = formatCommonOptionsSchema;
64
- var formatOptionsSchema = zod_default.union([
65
- formatJpgOptionsSchema,
66
- formatPngOptionsSchema,
67
- formatWebpOptionsSchema,
68
- formatAvifOptionsSchema,
69
- formatTiffOptionsSchema,
70
- formatHeifOptionsSchema,
71
- formatKeepOptionsSchema
72
- ]);
73
- var isFormatCommonOptions = (options) => formatCommonOptionsSchema.safeParse(options).success;
74
- var isFormatJpgOptions = (options) => formatJpgOptionsSchema.safeParse(options).success;
75
- var isFormatPngOptions = (options) => formatPngOptionsSchema.safeParse(options).success;
76
- var isFormatWebpOptions = (options) => formatWebpOptionsSchema.safeParse(options).success;
77
- var isFormatAvifOptions = (options) => formatAvifOptionsSchema.safeParse(options).success;
78
- var isFormatTiffOptions = (options) => formatTiffOptionsSchema.safeParse(options).success;
79
- var isFormatHeifOptions = (options) => formatHeifOptionsSchema.safeParse(options).success;
80
- var isFormatKeepOptions = (options) => formatKeepOptionsSchema.safeParse(options).success;
81
- var isFormatOptions = (options) => formatOptionsSchema.safeParse(options).success;
82
- async function format(input, typeOrOptions, options) {
83
- const sharpInstance = sharp(input);
84
- if (typeof typeOrOptions !== "string") return Outcome.makeSuccess(await sharpInstance.resize(typeOrOptions).toBuffer());
85
- const type = typeOrOptions;
86
- if (type === "jpg" || type === "jpeg") return Outcome.makeSuccess(await sharpInstance.resize(options).jpeg(options).toBuffer());
87
- if (type === "png") return Outcome.makeSuccess(await sharpInstance.resize(options).png(options).toBuffer());
88
- if (type === "webp") return Outcome.makeSuccess(await sharpInstance.resize(options).webp(options).toBuffer());
89
- if (type === "avif") return Outcome.makeSuccess(await sharpInstance.resize(options).avif(options).toBuffer());
90
- if (type === "tiff") return Outcome.makeSuccess(await sharpInstance.resize(options).tiff(options).toBuffer());
91
- if (type === "heif") return Outcome.makeSuccess(await sharpInstance.resize(options).heif(options).toBuffer());
92
- return Outcome.makeFailure(`Invalid image format: ${type}`);
93
- }
94
- var toWidth = async (input, width) => sharp(input).resize({ width }).toBuffer();
95
- var toHeight = async (input, height) => sharp(input).resize({ height }).toBuffer();
96
- var toJpg = async (input, quality) => sharp(input).jpeg({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
97
- var toPng = async (input, quality, compressionLevel) => sharp(input).png({ quality: clamp(quality ?? 100, 1, 100), compressionLevel }).toBuffer();
98
- var toWebp = async (input, quality) => sharp(input).webp({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
99
- var toAvif = async (input, quality) => sharp(input).avif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
100
- var toTiff = async (input, quality, compression) => sharp(input).tiff({ quality: clamp(quality ?? 100, 1, 100), compression }).toBuffer();
101
- var toHeif = async (input, quality) => sharp(input).heif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
102
-
103
- export {
104
- isFormatCommonOptions,
105
- isFormatJpgOptions,
106
- isFormatPngOptions,
107
- isFormatWebpOptions,
108
- isFormatAvifOptions,
109
- isFormatTiffOptions,
110
- isFormatHeifOptions,
111
- isFormatKeepOptions,
112
- isFormatOptions,
113
- format,
114
- toWidth,
115
- toHeight,
116
- toJpg,
117
- toPng,
118
- toWebp,
119
- toAvif,
120
- toTiff,
121
- toHeif,
122
- format_exports
123
- };
@@ -1,10 +0,0 @@
1
- // src/agnostic/colors/hex-to-rgb/index.ts
2
- function HEXToRGB(hexColor) {
3
- hexColor = hexColor.replace("#", "");
4
- const r = Math.max(0, Math.min(255, parseInt(hexColor.substring(0, 2), 16))), g = Math.max(0, Math.min(255, parseInt(hexColor.substring(2, 4), 16))), b = Math.max(0, Math.min(255, parseInt(hexColor.substring(4, 6), 16)));
5
- return [r, g, b];
6
- }
7
-
8
- export {
9
- HEXToRGB
10
- };
@@ -1,112 +0,0 @@
1
- import {
2
- isSharpColor
3
- } from "./chunk-MFYNJMVM.js";
4
- import {
5
- zod_default
6
- } from "./chunk-DZ2T5DTY.js";
7
- import {
8
- Outcome
9
- } from "./chunk-JMU5PDBD.js";
10
-
11
- // src/node/images/transform/operations/composite/index.ts
12
- var isSharpCreate = zod_default.object({
13
- create: zod_default.object({
14
- width: zod_default.number(),
15
- height: zod_default.number(),
16
- channels: zod_default.literal(3).or(zod_default.literal(4)),
17
- background: zod_default.custom((val) => isSharpColor(val))
18
- })
19
- });
20
- var isSharpText = zod_default.object({
21
- text: zod_default.object({
22
- text: zod_default.string(),
23
- font: zod_default.string().optional(),
24
- fontfile: zod_default.string().optional(),
25
- width: zod_default.number(),
26
- height: zod_default.number(),
27
- align: zod_default.enum(["left", "center", "right"]).optional(),
28
- justify: zod_default.boolean().optional(),
29
- dpi: zod_default.number().optional(),
30
- rgba: zod_default.boolean().optional(),
31
- spacing: zod_default.number().optional()
32
- })
33
- });
34
- var isSharpCreateRaw = zod_default.object({
35
- raw: zod_default.object({
36
- width: zod_default.number(),
37
- height: zod_default.number(),
38
- channels: zod_default.literal(3).or(zod_default.literal(4)),
39
- data: zod_default.instanceof(Buffer),
40
- animated: zod_default.boolean().optional()
41
- })
42
- });
43
- function isCompositeOperationParams(obj) {
44
- const schema = zod_default.object({
45
- composite: zod_default.array(zod_default.object({
46
- input: zod_default.union([
47
- zod_default.string(),
48
- zod_default.instanceof(Buffer),
49
- isSharpCreate,
50
- isSharpText,
51
- isSharpCreateRaw
52
- ]),
53
- top: zod_default.number().optional(),
54
- left: zod_default.number().optional(),
55
- blend: zod_default.enum([
56
- "clear",
57
- "source",
58
- "over",
59
- "in",
60
- "out",
61
- "atop",
62
- "dest",
63
- "dest-over",
64
- "dest-in",
65
- "dest-out",
66
- "dest-atop",
67
- "xor",
68
- "add",
69
- "saturate",
70
- "multiply",
71
- "screen",
72
- "overlay",
73
- "darken",
74
- "lighten",
75
- "color-dodge",
76
- "colour-dodge",
77
- "color-burn",
78
- "colour-burn",
79
- "hard-light",
80
- "soft-light",
81
- "difference",
82
- "exclusion"
83
- ]).optional(),
84
- tile: zod_default.boolean().optional(),
85
- gravity: zod_default.enum([
86
- "north",
87
- "northeast",
88
- "east",
89
- "southeast",
90
- "south",
91
- "southwest",
92
- "west",
93
- "northwest",
94
- "center",
95
- "centre"
96
- ]).optional(),
97
- premultiplied: zod_default.boolean().optional(),
98
- density: zod_default.number().optional()
99
- }))
100
- });
101
- const result = schema.safeParse(obj);
102
- if (!result.success) return Outcome.makeFailure(result.error.message);
103
- return Outcome.makeSuccess(result.data);
104
- }
105
- async function composite(sharpInstance, params) {
106
- return sharpInstance.composite(params.composite);
107
- }
108
-
109
- export {
110
- isCompositeOperationParams,
111
- composite
112
- };
@@ -1,23 +0,0 @@
1
- import {
2
- HSLToRGB
3
- } from "./chunk-QLC3A6PC.js";
4
- import {
5
- RGBToHSL
6
- } from "./chunk-YVLJKJV2.js";
7
-
8
- // src/agnostic/colors/saturate-color/index.ts
9
- function saturateColor(color, intensity = 20) {
10
- const [h, s, l] = RGBToHSL(color);
11
- const rgb = HSLToRGB([h, Math.min(100, s + intensity), l]);
12
- return rgb;
13
- }
14
- function setColorSaturation(color, intensity = 20) {
15
- const [h, s, l] = RGBToHSL(color);
16
- const rgb = HSLToRGB([h, Math.min(100, intensity), l]);
17
- return rgb;
18
- }
19
-
20
- export {
21
- saturateColor,
22
- setColorSaturation
23
- };
@@ -1,18 +0,0 @@
1
- import {
2
- zod_default
3
- } from "./chunk-DZ2T5DTY.js";
4
-
5
- // src/node/images/transform/utils/index.ts
6
- function isSharpColor(obj) {
7
- if (typeof obj === "string") return true;
8
- return zod_default.object({
9
- r: zod_default.number().optional(),
10
- g: zod_default.number().optional(),
11
- b: zod_default.number().optional(),
12
- alpha: zod_default.number().optional()
13
- }).safeParse(obj).success;
14
- }
15
-
16
- export {
17
- isSharpColor
18
- };
@@ -1,20 +0,0 @@
1
- import {
2
- __export
3
- } from "./chunk-WSFCRVEQ.js";
4
-
5
- // src/node/images/get-metadata/index.ts
6
- var get_metadata_exports = {};
7
- __export(get_metadata_exports, {
8
- getMetadata: () => getMetadata
9
- });
10
- import { Buffer } from "node:buffer";
11
- import sharp from "sharp";
12
- async function getMetadata(imageInput) {
13
- const sharpInstance = Buffer.isBuffer(imageInput) ? sharp(imageInput) : imageInput;
14
- return sharpInstance.metadata();
15
- }
16
-
17
- export {
18
- getMetadata,
19
- get_metadata_exports
20
- };
@@ -1,17 +0,0 @@
1
- // src/agnostic/colors/hsl-to-rgb/index.ts
2
- function HSLToRGB(color) {
3
- const h = color[0];
4
- const s = color[1] / 100;
5
- const l = color[2] / 100;
6
- const k = (n) => (n + h / 30) % 12;
7
- const a = s * Math.min(l, 1 - l);
8
- const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
9
- const r = Math.round(255 * f(0));
10
- const g = Math.round(255 * f(8));
11
- const b = Math.round(255 * f(4));
12
- return [r, g, b];
13
- }
14
-
15
- export {
16
- HSLToRGB
17
- };
@@ -1,23 +0,0 @@
1
- import {
2
- HSLToRGB
3
- } from "./chunk-QLC3A6PC.js";
4
- import {
5
- RGBToHSL
6
- } from "./chunk-YVLJKJV2.js";
7
-
8
- // src/agnostic/colors/lighten-color/index.ts
9
- function lightenColor(color, intensity = 20) {
10
- const [h, s, l] = RGBToHSL(color);
11
- const rgb = HSLToRGB([h, s, Math.min(100, l + intensity)]);
12
- return rgb;
13
- }
14
- function setColorLuminance(color, intensity = 20) {
15
- const [h, s] = RGBToHSL(color);
16
- const rgb = HSLToRGB([h, s, Math.min(100, intensity)]);
17
- return rgb;
18
- }
19
-
20
- export {
21
- lightenColor,
22
- setColorLuminance
23
- };
@@ -1,17 +0,0 @@
1
- // src/agnostic/colors/rgb-to-hsl/index.ts
2
- function RGBToHSL(color) {
3
- const r = color[0] / 255;
4
- const g = color[1] / 255;
5
- const b = color[2] / 255;
6
- const l = Math.max(r, g, b);
7
- const s = l - Math.min(r, g, b);
8
- const h = s ? l === r ? (g - b) / s : l === g ? 2 + (b - r) / s : 4 + (r - g) / s : 0;
9
- const outputH = 60 * h < 0 ? 60 * h + 360 : 60 * h;
10
- const outputS = 100 * (s ? l <= 0.5 ? s / (2 * l - s) : s / (2 - (2 * l - s)) : 0);
11
- const outputL = 100 * (2 * l - s) / 2;
12
- return [outputH, outputS, outputL];
13
- }
14
-
15
- export {
16
- RGBToHSL
17
- };
@@ -1,4 +0,0 @@
1
- import { Buffer } from 'node:buffer';
2
- import sharp from 'sharp';
3
- export declare function getMetadata(imageInput: Buffer): Promise<sharp.Metadata>;
4
- export declare function getMetadata(imageInput: sharp.Sharp): Promise<sharp.Metadata>;
@@ -1,7 +0,0 @@
1
- import {
2
- getMetadata
3
- } from "../../../chunks/chunk-NYVARFI7.js";
4
- import "../../../chunks/chunk-WSFCRVEQ.js";
5
- export {
6
- getMetadata
7
- };
@@ -1,7 +0,0 @@
1
- import sharp from 'sharp';
2
- import { Outcome } from '../../../../../agnostic/misc/outcome/index.js';
3
- export type CompositeOperationParams = {
4
- composite: sharp.OverlayOptions[];
5
- };
6
- export declare function isCompositeOperationParams(obj: unknown): Outcome.Either<CompositeOperationParams, string>;
7
- export declare function composite(sharpInstance: sharp.Sharp, params: CompositeOperationParams): Promise<sharp.Sharp>;
@@ -1,12 +0,0 @@
1
- import {
2
- composite,
3
- isCompositeOperationParams
4
- } from "../../../../../chunks/chunk-IFQA5PWI.js";
5
- import "../../../../../chunks/chunk-MFYNJMVM.js";
6
- import "../../../../../chunks/chunk-DZ2T5DTY.js";
7
- import "../../../../../chunks/chunk-JMU5PDBD.js";
8
- import "../../../../../chunks/chunk-WSFCRVEQ.js";
9
- export {
10
- composite,
11
- isCompositeOperationParams
12
- };
@@ -1,2 +0,0 @@
1
- import sharp from 'sharp';
2
- export declare function isSharpColor(obj: unknown): obj is sharp.Color;
@@ -1,8 +0,0 @@
1
- import {
2
- isSharpColor
3
- } from "../../../../chunks/chunk-MFYNJMVM.js";
4
- import "../../../../chunks/chunk-DZ2T5DTY.js";
5
- import "../../../../chunks/chunk-WSFCRVEQ.js";
6
- export {
7
- isSharpColor
8
- };
@@ -1,9 +1,9 @@
1
- import {
2
- Register
3
- } from "./chunk-QHLQVR3E.js";
4
1
  import {
5
2
  unknownToString
6
3
  } from "./chunk-FENXVJYO.js";
4
+ import {
5
+ Register
6
+ } from "./chunk-QHLQVR3E.js";
7
7
 
8
8
  // src/agnostic/errors/index.ts
9
9
  var Errors;