catchup-library-web 2.2.19 → 2.2.21
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.js
CHANGED
|
@@ -1293,7 +1293,7 @@ var BasePDF_default = BasePDF;
|
|
|
1293
1293
|
// src/components/activities/empty-contents/ActivityEmptyContent.tsx
|
|
1294
1294
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1295
1295
|
var ActivityEmptyContent = () => {
|
|
1296
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2
|
|
1296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-lg", children: i18n_default.t("you_have_set_this_activity_as_empty") }) });
|
|
1297
1297
|
};
|
|
1298
1298
|
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
1299
1299
|
|
|
@@ -7371,7 +7371,10 @@ var ActivityPreviewByData = ({
|
|
|
7371
7371
|
showCorrectAnswer,
|
|
7372
7372
|
isFullScreen
|
|
7373
7373
|
};
|
|
7374
|
-
|
|
7374
|
+
let isEmpty = false;
|
|
7375
|
+
if (answerMapMap[selectedType] && answerMapMap[selectedType].isEmpty) {
|
|
7376
|
+
isEmpty = answerMapMap[selectedType].isEmpty;
|
|
7377
|
+
}
|
|
7375
7378
|
switch (selectedType) {
|
|
7376
7379
|
case "ORDERING":
|
|
7377
7380
|
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
package/dist/index.mjs
CHANGED
|
@@ -1070,7 +1070,7 @@ var BasePDF_default = BasePDF;
|
|
|
1070
1070
|
// src/components/activities/empty-contents/ActivityEmptyContent.tsx
|
|
1071
1071
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1072
1072
|
var ActivityEmptyContent = () => {
|
|
1073
|
-
return /* @__PURE__ */ jsx17("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2
|
|
1073
|
+
return /* @__PURE__ */ jsx17("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white", children: /* @__PURE__ */ jsx17("p", { className: "text-lg", children: i18n_default.t("you_have_set_this_activity_as_empty") }) });
|
|
1074
1074
|
};
|
|
1075
1075
|
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
1076
1076
|
|
|
@@ -7148,7 +7148,10 @@ var ActivityPreviewByData = ({
|
|
|
7148
7148
|
showCorrectAnswer,
|
|
7149
7149
|
isFullScreen
|
|
7150
7150
|
};
|
|
7151
|
-
|
|
7151
|
+
let isEmpty = false;
|
|
7152
|
+
if (answerMapMap[selectedType] && answerMapMap[selectedType].isEmpty) {
|
|
7153
|
+
isEmpty = answerMapMap[selectedType].isEmpty;
|
|
7154
|
+
}
|
|
7152
7155
|
switch (selectedType) {
|
|
7153
7156
|
case "ORDERING":
|
|
7154
7157
|
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
package/package.json
CHANGED
|
@@ -132,7 +132,10 @@ const ActivityPreviewByData = ({
|
|
|
132
132
|
isFullScreen,
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
let isEmpty = false;
|
|
136
|
+
if (answerMapMap[selectedType] && answerMapMap[selectedType].isEmpty) {
|
|
137
|
+
isEmpty = answerMapMap[selectedType].isEmpty;
|
|
138
|
+
}
|
|
136
139
|
|
|
137
140
|
switch (selectedType) {
|
|
138
141
|
case "ORDERING":
|
|
@@ -2,12 +2,8 @@ import i18n from "../../../language/i18n";
|
|
|
2
2
|
|
|
3
3
|
const ActivityEmptyContent = () => {
|
|
4
4
|
return (
|
|
5
|
-
<div className="flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2
|
|
6
|
-
<
|
|
7
|
-
<p className="text-catchup-white text-xl">
|
|
8
|
-
{i18n.t("you_have_set_this_activity_as_empty")}
|
|
9
|
-
</p>
|
|
10
|
-
</div>
|
|
5
|
+
<div className="flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 mb-2 bg-catchup-orange text-catchup-white">
|
|
6
|
+
<p className="text-lg">{i18n.t("you_have_set_this_activity_as_empty")}</p>
|
|
11
7
|
</div>
|
|
12
8
|
);
|
|
13
9
|
};
|