@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
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
@layer uc.components {
|
|
2
|
+
uc-select {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
uc-select select {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
height: var(--uc-button-size);
|
|
12
|
+
padding: 0 14px;
|
|
13
|
+
font-size: 1em;
|
|
14
|
+
font-family: inherit;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: var(--uc-radius);
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
user-select: none;
|
|
20
|
+
transition: background-color var(--uc-transition);
|
|
21
|
+
color: var(--uc-secondary-foreground);
|
|
22
|
+
background-color: var(--uc-secondary);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@layer uc.components {
|
|
26
|
+
uc-camera-source {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
max-height: 100%;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
background-color: var(--uc-background);
|
|
35
|
+
border-radius: var(--uc-radius);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[uc-modal] > dialog:has([activity="camera"][active]) {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
uc-camera-source video {
|
|
44
|
+
display: block;
|
|
45
|
+
width: 100%;
|
|
46
|
+
max-height: 100%;
|
|
47
|
+
object-fit: contain;
|
|
48
|
+
object-position: center center;
|
|
49
|
+
background-color: var(--uc-muted);
|
|
50
|
+
border-radius: var(--uc-radius);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
uc-camera-source .uc-toolbar {
|
|
54
|
+
position: absolute;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
width: 100%;
|
|
59
|
+
padding: var(--uc-padding);
|
|
60
|
+
background-color: var(--uc-background);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
uc-camera-source .uc-content {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex: 1;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
width: 100%;
|
|
68
|
+
height: 100%;
|
|
69
|
+
padding: var(--uc-padding);
|
|
70
|
+
padding-top: 0;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
uc-camera-source .uc-message-box {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: 40px;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
padding: 40px 40px 0;
|
|
81
|
+
color: var(--uc-foreground);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
uc-camera-source .uc-message-box button {
|
|
85
|
+
color: var(--uc-primary-foreground);
|
|
86
|
+
background-color: var(--uc-primary);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
uc-camera-source .uc-shot-btn {
|
|
90
|
+
width: 58px;
|
|
91
|
+
height: 58px;
|
|
92
|
+
color: var(--uc-background);
|
|
93
|
+
background-color: var(--uc-primary-light);
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
opacity: 0.85;
|
|
96
|
+
transition:
|
|
97
|
+
bottom var(--uc-transition),
|
|
98
|
+
opacity var(--uc-transition),
|
|
99
|
+
transform var(--uc-transition);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
uc-camera-source .uc-shot-btn:hover {
|
|
103
|
+
transform: scale(1.05);
|
|
104
|
+
opacity: 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
uc-camera-source .uc-shot-btn:active {
|
|
108
|
+
transform: scale(1);
|
|
109
|
+
opacity: 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
uc-camera-source .uc-shot-btn[disabled] {
|
|
113
|
+
bottom: -80px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
uc-camera-source .uc-shot-btn uc-icon svg {
|
|
117
|
+
width: 20px;
|
|
118
|
+
height: 20px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
uc-camera-source .uc-controls {
|
|
122
|
+
position: relative;
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
justify-content: space-between;
|
|
127
|
+
padding: 0 var(--uc-padding) var(--uc-padding);
|
|
128
|
+
min-height: 74px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
uc-camera-source:not(.uc-initialized) .uc-controls {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
uc-camera-source .uc-switcher {
|
|
136
|
+
display: flex;
|
|
137
|
+
gap: calc(var(--uc-padding) / 2);
|
|
138
|
+
}
|
|
139
|
+
uc-camera-source .uc-switch.uc-active {
|
|
140
|
+
background-color: var(--uc-secondary);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
uc-camera-source .uc-camera-actions {
|
|
144
|
+
display: flex;
|
|
145
|
+
justify-content: center;
|
|
146
|
+
align-items: center;
|
|
147
|
+
gap: 5px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
uc-camera-source .uc-stop-record {
|
|
151
|
+
background-color: var(--uc-destructive-foreground-light);
|
|
152
|
+
opacity: 1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:where(uc-camera-source:is(.uc-recording)) .uc-recording-timer uc-icon {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where(uc-camera-source:is(.uc-recording)) .uc-recording-timer {
|
|
160
|
+
pointer-events: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
uc-camera-source .uc-recording-timer {
|
|
164
|
+
z-index: 1;
|
|
165
|
+
position: relative;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:where(uc-camera-source) .uc-recording-timer uc-icon {
|
|
170
|
+
width: 10px;
|
|
171
|
+
height: 10px;
|
|
172
|
+
margin-right: 10px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
uc-camera-source .uc-recording-timer .uc-line {
|
|
176
|
+
position: absolute;
|
|
177
|
+
content: "";
|
|
178
|
+
bottom: 0;
|
|
179
|
+
left: 0;
|
|
180
|
+
right: 0;
|
|
181
|
+
height: 2px;
|
|
182
|
+
background-color: var(--uc-foreground-light);
|
|
183
|
+
transform: scaleX(0);
|
|
184
|
+
transform-origin: left;
|
|
185
|
+
transition: transform var(--uc-transition);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
uc-camera-source .uc-btn-microphone {
|
|
189
|
+
z-index: 1;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
uc-camera-source .uc-select {
|
|
193
|
+
display: flex;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
uc-camera-source .uc-audio-select {
|
|
197
|
+
width: 98px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
uc-camera-source .uc-audio-select select {
|
|
201
|
+
width: 100%;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
uc-camera-source .uc-camera-action {
|
|
205
|
+
position: absolute;
|
|
206
|
+
inset: 0 var(--uc-padding) var(--uc-padding);
|
|
207
|
+
margin: 0 auto;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -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 { f as deserializeCsv, p as serializeCsv } from "./plugins-
|
|
9
|
-
import { n as PACKAGE_VERSION, t as PACKAGE_NAME } from "./env-
|
|
7
|
+
import { C as MIN_CROP_SIZE, D as THUMB_STROKE_WIDTH, E as THUMB_SIDE_SIZE, G as ALL_CROP_OPERATIONS, I as InternalEventType, J as COLOR_OPERATIONS_CONFIG, K as ALL_FILTERS, Q as transformationsToOperations, S as MAX_INTERACTION_SIZE, T as THUMB_CORNER_SIZE, W as ALL_COLOR_OPERATIONS, X as COMMON_OPERATIONS, Y as TabId, Z as operationsToTransformations, _ as sidePath, a as clamp, b as GUIDE_STROKE_WIDTH, c as createSvgNode, d as moveRect, et as createCdnUrl, f as rectContainsPoint, g as setSvgNodeAttrs, h as roundRect, it as extractUuid, j as LitBlock, l as isRectInsideRect, lt as __decorate, m as rotateSize, n as getClosestAspectRatio, nt as createOriginalUrl, o as constraintRect, p as resizeRect, q as ALL_TABS, r as parseCropPreset, rt as extractOperations, s as cornerPath, st as UID, tt as createCdnUrlModifiers, u as isRectMatchesAspectRatio, ut as debounce, v as thumbCursor, w as MIN_INTERACTION_SIZE, x as GUIDE_THIRD, y as CROP_PADDING } from "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { f as deserializeCsv, p as serializeCsv } from "./plugins-CGUls7EV.js";
|
|
9
|
+
import { n as PACKAGE_VERSION, t as PACKAGE_NAME } from "./env-mM-ksNPq.js";
|
|
10
10
|
import { html, nothing } from "lit";
|
|
11
11
|
import { property, state } from "lit/decorators.js";
|
|
12
12
|
import { unsafeSVG } from "lit/directives/unsafe-svg.js";
|
|
@@ -15,21 +15,7 @@ import { styleMap } from "lit/directives/style-map.js";
|
|
|
15
15
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
16
16
|
import { when } from "lit/directives/when.js";
|
|
17
17
|
import { classMap } from "lit/directives/class-map.js";
|
|
18
|
-
const
|
|
19
|
-
let V = !1, H, U = 0, W = ((...W) => {
|
|
20
|
-
V ? (H && clearTimeout(H), H = setTimeout(() => {
|
|
21
|
-
Date.now() - U >= B && (d(...W), U = Date.now());
|
|
22
|
-
}, Math.max(B - (Date.now() - U), 0))) : (d(...W), U = Date.now(), V = !0);
|
|
23
|
-
});
|
|
24
|
-
return Object.defineProperty(W, "cancel", {
|
|
25
|
-
configurable: !1,
|
|
26
|
-
writable: !1,
|
|
27
|
-
enumerable: !1,
|
|
28
|
-
value: () => {
|
|
29
|
-
H && clearTimeout(H);
|
|
30
|
-
}
|
|
31
|
-
}), W;
|
|
32
|
-
}, TRANSPARENT_PIXEL_SRC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
|
|
18
|
+
const TRANSPARENT_PIXEL_SRC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
|
|
33
19
|
function preloadImage(d) {
|
|
34
20
|
let B = new Image();
|
|
35
21
|
return {
|
|
@@ -59,6 +45,21 @@ function batchPreloadImages(d) {
|
|
|
59
45
|
}
|
|
60
46
|
};
|
|
61
47
|
}
|
|
48
|
+
const throttle = (d, B) => {
|
|
49
|
+
let V = !1, H, U = 0, W = ((...W) => {
|
|
50
|
+
V ? (H && clearTimeout(H), H = setTimeout(() => {
|
|
51
|
+
Date.now() - U >= B && (d(...W), U = Date.now());
|
|
52
|
+
}, Math.max(B - (Date.now() - U), 0))) : (d(...W), U = Date.now(), V = !0);
|
|
53
|
+
});
|
|
54
|
+
return Object.defineProperty(W, "cancel", {
|
|
55
|
+
configurable: !1,
|
|
56
|
+
writable: !1,
|
|
57
|
+
enumerable: !1,
|
|
58
|
+
value: () => {
|
|
59
|
+
H && clearTimeout(H);
|
|
60
|
+
}
|
|
61
|
+
}), W;
|
|
62
|
+
};
|
|
62
63
|
function normalize(...d) {
|
|
63
64
|
return d.reduce((d, B) => {
|
|
64
65
|
if (typeof B == "string") return d[B] = !0, d;
|
|
@@ -80,7 +81,7 @@ const parseTabs = (d) => {
|
|
|
80
81
|
let B = deserializeCsv(d).filter(isTabIdValue);
|
|
81
82
|
return B.length === 0 ? ALL_TABS : B;
|
|
82
83
|
};
|
|
83
|
-
function initState(
|
|
84
|
+
function initState(d) {
|
|
84
85
|
return {
|
|
85
86
|
"*originalUrl": null,
|
|
86
87
|
"*loadingOperations": /* @__PURE__ */ new Map(),
|
|
@@ -96,34 +97,34 @@ function initState(B) {
|
|
|
96
97
|
"*tabList": ALL_TABS,
|
|
97
98
|
"*tabId": TabId.CROP,
|
|
98
99
|
"*on.retryNetwork": () => {
|
|
99
|
-
let
|
|
100
|
-
for (let
|
|
101
|
-
let
|
|
102
|
-
|
|
100
|
+
let B = d.querySelectorAll("img");
|
|
101
|
+
for (let d of B) {
|
|
102
|
+
let B = d.src;
|
|
103
|
+
d.src = TRANSPARENT_PIXEL_SRC, d.src = B;
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
+
d.$["*networkProblems"] = !1;
|
|
105
106
|
},
|
|
106
|
-
"*on.apply": (
|
|
107
|
-
if (!
|
|
108
|
-
let
|
|
109
|
-
if (!
|
|
107
|
+
"*on.apply": (B) => {
|
|
108
|
+
if (!B) return;
|
|
109
|
+
let V = d.$["*originalUrl"];
|
|
110
|
+
if (!V) {
|
|
110
111
|
console.warn("Original URL is null, cannot apply transformations");
|
|
111
112
|
return;
|
|
112
113
|
}
|
|
113
|
-
let
|
|
114
|
-
originalUrl:
|
|
115
|
-
cdnUrlModifiers:
|
|
116
|
-
cdnUrl: createCdnUrl(
|
|
117
|
-
transformations:
|
|
114
|
+
let H = createCdnUrlModifiers(transformationsToOperations(B), "preview"), U = {
|
|
115
|
+
originalUrl: V,
|
|
116
|
+
cdnUrlModifiers: H,
|
|
117
|
+
cdnUrl: createCdnUrl(V, H),
|
|
118
|
+
transformations: B
|
|
118
119
|
};
|
|
119
|
-
|
|
120
|
-
detail:
|
|
120
|
+
d.dispatchEvent(new CustomEvent("apply", {
|
|
121
|
+
detail: U,
|
|
121
122
|
bubbles: !0,
|
|
122
123
|
composed: !0
|
|
123
|
-
})),
|
|
124
|
+
})), d.remove();
|
|
124
125
|
},
|
|
125
126
|
"*on.cancel": () => {
|
|
126
|
-
|
|
127
|
+
d.remove(), d.dispatchEvent(new CustomEvent("cancel", {
|
|
127
128
|
bubbles: !0,
|
|
128
129
|
composed: !0
|
|
129
130
|
}));
|
|
@@ -278,9 +279,9 @@ function pick(d, B) {
|
|
|
278
279
|
}
|
|
279
280
|
return V;
|
|
280
281
|
}
|
|
281
|
-
function viewerImageSrc(B, V
|
|
282
|
-
let
|
|
283
|
-
return createCdnUrl(
|
|
282
|
+
function viewerImageSrc(d, B, V) {
|
|
283
|
+
let H = window.devicePixelRatio, U = Math.min(Math.ceil(B * H), 3e3), W = H >= 2 ? "lightest" : "normal";
|
|
284
|
+
return createCdnUrl(d, createCdnUrlModifiers(COMMON_OPERATIONS, transformationsToOperations(V), `quality/${W}`, `stretch/off/-/resize/${U}x`, `@clib/${PACKAGE_NAME}/${PACKAGE_VERSION}/uc-cloud-image-editor/`));
|
|
284
285
|
}
|
|
285
286
|
var CropFrame = class extends LitBlock {
|
|
286
287
|
constructor(...d) {
|
|
@@ -943,9 +944,9 @@ var EditorImageFader = class extends LitBlock {
|
|
|
943
944
|
}
|
|
944
945
|
_update(d, B) {
|
|
945
946
|
this._operation = d, this._value = B;
|
|
946
|
-
let { zero: V } = COLOR_OPERATIONS_CONFIG[d], H = this._keypoints.map((d) => d.value), U = calculateOpacities(H, B, V),
|
|
947
|
+
let { zero: V } = COLOR_OPERATIONS_CONFIG[d], H = this._keypoints.map((d) => d.value), U = calculateOpacities(H, B, V), G = calculateZIndices(H, V);
|
|
947
948
|
this._keypoints.forEach((d, B) => {
|
|
948
|
-
let V = U[B], H =
|
|
949
|
+
let V = U[B], H = G[B];
|
|
949
950
|
typeof V == "number" && (d.opacity = V), typeof H == "number" && (d.zIndex = H);
|
|
950
951
|
}), this._flush();
|
|
951
952
|
}
|
|
@@ -1204,9 +1205,9 @@ var EditorSlider = class extends LitBlock {
|
|
|
1204
1205
|
max: U,
|
|
1205
1206
|
zero: V
|
|
1206
1207
|
};
|
|
1207
|
-
let
|
|
1208
|
+
let G = this.$["*editorTransformations"][d];
|
|
1208
1209
|
if (d === "filter") {
|
|
1209
|
-
let d = Number(U), B =
|
|
1210
|
+
let d = Number(U), B = G;
|
|
1210
1211
|
if (B) {
|
|
1211
1212
|
let { name: V, amount: H } = B;
|
|
1212
1213
|
d = V === this.state.filter ? H : U;
|
|
@@ -1218,11 +1219,11 @@ var EditorSlider = class extends LitBlock {
|
|
|
1218
1219
|
};
|
|
1219
1220
|
return;
|
|
1220
1221
|
}
|
|
1221
|
-
let
|
|
1222
|
+
let K = G === void 0 ? V : G;
|
|
1222
1223
|
this.state = {
|
|
1223
1224
|
...this.state,
|
|
1224
|
-
value:
|
|
1225
|
-
defaultValue:
|
|
1225
|
+
value: K,
|
|
1226
|
+
defaultValue: K
|
|
1226
1227
|
};
|
|
1227
1228
|
}
|
|
1228
1229
|
apply() {
|
|
@@ -1474,11 +1475,11 @@ var EditorFilterControl = class extends EditorButtonControl {
|
|
|
1474
1475
|
this.telemetryManager.sendEventCloudImageEditor(d, this.$["*tabId"], { operation: parseFilterValue(this.$["*operationTooltip"]) }), this.$["*currentFilter"] = this._filter;
|
|
1475
1476
|
}
|
|
1476
1477
|
_previewSrc() {
|
|
1477
|
-
let
|
|
1478
|
-
return
|
|
1478
|
+
let d = parseInt(window.getComputedStyle(this).getPropertyValue("--l-base-min-width"), 10), B = Number.isFinite(d) && d > 0 ? d : this._iconSize || 32, V = window.devicePixelRatio, H = Math.ceil(V * B), U = V >= 2 ? "lightest" : "normal", W = { ...this.$["*editorTransformations"] };
|
|
1479
|
+
return W[this._operation] = this._filter === "original" ? void 0 : {
|
|
1479
1480
|
name: this._filter,
|
|
1480
1481
|
amount: 100
|
|
1481
|
-
}, createCdnUrl(this._originalUrl, createCdnUrlModifiers(COMMON_OPERATIONS, transformationsToOperations(
|
|
1482
|
+
}, createCdnUrl(this._originalUrl, createCdnUrlModifiers(COMMON_OPERATIONS, transformationsToOperations(W), `quality/${U}`, `scale_crop/${H}x${H}/center`, `@clib/${PACKAGE_NAME}/${PACKAGE_VERSION}/uc-cloud-image-editor/`));
|
|
1482
1483
|
}
|
|
1483
1484
|
async _observerCallback(d, B) {
|
|
1484
1485
|
d[0]?.isIntersecting ? await this._loadPreview(B) : this._cancelPreload?.();
|
|
@@ -2094,11 +2095,11 @@ var DEFAULT_TABS = serializeCsv([...ALL_TABS]), CloudImageEditorBlock = class ex
|
|
|
2094
2095
|
} else throw Error("No UUID nor CDN URL provided");
|
|
2095
2096
|
this.$["*tabId"] === TabId.CROP ? this.$["*cropperEl"]?.deactivate({ reset: !0 }) : this.$["*faderEl"]?.deactivate();
|
|
2096
2097
|
try {
|
|
2097
|
-
let
|
|
2098
|
+
let d = this.$["*originalUrl"], B = await this.proxyUrl(createCdnUrl(d, createCdnUrlModifiers("json"))), { width: V, height: H } = await fetch(B).then((d) => d.json());
|
|
2098
2099
|
this.$["*imageSize"] = {
|
|
2099
|
-
width:
|
|
2100
|
-
height:
|
|
2101
|
-
}, this.$["*tabId"] === TabId.CROP ? this.$["*cropperEl"]?.activate(this.$["*imageSize"]) : this.$["*faderEl"]?.activate({ url:
|
|
2100
|
+
width: V,
|
|
2101
|
+
height: H
|
|
2102
|
+
}, this.$["*tabId"] === TabId.CROP ? this.$["*cropperEl"]?.activate(this.$["*imageSize"]) : this.$["*faderEl"]?.activate({ url: d });
|
|
2102
2103
|
} catch (d) {
|
|
2103
2104
|
d && (this.telemetryManager.sendEventError(d, "cloud editor image. Failed to load image info"), console.error("Failed to load image info", d));
|
|
2104
2105
|
}
|
|
@@ -2114,16 +2115,16 @@ var DEFAULT_TABS = serializeCsv([...ALL_TABS]), CloudImageEditorBlock = class ex
|
|
|
2114
2115
|
}
|
|
2115
2116
|
this.classList.add("uc-editor_ON"), this.sub("*networkProblems", (d) => {
|
|
2116
2117
|
this._hasNetworkProblems = !!d;
|
|
2117
|
-
}), this.sub("*editorTransformations", (
|
|
2118
|
-
if (Object.keys(
|
|
2119
|
-
let
|
|
2120
|
-
originalUrl:
|
|
2121
|
-
cdnUrlModifiers:
|
|
2122
|
-
cdnUrl: createCdnUrl(
|
|
2123
|
-
transformations:
|
|
2118
|
+
}), this.sub("*editorTransformations", (d) => {
|
|
2119
|
+
if (Object.keys(d).length === 0) return;
|
|
2120
|
+
let B = this.$["*originalUrl"], V = createCdnUrlModifiers(transformationsToOperations(d), "preview"), H = {
|
|
2121
|
+
originalUrl: B,
|
|
2122
|
+
cdnUrlModifiers: V,
|
|
2123
|
+
cdnUrl: createCdnUrl(B, V),
|
|
2124
|
+
transformations: d
|
|
2124
2125
|
};
|
|
2125
2126
|
this.dispatchEvent(new CustomEvent("change", {
|
|
2126
|
-
detail:
|
|
2127
|
+
detail: H,
|
|
2127
2128
|
bubbles: !0,
|
|
2128
2129
|
composed: !0
|
|
2129
2130
|
}));
|
|
@@ -2159,4 +2160,4 @@ var CloudImageEditor = class extends CloudImageEditorBlock {
|
|
|
2159
2160
|
super.initCallback(), this.telemetryManager.sendEvent({ eventType: InternalEventType.INIT_SOLUTION }), this.a11y?.registerBlock(this);
|
|
2160
2161
|
}
|
|
2161
2162
|
};
|
|
2162
|
-
export { PresenceToggle as _, EditorOperationControl as a, EditorAspectRatioButtonControl as c, SliderUi as d, EditorImageFader as f, LineLoaderUi as g, BtnUi as h, EditorScroller as i, EditorFreeformButtonControl as l, CropFrame as m, CloudImageEditorBlock as n, EditorFilterControl as o, EditorImageCropper as p, EditorToolbar as r, EditorCropButtonControl as s, CloudImageEditor as t, EditorSlider as u, throttle as v };
|
|
2163
|
+
export { PresenceToggle as _, EditorOperationControl as a, TRANSPARENT_PIXEL_SRC as b, EditorAspectRatioButtonControl as c, SliderUi as d, EditorImageFader as f, LineLoaderUi as g, BtnUi as h, EditorScroller as i, EditorFreeformButtonControl as l, CropFrame as m, CloudImageEditorBlock as n, EditorFilterControl as o, EditorImageCropper as p, EditorToolbar as r, EditorCropButtonControl as s, CloudImageEditor as t, EditorSlider as u, throttle as v, preloadImage as y };
|
|
@@ -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 {
|
|
8
|
-
import { n as LitActivityBlock, t as LitUploaderBlock } from "./LitUploaderBlock-
|
|
7
|
+
import { lt as __decorate } from "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { n as LitActivityBlock, t as LitUploaderBlock } from "./LitUploaderBlock-LxeOZ0ya.js";
|
|
9
9
|
import { html, nothing } from "lit";
|
|
10
10
|
import { state } from "lit/decorators.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
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 "./Icon-
|
|
8
|
-
import { t as CloudImageEditorActivity } from "./CloudImageEditorActivity-
|
|
7
|
+
import "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { t as CloudImageEditorActivity } from "./CloudImageEditorActivity-Csij4nlC.js";
|
|
9
9
|
export { CloudImageEditorActivity };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
uc-cloud-image-editor-activity {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
background-color: var(--uc-background);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[uc-modal] > dialog:has([activity="cloud-image-edit"][active]) {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@layer uc.components {
|
|
2
|
+
uc-cloud-image-editor-activity {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
background-color: var(--uc-background);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[uc-modal] > dialog:has([activity="cloud-image-edit"][active]) {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -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 { A as CameraSourceTypes, H as
|
|
8
|
-
import { f as deserializeCsv, p as serializeCsv, s as ExternalUploadSource } from "./plugins-
|
|
7
|
+
import { A as CameraSourceTypes, H as DEFAULT_CDN_CNAME, O as warnOnce, U as initialConfig, at as sharedConfigKey, j as LitBlock, ut as debounce } from "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { f as deserializeCsv, p as serializeCsv, s as ExternalUploadSource } from "./plugins-CGUls7EV.js";
|
|
9
9
|
import { getPrefixedCdnBaseAsync, isPrefixedCdnBase } from "@uploadcare/cname-prefix/async";
|
|
10
10
|
const toKebabCase = (p) => p.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.map((p) => p.toLowerCase()).join("-");
|
|
11
11
|
var ASSERTIONS = [
|
|
@@ -83,7 +83,7 @@ var defineComputedProperty = (p) => p, withLazyPlugins = async ({ plugins: p, en
|
|
|
83
83
|
pluginId: "cloud-image-editor",
|
|
84
84
|
isEnabled: () => !!N(),
|
|
85
85
|
load: async () => {
|
|
86
|
-
let { cloudImageEditorPlugin: p } = await import("./cloudImageEditorPlugin-
|
|
86
|
+
let { cloudImageEditorPlugin: p } = await import("./cloudImageEditorPlugin-FjUgbMK3.js");
|
|
87
87
|
return p;
|
|
88
88
|
}
|
|
89
89
|
},
|
|
@@ -91,7 +91,7 @@ var defineComputedProperty = (p) => p, withLazyPlugins = async ({ plugins: p, en
|
|
|
91
91
|
pluginId: "image-shrink",
|
|
92
92
|
isEnabled: () => !!P(),
|
|
93
93
|
load: async () => {
|
|
94
|
-
let { imageShrinkPlugin: p } = await import("./imageShrinkPlugin-
|
|
94
|
+
let { imageShrinkPlugin: p } = await import("./imageShrinkPlugin-BN6loiP2.js");
|
|
95
95
|
return p;
|
|
96
96
|
}
|
|
97
97
|
},
|
|
@@ -99,7 +99,7 @@ var defineComputedProperty = (p) => p, withLazyPlugins = async ({ plugins: p, en
|
|
|
99
99
|
pluginId: "camera",
|
|
100
100
|
isEnabled: () => deserializeCsv(F()).includes("camera"),
|
|
101
101
|
load: async () => {
|
|
102
|
-
let { cameraPlugin: p } = await import("./cameraPlugin-
|
|
102
|
+
let { cameraPlugin: p } = await import("./cameraPlugin-weRKO7eG.js");
|
|
103
103
|
return p;
|
|
104
104
|
}
|
|
105
105
|
},
|
|
@@ -107,7 +107,7 @@ var defineComputedProperty = (p) => p, withLazyPlugins = async ({ plugins: p, en
|
|
|
107
107
|
pluginId: "instagram",
|
|
108
108
|
isEnabled: () => deserializeCsv(F()).includes("instagram"),
|
|
109
109
|
load: async () => {
|
|
110
|
-
let { instagramPlugin: p } = await import("./instagramPlugin-
|
|
110
|
+
let { instagramPlugin: p } = await import("./instagramPlugin-CXRm8MGL.js");
|
|
111
111
|
return p;
|
|
112
112
|
}
|
|
113
113
|
},
|
|
@@ -115,7 +115,7 @@ var defineComputedProperty = (p) => p, withLazyPlugins = async ({ plugins: p, en
|
|
|
115
115
|
pluginId: "external-sources",
|
|
116
116
|
isEnabled: () => Object.values(ExternalUploadSource).some((p) => deserializeCsv(F()).includes(p)),
|
|
117
117
|
load: async () => {
|
|
118
|
-
let { externalSourcesPlugin: p } = await import("./externalSourcesPlugin-
|
|
118
|
+
let { externalSourcesPlugin: p } = await import("./externalSourcesPlugin-CMBmLT8S.js");
|
|
119
119
|
return p;
|
|
120
120
|
}
|
|
121
121
|
},
|
|
@@ -123,7 +123,7 @@ var defineComputedProperty = (p) => p, withLazyPlugins = async ({ plugins: p, en
|
|
|
123
123
|
pluginId: "url-source",
|
|
124
124
|
isEnabled: () => deserializeCsv(F()).includes("url"),
|
|
125
125
|
load: async () => {
|
|
126
|
-
let { urlSourcePlugin: p } = await import("./urlSourcePlugin-
|
|
126
|
+
let { urlSourcePlugin: p } = await import("./urlSourcePlugin-_WdbEhq2.js");
|
|
127
127
|
return p;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -270,11 +270,11 @@ var asString = (p) => String(p), asNumber = (p) => {
|
|
|
270
270
|
qualityInsights: asBoolean,
|
|
271
271
|
pasteScope: asPasteScope
|
|
272
272
|
};
|
|
273
|
-
const normalizeConfigValue = (p,
|
|
274
|
-
if (
|
|
275
|
-
return mapping[p](
|
|
276
|
-
} catch (
|
|
277
|
-
return console.error(`Invalid value for config key "${p}".`,
|
|
273
|
+
const normalizeConfigValue = (p, N) => {
|
|
274
|
+
if (N != null) try {
|
|
275
|
+
return mapping[p](N);
|
|
276
|
+
} catch (N) {
|
|
277
|
+
return console.error(`Invalid value for config key "${p}".`, N), initialConfig[p];
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
var allConfigKeys = [...new Set(["debug", ...Object.keys(initialConfig)])];
|
|
@@ -314,12 +314,12 @@ var isComplexKey = (p) => complexConfigKeys.includes(p), plainConfigKeys = allCo
|
|
|
314
314
|
let P = this._getAttributeNames(p);
|
|
315
315
|
for (let p of P) N == null ? this.removeAttribute(p) : this.getAttribute(p) !== N.toString() && this.setAttribute(p, N.toString());
|
|
316
316
|
}
|
|
317
|
-
_flushValueToState(p,
|
|
318
|
-
let
|
|
319
|
-
if (this.$[
|
|
317
|
+
_flushValueToState(p, N) {
|
|
318
|
+
let P = sharedConfigKey(p);
|
|
319
|
+
if (this.$[P] !== N) if (N == null) {
|
|
320
320
|
let I = initialConfig[p];
|
|
321
|
-
this.$[
|
|
322
|
-
} else this.$[
|
|
321
|
+
this.$[P] = I === void 0 ? N : I;
|
|
322
|
+
} else this.$[P] = N;
|
|
323
323
|
}
|
|
324
324
|
_setValue(p, N) {
|
|
325
325
|
let P;
|
|
@@ -386,15 +386,15 @@ var isComplexKey = (p) => complexConfigKeys.includes(p), plainConfigKeys = allCo
|
|
|
386
386
|
for (let p of plainConfigKeys) this.sub(sharedConfigKey(p), (N) => {
|
|
387
387
|
this._setValue(p, N);
|
|
388
388
|
}, !1);
|
|
389
|
-
for (let
|
|
390
|
-
let
|
|
391
|
-
|
|
392
|
-
let L = Object.getOwnPropertyDescriptor(this,
|
|
393
|
-
(!L || !L.set || !L.get) && Object.defineProperty(this,
|
|
389
|
+
for (let N of allConfigKeys) {
|
|
390
|
+
let P = p[N] ?? this.$[sharedConfigKey(N)];
|
|
391
|
+
P !== initialConfig[N] && this._setValue(N, P);
|
|
392
|
+
let L = Object.getOwnPropertyDescriptor(this, N);
|
|
393
|
+
(!L || !L.set || !L.get) && Object.defineProperty(this, N, {
|
|
394
394
|
set: (p) => {
|
|
395
|
-
this._setValue(
|
|
395
|
+
this._setValue(N, p);
|
|
396
396
|
},
|
|
397
|
-
get: () => this._getValue(
|
|
397
|
+
get: () => this._getValue(N)
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
for (let p of allConfigKeys) this.sub(sharedConfigKey(p), () => {
|
package/dist/Config.css
ADDED
|
@@ -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 { t as ExternalSource } from "./ExternalSource-DVEjSkPB.js";
|
|
9
|
+
import "./ActivityHeader-R6Mlx-dA.js";
|
|
10
|
+
export { ExternalSource };
|