@uploadcare/file-uploader 1.28.0-alpha.0 → 1.28.0-alpha.1
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/ActivityHeader-R6Mlx-dA.js +9 -0
- package/dist/ActivityHeader.css +23 -0
- package/dist/ActivityHeader.layered.css +24 -0
- package/dist/{CameraSource-DbyO6GoK.js → CameraSource-DDwj1jCV.js} +106 -76
- package/dist/CameraSource-n1tun2Df.js +10 -0
- package/dist/CameraSource.css +180 -0
- package/dist/CameraSource.layered.css +209 -0
- package/dist/{CloudImageEditor-BIxf1V4M.js → CloudImageEditor-DcVoIRb3.js} +66 -65
- package/dist/{CloudImageEditorActivity-d4DpK6fQ.js → CloudImageEditorActivity-Csij4nlC.js} +4 -4
- package/dist/{CloudImageEditorActivity-CJxP5N0S.js → CloudImageEditorActivity-DD4NdU0P.js} +4 -4
- package/dist/CloudImageEditorActivity.css +14 -0
- package/dist/CloudImageEditorActivity.layered.css +15 -0
- package/dist/{Config-DuWre5p3.js → Config-DKOromHY.js} +27 -27
- package/dist/Config.css +4 -0
- package/dist/Config.layered.css +5 -0
- package/dist/ExternalSource-6MSUgxqy.js +10 -0
- package/dist/{ExternalSource-BKTFp95O.js → ExternalSource-DVEjSkPB.js} +56 -51
- package/dist/ExternalSource.css +98 -0
- package/dist/ExternalSource.layered.css +116 -0
- package/dist/{Icon-CqTVC82Q.js → Icon-tXRTvEF2.js} +7 -8
- package/dist/Icon.css +14 -0
- package/dist/Icon.layered.css +15 -0
- package/dist/{LitUploaderBlock-BA34rzeU.js → LitUploaderBlock-LxeOZ0ya.js} +65 -65
- package/dist/{UrlSource-DZK5EBwT.js → UrlSource-BkyX00I2.js} +5 -5
- package/dist/UrlSource-RI8TSD48.js +10 -0
- package/dist/UrlSource.css +17 -0
- package/dist/UrlSource.layered.css +18 -0
- package/dist/abstract/loadFileUploaderFrom.js +3 -3
- package/dist/cameraPlugin-weRKO7eG.js +8 -0
- package/dist/{cloud-image-editor-fNswWrI4.js → cloud-image-editor-hhbyNWLG.js} +6 -6
- package/dist/cloud-image-editor.css +1380 -0
- package/dist/cloud-image-editor.layered.css +1549 -0
- package/dist/cloudImageEditorPlugin-FjUgbMK3.js +8 -0
- package/dist/{en-DNCwRJsB.js → en-8OWEmZim.js} +2 -2
- package/dist/env-mM-ksNPq.js +8 -0
- package/dist/env.js +3 -3
- package/dist/externalSourcesPlugin-CMBmLT8S.js +8 -0
- package/dist/imageShrinkPlugin-BN6loiP2.js +8 -0
- package/dist/index-base.css +2497 -0
- package/dist/index-base.layered.css +2837 -0
- package/dist/index.css +9 -3964
- package/dist/index.d.ts +13 -0
- package/dist/index.js +827 -42
- package/dist/index.layered.css +9 -4478
- package/dist/instagramPlugin-CXRm8MGL.js +8 -0
- package/dist/{loadFileUploaderFrom-BWJM43Yq.js → loadFileUploaderFrom-Bfz8L3VB.js} +3 -3
- package/dist/locales/file-uploader/ar.js +2 -2
- package/dist/locales/file-uploader/az.js +2 -2
- package/dist/locales/file-uploader/ca.js +2 -2
- package/dist/locales/file-uploader/cs.js +2 -2
- package/dist/locales/file-uploader/da.js +2 -2
- package/dist/locales/file-uploader/de.js +2 -2
- package/dist/locales/file-uploader/el.js +2 -2
- package/dist/locales/file-uploader/en.js +3 -3
- package/dist/locales/file-uploader/es.js +2 -2
- package/dist/locales/file-uploader/et.js +2 -2
- package/dist/locales/file-uploader/fi.js +2 -2
- package/dist/locales/file-uploader/fr.js +2 -2
- package/dist/locales/file-uploader/he.js +2 -2
- package/dist/locales/file-uploader/hy.js +2 -2
- package/dist/locales/file-uploader/is.js +2 -2
- package/dist/locales/file-uploader/it.js +2 -2
- package/dist/locales/file-uploader/ja.js +2 -2
- package/dist/locales/file-uploader/ka.js +2 -2
- package/dist/locales/file-uploader/kk.js +2 -2
- package/dist/locales/file-uploader/ko.js +2 -2
- package/dist/locales/file-uploader/lv.js +2 -2
- package/dist/locales/file-uploader/nb.js +2 -2
- package/dist/locales/file-uploader/nl.js +2 -2
- package/dist/locales/file-uploader/pl.js +2 -2
- package/dist/locales/file-uploader/pt.js +2 -2
- package/dist/locales/file-uploader/ro.js +2 -2
- package/dist/locales/file-uploader/ru.js +2 -2
- package/dist/locales/file-uploader/sk.js +2 -2
- package/dist/locales/file-uploader/sr.js +2 -2
- package/dist/locales/file-uploader/sv.js +2 -2
- package/dist/locales/file-uploader/tr.js +2 -2
- package/dist/locales/file-uploader/uk.js +2 -2
- package/dist/locales/file-uploader/vi.js +2 -2
- package/dist/locales/file-uploader/zh-TW.js +2 -2
- package/dist/locales/file-uploader/zh.js +2 -2
- package/dist/{plugins-DxjsQUa8.js → plugins-CGUls7EV.js} +6 -6
- package/dist/urlSourcePlugin-_WdbEhq2.js +8 -0
- package/package.json +1 -1
- package/web/ActivityHeader-BFdTdVfD.js +9 -0
- package/web/ActivityHeader-DQy6rII1.js +9 -0
- package/web/ActivityHeader-DvzMl0uj.js +9 -0
- package/web/ActivityHeader-i4x6_Fne.js +9 -0
- package/web/CameraSource-BAWIA4Wm.js +508 -0
- package/web/CameraSource-BqZCQcij.js +11 -0
- package/web/CameraSource-Brxr4tz4.js +508 -0
- package/web/CameraSource-BvBJ5Uzy.js +508 -0
- package/web/CameraSource-CkHzIE-h.js +11 -0
- package/web/CameraSource-D964yPLu.js +508 -0
- package/web/CameraSource-DE48Az-f.js +11 -0
- package/web/CameraSource-DyPebtRF.js +478 -0
- package/web/CameraSource-pj7Xo81m.js +11 -0
- package/web/CloudImageEditor-CTgUWB07.js +2192 -0
- package/web/CloudImageEditor-CxqV9Lwm.js +2192 -0
- package/web/CloudImageEditor-DoLWHpqV.js +2192 -0
- package/web/CloudImageEditor-Drywn265.js +2192 -0
- package/web/CloudImageEditor-MXcaDtMx.js +2187 -0
- package/web/CloudImageEditorActivity-BPzmfaJV.js +85 -0
- package/web/CloudImageEditorActivity-Br8pU5gd.js +11 -0
- package/web/CloudImageEditorActivity-Cw8b2CEz.js +11 -0
- package/web/CloudImageEditorActivity-Df1ySGq0.js +86 -0
- package/web/CloudImageEditorActivity-DinG5r0y.js +11 -0
- package/web/CloudImageEditorActivity-DmnLLINR.js +85 -0
- package/web/CloudImageEditorActivity-U90BGCek.js +85 -0
- package/web/CloudImageEditorActivity-dNLQZRZI.js +11 -0
- package/web/CloudImageEditorActivity-ur-hQ-6p.js +85 -0
- package/web/Config-8hlBNhvs.js +455 -0
- package/web/Config-BDZhPIyz.js +455 -0
- package/web/Config-CJVNrrjj.js +455 -0
- package/web/Config-DvkVtlQ7.js +455 -0
- package/web/ExternalSource-B9ycBFiD.js +10 -0
- package/web/ExternalSource-BE7HX47E.js +250 -0
- package/web/ExternalSource-BL5GSlol.js +250 -0
- package/web/ExternalSource-BXQY6Dlc.js +10 -0
- package/web/ExternalSource-BXxH3JCD.js +250 -0
- package/web/ExternalSource-BYSS-PPV.js +245 -0
- package/web/ExternalSource-C57a61QN.js +10 -0
- package/web/ExternalSource-CKfMtOgU.js +250 -0
- package/web/ExternalSource-DP6q8ylB.js +10 -0
- package/web/LitUploaderBlock-AX6jOdAS.js +996 -0
- package/web/LitUploaderBlock-BjAaoLl2.js +996 -0
- package/web/LitUploaderBlock-D8E5HuwH.js +996 -0
- package/web/LitUploaderBlock-Dl3ce0Tc.js +996 -0
- package/web/LitUploaderBlock-Oi33U0uf.js +996 -0
- package/web/UrlSource-B9SX3K0L.js +10 -0
- package/web/UrlSource-C3zB1rCb.js +70 -0
- package/web/UrlSource-C7bEU6Xv.js +10 -0
- package/web/UrlSource-CE389CBz.js +70 -0
- package/web/UrlSource-CnvAJ58Y.js +10 -0
- package/web/UrlSource-CqF0h6B-.js +10 -0
- package/web/UrlSource-D-971Nut.js +70 -0
- package/web/UrlSource-DhI3YCt5.js +70 -0
- package/web/UrlSource-hWV7jtB2.js +70 -0
- package/web/abstract/CTX.d.ts +40 -0
- package/web/abstract/TypedCollection.d.ts +47 -0
- package/web/abstract/TypedCollection.test.d.ts +1 -0
- package/web/abstract/TypedData.d.ts +12 -0
- package/web/abstract/TypedData.test.d.ts +1 -0
- package/web/abstract/UploaderPublicApi.d.ts +41 -0
- package/web/abstract/buildOutputCollectionState.d.ts +3 -0
- package/web/abstract/customConfigOptions.d.ts +65 -0
- package/web/abstract/defineComponents.d.ts +1 -0
- package/web/abstract/features/ClipboardLayer.d.ts +12 -0
- package/web/abstract/loadFileUploaderFrom.d.ts +13 -0
- package/web/abstract/localeRegistry.d.ts +5 -0
- package/web/abstract/managers/LocaleManager.d.ts +10 -0
- package/web/abstract/managers/ModalManager.d.ts +53 -0
- package/web/abstract/managers/SecureUploadsManager.d.ts +7 -0
- package/web/abstract/managers/TelemetryManager.d.ts +41 -0
- package/web/abstract/managers/ValidationManager.d.ts +34 -0
- package/web/abstract/managers/__tests__/ModalManager.test.d.ts +13 -0
- package/web/abstract/managers/__tests__/SecureUploadsManager.test.d.ts +1 -0
- package/web/abstract/managers/a11y.d.ts +9 -0
- package/web/abstract/managers/plugin/PluginManager.d.ts +25 -0
- package/web/abstract/managers/plugin/PluginTypes.d.ts +146 -0
- package/web/abstract/managers/plugin/index.d.ts +2 -0
- package/web/abstract/sharedConfigKey.d.ts +2 -0
- package/web/abstract/uploadEntrySchema.d.ts +34 -0
- package/web/blocks/ActivityHeader/ActivityHeader.d.ts +8 -0
- package/web/blocks/CameraSource/CameraSource.d.ts +121 -0
- package/web/blocks/CameraSource/__tests__/calcCameraModes.test.d.ts +1 -0
- package/web/blocks/CameraSource/calcCameraModes.d.ts +5 -0
- package/web/blocks/CameraSource/constants.d.ts +15 -0
- package/web/blocks/CloudImageEditor/index.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts +60 -0
- package/web/blocks/CloudImageEditor/src/CropFrame.d.ts +56 -0
- package/web/blocks/CloudImageEditor/src/EditorAspectRatioButtonControl.d.ts +24 -0
- package/web/blocks/CloudImageEditor/src/EditorButtonControl.d.ts +14 -0
- package/web/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts +13 -0
- package/web/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +35 -0
- package/web/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +56 -0
- package/web/blocks/CloudImageEditor/src/EditorImageFader.d.ts +63 -0
- package/web/blocks/CloudImageEditor/src/EditorOperationControl.d.ts +15 -0
- package/web/blocks/CloudImageEditor/src/EditorScroller.d.ts +15 -0
- package/web/blocks/CloudImageEditor/src/EditorSlider.d.ts +33 -0
- package/web/blocks/CloudImageEditor/src/EditorToolbar.d.ts +68 -0
- package/web/blocks/CloudImageEditor/src/crop-utils.d.ts +36 -0
- package/web/blocks/CloudImageEditor/src/crop-utils.test.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/cropper-constants.d.ts +10 -0
- package/web/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts +31 -0
- package/web/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts +19 -0
- package/web/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts +27 -0
- package/web/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts +38 -0
- package/web/blocks/CloudImageEditor/src/index.d.ts +15 -0
- package/web/blocks/CloudImageEditor/src/lib/classNames.d.ts +5 -0
- package/web/blocks/CloudImageEditor/src/lib/classNames.test.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/lib/linspace.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/lib/linspace.test.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +4 -0
- package/web/blocks/CloudImageEditor/src/lib/parseCropPreset.test.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/lib/parseTabs.d.ts +2 -0
- package/web/blocks/CloudImageEditor/src/lib/pick.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/lib/pick.test.d.ts +1 -0
- package/web/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +7 -0
- package/web/blocks/CloudImageEditor/src/state.d.ts +20 -0
- package/web/blocks/CloudImageEditor/src/svg-sprite.d.ts +2 -0
- package/web/blocks/CloudImageEditor/src/toolbar-constants.d.ts +61 -0
- package/web/blocks/CloudImageEditor/src/types.d.ts +60 -0
- package/web/blocks/CloudImageEditor/src/util.d.ts +2 -0
- package/web/blocks/CloudImageEditor/src/utils/parseFilterValue.d.ts +7 -0
- package/web/blocks/CloudImageEditor/src/utils/parseFilterValue.test.d.ts +1 -0
- package/web/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +25 -0
- package/web/blocks/Config/Config.d.ts +60 -0
- package/web/blocks/Config/assertions.d.ts +5 -0
- package/web/blocks/Config/computed-properties.d.ts +24 -0
- package/web/blocks/Config/computed-properties.test.d.ts +1 -0
- package/web/blocks/Config/initialConfig.d.ts +6 -0
- package/web/blocks/Config/normalizeConfigValue.d.ts +2 -0
- package/web/blocks/Config/validatorsType.d.ts +18 -0
- package/web/blocks/Copyright/Copyright.d.ts +10 -0
- package/web/blocks/DropArea/DropArea.d.ts +47 -0
- package/web/blocks/DropArea/addDropzone.d.ts +17 -0
- package/web/blocks/DropArea/getDropItems.d.ts +12 -0
- package/web/blocks/ExternalSource/ExternalSource.d.ts +45 -0
- package/web/blocks/ExternalSource/MessageBridge.d.ts +11 -0
- package/web/blocks/ExternalSource/buildThemeDefinition.d.ts +4 -0
- package/web/blocks/ExternalSource/query-string.d.ts +1 -0
- package/web/blocks/ExternalSource/types.d.ts +105 -0
- package/web/blocks/FileItem/FileItem.d.ts +50 -0
- package/web/blocks/FileItem/FileItemConfig.d.ts +10 -0
- package/web/blocks/FormInput/FormInput.d.ts +18 -0
- package/web/blocks/Icon/Icon.d.ts +19 -0
- package/web/blocks/Img/Img.d.ts +14 -0
- package/web/blocks/Img/ImgBase.d.ts +29 -0
- package/web/blocks/Img/ImgConfig.d.ts +28 -0
- package/web/blocks/Img/configurations.d.ts +11 -0
- package/web/blocks/Img/props-map.d.ts +28 -0
- package/web/blocks/Img/utils/parseObjectToString.d.ts +2 -0
- package/web/blocks/Modal/Modal.d.ts +34 -0
- package/web/blocks/PluginActivityRenderer/PluginActivityRenderer.d.ts +32 -0
- package/web/blocks/PluginActivityRenderer/index.d.ts +1 -0
- package/web/blocks/ProgressBar/ProgressBar.d.ts +21 -0
- package/web/blocks/ProgressBarCommon/ProgressBarCommon.d.ts +17 -0
- package/web/blocks/Select/Select.d.ts +18 -0
- package/web/blocks/SimpleBtn/SimpleBtn.d.ts +15 -0
- package/web/blocks/SourceBtn/SourceBtn.d.ts +23 -0
- package/web/blocks/SourceList/SourceList.d.ts +24 -0
- package/web/blocks/Spinner/Spinner.d.ts +9 -0
- package/web/blocks/StartFrom/StartFrom.d.ts +12 -0
- package/web/blocks/Thumb/Thumb.d.ts +35 -0
- package/web/blocks/UploadCtxProvider/EventEmitter.d.ts +70 -0
- package/web/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +44 -0
- package/web/blocks/UploadList/UploadList.d.ts +39 -0
- package/web/blocks/UrlSource/UrlSource.d.ts +14 -0
- package/web/blocks/svg-backgrounds/svg-backgrounds.d.ts +3 -0
- package/web/blocks/themes/uc-basic/svg-sprite.d.ts +2 -0
- package/web/cameraPlugin-DeedXMWV.js +8 -0
- package/web/cameraPlugin-Duy1QwjB.js +8 -0
- package/web/cameraPlugin-QS9SUOtO.js +8 -0
- package/web/cameraPlugin-bq8ggY04.js +8 -0
- package/web/cameraPlugin-cel9YgP_.js +8 -0
- package/web/cloud-image-editor-8DrVRZ7E.js +12 -0
- package/web/cloud-image-editor-BX50EK1U.js +12 -0
- package/web/cloud-image-editor-DSW3oWq-.js +12 -0
- package/web/cloud-image-editor-DuI2Lx4M.js +12 -0
- package/web/cloudImageEditorPlugin-5my6aD36.js +8 -0
- package/web/cloudImageEditorPlugin-Bk19DmJv.js +8 -0
- package/web/cloudImageEditorPlugin-CcdnmtBW.js +8 -0
- package/web/cloudImageEditorPlugin-DQJmDl03.js +8 -0
- package/web/cloudImageEditorPlugin-kojghfqw.js +8 -0
- package/web/constants-BCfCF0cJ.js +4025 -0
- package/web/core.d.ts +42 -0
- package/web/env.d.ts +2 -0
- package/web/externalSourcesPlugin-BTeRm5C0.js +8 -0
- package/web/externalSourcesPlugin-BXgVeojg.js +8 -0
- package/web/externalSourcesPlugin-BgLpuIK9.js +8 -0
- package/web/externalSourcesPlugin-DMc9zs4T.js +8 -0
- package/web/externalSourcesPlugin-Dm9vnTBv.js +8 -0
- package/web/file-uploader.iife.min.js +697 -0
- package/web/file-uploader.min.js +1859 -0
- package/web/imageShrinkPlugin-BdHgEGZH.js +8 -0
- package/web/imageShrinkPlugin-BjkMGfvT.js +8 -0
- package/web/imageShrinkPlugin-CCkGHL2w.js +8 -0
- package/web/imageShrinkPlugin-D4WjaRGo.js +8 -0
- package/web/imageShrinkPlugin-DqYGutVx.js +8 -0
- package/web/index.d.ts +42 -0
- package/web/instagramPlugin-BTMz0K2a.js +8 -0
- package/web/instagramPlugin-BbIKgTH7.js +8 -0
- package/web/instagramPlugin-CQQhsEJa.js +8 -0
- package/web/instagramPlugin-Cm7lWKae.js +8 -0
- package/web/instagramPlugin-DcclxM_d.js +8 -0
- package/web/lit/BaseComponent.d.ts +12 -0
- package/web/lit/Constructor.d.ts +1 -0
- package/web/lit/CssDataMixin.d.ts +7 -0
- package/web/lit/LightDomMixin.d.ts +8 -0
- package/web/lit/LitActivityBlock.d.ts +53 -0
- package/web/lit/LitBlock.d.ts +83 -0
- package/web/lit/LitSolutionBlock.d.ts +21 -0
- package/web/lit/LitUploaderBlock.d.ts +53 -0
- package/web/lit/PubSubCompat.d.ts +18 -0
- package/web/lit/RegisterableElementMixin.d.ts +7 -0
- package/web/lit/SharedState.d.ts +119 -0
- package/web/lit/SymbioteCompatMixin.d.ts +40 -0
- package/web/lit/TestModeController.d.ts +16 -0
- package/web/lit/Uid.d.ts +3 -0
- package/web/lit/activity-constants.d.ts +11 -0
- package/web/lit/createDebugPrinter.d.ts +3 -0
- package/web/lit/findBlockInCtx.d.ts +3 -0
- package/web/lit/getOutputData.d.ts +2 -0
- package/web/lit/hasBlockInCtx.d.ts +3 -0
- package/web/lit/l10n.d.ts +5 -0
- package/web/lit/parseCssPropertyValue.d.ts +1 -0
- package/web/lit/shared-instances.d.ts +65 -0
- package/web/locales/file-uploader/ar.d.ts +137 -0
- package/web/locales/file-uploader/az.d.ts +129 -0
- package/web/locales/file-uploader/ca.d.ts +131 -0
- package/web/locales/file-uploader/cs.d.ts +133 -0
- package/web/locales/file-uploader/da.d.ts +129 -0
- package/web/locales/file-uploader/de.d.ts +129 -0
- package/web/locales/file-uploader/el.d.ts +129 -0
- package/web/locales/file-uploader/en.d.ts +129 -0
- package/web/locales/file-uploader/es.d.ts +131 -0
- package/web/locales/file-uploader/et.d.ts +129 -0
- package/web/locales/file-uploader/fi.d.ts +129 -0
- package/web/locales/file-uploader/fr.d.ts +131 -0
- package/web/locales/file-uploader/he.d.ts +131 -0
- package/web/locales/file-uploader/hy.d.ts +129 -0
- package/web/locales/file-uploader/is.d.ts +129 -0
- package/web/locales/file-uploader/it.d.ts +131 -0
- package/web/locales/file-uploader/ja.d.ts +129 -0
- package/web/locales/file-uploader/ka.d.ts +129 -0
- package/web/locales/file-uploader/kk.d.ts +129 -0
- package/web/locales/file-uploader/ko.d.ts +129 -0
- package/web/locales/file-uploader/lv.d.ts +131 -0
- package/web/locales/file-uploader/nb.d.ts +129 -0
- package/web/locales/file-uploader/nl.d.ts +129 -0
- package/web/locales/file-uploader/pl.d.ts +133 -0
- package/web/locales/file-uploader/pt.d.ts +131 -0
- package/web/locales/file-uploader/ro.d.ts +131 -0
- package/web/locales/file-uploader/ru.d.ts +133 -0
- package/web/locales/file-uploader/sk.d.ts +133 -0
- package/web/locales/file-uploader/sr.d.ts +131 -0
- package/web/locales/file-uploader/sv.d.ts +129 -0
- package/web/locales/file-uploader/tr.d.ts +129 -0
- package/web/locales/file-uploader/uk.d.ts +133 -0
- package/web/locales/file-uploader/vi.d.ts +129 -0
- package/web/locales/file-uploader/zh-TW.d.ts +129 -0
- package/web/locales/file-uploader/zh.d.ts +129 -0
- package/web/plugins/cameraPlugin.d.ts +2 -0
- package/web/plugins/cloudImageEditorPlugin.d.ts +2 -0
- package/web/plugins/externalSourcesPlugin.d.ts +2 -0
- package/web/plugins/imageShrinkPlugin.d.ts +2 -0
- package/web/plugins/instagramPlugin.d.ts +2 -0
- package/web/plugins/unsplashPlugin.d.ts +16 -0
- package/web/plugins/urlSourcePlugin.d.ts +2 -0
- package/web/plugins-Bt7FXHKx.js +562 -0
- package/web/plugins-CaaolyMk.js +562 -0
- package/web/plugins-Cjgw5oWg.js +562 -0
- package/web/plugins-CzNtrVQB.js +562 -0
- package/web/plugins-DS0hIs2V.js +563 -0
- package/web/ref-BOnG19ns.js +4040 -0
- package/web/ref-BejJFG7m.js +4040 -0
- package/web/ref-DcRg7zo9.js +4040 -0
- package/web/ref-ZWPcLQB9.js +4040 -0
- package/web/solutions/adaptive-image/index.d.ts +2 -0
- package/web/solutions/cloud-image-editor/CloudImageEditor.d.ts +11 -0
- package/web/solutions/cloud-image-editor/index.d.ts +5 -0
- package/web/solutions/file-uploader/inline/FileUploaderInline.d.ts +20 -0
- package/web/solutions/file-uploader/inline/index.d.ts +1 -0
- package/web/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +23 -0
- package/web/solutions/file-uploader/minimal/index.d.ts +1 -0
- package/web/solutions/file-uploader/regular/FileUploaderRegular.d.ts +17 -0
- package/web/solutions/file-uploader/regular/index.d.ts +1 -0
- package/web/style-map-BmZdux7T.js +37 -0
- package/web/style-map-CZ6fSV6e.js +37 -0
- package/web/style-map-Dk7mLCrB.js +37 -0
- package/web/style-map-HkHnu9oA.js +37 -0
- package/web/style-map-tw1yUEaj.js +37 -0
- package/web/types/dom.d.ts +1 -0
- package/web/types/events.d.ts +4 -0
- package/web/types/exported.d.ts +492 -0
- package/web/types/index.d.ts +5 -0
- package/web/uc-basic.layered.min.css +6046 -0
- package/web/uc-basic.min.css +5487 -0
- package/web/uc-cloud-image-editor.layered.min.css +1884 -0
- package/web/uc-cloud-image-editor.min.css +1675 -0
- package/web/uc-cloud-image-editor.min.js +457 -0
- package/web/uc-file-uploader-inline.layered.min.css +4352 -0
- package/web/uc-file-uploader-inline.min.css +3836 -0
- package/web/uc-file-uploader-inline.min.js +1859 -0
- package/web/uc-file-uploader-minimal.layered.min.css +4352 -0
- package/web/uc-file-uploader-minimal.min.css +3836 -0
- package/web/uc-file-uploader-minimal.min.js +1859 -0
- package/web/uc-file-uploader-regular.layered.min.css +4352 -0
- package/web/uc-file-uploader-regular.min.css +3836 -0
- package/web/uc-file-uploader-regular.min.js +1859 -0
- package/web/uc-img.min.js +895 -0
- package/web/urlSourcePlugin-9lhcr02f.js +8 -0
- package/web/urlSourcePlugin-C-sLGhGb.js +8 -0
- package/web/urlSourcePlugin-DNXDpnRD.js +8 -0
- package/web/urlSourcePlugin-JnD0cnxb.js +8 -0
- package/web/urlSourcePlugin-hcMU2K6T.js +8 -0
- package/web/utils/UID.d.ts +5 -0
- package/web/utils/UID.test.d.ts +1 -0
- package/web/utils/UploadSource.d.ts +37 -0
- package/web/utils/WindowHeightTracker.d.ts +9 -0
- package/web/utils/abilities.d.ts +1 -0
- package/web/utils/applyStyles.d.ts +1 -0
- package/web/utils/browser-info.d.ts +12 -0
- package/web/utils/browser-info.test.d.ts +1 -0
- package/web/utils/cdn-utils.d.ts +53 -0
- package/web/utils/cdn-utils.test.d.ts +1 -0
- package/web/utils/comma-separated.d.ts +2 -0
- package/web/utils/debounce.d.ts +3 -0
- package/web/utils/delay.d.ts +1 -0
- package/web/utils/fileTypes.d.ts +11 -0
- package/web/utils/fileTypes.test.d.ts +1 -0
- package/web/utils/get-top-level-origin.d.ts +1 -0
- package/web/utils/get-top-level-origin.test.d.ts +1 -0
- package/web/utils/getLocaleDirection.d.ts +1 -0
- package/web/utils/getPluralForm.d.ts +1 -0
- package/web/utils/getPluralForm.test.d.ts +1 -0
- package/web/utils/isPromiseLike.d.ts +1 -0
- package/web/utils/isPromiseLike.test.d.ts +1 -0
- package/web/utils/isSecureTokenExpired.d.ts +8 -0
- package/web/utils/isSecureTokenExpired.test.d.ts +1 -0
- package/web/utils/memoize.d.ts +1 -0
- package/web/utils/memoize.test.d.ts +1 -0
- package/web/utils/mixinClass.d.ts +8 -0
- package/web/utils/parseCdnUrl.d.ts +11 -0
- package/web/utils/parseCdnUrl.test.d.ts +1 -0
- package/web/utils/parseShrink.d.ts +7 -0
- package/web/utils/parseShrink.test.d.ts +1 -0
- package/web/utils/preloadImage.d.ts +10 -0
- package/web/utils/prettyBytes.d.ts +11 -0
- package/web/utils/prettyBytes.test.d.ts +1 -0
- package/web/utils/resizeImage.d.ts +1 -0
- package/web/utils/stringToArray.d.ts +1 -0
- package/web/utils/stringToArray.test.d.ts +1 -0
- package/web/utils/template-utils.d.ts +16 -0
- package/web/utils/template-utils.test.d.ts +1 -0
- package/web/utils/throttle.d.ts +3 -0
- package/web/utils/toKebabCase.d.ts +2 -0
- package/web/utils/toKebabCase.test.d.ts +1 -0
- package/web/utils/transparentPixelSrc.d.ts +1 -0
- package/web/utils/uniqueArray.d.ts +1 -0
- package/web/utils/uniqueArray.test.d.ts +1 -0
- package/web/utils/userAgent.d.ts +2 -0
- package/web/utils/validators/collection/index.d.ts +2 -0
- package/web/utils/validators/collection/validateCollectionUploadError.d.ts +2 -0
- package/web/utils/validators/collection/validateMultiple.d.ts +2 -0
- package/web/utils/validators/file/index.d.ts +4 -0
- package/web/utils/validators/file/validateFileType.d.ts +2 -0
- package/web/utils/validators/file/validateIsImage.d.ts +2 -0
- package/web/utils/validators/file/validateMaxSizeLimit.d.ts +2 -0
- package/web/utils/validators/file/validateUploadError.d.ts +2 -0
- package/web/utils/warnOnce.d.ts +1 -0
- package/web/utils/wildcardRegexp.d.ts +1 -0
- package/web/utils/wildcardRegexp.test.d.ts +1 -0
- package/web/utils/withResolvers.d.ts +5 -0
- package/web/utils/withResolvers.test.d.ts +1 -0
- package/dist/CameraSource-px4BzEMI.js +0 -9
- package/dist/ExternalSource-CR5DG0Jv.js +0 -9
- package/dist/UrlSource-BxVL9Pve.js +0 -9
- package/dist/cameraPlugin-dGash48Q.js +0 -8
- package/dist/cloudImageEditorPlugin-2EU0Pm_j.js +0 -8
- 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/urlSourcePlugin-9xdB7Pvw.js +0 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.28.0-alpha.1 (MIT)
|
|
4
4
|
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-
|
|
5
|
+
* Built: 2026-03-02T20:26:07.910Z
|
|
6
6
|
*/
|
|
7
|
-
import { $ as
|
|
8
|
-
import { c as UploadSource, d as ACTIVITY_TYPES, f as deserializeCsv, l as browserFeatures, p as serializeCsv, s as ExternalUploadSource, u as browserInfo } from "./plugins-
|
|
9
|
-
import { n as PACKAGE_VERSION, t as PACKAGE_NAME } from "./env-
|
|
7
|
+
import { $ as stringToArray, A as CameraSourceTypes, F as EventType, H as DEFAULT_CDN_CNAME, L as activityBlockCtx, M as createL10n, N as getPluralForm, O as warnOnce, V as SharedInstance, at as sharedConfigKey, et as createCdnUrl, i as calculateMaxCenteredCropFrame, j as LitBlock, mt as PubSub, r as parseCropPreset, st as UID, tt as createCdnUrlModifiers, ut as debounce, z as uploaderBlockCtx } from "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { c as UploadSource, d as ACTIVITY_TYPES, f as deserializeCsv, l as browserFeatures, p as serializeCsv, s as ExternalUploadSource, u as browserInfo } from "./plugins-CGUls7EV.js";
|
|
9
|
+
import { n as PACKAGE_VERSION, t as PACKAGE_NAME } from "./env-mM-ksNPq.js";
|
|
10
10
|
import { NetworkError, Queue, UploadError, getUserAgent, uploadFileGroup } from "@uploadcare/upload-client";
|
|
11
11
|
var msToUnixTimestamp = (p) => typeof p == "number" ? Math.floor(p / 1e3) : 0;
|
|
12
12
|
const isSecureTokenExpired = (p, { threshold: H }) => {
|
|
@@ -89,7 +89,7 @@ const validateCollectionUploadError = (p, H) => {
|
|
|
89
89
|
".heics",
|
|
90
90
|
".avif",
|
|
91
91
|
".avifs"
|
|
92
|
-
], IMAGE_ACCEPT_LIST = (() => browserInfo.safariDesktop ? [BASIC_IMAGE_WILDCARD] : [BASIC_IMAGE_WILDCARD, ...HEIC_IMAGE_MIME_LIST])(), mergeFileTypes = (
|
|
92
|
+
], IMAGE_ACCEPT_LIST = (() => browserInfo.safariDesktop ? [BASIC_IMAGE_WILDCARD] : [BASIC_IMAGE_WILDCARD, ...HEIC_IMAGE_MIME_LIST])(), mergeFileTypes = (H) => H ? H.filter((p) => typeof p == "string").flatMap((H) => stringToArray(H)) : [], matchMimeType = (p, H) => H.some((H) => {
|
|
93
93
|
if (H.endsWith("*")) {
|
|
94
94
|
let U = H.replace("*", "");
|
|
95
95
|
return p.startsWith(U);
|
|
@@ -207,15 +207,15 @@ var LOG_TEXT = {
|
|
|
207
207
|
}
|
|
208
208
|
runCollectionValidators() {
|
|
209
209
|
if (this._isDestroyed) return;
|
|
210
|
-
let p = this._sharedInstancesBag.api, H = p.getOutputCollectionState(),
|
|
211
|
-
for (let
|
|
212
|
-
let
|
|
213
|
-
if (!
|
|
214
|
-
|
|
210
|
+
let p = this._sharedInstancesBag.api, H = p.getOutputCollectionState(), W = [], G = this._cfg.collectionValidators;
|
|
211
|
+
for (let U of [...this._commonCollectionValidators, ...G]) try {
|
|
212
|
+
let G = U(H, p);
|
|
213
|
+
if (!G) continue;
|
|
214
|
+
G && (W.push(this._addCustomTypeToValidationError(G)), G.message || console.warn(LOG_TEXT.MISSING_ERROR_MESSAGE));
|
|
215
215
|
} catch (p) {
|
|
216
216
|
console.warn(LOG_TEXT.COLLECTION_VALIDATION_FAILED, p);
|
|
217
217
|
}
|
|
218
|
-
this._ctx.pub("*collectionErrors",
|
|
218
|
+
this._ctx.pub("*collectionErrors", W), W.length > 0 && this._sharedInstancesBag.eventEmitter.emit(EventType.COMMON_UPLOAD_FAILED, () => p.getOutputCollectionState(), { debounce: !0 });
|
|
219
219
|
}
|
|
220
220
|
cleanupValidationForEntry(p) {
|
|
221
221
|
let H = this._entryValidationState.get(p.uid);
|
|
@@ -453,15 +453,15 @@ function applyStyles(p, H) {
|
|
|
453
453
|
}
|
|
454
454
|
var cdnUrlRegex = RegExp("^/?([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})(?:/(-/(?:[^/]+/)+)?([^/]*))?$", "i");
|
|
455
455
|
const parseCdnUrl = ({ url: p, cdnBase: H }) => {
|
|
456
|
-
let U = new URL(H),
|
|
457
|
-
if (U.host !==
|
|
458
|
-
let
|
|
459
|
-
if (!
|
|
460
|
-
let [,
|
|
461
|
-
return
|
|
462
|
-
uuid:
|
|
463
|
-
cdnUrlModifiers:
|
|
464
|
-
filename:
|
|
456
|
+
let U = new URL(H), G = new URL(DEFAULT_CDN_CNAME), K = new URL(p);
|
|
457
|
+
if (U.host !== K.host && G.host !== K.host) return null;
|
|
458
|
+
let q = cdnUrlRegex.exec(K.pathname);
|
|
459
|
+
if (!q) return null;
|
|
460
|
+
let [, J, Y, X] = q;
|
|
461
|
+
return J ? {
|
|
462
|
+
uuid: J,
|
|
463
|
+
cdnUrlModifiers: Y || "",
|
|
464
|
+
filename: X || null
|
|
465
465
|
} : null;
|
|
466
466
|
}, getOutputData = (p) => p.uploadCollection.items().map((H) => p.api.getOutputItem(H));
|
|
467
467
|
function memoize(p) {
|
|
@@ -679,8 +679,8 @@ var UploaderPublicApi = class extends SharedInstance {
|
|
|
679
679
|
return buildOutputCollectionState(this._sharedInstancesBag);
|
|
680
680
|
}
|
|
681
681
|
get _sourceList() {
|
|
682
|
-
let
|
|
683
|
-
return this.cfg.sourceList && (
|
|
682
|
+
let H = [];
|
|
683
|
+
return this.cfg.sourceList && (H = stringToArray(this.cfg.sourceList)), H;
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
686
|
const initialUploadEntryData = {
|
|
@@ -793,18 +793,18 @@ var ACTIVE_ATTR = "active", ACTIVE_PROP = "___ACTIVITY_IS_ACTIVE___", LitActivit
|
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
LitActivityBlock.activities = ACTIVITY_TYPES;
|
|
796
|
-
var LitUploaderBlock = class
|
|
796
|
+
var LitUploaderBlock = class p extends LitActivityBlock {
|
|
797
797
|
constructor(...p) {
|
|
798
798
|
super(...p), this.couldBeCtxOwner = !1, this._isCtxOwner = !1, this.init$ = uploaderBlockCtx(this), this._flushOutputItems = debounce(async () => {
|
|
799
799
|
if (this.getOutputData().length !== this.uploadCollection.size) return;
|
|
800
800
|
let p = this.api.getOutputCollectionState();
|
|
801
801
|
this.$["*collectionState"] = p, this.emit(EventType.CHANGE, () => this.api.getOutputCollectionState(), { debounce: !0 }), this.cfg.groupOutput && p.totalCount > 0 && p.status === "success" && this._createGroup(p);
|
|
802
|
-
}, 300), this._handleCollectionUpdate = (p, H,
|
|
802
|
+
}, 300), this._handleCollectionUpdate = (p, H, W) => {
|
|
803
803
|
if (this.isConnected) {
|
|
804
|
-
(H.size ||
|
|
804
|
+
(H.size || W.size) && (this.$["*groupInfo"] = null), this.validationManager.runFileValidators("add", [...H].map((p) => p.uid));
|
|
805
805
|
for (let p of H) p.getValue("silent") || this.emit(EventType.FILE_ADDED, this.api.getOutputItem(p.uid));
|
|
806
806
|
this.validationManager.runCollectionValidators();
|
|
807
|
-
for (let p of
|
|
807
|
+
for (let p of W) {
|
|
808
808
|
this.$["*uploadTrigger"].delete(p.uid), this.validationManager.cleanupValidationForEntry(p), p.getValue("abortController")?.abort(), p.setMultipleValues({
|
|
809
809
|
isRemoved: !0,
|
|
810
810
|
abortController: null,
|
|
@@ -819,37 +819,37 @@ var LitUploaderBlock = class H extends LitActivityBlock {
|
|
|
819
819
|
}, this._handleCollectionPropertiesUpdate = (p) => {
|
|
820
820
|
if (!this.isConnected) return;
|
|
821
821
|
this._flushOutputItems();
|
|
822
|
-
let H = this.uploadCollection,
|
|
822
|
+
let H = this.uploadCollection, W = [...new Set(Object.entries(p).filter(([p]) => [
|
|
823
823
|
"uploadError",
|
|
824
824
|
"fileInfo",
|
|
825
825
|
"cdnUrl",
|
|
826
826
|
"cdnUrlModifiers"
|
|
827
827
|
].includes(p)).flatMap(([, p]) => [...p]))];
|
|
828
|
-
if (
|
|
828
|
+
if (W.length > 0 && setTimeout(() => {
|
|
829
829
|
if (!this.isConnected) return;
|
|
830
|
-
let H =
|
|
831
|
-
H.length > 0 && this.validationManager.runFileValidators("upload", H), this.validationManager.runFileValidators("change",
|
|
830
|
+
let H = W.filter((H) => p.fileInfo?.has(H) && !!PubSub.getCtx(H)?.store.fileInfo);
|
|
831
|
+
H.length > 0 && this.validationManager.runFileValidators("upload", H), this.validationManager.runFileValidators("change", W);
|
|
832
832
|
}), p.uploadProgress) {
|
|
833
833
|
for (let H of p.uploadProgress) {
|
|
834
834
|
let p = PubSub.getCtx(H);
|
|
835
835
|
if (!p) continue;
|
|
836
|
-
let { isUploading:
|
|
837
|
-
|
|
836
|
+
let { isUploading: W, silent: G } = p.store;
|
|
837
|
+
W && !G && this.emit(EventType.FILE_UPLOAD_PROGRESS, this.api.getOutputItem(H));
|
|
838
838
|
}
|
|
839
839
|
this._flushCommonUploadProgress();
|
|
840
840
|
}
|
|
841
841
|
if (p.isUploading) for (let H of p.isUploading) {
|
|
842
842
|
let p = PubSub.getCtx(H);
|
|
843
843
|
if (!p) continue;
|
|
844
|
-
let { isUploading:
|
|
845
|
-
|
|
844
|
+
let { isUploading: W, silent: G } = p.store;
|
|
845
|
+
W && !G && this.emit(EventType.FILE_UPLOAD_START, this.api.getOutputItem(H));
|
|
846
846
|
}
|
|
847
847
|
if (p.fileInfo) {
|
|
848
848
|
for (let H of p.fileInfo) {
|
|
849
849
|
let p = PubSub.getCtx(H);
|
|
850
850
|
if (!p) continue;
|
|
851
|
-
let { fileInfo:
|
|
852
|
-
|
|
851
|
+
let { fileInfo: W, silent: G } = p.store;
|
|
852
|
+
W && !G && this.emit(EventType.FILE_UPLOAD_SUCCESS, this.api.getOutputItem(H));
|
|
853
853
|
}
|
|
854
854
|
this.cfg.cropPreset && this._setInitialCrop(), this.cfg.cloudImageEditorAutoOpen && this._openCloudImageEditor();
|
|
855
855
|
}
|
|
@@ -858,11 +858,11 @@ var LitUploaderBlock = class H extends LitActivityBlock {
|
|
|
858
858
|
for (let H of p.errors) {
|
|
859
859
|
let p = PubSub.getCtx(H);
|
|
860
860
|
if (!p) continue;
|
|
861
|
-
let { errors:
|
|
862
|
-
|
|
861
|
+
let { errors: W } = p.store;
|
|
862
|
+
W.length > 0 && (this.emit(EventType.FILE_UPLOAD_FAILED, this.api.getOutputItem(H)), this.emit(EventType.COMMON_UPLOAD_FAILED, () => this.api.getOutputCollectionState(), { debounce: !0 }));
|
|
863
863
|
}
|
|
864
|
-
let
|
|
865
|
-
H.size > 0 &&
|
|
864
|
+
let W = H.findItems((p) => !!p.getValue("fileInfo")), G = H.findItems((p) => p.getValue("errors").length > 0);
|
|
865
|
+
H.size > 0 && G.length === 0 && H.size === W.length && this.$["*collectionErrors"].length === 0 && this.emit(EventType.COMMON_UPLOAD_SUCCESS, this.api.getOutputCollectionState());
|
|
866
866
|
}
|
|
867
867
|
p.cdnUrl && ([...p.cdnUrl].filter((p) => !!this.uploadCollection.read(p)?.getValue("cdnUrl")).forEach((p) => {
|
|
868
868
|
this.emit(EventType.FILE_URL_CHANGED, this.api.getOutputItem(p));
|
|
@@ -873,12 +873,12 @@ var LitUploaderBlock = class H extends LitActivityBlock {
|
|
|
873
873
|
let U = this.uploadCollection.readProp(H, "uploadProgress");
|
|
874
874
|
typeof U == "number" && (p += U);
|
|
875
875
|
});
|
|
876
|
-
let
|
|
877
|
-
this.$["*commonProgress"] !==
|
|
876
|
+
let W = H.length ? Math.round(p / H.length) : 0;
|
|
877
|
+
this.$["*commonProgress"] !== W && (this.$["*commonProgress"] = W, this.emit(EventType.COMMON_UPLOAD_PROGRESS, this.api.getOutputCollectionState()));
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
get _hasCtxOwner() {
|
|
881
|
-
return this.hasBlockInCtx((
|
|
881
|
+
return this.hasBlockInCtx((H) => H instanceof p ? H._isCtxOwner && H.isConnected && H !== this : !1);
|
|
882
882
|
}
|
|
883
883
|
initCallback() {
|
|
884
884
|
super.initCallback(), this._addSharedContextInstance("*uploadCollection", () => new TypedCollection({
|
|
@@ -927,41 +927,41 @@ var LitUploaderBlock = class H extends LitActivityBlock {
|
|
|
927
927
|
this._unobserveCollectionProperties?.(), this._unobserveCollection?.(), this._unobserveCollectionProperties = void 0, this._unobserveCollection = void 0;
|
|
928
928
|
}
|
|
929
929
|
async _createGroup(p) {
|
|
930
|
-
let H = await this.getUploadClientOptions(),
|
|
930
|
+
let H = await this.getUploadClientOptions(), W = p.allEntries.map((p) => p.uuid + (p.cdnUrlModifiers ? `/${p.cdnUrlModifiers}` : "")), G = new AbortController(), K = await uploadFileGroup(W, {
|
|
931
931
|
...H,
|
|
932
|
-
signal:
|
|
932
|
+
signal: G.signal
|
|
933
933
|
});
|
|
934
934
|
if (this.$["*collectionState"] !== p) {
|
|
935
|
-
|
|
935
|
+
G.abort();
|
|
936
936
|
return;
|
|
937
937
|
}
|
|
938
|
-
this.$["*groupInfo"] =
|
|
939
|
-
let
|
|
940
|
-
this.emit(EventType.GROUP_CREATED,
|
|
938
|
+
this.$["*groupInfo"] = K;
|
|
939
|
+
let q = this.api.getOutputCollectionState();
|
|
940
|
+
this.emit(EventType.GROUP_CREATED, q), this.emit(EventType.CHANGE, () => this.api.getOutputCollectionState(), { debounce: !0 }), this.$["*collectionState"] = q;
|
|
941
941
|
}
|
|
942
942
|
_openCloudImageEditor() {
|
|
943
943
|
let [p] = this.uploadCollection.findItems((p) => !!p.getValue("fileInfo") && p.getValue("isImage")).map((p) => this.uploadCollection.read(p));
|
|
944
944
|
p && this.uploadCollection.size === 1 && this.cfg.useCloudImageEditor && this.hasBlockInCtx((p) => p.activityType === LitActivityBlock.activities.CLOUD_IMG_EDIT) && (this.$["*currentActivityParams"] = { internalId: p.uid }, this.$["*currentActivity"] = LitActivityBlock.activities.CLOUD_IMG_EDIT, this.modalManager?.open(LitActivityBlock.activities.CLOUD_IMG_EDIT));
|
|
945
945
|
}
|
|
946
946
|
_setInitialCrop() {
|
|
947
|
-
let
|
|
948
|
-
if (
|
|
949
|
-
let [
|
|
950
|
-
for (let
|
|
951
|
-
let
|
|
952
|
-
if (!
|
|
953
|
-
console.warn("Failed to get image info for entry",
|
|
947
|
+
let p = parseCropPreset(this.cfg.cropPreset);
|
|
948
|
+
if (p) {
|
|
949
|
+
let [H] = p, U = this.uploadCollection.findItems((p) => !!p.getValue("fileInfo") && p.getValue("isImage") && !p.getValue("cdnUrlModifiers")?.includes("/crop/")).map((p) => this.uploadCollection.read(p)).filter(Boolean);
|
|
950
|
+
for (let p of U) {
|
|
951
|
+
let U = p.getValue("fileInfo");
|
|
952
|
+
if (!U || !U.imageInfo) {
|
|
953
|
+
console.warn("Failed to get image info for entry", p.uid);
|
|
954
954
|
continue;
|
|
955
955
|
}
|
|
956
|
-
let { width:
|
|
957
|
-
if (!
|
|
958
|
-
console.warn("Failed to get cdnUrl for entry",
|
|
956
|
+
let { width: W, height: G } = U.imageInfo, K = calculateMaxCenteredCropFrame(W, G, typeof H?.width == "number" && typeof H?.height == "number" && H.width > 0 && H.height > 0 ? H.width / H.height : 1), q = createCdnUrlModifiers(`crop/${K.width}x${K.height}/${K.x},${K.y}`, "preview"), J = p.getValue("cdnUrl");
|
|
957
|
+
if (!J) {
|
|
958
|
+
console.warn("Failed to get cdnUrl for entry", p.uid);
|
|
959
959
|
continue;
|
|
960
960
|
}
|
|
961
|
-
|
|
962
|
-
cdnUrlModifiers:
|
|
963
|
-
cdnUrl: createCdnUrl(
|
|
964
|
-
}), this.uploadCollection.size === 1 && this.cfg.useCloudImageEditor && this.hasBlockInCtx((p) => p.activityType === LitActivityBlock.activities.CLOUD_IMG_EDIT) && (this.$["*currentActivityParams"] = { internalId:
|
|
961
|
+
p.setMultipleValues({
|
|
962
|
+
cdnUrlModifiers: q,
|
|
963
|
+
cdnUrl: createCdnUrl(J, q)
|
|
964
|
+
}), this.uploadCollection.size === 1 && this.cfg.useCloudImageEditor && this.hasBlockInCtx((p) => p.activityType === LitActivityBlock.activities.CLOUD_IMG_EDIT) && (this.$["*currentActivityParams"] = { internalId: p.uid }, this.$["*currentActivity"] = LitActivityBlock.activities.CLOUD_IMG_EDIT, this.modalManager?.open(LitActivityBlock.activities.CLOUD_IMG_EDIT));
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
}
|
|
@@ -995,4 +995,4 @@ var LitUploaderBlock = class H extends LitActivityBlock {
|
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
997
|
LitUploaderBlock.extSrcList = Object.freeze({ ...ExternalUploadSource }), LitUploaderBlock.sourceTypes = Object.freeze({ ...UploadSource });
|
|
998
|
-
export { LitActivityBlock as n, LitUploaderBlock as t };
|
|
998
|
+
export { LitActivityBlock as n, applyStyles as r, LitUploaderBlock as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.28.0-alpha.1 (MIT)
|
|
4
4
|
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-
|
|
5
|
+
* Built: 2026-03-02T20:26:07.910Z
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { c as UploadSource } from "./plugins-
|
|
9
|
-
import { n as LitActivityBlock, t as LitUploaderBlock } from "./LitUploaderBlock-
|
|
7
|
+
import { I as InternalEventType, lt as __decorate } from "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { c as UploadSource } from "./plugins-CGUls7EV.js";
|
|
9
|
+
import { n as LitActivityBlock, t as LitUploaderBlock } from "./LitUploaderBlock-LxeOZ0ya.js";
|
|
10
10
|
import { html } from "lit";
|
|
11
11
|
import { state } from "lit/decorators.js";
|
|
12
12
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.28.0-alpha.1 (MIT)
|
|
4
|
+
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
+
* Built: 2026-03-02T20:26:07.910Z
|
|
6
|
+
*/
|
|
7
|
+
import "./Icon-tXRTvEF2.js";
|
|
8
|
+
import "./ActivityHeader-R6Mlx-dA.js";
|
|
9
|
+
import { t as UrlSource } from "./UrlSource-BkyX00I2.js";
|
|
10
|
+
export { UrlSource };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
uc-url-source {
|
|
3
|
+
display: block;
|
|
4
|
+
background-color: var(--uc-background);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
uc-url-source > .uc-content {
|
|
8
|
+
display: grid;
|
|
9
|
+
gap: 4px;
|
|
10
|
+
grid-template-columns: 1fr min-content;
|
|
11
|
+
padding: var(--uc-padding);
|
|
12
|
+
padding-top: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
uc-url-source .uc-url-input {
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@layer uc.components {
|
|
2
|
+
uc-url-source {
|
|
3
|
+
display: block;
|
|
4
|
+
background-color: var(--uc-background);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
uc-url-source > .uc-content {
|
|
8
|
+
display: grid;
|
|
9
|
+
gap: 4px;
|
|
10
|
+
grid-template-columns: 1fr min-content;
|
|
11
|
+
padding: var(--uc-padding);
|
|
12
|
+
padding-top: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
uc-url-source .uc-url-input {
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.28.0-alpha.1 (MIT)
|
|
4
4
|
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-
|
|
5
|
+
* Built: 2026-03-02T20:26:07.910Z
|
|
6
6
|
*/
|
|
7
|
-
import { n as loadFileUploaderFrom, t as UC_WINDOW_KEY } from "../loadFileUploaderFrom-
|
|
7
|
+
import { n as loadFileUploaderFrom, t as UC_WINDOW_KEY } from "../loadFileUploaderFrom-Bfz8L3VB.js";
|
|
8
8
|
export { UC_WINDOW_KEY, loadFileUploaderFrom };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.28.0-alpha.1 (MIT)
|
|
4
|
+
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
+
* Built: 2026-03-02T20:26:07.910Z
|
|
6
|
+
*/
|
|
7
|
+
import { o as cameraPlugin } from "./plugins-CGUls7EV.js";
|
|
8
|
+
export { cameraPlugin };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Package: @uploadcare/file-uploader@1.28.0-alpha.
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.28.0-alpha.1 (MIT)
|
|
4
4
|
* License: https://github.com/uploadcare/blob/main/LICENSE
|
|
5
|
-
* Built: 2026-03-
|
|
5
|
+
* Built: 2026-03-02T20:26:07.910Z
|
|
6
6
|
*/
|
|
7
|
-
import { t as Icon } from "./Icon-
|
|
8
|
-
import { m as defineComponents } from "./plugins-
|
|
9
|
-
import { t as Config } from "./Config-
|
|
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-
|
|
7
|
+
import { t as Icon } from "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { m as defineComponents } from "./plugins-CGUls7EV.js";
|
|
9
|
+
import { t as Config } from "./Config-DKOromHY.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-DcVoIRb3.js";
|
|
11
11
|
export { BtnUi, CloudImageEditor, CloudImageEditorBlock, Config, CropFrame, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, Icon, LineLoaderUi, PresenceToggle, SliderUi, defineComponents };
|