@vouchfor/embeds 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/dist/es/{browser-e6172048.js → browser-06a0f9c0.js} +2 -2
  2. package/dist/es/{browser-e6172048.js.map → browser-06a0f9c0.js.map} +1 -1
  3. package/dist/es/embeds.js +5 -2
  4. package/dist/es/embeds.js.map +1 -1
  5. package/dist/es/{index-450872d3.js → index-a234952b.js} +4211 -3717
  6. package/dist/es/index-a234952b.js.map +1 -0
  7. package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +19 -0
  8. package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +35 -0
  9. package/dist/es/src/components/DialogEmbed/index.d.ts +35 -0
  10. package/dist/es/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
  11. package/dist/es/src/index.d.ts +1 -0
  12. package/dist/iife/dialog-embed/browser-03872a5a.js +433 -0
  13. package/dist/iife/dialog-embed/browser-03872a5a.js.map +1 -0
  14. package/dist/iife/dialog-embed/embed.iife.js +1721 -0
  15. package/dist/iife/dialog-embed/embed.iife.js.map +1 -0
  16. package/dist/iife/dialog-embed/embed.js +5 -0
  17. package/dist/iife/dialog-embed/embed.js.map +1 -0
  18. package/dist/iife/dialog-embed/index-0caa60dd.js +32929 -0
  19. package/dist/iife/dialog-embed/index-0caa60dd.js.map +1 -0
  20. package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogOverlay.d.ts +19 -0
  21. package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogPortal.d.ts +35 -0
  22. package/dist/iife/dialog-embed/src/components/DialogEmbed/index.d.ts +35 -0
  23. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
  24. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +14 -0
  25. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +36 -0
  26. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
  27. package/dist/iife/dialog-embed/src/components/PlayerEmbed/tests/data.d.ts +3 -0
  28. package/dist/iife/dialog-embed/src/index.d.ts +2 -0
  29. package/dist/iife/dialog-embed/src/utils/env.d.ts +12 -0
  30. package/dist/iife/dialog-embed/src/utils/events.d.ts +2 -0
  31. package/dist/iife/embeds.iife.js +407 -258
  32. package/dist/iife/embeds.iife.js.map +1 -1
  33. package/dist/iife/player-embed/browser-a7c2424d.js +433 -0
  34. package/dist/iife/player-embed/browser-a7c2424d.js.map +1 -0
  35. package/dist/iife/player-embed/embed.iife.js +1585 -0
  36. package/dist/iife/player-embed/embed.iife.js.map +1 -0
  37. package/dist/iife/player-embed/embed.js +5 -0
  38. package/dist/iife/player-embed/embed.js.map +1 -0
  39. package/dist/iife/player-embed/index-e005869e.js +32486 -0
  40. package/dist/iife/player-embed/index-e005869e.js.map +1 -0
  41. package/dist/iife/player-embed/src/components/DialogEmbed/DialogOverlay.d.ts +19 -0
  42. package/dist/iife/player-embed/src/components/DialogEmbed/DialogPortal.d.ts +35 -0
  43. package/dist/iife/player-embed/src/components/DialogEmbed/index.d.ts +35 -0
  44. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
  45. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +14 -0
  46. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +36 -0
  47. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
  48. package/dist/iife/player-embed/src/components/PlayerEmbed/tests/data.d.ts +3 -0
  49. package/dist/iife/player-embed/src/index.d.ts +2 -0
  50. package/dist/iife/player-embed/src/utils/env.d.ts +12 -0
  51. package/dist/iife/player-embed/src/utils/events.d.ts +2 -0
  52. package/package.json +8 -3
  53. package/src/components/DialogEmbed/Dialog.stories.ts +79 -0
  54. package/src/components/DialogEmbed/DialogOverlay.ts +130 -0
  55. package/src/components/DialogEmbed/DialogPortal.ts +114 -0
  56. package/src/components/DialogEmbed/index.ts +93 -0
  57. package/src/components/PlayerEmbed/controllers/event-forwarder.ts +2 -1
  58. package/src/components/PlayerEmbed/index.ts +5 -103
  59. package/src/index.ts +1 -0
  60. package/src/mixins/media-player-proxy.ts +116 -0
  61. package/dist/es/index-450872d3.js.map +0 -1
  62. package/dist/es/src/components/PlayerEmbed/index.d.ts +0 -72
@@ -1,72 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import type { Scene, Scenes, TemplateInstance } from '@vouchfor/canvas-video';
3
- import type { MediaPlayer, MediaPlayerProps } from '@vouchfor/media-player';
4
- import type { Environment } from '../../utils/env';
5
- type PlayerEmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
6
- env: Environment;
7
- apiKey: string;
8
- disableTracking?: boolean;
9
- trackingSource?: string;
10
- vouchId?: string;
11
- templateId?: string;
12
- questions?: number[];
13
- };
14
- declare class PlayerEmbed extends LitElement {
15
- static styles: import("lit").CSSResult[];
16
- private _mediaPlayerRef;
17
- data: PlayerEmbedProps['data'];
18
- vouchId: PlayerEmbedProps['vouchId'];
19
- templateId: PlayerEmbedProps['templateId'];
20
- questions: PlayerEmbedProps['questions'];
21
- env: PlayerEmbedProps['env'];
22
- apiKey: PlayerEmbedProps['apiKey'];
23
- disableTracking: PlayerEmbedProps['disableTracking'];
24
- trackingSource: PlayerEmbedProps['trackingSource'];
25
- controls: PlayerEmbedProps['controls'];
26
- preload: PlayerEmbedProps['preload'];
27
- autoplay: PlayerEmbedProps['autoplay'];
28
- aspectRatio: PlayerEmbedProps['aspectRatio'];
29
- private eventController;
30
- private _fetcherController;
31
- private _trackingController;
32
- vouch: PlayerEmbedProps['data'];
33
- template: TemplateInstance | undefined;
34
- get fetching(): boolean;
35
- get waiting(): boolean | undefined;
36
- get initialised(): Promise<boolean> | undefined;
37
- get seeking(): boolean | undefined;
38
- get paused(): boolean | undefined;
39
- get captions(): boolean | undefined;
40
- get fullscreen(): boolean | undefined;
41
- get duration(): number | undefined;
42
- set currentTime(value: number);
43
- get currentTime(): number;
44
- set playbackRate(value: number);
45
- get playbackRate(): number;
46
- set volume(value: number);
47
- get volume(): number;
48
- set muted(value: boolean);
49
- get muted(): boolean;
50
- get scene(): Scene | null;
51
- get scenes(): Scene[];
52
- get sceneConfig(): Scenes | null;
53
- get videoState(): import("@vouchfor/media-player/dist/src/components/MediaPlayer/controllers/scenes").VideoStateMap | undefined;
54
- get mediaPlayer(): MediaPlayer | undefined;
55
- play(): void;
56
- pause(): void;
57
- setScene(index: number): void;
58
- private _renderStyles;
59
- render(): import("lit").TemplateResult<1>;
60
- }
61
- declare global {
62
- interface HTMLElementTagNameMap {
63
- 'vouch-embed-player': PlayerEmbed;
64
- }
65
- namespace JSX {
66
- interface IntrinsicElements {
67
- 'vouch-embed-player': PlayerEmbed;
68
- }
69
- }
70
- }
71
- export { PlayerEmbed };
72
- export type { PlayerEmbedProps };