@design-edito/tools 0.2.15 → 0.2.17

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 (264) hide show
  1. package/agnostic/arrays/index.js +8 -8
  2. package/agnostic/arrays/random-pick/index.js +4 -4
  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 +12 -12
  31. package/agnostic/css/styles-set/index.js +6 -6
  32. package/agnostic/html/hyper-json/cast/index.js +7 -7
  33. package/agnostic/html/hyper-json/index.js +8 -8
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +7 -7
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +7 -7
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +7 -7
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +7 -7
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +7 -7
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +7 -7
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +7 -7
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +7 -7
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +7 -7
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +7 -7
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +7 -7
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +7 -7
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +7 -7
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +7 -7
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +7 -7
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +7 -7
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +7 -7
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +7 -7
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +7 -7
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +7 -7
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +7 -7
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +7 -7
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +7 -7
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +7 -7
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +7 -7
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +7 -7
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +7 -7
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +7 -7
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +7 -7
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +7 -7
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +7 -7
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +7 -7
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +7 -7
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +7 -7
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +7 -7
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +7 -7
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +7 -7
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +7 -7
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +7 -7
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +7 -7
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +7 -7
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +7 -7
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +7 -7
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +7 -7
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +7 -7
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +7 -7
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +7 -7
  81. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +7 -7
  82. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +7 -7
  83. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +7 -7
  84. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +7 -7
  85. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +7 -7
  86. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +7 -7
  87. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +7 -7
  88. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +7 -7
  89. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +7 -7
  90. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +7 -7
  91. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +7 -7
  92. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +7 -7
  93. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +7 -7
  94. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +7 -7
  95. package/agnostic/html/hyper-json/tree/index.js +7 -7
  96. package/agnostic/html/hyper-json/utils/index.js +7 -7
  97. package/agnostic/html/index.js +21 -21
  98. package/agnostic/html/sanitize/index.js +4 -4
  99. package/agnostic/html/selector-to-element/index.js +4 -4
  100. package/agnostic/html/string-to-nodes/index.js +5 -5
  101. package/agnostic/index.d.ts +1 -1
  102. package/agnostic/misc/crossenv/index.js +2 -2
  103. package/agnostic/misc/index.js +27 -27
  104. package/agnostic/misc/logs/index.js +2 -2
  105. package/agnostic/misc/lorem-ipsum/index.js +11 -11
  106. package/agnostic/numbers/index.js +9 -9
  107. package/agnostic/objects/index.js +8 -8
  108. package/agnostic/random/index.js +2 -2
  109. package/agnostic/strings/index.js +7 -7
  110. package/agnostic/time/index.js +6 -6
  111. package/chunks/chunk-2EHYEUX4.js +21 -0
  112. package/chunks/chunk-5LK2YLTK.js +21 -0
  113. package/chunks/chunk-65NTXENV.js +157 -0
  114. package/chunks/chunk-ALMK24GK.js +0 -0
  115. package/chunks/{chunk-B446JIN3.js → chunk-AQBJ6HNB.js} +1 -1
  116. package/chunks/chunk-BKIF2ELV.js +47 -0
  117. package/chunks/chunk-D7SXHHU3.js +47 -0
  118. package/chunks/chunk-GUBFCOBT.js +98 -0
  119. package/chunks/{chunk-XDITZ5QN.js → chunk-HONCMQHQ.js} +2 -2
  120. package/chunks/{chunk-YIZODJC7.js → chunk-IAOZM4EN.js} +5 -5
  121. package/chunks/chunk-IDXUS2IO.js +296 -0
  122. package/chunks/chunk-ISUDTAMN.js +101 -0
  123. package/chunks/{chunk-GVQVGFAA.js → chunk-J4WGYUFY.js} +4 -4
  124. package/chunks/{chunk-Q6DUKZU6.js → chunk-JJ7DN7NN.js} +7 -7
  125. package/chunks/{chunk-EDJ3TVNV.js → chunk-KDOMQ4LM.js} +15 -6
  126. package/chunks/{chunk-TSZAQ3RQ.js → chunk-L5VJAZVW.js} +90 -91
  127. package/chunks/chunk-MN4FVOU2.js +28 -0
  128. package/chunks/{chunk-IOJTC6CN.js → chunk-O7VEAOGY.js} +22 -22
  129. package/chunks/{chunk-2M33FCDG.js → chunk-O7VFJHQX.js} +11 -5
  130. package/chunks/chunk-P4YT4RBG.js +51 -0
  131. package/chunks/{chunk-2UAVBQI5.js → chunk-QJXJT5JS.js} +4 -4
  132. package/chunks/{chunk-FQ4UTWMP.js → chunk-QTA7ZEVX.js} +3 -1
  133. package/chunks/chunk-QW34TQCS.js +48 -0
  134. package/chunks/{chunk-HMAK6VAF.js → chunk-RBCZWVQH.js} +11 -5
  135. package/chunks/{chunk-IWDIKDYR.js → chunk-RBH5MYJ7.js} +17 -17
  136. package/chunks/{chunk-AI6AGF4I.js → chunk-S7637BQZ.js} +8 -5
  137. package/chunks/{chunk-SA2IY5LN.js → chunk-SKBOSWM2.js} +1 -1
  138. package/chunks/{chunk-CYUEPBUN.js → chunk-STW5RKR7.js} +2 -2
  139. package/chunks/{chunk-CHUOCTRP.js → chunk-TIER4TF4.js} +1 -1
  140. package/chunks/chunk-UG5EMKGN.js +265 -0
  141. package/chunks/chunk-VA67YLZL.js +26 -0
  142. package/chunks/chunk-XAYMIITK.js +103 -0
  143. package/chunks/{chunk-JWF5EKM2.js → chunk-XB3EGDBI.js} +1 -1
  144. package/chunks/chunk-YZVZKBVJ.js +631 -0
  145. package/chunks/{chunk-36CTYZYA.js → chunk-ZBBU2P4D.js} +2 -2
  146. package/chunks/chunk-ZJ63OCMA.js +207 -0
  147. package/node/@aws-s3/index.js +9 -9
  148. package/node/@aws-s3/storage/directory/index.js +7 -7
  149. package/node/@aws-s3/storage/file/index.js +13 -13
  150. package/node/@aws-s3/storage/index.js +11 -11
  151. package/node/@google-cloud/index.js +14 -14
  152. package/node/@google-cloud/storage/bucket/index.js +4 -4
  153. package/node/@google-cloud/storage/directory/index.js +7 -7
  154. package/node/@google-cloud/storage/file/index.js +18 -18
  155. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
  156. package/node/@google-cloud/storage/index.js +16 -16
  157. package/node/cloud-storage/index.js +41 -41
  158. package/node/cloud-storage/operations/copy-dir/index.js +2 -2
  159. package/node/cloud-storage/operations/copy-file/index.js +2 -2
  160. package/node/cloud-storage/operations/download-file/index.js +2 -2
  161. package/node/cloud-storage/operations/exists-file/index.js +2 -2
  162. package/node/cloud-storage/operations/index.js +53 -53
  163. package/node/cloud-storage/operations/list-dir/index.js +2 -2
  164. package/node/cloud-storage/operations/move-dir/index.js +2 -2
  165. package/node/cloud-storage/operations/move-file/index.js +2 -2
  166. package/node/cloud-storage/operations/remove-dir/index.js +2 -2
  167. package/node/cloud-storage/operations/remove-file/index.js +2 -2
  168. package/node/cloud-storage/operations/stat-file/index.js +2 -2
  169. package/node/cloud-storage/operations/upload-file/index.js +2 -2
  170. package/node/encryption/index.js +3 -3
  171. package/node/ftps/directory/index.js +7 -7
  172. package/node/ftps/file/index.js +13 -13
  173. package/node/ftps/index.js +10 -10
  174. package/node/images/create/index.d.ts +3 -0
  175. package/node/images/create/index.js +23 -0
  176. package/node/images/format/index.d.ts +17 -51
  177. package/node/images/format/index.js +30 -4
  178. package/node/images/index.d.ts +4 -2
  179. package/node/images/index.js +41 -21
  180. package/node/images/metadata/index.d.ts +3 -0
  181. package/node/images/metadata/index.js +23 -0
  182. package/node/images/transform/index.d.ts +2 -97
  183. package/node/images/transform/index.js +27 -16
  184. package/node/images/transform/operations/blur/index.d.ts +1 -3
  185. package/node/images/transform/operations/brighten/index.d.ts +1 -3
  186. package/node/images/transform/operations/extend/index.d.ts +1 -8
  187. package/node/images/transform/operations/extend/index.js +17 -2
  188. package/node/images/transform/operations/extract/index.d.ts +1 -6
  189. package/node/images/transform/operations/flatten/index.d.ts +1 -3
  190. package/node/images/transform/operations/flatten/index.js +17 -2
  191. package/node/images/transform/operations/hue/index.d.ts +1 -3
  192. package/node/images/transform/operations/level/index.d.ts +1 -4
  193. package/node/images/transform/operations/lighten/index.d.ts +1 -3
  194. package/node/images/transform/operations/normalize/index.d.ts +1 -4
  195. package/node/images/transform/operations/overlay/index.d.ts +5 -0
  196. package/node/images/transform/operations/overlay/index.js +27 -0
  197. package/node/images/transform/operations/resize/index.d.ts +1 -11
  198. package/node/images/transform/operations/resize/index.js +17 -2
  199. package/node/images/transform/operations/rotate/index.d.ts +1 -4
  200. package/node/images/transform/operations/rotate/index.js +17 -2
  201. package/node/images/transform/operations/saturate/index.d.ts +1 -3
  202. package/node/images/transform/operations/saturate/index.js +1 -1
  203. package/node/images/types.d.ts +252 -0
  204. package/node/images/utils/index.d.ts +7 -0
  205. package/node/images/utils/index.js +28 -0
  206. package/node/sftp/directory/index.js +7 -7
  207. package/node/sftp/file/index.js +13 -13
  208. package/node/sftp/index.js +10 -10
  209. package/package.json +1 -1
  210. package/agnostic/colors/complement-color/index.d.ts +0 -1
  211. package/agnostic/colors/complement-color/index.js +0 -7
  212. package/agnostic/colors/hex-to-rgb/index.d.ts +0 -1
  213. package/agnostic/colors/hex-to-rgb/index.js +0 -7
  214. package/agnostic/colors/hsl-to-rgb/index.d.ts +0 -1
  215. package/agnostic/colors/hsl-to-rgb/index.js +0 -7
  216. package/agnostic/colors/lighten-color/index.d.ts +0 -2
  217. package/agnostic/colors/lighten-color/index.js +0 -11
  218. package/agnostic/colors/rgb-to-hex/index.d.ts +0 -1
  219. package/agnostic/colors/rgb-to-hex/index.js +0 -7
  220. package/agnostic/colors/rgb-to-hsl/index.d.ts +0 -1
  221. package/agnostic/colors/rgb-to-hsl/index.js +0 -7
  222. package/agnostic/colors/saturate-color/index.d.ts +0 -2
  223. package/agnostic/colors/saturate-color/index.js +0 -11
  224. package/chunks/chunk-2POD3TAX.js +0 -11
  225. package/chunks/chunk-2TJCB6IM.js +0 -12
  226. package/chunks/chunk-7EDDWSWS.js +0 -123
  227. package/chunks/chunk-FAXNZG5C.js +0 -10
  228. package/chunks/chunk-IFQA5PWI.js +0 -112
  229. package/chunks/chunk-MB7HWF22.js +0 -23
  230. package/chunks/chunk-MFYNJMVM.js +0 -18
  231. package/chunks/chunk-NYVARFI7.js +0 -20
  232. package/chunks/chunk-QLC3A6PC.js +0 -17
  233. package/chunks/chunk-U57Q62IN.js +0 -23
  234. package/chunks/chunk-YVLJKJV2.js +0 -17
  235. package/node/images/get-metadata/index.d.ts +0 -4
  236. package/node/images/get-metadata/index.js +0 -7
  237. package/node/images/transform/operations/composite/index.d.ts +0 -7
  238. package/node/images/transform/operations/composite/index.js +0 -12
  239. package/node/images/transform/utils/index.d.ts +0 -2
  240. package/node/images/transform/utils/index.js +0 -8
  241. package/chunks/{chunk-LAVXHKKR.js → chunk-2DW5MV3U.js} +12 -12
  242. package/chunks/{chunk-QCMBG5LN.js → chunk-7SZXDQVJ.js} +16 -16
  243. package/chunks/{chunk-74CFPDKM.js → chunk-A7K5DUP7.js} +6 -6
  244. package/chunks/{chunk-DEQWCMAL.js → chunk-ASCJDM27.js} +12 -12
  245. package/chunks/{chunk-646R6BQZ.js → chunk-CGITTQIW.js} +3 -3
  246. package/chunks/{chunk-7KSMK42F.js → chunk-CNMP2GU4.js} +6 -6
  247. package/chunks/{chunk-EOTOFHUR.js → chunk-D7PZ7633.js} +3 -3
  248. package/chunks/{chunk-UFKH5WD2.js → chunk-FR5H2OCV.js} +3 -3
  249. package/chunks/{chunk-FS6LRTDK.js → chunk-HX5PHI2P.js} +3 -3
  250. package/chunks/{chunk-CA3UPHYO.js → chunk-JNQPNZTB.js} +3 -3
  251. package/chunks/{chunk-G5RRNREY.js → chunk-LSZVKXDZ.js} +3 -3
  252. package/chunks/{chunk-MJQF3YZO.js → chunk-QN3UAKIU.js} +3 -3
  253. package/chunks/{chunk-DPQRXSZH.js → chunk-RXBMGIPJ.js} +3 -3
  254. package/chunks/{chunk-OVG5RGI3.js → chunk-S32K7POB.js} +4 -4
  255. package/chunks/{chunk-Y4THX4AN.js → chunk-TFZOOTCF.js} +3 -3
  256. package/chunks/{chunk-UXEKCYL7.js → chunk-UEAMPAHK.js} +3 -3
  257. package/chunks/{chunk-24ZUWYIR.js → chunk-UX2O74SG.js} +3 -3
  258. package/chunks/{chunk-AIC5YAJU.js → chunk-X5F6XGEP.js} +6 -6
  259. package/chunks/{chunk-JSW6R3ZH.js → chunk-X5VXP4GS.js} +12 -12
  260. package/chunks/{chunk-OA7Y2A5T.js → chunk-XNWEMAIP.js} +3 -3
  261. package/chunks/{chunk-UK4HNSEJ.js → chunk-YVWQXQTE.js} +3 -3
  262. package/chunks/{chunk-4OK2UH4M.js → chunk-ZBAKY6DB.js} +6 -6
  263. package/chunks/{chunk-6NLNUGBI.js → chunk-ZQY2MR66.js} +3 -3
  264. package/chunks/{chunk-NOLQR5RW.js → chunk-ZUQEHFGL.js} +3 -3
