@vouchfor/embeds 0.0.0-experiment.bdda3d0 → 0.0.0-experiment.c349451
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/components/Embed/controllers/fetcher.d.ts +0 -7
- package/dist/es/components/Embed/index.d.ts +5 -3
- package/dist/es/embeds.js +925 -655
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/utils/env.d.ts +5 -11
- package/dist/iife/embeds.iife.js +206 -294
- package/dist/iife/embeds.iife.js.map +1 -1
- package/package.json +6 -6
- package/src/components/Embed/Embed.stories.ts +3 -3
- package/src/components/Embed/controllers/fetcher.ts +49 -51
- package/src/components/Embed/controllers/tracking.ts +1 -1
- package/src/components/Embed/index.ts +5 -8
- package/src/utils/env.ts +18 -32
- package/dist/es/components/Embed/controllers/event-forwarder.d.ts +0 -14
@@ -1,18 +1,11 @@
|
|
1
1
|
import type { Embed } from '..';
|
2
|
-
import type { TemplateInstance } from '@vouchfor/canvas-video';
|
3
2
|
import type { ReactiveControllerHost } from 'lit';
|
4
3
|
type EmbedHost = ReactiveControllerHost & Embed;
|
5
4
|
declare class FetcherController {
|
6
5
|
host: EmbedHost;
|
7
6
|
private _fetching;
|
8
|
-
private _vouch?;
|
9
|
-
private _template?;
|
10
7
|
set fetching(value: boolean);
|
11
8
|
get fetching(): boolean;
|
12
|
-
set vouch(value: import("@vouchfor/media-player/dist/src/components/MediaPlayer/types").Vouch | undefined);
|
13
|
-
get vouch(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/types").Vouch | undefined;
|
14
|
-
set template(value: TemplateInstance | undefined);
|
15
|
-
get template(): TemplateInstance | undefined;
|
16
9
|
private getVouch;
|
17
10
|
private getTemplate;
|
18
11
|
constructor(host: EmbedHost);
|
@@ -5,6 +5,7 @@ import type { Environment } from '../../utils/env';
|
|
5
5
|
type EmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
|
6
6
|
env: Environment;
|
7
7
|
apiKey: string;
|
8
|
+
trackingSource?: string;
|
8
9
|
vouchId?: string;
|
9
10
|
templateId?: string;
|
10
11
|
};
|
@@ -15,6 +16,7 @@ declare class Embed extends LitElement {
|
|
15
16
|
templateId: EmbedProps['templateId'];
|
16
17
|
env: EmbedProps['env'];
|
17
18
|
apiKey: EmbedProps['apiKey'];
|
19
|
+
trackingSource: EmbedProps['trackingSource'];
|
18
20
|
controls: EmbedProps['controls'];
|
19
21
|
preload: EmbedProps['preload'];
|
20
22
|
autoplay: EmbedProps['autoplay'];
|
@@ -22,8 +24,8 @@ declare class Embed extends LitElement {
|
|
22
24
|
private eventController;
|
23
25
|
private _fetcherController;
|
24
26
|
private _trackingController;
|
25
|
-
|
26
|
-
|
27
|
+
vouch: EmbedProps['data'];
|
28
|
+
template: TemplateInstance | undefined;
|
27
29
|
get fetching(): boolean;
|
28
30
|
get waiting(): boolean | undefined;
|
29
31
|
get seeking(): boolean | undefined;
|
@@ -46,7 +48,7 @@ declare class Embed extends LitElement {
|
|
46
48
|
play(): void;
|
47
49
|
pause(): void;
|
48
50
|
setScene(index: number): void;
|
49
|
-
render(): import("lit
|
51
|
+
render(): import("lit").TemplateResult<1>;
|
50
52
|
}
|
51
53
|
declare global {
|
52
54
|
interface HTMLElementTagNameMap {
|