@vouchfor/embeds 0.0.0-experiment.b77073f → 0.0.0-experiment.b7c103f
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 +3 -1
- package/dist/es/embeds.js +894 -592
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/utils/env.d.ts +2 -8
- package/dist/iife/embeds.iife.js +220 -211
- package/dist/iife/embeds.iife.js.map +1 -1
- package/package.json +4 -4
- package/src/components/Embed/Embed.stories.ts +3 -3
- package/src/components/Embed/controllers/fetcher.ts +53 -11
- package/src/components/Embed/controllers/tracking.ts +73 -28
- package/src/components/Embed/index.ts +3 -0
- package/src/utils/env.ts +15 -29
- package/dist/es/components/Embed/controllers/event-forwarder.d.ts +0 -14
@@ -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'];
|
@@ -48,7 +50,7 @@ declare class Embed extends LitElement {
|
|
48
50
|
play(): void;
|
49
51
|
pause(): void;
|
50
52
|
setScene(index: number): void;
|
51
|
-
render(): import("lit
|
53
|
+
render(): import("lit").TemplateResult<1>;
|
52
54
|
}
|
53
55
|
declare global {
|
54
56
|
interface HTMLElementTagNameMap {
|