eli-video-interview 1.2.14 → 1.2.15

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.
@@ -17,7 +17,7 @@ import { useAiReportStore } from "../../../../store/ai-report/global-store";
17
17
  import { rankPercent } from '../../utils';
18
18
  var Bar = function () {
19
19
  var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
20
- var _b = useState('前0% ~ 100%'), text = _b[0], setText = _b[1];
20
+ var _b = useState(''), text = _b[0], setText = _b[1];
21
21
  var _c = useAiReportStore(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals, reportRank = _c.reportRank;
22
22
  var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
23
23
  useEffect(function () {
@@ -25,12 +25,12 @@ var Bar = function () {
25
25
  if (floatInterval) {
26
26
  var rank = floatInterval.rank;
27
27
  setCurrentRank(rank);
28
- if (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) {
29
- setText("\u51FB\u8D25\u4E86".concat(rankPercent((reportRank === null || reportRank === void 0 ? void 0 : reportRank.rank) || 0, (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) || 0).toFixed(0), "%\u5019\u9009\u4EBA"));
30
- }
31
- else {
32
- setText('');
33
- }
28
+ }
29
+ if (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) {
30
+ setText("\u51FB\u8D25\u4E86".concat(rankPercent((reportRank === null || reportRank === void 0 ? void 0 : reportRank.rank) || 0, (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) || 0).toFixed(0), "%\u5019\u9009\u4EBA"));
31
+ }
32
+ else {
33
+ setText('');
34
34
  }
35
35
  }, [score, reportRank, scoreRankIntervals]);
36
36
  if (!scoreRankIntervals || (scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.length) === 0)
@@ -19,7 +19,7 @@ var global_store_1 = require("../../../../store/ai-report/global-store");
19
19
  var utils_1 = require("../../utils");
20
20
  var Bar = function () {
21
21
  var _a = (0, react_1.useState)(1), currentRank = _a[0], setCurrentRank = _a[1];
22
- var _b = (0, react_1.useState)('前0% ~ 100%'), text = _b[0], setText = _b[1];
22
+ var _b = (0, react_1.useState)(''), text = _b[0], setText = _b[1];
23
23
  var _c = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals, reportRank = _c.reportRank;
24
24
  var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
25
25
  (0, react_1.useEffect)(function () {
@@ -27,12 +27,12 @@ var Bar = function () {
27
27
  if (floatInterval) {
28
28
  var rank = floatInterval.rank;
29
29
  setCurrentRank(rank);
30
- if (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) {
31
- setText("\u51FB\u8D25\u4E86".concat((0, utils_1.rankPercent)((reportRank === null || reportRank === void 0 ? void 0 : reportRank.rank) || 0, (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) || 0).toFixed(0), "%\u5019\u9009\u4EBA"));
32
- }
33
- else {
34
- setText('');
35
- }
30
+ }
31
+ if (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) {
32
+ setText("\u51FB\u8D25\u4E86".concat((0, utils_1.rankPercent)((reportRank === null || reportRank === void 0 ? void 0 : reportRank.rank) || 0, (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) || 0).toFixed(0), "%\u5019\u9009\u4EBA"));
33
+ }
34
+ else {
35
+ setText('');
36
36
  }
37
37
  }, [score, reportRank, scoreRankIntervals]);
38
38
  if (!scoreRankIntervals || (scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.length) === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",