@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 CHANGED
@@ -138851,7 +138851,7 @@ var FontSizeOption = function FontSizeOption(_ref2) {
138851
138851
 
138852
138852
  function cov_7xzegtncw() {
138853
138853
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Fixed/LinkOption.jsx";
138854
- var hash = "f303b2c7aca50874aa023ccfb4cad9e7f5ef79b0";
138854
+ var hash = "2fd657c6e8247f599ed428596366587234605b90";
138855
138855
  var global = new Function("return this")();
138856
138856
  var gcv = "__coverage__";
138857
138857
  var coverageData = {
@@ -138873,7 +138873,7 @@ function cov_7xzegtncw() {
138873
138873
  column: 19
138874
138874
  },
138875
138875
  end: {
138876
- line: 105,
138876
+ line: 110,
138877
138877
  column: 1
138878
138878
  }
138879
138879
  },
@@ -139063,7 +139063,7 @@ function cov_7xzegtncw() {
139063
139063
  column: 21
139064
139064
  },
139065
139065
  end: {
139066
- line: 46,
139066
+ line: 51,
139067
139067
  column: 3
139068
139068
  }
139069
139069
  },
@@ -139073,7 +139073,7 @@ function cov_7xzegtncw() {
139073
139073
  column: 4
139074
139074
  },
139075
139075
  end: {
139076
- line: 45,
139076
+ line: 50,
139077
139077
  column: 5
139078
139078
  }
139079
139079
  },
@@ -139083,147 +139083,147 @@ function cov_7xzegtncw() {
139083
139083
  column: 6
139084
139084
  },
139085
139085
  end: {
139086
- line: 41,
139087
- column: 64
139086
+ line: 46,
139087
+ column: 15
139088
139088
  }
139089
139089
  },
139090
139090
  "23": {
139091
139091
  start: {
139092
- line: 42,
139092
+ line: 47,
139093
139093
  column: 6
139094
139094
  },
139095
139095
  end: {
139096
- line: 42,
139096
+ line: 47,
139097
139097
  column: 20
139098
139098
  }
139099
139099
  },
139100
139100
  "24": {
139101
139101
  start: {
139102
- line: 44,
139102
+ line: 49,
139103
139103
  column: 6
139104
139104
  },
139105
139105
  end: {
139106
- line: 44,
139106
+ line: 49,
139107
139107
  column: 38
139108
139108
  }
139109
139109
  },
139110
139110
  "25": {
139111
139111
  start: {
139112
- line: 48,
139112
+ line: 53,
139113
139113
  column: 23
139114
139114
  },
139115
139115
  end: {
139116
- line: 52,
139116
+ line: 57,
139117
139117
  column: 3
139118
139118
  }
139119
139119
  },
139120
139120
  "26": {
139121
139121
  start: {
139122
- line: 49,
139122
+ line: 54,
139123
139123
  column: 4
139124
139124
  },
139125
139125
  end: {
139126
- line: 49,
139127
- column: 45
139126
+ line: 54,
139127
+ column: 69
139128
139128
  }
139129
139129
  },
139130
139130
  "27": {
139131
139131
  start: {
139132
- line: 50,
139132
+ line: 55,
139133
139133
  column: 4
139134
139134
  },
139135
139135
  end: {
139136
- line: 50,
139136
+ line: 55,
139137
139137
  column: 21
139138
139138
  }
139139
139139
  },
139140
139140
  "28": {
139141
139141
  start: {
139142
- line: 51,
139142
+ line: 56,
139143
139143
  column: 4
139144
139144
  },
139145
139145
  end: {
139146
- line: 51,
139146
+ line: 56,
139147
139147
  column: 18
139148
139148
  }
139149
139149
  },
139150
139150
  "29": {
139151
139151
  start: {
139152
- line: 54,
139152
+ line: 59,
139153
139153
  column: 2
139154
139154
  },
139155
139155
  end: {
139156
- line: 61,
139156
+ line: 66,
139157
139157
  column: 15
139158
139158
  }
139159
139159
  },
