@vouchfor/embeds 0.0.0-experiment.9eba968 → 0.0.0-experiment.ab40ec5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/components/Embed/controllers/tracking.d.ts +2 -0
- package/dist/es/components/Embed/index.d.ts +2 -0
- package/dist/es/embeds.js +457 -435
- package/dist/es/embeds.js.map +1 -1
- package/dist/iife/embeds.iife.js +178 -150
- package/dist/iife/embeds.iife.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Embed/controllers/fetcher.ts +39 -19
- package/src/components/Embed/controllers/tracking.ts +73 -28
- package/src/components/Embed/index.ts +3 -0
@@ -10,6 +10,7 @@ declare class TrackingController implements ReactiveController {
|
|
10
10
|
private _hasLoaded;
|
11
11
|
private _answersViewed;
|
12
12
|
private _streamedTime;
|
13
|
+
private _streamLatestTime;
|
13
14
|
private _streamedPrevTimestamp;
|
14
15
|
constructor(host: EmbedHost);
|
15
16
|
private _findVouchId;
|
@@ -20,6 +21,7 @@ declare class TrackingController implements ReactiveController {
|
|
20
21
|
private _handleVouchLoaded;
|
21
22
|
private _handlePlay;
|
22
23
|
private _handleVideoPlay;
|
24
|
+
private _handleVideoSeeking;
|
23
25
|
private _handleVideoTimeUpdate;
|
24
26
|
private _handleVideoPause;
|
25
27
|
hostConnected(): void;
|
@@ -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
|
+
disableTracking?: boolean;
|
8
9
|
trackingSource?: string;
|
9
10
|
vouchId?: string;
|
10
11
|
templateId?: string;
|
@@ -16,6 +17,7 @@ declare class Embed extends LitElement {
|
|
16
17
|
templateId: EmbedProps['templateId'];
|
17
18
|
env: EmbedProps['env'];
|
18
19
|
apiKey: EmbedProps['apiKey'];
|
20
|
+
disableTracking: EmbedProps['disableTracking'];
|
19
21
|
trackingSource: EmbedProps['trackingSource'];
|
20
22
|
controls: EmbedProps['controls'];
|
21
23
|
preload: EmbedProps['preload'];
|