eli-video-interview 1.2.8 → 1.2.11
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.
- package/esm/components/BigBallSvg/index.js +1 -1
- package/esm/components/RootProvider/index.js +2 -2
- package/esm/components/ScoreBigBall/index.js +1 -1
- package/esm/components/VideoPreview/index.js +2 -3
- package/esm/constants/ai-question.d.ts +1 -1
- package/esm/modules/ai-ability/Root.js +3 -3
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +2 -2
- package/esm/modules/ai-question/Root.js +5 -5
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +2 -2
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/index.js +3 -3
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +4 -4
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +8 -8
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +1 -1
- package/esm/modules/ai-question/components/BootVideo/index.js +6 -6
- package/esm/modules/ai-question/components/BootVideo/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Header.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Item.js +3 -3
- package/esm/modules/ai-question/components/QuestionModel/List.js +2 -2
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +7 -7
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +3 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +4 -4
- package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +1 -0
- package/esm/modules/ai-report/components/AIEvaluate/Graph.js +29 -12
- package/esm/modules/ai-report/components/NotFinish/index.js +2 -2
- package/esm/modules/ai-report/components/RankingRange/Item.js +2 -2
- package/esm/modules/ai-report/components/RankingRange/index.js +1 -1
- package/esm/modules/ai-report/components/RankingRange/styled.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Report.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/Score.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/index.js +5 -5
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +6 -6
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +3 -3
- package/esm/modules/ai-report/components/VideoQuestion/index.js +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
- package/esm/modules/ai-template/Root.js +5 -5
- package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/esm/modules/ai-template/components/QuestionList/Item.js +1 -1
- package/esm/modules/ai-template/components/TemplateHeader/index.js +1 -1
- package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/esm/modules/ai-template/components/TemplateList/styled.js +1 -1
- package/esm/modules/ai-template/components/TemplateMenu/index.js +3 -3
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +1 -1
- package/esm/modules/ai-template/interface.d.ts +1 -1
- package/esm/store/ai-question/ai-analysis-store.d.ts +1 -1
- package/esm/store/ai-question/ai-analysis-store.js +4 -4
- package/esm/store/ai-question/question-model-store.js +2 -2
- package/esm/store/ai-question/question-preview-store.js +1 -1
- package/esm/store/ai-question/question-update-store.js +1 -1
- package/esm/store/ai-template/global-store.js +1 -1
- package/esm/utils/interceptor.js +2 -2
- package/lib/components/RootProvider/index.js +1 -1
- package/lib/components/ScoreBigBall/index.js +1 -1
- package/lib/components/VideoPreview/index.js +1 -2
- package/lib/constants/ai-question.d.ts +1 -1
- package/lib/modules/ai-ability/Root.js +1 -1
- package/lib/modules/ai-question/Root.js +4 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/index.js +1 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +2 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
- package/lib/modules/ai-question/components/BaseAccordion/index.js +3 -3
- package/lib/modules/ai-question/components/BootVideo/index.js +7 -7
- package/lib/modules/ai-question/components/QuestionModel/Item.js +1 -1
- package/lib/modules/ai-question/components/QuestionModel/List.js +2 -2
- package/lib/modules/ai-question/components/QuestionModel/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +1 -1
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +6 -6
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +2 -2
- package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +1 -0
- package/lib/modules/ai-report/components/AIEvaluate/Graph.js +29 -12
- package/lib/modules/ai-report/components/NotFinish/index.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Report.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Score.js +2 -2
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/index.js +6 -6
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +4 -4
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
- package/lib/modules/ai-template/Root.js +3 -3
- package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/lib/modules/ai-template/components/TemplateList/index.js +2 -2
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/lib/modules/ai-template/components/TemplateMenu/index.js +1 -1
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/lib/modules/ai-template/interface.d.ts +1 -1
- package/lib/store/ai-question/ai-analysis-store.d.ts +1 -1
- package/lib/store/ai-question/ai-analysis-store.js +3 -3
- package/lib/store/ai-question/question-update-store.js +1 -1
- package/lib/utils/interceptor.js +2 -2
- package/package.json +2 -2
|
@@ -12,8 +12,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useEffect, useState } from 'react';
|
|
14
14
|
import { Box, Typography } from 'fbm-ui';
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
15
|
import { scoreRankIntervalColors } from "../../../../constants/ai-report";
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
var Bar = function () {
|
|
18
18
|
var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
|
|
19
19
|
var _b = useState('前0% ~ 100%'), text = _b[0], setText = _b[1];
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Box,
|
|
13
|
+
import { Box, Button, CancelIcon, RefreshIcon, Typography } from 'fbm-ui';
|
|
14
14
|
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
15
15
|
var FAILED = INTERVIEW_STATUS.FAILED;
|
|
16
16
|
var Failed = function (_a) {
|
|
@@ -11,11 +11,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { Box,
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
14
|
+
import { Box, InfoOutlineIcon, Tooltip, Typography } from 'fbm-ui';
|
|
16
15
|
import ReportPie from "../../../../components/Charts/ReportPie";
|
|
17
16
|
// import ScoreLegend from './ScoreLegend';
|
|
18
17
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
18
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
19
19
|
var Report = function () {
|
|
20
20
|
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
21
21
|
var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b;
|
|
@@ -11,13 +11,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useEffect, useState } from 'react';
|
|
14
|
+
import { Box, Button, DownloadIcon, Popover, Typography } from 'fbm-ui';
|
|
14
15
|
import dayjs from 'dayjs';
|
|
15
|
-
import { Box, Popover, Typography, Button, DownloadIcon } from 'fbm-ui';
|
|
16
16
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
import { formatScore } from "../../../../utils/utils";
|
|
18
|
-
import { ScoreTypography, ScoreUnitTypography, RefreshIconRoot } from './styled';
|
|
19
18
|
import RankingRange from '../RankingRange';
|
|
20
19
|
import Bar from './Bar';
|
|
20
|
+
import { RefreshIconRoot, ScoreTypography, ScoreUnitTypography } from './styled';
|
|
21
21
|
var Score = function (_a) {
|
|
22
22
|
var loading = _a.loading, onRefresh = _a.onRefresh;
|
|
23
23
|
var _b = useState(false), openRankingRange = _b[0], setOpenRankingRange = _b[1];
|
|
@@ -11,9 +11,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { Box,
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
14
|
+
import { Box, InfoIcon, Tooltip, Typography } from 'fbm-ui';
|
|
16
15
|
import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
import { formatScore } from "../../../../utils/utils";
|
|
18
18
|
var STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED;
|
|
19
19
|
var ScoreLegend = function (props) {
|
|
@@ -11,14 +11,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Message } from 'fbm-ui';
|
|
14
|
-
import {
|
|
14
|
+
import { Divider, Paper } from 'fbm-ui/lib/mui';
|
|
15
15
|
import { useRequest } from 'ahooks';
|
|
16
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
|
-
import { PostAiInterviewRefresh } from "../../../../services/ai-report";
|
|
18
16
|
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
17
|
+
import { PostAiInterviewRefresh } from "../../../../services/ai-report";
|
|
18
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
21
19
|
import Failed from './Failed';
|
|
20
|
+
import Report from './Report';
|
|
21
|
+
import Score from './Score';
|
|
22
22
|
var FAILED = INTERVIEW_STATUS.FAILED, IN_CALCULATION = INTERVIEW_STATUS.IN_CALCULATION;
|
|
23
23
|
var ScoreReport = function (_a) {
|
|
24
24
|
var onRefreshSuccess = _a.onRefreshSuccess;
|
|
@@ -8,15 +8,15 @@ export declare const ScoreUnitTypography: import("@emotion/styled").StyledCompon
|
|
|
8
8
|
export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
children?: import("react").ReactNode;
|
|
10
10
|
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
11
|
-
color?: "inherit" | "disabled" | "error" | "warning" | "success" | "info" | "secondary" | "
|
|
11
|
+
color?: "inherit" | "disabled" | "action" | "error" | "warning" | "success" | "info" | "secondary" | "primary" | undefined;
|
|
12
12
|
fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
|
|
13
13
|
htmlColor?: string | undefined;
|
|
14
14
|
shapeRendering?: string | undefined;
|
|
15
15
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
16
|
titleAccess?: string | undefined;
|
|
17
17
|
viewBox?: string | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "d" | "y" | "name" | "type" | "onLoad" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
19
19
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
20
|
-
}, "children" | "
|
|
20
|
+
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
22
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -12,8 +12,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useCallback } from 'react';
|
|
14
14
|
import { Box, Typography } from 'fbm-ui';
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
15
|
import update from 'immutability-helper';
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
import ScoreSlider from './ScoreSlider';
|
|
18
18
|
var Abilities = function (_a) {
|
|
19
19
|
var stepIndex = _a.stepIndex;
|
|
@@ -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 {
|
|
14
|
-
import { Box,
|
|
13
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
14
|
+
import { Box, Button, Typography } from 'fbm-ui';
|
|
15
15
|
import { theme } from 'fbm-ui/lib/components/ThemeProvider';
|
|
16
16
|
import { Paper } from 'fbm-ui/lib/mui';
|
|
17
17
|
import update from 'immutability-helper';
|
|
18
|
+
import { QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
19
|
+
import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
|
|
18
20
|
import FormatQuoteIcon from '@mui/icons-material/FormatQuote';
|
|
19
21
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
20
|
-
import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
|
|
21
|
-
import { QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
22
22
|
import { formatScore, highlighKeywords } from "../../../../utils/utils";
|
|
23
|
-
import { QuestionDesc } from './styled';
|
|
24
|
-
import ScoreSlider from './ScoreSlider';
|
|
25
23
|
import Abilities from './Abilities';
|
|
24
|
+
import ScoreSlider from './ScoreSlider';
|
|
25
|
+
import { QuestionDesc } from './styled';
|
|
26
26
|
var STEP_NO_ANSWER = INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
|
|
27
27
|
var QuestionItem = function (props) {
|
|
28
28
|
var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, name = _b.name, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
|
|
@@ -10,11 +10,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
14
14
|
import { Tooltip, Typography } from 'fbm-ui';
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
15
|
import { scoreRankIntervalColors } from "../../../../constants/ai-report";
|
|
17
|
-
import {
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
|
+
import { AiScoreRoot, RankingRoot, ScoreSliderRoot, StyledSlider } from './styled';
|
|
18
18
|
var ScoreSlider = function (props) {
|
|
19
19
|
var _a = props.width, width = _a === void 0 ? 320 : _a, originScore = props.originScore, finalScore = props.finalScore, _b = props.valueLabelDisplay, valueLabelDisplay = _b === void 0 ? 'on' : _b, _c = props.isShowLabel, isShowLabel = _c === void 0 ? false : _c, _d = props.isShowScoreRank, isShowScoreRank = _d === void 0 ? false : _d, onChangeCommitted = props.onChangeCommitted;
|
|
20
20
|
var aiScore = originScore.toFixed(0);
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Box,
|
|
13
|
+
import { Box, Empty, Typography } from 'fbm-ui';
|
|
14
14
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
15
15
|
import QuestionItem from './QuestionItem';
|
|
16
16
|
var VideoQuestion = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiInterviewReportStep, ScoreInfo } from '../../interface';
|
|
2
2
|
export interface ScoreSliderProps extends Pick<ScoreInfo, 'originScore' | 'finalScore'> {
|
|
3
3
|
width?: number;
|
|
4
4
|
valueLabelDisplay?: 'on' | 'off' | 'auto';
|
|
@@ -56,7 +56,7 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
|
56
56
|
valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
|
|
57
57
|
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
58
58
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
59
|
-
}, "track" | "name" | "
|
|
59
|
+
}, "track" | "name" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "disabled" | "max" | "min" | "orientation" | "size" | "step" | "value" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
60
60
|
export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
61
61
|
children?: import("react").ReactNode;
|
|
62
62
|
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -10,15 +10,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { forwardRef, memo, useCallback, useEffect } from 'react';
|
|
14
|
+
import { Box, Button, Dialog, styled } from 'fbm-ui';
|
|
15
15
|
import ScrollDialogContent from "../../components/ScrollDialogContent";
|
|
16
16
|
import { useAiTemplateStore } from "../../store/ai-template/global-store";
|
|
17
|
-
import TemplateHeader from './components/TemplateHeader';
|
|
18
|
-
import TemplateMenu from './components/TemplateMenu';
|
|
19
|
-
import TemplateList from './components/TemplateList';
|
|
20
17
|
import CapabilityModel from './components/CapabilityModel';
|
|
21
18
|
import QuestionList from './components/QuestionList';
|
|
19
|
+
import TemplateHeader from './components/TemplateHeader';
|
|
20
|
+
import TemplateList from './components/TemplateList';
|
|
21
|
+
import TemplateMenu from './components/TemplateMenu';
|
|
22
22
|
var AiTemplateDialog = styled(Dialog)({
|
|
23
23
|
'& .MuiPaper-root>.MuiBox-root>.MuiBox-root': {
|
|
24
24
|
marginBottom: 0,
|
|
@@ -11,9 +11,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Box, Typography } from 'fbm-ui';
|
|
14
|
-
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
15
14
|
import TemplatePieProps from "../../../../components/Charts/TemplatePie";
|
|
16
15
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
16
|
+
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
17
17
|
var CapabilityModel = function () {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
var _c = useAiTemplateStore(function (store) { return [store.menuId, store.previewItem]; }), menuId = _c.menuId, previewItem = _c.previewItem;
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Box,
|
|
13
|
+
import { Box, Button, Chip, Typography } from 'fbm-ui';
|
|
14
14
|
import { Done } from '@mui/icons-material';
|
|
15
15
|
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
16
16
|
var QuestionItem = function (_a) {
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Box,
|
|
13
|
+
import { Box, CloseIcon, IconButton, KeyboardArrowLeftIcon, Typography } from 'fbm-ui';
|
|
14
14
|
var TemplateHeader = function (_a) {
|
|
15
15
|
var name = _a.name, onClose = _a.onClose, onSearch = _a.onSearch, onBack = _a.onBack;
|
|
16
16
|
return name ? (_jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", pt: 1, pb: 1.5, mb: 1 }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", right: 16 }, { children: [_jsx(IconButton, __assign({ onClick: onBack }, { children: _jsx(KeyboardArrowLeftIcon, {}) })), _jsx(Typography, __assign({ variant: "body1", weight: "500", ml: 1 }, { children: name }))] })), _jsx(IconButton, __assign({ onClick: onClose }, { children: _jsx(CloseIcon, {}) }))] }))) : (_jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", pt: 1, pb: 1.5, mb: 1 }, { children: [_jsxs(Typography, __assign({ variant: "body1", weight: "500" }, { children: ["\u5C97\u4F4D\u6A21\u7248\u5E93", _jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\uFF08\u6A21\u7248\u5E93\u53EF\u591A\u6B21\u4F7F\u7528\uFF09" }))] })), _jsx(IconButton, __assign({ onClick: onClose }, { children: _jsx(CloseIcon, {}) }))] })));
|
|
@@ -10,14 +10,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
14
14
|
import { Box, Button, Typography } from 'fbm-ui';
|
|
15
15
|
import { useRequest } from 'ahooks';
|
|
16
|
-
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
17
|
-
import { PostAiTemplatesList, PostAiTemplatesDetail } from "../../../../services/ai-template";
|
|
18
16
|
import TemplatePie from "../../../../components/Charts/TemplatePie";
|
|
19
17
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
20
|
-
import {
|
|
18
|
+
import { PostAiTemplatesDetail, PostAiTemplatesList } from "../../../../services/ai-template";
|
|
19
|
+
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
20
|
+
import { AddIconRoot, ListCol, ListItem, ListItemOperation, ListItemSubTitle, ListItemTitle, ListRow } from './styled';
|
|
21
21
|
var TemplateList = function () {
|
|
22
22
|
var isPreview = useRef(false);
|
|
23
23
|
var _a = useState([]), list = _a[0], setList = _a[1];
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
export declare const AddIconRoot: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
5
|
-
color?: "inherit" | "disabled" | "error" | "warning" | "success" | "info" | "secondary" | "
|
|
5
|
+
color?: "inherit" | "disabled" | "action" | "error" | "warning" | "success" | "info" | "secondary" | "primary" | undefined;
|
|
6
6
|
fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
|
|
7
7
|
htmlColor?: string | undefined;
|
|
8
8
|
shapeRendering?: string | undefined;
|
|
9
9
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
10
|
titleAccess?: string | undefined;
|
|
11
11
|
viewBox?: string | undefined;
|
|
12
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "
|
|
12
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "d" | "y" | "name" | "type" | "onLoad" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
13
13
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
14
|
-
}, "children" | "
|
|
14
|
+
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
15
15
|
children?: import("react").ReactNode;
|
|
16
16
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
17
17
|
export declare const ListRow: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
@@ -19,12 +19,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import {
|
|
22
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
23
23
|
import { Box } from 'fbm-ui';
|
|
24
24
|
import { useRequest } from 'ahooks';
|
|
25
|
-
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
26
25
|
import { PostAiTemplatesCollectionList } from "../../../../services/ai-template";
|
|
27
|
-
import {
|
|
26
|
+
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
27
|
+
import { TemplateMenuItem, TemplateMenuList } from './styled';
|
|
28
28
|
var defaultHistoryPatterns = { token: 'historyPatterns', name: '我的岗位模型', selected: false };
|
|
29
29
|
var TemplateMenu = function () {
|
|
30
30
|
var _a = useState([]), list = _a[0], setList = _a[1];
|
|
@@ -26,4 +26,4 @@ export declare const TemplateMenuItem: import("@emotion/styled").StyledComponent
|
|
|
26
26
|
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
27
27
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
|
|
28
28
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
29
|
-
}, "children" |
|
|
29
|
+
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "disabled" | "autoFocus" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "divider" | "dense" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QuestionModelStep } from '@/modules/ai-question/components/QuestionModel/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { AiTemplatesCollection, AiTemplatesList } from '@/modules/ai-template/components/TemplateList/interface';
|
|
3
3
|
export interface QuestionList extends QuestionModelStep {
|
|
4
4
|
}
|
|
5
5
|
export interface HistoryPatterns {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { QuestionParams } from '@/modules/ai-question/components/QuestionUpdate/interface';
|
|
3
2
|
import { AiAbilityItem } from '@/modules/ai-question/components/AiAssessmentCriteria/interface';
|
|
3
|
+
import { QuestionParams } from '@/modules/ai-question/components/QuestionUpdate/interface';
|
|
4
4
|
interface AnalysisStateParams extends Pick<QuestionParams, 'aiSwitch' | 'language'> {
|
|
5
5
|
}
|
|
6
6
|
export declare const useAiAnalysisStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
@@ -10,12 +10,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
var _a;
|
|
13
|
-
import { useEffect, useState
|
|
14
|
-
import update from 'immutability-helper';
|
|
15
|
-
import { createStore } from 'hox';
|
|
13
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
16
14
|
import { useSetState } from 'ahooks';
|
|
17
|
-
import {
|
|
15
|
+
import { createStore } from 'hox';
|
|
16
|
+
import update from 'immutability-helper';
|
|
18
17
|
import { useUpdateQuestionStore } from "./question-update-store";
|
|
18
|
+
import { computeDecimalValue, formatNumberDecimal, uniqueId } from "../../utils/utils";
|
|
19
19
|
var defaultAnalysisState = { aiSwitch: 2, language: 1 };
|
|
20
20
|
export var useAiAnalysisStore = (_a = createStore(function () {
|
|
21
21
|
var questionState = useUpdateQuestionStore(function (store) { return [store.questionState]; }).questionState;
|
|
@@ -10,11 +10,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
var _a;
|
|
13
|
-
import {
|
|
13
|
+
import { useCallback, useState } from 'react';
|
|
14
14
|
import { createGlobalStore } from 'hox';
|
|
15
15
|
import update from 'immutability-helper';
|
|
16
16
|
import { IS_AI_ANALYSIS } from "../../constants/ai-question";
|
|
17
|
-
import {
|
|
17
|
+
import { computeDecimalValue, formatNumberDecimal, uniqueId } from "../../utils/utils";
|
|
18
18
|
export var useQuestionModelStore = (_a = createGlobalStore(function () {
|
|
19
19
|
var _a = useState(), questionModelData = _a[0], updateModel = _a[1];
|
|
20
20
|
var _b = (questionModelData || {}).steps, steps = _b === void 0 ? [] : _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useState } from 'react';
|
|
3
3
|
import { createGlobalStore } from 'hox';
|
|
4
4
|
export var useQuestionPreviewStore = (_a = createGlobalStore(function () {
|
|
5
5
|
var _a = useState(false), visible = _a[0], setVisible = _a[1];
|
|
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
var _a;
|
|
13
13
|
import { useCallback } from 'react';
|
|
14
|
-
import { createGlobalStore } from 'hox';
|
|
15
14
|
import { useSetState } from 'ahooks';
|
|
15
|
+
import { createGlobalStore } from 'hox';
|
|
16
16
|
import { defaultQuestionParams } from "../../modules/ai-question/components/QuestionUpdate/const";
|
|
17
17
|
import { ADD_QUESTION_TYPE } from "../../enum/ai-question";
|
|
18
18
|
export var useUpdateQuestionStore = (_a = createGlobalStore(function () {
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
var _a;
|
|
13
13
|
import { useEffect } from 'react';
|
|
14
|
-
import {
|
|
14
|
+
import { useRequest, useSetState } from 'ahooks';
|
|
15
15
|
import { createGlobalStore } from 'hox';
|
|
16
16
|
import { PostAiTemplatesIncrUse } from "../../services/ai-template";
|
|
17
17
|
export var useAiTemplateStore = (_a = createGlobalStore(function () {
|
package/esm/utils/interceptor.js
CHANGED
|
@@ -45,10 +45,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
+
import { Message } from 'fbm-ui';
|
|
48
49
|
import axios from 'axios';
|
|
49
|
-
import Cookies from 'js-cookie';
|
|
50
50
|
import dayjs from 'dayjs';
|
|
51
|
-
import
|
|
51
|
+
import Cookies from 'js-cookie';
|
|
52
52
|
var MAX_RETRY_COUNT = 3;
|
|
53
53
|
var service = axios.create({ timeout: 60000 });
|
|
54
54
|
var RETRIED_COUNT = 0;
|
|
@@ -12,9 +12,9 @@ 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 hox_1 = require("hox");
|
|
16
15
|
var fbm_ui_1 = require("fbm-ui");
|
|
17
16
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
17
|
+
var hox_1 = require("hox");
|
|
18
18
|
var styles_1 = require("@mui/styles");
|
|
19
19
|
var AnyStylesProvider = styles_1.StylesProvider;
|
|
20
20
|
var generateClassName = (0, styles_1.createGenerateClassName)({
|
|
@@ -15,8 +15,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var utils_1 = require("../../utils/utils");
|
|
19
18
|
var BigBallSvg_1 = __importDefault(require("../BigBallSvg"));
|
|
19
|
+
var utils_1 = require("../../utils/utils");
|
|
20
20
|
var styled_1 = require("./styled");
|
|
21
21
|
var ScoreBigBall = function (_a) {
|
|
22
22
|
var score = _a.score, status = _a.status, _b = _a.width, width = _b === void 0 ? 80 : _b, _c = _a.height, height = _c === void 0 ? 80 : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 20 : _d;
|