@speakableio/core 0.1.93 → 0.1.95
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 +10 -1
- package/dist/index.native.d.ts +10 -1
- package/dist/index.native.js +17 -9
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +17 -9
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +10 -1
- package/dist/index.web.js +17 -9
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.d.mts
CHANGED
|
@@ -554,6 +554,7 @@ interface PageScore {
|
|
|
554
554
|
maxPoints: number;
|
|
555
555
|
description: string;
|
|
556
556
|
}[];
|
|
557
|
+
target_proficiency_level?: string;
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
declare enum AssignmentAnalyticsType {
|
|
@@ -796,7 +797,15 @@ declare function useSubmitAssignmentScore({ onAssignmentSubmitted, studentName,
|
|
|
796
797
|
error: unknown;
|
|
797
798
|
message?: undefined;
|
|
798
799
|
}, Error, {
|
|
799
|
-
assignment:
|
|
800
|
+
assignment: {
|
|
801
|
+
id: string;
|
|
802
|
+
name: string;
|
|
803
|
+
owners: string[];
|
|
804
|
+
courseId: string;
|
|
805
|
+
courseWorkId: string;
|
|
806
|
+
isAssessment: boolean;
|
|
807
|
+
maxPoints: number;
|
|
808
|
+
};
|
|
800
809
|
userId: string;
|
|
801
810
|
cardIds: string[];
|
|
802
811
|
weights: Record<string, number>;
|
package/dist/index.native.d.ts
CHANGED
|
@@ -554,6 +554,7 @@ interface PageScore {
|
|
|
554
554
|
maxPoints: number;
|
|
555
555
|
description: string;
|
|
556
556
|
}[];
|
|
557
|
+
target_proficiency_level?: string;
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
declare enum AssignmentAnalyticsType {
|
|
@@ -796,7 +797,15 @@ declare function useSubmitAssignmentScore({ onAssignmentSubmitted, studentName,
|
|
|
796
797
|
error: unknown;
|
|
797
798
|
message?: undefined;
|
|
798
799
|
}, Error, {
|
|
799
|
-
assignment:
|
|
800
|
+
assignment: {
|
|
801
|
+
id: string;
|
|
802
|
+
name: string;
|
|
803
|
+
owners: string[];
|
|
804
|
+
courseId: string;
|
|
805
|
+
courseWorkId: string;
|
|
806
|
+
isAssessment: boolean;
|
|
807
|
+
maxPoints: number;
|
|
808
|
+
};
|
|
800
809
|
userId: string;
|
|
801
810
|
cardIds: string[];
|
|
802
811
|
weights: Record<string, number>;
|
package/dist/index.native.js
CHANGED
|
@@ -2531,7 +2531,7 @@ function useActivity({
|
|
|
2531
2531
|
});
|
|
2532
2532
|
};
|
|
2533
2533
|
const onSubmitScore = async () => {
|
|
2534
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
2534
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
2535
2535
|
try {
|
|
2536
2536
|
let results;
|
|
2537
2537
|
if (isAssignment) {
|
|
@@ -2540,25 +2540,33 @@ function useActivity({
|
|
|
2540
2540
|
(cardScore) => cardScore.status === "pending_review"
|
|
2541
2541
|
);
|
|
2542
2542
|
results = await submitAssignmentScore2({
|
|
2543
|
-
assignment:
|
|
2543
|
+
assignment: {
|
|
2544
|
+
id: (_c = (_b2 = assignmentQuery.data) == null ? void 0 : _b2.id) != null ? _c : "",
|
|
2545
|
+
name: (_e = (_d = assignmentQuery.data) == null ? void 0 : _d.name) != null ? _e : "",
|
|
2546
|
+
owners: (_g = (_f = assignmentQuery.data) == null ? void 0 : _f.owners) != null ? _g : [],
|
|
2547
|
+
courseId: (_i = (_h = assignmentQuery.data) == null ? void 0 : _h.courseId) != null ? _i : "",
|
|
2548
|
+
courseWorkId: (_k = (_j = assignmentQuery.data) == null ? void 0 : _j.courseWorkId) != null ? _k : "",
|
|
2549
|
+
isAssessment: (_m = (_l = assignmentQuery.data) == null ? void 0 : _l.isAssessment) != null ? _m : false,
|
|
2550
|
+
maxPoints: (_o = (_n = assignmentQuery.data) == null ? void 0 : _n.maxPoints) != null ? _o : 0
|
|
2551
|
+
},
|
|
2544
2552
|
userId,
|
|
2545
2553
|
cardIds: contentCardsToUse != null ? contentCardsToUse : [],
|
|
2546
2554
|
scores: scoreQuery.data,
|
|
2547
2555
|
weights: weightsToUse != null ? weightsToUse : {},
|
|
2548
2556
|
status: hasPendingReview ? "PENDING_REVIEW" : "FINALIZED"
|
|
2549
2557
|
});
|
|
2550
|
-
if ((
|
|
2558
|
+
if ((_p = assignmentQuery.data) == null ? void 0 : _p.ltiDeeplink) {
|
|
2551
2559
|
submitLTIScore({
|
|
2552
|
-
maxPoints: (
|
|
2553
|
-
score: (
|
|
2554
|
-
SERVICE_KEY: (
|
|
2555
|
-
lineItemId: (
|
|
2556
|
-
lti_id: (
|
|
2560
|
+
maxPoints: (_q = assignmentQuery.data) == null ? void 0 : _q.maxPoints,
|
|
2561
|
+
score: (_s = (_r = scoreQuery.data) == null ? void 0 : _r.score) != null ? _s : 0,
|
|
2562
|
+
SERVICE_KEY: (_t = ltiData == null ? void 0 : ltiData.serviceKey) != null ? _t : "",
|
|
2563
|
+
lineItemId: (_u = ltiData == null ? void 0 : ltiData.lineItemId) != null ? _u : "",
|
|
2564
|
+
lti_id: (_v = ltiData == null ? void 0 : ltiData.lti_id) != null ? _v : ""
|
|
2557
2565
|
});
|
|
2558
2566
|
}
|
|
2559
2567
|
} else {
|
|
2560
2568
|
results = await submitPracticeScore2({
|
|
2561
|
-
setId: (
|
|
2569
|
+
setId: (_x = (_w = querySet.data) == null ? void 0 : _w.id) != null ? _x : "",
|
|
2562
2570
|
userId,
|
|
2563
2571
|
scores: scoreQuery.data
|
|
2564
2572
|
});
|