@uploadcare/file-uploader 1.27.1 → 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-DDwj1jCV.js +511 -0
- package/dist/CameraSource-n1tun2Df.js +10 -0
- package/dist/CameraSource.css +180 -0
- package/dist/CameraSource.layered.css +209 -0
- package/dist/CloudImageEditor-DcVoIRb3.js +2163 -0
- package/dist/CloudImageEditorActivity-Csij4nlC.js +87 -0
- package/dist/CloudImageEditorActivity-DD4NdU0P.js +9 -0
- package/dist/CloudImageEditorActivity.css +14 -0
- package/dist/CloudImageEditorActivity.layered.css +15 -0
- package/dist/Config-DKOromHY.js +433 -0
- package/dist/Config.css +4 -0
- package/dist/Config.layered.css +5 -0
- package/dist/ExternalSource-6MSUgxqy.js +10 -0
- package/dist/ExternalSource-DVEjSkPB.js +253 -0
- package/dist/ExternalSource.css +98 -0
- package/dist/ExternalSource.layered.css +116 -0
- package/dist/Icon-tXRTvEF2.js +1810 -0
- package/dist/Icon.css +14 -0
- package/dist/Icon.layered.css +15 -0
- package/dist/LitUploaderBlock-LxeOZ0ya.js +998 -0
- package/dist/UrlSource-BkyX00I2.js +73 -0
- package/dist/UrlSource-RI8TSD48.js +10 -0
- package/dist/UrlSource.css +17 -0
- package/dist/UrlSource.layered.css +18 -0
- package/dist/abstract/CTX.d.ts +40 -0
- package/dist/abstract/TypedCollection.d.ts +47 -0
- package/dist/abstract/TypedCollection.test.d.ts +1 -0
- package/dist/abstract/TypedData.d.ts +12 -0
- package/dist/abstract/TypedData.test.d.ts +1 -0
- package/dist/abstract/UploaderPublicApi.d.ts +41 -0
- package/dist/abstract/buildOutputCollectionState.d.ts +3 -0
- package/dist/abstract/customConfigOptions.d.ts +65 -0
- package/dist/abstract/defineComponents.d.ts +1 -0
- package/dist/abstract/features/ClipboardLayer.d.ts +12 -0
- package/dist/abstract/loadFileUploaderFrom.d.ts +3 -4
- package/dist/abstract/loadFileUploaderFrom.js +7 -6
- package/dist/abstract/localeRegistry.d.ts +5 -0
- package/dist/abstract/managers/LocaleManager.d.ts +10 -0
- package/dist/abstract/managers/ModalManager.d.ts +53 -0
- package/dist/abstract/managers/SecureUploadsManager.d.ts +7 -0
- package/dist/abstract/managers/TelemetryManager.d.ts +41 -0
- package/dist/abstract/managers/ValidationManager.d.ts +34 -0
- package/dist/abstract/managers/__tests__/ModalManager.test.d.ts +13 -0
- package/dist/abstract/managers/__tests__/SecureUploadsManager.test.d.ts +1 -0
- package/dist/abstract/managers/a11y.d.ts +9 -0
- package/dist/abstract/managers/plugin/PluginManager.d.ts +25 -0
- package/dist/abstract/managers/plugin/PluginTypes.d.ts +146 -0
- package/dist/abstract/managers/plugin/index.d.ts +2 -0
- package/dist/abstract/sharedConfigKey.d.ts +2 -0
- package/dist/abstract/uploadEntrySchema.d.ts +34 -0
- package/dist/blocks/ActivityHeader/ActivityHeader.d.ts +8 -0
- package/dist/blocks/CameraSource/CameraSource.d.ts +121 -0
- package/dist/blocks/CameraSource/__tests__/calcCameraModes.test.d.ts +1 -0
- package/dist/blocks/CameraSource/calcCameraModes.d.ts +5 -0
- package/dist/blocks/CameraSource/constants.d.ts +15 -0
- package/dist/blocks/CloudImageEditor/index.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts +60 -0
- package/dist/blocks/CloudImageEditor/src/CropFrame.d.ts +56 -0
- package/dist/blocks/CloudImageEditor/src/EditorAspectRatioButtonControl.d.ts +24 -0
- package/dist/blocks/CloudImageEditor/src/EditorButtonControl.d.ts +14 -0
- package/dist/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts +13 -0
- package/dist/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +35 -0
- package/dist/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +56 -0
- package/dist/blocks/CloudImageEditor/src/EditorImageFader.d.ts +63 -0
- package/dist/blocks/CloudImageEditor/src/EditorOperationControl.d.ts +15 -0
- package/dist/blocks/CloudImageEditor/src/EditorScroller.d.ts +15 -0
- package/dist/blocks/CloudImageEditor/src/EditorSlider.d.ts +33 -0
- package/dist/blocks/CloudImageEditor/src/EditorToolbar.d.ts +68 -0
- package/dist/blocks/CloudImageEditor/src/crop-utils.d.ts +36 -0
- package/dist/blocks/CloudImageEditor/src/crop-utils.test.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/cropper-constants.d.ts +10 -0
- package/dist/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts +31 -0
- package/dist/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts +19 -0
- package/dist/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts +27 -0
- package/dist/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts +38 -0
- package/dist/blocks/CloudImageEditor/src/index.d.ts +15 -0
- package/dist/blocks/CloudImageEditor/src/lib/classNames.d.ts +5 -0
- package/dist/blocks/CloudImageEditor/src/lib/classNames.test.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/linspace.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/linspace.test.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +4 -0
- package/dist/blocks/CloudImageEditor/src/lib/parseCropPreset.test.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/parseTabs.d.ts +2 -0
- package/dist/blocks/CloudImageEditor/src/lib/pick.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/pick.test.d.ts +1 -0
- package/dist/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +7 -0
- package/dist/blocks/CloudImageEditor/src/state.d.ts +20 -0
- package/dist/blocks/CloudImageEditor/src/svg-sprite.d.ts +2 -0
- package/dist/blocks/CloudImageEditor/src/toolbar-constants.d.ts +61 -0
- package/dist/blocks/CloudImageEditor/src/types.d.ts +60 -0
- package/dist/blocks/CloudImageEditor/src/util.d.ts +2 -0
- package/dist/blocks/CloudImageEditor/src/utils/parseFilterValue.d.ts +7 -0
- package/dist/blocks/CloudImageEditor/src/utils/parseFilterValue.test.d.ts +1 -0
- package/dist/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +25 -0
- package/dist/blocks/Config/Config.d.ts +60 -0
- package/dist/blocks/Config/assertions.d.ts +5 -0
- package/dist/blocks/Config/computed-properties.d.ts +24 -0
- package/dist/blocks/Config/computed-properties.test.d.ts +1 -0
- package/dist/blocks/Config/initialConfig.d.ts +6 -0
- package/dist/blocks/Config/normalizeConfigValue.d.ts +2 -0
- package/dist/blocks/Config/validatorsType.d.ts +18 -0
- package/dist/blocks/Copyright/Copyright.d.ts +10 -0
- package/dist/blocks/DropArea/DropArea.d.ts +47 -0
- package/dist/blocks/DropArea/addDropzone.d.ts +17 -0
- package/dist/blocks/DropArea/getDropItems.d.ts +12 -0
- package/dist/blocks/ExternalSource/ExternalSource.d.ts +45 -0
- package/dist/blocks/ExternalSource/MessageBridge.d.ts +11 -0
- package/dist/blocks/ExternalSource/buildThemeDefinition.d.ts +4 -0
- package/dist/blocks/ExternalSource/query-string.d.ts +1 -0
- package/dist/blocks/ExternalSource/types.d.ts +105 -0
- package/dist/blocks/FileItem/FileItem.d.ts +50 -0
- package/dist/blocks/FileItem/FileItemConfig.d.ts +10 -0
- package/dist/blocks/FormInput/FormInput.d.ts +18 -0
- package/dist/blocks/Icon/Icon.d.ts +19 -0
- package/dist/blocks/Img/Img.d.ts +14 -0
- package/dist/blocks/Img/ImgBase.d.ts +29 -0
- package/dist/blocks/Img/ImgConfig.d.ts +28 -0
- package/dist/blocks/Img/configurations.d.ts +11 -0
- package/dist/blocks/Img/props-map.d.ts +28 -0
- package/dist/blocks/Img/utils/parseObjectToString.d.ts +2 -0
- package/dist/blocks/Modal/Modal.d.ts +34 -0
- package/dist/blocks/PluginActivityRenderer/PluginActivityRenderer.d.ts +32 -0
- package/dist/blocks/PluginActivityRenderer/index.d.ts +1 -0
- package/dist/blocks/ProgressBar/ProgressBar.d.ts +21 -0
- package/dist/blocks/ProgressBarCommon/ProgressBarCommon.d.ts +17 -0
- package/dist/blocks/Select/Select.d.ts +18 -0
- package/dist/blocks/SimpleBtn/SimpleBtn.d.ts +15 -0
- package/dist/blocks/SourceBtn/SourceBtn.d.ts +23 -0
- package/dist/blocks/SourceList/SourceList.d.ts +24 -0
- package/dist/blocks/Spinner/Spinner.d.ts +9 -0
- package/dist/blocks/StartFrom/StartFrom.d.ts +12 -0
- package/dist/blocks/Thumb/Thumb.d.ts +35 -0
- package/dist/blocks/UploadCtxProvider/EventEmitter.d.ts +70 -0
- package/dist/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +44 -0
- package/dist/blocks/UploadList/UploadList.d.ts +39 -0
- package/dist/blocks/UrlSource/UrlSource.d.ts +14 -0
- package/dist/blocks/svg-backgrounds/svg-backgrounds.d.ts +3 -0
- package/dist/blocks/themes/uc-basic/svg-sprite.d.ts +2 -0
- package/dist/cameraPlugin-weRKO7eG.js +8 -0
- package/dist/cloud-image-editor-hhbyNWLG.js +11 -0
- 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/core.d.ts +42 -0
- package/dist/en-8OWEmZim.js +135 -0
- package/dist/env-mM-ksNPq.js +8 -0
- package/dist/env.d.ts +2 -4
- package/dist/env.js +7 -6
- 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 -6
- package/dist/index.d.ts +42 -2715
- package/dist/index.js +1796 -8
- package/dist/index.layered.css +9 -7
- package/dist/instagramPlugin-CXRm8MGL.js +8 -0
- package/dist/lit/BaseComponent.d.ts +12 -0
- package/dist/lit/Constructor.d.ts +1 -0
- package/dist/lit/CssDataMixin.d.ts +7 -0
- package/dist/lit/LightDomMixin.d.ts +8 -0
- package/dist/lit/LitActivityBlock.d.ts +53 -0
- package/dist/lit/LitBlock.d.ts +83 -0
- package/dist/lit/LitSolutionBlock.d.ts +21 -0
- package/dist/lit/LitUploaderBlock.d.ts +53 -0
- package/dist/lit/PubSubCompat.d.ts +18 -0
- package/dist/lit/RegisterableElementMixin.d.ts +7 -0
- package/dist/lit/SharedState.d.ts +119 -0
- package/dist/lit/SymbioteCompatMixin.d.ts +40 -0
- package/dist/lit/TestModeController.d.ts +16 -0
- package/dist/lit/Uid.d.ts +3 -0
- package/dist/lit/activity-constants.d.ts +11 -0
- package/dist/lit/createDebugPrinter.d.ts +3 -0
- package/dist/lit/findBlockInCtx.d.ts +3 -0
- package/dist/lit/getOutputData.d.ts +2 -0
- package/dist/lit/hasBlockInCtx.d.ts +3 -0
- package/dist/lit/l10n.d.ts +5 -0
- package/dist/lit/parseCssPropertyValue.d.ts +1 -0
- package/dist/lit/shared-instances.d.ts +65 -0
- package/dist/loadFileUploaderFrom-Bfz8L3VB.js +28 -0
- package/dist/locales/file-uploader/ar.d.ts +1 -4
- package/dist/locales/file-uploader/ar.js +142 -6
- package/dist/locales/file-uploader/az.d.ts +1 -4
- package/dist/locales/file-uploader/az.js +134 -6
- package/dist/locales/file-uploader/ca.d.ts +1 -4
- package/dist/locales/file-uploader/ca.js +136 -6
- package/dist/locales/file-uploader/cs.d.ts +1 -4
- package/dist/locales/file-uploader/cs.js +138 -6
- package/dist/locales/file-uploader/da.d.ts +1 -4
- package/dist/locales/file-uploader/da.js +134 -6
- package/dist/locales/file-uploader/de.d.ts +1 -4
- package/dist/locales/file-uploader/de.js +134 -6
- package/dist/locales/file-uploader/el.d.ts +1 -4
- package/dist/locales/file-uploader/el.js +134 -6
- package/dist/locales/file-uploader/en.d.ts +1 -4
- package/dist/locales/file-uploader/en.js +7 -6
- package/dist/locales/file-uploader/es.d.ts +1 -4
- package/dist/locales/file-uploader/es.js +136 -6
- package/dist/locales/file-uploader/et.d.ts +1 -4
- package/dist/locales/file-uploader/et.js +134 -6
- package/dist/locales/file-uploader/fi.d.ts +1 -4
- package/dist/locales/file-uploader/fi.js +134 -6
- package/dist/locales/file-uploader/fr.d.ts +1 -4
- package/dist/locales/file-uploader/fr.js +136 -6
- package/dist/locales/file-uploader/he.d.ts +1 -4
- package/dist/locales/file-uploader/he.js +136 -6
- package/dist/locales/file-uploader/hy.d.ts +1 -4
- package/dist/locales/file-uploader/hy.js +134 -6
- package/dist/locales/file-uploader/is.d.ts +1 -4
- package/dist/locales/file-uploader/is.js +134 -6
- package/dist/locales/file-uploader/it.d.ts +1 -4
- package/dist/locales/file-uploader/it.js +136 -6
- package/dist/locales/file-uploader/ja.d.ts +1 -4
- package/dist/locales/file-uploader/ja.js +134 -6
- package/dist/locales/file-uploader/ka.d.ts +1 -4
- package/dist/locales/file-uploader/ka.js +134 -6
- package/dist/locales/file-uploader/kk.d.ts +1 -4
- package/dist/locales/file-uploader/kk.js +134 -6
- package/dist/locales/file-uploader/ko.d.ts +1 -4
- package/dist/locales/file-uploader/ko.js +134 -6
- package/dist/locales/file-uploader/lv.d.ts +1 -4
- package/dist/locales/file-uploader/lv.js +136 -6
- package/dist/locales/file-uploader/nb.d.ts +1 -4
- package/dist/locales/file-uploader/nb.js +134 -6
- package/dist/locales/file-uploader/nl.d.ts +1 -4
- package/dist/locales/file-uploader/nl.js +134 -6
- package/dist/locales/file-uploader/pl.d.ts +1 -4
- package/dist/locales/file-uploader/pl.js +138 -6
- package/dist/locales/file-uploader/pt.d.ts +1 -4
- package/dist/locales/file-uploader/pt.js +136 -6
- package/dist/locales/file-uploader/ro.d.ts +1 -4
- package/dist/locales/file-uploader/ro.js +136 -6
- package/dist/locales/file-uploader/ru.d.ts +1 -4
- package/dist/locales/file-uploader/ru.js +138 -6
- package/dist/locales/file-uploader/sk.d.ts +1 -4
- package/dist/locales/file-uploader/sk.js +138 -6
- package/dist/locales/file-uploader/sr.d.ts +1 -4
- package/dist/locales/file-uploader/sr.js +136 -6
- package/dist/locales/file-uploader/sv.d.ts +1 -4
- package/dist/locales/file-uploader/sv.js +134 -6
- package/dist/locales/file-uploader/tr.d.ts +1 -4
- package/dist/locales/file-uploader/tr.js +134 -6
- package/dist/locales/file-uploader/uk.d.ts +1 -4
- package/dist/locales/file-uploader/uk.js +138 -6
- package/dist/locales/file-uploader/vi.d.ts +1 -4
- package/dist/locales/file-uploader/vi.js +134 -6
- package/dist/locales/file-uploader/zh-TW.d.ts +1 -4
- package/dist/locales/file-uploader/zh-TW.js +134 -6
- package/dist/locales/file-uploader/zh.d.ts +1 -4
- package/dist/locales/file-uploader/zh.js +134 -6
- package/dist/plugins/cameraPlugin.d.ts +2 -0
- package/dist/plugins/cloudImageEditorPlugin.d.ts +2 -0
- package/dist/plugins/externalSourcesPlugin.d.ts +2 -0
- package/dist/plugins/imageShrinkPlugin.d.ts +2 -0
- package/dist/plugins/instagramPlugin.d.ts +2 -0
- package/dist/plugins/unsplashPlugin.d.ts +16 -0
- package/dist/plugins/urlSourcePlugin.d.ts +2 -0
- package/dist/plugins-CGUls7EV.js +278 -0
- package/dist/solutions/adaptive-image/index.d.ts +2 -0
- package/dist/solutions/cloud-image-editor/CloudImageEditor.d.ts +11 -0
- package/dist/solutions/cloud-image-editor/index.d.ts +5 -0
- package/dist/solutions/file-uploader/inline/FileUploaderInline.d.ts +20 -0
- package/dist/solutions/file-uploader/inline/index.d.ts +1 -0
- package/dist/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +23 -0
- package/dist/solutions/file-uploader/minimal/index.d.ts +1 -0
- package/dist/solutions/file-uploader/regular/FileUploaderRegular.d.ts +17 -0
- package/dist/solutions/file-uploader/regular/index.d.ts +1 -0
- package/dist/types/dom.d.ts +1 -0
- package/dist/types/events.d.ts +4 -0
- package/dist/types/exported.d.ts +492 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/urlSourcePlugin-_WdbEhq2.js +8 -0
- package/dist/utils/UID.d.ts +5 -0
- package/dist/utils/UID.test.d.ts +1 -0
- package/dist/utils/UploadSource.d.ts +37 -0
- package/dist/utils/WindowHeightTracker.d.ts +9 -0
- package/dist/utils/abilities.d.ts +1 -0
- package/dist/utils/applyStyles.d.ts +1 -0
- package/dist/utils/browser-info.d.ts +12 -0
- package/dist/utils/browser-info.test.d.ts +1 -0
- package/dist/utils/cdn-utils.d.ts +53 -0
- package/dist/utils/cdn-utils.test.d.ts +1 -0
- package/dist/utils/comma-separated.d.ts +2 -0
- package/dist/utils/debounce.d.ts +3 -0
- package/dist/utils/delay.d.ts +1 -0
- package/dist/utils/fileTypes.d.ts +11 -0
- package/dist/utils/fileTypes.test.d.ts +1 -0
- package/dist/utils/get-top-level-origin.d.ts +1 -0
- package/dist/utils/get-top-level-origin.test.d.ts +1 -0
- package/dist/utils/getLocaleDirection.d.ts +1 -0
- package/dist/utils/getPluralForm.d.ts +1 -0
- package/dist/utils/getPluralForm.test.d.ts +1 -0
- package/dist/utils/isPromiseLike.d.ts +1 -0
- package/dist/utils/isPromiseLike.test.d.ts +1 -0
- package/dist/utils/isSecureTokenExpired.d.ts +8 -0
- package/dist/utils/isSecureTokenExpired.test.d.ts +1 -0
- package/dist/utils/memoize.d.ts +1 -0
- package/dist/utils/memoize.test.d.ts +1 -0
- package/dist/utils/mixinClass.d.ts +8 -0
- package/dist/utils/parseCdnUrl.d.ts +11 -0
- package/dist/utils/parseCdnUrl.test.d.ts +1 -0
- package/dist/utils/parseShrink.d.ts +7 -0
- package/dist/utils/parseShrink.test.d.ts +1 -0
- package/dist/utils/preloadImage.d.ts +10 -0
- package/dist/utils/prettyBytes.d.ts +11 -0
- package/dist/utils/prettyBytes.test.d.ts +1 -0
- package/dist/utils/resizeImage.d.ts +1 -0
- package/dist/utils/stringToArray.d.ts +1 -0
- package/dist/utils/stringToArray.test.d.ts +1 -0
- package/dist/utils/template-utils.d.ts +16 -0
- package/dist/utils/template-utils.test.d.ts +1 -0
- package/dist/utils/throttle.d.ts +3 -0
- package/dist/utils/toKebabCase.d.ts +2 -0
- package/dist/utils/toKebabCase.test.d.ts +1 -0
- package/dist/utils/transparentPixelSrc.d.ts +1 -0
- package/dist/utils/uniqueArray.d.ts +1 -0
- package/dist/utils/uniqueArray.test.d.ts +1 -0
- package/dist/utils/userAgent.d.ts +2 -0
- package/dist/utils/validators/collection/index.d.ts +2 -0
- package/dist/utils/validators/collection/validateCollectionUploadError.d.ts +2 -0
- package/dist/utils/validators/collection/validateMultiple.d.ts +2 -0
- package/dist/utils/validators/file/index.d.ts +4 -0
- package/dist/utils/validators/file/validateFileType.d.ts +2 -0
- package/dist/utils/validators/file/validateIsImage.d.ts +2 -0
- package/dist/utils/validators/file/validateMaxSizeLimit.d.ts +2 -0
- package/dist/utils/validators/file/validateUploadError.d.ts +2 -0
- package/dist/utils/warnOnce.d.ts +1 -0
- package/dist/utils/wildcardRegexp.d.ts +1 -0
- package/dist/utils/wildcardRegexp.test.d.ts +1 -0
- package/dist/utils/withResolvers.d.ts +5 -0
- package/dist/utils/withResolvers.test.d.ts +1 -0
- package/package.json +8 -2
- 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 -8
- package/web/file-uploader.min.js +1858 -7
- 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 -7
- package/web/uc-basic.min.css +5487 -6
- package/web/uc-cloud-image-editor.layered.min.css +1884 -7
- package/web/uc-cloud-image-editor.min.css +1675 -6
- package/web/uc-cloud-image-editor.min.js +456 -7
- package/web/uc-file-uploader-inline.layered.min.css +4352 -7
- package/web/uc-file-uploader-inline.min.css +3836 -6
- package/web/uc-file-uploader-inline.min.js +1858 -7
- package/web/uc-file-uploader-minimal.layered.min.css +4352 -7
- package/web/uc-file-uploader-minimal.min.css +3836 -6
- package/web/uc-file-uploader-minimal.min.js +1858 -7
- package/web/uc-file-uploader-regular.layered.min.css +4352 -7
- package/web/uc-file-uploader-regular.min.css +3836 -6
- package/web/uc-file-uploader-regular.min.js +1858 -7
- package/web/uc-img.min.js +894 -7
- 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/index.ssr.js +0 -1538
- package/web/file-uploader.iife.min.d.ts +0 -2859
- package/web/file-uploader.iife.min.js.LEGAL.txt +0 -71
- package/web/file-uploader.min.d.ts +0 -2859
- package/web/file-uploader.min.js.LEGAL.txt +0 -71
- package/web/uc-cloud-image-editor.min.d.ts +0 -2816
- package/web/uc-cloud-image-editor.min.js.LEGAL.txt +0 -70
- package/web/uc-file-uploader-inline.min.d.ts +0 -2859
- package/web/uc-file-uploader-inline.min.js.LEGAL.txt +0 -71
- package/web/uc-file-uploader-minimal.min.d.ts +0 -2859
- package/web/uc-file-uploader-minimal.min.js.LEGAL.txt +0 -71
- package/web/uc-file-uploader-regular.min.d.ts +0 -2859
- package/web/uc-file-uploader-regular.min.js.LEGAL.txt +0 -71
- package/web/uc-img.min.d.ts +0 -75
- package/web/uc-img.min.js.LEGAL.txt +0 -24
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SharedInstance, SharedInstancesBag } from '../../lit/shared-instances';
|
|
2
|
+
import { LocaleDefinition } from '../localeRegistry';
|
|
3
|
+
export declare const localeStateKey: <T extends keyof LocaleDefinition>(key: T) => `*l10n/${T}`;
|
|
4
|
+
export declare const DEFAULT_LOCALE = "en";
|
|
5
|
+
export declare class LocaleManager extends SharedInstance {
|
|
6
|
+
private _localeName;
|
|
7
|
+
constructor(sharedInstancesBag: SharedInstancesBag);
|
|
8
|
+
private _applyOverrides;
|
|
9
|
+
private _applyPluginLocales;
|
|
10
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Modal as ModalNode } from '../../blocks/Modal/Modal';
|
|
2
|
+
import { ActivityType } from '../../lit/LitActivityBlock';
|
|
3
|
+
import { SharedInstance } from '../../lit/shared-instances';
|
|
4
|
+
export declare const ModalEvents: Readonly<{
|
|
5
|
+
readonly ADD: "modal:add";
|
|
6
|
+
readonly DELETE: "modal:delete";
|
|
7
|
+
readonly OPEN: "modal:open";
|
|
8
|
+
readonly CLOSE: "modal:close";
|
|
9
|
+
readonly CLOSE_ALL: "modal:closeAll";
|
|
10
|
+
readonly DESTROY: "modal:destroy";
|
|
11
|
+
}>;
|
|
12
|
+
export type ModalId = ActivityType;
|
|
13
|
+
export type ModalCb = (data: {
|
|
14
|
+
id: ModalId;
|
|
15
|
+
modal: ModalNode;
|
|
16
|
+
}) => void;
|
|
17
|
+
export type ModalEventType = (typeof ModalEvents)[keyof typeof ModalEvents];
|
|
18
|
+
export declare class ModalManager extends SharedInstance {
|
|
19
|
+
private _modals;
|
|
20
|
+
private _activeModals;
|
|
21
|
+
private _subscribers;
|
|
22
|
+
/**
|
|
23
|
+
* Register a modal with the manager
|
|
24
|
+
* @param id Unique identifier for the modal
|
|
25
|
+
* @param modal Modal component instance
|
|
26
|
+
*/
|
|
27
|
+
registerModal(id: ModalId, modal: ModalNode): void;
|
|
28
|
+
/** Remove a modal by ID. */
|
|
29
|
+
deleteModal(id: ModalId): boolean;
|
|
30
|
+
/** Open a modal by its ID. */
|
|
31
|
+
open(id: ModalId): boolean;
|
|
32
|
+
/** Close a specific modal by ID. */
|
|
33
|
+
close(id: ModalId): boolean;
|
|
34
|
+
/** Toggle a modal - open if closed, close if open. */
|
|
35
|
+
toggle(id: ModalId): boolean;
|
|
36
|
+
/** True if there are any active modals. */
|
|
37
|
+
get hasActiveModals(): boolean;
|
|
38
|
+
/** Close the most recently opened modal and return to the previous one. */
|
|
39
|
+
back(): boolean;
|
|
40
|
+
/** Close all open modals. */
|
|
41
|
+
closeAll(): number;
|
|
42
|
+
/**
|
|
43
|
+
* Subscribe to modal events
|
|
44
|
+
* @returns Unsubscribe function
|
|
45
|
+
*/
|
|
46
|
+
subscribe(event: ModalEventType, callback: ModalCb): () => void;
|
|
47
|
+
/** Unsubscribe from modal events */
|
|
48
|
+
unsubscribe(event: ModalEventType, callback: ModalCb | undefined): void;
|
|
49
|
+
/** Notify all subscribers of a modal event. */
|
|
50
|
+
private _notify;
|
|
51
|
+
/** Destroy the modal manager, clean up resources */
|
|
52
|
+
destroy(): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SharedInstance } from '../../lit/shared-instances';
|
|
2
|
+
import { SecureUploadsSignatureAndExpire } from '../../types/index';
|
|
3
|
+
export declare class SecureUploadsManager extends SharedInstance {
|
|
4
|
+
private _secureToken;
|
|
5
|
+
getSecureToken(): Promise<SecureUploadsSignatureAndExpire | null>;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TelemetryRequest } from '@uploadcare/quality-insights';
|
|
2
|
+
import { EventKey, InternalEventKey } from '../../blocks/UploadCtxProvider/EventEmitter';
|
|
3
|
+
import { SharedInstance, SharedInstancesBag } from '../../lit/shared-instances';
|
|
4
|
+
type CommonEventType = InternalEventKey | EventKey;
|
|
5
|
+
type TelemetryState = TelemetryRequest & {
|
|
6
|
+
eventTimestamp: number;
|
|
7
|
+
location: string;
|
|
8
|
+
};
|
|
9
|
+
type TelemetryEventBody = Partial<Pick<TelemetryState, 'payload' | 'config'>> & {
|
|
10
|
+
modalId?: string;
|
|
11
|
+
eventType?: CommonEventType;
|
|
12
|
+
};
|
|
13
|
+
export declare class TelemetryManager extends SharedInstance {
|
|
14
|
+
private readonly _sessionId;
|
|
15
|
+
private readonly _telemetryInstance;
|
|
16
|
+
private _config;
|
|
17
|
+
private _initialized;
|
|
18
|
+
private _lastPayload;
|
|
19
|
+
private readonly _queue;
|
|
20
|
+
private _isEnabled;
|
|
21
|
+
constructor(sharedInstancesBag: SharedInstancesBag);
|
|
22
|
+
private _init;
|
|
23
|
+
private _setConfig;
|
|
24
|
+
private _formattingPayload;
|
|
25
|
+
private _excludedEvents;
|
|
26
|
+
sendEvent(body: TelemetryEventBody): void;
|
|
27
|
+
sendEventError(error: unknown, context?: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Method to send telemetry event for Cloud Image Editor.
|
|
30
|
+
*/
|
|
31
|
+
sendEventCloudImageEditor(e: MouseEvent, tabId: string, options?: Record<string, unknown>): void;
|
|
32
|
+
/**
|
|
33
|
+
* Deeply compares two objects and returns true if they are equal, false otherwise.
|
|
34
|
+
*/
|
|
35
|
+
private _checkObj;
|
|
36
|
+
private get _timestamp();
|
|
37
|
+
private get _solution();
|
|
38
|
+
private get _activity();
|
|
39
|
+
private get _location();
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SharedInstance, SharedInstancesBag } from '../../lit/shared-instances';
|
|
2
|
+
import { Uid } from '../../lit/Uid';
|
|
3
|
+
import { OutputCollectionStatus, OutputErrorCollection, OutputErrorFile, OutputFileEntry, UploaderPublicApi } from '../../types';
|
|
4
|
+
import { buildOutputCollectionState } from '../buildOutputCollectionState';
|
|
5
|
+
import { TypedData } from '../TypedData';
|
|
6
|
+
import { UploadEntryData } from '../uploadEntrySchema';
|
|
7
|
+
export type FuncFileValidator = (outputEntry: OutputFileEntry, api: UploaderPublicApi, options?: {
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
}) => undefined | OutputErrorFile | Promise<undefined | OutputErrorFile>;
|
|
10
|
+
export type FileValidatorDescriptor = {
|
|
11
|
+
runOn: 'add' | 'upload' | 'change';
|
|
12
|
+
validator: FuncFileValidator;
|
|
13
|
+
};
|
|
14
|
+
export type FileValidator = FileValidatorDescriptor | FuncFileValidator;
|
|
15
|
+
export type FuncCollectionValidator = (collection: ReturnType<typeof buildOutputCollectionState<OutputCollectionStatus>>, api: UploaderPublicApi) => undefined | OutputErrorCollection;
|
|
16
|
+
export declare class ValidationManager extends SharedInstance {
|
|
17
|
+
private get _uploadCollection();
|
|
18
|
+
private _commonFileValidators;
|
|
19
|
+
private _commonCollectionValidators;
|
|
20
|
+
private _queue;
|
|
21
|
+
private _runQueueDebounced;
|
|
22
|
+
private _isDestroyed;
|
|
23
|
+
private _entryValidationState;
|
|
24
|
+
constructor(sharedInstancesBag: SharedInstancesBag);
|
|
25
|
+
runFileValidators(runOn: FileValidatorDescriptor['runOn'], entryIds?: Uid[]): void;
|
|
26
|
+
runCollectionValidators(): void;
|
|
27
|
+
cleanupValidationForEntry(entry: TypedData<UploadEntryData>): void;
|
|
28
|
+
private _runFileValidatorsForEntry;
|
|
29
|
+
private _addCustomTypeToValidationError;
|
|
30
|
+
private _getEntryValidationState;
|
|
31
|
+
private _getValidatorDescriptors;
|
|
32
|
+
private _getValidatorDescriptorsForEntry;
|
|
33
|
+
destroy(): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LitBlock } from '../../lit/LitBlock';
|
|
2
|
+
import { ISharedInstance } from '../../lit/shared-instances';
|
|
3
|
+
export declare class A11y implements ISharedInstance {
|
|
4
|
+
private _destroyKeyUX;
|
|
5
|
+
private readonly _scopedWindow;
|
|
6
|
+
constructor();
|
|
7
|
+
registerBlock(scope: LitBlock): void;
|
|
8
|
+
destroy(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SharedInstance, SharedInstancesBag } from '../../../lit/shared-instances';
|
|
2
|
+
import { CustomConfigRegistry } from '../../customConfigOptions';
|
|
3
|
+
import { PluginRegistrySnapshot } from './PluginTypes';
|
|
4
|
+
export declare class PluginManager extends SharedInstance {
|
|
5
|
+
private _plugins;
|
|
6
|
+
private _sources;
|
|
7
|
+
private _activities;
|
|
8
|
+
private _fileActions;
|
|
9
|
+
private _fileHooks;
|
|
10
|
+
private _icons;
|
|
11
|
+
private _i18n;
|
|
12
|
+
private _subscribers;
|
|
13
|
+
private _pluginsUpdate;
|
|
14
|
+
readonly configRegistry: CustomConfigRegistry;
|
|
15
|
+
constructor(sharedInstancesBag: SharedInstancesBag);
|
|
16
|
+
onPluginsChange(callback: () => void): () => void;
|
|
17
|
+
private _syncPlugins;
|
|
18
|
+
private _registerPlugin;
|
|
19
|
+
private _unregisterPlugin;
|
|
20
|
+
snapshot(): PluginRegistrySnapshot;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
private _register;
|
|
23
|
+
private _purgeRegistrations;
|
|
24
|
+
private _notifySubscribers;
|
|
25
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ConfigType, OutputFileEntry } from '../../../types/exported';
|
|
2
|
+
import { CustomConfig, CustomConfigDefinition } from '../../customConfigOptions';
|
|
3
|
+
import { UploaderPublicApi } from '../../UploaderPublicApi';
|
|
4
|
+
export type PluginIconRegistration = {
|
|
5
|
+
name: string;
|
|
6
|
+
svg: string;
|
|
7
|
+
};
|
|
8
|
+
export type PluginI18nRegistration = Record<string, Record<string, string>>;
|
|
9
|
+
export type PluginSourceRegistration = {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional expansion function. When present, SourceList calls this to determine
|
|
15
|
+
* which source IDs should actually be rendered in place of this source.
|
|
16
|
+
* Useful for sources that map to multiple device-specific variants (e.g. camera
|
|
17
|
+
* expanding to separate photo/video buttons on mobile).
|
|
18
|
+
* Return `[id]` (the source's own id) to render it as-is.
|
|
19
|
+
*/
|
|
20
|
+
expand?: () => string[];
|
|
21
|
+
onSelect: () => Promise<void> | void;
|
|
22
|
+
};
|
|
23
|
+
export type PluginRenderDispose = () => void;
|
|
24
|
+
export type PluginRender = (el: HTMLElement, activityParams: Record<string, unknown>) => PluginRenderDispose | undefined;
|
|
25
|
+
export type PluginActivityRegistration = {
|
|
26
|
+
id: string;
|
|
27
|
+
render: PluginRender;
|
|
28
|
+
};
|
|
29
|
+
export type PluginFileActionRegistration = {
|
|
30
|
+
id: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
shouldRender: (fileEntry: OutputFileEntry) => boolean;
|
|
33
|
+
onClick: (fileEntry: OutputFileEntry) => void | Promise<void>;
|
|
34
|
+
};
|
|
35
|
+
export type PluginFileHookContext = {
|
|
36
|
+
/** The file to transform */
|
|
37
|
+
file: File | Blob;
|
|
38
|
+
/** MIME type of the file */
|
|
39
|
+
mimeType: string | null;
|
|
40
|
+
};
|
|
41
|
+
export type PluginFileHookRegistration = {
|
|
42
|
+
/**
|
|
43
|
+
* When the hook is called:
|
|
44
|
+
* - `'beforeUpload'`: called right before the file is uploaded.
|
|
45
|
+
* - `'onAdd'`: called after the file is added to the upload list.
|
|
46
|
+
*
|
|
47
|
+
* Return the modified file and mimeType. Return the originals if no transformation is needed.
|
|
48
|
+
*/
|
|
49
|
+
type: 'beforeUpload' | 'onAdd';
|
|
50
|
+
handler: (context: PluginFileHookContext) => PluginFileHookContext | Promise<PluginFileHookContext>;
|
|
51
|
+
};
|
|
52
|
+
export type PluginRegistryApi = {
|
|
53
|
+
registerSource: (source: PluginSourceRegistration) => PluginSourceRegistration;
|
|
54
|
+
registerActivity: (activity: PluginActivityRegistration) => PluginActivityRegistration;
|
|
55
|
+
registerFileAction: (fileAction: PluginFileActionRegistration) => PluginFileActionRegistration;
|
|
56
|
+
registerFileHook: (hook: PluginFileHookRegistration) => PluginFileHookRegistration;
|
|
57
|
+
registerIcon: (icon: PluginIconRegistration) => PluginIconRegistration;
|
|
58
|
+
registerI18n: (i18n: PluginI18nRegistration) => PluginI18nRegistration;
|
|
59
|
+
registerConfig: <T = unknown>(definition: CustomConfigDefinition<T>) => void;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* API for managing plugin config subscriptions
|
|
63
|
+
*/
|
|
64
|
+
export type PluginConfigApi = {
|
|
65
|
+
get: <TKey extends keyof (ConfigType & CustomConfig)>(configName: TKey) => (ConfigType & CustomConfig)[TKey];
|
|
66
|
+
subscribe: <TKey extends keyof (ConfigType & CustomConfig)>(configName: TKey, callback: (value: (ConfigType & CustomConfig)[TKey]) => void) => () => void;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* API for managing plugin activity interactions
|
|
70
|
+
*/
|
|
71
|
+
export type PluginActivityApi = {
|
|
72
|
+
/**
|
|
73
|
+
* Get the current activity parameters.
|
|
74
|
+
*
|
|
75
|
+
* @returns The current activity parameters object
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* const params = pluginApi.activity.getParams();
|
|
80
|
+
* console.log('Current params:', params);
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
getParams: () => Record<string, unknown>;
|
|
84
|
+
/**
|
|
85
|
+
* Subscribe to changes in activity parameters.
|
|
86
|
+
* The callback will be called immediately with the current params,
|
|
87
|
+
* and then whenever the params change.
|
|
88
|
+
*
|
|
89
|
+
* Subscriptions are automatically cleaned up when the plugin is disposed.
|
|
90
|
+
*
|
|
91
|
+
* @param callback - Function to call with the new params
|
|
92
|
+
* @returns Unsubscribe function
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* pluginApi.activity.subscribeToParams((params) => {
|
|
97
|
+
* console.log('Activity params changed:', params);
|
|
98
|
+
* });
|
|
99
|
+
* // Cleanup happens automatically on plugin disposal
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
subscribeToParams: (callback: (params: Record<string, unknown>) => void) => () => void;
|
|
103
|
+
};
|
|
104
|
+
export type PluginFileEntryUpdate = {
|
|
105
|
+
file?: File | Blob;
|
|
106
|
+
cdnUrl?: string | null;
|
|
107
|
+
cdnUrlModifiers?: string | null;
|
|
108
|
+
mimeType?: string | null;
|
|
109
|
+
};
|
|
110
|
+
export type PluginFilesApi = {
|
|
111
|
+
/**
|
|
112
|
+
* Update mutable properties of a file entry by its internalId.
|
|
113
|
+
* `fileSize` is recalculated automatically when `file` is provided.
|
|
114
|
+
*/
|
|
115
|
+
update: (internalId: string, changes: PluginFileEntryUpdate) => void;
|
|
116
|
+
};
|
|
117
|
+
export type PluginApi = {
|
|
118
|
+
registry: PluginRegistryApi;
|
|
119
|
+
config: PluginConfigApi;
|
|
120
|
+
activity: PluginActivityApi;
|
|
121
|
+
files: PluginFilesApi;
|
|
122
|
+
};
|
|
123
|
+
export type PluginUploaderApi = UploaderPublicApi;
|
|
124
|
+
export type PluginExports = {
|
|
125
|
+
dispose?: () => void;
|
|
126
|
+
};
|
|
127
|
+
export type PluginSetupResult = PluginExports | void | Promise<PluginExports | void>;
|
|
128
|
+
export type PluginSetupParams = {
|
|
129
|
+
pluginApi: PluginApi;
|
|
130
|
+
uploaderApi: PluginUploaderApi;
|
|
131
|
+
};
|
|
132
|
+
export type UploaderPlugin = {
|
|
133
|
+
id: string;
|
|
134
|
+
setup: (params: PluginSetupParams) => PluginSetupResult;
|
|
135
|
+
};
|
|
136
|
+
export type Owned<T> = T & {
|
|
137
|
+
pluginId: string;
|
|
138
|
+
};
|
|
139
|
+
export type PluginRegistrySnapshot = {
|
|
140
|
+
sources: Owned<PluginSourceRegistration>[];
|
|
141
|
+
activities: Owned<PluginActivityRegistration>[];
|
|
142
|
+
fileActions: Owned<PluginFileActionRegistration>[];
|
|
143
|
+
fileHooks: Owned<PluginFileHookRegistration>[];
|
|
144
|
+
icons: Owned<PluginIconRegistration>[];
|
|
145
|
+
i18n: Owned<PluginI18nRegistration>[];
|
|
146
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Metadata, UploadcareFile } from '@uploadcare/upload-client';
|
|
2
|
+
import { OutputErrorFile } from '../types/index';
|
|
3
|
+
import { TypedData } from './TypedData';
|
|
4
|
+
export interface UploadEntryData extends Record<string, unknown> {
|
|
5
|
+
file: File | null;
|
|
6
|
+
externalUrl: string | null;
|
|
7
|
+
fileName: string | null;
|
|
8
|
+
fileSize: number | null;
|
|
9
|
+
lastModified: number;
|
|
10
|
+
uploadProgress: number;
|
|
11
|
+
uuid: string | null;
|
|
12
|
+
isImage: boolean;
|
|
13
|
+
mimeType: string | null;
|
|
14
|
+
ctxName: string | null;
|
|
15
|
+
cdnUrl: string | null;
|
|
16
|
+
cdnUrlModifiers: string | null;
|
|
17
|
+
fileInfo: UploadcareFile | null;
|
|
18
|
+
isUploading: boolean;
|
|
19
|
+
abortController: AbortController | null;
|
|
20
|
+
thumbUrl: string | null;
|
|
21
|
+
silent: boolean;
|
|
22
|
+
source: string | null;
|
|
23
|
+
fullPath: string | null;
|
|
24
|
+
metadata: Metadata | null;
|
|
25
|
+
errors: OutputErrorFile[];
|
|
26
|
+
uploadError: Error | null;
|
|
27
|
+
isRemoved: boolean;
|
|
28
|
+
isQueuedForUploading: boolean;
|
|
29
|
+
isValidationPending: boolean;
|
|
30
|
+
isQueuedForValidation: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare const initialUploadEntryData: UploadEntryData;
|
|
33
|
+
export type UploadEntryTypedData = TypedData<UploadEntryData>;
|
|
34
|
+
export type UploadEntryKeys = keyof UploadEntryData;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { LitUploaderBlock } from '../../lit/LitUploaderBlock';
|
|
3
|
+
export type CameraMode = 'photo' | 'video';
|
|
4
|
+
export type CameraStatus = 'shot' | 'retake' | 'accept' | 'play' | 'stop' | 'pause' | 'resume';
|
|
5
|
+
export declare class CameraSource extends LitUploaderBlock {
|
|
6
|
+
couldBeCtxOwner: boolean;
|
|
7
|
+
private _unsubPermissions;
|
|
8
|
+
private _capturing;
|
|
9
|
+
private _chunks;
|
|
10
|
+
private _mediaRecorder;
|
|
11
|
+
private _stream;
|
|
12
|
+
private _selectedAudioId;
|
|
13
|
+
private _selectedCameraId;
|
|
14
|
+
private _activeTab;
|
|
15
|
+
private _options;
|
|
16
|
+
private _canvas;
|
|
17
|
+
private _ctx;
|
|
18
|
+
private _cameraDevices;
|
|
19
|
+
private _audioDevices;
|
|
20
|
+
private _permissionResponses;
|
|
21
|
+
private _permissionCleanupFns;
|
|
22
|
+
private _currentVideoSource;
|
|
23
|
+
private readonly _handlePreviewPlay;
|
|
24
|
+
private readonly _handlePreviewPause;
|
|
25
|
+
private _timerRef;
|
|
26
|
+
private _lineRef;
|
|
27
|
+
private _videoRef;
|
|
28
|
+
private _switcherRef;
|
|
29
|
+
private _startTime;
|
|
30
|
+
private _elapsedTime;
|
|
31
|
+
private _videoTransformCss;
|
|
32
|
+
private _videoHidden;
|
|
33
|
+
private _messageHidden;
|
|
34
|
+
private _requestBtnHidden;
|
|
35
|
+
private _cameraSelectOptions;
|
|
36
|
+
private _cameraSelectHidden;
|
|
37
|
+
private _l10nMessage;
|
|
38
|
+
private _timerHidden;
|
|
39
|
+
private _cameraHidden;
|
|
40
|
+
private _cameraActionsHidden;
|
|
41
|
+
private _audioSelectOptions;
|
|
42
|
+
private _audioSelectHidden;
|
|
43
|
+
private _audioSelectDisabled;
|
|
44
|
+
private _audioToggleMicrophoneHidden;
|
|
45
|
+
private _tabCameraHidden;
|
|
46
|
+
private _tabVideoHidden;
|
|
47
|
+
private _currentIcon;
|
|
48
|
+
private _currentTimelineIcon;
|
|
49
|
+
private _toggleMicrophoneIcon;
|
|
50
|
+
private _mutableClassButton;
|
|
51
|
+
private _chooseActionWithCamera;
|
|
52
|
+
private _handleCameraSelectChange;
|
|
53
|
+
private _handleAudioSelectChange;
|
|
54
|
+
private _handleRequestPermissions;
|
|
55
|
+
private _handleStartCamera;
|
|
56
|
+
private _handleToggleRecording;
|
|
57
|
+
private _handleToggleAudio;
|
|
58
|
+
private _handleRetake;
|
|
59
|
+
private _handleAccept;
|
|
60
|
+
private _handleClickTab;
|
|
61
|
+
private _updateTimer;
|
|
62
|
+
private _startTimer;
|
|
63
|
+
private _stopTimer;
|
|
64
|
+
private _startTimeline;
|
|
65
|
+
private _stopTimeline;
|
|
66
|
+
private _animationFrameId;
|
|
67
|
+
private _startRecording;
|
|
68
|
+
private _stopRecording;
|
|
69
|
+
/** This method is used to toggle recording pause/resume */
|
|
70
|
+
private _toggleRecording;
|
|
71
|
+
private _toggleEnableAudio;
|
|
72
|
+
/**
|
|
73
|
+
* Previewing the video that was recorded on the camera
|
|
74
|
+
*/
|
|
75
|
+
private _previewVideo;
|
|
76
|
+
private _attachPreviewListeners;
|
|
77
|
+
private _detachPreviewListeners;
|
|
78
|
+
private _setVideoSource;
|
|
79
|
+
/**
|
|
80
|
+
* Do not bind srcObject directly in the template, because it stops video pausing on shot.
|
|
81
|
+
* I really don'y know why but that's how it is. Assigning srcObject manually fixes the issue.
|
|
82
|
+
*/
|
|
83
|
+
private _applyVideoSource;
|
|
84
|
+
private _retake;
|
|
85
|
+
private _accept;
|
|
86
|
+
private _handlePhoto;
|
|
87
|
+
private _handleVideo;
|
|
88
|
+
private _setCameraState;
|
|
89
|
+
private _shot;
|
|
90
|
+
private _handleActiveTab;
|
|
91
|
+
private _createFile;
|
|
92
|
+
private _guessExtensionByMime;
|
|
93
|
+
/**
|
|
94
|
+
* The send file to the server
|
|
95
|
+
*/
|
|
96
|
+
private _toSend;
|
|
97
|
+
private get _cameraModes();
|
|
98
|
+
private _setPermissionsState;
|
|
99
|
+
private _makeStreamInactive;
|
|
100
|
+
private _stopCapture;
|
|
101
|
+
private _capture;
|
|
102
|
+
private _handlePermissionsChange;
|
|
103
|
+
private _permissionAccess;
|
|
104
|
+
private _teardownPermissionListeners;
|
|
105
|
+
private _requestDeviceAccess;
|
|
106
|
+
private _getDevices;
|
|
107
|
+
private _onActivate;
|
|
108
|
+
private _onDeactivate;
|
|
109
|
+
private _handleCameraModes;
|
|
110
|
+
initCallback(): void;
|
|
111
|
+
firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
112
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
113
|
+
private _destroy;
|
|
114
|
+
disconnectedCallback(): void;
|
|
115
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
116
|
+
}
|
|
117
|
+
declare global {
|
|
118
|
+
interface HTMLElementTagNameMap {
|
|
119
|
+
'uc-camera-source': CameraSource;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const CameraSourceTypes: Readonly<{
|
|
2
|
+
PHOTO: "photo";
|
|
3
|
+
VIDEO: "video";
|
|
4
|
+
}>;
|
|
5
|
+
export declare const CameraSourceEvents: Readonly<{
|
|
6
|
+
IDLE: "idle";
|
|
7
|
+
SHOT: "shot";
|
|
8
|
+
PLAY: "play";
|
|
9
|
+
PAUSE: "pause";
|
|
10
|
+
RESUME: "resume";
|
|
11
|
+
STOP: "stop";
|
|
12
|
+
RETAKE: "retake";
|
|
13
|
+
ACCEPT: "accept";
|
|
14
|
+
}>;
|
|
15
|
+
export type ModeCameraType = (typeof CameraSourceTypes)[keyof typeof CameraSourceTypes];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/index';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { LitBlock } from '../../../lit/LitBlock';
|
|
3
|
+
import { initState } from './state.js';
|
|
4
|
+
export declare class CloudImageEditorBlock extends LitBlock {
|
|
5
|
+
attributesMeta: ({
|
|
6
|
+
uuid: string;
|
|
7
|
+
} | {
|
|
8
|
+
'cdn-url': string;
|
|
9
|
+
}) & Partial<{
|
|
10
|
+
tabs: string;
|
|
11
|
+
'crop-preset': string;
|
|
12
|
+
}> & {
|
|
13
|
+
'ctx-name': string;
|
|
14
|
+
};
|
|
15
|
+
ctxOwner: boolean;
|
|
16
|
+
static styleAttrs: string[];
|
|
17
|
+
private _statusMessage;
|
|
18
|
+
private _imageSrc;
|
|
19
|
+
private _fileType;
|
|
20
|
+
private _showLoader;
|
|
21
|
+
uuid: string | null;
|
|
22
|
+
cdnUrl: string | null;
|
|
23
|
+
cropPreset: string;
|
|
24
|
+
tabs: string | null;
|
|
25
|
+
private _hasNetworkProblems;
|
|
26
|
+
private _isInitialized;
|
|
27
|
+
private _pendingInitUpdate;
|
|
28
|
+
private readonly _debouncedShowLoader;
|
|
29
|
+
private readonly _imgRef;
|
|
30
|
+
private readonly _cropperRef;
|
|
31
|
+
private readonly _faderRef;
|
|
32
|
+
private readonly _imgContainerRef;
|
|
33
|
+
private readonly _handleImageLoad;
|
|
34
|
+
private readonly _handleImageError;
|
|
35
|
+
private readonly _handleRetryNetwork;
|
|
36
|
+
private _scheduleInitialization;
|
|
37
|
+
init$: ReturnType<typeof initState>;
|
|
38
|
+
initCallback(): void;
|
|
39
|
+
private _assignSharedElements;
|
|
40
|
+
private _attachImageListeners;
|
|
41
|
+
private _detachImageListeners;
|
|
42
|
+
private get _imageClassName();
|
|
43
|
+
/**
|
|
44
|
+
* To proper work, we need non-zero size the element. So, we'll wait for it.
|
|
45
|
+
*/
|
|
46
|
+
private _waitForSize;
|
|
47
|
+
firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
48
|
+
disconnectedCallback(): void;
|
|
49
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
50
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
51
|
+
private _syncTabListFromProp;
|
|
52
|
+
private _syncCropPresetState;
|
|
53
|
+
updateImage(): Promise<void>;
|
|
54
|
+
initEditor(): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
declare global {
|
|
57
|
+
interface HTMLElementTagNameMap {
|
|
58
|
+
'uc-cloud-image-editor-block': CloudImageEditorBlock;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { LitBlock } from '../../../lit/LitBlock';
|
|
3
|
+
export declare class CropFrame extends LitBlock {
|
|
4
|
+
private _backdropMask?;
|
|
5
|
+
private _backdropMaskInner?;
|
|
6
|
+
private readonly _backdropMaskId;
|
|
7
|
+
private _frameThumbs?;
|
|
8
|
+
private _frameGuides?;
|
|
9
|
+
private _draggingThumb?;
|
|
10
|
+
private _hoverThumb?;
|
|
11
|
+
private _dragStartPoint?;
|
|
12
|
+
private _dragStartCrop?;
|
|
13
|
+
private _frameImage?;
|
|
14
|
+
private _guidesHidden;
|
|
15
|
+
private _draggingValue;
|
|
16
|
+
private readonly _svgRef;
|
|
17
|
+
private _svgReady;
|
|
18
|
+
private _pendingMaskHref;
|
|
19
|
+
private get _svgElement();
|
|
20
|
+
private get _dragging();
|
|
21
|
+
private set _dragging(value);
|
|
22
|
+
private _applyGuidesDragState;
|
|
23
|
+
private _shouldThumbBeDisabled;
|
|
24
|
+
private _createBackdrop;
|
|
25
|
+
/**
|
|
26
|
+
* @private Super Tricky workaround for the chromium bug See
|
|
27
|
+
* https://bugs.chromium.org/p/chromium/issues/detail?id=330815
|
|
28
|
+
*/
|
|
29
|
+
private _resizeBackdrop;
|
|
30
|
+
private _updateBackdrop;
|
|
31
|
+
private _updateFrame;
|
|
32
|
+
private _createThumb;
|
|
33
|
+
private _createThumbs;
|
|
34
|
+
private _createGuides;
|
|
35
|
+
private _createFrame;
|
|
36
|
+
private _handlePointerDown;
|
|
37
|
+
private readonly _handlePointerUp;
|
|
38
|
+
private readonly _handlePointerMove;
|
|
39
|
+
private _calcCropBox;
|
|
40
|
+
private readonly _handleSvgPointerMove;
|
|
41
|
+
private _updateCursor;
|
|
42
|
+
private _createMask;
|
|
43
|
+
private _updateMask;
|
|
44
|
+
private _render;
|
|
45
|
+
toggleThumbs(visible: boolean): void;
|
|
46
|
+
initCallback(): void;
|
|
47
|
+
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
48
|
+
private _initializeSvg;
|
|
49
|
+
disconnectedCallback(): void;
|
|
50
|
+
render(): TemplateResult;
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
'uc-crop-frame': CropFrame;
|
|
55
|
+
}
|
|
56
|
+
}
|