@elice/material-quiz 1.250602.1 → 1.250613.0

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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var messageKo = {"materialQuiz.anchorLabel.answer":"답안","materialQuiz.anchorLabel.question":"지문","materialQuiz.answer":"정답","materialQuiz.bottomSheet.optionEmpty":"모든 보기를 그룹에 배치하였습니다.","materialQuiz.bottomSheet.title":"보기","materialQuiz.dropzone.desktop.answerEmpty":"보기를 영역에 끌어 넣어 주세요.","materialQuiz.dropzone.mobile.answerEmpty":"이곳을 클릭하여 보기를 넣어 주세요.","materialQuiz.dropzone.optionEmpty":"보기","materialQuiz.dropzone.optionReset":"답안 초기화","materialQuiz.empty.description":"퀴즈 게시 후 다시 확인해주세요!","materialQuiz.empty.title":"퀴즈가 준비 중 입니다.","materialQuiz.error":"퀴즈를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.","materialQuiz.explanation.close":"퀴즈해설 닫기","materialQuiz.explanation.empty":"작성된 해설이 없습니다.","materialQuiz.explanation.show":"퀴즈 해설 보기","materialQuiz.hint":"힌트 받기","materialQuiz.next":"다음 문제로 이동 >","materialQuiz.no_submit_history":"제출한 내역이 없습니다.","materialQuiz.order.answerEmpty":"항목을 다시 이곳으로 옮길 수 있습니다.","materialQuiz.reset":"제출 기록 초기화","materialQuiz.resubmit":"다시 제출","materialQuiz.resultStatus.correct":"정답","materialQuiz.resultStatus.submitted":"제출완료","materialQuiz.resultStatus.wrong":"다시 한번 풀어보세요.","materialQuiz.selectMultiple.answer.title":"아래 보기에서 골라주세요. (중복 선택 가능)","materialQuiz.selectMultipleOrder.answer.title":"답안을 드래그 앤 드롭하세요.","materialQuiz.selectOne.answer.title":"아래 보기에서 골라주세요.","materialQuiz.submit":"제출","materialQuiz.submitStatus.failure":"제출에 실패하였습니다.","materialQuiz.submitStatus.success":"제출되었습니다.","materialQuiz.submitted_file":"제출한 파일","materialQuiz.submittedAnswer":"제출한 답","materialQuiz.submmited_file":"제출한 파일","materialQuiz.survey.empty.description":"설문지 게시 후 다시 확인해주세요!","materialQuiz.survey.empty.title":"설문조사 준비 중 입니다.","materialQuiz.text.answer.title":"답안을 작성해 주세요.","materialQuiz.text.correct":"정답입니다.","materialQuiz.text.placeholder":"답안을 작성해 주세요.","materialQuiz.text.wrong":"오답입니다. 다시 답안을 제출해보세요.","materialQuiz.upload_file":"파일 업로드"};
5
+ var messageKo = {"materialQuiz.anchorLabel.answer":"답안","materialQuiz.anchorLabel.question":"지문","materialQuiz.answer":"정답","materialQuiz.bottomSheet.optionEmpty":"모든 보기를 그룹에 배치하였습니다.","materialQuiz.bottomSheet.title":"보기","materialQuiz.dropzone.desktop.answerEmpty":"보기를 영역에 끌어 넣어 주세요.","materialQuiz.dropzone.mobile.answerEmpty":"이곳을 클릭하여 보기를 넣어 주세요.","materialQuiz.dropzone.optionEmpty":"보기","materialQuiz.dropzone.optionReset":"답안 초기화","materialQuiz.empty.description":"퀴즈 게시 후 다시 확인해주세요!","materialQuiz.empty.title":"퀴즈가 준비 중 입니다.","materialQuiz.error":"퀴즈를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.","materialQuiz.explanation.close":"퀴즈해설 닫기","materialQuiz.explanation.empty":"작성된 해설이 없습니다.","materialQuiz.explanation.show":"퀴즈 해설 보기","materialQuiz.hint":"힌트 받기","materialQuiz.next":"다음 문제로 이동 >","materialQuiz.no_submit_history":"제출한 내역이 없습니다.","materialQuiz.order.answerEmpty":"항목을 다시 이곳으로 옮길 수 있습니다.","materialQuiz.reset":"제출 기록 초기화","materialQuiz.resubmit":"다시 제출","materialQuiz.resultStatus.correct":"정답","materialQuiz.resultStatus.submitted":"제출 완료","materialQuiz.resultStatus.wrong":"다시 한번 풀어보세요.","materialQuiz.selectMultiple.answer.title":"아래 보기에서 골라주세요. (중복 선택 가능)","materialQuiz.selectMultipleOrder.answer.title":"답안을 드래그 앤 드롭하세요.","materialQuiz.selectOne.answer.title":"아래 보기에서 골라주세요.","materialQuiz.submit":"제출","materialQuiz.submitStatus.failure":"제출에 실패하였습니다.","materialQuiz.submitStatus.success":"제출되었습니다.","materialQuiz.submitted_file":"제출한 파일","materialQuiz.submittedAnswer":"제출한 답","materialQuiz.submmited_file":"제출한 파일","materialQuiz.survey.empty.description":"설문지 게시 후 다시 확인해주세요!","materialQuiz.survey.empty.title":"설문조사 준비 중 입니다.","materialQuiz.text.answer.title":"답안을 작성해 주세요.","materialQuiz.text.correct":"정답입니다.","materialQuiz.text.placeholder":"답안을 작성해 주세요.","materialQuiz.text.wrong":"오답입니다. 다시 답안을 제출해보세요.","materialQuiz.upload_file":"파일 업로드"};
6
6
 
