@uploadcare/file-uploader 1.30.0-alpha.7 → 1.30.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 (66) hide show
  1. package/dist/abstract/loadFileUploaderFrom.js +2 -2
  2. package/dist/env.js +3 -3
  3. package/dist/index.css +3 -3
  4. package/dist/index.d.ts +13 -21
  5. package/dist/index.js +4 -4
  6. package/dist/index.layered.css +3 -3
  7. package/dist/index.ssr.js +54 -214
  8. package/dist/locales/file-uploader/ar.js +2 -2
  9. package/dist/locales/file-uploader/az.js +2 -2
  10. package/dist/locales/file-uploader/ca.js +2 -2
  11. package/dist/locales/file-uploader/cs.js +2 -2
  12. package/dist/locales/file-uploader/da.js +2 -2
  13. package/dist/locales/file-uploader/de.js +2 -2
  14. package/dist/locales/file-uploader/el.js +2 -2
  15. package/dist/locales/file-uploader/en.js +2 -2
  16. package/dist/locales/file-uploader/es.js +2 -2
  17. package/dist/locales/file-uploader/et.js +2 -2
  18. package/dist/locales/file-uploader/fi.js +2 -2
  19. package/dist/locales/file-uploader/fr.js +2 -2
  20. package/dist/locales/file-uploader/he.js +2 -2
  21. package/dist/locales/file-uploader/hy.js +2 -2
  22. package/dist/locales/file-uploader/is.js +2 -2
  23. package/dist/locales/file-uploader/it.js +2 -2
  24. package/dist/locales/file-uploader/ja.js +2 -2
  25. package/dist/locales/file-uploader/ka.js +2 -2
  26. package/dist/locales/file-uploader/kk.js +2 -2
  27. package/dist/locales/file-uploader/ko.js +2 -2
  28. package/dist/locales/file-uploader/lv.js +2 -2
  29. package/dist/locales/file-uploader/nb.js +2 -2
  30. package/dist/locales/file-uploader/nl.js +2 -2
  31. package/dist/locales/file-uploader/pl.js +2 -2
  32. package/dist/locales/file-uploader/pt.js +2 -2
  33. package/dist/locales/file-uploader/ro.js +2 -2
  34. package/dist/locales/file-uploader/ru.js +2 -2
  35. package/dist/locales/file-uploader/sk.js +2 -2
  36. package/dist/locales/file-uploader/sr.js +2 -2
  37. package/dist/locales/file-uploader/sv.js +2 -2
  38. package/dist/locales/file-uploader/tr.js +2 -2
  39. package/dist/locales/file-uploader/uk.js +2 -2
  40. package/dist/locales/file-uploader/vi.js +2 -2
  41. package/dist/locales/file-uploader/zh-TW.js +2 -2
  42. package/dist/locales/file-uploader/zh.js +2 -2
  43. package/package.json +1 -1
  44. package/web/file-uploader.iife.min.d.ts +13 -21
  45. package/web/file-uploader.iife.min.js +4 -4
  46. package/web/file-uploader.min.d.ts +13 -21
  47. package/web/file-uploader.min.js +4 -4
  48. package/web/uc-basic.layered.min.css +3 -3
  49. package/web/uc-basic.min.css +3 -3
  50. package/web/uc-cloud-image-editor.layered.min.css +2 -2
  51. package/web/uc-cloud-image-editor.min.css +2 -2
  52. package/web/uc-cloud-image-editor.min.d.ts +12 -20
  53. package/web/uc-cloud-image-editor.min.js +3 -3
  54. package/web/uc-file-uploader-inline.layered.min.css +3 -3
  55. package/web/uc-file-uploader-inline.min.css +3 -3
  56. package/web/uc-file-uploader-inline.min.d.ts +13 -21
  57. package/web/uc-file-uploader-inline.min.js +4 -4
  58. package/web/uc-file-uploader-minimal.layered.min.css +3 -3
  59. package/web/uc-file-uploader-minimal.min.css +3 -3
  60. package/web/uc-file-uploader-minimal.min.d.ts +13 -21
  61. package/web/uc-file-uploader-minimal.min.js +4 -4
  62. package/web/uc-file-uploader-regular.layered.min.css +3 -3
  63. package/web/uc-file-uploader-regular.min.css +3 -3
  64. package/web/uc-file-uploader-regular.min.d.ts +13 -21
  65. package/web/uc-file-uploader-regular.min.js +4 -4
  66. package/web/uc-img.min.js +3 -3
@@ -1370,12 +1370,8 @@ declare const ExternalUploadSource: Readonly<{
1370
1370
  readonly DROPBOX_CHOOSER: "dropboxchooser";
1371
1371
  readonly GDRIVE: "gdrive";
1372
1372
  readonly GPHOTOS: "gphotos";
1373
- readonly FLICKR: "flickr";
1374
- readonly VK: "vk";
1375
- readonly EVERNOTE: "evernote";
1376
1373
  readonly BOX: "box";
1377
1374
  readonly ONEDRIVE: "onedrive";
1378
- readonly HUDDLE: "huddle";
1379
1375
  }>;
