@vouchfor/embeds 0.0.0-experiment.dcc3e68 → 0.0.0-experiment.dce2e9b

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,11 @@
1
1
  import type { Embed } from '..';
2
- import type { TemplateInstance } from '@vouchfor/canvas-video';
3
2
  import type { ReactiveControllerHost } from 'lit';
4
3
  type EmbedHost = ReactiveControllerHost & Embed;
5
4
  declare class FetcherController {
6
5
  host: EmbedHost;
7
6
  private _fetching;
8
- private _vouch;
9
- private _template;
10
7
  set fetching(value: boolean);
11
8
  get fetching(): boolean;
12
- set vouch(value: import("@vouchfor/media-player/dist/src/components/MediaPlayer/types").Vouch | null | undefined);
13
- get vouch(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/types").Vouch | null | undefined;
14
- set template(value: TemplateInstance | null);
15
- get template(): TemplateInstance | null;
16
9
  private getVouch;
17
10
  private getTemplate;
18
11
  constructor(host: EmbedHost);
@@ -2,9 +2,10 @@ import { LitElement } from 'lit';
2
2
  import type { Scene, TemplateInstance } from '@vouchfor/canvas-video';
3
3
  import type { MediaPlayer, MediaPlayerProps } from '@vouchfor/media-player';
4
4
  import type { Environment } from '../../utils/env';
5
- type EmbedProps = Pick<MediaPlayerProps, 'data' | 'resolution' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
5
+ type EmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
6
6
  env: Environment;
7
7
  apiKey: string;
8
+ trackingSource?: string;
8
9
  vouchId?: string;
9
10
  templateId?: string;
10
11
  };
@@ -15,16 +16,16 @@ declare class Embed extends LitElement {
15
16
  templateId: EmbedProps['templateId'];
16
17
  env: EmbedProps['env'];
17
18
  apiKey: EmbedProps['apiKey'];
19
+ trackingSource: EmbedProps['trackingSource'];
20
+ controls: EmbedProps['controls'];
18
21
  preload: EmbedProps['preload'];
19
22
  autoplay: EmbedProps['autoplay'];
20
- resolution: EmbedProps['resolution'];
21
23
  aspectRatio: EmbedProps['aspectRatio'];
22
- controls: EmbedProps['controls'];
23
24
  private eventController;
24
25
  private _fetcherController;
25
26
  private _trackingController;
26
- get vouch(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/types").Vouch | null | undefined;
27
- get template(): TemplateInstance | null;
27
+ vouch: EmbedProps['data'];
28
+ template: TemplateInstance | undefined;
28
29
  get fetching(): boolean;
29
30
  get waiting(): boolean | undefined;
30
31
  get seeking(): boolean | undefined;
@@ -47,7 +48,7 @@ declare class Embed extends LitElement {
47
48
  play(): void;
48
49
  pause(): void;
49
50
  setScene(index: number): void;
50
- render(): import("lit-html").TemplateResult<1>;
51
+ render(): import("lit").TemplateResult<1>;
51
52
  }
52
53
  declare global {
53
54
  interface HTMLElementTagNameMap {