@vouchfor/embeds 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/{browser-47f3e1d6.js → browser-97265c29.js} +2 -2
- package/dist/es/{browser-47f3e1d6.js.map → browser-97265c29.js.map} +1 -1
- package/dist/es/embeds.js +1 -1
- package/dist/es/{index-d6ce78b6.js → index-d15aeb56.js} +704 -710
- package/dist/es/index-d15aeb56.js.map +1 -0
- package/dist/es/src/components/DialogEmbed/index.d.ts +1 -0
- package/dist/es/src/components/PlayerEmbed/index.d.ts +73 -0
- package/dist/iife/dialog-embed/{browser-7ead22f3.js → browser-c8adca59.js} +2 -2
- package/dist/iife/dialog-embed/{browser-7ead22f3.js.map → browser-c8adca59.js.map} +1 -1
- package/dist/iife/dialog-embed/embed.iife.js +71 -70
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
- package/dist/iife/dialog-embed/embed.js +1 -1
- package/dist/iife/dialog-embed/{index-0f8b2027.js → index-eb3ec3b3.js} +904 -911
- package/dist/iife/dialog-embed/index-eb3ec3b3.js.map +1 -0
- package/dist/iife/dialog-embed/src/components/DialogEmbed/index.d.ts +1 -0
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/index.d.ts +73 -0
- package/dist/iife/embeds.iife.js +53 -52
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/{browser-e97870ba.js → browser-7e2003a9.js} +2 -2
- package/dist/iife/player-embed/{browser-e97870ba.js.map → browser-7e2003a9.js.map} +1 -1
- package/dist/iife/player-embed/embed.iife.js +34 -34
- package/dist/iife/player-embed/embed.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.js +1 -1
- package/dist/iife/player-embed/{index-5907ffee.js → index-4541048e.js} +3343 -3351
- package/dist/iife/player-embed/index-4541048e.js.map +1 -0
- package/dist/iife/player-embed/src/components/DialogEmbed/index.d.ts +1 -0
- package/dist/iife/player-embed/src/components/PlayerEmbed/index.d.ts +73 -0
- package/package.json +2 -2
- package/src/components/DialogEmbed/Dialog.stories.ts +12 -0
- package/src/components/DialogEmbed/DialogPortal.ts +22 -10
- package/src/components/DialogEmbed/index.ts +5 -1
- package/src/components/PlayerEmbed/index.ts +106 -5
- package/dist/es/index-d6ce78b6.js.map +0 -1
- package/dist/iife/dialog-embed/index-0f8b2027.js.map +0 -1
- package/dist/iife/player-embed/index-5907ffee.js.map +0 -1
- package/src/mixins/media-player-proxy.ts +0 -116
@@ -16,6 +16,7 @@ declare class DialogEmbed extends LitElement {
|
|
16
16
|
preload: DialogEmbedProps['preload'];
|
17
17
|
disableAutoplay: DialogEmbedProps['disableAutoplay'];
|
18
18
|
aspectRatio: DialogEmbedProps['aspectRatio'];
|
19
|
+
private _id;
|
19
20
|
private _handleRootClick;
|
20
21
|
connectedCallback(): void;
|
21
22
|
disconnectedCallback(): void;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import type { Scene, Scenes, TemplateInstance } from '@vouchfor/canvas-video';
|
3
|
+
import type { MediaPlayer, MediaPlayerProps } from '@vouchfor/media-player';
|
4
|
+
import type { Environment } from '../../utils/env';
|
5
|
+
type PlayerEmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
|
6
|
+
env: Environment;
|
7
|
+
apiKey: string;
|
8
|
+
disableTracking?: boolean;
|
9
|
+
trackingSource?: string;
|
10
|
+
vouchId?: string;
|
11
|
+
templateId?: string;
|
12
|
+
questions?: number[];
|
13
|
+
};
|
14
|
+
declare class PlayerEmbed extends LitElement {
|
15
|
+
static styles: import("lit").CSSResult[];
|
16
|
+
data: PlayerEmbedProps['data'];
|
17
|
+
vouchId: PlayerEmbedProps['vouchId'];
|
18
|
+
templateId: PlayerEmbedProps['templateId'];
|
19
|
+
questions: PlayerEmbedProps['questions'];
|
20
|
+
env: PlayerEmbedProps['env'];
|
21
|
+
apiKey: PlayerEmbedProps['apiKey'];
|
22
|
+
disableTracking: PlayerEmbedProps['disableTracking'];
|
23
|
+
trackingSource: PlayerEmbedProps['trackingSource'];
|
24
|
+
controls: PlayerEmbedProps['controls'];
|
25
|
+
preload: PlayerEmbedProps['preload'];
|
26
|
+
autoplay: PlayerEmbedProps['autoplay'];
|
27
|
+
aspectRatio: PlayerEmbedProps['aspectRatio'];
|
28
|
+
private eventController;
|
29
|
+
private _fetcherController;
|
30
|
+
private _trackingController;
|
31
|
+
vouch: PlayerEmbedProps['data'];
|
32
|
+
template: TemplateInstance | undefined;
|
33
|
+
get fetching(): boolean;
|
34
|
+
private _mediaPlayerRef;
|
35
|
+
get waiting(): boolean | undefined;
|
36
|
+
get initialised(): Promise<boolean> | undefined;
|
37
|
+
get seeking(): boolean | undefined;
|
38
|
+
get paused(): boolean | undefined;
|
39
|
+
get captions(): boolean | undefined;
|
40
|
+
get fullscreen(): boolean | undefined;
|
41
|
+
get duration(): number | undefined;
|
42
|
+
set currentTime(value: number);
|
43
|
+
get currentTime(): number;
|
44
|
+
set playbackRate(value: number);
|
45
|
+
get playbackRate(): number;
|
46
|
+
set volume(value: number);
|
47
|
+
get volume(): number;
|
48
|
+
set muted(value: boolean);
|
49
|
+
get muted(): boolean;
|
50
|
+
get scene(): Scene | null;
|
51
|
+
get scenes(): Scene[];
|
52
|
+
get sceneConfig(): Scenes | null;
|
53
|
+
get videoState(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/controllers/scenes").VideoStateMap | undefined;
|
54
|
+
get mediaPlayer(): MediaPlayer | undefined;
|
55
|
+
play(): void;
|
56
|
+
pause(): void;
|
57
|
+
reset(time?: number, play?: boolean): void;
|
58
|
+
setScene(index: number): void;
|
59
|
+
private _renderStyles;
|
60
|
+
render(): import("lit").TemplateResult<1>;
|
61
|
+
}
|
62
|
+
declare global {
|
63
|
+
interface HTMLElementTagNameMap {
|
64
|
+
'vouch-embed-player': PlayerEmbed;
|
65
|
+
}
|
66
|
+
namespace JSX {
|
67
|
+
interface IntrinsicElements {
|
68
|
+
'vouch-embed-player': PlayerEmbed;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
export { PlayerEmbed };
|
73
|
+
export type { PlayerEmbedProps };
|