@vouchfor/embeds 0.0.0-experiment.d900f80 → 0.0.0-experiment.dce2e9b
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/components/Embed/index.d.ts +3 -1
- package/dist/es/embeds.js +928 -646
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/utils/env.d.ts +5 -11
- package/dist/iife/embeds.iife.js +172 -184
- 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 +32 -7
- package/src/components/Embed/controllers/tracking.ts +1 -1
- package/src/components/Embed/index.ts +2 -0
- package/src/utils/env.ts +18 -32
- package/dist/es/components/Embed/controllers/event-forwarder.d.ts +0 -14
@@ -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
|
+
trackingSource?: string;
|
8
9
|
vouchId?: string;
|
9
10
|
templateId?: string;
|
10
11
|
};
|
@@ -15,6 +16,7 @@ declare class Embed extends LitElement {
|
|
15
16
|
templateId: EmbedProps['templateId'];
|
16
17
|
env: EmbedProps['env'];
|
17
18
|
apiKey: EmbedProps['apiKey'];
|
19
|
+
trackingSource: EmbedProps['trackingSource'];
|
18
20
|
controls: EmbedProps['controls'];
|
19
21
|
preload: EmbedProps['preload'];
|
20
22
|
autoplay: EmbedProps['autoplay'];
|
@@ -46,7 +48,7 @@ declare class Embed extends LitElement {
|
|
46
48
|
play(): void;
|
47
49
|
pause(): void;
|
48
50
|
setScene(index: number): void;
|
49
|
-
render(): import("lit
|
51
|
+
render(): import("lit").TemplateResult<1>;
|
50
52
|
}
|
51
53
|
declare global {
|
52
54
|
interface HTMLElementTagNameMap {
|