@vouchfor/embeds 0.0.0-experiment.1795b49 → 0.0.0-experiment.1884ce4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/embeds.js +1143 -7
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +20 -0
- package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +36 -0
- package/dist/es/src/components/DialogEmbed/index.d.ts +38 -0
- package/dist/es/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
- package/dist/es/src/components/{Embed → PlayerEmbed}/controllers/fetcher.d.ts +4 -4
- package/dist/es/src/components/{Embed/controllers/tracking.d.ts → PlayerEmbed/controllers/tracking/index.d.ts} +14 -11
- package/dist/es/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
- package/dist/es/src/components/PlayerEmbed/index.d.ts +75 -0
- package/dist/es/src/components/PlayerEmbed/tests/data.d.ts +4 -0
- package/dist/es/src/components/PlayerEmbed/tests/media-data.d.ts +19 -0
- package/dist/es/src/index.d.ts +2 -1
- package/dist/iife/dialog-embed/embed.iife.js +4042 -0
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -0
- package/dist/iife/embeds.iife.js +2877 -393
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.iife.js +3904 -0
- package/dist/iife/player-embed/embed.iife.js.map +1 -0
- package/package.json +44 -31
- package/src/components/DialogEmbed/Dialog.stories.ts +91 -0
- package/src/components/DialogEmbed/DialogOverlay.ts +131 -0
- package/src/components/DialogEmbed/DialogPortal.ts +126 -0
- package/src/components/DialogEmbed/index.ts +97 -0
- package/src/components/PlayerEmbed/MultiEmbed.stories.ts +135 -0
- package/src/components/{Embed/Embed.stories.ts → PlayerEmbed/PlayerEmbed.stories.ts} +30 -16
- package/src/components/{Embed → PlayerEmbed}/controllers/event-forwarder.ts +6 -5
- package/src/components/{Embed → PlayerEmbed}/controllers/fetcher.ts +11 -11
- package/src/components/{Embed/controllers/tracking.ts → PlayerEmbed/controllers/tracking/index.ts} +49 -119
- package/src/components/PlayerEmbed/controllers/tracking/utils.ts +95 -0
- package/src/components/{Embed → PlayerEmbed}/index.ts +82 -37
- package/src/components/PlayerEmbed/tests/PlayerEmbed.spec.ts +87 -0
- package/src/components/PlayerEmbed/tests/data.ts +227 -0
- package/src/components/PlayerEmbed/tests/media-data.ts +22 -0
- package/src/index.ts +2 -1
- package/dist/es/browser-1dddccce.js +0 -433
- package/dist/es/browser-1dddccce.js.map +0 -1
- package/dist/es/index-6e2fc940.js +0 -9947
- package/dist/es/index-6e2fc940.js.map +0 -1
- package/dist/es/src/components/Embed/index.d.ts +0 -70
@@ -1,70 +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 EmbedProps = 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 Embed extends LitElement {
|
15
|
-
static styles: import("lit").CSSResult[];
|
16
|
-
private _mediaPlayerRef;
|
17
|
-
data: EmbedProps['data'];
|
18
|
-
vouchId: EmbedProps['vouchId'];
|
19
|
-
templateId: EmbedProps['templateId'];
|
20
|
-
questions: EmbedProps['questions'];
|
21
|
-
env: EmbedProps['env'];
|
22
|
-
apiKey: EmbedProps['apiKey'];
|
23
|
-
disableTracking: EmbedProps['disableTracking'];
|
24
|
-
trackingSource: EmbedProps['trackingSource'];
|
25
|
-
controls: EmbedProps['controls'];
|
26
|
-
preload: EmbedProps['preload'];
|
27
|
-
autoplay: EmbedProps['autoplay'];
|
28
|
-
aspectRatio: EmbedProps['aspectRatio'];
|
29
|
-
private eventController;
|
30
|
-
private _fetcherController;
|
31
|
-
private _trackingController;
|
32
|
-
vouch: EmbedProps['data'];
|
33
|
-
template: TemplateInstance | undefined;
|
34
|
-
get fetching(): boolean;
|
35
|
-
get waiting(): boolean | undefined;
|
36
|
-
get seeking(): boolean | undefined;
|
37
|
-
get paused(): boolean | undefined;
|
38
|
-
get captions(): boolean | undefined;
|
39
|
-
get fullscreen(): boolean | undefined;
|
40
|
-
get duration(): number | undefined;
|
41
|
-
set currentTime(value: number);
|
42
|
-
get currentTime(): number;
|
43
|
-
set playbackRate(value: number);
|
44
|
-
get playbackRate(): number;
|
45
|
-
set volume(value: number);
|
46
|
-
get volume(): number;
|
47
|
-
set muted(value: boolean);
|
48
|
-
get muted(): boolean;
|
49
|
-
get scene(): Scene | null;
|
50
|
-
get scenes(): Scene[];
|
51
|
-
get sceneConfig(): Scenes | null;
|
52
|
-
get videoState(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/controllers/scenes").VideoStateMap | undefined;
|
53
|
-
get mediaPlayer(): MediaPlayer | undefined;
|
54
|
-
play(): void;
|
55
|
-
pause(): void;
|
56
|
-
setScene(index: number): void;
|
57
|
-
render(): import("lit").TemplateResult<1>;
|
58
|
-
}
|
59
|
-
declare global {
|
60
|
-
interface HTMLElementTagNameMap {
|
61
|
-
'vouch-embed': Embed;
|
62
|
-
}
|
63
|
-
namespace JSX {
|
64
|
-
interface IntrinsicElements {
|
65
|
-
'vouch-embed': Embed;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
export { Embed };
|
70
|
-
export type { EmbedProps };
|