@vouchfor/embeds 0.0.0-experiment.d5f2af2 → 0.0.0-experiment.d6b65ca

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchfor/embeds",
3
- "version": "0.0.0-experiment.d5f2af2",
3
+ "version": "0.0.0-experiment.d6b65ca",
4
4
  "license": "MIT",
5
5
  "author": "Aaron Williams",
6
6
  "main": "dist/es/embeds.js",
@@ -31,11 +31,10 @@
31
31
  "prepublishOnly": "yarn build",
32
32
  "size": "size-limit",
33
33
  "storybook": "yarn prebuild && storybook dev -p 6007",
34
- "prebuild": "yarn generate:manifest",
34
+ "prebuild": "yarn build:deps && yarn generate:manifest",
35
35
  "test": "rm -rf test/lib && yarn prebuild && vite build --mode test && web-test-runner",
36
36
  "test:ci": "yarn test --config web-test-runner.ci.config.js",
37
- "test:watch": "yarn test --watch",
38
- "typecheck": "tsc --noEmit"
37
+ "test:watch": "yarn test --watch"
39
38
  },
40
39
  "lint-staged": {
41
40
  "**/*.{ts,tsx,js}": "eslint --fix --quiet",
@@ -43,47 +42,47 @@
43
42
  },
44
43
  "dependencies": {
45
44
  "@a11y/focus-trap": "^1.0.5",
46
- "@lit/task": "^1.0.2",
47
- "@vouchfor/canvas-video": "0.0.0-experiment.d5f2af2",
48
- "@vouchfor/media-player": "0.0.0-experiment.d5f2af2",
45
+ "@lit/task": "^1.0.0",
46
+ "@vouchfor/canvas-video": "0.0.0-experiment.d6b65ca",
47
+ "@vouchfor/media-player": "0.0.0-experiment.d6b65ca",
49
48
  "uuid": "^9.0.1"
50
49
  },
51
50
  "peerDependencies": {
52
51
  "lit": "^3.1.2"
53
52
  },
54
53
  "devDependencies": {
55
- "@esm-bundle/chai": "^4.3.4",
54
+ "@esm-bundle/chai": "^4.3.4-fix.0",
56
55
  "@open-wc/testing": "^4.0.0",
57
- "@storybook/addon-essentials": "^8.6.12",
58
- "@storybook/addon-links": "^8.6.12",
59
- "@storybook/blocks": "^8.6.12",
60
- "@storybook/web-components": "^8.6.12",
61
- "@storybook/web-components-vite": "^8.6.12",
56
+ "@storybook/addon-essentials": "^8.0.4",
57
+ "@storybook/addon-links": "^8.0.4",
58
+ "@storybook/blocks": "^8.0.4",
59
+ "@storybook/web-components": "^8.0.4",
60
+ "@storybook/web-components-vite": "^8.0.4",
62
61
  "@svgr/core": "^8.1.0",
63
62
  "@types/flat": "^5.0.5",
64
- "@types/mocha": "^10.0.10",
65
- "@vouchfor/eslint-config": "^1.0.5",
63
+ "@types/mocha": "^10.0.6",
64
+ "@vouchfor/eslint-config": "^1.0.1",
66
65
  "@vouchfor/prettier-config": "^1.0.1",
67
- "@vouchfor/video-utils": "0.0.0-experiment.d5f2af2",
68
- "@web/dev-server-esbuild": "^1.0.4",
69
- "@web/test-runner": "^0.20.1",
70
- "@web/test-runner-browserstack": "^0.8.0",
66
+ "@vouchfor/video-utils": "0.0.0-experiment.d6b65ca",
67
+ "@web/dev-server-esbuild": "^1.0.2",
68
+ "@web/test-runner": "^0.18.1",
69
+ "@web/test-runner-browserstack": "^0.7.1",
71
70
  "@web/test-runner-mocha": "^0.9.0",
72
71
  "@web/test-runner-playwright": "^0.11.0",
73
- "glob": "^10.4.5",
74
- "lint-staged": "^15.5.1",
75
- "lit": "^3.3.0",
72
+ "glob": "^10.3.10",
73
+ "lint-staged": "^15.2.2",
74
+ "lit": "^3.1.2",
76
75
  "lodash": "^4.17.21",
77
- "react": "^18.3.1",
78
- "react-dom": "^18.3.1",
76
+ "react": "^18.2.0",
77
+ "react-dom": "^18.2.0",
79
78
  "rollup-plugin-tla": "^0.0.2",
80
79
  "sinon": "^17.0.1",
81
- "storybook": "^8.6.12",
80
+ "storybook": "^8.0.4",
82
81
  "svgson": "^5.3.1",
83
- "typescript": "^5.8.3",
84
- "vite": "^5.4.18",
85
- "vite-plugin-commonjs": "^0.10.4",
86
- "vite-plugin-dts": "^3.9.1",
82
+ "typescript": "^5.4.3",
83
+ "vite": "^5.2.2",
84
+ "vite-plugin-commonjs": "^0.10.1",
85
+ "vite-plugin-dts": "^3.7.3",
87
86
  "web-component-analyzer": "^2.0.0"
88
87
  }
