filepond 5.0.0-beta.2 → 5.0.0-beta.21

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 (368) hide show
  1. package/README.md +27 -4
  2. package/cdn/assets/index.js +1 -1
  3. package/cdn/dev/index.js +1 -0
  4. package/cdn/extensions/blob-loader.js +1 -1
  5. package/cdn/extensions/canvas-loader.js +1 -1
  6. package/cdn/extensions/chunked-upload-store.js +1 -1
  7. package/cdn/extensions/clipboard-source.js +1 -1
  8. package/cdn/extensions/console-view.js +1 -1
  9. package/cdn/extensions/data-transfer-loader.js +1 -1
  10. package/cdn/extensions/data-url-store.js +1 -1
  11. package/cdn/extensions/drag-drop-source.js +1 -1
  12. package/cdn/extensions/dropbox-source.js +1 -1
  13. package/cdn/extensions/entry-list-view.js +1 -1
  14. package/cdn/extensions/file-extension-validator.js +1 -1
  15. package/cdn/extensions/file-input-source.js +1 -1
  16. package/cdn/extensions/file-input-store.js +1 -1
  17. package/cdn/extensions/file-mime-type-validator.js +1 -1
  18. package/cdn/extensions/file-name-transform.js +1 -1
  19. package/cdn/extensions/file-name-validator.js +1 -1
  20. package/cdn/extensions/file-size-validator.js +1 -1
  21. package/cdn/extensions/form-post-store.js +1 -1
  22. package/cdn/extensions/image-bitmap-transform.js +1 -0
  23. package/cdn/extensions/index.js +1 -1
  24. package/cdn/extensions/list-count-validator.js +1 -1
  25. package/cdn/extensions/list-size-validator.js +1 -1
  26. package/cdn/extensions/media-resolution-validator.js +1 -1
  27. package/cdn/extensions/object-url-store.js +1 -1
  28. package/cdn/extensions/simulated-loader.js +1 -1
  29. package/cdn/extensions/simulated-store.js +1 -1
  30. package/cdn/extensions/text-input-store.js +1 -1
  31. package/cdn/extensions/url-loader.js +1 -1
  32. package/cdn/extensions/value-callback-store.js +1 -1
  33. package/cdn/index.js +1 -7
  34. package/cdn/locales/ar-ar.js +72 -48
  35. package/cdn/locales/bn-bd.js +72 -48
  36. package/cdn/locales/cs-cz.js +83 -59
  37. package/cdn/locales/da-dk.js +74 -50
  38. package/cdn/locales/de-de.js +72 -42
  39. package/cdn/locales/el-gr.js +72 -48
  40. package/cdn/locales/en-gb.js +85 -62
  41. package/cdn/locales/es-es.js +69 -39
  42. package/cdn/locales/fi-fi.js +69 -45
  43. package/cdn/locales/fr-fr.js +78 -48
  44. package/cdn/locales/hi-in.js +72 -42
  45. package/cdn/locales/hu-hu.js +66 -42
  46. package/cdn/locales/index.js +1 -1
  47. package/cdn/locales/is-is.js +71 -47
  48. package/cdn/locales/it-it.js +73 -43
  49. package/cdn/locales/ja-jp.js +72 -42
  50. package/cdn/locales/ko-kr.js +72 -42
  51. package/cdn/locales/nb-no.js +74 -44
  52. package/cdn/locales/nl-nl.js +71 -48
  53. package/cdn/locales/pl-pl.js +76 -52
  54. package/cdn/locales/pt-pt.js +71 -41
  55. package/cdn/locales/sv-se.js +73 -43
  56. package/cdn/locales/tr-tr.js +83 -59
  57. package/cdn/locales/uk-ua.js +72 -48
  58. package/cdn/locales/vi-vn.js +82 -58
  59. package/cdn/locales/zh-cn.js +72 -42
  60. package/cdn/main.js +7 -0
  61. package/cdn/templates/entry.js +1 -1
  62. package/cdn/templates/helpers.js +1 -1
  63. package/cdn/templates/index.js +1 -1
  64. package/cdn/templates/media.js +1 -1
  65. package/cdn/workers/httpRequest.js +45 -0
  66. package/cdn/workers/httpRequestWorker.js +37 -0
  67. package/cdn/workers/readFile.js +14 -0
  68. package/cdn/workers/readFileWorker.js +6 -0
  69. package/cdn/workers/transformImage.js +16 -0
  70. package/cdn/workers/transformImageWorker.js +8 -0
  71. package/esm/assets/index.js +1 -1
  72. package/esm/common/console.js +1 -1
  73. package/esm/common/entry.js +1 -1
  74. package/esm/common/perceivedPerformanceProxy.js +1 -1
  75. package/esm/common/readEntriesFromDataTransfer.js +1 -1
  76. package/esm/common/ssr.js +1 -1
  77. package/esm/common/status.js +1 -1
  78. package/esm/core/entryTree.js +142 -133
  79. package/esm/core/extensionManager.js +89 -86
  80. package/esm/core/taskScheduler.js +78 -97
  81. package/esm/dev/index.js +122 -0
  82. package/esm/elements/FilePondDefault/index.css.js +2 -2
  83. package/esm/elements/FilePondDefault/index.js +164 -125
  84. package/esm/elements/FilePondDropArea/index.css.js +1 -1
  85. package/esm/elements/FilePondDropArea/index.js +1 -1
  86. package/esm/elements/FilePondDropArea/index.svelte.js +38 -40
  87. package/esm/elements/FilePondDropIndicator/index.css.js +1 -1
  88. package/esm/elements/FilePondDropIndicator/index.js +1 -1
  89. package/esm/elements/FilePondDropIndicator/index.svelte.js +65 -67
  90. package/esm/elements/FilePondEntryList/components/Entry/index.css.js +2 -2
  91. package/esm/elements/FilePondEntryList/components/Entry/index.js +1 -1
  92. package/esm/elements/FilePondEntryList/components/Entry/index.svelte.js +37 -37
  93. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.css.js +2 -2
  94. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.js +1 -2
  95. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js +115 -86
  96. package/esm/elements/FilePondEntryList/components/EntryList/index.css.js +1 -1
  97. package/esm/elements/FilePondEntryList/components/EntryList/index.js +1 -1
  98. package/esm/elements/FilePondEntryList/components/EntryList/index.svelte.js +159 -154
  99. package/esm/elements/FilePondEntryList/components/EntryListItem/index.css.js +1 -1
  100. package/esm/elements/FilePondEntryList/components/EntryListItem/index.js +1 -2
  101. package/esm/elements/FilePondEntryList/components/EntryListItem/index.svelte.js +70 -46
  102. package/esm/elements/FilePondEntryList/components/EntryListItemPlaceholder/index.svelte.js +1 -1
  103. package/esm/elements/FilePondEntryList/components/EntryStatus/index.css.js +1 -1
  104. package/esm/elements/FilePondEntryList/components/EntryStatus/index.js +1 -2
  105. package/esm/elements/FilePondEntryList/components/EntryStatus/index.svelte.js +62 -62
  106. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRenderer.svelte.js +65 -60
  107. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRendererCache.js +1 -1
  108. package/esm/elements/FilePondEntryList/components/MediaImage/index.css.js +1 -1
  109. package/esm/elements/FilePondEntryList/components/MediaImage/index.js +2 -1
  110. package/esm/elements/FilePondEntryList/components/MediaImage/index.svelte.js +91 -83
  111. package/esm/elements/FilePondEntryList/components/MediaPane/index.css.js +2 -2
  112. package/esm/elements/FilePondEntryList/components/MediaPane/index.js +1 -1
  113. package/esm/elements/FilePondEntryList/components/MediaPane/index.svelte.js +33 -35
  114. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.css.js +1 -1
  115. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.js +1 -1
  116. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js +1 -1
  117. package/esm/elements/FilePondEntryList/components/MediaVideo/index.css.js +1 -1
  118. package/esm/elements/FilePondEntryList/components/MediaVideo/index.js +1 -1
  119. package/esm/elements/FilePondEntryList/components/MediaVideo/index.svelte.js +88 -88
  120. package/esm/elements/FilePondEntryList/contexts/appContext.js +1 -1
  121. package/esm/elements/FilePondEntryList/contexts/dragContext.js +1 -1
  122. package/esm/elements/FilePondEntryList/contexts/dropContext.js +1 -1
  123. package/esm/elements/FilePondEntryList/contexts/entryContext.js +1 -1
  124. package/esm/elements/FilePondEntryList/contexts/springElementTreeContext.js +1 -1
  125. package/esm/elements/FilePondEntryList/index.css.js +2 -2
  126. package/esm/elements/FilePondEntryList/index.js +11 -14
  127. package/esm/elements/FilePondEntryList/index.svelte.js +351 -271
  128. package/esm/elements/FilePondInput/index.css.js +3 -3
  129. package/esm/elements/FilePondInput/index.js +252 -191
  130. package/esm/elements/FilePondSvelteComponent/index.svelte.js +11 -11
  131. package/esm/elements/attachments/dragarea.js +62 -63
  132. package/esm/elements/attachments/droparea.js +1 -1
  133. package/esm/elements/attachments/measurable.js +1 -1
  134. package/esm/elements/attachments/resizable.js +1 -1
  135. package/esm/elements/attachments/transitions.js +1 -1
  136. package/esm/elements/common/animationGuard.js +1 -1
  137. package/esm/elements/common/animationPreference.svelte.js +35 -41
  138. package/esm/elements/common/dragDrop.js +1 -1
  139. package/esm/elements/common/event.js +1 -1
  140. package/esm/elements/common/extendStyles.js +1 -1
  141. package/esm/elements/common/getClosestElement.js +1 -1
  142. package/esm/elements/common/html.js +4 -4
  143. package/esm/elements/common/nodeTree.js +9 -9
  144. package/esm/elements/common/store.svelte.js +1 -1
  145. package/esm/elements/common/string.js +75 -55
  146. package/esm/elements/common/transition.js +1 -1
  147. package/esm/elements/components/BooleanInput/index.css.js +1 -1
  148. package/esm/elements/components/BooleanInput/index.js +1 -1
  149. package/esm/elements/components/BooleanInput/index.svelte.js +31 -33
  150. package/esm/elements/components/Button/index.css.js +2 -2
  151. package/esm/elements/components/Button/index.js +1 -1
  152. package/esm/elements/components/Button/index.svelte.js +49 -49
  153. package/esm/elements/components/ElementPane/index.css.js +1 -1
  154. package/esm/elements/components/ElementPane/index.js +1 -1
  155. package/esm/elements/components/ElementPane/index.svelte.js +1 -1
  156. package/esm/elements/components/ElementSkeleton/index.css.js +1 -1
  157. package/esm/elements/components/ElementSkeleton/index.js +1 -1
  158. package/esm/elements/components/ElementSkeleton/index.svelte.js +1 -1
  159. package/esm/elements/components/FilenameInput/index.css.js +2 -2
  160. package/esm/elements/components/FilenameInput/index.js +1 -1
  161. package/esm/elements/components/FilenameInput/index.svelte.js +1 -1
  162. package/esm/elements/components/NodeList/index.svelte.js +174 -200
  163. package/esm/elements/components/ProgressIndicator/index.css.js +2 -2
  164. package/esm/elements/components/ProgressIndicator/index.js +1 -1
  165. package/esm/elements/components/ProgressIndicator/index.svelte.js +98 -124
  166. package/esm/elements/components/RangeInput/index.css.js +2 -2
  167. package/esm/elements/components/RangeInput/index.js +1 -1
  168. package/esm/elements/components/RangeInput/index.svelte.js +86 -85
  169. package/esm/elements/components/SpringElement/index.svelte.js +91 -90
  170. package/esm/elements/components/TextInput/index.css.js +1 -1
  171. package/esm/elements/components/TextInput/index.js +1 -1
  172. package/esm/elements/components/TextInput/index.svelte.js +25 -27
  173. package/esm/extensions/blob-loader.js +1 -1
  174. package/esm/extensions/canvas-loader.js +1 -1
  175. package/esm/extensions/chunked-upload-store.js +1 -1
  176. package/esm/extensions/clipboard-source.js +1 -1
  177. package/esm/extensions/common/createExtension.js +38 -37
  178. package/esm/extensions/common/createStoreExtension.js +1 -1
  179. package/esm/extensions/common/createTransformExtension.js +1 -1
  180. package/esm/extensions/common/createValidatorExtension.js +1 -1
  181. package/esm/extensions/console-view.js +36 -33
  182. package/esm/extensions/data-transfer-loader.js +1 -1
  183. package/esm/extensions/data-url-store.js +24 -19
  184. package/esm/extensions/drag-drop-source.js +1 -1
  185. package/esm/extensions/dropbox-source.js +1 -1
  186. package/esm/extensions/entry-list-view.js +35 -29
  187. package/esm/extensions/file-extension-validator.js +1 -1
  188. package/esm/extensions/file-input-source.js +1 -1
  189. package/esm/extensions/file-input-store.js +1 -1
  190. package/esm/extensions/file-mime-type-validator.js +21 -17
  191. package/esm/extensions/file-name-transform.js +1 -1
  192. package/esm/extensions/file-name-validator.js +1 -1
  193. package/esm/extensions/file-size-validator.js +33 -22
  194. package/esm/extensions/form-post-store.js +1 -1
  195. package/esm/extensions/image-bitmap-transform.js +109 -0
  196. package/esm/extensions/index.js +23 -21
  197. package/esm/extensions/list-count-validator.js +21 -21
  198. package/esm/extensions/list-size-validator.js +42 -31
  199. package/esm/extensions/media-resolution-validator.js +57 -47
  200. package/esm/extensions/object-url-store.js +1 -1
  201. package/esm/extensions/simulated-loader.js +74 -65
  202. package/esm/extensions/simulated-store.js +1 -1
  203. package/esm/extensions/text-input-store.js +1 -1
  204. package/esm/extensions/url-loader.js +74 -71
  205. package/esm/extensions/value-callback-store.js +1 -1
  206. package/esm/index.js +1 -1
  207. package/esm/locales/ar-ar.js +72 -48
  208. package/esm/locales/bn-bd.js +72 -48
  209. package/esm/locales/cs-cz.js +83 -59
  210. package/esm/locales/da-dk.js +74 -50
  211. package/esm/locales/de-de.js +72 -42
  212. package/esm/locales/el-gr.js +72 -48
  213. package/esm/locales/en-gb.js +85 -62
  214. package/esm/locales/es-es.js +69 -39
  215. package/esm/locales/fi-fi.js +69 -45
  216. package/esm/locales/fr-fr.js +78 -48
  217. package/esm/locales/hi-in.js +72 -42
  218. package/esm/locales/hu-hu.js +66 -42
  219. package/esm/locales/index.js +1 -1
  220. package/esm/locales/is-is.js +71 -47
  221. package/esm/locales/it-it.js +73 -43
  222. package/esm/locales/ja-jp.js +72 -42
  223. package/esm/locales/ko-kr.js +72 -42
  224. package/esm/locales/nb-no.js +74 -44
  225. package/esm/locales/nl-nl.js +71 -48
  226. package/esm/locales/pl-pl.js +76 -52
  227. package/esm/locales/pt-pt.js +71 -41
  228. package/esm/locales/sv-se.js +73 -43
  229. package/esm/locales/tr-tr.js +83 -59
  230. package/esm/locales/uk-ua.js +72 -48
  231. package/esm/locales/vi-vn.js +82 -58
  232. package/esm/locales/zh-cn.js +72 -42
  233. package/esm/svelte/svelte/src/constants.js +13 -12
  234. package/esm/svelte/svelte/src/internal/client/constants.js +29 -24
  235. package/esm/svelte/svelte/src/internal/client/context.js +33 -28
  236. package/esm/svelte/svelte/src/internal/client/dom/blocks/boundary.js +185 -126
  237. package/esm/svelte/svelte/src/internal/client/dom/blocks/branches.js +42 -43
  238. package/esm/svelte/svelte/src/internal/client/dom/blocks/each.js +175 -150
  239. package/esm/svelte/svelte/src/internal/client/dom/blocks/html.js +55 -32
  240. package/esm/svelte/svelte/src/internal/client/dom/blocks/if.js +12 -12
  241. package/esm/svelte/svelte/src/internal/client/dom/blocks/svelte-element.js +17 -17
  242. package/esm/svelte/svelte/src/internal/client/dom/elements/attributes.js +111 -113
  243. package/esm/svelte/svelte/src/internal/client/dom/elements/bindings/this.js +29 -16
  244. package/esm/svelte/svelte/src/internal/client/dom/elements/events.js +65 -60
  245. package/esm/svelte/svelte/src/internal/client/dom/elements/transitions.js +54 -54
  246. package/esm/svelte/svelte/src/internal/client/dom/operations.js +30 -22
  247. package/esm/svelte/svelte/src/internal/client/dom/reconciler.js +19 -4
  248. package/esm/svelte/svelte/src/internal/client/error-handling.js +17 -17
  249. package/esm/svelte/svelte/src/internal/client/errors.js +24 -20
  250. package/esm/svelte/svelte/src/internal/client/proxy.js +1 -1
  251. package/esm/svelte/svelte/src/internal/client/reactivity/async.js +60 -40
  252. package/esm/svelte/svelte/src/internal/client/reactivity/batch.js +273 -236
  253. package/esm/svelte/svelte/src/internal/client/reactivity/deriveds.js +110 -84
  254. package/esm/svelte/svelte/src/internal/client/reactivity/effects.js +160 -157
  255. package/esm/svelte/svelte/src/internal/client/reactivity/props.js +2 -1
  256. package/esm/svelte/svelte/src/internal/client/reactivity/sources.js +69 -70
  257. package/esm/svelte/svelte/src/internal/client/reactivity/status.js +12 -0
  258. package/esm/svelte/svelte/src/internal/client/reactivity/utils.js +16 -0
  259. package/esm/svelte/svelte/src/internal/client/render.js +68 -64
  260. package/esm/svelte/svelte/src/internal/client/runtime.js +174 -170
  261. package/esm/svelte/svelte/src/internal/shared/attributes.js +32 -32
  262. package/esm/svelte/svelte/src/internal/shared/utils.js +16 -15
  263. package/esm/svelte/svelte/src/motion/spring.js +7 -7
  264. package/esm/svelte/svelte/src/reactivity/map.js +17 -21
  265. package/esm/templates/entry.js +194 -159
  266. package/esm/templates/helpers.js +85 -75
  267. package/esm/templates/index.js +1 -1
  268. package/esm/templates/media.js +163 -131
  269. package/esm/utils/array.js +1 -1
  270. package/esm/utils/bounds.js +1 -1
  271. package/esm/utils/cache.js +1 -1
  272. package/esm/utils/canvasToBlob.js +1 -1
  273. package/esm/utils/date.js +1 -1
  274. package/esm/utils/debounce.js +1 -1
  275. package/esm/utils/dom.js +84 -74
  276. package/esm/utils/file.js +82 -69
  277. package/esm/utils/functionToBlob.js +1 -1
  278. package/esm/utils/keyboard.js +34 -0
  279. package/esm/utils/math.js +14 -7
  280. package/esm/utils/media.js +1 -1
  281. package/esm/utils/number.js +11 -16
  282. package/esm/utils/object.js +1 -1
  283. package/esm/utils/objectURL.js +1 -1
  284. package/esm/utils/placeholder.js +1 -1
  285. package/esm/utils/poly.js +1 -1
  286. package/esm/utils/pubsub.js +1 -1
  287. package/esm/utils/rect.js +39 -30
  288. package/esm/utils/size.js +1 -1
  289. package/esm/utils/sleep.js +1 -1
  290. package/esm/utils/string.js +25 -21
  291. package/esm/utils/support.js +5 -6
  292. package/esm/utils/test.js +1 -1
  293. package/esm/utils/thread.js +50 -43
  294. package/esm/utils/tree.js +1 -1
  295. package/esm/utils/url.js +2 -2
  296. package/esm/utils/vector.js +1 -1
  297. package/esm/utils/window.js +1 -1
  298. package/esm/utils/xhr.js +88 -113
  299. package/esm/workers/httpRequest.js +45 -0
  300. package/esm/workers/httpRequestWorker.js +37 -0
  301. package/esm/workers/readFile.js +14 -0
  302. package/esm/workers/readFileWorker.js +6 -0
  303. package/esm/workers/transformImage.js +16 -0
  304. package/esm/workers/transformImageWorker.js +8 -0
  305. package/package.json +17 -12
  306. package/types/core/entryTree.d.ts +6 -2
  307. package/types/core/extensionManager.d.ts +16 -2
  308. package/types/core/taskScheduler.d.ts +2 -2
  309. package/types/dev/index.d.ts +11 -3
  310. package/types/elements/FilePondDefault/index.d.ts +15 -5
  311. package/types/elements/FilePondEntryList/components/MediaImage/index.d.ts +1 -1
  312. package/types/elements/FilePondEntryList/components/MediaVideo/index.d.ts +1 -1
  313. package/types/elements/FilePondEntryList/contexts/appContext.d.ts +1 -0
  314. package/types/elements/FilePondEntryList/contexts/entryContext.d.ts +1 -0
  315. package/types/elements/FilePondEntryList/index.d.ts +10 -11
  316. package/types/elements/FilePondInput/index.d.ts +22 -11
  317. package/types/elements/common/animationPreference.svelte.d.ts +6 -3
  318. package/types/elements/common/nodeTree.d.ts +1 -1
  319. package/types/elements/common/string.d.ts +1 -1
  320. package/types/extensions/common/createTransformExtension.d.ts +1 -1
  321. package/types/extensions/data-url-store.d.ts +2 -0
  322. package/types/extensions/file-name-transform.d.ts +1 -1
  323. package/types/extensions/file-size-validator.d.ts +2 -0
  324. package/types/extensions/image-bitmap-transform.d.ts +32 -0
  325. package/types/extensions/index.d.ts +1 -0
  326. package/types/extensions/list-size-validator.d.ts +2 -0
  327. package/types/extensions/simulated-loader.d.ts +2 -0
  328. package/types/extensions/simulated-store.d.ts +1 -1
  329. package/types/extensions/url-loader.d.ts +2 -0
  330. package/types/locales/ar-ar.d.ts +101 -76
  331. package/types/locales/bn-bd.d.ts +101 -76
  332. package/types/locales/cs-cz.d.ts +101 -76
  333. package/types/locales/da-dk.d.ts +101 -76
  334. package/types/locales/de-de.d.ts +101 -76
  335. package/types/locales/el-gr.d.ts +101 -76
  336. package/types/locales/en-gb.d.ts +102 -82
  337. package/types/locales/es-es.d.ts +101 -76
  338. package/types/locales/fi-fi.d.ts +101 -76
  339. package/types/locales/fr-fr.d.ts +101 -76
  340. package/types/locales/hi-in.d.ts +101 -76
  341. package/types/locales/hu-hu.d.ts +101 -76
  342. package/types/locales/is-is.d.ts +101 -76
  343. package/types/locales/it-it.d.ts +101 -76
  344. package/types/locales/ja-jp.d.ts +101 -76
  345. package/types/locales/ko-kr.d.ts +101 -76
  346. package/types/locales/nb-no.d.ts +101 -76
  347. package/types/locales/nl-nl.d.ts +101 -76
  348. package/types/locales/pl-pl.d.ts +101 -76
  349. package/types/locales/pt-pt.d.ts +101 -76
  350. package/types/locales/sv-se.d.ts +101 -76
  351. package/types/locales/tr-tr.d.ts +101 -76
  352. package/types/locales/uk-ua.d.ts +101 -76
  353. package/types/locales/vi-vn.d.ts +101 -76
  354. package/types/locales/zh-cn.d.ts +101 -76
  355. package/types/templates/entry.d.ts +15 -16
  356. package/types/templates/helpers.d.ts +5 -1
  357. package/types/templates/media.d.ts +43 -6
  358. package/types/types/index.d.ts +9 -15
  359. package/types/utils/file.d.ts +7 -15
  360. package/types/utils/keyboard.d.ts +5 -0
  361. package/types/utils/rect.d.ts +5 -0
  362. package/types/utils/string.d.ts +1 -0
  363. package/types/utils/thread.d.ts +6 -0
  364. package/types/utils/xhr.d.ts +1 -0
  365. package/types/workers/httpRequest.d.ts +23 -0
  366. package/types/workers/readFile.d.ts +9 -0
  367. package/types/workers/transformImage.d.ts +6 -0
  368. package/types/elements/FilePondEntryList/components/EntryContext/index.d.ts +0 -1
