@design-edito/tools 0.2.14 → 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.
- package/agnostic/arrays/index.d.ts +5 -5
- package/agnostic/arrays/index.js +7 -7
- package/agnostic/arrays/is-array-of/index.d.ts +1 -1
- package/agnostic/arrays/random-pick/index.js +4 -4
- package/agnostic/booleans/index.d.ts +1 -1
- package/agnostic/booleans/is-falsy/index.d.ts +1 -1
- package/agnostic/colors/channels/index.d.ts +5 -0
- package/agnostic/colors/channels/index.js +18 -0
- package/agnostic/colors/contrast/index.d.ts +2 -0
- package/agnostic/colors/contrast/index.js +13 -0
- package/agnostic/colors/convert/index.d.ts +20 -0
- package/agnostic/colors/convert/index.js +45 -0
- package/agnostic/colors/distance/index.d.ts +2 -0
- package/agnostic/colors/distance/index.js +12 -0
- package/agnostic/colors/grayscale/index.d.ts +2 -0
- package/agnostic/colors/grayscale/index.js +12 -0
- package/agnostic/colors/index.d.ts +14 -16
- package/agnostic/colors/index.js +95 -27
- package/agnostic/colors/invert/index.d.ts +2 -0
- package/agnostic/colors/invert/index.js +12 -0
- package/agnostic/colors/lerp/index.d.ts +2 -0
- package/agnostic/colors/lerp/index.js +12 -0
- package/agnostic/colors/luminance/index.d.ts +2 -0
- package/agnostic/colors/luminance/index.js +12 -0
- package/agnostic/colors/palette/index.d.ts +2 -0
- package/agnostic/colors/palette/index.js +14 -0
- package/agnostic/colors/rotate/index.d.ts +2 -0
- package/agnostic/colors/rotate/index.js +13 -0
- package/agnostic/colors/tidy/index.d.ts +2 -0
- package/agnostic/colors/tidy/index.js +11 -0
- package/agnostic/colors/typechecks/index.d.ts +11 -0
- package/agnostic/colors/typechecks/index.js +26 -0
- package/agnostic/colors/types.d.ts +82 -0
- package/agnostic/css/bem/index.d.ts +2 -2
- package/agnostic/css/index.d.ts +3 -3
- package/agnostic/css/index.js +6 -6
- package/agnostic/css/styles-set/index.js +6 -6
- package/agnostic/errors/index.d.ts +2 -2
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.d.ts +1 -1
- package/agnostic/html/hyper-json/cast/index.js +4 -4
- package/agnostic/html/hyper-json/index.d.ts +8 -8
- package/agnostic/html/hyper-json/index.js +5 -5
- package/agnostic/html/hyper-json/method/index.d.ts +2 -2
- package/agnostic/html/hyper-json/serialize/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -4
- package/agnostic/html/hyper-json/transformer/index.d.ts +4 -4
- package/agnostic/html/hyper-json/tree/index.d.ts +1 -1
- package/agnostic/html/hyper-json/tree/index.js +4 -4
- package/agnostic/html/hyper-json/types/index.d.ts +5 -5
- package/agnostic/html/hyper-json/utils/index.d.ts +2 -2
- package/agnostic/html/hyper-json/utils/index.js +4 -4
- package/agnostic/html/index.d.ts +8 -8
- package/agnostic/html/index.js +18 -18
- package/agnostic/html/sanitize/index.js +4 -4
- package/agnostic/html/selector-to-element/index.js +4 -4
- package/agnostic/html/string-to-nodes/index.d.ts +1 -1
- package/agnostic/html/string-to-nodes/index.js +5 -5
- package/agnostic/index.d.ts +12 -12
- package/agnostic/misc/assert/index.d.ts +1 -1
- package/agnostic/misc/assert/index.js +3 -3
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +1 -1
- package/agnostic/misc/crossenv/index.d.ts +3 -3
- package/agnostic/misc/crossenv/window/index.d.ts +1 -1
- package/agnostic/misc/index.d.ts +11 -11
- package/agnostic/misc/index.js +19 -19
- package/agnostic/misc/logs/index.d.ts +2 -2
- package/agnostic/misc/lorem-ipsum/index.js +10 -10
- package/agnostic/numbers/index.d.ts +5 -5
- package/agnostic/numbers/index.js +6 -6
- package/agnostic/objects/enums/index.d.ts +1 -1
- package/agnostic/objects/index.d.ts +8 -8
- package/agnostic/objects/index.js +4 -4
- package/agnostic/optim/index.d.ts +2 -2
- package/agnostic/random/index.d.ts +3 -3
- package/agnostic/random/index.js +2 -2
- package/agnostic/strings/index.d.ts +7 -7
- package/agnostic/strings/index.js +13 -13
- package/agnostic/strings/parse-table/index.d.ts +1 -1
- package/agnostic/time/dates/index.d.ts +1 -1
- package/agnostic/time/index.d.ts +5 -5
- package/agnostic/time/index.js +6 -6
- package/chunks/chunk-2EHYEUX4.js +21 -0
- package/chunks/chunk-5LK2YLTK.js +21 -0
- package/chunks/chunk-65NTXENV.js +157 -0
- package/chunks/{chunk-6EJIBLPQ.js → chunk-73FF7HWQ.js} +9 -9
- package/chunks/{chunk-HMZMKLMR.js → chunk-AF2NAJS2.js} +2 -2
- package/chunks/chunk-ALMK24GK.js +0 -0
- package/chunks/chunk-BKIF2ELV.js +47 -0
- package/chunks/{chunk-AQBJ6HNB.js → chunk-C7SRAQMW.js} +1 -1
- package/chunks/{chunk-ZBBU2P4D.js → chunk-CQEDNACN.js} +2 -2
- package/chunks/chunk-D7SXHHU3.js +47 -0
- package/chunks/{chunk-GU34O65H.js → chunk-E33DCHHS.js} +15 -15
- package/chunks/{chunk-WAMSK4A3.js → chunk-E4FJHD5R.js} +1 -1
- package/chunks/chunk-GUBFCOBT.js +98 -0
- package/chunks/{chunk-5TRAENM3.js → chunk-I2HTBYNO.js} +1 -1
- package/chunks/chunk-IDXUS2IO.js +296 -0
- package/chunks/chunk-JHUOMGOX.js +81 -0
- package/chunks/{chunk-EDJ3TVNV.js → chunk-KDOMQ4LM.js} +15 -6
- package/chunks/chunk-MN4FVOU2.js +28 -0
- package/chunks/{chunk-2M33FCDG.js → chunk-O7VFJHQX.js} +11 -5
- package/chunks/{chunk-KRDVV6K3.js → chunk-OD2XVVE2.js} +3 -3
- package/chunks/{chunk-TIER4TF4.js → chunk-P2H6PV4O.js} +1 -1
- package/chunks/chunk-P4YT4RBG.js +51 -0
- package/chunks/{chunk-C5BQQUAG.js → chunk-PJSPZGT2.js} +12 -12
- package/chunks/{chunk-PLIJVLAB.js → chunk-PX4DPCZM.js} +5 -3
- package/chunks/{chunk-DWCRT664.js → chunk-QRS3G3YD.js} +3 -3
- package/chunks/{chunk-FQ4UTWMP.js → chunk-QTA7ZEVX.js} +3 -1
- package/chunks/chunk-QW34TQCS.js +48 -0
- package/chunks/{chunk-HMAK6VAF.js → chunk-RBCZWVQH.js} +11 -5
- package/chunks/{chunk-XB3EGDBI.js → chunk-RDQJSWRC.js} +1 -1
- package/chunks/{chunk-AI6AGF4I.js → chunk-S7637BQZ.js} +8 -5
- package/chunks/{chunk-3TA4CDWX.js → chunk-TQXFC6OS.js} +4 -4
- package/chunks/chunk-UG5EMKGN.js +265 -0
- package/chunks/chunk-VA67YLZL.js +26 -0
- package/chunks/{chunk-DEW6LPOS.js → chunk-VKNQ7MVZ.js} +90 -91
- package/chunks/{chunk-3TKBCG7Y.js → chunk-WV5N7ESL.js} +4 -1
- package/chunks/{chunk-SKBOSWM2.js → chunk-X5HMM3LD.js} +1 -1
- package/chunks/chunk-XAYMIITK.js +103 -0
- package/chunks/{chunk-H4LW6FP3.js → chunk-Y4THX4AN.js} +1 -1
- package/chunks/chunk-YZVZKBVJ.js +631 -0
- package/chunks/chunk-ZJ63OCMA.js +207 -0
- package/components/index.d.ts +1 -1
- package/node/@aws-s3/index.d.ts +1 -1
- package/node/@aws-s3/index.js +7 -7
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/index.d.ts +4 -4
- package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/index.d.ts +7 -7
- package/node/@aws-s3/storage/file/index.js +10 -10
- package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.js +1 -1
- package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
- package/node/@aws-s3/storage/index.d.ts +2 -2
- package/node/@aws-s3/storage/index.js +9 -9
- package/node/@design-edito/index.d.ts +1 -1
- package/node/@express/@multer/index.d.ts +1 -1
- package/node/@express/index.d.ts +1 -1
- package/node/@google-cloud/index.d.ts +1 -1
- package/node/@google-cloud/index.js +11 -11
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/bucket/index.d.ts +4 -4
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.d.ts +4 -4
- package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +12 -12
- package/node/@google-cloud/storage/file/index.js +16 -16
- package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +4 -4
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
- package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
- package/node/@google-cloud/storage/index.d.ts +3 -3
- package/node/@google-cloud/storage/index.js +13 -13
- package/node/cloud-storage/index.d.ts +2 -2
- package/node/cloud-storage/index.js +23 -23
- package/node/cloud-storage/operations/copy-dir/index.d.ts +6 -6
- package/node/cloud-storage/operations/copy-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/download-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/exists-file/index.d.ts +4 -4
- package/node/cloud-storage/operations/index.d.ts +11 -11
- package/node/cloud-storage/operations/index.js +30 -30
- package/node/cloud-storage/operations/list-dir/index.d.ts +4 -4
- package/node/cloud-storage/operations/move-dir/index.d.ts +6 -6
- package/node/cloud-storage/operations/move-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/remove-dir/index.d.ts +6 -6
- package/node/cloud-storage/operations/remove-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/remove-file/index.js +2 -2
- package/node/cloud-storage/operations/stat-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/upload-file/index.d.ts +6 -6
- package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/index.d.ts +2 -2
- package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
- package/node/encryption/index.d.ts +2 -2
- package/node/encryption/index.js +3 -3
- package/node/files/index.d.ts +3 -3
- package/node/ftps/directory/copy-dir/index.d.ts +1 -1
- package/node/ftps/directory/index.d.ts +4 -4
- package/node/ftps/directory/list/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.d.ts +1 -1
- package/node/ftps/directory/remove-dir/index.d.ts +1 -1
- package/node/ftps/file/copy/index.d.ts +1 -1
- package/node/ftps/file/download/index.d.ts +1 -1
- package/node/ftps/file/exists/index.d.ts +1 -1
- package/node/ftps/file/index.d.ts +7 -7
- package/node/ftps/file/index.js +9 -9
- package/node/ftps/file/move/index.d.ts +1 -1
- package/node/ftps/file/remove/index.d.ts +1 -1
- package/node/ftps/file/stat/index.d.ts +1 -1
- package/node/ftps/file/upload/index.d.ts +1 -1
- package/node/ftps/index.d.ts +2 -2
- package/node/ftps/index.js +7 -7
- package/node/images/create/index.d.ts +3 -0
- package/node/images/create/index.js +23 -0
- package/node/images/format/index.d.ts +18 -52
- package/node/images/format/index.js +30 -4
- package/node/images/index.d.ts +6 -4
- package/node/images/index.js +41 -21
- package/node/images/metadata/index.d.ts +3 -0
- package/node/images/metadata/index.js +23 -0
- package/node/images/transform/index.d.ts +3 -98
- package/node/images/transform/index.js +27 -16
- package/node/images/transform/operations/blur/index.d.ts +2 -4
- package/node/images/transform/operations/brighten/index.d.ts +2 -4
- package/node/images/transform/operations/extend/index.d.ts +2 -9
- package/node/images/transform/operations/extend/index.js +17 -2
- package/node/images/transform/operations/extract/index.d.ts +2 -7
- package/node/images/transform/operations/flatten/index.d.ts +2 -4
- package/node/images/transform/operations/flatten/index.js +17 -2
- package/node/images/transform/operations/hue/index.d.ts +2 -4
- package/node/images/transform/operations/level/index.d.ts +2 -5
- package/node/images/transform/operations/lighten/index.d.ts +2 -4
- package/node/images/transform/operations/normalize/index.d.ts +2 -5
- package/node/images/transform/operations/overlay/index.d.ts +5 -0
- package/node/images/transform/operations/overlay/index.js +27 -0
- package/node/images/transform/operations/resize/index.d.ts +2 -12
- package/node/images/transform/operations/resize/index.js +17 -2
- package/node/images/transform/operations/rotate/index.d.ts +2 -5
- package/node/images/transform/operations/rotate/index.js +17 -2
- package/node/images/transform/operations/saturate/index.d.ts +2 -4
- package/node/images/transform/operations/saturate/index.js +1 -1
- package/node/images/types.d.ts +252 -0
- package/node/images/utils/index.d.ts +7 -0
- package/node/images/utils/index.js +28 -0
- package/node/index.d.ts +11 -11
- package/node/process/index.d.ts +1 -1
- package/node/sftp/directory/copy-dir/index.d.ts +1 -1
- package/node/sftp/directory/index.d.ts +4 -4
- package/node/sftp/directory/list/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.d.ts +1 -1
- package/node/sftp/directory/remove-dir/index.d.ts +1 -1
- package/node/sftp/file/copy/index.d.ts +1 -1
- package/node/sftp/file/download/index.d.ts +1 -1
- package/node/sftp/file/exists/index.d.ts +1 -1
- package/node/sftp/file/index.d.ts +7 -7
- package/node/sftp/file/index.js +9 -9
- package/node/sftp/file/move/index.d.ts +1 -1
- package/node/sftp/file/remove/index.d.ts +1 -1
- package/node/sftp/file/stat/index.d.ts +1 -1
- package/node/sftp/file/upload/index.d.ts +1 -1
- package/node/sftp/index.d.ts +2 -2
- package/node/sftp/index.js +7 -7
- package/package.json +1 -1
- package/shared/errors/index.d.ts +1 -1
- package/agnostic/colors/complement-color/index.d.ts +0 -1
- package/agnostic/colors/complement-color/index.js +0 -7
- package/agnostic/colors/hex-to-rgb/index.d.ts +0 -1
- package/agnostic/colors/hex-to-rgb/index.js +0 -7
- package/agnostic/colors/hsl-to-rgb/index.d.ts +0 -1
- package/agnostic/colors/hsl-to-rgb/index.js +0 -7
- package/agnostic/colors/lighten-color/index.d.ts +0 -2
- package/agnostic/colors/lighten-color/index.js +0 -11
- package/agnostic/colors/rgb-to-hex/index.d.ts +0 -1
- package/agnostic/colors/rgb-to-hex/index.js +0 -7
- package/agnostic/colors/rgb-to-hsl/index.d.ts +0 -1
- package/agnostic/colors/rgb-to-hsl/index.js +0 -7
- package/agnostic/colors/saturate-color/index.d.ts +0 -2
- package/agnostic/colors/saturate-color/index.js +0 -11
- package/chunks/chunk-2POD3TAX.js +0 -11
- package/chunks/chunk-2TJCB6IM.js +0 -12
- package/chunks/chunk-7EDDWSWS.js +0 -123
- package/chunks/chunk-FAXNZG5C.js +0 -10
- package/chunks/chunk-IFQA5PWI.js +0 -112
- package/chunks/chunk-MB7HWF22.js +0 -23
- package/chunks/chunk-MFYNJMVM.js +0 -18
- package/chunks/chunk-NYVARFI7.js +0 -20
- package/chunks/chunk-QLC3A6PC.js +0 -17
- package/chunks/chunk-U57Q62IN.js +0 -23
- package/chunks/chunk-YVLJKJV2.js +0 -17
- package/node/images/get-metadata/index.d.ts +0 -4
- package/node/images/get-metadata/index.js +0 -7
- package/node/images/transform/operations/composite/index.d.ts +0 -7
- package/node/images/transform/operations/composite/index.js +0 -12
- package/node/images/transform/utils/index.d.ts +0 -2
- package/node/images/transform/utils/index.js +0 -8
- package/chunks/{chunk-WH6BPDAC.js → chunk-2KT7AKRW.js} +3 -3
- package/chunks/{chunk-S5MTHWQ7.js → chunk-6QFELK4E.js} +8 -8
- package/chunks/{chunk-LEYJ4I5W.js → chunk-EXPVRDPR.js} +8 -8
- package/chunks/{chunk-ZPDKBMUH.js → chunk-LSZVKXDZ.js} +3 -3
- package/chunks/{chunk-NRABY36Z.js → chunk-MLLP7YSK.js} +9 -9
- package/chunks/{chunk-OVG5RGI3.js → chunk-S32K7POB.js} +4 -4
package/chunks/chunk-7EDDWSWS.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-FAXNZG5C.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-IFQA5PWI.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-MB7HWF22.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-MFYNJMVM.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-NYVARFI7.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-QLC3A6PC.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-U57Q62IN.js
DELETED
|
@@ -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
|
-
};
|
package/chunks/chunk-YVLJKJV2.js
DELETED
|
@@ -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,7 +0,0 @@
|
|
|
1
|
-
import sharp from 'sharp';
|
|
2
|
-
import { Outcome } from '../../../../../agnostic/misc/outcome';
|
|
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,24 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
upload_exports
|
|
3
|
+
} from "./chunk-CVDCTI7F.js";
|
|
1
4
|
import {
|
|
2
5
|
download_exports
|
|
3
6
|
} from "./chunk-FF5NURFO.js";
|
|
7
|
+
import {
|
|
8
|
+
exists_exports
|
|
9
|
+
} from "./chunk-ZJTWDCNZ.js";
|
|
4
10
|
import {
|
|
5
11
|
remove_exports
|
|
6
12
|
} from "./chunk-KJAEVOIW.js";
|
|
7
13
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
14
|
+
move_exports
|
|
15
|
+
} from "./chunk-HRNDUTZE.js";
|
|
10
16
|
import {
|
|
11
17
|
stat_exports
|
|
12
18
|
} from "./chunk-CNYSX2L2.js";
|
|
13
19
|
import {
|
|
14
20
|
copy_exports
|
|
15
21
|
} from "./chunk-NMYVJJXV.js";
|
|
16
|
-
import {
|
|
17
|
-
exists_exports
|
|
18
|
-
} from "./chunk-ZJTWDCNZ.js";
|
|
19
|
-
import {
|
|
20
|
-
move_exports
|
|
21
|
-
} from "./chunk-HRNDUTZE.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./chunk-WSFCRVEQ.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
upload_exports
|
|
3
|
+
} from "./chunk-QDVDHFMZ.js";
|
|
1
4
|
import {
|
|
2
5
|
download_exports
|
|
3
6
|
} from "./chunk-HWEGQVBQ.js";
|
|
7
|
+
import {
|
|
8
|
+
exists_exports
|
|
9
|
+
} from "./chunk-QVPS2BCJ.js";
|
|
4
10
|
import {
|
|
5
11
|
remove_exports
|
|
6
12
|
} from "./chunk-ANPXBD2G.js";
|
|
7
13
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
14
|
+
move_exports
|
|
15
|
+
} from "./chunk-FE4DECBU.js";
|
|
10
16
|
import {
|
|
11
17
|
stat_exports
|
|
12
18
|
} from "./chunk-TGVYEQIA.js";
|
|
13
19
|
import {
|
|
14
20
|
copy_exports
|
|
15
21
|
} 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
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./chunk-WSFCRVEQ.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
upload
|
|
3
|
+
} from "./chunk-FB3GNE2B.js";
|
|
1
4
|
import {
|
|
2
5
|
download
|
|
3
6
|
} from "./chunk-2JH4TCT2.js";
|
|
4
7
|
import {
|
|
5
8
|
remove
|
|
6
9
|
} from "./chunk-7J7CYOXU.js";
|
|
7
|
-
import {
|
|
8
|
-
upload
|
|
9
|
-
} from "./chunk-FB3GNE2B.js";
|
|
10
10
|
import {
|
|
11
11
|
Outcome
|
|
12
12
|
} from "./chunk-JMU5PDBD.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
array
|
|
3
|
-
} from "./chunk-QAQZEKIF.js";
|
|
4
1
|
import {
|
|
5
2
|
nullFunc
|
|
6
3
|
} from "./chunk-QAVYONH6.js";
|
|
7
4
|
import {
|
|
8
5
|
Types
|
|
9
6
|
} from "./chunk-XEQ2PBT2.js";
|
|
10
|
-
import {
|
|
11
|
-
Serialize
|
|
12
|
-
} from "./chunk-SXRWMH3U.js";
|
|
13
7
|
import {
|
|
14
8
|
any
|
|
15
9
|
} from "./chunk-FHLCPVND.js";
|
|
10
|
+
import {
|
|
11
|
+
array
|
|
12
|
+
} from "./chunk-QAQZEKIF.js";
|
|
16
13
|
import {
|
|
17
14
|
SmartTags
|
|
18
15
|
} from "./chunk-UT2J62LH.js";
|
|
16
|
+
import {
|
|
17
|
+
Serialize
|
|
18
|
+
} from "./chunk-SXRWMH3U.js";
|
|
19
19
|
import {
|
|
20
20
|
Transformer
|
|
21
21
|
} from "./chunk-BKO7GLC2.js";
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
Outcome
|
|
39
39
|
} from "./chunk-JMU5PDBD.js";
|
|
40
|
+
import {
|
|
41
|
+
replaceAll
|
|
42
|
+
} from "./chunk-ZTDVUXPR.js";
|
|
40
43
|
import {
|
|
41
44
|
trimEnd,
|
|
42
45
|
trimStart
|
|
43
46
|
} from "./chunk-6XL25OZX.js";
|
|
44
|
-
import {
|
|
45
|
-
replaceAll
|
|
46
|
-
} from "./chunk-ZTDVUXPR.js";
|
|
47
47
|
import {
|
|
48
48
|
Window
|
|
49
49
|
} from "./chunk-RLJOYG64.js";
|
|
@@ -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;
|