@uploadcare/file-uploader 1.24.5 → 1.25.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.
Files changed (69) hide show
  1. package/dist/abstract/loadFileUploaderFrom.js +4 -0
  2. package/dist/env.js +1 -1
  3. package/dist/index.css +16 -6
  4. package/dist/index.d.ts +867 -539
  5. package/dist/index.js +7609 -6042
  6. package/dist/index.layered.css +16 -6
  7. package/dist/index.ssr.js +533 -762
  8. package/dist/lit.d.ts +1 -0
  9. package/dist/lit.js +28 -0
  10. package/dist/locales/file-uploader/ar.js +1 -1
  11. package/dist/locales/file-uploader/az.js +1 -1
  12. package/dist/locales/file-uploader/ca.js +1 -1
  13. package/dist/locales/file-uploader/cs.js +1 -1
  14. package/dist/locales/file-uploader/da.js +1 -1
  15. package/dist/locales/file-uploader/de.js +1 -1
  16. package/dist/locales/file-uploader/el.js +1 -1
  17. package/dist/locales/file-uploader/en.js +1 -1
  18. package/dist/locales/file-uploader/es.js +1 -1
  19. package/dist/locales/file-uploader/et.js +1 -1
  20. package/dist/locales/file-uploader/fi.js +1 -1
  21. package/dist/locales/file-uploader/fr.js +1 -1
  22. package/dist/locales/file-uploader/he.js +1 -1
  23. package/dist/locales/file-uploader/hy.js +1 -1
  24. package/dist/locales/file-uploader/is.js +1 -1
  25. package/dist/locales/file-uploader/it.js +1 -1
  26. package/dist/locales/file-uploader/ja.js +1 -1
  27. package/dist/locales/file-uploader/ka.js +1 -1
  28. package/dist/locales/file-uploader/kk.js +1 -1
  29. package/dist/locales/file-uploader/ko.js +1 -1
  30. package/dist/locales/file-uploader/lv.js +1 -1
  31. package/dist/locales/file-uploader/nb.js +1 -1
  32. package/dist/locales/file-uploader/nl.js +1 -1
  33. package/dist/locales/file-uploader/pl.js +1 -1
  34. package/dist/locales/file-uploader/pt.js +1 -1
  35. package/dist/locales/file-uploader/ro.js +1 -1
  36. package/dist/locales/file-uploader/ru.js +1 -1
  37. package/dist/locales/file-uploader/sk.js +1 -1
  38. package/dist/locales/file-uploader/sr.js +1 -1
  39. package/dist/locales/file-uploader/sv.js +1 -1
  40. package/dist/locales/file-uploader/tr.js +1 -1
  41. package/dist/locales/file-uploader/uk.js +1 -1
  42. package/dist/locales/file-uploader/vi.js +1 -1
  43. package/dist/locales/file-uploader/zh-TW.js +1 -1
  44. package/dist/locales/file-uploader/zh.js +1 -1
  45. package/package.json +29 -24
  46. package/web/file-uploader.iife.min.d.ts +873 -545
  47. package/web/file-uploader.iife.min.js +8 -4
  48. package/web/file-uploader.min.d.ts +873 -545
  49. package/web/file-uploader.min.js +7 -4
  50. package/web/uc-basic.layered.min.css +1 -1
  51. package/web/uc-basic.min.css +1 -1
  52. package/web/uc-cloud-image-editor.layered.min.css +1 -1
  53. package/web/uc-cloud-image-editor.min.css +1 -1
  54. package/web/uc-cloud-image-editor.min.d.ts +439 -235
  55. package/web/uc-cloud-image-editor.min.js +7 -4
  56. package/web/uc-file-uploader-inline.layered.min.css +1 -1
  57. package/web/uc-file-uploader-inline.min.css +1 -1
  58. package/web/uc-file-uploader-inline.min.d.ts +873 -545
  59. package/web/uc-file-uploader-inline.min.js +7 -4
  60. package/web/uc-file-uploader-minimal.layered.min.css +1 -1
  61. package/web/uc-file-uploader-minimal.min.css +1 -1
  62. package/web/uc-file-uploader-minimal.min.d.ts +873 -545
  63. package/web/uc-file-uploader-minimal.min.js +7 -4
  64. package/web/uc-file-uploader-regular.layered.min.css +1 -1
  65. package/web/uc-file-uploader-regular.min.css +1 -1
  66. package/web/uc-file-uploader-regular.min.d.ts +873 -545
  67. package/web/uc-file-uploader-regular.min.js +7 -4
  68. package/web/uc-img.min.d.ts +56 -91
  69. package/web/uc-img.min.js +3 -3
@@ -1,11 +1,122 @@
1
- import { BaseComponent } from '@symbiotejs/symbiote';
1
+ import * as lit_html from 'lit-html';
2
+ import { LitElement, PropertyValues, TemplateResult } from 'lit';
3
+ import { PubSub } from '@symbiotejs/symbiote';
4
+ import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
5
+ import { TelemetryRequest } from '@uploadcare/quality-insights';
2
6
  import * as _uploadcare_upload_client from '@uploadcare/upload-client';
3
7
  import { UploadcareFile, Metadata, UploadError, NetworkError, UploadcareGroup, FileFromOptions } from '@uploadcare/upload-client';
4
- import { TelemetryRequest } from '@uploadcare/quality-insights';
8
+ import { Ref } from 'lit/directives/ref.js';
9
+
10
+ type Constructor$1<T = {}> = new (...args: any[]) => T;
11
+
12
+ declare class A11y {
13
+ private _destroyKeyUX;
14
+ private readonly _scopedWindow;
15
+ constructor();
16
+ registerBlock(scope: LitBlock): void;
17
+ destroy(): void;
18
+ }
19
+
20
+ declare class LocaleManager {
21
+ private _blockInstance;
22
+ private _localeName;
23
+ constructor(blockInstance: LitBlock);
24
+ }
25
+
26
+ declare class Modal extends LitBlock {
27
+ static styleAttrs: string[];
28
+ private _mouseDownTarget;
29
+ protected dialogEl: lit_html_directives_ref_js.Ref<HTMLDialogElement>;
30
+ handleModalOpen: ModalCb;
31
+ handleModalClose: ModalCb;
32
+ handleModalCloseAll: ModalCb;
33
+ _handleBackdropClick: () => void;
34
+ _closeDialog: () => void;
35
+ _handleDialogClose: () => void;
36
+ _handleDialogMouseDown: (e: MouseEvent) => void;
37
+ _handleDialogMouseUp: (e: MouseEvent) => void;
38
+ show(): void;
39
+ hide(): void;
40
+ private _handleModalOpen;
41
+ private _handleModalClose;
42
+ private _handleModalCloseAll;
43
+ initCallback(): void;
44
+ disconnectedCallback(): void;
45
+ private handleDialogRef;
46
+ render(): lit_html.TemplateResult<1>;
47
+ }
5
48
 
