eli-video-interview 1.2.3-5.alpha.12 → 1.2.3-5.alpha.13

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.
@@ -9,6 +9,15 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
20
+ };
12
21
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
22
  import { CATEGORY_NAME, LANGUAGE_SHOW_NAME, SERVER_LANGUAGE_TYPE } from './const';
14
23
  import { groupCategory } from './utils';
@@ -74,12 +83,12 @@ var AiAssessmentCriteria = function (props) {
74
83
  setRelatedAbilities(item === null || item === void 0 ? void 0 : item.relatedAbilities);
75
84
  };
76
85
  var handleOk = useCallback(function () {
77
- updateAiAbilities(Object.values(checkAbilities)
86
+ updateAiAbilities(__spreadArray(__spreadArray([], aiAbilities.filter(function (v) { return v.type === 1; }), true), Object.values(checkAbilities)
78
87
  .filter(function (item) { return item; })
79
- .sort(function (a, b) { return ((a === null || a === void 0 ? void 0 : a.sort) && (b === null || b === void 0 ? void 0 : b.sort) ? (a === null || a === void 0 ? void 0 : a.sort) - (b === null || b === void 0 ? void 0 : b.sort) : 0); }));
88
+ .sort(function (a, b) { return ((a === null || a === void 0 ? void 0 : a.sort) && (b === null || b === void 0 ? void 0 : b.sort) ? (a === null || a === void 0 ? void 0 : a.sort) - (b === null || b === void 0 ? void 0 : b.sort) : 0); }), true));
80
89
  updateState({ language: SERVER_LANGUAGE_TYPE[language], aiSwitch: 1 });
81
90
  onClose();
82
- }, [checkAbilities, language, onClose, updateAiAbilities, updateState]);
91
+ }, [checkAbilities, aiAbilities, language, onClose, updateAiAbilities, updateState]);
83
92
  useEffect(function () {
84
93
  aiAbilities.forEach(function (item) {
85
94
  var _a;
@@ -10,6 +10,15 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
13
22
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
23
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
24
  };
@@ -79,12 +88,12 @@ var AiAssessmentCriteria = function (props) {
79
88
  setRelatedAbilities(item === null || item === void 0 ? void 0 : item.relatedAbilities);
80
89
  };
81
90
  var handleOk = (0, react_1.useCallback)(function () {
82
- updateAiAbilities(Object.values(checkAbilities)
91
+ updateAiAbilities(__spreadArray(__spreadArray([], aiAbilities.filter(function (v) { return v.type === 1; }), true), Object.values(checkAbilities)
83
92
  .filter(function (item) { return item; })
84
- .sort(function (a, b) { return ((a === null || a === void 0 ? void 0 : a.sort) && (b === null || b === void 0 ? void 0 : b.sort) ? (a === null || a === void 0 ? void 0 : a.sort) - (b === null || b === void 0 ? void 0 : b.sort) : 0); }));
93
+ .sort(function (a, b) { return ((a === null || a === void 0 ? void 0 : a.sort) && (b === null || b === void 0 ? void 0 : b.sort) ? (a === null || a === void 0 ? void 0 : a.sort) - (b === null || b === void 0 ? void 0 : b.sort) : 0); }), true));
85
94
  updateState({ language: const_1.SERVER_LANGUAGE_TYPE[language], aiSwitch: 1 });
86
95
  onClose();
87
- }, [checkAbilities, language, onClose, updateAiAbilities, updateState]);
96
+ }, [checkAbilities, aiAbilities, language, onClose, updateAiAbilities, updateState]);
88
97
  (0, react_1.useEffect)(function () {
89
98
  aiAbilities.forEach(function (item) {
90
99
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.35.alpha.12",
3
+ "version": "1.2.35.alpha.13",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",