@@ -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,24 +1,24 @@
1
- import {
2
- remove_exports
3
- } from "./chunk-WV5N7ESL.js";
4
- import {
5
- stat_exports
6
- } from "./chunk-VROZGPC5.js";
7
1
  import {
8
2
  upload_exports
9
3
  } from "./chunk-FD5WR2A5.js";
10
- import {
11
- download_exports
12
- } from "./chunk-IV75M3KE.js";
13
- import {
14
- copy_exports
15
- } from "./chunk-C6QTHDDM.js";
16
4
  import {
17
5
  exists_exports
18
6
  } from "./chunk-ZEZCYPLQ.js";
7
+ import {
8
+ download_exports
9
+ } from "./chunk-IV75M3KE.js";
19
10
  import {
20
11
  move_exports
21
12
  } from "./chunk-QWZ4ZNFA.js";
13
+ import {
14
+ remove_exports
15
+ } from "./chunk-WV5N7ESL.js";
16
+ import {
17
+ stat_exports
18
+ } from "./chunk-VROZGPC5.js";
19
+ import {
20
+ copy_exports
21
+ } from "./chunk-C6QTHDDM.js";
22
22
  import {
23
23
  __export
24
24
  } from "./chunk-WSFCRVEQ.js";
@@ -1,49 +1,49 @@
1
1
  import {
2
- array
3
- } from "./chunk-QAQZEKIF.js";
2
+ any
3
+ } from "./chunk-FHLCPVND.js";
4
4
  import {
5
5
  nullFunc
6
6
  } from "./chunk-QAVYONH6.js";
