@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,15 +1,20 @@
|
|
|
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 { s as ExternalUploadSource } from "./plugins-
|
|
9
|
-
import { n as LitActivityBlock, t as LitUploaderBlock } from "./LitUploaderBlock-
|
|
7
|
+
import { $ as stringToArray, j as LitBlock, lt as __decorate } from "./Icon-tXRTvEF2.js";
|
|
8
|
+
import { s as ExternalUploadSource } 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";
|
|
13
|
+
var Spinner = class extends LitBlock {
|
|
14
|
+
render() {
|
|
15
|
+
return html` <div class="uc-spinner"></div> `;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
13
18
|
const getTopLevelOrigin = () => {
|
|
14
19
|
let e = globalThis.top ?? globalThis.parent ?? globalThis.self;
|
|
15
20
|
try {
|
|
@@ -19,9 +24,9 @@ const getTopLevelOrigin = () => {
|
|
|
19
24
|
}
|
|
20
25
|
};
|
|
21
26
|
var escapeRegExp = (e) => e.replace(/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
22
|
-
const wildcardRegexp = (e,
|
|
23
|
-
let
|
|
24
|
-
return RegExp(`^${
|
|
27
|
+
const wildcardRegexp = (e, g = "i") => {
|
|
28
|
+
let _ = e.split("*").map(escapeRegExp);
|
|
29
|
+
return RegExp(`^${_.join(".+")}$`, g);
|
|
25
30
|
};
|
|
26
31
|
var ucCustomProperties = [
|
|
27
32
|
"--uc-font-family",
|
|
@@ -47,54 +52,54 @@ var ucCustomProperties = [
|
|
|
47
52
|
"--uc-destructive",
|
|
48
53
|
"--uc-destructive-foreground",
|
|
49
54
|
"--uc-border"
|
|
50
|
-
], getCssValue = (e,
|
|
55
|
+
], getCssValue = (e, g) => window.getComputedStyle(e).getPropertyValue(g).trim();
|
|
51
56
|
const buildThemeDefinition = (e) => {
|
|
52
|
-
let
|
|
53
|
-
for (let
|
|
54
|
-
let
|
|
55
|
-
|
|
57
|
+
let g = {};
|
|
58
|
+
for (let _ of ucCustomProperties) {
|
|
59
|
+
let v = getCssValue(e, _);
|
|
60
|
+
v && (g[_] = v);
|
|
56
61
|
}
|
|
57
|
-
return
|
|
62
|
+
return g;
|
|
58
63
|
};
|
|
59
64
|
var MESSAGE_TYPE_WHITELIST = ["selected-files-change", "toolbar-state-change"], isWhitelistedMessage = (e) => {
|
|
60
65
|
if (!e || typeof e != "object" || !("type" in e)) return !1;
|
|
61
|
-
let
|
|
62
|
-
return !(typeof
|
|
66
|
+
let g = e.type;
|
|
67
|
+
return !(typeof g != "string" || !MESSAGE_TYPE_WHITELIST.includes(g));
|
|
63
68
|
}, MessageBridge = class {
|
|
64
|
-
constructor(e,
|
|
69
|
+
constructor(e, g) {
|
|
65
70
|
this._handlerMap = /* @__PURE__ */ new Map(), this._handleMessage = (e) => {
|
|
66
71
|
if (e.source !== this._context) return;
|
|
67
|
-
let
|
|
68
|
-
if (!isWhitelistedMessage(
|
|
69
|
-
let
|
|
70
|
-
if (
|
|
71
|
-
}, this._context = e, this._getTargetOrigin =
|
|
72
|
+
let g = e.data;
|
|
73
|
+
if (!isWhitelistedMessage(g)) return;
|
|
74
|
+
let _ = this._handlerMap.get(g.type);
|
|
75
|
+
if (_) for (let e of _) e(g);
|
|
76
|
+
}, this._context = e, this._getTargetOrigin = g, window.addEventListener("message", this._handleMessage);
|
|
72
77
|
}
|
|
73
|
-
on(e,
|
|
74
|
-
let
|
|
75
|
-
this._handlerMap.has(e) || this._handlerMap.set(e,
|
|
78
|
+
on(e, g) {
|
|
79
|
+
let _ = this._handlerMap.get(e) ?? /* @__PURE__ */ new Set();
|
|
80
|
+
this._handlerMap.has(e) || this._handlerMap.set(e, _), _.add(g);
|
|
76
81
|
}
|
|
77
82
|
send(e) {
|
|
78
|
-
let
|
|
79
|
-
this._context.postMessage(e,
|
|
83
|
+
let g = this._getTargetOrigin();
|
|
84
|
+
this._context.postMessage(e, g);
|
|
80
85
|
}
|
|
81
86
|
destroy() {
|
|
82
87
|
window.removeEventListener("message", this._handleMessage);
|
|
83
88
|
}
|
|
84
89
|
};
|
|
85
90
|
function queryString(e) {
|
|
86
|
-
let
|
|
87
|
-
for (let [
|
|
88
|
-
return
|
|
91
|
+
let g = [];
|
|
92
|
+
for (let [_, v] of Object.entries(e)) v == null || typeof v == "string" && v.length === 0 || g.push(`${_}=${encodeURIComponent(v)}`);
|
|
93
|
+
return g.join("&");
|
|
89
94
|
}
|
|
90
95
|
var SOCIAL_SOURCE_MAPPING = { [ExternalUploadSource.GDRIVE]: "ngdrive" }, ExternalSource = class extends LitUploaderBlock {
|
|
91
96
|
constructor(...e) {
|
|
92
97
|
super(...e), this.couldBeCtxOwner = !0, this._iframeRef = createRef(), this._latestSelectionSummary = null, this._selectedList = [], this._isSelectionReady = !1, this._isDoneBtnEnabled = !1, this._couldSelectAll = !1, this._couldDeselectAll = !1, this._showSelectionStatus = !1, this._showDoneBtn = !1, this._doneBtnTextClass = "uc-hidden", this._toolbarVisible = !0, this._handleDone = () => {
|
|
93
98
|
for (let e of this._selectedList) {
|
|
94
|
-
let
|
|
95
|
-
this.api.addFileFromUrl(
|
|
96
|
-
fileName:
|
|
97
|
-
source:
|
|
99
|
+
let g = this._extractUrlFromSelectedFile(e), { filename: _ } = e, { externalSourceType: v } = this.activityParams;
|
|
100
|
+
this.api.addFileFromUrl(g, {
|
|
101
|
+
fileName: _,
|
|
102
|
+
source: v
|
|
98
103
|
});
|
|
99
104
|
}
|
|
100
105
|
this.$["*currentActivity"] = LitActivityBlock.activities.UPLOAD_LIST, this.modalManager?.open(LitActivityBlock.activities.UPLOAD_LIST);
|
|
@@ -108,10 +113,10 @@ var SOCIAL_SOURCE_MAPPING = { [ExternalUploadSource.GDRIVE]: "ngdrive" }, Extern
|
|
|
108
113
|
}
|
|
109
114
|
get _counterText() {
|
|
110
115
|
if (!this._latestSelectionSummary) return "";
|
|
111
|
-
let { selectedCount: e, total:
|
|
116
|
+
let { selectedCount: e, total: g } = this._latestSelectionSummary;
|
|
112
117
|
return this.l10n("selected-count", {
|
|
113
118
|
count: e,
|
|
114
|
-
total:
|
|
119
|
+
total: g
|
|
115
120
|
});
|
|
116
121
|
}
|
|
117
122
|
get activityParams() {
|
|
@@ -134,15 +139,15 @@ var SOCIAL_SOURCE_MAPPING = { [ExternalUploadSource.GDRIVE]: "ngdrive" }, Extern
|
|
|
134
139
|
this._applyEmbedCss(e);
|
|
135
140
|
});
|
|
136
141
|
}
|
|
137
|
-
_extractUrlFromSelectedFile(
|
|
138
|
-
if (
|
|
139
|
-
let
|
|
140
|
-
for (let e of
|
|
141
|
-
let
|
|
142
|
-
for (let [e,
|
|
142
|
+
_extractUrlFromSelectedFile(g) {
|
|
143
|
+
if (g.alternatives) {
|
|
144
|
+
let _ = stringToArray(this.cfg.externalSourcesPreferredTypes);
|
|
145
|
+
for (let e of _) {
|
|
146
|
+
let _ = wildcardRegexp(e);
|
|
147
|
+
for (let [e, v] of Object.entries(g.alternatives)) if (_.test(e)) return v;
|
|
143
148
|
}
|
|
144
149
|
}
|
|
145
|
-
return
|
|
150
|
+
return g.url;
|
|
146
151
|
}
|
|
147
152
|
_handleToolbarStateChange(e) {
|
|
148
153
|
this._toolbarVisible = e.isVisible;
|
|
@@ -176,22 +181,22 @@ var SOCIAL_SOURCE_MAPPING = { [ExternalUploadSource.GDRIVE]: "ngdrive" }, Extern
|
|
|
176
181
|
});
|
|
177
182
|
}
|
|
178
183
|
_remoteUrl() {
|
|
179
|
-
let { pubkey: e, remoteTabSessionKey:
|
|
184
|
+
let { pubkey: e, remoteTabSessionKey: g, socialBaseUrl: _, multiple: v } = this.cfg, { externalSourceType: y } = this.activityParams, b = SOCIAL_SOURCE_MAPPING[y] ?? y, x = {
|
|
180
185
|
lang: this.l10n("social-source-lang")?.split("-")?.[0] || "en",
|
|
181
186
|
public_key: e,
|
|
182
187
|
images_only: "false",
|
|
183
|
-
session_key:
|
|
188
|
+
session_key: g,
|
|
184
189
|
wait_for_theme: !0,
|
|
185
|
-
multiple:
|
|
190
|
+
multiple: v.toString(),
|
|
186
191
|
origin: this.cfg.topLevelOrigin || getTopLevelOrigin(),
|
|
187
192
|
debug: this.cfg.debug
|
|
188
|
-
},
|
|
189
|
-
return
|
|
193
|
+
}, S = new URL(`/window4/${b}`, _);
|
|
194
|
+
return S.search = queryString(x), S.toString();
|
|
190
195
|
}
|
|
191
|
-
_setSelectionSummary(e,
|
|
196
|
+
_setSelectionSummary(e, g) {
|
|
192
197
|
this._latestSelectionSummary = {
|
|
193
198
|
selectedCount: e,
|
|
194
|
-
total:
|
|
199
|
+
total: g
|
|
195
200
|
};
|
|
196
201
|
}
|
|
197
202
|
_mountIframe() {
|
|
@@ -245,4 +250,4 @@ var SOCIAL_SOURCE_MAPPING = { [ExternalUploadSource.GDRIVE]: "ngdrive" }, Extern
|
|
|
245
250
|
}
|
|
246
251
|
};
|
|
247
252
|
__decorate([state()], ExternalSource.prototype, "_selectedList", void 0), __decorate([state()], ExternalSource.prototype, "_isSelectionReady", void 0), __decorate([state()], ExternalSource.prototype, "_isDoneBtnEnabled", void 0), __decorate([state()], ExternalSource.prototype, "_couldSelectAll", void 0), __decorate([state()], ExternalSource.prototype, "_couldDeselectAll", void 0), __decorate([state()], ExternalSource.prototype, "_showSelectionStatus", void 0), __decorate([state()], ExternalSource.prototype, "_showDoneBtn", void 0), __decorate([state()], ExternalSource.prototype, "_doneBtnTextClass", void 0), __decorate([state()], ExternalSource.prototype, "_toolbarVisible", void 0);
|
|
248
|
-
export { ExternalSource as t };
|
|
253
|
+
export { Spinner as n, ExternalSource as t };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
|
|
2
|
+
@keyframes uc-spinner-keyframes {
|
|
3
|
+
from {
|
|
4
|
+
transform: rotate(0deg);
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
}.uc-spinner {
|
|
10
|
+
width: 1em;
|
|
11
|
+
height: 1em;
|
|
12
|
+
border: solid 2px transparent;
|
|
13
|
+
border-top-color: currentColor;
|
|
14
|
+
border-left-color: currentColor;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
animation: uc-spinner-keyframes 400ms linear infinite;
|
|
17
|
+
}
|
|
18
|
+
uc-external-source {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
background-color: var(--uc-background);
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
[uc-modal] > dialog:has([activity="external"][active]) {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
uc-external-source > .uc-content {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: grid;
|
|
34
|
+
flex: 1;
|
|
35
|
+
grid-template-rows: 1fr min-content;
|
|
36
|
+
}
|
|
37
|
+
uc-external-source iframe {
|
|
38
|
+
display: block;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
border: none;
|
|
42
|
+
}
|
|
43
|
+
uc-external-source .uc-iframe-wrapper {
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
uc-external-source .uc-toolbar {
|
|
47
|
+
display: flex;
|
|
48
|
+
width: 100%;
|
|
49
|
+
gap: var(--uc-padding);
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
padding: var(--uc-padding);
|
|
53
|
+
border-top: 1px solid var(--uc-border);
|
|
54
|
+
}
|
|
55
|
+
uc-external-source .uc-back-btn {
|
|
56
|
+
padding-left: 0;
|
|
57
|
+
}
|
|
58
|
+
uc-external-source .uc-selection-status-box {
|
|
59
|
+
color: var(--uc-foreground);
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
}
|
|
65
|
+
uc-external-source .uc-selection-status-box button {
|
|
66
|
+
color: var(--uc-primary);
|
|
67
|
+
height: auto;
|
|
68
|
+
padding: 0;
|
|
69
|
+
background: none;
|
|
70
|
+
}
|
|
71
|
+
uc-external-source .uc-selection-status-box button:hover {
|
|
72
|
+
text-decoration: underline;
|
|
73
|
+
}
|
|
74
|
+
uc-external-source uc-activity-header {
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 100%;
|
|
77
|
+
justify-content: flex-end;
|
|
78
|
+
z-index: 1;
|
|
79
|
+
left: 0;
|
|
80
|
+
top: 0;
|
|
81
|
+
right: 0;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
uc-external-source uc-activity-header .uc-close-btn {
|
|
85
|
+
pointer-events: auto;
|
|
86
|
+
}
|
|
87
|
+
uc-external-source .uc-done-btn > span.uc-hidden {
|
|
88
|
+
visibility: hidden;
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
}
|
|
91
|
+
uc-external-source .uc-done-btn > uc-spinner {
|
|
92
|
+
position: absolute;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@layer uc.components {
|
|
2
|
+
@keyframes uc-spinner-keyframes {
|
|
3
|
+
from {
|
|
4
|
+
transform: rotate(0deg);
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.uc-spinner {
|
|
12
|
+
width: 1em;
|
|
13
|
+
height: 1em;
|
|
14
|
+
border: solid 2px transparent;
|
|
15
|
+
border-top-color: currentColor;
|
|
16
|
+
border-left-color: currentColor;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
animation: uc-spinner-keyframes 400ms linear infinite;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
@layer uc.components {
|
|
22
|
+
uc-external-source {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
background-color: var(--uc-background);
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[uc-modal] > dialog:has([activity="external"][active]) {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
uc-external-source > .uc-content {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: grid;
|
|
40
|
+
flex: 1;
|
|
41
|
+
grid-template-rows: 1fr min-content;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
uc-external-source iframe {
|
|
45
|
+
display: block;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
border: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
uc-external-source .uc-iframe-wrapper {
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
uc-external-source .uc-toolbar {
|
|
56
|
+
display: flex;
|
|
57
|
+
width: 100%;
|
|
58
|
+
gap: var(--uc-padding);
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
padding: var(--uc-padding);
|
|
62
|
+
border-top: 1px solid var(--uc-border);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
uc-external-source .uc-back-btn {
|
|
66
|
+
padding-left: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
uc-external-source .uc-selection-status-box {
|
|
70
|
+
color: var(--uc-foreground);
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
uc-external-source .uc-selection-status-box button {
|
|
78
|
+
color: var(--uc-primary);
|
|
79
|
+
height: auto;
|
|
80
|
+
padding: 0;
|
|
81
|
+
background: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
uc-external-source .uc-selection-status-box button:hover {
|
|
85
|
+
text-decoration: underline;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
uc-external-source uc-activity-header {
|
|
89
|
+
position: absolute;
|
|
90
|
+
width: 100%;
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
z-index: 1;
|
|
93
|
+
left: 0;
|
|
94
|
+
top: 0;
|
|
95
|
+
right: 0;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
uc-external-source uc-activity-header .uc-close-btn {
|
|
100
|
+
pointer-events: auto;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
uc-external-source .uc-done-btn > span.uc-hidden {
|
|
104
|
+
visibility: hidden;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
uc-external-source .uc-done-btn > uc-spinner {
|
|
109
|
+
position: absolute;
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 100%;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -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 { d as ACTIVITY_TYPES, p as serializeCsv } from "./plugins-
|
|
8
|
-
import { t as en_default } from "./en-
|
|
9
|
-
import { n as PACKAGE_VERSION, t as PACKAGE_NAME } from "./env-
|
|
7
|
+
import { d as ACTIVITY_TYPES, p as serializeCsv } from "./plugins-CGUls7EV.js";
|
|
8
|
+
import { t as en_default } from "./en-8OWEmZim.js";
|
|
9
|
+
import { n as PACKAGE_VERSION, t as PACKAGE_NAME } from "./env-mM-ksNPq.js";
|
|
10
10
|
import { listenKeys, map, subscribeKeys } from "nanostores";
|
|
11
11
|
import { LitElement, html } from "lit";
|
|
12
12
|
import { ContextConsumer, ContextProvider, createContext } from "@lit/context";
|
|
@@ -1797,8 +1797,7 @@ var Icon = class extends LitBlock {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
render() {
|
|
1799
1799
|
return this._pluginSvg ? html`${this.yield("", html`${unsafeSVG(this._pluginSvg)}`)}` : html`
|
|
1800
|
-
${this.yield("", html
|
|
1801
|
-
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
1800
|
+
${this.yield("", html`<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
1802
1801
|
<use href=${this._resolvedHref}></use>
|
|
1803
1802
|
</svg>`)}
|
|
1804
1803
|
`;
|
|
@@ -1808,4 +1807,4 @@ var Icon = class extends LitBlock {
|
|
|
1808
1807
|
}
|
|
1809
1808
|
};
|
|
1810
1809
|
__decorate([property({ type: String })], Icon.prototype, "name", void 0), __decorate([state()], Icon.prototype, "_resolvedHref", void 0), __decorate([state()], Icon.prototype, "_pluginSvg", void 0);
|
|
1811
|
-
export {
|
|
1810
|
+
export { stringToArray as $, CameraSourceTypes as A, ModalEvents as B, MIN_CROP_SIZE as C, THUMB_STROKE_WIDTH as D, THUMB_SIDE_SIZE as E, EventType as F, ALL_CROP_OPERATIONS as G, DEFAULT_CDN_CNAME as H, InternalEventType as I, COLOR_OPERATIONS_CONFIG as J, ALL_FILTERS as K, activityBlockCtx as L, createL10n as M, getPluralForm as N, warnOnce as O, applyTemplateData as P, transformationsToOperations as Q, solutionBlockCtx as R, MAX_INTERACTION_SIZE as S, THUMB_CORNER_SIZE as T, initialConfig as U, SharedInstance as V, ALL_COLOR_OPERATIONS as W, COMMON_OPERATIONS as X, TabId as Y, operationsToTransformations as Z, sidePath as _, clamp as a, sharedConfigKey as at, GUIDE_STROKE_WIDTH as b, createSvgNode as c, SymbioteMixin as ct, moveRect as d, RegisterableElementMixin as dt, createCdnUrl as et, rectContainsPoint as f, LightDomMixin as ft, setSvgNodeAttrs as g, roundRect as h, calculateMaxCenteredCropFrame as i, extractUuid as it, LitBlock as j, CameraSourceEvents as k, isRectInsideRect as l, __decorate as lt, rotateSize as m, PubSub as mt, getClosestAspectRatio as n, createOriginalUrl as nt, constraintRect as o, defineLocale as ot, resizeRect as p, CssDataMixin as pt, ALL_TABS as q, parseCropPreset as r, extractOperations as rt, cornerPath as s, UID as st, Icon as t, createCdnUrlModifiers as tt, isRectMatchesAspectRatio as u, debounce as ut, thumbCursor as v, MIN_INTERACTION_SIZE as w, GUIDE_THIRD as x, CROP_PADDING as y, uploaderBlockCtx as z };
|
package/dist/Icon.css
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
uc-icon {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: var(--uc-button-size);
|
|
7
|
+
height: var(--uc-button-size);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
uc-icon svg {
|
|
11
|
+
width: calc(var(--uc-button-size) / 2);
|
|
12
|
+
height: calc(var(--uc-button-size) / 2);
|
|
13
|
+
overflow: visible;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@layer uc.components {
|
|
2
|
+
uc-icon {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: var(--uc-button-size);
|
|
7
|
+
height: var(--uc-button-size);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
uc-icon svg {
|
|
11
|
+
width: calc(var(--uc-button-size) / 2);
|
|
12
|
+
height: calc(var(--uc-button-size) / 2);
|
|
13
|
+
overflow: visible;
|
|
14
|
+
}
|
|
15
|
+
}
|