@uploadcare/file-uploader 1.22.0 → 1.24.0-alpha.0

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 (732) hide show
  1. package/dist/abstract/loadFileUploaderFrom.d.ts +14 -0
  2. package/dist/abstract/loadFileUploaderFrom.js +78 -0
  3. package/dist/env.d.ts +4 -0
  4. package/dist/env.js +36 -0
  5. package/dist/index.css +2714 -0
  6. package/dist/index.d.ts +2043 -0
  7. package/dist/index.js +11914 -0
  8. package/{index.ssr.js → dist/index.ssr.js} +1113 -1082
  9. package/{locales → dist/locales}/file-uploader/ar.d.ts +5 -3
  10. package/dist/locales/file-uploader/ar.js +168 -0
  11. package/{locales → dist/locales}/file-uploader/az.d.ts +5 -3
  12. package/dist/locales/file-uploader/az.js +160 -0
  13. package/{locales → dist/locales}/file-uploader/ca.d.ts +5 -3
  14. package/dist/locales/file-uploader/ca.js +162 -0
  15. package/{locales → dist/locales}/file-uploader/cs.d.ts +5 -3
  16. package/dist/locales/file-uploader/cs.js +164 -0
  17. package/{locales → dist/locales}/file-uploader/da.d.ts +5 -3
  18. package/dist/locales/file-uploader/da.js +160 -0
  19. package/{locales → dist/locales}/file-uploader/de.d.ts +5 -3
  20. package/dist/locales/file-uploader/de.js +160 -0
  21. package/{locales → dist/locales}/file-uploader/el.d.ts +5 -3
  22. package/dist/locales/file-uploader/el.js +160 -0
  23. package/{locales → dist/locales}/file-uploader/en.d.ts +5 -3
  24. package/dist/locales/file-uploader/en.js +160 -0
  25. package/{locales → dist/locales}/file-uploader/es.d.ts +5 -3
  26. package/dist/locales/file-uploader/es.js +162 -0
  27. package/{locales → dist/locales}/file-uploader/et.d.ts +5 -3
  28. package/dist/locales/file-uploader/et.js +160 -0
  29. package/{locales → dist/locales}/file-uploader/fi.d.ts +5 -3
  30. package/dist/locales/file-uploader/fi.js +160 -0
  31. package/{locales → dist/locales}/file-uploader/fr.d.ts +5 -3
  32. package/dist/locales/file-uploader/fr.js +162 -0
  33. package/{locales → dist/locales}/file-uploader/he.d.ts +5 -3
  34. package/dist/locales/file-uploader/he.js +162 -0
  35. package/{locales → dist/locales}/file-uploader/hy.d.ts +5 -3
  36. package/dist/locales/file-uploader/hy.js +160 -0
  37. package/{locales → dist/locales}/file-uploader/is.d.ts +5 -3
  38. package/dist/locales/file-uploader/is.js +160 -0
  39. package/{locales → dist/locales}/file-uploader/it.d.ts +5 -3
  40. package/dist/locales/file-uploader/it.js +162 -0
  41. package/{locales → dist/locales}/file-uploader/ja.d.ts +5 -3
  42. package/dist/locales/file-uploader/ja.js +160 -0
  43. package/{locales → dist/locales}/file-uploader/ka.d.ts +5 -3
  44. package/dist/locales/file-uploader/ka.js +160 -0
  45. package/{locales → dist/locales}/file-uploader/kk.d.ts +5 -3
  46. package/dist/locales/file-uploader/kk.js +160 -0
  47. package/{locales → dist/locales}/file-uploader/ko.d.ts +5 -3
  48. package/dist/locales/file-uploader/ko.js +160 -0
  49. package/{locales → dist/locales}/file-uploader/lv.d.ts +5 -3
  50. package/dist/locales/file-uploader/lv.js +162 -0
  51. package/{locales → dist/locales}/file-uploader/nb.d.ts +5 -3
  52. package/dist/locales/file-uploader/nb.js +160 -0
  53. package/{locales → dist/locales}/file-uploader/nl.d.ts +5 -3
  54. package/dist/locales/file-uploader/nl.js +160 -0
  55. package/{locales → dist/locales}/file-uploader/pl.d.ts +5 -3
  56. package/dist/locales/file-uploader/pl.js +164 -0
  57. package/{locales → dist/locales}/file-uploader/pt.d.ts +5 -3
  58. package/dist/locales/file-uploader/pt.js +162 -0
  59. package/{locales → dist/locales}/file-uploader/ro.d.ts +5 -3
  60. package/dist/locales/file-uploader/ro.js +162 -0
  61. package/{locales → dist/locales}/file-uploader/ru.d.ts +5 -3
  62. package/dist/locales/file-uploader/ru.js +164 -0
  63. package/{locales → dist/locales}/file-uploader/sk.d.ts +5 -3
  64. package/dist/locales/file-uploader/sk.js +164 -0
  65. package/{locales → dist/locales}/file-uploader/sr.d.ts +5 -3
  66. package/dist/locales/file-uploader/sr.js +162 -0
  67. package/{locales → dist/locales}/file-uploader/sv.d.ts +5 -3
  68. package/dist/locales/file-uploader/sv.js +160 -0
  69. package/{locales → dist/locales}/file-uploader/tr.d.ts +5 -3
  70. package/dist/locales/file-uploader/tr.js +160 -0
  71. package/{locales → dist/locales}/file-uploader/uk.d.ts +5 -3
  72. package/dist/locales/file-uploader/uk.js +164 -0
  73. package/{locales → dist/locales}/file-uploader/vi.d.ts +5 -3
  74. package/dist/locales/file-uploader/vi.js +160 -0
  75. package/{locales → dist/locales}/file-uploader/zh-TW.d.ts +5 -3
  76. package/dist/locales/file-uploader/zh-TW.js +160 -0
  77. package/{locales → dist/locales}/file-uploader/zh.d.ts +5 -3
  78. package/dist/locales/file-uploader/zh.js +160 -0
  79. package/package.json +110 -63
  80. package/types/jsx.d.ts +10 -10
  81. package/web/file-uploader.iife.min.d.ts +2057 -0
  82. package/web/file-uploader.iife.min.js +4 -4
  83. package/web/file-uploader.min.d.ts +2057 -0
  84. package/web/file-uploader.min.js +4 -4
  85. package/web/uc-basic.min.css +26 -1
  86. package/web/uc-cloud-image-editor.min.css +26 -1
  87. package/web/uc-cloud-image-editor.min.d.ts +1544 -0
  88. package/web/uc-cloud-image-editor.min.js +4 -4
  89. package/web/uc-file-uploader-inline.min.css +26 -1
  90. package/web/uc-file-uploader-inline.min.d.ts +2057 -0
  91. package/web/uc-file-uploader-inline.min.js +4 -4
  92. package/web/uc-file-uploader-minimal.min.css +26 -1
  93. package/web/uc-file-uploader-minimal.min.d.ts +2057 -0
  94. package/web/uc-file-uploader-minimal.min.js +4 -4
  95. package/web/uc-file-uploader-regular.min.css +26 -1
  96. package/web/uc-file-uploader-regular.min.d.ts +2057 -0
  97. package/web/uc-file-uploader-regular.min.js +4 -4
  98. package/{blocks/Img/ImgBase.d.ts → web/uc-img.min.d.ts} +38 -3
  99. package/web/uc-img.min.js +3 -3
  100. package/abstract/ActivityBlock.d.ts +0 -79
  101. package/abstract/ActivityBlock.d.ts.map +0 -1
  102. package/abstract/ActivityBlock.js +0 -216
  103. package/abstract/Block.d.ts +0 -113
  104. package/abstract/Block.d.ts.map +0 -1
  105. package/abstract/Block.js +0 -410
  106. package/abstract/CTX.d.ts +0 -30
  107. package/abstract/CTX.d.ts.map +0 -1
  108. package/abstract/CTX.js +0 -39
  109. package/abstract/SolutionBlock.d.ts +0 -22
  110. package/abstract/SolutionBlock.d.ts.map +0 -1
  111. package/abstract/SolutionBlock.js +0 -23
  112. package/abstract/TypedCollection.d.ts +0 -127
  113. package/abstract/TypedCollection.d.ts.map +0 -1
  114. package/abstract/TypedCollection.js +0 -265
  115. package/abstract/TypedData.d.ts +0 -93
  116. package/abstract/TypedData.d.ts.map +0 -1
  117. package/abstract/TypedData.js +0 -134
  118. package/abstract/UploaderBlock.d.ts +0 -121
  119. package/abstract/UploaderBlock.d.ts.map +0 -1
  120. package/abstract/UploaderBlock.js +0 -511
  121. package/abstract/UploaderPublicApi.d.ts +0 -100
  122. package/abstract/UploaderPublicApi.d.ts.map +0 -1
  123. package/abstract/UploaderPublicApi.js +0 -399
  124. package/abstract/buildOutputCollectionState.d.ts +0 -8
  125. package/abstract/buildOutputCollectionState.d.ts.map +0 -1
  126. package/abstract/buildOutputCollectionState.js +0 -136
  127. package/abstract/defineComponents.d.ts +0 -5
  128. package/abstract/defineComponents.d.ts.map +0 -1
  129. package/abstract/defineComponents.js +0 -21
  130. package/abstract/l10nProcessor.d.ts +0 -7
  131. package/abstract/l10nProcessor.d.ts.map +0 -1
  132. package/abstract/l10nProcessor.js +0 -93
  133. package/abstract/loadFileUploaderFrom.d.ts +0 -8
  134. package/abstract/loadFileUploaderFrom.d.ts.map +0 -1
  135. package/abstract/loadFileUploaderFrom.js +0 -34
  136. package/abstract/localeRegistry.d.ts +0 -5
  137. package/abstract/localeRegistry.d.ts.map +0 -1
  138. package/abstract/localeRegistry.js +0 -63
  139. package/abstract/managers/LocaleManager.d.ts +0 -38
  140. package/abstract/managers/LocaleManager.d.ts.map +0 -1
  141. package/abstract/managers/LocaleManager.js +0 -130
  142. package/abstract/managers/ModalManager.d.ts +0 -122
  143. package/abstract/managers/ModalManager.d.ts.map +0 -1
  144. package/abstract/managers/ModalManager.js +0 -235
  145. package/abstract/managers/SecureUploadsManager.d.ts +0 -22
  146. package/abstract/managers/SecureUploadsManager.d.ts.map +0 -1
  147. package/abstract/managers/SecureUploadsManager.js +0 -91
  148. package/abstract/managers/TelemetryManager.d.ts +0 -71
  149. package/abstract/managers/TelemetryManager.d.ts.map +0 -1
  150. package/abstract/managers/TelemetryManager.js +0 -218
  151. package/abstract/managers/ValidationManager.d.ts +0 -150
  152. package/abstract/managers/ValidationManager.d.ts.map +0 -1
  153. package/abstract/managers/ValidationManager.js +0 -164
  154. package/abstract/managers/a11y.d.ts +0 -20
  155. package/abstract/managers/a11y.d.ts.map +0 -1
  156. package/abstract/managers/a11y.js +0 -118
  157. package/abstract/sharedConfigKey.d.ts +0 -2
  158. package/abstract/sharedConfigKey.d.ts.map +0 -1
  159. package/abstract/sharedConfigKey.js +0 -8
  160. package/abstract/testModeProcessor.d.ts +0 -7
  161. package/abstract/testModeProcessor.d.ts.map +0 -1
  162. package/abstract/testModeProcessor.js +0 -39
  163. package/abstract/uploadEntrySchema.d.ts +0 -126
  164. package/abstract/uploadEntrySchema.d.ts.map +0 -1
  165. package/abstract/uploadEntrySchema.js +0 -124
  166. package/blocks/ActivityHeader/ActivityHeader.d.ts +0 -4
  167. package/blocks/ActivityHeader/ActivityHeader.d.ts.map +0 -1
  168. package/blocks/ActivityHeader/ActivityHeader.js +0 -3
  169. package/blocks/ActivityHeader/activity-header.css +0 -14
  170. package/blocks/CameraSource/CameraSource.d.ts +0 -176
  171. package/blocks/CameraSource/CameraSource.d.ts.map +0 -1
  172. package/blocks/CameraSource/CameraSource.js +0 -929
  173. package/blocks/CameraSource/calcCameraModes.d.ts +0 -5
  174. package/blocks/CameraSource/calcCameraModes.d.ts.map +0 -1
  175. package/blocks/CameraSource/calcCameraModes.js +0 -11
  176. package/blocks/CameraSource/camera-source.css +0 -183
  177. package/blocks/CameraSource/constants.d.ts +0 -16
  178. package/blocks/CameraSource/constants.d.ts.map +0 -1
  179. package/blocks/CameraSource/constants.js +0 -19
  180. package/blocks/CloudImageEditor/index.css +0 -1
  181. package/blocks/CloudImageEditor/index.d.ts +0 -2
  182. package/blocks/CloudImageEditor/index.d.ts.map +0 -1
  183. package/blocks/CloudImageEditor/index.js +0 -1
  184. package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts +0 -59
  185. package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +0 -1
  186. package/blocks/CloudImageEditor/src/CloudImageEditorBlock.js +0 -243
  187. package/blocks/CloudImageEditor/src/CropFrame.d.ts +0 -158
  188. package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +0 -1
  189. package/blocks/CloudImageEditor/src/CropFrame.js +0 -569
  190. package/blocks/CloudImageEditor/src/EditorAspectRatioButtonControl.d.ts +0 -14
  191. package/blocks/CloudImageEditor/src/EditorAspectRatioButtonControl.d.ts.map +0 -1
  192. package/blocks/CloudImageEditor/src/EditorAspectRatioButtonControl.js +0 -140
  193. package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts +0 -10
  194. package/blocks/CloudImageEditor/src/EditorButtonControl.d.ts.map +0 -1
  195. package/blocks/CloudImageEditor/src/EditorButtonControl.js +0 -45
  196. package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts +0 -6
  197. package/blocks/CloudImageEditor/src/EditorCropButtonControl.d.ts.map +0 -1
  198. package/blocks/CloudImageEditor/src/EditorCropButtonControl.js +0 -52
  199. package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts +0 -18
  200. package/blocks/CloudImageEditor/src/EditorFilterControl.d.ts.map +0 -1
  201. package/blocks/CloudImageEditor/src/EditorFilterControl.js +0 -177
  202. package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +0 -106
  203. package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts.map +0 -1
  204. package/blocks/CloudImageEditor/src/EditorImageCropper.js +0 -551
  205. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +0 -132
  206. package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +0 -1
  207. package/blocks/CloudImageEditor/src/EditorImageFader.js +0 -456
  208. package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts +0 -9
  209. package/blocks/CloudImageEditor/src/EditorOperationControl.d.ts.map +0 -1
  210. package/blocks/CloudImageEditor/src/EditorOperationControl.js +0 -50
  211. package/blocks/CloudImageEditor/src/EditorScroller.d.ts +0 -7
  212. package/blocks/CloudImageEditor/src/EditorScroller.d.ts.map +0 -1
  213. package/blocks/CloudImageEditor/src/EditorScroller.js +0 -33
  214. package/blocks/CloudImageEditor/src/EditorSlider.d.ts +0 -24
  215. package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +0 -1
  216. package/blocks/CloudImageEditor/src/EditorSlider.js +0 -118
  217. package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +0 -124
  218. package/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +0 -1
  219. package/blocks/CloudImageEditor/src/EditorToolbar.js +0 -534
  220. package/blocks/CloudImageEditor/src/crop-utils.d.ts +0 -123
  221. package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +0 -1
  222. package/blocks/CloudImageEditor/src/crop-utils.js +0 -729
  223. package/blocks/CloudImageEditor/src/cropper-constants.d.ts +0 -11
  224. package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +0 -1
  225. package/blocks/CloudImageEditor/src/cropper-constants.js +0 -11
  226. package/blocks/CloudImageEditor/src/css/common.css +0 -1259
  227. package/blocks/CloudImageEditor/src/css/icons.css +0 -12
  228. package/blocks/CloudImageEditor/src/css/index.css +0 -2
  229. package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts +0 -21
  230. package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +0 -1
  231. package/blocks/CloudImageEditor/src/elements/button/BtnUi.js +0 -99
  232. package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts +0 -11
  233. package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.d.ts.map +0 -1
  234. package/blocks/CloudImageEditor/src/elements/line-loader/LineLoaderUi.js +0 -52
  235. package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts +0 -17
  236. package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.d.ts.map +0 -1
  237. package/blocks/CloudImageEditor/src/elements/presence-toggle/PresenceToggle.js +0 -71
  238. package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts +0 -16
  239. package/blocks/CloudImageEditor/src/elements/slider/SliderUi.d.ts.map +0 -1
  240. package/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +0 -179
  241. package/blocks/CloudImageEditor/src/index.d.ts +0 -16
  242. package/blocks/CloudImageEditor/src/index.d.ts.map +0 -1
  243. package/blocks/CloudImageEditor/src/index.js +0 -15
  244. package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts +0 -15
  245. package/blocks/CloudImageEditor/src/lib/FocusVisible.d.ts.map +0 -1
  246. package/blocks/CloudImageEditor/src/lib/FocusVisible.js +0 -33
  247. package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +0 -10
  248. package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +0 -1
  249. package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.js +0 -256
  250. package/blocks/CloudImageEditor/src/lib/classNames.d.ts +0 -3
  251. package/blocks/CloudImageEditor/src/lib/classNames.d.ts.map +0 -1
  252. package/blocks/CloudImageEditor/src/lib/classNames.js +0 -34
  253. package/blocks/CloudImageEditor/src/lib/linspace.d.ts +0 -8
  254. package/blocks/CloudImageEditor/src/lib/linspace.d.ts.map +0 -1
  255. package/blocks/CloudImageEditor/src/lib/linspace.js +0 -14
  256. package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +0 -3
  257. package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts.map +0 -1
  258. package/blocks/CloudImageEditor/src/lib/parseCropPreset.js +0 -80
  259. package/blocks/CloudImageEditor/src/lib/parseCropPreset.test.d.ts +0 -2
  260. package/blocks/CloudImageEditor/src/lib/parseCropPreset.test.d.ts.map +0 -1
  261. package/blocks/CloudImageEditor/src/lib/parseCropPreset.test.js +0 -35
  262. package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts +0 -2
  263. package/blocks/CloudImageEditor/src/lib/parseTabs.d.ts.map +0 -1
  264. package/blocks/CloudImageEditor/src/lib/parseTabs.js +0 -14
  265. package/blocks/CloudImageEditor/src/lib/pick.d.ts +0 -7
  266. package/blocks/CloudImageEditor/src/lib/pick.d.ts.map +0 -1
  267. package/blocks/CloudImageEditor/src/lib/pick.js +0 -15
  268. package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +0 -14
  269. package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +0 -1
  270. package/blocks/CloudImageEditor/src/lib/transformationUtils.js +0 -167
  271. package/blocks/CloudImageEditor/src/state.d.ts +0 -38
  272. package/blocks/CloudImageEditor/src/state.d.ts.map +0 -1
  273. package/blocks/CloudImageEditor/src/state.js +0 -92
  274. package/blocks/CloudImageEditor/src/svg-sprite.d.ts +0 -3
  275. package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +0 -1
  276. package/blocks/CloudImageEditor/src/svg-sprite.js +0 -1
  277. package/blocks/CloudImageEditor/src/template.d.ts +0 -2
  278. package/blocks/CloudImageEditor/src/template.d.ts.map +0 -1
  279. package/blocks/CloudImageEditor/src/template.js +0 -36
  280. package/blocks/CloudImageEditor/src/toolbar-constants.d.ts +0 -59
  281. package/blocks/CloudImageEditor/src/toolbar-constants.d.ts.map +0 -1
  282. package/blocks/CloudImageEditor/src/toolbar-constants.js +0 -116
  283. package/blocks/CloudImageEditor/src/types.d.ts +0 -66
  284. package/blocks/CloudImageEditor/src/types.d.ts.map +0 -1
  285. package/blocks/CloudImageEditor/src/types.js +0 -80
  286. package/blocks/CloudImageEditor/src/util.d.ts +0 -2
  287. package/blocks/CloudImageEditor/src/util.d.ts.map +0 -1
  288. package/blocks/CloudImageEditor/src/util.js +0 -21
  289. package/blocks/CloudImageEditor/src/utils/parseFilterValue.d.ts +0 -11
  290. package/blocks/CloudImageEditor/src/utils/parseFilterValue.d.ts.map +0 -1
  291. package/blocks/CloudImageEditor/src/utils/parseFilterValue.js +0 -11
  292. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +0 -29
  293. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +0 -1
  294. package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +0 -128
  295. package/blocks/CloudImageEditorActivity/index.css +0 -13
  296. package/blocks/CloudImageEditorActivity/test.d.ts +0 -2
  297. package/blocks/CloudImageEditorActivity/test.d.ts.map +0 -1
  298. package/blocks/CloudImageEditorActivity/test.js +0 -9
  299. package/blocks/Config/Config.d.ts +0 -60
  300. package/blocks/Config/Config.d.ts.map +0 -1
  301. package/blocks/Config/Config.js +0 -263
  302. package/blocks/Config/assertions.d.ts +0 -5
  303. package/blocks/Config/assertions.d.ts.map +0 -1
  304. package/blocks/Config/assertions.js +0 -37
  305. package/blocks/Config/config.css +0 -3
  306. package/blocks/Config/initialConfig.d.ts +0 -7
  307. package/blocks/Config/initialConfig.d.ts.map +0 -1
  308. package/blocks/Config/initialConfig.js +0 -91
  309. package/blocks/Config/normalizeConfigValue.d.ts +0 -2
  310. package/blocks/Config/normalizeConfigValue.d.ts.map +0 -1
  311. package/blocks/Config/normalizeConfigValue.js +0 -127
  312. package/blocks/Config/side-effects.d.ts +0 -11
  313. package/blocks/Config/side-effects.d.ts.map +0 -1
  314. package/blocks/Config/side-effects.js +0 -126
  315. package/blocks/Config/validatorsType.d.ts +0 -37
  316. package/blocks/Config/validatorsType.d.ts.map +0 -1
  317. package/blocks/Config/validatorsType.js +0 -134
  318. package/blocks/Copyright/Copyright.d.ts +0 -4
  319. package/blocks/Copyright/Copyright.d.ts.map +0 -1
  320. package/blocks/Copyright/Copyright.js +0 -24
  321. package/blocks/Copyright/copyright.css +0 -32
  322. package/blocks/DropArea/DropArea.d.ts +0 -49
  323. package/blocks/DropArea/DropArea.d.ts.map +0 -1
  324. package/blocks/DropArea/DropArea.js +0 -292
  325. package/blocks/DropArea/addDropzone.d.ts +0 -21
  326. package/blocks/DropArea/addDropzone.d.ts.map +0 -1
  327. package/blocks/DropArea/addDropzone.js +0 -137
  328. package/blocks/DropArea/drop-area.css +0 -201
  329. package/blocks/DropArea/getDropItems.d.ts +0 -16
  330. package/blocks/DropArea/getDropItems.d.ts.map +0 -1
  331. package/blocks/DropArea/getDropItems.js +0 -167
  332. package/blocks/ExternalSource/ExternalSource.d.ts +0 -82
  333. package/blocks/ExternalSource/ExternalSource.d.ts.map +0 -1
  334. package/blocks/ExternalSource/ExternalSource.js +0 -320
  335. package/blocks/ExternalSource/MessageBridge.d.ts +0 -20
  336. package/blocks/ExternalSource/MessageBridge.d.ts.map +0 -1
  337. package/blocks/ExternalSource/MessageBridge.js +0 -73
  338. package/blocks/ExternalSource/buildThemeDefinition.d.ts +0 -3
  339. package/blocks/ExternalSource/buildThemeDefinition.d.ts.map +0 -1
  340. package/blocks/ExternalSource/buildThemeDefinition.js +0 -47
  341. package/blocks/ExternalSource/external-source.css +0 -94
  342. package/blocks/ExternalSource/query-string.d.ts +0 -8
  343. package/blocks/ExternalSource/query-string.d.ts.map +0 -1
  344. package/blocks/ExternalSource/query-string.js +0 -14
  345. package/blocks/ExternalSource/types.d.ts +0 -106
  346. package/blocks/ExternalSource/types.d.ts.map +0 -1
  347. package/blocks/ExternalSource/types.js +0 -133
  348. package/blocks/FileItem/FileItem.d.ts +0 -76
  349. package/blocks/FileItem/FileItem.d.ts.map +0 -1
  350. package/blocks/FileItem/FileItem.js +0 -461
  351. package/blocks/FileItem/FileItemConfig.d.ts +0 -28
  352. package/blocks/FileItem/FileItemConfig.d.ts.map +0 -1
  353. package/blocks/FileItem/FileItemConfig.js +0 -74
  354. package/blocks/FileItem/file-item.css +0 -243
  355. package/blocks/FormInput/FormInput.d.ts +0 -7
  356. package/blocks/FormInput/FormInput.d.ts.map +0 -1
  357. package/blocks/FormInput/FormInput.js +0 -92
  358. package/blocks/Icon/Icon.d.ts +0 -11
  359. package/blocks/Icon/Icon.d.ts.map +0 -1
  360. package/blocks/Icon/Icon.js +0 -43
  361. package/blocks/Icon/icon.css +0 -12
  362. package/blocks/Img/Img.d.ts +0 -4
  363. package/blocks/Img/Img.d.ts.map +0 -1
  364. package/blocks/Img/Img.js +0 -21
  365. package/blocks/Img/ImgBase.d.ts.map +0 -1
  366. package/blocks/Img/ImgBase.js +0 -408
  367. package/blocks/Img/ImgConfig.d.ts +0 -31
  368. package/blocks/Img/ImgConfig.d.ts.map +0 -1
  369. package/blocks/Img/ImgConfig.js +0 -102
  370. package/blocks/Img/configurations.d.ts +0 -12
  371. package/blocks/Img/configurations.d.ts.map +0 -1
  372. package/blocks/Img/configurations.js +0 -14
  373. package/blocks/Img/props-map.d.ts +0 -29
  374. package/blocks/Img/props-map.d.ts.map +0 -1
  375. package/blocks/Img/props-map.js +0 -34
  376. package/blocks/Img/test.css +0 -16
  377. package/blocks/Img/utils/parseObjectToString.d.ts +0 -2
  378. package/blocks/Img/utils/parseObjectToString.d.ts.map +0 -1
  379. package/blocks/Img/utils/parseObjectToString.js +0 -13
  380. package/blocks/Modal/Modal.d.ts +0 -43
  381. package/blocks/Modal/Modal.d.ts.map +0 -1
  382. package/blocks/Modal/Modal.js +0 -158
  383. package/blocks/Modal/modal.css +0 -45
  384. package/blocks/ProgressBar/ProgressBar.d.ts +0 -17
  385. package/blocks/ProgressBar/ProgressBar.d.ts.map +0 -1
  386. package/blocks/ProgressBar/ProgressBar.js +0 -62
  387. package/blocks/ProgressBar/progress-bar.css +0 -62
  388. package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts +0 -8
  389. package/blocks/ProgressBarCommon/ProgressBarCommon.d.ts.map +0 -1
  390. package/blocks/ProgressBarCommon/ProgressBarCommon.js +0 -44
  391. package/blocks/ProgressBarCommon/progress-bar-common.css +0 -16
  392. package/blocks/Range/Range.d.ts +0 -16
  393. package/blocks/Range/Range.d.ts.map +0 -1
  394. package/blocks/Range/Range.js +0 -44
  395. package/blocks/Range/range.css +0 -65
  396. package/blocks/Select/Select.d.ts +0 -9
  397. package/blocks/Select/Select.d.ts.map +0 -1
  398. package/blocks/Select/Select.js +0 -35
  399. package/blocks/Select/select.css +0 -22
  400. package/blocks/SimpleBtn/SimpleBtn.d.ts +0 -25
  401. package/blocks/SimpleBtn/SimpleBtn.d.ts.map +0 -1
  402. package/blocks/SimpleBtn/SimpleBtn.js +0 -54
  403. package/blocks/SimpleBtn/simple-btn.css +0 -64
  404. package/blocks/SourceBtn/SourceBtn.d.ts +0 -57
  405. package/blocks/SourceBtn/SourceBtn.d.ts.map +0 -1
  406. package/blocks/SourceBtn/SourceBtn.js +0 -172
  407. package/blocks/SourceBtn/source-btn.css +0 -53
  408. package/blocks/SourceList/SourceList.d.ts +0 -4
  409. package/blocks/SourceList/SourceList.d.ts.map +0 -1
  410. package/blocks/SourceList/SourceList.js +0 -51
  411. package/blocks/Spinner/Spinner.d.ts +0 -8
  412. package/blocks/Spinner/Spinner.d.ts.map +0 -1
  413. package/blocks/Spinner/Spinner.js +0 -5
  414. package/blocks/Spinner/spinner.css +0 -18
  415. package/blocks/StartFrom/StartFrom.d.ts +0 -7
  416. package/blocks/StartFrom/StartFrom.d.ts.map +0 -1
  417. package/blocks/StartFrom/StartFrom.js +0 -14
  418. package/blocks/StartFrom/start-from.css +0 -28
  419. package/blocks/Thumb/Thumb.d.ts +0 -51
  420. package/blocks/Thumb/Thumb.d.ts.map +0 -1
  421. package/blocks/Thumb/Thumb.js +0 -235
  422. package/blocks/Thumb/thumb.css +0 -4
  423. package/blocks/UploadCtxProvider/EventEmitter.d.ts +0 -125
  424. package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +0 -1
  425. package/blocks/UploadCtxProvider/EventEmitter.js +0 -144
  426. package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +0 -35
  427. package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +0 -1
  428. package/blocks/UploadCtxProvider/UploadCtxProvider.js +0 -46
  429. package/blocks/UploadList/UploadList.d.ts +0 -60
  430. package/blocks/UploadList/UploadList.d.ts.map +0 -1
  431. package/blocks/UploadList/UploadList.js +0 -263
  432. package/blocks/UploadList/upload-list.css +0 -88
  433. package/blocks/UrlSource/UrlSource.d.ts +0 -9
  434. package/blocks/UrlSource/UrlSource.d.ts.map +0 -1
  435. package/blocks/UrlSource/UrlSource.js +0 -69
  436. package/blocks/UrlSource/url-source.css +0 -16
  437. package/blocks/svg-backgrounds/svg-backgrounds.d.ts +0 -17
  438. package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +0 -1
  439. package/blocks/svg-backgrounds/svg-backgrounds.js +0 -45
  440. package/blocks/themes/uc-basic/common.css +0 -129
  441. package/blocks/themes/uc-basic/config.css +0 -4
  442. package/blocks/themes/uc-basic/index.css +0 -37
  443. package/blocks/themes/uc-basic/post-reset.css +0 -3
  444. package/blocks/themes/uc-basic/svg-sprite.d.ts +0 -3
  445. package/blocks/themes/uc-basic/svg-sprite.d.ts.map +0 -1
  446. package/blocks/themes/uc-basic/svg-sprite.js +0 -1
  447. package/blocks/themes/uc-basic/theme.css +0 -291
  448. package/blocks/utils/UploadSource.d.ts +0 -39
  449. package/blocks/utils/UploadSource.d.ts.map +0 -1
  450. package/blocks/utils/UploadSource.js +0 -33
  451. package/blocks/utils/abilities.d.ts +0 -2
  452. package/blocks/utils/abilities.d.ts.map +0 -1
  453. package/blocks/utils/abilities.js +0 -3
  454. package/blocks/utils/comma-separated.d.ts +0 -3
  455. package/blocks/utils/comma-separated.d.ts.map +0 -1
  456. package/blocks/utils/comma-separated.js +0 -22
  457. package/blocks/utils/debounce.d.ts +0 -12
  458. package/blocks/utils/debounce.d.ts.map +0 -1
  459. package/blocks/utils/debounce.js +0 -22
  460. package/blocks/utils/preloadImage.d.ts +0 -11
  461. package/blocks/utils/preloadImage.d.ts.map +0 -1
  462. package/blocks/utils/preloadImage.js +0 -38
  463. package/blocks/utils/resizeImage.d.ts +0 -6
  464. package/blocks/utils/resizeImage.d.ts.map +0 -1
  465. package/blocks/utils/resizeImage.js +0 -40
  466. package/blocks/utils/throttle.d.ts +0 -6
  467. package/blocks/utils/throttle.d.ts.map +0 -1
  468. package/blocks/utils/throttle.js +0 -45
  469. package/blocks/utils/userAgent.d.ts +0 -6
  470. package/blocks/utils/userAgent.d.ts.map +0 -1
  471. package/blocks/utils/userAgent.js +0 -14
  472. package/env.d.ts +0 -4
  473. package/env.d.ts.map +0 -1
  474. package/env.js +0 -3
  475. package/index.d.ts +0 -43
  476. package/index.d.ts.map +0 -1
  477. package/index.js +0 -55
  478. package/index.ssr.d.ts +0 -1111
  479. package/index.ssr.d.ts.map +0 -1
  480. package/locales/file-uploader/ar.d.ts.map +0 -1
  481. package/locales/file-uploader/ar.js +0 -137
  482. package/locales/file-uploader/az.d.ts.map +0 -1
  483. package/locales/file-uploader/az.js +0 -130
  484. package/locales/file-uploader/ca.d.ts.map +0 -1
  485. package/locales/file-uploader/ca.js +0 -134
  486. package/locales/file-uploader/cs.d.ts.map +0 -1
  487. package/locales/file-uploader/cs.js +0 -136
  488. package/locales/file-uploader/da.d.ts.map +0 -1
  489. package/locales/file-uploader/da.js +0 -132
  490. package/locales/file-uploader/de.d.ts.map +0 -1
  491. package/locales/file-uploader/de.js +0 -133
  492. package/locales/file-uploader/el.d.ts.map +0 -1
  493. package/locales/file-uploader/el.js +0 -133
  494. package/locales/file-uploader/en.d.ts.map +0 -1
  495. package/locales/file-uploader/en.js +0 -129
  496. package/locales/file-uploader/es.d.ts.map +0 -1
  497. package/locales/file-uploader/es.js +0 -134
  498. package/locales/file-uploader/et.d.ts.map +0 -1
  499. package/locales/file-uploader/et.js +0 -131
  500. package/locales/file-uploader/fi.d.ts.map +0 -1
  501. package/locales/file-uploader/fi.js +0 -132
  502. package/locales/file-uploader/fr.d.ts.map +0 -1
  503. package/locales/file-uploader/fr.js +0 -134
  504. package/locales/file-uploader/he.d.ts.map +0 -1
  505. package/locales/file-uploader/he.js +0 -133
  506. package/locales/file-uploader/hy.d.ts.map +0 -1
  507. package/locales/file-uploader/hy.js +0 -130
  508. package/locales/file-uploader/is.d.ts.map +0 -1
  509. package/locales/file-uploader/is.js +0 -131
  510. package/locales/file-uploader/it.d.ts.map +0 -1
  511. package/locales/file-uploader/it.js +0 -134
  512. package/locales/file-uploader/ja.d.ts.map +0 -1
  513. package/locales/file-uploader/ja.js +0 -131
  514. package/locales/file-uploader/ka.d.ts.map +0 -1
  515. package/locales/file-uploader/ka.js +0 -131
  516. package/locales/file-uploader/kk.d.ts.map +0 -1
  517. package/locales/file-uploader/kk.js +0 -131
  518. package/locales/file-uploader/ko.d.ts.map +0 -1
  519. package/locales/file-uploader/ko.js +0 -130
  520. package/locales/file-uploader/lv.d.ts.map +0 -1
  521. package/locales/file-uploader/lv.js +0 -133
  522. package/locales/file-uploader/nb.d.ts.map +0 -1
  523. package/locales/file-uploader/nb.js +0 -131
  524. package/locales/file-uploader/nl.d.ts.map +0 -1
  525. package/locales/file-uploader/nl.js +0 -132
  526. package/locales/file-uploader/pl.d.ts.map +0 -1
  527. package/locales/file-uploader/pl.js +0 -135
  528. package/locales/file-uploader/pt.d.ts.map +0 -1
  529. package/locales/file-uploader/pt.js +0 -134
  530. package/locales/file-uploader/ro.d.ts.map +0 -1
  531. package/locales/file-uploader/ro.js +0 -134
  532. package/locales/file-uploader/ru.d.ts.map +0 -1
  533. package/locales/file-uploader/ru.js +0 -133
  534. package/locales/file-uploader/sk.d.ts.map +0 -1
  535. package/locales/file-uploader/sk.js +0 -135
  536. package/locales/file-uploader/sr.d.ts.map +0 -1
  537. package/locales/file-uploader/sr.js +0 -133
  538. package/locales/file-uploader/sv.d.ts.map +0 -1
  539. package/locales/file-uploader/sv.js +0 -131
  540. package/locales/file-uploader/tr.d.ts.map +0 -1
  541. package/locales/file-uploader/tr.js +0 -131
  542. package/locales/file-uploader/uk.d.ts.map +0 -1
  543. package/locales/file-uploader/uk.js +0 -135
  544. package/locales/file-uploader/vi.d.ts.map +0 -1
  545. package/locales/file-uploader/vi.js +0 -131
  546. package/locales/file-uploader/zh-TW.d.ts.map +0 -1
  547. package/locales/file-uploader/zh-TW.js +0 -131
  548. package/locales/file-uploader/zh.d.ts.map +0 -1
  549. package/locales/file-uploader/zh.js +0 -129
  550. package/solutions/adaptive-image/index.d.ts +0 -3
  551. package/solutions/adaptive-image/index.d.ts.map +0 -1
  552. package/solutions/adaptive-image/index.js +0 -5
  553. package/solutions/cloud-image-editor/CloudImageEditor.d.ts +0 -39
  554. package/solutions/cloud-image-editor/CloudImageEditor.d.ts.map +0 -1
  555. package/solutions/cloud-image-editor/CloudImageEditor.js +0 -24
  556. package/solutions/cloud-image-editor/index.css +0 -2
  557. package/solutions/cloud-image-editor/index.d.ts +0 -6
  558. package/solutions/cloud-image-editor/index.d.ts.map +0 -1
  559. package/solutions/cloud-image-editor/index.js +0 -11
  560. package/solutions/file-uploader/inline/FileUploaderInline.d.ts +0 -27
  561. package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +0 -1
  562. package/solutions/file-uploader/inline/FileUploaderInline.js +0 -80
  563. package/solutions/file-uploader/inline/index.css +0 -54
  564. package/solutions/file-uploader/inline/index.d.ts +0 -2
  565. package/solutions/file-uploader/inline/index.d.ts.map +0 -1
  566. package/solutions/file-uploader/inline/index.js +0 -1
  567. package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +0 -43
  568. package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +0 -1
  569. package/solutions/file-uploader/minimal/FileUploaderMinimal.js +0 -163
  570. package/solutions/file-uploader/minimal/index.css +0 -147
  571. package/solutions/file-uploader/minimal/index.d.ts +0 -2
  572. package/solutions/file-uploader/minimal/index.d.ts.map +0 -1
  573. package/solutions/file-uploader/minimal/index.js +0 -1
  574. package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +0 -24
  575. package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +0 -1
  576. package/solutions/file-uploader/regular/FileUploaderRegular.js +0 -69
  577. package/solutions/file-uploader/regular/index.css +0 -1
  578. package/solutions/file-uploader/regular/index.d.ts +0 -2
  579. package/solutions/file-uploader/regular/index.d.ts.map +0 -1
  580. package/solutions/file-uploader/regular/index.js +0 -1
  581. package/types/events.d.ts +0 -5
  582. package/types/events.js +0 -1
  583. package/types/exported.d.ts +0 -534
  584. package/types/exported.js +0 -1
  585. package/types/global.d.ts +0 -8
  586. package/types/https.d.ts +0 -1
  587. package/types/index.d.ts +0 -2
  588. package/types/index.js +0 -3
  589. package/utils/WindowHeightTracker.d.ts +0 -24
  590. package/utils/WindowHeightTracker.d.ts.map +0 -1
  591. package/utils/WindowHeightTracker.js +0 -51
  592. package/utils/browser-info.d.ts +0 -13
  593. package/utils/browser-info.d.ts.map +0 -1
  594. package/utils/browser-info.js +0 -22
  595. package/utils/browser-info.test.d.ts +0 -2
  596. package/utils/browser-info.test.d.ts.map +0 -1
  597. package/utils/browser-info.test.js +0 -109
  598. package/utils/cdn-utils.d.ts +0 -59
  599. package/utils/cdn-utils.d.ts.map +0 -1
  600. package/utils/cdn-utils.js +0 -199
  601. package/utils/cdn-utils.test.d.ts +0 -2
  602. package/utils/cdn-utils.test.d.ts.map +0 -1
  603. package/utils/cdn-utils.test.js +0 -227
  604. package/utils/delay.d.ts +0 -2
  605. package/utils/delay.d.ts.map +0 -1
  606. package/utils/delay.js +0 -4
  607. package/utils/fileTypes.d.ts +0 -12
  608. package/utils/fileTypes.d.ts.map +0 -1
  609. package/utils/fileTypes.js +0 -111
  610. package/utils/fileTypes.test.d.ts +0 -2
  611. package/utils/fileTypes.test.d.ts.map +0 -1
  612. package/utils/fileTypes.test.js +0 -89
  613. package/utils/get-top-level-origin.d.ts +0 -2
  614. package/utils/get-top-level-origin.d.ts.map +0 -1
  615. package/utils/get-top-level-origin.js +0 -11
  616. package/utils/getLocaleDirection.d.ts +0 -2
  617. package/utils/getLocaleDirection.d.ts.map +0 -1
  618. package/utils/getLocaleDirection.js +0 -18
  619. package/utils/getPluralForm.d.ts +0 -3
  620. package/utils/getPluralForm.d.ts.map +0 -1
  621. package/utils/getPluralForm.js +0 -13
  622. package/utils/getPluralForm.test.d.ts +0 -2
  623. package/utils/getPluralForm.test.d.ts.map +0 -1
  624. package/utils/getPluralForm.test.js +0 -16
  625. package/utils/ifRef.d.ts +0 -7
  626. package/utils/ifRef.d.ts.map +0 -1
  627. package/utils/ifRef.js +0 -9
  628. package/utils/isPromiseLike.d.ts +0 -2
  629. package/utils/isPromiseLike.d.ts.map +0 -1
  630. package/utils/isPromiseLike.js +0 -12
  631. package/utils/isPromiseLike.test.d.ts +0 -2
  632. package/utils/isPromiseLike.test.d.ts.map +0 -1
  633. package/utils/isPromiseLike.test.js +0 -20
  634. package/utils/isSecureTokenExpired.d.ts +0 -4
  635. package/utils/isSecureTokenExpired.d.ts.map +0 -1
  636. package/utils/isSecureTokenExpired.js +0 -17
  637. package/utils/isSecureTokenExpired.test.d.ts +0 -2
  638. package/utils/isSecureTokenExpired.test.d.ts.map +0 -1
  639. package/utils/isSecureTokenExpired.test.js +0 -33
  640. package/utils/memoize.d.ts +0 -2
  641. package/utils/memoize.d.ts.map +0 -1
  642. package/utils/memoize.js +0 -23
  643. package/utils/memoize.test.d.ts +0 -2
  644. package/utils/memoize.test.d.ts.map +0 -1
  645. package/utils/memoize.test.js +0 -38
  646. package/utils/mixinClass.d.ts +0 -10
  647. package/utils/mixinClass.d.ts.map +0 -1
  648. package/utils/mixinClass.js +0 -18
  649. package/utils/parseCdnUrl.d.ts +0 -9
  650. package/utils/parseCdnUrl.d.ts.map +0 -1
  651. package/utils/parseCdnUrl.js +0 -23
  652. package/utils/parseCdnUrl.test.d.ts +0 -2
  653. package/utils/parseCdnUrl.test.d.ts.map +0 -1
  654. package/utils/parseCdnUrl.test.js +0 -91
  655. package/utils/parseShrink.d.ts +0 -5
  656. package/utils/parseShrink.d.ts.map +0 -1
  657. package/utils/parseShrink.js +0 -34
  658. package/utils/parseShrink.test.d.ts +0 -2
  659. package/utils/parseShrink.test.d.ts.map +0 -1
  660. package/utils/parseShrink.test.js +0 -26
  661. package/utils/prettyBytes.d.ts +0 -11
  662. package/utils/prettyBytes.d.ts.map +0 -1
  663. package/utils/prettyBytes.js +0 -64
  664. package/utils/prettyBytes.test.d.ts +0 -2
  665. package/utils/prettyBytes.test.d.ts.map +0 -1
  666. package/utils/prettyBytes.test.js +0 -99
  667. package/utils/stringToArray.d.ts +0 -2
  668. package/utils/stringToArray.d.ts.map +0 -1
  669. package/utils/stringToArray.js +0 -11
  670. package/utils/stringToArray.test.d.ts +0 -2
  671. package/utils/stringToArray.test.d.ts.map +0 -1
  672. package/utils/stringToArray.test.js +0 -20
  673. package/utils/template-utils.d.ts +0 -40
  674. package/utils/template-utils.d.ts.map +0 -1
  675. package/utils/template-utils.js +0 -50
  676. package/utils/template-utils.test.d.ts +0 -2
  677. package/utils/template-utils.test.d.ts.map +0 -1
  678. package/utils/template-utils.test.js +0 -56
  679. package/utils/toKebabCase.d.ts +0 -3
  680. package/utils/toKebabCase.d.ts.map +0 -1
  681. package/utils/toKebabCase.js +0 -15
  682. package/utils/toKebabCase.test.d.ts +0 -2
  683. package/utils/toKebabCase.test.d.ts.map +0 -1
  684. package/utils/toKebabCase.test.js +0 -11
  685. package/utils/transparentPixelSrc.d.ts +0 -2
  686. package/utils/transparentPixelSrc.d.ts.map +0 -1
  687. package/utils/transparentPixelSrc.js +0 -2
  688. package/utils/uniqueArray.d.ts +0 -2
  689. package/utils/uniqueArray.d.ts.map +0 -1
  690. package/utils/uniqueArray.js +0 -8
  691. package/utils/uniqueArray.test.d.ts +0 -2
  692. package/utils/uniqueArray.test.d.ts.map +0 -1
  693. package/utils/uniqueArray.test.js +0 -8
  694. package/utils/validators/collection/index.d.ts +0 -3
  695. package/utils/validators/collection/index.d.ts.map +0 -1
  696. package/utils/validators/collection/index.js +0 -2
  697. package/utils/validators/collection/validateCollectionUploadError.d.ts +0 -3
  698. package/utils/validators/collection/validateCollectionUploadError.d.ts.map +0 -1
  699. package/utils/validators/collection/validateCollectionUploadError.js +0 -11
  700. package/utils/validators/collection/validateMultiple.d.ts +0 -3
  701. package/utils/validators/collection/validateMultiple.d.ts.map +0 -1
  702. package/utils/validators/collection/validateMultiple.js +0 -43
  703. package/utils/validators/file/index.d.ts +0 -5
  704. package/utils/validators/file/index.d.ts.map +0 -1
  705. package/utils/validators/file/index.js +0 -4
  706. package/utils/validators/file/validateFileType.d.ts +0 -3
  707. package/utils/validators/file/validateFileType.d.ts.map +0 -1
  708. package/utils/validators/file/validateFileType.js +0 -30
  709. package/utils/validators/file/validateIsImage.d.ts +0 -3
  710. package/utils/validators/file/validateIsImage.d.ts.map +0 -1
  711. package/utils/validators/file/validateIsImage.js +0 -25
  712. package/utils/validators/file/validateMaxSizeLimit.d.ts +0 -3
  713. package/utils/validators/file/validateMaxSizeLimit.d.ts.map +0 -1
  714. package/utils/validators/file/validateMaxSizeLimit.js +0 -15
  715. package/utils/validators/file/validateUploadError.d.ts +0 -3
  716. package/utils/validators/file/validateUploadError.d.ts.map +0 -1
  717. package/utils/validators/file/validateUploadError.js +0 -48
  718. package/utils/waitForAttribute.d.ts +0 -8
  719. package/utils/waitForAttribute.d.ts.map +0 -1
  720. package/utils/waitForAttribute.js +0 -43
  721. package/utils/waitForAttribute.test.d.ts +0 -2
  722. package/utils/waitForAttribute.test.d.ts.map +0 -1
  723. package/utils/waitForAttribute.test.js +0 -78
  724. package/utils/warnOnce.d.ts +0 -3
  725. package/utils/warnOnce.d.ts.map +0 -1
  726. package/utils/warnOnce.js +0 -11
  727. package/utils/wildcardRegexp.d.ts +0 -2
  728. package/utils/wildcardRegexp.d.ts.map +0 -1
  729. package/utils/wildcardRegexp.js +0 -17
  730. package/utils/wildcardRegexp.test.d.ts +0 -2
  731. package/utils/wildcardRegexp.test.d.ts.map +0 -1
  732. package/utils/wildcardRegexp.test.js +0 -19
