@elice/material-quiz 1.240508.0-globalization.0 → 1.240508.0-globalization.1

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 (45) hide show
  1. package/cjs/components/material-quiz/MaterialQuiz.js +1 -5
  2. package/cjs/components/material-quiz/MaterialQuizAnswerExplanation.js +1 -3
  3. package/cjs/components/material-quiz/MaterialQuizSelectMultiple.js +1 -3
  4. package/cjs/components/material-quiz/MaterialQuizSelectMultipleOrder.js +1 -3
  5. package/cjs/components/material-quiz/MaterialQuizSelectOne.js +1 -3
  6. package/cjs/components/material-quiz/MaterialQuizText.js +1 -3
  7. package/cjs/components/material-quiz/QuizResultBadge.js +1 -3
  8. package/cjs/components/material-quiz/QuizSubmitStatusText.js +1 -3
  9. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +1 -3
  10. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +1 -3
  11. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +1 -3
  12. package/cjs/components/material-quiz-edit/MaterialQuizEdit.js +1 -5
  13. package/cjs/components/material-quiz-edit/MaterialQuizEditContent.js +1 -3
  14. package/cjs/components/material-quiz-edit/options/OptionSelectMultiple.js +1 -3
  15. package/cjs/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +1 -3
  16. package/cjs/components/material-quiz-edit/options/OptionSelectOne.js +1 -3
  17. package/cjs/components/material-quiz-edit/options/OptionText.js +1 -3
  18. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +1 -3
  19. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +1 -3
  20. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +1 -3
  21. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +1 -3
  22. package/cjs/components/shared/QuestionBox.js +1 -3
  23. package/es/components/material-quiz/MaterialQuiz.js +1 -5
  24. package/es/components/material-quiz/MaterialQuizAnswerExplanation.js +1 -3
  25. package/es/components/material-quiz/MaterialQuizSelectMultiple.js +1 -3
  26. package/es/components/material-quiz/MaterialQuizSelectMultipleOrder.js +1 -3
  27. package/es/components/material-quiz/MaterialQuizSelectOne.js +1 -3
  28. package/es/components/material-quiz/MaterialQuizText.js +1 -3
  29. package/es/components/material-quiz/QuizResultBadge.js +1 -3
  30. package/es/components/material-quiz/QuizSubmitStatusText.js +1 -3
  31. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +1 -3
  32. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +1 -3
  33. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +1 -3
  34. package/es/components/material-quiz-edit/MaterialQuizEdit.js +1 -5
  35. package/es/components/material-quiz-edit/MaterialQuizEditContent.js +1 -3
  36. package/es/components/material-quiz-edit/options/OptionSelectMultiple.js +1 -3
  37. package/es/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +1 -3
  38. package/es/components/material-quiz-edit/options/OptionSelectOne.js +1 -3
  39. package/es/components/material-quiz-edit/options/OptionText.js +1 -3
  40. package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +1 -3
  41. package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +1 -3
  42. package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +1 -3
  43. package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +1 -3
  44. package/es/components/shared/QuestionBox.js +1 -3
  45. package/package.json +5 -5
