@design-edito/tools 0.2.0 → 0.2.1

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 (187) hide show
  1. package/agnostic/arrays/index.js +11 -11
  2. package/agnostic/arrays/random-pick/index.js +6 -6
  3. package/agnostic/colors/index.js +11 -11
  4. package/agnostic/colors/lighten-color/index.js +2 -2
  5. package/agnostic/colors/saturate-color/index.js +2 -2
  6. package/agnostic/css/index.js +10 -10
  7. package/agnostic/css/styles-set/index.js +6 -6
  8. package/agnostic/errors/index.js +2 -2
  9. package/agnostic/html/hyper-json/cast/index.js +5 -5
  10. package/agnostic/html/hyper-json/index.js +6 -6
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
  61. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
  62. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
  63. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
  64. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +5 -5
  65. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
  66. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
  67. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
  68. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
  69. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
  70. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
  71. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
  72. package/agnostic/html/hyper-json/tree/index.js +5 -5
  73. package/agnostic/html/hyper-json/utils/index.js +5 -5
  74. package/agnostic/html/index.js +17 -17
  75. package/agnostic/html/sanitize/index.js +6 -6
  76. package/agnostic/html/selector-to-element/index.js +6 -6
  77. package/agnostic/html/string-to-nodes/index.js +7 -7
  78. package/agnostic/misc/assert/index.js +3 -3
  79. package/agnostic/misc/crossenv/index.js +2 -2
  80. package/agnostic/misc/index.js +21 -21
  81. package/agnostic/misc/lorem-ipsum/index.js +13 -13
  82. package/agnostic/numbers/index.js +3 -3
  83. package/agnostic/objects/index.js +3 -3
  84. package/agnostic/strings/index.js +12 -12
  85. package/agnostic/time/index.js +5 -5
  86. package/chunks/chunk-2FC5KUMS.js +18 -0
  87. package/chunks/chunk-2HU2AWWJ.js +35 -0
  88. package/chunks/chunk-3SRJYILO.js +31 -0
  89. package/chunks/chunk-3YW3KBO5.js +18 -0
  90. package/chunks/chunk-4UV3XIGE.js +18 -0
  91. package/chunks/chunk-5JX7EWIW.js +21 -0
  92. package/chunks/chunk-6T7A6ZNA.js +40 -0
  93. package/chunks/chunk-6Z6GDMOR.js +28 -0
  94. package/chunks/chunk-7NOLNBF6.js +19 -0
  95. package/chunks/chunk-BTAPMJXX.js +37 -0
  96. package/chunks/chunk-CJL2V4VT.js +37 -0
  97. package/chunks/chunk-DEQWCMAL.js +40 -0
  98. package/chunks/chunk-E5VEMHHS.js +56 -0
  99. package/chunks/chunk-FORJXSIW.js +43 -0
  100. package/chunks/chunk-FOXX52QA.js +2456 -0
  101. package/chunks/chunk-GVGPJLS7.js +191 -0
  102. package/chunks/chunk-INGSSBWK.js +40 -0
  103. package/chunks/chunk-IWDIKDYR.js +60 -0
  104. package/chunks/chunk-IWZAUQGO.js +40 -0
  105. package/chunks/chunk-J4C3U3MK.js +24 -0
  106. package/chunks/chunk-J7JWEDGE.js +31 -0
  107. package/chunks/chunk-JSW6R3ZH.js +40 -0
  108. package/chunks/chunk-KBFSUJ57.js +40 -0
  109. package/chunks/chunk-KZKHIPWQ.js +24 -0
  110. package/chunks/chunk-MAOVZE34.js +20 -0
  111. package/chunks/chunk-MMGAJ7EW.js +26 -0
  112. package/chunks/chunk-MRIVEZFA.js +20 -0
  113. package/chunks/chunk-MROXW73J.js +168 -0
  114. package/chunks/chunk-MTT7TVR3.js +127 -0
  115. package/chunks/chunk-MW3KNVTG.js +29 -0
  116. package/chunks/chunk-NUGVP2MM.js +191 -0
  117. package/chunks/chunk-NYVARFI7.js +20 -0
  118. package/chunks/chunk-ODDE3NBH.js +24 -0
  119. package/chunks/chunk-PJFSPYPO.js +16 -0
  120. package/chunks/chunk-QPG45V6W.js +56 -0
  121. package/chunks/chunk-R765J7H2.js +114 -0
  122. package/chunks/chunk-S6S6O3VI.js +168 -0
  123. package/chunks/chunk-T3D55RRI.js +22 -0
  124. package/chunks/chunk-UFKH5WD2.js +21 -0
  125. package/chunks/chunk-UODICVLG.js +173 -0
  126. package/chunks/chunk-UPSIFUMS.js +18 -0
  127. package/chunks/chunk-VCAG4DZP.js +2456 -0
  128. package/chunks/chunk-VTDLFWOD.js +21 -0
  129. package/chunks/chunk-WC2LQPQP.js +26 -0
  130. package/chunks/chunk-WNDMYNDU.js +8 -0
  131. package/chunks/chunk-X7KWB2VQ.js +21 -0
  132. package/chunks/chunk-XYVNT74Y.js +60 -0
  133. package/chunks/chunk-YA2YCZUF.js +8 -0
  134. package/chunks/chunk-YTGB73UX.js +16 -0
  135. package/node/@aws-s3/index.js +6 -6
  136. package/node/@aws-s3/storage/file/index.js +4 -4
  137. package/node/@aws-s3/storage/index.js +6 -6
  138. package/node/@google-cloud/index.js +9 -9
  139. package/node/@google-cloud/storage/file/index.js +10 -10
  140. package/node/@google-cloud/storage/index.js +11 -11
  141. package/node/cloud-storage/index.js +24 -24
  142. package/node/cloud-storage/operations/index.js +31 -31
  143. package/node/encryption/index.js +3 -3
  144. package/node/files/index.js +3 -3
  145. package/node/ftps/file/index.js +4 -4
  146. package/node/ftps/index.js +5 -5
  147. package/node/images/format/index.d.ts +0 -7
  148. package/node/images/format/index.js +1 -3
  149. package/node/images/get-metadata/index.d.ts +4 -0
  150. package/node/images/get-metadata/index.js +7 -0
  151. package/node/images/index.d.ts +3 -3
  152. package/node/images/index.js +22 -48
  153. package/node/images/transform/index.d.ts +74 -23
  154. package/node/images/transform/index.js +20 -48
  155. package/node/images/transform/operations/blur/index.d.ts +6 -0
  156. package/node/images/transform/operations/blur/index.js +10 -0
  157. package/node/images/transform/operations/brighten/index.d.ts +6 -0
  158. package/node/images/transform/operations/brighten/index.js +10 -0
  159. package/node/images/transform/operations/extend/index.d.ts +11 -0
  160. package/node/images/transform/operations/extend/index.js +11 -0
  161. package/node/images/transform/operations/extract/index.d.ts +9 -0
  162. package/node/images/transform/operations/extract/index.js +10 -0
  163. package/node/images/transform/operations/flatten/index.d.ts +6 -0
  164. package/node/images/transform/operations/flatten/index.js +11 -0
  165. package/node/images/transform/operations/flip/index.d.ts +2 -0
  166. package/node/images/transform/operations/flip/index.js +7 -0
  167. package/node/images/transform/operations/flop/index.d.ts +2 -0
  168. package/node/images/transform/operations/flop/index.js +7 -0
  169. package/node/images/transform/operations/hue/index.d.ts +6 -0
  170. package/node/images/transform/operations/hue/index.js +10 -0
  171. package/node/images/transform/operations/level/index.d.ts +7 -0
  172. package/node/images/transform/operations/level/index.js +10 -0
  173. package/node/images/transform/operations/lighten/index.d.ts +6 -0
  174. package/node/images/transform/operations/lighten/index.js +10 -0
  175. package/node/images/transform/operations/normalize/index.d.ts +7 -0
  176. package/node/images/transform/operations/normalize/index.js +10 -0
  177. package/node/images/transform/operations/resize/index.d.ts +14 -0
  178. package/node/images/transform/operations/resize/index.js +11 -0
  179. package/node/images/transform/operations/rotate/index.d.ts +7 -0
  180. package/node/images/transform/operations/rotate/index.js +11 -0
  181. package/node/images/transform/operations/saturate/index.d.ts +6 -0
  182. package/node/images/transform/operations/saturate/index.js +10 -0
  183. package/node/images/transform/utils/index.d.ts +2 -0
  184. package/node/images/transform/utils/index.js +8 -0
  185. package/node/sftp/file/index.js +4 -4
  186. package/node/sftp/index.js +5 -5
  187. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ import {
2
+ register
3
+ } from "./chunk-WC2LQPQP.js";
4
+
5
+ // src/agnostic/html/selector-to-element/index.ts
6
+ function selectorToElement(selector, documentObj) {
7
+ const actualDocument = documentObj ?? window.document;
8
+ if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "The optional second parameter expects a Document object");
9
+ const tagRegexp = /^[A-Za-z]+/;
10
+ const idRegexp = /#[A-Za-z]+[\w\-\:]*/;
11
+ const classRegexp = /\.[A-Za-z]+[\w\-]*/;
12
+ const attributeRegexp = /\[[A-Za-z]+[\w\-]*(="[\w\-]+")?\]/;
13
+ const matchedTags = selector.match(tagRegexp) ?? [];
14
+ const matchedIds = selector.match(idRegexp) ?? [];
15
+ const matchedClasses = selector.match(classRegexp) ?? [];
16
+ const matchedAttrs = selector.match(attributeRegexp) ?? [];
17
+ const tag = matchedTags[matchedTags.length - 1] ?? "div";
18
+ const id = matchedIds[matchedIds.length - 1] ?? null;
19
+ const classes = matchedClasses.map((matchedClass) => matchedClass.replace(/^\./, ""));
20
+ const attributes = matchedAttrs.map((matchedAttr) => matchedAttr.replace(/^\[/, "").replace(/\]$/, "").split("="));
21
+ const element = actualDocument.createElement(tag);
22
+ if (id !== null) {
23
+ element.id = id;
24
+ }
25
+ element.classList.add(...classes);
26
+ attributes.forEach(([name, value = ""]) => {
27
+ if (name === void 0) return;
28
+ element.setAttribute(name, value);
29
+ });
30
+ return element;
31
+ }
32
+
33
+ export {
34
+ selectorToElement
35
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ findDuplicates
3
+ } from "./chunk-YS6WMSWC.js";
4
+ import {
5
+ isArrayOf
6
+ } from "./chunk-6RGDWX4A.js";
7
+ import {
8
+ make
9
+ } from "./chunk-RLAZR3NL.js";
10
+ import {
11
+ randomPick,
12
+ randomPickMany
13
+ } from "./chunk-C7SRAQMW.js";
14
+ import {
15
+ shuffle
16
+ } from "./chunk-VJJIYJMY.js";
17
+
18
+ // src/agnostic/arrays/index.tsx
19
+ var Arrays;
20
+ ((Arrays2) => {
21
+ Arrays2.findDuplicates = findDuplicates;
22
+ Arrays2.isArrayOf = isArrayOf;
23
+ Arrays2.make = make;
24
+ Arrays2.randomPick = randomPick;
25
+ Arrays2.randomPickMany = randomPickMany;
26
+ Arrays2.shuffle = shuffle;
27
+ })(Arrays || (Arrays = {}));
28
+
29
+ export {
30
+ Arrays
31
+ };
@@ -0,0 +1,18 @@
1
+ import {
2
+ zod_default
3
+ } from "./chunk-OT4SVHDX.js";
4
+
5
+ // src/node/images/transform/operations/hue/index.ts
6
+ function isHueOperationParams(obj) {
7
+ return zod_default.object({
8
+ rotateDeg: zod_default.number().optional()
9
+ }).safeParse(obj).success;
10
+ }
11
+ async function hue(sharpInstance, params) {
12
+ return sharpInstance.modulate({ hue: params.rotateDeg });
13
+ }
14
+
15
+ export {
16
+ isHueOperationParams,
17
+ hue
18
+ };
@@ -0,0 +1,18 @@
1
+ import {
2
+ zod_default
3
+ } from "./chunk-OT4SVHDX.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
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ zod_default
3
+ } from "./chunk-OT4SVHDX.js";
4
+
5
+ // src/node/images/transform/operations/extract/index.ts
6
+ function isExtractOperationParams(obj) {
7
+ return zod_default.object({
8
+ left: zod_default.number(),
9
+ top: zod_default.number(),
10
+ width: zod_default.number(),
11
+ height: zod_default.number()
12
+ }).safeParse(obj).success;
13
+ }
14
+ async function extract(sharpInstance, params) {
15
+ return sharpInstance.extract(params);
16
+ }
17
+
18
+ export {
19
+ isExtractOperationParams,
20
+ extract
21
+ };
@@ -0,0 +1,40 @@
1
+ import {
2
+ remove_exports
3
+ } from "./chunk-3TKBCG7Y.js";
4
+ import {
5
+ stat_exports
6
+ } from "./chunk-VROZGPC5.js";
7
+ import {
8
+ upload_exports
9
+ } 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
+ import {
17
+ exists_exports
18
+ } from "./chunk-ZEZCYPLQ.js";
19
+ import {
20
+ move_exports
21
+ } from "./chunk-QWZ4ZNFA.js";
22
+ import {
23
+ __export
24
+ } from "./chunk-WSFCRVEQ.js";
25
+
26
+ // src/node/@aws-s3/storage/file/index.ts
27
+ var file_exports = {};
28
+ __export(file_exports, {
29
+ Copy: () => copy_exports,
30
+ Download: () => download_exports,
31
+ Exists: () => exists_exports,
32
+ Move: () => move_exports,
33
+ Remove: () => remove_exports,
34
+ Stat: () => stat_exports,
35
+ Upload: () => upload_exports
36
+ });
37
+
38
+ export {
39
+ file_exports
40
+ };
@@ -0,0 +1,28 @@
1
+ import {
2
+ Sanitize
3
+ } from "./chunk-MTT7TVR3.js";
4
+ import {
5
+ register
6
+ } from "./chunk-WC2LQPQP.js";
7
+
8
+ // src/agnostic/html/string-to-nodes/index.ts
9
+ function stringToNodes(dirtyStr, options) {
10
+ const actualDocument = options?.documentObj ?? window.document;
11
+ if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
12
+ const sanitizeOptions = {
13
+ ...options?.sanitize,
14
+ documentObj: options?.sanitize?.documentObj ?? options?.documentObj
15
+ };
16
+ const str = options?.sanitize !== void 0 ? Sanitize.sanitize(dirtyStr, sanitizeOptions) : dirtyStr;
17
+ const wrapperDiv = actualDocument.createElement("div");
18
+ wrapperDiv.innerHTML = str;
19
+ const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
20
+ const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
21
+ return allowedNodeTypes.includes(node.nodeType);
22
+ });
23
+ return nodes;
24
+ }
25
+
26
+ export {
27
+ stringToNodes
28
+ };
@@ -0,0 +1,19 @@
1
+ import {
2
+ zod_default
3
+ } from "./chunk-OT4SVHDX.js";
4
+
5
+ // src/node/images/transform/operations/normalize/index.ts
6
+ function isNormalizeOperationParams(obj) {
7
+ return zod_default.object({
8
+ lower: zod_default.number().optional(),
9
+ upper: zod_default.number().optional()
10
+ }).safeParse(obj).success;
11
+ }
12
+ async function normalize(sharpInstance, params) {
13
+ return sharpInstance.normalize(params);
14
+ }
15
+
16
+ export {
17
+ isNormalizeOperationParams,
18
+ normalize
19
+ };
@@ -0,0 +1,37 @@
1
+ import {
2
+ Cast,
3
+ Tree,
4
+ Utils
5
+ } from "./chunk-VCAG4DZP.js";
6
+ import {
7
+ Types
8
+ } from "./chunk-XEQ2PBT2.js";
9
+ import {
10
+ SmartTags
11
+ } from "./chunk-UT2J62LH.js";
12
+ import {
13
+ Serialize
14
+ } from "./chunk-SXRWMH3U.js";
15
+ import {
16
+ Transformer
17
+ } from "./chunk-BKO7GLC2.js";
18
+ import {
19
+ Method
20
+ } from "./chunk-RW7VAKJW.js";
21
+
22
+ // src/agnostic/html/hyper-json/index.ts
23
+ var HyperJson;
24
+ ((HyperJson2) => {
25
+ HyperJson2.Cast = Cast;
26
+ HyperJson2.Method = Method;
27
+ HyperJson2.Serialize = Serialize;
28
+ HyperJson2.SmartTags = SmartTags;
29
+ HyperJson2.Transformer = Transformer;
30
+ HyperJson2.Tree = Tree;
31
+ HyperJson2.Types = Types;
32
+ HyperJson2.Utils = Utils;
33
+ })(HyperJson || (HyperJson = {}));
34
+
35
+ export {
36
+ HyperJson
37
+ };
@@ -0,0 +1,37 @@
1
+ import {
2
+ Cast,
3
+ Tree,
4
+ Utils
5
+ } from "./chunk-FOXX52QA.js";
6
+ import {
7
+ Serialize
8
+ } from "./chunk-SXRWMH3U.js";
9
+ import {
10
+ Types
11
+ } from "./chunk-XEQ2PBT2.js";
12
+ import {
13
+ SmartTags
14
+ } from "./chunk-UT2J62LH.js";
15
+ import {
16
+ Transformer
17
+ } from "./chunk-BKO7GLC2.js";
18
+ import {
19
+ Method
20
+ } from "./chunk-RW7VAKJW.js";
21
+
22
+ // src/agnostic/html/hyper-json/index.ts
23
+ var HyperJson;
24
+ ((HyperJson2) => {
25
+ HyperJson2.Cast = Cast;
26
+ HyperJson2.Method = Method;
27
+ HyperJson2.Serialize = Serialize;
28
+ HyperJson2.SmartTags = SmartTags;
29
+ HyperJson2.Transformer = Transformer;
30
+ HyperJson2.Tree = Tree;
31
+ HyperJson2.Types = Types;
32
+ HyperJson2.Utils = Utils;
33
+ })(HyperJson || (HyperJson = {}));
34
+
35
+ export {
36
+ HyperJson
37
+ };
@@ -0,0 +1,40 @@
1
+ import {
2
+ remove_exports
3
+ } from "./chunk-ANPXBD2G.js";
4
+ import {
5
+ stat_exports
6
+ } from "./chunk-TGVYEQIA.js";
7
+ import {
8
+ upload_exports
9
+ } 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
+ import {
17
+ exists_exports
18
+ } from "./chunk-QVPS2BCJ.js";
19
+ import {
20
+ move_exports
21
+ } from "./chunk-FE4DECBU.js";
22
+ import {
23
+ __export
24
+ } from "./chunk-WSFCRVEQ.js";
25
+
26
+ // src/node/sftp/file/index.ts
27
+ var file_exports = {};
28
+ __export(file_exports, {
29
+ Copy: () => copy_exports,
30
+ Download: () => download_exports,
31
+ Exists: () => exists_exports,
32
+ Move: () => move_exports,
33
+ Remove: () => remove_exports,
34
+ Stat: () => stat_exports,
35
+ Upload: () => upload_exports
36
+ });
37
+
38
+ export {
39
+ file_exports
40
+ };
@@ -0,0 +1,56 @@
1
+ import {
2
+ remove_file_exports
3
+ } from "./chunk-H4LW6FP3.js";
4
+ import {
5
+ stat_file_exports
6
+ } from "./chunk-UK4HNSEJ.js";
7
+ import {
8
+ upload_file_exports
9
+ } from "./chunk-NOLQR5RW.js";
10
+ import {
11
+ download_file_exports
12
+ } from "./chunk-EOTOFHUR.js";
13
+ import {
14
+ copy_dir_exports
15
+ } from "./chunk-6NLNUGBI.js";
16
+ import {
17
+ copy_file_exports
18
+ } from "./chunk-OA7Y2A5T.js";
19
+ import {
20
+ exists_file_exports
21
+ } from "./chunk-24ZUWYIR.js";
22
+ import {
23
+ list_dir_exports
24
+ } from "./chunk-DPQRXSZH.js";
25
+ import {
26
+ move_dir_exports
27
+ } from "./chunk-FS6LRTDK.js";
28
+ import {
29
+ move_file_exports
30
+ } from "./chunk-646R6BQZ.js";
31
+ import {
32
+ remove_dir_exports
33
+ } from "./chunk-CA3UPHYO.js";
34
+ import {
35
+ __export
36
+ } from "./chunk-WSFCRVEQ.js";
37
+
38
+ // src/node/cloud-storage/operations/index.ts
39
+ var operations_exports = {};
40
+ __export(operations_exports, {
41
+ CopyDir: () => copy_dir_exports,
42
+ CopyFile: () => copy_file_exports,
43
+ DownloadFile: () => download_file_exports,
44
+ ExistsFile: () => exists_file_exports,
45
+ ListDir: () => list_dir_exports,
46
+ MoveDir: () => move_dir_exports,
47
+ MoveFile: () => move_file_exports,
48
+ RemoveDir: () => remove_dir_exports,
49
+ RemoveFile: () => remove_file_exports,
50
+ StatFile: () => stat_file_exports,
51
+ UploadFile: () => upload_file_exports
52
+ });
53
+
54
+ export {
55
+ operations_exports
56
+ };
@@ -0,0 +1,43 @@
1
+ import {
2
+ isSharpColor
3
+ } from "./chunk-4UV3XIGE.js";
4
+ import {
5
+ zod_default
6
+ } from "./chunk-OT4SVHDX.js";
7
+
8
+ // src/node/images/transform/operations/resize/index.ts
9
+ function isResizeOperationParams(obj) {
10
+ return zod_default.object({
11
+ width: zod_default.number().optional(),
12
+ height: zod_default.number().optional(),
13
+ fit: zod_default.enum([
14
+ "contain",
15
+ "cover",
16
+ "fill",
17
+ "inside",
18
+ "outside"
19
+ ]).optional(),
20
+ position: zod_default.union([
21
+ zod_default.number(),
22
+ zod_default.string()
23
+ ]).optional(),
24
+ background: zod_default.custom((val) => isSharpColor(val)).optional(),
25
+ kernel: zod_default.enum([
26
+ "nearest",
27
+ "cubic",
28
+ "mitchell",
29
+ "lanczos2",
30
+ "lanczos3",
31
+ "mks2013",
32
+ "mks2021"
33
+ ]).optional()
34
+ }).safeParse(obj).success;
35
+ }
36
+ async function resize(sharpInstance, params) {
37
+ return sharpInstance.resize(params);
38
+ }
39
+
40
+ export {
41
+ isResizeOperationParams,
42
+ resize
43
+ };