@uploadcare/file-uploader 1.17.0-alpha.2 → 1.17.0-alpha.4
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/abstract/ActivityBlock.d.ts +79 -0
- package/abstract/ActivityBlock.d.ts.map +1 -0
- package/abstract/Block.d.ts +102 -0
- package/abstract/Block.d.ts.map +1 -0
- package/abstract/CTX.d.ts +30 -0
- package/abstract/CTX.d.ts.map +1 -0
- package/abstract/LocaleManager.d.ts +38 -0
- package/abstract/LocaleManager.d.ts.map +1 -0
- package/abstract/ModalManager.d.ts +122 -0
- package/abstract/ModalManager.d.ts.map +1 -0
- package/abstract/SecureUploadsManager.d.ts +22 -0
- package/abstract/SecureUploadsManager.d.ts.map +1 -0
- package/abstract/SolutionBlock.d.ts +22 -0
- package/abstract/SolutionBlock.d.ts.map +1 -0
- package/abstract/TypedCollection.d.ts +127 -0
- package/abstract/TypedCollection.d.ts.map +1 -0
- package/abstract/TypedData.d.ts +93 -0
- package/abstract/TypedData.d.ts.map +1 -0
- package/abstract/UploaderBlock.d.ts +117 -0
- package/abstract/UploaderBlock.d.ts.map +1 -0
- package/abstract/UploaderPublicApi.d.ts +100 -0
- package/abstract/UploaderPublicApi.d.ts.map +1 -0
- package/abstract/ValidationManager.d.ts +150 -0
- package/abstract/ValidationManager.d.ts.map +1 -0
- package/abstract/a11y.d.ts +20 -0
- package/abstract/a11y.d.ts.map +1 -0
- package/abstract/buildOutputCollectionState.d.ts +8 -0
- package/abstract/buildOutputCollectionState.d.ts.map +1 -0
- package/abstract/defineComponents.d.ts +5 -0
- package/abstract/defineComponents.d.ts.map +1 -0
- package/abstract/l10nProcessor.d.ts +7 -0
- package/abstract/l10nProcessor.d.ts.map +1 -0
- package/abstract/loadFileUploaderFrom.d.ts +8 -0
- package/abstract/loadFileUploaderFrom.d.ts.map +1 -0
- package/abstract/localeRegistry.d.ts +5 -0
- package/abstract/localeRegistry.d.ts.map +1 -0
- package/abstract/sharedConfigKey.d.ts +2 -0
- package/abstract/sharedConfigKey.d.ts.map +1 -0
- package/abstract/testModeProcessor.d.ts +7 -0
- package/abstract/testModeProcessor.d.ts.map +1 -0
- package/abstract/uploadEntrySchema.d.ts +126 -0
- package/abstract/uploadEntrySchema.d.ts.map +1 -0
- package/blocks/ActivityHeader/ActivityHeader.d.ts +4 -0
- package/blocks/ActivityHeader/ActivityHeader.d.ts.map +1 -0
- package/blocks/CameraSource/CameraSource.d.ts +176 -0
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -0
- package/blocks/CameraSource/calcCameraModes.d.ts +5 -0
- package/blocks/CameraSource/calcCameraModes.d.ts.map +1 -0
- package/blocks/CameraSource/constants.d.ts +16 -0
- package/blocks/CameraSource/constants.d.ts.map +1 -0
- package/blocks/CloudImageEditor/index.d.ts +2 -0
- package/blocks/CloudImageEditor/index.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts +58 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +158 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts +10 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts +6 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +18 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +106 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +132 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts +9 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts +7 -0
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts +24 -0
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +109 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/crop-utils.d.ts +123 -0
- package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts +11 -0
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts +21 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts +11 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts +17 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts +16 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/index.d.ts +15 -0
- package/blocks/CloudImageEditor/src/index.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts +15 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +10 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/classNames.d.ts +3 -0
- package/blocks/CloudImageEditor/src/lib/classNames.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/linspace.d.ts +8 -0
- package/blocks/CloudImageEditor/src/lib/linspace.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +2 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts +2 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/pick.d.ts +7 -0
- package/blocks/CloudImageEditor/src/lib/pick.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +14 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/state.d.ts +38 -0
- package/blocks/CloudImageEditor/src/state.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts +3 -0
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/template.d.ts +2 -0
- package/blocks/CloudImageEditor/src/template.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.d.ts +58 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/types.d.ts +64 -0
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/util.d.ts +2 -0
- package/blocks/CloudImageEditor/src/util.d.ts.map +1 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +29 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -0
- package/blocks/CloudImageEditorActivity/test.d.ts +2 -0
- package/blocks/CloudImageEditorActivity/test.d.ts.map +1 -0
- package/blocks/Config/Config.d.ts +60 -0
- package/blocks/Config/Config.d.ts.map +1 -0
- package/blocks/Config/assertions.d.ts +5 -0
- package/blocks/Config/assertions.d.ts.map +1 -0
- package/blocks/Config/initialConfig.d.ts +6 -0
- package/blocks/Config/initialConfig.d.ts.map +1 -0
- package/blocks/Config/normalizeConfigValue.d.ts +2 -0
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -0
- package/blocks/Config/side-effects.d.ts +7 -0
- package/blocks/Config/side-effects.d.ts.map +1 -0
- package/blocks/Config/validatorsType.d.ts +37 -0
- package/blocks/Config/validatorsType.d.ts.map +1 -0
- package/blocks/Copyright/Copyright.d.ts +4 -0
- package/blocks/Copyright/Copyright.d.ts.map +1 -0
- package/blocks/DropArea/DropArea.d.ts +49 -0
- package/blocks/DropArea/DropArea.d.ts.map +1 -0
- package/blocks/DropArea/addDropzone.d.ts +21 -0
- package/blocks/DropArea/addDropzone.d.ts.map +1 -0
- package/blocks/DropArea/getDropItems.d.ts +16 -0
- package/blocks/DropArea/getDropItems.d.ts.map +1 -0
- package/blocks/ExternalSource/ExternalSource.d.ts +78 -0
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -0
- package/blocks/ExternalSource/MessageBridge.d.ts +20 -0
- package/blocks/ExternalSource/MessageBridge.d.ts.map +1 -0
- package/blocks/ExternalSource/buildThemeDefinition.d.ts +3 -0
- package/blocks/ExternalSource/buildThemeDefinition.d.ts.map +1 -0
- package/blocks/ExternalSource/query-string.d.ts +8 -0
- package/blocks/ExternalSource/query-string.d.ts.map +1 -0
- package/blocks/ExternalSource/types.d.ts +105 -0
- package/blocks/ExternalSource/types.d.ts.map +1 -0
- package/blocks/FileItem/FileItem.d.ts +76 -0
- package/blocks/FileItem/FileItem.d.ts.map +1 -0
- package/blocks/FileItem/FileItemConfig.d.ts +28 -0
- package/blocks/FileItem/FileItemConfig.d.ts.map +1 -0
- package/blocks/FormInput/FormInput.d.ts +7 -0
- package/blocks/FormInput/FormInput.d.ts.map +1 -0
- package/blocks/Icon/Icon.d.ts +11 -0
- package/blocks/Icon/Icon.d.ts.map +1 -0
- package/blocks/Img/Img.d.ts +4 -0
- package/blocks/Img/Img.d.ts.map +1 -0
- package/blocks/Img/ImgBase.d.ts +80 -0
- package/blocks/Img/ImgBase.d.ts.map +1 -0
- package/blocks/Img/ImgConfig.d.ts +31 -0
- package/blocks/Img/ImgConfig.d.ts.map +1 -0
- package/blocks/Img/configurations.d.ts +12 -0
- package/blocks/Img/configurations.d.ts.map +1 -0
- package/blocks/Img/props-map.d.ts +29 -0
- package/blocks/Img/props-map.d.ts.map +1 -0
- package/blocks/Img/utils/parseObjectToString.d.ts +2 -0
- package/blocks/Img/utils/parseObjectToString.d.ts.map +1 -0
- package/blocks/Modal/Modal.d.ts +43 -0
- package/blocks/Modal/Modal.d.ts.map +1 -0
- package/blocks/ProgressBar/ProgressBar.d.ts +17 -0
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts +8 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts.map +1 -0
- package/blocks/Range/Range.d.ts +16 -0
- package/blocks/Range/Range.d.ts.map +1 -0
- package/blocks/Select/Select.d.ts +9 -0
- package/blocks/Select/Select.d.ts.map +1 -0
- package/blocks/SimpleBtn/SimpleBtn.d.ts +25 -0
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -0
- package/blocks/SourceBtn/SourceBtn.d.ts +57 -0
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -0
- package/blocks/SourceList/SourceList.d.ts +4 -0
- package/blocks/SourceList/SourceList.d.ts.map +1 -0
- package/blocks/Spinner/Spinner.d.ts +8 -0
- package/blocks/Spinner/Spinner.d.ts.map +1 -0
- package/blocks/StartFrom/StartFrom.d.ts +7 -0
- package/blocks/StartFrom/StartFrom.d.ts.map +1 -0
- package/blocks/Thumb/Thumb.d.ts +51 -0
- package/blocks/Thumb/Thumb.d.ts.map +1 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +112 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +35 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -0
- package/blocks/UploadList/UploadList.d.ts +60 -0
- package/blocks/UploadList/UploadList.d.ts.map +1 -0
- package/blocks/UrlSource/UrlSource.d.ts +9 -0
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts +17 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +3 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -0
- package/blocks/utils/UploadSource.d.ts +39 -0
- package/blocks/utils/UploadSource.d.ts.map +1 -0
- package/blocks/utils/abilities.d.ts +2 -0
- package/blocks/utils/abilities.d.ts.map +1 -0
- package/blocks/utils/comma-separated.d.ts +3 -0
- package/blocks/utils/comma-separated.d.ts.map +1 -0
- package/blocks/utils/debounce.d.ts +12 -0
- package/blocks/utils/debounce.d.ts.map +1 -0
- package/blocks/utils/preloadImage.d.ts +11 -0
- package/blocks/utils/preloadImage.d.ts.map +1 -0
- package/blocks/utils/resizeImage.d.ts +6 -0
- package/blocks/utils/resizeImage.d.ts.map +1 -0
- package/blocks/utils/throttle.d.ts +6 -0
- package/blocks/utils/throttle.d.ts.map +1 -0
- package/blocks/utils/userAgent.d.ts +6 -0
- package/blocks/utils/userAgent.d.ts.map +1 -0
- package/env.d.ts +4 -0
- package/env.d.ts.map +1 -0
- package/index.d.ts +43 -0
- package/index.d.ts.map +1 -0
- package/index.ssr.d.ts +1093 -0
- package/index.ssr.d.ts.map +1 -0
- package/index.ssr.js +30 -30
- package/locales/file-uploader/ar.d.ts +134 -0
- package/locales/file-uploader/ar.d.ts.map +1 -0
- package/locales/file-uploader/ar.js +1 -0
- package/locales/file-uploader/az.d.ts +126 -0
- package/locales/file-uploader/az.d.ts.map +1 -0
- package/locales/file-uploader/az.js +1 -0
- package/locales/file-uploader/ca.d.ts +128 -0
- package/locales/file-uploader/ca.d.ts.map +1 -0
- package/locales/file-uploader/ca.js +1 -0
- package/locales/file-uploader/cs.d.ts +130 -0
- package/locales/file-uploader/cs.d.ts.map +1 -0
- package/locales/file-uploader/cs.js +1 -0
- package/locales/file-uploader/da.d.ts +126 -0
- package/locales/file-uploader/da.d.ts.map +1 -0
- package/locales/file-uploader/da.js +1 -0
- package/locales/file-uploader/de.d.ts +126 -0
- package/locales/file-uploader/de.d.ts.map +1 -0
- package/locales/file-uploader/de.js +1 -0
- package/locales/file-uploader/el.d.ts +126 -0
- package/locales/file-uploader/el.d.ts.map +1 -0
- package/locales/file-uploader/el.js +1 -0
- package/locales/file-uploader/en.d.ts +126 -0
- package/locales/file-uploader/en.d.ts.map +1 -0
- package/locales/file-uploader/en.js +1 -0
- package/locales/file-uploader/es.d.ts +128 -0
- package/locales/file-uploader/es.d.ts.map +1 -0
- package/locales/file-uploader/es.js +1 -0
- package/locales/file-uploader/et.d.ts +126 -0
- package/locales/file-uploader/et.d.ts.map +1 -0
- package/locales/file-uploader/et.js +1 -0
- package/locales/file-uploader/fi.d.ts +126 -0
- package/locales/file-uploader/fi.d.ts.map +1 -0
- package/locales/file-uploader/fi.js +1 -0
- package/locales/file-uploader/fr.d.ts +128 -0
- package/locales/file-uploader/fr.d.ts.map +1 -0
- package/locales/file-uploader/fr.js +1 -0
- package/locales/file-uploader/he.d.ts +128 -0
- package/locales/file-uploader/he.d.ts.map +1 -0
- package/locales/file-uploader/he.js +1 -0
- package/locales/file-uploader/hy.d.ts +126 -0
- package/locales/file-uploader/hy.d.ts.map +1 -0
- package/locales/file-uploader/hy.js +1 -0
- package/locales/file-uploader/is.d.ts +126 -0
- package/locales/file-uploader/is.d.ts.map +1 -0
- package/locales/file-uploader/is.js +1 -0
- package/locales/file-uploader/it.d.ts +128 -0
- package/locales/file-uploader/it.d.ts.map +1 -0
- package/locales/file-uploader/it.js +1 -0
- package/locales/file-uploader/ja.d.ts +126 -0
- package/locales/file-uploader/ja.d.ts.map +1 -0
- package/locales/file-uploader/ja.js +1 -0
- package/locales/file-uploader/ka.d.ts +126 -0
- package/locales/file-uploader/ka.d.ts.map +1 -0
- package/locales/file-uploader/ka.js +1 -0
- package/locales/file-uploader/kk.d.ts +126 -0
- package/locales/file-uploader/kk.d.ts.map +1 -0
- package/locales/file-uploader/kk.js +1 -0
- package/locales/file-uploader/ko.d.ts +126 -0
- package/locales/file-uploader/ko.d.ts.map +1 -0
- package/locales/file-uploader/ko.js +1 -0
- package/locales/file-uploader/lv.d.ts +128 -0
- package/locales/file-uploader/lv.d.ts.map +1 -0
- package/locales/file-uploader/lv.js +1 -0
- package/locales/file-uploader/nb.d.ts +126 -0
- package/locales/file-uploader/nb.d.ts.map +1 -0
- package/locales/file-uploader/nb.js +1 -0
- package/locales/file-uploader/nl.d.ts +126 -0
- package/locales/file-uploader/nl.d.ts.map +1 -0
- package/locales/file-uploader/nl.js +1 -0
- package/locales/file-uploader/pl.d.ts +130 -0
- package/locales/file-uploader/pl.d.ts.map +1 -0
- package/locales/file-uploader/pl.js +1 -0
- package/locales/file-uploader/pt.d.ts +128 -0
- package/locales/file-uploader/pt.d.ts.map +1 -0
- package/locales/file-uploader/pt.js +1 -0
- package/locales/file-uploader/ro.d.ts +128 -0
- package/locales/file-uploader/ro.d.ts.map +1 -0
- package/locales/file-uploader/ro.js +1 -0
- package/locales/file-uploader/ru.d.ts +130 -0
- package/locales/file-uploader/ru.d.ts.map +1 -0
- package/locales/file-uploader/ru.js +1 -0
- package/locales/file-uploader/sk.d.ts +130 -0
- package/locales/file-uploader/sk.d.ts.map +1 -0
- package/locales/file-uploader/sk.js +1 -0
- package/locales/file-uploader/sr.d.ts +128 -0
- package/locales/file-uploader/sr.d.ts.map +1 -0
- package/locales/file-uploader/sr.js +1 -0
- package/locales/file-uploader/sv.d.ts +126 -0
- package/locales/file-uploader/sv.d.ts.map +1 -0
- package/locales/file-uploader/sv.js +1 -0
- package/locales/file-uploader/tr.d.ts +126 -0
- package/locales/file-uploader/tr.d.ts.map +1 -0
- package/locales/file-uploader/tr.js +1 -0
- package/locales/file-uploader/uk.d.ts +130 -0
- package/locales/file-uploader/uk.d.ts.map +1 -0
- package/locales/file-uploader/uk.js +1 -0
- package/locales/file-uploader/vi.d.ts +126 -0
- package/locales/file-uploader/vi.d.ts.map +1 -0
- package/locales/file-uploader/vi.js +1 -0
- package/locales/file-uploader/zh-TW.d.ts +126 -0
- package/locales/file-uploader/zh-TW.d.ts.map +1 -0
- package/locales/file-uploader/zh-TW.js +1 -0
- package/locales/file-uploader/zh.d.ts +126 -0
- package/locales/file-uploader/zh.d.ts.map +1 -0
- package/locales/file-uploader/zh.js +1 -0
- package/package.json +1 -1
- package/solutions/adaptive-image/index.d.ts +3 -0
- package/solutions/adaptive-image/index.d.ts.map +1 -0
- package/solutions/cloud-image-editor/CloudImageEditor.d.ts +4 -0
- package/solutions/cloud-image-editor/CloudImageEditor.d.ts.map +1 -0
- package/solutions/cloud-image-editor/index.d.ts +6 -0
- package/solutions/cloud-image-editor/index.d.ts.map +1 -0
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts +26 -0
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -0
- package/solutions/file-uploader/inline/index.d.ts +2 -0
- package/solutions/file-uploader/inline/index.d.ts.map +1 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +42 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -0
- package/solutions/file-uploader/minimal/index.d.ts +2 -0
- package/solutions/file-uploader/minimal/index.d.ts.map +1 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +23 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -0
- package/solutions/file-uploader/regular/index.d.ts +2 -0
- package/solutions/file-uploader/regular/index.d.ts.map +1 -0
- package/utils/WindowHeightTracker.d.ts +24 -0
- package/utils/WindowHeightTracker.d.ts.map +1 -0
- package/utils/browser-info.d.ts +13 -0
- package/utils/browser-info.d.ts.map +1 -0
- package/utils/browser-info.test.d.ts +2 -0
- package/utils/browser-info.test.d.ts.map +1 -0
- package/utils/cdn-utils.d.ts +59 -0
- package/utils/cdn-utils.d.ts.map +1 -0
- package/utils/cdn-utils.test.d.ts +2 -0
- package/utils/cdn-utils.test.d.ts.map +1 -0
- package/utils/delay.d.ts +2 -0
- package/utils/delay.d.ts.map +1 -0
- package/utils/fileTypes.d.ts +12 -0
- package/utils/fileTypes.d.ts.map +1 -0
- package/utils/fileTypes.test.d.ts +2 -0
- package/utils/fileTypes.test.d.ts.map +1 -0
- package/utils/get-top-level-origin.d.ts +2 -0
- package/utils/get-top-level-origin.d.ts.map +1 -0
- package/utils/getLocaleDirection.d.ts +2 -0
- package/utils/getLocaleDirection.d.ts.map +1 -0
- package/utils/getPluralForm.d.ts +3 -0
- package/utils/getPluralForm.d.ts.map +1 -0
- package/utils/getPluralForm.test.d.ts +2 -0
- package/utils/getPluralForm.test.d.ts.map +1 -0
- package/utils/ifRef.d.ts +7 -0
- package/utils/ifRef.d.ts.map +1 -0
- package/utils/isSecureTokenExpired.d.ts +4 -0
- package/utils/isSecureTokenExpired.d.ts.map +1 -0
- package/utils/isSecureTokenExpired.test.d.ts +2 -0
- package/utils/isSecureTokenExpired.test.d.ts.map +1 -0
- package/utils/memoize.d.ts +2 -0
- package/utils/memoize.d.ts.map +1 -0
- package/utils/memoize.test.d.ts +2 -0
- package/utils/memoize.test.d.ts.map +1 -0
- package/utils/mixinClass.d.ts +10 -0
- package/utils/mixinClass.d.ts.map +1 -0
- package/utils/parseCdnUrl.d.ts +9 -0
- package/utils/parseCdnUrl.d.ts.map +1 -0
- package/utils/parseCdnUrl.test.d.ts +2 -0
- package/utils/parseCdnUrl.test.d.ts.map +1 -0
- package/utils/parseShrink.d.ts +5 -0
- package/utils/parseShrink.d.ts.map +1 -0
- package/utils/parseShrink.test.d.ts +2 -0
- package/utils/parseShrink.test.d.ts.map +1 -0
- package/utils/prettyBytes.d.ts +11 -0
- package/utils/prettyBytes.d.ts.map +1 -0
- package/utils/prettyBytes.test.d.ts +2 -0
- package/utils/prettyBytes.test.d.ts.map +1 -0
- package/utils/stringToArray.d.ts +2 -0
- package/utils/stringToArray.d.ts.map +1 -0
- package/utils/stringToArray.test.d.ts +2 -0
- package/utils/stringToArray.test.d.ts.map +1 -0
- package/utils/template-utils.d.ts +40 -0
- package/utils/template-utils.d.ts.map +1 -0
- package/utils/template-utils.test.d.ts +2 -0
- package/utils/template-utils.test.d.ts.map +1 -0
- package/utils/toKebabCase.d.ts +3 -0
- package/utils/toKebabCase.d.ts.map +1 -0
- package/utils/toKebabCase.test.d.ts +2 -0
- package/utils/toKebabCase.test.d.ts.map +1 -0
- package/utils/transparentPixelSrc.d.ts +2 -0
- package/utils/transparentPixelSrc.d.ts.map +1 -0
- package/utils/uniqueArray.d.ts +2 -0
- package/utils/uniqueArray.d.ts.map +1 -0
- package/utils/uniqueArray.test.d.ts +2 -0
- package/utils/uniqueArray.test.d.ts.map +1 -0
- package/utils/validators/collection/index.d.ts +3 -0
- package/utils/validators/collection/index.d.ts.map +1 -0
- package/utils/validators/collection/validateCollectionUploadError.d.ts +3 -0
- package/utils/validators/collection/validateCollectionUploadError.d.ts.map +1 -0
- package/utils/validators/collection/validateMultiple.d.ts +3 -0
- package/utils/validators/collection/validateMultiple.d.ts.map +1 -0
- package/utils/validators/file/index.d.ts +5 -0
- package/utils/validators/file/index.d.ts.map +1 -0
- package/utils/validators/file/validateFileType.d.ts +3 -0
- package/utils/validators/file/validateFileType.d.ts.map +1 -0
- package/utils/validators/file/validateIsImage.d.ts +3 -0
- package/utils/validators/file/validateIsImage.d.ts.map +1 -0
- package/utils/validators/file/validateMaxSizeLimit.d.ts +3 -0
- package/utils/validators/file/validateMaxSizeLimit.d.ts.map +1 -0
- package/utils/validators/file/validateUploadError.d.ts +3 -0
- package/utils/validators/file/validateUploadError.d.ts.map +1 -0
- package/utils/waitForAttribute.d.ts +8 -0
- package/utils/waitForAttribute.d.ts.map +1 -0
- package/utils/waitForAttribute.test.d.ts +2 -0
- package/utils/waitForAttribute.test.d.ts.map +1 -0
- package/utils/warnOnce.d.ts +3 -0
- package/utils/warnOnce.d.ts.map +1 -0
- package/utils/wildcardRegexp.d.ts +2 -0
- package/utils/wildcardRegexp.d.ts.map +1 -0
- package/utils/wildcardRegexp.test.d.ts +2 -0
- package/utils/wildcardRegexp.test.d.ts.map +1 -0
- package/web/file-uploader.iife.min.js +29 -0
- package/web/file-uploader.min.js +29 -0
- package/web/uc-basic.min.css +1 -0
- package/web/uc-cloud-image-editor.min.css +1 -0
- package/web/uc-cloud-image-editor.min.js +29 -0
- package/web/uc-file-uploader-inline.min.css +1 -0
- package/web/uc-file-uploader-inline.min.js +29 -0
- package/web/uc-file-uploader-minimal.min.css +1 -0
- package/web/uc-file-uploader-minimal.min.js +29 -0
- package/web/uc-file-uploader-regular.min.css +1 -0
- package/web/uc-file-uploader-regular.min.js +29 -0
- package/web/uc-img.min.js +28 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} Keypoint
|
|
3
|
+
* @property {String} src
|
|
4
|
+
* @property {Number} opacity
|
|
5
|
+
* @property {Number} zIndex
|
|
6
|
+
* @property {HTMLImageElement} image
|
|
7
|
+
* @property {Number} value
|
|
8
|
+
*/
|
|
9
|
+
export class EditorImageFader extends Block {
|
|
10
|
+
/**
|
|
11
|
+
* @private
|
|
12
|
+
* @type {Boolean}
|
|
13
|
+
*/
|
|
14
|
+
private _isActive;
|
|
15
|
+
/**
|
|
16
|
+
* @private
|
|
17
|
+
* @type {Boolean}
|
|
18
|
+
*/
|
|
19
|
+
private _hidden;
|
|
20
|
+
/** @private */
|
|
21
|
+
private _addKeypointDebounced;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* @param {String} src
|
|
25
|
+
* @returns {() => void} Destructor
|
|
26
|
+
*/
|
|
27
|
+
private _handleImageLoading;
|
|
28
|
+
/** @private */
|
|
29
|
+
private _flush;
|
|
30
|
+
_raf: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* @private
|
|
33
|
+
* @param {Object} options
|
|
34
|
+
* @param {String} [options.url]
|
|
35
|
+
* @param {String} [options.filter]
|
|
36
|
+
* @param {String} [options.operation]
|
|
37
|
+
* @param {Number} [options.value]
|
|
38
|
+
* @returns {Promise<String>}
|
|
39
|
+
*/
|
|
40
|
+
private _imageSrc;
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
* @param {String} operation
|
|
44
|
+
* @param {Number} value
|
|
45
|
+
* @returns {Promise<Keypoint>}
|
|
46
|
+
*/
|
|
47
|
+
private _constructKeypoint;
|
|
48
|
+
/**
|
|
49
|
+
* Check if current operation and filter equals passed ones
|
|
50
|
+
*
|
|
51
|
+
* @private
|
|
52
|
+
* @param {String} operation
|
|
53
|
+
* @param {String} [filter]
|
|
54
|
+
* @returns {Boolean}
|
|
55
|
+
*/
|
|
56
|
+
private _isSame;
|
|
57
|
+
/**
|
|
58
|
+
* @private
|
|
59
|
+
* @param {String} operation
|
|
60
|
+
* @param {String | null} filter
|
|
61
|
+
* @param {Number} value
|
|
62
|
+
*/
|
|
63
|
+
private _addKeypoint;
|
|
64
|
+
/** @param {String | Number} value */
|
|
65
|
+
set(value: string | number): void;
|
|
66
|
+
/**
|
|
67
|
+
* @private
|
|
68
|
+
* @param {String} operation
|
|
69
|
+
* @param {Number} value
|
|
70
|
+
*/
|
|
71
|
+
private _update;
|
|
72
|
+
_operation: string | undefined;
|
|
73
|
+
_value: number | undefined;
|
|
74
|
+
/** @private */
|
|
75
|
+
private _createPreviewImage;
|
|
76
|
+
/** @private */
|
|
77
|
+
private _initNodes;
|
|
78
|
+
_previewImage: any;
|
|
79
|
+
_cancelLastImages: any;
|
|
80
|
+
_container: HTMLDivElement | undefined;
|
|
81
|
+
/** @param {import('./types.js').Transformations} transformations */
|
|
82
|
+
setTransformations(transformations: import("./types.js").Transformations): Promise<void>;
|
|
83
|
+
_transformations: import("./types.js").Transformations | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* @param {object} options
|
|
86
|
+
* @param {String} options.url
|
|
87
|
+
* @param {String} options.operation
|
|
88
|
+
* @param {Number} options.value
|
|
89
|
+
* @param {String} [options.filter]
|
|
90
|
+
*/
|
|
91
|
+
preload({ url, filter, operation, value }: {
|
|
92
|
+
url: string;
|
|
93
|
+
operation: string;
|
|
94
|
+
value: number;
|
|
95
|
+
filter?: string | undefined;
|
|
96
|
+
}): Promise<void>;
|
|
97
|
+
_cancelBatchPreload: (() => void) | undefined;
|
|
98
|
+
/** @private */
|
|
99
|
+
private _setOriginalSrc;
|
|
100
|
+
/**
|
|
101
|
+
* @param {object} options
|
|
102
|
+
* @param {String} options.url
|
|
103
|
+
* @param {String} [options.operation]
|
|
104
|
+
* @param {Number} [options.value]
|
|
105
|
+
* @param {String} [options.filter]
|
|
106
|
+
* @param {Boolean} [options.fromViewer]
|
|
107
|
+
*/
|
|
108
|
+
activate({ url, operation, value, filter, fromViewer }: {
|
|
109
|
+
url: string;
|
|
110
|
+
operation?: string | undefined;
|
|
111
|
+
value?: number | undefined;
|
|
112
|
+
filter?: string | undefined;
|
|
113
|
+
fromViewer?: boolean | undefined;
|
|
114
|
+
}): Promise<void>;
|
|
115
|
+
_url: string | undefined;
|
|
116
|
+
_filter: string | undefined;
|
|
117
|
+
_fromViewer: boolean | undefined;
|
|
118
|
+
_keypoints: Keypoint[] | undefined;
|
|
119
|
+
/** @param {{ hide?: Boolean }} options */
|
|
120
|
+
deactivate({ hide }?: {
|
|
121
|
+
hide?: boolean;
|
|
122
|
+
}): void;
|
|
123
|
+
}
|
|
124
|
+
export type Keypoint = {
|
|
125
|
+
src: string;
|
|
126
|
+
opacity: number;
|
|
127
|
+
zIndex: number;
|
|
128
|
+
image: HTMLImageElement;
|
|
129
|
+
value: number;
|
|
130
|
+
};
|
|
131
|
+
import { Block } from '../../../abstract/Block.js';
|
|
132
|
+
//# sourceMappingURL=EditorImageFader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorImageFader.d.ts","sourceRoot":"","sources":["EditorImageFader.js"],"names":[],"mappings":"AA8DA;;;;;;;GAOG;AAEH;IAII;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,gBAAmB;IAEnB,eAAe;IACf,8BAAwE;IAK1E;;;;OAIG;IACH,4BAmBC;IAED,eAAe;IACf,eAWC;IATC,yBAQE;IAGJ;;;;;;;;OAQG;IACH,kBAUC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;;;;OAOG;IACH,gBAEC;IAED;;;;;OAKG;IACH,qBA0CC;IAED,qCAAqC;IACrC,WADY,eAAe,QAK1B;IAED;;;;OAIG;IACH,gBAgBC;IAfC,+BAA2B;IAC3B,2BAAmB;IAgBrB,eAAe;IACf,4BAKC;IAED,eAAe;IACf,mBAmCC;IAjCC,mBAAqE;IAcrE,uBAGC;IAMC,uCAA2B;IAY/B,oEAAoE;IACpE,oCADY,OAAO,YAAY,EAAE,eAAe,iBAmB/C;IAjBC,mEAAuC;IAmBzC;;;;;;OAMG;IACH,2CALG;QAAwB,GAAG;QACH,SAAS;QACT,KAAK;QACJ,MAAM;KAAC,iBAUlC;IADC,8CAAiC;IAGnC,eAAe;IACf,wBA4CC;IAED;;;;;;;OAOG;IACH,wDANG;QAAwB,GAAG;QACF,SAAS;QACT,KAAK;QACL,MAAM;QACL,UAAU;KAAC,iBAwBvC;IAnBC,yBAAe;IAGf,4BAAqB;IACrB,iCAA6B;IAS7B,mCAEC;IAMH,0CAA0C;IAC1C,sBADY;QAAE,IAAI,CAAC,UAAS;KAAE,QA4B7B;CACF;;;;;WApYa,gBAAgB;;;sBAlER,4BAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorOperationControl.d.ts","sourceRoot":"","sources":["EditorOperationControl.js"],"names":[],"mappings":"AAGA;IACE;;;OAGG;IACH,mBAAgB;CAmCjB;oCA3CmC,0BAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorScroller.d.ts","sourceRoot":"","sources":["EditorScroller.js"],"names":[],"mappings":"AAIA;CA0BC;;;;sBA9BqB,4BAA4B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const FAKE_ORIGINAL_FILTER: "original";
|
|
2
|
+
export class EditorSlider extends Block {
|
|
3
|
+
init$: any;
|
|
4
|
+
/**
|
|
5
|
+
* @param {String} operation
|
|
6
|
+
* @param {String} [filter]
|
|
7
|
+
*/
|
|
8
|
+
setOperation(operation: string, filter?: string): void;
|
|
9
|
+
_controlType: string | undefined;
|
|
10
|
+
_operation: string | undefined;
|
|
11
|
+
_iconName: string | undefined;
|
|
12
|
+
_title: string | undefined;
|
|
13
|
+
_filter: string | undefined;
|
|
14
|
+
/** @private */
|
|
15
|
+
private _initializeValues;
|
|
16
|
+
apply(): void;
|
|
17
|
+
cancel(): void;
|
|
18
|
+
_originalUrl: any;
|
|
19
|
+
}
|
|
20
|
+
export namespace EditorSlider {
|
|
21
|
+
let template: string;
|
|
22
|
+
}
|
|
23
|
+
import { Block } from '../../../abstract/Block.js';
|
|
24
|
+
//# sourceMappingURL=EditorSlider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorSlider.d.ts","sourceRoot":"","sources":["EditorSlider.js"],"names":[],"mappings":"AAQA,mCAAoC,UAAU,CAAC;AAE/C;IACE,WAYE;IAEF;;;OAGG;IACH,uDAgBC;IAfC,iCAA6F;IAC7F,+BAA2B;IAC3B,8BAA0B;IAC1B,2BAAqC;IACrC,4BAAqB;IAavB,eAAe;IACf,0BAuBC;IAED,cAmBC;IAED,eAEC;IAMG,kBAA+B;CAQpC;;;;sBA9GqB,4BAA4B"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export class EditorToolbar extends Block {
|
|
2
|
+
init$: {
|
|
3
|
+
'*sliderEl': null;
|
|
4
|
+
/** @type {import('./types.js').LoadingOperations} */
|
|
5
|
+
'*loadingOperations': import("./types.js").LoadingOperations;
|
|
6
|
+
'*showSlider': boolean;
|
|
7
|
+
'*currentFilter': string;
|
|
8
|
+
'*currentOperation': null;
|
|
9
|
+
showLoader: boolean;
|
|
10
|
+
filters: string[];
|
|
11
|
+
colorOperations: string[];
|
|
12
|
+
cropOperations: string[];
|
|
13
|
+
'*operationTooltip': null;
|
|
14
|
+
'presence.mainToolbar': boolean;
|
|
15
|
+
'presence.subToolbar': boolean;
|
|
16
|
+
'presence.tabToggles': boolean;
|
|
17
|
+
'presence.tabContent.crop': boolean;
|
|
18
|
+
'presence.tabContent.tuning': boolean;
|
|
19
|
+
'presence.tabContent.filters': boolean;
|
|
20
|
+
'presence.tabToggle.crop': boolean;
|
|
21
|
+
'presence.tabToggle.tuning': boolean;
|
|
22
|
+
'presence.tabToggle.filters': boolean;
|
|
23
|
+
'presence.subTopToolbarStyles': {
|
|
24
|
+
hidden: string;
|
|
25
|
+
visible: string;
|
|
26
|
+
};
|
|
27
|
+
'presence.subBottomToolbarStyles': {
|
|
28
|
+
hidden: string;
|
|
29
|
+
visible: string;
|
|
30
|
+
};
|
|
31
|
+
'presence.tabContentStyles': {
|
|
32
|
+
hidden: string;
|
|
33
|
+
visible: string;
|
|
34
|
+
};
|
|
35
|
+
'presence.tabToggleStyles': {
|
|
36
|
+
hidden: string;
|
|
37
|
+
visible: string;
|
|
38
|
+
};
|
|
39
|
+
'presence.tabTogglesStyles': {
|
|
40
|
+
hidden: string;
|
|
41
|
+
visible: string;
|
|
42
|
+
};
|
|
43
|
+
'on.cancel': () => void;
|
|
44
|
+
'on.apply': () => void;
|
|
45
|
+
'on.applySlider': () => void;
|
|
46
|
+
'on.cancelSlider': () => void;
|
|
47
|
+
/** @param {MouseEvent} e */
|
|
48
|
+
'on.clickTab': (e: MouseEvent) => void;
|
|
49
|
+
tab_role: string;
|
|
50
|
+
cancel: string;
|
|
51
|
+
apply: string;
|
|
52
|
+
'a11y-editor-tab-filters': string;
|
|
53
|
+
'a11y-editor-tab-tuning': string;
|
|
54
|
+
'a11y-editor-tab-crop': string;
|
|
55
|
+
};
|
|
56
|
+
/** @private */
|
|
57
|
+
private _debouncedShowLoader;
|
|
58
|
+
/** @private */
|
|
59
|
+
private _onSliderClose;
|
|
60
|
+
/**
|
|
61
|
+
* @private
|
|
62
|
+
* @param {String} operation
|
|
63
|
+
*/
|
|
64
|
+
private _createOperationControl;
|
|
65
|
+
/**
|
|
66
|
+
* @private
|
|
67
|
+
* @param {String} filter
|
|
68
|
+
*/
|
|
69
|
+
private _createFilterControl;
|
|
70
|
+
/**
|
|
71
|
+
* @private
|
|
72
|
+
* @param {String} operation
|
|
73
|
+
*/
|
|
74
|
+
private _createToggleControl;
|
|
75
|
+
/**
|
|
76
|
+
* @private
|
|
77
|
+
* @param {String} tabId
|
|
78
|
+
*/
|
|
79
|
+
private _renderControlsList;
|
|
80
|
+
/**
|
|
81
|
+
* @private
|
|
82
|
+
* @param {String} id
|
|
83
|
+
* @param {{ fromViewer?: Boolean }} options
|
|
84
|
+
*/
|
|
85
|
+
private _activateTab;
|
|
86
|
+
/**
|
|
87
|
+
* @private
|
|
88
|
+
* @param {String} tabId
|
|
89
|
+
*/
|
|
90
|
+
private _unmountTabControls;
|
|
91
|
+
/** @private */
|
|
92
|
+
private _syncTabIndicator;
|
|
93
|
+
/** @private */
|
|
94
|
+
private _preloadEditedImage;
|
|
95
|
+
_cancelPreload: any;
|
|
96
|
+
/**
|
|
97
|
+
* @private
|
|
98
|
+
* @param {boolean} show
|
|
99
|
+
*/
|
|
100
|
+
private _showLoader;
|
|
101
|
+
_updateInfoTooltip: (() => void) & {
|
|
102
|
+
cancel: () => void;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export namespace EditorToolbar {
|
|
106
|
+
let template: string;
|
|
107
|
+
}
|
|
108
|
+
import { Block } from '../../../abstract/Block.js';
|
|
109
|
+
//# sourceMappingURL=EditorToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["EditorToolbar.js"],"names":[],"mappings":"AA2DA;IAII;;QAGE,qDAAqD;8BAA1C,OAAO,YAAY,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuDjD,4BAA4B;2BAAhB,UAAU;;;;;;;MAgBvB;IAED,eAAe;IAEf,6BAAsE;IAGxE,eAAe;IACf,uBAKC;IAED;;;OAGG;IACH,gCAKC;IAED;;;OAGG;IACH,6BAKC;IAED;;;OAGG;IACH,6BAKC;IAED;;;OAGG;IACH,4BAoCC;IAED;;;;OAIG;IACH,qBAyBC;IAED;;;OAGG;IACH,4BAKC;IAED,eAAe;IACf,0BAIC;IAED,eAAe;IACf,4BAWC;IALG,oBAGC;IAIL;;;OAGG;IACH,oBAEC;IAED;;MAwBM;CAqFP;;;;sBAtZqB,4BAA4B"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {SVGElement} node
|
|
3
|
+
* @param {{ [key: String]: String | Number }} attrs
|
|
4
|
+
*/
|
|
5
|
+
export function setSvgNodeAttrs(node: SVGElement, attrs: {
|
|
6
|
+
[key: string]: string | number;
|
|
7
|
+
}): void;
|
|
8
|
+
/**
|
|
9
|
+
* @param {String} name
|
|
10
|
+
* @param {{ [key: String]: String | Number }} attrs
|
|
11
|
+
* @returns {SVGElement}
|
|
12
|
+
*/
|
|
13
|
+
export function createSvgNode(name: string, attrs?: {
|
|
14
|
+
[key: string]: string | number;
|
|
15
|
+
}): SVGElement;
|
|
16
|
+
/**
|
|
17
|
+
* @param {import('./types.js').Rectangle} rect
|
|
18
|
+
* @param {import('./types.js').Direction} direction
|
|
19
|
+
* @param {number} sizeMultiplier
|
|
20
|
+
*/
|
|
21
|
+
export function cornerPath(rect: import("./types.js").Rectangle, direction: import("./types.js").Direction, sizeMultiplier: number): {
|
|
22
|
+
d: string;
|
|
23
|
+
center: number[];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @param {import('./types.js').Rectangle} rect
|
|
27
|
+
* @param {Extract<import('./types.js').Direction, 'n' | 's' | 'w' | 'e'>} direction
|
|
28
|
+
* @param {number} sizeMultiplier
|
|
29
|
+
*/
|
|
30
|
+
export function sidePath(rect: import("./types.js").Rectangle, direction: Extract<import("./types.js").Direction, "n" | "s" | "w" | "e">, sizeMultiplier: number): {
|
|
31
|
+
d: string;
|
|
32
|
+
center: number[];
|
|
33
|
+
};
|
|
34
|
+
/** @param {import('./types.js').Direction} direction */
|
|
35
|
+
export function thumbCursor(direction: import("./types.js").Direction): "move" | "ew-resize" | "ns-resize" | "nwse-resize" | "nesw-resize";
|
|
36
|
+
/**
|
|
37
|
+
* @param {{
|
|
38
|
+
* rect: import('./types.js').Rectangle;
|
|
39
|
+
* delta: [Number, Number];
|
|
40
|
+
* imageBox: import('./types.js').Rectangle;
|
|
41
|
+
* }} options
|
|
42
|
+
*/
|
|
43
|
+
export function moveRect({ rect, delta: [dx, dy], imageBox }: {
|
|
44
|
+
rect: import("./types.js").Rectangle;
|
|
45
|
+
delta: [number, number];
|
|
46
|
+
imageBox: import("./types.js").Rectangle;
|
|
47
|
+
}): {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @param {import('./types.js').Rectangle} rect1
|
|
55
|
+
* @param {import('./types.js').Rectangle} rect2
|
|
56
|
+
*/
|
|
57
|
+
export function constraintRect(rect1: import("./types.js").Rectangle, rect2: import("./types.js").Rectangle): {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @param {{
|
|
65
|
+
* rect: import('./types.js').Rectangle;
|
|
66
|
+
* delta: [Number, Number];
|
|
67
|
+
* direction: import('./types.js').Direction;
|
|
68
|
+
* aspectRatio?: number;
|
|
69
|
+
* imageBox: import('./types.js').Rectangle;
|
|
70
|
+
* }} options
|
|
71
|
+
*/
|
|
72
|
+
export function resizeRect({ direction, ...rest }: {
|
|
73
|
+
rect: import("./types.js").Rectangle;
|
|
74
|
+
delta: [number, number];
|
|
75
|
+
direction: import("./types.js").Direction;
|
|
76
|
+
aspectRatio?: number;
|
|
77
|
+
imageBox: import("./types.js").Rectangle;
|
|
78
|
+
}): import("./types.js").Rectangle;
|
|
79
|
+
/**
|
|
80
|
+
* @param {import('./types.js').Rectangle} rect
|
|
81
|
+
* @param {[Number, Number]} point
|
|
82
|
+
*/
|
|
83
|
+
export function rectContainsPoint(rect: import("./types.js").Rectangle, [x, y]: [number, number]): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @param {import('./types.js').Rectangle} rect1
|
|
86
|
+
* @param {import('./types.js').Rectangle} rect2
|
|
87
|
+
*/
|
|
88
|
+
export function isRectInsideRect(rect1: import("./types.js").Rectangle, rect2: import("./types.js").Rectangle): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* @param {import('./types.js').Rectangle} rect
|
|
91
|
+
* @param {number} aspectRatio
|
|
92
|
+
*/
|
|
93
|
+
export function isRectMatchesAspectRatio(rect: import("./types.js").Rectangle, aspectRatio: number): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @param {import('./types.js').ImageSize} imageSize
|
|
96
|
+
* @param {Number} angle
|
|
97
|
+
* @returns {import('./types.js').ImageSize}
|
|
98
|
+
*/
|
|
99
|
+
export function rotateSize({ width, height }: import("./types.js").ImageSize, angle: number): import("./types.js").ImageSize;
|
|
100
|
+
/**
|
|
101
|
+
* @param {number} width
|
|
102
|
+
* @param {number} height
|
|
103
|
+
* @param {number} aspectRatio
|
|
104
|
+
*/
|
|
105
|
+
export function calculateMaxCenteredCropFrame(width: number, height: number, aspectRatio: number): {
|
|
106
|
+
x: number;
|
|
107
|
+
y: number;
|
|
108
|
+
width: number;
|
|
109
|
+
height: number;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* @param {import('./types.js').Rectangle} rect
|
|
113
|
+
* @returns {import('./types.js').Rectangle}
|
|
114
|
+
*/
|
|
115
|
+
export function roundRect(rect: import("./types.js").Rectangle): import("./types.js").Rectangle;
|
|
116
|
+
/**
|
|
117
|
+
* @param {Number} value
|
|
118
|
+
* @param {Number} min
|
|
119
|
+
* @param {Number} max
|
|
120
|
+
* @returns {Number}
|
|
121
|
+
*/
|
|
122
|
+
export function clamp(value: number, min: number, max: number): number;
|
|
123
|
+
//# sourceMappingURL=crop-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-utils.d.ts","sourceRoot":"","sources":["crop-utils.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,sCAHW,UAAU,SACV;IAAE,CAAC,GAAG,QAAQ,GAAG,eAAe,CAAA;CAAE,QAI5C;AAED;;;;GAIG;AACH,oDAHW;IAAE,CAAC,GAAG,QAAQ,GAAG,eAAe,CAAA;CAAE,GAChC,UAAU,CAMtB;AAED;;;;GAIG;AACH,iCAJW,OAAO,YAAY,EAAE,SAAS,aAC9B,OAAO,YAAY,EAAE,SAAS,kBAC9B,MAAM;;;EA2BhB;AAED;;;;GAIG;AACH,+BAJW,OAAO,YAAY,EAAE,SAAS,aAC9B,OAAO,CAAC,OAAO,YAAY,EAAE,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,kBAC9D,MAAM;;;EA0BhB;AAED,wDAAwD;AACxD,uCADY,OAAO,YAAY,EAAE,SAAS,sEAezC;AAED;;;;;;GAMG;AACH,8DANW;IACN,IAAI,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;IACrC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;CAC1C;;;;;EAWH;AAED;;;GAGG;AACH,sCAHW,OAAO,YAAY,EAAE,SAAS,SAC9B,OAAO,YAAY,EAAE,SAAS;;;;;EAqBxC;AA8cD;;;;;;;;GAQG;AACH,mDARW;IACN,IAAI,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;IACrC,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;CAC1C,kCAuBH;AAED;;;GAGG;AACH,wCAHW,OAAO,YAAY,EAAE,SAAS,UAC9B,gBAAgB,WAI1B;AAED;;;GAGG;AACH,wCAHW,OAAO,YAAY,EAAE,SAAS,SAC9B,OAAO,YAAY,EAAE,SAAS,WASxC;AAED;;;GAGG;AACH,+CAHW,OAAO,YAAY,EAAE,SAAS,eAC9B,MAAM,WAKhB;AAED;;;;GAIG;AACH,8CAJW,OAAO,YAAY,EAAE,SAAS,kBAE5B,OAAO,YAAY,EAAE,SAAS,CAK1C;AAED;;;;GAIG;AACH,qDAJW,MAAM,UACN,MAAM,eACN,MAAM;;;;;EAyBhB;AAED;;;GAGG;AACH,gCAHW,OAAO,YAAY,EAAE,SAAS,GAC5B,OAAO,YAAY,EAAE,SAAS,CAS1C;AAED;;;;;GAKG;AACH,uEAEC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const CROP_PADDING: 20;
|
|
2
|
+
export const THUMB_CORNER_SIZE: 24;
|
|
3
|
+
export const THUMB_SIDE_SIZE: 34;
|
|
4
|
+
export const THUMB_STROKE_WIDTH: 3;
|
|
5
|
+
export const THUMB_OFFSET: number;
|
|
6
|
+
export const GUIDE_STROKE_WIDTH: 1;
|
|
7
|
+
export const GUIDE_THIRD: number;
|
|
8
|
+
export const MIN_CROP_SIZE: 1;
|
|
9
|
+
export const MAX_INTERACTION_SIZE: 24;
|
|
10
|
+
export const MIN_INTERACTION_SIZE: 6;
|
|
11
|
+
//# sourceMappingURL=cropper-constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cropper-constants.d.ts","sourceRoot":"","sources":["cropper-constants.js"],"names":[],"mappings":"AAAA,2BAA4B,EAAE,CAAC;AAC/B,gCAAiC,EAAE,CAAC;AACpC,8BAA+B,EAAE,CAAC;AAClC,iCAAkC,CAAC,CAAC;AACpC,kCAAmD;AAEnD,iCAAkC,CAAC,CAAC;AACpC,iCAAmC;AACnC,4BAA6B,CAAC,CAAC;AAC/B,mCAAoC,EAAE,CAAC;AACvC,mCAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class BtnUi extends Block {
|
|
2
|
+
_iconReversed: boolean;
|
|
3
|
+
_iconSingle: boolean;
|
|
4
|
+
_iconHidden: boolean;
|
|
5
|
+
init$: {
|
|
6
|
+
text: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
iconCss: string;
|
|
9
|
+
theme: null;
|
|
10
|
+
'aria-role': string;
|
|
11
|
+
'aria-controls': string;
|
|
12
|
+
'title-prop': string;
|
|
13
|
+
};
|
|
14
|
+
_iconCss(): string;
|
|
15
|
+
set reverse(val: any);
|
|
16
|
+
}
|
|
17
|
+
export namespace BtnUi {
|
|
18
|
+
let template: string;
|
|
19
|
+
}
|
|
20
|
+
import { Block } from '../../../../../abstract/Block.js';
|
|
21
|
+
//# sourceMappingURL=BtnUi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BtnUi.d.ts","sourceRoot":"","sources":["BtnUi.js"],"names":[],"mappings":"AAGA;IAII,uBAA0B;IAC1B,qBAAwB;IACxB,qBAAwB;IAExB;;;;;;;;MASC;IAWH,mBAOC;IAsCD,sBAQC;CACF;;;;sBArFqB,kCAAkC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class LineLoaderUi extends Block {
|
|
2
|
+
_active: boolean;
|
|
3
|
+
_handleTransitionEndRight: () => void;
|
|
4
|
+
_start(): void;
|
|
5
|
+
_stop(): void;
|
|
6
|
+
}
|
|
7
|
+
export namespace LineLoaderUi {
|
|
8
|
+
let template: string;
|
|
9
|
+
}
|
|
10
|
+
import { Block } from '../../../../../abstract/Block.js';
|
|
11
|
+
//# sourceMappingURL=LineLoaderUi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineLoaderUi.d.ts","sourceRoot":"","sources":["LineLoaderUi.js"],"names":[],"mappings":"AAEA;IAII,iBAAoB;IAEpB,sCAMC;IAgBH,eAUC;IAED,cAEC;CACF;;;;sBA7CqB,kCAAkC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class PresenceToggle extends Block {
|
|
2
|
+
_visible: boolean;
|
|
3
|
+
_visibleStyle: string | undefined;
|
|
4
|
+
_hiddenStyle: string | undefined;
|
|
5
|
+
_externalTransitions: boolean;
|
|
6
|
+
_handleVisible(): void;
|
|
7
|
+
}
|
|
8
|
+
export namespace PresenceToggle {
|
|
9
|
+
let template: string;
|
|
10
|
+
}
|
|
11
|
+
export type Style = {
|
|
12
|
+
transition?: string | undefined;
|
|
13
|
+
visible?: string | undefined;
|
|
14
|
+
hidden?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
import { Block } from '../../../../../abstract/Block.js';
|
|
17
|
+
//# sourceMappingURL=PresenceToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresenceToggle.d.ts","sourceRoot":"","sources":["PresenceToggle.js"],"names":[],"mappings":"AAiBA;IAII,kBAAqB;IACrB,kCAA0C;IAC1C,iCAAwC;IACxC,8BAAiC;IAqBnC,uBAQC;CAgBF;;;;;;;;;sBApEqB,kCAAkC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class SliderUi extends Block {
|
|
2
|
+
init$: any;
|
|
3
|
+
_zero: any;
|
|
4
|
+
_observer: ResizeObserver | undefined;
|
|
5
|
+
_thumbSize: number | undefined;
|
|
6
|
+
_updateValue(value: any): void;
|
|
7
|
+
_updateZeroDot(value: any): void;
|
|
8
|
+
_updateSteps(): void;
|
|
9
|
+
_zeroDotEl: HTMLDivElement | undefined;
|
|
10
|
+
_stepsCount: any;
|
|
11
|
+
}
|
|
12
|
+
export namespace SliderUi {
|
|
13
|
+
let template: string;
|
|
14
|
+
}
|
|
15
|
+
import { Block } from '../../../../../abstract/Block.js';
|
|
16
|
+
//# sourceMappingURL=SliderUi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderUi.d.ts","sourceRoot":"","sources":["SliderUi.js"],"names":[],"mappings":"AAEA;IACE,WAiBE;IA6BE,WAAiB;IAenB,sCAIE;IAGF,+BAAgG;IAyBlG,+BAWC;IAED,iCAgBC;IAED,qBAmCC;IALC,uCAA2B;IAI3B,iBAAwB;CAO3B;;;;sBAxKqB,kCAAkC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { CloudImageEditorBlock } from "./CloudImageEditorBlock.js";
|
|
2
|
+
export { CropFrame } from "./CropFrame.js";
|
|
3
|
+
export { EditorCropButtonControl } from "./EditorCropButtonControl.js";
|
|
4
|
+
export { EditorFilterControl } from "./EditorFilterControl.js";
|
|
5
|
+
export { EditorOperationControl } from "./EditorOperationControl.js";
|
|
6
|
+
export { EditorImageCropper } from "./EditorImageCropper.js";
|
|
7
|
+
export { EditorImageFader } from "./EditorImageFader.js";
|
|
8
|
+
export { EditorScroller } from "./EditorScroller.js";
|
|
9
|
+
export { EditorSlider } from "./EditorSlider.js";
|
|
10
|
+
export { EditorToolbar } from "./EditorToolbar.js";
|
|
11
|
+
export { BtnUi } from "./elements/button/BtnUi.js";
|
|
12
|
+
export { LineLoaderUi } from "./elements/line-loader/LineLoaderUi.js";
|
|
13
|
+
export { PresenceToggle } from "./elements/presence-toggle/PresenceToggle.js";
|
|
14
|
+
export { SliderUi } from "./elements/slider/SliderUi.js";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class FocusVisible {
|
|
2
|
+
/**
|
|
3
|
+
* @param {boolean} focusVisible
|
|
4
|
+
* @param {HTMLElement} element
|
|
5
|
+
*/
|
|
6
|
+
static handleFocusVisible(focusVisible: boolean, element: HTMLElement): void;
|
|
7
|
+
/** @param {ShadowRoot | Document} scope */
|
|
8
|
+
static register(scope: ShadowRoot | Document): void;
|
|
9
|
+
/** @param {Document | ShadowRoot} scope */
|
|
10
|
+
static unregister(scope: Document | ShadowRoot): void;
|
|
11
|
+
}
|
|
12
|
+
export namespace FocusVisible {
|
|
13
|
+
let _destructors: WeakMap<WeakKey, any>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=FocusVisible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusVisible.d.ts","sourceRoot":"","sources":["FocusVisible.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,wCAHW,OAAO,WACP,WAAW,QASrB;IAED,2CAA2C;IAC3C,uBADY,UAAU,GAAG,QAAQ,QAGhC;IAED,2CAA2C;IAC3C,yBADY,QAAQ,GAAG,UAAU,QAQhC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applies the :focus-visible polyfill at the given scope. A scope, in this case, is either the top-level Document or a
|
|
3
|
+
* Shadow Root.
|
|
4
|
+
*
|
|
5
|
+
* @param {Document | ShadowRoot} scope
|
|
6
|
+
* @param {(focusVisible: boolean, el: EventTarget) => void} [callback]
|
|
7
|
+
* @see https://github.com/WICG/focus-visible
|
|
8
|
+
*/
|
|
9
|
+
export function applyFocusVisiblePolyfill(scope: Document | ShadowRoot, callback?: (focusVisible: boolean, el: EventTarget) => void): () => void;
|
|
10
|
+
//# sourceMappingURL=applyFocusVisiblePolyfill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyFocusVisiblePolyfill.d.ts","sourceRoot":"","sources":["applyFocusVisiblePolyfill.js"],"names":[],"mappings":"AAgDA;;;;;;;GAOG;AACH,iDAJW,QAAQ,GAAG,UAAU,aACrB,CAAC,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,KAAK,IAAI,cA0M1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classNames.d.ts","sourceRoot":"","sources":["classNames.js"],"names":[],"mappings":"AAeA,mDAWC;AAED,oEAKC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {Number} a Start of sample (int)
|
|
3
|
+
* @param {Number} b End of sample (int)
|
|
4
|
+
* @param {Number} n Number of elements (int)
|
|
5
|
+
* @returns {Number[]}
|
|
6
|
+
*/
|
|
7
|
+
export function linspace(a: number, b: number, n: number): number[];
|
|
8
|
+
//# sourceMappingURL=linspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linspace.d.ts","sourceRoot":"","sources":["linspace.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,2DAFa,QAAQ,CASpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseCropPreset.d.ts","sourceRoot":"","sources":["parseCropPreset.js"],"names":[],"mappings":"AAGO,4CADK,OAAO,iCAAiC,EAAE,UAAU,CAAC,YAAY,CAAC,uDAW7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseTabs.d.ts","sourceRoot":"","sources":["parseTabs.js"],"names":[],"mappings":"AAMO,gCADK,MAAM,YAQjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pick.d.ts","sourceRoot":"","sources":["pick.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,0BAJW,EAAE,QACF,QAAQ,GACN,EAAE,CAWd"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {import('../types').Transformations} transformations
|
|
3
|
+
* @returns {string}
|
|
4
|
+
*/
|
|
5
|
+
export function transformationsToOperations(transformations: import("../types").Transformations): string;
|
|
6
|
+
/**
|
|
7
|
+
* @param {string[]} operations
|
|
8
|
+
* @returns {import('../types.js').Transformations}
|
|
9
|
+
*/
|
|
10
|
+
export function operationsToTransformations(operations: string[]): import("../types.js").Transformations;
|
|
11
|
+
/** @type {Record<keyof import('../types').Transformations, unknown>} */
|
|
12
|
+
export const OPERATIONS_DEFAULTS: Record<keyof import("../types").Transformations, unknown>;
|
|
13
|
+
export const COMMON_OPERATIONS: string;
|
|
14
|
+
//# sourceMappingURL=transformationUtils.d.ts.map
|