@kkcompany/player 2.9.20
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/CHANGELOG.md +1799 -0
- package/README.md +995 -0
- package/dist/core.mjs +8288 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +29038 -0
- package/dist/index.mjs +16650 -0
- package/dist/modules.d.ts +89 -0
- package/dist/modules.mjs +9095 -0
- package/dist/plugins.d.ts +5 -0
- package/dist/plugins.mjs +8062 -0
- package/dist/react.d.ts +178 -0
- package/dist/react.mjs +19176 -0
- package/package.json +393 -0
package/package.json
ADDED
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kkcompany/player",
|
|
3
|
+
"version": "2.9.20",
|
|
4
|
+
"module": "dist/index.mjs",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"require": "./dist/index.js",
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"module": "./dist/index.mjs"
|
|
17
|
+
},
|
|
18
|
+
"./modules": {
|
|
19
|
+
"types": "./dist/modules.d.ts",
|
|
20
|
+
"import": "./dist/modules.mjs",
|
|
21
|
+
"module": "./dist/modules.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./core": {
|
|
24
|
+
"import": "./dist/core.mjs",
|
|
25
|
+
"module": "./dist/core.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./plugins": {
|
|
28
|
+
"types": "./dist/plugins.d.ts",
|
|
29
|
+
"import": "./dist/plugins.mjs",
|
|
30
|
+
"module": "./dist/plugins.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./react": {
|
|
33
|
+
"types": "./dist/react.d.ts",
|
|
34
|
+
"import": "./dist/react.mjs",
|
|
35
|
+
"module": "./dist/react.mjs"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://gitlab.kkinternal.com/playback/web-playcraft"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"develop": "next",
|
|
44
|
+
"start": "next start",
|
|
45
|
+
"test": "jest --coverage",
|
|
46
|
+
"watch:test": "jest --watch",
|
|
47
|
+
"build": "rollup -c && cp types/* dist/",
|
|
48
|
+
"build-sample": "rollup -c && next build && next export",
|
|
49
|
+
"build:clean": "rm -rf dist/ sdk.esm.js sdk.js react.js plugins.js modules.js core.js npm/*d.ts npm/*.js",
|
|
50
|
+
"release": "standard-version -a",
|
|
51
|
+
"now-build": "mv next-build .next || echo 'Not a next build, skip moving'",
|
|
52
|
+
"install:husky": "husky install",
|
|
53
|
+
"docs": "typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-missing-exports --out api-docs src/sdk/index.tsx && sh organize-docs.sh && mkdir -p upload && concat-md --file-name-as-title --hide-anchor-links api-docs > upload/api-refs.md"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@babel/core": "^7.16.0",
|
|
57
|
+
"@babel/eslint-parser": "^7.16.3",
|
|
58
|
+
"@babel/eslint-plugin": "^7.14.5",
|
|
59
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
60
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
61
|
+
"@babel/plugin-transform-runtime": "^7.16.0",
|
|
62
|
+
"@babel/preset-env": "^7.16.0",
|
|
63
|
+
"@babel/preset-react": "^7.16.0",
|
|
64
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
65
|
+
"@babel/register": "^7.16.0",
|
|
66
|
+
"@babel/runtime": "^7.16.3",
|
|
67
|
+
"@commitlint/cli": "^14.1.0",
|
|
68
|
+
"@commitlint/config-conventional": "^14.1.0",
|
|
69
|
+
"@emotion/babel-plugin": "^11.9.5",
|
|
70
|
+
"@emotion/eslint-plugin": "^11.7.0",
|
|
71
|
+
"@material-ui/core": "^4.12.3",
|
|
72
|
+
"@rollup/plugin-babel": "^5.2.2",
|
|
73
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
74
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
75
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
76
|
+
"@rollup/plugin-replace": "^3.0.0",
|
|
77
|
+
"@testing-library/react": "^12.1.2",
|
|
78
|
+
"@testing-library/user-event": "^13.5.0",
|
|
79
|
+
"@types/node": "^20.4.9",
|
|
80
|
+
"@types/react": "17.0.2",
|
|
81
|
+
"@types/react-dom": "17.0.2",
|
|
82
|
+
"amplitude-js": "^5.8.0",
|
|
83
|
+
"babel-jest": "^27.3.1",
|
|
84
|
+
"babel-loader": "^8.2.3",
|
|
85
|
+
"babel-plugin-inline-import": "^3.0.0",
|
|
86
|
+
"concat-md": "^0.5.1",
|
|
87
|
+
"core-js": "^3.26.0",
|
|
88
|
+
"core-js-pure": "^3.26.0",
|
|
89
|
+
"eslint": "^8.2.0",
|
|
90
|
+
"eslint-config-airbnb": "^19.0.0",
|
|
91
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
92
|
+
"eslint-config-prettier": "^8.3.0",
|
|
93
|
+
"eslint-import-resolver-webpack": "^0.13.2",
|
|
94
|
+
"eslint-plugin-compat": "^3.13.0",
|
|
95
|
+
"eslint-plugin-import": "^2.25.3",
|
|
96
|
+
"eslint-plugin-jest": "^25.2.4",
|
|
97
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
98
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
99
|
+
"eslint-plugin-react": "^7.27.0",
|
|
100
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
101
|
+
"husky": "^5.1.3",
|
|
102
|
+
"jest": "^27.3.1",
|
|
103
|
+
"jest-junit": "^14.0.1",
|
|
104
|
+
"lint-staged": ">=10",
|
|
105
|
+
"msw": "^0.35.0",
|
|
106
|
+
"next": "12.0.4",
|
|
107
|
+
"node-fetch": "^2.6.6",
|
|
108
|
+
"prettier": "^2.4.1",
|
|
109
|
+
"prop-types": "^15.7.2",
|
|
110
|
+
"react": "17.0.2",
|
|
111
|
+
"react-cool-form": "^0.4.1",
|
|
112
|
+
"react-dom": "17.0.2",
|
|
113
|
+
"rollup": "^2.60.0",
|
|
114
|
+
"rollup-plugin-includepaths": "^0.2.4",
|
|
115
|
+
"standard-version": "^9.3.2",
|
|
116
|
+
"typedoc": "^0.25.1",
|
|
117
|
+
"typedoc-plugin-markdown": "^3.16.0",
|
|
118
|
+
"typedoc-plugin-missing-exports": "^2.1.0",
|
|
119
|
+
"typescript": "^5.1.6",
|
|
120
|
+
"xmldom": "^0.6.0"
|
|
121
|
+
},
|
|
122
|
+
"dependencies": {
|
|
123
|
+
"@emotion/css": "^11.9.0",
|
|
124
|
+
"@emotion/react": "^11.9.3",
|
|
125
|
+
"@juggle/resize-observer": "^3.3.1",
|
|
126
|
+
"axios": "<1",
|
|
127
|
+
"dlv": "^1.1.3",
|
|
128
|
+
"mitt": "^3.0.0",
|
|
129
|
+
"react-cool-dimensions": "^2.0.7",
|
|
130
|
+
"react-cool-onclickoutside": "1.7.0",
|
|
131
|
+
"shaka-player": "^4.2.2",
|
|
132
|
+
"ua-parser-js": "^1.0.37"
|
|
133
|
+
},
|
|
134
|
+
"peerDependencies": {
|
|
135
|
+
"@babel/runtime": "^7.0.0",
|
|
136
|
+
"bitmovin-player": "^8.83.0",
|
|
137
|
+
"react": ">=16.14.0",
|
|
138
|
+
"react-dom": ">=16.14.0"
|
|
139
|
+
},
|
|
140
|
+
"peerDependenciesMeta": {
|
|
141
|
+
"@babel/runtime": {
|
|
142
|
+
"optional": true
|
|
143
|
+
},
|
|
144
|
+
"react": {
|
|
145
|
+
"optional": true
|
|
146
|
+
},
|
|
147
|
+
"react-dom": {
|
|
148
|
+
"optional": true
|
|
149
|
+
},
|
|
150
|
+
"shaka-player": {
|
|
151
|
+
"optional": true
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"browserslist": [
|
|
155
|
+
"iOS >= 11",
|
|
156
|
+
"Safari >= 11",
|
|
157
|
+
"Chrome >= 91",
|
|
158
|
+
"last 5 firefox version",
|
|
159
|
+
"last 5 edge version"
|
|
160
|
+
],
|
|
161
|
+
"typedocOptions": {
|
|
162
|
+
"readme": "none",
|
|
163
|
+
"entryDocument": "kks-player.md",
|
|
164
|
+
"internalModule": "KKS",
|
|
165
|
+
"preserveAnchorCasing": true,
|
|
166
|
+
"excludeExternals": true,
|
|
167
|
+
"disableSources": true,
|
|
168
|
+
"hideBreadcrumbs": true,
|
|
169
|
+
"excludePrivate": true,
|
|
170
|
+
"excludeInternal": true
|
|
171
|
+
},
|
|
172
|
+
"babel": {
|
|
173
|
+
"presets": [
|
|
174
|
+
[
|
|
175
|
+
"@babel/react",
|
|
176
|
+
{
|
|
177
|
+
"runtime": "automatic"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"@babel/preset-typescript"
|
|
181
|
+
],
|
|
182
|
+
"plugins": [
|
|
183
|
+
"@emotion/babel-plugin",
|
|
184
|
+
"@babel/proposal-class-properties",
|
|
185
|
+
"@babel/proposal-nullish-coalescing-operator",
|
|
186
|
+
"@babel/proposal-optional-chaining"
|
|
187
|
+
],
|
|
188
|
+
"env": {
|
|
189
|
+
"test": {
|
|
190
|
+
"plugins": [
|
|
191
|
+
"@babel/transform-modules-commonjs"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"eslintConfig": {
|
|
197
|
+
"ignorePatterns": [
|
|
198
|
+
"/build/**",
|
|
199
|
+
"/dist/**",
|
|
200
|
+
"/demo/**/*.bundle.*",
|
|
201
|
+
"/plugins.js",
|
|
202
|
+
"/core.js",
|
|
203
|
+
"/react.js",
|
|
204
|
+
"/modules.js"
|
|
205
|
+
],
|
|
206
|
+
"parser": "@babel/eslint-parser",
|
|
207
|
+
"parserOptions": {
|
|
208
|
+
"sourceType": "module"
|
|
209
|
+
},
|
|
210
|
+
"plugins": [
|
|
211
|
+
"@babel",
|
|
212
|
+
"@emotion/eslint-plugin",
|
|
213
|
+
"prettier"
|
|
214
|
+
],
|
|
215
|
+
"extends": [
|
|
216
|
+
"airbnb",
|
|
217
|
+
"airbnb/hooks",
|
|
218
|
+
"plugin:compat/recommended",
|
|
219
|
+
"prettier"
|
|
220
|
+
],
|
|
221
|
+
"env": {
|
|
222
|
+
"browser": true,
|
|
223
|
+
"es6": true,
|
|
224
|
+
"node": true
|
|
225
|
+
},
|
|
226
|
+
"rules": {
|
|
227
|
+
"no-unused-expressions": "warn",
|
|
228
|
+
"no-nested-ternary": "warn",
|
|
229
|
+
"no-unsafe-optional-chaining": "warn",
|
|
230
|
+
"consistent-return": "warn",
|
|
231
|
+
"import/no-extraneous-dependencies": "warn",
|
|
232
|
+
"import/prefer-default-export": "warn",
|
|
233
|
+
"import/extensions": [
|
|
234
|
+
"error",
|
|
235
|
+
"ignorePackages",
|
|
236
|
+
{
|
|
237
|
+
"js": "never",
|
|
238
|
+
"jsx": "never",
|
|
239
|
+
"ts": "never",
|
|
240
|
+
"tsx": "never"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"jsx-a11y/click-events-have-key-events": "warn",
|
|
244
|
+
"jsx-a11y/no-noninteractive-element-to-interactive-role": [
|
|
245
|
+
"warn",
|
|
246
|
+
{
|
|
247
|
+
"ul": [
|
|
248
|
+
"listbox",
|
|
249
|
+
"menu",
|
|
250
|
+
"menubar",
|
|
251
|
+
"radiogroup",
|
|
252
|
+
"tablist",
|
|
253
|
+
"tree",
|
|
254
|
+
"treegrid"
|
|
255
|
+
],
|
|
256
|
+
"ol": [
|
|
257
|
+
"listbox",
|
|
258
|
+
"menu",
|
|
259
|
+
"menubar",
|
|
260
|
+
"radiogroup",
|
|
261
|
+
"tablist",
|
|
262
|
+
"tree",
|
|
263
|
+
"treegrid"
|
|
264
|
+
],
|
|
265
|
+
"li": [
|
|
266
|
+
"menuitem",
|
|
267
|
+
"menuitemradio"
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"react/prop-types": "off",
|
|
272
|
+
"react/no-array-index-key": "warn",
|
|
273
|
+
"react/forbid-prop-types": "warn",
|
|
274
|
+
"react/jsx-filename-extension": [
|
|
275
|
+
"error",
|
|
276
|
+
{
|
|
277
|
+
"extensions": [
|
|
278
|
+
".js",
|
|
279
|
+
".jsx"
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"react/function-component-definition": [
|
|
284
|
+
"warn",
|
|
285
|
+
{
|
|
286
|
+
"namedComponents": "arrow-function"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"react/no-unknown-property": [
|
|
290
|
+
"error",
|
|
291
|
+
{
|
|
292
|
+
"ignore": [
|
|
293
|
+
"css"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"react/react-in-jsx-scope": "off",
|
|
298
|
+
"react/jsx-uses-react": "off",
|
|
299
|
+
"react/jsx-props-no-spreading": "warn",
|
|
300
|
+
"react/require-default-props": "off",
|
|
301
|
+
"react-hooks/exhaustive-deps": "warn"
|
|
302
|
+
},
|
|
303
|
+
"settings": {
|
|
304
|
+
"polyfills": [
|
|
305
|
+
"Promise",
|
|
306
|
+
"fetch",
|
|
307
|
+
"URL"
|
|
308
|
+
],
|
|
309
|
+
"import/resolver": {
|
|
310
|
+
"webpack": {
|
|
311
|
+
"config": {
|
|
312
|
+
"resolve": {
|
|
313
|
+
"extensions": [
|
|
314
|
+
"",
|
|
315
|
+
".js",
|
|
316
|
+
".jsx",
|
|
317
|
+
".ts",
|
|
318
|
+
".tsx",
|
|
319
|
+
"..."
|
|
320
|
+
],
|
|
321
|
+
"modules": [
|
|
322
|
+
"node_modules",
|
|
323
|
+
"src"
|
|
324
|
+
],
|
|
325
|
+
"alias": {
|
|
326
|
+
"react": "node_modules/react",
|
|
327
|
+
"playcraft/react": "react.js",
|
|
328
|
+
"playcraft/modules": "modules.js",
|
|
329
|
+
"playcraft/plugins": "plugins/index.js",
|
|
330
|
+
"playcraft/core": "playerCore/index.js",
|
|
331
|
+
"playcraft/sdk": "sdk/index.jsx",
|
|
332
|
+
"playcraft": "index.js"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"react": {
|
|
339
|
+
"version": "detect"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"prettier": {
|
|
344
|
+
"semi": false,
|
|
345
|
+
"singleQuote": true,
|
|
346
|
+
"bracketSpacing": false,
|
|
347
|
+
"arrowParens": "avoid"
|
|
348
|
+
},
|
|
349
|
+
"lint-staged": {
|
|
350
|
+
"*.{js,jsx}": [
|
|
351
|
+
"eslint --cache --fix",
|
|
352
|
+
"prettier --write"
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
"commitlint": {
|
|
356
|
+
"extends": [
|
|
357
|
+
"@commitlint/config-conventional"
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
"jest": {
|
|
361
|
+
"verbose": true,
|
|
362
|
+
"modulePaths": [
|
|
363
|
+
"src/"
|
|
364
|
+
],
|
|
365
|
+
"testMatch": [
|
|
366
|
+
"<rootDir>/test/**/*.js"
|
|
367
|
+
],
|
|
368
|
+
"testPathIgnorePatterns": [
|
|
369
|
+
"/node_modules/",
|
|
370
|
+
"/mocks/"
|
|
371
|
+
],
|
|
372
|
+
"watchPathIgnorePatterns": [
|
|
373
|
+
"<rootDir>/node_modules/",
|
|
374
|
+
"<rootDir>/sample/node_modules/"
|
|
375
|
+
],
|
|
376
|
+
"coveragePathIgnorePatterns": [
|
|
377
|
+
"<rootDir>/test/mocks",
|
|
378
|
+
"src/plugins/shaka"
|
|
379
|
+
],
|
|
380
|
+
"testEnvironment": "node",
|
|
381
|
+
"reporters": [
|
|
382
|
+
"default",
|
|
383
|
+
"jest-junit"
|
|
384
|
+
],
|
|
385
|
+
"coverageReporters": [
|
|
386
|
+
"json",
|
|
387
|
+
"lcov",
|
|
388
|
+
"text",
|
|
389
|
+
"clover",
|
|
390
|
+
"cobertura"
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
}
|