@uploadcare/file-uploader 0.50.1-alpha.2
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/LICENSE +21 -0
- package/README.md +165 -0
- package/abstract/ActivityBlock.d.ts +68 -0
- package/abstract/ActivityBlock.d.ts.map +1 -0
- package/abstract/ActivityBlock.js +207 -0
- package/abstract/Block.d.ts +99 -0
- package/abstract/Block.d.ts.map +1 -0
- package/abstract/Block.js +349 -0
- package/abstract/CTX.d.ts +31 -0
- package/abstract/CTX.d.ts.map +1 -0
- package/abstract/CTX.js +38 -0
- package/abstract/LocaleManager.d.ts +38 -0
- package/abstract/LocaleManager.d.ts.map +1 -0
- package/abstract/LocaleManager.js +127 -0
- package/abstract/SecureUploadsManager.d.ts +22 -0
- package/abstract/SecureUploadsManager.d.ts.map +1 -0
- package/abstract/SecureUploadsManager.js +87 -0
- package/abstract/SolutionBlock.d.ts +23 -0
- package/abstract/SolutionBlock.d.ts.map +1 -0
- package/abstract/SolutionBlock.js +23 -0
- package/abstract/TypedCollection.d.ts +127 -0
- package/abstract/TypedCollection.d.ts.map +1 -0
- package/abstract/TypedCollection.js +245 -0
- package/abstract/TypedData.d.ts +47 -0
- package/abstract/TypedData.d.ts.map +1 -0
- package/abstract/TypedData.js +77 -0
- package/abstract/UploaderBlock.d.ts +114 -0
- package/abstract/UploaderBlock.d.ts.map +1 -0
- package/abstract/UploaderBlock.js +444 -0
- package/abstract/UploaderPublicApi.d.ts +90 -0
- package/abstract/UploaderPublicApi.d.ts.map +1 -0
- package/abstract/UploaderPublicApi.js +316 -0
- package/abstract/ValidationManager.d.ts +31 -0
- package/abstract/ValidationManager.d.ts.map +1 -0
- package/abstract/ValidationManager.js +162 -0
- package/abstract/a11y.d.ts +20 -0
- package/abstract/a11y.d.ts.map +1 -0
- package/abstract/a11y.js +118 -0
- package/abstract/buildOutputCollectionState.d.ts +8 -0
- package/abstract/buildOutputCollectionState.d.ts.map +1 -0
- package/abstract/buildOutputCollectionState.js +136 -0
- package/abstract/connectBlocksFrom.d.ts +8 -0
- package/abstract/connectBlocksFrom.d.ts.map +1 -0
- package/abstract/connectBlocksFrom.js +34 -0
- package/abstract/l10nProcessor.d.ts +7 -0
- package/abstract/l10nProcessor.d.ts.map +1 -0
- package/abstract/l10nProcessor.js +80 -0
- package/abstract/localeRegistry.d.ts +5 -0
- package/abstract/localeRegistry.d.ts.map +1 -0
- package/abstract/localeRegistry.js +63 -0
- package/abstract/registerBlocks.d.ts +5 -0
- package/abstract/registerBlocks.d.ts.map +1 -0
- package/abstract/registerBlocks.js +31 -0
- package/abstract/sharedConfigKey.d.ts +2 -0
- package/abstract/sharedConfigKey.d.ts.map +1 -0
- package/abstract/sharedConfigKey.js +8 -0
- package/abstract/uploadEntrySchema.d.ts +64 -0
- package/abstract/uploadEntrySchema.d.ts.map +1 -0
- package/abstract/uploadEntrySchema.js +138 -0
- package/blocks/ActivityHeader/ActivityHeader.d.ts +4 -0
- package/blocks/ActivityHeader/ActivityHeader.d.ts.map +1 -0
- package/blocks/ActivityHeader/ActivityHeader.js +3 -0
- package/blocks/ActivityHeader/activity-header.css +14 -0
- package/blocks/CameraSource/CameraSource.d.ts +39 -0
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -0
- package/blocks/CameraSource/CameraSource.js +253 -0
- package/blocks/CameraSource/camera-source.css +107 -0
- package/blocks/CloudImageEditor/index.css +1 -0
- package/blocks/CloudImageEditor/index.d.ts +2 -0
- package/blocks/CloudImageEditor/index.d.ts.map +1 -0
- package/blocks/CloudImageEditor/index.js +1 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts +58 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.js +228 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +146 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/CropFrame.js +511 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts +10 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.js +44 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts +6 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.js +39 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +18 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +155 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +106 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorImageCropper.js +551 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +132 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorImageFader.js +454 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts +9 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorOperationControl.js +39 -0
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts +7 -0
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorScroller.js +33 -0
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts +24 -0
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorSlider.js +118 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +104 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/EditorToolbar.js +441 -0
- package/blocks/CloudImageEditor/src/crop-utils.d.ts +123 -0
- package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/crop-utils.js +729 -0
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts +11 -0
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/cropper-constants.js +11 -0
- package/blocks/CloudImageEditor/src/css/common.css +1157 -0
- package/blocks/CloudImageEditor/src/css/icons.css +12 -0
- package/blocks/CloudImageEditor/src/css/index.css +2 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts +20 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.js +90 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts +11 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.js +52 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts +17 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.js +71 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts +16 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +178 -0
- package/blocks/CloudImageEditor/src/index.d.ts +15 -0
- package/blocks/CloudImageEditor/src/index.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/index.js +14 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts +15 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/FocusVisible.js +33 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +10 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.js +256 -0
- package/blocks/CloudImageEditor/src/lib/classNames.d.ts +3 -0
- package/blocks/CloudImageEditor/src/lib/classNames.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/classNames.js +34 -0
- package/blocks/CloudImageEditor/src/lib/linspace.d.ts +8 -0
- package/blocks/CloudImageEditor/src/lib/linspace.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/linspace.js +14 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +2 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.js +14 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts +2 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/parseTabs.js +14 -0
- package/blocks/CloudImageEditor/src/lib/pick.d.ts +7 -0
- package/blocks/CloudImageEditor/src/lib/pick.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/pick.js +15 -0
- package/blocks/CloudImageEditor/src/lib/preloadImage.d.ts +11 -0
- package/blocks/CloudImageEditor/src/lib/preloadImage.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/preloadImage.js +38 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +14 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/lib/transformationUtils.js +167 -0
- package/blocks/CloudImageEditor/src/state.d.ts +38 -0
- package/blocks/CloudImageEditor/src/state.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/state.js +92 -0
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts +3 -0
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/svg-sprite.js +1 -0
- package/blocks/CloudImageEditor/src/template.d.ts +2 -0
- package/blocks/CloudImageEditor/src/template.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/template.js +36 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.d.ts +58 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/toolbar-constants.js +114 -0
- package/blocks/CloudImageEditor/src/types.d.ts +58 -0
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/types.js +61 -0
- package/blocks/CloudImageEditor/src/util.d.ts +2 -0
- package/blocks/CloudImageEditor/src/util.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/util.js +19 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +31 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +113 -0
- package/blocks/CloudImageEditorActivity/index.css +13 -0
- package/blocks/CloudImageEditorActivity/test.d.ts +2 -0
- package/blocks/CloudImageEditorActivity/test.d.ts.map +1 -0
- package/blocks/CloudImageEditorActivity/test.js +9 -0
- package/blocks/Config/Config.d.ts +67 -0
- package/blocks/Config/Config.d.ts.map +1 -0
- package/blocks/Config/Config.js +246 -0
- package/blocks/Config/config.css +3 -0
- package/blocks/Config/initialConfig.d.ts +6 -0
- package/blocks/Config/initialConfig.d.ts.map +1 -0
- package/blocks/Config/initialConfig.js +69 -0
- package/blocks/Config/normalizeConfigValue.d.ts +3 -0
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -0
- package/blocks/Config/normalizeConfigValue.js +177 -0
- package/blocks/Copyright/Copyright.d.ts +4 -0
- package/blocks/Copyright/Copyright.d.ts.map +1 -0
- package/blocks/Copyright/Copyright.js +24 -0
- package/blocks/Copyright/copyright.css +31 -0
- package/blocks/DropArea/DropArea.d.ts +49 -0
- package/blocks/DropArea/DropArea.d.ts.map +1 -0
- package/blocks/DropArea/DropArea.js +273 -0
- package/blocks/DropArea/addDropzone.d.ts +21 -0
- package/blocks/DropArea/addDropzone.d.ts.map +1 -0
- package/blocks/DropArea/addDropzone.js +137 -0
- package/blocks/DropArea/drop-area.css +188 -0
- package/blocks/DropArea/getDropItems.d.ts +16 -0
- package/blocks/DropArea/getDropItems.d.ts.map +1 -0
- package/blocks/DropArea/getDropItems.js +167 -0
- package/blocks/ExternalSource/ExternalSource.d.ts +98 -0
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -0
- package/blocks/ExternalSource/ExternalSource.js +268 -0
- package/blocks/ExternalSource/buildStyles.d.ts +27 -0
- package/blocks/ExternalSource/buildStyles.d.ts.map +1 -0
- package/blocks/ExternalSource/buildStyles.js +133 -0
- package/blocks/ExternalSource/external-source.css +65 -0
- package/blocks/ExternalSource/messages.d.ts +3 -0
- package/blocks/ExternalSource/messages.d.ts.map +1 -0
- package/blocks/ExternalSource/messages.js +35 -0
- package/blocks/ExternalSource/query-string.d.ts +8 -0
- package/blocks/ExternalSource/query-string.d.ts.map +1 -0
- package/blocks/ExternalSource/query-string.js +14 -0
- package/blocks/FileItem/FileItem.d.ts +97 -0
- package/blocks/FileItem/FileItem.d.ts.map +1 -0
- package/blocks/FileItem/FileItem.js +460 -0
- package/blocks/FileItem/file-item.css +140 -0
- package/blocks/FormInput/FormInput.d.ts +7 -0
- package/blocks/FormInput/FormInput.d.ts.map +1 -0
- package/blocks/FormInput/FormInput.js +92 -0
- package/blocks/Icon/Icon.d.ts +12 -0
- package/blocks/Icon/Icon.d.ts.map +1 -0
- package/blocks/Icon/Icon.js +44 -0
- package/blocks/Icon/icon.css +12 -0
- package/blocks/Img/Img.d.ts +4 -0
- package/blocks/Img/Img.d.ts.map +1 -0
- package/blocks/Img/Img.js +21 -0
- package/blocks/Img/ImgBase.d.ts +80 -0
- package/blocks/Img/ImgBase.d.ts.map +1 -0
- package/blocks/Img/ImgBase.js +408 -0
- package/blocks/Img/ImgConfig.d.ts +31 -0
- package/blocks/Img/ImgConfig.d.ts.map +1 -0
- package/blocks/Img/ImgConfig.js +102 -0
- package/blocks/Img/configurations.d.ts +12 -0
- package/blocks/Img/configurations.d.ts.map +1 -0
- package/blocks/Img/configurations.js +14 -0
- package/blocks/Img/props-map.d.ts +29 -0
- package/blocks/Img/props-map.d.ts.map +1 -0
- package/blocks/Img/props-map.js +34 -0
- package/blocks/Img/test.css +16 -0
- package/blocks/Img/utils/parseObjectToString.d.ts +2 -0
- package/blocks/Img/utils/parseObjectToString.d.ts.map +1 -0
- package/blocks/Img/utils/parseObjectToString.js +13 -0
- package/blocks/Modal/Modal.d.ts +24 -0
- package/blocks/Modal/Modal.d.ts.map +1 -0
- package/blocks/Modal/Modal.js +116 -0
- package/blocks/Modal/modal.css +92 -0
- package/blocks/ProgressBar/ProgressBar.d.ts +10 -0
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/blocks/ProgressBar/ProgressBar.js +38 -0
- package/blocks/ProgressBar/progress-bar.css +25 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts +8 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts.map +1 -0
- package/blocks/ProgressBarCommon/ProgressBarCommon.js +44 -0
- package/blocks/ProgressBarCommon/progress-bar-common.css +16 -0
- package/blocks/Range/Range.d.ts +16 -0
- package/blocks/Range/Range.d.ts.map +1 -0
- package/blocks/Range/Range.js +44 -0
- package/blocks/Range/range.css +65 -0
- package/blocks/Select/Select.d.ts +9 -0
- package/blocks/Select/Select.d.ts.map +1 -0
- package/blocks/Select/Select.js +35 -0
- package/blocks/Select/select.css +22 -0
- package/blocks/SimpleBtn/SimpleBtn.d.ts +26 -0
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -0
- package/blocks/SimpleBtn/SimpleBtn.js +54 -0
- package/blocks/SimpleBtn/simple-btn.css +64 -0
- package/blocks/SourceBtn/SourceBtn.d.ts +58 -0
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -0
- package/blocks/SourceBtn/SourceBtn.js +145 -0
- package/blocks/SourceBtn/source-btn.css +45 -0
- package/blocks/SourceList/SourceList.d.ts +4 -0
- package/blocks/SourceList/SourceList.d.ts.map +1 -0
- package/blocks/SourceList/SourceList.js +20 -0
- package/blocks/StartFrom/StartFrom.d.ts +7 -0
- package/blocks/StartFrom/StartFrom.d.ts.map +1 -0
- package/blocks/StartFrom/StartFrom.js +14 -0
- package/blocks/StartFrom/start-from.css +32 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +107 -0
- package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -0
- package/blocks/UploadCtxProvider/EventEmitter.js +132 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +35 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -0
- package/blocks/UploadCtxProvider/UploadCtxProvider.js +45 -0
- package/blocks/UploadList/UploadList.d.ts +59 -0
- package/blocks/UploadList/UploadList.d.ts.map +1 -0
- package/blocks/UploadList/UploadList.js +237 -0
- package/blocks/UploadList/upload-list.css +74 -0
- package/blocks/UrlSource/UrlSource.d.ts +9 -0
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -0
- package/blocks/UrlSource/UrlSource.js +61 -0
- package/blocks/UrlSource/url-source.css +24 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts +17 -0
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -0
- package/blocks/svg-backgrounds/svg-backgrounds.js +45 -0
- package/blocks/themes/uc-basic/common.css +116 -0
- package/blocks/themes/uc-basic/config.css +4 -0
- package/blocks/themes/uc-basic/index.css +32 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +3 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -0
- package/blocks/themes/uc-basic/svg-sprite.js +1 -0
- package/blocks/themes/uc-basic/theme.css +232 -0
- package/blocks/utils/UploadSource.d.ts +9 -0
- package/blocks/utils/UploadSource.d.ts.map +1 -0
- package/blocks/utils/UploadSource.js +8 -0
- package/blocks/utils/abilities.d.ts +2 -0
- package/blocks/utils/abilities.d.ts.map +1 -0
- package/blocks/utils/abilities.js +3 -0
- package/blocks/utils/comma-separated.d.ts +3 -0
- package/blocks/utils/comma-separated.d.ts.map +1 -0
- package/blocks/utils/comma-separated.js +19 -0
- package/blocks/utils/debounce.d.ts +10 -0
- package/blocks/utils/debounce.d.ts.map +1 -0
- package/blocks/utils/debounce.js +22 -0
- package/blocks/utils/resizeImage.d.ts +6 -0
- package/blocks/utils/resizeImage.d.ts.map +1 -0
- package/blocks/utils/resizeImage.js +40 -0
- package/blocks/utils/throttle.d.ts +4 -0
- package/blocks/utils/throttle.d.ts.map +1 -0
- package/blocks/utils/throttle.js +45 -0
- package/blocks/utils/userAgent.d.ts +6 -0
- package/blocks/utils/userAgent.d.ts.map +1 -0
- package/blocks/utils/userAgent.js +14 -0
- package/env.d.ts +4 -0
- package/env.d.ts.map +1 -0
- package/env.js +3 -0
- package/index.d.ts +39 -0
- package/index.d.ts.map +1 -0
- package/index.js +51 -0
- package/index.ssr.d.ts +961 -0
- package/index.ssr.d.ts.map +1 -0
- package/index.ssr.js +1461 -0
- package/locales/file-uploader/ar.d.ts +114 -0
- package/locales/file-uploader/ar.d.ts.map +1 -0
- package/locales/file-uploader/ar.js +113 -0
- package/locales/file-uploader/az.d.ts +106 -0
- package/locales/file-uploader/az.d.ts.map +1 -0
- package/locales/file-uploader/az.js +105 -0
- package/locales/file-uploader/ca.d.ts +108 -0
- package/locales/file-uploader/ca.d.ts.map +1 -0
- package/locales/file-uploader/ca.js +108 -0
- package/locales/file-uploader/cs.d.ts +110 -0
- package/locales/file-uploader/cs.d.ts.map +1 -0
- package/locales/file-uploader/cs.js +110 -0
- package/locales/file-uploader/da.d.ts +106 -0
- package/locales/file-uploader/da.d.ts.map +1 -0
- package/locales/file-uploader/da.js +106 -0
- package/locales/file-uploader/de.d.ts +106 -0
- package/locales/file-uploader/de.d.ts.map +1 -0
- package/locales/file-uploader/de.js +107 -0
- package/locales/file-uploader/el.d.ts +106 -0
- package/locales/file-uploader/el.d.ts.map +1 -0
- package/locales/file-uploader/el.js +107 -0
- package/locales/file-uploader/en.d.ts +106 -0
- package/locales/file-uploader/en.d.ts.map +1 -0
- package/locales/file-uploader/en.js +105 -0
- package/locales/file-uploader/es.d.ts +108 -0
- package/locales/file-uploader/es.d.ts.map +1 -0
- package/locales/file-uploader/es.js +108 -0
- package/locales/file-uploader/et.d.ts +106 -0
- package/locales/file-uploader/et.d.ts.map +1 -0
- package/locales/file-uploader/et.js +105 -0
- package/locales/file-uploader/fr.d.ts +108 -0
- package/locales/file-uploader/fr.d.ts.map +1 -0
- package/locales/file-uploader/fr.js +108 -0
- package/locales/file-uploader/he.d.ts +108 -0
- package/locales/file-uploader/he.d.ts.map +1 -0
- package/locales/file-uploader/he.js +107 -0
- package/locales/file-uploader/hy.d.ts +106 -0
- package/locales/file-uploader/hy.d.ts.map +1 -0
- package/locales/file-uploader/hy.js +105 -0
- package/locales/file-uploader/is.d.ts +106 -0
- package/locales/file-uploader/is.d.ts.map +1 -0
- package/locales/file-uploader/is.js +105 -0
- package/locales/file-uploader/it.d.ts +108 -0
- package/locales/file-uploader/it.d.ts.map +1 -0
- package/locales/file-uploader/it.js +108 -0
- package/locales/file-uploader/ja.d.ts +106 -0
- package/locales/file-uploader/ja.d.ts.map +1 -0
- package/locales/file-uploader/ja.js +105 -0
- package/locales/file-uploader/ka.d.ts +106 -0
- package/locales/file-uploader/ka.d.ts.map +1 -0
- package/locales/file-uploader/ka.js +105 -0
- package/locales/file-uploader/kk.d.ts +106 -0
- package/locales/file-uploader/kk.d.ts.map +1 -0
- package/locales/file-uploader/kk.js +105 -0
- package/locales/file-uploader/ko.d.ts +106 -0
- package/locales/file-uploader/ko.d.ts.map +1 -0
- package/locales/file-uploader/ko.js +104 -0
- package/locales/file-uploader/lv.d.ts +108 -0
- package/locales/file-uploader/lv.d.ts.map +1 -0
- package/locales/file-uploader/lv.js +107 -0
- package/locales/file-uploader/nb.d.ts +106 -0
- package/locales/file-uploader/nb.d.ts.map +1 -0
- package/locales/file-uploader/nb.js +105 -0
- package/locales/file-uploader/nl.d.ts +106 -0
- package/locales/file-uploader/nl.d.ts.map +1 -0
- package/locales/file-uploader/nl.js +106 -0
- package/locales/file-uploader/pl.d.ts +110 -0
- package/locales/file-uploader/pl.d.ts.map +1 -0
- package/locales/file-uploader/pl.js +109 -0
- package/locales/file-uploader/pt.d.ts +108 -0
- package/locales/file-uploader/pt.d.ts.map +1 -0
- package/locales/file-uploader/pt.js +108 -0
- package/locales/file-uploader/ro.d.ts +108 -0
- package/locales/file-uploader/ro.d.ts.map +1 -0
- package/locales/file-uploader/ro.js +108 -0
- package/locales/file-uploader/ru.d.ts +110 -0
- package/locales/file-uploader/ru.d.ts.map +1 -0
- package/locales/file-uploader/ru.js +109 -0
- package/locales/file-uploader/sk.d.ts +110 -0
- package/locales/file-uploader/sk.d.ts.map +1 -0
- package/locales/file-uploader/sk.js +109 -0
- package/locales/file-uploader/sr.d.ts +108 -0
- package/locales/file-uploader/sr.d.ts.map +1 -0
- package/locales/file-uploader/sr.js +107 -0
- package/locales/file-uploader/sv.d.ts +106 -0
- package/locales/file-uploader/sv.d.ts.map +1 -0
- package/locales/file-uploader/sv.js +105 -0
- package/locales/file-uploader/tr.d.ts +106 -0
- package/locales/file-uploader/tr.d.ts.map +1 -0
- package/locales/file-uploader/tr.js +105 -0
- package/locales/file-uploader/uk.d.ts +110 -0
- package/locales/file-uploader/uk.d.ts.map +1 -0
- package/locales/file-uploader/uk.js +109 -0
- package/locales/file-uploader/vi.d.ts +106 -0
- package/locales/file-uploader/vi.d.ts.map +1 -0
- package/locales/file-uploader/vi.js +105 -0
- package/locales/file-uploader/zh-TW.d.ts +106 -0
- package/locales/file-uploader/zh-TW.d.ts.map +1 -0
- package/locales/file-uploader/zh-TW.js +105 -0
- package/locales/file-uploader/zh.d.ts +106 -0
- package/locales/file-uploader/zh.d.ts.map +1 -0
- package/locales/file-uploader/zh.js +105 -0
- package/package.json +142 -0
- package/solutions/adaptive-image/index.d.ts +3 -0
- package/solutions/adaptive-image/index.d.ts.map +1 -0
- package/solutions/adaptive-image/index.js +5 -0
- package/solutions/cloud-image-editor/CloudImageEditor.d.ts +4 -0
- package/solutions/cloud-image-editor/CloudImageEditor.d.ts.map +1 -0
- package/solutions/cloud-image-editor/CloudImageEditor.js +12 -0
- package/solutions/cloud-image-editor/index.css +2 -0
- package/solutions/cloud-image-editor/index.d.ts +6 -0
- package/solutions/cloud-image-editor/index.d.ts.map +1 -0
- package/solutions/cloud-image-editor/index.js +11 -0
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts +27 -0
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -0
- package/solutions/file-uploader/inline/FileUploaderInline.js +75 -0
- package/solutions/file-uploader/inline/index.css +54 -0
- package/solutions/file-uploader/inline/index.d.ts +2 -0
- package/solutions/file-uploader/inline/index.d.ts.map +1 -0
- package/solutions/file-uploader/inline/index.js +1 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +7 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -0
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +46 -0
- package/solutions/file-uploader/minimal/index.css +137 -0
- package/solutions/file-uploader/minimal/index.d.ts +14 -0
- package/solutions/file-uploader/minimal/index.d.ts.map +1 -0
- package/solutions/file-uploader/minimal/index.js +13 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +26 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.js +66 -0
- package/solutions/file-uploader/regular/index.css +1 -0
- package/solutions/file-uploader/regular/index.d.ts +2 -0
- package/solutions/file-uploader/regular/index.d.ts.map +1 -0
- package/solutions/file-uploader/regular/index.js +1 -0
- package/types/events.d.ts +5 -0
- package/types/events.js +1 -0
- package/types/exported.d.ts +295 -0
- package/types/exported.js +1 -0
- package/types/global.d.ts +8 -0
- package/types/https.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.js +3 -0
- package/types/jsx.d.ts +63 -0
- package/types/jsx.js +1 -0
- package/utils/WindowHeightTracker.d.ts +24 -0
- package/utils/WindowHeightTracker.d.ts.map +1 -0
- package/utils/WindowHeightTracker.js +51 -0
- package/utils/cdn-utils.d.ts +59 -0
- package/utils/cdn-utils.d.ts.map +1 -0
- package/utils/cdn-utils.js +201 -0
- package/utils/cdn-utils.test.d.ts +2 -0
- package/utils/cdn-utils.test.d.ts.map +1 -0
- package/utils/cdn-utils.test.js +227 -0
- package/utils/delay.d.ts +2 -0
- package/utils/delay.d.ts.map +1 -0
- package/utils/delay.js +4 -0
- package/utils/fileTypes.d.ts +8 -0
- package/utils/fileTypes.d.ts.map +1 -0
- package/utils/fileTypes.js +95 -0
- package/utils/fileTypes.test.d.ts +2 -0
- package/utils/fileTypes.test.d.ts.map +1 -0
- package/utils/fileTypes.test.js +89 -0
- package/utils/getLocaleDirection.d.ts +2 -0
- package/utils/getLocaleDirection.d.ts.map +1 -0
- package/utils/getLocaleDirection.js +18 -0
- package/utils/getPluralForm.d.ts +3 -0
- package/utils/getPluralForm.d.ts.map +1 -0
- package/utils/getPluralForm.js +13 -0
- package/utils/getPluralForm.test.d.ts +2 -0
- package/utils/getPluralForm.test.d.ts.map +1 -0
- package/utils/getPluralForm.test.js +16 -0
- package/utils/ifRef.d.ts +7 -0
- package/utils/ifRef.d.ts.map +1 -0
- package/utils/ifRef.js +9 -0
- package/utils/isSecureTokenExpired.d.ts +4 -0
- package/utils/isSecureTokenExpired.d.ts.map +1 -0
- package/utils/isSecureTokenExpired.js +17 -0
- package/utils/isSecureTokenExpired.test.d.ts +2 -0
- package/utils/isSecureTokenExpired.test.d.ts.map +1 -0
- package/utils/isSecureTokenExpired.test.js +33 -0
- package/utils/memoize.d.ts +2 -0
- package/utils/memoize.d.ts.map +1 -0
- package/utils/memoize.js +23 -0
- package/utils/memoize.test.d.ts +2 -0
- package/utils/memoize.test.d.ts.map +1 -0
- package/utils/memoize.test.js +38 -0
- package/utils/mixinClass.d.ts +8 -0
- package/utils/mixinClass.d.ts.map +1 -0
- package/utils/mixinClass.js +18 -0
- package/utils/parseCdnUrl.d.ts +9 -0
- package/utils/parseCdnUrl.d.ts.map +1 -0
- package/utils/parseCdnUrl.js +20 -0
- package/utils/parseCdnUrl.test.d.ts +2 -0
- package/utils/parseCdnUrl.test.d.ts.map +1 -0
- package/utils/parseCdnUrl.test.js +78 -0
- package/utils/parseShrink.d.ts +5 -0
- package/utils/parseShrink.d.ts.map +1 -0
- package/utils/parseShrink.js +34 -0
- package/utils/parseShrink.test.d.ts +2 -0
- package/utils/parseShrink.test.d.ts.map +1 -0
- package/utils/parseShrink.test.js +26 -0
- package/utils/prettyBytes.d.ts +11 -0
- package/utils/prettyBytes.d.ts.map +1 -0
- package/utils/prettyBytes.js +64 -0
- package/utils/prettyBytes.test.d.ts +2 -0
- package/utils/prettyBytes.test.d.ts.map +1 -0
- package/utils/prettyBytes.test.js +99 -0
- package/utils/stringToArray.d.ts +2 -0
- package/utils/stringToArray.d.ts.map +1 -0
- package/utils/stringToArray.js +11 -0
- package/utils/stringToArray.test.d.ts +2 -0
- package/utils/stringToArray.test.d.ts.map +1 -0
- package/utils/stringToArray.test.js +20 -0
- package/utils/template-utils.d.ts +40 -0
- package/utils/template-utils.d.ts.map +1 -0
- package/utils/template-utils.js +50 -0
- package/utils/template-utils.test.d.ts +2 -0
- package/utils/template-utils.test.d.ts.map +1 -0
- package/utils/template-utils.test.js +56 -0
- package/utils/toKebabCase.d.ts +3 -0
- package/utils/toKebabCase.d.ts.map +1 -0
- package/utils/toKebabCase.js +15 -0
- package/utils/toKebabCase.test.d.ts +2 -0
- package/utils/toKebabCase.test.d.ts.map +1 -0
- package/utils/toKebabCase.test.js +11 -0
- package/utils/transparentPixelSrc.d.ts +2 -0
- package/utils/transparentPixelSrc.d.ts.map +1 -0
- package/utils/transparentPixelSrc.js +2 -0
- package/utils/uniqueArray.d.ts +2 -0
- package/utils/uniqueArray.d.ts.map +1 -0
- package/utils/uniqueArray.js +8 -0
- package/utils/uniqueArray.test.d.ts +2 -0
- package/utils/uniqueArray.test.d.ts.map +1 -0
- package/utils/uniqueArray.test.js +8 -0
- package/utils/validators/collection/index.d.ts +3 -0
- package/utils/validators/collection/index.d.ts.map +1 -0
- package/utils/validators/collection/index.js +2 -0
- package/utils/validators/collection/validateCollectionUploadError.d.ts +3 -0
- package/utils/validators/collection/validateCollectionUploadError.d.ts.map +1 -0
- package/utils/validators/collection/validateCollectionUploadError.js +11 -0
- package/utils/validators/collection/validateMultiple.d.ts +3 -0
- package/utils/validators/collection/validateMultiple.d.ts.map +1 -0
- package/utils/validators/collection/validateMultiple.js +43 -0
- package/utils/validators/file/index.d.ts +5 -0
- package/utils/validators/file/index.d.ts.map +1 -0
- package/utils/validators/file/index.js +4 -0
- package/utils/validators/file/validateFileType.d.ts +3 -0
- package/utils/validators/file/validateFileType.d.ts.map +1 -0
- package/utils/validators/file/validateFileType.js +30 -0
- package/utils/validators/file/validateIsImage.d.ts +3 -0
- package/utils/validators/file/validateIsImage.d.ts.map +1 -0
- package/utils/validators/file/validateIsImage.js +25 -0
- package/utils/validators/file/validateMaxSizeLimit.d.ts +3 -0
- package/utils/validators/file/validateMaxSizeLimit.d.ts.map +1 -0
- package/utils/validators/file/validateMaxSizeLimit.js +15 -0
- package/utils/validators/file/validateUploadError.d.ts +3 -0
- package/utils/validators/file/validateUploadError.d.ts.map +1 -0
- package/utils/validators/file/validateUploadError.js +48 -0
- package/utils/waitForAttribute.d.ts +8 -0
- package/utils/waitForAttribute.d.ts.map +1 -0
- package/utils/waitForAttribute.js +43 -0
- package/utils/waitForAttribute.test.d.ts +2 -0
- package/utils/waitForAttribute.test.d.ts.map +1 -0
- package/utils/waitForAttribute.test.js +78 -0
- package/utils/warnOnce.d.ts +3 -0
- package/utils/warnOnce.d.ts.map +1 -0
- package/utils/warnOnce.js +11 -0
- package/utils/wildcardRegexp.d.ts +2 -0
- package/utils/wildcardRegexp.d.ts.map +1 -0
- package/utils/wildcardRegexp.js +17 -0
- package/utils/wildcardRegexp.test.d.ts +2 -0
- package/utils/wildcardRegexp.test.d.ts.map +1 -0
- package/utils/wildcardRegexp.test.js +19 -0
- package/web/blocks.iife.min.js +29 -0
- package/web/blocks.min.js +29 -0
- package/web/lr-basic.min.css +1 -0
- package/web/lr-cloud-image-editor.min.css +1 -0
- package/web/lr-cloud-image-editor.min.js +29 -0
- package/web/lr-file-uploader-inline.min.css +1 -0
- package/web/lr-file-uploader-inline.min.js +29 -0
- package/web/lr-file-uploader-minimal.min.css +1 -0
- package/web/lr-file-uploader-minimal.min.js +28 -0
- package/web/lr-file-uploader-regular.min.css +1 -0
- package/web/lr-file-uploader-regular.min.js +29 -0
- package/web/lr-img.min.js +28 -0
- package/web/uc-basic.min.css +1 -0
- package/web/uc-cloud-image-editor.min.css +1 -0
- package/web/uc-cloud-image-editor.min.js +29 -0
- package/web/uc-file-uploader-inline.min.css +1 -0
- package/web/uc-file-uploader-inline.min.js +29 -0
- package/web/uc-file-uploader-minimal.min.css +1 -0
- package/web/uc-file-uploader-minimal.min.js +28 -0
- package/web/uc-file-uploader-regular.min.css +1 -0
- package/web/uc-file-uploader-regular.min.js +29 -0
- package/web/uc-img.min.js +28 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
3
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
4
|
+
import { CloudImageEditorBlock } from '../CloudImageEditor/index.js';
|
|
5
|
+
|
|
6
|
+
export class CloudImageEditorActivity extends UploaderBlock {
|
|
7
|
+
couldBeCtxOwner = true;
|
|
8
|
+
activityType = ActivityBlock.activities.CLOUD_IMG_EDIT;
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
|
|
13
|
+
this.init$ = {
|
|
14
|
+
...this.init$,
|
|
15
|
+
cdnUrl: null,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
initCallback() {
|
|
20
|
+
super.initCallback();
|
|
21
|
+
|
|
22
|
+
this.registerActivity(this.activityType, {
|
|
23
|
+
onActivate: () => this.mountEditor(),
|
|
24
|
+
onDeactivate: () => this.unmountEditor(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
this.sub('*focusedEntry', (/** @type {import('../../abstract/TypedData.js').TypedData} */ entry) => {
|
|
28
|
+
if (!entry) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.entry = entry;
|
|
32
|
+
|
|
33
|
+
this.entry.subscribe('cdnUrl', (cdnUrl) => {
|
|
34
|
+
if (cdnUrl) {
|
|
35
|
+
this.$.cdnUrl = cdnUrl;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
this.subConfigValue('cropPreset', (cropPreset) => {
|
|
41
|
+
if (this._instance && this._instance.getAttribute('crop-preset') !== cropPreset) {
|
|
42
|
+
this._instance.setAttribute('crop-preset', cropPreset);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
this.subConfigValue('cloudImageEditorTabs', (tabs) => {
|
|
47
|
+
if (this._instance && this._instance.getAttribute('tabs') !== tabs) {
|
|
48
|
+
this._instance.setAttribute('tabs', tabs);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** @param {CustomEvent<import('../CloudImageEditor/src/types.js').ApplyResult>} e */
|
|
54
|
+
handleApply(e) {
|
|
55
|
+
if (!this.entry) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
let result = e.detail;
|
|
59
|
+
this.entry.setMultipleValues({
|
|
60
|
+
cdnUrl: result.cdnUrl,
|
|
61
|
+
cdnUrlModifiers: result.cdnUrlModifiers,
|
|
62
|
+
});
|
|
63
|
+
this.historyBack();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
handleCancel() {
|
|
67
|
+
this.historyBack();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
mountEditor() {
|
|
71
|
+
const instance = new CloudImageEditorBlock();
|
|
72
|
+
const cdnUrl = this.$.cdnUrl;
|
|
73
|
+
const cropPreset = this.cfg.cropPreset;
|
|
74
|
+
const tabs = this.cfg.cloudImageEditorTabs;
|
|
75
|
+
|
|
76
|
+
instance.setAttribute('ctx-name', this.ctxName);
|
|
77
|
+
instance.setAttribute('cdn-url', cdnUrl);
|
|
78
|
+
|
|
79
|
+
if (cropPreset) {
|
|
80
|
+
instance.setAttribute('crop-preset', cropPreset);
|
|
81
|
+
}
|
|
82
|
+
if (tabs) {
|
|
83
|
+
instance.setAttribute('tabs', tabs);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
instance.addEventListener('apply', (e) => {
|
|
87
|
+
const customEvent = /** @type {CustomEvent<import('../CloudImageEditor/src/types.js').ApplyResult>} */ (e);
|
|
88
|
+
this.handleApply(customEvent);
|
|
89
|
+
this.debugPrint(`editor event "apply"`, customEvent.detail);
|
|
90
|
+
});
|
|
91
|
+
instance.addEventListener('cancel', (e) => {
|
|
92
|
+
const customEvent = /** @type {CustomEvent<void>} */ (e);
|
|
93
|
+
this.handleCancel();
|
|
94
|
+
this.debugPrint(`editor event "cancel"`, customEvent.detail);
|
|
95
|
+
});
|
|
96
|
+
instance.addEventListener('change', (e) => {
|
|
97
|
+
const customEvent = /** @type {CustomEvent<import('../CloudImageEditor/src/types.js').ChangeResult>} */ (e);
|
|
98
|
+
this.debugPrint(`editor event "change"`, customEvent.detail);
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
this.innerHTML = '';
|
|
102
|
+
this.appendChild(instance);
|
|
103
|
+
this._mounted = true;
|
|
104
|
+
|
|
105
|
+
/** @private */
|
|
106
|
+
this._instance = instance;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
unmountEditor() {
|
|
110
|
+
this._instance = undefined;
|
|
111
|
+
this.innerHTML = '';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
uc-cloud-image-editor-activity {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
background-color: var(--uc-background);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[uc-modal] uc-cloud-image-editor-activity {
|
|
11
|
+
width: min(calc(var(--uc-dialog-max-width) - var(--uc-padding) * 2), calc(100vw - var(--uc-padding) * 2));
|
|
12
|
+
height: var(--modal-content-height-fill, 100%);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ifRef } from '../../utils/ifRef.js';
|
|
2
|
+
import * as blocks from '../../index.js';
|
|
3
|
+
|
|
4
|
+
ifRef(() => {
|
|
5
|
+
blocks.registerBlocks(blocks);
|
|
6
|
+
document.querySelector(blocks.CloudImageEditorBlock.is)?.addEventListener('apply', (e) => {
|
|
7
|
+
console.log(e);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config keys that can't be passed as attribute (because they are object or function)
|
|
3
|
+
*
|
|
4
|
+
* @type {[
|
|
5
|
+
* 'metadata',
|
|
6
|
+
* 'localeDefinitionOverride',
|
|
7
|
+
* 'secureUploadsSignatureResolver',
|
|
8
|
+
* 'secureDeliveryProxyUrlResolver',
|
|
9
|
+
* 'iconHrefResolver',
|
|
10
|
+
* 'fileValidators',
|
|
11
|
+
* 'collectionValidators',
|
|
12
|
+
* ]}
|
|
13
|
+
*/
|
|
14
|
+
export const complexConfigKeys: [
|
|
15
|
+
'metadata',
|
|
16
|
+
'localeDefinitionOverride',
|
|
17
|
+
'secureUploadsSignatureResolver',
|
|
18
|
+
'secureDeliveryProxyUrlResolver',
|
|
19
|
+
'iconHrefResolver',
|
|
20
|
+
'fileValidators',
|
|
21
|
+
'collectionValidators'
|
|
22
|
+
];
|
|
23
|
+
export type Config = import('../../utils/mixinClass.js').MixinClass<typeof ConfigClass, import('../../types').ConfigType>;
|
|
24
|
+
/** @typedef {import('../../utils/mixinClass.js').MixinClass<typeof ConfigClass, import('../../types').ConfigType>} Config */
|
|
25
|
+
export const Config: Config;
|
|
26
|
+
declare class ConfigClass extends Block {
|
|
27
|
+
/**
|
|
28
|
+
* @private
|
|
29
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
30
|
+
* @param {unknown} value
|
|
31
|
+
*/
|
|
32
|
+
private _flushValueToAttribute;
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
36
|
+
* @param {unknown} value
|
|
37
|
+
*/
|
|
38
|
+
private _flushValueToState;
|
|
39
|
+
/**
|
|
40
|
+
* @private
|
|
41
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
42
|
+
* @param {unknown} value
|
|
43
|
+
*/
|
|
44
|
+
private _setValue;
|
|
45
|
+
/**
|
|
46
|
+
* @private
|
|
47
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
48
|
+
*/
|
|
49
|
+
private _getValue;
|
|
50
|
+
/**
|
|
51
|
+
* @param {string} key
|
|
52
|
+
* @param {unknown} previousValue
|
|
53
|
+
* @param {unknown} nextValue
|
|
54
|
+
*/
|
|
55
|
+
_assertSameValueDifferentReference(key: string, previousValue: unknown, nextValue: unknown): void;
|
|
56
|
+
/**
|
|
57
|
+
* @param {keyof typeof attrStateMapping} name
|
|
58
|
+
* @param {string} oldVal
|
|
59
|
+
* @param {string} newVal
|
|
60
|
+
*/
|
|
61
|
+
attributeChangedCallback(name: keyof typeof attrStateMapping, oldVal: string, newVal: string): void;
|
|
62
|
+
}
|
|
63
|
+
import { Block } from '../../abstract/Block.js';
|
|
64
|
+
/** Mapping of attribute names to state */
|
|
65
|
+
declare const attrStateMapping: Record<"multiple" | "pubkey" | "accept" | "store" | "debug" | "secure-expire" | "crop-preset" | "multiple-min" | "multiple-max" | "confirm-upload" | "img-only" | "external-sources-preferred-types" | "camera-mirror" | "camera-capture" | "source-list" | "max-local-file-size-bytes" | "thumb-size" | "show-empty-list" | "use-local-image-editor" | "use-cloud-image-editor" | "cloud-image-editor-tabs" | "remove-copyright" | "image-shrink" | "modal-scroll-lock" | "modal-backdrop-strokes" | "source-list-wrap" | "remote-tab-session-key" | "cdn-cname" | "base-url" | "social-base-url" | "secure-signature" | "secure-delivery-proxy" | "retry-throttled-request-max-times" | "multipart-min-file-size" | "multipart-chunk-size" | "max-concurrent-requests" | "multipart-max-concurrent-requests" | "multipart-max-attempts" | "check-for-url-duplicates" | "save-url-for-recurrent-uploads" | "group-output" | "user-agent-integration" | "locale-name" | "secure-uploads-expire-threshold" | "secureexpire" | "croppreset" | "multiplemin" | "multiplemax" | "confirmupload" | "imgonly" | "externalsourcespreferredtypes" | "cameramirror" | "cameracapture" | "sourcelist" | "maxlocalfilesizebytes" | "thumbsize" | "showemptylist" | "uselocalimageeditor" | "usecloudimageeditor" | "cloudimageeditortabs" | "removecopyright" | "imageshrink" | "modalscrolllock" | "modalbackdropstrokes" | "sourcelistwrap" | "remotetabsessionkey" | "cdncname" | "baseurl" | "socialbaseurl" | "securesignature" | "securedeliveryproxy" | "retrythrottledrequestmaxtimes" | "multipartminfilesize" | "multipartchunksize" | "maxconcurrentrequests" | "multipartmaxconcurrentrequests" | "multipartmaxattempts" | "checkforurlduplicates" | "saveurlforrecurrentuploads" | "groupoutput" | "useragentintegration" | "localename" | "secureuploadsexpirethreshold", string>;
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["Config.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;GAYG;AACH,gCAVU;IACT,UAAc;IACd,0BAA8B;IAC9B,gCAAoC;IACpC,gCAAoC;IACpC,kBAAsB;IACtB,gBAAoB;IACpB,sBAA0B;CACvB,CAUF;qBAiNY,OAAO,2BAA2B,EAAE,UAAU,CAAC,kBAAkB,EAAE,OAAO,aAAa,EAAE,UAAU,CAAC;AAAlH,6HAA6H;AAG7H,4BAAmF;AAvLnF;IAkBE;;;;OAIG;IACH,+BAYC;IAED;;;;OAIG;IACH,2BAQC;IAED;;;;OAIG;IACH,kBAiBC;IAED;;;OAGG;IACH,kBAIC;IAED;;;;OAIG;IACH,wCAJW,MAAM,iBACN,OAAO,aACP,OAAO,QAoBjB;IA0CD;;;;OAIG;IACH,+BAJW,MAAM,uBAAuB,UAC7B,MAAM,UACN,MAAM,QAahB;CACF;sBArOqB,yBAAyB;AAoD/C,0CAA0C;AAC1C,qzDAGG"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { Block } from '../../abstract/Block.js';
|
|
3
|
+
import { initialConfig } from './initialConfig.js';
|
|
4
|
+
import { sharedConfigKey } from '../../abstract/sharedConfigKey.js';
|
|
5
|
+
import { toKebabCase } from '../../utils/toKebabCase.js';
|
|
6
|
+
import { normalizeConfigValue } from './normalizeConfigValue.js';
|
|
7
|
+
|
|
8
|
+
const allConfigKeys = /** @type {(keyof import('../../types').ConfigType)[]} */ ([
|
|
9
|
+
// "debug" option should go first to be able to print debug messages from the very beginning
|
|
10
|
+
...new Set(['debug', ...Object.keys(initialConfig)]),
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Config keys that can't be passed as attribute (because they are object or function)
|
|
15
|
+
*
|
|
16
|
+
* @type {[
|
|
17
|
+
* 'metadata',
|
|
18
|
+
* 'localeDefinitionOverride',
|
|
19
|
+
* 'secureUploadsSignatureResolver',
|
|
20
|
+
* 'secureDeliveryProxyUrlResolver',
|
|
21
|
+
* 'iconHrefResolver',
|
|
22
|
+
* 'fileValidators',
|
|
23
|
+
* 'collectionValidators',
|
|
24
|
+
* ]}
|
|
25
|
+
*/
|
|
26
|
+
export const complexConfigKeys = [
|
|
27
|
+
'metadata',
|
|
28
|
+
'localeDefinitionOverride',
|
|
29
|
+
'secureUploadsSignatureResolver',
|
|
30
|
+
'secureDeliveryProxyUrlResolver',
|
|
31
|
+
'iconHrefResolver',
|
|
32
|
+
'fileValidators',
|
|
33
|
+
'collectionValidators',
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
/** @type {(key: keyof import('../../types').ConfigType) => key is keyof import('../../types').ConfigComplexType} */
|
|
37
|
+
const isComplexKey = (key) => complexConfigKeys.includes(key);
|
|
38
|
+
|
|
39
|
+
/** Config keys that can be passed as attribute */
|
|
40
|
+
const plainConfigKeys = /** @type {(keyof import('../../types').ConfigPlainType)[]} */ (
|
|
41
|
+
allConfigKeys.filter((key) => !isComplexKey(key))
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Mapping of attribute names to config keys Kebab-case and lowercase are supported. lowercase could be used by
|
|
46
|
+
* frameworks like vue and react.
|
|
47
|
+
*/
|
|
48
|
+
const attrKeyMapping =
|
|
49
|
+
/** @type {Record<keyof import('../../types').ConfigAttributesType, keyof import('../../types').ConfigPlainType>} */ ({
|
|
50
|
+
...Object.fromEntries(plainConfigKeys.map((key) => [toKebabCase(key), key])),
|
|
51
|
+
...Object.fromEntries(plainConfigKeys.map((key) => [key.toLowerCase(), key])),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** Mapping of attribute names to state */
|
|
55
|
+
const attrStateMapping = /** @type {Record<keyof import('../../types').ConfigAttributesType, string>} */ ({
|
|
56
|
+
...Object.fromEntries(plainConfigKeys.map((key) => [toKebabCase(key), sharedConfigKey(key)])),
|
|
57
|
+
...Object.fromEntries(plainConfigKeys.map((key) => [key.toLowerCase(), sharedConfigKey(key)])),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/** @param {string} key */
|
|
61
|
+
const getLocalPropName = (key) => '__' + key;
|
|
62
|
+
|
|
63
|
+
class ConfigClass extends Block {
|
|
64
|
+
requireCtxName = true;
|
|
65
|
+
|
|
66
|
+
constructor() {
|
|
67
|
+
super();
|
|
68
|
+
|
|
69
|
+
/** @type {Block['init$'] & import('../../types').ConfigType} */
|
|
70
|
+
this.init$ = {
|
|
71
|
+
...this.init$,
|
|
72
|
+
...Object.fromEntries(
|
|
73
|
+
Object.entries(initialConfig).map(([key, value]) => [
|
|
74
|
+
sharedConfigKey(/** @type {keyof import('../../types').ConfigType} */ (key)),
|
|
75
|
+
value,
|
|
76
|
+
]),
|
|
77
|
+
),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @private
|
|
83
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
84
|
+
* @param {unknown} value
|
|
85
|
+
*/
|
|
86
|
+
_flushValueToAttribute(key, value) {
|
|
87
|
+
if (plainConfigKeys.includes(key)) {
|
|
88
|
+
// Flush the value to the DOM attributes
|
|
89
|
+
const attrs = [...new Set([toKebabCase(key), key.toLowerCase()])];
|
|
90
|
+
for (const attr of attrs) {
|
|
91
|
+
if (typeof value === 'undefined' || value === null) {
|
|
92
|
+
this.removeAttribute(attr);
|
|
93
|
+
} else if (this.getAttribute(attr) !== value.toString()) {
|
|
94
|
+
this.setAttribute(attr, value.toString());
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @private
|
|
102
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
103
|
+
* @param {unknown} value
|
|
104
|
+
*/
|
|
105
|
+
_flushValueToState(key, value) {
|
|
106
|
+
if (this.$[sharedConfigKey(key)] !== value) {
|
|
107
|
+
if (typeof value === 'undefined' || value === null) {
|
|
108
|
+
this.$[sharedConfigKey(key)] = initialConfig[key];
|
|
109
|
+
} else {
|
|
110
|
+
this.$[sharedConfigKey(key)] = value;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @private
|
|
117
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
118
|
+
* @param {unknown} value
|
|
119
|
+
*/
|
|
120
|
+
_setValue(key, value) {
|
|
121
|
+
const anyThis = /** @type {typeof this & any} */ (this);
|
|
122
|
+
|
|
123
|
+
const normalizedValue = normalizeConfigValue(key, value);
|
|
124
|
+
|
|
125
|
+
const localPropName = getLocalPropName(key);
|
|
126
|
+
if (anyThis[localPropName] === normalizedValue) return;
|
|
127
|
+
|
|
128
|
+
this._assertSameValueDifferentReference(key, anyThis[localPropName], normalizedValue);
|
|
129
|
+
|
|
130
|
+
anyThis[localPropName] = normalizedValue;
|
|
131
|
+
|
|
132
|
+
// Flush the value to the state
|
|
133
|
+
this._flushValueToAttribute(key, normalizedValue);
|
|
134
|
+
this._flushValueToState(key, normalizedValue);
|
|
135
|
+
|
|
136
|
+
this.debugPrint(`[uc-config] "${key}"`, normalizedValue);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @private
|
|
141
|
+
* @param {keyof import('../../types').ConfigType} key
|
|
142
|
+
*/
|
|
143
|
+
_getValue(key) {
|
|
144
|
+
const anyThis = /** @type {typeof this & any} */ (this);
|
|
145
|
+
const localPropName = getLocalPropName(key);
|
|
146
|
+
return anyThis[localPropName];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @param {string} key
|
|
151
|
+
* @param {unknown} previousValue
|
|
152
|
+
* @param {unknown} nextValue
|
|
153
|
+
*/
|
|
154
|
+
_assertSameValueDifferentReference(key, previousValue, nextValue) {
|
|
155
|
+
if (this.cfg.debug) {
|
|
156
|
+
if (
|
|
157
|
+
nextValue !== previousValue &&
|
|
158
|
+
typeof nextValue === 'object' &&
|
|
159
|
+
typeof previousValue === 'object' &&
|
|
160
|
+
JSON.stringify(nextValue) === JSON.stringify(previousValue)
|
|
161
|
+
) {
|
|
162
|
+
console.warn(
|
|
163
|
+
`[uc-config] Option "${key}" value is the same as the previous one but the reference is different`,
|
|
164
|
+
);
|
|
165
|
+
console.warn(
|
|
166
|
+
`[uc-config] You should avoid changing the reference of the object to prevent unnecessary calculations`,
|
|
167
|
+
);
|
|
168
|
+
console.warn(`[uc-config] "${key}" previous value:`, previousValue);
|
|
169
|
+
console.warn(`[uc-config] "${key}" new value:`, nextValue);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
initCallback() {
|
|
175
|
+
super.initCallback();
|
|
176
|
+
const anyThis = /** @type {typeof this & any} */ (this);
|
|
177
|
+
|
|
178
|
+
// Subscribe to the state changes and update the local properties and attributes.
|
|
179
|
+
// Initial callback call is disabled to prevent the initial value to be set here.
|
|
180
|
+
// Initial value will be set below, skipping the default values.
|
|
181
|
+
for (const key of plainConfigKeys) {
|
|
182
|
+
this.sub(
|
|
183
|
+
sharedConfigKey(key),
|
|
184
|
+
(value) => {
|
|
185
|
+
this._setValue(key, value);
|
|
186
|
+
},
|
|
187
|
+
false,
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
for (const key of allConfigKeys) {
|
|
192
|
+
// Flush the initial value to the state.
|
|
193
|
+
// Initial value is taken from the DOM property if it was set before the element was initialized.
|
|
194
|
+
// If no DOM property was set, the initial value is taken from the initialConfig.
|
|
195
|
+
const initialValue = anyThis[key] ?? this.$[sharedConfigKey(key)];
|
|
196
|
+
if (initialValue !== initialConfig[key]) {
|
|
197
|
+
this._setValue(key, initialValue);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Define DOM property setters and getters
|
|
201
|
+
// They will be used in the userland directly or by the frameworks
|
|
202
|
+
Object.defineProperty(this, key, {
|
|
203
|
+
/** @param {unknown} value */
|
|
204
|
+
set: (value) => {
|
|
205
|
+
this._setValue(key, value);
|
|
206
|
+
},
|
|
207
|
+
get: () => {
|
|
208
|
+
return this._getValue(key);
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @param {keyof typeof attrStateMapping} name
|
|
216
|
+
* @param {string} oldVal
|
|
217
|
+
* @param {string} newVal
|
|
218
|
+
*/
|
|
219
|
+
attributeChangedCallback(name, oldVal, newVal) {
|
|
220
|
+
if (oldVal === newVal) return;
|
|
221
|
+
|
|
222
|
+
const anyThis = /** @type {typeof this & any} */ (this);
|
|
223
|
+
const key = attrKeyMapping[name];
|
|
224
|
+
// attributeChangedCallback could be called before the initCallback
|
|
225
|
+
// so we set the DOM property instead of calling this._setValue.
|
|
226
|
+
// If the block was initialized, the value will be handled by the setter.
|
|
227
|
+
// If the block was not initialized, the value will be set to the DOM property
|
|
228
|
+
// and handled on initialization.
|
|
229
|
+
anyThis[key] = newVal;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
ConfigClass.bindAttributes(attrStateMapping);
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Define empty DOM properties for all config keys on the Custom Element class prototype to make them checkable using
|
|
237
|
+
* `key in element` syntax. This is required for the frameworks DOM property bindings to work.
|
|
238
|
+
*/
|
|
239
|
+
for (const key of allConfigKeys) {
|
|
240
|
+
/** @type {any} */ (ConfigClass.prototype)[key] = undefined;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** @typedef {import('../../utils/mixinClass.js').MixinClass<typeof ConfigClass, import('../../types').ConfigType>} Config */
|
|
244
|
+
|
|
245
|
+
// This is workaround for jsdoc that allows us to export extended class type along with the class itself
|
|
246
|
+
export const Config = /** @type {Config} */ (/** @type {unknown} */ (ConfigClass));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const DEFAULT_CDN_CNAME: "https://ucarecdn.com";
|
|
2
|
+
export const DEFAULT_BASE_URL: "https://upload.uploadcare.com";
|
|
3
|
+
export const DEFAULT_SOCIAL_BASE_URL: "https://social.uploadcare.com";
|
|
4
|
+
/** @type {import('../../types/exported').ConfigType} */
|
|
5
|
+
export const initialConfig: import('../../types/exported').ConfigType;
|
|
6
|
+
//# sourceMappingURL=initialConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initialConfig.d.ts","sourceRoot":"","sources":["initialConfig.js"],"names":[],"mappings":"AAKA,uDAAwD;AACxD,+DAAgE;AAChE,sEAAuE;AAEvE,wDAAwD;AACxD,4BADW,OAAO,sBAAsB,EAAE,UAAU,CA2DlD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
import { ALL_TABS } from '../CloudImageEditor/src/toolbar-constants.js';
|
|
4
|
+
import { serializeCsv } from '../utils/comma-separated.js';
|
|
5
|
+
|
|
6
|
+
export const DEFAULT_CDN_CNAME = 'https://ucarecdn.com';
|
|
7
|
+
export const DEFAULT_BASE_URL = 'https://upload.uploadcare.com';
|
|
8
|
+
export const DEFAULT_SOCIAL_BASE_URL = 'https://social.uploadcare.com';
|
|
9
|
+
|
|
10
|
+
/** @type {import('../../types/exported').ConfigType} */
|
|
11
|
+
export const initialConfig = {
|
|
12
|
+
pubkey: '',
|
|
13
|
+
multiple: true,
|
|
14
|
+
multipleMin: 0,
|
|
15
|
+
multipleMax: Number.MAX_SAFE_INTEGER,
|
|
16
|
+
|
|
17
|
+
confirmUpload: false,
|
|
18
|
+
imgOnly: false,
|
|
19
|
+
accept: '',
|
|
20
|
+
externalSourcesPreferredTypes: '',
|
|
21
|
+
store: 'auto',
|
|
22
|
+
cameraMirror: false,
|
|
23
|
+
cameraCapture: '',
|
|
24
|
+
sourceList: 'local, url, camera, dropbox, gdrive',
|
|
25
|
+
cloudImageEditorTabs: serializeCsv(ALL_TABS),
|
|
26
|
+
maxLocalFileSizeBytes: 0,
|
|
27
|
+
thumbSize: 76,
|
|
28
|
+
showEmptyList: false,
|
|
29
|
+
useLocalImageEditor: false,
|
|
30
|
+
useCloudImageEditor: true,
|
|
31
|
+
removeCopyright: false,
|
|
32
|
+
cropPreset: '',
|
|
33
|
+
imageShrink: '',
|
|
34
|
+
|
|
35
|
+
modalScrollLock: true,
|
|
36
|
+
modalBackdropStrokes: false,
|
|
37
|
+
|
|
38
|
+
sourceListWrap: true,
|
|
39
|
+
|
|
40
|
+
remoteTabSessionKey: '',
|
|
41
|
+
cdnCname: DEFAULT_CDN_CNAME,
|
|
42
|
+
baseUrl: DEFAULT_BASE_URL,
|
|
43
|
+
socialBaseUrl: DEFAULT_SOCIAL_BASE_URL,
|
|
44
|
+
secureSignature: '',
|
|
45
|
+
secureExpire: '',
|
|
46
|
+
secureDeliveryProxy: '',
|
|
47
|
+
retryThrottledRequestMaxTimes: 1,
|
|
48
|
+
multipartMinFileSize: 26214400,
|
|
49
|
+
multipartChunkSize: 5242880,
|
|
50
|
+
maxConcurrentRequests: 10,
|
|
51
|
+
multipartMaxConcurrentRequests: 4,
|
|
52
|
+
multipartMaxAttempts: 3,
|
|
53
|
+
checkForUrlDuplicates: false,
|
|
54
|
+
saveUrlForRecurrentUploads: false,
|
|
55
|
+
|
|
56
|
+
groupOutput: false,
|
|
57
|
+
userAgentIntegration: '',
|
|
58
|
+
debug: false,
|
|
59
|
+
|
|
60
|
+
metadata: null,
|
|
61
|
+
localeName: 'en',
|
|
62
|
+
localeDefinitionOverride: null,
|
|
63
|
+
secureUploadsExpireThreshold: 10 * 60 * 1000,
|
|
64
|
+
secureUploadsSignatureResolver: null,
|
|
65
|
+
secureDeliveryProxyUrlResolver: null,
|
|
66
|
+
iconHrefResolver: null,
|
|
67
|
+
fileValidators: [],
|
|
68
|
+
collectionValidators: [],
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeConfigValue.d.ts","sourceRoot":"","sources":["normalizeConfigValue.js"],"names":[],"mappings":"AAeO,iCADK,OAAO,WAWlB;AA4IM,sGAHI,OAAO,mDAcjB"}
|