@speakableio/core 1.0.14 → 1.0.16

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.web.js CHANGED
@@ -2443,6 +2443,10 @@ function useActivity({
2443
2443
  enabled: querySet.isSuccess,
2444
2444
  asObject: true
2445
2445
  });
2446
+ const scorableCardIds = (contentCardsToUse != null ? contentCardsToUse : []).filter((cardId) => {
2447
+ const card = cardsObject == null ? void 0 : cardsObject[cardId];
2448
+ return (card == null ? void 0 : card.type) !== "MEDIA_PAGE" /* MEDIA_PAGE */;
2449
+ });
2446
2450
  const scoreQuery = useScore({
2447
2451
  isAssignment,
2448
2452
  activityId: id,
@@ -2456,7 +2460,7 @@ function useActivity({
2456
2460
  activityId,
2457
2461
  isAssignment,
2458
2462
  userId,
2459
- cardIds: contentCardsToUse != null ? contentCardsToUse : [],
2463
+ cardIds: scorableCardIds,
2460
2464
  weights: weightsToUse != null ? weightsToUse : {}
2461
2465
  });
2462
2466
  const { mutationClearScore } = useClearScore();
@@ -2526,7 +2530,7 @@ function useActivity({
2526
2530
  maxPoints: (_n = (_m = assignmentQuery.data) == null ? void 0 : _m.maxPoints) != null ? _n : 0
2527
2531
  },
2528
2532
  userId,
2529
- cardIds: contentCardsToUse != null ? contentCardsToUse : [],
2533
+ cardIds: scorableCardIds,
2530
2534
  scores: scoreQuery.data,
2531
2535
  weights: weightsToUse != null ? weightsToUse : {},
2532
2536
  status: someCardIsManualGraded ? "PENDING_REVIEW" : "SUBMITTED"
@@ -3244,8 +3248,8 @@ var useBaseOpenAI = ({
3244
3248
  feedbackData = geminiResult == null ? void 0 : geminiResult.data;
3245
3249
  }
3246
3250
  const results = {
3251
+ ...proficiencyData,
3247
3252
  ...feedbackData,
3248
- // ...proficiencyData,
3249
3253
  aiSuccess: true,
3250
3254
  promptSuccess: (feedbackData == null ? void 0 : feedbackData.success) || false,
3251
3255
  transcript