catchup-library-web 1.20.11 → 1.20.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.20.11",
3
+ "version": "1.20.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -25,6 +25,7 @@ const ActivityEvaluationRubricContent = ({
25
25
  if (!evaluationRubricMapKey) return null;
26
26
  const evaluationRubricMapString = data[evaluationRubricMapKey];
27
27
  let evaluationRubricMap;
28
+ if (!evaluationRubricMapString) return;
28
29
  try {
29
30
  evaluationRubricMap = JSON.parse(evaluationRubricMapString);
30
31
  } catch (error) {
@@ -12,6 +12,7 @@ import DroppableItem from "../../dnds/DroppableItem";
12
12
  import ShowMaterialMediaByContentType from "./ShowMaterialMediaByContentType";
13
13
  import DividerLine from "../../dividers/DividerLine";
14
14
  import { IFillInTheBlanksActivityMaterialProps } from "../../../properties/ActivityProperties";
15
+ import InputWithSpecialExpression from "../../texts/InputWithSpecialExpression";
15
16
 
16
17
  const FillInTheBlanksActivityMaterialContent = ({
17
18
  uniqueValue,
@@ -117,7 +118,14 @@ const FillInTheBlanksActivityMaterialContent = ({
117
118
  setPasteOptionIndex(null);
118
119
  }}
119
120
  >
120
- <p className="italic whitespace-pre-wrap">{option}</p>
121
+ <p className="italic whitespace-pre-wrap">
122
+ {
123
+ <InputWithSpecialExpression
124
+ value={option}
125
+ showSpecialOnly={true}
126
+ />
127
+ }
128
+ </p>
121
129
  </div>
122
130
  ) : (
123
131
  <div
@@ -32,7 +32,7 @@ const OrderingActivityMaterialContent = ({
32
32
 
33
33
  useEffect(() => {
34
34
  if (!screenSize) return;
35
- if (screenSize.width <= 768) {
35
+ if (screenSize.width <= 1024) {
36
36
  setView("TABLET");
37
37
  } else {
38
38
  setView("PC");
@@ -7,8 +7,6 @@ import { IOptionProps } from "../../properties/CommonProperties";
7
7
  import { MathfieldElement } from "mathlive";
8
8
  import BaseModal from "../modals/BaseModal";
9
9
  import FullCard from "../cards/FullCard";
10
- import SecondaryButton from "../buttons/SecondaryButton";
11
- import PrimaryButton from "../buttons/PrimaryButton";
12
10
 
13
11
  declare global {
14
12
  namespace JSX {