catchup-library-web 1.0.6 → 1.0.7

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
@@ -5126,7 +5126,7 @@ var OrderingActivityMaterialContent = ({
5126
5126
  Object.keys(answerMap2).forEach((answerKey, index) => {
5127
5127
  answerMap2[answerKey] = index;
5128
5128
  });
5129
- }, [showCorrectAnswer]);
5129
+ }, [answer, showCorrectAnswer]);
5130
5130
  const retrieveAnswerMap = () => {
5131
5131
  const foundIndex = answer.data.findIndex(
5132
5132
  (answerData) => answerData.type === "ORDERING"
@@ -5179,7 +5179,7 @@ var OrderingActivityMaterialContent = ({
5179
5179
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mr-3", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5180
5180
  "div",
5181
5181
  {
5182
- className: `${learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : selectedKey === materialKey ? "border-catchup-blue" : "border-catchup-lighter-gray"} min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
5182
+ className: `min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center cursor-pointer transition-all duration-300`,
5183
5183
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5184
5184
  "div",
5185
5185
  {
package/dist/index.mjs CHANGED
@@ -4957,7 +4957,7 @@ var OrderingActivityMaterialContent = ({
4957
4957
  Object.keys(answerMap2).forEach((answerKey, index) => {
4958
4958
  answerMap2[answerKey] = index;
4959
4959
  });
4960
- }, [showCorrectAnswer]);
4960
+ }, [answer, showCorrectAnswer]);
4961
4961
  const retrieveAnswerMap = () => {
4962
4962
  const foundIndex = answer.data.findIndex(
4963
4963
  (answerData) => answerData.type === "ORDERING"
@@ -5010,7 +5010,7 @@ var OrderingActivityMaterialContent = ({
5010
5010
  /* @__PURE__ */ jsx34("div", { className: "mr-3", children: /* @__PURE__ */ jsx34(
5011
5011
  "div",
5012
5012
  {
5013
- className: `${learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : selectedKey === materialKey ? "border-catchup-blue" : "border-catchup-lighter-gray"} min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
5013
+ className: `min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center cursor-pointer transition-all duration-300`,
5014
5014
  children: /* @__PURE__ */ jsx34(
5015
5015
  "div",
5016
5016
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -47,7 +47,7 @@ const OrderingActivityMaterialContent = ({
47
47
  Object.keys(answerMap).forEach((answerKey, index) => {
48
48
  answerMap[answerKey] = index;
49
49
  });
50
- }, [showCorrectAnswer]);
50
+ }, [answer, showCorrectAnswer]);
51
51
 
52
52
  const retrieveAnswerMap = () => {
53
53
  const foundIndex = answer.data.findIndex(
@@ -113,15 +113,7 @@ const OrderingActivityMaterialContent = ({
113
113
  >
114
114
  <div className="mr-3">
115
115
  <div
116
- className={`${
117
- learnerAnswerState === "CORRECT"
118
- ? "border-catchup-green"
119
- : learnerAnswerState === "INCORRECT"
120
- ? "border-catchup-red"
121
- : selectedKey === materialKey
122
- ? "border-catchup-blue"
123
- : "border-catchup-lighter-gray"
124
- } min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`}
116
+ className={`min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center cursor-pointer transition-all duration-300`}
125
117
  >
126
118
  <div
127
119
  className={`${