@vouchfor/embeds 0.0.0-experiment.d5f2af2 → 0.0.0-experiment.d6b65ca

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.
@@ -1,9 +1,10 @@
1
- import { LitElement, PropertyValueMap } from 'lit';
2
- import { TemplateInstance } from '@vouchfor/canvas-video';
3
- import { MediaPlayer, MediaPlayerProps } from '@vouchfor/media-player';
4
- import { Vouch } from '@vouchfor/video-utils';
5
- import { Environment } from '../../utils/env';
6
-
1
+ import { LitElement } from 'lit';
2
+ import type { TemplateInstance } from '@vouchfor/canvas-video';
3
+ import type { MediaPlayer, MediaPlayerProps } from '@vouchfor/media-player';
4
+ import type { Vouch } from '@vouchfor/video-utils';
5
+ import type { PropertyValueMap } from 'lit';
6
+ import type { Environment } from '../../utils/env';
7
+ import '@vouchfor/media-player';
7
8
  type PlayerEmbedProps = Pick<MediaPlayerProps, 'aspectRatio' | 'language' | 'preload' | 'autoplay' | 'controls'> & {
8
9
  data?: Vouch;
9
10
  env: Environment;
@@ -13,10 +14,9 @@ type PlayerEmbedProps = Pick<MediaPlayerProps, 'aspectRatio' | 'language' | 'pre
13
14
  vouchId?: string;
14
15
  templateId?: string;
15
16
  questions?: number[];
16
- senderId?: string;
17
17
  };
18
18
  declare class PlayerEmbed extends LitElement {
19
- static styles: import('lit').CSSResult[];
19
+ static styles: import("lit").CSSResult[];
20
20
  data: PlayerEmbedProps['data'];
21
21
  vouchId: PlayerEmbedProps['vouchId'];
22
22
  templateId: PlayerEmbedProps['templateId'];
@@ -30,7 +30,6 @@ declare class PlayerEmbed extends LitElement {
30
30
  autoplay: PlayerEmbedProps['autoplay'];
31
31
  aspectRatio: PlayerEmbedProps['aspectRatio'];
32
32
  language?: MediaPlayerProps['language'];
33
- senderId?: PlayerEmbedProps['senderId'];
34
33
  private eventController;
35
34
  private _fetcherController;
36
35
  private _trackingController;
@@ -53,14 +52,14 @@ declare class PlayerEmbed extends LitElement {
53
52
  get volume(): number;
54
53
  set muted(value: boolean);
55
54
  get muted(): boolean;
56
- get mediaState(): import('@vouchfor/media-player').MediaStateMap | undefined;
55
+ get mediaState(): import("@vouchfor/media-player").MediaStateMap | undefined;
57
56
  get mediaPlayer(): MediaPlayer | undefined;
58
57
  play(): void;
59
58
  pause(): void;
60
59
  reset(time?: number, play?: boolean): void;
61
60
  private _renderStyles;
62
61
  protected willUpdate(changedProperties: PropertyValueMap<PlayerEmbedProps>): void;
63
- render(): import('lit').TemplateResult<1>;
62
+ render(): import("lit-html").TemplateResult<1>;
64
63
  }
65
64
  declare global {
66
65
  interface HTMLElementTagNameMap {
@@ -1,5 +1,4 @@
1
- import { Vouch } from '@vouchfor/video-utils';
2
-
1
+ import type { Vouch } from '@vouchfor/video-utils';
3
2
  declare const data: Vouch;
4
3
  declare const withNullAnswer: Vouch;
5
4
  export { data, withNullAnswer };