eli-video-interview 1.6.1 → 1.6.2

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.
@@ -14,7 +14,6 @@ import AIEvaluate from './components/AIEvaluate';
14
14
  import CapabilityTable from './components/CapabilityTable/CapabilityTable';
15
15
  import { FormReport } from './components/Form';
16
16
  import NotFinish from './components/NotFinish';
17
- import SectionTabs from './components/SectionTabs/SectionTabs';
18
17
  import V3Header from './components/V3Header/V3Header';
19
18
  import VideoQuestion from './components/VideoQuestion';
20
19
  import { COMPLETED_STATUS, INTERVIEW_STATUS } from "../../enum/ai-report";
@@ -25,7 +24,7 @@ import { Box, Button, Typography } from 'fbm-ui';
25
24
  import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
26
25
  var NO_ANSWER = INTERVIEW_STATUS.NO_ANSWER;
27
26
  var AiReportRoot = forwardRef(function (props, ref) {
28
- var token = props.token, v3AssetBase = props.v3AssetBase, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onExportReportClick = props.onExportReportClick, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo, fetchReportUrl = props.fetchReportUrl, isExportPdf = props.isExportPdf;
27
+ var token = props.token, v3AssetBase = props.v3AssetBase, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo, isExportPdf = props.isExportPdf;
29
28
  var firstLoad = useRef(true);
30
29
  var _a = useAiReportStore(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult, interviewCheat = _a.interviewCheat;
31
30
  var _b = (reportResult || {}).collection, collection = _b === void 0 ? [] : _b;
@@ -73,18 +72,18 @@ var AiReportRoot = forwardRef(function (props, ref) {
73
72
  if (status === NO_ANSWER) {
74
73
  return (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", style: { marginTop: '149px' } }, { children: [_jsx(Box, { children: _jsx("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/CandidateInfoEmpty.png", alt: "", style: { width: '140px', height: '140px' } }) }), _jsx(Box, __assign({ mt: 2 }, { children: _jsx(Typography, __assign({ variant: "body1", color: "textPrimary", style: { fontWeight: '500' } }, { children: "\u8BE5\u5019\u9009\u4EBA\u5C1A\u672A\u5F00\u59CB\u9762\u8BD5" })) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('sendReminder')) && (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ style: { marginTop: '2px' } }, { children: _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u82E5\u957F\u65F6\u95F4\u672A\u5F00\u59CB\uFF0C\u5EFA\u8BAE\u4F60\u7ED9\u5019\u9009\u4EBA\u53D1\u9001\u77ED\u4FE1\u63D0\u9192" })) })), _jsx(Box, __assign({ mt: 2 }, { children: _jsx(Button, __assign({ size: "large", variant: "outlined", color: "primary", disabled: reminderSent, onClick: onSendReminderClick }, { children: reminderSent ? '已提醒' : '发送提醒' })) }))] }))] })));
75
74
  }
