eli-video-interview 1.2.3-5.alpha.4 → 1.2.3-5.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.
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
1
  import { BaseAccordionProps } from './interface';
2
+ import React from 'react';
3
3
  declare const _default: React.NamedExoticComponent<BaseAccordionProps>;
4
4
  export default _default;
@@ -10,19 +10,19 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
- import { memo, useCallback, useEffect, useRef, useState } from 'react';
14
- import { Box, Button, confirm } from 'fbm-ui';
15
- import { Accordion, AccordionDetails, AccordionSummary, List, ListItem, ListItemText } from 'fbm-ui/lib/mui';
16
- import { useDebounceFn, useHover } from 'ahooks';
13
+ import { defaultQuestionParams } from '../QuestionUpdate/const';
14
+ import { MAX_DISPLAY_SIZE } from './const';
15
+ import { AccordionRoot, AccordionSubTitle, AccordionTitle } from './styled';
17
16
  import { IS_AI_ANALYSIS } from "../../../../constants/ai-question";
18
17
  import { LANGUAGE_TYPE } from "../../../../enum/ai-question";
19
18
  import { Done, ExpandMore } from '@mui/icons-material';
20
19
  import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
21
20
  import { useQuestionPreviewStore } from "../../../../store/ai-question/question-preview-store";
22
21
  import { uniqueId } from "../../../../utils/utils";
23
- import { defaultQuestionParams } from '../QuestionUpdate/const';
24
- import { MAX_DISPLAY_SIZE } from './const';
25
- import { AccordionRoot, AccordionSubTitle, AccordionTitle } from './styled';
22
+ import { useDebounceFn, useHover } from 'ahooks';
23
+ import { Box, Button, confirm } from 'fbm-ui';
24
+ import { Accordion, AccordionDetails, AccordionSummary, List, ListItem, ListItemText } from 'fbm-ui/lib/mui';
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
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;
@@ -86,7 +86,16 @@ var BaseAccordion = function (props) {
86
86
  setQuestionsList(filterList);
87
87
  }
88
88
  }, [list, isShowOnlyAITest]);
