touchstudy-core 0.1.164 → 0.1.165
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.
package/dist/index.modern.js
CHANGED
@@ -14548,7 +14548,9 @@ var schema$1 = object().shape({
|
|
14548
14548
|
content: string().required()
|
14549
14549
|
});
|
14550
14550
|
var ClassNoteDialog = function ClassNoteDialog(_ref) {
|
14551
|
-
var
|
14551
|
+
var _ref$id = _ref.id,
|
14552
|
+
id = _ref$id === void 0 ? "class-note-dialog" : _ref$id,
|
14553
|
+
open = _ref.open,
|
14552
14554
|
studentName = _ref.studentName,
|
14553
14555
|
selectedNote = _ref.selectedNote,
|
14554
14556
|
tip = _ref.tip,
|
@@ -14560,12 +14562,26 @@ var ClassNoteDialog = function ClassNoteDialog(_ref) {
|
|
14560
14562
|
var handleSaveNote = function handleSaveNote(content) {
|
14561
14563
|
onSaveNote(content);
|
14562
14564
|
};
|
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]);
|
14563
14578
|
return React__default.createElement(Dialog, {
|
14564
14579
|
onClose: onClose,
|
14565
14580
|
open: open,
|
14566
14581
|
maxWidth: "md",
|
14567
14582
|
scroll: "body",
|
14568
|
-
fullWidth: true
|
14583
|
+
fullWidth: true,
|
14584
|
+
id: id
|
14569
14585
|
}, React__default.createElement(DialogTitle$1, {
|
14570
14586
|
id: "customized-dialog-title"
|
14571
14587
|
}, React__default.createElement(Typography$1, {
|
@@ -15107,6 +15123,12 @@ var NoteItem = function NoteItem(_ref) {
|
|
15107
15123
|
useEffect(function () {
|
15108
15124
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad();
|
15109
15125
|
}, []);
|
15126
|
+
useEffect(function () {
|
15127
|
+
if (window.MathJax) {
|
15128
|
+
var _window$MathJax;
|
15129
|
+
(_window$MathJax = window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.typeset();
|
15130
|
+
}
|
15131
|
+
}, [data.content]);
|
15110
15132
|
return React__default.createElement(Box, Object.assign({}, NoteItemStyles.root, {
|
15111
15133
|
onClick: handleItemClick,
|
15112
15134
|
sx: {
|
@@ -15220,6 +15242,12 @@ var NoteDrawer = function NoteDrawer(props) {
|
|
15220
15242
|
var _state$common2;
|
15221
15243
|
return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
|
15222
15244
|
});
|
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]);
|
15223
15251
|
return React__default.createElement(Drawer, {
|
15224
15252
|
anchor: anchor,
|
15225
15253
|
open: open,
|