@hanifhan1f/vidstack-react 1.12.13 → 1.12.14

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 (389) hide show
  1. package/dev/chunks/vidstack-B-FM4-oZ.js +668 -0
  2. package/dev/chunks/vidstack-B92UncBI.js +61 -0
  3. package/dev/chunks/vidstack-BDiAEW1N.js +11691 -0
  4. package/dev/chunks/vidstack-BZIhWvGa.js +1371 -0
  5. package/dev/chunks/vidstack-Bfi_jCvb.js +476 -0
  6. package/dev/chunks/vidstack-CBF7iUqu.js +22 -0
  7. package/dev/chunks/vidstack-CFZ0rYJz.js +34 -0
  8. package/dev/chunks/vidstack-CM82l-7o.js +551 -0
  9. package/dev/chunks/vidstack-CvWDiSTs.js +84 -0
  10. package/dev/chunks/vidstack-CzU-uC5f.js +189 -0
  11. package/dev/chunks/vidstack-D-hQD1eE.js +9 -0
  12. package/dev/chunks/vidstack-D6_9yy0x.js +643 -0
  13. package/dev/chunks/vidstack-DJQOTrl6.js +180 -0
  14. package/dev/chunks/vidstack-DNbKNc4R.js +288 -0
  15. package/dev/chunks/vidstack-D_bWd66h.js +2023 -0
  16. package/dev/chunks/vidstack-Dm1xEU9Q.js +36 -0
  17. package/dev/chunks/vidstack-f6WXkmfP.js +375 -0
  18. package/dev/chunks/vidstack-krOAtKMi.js +34 -0
  19. package/dev/chunks/vidstack-lYFZKRUc.js +401 -0
  20. package/dev/player/vidstack-default-components.js +14 -0
  21. package/dev/player/vidstack-default-icons.js +88 -0
  22. package/dev/player/vidstack-default-layout.js +14 -0
  23. package/dev/player/vidstack-plyr-icons.js +62 -0
  24. package/dev/player/vidstack-plyr-layout.js +636 -0
  25. package/dev/player/vidstack-remotion.js +345 -0
  26. package/dev/vidstack.js +587 -0
  27. package/dom.d.ts +91 -0
  28. package/google-cast.d.ts +1422 -0
  29. package/icons.d.ts +5 -0
  30. package/index.d.ts +8 -0
  31. package/package.json +9 -60
  32. package/player/layouts/default.d.ts +11392 -0
  33. package/player/layouts/plyr.d.ts +5 -0
  34. package/player/remotion.d.ts +5 -0
  35. package/player/styles/base.css +153 -0
  36. package/player/styles/default/buffering.css +55 -0
  37. package/player/styles/default/buttons.css +175 -0
  38. package/player/styles/default/captions.css +181 -0
  39. package/player/styles/default/chapter-title.css +26 -0
  40. package/player/styles/default/controls.css +56 -0
  41. package/player/styles/default/gestures.css +19 -0
  42. package/player/styles/default/icons.css +6 -0
  43. package/player/styles/default/keyboard.css +148 -0
  44. package/player/styles/default/layouts/audio.css +417 -0
  45. package/player/styles/default/layouts/video.css +1082 -0
  46. package/player/styles/default/menus.css +959 -0
  47. package/player/styles/default/poster.css +52 -0
  48. package/player/styles/default/sliders.css +391 -0
  49. package/player/styles/default/theme.css +2461 -0
  50. package/player/styles/default/thumbnail.css +40 -0
  51. package/player/styles/default/time.css +45 -0
  52. package/player/styles/default/tooltips.css +141 -0
  53. package/player/styles/plyr/theme.css +1237 -0
  54. package/prod/chunks/vidstack-0Foyib2F.js +34 -0
  55. package/prod/chunks/vidstack-BbPEqH3g.js +11196 -0
  56. package/prod/chunks/vidstack-Bh7M8kL6.js +663 -0
  57. package/prod/chunks/vidstack-BlPINAXN.js +189 -0
  58. package/prod/chunks/vidstack-C5Rzkyfp.js +375 -0
  59. package/prod/chunks/vidstack-CBF7iUqu.js +22 -0
  60. package/prod/chunks/vidstack-CZNlvfmV.js +288 -0
  61. package/prod/chunks/vidstack-CZgUA94N.js +1979 -0
  62. package/prod/chunks/vidstack-D0XCUWbp.js +159 -0
  63. package/prod/chunks/vidstack-DTyDOhwS.js +504 -0
  64. package/prod/chunks/vidstack-DhC5F6c8.js +470 -0
  65. package/prod/chunks/vidstack-Dm1xEU9Q.js +36 -0
  66. package/prod/chunks/vidstack-Ma9rwtR0.js +386 -0
  67. package/prod/chunks/vidstack-WsodkLQg.js +1371 -0
  68. package/prod/chunks/vidstack-jIPoNqhj.js +545 -0
  69. package/prod/chunks/vidstack-krOAtKMi.js +34 -0
  70. package/prod/chunks/vidstack-vqp2QaHR.js +9 -0
  71. package/prod/chunks/vidstack-xo_SmgiV.js +84 -0
  72. package/prod/chunks/vidstack-xvxeRtaN.js +61 -0
  73. package/prod/player/vidstack-default-components.js +14 -0
  74. package/prod/player/vidstack-default-icons.js +88 -0
  75. package/prod/player/vidstack-default-layout.js +14 -0
  76. package/prod/player/vidstack-plyr-icons.js +62 -0
  77. package/prod/player/vidstack-plyr-layout.js +636 -0
  78. package/prod/player/vidstack-remotion.js +335 -0
  79. package/prod/vidstack-icons.js +435 -0
  80. package/prod/vidstack.js +648 -0
  81. package/server/chunks/vidstack-2zMSe4ym.js +1371 -0
  82. package/server/chunks/vidstack-BtqWstSj.js +375 -0
  83. package/server/chunks/vidstack-C-HdFsZi.js +84 -0
  84. package/server/chunks/vidstack-C4iWXMC-.js +545 -0
  85. package/server/chunks/vidstack-C5zFBMwg.js +386 -0
  86. package/server/chunks/vidstack-CBF7iUqu.js +22 -0
  87. package/server/chunks/vidstack-CEh38XpD.js +288 -0
  88. package/server/chunks/vidstack-CkMAeO-e.js +34 -0
  89. package/server/chunks/vidstack-Cm0qnRvu.js +11196 -0
  90. package/server/chunks/vidstack-CoGzBr_V.js +663 -0
  91. package/server/chunks/vidstack-CyFwkPiu.js +470 -0
  92. package/server/chunks/vidstack-D-hQD1eE.js +9 -0
  93. package/server/chunks/vidstack-D_bWd66h.js +2023 -0
  94. package/server/chunks/vidstack-Dm1xEU9Q.js +36 -0
  95. package/server/chunks/vidstack-DtQSvsQr.js +189 -0
  96. package/server/chunks/vidstack-jlaBqZq5.js +61 -0
  97. package/server/chunks/vidstack-krOAtKMi.js +34 -0
  98. package/server/chunks/vidstack-rWs25cS9.js +159 -0
  99. package/server/chunks/vidstack-uyCXITen.js +504 -0
  100. package/server/player/vidstack-default-components.js +14 -0
  101. package/server/player/vidstack-default-icons.js +88 -0
  102. package/server/player/vidstack-default-layout.js +14 -0
  103. package/server/player/vidstack-plyr-icons.js +62 -0
  104. package/server/player/vidstack-plyr-layout.js +636 -0
  105. package/server/player/vidstack-remotion.js +335 -0
  106. package/server/vidstack.js +648 -0
  107. package/tailwind.cjs +101 -0
  108. package/tailwind.d.cts +15 -0
  109. package/.templates/sandbox/document.css +0 -27
  110. package/.templates/sandbox/favicon-32x32.png +0 -0
  111. package/.templates/sandbox/index.html +0 -21
  112. package/.templates/sandbox/main.tsx +0 -12
  113. package/.templates/sandbox/player.css +0 -39
  114. package/.templates/sandbox/player.tsx +0 -121
  115. package/.templates/sandbox/tracks.ts +0 -23
  116. package/analyze.config.ts +0 -7
  117. package/build/build-icons.js +0 -62
  118. package/rollup.config.ts +0 -256
  119. package/src/components/announcer.tsx +0 -47
  120. package/src/components/layouts/default/audio-layout.tsx +0 -231
  121. package/src/components/layouts/default/context.ts +0 -28
  122. package/src/components/layouts/default/hooks.ts +0 -13
  123. package/src/components/layouts/default/icons.tsx +0 -225
  124. package/src/components/layouts/default/index.ts +0 -11
  125. package/src/components/layouts/default/media-layout.tsx +0 -259
  126. package/src/components/layouts/default/slots.tsx +0 -98
  127. package/src/components/layouts/default/ui/announcer.tsx +0 -22
  128. package/src/components/layouts/default/ui/buttons.tsx +0 -301
  129. package/src/components/layouts/default/ui/captions.tsx +0 -16
  130. package/src/components/layouts/default/ui/controls.tsx +0 -12
  131. package/src/components/layouts/default/ui/keyboard-display.tsx +0 -132
  132. package/src/components/layouts/default/ui/menus/accessibility-menu.tsx +0 -100
  133. package/src/components/layouts/default/ui/menus/audio-menu.tsx +0 -167
  134. package/src/components/layouts/default/ui/menus/captions-menu.tsx +0 -61
  135. package/src/components/layouts/default/ui/menus/chapters-menu.tsx +0 -132
  136. package/src/components/layouts/default/ui/menus/font-menu.tsx +0 -331
  137. package/src/components/layouts/default/ui/menus/items/menu-checkbox.tsx +0 -72
  138. package/src/components/layouts/default/ui/menus/items/menu-items.tsx +0 -135
  139. package/src/components/layouts/default/ui/menus/items/menu-slider.tsx +0 -92
  140. package/src/components/layouts/default/ui/menus/playback-menu.tsx +0 -232
  141. package/src/components/layouts/default/ui/menus/settings-menu.tsx +0 -114
  142. package/src/components/layouts/default/ui/menus/utils.ts +0 -12
  143. package/src/components/layouts/default/ui/sliders.tsx +0 -136
  144. package/src/components/layouts/default/ui/time.tsx +0 -73
  145. package/src/components/layouts/default/ui/title.tsx +0 -24
  146. package/src/components/layouts/default/ui/tooltip.tsx +0 -27
  147. package/src/components/layouts/default/ui.ts +0 -8
  148. package/src/components/layouts/default/video-layout.tsx +0 -344
  149. package/src/components/layouts/plyr/context.ts +0 -26
  150. package/src/components/layouts/plyr/icons/plyr-airplay.js +0 -1
  151. package/src/components/layouts/plyr/icons/plyr-captions-off.js +0 -1
  152. package/src/components/layouts/plyr/icons/plyr-captions-on.js +0 -1
  153. package/src/components/layouts/plyr/icons/plyr-download.js +0 -1
  154. package/src/components/layouts/plyr/icons/plyr-enter-fullscreen.js +0 -1
  155. package/src/components/layouts/plyr/icons/plyr-exit-fullscreen.js +0 -1
  156. package/src/components/layouts/plyr/icons/plyr-fast-forward.js +0 -1
  157. package/src/components/layouts/plyr/icons/plyr-muted.js +0 -1
  158. package/src/components/layouts/plyr/icons/plyr-pause.js +0 -1
  159. package/src/components/layouts/plyr/icons/plyr-pip.js +0 -1
  160. package/src/components/layouts/plyr/icons/plyr-play.js +0 -1
  161. package/src/components/layouts/plyr/icons/plyr-restart.js +0 -1
  162. package/src/components/layouts/plyr/icons/plyr-rewind.js +0 -1
  163. package/src/components/layouts/plyr/icons/plyr-settings.js +0 -1
  164. package/src/components/layouts/plyr/icons/plyr-volume.js +0 -1
  165. package/src/components/layouts/plyr/icons.tsx +0 -71
  166. package/src/components/layouts/plyr/index.ts +0 -11
  167. package/src/components/layouts/plyr/layout.tsx +0 -1024
  168. package/src/components/layouts/plyr/props.ts +0 -104
  169. package/src/components/layouts/plyr/slots.tsx +0 -52
  170. package/src/components/layouts/remotion-ui.ts +0 -13
  171. package/src/components/layouts/utils.ts +0 -17
  172. package/src/components/player-callbacks.ts +0 -67
  173. package/src/components/player.tsx +0 -67
  174. package/src/components/primitives/instances.ts +0 -92
  175. package/src/components/primitives/nodes.tsx +0 -58
  176. package/src/components/primitives/slot.tsx +0 -132
  177. package/src/components/provider.tsx +0 -187
  178. package/src/components/text-track.tsx +0 -106
  179. package/src/components/ui/buttons/airplay-button.tsx +0 -53
  180. package/src/components/ui/buttons/caption-button.tsx +0 -55
  181. package/src/components/ui/buttons/fullscreen-button.tsx +0 -55
  182. package/src/components/ui/buttons/google-cast-button.tsx +0 -53
  183. package/src/components/ui/buttons/live-button.tsx +0 -56
  184. package/src/components/ui/buttons/mute-button.tsx +0 -60
  185. package/src/components/ui/buttons/pip-button.tsx +0 -54
  186. package/src/components/ui/buttons/play-button.tsx +0 -53
  187. package/src/components/ui/buttons/seek-button.tsx +0 -55
  188. package/src/components/ui/buttons/toggle-button.tsx +0 -51
  189. package/src/components/ui/caption.tsx +0 -70
  190. package/src/components/ui/captions.tsx +0 -41
  191. package/src/components/ui/chapter-title.tsx +0 -40
  192. package/src/components/ui/controls.tsx +0 -90
  193. package/src/components/ui/gesture.tsx +0 -43
  194. package/src/components/ui/menu.tsx +0 -251
  195. package/src/components/ui/poster.tsx +0 -101
  196. package/src/components/ui/radio-group.tsx +0 -88
  197. package/src/components/ui/sliders/audio-gain-slider.tsx +0 -55
  198. package/src/components/ui/sliders/quality-slider.tsx +0 -54
  199. package/src/components/ui/sliders/slider-callbacks.ts +0 -14
  200. package/src/components/ui/sliders/slider-value.tsx +0 -13
  201. package/src/components/ui/sliders/slider.tsx +0 -254
  202. package/src/components/ui/sliders/speed-slider.tsx +0 -54
  203. package/src/components/ui/sliders/time-slider.tsx +0 -379
  204. package/src/components/ui/sliders/volume-slider.tsx +0 -55
  205. package/src/components/ui/spinner.tsx +0 -105
  206. package/src/components/ui/thumbnail.tsx +0 -82
  207. package/src/components/ui/time.tsx +0 -77
  208. package/src/components/ui/title.tsx +0 -32
  209. package/src/components/ui/tooltip.tsx +0 -135
  210. package/src/globals.d.ts +0 -3
  211. package/src/hooks/create-text-track.ts +0 -22
  212. package/src/hooks/options/use-audio-gain-options.ts +0 -75
  213. package/src/hooks/options/use-audio-options.ts +0 -71
  214. package/src/hooks/options/use-caption-options.ts +0 -95
  215. package/src/hooks/options/use-chapter-options.ts +0 -97
  216. package/src/hooks/options/use-playback-rate-options.ts +0 -75
  217. package/src/hooks/options/use-video-quality-options.ts +0 -123
  218. package/src/hooks/use-active-text-cues.ts +0 -28
  219. package/src/hooks/use-active-text-track.ts +0 -19
  220. package/src/hooks/use-chapter-title.ts +0 -12
  221. package/src/hooks/use-dom.ts +0 -121
  222. package/src/hooks/use-media-context.ts +0 -6
  223. package/src/hooks/use-media-player.ts +0 -19
  224. package/src/hooks/use-media-provider.ts +0 -31
  225. package/src/hooks/use-media-remote.ts +0 -37
  226. package/src/hooks/use-media-state.ts +0 -58
  227. package/src/hooks/use-signals.ts +0 -24
  228. package/src/hooks/use-slider-preview.ts +0 -126
  229. package/src/hooks/use-slider-state.ts +0 -63
  230. package/src/hooks/use-state.ts +0 -47
  231. package/src/hooks/use-text-cues.ts +0 -33
  232. package/src/hooks/use-thumbnails.ts +0 -69
  233. package/src/icon.ts +0 -37
  234. package/src/icons.ts +0 -754
  235. package/src/index.ts +0 -181
  236. package/src/providers/remotion/index.ts +0 -10
  237. package/src/providers/remotion/layout-engine.ts +0 -123
  238. package/src/providers/remotion/loader.ts +0 -35
  239. package/src/providers/remotion/playback-engine.ts +0 -142
  240. package/src/providers/remotion/provider.tsx +0 -514
  241. package/src/providers/remotion/type-check.ts +0 -13
  242. package/src/providers/remotion/types.ts +0 -94
  243. package/src/providers/remotion/ui/context.tsx +0 -120
  244. package/src/providers/remotion/ui/error-boundary.tsx +0 -57
  245. package/src/providers/remotion/ui/poster.tsx +0 -33
  246. package/src/providers/remotion/ui/slider-thumbnail.tsx +0 -41
  247. package/src/providers/remotion/ui/thumbnail.tsx +0 -166
  248. package/src/providers/remotion/validate.ts +0 -220
  249. package/src/source.ts +0 -5
  250. package/src/utils.ts +0 -27
  251. package/tsconfig.build.json +0 -10
  252. package/tsconfig.json +0 -11
  253. package/types/react/src/components/announcer.d.ts +0 -16
  254. package/types/react/src/components/layouts/default/audio-layout.d.ts +0 -27
  255. package/types/react/src/components/layouts/default/context.d.ts +0 -14
  256. package/types/react/src/components/layouts/default/hooks.d.ts +0 -2
  257. package/types/react/src/components/layouts/default/icons.d.ts +0 -95
  258. package/types/react/src/components/layouts/default/index.d.ts +0 -5
  259. package/types/react/src/components/layouts/default/media-layout.d.ts +0 -133
  260. package/types/react/src/components/layouts/default/slots.d.ts +0 -22
  261. package/types/react/src/components/layouts/default/ui/announcer.d.ts +0 -6
  262. package/types/react/src/components/layouts/default/ui/buttons.d.ts +0 -54
  263. package/types/react/src/components/layouts/default/ui/captions.d.ts +0 -6
  264. package/types/react/src/components/layouts/default/ui/controls.d.ts +0 -6
  265. package/types/react/src/components/layouts/default/ui/keyboard-display.d.ts +0 -8
  266. package/types/react/src/components/layouts/default/ui/menus/accessibility-menu.d.ts +0 -10
  267. package/types/react/src/components/layouts/default/ui/menus/audio-menu.d.ts +0 -10
  268. package/types/react/src/components/layouts/default/ui/menus/captions-menu.d.ts +0 -10
  269. package/types/react/src/components/layouts/default/ui/menus/chapters-menu.d.ts +0 -7
  270. package/types/react/src/components/layouts/default/ui/menus/font-menu.d.ts +0 -6
  271. package/types/react/src/components/layouts/default/ui/menus/items/menu-checkbox.d.ts +0 -13
  272. package/types/react/src/components/layouts/default/ui/menus/items/menu-items.d.ts +0 -49
  273. package/types/react/src/components/layouts/default/ui/menus/items/menu-slider.d.ts +0 -26
  274. package/types/react/src/components/layouts/default/ui/menus/playback-menu.d.ts +0 -10
  275. package/types/react/src/components/layouts/default/ui/menus/settings-menu.d.ts +0 -15
  276. package/types/react/src/components/layouts/default/ui/menus/utils.d.ts +0 -1
  277. package/types/react/src/components/layouts/default/ui/sliders.d.ts +0 -24
  278. package/types/react/src/components/layouts/default/ui/time.d.ts +0 -30
  279. package/types/react/src/components/layouts/default/ui/title.d.ts +0 -6
  280. package/types/react/src/components/layouts/default/ui/tooltip.d.ts +0 -12
  281. package/types/react/src/components/layouts/default/ui.d.ts +0 -8
  282. package/types/react/src/components/layouts/default/video-layout.d.ts +0 -47
  283. package/types/react/src/components/layouts/plyr/context.d.ts +0 -12
  284. package/types/react/src/components/layouts/plyr/icons/plyr-airplay.d.ts +0 -2
  285. package/types/react/src/components/layouts/plyr/icons/plyr-captions-off.d.ts +0 -2
  286. package/types/react/src/components/layouts/plyr/icons/plyr-captions-on.d.ts +0 -2
  287. package/types/react/src/components/layouts/plyr/icons/plyr-download.d.ts +0 -2
  288. package/types/react/src/components/layouts/plyr/icons/plyr-enter-fullscreen.d.ts +0 -2
  289. package/types/react/src/components/layouts/plyr/icons/plyr-exit-fullscreen.d.ts +0 -2
  290. package/types/react/src/components/layouts/plyr/icons/plyr-fast-forward.d.ts +0 -2
  291. package/types/react/src/components/layouts/plyr/icons/plyr-muted.d.ts +0 -2
  292. package/types/react/src/components/layouts/plyr/icons/plyr-pause.d.ts +0 -2
  293. package/types/react/src/components/layouts/plyr/icons/plyr-pip.d.ts +0 -2
  294. package/types/react/src/components/layouts/plyr/icons/plyr-play.d.ts +0 -2
  295. package/types/react/src/components/layouts/plyr/icons/plyr-restart.d.ts +0 -2
  296. package/types/react/src/components/layouts/plyr/icons/plyr-rewind.d.ts +0 -2
  297. package/types/react/src/components/layouts/plyr/icons/plyr-settings.d.ts +0 -2
  298. package/types/react/src/components/layouts/plyr/icons/plyr-volume.d.ts +0 -2
  299. package/types/react/src/components/layouts/plyr/icons.d.ts +0 -25
  300. package/types/react/src/components/layouts/plyr/index.d.ts +0 -6
  301. package/types/react/src/components/layouts/plyr/layout.d.ts +0 -17
  302. package/types/react/src/components/layouts/plyr/props.d.ts +0 -71
  303. package/types/react/src/components/layouts/plyr/slots.d.ts +0 -9
  304. package/types/react/src/components/layouts/remotion-ui.d.ts +0 -3
  305. package/types/react/src/components/layouts/utils.d.ts +0 -1
  306. package/types/react/src/components/player-callbacks.d.ts +0 -6
  307. package/types/react/src/components/player.d.ts +0 -32
  308. package/types/react/src/components/primitives/instances.d.ts +0 -83
  309. package/types/react/src/components/primitives/nodes.d.ts +0 -15
  310. package/types/react/src/components/primitives/slot.d.ts +0 -11
  311. package/types/react/src/components/provider.d.ts +0 -26
  312. package/types/react/src/components/text-track.d.ts +0 -100
  313. package/types/react/src/components/ui/buttons/airplay-button.d.ts +0 -22
  314. package/types/react/src/components/ui/buttons/caption-button.d.ts +0 -24
  315. package/types/react/src/components/ui/buttons/fullscreen-button.d.ts +0 -24
  316. package/types/react/src/components/ui/buttons/google-cast-button.d.ts +0 -22
  317. package/types/react/src/components/ui/buttons/live-button.d.ts +0 -26
  318. package/types/react/src/components/ui/buttons/mute-button.d.ts +0 -30
  319. package/types/react/src/components/ui/buttons/pip-button.d.ts +0 -24
  320. package/types/react/src/components/ui/buttons/play-button.d.ts +0 -23
  321. package/types/react/src/components/ui/buttons/seek-button.d.ts +0 -25
  322. package/types/react/src/components/ui/buttons/toggle-button.d.ts +0 -22
  323. package/types/react/src/components/ui/caption.d.ts +0 -11
  324. package/types/react/src/components/ui/captions.d.ts +0 -20
  325. package/types/react/src/components/ui/chapter-title.d.ts +0 -20
  326. package/types/react/src/components/ui/controls.d.ts +0 -40
  327. package/types/react/src/components/ui/gesture.d.ts +0 -20
  328. package/types/react/src/components/ui/menu.d.ts +0 -102
  329. package/types/react/src/components/ui/poster.d.ts +0 -25
  330. package/types/react/src/components/ui/radio-group.d.ts +0 -39
  331. package/types/react/src/components/ui/sliders/audio-gain-slider.d.ts +0 -29
  332. package/types/react/src/components/ui/sliders/quality-slider.d.ts +0 -28
  333. package/types/react/src/components/ui/sliders/slider-callbacks.d.ts +0 -6
  334. package/types/react/src/components/ui/sliders/slider-value.d.ts +0 -9
  335. package/types/react/src/components/ui/sliders/slider.d.ts +0 -134
  336. package/types/react/src/components/ui/sliders/speed-slider.d.ts +0 -28
  337. package/types/react/src/components/ui/sliders/time-slider.d.ts +0 -124
  338. package/types/react/src/components/ui/sliders/volume-slider.d.ts +0 -29
  339. package/types/react/src/components/ui/spinner.d.ts +0 -31
  340. package/types/react/src/components/ui/thumbnail.d.ts +0 -26
  341. package/types/react/src/components/ui/time.d.ts +0 -20
  342. package/types/react/src/components/ui/title.d.ts +0 -15
  343. package/types/react/src/components/ui/tooltip.d.ts +0 -63
  344. package/types/react/src/hooks/create-text-track.d.ts +0 -7
  345. package/types/react/src/hooks/options/use-audio-gain-options.d.ts +0 -22
  346. package/types/react/src/hooks/options/use-audio-options.d.ts +0 -17
  347. package/types/react/src/hooks/options/use-caption-options.d.ts +0 -24
  348. package/types/react/src/hooks/options/use-chapter-options.d.ts +0 -18
  349. package/types/react/src/hooks/options/use-playback-rate-options.d.ts +0 -22
  350. package/types/react/src/hooks/options/use-video-quality-options.d.ts +0 -35
  351. package/types/react/src/hooks/use-active-text-cues.d.ts +0 -6
  352. package/types/react/src/hooks/use-active-text-track.d.ts +0 -5
  353. package/types/react/src/hooks/use-chapter-title.d.ts +0 -4
  354. package/types/react/src/hooks/use-dom.d.ts +0 -9
  355. package/types/react/src/hooks/use-media-context.d.ts +0 -1
  356. package/types/react/src/hooks/use-media-player.d.ts +0 -7
  357. package/types/react/src/hooks/use-media-provider.d.ts +0 -7
  358. package/types/react/src/hooks/use-media-remote.d.ts +0 -12
  359. package/types/react/src/hooks/use-media-state.d.ts +0 -15
  360. package/types/react/src/hooks/use-signals.d.ts +0 -5
  361. package/types/react/src/hooks/use-slider-preview.d.ts +0 -27
  362. package/types/react/src/hooks/use-slider-state.d.ts +0 -16
  363. package/types/react/src/hooks/use-state.d.ts +0 -18
  364. package/types/react/src/hooks/use-text-cues.d.ts +0 -6
  365. package/types/react/src/hooks/use-thumbnails.d.ts +0 -16
  366. package/types/react/src/icon.d.ts +0 -17
  367. package/types/react/src/icons.d.ts +0 -215
  368. package/types/react/src/index.d.ts +0 -78
  369. package/types/react/src/providers/remotion/index.d.ts +0 -7
  370. package/types/react/src/providers/remotion/layout-engine.d.ts +0 -8
  371. package/types/react/src/providers/remotion/loader.d.ts +0 -9
  372. package/types/react/src/providers/remotion/playback-engine.d.ts +0 -11
  373. package/types/react/src/providers/remotion/provider.d.ts +0 -26
  374. package/types/react/src/providers/remotion/type-check.d.ts +0 -6
  375. package/types/react/src/providers/remotion/types.d.ts +0 -91
  376. package/types/react/src/providers/remotion/ui/context.d.ts +0 -17
  377. package/types/react/src/providers/remotion/ui/error-boundary.d.ts +0 -21
  378. package/types/react/src/providers/remotion/ui/poster.d.ts +0 -18
  379. package/types/react/src/providers/remotion/ui/slider-thumbnail.d.ts +0 -17
  380. package/types/react/src/providers/remotion/ui/thumbnail.d.ts +0 -32
  381. package/types/react/src/providers/remotion/validate.d.ts +0 -12
  382. package/types/react/src/source.d.ts +0 -3
  383. package/types/react/src/utils.d.ts +0 -3
  384. package/types/vidstack/src/core/api/src-types.d.ts +0 -50
  385. package/types/vidstack/src/utils/mime.d.ts +0 -15
  386. package/types/vidstack/src/utils/network.d.ts +0 -17
  387. package/types/vidstack/src/utils/support.d.ts +0 -72
  388. package/vite.config.ts +0 -23
  389. /package/{npm/analyze.json.d.ts → analyze.json.d.ts} +0 -0
