eat-js-sdk 1.0.6 → 1.0.7

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.
@@ -6089,9 +6089,9 @@
6089
6089
  }
6090
6090
  if (allAnswered || isInteractiveTriggeredResult) {
6091
6091
  $$invalidate(1, isResultCorrect = false);
6092
- const { is_single_mark: isSingleMark } = interaction;
6092
+ const { is_single_mark: isSingleMark, allow_non_macrons_as_correct_answer: allowNonMacrons, ignore_punctuation: ignorePunctuation } = interaction;
6093
6093
  const { answer: previewCorrectAnswer } = scoringMetadata;
6094
- $$invalidate(15, inlineAnswerResult = checkInlineAnswer(previewCorrectAnswer, inlineTypeinAnswer));
6094
+ $$invalidate(15, inlineAnswerResult = checkInlineAnswer(previewCorrectAnswer, inlineTypeinAnswer, allowNonMacrons, ignorePunctuation));
6095
6095
  $$invalidate(1, isResultCorrect = isSingleMark ? !inlineAnswerResult.includes(false) : inlineAnswerResult.includes(true));
6096
6096
  $$invalidate(0, isFinished = true);
6097
6097
  $$invalidate(16, correctAnswerData = previewCorrectAnswer);
@@ -6132,7 +6132,7 @@
6132
6132
  if (isIgnorePunctuation) {
6133
6133
  inlineAnswer = useRemovePunctuation(inlineAnswer);
6134
6134
  }
6135
- return transformedAnswerList[index].includes(inlineAnswer.toLowerCase());
6135
+ return transformedAnswerList[index].includes(inlineAnswer.toLowerCase().trim());
6136
6136
  });
6137
6137
  };
6138
6138
  if (isFinished) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "change version": "1.0.1",
5
5
  "description": "Authoring tool frontend SDK",
6
6
  "contributors": [