@vtx/player 0.0.7 → 0.0.10
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/index.d.ts +221 -0
- package/dist/index.es.js +533 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +533 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/types/api/fetch.d.ts +12 -0
- package/dist/types/api/index.d.ts +15 -0
- package/{src/api/types.ts → dist/types/api/types.d.ts} +5 -29
- package/dist/types/components/bill-player/index.d.ts +21 -0
- package/dist/types/components/controls/index.d.ts +52 -0
- package/dist/types/components/history-control/index.d.ts +39 -0
- package/dist/types/components/history-player/index.d.ts +31 -0
- package/dist/types/components/live-channel-player/index.d.ts +16 -0
- package/dist/types/components/live-control/index.d.ts +35 -0
- package/dist/types/components/live-player/index.d.ts +22 -0
- package/dist/types/components/player/index.d.ts +84 -0
- package/dist/types/context/index.d.ts +8 -0
- package/dist/types/hooks/useSettings.d.ts +9 -0
- package/dist/types/icons/index.d.ts +54 -0
- package/{src/main.ts → dist/types/main.d.ts} +0 -1
- package/dist/types/utils/index.d.ts +67 -0
- package/package.json +2 -2
- package/.eslintignore +0 -11
- package/.eslintrc.js +0 -31
- package/.prettierignore +0 -10
- package/.prettierrc.js +0 -22
- package/.storybook/main.js +0 -58
- package/.storybook/manager.js +0 -7
- package/.storybook/preview-head.html +0 -5
- package/.storybook/preview.js +0 -9
- package/.storybook/proxy.js +0 -6
- package/.storybook/theme.js +0 -8
- package/.stylelintrc.json +0 -13
- package/.vscode/extensions.json +0 -10
- package/.vscode/settings.json +0 -16
- package/commitlint.config.js +0 -10
- package/public/h5player.min.js +0 -311
- package/public/playctrl1/AudioRenderer.js +0 -225
- package/public/playctrl1/DecodeWorker.js +0 -711
- package/public/playctrl1/Decoder.js +0 -1
- package/public/playctrl1/SuperRender_10.js +0 -396
- package/public/playctrl2/Decoder.js +0 -21
- package/public/playctrl2/Decoder.wasm +0 -0
- package/public/playctrl2/Decoder.worker.js +0 -1
- package/public/playctrl3/Decoder.js +0 -21
- package/public/playctrl3/Decoder.wasm +0 -0
- package/public/playctrl3/Decoder.worker.js +0 -1
- package/rollup.config.js +0 -52
- package/src/api/fetch.ts +0 -55
- package/src/api/index.ts +0 -43
- package/src/components/bill-player/index.less +0 -58
- package/src/components/bill-player/index.stories.mdx +0 -24
- package/src/components/bill-player/index.stories.tsx +0 -13
- package/src/components/bill-player/index.tsx +0 -267
- package/src/components/controls/images/arrow.png +0 -0
- package/src/components/controls/images/error.png +0 -0
- package/src/components/controls/index.less +0 -182
- package/src/components/controls/index.tsx +0 -312
- package/src/components/history-control/images/collapse.png +0 -0
- package/src/components/history-control/index.less +0 -211
- package/src/components/history-control/index.stories.mdx +0 -62
- package/src/components/history-control/index.stories.tsx +0 -130
- package/src/components/history-control/index.tsx +0 -368
- package/src/components/history-player/index.less +0 -98
- package/src/components/history-player/index.stories.mdx +0 -38
- package/src/components/history-player/index.stories.tsx +0 -12
- package/src/components/history-player/index.tsx +0 -206
- package/src/components/live-channel-player/index.stories.mdx +0 -29
- package/src/components/live-channel-player/index.stories.tsx +0 -11
- package/src/components/live-channel-player/index.tsx +0 -75
- package/src/components/live-control/index.less +0 -65
- package/src/components/live-control/index.stories.mdx +0 -64
- package/src/components/live-control/index.stories.tsx +0 -61
- package/src/components/live-control/index.tsx +0 -274
- package/src/components/live-player/index.less +0 -71
- package/src/components/live-player/index.stories.mdx +0 -35
- package/src/components/live-player/index.stories.tsx +0 -12
- package/src/components/live-player/index.tsx +0 -118
- package/src/components/player/index.ts +0 -318
- package/src/context/index.ts +0 -13
- package/src/hooks/useSettings.tsx +0 -14
- package/src/icons/index.less +0 -27
- package/src/icons/index.tsx +0 -518
- package/src/stories/intro.stories.mdx +0 -16
- package/src/typings/@vtx/utils/index.d.ts +0 -27
- package/src/typings/h5player.d.ts +0 -133
- package/src/utils/index.ts +0 -215
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -24
package/.storybook/main.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
const { mergeConfig } = require('vite');
|
|
2
|
-
const { createStyleImportPlugin, AntdResolve } = require('vite-plugin-style-import');
|
|
3
|
-
// const { viteCommonjs, esbuildCommonjs } = require('@originjs/vite-plugin-commonjs');
|
|
4
|
-
const proxy = require('./proxy');
|
|
5
|
-
const path = require('path');
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
stories: [
|
|
9
|
-
'../src/stories/intro.stories.mdx', // 入口文件
|
|
10
|
-
'../src/**/*.stories.mdx',
|
|
11
|
-
'../src/**/*.stories.@(js|jsx|ts|tsx)',
|
|
12
|
-
],
|
|
13
|
-
addons: [
|
|
14
|
-
'@storybook/addon-links',
|
|
15
|
-
'@storybook/addon-essentials',
|
|
16
|
-
'@storybook/addon-interactions',
|
|
17
|
-
],
|
|
18
|
-
framework: '@storybook/react',
|
|
19
|
-
core: {
|
|
20
|
-
builder: '@storybook/builder-vite',
|
|
21
|
-
},
|
|
22
|
-
features: {
|
|
23
|
-
storyStoreV7: true,
|
|
24
|
-
},
|
|
25
|
-
staticDirs: ['../public'], // 静态资源路径
|
|
26
|
-
async viteFinal(config) {
|
|
27
|
-
return mergeConfig(config, {
|
|
28
|
-
server: {
|
|
29
|
-
// 配置代理
|
|
30
|
-
proxy,
|
|
31
|
-
},
|
|
32
|
-
// 当第三方库没有导出esm模式文件时,启用此插件
|
|
33
|
-
// optimizeDeps: {
|
|
34
|
-
// esbuildOptions: {
|
|
35
|
-
// plugins: [esbuildCommonjs(['package-name'])],
|
|
36
|
-
// },
|
|
37
|
-
// },
|
|
38
|
-
css: {
|
|
39
|
-
preprocessorOptions: {
|
|
40
|
-
less: {
|
|
41
|
-
javascriptEnabled: true,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
// antd组件库样式自动引入
|
|
46
|
-
plugins: [
|
|
47
|
-
// viteCommonjs(),
|
|
48
|
-
createStyleImportPlugin({
|
|
49
|
-
resolves: [AntdResolve()],
|
|
50
|
-
}),
|
|
51
|
-
],
|
|
52
|
-
resolve: {
|
|
53
|
-
// 设置别名
|
|
54
|
-
alias: { '@': path.resolve(__dirname, '../src') },
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
};
|
package/.storybook/manager.js
DELETED
package/.storybook/preview.js
DELETED
package/.storybook/proxy.js
DELETED
package/.storybook/theme.js
DELETED
package/.stylelintrc.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"stylelint-config-standard",
|
|
4
|
-
"stylelint-config-prettier",
|
|
5
|
-
"stylelint-config-recommended",
|
|
6
|
-
"stylelint-config-recess-order"
|
|
7
|
-
],
|
|
8
|
-
"plugins": ["stylelint-order"],
|
|
9
|
-
"rules": {
|
|
10
|
-
"selector-class-pattern": null
|
|
11
|
-
},
|
|
12
|
-
"ignoreFiles": ["node_modules/**", "dist/**/*", "storybook-static/**"]
|
|
13
|
-
}
|
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"css.validate": false,
|
|
3
|
-
"less.validate": false,
|
|
4
|
-
"scss.validate": false,
|
|
5
|
-
"editor.codeActionsOnSave": {
|
|
6
|
-
// 自动修复stylelint错误
|
|
7
|
-
"source.fixAll.stylelint": true
|
|
8
|
-
},
|
|
9
|
-
"cSpell.words": [
|
|
10
|
-
"ahooks",
|
|
11
|
-
"commitlint",
|
|
12
|
-
"esbuild",
|
|
13
|
-
"vite",
|
|
14
|
-
"YYYYMMDDTH"
|
|
15
|
-
]
|
|
16
|
-
}
|