7
7
  import {
8
- Serialize
9
- } from "./chunk-SXRWMH3U.js";
8
+ array
9
+ } from "./chunk-QAQZEKIF.js";
10
10
  import {
11
11
  Types
12
12
  } from "./chunk-XEQ2PBT2.js";
13
- import {
14
- any
15
- } from "./chunk-FHLCPVND.js";
16
13
  import {
17
14
  SmartTags
18
15
  } from "./chunk-UT2J62LH.js";
19
- import {
20
- Transformer
21
- } from "./chunk-BKO7GLC2.js";
22
16
  import {
23
17
  insertNode
24
18
  } from "./chunk-XA4HVHJ4.js";
19
+ import {
20
+ Serialize
21
+ } from "./chunk-SXRWMH3U.js";
22
+ import {
23
+ Transformer
24
+ } from "./chunk-BKO7GLC2.js";
25
25
  import {
26
26
  Method
27
27
  } from "./chunk-RW7VAKJW.js";
28
+ import {
29
+ recordMap
30
+ } from "./chunk-XNF5MLCQ.js";
28
31
  import {
29
32
  isInEnum
30
33
  } from "./chunk-E6MSDKON.js";
31
34
  import {
32
35
  isRecord
33
36
  } from "./chunk-YDIBNEGA.js";
