eli-video-interview 1.2.3-5.alpha.5 → 1.2.3-5.alpha.6

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.
@@ -25,14 +25,14 @@ import { Accordion, AccordionDetails, AccordionSummary, List, ListItem, ListItem
25
25
  import { memo, useCallback, useEffect, useRef, useState } from 'react';
26
26
  var LANGUAGE_TYPE_LIST = [LANGUAGE_TYPE.MANDARIN, LANGUAGE_TYPE.CANTONESE, LANGUAGE_TYPE.JAPANESE, LANGUAGE_TYPE.ENGLISH];
27
27
  var BaseAccordion = function (props) {
28
- var name = props.name, positionName = props.positionName, list = props.list, index = props.index, isShowOnlyAITest = props.isShowOnlyAITest, _a = props.isShowDesc, isShowDesc = _a === void 0 ? false : _a, _b = props.isShowSummaryAction, isShowSummaryAction = _b === void 0 ? false : _b, _c = props.isShowConfirm, isShowConfirm = _c === void 0 ? false : _c, _d = props.isShowPreview, isShowPreview = _d === void 0 ? true : _d;
28
+ var name = props.name, positionName = props.positionName, list = props.list, index = props.index, isShowOnlyAITest = props.isShowOnlyAITest, _a = props.isShowDesc, isShowDesc = _a === void 0 ? false : _a, _b = props.isShowSummaryAction, isShowSummaryAction = _b === void 0 ? false : _b, _c = props.isShowConfirm, isShowConfirm = _c === void 0 ? false : _c, _d = props.isShowPreview, isShowPreview = _d === void 0 ? true : _d, _e = props.isNew, isNew = _e === void 0 ? false : _e;
29
29
  var ref = useRef(null);
30
30
  var isHovering = useHover(ref);
31
31
  var updatePreview = useQuestionPreviewStore().updatePreview;
32
- var _e = useQuestionModelStore(), questionModelData = _e.questionModelData, addModel = _e.addModel;
33
- var _f = useState(false), isPaging = _f[0], setIsPaging = _f[1];
34
- var _g = useState([]), questionsList = _g[0], setQuestionsList = _g[1];
35
- var _h = useState(), hoverItem = _h[0], setHoverItem = _h[1];
32
+ var _f = useQuestionModelStore(), questionModelData = _f.questionModelData, addModel = _f.addModel;
33
+ var _g = useState(false), isPaging = _g[0], setIsPaging = _g[1];
34
+ var _h = useState([]), questionsList = _h[0], setQuestionsList = _h[1];
35
+ var _j = useState(), hoverItem = _j[0], setHoverItem = _j[1];
36
36
  var handlePreview = useDebounceFn(function () {
37
37
  isShowPreview && updatePreview(isHovering, isHovering ? hoverItem : undefined);
38
38
  }, {
@@ -88,7 +88,7 @@ var BaseAccordion = function (props) {
88
88
  }, [list, isShowOnlyAITest]);
89
89
  return (_jsx(_Fragment, { children: questionsList.length > 0 && (_jsx(AccordionRoot, { children: _jsxs(Accordion, __assign({ defaultExpanded: index === 0 }, { children: [_jsx(AccordionSummary, __assign({ expandIcon: _jsx(ExpandMore, {}), sx: {
90
90
  '&:after': {
91
- content: 'url(//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn)',
91
+ content: "".concat(isNew ? 'url(//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn)' : '" "'),
92
92
  position: 'absolute',
93
93
  top: -1,
94
94
  right: 0,
@@ -1,5 +1,6 @@
1
1
  import { AiEvaluationDataList } from '../QuestionTemplate/interface';
2
2
  export interface BaseAccordionProps extends AiEvaluationDataList {
3
+ isNew?: boolean;
3
4
  index?: number;
4
5
  isShowOnlyAITest: boolean;
5
6
  isShowDesc?: boolean;
@@ -27,14 +27,14 @@ var mui_1 = require("fbm-ui/lib/mui");
27
27
  var react_1 = require("react");
28
28
  var LANGUAGE_TYPE_LIST = [ai_question_2.LANGUAGE_TYPE.MANDARIN, ai_question_2.LANGUAGE_TYPE.CANTONESE, ai_question_2.LANGUAGE_TYPE.JAPANESE, ai_question_2.LANGUAGE_TYPE.ENGLISH];
29
29
  var BaseAccordion = function (props) {
30
- var name = props.name, positionName = props.positionName, list = props.list, index = props.index, isShowOnlyAITest = props.isShowOnlyAITest, _a = props.isShowDesc, isShowDesc = _a === void 0 ? false : _a, _b = props.isShowSummaryAction, isShowSummaryAction = _b === void 0 ? false : _b, _c = props.isShowConfirm, isShowConfirm = _c === void 0 ? false : _c, _d = props.isShowPreview, isShowPreview = _d === void 0 ? true : _d;
30
+ var name = props.name, positionName = props.positionName, list = props.list, index = props.index, isShowOnlyAITest = props.isShowOnlyAITest, _a = props.isShowDesc, isShowDesc = _a === void 0 ? false : _a, _b = props.isShowSummaryAction, isShowSummaryAction = _b === void 0 ? false : _b, _c = props.isShowConfirm, isShowConfirm = _c === void 0 ? false : _c, _d = props.isShowPreview, isShowPreview = _d === void 0 ? true : _d, _e = props.isNew, isNew = _e === void 0 ? false : _e;
31
31
  var ref = (0, react_1.useRef)(null);
32
32
  var isHovering = (0, ahooks_1.useHover)(ref);
33
33
  var updatePreview = (0, question_preview_store_1.useQuestionPreviewStore)().updatePreview;
34
- var _e = (0, question_model_store_1.useQuestionModelStore)(), questionModelData = _e.questionModelData, addModel = _e.addModel;
35
- var _f = (0, react_1.useState)(false), isPaging = _f[0], setIsPaging = _f[1];
36
- var _g = (0, react_1.useState)([]), questionsList = _g[0], setQuestionsList = _g[1];
37
- var _h = (0, react_1.useState)(), hoverItem = _h[0], setHoverItem = _h[1];
34
+ var _f = (0, question_model_store_1.useQuestionModelStore)(), questionModelData = _f.questionModelData, addModel = _f.addModel;
35
+ var _g = (0, react_1.useState)(false), isPaging = _g[0], setIsPaging = _g[1];
36
+ var _h = (0, react_1.useState)([]), questionsList = _h[0], setQuestionsList = _h[1];
37
+ var _j = (0, react_1.useState)(), hoverItem = _j[0], setHoverItem = _j[1];
38
38
  var handlePreview = (0, ahooks_1.useDebounceFn)(function () {
39
39
  isShowPreview && updatePreview(isHovering, isHovering ? hoverItem : undefined);
40
40
  }, {
@@ -90,7 +90,7 @@ var BaseAccordion = function (props) {
90
90
  }, [list, isShowOnlyAITest]);
91
91
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: questionsList.length > 0 && ((0, jsx_runtime_1.jsx)(styled_1.AccordionRoot, { children: (0, jsx_runtime_1.jsxs)(mui_1.Accordion, __assign({ defaultExpanded: index === 0 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.AccordionSummary, __assign({ expandIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ExpandMore, {}), sx: {
92
92
  '&:after': {
93
- content: 'url(//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn)',
93
+ content: "".concat(isNew ? 'url(//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn)' : '" "'),
94
94
  position: 'absolute',
95
95
  top: -1,
96
96
  right: 0,
@@ -1,5 +1,6 @@
1
1
  import { AiEvaluationDataList } from '../QuestionTemplate/interface';
2
2
  export interface BaseAccordionProps extends AiEvaluationDataList {
3
+ isNew?: boolean;
3
4
  index?: number;
4
5
  isShowOnlyAITest: boolean;
5
6
  isShowDesc?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.35.alpha.5",
3
+ "version": "1.2.35.alpha.6",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",