@design-edito/tools 0.1.73 → 0.2.0
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.js +10 -10
- package/agnostic/arrays/random-pick/index.js +4 -4
- package/agnostic/colors/index.js +11 -11
- package/agnostic/colors/lighten-color/index.js +2 -2
- package/agnostic/colors/saturate-color/index.js +2 -2
- package/agnostic/css/index.js +8 -8
- package/agnostic/css/styles-set/index.js +4 -4
- package/agnostic/html/hyper-json/cast/index.js +8 -8
- package/agnostic/html/hyper-json/index.js +9 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +8 -8
- package/agnostic/html/hyper-json/tree/index.js +8 -8
- package/agnostic/html/hyper-json/utils/index.js +8 -8
- package/agnostic/html/index.js +22 -22
- 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.js +5 -5
- package/agnostic/misc/crossenv/index.js +2 -2
- package/agnostic/misc/index.js +20 -20
- package/agnostic/misc/lorem-ipsum/index.js +11 -11
- package/agnostic/numbers/index.js +3 -3
- package/agnostic/objects/index.js +14 -14
- package/agnostic/strings/index.js +6 -6
- package/agnostic/time/index.js +3 -3
- package/chunks/chunk-24MJDYQE.js +18 -0
- package/chunks/{chunk-7KCMLH6B.js → chunk-2V7TLVCV.js} +6 -6
- package/chunks/{chunk-XFMKYZKH.js → chunk-3XRPOHUB.js} +1 -1
- package/chunks/chunk-4KNB7WYD.js +19 -0
- package/chunks/chunk-4OK2UH4M.js +28 -0
- package/chunks/{chunk-3CGRUS5C.js → chunk-4W7NAQMC.js} +1 -1
- package/chunks/chunk-5BQFHNTR.js +21 -0
- package/chunks/chunk-5KVGIG6J.js +31 -0
- package/chunks/chunk-5PAFOSWF.js +16 -0
- package/chunks/chunk-5XBCPKNW.js +18 -0
- package/chunks/chunk-6FMANHGH.js +15 -0
- package/chunks/{chunk-5TRAENM3.js → chunk-6V6SYSHX.js} +7 -7
- package/chunks/chunk-74CFPDKM.js +28 -0
- package/chunks/{chunk-6SXCNPJ2.js → chunk-7CHYRYXJ.js} +32 -32
- package/chunks/{chunk-3CQON3DO.js → chunk-7J2AUDU2.js} +25 -21
- package/chunks/chunk-7KSMK42F.js +28 -0
- package/chunks/chunk-ABQMMHCL.js +16 -0
- package/chunks/chunk-AIC5YAJU.js +28 -0
- package/chunks/{chunk-YY6DTDMO.js → chunk-AKCO3SNC.js} +30 -30
- package/chunks/{chunk-A5XT7AXP.js → chunk-AU6JLO5B.js} +2 -2
- package/chunks/chunk-AW3I75FU.js +79 -0
- package/chunks/chunk-B5C6VXNI.js +18 -0
- package/chunks/chunk-BN4MCFBZ.js +35 -0
- package/chunks/chunk-BP3KL5L2.js +28 -0
- package/chunks/chunk-BSLVDJVW.js +32 -0
- package/chunks/chunk-BVPHULMY.js +21 -0
- package/chunks/{chunk-E3F7QTXR.js → chunk-C2MFLI7A.js} +15 -15
- package/chunks/chunk-CGITTQIW.js +42 -0
- package/chunks/{chunk-SUWMOLXI.js → chunk-CHKEZ72M.js} +1 -1
- package/chunks/chunk-CKENYYWH.js +28 -0
- package/chunks/{chunk-QLOMT4DL.js → chunk-CXUWFKJG.js} +6 -6
- package/chunks/{chunk-7WYDM5OX.js → chunk-CYBPWE5F.js} +1 -1
- package/chunks/chunk-D67AGMZF.js +23 -0
- package/chunks/chunk-D7PZ7633.js +42 -0
- package/chunks/chunk-ELPQUBKJ.js +30 -0
- package/chunks/{chunk-D47ZPEUU.js → chunk-EWQDQMIO.js} +6 -6
- package/chunks/chunk-EZ22Z22X.js +28 -0
- package/chunks/chunk-F4GFAM6X.js +31 -0
- package/chunks/chunk-FCB366FH.js +40 -0
- package/chunks/chunk-FI675VZO.js +11609 -0
- package/chunks/chunk-FRJBHV4A.js +21 -0
- package/chunks/chunk-G4Y2EOVP.js +18 -0
- package/chunks/chunk-GGYWRA4A.js +231 -0
- package/chunks/chunk-GKCKBPY2.js +16 -0
- package/chunks/chunk-GZIEUPBF.js +18 -0
- package/chunks/chunk-HX5PHI2P.js +42 -0
- package/chunks/chunk-IFZ4CMF4.js +16 -0
- package/chunks/chunk-JAENHN5Z.js +42 -0
- package/chunks/chunk-JNQPNZTB.js +42 -0
- package/chunks/{chunk-476BHNJO.js → chunk-JQAOGZPV.js} +1 -1
- package/chunks/chunk-JV6I54AC.js +16 -0
- package/chunks/chunk-KOD5LUT3.js +28 -0
- package/chunks/{chunk-DABLUUMY.js → chunk-KQCU3AXU.js} +4 -4
- package/chunks/{chunk-SX4DSRPU.js → chunk-KRICEY6O.js} +3 -3
- package/chunks/chunk-KUT7FQGS.js +16 -0
- package/chunks/chunk-LJO4SDD2.js +79 -0
- package/chunks/{chunk-46HTGOCE.js → chunk-LQ2H2YVS.js} +25 -21
- package/chunks/chunk-LQ3PCG4Z.js +18 -0
- package/chunks/chunk-LRBVQNQI.js +40 -0
- package/chunks/{chunk-LXZULGNN.js → chunk-LSZVKXDZ.js} +10 -10
- package/chunks/chunk-LV4WOREW.js +40 -0
- package/chunks/chunk-LVCQ3CSC.js +21 -0
- package/chunks/chunk-M32C4GP2.js +15 -0
- package/chunks/{chunk-IPLOZP7L.js → chunk-MJFB3YE6.js} +2 -2
- package/chunks/chunk-MJMBDBEH.js +69 -0
- package/chunks/chunk-NFSRT4ED.js +18 -0
- package/chunks/chunk-NHKKX4F7.js +18 -0
- package/chunks/{chunk-5B7VSD44.js → chunk-NJVVOZVZ.js} +4 -4
- package/chunks/{chunk-F6CB5TEO.js → chunk-NWGNIT4B.js} +2 -2
- package/chunks/chunk-O3V5DTNL.js +40 -0
- package/chunks/chunk-O6TWC4IK.js +56 -0
- package/chunks/{chunk-IH25CV3F.js → chunk-OAGKCS7I.js} +6 -2
- package/chunks/chunk-OMLGI3Y2.js +16 -0
- package/chunks/chunk-OT4SVHDX.js +11609 -0
- package/chunks/{chunk-PDHAMES3.js → chunk-PFYLNAAX.js} +6 -2
- package/chunks/{chunk-X4XXZ44B.js → chunk-Q2SKOY7I.js} +11 -11
- package/chunks/chunk-QTF7LWGT.js +28 -0
- package/chunks/{chunk-YXJXNTCV.js → chunk-QTPSR7ZJ.js} +15 -15
- package/chunks/chunk-R4BWUNSM.js +28 -0
- package/chunks/chunk-REXT5ZMP.js +32 -0
- package/chunks/{chunk-7UDN6KBA.js → chunk-RNLVCCL2.js} +3 -3
- package/chunks/chunk-RXBMGIPJ.js +42 -0
- package/chunks/chunk-SEYXG56Q.js +23 -0
- package/chunks/chunk-SP7EOGMF.js +30 -0
- package/chunks/{chunk-2EEVPIJE.js → chunk-SX2M5777.js} +38 -38
- package/chunks/chunk-TQHR6A2P.js +40 -0
- package/chunks/chunk-TSAR3HF6.js +35 -0
- package/chunks/chunk-U2KKX7UV.js +19 -0
- package/chunks/{chunk-YMRAUWRW.js → chunk-UEAMPAHK.js} +10 -2
- package/chunks/{chunk-6PIGLFM3.js → chunk-UJ5LGWZL.js} +1 -1
- package/chunks/chunk-UX2O74SG.js +42 -0
- package/chunks/chunk-UXEKCYL7.js +28 -0
- package/chunks/{chunk-PLIJVLAB.js → chunk-VEKKX6Z5.js} +1 -1
- package/chunks/{chunk-RCWLMVSZ.js → chunk-VJHE6WHS.js} +5 -5
- package/chunks/chunk-VSM742EZ.js +40 -0
- package/chunks/{chunk-2JKV6KXE.js → chunk-W3G73JUU.js} +3 -3
- package/chunks/{chunk-W5LE6YQ5.js → chunk-WG56WT6T.js} +5 -1
- package/chunks/{chunk-MAOVZE34.js → chunk-WHLM3KTR.js} +1 -1
- package/chunks/chunk-WKGSTVTK.js +28 -0
- package/chunks/chunk-WMDZHUBQ.js +56 -0
- package/chunks/chunk-WS3JRFP7.js +69 -0
- package/chunks/{chunk-FZJUZYTP.js → chunk-XNJYYULL.js} +38 -38
- package/chunks/chunk-XNWEMAIP.js +42 -0
- package/chunks/{chunk-Z4PVE6SR.js → chunk-XOUITWSM.js} +6 -6
- package/chunks/{chunk-4DNPGCIM.js → chunk-XOXH4XNN.js} +3 -3
- package/chunks/chunk-XQ4V4LVP.js +28 -0
- package/chunks/{chunk-55MT7BMY.js → chunk-Y6EREGHZ.js} +5 -1
- package/chunks/{chunk-HGSQCJ55.js → chunk-YB2KZLMN.js} +15 -15
- package/chunks/{chunk-7U5NS3AR.js → chunk-YDIFL3IZ.js} +3 -3
- package/chunks/chunk-YJE3G6BE.js +16 -0
- package/chunks/chunk-YVWQXQTE.js +42 -0
- package/chunks/chunk-ZH3QMMVD.js +28 -0
- package/chunks/{chunk-JMJZCVSA.js → chunk-ZN6IQRZT.js} +16 -16
- package/chunks/chunk-ZQY2MR66.js +42 -0
- package/chunks/chunk-ZUQEHFGL.js +42 -0
- package/node/@aws-s3/index.js +5 -5
- package/node/@aws-s3/storage/file/index.js +4 -4
- package/node/@aws-s3/storage/index.js +5 -5
- package/node/@google-cloud/index.js +8 -8
- package/node/@google-cloud/storage/file/index.js +9 -9
- package/node/@google-cloud/storage/index.js +10 -10
- package/node/cloud-storage/index.js +16 -16
- package/node/cloud-storage/operations/index.js +22 -22
- package/node/files/index.js +3 -3
- package/node/ftps/file/index.js +4 -4
- package/node/ftps/index.js +4 -4
- package/node/images/format/index.js +2 -2
- package/node/images/index.js +35 -35
- package/node/images/prepare/index.js +35 -35
- package/node/images/transform/_utils/color-schema/index.js +2 -2
- package/node/images/transform/_utils/positions/index.d.ts +8 -22
- package/node/images/transform/_utils/positions/index.js +2 -2
- package/node/images/transform/blur/index.js +2 -2
- package/node/images/transform/brighten/index.js +2 -2
- package/node/images/transform/compose/index.js +4 -4
- package/node/images/transform/extend/index.js +3 -3
- package/node/images/transform/extract/index.js +2 -2
- package/node/images/transform/flatten/index.js +3 -3
- package/node/images/transform/flip/index.js +2 -2
- package/node/images/transform/flop/index.js +2 -2
- package/node/images/transform/frame/backgrounds/create-line-background/index.d.ts +34 -127
- package/node/images/transform/frame/backgrounds/create-line-background/index.js +2 -2
- package/node/images/transform/frame/backgrounds/create-tile-background/index.d.ts +75 -76
- package/node/images/transform/frame/backgrounds/create-tile-background/index.js +2 -2
- package/node/images/transform/frame/index.js +6 -6
- package/node/images/transform/hue-rotate/index.js +2 -2
- package/node/images/transform/index.js +33 -33
- package/node/images/transform/lighten/index.js +2 -2
- package/node/images/transform/lineate-levels/index.js +2 -2
- package/node/images/transform/modulate/index.js +2 -2
- package/node/images/transform/normalize/index.js +2 -2
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +4 -4
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +5 -5
- package/node/images/transform/operations/_utils/frame/index.js +8 -8
- package/node/images/transform/resize/index.js +3 -3
- package/node/images/transform/rotate/index.js +2 -2
- package/node/images/transform/saturate/index.js +2 -2
- package/node/images/transform/scale/index.js +3 -3
- package/node/sftp/file/index.js +4 -4
- package/node/sftp/index.js +4 -4
- package/package.json +9 -7
- package/chunks/chunk-26QQ56SS.js +0 -36
- package/chunks/chunk-2H5RIOJO.js +0 -16
- package/chunks/chunk-2HU2AWWJ.js +0 -35
- package/chunks/chunk-2M5P5V6U.js +0 -56
- package/chunks/chunk-2PNFMIXN.js +0 -20
- package/chunks/chunk-2VXYXVV2.js +0 -164
- package/chunks/chunk-32FNUJVW.js +0 -31
- package/chunks/chunk-334MFRHI.js +0 -56
- package/chunks/chunk-336RBB5E.js +0 -151
- package/chunks/chunk-33YK4WOA.js +0 -18
- package/chunks/chunk-36CTYZYA.js +0 -28
- package/chunks/chunk-3CZNTEF7.js +0 -151
- package/chunks/chunk-3KN4IIQU.js +0 -23
- package/chunks/chunk-3LPD7IXF.js +0 -56
- package/chunks/chunk-3UM5CZA5.js +0 -18
- package/chunks/chunk-3XNFVOJF.js +0 -20
- package/chunks/chunk-422KBDRV.js +0 -203
- package/chunks/chunk-454MZ5UE.js +0 -239
- package/chunks/chunk-45WKBXSF.js +0 -39
- package/chunks/chunk-4A2IILES.js +0 -16
- package/chunks/chunk-4ARTWFW5.js +0 -164
- package/chunks/chunk-4CAHGPFA.js +0 -32
- package/chunks/chunk-4HLAM4RP.js +0 -191
- package/chunks/chunk-4OCP2WZM.js +0 -100
- package/chunks/chunk-4PJWXOLA.js +0 -16
- package/chunks/chunk-4QHGUANF.js +0 -19
- package/chunks/chunk-4TGRV2AB.js +0 -18
- package/chunks/chunk-4WM6K5IZ.js +0 -30
- package/chunks/chunk-4WZEYD3R.js +0 -56
- package/chunks/chunk-55EDDDIA.js +0 -16
- package/chunks/chunk-5GBYBDYQ.js +0 -36
- package/chunks/chunk-5IPSIDXB.js +0 -31
- package/chunks/chunk-5J7H5WYC.js +0 -82
- package/chunks/chunk-5JAITHS2.js +0 -48
- package/chunks/chunk-5JNJVGDX.js +0 -20
- package/chunks/chunk-5M7ZTA56.js +0 -43
- package/chunks/chunk-5OBHNGEH.js +0 -20
- package/chunks/chunk-5RGHYFQH.js +0 -70
- package/chunks/chunk-5SWBMXLR.js +0 -98
- package/chunks/chunk-5YIC7NDS.js +0 -18
- package/chunks/chunk-662SOZWA.js +0 -19
- package/chunks/chunk-6EIF24H5.js +0 -35
- package/chunks/chunk-6HPXM6ED.js +0 -20
- package/chunks/chunk-6IZ5HUJJ.js +0 -21
- package/chunks/chunk-6V7VQ32U.js +0 -56
- package/chunks/chunk-6WVNJVBE.js +0 -34
- package/chunks/chunk-6Y7RZ5WD.js +0 -48
- package/chunks/chunk-6Z6GDMOR.js +0 -28
- package/chunks/chunk-6ZBDBWLW.js +0 -164
- package/chunks/chunk-76QORXDC.js +0 -19
- package/chunks/chunk-7BCQCDGQ.js +0 -31
- package/chunks/chunk-7DDXALPH.js +0 -49
- package/chunks/chunk-7FJKDVBE.js +0 -49
- package/chunks/chunk-7JUKBN7P.js +0 -54
- package/chunks/chunk-7N7BJA6C.js +0 -36
- package/chunks/chunk-7OK5NZTY.js +0 -18
- package/chunks/chunk-7SS2R4B6.js +0 -82
- package/chunks/chunk-7SZ3QPTM.js +0 -191
- package/chunks/chunk-7YSTZ7GY.js +0 -31
- package/chunks/chunk-7Z7CKAOH.js +0 -98
- package/chunks/chunk-A6OSVHIK.js +0 -20
- package/chunks/chunk-ADTQQNIQ.js +0 -47
- package/chunks/chunk-AHSYVIOF.js +0 -18
- package/chunks/chunk-AIESW26U.js +0 -47
- package/chunks/chunk-AMXIZUFB.js +0 -16
- package/chunks/chunk-AUJB3IJD.js +0 -20
- package/chunks/chunk-AZLVQV5A.js +0 -39
- package/chunks/chunk-AZOSX3LU.js +0 -191
- package/chunks/chunk-B446JIN3.js +0 -29
- package/chunks/chunk-B4XUXE7E.js +0 -18
- package/chunks/chunk-B5XLWFTJ.js +0 -20
- package/chunks/chunk-BANYGSW4.js +0 -20
- package/chunks/chunk-BGZ5OVVN.js +0 -20
- package/chunks/chunk-BONBND7I.js +0 -239
- package/chunks/chunk-BPBWY4OT.js +0 -191
- package/chunks/chunk-BQMQIW77.js +0 -69
- package/chunks/chunk-BWKM2VQJ.js +0 -191
- package/chunks/chunk-BWXVJB4I.js +0 -20
- package/chunks/chunk-BZHH4R64.js +0 -20
- package/chunks/chunk-C3ZKLONL.js +0 -21
- package/chunks/chunk-CHA42BGS.js +0 -48
- package/chunks/chunk-CHUOCTRP.js +0 -26
- package/chunks/chunk-CKCTYZF7.js +0 -48
- package/chunks/chunk-CM6AHRTS.js +0 -16
- package/chunks/chunk-CMWR77VW.js +0 -54
- package/chunks/chunk-CSZFW4R5.js +0 -69
- package/chunks/chunk-CYIUZX2T.js +0 -31
- package/chunks/chunk-D33KC6NN.js +0 -18
- package/chunks/chunk-D5E2CIDK.js +0 -20
- package/chunks/chunk-DAOJPBZ6.js +0 -18
- package/chunks/chunk-DEQ5N53D.js +0 -21
- package/chunks/chunk-DHCDZVLA.js +0 -19
- package/chunks/chunk-DPBYDWV3.js +0 -2369
- package/chunks/chunk-DTETQT5O.js +0 -15
- package/chunks/chunk-DW4ILX77.js +0 -28
- package/chunks/chunk-E2BDKTLL.js +0 -48
- package/chunks/chunk-E3GK7YZ7.js +0 -65
- package/chunks/chunk-E4RVKTMW.js +0 -56
- package/chunks/chunk-E6HDM2M4.js +0 -191
- package/chunks/chunk-E7J4E6OB.js +0 -65
- package/chunks/chunk-EA4L7AGZ.js +0 -48
- package/chunks/chunk-EBVYO2TY.js +0 -48
- package/chunks/chunk-ECGOI4MT.js +0 -20
- package/chunks/chunk-ECWDSMDZ.js +0 -20
- package/chunks/chunk-EM37BFXO.js +0 -35
- package/chunks/chunk-FCLAFRIW.js +0 -177
- package/chunks/chunk-FCMQVBJW.js +0 -20
- package/chunks/chunk-FFNIZRZU.js +0 -31
- package/chunks/chunk-FHHXI6WC.js +0 -31
- package/chunks/chunk-FIVB3FON.js +0 -56
- package/chunks/chunk-FJ3NTVCG.js +0 -18
- package/chunks/chunk-FMRPJBUC.js +0 -20
- package/chunks/chunk-FNJX5BML.js +0 -23
- package/chunks/chunk-FRP47Y6H.js +0 -2456
- package/chunks/chunk-FTT6ZCCS.js +0 -29
- package/chunks/chunk-FVFYLT5T.js +0 -31
- package/chunks/chunk-G2M3VECP.js +0 -20
- package/chunks/chunk-G3HAKMUB.js +0 -79
- package/chunks/chunk-G5UR6736.js +0 -31
- package/chunks/chunk-G66DWXF3.js +0 -31
- package/chunks/chunk-GCHQD7MH.js +0 -63
- package/chunks/chunk-GD6Y5QJV.js +0 -98
- package/chunks/chunk-GOTTGEXI.js +0 -23
- package/chunks/chunk-GRDFCI63.js +0 -21
- package/chunks/chunk-GSZSM3BU.js +0 -37
- package/chunks/chunk-GVS2ZPGJ.js +0 -2456
- package/chunks/chunk-GXICX4F6.js +0 -31
- package/chunks/chunk-H73SGDQI.js +0 -20
- package/chunks/chunk-H7LDIXVY.js +0 -48
- package/chunks/chunk-HALUZA2X.js +0 -16
- package/chunks/chunk-HBKSSDSX.js +0 -20
- package/chunks/chunk-HDK7W7GS.js +0 -20
- package/chunks/chunk-HFH6DXXC.js +0 -2456
- package/chunks/chunk-HFIE4SBE.js +0 -16
- package/chunks/chunk-HFV7VACE.js +0 -191
- package/chunks/chunk-HGQGQLLC.js +0 -4430
- package/chunks/chunk-HNKD4ZRZ.js +0 -177
- package/chunks/chunk-HUC2IRGW.js +0 -205
- package/chunks/chunk-HUT6SDJH.js +0 -2369
- package/chunks/chunk-HV2AHV5R.js +0 -164
- package/chunks/chunk-HZGGYNZ5.js +0 -2369
- package/chunks/chunk-I37MGRCT.js +0 -20
- package/chunks/chunk-IARWH6LC.js +0 -34
- package/chunks/chunk-IJAFLBHD.js +0 -16
- package/chunks/chunk-ISFXCV7D.js +0 -20
- package/chunks/chunk-IUURENUN.js +0 -22
- package/chunks/chunk-IWWAMCNR.js +0 -16
- package/chunks/chunk-IXM6DCIE.js +0 -151
- package/chunks/chunk-IYV3EEYX.js +0 -20
- package/chunks/chunk-J35QFU6O.js +0 -21
- package/chunks/chunk-JBDWHJ4Q.js +0 -31
- package/chunks/chunk-JBUM5Q5C.js +0 -48
- package/chunks/chunk-JBZR6R5B.js +0 -15
- package/chunks/chunk-JJ7PBKSG.js +0 -37
- package/chunks/chunk-JJWKHBXD.js +0 -68
- package/chunks/chunk-JLXITDAV.js +0 -48
- package/chunks/chunk-JMA64OLZ.js +0 -191
- package/chunks/chunk-JQRLQUMJ.js +0 -16
- package/chunks/chunk-JR76DLSV.js +0 -151
- package/chunks/chunk-JS3NE4VI.js +0 -2456
- package/chunks/chunk-JSKVNOTW.js +0 -56
- package/chunks/chunk-JUF5GSDE.js +0 -37
- package/chunks/chunk-JWF5EKM2.js +0 -127
- package/chunks/chunk-JX45LILQ.js +0 -164
- package/chunks/chunk-JYYW4KOZ.js +0 -72
- package/chunks/chunk-K4Q2MG65.js +0 -56
- package/chunks/chunk-K66UXFDQ.js +0 -63
- package/chunks/chunk-KBCULP7X.js +0 -177
- package/chunks/chunk-KC76PUJY.js +0 -48
- package/chunks/chunk-KDTKA3SG.js +0 -31
- package/chunks/chunk-KFMYB672.js +0 -31
- package/chunks/chunk-KH5JTC2N.js +0 -49
- package/chunks/chunk-KL6EJPC3.js +0 -35
- package/chunks/chunk-KN23H4CI.js +0 -20
- package/chunks/chunk-KTK3BMX2.js +0 -56
- package/chunks/chunk-L7EUEQZP.js +0 -0
- package/chunks/chunk-LFSYWGO5.js +0 -31
- package/chunks/chunk-LH6Z6NJY.js +0 -191
- package/chunks/chunk-LMPEBXSU.js +0 -31
- package/chunks/chunk-LOAOXFA2.js +0 -2369
- package/chunks/chunk-LOY7C5BP.js +0 -151
- package/chunks/chunk-LSOHLSF5.js +0 -32
- package/chunks/chunk-LVBXPZUO.js +0 -104
- package/chunks/chunk-LZ4P3AYG.js +0 -2456
- package/chunks/chunk-MAE5XZGF.js +0 -37
- package/chunks/chunk-MDVYILPB.js +0 -56
- package/chunks/chunk-MFK63FMI.js +0 -31
- package/chunks/chunk-MFWKY3DT.js +0 -32
- package/chunks/chunk-MOBGB2PH.js +0 -54
- package/chunks/chunk-MTGZYBK2.js +0 -129
- package/chunks/chunk-MTT7TVR3.js +0 -127
- package/chunks/chunk-MV2LDBDF.js +0 -164
- package/chunks/chunk-MVNQWIVH.js +0 -151
- package/chunks/chunk-MW3KNVTG.js +0 -29
- package/chunks/chunk-MXGGOCLX.js +0 -56
- package/chunks/chunk-MZKZI6JL.js +0 -37
- package/chunks/chunk-MZZOFFFT.js +0 -21
- package/chunks/chunk-N32W4UQ6.js +0 -16
- package/chunks/chunk-N5QAGJXV.js +0 -49
- package/chunks/chunk-NA3M6VUU.js +0 -20
- package/chunks/chunk-NA7PT2KE.js +0 -21
- package/chunks/chunk-NAP2XNYN.js +0 -23
- package/chunks/chunk-NFIEXASV.js +0 -164
- package/chunks/chunk-NJ4ANCLV.js +0 -65
- package/chunks/chunk-NOBTN4IW.js +0 -4471
- package/chunks/chunk-NSM7QLE4.js +0 -20
- package/chunks/chunk-NZLE2WMY.js +0 -35
- package/chunks/chunk-O7UEQQ6H.js +0 -49
- package/chunks/chunk-OD33BN4K.js +0 -32
- package/chunks/chunk-OPU4CANL.js +0 -35
- package/chunks/chunk-OSCBZIZF.js +0 -28
- package/chunks/chunk-OSZ4BWDE.js +0 -32
- package/chunks/chunk-OUJTDMHK.js +0 -16
- package/chunks/chunk-OWCPJD6O.js +0 -16
- package/chunks/chunk-OXV3LVNK.js +0 -191
- package/chunks/chunk-P3QFJTAE.js +0 -129
- package/chunks/chunk-P5OGBBGM.js +0 -37
- package/chunks/chunk-PCTJ7TUG.js +0 -191
- package/chunks/chunk-PEUWFUEZ.js +0 -98
- package/chunks/chunk-PSP2DKDH.js +0 -151
- package/chunks/chunk-Q2ZS3QNB.js +0 -151
- package/chunks/chunk-Q4MSGUKR.js +0 -37
- package/chunks/chunk-QAE3OWOI.js +0 -79
- package/chunks/chunk-QHQPS7EU.js +0 -31
- package/chunks/chunk-QN3UAKIU.js +0 -21
- package/chunks/chunk-QPHK5QI7.js +0 -4072
- package/chunks/chunk-QPT6R6CL.js +0 -100
- package/chunks/chunk-QSSQOTGV.js +0 -20
- package/chunks/chunk-QUDIXNB2.js +0 -18
- package/chunks/chunk-QVIRBFMQ.js +0 -31
- package/chunks/chunk-QWFEYLHG.js +0 -79
- package/chunks/chunk-R6F2MFZZ.js +0 -173
- package/chunks/chunk-R7J7Q2UL.js +0 -20
- package/chunks/chunk-RDIF5NJQ.js +0 -151
- package/chunks/chunk-REN2I723.js +0 -98
- package/chunks/chunk-RGGOIE34.js +0 -20
- package/chunks/chunk-RLTBF5FT.js +0 -23
- package/chunks/chunk-RPWYARS3.js +0 -18
- package/chunks/chunk-RQECU6DI.js +0 -56
- package/chunks/chunk-RVZ32GPI.js +0 -55
- package/chunks/chunk-S2PB2PLY.js +0 -191
- package/chunks/chunk-SA2IY5LN.js +0 -35
- package/chunks/chunk-SARTUWB5.js +0 -20
- package/chunks/chunk-SC54OKBX.js +0 -43
- package/chunks/chunk-SDFTYOAK.js +0 -20
- package/chunks/chunk-SJFY537W.js +0 -84
- package/chunks/chunk-SLCGLOYM.js +0 -37
- package/chunks/chunk-SNRRHDIZ.js +0 -31
- package/chunks/chunk-SZQHLC4K.js +0 -31
- package/chunks/chunk-T2T5BYTW.js +0 -18
- package/chunks/chunk-T55QIYYV.js +0 -32
- package/chunks/chunk-T6IC7JVI.js +0 -37
- package/chunks/chunk-TC7A4P5S.js +0 -34
- package/chunks/chunk-TDOBYMTK.js +0 -56
- package/chunks/chunk-TEBR4NTW.js +0 -37
- package/chunks/chunk-TP6V6CBV.js +0 -177
- package/chunks/chunk-TPMYILTC.js +0 -191
- package/chunks/chunk-TU3UWOAE.js +0 -56
- package/chunks/chunk-TXGV4KJD.js +0 -31
- package/chunks/chunk-TZ7MNWDS.js +0 -20
- package/chunks/chunk-U3L3X27Q.js +0 -177
- package/chunks/chunk-U4UHXVMV.js +0 -37
- package/chunks/chunk-U5WEI3QA.js +0 -18
- package/chunks/chunk-U7CF7IDN.js +0 -35
- package/chunks/chunk-U7R6TPHR.js +0 -15
- package/chunks/chunk-UBCUVSEV.js +0 -35
- package/chunks/chunk-UERX6XGZ.js +0 -21
- package/chunks/chunk-UFKH5WD2.js +0 -21
- package/chunks/chunk-UJN2WZGO.js +0 -32
- package/chunks/chunk-UNHNZAVP.js +0 -18
- package/chunks/chunk-UODICVLG.js +0 -173
- package/chunks/chunk-UUSZJMJB.js +0 -37
- package/chunks/chunk-UUU6DWRQ.js +0 -79
- package/chunks/chunk-UVSTFYSD.js +0 -28
- package/chunks/chunk-UYRX3PTS.js +0 -2456
- package/chunks/chunk-UZPXYAJR.js +0 -177
- package/chunks/chunk-V4KSJHTU.js +0 -20
- package/chunks/chunk-V4S34MIM.js +0 -32
- package/chunks/chunk-VDT6ODFV.js +0 -20
- package/chunks/chunk-VHAGPTVR.js +0 -37
- package/chunks/chunk-VHPX7UA3.js +0 -177
- package/chunks/chunk-VLC7LRED.js +0 -191
- package/chunks/chunk-VLHSIIPO.js +0 -20
- package/chunks/chunk-VQUF2TSY.js +0 -191
- package/chunks/chunk-VR5JHUKK.js +0 -32
- package/chunks/chunk-VSBRIQPH.js +0 -48
- package/chunks/chunk-VWLJ5IEE.js +0 -31
- package/chunks/chunk-W6JPRXQ4.js +0 -16
- package/chunks/chunk-WC2LQPQP.js +0 -26
- package/chunks/chunk-WDXNM5YB.js +0 -20
- package/chunks/chunk-WGQHXHXS.js +0 -31
- package/chunks/chunk-WH5V6GK7.js +0 -56
- package/chunks/chunk-WHAUJMMG.js +0 -32
- package/chunks/chunk-WIJBRYJ6.js +0 -20
- package/chunks/chunk-WJYMX7SS.js +0 -21
- package/chunks/chunk-WLGIDY6A.js +0 -2456
- package/chunks/chunk-WMSE5GRO.js +0 -63
- package/chunks/chunk-WO2R3QFK.js +0 -20
- package/chunks/chunk-WOGRENMM.js +0 -31
- package/chunks/chunk-WQKFVIUF.js +0 -37
- package/chunks/chunk-WR64YJNW.js +0 -20
- package/chunks/chunk-WRRA3BN4.js +0 -31
- package/chunks/chunk-WTILPGGX.js +0 -69
- package/chunks/chunk-WU3JQC7W.js +0 -164
- package/chunks/chunk-WU7NORZV.js +0 -191
- package/chunks/chunk-X244JGZD.js +0 -69
- package/chunks/chunk-X24BLY5H.js +0 -31
- package/chunks/chunk-X34YXAEL.js +0 -31
- package/chunks/chunk-X5FAZBWL.js +0 -130
- package/chunks/chunk-X6WCMUOP.js +0 -18
- package/chunks/chunk-X7KWB2VQ.js +0 -21
- package/chunks/chunk-XAZT2MME.js +0 -56
- package/chunks/chunk-XB3YCG6I.js +0 -48
- package/chunks/chunk-XB3ZOIHH.js +0 -2456
- package/chunks/chunk-XEAHMN2T.js +0 -4063
- package/chunks/chunk-XEMFIV2W.js +0 -177
- package/chunks/chunk-XF5QBETN.js +0 -48
- package/chunks/chunk-XN44EWRS.js +0 -21
- package/chunks/chunk-XQMUFSLU.js +0 -16
- package/chunks/chunk-XRUSQWPJ.js +0 -173
- package/chunks/chunk-XSVBWVVC.js +0 -20
- package/chunks/chunk-XVYKCWPR.js +0 -48
- package/chunks/chunk-XZ7II65Z.js +0 -31
- package/chunks/chunk-Y5GGIBPI.js +0 -31
- package/chunks/chunk-Y7YEYHRZ.js +0 -69
- package/chunks/chunk-YCSC7QNV.js +0 -30
- package/chunks/chunk-YE67BQQN.js +0 -4072
- package/chunks/chunk-YEYXAV23.js +0 -16
- package/chunks/chunk-YLJBKSLO.js +0 -56
- package/chunks/chunk-YLKBLE6G.js +0 -30
- package/chunks/chunk-YMF7CUJA.js +0 -20
- package/chunks/chunk-YMRGCRQ4.js +0 -48
- package/chunks/chunk-YRQ7LODK.js +0 -177
- package/chunks/chunk-YSDPTGYO.js +0 -31
- package/chunks/chunk-YUJJEKYY.js +0 -144
- package/chunks/chunk-YVEMIEOT.js +0 -203
- package/chunks/chunk-YW5ASSIQ.js +0 -31
- package/chunks/chunk-YYA5VRE4.js +0 -177
- package/chunks/chunk-YZYA7LFK.js +0 -20
- package/chunks/chunk-Z2CU55CF.js +0 -20
- package/chunks/chunk-Z6ZTRJ67.js +0 -177
- package/chunks/chunk-ZBQEB3X7.js +0 -4430
- package/chunks/chunk-ZLNDBNP4.js +0 -31
- package/chunks/chunk-ZMMNN3QA.js +0 -16
- package/chunks/chunk-ZQ7ZC7TZ.js +0 -56
- package/chunks/chunk-ZSPOYMNQ.js +0 -151
- package/chunks/chunk-ZVBMPJLH.js +0 -48
- package/chunks/chunk-ZVZAGTIT.js +0 -151
- package/chunks/chunk-ZZH6RUS3.js +0 -48
- package/node/@design-edito/thumbnails/colors/index.d.ts +0 -38
- package/node/@design-edito/thumbnails/colors/index.js +0 -33
- package/node/@design-edito/thumbnails/common/index.d.ts +0 -5
- package/node/@design-edito/thumbnails/common/index.js +0 -15
- package/node/@design-edito/thumbnails/easings/index.d.ts +0 -8
- package/node/@design-edito/thumbnails/easings/index.js +0 -21
- package/node/@design-edito/thumbnails/layout/index.d.ts +0 -63
- package/node/@design-edito/thumbnails/layout/index.js +0 -31
- package/node/@google-cloud/storage/bucket/list/index.d.ts +0 -17
- package/node/@google-cloud/storage/bucket/list/index.js +0 -9
- package/node/@google-cloud/storage/file/erase/index.d.ts +0 -20
- package/node/@google-cloud/storage/file/erase/index.js +0 -9
- package/node/cloud-storage/client/index.d.ts +0 -14
- package/node/cloud-storage/client/index.js +0 -20
- package/node/cloud-storage/credentials/index.d.ts +0 -39
- package/node/cloud-storage/credentials/index.js +0 -18
- package/node/cloud-storage/endpoint/index.d.ts +0 -24
- package/node/cloud-storage/endpoint/index.js +0 -13
- package/node/cloud-storage/operations/download/index.d.ts +0 -5
- package/node/cloud-storage/operations/download/index.js +0 -14
- package/node/cloud-storage/operations/upload/index.d.ts +0 -5
- package/node/cloud-storage/operations/upload/index.js +0 -14
- package/node/images/exports/index.d.ts +0 -15
- package/node/images/exports/index.js +0 -9
- package/node/images/transform/area-composition/index.d.ts +0 -60
- package/node/images/transform/area-composition/index.js +0 -15
- package/node/images/transform/operations/area-composition/area-line-composition/index.d.ts +0 -19
- package/node/images/transform/operations/area-composition/area-line-composition/index.js +0 -14
- package/node/images/transform/operations/area-composition/area-tile-composition/index.d.ts +0 -30
- package/node/images/transform/operations/area-composition/area-tile-composition/index.js +0 -15
- package/node/images/transform/operations/area-composition/index.d.ts +0 -31
- package/node/images/transform/operations/area-composition/index.js +0 -15
- package/node/images/transform/operations/inner-resize/index.d.ts +0 -25
- package/node/images/transform/operations/inner-resize/index.js +0 -13
- package/chunks/{chunk-2RUBEK4A.js → chunk-3BSVGWTK.js} +12 -12
- package/chunks/{chunk-INGSSBWK.js → chunk-3RLCDQOJ.js} +8 -8
- package/chunks/{chunk-3G7KHSKB.js → chunk-4BPSIDYW.js} +15 -15
- package/chunks/{chunk-45LGGA3Z.js → chunk-4EFX53Y4.js} +7 -7
- package/chunks/{chunk-IWZAUQGO.js → chunk-6LDTWID7.js} +8 -8
- package/chunks/{chunk-PENYZ6S7.js → chunk-7HSB4A2G.js} +8 -8
- package/chunks/{chunk-6ET4XJLF.js → chunk-AY7SJG3R.js} +7 -7
- package/chunks/{chunk-OD7GR6ZF.js → chunk-CAV4FNVR.js} +11 -11
- package/chunks/{chunk-KBFSUJ57.js → chunk-HD7QU6D6.js} +6 -6
- package/chunks/{chunk-RTUTFCLC.js → chunk-HRWQVASA.js} +6 -6
- package/chunks/{chunk-IIMP6YT7.js → chunk-HY4V3SPP.js} +14 -14
- package/chunks/{chunk-3DL3U7UR.js → chunk-LNL6TUDC.js} +8 -8
- package/chunks/{chunk-4Y5XR6WC.js → chunk-OL4JB46K.js} +14 -14
- package/chunks/{chunk-766BSKLU.js → chunk-PGT5NXPS.js} +3 -3
- package/chunks/{chunk-YVLZX2JQ.js → chunk-SHXOKSK3.js} +3 -3
- package/chunks/{chunk-56OEXCBD.js → chunk-VISMB7RN.js} +11 -11
- package/chunks/{chunk-AQTNG5G4.js → chunk-Z4B2Z7QO.js} +18 -18
- package/chunks/{chunk-236C4IHT.js → chunk-ZKAK6JOS.js} +6 -6
package/chunks/chunk-MAE5XZGF.js
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Cast,
|
3
|
-
Tree,
|
4
|
-
Utils
|
5
|
-
} from "./chunk-LOAOXFA2.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
|
-
};
|
package/chunks/chunk-MDVYILPB.js
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
update_metadata_exports
|
3
|
-
} from "./chunk-YW5ASSIQ.js";
|
4
|
-
import {
|
5
|
-
generate_signed_url_exports
|
6
|
-
} from "./chunk-OPU4CANL.js";
|
7
|
-
import {
|
8
|
-
get_permissions_exports
|
9
|
-
} from "./chunk-GXICX4F6.js";
|
10
|
-
import {
|
11
|
-
exists_exports
|
12
|
-
} from "./chunk-TXGV4KJD.js";
|
13
|
-
import {
|
14
|
-
get_metadata_exports
|
15
|
-
} from "./chunk-KFMYB672.js";
|
16
|
-
import {
|
17
|
-
move_exports
|
18
|
-
} from "./chunk-T55QIYYV.js";
|
19
|
-
import {
|
20
|
-
revoke_signed_urls_exports
|
21
|
-
} from "./chunk-UUSZJMJB.js";
|
22
|
-
import {
|
23
|
-
erase_exports
|
24
|
-
} from "./chunk-7BCQCDGQ.js";
|
25
|
-
import {
|
26
|
-
copy_exports
|
27
|
-
} from "./chunk-SZQHLC4K.js";
|
28
|
-
import {
|
29
|
-
download_exports
|
30
|
-
} from "./chunk-IARWH6LC.js";
|
31
|
-
import {
|
32
|
-
upload_exports
|
33
|
-
} from "./chunk-7FJKDVBE.js";
|
34
|
-
import {
|
35
|
-
__export
|
36
|
-
} from "./chunk-NZLE2WMY.js";
|
37
|
-
|
38
|
-
// src/node/@google-cloud/storage/file/index.ts
|
39
|
-
var file_exports = {};
|
40
|
-
__export(file_exports, {
|
41
|
-
Copy: () => copy_exports,
|
42
|
-
Download: () => download_exports,
|
43
|
-
Erase: () => erase_exports,
|
44
|
-
Exists: () => exists_exports,
|
45
|
-
GenerateSignedUrl: () => generate_signed_url_exports,
|
46
|
-
GetMetaData: () => get_metadata_exports,
|
47
|
-
GetPermissions: () => get_permissions_exports,
|
48
|
-
Move: () => move_exports,
|
49
|
-
RevokeSignedUrls: () => revoke_signed_urls_exports,
|
50
|
-
UpdateMetadata: () => update_metadata_exports,
|
51
|
-
Upload: () => upload_exports
|
52
|
-
});
|
53
|
-
|
54
|
-
export {
|
55
|
-
file_exports
|
56
|
-
};
|
package/chunks/chunk-MFK63FMI.js
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
colorSchema
|
3
|
-
} from "./chunk-U7R6TPHR.js";
|
4
|
-
import {
|
5
|
-
esm_default
|
6
|
-
} from "./chunk-YE67BQQN.js";
|
7
|
-
import {
|
8
|
-
OperationNames
|
9
|
-
} from "./chunk-MOVLLUDL.js";
|
10
|
-
|
11
|
-
// src/node/images/transform/extend/index.ts
|
12
|
-
var extendSchema = esm_default.object({
|
13
|
-
name: esm_default.literal(OperationNames.Extend),
|
14
|
-
params: esm_default.object({
|
15
|
-
top: esm_default.number(),
|
16
|
-
left: esm_default.number(),
|
17
|
-
right: esm_default.number(),
|
18
|
-
bottom: esm_default.number(),
|
19
|
-
background: colorSchema,
|
20
|
-
extendWith: esm_default.optional(esm_default.enum([
|
21
|
-
"background",
|
22
|
-
"copy",
|
23
|
-
"repeat",
|
24
|
-
"mirror"
|
25
|
-
]))
|
26
|
-
})
|
27
|
-
});
|
28
|
-
|
29
|
-
export {
|
30
|
-
extendSchema
|
31
|
-
};
|
package/chunks/chunk-MFWKY3DT.js
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Outcome
|
3
|
-
} from "./chunk-JMU5PDBD.js";
|
4
|
-
import {
|
5
|
-
unknownToString
|
6
|
-
} from "./chunk-FENXVJYO.js";
|
7
|
-
import {
|
8
|
-
__export
|
9
|
-
} from "./chunk-NZLE2WMY.js";
|
10
|
-
|
11
|
-
// src/node/ftps/file/download/index.ts
|
12
|
-
var download_exports = {};
|
13
|
-
__export(download_exports, {
|
14
|
-
download: () => download
|
15
|
-
});
|
16
|
-
import { PassThrough } from "node:stream";
|
17
|
-
async function download(sourcePath, ftpClient, options) {
|
18
|
-
const { startAt } = options ?? {};
|
19
|
-
const stream = new PassThrough();
|
20
|
-
try {
|
21
|
-
await ftpClient.downloadTo(stream, sourcePath, startAt);
|
22
|
-
return Outcome.makeSuccess(stream);
|
23
|
-
} catch (err) {
|
24
|
-
const errStr = unknownToString(err);
|
25
|
-
return Outcome.makeFailure(errStr);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
export {
|
30
|
-
download,
|
31
|
-
download_exports
|
32
|
-
};
|
package/chunks/chunk-MOBGB2PH.js
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
__export
|
3
|
-
} from "./chunk-NZLE2WMY.js";
|
4
|
-
|
5
|
-
// src/node/cloud-storage/endpoint/index.ts
|
6
|
-
var endpoint_exports = {};
|
7
|
-
__export(endpoint_exports, {
|
8
|
-
Type: () => Type,
|
9
|
-
ftpIdentifierData: () => ftpIdentifierData,
|
10
|
-
gcsIdentifierData: () => gcsIdentifierData,
|
11
|
-
s3IdentifierData: () => s3IdentifierData
|
12
|
-
});
|
13
|
-
var Type = /* @__PURE__ */ ((Type2) => {
|
14
|
-
Type2["GCS"] = "gcs-bucket";
|
15
|
-
Type2["S3"] = "s3-bucket";
|
16
|
-
Type2["FTP"] = "ftp";
|
17
|
-
Type2["FTPS"] = "ftps";
|
18
|
-
Type2["SFTP"] = "sftp";
|
19
|
-
return Type2;
|
20
|
-
})(Type || {});
|
21
|
-
function gcsIdentifierData(identifier) {
|
22
|
-
identifier = identifier.trim().replace(/^\//, "");
|
23
|
-
const [bucketName, ...pathChunks] = identifier.split("/");
|
24
|
-
return {
|
25
|
-
bucketName: bucketName ?? null,
|
26
|
-
path: `/${pathChunks.join("/")}`
|
27
|
-
};
|
28
|
-
}
|
29
|
-
function s3IdentifierData(identifier) {
|
30
|
-
identifier = identifier.trim().replace(/^\//, "");
|
31
|
-
const [bucketName, ...pathChunks] = identifier.split("/");
|
32
|
-
return {
|
33
|
-
bucketName: bucketName ?? null,
|
34
|
-
path: `/${pathChunks.join("/")}`
|
35
|
-
};
|
36
|
-
}
|
37
|
-
function ftpIdentifierData(identifier) {
|
38
|
-
identifier = identifier.trim().replace(/^\//, "");
|
39
|
-
const [hostAndPort, ...pathChunks] = identifier.split("/");
|
40
|
-
const [host, port] = hostAndPort?.split(":") ?? [];
|
41
|
-
return {
|
42
|
-
host: host ?? null,
|
43
|
-
port: port ?? null,
|
44
|
-
path: `/${pathChunks.join("/")}`
|
45
|
-
};
|
46
|
-
}
|
47
|
-
|
48
|
-
export {
|
49
|
-
Type,
|
50
|
-
gcsIdentifierData,
|
51
|
-
s3IdentifierData,
|
52
|
-
ftpIdentifierData,
|
53
|
-
endpoint_exports
|
54
|
-
};
|
package/chunks/chunk-MTGZYBK2.js
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
ftpIdentifierData,
|
3
|
-
gcsIdentifierData
|
4
|
-
} from "./chunk-MOBGB2PH.js";
|
5
|
-
import {
|
6
|
-
Outcome
|
7
|
-
} from "./chunk-JMU5PDBD.js";
|
8
|
-
import {
|
9
|
-
unknownToString
|
10
|
-
} from "./chunk-FENXVJYO.js";
|
11
|
-
import {
|
12
|
-
__export
|
13
|
-
} from "./chunk-NZLE2WMY.js";
|
14
|
-
|
15
|
-
// src/node/cloud-storage/client/index.ts
|
16
|
-
var client_exports = {};
|
17
|
-
__export(client_exports, {
|
18
|
-
makeClient: () => makeClient,
|
19
|
-
makeFtpClient: () => makeFtpClient,
|
20
|
-
makeFtpsClient: () => makeFtpsClient,
|
21
|
-
makeGcsClient: () => makeGcsClient,
|
22
|
-
makeS3Client: () => makeS3Client,
|
23
|
-
makeSftpClient: () => makeSftpClient
|
24
|
-
});
|
25
|
-
import { Storage } from "@google-cloud/storage";
|
26
|
-
import { S3 } from "aws-sdk";
|
27
|
-
import { Client as FtpClient } from "basic-ftp";
|
28
|
-
import SftpClient from "ssh2-sftp-client";
|
29
|
-
async function makeClient(endpointType, endpointIdentifier, credentials) {
|
30
|
-
if (endpointType === "gcs-bucket" /* GCS */) {
|
31
|
-
return makeGcsClient({ type: endpointType, identifier: endpointIdentifier }, credentials);
|
32
|
-
} else if (endpointType === "s3-bucket" /* S3 */) {
|
33
|
-
return makeS3Client(credentials);
|
34
|
-
} else if (endpointType === "ftp" /* FTP */) {
|
35
|
-
return await makeFtpClient({ type: endpointType, identifier: endpointIdentifier }, credentials);
|
36
|
-
} else if (endpointType === "ftps" /* FTPS */) {
|
37
|
-
return await makeFtpsClient({ type: endpointType, identifier: endpointIdentifier }, credentials);
|
38
|
-
} else if (endpointType === "sftp" /* SFTP */) {
|
39
|
-
return await makeSftpClient({ type: endpointType, identifier: endpointIdentifier }, credentials);
|
40
|
-
} else {
|
41
|
-
return Outcome.makeFailure(`Invalid endpoint type: ${endpointType}`);
|
42
|
-
}
|
43
|
-
}
|
44
|
-
function makeGcsClient(endpoint, credentials) {
|
45
|
-
const storage = new Storage({ credentials });
|
46
|
-
const { bucketName } = gcsIdentifierData(endpoint.identifier);
|
47
|
-
if (bucketName === null) return Outcome.makeFailure("Invalid GCS bucket name");
|
48
|
-
const bucket = storage.bucket(bucketName);
|
49
|
-
return Outcome.makeSuccess(bucket);
|
50
|
-
}
|
51
|
-
function makeS3Client(credentials) {
|
52
|
-
const s3 = new S3({ credentials });
|
53
|
-
return Outcome.makeSuccess(s3);
|
54
|
-
}
|
55
|
-
async function makeFtpClient(endpoint, credentials) {
|
56
|
-
const { host, port, path } = ftpIdentifierData(endpoint.identifier);
|
57
|
-
if (host === null) return Outcome.makeFailure("Invalid host information");
|
58
|
-
if (port === null) return Outcome.makeFailure("Invalid port information");
|
59
|
-
const client = new FtpClient();
|
60
|
-
try {
|
61
|
-
await client.access({
|
62
|
-
host,
|
63
|
-
port: parseInt(port),
|
64
|
-
user: credentials.username,
|
65
|
-
password: credentials.password
|
66
|
-
});
|
67
|
-
await client.cd(path);
|
68
|
-
return Outcome.makeSuccess(client);
|
69
|
-
} catch (err) {
|
70
|
-
unknownToString(err);
|
71
|
-
return Outcome.makeFailure(unknownToString(err));
|
72
|
-
}
|
73
|
-
}
|
74
|
-
async function makeFtpsClient(endpoint, credentials) {
|
75
|
-
const { host, port, path } = ftpIdentifierData(endpoint.identifier);
|
76
|
-
if (host === null) return Outcome.makeFailure("Invalid host information");
|
77
|
-
if (port === null) return Outcome.makeFailure("Invalid port information");
|
78
|
-
const client = new FtpClient();
|
79
|
-
try {
|
80
|
-
await client.access({
|
81
|
-
host,
|
82
|
-
port: parseInt(port),
|
83
|
-
user: credentials.username,
|
84
|
-
password: credentials.password,
|
85
|
-
secure: true,
|
86
|
-
secureOptions: credentials.implicit ? { rejectUnauthorized: false } : void 0
|
87
|
-
// Explicit mode uses STARTTLS
|
88
|
-
});
|
89
|
-
await client.cd(path);
|
90
|
-
return Outcome.makeSuccess(client);
|
91
|
-
} catch (err) {
|
92
|
-
return Outcome.makeFailure(unknownToString(err));
|
93
|
-
}
|
94
|
-
}
|
95
|
-
async function makeSftpClient(endpoint, credentials) {
|
96
|
-
const { host, port, path } = ftpIdentifierData(endpoint.identifier);
|
97
|
-
if (host === null) return Outcome.makeFailure("Invalid host information");
|
98
|
-
if (port === null) return Outcome.makeFailure("Invalid port information");
|
99
|
-
const sftp = new SftpClient();
|
100
|
-
try {
|
101
|
-
await sftp.connect({
|
102
|
-
host,
|
103
|
-
port: parseInt(port),
|
104
|
-
username: credentials.username,
|
105
|
-
password: credentials.password,
|
106
|
-
privateKey: credentials.privateKey,
|
107
|
-
passphrase: credentials.passphrase
|
108
|
-
});
|
109
|
-
try {
|
110
|
-
const stats = await sftp.stat(path);
|
111
|
-
if (!stats.isDirectory) return Outcome.makeFailure(`Target path exists but is not a directory: ${path}`);
|
112
|
-
} catch (err) {
|
113
|
-
return Outcome.makeFailure(`Target directory does not exist: ${path}`);
|
114
|
-
}
|
115
|
-
return Outcome.makeSuccess(sftp);
|
116
|
-
} catch (err) {
|
117
|
-
return Outcome.makeFailure(unknownToString(err));
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
export {
|
122
|
-
makeClient,
|
123
|
-
makeGcsClient,
|
124
|
-
makeS3Client,
|
125
|
-
makeFtpClient,
|
126
|
-
makeFtpsClient,
|
127
|
-
makeSftpClient,
|
128
|
-
client_exports
|
129
|
-
};
|
package/chunks/chunk-MTT7TVR3.js
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
register
|
3
|
-
} from "./chunk-WC2LQPQP.js";
|
4
|
-
|
5
|
-
// src/agnostic/html/sanitize/index.ts
|
6
|
-
var Sanitize;
|
7
|
-
((Sanitize2) => {
|
8
|
-
Sanitize2.defaultOptions = { depth: 20 };
|
9
|
-
function sanitize(inputStr, options = Sanitize2.defaultOptions) {
|
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 wrapperDiv = actualDocument.createElement("div");
|
13
|
-
const { inputFreeTransform } = options;
|
14
|
-
wrapperDiv.innerHTML = inputFreeTransform !== void 0 ? inputFreeTransform(inputStr) : inputStr;
|
15
|
-
const sanitizedWrapper = sanitizeElement(wrapperDiv, options);
|
16
|
-
const returned = sanitizedWrapper?.innerHTML;
|
17
|
-
return returned ?? "";
|
18
|
-
}
|
19
|
-
Sanitize2.sanitize = sanitize;
|
20
|
-
function sanitizeElement(element, options = Sanitize2.defaultOptions) {
|
21
|
-
const actualDocument = options.documentObj ?? window.document;
|
22
|
-
if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
|
23
|
-
const { tagName, attributes, childNodes } = element;
|
24
|
-
const {
|
25
|
-
allowedTags = [],
|
26
|
-
allowedAttributes = {},
|
27
|
-
forbiddenTags = [],
|
28
|
-
forbiddenAttributes = {},
|
29
|
-
depth = 20,
|
30
|
-
verbose = false
|
31
|
-
} = options;
|
32
|
-
if (depth <= 0) {
|
33
|
-
console.warn("Max depth reached");
|
34
|
-
return null;
|
35
|
-
}
|
36
|
-
const normalizedTagName = tagName.toLowerCase().trim();
|
37
|
-
const tagIsInForbidden = forbiddenTags.includes("*") || forbiddenTags.includes(normalizedTagName);
|
38
|
-
if (tagIsInForbidden) {
|
39
|
-
if (verbose === true) console.warn(tagName, "tag is forbidden");
|
40
|
-
return null;
|
41
|
-
}
|
42
|
-
const tagIsInAllowed = allowedTags.includes("*") || allowedTags.includes(normalizedTagName);
|
43
|
-
if (!tagIsInAllowed) {
|
44
|
-
if (verbose === true) console.warn(tagName, "tag is not allowed");
|
45
|
-
return null;
|
46
|
-
}
|
47
|
-
const returnedElement = actualDocument.createElement(tagName);
|
48
|
-
const returnedAttributes = Array.from(attributes).filter(({ name: attributeName, value: attributeValue }) => {
|
49
|
-
const allTagsForbiddenAttributes = forbiddenAttributes["*"] ?? [];
|
50
|
-
const thisTagForbiddenAttributes = forbiddenAttributes[normalizedTagName] ?? [];
|
51
|
-
const mergedForbiddenAttributes = [...allTagsForbiddenAttributes, ...thisTagForbiddenAttributes];
|
52
|
-
const isInForbidden = mergedForbiddenAttributes.some(({
|
53
|
-
attributeName: nameTester,
|
54
|
-
attributeValues: valTesters
|
55
|
-
}) => {
|
56
|
-
if (typeof nameTester === "string" && nameTester !== "*" && attributeName !== nameTester) return false;
|
57
|
-
if (typeof nameTester !== "string" && !nameTester.test(attributeName)) return false;
|
58
|
-
if (valTesters === void 0) {
|
59
|
-
if (verbose === true) console.warn(attributeName, "attribute on", tagName, "tag is forbidden");
|
60
|
-
return true;
|
61
|
-
}
|
62
|
-
if (valTesters.includes("*")) {
|
63
|
-
if (verbose === true) console.warn(attributeName, "attribute on", tagName, "tag is forbidden");
|
64
|
-
return true;
|
65
|
-
}
|
66
|
-
return valTesters.some((valTester) => {
|
67
|
-
if (typeof valTester === "string" && attributeValue === valTester) {
|
68
|
-
if (verbose === true) console.warn(attributeValue, "value for", attributeName, "attribute on", tagName, "tag is forbidden. Rule:", valTester);
|
69
|
-
return true;
|
70
|
-
}
|
71
|
-
if (typeof valTester !== "string" && valTester.test(attributeValue)) {
|
72
|
-
if (verbose === true) console.warn(attributeValue, "value for", attributeName, "attribute on", tagName, "tag is forbidden. Rule:", valTester);
|
73
|
-
return true;
|
74
|
-
}
|
75
|
-
return false;
|
76
|
-
});
|
77
|
-
});
|
78
|
-
if (isInForbidden) return false;
|
79
|
-
const allTagsAllowedAttributes = allowedAttributes["*"] ?? [];
|
80
|
-
const thisTagAllowedAttributes = allowedAttributes[normalizedTagName] ?? [];
|
81
|
-
const mergedAllowedAttributes = [...allTagsAllowedAttributes, ...thisTagAllowedAttributes];
|
82
|
-
let latestNotAllowedReason = [tagName, "has no allowed attributes"];
|
83
|
-
const isInAllowed = mergedAllowedAttributes.some(({
|
84
|
-
attributeName: nameTester,
|
85
|
-
attributeValues: valTesters
|
86
|
-
}) => {
|
87
|
-
if (typeof nameTester === "string" && nameTester !== "*" && attributeName !== nameTester) {
|
88
|
-
latestNotAllowedReason = [attributeName, "attribute on", tagName, "tag is not allowed"];
|
89
|
-
return false;
|
90
|
-
}
|
91
|
-
if (typeof nameTester !== "string" && !nameTester.test(attributeName)) {
|
92
|
-
latestNotAllowedReason = [attributeName, "attribute on", tagName, "tag is not allowed"];
|
93
|
-
return false;
|
94
|
-
}
|
95
|
-
if (valTesters === void 0) return true;
|
96
|
-
if (valTesters.includes("*")) return true;
|
97
|
-
return valTesters.some((valTester) => {
|
98
|
-
if (typeof valTester === "string" && attributeValue === valTester) return true;
|
99
|
-
if (typeof valTester !== "string" && valTester.test(attributeValue)) return true;
|
100
|
-
latestNotAllowedReason = [attributeValue, "value for", attributeName, "attribute on", tagName, "tag is not allowed"];
|
101
|
-
return false;
|
102
|
-
});
|
103
|
-
});
|
104
|
-
if (!isInAllowed) {
|
105
|
-
if (verbose === true) console.warn(...latestNotAllowedReason);
|
106
|
-
return false;
|
107
|
-
}
|
108
|
-
return true;
|
109
|
-
});
|
110
|
-
returnedAttributes.forEach(({ name, value }) => {
|
111
|
-
returnedElement.setAttribute(name, value);
|
112
|
-
});
|
113
|
-
const sanitizedChildNodes = Array.from(childNodes).map((node) => {
|
114
|
-
if (node.nodeType === Node.ELEMENT_NODE) return sanitizeElement(node, { ...options, depth: depth - 1 });
|
115
|
-
else if (node.nodeType === Node.TEXT_NODE) return node;
|
116
|
-
else if (options.keepComments === true && node.nodeType === Node.COMMENT_NODE) return node;
|
117
|
-
return null;
|
118
|
-
}).filter((elt) => elt !== null);
|
119
|
-
returnedElement.replaceChildren(...sanitizedChildNodes);
|
120
|
-
return returnedElement;
|
121
|
-
}
|
122
|
-
Sanitize2.sanitizeElement = sanitizeElement;
|
123
|
-
})(Sanitize || (Sanitize = {}));
|
124
|
-
|
125
|
-
export {
|
126
|
-
Sanitize
|
127
|
-
};
|
package/chunks/chunk-MV2LDBDF.js
DELETED
@@ -1,164 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
createColorPalette
|
3
|
-
} from "./chunk-5SWBMXLR.js";
|
4
|
-
import {
|
5
|
-
createLineBackground
|
6
|
-
} from "./chunk-WMSE5GRO.js";
|
7
|
-
import {
|
8
|
-
createTileBackground
|
9
|
-
} from "./chunk-CP454IJD.js";
|
10
|
-
import {
|
11
|
-
getRelativePxPositionsInWrapperFor
|
12
|
-
} from "./chunk-OCM3RLO6.js";
|
13
|
-
import {
|
14
|
-
clamp
|
15
|
-
} from "./chunk-OSAXBA7G.js";
|
16
|
-
|
17
|
-
// src/node/images/transform/operations/_utils/frame/index.ts
|
18
|
-
import sharp from "sharp";
|
19
|
-
async function frame(imageSharp, params) {
|
20
|
-
const imageMetadata = await imageSharp.metadata();
|
21
|
-
const imageDimensions = {
|
22
|
-
widthPx: imageMetadata.width ?? 0,
|
23
|
-
heightPx: imageMetadata.height ?? 0
|
24
|
-
};
|
25
|
-
const scaledImage = scaleImageToFrame(
|
26
|
-
imageSharp,
|
27
|
-
imageDimensions,
|
28
|
-
params.dimensions,
|
29
|
-
params.imageScale
|
30
|
-
);
|
31
|
-
imageSharp = scaledImage.sharpInstance;
|
32
|
-
imageDimensions.widthPx = scaledImage.widthPx;
|
33
|
-
imageDimensions.heightPx = scaledImage.heightPx;
|
34
|
-
const defaultBackgroundColorCreate = getDefaultBackgroundColor(params.background);
|
35
|
-
const imagePositions = getRelativePxPositionsInWrapperFor(imageDimensions, params.dimensions, params.positions);
|
36
|
-
const backgroundOverlays = await getBackgroundOverlays(
|
37
|
-
{
|
38
|
-
sharp: imageSharp,
|
39
|
-
dimensions: imageDimensions
|
40
|
-
},
|
41
|
-
params.background,
|
42
|
-
params.dimensions,
|
43
|
-
{
|
44
|
-
x: imagePositions.x,
|
45
|
-
y: imagePositions.y,
|
46
|
-
w: imageDimensions.widthPx,
|
47
|
-
h: imageDimensions.heightPx
|
48
|
-
}
|
49
|
-
);
|
50
|
-
const composition = [
|
51
|
-
...backgroundOverlays,
|
52
|
-
{
|
53
|
-
input: await imageSharp.toFormat("png").png({ quality: 100 }).toBuffer(),
|
54
|
-
/* Make sure we work with the best quality of our file */
|
55
|
-
left: imagePositions.x,
|
56
|
-
top: imagePositions.y
|
57
|
-
}
|
58
|
-
];
|
59
|
-
const frameSharpInstance = sharp({
|
60
|
-
create: {
|
61
|
-
background: defaultBackgroundColorCreate,
|
62
|
-
width: params.dimensions.widthPx,
|
63
|
-
height: params.dimensions.heightPx,
|
64
|
-
channels: 4
|
65
|
-
}
|
66
|
-
}).ensureAlpha(0).composite(composition).png({ quality: 100 });
|
67
|
-
return frameSharpInstance;
|
68
|
-
}
|
69
|
-
var scaleImageToFrame = (imageSharp, imageDimensions, frameDimensions, imageScale) => {
|
70
|
-
const scale = {
|
71
|
-
xRatio: 1,
|
72
|
-
yRatio: 1
|
73
|
-
};
|
74
|
-
const frameZoneDimensions = {
|
75
|
-
widthPx: frameDimensions.widthPx,
|
76
|
-
heightPx: frameDimensions.heightPx
|
77
|
-
};
|
78
|
-
if (imageScale) {
|
79
|
-
frameZoneDimensions.widthPx = frameDimensions.widthPx * (imageScale.xRatio || 1);
|
80
|
-
frameZoneDimensions.heightPx = frameDimensions.heightPx * (imageScale.yRatio || 1);
|
81
|
-
}
|
82
|
-
const containedRatiosPercents = getContainedRatios(
|
83
|
-
imageDimensions.widthPx,
|
84
|
-
imageDimensions.heightPx,
|
85
|
-
frameZoneDimensions.widthPx,
|
86
|
-
frameZoneDimensions.heightPx
|
87
|
-
);
|
88
|
-
if (imageScale || !imageScale && imageDimensions.widthPx < frameDimensions.widthPx && imageDimensions.heightPx < frameDimensions.heightPx) {
|
89
|
-
scale.xRatio = containedRatiosPercents.xPercent;
|
90
|
-
scale.yRatio = containedRatiosPercents.yPercent;
|
91
|
-
}
|
92
|
-
if (scale.xRatio !== 1 || scale.yRatio !== 1) {
|
93
|
-
imageDimensions.widthPx = clamp(Math.round(imageDimensions.widthPx * scale.xRatio), 0, frameDimensions.widthPx);
|
94
|
-
imageDimensions.heightPx = clamp(Math.round(imageDimensions.heightPx * scale.yRatio), 0, frameDimensions.heightPx);
|
95
|
-
imageSharp = imageSharp.resize({
|
96
|
-
width: imageDimensions.widthPx,
|
97
|
-
height: imageDimensions.heightPx,
|
98
|
-
fit: sharp.fit.inside,
|
99
|
-
position: "center",
|
100
|
-
fastShrinkOnLoad: false
|
101
|
-
});
|
102
|
-
}
|
103
|
-
return {
|
104
|
-
sharpInstance: imageSharp,
|
105
|
-
widthPx: imageDimensions.widthPx,
|
106
|
-
heightPx: imageDimensions.heightPx
|
107
|
-
};
|
108
|
-
};
|
109
|
-
var getDefaultBackgroundColor = (background) => {
|
110
|
-
if (background && (typeof background === "object" && "r" in background)) {
|
111
|
-
return {
|
112
|
-
r: background.r || 255,
|
113
|
-
g: background.g || 255,
|
114
|
-
b: background.b || 255,
|
115
|
-
alpha: background.alpha || 0
|
116
|
-
};
|
117
|
-
}
|
118
|
-
return { r: 255, g: 255, b: 255, alpha: 0 };
|
119
|
-
};
|
120
|
-
var getBackgroundOverlays = (imageInput, background, dimensions, imageCoordinates) => {
|
121
|
-
const backgroundOverlays = [];
|
122
|
-
return new Promise(async (resolve, reject) => {
|
123
|
-
if (!background || typeof background !== "object" || typeof background === "object" && !("type" in background)) {
|
124
|
-
resolve(backgroundOverlays);
|
125
|
-
return;
|
126
|
-
}
|
127
|
-
const imageBuffer = await imageInput.sharp.raw().toBuffer();
|
128
|
-
const nbImageChannels = (await imageInput.sharp.metadata()).channels || 3;
|
129
|
-
const colorPalette = createColorPalette(
|
130
|
-
{
|
131
|
-
buffer: imageBuffer,
|
132
|
-
nbChannels: nbImageChannels,
|
133
|
-
dimensions: imageInput.dimensions
|
134
|
-
},
|
135
|
-
background.colorPalette
|
136
|
-
);
|
137
|
-
switch (background.type) {
|
138
|
-
case "line":
|
139
|
-
return resolve(createLineBackground(background, dimensions, colorPalette));
|
140
|
-
case "tile":
|
141
|
-
return resolve(createTileBackground(background, dimensions, imageCoordinates, colorPalette));
|
142
|
-
default:
|
143
|
-
resolve(backgroundOverlays);
|
144
|
-
}
|
145
|
-
reject(new Error("Unknown background type"));
|
146
|
-
});
|
147
|
-
};
|
148
|
-
function getContainedRatios(widthPx, heightPx, wrapperWidthPx, wrapperHeightPx, withoutReduction) {
|
149
|
-
if (withoutReduction && widthPx <= wrapperWidthPx && heightPx <= wrapperHeightPx) {
|
150
|
-
return { xPercent: 100, yPercent: 100 };
|
151
|
-
}
|
152
|
-
const wrapperRatio = wrapperWidthPx / wrapperHeightPx;
|
153
|
-
const imgRatio = widthPx / heightPx;
|
154
|
-
const containRatio = clamp(imgRatio > wrapperRatio ? wrapperWidthPx / widthPx : wrapperHeightPx / heightPx, 0, 100);
|
155
|
-
return {
|
156
|
-
xPercent: containRatio,
|
157
|
-
yPercent: containRatio
|
158
|
-
};
|
159
|
-
}
|
160
|
-
|
161
|
-
export {
|
162
|
-
frame,
|
163
|
-
getContainedRatios
|
164
|
-
};
|