34
- import {
35
- recordMap
36
- } from "./chunk-XNF5MLCQ.js";
37
37
  import {
38
38
  replaceAll
39
39
  } from "./chunk-ZTDVUXPR.js";
40
- import {
41
- Outcome
42
- } from "./chunk-JMU5PDBD.js";
43
40
  import {
44
41
  trimEnd,
45
42
  trimStart
46
43
  } from "./chunk-6XL25OZX.js";
44
+ import {
45
+ Outcome
46
+ } from "./chunk-JMU5PDBD.js";
47
47
  import {
48
48
  Window
49
49
  } from "./chunk-RLJOYG64.js";
@@ -1,15 +1,15 @@
1
- import {
2
- remove_dir_exports
3
- } from "./chunk-5ZJ3KJPK.js";
4
- import {
5
- copy_dir_exports
6
- } from "./chunk-WAHPAZQS.js";
7
1
  import {
8
2
  list_exports
9
3
  } from "./chunk-UK2F7CWI.js";
10
4
  import {
11
5
  move_dir_exports
12
6
  } from "./chunk-RWO53U4X.js";
7
+ import {
8
+ remove_dir_exports
9
+ } from "./chunk-5ZJ3KJPK.js";
10
+ import {
11
+ copy_dir_exports
12
+ } from "./chunk-WAHPAZQS.js";
13
13
  import {
14
14
  __export
15
15
  } from "./chunk-WSFCRVEQ.js";
