eli-video-interview 1.2.42-alpha.39 → 1.2.42-alpha.40

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.
@@ -77,7 +77,7 @@ var AiEvaluation = function (_a) {
77
77
  var name = _a.name, list = _a.list;
78
78
  return (_jsxs(Box, { children: [_jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, weight: "500", mb: 2 }, { children: name })), list
79
79
  .filter(function (v) { return !isEdit || !v.isNew || selctedAbilitys.includes(v.token); })
80
- .map(function (item, i) { return (_jsx(BaseAccordion, __assign({ index: i, isOem: isOem, isShowOnlyAITest: showOnlyAITest, isShowDesc: index !== 0, isShowSummaryAction: index !== 0, isShowConfirm: index !== 0 }, item), item.name + i)); })] }, name));
80
+ .map(function (item, i) { return (_jsx(BaseAccordion, __assign({ index: i, isOem: isOem, isShowOnlyAITest: showOnlyAITest, isShowDesc: index !== 0, isShowSummaryAction: index !== 0, isShowConfirm: index !== 0 }, item), item.token)); })] }, name));
81
81
  })] }));
82
82
  };
83
83
  export default AiEvaluation;
@@ -286,7 +286,7 @@ var QuestionUpdate = function () {
286
286
  [aiAbilities, handleWorkplaceData]);
287
287
  useEffect(function () {
288
288
  if (open) {
289
- updateState({ language: item.language, aiSwitch: item.aiSwitch });
289
+ updateState({ language: item.language, aiSwitch: item.aiSwitch, voiceLanguage: item === null || item === void 0 ? void 0 : item.voiceLanguage });
290
290
  updateAiAbilities(item.aiAbilities, true);
291
291
  }
292
292
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -32,7 +32,7 @@ import { useSetState } from 'ahooks';
32
32
  import { createStore } from 'hox';
33
33
  import update from 'immutability-helper';
34
34
  import { useCallback, useEffect, useState } from 'react';
35
- var defaultAnalysisState = { aiSwitch: 2, language: 1 };
35
+ var defaultAnalysisState = { aiSwitch: 2, language: 1, voiceLanguage: 1 };
36
36
  export var useAiAnalysisStore = (_a = __read(createStore(function () {
37
37
  var questionState = useUpdateQuestionStore(function (store) { return [store.questionState]; }).questionState;
38
38
  var _a = __read(useState([]), 2), aiAbilities = _a[0], setAiAbilities = _a[1];
@@ -82,7 +82,7 @@ var AiEvaluation = function (_a) {
82
82
  var name = _a.name, list = _a.list;
83
83
  return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: 12, lineHeight: 1.5, weight: "500", mb: 2 }, { children: name })), list
84
84
  .filter(function (v) { return !isEdit || !v.isNew || selctedAbilitys.includes(v.token); })
85
- .map(function (item, i) { return ((0, jsx_runtime_1.jsx)(BaseAccordion_1.default, __assign({ index: i, isOem: isOem, isShowOnlyAITest: showOnlyAITest, isShowDesc: index !== 0, isShowSummaryAction: index !== 0, isShowConfirm: index !== 0 }, item), item.name + i)); })] }, name));
85
+ .map(function (item, i) { return ((0, jsx_runtime_1.jsx)(BaseAccordion_1.default, __assign({ index: i, isOem: isOem, isShowOnlyAITest: showOnlyAITest, isShowDesc: index !== 0, isShowSummaryAction: index !== 0, isShowConfirm: index !== 0 }, item), item.token)); })] }, name));
86
86
  })] }));
87
87
  };
88
88
  exports.default = AiEvaluation;
@@ -291,7 +291,7 @@ var QuestionUpdate = function () {
291
291
  [aiAbilities, handleWorkplaceData]);
292
292
  (0, react_1.useEffect)(function () {
293
293
  if (open) {
294
- updateState({ language: item.language, aiSwitch: item.aiSwitch });
294
+ updateState({ language: item.language, aiSwitch: item.aiSwitch, voiceLanguage: item === null || item === void 0 ? void 0 : item.voiceLanguage });
295
295
  updateAiAbilities(item.aiAbilities, true);
296
296
  }
297
297
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -38,7 +38,7 @@ var ahooks_1 = require("ahooks");
38
38
  var hox_1 = require("hox");
39
39
  var immutability_helper_1 = __importDefault(require("immutability-helper"));
40
40
  var react_1 = require("react");
41
- var defaultAnalysisState = { aiSwitch: 2, language: 1 };
41
+ var defaultAnalysisState = { aiSwitch: 2, language: 1, voiceLanguage: 1 };
42
42
  exports.useAiAnalysisStore = (_a = __read((0, hox_1.createStore)(function () {
43
43
  var questionState = (0, question_update_store_1.useUpdateQuestionStore)(function (store) { return [store.questionState]; }).questionState;
44
44
  var _a = __read((0, react_1.useState)([]), 2), aiAbilities = _a[0], setAiAbilities = _a[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.42-alpha.39",
3
+ "version": "1.2.42-alpha.40",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",