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.
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ content: string;
4
+ }
5
+ declare const NoteContent: FC<Props>;
6
+ export default NoteContent;
package/dist/index.js CHANGED
@@ -14505,7 +14505,7 @@ var NoteTinyEditor = function NoteTinyEditor(_ref) {
14505
14505
  external_plugins: {
14506
14506
  tiny_mce_wiris: '/editor/wiris-for-tinymce.js'
14507
14507
  },
14508
- plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'textcolor', 'wordcount'],
14508
+ plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'wordcount'],
14509
14509
  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',
14510
14510
  branding: false,
14511
14511
  extended_valid_elements: '*[.*]',
@@ -14547,7 +14547,9 @@ var ClassNoteDialog = function ClassNoteDialog(_ref) {
14547
14547
  open: open,
14548
14548
  maxWidth: "md",
14549
14549
  scroll: "body",
14550
- fullWidth: true
14550
+ fullWidth: true,
14551
+ disableEnforceFocus: true,
14552
+ disableAutoFocus: true
14551
14553
  }, React__default.createElement(DialogTitle, {
14552
14554
  id: "customized-dialog-title"
14553
14555
  }, React__default.createElement(Typography, {
@@ -15089,6 +15091,12 @@ var NoteItem = function NoteItem(_ref) {
15089
15091
  React.useEffect(function () {
15090
15092
  onLoad === null || onLoad === void 0 ? void 0 : onLoad();
15091
15093
  }, []);
15094
+ React.useEffect(function () {
15095
+ if (window.MathJax) {
15096
+ var _window$MathJax;
15097
+ (_window$MathJax = window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.typeset();
15098
+ }
15099
+ }, [data.content]);
15092
15100
  return React__default.createElement(material.Box, Object.assign({}, NoteItemStyles.root, {
15093
15101
  onClick: handleItemClick,
15094
15102
  sx: {
@@ -15182,8 +15190,28 @@ var NotesContainer = function NotesContainer(_ref) {
15182
15190
  });
15183
15191
  };
15184
15192
 
15193
+ var NoteContent = function NoteContent(_ref) {
15194
+ var content = _ref.content;
15195
+ React.useEffect(function () {
15196
+ if (window.MathJax) {
15197
+ var _window$MathJax;
15198
+ (_window$MathJax = window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.typeset();
15199
+ }
15200
+ }, [content]);
15201
+ return React__default.createElement(material.Box, {
15202
+ sx: {
15203
+ fontSize: "14px",
15204
+ fontWeight: "300",
15205
+ color: "#414E62"
15206
+ },
15207
+ dangerouslySetInnerHTML: {
15208
+ __html: content
15209
+ }
15210
+ });
15211
+ };
15212
+
15185
15213
  var NoteDrawer = function NoteDrawer(props) {
15186
- var _BRIEF_GRADE_OPTIONS$;
15214
+ var _BRIEF_GRADE_OPTIONS$, _data$content;
15187
15215
  var anchor = props.anchor,
15188
15216
  open = props.open,
15189
15217
  student = props.student,
@@ -15317,15 +15345,8 @@ var NoteDrawer = function NoteDrawer(props) {
15317
15345
  color: "#97A1AF",
15318
15346
  textAlign: "end"
15319
15347
  }
15320
- }, academy === null || academy === void 0 ? void 0 : academy.name))), React__default.createElement(material.Box, {
15321
- sx: {
15322
- fontSize: "14px",
15323
- fontWeight: "300",
15324
- color: "#414E62"
15325
- },
15326
- dangerouslySetInnerHTML: {
15327
- __html: (data === null || data === void 0 ? void 0 : data.content) || ""
15328
- }
15348
+ }, academy === null || academy === void 0 ? void 0 : academy.name))), React__default.createElement(NoteContent, {
15349
+ content: (_data$content = data === null || data === void 0 ? void 0 : data.content) != null ? _data$content : ""
15329
15350
  })));
15330
15351
  };
15331
15352