@growth-labs/video 0.3.10 → 0.3.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@growth-labs/video",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -14,6 +14,7 @@ interface Props {
14
14
  title: string
15
15
  premium?: boolean
16
16
  poster?: string
17
+ contentSlug?: string
17
18
  captions?: boolean
18
19
  chapters?: boolean
19
20
  captionsLang?: string
@@ -26,6 +27,7 @@ const {
26
27
  videoId,
27
28
  title,
28
29
  premium = false,
30
+ contentSlug,
29
31
  captionsLang = 'en',
30
32
  class: className,
31
33
  } = Astro.props
@@ -61,6 +63,7 @@ const playerBoolAttrs = buildPlayerBooleanAttrs({
61
63
 
62
64
  <media-player
63
65
  data-video-id={videoId}
66
+ data-content-slug={contentSlug}
64
67
  data-premium={premium ? 'true' : 'false'}
65
68
  data-session-route={premium ? config.premium?.sessionRoute : undefined}
66
69
  data-pending-src={premium ? src : undefined}