@uploadcare/file-uploader 1.29.0-alpha.2 → 1.29.0-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/dist/abstract/loadFileUploaderFrom.js +2 -2
- package/dist/env.js +3 -3
- package/dist/index.css +3 -3
- package/dist/index.d.ts +8 -10
- package/dist/index.js +3 -3
- package/dist/index.layered.css +3 -3
- package/dist/index.ssr.js +1 -1
- package/dist/locales/file-uploader/ar.js +2 -2
- package/dist/locales/file-uploader/az.js +2 -2
- package/dist/locales/file-uploader/ca.js +2 -2
- package/dist/locales/file-uploader/cs.js +2 -2
- package/dist/locales/file-uploader/da.js +2 -2
- package/dist/locales/file-uploader/de.js +2 -2
- package/dist/locales/file-uploader/el.js +2 -2
- package/dist/locales/file-uploader/en.js +2 -2
- package/dist/locales/file-uploader/es.js +2 -2
- package/dist/locales/file-uploader/et.js +2 -2
- package/dist/locales/file-uploader/fi.js +2 -2
- package/dist/locales/file-uploader/fr.js +2 -2
- package/dist/locales/file-uploader/he.js +2 -2
- package/dist/locales/file-uploader/hy.js +2 -2
- package/dist/locales/file-uploader/is.js +2 -2
- package/dist/locales/file-uploader/it.js +2 -2
- package/dist/locales/file-uploader/ja.js +2 -2
- package/dist/locales/file-uploader/ka.js +2 -2
- package/dist/locales/file-uploader/kk.js +2 -2
- package/dist/locales/file-uploader/ko.js +2 -2
- package/dist/locales/file-uploader/lv.js +2 -2
- package/dist/locales/file-uploader/nb.js +2 -2
- package/dist/locales/file-uploader/nl.js +2 -2
- package/dist/locales/file-uploader/pl.js +2 -2
- package/dist/locales/file-uploader/pt.js +2 -2
- package/dist/locales/file-uploader/ro.js +2 -2
- package/dist/locales/file-uploader/ru.js +2 -2
- package/dist/locales/file-uploader/sk.js +2 -2
- package/dist/locales/file-uploader/sr.js +2 -2
- package/dist/locales/file-uploader/sv.js +2 -2
- package/dist/locales/file-uploader/tr.js +2 -2
- package/dist/locales/file-uploader/uk.js +2 -2
- package/dist/locales/file-uploader/vi.js +2 -2
- package/dist/locales/file-uploader/zh-TW.js +2 -2
- package/dist/locales/file-uploader/zh.js +2 -2
- package/package.json +1 -1
- package/web/file-uploader.iife.min.d.ts +8 -10
- package/web/file-uploader.iife.min.js +3 -3
- package/web/file-uploader.min.d.ts +8 -10
- package/web/file-uploader.min.js +3 -3
- package/web/uc-basic.layered.min.css +3 -3
- package/web/uc-basic.min.css +3 -3
- package/web/uc-cloud-image-editor.layered.min.css +2 -2
- package/web/uc-cloud-image-editor.min.css +2 -2
- package/web/uc-cloud-image-editor.min.d.ts +7 -9
- package/web/uc-cloud-image-editor.min.js +3 -3
- package/web/uc-file-uploader-inline.layered.min.css +3 -3
- package/web/uc-file-uploader-inline.min.css +3 -3
- package/web/uc-file-uploader-inline.min.d.ts +8 -10
- package/web/uc-file-uploader-inline.min.js +3 -3
- package/web/uc-file-uploader-minimal.layered.min.css +3 -3
- package/web/uc-file-uploader-minimal.min.css +3 -3
- package/web/uc-file-uploader-minimal.min.d.ts +8 -10
- package/web/uc-file-uploader-minimal.min.js +3 -3
- package/web/uc-file-uploader-regular.layered.min.css +3 -3
- package/web/uc-file-uploader-regular.min.css +3 -3
- package/web/uc-file-uploader-regular.min.d.ts +8 -10
- package/web/uc-file-uploader-regular.min.js +3 -3
- package/web/uc-img.min.js +3 -3
|
@@ -2289,7 +2289,7 @@ type PluginIconRegistration = {
|
|
|
2289
2289
|
name: string;
|
|
2290
2290
|
svg: string;
|
|
2291
2291
|
};
|
|
2292
|
-
type
|
|
2292
|
+
type PluginL10nRegistration = Record<string, Record<string, string>>;
|
|
2293
2293
|
type PluginSourceRegistration = {
|
|
2294
2294
|
id: string;
|
|
2295
2295
|
label: string;
|
|
@@ -2317,7 +2317,7 @@ type PluginFileActionRegistration = {
|
|
|
2317
2317
|
id: string;
|
|
2318
2318
|
/** Icon name to display in the action button. */
|
|
2319
2319
|
icon: string;
|
|
2320
|
-
/** Label shown next to the icon in the action button. Accepts a plain string or an
|
|
2320
|
+
/** Label shown next to the icon in the action button. Accepts a plain string or an l10n key registered via `registerL10n`. */
|
|
2321
2321
|
label: string;
|
|
2322
2322
|
/** Return `true` to show the action button for the given file entry. */
|
|
2323
2323
|
shouldRender: (fileEntry: OutputFileEntry) => boolean;
|
|
@@ -2357,7 +2357,7 @@ type PluginRegistryApi = {
|
|
|
2357
2357
|
registerFileAction: (fileAction: PluginFileActionRegistration) => void;
|
|
2358
2358
|
registerFileHook: (hook: PluginFileHookRegistration) => void;
|
|
2359
2359
|
registerIcon: (icon: PluginIconRegistration) => void;
|
|
2360
|
-
|
|
2360
|
+
registerL10n: (l10n: PluginL10nRegistration) => void;
|
|
2361
2361
|
registerConfig: <T = unknown>(definition: CustomConfigDefinition<T>) => void;
|
|
2362
2362
|
};
|
|
2363
2363
|
/**
|
|
@@ -2441,7 +2441,7 @@ type PluginRegistrySnapshot = {
|
|
|
2441
2441
|
fileActions: Owned<PluginFileActionRegistration>[];
|
|
2442
2442
|
fileHooks: Owned<PluginFileHookRegistration>[];
|
|
2443
2443
|
icons: Owned<PluginIconRegistration>[];
|
|
2444
|
-
|
|
2444
|
+
l10n: Owned<PluginL10nRegistration>[];
|
|
2445
2445
|
};
|
|
2446
2446
|
|
|
2447
2447
|
type EventMap = {
|
|
@@ -2485,7 +2485,7 @@ declare class PluginRegistry {
|
|
|
2485
2485
|
private _fileActions;
|
|
2486
2486
|
private _fileHooks;
|
|
2487
2487
|
private _icons;
|
|
2488
|
-
private
|
|
2488
|
+
private _l10n;
|
|
2489
2489
|
readonly config: CustomConfigRegistry;
|
|
2490
2490
|
private _own;
|
|
2491
2491
|
addSource(pluginId: string, item: PluginSourceRegistration): void;
|
|
@@ -2493,7 +2493,7 @@ declare class PluginRegistry {
|
|
|
2493
2493
|
addFileAction(pluginId: string, item: PluginFileActionRegistration): void;
|
|
2494
2494
|
addFileHook(pluginId: string, item: PluginFileHookRegistration): void;
|
|
2495
2495
|
addIcon(pluginId: string, item: PluginIconRegistration): void;
|
|
2496
|
-
|
|
2496
|
+
addL10n(pluginId: string, item: PluginL10nRegistration): void;
|
|
2497
2497
|
addConfig<T>(pluginId: string, definition: CustomConfigDefinition<T>): void;
|
|
2498
2498
|
purge(pluginId: string): void;
|
|
2499
2499
|
snapshot(): PluginRegistrySnapshot;
|
|
@@ -3179,11 +3179,9 @@ declare global {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
|
|
3181
3181
|
declare class UrlSource extends LitUploaderBlock {
|
|
3182
|
-
private
|
|
3183
|
-
private _inputRef;
|
|
3182
|
+
private _url;
|
|
3184
3183
|
private _handleInput;
|
|
3185
3184
|
private _handleUpload;
|
|
3186
|
-
firstUpdated(): void;
|
|
3187
3185
|
render(): lit_html.TemplateResult<1>;
|
|
3188
3186
|
}
|
|
3189
3187
|
declare global {
|
|
@@ -3259,4 +3257,4 @@ declare global {
|
|
|
3259
3257
|
declare const PACKAGE_NAME = "blocks";
|
|
3260
3258
|
declare const PACKAGE_VERSION: string;
|
|
3261
3259
|
|
|
3262
|
-
export { LitActivityBlock as ActivityBlock, ActivityHeader, type ActivityType, type ApiAddFileCommonOptions, BaseComponent, LitBlock as Block, BtnUi, CameraSource, CloudImageEditor, CloudImageEditorActivity, CloudImageEditorBlock, type CollectionValidators, Config, type ConfigAttributesType, type ConfigComplexType, type ConfigPlainType, type ConfigType, Copyright, CropFrame, type CustomActivities, type CustomConfig, type CustomConfigDefinition, PubSub as Data, DropArea, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, type EventMap, type EventPayload, EventType, ExternalSource, ExternalUploadSource, FileItem, FileUploaderInline, FileUploaderMinimal, FileUploaderRegular, type FileValidator, type FileValidatorDescriptor, type FileValidators, FormInput, type FuncCollectionValidator, type FuncFileValidator, type GroupFlag, Icon, type IconHrefResolver, Img, type KebabCase$1 as KebabCase, type KebabCaseKeys, LineLoaderUi, type LocaleDefinitionOverride, type LowerCase, type LowerCaseKeys, type MetadataCallback, Modal, ModalEvents, type ModalId, type OutputCollectionErrorType, type OutputCollectionState, type OutputCollectionStatus, type OutputCustomErrorType, type OutputError, type OutputErrorCollection, type OutputErrorFile, type OutputErrorTypePayload, type OutputFileEntry, type OutputFileErrorPayload, type OutputFileErrorType, type OutputFileStatus, type Owned, PACKAGE_NAME, PACKAGE_VERSION, type PluginActivityApi, PluginActivityHost, type PluginActivityRegistration, PluginActivityRenderer, type PluginApi, type PluginConfigApi, type PluginFileActionRegistration, type PluginFileEntryUpdate, type PluginFileHookContext, type PluginFileHookRegistration, type PluginFileHookResult, type PluginFilesApi, type
|
|
3260
|
+
export { LitActivityBlock as ActivityBlock, ActivityHeader, type ActivityType, type ApiAddFileCommonOptions, BaseComponent, LitBlock as Block, BtnUi, CameraSource, CloudImageEditor, CloudImageEditorActivity, CloudImageEditorBlock, type CollectionValidators, Config, type ConfigAttributesType, type ConfigComplexType, type ConfigPlainType, type ConfigType, Copyright, CropFrame, type CustomActivities, type CustomConfig, type CustomConfigDefinition, PubSub as Data, DropArea, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, type EventMap, type EventPayload, EventType, ExternalSource, ExternalUploadSource, FileItem, FileUploaderInline, FileUploaderMinimal, FileUploaderRegular, type FileValidator, type FileValidatorDescriptor, type FileValidators, FormInput, type FuncCollectionValidator, type FuncFileValidator, type GroupFlag, Icon, type IconHrefResolver, Img, type KebabCase$1 as KebabCase, type KebabCaseKeys, LineLoaderUi, type LocaleDefinitionOverride, type LowerCase, type LowerCaseKeys, type MetadataCallback, Modal, ModalEvents, type ModalId, type OutputCollectionErrorType, type OutputCollectionState, type OutputCollectionStatus, type OutputCustomErrorType, type OutputError, type OutputErrorCollection, type OutputErrorFile, type OutputErrorTypePayload, type OutputFileEntry, type OutputFileErrorPayload, type OutputFileErrorType, type OutputFileStatus, type Owned, PACKAGE_NAME, PACKAGE_VERSION, type PluginActivityApi, PluginActivityHost, type PluginActivityRegistration, PluginActivityRenderer, type PluginApi, type PluginConfigApi, type PluginFileActionRegistration, type PluginFileEntryUpdate, type PluginFileHookContext, type PluginFileHookRegistration, type PluginFileHookResult, type PluginFilesApi, type PluginIconRegistration, type PluginL10nRegistration, type PluginRegistryApi, type PluginRegistrySnapshot, type PluginRender, type PluginRenderDispose, type PluginSetupParams, type PluginSetupResult, type PluginSourceRegistration, type PluginUploaderApi, PresenceToggle, ProgressBar, ProgressBarCommon, type SecureDeliveryProxyUrlResolver, type SecureUploadsSignatureAndExpire, type SecureUploadsSignatureResolver, Select, SimpleBtn, SliderUi, LitSolutionBlock as SolutionBlock, SourceBtn, SourceList, type SourceTypes, Spinner, StartFrom, Thumb, UID, UploadCtxProvider, UploadList, UploadSource, LitUploaderBlock as UploaderBlock, type UploaderPlugin, UploaderPublicApi, UrlSource, defineComponents, defineLocale, loadFileUploaderFrom, toKebabCase };
|