@elice/material-quiz 1.241007.1 → 1.241008.0-file.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.
@@ -12,14 +12,12 @@ var icons = require('@elice/icons');
12
12
  var intl = require('@elice/intl');
13
13
  var materialSharedUtils = require('@elice/material-shared-utils');
14
14
  var cloneDeep = require('lodash-es/cloneDeep');
15
- var trim = require('lodash-es/trim');
16
15
  var styled = require('styled-components');
17
16
  var checkTwoDimensionArray = require('../../utils/checkTwoDimensionArray.js');
18
17
 
19
18
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
20
19
 
21
20
  var cloneDeep__default = /*#__PURE__*/_interopDefaultCompat(cloneDeep);
22
- var trim__default = /*#__PURE__*/_interopDefaultCompat(trim);
23
21
  var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
24
22
 
25
23
  var SHEET_Z_INDEX = 982;
@@ -145,12 +143,13 @@ var OptionGroupAnswerListItem = function OptionGroupAnswerListItem(_ref) {
145
143
  id: 'answer.option.errorMessage'
146
144
  })
147
145
  },
148
- validate: function validate(e) {
149
- if (!trim__default.default(e).length) {
150
- return intl$1.formatMessage({
151
- id: 'answer.option.errorMessage'
152
- });
146
+ validate: function validate() {
147
+ if (isOptionTitle || isOptionContent) {
148
+ return true;
153
149
  }
150
+ return intl$1.formatMessage({
151
+ id: 'answer.option.errorMessage'
152
+ });
154
153
  }
155
154
  },
156
155
  render: function render(_ref3) {
@@ -8,7 +8,6 @@ import { eilMathsignMultiplyBasic } from '@elice/icons';
8
8
  import { useRawEliceIntl } from '@elice/intl';
9
9
  import { useMaterialConfigApiClientUpdate } from '@elice/material-shared-utils';
10
10
  import cloneDeep from 'lodash-es/cloneDeep';
11
- import trim from 'lodash-es/trim';
12
11
  import styled, { css } from 'styled-components';
13
12
  import { checkTwoDimensionArray } from '../../utils/checkTwoDimensionArray.js';
14
13
 
@@ -135,12 +134,13 @@ var OptionGroupAnswerListItem = function OptionGroupAnswerListItem(_ref) {
135
134
  id: 'answer.option.errorMessage'
136
135
  })
137
136
  },
138
- validate: function validate(e) {
139
- if (!trim(e).length) {
140
- return intl.formatMessage({
141
- id: 'answer.option.errorMessage'
142
- });
137
+ validate: function validate() {
138
+ if (isOptionTitle || isOptionContent) {
139
+ return true;
143
140
  }
141
+ return intl.formatMessage({
142
+ id: 'answer.option.errorMessage'
143
+ });
144
144
  }
145
145
  },
146
146
  render: function render(_ref3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-quiz",
3
- "version": "1.241007.1",
3
+ "version": "1.241008.0-file.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",
@@ -68,8 +68,8 @@
68
68
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
69
69
  "@elice/intl": "0.240718.0",
70
70
  "@elice/markdown": "^1.240124.0",
71
- "@elice/material-shared-types": "1.241007.1",
72
- "@elice/material-shared-utils": "1.241007.1",
71
+ "@elice/material-shared-types": "1.241008.0-file.0",
72
+ "@elice/material-shared-utils": "1.241008.0-file.0",
73
73
  "@elice/mui-elements": "^5.240820.0",
74
74
  "@elice/mui-system": "^5.240820.0",
75
75
  "@elice/openapi-client-course": "^1.230814.0",