@vouchfor/embeds 1.4.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/embeds.js +1138 -11
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +2 -1
- package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +2 -1
- package/dist/es/src/components/DialogEmbed/index.d.ts +3 -1
- package/dist/es/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +1 -1
- package/dist/es/src/components/PlayerEmbed/index.d.ts +3 -2
- package/dist/es/src/components/PlayerEmbed/tests/data.d.ts +1 -1
- package/dist/iife/dialog-embed/embed.iife.js +376 -347
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
- package/dist/iife/embeds.iife.js +375 -346
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.iife.js +335 -306
- package/dist/iife/player-embed/embed.iife.js.map +1 -1
- package/package.json +34 -30
- package/src/components/PlayerEmbed/PlayerEmbed.stories.ts +15 -1
- package/src/components/PlayerEmbed/controllers/tracking/utils.ts +1 -1
- package/src/components/PlayerEmbed/tests/data.ts +24 -24
- package/dist/es/browser-f8654733.js +0 -733
- package/dist/es/browser-f8654733.js.map +0 -1
- package/dist/es/index-65006a92.js +0 -4602
- package/dist/es/index-65006a92.js.map +0 -1
- package/dist/iife/dialog-embed/browser-b36b6e3e.js +0 -433
- package/dist/iife/dialog-embed/browser-b36b6e3e.js.map +0 -1
- package/dist/iife/dialog-embed/embed.js +0 -5
- package/dist/iife/dialog-embed/embed.js.map +0 -1
- package/dist/iife/dialog-embed/index-72887ffc.js +0 -27167
- package/dist/iife/dialog-embed/index-72887ffc.js.map +0 -1
- package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogOverlay.d.ts +0 -19
- package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogPortal.d.ts +0 -35
- package/dist/iife/dialog-embed/src/components/DialogEmbed/index.d.ts +0 -36
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +0 -15
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +0 -14
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +0 -36
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +0 -17
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/index.d.ts +0 -73
- package/dist/iife/dialog-embed/src/components/PlayerEmbed/tests/data.d.ts +0 -3
- package/dist/iife/dialog-embed/src/index.d.ts +0 -2
- package/dist/iife/dialog-embed/src/utils/env.d.ts +0 -12
- package/dist/iife/dialog-embed/src/utils/events.d.ts +0 -2
- package/dist/iife/player-embed/browser-69a47b14.js +0 -433
- package/dist/iife/player-embed/browser-69a47b14.js.map +0 -1
- package/dist/iife/player-embed/embed.js +0 -5
- package/dist/iife/player-embed/embed.js.map +0 -1
- package/dist/iife/player-embed/index-854590ba.js +0 -26722
- package/dist/iife/player-embed/index-854590ba.js.map +0 -1
- package/dist/iife/player-embed/src/components/DialogEmbed/DialogOverlay.d.ts +0 -19
- package/dist/iife/player-embed/src/components/DialogEmbed/DialogPortal.d.ts +0 -35
- package/dist/iife/player-embed/src/components/DialogEmbed/index.d.ts +0 -36
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +0 -15
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +0 -14
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +0 -36
- package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +0 -17
- package/dist/iife/player-embed/src/components/PlayerEmbed/index.d.ts +0 -73
- package/dist/iife/player-embed/src/components/PlayerEmbed/tests/data.d.ts +0 -3
- package/dist/iife/player-embed/src/index.d.ts +0 -2
- package/dist/iife/player-embed/src/utils/env.d.ts +0 -12
- package/dist/iife/player-embed/src/utils/events.d.ts +0 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vouchfor/embeds",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.1",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Aaron Williams",
|
6
6
|
"main": "dist/es/embeds.js",
|
@@ -18,6 +18,9 @@
|
|
18
18
|
"tag": "latest",
|
19
19
|
"access": "public"
|
20
20
|
},
|
21
|
+
"engines": {
|
22
|
+
"node": ">=18.18.0"
|
23
|
+
},
|
21
24
|
"scripts": {
|
22
25
|
"build": "rm -rf dist && tsc && yarn build:self",
|
23
26
|
"build:deps": "yarn --cwd ../media-player build",
|
@@ -42,45 +45,46 @@
|
|
42
45
|
"dependencies": {
|
43
46
|
"@a11y/focus-trap": "^1.0.5",
|
44
47
|
"@lit/task": "^1.0.0",
|
45
|
-
"@vouchfor/
|
48
|
+
"@vouchfor/canvas-video": "^8.0.0",
|
49
|
+
"@vouchfor/media-player": "^3.0.1",
|
46
50
|
"uuid": "^9.0.1"
|
47
51
|
},
|
48
52
|
"peerDependencies": {
|
49
|
-
"lit": "^3.1.
|
53
|
+
"lit": "^3.1.2"
|
50
54
|
},
|
51
55
|
"devDependencies": {
|
52
56
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
53
|
-
"@open-wc/testing": "^
|
54
|
-
"@storybook/addon-essentials": "^
|
55
|
-
"@storybook/addon-links": "^
|
56
|
-
"@storybook/blocks": "^
|
57
|
-
"@storybook/web-components": "^
|
58
|
-
"@storybook/web-components-vite": "^
|
59
|
-
"@
|
60
|
-
"@
|
61
|
-
"@
|
62
|
-
"@
|
63
|
-
"@
|
64
|
-
"@
|
65
|
-
"@web/
|
66
|
-
"@web/test-runner
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
57
|
+
"@open-wc/testing": "^4.0.0",
|
58
|
+
"@storybook/addon-essentials": "^8.0.4",
|
59
|
+
"@storybook/addon-links": "^8.0.4",
|
60
|
+
"@storybook/blocks": "^8.0.4",
|
61
|
+
"@storybook/web-components": "^8.0.4",
|
62
|
+
"@storybook/web-components-vite": "^8.0.4",
|
63
|
+
"@svgr/core": "^8.1.0",
|
64
|
+
"@types/flat": "^5.0.5",
|
65
|
+
"@types/mocha": "^10.0.6",
|
66
|
+
"@vouchfor/eslint-config": "^1.0.1",
|
67
|
+
"@vouchfor/prettier-config": "^1.0.1",
|
68
|
+
"@vouchfor/video-utils": "^1.0.1",
|
69
|
+
"@web/dev-server-esbuild": "^1.0.2",
|
70
|
+
"@web/test-runner": "^0.18.1",
|
71
|
+
"@web/test-runner-browserstack": "^0.7.1",
|
72
|
+
"@web/test-runner-mocha": "^0.9.0",
|
73
|
+
"@web/test-runner-playwright": "^0.11.0",
|
70
74
|
"glob": "^10.3.10",
|
71
|
-
"lint-staged": "^
|
72
|
-
"lit": "^3.1.
|
75
|
+
"lint-staged": "^15.2.2",
|
76
|
+
"lit": "^3.1.2",
|
73
77
|
"lodash": "^4.17.21",
|
74
|
-
"prettier": "^3.0.3",
|
75
78
|
"react": "^18.2.0",
|
76
79
|
"react-dom": "^18.2.0",
|
77
|
-
"rollup-plugin-
|
80
|
+
"rollup-plugin-tla": "^0.0.2",
|
78
81
|
"sinon": "^17.0.1",
|
79
|
-
"storybook": "^
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"vite
|
83
|
-
"vite-plugin-
|
84
|
-
"
|
82
|
+
"storybook": "^8.0.4",
|
83
|
+
"svgson": "^5.3.1",
|
84
|
+
"typescript": "^5.4.3",
|
85
|
+
"vite": "^5.2.2",
|
86
|
+
"vite-plugin-commonjs": "^0.10.1",
|
87
|
+
"vite-plugin-dts": "^3.7.3",
|
88
|
+
"web-component-analyzer": "^2.0.0"
|
85
89
|
}
|
86
90
|
}
|
@@ -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/
|
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,4 +1,4 @@
|
|
1
|
-
import type { Vouch } from '@vouchfor/
|
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:
|