@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.
@@ -2549,6 +2549,10 @@ function useActivity({
2549
2549
  enabled: querySet.isSuccess,
2550
2550
  asObject: true
2551
2551
  });
2552
+ const scorableCardIds = (contentCardsToUse != null ? contentCardsToUse : []).filter((cardId) => {
2553
+ const card = cardsObject == null ? void 0 : cardsObject[cardId];
2554
+ return (card == null ? void 0 : card.type) !== "MEDIA_PAGE" /* MEDIA_PAGE */;
2555
+ });
2552
2556
  const scoreQuery = useScore({
2553
2557
  isAssignment,
2554
2558
  activityId: id,
@@ -2562,7 +2566,7 @@ function useActivity({
2562
2566
  activityId,
2563
2567
  isAssignment,
2564
2568
  userId,
2565
- cardIds: contentCardsToUse != null ? contentCardsToUse : [],
2569
+ cardIds: scorableCardIds,
2566
2570
  weights: weightsToUse != null ? weightsToUse : {}
2567
2571
  });
2568
2572
  const { mutationClearScore } = useClearScore();
@@ -2632,7 +2636,7 @@ function useActivity({
2632
2636
  maxPoints: (_n = (_m = assignmentQuery.data) == null ? void 0 : _m.maxPoints) != null ? _n : 0
2633
2637
  },
2634
2638
  userId,
2635
- cardIds: contentCardsToUse != null ? contentCardsToUse : [],
2639
+ cardIds: scorableCardIds,
2636
2640
  scores: scoreQuery.data,
2637
2641
  weights: weightsToUse != null ? weightsToUse : {},
2638
2642
  status: someCardIsManualGraded ? "PENDING_REVIEW" : "SUBMITTED"
@@ -3350,8 +3354,8 @@ var useBaseOpenAI = ({
3350
3354
  feedbackData = geminiResult == null ? void 0 : geminiResult.data;
3351
3355
  }
3352
3356
  const results = {
3357
+ ...proficiencyData,
3353
3358
  ...feedbackData,
3354
- // ...proficiencyData,
3355
3359
  aiSuccess: true,
3356
3360
  promptSuccess: (feedbackData == null ? void 0 : feedbackData.success) || false,
3357
3361
  transcript