1380
1376
  declare const UploadSource: Readonly<{
1381
1377
  readonly FACEBOOK: "facebook";
@@ -1383,12 +1379,8 @@ declare const UploadSource: Readonly<{
1383
1379
  readonly DROPBOX_CHOOSER: "dropboxchooser";
1384
1380
  readonly GDRIVE: "gdrive";
1385
1381
  readonly GPHOTOS: "gphotos";
1386
- readonly FLICKR: "flickr";
1387
- readonly VK: "vk";
1388
- readonly EVERNOTE: "evernote";
1389
1382
  readonly BOX: "box";
1390
1383
  readonly ONEDRIVE: "onedrive";
1391
- readonly HUDDLE: "huddle";
1392
1384
  readonly MOBILE_VIDEO_CAMERA: "mobile-video-camera";
1393
1385
  readonly MOBILE_PHOTO_CAMERA: "mobile-photo-camera";
1394
1386
  readonly LOCAL: "local";
@@ -1905,17 +1897,17 @@ declare global {
1905
1897
  }
1906
1898
  }
1907
1899
 
1908
- declare class NoWrapModeSmartBtn extends LitUploaderBlock {
1900
+ declare class NoWrapModeDynamicBtn extends LitUploaderBlock {
1909
1901
  static styleAttrs: string[];
1910
1902
  }
1911
1903
  declare global {
1912
1904
  interface HTMLElementTagNameMap {
1913
- 'uc-no-wrap-mode-smart-btn': NoWrapModeSmartBtn;
1905
+ 'uc-no-wrap-mode-dynamic-btn': NoWrapModeDynamicBtn;
1914
1906
  }
1915
1907
  }
1916
1908
 
1917
- type SmartButtonMode = 'auto' | 'menu' | 'toolbar' | 'compact';
1918
- declare class SmartBtn extends LitUploaderBlock {
1909
+ type DynamicButtonMode = 'auto' | 'menu' | 'toolbar' | 'compact';
1910
+ declare class DynamicBtn extends LitUploaderBlock {
1919
1911
  static styleAttrs: string[];
1920
1912
  couldBeCtxOwner: boolean;
1921
1913
  private _unregisterAfterFileAddHook?;
@@ -1956,7 +1948,7 @@ declare class SmartBtn extends LitUploaderBlock {
1956
1948
  }
1957
1949
  declare global {
1958
1950
  interface HTMLElementTagNameMap {
1959
- 'uc-smart-btn': SmartBtn;
1951
+ 'uc-dynamic-btn': DynamicBtn;
1960
1952
  }
1961
1953
  }
1962
1954
 
@@ -2261,8 +2253,8 @@ type ConfigType = {
2261
2253
  * Define the clipboard paste scope.
2262
2254
  */
2263
2255
  pasteScope: PasteScope;
2264
- smartButtonViewMode: SmartButtonMode;
2265
- smartButtonShowFirstIcon: boolean;
2256
+ dynamicButtonViewMode: DynamicButtonMode;
2257
+ dynamicButtonShowFirstIcon: boolean;
2266
2258
  };
2267
2259
  type ConfigComplexType = Pick<ConfigType, (typeof complexConfigKeys)[number]>;
2268
2260
  type ConfigPlainType = Omit<ConfigType, keyof ConfigComplexType>;
@@ -3327,19 +3319,19 @@ declare class FileUploaderRegular extends LitSolutionBlock {
3327
3319
  static lazyPlugins: LazyPluginEntry[];
3328
3320
  attributesMeta: {
3329
3321
  headless?: boolean;
3330
- 'smart-button'?: boolean;
3322
+ 'dynamic-button'?: boolean;
3331
3323
  'ctx-name': string;
3332
3324
  };
3333
3325
  static styleAttrs: string[];
3334
3326
  headless: boolean;
3335
- smartButton: boolean;
3327
+ dynamicButton: boolean;
3336
3328
  constructor();
3337
3329
  initCallback(): void;
3338
3330
  /**
3339
- * Exposes whether SmartBtn is active for non-Lit classes that can't use context
3331
+ * Exposes whether the dynamic button is active for non-Lit classes that can't use context
3340
3332
  */
3341
- get isSmartBtnActive(): boolean;
3342
- private _renderSmartButton;
3333
+ get isDynamicButtonActive(): boolean;
3334
+ private _renderDynamicButton;
3343
3335
  private _renderStaticButton;
3344
3336
  private _renderButton;
3345
3337
  render(): lit_html.TemplateResult<1>;
@@ -3399,4 +3391,4 @@ declare global {
3399
3391
  declare const PACKAGE_NAME = "blocks";
3400
3392
  declare const PACKAGE_VERSION: string;
3401
3393
 
3402
- 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, DropDown, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, type EventMap, type EventPayload, EventType, ExternalSource, ExternalUploadSource, FileActionButton, 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, NoWrapModeSmartBtn, 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, PrimaryAction, ProgressBar, ProgressBarCommon, type SecureDeliveryProxyUrlResolver, type SecureUploadsSignatureAndExpire, type SecureUploadsSignatureResolver, Select, SimpleBtn, SliderUi, SmartBtn, 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 };
3394
+ 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, DropDown, DynamicBtn, EditorAspectRatioButtonControl, EditorCropButtonControl, EditorFilterControl, EditorFreeformButtonControl, EditorImageCropper, EditorImageFader, EditorOperationControl, EditorScroller, EditorSlider, EditorToolbar, type EventMap, type EventPayload, EventType, ExternalSource, ExternalUploadSource, FileActionButton, 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, NoWrapModeDynamicBtn, 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, PrimaryAction, 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 };