@bigbinary/neeto-editor 1.26.15 → 1.26.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -64107,7 +64107,7 @@ var File$1 = function File(_ref) {
64107
64107
 
64108
64108
  function cov_13lrfxjoky() {
64109
64109
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Attachments/Attachment.jsx";
64110
- var hash = "f96202c70edce570b6b5a8538ab7a4aec794637a";
64110
+ var hash = "c8d8c5409e33c0473cbf6f816e4b217990caf4ad";
64111
64111
  var global = new Function("return this")();
64112
64112
  var gcv = "__coverage__";
64113
64113
  var coverageData = {
@@ -64129,7 +64129,7 @@ function cov_13lrfxjoky() {
64129
64129
  column: 19
64130
64130
  },
64131
64131
  end: {
64132
- line: 202,
64132
+ line: 203,
64133
64133
  column: 1
64134
64134
  }
64135
64135
  },
@@ -64469,7 +64469,7 @@ function cov_13lrfxjoky() {
64469
64469
  column: 24
64470
64470
  },
64471
64471
  end: {
64472
- line: 118,
64472
+ line: 119,
64473
64473
  column: 3
64474
64474
  }
64475
64475
  },
@@ -64489,7 +64489,7 @@ function cov_13lrfxjoky() {
64489
64489
  column: 4
64490
64490
  },
64491
64491
  end: {
64492
- line: 112,
64492
+ line: 113,
64493
64493
  column: 5
64494
64494
  }
64495
64495
  },
@@ -64500,7 +64500,7 @@ function cov_13lrfxjoky() {
64500
64500
  },
64501
64501
  end: {
64502
64502
  line: 110,
64503
- column: 29
64503
+ column: 30
64504
64504
  }
64505
64505
  },
64506
64506
  "39": {
@@ -64510,27 +64510,27 @@ function cov_13lrfxjoky() {
64510
64510
  },
64511
64511
  end: {
64512
64512
  line: 111,
64513
- column: 16
64513
+ column: 29
64514
64514
  }
64515
64515
  },
64516
64516
  "40": {
64517
64517
  start: {
64518
- line: 114,
64519
- column: 4
64518
+ line: 112,
64519
+ column: 6
64520
64520
  },
64521
64521
  end: {
64522
- line: 117,
64523
- column: 5
64522
+ line: 112,
64523
+ column: 16
64524
64524
  }
64525
64525
  },
64526
64526
  "41": {
64527
64527
  start: {
64528
64528
  line: 115,
64529
- column: 6
64529
+ column: 4
64530
64530
  },
64531
64531
  end: {
64532
- line: 115,
64533
- column: 27
64532
+ line: 118,
64533
+ column: 5
64534
64534
  }
64535
64535
  },
64536
64536
  "42": {
@@ -64540,86 +64540,96 @@ function cov_13lrfxjoky() {
64540
64540
  },
64541
64541
  end: {
64542
64542
  line: 116,
64543
- column: 25
64543
+ column: 27
64544
64544
  }
64545
64545
  },
64546
64546
  "43": {
64547
64547
  start: {
64548
- line: 120,
64548
+ line: 117,
64549
+ column: 6
64550
+ },
64551
+ end: {
64552
+ line: 117,
64553
+ column: 25
64554
+ }
64555
+ },
64556
+ "44": {
64557
+ start: {
64558
+ line: 121,
64549
64559
  column: 2
64550
64560
  },
64551
64561
  end: {
64552
- line: 201,
64562
+ line: 202,
64553
64563
  column: 4
64554
64564
  }
64555
64565
  },
