@design-edito/tools 0.3.9 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agnostic/arrays/index.d.ts +2 -2
- package/agnostic/arrays/index.js +2 -2
- package/agnostic/arrays/is-array-of/index.d.ts +1 -1
- package/agnostic/arrays/is-array-of/index.js +2 -2
- package/agnostic/booleans/is-falsy/index.d.ts +1 -1
- package/agnostic/colors/channels/index.d.ts +1 -1
- package/agnostic/colors/contrast/index.d.ts +1 -1
- package/agnostic/colors/convert/index.d.ts +1 -1
- package/agnostic/colors/convert/index.js +14 -17
- package/agnostic/colors/cssColorsMap.d.ts +9 -0
- package/agnostic/colors/distance/index.d.ts +1 -1
- package/agnostic/colors/index.d.ts +3 -3
- package/agnostic/colors/index.js +3 -3
- package/agnostic/colors/invert/index.d.ts +1 -1
- package/agnostic/colors/luminance/index.d.ts +1 -1
- package/agnostic/colors/palette/index.js +2 -0
- package/agnostic/colors/tidy/index.js +2 -1
- package/agnostic/colors/typechecks/index.d.ts +1 -1
- package/agnostic/colors/typechecks/index.js +1 -3
- package/agnostic/colors/types.d.ts +0 -7
- package/agnostic/colors/types.js +0 -154
- package/agnostic/css/bem/index.d.ts +3 -3
- package/agnostic/css/bem/index.js +6 -5
- package/agnostic/css/clss/index.d.ts +54 -1
- package/agnostic/css/clss/index.js +3 -3
- package/agnostic/css/generate-nice-color/index.js +1 -0
- package/agnostic/css/index.d.ts +1 -1
- package/agnostic/css/index.js +1 -1
- package/agnostic/css/styles-set/index.d.ts +4 -4
- package/agnostic/css/styles-set/index.js +1 -1
- package/agnostic/errors/index.d.ts +1 -1
- package/agnostic/errors/index.js +1 -1
- package/agnostic/errors/register/index.js +4 -2
- package/agnostic/html/get-node-ancestors/index.js +1 -1
- package/agnostic/html/get-position-inside-parent/index.js +1 -1
- package/agnostic/html/hyper-json/cast/index.d.ts +1 -1
- package/agnostic/html/hyper-json/method/index.d.ts +2 -2
- package/agnostic/html/hyper-json/serialize/index.d.ts +1 -1
- package/agnostic/html/hyper-json/serialize/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +14 -14
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +14 -14
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +7 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +7 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +9 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +0 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +3 -1
- package/agnostic/html/hyper-json/transformer/index.d.ts +2 -2
- package/agnostic/html/hyper-json/transformer/index.js +6 -9
- package/agnostic/html/hyper-json/tree/index.d.ts +1 -1
- package/agnostic/html/hyper-json/tree/index.js +14 -10
- package/agnostic/html/hyper-json/types/index.d.ts +9 -13
- package/agnostic/html/hyper-json/utils/index.d.ts +7 -7
- package/agnostic/html/hyper-json/utils/index.js +1 -1
- package/agnostic/html/index.d.ts +1 -1
- package/agnostic/html/index.js +1 -1
- package/agnostic/html/placeholders/index.d.ts +1 -1
- package/agnostic/html/selector-to-element/index.js +1 -1
- package/agnostic/index.d.ts +6 -6
- package/agnostic/index.js +6 -6
- package/agnostic/misc/assert/index.d.ts +5 -2
- package/agnostic/misc/assert/index.js +4 -4
- package/agnostic/misc/cast/index.d.ts +1 -1
- package/agnostic/misc/connection/index.js +0 -1
- package/agnostic/misc/crawler/index.d.ts +2 -2
- package/agnostic/misc/crossenv/detect-runtime/index.js +4 -4
- package/agnostic/misc/crossenv/index.d.ts +1 -1
- package/agnostic/misc/crossenv/index.js +1 -1
- package/agnostic/misc/crossenv/window/index.d.ts +1 -1
- package/agnostic/misc/crossenv/window/index.js +2 -2
- package/agnostic/misc/data-size/index.js +2 -2
- package/agnostic/misc/index.d.ts +6 -6
- package/agnostic/misc/index.js +6 -6
- package/agnostic/misc/is-constructor-function/index.d.ts +1 -1
- package/agnostic/misc/logs/logger/index.d.ts +11 -1
- package/agnostic/misc/logs/logger/index.js +40 -10
- package/agnostic/misc/logs/styles/index.d.ts +1 -0
- package/agnostic/misc/logs/styles/index.js +27 -9
- package/agnostic/misc/outcome/index.d.ts +7 -7
- package/agnostic/numbers/approximate-rational/index.js +4 -2
- package/agnostic/numbers/index.d.ts +3 -3
- package/agnostic/numbers/index.js +3 -3
- package/agnostic/objects/deep-get-property/index.js +2 -2
- package/agnostic/objects/flatten-getters/index.js +2 -1
- package/agnostic/objects/index.d.ts +5 -4
- package/agnostic/objects/index.js +5 -4
- package/agnostic/objects/record-format/index.js +1 -0
- package/agnostic/objects/sort-keys/index.d.ts +11 -0
- package/agnostic/objects/sort-keys/index.js +12 -0
- package/agnostic/objects/sort-keys/index.test.d.ts +1 -0
- package/agnostic/optim/memoize/index.js +1 -1
- package/agnostic/optim/throttle-debounce/index.d.ts +12 -10
- package/agnostic/optim/throttle-debounce/index.js +2 -2
- package/agnostic/optim/throttle-debounce/types.d.ts +1 -1
- package/agnostic/random/index.d.ts +1 -1
- package/agnostic/random/index.js +1 -1
- package/agnostic/random/random/index.js +1 -1
- package/agnostic/sanitization/html/index.js +7 -7
- package/agnostic/sanitization/index.d.ts +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/sanitization/types.d.ts +2 -6
- package/agnostic/strings/char-codes/index.d.ts +5 -5
- package/agnostic/strings/char-codes/index.js +2 -2
- package/agnostic/strings/index.d.ts +3 -3
- package/agnostic/strings/index.js +3 -3
- package/agnostic/strings/matches/index.d.ts +2 -2
- package/agnostic/time/dates/format-date/index.js +23 -9
- package/agnostic/time/duration/index.d.ts +23 -2
- package/agnostic/time/duration/index.js +36 -4
- package/agnostic/time/index.d.ts +2 -2
- package/agnostic/time/index.js +2 -2
- package/agnostic/time/timeout/index.js +2 -2
- package/agnostic/time/transitions/index.d.ts +3 -3
- package/agnostic/time/transitions/index.js +4 -4
- package/agnostic/time/wait/index.d.ts +2 -2
- package/agnostic/time/wait/index.js +1 -1
- package/components/Disclaimer/index.d.ts +45 -0
- package/components/Disclaimer/index.js +70 -0
- package/components/Drawer/index.d.ts +45 -0
- package/components/Drawer/index.js +82 -0
- package/components/Drawer/styles.module.css +0 -0
- package/components/EventListener/index.d.ts +20 -3
- package/components/EventListener/index.js +15 -22
- package/components/Gallery/index.d.ts +67 -0
- package/components/Gallery/index.js +173 -0
- package/components/Gallery/styles.module.css +33 -0
- package/components/Gallery/utils.d.ts +1 -0
- package/components/Image/index.d.ts +60 -0
- package/components/Image/index.js +99 -0
- package/components/Image/styles.module.css +0 -0
- package/components/IntersectionObserver/index.d.ts +48 -11
- package/components/IntersectionObserver/index.js +13 -22
- package/components/Paginator/index.d.ts +72 -0
- package/components/Paginator/index.js +116 -0
- package/components/Paginator/styles.module.css +9 -0
- package/components/ResizeObserver/index.d.ts +27 -0
- package/components/ResizeObserver/index.js +81 -0
- package/components/Scrllgngn/index.d.ts +123 -0
- package/components/Scrllgngn/index.js +175 -0
- package/components/Scrllgngn/styles.module.css +74 -0
- package/components/Sequencer/index.controlled.d.ts +78 -0
- package/components/Sequencer/index.d.ts +85 -0
- package/components/Sequencer/index.js +109 -0
- package/components/Sequencer/styles.module.css +0 -0
- package/components/ShadowRoot/index.d.ts +35 -0
- package/components/ShadowRoot/index.js +56 -0
- package/components/ShadowRoot/styles.module.css +0 -0
- package/components/Subtitles/index.d.ts +58 -0
- package/components/Subtitles/index.js +111 -0
- package/components/Subtitles/styles.module.css +0 -0
- package/components/Subtitles/types.d.ts +10 -0
- package/components/Subtitles/types.js +0 -0
- package/components/Subtitles/utils.d.ts +28 -0
- package/components/Theatre/index.d.ts +64 -0
- package/components/Theatre/index.js +97 -0
- package/components/Theatre/styles.module.css +0 -0
- package/components/Video/index.d.ts +119 -0
- package/components/Video/index.js +358 -0
- package/components/Video/styles.module.css +0 -0
- package/components/Video/utils.d.ts +10 -0
- package/components/_WIP_AudioQuote/index.d.ts +1 -0
- package/components/_WIP_AudioQuote/index.js +0 -0
- package/components/_WIP_Icon/index.d.ts +1 -0
- package/components/_WIP_Icon/index.js +0 -0
- package/components/index.d.ts +15 -1
- package/components/index.js +15 -1
- package/components/public-classnames.d.ts +14 -3
- package/components/utils/index.d.ts +1 -0
- package/components/utils/index.js +12 -0
- package/components/utils/types.d.ts +3 -0
- package/components/utils/types.js +0 -0
- package/node/@aws-s3/index.test.d.ts +1 -0
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +2 -2
- package/node/@aws-s3/storage/directory/copy-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/index.js +1 -1
- package/node/@aws-s3/storage/directory/list/index.d.ts +2 -2
- package/node/@aws-s3/storage/directory/list/index.js +1 -1
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +3 -3
- package/node/@aws-s3/storage/directory/move-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +2 -2
- package/node/@aws-s3/storage/directory/remove-dir/index.js +4 -4
- package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/download/index.d.ts +3 -3
- package/node/@aws-s3/storage/file/exists/index.d.ts +2 -2
- package/node/@aws-s3/storage/file/exists/index.js +1 -2
- package/node/@aws-s3/storage/file/index.d.ts +2 -2
- package/node/@aws-s3/storage/file/index.js +2 -2
- package/node/@aws-s3/storage/file/move/index.d.ts +2 -2
- package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/upload/index.d.ts +2 -2
- package/node/@aws-s3/storage/index.d.ts +1 -1
- package/node/@aws-s3/storage/index.js +1 -1
- package/node/@express/@multer/index.d.ts +1 -1
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.js +1 -1
- package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/copy/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/download/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +6 -6
- package/node/@google-cloud/storage/file/index.js +6 -6
- package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +4 -4
- package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/stat/index.js +2 -2
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/upload/index.d.ts +2 -2
- package/node/@google-cloud/storage/index.d.ts +1 -1
- package/node/@google-cloud/storage/index.js +1 -1
- package/node/cloud-storage/operations/copy-dir/index.d.ts +8 -8
- package/node/cloud-storage/operations/copy-dir/index.js +4 -4
- package/node/cloud-storage/operations/copy-file/index.d.ts +8 -8
- package/node/cloud-storage/operations/copy-file/index.js +4 -4
- package/node/cloud-storage/operations/download-file/index.d.ts +9 -9
- package/node/cloud-storage/operations/download-file/index.js +4 -4
- package/node/cloud-storage/operations/exists-file/index.d.ts +6 -6
- package/node/cloud-storage/operations/exists-file/index.js +4 -4
- package/node/cloud-storage/operations/index.d.ts +1 -1
- package/node/cloud-storage/operations/index.js +1 -1
- package/node/cloud-storage/operations/list-dir/index.d.ts +6 -6
- package/node/cloud-storage/operations/list-dir/index.js +4 -4
- package/node/cloud-storage/operations/move-dir/index.d.ts +8 -8
- package/node/cloud-storage/operations/move-dir/index.js +4 -4
- package/node/cloud-storage/operations/move-file/index.d.ts +8 -8
- package/node/cloud-storage/operations/move-file/index.js +4 -4
- package/node/cloud-storage/operations/remove-dir/index.d.ts +8 -8
- package/node/cloud-storage/operations/remove-dir/index.js +4 -4
- package/node/cloud-storage/operations/remove-file/index.d.ts +8 -8
- package/node/cloud-storage/operations/remove-file/index.js +4 -4
- package/node/cloud-storage/operations/stat-file/index.d.ts +8 -8
- package/node/cloud-storage/operations/stat-file/index.js +4 -4
- package/node/cloud-storage/operations/upload-file/index.d.ts +9 -9
- package/node/cloud-storage/operations/upload-file/index.js +4 -4
- package/node/encryption/index.d.ts +1 -1
- package/node/encryption/index.js +1 -1
- package/node/files/index.d.ts +1 -1
- package/node/files/index.js +1 -1
- package/node/files/read-write/index.js +1 -1
- package/node/files/subpaths/index.d.ts +3 -3
- package/node/files/subpaths/index.js +6 -6
- package/node/ftps/directory/copy-dir/index.d.ts +1 -1
- package/node/ftps/directory/copy-dir/index.js +1 -1
- package/node/ftps/directory/index.d.ts +2 -2
- package/node/ftps/directory/index.js +2 -2
- package/node/ftps/directory/list/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.js +1 -3
- package/node/ftps/directory/remove-dir/index.d.ts +2 -2
- package/node/ftps/file/copy/index.d.ts +1 -1
- package/node/ftps/file/copy/index.js +1 -1
- package/node/ftps/file/download/index.d.ts +2 -2
- package/node/ftps/file/exists/index.d.ts +2 -2
- package/node/ftps/file/exists/index.js +1 -1
- package/node/ftps/file/index.d.ts +1 -1
- package/node/ftps/file/index.js +1 -1
- package/node/ftps/file/move/index.d.ts +3 -3
- package/node/ftps/file/move/index.js +1 -1
- package/node/ftps/file/remove/index.d.ts +1 -1
- package/node/ftps/file/stat/index.d.ts +1 -1
- package/node/ftps/file/stat/index.js +2 -2
- package/node/ftps/file/upload/index.d.ts +2 -2
- package/node/images/format/index.d.ts +1 -1
- package/node/images/format/index.js +9 -9
- package/node/images/index.d.ts +1 -1
- package/node/images/index.js +1 -1
- package/node/images/metadata/index.d.ts +1 -1
- package/node/images/metadata/index.js +1 -1
- package/node/images/transform/index.d.ts +2 -2
- package/node/images/transform/index.js +26 -21
- package/node/images/transform/operations/blur/index.d.ts +1 -1
- package/node/images/transform/operations/brighten/index.d.ts +1 -1
- package/node/images/transform/operations/extend/index.d.ts +1 -1
- package/node/images/transform/operations/extract/index.d.ts +1 -1
- package/node/images/transform/operations/flatten/index.d.ts +1 -1
- package/node/images/transform/operations/flatten/index.js +1 -1
- package/node/images/transform/operations/flip/index.d.ts +1 -1
- package/node/images/transform/operations/flop/index.d.ts +1 -1
- package/node/images/transform/operations/hue/index.d.ts +1 -1
- package/node/images/transform/operations/index.d.ts +5 -5
- package/node/images/transform/operations/index.js +5 -5
- package/node/images/transform/operations/level/index.d.ts +1 -1
- package/node/images/transform/operations/lighten/index.d.ts +1 -1
- package/node/images/transform/operations/normalize/index.d.ts +1 -1
- package/node/images/transform/operations/overlay/index.js +1 -1
- package/node/images/transform/operations/resize/index.d.ts +1 -1
- package/node/images/transform/operations/rotate/index.d.ts +1 -1
- package/node/images/transform/operations/saturate/index.d.ts +1 -1
- package/node/index.d.ts +2 -2
- package/node/index.js +2 -2
- package/node/process/prompt-continue/index.js +1 -1
- package/node/process/spawner/index.d.ts +61 -10
- package/node/process/spawner/index.js +15 -13
- package/node/sftp/directory/copy-dir/index.d.ts +2 -1
- package/node/sftp/directory/copy-dir/index.js +2 -2
- package/node/sftp/directory/index.d.ts +1 -1
- package/node/sftp/directory/index.js +1 -1
- package/node/sftp/directory/list/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.js +2 -4
- package/node/sftp/directory/remove-dir/index.d.ts +2 -2
- package/node/sftp/file/copy/index.d.ts +2 -1
- package/node/sftp/file/copy/index.js +2 -2
- package/node/sftp/file/download/index.d.ts +3 -3
- package/node/sftp/file/exists/index.d.ts +1 -1
- package/node/sftp/file/index.d.ts +2 -2
- package/node/sftp/file/index.js +2 -2
- package/node/sftp/file/move/index.d.ts +3 -3
- package/node/sftp/file/move/index.js +3 -5
- package/node/sftp/file/remove/index.d.ts +1 -1
- package/node/sftp/file/remove/index.js +1 -1
- package/node/sftp/file/stat/index.d.ts +1 -1
- package/node/sftp/file/stat/index.js +1 -1
- package/node/sftp/file/upload/index.d.ts +3 -2
- package/node/sftp/file/upload/index.js +1 -1
- package/package.json +2265 -14
- package/components/Input/index.d.ts +0 -7
- package/components/Input/index.js +0 -29
- /package/components/{Input → Disclaimer}/styles.module.css +0 -0
package/components/index.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
2
|
+
export * as drawer from './Drawer/index.js'
|
|
1
3
|
export * as eventListener from './EventListener/index.js'
|
|
2
|
-
export * as
|
|
4
|
+
export * as gallery from './Gallery/index.js'
|
|
5
|
+
export * as image from './Image/index.js'
|
|
3
6
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
7
|
+
export * as paginator from './Paginator/index.js'
|
|
8
|
+
export * as resizeObserver from './ResizeObserver/index.js'
|
|
9
|
+
export * as scrllgngn from './Scrllgngn/index.js'
|
|
10
|
+
export * as sequencer from './Sequencer/index.js'
|
|
11
|
+
export * as shadowRoot from './ShadowRoot/index.js'
|
|
12
|
+
export * as subtitles from './Subtitles/index.js'
|
|
13
|
+
export * as theatre from './Theatre/index.js'
|
|
14
|
+
export * as video from './Video/index.js'
|
|
15
|
+
export * as wipAudioQuote from './_WIP_AudioQuote/index.js'
|
|
16
|
+
export * as wipIcon from './_WIP_Icon/index.js'
|
|
17
|
+
export * as utils from './utils/index.js'
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export declare const disclaimer = "dsed-disclaimer";
|
|
2
|
+
export declare const drawer = "dsed-drawer";
|
|
3
|
+
export declare const eventListener = "dsed-event-listener";
|
|
4
|
+
export declare const gallery = "dsed-gallery";
|
|
5
|
+
export declare const image = "dsed-image";
|
|
6
|
+
export declare const intersectionObserver = "dsed-intersection-observer";
|
|
7
|
+
export declare const paginator = "dsed-paginator";
|
|
8
|
+
export declare const resizeObserver = "dsed-resize-observer";
|
|
9
|
+
export declare const scrllgngn = "dsed-scrllgngn";
|
|
10
|
+
export declare const sequencer = "dsed-sequencer";
|
|
11
|
+
export declare const shadowRoot = "dsed-shadow-root";
|
|
12
|
+
export declare const subtitles = "dsed-subtitles";
|
|
13
|
+
export declare const theatre = "dsed-theatre";
|
|
14
|
+
export declare const video = "dsed-video";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mergeClassNames(...names: Array<string | null | undefined | Array<string | null | undefined>>): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/utils/index.tsx
|
|
2
|
+
function mergeClassNames(...names) {
|
|
3
|
+
return names.map((name) => {
|
|
4
|
+
if (typeof name !== "string" && !Array.isArray(name)) return false;
|
|
5
|
+
if (Array.isArray(name)) return mergeClassNames(...name);
|
|
6
|
+
if (name.trim() === "") return false;
|
|
7
|
+
return name.trim();
|
|
8
|
+
}).filter((name) => typeof name === "string").join(" ");
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
mergeClassNames
|
|
12
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S3Client, ListObjectsV2CommandInput, CopyObjectCommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type S3Client, type ListObjectsV2CommandInput, type CopyObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type CopyDirOptions = {
|
|
4
4
|
/** Extra parameters forwarded to each `ListObjectsV2Command`. `Bucket` and `Prefix` are supplied by this utility. */
|
|
@@ -10,7 +10,7 @@ export type CopyDirOptions = {
|
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Recursively copies every object under `sourceDir` to the same relative path
|
|
13
|
-
* beneath `targetDir` in a single S3 bucket (AWS
|
|
13
|
+
* beneath `targetDir` in a single S3 bucket (AWS SDK v3).
|
|
14
14
|
*
|
|
15
15
|
* @param {S3Client} client - The v3 S3 client instance.
|
|
16
16
|
* @param {string} bucketName - The name of the S3 bucket.
|
|
@@ -22,7 +22,7 @@ async function copyDir(client, bucketName, sourceDir, targetDir, options) {
|
|
|
22
22
|
})
|
|
23
23
|
);
|
|
24
24
|
for (const obj of listResp.Contents ?? []) {
|
|
25
|
-
if (
|
|
25
|
+
if (obj.Key === void 0) continue;
|
|
26
26
|
const rel = obj.Key.substring(from.length);
|
|
27
27
|
const dest = `${to}${rel}`;
|
|
28
28
|
if (!overwrite) {
|
|
@@ -45,8 +45,8 @@ async function copyDir(client, bucketName, sourceDir, targetDir, options) {
|
|
|
45
45
|
})
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
|
-
token = listResp.IsTruncated ? listResp.NextContinuationToken : void 0;
|
|
49
|
-
} while (token);
|
|
48
|
+
token = listResp.IsTruncated === true ? listResp.NextContinuationToken : void 0;
|
|
49
|
+
} while (token !== void 0);
|
|
50
50
|
return Outcome.makeSuccess(true);
|
|
51
51
|
} catch (err) {
|
|
52
52
|
return Outcome.makeFailure(unknownToString(err));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S3Client, ListObjectsV2CommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type S3Client, type ListObjectsV2CommandInput } from '@aws-sdk/client-s3';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
/** Extra parameters forwarded to each `ListObjectsV2Command`. */
|
|
4
4
|
export type ListOptions = Omit<ListObjectsV2CommandInput, 'Bucket' | 'Prefix' | 'Delimiter'>;
|
|
5
5
|
/**
|
|
6
6
|
* Lists all direct‑child object keys under a given directory prefix in an S3
|
|
7
|
-
* bucket (AWS
|
|
7
|
+
* bucket (AWS SDK v3). The listing is **non‑recursive**.
|
|
8
8
|
*
|
|
9
9
|
* @param {S3Client} client - The v3 S3 client used to list objects.
|
|
10
10
|
* @param {string} bucketName - The name of the S3 bucket.
|
|
@@ -15,7 +15,7 @@ async function list(client, bucketName, directoryPath, options) {
|
|
|
15
15
|
...options
|
|
16
16
|
})
|
|
17
17
|
);
|
|
18
|
-
const keys = (response.Contents ?? []).map((obj) => obj.Key).filter(
|
|
18
|
+
const keys = (response.Contents ?? []).map((obj) => obj.Key).filter((e) => e !== void 0);
|
|
19
19
|
return Outcome.makeSuccess(keys);
|
|
20
20
|
} catch (err) {
|
|
21
21
|
return Outcome.makeFailure(unknownToString(err));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S3Client, ListObjectsV2CommandInput, CopyObjectCommandInput, DeleteObjectCommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type S3Client, type ListObjectsV2CommandInput, type CopyObjectCommandInput, type DeleteObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type MoveDirOptions = {
|
|
4
4
|
/** Extra parameters forwarded to every `ListObjectsV2Command` call. */
|
|
@@ -16,9 +16,9 @@ export type MoveDirOptions = {
|
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Recursively moves every object under `sourceDir` to the corresponding path
|
|
19
|
-
* under `targetDir` within the same S3 bucket (AWS
|
|
19
|
+
* under `targetDir` within the same S3 bucket (AWS SDK v3).
|
|
20
20
|
*
|
|
21
|
-
* Behaviour when `overwrite`
|
|
21
|
+
* Behaviour when `overwrite` is **false** (default): abort if *any* destination
|
|
22
22
|
* key already exists.
|
|
23
23
|
*
|
|
24
24
|
* @param {S3Client} client - The v3 S3 client instance.
|
|
@@ -28,7 +28,7 @@ async function moveDir(client, bucketName, sourceDir, targetDir, options) {
|
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
30
|
for (const obj of listResp.Contents ?? []) {
|
|
31
|
-
if (
|
|
31
|
+
if (obj.Key === void 0) continue;
|
|
32
32
|
const rel = obj.Key.substring(from.length);
|
|
33
33
|
const dest = `${to}${rel}`;
|
|
34
34
|
if (!overwrite) {
|
|
@@ -58,8 +58,8 @@ async function moveDir(client, bucketName, sourceDir, targetDir, options) {
|
|
|
58
58
|
})
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
token = listResp.IsTruncated ? listResp.NextContinuationToken : void 0;
|
|
62
|
-
} while (token);
|
|
61
|
+
token = listResp.IsTruncated === true ? listResp.NextContinuationToken : void 0;
|
|
62
|
+
} while (token !== void 0);
|
|
63
63
|
return Outcome.makeSuccess(true);
|
|
64
64
|
} catch (err) {
|
|
65
65
|
return Outcome.makeFailure(unknownToString(err));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S3Client, ListObjectsV2CommandInput, DeleteObjectsCommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type S3Client, type ListObjectsV2CommandInput, type DeleteObjectsCommandInput } from '@aws-sdk/client-s3';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type RemoveDirOptions = {
|
|
4
4
|
/** Extra parameters forwarded to each `ListObjectsV2Command` call. */
|
|
@@ -15,7 +15,7 @@ export type RemoveDirOptions = {
|
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Recursively deletes all objects under a directory prefix in an S3 bucket
|
|
18
|
-
* using the AWS
|
|
18
|
+
* using the AWS SDK v3 client. Handles pagination and the 1 000‑key limit of
|
|
19
19
|
* `DeleteObjects`.
|
|
20
20
|
*
|
|
21
21
|
* @param {S3Client} client - The v3 S3 client instance.
|
|
@@ -24,8 +24,8 @@ async function removeDir(client, bucketName, directoryPath, options) {
|
|
|
24
24
|
...listObjectsOptions
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
|
-
const keys = (listResp.Contents ?? []).map((o) => o.Key).filter(
|
|
28
|
-
if (keys.length) {
|
|
27
|
+
const keys = (listResp.Contents ?? []).map((o) => o.Key).filter((e) => e !== void 0);
|
|
28
|
+
if (keys.length > 0) {
|
|
29
29
|
anyFound = true;
|
|
30
30
|
for (let i = 0; i < keys.length; i += 1e3) {
|
|
31
31
|
const chunk = keys.slice(i, i + 1e3);
|
|
@@ -38,8 +38,8 @@ async function removeDir(client, bucketName, directoryPath, options) {
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
continuationToken = listResp.IsTruncated ? listResp.NextContinuationToken : void 0;
|
|
42
|
-
} while (continuationToken);
|
|
41
|
+
continuationToken = listResp.IsTruncated === true ? listResp.NextContinuationToken : void 0;
|
|
42
|
+
} while (continuationToken !== void 0);
|
|
43
43
|
if (!anyFound && !ignoreMissing) {
|
|
44
44
|
return Outcome.makeFailure(`No objects found for prefix "${prefix}".`);
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Readable } from 'node:stream';
|
|
2
|
-
import { S3Client, GetObjectCommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type Readable } from 'node:stream';
|
|
2
|
+
import { type S3Client, type GetObjectCommandInput } from '@aws-sdk/client-s3';
|
|
3
3
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Additional parameters forwarded to `GetObjectCommand`.
|
|
@@ -9,7 +9,7 @@ export type DownloadOptions = Omit<GetObjectCommandInput, 'Bucket' | 'Key'>;
|
|
|
9
9
|
/**
|
|
10
10
|
* Downloads a file from a specified Amazon S3 bucket.
|
|
11
11
|
*
|
|
12
|
-
* The function streams the object’s content back as a Node
|
|
12
|
+
* The function streams the object’s content back as a Node `Readable`.
|
|
13
13
|
*
|
|
14
14
|
* @param {S3Client} client - The v3 S3 client instance.
|
|
15
15
|
* @param {string} bucketName - The name of the S3 bucket.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S3Client, HeadObjectCommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type S3Client, type HeadObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type ExistsOptions = {
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ export type ExistsOptions = {
|
|
|
8
8
|
headObjectOptions?: Omit<HeadObjectCommandInput, 'Bucket' | 'Key'>;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
* Checks whether an object exists in a specified S3 bucket (AWS
|
|
11
|
+
* Checks whether an object exists in a specified S3 bucket (AWS SDK v3).
|
|
12
12
|
*
|
|
13
13
|
* @param {S3Client} client - The v3 S3 client instance.
|
|
14
14
|
* @param {string} bucketName - The name of the S3 bucket.
|
|
@@ -16,8 +16,7 @@ async function exists(client, bucketName, sourcePath, options) {
|
|
|
16
16
|
);
|
|
17
17
|
return Outcome.makeSuccess(true);
|
|
18
18
|
} catch (err) {
|
|
19
|
-
const notFound = err.$metadata?.httpStatusCode === 404 || err.name === "NotFound" || err.Code === "NotFound" ||
|
|
20
|
-
err.Code === "NoSuchKey";
|
|
19
|
+
const notFound = err.$metadata?.httpStatusCode === 404 || err.name === "NotFound" || err.Code === "NotFound" || err.Code === "NoSuchKey";
|
|
21
20
|
if (notFound) {
|
|
22
21
|
return Outcome.makeSuccess(false);
|
|
23
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as download from './download/index.js'
|
|
2
2
|
export * as exists from './exists/index.js'
|
|
3
3
|
export * as move from './move/index.js'
|
|
4
4
|
export * as remove from './remove/index.js'
|
|
5
5
|
export * as stat from './stat/index.js'
|
|
6
|
-
export * as download from './download/index.js'
|
|
7
6
|
export * as upload from './upload/index.js'
|
|
7
|
+
export * as copy from './copy/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as download from './download/index.js'
|
|
2
2
|
export * as exists from './exists/index.js'
|
|
3
3
|
export * as move from './move/index.js'
|
|
4
4
|
export * as remove from './remove/index.js'
|
|
5
5
|
export * as stat from './stat/index.js'
|
|
6
|
-
export * as download from './download/index.js'
|
|
7
6
|
export * as upload from './upload/index.js'
|
|
7
|
+
export * as copy from './copy/index.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S3Client, CopyObjectCommandInput, DeleteObjectCommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type S3Client, type CopyObjectCommandInput, type DeleteObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type MoveOptions = {
|
|
4
4
|
/** Extra parameters forwarded to `CopyObjectCommand` (`Bucket`, `Key`, `CopySource` are filled internally). */
|
|
@@ -13,7 +13,7 @@ export type MoveOptions = {
|
|
|
13
13
|
overwrite?: boolean;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* Moves an object from one key to another within the same S3 bucket (AWS SDK
|
|
16
|
+
* Moves an object from one key to another within the same S3 bucket (AWS SDK v3).
|
|
17
17
|
*
|
|
18
18
|
* The function copies the object from `sourcePath` to `targetPath` and, upon
|
|
19
19
|
* successful copy, deletes the original object.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S3Client, HeadObjectCommandInput, HeadObjectCommandOutput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type S3Client, type HeadObjectCommandInput, type HeadObjectCommandOutput } from '@aws-sdk/client-s3';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export interface Stat {
|
|
4
4
|
size?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Readable } from 'node:stream';
|
|
2
|
-
import { S3Client, PutObjectCommandInput } from '@aws-sdk/client-s3';
|
|
1
|
+
import { type Readable } from 'node:stream';
|
|
2
|
+
import { type S3Client, type PutObjectCommandInput } from '@aws-sdk/client-s3';
|
|
3
3
|
import { Upload } from '@aws-sdk/lib-storage';
|
|
4
4
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
5
5
|
export type UploadOptions = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, BucketMetadata, GetBucketMetadataOptions as GCSGetBucketMetadataOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type BucketMetadata, type GetBucketMetadataOptions as GCSGetBucketMetadataOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GetBucketMetadataOptions = GCSGetBucketMetadataOptions;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, GetFileOptions, CopyOptions as GCSCopyOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type GetFileOptions, type CopyOptions as GCSCopyOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type CopyDirOptions = {
|
|
4
4
|
getFileOptions?: GetFileOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, CopyOptions as GCSCopyOptions, DeleteFileOptions as GCSDeleteOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type CopyOptions as GCSCopyOptions, type DeleteFileOptions as GCSDeleteOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type MoveDirOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type RemoveDirOptions = {
|
|
4
4
|
/** Extra parameters forwarded to `bucket.deleteFiles`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, CopyOptions as GCSFileCopyOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type CopyOptions as GCSFileCopyOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type CopyOptions = {
|
|
4
4
|
/** Additional options for constructing the `File` handles. */
|
|
@@ -18,7 +18,7 @@ export type CopyOptions = {
|
|
|
18
18
|
* If `overwrite` is **false** (default) and the destination object already
|
|
19
19
|
* exists, the operation aborts.
|
|
20
20
|
*
|
|
21
|
-
* @param {Bucket} bucket - The Google Cloud
|
|
21
|
+
* @param {Bucket} bucket - The Google Cloud Storage bucket containing the file.
|
|
22
22
|
* @param {string} sourcePath - The path of the source object to copy.
|
|
23
23
|
* @param {string} targetPath - The destination path for the copied object.
|
|
24
24
|
* @param {CopyOptions} [options] - Optional copy configuration.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Readable } from 'node:stream';
|
|
2
|
-
import { Bucket, FileOptions, DownloadOptions as GCSFileDownloadOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Readable } from 'node:stream';
|
|
2
|
+
import { type Bucket, type FileOptions, type DownloadOptions as GCSFileDownloadOptions } from '@google-cloud/storage';
|
|
3
3
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
4
4
|
export type DownloadOptions = {
|
|
5
5
|
fileOptions?: FileOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, FileExistsOptions as GCSFileExistsOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type FileExistsOptions as GCSFileExistsOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type ExistsOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, GetSignedUrlConfig } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type GetSignedUrlConfig } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GenerateSignedUrlOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, GetFileMetadataOptions as GCSGetFileMetadataOptions, FileMetadata } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type GetFileMetadataOptions as GCSGetFileMetadataOptions, type FileMetadata } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GetMetadataOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, GetAclOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type GetAclOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type GetPermissionsOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as copy from './copy/index.js'
|
|
2
1
|
export * as download from './download/index.js'
|
|
2
|
+
export * as copy from './copy/index.js'
|
|
3
|
+
export * as exists from './exists/index.js'
|
|
3
4
|
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
4
|
-
export * as getPermissions from './get-permissions/index.js'
|
|
5
5
|
export * as getMetadata from './get-metadata/index.js'
|
|
6
|
-
export * as
|
|
7
|
-
export * as
|
|
6
|
+
export * as getPermissions from './get-permissions/index.js'
|
|
7
|
+
export * as move from './move/index.js'
|
|
8
|
+
export * as remove from './remove/index.js'
|
|
8
9
|
export * as stat from './stat/index.js'
|
|
10
|
+
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
9
11
|
export * as updateMetadata from './update-metadata/index.js'
|
|
10
12
|
export * as upload from './upload/index.js'
|
|
11
|
-
export * as move from './move/index.js'
|
|
12
|
-
export * as remove from './remove/index.js'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as copy from './copy/index.js'
|
|
2
1
|
export * as download from './download/index.js'
|
|
2
|
+
export * as copy from './copy/index.js'
|
|
3
|
+
export * as exists from './exists/index.js'
|
|
3
4
|
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
4
|
-
export * as getPermissions from './get-permissions/index.js'
|
|
5
5
|
export * as getMetadata from './get-metadata/index.js'
|
|
6
|
-
export * as
|
|
7
|
-
export * as
|
|
6
|
+
export * as getPermissions from './get-permissions/index.js'
|
|
7
|
+
export * as move from './move/index.js'
|
|
8
|
+
export * as remove from './remove/index.js'
|
|
8
9
|
export * as stat from './stat/index.js'
|
|
10
|
+
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
9
11
|
export * as updateMetadata from './update-metadata/index.js'
|
|
10
12
|
export * as upload from './upload/index.js'
|
|
11
|
-
export * as move from './move/index.js'
|
|
12
|
-
export * as remove from './remove/index.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, CopyOptions, DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type CopyOptions, type DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type MoveOptions = {
|
|
4
4
|
/** Options applied when obtaining `bucket.file(...)` handles. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type RemoveOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Bucket } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
|
-
import { DownloadOptions } from '../download/index.js';
|
|
4
|
-
import { RemoveOptions } from '../remove/index.js';
|
|
5
|
-
import { UploadOptions } from '../upload/index.js';
|
|
3
|
+
import { type DownloadOptions } from '../download/index.js';
|
|
4
|
+
import { type RemoveOptions } from '../remove/index.js';
|
|
5
|
+
import { type UploadOptions } from '../upload/index.js';
|
|
6
6
|
export type RevokeSignedUrlsOptions = {
|
|
7
7
|
downloadOptions?: DownloadOptions;
|
|
8
8
|
removeOptions?: RemoveOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, GetFileMetadataOptions, FileMetadata } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type GetFileMetadataOptions, type FileMetadata } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
/** Provider‑agnostic view + strongly‑typed raw metadata */
|
|
4
4
|
export interface Stat {
|
|
@@ -6,8 +6,8 @@ async function stat(bucket, path, options) {
|
|
|
6
6
|
try {
|
|
7
7
|
const [meta] = await bucket.file(path, fileOptions).getMetadata(getMetadataOptions);
|
|
8
8
|
const res = {
|
|
9
|
-
size: meta.size ? Number(meta.size) : void 0,
|
|
10
|
-
modifiedAt: meta.updated ? new Date(meta.updated) : void 0,
|
|
9
|
+
size: meta.size !== void 0 ? Number(meta.size) : void 0,
|
|
10
|
+
modifiedAt: meta.updated !== void 0 ? new Date(meta.updated) : void 0,
|
|
11
11
|
checksum: meta.md5Hash ?? meta.crc32c,
|
|
12
12
|
contentType: meta.contentType,
|
|
13
13
|
metadata: meta.metadata,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bucket, FileOptions, SetFileMetadataOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Bucket, type FileOptions, type SetFileMetadataOptions } from '@google-cloud/storage';
|
|
2
2
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
3
3
|
export type UpdateFileMetadataOptions = {
|
|
4
4
|
fileOptions?: FileOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Readable } from 'node:stream';
|
|
2
|
-
import { Bucket, FileOptions, SaveOptions } from '@google-cloud/storage';
|
|
1
|
+
import { type Readable } from 'node:stream';
|
|
2
|
+
import { type Bucket, type FileOptions, type SaveOptions } from '@google-cloud/storage';
|
|
3
3
|
import * as Outcome from '../../../../../agnostic/misc/outcome/index.js';
|
|
4
4
|
export type UploadOptions = {
|
|
5
5
|
fileOptions?: FileOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Bucket as GCSBucket } from '@google-cloud/storage';
|
|
2
|
-
import { Client as FtpClient } from 'basic-ftp';
|
|
3
|
-
import SftpClient from 'ssh2-sftp-client';
|
|
1
|
+
import { type Bucket as GCSBucket } from '@google-cloud/storage';
|
|
2
|
+
import { type Client as FtpClient } from 'basic-ftp';
|
|
3
|
+
import type SftpClient from 'ssh2-sftp-client';
|
|
4
4
|
import * as Outcome from '../../../../agnostic/misc/outcome/index.js';
|
|
5
|
-
import { S3ClientWithBucket } from '../../clients/index.js';
|
|
6
|
-
import { CopyDirOptions as FtpsCopyDirOptions } from '../../../ftps/directory/copy-dir/index.js';
|
|
7
|
-
import { CopyDirOptions as SftpCopyDirOptions } from '../../../sftp/directory/copy-dir/index.js';
|
|
8
|
-
import { CopyDirOptions as S3CopyDirOptions } from '../../../@aws-s3/storage/directory/copy-dir/index.js';
|
|
9
|
-
import { CopyDirOptions as GcsCopyDirOptions } from '../../../@google-cloud/storage/directory/copy-dir/index.js';
|
|
5
|
+
import { type S3ClientWithBucket } from '../../clients/index.js';
|
|
6
|
+
import { type CopyDirOptions as FtpsCopyDirOptions } from '../../../ftps/directory/copy-dir/index.js';
|
|
7
|
+
import { type CopyDirOptions as SftpCopyDirOptions } from '../../../sftp/directory/copy-dir/index.js';
|
|
8
|
+
import { type CopyDirOptions as S3CopyDirOptions } from '../../../@aws-s3/storage/directory/copy-dir/index.js';
|
|
9
|
+
import { type CopyDirOptions as GcsCopyDirOptions } from '../../../@google-cloud/storage/directory/copy-dir/index.js';
|
|
10
10
|
/** Return type for copy directory operations. */
|
|
11
11
|
type Returned = Outcome.Either<true, string>;
|
|
12
12
|
/**
|