@beautinique/frontend-components 1.0.8 → 1.0.9

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 (380) hide show
  1. package/README.md +225 -16
  2. package/dist/auth/SocialAuth.d.cts +33 -0
  3. package/dist/auth/SocialAuth.d.cts.map +1 -0
  4. package/dist/auth/SocialAuth.d.ts +33 -0
  5. package/dist/auth/SocialAuth.d.ts.map +1 -0
  6. package/dist/auth/index.cjs +34 -26
  7. package/dist/auth/index.cjs.map +1 -1
  8. package/dist/auth/index.d.cts +1 -0
  9. package/dist/auth/index.d.cts.map +1 -1
  10. package/dist/auth/index.d.ts +1 -0
  11. package/dist/auth/index.d.ts.map +1 -1
  12. package/dist/auth/index.js +32 -25
  13. package/dist/auth/index.js.map +1 -1
  14. package/dist/breadcrumb/Breadcrumb.d.cts +34 -0
  15. package/dist/breadcrumb/Breadcrumb.d.cts.map +1 -0
  16. package/dist/breadcrumb/Breadcrumb.d.ts +34 -0
  17. package/dist/breadcrumb/Breadcrumb.d.ts.map +1 -0
  18. package/dist/breadcrumb/breadcrumb-icons.d.cts +6 -0
  19. package/dist/breadcrumb/breadcrumb-icons.d.cts.map +1 -0
  20. package/dist/breadcrumb/breadcrumb-icons.d.ts +6 -0
  21. package/dist/breadcrumb/breadcrumb-icons.d.ts.map +1 -0
  22. package/dist/breadcrumb/getBreadcrumbItems.d.cts +16 -0
  23. package/dist/breadcrumb/getBreadcrumbItems.d.cts.map +1 -0
  24. package/dist/breadcrumb/getBreadcrumbItems.d.ts +16 -0
  25. package/dist/breadcrumb/getBreadcrumbItems.d.ts.map +1 -0
  26. package/dist/breadcrumb/index.cjs +110 -0
  27. package/dist/breadcrumb/index.cjs.map +1 -0
  28. package/dist/breadcrumb/index.d.cts +3 -0
  29. package/dist/breadcrumb/index.d.cts.map +1 -0
  30. package/dist/breadcrumb/index.d.ts +3 -0
  31. package/dist/breadcrumb/index.d.ts.map +1 -0
  32. package/dist/breadcrumb/index.js +107 -0
  33. package/dist/breadcrumb/index.js.map +1 -0
  34. package/dist/color-input/ColorInput.d.cts +33 -0
  35. package/dist/color-input/ColorInput.d.cts.map +1 -0
  36. package/dist/color-input/ColorInput.d.ts +33 -0
  37. package/dist/color-input/ColorInput.d.ts.map +1 -0
  38. package/dist/color-input/color-input-icons.d.cts +6 -0
  39. package/dist/color-input/color-input-icons.d.cts.map +1 -0
  40. package/dist/color-input/color-input-icons.d.ts +6 -0
  41. package/dist/color-input/color-input-icons.d.ts.map +1 -0
  42. package/dist/color-input/color.d.cts +10 -0
  43. package/dist/color-input/color.d.cts.map +1 -0
  44. package/dist/color-input/color.d.ts +10 -0
  45. package/dist/color-input/color.d.ts.map +1 -0
  46. package/dist/color-input/index.cjs +375 -0
  47. package/dist/color-input/index.cjs.map +1 -0
  48. package/dist/color-input/index.d.cts +2 -0
  49. package/dist/color-input/index.d.cts.map +1 -0
  50. package/dist/color-input/index.d.ts +2 -0
  51. package/dist/color-input/index.d.ts.map +1 -0
  52. package/dist/color-input/index.js +373 -0
  53. package/dist/color-input/index.js.map +1 -0
  54. package/dist/file-input/FileInput.d.cts +53 -0
  55. package/dist/file-input/FileInput.d.cts.map +1 -0
  56. package/dist/file-input/FileInput.d.ts +53 -0
  57. package/dist/file-input/FileInput.d.ts.map +1 -0
  58. package/dist/file-input/file-input-icons.d.cts +6 -0
  59. package/dist/file-input/file-input-icons.d.cts.map +1 -0
  60. package/dist/file-input/file-input-icons.d.ts +6 -0
  61. package/dist/file-input/file-input-icons.d.ts.map +1 -0
  62. package/dist/file-input/index.cjs +259 -0
  63. package/dist/file-input/index.cjs.map +1 -0
  64. package/dist/file-input/index.d.cts +3 -0
  65. package/dist/file-input/index.d.cts.map +1 -0
  66. package/dist/file-input/index.d.ts +3 -0
  67. package/dist/file-input/index.d.ts.map +1 -0
  68. package/dist/file-input/index.js +256 -0
  69. package/dist/file-input/index.js.map +1 -0
  70. package/dist/file-input/media-type.d.cts +8 -0
  71. package/dist/file-input/media-type.d.cts.map +1 -0
  72. package/dist/file-input/media-type.d.ts +8 -0
  73. package/dist/file-input/media-type.d.ts.map +1 -0
  74. package/dist/file-input/useObjectUrls.d.cts +10 -0
  75. package/dist/file-input/useObjectUrls.d.cts.map +1 -0
  76. package/dist/file-input/useObjectUrls.d.ts +10 -0
  77. package/dist/file-input/useObjectUrls.d.ts.map +1 -0
  78. package/dist/hierarchy-select/HierarchySelect.d.cts +58 -0
  79. package/dist/hierarchy-select/HierarchySelect.d.cts.map +1 -0
  80. package/dist/hierarchy-select/HierarchySelect.d.ts +58 -0
  81. package/dist/hierarchy-select/HierarchySelect.d.ts.map +1 -0
  82. package/dist/hierarchy-select/hierarchy-select-icons.d.cts +6 -0
  83. package/dist/hierarchy-select/hierarchy-select-icons.d.cts.map +1 -0
  84. package/dist/hierarchy-select/hierarchy-select-icons.d.ts +6 -0
  85. package/dist/hierarchy-select/hierarchy-select-icons.d.ts.map +1 -0
  86. package/dist/hierarchy-select/index.cjs +596 -0
  87. package/dist/hierarchy-select/index.cjs.map +1 -0
  88. package/dist/hierarchy-select/index.d.cts +2 -0
  89. package/dist/hierarchy-select/index.d.cts.map +1 -0
  90. package/dist/hierarchy-select/index.d.ts +2 -0
  91. package/dist/hierarchy-select/index.d.ts.map +1 -0
  92. package/dist/hierarchy-select/index.js +594 -0
  93. package/dist/hierarchy-select/index.js.map +1 -0
  94. package/dist/hierarchy-select/tree.d.cts +38 -0
  95. package/dist/hierarchy-select/tree.d.cts.map +1 -0
  96. package/dist/hierarchy-select/tree.d.ts +38 -0
  97. package/dist/hierarchy-select/tree.d.ts.map +1 -0
  98. package/dist/index.cjs +7 -0
  99. package/dist/index.d.cts +1 -0
  100. package/dist/index.d.cts.map +1 -1
  101. package/dist/index.d.ts +1 -0
  102. package/dist/index.d.ts.map +1 -1
  103. package/dist/index.js +1 -0
  104. package/dist/inputs/Checkbox.d.cts +21 -0
  105. package/dist/inputs/Checkbox.d.cts.map +1 -0
  106. package/dist/inputs/Checkbox.d.ts +21 -0
  107. package/dist/inputs/Checkbox.d.ts.map +1 -0
  108. package/dist/inputs/Input.d.cts +26 -0
  109. package/dist/inputs/Input.d.cts.map +1 -0
  110. package/dist/inputs/Input.d.ts +26 -0
  111. package/dist/inputs/Input.d.ts.map +1 -0
  112. package/dist/inputs/InputError.d.cts +11 -0
  113. package/dist/inputs/InputError.d.cts.map +1 -0
  114. package/dist/inputs/InputError.d.ts +11 -0
  115. package/dist/inputs/InputError.d.ts.map +1 -0
  116. package/dist/inputs/InputIcon.d.cts +9 -0
  117. package/dist/inputs/InputIcon.d.cts.map +1 -0
  118. package/dist/inputs/InputIcon.d.ts +9 -0
  119. package/dist/inputs/InputIcon.d.ts.map +1 -0
  120. package/dist/inputs/InputLabel.d.cts +8 -0
  121. package/dist/inputs/InputLabel.d.cts.map +1 -0
  122. package/dist/inputs/InputLabel.d.ts +8 -0
  123. package/dist/inputs/InputLabel.d.ts.map +1 -0
  124. package/dist/inputs/Radio.d.cts +25 -0
  125. package/dist/inputs/Radio.d.cts.map +1 -0
  126. package/dist/inputs/Radio.d.ts +25 -0
  127. package/dist/inputs/Radio.d.ts.map +1 -0
  128. package/dist/inputs/Select.d.cts +53 -0
  129. package/dist/inputs/Select.d.cts.map +1 -0
  130. package/dist/inputs/Select.d.ts +53 -0
  131. package/dist/inputs/Select.d.ts.map +1 -0
  132. package/dist/inputs/Textarea.d.cts +19 -0
  133. package/dist/inputs/Textarea.d.cts.map +1 -0
  134. package/dist/inputs/Textarea.d.ts +19 -0
  135. package/dist/inputs/Textarea.d.ts.map +1 -0
  136. package/dist/inputs/index.cjs +746 -0
  137. package/dist/inputs/index.cjs.map +1 -0
  138. package/dist/inputs/index.d.cts +10 -0
  139. package/dist/inputs/index.d.cts.map +1 -0
  140. package/dist/inputs/index.d.ts +10 -0
  141. package/dist/inputs/index.d.ts.map +1 -0
  142. package/dist/inputs/index.js +737 -0
  143. package/dist/inputs/index.js.map +1 -0
  144. package/dist/inputs/inputs-icons.d.cts +6 -0
  145. package/dist/inputs/inputs-icons.d.cts.map +1 -0
  146. package/dist/inputs/inputs-icons.d.ts +6 -0
  147. package/dist/inputs/inputs-icons.d.ts.map +1 -0
  148. package/dist/inputs/types.d.cts +48 -0
  149. package/dist/inputs/types.d.cts.map +1 -0
  150. package/dist/inputs/types.d.ts +48 -0
  151. package/dist/inputs/types.d.ts.map +1 -0
  152. package/dist/inputs/useFieldIds.d.cts +24 -0
  153. package/dist/inputs/useFieldIds.d.cts.map +1 -0
  154. package/dist/inputs/useFieldIds.d.ts +24 -0
  155. package/dist/inputs/useFieldIds.d.ts.map +1 -0
  156. package/dist/layout/ApiStatus.d.cts +20 -0
  157. package/dist/layout/ApiStatus.d.cts.map +1 -0
  158. package/dist/layout/ApiStatus.d.ts +20 -0
  159. package/dist/layout/ApiStatus.d.ts.map +1 -0
  160. package/dist/layout/BorderGradient.d.cts +11 -0
  161. package/dist/layout/BorderGradient.d.cts.map +1 -0
  162. package/dist/layout/BorderGradient.d.ts +11 -0
  163. package/dist/layout/BorderGradient.d.ts.map +1 -0
  164. package/dist/layout/ConfirmModal.d.cts +44 -0
  165. package/dist/layout/ConfirmModal.d.cts.map +1 -0
  166. package/dist/layout/ConfirmModal.d.ts +44 -0
  167. package/dist/layout/ConfirmModal.d.ts.map +1 -0
  168. package/dist/layout/Dropdown.d.cts +33 -0
  169. package/dist/layout/Dropdown.d.cts.map +1 -0
  170. package/dist/layout/Dropdown.d.ts +33 -0
  171. package/dist/layout/Dropdown.d.ts.map +1 -0
  172. package/dist/layout/LoadingPage.d.cts +11 -0
  173. package/dist/layout/LoadingPage.d.cts.map +1 -0
  174. package/dist/layout/LoadingPage.d.ts +11 -0
  175. package/dist/layout/LoadingPage.d.ts.map +1 -0
  176. package/dist/layout/LoadingRings.d.cts +12 -0
  177. package/dist/layout/LoadingRings.d.cts.map +1 -0
  178. package/dist/layout/LoadingRings.d.ts +12 -0
  179. package/dist/layout/LoadingRings.d.ts.map +1 -0
  180. package/dist/layout/LoadingText.d.cts +13 -0
  181. package/dist/layout/LoadingText.d.cts.map +1 -0
  182. package/dist/layout/LoadingText.d.ts +13 -0
  183. package/dist/layout/LoadingText.d.ts.map +1 -0
  184. package/dist/layout/ModalWrapper.d.cts +48 -0
  185. package/dist/layout/ModalWrapper.d.cts.map +1 -0
  186. package/dist/layout/ModalWrapper.d.ts +48 -0
  187. package/dist/layout/ModalWrapper.d.ts.map +1 -0
  188. package/dist/layout/NetworkStatusToaster.d.cts +39 -0
  189. package/dist/layout/NetworkStatusToaster.d.cts.map +1 -0
  190. package/dist/layout/NetworkStatusToaster.d.ts +39 -0
  191. package/dist/layout/NetworkStatusToaster.d.ts.map +1 -0
  192. package/dist/layout/ScrollableGradientContainer.d.cts +28 -0
  193. package/dist/layout/ScrollableGradientContainer.d.cts.map +1 -0
  194. package/dist/layout/ScrollableGradientContainer.d.ts +28 -0
  195. package/dist/layout/ScrollableGradientContainer.d.ts.map +1 -0
  196. package/dist/layout/Skeleton.d.cts +9 -0
  197. package/dist/layout/Skeleton.d.cts.map +1 -0
  198. package/dist/layout/Skeleton.d.ts +9 -0
  199. package/dist/layout/Skeleton.d.ts.map +1 -0
  200. package/dist/layout/Table.d.cts +9 -0
  201. package/dist/layout/Table.d.cts.map +1 -0
  202. package/dist/layout/Table.d.ts +9 -0
  203. package/dist/layout/Table.d.ts.map +1 -0
  204. package/dist/layout/index.cjs +743 -3
  205. package/dist/layout/index.cjs.map +1 -1
  206. package/dist/layout/index.d.cts +12 -0
  207. package/dist/layout/index.d.cts.map +1 -1
  208. package/dist/layout/index.d.ts +12 -0
  209. package/dist/layout/index.d.ts.map +1 -1
  210. package/dist/layout/index.js +724 -2
  211. package/dist/layout/index.js.map +1 -1
  212. package/dist/layout/layout-icons.d.cts +6 -0
  213. package/dist/layout/layout-icons.d.cts.map +1 -0
  214. package/dist/layout/layout-icons.d.ts +6 -0
  215. package/dist/layout/layout-icons.d.ts.map +1 -0
  216. package/dist/lib/dropdown-position.d.cts +33 -0
  217. package/dist/lib/dropdown-position.d.cts.map +1 -0
  218. package/dist/lib/dropdown-position.d.ts +33 -0
  219. package/dist/lib/dropdown-position.d.ts.map +1 -0
  220. package/dist/lib/focus.d.cts +3 -0
  221. package/dist/lib/focus.d.cts.map +1 -0
  222. package/dist/lib/focus.d.ts +3 -0
  223. package/dist/lib/focus.d.ts.map +1 -0
  224. package/dist/lib/icon-registry.d.cts +14 -0
  225. package/dist/lib/icon-registry.d.cts.map +1 -0
  226. package/dist/lib/icon-registry.d.ts +14 -0
  227. package/dist/lib/icon-registry.d.ts.map +1 -0
  228. package/dist/lib/mergeRefs.d.cts +10 -0
  229. package/dist/lib/mergeRefs.d.cts.map +1 -0
  230. package/dist/lib/mergeRefs.d.ts +10 -0
  231. package/dist/lib/mergeRefs.d.ts.map +1 -0
  232. package/dist/lib/scrollRowIntoView.d.cts +7 -0
  233. package/dist/lib/scrollRowIntoView.d.cts.map +1 -0
  234. package/dist/lib/scrollRowIntoView.d.ts +7 -0
  235. package/dist/lib/scrollRowIntoView.d.ts.map +1 -0
  236. package/dist/lib/typeahead.d.cts +21 -0
  237. package/dist/lib/typeahead.d.cts.map +1 -0
  238. package/dist/lib/typeahead.d.ts +21 -0
  239. package/dist/lib/typeahead.d.ts.map +1 -0
  240. package/dist/lib/useAnchoredBox.d.cts +26 -0
  241. package/dist/lib/useAnchoredBox.d.cts.map +1 -0
  242. package/dist/lib/useAnchoredBox.d.ts +26 -0
  243. package/dist/lib/useAnchoredBox.d.ts.map +1 -0
  244. package/dist/lib/useDismiss.d.cts +34 -0
  245. package/dist/lib/useDismiss.d.cts.map +1 -0
  246. package/dist/lib/useDismiss.d.ts +34 -0
  247. package/dist/lib/useDismiss.d.ts.map +1 -0
  248. package/dist/lib/useFocusTrap.d.cts +24 -0
  249. package/dist/lib/useFocusTrap.d.cts.map +1 -0
  250. package/dist/lib/useFocusTrap.d.ts +24 -0
  251. package/dist/lib/useFocusTrap.d.ts.map +1 -0
  252. package/dist/lib/useIsClient.d.cts +7 -0
  253. package/dist/lib/useIsClient.d.cts.map +1 -0
  254. package/dist/lib/useIsClient.d.ts +7 -0
  255. package/dist/lib/useIsClient.d.ts.map +1 -0
  256. package/dist/lib/usePrefersReducedMotion.d.cts +7 -0
  257. package/dist/lib/usePrefersReducedMotion.d.cts.map +1 -0
  258. package/dist/lib/usePrefersReducedMotion.d.ts +7 -0
  259. package/dist/lib/usePrefersReducedMotion.d.ts.map +1 -0
  260. package/dist/lib/useScrollLock.d.cts +7 -0
  261. package/dist/lib/useScrollLock.d.cts.map +1 -0
  262. package/dist/lib/useScrollLock.d.ts +7 -0
  263. package/dist/lib/useScrollLock.d.ts.map +1 -0
  264. package/dist/lib/useScrollable.d.cts +17 -0
  265. package/dist/lib/useScrollable.d.cts.map +1 -0
  266. package/dist/lib/useScrollable.d.ts +17 -0
  267. package/dist/lib/useScrollable.d.ts.map +1 -0
  268. package/dist/loading-screen/LoadingScreen.d.cts +21 -0
  269. package/dist/loading-screen/LoadingScreen.d.cts.map +1 -0
  270. package/dist/loading-screen/LoadingScreen.d.ts +21 -0
  271. package/dist/loading-screen/LoadingScreen.d.ts.map +1 -0
  272. package/dist/loading-screen/Teddy.d.cts +10 -0
  273. package/dist/loading-screen/Teddy.d.cts.map +1 -0
  274. package/dist/loading-screen/Teddy.d.ts +10 -0
  275. package/dist/loading-screen/Teddy.d.ts.map +1 -0
  276. package/dist/loading-screen/WakeUpProgress.d.cts +16 -0
  277. package/dist/loading-screen/WakeUpProgress.d.cts.map +1 -0
  278. package/dist/loading-screen/WakeUpProgress.d.ts +16 -0
  279. package/dist/loading-screen/WakeUpProgress.d.ts.map +1 -0
  280. package/dist/loading-screen/beauty-facts.d.cts +4 -0
  281. package/dist/loading-screen/beauty-facts.d.cts.map +1 -0
  282. package/dist/loading-screen/beauty-facts.d.ts +4 -0
  283. package/dist/loading-screen/beauty-facts.d.ts.map +1 -0
  284. package/dist/loading-screen/index.cjs +405 -0
  285. package/dist/loading-screen/index.cjs.map +1 -0
  286. package/dist/loading-screen/index.d.cts +5 -0
  287. package/dist/loading-screen/index.d.cts.map +1 -0
  288. package/dist/loading-screen/index.d.ts +5 -0
  289. package/dist/loading-screen/index.d.ts.map +1 -0
  290. package/dist/loading-screen/index.js +400 -0
  291. package/dist/loading-screen/index.js.map +1 -0
  292. package/dist/loading-screen/loading-screen-icons.d.cts +6 -0
  293. package/dist/loading-screen/loading-screen-icons.d.cts.map +1 -0
  294. package/dist/loading-screen/loading-screen-icons.d.ts +6 -0
  295. package/dist/loading-screen/loading-screen-icons.d.ts.map +1 -0
  296. package/dist/media/MediaCarousel.d.cts +30 -0
  297. package/dist/media/MediaCarousel.d.cts.map +1 -0
  298. package/dist/media/MediaCarousel.d.ts +30 -0
  299. package/dist/media/MediaCarousel.d.ts.map +1 -0
  300. package/dist/media/MediaCarouselWithModal.d.cts +17 -0
  301. package/dist/media/MediaCarouselWithModal.d.cts.map +1 -0
  302. package/dist/media/MediaCarouselWithModal.d.ts +17 -0
  303. package/dist/media/MediaCarouselWithModal.d.ts.map +1 -0
  304. package/dist/media/MediaCarouselWithParentMedia.d.cts +30 -0
  305. package/dist/media/MediaCarouselWithParentMedia.d.cts.map +1 -0
  306. package/dist/media/MediaCarouselWithParentMedia.d.ts +30 -0
  307. package/dist/media/MediaCarouselWithParentMedia.d.ts.map +1 -0
  308. package/dist/media/MediaModal.d.cts +27 -0
  309. package/dist/media/MediaModal.d.cts.map +1 -0
  310. package/dist/media/MediaModal.d.ts +27 -0
  311. package/dist/media/MediaModal.d.ts.map +1 -0
  312. package/dist/media/VideoPlayer.d.cts +37 -0
  313. package/dist/media/VideoPlayer.d.cts.map +1 -0
  314. package/dist/media/VideoPlayer.d.ts +37 -0
  315. package/dist/media/VideoPlayer.d.ts.map +1 -0
  316. package/dist/media/captureVideoPoster.d.cts +20 -0
  317. package/dist/media/captureVideoPoster.d.cts.map +1 -0
  318. package/dist/media/captureVideoPoster.d.ts +20 -0
  319. package/dist/media/captureVideoPoster.d.ts.map +1 -0
  320. package/dist/media/index.cjs +613 -0
  321. package/dist/media/index.cjs.map +1 -0
  322. package/dist/media/index.d.cts +8 -0
  323. package/dist/media/index.d.cts.map +1 -0
  324. package/dist/media/index.d.ts +8 -0
  325. package/dist/media/index.d.ts.map +1 -0
  326. package/dist/media/index.js +605 -0
  327. package/dist/media/index.js.map +1 -0
  328. package/dist/media/labels.d.cts +33 -0
  329. package/dist/media/labels.d.cts.map +1 -0
  330. package/dist/media/labels.d.ts +33 -0
  331. package/dist/media/labels.d.ts.map +1 -0
  332. package/dist/media/media-icons.d.cts +6 -0
  333. package/dist/media/media-icons.d.cts.map +1 -0
  334. package/dist/media/media-icons.d.ts +6 -0
  335. package/dist/media/media-icons.d.ts.map +1 -0
  336. package/dist/media/streaming.d.cts +18 -0
  337. package/dist/media/streaming.d.cts.map +1 -0
  338. package/dist/media/streaming.d.ts +18 -0
  339. package/dist/media/streaming.d.ts.map +1 -0
  340. package/dist/resend/index.cjs +5 -28
  341. package/dist/resend/index.cjs.map +1 -1
  342. package/dist/resend/index.js +1 -24
  343. package/dist/resend/index.js.map +1 -1
  344. package/dist/static-page/StaticPage.d.cts +91 -0
  345. package/dist/static-page/StaticPage.d.cts.map +1 -0
  346. package/dist/static-page/StaticPage.d.ts +91 -0
  347. package/dist/static-page/StaticPage.d.ts.map +1 -0
  348. package/dist/static-page/index.cjs +247 -0
  349. package/dist/static-page/index.cjs.map +1 -0
  350. package/dist/static-page/index.d.cts +2 -0
  351. package/dist/static-page/index.d.cts.map +1 -0
  352. package/dist/static-page/index.d.ts +2 -0
  353. package/dist/static-page/index.d.ts.map +1 -0
  354. package/dist/static-page/index.js +235 -0
  355. package/dist/static-page/index.js.map +1 -0
  356. package/dist/static-page/static-page-icons.d.cts +6 -0
  357. package/dist/static-page/static-page-icons.d.cts.map +1 -0
  358. package/dist/static-page/static-page-icons.d.ts +6 -0
  359. package/dist/static-page/static-page-icons.d.ts.map +1 -0
  360. package/dist/testimonials/TestimonialCarousel.d.cts +40 -0
  361. package/dist/testimonials/TestimonialCarousel.d.cts.map +1 -0
  362. package/dist/testimonials/TestimonialCarousel.d.ts +40 -0
  363. package/dist/testimonials/TestimonialCarousel.d.ts.map +1 -0
  364. package/dist/testimonials/index.cjs +246 -0
  365. package/dist/testimonials/index.cjs.map +1 -0
  366. package/dist/testimonials/index.d.cts +2 -0
  367. package/dist/testimonials/index.d.cts.map +1 -0
  368. package/dist/testimonials/index.d.ts +2 -0
  369. package/dist/testimonials/index.d.ts.map +1 -0
  370. package/dist/testimonials/index.js +244 -0
  371. package/dist/testimonials/index.js.map +1 -0
  372. package/dist/testimonials/testimonials-icons.d.cts +6 -0
  373. package/dist/testimonials/testimonials-icons.d.cts.map +1 -0
  374. package/dist/testimonials/testimonials-icons.d.ts +6 -0
  375. package/dist/testimonials/testimonials-icons.d.ts.map +1 -0
  376. package/dist/toast/index.cjs +2 -38
  377. package/dist/toast/index.cjs.map +1 -1
  378. package/dist/toast/index.js +1 -37
  379. package/dist/toast/index.js.map +1 -1
  380. package/package.json +67 -1
