eli-video-interview 1.2.42-alpha.53 → 1.2.42-alpha.55
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/esm/modules/ai-ability/components/AddAbility/index.js +2 -20
- package/esm/modules/ai-question/components/BootVideo/index.js +6 -3
- package/lib/modules/ai-ability/components/AddAbility/index.js +2 -20
- package/lib/modules/ai-question/components/BootVideo/index.js +6 -3
- package/package.json +1 -1
|
@@ -80,31 +80,13 @@ var validationSchema = Yup.object().shape({
|
|
|
80
80
|
var InitialValues = {
|
|
81
81
|
workPlaceItems: [
|
|
82
82
|
{
|
|
83
|
-
name: '
|
|
84
|
-
type: 1,
|
|
85
|
-
items: [],
|
|
86
|
-
maxTextLength: 100,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: '优次表现优秀表现',
|
|
90
|
-
type: 2,
|
|
91
|
-
items: [],
|
|
92
|
-
maxTextLength: 100,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: '优次表现较差表现',
|
|
96
|
-
type: 3,
|
|
97
|
-
items: [],
|
|
98
|
-
maxTextLength: 100,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: '考察建议-评分关键点',
|
|
83
|
+
name: '评分关键点',
|
|
102
84
|
type: 5,
|
|
103
85
|
items: [],
|
|
104
86
|
maxTextLength: 300,
|
|
105
87
|
},
|
|
106
88
|
{
|
|
107
|
-
name: '
|
|
89
|
+
name: '面试题目',
|
|
108
90
|
type: 4,
|
|
109
91
|
items: [],
|
|
110
92
|
maxTextLength: 300,
|
|
@@ -52,6 +52,7 @@ var Options = [
|
|
|
52
52
|
{ label: '小面播报', value: 1 },
|
|
53
53
|
{ label: '虚拟人播报', value: 2 },
|
|
54
54
|
{ label: '自定义播报', value: 3 },
|
|
55
|
+
{ label: '新虚拟人播报(支持追问)', value: 4 },
|
|
55
56
|
];
|
|
56
57
|
var BootVideo = function (props) {
|
|
57
58
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -120,6 +121,7 @@ var BootVideo = function (props) {
|
|
|
120
121
|
}, [virtualManList]);
|
|
121
122
|
var broadcastType = useMemo(function () {
|
|
122
123
|
var _a;
|
|
124
|
+
console.log('virtualManList', virtualManList);
|
|
123
125
|
return ((_a = virtualManList.find(function (v) { return v.selected; })) === null || _a === void 0 ? void 0 : _a.type) || 1;
|
|
124
126
|
}, [virtualManList]);
|
|
125
127
|
var virtualMan = virtualManList.find(function (v) { return v.selected; });
|
|
@@ -160,6 +162,7 @@ var BootVideo = function (props) {
|
|
|
160
162
|
updateInterviewRoom(__assign(__assign({}, interviewRoomState), { interactionMethods: virtualManList }));
|
|
161
163
|
onClose();
|
|
162
164
|
};
|
|
165
|
+
console.log('virtualMan?.detail?', virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, broadcastType);
|
|
163
166
|
var uploadProps = {
|
|
164
167
|
type: 'custom',
|
|
165
168
|
showUploadList: false,
|
|
@@ -246,14 +249,14 @@ var BootVideo = function (props) {
|
|
|
246
249
|
var _a;
|
|
247
250
|
var value = e.target.value;
|
|
248
251
|
setVirtualManList(__spreadArray([], __read(virtualManList.map(function (v) { return (__assign(__assign({}, v), { selected: v.type === value })); })), false));
|
|
249
|
-
if (value
|
|
252
|
+
if (![3, 4].includes(value)) {
|
|
250
253
|
setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
|
|
251
254
|
// @ts-ignore
|
|
252
255
|
aiInterviewerProfile: (_a = virtualManList.find(function (v) { return v.type === value; })) === null || _a === void 0 ? void 0 : _a.detail }));
|
|
253
256
|
}
|
|
254
|
-
}, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && (_jsxs(Stack, { children: [_jsx(CustomVideos, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), _jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), _jsx(TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), _jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: broadcastType
|
|
257
|
+
}, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && (_jsxs(Stack, { children: [_jsx(CustomVideos, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), _jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), _jsx(TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), _jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: ![3, 4].includes(broadcastType) ? '面试官形象' : '面试官形象(播报题目)' })), ![3, 4].includes(broadcastType) && (_jsx(CustomUploadedImgRoot, { children: _jsx(Box, { children: _jsx("img", { src: (_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _b === void 0 ? void 0 : _b.virtualHumanAvatar, style: {
|
|
255
258
|
borderColor: 'transparent',
|
|
256
|
-
}, height: 100, alt: "" }) }) })), broadcastType
|
|
259
|
+
}, height: 100, alt: "" }) }) })), [3, 4].includes(broadcastType) && (_jsx(CustomUploadedImgRoot, { children: (_d = (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.interviewerShows) === null || _d === void 0 ? void 0 : _d.map(function (human) { return (_jsxs(Box, { children: [_jsx("img", { src: human.virtualHumanAvatar, style: {
|
|
257
260
|
borderColor: human.selected ? '#4CAF50' : 'transparent',
|
|
258
261
|
}, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), _jsx(Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken)); }) })), _jsx(Typography, __assign({ variant: "caption", flexWrap: "wrap", color: "disabled", mb: 3 }, { children: (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail.desc) || ((_g = (_f = (_e = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _e === void 0 ? void 0 : _e.interviewerShows) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.desc) })), broadcastType !== 3 && (_jsxs(Stack, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u64AD\u62A5\u5185\u5BB9" })), _jsx(TextField, { multiline: true, error: (((_h = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _h === void 0 ? void 0 : _h.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, onChange: handleGuidanceText, max: 300 })] }))] })), interviewRoomState.interactType === 1 && (_jsxs(Stack, { children: [_jsxs(Stack, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), _jsx(Typography, __assign({ variant: "caption", mb: 2 }, { children: "\u79FB\u52A8\u7AEF" })), _jsxs(CustomUploadedImgRoot, { children: [mediaList.map(function (_a) {
|
|
259
262
|
var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;
|
|
@@ -108,31 +108,13 @@ var validationSchema = Yup.object().shape({
|
|
|
108
108
|
var InitialValues = {
|
|
109
109
|
workPlaceItems: [
|
|
110
110
|
{
|
|
111
|
-
name: '
|
|
112
|
-
type: 1,
|
|
113
|
-
items: [],
|
|
114
|
-
maxTextLength: 100,
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: '优次表现优秀表现',
|
|
118
|
-
type: 2,
|
|
119
|
-
items: [],
|
|
120
|
-
maxTextLength: 100,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: '优次表现较差表现',
|
|
124
|
-
type: 3,
|
|
125
|
-
items: [],
|
|
126
|
-
maxTextLength: 100,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: '考察建议-评分关键点',
|
|
111
|
+
name: '评分关键点',
|
|
130
112
|
type: 5,
|
|
131
113
|
items: [],
|
|
132
114
|
maxTextLength: 300,
|
|
133
115
|
},
|
|
134
116
|
{
|
|
135
|
-
name: '
|
|
117
|
+
name: '面试题目',
|
|
136
118
|
type: 4,
|
|
137
119
|
items: [],
|
|
138
120
|
maxTextLength: 300,
|
|
@@ -57,6 +57,7 @@ var Options = [
|
|
|
57
57
|
{ label: '小面播报', value: 1 },
|
|
58
58
|
{ label: '虚拟人播报', value: 2 },
|
|
59
59
|
{ label: '自定义播报', value: 3 },
|
|
60
|
+
{ label: '新虚拟人播报(支持追问)', value: 4 },
|
|
60
61
|
];
|
|
61
62
|
var BootVideo = function (props) {
|
|
62
63
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -125,6 +126,7 @@ var BootVideo = function (props) {
|
|
|
125
126
|
}, [virtualManList]);
|
|
126
127
|
var broadcastType = (0, react_1.useMemo)(function () {
|
|
127
128
|
var _a;
|
|
129
|
+
console.log('virtualManList', virtualManList);
|
|
128
130
|
return ((_a = virtualManList.find(function (v) { return v.selected; })) === null || _a === void 0 ? void 0 : _a.type) || 1;
|
|
129
131
|
}, [virtualManList]);
|
|
130
132
|
var virtualMan = virtualManList.find(function (v) { return v.selected; });
|
|
@@ -165,6 +167,7 @@ var BootVideo = function (props) {
|
|
|
165
167
|
updateInterviewRoom(__assign(__assign({}, interviewRoomState), { interactionMethods: virtualManList }));
|
|
166
168
|
onClose();
|
|
167
169
|
};
|
|
170
|
+
console.log('virtualMan?.detail?', virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, broadcastType);
|
|
168
171
|
var uploadProps = {
|
|
169
172
|
type: 'custom',
|
|
170
173
|
showUploadList: false,
|
|
@@ -251,14 +254,14 @@ var BootVideo = function (props) {
|
|
|
251
254
|
var _a;
|
|
252
255
|
var value = e.target.value;
|
|
253
256
|
setVirtualManList(__spreadArray([], __read(virtualManList.map(function (v) { return (__assign(__assign({}, v), { selected: v.type === value })); })), false));
|
|
254
|
-
if (value
|
|
257
|
+
if (![3, 4].includes(value)) {
|
|
255
258
|
setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
|
|
256
259
|
// @ts-ignore
|
|
257
260
|
aiInterviewerProfile: (_a = virtualManList.find(function (v) { return v.type === value; })) === null || _a === void 0 ? void 0 : _a.detail }));
|
|
258
261
|
}
|
|
259
|
-
}, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(CustomVideos_1.default, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: broadcastType
|
|
262
|
+
}, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(CustomVideos_1.default, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: ![3, 4].includes(broadcastType) ? '面试官形象' : '面试官形象(播报题目)' })), ![3, 4].includes(broadcastType) && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_2.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: (_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _b === void 0 ? void 0 : _b.virtualHumanAvatar, style: {
|
|
260
263
|
borderColor: 'transparent',
|
|
261
|
-
}, height: 100, alt: "" }) }) })), broadcastType
|
|
264
|
+
}, height: 100, alt: "" }) }) })), [3, 4].includes(broadcastType) && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (_d = (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.interviewerShows) === null || _d === void 0 ? void 0 : _d.map(function (human) { return ((0, jsx_runtime_1.jsxs)(fbm_ui_2.Box, { children: [(0, jsx_runtime_1.jsx)("img", { src: human.virtualHumanAvatar, style: {
|
|
262
265
|
borderColor: human.selected ? '#4CAF50' : 'transparent',
|
|
263
266
|
}, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken)); }) })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "caption", flexWrap: "wrap", color: "disabled", mb: 3 }, { children: (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail.desc) || ((_g = (_f = (_e = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _e === void 0 ? void 0 : _e.interviewerShows) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.desc) })), broadcastType !== 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", fontWeight: "medium", mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u64AD\u62A5\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.TextField, { multiline: true, error: (((_h = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _h === void 0 ? void 0 : _h.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, onChange: handleGuidanceText, max: 300 })] }))] })), interviewRoomState.interactType === 1 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "caption", mb: 2 }, { children: "\u79FB\u52A8\u7AEF" })), (0, jsx_runtime_1.jsxs)(styled_1.CustomUploadedImgRoot, { children: [mediaList.map(function (_a) {
|
|
264
267
|
var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;
|