@hubspot/video-player-core 0.1.20 → 0.1.22

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # `@hs-internal/video-player-core`
1
+ # `@hubspot/video-player-core`
2
2
 
3
3
  HubSpot's video player component.
4
4
 
@@ -1 +1 @@
1
- {"version":3,"file":"HSPlayerIcons.d.ts","sourceRoot":"","sources":["../../src/components/HSPlayerIcons.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,+CASvB,CAAC;AAEF,eAAO,MAAM,aAAa,+CAazB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAU1B,CAAC;AAEF,eAAO,MAAM,aAAa,+CASzB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAS1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAS5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAQ5B,CAAC;AAEF,eAAO,MAAM,OAAO,+CASnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,+CAmB/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,+CAU9B,CAAC;AAEF,eAAO,MAAM,SAAS,+CAarB,CAAC"}
1
+ {"version":3,"file":"HSPlayerIcons.d.ts","sourceRoot":"","sources":["../../src/components/HSPlayerIcons.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,+CASvB,CAAC;AAEF,eAAO,MAAM,aAAa,+CAazB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAa1B,CAAC;AAEF,eAAO,MAAM,aAAa,+CAYzB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAW1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAY5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAY5B,CAAC;AAEF,eAAO,MAAM,OAAO,+CASnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,+CAa/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,+CAc9B,CAAC;AAEF,eAAO,MAAM,SAAS,+CAarB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { Translations } from '../utils/i18n';
3
- export declare const TranslationsContext: import("react").Context<{
3
+ export declare const TranslationsContext: import('react').Context<{
4
4
  translations: Translations;
5
5
  language: string;
6
6
  }>;
@@ -10,7 +10,7 @@ type VideoFetchProviderProps = PropsWithChildren<{
10
10
  videoFetchError?: FetchError;
11
11
  hubspotVideoParams: HubSpotVideoParams;
12
12
  }>;
13
- export declare const VideoFetchContext: import("react").Context<{
13
+ export declare const VideoFetchContext: import('react').Context<{
14
14
  video?: VideoCrmObject;
15
15
  videoFetchError?: FetchError;
16
16
  hubspotVideoParams?: HubSpotVideoParams;
@@ -1,11 +1,10 @@
1
- import '../styles/mux-player.css';
2
1
  import { HSPlayerThemes } from './HSThemeTemplate';
3
2
  type VideoPlayerProps = {
4
3
  portalId: number;
5
4
  playButtonColor?: {
6
5
  color: string;
7
6
  };
8
- theme: keyof typeof HSPlayerThemes;
7
+ theme?: keyof typeof HSPlayerThemes;
9
8
  overlay?: React.ReactNode;
10
9
  };
11
10
  export declare const VideoPlayer: ({ portalId, playButtonColor, theme, overlay, }: VideoPlayerProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../src/components/VideoPlayer.tsx"],"names":[],"mappings":"AAMA,OAAO,0BAA0B,CAAC;AAIlC,OAAO,EAAE,cAAc,EAAkB,MAAM,mBAAmB,CAAC;AAGnE,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,WAAW,mDAKrB,gBAAgB,mDAsFlB,CAAC"}
1
+ {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../src/components/VideoPlayer.tsx"],"names":[],"mappings":"AAMA,OAAO,0BAA0B,CAAC;AAKlC,OAAO,EAAE,cAAc,EAAkB,MAAM,mBAAmB,CAAC;AAGnE,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqBF,eAAO,MAAM,WAAW,mDAKrB,gBAAgB,mDAuFlB,CAAC"}
@@ -1,4 +1,4 @@
1
- import MuxVideoElement from '@mux/mux-video';
1
+ import { default as MuxVideoElement } from '@mux/mux-video';
2
2
  import { PropsWithChildren } from 'react';
3
3
  import { VideoCrmObject } from '../types';
4
4
  export type PlayerState = {