89
- return (_jsx(_Fragment, { children: questionsList.length > 0 && (_jsx(AccordionRoot, { children: _jsxs(Accordion, __assign({ defaultExpanded: index === 0 }, { children: [_jsx(AccordionSummary, __assign({ expandIcon: _jsx(ExpandMore, {}) }, { children: _jsxs(Box, __assign({ flex: "1 0", display: "flex", justifyContent: "space-between", alignItems: "center", overflow: "hidden" }, { children: [_jsxs(Box, __assign({ flex: "1 0", overflow: "hidden" }, { children: [_jsx(AccordionTitle, { children: positionName || name }), positionName && _jsxs(AccordionSubTitle, __assign({ color: "secondary" }, { children: ["\u6B65\u9AA4\uFF1A", name] }))] })), isShowSummaryAction && (_jsx(Button, __assign({ sx: { mr: 1, flexShrink: 0, height: 24 }, variant: "outlined", color: "inherit", size: "small", onClick: handleUseAllQuestion }, { children: "\u4F7F\u7528" })))] })) })), _jsxs(AccordionDetails, { children: [_jsx(List, __assign({ ref: ref }, { children: questionsList.map(function (item) {
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
+ '&:after': {
91
+ content: 'url(//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn)',
92
+ position: 'absolute',
93
+ top: -1,
94
+ right: 0,
95
+ width: 38,
96
+ height: 16,
97
+ },
98
+ } }, { children: _jsxs(Box, __assign({ flex: "1 0", display: "flex", justifyContent: "space-between", alignItems: "center", overflow: "hidden" }, { children: [_jsxs(Box, __assign({ flex: "1 0", overflow: "hidden" }, { children: [_jsx(AccordionTitle, { children: positionName || name }), positionName && _jsxs(AccordionSubTitle, __assign({ color: "secondary" }, { children: ["\u6B65\u9AA4\uFF1A", name] }))] })), isShowSummaryAction && (_jsx(Button, __assign({ sx: { mr: 1, flexShrink: 0, height: 24 }, variant: "outlined", color: "inherit", size: "small", onClick: handleUseAllQuestion }, { children: "\u4F7F\u7528" })))] })) })), _jsxs(AccordionDetails, { children: [_jsx(List, __assign({ ref: ref }, { children: questionsList.map(function (item) {
90
99
  var token = item.token, name = item.name, category = item.category;
91
100
  var isUsed = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps.find(function (step) { return step.originToken === token; });
92
101
  return (_jsx(ListItem, __assign({ secondaryAction: [
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
1
  import { BaseAccordionProps } from './interface';
2
+ import React from 'react';
3
3
  declare const _default: React.NamedExoticComponent<BaseAccordionProps>;
4
4
  export default _default;
@@ -12,19 +12,19 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  var jsx_runtime_1 = require("react/jsx-runtime");
15
- var react_1 = require("react");
16
- var fbm_ui_1 = require("fbm-ui");
17
- var mui_1 = require("fbm-ui/lib/mui");
18
- var ahooks_1 = require("ahooks");
15
+ var const_1 = require("../QuestionUpdate/const");
16
+ var const_2 = require("./const");
17
+ var styled_1 = require("./styled");
19
18
  var ai_question_1 = require("../../../../constants/ai-question");
20
19
  var ai_question_2 = require("../../../../enum/ai-question");
21
20
  var icons_material_1 = require("@mui/icons-material");
22
21
  var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
23
22
  var question_preview_store_1 = require("../../../../store/ai-question/question-preview-store");
24
23
  var utils_1 = require("../../../../utils/utils");
25
- var const_1 = require("../QuestionUpdate/const");
26
- var const_2 = require("./const");
27
- var styled_1 = require("./styled");
24
+ var ahooks_1 = require("ahooks");
25
+ var fbm_ui_1 = require("fbm-ui");
26
+ var mui_1 = require("fbm-ui/lib/mui");
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
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;
@@ -88,7 +88,16 @@ var BaseAccordion = function (props) {
88
88
  setQuestionsList(filterList);
89
89
  }
90
90
  }, [list, isShowOnlyAITest]);
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, {}) }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", justifyContent: "space-between", alignItems: "center", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.AccordionTitle, { children: positionName || name }), positionName && (0, jsx_runtime_1.jsxs)(styled_1.AccordionSubTitle, __assign({ color: "secondary" }, { children: ["\u6B65\u9AA4\uFF1A", name] }))] })), isShowSummaryAction && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ sx: { mr: 1, flexShrink: 0, height: 24 }, variant: "outlined", color: "inherit", size: "small", onClick: handleUseAllQuestion }, { children: "\u4F7F\u7528" })))] })) })), (0, jsx_runtime_1.jsxs)(mui_1.AccordionDetails, { children: [(0, jsx_runtime_1.jsx)(mui_1.List, __assign({ ref: ref }, { children: questionsList.map(function (item) {
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
+ '&:after': {
93
+ content: 'url(//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn)',
94
+ position: 'absolute',
95
+ top: -1,
96
+ right: 0,
97
+ width: 38,
98
+ height: 16,
99
+ },
100
+ } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", justifyContent: "space-between", alignItems: "center", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.AccordionTitle, { children: positionName || name }), positionName && (0, jsx_runtime_1.jsxs)(styled_1.AccordionSubTitle, __assign({ color: "secondary" }, { children: ["\u6B65\u9AA4\uFF1A", name] }))] })), isShowSummaryAction && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ sx: { mr: 1, flexShrink: 0, height: 24 }, variant: "outlined", color: "inherit", size: "small", onClick: handleUseAllQuestion }, { children: "\u4F7F\u7528" })))] })) })), (0, jsx_runtime_1.jsxs)(mui_1.AccordionDetails, { children: [(0, jsx_runtime_1.jsx)(mui_1.List, __assign({ ref: ref }, { children: questionsList.map(function (item) {
92
101
  var token = item.token, name = item.name, category = item.category;
93
102
  var isUsed = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps.find(function (step) { return step.originToken === token; });
94
103
  return ((0, jsx_runtime_1.jsx)(mui_1.ListItem, __assign({ secondaryAction: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.35.alpha.4",
3
+ "version": "1.2.35.alpha.5",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",