eli-video-interview 1.2.41-alpha.37 → 1.2.41-alpha.39

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.
@@ -95,12 +95,12 @@ var AiQuestionRoot = forwardRef(function (props, ref) {
95
95
  handleValues: handleValues,
96
96
  handleTemplate: function (steps) { return addModel(steps); },
97
97
  handleSubmit: function () { return __awaiter(void 0, void 0, void 0, function () {
98
- var _a, _b, name, token, questions, aiModel, _c, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
98
+ var _a, _b, name, token, questions, aiModel, _c, pcUrl, pcThumbUrl, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
99
99
  return __generator(this, function (_d) {
100
100
  switch (_d.label) {
101
101
  case 0: return [4 /*yield*/, handleValues()];
102
102
  case 1:
103
- _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, aiModel = _b.aiModel, _c = _a.media, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
103
+ _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, aiModel = _b.aiModel, _c = _a.media, pcUrl = _c.pcUrl, pcThumbUrl = _c.pcThumbUrl, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
104
104
  if (!(questions === null || questions === void 0 ? void 0 : questions.length)) {
105
105
  Message.error('还未添加题目,请添加题目');
106
106
  return [2 /*return*/, Promise.reject()];
@@ -113,7 +113,7 @@ var AiQuestionRoot = forwardRef(function (props, ref) {
113
113
  data = (_d.sent()).data;
114
114
  return [2 /*return*/, Promise.resolve({
115
115
  code: 0,
116
- data: __assign(__assign({}, data), { mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: appliedAllPosition }),
116
+ data: __assign(__assign({}, data), { pcUrl: pcUrl, pcThumbUrl: pcThumbUrl, mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: appliedAllPosition }),
117
117
  message: '保存成功',
118
118
  })];
119
119
  case 4:
@@ -127,8 +127,8 @@ var AiQuestionRoot = forwardRef(function (props, ref) {
127
127
  useEffect(function () {
128
128
  updateState(props);
129
129
  if (props === null || props === void 0 ? void 0 : props.mediaList) {
130
- var _a = (props === null || props === void 0 ? void 0 : props.mediaList[0]) || {}, mediaUrl = _a.url, thumbUrl = _a.thumbUrl;
131
- updateBootVideo({ mediaUrl: mediaUrl, thumbUrl: thumbUrl });
130
+ var _a = (props === null || props === void 0 ? void 0 : props.mediaList[0]) || {}, pcUrl = _a.pcUrl, pcThumbUrl = _a.pcThumbUrl, mediaUrl = _a.url, thumbUrl = _a.thumbUrl;
131
+ updateBootVideo({ pcUrl: pcUrl, pcThumbUrl: pcThumbUrl, mediaUrl: mediaUrl, thumbUrl: thumbUrl });
132
132
  }
133
133
  // eslint-disable-next-line react-hooks/exhaustive-deps
134
134
  }, [props]);
@@ -56,6 +56,8 @@ export interface AiQuestionProps {
56
56
  mediaList?: Array<{
57
57
  url: string;
58
58
  thumbUrl: string;
59
+ pcUrl: string;
60
+ pcThumbUrl: string;
59
61
  }>;
60
62
  onLoad?: (steps?: QuestionModelStep[]) => void;
61
63
  onOpenTemplate?: (steps?: QuestionModelStep[]) => void;
@@ -13,6 +13,8 @@ export declare const useAiQuestion: (props: AiQuestionProps) => {
13
13
  mediaList?: {
14
14
  url: string;
15
15
  thumbUrl: string;
16
+ pcUrl: string;
17
+ pcThumbUrl: string;
16
18
  }[] | undefined;
17
19
  onLoad?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
18
20
  onOpenTemplate?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
@@ -9,6 +9,8 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
9
9
  mediaList?: {
10
10
  url: string;
11
11
  thumbUrl: string;
12
+ pcUrl: string;
13
+ pcThumbUrl: string;
12
14
  }[] | undefined;
13
15
  onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
14
16
  onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
@@ -22,6 +24,8 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
22
24
  mediaList?: {
23
25
  url: string;
24
26
  thumbUrl: string;
27
+ pcUrl: string;
28
+ pcThumbUrl: string;
25
29
  }[] | undefined;
26
30
  onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
27
31
  onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
@@ -35,6 +39,8 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
35
39
  mediaList?: {
36
40
  url: string;
37
41
  thumbUrl: string;
42
+ pcUrl: string;
43
+ pcThumbUrl: string;
38
44
  }[] | undefined;
39
45
  onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
40
46
  onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
@@ -100,12 +100,12 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
100
100
  handleValues: handleValues,
101
101
  handleTemplate: function (steps) { return addModel(steps); },
102
102
  handleSubmit: function () { return __awaiter(void 0, void 0, void 0, function () {
103
- var _a, _b, name, token, questions, aiModel, _c, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
103
+ var _a, _b, name, token, questions, aiModel, _c, pcUrl, pcThumbUrl, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
104
104
  return __generator(this, function (_d) {
105
105
  switch (_d.label) {
106
106
  case 0: return [4 /*yield*/, handleValues()];
107
107
  case 1:
108
- _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, aiModel = _b.aiModel, _c = _a.media, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
108
+ _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, aiModel = _b.aiModel, _c = _a.media, pcUrl = _c.pcUrl, pcThumbUrl = _c.pcThumbUrl, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
109
109
  if (!(questions === null || questions === void 0 ? void 0 : questions.length)) {
110
110
  fbm_ui_1.Message.error('还未添加题目,请添加题目');
111
111
  return [2 /*return*/, Promise.reject()];
@@ -118,7 +118,7 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
118
118
  data = (_d.sent()).data;
119
119
  return [2 /*return*/, Promise.resolve({
120
120
  code: 0,
121
- data: __assign(__assign({}, data), { mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: appliedAllPosition }),
121
+ data: __assign(__assign({}, data), { pcUrl: pcUrl, pcThumbUrl: pcThumbUrl, mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: appliedAllPosition }),
122
122
  message: '保存成功',
123
123
  })];
124
124
  case 4:
@@ -132,8 +132,8 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
132
132
  (0, react_1.useEffect)(function () {
133
133
  updateState(props);
134
134
  if (props === null || props === void 0 ? void 0 : props.mediaList) {
135
- var _a = (props === null || props === void 0 ? void 0 : props.mediaList[0]) || {}, mediaUrl = _a.url, thumbUrl = _a.thumbUrl;
136
- updateBootVideo({ mediaUrl: mediaUrl, thumbUrl: thumbUrl });
135
+ var _a = (props === null || props === void 0 ? void 0 : props.mediaList[0]) || {}, pcUrl = _a.pcUrl, pcThumbUrl = _a.pcThumbUrl, mediaUrl = _a.url, thumbUrl = _a.thumbUrl;
136
+ updateBootVideo({ pcUrl: pcUrl, pcThumbUrl: pcThumbUrl, mediaUrl: mediaUrl, thumbUrl: thumbUrl });
137
137
  }
138
138
  // eslint-disable-next-line react-hooks/exhaustive-deps
139
139
  }, [props]);
@@ -56,6 +56,8 @@ export interface AiQuestionProps {
56
56
  mediaList?: Array<{
57
57
  url: string;
58
58
  thumbUrl: string;
59
+ pcUrl: string;
60
+ pcThumbUrl: string;
59
61
  }>;
60
62
  onLoad?: (steps?: QuestionModelStep[]) => void;
61
63
  onOpenTemplate?: (steps?: QuestionModelStep[]) => void;
@@ -13,6 +13,8 @@ export declare const useAiQuestion: (props: AiQuestionProps) => {
13
13
  mediaList?: {
14
14
  url: string;
15
15
  thumbUrl: string;
16
+ pcUrl: string;
17
+ pcThumbUrl: string;
16
18
  }[] | undefined;
17
19
  onLoad?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
18
20
  onOpenTemplate?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
@@ -9,6 +9,8 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
9
9
  mediaList?: {
10
10
  url: string;
11
11
  thumbUrl: string;
12
+ pcUrl: string;
13
+ pcThumbUrl: string;
12
14
  }[] | undefined;
13
15
  onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
14
16
  onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
@@ -22,6 +24,8 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
22
24
  mediaList?: {
23
25
  url: string;
24
26
  thumbUrl: string;
27
+ pcUrl: string;
28
+ pcThumbUrl: string;
25
29
  }[] | undefined;
26
30
  onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
27
31
  onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
@@ -35,6 +39,8 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
35
39
  mediaList?: {
36
40
  url: string;
37
41
  thumbUrl: string;
42
+ pcUrl: string;
43
+ pcThumbUrl: string;
38
44
  }[] | undefined;
39
45
  onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
40
46
  onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.41-alpha.37",
3
+ "version": "1.2.41-alpha.39",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",