@speakableio/core 1.0.42 → 1.0.44
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 +7 -2
- package/dist/index.native.d.ts +7 -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 +7 -2
- package/dist/index.web.js +2 -7
- 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>;
|
|
@@ -1166,6 +1164,13 @@ interface Set {
|
|
|
1166
1164
|
feedbackLanguage?: string;
|
|
1167
1165
|
respondMaxCharacters?: number;
|
|
1168
1166
|
respondMaxTime?: number;
|
|
1167
|
+
respondLimitAttempts?: boolean;
|
|
1168
|
+
respondMaxAttempts?: number;
|
|
1169
|
+
mcLimitAttempts?: boolean;
|
|
1170
|
+
mcMaxAttempts?: number;
|
|
1171
|
+
shortAnswerLimitAttempts?: boolean;
|
|
1172
|
+
shortAnswerMaxAttempts?: number;
|
|
1173
|
+
isTemplate?: boolean;
|
|
1169
1174
|
}
|
|
1170
1175
|
|
|
1171
1176
|
declare const setsQueryKeys: {
|
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>;
|
|
@@ -1166,6 +1164,13 @@ interface Set {
|
|
|
1166
1164
|
feedbackLanguage?: string;
|
|
1167
1165
|
respondMaxCharacters?: number;
|
|
1168
1166
|
respondMaxTime?: number;
|
|
1167
|
+
respondLimitAttempts?: boolean;
|
|
1168
|
+
respondMaxAttempts?: number;
|
|
1169
|
+
mcLimitAttempts?: boolean;
|
|
1170
|
+
mcMaxAttempts?: number;
|
|
1171
|
+
shortAnswerLimitAttempts?: boolean;
|
|
1172
|
+
shortAnswerMaxAttempts?: number;
|
|
1173
|
+
isTemplate?: boolean;
|
|
1169
1174
|
}
|
|
1170
1175
|
|
|
1171
1176
|
declare const setsQueryKeys: {
|
package/dist/index.native.js
CHANGED
|
@@ -1329,7 +1329,6 @@ async function clearScoreV2(params) {
|
|
|
1329
1329
|
var import_dayjs4 = __toESM(require("dayjs"));
|
|
1330
1330
|
async function _submitAssignmentScore({
|
|
1331
1331
|
assignment,
|
|
1332
|
-
weights,
|
|
1333
1332
|
userId,
|
|
1334
1333
|
status,
|
|
1335
1334
|
studentName
|
|
@@ -1343,7 +1342,7 @@ async function _submitAssignmentScore({
|
|
|
1343
1342
|
status
|
|
1344
1343
|
};
|
|
1345
1344
|
if (assignment.isAssessment) {
|
|
1346
|
-
const result = await handleAssessment(assignment, userId,
|
|
1345
|
+
const result = await handleAssessment(assignment, userId, fieldsUpdated, studentName);
|
|
1347
1346
|
return result;
|
|
1348
1347
|
} else if (assignment.courseId) {
|
|
1349
1348
|
await handleCourseAssignment(assignment, userId);
|
|
@@ -1355,7 +1354,7 @@ var submitAssignmentScore = withErrorHandler(
|
|
|
1355
1354
|
_submitAssignmentScore,
|
|
1356
1355
|
"submitAssignmentScore"
|
|
1357
1356
|
);
|
|
1358
|
-
async function handleAssessment(assignment, userId,
|
|
1357
|
+
async function handleAssessment(assignment, userId, fieldsUpdated, studentName) {
|
|
1359
1358
|
var _a, _b, _c;
|
|
1360
1359
|
const path = refsAssignmentFiresotre.assignmentScores({ id: assignment.id, userId });
|
|
1361
1360
|
const response = await api.getDoc(path);
|
|
@@ -1621,7 +1620,6 @@ function useSubmitAssignmentScore({
|
|
|
1621
1620
|
mutationFn: async ({
|
|
1622
1621
|
assignment,
|
|
1623
1622
|
userId,
|
|
1624
|
-
weights,
|
|
1625
1623
|
scores,
|
|
1626
1624
|
status
|
|
1627
1625
|
}) => {
|
|
@@ -1629,7 +1627,6 @@ function useSubmitAssignmentScore({
|
|
|
1629
1627
|
const scoreUpdated = await submitAssignmentScore({
|
|
1630
1628
|
assignment,
|
|
1631
1629
|
userId,
|
|
1632
|
-
weights,
|
|
1633
1630
|
status,
|
|
1634
1631
|
studentName
|
|
1635
1632
|
});
|
|
@@ -2976,9 +2973,7 @@ function useActivity({
|
|
|
2976
2973
|
maxPoints: (_n = (_m = assignmentQuery.data) == null ? void 0 : _m.maxPoints) != null ? _n : 0
|
|
2977
2974
|
},
|
|
2978
2975
|
userId,
|
|
2979
|
-
cardIds: scorableCardIds,
|
|
2980
2976
|
scores: scoreQuery.data,
|
|
2981
|
-
weights: weightsToUse != null ? weightsToUse : {},
|
|
2982
2977
|
status: someCardIsManualGraded ? "PENDING_REVIEW" : "SUBMITTED"
|
|
2983
2978
|
});
|
|
2984
2979
|
if ((_o = assignmentQuery.data) == null ? void 0 : _o.ltiDeeplink) {
|