eli-video-interview 1.2.42-alpha.4 → 1.2.42-alpha.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.
@@ -29,7 +29,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
29
  import { DinTypography, ReportAvatar, ReportTag } from '../styled';
30
30
  import { useAiReportStore } from "../../../../store/ai-report/global-store";
31
31
  import { getSecondToTime } from "../../../../utils/utils";
32
- import { Message, Typography } from 'fbm-ui';
32
+ import { Box, Message, Typography } from 'fbm-ui';
33
33
  import { Stack } from 'fbm-ui/lib/mui';
34
34
  import { memo, useEffect, useMemo, useState } from 'react';
35
35
  var Form = function (_a) {
@@ -44,6 +44,12 @@ var Form = function (_a) {
44
44
  }
45
45
  }, [fetchCandidateInfo]);
46
46
  var name = data.name, mobile = data.mobile, positionName = data.positionName, avatar = data.avatar, tags = data.tags;
47
- return (_jsxs(Stack, __assign({ direction: "row", minHeight: 221, mt: 13.25 }, { children: [_jsx(ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), _jsxs(Stack, __assign({ spacing: 1 }, { children: [_jsx(DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), _jsxs(Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), _jsx(Stack, __assign({ direction: "row" }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return (_jsx(ReportTag, { children: tag.name }, tag.token)); }) })), _jsxs(Typography, { children: ["\u9762\u8BD5\u65F6\u957F\uFF1A", duration] })] }))] })));
47
+ return (_jsxs(Stack, __assign({ direction: "row", minHeight: 221, mt: 13.25 }, { children: [_jsx(ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), _jsxs(Stack, __assign({ spacing: 1 }, { children: [_jsx(DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), _jsxs(Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), _jsx(Box, __assign({ sx: {
48
+ display: 'flex',
49
+ flexWrap: 'wrap',
50
+ gap: '8px',
51
+ alignItems: 'flex-start',
52
+ width: '450px',
53
+ } }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return (_jsx(ReportTag, { children: tag.name }, tag.token)); }) })), _jsxs(Typography, { children: ["\u9762\u8BD5\u65F6\u957F\uFF1A", duration] })] }))] })));
48
54
  };
49
55
  export default memo(Form);
@@ -80,7 +80,7 @@ function hashString(str) {
80
80
  export var ReportTag = styled(DinTypography)(function (_a) {
81
81
  var children = _a.children;
82
82
  var hash = children ? Math.abs(hashString(children.toString())) % 3 : 0;
83
- return __assign({ padding: '2px 8px', fontSize: '12px', lineHeight: '16px', marginRight: '8px', borderRadius: '177px 177px 177px 177px', border: '1px solid #FFFFFF' }, ReportTagStyles[hash]);
83
+ return __assign(__assign({ flex: '0 1 auto', padding: '2px 8px', fontSize: '12px', lineHeight: '16px', marginRight: '8px', borderRadius: '177px 177px 177px 177px', border: '1px solid #FFFFFF' }, ReportTagStyles[hash]), { mb: 8 });
84
84
  });
85
85
  export var ReportEvaluate = styled(Box)({
86
86
  // margin: 24,
@@ -46,6 +46,12 @@ var Form = function (_a) {
46
46
  }
47
47
  }, [fetchCandidateInfo]);
48
48
  var name = data.name, mobile = data.mobile, positionName = data.positionName, avatar = data.avatar, tags = data.tags;
49
- return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", minHeight: 221, mt: 13.25 }, { children: [(0, jsx_runtime_1.jsx)(styled_1.ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(styled_1.DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row" }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return ((0, jsx_runtime_1.jsx)(styled_1.ReportTag, { children: tag.name }, tag.token)); }) })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, { children: ["\u9762\u8BD5\u65F6\u957F\uFF1A", duration] })] }))] })));
49
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", minHeight: 221, mt: 13.25 }, { children: [(0, jsx_runtime_1.jsx)(styled_1.ReportAvatar, { sx: { mx: 3 }, avatar: avatar }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(styled_1.DinTypography, __assign({ sx: { fontSize: 18 } }, { children: positionName })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1" }, { children: [name, " ", mobile] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
50
+ display: 'flex',
51
+ flexWrap: 'wrap',
52
+ gap: '8px',
53
+ alignItems: 'flex-start',
54
+ width: '450px',
55
+ } }, { children: tags === null || tags === void 0 ? void 0 : tags.map(function (tag) { return ((0, jsx_runtime_1.jsx)(styled_1.ReportTag, { children: tag.name }, tag.token)); }) })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, { children: ["\u9762\u8BD5\u65F6\u957F\uFF1A", duration] })] }))] })));
50
56
  };
51
57
  exports.default = (0, react_1.memo)(Form);
@@ -83,7 +83,7 @@ function hashString(str) {
83
83
  exports.ReportTag = (0, fbm_ui_1.styled)(exports.DinTypography)(function (_a) {
84
84
  var children = _a.children;
85
85
  var hash = children ? Math.abs(hashString(children.toString())) % 3 : 0;
86
- return __assign({ padding: '2px 8px', fontSize: '12px', lineHeight: '16px', marginRight: '8px', borderRadius: '177px 177px 177px 177px', border: '1px solid #FFFFFF' }, ReportTagStyles[hash]);
86
+ return __assign(__assign({ flex: '0 1 auto', padding: '2px 8px', fontSize: '12px', lineHeight: '16px', marginRight: '8px', borderRadius: '177px 177px 177px 177px', border: '1px solid #FFFFFF' }, ReportTagStyles[hash]), { mb: 8 });
87
87
  });
88
88
  exports.ReportEvaluate = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
89
89
  // margin: 24,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.42-alpha.4",
3
+ "version": "1.2.42-alpha.5",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",