@speakableio/core 1.0.41 → 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 -17
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +2 -17
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +0 -2
- package/dist/index.web.js +2 -17
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.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.native.d.ts
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.native.js
CHANGED
|
@@ -1328,9 +1328,7 @@ async function clearScoreV2(params) {
|
|
|
1328
1328
|
// src/domains/assignment/services/submit-assignment-score.service.ts
|
|
1329
1329
|
var import_dayjs4 = __toESM(require("dayjs"));
|
|
1330
1330
|
async function _submitAssignmentScore({
|
|
1331
|
-
cardIds,
|
|
1332
1331
|
assignment,
|
|
1333
|
-
weights,
|
|
1334
1332
|
userId,
|
|
1335
1333
|
status,
|
|
1336
1334
|
studentName
|
|
@@ -1344,14 +1342,7 @@ async function _submitAssignmentScore({
|
|
|
1344
1342
|
status
|
|
1345
1343
|
};
|
|
1346
1344
|
if (assignment.isAssessment) {
|
|
1347
|
-
const result = await handleAssessment(
|
|
1348
|
-
assignment,
|
|
1349
|
-
userId,
|
|
1350
|
-
cardIds,
|
|
1351
|
-
weights,
|
|
1352
|
-
fieldsUpdated,
|
|
1353
|
-
studentName
|
|
1354
|
-
);
|
|
1345
|
+
const result = await handleAssessment(assignment, userId, fieldsUpdated, studentName);
|
|
1355
1346
|
return result;
|
|
1356
1347
|
} else if (assignment.courseId) {
|
|
1357
1348
|
await handleCourseAssignment(assignment, userId);
|
|
@@ -1363,7 +1354,7 @@ var submitAssignmentScore = withErrorHandler(
|
|
|
1363
1354
|
_submitAssignmentScore,
|
|
1364
1355
|
"submitAssignmentScore"
|
|
1365
1356
|
);
|
|
1366
|
-
async function handleAssessment(assignment, userId,
|
|
1357
|
+
async function handleAssessment(assignment, userId, fieldsUpdated, studentName) {
|
|
1367
1358
|
var _a, _b, _c;
|
|
1368
1359
|
const path = refsAssignmentFiresotre.assignmentScores({ id: assignment.id, userId });
|
|
1369
1360
|
const response = await api.getDoc(path);
|
|
@@ -1629,8 +1620,6 @@ function useSubmitAssignmentScore({
|
|
|
1629
1620
|
mutationFn: async ({
|
|
1630
1621
|
assignment,
|
|
1631
1622
|
userId,
|
|
1632
|
-
cardIds,
|
|
1633
|
-
weights,
|
|
1634
1623
|
scores,
|
|
1635
1624
|
status
|
|
1636
1625
|
}) => {
|
|
@@ -1638,8 +1627,6 @@ function useSubmitAssignmentScore({
|
|
|
1638
1627
|
const scoreUpdated = await submitAssignmentScore({
|
|
1639
1628
|
assignment,
|
|
1640
1629
|
userId,
|
|
1641
|
-
cardIds,
|
|
1642
|
-
weights,
|
|
1643
1630
|
status,
|
|
1644
1631
|
studentName
|
|
1645
1632
|
});
|
|
@@ -2986,9 +2973,7 @@ function useActivity({
|
|
|
2986
2973
|
maxPoints: (_n = (_m = assignmentQuery.data) == null ? void 0 : _m.maxPoints) != null ? _n : 0
|
|
2987
2974
|
},
|
|
2988
2975
|
userId,
|
|
2989
|
-
cardIds: scorableCardIds,
|
|
2990
2976
|
scores: scoreQuery.data,
|
|
2991
|
-
weights: weightsToUse != null ? weightsToUse : {},
|
|
2992
2977
|
status: someCardIsManualGraded ? "PENDING_REVIEW" : "SUBMITTED"
|
|
2993
2978
|
});
|
|
2994
2979
|
if ((_o = assignmentQuery.data) == null ? void 0 : _o.ltiDeeplink) {
|