touchstudy-core 0.1.156 → 0.1.158

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.
@@ -7641,10 +7641,22 @@ var QuestionCountSelector = function QuestionCountSelector(_ref) {
7641
7641
  value = _ref.value,
7642
7642
  onChange = _ref.onChange,
7643
7643
  isDisabled = _ref.isDisabled,
7644
- rest = _ref.rest;
7644
+ rest = _ref.rest,
7645
+ totalQuestions = _ref.totalQuestions;
7645
7646
  var _useTranslation = useTranslation(),
7646
7647
  t = _useTranslation.t;
7647
- var questionOptions = QUESTION_OPTIONS.map(function (i) {
7648
+ var questionOptions = totalQuestions && totalQuestions > 1 ? Array.from({
7649
+ length: totalQuestions
7650
+ }, function (_, i) {
7651
+ return i + 1;
7652
+ }).map(function (i) {
7653
+ return {
7654
+ label: t("question_count_format", {
7655
+ number: i
7656
+ }),
7657
+ value: i
7658
+ };
7659
+ }) : QUESTION_OPTIONS.map(function (i) {
7648
7660
  return {
7649
7661
  label: t("question_count_format", {
7650
7662
  number: i
@@ -10260,8 +10272,11 @@ var TinyEditor = function TinyEditor(_ref) {
10260
10272
  height: 150,
10261
10273
  menubar: false,
10262
10274
  readonly: false,
10275
+ external_plugins: {
10276
+ tiny_mce_wiris: '/editor/wiris-for-tinymce.js'
10277
+ },
10263
10278
  plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'visualblocks', 'wordcount'],
10264
- toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
10279
+ toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat | tiny_mce_wiris_formulaEditor | tiny_mce_wiris_formulaEditorChemistry',
10265
10280
  branding: false,
10266
10281
  extended_valid_elements: '*[.*]'
10267
10282
  };
@@ -10275,7 +10290,7 @@ var TinyEditor = function TinyEditor(_ref) {
10275
10290
  return React__default.createElement(Editor, {
10276
10291
  disabled: disabled,
10277
10292
  init: config || options,
10278
- initialValue: initValue,
10293
+ value: initValue,
10279
10294
  onEditorChange: handleChange
10280
10295
  });
10281
10296
  };
@@ -33576,6 +33591,7 @@ var CompareTypeOptions = [{
33576
33591
  label: "synonym_processing",
33577
33592
  value: QuestionAnswerType.SynonymProcessing
33578
33593
  }];
33594
+ var MAX_QUESTIONS_IN_QUESTION_GROUP = 20;
33579
33595
 
33580
33596
  var CustomTextbookTab = function CustomTextbookTab(props) {
33581
33597
  var children = props.children,
@@ -34910,7 +34926,8 @@ var QuestionGroupBlock = function QuestionGroupBlock(_ref) {
34910
34926
  var field = _ref2.field;
34911
34927
  return React__default.createElement(QuestionCountSelector, Object.assign({}, field, {
34912
34928
  onChange: handleChangeQuestionCount,
34913
- isDisabled: disabled
34929
+ isDisabled: disabled,
34930
+ totalQuestions: MAX_QUESTIONS_IN_QUESTION_GROUP
34914
34931
  }));
34915
34932
  }
34916
34933
  }))), isMath && React__default.createElement(Grid, {
@@ -36226,6 +36243,7 @@ var TextbookInfoTab = function TextbookInfoTab(_ref) {
36226
36243
  onChange: function onChange(event) {
36227
36244
  return !disabled && handleUploadImage(event);
36228
36245
  },
36246
+ disabled: disabled,
36229
36247
  onClick: function onClick(e) {
36230
36248
  if (!disabled) {
36231
36249
  e.target.value = "";
@@ -36865,7 +36883,7 @@ var PreparedTextbookForm = function PreparedTextbookForm(_ref) {
36865
36883
  }, React__default.createElement(FormLabel, {
36866
36884
  htmlFor: "type",
36867
36885
  className: "text-center"
36868
- }, t$1("korea")), React__default.createElement(Field, {
36886
+ }, t$1("korean_language")), React__default.createElement(Field, {
36869
36887
  name: "type",
36870
36888
  render: function render(_ref4) {
36871
36889
  var field = _ref4.field;