eat-js-sdk 0.0.54 → 0.0.55

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.
@@ -3449,38 +3449,6 @@
3449
3449
  }
3450
3450
  };
3451
3451
  }
3452
- function create_default_slot2(ctx) {
3453
- let if_block_anchor;
3454
- function select_block_type(ctx2, dirty) {
3455
- if (
3456
- /*typeinType*/
3457
- ctx2[11] === TYPEIN_TYPE_SHORT
3458
- )
3459
- return create_if_block_24;
3460
- return create_else_block_1;
3461
- }
3462
- let current_block_type = select_block_type(ctx, [-1, -1]);
3463
- let if_block = current_block_type(ctx);
3464
- return {
3465
- c() {
3466
- if_block.c();
3467
- if_block_anchor = empty();
3468
- },
3469
- m(target, anchor) {
3470
- if_block.m(target, anchor);
3471
- insert(target, if_block_anchor, anchor);
3472
- },
3473
- p(ctx2, dirty) {
3474
- if_block.p(ctx2, dirty);
3475
- },
3476
- d(detaching) {
3477
- if (detaching) {
3478
- detach(if_block_anchor);
3479
- }
3480
- if_block.d(detaching);
3481
- }
3482
- };
3483
- }
3484
3452
  function create_if_block5(ctx) {
3485
3453
  let div;
3486
3454
  let span0;
@@ -3666,10 +3634,89 @@
3666
3634
  }
3667
3635
  };
3668
3636
  }
3637
+ function create_default_slot2(ctx) {
3638
+ let t2;
3639
+ let if_block1_anchor;
3640
+ let current;
3641
+ function select_block_type(ctx2, dirty) {
3642
+ if (
3643
+ /*typeinType*/
3644
+ ctx2[11] === TYPEIN_TYPE_SHORT
3645
+ )
3646
+ return create_if_block_24;
3647
+ return create_else_block_1;
3648
+ }
3649
+ let current_block_type = select_block_type(ctx, [-1, -1]);
3650
+ let if_block0 = current_block_type(ctx);
3651
+ let if_block1 = (
3652
+ /*isFinished*/
3653
+ ctx[1] && create_if_block5(ctx)
3654
+ );
3655
+ return {
3656
+ c() {
3657
+ if_block0.c();
3658
+ t2 = space();
3659
+ if (if_block1)
3660
+ if_block1.c();
3661
+ if_block1_anchor = empty();
3662
+ },
3663
+ m(target, anchor) {
3664
+ if_block0.m(target, anchor);
3665
+ insert(target, t2, anchor);
3666
+ if (if_block1)
3667
+ if_block1.m(target, anchor);
3668
+ insert(target, if_block1_anchor, anchor);
3669
+ current = true;
3670
+ },
3671
+ p(ctx2, dirty) {
3672
+ if_block0.p(ctx2, dirty);
3673
+ if (
3674
+ /*isFinished*/
3675
+ ctx2[1]
3676
+ ) {
3677
+ if (if_block1) {
3678
+ if_block1.p(ctx2, dirty);
3679
+ if (dirty[0] & /*isFinished*/
3680
+ 2) {
3681
+ transition_in(if_block1, 1);
3682
+ }
3683
+ } else {
3684
+ if_block1 = create_if_block5(ctx2);
3685
+ if_block1.c();
3686
+ transition_in(if_block1, 1);
3687
+ if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
3688
+ }
3689
+ } else if (if_block1) {
3690
+ group_outros();
3691
+ transition_out(if_block1, 1, 1, () => {
3692
+ if_block1 = null;
3693
+ });
3694
+ check_outros();
3695
+ }
3696
+ },
3697
+ i(local) {
3698
+ if (current)
3699
+ return;
3700
+ transition_in(if_block1);
3701
+ current = true;
3702
+ },
3703
+ o(local) {
3704
+ transition_out(if_block1);
3705
+ current = false;
3706
+ },
3707
+ d(detaching) {
3708
+ if (detaching) {
3709
+ detach(t2);
3710
+ detach(if_block1_anchor);
3711
+ }
3712
+ if_block0.d(detaching);
3713
+ if (if_block1)
3714
+ if_block1.d(detaching);
3715
+ }
3716
+ };
3717
+ }
3669
3718
  function create_fragment7(ctx) {
3670
3719
  let promptbody;
3671
- let t2;
3672
- let if_block_anchor;
3673
3720
  let current;
3674
3721
  promptbody = new PromptBody_default({
3675
3722
  props: {
@@ -3690,78 +3737,35 @@
3690
3737
  $$scope: { ctx }
3691
3738
  }
3692
3739
  });
3693
- let if_block = (
3694
- /*isFinished*/
3695
- ctx[1] && create_if_block5(ctx)
3696
- );
3697
3740
  return {
3698
3741
  c() {
3699
3742
  create_component(promptbody.$$.fragment);
3700
- t2 = space();
3701
- if (if_block)
3702
- if_block.c();
3703
- if_block_anchor = empty();
3704
3743
  },
3705
3744
  m(target, anchor) {
3706
3745
  mount_component(promptbody, target, anchor);
3707
- insert(target, t2, anchor);
3708
- if (if_block)
3709
- if_block.m(target, anchor);
3710
- insert(target, if_block_anchor, anchor);
3711
3746
  current = true;
3712
3747
  },
3713
3748
  p(ctx2, dirty) {
3714
3749
  const promptbody_changes = {};
3715
- if (dirty[0] & /*textAriaLabel, placeholder, isFinished, isResultCorrect, isDataSaving, typeinAnswer*/
3716
- 175 | dirty[1] & /*$$scope*/
3750
+ if (dirty[0] & /*isResultCorrect, resultFeedback, resultLabel, isFinished, textAriaLabel, placeholder, isDataSaving, typeinAnswer*/
3751
+ 255 | dirty[1] & /*$$scope*/
3717
3752
  64) {
3718
3753
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
3719
3754
  }
3720
3755
  promptbody.$set(promptbody_changes);
3721
- if (
3722
- /*isFinished*/
3723
- ctx2[1]
3724
- ) {
3725
- if (if_block) {
3726
- if_block.p(ctx2, dirty);
3727
- if (dirty[0] & /*isFinished*/
3728
- 2) {
3729
- transition_in(if_block, 1);
3730
- }
3731
- } else {
3732
- if_block = create_if_block5(ctx2);
3733
- if_block.c();
3734
- transition_in(if_block, 1);
3735
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
3736
- }
3737
- } else if (if_block) {
3738
- group_outros();
3739
- transition_out(if_block, 1, 1, () => {
3740
- if_block = null;
3741
- });
3742
- check_outros();
3743
- }
3744
3756
  },
3745
3757
  i(local) {
3746
3758
  if (current)
3747
3759
  return;
3748
3760
  transition_in(promptbody.$$.fragment, local);
3749
- transition_in(if_block);
3750
3761
  current = true;
3751
3762
  },
3752
3763
  o(local) {
3753
3764
  transition_out(promptbody.$$.fragment, local);
3754
- transition_out(if_block);
3755
3765
  current = false;
3756
3766
  },
3757
3767
  d(detaching) {
3758
- if (detaching) {
3759
- detach(t2);
3760
- detach(if_block_anchor);
3761
- }
3762
3768
  destroy_component(promptbody, detaching);
3763
- if (if_block)
3764
- if_block.d(detaching);
3765
3769
  }
3766
3770
  };
3767
3771
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "Authoring tool frontend SDK",
5
5
  "contributors": [
6
6
  {