eli-video-interview 1.2.39 → 1.2.40-alpha.10

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.
Files changed (241) hide show
  1. package/esm/components/react-photo-view/Photo.css +14 -0
  2. package/esm/components/react-photo-view/Photo.d.ts +18 -0
  3. package/esm/components/react-photo-view/Photo.js +54 -0
  4. package/esm/components/react-photo-view/PhotoBox.css +18 -0
  5. package/esm/components/react-photo-view/PhotoBox.d.ts +22 -0
  6. package/esm/components/react-photo-view/PhotoBox.js +302 -0
  7. package/esm/components/react-photo-view/PhotoPage.d.ts +9 -0
  8. package/esm/components/react-photo-view/PhotoPage.js +77 -0
  9. package/esm/components/react-photo-view/PhotoProvider.d.ts +14 -0
  10. package/esm/components/react-photo-view/PhotoProvider.js +98 -0
  11. package/esm/components/react-photo-view/PhotoSlider.css +125 -0
  12. package/esm/components/react-photo-view/PhotoSlider.d.ts +12 -0
  13. package/esm/components/react-photo-view/PhotoSlider.js +262 -0
  14. package/esm/components/react-photo-view/PhotoView.d.ts +30 -0
  15. package/esm/components/react-photo-view/PhotoView.js +48 -0
  16. package/esm/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
  17. package/esm/components/react-photo-view/components/ArrowLeft.js +18 -0
  18. package/esm/components/react-photo-view/components/ArrowRight.d.ts +3 -0
  19. package/esm/components/react-photo-view/components/ArrowRight.js +18 -0
  20. package/esm/components/react-photo-view/components/CloseIcon.d.ts +3 -0
  21. package/esm/components/react-photo-view/components/CloseIcon.js +16 -0
  22. package/esm/components/react-photo-view/components/PreventScroll.d.ts +1 -0
  23. package/esm/components/react-photo-view/components/PreventScroll.js +12 -0
  24. package/esm/components/react-photo-view/components/SlidePortal.css +10 -0
  25. package/esm/components/react-photo-view/components/SlidePortal.d.ts +7 -0
  26. package/esm/components/react-photo-view/components/SlidePortal.js +30 -0
  27. package/esm/components/react-photo-view/components/Spinner.css +23 -0
  28. package/esm/components/react-photo-view/components/Spinner.d.ts +4 -0
  29. package/esm/components/react-photo-view/components/Spinner.js +29 -0
  30. package/esm/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
  31. package/esm/components/react-photo-view/hooks/useAdjacentImages.js +14 -0
  32. package/esm/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
  33. package/esm/components/react-photo-view/hooks/useAnimationOrigin.js +72 -0
  34. package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
  35. package/esm/components/react-photo-view/hooks/useAnimationPosition.js +28 -0
  36. package/esm/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
  37. package/esm/components/react-photo-view/hooks/useAnimationVisible.js +49 -0
  38. package/esm/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
  39. package/esm/components/react-photo-view/hooks/useContinuousTap.js +36 -0
  40. package/esm/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
  41. package/esm/components/react-photo-view/hooks/useDebounceCallback.js +48 -0
  42. package/esm/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
  43. package/esm/components/react-photo-view/hooks/useEventListener.js +18 -0
  44. package/esm/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
  45. package/esm/components/react-photo-view/hooks/useForkedVariable.js +17 -0
  46. package/esm/components/react-photo-view/hooks/useInitial.d.ts +1 -0
  47. package/esm/components/react-photo-view/hooks/useInitial.js +9 -0
  48. package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  49. package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +3 -0
  50. package/esm/components/react-photo-view/hooks/useMethods.d.ts +4 -0
  51. package/esm/components/react-photo-view/hooks/useMethods.js +35 -0
  52. package/esm/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
  53. package/esm/components/react-photo-view/hooks/useMountedRef.js +12 -0
  54. package/esm/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
  55. package/esm/components/react-photo-view/hooks/useScrollPosition.js +157 -0
  56. package/esm/components/react-photo-view/hooks/useSetState.d.ts +2 -0
  57. package/esm/components/react-photo-view/hooks/useSetState.js +15 -0
  58. package/esm/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
  59. package/esm/components/react-photo-view/hooks/useTargetScale.js +70 -0
  60. package/esm/components/react-photo-view/index.d.ts +4 -0
  61. package/esm/components/react-photo-view/index.js +4 -0
  62. package/esm/components/react-photo-view/photo-context.d.ts +11 -0
  63. package/esm/components/react-photo-view/photo-context.js +2 -0
  64. package/esm/components/react-photo-view/types.d.ts +196 -0
  65. package/esm/components/react-photo-view/types.js +1 -0
  66. package/esm/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
  67. package/esm/components/react-photo-view/utils/edgeHandle.js +40 -0
  68. package/esm/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
  69. package/esm/components/react-photo-view/utils/getMultipleTouchPosition.js +11 -0
  70. package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
  71. package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.js +31 -0
  72. package/esm/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
  73. package/esm/components/react-photo-view/utils/getRotateSize.js +11 -0
  74. package/esm/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
  75. package/esm/components/react-photo-view/utils/getSuitableImageSize.js +42 -0
  76. package/esm/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
  77. package/esm/components/react-photo-view/utils/isTouchDevice.js +5 -0
  78. package/esm/components/react-photo-view/utils/limitTarget.d.ts +5 -0
  79. package/esm/components/react-photo-view/utils/limitTarget.js +12 -0
  80. package/esm/components/react-photo-view/variables.d.ts +48 -0
  81. package/esm/components/react-photo-view/variables.js +48 -0
  82. package/esm/constants/ai-question.d.ts +9 -0
  83. package/esm/constants/ai-question.js +33 -4
  84. package/esm/enum/ai-question.d.ts +5 -2
  85. package/esm/enum/ai-question.js +3 -0
  86. package/esm/modules/ai-ability/Root.js +15 -4
  87. package/esm/modules/ai-ability-select/Root.js +2 -2
  88. package/esm/modules/ai-ability-select/interface.d.ts +1 -0
  89. package/esm/modules/ai-question/components/AiAnalysis/index.js +4 -1
  90. package/esm/modules/ai-question/components/BootVideo/index.js +1 -1
  91. package/esm/modules/ai-question/components/QuestionModel/Item.js +14 -9
  92. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +17 -6
  93. package/esm/modules/ai-question/components/QuestionUpdate/Chioce.d.ts +17 -0
  94. package/esm/modules/ai-question/components/QuestionUpdate/Chioce.js +97 -0
  95. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +37 -12
  96. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +14 -4
  97. package/esm/modules/ai-question/components/QuestionUpdate/Score.d.ts +15 -0
  98. package/esm/modules/ai-question/components/QuestionUpdate/Score.js +53 -0
  99. package/esm/modules/ai-question/components/QuestionUpdate/const.js +4 -0
  100. package/esm/modules/ai-question/components/QuestionUpdate/index.js +35 -17
  101. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +10 -0
  102. package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +15 -0
  103. package/esm/modules/ai-question/components/QuestionUpdate/styled.js +56 -1
  104. package/esm/modules/ai-report/Root.js +1 -1
  105. package/esm/modules/ai-report/components/ScoreReport/Score.js +4 -1
  106. package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +5 -3
  107. package/esm/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
  108. package/esm/modules/ai-report/components/VideoQuestion/BodyImages.js +40 -0
  109. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -4
  110. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +4 -4
  111. package/esm/modules/ai-report/components/VideoQuestion/SingleChoice.d.ts +8 -0
  112. package/esm/modules/ai-report/components/VideoQuestion/SingleChoice.js +31 -0
  113. package/esm/modules/ai-report/components/VideoQuestion/index.js +1 -1
  114. package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +2 -0
  115. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -0
  116. package/esm/modules/ai-report/components/VideoQuestion/styled.js +7 -1
  117. package/esm/modules/ai-report/interface.d.ts +19 -0
  118. package/esm/services/ai-ability.d.ts +1 -1
  119. package/esm/services/ai-ability.js +1 -1
  120. package/esm/store/ai-question/ai-analysis-store.js +0 -1
  121. package/lib/components/react-photo-view/Photo.css +14 -0
  122. package/lib/components/react-photo-view/Photo.d.ts +18 -0
  123. package/lib/components/react-photo-view/Photo.js +60 -0
  124. package/lib/components/react-photo-view/PhotoBox.css +18 -0
  125. package/lib/components/react-photo-view/PhotoBox.d.ts +22 -0
  126. package/lib/components/react-photo-view/PhotoBox.js +308 -0
  127. package/lib/components/react-photo-view/PhotoPage.d.ts +9 -0
  128. package/lib/components/react-photo-view/PhotoPage.js +79 -0
  129. package/lib/components/react-photo-view/PhotoProvider.d.ts +14 -0
  130. package/lib/components/react-photo-view/PhotoProvider.js +104 -0
  131. package/lib/components/react-photo-view/PhotoSlider.css +125 -0
  132. package/lib/components/react-photo-view/PhotoSlider.d.ts +12 -0
  133. package/lib/components/react-photo-view/PhotoSlider.js +268 -0
  134. package/lib/components/react-photo-view/PhotoView.d.ts +30 -0
  135. package/lib/components/react-photo-view/PhotoView.js +53 -0
  136. package/lib/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
  137. package/lib/components/react-photo-view/components/ArrowLeft.js +20 -0
  138. package/lib/components/react-photo-view/components/ArrowRight.d.ts +3 -0
  139. package/lib/components/react-photo-view/components/ArrowRight.js +20 -0
  140. package/lib/components/react-photo-view/components/CloseIcon.d.ts +3 -0
  141. package/lib/components/react-photo-view/components/CloseIcon.js +18 -0
  142. package/lib/components/react-photo-view/components/PreventScroll.d.ts +1 -0
  143. package/lib/components/react-photo-view/components/PreventScroll.js +15 -0
  144. package/lib/components/react-photo-view/components/SlidePortal.css +10 -0
  145. package/lib/components/react-photo-view/components/SlidePortal.d.ts +7 -0
  146. package/lib/components/react-photo-view/components/SlidePortal.js +32 -0
  147. package/lib/components/react-photo-view/components/Spinner.css +23 -0
  148. package/lib/components/react-photo-view/components/Spinner.d.ts +4 -0
  149. package/lib/components/react-photo-view/components/Spinner.js +31 -0
  150. package/lib/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
  151. package/lib/components/react-photo-view/hooks/useAdjacentImages.js +17 -0
  152. package/lib/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
  153. package/lib/components/react-photo-view/hooks/useAnimationOrigin.js +78 -0
  154. package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
  155. package/lib/components/react-photo-view/hooks/useAnimationPosition.js +34 -0
  156. package/lib/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
  157. package/lib/components/react-photo-view/hooks/useAnimationVisible.js +55 -0
  158. package/lib/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
  159. package/lib/components/react-photo-view/hooks/useContinuousTap.js +42 -0
  160. package/lib/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
  161. package/lib/components/react-photo-view/hooks/useDebounceCallback.js +51 -0
  162. package/lib/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
  163. package/lib/components/react-photo-view/hooks/useEventListener.js +21 -0
  164. package/lib/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
  165. package/lib/components/react-photo-view/hooks/useForkedVariable.js +20 -0
  166. package/lib/components/react-photo-view/hooks/useInitial.d.ts +1 -0
  167. package/lib/components/react-photo-view/hooks/useInitial.js +12 -0
  168. package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  169. package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +5 -0
  170. package/lib/components/react-photo-view/hooks/useMethods.d.ts +4 -0
  171. package/lib/components/react-photo-view/hooks/useMethods.js +38 -0
  172. package/lib/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
  173. package/lib/components/react-photo-view/hooks/useMountedRef.js +14 -0
  174. package/lib/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
  175. package/lib/components/react-photo-view/hooks/useScrollPosition.js +163 -0
  176. package/lib/components/react-photo-view/hooks/useSetState.d.ts +2 -0
  177. package/lib/components/react-photo-view/hooks/useSetState.js +18 -0
  178. package/lib/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
  179. package/lib/components/react-photo-view/hooks/useTargetScale.js +76 -0
  180. package/lib/components/react-photo-view/index.d.ts +4 -0
  181. package/lib/components/react-photo-view/index.js +12 -0
  182. package/lib/components/react-photo-view/photo-context.d.ts +11 -0
  183. package/lib/components/react-photo-view/photo-context.js +4 -0
  184. package/lib/components/react-photo-view/types.d.ts +196 -0
  185. package/lib/components/react-photo-view/types.js +2 -0
  186. package/lib/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
  187. package/lib/components/react-photo-view/utils/edgeHandle.js +45 -0
  188. package/lib/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
  189. package/lib/components/react-photo-view/utils/getMultipleTouchPosition.js +14 -0
  190. package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
  191. package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.js +34 -0
  192. package/lib/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
  193. package/lib/components/react-photo-view/utils/getRotateSize.js +14 -0
  194. package/lib/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
  195. package/lib/components/react-photo-view/utils/getSuitableImageSize.js +48 -0
  196. package/lib/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
  197. package/lib/components/react-photo-view/utils/isTouchDevice.js +7 -0
  198. package/lib/components/react-photo-view/utils/limitTarget.d.ts +5 -0
  199. package/lib/components/react-photo-view/utils/limitTarget.js +17 -0
  200. package/lib/components/react-photo-view/variables.d.ts +48 -0
  201. package/lib/components/react-photo-view/variables.js +51 -0
  202. package/lib/constants/ai-question.d.ts +9 -0
  203. package/lib/constants/ai-question.js +34 -5
  204. package/lib/enum/ai-question.d.ts +5 -2
  205. package/lib/enum/ai-question.js +3 -0
  206. package/lib/modules/ai-ability/Root.js +15 -4
  207. package/lib/modules/ai-ability-select/Root.js +2 -2
  208. package/lib/modules/ai-ability-select/interface.d.ts +1 -0
  209. package/lib/modules/ai-question/components/AiAnalysis/index.js +4 -1
  210. package/lib/modules/ai-question/components/BootVideo/index.js +1 -1
  211. package/lib/modules/ai-question/components/QuestionModel/Item.js +11 -6
  212. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +15 -4
  213. package/lib/modules/ai-question/components/QuestionUpdate/Chioce.d.ts +17 -0
  214. package/lib/modules/ai-question/components/QuestionUpdate/Chioce.js +104 -0
  215. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +35 -10
  216. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +12 -2
  217. package/lib/modules/ai-question/components/QuestionUpdate/Score.d.ts +15 -0
  218. package/lib/modules/ai-question/components/QuestionUpdate/Score.js +57 -0
  219. package/lib/modules/ai-question/components/QuestionUpdate/const.js +4 -0
  220. package/lib/modules/ai-question/components/QuestionUpdate/index.js +34 -16
  221. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +10 -0
  222. package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +15 -0
  223. package/lib/modules/ai-question/components/QuestionUpdate/styled.js +56 -1
  224. package/lib/modules/ai-report/Root.js +1 -1
  225. package/lib/modules/ai-report/components/ScoreReport/Score.js +4 -1
  226. package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +5 -3
  227. package/lib/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
  228. package/lib/modules/ai-report/components/VideoQuestion/BodyImages.js +45 -0
  229. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +8 -3
  230. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +4 -4
  231. package/lib/modules/ai-report/components/VideoQuestion/SingleChoice.d.ts +8 -0
  232. package/lib/modules/ai-report/components/VideoQuestion/SingleChoice.js +33 -0
  233. package/lib/modules/ai-report/components/VideoQuestion/index.js +1 -1
  234. package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +2 -0
  235. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -0
  236. package/lib/modules/ai-report/components/VideoQuestion/styled.js +8 -2
  237. package/lib/modules/ai-report/interface.d.ts +19 -0
  238. package/lib/services/ai-ability.d.ts +1 -1
  239. package/lib/services/ai-ability.js +1 -1
  240. package/lib/store/ai-question/ai-analysis-store.js +0 -1
  241. package/package.json +2 -2
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var styled_1 = require("./styled");
19
+ var react_photo_view_1 = require("../../../../components/react-photo-view");
20
+ require("../../../../components/react-photo-view/Photo");
21
+ var PhotoPage_1 = __importDefault(require("../../../../components/react-photo-view/PhotoPage"));
22
+ require("../../../../components/react-photo-view/PhotoSlider");
23
+ var fbm_ui_1 = require("fbm-ui");
24
+ var mui_1 = require("fbm-ui/lib/mui");
25
+ var react_1 = require("react");
26
+ var BodyImages = function (_a) {
27
+ var reviewImgs = _a.reviewImgs;
28
+ var _b = (0, react_1.useState)(false), visible = _b[0], setVisible = _b[1];
29
+ var _c = (0, react_1.useState)(0), index = _c[0], setIndex = _c[1];
30
+ var handleSelected = (0, react_1.useCallback)(function (_, i) {
31
+ setIndex(i);
32
+ setVisible(true);
33
+ }, []);
34
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ spacing: 2, direction: "row" }, { children: reviewImgs === null || reviewImgs === void 0 ? void 0 : reviewImgs.map(function (_a, i) {
35
+ var url = _a.url, title = _a.title;
36
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 0.5, onClick: function () {
37
+ setIndex(i);
38
+ setVisible(true);
39
+ } }, { children: [(0, jsx_runtime_1.jsx)(styled_1.Image, { src: url, alt: "" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary", textAlign: "center" }, { children: title }))] }), url));
40
+ }) })), (0, jsx_runtime_1.jsx)(react_photo_view_1.PhotoSlider, { maskOpacity: 0.56, visible: visible, onClose: function () { return setVisible(false); }, index: index, onIndexChange: setIndex, images: reviewImgs === null || reviewImgs === void 0 ? void 0 : reviewImgs.map(function (item) { return ({ src: item.url, key: item.url, title: item === null || item === void 0 ? void 0 : item.title }); }), overlayRender: function (_a) {
41
+ var images = _a.images, index = _a.index;
42
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { width: 1, position: 'absolute', bottom: 0, zIndex: 50 } }, { children: (0, jsx_runtime_1.jsx)(PhotoPage_1.default, { onSelected: handleSelected, images: images, index: index }) })));
43
+ } })] }));
44
+ };
45
+ exports.default = BodyImages;
@@ -16,7 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var Abilities_1 = __importDefault(require("./Abilities"));
19
+ var BodyImages_1 = __importDefault(require("./BodyImages"));
19
20
  var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
