@vouchfor/embeds 0.0.0-experiment.639cc2b → 0.0.0-experiment.66903e8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/es/embeds.js +1143 -9
  2. package/dist/es/embeds.js.map +1 -1
  3. package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +2 -1
  4. package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +2 -1
  5. package/dist/es/src/components/DialogEmbed/index.d.ts +4 -1
  6. package/dist/es/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +1 -1
  7. package/dist/es/src/components/PlayerEmbed/index.d.ts +75 -0
  8. package/dist/es/src/components/PlayerEmbed/tests/data.d.ts +1 -1
  9. package/dist/iife/dialog-embed/embed.iife.js +402 -364
  10. package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
  11. package/dist/iife/embeds.iife.js +402 -364
  12. package/dist/iife/embeds.iife.js.map +1 -1
  13. package/dist/iife/player-embed/embed.iife.js +376 -340
  14. package/dist/iife/player-embed/embed.iife.js.map +1 -1
  15. package/package.json +34 -30
  16. package/src/components/DialogEmbed/Dialog.stories.ts +12 -0
  17. package/src/components/DialogEmbed/DialogOverlay.ts +2 -1
  18. package/src/components/DialogEmbed/DialogPortal.ts +22 -10
  19. package/src/components/DialogEmbed/index.ts +5 -1
  20. package/src/components/PlayerEmbed/PlayerEmbed.stories.ts +15 -1
  21. package/src/components/PlayerEmbed/controllers/tracking/utils.ts +1 -1
  22. package/src/components/PlayerEmbed/index.ts +113 -6
  23. package/src/components/PlayerEmbed/tests/data.ts +24 -24
  24. package/dist/es/browser-0f677eb0.js +0 -433
  25. package/dist/es/browser-0f677eb0.js.map +0 -1
  26. package/dist/es/index-10c784df.js +0 -10473
  27. package/dist/es/index-10c784df.js.map +0 -1
  28. package/dist/iife/dialog-embed/browser-d5ab59f6.js +0 -433
  29. package/dist/iife/dialog-embed/browser-d5ab59f6.js.map +0 -1
  30. package/dist/iife/dialog-embed/embed.js +0 -5
  31. package/dist/iife/dialog-embed/embed.js.map +0 -1
  32. package/dist/iife/dialog-embed/index-15c35035.js +0 -32932
  33. package/dist/iife/dialog-embed/index-15c35035.js.map +0 -1
  34. package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogOverlay.d.ts +0 -19
  35. package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogPortal.d.ts +0 -35
  36. package/dist/iife/dialog-embed/src/components/DialogEmbed/index.d.ts +0 -35
  37. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +0 -15
  38. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +0 -14
  39. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +0 -36
  40. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +0 -17
  41. package/dist/iife/dialog-embed/src/components/PlayerEmbed/tests/data.d.ts +0 -3
  42. package/dist/iife/dialog-embed/src/index.d.ts +0 -2
  43. package/dist/iife/dialog-embed/src/utils/env.d.ts +0 -12
  44. package/dist/iife/dialog-embed/src/utils/events.d.ts +0 -2
  45. package/dist/iife/player-embed/browser-99b7c0ea.js +0 -433
  46. package/dist/iife/player-embed/browser-99b7c0ea.js.map +0 -1
  47. package/dist/iife/player-embed/embed.js +0 -5
  48. package/dist/iife/player-embed/embed.js.map +0 -1
  49. package/dist/iife/player-embed/index-ff82a798.js +0 -32489
  50. package/dist/iife/player-embed/index-ff82a798.js.map +0 -1
  51. package/dist/iife/player-embed/src/components/DialogEmbed/DialogOverlay.d.ts +0 -19
  52. package/dist/iife/player-embed/src/components/DialogEmbed/DialogPortal.d.ts +0 -35
  53. package/dist/iife/player-embed/src/components/DialogEmbed/index.d.ts +0 -35
  54. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +0 -15
  55. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +0 -14
  56. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +0 -36
  57. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +0 -17
  58. package/dist/iife/player-embed/src/components/PlayerEmbed/tests/data.d.ts +0 -3
  59. package/dist/iife/player-embed/src/index.d.ts +0 -2
  60. package/dist/iife/player-embed/src/utils/env.d.ts +0 -12
  61. package/dist/iife/player-embed/src/utils/events.d.ts +0 -2
  62. package/src/mixins/media-player-proxy.ts +0 -116
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchfor/embeds",
3
- "version": "0.0.0-experiment.639cc2b",
3
+ "version": "0.0.0-experiment.66903e8",
4
4
  "license": "MIT",