89
88
  }
@@ -19,8 +19,7 @@ const _PlayerEmbed = ({
19
19
  env,
20
20
  apiKey,
21
21
  controls,
22
- aspectRatio,
23
- senderId
22
+ aspectRatio
24
23
  }: PlayerEmbedArgs) => {
25
24
  return html`
26
25
  <div style="height: 100vh">
@@ -34,7 +33,6 @@ const _PlayerEmbed = ({
34
33
  ?autoplay=${autoplay}
35
34
  preload=${ifDefined(preload)}
36
35
  aspectRatio=${ifDefined(aspectRatio)}
37
- senderId=${ifDefined(senderId)}
38
36
  @error=${console.log}
39
37
  ></vouch-embed-player>
40
38
  </div>
@@ -15,7 +15,6 @@ type TrackingPayload = {
15
15
  answerId?: string;
16
16
  streamStart?: number;
17
17
  streamEnd?: number;
18
- senderId?: string;
19
18
  };
20
19
 
21
20
  type BatchEvent = {
@@ -60,7 +59,6 @@ class TrackingController implements ReactiveController {
60
59
  event,
61
60
  payload: {
62
61
  ...payload,
63
- senderId: this.host.senderId,
64
62
  vouchId,
65
63
  time: new Date().toISOString()
66
64
  }
@@ -129,7 +127,9 @@ class TrackingController implements ReactiveController {
129
127
  private _handlePlay = () => {
130
128
  // Only send the video played event once per session
131
129
  if (!this._hasPlayed) {
132
- this._createTrackingEvent('VIDEO_PLAYED', { streamStart: this.host.currentTime });
130
+ this._createTrackingEvent('VIDEO_PLAYED', {
131
+ streamStart: this.host.currentTime
132
+ });
133
133
  this._hasPlayed = true;
134
134
  }
135
135
  };
@@ -25,7 +25,6 @@ type PlayerEmbedProps = Pick<MediaPlayerProps, 'aspectRatio' | 'language' | 'pre
25
25
  templateId?: string;
26
26
  // Index of the questions to include starting from 1
27
27
  questions?: number[];
28
- senderId?: string;
29
28
  };
30
29
 
31
30
  @customElement('vouch-embed-player')
@@ -53,7 +52,6 @@ class PlayerEmbed extends LitElement {
53
52
  @property({ type: Boolean }) autoplay: PlayerEmbedProps['autoplay'] = false;
54
53
  @property({ type: Number }) aspectRatio: PlayerEmbedProps['aspectRatio'] = 0;
55
54
  @property({ type: String }) language?: MediaPlayerProps['language'];
56
- @property({ type: String }) senderId?: PlayerEmbedProps['senderId'];
57
55
 
58
56
  private eventController = new EventForwardController(this, [
59
57
  'durationchange',
@@ -80,7 +78,6 @@ class PlayerEmbed extends LitElement {
80
78
  'video:play',
81
79
  'video:playing',
82
80
  'video:pause',
83
- 'video:waiting',
84
81
  'video:stalled',
85
82
  'video:timeupdate',
86
83
  'video:ended',