@cloud-app-dev/vidc 2.2.0-alpha.2 → 2.2.0-alpha.6

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 (53) hide show
  1. package/.umirc.ts +0 -2
  2. package/es/AppContext/static.js +11 -6
  3. package/es/CheckGroupFixed/index.js +8 -6
  4. package/es/DeviceSelect/index.js +1 -1
  5. package/es/FullScreen/index.d.ts +14 -1
  6. package/es/FullScreen/index.js +7 -4
  7. package/es/HightLevel/index.js +1 -1
  8. package/es/List/GridList/Demo.js +13 -35
  9. package/es/List/GridList/data.json +710 -0
  10. package/es/List/GridList/index.d.ts +2 -2
  11. package/es/List/GridList/index.js +2 -1
  12. package/es/List/index.d.ts +3 -1
  13. package/es/List/index.js +4 -0
  14. package/es/Picture/component/DefaultRects/RectInfo.js +1 -1
  15. package/es/Picture/component/MoveContent/index.js +2 -2
  16. package/es/Picture/demo.d.ts +2 -0
  17. package/es/Picture/demo.js +16 -0
  18. package/es/Picture/index.d.ts +2 -0
  19. package/es/Picture/index.js +7 -5
  20. package/es/Picture/interface.d.ts +136 -3
  21. package/es/Picture/utils.d.ts +0 -2
  22. package/es/Picture/utils.js +1 -1
  23. package/es/Player/api/index.js +1 -1
  24. package/es/Player/frontend_player.d.ts +1 -7
  25. package/es/Player/index.d.ts +2 -8
  26. package/es/Player/index.js +1 -7
  27. package/es/Player/player.d.ts +134 -1
  28. package/es/Player/segment_player.d.ts +1 -5
  29. package/es/Player/single_player.js +4 -3
  30. package/es/Player/style/timeline.css +1 -1
  31. package/es/PlayerExt/demo.d.ts +2 -0
  32. package/es/PlayerExt/demo.js +165 -0
  33. package/es/PlayerExt/index.css +13 -0
  34. package/es/PlayerExt/index.d.ts +42 -0
  35. package/es/PlayerExt/index.js +145 -0
  36. package/es/UserSelect/index.js +1 -1
  37. package/es/WorkerFlow/Form/EmptyUserSet.js +1 -1
  38. package/es/WorkerFlow/Form/FormAuth.js +1 -1
  39. package/es/WorkerFlow/Form/GroupSelect.js +1 -1
  40. package/es/WorkerFlow/Form/GroupSelectModalContent.js +1 -1
  41. package/es/WorkerFlow/Form/LevelGroupSelect.js +1 -1
  42. package/es/WorkerFlow/Form/UserAndGroupSelect.js +1 -1
  43. package/es/WorkerFlow/Form/UserSelect.js +1 -1
  44. package/es/WorkerFlow/Form/UserSelectModalContent.js +1 -1
  45. package/es/WorkerFlow/Form/UserSet.js +1 -1
  46. package/es/WorkerFlow/index.js +1 -1
  47. package/es/WorkerFlow/utils.js +1 -1
  48. package/es/index.d.ts +1 -0
  49. package/es/index.js +1 -0
  50. package/es/utils.d.ts +2 -1
  51. package/es/utils.js +17 -1
  52. package/package.json +7 -8
  53. package/tsconfig.json +1 -1
