@uploadcare/file-uploader 1.15.0-alpha.2 → 1.15.0-alpha.20

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 (293) hide show
  1. package/abstract/ActivityBlock.d.ts +5 -5
  2. package/abstract/ActivityBlock.d.ts.map +1 -1
  3. package/abstract/Block.d.ts +3 -9
  4. package/abstract/Block.d.ts.map +1 -1
  5. package/abstract/Block.js +1 -1
  6. package/abstract/CTX.d.ts +6 -6
  7. package/abstract/CTX.d.ts.map +1 -1
  8. package/abstract/LocaleManager.d.ts +3 -3
  9. package/abstract/LocaleManager.d.ts.map +1 -1
  10. package/abstract/ModalManager.d.ts +26 -17
  11. package/abstract/ModalManager.d.ts.map +1 -1
  12. package/abstract/ModalManager.js +32 -18
  13. package/abstract/SecureUploadsManager.d.ts +2 -2
  14. package/abstract/SecureUploadsManager.d.ts.map +1 -1
  15. package/abstract/SolutionBlock.d.ts +2 -2
  16. package/abstract/SolutionBlock.d.ts.map +1 -1
  17. package/abstract/TypedCollection.d.ts +44 -44
  18. package/abstract/TypedCollection.d.ts.map +1 -1
  19. package/abstract/TypedCollection.js +53 -33
  20. package/abstract/TypedData.d.ts +71 -25
  21. package/abstract/TypedData.d.ts.map +1 -1
  22. package/abstract/TypedData.js +74 -17
  23. package/abstract/UploaderBlock.d.ts +10 -10
  24. package/abstract/UploaderBlock.d.ts.map +1 -1
  25. package/abstract/UploaderBlock.js +23 -11
  26. package/abstract/UploaderPublicApi.d.ts +24 -23
  27. package/abstract/UploaderPublicApi.d.ts.map +1 -1
  28. package/abstract/UploaderPublicApi.js +21 -10
  29. package/abstract/ValidationManager.d.ts +125 -6
  30. package/abstract/ValidationManager.d.ts.map +1 -1
  31. package/abstract/ValidationManager.js +1 -1
  32. package/abstract/a11y.d.ts +2 -2
  33. package/abstract/a11y.d.ts.map +1 -1
  34. package/abstract/buildOutputCollectionState.d.ts +1 -1
  35. package/abstract/buildOutputCollectionState.d.ts.map +1 -1
  36. package/abstract/defineComponents.d.ts.map +1 -1
  37. package/abstract/l10nProcessor.d.ts.map +1 -1
  38. package/abstract/loadFileUploaderFrom.d.ts +1 -1
  39. package/abstract/loadFileUploaderFrom.d.ts.map +1 -1
  40. package/abstract/localeRegistry.d.ts.map +1 -1
  41. package/abstract/sharedConfigKey.d.ts.map +1 -1
  42. package/abstract/uploadEntrySchema.d.ts +123 -63
  43. package/abstract/uploadEntrySchema.d.ts.map +1 -1
  44. package/abstract/uploadEntrySchema.js +66 -81
  45. package/blocks/CameraSource/CameraSource.d.ts +9 -9
  46. package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
  47. package/blocks/CameraSource/calcCameraModes.d.ts +1 -1
  48. package/blocks/CameraSource/constants.d.ts.map +1 -1
  49. package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
  50. package/blocks/CloudImageEditor/src/CropFrame.d.ts +1 -1
  51. package/blocks/CloudImageEditor/src/EditorFilterControl.js +1 -1
  52. package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
  53. package/blocks/CloudImageEditor/src/EditorImageCropper.js +1 -1
  54. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
  55. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
  56. package/blocks/CloudImageEditor/src/EditorImageFader.js +1 -1
  57. package/blocks/CloudImageEditor/src/EditorSlider.d.ts +1 -1
  58. package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -1
  59. package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +1 -1
  60. package/blocks/CloudImageEditor/src/EditorToolbar.js +1 -1
  61. package/blocks/CloudImageEditor/src/crop-utils.d.ts +14 -14
  62. package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -1
  63. package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -1
  64. package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +1 -1
  65. package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -1
  66. package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +1 -1
  67. package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +3 -3
  68. package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -1
  69. package/blocks/CloudImageEditor/src/state.d.ts +4 -4
  70. package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -1
  71. package/blocks/CloudImageEditor/src/types.d.ts +8 -58
  72. package/blocks/CloudImageEditor/src/types.d.ts.map +1 -1
  73. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +5 -2
  74. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
  75. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +7 -3
  76. package/blocks/Config/Config.d.ts +3 -12
  77. package/blocks/Config/Config.d.ts.map +1 -1
  78. package/blocks/Config/assertions.d.ts +1 -1
  79. package/blocks/Config/initialConfig.d.ts +1 -1
  80. package/blocks/Config/initialConfig.d.ts.map +1 -1
  81. package/blocks/Config/initialConfig.js +4 -4
  82. package/blocks/Config/normalizeConfigValue.d.ts +2 -1
  83. package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
  84. package/blocks/Config/normalizeConfigValue.js +18 -109
  85. package/blocks/Config/side-effects.d.ts.map +1 -1
  86. package/blocks/Config/validatorsType.d.ts +37 -0
  87. package/blocks/Config/validatorsType.d.ts.map +1 -0
  88. package/blocks/Config/validatorsType.js +134 -0
  89. package/blocks/DropArea/DropArea.d.ts +3 -2
  90. package/blocks/DropArea/DropArea.d.ts.map +1 -1
  91. package/blocks/DropArea/DropArea.js +20 -2
  92. package/blocks/DropArea/addDropzone.d.ts.map +1 -1
  93. package/blocks/DropArea/drop-area.css +4 -2
  94. package/blocks/DropArea/getDropItems.d.ts +2 -2
  95. package/blocks/DropArea/getDropItems.d.ts.map +1 -1
  96. package/blocks/ExternalSource/ExternalSource.d.ts +3 -3
  97. package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
  98. package/blocks/ExternalSource/ExternalSource.js +0 -1
  99. package/blocks/ExternalSource/MessageBridge.d.ts +3 -3
  100. package/blocks/ExternalSource/MessageBridge.d.ts.map +1 -1
  101. package/blocks/ExternalSource/query-string.d.ts.map +1 -1
  102. package/blocks/ExternalSource/types.d.ts +64 -64
  103. package/blocks/ExternalSource/types.d.ts.map +1 -1
  104. package/blocks/FileItem/FileItem.d.ts +13 -40
  105. package/blocks/FileItem/FileItem.d.ts.map +1 -1
  106. package/blocks/FileItem/FileItem.js +126 -179
  107. package/blocks/FileItem/FileItemConfig.d.ts +28 -0
  108. package/blocks/FileItem/FileItemConfig.d.ts.map +1 -0
  109. package/blocks/FileItem/FileItemConfig.js +74 -0
  110. package/blocks/FileItem/file-item.css +39 -0
  111. package/blocks/Img/ImgBase.d.ts +3 -3
  112. package/blocks/Img/ImgBase.d.ts.map +1 -1
  113. package/blocks/Img/ImgBase.js +9 -9
  114. package/blocks/Img/ImgConfig.d.ts.map +1 -1
  115. package/blocks/Img/configurations.d.ts.map +1 -1
  116. package/blocks/Modal/Modal.d.ts +21 -2
  117. package/blocks/Modal/Modal.d.ts.map +1 -1
  118. package/blocks/Modal/Modal.js +37 -18
  119. package/blocks/ProgressBar/ProgressBar.d.ts +6 -1
  120. package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
  121. package/blocks/ProgressBar/ProgressBar.js +41 -44
  122. package/blocks/ProgressBar/progress-bar.css +9 -6
  123. package/blocks/Range/Range.d.ts.map +1 -1
  124. package/blocks/SimpleBtn/SimpleBtn.d.ts +2 -2
  125. package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
  126. package/blocks/SimpleBtn/SimpleBtn.js +1 -1
  127. package/blocks/SourceBtn/SourceBtn.d.ts +2 -5
  128. package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
  129. package/blocks/SourceBtn/SourceBtn.js +5 -5
  130. package/blocks/SourceList/SourceList.js +2 -2
  131. package/blocks/Spinner/Spinner.d.ts.map +1 -1
  132. package/blocks/Thumb/Thumb.d.ts +51 -0
  133. package/blocks/Thumb/Thumb.d.ts.map +1 -0
  134. package/blocks/Thumb/Thumb.js +220 -0
  135. package/blocks/Thumb/thumb.css +4 -0
  136. package/blocks/UploadCtxProvider/EventEmitter.d.ts +20 -20
  137. package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -1
  138. package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +4 -4
  139. package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -1
  140. package/blocks/UploadList/UploadList.d.ts +4 -2
  141. package/blocks/UploadList/UploadList.d.ts.map +1 -1
  142. package/blocks/UploadList/UploadList.js +3 -1
  143. package/blocks/svg-backgrounds/svg-backgrounds.d.ts +3 -3
  144. package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -1
  145. package/blocks/themes/uc-basic/common.css +1 -1
  146. package/blocks/themes/uc-basic/index.css +1 -0
  147. package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -1
  148. package/blocks/utils/UploadSource.d.ts.map +1 -1
  149. package/blocks/utils/debounce.d.ts +3 -1
  150. package/blocks/utils/debounce.d.ts.map +1 -1
  151. package/blocks/{CloudImageEditor/src/lib → utils}/preloadImage.js +1 -1
  152. package/blocks/utils/resizeImage.d.ts +1 -1
  153. package/blocks/utils/resizeImage.d.ts.map +1 -1
  154. package/blocks/utils/throttle.d.ts +3 -1
  155. package/blocks/utils/throttle.d.ts.map +1 -1
  156. package/blocks/utils/userAgent.d.ts +1 -1
  157. package/blocks/utils/userAgent.d.ts.map +1 -1
  158. package/env.d.ts.map +1 -1
  159. package/index.d.ts +2 -0
  160. package/index.js +2 -0
  161. package/index.ssr.d.ts +59 -0
  162. package/index.ssr.d.ts.map +1 -1
  163. package/index.ssr.js +79 -13
  164. package/locales/file-uploader/ar.d.ts +1 -0
  165. package/locales/file-uploader/ar.js +1 -0
  166. package/locales/file-uploader/az.d.ts +1 -0
  167. package/locales/file-uploader/az.js +1 -0
  168. package/locales/file-uploader/ca.d.ts +1 -0
  169. package/locales/file-uploader/ca.js +1 -0
  170. package/locales/file-uploader/cs.d.ts +1 -0
  171. package/locales/file-uploader/cs.js +1 -0
  172. package/locales/file-uploader/da.d.ts +1 -0
  173. package/locales/file-uploader/da.js +1 -0
  174. package/locales/file-uploader/de.d.ts +1 -0
  175. package/locales/file-uploader/de.js +1 -0
  176. package/locales/file-uploader/el.d.ts +1 -0
  177. package/locales/file-uploader/el.js +1 -0
  178. package/locales/file-uploader/en.d.ts +1 -0
  179. package/locales/file-uploader/en.js +1 -0
  180. package/locales/file-uploader/es.d.ts +1 -0
  181. package/locales/file-uploader/es.js +1 -0
  182. package/locales/file-uploader/et.d.ts +1 -0
  183. package/locales/file-uploader/et.js +1 -0
  184. package/locales/file-uploader/fi.d.ts +1 -0
  185. package/locales/file-uploader/fi.js +1 -0
  186. package/locales/file-uploader/fr.d.ts +1 -0
  187. package/locales/file-uploader/fr.js +1 -0
  188. package/locales/file-uploader/he.d.ts +1 -0
  189. package/locales/file-uploader/he.js +1 -0
  190. package/locales/file-uploader/hy.d.ts +1 -0
  191. package/locales/file-uploader/hy.js +1 -0
  192. package/locales/file-uploader/is.d.ts +1 -0
  193. package/locales/file-uploader/is.js +1 -0
  194. package/locales/file-uploader/it.d.ts +1 -0
  195. package/locales/file-uploader/it.js +1 -0
  196. package/locales/file-uploader/ja.d.ts +1 -0
  197. package/locales/file-uploader/ja.js +1 -0
  198. package/locales/file-uploader/ka.d.ts +1 -0
  199. package/locales/file-uploader/ka.js +1 -0
  200. package/locales/file-uploader/kk.d.ts +1 -0
  201. package/locales/file-uploader/kk.js +1 -0
  202. package/locales/file-uploader/ko.d.ts +1 -0
  203. package/locales/file-uploader/ko.js +1 -0
  204. package/locales/file-uploader/lv.d.ts +1 -0
  205. package/locales/file-uploader/lv.js +1 -0
  206. package/locales/file-uploader/nb.d.ts +1 -0
  207. package/locales/file-uploader/nb.js +1 -0
  208. package/locales/file-uploader/nl.d.ts +1 -0
  209. package/locales/file-uploader/nl.js +1 -0
  210. package/locales/file-uploader/pl.d.ts +1 -0
  211. package/locales/file-uploader/pl.js +1 -0
  212. package/locales/file-uploader/pt.d.ts +1 -0
  213. package/locales/file-uploader/pt.js +1 -0
  214. package/locales/file-uploader/ro.d.ts +1 -0
  215. package/locales/file-uploader/ro.js +1 -0
  216. package/locales/file-uploader/ru.d.ts +1 -0
  217. package/locales/file-uploader/ru.js +1 -0
  218. package/locales/file-uploader/sk.d.ts +1 -0
  219. package/locales/file-uploader/sk.js +1 -0
  220. package/locales/file-uploader/sr.d.ts +1 -0
  221. package/locales/file-uploader/sr.js +1 -0
  222. package/locales/file-uploader/sv.d.ts +1 -0
  223. package/locales/file-uploader/sv.js +1 -0
  224. package/locales/file-uploader/tr.d.ts +1 -0
  225. package/locales/file-uploader/tr.js +1 -0
  226. package/locales/file-uploader/uk.d.ts +1 -0
  227. package/locales/file-uploader/uk.js +1 -0
  228. package/locales/file-uploader/vi.d.ts +1 -0
  229. package/locales/file-uploader/vi.js +1 -0
  230. package/locales/file-uploader/zh-TW.d.ts +1 -0
  231. package/locales/file-uploader/zh-TW.js +1 -0
  232. package/locales/file-uploader/zh.d.ts +1 -0
  233. package/locales/file-uploader/zh.js +1 -0
  234. package/package.json +6 -5
  235. package/solutions/file-uploader/inline/FileUploaderInline.d.ts +2 -2
  236. package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -1
  237. package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +21 -2
  238. package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
  239. package/solutions/file-uploader/minimal/FileUploaderMinimal.js +102 -23
  240. package/solutions/file-uploader/minimal/index.css +11 -28
  241. package/solutions/file-uploader/minimal/index.d.ts +1 -16
  242. package/solutions/file-uploader/minimal/index.js +1 -18
  243. package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +3 -5
  244. package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
  245. package/solutions/file-uploader/regular/FileUploaderRegular.js +1 -15
  246. package/types/exported.d.ts +4 -3
  247. package/types/jsx.d.ts +1 -1
  248. package/utils/browser-info.d.ts +13 -0
  249. package/utils/browser-info.d.ts.map +1 -0
  250. package/utils/browser-info.js +22 -0
  251. package/utils/browser-info.test.d.ts +2 -0
  252. package/utils/browser-info.test.d.ts.map +1 -0
  253. package/utils/browser-info.test.js +109 -0
  254. package/utils/cdn-utils.d.ts +3 -3
  255. package/utils/cdn-utils.d.ts.map +1 -1
  256. package/utils/fileTypes.d.ts +5 -1
  257. package/utils/fileTypes.d.ts.map +1 -1
  258. package/utils/fileTypes.js +18 -2
  259. package/utils/getPluralForm.d.ts.map +1 -1
  260. package/utils/isSecureTokenExpired.d.ts +1 -1
  261. package/utils/memoize.d.ts.map +1 -1
  262. package/utils/mixinClass.d.ts +3 -1
  263. package/utils/mixinClass.d.ts.map +1 -1
  264. package/utils/prettyBytes.d.ts.map +1 -1
  265. package/utils/template-utils.d.ts +1 -1
  266. package/utils/template-utils.d.ts.map +1 -1
  267. package/utils/toKebabCase.d.ts.map +1 -1
  268. package/utils/transparentPixelSrc.d.ts.map +1 -1
  269. package/utils/uniqueArray.d.ts.map +1 -1
  270. package/utils/validators/collection/validateCollectionUploadError.d.ts +1 -1
  271. package/utils/validators/collection/validateMultiple.d.ts +1 -1
  272. package/utils/validators/file/validateFileType.d.ts +1 -1
  273. package/utils/validators/file/validateIsImage.d.ts +1 -1
  274. package/utils/validators/file/validateMaxSizeLimit.d.ts +1 -1
  275. package/utils/validators/file/validateUploadError.d.ts +1 -1
  276. package/utils/waitForAttribute.d.ts +1 -1
  277. package/utils/waitForAttribute.d.ts.map +1 -1
  278. package/web/file-uploader.iife.min.js +4 -4
  279. package/web/file-uploader.min.js +4 -4
  280. package/web/uc-basic.min.css +1 -1
  281. package/web/uc-cloud-image-editor.min.js +4 -4
  282. package/web/uc-file-uploader-inline.min.css +1 -1
  283. package/web/uc-file-uploader-inline.min.js +4 -4
  284. package/web/uc-file-uploader-minimal.min.css +1 -1
  285. package/web/uc-file-uploader-minimal.min.js +4 -4
  286. package/web/uc-file-uploader-regular.min.css +1 -1
  287. package/web/uc-file-uploader-regular.min.js +4 -4
  288. package/web/uc-img.min.js +1 -1
  289. package/blocks/utils/supportCapture.d.ts +0 -2
  290. package/blocks/utils/supportCapture.d.ts.map +0 -1
  291. package/blocks/utils/supportCapture.js +0 -3
  292. /package/blocks/{CloudImageEditor/src/lib → utils}/preloadImage.d.ts +0 -0
  293. /package/blocks/{CloudImageEditor/src/lib → utils}/preloadImage.d.ts.map +0 -0
