eat-js-sdk 1.0.53 → 1.1.0

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.
@@ -3777,7 +3777,8 @@
3777
3777
  let current;
3778
3778
  let if_block = (
3779
3779
  /*displayedResultFeedback*/
3780
- ctx[4] && create_if_block5(ctx)
3780
+ ctx[4] && !/*isSkipped*/
3781
+ ctx[3] && create_if_block5(ctx)
3781
3782
  );
3782
3783
  return {
3783
3784
  c() {
@@ -3794,12 +3795,13 @@
3794
3795
  p(ctx2, [dirty]) {
3795
3796
  if (
3796
3797
  /*displayedResultFeedback*/
3797
- ctx2[4]
3798
+ ctx2[4] && !/*isSkipped*/
3799
+ ctx2[3]
3798
3800
  ) {
3799
3801
  if (if_block) {
3800
3802
  if_block.p(ctx2, dirty);
3801
- if (dirty & /*displayedResultFeedback*/
3802
- 16) {
3803
+ if (dirty & /*displayedResultFeedback, isSkipped*/
3804
+ 24) {
3803
3805
  transition_in(if_block, 1);
3804
3806
  }
3805
3807
  } else {
@@ -19230,7 +19232,7 @@
19230
19232
  const { correct_answer: correctAnswer, typein_type: typeinType } = data.interaction;
19231
19233
  scoringMetadata = {
19232
19234
  hasAnswer: true,
19233
- answer: typeinType === TYPEIN_TYPE_SHORT ? correctAnswer[0][0] : typeinType === TYPEIN_TYPE_INLINE ? correctAnswer : correctAnswer[0][0].answer[0]
19235
+ answer: typeinType === TYPEIN_TYPE_SHORT ? correctAnswer[0][0] : typeinType === TYPEIN_TYPE_INLINE ? correctAnswer : correctAnswer[0].sample_answer[0]
19234
19236
  };
19235
19237
  $$invalidate(0, sessionData = { ...sessionData, scoringMetadata });
19236
19238
  if (isPreviewModeInteractive) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "1.0.53",
4
- "change version": "1.0.12",
3
+ "version": "1.1.0",
4
+ "change version": "1.1.0",
5
5
  "description": "Authoring tool frontend SDK",
6
6
  "contributors": [
7
7
  {