@@ -0,0 +1,165 @@
1
+ import "antd/lib/config-provider/style";
2
+ import _ConfigProvider from "antd/lib/config-provider";
3
+ import "antd/lib/button/style";
4
+ import _Button from "antd/lib/button";
5
+ import "antd/lib/input/style";
6
+ import _Input from "antd/lib/input";
7
+ import "antd/lib/select/style";
8
+ import _Select from "antd/lib/select";
9
+
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+
14
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
+
16
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
17
+
18
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
19
+
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+
22
+ import React, { useState } from 'react';
23
+ import Player from '../Player/single_player';
24
+ import ExtModel from './index';
25
+ var options = [{
26
+ value: '',
27
+ label: '自动'
28
+ }, {
29
+ value: 'flv',
30
+ label: 'FLV'
31
+ }, {
32
+ value: 'hls',
33
+ label: 'HLS'
34
+ }];
35
+ var options2 = [{
36
+ value: 1,
37
+ label: '直播'
38
+ }, {
39
+ value: 0,
40
+ label: '录像'
41
+ }]; //http://192.168.101.162:14088/flv/live/1853e2a5c3308bd62/2.flv?device_id=&channel_id=1853e2a5c3308bd62&stream_index=2&ip=0
42
+
43
+ function Demo() {
44
+ var _useState = useState({
45
+ type: undefined,
46
+ isLive: 1,
47
+ url: '',
48
+ tempUrl: '',
49
+ mode: 1
50
+ }),
51
+ _useState2 = _slicedToArray(_useState, 2),
52
+ state = _useState2[0],
53
+ setState = _useState2[1];
54
+
55
+ return /*#__PURE__*/React.createElement("div", {
56
+ style: {
57
+ width: '100%',
58
+ height: 800
59
+ }
60
+ }, /*#__PURE__*/React.createElement("h3", null, "\u63D2\u4EF6\u89C6\u9891\u64AD\u653E"), /*#__PURE__*/React.createElement("div", {
61
+ style: {
62
+ marginBottom: 10,
63
+ display: 'flex'
64
+ }
65
+ }, /*#__PURE__*/React.createElement(_Select, {
66
+ value: state.type || '',
67
+ onChange: function onChange(val) {
68
+ return setState(function (old) {
69
+ return Object.assign(Object.assign({}, old), {
70
+ type: val
71
+ });
72
+ });
73
+ }
74
+ }, options.map(function (v) {
75
+ return /*#__PURE__*/React.createElement(_Select.Option, {
76
+ key: v.label,
77
+ value: v.value
78
+ }, v.label);
79
+ })), /*#__PURE__*/React.createElement(_Input, {
80
+ style: {
81
+ flex: 1,
82
+ height: 32
83
+ },
84
+ type: "text",
85
+ placeholder: "\u8BF7\u8F93\u5165\u89C6\u9891\u5730\u5740",
86
+ onChange: function onChange(e) {
87
+ return setState(function (old) {
88
+ return Object.assign(Object.assign({}, old), {
89
+ tempUrl: e.target.value
90
+ });
91
+ });
92
+ }
93
+ }), /*#__PURE__*/React.createElement(_Select, {
94
+ value: state.isLive,
95
+ onChange: function onChange(val) {
96
+ return setState(function (old) {
97
+ return Object.assign(Object.assign({}, old), {
98
+ isLive: val
99
+ });
100
+ });
101
+ }
102
+ }, options2.map(function (v) {
103
+ return /*#__PURE__*/React.createElement(_Select.Option, {
104
+ key: v.label,
105
+ value: v.value
106
+ }, v.label);
107
+ })), /*#__PURE__*/React.createElement(_Select, {
108
+ value: state.mode,
109
+ onChange: function onChange(val) {
110
+ return setState(function (old) {
111
+ return Object.assign(Object.assign({}, old), {
112
+ mode: val
113
+ });
114
+ });
115
+ }
116
+ }, /*#__PURE__*/React.createElement(_Select.Option, {
117
+ value: 1
118
+ }, "\u6D4F\u89C8\u5668\u6A21\u5F0F"), /*#__PURE__*/React.createElement(_Select.Option, {
119
+ value: 2
120
+ }, "\u63D2\u4EF6\u6A21\u5F0F")), /*#__PURE__*/React.createElement(_Button, {
121
+ style: {
122
+ width: 60,
123
+ height: 32
124
+ },
125
+ onClick: function onClick(e) {
126
+ return setState(function (old) {
127
+ return Object.assign(Object.assign({}, old), {
128
+ url: ''
129
+ });
130
+ });
131
+ }
132
+ }, "\u5173\u95ED"), /*#__PURE__*/React.createElement(_Button, {
133
+ style: {
134
+ width: 60,
135
+ height: 32
136
+ },
137
+ onClick: function onClick(e) {
138
+ return setState(function (old) {
139
+ return Object.assign(Object.assign({}, old), {
140
+ url: state.tempUrl
141
+ });
142
+ });
143
+ }
144
+ }, "\u64AD\u653E")), /*#__PURE__*/React.createElement("div", {
145
+ style: {
146
+ height: 600
147
+ }
148
+ }, /*#__PURE__*/React.createElement(ExtModel, {
149
+ url: state.url,
150
+ mode: state.mode,
151
+ pluginDownloadUrl: "http://192.168.101.162:19999/plugins/ZVPlayer.exe"
152
+ }, /*#__PURE__*/React.createElement(Player, {
153
+ type: state.type,
154
+ url: state.url,
155
+ isLive: !!state.isLive
156
+ }))));
157
+ }
158
+
159
+ var App = function App() {
160
+ return /*#__PURE__*/React.createElement(_ConfigProvider, {
161
+ prefixCls: "cloudapp"
162
+ }, /*#__PURE__*/React.createElement(Demo, null));
163
+ };
164
+
165
+ export default App;
@@ -0,0 +1,13 @@
1
+ .lm-player-ext-layput {
2
+ background-color: #000;
3
+ width: 100%;
4
+ height: 100%;
5
+ color: #fff;
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: center;
9
+ justify-content: center;
10
+ }
11
+ .lm-player-ext-layput .lm-player-PlaySource {
12
+ font-size: 66px;
13
+ }
@@ -0,0 +1,42 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ export declare type PlayModeType = 1 | 2;
4
+ export interface IPluginProps {
5
+ url?: string;
6
+ children: JSX.Element;
7
+ /**
8
+ * @description 模式1浏览器模式,2插件模式
9
+ * @default 1
10
+ */
11
+ mode?: PlayModeType;
12
+ /**
13
+ * @description 插件下载地址
14
+ */
15
+ pluginDownloadUrl?: string;
16
+ /**
17
+ * @description 插件模式下传递的参数 ’&’开头
18
+ * @default ''
19
+ */
20
+ pluginParams?: string;
21
+ }
22
+ /**
23
+ * 客户端插件模式,随机端口
24
+ */
25
+ export declare const LOCAL_PORT: string[];
26
+ /**
27
+ * 随机获取端口号
28
+ * @returns
29
+ */
30
+ export declare function getLocalPort(): string;
31
+ /**
32
+ * @desc 转码插件模式下的url
33
+ * @param url
34
+ * @param params
35
+ * @returns
36
+ */
37
+ export declare function getLocalPlayPath(url: string, params?: string): string;
38
+ export declare function usePlugin(mode: PlayModeType, key: any): {
39
+ needInstall: boolean;
40
+ };
41
+ export declare function ExtModel({ url, children, mode, pluginDownloadUrl, pluginParams }: IPluginProps): JSX.Element;
42
+ export { ExtModel as default };
@@ -0,0 +1,145 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
9
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
+
11
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+
13
+ import React, { useEffect, useMemo, useState } from 'react';
14
+ import IconFont from '../Player/iconfont';
15
+ import "./index.css";
16
+ /**
17
+ * 客户端插件模式,随机端口
18
+ */
19
+
20
+ export var LOCAL_PORT = ['15080', '15081', '15082', '15083', '15084', '15085', '15086', '15087', '15088', '15089'];
21
+ /**
22
+ * 随机获取端口号
23
+ * @returns
24
+ */
25
+
26
+ export function getLocalPort() {
27
+ return LOCAL_PORT[Math.floor(Math.random() * LOCAL_PORT.length)];
28
+ }
29
+ /**
30
+ * @desc 转码插件模式下的url
31
+ * @param url
32
+ * @param params
33
+ * @returns
34
+ */
35
+
36
+ export function getLocalPlayPath(url) {
37
+ var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
38
+ var URL_TEMPLATE = "http://127.0.0.1:<port>/video/v1/transcoding?uri=<pull_uri>";
39
+ var port = getLocalPort();
40
+ var pull_uri = window.btoa(url).replaceAll('=', '').replaceAll('/', '_').replaceAll('+', '-');
41
+ return URL_TEMPLATE.replace('<port>', port).replace('<pull_uri>', pull_uri) + params;
42
+ }
43
+ export function usePlugin(mode, key) {
44
+ var _useState = useState({
45
+ installed: false
46
+ }),
47
+ _useState2 = _slicedToArray(_useState, 2),
48
+ state = _useState2[0],
49
+ setState = _useState2[1];
50
+
51
+ useEffect(function () {
52
+ if (mode !== 2) {
53
+ return undefined;
54
+ }
55
+
56
+ var port = getLocalPort();
57
+ var url = "http://127.0.0.1:".concat(port, "/video/v1/state");
58
+
59
+ var thenFn = function thenFn(res) {
60
+ return res.status === 200 ? setState({
61
+ installed: true
62
+ }) : undefined;
63
+ };
64
+
65
+ fetch(url).then(thenFn).catch(function (e) {
66
+ return console.error('插件未安装', e);
67
+ });
68
+ }, [mode, key]);
69
+ return {
70
+ needInstall: useMemo(function () {
71
+ return mode === 2 && !state.installed;
72
+ }, [state.installed, mode])
73
+ };
74
+ }
75
+ export function ExtModel(_ref) {
76
+ var url = _ref.url,
77
+ children = _ref.children,
78
+ mode = _ref.mode,
79
+ pluginDownloadUrl = _ref.pluginDownloadUrl,
80
+ pluginParams = _ref.pluginParams;
81
+
82
+ var _useState3 = useState({
83
+ forceKey: Date.now()
84
+ }),
85
+ _useState4 = _slicedToArray(_useState3, 2),
86
+ state = _useState4[0],
87
+ setState = _useState4[1];
88
+
89
+ var hasUrl = useMemo(function () {
90
+ return !!url;
91
+ }, [url]);
92
+
93
+ var _usePlugin = usePlugin(mode, state.forceKey),
94
+ needInstall = _usePlugin.needInstall;
95
+
96
+ var playUrl = useMemo(function () {
97
+ return mode === 2 && url ? getLocalPlayPath(url, pluginParams) : url;
98
+ }, [url, mode]);
99
+
100
+ if (needInstall) {
101
+ return /*#__PURE__*/React.createElement("div", {
102
+ className: "lm-player-ext-layput"
103
+ }, /*#__PURE__*/React.createElement("div", {
104
+ style: {
105
+ marginTop: -60,
106
+ textAlign: 'center'
107
+ }
108
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconFont, {
109
+ type: "lm-player-PlaySource"
110
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u8BF7", /*#__PURE__*/React.createElement("a", {
111
+ target: "_blank",
112
+ href: pluginDownloadUrl,
113
+ style: {
114
+ textDecoration: 'none',
115
+ padding: '0 4px'
116
+ },
117
+ download: "PlayerPlugin.exe",
118
+ rel: "noopener noreferrer"
119
+ }, "\u4E0B\u8F7D"), "\u64AD\u653E\u63D2\u4EF6\uFF0C"), /*#__PURE__*/React.createElement("span", null, "\u82E5\u5DF2\u5B89\u88C5\u8BF7\u70B9\u51FB", /*#__PURE__*/React.createElement("a", {
120
+ style: {
121
+ padding: '0 4px'
122
+ },
123
+ onClick: function onClick() {
124
+ return setState(function (old) {
125
+ return Object.assign(Object.assign({}, old), {
126
+ forceKey: Date.now()
127
+ });
128
+ });
129
+ }
130
+ }, "\u91CD\u8BD5")))));
131
+ }
132
+
133
+ if (!hasUrl) {
134
+ return /*#__PURE__*/React.createElement("div", {
135
+ className: "lm-player-ext-layput"
136
+ }, /*#__PURE__*/React.createElement(IconFont, {
137
+ type: "lm-player-PlaySource"
138
+ }));
139
+ }
140
+
141
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(children, {
142
+ url: playUrl
143
+ }));
144
+ }
145
+ export { ExtModel as default };
@@ -24,7 +24,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
24
  import React, { useCallback, useMemo, useState, useImperativeHandle } from 'react';