6
49
  type LocaleDefinition = Record<string, string>;
7
50
 
8
- declare function buildOutputCollectionState<TCollectionStatus extends OutputCollectionStatus, TGroupFlag extends GroupFlag = 'maybe-has-group'>(uploaderBlock: UploaderBlock): OutputCollectionState<TCollectionStatus, TGroupFlag>;
51
+ declare const InternalEventType: Readonly<{
52
+ readonly INIT_SOLUTION: "init-solution";
53
+ readonly CHANGE_CONFIG: "change-config";
54
+ readonly ACTION_EVENT: "action-event";
55
+ readonly ERROR_EVENT: "error-event";
56
+ }>;
57
+ declare const EventType: Readonly<{
58
+ readonly FILE_ADDED: "file-added";
59
+ readonly FILE_REMOVED: "file-removed";
60
+ readonly FILE_UPLOAD_START: "file-upload-start";
61
+ readonly FILE_UPLOAD_PROGRESS: "file-upload-progress";
62
+ readonly FILE_UPLOAD_SUCCESS: "file-upload-success";
63
+ readonly FILE_UPLOAD_FAILED: "file-upload-failed";
64
+ readonly FILE_URL_CHANGED: "file-url-changed";
65
+ readonly MODAL_OPEN: "modal-open";
66
+ readonly MODAL_CLOSE: "modal-close";
67
+ readonly DONE_CLICK: "done-click";
68
+ readonly UPLOAD_CLICK: "upload-click";
69
+ readonly ACTIVITY_CHANGE: "activity-change";
70
+ readonly COMMON_UPLOAD_START: "common-upload-start";
71
+ readonly COMMON_UPLOAD_PROGRESS: "common-upload-progress";
72
+ readonly COMMON_UPLOAD_SUCCESS: "common-upload-success";
73
+ readonly COMMON_UPLOAD_FAILED: "common-upload-failed";
74
+ readonly CHANGE: "change";
75
+ readonly GROUP_CREATED: "group-created";
76
+ }>;
77
+ type EventKey = (typeof EventType)[keyof typeof EventType];
78
+ type InternalEventKey = (typeof InternalEventType)[keyof typeof InternalEventType];
79
+ type EventPayload = {
80
+ [EventType.FILE_ADDED]: OutputFileEntry<'idle'>;
81
+ [EventType.FILE_REMOVED]: OutputFileEntry<'removed'>;
82
+ [EventType.FILE_UPLOAD_START]: OutputFileEntry<'uploading'>;
83
+ [EventType.FILE_UPLOAD_PROGRESS]: OutputFileEntry<'uploading'>;
84
+ [EventType.FILE_UPLOAD_SUCCESS]: OutputFileEntry<'success'>;
85
+ [EventType.FILE_UPLOAD_FAILED]: OutputFileEntry<'failed'>;
86
+ [EventType.FILE_URL_CHANGED]: OutputFileEntry<'success'>;
87
+ [EventType.MODAL_OPEN]: {
88
+ modalId: ModalId;
89
+ };
90
+ [EventType.MODAL_CLOSE]: {
91
+ modalId: ModalId;
92
+ hasActiveModals: boolean;
93
+ };
94
+ [EventType.ACTIVITY_CHANGE]: {
95
+ activity: ActivityType;
96
+ };
97
+ [EventType.UPLOAD_CLICK]: void;
98
+ [EventType.DONE_CLICK]: OutputCollectionState;
99
+ [EventType.COMMON_UPLOAD_START]: OutputCollectionState<'uploading'>;
100
+ [EventType.COMMON_UPLOAD_PROGRESS]: OutputCollectionState<'uploading'>;
101
+ [EventType.COMMON_UPLOAD_SUCCESS]: OutputCollectionState<'success'>;
102
+ [EventType.COMMON_UPLOAD_FAILED]: OutputCollectionState<'failed'>;
103
+ [EventType.CHANGE]: OutputCollectionState;
104
+ [EventType.GROUP_CREATED]: OutputCollectionState<'success', 'has-group'>;
105
+ };
106
+ declare class EventEmitter {
107
+ private _timeoutStore;
108
+ private _targets;
109
+ private _debugPrint;
110
+ constructor(debugPrint: (...args: unknown[]) => void);
111
+ bindTarget(target: LitBlock): void;
112
+ unbindTarget(target: LitBlock): void;
113
+ private _dispatch;
114
+ emit<T extends EventKey, TDebounce extends boolean | number | undefined = undefined>(type: T, payload?: TDebounce extends false | undefined ? EventPayload[T] : () => EventPayload[T], options?: {
115
+ debounce?: TDebounce;
116
+ }): void;
117
+ }
118
+
119
+ declare function buildOutputCollectionState<TCollectionStatus extends OutputCollectionStatus, TGroupFlag extends GroupFlag = 'maybe-has-group'>(uploaderBlock: LitUploaderBlock): OutputCollectionState<TCollectionStatus, TGroupFlag>;
9
120
 
