@uploadcare/file-uploader 1.2.0 → 1.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/abstract/ActivityBlock.d.ts +1 -1
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/ActivityBlock.js +2 -0
- package/abstract/Block.d.ts +4 -11
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +37 -18
- 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/bindCompatibilityFallbackProcessor.d.ts +3 -0
- package/abstract/bindCompatibilityFallbackProcessor.d.ts.map +1 -0
- package/abstract/bindCompatibilityFallbackProcessor.js +16 -0
- 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 +12 -11
- 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 +3 -2
- package/blocks/CloudImageEditor/src/EditorCropButtonControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +4 -8
- 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 +3 -2
- 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 +15 -14
- 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 +5 -5
- 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 +3 -2
- 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 +5 -4
- 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 +3 -3
- 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 +5 -5
- 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 +9 -9
- package/blocks/ExternalSource/buildStyles.js +2 -2
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.d.ts +3 -3
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +12 -11
- package/blocks/Icon/Icon.d.ts +0 -1
- package/blocks/Icon/Icon.d.ts.map +1 -1
- package/blocks/Icon/Icon.js +3 -5
- 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 +4 -3
- package/blocks/SourceBtn/SourceBtn.d.ts +2 -2
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +4 -4
- 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 +10 -11
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
- package/blocks/UrlSource/UrlSource.js +7 -6
- 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 +189 -78
- package/package.json +9 -7
- 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 -2
- 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 +2 -2
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +4 -3
- 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 +4 -4
- package/web/file-uploader.min.js +4 -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 +4 -4
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +4 -4
- package/web/uc-file-uploader-minimal.min.js +3 -3
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +4 -4
- package/web/uc-img.min.js +3 -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/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,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { html } from '@symbiotejs/symbiote';
|
|
2
3
|
import { debounce } from '../../utils/debounce.js';
|
|
3
4
|
import { Block } from '../../../abstract/Block.js';
|
|
4
5
|
import { EditorCropButtonControl } from './EditorCropButtonControl.js';
|
|
@@ -21,14 +22,14 @@ function renderTabToggle(id) {
|
|
|
21
22
|
return /* HTML */ `
|
|
22
23
|
<uc-presence-toggle
|
|
23
24
|
class="uc-tab-toggle"
|
|
24
|
-
|
|
25
|
+
bind="visible: presence.tabToggle.${id}; styles: presence.tabToggleStyles;"
|
|
25
26
|
>
|
|
26
27
|
<uc-btn-ui
|
|
27
28
|
theme="tab"
|
|
28
29
|
ref="tab-toggle-${id}"
|
|
29
30
|
data-id="${id}"
|
|
30
31
|
icon="${id}"
|
|
31
|
-
|
|
32
|
+
bind="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_${id}"
|
|
32
33
|
>
|
|
33
34
|
</uc-btn-ui>
|
|
34
35
|
</uc-presence-toggle>
|
|
@@ -37,11 +38,11 @@ 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"
|
|
44
|
-
|
|
45
|
+
bind="visible: presence.tabContent.${id}; styles: presence.tabContentStyles"
|
|
45
46
|
>
|
|
46
47
|
<uc-editor-scroller hidden-scrollbar>
|
|
47
48
|
<div class="uc-controls-list_align">
|
|
@@ -334,7 +335,7 @@ export class EditorToolbar extends Block {
|
|
|
334
335
|
this.sub('*editorTransformations', (editorTransformations) => {
|
|
335
336
|
let appliedFilter = editorTransformations?.filter?.name;
|
|
336
337
|
if (this.$['*currentFilter'] !== appliedFilter) {
|
|
337
|
-
this.$['*currentFilter'] = appliedFilter;
|
|
338
|
+
this.$['*currentFilter'] = appliedFilter ?? null;
|
|
338
339
|
}
|
|
339
340
|
});
|
|
340
341
|
|
|
@@ -399,8 +400,8 @@ export class EditorToolbar extends Block {
|
|
|
399
400
|
}
|
|
400
401
|
}
|
|
401
402
|
|
|
402
|
-
EditorToolbar.template =
|
|
403
|
-
<uc-line-loader-ui
|
|
403
|
+
EditorToolbar.template = html`
|
|
404
|
+
<uc-line-loader-ui bind="active: showLoader"></uc-line-loader-ui>
|
|
404
405
|
<div class="uc-info-tooltip_container">
|
|
405
406
|
<div class="uc-info-tooltip_wrapper">
|
|
406
407
|
<div ref="tooltip-el" class="uc-info-tooltip uc-info-tooltip_hidden">{{*operationTooltip}}</div>
|
|
@@ -410,31 +411,31 @@ EditorToolbar.template = /* HTML */ `
|
|
|
410
411
|
<uc-presence-toggle
|
|
411
412
|
role="tablist"
|
|
412
413
|
class="uc-sub-toolbar"
|
|
413
|
-
|
|
414
|
+
bind="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
|
|
414
415
|
>
|
|
415
416
|
<div class="uc-tab-content-row">${ALL_TABS.map(renderTabContent).join('')}</div>
|
|
416
417
|
<div class="uc-controls-row">
|
|
417
418
|
<uc-presence-toggle
|
|
418
419
|
class="uc-tab-toggles"
|
|
419
|
-
|
|
420
|
+
bind="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
|
|
420
421
|
>
|
|
421
422
|
<div ref="tabs-indicator" class="uc-tab-toggles_indicator"></div>
|
|
422
423
|
${ALL_TABS.map(renderTabToggle).join('')}
|
|
423
424
|
</uc-presence-toggle>
|
|
424
|
-
<uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax"
|
|
425
|
-
<uc-btn-ui theme="primary-icon" icon="done"
|
|
425
|
+
<uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" bind="onclick: on.cancel"> </uc-btn-ui>
|
|
426
|
+
<uc-btn-ui theme="primary-icon" icon="done" bind="onclick: on.apply"> </uc-btn-ui>
|
|
426
427
|
</div>
|
|
427
428
|
</uc-presence-toggle>
|
|
428
429
|
<uc-presence-toggle
|
|
429
430
|
class="uc-sub-toolbar"
|
|
430
|
-
|
|
431
|
+
bind="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
|
|
431
432
|
>
|
|
432
433
|
<div class="uc-slider">
|
|
433
434
|
<uc-editor-slider ref="slider-el"></uc-editor-slider>
|
|
434
435
|
</div>
|
|
435
436
|
<div class="uc-controls-row">
|
|
436
|
-
<uc-btn-ui theme="secondary"
|
|
437
|
-
<uc-btn-ui theme="primary"
|
|
437
|
+
<uc-btn-ui theme="secondary" bind="onclick: on.cancelSlider;" l10n="@text:cancel"> </uc-btn-ui>
|
|
438
|
+
<uc-btn-ui theme="primary" bind="onclick: on.applySlider;" l10n="@text:apply"> </uc-btn-ui>
|
|
438
439
|
</div>
|
|
439
440
|
</uc-presence-toggle>
|
|
440
441
|
</div>
|
|
@@ -18,7 +18,7 @@ export function createSvgNode(name: string, attrs?: {
|
|
|
18
18
|
* @param {import('./types.js').Direction} direction
|
|
19
19
|
* @param {number} sizeMultiplier
|
|
20
20
|
*/
|
|
21
|
-
export function cornerPath(rect: import(
|
|
21
|
+
export function cornerPath(rect: import("./types.js").Rectangle, direction: import("./types.js").Direction, sizeMultiplier: number): {
|
|
22
22
|
d: string;
|
|
23
23
|
center: number[];
|
|
24
24
|
};
|
|
@@ -27,12 +27,12 @@ export function cornerPath(rect: import('./types.js').Rectangle, direction: impo
|
|
|
27
27
|
* @param {Extract<import('./types.js').Direction, 'n' | 's' | 'w' | 'e'>} direction
|
|
28
28
|
* @param {number} sizeMultiplier
|
|
29
29
|
*/
|
|
30
|
-
export function sidePath(rect: import(
|
|
30
|
+
export function sidePath(rect: import("./types.js").Rectangle, direction: Extract<import("./types.js").Direction, "n" | "s" | "w" | "e">, sizeMultiplier: number): {
|
|
31
31
|
d: string;
|
|
32
32
|
center: number[];
|
|
33
33
|
};
|
|
34
34
|
/** @param {import('./types.js').Direction} direction */
|
|
35
|
-
export function thumbCursor(direction: import(
|
|
35
|
+
export function thumbCursor(direction: import("./types.js").Direction): "move" | "ew-resize" | "ns-resize" | "nwse-resize" | "nesw-resize";
|
|
36
36
|
/**
|
|
37
37
|
* @param {{
|
|
38
38
|
* rect: import('./types.js').Rectangle;
|
|
@@ -41,9 +41,9 @@ export function thumbCursor(direction: import('./types.js').Direction): "move" |
|
|
|
41
41
|
* }} options
|
|
42
42
|
*/
|
|
43
43
|
export function moveRect({ rect, delta: [dx, dy], imageBox }: {
|
|
44
|
-
rect: import(
|
|
44
|
+
rect: import("./types.js").Rectangle;
|
|
45
45
|
delta: [number, number];
|
|
46
|
-
imageBox: import(
|
|
46
|
+
imageBox: import("./types.js").Rectangle;
|
|
47
47
|
}): {
|
|
48
48
|
x: number;
|
|
49
49
|
y: number;
|
|
@@ -54,7 +54,7 @@ export function moveRect({ rect, delta: [dx, dy], imageBox }: {
|
|
|
54
54
|
* @param {import('./types.js').Rectangle} rect1
|
|
55
55
|
* @param {import('./types.js').Rectangle} rect2
|
|
56
56
|
*/
|
|
57
|
-
export function constraintRect(rect1: import(
|
|
57
|
+
export function constraintRect(rect1: import("./types.js").Rectangle, rect2: import("./types.js").Rectangle): {
|
|
58
58
|
x: number;
|
|
59
59
|
y: number;
|
|
60
60
|
width: number;
|
|
@@ -70,33 +70,33 @@ export function constraintRect(rect1: import('./types.js').Rectangle, rect2: imp
|
|
|
70
70
|
* }} options
|
|
71
71
|
*/
|
|
72
72
|
export function resizeRect({ direction, ...rest }: {
|
|
73
|
-
rect: import(
|
|
73
|
+
rect: import("./types.js").Rectangle;
|
|
74
74
|
delta: [number, number];
|
|
75
|
-
direction: import(
|
|
75
|
+
direction: import("./types.js").Direction;
|
|
76
76
|
aspectRatio?: number;
|
|
77
|
-
imageBox: import(
|
|
77
|
+
imageBox: import("./types.js").Rectangle;
|
|
78
78
|
}): import("./types.js").Rectangle;
|
|
79
79
|
/**
|
|
80
80
|
* @param {import('./types.js').Rectangle} rect
|
|
81
81
|
* @param {[Number, Number]} point
|
|
82
82
|
*/
|
|
83
|
-
export function rectContainsPoint(rect: import(
|
|
83
|
+
export function rectContainsPoint(rect: import("./types.js").Rectangle, [x, y]: [number, number]): boolean;
|
|
84
84
|
/**
|
|
85
85
|
* @param {import('./types.js').Rectangle} rect1
|
|
86
86
|
* @param {import('./types.js').Rectangle} rect2
|
|
87
87
|
*/
|
|
88
|
-
export function isRectInsideRect(rect1: import(
|
|
88
|
+
export function isRectInsideRect(rect1: import("./types.js").Rectangle, rect2: import("./types.js").Rectangle): boolean;
|
|
89
89
|
/**
|
|
90
90
|
* @param {import('./types.js').Rectangle} rect
|
|
91
91
|
* @param {number} aspectRatio
|
|
92
92
|
*/
|
|
93
|
-
export function isRectMatchesAspectRatio(rect: import(
|
|
93
|
+
export function isRectMatchesAspectRatio(rect: import("./types.js").Rectangle, aspectRatio: number): boolean;
|
|
94
94
|
/**
|
|
95
95
|
* @param {import('./types.js').ImageSize} imageSize
|
|
96
96
|
* @param {Number} angle
|
|
97
97
|
* @returns {import('./types.js').ImageSize}
|
|
98
98
|
*/
|
|
99
|
-
export function rotateSize({ width, height }: import(
|
|
99
|
+
export function rotateSize({ width, height }: import("./types.js").ImageSize, angle: number): import("./types.js").ImageSize;
|
|
100
100
|
/**
|
|
101
101
|
* @param {number} width
|
|
102
102
|
* @param {number} height
|
|
@@ -112,7 +112,7 @@ export function calculateMaxCenteredCropFrame(width: number, height: number, asp
|
|
|
112
112
|
* @param {import('./types.js').Rectangle} rect
|
|
113
113
|
* @returns {import('./types.js').Rectangle}
|
|
114
114
|
*/
|
|
115
|
-
export function roundRect(rect: import(
|
|
115
|
+
export function roundRect(rect: import("./types.js").Rectangle): import("./types.js").Rectangle;
|
|
116
116
|
/**
|
|
117
117
|
* @param {Number} value
|
|
118
118
|
* @param {Number} min
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crop-utils.d.ts","sourceRoot":"","sources":["crop-utils.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,sCAHW,UAAU
|
|
1
|
+
{"version":3,"file":"crop-utils.d.ts","sourceRoot":"","sources":["crop-utils.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,sCAHW,UAAU,SACV;IAAE,CAAC,GAAG,QAAQ,GAAG,eAAe,CAAA;CAAE,QAI5C;AAED;;;;GAIG;AACH,oDAHW;IAAE,CAAC,GAAG,QAAQ,GAAG,eAAe,CAAA;CAAE,GAChC,UAAU,CAMtB;AAED;;;;GAIG;AACH,iCAJW,OAAO,YAAY,EAAE,SAAS,aAC9B,OAAO,YAAY,EAAE,SAAS,kBAC9B,MAAM;;;EA2BhB;AAED;;;;GAIG;AACH,+BAJW,OAAO,YAAY,EAAE,SAAS,aAC9B,OAAO,CAAC,OAAO,YAAY,EAAE,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,kBAC9D,MAAM;;;EA0BhB;AAED,wDAAwD;AACxD,uCADY,OAAO,YAAY,EAAE,SAAS,sEAezC;AAED;;;;;;GAMG;AACH,8DANW;IACV,IAAQ,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;IACzC,KAAS,EAAE,gBAAgB,CAAC;IAC5B,QAAY,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;CAC1C;;;;;EAWH;AAED;;;GAGG;AACH,sCAHW,OAAO,YAAY,EAAE,SAAS,SAC9B,OAAO,YAAY,EAAE,SAAS;;;;;EAqBxC;AA8cD;;;;;;;;GAQG;AACH,mDARW;IACV,IAAQ,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;IACzC,KAAS,EAAE,gBAAgB,CAAC;IAC5B,SAAa,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;IAC9C,WAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAY,EAAE,OAAO,YAAY,EAAE,SAAS,CAAC;CAC1C,kCAuBH;AAED;;;GAGG;AACH,wCAHW,OAAO,YAAY,EAAE,SAAS,UAC9B,gBAAgB,WAI1B;AAED;;;GAGG;AACH,wCAHW,OAAO,YAAY,EAAE,SAAS,SAC9B,OAAO,YAAY,EAAE,SAAS,WASxC;AAED;;;GAGG;AACH,+CAHW,OAAO,YAAY,EAAE,SAAS,eAC9B,MAAM,WAKhB;AAED;;;;GAIG;AACH,8CAJW,OAAO,YAAY,EAAE,SAAS,kBAE5B,OAAO,YAAY,EAAE,SAAS,CAK1C;AAED;;;;GAIG;AACH,qDAJW,MAAM,UACN,MAAM,eACN,MAAM;;;;;EAyBhB;AAED;;;GAGG;AACH,gCAHW,OAAO,YAAY,EAAE,SAAS,GAC5B,OAAO,YAAY,EAAE,SAAS,CAS1C;AAED;;;;;GAKG;AACH,uEAEC"}
|
|
@@ -375,7 +375,7 @@ uc-editor-operation-control > button {
|
|
|
375
375
|
height: var(--size-icon);
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
uc-editor-filter-control
|
|
378
|
+
uc-editor-filter-control uc-icon.uc-original-icon > svg {
|
|
379
379
|
width: 100%;
|
|
380
380
|
height: 100%;
|
|
381
381
|
}
|
|
@@ -448,7 +448,7 @@ uc-editor-filter-control > button .uc-preview {
|
|
|
448
448
|
transition: var(--transition-duration-3);
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
uc-editor-filter-control
|
|
451
|
+
uc-editor-filter-control .uc-original-icon {
|
|
452
452
|
color: var(--color-effect);
|
|
453
453
|
opacity: 0.3;
|
|
454
454
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BtnUi.d.ts","sourceRoot":"","sources":["BtnUi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BtnUi.d.ts","sourceRoot":"","sources":["BtnUi.js"],"names":[],"mappings":"AAIA;IAII,uBAA0B;IAC1B,qBAAwB;IACxB,qBAAwB;IAExB;;;;;;;MAQC;IAWH,mBAOC;IAkCD,sBAQC;CACF;;;;sBAhFqB,kCAAkC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '@symbiotejs/symbiote';
|
|
1
2
|
import { Block } from '../../../../../abstract/Block.js';
|
|
2
3
|
import { classNames } from '../../lib/classNames.js';
|
|
3
4
|
|
|
@@ -52,7 +53,7 @@ export class BtnUi extends Block {
|
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
|
|
55
|
-
this.sub('text', (
|
|
56
|
+
this.sub('text', () => {
|
|
56
57
|
this._iconSingle = false;
|
|
57
58
|
});
|
|
58
59
|
|
|
@@ -79,12 +80,11 @@ export class BtnUi extends Block {
|
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
|
|
83
83
|
BtnUi.bindAttributes({ text: 'text', icon: 'icon', reverse: 'reverse', theme: 'theme' });
|
|
84
84
|
|
|
85
|
-
BtnUi.template =
|
|
86
|
-
<button type="button"
|
|
87
|
-
<uc-icon
|
|
85
|
+
BtnUi.template = html`
|
|
86
|
+
<button type="button" bind="@role:aria-role; @aria-controls: aria-controls">
|
|
87
|
+
<uc-icon bind="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
|
|
88
88
|
<div class="uc-text">{{text}}</div>
|
|
89
89
|
</button>
|
|
90
90
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineLoaderUi.d.ts","sourceRoot":"","sources":["LineLoaderUi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LineLoaderUi.d.ts","sourceRoot":"","sources":["LineLoaderUi.js"],"names":[],"mappings":"AAGA;IAII,iBAAoB;IAEpB,sCAMC;IAgBH,eAUC;IAED,cAEC;CACF;;;;sBA7CqB,kCAAkC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '@symbiotejs/symbiote';
|
|
1
2
|
import { Block } from '../../../../../abstract/Block.js';
|
|
2
3
|
|
|
3
4
|
export class LineLoaderUi extends Block {
|
|
@@ -45,7 +46,7 @@ export class LineLoaderUi extends Block {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
LineLoaderUi.template =
|
|
49
|
+
LineLoaderUi.template = html`
|
|
49
50
|
<div class="uc-inner">
|
|
50
51
|
<div class="uc-line" ref="line-el"></div>
|
|
51
52
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresenceToggle.d.ts","sourceRoot":"","sources":["PresenceToggle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PresenceToggle.d.ts","sourceRoot":"","sources":["PresenceToggle.js"],"names":[],"mappings":"AAkBA;IAII,kBAAqB;IACrB,kCAA0C;IAC1C,iCAAwC;IACxC,8BAAiC;IAqBnC,uBAQC;CAgBF;;;;;;;;;sBArEqB,kCAAkC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { html } from '@symbiotejs/symbiote';
|
|
2
2
|
import { Block } from '../../../../../abstract/Block.js';
|
|
3
|
+
import { applyClassNames } from '../../lib/classNames.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @typedef {Object} Style
|
|
@@ -68,4 +69,4 @@ export class PresenceToggle extends Block {
|
|
|
68
69
|
}, 0);
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
PresenceToggle.template =
|
|
72
|
+
PresenceToggle.template = html` <slot></slot> `;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderUi.d.ts","sourceRoot":"","sources":["SliderUi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SliderUi.d.ts","sourceRoot":"","sources":["SliderUi.js"],"names":[],"mappings":"AAGA;IACE,WAiBE;IA6BE,WAAiB;IAenB,sCAIE;IAGF,+BAAgG;IAyBlG,+BAWC;IAED,iCAgBC;IAED,qBAmCC;IALC,uCAA2B;IAI3B,iBAAwB;CAM3B;;;;sBAvKqB,kCAAkC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '@symbiotejs/symbiote';
|
|
1
2
|
import { Block } from '../../../../../abstract/Block.js';
|
|
2
3
|
|
|
3
4
|
export class SliderUi extends Block {
|
|
@@ -166,13 +167,13 @@ export class SliderUi extends Block {
|
|
|
166
167
|
this._observer?.disconnect();
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
SliderUi.template =
|
|
170
|
+
SliderUi.template = html`
|
|
170
171
|
<div class="uc-steps" ref="steps-el"></div>
|
|
171
172
|
<div ref="thumb-el" class="uc-thumb"></div>
|
|
172
173
|
<input
|
|
173
174
|
class="uc-input"
|
|
174
175
|
type="range"
|
|
175
176
|
ref="input-el"
|
|
176
|
-
|
|
177
|
+
bind="oninput: on.sliderInput; onchange: on.sliderChange; @min: min; @max: max; @value: defaultValue;"
|
|
177
178
|
/>
|
|
178
179
|
`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function parseCropPreset(cropPreset: import(
|
|
1
|
+
export function parseCropPreset(cropPreset: import("../../../../types/exported.d.ts").ConfigType["cropPreset"]): import("../types.js").CropAspectRatio[] | undefined;
|
|
2
2
|
//# sourceMappingURL=parseCropPreset.d.ts.map
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @param {import('../types').Transformations} transformations
|
|
3
3
|
* @returns {string}
|
|
4
4
|
*/
|
|
5
|
-
export function transformationsToOperations(transformations: import(
|
|
5
|
+
export function transformationsToOperations(transformations: import("../types").Transformations): string;
|
|
6
6
|
/**
|
|
7
7
|
* @param {string[]} operations
|
|
8
8
|
* @returns {import('../types.js').Transformations}
|
|
9
9
|
*/
|
|
10
|
-
export function operationsToTransformations(operations: string[]): import(
|
|
10
|
+
export function operationsToTransformations(operations: string[]): import("../types.js").Transformations;
|
|
11
11
|
/** @type {Record<keyof import('../types').Transformations, unknown>} */
|
|
12
|
-
export const OPERATIONS_DEFAULTS: Record<keyof import(
|
|
12
|
+
export const OPERATIONS_DEFAULTS: Record<keyof import("../types").Transformations, unknown>;
|
|
13
13
|
export const COMMON_OPERATIONS: string;
|
|
14
14
|
//# sourceMappingURL=transformationUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformationUtils.d.ts","sourceRoot":"","sources":["transformationUtils.js"],"names":[],"mappings":"AAsEA;;;GAGG;AACH,6DAHW,OAAO,UAAU,EAAE,eAAe,GAChC,MAAM,CAalB;AAoDD;;;GAGG;AACH,wDAHW,MAAM,EAAE,GACN,OAAO,aAAa,EAAE,eAAe,CA2BjD;AAlKD,wEAAwE;AACxE,kCADW,
|
|
1
|
+
{"version":3,"file":"transformationUtils.d.ts","sourceRoot":"","sources":["transformationUtils.js"],"names":[],"mappings":"AAsEA;;;GAGG;AACH,6DAHW,OAAO,UAAU,EAAE,eAAe,GAChC,MAAM,CAalB;AAoDD;;;GAGG;AACH,wDAHW,MAAM,EAAE,GACN,OAAO,aAAa,EAAE,eAAe,CA2BjD;AAlKD,wEAAwE;AACxE,kCADW,MAAM,CAAC,MAAM,OAAO,UAAU,EAAE,eAAe,EAAE,OAAO,CAAC,CAejE;AAoEH,uCAAqF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @param {import('./CloudImageEditorBlock.js').CloudImageEditorBlock} fnCtx */
|
|
2
|
-
export function initState(fnCtx: import(
|
|
2
|
+
export function initState(fnCtx: import("./CloudImageEditorBlock.js").CloudImageEditorBlock): {
|
|
3
3
|
'*originalUrl': null;
|
|
4
4
|
'*faderEl': null;
|
|
5
5
|
'*cropperEl': null;
|
|
@@ -8,9 +8,9 @@ export function initState(fnCtx: import('./CloudImageEditorBlock.js').CloudImage
|
|
|
8
8
|
'*networkProblems': boolean;
|
|
9
9
|
'*imageSize': null;
|
|
10
10
|
/** @type {import('./types.js').Transformations} */
|
|
11
|
-
'*editorTransformations': import(
|
|
11
|
+
'*editorTransformations': import("./types.js").Transformations;
|
|
12
12
|
/** @type {import('./types.js').CropPresetList} */
|
|
13
|
-
'*cropPresetList': import(
|
|
13
|
+
'*cropPresetList': import("./types.js").CropPresetList;
|
|
14
14
|
'*tabList': ("crop" | "tuning" | "filters")[];
|
|
15
15
|
'*tabId': "crop";
|
|
16
16
|
entry: null;
|
|
@@ -32,7 +32,7 @@ export function initState(fnCtx: import('./CloudImageEditorBlock.js').CloudImage
|
|
|
32
32
|
'presence.viewerToolbar': boolean;
|
|
33
33
|
'*on.retryNetwork': () => void;
|
|
34
34
|
/** @param {import('./types.js').Transformations} transformations */
|
|
35
|
-
'*on.apply': (transformations: import(
|
|
35
|
+
'*on.apply': (transformations: import("./types.js").Transformations) => void;
|
|
36
36
|
'*on.cancel': () => void;
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["template.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["template.js"],"names":[],"mappings":"AAIA,8BAgCE"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { html } from '@symbiotejs/symbiote';
|
|
1
2
|
import { TRANSPARENT_PIXEL_SRC } from '../../../utils/transparentPixelSrc.js';
|
|
2
3
|
import svgIconsSprite from './svg-sprite.js';
|
|
3
4
|
|
|
4
|
-
export const TEMPLATE =
|
|
5
|
+
export const TEMPLATE = html`
|
|
5
6
|
${svgIconsSprite}
|
|
6
7
|
<div class="uc-wrapper uc-wrapper_desktop">
|
|
7
|
-
<uc-presence-toggle class="uc-network_problems_splash"
|
|
8
|
+
<uc-presence-toggle class="uc-network_problems_splash" bind="visible: presence.networkProblems;">
|
|
8
9
|
<div class="uc-network_problems_content">
|
|
9
10
|
<div class="uc-network_problems_icon">
|
|
10
11
|
<uc-icon name="sad"></uc-icon>
|
|
@@ -12,7 +13,7 @@ export const TEMPLATE = /* HTML */ `
|
|
|
12
13
|
<div class="uc-network_problems_text">Network error</div>
|
|
13
14
|
</div>
|
|
14
15
|
<div class="uc-network_problems_footer">
|
|
15
|
-
<uc-btn-ui theme="primary" text="Retry"
|
|
16
|
+
<uc-btn-ui theme="primary" text="Retry" bind="onclick: *on.retryNetwork"></uc-btn-ui>
|
|
16
17
|
</div>
|
|
17
18
|
</uc-presence-toggle>
|
|
18
19
|
<div class="uc-viewport">
|
|
@@ -27,7 +28,7 @@ export const TEMPLATE = /* HTML */ `
|
|
|
27
28
|
<div class="uc-info_pan">{{msg}}</div>
|
|
28
29
|
</div>
|
|
29
30
|
<div class="uc-toolbar">
|
|
30
|
-
<uc-line-loader-ui
|
|
31
|
+
<uc-line-loader-ui bind="active: showLoader"></uc-line-loader-ui>
|
|
31
32
|
<div class="uc-toolbar_content uc-toolbar_content__editor">
|
|
32
33
|
<uc-editor-toolbar></uc-editor-toolbar>
|
|
33
34
|
</div>
|
|
@@ -49,10 +49,10 @@ export type ChangeResult = {
|
|
|
49
49
|
transformations: Transformations;
|
|
50
50
|
};
|
|
51
51
|
export type CropAspectRatio = {
|
|
52
|
-
type:
|
|
52
|
+
type: "aspect-ratio";
|
|
53
53
|
width: number;
|
|
54
54
|
height: number;
|
|
55
55
|
};
|
|
56
56
|
export type CropPresetList = CropAspectRatio[];
|
|
57
|
-
export type Direction =
|
|
57
|
+
export type Direction = "" | "n" | "s" | "e" | "w" | "ne" | "nw" | "se" | "sw";
|
|
58
58
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;gCAGa,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;gCAGa,GAAG,SAAS,GAAG,SAAS,OAAO,CAAC,CAAC;;;;wBAMjC;IAAE,KAAK,SAAS;IAAC,MAAM,SAAQ;CAAE;;;;;;;8BAYjC;IACZ,OAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,IAAQ,CAAC,EAAE;QAAE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACnE;;iBAKU,MAAM;qBACN,MAAM;YACN,MAAM;qBACN,eAAe;;;iBAKf,MAAM;qBACN,MAAM;YACN,MAAM;qBACN,eAAe;;8BAGf;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;6BAEvD,eAAe,EAAE;wBAEjB,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI"}
|
|
@@ -6,8 +6,8 @@ export class CloudImageEditorActivity extends UploaderBlock {
|
|
|
6
6
|
'*uploadList': never[];
|
|
7
7
|
'*focusedEntry': null;
|
|
8
8
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
9
|
-
'*collectionErrors':
|
|
10
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
9
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
10
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
11
11
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
12
12
|
'*uploadTrigger': Set<string>;
|
|
13
13
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -19,7 +19,7 @@ export class CloudImageEditorActivity extends UploaderBlock {
|
|
|
19
19
|
};
|
|
20
20
|
entry: import("../../abstract/TypedData.js").TypedData | undefined;
|
|
21
21
|
/** @param {CustomEvent<import('../CloudImageEditor/src/types.js').ApplyResult>} e */
|
|
22
|
-
handleApply(e: CustomEvent<import(
|
|
22
|
+
handleApply(e: CustomEvent<import("../CloudImageEditor/src/types.js").ApplyResult>): void;
|
|
23
23
|
handleCancel(): void;
|
|
24
24
|
mountEditor(): void;
|
|
25
25
|
_mounted: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudImageEditorActivity.d.ts","sourceRoot":"","sources":["CloudImageEditorActivity.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloudImageEditorActivity.d.ts","sourceRoot":"","sources":["CloudImageEditorActivity.js"],"names":[],"mappings":"AAMA;IAEE,iCAAuD;IAKrD;;;;;;oCAW2B,gBAAU;mCAGoB,gBAAU;6BAIjE,2BAEF;;wCAOA,wCAAsB;;;;;;MAxBrB;IAeC,mEAAkB;IAsBtB,qFAAqF;IACrF,eADY,WAAW,CAAC,OAAO,kCAAkC,EAAE,WAAW,CAAC,QAW9E;IAED,qBAEC;IAED,oBAqCC;IAJC,8BAAoB;IAEpB,eAAe;IACf,kBAAyB;IAG3B,sBAGC;CACF;8BA9G6B,iCAAiC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
import { DICT } from '@symbiotejs/symbiote';
|
|
2
3
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
3
4
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
4
5
|
import { CloudImageEditorBlock } from '../CloudImageEditor/index.js';
|
|
@@ -73,7 +74,7 @@ export class CloudImageEditorActivity extends UploaderBlock {
|
|
|
73
74
|
const cropPreset = this.cfg.cropPreset;
|
|
74
75
|
const tabs = this.cfg.cloudImageEditorTabs;
|
|
75
76
|
|
|
76
|
-
instance.setAttribute(
|
|
77
|
+
instance.setAttribute(DICT.CTX_NAME_ATTR, this.ctxName);
|
|
77
78
|
instance.setAttribute('cdn-url', cdnUrl);
|
|
78
79
|
|
|
79
80
|
if (cropPreset) {
|
|
@@ -11,16 +11,8 @@
|
|
|
11
11
|
* 'collectionValidators',
|
|
12
12
|
* ]}
|
|
13
13
|
*/
|
|
14
|
-
export const complexConfigKeys: [
|
|
15
|
-
|
|
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>;
|
|
14
|
+
export const complexConfigKeys: ["metadata", "localeDefinitionOverride", "secureUploadsSignatureResolver", "secureDeliveryProxyUrlResolver", "iconHrefResolver", "fileValidators", "collectionValidators"];
|
|
15
|
+
export type Config = import("../../utils/mixinClass.js").MixinClass<typeof ConfigClass, import("../../types").ConfigType>;
|
|
24
16
|
/** @typedef {import('../../utils/mixinClass.js').MixinClass<typeof ConfigClass, import('../../types').ConfigType>} Config */
|
|
25
17
|
export const Config: Config;
|
|
26
18
|
declare class ConfigClass extends Block {
|
|
@@ -62,6 +54,6 @@ declare class ConfigClass extends Block {
|
|
|
62
54
|
}
|
|
63
55
|
import { Block } from '../../abstract/Block.js';
|
|
64
56
|
/** Mapping of attribute names to state */
|
|
65
|
-
declare const attrStateMapping: Record<
|
|
57
|
+
declare const attrStateMapping: Record<keyof import("../../types").ConfigAttributesType, string>;
|
|
66
58
|
export {};
|
|
67
59
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["Config.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;GAYG;AACH,gCAVU
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["Config.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;GAYG;AACH,gCAVU,CACT,UAAc,EACd,0BAA8B,EAC9B,gCAAoC,EACpC,gCAAoC,EACpC,kBAAsB,EACtB,gBAAoB,EACpB,sBAA0B,CACvB,CAUF;qBAiNY,OAAO,2BAA2B,EAAE,UAAU,CAAC,OAAO,WAAW,EAAE,OAAO,aAAa,EAAE,UAAU,CAAC;AAAlH,6HAA6H;AAG7H,qBAAiC,MAAM,CAA4C;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,OAAO,gBAAgB,UAC7B,MAAM,UACN,MAAM,QAahB;CACF;sBArOqB,yBAAyB;AAoD/C,0CAA0C;AAC1C,gCAAoC,MAAM,CAAC,MAAM,OAAO,aAAa,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAGjG"}
|
|
@@ -2,5 +2,5 @@ export const DEFAULT_CDN_CNAME: "https://ucarecdn.com";
|
|
|
2
2
|
export const DEFAULT_BASE_URL: "https://upload.uploadcare.com";
|
|
3
3
|
export const DEFAULT_SOCIAL_BASE_URL: "https://social.uploadcare.com";
|
|
4
4
|
/** @type {import('../../types/exported').ConfigType} */
|
|
5
|
-
export const initialConfig: import(
|
|
5
|
+
export const initialConfig: import("../../types/exported").ConfigType;
|
|
6
6
|
//# sourceMappingURL=initialConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeConfigValue.d.ts","sourceRoot":"","sources":["normalizeConfigValue.js"],"names":[],"mappings":"AAeO,iCADK,OAAO,WAWlB;AA4IM,
|
|
1
|
+
{"version":3,"file":"normalizeConfigValue.d.ts","sourceRoot":"","sources":["normalizeConfigValue.js"],"names":[],"mappings":"AAeO,iCADK,OAAO,WAWlB;AA4IM,qCAL+C,CAAC,SAA1C,MAAO,OAAO,aAAa,EAAE,UAAW,OAC1C,CAAC,SACD,OAAO,GACL,OAAO,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAa3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Copyright.d.ts","sourceRoot":"","sources":["Copyright.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Copyright.d.ts","sourceRoot":"","sources":["Copyright.js"],"names":[],"mappings":"AAGA;CAqBC;sBAvBqB,yBAAyB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { html } from '@symbiotejs/symbiote';
|
|
1
2
|
import { Block } from '../../abstract/Block.js';
|
|
2
3
|
|
|
3
4
|
export class Copyright extends Block {
|
|
@@ -13,7 +14,7 @@ export class Copyright extends Block {
|
|
|
13
14
|
);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
static template =
|
|
17
|
+
static template = html`
|
|
17
18
|
<a
|
|
18
19
|
href="https://uploadcare.com/?utm_source=copyright&utm_medium=referral&utm_campaign=v4"
|
|
19
20
|
target="_blank noopener"
|
|
@@ -12,8 +12,8 @@ export class DropArea extends UploaderBlock {
|
|
|
12
12
|
'*uploadList': never[];
|
|
13
13
|
'*focusedEntry': null;
|
|
14
14
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
15
|
-
'*collectionErrors':
|
|
16
|
-
'*collectionState': import("../../index.js").OutputCollectionState
|
|
15
|
+
'*collectionErrors': import("../../index.js").OutputErrorCollection[];
|
|
16
|
+
'*collectionState': import("../../index.js").OutputCollectionState | null;
|
|
17
17
|
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
18
18
|
'*uploadTrigger': Set<string>;
|
|
19
19
|
'*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropArea.d.ts","sourceRoot":"","sources":["DropArea.js"],"names":[],"mappings":"AAaA;IAKI
|
|
1
|
+
{"version":3,"file":"DropArea.d.ts","sourceRoot":"","sources":["DropArea.js"],"names":[],"mappings":"AAaA;IAKI;;;;;;;;;;;;;oCAAA,gBAAS;mCAGA,gBACb;6BAGO,2BACI;;wCASM,wCAA0B;;;;;;MAPtC;IAGH,oBAgBC;IAgDC,eAAe;IACf,yBA2BE;IAIA,yDAWE;IA6BF;;;OAGG;IACH,uBASC;IAOL;;;;;OAKG;IACH,sBAeC;IAED,eAAe;IACf,0BAcC;CAqBF;;;;8BAlP6B,iCAAiC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { PubSub, html } from '@symbiotejs/symbiote';
|
|
4
4
|
import { ActivityBlock } from '../../abstract/ActivityBlock.js';
|
|
5
5
|
import { UploaderBlock } from '../../abstract/UploaderBlock.js';
|
|
6
6
|
import { stringToArray } from '../../utils/stringToArray.js';
|
|
@@ -233,7 +233,7 @@ export class DropArea extends UploaderBlock {
|
|
|
233
233
|
if (registry) {
|
|
234
234
|
registry.delete(this);
|
|
235
235
|
if (registry.size === 0) {
|
|
236
|
-
|
|
236
|
+
PubSub.deleteCtx(GLOBAL_CTX_NAME);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
@@ -246,11 +246,11 @@ export class DropArea extends UploaderBlock {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
DropArea.template =
|
|
249
|
+
DropArea.template = html`
|
|
250
250
|
<slot>
|
|
251
251
|
<div data-default-slot hidden></div>
|
|
252
|
-
<div ref="content-wrapper" class="uc-content-wrapper"
|
|
253
|
-
<div class="uc-icon-container"
|
|
252
|
+
<div ref="content-wrapper" class="uc-content-wrapper" bind="@hidden: !isVisible">
|
|
253
|
+
<div class="uc-icon-container" bind="@hidden: !withIcon">
|
|
254
254
|
<uc-icon name="default"></uc-icon>
|
|
255
255
|
<uc-icon name="arrow-down"></uc-icon>
|
|
256
256
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addDropzone.d.ts","sourceRoot":"","sources":["addDropzone.js"],"names":[],"mappings":"AA0BA;;;;;;GAMG;AACH;
|
|
1
|
+
{"version":3,"file":"addDropzone.d.ts","sourceRoot":"","sources":["addDropzone.js"],"names":[],"mappings":"AA0BA;;;;;;GAMG;AACH,kCALG;IAA0B,OAAO,EAAzB,WAAW;IACI,QAAQ;IACR,OAAO;IACF,YAAY,EAAhC,aAAa;CACvB,cAwGA"}
|