@vouchfor/embeds 0.0.0-experiment.df12bef → 0.0.0-experiment.e075b1c
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/embeds.js +981 -1426
- 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 +5 -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 +77 -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 +1759 -0
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -0
- package/dist/iife/embeds.iife.js +671 -457
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.iife.js +1621 -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} +41 -15
- package/src/components/{Embed → PlayerEmbed}/controllers/event-forwarder.ts +6 -5
- package/src/components/{Embed → PlayerEmbed}/controllers/fetcher.ts +33 -14
- package/src/components/{Embed/controllers/tracking.ts → PlayerEmbed/controllers/tracking/index.ts} +47 -115
- package/src/components/PlayerEmbed/controllers/tracking/utils.ts +95 -0
- package/src/components/{Embed → PlayerEmbed}/index.ts +86 -27
- package/src/components/PlayerEmbed/tests/PlayerEmbed.spec.ts +87 -0
- package/src/components/PlayerEmbed/tests/data.ts +224 -0
- package/src/components/PlayerEmbed/tests/media-data.ts +22 -0
- package/src/index.ts +2 -1
- package/dist/es/src/components/Embed/index.d.ts +0 -67
@@ -1,67 +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
|
-
};
|
13
|
-
declare class Embed extends LitElement {
|
14
|
-
private _mediaPlayerRef;
|
15
|
-
data: EmbedProps['data'];
|
16
|
-
vouchId: EmbedProps['vouchId'];
|
17
|
-
templateId: EmbedProps['templateId'];
|
18
|
-
env: EmbedProps['env'];
|
19
|
-
apiKey: EmbedProps['apiKey'];
|
20
|
-
disableTracking: EmbedProps['disableTracking'];
|
21
|
-
trackingSource: EmbedProps['trackingSource'];
|
22
|
-
controls: EmbedProps['controls'];
|
23
|
-
preload: EmbedProps['preload'];
|
24
|
-
autoplay: EmbedProps['autoplay'];
|
25
|
-
aspectRatio: EmbedProps['aspectRatio'];
|
26
|
-
private eventController;
|
27
|
-
private _fetcherController;
|
28
|
-
private _trackingController;
|
29
|
-
vouch: EmbedProps['data'];
|
30
|
-
template: TemplateInstance | undefined;
|
31
|
-
get fetching(): boolean;
|
32
|
-
get waiting(): boolean | undefined;
|
33
|
-
get seeking(): boolean | undefined;
|
34
|
-
get paused(): boolean | undefined;
|
35
|
-
get captions(): boolean | undefined;
|
36
|
-
get fullscreen(): boolean | undefined;
|
37
|
-
get duration(): number | undefined;
|
38
|
-
set currentTime(value: number);
|
39
|
-
get currentTime(): number;
|
40
|
-
set playbackRate(value: number);
|
41
|
-
get playbackRate(): number;
|
42
|
-
set volume(value: number);
|
43
|
-
get volume(): number;
|
44
|
-
set muted(value: boolean);
|
45
|
-
get muted(): boolean;
|
46
|
-
get scene(): Scene | null;
|
47
|
-
get scenes(): Scene[];
|
48
|
-
get sceneConfig(): Scenes | null;
|
49
|
-
get videoState(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/controllers/scenes").VideoStateMap | undefined;
|
50
|
-
get mediaPlayer(): MediaPlayer | undefined;
|
51
|
-
play(): void;
|
52
|
-
pause(): void;
|
53
|
-
setScene(index: number): void;
|
54
|
-
render(): import("lit").TemplateResult<1>;
|
55
|
-
}
|
56
|
-
declare global {
|
57
|
-
interface HTMLElementTagNameMap {
|
58
|
-
'vouch-embed': Embed;
|
59
|
-
}
|
60
|
-
namespace JSX {
|
61
|
-
interface IntrinsicElements {
|
62
|
-
'vouch-embed': Embed;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
export { Embed };
|
67
|
-
export type { EmbedProps };
|