139160
139160
  "30": {
139161
139161
  start: {
139162
- line: 55,
139162
+ line: 60,
139163
139163
  column: 4
139164
139164
  },
139165
139165
  end: {
139166
- line: 55,
139166
+ line: 60,
139167
139167
  column: 52
139168
139168
  }
139169
139169
  },
139170
139170
  "31": {
139171
139171
  start: {
139172
- line: 57,
139172
+ line: 62,
139173
139173
  column: 4
139174
139174
  },
139175
139175
  end: {
139176
- line: 60,
139176
+ line: 65,
139177
139177
  column: 5
139178
139178
  }
139179
139179
  },
139180
139180
  "32": {
139181
139181
  start: {
139182
- line: 58,
139182
+ line: 63,
139183
139183
  column: 6
139184
139184
  },
139185
139185
  end: {
139186
- line: 58,
139186
+ line: 63,
139187
139187
  column: 47
139188
139188
  }
139189
139189
  },
139190
139190
  "33": {
139191
139191
  start: {
139192
- line: 59,
139192
+ line: 64,
139193
139193
  column: 6
139194
139194
  },
139195
139195
  end: {
139196
- line: 59,
139196
+ line: 64,
139197
139197
  column: 45
139198
139198
  }
139199
139199
  },
139200
139200
  "34": {
139201
139201
  start: {
139202
- line: 63,
139202
+ line: 68,
139203
139203
  column: 2
139204
139204
  },
139205
139205
  end: {
139206
- line: 104,
139206
+ line: 109,
139207
139207
  column: 4
139208
139208
  }
139209
139209
  },
139210
139210
  "35": {
139211
139211
  start: {
139212
- line: 86,
139212
+ line: 91,
139213
139213
  column: 47
139214
139214
  },
139215
139215
  end: {
139216
- line: 86,
139216
+ line: 91,
139217
139217
  column: 66
139218
139218
  }
139219
139219
  },
139220
139220
  "36": {
139221
139221
  start: {
139222
- line: 87,
139222
+ line: 92,
139223
139223
  column: 25
139224
139224
  },
139225
139225
  end: {
139226
- line: 87,
139226
+ line: 92,
139227
139227
  column: 37
139228
139228
  }
139229
139229
  }
@@ -139247,7 +139247,7 @@ function cov_7xzegtncw() {
139247
139247
  column: 51
139248
139248
  },
139249
139249
  end: {
139250
- line: 105,
139250
+ line: 110,
139251
139251
  column: 1
139252
139252
  }
139253
139253
  },
@@ -139367,7 +139367,7 @@ function cov_7xzegtncw() {
139367
139367
  column: 27
139368
139368
  },
139369
139369
  end: {
139370
- line: 46,
139370
+ line: 51,
139371
139371
  column: 3
139372
139372
  }
139373
139373
  },
@@ -139377,97 +139377,97 @@ function cov_7xzegtncw() {
139377
139377
  name: "(anonymous_6)",
139378
139378
  decl: {
139379
139379
  start: {
139380
- line: 48,
139380
+ line: 53,
139381
139381
  column: 23
139382
139382
  },
139383
139383
  end: {
139384
- line: 48,
139384
+ line: 53,
139385
139385
  column: 24
139386
139386
  }
139387
139387
  },
139388
139388
  loc: {
139389
139389
  start: {
139390
- line: 48,
139390
+ line: 53,
139391
139391
  column: 29
139392
139392
  },
139393
139393
  end: {
139394
- line: 52,
139394
+ line: 57,
139395
139395
  column: 3
139396
139396
  }
139397
139397
  },
139398
- line: 48
139398
+ line: 53
139399
139399
  },
