@vtx/player 1.7.12 → 1.7.14
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/README.md +2 -2
- package/lib/api/fetch.js +62 -91
- package/lib/api/fetch.js.map +1 -1
- package/lib/api/index.js +18 -63
- package/lib/api/index.js.map +1 -1
- package/lib/api/types.d.ts +6 -6
- package/lib/bd/PlayerManager.js +38 -68
- package/lib/bd/PlayerManager.js.map +1 -1
- package/lib/bill-player/index.d.ts +1 -1
- package/lib/bill-player/index.js +66 -121
- package/lib/bill-player/index.js.map +1 -1
- package/lib/bill-player/style/css.js +0 -9
- package/lib/bill-player/style/css.js.map +1 -1
- package/lib/bill-player/style/index.js +0 -9
- package/lib/bill-player/style/index.js.map +1 -1
- package/lib/bill-player/style/index.less +297 -297
- package/lib/components/set-tag-video/index.js +6 -34
- package/lib/components/set-tag-video/index.js.map +1 -1
- package/lib/components/set-tag-video/style/css.js.map +1 -1
- package/lib/components/set-tag-video/style/index.js.map +1 -1
- package/lib/components/set-tag-video/style/index.less +125 -125
- package/lib/components/split-screen/index.d.ts +1 -1
- package/lib/components/split-screen/index.js +3 -14
- package/lib/components/split-screen/index.js.map +1 -1
- package/lib/components/split-screen/style/css.js.map +1 -1
- package/lib/components/split-screen/style/index.js.map +1 -1
- package/lib/components/tag-video/index.js +10 -38
- package/lib/components/tag-video/index.js.map +1 -1
- package/lib/components/tag-video/style/css.js.map +1 -1
- package/lib/components/tag-video/style/index.js.map +1 -1
- package/lib/components/tag-video/style/index.less +69 -69
- package/lib/components/video-scale/index.d.ts +1 -1
- package/lib/components/video-scale/index.js +2 -9
- package/lib/components/video-scale/index.js.map +1 -1
- package/lib/components/video-scale/style/css.js.map +1 -1
- package/lib/components/video-scale/style/index.js.map +1 -1
- package/lib/context/index.js +0 -4
- package/lib/context/index.js.map +1 -1
- package/lib/controls/index.d.ts +11 -11
- package/lib/controls/index.js +46 -108
- package/lib/controls/index.js.map +1 -1
- package/lib/controls/style/css.js +0 -5
- package/lib/controls/style/css.js.map +1 -1
- package/lib/controls/style/index.js +0 -5
- package/lib/controls/style/index.js.map +1 -1
- package/lib/controls/style/index.less +188 -188
- package/lib/h264/PlayerManager.js +18 -27
- package/lib/h264/PlayerManager.js.map +1 -1
- package/lib/history-control/index.d.ts +2 -2
- package/lib/history-control/index.js +61 -121
- package/lib/history-control/index.js.map +1 -1
- package/lib/history-control/style/css.js +0 -6
- package/lib/history-control/style/css.js.map +1 -1
- package/lib/history-control/style/index.js +0 -6
- package/lib/history-control/style/index.js.map +1 -1
- package/lib/history-control/style/index.less +252 -252
- package/lib/history-control-v2/components/grid-item/index.js +38 -77
- package/lib/history-control-v2/components/grid-item/index.js.map +1 -1
- package/lib/history-control-v2/components/panel/index.js +44 -114
- package/lib/history-control-v2/components/panel/index.js.map +1 -1
- package/lib/history-control-v2/context.js +0 -2
- package/lib/history-control-v2/context.js.map +1 -1
- package/lib/history-control-v2/index.d.ts +4 -4
- package/lib/history-control-v2/index.js +97 -166
- package/lib/history-control-v2/index.js.map +1 -1
- package/lib/history-control-v2/style/css.js +0 -10
- package/lib/history-control-v2/style/css.js.map +1 -1
- package/lib/history-control-v2/style/index.js +0 -10
- package/lib/history-control-v2/style/index.js.map +1 -1
- package/lib/history-control-v2/style/index.less +437 -437
- package/lib/history-control-v2/utils.js +1 -21
- package/lib/history-control-v2/utils.js.map +1 -1
- package/lib/history-player/index.d.ts +1 -1
- package/lib/history-player/index.js +146 -205
- package/lib/history-player/index.js.map +1 -1
- package/lib/history-player/style/css.js +0 -3
- package/lib/history-player/style/css.js.map +1 -1
- package/lib/history-player/style/index.js +0 -3
- package/lib/history-player/style/index.js.map +1 -1
- package/lib/history-player/style/index.less +102 -102
- package/lib/hooks/useSettings.js +1 -6
- package/lib/hooks/useSettings.js.map +1 -1
- package/lib/icc/PlayerManager.js +26 -57
- package/lib/icc/PlayerManager.js.map +1 -1
- package/lib/icc/api.d.ts +0 -68
- package/lib/icc/api.js +2 -16
- package/lib/icc/api.js.map +1 -1
- package/lib/icons/index.d.ts +36 -36
- package/lib/icons/index.js +23 -171
- package/lib/icons/index.js.map +1 -1
- package/lib/icons/index.less +32 -32
- package/lib/index.js +0 -10
- package/lib/index.js.map +1 -1
- package/lib/live-channel-player/index.d.ts +1 -1
- package/lib/live-channel-player/index.js +32 -67
- package/lib/live-channel-player/index.js.map +1 -1
- package/lib/live-channel-player/style/css.js +0 -1
- package/lib/live-channel-player/style/css.js.map +1 -1
- package/lib/live-channel-player/style/index.js +0 -1
- package/lib/live-channel-player/style/index.js.map +1 -1
- package/lib/live-control/index.d.ts +2 -2
- package/lib/live-control/index.js +36 -86
- package/lib/live-control/index.js.map +1 -1
- package/lib/live-control/style/css.js +0 -4
- package/lib/live-control/style/css.js.map +1 -1
- package/lib/live-control/style/index.js +0 -4
- package/lib/live-control/style/index.js.map +1 -1
- package/lib/live-control/style/index.less +99 -99
- package/lib/live-control-v2/index.d.ts +3 -3
- package/lib/live-control-v2/index.js +109 -141
- package/lib/live-control-v2/index.js.map +1 -1
- package/lib/live-control-v2/style/css.js +0 -7
- package/lib/live-control-v2/style/css.js.map +1 -1
- package/lib/live-control-v2/style/index.js +0 -7
- package/lib/live-control-v2/style/index.js.map +1 -1
- package/lib/live-control-v2/style/index.less +192 -192
- package/lib/live-player/index.d.ts +2 -0
- package/lib/live-player/index.js +96 -136
- package/lib/live-player/index.js.map +1 -1
- package/lib/live-player/style/css.js +0 -2
- package/lib/live-player/style/css.js.map +1 -1
- package/lib/live-player/style/index.js +0 -2
- package/lib/live-player/style/index.js.map +1 -1
- package/lib/live-player/style/index.less +75 -75
- package/lib/player/index.d.ts +1 -1
- package/lib/player/index.js +79 -244
- package/lib/player/index.js.map +1 -1
- package/lib/rsl/PlayerManager.js +18 -64
- package/lib/rsl/PlayerManager.js.map +1 -1
- package/lib/typings/@vtx/utils/index.d.ts +28 -28
- package/lib/typings/h5player.d.ts +146 -146
- package/lib/typings/webrtcplayer.d.ts +56 -56
- package/lib/typings/wsplayer.d.ts +99 -99
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +12 -91
- package/lib/utils/index.js.map +1 -1
- package/lib/vite-env.d.ts +1 -1
- package/lib/vtxHls/PlayerManager.js +6 -20
- package/lib/vtxHls/PlayerManager.js.map +1 -1
- package/lib/vtxHls/WhepManager.js +9 -72
- package/lib/vtxHls/WhepManager.js.map +1 -1
- package/lib/webrtc/PlayerManager.js +28 -41
- package/lib/webrtc/PlayerManager.js.map +1 -1
- package/package.json +125 -125
|
@@ -4,44 +4,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
7
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
8
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
-
|
|
10
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
11
|
-
|
|
9
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
|
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
14
13
|
var SrsRtcPlayerConstructor = SrsRtcPlayerAsync;
|
|
15
14
|
/**
|
|
16
15
|
* WSPlayer是核心组件
|
|
17
16
|
* API 封装了接口
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
18
|
var WebrtcPlayerManager = /*#__PURE__*/function () {
|
|
21
19
|
function WebrtcPlayerManager(opt) {
|
|
22
20
|
_classCallCheck(this, WebrtcPlayerManager);
|
|
23
|
-
|
|
24
21
|
// 播放器所在的容器ID
|
|
25
|
-
this.el = opt.el;
|
|
26
|
-
|
|
27
|
-
this.realPlayer = null;
|
|
28
|
-
|
|
22
|
+
this.el = opt.el;
|
|
23
|
+
// 实时预览播放器
|
|
24
|
+
this.realPlayer = null;
|
|
25
|
+
// 录像回放播放器
|
|
29
26
|
this.recordPlayer = null;
|
|
30
27
|
this.player = null;
|
|
31
|
-
this.url = opt.url;
|
|
32
|
-
|
|
33
|
-
this.type = opt.type;
|
|
34
|
-
|
|
35
|
-
this.playNum = 1;
|
|
36
|
-
|
|
37
|
-
this.playIndex = 0;
|
|
38
|
-
|
|
39
|
-
this.currentChannelId = '';
|
|
40
|
-
|
|
28
|
+
this.url = opt.url;
|
|
29
|
+
// 实时预览还是录像回放播放器
|
|
30
|
+
this.type = opt.type;
|
|
31
|
+
// 窗口的数量
|
|
32
|
+
this.playNum = 1;
|
|
33
|
+
// 当前选中的窗口的索引
|
|
34
|
+
this.playIndex = 0;
|
|
35
|
+
// 当前选中窗口正在播放视频的通道
|
|
36
|
+
this.currentChannelId = '';
|
|
37
|
+
// 索引对应窗口,保存当日录像信息
|
|
41
38
|
this.recordList = [];
|
|
42
39
|
this.init(opt);
|
|
43
40
|
}
|
|
44
|
-
|
|
45
41
|
_createClass(WebrtcPlayerManager, [{
|
|
46
42
|
key: "init",
|
|
47
43
|
value: function init(opt) {
|
|
@@ -50,19 +46,16 @@ var WebrtcPlayerManager = /*#__PURE__*/function () {
|
|
|
50
46
|
/**
|
|
51
47
|
* 初始化实时预览播放器
|
|
52
48
|
*/
|
|
53
|
-
|
|
54
49
|
}, {
|
|
55
50
|
key: "initPlayer",
|
|
56
51
|
value: function initPlayer(opt) {
|
|
57
52
|
this.playNum = opt.num;
|
|
58
53
|
this.realPlayer = new SrsRtcPlayerConstructor();
|
|
59
|
-
|
|
60
54
|
if (this.type) {
|
|
61
55
|
$("#".concat(this.el)).prop('srcObject', this.realPlayer.stream);
|
|
62
56
|
} else {
|
|
63
57
|
$("#".concat(this.el)).prop('src', this.realPlayer.stream);
|
|
64
58
|
}
|
|
65
|
-
|
|
66
59
|
this.realPlayer.play(this.url)["catch"](function (reason) {
|
|
67
60
|
this.realPlayer.close();
|
|
68
61
|
console.error(reason);
|
|
@@ -73,7 +66,6 @@ var WebrtcPlayerManager = /*#__PURE__*/function () {
|
|
|
73
66
|
* 录像暂停
|
|
74
67
|
* 只有正在播放的录像调用才有效
|
|
75
68
|
*/
|
|
76
|
-
|
|
77
69
|
}, {
|
|
78
70
|
key: "pause",
|
|
79
71
|
value: function pause() {
|
|
@@ -83,7 +75,6 @@ var WebrtcPlayerManager = /*#__PURE__*/function () {
|
|
|
83
75
|
* 录像暂停后播放
|
|
84
76
|
* 只有暂停后的录像调用才有效
|
|
85
77
|
*/
|
|
86
|
-
|
|
87
78
|
}, {
|
|
88
79
|
key: "play",
|
|
89
80
|
value: function play() {
|
|
@@ -93,7 +84,6 @@ var WebrtcPlayerManager = /*#__PURE__*/function () {
|
|
|
93
84
|
* 倍速播放
|
|
94
85
|
* @param {number} speed 速率 0.125 0.25 0.5 1 2 4 8 共7种速率
|
|
95
86
|
*/
|
|
96
|
-
|
|
97
87
|
}, {
|
|
98
88
|
key: "playSpeed",
|
|
99
89
|
value: function playSpeed(speed) {
|
|
@@ -103,7 +93,6 @@ var WebrtcPlayerManager = /*#__PURE__*/function () {
|
|
|
103
93
|
* 关闭播放器
|
|
104
94
|
* @param {number} index 可选,关闭指定索引的窗口的播放器,不传则表示关闭所有播放器
|
|
105
95
|
*/
|
|
106
|
-
|
|
107
96
|
}, {
|
|
108
97
|
key: "close",
|
|
109
98
|
value: function close() {
|
|
@@ -112,52 +101,50 @@ var WebrtcPlayerManager = /*#__PURE__*/function () {
|
|
|
112
101
|
/**
|
|
113
102
|
* 设置全屏
|
|
114
103
|
*/
|
|
115
|
-
|
|
116
104
|
}, {
|
|
117
105
|
key: "setFullScreen",
|
|
118
|
-
value: function setFullScreen() {
|
|
106
|
+
value: function setFullScreen() {
|
|
107
|
+
// this.player.setFullScreen();
|
|
119
108
|
}
|
|
120
109
|
/**
|
|
121
110
|
* 设置窗口自适应还是拉伸
|
|
122
111
|
* @param {string} playerAdapter selfAdaption 自适应 | stretching 拉伸
|
|
123
112
|
*/
|
|
124
|
-
|
|
125
113
|
}, {
|
|
126
114
|
key: "setPlayerAdapter",
|
|
127
|
-
value: function setPlayerAdapter(playerAdapter) {
|
|
115
|
+
value: function setPlayerAdapter(playerAdapter) {
|
|
116
|
+
// this.player.setPlayerAdapter(playerAdapter);
|
|
128
117
|
}
|
|
129
118
|
/**
|
|
130
119
|
* 控制视频播放器显示的路数: 1 4 9 16 25,不会超过最大显示路数
|
|
131
120
|
* @param {number} number
|
|
132
121
|
*/
|
|
133
|
-
|
|
134
122
|
}, {
|
|
135
123
|
key: "setPlayerNum",
|
|
136
|
-
value: function setPlayerNum(number) {
|
|
124
|
+
value: function setPlayerNum(number) {
|
|
125
|
+
// this.player.setPlayerNum(number);
|
|
137
126
|
}
|
|
138
127
|
/**
|
|
139
128
|
* 设置选中的播放器的索引
|
|
140
129
|
* @param {number} index
|
|
141
130
|
*/
|
|
142
|
-
|
|
143
131
|
}, {
|
|
144
132
|
key: "setSelectIndex",
|
|
145
|
-
value: function setSelectIndex(index) {
|
|
133
|
+
value: function setSelectIndex(index) {
|
|
134
|
+
// this.player.setSelectIndex(index);
|
|
146
135
|
}
|
|
147
136
|
/**
|
|
148
137
|
* 录像跳转播放
|
|
149
138
|
* @param {string} time HH:mm:ss格式
|
|
150
139
|
*/
|
|
151
|
-
|
|
152
140
|
}, {
|
|
153
141
|
key: "jumpPlayByTime",
|
|
154
|
-
value: function jumpPlayByTime(time) {
|
|
142
|
+
value: function jumpPlayByTime(time) {
|
|
143
|
+
// this.player.jumpPlayByTime(time);
|
|
155
144
|
}
|
|
156
145
|
}]);
|
|
157
|
-
|
|
158
146
|
return WebrtcPlayerManager;
|
|
159
147
|
}();
|
|
160
|
-
|
|
161
148
|
var _default = WebrtcPlayerManager;
|
|
162
149
|
exports["default"] = _default;
|
|
163
150
|
//# sourceMappingURL=PlayerManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerManager.js","names":["SrsRtcPlayerConstructor","SrsRtcPlayerAsync","WebrtcPlayerManager","opt","el","realPlayer","recordPlayer","player","url","type","playNum","playIndex","currentChannelId","recordList","init","initPlayer","num","$","prop","stream","play","reason","close","console","error","pause","speed","
|
|
1
|
+
{"version":3,"file":"PlayerManager.js","names":["SrsRtcPlayerConstructor","SrsRtcPlayerAsync","WebrtcPlayerManager","opt","_classCallCheck","el","realPlayer","recordPlayer","player","url","type","playNum","playIndex","currentChannelId","recordList","init","_createClass","key","value","initPlayer","num","$","concat","prop","stream","play","reason","close","console","error","pause","playSpeed","speed","setFullScreen","setPlayerAdapter","playerAdapter","setPlayerNum","number","setSelectIndex","index","jumpPlayByTime","time","_default","exports"],"sources":["webrtc/PlayerManager.js"],"sourcesContent":["let SrsRtcPlayerConstructor = SrsRtcPlayerAsync;\n/**\n * WSPlayer是核心组件\n * API 封装了接口\n */\nclass WebrtcPlayerManager {\n constructor(opt) {\n // 播放器所在的容器ID\n this.el = opt.el;\n // 实时预览播放器\n this.realPlayer = null;\n // 录像回放播放器\n this.recordPlayer = null;\n this.player = null;\n this.url = opt.url;\n // 实时预览还是录像回放播放器\n this.type = opt.type;\n // 窗口的数量\n this.playNum = 1;\n // 当前选中的窗口的索引\n this.playIndex = 0;\n // 当前选中窗口正在播放视频的通道\n this.currentChannelId = '';\n // 索引对应窗口,保存当日录像信息\n this.recordList = [];\n this.init(opt);\n }\n init(opt) {\n this.initPlayer(opt);\n }\n /**\n * 初始化实时预览播放器\n */\n initPlayer(opt) {\n this.playNum = opt.num;\n this.realPlayer = new SrsRtcPlayerConstructor();\n if (this.type) {\n $(`#${this.el}`).prop('srcObject', this.realPlayer.stream);\n }\n else {\n $(`#${this.el}`).prop('src', this.realPlayer.stream);\n }\n this.realPlayer.play(this.url).catch(function (reason) {\n this.realPlayer.close();\n console.error(reason);\n });\n this.player = this.realPlayer;\n }\n /**\n * 录像暂停\n * 只有正在播放的录像调用才有效\n */\n pause() {\n this.recordPlayer && this.recordPlayer.pause();\n }\n /**\n * 录像暂停后播放\n * 只有暂停后的录像调用才有效\n */\n play() {\n this.realPlayer && this.realPlayer.play(this.url);\n }\n /**\n * 倍速播放\n * @param {number} speed 速率 0.125 0.25 0.5 1 2 4 8 共7种速率\n */\n playSpeed(speed) {\n this.recordPlayer && this.recordPlayer.playSpeed(speed);\n }\n /**\n * 关闭播放器\n * @param {number} index 可选,关闭指定索引的窗口的播放器,不传则表示关闭所有播放器\n */\n close() {\n this.player && this.player.close();\n }\n /**\n * 设置全屏\n */\n setFullScreen() {\n // this.player.setFullScreen();\n }\n /**\n * 设置窗口自适应还是拉伸\n * @param {string} playerAdapter selfAdaption 自适应 | stretching 拉伸\n */\n setPlayerAdapter(playerAdapter) {\n // this.player.setPlayerAdapter(playerAdapter);\n }\n /**\n * 控制视频播放器显示的路数: 1 4 9 16 25,不会超过最大显示路数\n * @param {number} number\n */\n setPlayerNum(number) {\n // this.player.setPlayerNum(number);\n }\n /**\n * 设置选中的播放器的索引\n * @param {number} index\n */\n setSelectIndex(index) {\n // this.player.setSelectIndex(index);\n }\n /**\n * 录像跳转播放\n * @param {string} time HH:mm:ss格式\n */\n jumpPlayByTime(time) {\n // this.player.jumpPlayByTime(time);\n }\n}\nexport default WebrtcPlayerManager;\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vtx/player",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "视频业务组件",
|
|
6
|
-
"main": "./lib/index.js",
|
|
7
|
-
"module": "./lib/index.js",
|
|
8
|
-
"types": "./lib/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"lib"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"start": "start-storybook -p 6006",
|
|
14
|
-
"start:huanwei": "cross-env PREFIX=/huanwei umi dev",
|
|
15
|
-
"build": "npm run compile",
|
|
16
|
-
"compile": "gulp compile",
|
|
17
|
-
"build:old": "npm run clean && rollup --config",
|
|
18
|
-
"build-docs": "build-storybook",
|
|
19
|
-
"build:huanwei": "cross-env UMI_ENV=prod UMI_COLOR=default PREFIX=/huanwei umi build",
|
|
20
|
-
"lint:script": "eslint src --ext .ts,.tsx",
|
|
21
|
-
"lint:style": "stylelint src/**/*.less --custom-syntax postcss-less --fix",
|
|
22
|
-
"clean": "rimraf dist"
|
|
23
|
-
},
|
|
24
|
-
"husky": {
|
|
25
|
-
"hooks": {
|
|
26
|
-
"pre-commit": "lint-staged",
|
|
27
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"lint-staged": {
|
|
31
|
-
"src/**/*.{ts,tsx,less,md,mdx,json}": "npm run lint:script",
|
|
32
|
-
"src/**/*.{less}": "npm run lint:style"
|
|
33
|
-
},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"react": ">=16.9.0",
|
|
36
|
-
"react-dom": ">=16.9.0"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"ahooks": "^3.4.0",
|
|
40
|
-
"antd": "^4.20.7",
|
|
41
|
-
"flv.js": "^1.6.2",
|
|
42
|
-
"hls.js": "^1.1.5",
|
|
43
|
-
"js-base64": "^3.7.2",
|
|
44
|
-
"merge2": "^1.4.1",
|
|
45
|
-
"react-collapsed": "3.3.2"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@babel/cli": "^7.6.4",
|
|
49
|
-
"@babel/core": "^7.6.4",
|
|
50
|
-
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
51
|
-
"@babel/plugin-transform-runtime": "^7.6.2",
|
|
52
|
-
"@babel/preset-env": "^7.6.3",
|
|
53
|
-
"@babel/preset-react": "^7.6.3",
|
|
54
|
-
"@babel/preset-typescript": "^7.17.12",
|
|
55
|
-
"@babel/runtime": "^7.6.3",
|
|
56
|
-
"@commitlint/cli": "^17.0.2",
|
|
57
|
-
"@commitlint/config-conventional": "^17.0.2",
|
|
58
|
-
"@rollup/plugin-babel": "^5.3.1",
|
|
59
|
-
"@rollup/plugin-commonjs": "^22.0.0",
|
|
60
|
-
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
61
|
-
"@rollup/plugin-typescript": "^8.3.2",
|
|
62
|
-
"@rollup/plugin-url": "^7.0.0",
|
|
63
|
-
"@storybook/addon-actions": "^6.5.7",
|
|
64
|
-
"@storybook/addon-essentials": "^6.5.7",
|
|
65
|
-
"@storybook/addon-interactions": "^6.5.7",
|
|
66
|
-
"@storybook/addon-links": "^6.5.7",
|
|
67
|
-
"@storybook/builder-vite": "^0.1.36",
|
|
68
|
-
"@storybook/react": "^6.5.7",
|
|
69
|
-
"@storybook/testing-library": "^0.0.11",
|
|
70
|
-
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
|
|
71
|
-
"@types/react": "^18.0.0",
|
|
72
|
-
"@types/react-dom": "^18.0.0",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
|
74
|
-
"@typescript-eslint/parser": "^5.26.0",
|
|
75
|
-
"@vitejs/plugin-react": "^1.3.0",
|
|
76
|
-
"consola": "^2.15.3",
|
|
77
|
-
"eslint": "^8.16.0",
|
|
78
|
-
"eslint-config-prettier": "^8.5.0",
|
|
79
|
-
"eslint-import-resolver-typescript": "^2.7.1",
|
|
80
|
-
"eslint-plugin-import": "^2.26.0",
|
|
81
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
82
|
-
"eslint-plugin-react": "^7.30.0",
|
|
83
|
-
"eslint-plugin-react-hooks": "^4.5.0",
|
|
84
|
-
"eslint-plugin-storybook": "^0.5.12",
|
|
85
|
-
"gulp": "^4.0.2",
|
|
86
|
-
"gulp-babel": "^8.0.0",
|
|
87
|
-
"gulp-bump": "^3.2.0",
|
|
88
|
-
"gulp-clean": "^0.4.0",
|
|
89
|
-
"gulp-less": "^4.0.1",
|
|
90
|
-
"gulp-sourcemaps": "^3.0.0",
|
|
91
|
-
"gulp-typescript": "^6.0.0-alpha.1",
|
|
92
|
-
"husky": "^8.0.1",
|
|
93
|
-
"less": "3.13.1",
|
|
94
|
-
"less-plugin-autoprefix": "^2.0.0",
|
|
95
|
-
"less-plugin-npm-import": "^2.1.0",
|
|
96
|
-
"lint-staged": "^13.0.1",
|
|
97
|
-
"postcss": "^8.4.14",
|
|
98
|
-
"postcss-less": "^6.0.0",
|
|
99
|
-
"prettier": "^2.6.2",
|
|
100
|
-
"react": "^16.14.0",
|
|
101
|
-
"react-dom": "^16.14.0",
|
|
102
|
-
"rimraf": "^3.0.2",
|
|
103
|
-
"rollup-plugin-dts": "^4.2.2",
|
|
104
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
105
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
106
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
107
|
-
"stylelint": "^14.8.5",
|
|
108
|
-
"stylelint-config-prettier": "^9.0.3",
|
|
109
|
-
"stylelint-config-recess-order": "^3.0.0",
|
|
110
|
-
"stylelint-config-recommended": "^7.0.0",
|
|
111
|
-
"stylelint-config-standard": "^25.0.0",
|
|
112
|
-
"stylelint-order": "^5.0.0",
|
|
113
|
-
"through2": "^4.0.2",
|
|
114
|
-
"typescript": "^4.6.3",
|
|
115
|
-
"typescript-transform-paths": "^2.0.1",
|
|
116
|
-
"vite": "^2.9.9",
|
|
117
|
-
"vite-plugin-style-import": "^2.0.0"
|
|
118
|
-
},
|
|
119
|
-
"repository": "https://git.cloudhw.cn:3443/front-end/business/vtx-vis.git",
|
|
120
|
-
"author": "chenxinyu <chenxinyu@vortexInfo.cn>",
|
|
121
|
-
"license": "MIT",
|
|
122
|
-
"publishConfig": {
|
|
123
|
-
"registry": "https://registry.npmjs.org/"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vtx/player",
|
|
3
|
+
"version": "1.7.14",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "视频业务组件",
|
|
6
|
+
"main": "./lib/index.js",
|
|
7
|
+
"module": "./lib/index.js",
|
|
8
|
+
"types": "./lib/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"lib"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"start": "start-storybook -p 6006",
|
|
14
|
+
"start:huanwei": "cross-env PREFIX=/huanwei umi dev",
|
|
15
|
+
"build": "npm run compile",
|
|
16
|
+
"compile": "gulp compile",
|
|
17
|
+
"build:old": "npm run clean && rollup --config",
|
|
18
|
+
"build-docs": "build-storybook",
|
|
19
|
+
"build:huanwei": "cross-env UMI_ENV=prod UMI_COLOR=default PREFIX=/huanwei umi build",
|
|
20
|
+
"lint:script": "eslint src --ext .ts,.tsx",
|
|
21
|
+
"lint:style": "stylelint src/**/*.less --custom-syntax postcss-less --fix",
|
|
22
|
+
"clean": "rimraf dist"
|
|
23
|
+
},
|
|
24
|
+
"husky": {
|
|
25
|
+
"hooks": {
|
|
26
|
+
"pre-commit": "lint-staged",
|
|
27
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lint-staged": {
|
|
31
|
+
"src/**/*.{ts,tsx,less,md,mdx,json}": "npm run lint:script",
|
|
32
|
+
"src/**/*.{less}": "npm run lint:style"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": ">=16.9.0",
|
|
36
|
+
"react-dom": ">=16.9.0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"ahooks": "^3.4.0",
|
|
40
|
+
"antd": "^4.20.7",
|
|
41
|
+
"flv.js": "^1.6.2",
|
|
42
|
+
"hls.js": "^1.1.5",
|
|
43
|
+
"js-base64": "^3.7.2",
|
|
44
|
+
"merge2": "^1.4.1",
|
|
45
|
+
"react-collapsed": "3.3.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@babel/cli": "^7.6.4",
|
|
49
|
+
"@babel/core": "^7.6.4",
|
|
50
|
+
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
51
|
+
"@babel/plugin-transform-runtime": "^7.6.2",
|
|
52
|
+
"@babel/preset-env": "^7.6.3",
|
|
53
|
+
"@babel/preset-react": "^7.6.3",
|
|
54
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
55
|
+
"@babel/runtime": "^7.6.3",
|
|
56
|
+
"@commitlint/cli": "^17.0.2",
|
|
57
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
58
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
59
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
60
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
61
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
62
|
+
"@rollup/plugin-url": "^7.0.0",
|
|
63
|
+
"@storybook/addon-actions": "^6.5.7",
|
|
64
|
+
"@storybook/addon-essentials": "^6.5.7",
|
|
65
|
+
"@storybook/addon-interactions": "^6.5.7",
|
|
66
|
+
"@storybook/addon-links": "^6.5.7",
|
|
67
|
+
"@storybook/builder-vite": "^0.1.36",
|
|
68
|
+
"@storybook/react": "^6.5.7",
|
|
69
|
+
"@storybook/testing-library": "^0.0.11",
|
|
70
|
+
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
|
|
71
|
+
"@types/react": "^18.0.0",
|
|
72
|
+
"@types/react-dom": "^18.0.0",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
|
74
|
+
"@typescript-eslint/parser": "^5.26.0",
|
|
75
|
+
"@vitejs/plugin-react": "^1.3.0",
|
|
76
|
+
"consola": "^2.15.3",
|
|
77
|
+
"eslint": "^8.16.0",
|
|
78
|
+
"eslint-config-prettier": "^8.5.0",
|
|
79
|
+
"eslint-import-resolver-typescript": "^2.7.1",
|
|
80
|
+
"eslint-plugin-import": "^2.26.0",
|
|
81
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
82
|
+
"eslint-plugin-react": "^7.30.0",
|
|
83
|
+
"eslint-plugin-react-hooks": "^4.5.0",
|
|
84
|
+
"eslint-plugin-storybook": "^0.5.12",
|
|
85
|
+
"gulp": "^4.0.2",
|
|
86
|
+
"gulp-babel": "^8.0.0",
|
|
87
|
+
"gulp-bump": "^3.2.0",
|
|
88
|
+
"gulp-clean": "^0.4.0",
|
|
89
|
+
"gulp-less": "^4.0.1",
|
|
90
|
+
"gulp-sourcemaps": "^3.0.0",
|
|
91
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
92
|
+
"husky": "^8.0.1",
|
|
93
|
+
"less": "3.13.1",
|
|
94
|
+
"less-plugin-autoprefix": "^2.0.0",
|
|
95
|
+
"less-plugin-npm-import": "^2.1.0",
|
|
96
|
+
"lint-staged": "^13.0.1",
|
|
97
|
+
"postcss": "^8.4.14",
|
|
98
|
+
"postcss-less": "^6.0.0",
|
|
99
|
+
"prettier": "^2.6.2",
|
|
100
|
+
"react": "^16.14.0",
|
|
101
|
+
"react-dom": "^16.14.0",
|
|
102
|
+
"rimraf": "^3.0.2",
|
|
103
|
+
"rollup-plugin-dts": "^4.2.2",
|
|
104
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
105
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
106
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
107
|
+
"stylelint": "^14.8.5",
|
|
108
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
109
|
+
"stylelint-config-recess-order": "^3.0.0",
|
|
110
|
+
"stylelint-config-recommended": "^7.0.0",
|
|
111
|
+
"stylelint-config-standard": "^25.0.0",
|
|
112
|
+
"stylelint-order": "^5.0.0",
|
|
113
|
+
"through2": "^4.0.2",
|
|
114
|
+
"typescript": "^4.6.3",
|
|
115
|
+
"typescript-transform-paths": "^2.0.1",
|
|
116
|
+
"vite": "^2.9.9",
|
|
117
|
+
"vite-plugin-style-import": "^2.0.0"
|
|
118
|
+
},
|
|
119
|
+
"repository": "https://git.cloudhw.cn:3443/front-end/business/vtx-vis.git",
|
|
120
|
+
"author": "chenxinyu <chenxinyu@vortexInfo.cn>",
|
|
121
|
+
"license": "MIT",
|
|
122
|
+
"publishConfig": {
|
|
123
|
+
"registry": "https://registry.npmjs.org/"
|
|
124
|
+
}
|
|
125
|
+
}
|