@@ -1,24 +1,24 @@
1
- import {
2
- remove_exports
3
- } from "./chunk-ANPXBD2G.js";
4
- import {
5
- stat_exports
6
- } from "./chunk-TGVYEQIA.js";
7
1
  import {
8
2
  upload_exports
9
3
  } from "./chunk-QDVDHFMZ.js";
10
- import {
11
- download_exports
12
- } from "./chunk-HWEGQVBQ.js";
13
- import {
14
- copy_exports
15
- } from "./chunk-QH64MYGA.js";
16
4
  import {
17
5
  exists_exports
18
6
  } from "./chunk-QVPS2BCJ.js";
7
+ import {
8
+ download_exports
9
+ } from "./chunk-HWEGQVBQ.js";
19
10
  import {
20
11
  move_exports
21
12
  } from "./chunk-FE4DECBU.js";
13
+ import {
14
+ remove_exports
15
+ } from "./chunk-ANPXBD2G.js";
16
+ import {
17
+ stat_exports
18
+ } from "./chunk-TGVYEQIA.js";
19
+ import {
20
+ copy_exports
21
+ } from "./chunk-QH64MYGA.js";
22
22
  import {
23
23
  __export
24
24
  } from "./chunk-WSFCRVEQ.js";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  move as move3
6
6
  } from "./chunk-QWZ4ZNFA.js";