139400
139400
  "7": {
139401
139401
  name: "(anonymous_7)",
139402
139402
  decl: {
139403
139403
  start: {
139404
- line: 54,
139404
+ line: 59,
139405
139405
  column: 12
139406
139406
  },
139407
139407
  end: {
139408
- line: 54,
139408
+ line: 59,
139409
139409
  column: 13
139410
139410
  }
139411
139411
  },
139412
139412
  loc: {
139413
139413
  start: {
139414
- line: 54,
139414
+ line: 59,
139415
139415
  column: 18
139416
139416
  },
139417
139417
  end: {
139418
- line: 61,
139418
+ line: 66,
139419
139419
  column: 3
139420
139420
  }
139421
139421
  },
139422
- line: 54
139422
+ line: 59
139423
139423
  },
139424
139424
  "8": {
139425
139425
  name: "(anonymous_8)",
139426
139426
  decl: {
139427
139427
  start: {
139428
- line: 86,
139428
+ line: 91,
139429
139429
  column: 20
139430
139430
  },
139431
139431
  end: {
139432
- line: 86,
139432
+ line: 91,
139433
139433
  column: 21
139434
139434
  }
139435
139435
  },
139436
139436
  loc: {
139437
139437
  start: {
139438
- line: 86,
139438
+ line: 91,
139439
139439
  column: 47
139440
139440
  },
139441
139441
  end: {
139442
- line: 86,
139442
+ line: 91,
139443
139443
  column: 66
139444
139444
  }
139445
139445
  },
139446
- line: 86
139446
+ line: 91
139447
139447
  },
139448
139448
  "9": {
139449
139449
  name: "(anonymous_9)",
139450
139450
  decl: {
139451
139451
  start: {
139452
- line: 87,
139452
+ line: 92,
139453
139453
  column: 19
139454
139454
  },
139455
139455
  end: {
139456
- line: 87,
139456
+ line: 92,
139457
139457
  column: 20
139458
139458
  }
139459
139459
  },
139460
139460
  loc: {
139461
139461
  start: {
139462
- line: 87,
139462
+ line: 92,
139463
139463
  column: 25
139464
139464
  },
139465
139465
  end: {
139466
- line: 87,
139466
+ line: 92,
139467
139467
  column: 37
139468
139468
  }
139469
139469
  },
139470
- line: 87
139470
+ line: 92
139471
139471
  }
139472
139472
  },
139473
139473
  branchMap: {
@@ -139544,7 +139544,7 @@ function cov_7xzegtncw() {
139544
139544
  column: 4
139545
139545
  },
139546
139546
  end: {
139547
- line: 45,
139547
+ line: 50,
139548
139548
  column: 5
139549
139549
  }
139550
139550
  },
@@ -139555,16 +139555,16 @@ function cov_7xzegtncw() {
139555
139555
  column: 4
139556
139556
  },
139557
139557
  end: {
139558
- line: 45,
139558
+ line: 50,
139559
139559
  column: 5
139560
139560
  }
139561
139561
  }, {
139562
139562
  start: {
139563
- line: 43,
139563
+ line: 48,
139564
139564
  column: 11
139565
139565
  },
139566
139566
  end: {
139567
- line: 45,
139567
+ line: 50,
139568
139568
  column: 5
139569
139569
  }
139570
139570
  }],