@@ -1,511 +0,0 @@
1
- // @ts-check
2
- import { ActivityBlock } from './ActivityBlock.js';
3
-
4
- import { Data } from '@symbiotejs/symbiote';
5
- import { uploadFileGroup } from '@uploadcare/upload-client';
6
- import { calculateMaxCenteredCropFrame } from '../blocks/CloudImageEditor/src/crop-utils.js';
7
- import { parseCropPreset } from '../blocks/CloudImageEditor/src/lib/parseCropPreset.js';
8
- import { EventType } from '../blocks/UploadCtxProvider/EventEmitter.js';
9
- import { debounce } from '../blocks/utils/debounce.js';
10
- import { customUserAgent } from '../blocks/utils/userAgent.js';
11
- import { createCdnUrl, createCdnUrlModifiers } from '../utils/cdn-utils.js';
12
- import { uploaderBlockCtx } from './CTX.js';
13
- import { SecureUploadsManager } from './managers/SecureUploadsManager.js';
14
- import { TypedCollection } from './TypedCollection.js';
15
- import { UploaderPublicApi } from './UploaderPublicApi.js';
16
- import { ValidationManager } from './managers/ValidationManager.js';
17
- import { uploadEntrySchema } from './uploadEntrySchema.js';
18
- import { ExternalUploadSource, UploadSource } from '../blocks/utils/UploadSource.js';
19
-
20
- export class UploaderBlock extends ActivityBlock {
21
- /** @protected */
22
- couldBeCtxOwner = false;
23
-
24
- /** @private */
25
- isCtxOwner = false;
26
-
27
- init$ = uploaderBlockCtx(this);
28
-
29
- /** @private */
30
- get hasCtxOwner() {
31
- return this.hasBlockInCtx((block) => {
32
- if (block instanceof UploaderBlock) {
33
- return block.isCtxOwner && block.isConnected && block !== this;
34
- }
35
- return false;
36
- });
37
- }
38
-
39
- /** @protected */
40
- initCallback() {
41
- super.initCallback();
42
-
43
- if (!this.has('*uploadCollection')) {
44
- let uploadCollection = new TypedCollection({
45
- typedSchema: uploadEntrySchema,
46
- watchList: ['uploadProgress', 'uploadError', 'fileInfo', 'errors', 'cdnUrl', 'isUploading'],
47
- });
48
- this.add('*uploadCollection', uploadCollection);
49
- }
50
-
51
- if (!this.has('*publicApi')) {
52
- this.add('*publicApi', new UploaderPublicApi(this));
53
- }
54
-
55
- if (!this.has('*validationManager')) {
56
- this.add('*validationManager', new ValidationManager(this));
57
- }
58
-
59
- if (!this.hasCtxOwner && this.couldBeCtxOwner) {
60
- this._initCtxOwner();
61
- }
62
- }
63
-
64
- /**
65
- * @returns {ValidationManager}
66
- * @protected
67
- */
68
- get validationManager() {
69
- if (!this.has('*validationManager')) {
70
- throw new Error('Unexpected error: ValidationManager is not initialized');
71
- }
72
- return this.$['*validationManager'];
73
- }
74
-
75
- /** @returns {UploaderPublicApi} */
76
- get api() {
77
- if (!this.has('*publicApi')) {
78
- throw new Error('Unexpected error: UploaderPublicApi is not initialized');
79
- }
80
- return this.$['*publicApi'];
81
- }
82
-
83
- getAPI() {
84
- return this.api;
85
- }
86
-
87
- /** @returns {TypedCollection<typeof uploadEntrySchema>} */
88
- get uploadCollection() {
89
- if (!this.has('*uploadCollection')) {
90
- throw new Error('Unexpected error: TypedCollection is not initialized');
91
- }
92
- return this.$['*uploadCollection'];
93
- }
94
-
95
- /** @protected */
96
- destroyCtxCallback() {
97
- this.uploadCollection.destroy();
98
- this.$['*uploadCollection'] = null;
99
-
100
- super.destroyCtxCallback();
101
- }
102
-
103
- disconnectedCallback() {
104
- super.disconnectedCallback();
105
-
106
- if (this.isCtxOwner) {
107
- this._unobserveUploadCollection();
108
- }
109
- }
110
-
111
- connectedCallback() {
112
- super.connectedCallback();
113
-
114
- if (this.isCtxOwner) {
115
- this._observeUploadCollection();
116
- }
117
- }
118
-
119
- destroyCallback() {
120
- super.destroyCallback();
121
-
122
- this._flushOutputItems.cancel();
123
- }
124
-
125
- /** @private */
126
- _initCtxOwner() {
127
- this.isCtxOwner = true;
128
-
129
- this._observeUploadCollection();
130
-
131
- this.subConfigValue('maxConcurrentRequests', (value) => {
132
- this.$['*uploadQueue'].concurrency = Number(value) || 1;
133
- });
134
-
135
- if (!this.$['*secureUploadsManager']) {
136
- this.$['*secureUploadsManager'] = new SecureUploadsManager(this);
137
- }
138
- }
139
-
140
- /** @private */
141
- _observeUploadCollection() {
142
- this._unobserveUploadCollection();
143
-
144
- /** @private */
145
- this._unobserveCollection = this.uploadCollection.observeCollection(this._handleCollectionUpdate);
146
-
147
- /** @private */
148
- this._unobserveCollectionProperties = this.uploadCollection.observeProperties(
149
- this._handleCollectionPropertiesUpdate,
150
- );
151
- }
152
-
153
- /** @private */
154
- _unobserveUploadCollection() {
155
- this._unobserveCollectionProperties?.();
156
- this._unobserveCollection?.();
157
-
158
- this._unobserveCollectionProperties = undefined;
159
- this._unobserveCollection = undefined;
160
- }
161
-
162
- /**
163
- * @private
164
- * @param {import('../types').OutputCollectionState} collectionState
165
- */
166
- async _createGroup(collectionState) {
167
- const uploadClientOptions = await this.getUploadClientOptions();
168
- const uuidList = collectionState.allEntries.map((entry) => {
169
- return entry.uuid + (entry.cdnUrlModifiers ? `/${entry.cdnUrlModifiers}` : '');
170
- });
171
- const abortController = new AbortController();
172
- const resp = await uploadFileGroup(uuidList, { ...uploadClientOptions, signal: abortController.signal });
173
- if (this.$['*collectionState'] !== collectionState) {
174
- abortController.abort();
175
- return;
176
- }
177
- this.$['*groupInfo'] = resp;
178
- const collectionStateWithGroup = /** @type {import('../types').OutputCollectionState<'success', 'has-group'>} */ (
179
- this.api.getOutputCollectionState()
180
- );
181
- this.emit(EventType.GROUP_CREATED, collectionStateWithGroup);
182
- this.emit(EventType.CHANGE, () => this.api.getOutputCollectionState(), { debounce: true });
183
- this.$['*collectionState'] = collectionStateWithGroup;
184
- }
185
-
186
- /** @private */
187
- _flushOutputItems = debounce(async () => {
188
- const data = this.getOutputData();
189
- if (data.length !== this.uploadCollection.size) {
190
- return;
191
- }
192
- const collectionState = this.api.getOutputCollectionState();
193
- this.$['*collectionState'] = collectionState;
194
- this.emit(EventType.CHANGE, () => this.api.getOutputCollectionState(), { debounce: true });
195
-
196
- if (this.cfg.groupOutput && collectionState.totalCount > 0 && collectionState.status === 'success') {
197
- this._createGroup(collectionState);
198
- }
199
- }, 300);
200
-
201
- /**
202
- * @private
203
- * @type {import('./TypedCollection.js').TypedCollectionObserverHandler<typeof uploadEntrySchema>}
204
- */
205
- _handleCollectionUpdate = (entries, added, removed) => {
206
- if (added.size || removed.size) {
207
- this.$['*groupInfo'] = null;
208
- }
209
- this.validationManager.runFileValidators();
210
- this.validationManager.runCollectionValidators();
211
-
212
- for (const entry of added) {
213
- if (!entry.getValue('silent')) {
214
- this.emit(EventType.FILE_ADDED, this.api.getOutputItem(entry.uid));
215
- }
216
- }
217
-
218
- for (const entry of removed) {
219
- /** @type {Set<string>} */ (this.$['*uploadTrigger']).delete(entry.uid);
220
-
221
- entry.getValue('abortController')?.abort();
222
- entry.setMultipleValues({
223
- isRemoved: true,
224
- abortController: null,
225
- isUploading: false,
226
- uploadProgress: 0,
227
- });
228
- const thumbUrl = entry?.getValue('thumbUrl');
229
- thumbUrl && URL.revokeObjectURL(thumbUrl);
230
- this.emit(EventType.FILE_REMOVED, this.api.getOutputItem(entry.uid));
231
- }
232
-
233
- this.$['*uploadList'] = entries.map((uid) => {
234
- return { uid };
235
- });
236
-
237
- this._flushCommonUploadProgress();
238
- this._flushOutputItems();
239
- };
240
-
241
- /**
242
- * @private
243
- * @param {Record<keyof import('./uploadEntrySchema.js').UploadEntryData, Set<string>>} changeMap
244
- */
245
- _handleCollectionPropertiesUpdate = (changeMap) => {
246
- this._flushOutputItems();
247
-
248
- const uploadCollection = this.uploadCollection;
249
- const entriesToRunValidation = [
250
- ...new Set(
251
- Object.entries(changeMap)
252
- .filter(([key]) => ['uploadError', 'fileInfo'].includes(key))
253
- .map(([, ids]) => [...ids])
254
- .flat(),
255
- ),
256
- ];
257
-
258
- entriesToRunValidation.length > 0 &&
259
- setTimeout(() => {
260
- // We can't modify entry properties in the same tick, so we need to wait a bit
261
- this.validationManager.runFileValidators(entriesToRunValidation);
262
- });
263
-
264
- if (changeMap.uploadProgress) {
265
- for (const entryId of changeMap.uploadProgress) {
266
- const { isUploading, silent } = Data.getCtx(entryId).store;
267
- if (isUploading && !silent) {
268
- this.emit(EventType.FILE_UPLOAD_PROGRESS, this.api.getOutputItem(entryId));
269
- }
270
- }
271
-
272
- this._flushCommonUploadProgress();
273
- }
274
- if (changeMap.isUploading) {
275
- for (const entryId of changeMap.isUploading) {
276
- const { isUploading, silent } = Data.getCtx(entryId).store;
277
- if (isUploading && !silent) {
278
- this.emit(EventType.FILE_UPLOAD_START, this.api.getOutputItem(entryId));
279
- }
280
- }
281
- }
282
- if (changeMap.fileInfo) {
283
- for (const entryId of changeMap.fileInfo) {
284
- const { fileInfo, silent } = Data.getCtx(entryId).store;
285
- if (fileInfo && !silent) {
286
- this.emit(EventType.FILE_UPLOAD_SUCCESS, this.api.getOutputItem(entryId));
287
- }
288
- }
289
- if (this.cfg.cropPreset) {
290
- this.setInitialCrop();
291
- }
292
-
293
- if (this.cfg.cloudImageEditorAutoOpen) {
294
- this.openCloudImageEditor();
295
- }
296
- }
297
- if (changeMap.errors) {
298
- for (const entryId of changeMap.errors) {
299
- const { errors } = Data.getCtx(entryId).store;
300
- if (errors.length > 0) {
301
- this.emit(EventType.FILE_UPLOAD_FAILED, this.api.getOutputItem(entryId));
302
- this.emit(
303
- EventType.COMMON_UPLOAD_FAILED,
304
- () =>
305
- /** @type {import('../types').OutputCollectionState<'failed'>} */ (this.api.getOutputCollectionState()),
306
- { debounce: true },
307
- );
308
- }
309
- }
310
- const loadedItems = uploadCollection.findItems((entry) => {
311
- return !!entry.getValue('fileInfo');
312
- });
313
- const errorItems = uploadCollection.findItems((entry) => {
314
- return entry.getValue('errors').length > 0;
315
- });
316
- if (
317
- uploadCollection.size > 0 &&
318
- errorItems.length === 0 &&
319
- uploadCollection.size === loadedItems.length &&
320
- this.$['*collectionErrors'].length === 0
321
- ) {
322
- this.emit(
323
- EventType.COMMON_UPLOAD_SUCCESS,
324
- /** @type {import('../types').OutputCollectionState<'success'>} */ (this.api.getOutputCollectionState()),
325
- );
326
- }
327
- }
328
- if (changeMap.cdnUrl) {
329
- const uids = [...changeMap.cdnUrl].filter((uid) => {
330
- return !!this.uploadCollection.read(uid)?.getValue('cdnUrl');
331
- });
332
- uids.forEach((uid) => {
333
- this.emit(EventType.FILE_URL_CHANGED, this.api.getOutputItem(uid));
334
- });
335
-
336
- this.$['*groupInfo'] = null;
337
- }
338
- };
339
-
340
- /** @private */
341
- _flushCommonUploadProgress = () => {
342
- let commonProgress = 0;
343
- /** @type {Set<string>} */
344
- const uploadTrigger = this.$['*uploadTrigger'];
345
- const items = [...uploadTrigger].filter((id) => !!this.uploadCollection.read(id));
346
- items.forEach((id) => {
347
- const uploadProgress = this.uploadCollection.readProp(id, 'uploadProgress');
348
- if (typeof uploadProgress === 'number') {
349
- commonProgress += uploadProgress;
350
- }
351
- });
352
- const progress = items.length ? Math.round(commonProgress / items.length) : 0;
353
-
354
- if (this.$['*commonProgress'] === progress) {
355
- return;
356
- }
357
-
358
- this.$['*commonProgress'] = progress;
359
- this.emit(
360
- EventType.COMMON_UPLOAD_PROGRESS,
361
- /** @type {import('../types').OutputCollectionState<'uploading'>} */ (this.api.getOutputCollectionState()),
362
- );
363
- };
364
-
365
- openCloudImageEditor() {
366
- const [entry] = this.uploadCollection
367
- .findItems((entry) => !!entry.getValue('fileInfo') && entry.getValue('isImage'))
368
- .map((id) => this.uploadCollection.read(id));
369
-
370
- if (
371
- entry &&
372
- this.uploadCollection.size === 1 &&
373
- this.cfg.useCloudImageEditor &&
374
- this.hasBlockInCtx((block) => block.activityType === ActivityBlock.activities.CLOUD_IMG_EDIT)
375
- ) {
376
- this.$['*currentActivityParams'] = {
377
- internalId: entry.uid,
378
- };
379
- this.$['*currentActivity'] = ActivityBlock.activities.CLOUD_IMG_EDIT;
380
- this.modalManager.open(ActivityBlock.activities.CLOUD_IMG_EDIT);
381
- }
382
- }
383
-
384
- /** @private */
385
- setInitialCrop() {
386
- const cropPreset = parseCropPreset(this.cfg.cropPreset);
387
- if (cropPreset) {
388
- const [aspectRatioPreset] = cropPreset;
389
-
390
- const entries = this.uploadCollection
391
- .findItems(
392
- (entry) =>
393
- !!entry.getValue('fileInfo') &&
394
- entry.getValue('isImage') &&
395
- !entry.getValue('cdnUrlModifiers')?.includes('/crop/'),
396
- )
397
- .map((id) => this.uploadCollection.read(id))
398
- .filter(Boolean);
399
-
400
- for (const entry of entries) {
401
- const fileInfo = entry.getValue('fileInfo');
402
- if (!fileInfo || !fileInfo.imageInfo) {
403
- console.warn('Failed to get image info for entry', entry.uid);
404
- continue;
405
- }
406
- const { width, height } = fileInfo.imageInfo;
407
- const expectedAspectRatio =
408
- typeof aspectRatioPreset?.width === 'number' &&
409
- typeof aspectRatioPreset?.height === 'number' &&
410
- aspectRatioPreset.width > 0 &&
411
- aspectRatioPreset.height > 0
412
- ? aspectRatioPreset.width / aspectRatioPreset.height
413
- : 1;
414
-
415
- const crop = calculateMaxCenteredCropFrame(width, height, expectedAspectRatio);
416
- const cdnUrlModifiers = createCdnUrlModifiers(
417
- `crop/${crop.width}x${crop.height}/${crop.x},${crop.y}`,
418
- 'preview',
419
- );
420
- const cdnUrl = entry.getValue('cdnUrl');
421
- if (!cdnUrl) {
422
- console.warn('Failed to get cdnUrl for entry', entry.uid);
423
- continue;
424
- }
425
- entry.setMultipleValues({
426
- cdnUrlModifiers,
427
- cdnUrl: createCdnUrl(cdnUrl, cdnUrlModifiers),
428
- });
429
- if (
430
- this.uploadCollection.size === 1 &&
431
- this.cfg.useCloudImageEditor &&
432
- this.hasBlockInCtx((block) => block.activityType === ActivityBlock.activities.CLOUD_IMG_EDIT)
433
- ) {
434
- this.$['*currentActivityParams'] = {
435
- internalId: entry.uid,
436
- };
437
- this.$['*currentActivity'] = ActivityBlock.activities.CLOUD_IMG_EDIT;
438
- this.modalManager.open(ActivityBlock.activities.CLOUD_IMG_EDIT);
439
- }
440
- }
441
- }
442
- }
443
-
444
- /**
445
- * @param {string} entryId
446
- * @protected
447
- */
448
- async getMetadataFor(entryId) {
449
- const configValue = this.cfg.metadata || undefined;
450
- if (typeof configValue === 'function') {
451
- const outputFileEntry = this.api.getOutputItem(entryId);
452
- const metadata = await configValue(outputFileEntry);
453
- return metadata;
454
- }
455
- return configValue;
456
- }
457
-
458
- /**
459
- * @returns {Promise<import('@uploadcare/upload-client').FileFromOptions>}
460
- * @protected
461
- */
462
- async getUploadClientOptions() {
463
- /** @type {SecureUploadsManager} */
464
- const secureUploadsManager = this.$['*secureUploadsManager'];
465
- const secureToken = await secureUploadsManager.getSecureToken().catch(() => null);
466
-
467
- let options = {
468
- store: this.cfg.store,
469
- publicKey: this.cfg.pubkey,
470
- baseCDN: this.cfg.cdnCname,
471
- baseURL: this.cfg.baseUrl,
472
- userAgent: customUserAgent,
473
- integration: this.cfg.userAgentIntegration,
474
- secureSignature: secureToken?.secureSignature,
475
- secureExpire: secureToken?.secureExpire,
476
- retryThrottledRequestMaxTimes: this.cfg.retryThrottledRequestMaxTimes,
477
- retryNetworkErrorMaxTimes: this.cfg.retryNetworkErrorMaxTimes,
478
- multipartMinFileSize: this.cfg.multipartMinFileSize,
479
- multipartChunkSize: this.cfg.multipartChunkSize,
480
- maxConcurrentRequests: this.cfg.multipartMaxConcurrentRequests,
481
- multipartMaxAttempts: this.cfg.multipartMaxAttempts,
482
- checkForUrlDuplicates: !!this.cfg.checkForUrlDuplicates,
483
- saveUrlForRecurrentUploads: !!this.cfg.saveUrlForRecurrentUploads,
484
- };
485
-
486
- return options;
487
- }
488
-
489
- /** @returns {import('../types/exported.js').OutputFileEntry[]} */
490
- getOutputData() {
491
- const entriesIds = this.uploadCollection.items();
492
- const data = entriesIds.map((itemId) => this.api.getOutputItem(itemId));
493
- return data;
494
- }
495
- }
496
-
497
- /**
498
- * @deprecated Use list sources ExternalUploadSource from from blocks/utils/UploadSource.js
499
- * @enum {String}
500
- */
501
- UploaderBlock.extSrcList = Object.freeze({
502
- ...ExternalUploadSource,
503
- });
504
-
505
- /**
506
- * @deprecated Use list sources UploadSource from from blocks/utils/UploadSource.js
507
- * @enum {String}
508
- */
509
- UploaderBlock.sourceTypes = Object.freeze({
510
- ...UploadSource,
511
- });
@@ -1,100 +0,0 @@
1
- export class UploaderPublicApi {
2
- /** @param {import('./UploaderBlock.js').UploaderBlock} ctx */
3
- constructor(ctx: import("./UploaderBlock.js").UploaderBlock);
4
- /**
5
- * @private
6
- * @type {import('./UploaderBlock.js').UploaderBlock}
7
- */
8
- private _ctx;
9
- /** @private */
10
- private get _uploadCollection();
11
- get cfg(): import("../types").ConfigType;
12
- get l10n(): (str: string, variables?: {
13
- [key: string]: string | number;
14
- }) => string;
15
- /**
16
- * TODO: Probably we should not allow user to override `source` property
17
- *
18
- * @param {string} url
19
- * @param {{ silent?: boolean; fileName?: string; source?: string }} [options]
20
- * @returns {import('../types').OutputFileEntry<'idle'>}
21
- */
22
- addFileFromUrl: (url: string, { silent, fileName, source }?: {
23
- silent?: boolean;
24
- fileName?: string;
25
- source?: string;
26
- }) => import("../types").OutputFileEntry<"idle">;
27
- /**
28
- * @param {string} uuid
29
- * @param {{ silent?: boolean; fileName?: string; source?: string }} [options]
30
- * @returns {import('../types').OutputFileEntry<'idle'>}
31
- */
32
- addFileFromUuid: (uuid: string, { silent, fileName, source }?: {
33
- silent?: boolean;
34
- fileName?: string;
35
- source?: string;
36
- }) => import("../types").OutputFileEntry<"idle">;
37
- /**
38
- * @param {string} cdnUrl
39
- * @param {{ silent?: boolean; fileName?: string; source?: string }} [options]
40
- * @returns {import('../types').OutputFileEntry<'idle'>}
41
- */
42
- addFileFromCdnUrl: (cdnUrl: string, { silent, fileName, source }?: {
43
- silent?: boolean;
44
- fileName?: string;
45
- source?: string;
46
- }) => import("../types").OutputFileEntry<"idle">;
47
- /**
48
- * @param {File} file
49
- * @param {{ silent?: boolean; fileName?: string; source?: string; fullPath?: string }} [options]
50
- * @returns {import('../types').OutputFileEntry<'idle'>}
51
- */
52
- addFileFromObject: (file: File, { silent, fileName, source, fullPath }?: {
53
- silent?: boolean;
54
- fileName?: string;
55
- source?: string;
56
- fullPath?: string;
57
- }) => import("../types").OutputFileEntry<"idle">;
58
- /** @param {string} internalId */
59
- removeFileByInternalId: (internalId: string) => void;
60
- removeAllFiles(): void;
61
- uploadAll: () => void;
62
- /** @param {{ captureCamera?: boolean; modeCamera?: import('../blocks/CameraSource/constants.js').ModeCameraType }} options */
63
- openSystemDialog: (options?: {
64
- captureCamera?: boolean;
65
- modeCamera?: import("../blocks/CameraSource/constants.js").ModeCameraType;
66
- }) => void;
67
- /**
68
- * @template {import('../types').OutputFileStatus} TStatus
69
- * @param {string} entryId
70
- * @returns {import('../types/exported.js').OutputFileEntry<TStatus>}
71
- */
72
- getOutputItem<TStatus extends import("../types").OutputFileStatus>(entryId: string): import("../types/exported.js").OutputFileEntry<TStatus>;
73
- /** @template {import('../types').OutputCollectionStatus} TStatus */
74
- getOutputCollectionState<TStatus extends import("../types").OutputCollectionStatus>(): ReturnType<typeof buildOutputCollectionState<TStatus>>;
75
- /** @param {Boolean} [force] */
76
- initFlow: (force?: boolean) => void;
77
- doneFlow: () => void;
78
- /**
79
- * @type {<T extends import('./ActivityBlock.js').ActivityType>(
80
- * activityType: T,
81
- * ...params: T extends keyof import('./ActivityBlock.js').ActivityParamsMap
82
- * ? [import('./ActivityBlock.js').ActivityParamsMap[T]]
83
- * : T extends import('./ActivityBlock.js').RegisteredActivityType
84
- * ? [undefined?]
85
- * : [any?]
86
- * ) => void}
87
- */
88
- setCurrentActivity: <T extends import("./ActivityBlock.js").ActivityType>(activityType: T, ...params: T extends keyof import("./ActivityBlock.js").ActivityParamsMap ? [import("./ActivityBlock.js").ActivityParamsMap[T]] : T extends import("./ActivityBlock.js").RegisteredActivityType ? [undefined?] : [any?]) => void;
89
- /** @returns {import('./ActivityBlock.js').ActivityType} */
90
- getCurrentActivity: () => import("./ActivityBlock.js").ActivityType;
91
- /** @param {boolean} opened */
92
- setModalState: (opened: boolean) => void;
93
- /**
94
- * @private
95
- * @type {string[]}
96
- */
97
- private get _sourceList();
98
- }
99
- import { buildOutputCollectionState } from './buildOutputCollectionState.js';
100
- //# sourceMappingURL=UploaderPublicApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UploaderPublicApi.d.ts","sourceRoot":"","sources":["UploaderPublicApi.js"],"names":[],"mappings":"AAqBA;IAOE,8DAA8D;IAC9D,iBADY,OAAO,oBAAoB,EAAE,aAAa,EAGrD;IATD;;;OAGG;IACH,aAAK;IAOL,eAAe;IACf,gCAEC;IAED,yCAEC;IAED;;iBAEC;IAED;;;;;;OAMG;IACH,iBAAkB,KAJP,MAIU,EAAE,+BAHZ;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAGT,KAF3C,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAUrD;IAEF;;;;OAIG;IACH,kBAAmB,MAJR,MAIY,EAAE,+BAHd;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAGP,KAF7C,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAUrD;IAEF;;;;OAIG;IACH,oBAAqB,QAJV,MAIgB,EAAE,+BAHlB;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAGH,KAFjD,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAgBrD;IAEF;;;;OAIG;IACH,oBAAqB,MAJV,IAIc,EAAE,yCAHhB;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAGd,KAFzD,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAcrD;IAEF,iCAAiC;IACjC,yBAA0B,YADd,MACwB,UAKlC;IAEF,uBAEC;IAED,sBAgBE;IAEF,8HAA8H;IAC9H,mBAAoB,UADR;QAAE,aAAa,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,qCAAqC,EAAE,cAAc,CAAA;KAChF,UA6D9B;IAEF;;;;OAIG;IACH,cAJmD,OAAO,SAA7C,OAAQ,UAAU,EAAE,gBAAiB,WACvC,MAAM,GACJ,OAAO,sBAAsB,EAAE,eAAe,CAAC,OAAO,CAAC,CA+CnE;IAED,oEAAoE;IACpE,yBAD0D,OAAO,SAAnD,OAAQ,UAAU,EAAE,sBAAuB,KAErC,UAAU,CAAC,OAAO,0BAA0B,CAAC,OAAO,CAAC,CAAC,CAGzE;IAED,+BAA+B;IAC/B,WAAY,eAAa,UA6DvB;IAEF,qBAQE;IAEF;;;;;;;;;OASG;IACH,oBATU,CAAC,CAAC,SAAS,OAAO,oBAAoB,EAAE,YAAY,EACzD,YAAY,EAAE,CAAC,EACnB,GAAO,MAAM,EAAE,CAAC,SAAS,MAAM,OAAO,oBAAoB,EAAE,iBAAiB,GACrE,CAAC,OAAO,oBAAoB,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GACnD,CAAC,SAAS,OAAO,oBAAoB,EAAE,sBAAsB,GAC3D,CAAC,SAAS,CAAC,CAAC,GACZ,CAAC,GAAG,CAAC,CAAC,KACT,IAAI,CAWV;IAEF,2DAA2D;IAC3D,0BADc,OAAO,oBAAoB,EAAE,YAAY,CAGrD;IAEF,8BAA8B;IAC9B,gBAAiB,QADL,OACW,UAYrB;IAEF;;;OAGG;IACH,0BAOC;CACF;2CA3X0C,iCAAiC"}