@elice/material-quiz 1.240718.0-trasncript.2 → 1.240718.2
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/cjs/components/eb-sortable/EbDraggable.js +33 -42
- package/cjs/components/eb-sortable/EbDroppable.js +20 -27
- package/cjs/components/markdown-editor/index.d.ts +2 -1
- package/cjs/components/markdown-editor/index.js +10 -19
- package/cjs/components/material-quiz/MaterialQuiz.js +83 -114
- package/cjs/components/material-quiz/MaterialQuizAnswerExplanation.js +29 -36
- package/cjs/components/material-quiz/MaterialQuizInfo.js +149 -151
- package/cjs/components/material-quiz/MaterialQuizSelectMultiple.js +127 -175
- package/cjs/components/material-quiz/MaterialQuizSelectMultipleOrder.js +286 -360
- package/cjs/components/material-quiz/MaterialQuizSelectOne.js +126 -172
- package/cjs/components/material-quiz/MaterialQuizShimmer.js +39 -46
- package/cjs/components/material-quiz/MaterialQuizText.js +115 -163
- package/cjs/components/material-quiz/QuizResultBadge.js +22 -32
- package/cjs/components/material-quiz/QuizSubmitStatusText.js +16 -21
- package/cjs/components/material-quiz/constants/color.js +5 -5
- package/cjs/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
- package/cjs/components/material-quiz/context/MaterialQuizContext.js +93 -156
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +161 -259
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +100 -134
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +101 -130
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +52 -64
- package/cjs/components/material-quiz/material-quiz-group/context/context.js +1 -5
- package/cjs/components/material-quiz-edit/MaterialQuizEdit.js +36 -47
- package/cjs/components/material-quiz-edit/MaterialQuizEditContent.js +232 -280
- package/cjs/components/material-quiz-edit/context.js +2 -8
- package/cjs/components/material-quiz-edit/options/OptionEditor.js +46 -70
- package/cjs/components/material-quiz-edit/options/OptionSelectMultiple.js +148 -174
- package/cjs/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +149 -175
- package/cjs/components/material-quiz-edit/options/OptionSelectOne.js +144 -164
- package/cjs/components/material-quiz-edit/options/OptionText.js +82 -90
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroup.js +8 -9
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +112 -156
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +196 -288
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +75 -88
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +92 -108
- package/cjs/components/material-quiz-edit/utils/checkTwoDimensionArray.js +1 -5
- package/cjs/components/material-quiz-edit/utils/editValue.js +12 -21
- package/cjs/components/shared/QuestionBox.js +165 -198
- package/cjs/components/shared/QuizDraggbleDroppedOption.js +12 -11
- package/cjs/components/shared/QuizDraggbleDummyOption.js +16 -23
- package/cjs/components/shared/QuizDraggbleOption.js +59 -65
- package/cjs/components/shared/StyledMarkdown.js +1 -5
- package/cjs/components/shared/question-checkbox/QuestionCheckbox.js +7 -13
- package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
- package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.js +17 -24
- package/cjs/components/shared/question-checkbox/QuestionCheckboxOption.js +68 -59
- package/cjs/components/shared/question-radio/QuestionRadio.js +7 -13
- package/cjs/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
- package/cjs/components/shared/question-radio/QuestionRadioContext.js +17 -24
- package/cjs/components/shared/question-radio/QuestionRadioOption.js +59 -52
- package/cjs/components/shared/utils/getQuestionStatusStyle.js +9 -7
- package/cjs/components/shared/utils/mergeRefs.js +6 -15
- package/cjs/constant/element.js +3 -3
- package/cjs/helpers/index.js +10 -8
- package/cjs/hooks/useCaculatePassage.js +20 -21
- package/es/components/eb-sortable/EbDraggable.js +33 -37
- package/es/components/eb-sortable/EbDroppable.js +20 -22
- package/es/components/markdown-editor/index.d.ts +2 -1
- package/es/components/markdown-editor/index.js +10 -15
- package/es/components/material-quiz/MaterialQuiz.js +83 -109
- package/es/components/material-quiz/MaterialQuizAnswerExplanation.js +29 -32
- package/es/components/material-quiz/MaterialQuizInfo.js +150 -148
- package/es/components/material-quiz/MaterialQuizSelectMultiple.js +127 -171
- package/es/components/material-quiz/MaterialQuizSelectMultipleOrder.js +287 -356
- package/es/components/material-quiz/MaterialQuizSelectOne.js +126 -168
- package/es/components/material-quiz/MaterialQuizShimmer.js +39 -42
- package/es/components/material-quiz/MaterialQuizText.js +115 -158
- package/es/components/material-quiz/QuizResultBadge.js +22 -27
- package/es/components/material-quiz/QuizSubmitStatusText.js +16 -17
- package/es/components/material-quiz/constants/color.js +5 -5
- package/es/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
- package/es/components/material-quiz/context/MaterialQuizContext.js +94 -153
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +161 -253
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +100 -129
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +101 -125
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +52 -60
- package/es/components/material-quiz/material-quiz-group/context/context.js +1 -1
- package/es/components/material-quiz-edit/MaterialQuizEdit.js +36 -43
- package/es/components/material-quiz-edit/MaterialQuizEditContent.js +229 -272
- package/es/components/material-quiz-edit/context.js +2 -4
- package/es/components/material-quiz-edit/options/OptionEditor.js +46 -64
- package/es/components/material-quiz-edit/options/OptionSelectMultiple.js +148 -170
- package/es/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +149 -171
- package/es/components/material-quiz-edit/options/OptionSelectOne.js +144 -159
- package/es/components/material-quiz-edit/options/OptionText.js +82 -86
- package/es/components/material-quiz-edit/options/options-group/OptionGroup.js +8 -9
- package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +112 -151
- package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +197 -283
- package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +75 -83
- package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +92 -103
- package/es/components/material-quiz-edit/utils/checkTwoDimensionArray.js +1 -5
- package/es/components/material-quiz-edit/utils/editValue.js +12 -17
- package/es/components/shared/QuestionBox.js +165 -192
- package/es/components/shared/QuizDraggbleDroppedOption.js +12 -11
- package/es/components/shared/QuizDraggbleDummyOption.js +16 -19
- package/es/components/shared/QuizDraggbleOption.js +59 -61
- package/es/components/shared/StyledMarkdown.js +1 -1
- package/es/components/shared/question-checkbox/QuestionCheckbox.js +7 -9
- package/es/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
- package/es/components/shared/question-checkbox/QuestionCheckboxContext.js +17 -20
- package/es/components/shared/question-checkbox/QuestionCheckboxOption.js +68 -54
- package/es/components/shared/question-radio/QuestionRadio.js +7 -9
- package/es/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
- package/es/components/shared/question-radio/QuestionRadioContext.js +17 -20
- package/es/components/shared/question-radio/QuestionRadioOption.js +59 -47
- package/es/components/shared/utils/getQuestionStatusStyle.js +9 -7
- package/es/components/shared/utils/mergeRefs.js +6 -15
- package/es/constant/element.js +3 -3
- package/es/helpers/index.js +10 -8
- package/es/hooks/useCaculatePassage.js +20 -21
- package/package.json +15 -12
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -423
- package/cjs/components/material-quiz/index.js +0 -9
- package/cjs/components/material-quiz/locales/index.js +0 -13
- package/cjs/components/material-quiz-edit/index.js +0 -7
- package/cjs/components/material-quiz-edit/locales/index.js +0 -13
- package/cjs/components/shared/index.js +0 -19
- package/cjs/constant/index.js +0 -9
- package/cjs/hooks/index.js +0 -7
- package/es/_virtual/_rollupPluginBabelHelpers.js +0 -408
- package/es/components/material-quiz/index.js +0 -2
- package/es/components/material-quiz/locales/index.js +0 -4
- package/es/components/material-quiz-edit/index.js +0 -1
- package/es/components/material-quiz-edit/locales/index.js +0 -4
- package/es/components/shared/index.js +0 -7
- package/es/constant/index.js +0 -1
- package/es/hooks/index.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactHookForm = require('react-hook-form');
|
|
7
7
|
var reactSortableHoc = require('react-sortable-hoc');
|
|
8
8
|
var blocks = require('@elice/blocks');
|
|
@@ -15,80 +15,63 @@ var checkTwoDimensionArray = require('../../utils/checkTwoDimensionArray.js');
|
|
|
15
15
|
var randomId = require('../../utils/randomId.js');
|
|
16
16
|
var OptionGroupAnswerListItem = require('./OptionGroupAnswerListItem.js');
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var cloneDeep__default = /*#__PURE__*/_interopDefaultCompat(cloneDeep);
|
|
21
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
22
|
-
|
|
23
|
-
var MAX_OPTION_INFO_COUNT = 20;
|
|
24
|
-
var StyledSortableList = styled__default.default.div.withConfig({
|
|
18
|
+
const MAX_OPTION_INFO_COUNT = 20;
|
|
19
|
+
const StyledSortableList = styled.div.withConfig({
|
|
25
20
|
componentId: "sc-14yoda7-0"
|
|
26
21
|
})(["margin:1rem 0;padding:0;"]);
|
|
27
|
-
|
|
22
|
+
const StyledOptionTitle = styled.div.withConfig({
|
|
28
23
|
componentId: "sc-14yoda7-1"
|
|
29
24
|
})(["display:flex;width:calc(100% - 2rem - 1.5rem);"]);
|
|
30
25
|
//
|
|
31
26
|
//
|
|
32
27
|
//
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
setValue
|
|
37
|
-
watch
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
const OptionGroupAnswerInfo = () => {
|
|
29
|
+
const intl$1 = intl.useRawEliceIntl();
|
|
30
|
+
const {
|
|
31
|
+
setValue,
|
|
32
|
+
watch
|
|
33
|
+
} = reactHookForm.useFormContext();
|
|
34
|
+
const {
|
|
35
|
+
disabled
|
|
36
|
+
} = context.useMaterialQuizEditContext();
|
|
37
|
+
const {
|
|
38
|
+
append: appendOptionInfoFieldItem,
|
|
39
|
+
remove: removeOptionInfoFieldItem
|
|
40
|
+
} = reactHookForm.useFieldArray({
|
|
41
|
+
name: 'optionsDefault',
|
|
42
|
+
keyName: 'id',
|
|
43
|
+
shouldUnregister: true
|
|
44
|
+
});
|
|
45
|
+
const watchedAnswerInfo = watch('answerInfoDefault');
|
|
46
|
+
const watchedOptions = watch('optionsDefault');
|
|
47
|
+
const isMaximumOptions = (watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.length) >= MAX_OPTION_INFO_COUNT;
|
|
50
48
|
/**
|
|
51
49
|
*
|
|
52
50
|
*/
|
|
53
|
-
|
|
51
|
+
const handleRemoveItem = index => {
|
|
54
52
|
var _a;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return answers.includes(index);
|
|
58
|
-
});
|
|
53
|
+
const cloneAnswerList = cloneDeep(watchedAnswerInfo);
|
|
54
|
+
const answerIndex = cloneAnswerList.findIndex(answers => answers.includes(index));
|
|
59
55
|
if (!cloneAnswerList[answerIndex]) {
|
|
60
56
|
return removeOptionInfoFieldItem(index);
|
|
61
57
|
}
|
|
62
|
-
cloneAnswerList[answerIndex] = (_a = cloneAnswerList[answerIndex]) === null || _a === void 0 ? void 0 : _a.filter(
|
|
63
|
-
|
|
64
|
-
});
|
|
65
|
-
var recalculationAnswerList = cloneAnswerList.map(function (answers) {
|
|
66
|
-
return answers.map(function (answer) {
|
|
67
|
-
return answer > index ? answer - 1 : answer;
|
|
68
|
-
});
|
|
69
|
-
});
|
|
58
|
+
cloneAnswerList[answerIndex] = (_a = cloneAnswerList[answerIndex]) === null || _a === void 0 ? void 0 : _a.filter(answer => answer !== index);
|
|
59
|
+
const recalculationAnswerList = cloneAnswerList.map(answers => answers.map(answer => answer > index ? answer - 1 : answer));
|
|
70
60
|
removeOptionInfoFieldItem(index);
|
|
71
61
|
setValue('answerInfoDefault', recalculationAnswerList);
|
|
72
62
|
};
|
|
73
63
|
/**
|
|
74
64
|
*
|
|
75
65
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var updatedAnswerInfo = watchedAnswerInfo.map(function (answerList) {
|
|
86
|
-
return answerList.map(function (answer) {
|
|
87
|
-
return updatedOptions.findIndex(function (option) {
|
|
88
|
-
return option.originIndex === answer;
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
});
|
|
66
|
+
const onSortEnd = ({
|
|
67
|
+
oldIndex,
|
|
68
|
+
newIndex
|
|
69
|
+
}) => {
|
|
70
|
+
const prevOptions = cloneDeep(watchedOptions).map((option, index) => Object.assign(Object.assign({}, option), {
|
|
71
|
+
originIndex: index
|
|
72
|
+
}));
|
|
73
|
+
const updatedOptions = reactSortableHoc.arrayMove(prevOptions, oldIndex, newIndex);
|
|
74
|
+
const updatedAnswerInfo = watchedAnswerInfo.map(answerList => answerList.map(answer => updatedOptions.findIndex(option => option.originIndex === answer)));
|
|
92
75
|
setValue('answerInfoDefault', updatedAnswerInfo);
|
|
93
76
|
setValue('optionsDefault', updatedOptions, {
|
|
94
77
|
shouldDirty: true
|
|
@@ -97,112 +80,86 @@ var OptionGroupAnswerInfo = function OptionGroupAnswerInfo() {
|
|
|
97
80
|
/**
|
|
98
81
|
*
|
|
99
82
|
*/
|
|
100
|
-
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
size: "small",
|
|
125
|
-
bold: true,
|
|
126
|
-
children: intl$1.formatMessage({
|
|
127
|
-
id: 'answer.option.title.group'
|
|
128
|
-
})
|
|
129
|
-
})
|
|
130
|
-
})]
|
|
131
|
-
});
|
|
83
|
+
const renderAnswerTitle = () => {
|
|
84
|
+
return React.createElement(StyledOptionTitle, null, React.createElement(blocks.Flex, {
|
|
85
|
+
width: "33.3%",
|
|
86
|
+
auto: true
|
|
87
|
+
}, React.createElement(blocks.Text, {
|
|
88
|
+
size: "small",
|
|
89
|
+
bold: true
|
|
90
|
+
}, intl$1.formatMessage({
|
|
91
|
+
id: 'answer.option.title.text'
|
|
92
|
+
}))), React.createElement(blocks.Flex, {
|
|
93
|
+
width: "33.3%"
|
|
94
|
+
}, React.createElement(blocks.Text, {
|
|
95
|
+
size: "small",
|
|
96
|
+
bold: true
|
|
97
|
+
}, intl$1.formatMessage({
|
|
98
|
+
id: 'answer.option.title.file'
|
|
99
|
+
}))), React.createElement(blocks.Flex, {
|
|
100
|
+
width: "calc(33.3% - 1.5rem)"
|
|
101
|
+
}, React.createElement(blocks.Text, {
|
|
102
|
+
size: "small",
|
|
103
|
+
bold: true
|
|
104
|
+
}, intl$1.formatMessage({
|
|
105
|
+
id: 'answer.option.title.group'
|
|
106
|
+
}))));
|
|
132
107
|
};
|
|
133
108
|
/**
|
|
134
109
|
*
|
|
135
110
|
*/
|
|
136
|
-
|
|
137
|
-
return
|
|
111
|
+
const renderAnswerOptionList = () => {
|
|
112
|
+
return React.createElement(blocks.SortableListGroup, {
|
|
138
113
|
onSortEnd: onSortEnd,
|
|
139
|
-
useDragHandle: true
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return handleRemoveItem(index);
|
|
147
|
-
}
|
|
148
|
-
}, option.id);
|
|
149
|
-
})
|
|
150
|
-
})
|
|
151
|
-
});
|
|
114
|
+
useDragHandle: true
|
|
115
|
+
}, React.createElement(StyledSortableList, null, watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.map((option, index) => React.createElement(OptionGroupAnswerListItem.default, {
|
|
116
|
+
key: option.id,
|
|
117
|
+
optionId: index,
|
|
118
|
+
disabled: disabled,
|
|
119
|
+
onRemoveItem: () => handleRemoveItem(index)
|
|
120
|
+
}))));
|
|
152
121
|
};
|
|
153
122
|
/**
|
|
154
123
|
*
|
|
155
124
|
*/
|
|
156
|
-
|
|
157
|
-
return
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
role: "description",
|
|
195
|
-
children: intl$1.formatMessage({
|
|
196
|
-
id: 'answer.option.file.description.fileSize'
|
|
197
|
-
})
|
|
198
|
-
}), jsxRuntime.jsx(blocks.StatusText, {
|
|
199
|
-
role: "description",
|
|
200
|
-
children: intl$1.formatMessage({
|
|
201
|
-
id: 'answer.option.file.description.extension'
|
|
202
|
-
})
|
|
203
|
-
})]
|
|
204
|
-
})]
|
|
205
|
-
});
|
|
125
|
+
const renderAnswerOptionAddButton = () => {
|
|
126
|
+
return React.createElement(React.Fragment, null, React.createElement(blocks.Tooltip, {
|
|
127
|
+
title: isMaximumOptions ? intl$1.formatMessage({
|
|
128
|
+
id: 'answer.option.tooltip.maxDisabled'
|
|
129
|
+
}) : undefined,
|
|
130
|
+
placement: "top"
|
|
131
|
+
}, React.createElement("span", null, React.createElement(blocks.Button, {
|
|
132
|
+
borderDashed: true,
|
|
133
|
+
block: true,
|
|
134
|
+
transparent: true,
|
|
135
|
+
disabled: isMaximumOptions || disabled,
|
|
136
|
+
icon: React.createElement(blocks.Icon, {
|
|
137
|
+
icon: icons.eilMathsignAddBasic
|
|
138
|
+
}),
|
|
139
|
+
onClick: () => appendOptionInfoFieldItem({
|
|
140
|
+
id: randomId.createRandomId(),
|
|
141
|
+
title: '',
|
|
142
|
+
content: ''
|
|
143
|
+
})
|
|
144
|
+
}, intl$1.formatMessage({
|
|
145
|
+
id: 'answer.option.addButton'
|
|
146
|
+
})))), React.createElement(blocks.Vspace, {
|
|
147
|
+
height: 0.5
|
|
148
|
+
}), React.createElement(blocks.Flex, {
|
|
149
|
+
column: true
|
|
150
|
+
}, React.createElement(blocks.StatusText, {
|
|
151
|
+
role: "description"
|
|
152
|
+
}, intl$1.formatMessage({
|
|
153
|
+
id: 'answer.option.file.description.imageSize'
|
|
154
|
+
})), React.createElement(blocks.StatusText, {
|
|
155
|
+
role: "description"
|
|
156
|
+
}, intl$1.formatMessage({
|
|
157
|
+
id: 'answer.option.file.description.fileSize'
|
|
158
|
+
})), React.createElement(blocks.StatusText, {
|
|
159
|
+
role: "description"
|
|
160
|
+
}, intl$1.formatMessage({
|
|
161
|
+
id: 'answer.option.file.description.extension'
|
|
162
|
+
}))));
|
|
206
163
|
};
|
|
207
164
|
//
|
|
208
165
|
//
|
|
@@ -210,10 +167,9 @@ var OptionGroupAnswerInfo = function OptionGroupAnswerInfo() {
|
|
|
210
167
|
if (!checkTwoDimensionArray.checkTwoDimensionArray(watchedAnswerInfo)) {
|
|
211
168
|
return null;
|
|
212
169
|
}
|
|
213
|
-
return
|
|
214
|
-
column: true
|
|
215
|
-
|
|
216
|
-
});
|
|
170
|
+
return React.createElement(blocks.Flex, {
|
|
171
|
+
column: true
|
|
172
|
+
}, renderAnswerTitle(), renderAnswerOptionList(), renderAnswerOptionAddButton());
|
|
217
173
|
};
|
|
218
174
|
|
|
219
175
|
exports.default = OptionGroupAnswerInfo;
|