@bigbinary/neeto-editor 1.28.6 → 1.28.7
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 +111 -51
- package/index.cjs.js.map +1 -1
- package/index.js +111 -51
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/index.js
CHANGED
|
@@ -150659,10 +150659,10 @@ var Editor = function Editor(_ref, ref) {
|
|
|
150659
150659
|
};
|
|
150660
150660
|
var Editor$1 = /*#__PURE__*/React__default.forwardRef(Editor);
|
|
150661
150661
|
|
|
150662
|
-
var _excluded$1 = ["name", "onChange"];
|
|
150662
|
+
var _excluded$1 = ["name", "onChange", "shouldUpdate", "mentions", "variables"];
|
|
150663
150663
|
function cov_4yoeuyegb() {
|
|
150664
150664
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/FormikEditor.jsx";
|
|
150665
|
-
var hash = "
|
|
150665
|
+
var hash = "987f679398f2f8dc30dd2c7a18c9e2d0fb582662";
|
|
150666
150666
|
var global = new Function("return this")();
|
|
150667
150667
|
var gcv = "__coverage__";
|
|
150668
150668
|
var coverageData = {
|
|
@@ -150674,57 +150674,57 @@ function cov_4yoeuyegb() {
|
|
|
150674
150674
|
column: 21
|
|
150675
150675
|
},
|
|
150676
150676
|
end: {
|
|
150677
|
-
line:
|
|
150677
|
+
line: 42,
|
|
150678
150678
|
column: 1
|
|
150679
150679
|
}
|
|
150680
150680
|
},
|
|
150681
150681
|
"1": {
|
|
150682
150682
|
start: {
|
|
150683
|
-
line:
|
|
150683
|
+
line: 19,
|
|
150684
150684
|
column: 2
|
|
150685
150685
|
},
|
|
150686
150686
|
end: {
|
|
150687
|
-
line:
|
|
150687
|
+
line: 41,
|
|
150688
150688
|
column: 14
|
|
150689
150689
|
}
|
|
150690
150690
|
},
|
|
150691
150691
|
"2": {
|
|
150692
150692
|
start: {
|
|
150693
|
-
line:
|
|
150693
|
+
line: 26,
|
|
150694
150694
|
column: 6
|
|
150695
150695
|
},
|
|
150696
150696
|
end: {
|
|
150697
|
-
line:
|
|
150697
|
+
line: 39,
|
|
150698
150698
|
column: 8
|
|
150699
150699
|
}
|
|
150700
150700
|
},
|
|
150701
150701
|
"3": {
|
|
150702
150702
|
start: {
|
|
150703
|
-
line:
|
|
150703
|
+
line: 33,
|
|
150704
150704
|
column: 22
|
|
150705
150705
|
},
|
|
150706
150706
|
end: {
|
|
150707
|
-
line:
|
|
150707
|
+
line: 33,
|
|
150708
150708
|
column: 54
|
|
150709
150709
|
}
|
|
150710
150710
|
},
|
|
150711
150711
|
"4": {
|
|
150712
150712
|
start: {
|
|
150713
|
-
line:
|
|
150713
|
+
line: 35,
|
|
150714
150714
|
column: 10
|
|
150715
150715
|
},
|
|
150716
150716
|
end: {
|
|
150717
|
-
line:
|
|
150717
|
+
line: 35,
|
|
150718
150718
|
column: 42
|
|
150719
150719
|
}
|
|
150720
150720
|
},
|
|
150721
150721
|
"5": {
|
|
150722
150722
|
start: {
|
|
150723
|
-
line:
|
|
150723
|
+
line: 36,
|
|
150724
150724
|
column: 10
|
|
150725
150725
|
},
|
|
150726
150726
|
end: {
|
|
150727
|
-
line:
|
|
150727
|
+
line: 36,
|
|
150728
150728
|
column: 28
|
|
150729
150729
|
}
|
|
150730
150730
|
}
|
|
@@ -150744,146 +150744,194 @@ function cov_4yoeuyegb() {
|
|
|
150744
150744
|
},
|
|
150745
150745
|
loc: {
|
|
150746
150746
|
start: {
|
|
150747
|
-
line:
|
|
150747
|
+
line: 19,
|
|
150748
150748
|
column: 2
|
|
150749
150749
|
},
|
|
150750
150750
|
end: {
|
|
150751
|
-
line:
|
|
150751
|
+
line: 41,
|
|
150752
150752
|
column: 14
|
|
150753
150753
|
}
|
|
150754
150754
|
},
|
|
150755
|
-
line:
|
|
150755
|
+
line: 19
|
|
150756
150756
|
},
|
|
150757
150757
|
"1": {
|
|
150758
150758
|
name: "(anonymous_1)",
|
|
150759
150759
|
decl: {
|
|
150760
150760
|
start: {
|
|
150761
|
-
line:
|
|
150761
|
+
line: 25,
|
|
150762
150762
|
column: 5
|
|
150763
150763
|
},
|
|
150764
150764
|
end: {
|
|
150765
|
-
line:
|
|
150765
|
+
line: 25,
|
|
150766
150766
|
column: 6
|
|
150767
150767
|
}
|
|
150768
150768
|
},
|
|
150769
150769
|
loc: {
|
|
150770
150770
|
start: {
|
|
150771
|
-
line:
|
|
150771
|
+
line: 26,
|
|
150772
150772
|
column: 6
|
|
150773
150773
|
},
|
|
150774
150774
|
end: {
|
|
150775
|
-
line:
|
|
150775
|
+
line: 39,
|
|
150776
150776
|
column: 8
|
|
150777
150777
|
}
|
|
150778
150778
|
},
|
|
150779
|
-
line:
|
|
150779
|
+
line: 26
|
|
150780
150780
|
},
|
|
150781
150781
|
"2": {
|
|
150782
150782
|
name: "(anonymous_2)",
|
|
150783
150783
|
decl: {
|
|
150784
150784
|
start: {
|
|
150785
|
-
line:
|
|
150785
|
+
line: 33,
|
|
150786
150786
|
column: 16
|
|
150787
150787
|
},
|
|
150788
150788
|
end: {
|
|
150789
|
-
line:
|
|
150789
|
+
line: 33,
|
|
150790
150790
|
column: 17
|
|
150791
150791
|
}
|
|
150792
150792
|
},
|
|
150793
150793
|
loc: {
|
|
150794
150794
|
start: {
|
|
150795
|
-
line:
|
|
150795
|
+
line: 33,
|
|
150796
150796
|
column: 22
|
|
150797
150797
|
},
|
|
150798
150798
|
end: {
|
|
150799
|
-
line:
|
|
150799
|
+
line: 33,
|
|
150800
150800
|
column: 54
|
|
150801
150801
|
}
|
|
150802
150802
|
},
|
|
150803
|
-
line:
|
|
150803
|
+
line: 33
|
|
150804
150804
|
},
|
|
150805
150805
|
"3": {
|
|
150806
150806
|
name: "(anonymous_3)",
|
|
150807
150807
|
decl: {
|
|
150808
150808
|
start: {
|
|
150809
|
-
line:
|
|
150809
|
+
line: 34,
|
|
150810
150810
|
column: 18
|
|
150811
150811
|
},
|
|
150812
150812
|
end: {
|
|
150813
|
-
line:
|
|
150813
|
+
line: 34,
|
|
150814
150814
|
column: 19
|
|
150815
150815
|
}
|
|
150816
150816
|
},
|
|
150817
150817
|
loc: {
|
|
150818
150818
|
start: {
|
|
150819
|
-
line:
|
|
150819
|
+
line: 34,
|
|
150820
150820
|
column: 27
|
|
150821
150821
|
},
|
|
150822
150822
|
end: {
|
|
150823
|
-
line:
|
|
150823
|
+
line: 37,
|
|
150824
150824
|
column: 9
|
|
150825
150825
|
}
|
|
150826
150826
|
},
|
|
150827
|
-
line:
|
|
150827
|
+
line: 34
|
|
150828
150828
|
}
|
|
150829
150829
|
},
|
|
150830
150830
|
branchMap: {
|
|
150831
150831
|
"0": {
|
|
150832
150832
|
loc: {
|
|
150833
150833
|
start: {
|
|
150834
|
-
line:
|
|
150835
|
-
column:
|
|
150834
|
+
line: 11,
|
|
150835
|
+
column: 4
|
|
150836
150836
|
},
|
|
150837
150837
|
end: {
|
|
150838
|
-
line:
|
|
150839
|
-
column:
|
|
150838
|
+
line: 11,
|
|
150839
|
+
column: 19
|
|
150840
150840
|
}
|
|
150841
150841
|
},
|
|
150842
150842
|
type: "default-arg",
|
|
150843
150843
|
locations: [{
|
|
150844
150844
|
start: {
|
|
150845
|
-
line:
|
|
150846
|
-
column:
|
|
150845
|
+
line: 11,
|
|
150846
|
+
column: 15
|
|
150847
150847
|
},
|
|
150848
150848
|
end: {
|
|
150849
|
-
line:
|
|
150850
|
-
column:
|
|
150849
|
+
line: 11,
|
|
150850
|
+
column: 19
|
|
150851
150851
|
}
|
|
150852
150852
|
}],
|
|
150853
|
-
line:
|
|
150853
|
+
line: 11
|
|
150854
150854
|
},
|
|
150855
150855
|
"1": {
|
|
150856
150856
|
loc: {
|
|
150857
150857
|
start: {
|
|
150858
|
-
line:
|
|
150858
|
+
line: 13,
|
|
150859
|
+
column: 4
|
|
150860
|
+
},
|
|
150861
|
+
end: {
|
|
150862
|
+
line: 13,
|
|
150863
|
+
column: 17
|
|
150864
|
+
}
|
|
150865
|
+
},
|
|
150866
|
+
type: "default-arg",
|
|
150867
|
+
locations: [{
|
|
150868
|
+
start: {
|
|
150869
|
+
line: 13,
|
|
150859
150870
|
column: 15
|
|
150860
150871
|
},
|
|
150861
150872
|
end: {
|
|
150862
|
-
line:
|
|
150873
|
+
line: 13,
|
|
150874
|
+
column: 17
|
|
150875
|
+
}
|
|
150876
|
+
}],
|
|
150877
|
+
line: 13
|
|
150878
|
+
},
|
|
150879
|
+
"2": {
|
|
150880
|
+
loc: {
|
|
150881
|
+
start: {
|
|
150882
|
+
line: 14,
|
|
150883
|
+
column: 4
|
|
150884
|
+
},
|
|
150885
|
+
end: {
|
|
150886
|
+
line: 14,
|
|
150887
|
+
column: 18
|
|
150888
|
+
}
|
|
150889
|
+
},
|
|
150890
|
+
type: "default-arg",
|
|
150891
|
+
locations: [{
|
|
150892
|
+
start: {
|
|
150893
|
+
line: 14,
|
|
150894
|
+
column: 16
|
|
150895
|
+
},
|
|
150896
|
+
end: {
|
|
150897
|
+
line: 14,
|
|
150898
|
+
column: 18
|
|
150899
|
+
}
|
|
150900
|
+
}],
|
|
150901
|
+
line: 14
|
|
150902
|
+
},
|
|
150903
|
+
"3": {
|
|
150904
|
+
loc: {
|
|
150905
|
+
start: {
|
|
150906
|
+
line: 27,
|
|
150907
|
+
column: 15
|
|
150908
|
+
},
|
|
150909
|
+
end: {
|
|
150910
|
+
line: 27,
|
|
150863
150911
|
column: 45
|
|
150864
150912
|
}
|
|
150865
150913
|
},
|
|
150866
150914
|
type: "cond-expr",
|
|
150867
150915
|
locations: [{
|
|
150868
150916
|
start: {
|
|
150869
|
-
line:
|
|
150917
|
+
line: 27,
|
|
150870
150918
|
column: 30
|
|
150871
150919
|
},
|
|
150872
150920
|
end: {
|
|
150873
|
-
line:
|
|
150921
|
+
line: 27,
|
|
150874
150922
|
column: 40
|
|
150875
150923
|
}
|
|
150876
150924
|
}, {
|
|
150877
150925
|
start: {
|
|
150878
|
-
line:
|
|
150926
|
+
line: 27,
|
|
150879
150927
|
column: 43
|
|
150880
150928
|
},
|
|
150881
150929
|
end: {
|
|
150882
|
-
line:
|
|
150930
|
+
line: 27,
|
|
150883
150931
|
column: 45
|
|
150884
150932
|
}
|
|
150885
150933
|
}],
|
|
150886
|
-
line:
|
|
150934
|
+
line: 27
|
|
150887
150935
|
}
|
|
150888
150936
|
},
|
|
150889
150937
|
s: {
|
|
@@ -150902,10 +150950,12 @@ function cov_4yoeuyegb() {
|
|
|
150902
150950
|
},
|
|
150903
150951
|
b: {
|
|
150904
150952
|
"0": [0],
|
|
150905
|
-
"1": [0,
|
|
150953
|
+
"1": [0],
|
|
150954
|
+
"2": [0],
|
|
150955
|
+
"3": [0, 0]
|
|
150906
150956
|
},
|
|
150907
150957
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
150908
|
-
hash: "
|
|
150958
|
+
hash: "987f679398f2f8dc30dd2c7a18c9e2d0fb582662"
|
|
150909
150959
|
};
|
|
150910
150960
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
150911
150961
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -150926,11 +150976,19 @@ var FormikEditor = function FormikEditor(_ref, ref) {
|
|
|
150926
150976
|
var name = _ref.name,
|
|
150927
150977
|
_ref$onChange = _ref.onChange,
|
|
150928
150978
|
_onChange = _ref$onChange === void 0 ? (cov_4yoeuyegb().b[0][0]++, noop$2) : _ref$onChange,
|
|
150979
|
+
shouldUpdate = _ref.shouldUpdate,
|
|
150980
|
+
_ref$mentions = _ref.mentions,
|
|
150981
|
+
mentions = _ref$mentions === void 0 ? (cov_4yoeuyegb().b[1][0]++, []) : _ref$mentions,
|
|
150982
|
+
_ref$variables = _ref.variables,
|
|
150983
|
+
variables = _ref$variables === void 0 ? (cov_4yoeuyegb().b[2][0]++, []) : _ref$variables,
|
|
150929
150984
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$1);
|
|
150930
150985
|
cov_4yoeuyegb().f[0]++;
|
|
150931
150986
|
cov_4yoeuyegb().s[1]++;
|
|
150932
150987
|
return /*#__PURE__*/React__default.createElement(FastField, {
|
|
150933
|
-
|
|
150988
|
+
mentions: mentions,
|
|
150989
|
+
name: name,
|
|
150990
|
+
shouldUpdate: shouldUpdate,
|
|
150991
|
+
variables: variables
|
|
150934
150992
|
}, function (_ref2) {
|
|
150935
150993
|
var field = _ref2.field,
|
|
150936
150994
|
form = _ref2.form,
|
|
@@ -150938,10 +150996,12 @@ var FormikEditor = function FormikEditor(_ref, ref) {
|
|
|
150938
150996
|
cov_4yoeuyegb().f[1]++;
|
|
150939
150997
|
cov_4yoeuyegb().s[2]++;
|
|
150940
150998
|
return /*#__PURE__*/React__default.createElement(Editor$1, _extends$1({
|
|
150941
|
-
error: meta.touched ? (cov_4yoeuyegb().b[
|
|
150999
|
+
error: meta.touched ? (cov_4yoeuyegb().b[3][0]++, meta.error) : (cov_4yoeuyegb().b[3][1]++, ""),
|
|
150942
151000
|
initialValue: field.value,
|
|
151001
|
+
mentions: mentions,
|
|
150943
151002
|
name: name,
|
|
150944
151003
|
ref: ref,
|
|
151004
|
+
variables: variables,
|
|
150945
151005
|
onBlur: function onBlur() {
|
|
150946
151006
|
cov_4yoeuyegb().f[2]++;
|
|
150947
151007
|
cov_4yoeuyegb().s[3]++;
|