76
- return (_jsxs(Box, __assign({ sx: { background: '#F7F8FA', minHeight: 618, px: 3 } }, { children: [_jsx(SectionTabs, { hasRisk: hasRisk, operableButtons: operableButtons, onExportReportClick: onExportReportClick, fetchReportUrl: fetchReportUrl }), _jsx(Box, __assign({ sx: {
77
- py: 2,
78
- } }, { children: _jsxs(Box, __assign({ sx: {
79
- maxWidth: 1342,
80
- mx: 'auto',
81
- backgroundColor: '#fff',
82
- border: '1px solid rgba(0,0,0,0.06)',
83
- boxShadow: '0 6px 24px rgba(0,0,0,0.10)',
84
- borderRadius: 2,
85
- overflow: 'hidden',
86
- pb: 3,
87
- } }, { children: [hasRisk && (_jsx(Box, __assign({ id: "report-risk-alert" }, { children: _jsx(NotFinish, {}) }))), _jsx(V3Header, { v3AssetBase: v3AssetBase, status: status, customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo }), _jsxs(Box, __assign({ sx: { mx: 2, mt: 1.5 } }, { children: [((collection === null || collection === void 0 ? void 0 : collection.length) > 0 || !!(reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation)) && (_jsx(AIEvaluate, {})), _jsx(CapabilityTable, {}), fetchFormResult && _jsx(FormReport, { fetchFormResult: fetchFormResult }), _jsx(VideoQuestion, { isExportPdf: isExportPdf })] }))] })) }))] })));
75
+ return (_jsx(Box, __assign({ sx: { background: '#F7F8FA', minHeight: 618, px: 3 } }, { children: _jsx(Box, __assign({ sx: {
76
+ py: 2,
77
+ } }, { children: _jsxs(Box, __assign({ sx: {
78
+ maxWidth: 1342,
79
+ mx: 'auto',
80
+ backgroundColor: '#fff',
81
+ border: '1px solid rgba(0,0,0,0.06)',
82
+ boxShadow: '0 6px 24px rgba(0,0,0,0.10)',
83
+ borderRadius: 2,
84
+ overflow: 'hidden',
85
+ pb: 3,
86
+ } }, { children: [hasRisk && (_jsx(Box, __assign({ id: "report-risk-alert" }, { children: _jsx(NotFinish, {}) }))), _jsx(V3Header, { v3AssetBase: v3AssetBase, status: status, customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo }), _jsxs(Box, __assign({ sx: { mx: 2, mt: 1.5 } }, { children: [((collection === null || collection === void 0 ? void 0 : collection.length) > 0 || !!(reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation)) && (_jsx(AIEvaluate, {})), _jsx(CapabilityTable, {}), fetchFormResult && _jsx(FormReport, { fetchFormResult: fetchFormResult }), _jsx(VideoQuestion, { isExportPdf: isExportPdf })] }))] })) })) })));
88
87
  }, [
89
88
  loading,
90
89
  status,
@@ -95,7 +94,6 @@ var AiReportRoot = forwardRef(function (props, ref) {
95
94
  customScore,
96
95
  handleRefreshSuccess,
97
96
  fetchCandidateInfo,
98
- fetchReportUrl,
99
97
  fetchFormResult,
100
98
  isExportPdf,
101
99
  ]);
@@ -19,7 +19,6 @@ var AIEvaluate_1 = __importDefault(require("./components/AIEvaluate"));
19
19
  var CapabilityTable_1 = __importDefault(require("./components/CapabilityTable/CapabilityTable"));
20
20
  var Form_1 = require("./components/Form");
21
21
  var NotFinish_1 = __importDefault(require("./components/NotFinish"));
22
- var SectionTabs_1 = __importDefault(require("./components/SectionTabs/SectionTabs"));
23
22
  var V3Header_1 = __importDefault(require("./components/V3Header/V3Header"));
24
23
  var VideoQuestion_1 = __importDefault(require("./components/VideoQuestion"));
25
24
  var ai_report_1 = require("../../enum/ai-report");
@@ -30,7 +29,7 @@ var fbm_ui_1 = require("fbm-ui");
30
29
  var react_1 = require("react");
31
30
  var NO_ANSWER = ai_report_1.INTERVIEW_STATUS.NO_ANSWER;
32
31
  var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
33
- var token = props.token, v3AssetBase = props.v3AssetBase, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onExportReportClick = props.onExportReportClick, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo, fetchReportUrl = props.fetchReportUrl, isExportPdf = props.isExportPdf;
32
+ var token = props.token, v3AssetBase = props.v3AssetBase, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick, fetchFormResult = props.fetchFormResult, fetchCandidateInfo = props.fetchCandidateInfo, isExportPdf = props.isExportPdf;
34
33
  var firstLoad = (0, react_1.useRef)(true);
35
34
  var _a = (0, global_store_1.useAiReportStore)(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult, interviewCheat = _a.interviewCheat;
36
35
  var _b = (reportResult || {}).collection, collection = _b === void 0 ? [] : _b;
@@ -78,18 +77,18 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
78
77
  if (status === NO_ANSWER) {
79
78
  return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", style: { marginTop: '149px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/CandidateInfoEmpty.png", alt: "", style: { width: '140px', height: '140px' } }) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", color: "textPrimary", style: { fontWeight: '500' } }, { children: "\u8BE5\u5019\u9009\u4EBA\u5C1A\u672A\u5F00\u59CB\u9762\u8BD5" })) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('sendReminder')) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ style: { marginTop: '2px' } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u82E5\u957F\u65F6\u95F4\u672A\u5F00\u59CB\uFF0C\u5EFA\u8BAE\u4F60\u7ED9\u5019\u9009\u4EBA\u53D1\u9001\u77ED\u4FE1\u63D0\u9192" })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ size: "large", variant: "outlined", color: "primary", disabled: reminderSent, onClick: onSendReminderClick }, { children: reminderSent ? '已提醒' : '发送提醒' })) }))] }))] })));