25
25
  import api from '../Api';
26
26
  import TreeMode from '../Tree';
27
- import { uniq, intersectionWith, uniqBy, differenceWith } from 'lodash';
27
+ import { uniq, intersectionWith, uniqBy, differenceWith } from 'lodash-es';
28
28
  import IconFont from '../IconFont';
29
29
  import useHttp from '../useHttp';
30
30
  import ListExt from '../List/ListExt';
@@ -19,7 +19,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
 
20
20
  import { __awaiter } from "tslib";
21
21
  import React, { useCallback, useMemo, useRef, useState, useEffect } from 'react';
22
- import { replace } from 'lodash';
22
+ import { replace } from 'lodash-es';
23
23
  import chroma from 'chroma-js';
24
24
  import UserSelectModalContent from './UserSelectModalContent';
25
25
  import IconFont from '../../IconFont';
@@ -25,7 +25,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
25
 
26
26
  import React, { useCallback, useEffect, useState } from 'react';
27
27
  import Box from '../../Box';
28
- import { cloneDeep } from 'lodash';
28
+ import { cloneDeep } from 'lodash-es';
29
29
 
30
30
  function FormAuth(_ref) {
31
31
  var form = _ref.form,
@@ -19,7 +19,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
 
20
20
  import { __awaiter } from "tslib";
21
21
  import React, { useCallback, useMemo, useRef, useState, useEffect } from 'react';
22
- import { replace } from 'lodash';
22
+ import { replace } from 'lodash-es';
23
23
  import chroma from 'chroma-js';
24
24
  import GroupSelectModalContent from './GroupSelectModalContent';
25
25
  import IconFont from '../../IconFont';
@@ -23,7 +23,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  import React, { useCallback, useMemo, useState, useImperativeHandle } from 'react';
24
24
  import api from '../../Api';
25
25
  import TreeMode from '../../Tree';
26
- import { uniq, intersectionWith } from 'lodash';
26
+ import { uniq, intersectionWith } from 'lodash-es';
27
27
  import useHttp from '../../useHttp';
28
28
  import { formatRenderGroup } from './utils';
29
29
  import GroupList from './GroupList';
@@ -21,7 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
21
 
22
22
  import { __awaiter } from "tslib";
23
23
  import React, { useCallback, useMemo, useRef, useState, useEffect } from 'react';
24
- import { replace } from 'lodash';
24
+ import { replace } from 'lodash-es';
25
25
  import chroma from 'chroma-js';
26
26
  import GroupSelectModalContent from './GroupSelectModalContent';
27
27
  import { formatRenderGroup, ToUpperNumberString } from './utils';
@@ -21,7 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
21
 
22
22
  import { __awaiter } from "tslib";
23
23
  import React, { useCallback, useMemo, useRef, useState, useEffect } from 'react';
24
- import { replace } from 'lodash';
24
+ import { replace } from 'lodash-es';
25
25
  import chroma from 'chroma-js';
26
26
  import UserSelectModalContent from './UserSelectModalContent';
27
27
  import GroupSelectModalContent from './GroupSelectModalContent';
@@ -19,7 +19,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
 
20
20
  import { __awaiter } from "tslib";
21
21
  import React, { useCallback, useMemo, useRef, useState, useEffect } from 'react';
22
- import { replace } from 'lodash';
22
+ import { replace } from 'lodash-es';
23
23
  import chroma from 'chroma-js';
24
24
  import UserSelectModalContent from './UserSelectModalContent';
25
25
  import IconFont from '../../IconFont';
@@ -22,7 +22,7 @@ import React, { useCallback, useMemo, useState, forwardRef, useImperativeHandle
22
22
  import api from '../../Api';
23
23
  import TreeMode from '../../Tree';
24
24
  import List from '../../List/ListExt';
25
- import { uniq, uniqBy, differenceWith, intersectionWith } from 'lodash';
25
+ import { uniq, uniqBy, differenceWith, intersectionWith } from 'lodash-es';
26
26
  import useHttp from '../../useHttp';
27
27
  var UserSelectModalContent = /*#__PURE__*/forwardRef(function UserSelectModalContent(_ref, ref) {
28
28
  var selectUsers = _ref.selectUsers;
@@ -17,7 +17,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
 
18
18
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
19
19
  import { UserSetOptions } from '../Nodes/Constants';
20
- import { cloneDeep } from 'lodash';
20
+ import { cloneDeep } from 'lodash-es';
21
21
  import UsersHandleType from './UsersHandleType';
22
22
  import UserSelect from './UserSelect';
23
23
  import UserAndGroupSelect from './UserAndGroupSelect';
@@ -33,7 +33,7 @@ import ApproverForm from './Form/Approver';
33
33
  import ConditionForm from './Form/Condition';
34
34
  import NotifierForm from './Form/Notifier';
35
35
  import { TemplateConfig1 } from './template';
36
- import { cloneDeep } from 'lodash';
36
+ import { cloneDeep } from 'lodash-es';
37
37
  import EndNode from './Nodes/End';
38
38
  import Render from './Nodes/Render';
39
39
  import Tools from './Tools';
@@ -10,7 +10,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10
10
 
11
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
12
12
 
13
- import { cloneDeep } from 'lodash';
13
+ import { cloneDeep } from 'lodash-es';
14
14
  import { getNodeById } from './XML/utils';
15
15
  export function getJAVATaskData(data) {
16
16
  var _a;
package/es/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export { default as LoaderScript } from './LoaderScript';
27
27
  export { default as Modal } from './Modal';
28
28
  export { default as Picture } from './Picture';
29
29
  export { default as Player } from './Player';
30
+ export { default as PlayerExt } from './PlayerExt';
30
31
  export { default as Progress } from './Progress';
31
32
  export { default as SegmentPlayer } from './SegmentPlayer';
32
33
  export { default as Service } from './Service';
package/es/index.js CHANGED
@@ -27,6 +27,7 @@ export { default as LoaderScript } from './LoaderScript';
27
27
  export { default as Modal } from './Modal';
28
28
  export { default as Picture } from './Picture';
29
29
  export { default as Player } from './Player';
30
+ export { default as PlayerExt } from './PlayerExt';
30
31
  export { default as Progress } from './Progress';
31
32
  export { default as SegmentPlayer } from './SegmentPlayer';
32
33
  export { default as Service } from './Service';
package/es/utils.d.ts CHANGED
@@ -21,4 +21,5 @@ export declare function getTargetElement<T extends TargetType>(target: BasicTarg
21
21
  declare const getScrollTop: (el: Document | Element) => number;
22
22
  declare const getScrollHeight: (el: Document | Element) => number;
23
23
  declare const getClientHeight: (el: Document | Element) => number;
24
- export { getScrollTop, getScrollHeight, getClientHeight };
24
+ declare const getEleScrollHeight: (el: Document | Element) => number;
25
+ export { getScrollTop, getScrollHeight, getClientHeight, getEleScrollHeight };
package/es/utils.js CHANGED
@@ -123,4 +123,20 @@ var getClientHeight = function getClientHeight(el) {
123
123
  return el.clientHeight || Math.max(document.documentElement.clientHeight, document.body.clientHeight);
124
124
  };
125
125
 
126
- export { getScrollTop, getScrollHeight, getClientHeight };
126
+ var getEleScrollHeight = function getEleScrollHeight(el) {
127
+ if (el === document || el === document.body) {
128
+ return Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop);
129
+ }
130
+
131
+ var top = 0;
132
+ var dom = el;
133
+
134
+ while (dom) {
135
+ top += dom.scrollTop;
136
+ dom = dom.parentElement;
137
+ }
138
+
139
+ return top;
140
+ };
141
+
142
+ export { getScrollTop, getScrollHeight, getClientHeight, getEleScrollHeight };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "2.2.0-alpha.2",
5
+ "version": "2.2.0-alpha.6",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",
@@ -30,7 +30,6 @@
30
30
  ]
31
31
  },
32
32
  "dependencies": {
33
- "@types/lodash-es": "^4.17.6",
34
33
  "add-dom-event-listener": "^1.1.0",
35
34
  "ahooks": "^3.1.0",
36
35
  "axios": "^0.27.2",
@@ -38,7 +37,6 @@
38
37
  "flv.zv.js": "^2.2.0",
39
38
  "hls.js": "^1.1.5",
40
39
  "immer": "^9.0.5",
41
- "lodash": "^4.17.21",
42
40
  "lodash-es": "^4.17.21",
43
41
  "rc-queue-anim": "^2.0.0"
44
42
  },
@@ -46,15 +44,15 @@
46
44
  "@cloud-app-dev/utils": "^3.0.3",
47
45
  "@types/add-dom-event-listener": "^1.1.0",
48
46
  "@types/chroma-js": "^2.1.3",
49
- "@types/lodash": "^4.14.178",
47
+ "@types/lodash-es": "^4.17.6",
50
48
  "@types/node": "^17.0.5",
51
49
  "@types/react": "^18.0.9",
52
50
  "@types/react-dom": "^18.0.4",
53
- "@umijs/test": "^3.0.5",
54
- "antd": "^4.20.6",
51
+ "@umijs/test": "^3.5.26",
52
+ "antd": "^4.21.0",
55
53
  "babel-plugin-import": "^1.13.3",
56
- "dumi": "^1.1.40",
57
- "father-build": "^1.22.1",
54
+ "dumi": "^1.1.42",
55
+ "father-build": "^1.22.3",
58
56
  "gh-pages": "^3.0.0",
59
57
  "history": "^5.3.0",
60
58
  "lint-staged": "^10.0.7",
@@ -62,6 +60,7 @@
62
60
  "react": "^18.1.0",
63
61
  "react-dom": "^18.1.0",
64
62
  "react-router-dom": "^6.3.0",
63
+ "tslib": "^2.4.0",
65
64
  "typescript": "^4.5.4",
66
65
  "yorkie": "^2.0.0"
67
66
  },
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "target": "es6",
5
5
  "module": "esnext",
6
- "lib": ["es2018", "dom", "es2019"],
6
+ "lib": ["es2018", "dom", "es2021"],
7
7
  "rootDir": "./",
8
8
  "outDir": "es",
9
9
  "moduleResolution": "node",