@@ -139573,22 +139573,22 @@ function cov_7xzegtncw() {
139573
139573
  "3": {
139574
139574
  loc: {
139575
139575
  start: {
139576
- line: 57,
139576
+ line: 62,
139577
139577
  column: 4
139578
139578
  },
139579
139579
  end: {
139580
- line: 60,
139580
+ line: 65,
139581
139581
  column: 5
139582
139582
  }
139583
139583
  },
139584
139584
  type: "if",
139585
139585
  locations: [{
139586
139586
  start: {
139587
- line: 57,
139587
+ line: 62,
139588
139588
  column: 4
139589
139589
  },
139590
139590
  end: {
139591
- line: 60,
139591
+ line: 65,
139592
139592
  column: 5
139593
139593
  }
139594
139594
  }, {
@@ -139601,73 +139601,73 @@ function cov_7xzegtncw() {
139601
139601
  column: undefined
139602
139602
  }
139603
139603
  }],
139604
- line: 57
139604
+ line: 62
139605
139605
  },
139606
139606
  "4": {
139607
139607
  loc: {
139608
139608
  start: {
139609
- line: 65,
139609
+ line: 70,
139610
139610
  column: 19
139611
139611
  },
139612
139612
  end: {
139613
- line: 65,
139613
+ line: 70,
139614
139614
  column: 50
139615
139615
  }
139616
139616
  },
139617
139617
  type: "cond-expr",
139618
139618
  locations: [{
139619
139619
  start: {
139620
- line: 65,
139620
+ line: 70,
139621
139621
  column: 30
139622
139622
  },
139623
139623
  end: {
139624
- line: 65,
139624
+ line: 70,
139625
139625
  column: 41
139626
139626
  }
139627
139627
  }, {
139628
139628
  start: {
139629
- line: 65,
139629
+ line: 70,
139630
139630
  column: 44
139631
139631
  },
139632
139632
  end: {
139633
- line: 65,
139633
+ line: 70,
139634
139634
  column: 50
139635
139635
  }
139636
139636
  }],
139637
- line: 65
139637
+ line: 70
139638
139638
  },
139639
139639
  "5": {
139640
139640
  loc: {
139641
139641
  start: {
139642
- line: 94,
139642
+ line: 99,
139643
139643
  column: 9
139644
139644
  },
139645
139645
  end: {
139646
- line: 101,
139646
+ line: 106,
139647
139647
  column: 9
139648
139648
  }
139649
139649
  },
139650
139650
  type: "binary-expr",
139651
139651
  locations: [{
139652
139652
  start: {
139653
- line: 94,
139653
+ line: 99,
139654
139654
  column: 9
139655
139655
  },
139656
139656
  end: {
139657
- line: 94,
139657
+ line: 99,
139658
139658
  column: 17
139659
139659
  }
139660
139660
  }, {
139661
139661
  start: {
139662
- line: 95,
139662
+ line: 100,
139663
139663
  column: 10
139664
139664
  },
139665
139665
  end: {
139666
- line: 100,
139666
+ line: 105,
139667
139667
  column: 12
139668
139668
  }
139669
139669
  }],
139670
- line: 94
139670
+ line: 99
139671
139671
  }
139672
139672
  },
139673
139673
  s: {
@@ -139730,7 +139730,7 @@ function cov_7xzegtncw() {
139730
139730
  "5": [0, 0]
139731
139731
  },
139732
139732
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
139733
- hash: "f303b2c7aca50874aa023ccfb4cad9e7f5ef79b0"
139733
+ hash: "2fd657c6e8247f599ed428596366587234605b90"
139734
139734
  };
139735
139735
  var coverage = global[gcv] || (global[gcv] = {});