@@ -37,7 +37,8 @@
37
37
  border-color: var(--uc-primary-transparent);
38
38
  }
39
39
 
40
- :where(.uc-contrast) :where([uc-drop-area]):is([drag-state='active'], [drag-state='near'], [drag-state='over'], :hover) {
40
+ :where(.uc-contrast)
41
+ :where([uc-drop-area]):is([drag-state='active'], [drag-state='near'], [drag-state='over'], :hover) {
41
42
  color: var(--uc-foreground);
42
43
  background: transparent;
43
44
  border-color: var(--uc-foreground);
@@ -122,7 +123,8 @@
122
123
  color: var(--uc-foreground);
123
124
  }
124
125
 
125
- :where(.uc-contrast) :where([uc-drop-area])[with-icon]
126
+ :where(.uc-contrast)
127
+ :where([uc-drop-area])[with-icon]
126
128
  > .uc-content-wrapper:is([drag-state='active'], [drag-state='near'], [drag-state='over'])
127
129
  .uc-text {
128
130
  color: var(--uc-foreground);
@@ -6,11 +6,11 @@
6
6
  */
7
7
  export function getDropItems(dataTransfer: DataTransfer): Promise<DropItem[]>;
8
8
  export type DropItem = {
9
- type: 'file';
9
+ type: "file";
10
10
  file: File;
11
11
  fullPath?: string;
12
12
  } | {
13
- type: 'url';
13
+ type: "url";
14
14
  url: string;
15
15
  };
16
16
  //# sourceMappingURL=getDropItems.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDropItems.d.ts","sourceRoot":"","sources":["getDropItems.js"],"names":[],"mappings":"AAwGA;;;;;GAKG;AACH,2CAHW,YAAY,GACV,QAAQ,QAAQ,EAAE,CAAC,CA0D/B;uBAnKY;IACZ,IAAY,EAAE,MAAM,CAAC;IACrB,IAAY,EAAE,IAAI,CAAC;IACnB,QAAgB,CAAC,EAAE,MAAM,CAAC;CACnB,GACD;IACN,IAAY,EAAE,KAAK,CAAC;IACpB,GAAW,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"getDropItems.d.ts","sourceRoot":"","sources":["getDropItems.js"],"names":[],"mappings":"AAwGA;;;;;GAKG;AACH,2CAHW,YAAY,GACV,OAAO,CAAC,QAAQ,EAAE,CAAC,CA0D/B;uBAnKY;IACJ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GACD;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -5,7 +5,7 @@ export class ExternalSource extends UploaderBlock {
5
5
  activityIcon: string;
6
6
  activityCaption: string;
7
7
  /** @type {import('./types.js').InputMessageMap['selected-files-change']['selectedFiles']} */
8
- selectedList: import('./types.js').InputMessageMap['selected-files-change']['selectedFiles'];
8
+ selectedList: import("./types.js").InputMessageMap["selected-files-change"]["selectedFiles"];
9
9
  total: number;
10
10
  isSelectionReady: boolean;
11
11
  isDoneBtnEnabled: boolean;
@@ -21,8 +21,8 @@ export class ExternalSource extends UploaderBlock {
21
21
  '*commonProgress': number;
22
22
  '*uploadList': never[];
23
23
  '*uploadQueue': import("@uploadcare/upload-client").Queue;
24
- '*collectionErrors': any[];
25
- '*collectionState': import("../../index.js").OutputCollectionState<import("../../index.js").OutputCollectionStatus, "maybe-has-group"> | null;
24
+ '*collectionErrors': ReturnType<import("../../index.js").OutputErrorCollection>[];
25
+ '*collectionState': import("../../index.js").OutputCollectionState | null;
26
26
  '*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
27
27
  '*uploadTrigger': Set<string>;
28
28
  '*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ExternalSource.d.ts","sourceRoot":"","sources":["ExternalSource.js"],"names":[],"mappings":"AAWA,+DAA+D;AAE/D;IAEE,yBAAiD;IAK/C;;;QAKE,6FAA6F;sBAAlF,OAAO,YAAY,EAAE,eAAe,CAAC,uBAAuB,CAAC,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;MAkC1F;IAGH,6BAA6B;IAC7B,qCAMC;IAiDD;;;OAGG;IACH,mCAcC;IAED;;;OAGG;IACH,kCAsBC;IAED,eAAe;IACf,yBAIC;IAED,eAAe;IACf,mBAKC;IAED;;;OAGG;IACH,sBAKC;IAED,eAAe;IACf,kBAKC;IAED,eAAe;IACf,kBAeC;IAED,eAAe;IACf,oBA6BC;IALC,eAAe;IACf,uBAA6D;IAM/D,eAAe;IACf,sBAMC;IAED,eAAe;IACf,6BASC;CACF;;;;6BAnQa;IAAE,kBAAkB,EAAE,MAAM,CAAA;CAAE;8BAPd,iCAAiC"}
1
+ {"version":3,"file":"ExternalSource.d.ts","sourceRoot":"","sources":["ExternalSource.js"],"names":[],"mappings":"AAWA,+DAA+D;AAE/D;IAEE,yBAAiD;IAK/C;;;QAKE,6FAA6F;sBAAlF,OAAO,YAAY,EAAE,eAAe,CAAC,uBAAuB,CAAC,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;+CAVnD,gBAE3C;mCAKM,gBAAU;6BAG+B,2BAA2B;;wCAMrE,wCACL;;;;;;MA2BI;IAGH,6BAA6B;IAC7B,sBADW,cAAc,CAOxB;IAgDD;;;OAGG;IACH,mCAcC;IAED;;;OAGG;IACH,kCAsBC;IAED,eAAe;IACf,yBAIC;IAED,eAAe;IACf,mBAKC;IAED;;;OAGG;IACH,sBAKC;IAED,eAAe;IACf,kBAKC;IAED,eAAe;IACf,kBAeC;IAED,eAAe;IACf,oBA6BC;IALC,eAAe;IACf,uBAA6D;IAM/D,eAAe;IACf,sBAMC;IAED,eAAe;IACf,6BASC;CACF;;;;6BAlQa;IAAE,kBAAkB,EAAE,MAAM,CAAA;CAAE;8BAPd,iCAAiC"}
@@ -78,7 +78,6 @@ export class ExternalSource extends UploaderBlock {
78
78
  if (!externalSourceType) {
79
79
  this.modalManager.close(this.$['*currentActivity']);
80
80
  this.$['*currentActivity'] = null;
81
- // this.setOrAddState('*modalActive', false);
82
81
  console.error(`Param "externalSourceType" is required for activity "${this.activityType}"`);
83
82
  return;
84
83
  }
@@ -2,7 +2,7 @@ export class MessageBridge {
2
2
  /** @param {Window} context */
3
3
  constructor(context: Window);
4
4
  /** @type {Map<string, Set<import('./types').InputMessageHandler<import('./types').InputMessageType>>>} */
5
- _handlerMap: Map<string, Set<import('./types').InputMessageHandler<import('./types').InputMessageType>>>;
5
+ _handlerMap: Map<string, Set<import("./types").InputMessageHandler<import("./types").InputMessageType>>>;
6
6
  /** @type {Window} */
7
7
  _context: Window;
8
8
  /** @param {MessageEvent} e */
@@ -12,9 +12,9 @@ export class MessageBridge {
12
12
  * @param {T} type
13
13
  * @param {import('./types').InputMessageHandler<T>} handler
14
14
  */
15
- on<T extends "selected-files-change">(type: T, handler: import("./types").InputMessageHandler<T>): void;
15
+ on<T extends import("./types").InputMessageType>(type: T, handler: import("./types").InputMessageHandler<T>): void;
16
16
  /** @param {import('./types').OutputMessage} message */
17
- send(message: import('./types').OutputMessage): void;
17
+ send(message: import("./types").OutputMessage): void;
18
18
  destroy(): void;
19
19
  }
20
20
  //# sourceMappingURL=MessageBridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageBridge.d.ts","sourceRoot":"","sources":["MessageBridge.js"],"names":[],"mappings":"AAgBA;IAOE,8BAA8B;IAC9B,qBADY,MAAM,EAKjB;IAXD,0GAA0G;IAC1G,aADW,IAAI,MAAM,EAAE,IAAI,OAAO,SAAS,EAAE,mBAAmB,CAAC,OAAO,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAC9E;IAExB,qBAAqB;IACrB,UADW,MAAM,CACR;IAST,8BAA8B;IAC9B,oBADY,YAAY,UAgBtB;IAEF;;;;OAIG;IACH,wGAOC;IAED,uDAAuD;IACvD,cADY,OAAO,SAAS,EAAE,aAAa,QAG1C;IAED,gBAEC;CACF"}
1
+ {"version":3,"file":"MessageBridge.d.ts","sourceRoot":"","sources":["MessageBridge.js"],"names":[],"mappings":"AAgBA;IAOE,8BAA8B;IAC9B,qBADY,MAAM,EAKjB;IAXD,0GAA0G;IAC1G,aADW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,SAAS,EAAE,mBAAmB,CAAC,OAAO,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAC9E;IAExB,qBAAqB;IACrB,UADW,MAAM,CACR;IAST,8BAA8B;IAC9B,iBAAkB,GADN,YACO,UAejB;IAEF;;;;OAIG;IACH,GAJkD,CAAC,SAAtC,OAAQ,SAAS,EAAE,gBAAiB,QACtC,CAAC,WACD,OAAO,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAC,QASlD;IAED,uDAAuD;IACvD,cADY,OAAO,SAAS,EAAE,aAAa,QAG1C;IAED,gBAEC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-string.d.ts","sourceRoot":"","sources":["query-string.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;IAFa,MAAM,CAWlB"}
1
+ {"version":3,"file":"query-string.d.ts","sourceRoot":"","sources":["query-string.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oCAHW;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,GAC7D,MAAM,CAWlB"}
@@ -3,12 +3,12 @@ export type DoneSuccessResponse = {
3
3
  alternatives?: Record<string, string>;
4
4
  is_image?: boolean | null;
5
5
  filename?: string;
6
- obj_type: 'selected_file';
6
+ obj_type: "selected_file";
7
7
  url: string;
8
8
  };
9
9
  export type InputMessageMap = {
10
- 'selected-files-change': {
11
- type: 'selected-files-change';
10
+ "selected-files-change": {
11
+ type: "selected-files-change";
12
12
  total: number;
13
13
  selectedCount: number;
14
14
  } & ({
@@ -27,76 +27,76 @@ export type InputMessageMap = {
27
27
  };
28
28
  export type InputMessageType = keyof InputMessageMap;
29
29
  export type InputMessage = InputMessageMap[InputMessageType];
30
- export type InputMessageHandler<T extends "selected-files-change"> = (message: import('./types').InputMessageMap[T]) => void;
30
+ export type InputMessageHandler<T extends import("./types").InputMessageType> = (message: import("./types").InputMessageMap[T]) => void;
31
31
  export type ThemeDefinition = {
32
- '--uc-font-family': string;
33
- '--uc-font-size': string;
34
- '--uc-line-height': string;
35
- '--uc-button-size': string;
36
- '--uc-preview-size': string;
37
- '--uc-input-size': string;
38
- '--uc-padding': string;
39
- '--uc-radius': string;
40
- '--uc-transition': string;
41
- '--uc-background': string;
42
- '--uc-foreground': string;
43
- '--uc-primary': string;
44
- '--uc-primary-hover': string;
45
- '--uc-primary-transparent': string;
46
- '--uc-primary-foreground': string;
47
- '--uc-secondary': string;
48
- '--uc-secondary-hover': string;
49
- '--uc-secondary-foreground': string;
50
- '--uc-muted': string;
51
- '--uc-muted-foreground': string;
52
- '--uc-destructive': string;
53
- '--uc-destructive-foreground': string;
54
- '--uc-border': string;
55
- '--uc-primary-rgb-light': string;
56
- '--uc-primary-light': string;
57
- '--uc-primary-hover-light': string;
58
- '--uc-primary-transparent-light': string;
59
- '--uc-background-light': string;
60
- '--uc-foreground-light': string;
61
- '--uc-primary-foreground-light': string;
62
- '--uc-secondary-light': string;
63
- '--uc-secondary-hover-light': string;
64
- '--uc-secondary-foreground-light': string;
65
- '--uc-muted-light': string;
66
- '--uc-muted-foreground-light': string;
67
- '--uc-destructive-light': string;
68
- '--uc-destructive-foreground-light': string;
69
- '--uc-border-light': string;
70
- '--uc-primary-rgb-dark': string;
71
- '--uc-primary-dark': string;
72
- '--uc-primary-hover-dark': string;
73
- '--uc-primary-transparent-dark': string;
74
- '--uc-background-dark': string;
75
- '--uc-foreground-dark': string;
76
- '--uc-primary-foreground-dark': string;
77
- '--uc-secondary-dark': string;
78
- '--uc-secondary-hover-dark': string;
79
- '--uc-secondary-foreground-dark': string;
80
- '--uc-muted-dark': string;
81
- '--uc-muted-foreground-dark': string;
82
- '--uc-destructive-dark': string;
83
- '--uc-destructive-foreground-dark': string;
84
- '--uc-border-dark': string;
85
- '--uc-primary-oklch-light': string;
86
- '--uc-primary-oklch-dark': string;
32
+ "--uc-font-family": string;
33
+ "--uc-font-size": string;
34
+ "--uc-line-height": string;
35
+ "--uc-button-size": string;
36
+ "--uc-preview-size": string;
37
+ "--uc-input-size": string;
38
+ "--uc-padding": string;
39
+ "--uc-radius": string;
40
+ "--uc-transition": string;
41
+ "--uc-background": string;
42
+ "--uc-foreground": string;
43
+ "--uc-primary": string;
44
+ "--uc-primary-hover": string;
45
+ "--uc-primary-transparent": string;
46
+ "--uc-primary-foreground": string;
47
+ "--uc-secondary": string;
48
+ "--uc-secondary-hover": string;
49
+ "--uc-secondary-foreground": string;
50
+ "--uc-muted": string;
51
+ "--uc-muted-foreground": string;
52
+ "--uc-destructive": string;
53
+ "--uc-destructive-foreground": string;
54
+ "--uc-border": string;
55
+ "--uc-primary-rgb-light": string;
56
+ "--uc-primary-light": string;
57
+ "--uc-primary-hover-light": string;
58
+ "--uc-primary-transparent-light": string;
59
+ "--uc-background-light": string;
60
+ "--uc-foreground-light": string;
61
+ "--uc-primary-foreground-light": string;
62
+ "--uc-secondary-light": string;
63
+ "--uc-secondary-hover-light": string;
64
+ "--uc-secondary-foreground-light": string;
65
+ "--uc-muted-light": string;
66
+ "--uc-muted-foreground-light": string;
67
+ "--uc-destructive-light": string;
68
+ "--uc-destructive-foreground-light": string;
69
+ "--uc-border-light": string;
70
+ "--uc-primary-rgb-dark": string;
71
+ "--uc-primary-dark": string;
72
+ "--uc-primary-hover-dark": string;
73
+ "--uc-primary-transparent-dark": string;
74
+ "--uc-background-dark": string;
75
+ "--uc-foreground-dark": string;
76
+ "--uc-primary-foreground-dark": string;
77
+ "--uc-secondary-dark": string;
78
+ "--uc-secondary-hover-dark": string;
79
+ "--uc-secondary-foreground-dark": string;
80
+ "--uc-muted-dark": string;
81
+ "--uc-muted-foreground-dark": string;
82
+ "--uc-destructive-dark": string;
83
+ "--uc-destructive-foreground-dark": string;
84
+ "--uc-border-dark": string;
85
+ "--uc-primary-oklch-light": string;
86
+ "--uc-primary-oklch-dark": string;
87
87
  };
88
88
  export type OutputMessage = {
89
- type: 'select-all';
89
+ type: "select-all";
90
90
  } | {
91
- type: 'deselect-all';
91
+ type: "deselect-all";
92
92
  } | {
93
- type: 'set-theme-definition';
93
+ type: "set-theme-definition";
94
94
  theme: Record<string, string>;
95
95
  } | {
96
- type: 'set-locale-definition';
96
+ type: "set-locale-definition";
97
97
  localeDefinition: string;
98
98
  } | {
99
- type: 'set-embed-css';
99
+ type: "set-embed-css";
100
100
  css: string;
101
101
  };
102
102
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"kCAGa;IACZ,KAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAgB,CAAC,EAAE,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,QAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,QAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAY,EAAE,eAAe,CAAC;IAC9B,GAAO,EAAE,MAAM,CAAC;CACb;8BAIS;IACZ,uBAA2B,EAAE;QAC7B,IAAU,EAAE,uBAAuB,CAAC;QACpC,KAAW,EAAE,MAAM,CAAC;QACpB,aAAmB,EAAE,MAAM,CAAC;KACvB,GAAG,CACA;QACR,OAAiB,EAAE,KAAK,CAAC;QACzB,cAAwB,EAAE,OAAO,CAAC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,EAAE,MAAM,CAAC;IAC5C,sBAA0B,EAAE,MAAM,CAAC;IACnC,sBAA0B,EAAE,MAAM,CAAC;IACnC,8BAAkC,EAAE,MAAM,CAAC;IAC3C,qBAAyB,EAAE,MAAM,CAAC;IAClC,2BAA+B,EAAE,MAAM,CAAC;IACxC,gCAAoC,EAAE,MAAM,CAAC;IAC7C,iBAAqB,EAAE,MAAM,CAAC;IAC9B,4BAAgC,EAAE,MAAM,CAAC;IACzC,uBAA2B,EAAE,MAAM,CAAC;IACpC,kCAAsC,EAAE,MAAM,CAAC;IAC/C,kBAAsB,EAAE,MAAM,CAAC;IAC/B,0BAA8B,EAAE,MAAM,CAAC;IACvC,yBAA6B,EAAE,MAAM,CAAC;CACnC;4BAIS;IACJ,IAAI,EAAE,YAAY,CAAC;CACpB,GACD;IACE,IAAI,EAAE,cAAc,CAAC;CACtB,GACD;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B,GACD;IACE,IAAI,EAAE,uBAAuB,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,eAAe,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -1,17 +1,4 @@
1
- export class FileItem extends UploaderBlock {
2
- /** @private */
3
- private _entrySubs;
4
- /**
5
- * @private
6
- * @type {any} TODO: Add types for upload entry
7
- */
8
- private _entry;
9
- /** @private */
10
- private _isIntersecting;
11
- /** @private */
12
- private _debouncedGenerateThumb;
13
- /** @private */
14
- private _debouncedCalculateState;
1
+ export class FileItem extends FileItemConfig {
15
2
  /** @private */
16
3
  private _renderedOnce;
17
4
  init$: {
@@ -28,17 +15,17 @@ export class FileItem extends UploaderBlock {
28
15
  isUploading: boolean;
29
16
  isFocused: boolean;
30
17
  isEditable: boolean;
31
- isFileName: boolean;
18
+ showFileNames: boolean;
32
19
  state: symbol;
33
20
  ariaLabelStatusFile: string;
34
- onEdit: () => void;
21
+ onEdit: (...args: any[]) => void;
35
22
  onRemove: () => void;
36
23
  onUpload: () => void;
37
24
  '*commonProgress': number;
38
25
  '*uploadList': never[];
39
26
  '*uploadQueue': import("@uploadcare/upload-client").Queue;
40
- '*collectionErrors': any[];
41
- '*collectionState': import("../../index.js").OutputCollectionState<import("../../index.js").OutputCollectionStatus, "maybe-has-group"> | null;
27
+ '*collectionErrors': ReturnType<import("../../index.js").OutputErrorCollection>[];
28
+ '*collectionState': import("../../index.js").OutputCollectionState | null;
42
29
  '*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
43
30
  '*uploadTrigger': Set<string>;
44
31
  '*secureUploadsManager': import("../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
@@ -48,33 +35,26 @@ export class FileItem extends UploaderBlock {
48
35
  '*historyBack': null;
49
36
  '*closeModal': () => void;
50
37
  };
51
- _reset(): void;
52
38
  /**
53
39
  * @private
54
40
  * @param {IntersectionObserverEntry[]} entries
55
41
  */
56
42
  private _observerCallback;
43
+ _isIntersecting: boolean | undefined;
57
44
  _thumbRect: DOMRectReadOnly | undefined;
58
45
  /** @private */
59
46
  private _calculateState;
60
47
  /** @private */
61
- private _generateThumbnail;
62
- /**
63
- * @private
64
- * @param {string} prop
65
- * @param {(value: any) => void} handler
66
- */
67
- private _subEntry;
68
- _updateHint: (() => void) & {
69
- readonly cancel: () => void;
70
- };
48
+ private _debouncedCalculateState;
49
+ _updateHint: (...args: any[]) => void;
71
50
  /**
72
51
  * @private
73
52
  * @param {String} id
74
53
  */
75
54
  private _handleEntryId;
76
- /** @param {(typeof FileItemState)[keyof typeof FileItemState]} state */
77
- _handleState(state: (typeof FileItemState)[keyof typeof FileItemState]): void;
55
+ /** @param {boolean} value */
56
+ _updateShowFileNames(value: boolean): void;
57
+ _handleState: (...args: any[]) => void;
78
58
  /** @private */
79
59
  private _observer;
80
60
  _settingsOfShrink(): {
@@ -86,18 +66,11 @@ export class FileItem extends UploaderBlock {
86
66
  * @param {File} file
87
67
  */
88
68
  private _processShrink;
89
- upload(): Promise<void>;
69
+ upload: (...args: any[]) => Promise<void>;
90
70
  }
91
71
  export namespace FileItem {
92
72
  let template: string;
93
73
  let activeInstances: Set<any>;
94
74
  }
95
- import { UploaderBlock } from '../../abstract/UploaderBlock.js';
96
- declare const FileItemState: Readonly<{
97
- FINISHED: symbol;
98
- FAILED: symbol;
99
- UPLOADING: symbol;
100
- IDLE: symbol;
101
- }>;
102
- export {};
75
+ import { FileItemConfig } from './FileItemConfig.js';
103
76
  //# sourceMappingURL=FileItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"AAoBA;IAIE,eAAe;IACf,mBAAuB;IACvB;;;OAGG;IACH,eAAc;IACd,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,gCAA4E;IAC5E,eAAe;IACf,iCAA0E;IAE1E,eAAe;IACf,sBAAsB;IAKpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BC;IAGH,eASC;IAED;;;OAGG;IACH,0BAcC;IAXC,wCAA0C;IAa5C,eAAe;IACf,wBAgBC;IAED,eAAe;IACf,2BA2CC;IAED;;;;OAIG;IACH,kBAUC;IAED;;MAaQ;IAER;;;OAGG;IACH,uBAmDC;IA6CD,wEAAwE;IACxE,oBADY,CAAC,oBAAoB,CAAC,CAAC,MAAM,oBAAoB,CAAC,QA0B7D;IAaC,eAAe;IACf,kBAEE;IAWJ;;;MAEC;IAED;;;OAGG;IACH,uBAEC;IAED,wBAsFC;CACF;;;;;8BAtc6B,iCAAiC;AAS/D;;;;;GAKG"}
1
+ {"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["FileItem.js"],"names":[],"mappings":"AAiBA;IAIE,eAAe;IACf,sBAAsB;IAKpB;;;;;;;;;;;;;;;;;;;;;;;+CAVoB,gBAAU;mCAIlB,gBACR;6BAMM,2BAET;;wCAMC,wCACK;;;;;;MAqBN;IAQH;;;OAGG;IACH,0BAUC;IAPC,qCAA2C;IAC3C,wCAA0C;IAQ5C,eAAe;IACf,wBAYG;IAEH,eAAe;IACf,iCAA0E;IAE1E,sCA4BE;IAEF;;;OAGG;IACH,uBAqCC;IAED,6BAA6B;IAC7B,4BADY,OAAO,QASlB;IAgDD,uCA+BE;IAaA,eAAe;IACf,kBAEE;IAUJ;;;MAEC;IAED;;;OAGG;IACH,uBAEC;IAED,0CAwGG;CACJ;;;;;+BA5Y8B,qBAAqB"}