5
5
  "author": "Aaron Williams",
6
6
  "main": "dist/es/embeds.js",
@@ -15,6 +15,9 @@
15
15
  "tag": "experiment",
16
16
  "access": "public"
17
17
  },
18
+ "engines": {
19
+ "node": ">=18.18.0"
20
+ },
18
21
  "scripts": {
19
22
  "build": "rm -rf dist && tsc && yarn build:self",
20
23
  "build:deps": "yarn --cwd ../media-player build",
@@ -39,45 +42,46 @@
39
42
  "dependencies": {
40
43
  "@a11y/focus-trap": "^1.0.5",
41
44
  "@lit/task": "^1.0.0",
42
- "@vouchfor/media-player": "0.0.0-experiment.639cc2b",
45
+ "@vouchfor/canvas-video": "0.0.0-experiment.66903e8",
46
+ "@vouchfor/media-player": "0.0.0-experiment.66903e8",
43
47
  "uuid": "^9.0.1"
44
48
  },
45
49
  "peerDependencies": {
46
- "lit": "^3.1.0"
50
+ "lit": "^3.1.2"
47
51
  },
48
52
  "devDependencies": {
49
53
  "@esm-bundle/chai": "^4.3.4-fix.0",
50
- "@open-wc/testing": "^3.2.0",
51
- "@storybook/addon-essentials": "^7.4.5",
52
- "@storybook/addon-links": "^7.4.5",
53
- "@storybook/blocks": "^7.4.5",
54
- "@storybook/web-components": "^7.4.5",
55
- "@storybook/web-components-vite": "^7.4.5",
56
- "@types/mocha": "^10.0.1",
57
- "@vouchfor/eslint-config": "^1.0.0",
58
- "@vouchfor/prettier-config": "^1.0.0",
59
- "@web/dev-server-esbuild": "^0.4.1",
60
- "@web/test-runner": "^0.17.1",
61
- "@web/test-runner-browserstack": "^0.6.1",
62
- "@web/test-runner-mocha": "^0.8.1",
63
- "@web/test-runner-playwright": "^0.10.1",
64
- "dotenv": "^16.3.1",
65
- "eslint": "^8.50.0",
66
- "eslint-plugin-import": "^2.28.1",
54
+ "@open-wc/testing": "^4.0.0",
55
+ "@storybook/addon-essentials": "^8.0.4",
56
+ "@storybook/addon-links": "^8.0.4",
57
+ "@storybook/blocks": "^8.0.4",
58
+ "@storybook/web-components": "^8.0.4",
59
+ "@storybook/web-components-vite": "^8.0.4",
60
+ "@svgr/core": "^8.1.0",
61
+ "@types/flat": "^5.0.5",
62
+ "@types/mocha": "^10.0.6",
63
+ "@vouchfor/eslint-config": "^1.0.1",
64
+ "@vouchfor/prettier-config": "^1.0.1",
65
+ "@vouchfor/video-utils": "0.0.0-experiment.66903e8",
66
+ "@web/dev-server-esbuild": "^1.0.2",
67
+ "@web/test-runner": "^0.18.1",
68
+ "@web/test-runner-browserstack": "^0.7.1",
69
+ "@web/test-runner-mocha": "^0.9.0",
70
+ "@web/test-runner-playwright": "^0.11.0",
67
71
  "glob": "^10.3.10",
68
- "lint-staged": "^14.0.1",
69
- "lit": "^3.1.0",
72
+ "lint-staged": "^15.2.2",
73
+ "lit": "^3.1.2",
70
74
  "lodash": "^4.17.21",
71
- "prettier": "^3.0.3",
72
75
  "react": "^18.2.0",
73
76
  "react-dom": "^18.2.0",
74
- "rollup-plugin-internal": "^1.0.4",
77
+ "rollup-plugin-tla": "^0.0.2",
75
78
  "sinon": "^17.0.1",
76
- "storybook": "^7.4.5",
77
- "typescript": "^5.1.3",
78
- "vite": "^4.4.9",
79
- "vite-plugin-commonjs": "^0.10.0",
80
- "vite-plugin-dts": "^3.6.0",
81
- "web-component-analyzer": "^1.1.7"
79
+ "storybook": "^8.0.4",
80
+ "svgson": "^5.3.1",
81
+ "typescript": "^5.4.3",
82
+ "vite": "^5.2.2",
83
+ "vite-plugin-commonjs": "^0.10.1",
84
+ "vite-plugin-dts": "^3.7.3",
85
+ "web-component-analyzer": "^2.0.0"
82
86
  }
83
87
  }
