@bigbinary/neeto-editor 1.26.5 → 1.26.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js 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
  }
@@ -114701,7 +115190,7 @@ _default = lib.default = MasonryInfiniteScroller;
114701
115190
 
114702
115191
  function cov_38kboi50e() {
114703
115192
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/apis/unsplash.js";
114704
- var hash = "c2059e8c31c3882535ea7bcc18b105715cba8523";
115193
+ var hash = "aaf273db8c262d99ce052881f5cac925425de3f6";
114705
115194
  var global = new Function("return this")();
114706
115195
  var gcv = "__coverage__";
114707
115196
  var coverageData = {
@@ -114713,7 +115202,7 @@ function cov_38kboi50e() {
114713
115202
  column: 36
114714
115203
  },
114715
115204
  end: {
114716
- line: 16,
115205
+ line: 15,
114717
115206
  column: 4
114718
115207
  }
114719
115208
  },
@@ -114723,7 +115212,7 @@ function cov_38kboi50e() {
114723
115212
  column: 2
114724
115213
  },
114725
115214
  end: {
114726
- line: 16,
115215
+ line: 15,
114727
115216
  column: 4
114728
115217
  }
114729
115218
  }
@@ -114747,7 +115236,7 @@ function cov_38kboi50e() {
114747
115236
  column: 2
114748
115237
  },
114749
115238
  end: {
114750
- line: 16,
115239
+ line: 15,
114751
115240
  column: 4
114752
115241
  }
114753
115242
  },
@@ -114764,7 +115253,7 @@ function cov_38kboi50e() {
114764
115253
  },
114765
115254
  b: {},
114766
115255
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
114767
- hash: "c2059e8c31c3882535ea7bcc18b105715cba8523"
115256
+ hash: "aaf273db8c262d99ce052881f5cac925425de3f6"
114768
115257
  };
114769
115258
  var coverage = global[gcv] || (global[gcv] = {});
114770
115259
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -114794,7 +115283,6 @@ var searchUnsplashImages = function searchUnsplashImages(_ref) {
114794
115283
  params: {
114795
115284
  page: pageNo,
114796
115285
  per_page: 30,
114797
- order_by: "popular",
114798
115286
  query: query
114799
115287
  }
114800
115288
  });
