eli-video-interview 1.6.4 → 1.6.5

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.
@@ -250,9 +250,6 @@ var Graph = function (_a) {
250
250
  draw(layout, items, pathRef.current, ctx);
251
251
  }
252
252
  }, [ctx, items, height, ITEM_SPACING]);
253
- // useEffect(() => {
254
- // console.log(pathRef);
255
- // }, [pathRef]);
256
253
  var handleMouseMove = useCallback(function (e) {
257
254
  if (ctx) {
258
255
  var p = pathRef.current.find(function (p) { return isInPath(e.nativeEvent.offsetX, e.nativeEvent.offsetY, p, ctx); });
@@ -17,7 +17,7 @@ import { useAiReportStore } from "../../../../store/ai-report/global-store";
17
17
  import { formatScore } from "../../../../utils/utils";
18
18
  var HeaderCell = function (_a) {
19
19
  var children = _a.children, _b = _a.width, width = _b === void 0 ? 'auto' : _b;
20
- return (_jsx(Box, __assign({ width: width, flexShrink: 0, py: 1, px: 1.5, bgcolor: "#EBFCF7" }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#00996B', fontSize: 13, lineHeight: '20px' } }, { children: children })) })));
20
+ return (_jsx(Box, __assign({ width: width, flexShrink: 0, py: 1, px: 1.5, bgcolor: "#EBFCF7", display: "flex", alignItems: "center", justifyContent: "center" }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#00996B', fontSize: 13, lineHeight: '20px' } }, { children: children })) })));
21
21
  };
22
22
  var CapabilityTable = function () {
23
23
  var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
@@ -56,7 +56,7 @@ var CapabilityTable = function () {
56
56
  return (_jsx(Box, __assign({ id: "report-capability", px: 2, mt: 3 }, { children: _jsxs(Box, __assign({ mt: 0.5, border: "1px solid #E7F4EC", borderRadius: 2, overflow: "hidden" }, { children: [_jsxs(Stack, __assign({ direction: "row" }, { children: [_jsx(HeaderCell, __assign({ width: "160px" }, { children: "\u80DC\u4EFB\u529B" })), _jsx(Box, __assign({ flex: "1", minWidth: 0 }, { children: _jsx(HeaderCell, { children: "\u5C97\u4F4D\u91CD\u70B9\u8003\u5BDF" }) })), _jsx(Box, __assign({ flex: "1", minWidth: 0 }, { children: _jsx(HeaderCell, { children: "\u9762\u8BD5\u8BC4\u4EF7" }) })), _jsx(HeaderCell, __assign({ width: "90px" }, { children: "\u5F97\u5206" }))] })), rows.map(function (row) {
57
57
  var count = row.collectionToken ? groupCounts[row.collectionToken] : undefined;
58
58
  var score = typeof row.finalScore === 'number' && row.finalScore > 0 ? "".concat(formatScore(row.finalScore), "\u5206") : '-';
59
- return (_jsx(Box, __assign({ borderTop: "1px solid #F0F6F2" }, { children: _jsxs(Stack, __assign({ direction: "row", alignItems: "stretch" }, { children: [_jsxs(Box, __assign({ width: "160px", flexShrink: 0, p: 1.5 }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: 500, sx: { color: 'rgba(0,0,0,0.6)', fontSize: 14 } }, { children: row.name })), count && (_jsx(Box, __assign({ sx: { display: 'inline-flex', alignItems: 'center', bgcolor: '#E8F3FF', color: '#007CFD', borderRadius: '999px', px: 1, py: 0.25, mt: 0.5 } }, { children: _jsxs(Typography, __assign({ variant: "caption", sx: { color: '#007CFD', fontSize: 12, lineHeight: 1 } }, { children: [count.main, "\u4E3B\u95EE\u9898+", count.followups, "\u8FFD\u95EE"] })) })))] })), _jsx(Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: (row.keyPoints.length > 0 ? row.keyPoints : ['-']).map(function (point, i) { return (_jsx(Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 }, display: "block" }, { children: point }), i)); }) })), _jsx(Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: row.evaluation ? (_jsx(Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 } }, { children: row.evaluation }))) : (_jsx(Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.26)" }, { children: "-" }))) })), _jsx(Box, __assign({ width: "90px", flexShrink: 0, p: 1.5, textAlign: "right" }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#03BA4C' } }, { children: score })) }))] })) }), row.step.token));
59
+ return (_jsx(Box, __assign({ borderTop: "1px solid #F0F6F2" }, { children: _jsxs(Stack, __assign({ direction: "row", alignItems: "stretch" }, { children: [_jsxs(Box, __assign({ width: "160px", flexShrink: 0, p: 1.5, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: 500, sx: { color: 'rgba(0,0,0,0.6)', fontSize: 14 } }, { children: row.name })), count && (_jsx(Box, __assign({ sx: { display: 'inline-flex', alignItems: 'center', bgcolor: '#E8F3FF', color: '#007CFD', borderRadius: '999px', px: 1, py: 0.25, mt: 0.5 } }, { children: _jsxs(Typography, __assign({ variant: "caption", sx: { color: '#007CFD', fontSize: 12, lineHeight: 1 } }, { children: [count.main, "\u4E3B\u95EE\u9898+", count.followups, "\u8FFD\u95EE"] })) })))] })), _jsx(Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: (row.keyPoints.length > 0 ? row.keyPoints : ['-']).map(function (point, i) { return (_jsx(Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 }, display: "block" }, { children: point }), i)); }) })), _jsx(Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: row.evaluation ? (_jsx(Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 } }, { children: row.evaluation }))) : (_jsx(Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.26)" }, { children: "-" }))) })), _jsx(Box, __assign({ width: "90px", flexShrink: 0, p: 1.5, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center" }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#03BA4C' } }, { children: score })) }))] })) }), row.step.token));
60
60
  })] })) })));
61
61
  };
62
62
  export default CapabilityTable;
@@ -254,9 +254,6 @@ var Graph = function (_a) {
254
254
  draw(layout, items, pathRef.current, ctx);
255
255
  }
256
256
  }, [ctx, items, height, ITEM_SPACING]);
257
- // useEffect(() => {
258
- // console.log(pathRef);
259
- // }, [pathRef]);
260
257
  var handleMouseMove = (0, react_1.useCallback)(function (e) {
261
258
  if (ctx) {
262
259
  var p = pathRef.current.find(function (p) { return isInPath(e.nativeEvent.offsetX, e.nativeEvent.offsetY, p, ctx); });
@@ -19,7 +19,7 @@ var global_store_1 = require("../../../../store/ai-report/global-store");
19
19
  var utils_1 = require("../../../../utils/utils");
20
20
  var HeaderCell = function (_a) {
21
21
  var children = _a.children, _b = _a.width, width = _b === void 0 ? 'auto' : _b;
22
- return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ width: width, flexShrink: 0, py: 1, px: 1.5, bgcolor: "#EBFCF7" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#00996B', fontSize: 13, lineHeight: '20px' } }, { children: children })) })));
22
+ return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ width: width, flexShrink: 0, py: 1, px: 1.5, bgcolor: "#EBFCF7", display: "flex", alignItems: "center", justifyContent: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#00996B', fontSize: 13, lineHeight: '20px' } }, { children: children })) })));
23
23
  };
24
24
  var CapabilityTable = function () {
25
25
  var reportResult = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }).reportResult;
@@ -58,7 +58,7 @@ var CapabilityTable = function () {
58
58
  return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ id: "report-capability", px: 2, mt: 3 }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ mt: 0.5, border: "1px solid #E7F4EC", borderRadius: 2, overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row" }, { children: [(0, jsx_runtime_1.jsx)(HeaderCell, __assign({ width: "160px" }, { children: "\u80DC\u4EFB\u529B" })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1", minWidth: 0 }, { children: (0, jsx_runtime_1.jsx)(HeaderCell, { children: "\u5C97\u4F4D\u91CD\u70B9\u8003\u5BDF" }) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1", minWidth: 0 }, { children: (0, jsx_runtime_1.jsx)(HeaderCell, { children: "\u9762\u8BD5\u8BC4\u4EF7" }) })), (0, jsx_runtime_1.jsx)(HeaderCell, __assign({ width: "90px" }, { children: "\u5F97\u5206" }))] })), rows.map(function (row) {
59
59
  var count = row.collectionToken ? groupCounts[row.collectionToken] : undefined;
60
60
  var score = typeof row.finalScore === 'number' && row.finalScore > 0 ? "".concat((0, utils_1.formatScore)(row.finalScore), "\u5206") : '-';
61
- return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ borderTop: "1px solid #F0F6F2" }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "stretch" }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ width: "160px", flexShrink: 0, p: 1.5 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 500, sx: { color: 'rgba(0,0,0,0.6)', fontSize: 14 } }, { children: row.name })), count && ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ sx: { display: 'inline-flex', alignItems: 'center', bgcolor: '#E8F3FF', color: '#007CFD', borderRadius: '999px', px: 1, py: 0.25, mt: 0.5 } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", sx: { color: '#007CFD', fontSize: 12, lineHeight: 1 } }, { children: [count.main, "\u4E3B\u95EE\u9898+", count.followups, "\u8FFD\u95EE"] })) })))] })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: (row.keyPoints.length > 0 ? row.keyPoints : ['-']).map(function (point, i) { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 }, display: "block" }, { children: point }), i)); }) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: row.evaluation ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 } }, { children: row.evaluation }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.26)" }, { children: "-" }))) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ width: "90px", flexShrink: 0, p: 1.5, textAlign: "right" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#03BA4C' } }, { children: score })) }))] })) }), row.step.token));
61
+ return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ borderTop: "1px solid #F0F6F2" }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "stretch" }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ width: "160px", flexShrink: 0, p: 1.5, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 500, sx: { color: 'rgba(0,0,0,0.6)', fontSize: 14 } }, { children: row.name })), count && ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ sx: { display: 'inline-flex', alignItems: 'center', bgcolor: '#E8F3FF', color: '#007CFD', borderRadius: '999px', px: 1, py: 0.25, mt: 0.5 } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", sx: { color: '#007CFD', fontSize: 12, lineHeight: 1 } }, { children: [count.main, "\u4E3B\u95EE\u9898+", count.followups, "\u8FFD\u95EE"] })) })))] })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: (row.keyPoints.length > 0 ? row.keyPoints : ['-']).map(function (point, i) { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 }, display: "block" }, { children: point }), i)); }) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1", minWidth: 0, p: 1.5 }, { children: row.evaluation ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 13 } }, { children: row.evaluation }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.26)" }, { children: "-" }))) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ width: "90px", flexShrink: 0, p: 1.5, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#03BA4C' } }, { children: score })) }))] })) }), row.step.token));
62
62
  })] })) })));
63
63
  };
64
64
  exports.default = CapabilityTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",