@design-edito/tools 0.2.37 → 0.2.40
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/dedupe/index.d.ts +7 -0
- package/agnostic/arrays/dedupe/index.js +10 -0
- package/agnostic/arrays/find-duplicates/index.d.ts +14 -0
- package/agnostic/arrays/find-duplicates/index.js +24 -5
- package/agnostic/arrays/find-duplicates/index.test.d.ts +1 -0
- package/agnostic/arrays/is-array-of/index.d.ts +15 -4
- package/agnostic/arrays/is-array-of/index.js +23 -4
- package/agnostic/arrays/is-array-of/index.test.d.ts +1 -0
- package/agnostic/arrays/make/index.d.ts +8 -0
- package/agnostic/arrays/make/index.js +6 -4
- package/agnostic/arrays/make/index.test.d.ts +1 -0
- package/agnostic/arrays/random-pick/index.d.ts +20 -0
- package/agnostic/arrays/random-pick/index.js +2 -10
- package/agnostic/arrays/random-pick/index.test.d.ts +1 -0
- package/agnostic/arrays/shuffle/index.d.ts +8 -0
- package/agnostic/arrays/shuffle/index.js +11 -4
- package/agnostic/arrays/shuffle/index.test.d.ts +1 -0
- package/agnostic/booleans/is-falsy/index.d.ts +17 -0
- package/agnostic/booleans/is-falsy/index.js +1 -1
- package/agnostic/colors/channels/index.d.ts +34 -0
- package/agnostic/colors/channels/index.js +6 -6
- package/agnostic/colors/contrast/index.d.ts +8 -0
- package/agnostic/colors/contrast/index.js +27 -8
- package/agnostic/colors/convert/index.d.ts +144 -0
- package/agnostic/colors/convert/index.js +5 -5
- package/agnostic/colors/distance/index.d.ts +8 -0
- package/agnostic/colors/distance/index.js +50 -7
- package/agnostic/colors/grayscale/index.d.ts +9 -1
- package/agnostic/colors/grayscale/index.js +156 -7
- package/agnostic/colors/invert/index.d.ts +8 -0
- package/agnostic/colors/invert/index.js +45 -7
- package/agnostic/colors/lerp/index.d.ts +12 -1
- package/agnostic/colors/lerp/index.js +97 -7
- package/agnostic/colors/luminance/index.d.ts +7 -0
- package/agnostic/colors/luminance/index.js +6 -6
- package/agnostic/colors/palette/index.d.ts +10 -1
- package/agnostic/colors/palette/index.js +104 -9
- package/agnostic/colors/rotate/index.d.ts +10 -1
- package/agnostic/colors/rotate/index.js +7 -7
- package/agnostic/colors/tidy/index.d.ts +9 -1
- package/agnostic/colors/tidy/index.js +5 -5
- package/agnostic/colors/typechecks/index.d.ts +60 -0
- package/agnostic/colors/typechecks/index.js +3 -3
- package/agnostic/colors/types.d.ts +106 -0
- package/agnostic/colors/types.js +2 -2
- package/agnostic/css/bem/index.d.ts +29 -6
- package/agnostic/css/bem/index.js +155 -6
- package/agnostic/css/generate-nice-color/index.d.ts +8 -2
- package/agnostic/css/generate-nice-color/index.js +70 -5
- package/agnostic/css/is-valid-css-class-name/index.d.ts +11 -0
- package/agnostic/css/is-valid-css-class-name/index.js +1 -1
- package/agnostic/css/styles-set/index.js +167 -15
- package/agnostic/errors/register/index.d.ts +31 -33
- package/agnostic/errors/register/index.js +49 -5
- package/agnostic/errors/unknown-to-string/index.d.ts +6 -0
- package/agnostic/errors/unknown-to-string/index.js +1 -1
- package/agnostic/html/get-node-ancestors/index.d.ts +12 -0
- package/agnostic/html/get-node-ancestors/index.js +1 -1
- package/agnostic/html/get-position-inside-parent/index.d.ts +8 -0
- package/agnostic/html/get-position-inside-parent/index.js +8 -4
- package/agnostic/html/hyper-json/cast/index.js +12 -12
- package/agnostic/html/hyper-json/index.js +40 -16
- package/agnostic/html/hyper-json/method/index.js +1 -1
- package/agnostic/html/hyper-json/serialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +16 -14
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +12 -12
- package/agnostic/html/hyper-json/transformer/index.d.ts +1 -1
- package/agnostic/html/hyper-json/transformer/index.js +3 -3
- package/agnostic/html/hyper-json/tree/index.js +12 -12
- package/agnostic/html/hyper-json/types/index.d.ts +1 -1
- package/agnostic/html/hyper-json/types/index.js +1 -1
- package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
- package/agnostic/html/hyper-json/utils/index.js +12 -12
- package/agnostic/html/insert-node/index.d.ts +17 -0
- package/agnostic/html/insert-node/index.js +1 -1
- package/agnostic/html/placeholders/index.d.ts +7 -9
- package/agnostic/html/placeholders/index.js +37 -5
- package/agnostic/html/replace-in-element/index.d.ts +14 -0
- package/agnostic/html/replace-in-element/index.js +1 -1
- package/agnostic/html/selector-to-element/index.d.ts +16 -1
- package/agnostic/html/selector-to-element/index.js +29 -11
- package/agnostic/html/string-to-nodes/index.d.ts +14 -7
- package/agnostic/html/string-to-nodes/index.js +14 -12
- package/agnostic/misc/assert/index.d.ts +5 -7
- package/agnostic/misc/assert/index.js +61 -8
- package/agnostic/misc/cast/index.d.ts +81 -10
- package/agnostic/misc/cast/index.js +18 -4
- package/agnostic/misc/connection/index.d.ts +26 -0
- package/agnostic/misc/connection/index.js +39 -0
- package/agnostic/misc/crawler/index.d.ts +63 -16
- package/agnostic/misc/crawler/index.js +36 -5
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +12 -2
- package/agnostic/misc/crossenv/detect-runtime/index.js +14 -5
- package/agnostic/misc/crossenv/types.d.ts +39 -0
- package/agnostic/misc/crossenv/types.js +7 -0
- package/agnostic/misc/crossenv/window/index.d.ts +28 -7
- package/agnostic/misc/crossenv/window/index.js +10 -4
- package/agnostic/misc/crossenv/window/index.test.d.ts +1 -0
- package/agnostic/misc/data-size/index.d.ts +43 -21
- package/agnostic/misc/data-size/index.js +270 -34
- package/agnostic/misc/data-size/types.d.ts +37 -0
- package/agnostic/misc/elo/index.d.ts +28 -30
- package/agnostic/misc/elo/index.js +27 -30
- package/agnostic/misc/is-constructor-function/index.d.ts +11 -0
- package/agnostic/misc/is-constructor-function/index.js +1 -1
- package/agnostic/misc/is-nullish/index.d.ts +22 -0
- package/agnostic/misc/is-nullish/index.js +1 -1
- package/agnostic/misc/logs/logger/index.js +109 -4
- package/agnostic/misc/logs/make-text-block/index.js +1 -1
- package/agnostic/misc/logs/styles/index.js +1 -1
- package/agnostic/misc/lorem-ipsum/index.d.ts +3 -5
- package/agnostic/misc/lorem-ipsum/index.js +187 -23
- package/agnostic/misc/normalize-extension/index.d.ts +10 -0
- package/agnostic/misc/normalize-extension/index.js +1 -1
- package/agnostic/misc/outcome/index.d.ts +56 -15
- package/agnostic/misc/outcome/index.js +8 -4
- package/agnostic/numbers/absolute-modulo/index.d.ts +7 -0
- package/agnostic/numbers/absolute-modulo/index.js +1 -1
- package/agnostic/numbers/clamp/index.d.ts +8 -0
- package/agnostic/numbers/clamp/index.js +1 -1
- package/agnostic/numbers/interpolate/index.d.ts +20 -1
- package/agnostic/numbers/interpolate/index.js +12 -7
- package/agnostic/numbers/responsive-harmonics/index.d.ts +20 -0
- package/agnostic/numbers/responsive-harmonics/index.js +49 -5
- package/agnostic/numbers/round/index.d.ts +24 -3
- package/agnostic/numbers/round/index.js +2 -2
- package/agnostic/objects/deep-get-property/index.d.ts +8 -0
- package/agnostic/objects/deep-get-property/index.js +23 -4
- package/agnostic/objects/enums/is-in-enum/index.d.ts +10 -0
- package/agnostic/objects/enums/is-in-enum/index.js +1 -1
- package/agnostic/objects/flatten-getters/index.d.ts +6 -0
- package/agnostic/objects/flatten-getters/index.js +19 -4
- package/agnostic/objects/is-object/index.d.ts +12 -0
- package/agnostic/objects/is-object/index.js +1 -1
- package/agnostic/objects/is-record/index.d.ts +6 -0
- package/agnostic/objects/is-record/index.js +1 -1
- package/agnostic/objects/record-format/index.d.ts +27 -0
- package/agnostic/objects/record-format/index.js +15 -4
- package/agnostic/objects/record-map/index.d.ts +9 -0
- package/agnostic/objects/record-map/index.js +1 -1
- package/agnostic/objects/validation/index.d.ts +11 -3
- package/agnostic/objects/validation/index.js +9 -5
- package/agnostic/optim/memoize/index.d.ts +10 -1
- package/agnostic/optim/memoize/index.js +16 -4
- package/agnostic/optim/throttle-debounce/index.js +110 -5
- package/agnostic/optim/throttle-debounce/types.d.ts +1 -1
- package/agnostic/random/hex-char/index.d.ts +2 -0
- package/agnostic/random/hex-char/index.js +1 -1
- package/agnostic/random/random/index.d.ts +14 -0
- package/agnostic/random/random/index.js +1 -1
- package/agnostic/random/uuid/index.d.ts +18 -0
- package/agnostic/random/uuid/index.js +1 -1
- package/agnostic/regexps/index.d.ts +95 -24
- package/agnostic/regexps/index.js +86 -5
- package/agnostic/sanitization/file-name/index.d.ts +13 -0
- package/agnostic/sanitization/file-name/index.js +7 -0
- package/agnostic/sanitization/html/index.d.ts +61 -0
- package/agnostic/sanitization/html/index.js +121 -0
- package/agnostic/sanitization/path/index.d.ts +11 -0
- package/agnostic/sanitization/path/index.js +14 -0
- package/agnostic/sanitization/types.d.ts +37 -0
- package/agnostic/sanitization/types.js +0 -0
- package/agnostic/sanitization/user-input/index.d.ts +13 -0
- package/agnostic/sanitization/user-input/index.js +23 -0
- package/agnostic/strings/char-codes/index.d.ts +82 -17
- package/agnostic/strings/char-codes/index.js +68 -5
- package/agnostic/strings/matches/index.d.ts +24 -0
- package/agnostic/strings/matches/index.js +1 -1
- package/agnostic/strings/normalize-indent/index.d.ts +22 -0
- package/agnostic/strings/normalize-indent/index.js +16 -4
- package/agnostic/strings/parse-table/index.d.ts +123 -66
- package/agnostic/strings/parse-table/index.js +83 -4
- package/agnostic/strings/replace-all/index.d.ts +20 -0
- package/agnostic/strings/replace-all/index.js +2 -2
- package/agnostic/strings/to-alphanum/index.d.ts +18 -0
- package/agnostic/strings/to-alphanum/index.js +8 -4
- package/agnostic/strings/trim/index.d.ts +18 -0
- package/agnostic/strings/trim/index.js +1 -1
- package/agnostic/time/dates/format-date/index.d.ts +47 -0
- package/agnostic/time/dates/format-date/index.js +58 -4
- package/agnostic/time/duration/index.d.ts +38 -25
- package/agnostic/time/duration/index.js +110 -5
- package/agnostic/time/timeout/index.d.ts +8 -0
- package/agnostic/time/timeout/index.js +16 -4
- package/agnostic/time/transitions/index.d.ts +73 -40
- package/agnostic/time/transitions/index.js +158 -5
- package/agnostic/time/wait/index.d.ts +6 -0
- package/agnostic/time/wait/index.js +1 -1
- package/chunks/{chunk-CLLJV343.js → chunk-27SSMK5F.js} +8 -7
- package/chunks/{chunk-FNQAF6CQ.js → chunk-2QDYPY2O.js} +5 -5
- package/chunks/{chunk-ON6LC3HE.js → chunk-2WSVYQ5Q.js} +6 -13
- package/chunks/chunk-4WE2WEXL.js +12 -0
- package/chunks/{chunk-QWNWZBIO.js → chunk-53ILYMIY.js} +8 -7
- package/chunks/{chunk-FF5NURFO.js → chunk-54KPQCVI.js} +6 -13
- package/chunks/{chunk-SRXNICSE.js → chunk-5CFQCSKJ.js} +6 -5
- package/chunks/{chunk-FKDPPFHV.js → chunk-5NTPCRFH.js} +1 -11
- package/chunks/{chunk-IV75M3KE.js → chunk-5O52VUI6.js} +6 -13
- package/chunks/{chunk-4XSDRT23.js → chunk-5X76KDYN.js} +7 -14
- package/chunks/{chunk-RHKFMXM3.js → chunk-65BFQP3T.js} +6 -5
- package/chunks/{chunk-7J7CYOXU.js → chunk-66BURDRK.js} +8 -15
- package/chunks/{chunk-ZEZCYPLQ.js → chunk-6BGIDRU5.js} +7 -14
- package/chunks/{chunk-5ZJ3KJPK.js → chunk-6YVXSCRH.js} +7 -14
- package/chunks/{chunk-NMYVJJXV.js → chunk-7B2E2NGH.js} +7 -14
- package/chunks/{chunk-YXLHZ2KW.js → chunk-AKFDKOHE.js} +2 -2
- package/chunks/{chunk-QAVYONH6.js → chunk-AKNR3U25.js} +5 -5
- package/chunks/{chunk-CVDCTI7F.js → chunk-AOEOW5XW.js} +7 -14
- package/chunks/{chunk-QSU3CVGF.js → chunk-ASWI3EO6.js} +6 -5
- package/chunks/{chunk-QWZ4ZNFA.js → chunk-AV373PHY.js} +8 -15
- package/chunks/{chunk-VROZGPC5.js → chunk-AXMAF3J2.js} +7 -14
- package/chunks/{chunk-QTA7ZEVX.js → chunk-AYGAQQXD.js} +6 -5
- package/chunks/chunk-BHGRXDTS.js +28 -0
- package/chunks/{chunk-CNYSX2L2.js → chunk-BQABPH3I.js} +7 -14
- package/chunks/{chunk-WV5N7ESL.js → chunk-BQXTV2GG.js} +9 -16
- package/chunks/{chunk-37TRFYZT.js → chunk-BXFRBV67.js} +6 -13
- package/chunks/{chunk-3LCD73SB.js → chunk-C4VX4TTP.js} +1 -1
- package/chunks/{chunk-3CLGBOHN.js → chunk-DBNCEHTT.js} +6 -13
- package/chunks/{chunk-HRNDUTZE.js → chunk-DBZAJJUF.js} +8 -15
- package/chunks/{chunk-SXRWMH3U.js → chunk-DUCLFPGE.js} +5 -5
- package/chunks/{chunk-UK2F7CWI.js → chunk-EBQRPRRC.js} +6 -13
- package/chunks/{chunk-TGVYEQIA.js → chunk-EEPLTO3E.js} +7 -14
- package/chunks/{chunk-D5CCWCEI.js → chunk-ENOTZXFS.js} +1 -1
- package/chunks/{chunk-ZTDVUXPR.js → chunk-EPUHVR7J.js} +1 -0
- package/chunks/{chunk-NCYE5WML.js → chunk-FAAIUU6V.js} +4 -4
- package/chunks/{chunk-REZC75LB.js → chunk-FH74QWR6.js} +10 -18
- package/chunks/{chunk-FD5WR2A5.js → chunk-FM3HGCFL.js} +8 -15
- package/chunks/{chunk-W3RXHN5I.js → chunk-FSI422YG.js} +6 -13
- package/chunks/{chunk-UT2J62LH.js → chunk-HEY7J6GI.js} +1 -1
- package/chunks/chunk-HOFEVF7T.js +61 -0
- package/chunks/chunk-HYPEWMYZ.js +10 -0
- package/chunks/{chunk-V3L55I2S.js → chunk-IBQQCUYV.js} +6 -13
- package/chunks/{chunk-2HJPX7E3.js → chunk-IK2S6ZYP.js} +6 -5
- package/chunks/{chunk-V3GX7SIJ.js → chunk-ISJONMNA.js} +1 -13
- package/chunks/{chunk-ZJTWDCNZ.js → chunk-J5D4OQ5U.js} +6 -13
- package/chunks/{chunk-67V4BGOB.js → chunk-JDINERKY.js} +1 -1
- package/chunks/{chunk-ZSUG52DO.js → chunk-JFXEMK66.js} +6 -13
- package/chunks/{chunk-RWO53U4X.js → chunk-JN2UETL4.js} +7 -14
- package/chunks/chunk-JU23NBY2.js +22 -0
- package/chunks/{chunk-BKO7GLC2.js → chunk-JVMFT3IT.js} +7 -6
- package/chunks/{chunk-AQBJ6HNB.js → chunk-K5UF634H.js} +1 -5
- package/chunks/{chunk-7UGMWTP5.js → chunk-KRYJVBO5.js} +1 -10
- package/chunks/{chunk-DZ2T5DTY.js → chunk-LFHDJTZJ.js} +1 -1
- package/chunks/{chunk-3G6FOHII.js → chunk-MHNUCHPP.js} +6 -5
- package/chunks/{chunk-P5JJOC5K.js → chunk-MSJ7WDFX.js} +8 -7
- package/chunks/{chunk-5VHFXWFM.js → chunk-NEMHJSNM.js} +6 -13
- package/chunks/{chunk-BWYH445G.js → chunk-NIIAUOBO.js} +6 -13
- package/chunks/{chunk-HFZGH6V2.js → chunk-NR7STUY3.js} +6 -5
- package/chunks/{chunk-2JH4TCT2.js → chunk-O66PEU62.js} +6 -13
- package/chunks/{chunk-QH64MYGA.js → chunk-O7UCJNVF.js} +7 -14
- package/chunks/{chunk-WAHPAZQS.js → chunk-OF2W4ZRG.js} +6 -13
- package/chunks/{chunk-P26Y7YUA.js → chunk-PTJO2TGI.js} +6 -5
- package/chunks/{chunk-BE7OXZRK.js → chunk-PTN2V757.js} +7 -14
- package/chunks/chunk-QEKI6WGQ.js +27 -0
- package/chunks/{chunk-EOE2ODJR.js → chunk-QHEWBOQI.js} +3 -3
- package/chunks/{chunk-N2T672IG.js → chunk-RGQNRTBI.js} +6 -13
- package/chunks/chunk-ROWPCMQY.js +29 -0
- package/chunks/{chunk-KJAEVOIW.js → chunk-S2I77NEE.js} +8 -15
- package/chunks/{chunk-CWZFRUBS.js → chunk-S6ZFFGWH.js} +7 -14
- package/chunks/{chunk-6IYUA43Q.js → chunk-SBBIQ5UH.js} +7 -14
- package/chunks/{chunk-NGIZKJDJ.js → chunk-SGGJJ46D.js} +335 -327
- package/chunks/{chunk-YVKM7N55.js → chunk-U225LGOV.js} +8 -7
- package/chunks/{chunk-HWEGQVBQ.js → chunk-ULYGDEW2.js} +6 -13
- package/chunks/{chunk-QAQZEKIF.js → chunk-USIYKRNX.js} +6 -6
- package/chunks/{chunk-FB3GNE2B.js → chunk-UZ4SWSOZ.js} +8 -15
- package/chunks/{chunk-4XBUJAQU.js → chunk-VU6JYR3W.js} +7 -14
- package/chunks/{chunk-FE4DECBU.js → chunk-VYDUHDXW.js} +7 -14
- package/chunks/{chunk-BSUQNHAM.js → chunk-W5VY535B.js} +7 -14
- package/chunks/{chunk-STPN5KZL.js → chunk-WF2JNQV4.js} +8 -7
- package/chunks/chunk-XCBH6NLF.js +42 -0
- package/chunks/chunk-XIIJYVJZ.js +15 -0
- package/chunks/{chunk-QDVDHFMZ.js → chunk-Y6FD4ASO.js} +7 -14
- package/chunks/{chunk-C6QTHDDM.js → chunk-YOP6WVCF.js} +7 -14
- package/chunks/chunk-ZKIQ753F.js +23 -0
- package/chunks/{chunk-QLDN574K.js → chunk-ZTPRFEPV.js} +7 -14
- package/components/Comp/index.js +7 -4
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +4 -12
- package/node/@aws-s3/storage/directory/copy-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/list/index.js +3 -3
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/move-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/remove-dir/index.js +3 -3
- package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/copy/index.js +3 -3
- package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/download/index.js +3 -3
- package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/exists/index.js +3 -3
- package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/move/index.js +3 -3
- package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.js +3 -3
- package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/stat/index.js +3 -3
- package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/upload/index.js +3 -3
- package/node/@design-edito/index.d.ts +1 -2
- package/node/@design-edito/index.js +0 -8
- package/node/@express/@multer/index.d.ts +34 -1
- package/node/@express/@multer/index.js +43 -5
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +18 -5
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/copy-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/list/index.js +3 -3
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/move-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/remove-dir/index.js +3 -3
- package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/copy/index.js +3 -3
- package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/download/index.js +3 -3
- package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/exists/index.js +3 -3
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +24 -5
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-permissions/index.js +20 -5
- package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/move/index.js +3 -3
- package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/remove/index.js +3 -3
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +25 -7
- package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/stat/index.js +3 -3
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/update-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/upload/index.js +3 -3
- package/node/cloud-storage/clients/index.d.ts +27 -0
- package/node/cloud-storage/clients/index.js +2 -2
- package/node/cloud-storage/operations/copy-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-dir/index.js +30 -9
- package/node/cloud-storage/operations/copy-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-file/index.js +30 -9
- package/node/cloud-storage/operations/download-file/index.d.ts +50 -1
- package/node/cloud-storage/operations/download-file/index.js +30 -9
- package/node/cloud-storage/operations/exists-file/index.d.ts +44 -1
- package/node/cloud-storage/operations/exists-file/index.js +30 -9
- package/node/cloud-storage/operations/list-dir/index.d.ts +40 -1
- package/node/cloud-storage/operations/list-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-file/index.js +30 -9
- package/node/cloud-storage/operations/remove-dir/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-dir/index.js +30 -9
- package/node/cloud-storage/operations/remove-file/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-file/index.js +30 -9
- package/node/cloud-storage/operations/stat-file/index.d.ts +40 -1
- package/node/cloud-storage/operations/stat-file/index.js +30 -9
- package/node/cloud-storage/operations/upload-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/upload-file/index.js +30 -9
- package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/buffer/index.js +22 -6
- package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/uint8-array/index.js +3 -3
- package/node/encryption/key/index.js +12 -4
- package/node/files/is-in-directory/index.d.ts +7 -0
- package/node/files/is-in-directory/index.js +8 -4
- package/node/files/read-write/index.d.ts +48 -4
- package/node/files/read-write/index.js +15 -4
- package/node/files/subpaths/index.d.ts +62 -33
- package/node/files/subpaths/index.js +119 -5
- package/node/ftps/directory/copy-dir/index.d.ts +1 -1
- package/node/ftps/directory/copy-dir/index.js +3 -3
- package/node/ftps/directory/list/index.d.ts +1 -1
- package/node/ftps/directory/list/index.js +3 -3
- package/node/ftps/directory/move-dir/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.js +3 -3
- package/node/ftps/directory/remove-dir/index.d.ts +1 -1
- package/node/ftps/directory/remove-dir/index.js +3 -3
- package/node/ftps/file/copy/index.d.ts +1 -1
- package/node/ftps/file/copy/index.js +3 -3
- package/node/ftps/file/download/index.d.ts +1 -1
- package/node/ftps/file/download/index.js +3 -3
- package/node/ftps/file/exists/index.d.ts +1 -1
- package/node/ftps/file/exists/index.js +3 -3
- package/node/ftps/file/move/index.d.ts +1 -1
- package/node/ftps/file/move/index.js +3 -3
- package/node/ftps/file/remove/index.d.ts +1 -1
- package/node/ftps/file/remove/index.js +3 -3
- package/node/ftps/file/stat/index.d.ts +1 -1
- package/node/ftps/file/stat/index.js +3 -3
- package/node/ftps/file/upload/index.d.ts +1 -1
- package/node/ftps/file/upload/index.js +3 -3
- package/node/images/create/index.d.ts +6 -0
- package/node/images/create/index.js +13 -18
- package/node/images/format/index.d.ts +36 -1
- package/node/images/format/index.js +241 -44
- package/node/images/metadata/index.d.ts +6 -0
- package/node/images/metadata/index.js +13 -18
- package/node/images/transform/index.d.ts +23 -1
- package/node/images/transform/index.js +199 -39
- package/node/images/transform/operations/blur/index.d.ts +1 -1
- package/node/images/transform/operations/blur/index.js +4 -4
- package/node/images/transform/operations/brighten/index.d.ts +1 -1
- package/node/images/transform/operations/brighten/index.js +4 -4
- package/node/images/transform/operations/extend/index.d.ts +1 -1
- package/node/images/transform/operations/extend/index.js +9 -19
- package/node/images/transform/operations/extract/index.d.ts +1 -1
- package/node/images/transform/operations/extract/index.js +4 -4
- package/node/images/transform/operations/flatten/index.d.ts +1 -1
- package/node/images/transform/operations/flatten/index.js +9 -19
- package/node/images/transform/operations/flip/index.js +1 -1
- package/node/images/transform/operations/flop/index.js +1 -1
- package/node/images/transform/operations/hue/index.d.ts +1 -1
- package/node/images/transform/operations/hue/index.js +4 -4
- package/node/images/transform/operations/level/index.d.ts +1 -1
- package/node/images/transform/operations/level/index.js +4 -4
- package/node/images/transform/operations/lighten/index.d.ts +1 -1
- package/node/images/transform/operations/lighten/index.js +4 -4
- package/node/images/transform/operations/normalize/index.d.ts +1 -1
- package/node/images/transform/operations/normalize/index.js +4 -4
- package/node/images/transform/operations/overlay/index.d.ts +1 -1
- package/node/images/transform/operations/overlay/index.js +9 -19
- package/node/images/transform/operations/resize/index.d.ts +1 -1
- package/node/images/transform/operations/resize/index.js +9 -19
- package/node/images/transform/operations/rotate/index.d.ts +1 -1
- package/node/images/transform/operations/rotate/index.js +9 -19
- package/node/images/transform/operations/saturate/index.d.ts +1 -1
- package/node/images/transform/operations/saturate/index.js +4 -4
- package/node/images/types.d.ts +136 -1
- package/node/images/types.js +2 -2
- package/node/images/utils/index.d.ts +20 -0
- package/node/images/utils/index.js +6 -16
- package/node/process/on-exit/index.d.ts +23 -0
- package/node/process/on-exit/index.js +25 -8
- package/node/process/prompt-continue/index.d.ts +18 -0
- package/node/process/prompt-continue/index.js +1680 -0
- package/node/process/spawner/index.d.ts +18 -0
- package/node/process/spawner/index.js +83 -0
- package/node/sftp/directory/copy-dir/index.d.ts +1 -1
- package/node/sftp/directory/copy-dir/index.js +3 -3
- package/node/sftp/directory/list/index.d.ts +1 -1
- package/node/sftp/directory/list/index.js +3 -3
- package/node/sftp/directory/move-dir/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.js +3 -3
- package/node/sftp/directory/remove-dir/index.d.ts +1 -1
- package/node/sftp/directory/remove-dir/index.js +3 -3
- package/node/sftp/file/copy/index.d.ts +1 -1
- package/node/sftp/file/copy/index.js +3 -3
- package/node/sftp/file/download/index.d.ts +1 -1
- package/node/sftp/file/download/index.js +3 -3
- package/node/sftp/file/exists/index.d.ts +1 -1
- package/node/sftp/file/exists/index.js +3 -3
- package/node/sftp/file/move/index.d.ts +1 -1
- package/node/sftp/file/move/index.js +3 -3
- package/node/sftp/file/remove/index.d.ts +1 -1
- package/node/sftp/file/remove/index.js +3 -3
- package/node/sftp/file/stat/index.d.ts +1 -1
- package/node/sftp/file/stat/index.js +3 -3
- package/node/sftp/file/upload/index.d.ts +1 -1
- package/node/sftp/file/upload/index.js +3 -3
- package/package.json +11 -3
- package/agnostic/arrays/index.d.ts +0 -13
- package/agnostic/arrays/index.js +0 -21
- package/agnostic/booleans/index.d.ts +0 -8
- package/agnostic/booleans/index.js +0 -9
- package/agnostic/colors/index.d.ts +0 -14
- package/agnostic/colors/index.js +0 -107
- package/agnostic/css/bem/BEM.d.ts +0 -29
- package/agnostic/css/bem/getNamesArr.d.ts +0 -2
- package/agnostic/css/index.d.ts +0 -14
- package/agnostic/css/index.js +0 -25
- package/agnostic/errors/index.d.ts +0 -6
- package/agnostic/errors/index.js +0 -9
- package/agnostic/html/index.d.ts +0 -19
- package/agnostic/html/index.js +0 -39
- package/agnostic/html/sanitize/index.d.ts +0 -24
- package/agnostic/html/sanitize/index.js +0 -15
- package/agnostic/index.d.ts +0 -26
- package/agnostic/index.js +0 -144
- package/agnostic/misc/crossenv/index.d.ts +0 -8
- package/agnostic/misc/crossenv/index.js +0 -10
- package/agnostic/misc/crossenv/types/index.d.ts +0 -19
- package/agnostic/misc/crossenv/types/index.js +0 -7
- package/agnostic/misc/get-current-downlink/index.d.ts +0 -1
- package/agnostic/misc/get-current-downlink/index.js +0 -7
- package/agnostic/misc/index.d.ts +0 -25
- package/agnostic/misc/index.js +0 -65
- package/agnostic/misc/logs/index.d.ts +0 -17
- package/agnostic/misc/logs/index.js +0 -10
- package/agnostic/numbers/index.d.ts +0 -13
- package/agnostic/numbers/index.js +0 -12
- package/agnostic/objects/enums/index.d.ts +0 -4
- package/agnostic/objects/enums/index.js +0 -8
- package/agnostic/objects/index.d.ts +0 -19
- package/agnostic/objects/index.js +0 -19
- package/agnostic/optim/index.d.ts +0 -7
- package/agnostic/optim/index.js +0 -9
- package/agnostic/random/index.d.ts +0 -12
- package/agnostic/random/index.js +0 -10
- package/agnostic/sanitization/index.d.ts +0 -3
- package/agnostic/sanitization/index.js +0 -35
- package/agnostic/strings/index.d.ts +0 -19
- package/agnostic/strings/index.js +0 -15
- package/agnostic/time/dates/index.d.ts +0 -4
- package/agnostic/time/dates/index.js +0 -8
- package/agnostic/time/index.d.ts +0 -12
- package/agnostic/time/index.js +0 -30
- package/chunks/chunk-34U4HX4V.js +0 -73
- package/chunks/chunk-42K3MQQ5.js +0 -31
- package/chunks/chunk-5CTAKAIP.js +0 -28
- package/chunks/chunk-5ZPVE6NR.js +0 -40
- package/chunks/chunk-63J76ST6.js +0 -191
- package/chunks/chunk-6KM4UT6T.js +0 -34
- package/chunks/chunk-6NYUQXJT.js +0 -109
- package/chunks/chunk-6RGDWX4A.js +0 -24
- package/chunks/chunk-6UXES4W7.js +0 -40
- package/chunks/chunk-6YQGM6N6.js +0 -19
- package/chunks/chunk-73UGWJYI.js +0 -31
- package/chunks/chunk-7AWTHZLY.js +0 -12
- package/chunks/chunk-7DBNMU6N.js +0 -14
- package/chunks/chunk-7NLDR53D.js +0 -16
- package/chunks/chunk-7YJ4BB73.js +0 -20
- package/chunks/chunk-A3CDUWGR.js +0 -73
- package/chunks/chunk-AL7ESVX4.js +0 -42
- package/chunks/chunk-ALAGBHFV.js +0 -42
- package/chunks/chunk-ALFP7OQ3.js +0 -24
- package/chunks/chunk-ANPXBD2G.js +0 -35
- package/chunks/chunk-BDGFY3GP.js +0 -42
- package/chunks/chunk-BGSJ5XCH.js +0 -20
- package/chunks/chunk-BJAYUP7M.js +0 -13
- package/chunks/chunk-BLDUC7TT.js +0 -17
- package/chunks/chunk-BPYICFMX.js +0 -37
- package/chunks/chunk-CKENYYWH.js +0 -28
- package/chunks/chunk-COVPTTAD.js +0 -10
- package/chunks/chunk-DFDH7MGI.js +0 -206
- package/chunks/chunk-DKITT7OT.js +0 -296
- package/chunks/chunk-EDVNAV3G.js +0 -72
- package/chunks/chunk-EGBJXHCW.js +0 -47
- package/chunks/chunk-ENMBK6H7.js +0 -162
- package/chunks/chunk-EZ22Z22X.js +0 -28
- package/chunks/chunk-F3WCF6DL.js +0 -122
- package/chunks/chunk-FHLCPVND.js +0 -23
- package/chunks/chunk-FLE22O3O.js +0 -56
- package/chunks/chunk-FNGETPCZ.js +0 -84
- package/chunks/chunk-FPEW3A27.js +0 -14
- package/chunks/chunk-FR5H2OCV.js +0 -21
- package/chunks/chunk-FZOU4OAW.js +0 -13
- package/chunks/chunk-G4ZB72XY.js +0 -257
- package/chunks/chunk-GL42Q643.js +0 -42
- package/chunks/chunk-GXOIVZUI.js +0 -60
- package/chunks/chunk-GYEO7JZV.js +0 -112
- package/chunks/chunk-HKTNK262.js +0 -23
- package/chunks/chunk-HWVEI3RH.js +0 -31
- package/chunks/chunk-IRTPQATN.js +0 -16
- package/chunks/chunk-JBSS64SA.js +0 -6
- package/chunks/chunk-JMU5PDBD.js +0 -20
- package/chunks/chunk-JQXNEJAP.js +0 -18
- package/chunks/chunk-JTJA7DGW.js +0 -36
- package/chunks/chunk-JWBDZPQG.js +0 -18
- package/chunks/chunk-KIONYWA7.js +0 -168
- package/chunks/chunk-KXIA3YGF.js +0 -54
- package/chunks/chunk-L7PIZQFC.js +0 -51
- package/chunks/chunk-LEXQ6E6L.js +0 -31
- package/chunks/chunk-LGBQWEXH.js +0 -40
- package/chunks/chunk-LV2VMOWR.js +0 -18
- package/chunks/chunk-MFIGSRSO.js +0 -103
- package/chunks/chunk-MJQF3YZO.js +0 -21
- package/chunks/chunk-MVYH3CSJ.js +0 -42
- package/chunks/chunk-NK62JYTD.js +0 -43
- package/chunks/chunk-NRITRUZW.js +0 -10
- package/chunks/chunk-NUPAV2JX.js +0 -20
- package/chunks/chunk-OC4VIF3N.js +0 -42
- package/chunks/chunk-OKFZJ6DJ.js +0 -9
- package/chunks/chunk-OVG5RGI3.js +0 -29
- package/chunks/chunk-OYDCT5KK.js +0 -32
- package/chunks/chunk-PAIUCLVK.js +0 -35
- package/chunks/chunk-PVRYR5KX.js +0 -21
- package/chunks/chunk-QCOO4PV5.js +0 -54
- package/chunks/chunk-QHAB6XYD.js +0 -30
- package/chunks/chunk-QHLQVR3E.js +0 -54
- package/chunks/chunk-QKE2IYT5.js +0 -42
- package/chunks/chunk-QTF7LWGT.js +0 -28
- package/chunks/chunk-QVPS2BCJ.js +0 -29
- package/chunks/chunk-R4DZKWSR.js +0 -42
- package/chunks/chunk-RASMASS4.js +0 -111
- package/chunks/chunk-RLAZR3NL.js +0 -8
- package/chunks/chunk-RLJOYG64.js +0 -33
- package/chunks/chunk-S2NMAH7K.js +0 -19
- package/chunks/chunk-S4VO4PFZ.js +0 -37
- package/chunks/chunk-SKBOSWM2.js +0 -35
- package/chunks/chunk-SKMCIFS3.js +0 -27
- package/chunks/chunk-SNJJII7A.js +0 -65
- package/chunks/chunk-TAUQZCR6.js +0 -41
- package/chunks/chunk-TGDJWP5U.js +0 -20
- package/chunks/chunk-TIER4TF4.js +0 -26
- package/chunks/chunk-U4ORVPZC.js +0 -175
- package/chunks/chunk-UEAMPAHK.js +0 -28
- package/chunks/chunk-UNXRB2AV.js +0 -16
- package/chunks/chunk-V3NHCEO5.js +0 -31
- package/chunks/chunk-VFJYLXCI.js +0 -23
- package/chunks/chunk-VJJIYJMY.js +0 -13
- package/chunks/chunk-VTPRO4NJ.js +0 -10
- package/chunks/chunk-VYW4IADX.js +0 -35
- package/chunks/chunk-VZDUZTW6.js +0 -113
- package/chunks/chunk-WAMSK4A3.js +0 -67
- package/chunks/chunk-WH6BPDAC.js +0 -17
- package/chunks/chunk-WJBQ2BO4.js +0 -16
- package/chunks/chunk-WOAYU6LB.js +0 -13
- package/chunks/chunk-WOYF3N4A.js +0 -31
- package/chunks/chunk-WSC3WODJ.js +0 -157
- package/chunks/chunk-WSFCRVEQ.js +0 -9
- package/chunks/chunk-X53BGT33.js +0 -42
- package/chunks/chunk-XB3EGDBI.js +0 -127
- package/chunks/chunk-XBA26Z7E.js +0 -42
- package/chunks/chunk-XPGAVZGK.js +0 -98
- package/chunks/chunk-XPPOIKJL.js +0 -43
- package/chunks/chunk-XR2LNUGW.js +0 -42
- package/chunks/chunk-YFBIPMXD.js +0 -20
- package/chunks/chunk-YKPA3MQL.js +0 -31
- package/chunks/chunk-YP64J65L.js +0 -17
- package/chunks/chunk-YPTFPS76.js +0 -91
- package/chunks/chunk-YQWZ3EP2.js +0 -60
- package/chunks/chunk-YRZFKMR4.js +0 -20
- package/chunks/chunk-YS6WMSWC.js +0 -15
- package/chunks/chunk-YUP434IY.js +0 -43
- package/chunks/chunk-Z7ZDDBV5.js +0 -18
- package/chunks/chunk-ZBBU2P4D.js +0 -28
- package/chunks/chunk-ZH3QMMVD.js +0 -28
- package/chunks/chunk-ZLBSI4TR.js +0 -21
- package/chunks/chunk-ZNA7SWFK.js +0 -29
- package/components/index.d.ts +0 -4
- package/components/index.js +0 -13
- package/node/@aws-s3/index.d.ts +0 -2
- package/node/@aws-s3/index.js +0 -23
- package/node/@aws-s3/storage/directory/index.d.ts +0 -5
- package/node/@aws-s3/storage/directory/index.js +0 -22
- package/node/@aws-s3/storage/file/index.d.ts +0 -8
- package/node/@aws-s3/storage/file/index.js +0 -34
- package/node/@aws-s3/storage/index.d.ts +0 -3
- package/node/@aws-s3/storage/index.js +0 -25
- package/node/@design-edito/thumbnails/index.js +0 -1
- package/node/@express/index.d.ts +0 -2
- package/node/@express/index.js +0 -10
- package/node/@google-cloud/index.d.ts +0 -2
- package/node/@google-cloud/index.js +0 -30
- package/node/@google-cloud/storage/bucket/index.d.ts +0 -5
- package/node/@google-cloud/storage/bucket/index.js +0 -22
- package/node/@google-cloud/storage/directory/index.d.ts +0 -5
- package/node/@google-cloud/storage/directory/index.js +0 -22
- package/node/@google-cloud/storage/file/index.d.ts +0 -13
- package/node/@google-cloud/storage/file/index.js +0 -54
- package/node/@google-cloud/storage/index.d.ts +0 -4
- package/node/@google-cloud/storage/index.js +0 -35
- package/node/cloud-storage/index.d.ts +0 -3
- package/node/cloud-storage/index.js +0 -69
- package/node/cloud-storage/operations/index.d.ts +0 -12
- package/node/cloud-storage/operations/index.js +0 -95
- package/node/encryption/@aes-256-gcm/index.d.ts +0 -3
- package/node/encryption/@aes-256-gcm/index.js +0 -14
- package/node/encryption/index.d.ts +0 -3
- package/node/encryption/index.js +0 -16
- package/node/files/index.d.ts +0 -7
- package/node/files/index.js +0 -15
- package/node/ftps/directory/index.d.ts +0 -5
- package/node/ftps/directory/index.js +0 -22
- package/node/ftps/file/index.d.ts +0 -8
- package/node/ftps/file/index.js +0 -34
- package/node/ftps/index.d.ts +0 -3
- package/node/ftps/index.js +0 -25
- package/node/images/index.d.ts +0 -6
- package/node/images/index.js +0 -59
- package/node/index.d.ts +0 -12
- package/node/index.js +0 -172
- package/node/process/index.d.ts +0 -6
- package/node/process/index.js +0 -16
- package/node/sftp/directory/index.d.ts +0 -5
- package/node/sftp/directory/index.js +0 -22
- package/node/sftp/file/index.d.ts +0 -8
- package/node/sftp/file/index.js +0 -34
- package/node/sftp/index.d.ts +0 -3
- package/node/sftp/index.js +0 -25
- package/shared/errors/index.d.ts +0 -138
- /package/{node/@design-edito/thumbnails/index.d.ts → agnostic/arrays/dedupe/index.test.d.ts} +0 -0
- /package/{shared/index.d.ts → agnostic/misc/data-size/types.js} +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const generateSentences: (sentencesCount: number, maxSentenceLength?: number, minSentenceLength?: number) => string[];
|
|
5
|
-
}
|
|
1
|
+
export declare const words: string[];
|
|
2
|
+
export declare const generateSentence: (wordCount: number) => string;
|
|
3
|
+
export declare const generateSentences: (sentencesCount: number, maxSentenceLength?: number, minSentenceLength?: number) => string[];
|
|
@@ -1,26 +1,190 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "../../../chunks/chunk-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
randomInt
|
|
3
|
+
} from "../../../chunks/chunk-D3ERTRDW.js";
|
|
4
|
+
import {
|
|
5
|
+
randomPick
|
|
6
|
+
} from "../../../chunks/chunk-K5UF634H.js";
|
|
7
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
8
|
+
|
|
9
|
+
// src/agnostic/misc/lorem-ipsum/index.ts
|
|
10
|
+
var words = [
|
|
11
|
+
"a",
|
|
12
|
+
"ac",
|
|
13
|
+
"accumsan",
|
|
14
|
+
"adipiscing",
|
|
15
|
+
"aenean",
|
|
16
|
+
"aliquam",
|
|
17
|
+
"aliquet",
|
|
18
|
+
"amet",
|
|
19
|
+
"ante",
|
|
20
|
+
"arcu",
|
|
21
|
+
"at",
|
|
22
|
+
"auctor",
|
|
23
|
+
"augue",
|
|
24
|
+
"bibendum",
|
|
25
|
+
"blandit",
|
|
26
|
+
"condimentum",
|
|
27
|
+
"consectetur",
|
|
28
|
+
"consequat",
|
|
29
|
+
"convallis",
|
|
30
|
+
"cras",
|
|
31
|
+
"curabitur",
|
|
32
|
+
"cursus",
|
|
33
|
+
"dapibus",
|
|
34
|
+
"diam",
|
|
35
|
+
"dictum",
|
|
36
|
+
"dictumst",
|
|
37
|
+
"dignissim",
|
|
38
|
+
"dolor",
|
|
39
|
+
"donec",
|
|
40
|
+
"dui",
|
|
41
|
+
"duis",
|
|
42
|
+
"efficitur",
|
|
43
|
+
"egestas",
|
|
44
|
+
"eget",
|
|
45
|
+
"eleifend",
|
|
46
|
+
"elementum",
|
|
47
|
+
"elit",
|
|
48
|
+
"enim",
|
|
49
|
+
"erat",
|
|
50
|
+
"eros",
|
|
51
|
+
"est",
|
|
52
|
+
"et",
|
|
53
|
+
"eu",
|
|
54
|
+
"euismod",
|
|
55
|
+
"ex",
|
|
56
|
+
"facilisis",
|
|
57
|
+
"faucibus",
|
|
58
|
+
"felis",
|
|
59
|
+
"feugiat",
|
|
60
|
+
"finibus",
|
|
61
|
+
"fringilla",
|
|
62
|
+
"fusce",
|
|
63
|
+
"gravida",
|
|
64
|
+
"habitasse",
|
|
65
|
+
"hac",
|
|
66
|
+
"hendrerit",
|
|
67
|
+
"iaculis",
|
|
68
|
+
"id",
|
|
69
|
+
"imperdiet",
|
|
70
|
+
"in",
|
|
71
|
+
"integer",
|
|
72
|
+
"interdum",
|
|
73
|
+
"ipsum",
|
|
74
|
+
"justo",
|
|
75
|
+
"lacinia",
|
|
76
|
+
"lacus",
|
|
77
|
+
"laoreet",
|
|
78
|
+
"lectus",
|
|
79
|
+
"leo",
|
|
80
|
+
"libero",
|
|
81
|
+
"ligula",
|
|
82
|
+
"lobortis",
|
|
83
|
+
"lorem",
|
|
84
|
+
"luctus",
|
|
85
|
+
"maecenas",
|
|
86
|
+
"magna",
|
|
87
|
+
"malesuada",
|
|
88
|
+
"massa",
|
|
89
|
+
"mattis",
|
|
90
|
+
"mauris",
|
|
91
|
+
"maximus",
|
|
92
|
+
"metus",
|
|
93
|
+
"mi",
|
|
94
|
+
"molestie",
|
|
95
|
+
"mollis",
|
|
96
|
+
"morbi",
|
|
97
|
+
"nam",
|
|
98
|
+
"nec",
|
|
99
|
+
"neque",
|
|
100
|
+
"nibh",
|
|
101
|
+
"nisi",
|
|
102
|
+
"nisl",
|
|
103
|
+
"non",
|
|
104
|
+
"nulla",
|
|
105
|
+
"nullam",
|
|
106
|
+
"nunc",
|
|
107
|
+
"odio",
|
|
108
|
+
"orci",
|
|
109
|
+
"ornare",
|
|
110
|
+
"pellentesque",
|
|
111
|
+
"pharetra",
|
|
112
|
+
"phasellus",
|
|
113
|
+
"placerat",
|
|
114
|
+
"platea",
|
|
115
|
+
"porta",
|
|
116
|
+
"porttitor",
|
|
117
|
+
"posuere",
|
|
118
|
+
"praesent",
|
|
119
|
+
"pulvinar",
|
|
120
|
+
"purus",
|
|
121
|
+
"quam",
|
|
122
|
+
"quis",
|
|
123
|
+
"quisque",
|
|
124
|
+
"risus",
|
|
125
|
+
"rutrum",
|
|
126
|
+
"sagittis",
|
|
127
|
+
"sapien",
|
|
128
|
+
"sed",
|
|
129
|
+
"sem",
|
|
130
|
+
"semper",
|
|
131
|
+
"sit",
|
|
132
|
+
"sodales",
|
|
133
|
+
"sollicitudin",
|
|
134
|
+
"suscipit",
|
|
135
|
+
"suspendisse",
|
|
136
|
+
"tellus",
|
|
137
|
+
"tempor",
|
|
138
|
+
"tempus",
|
|
139
|
+
"tincidunt",
|
|
140
|
+
"tortor",
|
|
141
|
+
"tristique",
|
|
142
|
+
"turpis",
|
|
143
|
+
"ultrices",
|
|
144
|
+
"ultricies",
|
|
145
|
+
"urna",
|
|
146
|
+
"ut",
|
|
147
|
+
"vehicula",
|
|
148
|
+
"vel",
|
|
149
|
+
"velit",
|
|
150
|
+
"venenatis",
|
|
151
|
+
"vestibulum",
|
|
152
|
+
"vitae",
|
|
153
|
+
"vivamus",
|
|
154
|
+
"viverra",
|
|
155
|
+
"volutpat",
|
|
156
|
+
"vulputate"
|
|
157
|
+
];
|
|
158
|
+
var generateSentence = (wordCount) => {
|
|
159
|
+
const resultArr = [];
|
|
160
|
+
let currentWordCound = wordCount;
|
|
161
|
+
for (let i = 0; i < currentWordCound; i++) {
|
|
162
|
+
const picked = randomPick(words);
|
|
163
|
+
if (typeof picked === "string") resultArr.push(picked);
|
|
164
|
+
else {
|
|
165
|
+
currentWordCound += 1;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const [firstWord, ...otherWords] = resultArr;
|
|
169
|
+
if (firstWord === void 0) return "";
|
|
170
|
+
const capFirstLetter = firstWord?.charAt(0).toUpperCase();
|
|
171
|
+
const restOfFirstWord = firstWord?.slice(1);
|
|
172
|
+
const sentence = [
|
|
173
|
+
`${capFirstLetter}${restOfFirstWord}`,
|
|
174
|
+
...otherWords
|
|
175
|
+
].join(" ");
|
|
176
|
+
return `${sentence}.`;
|
|
177
|
+
};
|
|
178
|
+
var generateSentences = (sentencesCount, maxSentenceLength = 12, minSentenceLength = 4) => {
|
|
179
|
+
const sentences = [];
|
|
180
|
+
for (let i = 0; i < sentencesCount; i++) {
|
|
181
|
+
const length = randomInt(maxSentenceLength, minSentenceLength) ?? 8;
|
|
182
|
+
sentences.push(generateSentence(length));
|
|
183
|
+
}
|
|
184
|
+
return sentences;
|
|
185
|
+
};
|
|
24
186
|
export {
|
|
25
|
-
|
|
187
|
+
generateSentence,
|
|
188
|
+
generateSentences,
|
|
189
|
+
words
|
|
26
190
|
};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes a file extension to its canonical form, using an optional alias map.
|
|
3
|
+
*
|
|
4
|
+
* Converts the extension to lowercase, removes a leading dot if present,
|
|
5
|
+
* and applies alias mapping if defined.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} extWithoutDot - File extension to normalize (may include or omit leading dot).
|
|
8
|
+
* @param {Record<string, string>} [aliasesWithoutDot=defaultAliases] - Optional mapping of aliases to canonical extensions.
|
|
9
|
+
* @returns {string} The normalized file extension, without leading dot.
|
|
10
|
+
*/
|
|
1
11
|
export declare function normalizeExtension(extWithoutDot: string, aliasesWithoutDot?: Record<string, string>): string;
|
|
@@ -1,15 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Represents a successful outcome.
|
|
3
|
+
*
|
|
4
|
+
* @template Payload - The type of the success payload.
|
|
5
|
+
* @property {true} success - Always `true`.
|
|
6
|
+
* @property {Payload} payload - The success value.
|
|
7
|
+
*/
|
|
8
|
+
export type Success<Payload extends any = any> = {
|
|
9
|
+
success: true;
|
|
10
|
+
payload: Payload;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Represents a failed outcome.
|
|
14
|
+
*
|
|
15
|
+
* @template Error - The type of the error.
|
|
16
|
+
* @property {false} success - Always `false`.
|
|
17
|
+
* @property {Error} error - The error value.
|
|
18
|
+
*/
|
|
19
|
+
export type Failure<Error extends any = any> = {
|
|
20
|
+
success: false;
|
|
21
|
+
error: Error;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Represents either a success or a failure outcome.
|
|
25
|
+
*
|
|
26
|
+
* @template Payload - Type of success payload.
|
|
27
|
+
* @template Error - Type of error.
|
|
28
|
+
*/
|
|
29
|
+
export type Either<Payload extends any = any, Error extends any = any> = Success<Payload> | Failure<Error>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a success outcome with the given payload.
|
|
32
|
+
*
|
|
33
|
+
* @template Payload
|
|
34
|
+
* @param {Payload} payload - The success value.
|
|
35
|
+
* @returns {Success<Payload>} A success outcome object.
|
|
36
|
+
*/
|
|
37
|
+
export declare function makeSuccess<Payload extends any>(payload: Payload): Success<Payload>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a failure outcome with the given error.
|
|
40
|
+
*
|
|
41
|
+
* @template Error
|
|
42
|
+
* @param {Error} error - The error value.
|
|
43
|
+
* @returns {Failure<Error>} A failure outcome object.
|
|
44
|
+
*/
|
|
45
|
+
export declare function makeFailure<Error extends any>(error: Error): Failure<Error>;
|
|
46
|
+
/**
|
|
47
|
+
* Creates either a success or failure outcome based on a boolean flag.
|
|
48
|
+
*
|
|
49
|
+
* @template Payload
|
|
50
|
+
* @template Error
|
|
51
|
+
* @param {boolean} success - `true` to create a success, `false` to create a failure.
|
|
52
|
+
* @param {Payload | Error} payloadOrError - The payload if success, or the error if failure.
|
|
53
|
+
* @returns {Either<Payload, Error>} The resulting outcome.
|
|
54
|
+
*/
|
|
55
|
+
export declare function make<Payload extends any>(success: true, payload: Payload): Success<Payload>;
|
|
56
|
+
export declare function make<Error extends any>(success: false, error: Error): Failure<Error>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
make,
|
|
3
|
+
makeFailure,
|
|
4
|
+
makeSuccess
|
|
5
|
+
} from "../../../chunks/chunk-QEKI6WGQ.js";
|
|
6
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
make,
|
|
9
|
+
makeFailure,
|
|
10
|
+
makeSuccess
|
|
7
11
|
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Computes the modulo of a number, always returning a non-negative result.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} nbr - The number to modulo.
|
|
5
|
+
* @param {number} modulo - The modulus.
|
|
6
|
+
* @returns {number} The non-negative remainder of `nbr` modulo `modulo`.
|
|
7
|
+
*/
|
|
1
8
|
export declare function absoluteModulo(nbr: number, modulo: number): number;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Restricts a number to lie within a specified range.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} num - The number to clamp.
|
|
5
|
+
* @param {number} bound1 - One end of the range.
|
|
6
|
+
* @param {number} bound2 - The other end of the range.
|
|
7
|
+
* @returns {number} The number constrained between the minimum and maximum of the two bounds.
|
|
8
|
+
*/
|
|
1
9
|
export declare function clamp(num: number, bound1: number, bound2: number): number;
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performs linear interpolation between two bounds based on a ratio.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} ratio - The interpolation factor, typically between 0 and 1.
|
|
5
|
+
* @param {number} bound1 - The start value.
|
|
6
|
+
* @param {number} bound2 - The end value.
|
|
7
|
+
* @returns {number} The interpolated value between `bound1` and `bound2`.
|
|
8
|
+
*/
|
|
1
9
|
export declare function interpolate(ratio: number, bound1: number, bound2: number): number;
|
|
2
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Performs inverse linear interpolation (also called "unlerp") of a value relative to one or two bounds.
|
|
12
|
+
*
|
|
13
|
+
* If only `bound1` is provided, returns the ratio of `value / bound1`.
|
|
14
|
+
* If both bounds are provided, returns the normalized position of `value` between `bound1` and `bound2`.
|
|
15
|
+
*
|
|
16
|
+
* @param {number} value - The value to normalize.
|
|
17
|
+
* @param {number} bound1 - The lower bound (or single reference value if `bound2` is omitted).
|
|
18
|
+
* @param {number} [bound2] - The upper bound (optional).
|
|
19
|
+
* @returns {number} A ratio representing the relative position of `value`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function unlerp(value: number, bound1: number, bound2?: number): number;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/numbers/interpolate/index.ts
|
|
4
|
+
function interpolate(ratio, bound1, bound2) {
|
|
5
|
+
return bound1 + ratio * (bound2 - bound1);
|
|
6
|
+
}
|
|
7
|
+
function unlerp(value, bound1, bound2) {
|
|
8
|
+
if (bound2 === void 0) return value / bound1;
|
|
9
|
+
return (value - bound1) / (bound2 - bound1);
|
|
10
|
+
}
|
|
6
11
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
12
|
+
interpolate,
|
|
13
|
+
unlerp
|
|
9
14
|
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Computes the harmonic value at a specific level between a minimum and maximum over a number of steps.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} min - The minimum value (must be non-zero).
|
|
5
|
+
* @param {number} max - The maximum value.
|
|
6
|
+
* @param {number} level - The current level (1-based).
|
|
7
|
+
* @param {number} steps - Total number of steps (must be ≥ 1).
|
|
8
|
+
* @returns {number} The computed harmonic value, or `NaN` if input is invalid.
|
|
9
|
+
*/
|
|
1
10
|
export declare function getHarmonic(min: number, max: number, level: number, steps: number): number;
|
|
2
11
|
type ScaleDescriptor = {
|
|
3
12
|
screenBounds: [number, number];
|
|
@@ -6,5 +15,16 @@ type ScaleDescriptor = {
|
|
|
6
15
|
steps: number;
|
|
7
16
|
clamp?: boolean;
|
|
8
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Creates a scale function that maps a level to a CSS size value using harmonic interpolation.
|
|
20
|
+
*
|
|
21
|
+
* @param {ScaleDescriptor} descriptor - The scale configuration.
|
|
22
|
+
* @param {[number, number]} descriptor.screenBounds - The lower and upper bounds for screen width in pixels.
|
|
23
|
+
* @param {[number, number]} descriptor.lowLevel - Minimum and maximum values for the low level range.
|
|
24
|
+
* @param {[number, number]} descriptor.highLevel - Minimum and maximum values for the high level range.
|
|
25
|
+
* @param {number} descriptor.steps - Number of discrete steps in the scale.
|
|
26
|
+
* @param {boolean} [descriptor.clamp] - Whether to wrap the resulting CSS value in a `clamp()` function.
|
|
27
|
+
* @returns {(level: number) => string | undefined} A function mapping a level to a CSS value string.
|
|
28
|
+
*/
|
|
9
29
|
export declare function createScale(descriptor: ScaleDescriptor): (level: number) => string | undefined;
|
|
10
30
|
export {};
|
|
@@ -1,9 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
round
|
|
3
|
+
} from "../../../chunks/chunk-QHEWBOQI.js";
|
|
4
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
5
|
+
|
|
6
|
+
// src/agnostic/numbers/responsive-harmonics/index.ts
|
|
7
|
+
function getHarmonic(min, max, level, steps) {
|
|
8
|
+
if (min === 0) {
|
|
9
|
+
console.warn("Cannot generate harmonics if min value is zero");
|
|
10
|
+
return NaN;
|
|
11
|
+
}
|
|
12
|
+
if (steps < 1) {
|
|
13
|
+
console.warn("Cannot generate harmonics if steps is lower than one");
|
|
14
|
+
return NaN;
|
|
15
|
+
}
|
|
16
|
+
const maxOverMin = max / min;
|
|
17
|
+
const oneOverSteps = 1 / parseInt(`${steps}`);
|
|
18
|
+
const factor = Math.pow(maxOverMin, oneOverSteps);
|
|
19
|
+
return min * Math.pow(factor, level);
|
|
20
|
+
}
|
|
21
|
+
function getAffineFunction(x1, y1, x2, y2) {
|
|
22
|
+
const slope = (y2 - y1) / (x2 - x1);
|
|
23
|
+
const yIntercept = y1 - x1 * slope;
|
|
24
|
+
return { slope, yIntercept };
|
|
25
|
+
}
|
|
26
|
+
function getCssValueFromAffine(affine) {
|
|
27
|
+
const { slope, yIntercept } = affine;
|
|
28
|
+
const roundedSlope = round(100 * slope, 3);
|
|
29
|
+
const roundedIntercept = round(yIntercept, 2);
|
|
30
|
+
return `calc(${roundedSlope}vw + ${roundedIntercept}px)`;
|
|
31
|
+
}
|
|
32
|
+
function createScale(descriptor) {
|
|
33
|
+
const {
|
|
34
|
+
screenBounds: [loBound, hiBound],
|
|
35
|
+
lowLevel: [loLevelMin, loLevelMax],
|
|
36
|
+
highLevel: [hiLevelMin, hiLevelMax],
|
|
37
|
+
steps,
|
|
38
|
+
clamp
|
|
39
|
+
} = descriptor;
|
|
40
|
+
return function scale(level) {
|
|
41
|
+
if (steps < 2) return;
|
|
42
|
+
const loBoundVal = getHarmonic(loLevelMin, hiLevelMin, level - 1, steps - 1);
|
|
43
|
+
const hiBoundVal = getHarmonic(loLevelMax, hiLevelMax, level - 1, steps - 1);
|
|
44
|
+
if (loBoundVal === void 0) return;
|
|
45
|
+
if (hiBoundVal === void 0) return;
|
|
46
|
+
const affine = getAffineFunction(loBound, loBoundVal, hiBound, hiBoundVal);
|
|
47
|
+
const cssFormula = getCssValueFromAffine(affine);
|
|
48
|
+
return clamp === true ? `clamp(${round(loBoundVal, 2)}px, ${cssFormula}, ${round(hiBoundVal, 2)}px)` : cssFormula;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
7
51
|
export {
|
|
8
52
|
createScale,
|
|
9
53
|
getHarmonic
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Rounds a number to/down a specified number of decimal places.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} number - The number to round.
|
|
5
|
+
* @param {number} nbDecimals - Number of decimal places. Defaults to 0
|
|
6
|
+
* @returns {number} The rounded number.
|
|
7
|
+
*/
|
|
8
|
+
export declare function round(number: number, nbDecimals?: number): number;
|
|
9
|
+
/**
|
|
10
|
+
* Ceils a number up to a specified number of decimal places.
|
|
11
|
+
*
|
|
12
|
+
* @param {number} number - The number to round up.
|
|
13
|
+
* @param {number} nbDecimals - Number of decimal places. Defaults to 0
|
|
14
|
+
* @returns {number} The ceiled-up number.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ceil(number: number, nbDecimals?: number): number;
|
|
17
|
+
/**
|
|
18
|
+
* Floors a number down to a specified number of decimal places.
|
|
19
|
+
*
|
|
20
|
+
* @param {number} number - The number to round down.
|
|
21
|
+
* @param {number} nbDecimals - Number of decimal places. Defaults to 0
|
|
22
|
+
* @returns {number} The floored-down number.
|
|
23
|
+
*/
|
|
24
|
+
export declare function floor(number: number, nbDecimals?: number): number;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Safely retrieves a nested property from an object using a dot-separated path string.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} anythingThatHasProperties - The object (or record) to traverse.
|
|
5
|
+
* @param {string} pathString - Dot-separated path of the property to retrieve (e.g., `'a.b.c'`).
|
|
6
|
+
* @returns {any} The value at the specified path.
|
|
7
|
+
* @throws {string} `'PROPERTY_UNREACHABLE'` if any part of the path is inaccessible or not an object.
|
|
8
|
+
*/
|
|
1
9
|
export declare function deepGetProperty(anythingThatHasProperties: unknown, pathString: string): any;
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-
|
|
5
|
-
|
|
2
|
+
isRecord
|
|
3
|
+
} from "../../../chunks/chunk-YDIBNEGA.js";
|
|
4
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
5
|
+
|
|
6
|
+
// src/agnostic/objects/deep-get-property/index.ts
|
|
7
|
+
function deepGetProperty(anythingThatHasProperties, pathString) {
|
|
8
|
+
const pathChunks = pathString.split(".").map((e) => e.trim()).filter((e) => e !== "");
|
|
9
|
+
let currentObject = anythingThatHasProperties;
|
|
10
|
+
let returned = currentObject;
|
|
11
|
+
pathChunks.forEach((chunk, pos) => {
|
|
12
|
+
const isLast = pos === pathChunks.length - 1;
|
|
13
|
+
if (!isRecord(currentObject)) throw "PROPERTY_UNREACHABLE";
|
|
14
|
+
if (isLast) {
|
|
15
|
+
const val = currentObject[chunk];
|
|
16
|
+
returned = val;
|
|
17
|
+
} else {
|
|
18
|
+
const found = currentObject[chunk];
|
|
19
|
+
if (isRecord(found)) currentObject = found;
|
|
20
|
+
else throw "PROPERTY_UNREACHABLE";
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return returned;
|
|
24
|
+
}
|
|
6
25
|
export {
|
|
7
26
|
deepGetProperty
|
|
8
27
|
};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks whether a value exists in a TypeScript enum.
|
|
3
|
+
*
|
|
4
|
+
* Works with both string and numeric enums, ignoring reverse mappings in numeric enums.
|
|
5
|
+
*
|
|
6
|
+
* @template E - The enum type.
|
|
7
|
+
* @param {E} enumObj - The enum object to check against.
|
|
8
|
+
* @param {string | number} value - The value to test.
|
|
9
|
+
* @returns {value is E[keyof E]} `true` if the value is a valid enum member, otherwise `false`.
|
|
10
|
+
*/
|
|
1
11
|
export declare function isInEnum<E extends Record<string, string | number>>(enumObj: E, value: string | number): value is E[keyof E];
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a shallow copy of an object including values from its getter properties.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} obj - The object to flatten.
|
|
5
|
+
* @returns {Record<string, unknown>} A new object containing all own properties and evaluated getter values.
|
|
6
|
+
*/
|
|
1
7
|
export declare function flattenGetters(obj: unknown): Record<string, unknown>;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../../chunks/chunk-
|
|
4
|
-
import "../../../chunks/chunk-SNJJII7A.js";
|
|
2
|
+
toRecord
|
|
3
|
+
} from "../../../chunks/chunk-HOFEVF7T.js";
|
|
5
4
|
import "../../../chunks/chunk-QXAJXTXV.js";
|
|
6
5
|
import "../../../chunks/chunk-HC6ZOHCS.js";
|
|
7
|
-
import "../../../chunks/chunk-
|
|
6
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
7
|
+
|
|
8
|
+
// src/agnostic/objects/flatten-getters/index.ts
|
|
9
|
+
function flattenGetters(obj) {
|
|
10
|
+
try {
|
|
11
|
+
const { entries, getOwnPropertyDescriptors } = Object;
|
|
12
|
+
const properties = toRecord(obj);
|
|
13
|
+
const getters = entries(getOwnPropertyDescriptors(obj)).filter(([_, desc]) => typeof desc.get === "function").map(([key]) => key);
|
|
14
|
+
const returned = { ...properties };
|
|
15
|
+
getters.forEach((getter) => {
|
|
16
|
+
returned[getter] = obj[getter];
|
|
17
|
+
});
|
|
18
|
+
return returned;
|
|
19
|
+
} catch (err) {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
8
23
|
export {
|
|
9
24
|
flattenGetters
|
|
10
25
|
};
|