7
- import {
8
- move as move2
9
- } from "./chunk-FE4DECBU.js";
10
7
  import {
11
8
  move
12
9
  } from "./chunk-HRNDUTZE.js";
10
+ import {
11
+ move as move2
12
+ } from "./chunk-FE4DECBU.js";
13
13
  import {
14
14
  isFtpClient,
15
15
  isGcsBucket,
@@ -1,15 +1,15 @@
1
- import {
2
- remove_dir_exports
3
- } from "./chunk-BSUQNHAM.js";
4
- import {
5
- copy_dir_exports
6
- } from "./chunk-N2T672IG.js";
7
1
  import {
8
2
  list_exports
9
3
  } from "./chunk-3CLGBOHN.js";
10
4
  import {
11
5
  move_dir_exports
12
6
  } from "./chunk-BE7OXZRK.js";
7
+ import {
8
+ remove_dir_exports
9
+ } from "./chunk-BSUQNHAM.js";
10
+ import {
11
+ copy_dir_exports
12
+ } from "./chunk-N2T672IG.js";
13
13
  import {
14
14
  __export
15
15
  } from "./chunk-WSFCRVEQ.js";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  download as download3
6
6
  } from "./chunk-IV75M3KE.js";
7
- import {
8
- download as download2
9
- } from "./chunk-HWEGQVBQ.js";
10
7
  import {
11
8
  download
12
9
  } from "./chunk-FF5NURFO.js";
10
+ import {
11
+ download as download2
12
+ } from "./chunk-HWEGQVBQ.js";
13
13
  import {
14
14
  isFtpClient,
15
15
  isGcsBucket,
@@ -1,12 +1,12 @@
1
- import {
2
- Window
3
- } from "./chunk-RLJOYG64.js";
4
1
  import {
5
2
  detectRuntime
6
3
  } from "./chunk-S2NMAH7K.js";
7
4
  import {
8
5
  Types
9
6
  } from "./chunk-LV2VMOWR.js";
7
+ import {
8
+ Window
9
+ } from "./chunk-RLJOYG64.js";
10
10
 
11
11
  // src/agnostic/misc/crossenv/index.ts
12
12
  var Crossenv;
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  moveDir as moveDir3
6
6
  } from "./chunk-ON6LC3HE.js";
7
- import {
8
- moveDir as moveDir2
9
- } from "./chunk-RWO53U4X.js";
10
7
  import {
11
8
  moveDir
12
9
  } from "./chunk-BE7OXZRK.js";
10
+ import {
11
+ moveDir as moveDir2
12
+ } from "./chunk-RWO53U4X.js";
13
13
  import {
14
14
  isFtpClient,
15
15
  isGcsBucket,
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  removeDir as removeDir3
6
6
  } from "./chunk-4XSDRT23.js";