package/esm/utils/dom.js CHANGED
@@ -1,104 +1,104 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
6
6
  */
7
7
  import { flattenTree as a } from "./tree.js";
8
- import { isBrowser as f, isFileEntry as l, isFile as p, isString as d, isNumber as c, isBoolean as y } from "./test.js";
9
- import { arrayRemoveFalsy as b, arrayItemsEqual as g } from "./array.js";
10
- function B(t, e, r) {
8
+ import { isFileEntry as p, isFile as l, isBrowser as f, isString as d, isNumber as c, isBoolean as b } from "./test.js";
9
+ import { arrayRemoveFalsy as y, arrayItemsEqual as A } from "./array.js";
10
+ function V(t, e, r) {
11
11
  t.dispatchEvent(new CustomEvent(e, r));
12
12
  }
13
- function D(t, e, r, n) {
14
- return t.addEventListener(e, r, n), () => E(t, e, r, n);
13
+ function j(t, e, r, i) {
14
+ return t.addEventListener(e, r, i), () => g(t, e, r, i);
15
15
  }
16
- function E(t, e, r, n) {
17
- t.removeEventListener(e, r, n);
16
+ function g(t, e, r, i) {
17
+ t.removeEventListener(e, r, i);
18
18
  }
19
- function L(t) {
19
+ function B(t) {
20
20
  t.stopPropagation();
21
21
  }
22
- const O = {
22
+ const D = {
23
23
  ENTER: "Enter"
24
24
  };
25
- function j(t, e) {
25
+ function L(t, e) {
26
26
  const r = e[t.key];
27
27
  r && r(t);
28
28
  }
29
29
  function R(t) {
30
30
  return typeof t == "string" ? document.querySelector(t) ?? void 0 : t;
31
31
  }
32
- function A(t, e) {
32
+ function E(t, e) {
33
33
  e.split(";").forEach((r) => {
34
- const [n, i] = r.split(":");
35
- if (!n.length || !i)
34
+ const [i, n] = r.split(":");
35
+ if (!i.length || !n)
36
36
  return;
37
- const [o, u] = i.split("!important");
37
+ const [o, u] = n.split("!important");
38
38
  t.style.setProperty(
39
- n,
39
+ i,
40
40
  o,
41
41
  typeof u == "string" ? "important" : void 0
42
42
  );
43
43
  });
44
44
  }
45
45
  function $(t, e = {}, r = []) {
46
- const n = document.createElement(t), i = Object.getOwnPropertyDescriptors(n.__proto__);
46
+ const i = document.createElement(t), n = Object.getOwnPropertyDescriptors(i.__proto__);
47
47
  for (const [o, u] of Object.entries(e))
48
- u !== void 0 && (o === "style" && typeof u == "string" ? A(n, u) : i[o]?.set || o === "textContent" || o === "innerHTML" || typeof u == "function" ? n[o] = u : n.setAttribute(o, `${u}`));
49
- return n.append(...b(r)), n;
48
+ u !== void 0 && (o === "style" && typeof u == "string" ? E(i, u) : n[o]?.set || o === "textContent" || o === "innerHTML" || typeof u == "function" ? i[o] = u : i.setAttribute(o, `${u}`));
49
+ return i.append(...y(r)), i;
50
50
  }
51
- function k(t, e, r) {
52
- const { customEventType: n = "update" } = r ?? {};
51
+ function z(t, e, r) {
52
+ const { customEventType: i = "update" } = r ?? {};
53
53
  if (!e || !e.length) {
54
54
  t.value = "";
55
55
  return;
56
56
  }
57
- const i = m(e);
58
- g([...i], [...t.files ?? []]) || (t.files = i, t.dispatchEvent(new CustomEvent(n)));
57
+ const n = h(e);
58
+ A([...n], [...t.files ?? []]) || (t.files = n, t.dispatchEvent(new CustomEvent(i)));
59
59
  }
60
- function m(t) {
60
+ function h(t) {
61
61
  const e = new DataTransfer();
62
- return a(t).filter((r) => l(r) && p(r.file)).forEach((r) => {
62
+ return a(t).filter((r) => p(r) && l(r.file)).forEach((r) => {
63
63
  e.items.add(r.file);
64
64
  }), e.files;
65
65
  }
66
- function z(t, e) {
67
- const { attempts: r = 5, interval: n = 16 } = {};
68
- return new Promise((i) => {
66
+ function H(t, e) {
67
+ const { attempts: r = 5, interval: i = 16 } = {};
68
+ return new Promise((n) => {
69
69
  if (t.audioTracks && t.audioTracks.length || t.mozHasAudio && t.mozHasAudio === !0)
70
- return i(!0);
70
+ return n(!0);
71
71
  if (c(t.webkitAudioDecodedByteCount)) {
72
72
  let o = function() {
73
73
  if (u++, t.webkitAudioDecodedByteCount > 0)
74
- return i(!0);
74
+ return n(!0);
75
75
  if (u >= r)
76
- return i(!1);
77
- setTimeout(o, n);
76
+ return n(!1);
77
+ setTimeout(o, i);
78
78
  }, u = 0;
79
79
  o();
80
80
  return;
81
81
  }
82
- i(!1);
82
+ n(!1);
83
83
  });
84
84
  }
85
- function H(t, e) {
86
- e && Object.entries(e).forEach(([r, n]) => {
87
- if (n === void 0) {
85
+ function _(t, e) {
86
+ e && Object.entries(e).forEach(([r, i]) => {
87
+ if (i === void 0) {
88
88
  delete t.dataset[r];
89
89
  return;
90
90
  }
91
- const i = `${n}`;
92
- t.dataset[r] !== i && (t.dataset[r] = i);
91
+ const n = `${i}`;
92
+ t.dataset[r] !== n && (t.dataset[r] = n);
93
93
  });
94
94
  }
95
- function _(t, e) {
96
- e && Object.entries(e).forEach(([r, n]) => {
97
- if (n === void 0) {
95
+ function k(t, e) {
96
+ e && Object.entries(e).forEach(([r, i]) => {
97
+ if (i === void 0) {
98
98
  t.style.removeProperty(r);
99
99
  return;
100
100
  }
101
- t.style.setProperty(r, `${n}`);
101
+ t.style.setProperty(r, `${i}`);
102
102
  });
103
103
  }
104
104
  function S(t, e) {
@@ -116,43 +116,52 @@ function x(t, e) {
116
116
  t.removeAttribute(r);
117
117
  });
118
118
  }
119
- function I(t, e, r) {
120
- d(r) || c(r) || y(r) ? t.setAttribute(e, `${r}`) : t.removeAttribute(e);
119
+ function I(t, e) {
120
+ Object.entries(e).forEach(([r, i]) => {
121
+ if (typeof i == "string") {
122
+ t.setAttribute(r, i);
123
+ return;
124
+ }
125
+ t[r] = i;
126
+ });
121
127
  }
122
128
  function K(t, e, r) {
123
- r ? t.setAttribute(e, "") : t.removeAttribute(e);
129
+ d(r) || c(r) || b(r) ? t.setAttribute(e, `${r}`) : t.removeAttribute(e);
130
+ }
131
+ function N(t, e, r) {
132
+ r ? t.hasAttribute(e) || t.setAttribute(e, "") : t.hasAttribute(e) && t.removeAttribute(e);
124
133
  }
125
- function h(t, e) {
134
+ function m(t, e) {
126
135
  if (t.hasAttribute(e)) {
127
136
  const r = t.getAttribute(e);
128
137
  return r === "" ? !0 : r;
129
138
  }
130
139
  }
131
- function N(t, ...e) {
140
+ function M(t, ...e) {
132
141
  for (const r of e)
133
142
  if (r.hasAttribute(t))
134
- return h(r, t);
143
+ return m(r, t);
135
144
  }
136
- function M(t) {
145
+ function G(t) {
137
146
  return t ? "" : void 0;
138
147
  }
139
- function G(t, e) {
148
+ function J(t, e) {
140
149
  if (!t.hasAttribute(e))
141
150
  return;
142
151
  const r = t.getAttribute(e);
143
152
  return /[a-z]$/i.test(r) ? r : parseFloat(r);
144
153
  }
145
- function J(t) {
154
+ function Q(t) {
146
155
  const e = new CSSStyleSheet();
147
156
  return e.replaceSync(t), P(e), e;
148
157
  }
149
158
  const s = /* @__PURE__ */ new Set();
150
- function v({ name: t, syntax: e, inherits: r, initialValue: n }) {
159
+ function v({ name: t, syntax: e, inherits: r, initialValue: i }) {
151
160
  s.has(t) || (CSS.registerProperty({
152
161
  name: t,
153
162
  syntax: e,
154
163
  inherits: r,
155
- initialValue: n ?? void 0
164
+ initialValue: i ?? void 0
156
165
  }), s.add(t));
157
166
  }
158
167
  function P(t) {
@@ -165,36 +174,37 @@ function C(t) {
165
174
  function F(t, e) {
166
175
  f() && (C(t) || customElements.define(t, e));
167
176
  }
168
- function Q(t = {}) {
177
+ function U(t = {}) {
169
178
  for (const [e, r] of Object.entries(t))
170
179
  F(e, r);
171
180
  }
172
181
  export {
173
- O as Key,
174
- D as addListener,
175
- M as boolToAttributeValue,
176
- J as createStyleSheet,
182
+ D as Key,
183
+ j as addListener,
184
+ G as boolToAttributeValue,
185
+ Q as createStyleSheet,
177
186
  F as defineCustomElement,
178
- Q as defineCustomElements,
179
- B as dispatchCustomEvent,
187
+ U as defineCustomElements,
188
+ V as dispatchCustomEvent,
180
189
  R as getAsElement,
181
- h as getAttribute,
182
- N as getAttributeFromElements,
183
- m as getFileListFromEntries,
184
- G as getFileSizeAttributeValue,
190
+ m as getAttribute,
191
+ M as getAttributeFromElements,
192
+ h as getFileListFromEntries,
193
+ J as getFileSizeAttributeValue,
185
194
  S as getStyleProperty,
186
195
  q as getStylePropertyAsNumber,
187
196
  $ as h,
188
197
  C as hasDefinedTag,
189
198
  x as removeAttributes,
190
- j as routeKeyboardEvent,
191
- K as setBooleanAttribute,
192
- k as setFileInputFilesFromEntries,
193
- I as setStringAttribute,
194
- A as setStyles,
195
- L as stopPropagation,
196
- E as unlisten,
197
- H as updateDataset,
198
- _ as updateStyles,
199
- z as videoHasAudioTrack
199
+ L as routeKeyboardEvent,
200
+ I as setAttributes,
201
+ N as setBooleanAttribute,
202
+ z as setFileInputFilesFromEntries,
203
+ K as setStringAttribute,
204
+ E as setStyles,
205
+ B as stopPropagation,
206
+ g as unlisten,
207
+ _ as updateDataset,
208
+ k as updateStyles,
209
+ H as videoHasAudioTrack
200
210
  };
package/esm/utils/file.js CHANGED
@@ -1,46 +1,54 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
6
6
  */
7
- import { isNumber as p, isString as l } from "./test.js";
7
+ import { isString as u, isNumber as f } from "./test.js";
8
8
  import { numberToFloat as d } from "./number.js";
9
- const f = {
10
- byte: 0,
11
- bytes: 0,
12
- KB: 1,
13
- MB: 2,
14
- GB: 3,
15
- TB: 4,
16
- PB: 5,
17
- EB: 6,
18
- ZB: 7,
19
- YB: 8
20
- }, m = ["name", "size", "type", "lastModified"];
21
- function B(t, e) {
22
- m.forEach((n) => {
9
+ const m = {
10
+ B: 0,
11
+ // B
12
+ K: 1,
13
+ // KB
14
+ M: 2,
15
+ // MB
16
+ G: 3,
17
+ // GB
18
+ T: 4,
19
+ // TB
20
+ P: 5,
21
+ // PB
22
+ E: 6,
23
+ // EB
24
+ Z: 7,
25
+ // ZB
26
+ Y: 8
27
+ // YB
28
+ }, g = Object.keys(m), F = ["name", "size", "type", "lastModified"];
29
+ function E(t, e) {
30
+ F.forEach((n) => {
23
31
  e[n] = t[n];
24
32
  });
25
33
  }
26
- function x(t, e) {
34
+ function b(t, e) {
27
35
  return new File([t], e, { type: t.type, lastModified: t.lastModified });
28
36
  }
29
- function E(t) {
37
+ function v(t) {
30
38
  return t.trim().replace(/[<>:;,"/\\|?*\x00-\x1F]/gi, "");
31
39
  }
32
- function T(t) {
33
- return l(t) ? /(?:\.([^.]+))?$/.exec(t)?.[0] : void 0;
40
+ function A(t) {
41
+ return u(t) ? /(?:\.([^.]+))?$/.exec(t)?.[0] : void 0;
34
42
  }
35
- function b(t) {
36
- return l(t) ? t.replace(/\.[^/.]+$/, "") : void 0;
43
+ function I(t) {
44
+ return u(t) ? t.replace(/\.[^/.]+$/, "") : void 0;
37
45
  }
38
- const y = { plain: "txt" };
39
- function v(t, e = {}) {
40
- if (l(t) && t.length) {
46
+ const M = { plain: "txt" };
47
+ function S(t, e = {}) {
48
+ if (u(t) && t.length) {
41
49
  const n = (t.match(/\/(?:x-)?([0-9a-z]+)(?:-compressed)?/i) || [])[1];
42
50
  if (n)
43
- return `.${{ ...y, ...e }[n] || n}`;
51
+ return `.${{ ...M, ...e }[n] || n}`;
44
52
  }
45
53
  }
46
54
  function P(t) {
@@ -52,68 +60,73 @@ function z(t, e) {
52
60
  lastModified: e.lastModified ? e.lastModified : t.lastModified
53
61
  });
54
62
  }
55
- function A(t, e, n) {
56
- const { type: o = t.type, lastModified: i = (/* @__PURE__ */ new Date()).getTime() } = {};
63
+ function B(t, e, n) {
64
+ const { type: o = t.type, lastModified: i = (/* @__PURE__ */ new Date()).getTime() } = n ?? {};
57
65
  return new File([t], e, {
58
66
  type: o,
59
67
  lastModified: i
60
68
  });
61
69
  }
62
- function S(t, e = !1, n = void 0, o = f) {
63
- if (p(t))
70
+ function _(t, e) {
71
+ const { locale: n = void 0 } = {};
72
+ if (f(t))
64
73
  return t;
65
- const i = (t.match(/[\d.,]+/) || [])[0];
66
- if (!i)
74
+ const o = (t.match(/[\d.,]+/) || [])[0];
75
+ if (!o)
67
76
  throw new Error(`naturalFileSizeToBytes: Invalid natural file size ${t}`);
68
- const a = t.replace(i, "").trim();
69
- return d(i, n) * Math.pow(e ? 1024 : 1e3, o[a]);
77
+ const i = d(o, n), a = t.replace(o, "").trim(), r = a[1] === "i" ? 1024 : 1e3, c = m[a[0]];
78
+ return i * Math.pow(r, c);
70
79
  }
71
- function $(t, e = !1, n = {
72
- maximumFractionDigits: 0
73
- }, o = void 0, i = Object.keys(f)) {
74
- const a = e ? 1024 : 1e3, s = t === 0 ? 0 : Math.floor(Math.log(t) / Math.log(a));
75
- return `${new Intl.NumberFormat(o, { style: "decimal", ...n }).format(
76
- t / Math.pow(a, s)
77
- )} ${i[t === 1 ? 0 : s + 1]}`;
80
+ function G(t, e) {
81
+ const { locale: n = void 0, byteUnits: o = "mega", ...i } = e || {}, a = o === "mega", r = a ? 1e3 : 1024, c = t === 0 ? 0 : Math.floor(Math.log(t) / Math.log(r));
82
+ return `${new Intl.NumberFormat(n, {
83
+ style: "decimal",
84
+ maximumFractionDigits: 0,
85
+ ...i
86
+ }).format(t / Math.pow(r, c))} ${g[c] + (a ? "" : "i") + (c > 0 ? "B" : "")}`;
78
87
  }
79
- const M = (t, e) => e.every((n, o) => t[o] === n), h = (t, e) => (n) => M(n, e) && t, c = "application/", r = "image/";
88
+ function $(t) {
89
+ if (!(f(t) || !t))
90
+ return /i/.test(t) ? "mebi" : "mega";
91
+ }
92
+ const y = (t, e) => e.every((n, o) => t[o] === n), h = (t, e) => (n) => y(n, e) && t, l = "application/", s = "image/";
80
93
  [
81
- [r + "jpeg", [255, 216, 255]],
82
- [r + "png", [137, 80, 78, 71]],
83
- [r + "gif", [71, 73, 70]],
84
- [r + "tiff", [73, 73, 42, 0]],
85
- [r + "psd", [56, 66, 80, 83]],
86
- [r + "bmp", [66, 77]],
87
- [c + "pdf", [37, 80, 68, 70]],
88
- [c + "zip", [80, 75, 4, 4]],
89
- [c + "ogg", [79, 103, 103, 83]],
90
- [c + "x-rar-compressed", [82, 97, 114, 33, 26, 7]]
94
+ [s + "jpeg", [255, 216, 255]],
95
+ [s + "png", [137, 80, 78, 71]],
96
+ [s + "gif", [71, 73, 70]],
97
+ [s + "tiff", [73, 73, 42, 0]],
98
+ [s + "psd", [56, 66, 80, 83]],
99
+ [s + "bmp", [66, 77]],
100
+ [l + "pdf", [37, 80, 68, 70]],
101
+ [l + "zip", [80, 75, 4, 4]],
102
+ [l + "ogg", [79, 103, 103, 83]],
103
+ [l + "x-rar-compressed", [82, 97, 114, 33, 26, 7]]
91
104
  ].map((t) => h(...t));
92
- async function u(t, e = 64) {
105
+ async function p(t, e = 64) {
93
106
  if (e <= 0)
94
107
  throw new Error("getApproximateBlobHash: hashSize needs to be a positive non zero integer");
95
- const n = Math.round(t.size * 0.5), o = Math.min(e, t.size), i = Math.floor(o / 2), a = Math.ceil(o / 2), s = t.slice(n - i, n + a);
96
- return new Uint8Array(await s.arrayBuffer()).join("");
108
+ const n = Math.round(t.size * 0.5), o = Math.min(e, t.size), i = Math.floor(o / 2), a = Math.ceil(o / 2), r = t.slice(n - i, n + a);
109
+ return new Uint8Array(await r.arrayBuffer()).join("");
97
110
  }
98
- async function I(t, e, n) {
111
+ async function N(t, e, n) {
99
112
  if (!t || !e)
100
113
  return !1;
101
- const o = await u(t, n), i = await u(e, n);
114
+ const o = await p(t, n), i = await p(e, n);
102
115
  return o === i;
103
116
  }
104
117
  export {
105
- f as DEFAULT_BYTE_SIZES,
106
- A as blobToFile,
107
- $ as bytesToNaturalFileSize,
118
+ B as blobToFile,
119
+ G as bytesToNaturalFileSize,
108
120
  P as cloneFile,
109
121
  z as cloneFileWithOptions,
110
- B as copyFilePropsToObject,
111
- I as filesAreProbablyEqual,
112
- u as getApproximateBlobHash,
113
- T as getExtensionFromFilename,
114
- v as getExtensionFromMimeType,
115
- b as getFilenameWithoutExtension,
116
- S as naturalFileSizeToBytes,
117
- E as sanitizeFilename,
118
- x as updateFilename
122
+ E as copyFilePropsToObject,
123
+ N as filesAreProbablyEqual,
124
+ p as getApproximateBlobHash,
125
+ A as getExtensionFromFilename,
126
+ S as getExtensionFromMimeType,
127
+ I as getFilenameWithoutExtension,
128
+ $ as getFormatFromFileSize,
129
+ _ as naturalFileSizeToBytes,
130
+ v as sanitizeFilename,
131
+ b as updateFilename
119
132
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -0,0 +1,34 @@
1
+ /*!
2
+ * FilePond v5.0.0-beta.21
3
+ * Copyright (c) 2017-2026 Pqina B.V.
4
+ * Released under the MIT License
5
+ * https://filepond.com
6
+ */
7
+ function t(r) {
8
+ return [" ", "Enter"].includes(r.key);
9
+ }
10
+ function n(r) {
11
+ return r.key === "Escape";
12
+ }
13
+ function o(r) {
14
+ return r.key === "Tab";
15
+ }
16
+ function i(r) {
17
+ return r.key.startsWith("Arrow");
18
+ }
19
+ const e = {
20
+ ArrowUp: "up",
21
+ ArrowDown: "down",
22
+ ArrowLeft: "left",
23
+ ArrowRight: "right"
24
+ };
25
+ function c(r) {
26
+ return e[r.key];
27
+ }
28
+ export {
29
+ c as getDirectionFromKeyboardEvent,
30
+ t as isActivationKeyboardEvent,
31
+ i as isArrowKeyboardEvent,
32
+ n as isCancelKeyboardEvent,
33
+ o as isTabKeyboardEvent
34
+ };
package/esm/utils/math.js CHANGED
@@ -1,25 +1,32 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
6
6
  */
7
- function a(n, t = 0, r = 1) {
7
+ function o(n, t = 0, r = 1) {
8
8
  return Math.max(t, Math.min(n, r));
9
9
  }
10
- function o(n, t) {
10
+ function a(n, t) {
11
11
  const r = Math.pow(10, t);
12
12
  return Math.round(n * r) / r;
13
13
  }
14
14
  function e(n = 0, t = 1, r = Math.random) {
15
15
  return n + r() * (t - n);
16
16
  }
17
- function u(n, t) {
17
+ function u(n = 1) {
18
+ return function() {
19
+ const t = Math.sin(n++) * 1e4;
20
+ return t - Math.floor(t);
21
+ };
22
+ }
23
+ function c(n, t) {
18
24
  return t * Math.sign(n) * Math.log10(1 + Math.abs(n) / t);
19
25
  }
20
26
  export {
21
- a as clamp,
22
- u as elastify,
27
+ o as clamp,
28
+ u as createRandomish,
29
+ c as elastify,
23
30
  e as randomNumberBetween,
24
- o as roundPrecision
31
+ a as roundPrecision
25
32
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,28 +1,23 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
6
6
  */
7
- import { getRuntimeDefaultLocale as m } from "./string.js";
8
- import { isString as s, isArray as u } from "./test.js";
7
+ import { getRuntimeDefaultLocale as i } from "./string.js";
8
+ import { isString as s, isArray as f } from "./test.js";
9
9
  const a = {};
10
- function p(r, t) {
11
- let e, n;
12
- const o = s(t) ? t : u(t) ? t.join(",") : m();
10
+ function u(m, t) {
11
+ let r, e;
12
+ const o = s(t) ? t : f(t) ? t.join(",") : i();
13
13
  if (a[o])
14
- [e, n] = a[o];
14
+ [r, e] = a[o];
15
15
  else {
16
- const i = new Intl.NumberFormat(t);
17
- e = i.format(1337).replace(/\d/g, ""), n = i.format(1.5).replace(/\d/g, ""), a[o] = [e, n];
16
+ const n = new Intl.NumberFormat(t);
17
+ r = n.format(1337).replace(/\d/g, ""), e = n.format(1.5).replace(/\d/g, ""), a[o] = [r, e];
18
18
  }
19
- return parseFloat(r.trim().split(e).join("").replace(n, "."));
20
- }
21
- function c(r, t = 10) {
22
- if (r != null)
23
- return parseInt(r, t);
19
+ return parseFloat(m.trim().split(r).join("").replace(e, "."));
24
20
  }
25
21
  export {
26
- c as anyToInt,
27
- p as numberToFloat
22
+ u as numberToFloat
28
23
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
package/esm/utils/poly.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.2
2
+ * FilePond v5.0.0-beta.21
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com