@@ -122158,7 +122646,7 @@ function u(){return (u=Object.assign||function(e){for(var r=1;r<arguments.length
122158
122646
 
122159
122647
  function cov_bf1egtcv4() {
122160
122648
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Fixed/TextColorOption.jsx";
122161
- var hash = "ad219d6e4d579b6227eff2e33862f075e1aaeda9";
122649
+ var hash = "042616887aa618a3693e146b32d2ad657abe58c2";
122162
122650
  var global = new Function("return this")();
122163
122651
  var gcv = "__coverage__";
122164
122652
  var coverageData = {
@@ -122170,7 +122658,7 @@ function cov_bf1egtcv4() {
122170
122658
  column: 24
122171
122659
  },
122172
122660
  end: {
122173
- line: 79,
122661
+ line: 91,
122174
122662
  column: 1
122175
122663
  }
122176
122664
  },
@@ -122310,7 +122798,7 @@ function cov_bf1egtcv4() {
122310
122798
  column: 2
122311
122799
  },
122312
122800
  end: {
122313
- line: 37,
122801
+ line: 39,
122314
122802
  column: 5
122315
122803
  }
122316
122804
  },
@@ -122320,67 +122808,137 @@ function cov_bf1egtcv4() {
122320
122808
  column: 4
122321
122809
  },
122322
122810
  end: {
122323
- line: 34,
122324
- column: 37
122811
+ line: 38,
122812
+ column: 5
122325
122813
  }
122326
122814
  },
122327
122815
  "16": {
122328
122816
  start: {
122329
122817
  line: 35,
122330
- column: 4
122818
+ column: 6
122331
122819
  },
122332
122820
  end: {
122333
122821
  line: 35,
122334
- column: 28
122822
+ column: 29
122335
122823
  }
122336
122824
  },
122337
122825
  "17": {
122338
122826
  start: {
122339
122827
  line: 36,
122340
- column: 4
122828
+ column: 6
122341
122829
  },
122342
122830
  end: {
122343
122831
  line: 36,
122344
- column: 21
122832
+ column: 30
122345
122833
  }
122346
122834
  },
122347
122835
  "18": {
122348
122836
  start: {
122349
- line: 39,
122837
+ line: 37,
122838
+ column: 6
122839
+ },
122840
+ end: {
122841
+ line: 37,
122842
+ column: 23
122843
+ }
122844
+ },
122845
+ "19": {
122846
+ start: {
122847
+ line: 41,
122350
122848
  column: 2
122351
122849
  },
122352
122850
  end: {
122353
- line: 78,
122851
+ line: 49,
122852
+ column: 15
122853
+ }
122854
+ },
122855
+ "20": {
122856
+ start: {
122857
+ line: 42,
122354
122858
  column: 4
122859
+ },
122860
+ end: {
122861
+ line: 42,
122862
+ column: 52
122355
122863
  }
122356
122864
  },
122357
- "19": {
122865
+ "21": {
122866
+ start: {
122867
+ line: 44,
122868
+ column: 4
122869
+ },
122870
+ end: {
122871
+ line: 48,
122872
+ column: 5
122873
+ }
122874
+ },
122875
+ "22": {
122876
+ start: {
122877
+ line: 45,
122878
+ column: 6
122879
+ },
122880
+ end: {
122881
+ line: 45,
122882
+ column: 47
122883
+ }
122884
+ },
122885
+ "23": {
122886
+ start: {
122887
+ line: 46,
122888
+ column: 6
122889
+ },
122890
+ end: {
122891
+ line: 46,
122892
+ column: 45
122893
+ }
122894
+ },
122895
+ "24": {
122896
+ start: {
122897
+ line: 47,
122898
+ column: 6
122899
+ },
122900
+ end: {
122901
+ line: 47,
122902
+ column: 30
122903
+ }
122904
+ },
122905
+ "25": {
122358
122906
  start: {
122359
122907
  line: 51,
122908
+ column: 2
122909
+ },
122910
+ end: {
122911
+ line: 90,
122912
+ column: 4
122913
+ }
122914
+ },
122915
+ "26": {
122916
+ start: {
122917
+ line: 63,
122360
122918
  column: 10
122361
122919
  },
122362
122920
  end: {
122363
- line: 51,
122921
+ line: 63,
122364
122922
  column: 60
122365
122923
  }
122366
122924
  },
122367
- "20": {
122925
+ "27": {
122368
122926
  start: {
122369
- line: 52,
122927
+ line: 64,
122370
122928
  column: 10
122371
122929
  },
122372
122930
  end: {
122373
- line: 52,
122931
+ line: 64,
122374
122932
  column: 25
122375
122933
  }
122376
122934
  },
122377
- "21": {
122935
+ "28": {
122378
122936
  start: {
122379
- line: 66,
122937
+ line: 78,
122380
122938
  column: 27
122381
122939
  },
122382
122940
  end: {
122383
- line: 66,
122941
+ line: 78,
122384
122942
  column: 51
122385
122943
  }
122386
122944
  }
@@ -122404,7 +122962,7 @@ function cov_bf1egtcv4() {
122404
122962
  column: 56
122405
122963
  },
122406
122964
  end: {
122407
- line: 79,
122965
+ line: 91,
122408
122966
  column: 1
122409
122967
  }
122410
122968
  },
@@ -122500,7 +123058,7 @@ function cov_bf1egtcv4() {
122500
123058
  column: 49
122501
123059
  },
122502
123060
  end: {
122503
- line: 37,
123061
+ line: 39,
122504
123062
  column: 3
122505
123063
  }
122506
123064
  },
@@ -122510,49 +123068,73 @@ function cov_bf1egtcv4() {
122510
123068
  name: "(anonymous_5)",
122511
123069
  decl: {
122512
123070
  start: {
122513
- line: 50,
123071
+ line: 41,
123072
+ column: 12
123073
+ },
123074
+ end: {
123075
+ line: 41,
123076
+ column: 13
123077
+ }
123078
+ },
123079
+ loc: {
123080
+ start: {
123081
+ line: 41,
123082
+ column: 18
123083
+ },
123084
+ end: {
123085
+ line: 49,
123086
+ column: 3
123087
+ }
123088
+ },
123089
+ line: 41
123090
+ },
123091
+ "6": {
123092
+ name: "(anonymous_6)",
123093
+ decl: {
123094
+ start: {
123095
+ line: 62,
122514
123096
  column: 17
122515
123097
  },
122516
123098
  end: {
122517
- line: 50,
123099
+ line: 62,
122518
123100
  column: 18
122519
123101
  }
122520
123102
  },
122521
123103
  loc: {
122522
123104
  start: {
122523
- line: 50,
123105
+ line: 62,
122524
123106
  column: 23
122525
123107
  },
122526
123108
  end: {
122527
- line: 53,
123109
+ line: 65,
122528
123110
  column: 9
122529
123111
  }
122530
123112
  },
122531
- line: 50
123113
+ line: 62
122532
123114
  },
122533
- "6": {
122534
- name: "(anonymous_6)",
123115
+ "7": {
123116
+ name: "(anonymous_7)",
122535
123117
  decl: {
122536
123118
  start: {
122537
- line: 66,
123119
+ line: 78,
122538
123120
  column: 22
122539
123121
  },
122540
123122
  end: {
122541
- line: 66,
123123
+ line: 78,
122542
123124
  column: 23
122543
123125
  }
122544
123126
  },
122545
123127
  loc: {
122546
123128
  start: {
122547
- line: 66,
123129
+ line: 78,
122548
123130
  column: 27
122549
123131
  },
122550
123132
  end: {
122551
- line: 66,
123133
+ line: 78,
122552
123134
  column: 51
122553
123135
  }
122554
123136
  },
122555
- line: 66
123137
+ line: 78
122556
123138
  }
122557
123139
  },
122558
123140
  branchMap: {
@@ -122563,28 +123145,28 @@ function cov_bf1egtcv4() {
122563
123145
  column: 4
122564
123146
  },
122565
123147
  end: {
122566
- line: 34,
122567
- column: 36
123148
+ line: 38,
123149
+ column: 5
122568
123150
  }
122569
123151
  },
122570
- type: "binary-expr",
123152
+ type: "if",
122571
123153
  locations: [{
122572
123154
  start: {
122573
123155
  line: 34,
122574
123156
  column: 4
122575
123157
  },
122576
123158
  end: {
122577
- line: 34,
122578
- column: 10
123159
+ line: 38,
123160
+ column: 5
122579
123161
  }
122580
123162
  }, {
122581
123163
  start: {
122582
- line: 34,
122583
- column: 14
123164
+ line: undefined,
123165
+ column: undefined
122584
123166
  },
122585
123167
  end: {
122586
- line: 34,
122587
- column: 36
123168
+ line: undefined,
123169
+ column: undefined
122588
123170
  }
122589
123171
  }],
122590
123172
  line: 34
@@ -122592,68 +123174,101 @@ function cov_bf1egtcv4() {
122592
123174
  "1": {
122593
123175
  loc: {
122594
123176
  start: {
122595
- line: 42,
123177
+ line: 44,
123178
+ column: 4
123179
+ },
123180
+ end: {
123181
+ line: 48,
123182
+ column: 5
123183
+ }
123184
+ },
123185
+ type: "if",
123186
+ locations: [{
123187
+ start: {
123188
+ line: 44,
123189
+ column: 4
123190
+ },
123191
+ end: {
123192
+ line: 48,
123193
+ column: 5
123194
+ }
123195
+ }, {
123196
+ start: {
123197
+ line: undefined,
123198
+ column: undefined
123199
+ },
123200
+ end: {
123201
+ line: undefined,
123202
+ column: undefined
123203
+ }
123204
+ }],
123205
+ line: 44
123206
+ },
123207
+ "2": {
123208
+ loc: {
123209
+ start: {
123210
+ line: 54,
122596
123211
  column: 21
122597
123212
  },
122598
123213
  end: {
122599
- line: 42,
123214
+ line: 54,
122600
123215
  column: 50
122601
123216
  }
122602
123217
  },
122603
123218
  type: "cond-expr",
122604
123219
  locations: [{
122605
123220
  start: {
122606
- line: 42,
123221
+ line: 54,
122607
123222
  column: 30
122608
123223
  },
122609
123224
  end: {
122610
- line: 42,
123225
+ line: 54,
122611
123226
  column: 41
122612
123227
  }
122613
123228
  }, {
122614
123229
  start: {
122615
- line: 42,
123230
+ line: 54,
122616
123231
  column: 44
122617
123232
  },
122618
123233
  end: {
122619
- line: 42,
123234
+ line: 54,
122620
123235
  column: 50
122621
123236
  }
122622
123237
  }],
122623
- line: 42
123238
+ line: 54
122624
123239
  },
122625
- "2": {
123240
+ "3": {
122626
123241
  loc: {
122627
123242
  start: {
122628
- line: 56,
123243
+ line: 68,
122629
123244
  column: 17
122630
123245
  },
122631
123246
  end: {
122632
- line: 56,
123247
+ line: 68,
122633
123248
  column: 35
122634
123249
  }
122635
123250
  },
122636
123251
  type: "binary-expr",
122637
123252
  locations: [{
122638
123253
  start: {
122639
- line: 56,
123254
+ line: 68,
122640
123255
  column: 17
122641
123256
  },
122642
123257
  end: {
122643
- line: 56,
123258
+ line: 68,
122644
123259
  column: 22
122645
123260
  }
122646
123261
  }, {
122647
123262
  start: {
122648
- line: 56,
123263
+ line: 68,
122649
123264
  column: 26
122650
123265
  },
122651
123266
  end: {
122652
- line: 56,
123267
+ line: 68,
122653
123268
  column: 35
122654
123269
  }
122655
123270
  }],
122656
- line: 56
123271
+ line: 68
122657
123272
  }
122658
123273
  },
122659
123274
  s: {
@@ -122678,7 +123293,14 @@ function cov_bf1egtcv4() {
122678
123293
  "18": 0,
122679
123294
  "19": 0,
122680
123295
  "20": 0,
122681
- "21": 0
123296
+ "21": 0,
123297
+ "22": 0,
123298
+ "23": 0,
123299
+ "24": 0,
123300
+ "25": 0,
123301
+ "26": 0,
123302
+ "27": 0,
123303
+ "28": 0
122682
123304
  },
122683
123305
  f: {
122684
123306
  "0": 0,
@@ -122687,15 +123309,17 @@ function cov_bf1egtcv4() {
122687
123309
  "3": 0,
122688
123310
  "4": 0,
122689
123311
  "5": 0,
122690
- "6": 0
123312
+ "6": 0,
123313
+ "7": 0
122691
123314
  },
122692
123315
  b: {
122693
123316
  "0": [0, 0],
122694
123317
  "1": [0, 0],
122695
- "2": [0, 0]
123318
+ "2": [0, 0],
123319
+ "3": [0, 0]
122696
123320
  },
122697
123321
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
122698
- hash: "ad219d6e4d579b6227eff2e33862f075e1aaeda9"
123322
+ hash: "042616887aa618a3693e146b32d2ad657abe58c2"
122699
123323
  };
122700
123324
  var coverage = global[gcv] || (global[gcv] = {});
122701
123325
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -122754,17 +123378,41 @@ var TextColorOption = function TextColorOption(_ref) {
122754
123378
  reactUtils.useOnClickOutside(dropdownWrapperRef, function (event) {
122755
123379
  cov_bf1egtcv4().f[4]++;
122756
123380
  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);
123381
+ if (isOpen) {
123382
+ cov_bf1egtcv4().b[0][0]++;
123383
+ cov_bf1egtcv4().s[16]++;
123384
+ event.preventDefault();
123385
+ cov_bf1egtcv4().s[17]++;
123386
+ editor.commands.focus();
123387
+ cov_bf1egtcv4().s[18]++;
123388
+ setIsOpen(false);
123389
+ } else {
123390
+ cov_bf1egtcv4().b[0][1]++;
123391
+ }
122762
123392
  });
122763
- cov_bf1egtcv4().s[18]++;
123393
+ cov_bf1egtcv4().s[19]++;
123394
+ React$6.useEffect(function () {
123395
+ cov_bf1egtcv4().f[5]++;
123396
+ cov_bf1egtcv4().s[20]++;
123397
+ editor.commands.setHighlightInternal("#ACCEF7");
123398
+ cov_bf1egtcv4().s[21]++;
123399
+ if (!isOpen) {
123400
+ cov_bf1egtcv4().b[1][0]++;
123401
+ cov_bf1egtcv4().s[22]++;
123402
+ editor.commands.unsetHighlightInternal();
123403
+ cov_bf1egtcv4().s[23]++;
123404
+ editor.commands.removeEmptyTextStyle();
123405
+ cov_bf1egtcv4().s[24]++;
123406
+ editor.commands.focus();
123407
+ } else {
123408
+ cov_bf1egtcv4().b[1][1]++;
123409
+ }
123410
+ }, [isOpen]);
123411
+ cov_bf1egtcv4().s[25]++;
122764
123412
  return /*#__PURE__*/React__default["default"].createElement("div", {
122765
123413
  ref: dropdownWrapperRef
122766
123414
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
122767
- buttonStyle: isOpen ? (cov_bf1egtcv4().b[1][0]++, "secondary") : (cov_bf1egtcv4().b[1][1]++, "text"),
123415
+ buttonStyle: isOpen ? (cov_bf1egtcv4().b[2][0]++, "secondary") : (cov_bf1egtcv4().b[2][1]++, "text"),
122768
123416
  icon: neetoIcons.Customize,
122769
123417
  isOpen: isOpen,
122770
123418
  buttonProps: {
@@ -122775,14 +123423,14 @@ var TextColorOption = function TextColorOption(_ref) {
122775
123423
  className: "neeto-editor-fixed-menu__item neeto-editor-text-color-option"
122776
123424
  },
122777
123425
  onClick: function onClick() {
122778
- cov_bf1egtcv4().f[5]++;
122779
- cov_bf1egtcv4().s[19]++;
123426
+ cov_bf1egtcv4().f[6]++;
123427
+ cov_bf1egtcv4().s[26]++;
122780
123428
  setColor(editor.getAttributes("textStyle").color);
122781
- cov_bf1egtcv4().s[20]++;
123429
+ cov_bf1egtcv4().s[27]++;
122782
123430
  setIsOpen(ramda.not);
122783
123431
  }
122784
123432
  }, /*#__PURE__*/React__default["default"].createElement(Z, {
122785
- color: (cov_bf1egtcv4().b[2][0]++, color) || (cov_bf1egtcv4().b[2][1]++, "#000000"),
123433
+ color: (cov_bf1egtcv4().b[3][0]++, color) || (cov_bf1egtcv4().b[3][1]++, "#000000"),
122786
123434
  onChange: handleColorChange
122787
123435
  }), /*#__PURE__*/React__default["default"].createElement("div", {
122788
123436
  className: "neeto-editor-text-color-option__options-group"
@@ -122793,8 +123441,8 @@ var TextColorOption = function TextColorOption(_ref) {
122793
123441
  size: "small",
122794
123442
  value: color,
122795
123443
  onChange: function onChange(e) {
122796
- cov_bf1egtcv4().f[6]++;
122797
- cov_bf1egtcv4().s[21]++;
123444
+ cov_bf1egtcv4().f[7]++;
123445
+ cov_bf1egtcv4().s[28]++;
122798
123446
  return setColor(e.target.value);
122799
123447
  }
122800
123448
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -125361,7 +126009,7 @@ var FontSizeOption = function FontSizeOption(_ref2) {
125361
126009
 
125362
126010
  function cov_7xzegtncw() {
125363
126011
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/Menu/Fixed/LinkOption.jsx";
125364
- var hash = "b40876235344144786bc2e8c21e4b67359f1e3b4";
126012
+ var hash = "00ac6f0ef7b9efb21f7ff00bb225c049192f1e91";
125365
126013
  var global = new Function("return this")();
125366
126014
  var gcv = "__coverage__";
125367
126015
  var coverageData = {
@@ -125383,7 +126031,7 @@ function cov_7xzegtncw() {
125383
126031
  column: 19
125384
126032
  },
125385
126033
  end: {
125386
- line: 96,
126034
+ line: 106,
125387
126035
  column: 1
125388
126036
  }
125389
126037
  },
@@ -125663,27 +126311,87 @@ function cov_7xzegtncw() {
125663
126311
  column: 2
125664
126312
  },
125665
126313
  end: {
125666
- line: 95,
125667
- column: 4
126314
+ line: 62,
126315
+ column: 15
125668
126316
  }
125669
126317
  },
125670
126318
  "30": {
125671
126319
  start: {
125672
- line: 77,
126320
+ line: 55,
126321
+ column: 4
126322
+ },
126323
+ end: {
126324
+ line: 55,
126325
+ column: 52
126326
+ }
126327
+ },
126328
+ "31": {
126329
+ start: {
126330
+ line: 57,
126331
+ column: 4
126332
+ },
126333
+ end: {
126334
+ line: 61,
126335
+ column: 5
126336
+ }
126337
+ },
126338
+ "32": {
126339
+ start: {
126340
+ line: 58,
126341
+ column: 6
126342
+ },
126343
+ end: {
126344
+ line: 58,
125673
126345
  column: 47
126346
+ }
126347
+ },
126348
+ "33": {
126349
+ start: {
126350
+ line: 59,
126351
+ column: 6
125674
126352
  },
125675
126353
  end: {
125676
- line: 77,
126354
+ line: 59,
126355
+ column: 45
126356
+ }
126357
+ },
126358
+ "34": {
126359
+ start: {
126360
+ line: 60,
126361
+ column: 6
126362
+ },
126363
+ end: {
126364
+ line: 60,
126365
+ column: 30
126366
+ }
126367
+ },
126368
+ "35": {
126369
+ start: {
126370
+ line: 64,
126371
+ column: 2
126372
+ },
126373
+ end: {
126374
+ line: 105,
126375
+ column: 4
126376
+ }
126377
+ },
126378
+ "36": {
126379
+ start: {
126380
+ line: 87,
126381
+ column: 47
126382
+ },
126383
+ end: {
126384
+ line: 87,
125677
126385
  column: 66
125678
126386
  }
125679
126387
  },
125680
- "31": {
126388
+ "37": {
125681
126389
  start: {
125682
- line: 78,
126390
+ line: 88,
125683
126391
  column: 25
125684
126392
  },
125685
126393
  end: {
125686
- line: 78,
126394
+ line: 88,
125687
126395
  column: 37
125688
126396
  }
125689
126397
  }
@@ -125707,7 +126415,7 @@ function cov_7xzegtncw() {
125707
126415
  column: 51
125708
126416
  },
125709
126417
  end: {
125710
- line: 96,
126418
+ line: 106,
125711
126419
  column: 1
125712
126420
  }
125713
126421
  },
@@ -125861,49 +126569,73 @@ function cov_7xzegtncw() {
125861
126569
  name: "(anonymous_7)",
125862
126570
  decl: {
125863
126571
  start: {
125864
- line: 77,
126572
+ line: 54,
126573
+ column: 12
126574
+ },
126575
+ end: {
126576
+ line: 54,
126577
+ column: 13
126578
+ }
126579
+ },
126580
+ loc: {
126581
+ start: {
126582
+ line: 54,
126583
+ column: 18
126584
+ },
126585
+ end: {
126586
+ line: 62,
126587
+ column: 3
126588
+ }
126589
+ },
126590
+ line: 54
126591
+ },
126592
+ "8": {
126593
+ name: "(anonymous_8)",
126594
+ decl: {
126595
+ start: {
126596
+ line: 87,
125865
126597
  column: 20
125866
126598
  },
125867
126599
  end: {
125868
- line: 77,
126600
+ line: 87,
125869
126601
  column: 21
125870
126602
  }
125871
126603
  },
125872
126604
  loc: {
125873
126605
  start: {
125874
- line: 77,
126606
+ line: 87,
125875
126607
  column: 47
125876
126608
  },
125877
126609
  end: {
125878
- line: 77,
126610
+ line: 87,
125879
126611
  column: 66
125880
126612
  }
125881
126613
  },
125882
- line: 77
126614
+ line: 87
125883
126615
  },
125884
- "8": {
125885
- name: "(anonymous_8)",
126616
+ "9": {
126617
+ name: "(anonymous_9)",
125886
126618
  decl: {
125887
126619
  start: {
125888
- line: 78,
126620
+ line: 88,
125889
126621
  column: 19
125890
126622
  },
125891
126623
  end: {
125892
- line: 78,
126624
+ line: 88,
125893
126625
  column: 20
125894
126626
  }
125895
126627
  },
125896
126628
  loc: {
125897
126629
  start: {
125898
- line: 78,
126630
+ line: 88,
125899
126631
  column: 25
125900
126632
  },
125901
126633
  end: {
125902
- line: 78,
126634
+ line: 88,
125903
126635
  column: 37
125904
126636
  }
125905
126637
  },
125906
- line: 78
126638
+ line: 88
125907
126639
  }
125908
126640
  },
125909
126641
  branchMap: {
@@ -126009,68 +126741,101 @@ function cov_7xzegtncw() {
126009
126741
  "3": {
126010
126742
  loc: {
126011
126743
  start: {
126012
- line: 56,
126744
+ line: 57,
126745
+ column: 4
126746
+ },
126747
+ end: {
126748
+ line: 61,
126749
+ column: 5
126750
+ }
126751
+ },
126752
+ type: "if",
126753
+ locations: [{
126754
+ start: {
126755
+ line: 57,
126756
+ column: 4
126757
+ },
126758
+ end: {
126759
+ line: 61,
126760
+ column: 5
126761
+ }
126762
+ }, {
126763
+ start: {
126764
+ line: undefined,
126765
+ column: undefined
126766
+ },
126767
+ end: {
126768
+ line: undefined,
126769
+ column: undefined
126770
+ }
126771
+ }],
126772
+ line: 57
126773
+ },
126774
+ "4": {
126775
+ loc: {
126776
+ start: {
126777
+ line: 66,
126013
126778
  column: 19
126014
126779
  },
126015
126780
  end: {
126016
- line: 56,
126781
+ line: 66,
126017
126782
  column: 50
126018
126783
  }
126019
126784
  },
126020
126785
  type: "cond-expr",
126021
126786
  locations: [{
126022
126787
  start: {
126023
- line: 56,
126788
+ line: 66,
126024
126789
  column: 30
126025
126790
  },
126026
126791
  end: {
126027
- line: 56,
126792
+ line: 66,
126028
126793
  column: 41
126029
126794
  }
126030
126795
  }, {
126031
126796
  start: {
126032
- line: 56,
126797
+ line: 66,
126033
126798
  column: 44
126034
126799
  },
126035
126800
  end: {
126036
- line: 56,
126801
+ line: 66,
126037
126802
  column: 50
126038
126803
  }
126039
126804
  }],
126040
- line: 56
126805
+ line: 66
126041
126806
  },
126042
- "4": {
126807
+ "5": {
126043
126808
  loc: {
126044
126809
  start: {
126045
- line: 85,
126810
+ line: 95,
126046
126811
  column: 9
126047
126812
  },
126048
126813
  end: {
126049
- line: 92,
126814
+ line: 102,
126050
126815
  column: 9
126051
126816
  }
126052
126817
  },
126053
126818
  type: "binary-expr",
126054
126819
  locations: [{
126055
126820
  start: {
126056
- line: 85,
126821
+ line: 95,
126057
126822
  column: 9
126058
126823
  },
126059
126824
  end: {
126060
- line: 85,
126825
+ line: 95,
126061
126826
  column: 17
126062
126827
  }
126063
126828
  }, {
126064
126829
  start: {
126065
- line: 86,
126830
+ line: 96,
126066
126831
  column: 10
126067
126832
  },
126068
126833
  end: {
126069
- line: 91,
126834
+ line: 101,
126070
126835
  column: 12
126071
126836
  }
126072
126837
  }],
126073
- line: 85
126838
+ line: 95
126074
126839
  }
126075
126840
  },
126076
126841
  s: {
@@ -126105,7 +126870,13 @@ function cov_7xzegtncw() {
126105
126870
  "28": 0,
126106
126871
  "29": 0,
126107
126872
  "30": 0,
126108
- "31": 0
126873
+ "31": 0,
126874
+ "32": 0,
126875
+ "33": 0,
126876
+ "34": 0,
126877
+ "35": 0,
126878
+ "36": 0,
126879
+ "37": 0
126109
126880
  },
126110
126881
  f: {
126111
126882
  "0": 0,
@@ -126116,17 +126887,19 @@ function cov_7xzegtncw() {
126116
126887
  "5": 0,
126117
126888
  "6": 0,
126118
126889
  "7": 0,
126119
- "8": 0
126890
+ "8": 0,
126891
+ "9": 0
126120
126892
  },
126121
126893
  b: {
126122
126894
  "0": [0, 0],
126123
126895
  "1": [0, 0],
126124
126896
  "2": [0, 0],
126125
126897
  "3": [0, 0],
126126
- "4": [0, 0]
126898
+ "4": [0, 0],
126899
+ "5": [0, 0]
126127
126900
  },
126128
126901
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
126129
- hash: "b40876235344144786bc2e8c21e4b67359f1e3b4"
126902
+ hash: "00ac6f0ef7b9efb21f7ff00bb225c049192f1e91"
126130
126903
  };
126131
126904
  var coverage = global[gcv] || (global[gcv] = {});
126132
126905
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -126235,8 +127008,26 @@ var LinkOption = function LinkOption(_ref2) {
126235
127008
  handleClose();
126236
127009
  };
126237
127010
  cov_7xzegtncw().s[29]++;
127011
+ React$6.useEffect(function () {
127012
+ cov_7xzegtncw().f[7]++;
127013
+ cov_7xzegtncw().s[30]++;
127014
+ editor.commands.setHighlightInternal("#ACCEF7");
127015
+ cov_7xzegtncw().s[31]++;
127016
+ if (!isOpen) {
127017
+ cov_7xzegtncw().b[3][0]++;
127018
+ cov_7xzegtncw().s[32]++;
127019
+ editor.commands.unsetHighlightInternal();
127020
+ cov_7xzegtncw().s[33]++;
127021
+ editor.commands.removeEmptyTextStyle();
127022
+ cov_7xzegtncw().s[34]++;
127023
+ editor.commands.focus();
127024
+ } else {
127025
+ cov_7xzegtncw().b[3][1]++;
127026
+ }
127027
+ }, [isOpen]);
127028
+ cov_7xzegtncw().s[35]++;
126238
127029
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
126239
- buttonStyle: isActive ? (cov_7xzegtncw().b[3][0]++, "secondary") : (cov_7xzegtncw().b[3][1]++, "text"),
127030
+ buttonStyle: isActive ? (cov_7xzegtncw().b[4][0]++, "secondary") : (cov_7xzegtncw().b[4][1]++, "text"),
126240
127031
  closeOnSelect: false,
126241
127032
  "data-cy": "neeto-editor-fixed-menu-link-option",
126242
127033
  icon: neetoIcons.Link,
@@ -126263,20 +127054,20 @@ var LinkOption = function LinkOption(_ref2) {
126263
127054
  value: urlString,
126264
127055
  onChange: function onChange(_ref10) {
126265
127056
  var value = _ref10.target.value;
126266
- cov_7xzegtncw().f[7]++;
126267
- cov_7xzegtncw().s[30]++;
127057
+ cov_7xzegtncw().f[8]++;
127058
+ cov_7xzegtncw().s[36]++;
126268
127059
  return setUrlString(value);
126269
127060
  },
126270
127061
  onFocus: function onFocus() {
126271
- cov_7xzegtncw().f[8]++;
126272
- cov_7xzegtncw().s[31]++;
127062
+ cov_7xzegtncw().f[9]++;
127063
+ cov_7xzegtncw().s[37]++;
126273
127064
  return setError("");
126274
127065
  }
126275
127066
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
126276
127067
  "data-cy": "neeto-editor-fixed-menu-link-option-link-button",
126277
127068
  label: t("menu.link"),
126278
127069
  onClick: handleLink
126279
- }), (cov_7xzegtncw().b[4][0]++, isActive) && (cov_7xzegtncw().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
127070
+ }), (cov_7xzegtncw().b[5][0]++, isActive) && (cov_7xzegtncw().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
126280
127071
  "data-cy": "neeto-editor-fixed-menu-link-option-unlink-button",
126281
127072
  label: t("common.unlink"),
126282
127073
  style: "text",