@bigbinary/neeto-editor 1.28.3 → 1.28.5

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