@uploadcare/file-uploader 1.28.0-alpha.0 → 1.28.0-alpha.111
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/dist/abstract/CTX.d.ts +5 -3
- package/dist/abstract/CTX.d.ts.map +1 -0
- package/dist/abstract/TypedCollection.d.ts +2 -1
- package/dist/abstract/TypedCollection.d.ts.map +1 -0
- package/dist/abstract/TypedData.d.ts +3 -2
- package/dist/abstract/TypedData.d.ts.map +1 -0
- package/dist/abstract/UploaderPublicApi.d.ts +7 -6
- package/dist/abstract/UploaderPublicApi.d.ts.map +1 -0
- package/dist/abstract/buildOutputCollectionState.d.ts +3 -2
- package/dist/abstract/buildOutputCollectionState.d.ts.map +1 -0
- package/dist/abstract/customConfigOptions.d.ts +1 -0
- package/dist/abstract/customConfigOptions.d.ts.map +1 -0
- package/dist/abstract/defineComponents.d.ts +1 -0
- package/dist/abstract/defineComponents.d.ts.map +1 -0
- package/dist/abstract/features/ClipboardLayer.d.ts +2 -1
- package/dist/abstract/features/ClipboardLayer.d.ts.map +1 -0
- package/dist/abstract/loadFileUploaderFrom.d.ts +1 -0
- package/dist/abstract/loadFileUploaderFrom.d.ts.map +1 -0
- package/dist/abstract/loadFileUploaderFrom.js +1 -8
- package/dist/abstract/localeRegistry.d.ts +1 -0
- package/dist/abstract/localeRegistry.d.ts.map +1 -0
- package/dist/abstract/managers/LocaleManager.d.ts +3 -2
- package/dist/abstract/managers/LocaleManager.d.ts.map +1 -0
- package/dist/abstract/managers/ModalManager.d.ts +3 -2
- package/dist/abstract/managers/ModalManager.d.ts.map +1 -0
- package/dist/abstract/managers/SecureUploadsManager.d.ts +2 -1
- package/dist/abstract/managers/SecureUploadsManager.d.ts.map +1 -0
- package/dist/abstract/managers/TelemetryManager.d.ts +4 -3
- package/dist/abstract/managers/TelemetryManager.d.ts.map +1 -0
- package/dist/abstract/managers/ValidationManager.d.ts +7 -6
- package/dist/abstract/managers/ValidationManager.d.ts.map +1 -0
- package/dist/abstract/managers/a11y.d.ts +3 -2
- package/dist/abstract/managers/a11y.d.ts.map +1 -0
- package/dist/abstract/managers/plugin/PluginManager.d.ts +3 -2
- package/dist/abstract/managers/plugin/PluginManager.d.ts.map +1 -0
- package/dist/abstract/managers/plugin/PluginTypes.d.ts +4 -3
- package/dist/abstract/managers/plugin/PluginTypes.d.ts.map +1 -0
- package/dist/abstract/managers/plugin/index.d.ts +1 -0
- package/dist/abstract/managers/plugin/index.d.ts.map +1 -0
- package/dist/abstract/sharedConfigKey.d.ts +2 -1
- package/dist/abstract/sharedConfigKey.d.ts.map +1 -0
- package/dist/abstract/uploadEntrySchema.d.ts +4 -3
- package/dist/abstract/uploadEntrySchema.d.ts.map +1 -0
- package/dist/blocks/ActivityHeader/ActivityHeader.d.ts +2 -0
- package/dist/blocks/ActivityHeader/ActivityHeader.d.ts.map +1 -0
- package/dist/blocks/CameraSource/CameraSource.d.ts +7 -2
- package/dist/blocks/CameraSource/CameraSource.d.ts.map +1 -0
- package/dist/blocks/CameraSource/calcCameraModes.d.ts +2 -1
- package/dist/blocks/CameraSource/calcCameraModes.d.ts.map +1 -0
- package/dist/blocks/CameraSource/constants.d.ts +1 -0
- package/dist/blocks/CameraSource/constants.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/index.d.ts +2 -0
- package/dist/blocks/CloudImageEditor/index.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts +10 -2
- package/dist/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/CropFrame.d.ts +2 -1
- package/dist/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorAspectRatioButtonControl.d.ts +5 -3
- package/dist/blocks/CloudImageEditor/src/EditorAspectRatioButtonControl.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorButtonControl.d.ts +4 -2
- package/dist/blocks/CloudImageEditor/src/EditorButtonControl.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts +3 -2
- package/dist/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +4 -2
- package/dist/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +4 -2
- package/dist/blocks/CloudImageEditor/src/EditorImageCropper.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorImageFader.d.ts +3 -2
- package/dist/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorOperationControl.d.ts +2 -1
- package/dist/blocks/CloudImageEditor/src/EditorOperationControl.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorScroller.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorScroller.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorSlider.d.ts +5 -3
- package/dist/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/EditorToolbar.d.ts +12 -2
- package/dist/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/crop-utils.d.ts +2 -1
- package/dist/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/cropper-constants.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts +5 -3
- package/dist/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts +3 -2
- package/dist/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts +3 -2
- package/dist/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/index.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/index.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/classNames.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/classNames.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/linspace.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/linspace.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +3 -2
- package/dist/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/parseTabs.d.ts +2 -1
- package/dist/blocks/CloudImageEditor/src/lib/parseTabs.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/pick.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/pick.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +2 -1
- package/dist/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/state.d.ts +3 -2
- package/dist/blocks/CloudImageEditor/src/state.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/svg-sprite.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/toolbar-constants.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/toolbar-constants.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/types.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/types.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/util.d.ts +2 -1
- package/dist/blocks/CloudImageEditor/src/util.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditor/src/utils/parseFilterValue.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/utils/parseFilterValue.d.ts.map +1 -0
- package/dist/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +5 -2
- package/dist/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -0
- package/dist/blocks/Config/Config.d.ts +4 -2
- package/dist/blocks/Config/Config.d.ts.map +1 -0
- package/dist/blocks/Config/assertions.d.ts +2 -1
- package/dist/blocks/Config/assertions.d.ts.map +1 -0
- package/dist/blocks/Config/computed-properties.d.ts +2 -1
- package/dist/blocks/Config/computed-properties.d.ts.map +1 -0
- package/dist/blocks/Config/initialConfig.d.ts +2 -1
- package/dist/blocks/Config/initialConfig.d.ts.map +1 -0
- package/dist/blocks/Config/normalizeConfigValue.d.ts +2 -1
- package/dist/blocks/Config/normalizeConfigValue.d.ts.map +1 -0
- package/dist/blocks/Config/validatorsType.d.ts +5 -4
- package/dist/blocks/Config/validatorsType.d.ts.map +1 -0
- package/dist/blocks/Copyright/Copyright.d.ts +3 -1
- package/dist/blocks/Copyright/Copyright.d.ts.map +1 -0
- package/dist/blocks/DropArea/DropArea.d.ts +5 -2
- package/dist/blocks/DropArea/DropArea.d.ts.map +1 -0
- package/dist/blocks/DropArea/addDropzone.d.ts +1 -0
- package/dist/blocks/DropArea/addDropzone.d.ts.map +1 -0
- package/dist/blocks/DropArea/getDropItems.d.ts +1 -0
- package/dist/blocks/DropArea/getDropItems.d.ts.map +1 -0
- package/dist/blocks/ExternalSource/ExternalSource.d.ts +6 -1
- package/dist/blocks/ExternalSource/ExternalSource.d.ts.map +1 -0
- package/dist/blocks/ExternalSource/MessageBridge.d.ts +2 -1
- package/dist/blocks/ExternalSource/MessageBridge.d.ts.map +1 -0
- package/dist/blocks/ExternalSource/buildThemeDefinition.d.ts +2 -1
- package/dist/blocks/ExternalSource/buildThemeDefinition.d.ts.map +1 -0
- package/dist/blocks/ExternalSource/query-string.d.ts +1 -0
- package/dist/blocks/ExternalSource/query-string.d.ts.map +1 -0
- package/dist/blocks/ExternalSource/types.d.ts +1 -0
- package/dist/blocks/ExternalSource/types.d.ts.map +1 -0
- package/dist/blocks/FileItem/FileItem.d.ts +8 -3
- package/dist/blocks/FileItem/FileItem.d.ts.map +1 -0
- package/dist/blocks/FileItem/FileItemConfig.d.ts +2 -1
- package/dist/blocks/FileItem/FileItemConfig.d.ts.map +1 -0
- package/dist/blocks/FormInput/FormInput.d.ts +1 -0
- package/dist/blocks/FormInput/FormInput.d.ts.map +1 -0
- package/dist/blocks/Icon/Icon.d.ts +4 -2
- package/dist/blocks/Icon/Icon.d.ts.map +1 -0
- package/dist/blocks/Img/Img.d.ts +1 -0
- package/dist/blocks/Img/Img.d.ts.map +1 -0
- package/dist/blocks/Img/ImgBase.d.ts +1 -0
- package/dist/blocks/Img/ImgBase.d.ts.map +1 -0
- package/dist/blocks/Img/ImgConfig.d.ts +3 -2
- package/dist/blocks/Img/ImgConfig.d.ts.map +1 -0
- package/dist/blocks/Img/configurations.d.ts +1 -0
- package/dist/blocks/Img/configurations.d.ts.map +1 -0
- package/dist/blocks/Img/props-map.d.ts +1 -0
- package/dist/blocks/Img/props-map.d.ts.map +1 -0
- package/dist/blocks/Img/utils/parseObjectToString.d.ts +1 -0
- package/dist/blocks/Img/utils/parseObjectToString.d.ts.map +1 -0
- package/dist/blocks/Modal/Modal.d.ts +4 -2
- package/dist/blocks/Modal/Modal.d.ts.map +1 -0
- package/dist/blocks/PluginActivityRenderer/PluginActivityRenderer.d.ts +8 -5
- package/dist/blocks/PluginActivityRenderer/PluginActivityRenderer.d.ts.map +1 -0
- package/dist/blocks/PluginActivityRenderer/index.d.ts +1 -0
- package/dist/blocks/PluginActivityRenderer/index.d.ts.map +1 -0
- package/dist/blocks/ProgressBar/ProgressBar.d.ts +4 -2
- package/dist/blocks/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/blocks/ProgressBarCommon/ProgressBarCommon.d.ts +5 -2
- package/dist/blocks/ProgressBarCommon/ProgressBarCommon.d.ts.map +1 -0
- package/dist/blocks/Select/Select.d.ts +3 -1
- package/dist/blocks/Select/Select.d.ts.map +1 -0
- package/dist/blocks/SimpleBtn/SimpleBtn.d.ts +5 -1
- package/dist/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -0
- package/dist/blocks/SourceBtn/SourceBtn.d.ts +5 -2
- package/dist/blocks/SourceBtn/SourceBtn.d.ts.map +1 -0
- package/dist/blocks/SourceList/SourceList.d.ts +4 -2
- package/dist/blocks/SourceList/SourceList.d.ts.map +1 -0
- package/dist/blocks/Spinner/Spinner.d.ts +3 -1
- package/dist/blocks/Spinner/Spinner.d.ts.map +1 -0
- package/dist/blocks/StartFrom/StartFrom.d.ts +4 -2
- package/dist/blocks/StartFrom/StartFrom.d.ts.map +1 -0
- package/dist/blocks/Thumb/Thumb.d.ts +6 -3
- package/dist/blocks/Thumb/Thumb.d.ts.map +1 -0
- package/dist/blocks/UploadCtxProvider/EventEmitter.d.ts +5 -4
- package/dist/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -0
- package/dist/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +2 -1
- package/dist/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -0
- package/dist/blocks/UploadList/UploadList.d.ts +7 -1
- package/dist/blocks/UploadList/UploadList.d.ts.map +1 -0
- package/dist/blocks/UrlSource/UrlSource.d.ts +5 -1
- package/dist/blocks/UrlSource/UrlSource.d.ts.map +1 -0
- package/dist/blocks/svg-backgrounds/svg-backgrounds.d.ts +1 -0
- package/dist/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -0
- package/dist/blocks/themes/uc-basic/svg-sprite.d.ts +1 -0
- package/dist/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -0
- package/dist/cameraPlugin.js +1 -0
- package/dist/cloudImageEditorPlugin.css +1282 -0
- package/dist/cloudImageEditorPlugin.js +1 -0
- package/dist/cloudImageEditorPlugin.layered.css +1289 -0
- package/dist/core.d.ts +3 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/env.d.ts +1 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +1 -8
- package/dist/externalSourcesPlugin.js +1 -0
- package/dist/imageShrinkPlugin.js +1 -0
- package/dist/index.css +1376 -3328
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -1011
- package/dist/index.layered.css +1046 -3564
- package/dist/index.ssr.js +1290 -0
- package/dist/instagramPlugin.js +1 -0
- package/dist/lit/BaseComponent.d.ts +4 -3
- package/dist/lit/BaseComponent.d.ts.map +1 -0
- package/dist/lit/Constructor.d.ts +1 -0
- package/dist/lit/Constructor.d.ts.map +1 -0
- package/dist/lit/CssDataMixin.d.ts +3 -2
- package/dist/lit/CssDataMixin.d.ts.map +1 -0
- package/dist/lit/LightDomMixin.d.ts +3 -2
- package/dist/lit/LightDomMixin.d.ts.map +1 -0
- package/dist/lit/LitActivityBlock.d.ts +4 -3
- package/dist/lit/LitActivityBlock.d.ts.map +1 -0
- package/dist/lit/LitBlock.d.ts +17 -16
- package/dist/lit/LitBlock.d.ts.map +1 -0
- package/dist/lit/LitSolutionBlock.d.ts +6 -5
- package/dist/lit/LitSolutionBlock.d.ts.map +1 -0
- package/dist/lit/LitUploaderBlock.d.ts +8 -7
- package/dist/lit/LitUploaderBlock.d.ts.map +1 -0
- package/dist/lit/PubSubCompat.d.ts +1 -0
- package/dist/lit/PubSubCompat.d.ts.map +1 -0
- package/dist/lit/RegisterableElementMixin.d.ts +3 -2
- package/dist/lit/RegisterableElementMixin.d.ts.map +1 -0
- package/dist/lit/SharedState.d.ts +23 -22
- package/dist/lit/SharedState.d.ts.map +1 -0
- package/dist/lit/SymbioteCompatMixin.d.ts +3 -2
- package/dist/lit/SymbioteCompatMixin.d.ts.map +1 -0
- package/dist/lit/TestModeController.d.ts +3 -2
- package/dist/lit/TestModeController.d.ts.map +1 -0
- package/dist/lit/Uid.d.ts +1 -0
- package/dist/lit/Uid.d.ts.map +1 -0
- package/dist/lit/activity-constants.d.ts +2 -1
- package/dist/lit/activity-constants.d.ts.map +1 -0
- package/dist/lit/createDebugPrinter.d.ts +3 -2
- package/dist/lit/createDebugPrinter.d.ts.map +1 -0
- package/dist/lit/findBlockInCtx.d.ts +3 -2
- package/dist/lit/findBlockInCtx.d.ts.map +1 -0
- package/dist/lit/getOutputData.d.ts +3 -2
- package/dist/lit/getOutputData.d.ts.map +1 -0
- package/dist/lit/hasBlockInCtx.d.ts +3 -2
- package/dist/lit/hasBlockInCtx.d.ts.map +1 -0
- package/dist/lit/l10n.d.ts +3 -2
- package/dist/lit/l10n.d.ts.map +1 -0
- package/dist/lit/parseCssPropertyValue.d.ts +1 -0
- package/dist/lit/parseCssPropertyValue.d.ts.map +1 -0
- package/dist/lit/shared-instances.d.ts +15 -14
- package/dist/lit/shared-instances.d.ts.map +1 -0
- package/dist/locales/file-uploader/ar.d.ts +1 -0
- package/dist/locales/file-uploader/ar.d.ts.map +1 -0
- package/dist/locales/file-uploader/ar.js +1 -143
- package/dist/locales/file-uploader/az.d.ts +1 -0
- package/dist/locales/file-uploader/az.d.ts.map +1 -0
- package/dist/locales/file-uploader/az.js +1 -135
- package/dist/locales/file-uploader/ca.d.ts +1 -0
- package/dist/locales/file-uploader/ca.d.ts.map +1 -0
- package/dist/locales/file-uploader/ca.js +1 -137
- package/dist/locales/file-uploader/cs.d.ts +1 -0
- package/dist/locales/file-uploader/cs.d.ts.map +1 -0
- package/dist/locales/file-uploader/cs.js +1 -139
- package/dist/locales/file-uploader/da.d.ts +1 -0
- package/dist/locales/file-uploader/da.d.ts.map +1 -0
- package/dist/locales/file-uploader/da.js +1 -135
- package/dist/locales/file-uploader/de.d.ts +1 -0
- package/dist/locales/file-uploader/de.d.ts.map +1 -0
- package/dist/locales/file-uploader/de.js +1 -135
- package/dist/locales/file-uploader/el.d.ts +1 -0
- package/dist/locales/file-uploader/el.d.ts.map +1 -0
- package/dist/locales/file-uploader/el.js +1 -135
- package/dist/locales/file-uploader/en.d.ts +1 -0
- package/dist/locales/file-uploader/en.d.ts.map +1 -0
- package/dist/locales/file-uploader/en.js +1 -8
- package/dist/locales/file-uploader/es.d.ts +1 -0
- package/dist/locales/file-uploader/es.d.ts.map +1 -0
- package/dist/locales/file-uploader/es.js +1 -137
- package/dist/locales/file-uploader/et.d.ts +1 -0
- package/dist/locales/file-uploader/et.d.ts.map +1 -0
- package/dist/locales/file-uploader/et.js +1 -135
- package/dist/locales/file-uploader/fi.d.ts +1 -0
- package/dist/locales/file-uploader/fi.d.ts.map +1 -0
- package/dist/locales/file-uploader/fi.js +1 -135
- package/dist/locales/file-uploader/fr.d.ts +1 -0
- package/dist/locales/file-uploader/fr.d.ts.map +1 -0
- package/dist/locales/file-uploader/fr.js +1 -137
- package/dist/locales/file-uploader/he.d.ts +1 -0
- package/dist/locales/file-uploader/he.d.ts.map +1 -0
- package/dist/locales/file-uploader/he.js +1 -137
- package/dist/locales/file-uploader/hy.d.ts +1 -0
- package/dist/locales/file-uploader/hy.d.ts.map +1 -0
- package/dist/locales/file-uploader/hy.js +1 -135
- package/dist/locales/file-uploader/is.d.ts +1 -0
- package/dist/locales/file-uploader/is.d.ts.map +1 -0
- package/dist/locales/file-uploader/is.js +1 -135
- package/dist/locales/file-uploader/it.d.ts +1 -0
- package/dist/locales/file-uploader/it.d.ts.map +1 -0
- package/dist/locales/file-uploader/it.js +1 -137
- package/dist/locales/file-uploader/ja.d.ts +1 -0
- package/dist/locales/file-uploader/ja.d.ts.map +1 -0
- package/dist/locales/file-uploader/ja.js +1 -135
- package/dist/locales/file-uploader/ka.d.ts +1 -0
- package/dist/locales/file-uploader/ka.d.ts.map +1 -0
- package/dist/locales/file-uploader/ka.js +1 -135
- package/dist/locales/file-uploader/kk.d.ts +1 -0
- package/dist/locales/file-uploader/kk.d.ts.map +1 -0
- package/dist/locales/file-uploader/kk.js +1 -135
- package/dist/locales/file-uploader/ko.d.ts +1 -0
- package/dist/locales/file-uploader/ko.d.ts.map +1 -0
- package/dist/locales/file-uploader/ko.js +1 -135
- package/dist/locales/file-uploader/lv.d.ts +1 -0
- package/dist/locales/file-uploader/lv.d.ts.map +1 -0
- package/dist/locales/file-uploader/lv.js +1 -137
- package/dist/locales/file-uploader/nb.d.ts +1 -0
- package/dist/locales/file-uploader/nb.d.ts.map +1 -0
- package/dist/locales/file-uploader/nb.js +1 -135
- package/dist/locales/file-uploader/nl.d.ts +1 -0
- package/dist/locales/file-uploader/nl.d.ts.map +1 -0
- package/dist/locales/file-uploader/nl.js +1 -135
- package/dist/locales/file-uploader/pl.d.ts +1 -0
- package/dist/locales/file-uploader/pl.d.ts.map +1 -0
- package/dist/locales/file-uploader/pl.js +1 -139
- package/dist/locales/file-uploader/pt.d.ts +1 -0
- package/dist/locales/file-uploader/pt.d.ts.map +1 -0
- package/dist/locales/file-uploader/pt.js +1 -137
- package/dist/locales/file-uploader/ro.d.ts +1 -0
- package/dist/locales/file-uploader/ro.d.ts.map +1 -0
- package/dist/locales/file-uploader/ro.js +1 -137
- package/dist/locales/file-uploader/ru.d.ts +1 -0
- package/dist/locales/file-uploader/ru.d.ts.map +1 -0
- package/dist/locales/file-uploader/ru.js +1 -139
- package/dist/locales/file-uploader/sk.d.ts +1 -0
- package/dist/locales/file-uploader/sk.d.ts.map +1 -0
- package/dist/locales/file-uploader/sk.js +1 -139
- package/dist/locales/file-uploader/sr.d.ts +1 -0
- package/dist/locales/file-uploader/sr.d.ts.map +1 -0
- package/dist/locales/file-uploader/sr.js +1 -137
- package/dist/locales/file-uploader/sv.d.ts +1 -0
- package/dist/locales/file-uploader/sv.d.ts.map +1 -0
- package/dist/locales/file-uploader/sv.js +1 -135
- package/dist/locales/file-uploader/tr.d.ts +1 -0
- package/dist/locales/file-uploader/tr.d.ts.map +1 -0
- package/dist/locales/file-uploader/tr.js +1 -135
- package/dist/locales/file-uploader/uk.d.ts +1 -0
- package/dist/locales/file-uploader/uk.d.ts.map +1 -0
- package/dist/locales/file-uploader/uk.js +1 -139
- package/dist/locales/file-uploader/vi.d.ts +1 -0
- package/dist/locales/file-uploader/vi.d.ts.map +1 -0
- package/dist/locales/file-uploader/vi.js +1 -135
- package/dist/locales/file-uploader/zh-TW.d.ts +1 -0
- package/dist/locales/file-uploader/zh-TW.d.ts.map +1 -0
- package/dist/locales/file-uploader/zh-TW.js +1 -135
- package/dist/locales/file-uploader/zh.d.ts +1 -0
- package/dist/locales/file-uploader/zh.d.ts.map +1 -0
- package/dist/locales/file-uploader/zh.js +1 -135
- package/dist/plugins/cameraPlugin.d.ts +2 -1
- package/dist/plugins/cameraPlugin.d.ts.map +1 -0
- package/dist/plugins/cloudImageEditorPlugin.d.ts +2 -1
- package/dist/plugins/cloudImageEditorPlugin.d.ts.map +1 -0
- package/dist/plugins/externalSourcesPlugin.d.ts +2 -1
- package/dist/plugins/externalSourcesPlugin.d.ts.map +1 -0
- package/dist/plugins/imageShrinkPlugin.d.ts +2 -1
- package/dist/plugins/imageShrinkPlugin.d.ts.map +1 -0
- package/dist/plugins/instagramPlugin.d.ts +2 -1
- package/dist/plugins/instagramPlugin.d.ts.map +1 -0
- package/dist/plugins/unsplashPlugin.d.ts +2 -1
- package/dist/plugins/unsplashPlugin.d.ts.map +1 -0
- package/dist/plugins/urlSourcePlugin.d.ts +2 -1
- package/dist/plugins/urlSourcePlugin.d.ts.map +1 -0
- package/dist/solutions/adaptive-image/index.d.ts +1 -0
- package/dist/solutions/adaptive-image/index.d.ts.map +1 -0
- package/dist/solutions/cloud-image-editor/CloudImageEditor.d.ts +1 -0
- package/dist/solutions/cloud-image-editor/CloudImageEditor.d.ts.map +1 -0
- package/dist/solutions/cloud-image-editor/index.d.ts +2 -0
- package/dist/solutions/cloud-image-editor/index.d.ts.map +1 -0
- package/dist/solutions/file-uploader/inline/FileUploaderInline.d.ts +10 -1
- package/dist/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -0
- package/dist/solutions/file-uploader/inline/index.d.ts +1 -0
- package/dist/solutions/file-uploader/inline/index.d.ts.map +1 -0
- package/dist/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +11 -1
- package/dist/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -0
- package/dist/solutions/file-uploader/minimal/index.d.ts +1 -0
- package/dist/solutions/file-uploader/minimal/index.d.ts.map +1 -0
- package/dist/solutions/file-uploader/regular/FileUploaderRegular.d.ts +12 -1
- package/dist/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -0
- package/dist/solutions/file-uploader/regular/index.d.ts +1 -0
- package/dist/solutions/file-uploader/regular/index.d.ts.map +1 -0
- package/dist/types/dom.d.ts +1 -0
- package/dist/types/dom.d.ts.map +1 -0
- package/dist/types/events.d.ts +2 -1
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/exported.d.ts +11 -10
- package/dist/types/exported.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/urlSourcePlugin.js +1 -0
- package/dist/utils/UID.d.ts +2 -1
- package/dist/utils/UID.d.ts.map +1 -0
- package/dist/utils/UploadSource.d.ts +1 -0
- package/dist/utils/UploadSource.d.ts.map +1 -0
- package/dist/utils/WindowHeightTracker.d.ts +2 -1
- package/dist/utils/WindowHeightTracker.d.ts.map +1 -0
- package/dist/utils/abilities.d.ts +1 -0
- package/dist/utils/abilities.d.ts.map +1 -0
- package/dist/utils/applyStyles.d.ts +1 -0
- package/dist/utils/applyStyles.d.ts.map +1 -0
- package/dist/utils/browser-info.d.ts +1 -0
- package/dist/utils/browser-info.d.ts.map +1 -0
- package/dist/utils/cdn-utils.d.ts +1 -0
- package/dist/utils/cdn-utils.d.ts.map +1 -0
- package/dist/utils/comma-separated.d.ts +1 -0
- package/dist/utils/comma-separated.d.ts.map +1 -0
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/debounce.d.ts.map +1 -0
- package/dist/utils/delay.d.ts +1 -0
- package/dist/utils/delay.d.ts.map +1 -0
- package/dist/utils/fileTypes.d.ts +1 -0
- package/dist/utils/fileTypes.d.ts.map +1 -0
- package/dist/utils/get-top-level-origin.d.ts +1 -0
- package/dist/utils/get-top-level-origin.d.ts.map +1 -0
- package/dist/utils/getLocaleDirection.d.ts +1 -0
- package/dist/utils/getLocaleDirection.d.ts.map +1 -0
- package/dist/utils/getPluralForm.d.ts +1 -0
- package/dist/utils/getPluralForm.d.ts.map +1 -0
- package/dist/utils/isPromiseLike.d.ts +1 -0
- package/dist/utils/isPromiseLike.d.ts.map +1 -0
- package/dist/utils/isSecureTokenExpired.d.ts +2 -1
- package/dist/utils/isSecureTokenExpired.d.ts.map +1 -0
- package/dist/utils/memoize.d.ts +1 -0
- package/dist/utils/memoize.d.ts.map +1 -0
- package/dist/utils/mixinClass.d.ts +1 -0
- package/dist/utils/mixinClass.d.ts.map +1 -0
- package/dist/utils/parseCdnUrl.d.ts +1 -0
- package/dist/utils/parseCdnUrl.d.ts.map +1 -0
- package/dist/utils/parseShrink.d.ts +1 -0
- package/dist/utils/parseShrink.d.ts.map +1 -0
- package/dist/utils/preloadImage.d.ts +1 -0
- package/dist/utils/preloadImage.d.ts.map +1 -0
- package/dist/utils/prettyBytes.d.ts +1 -0
- package/dist/utils/prettyBytes.d.ts.map +1 -0
- package/dist/utils/resizeImage.d.ts +1 -0
- package/dist/utils/resizeImage.d.ts.map +1 -0
- package/dist/utils/stringToArray.d.ts +1 -0
- package/dist/utils/stringToArray.d.ts.map +1 -0
- package/dist/utils/template-utils.d.ts +1 -0
- package/dist/utils/template-utils.d.ts.map +1 -0
- package/dist/utils/throttle.d.ts +1 -0
- package/dist/utils/throttle.d.ts.map +1 -0
- package/dist/utils/toKebabCase.d.ts +1 -0
- package/dist/utils/toKebabCase.d.ts.map +1 -0
- package/dist/utils/transparentPixelSrc.d.ts +1 -0
- package/dist/utils/transparentPixelSrc.d.ts.map +1 -0
- package/dist/utils/uniqueArray.d.ts +1 -0
- package/dist/utils/uniqueArray.d.ts.map +1 -0
- package/dist/utils/userAgent.d.ts +2 -1
- package/dist/utils/userAgent.d.ts.map +1 -0
- package/dist/utils/validators/collection/index.d.ts +1 -0
- package/dist/utils/validators/collection/index.d.ts.map +1 -0
- package/dist/utils/validators/collection/validateCollectionUploadError.d.ts +2 -1
- package/dist/utils/validators/collection/validateCollectionUploadError.d.ts.map +1 -0
- package/dist/utils/validators/collection/validateMultiple.d.ts +2 -1
- package/dist/utils/validators/collection/validateMultiple.d.ts.map +1 -0
- package/dist/utils/validators/file/index.d.ts +1 -0
- package/dist/utils/validators/file/index.d.ts.map +1 -0
- package/dist/utils/validators/file/validateFileType.d.ts +2 -1
- package/dist/utils/validators/file/validateFileType.d.ts.map +1 -0
- package/dist/utils/validators/file/validateIsImage.d.ts +2 -1
- package/dist/utils/validators/file/validateIsImage.d.ts.map +1 -0
- package/dist/utils/validators/file/validateMaxSizeLimit.d.ts +2 -1
- package/dist/utils/validators/file/validateMaxSizeLimit.d.ts.map +1 -0
- package/dist/utils/validators/file/validateUploadError.d.ts +2 -1
- package/dist/utils/validators/file/validateUploadError.d.ts.map +1 -0
- package/dist/utils/warnOnce.d.ts +1 -0
- package/dist/utils/warnOnce.d.ts.map +1 -0
- package/dist/utils/wildcardRegexp.d.ts +1 -0
- package/dist/utils/wildcardRegexp.d.ts.map +1 -0
- package/dist/utils/withResolvers.d.ts +1 -0
- package/dist/utils/withResolvers.d.ts.map +1 -0
- package/package.json +3 -5
- package/web/file-uploader.iife.min.js +8 -0
- package/web/file-uploader.min.js +8 -0
- package/web/uc-basic.layered.min.css +3243 -0
- package/web/uc-basic.min.css +3561 -0
- package/web/uc-cloud-image-editor.layered.min.css +1909 -0
- package/web/uc-cloud-image-editor.min.css +1859 -0
- package/web/uc-cloud-image-editor.min.js +8 -0
- package/web/uc-file-uploader-inline.layered.min.css +3243 -0
- package/web/uc-file-uploader-inline.min.css +3561 -0
- package/web/uc-file-uploader-inline.min.js +8 -0
- package/web/uc-file-uploader-minimal.layered.min.css +3243 -0
- package/web/uc-file-uploader-minimal.min.css +3561 -0
- package/web/uc-file-uploader-minimal.min.js +8 -0
- package/web/uc-file-uploader-regular.layered.min.css +3243 -0
- package/web/uc-file-uploader-regular.min.css +3561 -0
- package/web/uc-file-uploader-regular.min.js +8 -0
- package/web/uc-img.min.js +5 -0
- package/dist/CameraSource-DbyO6GoK.js +0 -481
- package/dist/CameraSource-px4BzEMI.js +0 -9
- package/dist/CloudImageEditor-BIxf1V4M.js +0 -2162
- package/dist/CloudImageEditorActivity-CJxP5N0S.js +0 -9
- package/dist/CloudImageEditorActivity-d4DpK6fQ.js +0 -87
- package/dist/Config-DuWre5p3.js +0 -433
- package/dist/ExternalSource-BKTFp95O.js +0 -248
- package/dist/ExternalSource-CR5DG0Jv.js +0 -9
- package/dist/Icon-CqTVC82Q.js +0 -1811
- package/dist/LitUploaderBlock-BA34rzeU.js +0 -998
- package/dist/UrlSource-BxVL9Pve.js +0 -9
- package/dist/UrlSource-DZK5EBwT.js +0 -73
- package/dist/abstract/TypedCollection.test.d.ts +0 -1
- package/dist/abstract/TypedData.test.d.ts +0 -1
- package/dist/abstract/managers/__tests__/ModalManager.test.d.ts +0 -13
- package/dist/abstract/managers/__tests__/SecureUploadsManager.test.d.ts +0 -1
- package/dist/blocks/CameraSource/__tests__/calcCameraModes.test.d.ts +0 -1
- package/dist/blocks/CloudImageEditor/src/crop-utils.test.d.ts +0 -1
- package/dist/blocks/CloudImageEditor/src/lib/classNames.test.d.ts +0 -1
- package/dist/blocks/CloudImageEditor/src/lib/linspace.test.d.ts +0 -1
- package/dist/blocks/CloudImageEditor/src/lib/parseCropPreset.test.d.ts +0 -1
- package/dist/blocks/CloudImageEditor/src/lib/pick.test.d.ts +0 -1
- package/dist/blocks/CloudImageEditor/src/utils/parseFilterValue.test.d.ts +0 -1
- package/dist/blocks/Config/computed-properties.test.d.ts +0 -1
- package/dist/cameraPlugin-dGash48Q.js +0 -8
- package/dist/cloud-image-editor-fNswWrI4.js +0 -11
- package/dist/cloudImageEditorPlugin-2EU0Pm_j.js +0 -8
- package/dist/en-DNCwRJsB.js +0 -135
- package/dist/env-B1nfXy9i.js +0 -8
- package/dist/externalSourcesPlugin-DKQqk3AC.js +0 -8
- package/dist/imageShrinkPlugin-DAx8eRen.js +0 -8
- package/dist/instagramPlugin-k67tMAo3.js +0 -8
- package/dist/loadFileUploaderFrom-BWJM43Yq.js +0 -28
- package/dist/plugins-DxjsQUa8.js +0 -278
- package/dist/urlSourcePlugin-9xdB7Pvw.js +0 -8
- package/dist/utils/UID.test.d.ts +0 -1
- package/dist/utils/browser-info.test.d.ts +0 -1
- package/dist/utils/cdn-utils.test.d.ts +0 -1
- package/dist/utils/fileTypes.test.d.ts +0 -1
- package/dist/utils/get-top-level-origin.test.d.ts +0 -1
- package/dist/utils/getPluralForm.test.d.ts +0 -1
- package/dist/utils/isPromiseLike.test.d.ts +0 -1
- package/dist/utils/isSecureTokenExpired.test.d.ts +0 -1
- package/dist/utils/memoize.test.d.ts +0 -1
- package/dist/utils/parseCdnUrl.test.d.ts +0 -1
- package/dist/utils/parseShrink.test.d.ts +0 -1
- package/dist/utils/prettyBytes.test.d.ts +0 -1
- package/dist/utils/stringToArray.test.d.ts +0 -1
- package/dist/utils/template-utils.test.d.ts +0 -1
- package/dist/utils/toKebabCase.test.d.ts +0 -1
- package/dist/utils/uniqueArray.test.d.ts +0 -1
- package/dist/utils/wildcardRegexp.test.d.ts +0 -1
- package/dist/utils/withResolvers.test.d.ts +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import "./Icon-CqTVC82Q.js";
|
|
8
|
-
import { t as UrlSource } from "./UrlSource-DZK5EBwT.js";
|
|
9
|
-
export { UrlSource };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { F as InternalEventType, ct as __decorate } from "./Icon-CqTVC82Q.js";
|
|
8
|
-
import { c as UploadSource } from "./plugins-DxjsQUa8.js";
|
|
9
|
-
import { n as LitActivityBlock, t as LitUploaderBlock } from "./LitUploaderBlock-BA34rzeU.js";
|
|
10
|
-
import { html } from "lit";
|
|
11
|
-
import { state } from "lit/decorators.js";
|
|
12
|
-
import { createRef, ref } from "lit/directives/ref.js";
|
|
13
|
-
var UrlSource = class extends LitUploaderBlock {
|
|
14
|
-
constructor(...c) {
|
|
15
|
-
super(...c), this._formState = { importDisabled: !0 }, this._inputRef = createRef(), this._handleInput = (e) => {
|
|
16
|
-
this._formState = { importDisabled: !(e.target?.value ?? "") };
|
|
17
|
-
}, this._handleUpload = (c) => {
|
|
18
|
-
c.preventDefault(), this.telemetryManager.sendEvent({
|
|
19
|
-
eventType: InternalEventType.ACTION_EVENT,
|
|
20
|
-
payload: { metadata: {
|
|
21
|
-
event: "upload-from-url",
|
|
22
|
-
node: this.tagName
|
|
23
|
-
} }
|
|
24
|
-
});
|
|
25
|
-
let l = this._inputRef.value?.value?.trim();
|
|
26
|
-
l && (this.api.addFileFromUrl(l, { source: UploadSource.URL }), this.$["*currentActivity"] = LitActivityBlock.activities.UPLOAD_LIST, this.modalManager?.open(LitActivityBlock.activities.UPLOAD_LIST));
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
firstUpdated() {
|
|
30
|
-
let e = this._inputRef.value;
|
|
31
|
-
e && (e.value = "", e.focus());
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
return html`
|
|
35
|
-
<uc-activity-header>
|
|
36
|
-
<button type="button" class="uc-mini-btn" @click=${this.historyBack} title=${this.l10n("back")} aria-label=${this.l10n("back")}>
|
|
37
|
-
<uc-icon name="back"></uc-icon>
|
|
38
|
-
</button>
|
|
39
|
-
<div>
|
|
40
|
-
<uc-icon name="url"></uc-icon>
|
|
41
|
-
<span>${this.l10n("caption-from-url")}</span>
|
|
42
|
-
</div>
|
|
43
|
-
<button
|
|
44
|
-
type="button"
|
|
45
|
-
class="uc-mini-btn uc-close-btn"
|
|
46
|
-
@click=${this.$["*closeModal"]}
|
|
47
|
-
title=${this.l10n("a11y-activity-header-button-close")}
|
|
48
|
-
aria-label=${this.l10n("a11y-activity-header-button-close")}
|
|
49
|
-
>
|
|
50
|
-
<uc-icon name="close"></uc-icon>
|
|
51
|
-
</button>
|
|
52
|
-
</uc-activity-header>
|
|
53
|
-
<form class="uc-content" @submit=${this._handleUpload}>
|
|
54
|
-
<label>
|
|
55
|
-
<input
|
|
56
|
-
${ref(this._inputRef)}
|
|
57
|
-
placeholder="https://"
|
|
58
|
-
class="uc-url-input"
|
|
59
|
-
type="text"
|
|
60
|
-
@input=${this._handleInput}
|
|
61
|
-
/>
|
|
62
|
-
</label>
|
|
63
|
-
<button
|
|
64
|
-
type="submit"
|
|
65
|
-
class="uc-url-upload-btn uc-primary-btn"
|
|
66
|
-
?disabled=${this._formState.importDisabled}
|
|
67
|
-
>${this.l10n("upload-url")}</button>
|
|
68
|
-
</form>
|
|
69
|
-
`;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
__decorate([state()], UrlSource.prototype, "_formState", void 0);
|
|
73
|
-
export { UrlSource as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { o as cameraPlugin } from "./plugins-DxjsQUa8.js";
|
|
8
|
-
export { cameraPlugin };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { t as Icon } from "./Icon-CqTVC82Q.js";
|
|
8
|
-
import { m as defineComponents } from "./plugins-DxjsQUa8.js";
|
|
9
|
-
import { t as Config } from "./Config-DuWre5p3.js";
|
|
10
|
-
import { _ as PresenceToggle, a as EditorOperationControl, c as EditorAspectRatioButtonControl, d as SliderUi, f as EditorImageFader, g as LineLoaderUi, h as BtnUi, i as EditorScroller, l as EditorFreeformButtonControl, m as CropFrame, n as CloudImageEditorBlock, o as EditorFilterControl, p as EditorImageCropper, r as EditorToolbar, s as EditorCropButtonControl, t as CloudImageEditor, u as EditorSlider } from "./CloudImageEditor-BIxf1V4M.js";
|
|
11
|
-
export { BtnUi, CloudImageEditor, CloudImageEditorBlock, Config, CropFrame, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, Icon, LineLoaderUi, PresenceToggle, SliderUi, defineComponents };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { a as cloudImageEditorPlugin } from "./plugins-DxjsQUa8.js";
|
|
8
|
-
export { cloudImageEditorPlugin };
|
package/dist/en-DNCwRJsB.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
var en_default = {
|
|
8
|
-
"locale-id": "en",
|
|
9
|
-
"social-source-lang": "en",
|
|
10
|
-
"upload-file": "Upload file",
|
|
11
|
-
"upload-files": "Upload files",
|
|
12
|
-
"choose-file": "Choose file",
|
|
13
|
-
"choose-files": "Choose files",
|
|
14
|
-
"drop-files-here": "Drop files here",
|
|
15
|
-
"select-file-source": "Select file source",
|
|
16
|
-
selected: "Selected",
|
|
17
|
-
upload: "Upload",
|
|
18
|
-
"add-more": "Add more",
|
|
19
|
-
cancel: "Cancel",
|
|
20
|
-
"start-from-cancel": "Cancel",
|
|
21
|
-
clear: "Clear",
|
|
22
|
-
"camera-shot": "Shot",
|
|
23
|
-
"upload-url": "Import",
|
|
24
|
-
"upload-url-placeholder": "Paste link here",
|
|
25
|
-
"edit-image": "Edit image",
|
|
26
|
-
"edit-detail": "Details",
|
|
27
|
-
back: "Back",
|
|
28
|
-
done: "Done",
|
|
29
|
-
ok: "Ok",
|
|
30
|
-
"remove-from-list": "Remove",
|
|
31
|
-
no: "No",
|
|
32
|
-
yes: "Yes",
|
|
33
|
-
"confirm-your-action": "Confirm your action",
|
|
34
|
-
"are-you-sure": "Are you sure?",
|
|
35
|
-
"selected-count": "{{count}} of {{total}} selected",
|
|
36
|
-
"select-all": "Select all",
|
|
37
|
-
"deselect-all": "Deselect all",
|
|
38
|
-
"upload-error": "Upload error",
|
|
39
|
-
"validation-error": "Validation error",
|
|
40
|
-
"no-files": "No files selected",
|
|
41
|
-
browse: "Browse",
|
|
42
|
-
"not-uploaded-yet": "Not uploaded yet...",
|
|
43
|
-
file__one: "file",
|
|
44
|
-
file__other: "files",
|
|
45
|
-
error__one: "error",
|
|
46
|
-
error__other: "errors",
|
|
47
|
-
"header-uploading": "Uploading {{count}} {{plural:file(count)}}",
|
|
48
|
-
"header-failed": "{{count}} {{plural:error(count)}}",
|
|
49
|
-
"header-succeed": "{{count}} {{plural:file(count)}} uploaded",
|
|
50
|
-
"header-total": "{{count}} {{plural:file(count)}} selected",
|
|
51
|
-
"src-type-local": "From device",
|
|
52
|
-
"src-type-from-url": "From link",
|
|
53
|
-
"src-type-camera": "Camera",
|
|
54
|
-
"src-type-mobile-video-camera": "Video",
|
|
55
|
-
"src-type-mobile-photo-camera": "Photo",
|
|
56
|
-
"src-type-facebook": "Facebook",
|
|
57
|
-
"src-type-dropbox": "Dropbox",
|
|
58
|
-
"src-type-gdrive": "Google Drive",
|
|
59
|
-
"src-type-ngdrive": "Google Drive",
|
|
60
|
-
"src-type-gphotos": "Google Photos",
|
|
61
|
-
"src-type-flickr": "Flickr",
|
|
62
|
-
"src-type-vk": "VK",
|
|
63
|
-
"src-type-evernote": "Evernote",
|
|
64
|
-
"src-type-box": "Box",
|
|
65
|
-
"src-type-onedrive": "OneDrive",
|
|
66
|
-
"src-type-huddle": "Huddle",
|
|
67
|
-
"src-type-other": "Other",
|
|
68
|
-
"caption-from-url": "Import from link",
|
|
69
|
-
"caption-camera": "Camera",
|
|
70
|
-
"caption-edit-file": "Edit file",
|
|
71
|
-
"file-no-name": "No name...",
|
|
72
|
-
"toggle-fullscreen": "Toggle fullscreen",
|
|
73
|
-
"toggle-guides": "Toggle guides",
|
|
74
|
-
rotate: "Rotate",
|
|
75
|
-
"flip-vertical": "Flip vertical",
|
|
76
|
-
"flip-horizontal": "Flip horizontal",
|
|
77
|
-
apply: "Apply",
|
|
78
|
-
brightness: "Brightness",
|
|
79
|
-
contrast: "Contrast",
|
|
80
|
-
saturation: "Saturation",
|
|
81
|
-
exposure: "Exposure",
|
|
82
|
-
gamma: "Gamma",
|
|
83
|
-
vibrance: "Vibrance",
|
|
84
|
-
warmth: "Warmth",
|
|
85
|
-
enhance: "Enhance",
|
|
86
|
-
original: "Original",
|
|
87
|
-
resize: "Resize image",
|
|
88
|
-
crop: "Crop",
|
|
89
|
-
"select-color": "Select color",
|
|
90
|
-
text: "Text",
|
|
91
|
-
draw: "Draw",
|
|
92
|
-
"cancel-edit": "Cancel edit",
|
|
93
|
-
"tab-view": "Preview",
|
|
94
|
-
"tab-details": "Details",
|
|
95
|
-
"file-name": "Name",
|
|
96
|
-
"file-size": "Size",
|
|
97
|
-
"cdn-url": "CDN URL",
|
|
98
|
-
"file-size-unknown": "Unknown",
|
|
99
|
-
"camera-permissions-denied": "Camera access denied",
|
|
100
|
-
"camera-permissions-prompt": "Please allow access to the camera",
|
|
101
|
-
"camera-permissions-request": "Request access",
|
|
102
|
-
"files-count-limit-error-title": "Files count limit overflow",
|
|
103
|
-
"files-count-limit-error-too-few": "You’ve chosen {{total}} {{plural:file(total)}}. At least {{min}} {{plural:file(min)}} required.",
|
|
104
|
-
"files-count-limit-error-too-many": "You’ve chosen too many files. {{max}} {{plural:file(max)}} is maximum.",
|
|
105
|
-
"files-max-size-limit-error": "File is too big. Max file size is {{maxFileSize}}.",
|
|
106
|
-
"has-validation-errors": "File validation error occurred. Please, check your files before upload.",
|
|
107
|
-
"images-only-accepted": "Only image files are accepted.",
|
|
108
|
-
"file-type-not-allowed": "Uploading of these file types is not allowed.",
|
|
109
|
-
"some-files-were-not-uploaded": "Some files were not uploaded.",
|
|
110
|
-
"file-item-edit-button": "Edit",
|
|
111
|
-
"file-item-remove-button": "Remove",
|
|
112
|
-
"a11y-editor-tab-filters": "Filters",
|
|
113
|
-
"a11y-editor-tab-tuning": "Tuning",
|
|
114
|
-
"a11y-editor-tab-crop": "Crop",
|
|
115
|
-
"a11y-activity-header-button-close": "Close",
|
|
116
|
-
flip: "Flip",
|
|
117
|
-
mirror: "Mirror",
|
|
118
|
-
"a11y-cloud-editor-apply-filter": "Apply {{name}} filter",
|
|
119
|
-
"a11y-cloud-editor-apply-crop": "Apply {{name}} operation",
|
|
120
|
-
"a11y-cloud-editor-apply-tuning": "Apply {{name}} tuning",
|
|
121
|
-
"a11y-cloud-editor-apply-aspect-ratio": "Apply operation {{name}} {{value}}",
|
|
122
|
-
finished: "Finished",
|
|
123
|
-
failed: "Failed",
|
|
124
|
-
uploading: "Uploading",
|
|
125
|
-
idle: "Idle",
|
|
126
|
-
"a11y-file-item-status": "File {{fileName}} in status {{status}}",
|
|
127
|
-
"waiting-for": "Waiting for {{source}}",
|
|
128
|
-
"queued-uploading": "Queued for upload",
|
|
129
|
-
"queued-validation": "Queued for validation",
|
|
130
|
-
validation: "Validating",
|
|
131
|
-
"crop-to-shape": "Crop to {{value}}",
|
|
132
|
-
custom: "Freeform",
|
|
133
|
-
"freeform-crop": "Freeform crop"
|
|
134
|
-
};
|
|
135
|
-
export { en_default as t };
|
package/dist/env-B1nfXy9i.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
const PACKAGE_NAME = "blocks", PACKAGE_VERSION = "1.28.0-alpha.0";
|
|
8
|
-
export { PACKAGE_VERSION as n, PACKAGE_NAME as t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { i as externalSourcesPlugin } from "./plugins-DxjsQUa8.js";
|
|
8
|
-
export { externalSourcesPlugin };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { r as imageShrinkPlugin } from "./plugins-DxjsQUa8.js";
|
|
8
|
-
export { imageShrinkPlugin };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { n as instagramPlugin } from "./plugins-DxjsQUa8.js";
|
|
8
|
-
export { instagramPlugin };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { m as defineComponents } from "./plugins-DxjsQUa8.js";
|
|
8
|
-
const UC_WINDOW_KEY = "UC";
|
|
9
|
-
function loadFileUploaderFrom(t, n = !1) {
|
|
10
|
-
return new Promise((r, i) => {
|
|
11
|
-
if (typeof document != "object") {
|
|
12
|
-
r(null);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
if (typeof window == "object" && window.UC) {
|
|
16
|
-
r(window.UC);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
let a = document.createElement("script");
|
|
20
|
-
a.async = !0, a.src = t, a.onerror = () => {
|
|
21
|
-
i();
|
|
22
|
-
}, a.onload = () => {
|
|
23
|
-
let t = window.UC;
|
|
24
|
-
n && defineComponents(t), r(t);
|
|
25
|
-
}, document.head.appendChild(a);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export { loadFileUploaderFrom as n, UC_WINDOW_KEY as t };
|
package/dist/plugins-DxjsQUa8.js
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { shrinkFile } from "@uploadcare/image-shrink";
|
|
8
|
-
var EXCLUDE_COMPONENTS = [
|
|
9
|
-
"UploaderBlock",
|
|
10
|
-
"ActivityBlock",
|
|
11
|
-
"Block",
|
|
12
|
-
"SolutionBlock"
|
|
13
|
-
];
|
|
14
|
-
function defineComponents(e) {
|
|
15
|
-
for (let D in e) {
|
|
16
|
-
if (EXCLUDE_COMPONENTS.includes(D)) continue;
|
|
17
|
-
let O = [...D].reduce((e, E) => (E.toUpperCase() === E && (E = `-${E.toLowerCase()}`), e += E, e), "");
|
|
18
|
-
O.startsWith("-") && (O = O.replace("-", "")), O.startsWith("uc-") || (O = `uc-${O}`), e[D].reg && e[D].reg(O);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
const deserializeCsv = (e) => e ? e.split(",").map((e) => e.trim()).filter(Boolean) : [], serializeCsv = (e) => e.join(","), ACTIVITY_TYPES = Object.freeze({
|
|
22
|
-
START_FROM: "start-from",
|
|
23
|
-
CAMERA: "camera",
|
|
24
|
-
UPLOAD_LIST: "upload-list",
|
|
25
|
-
URL: "url",
|
|
26
|
-
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
27
|
-
EXTERNAL: "external"
|
|
28
|
-
});
|
|
29
|
-
var calcIsDesktopSafari = () => {
|
|
30
|
-
let e = navigator.userAgent;
|
|
31
|
-
return /Macintosh|Windows/.test(e) && /Version\/[\d.]+.*Safari/.test(e) && !/Chrome|Chromium|Edg|OPR/.test(e);
|
|
32
|
-
}, calcHtmlMediaCaptureSupport = () => "capture" in document.createElement("input");
|
|
33
|
-
const calcBrowserInfo = () => ({ safariDesktop: calcIsDesktopSafari() }), calcBrowserFeatures = () => ({ htmlMediaCapture: calcHtmlMediaCaptureSupport() }), browserInfo = calcBrowserInfo(), browserFeatures = calcBrowserFeatures(), ExternalUploadSource = Object.freeze({
|
|
34
|
-
FACEBOOK: "facebook",
|
|
35
|
-
DROPBOX: "dropbox",
|
|
36
|
-
GDRIVE: "gdrive",
|
|
37
|
-
GPHOTOS: "gphotos",
|
|
38
|
-
FLICKR: "flickr",
|
|
39
|
-
VK: "vk",
|
|
40
|
-
EVERNOTE: "evernote",
|
|
41
|
-
BOX: "box",
|
|
42
|
-
ONEDRIVE: "onedrive",
|
|
43
|
-
HUDDLE: "huddle"
|
|
44
|
-
}), UploadSourceMobile = Object.freeze({
|
|
45
|
-
MOBILE_VIDEO_CAMERA: "mobile-video-camera",
|
|
46
|
-
MOBILE_PHOTO_CAMERA: "mobile-photo-camera"
|
|
47
|
-
}), UploadSource = Object.freeze({
|
|
48
|
-
LOCAL: "local",
|
|
49
|
-
DROP_AREA: "drop-area",
|
|
50
|
-
CAMERA: "camera",
|
|
51
|
-
EXTERNAL: "external",
|
|
52
|
-
API: "js-api",
|
|
53
|
-
URL: "url",
|
|
54
|
-
...UploadSourceMobile,
|
|
55
|
-
...ExternalUploadSource
|
|
56
|
-
});
|
|
57
|
-
var loadCameraModule = async () => {
|
|
58
|
-
let { CameraSource: e } = await import("./CameraSource-px4BzEMI.js");
|
|
59
|
-
defineComponents({ CameraSource: e });
|
|
60
|
-
};
|
|
61
|
-
const cameraPlugin = {
|
|
62
|
-
id: "camera",
|
|
63
|
-
setup: async ({ pluginApi: e, uploaderApi: E }) => {
|
|
64
|
-
await loadCameraModule(), e.registry.registerSource({
|
|
65
|
-
id: "camera",
|
|
66
|
-
label: "src-type-camera",
|
|
67
|
-
icon: "camera",
|
|
68
|
-
expand: () => {
|
|
69
|
-
if (!browserFeatures.htmlMediaCapture) return ["camera"];
|
|
70
|
-
let E = deserializeCsv(e.config.get("cameraModes"));
|
|
71
|
-
return E.length ? E.map((e) => `mobile-${e}-camera`) : ["mobile-photo-camera"];
|
|
72
|
-
},
|
|
73
|
-
onSelect: () => {
|
|
74
|
-
E.setCurrentActivity(ACTIVITY_TYPES.CAMERA), E.setModalState(!0);
|
|
75
|
-
}
|
|
76
|
-
}), e.registry.registerSource({
|
|
77
|
-
id: "mobile-photo-camera",
|
|
78
|
-
label: "src-type-camera",
|
|
79
|
-
icon: "camera",
|
|
80
|
-
onSelect: () => {
|
|
81
|
-
E.openSystemDialog({
|
|
82
|
-
captureCamera: !0,
|
|
83
|
-
modeCamera: "photo"
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}), e.registry.registerSource({
|
|
87
|
-
id: "mobile-video-camera",
|
|
88
|
-
label: "src-type-camera",
|
|
89
|
-
icon: "camera",
|
|
90
|
-
onSelect: () => {
|
|
91
|
-
E.openSystemDialog({
|
|
92
|
-
captureCamera: !0,
|
|
93
|
-
modeCamera: "video"
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}), e.registry.registerActivity({
|
|
97
|
-
id: ACTIVITY_TYPES.CAMERA,
|
|
98
|
-
render: (e) => {
|
|
99
|
-
let E = document.createElement("uc-camera-source");
|
|
100
|
-
return e.append(E), () => {
|
|
101
|
-
e.replaceChildren();
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
var CLOUD_EDITOR_PLUGIN_ID = "cloud-image-editor", EDIT_FILE_ICON_SVG = "<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='currentColor' fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></svg>", editorI18n = { en: {
|
|
108
|
-
"edit-image": "Edit image",
|
|
109
|
-
"edit-detail": "Details",
|
|
110
|
-
"file-item-edit-button": "Edit",
|
|
111
|
-
"a11y-editor-tab-filters": "Filters",
|
|
112
|
-
"a11y-editor-tab-tuning": "Tuning",
|
|
113
|
-
"a11y-editor-tab-crop": "Crop",
|
|
114
|
-
"a11y-cloud-editor-apply-filter": "Apply {{name}} filter",
|
|
115
|
-
"a11y-cloud-editor-apply-crop": "Apply {{name}} operation",
|
|
116
|
-
"a11y-cloud-editor-apply-tuning": "Apply {{name}} tuning",
|
|
117
|
-
"a11y-cloud-editor-apply-aspect-ratio": "Apply operation {{name}} {{value}}",
|
|
118
|
-
"crop-to-shape": "Crop to {{value}}",
|
|
119
|
-
custom: "Freeform",
|
|
120
|
-
"freeform-crop": "Freeform crop",
|
|
121
|
-
"cancel-edit": "Cancel edit",
|
|
122
|
-
back: "Back",
|
|
123
|
-
apply: "Apply",
|
|
124
|
-
rotate: "Rotate",
|
|
125
|
-
"flip-vertical": "Flip vertical",
|
|
126
|
-
"flip-horizontal": "Flip horizontal",
|
|
127
|
-
brightness: "Brightness",
|
|
128
|
-
contrast: "Contrast",
|
|
129
|
-
saturation: "Saturation",
|
|
130
|
-
exposure: "Exposure",
|
|
131
|
-
gamma: "Gamma",
|
|
132
|
-
vibrance: "Vibrance",
|
|
133
|
-
warmth: "Warmth",
|
|
134
|
-
enhance: "Enhance",
|
|
135
|
-
original: "Original",
|
|
136
|
-
resize: "Resize image",
|
|
137
|
-
crop: "Crop",
|
|
138
|
-
"select-color": "Select color",
|
|
139
|
-
text: "Text",
|
|
140
|
-
draw: "Draw",
|
|
141
|
-
"tab-view": "Preview",
|
|
142
|
-
"tab-details": "Details"
|
|
143
|
-
} }, loadEditorModule = async () => {
|
|
144
|
-
let [e, E] = await Promise.all([import("./cloud-image-editor-fNswWrI4.js"), import("./CloudImageEditorActivity-CJxP5N0S.js")]);
|
|
145
|
-
defineComponents({
|
|
146
|
-
...e,
|
|
147
|
-
...E
|
|
148
|
-
});
|
|
149
|
-
};
|
|
150
|
-
const cloudImageEditorPlugin = {
|
|
151
|
-
id: CLOUD_EDITOR_PLUGIN_ID,
|
|
152
|
-
setup: async ({ pluginApi: e, uploaderApi: E }) => {
|
|
153
|
-
await loadEditorModule(), e.registry.registerIcon({
|
|
154
|
-
name: "edit-file",
|
|
155
|
-
svg: EDIT_FILE_ICON_SVG
|
|
156
|
-
}), e.registry.registerI18n(editorI18n), e.registry.registerFileAction({
|
|
157
|
-
id: "edit-file",
|
|
158
|
-
icon: "edit-file",
|
|
159
|
-
shouldRender: (e) => !!(e.isSuccess && e.isImage && e.cdnUrl),
|
|
160
|
-
onClick: (e) => {
|
|
161
|
-
E.setCurrentActivity?.(ACTIVITY_TYPES.CLOUD_IMG_EDIT, { internalId: e.internalId }), E.setModalState?.(!0);
|
|
162
|
-
}
|
|
163
|
-
}), e.registry.registerActivity({
|
|
164
|
-
id: ACTIVITY_TYPES.CLOUD_IMG_EDIT,
|
|
165
|
-
render: (e) => {
|
|
166
|
-
let E = document.createElement("uc-cloud-image-editor-activity");
|
|
167
|
-
return e.append(E), () => {
|
|
168
|
-
e.replaceChildren();
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
var loadExternalSourceModule = async () => {
|
|
175
|
-
let { ExternalSource: e } = await import("./ExternalSource-CR5DG0Jv.js");
|
|
176
|
-
defineComponents({ ExternalSource: e });
|
|
177
|
-
};
|
|
178
|
-
const externalSourcesPlugin = {
|
|
179
|
-
id: "external-sources",
|
|
180
|
-
setup: async ({ pluginApi: e, uploaderApi: E }) => {
|
|
181
|
-
await loadExternalSourceModule(), e.registry.registerActivity({
|
|
182
|
-
id: ACTIVITY_TYPES.EXTERNAL,
|
|
183
|
-
render: (e) => {
|
|
184
|
-
let E = document.createElement("uc-external-source");
|
|
185
|
-
return e.append(E), () => {
|
|
186
|
-
e.replaceChildren();
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
for (let D of Object.values(ExternalUploadSource)) e.registry.registerSource({
|
|
191
|
-
id: D,
|
|
192
|
-
label: `src-type-${D}`,
|
|
193
|
-
icon: D,
|
|
194
|
-
onSelect: () => {
|
|
195
|
-
E.setCurrentActivity(ACTIVITY_TYPES.EXTERNAL, { externalSourceType: D }), E.setModalState(!0);
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
var MAX_SQUARE_SIDE = 16384, regExpShrink = /^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i;
|
|
201
|
-
const parseShrink = (e) => {
|
|
202
|
-
if (typeof e != "string") return !1;
|
|
203
|
-
let E = regExpShrink.exec(e.toLocaleLowerCase()) ?? [];
|
|
204
|
-
if (E.length === 0) return !1;
|
|
205
|
-
let D = Number(E[1]) * Number(E[2]), O = MAX_SQUARE_SIDE * MAX_SQUARE_SIDE;
|
|
206
|
-
return D > O ? (console.warn(`Shrinked size can not be larger than ${Math.floor(O / 1e3 / 1e3)}MP. You have set ${E[1]}x${E[2]} (${Math.ceil(D / 1e3 / 100) / 10}MP).`), !1) : {
|
|
207
|
-
quality: E[3] ? Number(E[3]) / 100 : void 0,
|
|
208
|
-
size: D
|
|
209
|
-
};
|
|
210
|
-
}, imageShrinkPlugin = {
|
|
211
|
-
id: "image-shrink",
|
|
212
|
-
setup({ pluginApi: E }) {
|
|
213
|
-
E.registry.registerFileHook({
|
|
214
|
-
type: "beforeUpload",
|
|
215
|
-
handler: async ({ file: D, mimeType: O }) => {
|
|
216
|
-
let k = E.config.get("imageShrink");
|
|
217
|
-
if (!k) return {
|
|
218
|
-
file: D,
|
|
219
|
-
mimeType: O
|
|
220
|
-
};
|
|
221
|
-
let A = parseShrink(k);
|
|
222
|
-
if (!A) return console.warn("[ImageShrinkPlugin] Image shrink settings are invalid, skipping shrinking"), {
|
|
223
|
-
file: D,
|
|
224
|
-
mimeType: O
|
|
225
|
-
};
|
|
226
|
-
try {
|
|
227
|
-
let E = await shrinkFile(D, A);
|
|
228
|
-
return {
|
|
229
|
-
file: E,
|
|
230
|
-
mimeType: E.type || O
|
|
231
|
-
};
|
|
232
|
-
} catch {
|
|
233
|
-
return {
|
|
234
|
-
file: D,
|
|
235
|
-
mimeType: O
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
}, instagramPlugin = {
|
|
242
|
-
id: "instagram",
|
|
243
|
-
setup({ pluginApi: e }) {
|
|
244
|
-
e.registry.registerSource({
|
|
245
|
-
id: "instagram",
|
|
246
|
-
label: "src-type-instagram",
|
|
247
|
-
icon: "instagram",
|
|
248
|
-
expand: () => (console.error("Instagram source was removed because the Instagram Basic Display API hasn't been available since December 4, 2024. Official statement, see here: https://developers.facebook.com/blog/post/2024/09/04/update-on-instagram-basic-display-api/?locale=en_US"), []),
|
|
249
|
-
onSelect: () => {}
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
var loadUrlSourceModule = async () => {
|
|
254
|
-
let { UrlSource: e } = await import("./UrlSource-BxVL9Pve.js");
|
|
255
|
-
defineComponents({ UrlSource: e });
|
|
256
|
-
};
|
|
257
|
-
const urlSourcePlugin = {
|
|
258
|
-
id: "url-source",
|
|
259
|
-
setup: async ({ pluginApi: e, uploaderApi: E }) => {
|
|
260
|
-
await loadUrlSourceModule(), e.registry.registerActivity({
|
|
261
|
-
id: ACTIVITY_TYPES.URL,
|
|
262
|
-
render: (e) => {
|
|
263
|
-
let E = document.createElement("uc-url-source");
|
|
264
|
-
return e.append(E), () => {
|
|
265
|
-
e.replaceChildren();
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
}), e.registry.registerSource({
|
|
269
|
-
id: "url",
|
|
270
|
-
label: "src-type-from-url",
|
|
271
|
-
icon: "url",
|
|
272
|
-
onSelect: () => {
|
|
273
|
-
E.setCurrentActivity(ACTIVITY_TYPES.URL), E.setModalState(!0);
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
export { cloudImageEditorPlugin as a, UploadSource as c, ACTIVITY_TYPES as d, deserializeCsv as f, externalSourcesPlugin as i, browserFeatures as l, defineComponents as m, instagramPlugin as n, cameraPlugin as o, serializeCsv as p, imageShrinkPlugin as r, ExternalUploadSource as s, urlSourcePlugin as t, browserInfo as u };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.0 (MIT)
|
|
4
|
-
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-02T14:46:15.080Z
|
|
6
|
-
*/
|
|
7
|
-
import { t as urlSourcePlugin } from "./plugins-DxjsQUa8.js";
|
|
8
|
-
export { urlSourcePlugin };
|
package/dist/utils/UID.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|