@@ -0,0 +1,30 @@
1
+ import { type VideoHTMLAttributes } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ import { type IMediaLabels, type TMediaOption } from './labels.js';
4
+ import { type TPlayerProps } from './MediaCarousel.js';
5
+ export interface IMediaCarouselWithParent extends IClassName {
6
+ media: readonly TMediaOption[];
7
+ /**
8
+ * The item to show. It is only the first one: the carousel goes on by itself when the person
9
+ * chooses another, and follows this again whenever it changes.
10
+ */
11
+ selected?: number | null;
12
+ /** Previous and next buttons with a counter, when there is more than one item. @default true */
13
+ needButtonControls?: boolean;
14
+ /** The attributes of the video when the item shown is one (`src` is the item's). */
15
+ videoProps?: VideoHTMLAttributes<HTMLVideoElement>;
16
+ /** Adds a button on each thumbnail that calls this with its index. */
17
+ handleRemove?: (index: number) => void;
18
+ labels?: Partial<IMediaLabels>;
19
+ playerProps?: TPlayerProps;
20
+ }
21
+ /**
22
+ * The picture (or video) that is chosen, big, with the thumbnails of all of them under it. The
23
+ * previous and next buttons go round (after the last one comes the first). With the focus anywhere in
24
+ * it the left and right arrow keys do the same, and the counter between the buttons is read out
25
+ * when it changes.
26
+ *
27
+ * A removed item that was the last one moves the carousel to the new last one.
28
+ */
29
+ export declare const MediaCarouselWithParentMedia: ({ className, media, selected, needButtonControls, videoProps, handleRemove, labels, playerProps, }: IMediaCarouselWithParent) => import("react").JSX.Element | null;
30
+ //# sourceMappingURL=MediaCarouselWithParentMedia.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaCarouselWithParentMedia.d.cts","sourceRoot":"","sources":["../../src/media/MediaCarouselWithParentMedia.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,KAAK,YAAY,EAAiB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAItE,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gGAAgG;IAChG,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oFAAoF;IACpF,UAAU,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACnD,sEAAsE;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAwBD;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,GAAI,oGAS1C,wBAAwB,uCA0G1B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { type VideoHTMLAttributes } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ import { type IMediaLabels, type TMediaOption } from './labels.js';
4
+ import { type TPlayerProps } from './MediaCarousel.js';
5
+ export interface IMediaCarouselWithParent extends IClassName {
6
+ media: readonly TMediaOption[];
7
+ /**
8
+ * The item to show. It is only the first one: the carousel goes on by itself when the person
9
+ * chooses another, and follows this again whenever it changes.
10
+ */
11
+ selected?: number | null;
12
+ /** Previous and next buttons with a counter, when there is more than one item. @default true */
13
+ needButtonControls?: boolean;
14
+ /** The attributes of the video when the item shown is one (`src` is the item's). */
15
+ videoProps?: VideoHTMLAttributes<HTMLVideoElement>;
16
+ /** Adds a button on each thumbnail that calls this with its index. */
17
+ handleRemove?: (index: number) => void;
18
+ labels?: Partial<IMediaLabels>;
19
+ playerProps?: TPlayerProps;
20
+ }
21
+ /**
22
+ * The picture (or video) that is chosen, big, with the thumbnails of all of them under it. The
23
+ * previous and next buttons go round (after the last one comes the first). With the focus anywhere in
24
+ * it the left and right arrow keys do the same, and the counter between the buttons is read out
25
+ * when it changes.
26
+ *
27
+ * A removed item that was the last one moves the carousel to the new last one.
28
+ */
29
+ export declare const MediaCarouselWithParentMedia: ({ className, media, selected, needButtonControls, videoProps, handleRemove, labels, playerProps, }: IMediaCarouselWithParent) => import("react").JSX.Element | null;
30
+ //# sourceMappingURL=MediaCarouselWithParentMedia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaCarouselWithParentMedia.d.ts","sourceRoot":"","sources":["../../src/media/MediaCarouselWithParentMedia.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,KAAK,YAAY,EAAiB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAItE,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gGAAgG;IAChG,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oFAAoF;IACpF,UAAU,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACnD,sEAAsE;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAwBD;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,GAAI,oGAS1C,wBAAwB,uCA0G1B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { VideoHTMLAttributes } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ import { type IMediaLabels, type TMediaOption } from './labels.js';
4
+ import type { TPlayerProps } from './MediaCarousel.js';
5
+ export interface IMediaModal extends IClassName {
6
+ media: readonly TMediaOption[];
7
+ isOpen: boolean;
8
+ onClose: () => void;
9
+ /** The item that is shown first. */
10
+ selected?: number | null;
11
+ /**
12
+ * The attributes of the video. In the dialog a video plays by itself, muted, in a loop and with
13
+ * controls (to unmute it, stop it and move in it), unless told otherwise.
14
+ */
15
+ videoProps?: VideoHTMLAttributes<HTMLVideoElement>;
16
+ /** Adds a button on each thumbnail that calls this with its index. */
17
+ handleRemove?: (index: number) => void;
18
+ labels?: Partial<IMediaLabels>;
19
+ playerProps?: TPlayerProps;
20
+ }
21
+ /**
22
+ * The pictures and videos of a gallery in a dialog (`ModalWrapper`: Escape and the close button close
23
+ * it, the focus is kept inside and goes back). Without any media it shows nothing. The `className`
24
+ * is the one of the backdrop.
25
+ */
26
+ export declare const MediaModal: ({ media, isOpen, onClose, selected, className, videoProps, handleRemove, labels, playerProps, }: IMediaModal) => import("react").JSX.Element;
27
+ //# sourceMappingURL=MediaModal.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaModal.d.cts","sourceRoot":"","sources":["../../src/media/MediaModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,KAAK,YAAY,EAAiB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAElF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACnD,sEAAsE;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,iGAUxB,WAAW,gCA8Bb,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { VideoHTMLAttributes } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ import { type IMediaLabels, type TMediaOption } from './labels.js';
4
+ import type { TPlayerProps } from './MediaCarousel.js';
5
+ export interface IMediaModal extends IClassName {
6
+ media: readonly TMediaOption[];
7
+ isOpen: boolean;
8
+ onClose: () => void;
9
+ /** The item that is shown first. */
10
+ selected?: number | null;
11
+ /**
12
+ * The attributes of the video. In the dialog a video plays by itself, muted, in a loop and with
13
+ * controls (to unmute it, stop it and move in it), unless told otherwise.
14
+ */
15
+ videoProps?: VideoHTMLAttributes<HTMLVideoElement>;
16
+ /** Adds a button on each thumbnail that calls this with its index. */
17
+ handleRemove?: (index: number) => void;
18
+ labels?: Partial<IMediaLabels>;
19
+ playerProps?: TPlayerProps;
20
+ }
21
+ /**
22
+ * The pictures and videos of a gallery in a dialog (`ModalWrapper`: Escape and the close button close
23
+ * it, the focus is kept inside and goes back). Without any media it shows nothing. The `className`
24
+ * is the one of the backdrop.
25
+ */
26
+ export declare const MediaModal: ({ media, isOpen, onClose, selected, className, videoProps, handleRemove, labels, playerProps, }: IMediaModal) => import("react").JSX.Element;
27
+ //# sourceMappingURL=MediaModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaModal.d.ts","sourceRoot":"","sources":["../../src/media/MediaModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,KAAK,YAAY,EAAiB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAElF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACnD,sEAAsE;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,iGAUxB,WAAW,gCA8Bb,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type Ref, type VideoHTMLAttributes } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ export interface IVideoPlayer extends IClassName {
4
+ /**
5
+ * The attributes of the `<video>`, `src` included. Unless told otherwise the video plays by itself,
6
+ * muted and without controls, does not loop, and plays inline on a phone.
7
+ * The `className` here is the video's; the one of the player is on its box.
8
+ */
9
+ videoProps: VideoHTMLAttributes<HTMLVideoElement>;
10
+ /** The `<video>` itself (not set while only the poster is shown). */
11
+ ref?: Ref<HTMLVideoElement>;
12
+ /** Show the picture of the video instead of playing it, e.g. for a thumbnail. */
13
+ showPosterOnly?: boolean;
14
+ /**
15
+ * Makes the picture for a video that has no `poster`, when only the poster is shown. Give it to
16
+ * ask a service (an image of the first second that a CDN makes); it can answer at once or later.
17
+ * Without it a frame of the file is taken in the browser (`captureVideoPoster`), which does not
18
+ * work for a stream (`.m3u8`).
19
+ */
20
+ getPoster?: (src: string, signal: AbortSignal) => Promise<string | undefined> | string | undefined;
21
+ /** The picture shown until a poster is there, or when there can be none. */
22
+ placeholder?: string;
23
+ /** The alternative text of the poster. It is empty because it is usually a thumbnail inside a button that has its own name. @default '' */
24
+ posterAlt?: string;
25
+ /** Called when a stream (`.m3u8`) cannot be played. */
26
+ onStreamError?: (error: unknown) => void;
27
+ }
28
+ /**
29
+ * A video, with what an app needs around the plain `<video>`: it plays an HLS stream (`.m3u8`)
30
+ * in the browsers that cannot do it themselves (`hls.js` is loaded then, and only then; install it
31
+ * if you play streams), and it can show only the poster of a video, made from the file when none
32
+ * is given.
33
+ *
34
+ * The video is taken out and put in again when its `src` changes.
35
+ */
36
+ export declare const VideoPlayer: ({ className, videoProps, ref, showPosterOnly, getPoster, placeholder, posterAlt, onStreamError, }: IVideoPlayer) => import("react").JSX.Element;
37
+ //# sourceMappingURL=VideoPlayer.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayer.d.cts","sourceRoot":"","sources":["../../src/media/VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAwC,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAGjG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AASxD,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C;;;;OAIG;IACH,UAAU,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAClD,qEAAqE;IACrE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC5B,iFAAiF;IACjF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,CACV,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;IACtD,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2IAA2I;IAC3I,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAKD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,mGASzB,YAAY,gCAuEd,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type Ref, type VideoHTMLAttributes } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ export interface IVideoPlayer extends IClassName {
4
+ /**
5
+ * The attributes of the `<video>`, `src` included. Unless told otherwise the video plays by itself,
6
+ * muted and without controls, does not loop, and plays inline on a phone.
7
+ * The `className` here is the video's; the one of the player is on its box.
8
+ */
9
+ videoProps: VideoHTMLAttributes<HTMLVideoElement>;
10
+ /** The `<video>` itself (not set while only the poster is shown). */
11
+ ref?: Ref<HTMLVideoElement>;
12
+ /** Show the picture of the video instead of playing it, e.g. for a thumbnail. */
13
+ showPosterOnly?: boolean;
14
+ /**
15
+ * Makes the picture for a video that has no `poster`, when only the poster is shown. Give it to
16
+ * ask a service (an image of the first second that a CDN makes); it can answer at once or later.
17
+ * Without it a frame of the file is taken in the browser (`captureVideoPoster`), which does not
18
+ * work for a stream (`.m3u8`).
19
+ */
20
+ getPoster?: (src: string, signal: AbortSignal) => Promise<string | undefined> | string | undefined;
21
+ /** The picture shown until a poster is there, or when there can be none. */
22
+ placeholder?: string;
23
+ /** The alternative text of the poster. It is empty because it is usually a thumbnail inside a button that has its own name. @default '' */
24
+ posterAlt?: string;
25
+ /** Called when a stream (`.m3u8`) cannot be played. */
26
+ onStreamError?: (error: unknown) => void;
27
+ }
28
+ /**
29
+ * A video, with what an app needs around the plain `<video>`: it plays an HLS stream (`.m3u8`)
30
+ * in the browsers that cannot do it themselves (`hls.js` is loaded then, and only then; install it
31
+ * if you play streams), and it can show only the poster of a video, made from the file when none
32
+ * is given.
33
+ *
34
+ * The video is taken out and put in again when its `src` changes.
35
+ */
36
+ export declare const VideoPlayer: ({ className, videoProps, ref, showPosterOnly, getPoster, placeholder, posterAlt, onStreamError, }: IVideoPlayer) => import("react").JSX.Element;
37
+ //# sourceMappingURL=VideoPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../src/media/VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAwC,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAGjG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AASxD,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C;;;;OAIG;IACH,UAAU,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAClD,qEAAqE;IACrE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC5B,iFAAiF;IACjF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,CACV,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;IACtD,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2IAA2I;IAC3I,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAKD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,mGASzB,YAAY,gCAuEd,CAAC"}
@@ -0,0 +1,20 @@
1
+ export interface ICapturePosterOptions {
2
+ /** The second of the video to take the picture at. @default 0 */
3
+ time?: number;
4
+ /** The widest the picture gets, in pixels: a bigger frame is made smaller. @default 640 */
5
+ maxWidth?: number;
6
+ /** How long to wait for the video, in milliseconds. @default 10000 */
7
+ timeout?: number;
8
+ /** Stops the work (the video is dropped and the answer is `undefined`). */
9
+ signal?: AbortSignal;
10
+ }
11
+ /**
12
+ * A picture (a `data:` URL) of a frame of a video file, to show where the video would be before it
13
+ * plays. It resolves to `undefined` when there is no picture to give: the video fails to load, is
14
+ * not allowed to be read (a video from another site needs `Access-Control-Allow-Origin`), takes too
15
+ * long, or the work was stopped. It never rejects.
16
+ *
17
+ * It cannot read a stream (`.m3u8`): ask the server for a poster for those.
18
+ */
19
+ export declare const captureVideoPoster: (src: string, { time, maxWidth, timeout, signal }?: ICapturePosterOptions) => Promise<string | undefined>;
20
+ //# sourceMappingURL=captureVideoPoster.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captureVideoPoster.d.cts","sourceRoot":"","sources":["../../src/media/captureVideoPoster.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAMD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,EACX,sCAAwD,qBAA0B,gCA8EhF,CAAC"}
@@ -0,0 +1,20 @@
1
+ export interface ICapturePosterOptions {
2
+ /** The second of the video to take the picture at. @default 0 */
3
+ time?: number;
4
+ /** The widest the picture gets, in pixels: a bigger frame is made smaller. @default 640 */
5
+ maxWidth?: number;
6
+ /** How long to wait for the video, in milliseconds. @default 10000 */
7
+ timeout?: number;
8
+ /** Stops the work (the video is dropped and the answer is `undefined`). */
9
+ signal?: AbortSignal;
10
+ }
11
+ /**
12
+ * A picture (a `data:` URL) of a frame of a video file, to show where the video would be before it
13
+ * plays. It resolves to `undefined` when there is no picture to give: the video fails to load, is
14
+ * not allowed to be read (a video from another site needs `Access-Control-Allow-Origin`), takes too
15
+ * long, or the work was stopped. It never rejects.
16
+ *
17
+ * It cannot read a stream (`.m3u8`): ask the server for a poster for those.
18
+ */
19
+ export declare const captureVideoPoster: (src: string, { time, maxWidth, timeout, signal }?: ICapturePosterOptions) => Promise<string | undefined>;
20
+ //# sourceMappingURL=captureVideoPoster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captureVideoPoster.d.ts","sourceRoot":"","sources":["../../src/media/captureVideoPoster.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAMD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,EACX,sCAAwD,qBAA0B,gCA8EhF,CAAC"}