7
7
  exports.default = messageKo;
@@ -11,6 +11,7 @@ var blocks = require('@elice/blocks');
11
11
  var designTokens = require('@elice/design-tokens');
12
12
  var intl = require('@elice/intl');
13
13
  var markdown = require('@elice/markdown');
14
+ var materialSharedUtils = require('@elice/material-shared-utils');
14
15
  var material = require('@mui/material');
15
16
  var animateScrollTo = require('animated-scroll-to');
16
17
  var styled = require('styled-components');
@@ -18,7 +19,6 @@ var index = require('../../helpers/index.js');
18
19
  var element = require('../../constant/element.js');
19
20
  var MaterialQuizContext = require('../material-quiz/context/MaterialQuizContext.js');
20
21
  var mergeRefs = require('./utils/mergeRefs.js');
21
- var ai_helpy = require('../../assets/imgs/ai_helpy.png.js');
22
22
 
23
23
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
24
24
 
@@ -102,6 +102,8 @@ var QuestionBox = function QuestionBox(_a) {
102
102
  var intersectionRef = React__default.default.useRef(null);
103
103
  var headerRef = React__default.default.useRef(null);
104
104
  var bodyRef = React__default.default.useRef(null);
105
+ var _useHelpyLogo = materialSharedUtils.useHelpyLogo(),
106
+ helpyLogo = _useHelpyLogo.helpyLogo;
105
107
  var currentBodyRef = mergeRefs.mergeRefs(bodyContainerRef, bodyRef);
106
108
  var hasFooter = footerActions.length > 0;
107
109
  var visibleAnchorSection = vertical && isLongPassage;
@@ -184,7 +186,7 @@ var QuestionBox = function QuestionBox(_a) {
184
186
  }
185
187
  },
