@vouchfor/embeds 0.0.0-experiment.de28f28 → 0.0.0-experiment.df0e970
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.
- package/dist/es/embeds.js +8 -4
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/src/components/PlayerEmbed/index.d.ts +2 -1
- package/dist/iife/dialog-embed/embed.iife.js +168 -163
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
- package/dist/iife/embeds.iife.js +155 -150
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.iife.js +129 -124
- package/dist/iife/player-embed/embed.iife.js.map +1 -1
- package/package.json +4 -4
- package/src/components/PlayerEmbed/PlayerEmbed.stories.ts +15 -1
- package/src/components/PlayerEmbed/index.ts +6 -1
- package/src/components/PlayerEmbed/tests/data.ts +23 -23
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vouchfor/embeds",
|
3
|
-
"version": "0.0.0-experiment.
|
3
|
+
"version": "0.0.0-experiment.df0e970",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Aaron Williams",
|
6
6
|
"main": "dist/es/embeds.js",
|
@@ -42,8 +42,8 @@
|
|
42
42
|
"dependencies": {
|
43
43
|
"@a11y/focus-trap": "^1.0.5",
|
44
44
|
"@lit/task": "^1.0.0",
|
45
|
-
"@vouchfor/canvas-video": "0.0.0-experiment.
|
46
|
-
"@vouchfor/media-player": "0.0.0-experiment.
|
45
|
+
"@vouchfor/canvas-video": "0.0.0-experiment.df0e970",
|
46
|
+
"@vouchfor/media-player": "0.0.0-experiment.df0e970",
|
47
47
|
"uuid": "^9.0.1"
|
48
48
|
},
|
49
49
|
"peerDependencies": {
|
@@ -62,7 +62,7 @@
|
|
62
62
|
"@types/mocha": "^10.0.6",
|
63
63
|
"@vouchfor/eslint-config": "^1.0.1",
|
64
64
|
"@vouchfor/prettier-config": "^1.0.1",
|
65
|
-
"@vouchfor/video-utils": "0.0.0-experiment.
|
65
|
+
"@vouchfor/video-utils": "0.0.0-experiment.df0e970",
|
66
66
|
"@web/dev-server-esbuild": "^1.0.2",
|
67
67
|
"@web/test-runner": "^0.18.1",
|
68
68
|
"@web/test-runner-browserstack": "^0.7.1",
|
@@ -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: {
|
@@ -13,7 +13,10 @@ import { TrackingController } from './controllers/tracking';
|
|
13
13
|
|
14
14
|
import '@vouchfor/media-player';
|
15
15
|
|
16
|
-
type PlayerEmbedProps = Pick<
|
16
|
+
type PlayerEmbedProps = Pick<
|
17
|
+
MediaPlayerProps,
|
18
|
+
'data' | 'aspectRatio' | 'language' | 'preload' | 'autoplay' | 'controls'
|
19
|
+
> & {
|
17
20
|
env: Environment;
|
18
21
|
apiKey: string;
|
19
22
|
disableTracking?: boolean;
|
@@ -48,6 +51,7 @@ class PlayerEmbed extends LitElement {
|
|
48
51
|
@property({ type: String }) preload: PlayerEmbedProps['preload'] = 'auto';
|
49
52
|
@property({ type: Boolean }) autoplay: PlayerEmbedProps['autoplay'] = false;
|
50
53
|
@property({ type: Number }) aspectRatio: PlayerEmbedProps['aspectRatio'] = 0;
|
54
|
+
@property({ type: String }) language?: MediaPlayerProps['language'];
|
51
55
|
|
52
56
|
private eventController = new EventForwardController(this, [
|
53
57
|
'durationchange',
|
@@ -228,6 +232,7 @@ class PlayerEmbed extends LitElement {
|
|
228
232
|
.template=${this.template}
|
229
233
|
aspectRatio=${ifDefined(this.aspectRatio)}
|
230
234
|
preload=${ifDefined(this.preload)}
|
235
|
+
language=${ifDefined(this.language)}
|
231
236
|
.controls=${this.controls}
|
232
237
|
></vmp-media-player>
|
233
238
|
`;
|
@@ -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:
|