@vtx/player 0.0.7 → 0.0.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.
Files changed (89) hide show
  1. package/dist/index.d.ts +221 -0
  2. package/dist/index.es.js +533 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/index.umd.js +533 -0
  5. package/dist/index.umd.js.map +1 -0
  6. package/dist/types/api/fetch.d.ts +12 -0
  7. package/dist/types/api/index.d.ts +15 -0
  8. package/{src/api/types.ts → dist/types/api/types.d.ts} +5 -29
  9. package/dist/types/components/bill-player/index.d.ts +21 -0
  10. package/dist/types/components/controls/index.d.ts +52 -0
  11. package/dist/types/components/history-control/index.d.ts +39 -0
  12. package/dist/types/components/history-player/index.d.ts +31 -0
  13. package/dist/types/components/live-channel-player/index.d.ts +16 -0
  14. package/dist/types/components/live-control/index.d.ts +35 -0
  15. package/dist/types/components/live-player/index.d.ts +22 -0
  16. package/dist/types/components/player/index.d.ts +84 -0
  17. package/dist/types/context/index.d.ts +8 -0
  18. package/dist/types/hooks/useSettings.d.ts +9 -0
  19. package/dist/types/icons/index.d.ts +54 -0
  20. package/{src/main.ts → dist/types/main.d.ts} +0 -1
  21. package/dist/types/utils/index.d.ts +67 -0
  22. package/package.json +2 -2
  23. package/.eslintignore +0 -11
  24. package/.eslintrc.js +0 -31
  25. package/.prettierignore +0 -10
  26. package/.prettierrc.js +0 -22
  27. package/.storybook/main.js +0 -58
  28. package/.storybook/manager.js +0 -7
  29. package/.storybook/preview-head.html +0 -5
  30. package/.storybook/preview.js +0 -9
  31. package/.storybook/proxy.js +0 -6
  32. package/.storybook/theme.js +0 -8
  33. package/.stylelintrc.json +0 -13
  34. package/.vscode/extensions.json +0 -10
  35. package/.vscode/settings.json +0 -16
  36. package/commitlint.config.js +0 -10
  37. package/public/h5player.min.js +0 -311
  38. package/public/playctrl1/AudioRenderer.js +0 -225
  39. package/public/playctrl1/DecodeWorker.js +0 -711
  40. package/public/playctrl1/Decoder.js +0 -1
  41. package/public/playctrl1/SuperRender_10.js +0 -396
  42. package/public/playctrl2/Decoder.js +0 -21
  43. package/public/playctrl2/Decoder.wasm +0 -0
  44. package/public/playctrl2/Decoder.worker.js +0 -1
  45. package/public/playctrl3/Decoder.js +0 -21
  46. package/public/playctrl3/Decoder.wasm +0 -0
  47. package/public/playctrl3/Decoder.worker.js +0 -1
  48. package/rollup.config.js +0 -52
  49. package/src/api/fetch.ts +0 -55
  50. package/src/api/index.ts +0 -43
  51. package/src/components/bill-player/index.less +0 -58
  52. package/src/components/bill-player/index.stories.mdx +0 -24
  53. package/src/components/bill-player/index.stories.tsx +0 -13
  54. package/src/components/bill-player/index.tsx +0 -267
  55. package/src/components/controls/images/arrow.png +0 -0
  56. package/src/components/controls/images/error.png +0 -0
  57. package/src/components/controls/index.less +0 -182
  58. package/src/components/controls/index.tsx +0 -312
  59. package/src/components/history-control/images/collapse.png +0 -0
  60. package/src/components/history-control/index.less +0 -211
  61. package/src/components/history-control/index.stories.mdx +0 -62
  62. package/src/components/history-control/index.stories.tsx +0 -130
  63. package/src/components/history-control/index.tsx +0 -368
  64. package/src/components/history-player/index.less +0 -98
  65. package/src/components/history-player/index.stories.mdx +0 -38
  66. package/src/components/history-player/index.stories.tsx +0 -12
  67. package/src/components/history-player/index.tsx +0 -206
  68. package/src/components/live-channel-player/index.stories.mdx +0 -29
  69. package/src/components/live-channel-player/index.stories.tsx +0 -11
  70. package/src/components/live-channel-player/index.tsx +0 -75
  71. package/src/components/live-control/index.less +0 -65
  72. package/src/components/live-control/index.stories.mdx +0 -64
  73. package/src/components/live-control/index.stories.tsx +0 -61
  74. package/src/components/live-control/index.tsx +0 -274
  75. package/src/components/live-player/index.less +0 -71
  76. package/src/components/live-player/index.stories.mdx +0 -35
  77. package/src/components/live-player/index.stories.tsx +0 -12
  78. package/src/components/live-player/index.tsx +0 -118
  79. package/src/components/player/index.ts +0 -318
  80. package/src/context/index.ts +0 -13
  81. package/src/hooks/useSettings.tsx +0 -14
  82. package/src/icons/index.less +0 -27
  83. package/src/icons/index.tsx +0 -518
  84. package/src/stories/intro.stories.mdx +0 -16
  85. package/src/typings/@vtx/utils/index.d.ts +0 -27
  86. package/src/typings/h5player.d.ts +0 -133
  87. package/src/utils/index.ts +0 -215
  88. package/src/vite-env.d.ts +0 -1
  89. package/tsconfig.json +0 -24
@@ -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
- };
@@ -1,7 +0,0 @@
1
- import { addons } from '@storybook/addons';
2
-
3
- import theme from './theme';
4
-
5
- addons.setConfig({
6
- theme,
7
- });
@@ -1,5 +0,0 @@
1
- <script>
2
- window.global = window;
3
- </script>
4
- <script src="./h5player.min.js"></script>
5
- <link rel="stylesheet" href="../node_modules/antd/dist/antd.css" />
@@ -1,9 +0,0 @@
1
- export const parameters = {
2
- actions: { argTypesRegex: "^on[A-Z].*" },
3
- controls: {
4
- matchers: {
5
- color: /(background|color)$/i,
6
- date: /Date$/,
7
- },
8
- },
9
- }
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- '/cloud/': {
3
- target: 'https://kanbandev.cloudhw.cn:8446/',
4
- changeOrigin: true,
5
- },
6
- };
@@ -1,8 +0,0 @@
1
- import { create } from '@storybook/theming';
2
-
3
- export default create({
4
- base: 'light',
5
- brandTitle: '@vtx/player', // 标题
6
- brandUrl: 'https://git.cloudhw.cn:3443/comopnent/url', // 链接地址
7
- brandTarget: '_self',
8
- });
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
- }
@@ -1,10 +0,0 @@
1
- {
2
- "recommendations": [
3
- // eslint插件
4
- "dbaeumer.vscode-eslint",
5
- // prettier插件
6
- "esbenp.prettier-vscode",
7
- // stylelint插件
8
- "stylelint.vscode-stylelint"
9
- ]
10
- }
@@ -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
- }
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- extends: ['@commitlint/config-conventional'],
3
- rules: {
4
- 'type-enum': [
5
- 2,
6
- 'always',
7
- ['build', 'ci', 'docs', 'feat', 'fix', 'perf', 'chore', 'refactor', 'style', 'test'],
8
- ],
9
- },
10
- };