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