21
+ var SingleChoice_1 = __importDefault(require("./SingleChoice"));
20
22
  var styled_1 = require("./styled");
21
23
  var ai_question_1 = require("../../../../enum/ai-question");
22
24
  var ai_report_1 = require("../../../../enum/ai-report");
@@ -30,7 +32,7 @@ var immutability_helper_1 = __importDefault(require("immutability-helper"));
30
32
  var react_1 = require("react");
31
33
  var STEP_NO_ANSWER = ai_report_1.INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = ai_report_1.INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
32
34
  var QuestionItem = function (props) {
33
- var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
35
+ var token = props.token, reviewImgs = props.reviewImgs, followupQuestion = props.followupQuestion, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, options = _b.options, aiShowType = _b.aiShowType, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
34
36
  var _d = (0, react_1.useState)(false), showAbilities = _d[0], setShowAbilities = _d[1];
35
37
  var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.stepToken, store.operableButtons, store.showAbilitiesDetails]; }), reportResult = _e.reportResult, stepToken = _e.stepToken, operableButtons = _e.operableButtons, showAbilitiesDetails = _e.showAbilitiesDetails, updateState = _e.updateState, updateReportResult = _e.updateReportResult, onScoreChange = _e.onScoreChange, onStepChange = _e.onStepChange;
36
38
  var steps = (reportResult || {}).steps;
@@ -39,6 +41,7 @@ var QuestionItem = function (props) {
39
41
  var isShowAbilitiesButton = abilities.length > 0 && isAbilities && !showAbilitiesDetails;
40
42
  var isShowWeight = abilities.length === 0 || showAbilities || !isAbilities || showAbilitiesDetails;
41
43
  var isShowAbilitiesDetails = abilities.length > 0 && (showAbilities || showAbilitiesDetails);
44
+ var isSingleChoice = aiShowType === ai_question_1.ADD_QUESTION_TYPE.SINGLECHIOCE;
42
45
  var comprehensiveScore = (0, react_1.useMemo)(function () {
43
46
  if (status === STEP_COMPLETED) {
44
47
  return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: ThemeProvider_1.theme.palette.primary.main, fontSize: 16, fontWeight: 500 }, { children: (0, utils_1.formatScore)(score) })));
@@ -70,6 +73,8 @@ var QuestionItem = function (props) {
70
73
  }, [analysisResult]);
71
74
  var handleChangeCommitted = (0, react_1.useCallback)(function (score) {
72
75
  var _a;
76
+ if (isSingleChoice)
77
+ return;
73
78
  var newSteps = (0, immutability_helper_1.default)(steps, (_a = {}, _a[index] = { scoreInfo: { finalScore: { $set: score } } }, _a));
74
79
  updateReportResult(__assign(__assign({}, reportResult), { steps: newSteps }));
75
80
  onScoreChange &&
@@ -78,7 +83,7 @@ var QuestionItem = function (props) {
78
83
  type: 1,
79
84
  score: score,
80
85
  });
81
- }, [index, reportResult, steps, updateReportResult, onScoreChange]);
86
+ }, [index, reportResult, steps, updateReportResult, onScoreChange, isSingleChoice]);
82
87
  var handleClickItem = (0, react_1.useCallback)(function (e) {
83
88
  e.stopPropagation();
84
89
  if (videoUrl) {
@@ -91,6 +96,6 @@ var QuestionItem = function (props) {
91
96
  mt: 2,
92
97
  cursor: videoUrl ? 'pointer' : 'inherit',
93
98
  borderColor: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : '',
94
- }, variant: "outlined", onClick: handleClickItem }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: [index + 1, ".", desc] })), (0, jsx_runtime_1.jsxs)(styled_1.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(FormatQuote_1.default, {}), status === STEP_IN_CALCULATION ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index })] }), token));
99
+ }, variant: "outlined", onClick: handleClickItem }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: [index + 1, ".", desc] })), (0, jsx_runtime_1.jsxs)(styled_1.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(BodyImages_1.default, { reviewImgs: reviewImgs }), (0, jsx_runtime_1.jsx)(FormatQuote_1.default, {}), status === STEP_IN_CALCULATION ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isSingleChoice && (0, jsx_runtime_1.jsx)(SingleChoice_1.default, { options: options || [], selected: (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.selected) || [] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), followupQuestion && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ mt: 1, fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: "\u8FFD\u95EE\uFF1A".concat(followupQuestion === null || followupQuestion === void 0 ? void 0 : followupQuestion.desc) })), (0, jsx_runtime_1.jsxs)(styled_1.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(FormatQuote_1.default, {}), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: followupQuestion === null || followupQuestion === void 0 ? void 0 : followupQuestion.answer }))] })] })), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index, disabledScore: isSingleChoice })] }), token));
95
100
  };
96
101
  exports.default = QuestionItem;
@@ -18,13 +18,13 @@ var global_store_1 = require("../../../../store/ai-report/global-store");
18
18
  var fbm_ui_1 = require("fbm-ui");
19
19
  var react_1 = require("react");
20
20
  var ScoreSlider = function (props) {
21
- 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;
21
+ 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, _e = props.disabledScore, sliderDisabledScore = _e === void 0 ? false : _e;
22
22
  var aiScore = originScore.toFixed(0);
23
- var _e = (0, react_1.useState)(0), score = _e[0], setScore = _e[1];
23
+ var _f = (0, react_1.useState)(0), score = _f[0], setScore = _f[1];
24
24
  var disabledScore = (0, global_store_1.useAiReportStore)(function (store) { return [store.disabledScore, store.scoreRankIntervals]; }).disabledScore;
25
25
  var handleScoreChange = (0, react_1.useCallback)(function (e, v) {
26
- !disabledScore && setScore(v);
27
- }, [disabledScore]);
26
+ !disabledScore && !sliderDisabledScore && setScore(v);
27
+ }, [disabledScore, sliderDisabledScore]);
28
28
  (0, react_1.useEffect)(function () {
29
29
  setScore(Number(finalScore.toFixed(0)));
30
30
  }, [finalScore]);
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Option } from '../../interface';
3
+ interface SingleChoiceProps {
4
+ options: Option[];
5
+ selected: number[];
6
+ }
7
+ declare const SingleChoice: React.FC<SingleChoiceProps>;
8
+ export default SingleChoice;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var jsx_runtime_1 = require("react/jsx-runtime");
15
+ var fbm_ui_1 = require("fbm-ui");
16
+ var mui_1 = require("fbm-ui/lib/mui");
17
+ var SingleChoice = function (_a) {
18
+ var options = _a.options, selected = _a.selected;
19
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Layout, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.RadioGroup, __assign({ row: false, value: selected === null || selected === void 0 ? void 0 : selected[0], color: "primary", sx: {
20
+ '& .MuiFormControlLabel-label': {
21
+ width: '100%',
22
+ },
23
+ } }, { children: options.map(function (v, i) {
24
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Radio
25
+ // @ts-ignore
26
+ , {
27
+ // @ts-ignore
28
+ FormControlLabelProps: {
29
+ sx: { pointerEvents: 'none' },
30
+ }, value: i, label: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ color: "".concat(i === selected[0] ? '#4caf50' : 'rgba(0,0,0,.56)'), fontWeight: "".concat(i === selected[0] ? 'medium' : 'normal'), width: "100%", direction: "row", spacing: 1, alignItems: "center", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexWrap: "wrap", sx: { wordBreak: 'break-all' } }, { children: v.content })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexShrink: 0 }, { children: [v.score, "\u5206"] }))] })) }, i));
31
+ }) })) }));
32
+ };
33
+ exports.default = SingleChoice;
@@ -22,6 +22,6 @@ var fbm_ui_1 = require("fbm-ui");
22
22
  var VideoQuestion = function () {
23
23
  var reportResult = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.operableButtons]; }).reportResult;
24
24
  var steps = (reportResult || {}).steps;
25
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ id: "report-question", component: fbm_ui_1.Paper, pl: 2, pt: 2, pr: 2, style: { background: '#fff', border: '1px solid rgb(244, 244, 244)' }, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u89C6\u9891\u9898" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 3 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return (0, jsx_runtime_1.jsx)(QuestionItem_1.default, __assign({ index: index }, item), item.token); })) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
25
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ id: "report-question", component: fbm_ui_1.Paper, p: 2, style: { background: '#fff', border: '1px solid rgb(244, 244, 244)' }, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u89C6\u9891\u9898" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 3 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return (0, jsx_runtime_1.jsx)(QuestionItem_1.default, __assign({ index: index }, item), item.token); })) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
26
26
  };
27
27
  exports.default = VideoQuestion;
@@ -4,6 +4,7 @@ export interface ScoreSliderProps extends Pick<ScoreInfo, 'originScore' | 'final
4
4
  valueLabelDisplay?: 'on' | 'off' | 'auto';
5
5
  isShowLabel?: boolean;
6
6
  isShowScoreRank?: boolean;
7
+ disabledScore?: boolean;
7
8
  onChangeCommitted: (score: number) => void;
8
9
  }
9
10
  export interface QuestionItemProps extends AiInterviewReportStep {
@@ -11,4 +12,5 @@ export interface QuestionItemProps extends AiInterviewReportStep {
11
12
  }
12
13
  export interface AbilitiesProps {
13
14
  stepIndex: number;
15
+ disabledScore?: boolean;
14
16
  }
@@ -69,3 +69,4 @@ export declare const AiScoreRoot: import("@emotion/styled").StyledComponent<impo
69
69
  export declare const RankingRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
70
70
  children?: import("react").ReactNode;
71
71
  } & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
72
+ export declare const Image: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RankingRoot = exports.AiScoreRoot = exports.QuestionDesc = exports.ScoreSliderRoot = exports.StyledSlider = void 0;
3
+ exports.Image = exports.RankingRoot = exports.AiScoreRoot = exports.QuestionDesc = exports.ScoreSliderRoot = exports.StyledSlider = void 0;
4
4
  var fbm_ui_1 = require("fbm-ui");
5
5
  var mui_1 = require("fbm-ui/lib/mui");
6
6
  exports.StyledSlider = (0, fbm_ui_1.styled)(mui_1.Slider)(function (_a) {
@@ -60,7 +60,7 @@ exports.QuestionDesc = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
60
60
  position: 'relative',
61
61
  borderRadius: 2,
62
62
  marginTop: 16,
63
- '& .MuiSvgIcon-root': {
63
+ '& >.MuiSvgIcon-root': {
64
64
  position: 'absolute',
65
65
  left: 8,
66
66
  top: -12,
@@ -92,3 +92,9 @@ exports.RankingRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
92
92
  boxShadow: '0px 0px 4px 0px rgba(0 0 0 / 50%)',
93
93
  },
94
94
  });
95
+ exports.Image = (0, fbm_ui_1.styled)('img')({
96
+ width: 48,
97
+ height: 84,
98
+ borderRadius: 4,
99
+ objectFit: 'contain',
100
+ });
@@ -1,15 +1,22 @@
1
1
  import { ScoreRankInterval, ScoreRankIntervals } from './components/RankingRange/interface';
2
+ import { ADD_QUESTION_TYPE } from '@@/src/enum/ai-question';
2
3
  export interface AiModel {
3
4
  token: string;
4
5
  name: string;
5
6
  }
7
+ export interface Option {
8
+ content: string;
9
+ score: string;
10
+ }
6
11
  export interface Question {
7
12
  token: string;
8
13
  name: string;
9
14
  desc: string;
10
15
  duration: number;
11
16
  type: number;
17
+ aiShowType: ADD_QUESTION_TYPE;
12
18
  category: string[];
19
+ options?: Option[];
13
20
  }
14
21
  export interface Collection {
15
22
  name: string;
@@ -33,6 +40,7 @@ export interface AnalysisResult {
33
40
  words?: any;
34
41
  score1?: number;
35
42
  score2?: number;
43
+ selected?: number[];
36
44
  }
37
45
  export interface Answer {
38
46
  videoUrl: string;
@@ -89,6 +97,15 @@ export interface Suggestion {
89
97
  show: boolean;
90
98
  abilitys: SuggestionAbility[];
91
99
  }
100
+ export interface ReviewImg {
101
+ url: string;
102
+ step: number;
103
+ title: string;
104
+ }
105
+ export interface FollowupQuestion {
106
+ desc: string;
107
+ answer: string;
108
+ }
92
109
  export interface AiInterviewReportStep {
93
110
  token: string;
94
111
  status: number;
@@ -96,6 +113,8 @@ export interface AiInterviewReportStep {
96
113
  answer: Answer;
97
114
  scoreInfo: ScoreInfo;
98
115
  aiEvaluation: AiEvaluation;
116
+ reviewImgs: ReviewImg[];
117
+ followupQuestion?: FollowupQuestion;
99
118
  }
100
119
  export interface FaceAnalysis {
101
120
  age: number;
@@ -1,4 +1,4 @@
1
- export declare const PostQuestionCollectionList: <R>() => import("axios").AxiosPromise<R>;
1
+ export declare const PostQuestionCollectionList: <R>(data: any) => import("axios").AxiosPromise<R>;
2
2
  export declare const PostQuestionCollectionDelete: <R>(token: string) => import("axios").AxiosPromise<R>;
3
3
  interface workPlaceItem {
4
4
  name: string;
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.GetAiAbilityList = exports.CheckDuplicateCollection = exports.GetAbilityDetail = exports.GetAiDefine = exports.PostQuestionCollectionUpsert = exports.PostQuestionCollectionDelete = exports.PostQuestionCollectionList = void 0;
15
15
  var request_1 = require("../utils/request");
16
16
  // 考察能力列表
17
- var PostQuestionCollectionList = function () { return (0, request_1.POST)({ url: '/standard/b/questionCollection/list' }); };
17
+ var PostQuestionCollectionList = function (data) { return (0, request_1.POST)({ url: '/standard/b/questionCollection/list', data: data }); };
18
18
  exports.PostQuestionCollectionList = PostQuestionCollectionList;
19
19
  // 删除考察能力
20
20
  var PostQuestionCollectionDelete = function (token) { return (0, request_1.POST)({ url: 'standard/b/questionCollection/delete', data: { token: token } }); };
@@ -78,7 +78,6 @@ exports.useAiAnalysisStore = (_a = (0, hox_1.createStore)(function () {
78
78
  ];
79
79
  });
80
80
  var resAiAbilities = (0, immutability_helper_1.default)(data, { $splice: $splice });
81
- console.log('resAiAbilities', resAiAbilities);
82
81
  setAiAbilities(resAiAbilities);
83
82
  }, []);
84
83
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.39",
3
+ "version": "1.2.40-alpha.10",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "array-move": "^4.0.0",
21
21
  "axios": "^0.27.2",
22
22
  "dayjs": "^1.11.4",
23
- "@avocadoui/echarts": "^1.0.1",
23
+ "@avocadoui/echarts": "^1.0.2",
24
24
  "fbm-ui": "^1.4.161",
25
25
  "hox": "^2.1.0",
26
26
  "immutability-helper": "^3.1.1",