@speakableio/core 1.0.42 → 1.0.43
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.d.mts +0 -2
- package/dist/index.native.d.ts +0 -2
- package/dist/index.native.js +2 -7
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +2 -7
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +0 -2
- package/dist/index.web.js +2 -7
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.web.d.mts
CHANGED
|
@@ -1095,8 +1095,6 @@ declare function useSubmitAssignmentScore({ onAssignmentSubmitted, studentName,
|
|
|
1095
1095
|
maxPoints: number;
|
|
1096
1096
|
};
|
|
1097
1097
|
userId: string;
|
|
1098
|
-
cardIds: string[];
|
|
1099
|
-
weights: Record<string, number>;
|
|
1100
1098
|
scores: Score;
|
|
1101
1099
|
status: Score["status"];
|
|
1102
1100
|
}, unknown>;
|
package/dist/index.web.js
CHANGED
|
@@ -1217,7 +1217,6 @@ async function clearScoreV2(params) {
|
|
|
1217
1217
|
import dayjs4 from "dayjs";
|
|
1218
1218
|
async function _submitAssignmentScore({
|
|
1219
1219
|
assignment,
|
|
1220
|
-
weights,
|
|
1221
1220
|
userId,
|
|
1222
1221
|
status,
|
|
1223
1222
|
studentName
|
|
@@ -1231,7 +1230,7 @@ async function _submitAssignmentScore({
|
|
|
1231
1230
|
status
|
|
1232
1231
|
};
|
|
1233
1232
|
if (assignment.isAssessment) {
|
|
1234
|
-
const result = await handleAssessment(assignment, userId,
|
|
1233
|
+
const result = await handleAssessment(assignment, userId, fieldsUpdated, studentName);
|
|
1235
1234
|
return result;
|
|
1236
1235
|
} else if (assignment.courseId) {
|
|
1237
1236
|
await handleCourseAssignment(assignment, userId);
|
|
@@ -1243,7 +1242,7 @@ var submitAssignmentScore = withErrorHandler(
|
|
|
1243
1242
|
_submitAssignmentScore,
|
|
1244
1243
|
"submitAssignmentScore"
|
|
1245
1244
|
);
|
|
1246
|
-
async function handleAssessment(assignment, userId,
|
|
1245
|
+
async function handleAssessment(assignment, userId, fieldsUpdated, studentName) {
|
|
1247
1246
|
var _a, _b, _c;
|
|
1248
1247
|
const path = refsAssignmentFiresotre.assignmentScores({ id: assignment.id, userId });
|
|
1249
1248
|
const response = await api.getDoc(path);
|
|
@@ -1509,7 +1508,6 @@ function useSubmitAssignmentScore({
|
|
|
1509
1508
|
mutationFn: async ({
|
|
1510
1509
|
assignment,
|
|
1511
1510
|
userId,
|
|
1512
|
-
weights,
|
|
1513
1511
|
scores,
|
|
1514
1512
|
status
|
|
1515
1513
|
}) => {
|
|
@@ -1517,7 +1515,6 @@ function useSubmitAssignmentScore({
|
|
|
1517
1515
|
const scoreUpdated = await submitAssignmentScore({
|
|
1518
1516
|
assignment,
|
|
1519
1517
|
userId,
|
|
1520
|
-
weights,
|
|
1521
1518
|
status,
|
|
1522
1519
|
studentName
|
|
1523
1520
|
});
|
|
@@ -2864,9 +2861,7 @@ function useActivity({
|
|
|
2864
2861
|
maxPoints: (_n = (_m = assignmentQuery.data) == null ? void 0 : _m.maxPoints) != null ? _n : 0
|
|
2865
2862
|
},
|
|
2866
2863
|
userId,
|
|
2867
|
-
cardIds: scorableCardIds,
|
|
2868
2864
|
scores: scoreQuery.data,
|
|
2869
|
-
weights: weightsToUse != null ? weightsToUse : {},
|
|
2870
2865
|
status: someCardIsManualGraded ? "PENDING_REVIEW" : "SUBMITTED"
|
|
2871
2866
|
});
|
|
2872
2867
|
if ((_o = assignmentQuery.data) == null ? void 0 : _o.ltiDeeplink) {
|