@vouchfor/embeds 0.0.0-experiment.4e05d59 → 0.0.0-experiment.5d16720

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ import type { Embed } from '..';
2
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ type EmbedHost = ReactiveControllerHost & Embed;
4
+ declare class EventForwardController implements ReactiveController {
5
+ host: EmbedHost;
6
+ private _events;
7
+ private _cleanup;
8
+ private _forwardElementRef;
9
+ constructor(host: EmbedHost, events: string[]);
10
+ register(): import("lit-html/directive.js").DirectiveResult<typeof import("lit-html/directives/ref.js").RefDirective>;
11
+ hostConnected(): void;
12
+ hostDisconnected(): void;
13
+ }
14
+ export { EventForwardController };
@@ -0,0 +1,20 @@
1
+ import type { Embed } from '..';
2
+ import type { TemplateInstance } from '@vouchfor/canvas-video';
3
+ import type { ReactiveControllerHost } from 'lit';
4
+ type EmbedHost = ReactiveControllerHost & Embed;
5
+ declare class FetcherController {
6
+ host: EmbedHost;
7
+ private _fetching;
8
+ private _vouch;
9
+ private _template;
10
+ set fetching(value: boolean);
11
+ get fetching(): boolean;
12
+ set vouch(value: import("@vouchfor/media-player/dist/src/components/MediaPlayer/types").Vouch | null | undefined);
13
+ get vouch(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/types").Vouch | null | undefined;
14
+ set template(value: TemplateInstance | null);
15
+ get template(): TemplateInstance | null;
16
+ private getVouch;
17
+ private getTemplate;
18
+ constructor(host: EmbedHost);
19
+ }
20
+ export { FetcherController };
@@ -0,0 +1,28 @@
1
+ import type { Embed } from '..';
2
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
3
+ type EmbedHost = ReactiveControllerHost & Embed;
4
+ declare class TrackingController implements ReactiveController {
5
+ host: EmbedHost;
6
+ private _tabId;
7
+ private _clientId;
8
+ private _visitorId;
9
+ private _hasPlayed;
10
+ private _hasLoaded;
11
+ private _answersViewed;
12
+ private _streamedTime;
13
+ private _streamedPrevTimestamp;
14
+ constructor(host: EmbedHost);
15
+ private _findVouchId;
16
+ private _createVisitor;
17
+ private _getUids;
18
+ private _getReportingMetadata;
19
+ private _sendTrackingEvent;
20
+ private _handleVouchLoaded;
21
+ private _handlePlay;
22
+ private _handleVideoPlay;
23
+ private _handleVideoTimeUpdate;
24
+ private _handleVideoPause;
25
+ hostConnected(): void;
26
+ hostDisconnected(): void;
27
+ }
28
+ export { TrackingController };