@instructure/studio-player 0.1.4 → 0.1.8

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/types.d.ts CHANGED
@@ -5,3 +5,15 @@ export type CaptionMetaData = {
5
5
  language: string;
6
6
  type: 'vtt' | 'srt';
7
7
  };
8
+ export type Comment = {
9
+ id: string;
10
+ text: string;
11
+ timestamp: number;
12
+ user: {
13
+ id: string;
14
+ name: string;
15
+ avatar?: string;
16
+ };
17
+ onClick?: () => void;
18
+ };
19
+ export type StudioPlayerLanguage = 'en' | 'kl';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/studio-player",
3
- "version": "0.1.4",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "description": "Next generation media player for Instructure",
6
6
  "module": "./dist/studio-player.es.js",
@@ -15,31 +15,20 @@
15
15
  "types": "./dist/index.d.ts"
16
16
  }
17
17
  },
18
- "scripts": {
19
- "build": "vite build",
20
- "build-storybook": "storybook build",
21
- "check:types": "tsc --noEmit",
22
- "lint": "pnpm check:types && eslint",
23
- "storybook": "storybook dev -p 6006",
24
- "test": "vitest",
25
- "test:ci": "vitest --reporter=basic --disable-console-intercept --no-watch",
26
- "stylelint": "stylelint 'src/**/*.css'",
27
- "stylelint:fix": "stylelint 'src/**/*.css' --fix",
28
- "prepare": "husky"
29
- },
30
18
  "lint-staged": {
31
19
  "*.css": "pnpm stylelint"
32
20
  },
33
21
  "license": "MIT",
34
22
  "devDependencies": {
35
23
  "@eslint/js": "^9.10.0",
36
- "@storybook/addon-actions": "^8.3.0",
37
- "@storybook/addon-essentials": "^8.3.0",
38
- "@storybook/addon-interactions": "^8.3.0",
39
- "@storybook/addon-links": "^8.3.0",
40
- "@storybook/blocks": "^8.3.0",
41
- "@storybook/react": "^8.3.0",
42
- "@storybook/react-vite": "^8.3.0",
24
+ "@storybook/addon-actions": "^8.4.2",
25
+ "@storybook/addon-essentials": "^8.4.2",
26
+ "@storybook/addon-interactions": "^8.4.2",
27
+ "@storybook/addon-links": "^8.4.2",
28
+ "@storybook/blocks": "^8.4.2",
29
+ "@storybook/react": "^8.4.2",
30
+ "@storybook/react-vite": "^8.4.2",
31
+ "@storybook/test": "^8.4.2",
43
32
  "@svgr/core": "^8.1.0",
44
33
  "@svgr/plugin-jsx": "^8.1.0",
45
34
  "@testing-library/dom": "^10.4.0",
@@ -58,7 +47,7 @@
58
47
  "husky": "^9.1.6",
59
48
  "lint-staged": "^15.2.10",
60
49
  "postcss-nesting": "^13.0.0",
61
- "storybook": "^8.3.0",
50
+ "storybook": "^8.4.2",
62
51
  "stylelint": "^16.9.0",
63
52
  "stylelint-config-css-modules": "^4.4.0",
64
53
  "stylelint-config-standard": "^36.0.1",
@@ -74,7 +63,21 @@
74
63
  "dependencies": {
75
64
  "@floating-ui/react": "^0.26.24",
76
65
  "@vidstack/react": "^1.12.11",
66
+ "i18next": "^23.16.5",
67
+ "i18next-resources-to-backend": "^1.2.1",
77
68
  "react": "^18.3.1",
78
- "react-dom": "^18.3.1"
69
+ "react-dom": "^18.3.1",
70
+ "react-i18next": "^15.1.1"
71
+ },
72
+ "scripts": {
73
+ "build": "vite build",
74
+ "build-storybook": "storybook build",
75
+ "check:types": "tsc --noEmit",
76
+ "lint": "pnpm check:types && eslint",
77
+ "storybook": "storybook dev -p 6006",
78
+ "test": "vitest",
79
+ "test:ci": "vitest --reporter=basic --disable-console-intercept --no-watch",
80
+ "stylelint": "stylelint 'src/**/*.css'",
81
+ "stylelint:fix": "stylelint 'src/**/*.css' --fix"
79
82
  }
80
- }
83
+ }