eat-js-sdk 1.0.36 → 1.0.37

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.
@@ -3626,11 +3626,9 @@
3626
3626
  attr(div0, "class", div0_class_value = /*isDataSaving*/
3627
3627
  ctx[0] ? "absolute inset-0 bg-transparent z-50" : "");
3628
3628
  attr(div1, "class", div1_class_value = /*optionHasMedia*/
3629
- ctx[13] && !/*isPreviewMode*/
3630
- ctx[2] ? "flex flex-col justify-start items-center md:justify-center md:items-start md:flex-none md:grid md:grid-cols-2 md:gap-x-4" : "");
3629
+ ctx[13] ? "flex flex-col justify-start items-center md:justify-center md:items-start md:flex-none md:grid md:grid-cols-2 md:gap-x-4" : "");
3631
3630
  attr(div2, "class", div2_class_value = /*optionHasMedia*/
3632
- ctx[13] && !/*isPreviewMode*/
3633
- ctx[2] ? "w-full" : "relative");
3631
+ ctx[13] ? "w-full" : "relative");
3634
3632
  },
3635
3633
  m(target, anchor) {
3636
3634
  insert(target, div2, anchor);
@@ -3675,18 +3673,6 @@
3675
3673
  }
3676
3674
  check_outros();
3677
3675
  }
3678
- if (!current || dirty[0] & /*isPreviewMode*/
3679
- 4 && div1_class_value !== (div1_class_value = /*optionHasMedia*/
3680
- ctx2[13] && !/*isPreviewMode*/
3681
- ctx2[2] ? "flex flex-col justify-start items-center md:justify-center md:items-start md:flex-none md:grid md:grid-cols-2 md:gap-x-4" : "")) {
3682
- attr(div1, "class", div1_class_value);
3683
- }
3684
- if (!current || dirty[0] & /*isPreviewMode*/
3685
- 4 && div2_class_value !== (div2_class_value = /*optionHasMedia*/
3686
- ctx2[13] && !/*isPreviewMode*/
3687
- ctx2[2] ? "w-full" : "relative")) {
3688
- attr(div2, "class", div2_class_value);
3689
- }
3690
3676
  },
3691
3677
  i(local) {
3692
3678
  if (current)
@@ -4287,8 +4273,7 @@
4287
4273
  let if_block5 = show_if && create_if_block_24(ctx);
4288
4274
  let if_block6 = (
4289
4275
  /*optionHasMedia*/
4290
- ctx[13] && !/*isPreviewMode*/
4291
- ctx[2] && create_if_block_14(ctx)
4276
+ ctx[13] && create_if_block_14(ctx)
4292
4277
  );
4293
4278
  function func() {
4294
4279
  return (
@@ -4343,15 +4328,13 @@
4343
4328
  if_block6.c();
4344
4329
  t9 = space();
4345
4330
  attr(span0, "class", span0_class_value = "choice " + /*optionHasMedia*/
4346
- (ctx[13] && !/*isPreviewMode*/
4347
- ctx[2] ? "my-1.5" : ""));
4331
+ (ctx[13] ? "my-1.5" : ""));
4348
4332
  attr(span1, "class", "flex flex-col px-3 text-left");
4349
4333
  attr(span2, "class", "flex items-center");
4350
4334
  attr(span3, "class", "flex items-center");
4351
4335
  attr(span4, "class", "flex items-center justify-between w-full");
4352
4336
  attr(span5, "class", span5_class_value = "btn-mcq-text " + /*optionHasMedia*/
4353
- (ctx[13] && !/*isPreviewMode*/
4354
- ctx[2] ? "min-h-[44px]" : ""));
4337
+ (ctx[13] ? "min-h-[44px]" : ""));
4355
4338
  attr(button, "role", button_role_value = /*correctAnswersLength*/
4356
4339
  ctx[5] > 1 ? "checkbox" : null);
4357
4340
  attr(button, "tabindex", button_tabindex_value = /*correctAnswersLength*/
@@ -4383,8 +4366,7 @@
4383
4366
  ctx[30].answer
4384
4367
  )} ${func()}`);
4385
4368
  attr(button, "class", button_class_value = "group btn-mcq-option " + /*optionHasMedia*/
4386
- (ctx[13] && !/*isPreviewMode*/
4387
- ctx[2] ? "min-w-[288px] max-w-[304px] min-h-[210px] md:min-w-full block" : "") + " " + (!/*isFinished*/
4369
+ (ctx[13] ? "min-w-[288px] max-w-[304px] min-h-[210px] md:min-w-full block" : "") + " " + (!/*isFinished*/
4388
4370
  ctx[1] || /*isPreviewModeInteractive*/
4389
4371
  ctx[3] ? "active:raw-focus-ring-by" : "finished") + " " + /*selectedOptions*/
4390
4372
  (ctx[4].includes(
@@ -4495,12 +4477,6 @@
4495
4477
  if_block0.d(1);
4496
4478
  if_block0 = null;
4497
4479
  }
4498
- if (!current || dirty[0] & /*isPreviewMode*/
4499
- 4 && span0_class_value !== (span0_class_value = "choice " + /*optionHasMedia*/
4500
- (ctx[13] && !/*isPreviewMode*/
4501
- ctx[2] ? "my-1.5" : ""))) {
4502
- attr(span0, "class", span0_class_value);
4503
- }
4504
4480
  if (dirty[0] & /*isFinished, selectedOptions, correctAnswersLength, isPreviewMode, isPreviewModeInteractive*/
4505
4481
  62)
4506
4482
  show_if_4 = /*isFinished*/
@@ -4659,28 +4635,11 @@
4659
4635
  });
4660
4636
  check_outros();
4661
4637
  }
4662
- if (!current || dirty[0] & /*isPreviewMode*/
4663
- 4 && span5_class_value !== (span5_class_value = "btn-mcq-text " + /*optionHasMedia*/
4664
- (ctx[13] && !/*isPreviewMode*/
4665
- ctx[2] ? "min-h-[44px]" : ""))) {
4666
- attr(span5, "class", span5_class_value);
4667
- }
4668
4638
  if (
4669
4639
  /*optionHasMedia*/
4670
- ctx[13] && !/*isPreviewMode*/
4671
- ctx[2]
4672
- ) {
4673
- if (if_block6) {
4674
- if_block6.p(ctx, dirty);
4675
- } else {
4676
- if_block6 = create_if_block_14(ctx);
4677
- if_block6.c();
4678
- if_block6.m(button, t9);
4679
- }
4680
- } else if (if_block6) {
4681
- if_block6.d(1);
4682
- if_block6 = null;
4683
- }
4640
+ ctx[13]
4641
+ )
4642
+ if_block6.p(ctx, dirty);
4684
4643
  if (!current || dirty[0] & /*correctAnswersLength*/
4685
4644
  32 && button_role_value !== (button_role_value = /*correctAnswersLength*/
4686
4645
  ctx[5] > 1 ? "checkbox" : null)) {
@@ -4724,10 +4683,9 @@
4724
4683
  )} ${func()}`)) {
4725
4684
  attr(button, "aria-label", button_aria_label_value);
4726
4685
  }
4727
- if (!current || dirty[0] & /*isPreviewMode, isFinished, isPreviewModeInteractive, selectedOptions, correctAnswerIds, correctAnswersLength*/
4686
+ if (!current || dirty[0] & /*isFinished, isPreviewModeInteractive, selectedOptions, correctAnswerIds, correctAnswersLength, isPreviewMode*/
4728
4687
  126 && button_class_value !== (button_class_value = "group btn-mcq-option " + /*optionHasMedia*/
4729
- (ctx[13] && !/*isPreviewMode*/
4730
- ctx[2] ? "min-w-[288px] max-w-[304px] min-h-[210px] md:min-w-full block" : "") + " " + (!/*isFinished*/
4688
+ (ctx[13] ? "min-w-[288px] max-w-[304px] min-h-[210px] md:min-w-full block" : "") + " " + (!/*isFinished*/
4731
4689
  ctx[1] || /*isPreviewModeInteractive*/
4732
4690
  ctx[3] ? "active:raw-focus-ring-by" : "finished") + " " + /*selectedOptions*/
4733
4691
  (ctx[4].includes(
@@ -4922,11 +4880,7 @@
4922
4880
  /*stimulus*/
4923
4881
  ctx[10]
4924
4882
  ),
4925
- optionHasMedia: (
4926
- /*optionHasMedia*/
4927
- ctx[13] && !/*isPreviewMode*/
4928
- ctx[2]
4929
- ),
4883
+ optionHasMedia: true,
4930
4884
  $$slots: { default: [create_default_slot] },
4931
4885
  $$scope: { ctx }
4932
4886
  }
@@ -4941,12 +4895,7 @@
4941
4895
  },
4942
4896
  p(ctx2, dirty) {
4943
4897
  const promptbody_changes = {};
4944
- if (dirty[0] & /*isPreviewMode*/
4945
- 4)
4946
- promptbody_changes.optionHasMedia = /*optionHasMedia*/
4947
- ctx2[13] && !/*isPreviewMode*/
4948
- ctx2[2];
4949
- if (dirty[0] & /*isPreviewMode, correctAnswersLength, selectedOptions, isFinished, isPreviewModeInteractive, correctAnswerIds, isDataSaving, resultFeedback, isFeedbackShown*/
4898
+ if (dirty[0] & /*correctAnswersLength, selectedOptions, isFinished, isPreviewModeInteractive, isPreviewMode, correctAnswerIds, isDataSaving, resultFeedback, isFeedbackShown*/
4950
4899
  511 | dirty[1] & /*$$scope*/
4951
4900
  4) {
4952
4901
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "1.0.36",
4
- "change version": "1.0.7",
3
+ "version": "1.0.37",
4
+ "change version": "1.0.8",
5
5
  "description": "Authoring tool frontend SDK",
6
6
  "contributors": [
7
7
  {