@vouchfor/embeds 1.0.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/{browser-2070b7b8.js → browser-25a8d581.js} +2 -2
- package/dist/es/{browser-2070b7b8.js.map → browser-25a8d581.js.map} +1 -1
- package/dist/es/embeds.js +5 -2
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/{index-6d91e49b.js → index-45b0c060.js} +4010 -3643
- package/dist/es/index-45b0c060.js.map +1 -0
- package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +19 -0
- package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +35 -0
- package/dist/es/src/components/DialogEmbed/index.d.ts +35 -0
- package/dist/es/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
- package/dist/es/src/index.d.ts +1 -0
- package/dist/iife/dialog-embed/browser-e1c0fc69.js +433 -0
- package/dist/iife/dialog-embed/browser-e1c0fc69.js.map +1 -0
- package/dist/iife/dialog-embed/embed.iife.js +1721 -0
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -0
- package/dist/iife/dialog-embed/embed.js +5 -0
- package/dist/iife/dialog-embed/embed.js.map +1 -0
- package/dist/iife/dialog-embed/index-aa6cdaeb.js +32924 -0
- package/dist/iife/dialog-embed/index-aa6cdaeb.js.map +1 -0
- package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogOverlay.d.ts +19 -0
- package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogPortal.d.ts +35 -0
- package/dist/iife/dialog-embed/src/components/DialogEmbed/index.d.ts +35 -0
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +14 -0
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +36 -0
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/tests/data.d.ts +3 -0
- package/dist/iife/dialog-embed/src/index.d.ts +2 -0
- package/dist/iife/dialog-embed/src/utils/env.d.ts +12 -0
- package/dist/iife/dialog-embed/src/utils/events.d.ts +2 -0
- package/dist/iife/embeds.iife.js +326 -177
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/browser-eb42680e.js +433 -0
- package/dist/iife/player-embed/browser-eb42680e.js.map +1 -0
- package/dist/iife/player-embed/embed.iife.js +1585 -0
- package/dist/iife/player-embed/embed.iife.js.map +1 -0
- package/dist/iife/player-embed/embed.js +5 -0
- package/dist/iife/player-embed/embed.js.map +1 -0
- package/dist/iife/player-embed/index-52048e3b.js +32481 -0
- package/dist/iife/player-embed/index-52048e3b.js.map +1 -0
- package/dist/iife/player-embed/src/components/DialogEmbed/DialogOverlay.d.ts +19 -0
- package/dist/iife/player-embed/src/components/DialogEmbed/DialogPortal.d.ts +35 -0
- package/dist/iife/player-embed/src/components/DialogEmbed/index.d.ts +35 -0
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +14 -0
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +36 -0
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
- package/dist/iife/player-embed/src/components/PlayerEmbed/tests/data.d.ts +3 -0
- package/dist/iife/player-embed/src/index.d.ts +2 -0
- package/dist/iife/player-embed/src/utils/env.d.ts +12 -0
- package/dist/iife/player-embed/src/utils/events.d.ts +2 -0
- package/package.json +8 -3
- package/src/components/DialogEmbed/Dialog.stories.ts +79 -0
- package/src/components/DialogEmbed/DialogOverlay.ts +130 -0
- package/src/components/DialogEmbed/DialogPortal.ts +114 -0
- package/src/components/DialogEmbed/index.ts +93 -0
- package/src/components/PlayerEmbed/controllers/event-forwarder.ts +2 -1
- package/src/components/PlayerEmbed/index.ts +5 -103
- package/src/index.ts +1 -0
- package/src/mixins/media-player-proxy.ts +116 -0
- package/dist/es/index-6d91e49b.js.map +0 -1
- package/dist/es/src/components/PlayerEmbed/index.d.ts +0 -72
@@ -1,72 +0,0 @@
|
|
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
|
-
private _mediaPlayerRef;
|
17
|
-
data: PlayerEmbedProps['data'];
|
18
|
-
vouchId: PlayerEmbedProps['vouchId'];
|
19
|
-
templateId: PlayerEmbedProps['templateId'];
|
20
|
-
questions: PlayerEmbedProps['questions'];
|
21
|
-
env: PlayerEmbedProps['env'];
|
22
|
-
apiKey: PlayerEmbedProps['apiKey'];
|
23
|
-
disableTracking: PlayerEmbedProps['disableTracking'];
|
24
|
-
trackingSource: PlayerEmbedProps['trackingSource'];
|
25
|
-
controls: PlayerEmbedProps['controls'];
|
26
|
-
preload: PlayerEmbedProps['preload'];
|
27
|
-
autoplay: PlayerEmbedProps['autoplay'];
|
28
|
-
aspectRatio: PlayerEmbedProps['aspectRatio'];
|
29
|
-
private eventController;
|
30
|
-
private _fetcherController;
|
31
|
-
private _trackingController;
|
32
|
-
vouch: PlayerEmbedProps['data'];
|
33
|
-
template: TemplateInstance | undefined;
|
34
|
-
get fetching(): boolean;
|
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
|
-
setScene(index: number): void;
|
58
|
-
private _renderStyles;
|
59
|
-
render(): import("lit").TemplateResult<1>;
|
60
|
-
}
|
61
|
-
declare global {
|
62
|
-
interface HTMLElementTagNameMap {
|
63
|
-
'vouch-embed-player': PlayerEmbed;
|
64
|
-
}
|
65
|
-
namespace JSX {
|
66
|
-
interface IntrinsicElements {
|
67
|
-
'vouch-embed-player': PlayerEmbed;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
export { PlayerEmbed };
|
72
|
-
export type { PlayerEmbedProps };
|