filepond 5.0.0-beta.21 → 5.0.0-beta.23

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 (237) hide show
  1. package/cdn/assets/index.js +1 -1
  2. package/cdn/locales/ar-ar.js +1 -1
  3. package/cdn/locales/bn-bd.js +1 -1
  4. package/cdn/locales/cs-cz.js +1 -1
  5. package/cdn/locales/da-dk.js +1 -1
  6. package/cdn/locales/de-de.js +1 -1
  7. package/cdn/locales/el-gr.js +1 -1
  8. package/cdn/locales/en-gb.js +1 -1
  9. package/cdn/locales/es-es.js +1 -1
  10. package/cdn/locales/fi-fi.js +1 -1
  11. package/cdn/locales/fr-fr.js +1 -1
  12. package/cdn/locales/hi-in.js +1 -1
  13. package/cdn/locales/hu-hu.js +1 -1
  14. package/cdn/locales/index.js +1 -1
  15. package/cdn/locales/is-is.js +1 -1
  16. package/cdn/locales/it-it.js +1 -1
  17. package/cdn/locales/ja-jp.js +1 -1
  18. package/cdn/locales/ko-kr.js +1 -1
  19. package/cdn/locales/nb-no.js +1 -1
  20. package/cdn/locales/nl-nl.js +1 -1
  21. package/cdn/locales/pl-pl.js +1 -1
  22. package/cdn/locales/pt-pt.js +1 -1
  23. package/cdn/locales/sv-se.js +1 -1
  24. package/cdn/locales/tr-tr.js +1 -1
  25. package/cdn/locales/uk-ua.js +1 -1
  26. package/cdn/locales/vi-vn.js +1 -1
  27. package/cdn/locales/zh-cn.js +1 -1
  28. package/cdn/main.js +2 -2
  29. package/cdn/workers/httpRequest.js +1 -1
  30. package/cdn/workers/readFile.js +1 -1
  31. package/cdn/workers/transformImage.js +1 -1
  32. package/esm/assets/index.js +1 -1
  33. package/esm/common/console.js +1 -1
  34. package/esm/common/entry.js +1 -1
  35. package/esm/common/perceivedPerformanceProxy.js +1 -1
  36. package/esm/common/readEntriesFromDataTransfer.js +1 -1
  37. package/esm/common/ssr.js +1 -1
  38. package/esm/common/status.js +1 -1
  39. package/esm/core/entryTree.js +1 -1
  40. package/esm/core/extensionManager.js +29 -29
  41. package/esm/core/taskScheduler.js +106 -100
  42. package/esm/dev/index.js +1 -1
  43. package/esm/elements/FilePondDefault/index.css.js +1 -1
  44. package/esm/elements/FilePondDefault/index.js +1 -1
  45. package/esm/elements/FilePondDropArea/index.css.js +1 -1
  46. package/esm/elements/FilePondDropArea/index.js +1 -1
  47. package/esm/elements/FilePondDropArea/index.svelte.js +1 -1
  48. package/esm/elements/FilePondDropIndicator/index.css.js +1 -1
  49. package/esm/elements/FilePondDropIndicator/index.js +1 -1
  50. package/esm/elements/FilePondDropIndicator/index.svelte.js +1 -1
  51. package/esm/elements/FilePondEntryList/components/Entry/index.css.js +1 -1
  52. package/esm/elements/FilePondEntryList/components/Entry/index.js +1 -1
  53. package/esm/elements/FilePondEntryList/components/Entry/index.svelte.js +1 -1
  54. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.css.js +1 -1
  55. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.js +1 -1
  56. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js +1 -1
  57. package/esm/elements/FilePondEntryList/components/EntryList/index.css.js +1 -1
  58. package/esm/elements/FilePondEntryList/components/EntryList/index.js +1 -1
  59. package/esm/elements/FilePondEntryList/components/EntryList/index.svelte.js +1 -1
  60. package/esm/elements/FilePondEntryList/components/EntryListItem/index.css.js +1 -1
  61. package/esm/elements/FilePondEntryList/components/EntryListItem/index.js +1 -1
  62. package/esm/elements/FilePondEntryList/components/EntryListItem/index.svelte.js +1 -1
  63. package/esm/elements/FilePondEntryList/components/EntryListItemPlaceholder/index.svelte.js +1 -1
  64. package/esm/elements/FilePondEntryList/components/EntryStatus/index.css.js +1 -1
  65. package/esm/elements/FilePondEntryList/components/EntryStatus/index.js +1 -1
  66. package/esm/elements/FilePondEntryList/components/EntryStatus/index.svelte.js +1 -1
  67. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRenderer.svelte.js +43 -43
  68. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRendererCache.js +1 -1
  69. package/esm/elements/FilePondEntryList/components/MediaImage/index.css.js +1 -1
  70. package/esm/elements/FilePondEntryList/components/MediaImage/index.js +1 -1
  71. package/esm/elements/FilePondEntryList/components/MediaImage/index.svelte.js +1 -1
  72. package/esm/elements/FilePondEntryList/components/MediaPane/index.css.js +1 -1
  73. package/esm/elements/FilePondEntryList/components/MediaPane/index.js +1 -1
  74. package/esm/elements/FilePondEntryList/components/MediaPane/index.svelte.js +1 -1
  75. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.css.js +1 -1
  76. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.js +1 -1
  77. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js +1 -1
  78. package/esm/elements/FilePondEntryList/components/MediaVideo/index.css.js +1 -1
  79. package/esm/elements/FilePondEntryList/components/MediaVideo/index.js +1 -1
  80. package/esm/elements/FilePondEntryList/components/MediaVideo/index.svelte.js +54 -51
  81. package/esm/elements/FilePondEntryList/contexts/appContext.js +1 -1
  82. package/esm/elements/FilePondEntryList/contexts/dragContext.js +1 -1
  83. package/esm/elements/FilePondEntryList/contexts/dropContext.js +1 -1
  84. package/esm/elements/FilePondEntryList/contexts/entryContext.js +1 -1
  85. package/esm/elements/FilePondEntryList/contexts/springElementTreeContext.js +1 -1
  86. package/esm/elements/FilePondEntryList/index.css.js +1 -1
  87. package/esm/elements/FilePondEntryList/index.js +1 -1
  88. package/esm/elements/FilePondEntryList/index.svelte.js +1 -1
  89. package/esm/elements/FilePondInput/index.css.js +1 -1
  90. package/esm/elements/FilePondInput/index.js +60 -43
  91. package/esm/elements/FilePondSvelteComponent/index.svelte.js +1 -1
  92. package/esm/elements/attachments/dragarea.js +1 -1
  93. package/esm/elements/attachments/droparea.js +1 -1
  94. package/esm/elements/attachments/measurable.js +1 -1
  95. package/esm/elements/attachments/resizable.js +1 -1
  96. package/esm/elements/attachments/transitions.js +1 -1
  97. package/esm/elements/common/animationGuard.js +1 -1
  98. package/esm/elements/common/animationPreference.svelte.js +1 -1
  99. package/esm/elements/common/dragDrop.js +1 -1
  100. package/esm/elements/common/event.js +1 -1
  101. package/esm/elements/common/extendStyles.js +1 -1
  102. package/esm/elements/common/getClosestElement.js +1 -1
  103. package/esm/elements/common/html.js +1 -1
  104. package/esm/elements/common/nodeTree.js +1 -1
  105. package/esm/elements/common/store.svelte.js +1 -1
  106. package/esm/elements/common/string.js +1 -1
  107. package/esm/elements/common/transition.js +1 -1
  108. package/esm/elements/components/BooleanInput/index.css.js +1 -1
  109. package/esm/elements/components/BooleanInput/index.js +1 -1
  110. package/esm/elements/components/BooleanInput/index.svelte.js +1 -1
  111. package/esm/elements/components/Button/index.css.js +1 -1
  112. package/esm/elements/components/Button/index.js +1 -1
  113. package/esm/elements/components/Button/index.svelte.js +1 -1
  114. package/esm/elements/components/ElementPane/index.css.js +1 -1
  115. package/esm/elements/components/ElementPane/index.js +1 -1
  116. package/esm/elements/components/ElementPane/index.svelte.js +1 -1
  117. package/esm/elements/components/ElementSkeleton/index.css.js +1 -1
  118. package/esm/elements/components/ElementSkeleton/index.js +1 -1
  119. package/esm/elements/components/ElementSkeleton/index.svelte.js +1 -1
  120. package/esm/elements/components/FilenameInput/index.css.js +1 -1
  121. package/esm/elements/components/FilenameInput/index.js +1 -1
  122. package/esm/elements/components/FilenameInput/index.svelte.js +1 -1
  123. package/esm/elements/components/NodeList/index.svelte.js +1 -1
  124. package/esm/elements/components/ProgressIndicator/index.css.js +1 -1
  125. package/esm/elements/components/ProgressIndicator/index.js +1 -1
  126. package/esm/elements/components/ProgressIndicator/index.svelte.js +1 -1
  127. package/esm/elements/components/RangeInput/index.css.js +1 -1
  128. package/esm/elements/components/RangeInput/index.js +1 -1
  129. package/esm/elements/components/RangeInput/index.svelte.js +1 -1
  130. package/esm/elements/components/SpringElement/index.svelte.js +1 -1
  131. package/esm/elements/components/TextInput/index.css.js +1 -1
  132. package/esm/elements/components/TextInput/index.js +1 -1
  133. package/esm/elements/components/TextInput/index.svelte.js +1 -1
  134. package/esm/extensions/blob-loader.js +1 -1
  135. package/esm/extensions/canvas-loader.js +1 -1
  136. package/esm/extensions/chunked-upload-store.js +1 -1
  137. package/esm/extensions/clipboard-source.js +1 -1
  138. package/esm/extensions/common/createExtension.js +1 -1
  139. package/esm/extensions/common/createStoreExtension.js +39 -39
  140. package/esm/extensions/common/createTransformExtension.js +57 -56
  141. package/esm/extensions/common/createValidatorExtension.js +64 -82
  142. package/esm/extensions/console-view.js +1 -1
  143. package/esm/extensions/data-transfer-loader.js +1 -1
  144. package/esm/extensions/data-url-store.js +1 -1
  145. package/esm/extensions/drag-drop-source.js +1 -1
  146. package/esm/extensions/dropbox-source.js +1 -1
  147. package/esm/extensions/entry-list-view.js +1 -1
  148. package/esm/extensions/file-extension-validator.js +1 -1
  149. package/esm/extensions/file-input-source.js +1 -1
  150. package/esm/extensions/file-input-store.js +1 -1
  151. package/esm/extensions/file-mime-type-validator.js +1 -1
  152. package/esm/extensions/file-name-transform.js +1 -1
  153. package/esm/extensions/file-name-validator.js +1 -1
  154. package/esm/extensions/file-size-validator.js +1 -1
  155. package/esm/extensions/form-post-store.js +1 -1
  156. package/esm/extensions/image-bitmap-transform.js +32 -32
  157. package/esm/extensions/index.js +1 -1
  158. package/esm/extensions/list-count-validator.js +1 -1
  159. package/esm/extensions/list-size-validator.js +1 -1
  160. package/esm/extensions/media-resolution-validator.js +1 -1
  161. package/esm/extensions/object-url-store.js +1 -1
  162. package/esm/extensions/simulated-loader.js +1 -1
  163. package/esm/extensions/simulated-store.js +61 -38
  164. package/esm/extensions/text-input-store.js +1 -1
  165. package/esm/extensions/url-loader.js +1 -1
  166. package/esm/extensions/value-callback-store.js +13 -13
  167. package/esm/index.js +1 -1
  168. package/esm/locales/ar-ar.js +1 -1
  169. package/esm/locales/bn-bd.js +1 -1
  170. package/esm/locales/cs-cz.js +1 -1
  171. package/esm/locales/da-dk.js +1 -1
  172. package/esm/locales/de-de.js +1 -1
  173. package/esm/locales/el-gr.js +1 -1
  174. package/esm/locales/en-gb.js +1 -1
  175. package/esm/locales/es-es.js +1 -1
  176. package/esm/locales/fi-fi.js +1 -1
  177. package/esm/locales/fr-fr.js +1 -1
  178. package/esm/locales/hi-in.js +1 -1
  179. package/esm/locales/hu-hu.js +1 -1
  180. package/esm/locales/index.js +1 -1
  181. package/esm/locales/is-is.js +1 -1
  182. package/esm/locales/it-it.js +1 -1
  183. package/esm/locales/ja-jp.js +1 -1
  184. package/esm/locales/ko-kr.js +1 -1
  185. package/esm/locales/nb-no.js +1 -1
  186. package/esm/locales/nl-nl.js +1 -1
  187. package/esm/locales/pl-pl.js +1 -1
  188. package/esm/locales/pt-pt.js +1 -1
  189. package/esm/locales/sv-se.js +1 -1
  190. package/esm/locales/tr-tr.js +1 -1
  191. package/esm/locales/uk-ua.js +1 -1
  192. package/esm/locales/vi-vn.js +1 -1
  193. package/esm/locales/zh-cn.js +1 -1
  194. package/esm/templates/entry.js +1 -1
  195. package/esm/templates/helpers.js +1 -1
  196. package/esm/templates/index.js +1 -1
  197. package/esm/templates/media.js +111 -118
  198. package/esm/utils/array.js +1 -1
  199. package/esm/utils/bounds.js +1 -1
  200. package/esm/utils/cache.js +1 -1
  201. package/esm/utils/canvasToBlob.js +1 -1
  202. package/esm/utils/date.js +1 -1
  203. package/esm/utils/debounce.js +1 -1
  204. package/esm/utils/dom.js +1 -1
  205. package/esm/utils/file.js +1 -1
  206. package/esm/utils/functionToBlob.js +1 -1
  207. package/esm/utils/keyboard.js +1 -1
  208. package/esm/utils/math.js +1 -1
  209. package/esm/utils/media.js +1 -1
  210. package/esm/utils/number.js +1 -1
  211. package/esm/utils/object.js +1 -1
  212. package/esm/utils/objectURL.js +1 -1
  213. package/esm/utils/placeholder.js +1 -1
  214. package/esm/utils/poly.js +1 -1
  215. package/esm/utils/pubsub.js +1 -1
  216. package/esm/utils/rect.js +1 -1
  217. package/esm/utils/size.js +13 -9
  218. package/esm/utils/sleep.js +1 -1
  219. package/esm/utils/string.js +1 -1
  220. package/esm/utils/support.js +1 -1
  221. package/esm/utils/test.js +1 -1
  222. package/esm/utils/thread.js +1 -1
  223. package/esm/utils/tree.js +1 -1
  224. package/esm/utils/url.js +1 -1
  225. package/esm/utils/vector.js +1 -1
  226. package/esm/utils/window.js +1 -1
  227. package/esm/utils/xhr.js +1 -1
  228. package/esm/workers/httpRequest.js +1 -1
  229. package/esm/workers/readFile.js +1 -1
  230. package/esm/workers/transformImage.js +1 -1
  231. package/package.json +2 -1
  232. package/types/core/taskScheduler.d.ts +3 -3
  233. package/types/elements/FilePondEntryList/index.d.ts +1 -1
  234. package/types/extensions/simulated-store.d.ts +6 -0
  235. package/types/templates/media.d.ts +6 -18
  236. package/types/utils/array.d.ts +1 -1
  237. package/types/utils/size.d.ts +2 -0
