flowbite-svelte 0.26.12 → 0.26.13
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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/video/Video.svelte +4 -0
- package/video/Video.svelte.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.26.13](https://github.com/themesberg/flowbite-svelte/compare/v0.26.12...v0.26.13) (2022-09-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add track to video component for A11y ([ef69a83](https://github.com/themesberg/flowbite-svelte/commit/ef69a83325ab11e4d3548e5e28033ae9e02bfe40))
|
|
11
|
+
|
|
5
12
|
### [0.26.12](https://github.com/themesberg/flowbite-svelte/compare/v0.26.11...v0.26.12) (2022-09-05)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/video/Video.svelte
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
// export let autoplay: boolean = false;
|
|
5
5
|
export let src;
|
|
6
6
|
export let type = 'video/mp4';
|
|
7
|
+
export let trackSrc = '';
|
|
8
|
+
export let srclang = 'en';
|
|
9
|
+
export let label = 'english_captions';
|
|
7
10
|
// export let attribute = '';
|
|
8
11
|
let videoClass = classNames($$props.class);
|
|
9
12
|
// const setAttribute = (node, params) => {
|
|
@@ -14,5 +17,6 @@ let videoClass = classNames($$props.class);
|
|
|
14
17
|
<video {...$$restProps} class={videoClass}>
|
|
15
18
|
<source {src} {type} />
|
|
16
19
|
<slot />
|
|
20
|
+
<track src={trackSrc} kind="captions" {srclang} {label} />
|
|
17
21
|
Your browser does not support the video tag.
|
|
18
22
|
</video>
|