@vouchfor/embeds 0.0.0-experiment.9eba968 → 0.0.0-experiment.a91d11e
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 +3 -2
- package/dist/es/components/Embed/index.d.ts +2 -0
- package/dist/es/embeds.js +458 -447
- 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 +63 -56
- package/src/components/Embed/index.ts +3 -0
@@ -9,8 +9,9 @@ declare class TrackingController implements ReactiveController {
|
|
9
9
|
private _hasPlayed;
|
10
10
|
private _hasLoaded;
|
11
11
|
private _answersViewed;
|
12
|
-
private
|
13
|
-
private
|
12
|
+
private _streamStartTime;
|
13
|
+
private _streamLatestTime;
|
14
|
+
private _currentlyPlayingVideo;
|
14
15
|
constructor(host: EmbedHost);
|
15
16
|
private _findVouchId;
|
16
17
|
private _createVisitor;
|
@@ -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'];
|