@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
|
@@ -338,7 +338,7 @@ declare class PluginRegistry {
|
|
|
338
338
|
private _fileActions;
|
|
339
339
|
private _fileHooks;
|
|
340
340
|
private _icons;
|
|
341
|
-
private
|
|
341
|
+
private _l10n;
|
|
342
342
|
readonly config: CustomConfigRegistry;
|
|
343
343
|
private _own;
|
|
344
344
|
addSource(pluginId: string, item: PluginSourceRegistration): void;
|
|
@@ -346,7 +346,7 @@ declare class PluginRegistry {
|
|
|
346
346
|
addFileAction(pluginId: string, item: PluginFileActionRegistration): void;
|
|
347
347
|
addFileHook(pluginId: string, item: PluginFileHookRegistration): void;
|
|
348
348
|
addIcon(pluginId: string, item: PluginIconRegistration): void;
|
|
349
|
-
|
|
349
|
+
addL10n(pluginId: string, item: PluginL10nRegistration): void;
|
|
350
350
|
addConfig<T>(pluginId: string, definition: CustomConfigDefinition<T>): void;
|
|
351
351
|
purge(pluginId: string): void;
|
|
352
352
|
snapshot(): PluginRegistrySnapshot;
|
|
@@ -1477,7 +1477,7 @@ type PluginIconRegistration = {
|
|
|
1477
1477
|
name: string;
|
|
1478
1478
|
svg: string;
|
|
1479
1479
|
};
|
|
1480
|
-
type
|
|
1480
|
+
type PluginL10nRegistration = Record<string, Record<string, string>>;
|
|
1481
1481
|
type PluginSourceRegistration = {
|
|
1482
1482
|
id: string;
|
|
1483
1483
|
label: string;
|
|
@@ -1505,7 +1505,7 @@ type PluginFileActionRegistration = {
|
|
|
1505
1505
|
id: string;
|
|
1506
1506
|
/** Icon name to display in the action button. */
|
|
1507
1507
|
icon: string;
|
|
1508
|
-
/** Label shown next to the icon in the action button. Accepts a plain string or an
|
|
1508
|
+
/** Label shown next to the icon in the action button. Accepts a plain string or an l10n key registered via `registerL10n`. */
|
|
1509
1509
|
label: string;
|
|
1510
1510
|
/** Return `true` to show the action button for the given file entry. */
|
|
1511
1511
|
shouldRender: (fileEntry: OutputFileEntry) => boolean;
|
|
@@ -1545,7 +1545,7 @@ type PluginRegistryApi = {
|
|
|
1545
1545
|
registerFileAction: (fileAction: PluginFileActionRegistration) => void;
|
|
1546
1546
|
registerFileHook: (hook: PluginFileHookRegistration) => void;
|
|
1547
1547
|
registerIcon: (icon: PluginIconRegistration) => void;
|
|
1548
|
-
|
|
1548
|
+
registerL10n: (l10n: PluginL10nRegistration) => void;
|
|
1549
1549
|
registerConfig: <T = unknown>(definition: CustomConfigDefinition<T>) => void;
|
|
1550
1550
|
};
|
|
1551
1551
|
/**
|
|
@@ -1629,7 +1629,7 @@ type PluginRegistrySnapshot = {
|
|
|
1629
1629
|
fileActions: Owned<PluginFileActionRegistration>[];
|
|
1630
1630
|
fileHooks: Owned<PluginFileHookRegistration>[];
|
|
1631
1631
|
icons: Owned<PluginIconRegistration>[];
|
|
1632
|
-
|
|
1632
|
+
l10n: Owned<PluginL10nRegistration>[];
|
|
1633
1633
|
};
|
|
1634
1634
|
|
|
1635
1635
|
declare class SecureUploadsManager extends SharedInstance {
|
|
@@ -2218,11 +2218,9 @@ declare global {
|
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
2220
2220
|
declare class UrlSource extends LitUploaderBlock {
|
|
2221
|
-
private
|
|
2222
|
-
private _inputRef;
|
|
2221
|
+
private _url;
|
|
2223
2222
|
private _handleInput;
|
|
2224
2223
|
private _handleUpload;
|
|
2225
|
-
firstUpdated(): void;
|
|
2226
2224
|
render(): lit_html.TemplateResult<1>;
|
|
2227
2225
|
}
|
|
2228
2226
|
declare global {
|