64556
- "44": {
64566
+ "45": {
64557
64567
  start: {
64558
- line: 134,
64568
+ line: 135,
64559
64569
  column: 18
64560
64570
  },
64561
64571
  end: {
64562
- line: 137,
64572
+ line: 138,
64563
64573
  column: 20
64564
64574
  }
64565
64575
  },
64566
- "45": {
64576
+ "46": {
64567
64577
  start: {
64568
- line: 146,
64578
+ line: 147,
64569
64579
  column: 29
64570
64580
  },
64571
64581
  end: {
64572
- line: 146,
64582
+ line: 147,
64573
64583
  column: 49
64574
64584
  }
64575
64585
  },
64576
- "46": {
64586
+ "47": {
64577
64587
  start: {
64578
- line: 153,
64588
+ line: 154,
64579
64589
  column: 29
64580
64590
  },
64581
64591
  end: {
64582
- line: 153,
64592
+ line: 154,
64583
64593
  column: 62
64584
64594
  }
64585
64595
  },
64586
- "47": {
64596
+ "48": {
64587
64597
  start: {
64588
- line: 159,
64598
+ line: 160,
64589
64599
  column: 33
64590
64600
  },
64591
64601
  end: {
64592
- line: 159,
64602
+ line: 160,
64593
64603
  column: 66
64594
64604
  }
64595
64605
  },
64596
- "48": {
64606
+ "49": {
64597
64607
  start: {
64598
- line: 178,
64608
+ line: 179,
64599
64609
  column: 20
64600
64610
  },
64601
64611
  end: {
64602
- line: 184,
64612
+ line: 185,
64603
64613
  column: 38
64604
64614
  }
64605
64615
  },
64606
- "49": {
64616
+ "50": {
64607
64617
  start: {
64608
- line: 181,
64618
+ line: 182,
64609
64619
  column: 37
64610
64620
  },
64611
64621
  end: {
64612
- line: 181,
64622
+ line: 182,
64613
64623
  column: 77
64614
64624
  }
64615
64625
  },
64616
- "50": {
64626
+ "51": {
64617
64627
  start: {
64618
- line: 197,
64628
+ line: 198,
64619
64629
  column: 23
64620
64630
  },
64621
64631
  end: {
64622
- line: 197,
64632
+ line: 198,
64623
64633
  column: 50
64624
64634
  }
64625
64635
  }
@@ -64643,7 +64653,7 @@ function cov_13lrfxjoky() {
64643
64653
  column: 6
64644
64654
  },
64645
64655
  end: {
64646
- line: 202,
64656
+ line: 203,
64647
64657
  column: 1
64648
64658
  }
64649
64659
  },
@@ -64787,7 +64797,7 @@ function cov_13lrfxjoky() {
64787
64797
  column: 44
64788
64798
  },
64789
64799
  end: {
64790
- line: 118,
64800
+ line: 119,
64791
64801
  column: 3
64792
64802
  }
64793
64803
  },
@@ -64797,169 +64807,169 @@ function cov_13lrfxjoky() {
64797
64807
  name: "(anonymous_7)",
64798
64808
  decl: {
64799
64809
  start: {
64800
- line: 133,
64810
+ line: 134,
64801
64811
  column: 27
64802
64812
  },
64803
64813
  end: {
64804
- line: 133,
64814
+ line: 134,
64805
64815
  column: 28
64806
64816
  }
64807
64817
  },
64808
64818
  loc: {
64809
64819
  start: {
64810
- line: 134,
64820
+ line: 135,
64811
64821
  column: 18
64812
64822
  },
64813
64823
  end: {
64814
- line: 137,
64824
+ line: 138,
64815
64825
  column: 20
64816
64826
  }
64817
64827
  },
64818
- line: 134
64828
+ line: 135
64819
64829
  },
64820
64830
  "8": {
64821
64831
  name: "(anonymous_8)",
64822
64832
  decl: {
64823
64833
  start: {
64824
- line: 146,
64834
+ line: 147,
64825
64835
  column: 23
64826
64836
  },
64827
64837
  end: {
64828
- line: 146,
64838
+ line: 147,
64829
64839
  column: 24
64830
64840
  }
64831
64841
  },
64832
64842
  loc: {
64833
64843
  start: {
64834
- line: 146,
64844
+ line: 147,
64835
64845
  column: 29
64836
64846
  },
64837
64847
  end: {
64838
- line: 146,
64848
+ line: 147,
64839
64849
  column: 49
64840
64850
  }
64841
64851
  },
64842
- line: 146
64852
+ line: 147
64843
64853
  },
64844
64854
  "9": {
64845
64855
  name: "(anonymous_9)",
64846
64856
  decl: {
64847
64857
  start: {
64848
- line: 153,
64858
+ line: 154,
64849
64859
  column: 23
64850
64860
  },
64851
64861
  end: {
64852
- line: 153,
64862
+ line: 154,
64853
64863
  column: 24
64854
64864
  }
64855
64865
  },
64856
64866
  loc: {
64857
64867
  start: {
64858
- line: 153,
64868
+ line: 154,
64859
64869
  column: 29
64860
64870
  },
64861
64871
  end: {
64862
- line: 153,
64872
+ line: 154,
64863
64873
  column: 62
64864
64874
  }
64865
64875
  },
64866
- line: 153
64876
+ line: 154
64867
64877
  },
64868
64878
  "10": {
64869
64879
  name: "(anonymous_10)",
64870
64880
  decl: {
64871
64881
  start: {
64872
- line: 159,
64882
+ line: 160,
64873
64883
  column: 27
64874
64884
  },
64875
64885
  end: {
64876
- line: 159,
64886
+ line: 160,
64877
64887
  column: 28
64878
64888
  }
64879
64889
  },
64880
64890
  loc: {
64881
64891
  start: {
64882
- line: 159,
64892
+ line: 160,
64883
64893
  column: 33
64884
64894
  },
64885
64895
  end: {
64886
- line: 159,
64896
+ line: 160,
64887
64897
  column: 66
64888
64898
  }
64889
64899
  },
64890
- line: 159
64900
+ line: 160
64891
64901
  },
64892
64902
  "11": {
64893
64903
  name: "(anonymous_11)",
64894
64904
  decl: {
64895
64905
  start: {
64896
- line: 177,
64906
+ line: 178,
64897
64907
  column: 48
64898
64908
  },
64899
64909
  end: {
64900
- line: 177,
64910
+ line: 178,
64901
64911
  column: 49
64902
64912
  }
64903
64913
  },
64904
64914
  loc: {
64905
64915
  start: {
64906
- line: 178,
64916
+ line: 179,
64907
64917
  column: 20
64908
64918
  },
64909
64919
  end: {
64910
- line: 184,
64920
+ line: 185,
64911
64921
  column: 38
64912
64922
  }
64913
64923
  },
64914
- line: 178
64924
+ line: 179
64915
64925
  },
64916
64926
  "12": {
64917
64927
  name: "(anonymous_12)",
64918
64928
  decl: {
64919
64929
  start: {
64920
- line: 181,
64930
+ line: 182,
64921
64931
  column: 31
64922
64932
  },
64923
64933
  end: {
64924
- line: 181,
64934
+ line: 182,
64925
64935
  column: 32
64926
64936
  }
64927
64937
  },
64928
64938
  loc: {
64929
64939
  start: {
64930
- line: 181,
64940
+ line: 182,
64931
64941
  column: 37
64932
64942
  },
64933
64943
  end: {
64934
- line: 181,
64944
+ line: 182,
64935
64945
  column: 77
64936
64946
  }
64937
64947
  },
64938
- line: 181
64948
+ line: 182
64939
64949
  },
64940
64950
  "13": {
64941
64951
  name: "(anonymous_13)",
64942
64952
  decl: {
64943
64953
  start: {
64944
- line: 197,
64954
+ line: 198,
64945
64955
  column: 17
64946
64956
  },
64947
64957
  end: {
64948
- line: 197,
64958
+ line: 198,
64949
64959
  column: 18
64950
64960
  }
64951
64961
  },
64952
64962
  loc: {
64953
64963
  start: {
64954
- line: 197,
64964
+ line: 198,
64955
64965
  column: 23
64956
64966
  },
64957
64967
  end: {
64958
- line: 197,
64968
+ line: 198,
64959
64969
  column: 50
64960
64970
  }
64961
64971
  },
64962
- line: 197
64972
+ line: 198
64963
64973
  }
64964
64974
  },
64965
64975
  branchMap: {
@@ -65069,7 +65079,7 @@ function cov_13lrfxjoky() {
65069
65079
  column: 4
65070
65080
  },
65071
65081
  end: {
65072
- line: 112,
65082
+ line: 113,
65073
65083
  column: 5
65074
65084
  }
65075
65085
  },
@@ -65080,7 +65090,7 @@ function cov_13lrfxjoky() {
65080
65090
  column: 4
65081
65091
  },
65082
65092
  end: {
65083
- line: 112,
65093
+ line: 113,
65084
65094
  column: 5
65085
65095
  }
65086
65096
  }, {
@@ -65140,22 +65150,22 @@ function cov_13lrfxjoky() {
65140
65150
  "5": {
65141
65151
  loc: {
65142
65152
  start: {
65143
- line: 114,
65153
+ line: 115,
65144
65154
  column: 4
65145
65155
  },
65146
65156
  end: {
65147
- line: 117,
65157
+ line: 118,
65148
65158
  column: 5
65149
65159
  }
65150
65160
  },
65151
65161
  type: "if",
65152
65162
  locations: [{
65153
65163
  start: {
65154
- line: 114,
65164
+ line: 115,
65155
65165
  column: 4
65156
65166
  },
65157
65167
  end: {
65158
- line: 117,
65168
+ line: 118,
65159
65169
  column: 5
65160
65170
  }
65161
65171
  }, {
@@ -65168,73 +65178,73 @@ function cov_13lrfxjoky() {
65168
65178
  column: undefined
65169
65179
  }
65170
65180
  }],
65171
- line: 114
65181
+ line: 115
65172
65182
  },
65173
65183
  "6": {
65174
65184
  loc: {
65175
65185
  start: {
65176
- line: 123,
65186
+ line: 124,
65177
65187
  column: 9
65178
65188
  },
65179
65189
  end: {
65180
- line: 190,
65190
+ line: 191,
65181
65191
  column: 9
65182
65192
  }
65183
65193
  },
65184
65194
  type: "cond-expr",
65185
65195
  locations: [{
65186
65196
  start: {
65187
- line: 124,
65197
+ line: 125,
65188
65198
  column: 10
65189
65199
  },
65190
65200
  end: {
65191
- line: 148,
65201
+ line: 149,
65192
65202
  column: 13
65193
65203
  }
65194
65204
  }, {
65195
65205
  start: {
65196
- line: 150,
65206
+ line: 151,
65197
65207
  column: 10
65198
65208
  },
65199
65209
  end: {
65200
- line: 189,
65210
+ line: 190,
65201
65211
  column: 13
65202
65212
  }
65203
65213
  }],
65204
- line: 123
65214
+ line: 124
65205
65215
  },
65206
65216
  "7": {
65207
65217
  loc: {
65208
65218
  start: {
65209
- line: 129,
65219
+ line: 130,
65210
65220
  column: 23
65211
65221
  },
65212
65222
  end: {
65213
- line: 129,
65223
+ line: 130,
65214
65224
  column: 77
65215
65225
  }
65216
65226
  },
65217
65227
  type: "cond-expr",
65218
65228
  locations: [{
65219
65229
  start: {
65220
- line: 129,
65230
+ line: 130,
65221
65231
  column: 46
65222
65232
  },
65223
65233
  end: {
65224
- line: 129,
65234
+ line: 130,
65225
65235
  column: 72
65226
65236
  }
65227
65237
  }, {
65228
65238
  start: {
65229
- line: 129,
65239
+ line: 130,
65230
65240
  column: 75
65231
65241
  },
65232
65242
  end: {
65233
- line: 129,
65243
+ line: 130,
65234
65244
  column: 77
65235
65245
  }
65236
65246
  }],
65237
- line: 129
65247
+ line: 130
65238
65248
  }
65239
65249
  },
65240
65250
  s: {
@@ -65288,7 +65298,8 @@ function cov_13lrfxjoky() {
65288
65298
  "47": 0,
65289
65299
  "48": 0,
65290
65300
  "49": 0,
65291
- "50": 0
65301
+ "50": 0,
65302
+ "51": 0
65292
65303
  },
65293
65304
  f: {
65294
65305
  "0": 0,
@@ -65317,7 +65328,7 @@ function cov_13lrfxjoky() {
65317
65328
  "7": [0, 0]
65318
65329
  },
65319
65330
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
65320
- hash: "f96202c70edce570b6b5a8538ab7a4aec794637a"
65331
+ hash: "c8d8c5409e33c0473cbf6f816e4b217990caf4ad"
65321
65332
  };
65322
65333
  var coverage = global[gcv] || (global[gcv] = {});
65323
65334
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -65505,24 +65516,26 @@ var Attachment = function Attachment(_ref2) {
65505
65516
  if ((cov_13lrfxjoky().b[4][0]++, event.key === "Enter") && (cov_13lrfxjoky().b[4][1]++, handler) && (cov_13lrfxjoky().b[4][2]++, !isEmpty$1(newFilename))) {
65506
65517
  cov_13lrfxjoky().b[3][0]++;
65507
65518
  cov_13lrfxjoky().s[38]++;
65508
- event.preventDefault();
65519
+ event.stopPropagation();
65509
65520
  cov_13lrfxjoky().s[39]++;
65521
+ event.preventDefault();
65522
+ cov_13lrfxjoky().s[40]++;
65510
65523
  handler();
65511
65524
  } else {
65512
65525
  cov_13lrfxjoky().b[3][1]++;
65513
65526
  }
65514
- cov_13lrfxjoky().s[40]++;
65527
+ cov_13lrfxjoky().s[41]++;
65515
65528
  if (event.key === "Escape") {
65516
65529
  cov_13lrfxjoky().b[5][0]++;
65517
- cov_13lrfxjoky().s[41]++;
65518
- setIsRenaming(false);
65519
65530
  cov_13lrfxjoky().s[42]++;
65531
+ setIsRenaming(false);
65532
+ cov_13lrfxjoky().s[43]++;
65520
65533
  setNewFilename("");
65521
65534
  } else {
65522
65535
  cov_13lrfxjoky().b[5][1]++;
65523
65536
  }
65524
65537
  };
65525
- cov_13lrfxjoky().s[43]++;
65538
+ cov_13lrfxjoky().s[44]++;
65526
65539
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
65527
65540
  className: "ne-attachments__preview"
65528
65541
  }, isRenaming ? (cov_13lrfxjoky().b[6][0]++, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tooltip, {
@@ -65537,7 +65550,7 @@ var Attachment = function Attachment(_ref2) {
65537
65550
  onChange: withEventTargetValue(setNewFilename),
65538
65551
  onKeyDown: function onKeyDown(event) {
65539
65552
  cov_13lrfxjoky().f[7]++;
65540
- cov_13lrfxjoky().s[44]++;
65553
+ cov_13lrfxjoky().s[45]++;
65541
65554
  return handleKeyDown({
65542
65555
  event: event,
65543
65556
  key: ATTACHMENT_OPTIONS.RENAME
@@ -65550,14 +65563,14 @@ var Attachment = function Attachment(_ref2) {
65550
65563
  style: "text",
65551
65564
  onClick: function onClick() {
65552
65565
  cov_13lrfxjoky().f[8]++;
65553
- cov_13lrfxjoky().s[45]++;
65566
+ cov_13lrfxjoky().s[46]++;
65554
65567
  return setIsRenaming(false);
65555
65568
  }
65556
65569
  }))) : (cov_13lrfxjoky().b[6][1]++, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
65557
65570
  className: "ne-attachments__preview-wrapper",
65558
65571
  onClick: function onClick() {
65559
65572
  cov_13lrfxjoky().f[9]++;
65560
- cov_13lrfxjoky().s[46]++;
65573
+ cov_13lrfxjoky().s[47]++;
65561
65574
  return setSelectedAttachment(attachment);
65562
65575
  }
65563
65576
  }, /*#__PURE__*/React__default.createElement(File$1, {
@@ -65569,7 +65582,7 @@ var Attachment = function Attachment(_ref2) {
65569
65582
  style: "body2",
65570
65583
  onClick: function onClick() {
65571
65584
  cov_13lrfxjoky().f[10]++;
65572
- cov_13lrfxjoky().s[47]++;
65585
+ cov_13lrfxjoky().s[48]++;
65573
65586
  return setSelectedAttachment(attachment);
65574
65587
  }
65575
65588
  }, attachment.filename))), /*#__PURE__*/React__default.createElement(Tooltip, {
@@ -65586,13 +65599,13 @@ var Attachment = function Attachment(_ref2) {
65586
65599
  label = _ref21[0],
65587
65600
  handler = _ref21[1];
65588
65601
  cov_13lrfxjoky().f[11]++;
65589
- cov_13lrfxjoky().s[48]++;
65602
+ cov_13lrfxjoky().s[49]++;
65590
65603
  return /*#__PURE__*/React__default.createElement(MenuItem$2.Button, {
65591
65604
  "data-cy": "neeto-editor-preview-".concat(label.toLowerCase(), "-button"),
65592
65605
  key: label,
65593
65606
  onClick: function onClick() {
65594
65607
  cov_13lrfxjoky().f[12]++;
65595
- cov_13lrfxjoky().s[49]++;
65608
+ cov_13lrfxjoky().s[50]++;
65596
65609
  return onMenuItemClick({
65597
65610
  key: label,
65598
65611
  handler: handler
@@ -65608,7 +65621,7 @@ var Attachment = function Attachment(_ref2) {
65608
65621
  title: t("attachments.deleteTitle"),
65609
65622
  onClose: function onClose() {
65610
65623
  cov_13lrfxjoky().f[13]++;
65611
- cov_13lrfxjoky().s[50]++;
65624
+ cov_13lrfxjoky().s[51]++;
65612
65625
  return setIsDeleteAlertOpen(false);
65613
65626
  },
65614
65627
  onSubmit: handleDelete
@@ -104920,7 +104933,7 @@ var EmojiSuggestion$1 = EmojiSuggestion.configure({
104920
104933
 
104921
104934
  function cov_1rrokgc9k1() {
104922
104935
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ImageComponent.jsx";
104923
- var hash = "74d839e2206cce222a1ad134702eac6ef0c0dee7";
104936
+ var hash = "7931a267144e038d9242914e1ff6f4c79984799f";
104924
104937
  var global = new Function("return this")();
104925
104938
  var gcv = "__coverage__";
104926
104939
  var coverageData = {
@@ -104932,117 +104945,137 @@ function cov_1rrokgc9k1() {
104932
104945
  column: 23
104933
104946
  },
104934
104947
  end: {
104935
- line: 76,
104948
+ line: 83,
104936
104949
  column: 1
104937
104950
  }
104938
104951
  },
104939
104952
  "1": {
104940
104953
  start: {
104941
104954
  line: 18,
104942
- column: 20
104955
+ column: 51
104943
104956
  },
104944
104957
  end: {
104945
104958
  line: 18,
104946
- column: 32
104959
+ column: 61
104947
104960
  }
104948
104961
  },
104949
104962
  "2": {
104950
104963
  start: {
104951
104964
  line: 20,
104952
- column: 51
104965
+ column: 42
104953
104966
  },
104954
104967
  end: {
104955
104968
  line: 20,
104956
- column: 61
104969
+ column: 65
104957
104970
  }
104958
104971
  },
104959
104972
  "3": {
104960
104973
  start: {
104961
- line: 21,
104974
+ line: 22,
104975
+ column: 20
104976
+ },
104977
+ end: {
104978
+ line: 22,
104979
+ column: 32
104980
+ }
104981
+ },
104982
+ "4": {
104983
+ start: {
104984
+ line: 24,
104962
104985
  column: 19
104963
104986
  },
104964
104987
  end: {
104965
- line: 21,
104988
+ line: 24,
104966
104989
  column: 25
104967
104990
  }
104968
104991
  },
104969
- "4": {
104992
+ "5": {
104970
104993
  start: {
104971
- line: 22,
104994
+ line: 25,
104972
104995
  column: 15
104973
104996
  },
104974
104997
  end: {
104975
- line: 22,
104998
+ line: 25,
104976
104999
  column: 24
104977
105000
  }
104978
105001
  },
104979
- "5": {
105002
+ "6": {
104980
105003
  start: {
104981
- line: 23,
105004
+ line: 26,
104982
105005
  column: 14
104983
105006
  },
104984
105007
  end: {
104985
- line: 23,
105008
+ line: 26,
104986
105009
  column: 22
104987
105010
  }
104988
105011
  },
104989
- "6": {
105012
+ "7": {
104990
105013
  start: {
104991
- line: 24,
105014
+ line: 27,
104992
105015
  column: 18
104993
105016
  },
104994
105017
  end: {
104995
- line: 26,
105018
+ line: 29,
104996
105019
  column: 9
104997
105020
  }
104998
105021
  },
104999
- "7": {
105022
+ "8": {
105000
105023
  start: {
105001
- line: 28,
105024
+ line: 31,
105002
105025
  column: 2
105003
105026
  },
105004
105027
  end: {
105005
- line: 75,
105028
+ line: 82,
105006
105029
  column: 4
105007
105030
  }
105008
105031
  },
105009
- "8": {
105032
+ "9": {
105010
105033
  start: {
105011
- line: 45,
105034
+ line: 48,
105012
105035
  column: 14
105013
105036
  },
105014
105037
  end: {
105015
- line: 45,
105038
+ line: 48,
105039
+ column: 46
105040
+ }
105041
+ },
105042
+ "10": {
105043
+ start: {
105044
+ line: 51,
105045
+ column: 14
105046
+ },
105047
+ end: {
105048
+ line: 51,
105016
105049
  column: 40
105017
105050
  }
105018
105051
  },
105019
- "9": {
105052
+ "11": {
105020
105053
  start: {
105021
- line: 46,
105054
+ line: 52,
105022
105055
  column: 14
105023
105056
  },
105024
105057
  end: {
105025
- line: 46,
105058
+ line: 52,
105026
105059
  column: 38
105027
105060
  }
105028
105061
  },
105029
- "10": {
105062
+ "12": {
105030
105063
  start: {
105031
- line: 47,
105064
+ line: 53,
105032
105065
  column: 14
105033
105066
  },
105034
105067
  end: {
105035
- line: 58,
105068
+ line: 64,
105036
105069
  column: 16
105037
105070
  }
105038
105071
  },
105039
- "11": {
105072
+ "13": {
105040
105073
  start: {
105041
- line: 59,
105074
+ line: 65,
105042
105075
  column: 14
105043
105076
  },
105044
105077
  end: {
105045
- line: 59,
105078
+ line: 65,
105046
105079
  column: 38
105047
105080
  }
105048
105081
  }
@@ -105066,7 +105099,7 @@ function cov_1rrokgc9k1() {
105066
105099
  column: 6
105067
105100
  },
105068
105101
  end: {
105069
- line: 76,
105102
+ line: 83,
105070
105103
  column: 1
105071
105104
  }
105072
105105
  },
@@ -105076,93 +105109,150 @@ function cov_1rrokgc9k1() {
105076
105109
  name: "(anonymous_1)",
105077
105110
  decl: {
105078
105111
  start: {
105079
- line: 44,
105112
+ line: 47,
105113
+ column: 22
105114
+ },
105115
+ end: {
105116
+ line: 47,
105117
+ column: 23
105118
+ }
105119
+ },
105120
+ loc: {
105121
+ start: {
105122
+ line: 48,
105123
+ column: 14
105124
+ },
105125
+ end: {
105126
+ line: 48,
105127
+ column: 46
105128
+ }
105129
+ },
105130
+ line: 48
105131
+ },
105132
+ "2": {
105133
+ name: "(anonymous_2)",
105134
+ decl: {
105135
+ start: {
105136
+ line: 50,
105080
105137
  column: 26
105081
105138
  },
105082
105139
  end: {
105083
- line: 44,
105140
+ line: 50,
105084
105141
  column: 27
105085
105142
  }
105086
105143
  },
105087
105144
  loc: {
105088
105145
  start: {
105089
- line: 44,
105146
+ line: 50,
105090
105147
  column: 55
105091
105148
  },
105092
105149
  end: {
105093
- line: 60,
105150
+ line: 66,
105094
105151
  column: 13
105095
105152
  }
105096
105153
  },
105097
- line: 44
105154
+ line: 50
105098
105155
  }
105099
105156
  },
105100
105157
  branchMap: {
105101
105158
  "0": {
105102
105159
  loc: {
105103
105160
  start: {
105104
- line: 24,
105161
+ line: 20,
105162
+ column: 51
105163
+ },
105164
+ end: {
105165
+ line: 20,
105166
+ column: 64
105167
+ }
105168
+ },
105169
+ type: "binary-expr",
105170
+ locations: [{
105171
+ start: {
105172
+ line: 20,
105173
+ column: 51
105174
+ },
105175
+ end: {
105176
+ line: 20,
105177
+ column: 59
105178
+ }
105179
+ }, {
105180
+ start: {
105181
+ line: 20,
105182
+ column: 63
105183
+ },
105184
+ end: {
105185
+ line: 20,
105186
+ column: 64
105187
+ }
105188
+ }],
105189
+ line: 20
105190
+ },
105191
+ "1": {
105192
+ loc: {
105193
+ start: {
105194
+ line: 27,
105105
105195
  column: 18
105106
105196
  },
105107
105197
  end: {
105108
- line: 26,
105198
+ line: 29,
105109
105199
  column: 9
105110
105200
  }
105111
105201
  },
105112
105202
  type: "cond-expr",
105113
105203
  locations: [{
105114
105204
  start: {
105115
- line: 25,
105205
+ line: 28,
105116
105206
  column: 6
105117
105207
  },
105118
105208
  end: {
105119
- line: 25,
105209
+ line: 28,
105120
105210
  column: 68
105121
105211
  }
105122
105212
  }, {
105123
105213
  start: {
105124
- line: 26,
105214
+ line: 29,
105125
105215
  column: 6
105126
105216
  },
105127
105217
  end: {
105128
- line: 26,
105218
+ line: 29,
105129
105219
  column: 9
105130
105220
  }
105131
105221
  }],
105132
- line: 24
105222
+ line: 27
105133
105223
  },
105134
- "1": {
105224
+ "2": {
105135
105225
  loc: {
105136
105226
  start: {
105137
- line: 39,
105227
+ line: 42,
105138
105228
  column: 9
105139
105229
  },
105140
105230
  end: {
105141
- line: 68,
105231
+ line: 74,
105142
105232
  column: 9
105143
105233
  }
105144
105234
  },
105145
105235
  type: "cond-expr",
105146
105236
  locations: [{
105147
105237
  start: {
105148
- line: 40,
105238
+ line: 43,
105149
105239
  column: 10
105150
105240
  },
105151
105241
  end: {
105152
- line: 63,
105242
+ line: 69,
105153
105243
  column: 22
105154
105244
  }
105155
105245
  }, {
105156
105246
  start: {
105157
- line: 65,
105247
+ line: 71,
105158
105248
  column: 10
105159
105249
  },
105160
105250
  end: {
105161
- line: 67,
105251
+ line: 73,
105162
105252
  column: 16
105163
105253
  }
105164
105254
  }],
105165
- line: 39
105255
+ line: 42
105166
105256
  }
105167
105257
  },
105168
105258
  s: {
@@ -105177,18 +105267,22 @@ function cov_1rrokgc9k1() {
105177
105267
  "8": 0,
105178
105268
  "9": 0,
105179
105269
  "10": 0,
105180
- "11": 0
105270
+ "11": 0,
105271
+ "12": 0,
105272
+ "13": 0
105181
105273
  },
105182
105274
  f: {
105183
105275
  "0": 0,
105184
- "1": 0
105276
+ "1": 0,
105277
+ "2": 0
105185
105278
  },
105186
105279
  b: {
105187
105280
  "0": [0, 0],
105188
- "1": [0, 0]
105281
+ "1": [0, 0],
105282
+ "2": [0, 0]
105189
105283
  },
105190
105284
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
105191
- hash: "74d839e2206cce222a1ad134702eac6ef0c0dee7"
105285
+ hash: "7931a267144e038d9242914e1ff6f4c79984799f"
105192
105286
  };
105193
105287
  var coverage = global[gcv] || (global[gcv] = {});
105194
105288
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -105213,19 +105307,23 @@ var ImageComponent = function ImageComponent(_ref) {
105213
105307
  updateAttributes = _ref.updateAttributes,
105214
105308
  deleteNode = _ref.deleteNode;
105215
105309
  cov_1rrokgc9k1().f[0]++;
105216
- var figureRef = (cov_1rrokgc9k1().s[1]++, useRef$1(null));
105217
- var _ref2 = (cov_1rrokgc9k1().s[2]++, node.attrs),
105310
+ var _ref2 = (cov_1rrokgc9k1().s[1]++, node.attrs),
105218
105311
  alt = _ref2.alt,
105219
105312
  src = _ref2.src,
105220
105313
  figheight = _ref2.figheight,
105221
105314
  figwidth = _ref2.figwidth,
105222
105315
  align = _ref2.align;
105223
- var _ref3 = (cov_1rrokgc9k1().s[3]++, editor),
105224
- view = _ref3.view;
105225
- var height = (cov_1rrokgc9k1().s[4]++, figheight);
105226
- var width = (cov_1rrokgc9k1().s[5]++, figwidth);
105227
- var caption = (cov_1rrokgc9k1().s[6]++, figureRef.current ? (cov_1rrokgc9k1().b[0][0]++, (_figureRef$current$qu = figureRef.current.querySelector("figcaption>div")) === null || _figureRef$current$qu === void 0 ? void 0 : _figureRef$current$qu.textContent) : (cov_1rrokgc9k1().b[0][1]++, alt));
105228
- cov_1rrokgc9k1().s[7]++;
105316
+ var _ref3 = (cov_1rrokgc9k1().s[2]++, useState((cov_1rrokgc9k1().b[0][0]++, figwidth) || (cov_1rrokgc9k1().b[0][1]++, 0))),
105317
+ _ref4 = _slicedToArray(_ref3, 2),
105318
+ captionWidth = _ref4[0],
105319
+ setCaptionWidth = _ref4[1];
105320
+ var figureRef = (cov_1rrokgc9k1().s[3]++, useRef$1(null));
105321
+ var _ref5 = (cov_1rrokgc9k1().s[4]++, editor),
105322
+ view = _ref5.view;
105323
+ var height = (cov_1rrokgc9k1().s[5]++, figheight);
105324
+ var width = (cov_1rrokgc9k1().s[6]++, figwidth);
105325
+ var caption = (cov_1rrokgc9k1().s[7]++, figureRef.current ? (cov_1rrokgc9k1().b[1][0]++, (_figureRef$current$qu = figureRef.current.querySelector("figcaption>div")) === null || _figureRef$current$qu === void 0 ? void 0 : _figureRef$current$qu.textContent) : (cov_1rrokgc9k1().b[1][1]++, alt));
105326
+ cov_1rrokgc9k1().s[8]++;
105229
105327
  return /*#__PURE__*/React__default.createElement(NodeViewWrapper, {
105230
105328
  className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align)
105231
105329
  }, /*#__PURE__*/React__default.createElement("figure", {
@@ -105235,46 +105333,54 @@ var ImageComponent = function ImageComponent(_ref) {
105235
105333
  deleteNode: deleteNode,
105236
105334
  editor: editor,
105237
105335
  updateAttributes: updateAttributes
105238
- }), src ? (cov_1rrokgc9k1().b[1][0]++, /*#__PURE__*/React__default.createElement(Resizable, {
105336
+ }), src ? (cov_1rrokgc9k1().b[2][0]++, /*#__PURE__*/React__default.createElement(Resizable, {
105239
105337
  lockAspectRatio: true,
105240
105338
  className: "neeto-editor__image",
105241
105339
  size: {
105242
105340
  height: height,
105243
105341
  width: width
105244
105342
  },
105245
- onResizeStop: function onResizeStop(_event, _direction, ref) {
105343
+ onResize: function onResize(_event, _direction, ref) {
105246
105344
  cov_1rrokgc9k1().f[1]++;
105247
- cov_1rrokgc9k1().s[8]++;
105248
- height = ref.offsetHeight;
105249
105345
  cov_1rrokgc9k1().s[9]++;
105250
- width = ref.offsetWidth;
105346
+ return setCaptionWidth(ref.offsetWidth);
105347
+ },
105348
+ onResizeStop: function onResizeStop(_event, _direction, ref) {
105349
+ cov_1rrokgc9k1().f[2]++;
105251
105350
  cov_1rrokgc9k1().s[10]++;
105351
+ height = ref.offsetHeight;
105352
+ cov_1rrokgc9k1().s[11]++;
105353
+ width = ref.offsetWidth;
105354
+ cov_1rrokgc9k1().s[12]++;
105252
105355
  view.dispatch(view.state.tr.setNodeMarkup(getPos(), undefined, mergeRight(node.attrs, {
105253
105356
  figheight: height,
105254
105357
  figwidth: width,
105255
105358
  height: height,
105256
105359
  width: width
105257
105360
  })));
105258
- cov_1rrokgc9k1().s[11]++;
105361
+ cov_1rrokgc9k1().s[13]++;
105259
105362
  editor.commands.focus();
105260
105363
  }
105261
105364
  }, /*#__PURE__*/React__default.createElement("img", _extends$2({}, node.attrs, {
105262
105365
  alt: caption,
105263
105366
  src: src
105264
- })))) : (cov_1rrokgc9k1().b[1][1]++, /*#__PURE__*/React__default.createElement("div", {
105367
+ })))) : (cov_1rrokgc9k1().b[2][1]++, /*#__PURE__*/React__default.createElement("div", {
105265
105368
  className: "neeto-editor__image-placeholder"
105266
105369
  }, /*#__PURE__*/React__default.createElement(Spinner, null))), /*#__PURE__*/React__default.createElement(NodeViewContent, {
105267
105370
  as: "figcaption",
105268
105371
  className: classnames$2({
105269
105372
  "is-empty": isEmpty$1(caption)
105270
- })
105373
+ }),
105374
+ style: {
105375
+ width: "".concat(captionWidth, "px")
105376
+ }
105271
105377
  })));
105272
105378
  };
105273
105379
 
105274
105380
  var _excluded$9 = ["caption"];
105275
105381
  function cov_ksv9azglk() {
105276
105382
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ExtensionConfig.js";
105277
- var hash = "6363243ced583b4bf6b9f147bfa510bedcc0246b";
105383
+ var hash = "ce242fed07b10fc4df7c01982eda2c3b9055467f";
105278
105384
  var global = new Function("return this")();
105279
105385
  var gcv = "__coverage__";
105280
105386
  var coverageData = {
@@ -105286,7 +105392,7 @@ function cov_ksv9azglk() {
105286
105392
  column: 23
105287
105393
  },
105288
105394
  end: {
105289
- line: 132,
105395
+ line: 134,
105290
105396
  column: 2
105291
105397
  }
105292
105398
  },
@@ -105413,360 +105519,370 @@ function cov_ksv9azglk() {
105413
105519
  "13": {
105414
105520
  start: {
105415
105521
  line: 92,
105522
+ column: 25
105523
+ },
105524
+ end: {
105525
+ line: 92,
105526
+ column: 58
105527
+ }
105528
+ },
105529
+ "14": {
105530
+ start: {
105531
+ line: 94,
105416
105532
  column: 4
105417
105533
  },
105418
105534
  end: {
105419
- line: 111,
105535
+ line: 113,
105420
105536
  column: 6
105421
105537
  }
105422
105538
  },
105423
- "14": {
105539
+ "15": {
105424
105540
  start: {
105425
- line: 115,
105541
+ line: 117,
105426
105542
  column: 4
105427
105543
  },
105428
105544
  end: {
105429
- line: 115,
105545
+ line: 117,
105430
105546
  column: 49
105431
105547
  }
105432
105548
  },
105433
- "15": {
105549
+ "16": {
105434
105550
  start: {
105435
- line: 119,
105551
+ line: 121,
105436
105552
  column: 4
105437
105553
  },
105438
105554
  end: {
105439
- line: 130,
105555
+ line: 132,
105440
105556
  column: 6
105441
105557
  }
105442
105558
  },
105443
- "16": {
105559
+ "17": {
105444
105560
  start: {
105445
- line: 122,
105561
+ line: 124,
105446
105562
  column: 8
105447
105563
  },
105448
105564
  end: {
105449
- line: 129,
105565
+ line: 131,
105450
105566
  column: 18
105451
105567
  }
105452
105568
  },
105453
- "17": {
105569
+ "18": {
105454
105570
  start: {
105455
- line: 123,
105571
+ line: 125,
105456
105572
  column: 10
105457
105573
  },
105458
105574
  end: {
105459
- line: 129,
105575
+ line: 131,
105460
105576
  column: 18
105461
105577
  }
105462
105578
  },
105463
- "18": {
105579
+ "19": {
105464
105580
  start: {
105465
- line: 134,
105581
+ line: 136,
105466
105582
  column: 15
105467
105583
  },
105468
105584
  end: {
105469
- line: 146,
105585
+ line: 148,
105470
105586
  column: 1
105471
105587
  }
105472
105588
  },
105473
- "19": {
105589
+ "20": {
105474
105590
  start: {
105475
- line: 135,
105591
+ line: 137,
105476
105592
  column: 2
105477
105593
  },
105478
105594
  end: {
105479
- line: 140,
105595
+ line: 142,
105480
105596
  column: 3
105481
105597
  }
105482
105598
  },
105483
- "20": {
105599
+ "21": {
105484
105600
  start: {
105485
- line: 136,
105601
+ line: 138,
105486
105602
  column: 21
105487
105603
  },
105488
105604
  end: {
105489
- line: 136,
105605
+ line: 138,
105490
105606
  column: 52
105491
105607
  }
105492
105608
  },
105493
- "21": {
105609
+ "22": {
105494
105610
  start: {
105495
- line: 137,
105611
+ line: 139,
105496
105612
  column: 21
105497
105613
  },
105498
105614
  end: {
105499
- line: 137,
105615
+ line: 139,
105500
105616
  column: 44
105501
105617
  }
105502
105618
  },
105503
- "22": {
105619
+ "23": {
105504
105620
  start: {
105505
- line: 139,
105621
+ line: 141,
105506
105622
  column: 4
105507
105623
  },
105508
105624
  end: {
105509
- line: 139,
105625
+ line: 141,
105510
105626
  column: 56
105511
105627
  }
105512
105628
  },
105513
- "23": {
105629
+ "24": {
105514
105630
  start: {
105515
- line: 142,
105631
+ line: 144,
105516
105632
  column: 24
105517
105633
  },
105518
105634
  end: {
105519
- line: 142,
105635
+ line: 144,
105520
105636
  column: 54
105521
105637
  }
105522
105638
  },
105523
- "24": {
105639
+ "25": {
105524
105640
  start: {
105525
- line: 143,
105641
+ line: 145,
105526
105642
  column: 2
105527
105643
  },
105528
105644
  end: {
105529
- line: 143,
105645
+ line: 145,
105530
105646
  column: 77
105531
105647
  }
105532
105648
  },
105533
- "25": {
105649
+ "26": {
105534
105650
  start: {
105535
- line: 145,
105651
+ line: 147,
105536
105652
  column: 2
105537
105653
  },
105538
105654
  end: {
105539
- line: 145,
105655
+ line: 147,
105540
105656
  column: 12
105541
105657
  }
105542
105658
  },
105543
- "26": {
105659
+ "27": {
105544
105660
  start: {
105545
- line: 150,
105661
+ line: 152,
105546
105662
  column: 4
105547
105663
  },
105548
105664
  end: {
105549
- line: 203,
105665
+ line: 205,
105550
105666
  column: 6
105551
105667
  }
105552
105668
  },
105553
- "27": {
105669
+ "28": {
105554
105670
  start: {
105555
- line: 152,
105671
+ line: 154,
105556
105672
  column: 8
105557
105673
  },
105558
105674
  end: {
105559
- line: 201,
105675
+ line: 203,
105560
105676
  column: 10
105561
105677
  }
105562
105678
  },
105563
- "28": {
105679
+ "29": {
105564
105680
  start: {
105565
- line: 162,
105681
+ line: 164,
105566
105682
  column: 22
105567
105683
  },
105568
105684
  end: {
105569
- line: 162,
105685
+ line: 164,
105570
105686
  column: 32
105571
105687
  }
105572
105688
  },
105573
- "29": {
105689
+ "30": {
105574
105690
  start: {
105575
- line: 163,
105691
+ line: 165,
105576
105692
  column: 35
105577
105693
  },
105578
105694
  end: {
105579
- line: 163,
105695
+ line: 165,
105580
105696
  column: 69
105581
105697
  }
105582
105698
  },
105583
- "30": {
105699
+ "31": {
105584
105700
  start: {
105585
- line: 165,
105701
+ line: 167,
105586
105702
  column: 18
105587
105703
  },
105588
105704
  end: {
105589
- line: 165,
105705
+ line: 167,
105590
105706
  column: 40
105591
105707
  }
105592
105708
  },
105593
- "31": {
105709
+ "32": {
105594
105710
  start: {
105595
- line: 165,
105711
+ line: 167,
105596
105712
  column: 33
105597
105713
  },
105598
105714
  end: {
105599
- line: 165,
105715
+ line: 167,
105600
105716
  column: 40
105601
105717
  }
105602
105718
  },
105603
- "32": {
105719
+ "33": {
105604
105720
  start: {
105605
- line: 167,
105721
+ line: 169,
105606
105722
  column: 33
105607
105723
  },
105608
105724
  end: {
105609
- line: 169,
105725
+ line: 171,
105610
105726
  column: 19
105611
105727
  }
105612
105728
  },
105613
- "33": {
105729
+ "34": {
105614
105730
  start: {
105615
- line: 168,
105731
+ line: 170,
105616
105732
  column: 28
105617
105733
  },
105618
105734
  end: {
105619
- line: 168,
105735
+ line: 170,
105620
105736
  column: 52
105621
105737
  }
105622
105738
  },
105623
- "34": {
105739
+ "35": {
105624
105740
  start: {
105625
- line: 171,
105741
+ line: 173,
105626
105742
  column: 18
105627
105743
  },
105628
105744
  end: {
105629
- line: 171,
105745
+ line: 173,
105630
105746
  column: 46
105631
105747
  }
105632
105748
  },
105633
- "35": {
105749
+ "36": {
105634
105750
  start: {
105635
- line: 171,
105751
+ line: 173,
105636
105752
  column: 39
105637
105753
  },
105638
105754
  end: {
105639
- line: 171,
105755
+ line: 173,
105640
105756
  column: 46
105641
105757
  }
105642
105758
  },
105643
- "36": {
105759
+ "37": {
105644
105760
  start: {
105645
- line: 173,
105761
+ line: 175,
105646
105762
  column: 18
105647
105763
  },
105648
105764
  end: {
105649
- line: 173,
105765
+ line: 175,
105650
105766
  column: 41
105651
105767
  }
105652
105768
  },
105653
- "37": {
105769
+ "38": {
105654
105770
  start: {
105655
- line: 175,
105771
+ line: 177,
105656
105772
  column: 18
105657
105773
  },
105658
105774
  end: {
105659
- line: 196,
105775
+ line: 198,
105660
105776
  column: 21
105661
105777
  }
105662
105778
  },
105663
- "38": {
105779
+ "39": {
105664
105780
  start: {
105665
- line: 176,
105781
+ line: 178,
105666
105782
  column: 31
105667
105783
  },
105668
105784
  end: {
105669
- line: 176,
105785
+ line: 178,
105670
105786
  column: 70
105671
105787
  }
105672
105788
  },
105673
- "39": {
105789
+ "40": {
105674
105790
  start: {
105675
- line: 177,
105791
+ line: 179,
105676
105792
  column: 33
105677
105793
  },
105678
105794
  end: {
105679
- line: 177,
105795
+ line: 179,
105680
105796
  column: 66
105681
105797
  }
105682
105798
  },
105683
- "40": {
105799
+ "41": {
105684
105800
  start: {
105685
- line: 178,
105801
+ line: 180,
105686
105802
  column: 40
105687
105803
  },
105688
105804
  end: {
105689
- line: 178,
105805
+ line: 180,
105690
105806
  column: 71
105691
105807
  }
105692
105808
  },
105693
- "41": {
105809
+ "42": {
105694
105810
  start: {
105695
- line: 179,
105811
+ line: 181,
105696
105812
  column: 20
105697
105813
  },
105698
105814
  end: {
105699
- line: 179,
105815
+ line: 181,
105700
105816
  column: 47
105701
105817
  }
105702
105818
  },
105703
- "42": {
105819
+ "43": {
105704
105820
  start: {
105705
- line: 180,
105821
+ line: 182,
105706
105822
  column: 20
105707
105823
  },
105708
105824
  end: {
105709
- line: 195,
105825
+ line: 197,
105710
105826
  column: 21
105711
105827
  }
105712
105828
  },
105713
- "43": {
105829
+ "44": {
105714
105830
  start: {
105715
- line: 181,
105831
+ line: 183,
105716
105832
  column: 34
105717
105833
  },
105718
105834
  end: {
105719
- line: 181,
105835
+ line: 183,
105720
105836
  column: 69
105721
105837
  }
105722
105838
  },
105723
- "44": {
105839
+ "45": {
105724
105840
  start: {
105725
- line: 182,
105841
+ line: 184,
105726
105842
  column: 22
105727
105843
  },
105728
105844
  end: {
105729
- line: 192,
105845
+ line: 194,
105730
105846
  column: 27
105731
105847
  }
105732
105848
  },
105733
- "45": {
105849
+ "46": {
105734
105850
  start: {
105735
- line: 184,
105851
+ line: 186,
105736
105852
  column: 26
105737
105853
  },
105738
105854
  end: {
105739
- line: 191,
105855
+ line: 193,
105740
105856
  column: 27
105741
105857
  }
105742
105858
  },
105743
- "46": {
105859
+ "47": {
105744
105860
  start: {
105745
- line: 185,
105861
+ line: 187,
105746
105862
  column: 48
105747
105863
  },
105748
105864
  end: {
105749
- line: 189,
105865
+ line: 191,
105750
105866
  column: 29
105751
105867
  }
105752
105868
  },
105753
- "47": {
105869
+ "48": {
105754
105870
  start: {
105755
- line: 190,
105871
+ line: 192,
105756
105872
  column: 28
105757
105873
  },
105758
105874
  end: {
105759
- line: 190,
105875
+ line: 192,
105760
105876
  column: 55
105761
105877
  }
105762
105878
  },
105763
- "48": {
105879
+ "49": {
105764
105880
  start: {
105765
- line: 194,
105881
+ line: 196,
105766
105882
  column: 22
105767
105883
  },
105768
105884
  end: {
105769
- line: 194,
105885
+ line: 196,
105770
105886
  column: 72
105771
105887
  }
105772
105888
  }
@@ -106006,7 +106122,7 @@ function cov_ksv9azglk() {
106006
106122
  column: 39
106007
106123
  },
106008
106124
  end: {
106009
- line: 112,
106125
+ line: 114,
106010
106126
  column: 3
106011
106127
  }
106012
106128
  },
@@ -106016,320 +106132,320 @@ function cov_ksv9azglk() {
106016
106132
  name: "(anonymous_10)",
106017
106133
  decl: {
106018
106134
  start: {
106019
- line: 114,
106135
+ line: 116,
106020
106136
  column: 2
106021
106137
  },
106022
106138
  end: {
106023
- line: 114,
106139
+ line: 116,
106024
106140
  column: 3
106025
106141
  }
106026
106142
  },
106027
106143
  loc: {
106028
106144
  start: {
106029
- line: 114,
106145
+ line: 116,
106030
106146
  column: 16
106031
106147
  },
106032
106148
  end: {
106033
- line: 116,
106149
+ line: 118,
106034
106150
  column: 3
106035
106151
  }
106036
106152
  },
106037
- line: 114
106153
+ line: 116
106038
106154
  },
106039
106155
  "11": {
106040
106156
  name: "(anonymous_11)",
106041
106157
  decl: {
106042
106158
  start: {
106043
- line: 118,
106159
+ line: 120,
106044
106160
  column: 2
106045
106161
  },
106046
106162
  end: {
106047
- line: 118,
106163
+ line: 120,
106048
106164
  column: 3
106049
106165
  }
106050
106166
  },
106051
106167
  loc: {
106052
106168
  start: {
106053
- line: 118,
106169
+ line: 120,
106054
106170
  column: 16
106055
106171
  },
106056
106172
  end: {
106057
- line: 131,
106173
+ line: 133,
106058
106174
  column: 3
106059
106175
  }
106060
106176
  },
106061
- line: 118
106177
+ line: 120
106062
106178
  },
106063
106179
  "12": {
106064
106180
  name: "(anonymous_12)",
106065
106181
  decl: {
106066
106182
  start: {
106067
- line: 121,
106183
+ line: 123,
106068
106184
  column: 8
106069
106185
  },
106070
106186
  end: {
106071
- line: 121,
106187
+ line: 123,
106072
106188
  column: 9
106073
106189
  }
106074
106190
  },
106075
106191
  loc: {
106076
106192
  start: {
106077
- line: 122,
106193
+ line: 124,
106078
106194
  column: 8
106079
106195
  },
106080
106196
  end: {
106081
- line: 129,
106197
+ line: 131,
106082
106198
  column: 18
106083
106199
  }
106084
106200
  },
106085
- line: 122
106201
+ line: 124
106086
106202
  },
106087
106203
  "13": {
106088
106204
  name: "(anonymous_13)",
106089
106205
  decl: {
106090
106206
  start: {
106091
- line: 122,
106207
+ line: 124,
106092
106208
  column: 8
106093
106209
  },
106094
106210
  end: {
106095
- line: 122,
106211
+ line: 124,
106096
106212
  column: 9
106097
106213
  }
106098
106214
  },
106099
106215
  loc: {
106100
106216
  start: {
106101
- line: 123,
106217
+ line: 125,
106102
106218
  column: 10
106103
106219
  },
106104
106220
  end: {
106105
- line: 129,
106221
+ line: 131,
106106
106222
  column: 18
106107
106223
  }
106108
106224
  },
106109
- line: 123
106225
+ line: 125
106110
106226
  },
106111
106227
  "14": {
106112
106228
  name: "(anonymous_14)",
106113
106229
  decl: {
106114
106230
  start: {
106115
- line: 134,
106231
+ line: 136,
106116
106232
  column: 15
106117
106233
  },
106118
106234
  end: {
106119
- line: 134,
106235
+ line: 136,
106120
106236
  column: 16
106121
106237
  }
106122
106238
  },
106123
106239
  loc: {
106124
106240
  start: {
106125
- line: 134,
106241
+ line: 136,
106126
106242
  column: 36
106127
106243
  },
106128
106244
  end: {
106129
- line: 146,
106245
+ line: 148,
106130
106246
  column: 1
106131
106247
  }
106132
106248
  },
106133
- line: 134
106249
+ line: 136
106134
106250
  },
106135
106251
  "15": {
106136
106252
  name: "(anonymous_15)",
106137
106253
  decl: {
106138
106254
  start: {
106139
- line: 149,
106255
+ line: 151,
106140
106256
  column: 13
106141
106257
  },
106142
106258
  end: {
106143
- line: 149,
106259
+ line: 151,
106144
106260
  column: 14
106145
106261
  }
106146
106262
  },
106147
106263
  loc: {
106148
106264
  start: {
106149
- line: 150,
106265
+ line: 152,
106150
106266
  column: 4
106151
106267
  },
106152
106268
  end: {
106153
- line: 203,
106269
+ line: 205,
106154
106270
  column: 6
106155
106271
  }
106156
106272
  },
106157
- line: 150
106273
+ line: 152
106158
106274
  },
106159
106275
  "16": {
106160
106276
  name: "(anonymous_16)",
106161
106277
  decl: {
106162
106278
  start: {
106163
- line: 151,
106279
+ line: 153,
106164
106280
  column: 6
106165
106281
  },
106166
106282
  end: {
106167
- line: 151,
106283
+ line: 153,
106168
106284
  column: 7
106169
106285
  }
106170
106286
  },
106171
106287
  loc: {
106172
106288
  start: {
106173
- line: 151,
106289
+ line: 153,
106174
106290
  column: 30
106175
106291
  },
106176
106292
  end: {
106177
- line: 202,
106293
+ line: 204,
106178
106294
  column: 7
106179
106295
  }
106180
106296
  },
106181
- line: 151
106297
+ line: 153
106182
106298
  },
106183
106299
  "17": {
106184
106300
  name: "(anonymous_17)",
106185
106301
  decl: {
106186
106302
  start: {
106187
- line: 156,
106303
+ line: 158,
106188
106304
  column: 16
106189
106305
  },
106190
106306
  end: {
106191
- line: 156,
106307
+ line: 158,
106192
106308
  column: 17
106193
106309
  }
106194
106310
  },
106195
106311
  loc: {
106196
106312
  start: {
106197
- line: 156,
106313
+ line: 158,
106198
106314
  column: 35
106199
106315
  },
106200
106316
  end: {
106201
- line: 197,
106317
+ line: 199,
106202
106318
  column: 17
106203
106319
  }
106204
106320
  },
106205
- line: 156
106321
+ line: 158
106206
106322
  },
106207
106323
  "18": {
106208
106324
  name: "(anonymous_18)",
106209
106325
  decl: {
106210
106326
  start: {
106211
- line: 168,
106327
+ line: 170,
106212
106328
  column: 20
106213
106329
  },
106214
106330
  end: {
106215
- line: 168,
106331
+ line: 170,
106216
106332
  column: 21
106217
106333
  }
106218
106334
  },
106219
106335
  loc: {
106220
106336
  start: {
106221
- line: 168,
106337
+ line: 170,
106222
106338
  column: 28
106223
106339
  },
106224
106340
  end: {
106225
- line: 168,
106341
+ line: 170,
106226
106342
  column: 52
106227
106343
  }
106228
106344
  },
106229
- line: 168
106345
+ line: 170
106230
106346
  },
106231
106347
  "19": {
106232
106348
  name: "(anonymous_19)",
106233
106349
  decl: {
106234
106350
  start: {
106235
- line: 175,
106351
+ line: 177,
106236
106352
  column: 33
106237
106353
  },
106238
106354
  end: {
106239
- line: 175,
106355
+ line: 177,
106240
106356
  column: 34
106241
106357
  }
106242
106358
  },
106243
106359
  loc: {
106244
106360
  start: {
106245
- line: 175,
106361
+ line: 177,
106246
106362
  column: 48
106247
106363
  },
106248
106364
  end: {
106249
- line: 196,
106365
+ line: 198,
106250
106366
  column: 19
106251
106367
  }
106252
106368
  },
106253
- line: 175
106369
+ line: 177
106254
106370
  },
106255
106371
  "20": {
106256
106372
  name: "(anonymous_20)",
106257
106373
  decl: {
106258
106374
  start: {
106259
- line: 183,
106375
+ line: 185,
106260
106376
  column: 51
106261
106377
  },
106262
106378
  end: {
106263
- line: 183,
106379
+ line: 185,
106264
106380
  column: 52
106265
106381
  }
106266
106382
  },
106267
106383
  loc: {
106268
106384
  start: {
106269
- line: 183,
106385
+ line: 185,
106270
106386
  column: 66
106271
106387
  },
106272
106388
  end: {
106273
- line: 192,
106389
+ line: 194,
106274
106390
  column: 25
106275
106391
  }
106276
106392
  },
106277
- line: 183
106393
+ line: 185
106278
106394
  }
106279
106395
  },
106280
106396
  branchMap: {
106281
106397
  "0": {
106282
106398
  loc: {
106283
106399
  start: {
106284
- line: 127,
106400
+ line: 129,
106285
106401
  column: 23
106286
106402
  },
106287
106403
  end: {
106288
- line: 127,
106404
+ line: 129,
106289
106405
  column: 71
106290
106406
  }
106291
106407
  },
106292
106408
  type: "cond-expr",
106293
106409
  locations: [{
106294
106410
  start: {
106295
- line: 127,
106411
+ line: 129,
106296
106412
  column: 33
106297
106413
  },
106298
106414
  end: {
106299
- line: 127,
106415
+ line: 129,
106300
106416
  column: 66
106301
106417
  }
106302
106418
  }, {
106303
106419
  start: {
106304
- line: 127,
106420
+ line: 129,
106305
106421
  column: 69
106306
106422
  },
106307
106423
  end: {
106308
- line: 127,
106424
+ line: 129,
106309
106425
  column: 71
106310
106426
  }
106311
106427
  }],
106312
- line: 127
106428
+ line: 129
106313
106429
  },
106314
106430
  "1": {
106315
106431
  loc: {
106316
106432
  start: {
106317
- line: 135,
106433
+ line: 137,
106318
106434
  column: 2
106319
106435
  },
106320
106436
  end: {
106321
- line: 140,
106437
+ line: 142,
106322
106438
  column: 3
106323
106439
  }
106324
106440
  },
106325
106441
  type: "if",
106326
106442
  locations: [{
106327
106443
  start: {
106328
- line: 135,
106444
+ line: 137,
106329
106445
  column: 2
106330
106446
  },
106331
106447
  end: {
106332
- line: 140,
106448
+ line: 142,
106333
106449
  column: 3
106334
106450
  }
106335
106451
  }, {
@@ -106342,60 +106458,60 @@ function cov_ksv9azglk() {
106342
106458
  column: undefined
106343
106459
  }
106344
106460
  }],
106345
- line: 135
106461
+ line: 137
106346
106462
  },
106347
106463
  "2": {
106348
106464
  loc: {
106349
106465
  start: {
106350
- line: 139,
106466
+ line: 141,
106351
106467
  column: 11
106352
106468
  },
106353
106469
  end: {
106354
- line: 139,
106470
+ line: 141,
106355
106471
  column: 55
106356
106472
  }
106357
106473
  },
106358
106474
  type: "binary-expr",
106359
106475
  locations: [{
106360
106476
  start: {
106361
- line: 139,
106477
+ line: 141,
106362
106478
  column: 11
106363
106479
  },
106364
106480
  end: {
106365
- line: 139,
106481
+ line: 141,
106366
106482
  column: 34
106367
106483
  }
106368
106484
  }, {
106369
106485
  start: {
106370
- line: 139,
106486
+ line: 141,
106371
106487
  column: 38
106372
106488
  },
106373
106489
  end: {
106374
- line: 139,
106490
+ line: 141,
106375
106491
  column: 55
106376
106492
  }
106377
106493
  }],
106378
- line: 139
106494
+ line: 141
106379
106495
  },
106380
106496
  "3": {
106381
106497
  loc: {
106382
106498
  start: {
106383
- line: 165,
106499
+ line: 167,
106384
106500
  column: 18
106385
106501
  },
106386
106502
  end: {
106387
- line: 165,
106503
+ line: 167,
106388
106504
  column: 40
106389
106505
  }
106390
106506
  },
106391
106507
  type: "if",
106392
106508
  locations: [{
106393
106509
  start: {
106394
- line: 165,
106510
+ line: 167,
106395
106511
  column: 18
106396
106512
  },
106397
106513
  end: {
106398
- line: 165,
106514
+ line: 167,
106399
106515
  column: 40
106400
106516
  }
106401
106517
  }, {
@@ -106408,27 +106524,27 @@ function cov_ksv9azglk() {
106408
106524
  column: undefined
106409
106525
  }
106410
106526
  }],
106411
- line: 165
106527
+ line: 167
106412
106528
  },
106413
106529
  "4": {
106414
106530
  loc: {
106415
106531
  start: {
106416
- line: 171,
106532
+ line: 173,
106417
106533
  column: 18
106418
106534
  },
106419
106535
  end: {
106420
- line: 171,
106536
+ line: 173,
106421
106537
  column: 46
106422
106538
  }
106423
106539
  },
106424
106540
  type: "if",
106425
106541
  locations: [{
106426
106542
  start: {
106427
- line: 171,
106543
+ line: 173,
106428
106544
  column: 18
106429
106545
  },
106430
106546
  end: {
106431
- line: 171,
106547
+ line: 173,
106432
106548
  column: 46
106433
106549
  }
106434
106550
  }, {
@@ -106441,60 +106557,60 @@ function cov_ksv9azglk() {
106441
106557
  column: undefined
106442
106558
  }
106443
106559
  }],
106444
- line: 171
106560
+ line: 173
106445
106561
  },
106446
106562
  "5": {
106447
106563
  loc: {
106448
106564
  start: {
106449
- line: 182,
106565
+ line: 184,
106450
106566
  column: 22
106451
106567
  },
106452
106568
  end: {
106453
- line: 192,
106569
+ line: 194,
106454
106570
  column: 26
106455
106571
  }
106456
106572
  },
106457
106573
  type: "binary-expr",
106458
106574
  locations: [{
106459
106575
  start: {
106460
- line: 182,
106576
+ line: 184,
106461
106577
  column: 22
106462
106578
  },
106463
106579
  end: {
106464
- line: 182,
106580
+ line: 184,
106465
106581
  column: 25
106466
106582
  }
106467
106583
  }, {
106468
106584
  start: {
106469
- line: 183,
106585
+ line: 185,
106470
106586
  column: 24
106471
106587
  },
106472
106588
  end: {
106473
- line: 192,
106589
+ line: 194,
106474
106590
  column: 26
106475
106591
  }
106476
106592
  }],
106477
- line: 182
106593
+ line: 184
106478
106594
  },
106479
106595
  "6": {
106480
106596
  loc: {
106481
106597
  start: {
106482
- line: 184,
106598
+ line: 186,
106483
106599
  column: 26
106484
106600
  },
106485
106601
  end: {
106486
- line: 191,
106602
+ line: 193,
106487
106603
  column: 27
106488
106604
  }
106489
106605
  },
106490
106606
  type: "if",
106491
106607
  locations: [{
106492
106608
  start: {
106493
- line: 184,
106609
+ line: 186,
106494
106610
  column: 26
106495
106611
  },
106496
106612
  end: {
106497
- line: 191,
106613
+ line: 193,
106498
106614
  column: 27
106499
106615
  }
106500
106616
  }, {
@@ -106507,7 +106623,7 @@ function cov_ksv9azglk() {
106507
106623
  column: undefined
106508
106624
  }
106509
106625
  }],
106510
- line: 184
106626
+ line: 186
106511
106627
  }
106512
106628
  },
106513
106629
  s: {
@@ -106559,7 +106675,8 @@ function cov_ksv9azglk() {
106559
106675
  "45": 0,
106560
106676
  "46": 0,
106561
106677
  "47": 0,
106562
- "48": 0
106678
+ "48": 0,
106679
+ "49": 0
106563
106680
  },
106564
106681
  f: {
106565
106682
  "0": 0,
@@ -106594,7 +106711,7 @@ function cov_ksv9azglk() {
106594
106711
  "6": [0, 0]
106595
106712
  },
106596
106713
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
106597
- hash: "6363243ced583b4bf6b9f147bfa510bedcc0246b"
106714
+ hash: "ce242fed07b10fc4df7c01982eda2c3b9055467f"
106598
106715
  };
106599
106716
  var coverage = global[gcv] || (global[gcv] = {});
106600
106717
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -106709,31 +106826,34 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
106709
106826
  "class": "neeto-editor__image",
106710
106827
  style: "height:".concat(figheight, "px;width:").concat(figwidth, "px;")
106711
106828
  });
106712
- cov_ksv9azglk().s[13]++;
106829
+ var captionAttrs = (cov_ksv9azglk().s[13]++, {
106830
+ style: "width:".concat(figwidth, "px;")
106831
+ });
106832
+ cov_ksv9azglk().s[14]++;
106713
106833
  return ["a", linkAttrs, ["figure", this.options.HTMLAttributes, ["div", resizeAttrs, ["img", mergeAttributes(HTMLAttributes, {
106714
106834
  draggable: false,
106715
106835
  contenteditable: false
106716
- })]], ["figcaption", 0]]];
106836
+ })]], ["figcaption", captionAttrs, 0]]];
106717
106837
  },
106718
106838
  addNodeView: function addNodeView() {
106719
106839
  cov_ksv9azglk().f[10]++;
106720
- cov_ksv9azglk().s[14]++;
106840
+ cov_ksv9azglk().s[15]++;
106721
106841
  return ReactNodeViewRenderer(ImageComponent);
106722
106842
  },
106723
106843
  addCommands: function addCommands() {
106724
106844
  var _this = this;
106725
106845
  cov_ksv9azglk().f[11]++;
106726
- cov_ksv9azglk().s[15]++;
106846
+ cov_ksv9azglk().s[16]++;
106727
106847
  return {
106728
106848
  setFigure: function setFigure(_ref3) {
106729
106849
  var caption = _ref3.caption,
106730
106850
  attrs = _objectWithoutProperties$1(_ref3, _excluded$9);
106731
106851
  cov_ksv9azglk().f[12]++;
106732
- cov_ksv9azglk().s[16]++;
106852
+ cov_ksv9azglk().s[17]++;
106733
106853
  return function (_ref4) {
106734
106854
  var chain = _ref4.chain;
106735
106855
  cov_ksv9azglk().f[13]++;
106736
- cov_ksv9azglk().s[17]++;
106856
+ cov_ksv9azglk().s[18]++;
106737
106857
  return chain().insertContent({
106738
106858
  type: _this.name,
106739
106859
  attrs: attrs,
@@ -106747,7 +106867,7 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
106747
106867
  };
106748
106868
  }
106749
106869
  }));
106750
- cov_ksv9azglk().s[18]++;
106870
+ cov_ksv9azglk().s[19]++;
106751
106871
  var upload = /*#__PURE__*/function () {
106752
106872
  var _ref5 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(file, url) {
106753
106873
  var _response$data, uploader, response, imageSizeInMB;
@@ -106755,32 +106875,32 @@ var upload = /*#__PURE__*/function () {
106755
106875
  while (1) switch (_context.prev = _context.next) {
106756
106876
  case 0:
106757
106877
  cov_ksv9azglk().f[14]++;
106758
- cov_ksv9azglk().s[19]++;
106878
+ cov_ksv9azglk().s[20]++;
106759
106879
  if (!(file.size <= MAX_IMAGE_SIZE)) {
106760
106880
  _context.next = 13;
106761
106881
  break;
106762
106882
  }
106763
106883
  cov_ksv9azglk().b[1][0]++;
106764
- uploader = (cov_ksv9azglk().s[20]++, new DirectUpload({
106884
+ uploader = (cov_ksv9azglk().s[21]++, new DirectUpload({
106765
106885
  file: file,
106766
106886
  url: url
106767
106887
  }));
106768
- cov_ksv9azglk().s[21]++;
106888
+ cov_ksv9azglk().s[22]++;
106769
106889
  _context.next = 8;
106770
106890
  return uploader.create();
106771
106891
  case 8:
106772
106892
  response = _context.sent;
106773
- cov_ksv9azglk().s[22]++;
106893
+ cov_ksv9azglk().s[23]++;
106774
106894
  return _context.abrupt("return", (cov_ksv9azglk().b[2][0]++, (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.blob_url) || (cov_ksv9azglk().b[2][1]++, response.blob_url));
106775
106895
  case 13:
106776
106896
  cov_ksv9azglk().b[1][1]++;
106777
106897
  case 14:
106778
- imageSizeInMB = (cov_ksv9azglk().s[23]++, MAX_IMAGE_SIZE / (1024 * 1024));
106779
- cov_ksv9azglk().s[24]++;
106898
+ imageSizeInMB = (cov_ksv9azglk().s[24]++, MAX_IMAGE_SIZE / (1024 * 1024));
106899
+ cov_ksv9azglk().s[25]++;
106780
106900
  Toastr.error(t$8("error.imageSizeIsShouldBeLess", {
106781
106901
  limit: imageSizeInMB
106782
106902
  }));
106783
- cov_ksv9azglk().s[25]++;
106903
+ cov_ksv9azglk().s[26]++;
106784
106904
  return _context.abrupt("return", "");
106785
106905
  case 19:
106786
106906
  case "end":
@@ -106796,45 +106916,45 @@ var ImageExtension$1 = {
106796
106916
  configure: function configure(_ref6) {
106797
106917
  var uploadEndpoint = _ref6.uploadEndpoint;
106798
106918
  cov_ksv9azglk().f[15]++;
106799
- cov_ksv9azglk().s[26]++;
106919
+ cov_ksv9azglk().s[27]++;
106800
106920
  return ImageExtension.extend({
106801
106921
  addProseMirrorPlugins: function addProseMirrorPlugins() {
106802
106922
  cov_ksv9azglk().f[16]++;
106803
- cov_ksv9azglk().s[27]++;
106923
+ cov_ksv9azglk().s[28]++;
106804
106924
  return [new Plugin({
106805
106925
  props: {
106806
106926
  handleDOMEvents: {
106807
106927
  paste: function paste(view, event) {
106808
106928
  var _event$clipboardData, _event$clipboardData$;
106809
106929
  cov_ksv9azglk().f[17]++;
106810
- var _ref7 = (cov_ksv9azglk().s[28]++, view.state),
106930
+ var _ref7 = (cov_ksv9azglk().s[29]++, view.state),
106811
106931
  schema = _ref7.schema,
106812
106932
  pos = _ref7.selection.$anchor.pos;
106813
- var hasFiles = (cov_ksv9azglk().s[29]++, (_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);
106814
- cov_ksv9azglk().s[30]++;
106933
+ var hasFiles = (cov_ksv9azglk().s[30]++, (_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);
106934
+ cov_ksv9azglk().s[31]++;
106815
106935
  if (!hasFiles) {
106816
106936
  cov_ksv9azglk().b[3][0]++;
106817
- cov_ksv9azglk().s[31]++;
106937
+ cov_ksv9azglk().s[32]++;
106818
106938
  return;
106819
106939
  } else {
106820
106940
  cov_ksv9azglk().b[3][1]++;
106821
106941
  }
106822
- var images = (cov_ksv9azglk().s[32]++, Array.from(event.clipboardData.files).filter(function (file) {
106942
+ var images = (cov_ksv9azglk().s[33]++, Array.from(event.clipboardData.files).filter(function (file) {
106823
106943
  cov_ksv9azglk().f[18]++;
106824
- cov_ksv9azglk().s[33]++;
106944
+ cov_ksv9azglk().s[34]++;
106825
106945
  return /image/i.test(file.type);
106826
106946
  }));
106827
- cov_ksv9azglk().s[34]++;
106947
+ cov_ksv9azglk().s[35]++;
106828
106948
  if (isEmpty$1(images)) {
106829
106949
  cov_ksv9azglk().b[4][0]++;
106830
- cov_ksv9azglk().s[35]++;
106950
+ cov_ksv9azglk().s[36]++;
106831
106951
  return;
106832
106952
  } else {
106833
106953
  cov_ksv9azglk().b[4][1]++;
106834
106954
  }
106835
- cov_ksv9azglk().s[36]++;
106836
- event.preventDefault();
106837
106955
  cov_ksv9azglk().s[37]++;
106956
+ event.preventDefault();
106957
+ cov_ksv9azglk().s[38]++;
106838
106958
  images.forEach( /*#__PURE__*/function () {
106839
106959
  var _ref8 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
106840
106960
  var id, node, transaction, url;
@@ -106842,30 +106962,30 @@ var ImageExtension$1 = {
106842
106962
  while (1) switch (_context2.prev = _context2.next) {
106843
106963
  case 0:
106844
106964
  cov_ksv9azglk().f[19]++;
106845
- id = (cov_ksv9azglk().s[38]++, Math.random().toString(36).substring(7));
106846
- node = (cov_ksv9azglk().s[39]++, schema.nodes.image.create({
106965
+ id = (cov_ksv9azglk().s[39]++, Math.random().toString(36).substring(7));
106966
+ node = (cov_ksv9azglk().s[40]++, schema.nodes.image.create({
106847
106967
  id: id
106848
106968
  }));
106849
- transaction = (cov_ksv9azglk().s[40]++, view.state.tr.insert(pos, node));
106850
- cov_ksv9azglk().s[41]++;
106851
- view.dispatch(transaction);
106969
+ transaction = (cov_ksv9azglk().s[41]++, view.state.tr.insert(pos, node));
106852
106970
  cov_ksv9azglk().s[42]++;
106853
- _context2.prev = 7;
106971
+ view.dispatch(transaction);
106854
106972
  cov_ksv9azglk().s[43]++;
106973
+ _context2.prev = 7;
106974
+ cov_ksv9azglk().s[44]++;
106855
106975
  _context2.next = 11;
106856
106976
  return upload(image, uploadEndpoint);
106857
106977
  case 11:
106858
106978
  url = _context2.sent;
106859
- cov_ksv9azglk().s[44]++;
106979
+ cov_ksv9azglk().s[45]++;
106860
106980
  (cov_ksv9azglk().b[5][0]++, url) && (cov_ksv9azglk().b[5][1]++, view.state.doc.descendants(function (node, pos) {
106861
106981
  cov_ksv9azglk().f[20]++;
106862
- cov_ksv9azglk().s[45]++;
106982
+ cov_ksv9azglk().s[46]++;
106863
106983
  if (node.attrs.id === id) {
106864
106984
  cov_ksv9azglk().b[6][0]++;
106865
- var _transaction = (cov_ksv9azglk().s[46]++, view.state.tr.setNodeMarkup(pos, null, {
106985
+ var _transaction = (cov_ksv9azglk().s[47]++, view.state.tr.setNodeMarkup(pos, null, {
106866
106986
  src: url
106867
106987
  }));
106868
- cov_ksv9azglk().s[47]++;
106988
+ cov_ksv9azglk().s[48]++;
106869
106989
  view.dispatch(_transaction);
106870
106990
  } else {
106871
106991
  cov_ksv9azglk().b[6][1]++;
@@ -106876,7 +106996,7 @@ var ImageExtension$1 = {
106876
106996
  case 16:
106877
106997
  _context2.prev = 16;
106878
106998
  _context2.t0 = _context2["catch"](7);
106879
- cov_ksv9azglk().s[48]++;
106999
+ cov_ksv9azglk().s[49]++;
106880
107000
  view.dispatch(view.state.tr["delete"](pos, pos + 1));
106881
107001
  case 20:
106882
107002
  case "end":
@@ -106899,7 +107019,7 @@ var ImageExtension$1 = {
106899
107019
 
106900
107020
  function cov_mdp7zot9o() {
106901
107021
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/FigCaption.js";
106902
- var hash = "acc080d8b58d40104e6b30c98cc1f87bc613b1b9";
107022
+ var hash = "c9ac09c21dac0821bf21468750ec234bb65938af";
106903
107023
  var global = new Function("return this")();
106904
107024
  var gcv = "__coverage__";
106905
107025
  var coverageData = {
@@ -106907,12 +107027,12 @@ function cov_mdp7zot9o() {
106907
107027
  statementMap: {
106908
107028
  "0": {
106909
107029
  start: {
106910
- line: 11,
107030
+ line: 13,
106911
107031
  column: 4
106912
107032
  },
106913
107033
  end: {
106914
- line: 15,
106915
- column: 6
107034
+ line: 13,
107035
+ column: 35
106916
107036
  }
106917
107037
  }
106918
107038
  },
@@ -106921,25 +107041,25 @@ function cov_mdp7zot9o() {
106921
107041
  name: "(anonymous_0)",
106922
107042
  decl: {
106923
107043
  start: {
106924
- line: 10,
107044
+ line: 12,
106925
107045
  column: 2
106926
107046
  },
106927
107047
  end: {
106928
- line: 10,
107048
+ line: 12,
106929
107049
  column: 3
106930
107050
  }
106931
107051
  },
106932
107052
  loc: {
106933
107053
  start: {
106934
- line: 10,
107054
+ line: 12,
106935
107055
  column: 14
106936
107056
  },
106937
107057
  end: {
106938
- line: 16,
107058
+ line: 14,
106939
107059
  column: 3
106940
107060
  }
106941
107061
  },
106942
- line: 10
107062
+ line: 12
106943
107063
  }
106944
107064
  },
106945
107065
  branchMap: {},
@@ -106951,7 +107071,7 @@ function cov_mdp7zot9o() {
106951
107071
  },
106952
107072
  b: {},
106953
107073
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
106954
- hash: "acc080d8b58d40104e6b30c98cc1f87bc613b1b9"
107074
+ hash: "c9ac09c21dac0821bf21468750ec234bb65938af"
106955
107075
  };
106956
107076
  var coverage = global[gcv] || (global[gcv] = {});
106957
107077
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -106969,6 +107089,7 @@ function cov_mdp7zot9o() {
106969
107089
  cov_mdp7zot9o();
106970
107090
  var FigCaption = Node$1.create({
106971
107091
  name: "figcaption",
107092
+ content: "text*",
106972
107093
  selectable: false,
106973
107094
  draggable: false,
106974
107095
  parseHTML: function parseHTML() {