@@ -1,33 +1,33 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
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 "../elements/FilePondEntryList/components/MediaVideo/index.js";
8
- import { createEntryMatcher as F, createButton as c, hasExtensionWithStatusCode as u, createSpringPane as l, whenEntryIs as R, whenEntryNotHasStatus as M, whenEntryHasAction as h, getExtensionByAction as I, hasExtensionWithStatusType as _, hasExtensionWithProp as B } from "./helpers.js";
8
+ import { createEntryMatcher as S, createButton as c, hasExtensionWithStatusCode as l, createSpringPane as m, whenEntryIs as y, whenEntryHasAction as b, whenEntryNotHasStatus as h, getExtensionByAction as M, hasExtensionWithStatusType as T, hasExtensionWithProp as O } from "./helpers.js";
9
9
  import "../elements/components/RangeInput/index.js";
10
- import { supportsRequestFullscreen as C } from "../utils/support.js";
11
- import { toTime as U } from "../utils/date.js";
12
- import { nodeTree as d } from "../elements/common/nodeTree.js";
13
- import { boolToAttributeValue as E } from "../utils/dom.js";
10
+ import { supportsRequestFullscreen as A } from "../utils/support.js";
11
+ import { toTime as v } from "../utils/date.js";
12
+ import { nodeTree as s } from "../elements/common/nodeTree.js";
13
+ import { boolToAttributeValue as u } from "../utils/dom.js";
14
14
  import "../elements/FilePondEntryList/components/MediaTimeIndicator/index.js";