186
188
  startIcon: jsxRuntime.jsx(material.Avatar, {
187
- src: ai_helpy.default,
189
+ src: helpyLogo,
188
190
  sx: {
189
191
  width: '2rem',
190
192
  height: '2rem'
@@ -1,3 +1,3 @@
1
- var messageKo = {"materialQuiz.anchorLabel.answer":"답안","materialQuiz.anchorLabel.question":"지문","materialQuiz.answer":"정답","materialQuiz.bottomSheet.optionEmpty":"모든 보기를 그룹에 배치하였습니다.","materialQuiz.bottomSheet.title":"보기","materialQuiz.dropzone.desktop.answerEmpty":"보기를 영역에 끌어 넣어 주세요.","materialQuiz.dropzone.mobile.answerEmpty":"이곳을 클릭하여 보기를 넣어 주세요.","materialQuiz.dropzone.optionEmpty":"보기","materialQuiz.dropzone.optionReset":"답안 초기화","materialQuiz.empty.description":"퀴즈 게시 후 다시 확인해주세요!","materialQuiz.empty.title":"퀴즈가 준비 중 입니다.","materialQuiz.error":"퀴즈를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.","materialQuiz.explanation.close":"퀴즈해설 닫기","materialQuiz.explanation.empty":"작성된 해설이 없습니다.","materialQuiz.explanation.show":"퀴즈 해설 보기","materialQuiz.hint":"힌트 받기","materialQuiz.next":"다음 문제로 이동 >","materialQuiz.no_submit_history":"제출한 내역이 없습니다.","materialQuiz.order.answerEmpty":"항목을 다시 이곳으로 옮길 수 있습니다.","materialQuiz.reset":"제출 기록 초기화","materialQuiz.resubmit":"다시 제출","materialQuiz.resultStatus.correct":"정답","materialQuiz.resultStatus.submitted":"제출완료","materialQuiz.resultStatus.wrong":"다시 한번 풀어보세요.","materialQuiz.selectMultiple.answer.title":"아래 보기에서 골라주세요. (중복 선택 가능)","materialQuiz.selectMultipleOrder.answer.title":"답안을 드래그 앤 드롭하세요.","materialQuiz.selectOne.answer.title":"아래 보기에서 골라주세요.","materialQuiz.submit":"제출","materialQuiz.submitStatus.failure":"제출에 실패하였습니다.","materialQuiz.submitStatus.success":"제출되었습니다.","materialQuiz.submitted_file":"제출한 파일","materialQuiz.submittedAnswer":"제출한 답","materialQuiz.submmited_file":"제출한 파일","materialQuiz.survey.empty.description":"설문지 게시 후 다시 확인해주세요!","materialQuiz.survey.empty.title":"설문조사 준비 중 입니다.","materialQuiz.text.answer.title":"답안을 작성해 주세요.","materialQuiz.text.correct":"정답입니다.","materialQuiz.text.placeholder":"답안을 작성해 주세요.","materialQuiz.text.wrong":"오답입니다. 다시 답안을 제출해보세요.","materialQuiz.upload_file":"파일 업로드"};
1
+ var messageKo = {"materialQuiz.anchorLabel.answer":"답안","materialQuiz.anchorLabel.question":"지문","materialQuiz.answer":"정답","materialQuiz.bottomSheet.optionEmpty":"모든 보기를 그룹에 배치하였습니다.","materialQuiz.bottomSheet.title":"보기","materialQuiz.dropzone.desktop.answerEmpty":"보기를 영역에 끌어 넣어 주세요.","materialQuiz.dropzone.mobile.answerEmpty":"이곳을 클릭하여 보기를 넣어 주세요.","materialQuiz.dropzone.optionEmpty":"보기","materialQuiz.dropzone.optionReset":"답안 초기화","materialQuiz.empty.description":"퀴즈 게시 후 다시 확인해주세요!","materialQuiz.empty.title":"퀴즈가 준비 중 입니다.","materialQuiz.error":"퀴즈를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.","materialQuiz.explanation.close":"퀴즈해설 닫기","materialQuiz.explanation.empty":"작성된 해설이 없습니다.","materialQuiz.explanation.show":"퀴즈 해설 보기","materialQuiz.hint":"힌트 받기","materialQuiz.next":"다음 문제로 이동 >","materialQuiz.no_submit_history":"제출한 내역이 없습니다.","materialQuiz.order.answerEmpty":"항목을 다시 이곳으로 옮길 수 있습니다.","materialQuiz.reset":"제출 기록 초기화","materialQuiz.resubmit":"다시 제출","materialQuiz.resultStatus.correct":"정답","materialQuiz.resultStatus.submitted":"제출 완료","materialQuiz.resultStatus.wrong":"다시 한번 풀어보세요.","materialQuiz.selectMultiple.answer.title":"아래 보기에서 골라주세요. (중복 선택 가능)","materialQuiz.selectMultipleOrder.answer.title":"답안을 드래그 앤 드롭하세요.","materialQuiz.selectOne.answer.title":"아래 보기에서 골라주세요.","materialQuiz.submit":"제출","materialQuiz.submitStatus.failure":"제출에 실패하였습니다.","materialQuiz.submitStatus.success":"제출되었습니다.","materialQuiz.submitted_file":"제출한 파일","materialQuiz.submittedAnswer":"제출한 답","materialQuiz.submmited_file":"제출한 파일","materialQuiz.survey.empty.description":"설문지 게시 후 다시 확인해주세요!","materialQuiz.survey.empty.title":"설문조사 준비 중 입니다.","materialQuiz.text.answer.title":"답안을 작성해 주세요.","materialQuiz.text.correct":"정답입니다.","materialQuiz.text.placeholder":"답안을 작성해 주세요.","materialQuiz.text.wrong":"오답입니다. 다시 답안을 제출해보세요.","materialQuiz.upload_file":"파일 업로드"};
2
2
 
3
3
  export { messageKo as default };
@@ -7,6 +7,7 @@ import { Button, Text, Box as Box$1 } from '@elice/blocks';
7
7
  import { base } from '@elice/design-tokens';
8
8
  import { useRawEliceIntl } from '@elice/intl';
9
9
  import { MarkdownTypography } from '@elice/markdown';
10
+ import { useHelpyLogo } from '@elice/material-shared-utils';
10
11
  import { useTheme, Stack, Box, Typography, Button as Button$1, Avatar } from '@mui/material';
11
12
  import animateScrollTo from 'animated-scroll-to';
12
13
  import styled from 'styled-components';
@@ -14,7 +15,6 @@ import { getQuizResultStatus, QuizResultStatus } from '../../helpers/index.js';
14
15
  import { MATERIAL_QUIZ_ANSWER_ID, MATERIAL_QUIZ_PASSIVE_ID } from '../../constant/element.js';
15
16
  import { useMaterialQuizState } from '../material-quiz/context/MaterialQuizContext.js';
16
17
  import { mergeRefs } from './utils/mergeRefs.js';
17
- import img from '../../assets/imgs/ai_helpy.png.js';
18
18
 
19
19
  var easeInOutCubic = function easeInOutCubic(t) {
20
20
  return t < 0.5 ? 4 * Math.pow(t, 3) : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
@@ -92,6 +92,8 @@ var QuestionBox = function QuestionBox(_a) {
92
92
  var intersectionRef = React.useRef(null);
93
93
  var headerRef = React.useRef(null);
94
94
  var bodyRef = React.useRef(null);
95
+ var _useHelpyLogo = useHelpyLogo(),
96
+ helpyLogo = _useHelpyLogo.helpyLogo;
95
97
  var currentBodyRef = mergeRefs(bodyContainerRef, bodyRef);
96
98
  var hasFooter = footerActions.length > 0;
97
99
  var visibleAnchorSection = vertical && isLongPassage;
@@ -174,7 +176,7 @@ var QuestionBox = function QuestionBox(_a) {
174
176
  }
175
177
  },
176
178
  startIcon: jsx(Avatar, {
177
- src: img,
179
+ src: helpyLogo,
178
180
  sx: {
179
181
  width: '2rem',
180
182
  height: '2rem'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-quiz",
3
- "version": "1.250602.1",
3
+ "version": "1.250613.0",
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",
@@ -76,8 +76,8 @@
76
76
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
77
77
  "@elice/intl": "0.241127.0",
78
78
  "@elice/markdown": "1.241015.0",
79
- "@elice/material-shared-types": "1.250602.1",
80
- "@elice/material-shared-utils": "1.250602.1",
79
+ "@elice/material-shared-types": "1.250613.0",
80
+ "@elice/material-shared-utils": "1.250613.0",
81
81
  "@elice/mui-elements": "^5.250108.0-controllabel.0",
82
82
  "@elice/mui-system": "^5.250108.0-controllabel.0",
83
83
  "@elice/openapi-client-course": "^1.241220.0",