@@ -1,7 +0,0 @@
1
- import type { MediaPlayerInstance } from '../components/primitives/instances';
2
- /**
3
- * Returns the nearest parent player component.
4
- *
5
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-media-player}
6
- */
7
- export declare function useMediaPlayer(): MediaPlayerInstance | null;
@@ -1,7 +0,0 @@
1
- import { type MediaProviderAdapter } from 'vidstack';
2
- /**
3
- * Returns the current parent media provider.
4
- *
5
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-media-provider}
6
- */
7
- export declare function useMediaProvider(): MediaProviderAdapter | null;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { MediaRemoteControl } from 'vidstack';
3
- /**
4
- * A media remote provides a simple facade for dispatching media requests to the nearest media
5
- * player.
6
- *
7
- * @param target - The DOM event target to dispatch request events from. Defaults to player
8
- * if no target is provided.
9
- *
10
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-media-remote}
11
- */
12
- export declare function useMediaRemote(target?: EventTarget | null | React.RefObject<EventTarget | null>): MediaRemoteControl;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import { type MediaState } from 'vidstack';
3
- import { MediaPlayerInstance } from '../components/primitives/instances';
4
- /**
5
- * This hook is used to subscribe to a specific media state.
6
- *
7
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-media-state}
8
- */
9
- export declare function useMediaState<T extends keyof MediaState>(prop: T, ref?: React.RefObject<MediaPlayerInstance | null>): MediaState[T];
10
- /**
11
- * This hook is used to subscribe to the current media state on the nearest parent player.
12
- *
13
- * @docs {@link https://vidstack.io/docs/player/core-concepts/state-management#reading}
14
- */
15
- export declare function useMediaStore(ref?: React.RefObject<MediaPlayerInstance | null>): Readonly<MediaState>;
@@ -1,5 +0,0 @@
1
- import { type MaybeStopEffect } from 'maverick.js';
2
- export declare function createSignal<T>(initialValue: T, deps?: any[]): import("maverick.js").WriteSignal<T>;
3
- export declare function createComputed<T>(compute: () => T, deps?: any[]): import("maverick.js").ReadSignal<T>;
4
- export declare function createEffect(compute: () => MaybeStopEffect, deps?: any[]): void;
5
- export declare function useScoped<T>(compute: () => T): NonNullable<T>;
@@ -1,27 +0,0 @@
1
- import * as React from 'react';
2
- import { type SliderOrientation } from 'vidstack';
3
- /**
4
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-slider-preview}
5
- */
6
- export declare function useSliderPreview({ clamp, offset, orientation, }?: UseSliderPreview): {
7
- previewRootRef: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
8
- previewRef: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
9
- previewValue: number;
10
- isPreviewVisible: boolean;
11
- };
12
- export interface UseSliderPreview {
13
- /**
14
- * Whether the preview should be clamped to the start and end of the slider root. If `true` the
15
- * preview won't be placed outside the root bounds.
16
- */
17
- clamp?: boolean;
18
- /**
19
- * The distance in pixels between the preview and the slider root. You can also set
20
- * the CSS variable `--media-slider-preview-offset` to adjust this offset.
21
- */
22
- offset?: number;
23
- /**
24
- * The orientation of the slider.
25
- */
26
- orientation?: SliderOrientation;
27
- }
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { type SliderState } from 'vidstack';
3
- import { SliderInstance, type TimeSliderInstance, type VolumeSliderInstance } from '../components/primitives/instances';
4
- /**
5
- * This hook is used to subscribe to a specific slider state.
6
- *
7
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-slider-state}
8
- */
9
- export declare function useSliderState<T extends keyof SliderState>(prop: T, ref?: React.RefObject<SliderInstance | VolumeSliderInstance | TimeSliderInstance | null>): SliderState[T];
10
- /**
11
- * This hook is used to subscribe to the current slider state on the given or nearest slider
12
- * component.
13
- *
14
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-slider-state#store}
15
- */
16
- export declare function useSliderStore(ref?: React.RefObject<SliderInstance | VolumeSliderInstance | TimeSliderInstance | null>): Readonly<SliderState>;
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import type { AnyRecord, Component, State } from 'maverick.js';
3
- /**
4
- * This hook is used to subscribe to specific state on a component instance.
5
- *
6
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-state}
7
- */
8
- export declare function useState<T extends AnyRecord, R extends keyof T>(ctor: {
9
- state: State<T>;
10
- }, prop: R, ref: React.RefObject<Component<any, T, any, any> | null>): T[R];
11
- /**
12
- * This hook is used to subscribe to multiple states on a component instance.
13
- *
14
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-store}
15
- */
16
- export declare function useStore<T extends AnyRecord>(ctor: {
17
- state: State<T>;
18
- }, ref: React.RefObject<Component<any, T, any, any> | null>): T;
@@ -1,6 +0,0 @@
1
- import type { VTTCue } from 'media-captions';
2
- import type { TextTrack } from 'vidstack';
3
- /**
4
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-text-cues}
5
- */
6
- export declare function useTextCues(track: TextTrack | null): VTTCue[];
@@ -1,16 +0,0 @@
1
- import { type MediaCrossOrigin, type ThumbnailImage, type ThumbnailSrc } from 'vidstack';
2
- /**
3
- * The function will return the resolved thumbnail images given a thumbnail resource. It's safe to
4
- * call this hook in multiple places with the same `src` argument as work is de-duped and cached
5
- * internally.
6
- *
7
- * @docs {@link https://www.vidstack.io/docs/player/api/hooks/use-thumbnails}
8
- */
9
- export declare function useThumbnails(src: ThumbnailSrc, crossOrigin?: MediaCrossOrigin | null): ThumbnailImage[];
10
- /**
11
- * Returns the active thumbnail image based on the given time.
12
- *
13
- * @param thumbnails - thumbnail images.
14
- * @param time - the current time to determine which thumbnail is active.
15
- */
16
- export declare function useActiveThumbnail(thumbnails: ThumbnailImage[], time: number): ThumbnailImage | null;
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- export interface IconProps extends React.PropsWithoutRef<React.SVGProps<SVGSVGElement>>, React.RefAttributes<SVGElement | SVGSVGElement> {
3
- /**
4
- * The horizontal (width) and vertical (height) length of the underlying `<svg>` element.
5
- *
6
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/width}
7
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/height}
8
- */
9
- size?: number;
10
- part?: string;
11
- /** @internal */
12
- paths?: string;
13
- }
14
- export interface IconComponent extends React.ForwardRefExoticComponent<IconProps> {
15
- }
16
- declare const Icon: IconComponent;
17
- export { Icon };
@@ -1,215 +0,0 @@
1
- import { type IconComponent } from './icon';
2
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=accessibility) */
3
- export declare const AccessibilityIcon: IconComponent;
4
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=add-note) */
5
- export declare const AddNoteIcon: IconComponent;
6
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=add-playlist) */
7
- export declare const AddPlaylistIcon: IconComponent;
8
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=add-user) */
9
- export declare const AddUserIcon: IconComponent;
10
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=add) */
11
- export declare const AddIcon: IconComponent;
12
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=airplay) */
13
- export declare const AirPlayIcon: IconComponent;
14
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-collapse-in) */
15
- export declare const ArrowCollapseInIcon: IconComponent;
16
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-collapse) */
17
- export declare const ArrowCollapseIcon: IconComponent;
18
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-down) */
19
- export declare const ArrowDownIcon: IconComponent;
20
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-expand-out) */
21
- export declare const ArrowExpandOutIcon: IconComponent;
22
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-expand) */
23
- export declare const ArrowExpandIcon: IconComponent;
24
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-left) */
25
- export declare const ArrowLeftIcon: IconComponent;
26
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-right) */
27
- export declare const ArrowRightIcon: IconComponent;
28
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=arrow-up) */
29
- export declare const ArrowUpIcon: IconComponent;
30
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=bookmark) */
31
- export declare const BookmarkIcon: IconComponent;
32
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=camera) */
33
- export declare const CameraIcon: IconComponent;
34
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chapters) */
35
- export declare const ChaptersIcon: IconComponent;
36
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chat-collapse) */
37
- export declare const ChatCollapseIcon: IconComponent;
38
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chat) */
39
- export declare const ChatIcon: IconComponent;
40
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=check) */
41
- export declare const CheckIcon: IconComponent;
42
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chevron-down) */
43
- export declare const ChevronDownIcon: IconComponent;
44
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chevron-left) */
45
- export declare const ChevronLeftIcon: IconComponent;
46
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chevron-right) */
47
- export declare const ChevronRightIcon: IconComponent;
48
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chevron-up) */
49
- export declare const ChevronUpIcon: IconComponent;
50
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=chromecast) */
51
- export declare const ChromecastIcon: IconComponent;
52
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=clip) */
53
- export declare const ClipIcon: IconComponent;
54
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=closed-captions-on) */
55
- export declare const ClosedCaptionsOnIcon: IconComponent;
56
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=closed-captions) */
57
- export declare const ClosedCaptionsIcon: IconComponent;
58
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=comment) */
59
- export declare const CommentIcon: IconComponent;
60
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=computer) */
61
- export declare const ComputerIcon: IconComponent;
62
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=device) */
63
- export declare const DeviceIcon: IconComponent;
64
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=download) */
65
- export declare const DownloadIcon: IconComponent;
66
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=episodes) */
67
- export declare const EpisodesIcon: IconComponent;
68
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=eye) */
69
- export declare const EyeIcon: IconComponent;
70
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=fast-backward) */
71
- export declare const FastBackwardIcon: IconComponent;
72
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=fast-forward) */
73
- export declare const FastForwardIcon: IconComponent;
74
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=flag) */
75
- export declare const FlagIcon: IconComponent;
76
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=fullscreen-arrow-exit) */
77
- export declare const FullscreenArrowExitIcon: IconComponent;
78
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=fullscreen-arrow) */
79
- export declare const FullscreenArrowIcon: IconComponent;
80
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=fullscreen-exit) */
81
- export declare const FullscreenExitIcon: IconComponent;
82
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=fullscreen) */
83
- export declare const FullscreenIcon: IconComponent;
84
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=heart) */
85
- export declare const HeartIcon: IconComponent;
86
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=info) */
87
- export declare const InfoIcon: IconComponent;
88
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=language) */
89
- export declare const LanguageIcon: IconComponent;
90
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=link) */
91
- export declare const LinkIcon: IconComponent;
92
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=lock-closed) */
93
- export declare const LockClosedIcon: IconComponent;
94
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=lock-open) */
95
- export declare const LockOpenIcon: IconComponent;
96
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=menu-horizontal) */
97
- export declare const MenuHorizontalIcon: IconComponent;
98
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=menu-vertical) */
99
- export declare const MenuVerticalIcon: IconComponent;
100
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=microphone) */
101
- export declare const MicrophoneIcon: IconComponent;
102
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=mobile) */
103
- export declare const MobileIcon: IconComponent;
104
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=moon) */
105
- export declare const MoonIcon: IconComponent;
106
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=music-off) */
107
- export declare const MusicOffIcon: IconComponent;
108
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=music) */
109
- export declare const MusicIcon: IconComponent;
110
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=mute) */
111
- export declare const MuteIcon: IconComponent;
112
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=next) */
113
- export declare const NextIcon: IconComponent;
114
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=no-eye) */
115
- export declare const NoEyeIcon: IconComponent;
116
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=notification) */
117
- export declare const NotificationIcon: IconComponent;
118
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=odometer) */
119
- export declare const OdometerIcon: IconComponent;
120
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=pause) */
121
- export declare const PauseIcon: IconComponent;
122
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=picture-in-picture-exit) */
123
- export declare const PictureInPictureExitIcon: IconComponent;
124
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=picture-in-picture) */
125
- export declare const PictureInPictureIcon: IconComponent;
126
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=play) */
127
- export declare const PlayIcon: IconComponent;
128
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=playback-speed-circle) */
129
- export declare const PlaybackSpeedCircleIcon: IconComponent;
130
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=playlist) */
131
- export declare const PlaylistIcon: IconComponent;
132
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=previous) */
133
- export declare const PreviousIcon: IconComponent;
134
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=question-mark) */
135
- export declare const QuestionMarkIcon: IconComponent;
136
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=queue-list) */
137
- export declare const QueueListIcon: IconComponent;
138
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=radio-button-selected) */
139
- export declare const RadioButtonSelectedIcon: IconComponent;
140
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=radio-button) */
141
- export declare const RadioButtonIcon: IconComponent;
142
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=repeat-on) */
143
- export declare const RepeatOnIcon: IconComponent;
144
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=repeat-square-on) */
145
- export declare const RepeatSquareOnIcon: IconComponent;
146
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=repeat-square) */
147
- export declare const RepeatSquareIcon: IconComponent;
148
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=repeat) */
149
- export declare const RepeatIcon: IconComponent;
150
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=replay) */
151
- export declare const ReplayIcon: IconComponent;
152
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=rotate) */
153
- export declare const RotateIcon: IconComponent;
154
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=search) */
155
- export declare const SearchIcon: IconComponent;
156
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-backward-10) */
157
- export declare const SeekBackward10Icon: IconComponent;
158
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-backward-15) */
159
- export declare const SeekBackward15Icon: IconComponent;
160
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-backward-30) */
161
- export declare const SeekBackward30Icon: IconComponent;
162
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-backward) */
163
- export declare const SeekBackwardIcon: IconComponent;
164
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-forward-10) */
165
- export declare const SeekForward10Icon: IconComponent;
166
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-forward-15) */
167
- export declare const SeekForward15Icon: IconComponent;
168
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-forward-30) */
169
- export declare const SeekForward30Icon: IconComponent;
170
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=seek-forward) */
171
- export declare const SeekForwardIcon: IconComponent;
172
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=send) */
173
- export declare const SendIcon: IconComponent;
174
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=settings-menu) */
175
- export declare const SettingsMenuIcon: IconComponent;
176
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=settings-switch) */
177
- export declare const SettingsSwitchIcon: IconComponent;
178
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=settings) */
179
- export declare const SettingsIcon: IconComponent;
180
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=share-arrow) */
181
- export declare const ShareArrowIcon: IconComponent;
182
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=share) */
183
- export declare const ShareIcon: IconComponent;
184
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=shuffle-on) */
185
- export declare const ShuffleOnIcon: IconComponent;
186
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=shuffle) */
187
- export declare const ShuffleIcon: IconComponent;
188
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=stop) */
189
- export declare const StopIcon: IconComponent;
190
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=subtitles) */
191
- export declare const SubtitlesIcon: IconComponent;
192
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=sun) */
193
- export declare const SunIcon: IconComponent;
194
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=theatre-mode-exit) */
195
- export declare const TheatreModeExitIcon: IconComponent;
196
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=theatre-mode) */
197
- export declare const TheatreModeIcon: IconComponent;
198
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=thumbs-down) */
199
- export declare const ThumbsDownIcon: IconComponent;
200
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=thumbs-up) */
201
- export declare const ThumbsUpIcon: IconComponent;
202
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=timer) */
203
- export declare const TimerIcon: IconComponent;
204
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=transcript) */
205
- export declare const TranscriptIcon: IconComponent;
206
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=tv) */
207
- export declare const TvIcon: IconComponent;
208
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=user) */
209
- export declare const UserIcon: IconComponent;
210
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=volume-high) */
211
- export declare const VolumeHighIcon: IconComponent;
212
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=volume-low) */
213
- export declare const VolumeLowIcon: IconComponent;
214
- /** [Click here to preview icon](https://vidstack.io/media-icons?lib=react&icon=x-mark) */
215
- export declare const XMarkIcon: IconComponent;
@@ -1,78 +0,0 @@
1
- export * from 'vidstack/exports/core.ts';
2
- export * from 'vidstack/exports/events.ts';
3
- export * from 'vidstack/exports/foundation.ts';
4
- export * from 'vidstack/exports/maverick.ts';
5
- export * from 'vidstack/exports/providers.ts';
6
- export * from 'vidstack/exports/utils.ts';
7
- export { DEFAULT_AUDIO_GAINS, DEFAULT_PLAYBACK_RATES, sliderState, type AudioGainSliderState, type GestureAction, type MediaAnnouncerState, type MediaAnnouncerTranslations, type MediaAnnouncerWord, type MediaProviderState, type MenuPlacement, type MenuPlacementAlign, type MenuPlacementSide, type PosterState, type QualitySliderState, type SliderCSSVars, type SliderOrientation, type SliderState, type SliderVideoState, type SpeedSliderState, type ThumbnailState, type TimeSliderState, type TimeState, type TooltipPlacement, type TooltipPlacementAlign, type TooltipPlacementSide, type VolumeSliderState, } from 'vidstack/exports/components.ts';
8
- export * from './components/primitives/instances';
9
- export type { PlayerSrc } from './source';
10
- export { type MediaPlayerProps, MediaPlayer } from './components/player';
11
- export { type MediaAnnouncerProps, MediaAnnouncer } from './components/announcer';
12
- export { type MediaProviderProps, MediaProvider } from './components/provider';
13
- export { type IconProps, Icon, type IconComponent } from './icon';
14
- export { Track, type TrackProps } from './components/text-track';
15
- export * as Controls from './components/ui/controls';
16
- export type { RootProps as ControlsProps, GroupProps as ControlsGroupProps, } from './components/ui/controls';
17
- export * as Tooltip from './components/ui/tooltip';
18
- export type { RootProps as TooltipProps, TriggerProps as TooltipTriggerProps, ContentProps as TooltipContentProps, } from './components/ui/tooltip';
19
- export { type ToggleButtonProps, ToggleButton } from './components/ui/buttons/toggle-button';
20
- export { type AirPlayButtonProps, AirPlayButton } from './components/ui/buttons/airplay-button';
21
- export { type GoogleCastButtonProps, GoogleCastButton, } from './components/ui/buttons/google-cast-button';
22
- export { type PlayButtonProps, PlayButton } from './components/ui/buttons/play-button';
23
- export { type CaptionButtonProps, CaptionButton } from './components/ui/buttons/caption-button';
24
- export { type FullscreenButtonProps, FullscreenButton, } from './components/ui/buttons/fullscreen-button';
25
- export { type MuteButtonProps, MuteButton } from './components/ui/buttons/mute-button';
26
- export { type PIPButtonProps, PIPButton } from './components/ui/buttons/pip-button';
27
- export { type SeekButtonProps, SeekButton } from './components/ui/buttons/seek-button';
28
- export { type LiveButtonProps, LiveButton } from './components/ui/buttons/live-button';
29
- export * as Slider from './components/ui/sliders/slider';
30
- export * as VolumeSlider from './components/ui/sliders/volume-slider';
31
- export * as QualitySlider from './components/ui/sliders/quality-slider';
32
- export * as AudioGainSlider from './components/ui/sliders/audio-gain-slider';
33
- export * as SpeedSlider from './components/ui/sliders/speed-slider';
34
- export * as TimeSlider from './components/ui/sliders/time-slider';
35
- export type { RootProps as SliderProps, ValueProps as SliderValueProps, PreviewProps as SliderPreviewProps, StepsProps as SliderStepsProps, } from './components/ui/sliders/slider';
36
- export type { RootProps as VolumeSliderProps } from './components/ui/sliders/volume-slider';
37
- export type { RootProps as AudioGainSliderProps } from './components/ui/sliders/audio-gain-slider';
38
- export type { RootProps as SpeedSliderProps } from './components/ui/sliders/speed-slider';
39
- export type { RootProps as QualitySliderProps } from './components/ui/sliders/quality-slider';
40
- export type { RootProps as TimeSliderProps, ChaptersProps as SliderChapterProps, ChapterTitleProps as SliderChapterTitleProps, ThumbnailProps as SliderThumbnailProps, ThumbnailImgProps as SliderThumbnailImgProps, VideoProps as SliderVideoProps, } from './components/ui/sliders/time-slider';
41
- export * as RadioGroup from './components/ui/radio-group';
42
- export type { RootProps as RadioGroupProps, ItemProps as RadioProps, } from './components/ui/radio-group';
43
- export * as Menu from './components/ui/menu';
44
- export type { RootProps as MenuProps, ButtonProps as MenuButtonProps, PortalProps as MenuPortalProps, ItemsProps as MenuItemsProps, ContentProps as MenuContentProps, ItemProps as MenuItemProps, RadioGroupProps as MenuRadioGroupProps, RadioProps as MenuRadioProps, } from './components/ui/menu';
45
- export { Title, type TitleProps } from './components/ui/title';
46
- export { ChapterTitle, type ChapterTitleProps } from './components/ui/chapter-title';
47
- export { type GestureProps, Gesture } from './components/ui/gesture';
48
- export { Captions, type CaptionsProps } from './components/ui/captions';
49
- export { type PosterProps, Poster } from './components/ui/poster';
50
- export { type TimeProps, Time } from './components/ui/time';
51
- export * as Caption from './components/ui/caption';
52
- export type { RootProps as CaptionProps, TextProps as CaptionTextProps, } from './components/ui/caption';
53
- export * as Thumbnail from './components/ui/thumbnail';
54
- export type { RootProps as ThumbnailProps, ImgProps as ThumbnailImgProps, } from './components/ui/thumbnail';
55
- export * as Spinner from './components/ui/spinner';
56
- export type { RootProps as SpinnerProps, TrackProps as SpinnerTrackProps, TrackFillProps as SpinnerTrackFillProps, } from './components/ui/spinner';
57
- export * from './hooks/use-state';
58
- export * from './hooks/use-media-context';
59
- export * from './hooks/use-media-player';
60
- export * from './hooks/use-media-provider';
61
- export * from './hooks/use-media-remote';
62
- export * from './hooks/use-media-state';
63
- export * from './hooks/use-thumbnails';
64
- export * from './hooks/use-slider-state';
65
- export * from './hooks/use-slider-preview';
66
- export * from './hooks/use-text-cues';
67
- export * from './hooks/use-active-text-cues';
68
- export * from './hooks/use-active-text-track';
69
- export * from './hooks/use-chapter-title';
70
- export * from './hooks/create-text-track';
71
- export * from './hooks/options/use-audio-gain-options';
72
- export * from './hooks/options/use-audio-options';
73
- export * from './hooks/options/use-caption-options';
74
- export * from './hooks/options/use-chapter-options';
75
- export * from './hooks/options/use-video-quality-options';
76
- export * from './hooks/options/use-playback-rate-options';
77
- export type { DefaultLayoutProps } from './components/layouts/default';
78
- export type { PlyrLayoutProps } from './components/layouts/plyr';
@@ -1,7 +0,0 @@
1
- export { type RemotionThumbnailProps, default as RemotionThumbnail } from './ui/thumbnail';
2
- export { type RemotionPosterProps, default as RemotionPoster } from './ui/poster';
3
- export { type RemotionSliderThumbnailProps, default as RemotionSliderThumbnail, } from './ui/slider-thumbnail';
4
- export { RemotionProviderLoader } from './loader';
5
- export type { RemotionProvider } from './provider';
6
- export type * from './types';
7
- export { isRemotionProvider, isRemotionSrc as isRemotionSource, isRemotionSrc } from './type-check';
@@ -1,8 +0,0 @@
1
- import type { RemotionSrc } from './types';
2
- export declare class RemotionLayoutEngine {
3
- #private;
4
- constructor();
5
- setSrc(src: RemotionSrc | null): void;
6
- setContainer(container: HTMLElement | null): void;
7
- destroy(): void;
8
- }
@@ -1,9 +0,0 @@
1
- import type { MediaContext, MediaProviderAdapter, MediaProviderLoader, MediaType, Src } from 'vidstack';
2
- export declare class RemotionProviderLoader implements MediaProviderLoader {
3
- readonly name = "remotion";
4
- target: HTMLElement;
5
- constructor();
6
- canPlay(src: Src): boolean;
7
- mediaType(): MediaType;
8
- load(ctx: MediaContext): Promise<MediaProviderAdapter>;
9
- }
@@ -1,11 +0,0 @@
1
- import type { RemotionSrc } from './types';
2
- export declare class RemotionPlaybackEngine {
3
- #private;
4
- get frame(): number;
5
- set frame(frame: number);
6
- constructor(src: RemotionSrc, onFrameChange: (frame: number) => void, onEnd: () => void);
7
- play(): void;
8
- stop(): void;
9
- setPlaybackRate(rate: number): void;
10
- destroy(): void;
11
- }
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
- import { type MediaContext, type MediaProviderAdapter, type Src } from 'vidstack';
3
- import type { RemotionSrc } from './types';
4
- export declare class RemotionProvider implements MediaProviderAdapter {
5
- #private;
6
- protected readonly $$PROVIDER_TYPE = "REMOTION";
7
- readonly scope: import("maverick.js").Scope;
8
- get type(): string;
9
- get currentSrc(): RemotionSrc<import("./types").RemotionInputProps> | null;
10
- get frame(): Record<string, number>;
11
- constructor(container: HTMLElement, ctx: MediaContext);
12
- setup(): void;
13
- play(): Promise<void>;
14
- pause(): Promise<void>;
15
- setMuted(value: React.SetStateAction<boolean>): void;
16
- setCurrentTime(time: number): void;
17
- setVolume(value: React.SetStateAction<number>): void;
18
- setPlaybackRate(rate: React.SetStateAction<number>): void;
19
- loadSource(src: Src): Promise<void>;
20
- destroy(): void;
21
- changeSrc(src: RemotionSrc | null): void;
22
- render: () => React.ReactNode;
23
- renderVideo: ({ src }: {
24
- src: RemotionSrc;
25
- }) => React.ReactNode;
26
- }
@@ -1,6 +0,0 @@
1
- import type { Src } from 'vidstack';
2
- import type { RemotionProvider } from './provider';
3
- import type { RemotionSrc } from './types';
4
- /** @see {@link https://www.vidstack.io/docs/player/providers/remotion} */
5
- export declare function isRemotionProvider(provider: any): provider is RemotionProvider;
6
- export declare function isRemotionSrc(src?: Src | null): src is RemotionSrc;
@@ -1,91 +0,0 @@
1
- import type * as React from 'react';
2
- export interface RemotionSrc<InputProps extends RemotionInputProps = RemotionInputProps> {
3
- /** React component which is generally a Remotion video. */
4
- src: React.ComponentType<unknown>;
5
- /** Remotion source type. */
6
- type: 'video/remotion';
7
- /**
8
- * Pass props to the component that you have specified using the component prop.
9
- */
10
- inputProps?: InputProps;
11
- /**
12
- * The width of the composition.
13
- *
14
- * @defaultValue 1920
15
- */
16
- compositionWidth?: number;
17
- /**
18
- * The height of the composition.
19
- *
20
- * @defaultValue 1080
21
- */
22
- compositionHeight?: number;
23
- /**
24
- * The frame rate of the video per second.
25
- *
26
- * @defaultValue 30
27
- */
28
- fps?: number;
29
- /**
30
- * The duration of the video in frames. Must be an integer and greater than 0.
31
- */
32
- durationInFrames: number;
33
- /**
34
- * Start the playback from a specific frame.
35
- *
36
- * @defaultValue 0
37
- */
38
- initialFrame?: number;
39
- /**
40
- * Limit playback to only play after a certain frame. The video will start from this frame and
41
- * move to this position once it has ended. Must be an integer, not smaller than 0, not bigger
42
- * than `outFrame` and not bigger than `durationInFrames - 1`.
43
- *
44
- * @defaultValue 0
45
- */
46
- inFrame?: number | null;
47
- /**
48
- * Limit playback to only play before a certain frame. The video will end at this frame
49
- * and move to the beginning once it has ended. Must be an integer, not smaller than 1, not
50
- * smaller than `inFrame` and not bigger than `durationInFrames`.
51
- *
52
- * @defaultValue `durationInFrames`
53
- */
54
- outFrame?: number;
55
- /**
56
- * If you use an `<Audio />` tag, it might not play in some browsers (specifically iOS Safari)
57
- * due to browser autoplay policies. This is why the player pre-mounts a set of audio tags with
58
- * silent audio that get played upon user interaction. These audio tags can then be used to play
59
- * real audio later and will not be subject to the autoplay policy of the browser.
60
- *
61
- * This option controls how many audio tags are being rendered, the default is 5. If you mount
62
- * more audio tags than shared audio tags are available, then an error will be thrown.
63
- *
64
- * If you'd like to opt out of this behavior, you can pass 0 to mount native audio tags
65
- * simultaneously as you mount Remotion's <Audio /> tags.
66
- *
67
- * @defaultValue 5
68
- */
69
- numberOfSharedAudioTags?: number;
70
- /**
71
- * A callback function that allows you to return a custom UI that gets displayed while the
72
- * provider is loading.
73
- */
74
- renderLoading?: RemotionLoadingRenderer;
75
- /**
76
- * A callback for rendering a custom error message.
77
- */
78
- errorFallback?: RemotionErrorRenderer;
79
- /**
80
- * Called when an error or uncaught exception has happened in the video.
81
- */
82
- onError?(error: Error): void;
83
- }
84
- export interface RemotionInputProps extends Record<string, unknown> {
85
- }
86
- export interface RemotionLoadingRenderer {
87
- (): React.ReactNode;
88
- }
89
- export interface RemotionErrorRenderer {
90
- (error: Error): React.ReactNode;
91
- }