15
15
  import "../elements/FilePondEntryList/components/EntryActivityIndicator/index.js";
16
16
  import "../elements/FilePondEntryList/components/MediaImage/index.js";
17
- import a from "../elements/components/SpringElement/index.svelte.js";
17
+ import o from "../elements/components/SpringElement/index.svelte.js";
18
18
  import "../elements/components/ElementPane/index.js";
19
- import w from "../elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js";
20
- import V from "../elements/FilePondEntryList/components/MediaImage/index.svelte.js";
21
- import N from "../elements/FilePondEntryList/components/MediaVideo/index.svelte.js";
22
- import x from "../elements/components/RangeInput/index.svelte.js";
23
- import L from "../elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js";
24
- import j from "../elements/components/ElementPane/index.svelte.js";
25
- function T(e) {
19
+ import P from "../elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js";
20
+ import F from "../elements/FilePondEntryList/components/MediaImage/index.svelte.js";
21
+ import I from "../elements/FilePondEntryList/components/MediaVideo/index.svelte.js";
22
+ import _ from "../elements/components/RangeInput/index.svelte.js";
23
+ import B from "../elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js";
24
+ import U from "../elements/components/ElementPane/index.svelte.js";
25
+ function f(e) {
26
26
  const { action: t = "editMedia" } = e ?? {};
27
27
  return {
28
28
  key: "button-media-edit",
29
- component: w,
30
- props: ({ id: n, entry: r }, { updateEntryState: o }) => ({
29
+ component: P,
30
+ props: ({ id: n, entry: r }, { updateEntryState: i }) => ({
31
31
  buttonPart: "media-button",
32
32
  states: [
33
33
  {
@@ -40,12 +40,12 @@ function T(e) {
40
40
  ],
41
41
  button: c("button-transform-activate", {
42
42
  icon: "mediaEdit",
43
- disabled: u(r, [
43
+ disabled: l(r, [
44
44
  "STORE_QUEUED",
45
45
  "STORE_BUSY",
46
46
  "TRANSFORM_BUSY"
47
47
  ]),
48
- onclick: () => o?.(n, { [t]: !0 })
48
+ onclick: () => i?.(n, { [t]: !0 })
49
49
  })
50
50
  },
51
51
  {
@@ -53,12 +53,12 @@ function T(e) {
53
53
  progress: !0,
54
54
  button: c("button-transform-abort", {
55
55
  icon: "abort",
56
- disabled: u(r, [
56
+ disabled: l(r, [
57
57
  "STORE_QUEUED",
58
58
  "STORE_BUSY",
59
59
  "TRANSFORM_BUSY"
60
60
  ]),
61
- onclick: () => o(n, {
61
+ onclick: () => i(n, {
62
62
  [t]: null
63
63
  })
64
64
  })
@@ -67,28 +67,28 @@ function T(e) {
67
67
  })
68
68
  };
69
69
  }
70
- function O(e) {
70
+ function k(e) {
71
71
  const { action: t = "editMedia" } = e ?? {};
72
72
  return c("button-media-reset", {
73
- props: ({ id: n, entry: r }, { updateEntryState: o }) => ({
73
+ props: ({ id: n, entry: r }, { updateEntryState: i }) => ({
74
74
  part: "media-button",
75
- disabled: u(r, [
75
+ disabled: l(r, [
76
76
  "STORE_QUEUED",
77
77
  "STORE_BUSY",
78
78
  "TRANSFORM_PREPARE",
79
79
  "TRANSFORM_BUSY"
80
- ]) || !I(r, t)?.input,
80
+ ]) || !M(r, t)?.input,
81
81
  icon: "mediaReset",
82
82
  label: "reset",
83
83
  title: "reset",
84
- onclick: () => o?.(n, { [t]: !1 })
84
+ onclick: () => i?.(n, { [t]: !1 })
85
85
  })
86
86
  });
87
87
  }
88
- function v(e) {
88
+ function E(e) {
89
89
  return {
90
90
  key: e,
91
- component: j,
91
+ component: U,
92
92
  spring: ({ visualRect: t }) => ({
93
93
  opacity: {
94
94
  value: t.height > 0 ? 1 : 0,
@@ -108,11 +108,11 @@ function v(e) {
108
108
  })
109
109
  };
110
110
  }
111
- function Y(e) {
111
+ function C(e) {
112
112
  const { objectFit: t = void 0 } = e ?? {};
113
113
  return {
114
114
  key: "entry-image-spring",
115
- component: a,
115
+ component: o,
116
116
  props: {
117
117
  class: "entry-media",
118
118
  part: "entry-media"
@@ -120,16 +120,16 @@ function Y(e) {
120
120
  children: [
121
121
  {
122
122
  key: "entry-image",
123
- component: V,
123
+ component: F,
124
124
  props: e
125
125
  },
126
126
  {
127
127
  if: {
128
128
  test: () => t === "contain",
129
- then: v("entry-image-pane")
129
+ then: E("entry-image-pane")
130
130
  }
131
131
  },
132
- l({
132
+ m({
133
133
  key: "entry-image-overlay",
134
134
  class: "media-overlay",
135
135
  part: "media-overlay"
@@ -137,18 +137,18 @@ function Y(e) {
137
137
  ]
138
138
  };
139
139
  }
140
- function S({ entry: e }) {
140
+ function g({ entry: e }) {
141
141
  const { media: t, video: n } = e.extension.EntryListView || {};
142
142
  return {
143
143
  media: t,
144
144
  video: n
145
145
  };
146
146
  }
147
- function D(e) {
147
+ function N(e) {
148
148
  const { objectFit: t = void 0 } = e ?? {};
149
149
  return {
150
150
  key: "entry-video-spring",
151
- component: a,
151
+ component: o,
152
152
  props: {
153
153
  class: "entry-media",
154
154
  part: "entry-media"
@@ -156,16 +156,16 @@ function D(e) {
156
156
  children: [
157
157
  {
158
158
  key: "entry-video",
159
- component: N,
159
+ component: I,
160
160
  props: e
161
161
  },
162
162
  {
163
163
  if: {
164
164
  test: () => t === "contain",
165
- then: v("entry-video-pane")
165
+ then: E("entry-video-pane")
166
166
  }
167
167
  },
168
- l({
168
+ m({
169
169
  key: "entry-video-overlay",
170
170
  class: "media-overlay",
171
171
  part: "media-overlay"
@@ -173,67 +173,67 @@ function D(e) {
173
173
  ]
174
174
  };
175
175
  }
176
- function Q(e) {
176
+ function w(e) {
177
177
  const { key: t, justifyContent: n } = e || {}, r = "media-control-group" + (n ? ` justify-content-${n}` : "");
178
- return d({
178
+ return s({
179
179
  key: t,
180
- component: a,
180
+ component: o,
181
181
  props: {
182
182
  subtag: "element-stack",
183
183
  class: r
184
184
  },
185
185
  children: [
186
- l({
186
+ m({
187
187
  key: "media-control-group-background",
188
188
  class: "media-control-pane"
189
189
  })
190
190
  ]
191
191
  });
192
192
  }
193
- function m(e) {
193
+ function p(e) {
194
194
  const { key: t } = e || {};
195
- return d({
195
+ return s({
196
196
  key: t,
197
- component: a,
197
+ component: o,
198
198
  props: {
199
199
  subtag: "element-stack",
200
200
  class: "media-control"
201
201
  },
202
202
  children: [
203
- l({
203
+ m({
204
204
  key: "media-control-background",
205
205
  class: "media-control-pane"
206
206
  })
207
207
  ]
208
208
  });
209
209
  }
210
- function A(e) {
210
+ function R(e) {
211
211
  const { key: t = "media-controls", justifyContent: n } = e || {}, r = "entry-media-controls" + (n ? ` justify-content-${n}` : "");
212
- return d({
212
+ return s({
213
213
  if: {
214
214
  // don't render media controls if in error state
215
- test: ({ entry: o }) => {
216
- const { media: i } = S({ entry: o });
217
- return i && i.isReady && !_(o, ["error"]);
215
+ test: ({ entry: i }) => {
216
+ const { media: a } = g({ entry: i });
217
+ return a && a.isReady && !T(i, ["error"]);
218
218
  },
219
219
  then: {
220
220
  key: t,
221
221
  tag: "element-stack",
222
- context: S,
223
- attrs: ({ media: o, video: i }) => ({
222
+ context: g,
223
+ attrs: ({ media: i, video: a }) => ({
224
224
  class: r,
225
225
  part: "media-controls",
226
- "data-media-is-visible": E(o?.isVisible),
227
- "data-media-is-playing": E(i?.isPlaying)
226
+ "data-media-is-visible": u(i?.isVisible),
227
+ "data-media-is-playing": u(a?.isPlaying)
228
228
  })
229
229
  }
230
230
  }
231
231
  });
232
232
  }
233
- function W() {
233
+ function x() {
234
234
  return {
235
235
  key: "toggle-playback-spring",
236
- component: a,
236
+ component: o,
237
237
  props: {
238
238
  class: "toggle-playback"
239
239
  },
@@ -243,10 +243,10 @@ function W() {
243
243
  }))
244
244
  };
245
245
  }
246
- function H() {
246
+ function V() {
247
247
  return {
248
248
  key: "toggle-audio-spring",
249
- component: a,
249
+ component: o,
250
250
  props: {
251
251
  class: "toggle-audio"
252
252
  },
@@ -257,14 +257,14 @@ function H() {
257
257
  }))
258
258
  };
259
259
  }
260
- function ue() {
260
+ function ae() {
261
261
  return {
262
262
  // only added when fullscreen is supported
263
263
  if: {
264
- test: C,
264
+ test: A,
265
265
  then: {
266
266
  key: "toggle-fullscreen-spring",
267
- component: a,
267
+ component: o,
268
268
  props: {
269
269
  class: "toggle-fullscreen"
270
270
  },
@@ -276,17 +276,17 @@ function ue() {
276
276
  }
277
277
  };
278
278
  }
279
- function $() {
279
+ function L() {
280
280
  return {
281
281
  key: "media-scrubber-spring",
282
- component: a,
282
+ component: o,
283
283
  props: {
284
284
  class: "media-scrubber"
285
285
  },
286
286
  children: [
287
287
  {
288
288
  key: "media-scrubber",
289
- component: x,
289
+ component: _,
290
290
  props: ({ video: e }) => ({
291
291
  part: "media-scrubber",
292
292
  step: e?.framesPerSecond,
@@ -298,12 +298,12 @@ function $() {
298
298
  ]
299
299
  };
300
300
  }
301
- function ge() {
301
+ function ce() {
302
302
  return {
303
303
  key: "media-scrubber-title",
304
304
  tag: "time",
305
305
  context: ({ hoverValue: e }) => ({
306
- time: U(e)
306
+ time: v(e)
307
307
  }),
308
308
  attrs: ({ time: e }) => ({
309
309
  datetime: e
@@ -311,16 +311,16 @@ function ge() {
311
311
  children: "{{time}}"
312
312
  };
313
313
  }
314
- function q() {
314
+ function j() {
315
315
  return {
316
316
  key: "media-time-indicator-spring",
317
- component: a,
317
+ component: o,
318
318
  props: {
319
319
  class: "media-time-indicator"
320
320
  },
321
321
  children: {
322
322
  key: "media-time-indicator",
323
- component: L,
323
+ component: B,
324
324
  props: ({ video: e }) => ({
325
325
  timeISO: e?.timeISO,
326
326
  timeLabel: e?.timeLabel,
@@ -330,51 +330,44 @@ function q() {
330
330
  }
331
331
  };
332
332
  }
333
- const G = F("image");
334
- function ye(e, t) {
335
- const { imageViewOptions: n, imageEditOptions: r } = t ?? {}, { enableEdit: o = !0, enableReset: i = !0 } = r ?? {}, p = o || i;
336
- return d(e).find("entry").append(
337
- R((s) => G(s) || B(s, "poster")).append(
338
- Y(n),
339
- p && M("error").append(
340
- h("editMedia").append(
341
- A({ justifyContent: "end" }).append(
342
- i && m().append(O()),
343
- o && m().append(T())
344
- )
333
+ const Y = S("image");
334
+ function se(e, t) {
335
+ const { enableEdit: n = !0, enableReset: r = !0, ...i } = t ?? {}, a = n || r;
336
+ return s(e).find("entry").append(
337
+ y((d) => Y(d) || O(d, "poster")).append(
338
+ C(i),
339
+ a && b("editMedia").append(
340
+ R({ justifyContent: "end" }).append(
341
+ r && p().append(k()),
342
+ n && p().append(f())
345
343
  )
346
344
  )
347
345
  )
348
346
  ), e;
349
347
  }
350
- function be(e, t) {
351
- const { videoViewOptions: n, videoEditOptions: r, videoControlOptions: o } = t ?? {}, {
352
- enablePlay: i = !0,
353
- enableScrubber: p = !0,
354
- enableTime: s = !0,
355
- enableMute: g = !0
356
- } = o ?? {}, { enableEdit: y = !0, enableReset: b = !0 } = r ?? {}, f = y || b, k = i || p || s || g;
357
- return d(e).update("entry", (P) => {
358
- P.routes = {
348
+ function de(e, t) {
349
+ const { enableEdit: n = !0, enableReset: r = !0, ...i } = t ?? {}, a = n || r;
350
+ return s(e).update("entry", (d) => {
351
+ d.routes = {
359
352
  "toggle-playback:click": "entry-video.togglePlayback",
360
353
  "toggle-audio:click": "entry-video.toggleAudio",
361
354
  "toggle-fullscreen:click": "entry-video.toggleFullscreen",
362
355
  "media-scrubber:input": "entry-video.setCurrentTime"
363
356
  };
364
357
  }).append(
365
- R("video").append(
366
- D(n),
367
- (f || k) && M("error").append(
368
- A().append(
369
- k && Q({ key: "video-controls" }).append(
370
- i && W(),
371
- p && $(),
372
- s && q(),
373
- g && H()
358
+ y("video").append(
359
+ N(i),
360
+ h("error").append(
361
+ R().append(
362
+ w({ key: "video-controls" }).append(
363
+ x(),
364
+ L(),
365
+ j(),
366
+ V()
374
367
  ),
375
- f && h("editMedia").append(
376
- b && m().append(O()),
377
- y && m().append(T())
368
+ a && b("editMedia").append(
369
+ r && p().append(k()),
370
+ n && p().append(f())
378
371
  )
379
372
  )
380
373
  )
@@ -382,19 +375,19 @@ function be(e, t) {
382
375
  ), e;
383
376
  }
384
377
  export {
385
- ye as appendEntryImageView,
386
- be as appendEntryVideoView,
387
- T as createEditMediaButton,
388
- Y as createImageView,
389
- m as createMediaControl,
390
- Q as createMediaControlGroup,
391
- A as createMediaControls,
392
- $ as createMediaScrubber,
393
- ge as createMediaScrubberTitle,
394
- q as createMediaTimeIndicator,
395
- O as createResetMediaButton,
396
- H as createToggleAudioButton,
397
- ue as createToggleFullscreenButton,
398
- W as createTogglePlaybackButton,
399
- D as createVideoView
378
+ se as appendEntryImageView,
379
+ de as appendEntryVideoView,
380
+ f as createEditMediaButton,
381
+ C as createImageView,
382
+ p as createMediaControl,
383
+ w as createMediaControlGroup,
384
+ R as createMediaControls,
385
+ L as createMediaScrubber,
386
+ ce as createMediaScrubberTitle,
387
+ j as createMediaTimeIndicator,
388
+ k as createResetMediaButton,
389
+ V as createToggleAudioButton,
390
+ ae as createToggleFullscreenButton,
391
+ x as createTogglePlaybackButton,
392
+ N as createVideoView
400
393
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
package/esm/utils/date.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
package/esm/utils/dom.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
package/esm/utils/file.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
package/esm/utils/math.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
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.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
package/esm/utils/rect.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com