139736
139736
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -139817,7 +139817,7 @@ var LinkOption = function LinkOption(_ref2) {
139817
139817
  if (URL_REGEXP.test(urlString)) {
139818
139818
  cov_7xzegtncw().b[2][0]++;
139819
139819
  cov_7xzegtncw().s[22]++;
139820
- editor.chain().focus().setLink({
139820
+ editor.chain().focus().extendMarkRange("link").setLink({
139821
139821
  href: urlString
139822
139822
  }).run();
139823
139823
  cov_7xzegtncw().s[23]++;
@@ -139832,7 +139832,7 @@ var LinkOption = function LinkOption(_ref2) {
139832
139832
  var handleUnlink = function handleUnlink() {
139833
139833
  cov_7xzegtncw().f[6]++;
139834
139834
  cov_7xzegtncw().s[26]++;
139835
- editor.chain().focus().unsetLink().run();
139835
+ editor.chain().focus().extendMarkRange("link").unsetLink().run();
139836
139836
  cov_7xzegtncw().s[27]++;
139837
139837
  setUrlString("");
139838
139838
  cov_7xzegtncw().s[28]++;
@@ -145075,7 +145075,7 @@ var buildMenuOptions = function buildMenuOptions(_ref) {
145075
145075
 
145076
145076
  function cov_1jkm4gpx9u() {
145077
145077
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Headless/index.jsx";
145078
- var hash = "38a2b17273b9e4564e62732b81be31975ad182b1";
145078
+ var hash = "e26da2a7a598b1d1c8029d0f738f1df40b34ee23";
145079
145079
  var global = new Function("return this")();
145080
145080
  var gcv = "__coverage__";
145081
145081
  var coverageData = {
@@ -145083,83 +145083,103 @@ function cov_1jkm4gpx9u() {
145083
145083
  statementMap: {
145084
145084
  "0": {
145085
145085
  start: {
145086
- line: 10,
145086
+ line: 13,
145087
145087
  column: 17
145088
145088
  },
145089
145089
  end: {
145090
- line: 52,
145090
+ line: 71,
145091
145091
  column: 1
145092
145092
  }
145093
145093
  },
145094
145094
  "1": {
145095
145095
  start: {
145096
- line: 23,
145096
+ line: 29,
145097
145097
  column: 2
145098
145098
  },
145099
145099
  end: {
145100
- line: 25,
145100
+ line: 31,
145101
145101
  column: 3
145102
145102
  }
145103
145103
  },
145104
145104
  "2": {
145105
145105
  start: {
145106
- line: 24,
145106
+ line: 30,
145107
145107
  column: 4
145108
145108
  },
145109
145109
  end: {
145110
- line: 24,
145110
+ line: 30,
145111
145111
  column: 16
145112
145112
  }
145113
145113
  },
145114
145114
  "3": {
145115
145115
  start: {
145116
- line: 27,
145116
+ line: 33,
145117
+ column: 32
145118
+ },
145119
+ end: {
145120
+ line: 35,
145121
+ column: 3
145122
+ }
145123
+ },
145124
+ "4": {
145125
+ start: {
145126
+ line: 37,
145117
145127
  column: 22
145118
145128
  },
145119
145129
  end: {
145120
- line: 36,
145130
+ line: 46,
145121
145131
  column: 4
145122
145132
  }
145123
145133
  },
145124
- "4": {
145134
+ "5": {
145125
145135
  start: {
145126
- line: 38,
145136
+ line: 48,
145127
145137
  column: 30
145128
145138
  },
145129
145139
  end: {
145130
- line: 41,
145140
+ line: 51,
145131
145141
  column: 4
145132
145142
  }
145133
145143
  },
145134
- "5": {
145144
+ "6": {
145135
145145
  start: {
145136
- line: 42,
145146
+ line: 52,
145137
145147
  column: 21
145138
145148
  },
145139
145149
  end: {
145140
- line: 42,
145150
+ line: 52,
145141
145151
  column: 61
145142
145152
  }
145143
145153
  },
145144
- "6": {
145154
+ "7": {
145145
145155
  start: {
145146
- line: 44,
145156
+ line: 54,
145147
145157
  column: 2
145148
145158
  },
145149
145159
  end: {
145150
- line: 51,
145160
+ line: 70,
145151
145161
  column: 4
145152
145162
  }
145153
145163
  },
145154
- "7": {
145164
+ "8": {
145155
145165
  start: {
145156
- line: 47,
145166
+ line: 57,
145157
145167
  column: 8
145158
145168
  },
145159
145169
  end: {
145160
- line: 47,
145170
+ line: 57,
145161
145171
  column: 70
145162
145172
  }
145173
+ },
145174
+ "9": {
145175
+ start: {
145176
+ line: 66,
145177
+ column: 25
145178
+ },
145179
+ end: {
145180
+ line: 66,
145181
+ column: 73
145182
+ }
145163
145183
  }
145164
145184
  },
145165
145185
  fnMap: {
@@ -145167,119 +145187,143 @@ function cov_1jkm4gpx9u() {
145167
145187
  name: "(anonymous_0)",
145168
145188
  decl: {
145169
145189
  start: {
145170
- line: 10,
145190
+ line: 13,
145171
145191
  column: 17
145172
145192
  },
145173
145193
  end: {
145174
- line: 10,
145194
+ line: 13,
145175
145195
  column: 18
145176
145196
  }
145177
145197
  },
145178
145198
  loc: {
145179
145199
  start: {
145180
- line: 22,
145200
+ line: 28,
145181
145201
  column: 6
145182
145202
  },
145183
145203
  end: {
145184
- line: 52,
145204
+ line: 71,
145185
145205
  column: 1
145186
145206
  }
145187
145207
  },
145188
- line: 22
145208
+ line: 28
145189
145209
  },
145190
145210
  "1": {
145191
145211
  name: "(anonymous_1)",
145192
145212
  decl: {
145193
145213
  start: {
145194
- line: 46,
145214
+ line: 56,
145195
145215
  column: 22
145196
145216
  },
145197
145217
  end: {
145198
- line: 46,
145218
+ line: 56,
145199
145219
  column: 23
145200
145220
  }
145201
145221
  },
145202
145222
  loc: {
145203
145223
  start: {
145204
- line: 47,
145224
+ line: 57,
145205
145225
  column: 8
145206
145226
  },
145207
145227
  end: {
145208
- line: 47,
145228
+ line: 57,
145209
145229
  column: 70
145210
145230
  }
145211
145231
  },
145212
- line: 47
145232
+ line: 57
145233
+ },
145234
+ "2": {
145235
+ name: "(anonymous_2)",
145236
+ decl: {
145237
+ start: {
145238
+ line: 66,
145239
+ column: 19
145240
+ },
145241
+ end: {
145242
+ line: 66,
145243
+ column: 20
145244
+ }
145245
+ },
145246
+ loc: {
145247
+ start: {
145248
+ line: 66,
145249
+ column: 25
145250
+ },
145251
+ end: {
145252
+ line: 66,
145253
+ column: 73
145254
+ }
145255
+ },
145256
+ line: 66
145213
145257
  }
145214
145258
  },
145215
145259
  branchMap: {
145216
145260
  "0": {
145217
145261
  loc: {
145218
145262
  start: {
145219
- line: 13,
145263
+ line: 16,
145220
145264
  column: 2
145221
145265
  },
145222
145266
  end: {
145223
- line: 13,
145267
+ line: 16,
145224
145268
  column: 15
145225
145269
  }
145226
145270
  },
145227
145271
  type: "default-arg",
145228
145272
  locations: [{
145229
145273
  start: {
145230
- line: 13,
145274
+ line: 16,
145231
145275
  column: 13
145232
145276
  },
145233
145277
  end: {
145234
- line: 13,
145278
+ line: 16,
145235
145279
  column: 15
145236
145280
  }
145237
145281
  }],
145238
- line: 13
145282
+ line: 16
145239
145283
  },
145240
145284
  "1": {
145241
145285
  loc: {
145242
145286
  start: {
145243
- line: 15,
145287
+ line: 21,
145244
145288
  column: 2
145245
145289
  },
145246
145290
  end: {
145247
- line: 15,
145291
+ line: 21,
145248
145292
  column: 20
145249
145293
  }
145250
145294
  },
145251
145295
  type: "default-arg",
145252
145296
  locations: [{
145253
145297
  start: {
145254
- line: 15,
145298
+ line: 21,
145255
145299
  column: 18
145256
145300
  },
145257
145301
  end: {
145258
- line: 15,
145302
+ line: 21,
145259
145303
  column: 20
145260
145304
  }
145261
145305
  }],
145262
- line: 15
145306
+ line: 21
145263
145307
  },
145264
145308
  "2": {
145265
145309
  loc: {
145266
145310
  start: {
145267
- line: 23,
145311
+ line: 29,
145268
145312
  column: 2
145269
145313
  },
145270
145314
  end: {
145271
- line: 25,
145315
+ line: 31,
145272
145316
  column: 3
145273
145317
  }
145274
145318
  },
145275
145319
  type: "if",
145276
145320
  locations: [{
145277
145321
  start: {
145278
- line: 23,
145322
+ line: 29,
145279
145323
  column: 2
145280
145324
  },
145281
145325
  end: {
145282
- line: 25,
145326
+ line: 31,
145283
145327
  column: 3
145284
145328
  }
145285
145329
  }, {
@@ -145292,7 +145336,73 @@ function cov_1jkm4gpx9u() {
145292
145336
  column: undefined
145293
145337
  }
145294
145338
  }],
145295
- line: 23
145339
+ line: 29
145340
+ },
145341
+ "3": {
145342
+ loc: {
145343
+ start: {
145344
+ line: 34,
145345
+ column: 4
145346
+ },
145347
+ end: {
145348
+ line: 34,
145349
+ column: 62
145350
+ }
145351
+ },
145352
+ type: "binary-expr",
145353
+ locations: [{
145354
+ start: {
145355
+ line: 34,
145356
+ column: 4
145357
+ },
145358
+ end: {
145359
+ line: 34,
145360
+ column: 31
145361
+ }
145362
+ }, {
145363
+ start: {
145364
+ line: 34,
145365
+ column: 35
145366
+ },
145367
+ end: {
145368
+ line: 34,
145369
+ column: 62
145370
+ }
145371
+ }],
145372
+ line: 34
145373
+ },
145374
+ "4": {
145375
+ loc: {
145376
+ start: {
145377
+ line: 60,
145378
+ column: 7
145379
+ },
145380
+ end: {
145381
+ line: 68,
145382
+ column: 7
145383
+ }
145384
+ },
145385
+ type: "binary-expr",
145386
+ locations: [{
145387
+ start: {
145388
+ line: 60,
145389
+ column: 7
145390
+ },
145391
+ end: {
145392
+ line: 60,
145393
+ column: 28
145394
+ }
145395
+ }, {
145396
+ start: {
145397
+ line: 61,
145398
+ column: 8
145399
+ },
145400
+ end: {
145401
+ line: 67,
145402
+ column: 10
145403
+ }
145404
+ }],
145405
+ line: 60
145296
145406
  }
145297
145407
  },
145298
145408
  s: {
@@ -145303,19 +145413,24 @@ function cov_1jkm4gpx9u() {
145303
145413
  "4": 0,
145304
145414
  "5": 0,
145305
145415
  "6": 0,
145306
- "7": 0
145416
+ "7": 0,
145417
+ "8": 0,
145418
+ "9": 0
145307
145419
  },
145308
145420
  f: {
145309
145421
  "0": 0,
145310
- "1": 0
145422
+ "1": 0,
145423
+ "2": 0
145311
145424
  },
145312
145425
  b: {
145313
145426
  "0": [0],
145314
145427
  "1": [0],
145315
- "2": [0, 0]
145428
+ "2": [0, 0],
145429
+ "3": [0, 0],
145430
+ "4": [0, 0]
145316
145431
  },
145317
145432
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
145318
- hash: "38a2b17273b9e4564e62732b81be31975ad182b1"
145433
+ hash: "e26da2a7a598b1d1c8029d0f738f1df40b34ee23"
145319
145434
  };
145320
145435
  var coverage = global[gcv] || (global[gcv] = {});
145321
145436
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -145338,6 +145453,9 @@ var Headless = function Headless(_ref) {
145338
145453
  _ref$tooltips = _ref.tooltips,
145339
145454
  tooltips = _ref$tooltips === void 0 ? (cov_1jkm4gpx9u().b[0][0]++, {}) : _ref$tooltips,
145340
145455
  setMediaUploader = _ref.setMediaUploader,
145456
+ mediaUploader = _ref.mediaUploader,
145457
+ unsplashApiKey = _ref.unsplashApiKey,
145458
+ uploadEndpoint = _ref.uploadEndpoint,
145341
145459
  _ref$addonCommands = _ref.addonCommands,
145342
145460
  addonCommands = _ref$addonCommands === void 0 ? (cov_1jkm4gpx9u().b[1][0]++, []) : _ref$addonCommands,
145343
145461
  children = _ref.children,
@@ -145355,7 +145473,8 @@ var Headless = function Headless(_ref) {
145355
145473
  } else {
145356
145474
  cov_1jkm4gpx9u().b[2][1]++;
145357
145475
  }
145358
- var menuOptions = (cov_1jkm4gpx9u().s[3]++, buildMenuOptions({
145476
+ var isMediaUploaderActive = (cov_1jkm4gpx9u().s[3]++, options.includes((cov_1jkm4gpx9u().b[3][0]++, EDITOR_OPTIONS.IMAGE_UPLOAD) ));
145477
+ var menuOptions = (cov_1jkm4gpx9u().s[4]++, buildMenuOptions({
145359
145478
  tooltips: tooltips,
145360
145479
  editor: editor,
145361
145480
  options: options,
@@ -145365,22 +145484,35 @@ var Headless = function Headless(_ref) {
145365
145484
  setIsEmojiPickerActive: setIsEmojiPickerActive,
145366
145485
  setIsEmbedModalOpen: setIsEmbedModalOpen
145367
145486
  }));
145368
- var addonCommandOptions = (cov_1jkm4gpx9u().s[4]++, buildOptionsFromAddonCommands({
145487
+ var addonCommandOptions = (cov_1jkm4gpx9u().s[5]++, buildOptionsFromAddonCommands({
145369
145488
  editor: editor,
145370
145489
  commands: addonCommands
145371
145490
  }));
145372
- var allOptions = (cov_1jkm4gpx9u().s[5]++, [].concat(_toConsumableArray$1(menuOptions), _toConsumableArray$1(addonCommandOptions)));
145373
- cov_1jkm4gpx9u().s[6]++;
145491
+ var allOptions = (cov_1jkm4gpx9u().s[6]++, [].concat(_toConsumableArray$1(menuOptions), _toConsumableArray$1(addonCommandOptions)));
145492
+ cov_1jkm4gpx9u().s[7]++;
145374
145493
  return /*#__PURE__*/React__default["default"].createElement("div", {
145375
145494
  className: classnames$2("ne-headless", _defineProperty({}, className, className))
145376
145495
  }, allOptions.map(function (option) {
145377
145496
  cov_1jkm4gpx9u().f[1]++;
145378
- cov_1jkm4gpx9u().s[7]++;
145497
+ cov_1jkm4gpx9u().s[8]++;
145379
145498
  return /*#__PURE__*/React__default["default"].createElement(Option, _extends$2({
145380
145499
  editor: editor,
145381
145500
  key: option.optionName
145382
145501
  }, option));
145383
- }), children);
145502
+ }), children, (cov_1jkm4gpx9u().b[4][0]++, isMediaUploaderActive) && (cov_1jkm4gpx9u().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(MediaUploader, {
145503
+ editor: editor,
145504
+ mediaUploader: mediaUploader,
145505
+ unsplashApiKey: unsplashApiKey,
145506
+ uploadEndpoint: uploadEndpoint,
145507
+ onClose: function onClose() {
145508
+ cov_1jkm4gpx9u().f[2]++;
145509
+ cov_1jkm4gpx9u().s[9]++;
145510
+ return setMediaUploader({
145511
+ image: false,
145512
+ video: false
145513
+ });
145514
+ }
145515
+ })));
145384
145516
  };
145385
145517
 
145386
145518
  function cov_1s6fdrq07c() {