@bigbinary/neeto-editor 1.26.20 → 1.26.22
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 +271 -139
- package/index.cjs.js.map +1 -1
- package/index.js +271 -139
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -138823,7 +138823,7 @@ var FontSizeOption = function FontSizeOption(_ref2) {
|
|
|
138823
138823
|
|
|
138824
138824
|
function cov_7xzegtncw() {
|
|
138825
138825
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Fixed/LinkOption.jsx";
|
|
138826
|
-
var hash = "
|
|
138826
|
+
var hash = "2fd657c6e8247f599ed428596366587234605b90";
|
|
138827
138827
|
var global = new Function("return this")();
|
|
138828
138828
|
var gcv = "__coverage__";
|
|
138829
138829
|
var coverageData = {
|
|
@@ -138845,7 +138845,7 @@ function cov_7xzegtncw() {
|
|
|
138845
138845
|
column: 19
|
|
138846
138846
|
},
|
|
138847
138847
|
end: {
|
|
138848
|
-
line:
|
|
138848
|
+
line: 110,
|
|
138849
138849
|
column: 1
|
|
138850
138850
|
}
|
|
138851
138851
|
},
|
|
@@ -139035,7 +139035,7 @@ function cov_7xzegtncw() {
|
|
|
139035
139035
|
column: 21
|
|
139036
139036
|
},
|
|
139037
139037
|
end: {
|
|
139038
|
-
line:
|
|
139038
|
+
line: 51,
|
|
139039
139039
|
column: 3
|
|
139040
139040
|
}
|
|
139041
139041
|
},
|
|
@@ -139045,7 +139045,7 @@ function cov_7xzegtncw() {
|
|
|
139045
139045
|
column: 4
|
|
139046
139046
|
},
|
|
139047
139047
|
end: {
|
|
139048
|
-
line:
|
|
139048
|
+
line: 50,
|
|
139049
139049
|
column: 5
|
|
139050
139050
|
}
|
|
139051
139051
|
},
|
|
@@ -139055,147 +139055,147 @@ function cov_7xzegtncw() {
|
|
|
139055
139055
|
column: 6
|
|
139056
139056
|
},
|
|
139057
139057
|
end: {
|
|
139058
|
-
line:
|
|
139059
|
-
column:
|
|
139058
|
+
line: 46,
|
|
139059
|
+
column: 15
|
|
139060
139060
|
}
|
|
139061
139061
|
},
|
|
139062
139062
|
"23": {
|
|
139063
139063
|
start: {
|
|
139064
|
-
line:
|
|
139064
|
+
line: 47,
|
|
139065
139065
|
column: 6
|
|
139066
139066
|
},
|
|
139067
139067
|
end: {
|
|
139068
|
-
line:
|
|
139068
|
+
line: 47,
|
|
139069
139069
|
column: 20
|
|
139070
139070
|
}
|
|
139071
139071
|
},
|
|
139072
139072
|
"24": {
|
|
139073
139073
|
start: {
|
|
139074
|
-
line:
|
|
139074
|
+
line: 49,
|
|
139075
139075
|
column: 6
|
|
139076
139076
|
},
|
|
139077
139077
|
end: {
|
|
139078
|
-
line:
|
|
139078
|
+
line: 49,
|
|
139079
139079
|
column: 38
|
|
139080
139080
|
}
|
|
139081
139081
|
},
|
|
139082
139082
|
"25": {
|
|
139083
139083
|
start: {
|
|
139084
|
-
line:
|
|
139084
|
+
line: 53,
|
|
139085
139085
|
column: 23
|
|
139086
139086
|
},
|
|
139087
139087
|
end: {
|
|
139088
|
-
line:
|
|
139088
|
+
line: 57,
|
|
139089
139089
|
column: 3
|
|
139090
139090
|
}
|
|
139091
139091
|
},
|
|
139092
139092
|
"26": {
|
|
139093
139093
|
start: {
|
|
139094
|
-
line:
|
|
139094
|
+
line: 54,
|
|
139095
139095
|
column: 4
|
|
139096
139096
|
},
|
|
139097
139097
|
end: {
|
|
139098
|
-
line:
|
|
139099
|
-
column:
|
|
139098
|
+
line: 54,
|
|
139099
|
+
column: 69
|
|
139100
139100
|
}
|
|
139101
139101
|
},
|
|
139102
139102
|
"27": {
|
|
139103
139103
|
start: {
|
|
139104
|
-
line:
|
|
139104
|
+
line: 55,
|
|
139105
139105
|
column: 4
|
|
139106
139106
|
},
|
|
139107
139107
|
end: {
|
|
139108
|
-
line:
|
|
139108
|
+
line: 55,
|
|
139109
139109
|
column: 21
|
|
139110
139110
|
}
|
|
139111
139111
|
},
|
|
139112
139112
|
"28": {
|
|
139113
139113
|
start: {
|
|
139114
|
-
line:
|
|
139114
|
+
line: 56,
|
|
139115
139115
|
column: 4
|
|
139116
139116
|
},
|
|
139117
139117
|
end: {
|
|
139118
|
-
line:
|
|
139118
|
+
line: 56,
|
|
139119
139119
|
column: 18
|
|
139120
139120
|
}
|
|
139121
139121
|
},
|
|
139122
139122
|
"29": {
|
|
139123
139123
|
start: {
|
|
139124
|
-
line:
|
|
139124
|
+
line: 59,
|
|
139125
139125
|
column: 2
|
|
139126
139126
|
},
|
|
139127
139127
|
end: {
|
|
139128
|
-
line:
|
|
139128
|
+
line: 66,
|
|
139129
139129
|
column: 15
|
|
139130
139130
|
}
|
|
139131
139131
|
},
|
|
139132
139132
|
"30": {
|
|
139133
139133
|
start: {
|
|
139134
|
-
line:
|
|
139134
|
+
line: 60,
|
|
139135
139135
|
column: 4
|
|
139136
139136
|
},
|
|
139137
139137
|
end: {
|
|
139138
|
-
line:
|
|
139138
|
+
line: 60,
|
|
139139
139139
|
column: 52
|
|
139140
139140
|
}
|
|
139141
139141
|
},
|
|
139142
139142
|
"31": {
|
|
139143
139143
|
start: {
|
|
139144
|
-
line:
|
|
139144
|
+
line: 62,
|
|
139145
139145
|
column: 4
|
|
139146
139146
|
},
|
|
139147
139147
|
end: {
|
|
139148
|
-
line:
|
|
139148
|
+
line: 65,
|
|
139149
139149
|
column: 5
|
|
139150
139150
|
}
|
|
139151
139151
|
},
|
|
139152
139152
|
"32": {
|
|
139153
139153
|
start: {
|
|
139154
|
-
line:
|
|
139154
|
+
line: 63,
|
|
139155
139155
|
column: 6
|
|
139156
139156
|
},
|
|
139157
139157
|
end: {
|
|
139158
|
-
line:
|
|
139158
|
+
line: 63,
|
|
139159
139159
|
column: 47
|
|
139160
139160
|
}
|
|
139161
139161
|
},
|
|
139162
139162
|
"33": {
|
|
139163
139163
|
start: {
|
|
139164
|
-
line:
|
|
139164
|
+
line: 64,
|
|
139165
139165
|
column: 6
|
|
139166
139166
|
},
|
|
139167
139167
|
end: {
|
|
139168
|
-
line:
|
|
139168
|
+
line: 64,
|
|
139169
139169
|
column: 45
|
|
139170
139170
|
}
|
|
139171
139171
|
},
|
|
139172
139172
|
"34": {
|
|
139173
139173
|
start: {
|
|
139174
|
-
line:
|
|
139174
|
+
line: 68,
|
|
139175
139175
|
column: 2
|
|
139176
139176
|
},
|
|
139177
139177
|
end: {
|
|
139178
|
-
line:
|
|
139178
|
+
line: 109,
|
|
139179
139179
|
column: 4
|
|
139180
139180
|
}
|
|
139181
139181
|
},
|
|
139182
139182
|
"35": {
|
|
139183
139183
|
start: {
|
|
139184
|
-
line:
|
|
139184
|
+
line: 91,
|
|
139185
139185
|
column: 47
|
|
139186
139186
|
},
|
|
139187
139187
|
end: {
|
|
139188
|
-
line:
|
|
139188
|
+
line: 91,
|
|
139189
139189
|
column: 66
|
|
139190
139190
|
}
|
|
139191
139191
|
},
|
|
139192
139192
|
"36": {
|
|
139193
139193
|
start: {
|
|
139194
|
-
line:
|
|
139194
|
+
line: 92,
|
|
139195
139195
|
column: 25
|
|
139196
139196
|
},
|
|
139197
139197
|
end: {
|
|
139198
|
-
line:
|
|
139198
|
+
line: 92,
|
|
139199
139199
|
column: 37
|
|
139200
139200
|
}
|
|
139201
139201
|
}
|
|
@@ -139219,7 +139219,7 @@ function cov_7xzegtncw() {
|
|
|
139219
139219
|
column: 51
|
|
139220
139220
|
},
|
|
139221
139221
|
end: {
|
|
139222
|
-
line:
|
|
139222
|
+
line: 110,
|
|
139223
139223
|
column: 1
|
|
139224
139224
|
}
|
|
139225
139225
|
},
|
|
@@ -139339,7 +139339,7 @@ function cov_7xzegtncw() {
|
|
|
139339
139339
|
column: 27
|
|
139340
139340
|
},
|
|
139341
139341
|
end: {
|
|
139342
|
-
line:
|
|
139342
|
+
line: 51,
|
|
139343
139343
|
column: 3
|
|
139344
139344
|
}
|
|
139345
139345
|
},
|
|
@@ -139349,97 +139349,97 @@ function cov_7xzegtncw() {
|
|
|
139349
139349
|
name: "(anonymous_6)",
|
|
139350
139350
|
decl: {
|
|
139351
139351
|
start: {
|
|
139352
|
-
line:
|
|
139352
|
+
line: 53,
|
|
139353
139353
|
column: 23
|
|
139354
139354
|
},
|
|
139355
139355
|
end: {
|
|
139356
|
-
line:
|
|
139356
|
+
line: 53,
|
|
139357
139357
|
column: 24
|
|
139358
139358
|
}
|
|
139359
139359
|
},
|
|
139360
139360
|
loc: {
|
|
139361
139361
|
start: {
|
|
139362
|
-
line:
|
|
139362
|
+
line: 53,
|
|
139363
139363
|
column: 29
|
|
139364
139364
|
},
|
|
139365
139365
|
end: {
|
|
139366
|
-
line:
|
|
139366
|
+
line: 57,
|
|
139367
139367
|
column: 3
|
|
139368
139368
|
}
|
|
139369
139369
|
},
|
|
139370
|
-
line:
|
|
139370
|
+
line: 53
|
|
139371
139371
|
},
|
|
139372
139372
|
"7": {
|
|
139373
139373
|
name: "(anonymous_7)",
|
|
139374
139374
|
decl: {
|
|
139375
139375
|
start: {
|
|
139376
|
-
line:
|
|
139376
|
+
line: 59,
|
|
139377
139377
|
column: 12
|
|
139378
139378
|
},
|
|
139379
139379
|
end: {
|
|
139380
|
-
line:
|
|
139380
|
+
line: 59,
|
|
139381
139381
|
column: 13
|
|
139382
139382
|
}
|
|
139383
139383
|
},
|
|
139384
139384
|
loc: {
|
|
139385
139385
|
start: {
|
|
139386
|
-
line:
|
|
139386
|
+
line: 59,
|
|
139387
139387
|
column: 18
|
|
139388
139388
|
},
|
|
139389
139389
|
end: {
|
|
139390
|
-
line:
|
|
139390
|
+
line: 66,
|
|
139391
139391
|
column: 3
|
|
139392
139392
|
}
|
|
139393
139393
|
},
|
|
139394
|
-
line:
|
|
139394
|
+
line: 59
|
|
139395
139395
|
},
|
|
139396
139396
|
"8": {
|
|
139397
139397
|
name: "(anonymous_8)",
|
|
139398
139398
|
decl: {
|
|
139399
139399
|
start: {
|
|
139400
|
-
line:
|
|
139400
|
+
line: 91,
|
|
139401
139401
|
column: 20
|
|
139402
139402
|
},
|
|
139403
139403
|
end: {
|
|
139404
|
-
line:
|
|
139404
|
+
line: 91,
|
|
139405
139405
|
column: 21
|
|
139406
139406
|
}
|
|
139407
139407
|
},
|
|
139408
139408
|
loc: {
|
|
139409
139409
|
start: {
|
|
139410
|
-
line:
|
|
139410
|
+
line: 91,
|
|
139411
139411
|
column: 47
|
|
139412
139412
|
},
|
|
139413
139413
|
end: {
|
|
139414
|
-
line:
|
|
139414
|
+
line: 91,
|
|
139415
139415
|
column: 66
|
|
139416
139416
|
}
|
|
139417
139417
|
},
|
|
139418
|
-
line:
|
|
139418
|
+
line: 91
|
|
139419
139419
|
},
|
|
139420
139420
|
"9": {
|
|
139421
139421
|
name: "(anonymous_9)",
|
|
139422
139422
|
decl: {
|
|
139423
139423
|
start: {
|
|
139424
|
-
line:
|
|
139424
|
+
line: 92,
|
|
139425
139425
|
column: 19
|
|
139426
139426
|
},
|
|
139427
139427
|
end: {
|
|
139428
|
-
line:
|
|
139428
|
+
line: 92,
|
|
139429
139429
|
column: 20
|
|
139430
139430
|
}
|
|
139431
139431
|
},
|
|
139432
139432
|
loc: {
|
|
139433
139433
|
start: {
|
|
139434
|
-
line:
|
|
139434
|
+
line: 92,
|
|
139435
139435
|
column: 25
|
|
139436
139436
|
},
|
|
139437
139437
|
end: {
|
|
139438
|
-
line:
|
|
139438
|
+
line: 92,
|
|
139439
139439
|
column: 37
|
|
139440
139440
|
}
|
|
139441
139441
|
},
|
|
139442
|
-
line:
|
|
139442
|
+
line: 92
|
|
139443
139443
|
}
|
|
139444
139444
|
},
|
|
139445
139445
|
branchMap: {
|
|
@@ -139516,7 +139516,7 @@ function cov_7xzegtncw() {
|
|
|
139516
139516
|
column: 4
|
|
139517
139517
|
},
|
|
139518
139518
|
end: {
|
|
139519
|
-
line:
|
|
139519
|
+
line: 50,
|
|
139520
139520
|
column: 5
|
|
139521
139521
|
}
|
|
139522
139522
|
},
|
|
@@ -139527,16 +139527,16 @@ function cov_7xzegtncw() {
|
|
|
139527
139527
|
column: 4
|
|
139528
139528
|
},
|
|
139529
139529
|
end: {
|
|
139530
|
-
line:
|
|
139530
|
+
line: 50,
|
|
139531
139531
|
column: 5
|
|
139532
139532
|
}
|
|
139533
139533
|
}, {
|
|
139534
139534
|
start: {
|
|
139535
|
-
line:
|
|
139535
|
+
line: 48,
|
|
139536
139536
|
column: 11
|
|
139537
139537
|
},
|
|
139538
139538
|
end: {
|
|
139539
|
-
line:
|
|
139539
|
+
line: 50,
|
|
139540
139540
|
column: 5
|
|
139541
139541
|
}
|
|
139542
139542
|
}],
|
|
@@ -139545,22 +139545,22 @@ function cov_7xzegtncw() {
|
|
|
139545
139545
|
"3": {
|
|
139546
139546
|
loc: {
|
|
139547
139547
|
start: {
|
|
139548
|
-
line:
|
|
139548
|
+
line: 62,
|
|
139549
139549
|
column: 4
|
|
139550
139550
|
},
|
|
139551
139551
|
end: {
|
|
139552
|
-
line:
|
|
139552
|
+
line: 65,
|
|
139553
139553
|
column: 5
|
|
139554
139554
|
}
|
|
139555
139555
|
},
|
|
139556
139556
|
type: "if",
|
|
139557
139557
|
locations: [{
|
|
139558
139558
|
start: {
|
|
139559
|
-
line:
|
|
139559
|
+
line: 62,
|
|
139560
139560
|
column: 4
|
|
139561
139561
|
},
|
|
139562
139562
|
end: {
|
|
139563
|
-
line:
|
|
139563
|
+
line: 65,
|
|
139564
139564
|
column: 5
|
|
139565
139565
|
}
|
|
139566
139566
|
}, {
|
|
@@ -139573,73 +139573,73 @@ function cov_7xzegtncw() {
|
|
|
139573
139573
|
column: undefined
|
|
139574
139574
|
}
|
|
139575
139575
|
}],
|
|
139576
|
-
line:
|
|
139576
|
+
line: 62
|
|
139577
139577
|
},
|
|
139578
139578
|
"4": {
|
|
139579
139579
|
loc: {
|
|
139580
139580
|
start: {
|
|
139581
|
-
line:
|
|
139581
|
+
line: 70,
|
|
139582
139582
|
column: 19
|
|
139583
139583
|
},
|
|
139584
139584
|
end: {
|
|
139585
|
-
line:
|
|
139585
|
+
line: 70,
|
|
139586
139586
|
column: 50
|
|
139587
139587
|
}
|
|
139588
139588
|
},
|
|
139589
139589
|
type: "cond-expr",
|
|
139590
139590
|
locations: [{
|
|
139591
139591
|
start: {
|
|
139592
|
-
line:
|
|
139592
|
+
line: 70,
|
|
139593
139593
|
column: 30
|
|
139594
139594
|
},
|
|
139595
139595
|
end: {
|
|
139596
|
-
line:
|
|
139596
|
+
line: 70,
|
|
139597
139597
|
column: 41
|
|
139598
139598
|
}
|
|
139599
139599
|
}, {
|
|
139600
139600
|
start: {
|
|
139601
|
-
line:
|
|
139601
|
+
line: 70,
|
|
139602
139602
|
column: 44
|
|
139603
139603
|
},
|
|
139604
139604
|
end: {
|
|
139605
|
-
line:
|
|
139605
|
+
line: 70,
|
|
139606
139606
|
column: 50
|
|
139607
139607
|
}
|
|
139608
139608
|
}],
|
|
139609
|
-
line:
|
|
139609
|
+
line: 70
|
|
139610
139610
|
},
|
|
139611
139611
|
"5": {
|
|
139612
139612
|
loc: {
|
|
139613
139613
|
start: {
|
|
139614
|
-
line:
|
|
139614
|
+
line: 99,
|
|
139615
139615
|
column: 9
|
|
139616
139616
|
},
|
|
139617
139617
|
end: {
|
|
139618
|
-
line:
|
|
139618
|
+
line: 106,
|
|
139619
139619
|
column: 9
|
|
139620
139620
|
}
|
|
139621
139621
|
},
|
|
139622
139622
|
type: "binary-expr",
|
|
139623
139623
|
locations: [{
|
|
139624
139624
|
start: {
|
|
139625
|
-
line:
|
|
139625
|
+
line: 99,
|
|
139626
139626
|
column: 9
|
|
139627
139627
|
},
|
|
139628
139628
|
end: {
|
|
139629
|
-
line:
|
|
139629
|
+
line: 99,
|
|
139630
139630
|
column: 17
|
|
139631
139631
|
}
|
|
139632
139632
|
}, {
|
|
139633
139633
|
start: {
|
|
139634
|
-
line:
|
|
139634
|
+
line: 100,
|
|
139635
139635
|
column: 10
|
|
139636
139636
|
},
|
|
139637
139637
|
end: {
|
|
139638
|
-
line:
|
|
139638
|
+
line: 105,
|
|
139639
139639
|
column: 12
|
|
139640
139640
|
}
|
|
139641
139641
|
}],
|
|
139642
|
-
line:
|
|
139642
|
+
line: 99
|
|
139643
139643
|
}
|
|
139644
139644
|
},
|
|
139645
139645
|
s: {
|
|
@@ -139702,7 +139702,7 @@ function cov_7xzegtncw() {
|
|
|
139702
139702
|
"5": [0, 0]
|
|
139703
139703
|
},
|
|
139704
139704
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
139705
|
-
hash: "
|
|
139705
|
+
hash: "2fd657c6e8247f599ed428596366587234605b90"
|
|
139706
139706
|
};
|
|
139707
139707
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
139708
139708
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -139789,7 +139789,7 @@ var LinkOption = function LinkOption(_ref2) {
|
|
|
139789
139789
|
if (URL_REGEXP.test(urlString)) {
|
|
139790
139790
|
cov_7xzegtncw().b[2][0]++;
|
|
139791
139791
|
cov_7xzegtncw().s[22]++;
|
|
139792
|
-
editor.chain().focus().setLink({
|
|
139792
|
+
editor.chain().focus().extendMarkRange("link").setLink({
|
|
139793
139793
|
href: urlString
|
|
139794
139794
|
}).run();
|
|
139795
139795
|
cov_7xzegtncw().s[23]++;
|
|
@@ -139804,7 +139804,7 @@ var LinkOption = function LinkOption(_ref2) {
|
|
|
139804
139804
|
var handleUnlink = function handleUnlink() {
|
|
139805
139805
|
cov_7xzegtncw().f[6]++;
|
|
139806
139806
|
cov_7xzegtncw().s[26]++;
|
|
139807
|
-
editor.chain().focus().unsetLink().run();
|
|
139807
|
+
editor.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
139808
139808
|
cov_7xzegtncw().s[27]++;
|
|
139809
139809
|
setUrlString("");
|
|
139810
139810
|
cov_7xzegtncw().s[28]++;
|
|
@@ -145047,7 +145047,7 @@ var buildMenuOptions = function buildMenuOptions(_ref) {
|
|
|
145047
145047
|
|
|
145048
145048
|
function cov_1jkm4gpx9u() {
|
|
145049
145049
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Headless/index.jsx";
|
|
145050
|
-
var hash = "
|
|
145050
|
+
var hash = "e26da2a7a598b1d1c8029d0f738f1df40b34ee23";
|
|
145051
145051
|
var global = new Function("return this")();
|
|
145052
145052
|
var gcv = "__coverage__";
|
|
145053
145053
|
var coverageData = {
|
|
@@ -145055,83 +145055,103 @@ function cov_1jkm4gpx9u() {
|
|
|
145055
145055
|
statementMap: {
|
|
145056
145056
|
"0": {
|
|
145057
145057
|
start: {
|
|
145058
|
-
line:
|
|
145058
|
+
line: 13,
|
|
145059
145059
|
column: 17
|
|
145060
145060
|
},
|
|
145061
145061
|
end: {
|
|
145062
|
-
line:
|
|
145062
|
+
line: 71,
|
|
145063
145063
|
column: 1
|
|
145064
145064
|
}
|
|
145065
145065
|
},
|
|
145066
145066
|
"1": {
|
|
145067
145067
|
start: {
|
|
145068
|
-
line:
|
|
145068
|
+
line: 29,
|
|
145069
145069
|
column: 2
|
|
145070
145070
|
},
|
|
145071
145071
|
end: {
|
|
145072
|
-
line:
|
|
145072
|
+
line: 31,
|
|
145073
145073
|
column: 3
|
|
145074
145074
|
}
|
|
145075
145075
|
},
|
|
145076
145076
|
"2": {
|
|
145077
145077
|
start: {
|
|
145078
|
-
line:
|
|
145078
|
+
line: 30,
|
|
145079
145079
|
column: 4
|
|
145080
145080
|
},
|
|
145081
145081
|
end: {
|
|
145082
|
-
line:
|
|
145082
|
+
line: 30,
|
|
145083
145083
|
column: 16
|
|
145084
145084
|
}
|
|
145085
145085
|
},
|
|
145086
145086
|
"3": {
|
|
145087
145087
|
start: {
|
|
145088
|
-
line:
|
|
145088
|
+
line: 33,
|
|
145089
|
+
column: 32
|
|
145090
|
+
},
|
|
145091
|
+
end: {
|
|
145092
|
+
line: 35,
|
|
145093
|
+
column: 3
|
|
145094
|
+
}
|
|
145095
|
+
},
|
|
145096
|
+
"4": {
|
|
145097
|
+
start: {
|
|
145098
|
+
line: 37,
|
|
145089
145099
|
column: 22
|
|
145090
145100
|
},
|
|
145091
145101
|
end: {
|
|
145092
|
-
line:
|
|
145102
|
+
line: 46,
|
|
145093
145103
|
column: 4
|
|
145094
145104
|
}
|
|
145095
145105
|
},
|
|
145096
|
-
"
|
|
145106
|
+
"5": {
|
|
145097
145107
|
start: {
|
|
145098
|
-
line:
|
|
145108
|
+
line: 48,
|
|
145099
145109
|
column: 30
|
|
145100
145110
|
},
|
|
145101
145111
|
end: {
|
|
145102
|
-
line:
|
|
145112
|
+
line: 51,
|
|
145103
145113
|
column: 4
|
|
145104
145114
|
}
|
|
145105
145115
|
},
|
|
145106
|
-
"
|
|
145116
|
+
"6": {
|
|
145107
145117
|
start: {
|
|
145108
|
-
line:
|
|
145118
|
+
line: 52,
|
|
145109
145119
|
column: 21
|
|
145110
145120
|
},
|
|
145111
145121
|
end: {
|
|
145112
|
-
line:
|
|
145122
|
+
line: 52,
|
|
145113
145123
|
column: 61
|
|
145114
145124
|
}
|
|
145115
145125
|
},
|
|
145116
|
-
"
|
|
145126
|
+
"7": {
|
|
145117
145127
|
start: {
|
|
145118
|
-
line:
|
|
145128
|
+
line: 54,
|
|
145119
145129
|
column: 2
|
|
145120
145130
|
},
|
|
145121
145131
|
end: {
|
|
145122
|
-
line:
|
|
145132
|
+
line: 70,
|
|
145123
145133
|
column: 4
|
|
145124
145134
|
}
|
|
145125
145135
|
},
|
|
145126
|
-
"
|
|
145136
|
+
"8": {
|
|
145127
145137
|
start: {
|
|
145128
|
-
line:
|
|
145138
|
+
line: 57,
|
|
145129
145139
|
column: 8
|
|
145130
145140
|
},
|
|
145131
145141
|
end: {
|
|
145132
|
-
line:
|
|
145142
|
+
line: 57,
|
|
145133
145143
|
column: 70
|
|
145134
145144
|
}
|
|
145145
|
+
},
|
|
145146
|
+
"9": {
|
|
145147
|
+
start: {
|
|
145148
|
+
line: 66,
|
|
145149
|
+
column: 25
|
|
145150
|
+
},
|
|
145151
|
+
end: {
|
|
145152
|
+
line: 66,
|
|
145153
|
+
column: 73
|
|
145154
|
+
}
|
|
145135
145155
|
}
|
|
145136
145156
|
},
|
|
145137
145157
|
fnMap: {
|
|
@@ -145139,119 +145159,143 @@ function cov_1jkm4gpx9u() {
|
|
|
145139
145159
|
name: "(anonymous_0)",
|
|
145140
145160
|
decl: {
|
|
145141
145161
|
start: {
|
|
145142
|
-
line:
|
|
145162
|
+
line: 13,
|
|
145143
145163
|
column: 17
|
|
145144
145164
|
},
|
|
145145
145165
|
end: {
|
|
145146
|
-
line:
|
|
145166
|
+
line: 13,
|
|
145147
145167
|
column: 18
|
|
145148
145168
|
}
|
|
145149
145169
|
},
|
|
145150
145170
|
loc: {
|
|
145151
145171
|
start: {
|
|
145152
|
-
line:
|
|
145172
|
+
line: 28,
|
|
145153
145173
|
column: 6
|
|
145154
145174
|
},
|
|
145155
145175
|
end: {
|
|
145156
|
-
line:
|
|
145176
|
+
line: 71,
|
|
145157
145177
|
column: 1
|
|
145158
145178
|
}
|
|
145159
145179
|
},
|
|
145160
|
-
line:
|
|
145180
|
+
line: 28
|
|
145161
145181
|
},
|
|
145162
145182
|
"1": {
|
|
145163
145183
|
name: "(anonymous_1)",
|
|
145164
145184
|
decl: {
|
|
145165
145185
|
start: {
|
|
145166
|
-
line:
|
|
145186
|
+
line: 56,
|
|
145167
145187
|
column: 22
|
|
145168
145188
|
},
|
|
145169
145189
|
end: {
|
|
145170
|
-
line:
|
|
145190
|
+
line: 56,
|
|
145171
145191
|
column: 23
|
|
145172
145192
|
}
|
|
145173
145193
|
},
|
|
145174
145194
|
loc: {
|
|
145175
145195
|
start: {
|
|
145176
|
-
line:
|
|
145196
|
+
line: 57,
|
|
145177
145197
|
column: 8
|
|
145178
145198
|
},
|
|
145179
145199
|
end: {
|
|
145180
|
-
line:
|
|
145200
|
+
line: 57,
|
|
145181
145201
|
column: 70
|
|
145182
145202
|
}
|
|
145183
145203
|
},
|
|
145184
|
-
line:
|
|
145204
|
+
line: 57
|
|
145205
|
+
},
|
|
145206
|
+
"2": {
|
|
145207
|
+
name: "(anonymous_2)",
|
|
145208
|
+
decl: {
|
|
145209
|
+
start: {
|
|
145210
|
+
line: 66,
|
|
145211
|
+
column: 19
|
|
145212
|
+
},
|
|
145213
|
+
end: {
|
|
145214
|
+
line: 66,
|
|
145215
|
+
column: 20
|
|
145216
|
+
}
|
|
145217
|
+
},
|
|
145218
|
+
loc: {
|
|
145219
|
+
start: {
|
|
145220
|
+
line: 66,
|
|
145221
|
+
column: 25
|
|
145222
|
+
},
|
|
145223
|
+
end: {
|
|
145224
|
+
line: 66,
|
|
145225
|
+
column: 73
|
|
145226
|
+
}
|
|
145227
|
+
},
|
|
145228
|
+
line: 66
|
|
145185
145229
|
}
|
|
145186
145230
|
},
|
|
145187
145231
|
branchMap: {
|
|
145188
145232
|
"0": {
|
|
145189
145233
|
loc: {
|
|
145190
145234
|
start: {
|
|
145191
|
-
line:
|
|
145235
|
+
line: 16,
|
|
145192
145236
|
column: 2
|
|
145193
145237
|
},
|
|
145194
145238
|
end: {
|
|
145195
|
-
line:
|
|
145239
|
+
line: 16,
|
|
145196
145240
|
column: 15
|
|
145197
145241
|
}
|
|
145198
145242
|
},
|
|
145199
145243
|
type: "default-arg",
|
|
145200
145244
|
locations: [{
|
|
145201
145245
|
start: {
|
|
145202
|
-
line:
|
|
145246
|
+
line: 16,
|
|
145203
145247
|
column: 13
|
|
145204
145248
|
},
|
|
145205
145249
|
end: {
|
|
145206
|
-
line:
|
|
145250
|
+
line: 16,
|
|
145207
145251
|
column: 15
|
|
145208
145252
|
}
|
|
145209
145253
|
}],
|
|
145210
|
-
line:
|
|
145254
|
+
line: 16
|
|
145211
145255
|
},
|
|
145212
145256
|
"1": {
|
|
145213
145257
|
loc: {
|
|
145214
145258
|
start: {
|
|
145215
|
-
line:
|
|
145259
|
+
line: 21,
|
|
145216
145260
|
column: 2
|
|
145217
145261
|
},
|
|
145218
145262
|
end: {
|
|
145219
|
-
line:
|
|
145263
|
+
line: 21,
|
|
145220
145264
|
column: 20
|
|
145221
145265
|
}
|
|
145222
145266
|
},
|
|
145223
145267
|
type: "default-arg",
|
|
145224
145268
|
locations: [{
|
|
145225
145269
|
start: {
|
|
145226
|
-
line:
|
|
145270
|
+
line: 21,
|
|
145227
145271
|
column: 18
|
|
145228
145272
|
},
|
|
145229
145273
|
end: {
|
|
145230
|
-
line:
|
|
145274
|
+
line: 21,
|
|
145231
145275
|
column: 20
|
|
145232
145276
|
}
|
|
145233
145277
|
}],
|
|
145234
|
-
line:
|
|
145278
|
+
line: 21
|
|
145235
145279
|
},
|
|
145236
145280
|
"2": {
|
|
145237
145281
|
loc: {
|
|
145238
145282
|
start: {
|
|
145239
|
-
line:
|
|
145283
|
+
line: 29,
|
|
145240
145284
|
column: 2
|
|
145241
145285
|
},
|
|
145242
145286
|
end: {
|
|
145243
|
-
line:
|
|
145287
|
+
line: 31,
|
|
145244
145288
|
column: 3
|
|
145245
145289
|
}
|
|
145246
145290
|
},
|
|
145247
145291
|
type: "if",
|
|
145248
145292
|
locations: [{
|
|
145249
145293
|
start: {
|
|
145250
|
-
line:
|
|
145294
|
+
line: 29,
|
|
145251
145295
|
column: 2
|
|
145252
145296
|
},
|
|
145253
145297
|
end: {
|
|
145254
|
-
line:
|
|
145298
|
+
line: 31,
|
|
145255
145299
|
column: 3
|
|
145256
145300
|
}
|
|
145257
145301
|
}, {
|
|
@@ -145264,7 +145308,73 @@ function cov_1jkm4gpx9u() {
|
|
|
145264
145308
|
column: undefined
|
|
145265
145309
|
}
|
|
145266
145310
|
}],
|
|
145267
|
-
line:
|
|
145311
|
+
line: 29
|
|
145312
|
+
},
|
|
145313
|
+
"3": {
|
|
145314
|
+
loc: {
|
|
145315
|
+
start: {
|
|
145316
|
+
line: 34,
|
|
145317
|
+
column: 4
|
|
145318
|
+
},
|
|
145319
|
+
end: {
|
|
145320
|
+
line: 34,
|
|
145321
|
+
column: 62
|
|
145322
|
+
}
|
|
145323
|
+
},
|
|
145324
|
+
type: "binary-expr",
|
|
145325
|
+
locations: [{
|
|
145326
|
+
start: {
|
|
145327
|
+
line: 34,
|
|
145328
|
+
column: 4
|
|
145329
|
+
},
|
|
145330
|
+
end: {
|
|
145331
|
+
line: 34,
|
|
145332
|
+
column: 31
|
|
145333
|
+
}
|
|
145334
|
+
}, {
|
|
145335
|
+
start: {
|
|
145336
|
+
line: 34,
|
|
145337
|
+
column: 35
|
|
145338
|
+
},
|
|
145339
|
+
end: {
|
|
145340
|
+
line: 34,
|
|
145341
|
+
column: 62
|
|
145342
|
+
}
|
|
145343
|
+
}],
|
|
145344
|
+
line: 34
|
|
145345
|
+
},
|
|
145346
|
+
"4": {
|
|
145347
|
+
loc: {
|
|
145348
|
+
start: {
|
|
145349
|
+
line: 60,
|
|
145350
|
+
column: 7
|
|
145351
|
+
},
|
|
145352
|
+
end: {
|
|
145353
|
+
line: 68,
|
|
145354
|
+
column: 7
|
|
145355
|
+
}
|
|
145356
|
+
},
|
|
145357
|
+
type: "binary-expr",
|
|
145358
|
+
locations: [{
|
|
145359
|
+
start: {
|
|
145360
|
+
line: 60,
|
|
145361
|
+
column: 7
|
|
145362
|
+
},
|
|
145363
|
+
end: {
|
|
145364
|
+
line: 60,
|
|
145365
|
+
column: 28
|
|
145366
|
+
}
|
|
145367
|
+
}, {
|
|
145368
|
+
start: {
|
|
145369
|
+
line: 61,
|
|
145370
|
+
column: 8
|
|
145371
|
+
},
|
|
145372
|
+
end: {
|
|
145373
|
+
line: 67,
|
|
145374
|
+
column: 10
|
|
145375
|
+
}
|
|
145376
|
+
}],
|
|
145377
|
+
line: 60
|
|
145268
145378
|
}
|
|
145269
145379
|
},
|
|
145270
145380
|
s: {
|
|
@@ -145275,19 +145385,24 @@ function cov_1jkm4gpx9u() {
|
|
|
145275
145385
|
"4": 0,
|
|
145276
145386
|
"5": 0,
|
|
145277
145387
|
"6": 0,
|
|
145278
|
-
"7": 0
|
|
145388
|
+
"7": 0,
|
|
145389
|
+
"8": 0,
|
|
145390
|
+
"9": 0
|
|
145279
145391
|
},
|
|
145280
145392
|
f: {
|
|
145281
145393
|
"0": 0,
|
|
145282
|
-
"1": 0
|
|
145394
|
+
"1": 0,
|
|
145395
|
+
"2": 0
|
|
145283
145396
|
},
|
|
145284
145397
|
b: {
|
|
145285
145398
|
"0": [0],
|
|
145286
145399
|
"1": [0],
|
|
145287
|
-
"2": [0, 0]
|
|
145400
|
+
"2": [0, 0],
|
|
145401
|
+
"3": [0, 0],
|
|
145402
|
+
"4": [0, 0]
|
|
145288
145403
|
},
|
|
145289
145404
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
145290
|
-
hash: "
|
|
145405
|
+
hash: "e26da2a7a598b1d1c8029d0f738f1df40b34ee23"
|
|
145291
145406
|
};
|
|
145292
145407
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
145293
145408
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -145310,6 +145425,9 @@ var Headless = function Headless(_ref) {
|
|
|
145310
145425
|
_ref$tooltips = _ref.tooltips,
|
|
145311
145426
|
tooltips = _ref$tooltips === void 0 ? (cov_1jkm4gpx9u().b[0][0]++, {}) : _ref$tooltips,
|
|
145312
145427
|
setMediaUploader = _ref.setMediaUploader,
|
|
145428
|
+
mediaUploader = _ref.mediaUploader,
|
|
145429
|
+
unsplashApiKey = _ref.unsplashApiKey,
|
|
145430
|
+
uploadEndpoint = _ref.uploadEndpoint,
|
|
145313
145431
|
_ref$addonCommands = _ref.addonCommands,
|
|
145314
145432
|
addonCommands = _ref$addonCommands === void 0 ? (cov_1jkm4gpx9u().b[1][0]++, []) : _ref$addonCommands,
|
|
145315
145433
|
children = _ref.children,
|
|
@@ -145327,7 +145445,8 @@ var Headless = function Headless(_ref) {
|
|
|
145327
145445
|
} else {
|
|
145328
145446
|
cov_1jkm4gpx9u().b[2][1]++;
|
|
145329
145447
|
}
|
|
145330
|
-
var
|
|
145448
|
+
var isMediaUploaderActive = (cov_1jkm4gpx9u().s[3]++, options.includes((cov_1jkm4gpx9u().b[3][0]++, EDITOR_OPTIONS.IMAGE_UPLOAD) ));
|
|
145449
|
+
var menuOptions = (cov_1jkm4gpx9u().s[4]++, buildMenuOptions({
|
|
145331
145450
|
tooltips: tooltips,
|
|
145332
145451
|
editor: editor,
|
|
145333
145452
|
options: options,
|
|
@@ -145337,22 +145456,35 @@ var Headless = function Headless(_ref) {
|
|
|
145337
145456
|
setIsEmojiPickerActive: setIsEmojiPickerActive,
|
|
145338
145457
|
setIsEmbedModalOpen: setIsEmbedModalOpen
|
|
145339
145458
|
}));
|
|
145340
|
-
var addonCommandOptions = (cov_1jkm4gpx9u().s[
|
|
145459
|
+
var addonCommandOptions = (cov_1jkm4gpx9u().s[5]++, buildOptionsFromAddonCommands({
|
|
145341
145460
|
editor: editor,
|
|
145342
145461
|
commands: addonCommands
|
|
145343
145462
|
}));
|
|
145344
|
-
var allOptions = (cov_1jkm4gpx9u().s[
|
|
145345
|
-
cov_1jkm4gpx9u().s[
|
|
145463
|
+
var allOptions = (cov_1jkm4gpx9u().s[6]++, [].concat(_toConsumableArray$1(menuOptions), _toConsumableArray$1(addonCommandOptions)));
|
|
145464
|
+
cov_1jkm4gpx9u().s[7]++;
|
|
145346
145465
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
145347
145466
|
className: classnames$2("ne-headless", _defineProperty({}, className, className))
|
|
145348
145467
|
}, allOptions.map(function (option) {
|
|
145349
145468
|
cov_1jkm4gpx9u().f[1]++;
|
|
145350
|
-
cov_1jkm4gpx9u().s[
|
|
145469
|
+
cov_1jkm4gpx9u().s[8]++;
|
|
145351
145470
|
return /*#__PURE__*/React__default.createElement(Option, _extends$2({
|
|
145352
145471
|
editor: editor,
|
|
145353
145472
|
key: option.optionName
|
|
145354
145473
|
}, option));
|
|
145355
|
-
}), children)
|
|
145474
|
+
}), children, (cov_1jkm4gpx9u().b[4][0]++, isMediaUploaderActive) && (cov_1jkm4gpx9u().b[4][1]++, /*#__PURE__*/React__default.createElement(MediaUploader, {
|
|
145475
|
+
editor: editor,
|
|
145476
|
+
mediaUploader: mediaUploader,
|
|
145477
|
+
unsplashApiKey: unsplashApiKey,
|
|
145478
|
+
uploadEndpoint: uploadEndpoint,
|
|
145479
|
+
onClose: function onClose() {
|
|
145480
|
+
cov_1jkm4gpx9u().f[2]++;
|
|
145481
|
+
cov_1jkm4gpx9u().s[9]++;
|
|
145482
|
+
return setMediaUploader({
|
|
145483
|
+
image: false,
|
|
145484
|
+
video: false
|
|
145485
|
+
});
|
|
145486
|
+
}
|
|
145487
|
+
})));
|
|
145356
145488
|
};
|
|
145357
145489
|
|
|
145358
145490
|
function cov_1s6fdrq07c() {
|