10
121
  type TypedSchema = Record<string, {
11
122
  type: unknown;
@@ -30,7 +141,7 @@ declare class TypedData<T extends TypedSchema> {
30
141
  getValue<K extends ExtractKeysFromSchema<T>>(prop: K): ExtractDataFromSchema<T>[K];
31
142
  subscribe<K extends ExtractKeysFromSchema<T>>(prop: K, handler: (newVal: ExtractDataFromSchema<T>[K]) => void): {
32
143
  remove: () => void;
33
- callback: Function;
144
+ callback: (val: unknown) => void;
34
145
  };
35
146
  remove(): void;
36
147
  }
@@ -181,7 +292,7 @@ declare class ValidationManager {
181
292
  private _queue;
182
293
  private _runQueueDebounced;
183
294
  private _entryValidationState;
184
- constructor(blockInstance: UploaderBlock);
295
+ constructor(blockInstance: LitUploaderBlock);
185
296
  runFileValidators(runOn: FileValidatorDescriptor['runOn'], entryIds?: string[]): void;
186
297
  runCollectionValidators(): void;
187
298
  cleanupValidationForEntry(entry: TypedData<typeof uploadEntrySchema>): void;
@@ -196,9 +307,9 @@ type CameraMode = 'photo' | 'video';
196
307
 
197
308
  /** Mapping of attribute names to state */
198
309
  declare const attrStateMapping: Record<string, string>;
199
- declare class Config extends Block {
200
- requireCtxName: boolean;
201
- constructor();
310
+ declare class Config extends LitBlock {
311
+ init$: LitBlock["init$"] & ConfigType;
312
+ private computationControllers;
202
313
  private _flushValueToAttribute;
203
314
  private _flushValueToState;
204
315
  private _setValue;
@@ -206,7 +317,7 @@ declare class Config extends Block {
206
317
  _assertSameValueDifferentReference(key: string, previousValue: unknown, nextValue: unknown): void;
207
318
  initCallback(): void;
208
319
  attributeChangedCallback(name: keyof typeof attrStateMapping, oldVal: string, newVal: string): void;
209
- get computationControllers(): any;
320
+ static get observedAttributes(): string[];
210
321
  }
211
322
  interface Config extends ConfigType {
212
323
  }
@@ -261,7 +372,7 @@ type ApiAddFileCommonOptions = {
261
372
  };
262
373
  declare class UploaderPublicApi {
263
374
  private _ctx;
264
- constructor(ctx: UploaderBlock);
375
+ constructor(ctx: LitUploaderBlock);
265
376
  private get _uploadCollection();
266
377
  get cfg(): ConfigType;
267
378
  get l10n(): (str: string, variables?: Record<string, string | number>) => string;
@@ -749,7 +860,7 @@ type OutputCollectionState<TStatus extends OutputCollectionStatus = OutputCollec
749
860
  declare class SecureUploadsManager {
750
861
  private readonly _block;
751
862
  private _secureToken;
752
- constructor(block: UploaderBlock);
863
+ constructor(block: LitUploaderBlock);
753
864
  private _debugPrint;
754
865
  getSecureToken(): Promise<SecureUploadsSignatureAndExpire | null>;
755
866
  }
@@ -795,7 +906,7 @@ declare class TypedCollection<T extends TypedSchema> {
795
906
  destroy(): void;
796
907
  }
797
908
 
798
- declare class UploaderBlock extends ActivityBlock {
909
+ declare class LitUploaderBlock extends LitActivityBlock {
799
910
  static extSrcList: Readonly<typeof ExternalUploadSource>;
800
911
  static sourceTypes: Readonly<typeof UploadSource>;
801
912
  protected couldBeCtxOwner: boolean;
@@ -826,7 +937,6 @@ declare class UploaderBlock extends ActivityBlock {
826
937
  destroyCtxCallback(): void;
827
938
  disconnectedCallback(): void;
828
939
  connectedCallback(): void;
829
- destroyCallback(): void;
830
940
  private _initCtxOwner;
831
941
  private _observeUploadCollection;
832
942
  private _unobserveUploadCollection;
@@ -842,6 +952,10 @@ declare class UploaderBlock extends ActivityBlock {
842
952
  getOutputData(): OutputFileEntry[];
843
953
  }
844
954
 
955
+ /**
956
+ * Mapping of loading resources per operation
957
+ */
958
+ type LoadingOperations = Map<string, Map<string, boolean>>;
845
959
  /**
846
960
  * Image size
847
961
  */
@@ -891,7 +1005,7 @@ type ActivityParamsMap = {
891
1005
  'cloud-image-edit': ActivityParams$1;
892
1006
  external: ActivityParams;
893
1007
  };
894
- declare class ActivityBlock extends Block {
1008
+ declare class LitActivityBlock extends LitBlock {
895
1009
  protected historyTracked: boolean;
896
1010
  private [ACTIVE_PROP]?;
897
1011
  init$: {
@@ -927,38 +1041,16 @@ declare class ActivityBlock extends Block {
927
1041
  onDeactivate?: () => void;
928
1042
  }): void;
929
1043
  unregisterActivity(): void;
930
- destroyCallback(): void;
1044
+ disconnectedCallback(): void;
931
1045
  get activityKey(): string;
932
1046
  get activityParams(): ActivityParamsMap[keyof ActivityParamsMap];
933
- get initActivity(): string;
934
- get doneActivity(): string;
1047
+ get initActivity(): string | null;
1048
+ get doneActivity(): string | null;
935
1049
  historyBack(): void;
936
1050
  }
937
- type RegisteredActivityType = (typeof ActivityBlock)['activities'][keyof (typeof ActivityBlock)['activities']];
1051
+ type RegisteredActivityType = (typeof LitActivityBlock)['activities'][keyof (typeof LitActivityBlock)['activities']];
938
1052
  type ActivityType = RegisteredActivityType | (string & {}) | null;
939
1053
 
940
- declare class Modal extends Block {
941
- static styleAttrs: string[];
942
- static StateConsumerScope: string;
943
- private _mouseDownTarget;
944
- handleModalOpen: ModalCb;
945
- handleModalClose: ModalCb;
946
- handleModalCloseAll: ModalCb;
947
- constructor();
948
- _handleBackdropClick: () => void;
949
- _closeDialog: () => void;
950
- _handleDialogClose: () => void;
951
- _handleDialogMouseDown: (e: MouseEvent) => void;
952
- _handleDialogMouseUp: (e: MouseEvent) => void;
953
- show(): void;
954
- hide(): void;
955
- private _handleModalOpen;
956
- private _handleModalClose;
957
- private _handleModalCloseAll;
958
- initCallback(): void;
959
- destroyCallback(): void;
960
- }
961
-
962
1054
  declare const ModalEvents: Readonly<{
963
1055
  readonly ADD: "modal:add";
964
1056
  readonly DELETE: "modal:delete";
@@ -978,7 +1070,7 @@ declare class ModalManager {
978
1070
  private _activeModals;
979
1071
  private _subscribers;
980
1072
  private _block;
981
- constructor(block: Block);
1073
+ constructor(block: LitBlock);
982
1074
  private _debugPrint;
983
1075
  /**
984
1076
  * Register a modal with the manager
@@ -1013,95 +1105,6 @@ declare class ModalManager {
1013
1105
  destroy(): void;
1014
1106
  }
1015
1107
 
1016
- declare const InternalEventType: Readonly<{
1017
- readonly INIT_SOLUTION: "init-solution";
1018
- readonly CHANGE_CONFIG: "change-config";
1019
- readonly ACTION_EVENT: "action-event";
1020
- readonly ERROR_EVENT: "error-event";
1021
- }>;
1022
- declare const EventType: Readonly<{
1023
- readonly FILE_ADDED: "file-added";
1024
- readonly FILE_REMOVED: "file-removed";
1025
- readonly FILE_UPLOAD_START: "file-upload-start";
1026
- readonly FILE_UPLOAD_PROGRESS: "file-upload-progress";
1027
- readonly FILE_UPLOAD_SUCCESS: "file-upload-success";
1028
- readonly FILE_UPLOAD_FAILED: "file-upload-failed";
1029
- readonly FILE_URL_CHANGED: "file-url-changed";
1030
- readonly MODAL_OPEN: "modal-open";
1031
- readonly MODAL_CLOSE: "modal-close";
1032
- readonly DONE_CLICK: "done-click";
1033
- readonly UPLOAD_CLICK: "upload-click";
1034
- readonly ACTIVITY_CHANGE: "activity-change";
1035
- readonly COMMON_UPLOAD_START: "common-upload-start";
1036
- readonly COMMON_UPLOAD_PROGRESS: "common-upload-progress";
1037
- readonly COMMON_UPLOAD_SUCCESS: "common-upload-success";
1038
- readonly COMMON_UPLOAD_FAILED: "common-upload-failed";
1039
- readonly CHANGE: "change";
1040
- readonly GROUP_CREATED: "group-created";
1041
- }>;
1042
- type EventKey = (typeof EventType)[keyof typeof EventType];
1043
- type InternalEventKey = (typeof InternalEventType)[keyof typeof InternalEventType];
1044
- type EventPayload = {
1045
- [EventType.FILE_ADDED]: OutputFileEntry<'idle'>;
1046
- [EventType.FILE_REMOVED]: OutputFileEntry<'removed'>;
1047
- [EventType.FILE_UPLOAD_START]: OutputFileEntry<'uploading'>;
1048
- [EventType.FILE_UPLOAD_PROGRESS]: OutputFileEntry<'uploading'>;
1049
- [EventType.FILE_UPLOAD_SUCCESS]: OutputFileEntry<'success'>;
1050
- [EventType.FILE_UPLOAD_FAILED]: OutputFileEntry<'failed'>;
1051
- [EventType.FILE_URL_CHANGED]: OutputFileEntry<'success'>;
1052
- [EventType.MODAL_OPEN]: {
1053
- modalId: ModalId;
1054
- };
1055
- [EventType.MODAL_CLOSE]: {
1056
- modalId: ModalId;
1057
- hasActiveModals: boolean;
1058
- };
1059
- [EventType.ACTIVITY_CHANGE]: {
1060
- activity: ActivityType;
1061
- };
1062
- [EventType.UPLOAD_CLICK]: void;
1063
- [EventType.DONE_CLICK]: OutputCollectionState;
1064
- [EventType.COMMON_UPLOAD_START]: OutputCollectionState<'uploading'>;
1065
- [EventType.COMMON_UPLOAD_PROGRESS]: OutputCollectionState<'uploading'>;
1066
- [EventType.COMMON_UPLOAD_SUCCESS]: OutputCollectionState<'success'>;
1067
- [EventType.COMMON_UPLOAD_FAILED]: OutputCollectionState<'failed'>;
1068
- [EventType.CHANGE]: OutputCollectionState;
1069
- [EventType.GROUP_CREATED]: OutputCollectionState<'success', 'has-group'>;
1070
- };
1071
- declare class EventEmitter {
1072
- private _timeoutStore;
1073
- private _targets;
1074
- private _debugPrint;
1075
- constructor(debugPrint: (...args: unknown[]) => void);
1076
- bindTarget(target: Block): void;
1077
- unbindTarget(target: Block): void;
1078
- private _dispatch;
1079
- emit<T extends EventKey, TDebounce extends boolean | number | undefined = undefined>(type: T, payload?: TDebounce extends false | undefined ? EventPayload[T] : () => EventPayload[T], options?: {
1080
- debounce?: TDebounce;
1081
- }): void;
1082
- }
1083
-
1084
- declare class A11y {
1085
- private _destroyKeyUX;
1086
- private readonly _scopedWindow;
1087
- constructor();
1088
- registerBlock(scope: Block): void;
1089
- destroy(): void;
1090
- }
1091
-
1092
- type LocaleChangeCallback = () => void;
1093
- declare class LocaleManager {
1094
- private _blockInstance;
1095
- private _localeName;
1096
- private _callbacks;
1097
- private _boundBlocks;
1098
- constructor(blockInstance: Block);
1099
- onLocaleChange(callback: LocaleChangeCallback): () => void;
1100
- bindL10n(block: Block, key: string, resolver: LocaleChangeCallback): void;
1101
- destroyL10nBindings(block: Block): void;
1102
- destroy(): void;
1103
- }
1104
-
1105
1108
  type CommonEventType = InternalEventKey | EventKey;
1106
1109
  type TelemetryState = TelemetryRequest & {
1107
1110
  eventTimestamp: number;
@@ -1119,7 +1122,7 @@ declare class TelemetryManager {
1119
1122
  private _initialized;
1120
1123
  private _lastPayload;
1121
1124
  private readonly _queue;
1122
- constructor(block: Block);
1125
+ constructor(block: LitBlock);
1123
1126
  private _init;
1124
1127
  private _setConfig;
1125
1128
  private _formattingPayload;
@@ -1140,25 +1143,42 @@ declare class TelemetryManager {
1140
1143
  private get _location();
1141
1144
  }
1142
1145
 
1143
- declare class Block extends BaseComponent<any> {
1144
- private __cfgProxy?;
1145
- protected l10nProcessorSubs: Map<string, Set<{
1146
- remove: () => void;
1147
- }>>;
1148
- static StateConsumerScope: string | null;
1146
+ declare const LitBlockBase: typeof LitElement & Constructor$1<{
1147
+ yield(slot: string, defaultContent?: unknown): unknown;
1148
+ }> & Constructor$1<{
1149
+ getCssData(propName: string, silentCheck?: boolean): string | number | boolean | null | undefined;
1150
+ }> & Constructor$1<{
1151
+ $: {
1152
+ [x: string]: any;
1153
+ };
1154
+ sub<T = unknown>(key: string, callback: (value: T) => void, init?: boolean): () => void;
1155
+ pub(key: string, value: unknown): void;
1156
+ set$(obj: {
1157
+ [x: string]: any;
1158
+ }): void;
1159
+ has(key: string): boolean;
1160
+ add(key: string, val: unknown, rewrite?: boolean): void;
1161
+ add$(obj: {
1162
+ [x: string]: any;
1163
+ }, rewrite?: boolean): void;
1164
+ initCallback(): void;
1165
+ sharedCtx: PubSub<Record<string, unknown>>;
1166
+ ctxName: string;
1167
+ }> & Constructor$1<LitElement> & {
1168
+ reg(tagName: string): void;
1169
+ };
1170
+ declare class LitBlock extends LitBlockBase {
1171
+ private __cfgProxy;
1149
1172
  static styleAttrs: string[];
1150
- protected requireCtxName: boolean;
1151
1173
  activityType: ActivityType;
1152
1174
  init$: {};
1175
+ constructor();
1153
1176
  l10n(str: string, variables?: Record<string, string | number>): string;
1154
1177
  private pluralize;
1155
- protected bindL10n(key: string, resolver: () => void): void;
1156
- constructor();
1157
1178
  emit(type: Parameters<EventEmitter['emit']>[0], payload?: Parameters<EventEmitter['emit']>[1], options?: Parameters<EventEmitter['emit']>[2]): void;
1158
- hasBlockInCtx(callback: (block: Block) => boolean): boolean;
1159
- setOrAddState(prop: string, newVal: any): void;
1179
+ hasBlockInCtx(callback: (block: LitBlock) => boolean): boolean;
1180
+ setOrAddState(prop: string, newVal: unknown): void;
1160
1181
  connectedCallback(): void;
1161
- disconnectedCallback(): void;
1162
1182
  initCallback(): void;
1163
1183
  get testId(): string;
1164
1184
  get modalManager(): ModalManager | undefined;
@@ -1169,39 +1189,89 @@ declare class Block extends BaseComponent<any> {
1169
1189
  };
1170
1190
  protected get localeManager(): LocaleManager | null;
1171
1191
  protected get a11y(): A11y | null;
1172
- protected get blocksRegistry(): Set<Block>;
1173
- destroyCallback(): void;
1192
+ protected get blocksRegistry(): Set<LitBlock>;
1193
+ disconnectedCallback(): void;
1174
1194
  /**
1175
1195
  * Called when the last block is removed from the context. Note that inheritors must run their callback before that.
1176
1196
  */
1177
1197
  protected destroyCtxCallback(): void;
1178
1198
  protected proxyUrl(url: string): Promise<string>;
1179
1199
  get cfg(): ConfigType;
1180
- subConfigValue<T extends keyof ConfigType>(key: T, callback: (value: ConfigType[T]) => void): void;
1200
+ subConfigValue<T extends keyof ConfigType>(key: T, callback: (value: ConfigType[T]) => void): () => void;
1181
1201
  debugPrint(...args: unknown[]): void;
1182
- static reg(name?: string): void;
1183
1202
  }
1184
1203
 
1185
- declare class CloudImageEditorBlock extends Block {
1204
+ declare function initState(fnCtx: CloudImageEditorBlock): {
1205
+ '*originalUrl': null;
1206
+ '*loadingOperations': LoadingOperations;
1207
+ '*faderEl': null;
1208
+ '*cropperEl': null;
1209
+ '*imgEl': null;
1210
+ '*imgContainerEl': null;
1211
+ '*networkProblems': boolean;
1212
+ '*imageSize': null;
1213
+ '*editorTransformations': {};
1214
+ '*cropPresetList': never[];
1215
+ '*currentAspectRatio': null;
1216
+ '*tabList': readonly ["crop", "tuning", "filters"];
1217
+ '*tabId': "crop";
1218
+ '*on.retryNetwork': () => void;
1219
+ '*on.apply': (transformations: Transformations) => void;
1220
+ '*on.cancel': () => void;
1221
+ };
1222
+
1223
+ declare class CloudImageEditorBlock extends LitBlock {
1186
1224
  ctxOwner: boolean;
1187
1225
  static styleAttrs: string[];
1188
- private _debouncedShowLoader;
1189
- constructor();
1190
- private _showLoader;
1226
+ entry: unknown;
1227
+ extension: string | null;
1228
+ editorMode: boolean;
1229
+ modalCaption: string;
1230
+ isImage: boolean;
1231
+ msg: string;
1232
+ src: string;
1233
+ fileType: string;
1234
+ showLoader: boolean;
1235
+ uuid: string | null;
1236
+ cdnUrl: string | null;
1237
+ cropPreset: string;
1238
+ tabs: string | null;
1239
+ presenceNetworkProblems: boolean;
1240
+ presenceModalCaption: boolean;
1241
+ presenceEditorToolbar: boolean;
1242
+ presenceViewerToolbar: boolean;
1243
+ private isInitialized;
1244
+ private pendingInitUpdate;
1245
+ private readonly _debouncedShowLoader;
1246
+ private readonly imgRef;
1247
+ private readonly cropperRef;
1248
+ private readonly faderRef;
1249
+ private readonly imgContainerRef;
1250
+ private readonly handleImageLoad;
1251
+ private readonly handleImageError;
1252
+ private readonly handleRetryNetwork;
1253
+ private scheduleInitialization;
1254
+ init$: ReturnType<typeof initState>;
1255
+ initCallback(): void;
1256
+ private assignSharedElements;
1257
+ private attachImageListeners;
1258
+ private detachImageListeners;
1259
+ private get imageClassName();
1191
1260
  /**
1192
1261
  * To proper work, we need non-zero size the element. So, we'll wait for it.
1193
1262
  */
1194
1263
  private _waitForSize;
1195
- initCallback(): void;
1264
+ firstUpdated(_changedProperties: Map<PropertyKey, unknown>): void;
1265
+ disconnectedCallback(): void;
1266
+ render(): lit_html.TemplateResult<1>;
1267
+ protected updated(changedProperties: PropertyValues<this>): void;
1268
+ private syncTabListFromProp;
1269
+ private syncCropPresetState;
1196
1270
  updateImage(): Promise<void>;
1197
1271
  initEditor(): Promise<void>;
1198
1272
  }
1199
1273
 
1200
- declare class CropFrame extends Block {
1201
- private readonly _handlePointerUp;
1202
- private readonly _handlePointerMove;
1203
- private readonly _handleSvgPointerMove;
1204
- private readonly _backdropMaskId;
1274
+ declare class CropFrame extends LitBlock {
1205
1275
  private _backdropMask?;
1206
1276
  private _backdropMaskInner?;
1207
1277
  private _frameThumbs?;
@@ -1212,7 +1282,14 @@ declare class CropFrame extends Block {
1212
1282
  private _dragStartCrop?;
1213
1283
  private _frameImage?;
1214
1284
  private _guidesHidden;
1215
- constructor();
1285
+ private _dragging;
1286
+ private readonly svgRef;
1287
+ private _svgReady;
1288
+ private _pendingMaskHref;
1289
+ private get _svgElement();
1290
+ private get dragging();
1291
+ private set dragging(value);
1292
+ private _applyGuidesDragState;
1216
1293
  private _shouldThumbBeDisabled;
1217
1294
  private _createBackdrop;
1218
1295
  /**
@@ -1227,41 +1304,57 @@ declare class CropFrame extends Block {
1227
1304
  private _createGuides;
1228
1305
  private _createFrame;
1229
1306
  private _handlePointerDown;
1230
- private _handlePointerUp_;
1231
- private _handlePointerMove_;
1307
+ private readonly _handlePointerUp;
1308
+ private readonly _handlePointerMove;
1232
1309
  private _calcCropBox;
1233
- private _handleSvgPointerMove_;
1310
+ private readonly _handleSvgPointerMove;
1234
1311
  private _updateCursor;
1235
1312
  private _createMask;
1236
1313
  private _updateMask;
1237
1314
  private _render;
1238
1315
  toggleThumbs(visible: boolean): void;
1239
1316
  initCallback(): void;
1240
- destroyCallback(): void;
1317
+ protected firstUpdated(_changedProperties: PropertyValues<this>): void;
1318
+ private _initializeSvg;
1319
+ disconnectedCallback(): void;
1320
+ render(): TemplateResult;
1241
1321
  }
1242
1322
 
1243
- declare class EditorButtonControl extends Block {
1244
- private _titleEl?;
1245
- constructor();
1246
- initCallback(): void;
1323
+ declare class EditorButtonControl extends LitBlock {
1324
+ active: boolean;
1325
+ title: string;
1326
+ icon: string;
1327
+ titleProp: string;
1328
+ protected get buttonClasses(): Record<string, boolean>;
1329
+ private updateHostStateClasses;
1330
+ protected onClick(_event: MouseEvent): void;
1331
+ connectedCallback(): void;
1332
+ protected updated(changedProperties: PropertyValues): void;
1333
+ render(): lit_html.TemplateResult<1>;
1247
1334
  }
1248
1335
 
1249
1336
  declare class EditorFreeformButtonControl extends EditorButtonControl {
1250
1337
  initCallback(): void;
1251
- handleClick(): void;
1338
+ onClick(): void;
1339
+ private computeTitle;
1340
+ render(): lit_html.TemplateResult<1>;
1252
1341
  }
1253
- interface EditorAspectRatioButtonControl {
1342
+ declare class EditorAspectRatioButtonControl extends EditorButtonControl {
1343
+ private _aspectRatio?;
1254
1344
  get aspectRatio(): CropAspectRatio | undefined;
1255
1345
  set aspectRatio(value: CropAspectRatio | undefined);
1256
- }
1257
- declare class EditorAspectRatioButtonControl extends EditorButtonControl {
1258
- constructor();
1259
1346
  initCallback(): void;
1260
- handleClick(): void;
1261
- private _renderRectBasedOnAspectRatio;
1262
- private _aspectRatio?;
1347
+ onClick(): void;
1348
+ private updateAspectRatioPresentation;
1349
+ private renderIcon;
1350
+ render(): lit_html.TemplateResult<1>;
1263
1351
  }
1264
1352
 
1353
+ declare const TabId: Readonly<{
1354
+ readonly CROP: "crop";
1355
+ readonly TUNING: "tuning";
1356
+ readonly FILTERS: "filters";
1357
+ }>;
1265
1358
  declare const ALL_COLOR_OPERATIONS: readonly ["brightness", "exposure", "gamma", "contrast", "saturation", "vibrance", "warmth", "enhance"];
1266
1359
  type ColorOperation = (typeof ALL_COLOR_OPERATIONS)[number];
1267
1360
  declare const ALL_FILTERS: readonly ["adaris", "briaril", "calarel", "carris", "cynarel", "cyren", "elmet", "elonni", "enzana", "erydark", "fenralan", "ferand", "galen", "gavin", "gethriel", "iorill", "iothari", "iselva", "jadis", "lavra", "misiara", "namala", "nerion", "nethari", "pamaya", "sarnar", "sedis", "sewen", "sorahel", "sorlen", "tarian", "thellassan", "varriel", "varven", "vevera", "virkas", "yedis", "yllara", "zatvel", "zevcen"];
@@ -1317,13 +1410,10 @@ declare const COLOR_OPERATIONS_CONFIG: Readonly<{
1317
1410
  };
1318
1411
  }>;
1319
1412
 
1320
- interface EditorCropButtonControl {
1321
- get operation(): CropOperation | undefined;
1322
- set operation(value: CropOperation | undefined);
1323
- }
1324
1413
  declare class EditorCropButtonControl extends EditorButtonControl {
1325
- private _operation;
1326
- initCallback(): void;
1414
+ operation: CropOperation | undefined;
1415
+ protected willUpdate(_changedProperties: PropertyValues): void;
1416
+ onClick(e: MouseEvent): void;
1327
1417
  }
1328
1418
 
1329
1419
  declare class EditorFilterControl extends EditorButtonControl {
@@ -1332,11 +1422,27 @@ declare class EditorFilterControl extends EditorButtonControl {
1332
1422
  private _originalUrl;
1333
1423
  private _observer?;
1334
1424
  private _cancelPreload?;
1335
- constructor();
1425
+ private _lastPreviewRequestId;
1426
+ private previewVisibilityCheckRaf?;
1427
+ private previewVisibilityCheckTimeout?;
1428
+ private previewImage;
1429
+ private previewLoaded;
1430
+ isOriginal: boolean;
1431
+ iconSize: number;
1432
+ get filter(): string;
1433
+ set filter(value: string);
1434
+ onClick(e: MouseEvent): void;
1336
1435
  private _previewSrc;
1337
1436
  private _observerCallback;
1338
1437
  initCallback(): void;
1339
- destroyCallback(): void;
1438
+ disconnectedCallback(): void;
1439
+ protected updated(changedProperties: PropertyValues<this>): void;
1440
+ private updateFilterLabels;
1441
+ private loadPreview;
1442
+ private schedulePreviewVisibilityCheck;
1443
+ private clearPreviewVisibilityChecks;
1444
+ private get shouldShowPreview();
1445
+ render(): lit_html.TemplateResult<1>;
1340
1446
  }
1341
1447
 
1342
1448
  type Operations = {
@@ -1344,7 +1450,7 @@ type Operations = {
1344
1450
  mirror: boolean;
1345
1451
  rotate: number;
1346
1452
  };
1347
- declare class EditorImageCropper extends Block {
1453
+ declare class EditorImageCropper extends LitBlock {
1348
1454
  ctxOwner: boolean;
1349
1455
  private _commitDebounced;
1350
1456
  private _handleResizeThrottled;
@@ -1353,9 +1459,12 @@ declare class EditorImageCropper extends Block {
1353
1459
  private _ctx;
1354
1460
  private _isActive;
1355
1461
  private _observer?;
1462
+ private _image;
1356
1463
  private _cancelPreload?;
1464
+ private readonly canvasRef;
1465
+ private readonly frameRef;
1357
1466
  constructor();
1358
- private _handleResize;
1467
+ protected firstUpdated(_changedProperties: PropertyValues): void;
1359
1468
  private _syncTransformations;
1360
1469
  private _initCanvas;
1361
1470
  private _alignImage;
@@ -1380,11 +1489,12 @@ declare class EditorImageCropper extends Block {
1380
1489
  private _waitForImage;
1381
1490
  private _handleImageLoading;
1382
1491
  initCallback(): void;
1383
- destroyCallback(): void;
1492
+ disconnectedCallback(): void;
1493
+ render(): TemplateResult;
1384
1494
  }
1385
1495
 
1386
1496
  type OperationKey = keyof typeof COLOR_OPERATIONS_CONFIG;
1387
- declare class EditorImageFader extends Block {
1497
+ declare class EditorImageFader extends LitBlock {
1388
1498
  private _isActive;
1389
1499
  private _hidden;
1390
1500
  private _operation;
@@ -1392,7 +1502,6 @@ declare class EditorImageFader extends Block {
1392
1502
  private _value?;
1393
1503
  private _transformations;
1394
1504
  private _keypoints;
1395
- private _container?;
1396
1505
  private _previewImage?;
1397
1506
  private _cancelLastImages?;
1398
1507
  private _cancelBatchPreload?;
@@ -1400,6 +1509,8 @@ declare class EditorImageFader extends Block {
1400
1509
  private _fromViewer?;
1401
1510
  private _raf;
1402
1511
  private _addKeypointDebounced;
1512
+ private readonly _previewHostRef;
1513
+ private readonly _layersHostRef;
1403
1514
  constructor();
1404
1515
  private _handleImageLoading;
1405
1516
  private _flush;
@@ -1409,7 +1520,6 @@ declare class EditorImageFader extends Block {
1409
1520
  * Check if current operation and filter equals passed ones
1410
1521
  */
1411
1522
  private _isSame;
1412
- private _addKeypoint;
1413
1523
  set(value: string | number): void;
1414
1524
  private _update;
1415
1525
  private _createPreviewImage;
@@ -1432,98 +1542,187 @@ declare class EditorImageFader extends Block {
1432
1542
  deactivate({ hide }?: {
1433
1543
  hide?: boolean;
1434
1544
  }): void;
1545
+ private _ensurePreviewAttached;
1546
+ private _clearLayersHost;
1547
+ render(): TemplateResult;
1435
1548
  }
1436
1549
 
1437
1550
  declare class EditorOperationControl extends EditorButtonControl {
1438
1551
  private _operation;
1552
+ get operation(): ColorOperation | '';
1553
+ set operation(value: ColorOperation | '');
1554
+ private updateOperationMetadata;
1439
1555
  initCallback(): void;
1556
+ onClick(e: MouseEvent): void;
1440
1557
  }
1441
1558
 
1442
- declare class EditorScroller extends Block {
1443
- initCallback(): void;
1559
+ declare class EditorScroller extends LitBlock {
1560
+ private readonly handleWheel;
1561
+ connectedCallback(): void;
1562
+ disconnectedCallback(): void;
1444
1563
  }
1445
1564
 
1446
1565
  type SliderOperation = ColorOperation | 'filter';
1447
1566
  type SliderFilter = FilterId | typeof FAKE_ORIGINAL_FILTER;
1448
1567
  declare const FAKE_ORIGINAL_FILTER = "original";
1449
- declare class EditorSlider extends Block {
1450
- private _operation;
1451
- private _filter?;
1452
- private _originalUrl;
1453
- constructor();
1568
+ declare class EditorSlider extends LitBlock {
1569
+ private state;
1570
+ handleInput: (e: CustomEvent<{
1571
+ value: number;
1572
+ }>) => void;
1454
1573
  setOperation(operation: SliderOperation, filter?: SliderFilter): void;
1455
1574
  private _initializeValues;
1456
1575
  apply(): void;
1457
1576
  cancel(): void;
1458
1577
  initCallback(): void;
1578
+ protected updated(changedProperties: Map<PropertyKey, unknown>): void;
1579
+ render(): lit_html.TemplateResult<1>;
1459
1580
  }
1460
1581
 
1461
- declare class EditorToolbar extends Block {
1462
- private _debouncedShowLoader;
1582
+ type TabIdValue = (typeof TabId)[keyof typeof TabId];
1583
+ declare class EditorToolbar extends LitBlock {
1584
+ private showLoader;
1585
+ private showMainToolbar;
1586
+ private showSubToolbar;
1587
+ private showTabToggles;
1588
+ private tabList;
1589
+ private activeTab;
1590
+ private useSliderPanel;
1591
+ private tooltipVisible;
1592
+ private operationTooltip;
1593
+ private tabIndicatorOffset;
1594
+ private tabIndicatorWidth;
1595
+ private readonly sliderRef;
1596
+ private readonly tabIndicatorRef;
1597
+ protected readonly tabToggleRefs: Record<TabIdValue, Ref<HTMLElement>>;
1598
+ private readonly handleWindowResize;
1599
+ private cropPresets;
1463
1600
  private _cancelPreload?;
1464
- private _updateInfoTooltip;
1465
- constructor();
1601
+ private readonly _debouncedShowLoader;
1602
+ private readonly _updateInfoTooltip;
1603
+ private readonly subTopToolbarStyles;
1604
+ private readonly subBottomToolbarStyles;
1605
+ private readonly tabContentStyles;
1606
+ private readonly tabToggleStyles;
1607
+ private readonly tabTogglesStyles;
1608
+ init$: Record<string, unknown>;
1466
1609
  private _onSliderClose;
1467
- private _createOperationControl;
1468
- private _createFilterControl;
1469
- private _createToggleControl;
1470
- private _createAspectRatioControl;
1471
- private _createFreeformControl;
1472
- private _clearListAspectRatio;
1473
- private _renderControlsList;
1474
1610
  private _activateTab;
1475
- private _unmountTabControls;
1611
+ private applyTabState;
1476
1612
  private _syncTabIndicator;
1613
+ private get hasAspectRatioPicker();
1614
+ private renderControlsByTab;
1615
+ private renderCropTabControls;
1616
+ private renderFilterTabControls;
1617
+ private renderTuningTabControls;
1618
+ private renderControlGroup;
1619
+ private renderFreeformControl;
1620
+ private renderAspectRatioControl;
1621
+ private renderCropOperationControl;
1622
+ private renderFilterControl;
1623
+ private renderOperationControl;
1624
+ private renderAspectRatioList;
1477
1625
  private _preloadEditedImage;
1478
- private _showLoader;
1479
- private _updateInfoTooltipHandler;
1480
1626
  initCallback(): void;
1481
- destroyCallback(): void;
1627
+ connectedCallback(): void;
1628
+ firstUpdated(_changedProperties: PropertyValues): void;
1629
+ protected updated(changedProperties: PropertyValues): void;
1630
+ disconnectedCallback(): void;
1631
+ private assignSharedElements;
1632
+ private handleCancel;
1633
+ private handleApply;
1634
+ private handleApplySlider;
1635
+ private handleCancelSlider;
1636
+ private handleTabClick;
1637
+ private renderTabToggle;
1638
+ private renderTabContent;
1639
+ render(): TemplateResult<1>;
1482
1640
  }
1483
1641
 
1484
- declare class BtnUi extends Block {
1485
- private _iconReversed;
1486
- private _iconSingle;
1487
- private _iconHidden;
1488
- constructor();
1489
- private _iconCss;
1490
- initCallback(): void;
1491
- set reverse(_value: boolean);
1642
+ type Theme = string | null;
1643
+ declare class BtnUi extends LitBlock {
1644
+ text: string;
1645
+ icon: string;
1646
+ active: boolean;
1647
+ reverse: boolean;
1648
+ theme: Theme;
1649
+ ariaRole: string;
1650
+ ariaControls: string;
1651
+ titleProp: string;
1652
+ protected firstUpdated(_changed: PropertyValues<this>): void;
1653
+ protected updated(changed: PropertyValues<this>): void;
1654
+ private applyReverse;
1655
+ private applyThemeClass;
1656
+ private get iconClassMap();
1657
+ private get computedIconHidden();
1658
+ private get computedIconSingle();
1659
+ render(): lit_html.TemplateResult<1>;
1492
1660
  }
1493
1661
 
1494
- declare class LineLoaderUi extends Block {
1495
- private _active;
1496
- private readonly _handleTransitionEndRight;
1497
- initCallback(): void;
1498
- private _start;
1499
- private _stop;
1662
+ declare class LineLoaderUi extends LitBlock {
1663
+ active: boolean;
1664
+ private readonly lineRef;
1665
+ private _isAnimating;
1666
+ private readonly handleTransitionEndRight;
1667
+ protected firstUpdated(_changedProperties: PropertyValues<this>): void;
1668
+ protected updated(changedProperties: PropertyValues<this>): void;
1669
+ private start;
1670
+ private stop;
1671
+ private resetLine;
1672
+ render(): lit_html.TemplateResult<1>;
1500
1673
  }
1501
1674
 
1502
- declare class PresenceToggle extends Block {
1675
+ type PresenceToggleStyle = {
1676
+ transition?: string;
1677
+ visible?: string;
1678
+ hidden?: string;
1679
+ };
1680
+ declare class PresenceToggle extends LitBlock {
1503
1681
  private _visible;
1682
+ private _styles;
1504
1683
  private _visibleStyle;
1505
1684
  private _hiddenStyle;
1506
1685
  private _externalTransitions;
1507
- constructor();
1686
+ private initialRenderComplete;
1687
+ set visible(value: boolean);
1688
+ get visible(): boolean;
1689
+ set styles(styles: PresenceToggleStyle);
1690
+ get styles(): PresenceToggleStyle;
1508
1691
  private _handleVisible;
1692
+ private dispatchInitialRenderEvent;
1509
1693
  initCallback(): void;
1510
1694
  }
1511
1695
 
1512
- declare class SliderUi extends Block {
1696
+ declare class SliderUi extends LitBlock {
1513
1697
  private _observer?;
1514
1698
  private _thumbSize;
1515
- private _zero;
1516
1699
  private _zeroDotEl?;
1517
1700
  private _stepsCount?;
1701
+ private readonly inputRef;
1702
+ private readonly thumbRef;
1703
+ private readonly stepsRef;
1704
+ disabled: boolean;
1705
+ min: number;
1706
+ max: number;
1707
+ defaultValue: number;
1708
+ zero: number;
1709
+ private _currentValue;
1518
1710
  constructor();
1519
- initCallback(): void;
1520
- private _inputEl;
1521
- private _thumbEl;
1522
- private _stepsEl;
1711
+ private emitSliderEvent;
1712
+ private readonly handleSliderInput;
1713
+ private readonly handleSliderChange;
1714
+ private readonly handleInputFocus;
1715
+ private readonly handleInputBlur;
1716
+ protected firstUpdated(changedProperties: Map<PropertyKey, unknown>): void;
1717
+ protected willUpdate(changedProperties: PropertyValues<this>): void;
1523
1718
  private _updateValue;
1524
1719
  private _updateZeroDot;
1525
1720
  private _updateSteps;
1526
- destroyCallback(): void;
1721
+ disconnectedCallback(): void;
1722
+ private _setCurrentValue;
1723
+ private _syncInputValue;
1724
+ private _extractEventValue;
1725
+ render(): lit_html.TemplateResult<1>;
1527
1726
  }
1528
1727
 
1529
1728
  declare class CloudImageEditor extends CloudImageEditorBlock {
@@ -1534,9 +1733,14 @@ declare class CloudImageEditor extends CloudImageEditorBlock {
1534
1733
 
1535
1734
  declare function defineComponents(blockExports: Record<string, any>): void;
1536
1735
 
1537
- declare class Icon extends Block {
1538
- constructor();
1736
+ declare class Icon extends LitBlock {
1737
+ name: string;
1738
+ private resolvedHref;
1739
+ private iconHrefResolver;
1539
1740
  initCallback(): void;
1741
+ protected willUpdate(changedProperties: PropertyValues<this>): void;
1742
+ private updateResolvedHref;
1743
+ render(): lit_html.TemplateResult<1>;
1540
1744
  }
1541
1745
 
1542
1746
  export { BtnUi, CloudImageEditor, CloudImageEditorBlock, Config, CropFrame, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, Icon, LineLoaderUi, PresenceToggle, SliderUi, defineComponents };