@@ -91,11 +91,7 @@ const MaterialQuizContainer = ({
91
91
  onNext,
92
92
  __intl
93
93
  }) => {
94
- return React.createElement(intl.RawEliceIntlProvider, {
95
- value: {
96
- intl: __intl
97
- }
98
- }, React.createElement(MaterialQuizContext.MaterialQuizProvider, {
94
+ return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialQuizContext.MaterialQuizProvider, {
99
95
  materialQuizId: materialQuizId,
100
96
  userId: userId,
101
97
  onDirty: onDirty,
@@ -22,9 +22,7 @@ const MaterialQuizAnswerExplanation = () => {
22
22
  lecture,
23
23
  materialQuiz
24
24
  } = MaterialQuizContext.useMaterialQuizState();
25
- const {
26
- intl: intl$1
27
- } = intl.useRawEliceIntl();
25
+ const intl$1 = intl.useRawEliceIntl();
28
26
  if (!materialQuiz || !materialQuiz.explanationInfo.isEnabled || !materialQuiz.isResponded || (lecture === null || lecture === void 0 ? void 0 : lecture.lectureType) === types.enums.LectureType.Test && (lecture === null || lecture === void 0 ? void 0 : lecture.testUserStatus) !== types.enums.LectureTestUserStatus.Completed) {
29
27
  return null;
30
28
  }
@@ -33,9 +33,7 @@ const MaterialQuizSelectMultiple = () => {
33
33
  onDirty
34
34
  } = MaterialQuizContext.useMaterialQuizDispatch();
35
35
  // state
36
- const {
37
- intl: intl$1
38
- } = intl.useRawEliceIntl();
36
+ const intl$1 = intl.useRawEliceIntl();
39
37
  const [selectedAnswer, setSelectedAnswer] = React.useState([]);
40
38
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
41
39
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -71,9 +71,7 @@ const MaterialQuizSelectMultipleOrder = () => {
71
71
  onDirty
72
72
  } = MaterialQuizContext.useMaterialQuizDispatch();
73
73
  // state
74
- const {
75
- intl: intl$1
76
- } = intl.useRawEliceIntl();
74
+ const intl$1 = intl.useRawEliceIntl();
77
75
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
78
76
  const [submitStatus, setSubmitStatus] = React.useState('idle');
79
77
  const [isActive, setIsActive] = React.useState(false);
@@ -33,9 +33,7 @@ const MaterialQuizSelectOne = () => {
33
33
  onDirty
34
34
  } = MaterialQuizContext.useMaterialQuizDispatch();
35
35
  // state
36
- const {
37
- intl: intl$1
38
- } = intl.useRawEliceIntl();
36
+ const intl$1 = intl.useRawEliceIntl();
39
37
  const [selectedAnswer, setSelectedAnswer] = React.useState();
40
38
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
41
39
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -36,9 +36,7 @@ const MaterialQuizText = () => {
36
36
  onDirty
37
37
  } = MaterialQuizContext.useMaterialQuizDispatch();
38
38
  // state
39
- const {
40
- intl: intl$1
41
- } = intl.useRawEliceIntl();
39
+ const intl$1 = intl.useRawEliceIntl();
42
40
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
43
41
  const [submitStatus, setSubmitStatus] = React.useState('idle');
44
42
  const [answer, setAnswer] = React.useState('');
@@ -10,9 +10,7 @@ var index = require('../../helpers/index.js');
10
10
  const QuizResultBadge = ({
11
11
  materialQuizResponse
12
12
  }) => {
13
- const {
14
- intl: intl$1
15
- } = intl.useRawEliceIntl();
13
+ const intl$1 = intl.useRawEliceIntl();
16
14
  const status = React.useMemo(() => index.getQuizResultStatus(materialQuizResponse), [materialQuizResponse]);
17
15
  switch (status) {
18
16
  case index.QuizResultStatus.Correct:
@@ -9,9 +9,7 @@ var intl = require('@elice/intl');
9
9
  const QuizSubmitStatusText = ({
10
10
  status
11
11
  }) => {
12
- const {
13
- intl: intl$1
14
- } = intl.useRawEliceIntl();
12
+ const intl$1 = intl.useRawEliceIntl();
15
13
  switch (status) {
16
14
  case 'resolved':
17
15
  return React.createElement(blocks.StatusText, {
@@ -24,9 +24,7 @@ var MaterialQuizGroupMobile = require('./MaterialQuizGroupMobile.js');
24
24
  //
25
25
  //
26
26
  const MaterialQuizGroup = () => {
27
- const {
28
- intl: intl$1
29
- } = intl.useRawEliceIntl();
27
+ const intl$1 = intl.useRawEliceIntl();
30
28
  // context
31
29
  const {
32
30
  materialQuiz,
@@ -34,9 +34,7 @@ const StyledQuizOptionsDropzone = styled(EbDroppable.default).withConfig({
34
34
  componentId: "sc-18trt81-4"
35
35
  })(["display:flex;flex-wrap:wrap;gap:1rem;min-height:10.25rem;border-radius:0.5rem;outline:1px dashed ", ";&.ui-droppable-hover{outline:1px dashed ", ";}"], designTokens.base.color.navy4, designTokens.base.color.gray4);
36
36
  const MaterialQuizGroupDesktop = () => {
37
- const {
38
- intl: intl$1
39
- } = intl.useRawEliceIntl();
37
+ const intl$1 = intl.useRawEliceIntl();
40
38
  const {
41
39
  userId
42
40
  } = MaterialQuizContext.useMaterialQuizState();
@@ -29,9 +29,7 @@ const StyledBottomSheetWrapper = styled(StyledQuizOptionList).withConfig({
29
29
  isCurrentOptionList
30
30
  }) => vertical && isCurrentOptionList ? 'flex-start' : 'center');
31
31
  const MaterialQuizGroupMobile = () => {
32
- const {
33
- intl: intl$1
34
- } = intl.useRawEliceIntl();
32
+ const intl$1 = intl.useRawEliceIntl();
35
33
  // context
36
34
  const {
37
35
  materialQuiz,
@@ -77,11 +77,7 @@ const MaterialQuizEdit = React.forwardRef(({
77
77
  //
78
78
  //
79
79
  //
80
- return React.createElement(intl.RawEliceIntlProvider, {
81
- value: {
82
- intl: __intl
83
- }
84
- }, React.createElement("form", {
80
+ return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement("form", {
85
81
  ref: formElRef
86
82
  }, React.createElement(context.default.Provider, {
87
83
  value: {
@@ -23,9 +23,7 @@ var context = require('./context.js');
23
23
  const MIN_TEXT_LENGTH = 1;
24
24
  const MAX_TEXT_LENGTH = 128;
25
25
  const MaterialQuizEditContent = () => {
26
- const {
27
- intl: intl$1
28
- } = intl.useRawEliceIntl();
26
+ const intl$1 = intl.useRawEliceIntl();
29
27
  const {
30
28
  disabled,
31
29
  onFileUploadRequest
@@ -24,9 +24,7 @@ const StyledInputGroup = styled(blocks.SortableListGroup).withConfig({
24
24
  componentId: "sc-1nbx9b8-1"
25
25
  })(["width:100%;.em-option-editor{margin-bottom:0.5rem;&:last-of-type{margin-bottom:0;}}"]);
26
26
  const OptionSelectMultiple = () => {
27
- const {
28
- intl: intl$1
29
- } = intl.useRawEliceIntl();
27
+ const intl$1 = intl.useRawEliceIntl();
30
28
  const {
31
29
  disabled
32
30
  } = context.useMaterialQuizEditContext();
@@ -24,9 +24,7 @@ const StyledInputGroup = styled(blocks.SortableListGroup).withConfig({
24
24
  componentId: "sc-1xufc1p-1"
25
25
  })(["width:100%;.em-option-editor{margin-bottom:0.5rem;&:last-of-type{margin-bottom:0;}}"]);
26
26
  const OptionSelectMultipleOrder = () => {
27
- const {
28
- intl: intl$1
29
- } = intl.useRawEliceIntl();
27
+ const intl$1 = intl.useRawEliceIntl();
30
28
  const {
31
29
  disabled
32
30
  } = context.useMaterialQuizEditContext();
@@ -27,9 +27,7 @@ const StyledInputPrefixRadioOption = styled(blocks.RadioOption).withConfig({
27
27
  componentId: "sc-vizer2-2"
28
28
  })([".eb-radio-option__label{display:none;}"]);
29
29
  const OptionSelectOne = () => {
30
- const {
31
- intl: intl$1
32
- } = intl.useRawEliceIntl();
30
+ const intl$1 = intl.useRawEliceIntl();
33
31
  const {
34
32
  disabled
35
33
  } = context.useMaterialQuizEditContext();
@@ -28,9 +28,7 @@ const StyledInput = /*#__PURE__*/_styled(blocks.Input, {
28
28
  //
29
29
  //
30
30
  const OptionText = () => {
31
- const {
32
- intl: intl$1
33
- } = intl.useRawEliceIntl();
31
+ const intl$1 = intl.useRawEliceIntl();
34
32
  const {
35
33
  disabled
36
34
  } = context.useMaterialQuizEditContext();
@@ -26,9 +26,7 @@ const StyledOptionTitle = styled.div.withConfig({
26
26
  //
27
27
  //
28
28
  const OptionGroupAnswerInfo = () => {
29
- const {
30
- intl: intl$1
31
- } = intl.useRawEliceIntl();
29
+ const intl$1 = intl.useRawEliceIntl();
32
30
  const {
33
31
  setValue,
34
32
  watch
@@ -54,9 +54,7 @@ const OptionGroupAnswerListItem = ({
54
54
  onRemoveItem
55
55
  }) => {
56
56
  var _a, _b, _c, _d, _e, _f, _g, _h;
57
- const {
58
- intl: intl$1
59
- } = intl.useRawEliceIntl();
57
+ const intl$1 = intl.useRawEliceIntl();
60
58
  const {
61
59
  control,
62
60
  formState,
@@ -22,9 +22,7 @@ const StyledSortableList = styled.div.withConfig({
22
22
  //
23
23
  //
24
24
  const OptionGroupGroupInfo = () => {
25
- const {
26
- intl: intl$1
27
- } = intl.useRawEliceIntl();
25
+ const intl$1 = intl.useRawEliceIntl();
28
26
  const {
29
27
  control,
30
28
  setValue
@@ -31,9 +31,7 @@ const OptionGroupGroupListItem = ({
31
31
  onRemoveOption
32
32
  }) => {
33
33
  var _a, _b, _c, _d, _e;
34
- const {
35
- intl: intl$1
36
- } = intl.useRawEliceIntl();
34
+ const intl$1 = intl.useRawEliceIntl();
37
35
  const {
38
36
  control,
39
37
  formState
@@ -62,9 +62,7 @@ const QuestionBox = _a => {
62
62
  isNextActive
63
63
  } = _a,
64
64
  props = tslib.__rest(_a, ["children", "footerActions", "title", "titlePrefix", "submitResult", "submitStatus", "onNext", "isNextActive"]);
65
- const {
66
- intl: intl$1
67
- } = intl.useRawEliceIntl();
65
+ const intl$1 = intl.useRawEliceIntl();
68
66
  const {
69
67
  vertical
70
68
  } = MaterialQuizContext.useMaterialQuizState();
@@ -87,11 +87,7 @@ const MaterialQuizContainer = ({
87
87
  onNext,
88
88
  __intl
89
89
  }) => {
90
- return React.createElement(RawEliceIntlProvider, {
91
- value: {
92
- intl: __intl
93
- }
94
- }, React.createElement(MaterialQuizProvider, {
90
+ return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialQuizProvider, {
95
91
  materialQuizId: materialQuizId,
96
92
  userId: userId,
97
93
  onDirty: onDirty,
@@ -18,9 +18,7 @@ const MaterialQuizAnswerExplanation = () => {
18
18
  lecture,
19
19
  materialQuiz
20
20
  } = useMaterialQuizState();
21
- const {
22
- intl
23
- } = useRawEliceIntl();
21
+ const intl = useRawEliceIntl();
24
22
  if (!materialQuiz || !materialQuiz.explanationInfo.isEnabled || !materialQuiz.isResponded || (lecture === null || lecture === void 0 ? void 0 : lecture.lectureType) === enums.LectureType.Test && (lecture === null || lecture === void 0 ? void 0 : lecture.testUserStatus) !== enums.LectureTestUserStatus.Completed) {
25
23
  return null;
26
24
  }
@@ -29,9 +29,7 @@ const MaterialQuizSelectMultiple = () => {
29
29
  onDirty
30
30
  } = useMaterialQuizDispatch();
31
31
  // state
32
- const {
33
- intl
34
- } = useRawEliceIntl();
32
+ const intl = useRawEliceIntl();
35
33
  const [selectedAnswer, setSelectedAnswer] = React.useState([]);
36
34
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
37
35
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -67,9 +67,7 @@ const MaterialQuizSelectMultipleOrder = () => {
67
67
  onDirty
68
68
  } = useMaterialQuizDispatch();
69
69
  // state
70
- const {
71
- intl
72
- } = useRawEliceIntl();
70
+ const intl = useRawEliceIntl();
73
71
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
74
72
  const [submitStatus, setSubmitStatus] = React.useState('idle');
75
73
  const [isActive, setIsActive] = React.useState(false);
@@ -29,9 +29,7 @@ const MaterialQuizSelectOne = () => {
29
29
  onDirty
30
30
  } = useMaterialQuizDispatch();
31
31
  // state
32
- const {
33
- intl
34
- } = useRawEliceIntl();
32
+ const intl = useRawEliceIntl();
35
33
  const [selectedAnswer, setSelectedAnswer] = React.useState();
36
34
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
37
35
  const [submitStatus, setSubmitStatus] = React.useState('idle');
@@ -32,9 +32,7 @@ const MaterialQuizText = () => {
32
32
  onDirty
33
33
  } = useMaterialQuizDispatch();
34
34
  // state
35
- const {
36
- intl
37
- } = useRawEliceIntl();
35
+ const intl = useRawEliceIntl();
38
36
  const [materialQuizResponse, setMaterialQuizResponse] = React.useState();
39
37
  const [submitStatus, setSubmitStatus] = React.useState('idle');
40
38
  const [answer, setAnswer] = React.useState('');
@@ -6,9 +6,7 @@ import { getQuizResultStatus, QuizResultStatus } from '../../helpers/index.js';
6
6
  const QuizResultBadge = ({
7
7
  materialQuizResponse
8
8
  }) => {
9
- const {
10
- intl
11
- } = useRawEliceIntl();
9
+ const intl = useRawEliceIntl();
12
10
  const status = React.useMemo(() => getQuizResultStatus(materialQuizResponse), [materialQuizResponse]);
13
11
  switch (status) {
14
12
  case QuizResultStatus.Correct:
@@ -5,9 +5,7 @@ import { useRawEliceIntl } from '@elice/intl';
5
5
  const QuizSubmitStatusText = ({
6
6
  status
7
7
  }) => {
8
- const {
9
- intl
10
- } = useRawEliceIntl();
8
+ const intl = useRawEliceIntl();
11
9
  switch (status) {
12
10
  case 'resolved':
13
11
  return React.createElement(StatusText, {
@@ -20,9 +20,7 @@ import MaterialQuizGroupMobile from './MaterialQuizGroupMobile.js';
20
20
  //
21
21
  //
22
22
  const MaterialQuizGroup = () => {
23
- const {
24
- intl
25
- } = useRawEliceIntl();
23
+ const intl = useRawEliceIntl();
26
24
  // context
27
25
  const {
28
26
  materialQuiz,
@@ -30,9 +30,7 @@ const StyledQuizOptionsDropzone = styled(EbDroppable).withConfig({
30
30
  componentId: "sc-18trt81-4"
31
31
  })(["display:flex;flex-wrap:wrap;gap:1rem;min-height:10.25rem;border-radius:0.5rem;outline:1px dashed ", ";&.ui-droppable-hover{outline:1px dashed ", ";}"], base.color.navy4, base.color.gray4);
32
32
  const MaterialQuizGroupDesktop = () => {
33
- const {
34
- intl
35
- } = useRawEliceIntl();
33
+ const intl = useRawEliceIntl();
36
34
  const {
37
35
  userId
38
36
  } = useMaterialQuizState();
@@ -25,9 +25,7 @@ const StyledBottomSheetWrapper = styled(StyledQuizOptionList).withConfig({
25
25
  isCurrentOptionList
26
26
  }) => vertical && isCurrentOptionList ? 'flex-start' : 'center');
27
27
  const MaterialQuizGroupMobile = () => {
28
- const {
29
- intl
30
- } = useRawEliceIntl();
28
+ const intl = useRawEliceIntl();
31
29
  // context
32
30
  const {
33
31
  materialQuiz,
@@ -73,11 +73,7 @@ const MaterialQuizEdit = forwardRef(({
73
73
  //
74
74
  //
75
75
  //
76
- return React.createElement(RawEliceIntlProvider, {
77
- value: {
78
- intl: __intl
79
- }
80
- }, React.createElement("form", {
76
+ return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement("form", {
81
77
  ref: formElRef
82
78
  }, React.createElement(MaterialQuizEditContext.Provider, {
83
79
  value: {
@@ -19,9 +19,7 @@ import { useMaterialQuizEditContext } from './context.js';
19
19
  const MIN_TEXT_LENGTH = 1;
20
20
  const MAX_TEXT_LENGTH = 128;
21
21
  const MaterialQuizEditContent = () => {
22
- const {
23
- intl
24
- } = useRawEliceIntl();
22
+ const intl = useRawEliceIntl();
25
23
  const {
26
24
  disabled,
27
25
  onFileUploadRequest
@@ -20,9 +20,7 @@ const StyledInputGroup = styled(SortableListGroup).withConfig({
20
20
  componentId: "sc-1nbx9b8-1"
21
21
  })(["width:100%;.em-option-editor{margin-bottom:0.5rem;&:last-of-type{margin-bottom:0;}}"]);
22
22
  const OptionSelectMultiple = () => {
23
- const {
24
- intl
25
- } = useRawEliceIntl();
23
+ const intl = useRawEliceIntl();
26
24
  const {
27
25
  disabled
28
26
  } = useMaterialQuizEditContext();
@@ -20,9 +20,7 @@ const StyledInputGroup = styled(SortableListGroup).withConfig({
20
20
  componentId: "sc-1xufc1p-1"
21
21
  })(["width:100%;.em-option-editor{margin-bottom:0.5rem;&:last-of-type{margin-bottom:0;}}"]);
22
22
  const OptionSelectMultipleOrder = () => {
23
- const {
24
- intl
25
- } = useRawEliceIntl();
23
+ const intl = useRawEliceIntl();
26
24
  const {
27
25
  disabled
28
26
  } = useMaterialQuizEditContext();
@@ -23,9 +23,7 @@ const StyledInputPrefixRadioOption = styled(RadioOption).withConfig({
23
23
  componentId: "sc-vizer2-2"
24
24
  })([".eb-radio-option__label{display:none;}"]);
25
25
  const OptionSelectOne = () => {
26
- const {
27
- intl
28
- } = useRawEliceIntl();
26
+ const intl = useRawEliceIntl();
29
27
  const {
30
28
  disabled
31
29
  } = useMaterialQuizEditContext();
@@ -24,9 +24,7 @@ const StyledInput = /*#__PURE__*/_styled(Input, {
24
24
  //
25
25
  //
26
26
  const OptionText = () => {
27
- const {
28
- intl
29
- } = useRawEliceIntl();
27
+ const intl = useRawEliceIntl();
30
28
  const {
31
29
  disabled
32
30
  } = useMaterialQuizEditContext();
@@ -22,9 +22,7 @@ const StyledOptionTitle = styled.div.withConfig({
22
22
  //
23
23
  //
24
24
  const OptionGroupAnswerInfo = () => {
25
- const {
26
- intl
27
- } = useRawEliceIntl();
25
+ const intl = useRawEliceIntl();
28
26
  const {
29
27
  setValue,
30
28
  watch
@@ -50,9 +50,7 @@ const OptionGroupAnswerListItem = ({
50
50
  onRemoveItem
51
51
  }) => {
52
52
  var _a, _b, _c, _d, _e, _f, _g, _h;
53
- const {
54
- intl
55
- } = useRawEliceIntl();
53
+ const intl = useRawEliceIntl();
56
54
  const {
57
55
  control,
58
56
  formState,
@@ -18,9 +18,7 @@ const StyledSortableList = styled.div.withConfig({
18
18
  //
19
19
  //
20
20
  const OptionGroupGroupInfo = () => {
21
- const {
22
- intl
23
- } = useRawEliceIntl();
21
+ const intl = useRawEliceIntl();
24
22
  const {
25
23
  control,
26
24
  setValue
@@ -27,9 +27,7 @@ const OptionGroupGroupListItem = ({
27
27
  onRemoveOption
28
28
  }) => {
29
29
  var _a, _b, _c, _d, _e;
30
- const {
31
- intl
32
- } = useRawEliceIntl();
30
+ const intl = useRawEliceIntl();
33
31
  const {
34
32
  control,
35
33
  formState
@@ -58,9 +58,7 @@ const QuestionBox = _a => {
58
58
  isNextActive
59
59
  } = _a,
60
60
  props = __rest(_a, ["children", "footerActions", "title", "titlePrefix", "submitResult", "submitStatus", "onNext", "isNextActive"]);
61
- const {
62
- intl
63
- } = useRawEliceIntl();
61
+ const intl = useRawEliceIntl();
64
62
  const {
65
63
  vertical
66
64
  } = useMaterialQuizState();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-quiz",
3
- "version": "1.240508.0-globalization.0",
3
+ "version": "1.240508.0-globalization.1",
4
4
  "description": "User view and editing components of Elice material quiz",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -62,10 +62,10 @@
62
62
  "@elice/design-tokens": "^1.220803.0",
63
63
  "@elice/icons": "^1.230814.0",
64
64
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
65
- "@elice/intl": "0.240425.0-alpha.7",
65
+ "@elice/intl": "0.240425.0-alpha.9",
66
66
  "@elice/markdown": "^1.240124.0",
67
- "@elice/material-shared-types": "1.240508.0-globalization.0",
68
- "@elice/material-shared-utils": "1.240508.0-globalization.0",
67
+ "@elice/material-shared-types": "1.240508.0-globalization.1",
68
+ "@elice/material-shared-utils": "1.240508.0-globalization.1",
69
69
  "@elice/mui-system": "^5.240108.1",
70
70
  "@elice/types": "1.240131.0",
71
71
  "@emotion/react": "^11.10.0",
@@ -87,5 +87,5 @@
87
87
  "react-use": "^17.2.4",
88
88
  "styled-components": "^5.3.0"
89
89
  },
90
- "gitHead": "e64474c7cab0b6cb852ba08a2076c88e732eec03"
90
+ "gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
91
91
  }