@bigbinary/neeto-editor 1.25.16 → 1.25.18
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 +199 -134
- package/index.cjs.js.map +1 -0
- package/index.js +200 -135
- package/index.js.map +1 -0
- package/package.json +1 -2
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isNotEmpty, findBy, noop as noop$2, removeBy, removeById, slugify } from '@bigbinary/neeto-commons-frontend/pure';
|
|
2
|
-
import { pluck,
|
|
2
|
+
import { pluck, isEmpty as isEmpty$1, isNil, mergeDeepLeft, assoc, mergeRight, concat as concat$3, is, prop, fromPairs, uniqBy } from 'ramda';
|
|
3
3
|
import * as React$6 from 'react';
|
|
4
4
|
import React__default, { useContext, useState, useRef as useRef$1, useEffect as useEffect$1, useImperativeHandle, createContext, forwardRef as forwardRef$1, cloneElement, useLayoutEffect, Fragment as Fragment$1 } from 'react';
|
|
5
5
|
import { renderToString } from 'react-dom/server';
|
|
@@ -23475,7 +23475,7 @@ var VARIABLE_SPAN_REGEX = (cov_1l9oz901pg().s[3]++, /<span data-variable="" [^>]
|
|
|
23475
23475
|
|
|
23476
23476
|
function cov_2fxze78p7l() {
|
|
23477
23477
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/EditorContent/utils.js";
|
|
23478
|
-
var hash = "
|
|
23478
|
+
var hash = "441fa5e97cbfafb994f82f3774eb62e2601621d6";
|
|
23479
23479
|
var global = new Function("return this")();
|
|
23480
23480
|
var gcv = "__coverage__";
|
|
23481
23481
|
var coverageData = {
|
|
@@ -23483,191 +23483,211 @@ function cov_2fxze78p7l() {
|
|
|
23483
23483
|
statementMap: {
|
|
23484
23484
|
"0": {
|
|
23485
23485
|
start: {
|
|
23486
|
-
line:
|
|
23486
|
+
line: 10,
|
|
23487
23487
|
column: 33
|
|
23488
23488
|
},
|
|
23489
23489
|
end: {
|
|
23490
|
-
line:
|
|
23490
|
+
line: 20,
|
|
23491
23491
|
column: 1
|
|
23492
23492
|
}
|
|
23493
23493
|
},
|
|
23494
23494
|
"1": {
|
|
23495
23495
|
start: {
|
|
23496
|
-
line:
|
|
23496
|
+
line: 11,
|
|
23497
23497
|
column: 2
|
|
23498
23498
|
},
|
|
23499
23499
|
end: {
|
|
23500
|
-
line:
|
|
23500
|
+
line: 17,
|
|
23501
23501
|
column: 3
|
|
23502
23502
|
}
|
|
23503
23503
|
},
|
|
23504
23504
|
"2": {
|
|
23505
23505
|
start: {
|
|
23506
|
-
line:
|
|
23506
|
+
line: 12,
|
|
23507
23507
|
column: 21
|
|
23508
23508
|
},
|
|
23509
23509
|
end: {
|
|
23510
|
-
line:
|
|
23510
|
+
line: 14,
|
|
23511
23511
|
column: 12
|
|
23512
23512
|
}
|
|
23513
23513
|
},
|
|
23514
23514
|
"3": {
|
|
23515
23515
|
start: {
|
|
23516
|
-
line:
|
|
23516
|
+
line: 16,
|
|
23517
23517
|
column: 4
|
|
23518
23518
|
},
|
|
23519
23519
|
end: {
|
|
23520
|
-
line:
|
|
23520
|
+
line: 16,
|
|
23521
23521
|
column: 78
|
|
23522
23522
|
}
|
|
23523
23523
|
},
|
|
23524
23524
|
"4": {
|
|
23525
23525
|
start: {
|
|
23526
|
-
line:
|
|
23526
|
+
line: 19,
|
|
23527
23527
|
column: 2
|
|
23528
23528
|
},
|
|
23529
23529
|
end: {
|
|
23530
|
-
line:
|
|
23530
|
+
line: 19,
|
|
23531
23531
|
column: 23
|
|
23532
23532
|
}
|
|
23533
23533
|
},
|
|
23534
23534
|
"5": {
|
|
23535
23535
|
start: {
|
|
23536
|
-
line:
|
|
23536
|
+
line: 22,
|
|
23537
23537
|
column: 29
|
|
23538
23538
|
},
|
|
23539
23539
|
end: {
|
|
23540
|
-
line:
|
|
23540
|
+
line: 37,
|
|
23541
23541
|
column: 4
|
|
23542
23542
|
}
|
|
23543
23543
|
},
|
|
23544
23544
|
"6": {
|
|
23545
23545
|
start: {
|
|
23546
|
-
line:
|
|
23546
|
+
line: 23,
|
|
23547
23547
|
column: 2
|
|
23548
23548
|
},
|
|
23549
23549
|
end: {
|
|
23550
|
-
line:
|
|
23550
|
+
line: 37,
|
|
23551
23551
|
column: 4
|
|
23552
23552
|
}
|
|
23553
23553
|
},
|
|
23554
23554
|
"7": {
|
|
23555
23555
|
start: {
|
|
23556
|
-
line:
|
|
23557
|
-
column:
|
|
23556
|
+
line: 24,
|
|
23557
|
+
column: 25
|
|
23558
23558
|
},
|
|
23559
23559
|
end: {
|
|
23560
|
-
line:
|
|
23560
|
+
line: 26,
|
|
23561
23561
|
column: 5
|
|
23562
23562
|
}
|
|
23563
23563
|
},
|
|
23564
23564
|
"8": {
|
|
23565
23565
|
start: {
|
|
23566
|
-
line:
|
|
23567
|
-
column:
|
|
23566
|
+
line: 28,
|
|
23567
|
+
column: 4
|
|
23568
23568
|
},
|
|
23569
23569
|
end: {
|
|
23570
|
-
line:
|
|
23570
|
+
line: 30,
|
|
23571
23571
|
column: 5
|
|
23572
23572
|
}
|
|
23573
23573
|
},
|
|
23574
23574
|
"9": {
|
|
23575
23575
|
start: {
|
|
23576
|
-
line:
|
|
23577
|
-
column:
|
|
23576
|
+
line: 29,
|
|
23577
|
+
column: 6
|
|
23578
23578
|
},
|
|
23579
23579
|
end: {
|
|
23580
|
-
line:
|
|
23581
|
-
column:
|
|
23580
|
+
line: 29,
|
|
23581
|
+
column: 62
|
|
23582
23582
|
}
|
|
23583
23583
|
},
|
|
23584
23584
|
"10": {
|
|
23585
23585
|
start: {
|
|
23586
|
+
line: 32,
|
|
23587
|
+
column: 28
|
|
23588
|
+
},
|
|
23589
|
+
end: {
|
|
23586
23590
|
line: 34,
|
|
23591
|
+
column: 5
|
|
23592
|
+
}
|
|
23593
|
+
},
|
|
23594
|
+
"11": {
|
|
23595
|
+
start: {
|
|
23596
|
+
line: 36,
|
|
23597
|
+
column: 4
|
|
23598
|
+
},
|
|
23599
|
+
end: {
|
|
23600
|
+
line: 36,
|
|
23601
|
+
column: 72
|
|
23602
|
+
}
|
|
23603
|
+
},
|
|
23604
|
+
"12": {
|
|
23605
|
+
start: {
|
|
23606
|
+
line: 39,
|
|
23587
23607
|
column: 35
|
|
23588
23608
|
},
|
|
23589
23609
|
end: {
|
|
23590
|
-
line:
|
|
23610
|
+
line: 55,
|
|
23591
23611
|
column: 4
|
|
23592
23612
|
}
|
|
23593
23613
|
},
|
|
23594
|
-
"
|
|
23614
|
+
"13": {
|
|
23595
23615
|
start: {
|
|
23596
|
-
line:
|
|
23616
|
+
line: 40,
|
|
23597
23617
|
column: 2
|
|
23598
23618
|
},
|
|
23599
23619
|
end: {
|
|
23600
|
-
line:
|
|
23620
|
+
line: 55,
|
|
23601
23621
|
column: 4
|
|
23602
23622
|
}
|
|
23603
23623
|
},
|
|
23604
|
-
"
|
|
23624
|
+
"14": {
|
|
23605
23625
|
start: {
|
|
23606
|
-
line:
|
|
23626
|
+
line: 41,
|
|
23607
23627
|
column: 30
|
|
23608
23628
|
},
|
|
23609
23629
|
end: {
|
|
23610
|
-
line:
|
|
23630
|
+
line: 41,
|
|
23611
23631
|
column: 50
|
|
23612
23632
|
}
|
|
23613
23633
|
},
|
|
23614
|
-
"
|
|
23634
|
+
"15": {
|
|
23615
23635
|
start: {
|
|
23616
|
-
line:
|
|
23636
|
+
line: 42,
|
|
23617
23637
|
column: 4
|
|
23618
23638
|
},
|
|
23619
23639
|
end: {
|
|
23620
|
-
line:
|
|
23640
|
+
line: 50,
|
|
23621
23641
|
column: 5
|
|
23622
23642
|
}
|
|
23623
23643
|
},
|
|
23624
|
-
"
|
|
23644
|
+
"16": {
|
|
23625
23645
|
start: {
|
|
23626
|
-
line:
|
|
23646
|
+
line: 43,
|
|
23627
23647
|
column: 23
|
|
23628
23648
|
},
|
|
23629
23649
|
end: {
|
|
23630
|
-
line:
|
|
23650
|
+
line: 43,
|
|
23631
23651
|
column: 76
|
|
23632
23652
|
}
|
|
23633
23653
|
},
|
|
23634
|
-
"
|
|
23654
|
+
"17": {
|
|
23635
23655
|
start: {
|
|
23636
|
-
line:
|
|
23656
|
+
line: 44,
|
|
23637
23657
|
column: 23
|
|
23638
23658
|
},
|
|
23639
23659
|
end: {
|
|
23640
|
-
line:
|
|
23660
|
+
line: 47,
|
|
23641
23661
|
column: 7
|
|
23642
23662
|
}
|
|
23643
23663
|
},
|
|
23644
|
-
"
|
|
23664
|
+
"18": {
|
|
23645
23665
|
start: {
|
|
23646
|
-
line:
|
|
23666
|
+
line: 49,
|
|
23647
23667
|
column: 6
|
|
23648
23668
|
},
|
|
23649
23669
|
end: {
|
|
23650
|
-
line:
|
|
23670
|
+
line: 49,
|
|
23651
23671
|
column: 60
|
|
23652
23672
|
}
|
|
23653
23673
|
},
|
|
23654
|
-
"
|
|
23674
|
+
"19": {
|
|
23655
23675
|
start: {
|
|
23656
|
-
line:
|
|
23676
|
+
line: 52,
|
|
23657
23677
|
column: 21
|
|
23658
23678
|
},
|
|
23659
23679
|
end: {
|
|
23660
|
-
line:
|
|
23680
|
+
line: 52,
|
|
23661
23681
|
column: 69
|
|
23662
23682
|
}
|
|
23663
23683
|
},
|
|
23664
|
-
"
|
|
23684
|
+
"20": {
|
|
23665
23685
|
start: {
|
|
23666
|
-
line:
|
|
23686
|
+
line: 54,
|
|
23667
23687
|
column: 4
|
|
23668
23688
|
},
|
|
23669
23689
|
end: {
|
|
23670
|
-
line:
|
|
23690
|
+
line: 54,
|
|
23671
23691
|
column: 58
|
|
23672
23692
|
}
|
|
23673
23693
|
}
|
|
@@ -23677,143 +23697,143 @@ function cov_2fxze78p7l() {
|
|
|
23677
23697
|
name: "(anonymous_0)",
|
|
23678
23698
|
decl: {
|
|
23679
23699
|
start: {
|
|
23680
|
-
line:
|
|
23700
|
+
line: 10,
|
|
23681
23701
|
column: 33
|
|
23682
23702
|
},
|
|
23683
23703
|
end: {
|
|
23684
|
-
line:
|
|
23704
|
+
line: 10,
|
|
23685
23705
|
column: 34
|
|
23686
23706
|
}
|
|
23687
23707
|
},
|
|
23688
23708
|
loc: {
|
|
23689
23709
|
start: {
|
|
23690
|
-
line:
|
|
23710
|
+
line: 10,
|
|
23691
23711
|
column: 44
|
|
23692
23712
|
},
|
|
23693
23713
|
end: {
|
|
23694
|
-
line:
|
|
23714
|
+
line: 20,
|
|
23695
23715
|
column: 1
|
|
23696
23716
|
}
|
|
23697
23717
|
},
|
|
23698
|
-
line:
|
|
23718
|
+
line: 10
|
|
23699
23719
|
},
|
|
23700
23720
|
"1": {
|
|
23701
23721
|
name: "(anonymous_1)",
|
|
23702
23722
|
decl: {
|
|
23703
23723
|
start: {
|
|
23704
|
-
line:
|
|
23724
|
+
line: 22,
|
|
23705
23725
|
column: 29
|
|
23706
23726
|
},
|
|
23707
23727
|
end: {
|
|
23708
|
-
line:
|
|
23728
|
+
line: 22,
|
|
23709
23729
|
column: 30
|
|
23710
23730
|
}
|
|
23711
23731
|
},
|
|
23712
23732
|
loc: {
|
|
23713
23733
|
start: {
|
|
23714
|
-
line:
|
|
23734
|
+
line: 23,
|
|
23715
23735
|
column: 2
|
|
23716
23736
|
},
|
|
23717
23737
|
end: {
|
|
23718
|
-
line:
|
|
23738
|
+
line: 37,
|
|
23719
23739
|
column: 4
|
|
23720
23740
|
}
|
|
23721
23741
|
},
|
|
23722
|
-
line:
|
|
23742
|
+
line: 23
|
|
23723
23743
|
},
|
|
23724
23744
|
"2": {
|
|
23725
23745
|
name: "(anonymous_2)",
|
|
23726
23746
|
decl: {
|
|
23727
23747
|
start: {
|
|
23728
|
-
line:
|
|
23748
|
+
line: 23,
|
|
23729
23749
|
column: 36
|
|
23730
23750
|
},
|
|
23731
23751
|
end: {
|
|
23732
|
-
line:
|
|
23752
|
+
line: 23,
|
|
23733
23753
|
column: 37
|
|
23734
23754
|
}
|
|
23735
23755
|
},
|
|
23736
23756
|
loc: {
|
|
23737
23757
|
start: {
|
|
23738
|
-
line:
|
|
23758
|
+
line: 23,
|
|
23739
23759
|
column: 49
|
|
23740
23760
|
},
|
|
23741
23761
|
end: {
|
|
23742
|
-
line:
|
|
23762
|
+
line: 37,
|
|
23743
23763
|
column: 3
|
|
23744
23764
|
}
|
|
23745
23765
|
},
|
|
23746
|
-
line:
|
|
23766
|
+
line: 23
|
|
23747
23767
|
},
|
|
23748
23768
|
"3": {
|
|
23749
23769
|
name: "(anonymous_3)",
|
|
23750
23770
|
decl: {
|
|
23751
23771
|
start: {
|
|
23752
|
-
line:
|
|
23772
|
+
line: 39,
|
|
23753
23773
|
column: 35
|
|
23754
23774
|
},
|
|
23755
23775
|
end: {
|
|
23756
|
-
line:
|
|
23776
|
+
line: 39,
|
|
23757
23777
|
column: 36
|
|
23758
23778
|
}
|
|
23759
23779
|
},
|
|
23760
23780
|
loc: {
|
|
23761
23781
|
start: {
|
|
23762
|
-
line:
|
|
23782
|
+
line: 40,
|
|
23763
23783
|
column: 2
|
|
23764
23784
|
},
|
|
23765
23785
|
end: {
|
|
23766
|
-
line:
|
|
23786
|
+
line: 55,
|
|
23767
23787
|
column: 4
|
|
23768
23788
|
}
|
|
23769
23789
|
},
|
|
23770
|
-
line:
|
|
23790
|
+
line: 40
|
|
23771
23791
|
},
|
|
23772
23792
|
"4": {
|
|
23773
23793
|
name: "(anonymous_4)",
|
|
23774
23794
|
decl: {
|
|
23775
23795
|
start: {
|
|
23776
|
-
line:
|
|
23796
|
+
line: 40,
|
|
23777
23797
|
column: 50
|
|
23778
23798
|
},
|
|
23779
23799
|
end: {
|
|
23780
|
-
line:
|
|
23800
|
+
line: 40,
|
|
23781
23801
|
column: 51
|
|
23782
23802
|
}
|
|
23783
23803
|
},
|
|
23784
23804
|
loc: {
|
|
23785
23805
|
start: {
|
|
23786
|
-
line:
|
|
23806
|
+
line: 40,
|
|
23787
23807
|
column: 78
|
|
23788
23808
|
},
|
|
23789
23809
|
end: {
|
|
23790
|
-
line:
|
|
23810
|
+
line: 55,
|
|
23791
23811
|
column: 3
|
|
23792
23812
|
}
|
|
23793
23813
|
},
|
|
23794
|
-
line:
|
|
23814
|
+
line: 40
|
|
23795
23815
|
}
|
|
23796
23816
|
},
|
|
23797
23817
|
branchMap: {
|
|
23798
23818
|
"0": {
|
|
23799
23819
|
loc: {
|
|
23800
23820
|
start: {
|
|
23801
|
-
line:
|
|
23821
|
+
line: 11,
|
|
23802
23822
|
column: 2
|
|
23803
23823
|
},
|
|
23804
23824
|
end: {
|
|
23805
|
-
line:
|
|
23825
|
+
line: 17,
|
|
23806
23826
|
column: 3
|
|
23807
23827
|
}
|
|
23808
23828
|
},
|
|
23809
23829
|
type: "if",
|
|
23810
23830
|
locations: [{
|
|
23811
23831
|
start: {
|
|
23812
|
-
line:
|
|
23832
|
+
line: 11,
|
|
23813
23833
|
column: 2
|
|
23814
23834
|
},
|
|
23815
23835
|
end: {
|
|
23816
|
-
line:
|
|
23836
|
+
line: 17,
|
|
23817
23837
|
column: 3
|
|
23818
23838
|
}
|
|
23819
23839
|
}, {
|
|
@@ -23826,60 +23846,60 @@ function cov_2fxze78p7l() {
|
|
|
23826
23846
|
column: undefined
|
|
23827
23847
|
}
|
|
23828
23848
|
}],
|
|
23829
|
-
line:
|
|
23849
|
+
line: 11
|
|
23830
23850
|
},
|
|
23831
23851
|
"1": {
|
|
23832
23852
|
loc: {
|
|
23833
23853
|
start: {
|
|
23834
|
-
line:
|
|
23854
|
+
line: 12,
|
|
23835
23855
|
column: 21
|
|
23836
23856
|
},
|
|
23837
23857
|
end: {
|
|
23838
|
-
line:
|
|
23858
|
+
line: 14,
|
|
23839
23859
|
column: 12
|
|
23840
23860
|
}
|
|
23841
23861
|
},
|
|
23842
23862
|
type: "cond-expr",
|
|
23843
23863
|
locations: [{
|
|
23844
23864
|
start: {
|
|
23845
|
-
line:
|
|
23865
|
+
line: 13,
|
|
23846
23866
|
column: 8
|
|
23847
23867
|
},
|
|
23848
23868
|
end: {
|
|
23849
|
-
line:
|
|
23869
|
+
line: 13,
|
|
23850
23870
|
column: 54
|
|
23851
23871
|
}
|
|
23852
23872
|
}, {
|
|
23853
23873
|
start: {
|
|
23854
|
-
line:
|
|
23874
|
+
line: 14,
|
|
23855
23875
|
column: 8
|
|
23856
23876
|
},
|
|
23857
23877
|
end: {
|
|
23858
|
-
line:
|
|
23878
|
+
line: 14,
|
|
23859
23879
|
column: 12
|
|
23860
23880
|
}
|
|
23861
23881
|
}],
|
|
23862
|
-
line:
|
|
23882
|
+
line: 12
|
|
23863
23883
|
},
|
|
23864
23884
|
"2": {
|
|
23865
23885
|
loc: {
|
|
23866
23886
|
start: {
|
|
23867
|
-
line:
|
|
23887
|
+
line: 28,
|
|
23868
23888
|
column: 4
|
|
23869
23889
|
},
|
|
23870
23890
|
end: {
|
|
23871
|
-
line:
|
|
23891
|
+
line: 30,
|
|
23872
23892
|
column: 5
|
|
23873
23893
|
}
|
|
23874
23894
|
},
|
|
23875
23895
|
type: "if",
|
|
23876
23896
|
locations: [{
|
|
23877
23897
|
start: {
|
|
23878
|
-
line:
|
|
23898
|
+
line: 28,
|
|
23879
23899
|
column: 4
|
|
23880
23900
|
},
|
|
23881
23901
|
end: {
|
|
23882
|
-
line:
|
|
23902
|
+
line: 30,
|
|
23883
23903
|
column: 5
|
|
23884
23904
|
}
|
|
23885
23905
|
}, {
|
|
@@ -23892,106 +23912,139 @@ function cov_2fxze78p7l() {
|
|
|
23892
23912
|
column: undefined
|
|
23893
23913
|
}
|
|
23894
23914
|
}],
|
|
23895
|
-
line:
|
|
23915
|
+
line: 28
|
|
23896
23916
|
},
|
|
23897
23917
|
"3": {
|
|
23898
23918
|
loc: {
|
|
23899
23919
|
start: {
|
|
23900
|
-
line:
|
|
23920
|
+
line: 42,
|
|
23921
|
+
column: 4
|
|
23922
|
+
},
|
|
23923
|
+
end: {
|
|
23924
|
+
line: 50,
|
|
23925
|
+
column: 5
|
|
23926
|
+
}
|
|
23927
|
+
},
|
|
23928
|
+
type: "if",
|
|
23929
|
+
locations: [{
|
|
23930
|
+
start: {
|
|
23931
|
+
line: 42,
|
|
23932
|
+
column: 4
|
|
23933
|
+
},
|
|
23934
|
+
end: {
|
|
23935
|
+
line: 50,
|
|
23936
|
+
column: 5
|
|
23937
|
+
}
|
|
23938
|
+
}, {
|
|
23939
|
+
start: {
|
|
23940
|
+
line: undefined,
|
|
23941
|
+
column: undefined
|
|
23942
|
+
},
|
|
23943
|
+
end: {
|
|
23944
|
+
line: undefined,
|
|
23945
|
+
column: undefined
|
|
23946
|
+
}
|
|
23947
|
+
}],
|
|
23948
|
+
line: 42
|
|
23949
|
+
},
|
|
23950
|
+
"4": {
|
|
23951
|
+
loc: {
|
|
23952
|
+
start: {
|
|
23953
|
+
line: 46,
|
|
23901
23954
|
column: 8
|
|
23902
23955
|
},
|
|
23903
23956
|
end: {
|
|
23904
|
-
line:
|
|
23957
|
+
line: 46,
|
|
23905
23958
|
column: 33
|
|
23906
23959
|
}
|
|
23907
23960
|
},
|
|
23908
23961
|
type: "binary-expr",
|
|
23909
23962
|
locations: [{
|
|
23910
23963
|
start: {
|
|
23911
|
-
line:
|
|
23964
|
+
line: 46,
|
|
23912
23965
|
column: 8
|
|
23913
23966
|
},
|
|
23914
23967
|
end: {
|
|
23915
|
-
line:
|
|
23968
|
+
line: 46,
|
|
23916
23969
|
column: 27
|
|
23917
23970
|
}
|
|
23918
23971
|
}, {
|
|
23919
23972
|
start: {
|
|
23920
|
-
line:
|
|
23973
|
+
line: 46,
|
|
23921
23974
|
column: 31
|
|
23922
23975
|
},
|
|
23923
23976
|
end: {
|
|
23924
|
-
line:
|
|
23977
|
+
line: 46,
|
|
23925
23978
|
column: 33
|
|
23926
23979
|
}
|
|
23927
23980
|
}],
|
|
23928
|
-
line:
|
|
23981
|
+
line: 46
|
|
23929
23982
|
},
|
|
23930
|
-
"
|
|
23983
|
+
"5": {
|
|
23931
23984
|
loc: {
|
|
23932
23985
|
start: {
|
|
23933
|
-
line:
|
|
23986
|
+
line: 49,
|
|
23934
23987
|
column: 13
|
|
23935
23988
|
},
|
|
23936
23989
|
end: {
|
|
23937
|
-
line:
|
|
23990
|
+
line: 49,
|
|
23938
23991
|
column: 59
|
|
23939
23992
|
}
|
|
23940
23993
|
},
|
|
23941
23994
|
type: "cond-expr",
|
|
23942
23995
|
locations: [{
|
|
23943
23996
|
start: {
|
|
23944
|
-
line:
|
|
23997
|
+
line: 49,
|
|
23945
23998
|
column: 31
|
|
23946
23999
|
},
|
|
23947
24000
|
end: {
|
|
23948
|
-
line:
|
|
24001
|
+
line: 49,
|
|
23949
24002
|
column: 45
|
|
23950
24003
|
}
|
|
23951
24004
|
}, {
|
|
23952
24005
|
start: {
|
|
23953
|
-
line:
|
|
24006
|
+
line: 49,
|
|
23954
24007
|
column: 48
|
|
23955
24008
|
},
|
|
23956
24009
|
end: {
|
|
23957
|
-
line:
|
|
24010
|
+
line: 49,
|
|
23958
24011
|
column: 59
|
|
23959
24012
|
}
|
|
23960
24013
|
}],
|
|
23961
|
-
line:
|
|
24014
|
+
line: 49
|
|
23962
24015
|
},
|
|
23963
|
-
"
|
|
24016
|
+
"6": {
|
|
23964
24017
|
loc: {
|
|
23965
24018
|
start: {
|
|
23966
|
-
line:
|
|
24019
|
+
line: 54,
|
|
23967
24020
|
column: 11
|
|
23968
24021
|
},
|
|
23969
24022
|
end: {
|
|
23970
|
-
line:
|
|
24023
|
+
line: 54,
|
|
23971
24024
|
column: 57
|
|
23972
24025
|
}
|
|
23973
24026
|
},
|
|
23974
24027
|
type: "cond-expr",
|
|
23975
24028
|
locations: [{
|
|
23976
24029
|
start: {
|
|
23977
|
-
line:
|
|
24030
|
+
line: 54,
|
|
23978
24031
|
column: 29
|
|
23979
24032
|
},
|
|
23980
24033
|
end: {
|
|
23981
|
-
line:
|
|
24034
|
+
line: 54,
|
|
23982
24035
|
column: 43
|
|
23983
24036
|
}
|
|
23984
24037
|
}, {
|
|
23985
24038
|
start: {
|
|
23986
|
-
line:
|
|
24039
|
+
line: 54,
|
|
23987
24040
|
column: 46
|
|
23988
24041
|
},
|
|
23989
24042
|
end: {
|
|
23990
|
-
line:
|
|
24043
|
+
line: 54,
|
|
23991
24044
|
column: 57
|
|
23992
24045
|
}
|
|
23993
24046
|
}],
|
|
23994
|
-
line:
|
|
24047
|
+
line: 54
|
|
23995
24048
|
}
|
|
23996
24049
|
},
|
|
23997
24050
|
s: {
|
|
@@ -24013,7 +24066,9 @@ function cov_2fxze78p7l() {
|
|
|
24013
24066
|
"15": 0,
|
|
24014
24067
|
"16": 0,
|
|
24015
24068
|
"17": 0,
|
|
24016
|
-
"18": 0
|
|
24069
|
+
"18": 0,
|
|
24070
|
+
"19": 0,
|
|
24071
|
+
"20": 0
|
|
24017
24072
|
},
|
|
24018
24073
|
f: {
|
|
24019
24074
|
"0": 0,
|
|
@@ -24028,10 +24083,11 @@ function cov_2fxze78p7l() {
|
|
|
24028
24083
|
"2": [0, 0],
|
|
24029
24084
|
"3": [0, 0],
|
|
24030
24085
|
"4": [0, 0],
|
|
24031
|
-
"5": [0, 0]
|
|
24086
|
+
"5": [0, 0],
|
|
24087
|
+
"6": [0, 0]
|
|
24032
24088
|
},
|
|
24033
24089
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
24034
|
-
hash: "
|
|
24090
|
+
hash: "441fa5e97cbfafb994f82f3774eb62e2601621d6"
|
|
24035
24091
|
};
|
|
24036
24092
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
24037
24093
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -24069,37 +24125,45 @@ var highlightCode = function highlightCode(content) {
|
|
|
24069
24125
|
return content.replace(CODE_BLOCK_REGEX, function (_, code) {
|
|
24070
24126
|
cov_2fxze78p7l().f[2]++;
|
|
24071
24127
|
var highlightedAST = (cov_2fxze78p7l().s[7]++, lowlight.highlightAuto(code.replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&")));
|
|
24072
|
-
|
|
24073
|
-
|
|
24128
|
+
cov_2fxze78p7l().s[8]++;
|
|
24129
|
+
if (isEmpty$1(highlightedAST.children)) {
|
|
24130
|
+
cov_2fxze78p7l().b[2][0]++;
|
|
24131
|
+
cov_2fxze78p7l().s[9]++;
|
|
24132
|
+
highlightedAST = lowlight.highlight("javascript", code);
|
|
24133
|
+
} else {
|
|
24134
|
+
cov_2fxze78p7l().b[2][1]++;
|
|
24135
|
+
}
|
|
24136
|
+
var highlightedNode = (cov_2fxze78p7l().s[10]++, highlightedAST.children.map(buildReactElementFromAST));
|
|
24137
|
+
cov_2fxze78p7l().s[11]++;
|
|
24074
24138
|
return "<pre><code>".concat(renderToString(highlightedNode), "</code></pre>");
|
|
24075
24139
|
});
|
|
24076
24140
|
};
|
|
24077
|
-
cov_2fxze78p7l().s[
|
|
24141
|
+
cov_2fxze78p7l().s[12]++;
|
|
24078
24142
|
var substituteVariables = function substituteVariables(highlightedContent, variables) {
|
|
24079
24143
|
cov_2fxze78p7l().f[3]++;
|
|
24080
|
-
cov_2fxze78p7l().s[
|
|
24144
|
+
cov_2fxze78p7l().s[13]++;
|
|
24081
24145
|
return highlightedContent.replace(VARIABLE_SPAN_REGEX, function (matchedSpan, dataLabel) {
|
|
24082
24146
|
cov_2fxze78p7l().f[4]++;
|
|
24083
|
-
var dataLabelSplitted = (cov_2fxze78p7l().s[
|
|
24084
|
-
cov_2fxze78p7l().s[
|
|
24147
|
+
var dataLabelSplitted = (cov_2fxze78p7l().s[14]++, dataLabel.split("."));
|
|
24148
|
+
cov_2fxze78p7l().s[15]++;
|
|
24085
24149
|
if (dataLabelSplitted.length > 1) {
|
|
24086
|
-
cov_2fxze78p7l().b[
|
|
24087
|
-
var category = (cov_2fxze78p7l().s[
|
|
24150
|
+
cov_2fxze78p7l().b[3][0]++;
|
|
24151
|
+
var category = (cov_2fxze78p7l().s[16]++, findBy({
|
|
24088
24152
|
category: dataLabelSplitted[0]
|
|
24089
24153
|
}, variables));
|
|
24090
|
-
var _variable = (cov_2fxze78p7l().s[
|
|
24154
|
+
var _variable = (cov_2fxze78p7l().s[17]++, findBy({
|
|
24091
24155
|
key: dataLabelSplitted[1]
|
|
24092
|
-
}, (cov_2fxze78p7l().b[
|
|
24093
|
-
cov_2fxze78p7l().s[
|
|
24094
|
-
return _variable !== null && _variable !== void 0 && _variable.value ? (cov_2fxze78p7l().b[
|
|
24156
|
+
}, (cov_2fxze78p7l().b[4][0]++, category === null || category === void 0 ? void 0 : category.variables) || (cov_2fxze78p7l().b[4][1]++, [])));
|
|
24157
|
+
cov_2fxze78p7l().s[18]++;
|
|
24158
|
+
return _variable !== null && _variable !== void 0 && _variable.value ? (cov_2fxze78p7l().b[5][0]++, _variable.value) : (cov_2fxze78p7l().b[5][1]++, matchedSpan);
|
|
24095
24159
|
} else {
|
|
24096
|
-
cov_2fxze78p7l().b[
|
|
24160
|
+
cov_2fxze78p7l().b[3][1]++;
|
|
24097
24161
|
}
|
|
24098
|
-
var variable = (cov_2fxze78p7l().s[
|
|
24162
|
+
var variable = (cov_2fxze78p7l().s[19]++, findBy({
|
|
24099
24163
|
key: dataLabelSplitted[0]
|
|
24100
24164
|
}, variables));
|
|
24101
|
-
cov_2fxze78p7l().s[
|
|
24102
|
-
return variable !== null && variable !== void 0 && variable.value ? (cov_2fxze78p7l().b[
|
|
24165
|
+
cov_2fxze78p7l().s[20]++;
|
|
24166
|
+
return variable !== null && variable !== void 0 && variable.value ? (cov_2fxze78p7l().b[6][0]++, variable.value) : (cov_2fxze78p7l().b[6][1]++, matchedSpan);
|
|
24103
24167
|
});
|
|
24104
24168
|
};
|
|
24105
24169
|
|
|
@@ -133496,3 +133560,4 @@ initializeI18n({
|
|
|
133496
133560
|
});
|
|
133497
133561
|
|
|
133498
133562
|
export { Attachments$1 as Attachments, Editor$1 as Editor, EditorContent, FormikEditor$1 as FormikEditor, Menu, isEditorEmpty, isEditorOverlaysActive, substituteVariables };
|
|
133563
|
+
//# sourceMappingURL=index.js.map
|