@speakableio/core 0.1.51 → 0.1.53
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.native.mjs +14 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.js +14 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
CHANGED
|
@@ -1821,7 +1821,7 @@ async function handleAssessment(assignment, userId, cardIds, weights, fieldsUpda
|
|
|
1821
1821
|
}
|
|
1822
1822
|
async function handleCourseAssignment(assignment, userId) {
|
|
1823
1823
|
var _a, _b, _c;
|
|
1824
|
-
await ((_c = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "
|
|
1824
|
+
await ((_c = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "submitAssignmentV2")) == null ? void 0 : _c({
|
|
1825
1825
|
assignmentId: assignment.id,
|
|
1826
1826
|
userId
|
|
1827
1827
|
}));
|
|
@@ -2226,6 +2226,19 @@ function useActivity({
|
|
|
2226
2226
|
};
|
|
2227
2227
|
const handleUpdateCardScore = (cardId, cardScore) => {
|
|
2228
2228
|
mutationUpdateCardScore.mutate({ cardId, cardScore });
|
|
2229
|
+
if (cardScore.proficiency_level) {
|
|
2230
|
+
logGradingStandardEntry({
|
|
2231
|
+
type: cardScore.proficiency_level.standardId,
|
|
2232
|
+
cardId,
|
|
2233
|
+
gradingStandard: cardScore.proficiency_level
|
|
2234
|
+
});
|
|
2235
|
+
} else if (cardScore.wida || cardScore.actfl) {
|
|
2236
|
+
logGradingStandardEntry({
|
|
2237
|
+
type: cardScore.wida ? "wida" : "actfl",
|
|
2238
|
+
cardId,
|
|
2239
|
+
gradingStandard: cardScore.wida || cardScore.actfl || { level: "", justification: "" }
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2229
2242
|
};
|
|
2230
2243
|
const onClearScore = ({
|
|
2231
2244
|
cardId,
|