@@ -35,6 +35,18 @@ const _DialogEmbed = ({
35
35
  aspectRatio=${ifDefined(aspectRatio)}
36
36
  @error=${console.log}
37
37
  ></vouch-embed-dialog>
38
+ <vouch-embed-dialog
39
+ env=${ifDefined(env)}
40
+ apiKey=${ifDefined(apiKey)}
41
+ vouchId=${ifDefined(vouchId)}
42
+ templateId=${ifDefined(templateId)}
43
+ .questions=${questions}
44
+ .controls=${controls}
45
+ ?autoplay=${autoplay}
46
+ preload=${ifDefined(preload)}
47
+ aspectRatio=${ifDefined(aspectRatio)}
48
+ @error=${console.log}
49
+ ></vouch-embed-dialog>
38
50
  </div>
39
51
  `;
40
52
  };
@@ -21,10 +21,11 @@ class DialogOverlay extends LitElement {
21
21
  }
22
22
 
23
23
  .container {
24
- position: absolute;
24
+ position: fixed;
25
25
  display: flex;
26
26
  inset: 0;
27
27
  opacity: 1;
28
+ z-index: 2147483647;
28
29
  align-items: center;
29
30
  justify-content: center;
30
31
  transition: opacity 100ms ease-in;
@@ -29,19 +29,25 @@ class DialogPortal extends LitElement {
29
29
 
30
30
  @state() open = false;
31
31
 
32
- private _handleToggle = () => {
33
- this.open = !this.open;
34
-
35
- if (this.open) {
36
- if (!this.disableAutoplay && this._mediaPlayerRef?.value) {
37
- this._mediaPlayerRef.value.muted = false;
38
- this._mediaPlayerRef.value.play();
32
+ private _handleToggle = ({ detail }: CustomEvent<string>) => {
33
+ // Because we have to attach this listener to the document since this element is portalled outside of the button,
34
+ // we also have to make sure that this player is actually the one we want to open and play by passing in an ID
35
+ // from the button wrapper parent and checking against that same ID we pass as the event detail
36
+ if (this.id === detail) {
37
+ this.open = !this.open;
38
+
39
+ if (this.open) {
40
+ if (!this.disableAutoplay && this._mediaPlayerRef?.value) {
41
+ this._mediaPlayerRef.value.muted = false;
42
+ this._mediaPlayerRef.value.play();
43
+ }
44
+ } else {
45
+ this._mediaPlayerRef?.value?.pause();
39
46
  }
40
- } else {
41
- this._mediaPlayerRef?.value?.pause();
42
47
  }
43
48
  };
44
49
 
50
+ // We could do the same thing on close and check for the correct ID but it doesn't really matter
45
51
  private _handleClose = () => {
46
52
  this.open = false;
47
53
  this._mediaPlayerRef?.value?.pause();
@@ -70,7 +76,13 @@ class DialogPortal extends LitElement {
70
76
  }
71
77
 
72
78
  protected createRenderRoot(): HTMLElement | DocumentFragment {
73
- return document.body;
79
+ // We must create a new node here because portalling into the same node (document.body) causes the second
80
+ // element to overwrite the first for some reason (not behaviour really stated in the docs)
81
+ // I am fairly certain this function is only run once as the default behaviour creates the open shadow root
82
+ // and returns that shadow root in this function: https://lit.dev/docs/components/shadow-dom/#implementing-createrenderroot
83
+ const newNode = document.createElement('div');
84
+ document.body.appendChild(newNode);
85
+ return newNode;
74
86
  }
75
87
 
76
88
  render() {
@@ -1,6 +1,7 @@
1
1
  import { css, html, LitElement } from 'lit';
2
2
  import { customElement, property } from 'lit/decorators.js';
3
3
  import { ifDefined } from 'lit/directives/if-defined.js';
4
+ import { v4 as uuidv4 } from 'uuid';
4
5
 
5
6
  import type { PlayerEmbedProps } from '../PlayerEmbed';
6
7
 
@@ -41,8 +42,10 @@ class DialogEmbed extends LitElement {
41
42
  @property({ type: Boolean }) disableAutoplay: DialogEmbedProps['disableAutoplay'] = false;
42
43
  @property({ type: Number }) aspectRatio: DialogEmbedProps['aspectRatio'] = 0;
43
44
 
45
+ private _id = uuidv4();
46
+
44
47
  private _handleRootClick = () => {
45
- this.dispatchEvent(new CustomEvent('dialogembed:click', { bubbles: true, composed: true }));
48
+ this.dispatchEvent(new CustomEvent('dialogembed:click', { detail: this._id, bubbles: true, composed: true }));
46
49
  };
47
50
 
48
51
  connectedCallback(): void {
@@ -61,6 +64,7 @@ class DialogEmbed extends LitElement {
61
64
  <vmp-button size="large">Play</vmp-button>
62
65
  </slot>
63
66
  <vouch-embed-dialog-portal
67
+ id=${this._id}
64
68
  ?autoplay=${false}
65
69
  vouchId=${ifDefined(this.vouchId)}
66
70
  templateId=${ifDefined(this.templateId)}
@@ -58,7 +58,21 @@ const Player: Story = {
58
58
  questions: [],
59
59
  aspectRatio: 0,
60
60
  preload: 'none',
61
- autoplay: false
61
+ autoplay: false,
62
+ controls: [
63
+ 'progress',
64
+ 'play-large',
65
+ 'navigation',
66
+ 'play',
67
+ 'volume',
68
+ 'current-time',
69
+ 'duration',
70
+ 'speed',
71
+ 'captions',
72
+ 'fullscreen',
73
+ 'preview',
74
+ 'languages'
75
+ ]
62
76
  },
63
77
  argTypes: {
64
78
  env: {
@@ -2,7 +2,7 @@ import { TEMPLATE_VERSION } from '@vouchfor/canvas-video';
2
2
  import { v4 as uuidv4 } from 'uuid';
3
3
 
4
4
  import type { TrackingPayload } from '.';
5
- import type { Vouch } from '@vouchfor/media-player';
5
+ import type { Vouch } from '@vouchfor/video-utils';
6
6
  import type { Environment } from '~/utils/env';
7
7
 
8
8
  import packageJson from '~/../package.json';
@@ -1,20 +1,22 @@
1
1
  import { css, html, LitElement } from 'lit';
2
2
  import { customElement, property, state } from 'lit/decorators.js';
3
3
  import { ifDefined } from 'lit/directives/if-defined.js';
4
- import { ref } from 'lit/directives/ref.js';
4
+ import { createRef, ref } from 'lit/directives/ref.js';
5
5
 
6
- import type { TemplateInstance } from '@vouchfor/canvas-video';
7
- import type { MediaPlayerProps } from '@vouchfor/media-player';
6
+ import type { Scene, Scenes, TemplateInstance } from '@vouchfor/canvas-video';
7
+ import type { MediaPlayer, MediaPlayerProps } from '@vouchfor/media-player';
8
8
  import type { Environment } from '~/utils/env';
9
9
 
10
10
  import { EventForwardController } from './controllers/event-forwarder';
11
11
  import { FetcherController } from './controllers/fetcher';
12
12
  import { TrackingController } from './controllers/tracking';
13
- import { MediaPlayerProxy } from '~/mixins/media-player-proxy';
14
13
 
15
14
  import '@vouchfor/media-player';
16
15
 
17
- type PlayerEmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
16
+ type PlayerEmbedProps = Pick<
17
+ MediaPlayerProps,
18
+ 'data' | 'aspectRatio' | 'language' | 'preload' | 'autoplay' | 'controls'
19
+ > & {
18
20
  env: Environment;
19
21
  apiKey: string;
20
22
  disableTracking?: boolean;
@@ -26,7 +28,7 @@ type PlayerEmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload
26
28
  };
27
29
 
28
30
  @customElement('vouch-embed-player')
29
- class PlayerEmbed extends MediaPlayerProxy(LitElement) {
31
+ class PlayerEmbed extends LitElement {
30
32
  static styles = [
31
33
  css`
32
34
  :host {
@@ -49,6 +51,7 @@ class PlayerEmbed extends MediaPlayerProxy(LitElement) {
49
51
  @property({ type: String }) preload: PlayerEmbedProps['preload'] = 'auto';
50
52
  @property({ type: Boolean }) autoplay: PlayerEmbedProps['autoplay'] = false;
51
53
  @property({ type: Number }) aspectRatio: PlayerEmbedProps['aspectRatio'] = 0;
54
+ @property({ type: String }) language?: MediaPlayerProps['language'];
52
55
 
53
56
  private eventController = new EventForwardController(this, [
54
57
  'durationchange',
@@ -61,6 +64,7 @@ class PlayerEmbed extends MediaPlayerProxy(LitElement) {
61
64
  'playing',
62
65
  'ratechange',
63
66
  'scenechange',
67
+ 'scenesupdate',
64
68
  'seeking',
65
69
  'seeked',
66
70
  'timeupdate',
@@ -90,6 +94,108 @@ class PlayerEmbed extends MediaPlayerProxy(LitElement) {
90
94
  return this._fetcherController.fetching;
91
95
  }
92
96
 
97
+ private _mediaPlayerRef = createRef<MediaPlayer>();
98
+
99
+ get waiting() {
100
+ return this._mediaPlayerRef.value?.waiting;
101
+ }
102
+
103
+ get initialised() {
104
+ return this._mediaPlayerRef.value?.initialised;
105
+ }
106
+
107
+ get seeking() {
108
+ return this._mediaPlayerRef.value?.seeking;
109
+ }
110
+
111
+ get paused() {
112
+ return this._mediaPlayerRef.value?.paused;
113
+ }
114
+
115
+ get captions() {
116
+ return this._mediaPlayerRef.value?.captions;
117
+ }
118
+
119
+ get fullscreen() {
120
+ return this._mediaPlayerRef.value?.fullscreen;
121
+ }
122
+
123
+ get duration() {
124
+ return this._mediaPlayerRef.value?.duration;
125
+ }
126
+
127
+ set currentTime(value: number) {
128
+ if (this._mediaPlayerRef.value) {
129
+ this._mediaPlayerRef.value.currentTime = value;
130
+ }
131
+ }
132
+ get currentTime() {
133
+ return this._mediaPlayerRef.value?.currentTime ?? 0;
134
+ }
135
+
136
+ set playbackRate(value: number) {
137
+ if (this._mediaPlayerRef.value) {
138
+ this._mediaPlayerRef.value.playbackRate = value;
139
+ }
140
+ }
141
+ get playbackRate() {
142
+ return this._mediaPlayerRef.value?.playbackRate ?? 1;
143
+ }
144
+
145
+ set volume(value: number) {
146
+ if (this._mediaPlayerRef.value) {
147
+ this._mediaPlayerRef.value.volume = value;
148
+ }
149
+ }
150
+ get volume() {
151
+ return this._mediaPlayerRef.value?.volume ?? 1;
152
+ }
153
+
154
+ set muted(value: boolean) {
155
+ if (this._mediaPlayerRef.value) {
156
+ this._mediaPlayerRef.value.muted = value;
157
+ }
158
+ }
159
+ get muted() {
160
+ return this._mediaPlayerRef.value?.muted ?? false;
161
+ }
162
+
163
+ get scene(): Scene | null {
164
+ return this._mediaPlayerRef.value?.scene ?? null;
165
+ }
166
+
167
+ get scenes(): Scene[] {
168
+ return this._mediaPlayerRef.value?.scenes ?? [];
169
+ }
170
+
171
+ get sceneConfig(): Scenes | null {
172
+ return this._mediaPlayerRef.value?.sceneConfig ?? null;
173
+ }
174
+
175
+ get videoState() {
176
+ return this._mediaPlayerRef.value?.videoState;
177
+ }
178
+
179
+ get mediaPlayer() {
180
+ return this._mediaPlayerRef.value;
181
+ }
182
+
183
+ play() {
184
+ this._mediaPlayerRef.value?.play();
185
+ }
186
+
187
+ pause() {
188
+ this._mediaPlayerRef.value?.pause();
189
+ }
190
+
191
+ reset(time = 0, play = false) {
192
+ this._mediaPlayerRef.value?.reset(time, play);
193
+ }
194
+
195
+ setScene(index: number) {
196
+ this._mediaPlayerRef.value?.setScene(index);
197
+ }
198
+
93
199
  private _renderStyles() {
94
200
  if (!this.aspectRatio) {
95
201
  return html`
@@ -127,6 +233,7 @@ class PlayerEmbed extends MediaPlayerProxy(LitElement) {
127
233
  .template=${this.template}
128
234
  aspectRatio=${ifDefined(this.aspectRatio)}
129
235
  preload=${ifDefined(this.preload)}
236
+ language=${ifDefined(this.language)}
130
237
  .controls=${this.controls}
131
238
  ></vmp-media-player>
132
239
  `;
@@ -1,4 +1,4 @@
1
- import type { Vouch } from '@vouchfor/media-player';
1
+ import type { Vouch } from '@vouchfor/video-utils';
2
2
 
3
3
  /* eslint-disable max-lines */
4
4
  const data = {
@@ -39,14 +39,14 @@ const data = {
39
39
  thumbnail:
40
40
  'https://d2rxhdlm2q91uk.cloudfront.net/TVik9uTMgE/6JQEIPeStt/5c66bb3a-ed68-41a0-a601-a49865104418/5c66bb3a-ed68-41a0-a601-a49865104418_poster.0000001.jpg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMnJ4aGRsbTJxOTF1ay5jbG91ZGZyb250Lm5ldC9UVmlrOXVUTWdFLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjIwMTYzMjM0Mjl9fX1dfQ__&Key-Pair-Id=K2SWKOH0FA5F6M&Signature=SGA54MFpy4jaqKJHKEuxRfjk-~NBFAh1tdW9Y6uYJwc0LFjDDgX1sraerSyohmVhj~-QVIrglY5BvglDIhrFcLJWGTkgj4vhyLprk1a7EDckv0HBgp-k1ZKvoDtt3wBOzrL4GicfXBkuMpIu5jv5MY3xemlJj2a6V~h65XJuLO4u-xS~McH6rS3mRxoNl4GcYUVm4upre1DGQx-5Suy6Ateoxl6xxoF8kg5EL02KxkIGiRpwXJTvVmUuVF0rpBj-IE40MfmhLBQ1NNSXiqb3-HjpkKwhYPvB5APVh23mzGmqJ0P3jbr2F1cU4Jvlqsjb6GVP61wGOz9ITeWPZkOy8A__'
41
41
  },
42
- client: {
43
- id: '03540d70-1c75-4867-a235-bac842ed6ce4',
44
- name: 'Not Supplied',
45
- logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
46
- },
47
42
  contact: {
48
43
  id: 'b62f62a3-0cd4-4512-9b52-121cb2f3e72f',
49
- name: 'Aaron Williams'
44
+ name: 'Aaron Williams',
45
+ client: {
46
+ id: '03540d70-1c75-4867-a235-bac842ed6ce4',
47
+ name: 'Not Supplied',
48
+ logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
49
+ }
50
50
  },
51
51
  captions: {
52
52
  current:
@@ -83,14 +83,14 @@ const data = {
83
83
  thumbnail:
84
84
  'https://d2rxhdlm2q91uk.cloudfront.net/TVik9uTMgE/6JQEIPeStt/5c66bb3a-ed68-41a0-a601-a49865104418/5c66bb3a-ed68-41a0-a601-a49865104418_poster.0000001.jpg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMnJ4aGRsbTJxOTF1ay5jbG91ZGZyb250Lm5ldC9UVmlrOXVUTWdFLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjIwMTYzMjM0Mjl9fX1dfQ__&Key-Pair-Id=K2SWKOH0FA5F6M&Signature=SGA54MFpy4jaqKJHKEuxRfjk-~NBFAh1tdW9Y6uYJwc0LFjDDgX1sraerSyohmVhj~-QVIrglY5BvglDIhrFcLJWGTkgj4vhyLprk1a7EDckv0HBgp-k1ZKvoDtt3wBOzrL4GicfXBkuMpIu5jv5MY3xemlJj2a6V~h65XJuLO4u-xS~McH6rS3mRxoNl4GcYUVm4upre1DGQx-5Suy6Ateoxl6xxoF8kg5EL02KxkIGiRpwXJTvVmUuVF0rpBj-IE40MfmhLBQ1NNSXiqb3-HjpkKwhYPvB5APVh23mzGmqJ0P3jbr2F1cU4Jvlqsjb6GVP61wGOz9ITeWPZkOy8A__'
85
85
  },
86
- client: {
87
- id: '03540d70-1c75-4867-a235-bac842ed6ce4',
88
- logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
89
- },
90
86
  contact: {
91
87
  id: 'b62f62a3-0cd4-4512-9b52-121cb2f3e72f',
92
88
  name: 'Aaron Williams',
93
- roleTitle: 'Software Engineer'
89
+ roleTitle: 'Software Engineer',
90
+ client: {
91
+ id: '03540d70-1c75-4867-a235-bac842ed6ce4',
92
+ logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
93
+ }
94
94
  },
95
95
  captions: {
96
96
  current:
@@ -121,15 +121,15 @@ const data = {
121
121
  thumbnail:
122
122
  'https://d2rxhdlm2q91uk.cloudfront.net/TVik9uTMgE/6JQEIPeStt/e77c81a7-f6ef-4eae-91fc-b620d092d8d6/e77c81a7-f6ef-4eae-91fc-b620d092d8d6_poster.0000001.jpg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMnJ4aGRsbTJxOTF1ay5jbG91ZGZyb250Lm5ldC9UVmlrOXVUTWdFLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjIwMTYzMjM0Mjl9fX1dfQ__&Key-Pair-Id=K2SWKOH0FA5F6M&Signature=SGA54MFpy4jaqKJHKEuxRfjk-~NBFAh1tdW9Y6uYJwc0LFjDDgX1sraerSyohmVhj~-QVIrglY5BvglDIhrFcLJWGTkgj4vhyLprk1a7EDckv0HBgp-k1ZKvoDtt3wBOzrL4GicfXBkuMpIu5jv5MY3xemlJj2a6V~h65XJuLO4u-xS~McH6rS3mRxoNl4GcYUVm4upre1DGQx-5Suy6Ateoxl6xxoF8kg5EL02KxkIGiRpwXJTvVmUuVF0rpBj-IE40MfmhLBQ1NNSXiqb3-HjpkKwhYPvB5APVh23mzGmqJ0P3jbr2F1cU4Jvlqsjb6GVP61wGOz9ITeWPZkOy8A__'
123
123
  },
124
- client: {
125
- id: '03540d70-1c75-4867-a235-bac842ed6ce4',
126
- name: 'Vouch',
127
- logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
128
- },
129
124
  contact: {
130
125
  id: 'b62f62a3-0cd4-4512-9b52-121cb2f3e72f',
131
126
  name: 'Aaron Williams',
132
- roleTitle: 'Software Engineer'
127
+ roleTitle: 'Software Engineer',
128
+ client: {
129
+ id: '03540d70-1c75-4867-a235-bac842ed6ce4',
130
+ name: 'Vouch',
131
+ logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
132
+ }
133
133
  },
134
134
  captions: {
135
135
  current:
@@ -160,15 +160,15 @@ const data = {
160
160
  thumbnail:
161
161
  'https://d2rxhdlm2q91uk.cloudfront.net/TVik9uTMgE/6JQEIPeStt/39fd188d-a4dc-43b9-bac8-32fd71bfbc90/39fd188d-a4dc-43b9-bac8-32fd71bfbc90_poster.0000001.jpg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMnJ4aGRsbTJxOTF1ay5jbG91ZGZyb250Lm5ldC9UVmlrOXVUTWdFLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjIwMTYzMjM0Mjl9fX1dfQ__&Key-Pair-Id=K2SWKOH0FA5F6M&Signature=SGA54MFpy4jaqKJHKEuxRfjk-~NBFAh1tdW9Y6uYJwc0LFjDDgX1sraerSyohmVhj~-QVIrglY5BvglDIhrFcLJWGTkgj4vhyLprk1a7EDckv0HBgp-k1ZKvoDtt3wBOzrL4GicfXBkuMpIu5jv5MY3xemlJj2a6V~h65XJuLO4u-xS~McH6rS3mRxoNl4GcYUVm4upre1DGQx-5Suy6Ateoxl6xxoF8kg5EL02KxkIGiRpwXJTvVmUuVF0rpBj-IE40MfmhLBQ1NNSXiqb3-HjpkKwhYPvB5APVh23mzGmqJ0P3jbr2F1cU4Jvlqsjb6GVP61wGOz9ITeWPZkOy8A__'
162
162
  },
163
- client: {
164
- id: '03540d70-1c75-4867-a235-bac842ed6ce4',
165
- name: 'Vouch',
166
- logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
167
- },
168
163
  contact: {
169
164
  id: 'b62f62a3-0cd4-4512-9b52-121cb2f3e72f',
170
165
  name: 'Aaron Williams',
171
- roleTitle: 'Software Engineer'
166
+ roleTitle: 'Software Engineer',
167
+ client: {
168
+ id: '03540d70-1c75-4867-a235-bac842ed6ce4',
169
+ name: 'Vouch',
170
+ logoSrc: 'https://logo.clearbit.com/vouchfor.com?size=260'
171
+ }
172
172
  },
173
173
  captions: {
174
174
  current: