@bigbinary/neeto-editor 1.28.2 → 1.28.3

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.
package/index.js CHANGED
@@ -150480,10 +150480,10 @@ var Editor = function Editor(_ref, ref) {
150480
150480
  };
150481
150481
  var Editor$1 = /*#__PURE__*/React__default.forwardRef(Editor);
150482
150482
 
150483
- var _excluded$1 = ["name"];
150483
+ var _excluded$1 = ["name", "onChange"];
150484
150484
  function cov_4yoeuyegb() {
150485
150485
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/FormikEditor.jsx";
150486
- var hash = "53d96e7a42f3ac252a5ea16a2332780ae33f210c";
150486
+ var hash = "51f3d99e0f5f436a1c32bf738d4bbb1e03023e73";
150487
150487
  var global = new Function("return this")();
150488
150488
  var gcv = "__coverage__";
150489
150489
  var coverageData = {
@@ -150491,52 +150491,62 @@ function cov_4yoeuyegb() {
150491
150491
  statementMap: {
150492
150492
  "0": {
150493
150493
  start: {
150494
- line: 7,
150494
+ line: 8,
150495
150495
  column: 21
150496
150496
  },
150497
150497
  end: {
150498
- line: 21,
150498
+ line: 25,
150499
150499
  column: 1
150500
150500
  }
150501
150501
  },
150502
150502
  "1": {
150503
150503
  start: {
150504
- line: 8,
150504
+ line: 9,
150505
150505
  column: 2
150506
150506
  },
150507
150507
  end: {
150508
- line: 20,
150508
+ line: 24,
150509
150509
  column: 14
150510
150510
  }
150511
150511
  },
150512
150512
  "2": {
150513
150513
  start: {
150514
- line: 10,
150514
+ line: 11,
150515
150515
  column: 6
150516
150516
  },
150517
150517
  end: {
150518
- line: 18,
150518
+ line: 22,
150519
150519
  column: 8
150520
150520
  }
150521
150521
  },
150522
150522
  "3": {
150523
150523
  start: {
150524
- line: 15,
150524
+ line: 16,
150525
150525
  column: 22
150526
150526
  },
150527
150527
  end: {
150528
- line: 15,
150528
+ line: 16,
150529
150529
  column: 54
150530
150530
  }
150531
150531
  },
150532
150532
  "4": {
150533
150533
  start: {
150534
- line: 16,
150535
- column: 27
150534
+ line: 18,
150535
+ column: 10
150536
150536
  },
150537
150537
  end: {
150538
- line: 16,
150539
- column: 58
150538
+ line: 18,
150539
+ column: 42
150540
+ }
150541
+ },
150542
+ "5": {
150543
+ start: {
150544
+ line: 19,
150545
+ column: 10
150546
+ },
150547
+ end: {
150548
+ line: 19,
150549
+ column: 28
150540
150550
  }
150541
150551
  }
150542
150552
  },
@@ -150545,132 +150555,156 @@ function cov_4yoeuyegb() {
150545
150555
  name: "(anonymous_0)",
150546
150556
  decl: {
150547
150557
  start: {
150548
- line: 7,
150558
+ line: 8,
150549
150559
  column: 21
150550
150560
  },
150551
150561
  end: {
150552
- line: 7,
150562
+ line: 8,
150553
150563
  column: 22
150554
150564
  }
150555
150565
  },
150556
150566
  loc: {
150557
150567
  start: {
150558
- line: 8,
150568
+ line: 9,
150559
150569
  column: 2
150560
150570
  },
150561
150571
  end: {
150562
- line: 20,
150572
+ line: 24,
150563
150573
  column: 14
150564
150574
  }
150565
150575
  },
150566
- line: 8
150576
+ line: 9
150567
150577
  },
150568
150578
  "1": {
150569
150579
  name: "(anonymous_1)",
150570
150580
  decl: {
150571
150581
  start: {
150572
- line: 9,
150582
+ line: 10,
150573
150583
  column: 5
150574
150584
  },
150575
150585
  end: {
150576
- line: 9,
150586
+ line: 10,
150577
150587
  column: 6
150578
150588
  }
150579
150589
  },
150580
150590
  loc: {
150581
150591
  start: {
150582
- line: 10,
150592
+ line: 11,
150583
150593
  column: 6
150584
150594
  },
150585
150595
  end: {
150586
- line: 18,
150596
+ line: 22,
150587
150597
  column: 8
150588
150598
  }
150589
150599
  },
150590
- line: 10
150600
+ line: 11
150591
150601
  },
150592
150602
  "2": {
150593
150603
  name: "(anonymous_2)",
150594
150604
  decl: {
150595
150605
  start: {
150596
- line: 15,
150606
+ line: 16,
150597
150607
  column: 16
150598
150608
  },
150599
150609
  end: {
150600
- line: 15,
150610
+ line: 16,
150601
150611
  column: 17
150602
150612
  }
150603
150613
  },
150604
150614
  loc: {
150605
150615
  start: {
150606
- line: 15,
150616
+ line: 16,
150607
150617
  column: 22
150608
150618
  },
150609
150619
  end: {
150610
- line: 15,
150620
+ line: 16,
150611
150621
  column: 54
150612
150622
  }
150613
150623
  },
150614
- line: 15
150624
+ line: 16
150615
150625
  },
150616
150626
  "3": {
150617
150627
  name: "(anonymous_3)",
150618
150628
  decl: {
150619
150629
  start: {
150620
- line: 16,
150630
+ line: 17,
150621
150631
  column: 18
150622
150632
  },
150623
150633
  end: {
150624
- line: 16,
150634
+ line: 17,
150625
150635
  column: 19
150626
150636
  }
150627
150637
  },
150628
150638
  loc: {
150629
150639
  start: {
150630
- line: 16,
150640
+ line: 17,
150631
150641
  column: 27
150632
150642
  },
150633
150643
  end: {
150634
- line: 16,
150635
- column: 58
150644
+ line: 20,
150645
+ column: 9
150636
150646
  }
150637
150647
  },
150638
- line: 16
150648
+ line: 17
150639
150649
  }
150640
150650
  },
150641
150651
  branchMap: {
150642
150652
  "0": {
150643
150653
  loc: {
150644
150654
  start: {
150645
- line: 11,
150655
+ line: 8,
150656
+ column: 30
150657
+ },
150658
+ end: {
150659
+ line: 8,
150660
+ column: 45
150661
+ }
150662
+ },
150663
+ type: "default-arg",
150664
+ locations: [{
150665
+ start: {
150666
+ line: 8,
150667
+ column: 41
150668
+ },
150669
+ end: {
150670
+ line: 8,
150671
+ column: 45
150672
+ }
150673
+ }],
150674
+ line: 8
150675
+ },
150676
+ "1": {
150677
+ loc: {
150678
+ start: {
150679
+ line: 12,
150646
150680
  column: 15
150647
150681
  },
150648
150682
  end: {
150649
- line: 11,
150683
+ line: 12,
150650
150684
  column: 45
150651
150685
  }
150652
150686
  },
150653
150687
  type: "cond-expr",
150654
150688
  locations: [{
150655
150689
  start: {
150656
- line: 11,
150690
+ line: 12,
150657
150691
  column: 30
150658
150692
  },
150659
150693
  end: {
150660
- line: 11,
150694
+ line: 12,
150661
150695
  column: 40
150662
150696
  }
150663
150697
  }, {
150664
150698
  start: {
150665
- line: 11,
150699
+ line: 12,
150666
150700
  column: 43
150667
150701
  },
150668
150702
  end: {
150669
- line: 11,
150703
+ line: 12,
150670
150704
  column: 45
150671
150705
  }
150672
150706
  }],
150673
- line: 11
150707
+ line: 12
150674
150708
  }
150675
150709
  },
150676
150710
  s: {
@@ -150678,7 +150712,8 @@ function cov_4yoeuyegb() {
150678
150712
  "1": 0,
150679
150713
  "2": 0,
150680
150714
  "3": 0,
150681
- "4": 0
150715
+ "4": 0,
150716
+ "5": 0
150682
150717
  },
150683
150718
  f: {
150684
150719
  "0": 0,
@@ -150687,10 +150722,11 @@ function cov_4yoeuyegb() {
150687
150722
  "3": 0
150688
150723
  },
150689
150724
  b: {
150690
- "0": [0, 0]
150725
+ "0": [0],
150726
+ "1": [0, 0]
150691
150727
  },
150692
150728
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
150693
- hash: "53d96e7a42f3ac252a5ea16a2332780ae33f210c"
150729
+ hash: "51f3d99e0f5f436a1c32bf738d4bbb1e03023e73"
150694
150730
  };
150695
150731
  var coverage = global[gcv] || (global[gcv] = {});
150696
150732
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -150709,6 +150745,8 @@ cov_4yoeuyegb();
150709
150745
  cov_4yoeuyegb().s[0]++;
150710
150746
  var FormikEditor = function FormikEditor(_ref, ref) {
150711
150747
  var name = _ref.name,
150748
+ _ref$onChange = _ref.onChange,
150749
+ _onChange = _ref$onChange === void 0 ? (cov_4yoeuyegb().b[0][0]++, noop$2) : _ref$onChange,
150712
150750
  otherProps = _objectWithoutProperties$1(_ref, _excluded$1);
150713
150751
  cov_4yoeuyegb().f[0]++;
150714
150752
  cov_4yoeuyegb().s[1]++;
@@ -150721,7 +150759,7 @@ var FormikEditor = function FormikEditor(_ref, ref) {
150721
150759
  cov_4yoeuyegb().f[1]++;
150722
150760
  cov_4yoeuyegb().s[2]++;
150723
150761
  return /*#__PURE__*/React__default.createElement(Editor$1, _extends$1({
150724
- error: meta.touched ? (cov_4yoeuyegb().b[0][0]++, meta.error) : (cov_4yoeuyegb().b[0][1]++, ""),
150762
+ error: meta.touched ? (cov_4yoeuyegb().b[1][0]++, meta.error) : (cov_4yoeuyegb().b[1][1]++, ""),
150725
150763
  initialValue: field.value,
150726
150764
  name: name,
150727
150765
  ref: ref,
@@ -150733,7 +150771,9 @@ var FormikEditor = function FormikEditor(_ref, ref) {
150733
150771
  onChange: function onChange(value) {
150734
150772
  cov_4yoeuyegb().f[3]++;
150735
150773
  cov_4yoeuyegb().s[4]++;
150736
- return form.setFieldValue(name, value);
150774
+ form.setFieldValue(name, value);
150775
+ cov_4yoeuyegb().s[5]++;
150776
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(value);
150737
150777
  }
150738
150778
  }, otherProps));
150739
150779
  });