7
- import {
8
- removeDir as removeDir2
9
- } from "./chunk-5ZJ3KJPK.js";
10
7
  import {
11
8
  removeDir
12
9
  } from "./chunk-BSUQNHAM.js";
10
+ import {
11
+ removeDir as removeDir2
12
+ } from "./chunk-5ZJ3KJPK.js";
13
13
  import {
14
14
  isFtpClient,
15
15
  isGcsBucket,
@@ -1,12 +1,12 @@
1
- import {
2
- remove
3
- } from "./chunk-7J7CYOXU.js";
4
1
  import {
5
2
  upload
6
3
  } from "./chunk-FB3GNE2B.js";
7
4
  import {
8
5
  download
9
6
  } from "./chunk-2JH4TCT2.js";
7
+ import {
8
+ remove
9
+ } from "./chunk-7J7CYOXU.js";
10
10
  import {
11
11
  Outcome
12
12
  } from "./chunk-JMU5PDBD.js";
@@ -1,9 +1,9 @@
1
- import {
2
- Logger
3
- } from "./chunk-RASMASS4.js";
4
1
  import {
5
2
  styles
6
3
  } from "./chunk-L3OCRR3V.js";
4
+ import {
5
+ Logger
6
+ } from "./chunk-RASMASS4.js";
7
7
  import {
8
8
  makeTextBlock
9
9
  } from "./chunk-H4PP6AHP.js";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  list as list3
6
6
  } from "./chunk-ZSUG52DO.js";
7
- import {
8
- list as list2
9
- } from "./chunk-UK2F7CWI.js";
10
7
  import {
11
8
  list
12
9
  } from "./chunk-3CLGBOHN.js";
10
+ import {
11
+ list as list2
12
+ } from "./chunk-UK2F7CWI.js";
13
13
  import {
14
14
  isFtpClient,
15
15
  isGcsBucket,
@@ -1,3 +1,7 @@
1
+ import {
2
+ random,
3
+ randomInt
4
+ } from "./chunk-D3ERTRDW.js";
1
5
  import {
2
6
  randomHash,
3
7
  randomHashPattern,
@@ -7,10 +11,6 @@ import {
7
11
  hexChars,
8
12
  randomHexChar
9
13
  } from "./chunk-OGBUSUE6.js";
10
- import {
11
- random,
12
- randomInt
13
- } from "./chunk-D3ERTRDW.js";
14
14
 
15
15
  // src/agnostic/random/index.ts
16
16
  var Random;
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  remove as remove3
6
6
  } from "./chunk-WV5N7ESL.js";
7
- import {
8
- remove as remove2
9
- } from "./chunk-ANPXBD2G.js";
10
7
  import {
11
8
  remove
12
9
  } from "./chunk-KJAEVOIW.js";
10
+ import {
11
+ remove as remove2
12
+ } from "./chunk-ANPXBD2G.js";
13
13
  import {
14
14
  isFtpClient,
15
15
  isGcsBucket,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  get_metadata_exports
3
3
  } from "./chunk-ZNA7SWFK.js";
4
- import {
5
- remove_dir_exports
6
- } from "./chunk-QLDN574K.js";
7
4
  import {
8
5
  list_exports
9
6
  } from "./chunk-37TRFYZT.js";
10
7
  import {
11
8
  move_dir_exports
12
9
  } from "./chunk-BWYH445G.js";
10
+ import {
11
+ remove_dir_exports
12
+ } from "./chunk-QLDN574K.js";
13
13
  import {
14
14
  __export
15
15
  } from "./chunk-WSFCRVEQ.js";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  exists as exists3
6
6
  } from "./chunk-ZEZCYPLQ.js";
7
- import {
8
- exists as exists2
9
- } from "./chunk-QVPS2BCJ.js";
10
7
  import {
11
8
  exists
12
9
  } from "./chunk-ZJTWDCNZ.js";
10
+ import {
11
+ exists as exists2
12
+ } from "./chunk-QVPS2BCJ.js";
13
13
  import {
14
14
  isFtpClient,
15
15
  isGcsBucket,