@bigbinary/neeto-editor 1.26.5 → 1.26.6

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
@@ -79114,6 +79114,495 @@ const StarterKit = Extension.create({
79114
79114
  },
79115
79115
  });
79116
79116
 
79117
+ function cov_17ka35tc9t() {
79118
+ var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/BackgroundColor/ExtensionConfig.js";
79119
+ var hash = "77628a9eb7976ae1d815c7a467bc38756dd39d33";
79120
+ var global = new Function("return this")();
79121
+ var gcv = "__coverage__";
79122
+ var coverageData = {
79123
+ path: "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/BackgroundColor/ExtensionConfig.js",
79124
+ statementMap: {
79125
+ "0": {
79126
+ start: {
79127
+ line: 8,
79128
+ column: 4
79129
+ },
79130
+ end: {
79131
+ line: 10,
79132
+ column: 6
79133
+ }
79134
+ },
79135
+ "1": {
79136
+ start: {
79137
+ line: 14,
79138
+ column: 4
79139
+ },
79140
+ end: {
79141
+ line: 34,
79142
+ column: 6
79143
+ }
79144
+ },
79145
+ "2": {
79146
+ start: {
79147
+ line: 21,
79148
+ column: 14
79149
+ },
79150
+ end: {
79151
+ line: 21,
79152
+ column: 65
79153
+ }
79154
+ },
79155
+ "3": {
79156
+ start: {
79157
+ line: 23,
79158
+ column: 14
79159
+ },
79160
+ end: {
79161
+ line: 25,
79162
+ column: 15
79163
+ }
79164
+ },
79165
+ "4": {
79166
+ start: {
79167
+ line: 24,
79168
+ column: 16
79169
+ },
79170
+ end: {
79171
+ line: 24,
79172
+ column: 26
79173
+ }
79174
+ },
79175
+ "5": {
79176
+ start: {
79177
+ line: 27,
79178
+ column: 14
79179
+ },
79180
+ end: {
79181
+ line: 29,
79182
+ column: 16
79183
+ }
79184
+ },
79185
+ "6": {
79186
+ start: {
79187
+ line: 38,
79188
+ column: 4
79189
+ },
79190
+ end: {
79191
+ line: 47,
79192
+ column: 6
79193
+ }
79194
+ },
79195
+ "7": {
79196
+ start: {
79197
+ line: 41,
79198
+ column: 8
79199
+ },
79200
+ end: {
79201
+ line: 42,
79202
+ column: 72
79203
+ }
79204
+ },
79205
+ "8": {
79206
+ start: {
79207
+ line: 42,
79208
+ column: 10
79209
+ },
79210
+ end: {
79211
+ line: 42,
79212
+ column: 72
79213
+ }
79214
+ },
79215
+ "9": {
79216
+ start: {
79217
+ line: 45,
79218
+ column: 8
79219
+ },
79220
+ end: {
79221
+ line: 46,
79222
+ column: 71
79223
+ }
79224
+ },
79225
+ "10": {
79226
+ start: {
79227
+ line: 46,
79228
+ column: 10
79229
+ },
79230
+ end: {
79231
+ line: 46,
79232
+ column: 71
79233
+ }
79234
+ }
79235
+ },
79236
+ fnMap: {
79237
+ "0": {
79238
+ name: "(anonymous_0)",
79239
+ decl: {
79240
+ start: {
79241
+ line: 7,
79242
+ column: 2
79243
+ },
79244
+ end: {
79245
+ line: 7,
79246
+ column: 3
79247
+ }
79248
+ },
79249
+ loc: {
79250
+ start: {
79251
+ line: 7,
79252
+ column: 15
79253
+ },
79254
+ end: {
79255
+ line: 11,
79256
+ column: 3
79257
+ }
79258
+ },
79259
+ line: 7
79260
+ },
79261
+ "1": {
79262
+ name: "(anonymous_1)",
79263
+ decl: {
79264
+ start: {
79265
+ line: 13,
79266
+ column: 2
79267
+ },
79268
+ end: {
79269
+ line: 13,
79270
+ column: 3
79271
+ }
79272
+ },
79273
+ loc: {
79274
+ start: {
79275
+ line: 13,
79276
+ column: 24
79277
+ },
79278
+ end: {
79279
+ line: 35,
79280
+ column: 3
79281
+ }
79282
+ },
79283
+ line: 13
79284
+ },
79285
+ "2": {
79286
+ name: "(anonymous_2)",
79287
+ decl: {
79288
+ start: {
79289
+ line: 20,
79290
+ column: 23
79291
+ },
79292
+ end: {
79293
+ line: 20,
79294
+ column: 24
79295
+ }
79296
+ },
79297
+ loc: {
79298
+ start: {
79299
+ line: 21,
79300
+ column: 14
79301
+ },
79302
+ end: {
79303
+ line: 21,
79304
+ column: 65
79305
+ }
79306
+ },
79307
+ line: 21
79308
+ },
79309
+ "3": {
79310
+ name: "(anonymous_3)",
79311
+ decl: {
79312
+ start: {
79313
+ line: 22,
79314
+ column: 24
79315
+ },
79316
+ end: {
79317
+ line: 22,
79318
+ column: 25
79319
+ }
79320
+ },
79321
+ loc: {
79322
+ start: {
79323
+ line: 22,
79324
+ column: 38
79325
+ },
79326
+ end: {
79327
+ line: 30,
79328
+ column: 13
79329
+ }
79330
+ },
79331
+ line: 22
79332
+ },
79333
+ "4": {
79334
+ name: "(anonymous_4)",
79335
+ decl: {
79336
+ start: {
79337
+ line: 37,
79338
+ column: 2
79339
+ },
79340
+ end: {
79341
+ line: 37,
79342
+ column: 3
79343
+ }
79344
+ },
79345
+ loc: {
79346
+ start: {
79347
+ line: 37,
79348
+ column: 16
79349
+ },
79350
+ end: {
79351
+ line: 48,
79352
+ column: 3
79353
+ }
79354
+ },
79355
+ line: 37
79356
+ },
79357
+ "5": {
79358
+ name: "(anonymous_5)",
79359
+ decl: {
79360
+ start: {
79361
+ line: 40,
79362
+ column: 8
79363
+ },
79364
+ end: {
79365
+ line: 40,
79366
+ column: 9
79367
+ }
79368
+ },
79369
+ loc: {
79370
+ start: {
79371
+ line: 41,
79372
+ column: 8
79373
+ },
79374
+ end: {
79375
+ line: 42,
79376
+ column: 72
79377
+ }
79378
+ },
79379
+ line: 41
79380
+ },
79381
+ "6": {
79382
+ name: "(anonymous_6)",
79383
+ decl: {
79384
+ start: {
79385
+ line: 41,
79386
+ column: 8
79387
+ },
79388
+ end: {
79389
+ line: 41,
79390
+ column: 9
79391
+ }
79392
+ },
79393
+ loc: {
79394
+ start: {
79395
+ line: 42,
79396
+ column: 10
79397
+ },
79398
+ end: {
79399
+ line: 42,
79400
+ column: 72
79401
+ }
79402
+ },
79403
+ line: 42
79404
+ },
79405
+ "7": {
79406
+ name: "(anonymous_7)",
79407
+ decl: {
79408
+ start: {
79409
+ line: 44,
79410
+ column: 8
79411
+ },
79412
+ end: {
79413
+ line: 44,
79414
+ column: 9
79415
+ }
79416
+ },
79417
+ loc: {
79418
+ start: {
79419
+ line: 45,
79420
+ column: 8
79421
+ },
79422
+ end: {
79423
+ line: 46,
79424
+ column: 71
79425
+ }
79426
+ },
79427
+ line: 45
79428
+ },
79429
+ "8": {
79430
+ name: "(anonymous_8)",
79431
+ decl: {
79432
+ start: {
79433
+ line: 45,
79434
+ column: 8
79435
+ },
79436
+ end: {
79437
+ line: 45,
79438
+ column: 9
79439
+ }
79440
+ },
79441
+ loc: {
79442
+ start: {
79443
+ line: 46,
79444
+ column: 10
79445
+ },
79446
+ end: {
79447
+ line: 46,
79448
+ column: 71
79449
+ }
79450
+ },
79451
+ line: 46
79452
+ }
79453
+ },
79454
+ branchMap: {
79455
+ "0": {
79456
+ loc: {
79457
+ start: {
79458
+ line: 23,
79459
+ column: 14
79460
+ },
79461
+ end: {
79462
+ line: 25,
79463
+ column: 15
79464
+ }
79465
+ },
79466
+ type: "if",
79467
+ locations: [{
79468
+ start: {
79469
+ line: 23,
79470
+ column: 14
79471
+ },
79472
+ end: {
79473
+ line: 25,
79474
+ column: 15
79475
+ }
79476
+ }, {
79477
+ start: {
79478
+ line: undefined,
79479
+ column: undefined
79480
+ },
79481
+ end: {
79482
+ line: undefined,
79483
+ column: undefined
79484
+ }
79485
+ }],
79486
+ line: 23
79487
+ }
79488
+ },
79489
+ s: {
79490
+ "0": 0,
79491
+ "1": 0,
79492
+ "2": 0,
79493
+ "3": 0,
79494
+ "4": 0,
79495
+ "5": 0,
79496
+ "6": 0,
79497
+ "7": 0,
79498
+ "8": 0,
79499
+ "9": 0,
79500
+ "10": 0
79501
+ },
79502
+ f: {
79503
+ "0": 0,
79504
+ "1": 0,
79505
+ "2": 0,
79506
+ "3": 0,
79507
+ "4": 0,
79508
+ "5": 0,
79509
+ "6": 0,
79510
+ "7": 0,
79511
+ "8": 0
79512
+ },
79513
+ b: {
79514
+ "0": [0, 0]
79515
+ },
79516
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
79517
+ hash: "77628a9eb7976ae1d815c7a467bc38756dd39d33"
79518
+ };
79519
+ var coverage = global[gcv] || (global[gcv] = {});
79520
+ if (!coverage[path] || coverage[path].hash !== hash) {
79521
+ coverage[path] = coverageData;
79522
+ }
79523
+ var actualCoverage = coverage[path];
79524
+ {
79525
+ // @ts-ignore
79526
+ cov_17ka35tc9t = function () {
79527
+ return actualCoverage;
79528
+ };
79529
+ }
79530
+ return actualCoverage;
79531
+ }
79532
+ cov_17ka35tc9t();
79533
+ var HighlightInternal = Extension.create({
79534
+ name: "HighlightInternal",
79535
+ addOptions: function addOptions() {
79536
+ cov_17ka35tc9t().f[0]++;
79537
+ cov_17ka35tc9t().s[0]++;
79538
+ return {
79539
+ types: ["textStyle"]
79540
+ };
79541
+ },
79542
+ addGlobalAttributes: function addGlobalAttributes() {
79543
+ cov_17ka35tc9t().f[1]++;
79544
+ cov_17ka35tc9t().s[1]++;
79545
+ return [{
79546
+ types: this.options.types,
79547
+ attributes: {
79548
+ backgroundColor: {
79549
+ "default": null,
79550
+ parseHTML: function parseHTML(element) {
79551
+ cov_17ka35tc9t().f[2]++;
79552
+ cov_17ka35tc9t().s[2]++;
79553
+ return element.style.backgroundColor.replace(/['"]+/g, "");
79554
+ },
79555
+ renderHTML: function renderHTML(attributes) {
79556
+ cov_17ka35tc9t().f[3]++;
79557
+ cov_17ka35tc9t().s[3]++;
79558
+ if (!attributes.backgroundColor) {
79559
+ cov_17ka35tc9t().b[0][0]++;
79560
+ cov_17ka35tc9t().s[4]++;
79561
+ return {};
79562
+ } else {
79563
+ cov_17ka35tc9t().b[0][1]++;
79564
+ }
79565
+ cov_17ka35tc9t().s[5]++;
79566
+ return {
79567
+ style: "background-color: ".concat(attributes.backgroundColor)
79568
+ };
79569
+ }
79570
+ }
79571
+ }
79572
+ }];
79573
+ },
79574
+ addCommands: function addCommands() {
79575
+ cov_17ka35tc9t().f[4]++;
79576
+ cov_17ka35tc9t().s[6]++;
79577
+ return {
79578
+ setHighlightInternal: function setHighlightInternal(color) {
79579
+ cov_17ka35tc9t().f[5]++;
79580
+ cov_17ka35tc9t().s[7]++;
79581
+ return function (_ref) {
79582
+ var chain = _ref.chain;
79583
+ cov_17ka35tc9t().f[6]++;
79584
+ cov_17ka35tc9t().s[8]++;
79585
+ return chain().setMark("textStyle", {
79586
+ backgroundColor: color
79587
+ }).run();
79588
+ };
79589
+ },
79590
+ unsetHighlightInternal: function unsetHighlightInternal() {
79591
+ cov_17ka35tc9t().f[7]++;
79592
+ cov_17ka35tc9t().s[9]++;
79593
+ return function (_ref2) {
79594
+ var chain = _ref2.chain;
79595
+ cov_17ka35tc9t().f[8]++;
79596
+ cov_17ka35tc9t().s[10]++;
79597
+ return chain().setMark("textStyle", {
79598
+ backgroundColor: null
79599
+ }).run();
79600
+ };
79601
+ }
79602
+ };
79603
+ }
79604
+ });
79605
+
79117
79606
  var deepFreezeEs6 = {exports: {}};
79118
79607
 
79119
79608
  function deepFreeze(obj) {
@@ -111462,7 +111951,7 @@ var VideoExtension = (cov_1io0efe0r8().s[0]++, Node$1.create({
111462
111951
 
111463
111952
  function cov_q50c3y9sz() {
111464
111953
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/hooks/useCustomExtensions.js";
111465
- var hash = "8639806179665e2410090ea61c21a57d5997f442";
111954
+ var hash = "eef68954c1c708bc344c0f0a43d3de8684b60b24";
111466
111955
  var global = new Function("return this")();
111467
111956
  var gcv = "__coverage__";
111468
111957
  var coverageData = {
@@ -111470,181 +111959,181 @@ function cov_q50c3y9sz() {
111470
111959
  statementMap: {
111471
111960
  "0": {
111472
111961
  start: {
111473
- line: 34,
111962
+ line: 35,
111474
111963
  column: 28
111475
111964
  },
111476
111965
  end: {
111477
- line: 126,
111966
+ line: 129,
111478
111967
  column: 1
111479
111968
  }
111480
111969
  },
111481
111970
  "1": {
111482
111971
  start: {
111483
- line: 49,
111972
+ line: 50,
111484
111973
  column: 25
111485
111974
  },
111486
111975
  end: {
111487
- line: 70,
111976
+ line: 73,
111488
111977
  column: 3
111489
111978
  }
111490
111979
  },
111491
111980
  "2": {
111492
111981
  start: {
111493
- line: 71,
111982
+ line: 74,
111494
111983
  column: 2
111495
111984
  },
111496
111985
  end: {
111497
- line: 73,
111986
+ line: 76,
111498
111987
  column: 3
111499
111988
  }
111500
111989
  },
111501
111990
  "3": {
111502
111991
  start: {
111503
- line: 72,
111992
+ line: 75,
111504
111993
  column: 4
111505
111994
  },
111506
111995
  end: {
111507
- line: 72,
111996
+ line: 75,
111508
111997
  column: 34
111509
111998
  }
111510
111999
  },
111511
112000
  "4": {
111512
112001
  start: {
111513
- line: 75,
112002
+ line: 78,
111514
112003
  column: 2
111515
112004
  },
111516
112005
  end: {
111517
- line: 82,
112006
+ line: 85,
111518
112007
  column: 3
111519
112008
  }
111520
112009
  },
111521
112010
  "5": {
111522
112011
  start: {
111523
- line: 76,
112012
+ line: 79,
111524
112013
  column: 4
111525
112014
  },
111526
112015
  end: {
111527
- line: 81,
112016
+ line: 84,
111528
112017
  column: 6
111529
112018
  }
111530
112019
  },
111531
112020
  "6": {
111532
112021
  start: {
111533
- line: 84,
112022
+ line: 87,
111534
112023
  column: 2
111535
112024
  },
111536
112025
  end: {
111537
- line: 86,
112026
+ line: 89,
111538
112027
  column: 3
111539
112028
  }
111540
112029
  },
111541
112030
  "7": {
111542
112031
  start: {
111543
- line: 85,
112032
+ line: 88,
111544
112033
  column: 4
111545
112034
  },
111546
112035
  end: {
111547
- line: 85,
111548
- column: 44
112036
+ line: 88,
112037
+ column: 33
111549
112038
  }
111550
112039
  },
111551
112040
  "8": {
111552
112041
  start: {
111553
- line: 88,
112042
+ line: 91,
111554
112043
  column: 2
111555
112044
  },
111556
112045
  end: {
111557
- line: 97,
112046
+ line: 100,
111558
112047
  column: 3
111559
112048
  }
111560
112049
  },
111561
112050
  "9": {
111562
112051
  start: {
111563
- line: 89,
112052
+ line: 92,
111564
112053
  column: 4
111565
112054
  },
111566
112055
  end: {
111567
- line: 96,
112056
+ line: 99,
111568
112057
  column: 6
111569
112058
  }
111570
112059
  },
111571
112060
  "10": {
111572
112061
  start: {
111573
- line: 99,
112062
+ line: 102,
111574
112063
  column: 2
111575
112064
  },
111576
112065
  end: {
111577
- line: 117,
112066
+ line: 120,
111578
112067
  column: 3
111579
112068
  }
111580
112069
  },
111581
112070
  "11": {
111582
112071
  start: {
111583
- line: 100,
112072
+ line: 103,
111584
112073
  column: 18
111585
112074
  },
111586
112075
  end: {
111587
- line: 100,
112076
+ line: 103,
111588
112077
  column: 52
111589
112078
  }
111590
112079
  },
111591
112080
  "12": {
111592
112081
  start: {
111593
- line: 102,
112082
+ line: 105,
111594
112083
  column: 4
111595
112084
  },
111596
112085
  end: {
111597
- line: 108,
112086
+ line: 111,
111598
112087
  column: 6
111599
112088
  }
111600
112089
  },
111601
112090
  "13": {
111602
112091
  start: {
111603
- line: 110,
112092
+ line: 113,
111604
112093
  column: 4
111605
112094
  },
111606
112095
  end: {
111607
- line: 116,
112096
+ line: 119,
111608
112097
  column: 6
111609
112098
  }
111610
112099
  },
111611
112100
  "14": {
111612
112101
  start: {
111613
- line: 119,
112102
+ line: 122,
111614
112103
  column: 2
111615
112104
  },
111616
112105
  end: {
111617
- line: 121,
112106
+ line: 124,
111618
112107
  column: 3
111619
112108
  }
111620
112109
  },
111621
112110
  "15": {
111622
112111
  start: {
111623
- line: 120,
112112
+ line: 123,
111624
112113
  column: 4
111625
112114
  },
111626
112115
  end: {
111627
- line: 120,
112116
+ line: 123,
111628
112117
  column: 36
111629
112118
  }
111630
112119
  },
111631
112120
  "16": {
111632
112121
  start: {
111633
- line: 123,
112122
+ line: 126,
111634
112123
  column: 2
111635
112124
  },
111636
112125
  end: {
111637
- line: 123,
112126
+ line: 126,
111638
112127
  column: 57
111639
112128
  }
111640
112129
  },
111641
112130
  "17": {
111642
112131
  start: {
111643
- line: 125,
112132
+ line: 128,
111644
112133
  column: 2
111645
112134
  },
111646
112135
  end: {
111647
- line: 125,
112136
+ line: 128,
111648
112137
  column: 26
111649
112138
  }
111650
112139
  }
@@ -111654,47 +112143,47 @@ function cov_q50c3y9sz() {
111654
112143
  name: "(anonymous_0)",
111655
112144
  decl: {
111656
112145
  start: {
111657
- line: 34,
112146
+ line: 35,
111658
112147
  column: 28
111659
112148
  },
111660
112149
  end: {
111661
- line: 34,
112150
+ line: 35,
111662
112151
  column: 29
111663
112152
  }
111664
112153
  },
111665
112154
  loc: {
111666
112155
  start: {
111667
- line: 48,
112156
+ line: 49,
111668
112157
  column: 6
111669
112158
  },
111670
112159
  end: {
111671
- line: 126,
112160
+ line: 129,
111672
112161
  column: 1
111673
112162
  }
111674
112163
  },
111675
- line: 48
112164
+ line: 49
111676
112165
  }
111677
112166
  },
111678
112167
  branchMap: {
111679
112168
  "0": {
111680
112169
  loc: {
111681
112170
  start: {
111682
- line: 71,
112171
+ line: 74,
111683
112172
  column: 2
111684
112173
  },
111685
112174
  end: {
111686
- line: 73,
112175
+ line: 76,
111687
112176
  column: 3
111688
112177
  }
111689
112178
  },
111690
112179
  type: "if",
111691
112180
  locations: [{
111692
112181
  start: {
111693
- line: 71,
112182
+ line: 74,
111694
112183
  column: 2
111695
112184
  },
111696
112185
  end: {
111697
- line: 73,
112186
+ line: 76,
111698
112187
  column: 3
111699
112188
  }
111700
112189
  }, {
@@ -111707,27 +112196,27 @@ function cov_q50c3y9sz() {
111707
112196
  column: undefined
111708
112197
  }
111709
112198
  }],
111710
- line: 71
112199
+ line: 74
111711
112200
  },
111712
112201
  "1": {
111713
112202
  loc: {
111714
112203
  start: {
111715
- line: 75,
112204
+ line: 78,
111716
112205
  column: 2
111717
112206
  },
111718
112207
  end: {
111719
- line: 82,
112208
+ line: 85,
111720
112209
  column: 3
111721
112210
  }
111722
112211
  },
111723
112212
  type: "if",
111724
112213
  locations: [{
111725
112214
  start: {
111726
- line: 75,
112215
+ line: 78,
111727
112216
  column: 2
111728
112217
  },
111729
112218
  end: {
111730
- line: 82,
112219
+ line: 85,
111731
112220
  column: 3
111732
112221
  }
111733
112222
  }, {
@@ -111740,27 +112229,27 @@ function cov_q50c3y9sz() {
111740
112229
  column: undefined
111741
112230
  }
111742
112231
  }],
111743
- line: 75
112232
+ line: 78
111744
112233
  },
111745
112234
  "2": {
111746
112235
  loc: {
111747
112236
  start: {
111748
- line: 84,
112237
+ line: 87,
111749
112238
  column: 2
111750
112239
  },
111751
112240
  end: {
111752
- line: 86,
112241
+ line: 89,
111753
112242
  column: 3
111754
112243
  }
111755
112244
  },
111756
112245
  type: "if",
111757
112246
  locations: [{
111758
112247
  start: {
111759
- line: 84,
112248
+ line: 87,
111760
112249
  column: 2
111761
112250
  },
111762
112251
  end: {
111763
- line: 86,
112252
+ line: 89,
111764
112253
  column: 3
111765
112254
  }
111766
112255
  }, {
@@ -111773,27 +112262,27 @@ function cov_q50c3y9sz() {
111773
112262
  column: undefined
111774
112263
  }
111775
112264
  }],
111776
- line: 84
112265
+ line: 87
111777
112266
  },
111778
112267
  "3": {
111779
112268
  loc: {
111780
112269
  start: {
111781
- line: 88,
112270
+ line: 91,
111782
112271
  column: 2
111783
112272
  },
111784
112273
  end: {
111785
- line: 97,
112274
+ line: 100,
111786
112275
  column: 3
111787
112276
  }
111788
112277
  },
111789
112278
  type: "if",
111790
112279
  locations: [{
111791
112280
  start: {
111792
- line: 88,
112281
+ line: 91,
111793
112282
  column: 2
111794
112283
  },
111795
112284
  end: {
111796
- line: 97,
112285
+ line: 100,
111797
112286
  column: 3
111798
112287
  }
111799
112288
  }, {
@@ -111806,27 +112295,27 @@ function cov_q50c3y9sz() {
111806
112295
  column: undefined
111807
112296
  }
111808
112297
  }],
111809
- line: 88
112298
+ line: 91
111810
112299
  },
111811
112300
  "4": {
111812
112301
  loc: {
111813
112302
  start: {
111814
- line: 99,
112303
+ line: 102,
111815
112304
  column: 2
111816
112305
  },
111817
112306
  end: {
111818
- line: 117,
112307
+ line: 120,
111819
112308
  column: 3
111820
112309
  }
111821
112310
  },
111822
112311
  type: "if",
111823
112312
  locations: [{
111824
112313
  start: {
111825
- line: 99,
112314
+ line: 102,
111826
112315
  column: 2
111827
112316
  },
111828
112317
  end: {
111829
- line: 117,
112318
+ line: 120,
111830
112319
  column: 3
111831
112320
  }
111832
112321
  }, {
@@ -111839,27 +112328,27 @@ function cov_q50c3y9sz() {
111839
112328
  column: undefined
111840
112329
  }
111841
112330
  }],
111842
- line: 99
112331
+ line: 102
111843
112332
  },
111844
112333
  "5": {
111845
112334
  loc: {
111846
112335
  start: {
111847
- line: 119,
112336
+ line: 122,
111848
112337
  column: 2
111849
112338
  },
111850
112339
  end: {
111851
- line: 121,
112340
+ line: 124,
111852
112341
  column: 3
111853
112342
  }
111854
112343
  },
111855
112344
  type: "if",
111856
112345
  locations: [{
111857
112346
  start: {
111858
- line: 119,
112347
+ line: 122,
111859
112348
  column: 2
111860
112349
  },
111861
112350
  end: {
111862
- line: 121,
112351
+ line: 124,
111863
112352
  column: 3
111864
112353
  }
111865
112354
  }, {
@@ -111872,7 +112361,7 @@ function cov_q50c3y9sz() {
111872
112361
  column: undefined
111873
112362
  }
111874
112363
  }],
111875
- line: 119
112364
+ line: 122
111876
112365
  }
111877
112366
  },
111878
112367
  s: {
@@ -111907,7 +112396,7 @@ function cov_q50c3y9sz() {
111907
112396
  "5": [0, 0]
111908
112397
  },
111909
112398
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
111910
- hash: "8639806179665e2410090ea61c21a57d5997f442"
112399
+ hash: "eef68954c1c708bc344c0f0a43d3de8684b60b24"
111911
112400
  };
111912
112401
  var coverage = global[gcv] || (global[gcv] = {});
111913
112402
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -111939,7 +112428,7 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
111939
112428
  setMediaUploader = _ref.setMediaUploader,
111940
112429
  setIsEmbedModalOpen = _ref.setIsEmbedModalOpen;
111941
112430
  cov_q50c3y9sz().f[0]++;
111942
- var customExtensions = (cov_q50c3y9sz().s[1]++, [CharacterCount, Code, CodeBlock, CustomCommands, Document, EmojiSuggestion$1, EmojiPicker, FigCaption, FocusClasses.configure({
112431
+ var customExtensions = (cov_q50c3y9sz().s[1]++, [CharacterCount, Code, CodeBlock, CustomCommands, Document, EmojiSuggestion$1, EmojiPicker, FigCaption, HighlightInternal, FocusClasses.configure({
111943
112432
  mode: "shallowest"
111944
112433
  }), Highlight, ImageExtension$1.configure({
111945
112434
  uploadEndpoint: uploadEndpoint
@@ -111951,7 +112440,7 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
111951
112440
  document: false,
111952
112441
  codeBlock: false,
111953
112442
  code: false
111954
- }), Underline, VideoExtension, KeyboardShortcuts$1.configure({
112443
+ }), TextStyle, Underline, VideoExtension, KeyboardShortcuts$1.configure({
111955
112444
  onSubmit: onSubmit,
111956
112445
  shortcuts: keyboardShortcuts
111957
112446
  })]);
@@ -111977,7 +112466,7 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
111977
112466
  if (options.includes(EDITOR_OPTIONS.TEXT_COLOR)) {
111978
112467
  cov_q50c3y9sz().b[2][0]++;
111979
112468
  cov_q50c3y9sz().s[7]++;
111980
- customExtensions.push(Color, TextStyle);
112469
+ customExtensions.push(Color);
111981
112470
  } else {
111982
112471
  cov_q50c3y9sz().b[2][1]++;
111983
112472
  }
@@ -122158,7 +122647,7 @@ function u(){return (u=Object.assign||function(e){for(var r=1;r<arguments.length
122158
122647
 
122159
122648
  function cov_bf1egtcv4() {
122160
122649
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Fixed/TextColorOption.jsx";
122161
- var hash = "ad219d6e4d579b6227eff2e33862f075e1aaeda9";
122650
+ var hash = "042616887aa618a3693e146b32d2ad657abe58c2";
122162
122651
  var global = new Function("return this")();
122163
122652
  var gcv = "__coverage__";
122164
122653
  var coverageData = {
@@ -122170,7 +122659,7 @@ function cov_bf1egtcv4() {
122170
122659
  column: 24
122171
122660
  },
122172
122661
  end: {
122173
- line: 79,
122662
+ line: 91,
122174
122663
  column: 1
122175
122664
  }
122176
122665
  },
@@ -122310,7 +122799,7 @@ function cov_bf1egtcv4() {
122310
122799
  column: 2
122311
122800
  },
122312
122801
  end: {
122313
- line: 37,
122802
+ line: 39,
122314
122803
  column: 5
122315
122804
  }
122316
122805
  },
@@ -122320,67 +122809,137 @@ function cov_bf1egtcv4() {
122320
122809
  column: 4
122321
122810
  },
122322
122811
  end: {
122323
- line: 34,
122324
- column: 37
122812
+ line: 38,
122813
+ column: 5
122325
122814
  }
122326
122815
  },
122327
122816
  "16": {
122328
122817
  start: {
122329
122818
  line: 35,
122330
- column: 4
122819
+ column: 6
122331
122820
  },
122332
122821
  end: {
122333
122822
  line: 35,
122334
- column: 28
122823
+ column: 29
122335
122824
  }
122336
122825
  },
122337
122826
  "17": {
122338
122827
  start: {
122339
122828
  line: 36,
122340
- column: 4
122829
+ column: 6
122341
122830
  },
122342
122831
  end: {
122343
122832
  line: 36,
122344
- column: 21
122833
+ column: 30
122345
122834
  }
122346
122835
  },
122347
122836
  "18": {
122348
122837
  start: {
122349
- line: 39,
122838
+ line: 37,
122839
+ column: 6
122840
+ },
122841
+ end: {
122842
+ line: 37,
122843
+ column: 23
122844
+ }
122845
+ },
122846
+ "19": {
122847
+ start: {
122848
+ line: 41,
122350
122849
  column: 2
122351
122850
  },
122352
122851
  end: {
122353
- line: 78,
122852
+ line: 49,
122853
+ column: 15
122854
+ }
122855
+ },
122856
+ "20": {
122857
+ start: {
122858
+ line: 42,
122354
122859
  column: 4
122860
+ },
122861
+ end: {
122862
+ line: 42,
122863
+ column: 52
122355
122864
  }
122356
122865
  },
122357
- "19": {
122866
+ "21": {
122867
+ start: {
122868
+ line: 44,
122869
+ column: 4
122870
+ },
122871
+ end: {
122872
+ line: 48,
122873
+ column: 5
122874
+ }
122875
+ },
122876
+ "22": {
122877
+ start: {
122878
+ line: 45,
122879
+ column: 6
122880
+ },
122881
+ end: {
122882
+ line: 45,
122883
+ column: 47
122884
+ }
122885
+ },
122886
+ "23": {
122887
+ start: {
122888
+ line: 46,
122889
+ column: 6
122890
+ },
122891
+ end: {
122892
+ line: 46,
122893
+ column: 45
122894
+ }
122895
+ },
122896
+ "24": {
122897
+ start: {
122898
+ line: 47,
122899
+ column: 6
122900
+ },
122901
+ end: {
122902
+ line: 47,
122903
+ column: 30
122904
+ }
122905
+ },
122906
+ "25": {
122358
122907
  start: {
122359
122908
  line: 51,
122909
+ column: 2
122910
+ },
122911
+ end: {
122912
+ line: 90,
122913
+ column: 4
122914
+ }
122915
+ },
122916
+ "26": {
122917
+ start: {
122918
+ line: 63,
122360
122919
  column: 10
122361
122920
  },
122362
122921
  end: {
122363
- line: 51,
122922
+ line: 63,
122364
122923
  column: 60
122365
122924
  }
122366
122925
  },
122367
- "20": {
122926
+ "27": {
122368
122927
  start: {
122369
- line: 52,
122928
+ line: 64,
122370
122929
  column: 10
122371
122930
  },
122372
122931
  end: {
122373
- line: 52,
122932
+ line: 64,
122374
122933
  column: 25
122375
122934
  }
122376
122935
  },
122377
- "21": {
122936
+ "28": {
122378
122937
  start: {
122379
- line: 66,
122938
+ line: 78,
122380
122939
  column: 27
122381
122940
  },
122382
122941
  end: {
122383
- line: 66,
122942
+ line: 78,
122384
122943
  column: 51
122385
122944
  }
122386
122945
  }
@@ -122404,7 +122963,7 @@ function cov_bf1egtcv4() {
122404
122963
  column: 56
122405
122964
  },
122406
122965
  end: {
122407
- line: 79,
122966
+ line: 91,
122408
122967
  column: 1
122409
122968
  }
122410
122969
  },
@@ -122500,7 +123059,7 @@ function cov_bf1egtcv4() {
122500
123059
  column: 49
122501
123060
  },
122502
123061
  end: {
122503
- line: 37,
123062
+ line: 39,
122504
123063
  column: 3
122505
123064
  }
122506
123065
  },
@@ -122510,49 +123069,73 @@ function cov_bf1egtcv4() {
122510
123069
  name: "(anonymous_5)",
122511
123070
  decl: {
122512
123071
  start: {
122513
- line: 50,
123072
+ line: 41,
123073
+ column: 12
123074
+ },
123075
+ end: {
123076
+ line: 41,
123077
+ column: 13
123078
+ }
123079
+ },
123080
+ loc: {
123081
+ start: {
123082
+ line: 41,
123083
+ column: 18
123084
+ },
123085
+ end: {
123086
+ line: 49,
123087
+ column: 3
123088
+ }
123089
+ },
123090
+ line: 41
123091
+ },
123092
+ "6": {
123093
+ name: "(anonymous_6)",
123094
+ decl: {
123095
+ start: {
123096
+ line: 62,
122514
123097
  column: 17
122515
123098
  },
122516
123099
  end: {
122517
- line: 50,
123100
+ line: 62,
122518
123101
  column: 18
122519
123102
  }
122520
123103
  },
122521
123104
  loc: {
122522
123105
  start: {
122523
- line: 50,
123106
+ line: 62,
122524
123107
  column: 23
122525
123108
  },
122526
123109
  end: {
122527
- line: 53,
123110
+ line: 65,
122528
123111
  column: 9
122529
123112
  }
122530
123113
  },
122531
- line: 50
123114
+ line: 62
122532
123115
  },
122533
- "6": {
122534
- name: "(anonymous_6)",
123116
+ "7": {
123117
+ name: "(anonymous_7)",
122535
123118
  decl: {
122536
123119
  start: {
122537
- line: 66,
123120
+ line: 78,
122538
123121
  column: 22
122539
123122
  },
122540
123123
  end: {
122541
- line: 66,
123124
+ line: 78,
122542
123125
  column: 23
122543
123126
  }
122544
123127
  },
122545
123128
  loc: {
122546
123129
  start: {
122547
- line: 66,
123130
+ line: 78,
122548
123131
  column: 27
122549
123132
  },
122550
123133
  end: {
122551
- line: 66,
123134
+ line: 78,
122552
123135
  column: 51
122553
123136
  }
122554
123137
  },
122555
- line: 66
123138
+ line: 78
122556
123139
  }
122557
123140
  },
122558
123141
  branchMap: {
@@ -122563,28 +123146,28 @@ function cov_bf1egtcv4() {
122563
123146
  column: 4
122564
123147
  },
122565
123148
  end: {
122566
- line: 34,
122567
- column: 36
123149
+ line: 38,
123150
+ column: 5
122568
123151
  }
122569
123152
  },
122570
- type: "binary-expr",
123153
+ type: "if",
122571
123154
  locations: [{
122572
123155
  start: {
122573
123156
  line: 34,
122574
123157
  column: 4
122575
123158
  },
122576
123159
  end: {
122577
- line: 34,
122578
- column: 10
123160
+ line: 38,
123161
+ column: 5
122579
123162
  }
122580
123163
  }, {
122581
123164
  start: {
122582
- line: 34,
122583
- column: 14
123165
+ line: undefined,
123166
+ column: undefined
122584
123167
  },
122585
123168
  end: {
122586
- line: 34,
122587
- column: 36
123169
+ line: undefined,
123170
+ column: undefined
122588
123171
  }
122589
123172
  }],
122590
123173
  line: 34
@@ -122592,68 +123175,101 @@ function cov_bf1egtcv4() {
122592
123175
  "1": {
122593
123176
  loc: {
122594
123177
  start: {
122595
- line: 42,
123178
+ line: 44,
123179
+ column: 4
123180
+ },
123181
+ end: {
123182
+ line: 48,
123183
+ column: 5
123184
+ }
123185
+ },
123186
+ type: "if",
123187
+ locations: [{
123188
+ start: {
123189
+ line: 44,
123190
+ column: 4
123191
+ },
123192
+ end: {
123193
+ line: 48,
123194
+ column: 5
123195
+ }
123196
+ }, {
123197
+ start: {
123198
+ line: undefined,
123199
+ column: undefined
123200
+ },
123201
+ end: {
123202
+ line: undefined,
123203
+ column: undefined
123204
+ }
123205
+ }],
123206
+ line: 44
123207
+ },
123208
+ "2": {
123209
+ loc: {
123210
+ start: {
123211
+ line: 54,
122596
123212
  column: 21
122597
123213
  },
122598
123214
  end: {
122599
- line: 42,
123215
+ line: 54,
122600
123216
  column: 50
122601
123217
  }
122602
123218
  },
122603
123219
  type: "cond-expr",
122604
123220
  locations: [{
122605
123221
  start: {
122606
- line: 42,
123222
+ line: 54,
122607
123223
  column: 30
122608
123224
  },
122609
123225
  end: {
122610
- line: 42,
123226
+ line: 54,
122611
123227
  column: 41
122612
123228
  }
122613
123229
  }, {
122614
123230
  start: {
122615
- line: 42,
123231
+ line: 54,
122616
123232
  column: 44
122617
123233
  },
122618
123234
  end: {
122619
- line: 42,
123235
+ line: 54,
122620
123236
  column: 50
122621
123237
  }
122622
123238
  }],
122623
- line: 42
123239
+ line: 54
122624
123240
  },
122625
- "2": {
123241
+ "3": {
122626
123242
  loc: {
122627
123243
  start: {
122628
- line: 56,
123244
+ line: 68,
122629
123245
  column: 17
122630
123246
  },
122631
123247
  end: {
122632
- line: 56,
123248
+ line: 68,
122633
123249
  column: 35
122634
123250
  }
122635
123251
  },
122636
123252
  type: "binary-expr",
122637
123253
  locations: [{
122638
123254
  start: {
122639
- line: 56,
123255
+ line: 68,
122640
123256
  column: 17
122641
123257
  },
122642
123258
  end: {
122643
- line: 56,
123259
+ line: 68,
122644
123260
  column: 22
122645
123261
  }
122646
123262
  }, {
122647
123263
  start: {
122648
- line: 56,
123264
+ line: 68,
122649
123265
  column: 26
122650
123266
  },
122651
123267
  end: {
122652
- line: 56,
123268
+ line: 68,
122653
123269
  column: 35
122654
123270
  }
122655
123271
  }],
122656
- line: 56
123272
+ line: 68
122657
123273
  }
122658
123274
  },
122659
123275
  s: {
@@ -122678,7 +123294,14 @@ function cov_bf1egtcv4() {
122678
123294
  "18": 0,
122679
123295
  "19": 0,
122680
123296
  "20": 0,
122681
- "21": 0
123297
+ "21": 0,
123298
+ "22": 0,
123299
+ "23": 0,
123300
+ "24": 0,
123301
+ "25": 0,
123302
+ "26": 0,
123303
+ "27": 0,
123304
+ "28": 0
122682
123305
  },
122683
123306
  f: {
122684
123307
  "0": 0,
@@ -122687,15 +123310,17 @@ function cov_bf1egtcv4() {
122687
123310
  "3": 0,
122688
123311
  "4": 0,
122689
123312
  "5": 0,
122690
- "6": 0
123313
+ "6": 0,
123314
+ "7": 0
122691
123315
  },
122692
123316
  b: {
122693
123317
  "0": [0, 0],
122694
123318
  "1": [0, 0],
122695
- "2": [0, 0]
123319
+ "2": [0, 0],
123320
+ "3": [0, 0]
122696
123321
  },
122697
123322
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
122698
- hash: "ad219d6e4d579b6227eff2e33862f075e1aaeda9"
123323
+ hash: "042616887aa618a3693e146b32d2ad657abe58c2"
122699
123324
  };
122700
123325
  var coverage = global[gcv] || (global[gcv] = {});
122701
123326
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -122754,17 +123379,41 @@ var TextColorOption = function TextColorOption(_ref) {
122754
123379
  reactUtils.useOnClickOutside(dropdownWrapperRef, function (event) {
122755
123380
  cov_bf1egtcv4().f[4]++;
122756
123381
  cov_bf1egtcv4().s[15]++;
122757
- (cov_bf1egtcv4().b[0][0]++, isOpen) && (cov_bf1egtcv4().b[0][1]++, event.preventDefault());
122758
- cov_bf1egtcv4().s[16]++;
122759
- editor.commands.focus();
122760
- cov_bf1egtcv4().s[17]++;
122761
- setIsOpen(false);
123382
+ if (isOpen) {
123383
+ cov_bf1egtcv4().b[0][0]++;
123384
+ cov_bf1egtcv4().s[16]++;
123385
+ event.preventDefault();
123386
+ cov_bf1egtcv4().s[17]++;
123387
+ editor.commands.focus();
123388
+ cov_bf1egtcv4().s[18]++;
123389
+ setIsOpen(false);
123390
+ } else {
123391
+ cov_bf1egtcv4().b[0][1]++;
123392
+ }
122762
123393
  });
122763
- cov_bf1egtcv4().s[18]++;
123394
+ cov_bf1egtcv4().s[19]++;
123395
+ React$6.useEffect(function () {
123396
+ cov_bf1egtcv4().f[5]++;
123397
+ cov_bf1egtcv4().s[20]++;
123398
+ editor.commands.setHighlightInternal("#ACCEF7");
123399
+ cov_bf1egtcv4().s[21]++;
123400
+ if (!isOpen) {
123401
+ cov_bf1egtcv4().b[1][0]++;
123402
+ cov_bf1egtcv4().s[22]++;
123403
+ editor.commands.unsetHighlightInternal();
123404
+ cov_bf1egtcv4().s[23]++;
123405
+ editor.commands.removeEmptyTextStyle();
123406
+ cov_bf1egtcv4().s[24]++;
123407
+ editor.commands.focus();
123408
+ } else {
123409
+ cov_bf1egtcv4().b[1][1]++;
123410
+ }
123411
+ }, [isOpen]);
123412
+ cov_bf1egtcv4().s[25]++;
122764
123413
  return /*#__PURE__*/React__default["default"].createElement("div", {
122765
123414
  ref: dropdownWrapperRef
122766
123415
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
122767
- buttonStyle: isOpen ? (cov_bf1egtcv4().b[1][0]++, "secondary") : (cov_bf1egtcv4().b[1][1]++, "text"),
123416
+ buttonStyle: isOpen ? (cov_bf1egtcv4().b[2][0]++, "secondary") : (cov_bf1egtcv4().b[2][1]++, "text"),
122768
123417
  icon: neetoIcons.Customize,
122769
123418
  isOpen: isOpen,
122770
123419
  buttonProps: {
@@ -122775,14 +123424,14 @@ var TextColorOption = function TextColorOption(_ref) {
122775
123424
  className: "neeto-editor-fixed-menu__item neeto-editor-text-color-option"
122776
123425
  },
122777
123426
  onClick: function onClick() {
122778
- cov_bf1egtcv4().f[5]++;
122779
- cov_bf1egtcv4().s[19]++;
123427
+ cov_bf1egtcv4().f[6]++;
123428
+ cov_bf1egtcv4().s[26]++;
122780
123429
  setColor(editor.getAttributes("textStyle").color);
122781
- cov_bf1egtcv4().s[20]++;
123430
+ cov_bf1egtcv4().s[27]++;
122782
123431
  setIsOpen(ramda.not);
122783
123432
  }
122784
123433
  }, /*#__PURE__*/React__default["default"].createElement(Z, {
122785
- color: (cov_bf1egtcv4().b[2][0]++, color) || (cov_bf1egtcv4().b[2][1]++, "#000000"),
123434
+ color: (cov_bf1egtcv4().b[3][0]++, color) || (cov_bf1egtcv4().b[3][1]++, "#000000"),
122786
123435
  onChange: handleColorChange
122787
123436
  }), /*#__PURE__*/React__default["default"].createElement("div", {
122788
123437
  className: "neeto-editor-text-color-option__options-group"
@@ -122793,8 +123442,8 @@ var TextColorOption = function TextColorOption(_ref) {
122793
123442
  size: "small",
122794
123443
  value: color,
122795
123444
  onChange: function onChange(e) {
122796
- cov_bf1egtcv4().f[6]++;
122797
- cov_bf1egtcv4().s[21]++;
123445
+ cov_bf1egtcv4().f[7]++;
123446
+ cov_bf1egtcv4().s[28]++;
122798
123447
  return setColor(e.target.value);
122799
123448
  }
122800
123449
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -125361,7 +126010,7 @@ var FontSizeOption = function FontSizeOption(_ref2) {
125361
126010
 
125362
126011
  function cov_7xzegtncw() {
125363
126012
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Fixed/LinkOption.jsx";
125364
- var hash = "b40876235344144786bc2e8c21e4b67359f1e3b4";
126013
+ var hash = "00ac6f0ef7b9efb21f7ff00bb225c049192f1e91";
125365
126014
  var global = new Function("return this")();
125366
126015
  var gcv = "__coverage__";
125367
126016
  var coverageData = {
@@ -125383,7 +126032,7 @@ function cov_7xzegtncw() {
125383
126032
  column: 19
125384
126033
  },
125385
126034
  end: {
125386
- line: 96,
126035
+ line: 106,
125387
126036
  column: 1
125388
126037
  }
125389
126038
  },
@@ -125663,27 +126312,87 @@ function cov_7xzegtncw() {
125663
126312
  column: 2
125664
126313
  },
125665
126314
  end: {
125666
- line: 95,
125667
- column: 4
126315
+ line: 62,
126316
+ column: 15
125668
126317
  }
125669
126318
  },
125670
126319
  "30": {
125671
126320
  start: {
125672
- line: 77,
126321
+ line: 55,
126322
+ column: 4
126323
+ },
126324
+ end: {
126325
+ line: 55,
126326
+ column: 52
126327
+ }
126328
+ },
126329
+ "31": {
126330
+ start: {
126331
+ line: 57,
126332
+ column: 4
126333
+ },
126334
+ end: {
126335
+ line: 61,
126336
+ column: 5
126337
+ }
126338
+ },
126339
+ "32": {
126340
+ start: {
126341
+ line: 58,
126342
+ column: 6
126343
+ },
126344
+ end: {
126345
+ line: 58,
125673
126346
  column: 47
126347
+ }
126348
+ },
126349
+ "33": {
126350
+ start: {
126351
+ line: 59,
126352
+ column: 6
125674
126353
  },
125675
126354
  end: {
125676
- line: 77,
126355
+ line: 59,
126356
+ column: 45
126357
+ }
126358
+ },
126359
+ "34": {
126360
+ start: {
126361
+ line: 60,
126362
+ column: 6
126363
+ },
126364
+ end: {
126365
+ line: 60,
126366
+ column: 30
126367
+ }
126368
+ },
126369
+ "35": {
126370
+ start: {
126371
+ line: 64,
126372
+ column: 2
126373
+ },
126374
+ end: {
126375
+ line: 105,
126376
+ column: 4
126377
+ }
126378
+ },
126379
+ "36": {
126380
+ start: {
126381
+ line: 87,
126382
+ column: 47
126383
+ },
126384
+ end: {
126385
+ line: 87,
125677
126386
  column: 66
125678
126387
  }
125679
126388
  },
125680
- "31": {
126389
+ "37": {
125681
126390
  start: {
125682
- line: 78,
126391
+ line: 88,
125683
126392
  column: 25
125684
126393
  },
125685
126394
  end: {
125686
- line: 78,
126395
+ line: 88,
125687
126396
  column: 37
125688
126397
  }
125689
126398
  }
@@ -125707,7 +126416,7 @@ function cov_7xzegtncw() {
125707
126416
  column: 51
125708
126417
  },
125709
126418
  end: {
125710
- line: 96,
126419
+ line: 106,
125711
126420
  column: 1
125712
126421
  }
125713
126422
  },
@@ -125861,49 +126570,73 @@ function cov_7xzegtncw() {
125861
126570
  name: "(anonymous_7)",
125862
126571
  decl: {
125863
126572
  start: {
125864
- line: 77,
126573
+ line: 54,
126574
+ column: 12
126575
+ },
126576
+ end: {
126577
+ line: 54,
126578
+ column: 13
126579
+ }
126580
+ },
126581
+ loc: {
126582
+ start: {
126583
+ line: 54,
126584
+ column: 18
126585
+ },
126586
+ end: {
126587
+ line: 62,
126588
+ column: 3
126589
+ }
126590
+ },
126591
+ line: 54
126592
+ },
126593
+ "8": {
126594
+ name: "(anonymous_8)",
126595
+ decl: {
126596
+ start: {
126597
+ line: 87,
125865
126598
  column: 20
125866
126599
  },
125867
126600
  end: {
125868
- line: 77,
126601
+ line: 87,
125869
126602
  column: 21
125870
126603
  }
125871
126604
  },
125872
126605
  loc: {
125873
126606
  start: {
125874
- line: 77,
126607
+ line: 87,
125875
126608
  column: 47
125876
126609
  },
125877
126610
  end: {
125878
- line: 77,
126611
+ line: 87,
125879
126612
  column: 66
125880
126613
  }
125881
126614
  },
125882
- line: 77
126615
+ line: 87
125883
126616
  },
125884
- "8": {
125885
- name: "(anonymous_8)",
126617
+ "9": {
126618
+ name: "(anonymous_9)",
125886
126619
  decl: {
125887
126620
  start: {
125888
- line: 78,
126621
+ line: 88,
125889
126622
  column: 19
125890
126623
  },
125891
126624
  end: {
125892
- line: 78,
126625
+ line: 88,
125893
126626
  column: 20
125894
126627
  }
125895
126628
  },
125896
126629
  loc: {
125897
126630
  start: {
125898
- line: 78,
126631
+ line: 88,
125899
126632
  column: 25
125900
126633
  },
125901
126634
  end: {
125902
- line: 78,
126635
+ line: 88,
125903
126636
  column: 37
125904
126637
  }
125905
126638
  },
125906
- line: 78
126639
+ line: 88
125907
126640
  }
125908
126641
  },
125909
126642
  branchMap: {
@@ -126009,68 +126742,101 @@ function cov_7xzegtncw() {
126009
126742
  "3": {
126010
126743
  loc: {
126011
126744
  start: {
126012
- line: 56,
126745
+ line: 57,
126746
+ column: 4
126747
+ },
126748
+ end: {
126749
+ line: 61,
126750
+ column: 5
126751
+ }
126752
+ },
126753
+ type: "if",
126754
+ locations: [{
126755
+ start: {
126756
+ line: 57,
126757
+ column: 4
126758
+ },
126759
+ end: {
126760
+ line: 61,
126761
+ column: 5
126762
+ }
126763
+ }, {
126764
+ start: {
126765
+ line: undefined,
126766
+ column: undefined
126767
+ },
126768
+ end: {
126769
+ line: undefined,
126770
+ column: undefined
126771
+ }
126772
+ }],
126773
+ line: 57
126774
+ },
126775
+ "4": {
126776
+ loc: {
126777
+ start: {
126778
+ line: 66,
126013
126779
  column: 19
126014
126780
  },
126015
126781
  end: {
126016
- line: 56,
126782
+ line: 66,
126017
126783
  column: 50
126018
126784
  }
126019
126785
  },
126020
126786
  type: "cond-expr",
126021
126787
  locations: [{
126022
126788
  start: {
126023
- line: 56,
126789
+ line: 66,
126024
126790
  column: 30
126025
126791
  },
126026
126792
  end: {
126027
- line: 56,
126793
+ line: 66,
126028
126794
  column: 41
126029
126795
  }
126030
126796
  }, {
126031
126797
  start: {
126032
- line: 56,
126798
+ line: 66,
126033
126799
  column: 44
126034
126800
  },
126035
126801
  end: {
126036
- line: 56,
126802
+ line: 66,
126037
126803
  column: 50
126038
126804
  }
126039
126805
  }],
126040
- line: 56
126806
+ line: 66
126041
126807
  },
126042
- "4": {
126808
+ "5": {
126043
126809
  loc: {
126044
126810
  start: {
126045
- line: 85,
126811
+ line: 95,
126046
126812
  column: 9
126047
126813
  },
126048
126814
  end: {
126049
- line: 92,
126815
+ line: 102,
126050
126816
  column: 9
126051
126817
  }
126052
126818
  },
126053
126819
  type: "binary-expr",
126054
126820
  locations: [{
126055
126821
  start: {
126056
- line: 85,
126822
+ line: 95,
126057
126823
  column: 9
126058
126824
  },
126059
126825
  end: {
126060
- line: 85,
126826
+ line: 95,
126061
126827
  column: 17
126062
126828
  }
126063
126829
  }, {
126064
126830
  start: {
126065
- line: 86,
126831
+ line: 96,
126066
126832
  column: 10
126067
126833
  },
126068
126834
  end: {
126069
- line: 91,
126835
+ line: 101,
126070
126836
  column: 12
126071
126837
  }
126072
126838
  }],
126073
- line: 85
126839
+ line: 95
126074
126840
  }
126075
126841
  },
126076
126842
  s: {
@@ -126105,7 +126871,13 @@ function cov_7xzegtncw() {
126105
126871
  "28": 0,
126106
126872
  "29": 0,
126107
126873
  "30": 0,
126108
- "31": 0
126874
+ "31": 0,
126875
+ "32": 0,
126876
+ "33": 0,
126877
+ "34": 0,
126878
+ "35": 0,
126879
+ "36": 0,
126880
+ "37": 0
126109
126881
  },
126110
126882
  f: {
126111
126883
  "0": 0,
@@ -126116,17 +126888,19 @@ function cov_7xzegtncw() {
126116
126888
  "5": 0,
126117
126889
  "6": 0,
126118
126890
  "7": 0,
126119
- "8": 0
126891
+ "8": 0,
126892
+ "9": 0
126120
126893
  },
126121
126894
  b: {
126122
126895
  "0": [0, 0],
126123
126896
  "1": [0, 0],
126124
126897
  "2": [0, 0],
126125
126898
  "3": [0, 0],
126126
- "4": [0, 0]
126899
+ "4": [0, 0],
126900
+ "5": [0, 0]
126127
126901
  },
126128
126902
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
126129
- hash: "b40876235344144786bc2e8c21e4b67359f1e3b4"
126903
+ hash: "00ac6f0ef7b9efb21f7ff00bb225c049192f1e91"
126130
126904
  };
126131
126905
  var coverage = global[gcv] || (global[gcv] = {});
126132
126906
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -126235,8 +127009,26 @@ var LinkOption = function LinkOption(_ref2) {
126235
127009
  handleClose();
126236
127010
  };
126237
127011
  cov_7xzegtncw().s[29]++;
127012
+ React$6.useEffect(function () {
127013
+ cov_7xzegtncw().f[7]++;
127014
+ cov_7xzegtncw().s[30]++;
127015
+ editor.commands.setHighlightInternal("#ACCEF7");
127016
+ cov_7xzegtncw().s[31]++;
127017
+ if (!isOpen) {
127018
+ cov_7xzegtncw().b[3][0]++;
127019
+ cov_7xzegtncw().s[32]++;
127020
+ editor.commands.unsetHighlightInternal();
127021
+ cov_7xzegtncw().s[33]++;
127022
+ editor.commands.removeEmptyTextStyle();
127023
+ cov_7xzegtncw().s[34]++;
127024
+ editor.commands.focus();
127025
+ } else {
127026
+ cov_7xzegtncw().b[3][1]++;
127027
+ }
127028
+ }, [isOpen]);
127029
+ cov_7xzegtncw().s[35]++;
126238
127030
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
126239
- buttonStyle: isActive ? (cov_7xzegtncw().b[3][0]++, "secondary") : (cov_7xzegtncw().b[3][1]++, "text"),
127031
+ buttonStyle: isActive ? (cov_7xzegtncw().b[4][0]++, "secondary") : (cov_7xzegtncw().b[4][1]++, "text"),
126240
127032
  closeOnSelect: false,
126241
127033
  "data-cy": "neeto-editor-fixed-menu-link-option",
126242
127034
  icon: neetoIcons.Link,
@@ -126263,20 +127055,20 @@ var LinkOption = function LinkOption(_ref2) {
126263
127055
  value: urlString,
126264
127056
  onChange: function onChange(_ref10) {
126265
127057
  var value = _ref10.target.value;
126266
- cov_7xzegtncw().f[7]++;
126267
- cov_7xzegtncw().s[30]++;
127058
+ cov_7xzegtncw().f[8]++;
127059
+ cov_7xzegtncw().s[36]++;
126268
127060
  return setUrlString(value);
126269
127061
  },
126270
127062
  onFocus: function onFocus() {
126271
- cov_7xzegtncw().f[8]++;
126272
- cov_7xzegtncw().s[31]++;
127063
+ cov_7xzegtncw().f[9]++;
127064
+ cov_7xzegtncw().s[37]++;
126273
127065
  return setError("");
126274
127066
  }
126275
127067
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
126276
127068
  "data-cy": "neeto-editor-fixed-menu-link-option-link-button",
126277
127069
  label: t("menu.link"),
126278
127070
  onClick: handleLink
126279
- }), (cov_7xzegtncw().b[4][0]++, isActive) && (cov_7xzegtncw().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
127071
+ }), (cov_7xzegtncw().b[5][0]++, isActive) && (cov_7xzegtncw().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
126280
127072
  "data-cy": "neeto-editor-fixed-menu-link-option-unlink-button",
126281
127073
  label: t("common.unlink"),
126282
127074
  style: "text",