eli-video-interview 1.6.3 → 1.6.4

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.
@@ -28,7 +28,7 @@ var __read = (this && this.__read) || function (o, n) {
28
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
29
  import { Box, Stack } from 'fbm-ui/lib/mui';
30
30
  import { Button, IconButton, Message, Popover, Typography } from 'fbm-ui';
31
- import { RefreshIcon } from 'fbm-icons';
31
+ import { RefreshIcon, ShareIcon } from 'fbm-icons';
32
32
  import { useRequest } from 'ahooks';
33
33
  import dayjs from 'dayjs';
34
34
  import { useEffect, useMemo, useState } from 'react';
@@ -136,7 +136,20 @@ var V3Header = function (_a) {
136
136
  fontSize: 28,
137
137
  lineHeight: '39px',
138
138
  color: 'rgba(0,0,0,0.86)',
139
- } }, { children: "AI\u9762\u8BD5\u62A5\u544A" })), _jsxs(Typography, __assign({ variant: "body2", color: "rgba(74,74,74,0.72)", sx: { ml: 1 } }, { children: ["\u62A5\u544A\u751F\u6210\u65F6\u95F4\uFF1A", dayjs(createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: refreshContent, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(IconButton, __assign({ onClick: function () { return setOpenRefresh(true); }, size: "small" }, { children: _jsx(RefreshIcon, { sx: { color: '#009908' } }) })) }))), _jsx(Box, { sx: { flex: 1 } }), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && onExportReportClick && (_jsx(Button, __assign({ variant: "outlined", size: "small", onClick: onExportReportClick, sx: { color: '#fff', borderColor: 'rgba(255,255,255,0.85)', whiteSpace: 'nowrap' } }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })) })), _jsx(Box, __assign({ sx: { px: 3, py: 2 } }, { children: _jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 3 }, { children: [_jsx(Box, __assign({ width: 137, height: 170, borderRadius: 2, overflow: "hidden", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", bgcolor: "#F2F5F3" }, { children: (candidate === null || candidate === void 0 ? void 0 : candidate.avatar) && !avatarErr ? (_jsx("img", { src: candidate.avatar, alt: "", onError: function () { return setAvatarErr(true); }, style: { width: '100%', height: '100%', objectFit: 'cover' } })) : (_jsx(DefaultAvatar, {})) })), _jsx(Box, __assign({ flex: "1 1 auto", minWidth: 0, sx: {
139
+ } }, { children: "AI\u9762\u8BD5\u62A5\u544A" })), _jsxs(Typography, __assign({ variant: "body2", color: "rgba(74,74,74,0.72)", sx: { ml: 1 } }, { children: ["\u62A5\u544A\u751F\u6210\u65F6\u95F4\uFF1A", dayjs(createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: refreshContent, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(IconButton, __assign({ onClick: function () { return setOpenRefresh(true); }, size: "small" }, { children: _jsx(RefreshIcon, { sx: { color: '#009908' } }) })) }))), _jsx(Box, { sx: { flex: 1 } }), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && onExportReportClick && (_jsxs(Typography, __assign({ variant: "body2", onClick: onExportReportClick, sx: {
140
+ color: '#4BCA50',
141
+ display: 'inline-flex',
142
+ alignItems: 'center',
143
+ gap: 0.5,
144
+ cursor: 'pointer',
145
+ fontSize: 14,
146
+ whiteSpace: 'nowrap',
147
+ bgcolor: '#fff',
148
+ borderRadius: '999px',
149
+ px: 1.5,
150
+ py: 0.5,
151
+ boxShadow: '0 2px 6px rgba(0,0,0,0.10)',
152
+ } }, { children: ["\u5BFC\u51FA\u62A5\u544A", _jsx(ShareIcon, { sx: { width: 16, height: 16 } })] })))] })) })), _jsx(Box, __assign({ sx: { px: 3, py: 2 } }, { children: _jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 3 }, { children: [_jsx(Box, __assign({ width: 137, height: 170, borderRadius: 2, overflow: "hidden", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", bgcolor: "#F2F5F3" }, { children: (candidate === null || candidate === void 0 ? void 0 : candidate.avatar) && !avatarErr ? (_jsx("img", { src: candidate.avatar, alt: "", onError: function () { return setAvatarErr(true); }, style: { width: '100%', height: '100%', objectFit: 'cover' } })) : (_jsx(DefaultAvatar, {})) })), _jsx(Box, __assign({ flex: "1 1 auto", minWidth: 0, sx: {
140
153
  background: '#FBFDFC',
141
154
  borderRadius: 2,
142
155
  px: 2,
@@ -141,7 +141,20 @@ var V3Header = function (_a) {
141
141
  fontSize: 28,
142
142
  lineHeight: '39px',
143
143
  color: 'rgba(0,0,0,0.86)',
144
- } }, { children: "AI\u9762\u8BD5\u62A5\u544A" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(74,74,74,0.72)", sx: { ml: 1 } }, { children: ["\u62A5\u544A\u751F\u6210\u65F6\u95F4\uFF1A", (0, dayjs_1.default)(createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: refreshContent, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ onClick: function () { return setOpenRefresh(true); }, size: "small" }, { children: (0, jsx_runtime_1.jsx)(fbm_icons_1.RefreshIcon, { sx: { color: '#009908' } }) })) }))), (0, jsx_runtime_1.jsx)(mui_1.Box, { sx: { flex: 1 } }), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && onExportReportClick && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", onClick: onExportReportClick, sx: { color: '#fff', borderColor: 'rgba(255,255,255,0.85)', whiteSpace: 'nowrap' } }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ sx: { px: 3, py: 2 } }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 3 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ width: 137, height: 170, borderRadius: 2, overflow: "hidden", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", bgcolor: "#F2F5F3" }, { children: (candidate === null || candidate === void 0 ? void 0 : candidate.avatar) && !avatarErr ? ((0, jsx_runtime_1.jsx)("img", { src: candidate.avatar, alt: "", onError: function () { return setAvatarErr(true); }, style: { width: '100%', height: '100%', objectFit: 'cover' } })) : ((0, jsx_runtime_1.jsx)(DefaultAvatar, {})) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1 1 auto", minWidth: 0, sx: {
144
+ } }, { children: "AI\u9762\u8BD5\u62A5\u544A" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(74,74,74,0.72)", sx: { ml: 1 } }, { children: ["\u62A5\u544A\u751F\u6210\u65F6\u95F4\uFF1A", (0, dayjs_1.default)(createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: refreshContent, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ onClick: function () { return setOpenRefresh(true); }, size: "small" }, { children: (0, jsx_runtime_1.jsx)(fbm_icons_1.RefreshIcon, { sx: { color: '#009908' } }) })) }))), (0, jsx_runtime_1.jsx)(mui_1.Box, { sx: { flex: 1 } }), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && onExportReportClick && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", onClick: onExportReportClick, sx: {
145
+ color: '#4BCA50',
146
+ display: 'inline-flex',
147
+ alignItems: 'center',
148
+ gap: 0.5,
149
+ cursor: 'pointer',
150
+ fontSize: 14,
151
+ whiteSpace: 'nowrap',
152
+ bgcolor: '#fff',
153
+ borderRadius: '999px',
154
+ px: 1.5,
155
+ py: 0.5,
156
+ boxShadow: '0 2px 6px rgba(0,0,0,0.10)',
157
+ } }, { children: ["\u5BFC\u51FA\u62A5\u544A", (0, jsx_runtime_1.jsx)(fbm_icons_1.ShareIcon, { sx: { width: 16, height: 16 } })] })))] })) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ sx: { px: 3, py: 2 } }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 3 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ width: 137, height: 170, borderRadius: 2, overflow: "hidden", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", bgcolor: "#F2F5F3" }, { children: (candidate === null || candidate === void 0 ? void 0 : candidate.avatar) && !avatarErr ? ((0, jsx_runtime_1.jsx)("img", { src: candidate.avatar, alt: "", onError: function () { return setAvatarErr(true); }, style: { width: '100%', height: '100%', objectFit: 'cover' } })) : ((0, jsx_runtime_1.jsx)(DefaultAvatar, {})) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1 1 auto", minWidth: 0, sx: {
145
158
  background: '#FBFDFC',
146
159
  borderRadius: 2,
147
160
  px: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",