@bigbinary/neeto-editor 1.28.3 → 1.28.4

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.js CHANGED
@@ -106301,7 +106301,7 @@ var ImageComponent = function ImageComponent(_ref) {
106301
106301
  var _excluded$9 = ["caption"];
106302
106302
  function cov_ksv9azglk() {
106303
106303
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ExtensionConfig.js";
106304
- var hash = "2f76e7e418bf0486eadbbce16f9fef87dce7e620";
106304
+ var hash = "e3d061312eb956c4abaae3072ef935e539e2852d";
106305
106305
  var global = new Function("return this")();
106306
106306
  var gcv = "__coverage__";
106307
106307
  var coverageData = {
@@ -106393,397 +106393,427 @@ function cov_ksv9azglk() {
106393
106393
  column: 4
106394
106394
  },
106395
106395
  end: {
106396
- line: 35,
106396
+ line: 36,
106397
106397
  column: 6
106398
106398
  }
106399
106399
  },
106400
106400
  "9": {
106401
106401
  start: {
106402
- line: 47,
106402
+ line: 48,
106403
106403
  column: 4
106404
106404
  },
106405
106405
  end: {
106406
- line: 80,
106406
+ line: 81,
106407
106407
  column: 6
106408
106408
  }
106409
106409
  },
106410
106410
  "10": {
106411
106411
  start: {
106412
- line: 50,
106412
+ line: 51,
106413
106413
  column: 30
106414
106414
  },
106415
106415
  end: {
106416
- line: 50,
106416
+ line: 51,
106417
106417
  column: 56
106418
106418
  }
106419
106419
  },
106420
106420
  "11": {
106421
106421
  start: {
106422
- line: 55,
106422
+ line: 56,
106423
106423
  column: 30
106424
106424
  },
106425
106425
  end: {
106426
- line: 55,
106426
+ line: 56,
106427
106427
  column: 79
106428
106428
  }
106429
106429
  },
106430
106430
  "12": {
106431
106431
  start: {
106432
- line: 60,
106432
+ line: 61,
106433
106433
  column: 30
106434
106434
  },
106435
106435
  end: {
106436
- line: 60,
106436
+ line: 61,
106437
106437
  column: 79
106438
106438
  }
106439
106439
  },
106440
106440
  "13": {
106441
106441
  start: {
106442
- line: 66,
106442
+ line: 67,
106443
106443
  column: 10
106444
106444
  },
106445
106445
  end: {
106446
- line: 66,
106446
+ line: 67,
106447
106447
  column: 65
106448
106448
  }
106449
106449
  },
106450
106450
  "14": {
106451
106451
  start: {
106452
- line: 72,
106452
+ line: 73,
106453
106453
  column: 10
106454
106454
  },
106455
106455
  end: {
106456
- line: 72,
106456
+ line: 73,
106457
106457
  column: 64
106458
106458
  }
106459
106459
  },
106460
106460
  "15": {
106461
106461
  start: {
106462
- line: 78,
106462
+ line: 79,
106463
106463
  column: 10
106464
106464
  },
106465
106465
  end: {
106466
- line: 78,
106466
+ line: 79,
106467
106467
  column: 61
106468
106468
  }
106469
106469
  },
106470
106470
  "16": {
106471
106471
  start: {
106472
- line: 84,
106472
+ line: 85,
106473
106473
  column: 4
106474
106474
  },
106475
106475
  end: {
106476
- line: 89,
106476
+ line: 90,
106477
106477
  column: 6
106478
106478
  }
106479
106479
  },
106480
106480
  "17": {
106481
106481
  start: {
106482
- line: 93,
106482
+ line: 94,
106483
106483
  column: 48
106484
106484
  },
106485
106485
  end: {
106486
- line: 93,
106486
+ line: 94,
106487
106487
  column: 58
106488
106488
  }
106489
106489
  },
106490
106490
  "18": {
106491
106491
  start: {
106492
106492
  line: 95,
106493
- column: 28
106493
+ column: 30
106494
106494
  },
106495
106495
  end: {
106496
- line: 97,
106497
- column: 5
106496
+ line: 95,
106497
+ column: 60
106498
106498
  }
106499
106499
  },
106500
106500
  "19": {
106501
106501
  start: {
106502
+ line: 97,
106503
+ column: 28
106504
+ },
106505
+ end: {
106502
106506
  line: 99,
106503
- column: 29
106507
+ column: 5
106508
+ }
106509
+ },
106510
+ "20": {
106511
+ start: {
106512
+ line: 101,
106513
+ column: 42
106504
106514
  },
106505
106515
  end: {
106516
+ line: 103,
106517
+ column: 30
106518
+ }
106519
+ },
106520
+ "21": {
106521
+ start: {
106506
106522
  line: 105,
106523
+ column: 24
106524
+ },
106525
+ end: {
106526
+ line: 105,
106527
+ column: 72
106528
+ }
106529
+ },
106530
+ "22": {
106531
+ start: {
106532
+ line: 106,
106533
+ column: 29
106534
+ },
106535
+ end: {
106536
+ line: 112,
106507
106537
  column: 5
106508
106538
  }
106509
106539
  },
106510
- "20": {
106540
+ "23": {
106511
106541
  start: {
106512
- line: 107,
106542
+ line: 114,
106513
106543
  column: 25
106514
106544
  },
106515
106545
  end: {
106516
- line: 107,
106546
+ line: 114,
106517
106547
  column: 58
106518
106548
  }
106519
106549
  },
106520
- "21": {
106550
+ "24": {
106521
106551
  start: {
106522
- line: 109,
106552
+ line: 116,
106523
106553
  column: 4
106524
106554
  },
106525
106555
  end: {
106526
- line: 128,
106556
+ line: 135,
106527
106557
  column: 6
106528
106558
  }
106529
106559
  },
106530
- "22": {
106560
+ "25": {
106531
106561
  start: {
106532
- line: 132,
106562
+ line: 139,
106533
106563
  column: 4
106534
106564
  },
106535
106565
  end: {
106536
- line: 132,
106566
+ line: 139,
106537
106567
  column: 49
106538
106568
  }
106539
106569
  },
106540
- "23": {
106570
+ "26": {
106541
106571
  start: {
106542
- line: 136,
106572
+ line: 143,
106543
106573
  column: 4
106544
106574
  },
106545
106575
  end: {
106546
- line: 147,
106576
+ line: 154,
106547
106577
  column: 6
106548
106578
  }
106549
106579
  },
106550
- "24": {
106580
+ "27": {
106551
106581
  start: {
106552
- line: 139,
106582
+ line: 146,
106553
106583
  column: 8
106554
106584
  },
106555
106585
  end: {
106556
- line: 146,
106586
+ line: 153,
106557
106587
  column: 18
106558
106588
  }
106559
106589
  },
106560
- "25": {
106590
+ "28": {
106561
106591
  start: {
106562
- line: 140,
106592
+ line: 147,
106563
106593
  column: 10
106564
106594
  },
106565
106595
  end: {
106566
- line: 146,
106596
+ line: 153,
106567
106597
  column: 18
106568
106598
  }
106569
106599
  },
106570
- "26": {
106600
+ "29": {
106571
106601
  start: {
106572
- line: 151,
106602
+ line: 158,
106573
106603
  column: 4
106574
106604
  },
106575
106605
  end: {
106576
- line: 200,
106606
+ line: 207,
106577
106607
  column: 6
106578
106608
  }
106579
106609
  },
106580
- "27": {
106610
+ "30": {
106581
106611
  start: {
106582
- line: 161,
106612
+ line: 168,
106583
106613
  column: 18
106584
106614
  },
106585
106615
  end: {
106586
- line: 161,
106616
+ line: 168,
106587
106617
  column: 28
106588
106618
  }
106589
106619
  },
106590
- "28": {
106620
+ "31": {
106591
106621
  start: {
106592
- line: 162,
106622
+ line: 169,
106593
106623
  column: 31
106594
106624
  },
106595
106625
  end: {
106596
- line: 162,
106626
+ line: 169,
106597
106627
  column: 65
106598
106628
  }
106599
106629
  },
106600
- "29": {
106630
+ "32": {
106601
106631
  start: {
106602
- line: 164,
106632
+ line: 171,
106603
106633
  column: 14
106604
106634
  },
106605
106635
  end: {
106606
- line: 164,
106636
+ line: 171,
106607
106637
  column: 36
106608
106638
  }
106609
106639
  },
106610
- "30": {
106640
+ "33": {
106611
106641
  start: {
106612
- line: 164,
106642
+ line: 171,
106613
106643
  column: 29
106614
106644
  },
106615
106645
  end: {
106616
- line: 164,
106646
+ line: 171,
106617
106647
  column: 36
106618
106648
  }
106619
106649
  },
106620
- "31": {
106650
+ "34": {
106621
106651
  start: {
106622
- line: 166,
106652
+ line: 173,
106623
106653
  column: 29
106624
106654
  },
106625
106655
  end: {
106626
- line: 168,
106656
+ line: 175,
106627
106657
  column: 15
106628
106658
  }
106629
106659
  },
106630
- "32": {
106660
+ "35": {
106631
106661
  start: {
106632
- line: 167,
106662
+ line: 174,
106633
106663
  column: 24
106634
106664
  },
106635
106665
  end: {
106636
- line: 167,
106666
+ line: 174,
106637
106667
  column: 48
106638
106668
  }
106639
106669
  },
106640
- "33": {
106670
+ "36": {
106641
106671
  start: {
106642
- line: 170,
106672
+ line: 177,
106643
106673
  column: 14
106644
106674
  },
106645
106675
  end: {
106646
- line: 170,
106676
+ line: 177,
106647
106677
  column: 42
106648
106678
  }
106649
106679
  },
106650
- "34": {
106680
+ "37": {
106651
106681
  start: {
106652
- line: 170,
106682
+ line: 177,
106653
106683
  column: 35
106654
106684
  },
106655
106685
  end: {
106656
- line: 170,
106686
+ line: 177,
106657
106687
  column: 42
106658
106688
  }
106659
106689
  },
106660
- "35": {
106690
+ "38": {
106661
106691
  start: {
106662
- line: 172,
106692
+ line: 179,
106663
106693
  column: 14
106664
106694
  },
106665
106695
  end: {
106666
- line: 172,
106696
+ line: 179,
106667
106697
  column: 37
106668
106698
  }
106669
106699
  },
106670
- "36": {
106700
+ "39": {
106671
106701
  start: {
106672
- line: 174,
106702
+ line: 181,
106673
106703
  column: 14
106674
106704
  },
106675
106705
  end: {
106676
- line: 195,
106706
+ line: 202,
106677
106707
  column: 17
106678
106708
  }
106679
106709
  },
106680
- "37": {
106710
+ "40": {
106681
106711
  start: {
106682
- line: 175,
106712
+ line: 182,
106683
106713
  column: 27
106684
106714
  },
106685
106715
  end: {
106686
- line: 175,
106716
+ line: 182,
106687
106717
  column: 66
106688
106718
  }
106689
106719
  },
106690
- "38": {
106720
+ "41": {
106691
106721
  start: {
106692
- line: 176,
106722
+ line: 183,
106693
106723
  column: 29
106694
106724
  },
106695
106725
  end: {
106696
- line: 176,
106726
+ line: 183,
106697
106727
  column: 62
106698
106728
  }
106699
106729
  },
106700
- "39": {
106730
+ "42": {
106701
106731
  start: {
106702
- line: 177,
106732
+ line: 184,
106703
106733
  column: 36
106704
106734
  },
106705
106735
  end: {
106706
- line: 177,
106736
+ line: 184,
106707
106737
  column: 67
106708
106738
  }
106709
106739
  },
106710
- "40": {
106740
+ "43": {
106711
106741
  start: {
106712
- line: 178,
106742
+ line: 185,
106713
106743
  column: 16
106714
106744
  },
106715
106745
  end: {
106716
- line: 178,
106746
+ line: 185,
106717
106747
  column: 43
106718
106748
  }
106719
106749
  },
106720
- "41": {
106750
+ "44": {
106721
106751
  start: {
106722
- line: 179,
106752
+ line: 186,
106723
106753
  column: 16
106724
106754
  },
106725
106755
  end: {
106726
- line: 194,
106756
+ line: 201,
106727
106757
  column: 17
106728
106758
  }
106729
106759
  },
106730
- "42": {
106760
+ "45": {
106731
106761
  start: {
106732
- line: 180,
106762
+ line: 187,
106733
106763
  column: 30
106734
106764
  },
106735
106765
  end: {
106736
- line: 180,
106766
+ line: 187,
106737
106767
  column: 73
106738
106768
  }
106739
106769
  },
106740
- "43": {
106770
+ "46": {
106741
106771
  start: {
106742
- line: 181,
106772
+ line: 188,
106743
106773
  column: 18
106744
106774
  },
106745
106775
  end: {
106746
- line: 191,
106776
+ line: 198,
106747
106777
  column: 23
106748
106778
  }
106749
106779
  },
106750
- "44": {
106780
+ "47": {
106751
106781
  start: {
106752
- line: 183,
106782
+ line: 190,
106753
106783
  column: 22
106754
106784
  },
106755
106785
  end: {
106756
- line: 190,
106786
+ line: 197,
106757
106787
  column: 23
106758
106788
  }
106759
106789
  },
106760
- "45": {
106790
+ "48": {
106761
106791
  start: {
106762
- line: 184,
106792
+ line: 191,
106763
106793
  column: 44
106764
106794
  },
106765
106795
  end: {
106766
- line: 188,
106796
+ line: 195,
106767
106797
  column: 25
106768
106798
  }
106769
106799
  },
106770
- "46": {
106800
+ "49": {
106771
106801
  start: {
106772
- line: 189,
106802
+ line: 196,
106773
106803
  column: 24
106774
106804
  },
106775
106805
  end: {
106776
- line: 189,
106806
+ line: 196,
106777
106807
  column: 51
106778
106808
  }
106779
106809
  },
106780
- "47": {
106810
+ "50": {
106781
106811
  start: {
106782
- line: 193,
106812
+ line: 200,
106783
106813
  column: 18
106784
106814
  },
106785
106815
  end: {
106786
- line: 193,
106816
+ line: 200,
106787
106817
  column: 68
106788
106818
  }
106789
106819
  }
@@ -106831,7 +106861,7 @@ function cov_ksv9azglk() {
106831
106861
  column: 15
106832
106862
  },
106833
106863
  end: {
106834
- line: 36,
106864
+ line: 37,
106835
106865
  column: 3
106836
106866
  }
106837
106867
  },
@@ -106841,433 +106871,433 @@ function cov_ksv9azglk() {
106841
106871
  name: "(anonymous_2)",
106842
106872
  decl: {
106843
106873
  start: {
106844
- line: 46,
106874
+ line: 47,
106845
106875
  column: 2
106846
106876
  },
106847
106877
  end: {
106848
- line: 46,
106878
+ line: 47,
106849
106879
  column: 3
106850
106880
  }
106851
106881
  },
106852
106882
  loc: {
106853
106883
  start: {
106854
- line: 46,
106884
+ line: 47,
106855
106885
  column: 18
106856
106886
  },
106857
106887
  end: {
106858
- line: 81,
106888
+ line: 82,
106859
106889
  column: 3
106860
106890
  }
106861
106891
  },
106862
- line: 46
106892
+ line: 47
106863
106893
  },
106864
106894
  "3": {
106865
106895
  name: "(anonymous_3)",
106866
106896
  decl: {
106867
106897
  start: {
106868
- line: 50,
106898
+ line: 51,
106869
106899
  column: 19
106870
106900
  },
106871
106901
  end: {
106872
- line: 50,
106902
+ line: 51,
106873
106903
  column: 20
106874
106904
  }
106875
106905
  },
106876
106906
  loc: {
106877
106907
  start: {
106878
- line: 50,
106908
+ line: 51,
106879
106909
  column: 30
106880
106910
  },
106881
106911
  end: {
106882
- line: 50,
106912
+ line: 51,
106883
106913
  column: 56
106884
106914
  }
106885
106915
  },
106886
- line: 50
106916
+ line: 51
106887
106917
  },
106888
106918
  "4": {
106889
106919
  name: "(anonymous_4)",
106890
106920
  decl: {
106891
106921
  start: {
106892
- line: 55,
106922
+ line: 56,
106893
106923
  column: 19
106894
106924
  },
106895
106925
  end: {
106896
- line: 55,
106926
+ line: 56,
106897
106927
  column: 20
106898
106928
  }
106899
106929
  },
106900
106930
  loc: {
106901
106931
  start: {
106902
- line: 55,
106932
+ line: 56,
106903
106933
  column: 30
106904
106934
  },
106905
106935
  end: {
106906
- line: 55,
106936
+ line: 56,
106907
106937
  column: 79
106908
106938
  }
106909
106939
  },
106910
- line: 55
106940
+ line: 56
106911
106941
  },
106912
106942
  "5": {
106913
106943
  name: "(anonymous_5)",
106914
106944
  decl: {
106915
106945
  start: {
106916
- line: 60,
106946
+ line: 61,
106917
106947
  column: 19
106918
106948
  },
106919
106949
  end: {
106920
- line: 60,
106950
+ line: 61,
106921
106951
  column: 20
106922
106952
  }
106923
106953
  },
106924
106954
  loc: {
106925
106955
  start: {
106926
- line: 60,
106956
+ line: 61,
106927
106957
  column: 30
106928
106958
  },
106929
106959
  end: {
106930
- line: 60,
106960
+ line: 61,
106931
106961
  column: 79
106932
106962
  }
106933
106963
  },
106934
- line: 60
106964
+ line: 61
106935
106965
  },
106936
106966
  "6": {
106937
106967
  name: "(anonymous_6)",
106938
106968
  decl: {
106939
106969
  start: {
106940
- line: 65,
106970
+ line: 66,
106941
106971
  column: 19
106942
106972
  },
106943
106973
  end: {
106944
- line: 65,
106974
+ line: 66,
106945
106975
  column: 20
106946
106976
  }
106947
106977
  },
106948
106978
  loc: {
106949
106979
  start: {
106950
- line: 66,
106980
+ line: 67,
106951
106981
  column: 10
106952
106982
  },
106953
106983
  end: {
106954
- line: 66,
106984
+ line: 67,
106955
106985
  column: 65
106956
106986
  }
106957
106987
  },
106958
- line: 66
106988
+ line: 67
106959
106989
  },
106960
106990
  "7": {
106961
106991
  name: "(anonymous_7)",
106962
106992
  decl: {
106963
106993
  start: {
106964
- line: 71,
106994
+ line: 72,
106965
106995
  column: 19
106966
106996
  },
106967
106997
  end: {
106968
- line: 71,
106998
+ line: 72,
106969
106999
  column: 20
106970
107000
  }
106971
107001
  },
106972
107002
  loc: {
106973
107003
  start: {
106974
- line: 72,
107004
+ line: 73,
106975
107005
  column: 10
106976
107006
  },
106977
107007
  end: {
106978
- line: 72,
107008
+ line: 73,
106979
107009
  column: 64
106980
107010
  }
106981
107011
  },
106982
- line: 72
107012
+ line: 73
106983
107013
  },
106984
107014
  "8": {
106985
107015
  name: "(anonymous_8)",
106986
107016
  decl: {
106987
107017
  start: {
106988
- line: 77,
107018
+ line: 78,
106989
107019
  column: 19
106990
107020
  },
106991
107021
  end: {
106992
- line: 77,
107022
+ line: 78,
106993
107023
  column: 20
106994
107024
  }
106995
107025
  },
106996
107026
  loc: {
106997
107027
  start: {
106998
- line: 78,
107028
+ line: 79,
106999
107029
  column: 10
107000
107030
  },
107001
107031
  end: {
107002
- line: 78,
107032
+ line: 79,
107003
107033
  column: 61
107004
107034
  }
107005
107035
  },
107006
- line: 78
107036
+ line: 79
107007
107037
  },
107008
107038
  "9": {
107009
107039
  name: "(anonymous_9)",
107010
107040
  decl: {
107011
107041
  start: {
107012
- line: 83,
107042
+ line: 84,
107013
107043
  column: 2
107014
107044
  },
107015
107045
  end: {
107016
- line: 83,
107046
+ line: 84,
107017
107047
  column: 3
107018
107048
  }
107019
107049
  },
107020
107050
  loc: {
107021
107051
  start: {
107022
- line: 83,
107052
+ line: 84,
107023
107053
  column: 14
107024
107054
  },
107025
107055
  end: {
107026
- line: 90,
107056
+ line: 91,
107027
107057
  column: 3
107028
107058
  }
107029
107059
  },
107030
- line: 83
107060
+ line: 84
107031
107061
  },
107032
107062
  "10": {
107033
107063
  name: "(anonymous_10)",
107034
107064
  decl: {
107035
107065
  start: {
107036
- line: 92,
107066
+ line: 93,
107037
107067
  column: 2
107038
107068
  },
107039
107069
  end: {
107040
- line: 92,
107070
+ line: 93,
107041
107071
  column: 3
107042
107072
  }
107043
107073
  },
107044
107074
  loc: {
107045
107075
  start: {
107046
- line: 92,
107076
+ line: 93,
107047
107077
  column: 39
107048
107078
  },
107049
107079
  end: {
107050
- line: 129,
107080
+ line: 136,
107051
107081
  column: 3
107052
107082
  }
107053
107083
  },
107054
- line: 92
107084
+ line: 93
107055
107085
  },
107056
107086
  "11": {
107057
107087
  name: "(anonymous_11)",
107058
107088
  decl: {
107059
107089
  start: {
107060
- line: 131,
107090
+ line: 138,
107061
107091
  column: 2
107062
107092
  },
107063
107093
  end: {
107064
- line: 131,
107094
+ line: 138,
107065
107095
  column: 3
107066
107096
  }
107067
107097
  },
107068
107098
  loc: {
107069
107099
  start: {
107070
- line: 131,
107100
+ line: 138,
107071
107101
  column: 16
107072
107102
  },
107073
107103
  end: {
107074
- line: 133,
107104
+ line: 140,
107075
107105
  column: 3
107076
107106
  }
107077
107107
  },
107078
- line: 131
107108
+ line: 138
107079
107109
  },
107080
107110
  "12": {
107081
107111
  name: "(anonymous_12)",
107082
107112
  decl: {
107083
107113
  start: {
107084
- line: 135,
107114
+ line: 142,
107085
107115
  column: 2
107086
107116
  },
107087
107117
  end: {
107088
- line: 135,
107118
+ line: 142,
107089
107119
  column: 3
107090
107120
  }
107091
107121
  },
107092
107122
  loc: {
107093
107123
  start: {
107094
- line: 135,
107124
+ line: 142,
107095
107125
  column: 16
107096
107126
  },
107097
107127
  end: {
107098
- line: 148,
107128
+ line: 155,
107099
107129
  column: 3
107100
107130
  }
107101
107131
  },
107102
- line: 135
107132
+ line: 142
107103
107133
  },
107104
107134
  "13": {
107105
107135
  name: "(anonymous_13)",
107106
107136
  decl: {
107107
107137
  start: {
107108
- line: 138,
107138
+ line: 145,
107109
107139
  column: 8
107110
107140
  },
107111
107141
  end: {
107112
- line: 138,
107142
+ line: 145,
107113
107143
  column: 9
107114
107144
  }
107115
107145
  },
107116
107146
  loc: {
107117
107147
  start: {
107118
- line: 139,
107148
+ line: 146,
107119
107149
  column: 8
107120
107150
  },
107121
107151
  end: {
107122
- line: 146,
107152
+ line: 153,
107123
107153
  column: 18
107124
107154
  }
107125
107155
  },
107126
- line: 139
107156
+ line: 146
107127
107157
  },
107128
107158
  "14": {
107129
107159
  name: "(anonymous_14)",
107130
107160
  decl: {
107131
107161
  start: {
107132
- line: 139,
107162
+ line: 146,
107133
107163
  column: 8
107134
107164
  },
107135
107165
  end: {
107136
- line: 139,
107166
+ line: 146,
107137
107167
  column: 9
107138
107168
  }
107139
107169
  },
107140
107170
  loc: {
107141
107171
  start: {
107142
- line: 140,
107172
+ line: 147,
107143
107173
  column: 10
107144
107174
  },
107145
107175
  end: {
107146
- line: 146,
107176
+ line: 153,
107147
107177
  column: 18
107148
107178
  }
107149
107179
  },
107150
- line: 140
107180
+ line: 147
107151
107181
  },
107152
107182
  "15": {
107153
107183
  name: "(anonymous_15)",
107154
107184
  decl: {
107155
107185
  start: {
107156
- line: 150,
107186
+ line: 157,
107157
107187
  column: 2
107158
107188
  },
107159
107189
  end: {
107160
- line: 150,
107190
+ line: 157,
107161
107191
  column: 3
107162
107192
  }
107163
107193
  },
107164
107194
  loc: {
107165
107195
  start: {
107166
- line: 150,
107196
+ line: 157,
107167
107197
  column: 26
107168
107198
  },
107169
107199
  end: {
107170
- line: 201,
107200
+ line: 208,
107171
107201
  column: 3
107172
107202
  }
107173
107203
  },
107174
- line: 150
107204
+ line: 157
107175
107205
  },
107176
107206
  "16": {
107177
107207
  name: "(anonymous_16)",
107178
107208
  decl: {
107179
107209
  start: {
107180
- line: 155,
107210
+ line: 162,
107181
107211
  column: 12
107182
107212
  },
107183
107213
  end: {
107184
- line: 155,
107214
+ line: 162,
107185
107215
  column: 13
107186
107216
  }
107187
107217
  },
107188
107218
  loc: {
107189
107219
  start: {
107190
- line: 155,
107220
+ line: 162,
107191
107221
  column: 31
107192
107222
  },
107193
107223
  end: {
107194
- line: 196,
107224
+ line: 203,
107195
107225
  column: 13
107196
107226
  }
107197
107227
  },
107198
- line: 155
107228
+ line: 162
107199
107229
  },
107200
107230
  "17": {
107201
107231
  name: "(anonymous_17)",
107202
107232
  decl: {
107203
107233
  start: {
107204
- line: 167,
107234
+ line: 174,
107205
107235
  column: 16
107206
107236
  },
107207
107237
  end: {
107208
- line: 167,
107238
+ line: 174,
107209
107239
  column: 17
107210
107240
  }
107211
107241
  },
107212
107242
  loc: {
107213
107243
  start: {
107214
- line: 167,
107244
+ line: 174,
107215
107245
  column: 24
107216
107246
  },
107217
107247
  end: {
107218
- line: 167,
107248
+ line: 174,
107219
107249
  column: 48
107220
107250
  }
107221
107251
  },
107222
- line: 167
107252
+ line: 174
107223
107253
  },
107224
107254
  "18": {
107225
107255
  name: "(anonymous_18)",
107226
107256
  decl: {
107227
107257
  start: {
107228
- line: 174,
107258
+ line: 181,
107229
107259
  column: 29
107230
107260
  },
107231
107261
  end: {
107232
- line: 174,
107262
+ line: 181,
107233
107263
  column: 30
107234
107264
  }
107235
107265
  },
107236
107266
  loc: {
107237
107267
  start: {
107238
- line: 174,
107268
+ line: 181,
107239
107269
  column: 44
107240
107270
  },
107241
107271
  end: {
107242
- line: 195,
107272
+ line: 202,
107243
107273
  column: 15
107244
107274
  }
107245
107275
  },
107246
- line: 174
107276
+ line: 181
107247
107277
  },
107248
107278
  "19": {
107249
107279
  name: "(anonymous_19)",
107250
107280
  decl: {
107251
107281
  start: {
107252
- line: 182,
107282
+ line: 189,
107253
107283
  column: 47
107254
107284
  },
107255
107285
  end: {
107256
- line: 182,
107286
+ line: 189,
107257
107287
  column: 48
107258
107288
  }
107259
107289
  },
107260
107290
  loc: {
107261
107291
  start: {
107262
- line: 182,
107292
+ line: 189,
107263
107293
  column: 62
107264
107294
  },
107265
107295
  end: {
107266
- line: 191,
107296
+ line: 198,
107267
107297
  column: 21
107268
107298
  }
107269
107299
  },
107270
- line: 182
107300
+ line: 189
107271
107301
  }
107272
107302
  },
107273
107303
  branchMap: {
@@ -107340,55 +107370,121 @@ function cov_ksv9azglk() {
107340
107370
  "2": {
107341
107371
  loc: {
107342
107372
  start: {
107343
- line: 144,
107373
+ line: 101,
107374
+ column: 42
107375
+ },
107376
+ end: {
107377
+ line: 103,
107378
+ column: 30
107379
+ }
107380
+ },
107381
+ type: "cond-expr",
107382
+ locations: [{
107383
+ start: {
107384
+ line: 102,
107385
+ column: 8
107386
+ },
107387
+ end: {
107388
+ line: 102,
107389
+ column: 10
107390
+ }
107391
+ }, {
107392
+ start: {
107393
+ line: 103,
107394
+ column: 8
107395
+ },
107396
+ end: {
107397
+ line: 103,
107398
+ column: 30
107399
+ }
107400
+ }],
107401
+ line: 101
107402
+ },
107403
+ "3": {
107404
+ loc: {
107405
+ start: {
107406
+ line: 105,
107407
+ column: 24
107408
+ },
107409
+ end: {
107410
+ line: 105,
107411
+ column: 72
107412
+ }
107413
+ },
107414
+ type: "cond-expr",
107415
+ locations: [{
107416
+ start: {
107417
+ line: 105,
107418
+ column: 47
107419
+ },
107420
+ end: {
107421
+ line: 105,
107422
+ column: 53
107423
+ }
107424
+ }, {
107425
+ start: {
107426
+ line: 105,
107427
+ column: 56
107428
+ },
107429
+ end: {
107430
+ line: 105,
107431
+ column: 72
107432
+ }
107433
+ }],
107434
+ line: 105
107435
+ },
107436
+ "4": {
107437
+ loc: {
107438
+ start: {
107439
+ line: 151,
107344
107440
  column: 23
107345
107441
  },
107346
107442
  end: {
107347
- line: 144,
107443
+ line: 151,
107348
107444
  column: 71
107349
107445
  }
107350
107446
  },
107351
107447
  type: "cond-expr",
107352
107448
  locations: [{
107353
107449
  start: {
107354
- line: 144,
107450
+ line: 151,
107355
107451
  column: 33
107356
107452
  },
107357
107453
  end: {
107358
- line: 144,
107454
+ line: 151,
107359
107455
  column: 66
107360
107456
  }
107361
107457
  }, {
107362
107458
  start: {
107363
- line: 144,
107459
+ line: 151,
107364
107460
  column: 69
107365
107461
  },
107366
107462
  end: {
107367
- line: 144,
107463
+ line: 151,
107368
107464
  column: 71
107369
107465
  }
107370
107466
  }],
107371
- line: 144
107467
+ line: 151
107372
107468
  },
107373
- "3": {
107469
+ "5": {
107374
107470
  loc: {
107375
107471
  start: {
107376
- line: 164,
107472
+ line: 171,
107377
107473
  column: 14
107378
107474
  },
107379
107475
  end: {
107380
- line: 164,
107476
+ line: 171,
107381
107477
  column: 36
107382
107478
  }
107383
107479
  },
107384
107480
  type: "if",
107385
107481
  locations: [{
107386
107482
  start: {
107387
- line: 164,
107483
+ line: 171,
107388
107484
  column: 14
107389
107485
  },
107390
107486
  end: {
107391
- line: 164,
107487
+ line: 171,
107392
107488
  column: 36
107393
107489
  }
107394
107490
  }, {
@@ -107401,27 +107497,27 @@ function cov_ksv9azglk() {
107401
107497
  column: undefined
107402
107498
  }
107403
107499
  }],
107404
- line: 164
107500
+ line: 171
107405
107501
  },
107406
- "4": {
107502
+ "6": {
107407
107503
  loc: {
107408
107504
  start: {
107409
- line: 170,
107505
+ line: 177,
107410
107506
  column: 14
107411
107507
  },
107412
107508
  end: {
107413
- line: 170,
107509
+ line: 177,
107414
107510
  column: 42
107415
107511
  }
107416
107512
  },
107417
107513
  type: "if",
107418
107514
  locations: [{
107419
107515
  start: {
107420
- line: 170,
107516
+ line: 177,
107421
107517
  column: 14
107422
107518
  },
107423
107519
  end: {
107424
- line: 170,
107520
+ line: 177,
107425
107521
  column: 42
107426
107522
  }
107427
107523
  }, {
@@ -107434,60 +107530,60 @@ function cov_ksv9azglk() {
107434
107530
  column: undefined
107435
107531
  }
107436
107532
  }],
107437
- line: 170
107533
+ line: 177
107438
107534
  },
107439
- "5": {
107535
+ "7": {
107440
107536
  loc: {
107441
107537
  start: {
107442
- line: 181,
107538
+ line: 188,
107443
107539
  column: 18
107444
107540
  },
107445
107541
  end: {
107446
- line: 191,
107542
+ line: 198,
107447
107543
  column: 22
107448
107544
  }
107449
107545
  },
107450
107546
  type: "binary-expr",
107451
107547
  locations: [{
107452
107548
  start: {
107453
- line: 181,
107549
+ line: 188,
107454
107550
  column: 18
107455
107551
  },
107456
107552
  end: {
107457
- line: 181,
107553
+ line: 188,
107458
107554
  column: 21
107459
107555
  }
107460
107556
  }, {
107461
107557
  start: {
107462
- line: 182,
107558
+ line: 189,
107463
107559
  column: 20
107464
107560
  },
107465
107561
  end: {
107466
- line: 191,
107562
+ line: 198,
107467
107563
  column: 22
107468
107564
  }
107469
107565
  }],
107470
- line: 181
107566
+ line: 188
107471
107567
  },
107472
- "6": {
107568
+ "8": {
107473
107569
  loc: {
107474
107570
  start: {
107475
- line: 183,
107571
+ line: 190,
107476
107572
  column: 22
107477
107573
  },
107478
107574
  end: {
107479
- line: 190,
107575
+ line: 197,
107480
107576
  column: 23
107481
107577
  }
107482
107578
  },
107483
107579
  type: "if",
107484
107580
  locations: [{
107485
107581
  start: {
107486
- line: 183,
107582
+ line: 190,
107487
107583
  column: 22
107488
107584
  },
107489
107585
  end: {
107490
- line: 190,
107586
+ line: 197,
107491
107587
  column: 23
107492
107588
  }
107493
107589
  }, {
@@ -107500,7 +107596,7 @@ function cov_ksv9azglk() {
107500
107596
  column: undefined
107501
107597
  }
107502
107598
  }],
107503
- line: 183
107599
+ line: 190
107504
107600
  }
107505
107601
  },
107506
107602
  s: {
@@ -107551,7 +107647,10 @@ function cov_ksv9azglk() {
107551
107647
  "44": 0,
107552
107648
  "45": 0,
107553
107649
  "46": 0,
107554
- "47": 0
107650
+ "47": 0,
107651
+ "48": 0,
107652
+ "49": 0,
107653
+ "50": 0
107555
107654
  },
107556
107655
  f: {
107557
107656
  "0": 0,
@@ -107582,10 +107681,12 @@ function cov_ksv9azglk() {
107582
107681
  "3": [0, 0],
107583
107682
  "4": [0, 0],
107584
107683
  "5": [0, 0],
107585
- "6": [0, 0]
107684
+ "6": [0, 0],
107685
+ "7": [0, 0],
107686
+ "8": [0, 0]
107586
107687
  },
107587
107688
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
107588
- hash: "2f76e7e418bf0486eadbbce16f9fef87dce7e620"
107689
+ hash: "e3d061312eb956c4abaae3072ef935e539e2852d"
107589
107690
  };
107590
107691
  var coverage = global[gcv] || (global[gcv] = {});
107591
107692
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -107652,7 +107753,8 @@ var ImageExtension = Node$1.create({
107652
107753
  cov_ksv9azglk().f[1]++;
107653
107754
  cov_ksv9azglk().s[8]++;
107654
107755
  return {
107655
- HTMLAttributes: {}
107756
+ HTMLAttributes: {},
107757
+ openImageInNewTab: true
107656
107758
  };
107657
107759
  },
107658
107760
  group: "block",
@@ -107735,20 +107837,23 @@ var ImageExtension = Node$1.create({
107735
107837
  src = _ref3.src,
107736
107838
  figheight = _ref3.figheight,
107737
107839
  figwidth = _ref3.figwidth;
107738
- var wrapperDivAttrs = (cov_ksv9azglk().s[18]++, {
107840
+ var openImageInNewTab = (cov_ksv9azglk().s[18]++, this.options.openImageInNewTab);
107841
+ var wrapperDivAttrs = (cov_ksv9azglk().s[19]++, {
107739
107842
  "class": "neeto-editor__image-wrapper neeto-editor__image--".concat(align)
107740
107843
  });
107741
- var wrapperLinkAttrs = (cov_ksv9azglk().s[19]++, {
107844
+ var wrapperLinkPointerEventsStyle = (cov_ksv9azglk().s[20]++, openImageInNewTab ? (cov_ksv9azglk().b[2][0]++, "") : (cov_ksv9azglk().b[2][1]++, "pointer-events:none;"));
107845
+ var heightStyle = (cov_ksv9azglk().s[21]++, figheight === "auto" ? (cov_ksv9azglk().b[3][0]++, "auto") : (cov_ksv9azglk().b[3][1]++, "".concat(figheight, "px")));
107846
+ var wrapperLinkAttrs = (cov_ksv9azglk().s[22]++, {
107742
107847
  href: src,
107743
107848
  target: "_blank",
107744
107849
  rel: "noopener noreferrer",
107745
107850
  "class": "neeto-editor__image",
107746
- style: "height:".concat(figheight, "px;width:").concat(figwidth, "px;")
107851
+ style: "height:".concat(heightStyle, ";width:").concat(figwidth, "px;").concat(wrapperLinkPointerEventsStyle)
107747
107852
  });
107748
- var captionAttrs = (cov_ksv9azglk().s[20]++, {
107853
+ var captionAttrs = (cov_ksv9azglk().s[23]++, {
107749
107854
  style: "width:".concat(figwidth, "px;")
107750
107855
  });
107751
- cov_ksv9azglk().s[21]++;
107856
+ cov_ksv9azglk().s[24]++;
107752
107857
  return ["div", wrapperDivAttrs, ["figure", this.options.HTMLAttributes, ["a", wrapperLinkAttrs, ["img", mergeAttributes(HTMLAttributes, {
107753
107858
  draggable: false,
107754
107859
  contenteditable: false
@@ -107756,30 +107861,30 @@ var ImageExtension = Node$1.create({
107756
107861
  },
107757
107862
  addNodeView: function addNodeView() {
107758
107863
  cov_ksv9azglk().f[11]++;
107759
- cov_ksv9azglk().s[22]++;
107864
+ cov_ksv9azglk().s[25]++;
107760
107865
  return ReactNodeViewRenderer(ImageComponent);
107761
107866
  },
107762
107867
  addCommands: function addCommands() {
107763
107868
  var _this = this;
107764
107869
  cov_ksv9azglk().f[12]++;
107765
- cov_ksv9azglk().s[23]++;
107870
+ cov_ksv9azglk().s[26]++;
107766
107871
  return {
107767
107872
  setFigure: function setFigure(_ref4) {
107768
107873
  var caption = _ref4.caption,
107769
107874
  attrs = _objectWithoutProperties$1(_ref4, _excluded$9);
107770
107875
  cov_ksv9azglk().f[13]++;
107771
- cov_ksv9azglk().s[24]++;
107876
+ cov_ksv9azglk().s[27]++;
107772
107877
  return function (_ref5) {
107773
107878
  var chain = _ref5.chain;
107774
107879
  cov_ksv9azglk().f[14]++;
107775
- cov_ksv9azglk().s[25]++;
107880
+ cov_ksv9azglk().s[28]++;
107776
107881
  return chain().insertContent({
107777
107882
  type: _this.name,
107778
107883
  attrs: attrs,
107779
- content: caption ? (cov_ksv9azglk().b[2][0]++, [{
107884
+ content: caption ? (cov_ksv9azglk().b[4][0]++, [{
107780
107885
  type: "text",
107781
107886
  text: caption
107782
- }]) : (cov_ksv9azglk().b[2][1]++, [])
107887
+ }]) : (cov_ksv9azglk().b[4][1]++, [])
107783
107888
  }).run();
107784
107889
  };
107785
107890
  }
@@ -107787,41 +107892,41 @@ var ImageExtension = Node$1.create({
107787
107892
  },
107788
107893
  addProseMirrorPlugins: function addProseMirrorPlugins() {
107789
107894
  cov_ksv9azglk().f[15]++;
107790
- cov_ksv9azglk().s[26]++;
107895
+ cov_ksv9azglk().s[29]++;
107791
107896
  return [new Plugin({
107792
107897
  props: {
107793
107898
  handleDOMEvents: {
107794
107899
  paste: function paste(view, event) {
107795
107900
  var _event$clipboardData, _event$clipboardData$;
107796
107901
  cov_ksv9azglk().f[16]++;
107797
- var _ref6 = (cov_ksv9azglk().s[27]++, view.state),
107902
+ var _ref6 = (cov_ksv9azglk().s[30]++, view.state),
107798
107903
  schema = _ref6.schema,
107799
107904
  pos = _ref6.selection.$anchor.pos;
107800
- var hasFiles = (cov_ksv9azglk().s[28]++, (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : (_event$clipboardData$ = _event$clipboardData.files) === null || _event$clipboardData$ === void 0 ? void 0 : _event$clipboardData$.length);
107801
- cov_ksv9azglk().s[29]++;
107905
+ var hasFiles = (cov_ksv9azglk().s[31]++, (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : (_event$clipboardData$ = _event$clipboardData.files) === null || _event$clipboardData$ === void 0 ? void 0 : _event$clipboardData$.length);
107906
+ cov_ksv9azglk().s[32]++;
107802
107907
  if (!hasFiles) {
107803
- cov_ksv9azglk().b[3][0]++;
107804
- cov_ksv9azglk().s[30]++;
107908
+ cov_ksv9azglk().b[5][0]++;
107909
+ cov_ksv9azglk().s[33]++;
107805
107910
  return;
107806
107911
  } else {
107807
- cov_ksv9azglk().b[3][1]++;
107912
+ cov_ksv9azglk().b[5][1]++;
107808
107913
  }
107809
- var images = (cov_ksv9azglk().s[31]++, Array.from(event.clipboardData.files).filter(function (file) {
107914
+ var images = (cov_ksv9azglk().s[34]++, Array.from(event.clipboardData.files).filter(function (file) {
107810
107915
  cov_ksv9azglk().f[17]++;
107811
- cov_ksv9azglk().s[32]++;
107916
+ cov_ksv9azglk().s[35]++;
107812
107917
  return /image/i.test(file.type);
107813
107918
  }));
107814
- cov_ksv9azglk().s[33]++;
107919
+ cov_ksv9azglk().s[36]++;
107815
107920
  if (isEmpty$1(images)) {
107816
- cov_ksv9azglk().b[4][0]++;
107817
- cov_ksv9azglk().s[34]++;
107921
+ cov_ksv9azglk().b[6][0]++;
107922
+ cov_ksv9azglk().s[37]++;
107818
107923
  return;
107819
107924
  } else {
107820
- cov_ksv9azglk().b[4][1]++;
107925
+ cov_ksv9azglk().b[6][1]++;
107821
107926
  }
107822
- cov_ksv9azglk().s[35]++;
107927
+ cov_ksv9azglk().s[38]++;
107823
107928
  event.preventDefault();
107824
- cov_ksv9azglk().s[36]++;
107929
+ cov_ksv9azglk().s[39]++;
107825
107930
  images.forEach( /*#__PURE__*/function () {
107826
107931
  var _ref7 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
107827
107932
  var id, node, transaction, url;
@@ -107829,33 +107934,33 @@ var ImageExtension = Node$1.create({
107829
107934
  while (1) switch (_context2.prev = _context2.next) {
107830
107935
  case 0:
107831
107936
  cov_ksv9azglk().f[18]++;
107832
- id = (cov_ksv9azglk().s[37]++, Math.random().toString(36).substring(7));
107833
- node = (cov_ksv9azglk().s[38]++, schema.nodes.image.create({
107937
+ id = (cov_ksv9azglk().s[40]++, Math.random().toString(36).substring(7));
107938
+ node = (cov_ksv9azglk().s[41]++, schema.nodes.image.create({
107834
107939
  id: id
107835
107940
  }));
107836
- transaction = (cov_ksv9azglk().s[39]++, view.state.tr.insert(pos, node));
107837
- cov_ksv9azglk().s[40]++;
107941
+ transaction = (cov_ksv9azglk().s[42]++, view.state.tr.insert(pos, node));
107942
+ cov_ksv9azglk().s[43]++;
107838
107943
  view.dispatch(transaction);
107839
- cov_ksv9azglk().s[41]++;
107944
+ cov_ksv9azglk().s[44]++;
107840
107945
  _context2.prev = 7;
107841
- cov_ksv9azglk().s[42]++;
107946
+ cov_ksv9azglk().s[45]++;
107842
107947
  _context2.next = 11;
107843
107948
  return upload(image, DIRECT_UPLOAD_ENDPOINT);
107844
107949
  case 11:
107845
107950
  url = _context2.sent;
107846
- cov_ksv9azglk().s[43]++;
107847
- (cov_ksv9azglk().b[5][0]++, url) && (cov_ksv9azglk().b[5][1]++, view.state.doc.descendants(function (node, pos) {
107951
+ cov_ksv9azglk().s[46]++;
107952
+ (cov_ksv9azglk().b[7][0]++, url) && (cov_ksv9azglk().b[7][1]++, view.state.doc.descendants(function (node, pos) {
107848
107953
  cov_ksv9azglk().f[19]++;
107849
- cov_ksv9azglk().s[44]++;
107954
+ cov_ksv9azglk().s[47]++;
107850
107955
  if (node.attrs.id === id) {
107851
- cov_ksv9azglk().b[6][0]++;
107852
- var _transaction = (cov_ksv9azglk().s[45]++, view.state.tr.setNodeMarkup(pos, null, {
107956
+ cov_ksv9azglk().b[8][0]++;
107957
+ var _transaction = (cov_ksv9azglk().s[48]++, view.state.tr.setNodeMarkup(pos, null, {
107853
107958
  src: url
107854
107959
  }));
107855
- cov_ksv9azglk().s[46]++;
107960
+ cov_ksv9azglk().s[49]++;
107856
107961
  view.dispatch(_transaction);
107857
107962
  } else {
107858
- cov_ksv9azglk().b[6][1]++;
107963
+ cov_ksv9azglk().b[8][1]++;
107859
107964
  }
107860
107965
  }));
107861
107966
  _context2.next = 20;
@@ -107863,7 +107968,7 @@ var ImageExtension = Node$1.create({
107863
107968
  case 16:
107864
107969
  _context2.prev = 16;
107865
107970
  _context2.t0 = _context2["catch"](7);
107866
- cov_ksv9azglk().s[47]++;
107971
+ cov_ksv9azglk().s[50]++;
107867
107972
  view.dispatch(view.state.tr["delete"](pos, pos + 1));
107868
107973
  case 20:
107869
107974
  case "end":
@@ -125061,7 +125166,7 @@ var VideoComponent = function VideoComponent(_ref) {
125061
125166
  var _excluded$6 = ["caption"];
125062
125167
  function cov_1io0efe0r8() {
125063
125168
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Video/ExtensionConfig.js";
125064
- var hash = "ca27def878a72057160dc6b8ddf0d6cfcdd803b6";
125169
+ var hash = "32ec7ff2283466c73c722982c71331e0c9f71a2f";
125065
125170
  var global = new Function("return this")();
125066
125171
  var gcv = "__coverage__";
125067
125172
  var coverageData = {
@@ -125073,7 +125178,7 @@ function cov_1io0efe0r8() {
125073
125178
  column: 23
125074
125179
  },
125075
125180
  end: {
125076
- line: 133,
125181
+ line: 134,
125077
125182
  column: 2
125078
125183
  }
125079
125184
  },
@@ -125170,11 +125275,11 @@ function cov_1io0efe0r8() {
125170
125275
  "10": {
125171
125276
  start: {
125172
125277
  line: 68,
125173
- column: 48
125278
+ column: 43
125174
125279
  },
125175
125280
  end: {
125176
125281
  line: 68,
125177
- column: 58
125282
+ column: 53
125178
125283
  }
125179
125284
  },
125180
125285
  "11": {
@@ -125189,101 +125294,111 @@ function cov_1io0efe0r8() {
125189
125294
  },
125190
125295
  "12": {
125191
125296
  start: {
125192
- line: 74,
125297
+ line: 75,
125298
+ column: 6
125299
+ },
125300
+ end: {
125301
+ line: 75,
125302
+ column: 69
125303
+ }
125304
+ },
125305
+ "13": {
125306
+ start: {
125307
+ line: 77,
125193
125308
  column: 29
125194
125309
  },
125195
125310
  end: {
125196
- line: 80,
125311
+ line: 81,
125197
125312
  column: 5
125198
125313
  }
125199
125314
  },
125200
- "13": {
125315
+ "14": {
125201
125316
  start: {
125202
- line: 82,
125317
+ line: 83,
125203
125318
  column: 25
125204
125319
  },
125205
125320
  end: {
125206
- line: 82,
125321
+ line: 83,
125207
125322
  column: 58
125208
125323
  }
125209
125324
  },
125210
- "14": {
125325
+ "15": {
125211
125326
  start: {
125212
- line: 84,
125327
+ line: 85,
125213
125328
  column: 4
125214
125329
  },
125215
125330
  end: {
125216
- line: 105,
125331
+ line: 106,
125217
125332
  column: 6
125218
125333
  }
125219
125334
  },
125220
- "15": {
125335
+ "16": {
125221
125336
  start: {
125222
- line: 109,
125337
+ line: 110,
125223
125338
  column: 4
125224
125339
  },
125225
125340
  end: {
125226
- line: 109,
125341
+ line: 110,
125227
125342
  column: 49
125228
125343
  }
125229
125344
  },
125230
- "16": {
125345
+ "17": {
125231
125346
  start: {
125232
- line: 113,
125347
+ line: 114,
125233
125348
  column: 4
125234
125349
  },
125235
125350
  end: {
125236
- line: 131,
125351
+ line: 132,
125237
125352
  column: 6
125238
125353
  }
125239
125354
  },
125240
- "17": {
125355
+ "18": {
125241
125356
  start: {
125242
- line: 116,
125357
+ line: 117,
125243
125358
  column: 8
125244
125359
  },
125245
125360
  end: {
125246
- line: 130,
125361
+ line: 131,
125247
125362
  column: 18
125248
125363
  }
125249
125364
  },
125250
- "18": {
125365
+ "19": {
125251
125366
  start: {
125252
- line: 117,
125367
+ line: 118,
125253
125368
  column: 10
125254
125369
  },
125255
125370
  end: {
125256
- line: 130,
125371
+ line: 131,
125257
125372
  column: 18
125258
125373
  }
125259
125374
  },
125260
- "19": {
125375
+ "20": {
125261
125376
  start: {
125262
- line: 125,
125377
+ line: 126,
125263
125378
  column: 41
125264
125379
  },
125265
125380
  end: {
125266
- line: 125,
125381
+ line: 126,
125267
125382
  column: 43
125268
125383
  }
125269
125384
  },
125270
- "20": {
125385
+ "21": {
125271
125386
  start: {
125272
- line: 126,
125387
+ line: 127,
125273
125388
  column: 31
125274
125389
  },
125275
125390
  end: {
125276
- line: 126,
125391
+ line: 127,
125277
125392
  column: 62
125278
125393
  }
125279
125394
  },
125280
- "21": {
125395
+ "22": {
125281
125396
  start: {
125282
- line: 128,
125397
+ line: 129,
125283
125398
  column: 14
125284
125399
  },
125285
125400
  end: {
125286
- line: 128,
125401
+ line: 129,
125287
125402
  column: 57
125288
125403
  }
125289
125404
  }
@@ -125523,7 +125638,7 @@ function cov_1io0efe0r8() {
125523
125638
  column: 39
125524
125639
  },
125525
125640
  end: {
125526
- line: 106,
125641
+ line: 107,
125527
125642
  column: 3
125528
125643
  }
125529
125644
  },
@@ -125533,121 +125648,121 @@ function cov_1io0efe0r8() {
125533
125648
  name: "(anonymous_10)",
125534
125649
  decl: {
125535
125650
  start: {
125536
- line: 108,
125651
+ line: 109,
125537
125652
  column: 2
125538
125653
  },
125539
125654
  end: {
125540
- line: 108,
125655
+ line: 109,
125541
125656
  column: 3
125542
125657
  }
125543
125658
  },
125544
125659
  loc: {
125545
125660
  start: {
125546
- line: 108,
125661
+ line: 109,
125547
125662
  column: 16
125548
125663
  },
125549
125664
  end: {
125550
- line: 110,
125665
+ line: 111,
125551
125666
  column: 3
125552
125667
  }
125553
125668
  },
125554
- line: 108
125669
+ line: 109
125555
125670
  },
125556
125671
  "11": {
125557
125672
  name: "(anonymous_11)",
125558
125673
  decl: {
125559
125674
  start: {
125560
- line: 112,
125675
+ line: 113,
125561
125676
  column: 2
125562
125677
  },
125563
125678
  end: {
125564
- line: 112,
125679
+ line: 113,
125565
125680
  column: 3
125566
125681
  }
125567
125682
  },
125568
125683
  loc: {
125569
125684
  start: {
125570
- line: 112,
125685
+ line: 113,
125571
125686
  column: 16
125572
125687
  },
125573
125688
  end: {
125574
- line: 132,
125689
+ line: 133,
125575
125690
  column: 3
125576
125691
  }
125577
125692
  },
125578
- line: 112
125693
+ line: 113
125579
125694
  },
125580
125695
  "12": {
125581
125696
  name: "(anonymous_12)",
125582
125697
  decl: {
125583
125698
  start: {
125584
- line: 115,
125699
+ line: 116,
125585
125700
  column: 8
125586
125701
  },
125587
125702
  end: {
125588
- line: 115,
125703
+ line: 116,
125589
125704
  column: 9
125590
125705
  }
125591
125706
  },
125592
125707
  loc: {
125593
125708
  start: {
125594
- line: 116,
125709
+ line: 117,
125595
125710
  column: 8
125596
125711
  },
125597
125712
  end: {
125598
- line: 130,
125713
+ line: 131,
125599
125714
  column: 18
125600
125715
  }
125601
125716
  },
125602
- line: 116
125717
+ line: 117
125603
125718
  },
125604
125719
  "13": {
125605
125720
  name: "(anonymous_13)",
125606
125721
  decl: {
125607
125722
  start: {
125608
- line: 116,
125723
+ line: 117,
125609
125724
  column: 8
125610
125725
  },
125611
125726
  end: {
125612
- line: 116,
125727
+ line: 117,
125613
125728
  column: 9
125614
125729
  }
125615
125730
  },
125616
125731
  loc: {
125617
125732
  start: {
125618
- line: 117,
125733
+ line: 118,
125619
125734
  column: 10
125620
125735
  },
125621
125736
  end: {
125622
- line: 130,
125737
+ line: 131,
125623
125738
  column: 18
125624
125739
  }
125625
125740
  },
125626
- line: 117
125741
+ line: 118
125627
125742
  },
125628
125743
  "14": {
125629
125744
  name: "(anonymous_14)",
125630
125745
  decl: {
125631
125746
  start: {
125632
- line: 124,
125747
+ line: 125,
125633
125748
  column: 21
125634
125749
  },
125635
125750
  end: {
125636
- line: 124,
125751
+ line: 125,
125637
125752
  column: 22
125638
125753
  }
125639
125754
  },
125640
125755
  loc: {
125641
125756
  start: {
125642
- line: 124,
125757
+ line: 125,
125643
125758
  column: 43
125644
125759
  },
125645
125760
  end: {
125646
- line: 129,
125761
+ line: 130,
125647
125762
  column: 13
125648
125763
  }
125649
125764
  },
125650
- line: 124
125765
+ line: 125
125651
125766
  }
125652
125767
  },
125653
125768
  branchMap: {
@@ -125687,35 +125802,68 @@ function cov_1io0efe0r8() {
125687
125802
  "1": {
125688
125803
  loc: {
125689
125804
  start: {
125690
- line: 121,
125805
+ line: 75,
125806
+ column: 6
125807
+ },
125808
+ end: {
125809
+ line: 75,
125810
+ column: 69
125811
+ }
125812
+ },
125813
+ type: "cond-expr",
125814
+ locations: [{
125815
+ start: {
125816
+ line: 75,
125817
+ column: 36
125818
+ },
125819
+ end: {
125820
+ line: 75,
125821
+ column: 49
125822
+ }
125823
+ }, {
125824
+ start: {
125825
+ line: 75,
125826
+ column: 52
125827
+ },
125828
+ end: {
125829
+ line: 75,
125830
+ column: 69
125831
+ }
125832
+ }],
125833
+ line: 75
125834
+ },
125835
+ "2": {
125836
+ loc: {
125837
+ start: {
125838
+ line: 122,
125691
125839
  column: 23
125692
125840
  },
125693
125841
  end: {
125694
- line: 121,
125842
+ line: 122,
125695
125843
  column: 71
125696
125844
  }
125697
125845
  },
125698
125846
  type: "cond-expr",
125699
125847
  locations: [{
125700
125848
  start: {
125701
- line: 121,
125849
+ line: 122,
125702
125850
  column: 33
125703
125851
  },
125704
125852
  end: {
125705
- line: 121,
125853
+ line: 122,
125706
125854
  column: 66
125707
125855
  }
125708
125856
  }, {
125709
125857
  start: {
125710
- line: 121,
125858
+ line: 122,
125711
125859
  column: 69
125712
125860
  },
125713
125861
  end: {
125714
- line: 121,
125862
+ line: 122,
125715
125863
  column: 71
125716
125864
  }
125717
125865
  }],
125718
- line: 121
125866
+ line: 122
125719
125867
  }
125720
125868
  },
125721
125869
  s: {
@@ -125740,7 +125888,8 @@ function cov_1io0efe0r8() {
125740
125888
  "18": 0,
125741
125889
  "19": 0,
125742
125890
  "20": 0,
125743
- "21": 0
125891
+ "21": 0,
125892
+ "22": 0
125744
125893
  },
125745
125894
  f: {
125746
125895
  "0": 0,
@@ -125761,10 +125910,11 @@ function cov_1io0efe0r8() {
125761
125910
  },
125762
125911
  b: {
125763
125912
  "0": [0, 0],
125764
- "1": [0, 0]
125913
+ "1": [0, 0],
125914
+ "2": [0, 0]
125765
125915
  },
125766
125916
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
125767
- hash: "ca27def878a72057160dc6b8ddf0d6cfcdd803b6"
125917
+ hash: "32ec7ff2283466c73c722982c71331e0c9f71a2f"
125768
125918
  };
125769
125919
  var coverage = global[gcv] || (global[gcv] = {});
125770
125920
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -125863,23 +126013,21 @@ var VideoExtension = (cov_1io0efe0r8().s[0]++, Node$1.create({
125863
126013
  cov_1io0efe0r8().f[9]++;
125864
126014
  var _ref2 = (cov_1io0efe0r8().s[10]++, node.attrs),
125865
126015
  align = _ref2.align,
125866
- src = _ref2.src,
125867
126016
  vidheight = _ref2.vidheight,
125868
126017
  vidwidth = _ref2.vidwidth;
125869
126018
  var wrapperDivAttrs = (cov_1io0efe0r8().s[11]++, {
125870
126019
  "class": "neeto-editor__image-wrapper neeto-editor__image--".concat(align)
125871
126020
  });
125872
- var wrapperLinkAttrs = (cov_1io0efe0r8().s[12]++, {
125873
- href: src,
125874
- target: "_blank",
126021
+ var heightStyle = (cov_1io0efe0r8().s[12]++, vidheight === "fit-content" ? (cov_1io0efe0r8().b[1][0]++, "fit-content") : (cov_1io0efe0r8().b[1][1]++, "".concat(vidheight, "px;")));
126022
+ var wrapperLinkAttrs = (cov_1io0efe0r8().s[13]++, {
125875
126023
  rel: "noopener noreferrer",
125876
126024
  "class": "neeto-editor__image",
125877
- style: "height:".concat(vidheight, "px;width:").concat(vidwidth, "px;")
126025
+ style: "height:".concat(heightStyle, ";width:").concat(vidwidth, "px;")
125878
126026
  });
125879
- var captionAttrs = (cov_1io0efe0r8().s[13]++, {
126027
+ var captionAttrs = (cov_1io0efe0r8().s[14]++, {
125880
126028
  style: "width:".concat(vidwidth, "px;")
125881
126029
  });
125882
- cov_1io0efe0r8().s[14]++;
126030
+ cov_1io0efe0r8().s[15]++;
125883
126031
  return ["div", wrapperDivAttrs, ["figure", mergeAttributes(this.options.HTMLAttributes, {
125884
126032
  "data-video": ""
125885
126033
  }), ["a", wrapperLinkAttrs, ["video", mergeAttributes(HTMLAttributes, {
@@ -125891,41 +126039,41 @@ var VideoExtension = (cov_1io0efe0r8().s[0]++, Node$1.create({
125891
126039
  },
125892
126040
  addNodeView: function addNodeView() {
125893
126041
  cov_1io0efe0r8().f[10]++;
125894
- cov_1io0efe0r8().s[15]++;
126042
+ cov_1io0efe0r8().s[16]++;
125895
126043
  return ReactNodeViewRenderer(VideoComponent);
125896
126044
  },
125897
126045
  addCommands: function addCommands() {
125898
126046
  var _this = this;
125899
126047
  cov_1io0efe0r8().f[11]++;
125900
- cov_1io0efe0r8().s[16]++;
126048
+ cov_1io0efe0r8().s[17]++;
125901
126049
  return {
125902
126050
  setVideo: function setVideo(_ref3) {
125903
126051
  var caption = _ref3.caption,
125904
126052
  attrs = _objectWithoutProperties$1(_ref3, _excluded$6);
125905
126053
  cov_1io0efe0r8().f[12]++;
125906
- cov_1io0efe0r8().s[17]++;
126054
+ cov_1io0efe0r8().s[18]++;
125907
126055
  return function (_ref4) {
125908
126056
  var chain = _ref4.chain;
125909
126057
  cov_1io0efe0r8().f[13]++;
125910
- cov_1io0efe0r8().s[18]++;
126058
+ cov_1io0efe0r8().s[19]++;
125911
126059
  return chain().insertContent({
125912
126060
  type: _this.name,
125913
126061
  attrs: attrs,
125914
- content: caption ? (cov_1io0efe0r8().b[1][0]++, [{
126062
+ content: caption ? (cov_1io0efe0r8().b[2][0]++, [{
125915
126063
  type: "text",
125916
126064
  text: caption
125917
- }]) : (cov_1io0efe0r8().b[1][1]++, [])
126065
+ }]) : (cov_1io0efe0r8().b[2][1]++, [])
125918
126066
  })
125919
126067
  // set cursor at end of caption field
125920
126068
  .command(function (_ref5) {
125921
126069
  var tr = _ref5.tr,
125922
126070
  commands = _ref5.commands;
125923
126071
  cov_1io0efe0r8().f[14]++;
125924
- var _ref6 = (cov_1io0efe0r8().s[19]++, tr),
126072
+ var _ref6 = (cov_1io0efe0r8().s[20]++, tr),
125925
126073
  doc = _ref6.doc,
125926
126074
  selection = _ref6.selection;
125927
- var position = (cov_1io0efe0r8().s[20]++, doc.resolve(selection.to).end());
125928
- cov_1io0efe0r8().s[21]++;
126075
+ var position = (cov_1io0efe0r8().s[21]++, doc.resolve(selection.to).end());
126076
+ cov_1io0efe0r8().s[22]++;
125929
126077
  return commands.setTextSelection(position);
125930
126078
  }).run();
125931
126079
  };
@@ -125936,7 +126084,7 @@ var VideoExtension = (cov_1io0efe0r8().s[0]++, Node$1.create({
125936
126084
 
125937
126085
  function cov_q50c3y9sz() {
125938
126086
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/hooks/useCustomExtensions.js";
125939
- var hash = "6d9ee8786c3886e24ce5d34043f8cad6c9011b2e";
126087
+ var hash = "eef68954c1c708bc344c0f0a43d3de8684b60b24";
125940
126088
  var global = new Function("return this")();
125941
126089
  var gcv = "__coverage__";
125942
126090
  var coverageData = {
@@ -125948,177 +126096,177 @@ function cov_q50c3y9sz() {
125948
126096
  column: 28
125949
126097
  },
125950
126098
  end: {
125951
- line: 128,
126099
+ line: 129,
125952
126100
  column: 1
125953
126101
  }
125954
126102
  },
125955
126103
  "1": {
125956
126104
  start: {
125957
- line: 49,
126105
+ line: 50,
125958
126106
  column: 25
125959
126107
  },
125960
126108
  end: {
125961
- line: 72,
126109
+ line: 73,
125962
126110
  column: 3
125963
126111
  }
125964
126112
  },
125965
126113
  "2": {
125966
126114
  start: {
125967
- line: 73,
126115
+ line: 74,
125968
126116
  column: 2
125969
126117
  },
125970
126118
  end: {
125971
- line: 75,
126119
+ line: 76,
125972
126120
  column: 3
125973
126121
  }
125974
126122
  },
125975
126123
  "3": {
125976
126124
  start: {
125977
- line: 74,
126125
+ line: 75,
125978
126126
  column: 4
125979
126127
  },
125980
126128
  end: {
125981
- line: 74,
126129
+ line: 75,
125982
126130
  column: 34
125983
126131
  }
125984
126132
  },
125985
126133
  "4": {
125986
126134
  start: {
125987
- line: 77,
126135
+ line: 78,
125988
126136
  column: 2
125989
126137
  },
125990
126138
  end: {
125991
- line: 84,
126139
+ line: 85,
125992
126140
  column: 3
125993
126141
  }
125994
126142
  },
125995
126143
  "5": {
125996
126144
  start: {
125997
- line: 78,
126145
+ line: 79,
125998
126146
  column: 4
125999
126147
  },
126000
126148
  end: {
126001
- line: 83,
126149
+ line: 84,
126002
126150
  column: 6
126003
126151
  }
126004
126152
  },
126005
126153
  "6": {
126006
126154
  start: {
126007
- line: 86,
126155
+ line: 87,
126008
126156
  column: 2
126009
126157
  },
126010
126158
  end: {
126011
- line: 88,
126159
+ line: 89,
126012
126160
  column: 3
126013
126161
  }
126014
126162
  },
126015
126163
  "7": {
126016
126164
  start: {
126017
- line: 87,
126165
+ line: 88,
126018
126166
  column: 4
126019
126167
  },
126020
126168
  end: {
126021
- line: 87,
126169
+ line: 88,
126022
126170
  column: 33
126023
126171
  }
126024
126172
  },
126025
126173
  "8": {
126026
126174
  start: {
126027
- line: 90,
126175
+ line: 91,
126028
126176
  column: 2
126029
126177
  },
126030
126178
  end: {
126031
- line: 99,
126179
+ line: 100,
126032
126180
  column: 3
126033
126181
  }
126034
126182
  },
126035
126183
  "9": {
126036
126184
  start: {
126037
- line: 91,
126185
+ line: 92,
126038
126186
  column: 4
126039
126187
  },
126040
126188
  end: {
126041
- line: 98,
126189
+ line: 99,
126042
126190
  column: 6
126043
126191
  }
126044
126192
  },
126045
126193
  "10": {
126046
126194
  start: {
126047
- line: 101,
126195
+ line: 102,
126048
126196
  column: 2
126049
126197
  },
126050
126198
  end: {
126051
- line: 119,
126199
+ line: 120,
126052
126200
  column: 3
126053
126201
  }
126054
126202
  },
126055
126203
  "11": {
126056
126204
  start: {
126057
- line: 102,
126205
+ line: 103,
126058
126206
  column: 18
126059
126207
  },
126060
126208
  end: {
126061
- line: 102,
126209
+ line: 103,
126062
126210
  column: 52
126063
126211
  }
126064
126212
  },
126065
126213
  "12": {
126066
126214
  start: {
126067
- line: 104,
126215
+ line: 105,
126068
126216
  column: 4
126069
126217
  },
126070
126218
  end: {
126071
- line: 110,
126219
+ line: 111,
126072
126220
  column: 6
126073
126221
  }
126074
126222
  },
126075
126223
  "13": {
126076
126224
  start: {
126077
- line: 112,
126225
+ line: 113,
126078
126226
  column: 4
126079
126227
  },
126080
126228
  end: {
126081
- line: 118,
126229
+ line: 119,
126082
126230
  column: 6
126083
126231
  }
126084
126232
  },
126085
126233
  "14": {
126086
126234
  start: {
126087
- line: 121,
126235
+ line: 122,
126088
126236
  column: 2
126089
126237
  },
126090
126238
  end: {
126091
- line: 123,
126239
+ line: 124,
126092
126240
  column: 3
126093
126241
  }
126094
126242
  },
126095
126243
  "15": {
126096
126244
  start: {
126097
- line: 122,
126245
+ line: 123,
126098
126246
  column: 4
126099
126247
  },
126100
126248
  end: {
126101
- line: 122,
126249
+ line: 123,
126102
126250
  column: 36
126103
126251
  }
126104
126252
  },
126105
126253
  "16": {
126106
126254
  start: {
126107
- line: 125,
126255
+ line: 126,
126108
126256
  column: 2
126109
126257
  },
126110
126258
  end: {
126111
- line: 125,
126259
+ line: 126,
126112
126260
  column: 57
126113
126261
  }
126114
126262
  },
126115
126263
  "17": {
126116
126264
  start: {
126117
- line: 127,
126265
+ line: 128,
126118
126266
  column: 2
126119
126267
  },
126120
126268
  end: {
126121
- line: 127,
126269
+ line: 128,
126122
126270
  column: 26
126123
126271
  }
126124
126272
  }
@@ -126138,37 +126286,37 @@ function cov_q50c3y9sz() {
126138
126286
  },
126139
126287
  loc: {
126140
126288
  start: {
126141
- line: 48,
126289
+ line: 49,
126142
126290
  column: 6
126143
126291
  },
126144
126292
  end: {
126145
- line: 128,
126293
+ line: 129,
126146
126294
  column: 1
126147
126295
  }
126148
126296
  },
126149
- line: 48
126297
+ line: 49
126150
126298
  }
126151
126299
  },
126152
126300
  branchMap: {
126153
126301
  "0": {
126154
126302
  loc: {
126155
126303
  start: {
126156
- line: 73,
126304
+ line: 74,
126157
126305
  column: 2
126158
126306
  },
126159
126307
  end: {
126160
- line: 75,
126308
+ line: 76,
126161
126309
  column: 3
126162
126310
  }
126163
126311
  },
126164
126312
  type: "if",
126165
126313
  locations: [{
126166
126314
  start: {
126167
- line: 73,
126315
+ line: 74,
126168
126316
  column: 2
126169
126317
  },
126170
126318
  end: {
126171
- line: 75,
126319
+ line: 76,
126172
126320
  column: 3
126173
126321
  }
126174
126322
  }, {
@@ -126181,27 +126329,27 @@ function cov_q50c3y9sz() {
126181
126329
  column: undefined
126182
126330
  }
126183
126331
  }],
126184
- line: 73
126332
+ line: 74
126185
126333
  },
126186
126334
  "1": {
126187
126335
  loc: {
126188
126336
  start: {
126189
- line: 77,
126337
+ line: 78,
126190
126338
  column: 2
126191
126339
  },
126192
126340
  end: {
126193
- line: 84,
126341
+ line: 85,
126194
126342
  column: 3
126195
126343
  }
126196
126344
  },
126197
126345
  type: "if",
126198
126346
  locations: [{
126199
126347
  start: {
126200
- line: 77,
126348
+ line: 78,
126201
126349
  column: 2
126202
126350
  },
126203
126351
  end: {
126204
- line: 84,
126352
+ line: 85,
126205
126353
  column: 3
126206
126354
  }
126207
126355
  }, {
@@ -126214,27 +126362,27 @@ function cov_q50c3y9sz() {
126214
126362
  column: undefined
126215
126363
  }
126216
126364
  }],
126217
- line: 77
126365
+ line: 78
126218
126366
  },
126219
126367
  "2": {
126220
126368
  loc: {
126221
126369
  start: {
126222
- line: 86,
126370
+ line: 87,
126223
126371
  column: 2
126224
126372
  },
126225
126373
  end: {
126226
- line: 88,
126374
+ line: 89,
126227
126375
  column: 3
126228
126376
  }
126229
126377
  },
126230
126378
  type: "if",
126231
126379
  locations: [{
126232
126380
  start: {
126233
- line: 86,
126381
+ line: 87,
126234
126382
  column: 2
126235
126383
  },
126236
126384
  end: {
126237
- line: 88,
126385
+ line: 89,
126238
126386
  column: 3
126239
126387
  }
126240
126388
  }, {
@@ -126247,27 +126395,27 @@ function cov_q50c3y9sz() {
126247
126395
  column: undefined
126248
126396
  }
126249
126397
  }],
126250
- line: 86
126398
+ line: 87
126251
126399
  },
126252
126400
  "3": {
126253
126401
  loc: {
126254
126402
  start: {
126255
- line: 90,
126403
+ line: 91,
126256
126404
  column: 2
126257
126405
  },
126258
126406
  end: {
126259
- line: 99,
126407
+ line: 100,
126260
126408
  column: 3
126261
126409
  }
126262
126410
  },
126263
126411
  type: "if",
126264
126412
  locations: [{
126265
126413
  start: {
126266
- line: 90,
126414
+ line: 91,
126267
126415
  column: 2
126268
126416
  },
126269
126417
  end: {
126270
- line: 99,
126418
+ line: 100,
126271
126419
  column: 3
126272
126420
  }
126273
126421
  }, {
@@ -126280,27 +126428,27 @@ function cov_q50c3y9sz() {
126280
126428
  column: undefined
126281
126429
  }
126282
126430
  }],
126283
- line: 90
126431
+ line: 91
126284
126432
  },
126285
126433
  "4": {
126286
126434
  loc: {
126287
126435
  start: {
126288
- line: 101,
126436
+ line: 102,
126289
126437
  column: 2
126290
126438
  },
126291
126439
  end: {
126292
- line: 119,
126440
+ line: 120,
126293
126441
  column: 3
126294
126442
  }
126295
126443
  },
126296
126444
  type: "if",
126297
126445
  locations: [{
126298
126446
  start: {
126299
- line: 101,
126447
+ line: 102,
126300
126448
  column: 2
126301
126449
  },
126302
126450
  end: {
126303
- line: 119,
126451
+ line: 120,
126304
126452
  column: 3
126305
126453
  }
126306
126454
  }, {
@@ -126313,27 +126461,27 @@ function cov_q50c3y9sz() {
126313
126461
  column: undefined
126314
126462
  }
126315
126463
  }],
126316
- line: 101
126464
+ line: 102
126317
126465
  },
126318
126466
  "5": {
126319
126467
  loc: {
126320
126468
  start: {
126321
- line: 121,
126469
+ line: 122,
126322
126470
  column: 2
126323
126471
  },
126324
126472
  end: {
126325
- line: 123,
126473
+ line: 124,
126326
126474
  column: 3
126327
126475
  }
126328
126476
  },
126329
126477
  type: "if",
126330
126478
  locations: [{
126331
126479
  start: {
126332
- line: 121,
126480
+ line: 122,
126333
126481
  column: 2
126334
126482
  },
126335
126483
  end: {
126336
- line: 123,
126484
+ line: 124,
126337
126485
  column: 3
126338
126486
  }
126339
126487
  }, {
@@ -126346,7 +126494,7 @@ function cov_q50c3y9sz() {
126346
126494
  column: undefined
126347
126495
  }
126348
126496
  }],
126349
- line: 121
126497
+ line: 122
126350
126498
  }
126351
126499
  },
126352
126500
  s: {
@@ -126381,7 +126529,7 @@ function cov_q50c3y9sz() {
126381
126529
  "5": [0, 0]
126382
126530
  },
126383
126531
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
126384
- hash: "6d9ee8786c3886e24ce5d34043f8cad6c9011b2e"
126532
+ hash: "eef68954c1c708bc344c0f0a43d3de8684b60b24"
126385
126533
  };
126386
126534
  var coverage = global[gcv] || (global[gcv] = {});
126387
126535
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -126410,11 +126558,14 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
126410
126558
  keyboardShortcuts = _ref.keyboardShortcuts,
126411
126559
  isVideoEmbedActive = _ref.isVideoEmbedActive,
126412
126560
  setMediaUploader = _ref.setMediaUploader,
126413
- setIsEmbedModalOpen = _ref.setIsEmbedModalOpen;
126561
+ setIsEmbedModalOpen = _ref.setIsEmbedModalOpen,
126562
+ openImageInNewTab = _ref.openImageInNewTab;
126414
126563
  cov_q50c3y9sz().f[0]++;
126415
126564
  var customExtensions = (cov_q50c3y9sz().s[1]++, [CharacterCount, Code, CodeBlock, CustomCommands, Document, EmojiSuggestion$1, EmojiPicker, FigCaption, HighlightInternal, FocusClasses.configure({
126416
126565
  mode: "shallowest"
126417
- }), Highlight, VideoExtension, ImageExtension, Link.configure({
126566
+ }), Highlight, VideoExtension, ImageExtension.configure({
126567
+ openImageInNewTab: openImageInNewTab
126568
+ }), Link.configure({
126418
126569
  autolink: false
126419
126570
  }), Placeholder.configure({
126420
126571
  placeholder: placeholder
@@ -148631,10 +148782,10 @@ var Menu = function Menu(props) {
148631
148782
  }));
148632
148783
  };
148633
148784
 
148634
- var _excluded$2 = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "menuClassName", "attachmentsClassName", "isMenuIndependent", "isMenuCollapsible", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "variables", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children", "showAttachmentsToastr"];
148785
+ var _excluded$2 = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "menuClassName", "attachmentsClassName", "isMenuIndependent", "isMenuCollapsible", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "variables", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children", "showAttachmentsToastr", "openImageInNewTab"];
148635
148786
  function cov_1p0jklglk1() {
148636
148787
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/index.jsx";
148637
- var hash = "0396ef701ec1c360180ead8a2e4e5ea7e2272cb0";
148788
+ var hash = "d51ef5835746e5e1780f8a0e5b2a3e2b50165ce3";
148638
148789
  var global = new Function("return this")();
148639
148790
  var gcv = "__coverage__";
148640
148791
  var coverageData = {
@@ -148646,297 +148797,297 @@ function cov_1p0jklglk1() {
148646
148797
  column: 15
148647
148798
  },
148648
148799
  end: {
148649
- line: 221,
148800
+ line: 223,
148650
148801
  column: 1
148651
148802
  }
148652
148803
  },
148653
148804
  "1": {
148654
148805
  start: {
148655
- line: 68,
148806
+ line: 69,
148656
148807
  column: 22
148657
148808
  },
148658
148809
  end: {
148659
- line: 68,
148810
+ line: 69,
148660
148811
  column: 34
148661
148812
  }
148662
148813
  },
148663
148814
  "2": {
148664
148815
  start: {
148665
- line: 69,
148816
+ line: 70,
148666
148817
  column: 30
148667
148818
  },
148668
148819
  end: {
148669
- line: 69,
148820
+ line: 70,
148670
148821
  column: 73
148671
148822
  }
148672
148823
  },
148673
148824
  "3": {
148674
148825
  start: {
148675
- line: 70,
148826
+ line: 71,
148676
148827
  column: 29
148677
148828
  },
148678
148829
  end: {
148679
- line: 70,
148830
+ line: 71,
148680
148831
  column: 72
148681
148832
  }
148682
148833
  },
148683
148834
  "4": {
148684
148835
  start: {
148685
- line: 72,
148836
+ line: 73,
148686
148837
  column: 4
148687
148838
  },
148688
148839
  end: {
148689
- line: 73,
148840
+ line: 74,
148690
148841
  column: 48
148691
148842
  }
148692
148843
  },
148693
148844
  "5": {
148694
148845
  start: {
148695
- line: 74,
148846
+ line: 75,
148696
148847
  column: 28
148697
148848
  },
148698
148849
  end: {
148699
- line: 74,
148850
+ line: 75,
148700
148851
  column: 48
148701
148852
  }
148702
148853
  },
148703
148854
  "6": {
148704
148855
  start: {
148705
- line: 75,
148856
+ line: 76,
148706
148857
  column: 29
148707
148858
  },
148708
148859
  end: {
148709
- line: 75,
148860
+ line: 76,
148710
148861
  column: 50
148711
148862
  }
148712
148863
  },
148713
148864
  "7": {
148714
148865
  start: {
148715
- line: 76,
148866
+ line: 77,
148716
148867
  column: 32
148717
148868
  },
148718
148869
  end: {
148719
- line: 76,
148870
+ line: 77,
148720
148871
  column: 50
148721
148872
  }
148722
148873
  },
148723
148874
  "8": {
148724
148875
  start: {
148725
- line: 77,
148876
+ line: 78,
148726
148877
  column: 30
148727
148878
  },
148728
148879
  end: {
148729
- line: 77,
148880
+ line: 78,
148730
148881
  column: 43
148731
148882
  }
148732
148883
  },
148733
148884
  "9": {
148734
148885
  start: {
148735
- line: 78,
148886
+ line: 79,
148736
148887
  column: 50
148737
148888
  },
148738
148889
  end: {
148739
- line: 78,
148890
+ line: 79,
148740
148891
  column: 65
148741
148892
  }
148742
148893
  },
148743
148894
  "10": {
148744
148895
  start: {
148745
- line: 79,
148896
+ line: 80,
148746
148897
  column: 44
148747
148898
  },
148748
148899
  end: {
148749
- line: 82,
148900
+ line: 83,
148750
148901
  column: 4
148751
148902
  }
148752
148903
  },
148753
148904
  "11": {
148754
148905
  start: {
148755
- line: 84,
148906
+ line: 85,
148756
148907
  column: 28
148757
148908
  },
148758
148909
  end: {
148759
- line: 84,
148910
+ line: 85,
148760
148911
  column: 40
148761
148912
  }
148762
148913
  },
148763
148914
  "12": {
148764
148915
  start: {
148765
- line: 85,
148916
+ line: 86,
148766
148917
  column: 34
148767
148918
  },
148768
148919
  end: {
148769
- line: 86,
148920
+ line: 87,
148770
148921
  column: 66
148771
148922
  }
148772
148923
  },
148773
148924
  "13": {
148774
148925
  start: {
148775
- line: 86,
148926
+ line: 87,
148776
148927
  column: 4
148777
148928
  },
148778
148929
  end: {
148779
- line: 86,
148930
+ line: 87,
148780
148931
  column: 66
148781
148932
  }
148782
148933
  },
148783
148934
  "14": {
148784
148935
  start: {
148785
- line: 88,
148936
+ line: 89,
148786
148937
  column: 27
148787
148938
  },
148788
148939
  end: {
148789
- line: 101,
148940
+ line: 103,
148790
148941
  column: 4
148791
148942
  }
148792
148943
  },
148793
148944
  "15": {
148794
148945
  start: {
148795
- line: 102,
148946
+ line: 104,
148796
148947
  column: 2
148797
148948
  },
148798
148949
  end: {
148799
- line: 102,
148950
+ line: 104,
148800
148951
  column: 38
148801
148952
  }
148802
148953
  },
148803
148954
  "16": {
148804
148955
  start: {
148805
- line: 104,
148956
+ line: 106,
148806
148957
  column: 23
148807
148958
  },
148808
148959
  end: {
148809
- line: 107,
148960
+ line: 109,
148810
148961
  column: 3
148811
148962
  }
148812
148963
  },
148813
148964
  "17": {
148814
148965
  start: {
148815
- line: 105,
148966
+ line: 107,
148816
148967
  column: 20
148817
148968
  },
148818
148969
  end: {
148819
- line: 105,
148970
+ line: 107,
148820
148971
  column: 46
148821
148972
  }
148822
148973
  },
148823
148974
  "18": {
148824
148975
  start: {
148825
- line: 109,
148976
+ line: 111,
148826
148977
  column: 24
148827
148978
  },
148828
148979
  end: {
148829
- line: 116,
148980
+ line: 118,
148830
148981
  column: 4
148831
148982
  }
148832
148983
  },
148833
148984
  "19": {
148834
148985
  start: {
148835
- line: 118,
148986
+ line: 120,
148836
148987
  column: 17
148837
148988
  },
148838
148989
  end: {
148839
- line: 135,
148990
+ line: 137,
148840
148991
  column: 4
148841
148992
  }
148842
148993
  },
148843
148994
  "20": {
148844
148995
  start: {
148845
- line: 131,
148996
+ line: 133,
148846
148997
  column: 30
148847
148998
  },
148848
148999
  end: {
148849
- line: 131,
149000
+ line: 133,
148850
149001
  column: 70
148851
149002
  }
148852
149003
  },
148853
149004
  "21": {
148854
149005
  start: {
148855
- line: 138,
149006
+ line: 140,
148856
149007
  column: 2
148857
149008
  },
148858
149009
  end: {
148859
- line: 141,
149010
+ line: 143,
148860
149011
  column: 6
148861
149012
  }
148862
149013
  },
148863
149014
  "22": {
148864
149015
  start: {
148865
- line: 138,
149016
+ line: 140,
148866
149017
  column: 34
148867
149018
  },
148868
149019
  end: {
148869
- line: 141,
149020
+ line: 143,
148870
149021
  column: 3
148871
149022
  }
148872
149023
  },
148873
149024
  "23": {
148874
149025
  start: {
148875
- line: 140,
149026
+ line: 142,
148876
149027
  column: 17
148877
149028
  },
148878
149029
  end: {
148879
- line: 140,
149030
+ line: 142,
148880
149031
  column: 44
148881
149032
  }
148882
149033
  },
148883
149034
  "24": {
148884
149035
  start: {
148885
- line: 144,
149036
+ line: 146,
148886
149037
  column: 2
148887
149038
  },
148888
149039
  end: {
148889
- line: 147,
149040
+ line: 149,
148890
149041
  column: 4
148891
149042
  }
148892
149043
  },
148893
149044
  "25": {
148894
149045
  start: {
148895
- line: 145,
149046
+ line: 147,
148896
149047
  column: 4
148897
149048
  },
148898
149049
  end: {
148899
- line: 145,
149050
+ line: 147,
148900
149051
  column: 30
148901
149052
  }
148902
149053
  },
148903
149054
  "26": {
148904
149055
  start: {
148905
- line: 145,
149056
+ line: 147,
148906
149057
  column: 23
148907
149058
  },
148908
149059
  end: {
148909
- line: 145,
149060
+ line: 147,
148910
149061
  column: 30
148911
149062
  }
148912
149063
  },
148913
149064
  "27": {
148914
149065
  start: {
148915
- line: 146,
149066
+ line: 148,
148916
149067
  column: 4
148917
149068
  },
148918
149069
  end: {
148919
- line: 146,
149070
+ line: 148,
148920
149071
  column: 71
148921
149072
  }
148922
149073
  },
148923
149074
  "28": {
148924
149075
  start: {
148925
- line: 149,
149076
+ line: 151,
148926
149077
  column: 2
148927
149078
  },
148928
149079
  end: {
148929
- line: 220,
149080
+ line: 222,
148930
149081
  column: 4
148931
149082
  }
148932
149083
  },
148933
149084
  "29": {
148934
149085
  start: {
148935
- line: 193,
149086
+ line: 195,
148936
149087
  column: 29
148937
149088
  },
148938
149089
  end: {
148939
- line: 193,
149090
+ line: 195,
148940
149091
  column: 77
148941
149092
  }
148942
149093
  }
@@ -148956,183 +149107,183 @@ function cov_1p0jklglk1() {
148956
149107
  },
148957
149108
  loc: {
148958
149109
  start: {
148959
- line: 67,
149110
+ line: 68,
148960
149111
  column: 5
148961
149112
  },
148962
149113
  end: {
148963
- line: 221,
149114
+ line: 223,
148964
149115
  column: 1
148965
149116
  }
148966
149117
  },
148967
- line: 67
149118
+ line: 68
148968
149119
  },
148969
149120
  "1": {
148970
149121
  name: "(anonymous_1)",
148971
149122
  decl: {
148972
149123
  start: {
148973
- line: 85,
149124
+ line: 86,
148974
149125
  column: 34
148975
149126
  },
148976
149127
  end: {
148977
- line: 85,
149128
+ line: 86,
148978
149129
  column: 35
148979
149130
  }
148980
149131
  },
148981
149132
  loc: {
148982
149133
  start: {
148983
- line: 86,
149134
+ line: 87,
148984
149135
  column: 4
148985
149136
  },
148986
149137
  end: {
148987
- line: 86,
149138
+ line: 87,
148988
149139
  column: 66
148989
149140
  }
148990
149141
  },
148991
- line: 86
149142
+ line: 87
148992
149143
  },
148993
149144
  "2": {
148994
149145
  name: "(anonymous_2)",
148995
149146
  decl: {
148996
149147
  start: {
148997
- line: 105,
149148
+ line: 107,
148998
149149
  column: 4
148999
149150
  },
149000
149151
  end: {
149001
- line: 105,
149152
+ line: 107,
149002
149153
  column: 5
149003
149154
  }
149004
149155
  },
149005
149156
  loc: {
149006
149157
  start: {
149007
- line: 105,
149158
+ line: 107,
149008
149159
  column: 20
149009
149160
  },
149010
149161
  end: {
149011
- line: 105,
149162
+ line: 107,
149012
149163
  column: 46
149013
149164
  }
149014
149165
  },
149015
- line: 105
149166
+ line: 107
149016
149167
  },
149017
149168
  "3": {
149018
149169
  name: "(anonymous_3)",
149019
149170
  decl: {
149020
149171
  start: {
149021
- line: 131,
149172
+ line: 133,
149022
149173
  column: 14
149023
149174
  },
149024
149175
  end: {
149025
- line: 131,
149176
+ line: 133,
149026
149177
  column: 15
149027
149178
  }
149028
149179
  },
149029
149180
  loc: {
149030
149181
  start: {
149031
- line: 131,
149182
+ line: 133,
149032
149183
  column: 30
149033
149184
  },
149034
149185
  end: {
149035
- line: 131,
149186
+ line: 133,
149036
149187
  column: 70
149037
149188
  }
149038
149189
  },
149039
- line: 131
149190
+ line: 133
149040
149191
  },
149041
149192
  "4": {
149042
149193
  name: "(anonymous_4)",
149043
149194
  decl: {
149044
149195
  start: {
149045
- line: 138,
149196
+ line: 140,
149046
149197
  column: 27
149047
149198
  },
149048
149199
  end: {
149049
- line: 138,
149200
+ line: 140,
149050
149201
  column: 28
149051
149202
  }
149052
149203
  },
149053
149204
  loc: {
149054
149205
  start: {
149055
- line: 138,
149206
+ line: 140,
149056
149207
  column: 34
149057
149208
  },
149058
149209
  end: {
149059
- line: 141,
149210
+ line: 143,
149060
149211
  column: 3
149061
149212
  }
149062
149213
  },
149063
- line: 138
149214
+ line: 140
149064
149215
  },
149065
149216
  "5": {
149066
149217
  name: "(anonymous_5)",
149067
149218
  decl: {
149068
149219
  start: {
149069
- line: 140,
149220
+ line: 142,
149070
149221
  column: 11
149071
149222
  },
149072
149223
  end: {
149073
- line: 140,
149224
+ line: 142,
149074
149225
  column: 12
149075
149226
  }
149076
149227
  },
149077
149228
  loc: {
149078
149229
  start: {
149079
- line: 140,
149230
+ line: 142,
149080
149231
  column: 17
149081
149232
  },
149082
149233
  end: {
149083
- line: 140,
149234
+ line: 142,
149084
149235
  column: 44
149085
149236
  }
149086
149237
  },
149087
- line: 140
149238
+ line: 142
149088
149239
  },
149089
149240
  "6": {
149090
149241
  name: "updateState",
149091
149242
  decl: {
149092
149243
  start: {
149093
- line: 144,
149244
+ line: 146,
149094
149245
  column: 46
149095
149246
  },
149096
149247
  end: {
149097
- line: 144,
149248
+ line: 146,
149098
149249
  column: 57
149099
149250
  }
149100
149251
  },
149101
149252
  loc: {
149102
149253
  start: {
149103
- line: 144,
149254
+ line: 146,
149104
149255
  column: 65
149105
149256
  },
149106
149257
  end: {
149107
- line: 147,
149258
+ line: 149,
149108
149259
  column: 3
149109
149260
  }
149110
149261
  },
149111
- line: 144
149262
+ line: 146
149112
149263
  },
149113
149264
  "7": {
149114
149265
  name: "(anonymous_7)",
149115
149266
  decl: {
149116
149267
  start: {
149117
- line: 193,
149268
+ line: 195,
149118
149269
  column: 23
149119
149270
  },
149120
149271
  end: {
149121
- line: 193,
149272
+ line: 195,
149122
149273
  column: 24
149123
149274
  }
149124
149275
  },
149125
149276
  loc: {
149126
149277
  start: {
149127
- line: 193,
149278
+ line: 195,
149128
149279
  column: 29
149129
149280
  },
149130
149281
  end: {
149131
- line: 193,
149282
+ line: 195,
149132
149283
  column: 77
149133
149284
  }
149134
149285
  },
149135
- line: 193
149286
+ line: 195
149136
149287
  }
149137
149288
  },
149138
149289
  branchMap: {
@@ -149811,187 +149962,211 @@ function cov_1p0jklglk1() {
149811
149962
  "28": {
149812
149963
  loc: {
149813
149964
  start: {
149814
- line: 72,
149965
+ line: 64,
149815
149966
  column: 4
149816
149967
  },
149817
149968
  end: {
149969
+ line: 64,
149970
+ column: 28
149971
+ }
149972
+ },
149973
+ type: "default-arg",
149974
+ locations: [{
149975
+ start: {
149976
+ line: 64,
149977
+ column: 24
149978
+ },
149979
+ end: {
149980
+ line: 64,
149981
+ column: 28
149982
+ }
149983
+ }],
149984
+ line: 64
149985
+ },
149986
+ "29": {
149987
+ loc: {
149988
+ start: {
149818
149989
  line: 73,
149990
+ column: 4
149991
+ },
149992
+ end: {
149993
+ line: 74,
149819
149994
  column: 48
149820
149995
  }
149821
149996
  },
149822
149997
  type: "binary-expr",
149823
149998
  locations: [{
149824
149999
  start: {
149825
- line: 72,
150000
+ line: 73,
149826
150001
  column: 4
149827
150002
  },
149828
150003
  end: {
149829
- line: 72,
150004
+ line: 73,
149830
150005
  column: 48
149831
150006
  }
149832
150007
  }, {
149833
150008
  start: {
149834
- line: 73,
150009
+ line: 74,
149835
150010
  column: 4
149836
150011
  },
149837
150012
  end: {
149838
- line: 73,
150013
+ line: 74,
149839
150014
  column: 48
149840
150015
  }
149841
150016
  }],
149842
- line: 72
150017
+ line: 73
149843
150018
  },
149844
- "29": {
150019
+ "30": {
149845
150020
  loc: {
149846
150021
  start: {
149847
- line: 86,
150022
+ line: 87,
149848
150023
  column: 4
149849
150024
  },
149850
150025
  end: {
149851
- line: 86,
150026
+ line: 87,
149852
150027
  column: 66
149853
150028
  }
149854
150029
  },
149855
150030
  type: "binary-expr",
149856
150031
  locations: [{
149857
150032
  start: {
149858
- line: 86,
150033
+ line: 87,
149859
150034
  column: 4
149860
150035
  },
149861
150036
  end: {
149862
- line: 86,
150037
+ line: 87,
149863
150038
  column: 56
149864
150039
  }
149865
150040
  }, {
149866
150041
  start: {
149867
- line: 86,
150042
+ line: 87,
149868
150043
  column: 60
149869
150044
  },
149870
150045
  end: {
149871
- line: 86,
150046
+ line: 87,
149872
150047
  column: 66
149873
150048
  }
149874
150049
  }],
149875
- line: 86
150050
+ line: 87
149876
150051
  },
149877
- "30": {
150052
+ "31": {
149878
150053
  loc: {
149879
150054
  start: {
149880
- line: 110,
150055
+ line: 112,
149881
150056
  column: 20
149882
150057
  },
149883
150058
  end: {
149884
- line: 110,
150059
+ line: 112,
149885
150060
  column: 65
149886
150061
  }
149887
150062
  },
149888
150063
  type: "binary-expr",
149889
150064
  locations: [{
149890
150065
  start: {
149891
- line: 110,
150066
+ line: 112,
149892
150067
  column: 20
149893
150068
  },
149894
150069
  end: {
149895
- line: 110,
150070
+ line: 112,
149896
150071
  column: 41
149897
150072
  }
149898
150073
  }, {
149899
150074
  start: {
149900
- line: 110,
150075
+ line: 112,
149901
150076
  column: 45
149902
150077
  },
149903
150078
  end: {
149904
- line: 110,
150079
+ line: 112,
149905
150080
  column: 65
149906
150081
  }
149907
150082
  }],
149908
- line: 110
150083
+ line: 112
149909
150084
  },
149910
- "31": {
150085
+ "32": {
149911
150086
  loc: {
149912
150087
  start: {
149913
- line: 122,
150088
+ line: 124,
149914
150089
  column: 15
149915
150090
  },
149916
150091
  end: {
149917
- line: 122,
150092
+ line: 124,
149918
150093
  column: 33
149919
150094
  }
149920
150095
  },
149921
150096
  type: "binary-expr",
149922
150097
  locations: [{
149923
150098
  start: {
149924
- line: 122,
150099
+ line: 124,
149925
150100
  column: 15
149926
150101
  },
149927
150102
  end: {
149928
- line: 122,
150103
+ line: 124,
149929
150104
  column: 24
149930
150105
  }
149931
150106
  }, {
149932
150107
  start: {
149933
- line: 122,
150108
+ line: 124,
149934
150109
  column: 28
149935
150110
  },
149936
150111
  end: {
149937
- line: 122,
150112
+ line: 124,
149938
150113
  column: 33
149939
150114
  }
149940
150115
  }],
149941
- line: 122
150116
+ line: 124
149942
150117
  },
149943
- "32": {
150118
+ "33": {
149944
150119
  loc: {
149945
150120
  start: {
149946
- line: 131,
150121
+ line: 133,
149947
150122
  column: 30
149948
150123
  },
149949
150124
  end: {
149950
- line: 131,
150125
+ line: 133,
149951
150126
  column: 70
149952
150127
  }
149953
150128
  },
149954
150129
  type: "binary-expr",
149955
150130
  locations: [{
149956
150131
  start: {
149957
- line: 131,
150132
+ line: 133,
149958
150133
  column: 30
149959
150134
  },
149960
150135
  end: {
149961
- line: 131,
150136
+ line: 133,
149962
150137
  column: 40
149963
150138
  }
149964
150139
  }, {
149965
150140
  start: {
149966
- line: 131,
150141
+ line: 133,
149967
150142
  column: 44
149968
150143
  },
149969
150144
  end: {
149970
- line: 131,
150145
+ line: 133,
149971
150146
  column: 70
149972
150147
  }
149973
150148
  }],
149974
- line: 131
150149
+ line: 133
149975
150150
  },
149976
- "33": {
150151
+ "34": {
149977
150152
  loc: {
149978
150153
  start: {
149979
- line: 145,
150154
+ line: 147,
149980
150155
  column: 4
149981
150156
  },
149982
150157
  end: {
149983
- line: 145,
150158
+ line: 147,
149984
150159
  column: 30
149985
150160
  }
149986
150161
  },
149987
150162
  type: "if",
149988
150163
  locations: [{
149989
150164
  start: {
149990
- line: 145,
150165
+ line: 147,
149991
150166
  column: 4
149992
150167
  },
149993
150168
  end: {
149994
- line: 145,
150169
+ line: 147,
149995
150170
  column: 30
149996
150171
  }
149997
150172
  }, {
@@ -150004,139 +150179,139 @@ function cov_1p0jklglk1() {
150004
150179
  column: undefined
150005
150180
  }
150006
150181
  }],
150007
- line: 145
150182
+ line: 147
150008
150183
  },
150009
- "34": {
150184
+ "35": {
150010
150185
  loc: {
150011
150186
  start: {
150012
- line: 157,
150187
+ line: 159,
150013
150188
  column: 7
150014
150189
  },
150015
150190
  end: {
150016
- line: 165,
150191
+ line: 167,
150017
150192
  column: 7
150018
150193
  }
150019
150194
  },
150020
150195
  type: "binary-expr",
150021
150196
  locations: [{
150022
150197
  start: {
150023
- line: 157,
150198
+ line: 159,
150024
150199
  column: 7
150025
150200
  },
150026
150201
  end: {
150027
- line: 157,
150202
+ line: 159,
150028
150203
  column: 12
150029
150204
  }
150030
150205
  }, {
150031
150206
  start: {
150032
- line: 158,
150207
+ line: 160,
150033
150208
  column: 8
150034
150209
  },
150035
150210
  end: {
150036
- line: 164,
150211
+ line: 166,
150037
150212
  column: 16
150038
150213
  }
150039
150214
  }],
150040
- line: 157
150215
+ line: 159
150041
150216
  },
150042
- "35": {
150217
+ "36": {
150043
150218
  loc: {
150044
150219
  start: {
150045
- line: 188,
150220
+ line: 190,
150046
150221
  column: 11
150047
150222
  },
150048
150223
  end: {
150049
- line: 195,
150224
+ line: 197,
150050
150225
  column: 11
150051
150226
  }
150052
150227
  },
150053
150228
  type: "binary-expr",
150054
150229
  locations: [{
150055
150230
  start: {
150056
- line: 188,
150231
+ line: 190,
150057
150232
  column: 11
150058
150233
  },
150059
150234
  end: {
150060
- line: 188,
150235
+ line: 190,
150061
150236
  column: 32
150062
150237
  }
150063
150238
  }, {
150064
150239
  start: {
150065
- line: 189,
150240
+ line: 191,
150066
150241
  column: 12
150067
150242
  },
150068
150243
  end: {
150069
- line: 194,
150244
+ line: 196,
150070
150245
  column: 14
150071
150246
  }
150072
150247
  }],
150073
- line: 188
150248
+ line: 190
150074
150249
  },
150075
- "36": {
150250
+ "37": {
150076
150251
  loc: {
150077
150252
  start: {
150078
- line: 196,
150253
+ line: 198,
150079
150254
  column: 11
150080
150255
  },
150081
150256
  end: {
150082
- line: 202,
150257
+ line: 204,
150083
150258
  column: 11
150084
150259
  }
150085
150260
  },
150086
150261
  type: "binary-expr",
150087
150262
  locations: [{
150088
150263
  start: {
150089
- line: 196,
150264
+ line: 198,
150090
150265
  column: 11
150091
150266
  },
150092
150267
  end: {
150093
- line: 196,
150268
+ line: 198,
150094
150269
  column: 29
150095
150270
  }
150096
150271
  }, {
150097
150272
  start: {
150098
- line: 197,
150273
+ line: 199,
150099
150274
  column: 12
150100
150275
  },
150101
150276
  end: {
150102
- line: 201,
150277
+ line: 203,
150103
150278
  column: 14
150104
150279
  }
150105
150280
  }],
150106
- line: 196
150281
+ line: 198
150107
150282
  },
150108
- "37": {
150283
+ "38": {
150109
150284
  loc: {
150110
150285
  start: {
150111
- line: 203,
150286
+ line: 205,
150112
150287
  column: 11
150113
150288
  },
150114
150289
  end: {
150115
- line: 216,
150290
+ line: 218,
150116
150291
  column: 11
150117
150292
  }
150118
150293
  },
150119
150294
  type: "binary-expr",
150120
150295
  locations: [{
150121
150296
  start: {
150122
- line: 203,
150297
+ line: 205,
150123
150298
  column: 11
150124
150299
  },
150125
150300
  end: {
150126
- line: 203,
150301
+ line: 205,
150127
150302
  column: 30
150128
150303
  }
150129
150304
  }, {
150130
150305
  start: {
150131
- line: 204,
150306
+ line: 206,
150132
150307
  column: 12
150133
150308
  },
150134
150309
  end: {
150135
- line: 215,
150310
+ line: 217,
150136
150311
  column: 14
150137
150312
  }
150138
150313
  }],
150139
- line: 203
150314
+ line: 205
150140
150315
  }
150141
150316
  },
150142
150317
  s: {
@@ -150210,7 +150385,7 @@ function cov_1p0jklglk1() {
150210
150385
  "25": [0],
150211
150386
  "26": [0],
150212
150387
  "27": [0],
150213
- "28": [0, 0],
150388
+ "28": [0],
150214
150389
  "29": [0, 0],
150215
150390
  "30": [0, 0],
150216
150391
  "31": [0, 0],
@@ -150219,10 +150394,11 @@ function cov_1p0jklglk1() {
150219
150394
  "34": [0, 0],
150220
150395
  "35": [0, 0],
150221
150396
  "36": [0, 0],
150222
- "37": [0, 0]
150397
+ "37": [0, 0],
150398
+ "38": [0, 0]
150223
150399
  },
150224
150400
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
150225
- hash: "0396ef701ec1c360180ead8a2e4e5ea7e2272cb0"
150401
+ hash: "d51ef5835746e5e1780f8a0e5b2a3e2b50165ce3"
150226
150402
  };
150227
150403
  var coverage = global[gcv] || (global[gcv] = {});
150228
150404
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -150303,12 +150479,14 @@ var Editor = function Editor(_ref, ref) {
150303
150479
  children = _ref.children,
150304
150480
  _ref$showAttachmentsT = _ref.showAttachmentsToastr,
150305
150481
  showAttachmentsToastr = _ref$showAttachmentsT === void 0 ? (cov_1p0jklglk1().b[27][0]++, true) : _ref$showAttachmentsT,
150482
+ _ref$openImageInNewTa = _ref.openImageInNewTab,
150483
+ openImageInNewTab = _ref$openImageInNewTa === void 0 ? (cov_1p0jklglk1().b[28][0]++, true) : _ref$openImageInNewTa,
150306
150484
  otherProps = _objectWithoutProperties$1(_ref, _excluded$2);
150307
150485
  cov_1p0jklglk1().f[0]++;
150308
150486
  var dragDropRef = (cov_1p0jklglk1().s[1]++, useRef$1(null));
150309
150487
  var isAttachmentsActive = (cov_1p0jklglk1().s[2]++, addons.includes(EDITOR_OPTIONS.ATTACHMENTS));
150310
150488
  var isVideoEmbedActive = (cov_1p0jklglk1().s[3]++, addons.includes(EDITOR_OPTIONS.VIDEO_EMBED));
150311
- var isMediaUploaderActive = (cov_1p0jklglk1().s[4]++, (cov_1p0jklglk1().b[28][0]++, addons.includes(EDITOR_OPTIONS.IMAGE_UPLOAD)) || (cov_1p0jklglk1().b[28][1]++, addons.includes(EDITOR_OPTIONS.VIDEO_UPLOAD)));
150489
+ var isMediaUploaderActive = (cov_1p0jklglk1().s[4]++, (cov_1p0jklglk1().b[29][0]++, addons.includes(EDITOR_OPTIONS.IMAGE_UPLOAD)) || (cov_1p0jklglk1().b[29][1]++, addons.includes(EDITOR_OPTIONS.VIDEO_UPLOAD)));
150312
150490
  var isFixedMenuActive = (cov_1p0jklglk1().s[5]++, menuType === "fixed");
150313
150491
  var isBubbleMenuActive = (cov_1p0jklglk1().s[6]++, menuType === "bubble");
150314
150492
  var isSlashCommandsActive = (cov_1p0jklglk1().s[7]++, !hideSlashCommands);
@@ -150330,7 +150508,7 @@ var Editor = function Editor(_ref, ref) {
150330
150508
  var _addAttachmentsRef$cu;
150331
150509
  cov_1p0jklglk1().f[1]++;
150332
150510
  cov_1p0jklglk1().s[13]++;
150333
- return (cov_1p0jklglk1().b[29][0]++, (_addAttachmentsRef$cu = addAttachmentsRef.current) === null || _addAttachmentsRef$cu === void 0 ? void 0 : _addAttachmentsRef$cu.handleUploadAttachments()) || (cov_1p0jklglk1().b[29][1]++, noop$2());
150511
+ return (cov_1p0jklglk1().b[30][0]++, (_addAttachmentsRef$cu = addAttachmentsRef.current) === null || _addAttachmentsRef$cu === void 0 ? void 0 : _addAttachmentsRef$cu.handleUploadAttachments()) || (cov_1p0jklglk1().b[30][1]++, noop$2());
150334
150512
  };
150335
150513
  var customExtensions = (cov_1p0jklglk1().s[14]++, useCustomExtensions({
150336
150514
  placeholder: placeholder,
@@ -150344,7 +150522,8 @@ var Editor = function Editor(_ref, ref) {
150344
150522
  keyboardShortcuts: keyboardShortcuts,
150345
150523
  setMediaUploader: setMediaUploader,
150346
150524
  setIsEmbedModalOpen: setIsEmbedModalOpen,
150347
- isVideoEmbedActive: isVideoEmbedActive
150525
+ isVideoEmbedActive: isVideoEmbedActive,
150526
+ openImageInNewTab: openImageInNewTab
150348
150527
  }));
150349
150528
  cov_1p0jklglk1().s[15]++;
150350
150529
  useEditorWarnings({
@@ -150357,7 +150536,7 @@ var Editor = function Editor(_ref, ref) {
150357
150536
  return onChange(editor.getHTML());
150358
150537
  }, 100));
150359
150538
  var editorClasses = (cov_1p0jklglk1().s[18]++, classnames$2("neeto-editor", _defineProperty({
150360
- "slash-active": (cov_1p0jklglk1().b[30][0]++, isSlashCommandsActive) && (cov_1p0jklglk1().b[30][1]++, !isPlaceholderActive),
150539
+ "slash-active": (cov_1p0jklglk1().b[31][0]++, isSlashCommandsActive) && (cov_1p0jklglk1().b[31][1]++, !isPlaceholderActive),
150361
150540
  "fixed-menu-active border": isFixedMenuActive,
150362
150541
  "bubble-menu-active": isBubbleMenuActive,
150363
150542
  "placeholder-active": isPlaceholderActive,
@@ -150367,7 +150546,7 @@ var Editor = function Editor(_ref, ref) {
150367
150546
  extensions: customExtensions,
150368
150547
  content: initialValue,
150369
150548
  injectCSS: false,
150370
- autofocus: (cov_1p0jklglk1().b[31][0]++, autoFocus) && (cov_1p0jklglk1().b[31][1]++, "end"),
150549
+ autofocus: (cov_1p0jklglk1().b[32][0]++, autoFocus) && (cov_1p0jklglk1().b[32][1]++, "end"),
150371
150550
  editorProps: {
150372
150551
  attributes: {
150373
150552
  "class": editorClasses,
@@ -150384,7 +150563,7 @@ var Editor = function Editor(_ref, ref) {
150384
150563
  var editor = _ref7.editor;
150385
150564
  cov_1p0jklglk1().f[3]++;
150386
150565
  cov_1p0jklglk1().s[20]++;
150387
- return (cov_1p0jklglk1().b[32][0]++, !autoFocus) && (cov_1p0jklglk1().b[32][1]++, setInitialPosition(editor));
150566
+ return (cov_1p0jklglk1().b[33][0]++, !autoFocus) && (cov_1p0jklglk1().b[33][1]++, setInitialPosition(editor));
150388
150567
  },
150389
150568
  onUpdate: handleChange,
150390
150569
  onFocus: onFocus,
@@ -150413,11 +150592,11 @@ var Editor = function Editor(_ref, ref) {
150413
150592
  cov_1p0jklglk1().f[6]++;
150414
150593
  cov_1p0jklglk1().s[25]++;
150415
150594
  if (!this.docView) {
150416
- cov_1p0jklglk1().b[33][0]++;
150595
+ cov_1p0jklglk1().b[34][0]++;
150417
150596
  cov_1p0jklglk1().s[26]++;
150418
150597
  return;
150419
150598
  } else {
150420
- cov_1p0jklglk1().b[33][1]++;
150599
+ cov_1p0jklglk1().b[34][1]++;
150421
150600
  }
150422
150601
  cov_1p0jklglk1().s[27]++;
150423
150602
  this.updateStateInner(state, this.state.plugins !== state.plugins);
@@ -150426,7 +150605,7 @@ var Editor = function Editor(_ref, ref) {
150426
150605
  return /*#__PURE__*/React__default.createElement("div", {
150427
150606
  ref: dragDropRef,
150428
150607
  className: classnames$2((_classnames2 = {}, _defineProperty(_classnames2, className, className), _defineProperty(_classnames2, "ne-attachments__wrapper", isAttachmentsActive), _classnames2))
150429
- }, (cov_1p0jklglk1().b[34][0]++, label) && (cov_1p0jklglk1().b[34][1]++, /*#__PURE__*/React__default.createElement(Label, {
150608
+ }, (cov_1p0jklglk1().b[35][0]++, label) && (cov_1p0jklglk1().b[35][1]++, /*#__PURE__*/React__default.createElement(Label, {
150430
150609
  className: "neeto-ui-mb-2",
150431
150610
  "data-cy": "".concat(slugify(label), "-editor-label"),
150432
150611
  required: required
@@ -150451,7 +150630,7 @@ var Editor = function Editor(_ref, ref) {
150451
150630
  variables: variables
150452
150631
  }), children, /*#__PURE__*/React__default.createElement(EditorContent$1, _extends$1({
150453
150632
  editor: editor
150454
- }, otherProps)), (cov_1p0jklglk1().b[35][0]++, isMediaUploaderActive) && (cov_1p0jklglk1().b[35][1]++, /*#__PURE__*/React__default.createElement(MediaUploader, {
150633
+ }, otherProps)), (cov_1p0jklglk1().b[36][0]++, isMediaUploaderActive) && (cov_1p0jklglk1().b[36][1]++, /*#__PURE__*/React__default.createElement(MediaUploader, {
150455
150634
  editor: editor,
150456
150635
  mediaUploader: mediaUploader,
150457
150636
  unsplashApiKey: editorSecrets === null || editorSecrets === void 0 ? void 0 : editorSecrets.unsplash,
@@ -150463,11 +150642,11 @@ var Editor = function Editor(_ref, ref) {
150463
150642
  video: false
150464
150643
  });
150465
150644
  }
150466
- })), (cov_1p0jklglk1().b[36][0]++, isVideoEmbedActive) && (cov_1p0jklglk1().b[36][1]++, /*#__PURE__*/React__default.createElement(EmbedOption, {
150645
+ })), (cov_1p0jklglk1().b[37][0]++, isVideoEmbedActive) && (cov_1p0jklglk1().b[37][1]++, /*#__PURE__*/React__default.createElement(EmbedOption, {
150467
150646
  editor: editor,
150468
150647
  isEmbedModalOpen: isEmbedModalOpen,
150469
150648
  setIsEmbedModalOpen: setIsEmbedModalOpen
150470
- })), (cov_1p0jklglk1().b[37][0]++, isAttachmentsActive) && (cov_1p0jklglk1().b[37][1]++, /*#__PURE__*/React__default.createElement(Attachments$1, {
150649
+ })), (cov_1p0jklglk1().b[38][0]++, isAttachmentsActive) && (cov_1p0jklglk1().b[38][1]++, /*#__PURE__*/React__default.createElement(Attachments$1, {
150471
150650
  attachments: attachments,
150472
150651
  config: attachmentsConfig,
150473
150652
  dragDropRef: dragDropRef,