touchstudy-core 0.1.165 → 0.1.166

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.
@@ -14523,7 +14523,7 @@ var NoteTinyEditor = function NoteTinyEditor(_ref) {
14523
14523
  external_plugins: {
14524
14524
  tiny_mce_wiris: '/editor/wiris-for-tinymce.js'
14525
14525
  },
14526
- plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'textcolor', 'wordcount'],
14526
+ plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'wordcount'],
14527
14527
  toolbar: 'undo redo | blocks fontfamily fontsize forecolor backcolor | 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',
14528
14528
  branding: false,
14529
14529
  extended_valid_elements: '*[.*]',
@@ -14548,9 +14548,7 @@ var schema$1 = object().shape({
14548
14548
  content: string().required()
14549
14549
  });
14550
14550
  var ClassNoteDialog = function ClassNoteDialog(_ref) {
14551
- var _ref$id = _ref.id,
14552
- id = _ref$id === void 0 ? "class-note-dialog" : _ref$id,
14553
- open = _ref.open,
14551
+ var open = _ref.open,
14554
14552
  studentName = _ref.studentName,
14555
14553
  selectedNote = _ref.selectedNote,
14556
14554
  tip = _ref.tip,
@@ -14562,26 +14560,14 @@ var ClassNoteDialog = function ClassNoteDialog(_ref) {
14562
14560
  var handleSaveNote = function handleSaveNote(content) {
14563
14561
  onSaveNote(content);
14564
14562
  };
14565
- useEffect(function () {
14566
- if (open) {
14567
- var _document$getElementB;
14568
- (_document$getElementB = document.getElementById(id)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.setAttribute("inert", "true");
14569
- } else {
14570
- var _document$getElementB2;
14571
- (_document$getElementB2 = document.getElementById(id)) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.removeAttribute("inert");
14572
- }
14573
- return function () {
14574
- var _document$getElementB3;
14575
- (_document$getElementB3 = document.getElementById(id)) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.removeAttribute("inert");
14576
- };
14577
- }, [open, id]);
14578
14563
  return React__default.createElement(Dialog, {
14579
14564
  onClose: onClose,
14580
14565
  open: open,
14581
14566
  maxWidth: "md",
14582
14567
  scroll: "body",
14583
14568
  fullWidth: true,
14584
- id: id
14569
+ disableEnforceFocus: true,
14570
+ disableAutoFocus: true
14585
14571
  }, React__default.createElement(DialogTitle$1, {
14586
14572
  id: "customized-dialog-title"
14587
14573
  }, React__default.createElement(Typography$1, {
@@ -15222,8 +15208,28 @@ var NotesContainer = function NotesContainer(_ref) {
15222
15208
  });
15223
15209
  };
15224
15210
 
15211
+ var NoteContent = function NoteContent(_ref) {
15212
+ var content = _ref.content;
15213
+ useEffect(function () {
15214
+ if (window.MathJax) {
15215
+ var _window$MathJax;
15216
+ (_window$MathJax = window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.typeset();
15217
+ }
15218
+ }, [content]);
15219
+ return React__default.createElement(Box, {
15220
+ sx: {
15221
+ fontSize: "14px",
15222
+ fontWeight: "300",
15223
+ color: "#414E62"
15224
+ },
15225
+ dangerouslySetInnerHTML: {
15226
+ __html: content
15227
+ }
15228
+ });
15229
+ };
15230
+
15225
15231
  var NoteDrawer = function NoteDrawer(props) {
15226
- var _BRIEF_GRADE_OPTIONS$;
15232
+ var _BRIEF_GRADE_OPTIONS$, _data$content;
15227
15233
  var anchor = props.anchor,
15228
15234
  open = props.open,
15229
15235
  student = props.student,
@@ -15242,12 +15248,6 @@ var NoteDrawer = function NoteDrawer(props) {
15242
15248
  var _state$common2;
15243
15249
  return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
15244
15250
  });
15245
- useEffect(function () {
15246
- if (window.MathJax) {
15247
- var _window$MathJax;
15248
- (_window$MathJax = window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.typeset();
15249
- }
15250
- }, [data === null || data === void 0 ? void 0 : data.content]);
15251
15251
  return React__default.createElement(Drawer, {
15252
15252
  anchor: anchor,
15253
15253
  open: open,
@@ -15363,15 +15363,8 @@ var NoteDrawer = function NoteDrawer(props) {
15363
15363
  color: "#97A1AF",
15364
15364
  textAlign: "end"
15365
15365
  }
15366
- }, academy === null || academy === void 0 ? void 0 : academy.name))), React__default.createElement(Box, {
15367
- sx: {
15368
- fontSize: "14px",
15369
- fontWeight: "300",
15370
- color: "#414E62"
15371
- },
15372
- dangerouslySetInnerHTML: {
15373
- __html: (data === null || data === void 0 ? void 0 : data.content) || ""
15374
- }
15366
+ }, academy === null || academy === void 0 ? void 0 : academy.name))), React__default.createElement(NoteContent, {
15367
+ content: (_data$content = data === null || data === void 0 ? void 0 : data.content) != null ? _data$content : ""
15375
15368
  })));
15376
15369
  };
15377
15370