touchstudy-core 0.1.164 → 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: '*[.*]',
@@ -14565,7 +14565,9 @@ var ClassNoteDialog = function ClassNoteDialog(_ref) {
14565
14565
  open: open,
14566
14566
  maxWidth: "md",
14567
14567
  scroll: "body",
14568
- fullWidth: true
14568
+ fullWidth: true,
14569
+ disableEnforceFocus: true,
14570
+ disableAutoFocus: true
14569
14571
  }, React__default.createElement(DialogTitle$1, {
14570
14572
  id: "customized-dialog-title"
14571
14573
  }, React__default.createElement(Typography$1, {
@@ -15107,6 +15109,12 @@ var NoteItem = function NoteItem(_ref) {
15107
15109
  useEffect(function () {
15108
15110
  onLoad === null || onLoad === void 0 ? void 0 : onLoad();
15109
15111
  }, []);
15112
+ useEffect(function () {
15113
+ if (window.MathJax) {
15114
+ var _window$MathJax;
15115
+ (_window$MathJax = window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.typeset();
15116
+ }
15117
+ }, [data.content]);
15110
15118
  return React__default.createElement(Box, Object.assign({}, NoteItemStyles.root, {
15111
15119
  onClick: handleItemClick,
15112
15120
  sx: {
@@ -15200,8 +15208,28 @@ var NotesContainer = function NotesContainer(_ref) {
15200
15208
  });
15201
15209
  };
15202
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
+
15203
15231
  var NoteDrawer = function NoteDrawer(props) {
15204
- var _BRIEF_GRADE_OPTIONS$;
15232
+ var _BRIEF_GRADE_OPTIONS$, _data$content;
15205
15233
  var anchor = props.anchor,
15206
15234
  open = props.open,
15207
15235
  student = props.student,
@@ -15335,15 +15363,8 @@ var NoteDrawer = function NoteDrawer(props) {
15335
15363
  color: "#97A1AF",
15336
15364
  textAlign: "end"
15337
15365
  }
15338
- }, academy === null || academy === void 0 ? void 0 : academy.name))), React__default.createElement(Box, {
15339
- sx: {
15340
- fontSize: "14px",
15341
- fontWeight: "300",
15342
- color: "#414E62"
15343
- },
15344
- dangerouslySetInnerHTML: {
15345
- __html: (data === null || data === void 0 ? void 0 : data.content) || ""
15346
- }
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 : ""
15347
15368
  })));
15348
15369
  };
15349
15370