@splendidlabz/svelte 4.8.0 → 4.8.2

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @splendidlabz/svelte
2
2
 
3
+ ## 4.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add captions to Youtube embed by default
8
+ - 8ca8c21: Add start as alias for timestamp
9
+
10
+ ## 4.8.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Update timestamp option for Youtube
15
+
3
16
  ## 4.8.0
4
17
 
5
18
  ### Minor Changes
@@ -6,14 +6,15 @@
6
6
  link,
7
7
  title,
8
8
  short = false,
9
- timestamp = 0,
9
+ start = 0,
10
+ timestamp = 0, // alias for start
10
11
  } = $props()
11
12
 
12
13
  if (!id && !link)
13
14
  throw new Error('id or link is required for Youtube component')
14
15
 
15
16
  const _id = id || link.split('/').pop()
16
- const src = `https://www.youtube.com/embed/${_id}?vq=highres&t=${timestamp}`
17
+ const src = `https://www.youtube.com/embed/${_id}?vq=highres&start=${start || timestamp}&cc_load_policy=1&cc_lang_pref=en`
17
18
 
18
19
  const style = toStyleString({
19
20
  width: '100%',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@splendidlabz/svelte",
3
3
  "type": "module",
4
- "version": "4.8.0",
4
+ "version": "4.8.2",
5
5
  "sideEffects": false,
6
6
  "homepage": "https://splendidlabz.com/docs/svelte",
7
7
  "scripts": {