80
79
  }
81
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { background: '#F7F8FA', minHeight: 618, px: 3 } }, { children: [(0, jsx_runtime_1.jsx)(SectionTabs_1.default, { hasRisk: hasRisk, operableButtons: operableButtons, onExportReportClick: onExportReportClick, fetchReportUrl: fetchReportUrl }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
82
- py: 2,
83
- } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: {
84
- maxWidth: 1342,
85
- mx: 'auto',
86
- backgroundColor: '#fff',
87
- border: '1px solid rgba(0,0,0,0.06)',
88
- boxShadow: '0 6px 24px rgba(0,0,0,0.10)',
89
- borderRadius: 2,
90
- overflow: 'hidden',
91
- pb: 3,
92
- } }, { children: [hasRisk && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ id: "report-risk-alert" }, { children: (0, jsx_runtime_1.jsx)(NotFinish_1.default, {}) }))), (0, jsx_runtime_1.jsx)(V3Header_1.default, { v3AssetBase: v3AssetBase, status: status, customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { mx: 2, mt: 1.5 } }, { children: [((collection === null || collection === void 0 ? void 0 : collection.length) > 0 || !!(reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation)) && ((0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {})), (0, jsx_runtime_1.jsx)(CapabilityTable_1.default, {}), fetchFormResult && (0, jsx_runtime_1.jsx)(Form_1.FormReport, { fetchFormResult: fetchFormResult }), (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, { isExportPdf: isExportPdf })] }))] })) }))] })));
80
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { background: '#F7F8FA', minHeight: 618, px: 3 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
81
+ py: 2,
82
+ } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: {
83
+ maxWidth: 1342,
84
+ mx: 'auto',
85
+ backgroundColor: '#fff',
86
+ border: '1px solid rgba(0,0,0,0.06)',
87
+ boxShadow: '0 6px 24px rgba(0,0,0,0.10)',
88
+ borderRadius: 2,
89
+ overflow: 'hidden',
90
+ pb: 3,
91
+ } }, { children: [hasRisk && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ id: "report-risk-alert" }, { children: (0, jsx_runtime_1.jsx)(NotFinish_1.default, {}) }))), (0, jsx_runtime_1.jsx)(V3Header_1.default, { v3AssetBase: v3AssetBase, status: status, customScore: customScore, onRefreshSuccess: handleRefreshSuccess, fetchCandidateInfo: fetchCandidateInfo }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { mx: 2, mt: 1.5 } }, { children: [((collection === null || collection === void 0 ? void 0 : collection.length) > 0 || !!(reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaceEvaluation)) && ((0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {})), (0, jsx_runtime_1.jsx)(CapabilityTable_1.default, {}), fetchFormResult && (0, jsx_runtime_1.jsx)(Form_1.FormReport, { fetchFormResult: fetchFormResult }), (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, { isExportPdf: isExportPdf })] }))] })) })) })));
93
92
  }, [
94
93
  loading,
95
94
  status,
@@ -100,7 +99,6 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
100
99
  customScore,
101
100
  handleRefreshSuccess,
102
101
  fetchCandidateInfo,
103
- fetchReportUrl,
104
102
  fetchFormResult,
105
103
  isExportPdf,
106
104
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",