@vouchfor/embeds 1.3.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/es/embeds.js +1138 -11
  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 +3 -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 +3 -2
  8. package/dist/es/src/components/PlayerEmbed/tests/data.d.ts +1 -1
  9. package/dist/iife/dialog-embed/embed.iife.js +363 -334
  10. package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
  11. package/dist/iife/embeds.iife.js +362 -333
  12. package/dist/iife/embeds.iife.js.map +1 -1
  13. package/dist/iife/player-embed/embed.iife.js +346 -317
  14. package/dist/iife/player-embed/embed.iife.js.map +1 -1
  15. package/package.json +34 -30
  16. package/src/components/PlayerEmbed/controllers/tracking/utils.ts +1 -1
  17. package/src/components/PlayerEmbed/tests/data.ts +1 -1
  18. package/dist/es/browser-1b4c09f1.js +0 -733
  19. package/dist/es/browser-1b4c09f1.js.map +0 -1
  20. package/dist/es/index-37e10211.js +0 -4599
  21. package/dist/es/index-37e10211.js.map +0 -1
  22. package/dist/iife/dialog-embed/browser-aef6773c.js +0 -433
  23. package/dist/iife/dialog-embed/browser-aef6773c.js.map +0 -1
  24. package/dist/iife/dialog-embed/embed.js +0 -5
  25. package/dist/iife/dialog-embed/embed.js.map +0 -1
  26. package/dist/iife/dialog-embed/index-98ee90b7.js +0 -27151
  27. package/dist/iife/dialog-embed/index-98ee90b7.js.map +0 -1
  28. package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogOverlay.d.ts +0 -19
  29. package/dist/iife/dialog-embed/src/components/DialogEmbed/DialogPortal.d.ts +0 -35
  30. package/dist/iife/dialog-embed/src/components/DialogEmbed/index.d.ts +0 -36
  31. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +0 -15
  32. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +0 -14
  33. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +0 -36
  34. package/dist/iife/dialog-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +0 -17
  35. package/dist/iife/dialog-embed/src/components/PlayerEmbed/index.d.ts +0 -73
  36. package/dist/iife/dialog-embed/src/components/PlayerEmbed/tests/data.d.ts +0 -3
  37. package/dist/iife/dialog-embed/src/index.d.ts +0 -2
  38. package/dist/iife/dialog-embed/src/utils/env.d.ts +0 -12
  39. package/dist/iife/dialog-embed/src/utils/events.d.ts +0 -2
  40. package/dist/iife/player-embed/browser-3fc50faa.js +0 -433
  41. package/dist/iife/player-embed/browser-3fc50faa.js.map +0 -1
  42. package/dist/iife/player-embed/embed.js +0 -5
  43. package/dist/iife/player-embed/embed.js.map +0 -1
  44. package/dist/iife/player-embed/index-ec0750d4.js +0 -26706
  45. package/dist/iife/player-embed/index-ec0750d4.js.map +0 -1
  46. package/dist/iife/player-embed/src/components/DialogEmbed/DialogOverlay.d.ts +0 -19
  47. package/dist/iife/player-embed/src/components/DialogEmbed/DialogPortal.d.ts +0 -35
  48. package/dist/iife/player-embed/src/components/DialogEmbed/index.d.ts +0 -36
  49. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +0 -15
  50. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/fetcher.d.ts +0 -14
  51. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/index.d.ts +0 -36
  52. package/dist/iife/player-embed/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +0 -17
  53. package/dist/iife/player-embed/src/components/PlayerEmbed/index.d.ts +0 -73
  54. package/dist/iife/player-embed/src/components/PlayerEmbed/tests/data.d.ts +0 -3
  55. package/dist/iife/player-embed/src/index.d.ts +0 -2
  56. package/dist/iife/player-embed/src/utils/env.d.ts +0 -12
  57. 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": "1.3.2",
3
+ "version": "2.0.0",
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/media-player": "^2.2.2",
48
+ "@vouchfor/canvas-video": "^8.0.0",
49
+ "@vouchfor/media-player": "^3.0.0",
46
50
  "uuid": "^9.0.1"
47
51
  },
48
52
  "peerDependencies": {
49
- "lit": "^3.1.0"
53
+ "lit": "^3.1.2"
50
54
  },
51
55
  "devDependencies": {
52
56
  "@esm-bundle/chai": "^4.3.4-fix.0",
53
- "@open-wc/testing": "^3.2.0",
54
- "@storybook/addon-essentials": "^7.4.5",
55
- "@storybook/addon-links": "^7.4.5",
56
- "@storybook/blocks": "^7.4.5",
57
- "@storybook/web-components": "^7.4.5",
58
- "@storybook/web-components-vite": "^7.4.5",
59
- "@types/mocha": "^10.0.1",
60
- "@vouchfor/eslint-config": "^1.0.0",
61
- "@vouchfor/prettier-config": "^1.0.0",
62
- "@web/dev-server-esbuild": "^0.4.1",
63
- "@web/test-runner": "^0.17.1",
64
- "@web/test-runner-browserstack": "^0.6.1",
65
- "@web/test-runner-mocha": "^0.8.1",
66
- "@web/test-runner-playwright": "^0.10.1",
67
- "dotenv": "^16.3.1",
68
- "eslint": "^8.50.0",
69
- "eslint-plugin-import": "^2.28.1",
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.0",
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": "^14.0.1",
72
- "lit": "^3.1.0",
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-internal": "^1.0.4",
80
+ "rollup-plugin-tla": "^0.0.2",
78
81
  "sinon": "^17.0.1",
79
- "storybook": "^7.4.5",
80
- "typescript": "^5.1.3",
81
- "vite": "^4.4.9",
82
- "vite-plugin-commonjs": "^0.10.0",
83
- "vite-plugin-dts": "^3.6.0",
84
- "web-component-analyzer": "^1.1.7"
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
  }
@@ -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,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 = {