@vouchfor/embeds 0.0.0-experiment.93ea548 → 0.0.0-experiment.9e95139
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/embeds.js +416 -325
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/{components → src/components}/Embed/controllers/fetcher.d.ts +1 -0
- package/dist/es/{components → src/components}/Embed/controllers/tracking.d.ts +6 -3
- package/dist/es/{components → src/components}/Embed/index.d.ts +4 -1
- package/dist/iife/embeds.iife.js +305 -190
- package/dist/iife/embeds.iife.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Embed/Embed.stories.ts +14 -1
- package/src/components/Embed/controllers/fetcher.ts +29 -8
- package/src/components/Embed/controllers/tracking.ts +84 -98
- package/src/components/Embed/index.ts +9 -2
- /package/dist/es/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/es/{utils → src/utils}/env.d.ts +0 -0
- /package/dist/es/{utils → src/utils}/events.d.ts +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
|
-
import type { Scene, TemplateInstance } from '@vouchfor/canvas-video';
|
2
|
+
import type { Scene, Scenes, TemplateInstance } from '@vouchfor/canvas-video';
|
3
3
|
import type { MediaPlayer, MediaPlayerProps } from '@vouchfor/media-player';
|
4
4
|
import type { Environment } from '../../utils/env';
|
5
5
|
type EmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
|
@@ -9,12 +9,14 @@ type EmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'a
|
|
9
9
|
trackingSource?: string;
|
10
10
|
vouchId?: string;
|
11
11
|
templateId?: string;
|
12
|
+
questionIndexes?: number[];
|
12
13
|
};
|
13
14
|
declare class Embed extends LitElement {
|
14
15
|
private _mediaPlayerRef;
|
15
16
|
data: EmbedProps['data'];
|
16
17
|
vouchId: EmbedProps['vouchId'];
|
17
18
|
templateId: EmbedProps['templateId'];
|
19
|
+
questionIndexes: EmbedProps['questionIndexes'];
|
18
20
|
env: EmbedProps['env'];
|
19
21
|
apiKey: EmbedProps['apiKey'];
|
20
22
|
disableTracking: EmbedProps['disableTracking'];
|
@@ -45,6 +47,7 @@ declare class Embed extends LitElement {
|
|
45
47
|
get muted(): boolean;
|
46
48
|
get scene(): Scene | null;
|
47
49
|
get scenes(): Scene[];
|
50
|
+
get sceneConfig(): Scenes | null;
|
48
51
|
get videoState(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/controllers/scenes").VideoStateMap | undefined;
|
49
52
|
get mediaPlayer(): MediaPlayer | undefined;
|
50
53
|
play(): void;
|