catchup-library-web 1.1.6 → 1.1.8
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
|
@@ -284,6 +284,7 @@ var BaseImage = (props) => {
|
|
|
284
284
|
dataToolTipVariant,
|
|
285
285
|
dataToolTipHTML
|
|
286
286
|
} = props;
|
|
287
|
+
const [key, setKey] = (0, import_react.useState)((/* @__PURE__ */ new Date()).getTime());
|
|
287
288
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
288
289
|
const handleOnClick = (e) => {
|
|
289
290
|
e.preventDefault();
|
|
@@ -345,7 +346,8 @@ var BaseImage = (props) => {
|
|
|
345
346
|
"data-tooltip-html": dataToolTipHTML
|
|
346
347
|
}
|
|
347
348
|
)
|
|
348
|
-
}
|
|
349
|
+
},
|
|
350
|
+
key
|
|
349
351
|
);
|
|
350
352
|
};
|
|
351
353
|
var BaseImage_default = BaseImage;
|
|
@@ -6001,7 +6003,7 @@ var ActivityPreviewByData = ({
|
|
|
6001
6003
|
if (!data) return;
|
|
6002
6004
|
const answer = constructAnswerBasedOnData(data);
|
|
6003
6005
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
|
|
6004
|
-
showType ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
6006
|
+
showType ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "mb-4", children: [
|
|
6005
6007
|
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
6006
6008
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6007
6009
|
SelectionBox_default,
|
package/dist/index.mjs
CHANGED
|
@@ -110,6 +110,7 @@ var BaseImage = (props) => {
|
|
|
110
110
|
dataToolTipVariant,
|
|
111
111
|
dataToolTipHTML
|
|
112
112
|
} = props;
|
|
113
|
+
const [key, setKey] = useState((/* @__PURE__ */ new Date()).getTime());
|
|
113
114
|
const [loading, setLoading] = useState(false);
|
|
114
115
|
const handleOnClick = (e) => {
|
|
115
116
|
e.preventDefault();
|
|
@@ -171,7 +172,8 @@ var BaseImage = (props) => {
|
|
|
171
172
|
"data-tooltip-html": dataToolTipHTML
|
|
172
173
|
}
|
|
173
174
|
)
|
|
174
|
-
}
|
|
175
|
+
},
|
|
176
|
+
key
|
|
175
177
|
);
|
|
176
178
|
};
|
|
177
179
|
var BaseImage_default = BaseImage;
|
|
@@ -5745,7 +5747,7 @@ var SelectionBox = ({
|
|
|
5745
5747
|
var SelectionBox_default = SelectionBox;
|
|
5746
5748
|
|
|
5747
5749
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
5748
|
-
import {
|
|
5750
|
+
import { jsx as jsx41, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5749
5751
|
var ActivityPreviewByData = ({
|
|
5750
5752
|
data,
|
|
5751
5753
|
showType,
|
|
@@ -5827,7 +5829,7 @@ var ActivityPreviewByData = ({
|
|
|
5827
5829
|
if (!data) return;
|
|
5828
5830
|
const answer = constructAnswerBasedOnData(data);
|
|
5829
5831
|
return /* @__PURE__ */ jsxs32("div", { children: [
|
|
5830
|
-
showType ? /* @__PURE__ */ jsxs32(
|
|
5832
|
+
showType ? /* @__PURE__ */ jsxs32("div", { className: "mb-4", children: [
|
|
5831
5833
|
showDescription ? /* @__PURE__ */ jsx41("div", { className: "my-2", children: /* @__PURE__ */ jsx41("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
5832
5834
|
/* @__PURE__ */ jsx41(
|
|
5833
5835
|
SelectionBox_default,
|
package/package.json
CHANGED
|
@@ -105,7 +105,7 @@ const ActivityPreviewByData = ({
|
|
|
105
105
|
return (
|
|
106
106
|
<div key={key}>
|
|
107
107
|
{showType ? (
|
|
108
|
-
|
|
108
|
+
<div className="mb-4">
|
|
109
109
|
{showDescription ? (
|
|
110
110
|
<div className="my-2">
|
|
111
111
|
<p className="font-semibold text-lg">
|
|
@@ -121,7 +121,7 @@ const ActivityPreviewByData = ({
|
|
|
121
121
|
setSelectedType(itemId);
|
|
122
122
|
}}
|
|
123
123
|
/>
|
|
124
|
-
|
|
124
|
+
</div>
|
|
125
125
|
) : null}
|
|
126
126
|
{selectedType ? (
|
|
127
127
|
<div key={selectedType} className="">
|
|
@@ -20,6 +20,7 @@ const BaseImage = (props: IBaseImageProps) => {
|
|
|
20
20
|
dataToolTipVariant,
|
|
21
21
|
dataToolTipHTML,
|
|
22
22
|
} = props;
|
|
23
|
+
const [key, setKey] = useState(new Date().getTime());
|
|
23
24
|
const [loading, setLoading] = useState(false);
|
|
24
25
|
|
|
25
26
|
const handleOnClick = (e: any) => {
|
|
@@ -69,6 +70,7 @@ const BaseImage = (props: IBaseImageProps) => {
|
|
|
69
70
|
<BaseLoading size="small" primaryColor="#57C2D3" secondaryColor="#57C2D3" />
|
|
70
71
|
) : (
|
|
71
72
|
<div
|
|
73
|
+
key={key}
|
|
72
74
|
className={`${currentWidthClassName ? currentWidthClassName : ""} ${
|
|
73
75
|
currentHeightClassName ? currentHeightClassName : ""
|
|
74
76
|
} ${currentClassName ? currentClassName : ""} cursor-pointer`}
|