eat-js-sdk 0.0.55 → 0.0.57

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.
@@ -2808,51 +2808,6 @@
2808
2808
  }
2809
2809
  };
2810
2810
  }
2811
- function create_default_slot(ctx) {
2812
- let if_block_anchor;
2813
- let current;
2814
- let if_block = (
2815
- /*options*/
2816
- ctx[8] && create_if_block_14(ctx)
2817
- );
2818
- return {
2819
- c() {
2820
- if (if_block)
2821
- if_block.c();
2822
- if_block_anchor = empty();
2823
- },
2824
- m(target, anchor) {
2825
- if (if_block)
2826
- if_block.m(target, anchor);
2827
- insert(target, if_block_anchor, anchor);
2828
- current = true;
2829
- },
2830
- p(ctx2, dirty) {
2831
- if (
2832
- /*options*/
2833
- ctx2[8]
2834
- )
2835
- if_block.p(ctx2, dirty);
2836
- },
2837
- i(local) {
2838
- if (current)
2839
- return;
2840
- transition_in(if_block);
2841
- current = true;
2842
- },
2843
- o(local) {
2844
- transition_out(if_block);
2845
- current = false;
2846
- },
2847
- d(detaching) {
2848
- if (detaching) {
2849
- detach(if_block_anchor);
2850
- }
2851
- if (if_block)
2852
- if_block.d(detaching);
2853
- }
2854
- };
2855
- }
2856
2811
  function create_if_block4(ctx) {
2857
2812
  let promptresult;
2858
2813
  let current;
@@ -2903,10 +2858,92 @@
2903
2858
  }
2904
2859
  };
2905
2860
  }
2861
+ function create_default_slot(ctx) {
2862
+ let t2;
2863
+ let if_block1_anchor;
2864
+ let current;
2865
+ let if_block0 = (
2866
+ /*options*/
2867
+ ctx[8] && create_if_block_14(ctx)
2868
+ );
2869
+ let if_block1 = (
2870
+ /*isFinished*/
2871
+ ctx[1] && create_if_block4(ctx)
2872
+ );
2873
+ return {
2874
+ c() {
2875
+ if (if_block0)
2876
+ if_block0.c();
2877
+ t2 = space();
2878
+ if (if_block1)
2879
+ if_block1.c();
2880
+ if_block1_anchor = empty();
2881
+ },
2882
+ m(target, anchor) {
2883
+ if (if_block0)
2884
+ if_block0.m(target, anchor);
2885
+ insert(target, t2, anchor);
2886
+ if (if_block1)
2887
+ if_block1.m(target, anchor);
2888
+ insert(target, if_block1_anchor, anchor);
2889
+ current = true;
2890
+ },
2891
+ p(ctx2, dirty) {
2892
+ if (
2893
+ /*options*/
2894
+ ctx2[8]
2895
+ )
2896
+ if_block0.p(ctx2, dirty);
2897
+ if (
2898
+ /*isFinished*/
2899
+ ctx2[1]
2900
+ ) {
2901
+ if (if_block1) {
2902
+ if_block1.p(ctx2, dirty);
2903
+ if (dirty & /*isFinished*/
2904
+ 2) {
2905
+ transition_in(if_block1, 1);
2906
+ }
2907
+ } else {
2908
+ if_block1 = create_if_block4(ctx2);
2909
+ if_block1.c();
2910
+ transition_in(if_block1, 1);
2911
+ if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
2912
+ }
2913
+ } else if (if_block1) {
2914
+ group_outros();
2915
+ transition_out(if_block1, 1, 1, () => {
2916
+ if_block1 = null;
2917
+ });
2918
+ check_outros();
2919
+ }
2920
+ },
2921
+ i(local) {
2922
+ if (current)
2923
+ return;
2924
+ transition_in(if_block0);
2925
+ transition_in(if_block1);
2926
+ current = true;
2927
+ },
2928
+ o(local) {
2929
+ transition_out(if_block0);
2930
+ transition_out(if_block1);
2931
+ current = false;
2932
+ },
2933
+ d(detaching) {
2934
+ if (detaching) {
2935
+ detach(t2);
2936
+ detach(if_block1_anchor);
2937
+ }
2938
+ if (if_block0)
2939
+ if_block0.d(detaching);
2940
+ if (if_block1)
2941
+ if_block1.d(detaching);
2942
+ }
2943
+ };
2944
+ }
2906
2945
  function create_fragment6(ctx) {
2907
2946
  let promptbody;
2908
- let t2;
2909
- let if_block_anchor;
2910
2947
  let current;
2911
2948
  promptbody = new PromptBody_default({
2912
2949
  props: {
@@ -2927,77 +2964,34 @@
2927
2964
  $$scope: { ctx }
2928
2965
  }
2929
2966
  });
2930
- let if_block = (
2931
- /*isFinished*/
2932
- ctx[1] && create_if_block4(ctx)
2933
- );
2934
2967
  return {
2935
2968
  c() {
2936
2969
  create_component(promptbody.$$.fragment);
2937
- t2 = space();
2938
- if (if_block)
2939
- if_block.c();
2940
- if_block_anchor = empty();
2941
2970
  },
2942
2971
  m(target, anchor) {
2943
2972
  mount_component(promptbody, target, anchor);
2944
- insert(target, t2, anchor);
2945
- if (if_block)
2946
- if_block.m(target, anchor);
2947
- insert(target, if_block_anchor, anchor);
2948
2973
  current = true;
2949
2974
  },
2950
2975
  p(ctx2, [dirty]) {
2951
2976
  const promptbody_changes = {};
2952
- if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect, isDataSaving*/
2953
- 2097167) {
2977
+ if (dirty & /*$$scope, isResultCorrect, resultFeedback, isFinished, selectedOption, isDataSaving*/
2978
+ 2097183) {
2954
2979
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
2955
2980
  }
2956
2981
  promptbody.$set(promptbody_changes);
2957
- if (
2958
- /*isFinished*/
2959
- ctx2[1]
2960
- ) {
2961
- if (if_block) {
2962
- if_block.p(ctx2, dirty);
2963
- if (dirty & /*isFinished*/
2964
- 2) {
2965
- transition_in(if_block, 1);
2966
- }
2967
- } else {
2968
- if_block = create_if_block4(ctx2);
2969
- if_block.c();
2970
- transition_in(if_block, 1);
2971
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
2972
- }
2973
- } else if (if_block) {
2974
- group_outros();
2975
- transition_out(if_block, 1, 1, () => {
2976
- if_block = null;
2977
- });
2978
- check_outros();
2979
- }
2980
2982
  },
2981
2983
  i(local) {
2982
2984
  if (current)
2983
2985
  return;
2984
2986
  transition_in(promptbody.$$.fragment, local);
2985
- transition_in(if_block);
2986
2987
  current = true;
2987
2988
  },
2988
2989
  o(local) {
2989
2990
  transition_out(promptbody.$$.fragment, local);
2990
- transition_out(if_block);
2991
2991
  current = false;
2992
2992
  },
2993
2993
  d(detaching) {
2994
- if (detaching) {
2995
- detach(t2);
2996
- detach(if_block_anchor);
2997
- }
2998
2994
  destroy_component(promptbody, detaching);
2999
- if (if_block)
3000
- if_block.d(detaching);
3001
2995
  }
3002
2996
  };
3003
2997
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "description": "Authoring tool frontend SDK",
5
5
  "contributors": [
6
6
  {