eli-video-interview 1.2.37-beta.2 → 1.2.37-beta.4

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.
@@ -125,7 +125,7 @@ var BootVideo = function (props) {
125
125
  }
126
126
  // eslint-disable-next-line react-hooks/exhaustive-deps
127
127
  }, [open]);
128
- return (_jsx(Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u4FDD\u5B58", onClose: onClose, onOk: handleOk, width: 768 }, { children: _jsx(ScrollDialogContent, { children: _jsxs(Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [_jsxs(Stack, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), _jsxs(RadioGroup, __assign({ defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [_jsx(Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), _jsx(Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u9762\u8BD5\u5B98\u5F62\u8C61" })), _jsx(CustomUploadedImgRoot, { children: virtualManList.map(function (human) {
128
+ return (_jsx(Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk, width: 768 }, { children: _jsx(ScrollDialogContent, { children: _jsxs(Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [_jsxs(Stack, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), _jsxs(RadioGroup, __assign({ defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [_jsx(Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), _jsx(Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u9762\u8BD5\u5B98\u5F62\u8C61" })), _jsx(CustomUploadedImgRoot, { children: virtualManList.map(function (human) {
129
129
  var _a;
130
130
  return (_jsxs(Box, { children: [_jsx("img", { src: human.virtualHumanAvatar, style: { borderColor: ((_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) === human.humanToken ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), _jsx(Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken));
131
131
  }) }), _jsx(Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 462, color: "disabled", mb: 1 }, { children: "\u8BF4\u660E\uFF1A\u6B65\u9AA4\u4E0B\u7684\u6240\u6709\u9898\u76EE\u7684\u865A\u62DF\u4EBA\u64AD\u653E\u89C6\u9891\u5747\u751F\u6210\u540E\uFF0C\u624D\u80FD\u751F\u6548\u865A\u62DF\u4EBA\u6548\u679C\u3002\u5426\u5219\uFF0C\u5C06\u4EE5\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F\u8FDB\u884C\u4EA4\u4E92\u3002" }))] })), interviewRoomState.interactType === 1 && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), _jsx(CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
@@ -18,9 +18,11 @@ import { Button, CheckCircleOutlineIcon, Typography, VideocamOutlineIcon } from
18
18
  import { Paper, Stack } from 'fbm-ui/lib/mui';
19
19
  import { useState } from 'react';
20
20
  var Interactive = function () {
21
+ var _a, _b;
21
22
  var questionModelData = useQuestionModelStore().questionModelData;
22
- var _a = useInterviewRoomStore(), interactType = _a.interactType, aiInterviewerProfile = _a.aiInterviewerProfile;
23
- var _b = useState(false), bootVideoOpen = _b[0], setBootVideoOpen = _b[1];
24
- return (_jsxs(_Fragment, { children: [bootVideoOpen && _jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", component: Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [_jsxs(Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[interactType]), interactType === 2 && (_jsxs(_Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), _jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 && interactType === questionModelData.interactType ? (_jsx(CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] })), _jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
23
+ var _c = useInterviewRoomStore(), interactType = _c.interactType, aiInterviewerProfile = _c.aiInterviewerProfile;
24
+ var _d = useState(false), bootVideoOpen = _d[0], setBootVideoOpen = _d[1];
25
+ return (_jsxs(_Fragment, { children: [bootVideoOpen && _jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", component: Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [_jsxs(Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[interactType]), interactType === 2 && (_jsxs(_Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
26
+ (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanToken) === ((_b = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _b === void 0 ? void 0 : _b.humanToken) && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? (_jsx(CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), _jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
25
27
  };
26
28
  export default Interactive;
@@ -36,8 +36,8 @@ var Question = function () {
36
36
  onSuccess: function (_a) {
37
37
  var data = _a.data;
38
38
  updateModel(data);
39
- var _b = data.interactType, interactType = _b === void 0 ? 1 : _b, aiInterviewerProfile = data.aiInterviewerProfile;
40
- updateInterviewRoom({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile });
39
+ var _b = data.interactType, interactType = _b === void 0 ? 1 : _b, aiInterviewerProfile = data.aiInterviewerProfile, aiVideoStatus = data.aiVideoStatus;
40
+ updateInterviewRoom({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile, aiVideoStatus: interactType === 1 ? 0 : aiVideoStatus });
41
41
  setSelctedAbilitys((data === null || data === void 0 ? void 0 : data.selectAbilities) || []);
42
42
  onLoad === null || onLoad === void 0 ? void 0 : onLoad(data.steps);
43
43
  },
@@ -87,6 +87,7 @@ export interface AiInterviewerProfile {
87
87
  }
88
88
  export interface InterviewRoomProps {
89
89
  interactType: number;
90
+ aiVideoStatus?: number;
90
91
  aiInterviewerProfile?: AiInterviewerProfile;
91
92
  }
92
93
  export interface AiInterviewerProfileList {
@@ -3,15 +3,18 @@ export declare const useInterviewRoomStore: (depsFn?: import("hox/es/types").Dep
3
3
  interviewRoomState: InterviewRoomProps;
4
4
  updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
5
5
  interactType: number;
6
+ aiVideoStatus?: number | undefined;
6
7
  aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
7
8
  }> | undefined) => {
8
9
  interviewRoomState: InterviewRoomProps;
9
10
  updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
10
11
  interactType: number;
12
+ aiVideoStatus?: number | undefined;
11
13
  aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
12
14
  }, getInterviewRoomStore: () => {
13
15
  interviewRoomState: InterviewRoomProps;
14
16
  updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
15
17
  interactType: number;
18
+ aiVideoStatus?: number | undefined;
16
19
  aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
17
20
  } | undefined;
@@ -15,6 +15,7 @@ import { createGlobalStore } from 'hox';
15
15
  export var useInterviewRoomStore = (_a = createGlobalStore(function () {
16
16
  var _a = useSetState({
17
17
  interactType: 1,
18
+ aiVideoStatus: 0,
18
19
  }), interviewRoomState = _a[0], updateInterviewRoom = _a[1];
19
20
  return __assign(__assign({}, interviewRoomState), { interviewRoomState: interviewRoomState, updateInterviewRoom: updateInterviewRoom });
20
21
  }), _a[0]), getInterviewRoomStore = _a[1];
@@ -130,7 +130,7 @@ var BootVideo = function (props) {
130
130
  }
131
131
  // eslint-disable-next-line react-hooks/exhaustive-deps
132
132
  }, [open]);
133
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u4FDD\u5B58", onClose: onClose, onOk: handleOk, width: 768 }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.RadioGroup, __assign({ defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u9762\u8BD5\u5B98\u5F62\u8C61" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: virtualManList.map(function (human) {
133
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk, width: 768 }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.RadioGroup, __assign({ defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u9762\u8BD5\u5B98\u5F62\u8C61" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: virtualManList.map(function (human) {
134
134
  var _a;
135
135
  return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { src: human.virtualHumanAvatar, style: { borderColor: ((_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) === human.humanToken ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken));
136
136
  }) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 462, color: "disabled", mb: 1 }, { children: "\u8BF4\u660E\uFF1A\u6B65\u9AA4\u4E0B\u7684\u6240\u6709\u9898\u76EE\u7684\u865A\u62DF\u4EBA\u64AD\u653E\u89C6\u9891\u5747\u751F\u6210\u540E\uFF0C\u624D\u80FD\u751F\u6548\u865A\u62DF\u4EBA\u6548\u679C\u3002\u5426\u5219\uFF0C\u5C06\u4EE5\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F\u8FDB\u884C\u4EA4\u4E92\u3002" }))] })), interviewRoomState.interactType === 1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
@@ -23,9 +23,11 @@ var fbm_ui_1 = require("fbm-ui");
23
23
  var mui_1 = require("fbm-ui/lib/mui");
24
24
  var react_1 = require("react");
25
25
  var Interactive = function () {
26
+ var _a, _b;
26
27
  var questionModelData = (0, question_model_store_1.useQuestionModelStore)().questionModelData;
27
- var _a = (0, interview_room_store_1.useInterviewRoomStore)(), interactType = _a.interactType, aiInterviewerProfile = _a.aiInterviewerProfile;
28
- var _b = (0, react_1.useState)(false), bootVideoOpen = _b[0], setBootVideoOpen = _b[1];
29
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [bootVideoOpen && (0, jsx_runtime_1.jsx)(BootVideo_1.default, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", component: mui_1.Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(ai_question_1.InteractiveModes[interactType]), interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: ai_question_1.AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 && interactType === questionModelData.interactType ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
28
+ var _c = (0, interview_room_store_1.useInterviewRoomStore)(), interactType = _c.interactType, aiInterviewerProfile = _c.aiInterviewerProfile;
29
+ var _d = (0, react_1.useState)(false), bootVideoOpen = _d[0], setBootVideoOpen = _d[1];
30
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [bootVideoOpen && (0, jsx_runtime_1.jsx)(BootVideo_1.default, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", component: mui_1.Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(ai_question_1.InteractiveModes[interactType]), interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
31
+ (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanToken) === ((_b = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _b === void 0 ? void 0 : _b.humanToken) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: ai_question_1.AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
30
32
  };
31
33
  exports.default = Interactive;
@@ -41,8 +41,8 @@ var Question = function () {
41
41
  onSuccess: function (_a) {
42
42
  var data = _a.data;
43
43
  updateModel(data);
44
- var _b = data.interactType, interactType = _b === void 0 ? 1 : _b, aiInterviewerProfile = data.aiInterviewerProfile;
45
- updateInterviewRoom({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile });
44
+ var _b = data.interactType, interactType = _b === void 0 ? 1 : _b, aiInterviewerProfile = data.aiInterviewerProfile, aiVideoStatus = data.aiVideoStatus;
45
+ updateInterviewRoom({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile, aiVideoStatus: interactType === 1 ? 0 : aiVideoStatus });
46
46
  setSelctedAbilitys((data === null || data === void 0 ? void 0 : data.selectAbilities) || []);
47
47
  onLoad === null || onLoad === void 0 ? void 0 : onLoad(data.steps);
48
48
  },
@@ -87,6 +87,7 @@ export interface AiInterviewerProfile {
87
87
  }
88
88
  export interface InterviewRoomProps {
89
89
  interactType: number;
90
+ aiVideoStatus?: number;
90
91
  aiInterviewerProfile?: AiInterviewerProfile;
91
92
  }
92
93
  export interface AiInterviewerProfileList {
@@ -3,15 +3,18 @@ export declare const useInterviewRoomStore: (depsFn?: import("hox/es/types").Dep
3
3
  interviewRoomState: InterviewRoomProps;
4
4
  updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
5
5
  interactType: number;
6
+ aiVideoStatus?: number | undefined;
6
7
  aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
7
8
  }> | undefined) => {
8
9
  interviewRoomState: InterviewRoomProps;
9
10
  updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
10
11
  interactType: number;
12
+ aiVideoStatus?: number | undefined;
11
13
  aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
12
14
  }, getInterviewRoomStore: () => {
13
15
  interviewRoomState: InterviewRoomProps;
14
16
  updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
15
17
  interactType: number;
18
+ aiVideoStatus?: number | undefined;
16
19
  aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
17
20
  } | undefined;
@@ -18,6 +18,7 @@ var hox_1 = require("hox");
18
18
  exports.useInterviewRoomStore = (_a = (0, hox_1.createGlobalStore)(function () {
19
19
  var _a = (0, ahooks_1.useSetState)({
20
20
  interactType: 1,
21
+ aiVideoStatus: 0,
21
22
  }), interviewRoomState = _a[0], updateInterviewRoom = _a[1];
22
23
  return __assign(__assign({}, interviewRoomState), { interviewRoomState: interviewRoomState, updateInterviewRoom: updateInterviewRoom });
23
24
  }), _a[0]), exports.getInterviewRoomStore = _a[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.37-beta.2",
3
+ "version": "1.2.37-beta.4",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",