@uploadcare/file-uploader 1.5.3-alpha.0 → 1.5.3-alpha.3
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/README.md +5 -5
- package/abstract/ActivityBlock.d.ts +3 -3
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/Block.d.ts +4 -11
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +16 -16
- package/abstract/CTX.d.ts +7 -7
- package/abstract/CTX.d.ts.map +1 -1
- package/abstract/CTX.js +1 -1
- package/abstract/LocaleManager.d.ts +3 -3
- package/abstract/SecureUploadsManager.d.ts +2 -2
- package/abstract/SecureUploadsManager.d.ts.map +1 -1
- package/abstract/SolutionBlock.d.ts +2 -2
- package/abstract/SolutionBlock.d.ts.map +1 -1
- package/abstract/TypedCollection.d.ts +1 -1
- package/abstract/TypedCollection.d.ts.map +1 -1
- package/abstract/TypedCollection.js +4 -4
- package/abstract/TypedData.d.ts +2 -2
- package/abstract/TypedData.d.ts.map +1 -1
- package/abstract/TypedData.js +4 -4
- package/abstract/UploaderBlock.d.ts +5 -5
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderBlock.js +5 -5
- package/abstract/UploaderPublicApi.d.ts +22 -21
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +3 -3
- package/abstract/ValidationManager.d.ts +3 -3
- package/abstract/ValidationManager.d.ts.map +1 -1
- package/abstract/a11y.d.ts +2 -2
- package/abstract/a11y.d.ts.map +1 -1
- package/abstract/buildOutputCollectionState.d.ts +1 -1
- package/abstract/buildOutputCollectionState.d.ts.map +1 -1
- package/abstract/defineComponents.d.ts.map +1 -1
- package/abstract/defineComponents.js +5 -0
- package/abstract/l10nProcessor.d.ts.map +1 -1
- package/abstract/l10nProcessor.js +3 -3
- package/abstract/loadFileUploaderFrom.d.ts.map +1 -1
- package/abstract/localeRegistry.d.ts.map +1 -1
- package/abstract/sharedConfigKey.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.d.ts +2 -2
- package/abstract/uploadEntrySchema.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.js +1 -1
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +5 -4
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +11 -11
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.js +2 -1
- package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorButtonControl.js +2 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +3 -7
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
- package/blocks/CloudImageEditor/src/EditorImageCropper.js +2 -2
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorOperationControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorScroller.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorScroller.js +2 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.js +2 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.js +4 -3
- package/blocks/CloudImageEditor/src/crop-utils.d.ts +14 -14
- package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/css/common.css +2 -2
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.js +3 -3
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.js +2 -1
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.js +3 -2
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +2 -1
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +1 -1
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +3 -3
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/state.d.ts +4 -4
- package/blocks/CloudImageEditor/src/template.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/template.js +2 -1
- package/blocks/CloudImageEditor/src/types.d.ts +2 -2
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +2 -1
- package/blocks/Config/Config.d.ts +3 -11
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/initialConfig.d.ts +1 -1
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Copyright/Copyright.d.ts.map +1 -1
- package/blocks/Copyright/Copyright.js +2 -1
- package/blocks/DropArea/DropArea.d.ts +2 -2
- package/blocks/DropArea/DropArea.d.ts.map +1 -1
- package/blocks/DropArea/DropArea.js +3 -3
- package/blocks/DropArea/addDropzone.d.ts.map +1 -1
- package/blocks/DropArea/getDropItems.d.ts +2 -2
- package/blocks/DropArea/getDropItems.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.d.ts +5 -5
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +3 -3
- package/blocks/ExternalSource/buildStyles.js +2 -2
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.d.ts +2 -2
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +7 -3
- package/blocks/FormInput/FormInput.js +1 -1
- package/blocks/Icon/Icon.d.ts +0 -1
- package/blocks/Icon/Icon.d.ts.map +1 -1
- package/blocks/Icon/Icon.js +2 -4
- package/blocks/Img/ImgBase.js +9 -9
- package/blocks/Img/ImgConfig.d.ts +2 -2
- package/blocks/Img/ImgConfig.d.ts.map +1 -1
- package/blocks/Img/ImgConfig.js +3 -3
- package/blocks/Img/utils/parseObjectToString.js +1 -1
- package/blocks/Modal/Modal.d.ts.map +1 -1
- package/blocks/Modal/Modal.js +2 -1
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +2 -1
- package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts.map +1 -1
- package/blocks/ProgressBarCommon/ProgressBarCommon.js +2 -1
- package/blocks/Select/Select.d.ts.map +1 -1
- package/blocks/Select/Select.js +14 -9
- package/blocks/SimpleBtn/SimpleBtn.d.ts +2 -2
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
- package/blocks/SimpleBtn/SimpleBtn.js +2 -1
- package/blocks/SourceBtn/SourceBtn.d.ts +2 -2
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +3 -3
- package/blocks/SourceList/SourceList.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.js +5 -4
- package/blocks/StartFrom/StartFrom.d.ts.map +1 -1
- package/blocks/StartFrom/StartFrom.js +2 -1
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +19 -19
- package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -1
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +4 -4
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.d.ts +2 -2
- package/blocks/UploadList/UploadList.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.js +3 -4
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
- package/blocks/UrlSource/UrlSource.js +3 -2
- package/blocks/themes/uc-basic/index.css +0 -1
- package/blocks/utils/debounce.d.ts +3 -1
- package/blocks/utils/debounce.d.ts.map +1 -1
- package/blocks/utils/throttle.d.ts +3 -1
- package/blocks/utils/throttle.d.ts.map +1 -1
- package/blocks/utils/userAgent.d.ts +1 -1
- package/blocks/utils/userAgent.d.ts.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.ssr.d.ts +115 -1
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +118 -7
- package/locales/file-uploader/ar.d.ts +5 -0
- package/locales/file-uploader/ar.js +5 -0
- package/locales/file-uploader/az.d.ts +5 -0
- package/locales/file-uploader/az.js +5 -0
- package/locales/file-uploader/ca.d.ts +5 -0
- package/locales/file-uploader/ca.js +5 -0
- package/locales/file-uploader/cs.d.ts +5 -0
- package/locales/file-uploader/cs.js +5 -0
- package/locales/file-uploader/da.d.ts +5 -0
- package/locales/file-uploader/da.js +5 -0
- package/locales/file-uploader/de.d.ts +5 -0
- package/locales/file-uploader/de.js +5 -0
- package/locales/file-uploader/el.d.ts +5 -0
- package/locales/file-uploader/el.js +5 -0
- package/locales/file-uploader/en.d.ts +5 -0
- package/locales/file-uploader/en.js +5 -0
- package/locales/file-uploader/es.d.ts +5 -0
- package/locales/file-uploader/es.js +5 -0
- package/locales/file-uploader/et.d.ts +5 -0
- package/locales/file-uploader/et.js +5 -0
- package/locales/file-uploader/fr.d.ts +5 -0
- package/locales/file-uploader/fr.js +5 -0
- package/locales/file-uploader/he.d.ts +5 -0
- package/locales/file-uploader/he.js +5 -0
- package/locales/file-uploader/hy.d.ts +5 -0
- package/locales/file-uploader/hy.js +5 -0
- package/locales/file-uploader/is.d.ts +5 -0
- package/locales/file-uploader/is.js +5 -0
- package/locales/file-uploader/it.d.ts +5 -0
- package/locales/file-uploader/it.js +5 -0
- package/locales/file-uploader/ja.d.ts +5 -0
- package/locales/file-uploader/ja.js +5 -0
- package/locales/file-uploader/ka.d.ts +5 -0
- package/locales/file-uploader/ka.js +5 -0
- package/locales/file-uploader/kk.d.ts +5 -0
- package/locales/file-uploader/kk.js +5 -0
- package/locales/file-uploader/ko.d.ts +5 -0
- package/locales/file-uploader/ko.js +5 -0
- package/locales/file-uploader/lv.d.ts +5 -0
- package/locales/file-uploader/lv.js +5 -0
- package/locales/file-uploader/nb.d.ts +5 -0
- package/locales/file-uploader/nb.js +5 -0
- package/locales/file-uploader/nl.d.ts +5 -0
- package/locales/file-uploader/nl.js +5 -0
- package/locales/file-uploader/pl.d.ts +5 -0
- package/locales/file-uploader/pl.js +5 -0
- package/locales/file-uploader/pt.d.ts +5 -0
- package/locales/file-uploader/pt.js +5 -0
- package/locales/file-uploader/ro.d.ts +5 -0
- package/locales/file-uploader/ro.js +5 -0
- package/locales/file-uploader/ru.d.ts +5 -0
- package/locales/file-uploader/ru.js +5 -0
- package/locales/file-uploader/sk.d.ts +5 -0
- package/locales/file-uploader/sk.js +5 -0
- package/locales/file-uploader/sr.d.ts +5 -0
- package/locales/file-uploader/sr.js +5 -0
- package/locales/file-uploader/sv.d.ts +5 -0
- package/locales/file-uploader/sv.js +5 -0
- package/locales/file-uploader/tr.d.ts +5 -0
- package/locales/file-uploader/tr.js +5 -0
- package/locales/file-uploader/uk.d.ts +5 -0
- package/locales/file-uploader/uk.js +5 -0
- package/locales/file-uploader/vi.d.ts +5 -0
- package/locales/file-uploader/vi.js +5 -0
- package/locales/file-uploader/zh-TW.d.ts +5 -0
- package/locales/file-uploader/zh-TW.js +5 -0
- package/locales/file-uploader/zh.d.ts +5 -0
- package/locales/file-uploader/zh.js +5 -0
- package/package.json +12 -8
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts +2 -2
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -1
- package/solutions/file-uploader/inline/FileUploaderInline.js +3 -4
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +2 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +3 -3
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +3 -2
- package/symbiote.js +19 -0
- package/types/jsx.d.ts +9 -3
- package/utils/getPluralForm.d.ts.map +1 -1
- package/utils/isSecureTokenExpired.d.ts +1 -1
- package/utils/memoize.d.ts.map +1 -1
- package/utils/mixinClass.d.ts +3 -1
- package/utils/mixinClass.d.ts.map +1 -1
- package/utils/prettyBytes.d.ts.map +1 -1
- package/utils/template-utils.d.ts.map +1 -1
- package/utils/toKebabCase.d.ts.map +1 -1
- package/utils/uniqueArray.d.ts.map +1 -1
- package/utils/validators/collection/validateCollectionUploadError.d.ts +1 -1
- package/utils/validators/collection/validateMultiple.d.ts +1 -1
- package/utils/validators/file/validateFileType.d.ts +1 -1
- package/utils/validators/file/validateIsImage.d.ts +1 -1
- package/utils/validators/file/validateMaxSizeLimit.d.ts +1 -1
- package/utils/validators/file/validateUploadError.d.ts +1 -1
- package/utils/waitForAttribute.d.ts +12 -6
- package/utils/waitForAttribute.d.ts.map +1 -1
- package/utils/waitForAttribute.js +38 -8
- package/utils/waitForAttribute.test.js +10 -47
- package/utils/withResolvers.d.ts +7 -0
- package/utils/withResolvers.d.ts.map +1 -0
- package/utils/withResolvers.js +17 -0
- package/utils/withResolvers.test.d.ts +2 -0
- package/utils/withResolvers.test.d.ts.map +1 -0
- package/utils/withResolvers.test.js +27 -0
- package/web/file-uploader.iife.min.js +5 -4
- package/web/file-uploader.min.js +5 -4
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +5 -4
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +5 -4
- package/web/uc-file-uploader-minimal.min.js +4 -3
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +5 -4
- package/web/uc-img.min.js +4 -3
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts +0 -15
- package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts.map +0 -1
- package/blocks/CloudImageEditor/src/lib/FocusVisible.js +0 -33
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +0 -10
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +0 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.js +0 -256
- package/blocks/EditorFilerobotImage/EditorFilerobotImage.d.ts +0 -13
- package/blocks/EditorFilerobotImage/EditorFilerobotImage.d.ts.map +0 -1
- package/blocks/EditorFilerobotImage/EditorFilerobotImage.js +0 -59
- package/blocks/Range/Range.d.ts +0 -16
- package/blocks/Range/Range.d.ts.map +0 -1
- package/blocks/Range/Range.js +0 -44
- package/blocks/Range/range.css +0 -65
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
import { ActivityBlock } from './ActivityBlock.js';
|
|
3
3
|
|
|
4
|
-
import { applyStyles,
|
|
4
|
+
import { applyStyles, PubSub } from '../symbiote.js';
|
|
5
5
|
import { EventType } from '../blocks/UploadCtxProvider/EventEmitter.js';
|
|
6
6
|
import { UploadSource } from '../blocks/utils/UploadSource.js';
|
|
7
7
|
import { serializeCsv } from '../blocks/utils/comma-separated.js';
|
|
8
8
|
import { IMAGE_ACCEPT_LIST, fileIsImage, mergeFileTypes } from '../utils/fileTypes.js';
|
|
9
9
|
import { parseCdnUrl } from '../utils/parseCdnUrl.js';
|
|
10
|
-
import { buildOutputCollectionState } from './buildOutputCollectionState.js';
|
|
11
10
|
import { stringToArray } from '../utils/stringToArray.js';
|
|
11
|
+
import { buildOutputCollectionState } from './buildOutputCollectionState.js';
|
|
12
12
|
|
|
13
13
|
export class UploaderPublicApi {
|
|
14
14
|
/**
|
|
@@ -202,7 +202,7 @@ export class UploaderPublicApi {
|
|
|
202
202
|
* @returns {import('../types/exported.js').OutputFileEntry<TStatus>}
|
|
203
203
|
*/
|
|
204
204
|
getOutputItem = (entryId) => {
|
|
205
|
-
const uploadEntryData = /** @type {import('./uploadEntrySchema.js').UploadEntry} */ (
|
|
205
|
+
const uploadEntryData = /** @type {import('./uploadEntrySchema.js').UploadEntry} */ (PubSub.getCtx(entryId).store);
|
|
206
206
|
|
|
207
207
|
/** @type {import('@uploadcare/upload-client').UploadcareFile?} */
|
|
208
208
|
const fileInfo = uploadEntryData.fileInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class ValidationManager {
|
|
2
2
|
/** @param {import('./UploaderBlock.js').UploaderBlock} blockInstance */
|
|
3
|
-
constructor(blockInstance: import(
|
|
3
|
+
constructor(blockInstance: import("./UploaderBlock.js").UploaderBlock);
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
* @type {import('./UploaderBlock.js').UploaderBlock}
|
|
@@ -26,6 +26,6 @@ export class ValidationManager {
|
|
|
26
26
|
*/
|
|
27
27
|
_addCustomTypeToValidators<T>(validators: T[]): T[];
|
|
28
28
|
}
|
|
29
|
-
export type FuncFileValidator = (outputEntry: import(
|
|
30
|
-
export type FuncCollectionValidator = (collection: ReturnType<typeof import(
|
|
29
|
+
export type FuncFileValidator = (outputEntry: import("../types").OutputFileEntry, api: import("./UploaderPublicApi.js").UploaderPublicApi) => undefined | import("../types").OutputErrorFile;
|
|
30
|
+
export type FuncCollectionValidator = (collection: ReturnType<typeof import("./buildOutputCollectionState.js").buildOutputCollectionState<import("../types").OutputCollectionStatus>>, api: import("./UploaderPublicApi.js").UploaderPublicApi) => undefined | import("../types").OutputErrorCollection;
|
|
31
31
|
//# sourceMappingURL=ValidationManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationManager.d.ts","sourceRoot":"","sources":["ValidationManager.js"],"names":[],"mappings":"AAkCA;IAaE,wEAAwE;IACxE,2BADY,OAAO,oBAAoB,EAAE,aAAa,EAiBrD;IA7BD;;;OAGG;IACH,uBAAe;IAEf,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACmE;IAEjG,wCAAwC;IACxC,uBADW,uBAAuB,EAAE,CACsC;IAMxE,kEAA6D;IAe/D,mCAAmC;IACnC,yDAQC;IAED,gCAqCC;IAED;;;OAGG;IACH,mCAyBC;IAED;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"ValidationManager.d.ts","sourceRoot":"","sources":["ValidationManager.js"],"names":[],"mappings":"AAkCA;IAaE,wEAAwE;IACxE,2BADY,OAAO,oBAAoB,EAAE,aAAa,EAiBrD;IA7BD;;;OAGG;IACH,uBAAe;IAEf,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACmE;IAEjG,wCAAwC;IACxC,uBADW,uBAAuB,EAAE,CACsC;IAMxE,kEAA6D;IAe/D,mCAAmC;IACnC,yDAQC;IAED,gCAqCC;IAED;;;OAGG;IACH,mCAyBC;IAED;;;;OAIG;IACH,2BAJa,CAAC,cACH,CAAC,EAAE,GACD,CAAC,EAAE,CAUf;CACF;gCAtJY,CACR,WAAW,EAAE,OAAO,UAAU,EAAE,eAAe,EAC/C,GAAG,EAAE,OAAO,wBAAwB,EAAE,iBAAiB,KACpD,SAAS,GAAG,OAAO,UAAU,EAAE,eAAe;sCAIzC,CACR,UAAU,EAAE,UAAU,CAC1B,cAAoB,iCAAiC,EAAE,0BAA0B,CACjF,OAAe,UAAU,EAAE,sBAAsB,CAC1C,CACF,EACD,GAAG,EAAE,OAAO,wBAAwB,EAAE,iBAAiB,KACpD,SAAS,GAAG,OAAO,UAAU,EAAE,qBAAqB"}
|
package/abstract/a11y.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export class A11y {
|
|
|
10
10
|
*/
|
|
11
11
|
private _scopedWindow;
|
|
12
12
|
/** @param {import('./Block.js').Block} scope */
|
|
13
|
-
registerBlock(scope: import(
|
|
13
|
+
registerBlock(scope: import("./Block.js").Block): void;
|
|
14
14
|
destroy(): void;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* MinimalWindow interface is not exported by keyux, so we import it here using tricky way.
|
|
18
18
|
*/
|
|
19
|
-
export type MinimalWindow = Parameters<import(
|
|
19
|
+
export type MinimalWindow = Parameters<import("keyux").KeyUXModule>[0];
|
|
20
20
|
//# sourceMappingURL=a11y.d.ts.map
|
package/abstract/a11y.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["a11y.js"],"names":[],"mappings":"AAqFA;IACE;;;OAGG;IACH,sBAAc;IAEd;;;OAGG;IACH,sBAAc;IAYd,gDAAgD;IAChD,qBADY,OAAO,YAAY,EAAE,KAAK,QAGrC;IAED,gBAGC;CACF;;;;4BA/GY,
|
|
1
|
+
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["a11y.js"],"names":[],"mappings":"AAqFA;IACE;;;OAGG;IACH,sBAAc;IAEd;;;OAGG;IACH,sBAAc;IAYd,gDAAgD;IAChD,qBADY,OAAO,YAAY,EAAE,KAAK,QAGrC;IAED,gBAGC;CACF;;;;4BA/GY,UAAU,CAAC,OAAO,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* @param {import('./UploaderBlock.js').UploaderBlock} uploaderBlock
|
|
5
5
|
* @returns {import('../index.js').OutputCollectionState<TCollectionStatus, TGroupFlag>}
|
|
6
6
|
*/
|
|
7
|
-
export function buildOutputCollectionState<TCollectionStatus extends import("../index.js").OutputCollectionStatus, TGroupFlag extends import("../index.js").GroupFlag = "maybe-has-group">(uploaderBlock: import(
|
|
7
|
+
export function buildOutputCollectionState<TCollectionStatus extends import("../index.js").OutputCollectionStatus, TGroupFlag extends import("../index.js").GroupFlag = "maybe-has-group">(uploaderBlock: import("./UploaderBlock.js").UploaderBlock): import("../index.js").OutputCollectionState<TCollectionStatus, TGroupFlag>;
|
|
8
8
|
//# sourceMappingURL=buildOutputCollectionState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildOutputCollectionState.d.ts","sourceRoot":"","sources":["buildOutputCollectionState.js"],"names":[],"mappings":"AAiCA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"buildOutputCollectionState.d.ts","sourceRoot":"","sources":["buildOutputCollectionState.js"],"names":[],"mappings":"AAiCA;;;;;GAKG;AACH,2CAL4D,iBAAiB,SAAhE,OAAQ,aAAa,EAAE,sBAAuB,EACX,UAAU,SAA7C,OAAQ,aAAa,EAAE,SAAU,qCACnC,OAAO,oBAAoB,EAAE,aAAa,GACxC,OAAO,aAAa,EAAE,qBAAqB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAkGtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineComponents.d.ts","sourceRoot":"","sources":["defineComponents.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defineComponents.d.ts","sourceRoot":"","sources":["defineComponents.js"],"names":[],"mappings":"AAEA,gDAAgD;AAChD,+CADY;QAAO,MAAM,GAAE,GAAG;CAAC,QAuB9B"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
const EXCLUDE_COMPONENTS = ['Symbiote', 'BaseComponent', 'UploaderBlock', 'ActivityBlock', 'Block', 'SolutionBlock'];
|
|
2
|
+
|
|
1
3
|
/** @param {Object<string, any>} blockExports */
|
|
2
4
|
export function defineComponents(blockExports) {
|
|
3
5
|
for (let blockName in blockExports) {
|
|
6
|
+
if (EXCLUDE_COMPONENTS.includes(blockName)) {
|
|
7
|
+
continue;
|
|
8
|
+
}
|
|
4
9
|
let tagName = [...blockName].reduce((name, char) => {
|
|
5
10
|
if (char.toUpperCase() === char) {
|
|
6
11
|
char = '-' + char.toLowerCase();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l10nProcessor.d.ts","sourceRoot":"","sources":["l10nProcessor.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"l10nProcessor.d.ts","sourceRoot":"","sources":["l10nProcessor.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,8BAJ0C,CAAC,SAA9B,OAAQ,YAAY,EAAE,KAAM,MAC9B,gBAAgB,SAChB,CAAC,QAwEX"}
|
|
@@ -48,11 +48,11 @@ export function l10nProcessor(fr, fnCtx) {
|
|
|
48
48
|
// We don't need the leading * in the key because we use the key as a local context key relative to the global state
|
|
49
49
|
const nodeStateKey = localeStateKey(mappedKey).replace('*', '');
|
|
50
50
|
// If the key is not present in the node context, add it
|
|
51
|
-
if (!fnCtx.
|
|
52
|
-
fnCtx.
|
|
51
|
+
if (!fnCtx.sharedCtx.has(nodeStateKey)) {
|
|
52
|
+
fnCtx.sharedCtx.add(nodeStateKey, mappedKey);
|
|
53
53
|
}
|
|
54
54
|
// Subscribe on the global l10n key change
|
|
55
|
-
const sub = fnCtx.
|
|
55
|
+
const sub = fnCtx.sharedCtx.sub(nodeStateKey, () => {
|
|
56
56
|
el[/** @type {'textContent'} */ (elProp)] = fnCtx.l10n(mappedKey);
|
|
57
57
|
});
|
|
58
58
|
keySubs?.add(sub);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadFileUploaderFrom.d.ts","sourceRoot":"","sources":["loadFileUploaderFrom.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,mFAFa,
|
|
1
|
+
{"version":3,"file":"loadFileUploaderFrom.d.ts","sourceRoot":"","sources":["loadFileUploaderFrom.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,mFAFa,OAAO,CAAC,4BAAqB,CAAC,CA0B1C;AA/BD,iCAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localeRegistry.d.ts","sourceRoot":"","sources":["localeRegistry.js"],"names":[],"mappings":"AAoCO,yCAHI,MAAM,wBACN,gBAAgB,GAAG,wBAAwB,QAQrD;AAMM,oDAHI,MAAM,GACJ,
|
|
1
|
+
{"version":3,"file":"localeRegistry.d.ts","sourceRoot":"","sources":["localeRegistry.js"],"names":[],"mappings":"AAoCO,yCAHI,MAAM,wBACN,gBAAgB,GAAG,wBAAwB,QAQrD;AAMM,oDAHI,MAAM,GACJ,OAAO,CAAC,gBAAgB,CAAC,CAcrC;+BAnDa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;uCACtB,MAAM,OAAO,CAAC,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedConfigKey.d.ts","sourceRoot":"","sources":["sharedConfigKey.js"],"names":[],"mappings":"AAOO,
|
|
1
|
+
{"version":3,"file":"sharedConfigKey.d.ts","sourceRoot":"","sources":["sharedConfigKey.js"],"names":[],"mappings":"AAOO,gCAJ4C,CAAC,SAAvC,MAAO,OAAO,UAAU,EAAE,UAAW,OACvC,CAAC,GACC,QAAQ,CAAC,EAAE,CAE6B"}
|
|
@@ -52,12 +52,12 @@ export type UploadEntry = {
|
|
|
52
52
|
thumbUrl: string;
|
|
53
53
|
silent: boolean;
|
|
54
54
|
errors: ({
|
|
55
|
-
type: import(
|
|
55
|
+
type: import("..").OutputFileErrorType | import("..").OutputCollectionErrorType;
|
|
56
56
|
message: string;
|
|
57
57
|
} & Record<string, unknown>)[];
|
|
58
58
|
uploadError: Error | null;
|
|
59
59
|
fullPath: string | null;
|
|
60
|
-
metadata: import(
|
|
60
|
+
metadata: import("@uploadcare/upload-client").Metadata | null;
|
|
61
61
|
isRemoved: boolean;
|
|
62
62
|
};
|
|
63
63
|
import { UploadcareFile } from '@uploadcare/upload-client';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadEntrySchema.d.ts","sourceRoot":"","sources":["uploadEntrySchema.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;GAGG;AACH,gCAFU,
|
|
1
|
+
{"version":3,"file":"uploadEntrySchema.d.ts","sourceRoot":"","sources":["uploadEntrySchema.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;GAGG;AACH,gCAFU,MAAM,CAAC,CAAC,EAAE;IAAE,IAAI,WAAW;IAAC,KAAK,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,UAAS;CAAE,CAAC,CAwGpE;;UApIW,IAAI;;;cAGJ,MAAM;kBACN,MAAM;oBACN,MAAM;;;;;;;cAON,cAAc;;;;YAId,CAAC;QACd,IAAQ,EAAE,OAAO,IAAI,EAAE,mBAAmB,GAAG,OAAO,IAAI,EAAE,yBAAyB,CAAC;QACpF,OAAW,EAAE,MAAM,CAAC;KACjB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE;iBACnB,KAAK,GAAG,IAAI;cACZ,MAAM,GAAG,IAAI;cACb,OAAO,2BAA2B,EAAE,QAAQ,GAAG,IAAI;eACnD,OAAO;;+BA3BU,2BAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CameraSource.d.ts","sourceRoot":"","sources":["CameraSource.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CameraSource.d.ts","sourceRoot":"","sources":["CameraSource.js"],"names":[],"mappings":"AAOA;IAEE,uBAA+C;IAE/C,eAAe;IACf,0BAAyB;IAEzB,WA0BE;IAbE,qBAAqB;IACrB,sCAAuC;IAc3C,eAAe;IACf,oBAKE;IAEF,eAAe;IACf,sBAME;IAEF,eAAe;IACf,iCAEE;IAEF;;;OAGG;IACH,6BA2BQ;IAER,eAAe;IACf,8BASC;IAED,eAAe;IACf,iBAuCC;IAnBC,eAAe;IACf,gBAA+C;IAC/C,eAAe;IACf,aAAyC;IASvC,eAAe;IACf,mBAAsB;IAQ1B,eAAe;IACf,qBAMC;IAED,eAAe;IACf,cAkBC;IAED,8BAgCC;CACF;;;;8BApN6B,iCAAiC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { html } from '../../symbiote.js';
|
|
2
2
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
3
|
+
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
4
|
+
import { UploadSource } from '../utils/UploadSource.js';
|
|
3
5
|
import { canUsePermissionsApi } from '../utils/abilities.js';
|
|
4
6
|
import { debounce } from '../utils/debounce.js';
|
|
5
|
-
import { UploadSource } from '../utils/UploadSource.js';
|
|
6
7
|
|
|
7
8
|
export class CameraSource extends UploaderBlock {
|
|
8
9
|
couldBeCtxOwner = true;
|
|
@@ -213,7 +214,7 @@ export class CameraSource extends UploaderBlock {
|
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
|
|
216
|
-
CameraSource.template =
|
|
217
|
+
CameraSource.template = html`
|
|
217
218
|
<uc-activity-header>
|
|
218
219
|
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
219
220
|
<uc-icon name="back"></uc-icon>
|
|
@@ -224,7 +225,7 @@ CameraSource.template = /* HTML */ `
|
|
|
224
225
|
</div>
|
|
225
226
|
<uc-select
|
|
226
227
|
class="uc-camera-select"
|
|
227
|
-
set="
|
|
228
|
+
set="options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
|
|
228
229
|
>
|
|
229
230
|
</uc-select>
|
|
230
231
|
<button type="button" class="uc-mini-btn uc-close-btn" set="onclick: *closeModal">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudImageEditorBlock.d.ts","sourceRoot":"","sources":["CloudImageEditorBlock.js"],"names":[],"mappings":"AAmBA;IAOI
|
|
1
|
+
{"version":3,"file":"CloudImageEditorBlock.d.ts","sourceRoot":"","sources":["CloudImageEditorBlock.js"],"names":[],"mappings":"AAmBA;IAOI;;;;;;;;yCATS,YAAY;kCAGtB,YAAY;;;;;;;;;;;;;;;;;;;;;8CAqCA,YACT;;MA7BD;IAGH,eAAe;IACf,6BAAkE;IAElE;;;OAGG;IACH,oBAEC;IAED;;;;;OAKG;IACH,qBAeC;IAYD,6BAkDC;IAED,4BA0FC;IA9EG,iCAAwB;CA+E7B;;;;sBA1NqB,4BAA4B;yBAezB,eAAe"}
|
|
@@ -34,55 +34,55 @@ export class CropFrame extends Block {
|
|
|
34
34
|
private _createFrame;
|
|
35
35
|
_frameThumbs: Partial<{
|
|
36
36
|
"": {
|
|
37
|
-
direction: import(
|
|
37
|
+
direction: import("./types.js").Direction;
|
|
38
38
|
pathNode: SVGElement;
|
|
39
39
|
interactionNode: SVGElement;
|
|
40
40
|
groupNode: SVGElement;
|
|
41
41
|
};
|
|
42
42
|
n: {
|
|
43
|
-
direction: import(
|
|
43
|
+
direction: import("./types.js").Direction;
|
|
44
44
|
pathNode: SVGElement;
|
|
45
45
|
interactionNode: SVGElement;
|
|
46
46
|
groupNode: SVGElement;
|
|
47
47
|
};
|
|
48
48
|
s: {
|
|
49
|
-
direction: import(
|
|
49
|
+
direction: import("./types.js").Direction;
|
|
50
50
|
pathNode: SVGElement;
|
|
51
51
|
interactionNode: SVGElement;
|
|
52
52
|
groupNode: SVGElement;
|
|
53
53
|
};
|
|
54
54
|
e: {
|
|
55
|
-
direction: import(
|
|
55
|
+
direction: import("./types.js").Direction;
|
|
56
56
|
pathNode: SVGElement;
|
|
57
57
|
interactionNode: SVGElement;
|
|
58
58
|
groupNode: SVGElement;
|
|
59
59
|
};
|
|
60
60
|
w: {
|
|
61
|
-
direction: import(
|
|
61
|
+
direction: import("./types.js").Direction;
|
|
62
62
|
pathNode: SVGElement;
|
|
63
63
|
interactionNode: SVGElement;
|
|
64
64
|
groupNode: SVGElement;
|
|
65
65
|
};
|
|
66
66
|
ne: {
|
|
67
|
-
direction: import(
|
|
67
|
+
direction: import("./types.js").Direction;
|
|
68
68
|
pathNode: SVGElement;
|
|
69
69
|
interactionNode: SVGElement;
|
|
70
70
|
groupNode: SVGElement;
|
|
71
71
|
};
|
|
72
72
|
nw: {
|
|
73
|
-
direction: import(
|
|
73
|
+
direction: import("./types.js").Direction;
|
|
74
74
|
pathNode: SVGElement;
|
|
75
75
|
interactionNode: SVGElement;
|
|
76
76
|
groupNode: SVGElement;
|
|
77
77
|
};
|
|
78
78
|
se: {
|
|
79
|
-
direction: import(
|
|
79
|
+
direction: import("./types.js").Direction;
|
|
80
80
|
pathNode: SVGElement;
|
|
81
81
|
interactionNode: SVGElement;
|
|
82
82
|
groupNode: SVGElement;
|
|
83
83
|
};
|
|
84
84
|
sw: {
|
|
85
|
-
direction: import(
|
|
85
|
+
direction: import("./types.js").Direction;
|
|
86
86
|
pathNode: SVGElement;
|
|
87
87
|
interactionNode: SVGElement;
|
|
88
88
|
groupNode: SVGElement;
|
|
@@ -96,7 +96,7 @@ export class CropFrame extends Block {
|
|
|
96
96
|
*/
|
|
97
97
|
private _handlePointerDown;
|
|
98
98
|
_draggingThumb: {
|
|
99
|
-
direction: import(
|
|
99
|
+
direction: import("./types.js").Direction;
|
|
100
100
|
pathNode: SVGElement;
|
|
101
101
|
interactionNode: SVGElement;
|
|
102
102
|
groupNode: SVGElement;
|
|
@@ -126,7 +126,7 @@ export class CropFrame extends Block {
|
|
|
126
126
|
*/
|
|
127
127
|
private _handleSvgPointerMove_;
|
|
128
128
|
_hoverThumb: {
|
|
129
|
-
direction: import(
|
|
129
|
+
direction: import("./types.js").Direction;
|
|
130
130
|
pathNode: SVGElement;
|
|
131
131
|
interactionNode: SVGElement;
|
|
132
132
|
groupNode: SVGElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CropFrame.d.ts","sourceRoot":"","sources":["CropFrame.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CropFrame.d.ts","sourceRoot":"","sources":["CropFrame.js"],"names":[],"mappings":"AA4BA;IAII;;MAGC;IAED,eAAe;IACf,yBAAyD;IAEzD,eAAe;IACf,2BAA6D;IAE7D,eAAe;IACf,8BAAmE;IAGrE;;;OAGG;IACH,+BAaC;IAED,eAAe;IACf,wBAyCC;IAFC,sCAAyB;IACzB,2CAAuC;IAGzC;;;OAGG;IACH,wBAUC;IAED,eAAe;IACf,wBASC;IAED,eAAe;IACf,qBAgEC;IAED,eAAe;IACf,sBAyCC;IAED,eAAe;IACf,sBA4CC;IAED,eAAe;IACf,qBAeC;IAFC;;uBApGkB,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;;uBAHV,OAAO,YAAY,EAAE,SAAS;sBAC/B,UAAU;6BACH,UAAU;uBAChB,UAAU;;mBAiGG;IAC/B,qCAA+B;IAGjC;;;;OAIG;IACH,2BAiBC;IAJC;mBA1HkB,OAAO,YAAY,EAAE,SAAS;kBAC/B,UAAU;yBACH,UAAU;mBAChB,UAAU;kBAuHD;IAC3B,sCAA6B;IAC7B,6CAA6C;IAC7C,2DAAoC;IAGtC;;;OAGG;IACH,0BAUC;IAED;;;OAGG;IACH,4BAmBC;IAED;;;;OAIG;IACH,qBAsBC;IAED;;;OAGG;IACH,+BAqBC;IAFC;mBA7NkB,OAAO,YAAY,EAAE,SAAS;kBAC/B,UAAU;yBACH,UAAU;mBAChB,UAAU;kBA0NC;IAI/B,eAAe;IACf,sBAGC;IAED,eAAe;IACf,gBAGC;IAED,+BAA+B;IAC/B,sBADY,OAAO,QAclB;IAmBG,mCAAsF;CA6B3F;;;;sBA3fqB,4BAA4B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../../symbiote.js';
|
|
2
3
|
import { Block } from '../../../abstract/Block.js';
|
|
3
4
|
import {
|
|
4
5
|
clamp,
|
|
@@ -508,4 +509,4 @@ export class CropFrame extends Block {
|
|
|
508
509
|
}
|
|
509
510
|
}
|
|
510
511
|
|
|
511
|
-
CropFrame.template =
|
|
512
|
+
CropFrame.template = html`<svg class="uc-svg" ref="svg-el" xmlns="http://www.w3.org/2000/svg"></svg>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorButtonControl.d.ts","sourceRoot":"","sources":["EditorButtonControl.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorButtonControl.d.ts","sourceRoot":"","sources":["EditorButtonControl.js"],"names":[],"mappings":"AAIA;IACE,WAOE;IAKA,cAAoC;IACpC,aAAkC;CAoBrC;;;;sBApCqB,4BAA4B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '../../../symbiote.js';
|
|
1
2
|
import { classNames } from './lib/classNames.js';
|
|
2
3
|
import { Block } from '../../../abstract/Block.js';
|
|
3
4
|
|
|
@@ -37,7 +38,7 @@ export class EditorButtonControl extends Block {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
EditorButtonControl.template =
|
|
41
|
+
EditorButtonControl.template = html`
|
|
41
42
|
<button type="button" role="option" l10n="@title:title-prop">
|
|
42
43
|
<uc-icon set="@name: icon;"></uc-icon>
|
|
43
44
|
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorFilterControl.d.ts","sourceRoot":"","sources":["EditorFilterControl.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorFilterControl.d.ts","sourceRoot":"","sources":["EditorFilterControl.js"],"names":[],"mappings":"AAQA;IAcE,sBA2BC;IAED;;;OAGG;IACH,2BAHW,yBAAyB,EAAE,YAC3B,oBAAoB,iBAuB9B;IAfG,yCAA4B;IAoC1B,+BAA0B;IAC1B,4BAAqB;IAYzB,4CAEE;IAGF,kBAA+B;CA4ClC;;;;oCA5JmC,0BAA0B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../../symbiote.js';
|
|
2
3
|
import { createCdnUrl, createCdnUrlModifiers } from '../../../utils/cdn-utils.js';
|
|
3
4
|
import { EditorButtonControl } from './EditorButtonControl.js';
|
|
4
5
|
import { FAKE_ORIGINAL_FILTER } from './EditorSlider.js';
|
|
5
|
-
import { COMMON_OPERATIONS, transformationsToOperations } from './lib/transformationUtils.js';
|
|
6
6
|
import { preloadImage } from './lib/preloadImage.js';
|
|
7
|
+
import { COMMON_OPERATIONS, transformationsToOperations } from './lib/transformationUtils.js';
|
|
7
8
|
|
|
8
9
|
export class EditorFilterControl extends EditorButtonControl {
|
|
9
10
|
constructor() {
|
|
@@ -15,7 +16,6 @@ export class EditorFilterControl extends EditorButtonControl {
|
|
|
15
16
|
title: '',
|
|
16
17
|
icon: '',
|
|
17
18
|
isOriginal: false,
|
|
18
|
-
iconSize: '20',
|
|
19
19
|
'on.click': null,
|
|
20
20
|
};
|
|
21
21
|
}
|
|
@@ -125,10 +125,6 @@ export class EditorFilterControl extends EditorButtonControl {
|
|
|
125
125
|
this.$.active = currentFilter && currentFilter === this._filter;
|
|
126
126
|
});
|
|
127
127
|
|
|
128
|
-
this.sub('isOriginal', (isOriginal) => {
|
|
129
|
-
this.$.iconSize = isOriginal ? 40 : 20;
|
|
130
|
-
});
|
|
131
|
-
|
|
132
128
|
this.sub('active', (active) => {
|
|
133
129
|
if (this.$.isOriginal) {
|
|
134
130
|
return;
|
|
@@ -163,7 +159,7 @@ export class EditorFilterControl extends EditorButtonControl {
|
|
|
163
159
|
}
|
|
164
160
|
}
|
|
165
161
|
|
|
166
|
-
EditorFilterControl.template =
|
|
162
|
+
EditorFilterControl.template = html`
|
|
167
163
|
<button type="button" role="option" l10n="@title:title-prop">
|
|
168
164
|
<div class="uc-preview" ref="preview-el"></div>
|
|
169
165
|
<uc-icon ref="icon-el" set="@name: icon; @size: iconSize;"></uc-icon>
|
|
@@ -5,9 +5,9 @@ export class EditorImageCropper extends Block {
|
|
|
5
5
|
/** @type {Operations} */
|
|
6
6
|
'*operations': Operations;
|
|
7
7
|
/** @type {import('./types.js').Rectangle} */
|
|
8
|
-
'*imageBox': import(
|
|
8
|
+
'*imageBox': import("./types.js").Rectangle;
|
|
9
9
|
/** @type {import('./types.js').Rectangle} */
|
|
10
|
-
'*cropBox': import(
|
|
10
|
+
'*cropBox': import("./types.js").Rectangle;
|
|
11
11
|
};
|
|
12
12
|
/** @private */
|
|
13
13
|
private _commitDebounced;
|
|
@@ -65,7 +65,7 @@ export class EditorImageCropper extends Block {
|
|
|
65
65
|
* @param {import('./types.js').ImageSize} imageSize
|
|
66
66
|
* @param {{ fromViewer?: boolean }} options
|
|
67
67
|
*/
|
|
68
|
-
activate(imageSize: import(
|
|
68
|
+
activate(imageSize: import("./types.js").ImageSize, { fromViewer }?: {
|
|
69
69
|
fromViewer?: boolean;
|
|
70
70
|
}): Promise<void>;
|
|
71
71
|
_isActive: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
|
|
2
|
+
import { html } from '../../../symbiote.js';
|
|
3
3
|
import { Block } from '../../../abstract/Block.js';
|
|
4
4
|
import { debounce } from '../../utils/debounce.js';
|
|
5
5
|
import { throttle } from '../../utils/throttle.js';
|
|
@@ -545,7 +545,7 @@ export class EditorImageCropper extends Block {
|
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
-
EditorImageCropper.template =
|
|
548
|
+
EditorImageCropper.template = html`
|
|
549
549
|
<canvas class="uc-canvas" ref="canvas-el"></canvas>
|
|
550
550
|
<uc-crop-frame ref="frame-el"></uc-crop-frame>
|
|
551
551
|
`;
|
|
@@ -79,7 +79,7 @@ export class EditorImageFader extends Block {
|
|
|
79
79
|
_cancelLastImages: any;
|
|
80
80
|
_container: HTMLDivElement | undefined;
|
|
81
81
|
/** @param {import('./types.js').Transformations} transformations */
|
|
82
|
-
setTransformations(transformations: import(
|
|
82
|
+
setTransformations(transformations: import("./types.js").Transformations): Promise<void>;
|
|
83
83
|
_transformations: import("./types.js").Transformations | undefined;
|
|
84
84
|
/**
|
|
85
85
|
* @param {object} options
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorImageFader.d.ts","sourceRoot":"","sources":["EditorImageFader.js"],"names":[],"mappings":"AA8DA;;;;;;;GAOG;AAEH;IAII;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,gBAAmB;IAEnB,eAAe;IACf,8BAAwE;IAK1E;;;;OAIG;IACH,4BAmBC;IAED,eAAe;IACf,eAWC;IATC,yBAQE;IAGJ;;;;;;;;OAQG;IACH,kBAUC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;;;;OAOG;IACH,gBAEC;IAED;;;;;OAKG;IACH,qBA0CC;IAED,qCAAqC;IACrC,WADY,eAAe,QAK1B;IAED;;;;OAIG;IACH,gBAgBC;IAfC,+BAA2B;IAC3B,2BAAmB;IAgBrB,eAAe;IACf,4BAKC;IAED,eAAe;IACf,mBAmCC;IAjCC,mBAAqE;IAcrE,uBAGC;IAMC,uCAA2B;IAY/B,oEAAoE;IACpE,oCADY,OAAO,YAAY,EAAE,eAAe,iBAmB/C;IAjBC,mEAAuC;IAmBzC;;;;;;OAMG;IACH;
|
|
1
|
+
{"version":3,"file":"EditorImageFader.d.ts","sourceRoot":"","sources":["EditorImageFader.js"],"names":[],"mappings":"AA8DA;;;;;;;GAOG;AAEH;IAII;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,gBAAmB;IAEnB,eAAe;IACf,8BAAwE;IAK1E;;;;OAIG;IACH,4BAmBC;IAED,eAAe;IACf,eAWC;IATC,yBAQE;IAGJ;;;;;;;;OAQG;IACH,kBAUC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;;;;OAOG;IACH,gBAEC;IAED;;;;;OAKG;IACH,qBA0CC;IAED,qCAAqC;IACrC,WADY,eAAe,QAK1B;IAED;;;;OAIG;IACH,gBAgBC;IAfC,+BAA2B;IAC3B,2BAAmB;IAgBrB,eAAe;IACf,4BAKC;IAED,eAAe;IACf,mBAmCC;IAjCC,mBAAqE;IAcrE,uBAGC;IAMC,uCAA2B;IAY/B,oEAAoE;IACpE,oCADY,OAAO,YAAY,EAAE,eAAe,iBAmB/C;IAjBC,mEAAuC;IAmBzC;;;;;;OAMG;IACH,2CALG;QAAwB,GAAG;QACH,SAAS;QACT,KAAK;QACJ,MAAM;KAAC,iBAUlC;IADC,8CAAiC;IAGnC,eAAe;IACf,wBA4CC;IAED;;;;;;;OAOG;IACH,wDANG;QAAwB,GAAG;QACF,SAAS;QACT,KAAK;QACL,MAAM;QACL,UAAU;KAAC,iBAwBvC;IAnBC,yBAAe;IAGf,4BAAqB;IACrB,iCAA6B;IAS7B,mCAEC;IAMH,0CAA0C;IAC1C,sBADY;QAAE,IAAI,CAAC,UAAS;KAAE,QA4B7B;CACF;;;;;WApYa,gBAAgB;;;sBAlER,4BAA4B"}
|
|
@@ -11,7 +11,7 @@ export class EditorOperationControl extends EditorButtonControl {
|
|
|
11
11
|
initCallback() {
|
|
12
12
|
super.initCallback();
|
|
13
13
|
|
|
14
|
-
this.$['on.click'] = (
|
|
14
|
+
this.$['on.click'] = () => {
|
|
15
15
|
this.$['*sliderEl'].setOperation(this._operation);
|
|
16
16
|
this.$['*showSlider'] = true;
|
|
17
17
|
this.$['*currentOperation'] = this._operation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorScroller.d.ts","sourceRoot":"","sources":["EditorScroller.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorScroller.d.ts","sourceRoot":"","sources":["EditorScroller.js"],"names":[],"mappings":"AAKA;CA0BC;;;;sBA9BqB,4BAA4B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '../../../symbiote.js';
|
|
1
2
|
import { Block } from '../../../abstract/Block.js';
|
|
2
3
|
|
|
3
4
|
const X_THRESHOLD = 1;
|
|
@@ -30,4 +31,4 @@ export class EditorScroller extends Block {
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
EditorScroller.template =
|
|
34
|
+
EditorScroller.template = html` <slot></slot> `;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorSlider.d.ts","sourceRoot":"","sources":["EditorSlider.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorSlider.d.ts","sourceRoot":"","sources":["EditorSlider.js"],"names":[],"mappings":"AASA,8CAA+C;AAE/C;IACE,WAYE;IAEF;;;OAGG;IACH,mEAgBC;IAfC,iCAA6F;IAC7F,+BAA2B;IAC3B,8BAA0B;IAC1B,2BAAqC;IACrC,4BAAqB;IAavB,eAAe;IACf,0BAuBC;IAED,cAmBC;IAED,eAEC;IAMG,kBAA+B;CAQpC;;;;sBA/GqB,4BAA4B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Block } from '../../../abstract/Block.js';
|
|
2
|
+
import { html } from '../../../symbiote.js';
|
|
2
3
|
import { COLOR_OPERATIONS_CONFIG } from './toolbar-constants.js';
|
|
3
4
|
|
|
4
5
|
const ControlType = {
|
|
@@ -110,7 +111,7 @@ export class EditorSlider extends Block {
|
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
EditorSlider.template =
|
|
114
|
+
EditorSlider.template = html`
|
|
114
115
|
<uc-slider-ui
|
|
115
116
|
ref="slider-el"
|
|
116
117
|
set="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
|
|
@@ -2,7 +2,7 @@ export class EditorToolbar extends Block {
|
|
|
2
2
|
init$: {
|
|
3
3
|
'*sliderEl': null;
|
|
4
4
|
/** @type {import('./types.js').LoadingOperations} */
|
|
5
|
-
'*loadingOperations': import(
|
|
5
|
+
'*loadingOperations': import("./types.js").LoadingOperations;
|
|
6
6
|
'*showSlider': boolean;
|
|
7
7
|
'*currentFilter': string;
|
|
8
8
|
'*currentOperation': null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["EditorToolbar.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["EditorToolbar.js"],"names":[],"mappings":"AA4DA;IAII;;QAGE,qDAAqD;8BAA1C,OAAO,YAAY,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuDjD,4BAA4B;2BAAhB,UAAU;;;;;;;MAgBvB;IAED,eAAe;IAEf,6BAAsE;IAGxE,eAAe;IACf,uBAKC;IAED;;;OAGG;IACH,gCAKC;IAED;;;OAGG;IACH,6BAKC;IAED;;;OAGG;IACH,6BAKC;IAED;;;OAGG;IACH,4BAoCC;IAED;;;;OAIG;IACH,qBAyBC;IAED;;;OAGG;IACH,4BAKC;IAED,eAAe;IACf,0BAIC;IAED,eAAe;IACf,4BAWC;IALG,oBAGC;IAIL;;;OAGG;IACH,oBAEC;IAED;;MAwBM;CAiFP;;;;sBAlZqB,4BAA4B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '../../../symbiote.js';
|
|
2
3
|
import { debounce } from '../../utils/debounce.js';
|
|
3
4
|
import { Block } from '../../../abstract/Block.js';
|
|
4
5
|
import { EditorCropButtonControl } from './EditorCropButtonControl.js';
|
|
@@ -37,7 +38,7 @@ function renderTabToggle(id) {
|
|
|
37
38
|
|
|
38
39
|
/** @param {String} id */
|
|
39
40
|
function renderTabContent(id) {
|
|
40
|
-
return
|
|
41
|
+
return html`
|
|
41
42
|
<uc-presence-toggle
|
|
42
43
|
id="tab_${id}"
|
|
43
44
|
class="uc-tab-content"
|
|
@@ -339,7 +340,7 @@ export class EditorToolbar extends Block {
|
|
|
339
340
|
this.sub('*editorTransformations', (editorTransformations) => {
|
|
340
341
|
let appliedFilter = editorTransformations?.filter?.name;
|
|
341
342
|
if (this.$['*currentFilter'] !== appliedFilter) {
|
|
342
|
-
this.$['*currentFilter'] = appliedFilter;
|
|
343
|
+
this.$['*currentFilter'] = appliedFilter ?? null;
|
|
343
344
|
}
|
|
344
345
|
});
|
|
345
346
|
|
|
@@ -404,7 +405,7 @@ export class EditorToolbar extends Block {
|
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
407
|
|
|
407
|
-
EditorToolbar.template =
|
|
408
|
+
EditorToolbar.template = html`
|
|
408
409
|
<uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
|
|
409
410
|
<div class="uc-info-tooltip_container">
|
|
410
411
|
<div class="uc-info-tooltip_wrapper">
|