@vouchfor/embeds 0.0.0-experiment.88ebbc0 → 0.0.0-experiment.896f0e4
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 +5 -1
- package/dist/es/embeds.js +892 -598
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/utils/env.d.ts +2 -8
- package/dist/iife/embeds.iife.js +225 -213
- 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 +55 -10
- package/src/components/Embed/controllers/tracking.ts +67 -59
- package/src/components/Embed/index.ts +5 -0
- package/src/utils/env.ts +15 -29
- package/dist/es/components/Embed/controllers/event-forwarder.d.ts +0 -14
@@ -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,8 @@ 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;
|
9
|
+
trackingSource?: string;
|
8
10
|
vouchId?: string;
|
9
11
|
templateId?: string;
|
10
12
|
};
|
@@ -15,6 +17,8 @@ declare class Embed extends LitElement {
|
|
15
17
|
templateId: EmbedProps['templateId'];
|
16
18
|
env: EmbedProps['env'];
|
17
19
|
apiKey: EmbedProps['apiKey'];
|
20
|
+
disableTracking: EmbedProps['disableTracking'];
|
21
|
+
trackingSource: EmbedProps['trackingSource'];
|
18
22
|
controls: EmbedProps['controls'];
|
19
23
|
preload: EmbedProps['preload'];
|
20
24
|
autoplay: EmbedProps['autoplay'];
|
@@ -46,7 +50,7 @@ declare class Embed extends LitElement {
|
|
46
50
|
play(): void;
|
47
51
|
pause(): void;
|
48
52
|
setScene(index: number): void;
|
49
|
-
render(): import("lit
|
53
|
+
render(): import("lit").TemplateResult<1>;
|
50
54
|
}
|
51
55
|
declare global {
|
52
56
|
interface HTMLElementTagNameMap {
|