@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.cjs.js CHANGED
@@ -64135,7 +64135,7 @@ var File$1 = function File(_ref) {
64135
64135
 
64136
64136
  function cov_13lrfxjoky() {
64137
64137
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Attachments/Attachment.jsx";
64138
- var hash = "f96202c70edce570b6b5a8538ab7a4aec794637a";
64138
+ var hash = "c8d8c5409e33c0473cbf6f816e4b217990caf4ad";
64139
64139
  var global = new Function("return this")();
64140
64140
  var gcv = "__coverage__";
64141
64141
  var coverageData = {
@@ -64157,7 +64157,7 @@ function cov_13lrfxjoky() {
64157
64157
  column: 19
64158
64158
  },
64159
64159
  end: {
64160
- line: 202,
64160
+ line: 203,
64161
64161
  column: 1
64162
64162
  }
64163
64163
  },
@@ -64497,7 +64497,7 @@ function cov_13lrfxjoky() {
64497
64497
  column: 24
64498
64498
  },
64499
64499
  end: {
64500
- line: 118,
64500
+ line: 119,
64501
64501
  column: 3
64502
64502
  }
64503
64503
  },
@@ -64517,7 +64517,7 @@ function cov_13lrfxjoky() {
64517
64517
  column: 4
64518
64518
  },
64519
64519
  end: {
64520
- line: 112,
64520
+ line: 113,
64521
64521
  column: 5
64522
64522
  }
64523
64523
  },
@@ -64528,7 +64528,7 @@ function cov_13lrfxjoky() {
64528
64528
  },
64529
64529
  end: {
64530
64530
  line: 110,
64531
- column: 29
64531
+ column: 30
64532
64532
  }
64533
64533
  },
64534
64534
  "39": {
@@ -64538,27 +64538,27 @@ function cov_13lrfxjoky() {
64538
64538
  },
64539
64539
  end: {
64540
64540
  line: 111,
64541
- column: 16
64541
+ column: 29
64542
64542
  }
64543
64543
  },
64544
64544
  "40": {
64545
64545
  start: {
64546
- line: 114,
64547
- column: 4
64546
+ line: 112,
64547
+ column: 6
64548
64548
  },
64549
64549
  end: {
64550
- line: 117,
64551
- column: 5
64550
+ line: 112,
64551
+ column: 16
64552
64552
  }
64553
64553
  },
64554
64554
  "41": {
64555
64555
  start: {
64556
64556
  line: 115,
64557
- column: 6
64557
+ column: 4
64558
64558
  },
64559
64559
  end: {
64560
- line: 115,
64561
- column: 27
64560
+ line: 118,
64561
+ column: 5
64562
64562
  }
64563
64563
  },
64564
64564
  "42": {
@@ -64568,86 +64568,96 @@ function cov_13lrfxjoky() {
64568
64568
  },
64569
64569
  end: {
64570
64570
  line: 116,
64571
- column: 25
64571
+ column: 27
64572
64572
  }
64573
64573
  },
64574
64574
  "43": {
64575
64575
  start: {
64576
- line: 120,
64576
+ line: 117,
64577
+ column: 6
64578
+ },
64579
+ end: {
64580
+ line: 117,
64581
+ column: 25
64582
+ }
64583
+ },
64584
+ "44": {
64585
+ start: {
64586
+ line: 121,
64577
64587
  column: 2
64578
64588
  },
64579
64589
  end: {
64580
- line: 201,
64590
+ line: 202,
64581
64591
  column: 4
64582
64592
  }
64583
64593
  },
64584
- "44": {
64594
+ "45": {
64585
64595
  start: {
64586
- line: 134,
64596
+ line: 135,
64587
64597
  column: 18
64588
64598
  },
64589
64599
  end: {
64590
- line: 137,
64600
+ line: 138,
64591
64601
  column: 20
64592
64602
  }
64593
64603
  },
64594
- "45": {
64604
+ "46": {
64595
64605
  start: {
64596
- line: 146,
64606
+ line: 147,
64597
64607
  column: 29
64598
64608
  },
64599
64609
  end: {
64600
- line: 146,
64610
+ line: 147,
64601
64611
  column: 49
64602
64612
  }
64603
64613
  },
64604
- "46": {
64614
+ "47": {
64605
64615
  start: {
64606
- line: 153,
64616
+ line: 154,
64607
64617
  column: 29
64608
64618
  },
64609
64619
  end: {
64610
- line: 153,
64620
+ line: 154,
64611
64621
  column: 62
64612
64622
  }
64613
64623
  },
64614
- "47": {
64624
+ "48": {
64615
64625
  start: {
64616
- line: 159,
64626
+ line: 160,
64617
64627
  column: 33
64618
64628
  },
64619
64629
  end: {
64620
- line: 159,
64630
+ line: 160,
64621
64631
  column: 66
64622
64632
  }
64623
64633
  },
64624
- "48": {
64634
+ "49": {
64625
64635
  start: {
64626
- line: 178,
64636
+ line: 179,
64627
64637
  column: 20
64628
64638
  },
64629
64639
  end: {
64630
- line: 184,
64640
+ line: 185,
64631
64641
  column: 38
64632
64642
  }
64633
64643
  },
64634
- "49": {
64644
+ "50": {
64635
64645
  start: {
64636
- line: 181,
64646
+ line: 182,
64637
64647
  column: 37
64638
64648
  },
64639
64649
  end: {
64640
- line: 181,
64650
+ line: 182,
64641
64651
  column: 77
64642
64652
  }
64643
64653
  },
64644
- "50": {
64654
+ "51": {
64645
64655
  start: {
64646
- line: 197,
64656
+ line: 198,
64647
64657
  column: 23
64648
64658
  },
64649
64659
  end: {
64650
- line: 197,
64660
+ line: 198,
64651
64661
  column: 50
64652
64662
  }
64653
64663
  }
@@ -64671,7 +64681,7 @@ function cov_13lrfxjoky() {
64671
64681
  column: 6
64672
64682
  },
64673
64683
  end: {
64674
- line: 202,
64684
+ line: 203,
64675
64685
  column: 1
64676
64686
  }
64677
64687
  },
@@ -64815,7 +64825,7 @@ function cov_13lrfxjoky() {
64815
64825
  column: 44
64816
64826
  },
64817
64827
  end: {
64818
- line: 118,
64828
+ line: 119,
64819
64829
  column: 3
64820
64830
  }
64821
64831
  },
@@ -64825,169 +64835,169 @@ function cov_13lrfxjoky() {
64825
64835
  name: "(anonymous_7)",
64826
64836
  decl: {
64827
64837
  start: {
64828
- line: 133,
64838
+ line: 134,
64829
64839
  column: 27
64830
64840
  },
64831
64841
  end: {
64832
- line: 133,
64842
+ line: 134,
64833
64843
  column: 28
64834
64844
  }
64835
64845
  },
64836
64846
  loc: {
64837
64847
  start: {
64838
- line: 134,
64848
+ line: 135,
64839
64849
  column: 18
64840
64850
  },
64841
64851
  end: {
64842
- line: 137,
64852
+ line: 138,
64843
64853
  column: 20
64844
64854
  }
64845
64855
  },
64846
- line: 134
64856
+ line: 135
64847
64857
  },
64848
64858
  "8": {
64849
64859
  name: "(anonymous_8)",
64850
64860
  decl: {
64851
64861
  start: {
64852
- line: 146,
64862
+ line: 147,
64853
64863
  column: 23
64854
64864
  },
64855
64865
  end: {
64856
- line: 146,
64866
+ line: 147,
64857
64867
  column: 24
64858
64868
  }
64859
64869
  },
64860
64870
  loc: {
64861
64871
  start: {
64862
- line: 146,
64872
+ line: 147,
64863
64873
  column: 29
64864
64874
  },
64865
64875
  end: {
64866
- line: 146,
64876
+ line: 147,
64867
64877
  column: 49
64868
64878
  }
64869
64879
  },
64870
- line: 146
64880
+ line: 147
64871
64881
  },
64872
64882
  "9": {
64873
64883
  name: "(anonymous_9)",
64874
64884
  decl: {
64875
64885
  start: {
64876
- line: 153,
64886
+ line: 154,
64877
64887
  column: 23
64878
64888
  },
64879
64889
  end: {
64880
- line: 153,
64890
+ line: 154,
64881
64891
  column: 24
64882
64892
  }
64883
64893
  },
64884
64894
  loc: {
64885
64895
  start: {
64886
- line: 153,
64896
+ line: 154,
64887
64897
  column: 29
64888
64898
  },
64889
64899
  end: {
64890
- line: 153,
64900
+ line: 154,
64891
64901
  column: 62
64892
64902
  }
64893
64903
  },
64894
- line: 153
64904
+ line: 154
64895
64905
  },
64896
64906
  "10": {
64897
64907
  name: "(anonymous_10)",
64898
64908
  decl: {
64899
64909
  start: {
64900
- line: 159,
64910
+ line: 160,
64901
64911
  column: 27
64902
64912
  },
64903
64913
  end: {
64904
- line: 159,
64914
+ line: 160,
64905
64915
  column: 28
64906
64916
  }
64907
64917
  },
64908
64918
  loc: {
64909
64919
  start: {
64910
- line: 159,
64920
+ line: 160,
64911
64921
  column: 33
64912
64922
  },
64913
64923
  end: {
64914
- line: 159,
64924
+ line: 160,
64915
64925
  column: 66
64916
64926
  }
64917
64927
  },
64918
- line: 159
64928
+ line: 160
64919
64929
  },
64920
64930
  "11": {
64921
64931
  name: "(anonymous_11)",
64922
64932
  decl: {
64923
64933
  start: {
64924
- line: 177,
64934
+ line: 178,
64925
64935
  column: 48
64926
64936
  },
64927
64937
  end: {
64928
- line: 177,
64938
+ line: 178,
64929
64939
  column: 49
64930
64940
  }
64931
64941
  },
64932
64942
  loc: {
64933
64943
  start: {
64934
- line: 178,
64944
+ line: 179,
64935
64945
  column: 20
64936
64946
  },
64937
64947
  end: {
64938
- line: 184,
64948
+ line: 185,
64939
64949
  column: 38
64940
64950
  }
64941
64951
  },
64942
- line: 178
64952
+ line: 179
64943
64953
  },
64944
64954
  "12": {
64945
64955
  name: "(anonymous_12)",
64946
64956
  decl: {
64947
64957
  start: {
64948
- line: 181,
64958
+ line: 182,
64949
64959
  column: 31
64950
64960
  },
64951
64961
  end: {
64952
- line: 181,
64962
+ line: 182,
64953
64963
  column: 32
64954
64964
  }
64955
64965
  },
64956
64966
  loc: {
64957
64967
  start: {
64958
- line: 181,
64968
+ line: 182,
64959
64969
  column: 37
64960
64970
  },
64961
64971
  end: {
64962
- line: 181,
64972
+ line: 182,
64963
64973
  column: 77
64964
64974
  }
64965
64975
  },
64966
- line: 181
64976
+ line: 182
64967
64977
  },
64968
64978
  "13": {
64969
64979
  name: "(anonymous_13)",
64970
64980
  decl: {
64971
64981
  start: {
64972
- line: 197,
64982
+ line: 198,
64973
64983
  column: 17
64974
64984
  },
64975
64985
  end: {
64976
- line: 197,
64986
+ line: 198,
64977
64987
  column: 18
64978
64988
  }
64979
64989
  },
64980
64990
  loc: {
64981
64991
  start: {
64982
- line: 197,
64992
+ line: 198,
64983
64993
  column: 23
64984
64994
  },
64985
64995
  end: {
64986
- line: 197,
64996
+ line: 198,
64987
64997
  column: 50
64988
64998
  }
64989
64999
  },
64990
- line: 197
65000
+ line: 198
64991
65001
  }
64992
65002
  },
64993
65003
  branchMap: {
@@ -65097,7 +65107,7 @@ function cov_13lrfxjoky() {
65097
65107
  column: 4
65098
65108
  },
65099
65109
  end: {
65100
- line: 112,
65110
+ line: 113,
65101
65111
  column: 5
65102
65112
  }
65103
65113
  },
@@ -65108,7 +65118,7 @@ function cov_13lrfxjoky() {
65108
65118
  column: 4
65109
65119
  },
65110
65120
  end: {
65111
- line: 112,
65121
+ line: 113,
65112
65122
  column: 5
65113
65123
  }
65114
65124
  }, {
@@ -65168,22 +65178,22 @@ function cov_13lrfxjoky() {
65168
65178
  "5": {
65169
65179
  loc: {
65170
65180
  start: {
65171
- line: 114,
65181
+ line: 115,
65172
65182
  column: 4
65173
65183
  },
65174
65184
  end: {
65175
- line: 117,
65185
+ line: 118,
65176
65186
  column: 5
65177
65187
  }
65178
65188
  },
65179
65189
  type: "if",
65180
65190
  locations: [{
65181
65191
  start: {
65182
- line: 114,
65192
+ line: 115,
65183
65193
  column: 4
65184
65194
  },
65185
65195
  end: {
65186
- line: 117,
65196
+ line: 118,
65187
65197
  column: 5
65188
65198
  }
65189
65199
  }, {
@@ -65196,73 +65206,73 @@ function cov_13lrfxjoky() {
65196
65206
  column: undefined
65197
65207
  }
65198
65208
  }],
65199
- line: 114
65209
+ line: 115
65200
65210
  },
65201
65211
  "6": {
65202
65212
  loc: {
65203
65213
  start: {
65204
- line: 123,
65214
+ line: 124,
65205
65215
  column: 9
65206
65216
  },
65207
65217
  end: {
65208
- line: 190,
65218
+ line: 191,
65209
65219
  column: 9
65210
65220
  }
65211
65221
  },
65212
65222
  type: "cond-expr",
65213
65223
  locations: [{
65214
65224
  start: {
65215
- line: 124,
65225
+ line: 125,
65216
65226
  column: 10
65217
65227
  },
65218
65228
  end: {
65219
- line: 148,
65229
+ line: 149,
65220
65230
  column: 13
65221
65231
  }
65222
65232
  }, {
65223
65233
  start: {
65224
- line: 150,
65234
+ line: 151,
65225
65235
  column: 10
65226
65236
  },
65227
65237
  end: {
65228
- line: 189,
65238
+ line: 190,
65229
65239
  column: 13
65230
65240
  }
65231
65241
  }],
65232
- line: 123
65242
+ line: 124
65233
65243
  },
65234
65244
  "7": {
65235
65245
  loc: {
65236
65246
  start: {
65237
- line: 129,
65247
+ line: 130,
65238
65248
  column: 23
65239
65249
  },
65240
65250
  end: {
65241
- line: 129,
65251
+ line: 130,
65242
65252
  column: 77
65243
65253
  }
65244
65254
  },
65245
65255
  type: "cond-expr",
65246
65256
  locations: [{
65247
65257
  start: {
65248
- line: 129,
65258
+ line: 130,
65249
65259
  column: 46
65250
65260
  },
65251
65261
  end: {
65252
- line: 129,
65262
+ line: 130,
65253
65263
  column: 72
65254
65264
  }
65255
65265
  }, {
65256
65266
  start: {
65257
- line: 129,
65267
+ line: 130,
65258
65268
  column: 75
65259
65269
  },
65260
65270
  end: {
65261
- line: 129,
65271
+ line: 130,
65262
65272
  column: 77
65263
65273
  }
65264
65274
  }],
65265
- line: 129
65275
+ line: 130
65266
65276
  }
65267
65277
  },
65268
65278
  s: {
@@ -65316,7 +65326,8 @@ function cov_13lrfxjoky() {
65316
65326
  "47": 0,
65317
65327
  "48": 0,
65318
65328
  "49": 0,
65319
- "50": 0
65329
+ "50": 0,
65330
+ "51": 0
65320
65331
  },
65321
65332
  f: {
65322
65333
  "0": 0,
@@ -65345,7 +65356,7 @@ function cov_13lrfxjoky() {
65345
65356
  "7": [0, 0]
65346
65357
  },
65347
65358
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
65348
- hash: "f96202c70edce570b6b5a8538ab7a4aec794637a"
65359
+ hash: "c8d8c5409e33c0473cbf6f816e4b217990caf4ad"
65349
65360
  };
65350
65361
  var coverage = global[gcv] || (global[gcv] = {});
65351
65362
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -65533,24 +65544,26 @@ var Attachment = function Attachment(_ref2) {
65533
65544
  if ((cov_13lrfxjoky().b[4][0]++, event.key === "Enter") && (cov_13lrfxjoky().b[4][1]++, handler) && (cov_13lrfxjoky().b[4][2]++, !ramda.isEmpty(newFilename))) {
65534
65545
  cov_13lrfxjoky().b[3][0]++;
65535
65546
  cov_13lrfxjoky().s[38]++;
65536
- event.preventDefault();
65547
+ event.stopPropagation();
65537
65548
  cov_13lrfxjoky().s[39]++;
65549
+ event.preventDefault();
65550
+ cov_13lrfxjoky().s[40]++;
65538
65551
  handler();
65539
65552
  } else {
65540
65553
  cov_13lrfxjoky().b[3][1]++;
65541
65554
  }
65542
- cov_13lrfxjoky().s[40]++;
65555
+ cov_13lrfxjoky().s[41]++;
65543
65556
  if (event.key === "Escape") {
65544
65557
  cov_13lrfxjoky().b[5][0]++;
65545
- cov_13lrfxjoky().s[41]++;
65546
- setIsRenaming(false);
65547
65558
  cov_13lrfxjoky().s[42]++;
65559
+ setIsRenaming(false);
65560
+ cov_13lrfxjoky().s[43]++;
65548
65561
  setNewFilename("");
65549
65562
  } else {
65550
65563
  cov_13lrfxjoky().b[5][1]++;
65551
65564
  }
65552
65565
  };
65553
- cov_13lrfxjoky().s[43]++;
65566
+ cov_13lrfxjoky().s[44]++;
65554
65567
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
65555
65568
  className: "ne-attachments__preview"
65556
65569
  }, isRenaming ? (cov_13lrfxjoky().b[6][0]++, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
@@ -65565,7 +65578,7 @@ var Attachment = function Attachment(_ref2) {
65565
65578
  onChange: utils.withEventTargetValue(setNewFilename),
65566
65579
  onKeyDown: function onKeyDown(event) {
65567
65580
  cov_13lrfxjoky().f[7]++;
65568
- cov_13lrfxjoky().s[44]++;
65581
+ cov_13lrfxjoky().s[45]++;
65569
65582
  return handleKeyDown({
65570
65583
  event: event,
65571
65584
  key: ATTACHMENT_OPTIONS.RENAME
@@ -65578,14 +65591,14 @@ var Attachment = function Attachment(_ref2) {
65578
65591
  style: "text",
65579
65592
  onClick: function onClick() {
65580
65593
  cov_13lrfxjoky().f[8]++;
65581
- cov_13lrfxjoky().s[45]++;
65594
+ cov_13lrfxjoky().s[46]++;
65582
65595
  return setIsRenaming(false);
65583
65596
  }
65584
65597
  }))) : (cov_13lrfxjoky().b[6][1]++, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
65585
65598
  className: "ne-attachments__preview-wrapper",
65586
65599
  onClick: function onClick() {
65587
65600
  cov_13lrfxjoky().f[9]++;
65588
- cov_13lrfxjoky().s[46]++;
65601
+ cov_13lrfxjoky().s[47]++;
65589
65602
  return setSelectedAttachment(attachment);
65590
65603
  }
65591
65604
  }, /*#__PURE__*/React__default["default"].createElement(File$1, {
@@ -65597,7 +65610,7 @@ var Attachment = function Attachment(_ref2) {
65597
65610
  style: "body2",
65598
65611
  onClick: function onClick() {
65599
65612
  cov_13lrfxjoky().f[10]++;
65600
- cov_13lrfxjoky().s[47]++;
65613
+ cov_13lrfxjoky().s[48]++;
65601
65614
  return setSelectedAttachment(attachment);
65602
65615
  }
65603
65616
  }, attachment.filename))), /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
@@ -65614,13 +65627,13 @@ var Attachment = function Attachment(_ref2) {
65614
65627
  label = _ref21[0],
65615
65628
  handler = _ref21[1];
65616
65629
  cov_13lrfxjoky().f[11]++;
65617
- cov_13lrfxjoky().s[48]++;
65630
+ cov_13lrfxjoky().s[49]++;
65618
65631
  return /*#__PURE__*/React__default["default"].createElement(MenuItem$2.Button, {
65619
65632
  "data-cy": "neeto-editor-preview-".concat(label.toLowerCase(), "-button"),
65620
65633
  key: label,
65621
65634
  onClick: function onClick() {
65622
65635
  cov_13lrfxjoky().f[12]++;
65623
- cov_13lrfxjoky().s[49]++;
65636
+ cov_13lrfxjoky().s[50]++;
65624
65637
  return onMenuItemClick({
65625
65638
  key: label,
65626
65639
  handler: handler
@@ -65636,7 +65649,7 @@ var Attachment = function Attachment(_ref2) {
65636
65649
  title: t("attachments.deleteTitle"),
65637
65650
  onClose: function onClose() {
65638
65651
  cov_13lrfxjoky().f[13]++;
65639
- cov_13lrfxjoky().s[50]++;
65652
+ cov_13lrfxjoky().s[51]++;
65640
65653
  return setIsDeleteAlertOpen(false);
65641
65654
  },
65642
65655
  onSubmit: handleDelete
@@ -104948,7 +104961,7 @@ var EmojiSuggestion$1 = EmojiSuggestion.configure({
104948
104961
 
104949
104962
  function cov_1rrokgc9k1() {
104950
104963
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ImageComponent.jsx";
104951
- var hash = "74d839e2206cce222a1ad134702eac6ef0c0dee7";
104964
+ var hash = "7931a267144e038d9242914e1ff6f4c79984799f";
104952
104965
  var global = new Function("return this")();
104953
104966
  var gcv = "__coverage__";
104954
104967
  var coverageData = {
@@ -104960,117 +104973,137 @@ function cov_1rrokgc9k1() {
104960
104973
  column: 23
104961
104974
  },
104962
104975
  end: {
104963
- line: 76,
104976
+ line: 83,
104964
104977
  column: 1
104965
104978
  }
104966
104979
  },
104967
104980
  "1": {
104968
104981
  start: {
104969
104982
  line: 18,
104970
- column: 20
104983
+ column: 51
104971
104984
  },
104972
104985
  end: {
104973
104986
  line: 18,
104974
- column: 32
104987
+ column: 61
104975
104988
  }
104976
104989
  },
104977
104990
  "2": {
104978
104991
  start: {
104979
104992
  line: 20,
104980
- column: 51
104993
+ column: 42
104981
104994
  },
104982
104995
  end: {
104983
104996
  line: 20,
104984
- column: 61
104997
+ column: 65
104985
104998
  }
104986
104999
  },
104987
105000
  "3": {
104988
105001
  start: {
104989
- line: 21,
105002
+ line: 22,
105003
+ column: 20
105004
+ },
105005
+ end: {
105006
+ line: 22,
105007
+ column: 32
105008
+ }
105009
+ },
105010
+ "4": {
105011
+ start: {
105012
+ line: 24,
104990
105013
  column: 19
104991
105014
  },
104992
105015
  end: {
104993
- line: 21,
105016
+ line: 24,
104994
105017
  column: 25
104995
105018
  }
104996
105019
  },
104997
- "4": {
105020
+ "5": {
104998
105021
  start: {
104999
- line: 22,
105022
+ line: 25,
105000
105023
  column: 15
105001
105024
  },
105002
105025
  end: {
105003
- line: 22,
105026
+ line: 25,
105004
105027
  column: 24
105005
105028
  }
105006
105029
  },
105007
- "5": {
105030
+ "6": {
105008
105031
  start: {
105009
- line: 23,
105032
+ line: 26,
105010
105033
  column: 14
105011
105034
  },
105012
105035
  end: {
105013
- line: 23,
105036
+ line: 26,
105014
105037
  column: 22
105015
105038
  }
105016
105039
  },
105017
- "6": {
105040
+ "7": {
105018
105041
  start: {
105019
- line: 24,
105042
+ line: 27,
105020
105043
  column: 18
105021
105044
  },
105022
105045
  end: {
105023
- line: 26,
105046
+ line: 29,
105024
105047
  column: 9
105025
105048
  }
105026
105049
  },
105027
- "7": {
105050
+ "8": {
105028
105051
  start: {
105029
- line: 28,
105052
+ line: 31,
105030
105053
  column: 2
105031
105054
  },
105032
105055
  end: {
105033
- line: 75,
105056
+ line: 82,
105034
105057
  column: 4
105035
105058
  }
105036
105059
  },
105037
- "8": {
105060
+ "9": {
105038
105061
  start: {
105039
- line: 45,
105062
+ line: 48,
105040
105063
  column: 14
105041
105064
  },
105042
105065
  end: {
105043
- line: 45,
105066
+ line: 48,
105067
+ column: 46
105068
+ }
105069
+ },
105070
+ "10": {
105071
+ start: {
105072
+ line: 51,
105073
+ column: 14
105074
+ },
105075
+ end: {
105076
+ line: 51,
105044
105077
  column: 40
105045
105078
  }
105046
105079
  },
105047
- "9": {
105080
+ "11": {
105048
105081
  start: {
105049
- line: 46,
105082
+ line: 52,
105050
105083
  column: 14
105051
105084
  },
105052
105085
  end: {
105053
- line: 46,
105086
+ line: 52,
105054
105087
  column: 38
105055
105088
  }
105056
105089
  },
105057
- "10": {
105090
+ "12": {
105058
105091
  start: {
105059
- line: 47,
105092
+ line: 53,
105060
105093
  column: 14
105061
105094
  },
105062
105095
  end: {
105063
- line: 58,
105096
+ line: 64,
105064
105097
  column: 16
105065
105098
  }
105066
105099
  },
105067
- "11": {
105100
+ "13": {
105068
105101
  start: {
105069
- line: 59,
105102
+ line: 65,
105070
105103
  column: 14
105071
105104
  },
105072
105105
  end: {
105073
- line: 59,
105106
+ line: 65,
105074
105107
  column: 38
105075
105108
  }
105076
105109
  }
@@ -105094,7 +105127,7 @@ function cov_1rrokgc9k1() {
105094
105127
  column: 6
105095
105128
  },
105096
105129
  end: {
105097
- line: 76,
105130
+ line: 83,
105098
105131
  column: 1
105099
105132
  }
105100
105133
  },
@@ -105104,93 +105137,150 @@ function cov_1rrokgc9k1() {
105104
105137
  name: "(anonymous_1)",
105105
105138
  decl: {
105106
105139
  start: {
105107
- line: 44,
105140
+ line: 47,
105141
+ column: 22
105142
+ },
105143
+ end: {
105144
+ line: 47,
105145
+ column: 23
105146
+ }
105147
+ },
105148
+ loc: {
105149
+ start: {
105150
+ line: 48,
105151
+ column: 14
105152
+ },
105153
+ end: {
105154
+ line: 48,
105155
+ column: 46
105156
+ }
105157
+ },
105158
+ line: 48
105159
+ },
105160
+ "2": {
105161
+ name: "(anonymous_2)",
105162
+ decl: {
105163
+ start: {
105164
+ line: 50,
105108
105165
  column: 26
105109
105166
  },
105110
105167
  end: {
105111
- line: 44,
105168
+ line: 50,
105112
105169
  column: 27
105113
105170
  }
105114
105171
  },
105115
105172
  loc: {
105116
105173
  start: {
105117
- line: 44,
105174
+ line: 50,
105118
105175
  column: 55
105119
105176
  },
105120
105177
  end: {
105121
- line: 60,
105178
+ line: 66,
105122
105179
  column: 13
105123
105180
  }
105124
105181
  },
105125
- line: 44
105182
+ line: 50
105126
105183
  }
105127
105184
  },
105128
105185
  branchMap: {
105129
105186
  "0": {
105130
105187
  loc: {
105131
105188
  start: {
105132
- line: 24,
105189
+ line: 20,
105190
+ column: 51
105191
+ },
105192
+ end: {
105193
+ line: 20,
105194
+ column: 64
105195
+ }
105196
+ },
105197
+ type: "binary-expr",
105198
+ locations: [{
105199
+ start: {
105200
+ line: 20,
105201
+ column: 51
105202
+ },
105203
+ end: {
105204
+ line: 20,
105205
+ column: 59
105206
+ }
105207
+ }, {
105208
+ start: {
105209
+ line: 20,
105210
+ column: 63
105211
+ },
105212
+ end: {
105213
+ line: 20,
105214
+ column: 64
105215
+ }
105216
+ }],
105217
+ line: 20
105218
+ },
105219
+ "1": {
105220
+ loc: {
105221
+ start: {
105222
+ line: 27,
105133
105223
  column: 18
105134
105224
  },
105135
105225
  end: {
105136
- line: 26,
105226
+ line: 29,
105137
105227
  column: 9
105138
105228
  }
105139
105229
  },
105140
105230
  type: "cond-expr",
105141
105231
  locations: [{
105142
105232
  start: {
105143
- line: 25,
105233
+ line: 28,
105144
105234
  column: 6
105145
105235
  },
105146
105236
  end: {
105147
- line: 25,
105237
+ line: 28,
105148
105238
  column: 68
105149
105239
  }
105150
105240
  }, {
105151
105241
  start: {
105152
- line: 26,
105242
+ line: 29,
105153
105243
  column: 6
105154
105244
  },
105155
105245
  end: {
105156
- line: 26,
105246
+ line: 29,
105157
105247
  column: 9
105158
105248
  }
105159
105249
  }],
105160
- line: 24
105250
+ line: 27
105161
105251
  },
105162
- "1": {
105252
+ "2": {
105163
105253
  loc: {
105164
105254
  start: {
105165
- line: 39,
105255
+ line: 42,
105166
105256
  column: 9
105167
105257
  },
105168
105258
  end: {
105169
- line: 68,
105259
+ line: 74,
105170
105260
  column: 9
105171
105261
  }
105172
105262
  },
105173
105263
  type: "cond-expr",
105174
105264
  locations: [{
105175
105265
  start: {
105176
- line: 40,
105266
+ line: 43,
105177
105267
  column: 10
105178
105268
  },
105179
105269
  end: {
105180
- line: 63,
105270
+ line: 69,
105181
105271
  column: 22
105182
105272
  }
105183
105273
  }, {
105184
105274
  start: {
105185
- line: 65,
105275
+ line: 71,
105186
105276
  column: 10
105187
105277
  },
105188
105278
  end: {
105189
- line: 67,
105279
+ line: 73,
105190
105280
  column: 16
105191
105281
  }
105192
105282
  }],
105193
- line: 39
105283
+ line: 42
105194
105284
  }
105195
105285
  },
105196
105286
  s: {
@@ -105205,18 +105295,22 @@ function cov_1rrokgc9k1() {
105205
105295
  "8": 0,
105206
105296
  "9": 0,
105207
105297
  "10": 0,
105208
- "11": 0
105298
+ "11": 0,
105299
+ "12": 0,
105300
+ "13": 0
105209
105301
  },
105210
105302
  f: {
105211
105303
  "0": 0,
105212
- "1": 0
105304
+ "1": 0,
105305
+ "2": 0
105213
105306
  },
105214
105307
  b: {
105215
105308
  "0": [0, 0],
105216
- "1": [0, 0]
105309
+ "1": [0, 0],
105310
+ "2": [0, 0]
105217
105311
  },
105218
105312
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
105219
- hash: "74d839e2206cce222a1ad134702eac6ef0c0dee7"
105313
+ hash: "7931a267144e038d9242914e1ff6f4c79984799f"
105220
105314
  };
105221
105315
  var coverage = global[gcv] || (global[gcv] = {});
105222
105316
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -105241,19 +105335,23 @@ var ImageComponent = function ImageComponent(_ref) {
105241
105335
  updateAttributes = _ref.updateAttributes,
105242
105336
  deleteNode = _ref.deleteNode;
105243
105337
  cov_1rrokgc9k1().f[0]++;
105244
- var figureRef = (cov_1rrokgc9k1().s[1]++, React$6.useRef(null));
105245
- var _ref2 = (cov_1rrokgc9k1().s[2]++, node.attrs),
105338
+ var _ref2 = (cov_1rrokgc9k1().s[1]++, node.attrs),
105246
105339
  alt = _ref2.alt,
105247
105340
  src = _ref2.src,
105248
105341
  figheight = _ref2.figheight,
105249
105342
  figwidth = _ref2.figwidth,
105250
105343
  align = _ref2.align;
105251
- var _ref3 = (cov_1rrokgc9k1().s[3]++, editor),
105252
- view = _ref3.view;
105253
- var height = (cov_1rrokgc9k1().s[4]++, figheight);
105254
- var width = (cov_1rrokgc9k1().s[5]++, figwidth);
105255
- 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));
105256
- cov_1rrokgc9k1().s[7]++;
105344
+ var _ref3 = (cov_1rrokgc9k1().s[2]++, React$6.useState((cov_1rrokgc9k1().b[0][0]++, figwidth) || (cov_1rrokgc9k1().b[0][1]++, 0))),
105345
+ _ref4 = _slicedToArray(_ref3, 2),
105346
+ captionWidth = _ref4[0],
105347
+ setCaptionWidth = _ref4[1];
105348
+ var figureRef = (cov_1rrokgc9k1().s[3]++, React$6.useRef(null));
105349
+ var _ref5 = (cov_1rrokgc9k1().s[4]++, editor),
105350
+ view = _ref5.view;
105351
+ var height = (cov_1rrokgc9k1().s[5]++, figheight);
105352
+ var width = (cov_1rrokgc9k1().s[6]++, figwidth);
105353
+ 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));
105354
+ cov_1rrokgc9k1().s[8]++;
105257
105355
  return /*#__PURE__*/React__default["default"].createElement(NodeViewWrapper, {
105258
105356
  className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align)
105259
105357
  }, /*#__PURE__*/React__default["default"].createElement("figure", {
@@ -105263,46 +105361,54 @@ var ImageComponent = function ImageComponent(_ref) {
105263
105361
  deleteNode: deleteNode,
105264
105362
  editor: editor,
105265
105363
  updateAttributes: updateAttributes
105266
- }), src ? (cov_1rrokgc9k1().b[1][0]++, /*#__PURE__*/React__default["default"].createElement(Resizable, {
105364
+ }), src ? (cov_1rrokgc9k1().b[2][0]++, /*#__PURE__*/React__default["default"].createElement(Resizable, {
105267
105365
  lockAspectRatio: true,
105268
105366
  className: "neeto-editor__image",
105269
105367
  size: {
105270
105368
  height: height,
105271
105369
  width: width
105272
105370
  },
105273
- onResizeStop: function onResizeStop(_event, _direction, ref) {
105371
+ onResize: function onResize(_event, _direction, ref) {
105274
105372
  cov_1rrokgc9k1().f[1]++;
105275
- cov_1rrokgc9k1().s[8]++;
105276
- height = ref.offsetHeight;
105277
105373
  cov_1rrokgc9k1().s[9]++;
105278
- width = ref.offsetWidth;
105374
+ return setCaptionWidth(ref.offsetWidth);
105375
+ },
105376
+ onResizeStop: function onResizeStop(_event, _direction, ref) {
105377
+ cov_1rrokgc9k1().f[2]++;
105279
105378
  cov_1rrokgc9k1().s[10]++;
105379
+ height = ref.offsetHeight;
105380
+ cov_1rrokgc9k1().s[11]++;
105381
+ width = ref.offsetWidth;
105382
+ cov_1rrokgc9k1().s[12]++;
105280
105383
  view.dispatch(view.state.tr.setNodeMarkup(getPos(), undefined, ramda.mergeRight(node.attrs, {
105281
105384
  figheight: height,
105282
105385
  figwidth: width,
105283
105386
  height: height,
105284
105387
  width: width
105285
105388
  })));
105286
- cov_1rrokgc9k1().s[11]++;
105389
+ cov_1rrokgc9k1().s[13]++;
105287
105390
  editor.commands.focus();
105288
105391
  }
105289
105392
  }, /*#__PURE__*/React__default["default"].createElement("img", _extends$2({}, node.attrs, {
105290
105393
  alt: caption,
105291
105394
  src: src
105292
- })))) : (cov_1rrokgc9k1().b[1][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
105395
+ })))) : (cov_1rrokgc9k1().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
105293
105396
  className: "neeto-editor__image-placeholder"
105294
105397
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null))), /*#__PURE__*/React__default["default"].createElement(NodeViewContent, {
105295
105398
  as: "figcaption",
105296
105399
  className: classnames$2({
105297
105400
  "is-empty": ramda.isEmpty(caption)
105298
- })
105401
+ }),
105402
+ style: {
105403
+ width: "".concat(captionWidth, "px")
105404
+ }
105299
105405
  })));
105300
105406
  };
105301
105407
 
105302
105408
  var _excluded$9 = ["caption"];
105303
105409
  function cov_ksv9azglk() {
105304
105410
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ExtensionConfig.js";
105305
- var hash = "6363243ced583b4bf6b9f147bfa510bedcc0246b";
105411
+ var hash = "ce242fed07b10fc4df7c01982eda2c3b9055467f";
105306
105412
  var global = new Function("return this")();
105307
105413
  var gcv = "__coverage__";
105308
105414
  var coverageData = {
@@ -105314,7 +105420,7 @@ function cov_ksv9azglk() {
105314
105420
  column: 23
105315
105421
  },
105316
105422
  end: {
105317
- line: 132,
105423
+ line: 134,
105318
105424
  column: 2
105319
105425
  }
105320
105426
  },
@@ -105441,360 +105547,370 @@ function cov_ksv9azglk() {
105441
105547
  "13": {
105442
105548
  start: {
105443
105549
  line: 92,
105550
+ column: 25
105551
+ },
105552
+ end: {
105553
+ line: 92,
105554
+ column: 58
105555
+ }
105556
+ },
105557
+ "14": {
105558
+ start: {
105559
+ line: 94,
105444
105560
  column: 4
105445
105561
  },
105446
105562
  end: {
105447
- line: 111,
105563
+ line: 113,
105448
105564
  column: 6
105449
105565
  }
105450
105566
  },
105451
- "14": {
105567
+ "15": {
105452
105568
  start: {
105453
- line: 115,
105569
+ line: 117,
105454
105570
  column: 4
105455
105571
  },
105456
105572
  end: {
105457
- line: 115,
105573
+ line: 117,
105458
105574
  column: 49
105459
105575
  }
105460
105576
  },
105461
- "15": {
105577
+ "16": {
105462
105578
  start: {
105463
- line: 119,
105579
+ line: 121,
105464
105580
  column: 4
105465
105581
  },
105466
105582
  end: {
105467
- line: 130,
105583
+ line: 132,
105468
105584
  column: 6
105469
105585
  }
105470
105586
  },
105471
- "16": {
105587
+ "17": {
105472
105588
  start: {
105473
- line: 122,
105589
+ line: 124,
105474
105590
  column: 8
105475
105591
  },
105476
105592
  end: {
105477
- line: 129,
105593
+ line: 131,
105478
105594
  column: 18
105479
105595
  }
105480
105596
  },
105481
- "17": {
105597
+ "18": {
105482
105598
  start: {
105483
- line: 123,
105599
+ line: 125,
105484
105600
  column: 10
105485
105601
  },
105486
105602
  end: {
105487
- line: 129,
105603
+ line: 131,
105488
105604
  column: 18
105489
105605
  }
105490
105606
  },
105491
- "18": {
105607
+ "19": {
105492
105608
  start: {
105493
- line: 134,
105609
+ line: 136,
105494
105610
  column: 15
105495
105611
  },
105496
105612
  end: {
105497
- line: 146,
105613
+ line: 148,
105498
105614
  column: 1
105499
105615
  }
105500
105616
  },
105501
- "19": {
105617
+ "20": {
105502
105618
  start: {
105503
- line: 135,
105619
+ line: 137,
105504
105620
  column: 2
105505
105621
  },
105506
105622
  end: {
105507
- line: 140,
105623
+ line: 142,
105508
105624
  column: 3
105509
105625
  }
105510
105626
  },
105511
- "20": {
105627
+ "21": {
105512
105628
  start: {
105513
- line: 136,
105629
+ line: 138,
105514
105630
  column: 21
105515
105631
  },
105516
105632
  end: {
105517
- line: 136,
105633
+ line: 138,
105518
105634
  column: 52
105519
105635
  }
105520
105636
  },
105521
- "21": {
105637
+ "22": {
105522
105638
  start: {
105523
- line: 137,
105639
+ line: 139,
105524
105640
  column: 21
105525
105641
  },
105526
105642
  end: {
105527
- line: 137,
105643
+ line: 139,
105528
105644
  column: 44
105529
105645
  }
105530
105646
  },
105531
- "22": {
105647
+ "23": {
105532
105648
  start: {
105533
- line: 139,
105649
+ line: 141,
105534
105650
  column: 4
105535
105651
  },
105536
105652
  end: {
105537
- line: 139,
105653
+ line: 141,
105538
105654
  column: 56
105539
105655
  }
105540
105656
  },
105541
- "23": {
105657
+ "24": {
105542
105658
  start: {
105543
- line: 142,
105659
+ line: 144,
105544
105660
  column: 24
105545
105661
  },
105546
105662
  end: {
105547
- line: 142,
105663
+ line: 144,
105548
105664
  column: 54
105549
105665
  }
105550
105666
  },
105551
- "24": {
105667
+ "25": {
105552
105668
  start: {
105553
- line: 143,
105669
+ line: 145,
105554
105670
  column: 2
105555
105671
  },
105556
105672
  end: {
105557
- line: 143,
105673
+ line: 145,
105558
105674
  column: 77
105559
105675
  }
105560
105676
  },
105561
- "25": {
105677
+ "26": {
105562
105678
  start: {
105563
- line: 145,
105679
+ line: 147,
105564
105680
  column: 2
105565
105681
  },
105566
105682
  end: {
105567
- line: 145,
105683
+ line: 147,
105568
105684
  column: 12
105569
105685
  }
105570
105686
  },
105571
- "26": {
105687
+ "27": {
105572
105688
  start: {
105573
- line: 150,
105689
+ line: 152,
105574
105690
  column: 4
105575
105691
  },
105576
105692
  end: {
105577
- line: 203,
105693
+ line: 205,
105578
105694
  column: 6
105579
105695
  }
105580
105696
  },
105581
- "27": {
105697
+ "28": {
105582
105698
  start: {
105583
- line: 152,
105699
+ line: 154,
105584
105700
  column: 8
105585
105701
  },
105586
105702
  end: {
105587
- line: 201,
105703
+ line: 203,
105588
105704
  column: 10
105589
105705
  }
105590
105706
  },
105591
- "28": {
105707
+ "29": {
105592
105708
  start: {
105593
- line: 162,
105709
+ line: 164,
105594
105710
  column: 22
105595
105711
  },
105596
105712
  end: {
105597
- line: 162,
105713
+ line: 164,
105598
105714
  column: 32
105599
105715
  }
105600
105716
  },
105601
- "29": {
105717
+ "30": {
105602
105718
  start: {
105603
- line: 163,
105719
+ line: 165,
105604
105720
  column: 35
105605
105721
  },
105606
105722
  end: {
105607
- line: 163,
105723
+ line: 165,
105608
105724
  column: 69
105609
105725
  }
105610
105726
  },
105611
- "30": {
105727
+ "31": {
105612
105728
  start: {
105613
- line: 165,
105729
+ line: 167,
105614
105730
  column: 18
105615
105731
  },
105616
105732
  end: {
105617
- line: 165,
105733
+ line: 167,
105618
105734
  column: 40
105619
105735
  }
105620
105736
  },
105621
- "31": {
105737
+ "32": {
105622
105738
  start: {
105623
- line: 165,
105739
+ line: 167,
105624
105740
  column: 33
105625
105741
  },
105626
105742
  end: {
105627
- line: 165,
105743
+ line: 167,
105628
105744
  column: 40
105629
105745
  }
105630
105746
  },
105631
- "32": {
105747
+ "33": {
105632
105748
  start: {
105633
- line: 167,
105749
+ line: 169,
105634
105750
  column: 33
105635
105751
  },
105636
105752
  end: {
105637
- line: 169,
105753
+ line: 171,
105638
105754
  column: 19
105639
105755
  }
105640
105756
  },
105641
- "33": {
105757
+ "34": {
105642
105758
  start: {
105643
- line: 168,
105759
+ line: 170,
105644
105760
  column: 28
105645
105761
  },
105646
105762
  end: {
105647
- line: 168,
105763
+ line: 170,
105648
105764
  column: 52
105649
105765
  }
105650
105766
  },
105651
- "34": {
105767
+ "35": {
105652
105768
  start: {
105653
- line: 171,
105769
+ line: 173,
105654
105770
  column: 18
105655
105771
  },
105656
105772
  end: {
105657
- line: 171,
105773
+ line: 173,
105658
105774
  column: 46
105659
105775
  }
105660
105776
  },
105661
- "35": {
105777
+ "36": {
105662
105778
  start: {
105663
- line: 171,
105779
+ line: 173,
105664
105780
  column: 39
105665
105781
  },
105666
105782
  end: {
105667
- line: 171,
105783
+ line: 173,
105668
105784
  column: 46
105669
105785
  }
105670
105786
  },
105671
- "36": {
105787
+ "37": {
105672
105788
  start: {
105673
- line: 173,
105789
+ line: 175,
105674
105790
  column: 18
105675
105791
  },
105676
105792
  end: {
105677
- line: 173,
105793
+ line: 175,
105678
105794
  column: 41
105679
105795
  }
105680
105796
  },
105681
- "37": {
105797
+ "38": {
105682
105798
  start: {
105683
- line: 175,
105799
+ line: 177,
105684
105800
  column: 18
105685
105801
  },
105686
105802
  end: {
105687
- line: 196,
105803
+ line: 198,
105688
105804
  column: 21
105689
105805
  }
105690
105806
  },
105691
- "38": {
105807
+ "39": {
105692
105808
  start: {
105693
- line: 176,
105809
+ line: 178,
105694
105810
  column: 31
105695
105811
  },
105696
105812
  end: {
105697
- line: 176,
105813
+ line: 178,
105698
105814
  column: 70
105699
105815
  }
105700
105816
  },
105701
- "39": {
105817
+ "40": {
105702
105818
  start: {
105703
- line: 177,
105819
+ line: 179,
105704
105820
  column: 33
105705
105821
  },
105706
105822
  end: {
105707
- line: 177,
105823
+ line: 179,
105708
105824
  column: 66
105709
105825
  }
105710
105826
  },
105711
- "40": {
105827
+ "41": {
105712
105828
  start: {
105713
- line: 178,
105829
+ line: 180,
105714
105830
  column: 40
105715
105831
  },
105716
105832
  end: {
105717
- line: 178,
105833
+ line: 180,
105718
105834
  column: 71
105719
105835
  }
105720
105836
  },
105721
- "41": {
105837
+ "42": {
105722
105838
  start: {
105723
- line: 179,
105839
+ line: 181,
105724
105840
  column: 20
105725
105841
  },
105726
105842
  end: {
105727
- line: 179,
105843
+ line: 181,
105728
105844
  column: 47
105729
105845
  }
105730
105846
  },
105731
- "42": {
105847
+ "43": {
105732
105848
  start: {
105733
- line: 180,
105849
+ line: 182,
105734
105850
  column: 20
105735
105851
  },
105736
105852
  end: {
105737
- line: 195,
105853
+ line: 197,
105738
105854
  column: 21
105739
105855
  }
105740
105856
  },
105741
- "43": {
105857
+ "44": {
105742
105858
  start: {
105743
- line: 181,
105859
+ line: 183,
105744
105860
  column: 34
105745
105861
  },
105746
105862
  end: {
105747
- line: 181,
105863
+ line: 183,
105748
105864
  column: 69
105749
105865
  }
105750
105866
  },
105751
- "44": {
105867
+ "45": {
105752
105868
  start: {
105753
- line: 182,
105869
+ line: 184,
105754
105870
  column: 22
105755
105871
  },
105756
105872
  end: {
105757
- line: 192,
105873
+ line: 194,
105758
105874
  column: 27
105759
105875
  }
105760
105876
  },
105761
- "45": {
105877
+ "46": {
105762
105878
  start: {
105763
- line: 184,
105879
+ line: 186,
105764
105880
  column: 26
105765
105881
  },
105766
105882
  end: {
105767
- line: 191,
105883
+ line: 193,
105768
105884
  column: 27
105769
105885
  }
105770
105886
  },
105771
- "46": {
105887
+ "47": {
105772
105888
  start: {
105773
- line: 185,
105889
+ line: 187,
105774
105890
  column: 48
105775
105891
  },
105776
105892
  end: {
105777
- line: 189,
105893
+ line: 191,
105778
105894
  column: 29
105779
105895
  }
105780
105896
  },
105781
- "47": {
105897
+ "48": {
105782
105898
  start: {
105783
- line: 190,
105899
+ line: 192,
105784
105900
  column: 28
105785
105901
  },
105786
105902
  end: {
105787
- line: 190,
105903
+ line: 192,
105788
105904
  column: 55
105789
105905
  }
105790
105906
  },
105791
- "48": {
105907
+ "49": {
105792
105908
  start: {
105793
- line: 194,
105909
+ line: 196,
105794
105910
  column: 22
105795
105911
  },
105796
105912
  end: {
105797
- line: 194,
105913
+ line: 196,
105798
105914
  column: 72
105799
105915
  }
105800
105916
  }
@@ -106034,7 +106150,7 @@ function cov_ksv9azglk() {
106034
106150
  column: 39
106035
106151
  },
106036
106152
  end: {
106037
- line: 112,
106153
+ line: 114,
106038
106154
  column: 3
106039
106155
  }
106040
106156
  },
@@ -106044,320 +106160,320 @@ function cov_ksv9azglk() {
106044
106160
  name: "(anonymous_10)",
106045
106161
  decl: {
106046
106162
  start: {
106047
- line: 114,
106163
+ line: 116,
106048
106164
  column: 2
106049
106165
  },
106050
106166
  end: {
106051
- line: 114,
106167
+ line: 116,
106052
106168
  column: 3
106053
106169
  }
106054
106170
  },
106055
106171
  loc: {
106056
106172
  start: {
106057
- line: 114,
106173
+ line: 116,
106058
106174
  column: 16
106059
106175
  },
106060
106176
  end: {
106061
- line: 116,
106177
+ line: 118,
106062
106178
  column: 3
106063
106179
  }
106064
106180
  },
106065
- line: 114
106181
+ line: 116
106066
106182
  },
106067
106183
  "11": {
106068
106184
  name: "(anonymous_11)",
106069
106185
  decl: {
106070
106186
  start: {
106071
- line: 118,
106187
+ line: 120,
106072
106188
  column: 2
106073
106189
  },
106074
106190
  end: {
106075
- line: 118,
106191
+ line: 120,
106076
106192
  column: 3
106077
106193
  }
106078
106194
  },
106079
106195
  loc: {
106080
106196
  start: {
106081
- line: 118,
106197
+ line: 120,
106082
106198
  column: 16
106083
106199
  },
106084
106200
  end: {
106085
- line: 131,
106201
+ line: 133,
106086
106202
  column: 3
106087
106203
  }
106088
106204
  },
106089
- line: 118
106205
+ line: 120
106090
106206
  },
106091
106207
  "12": {
106092
106208
  name: "(anonymous_12)",
106093
106209
  decl: {
106094
106210
  start: {
106095
- line: 121,
106211
+ line: 123,
106096
106212
  column: 8
106097
106213
  },
106098
106214
  end: {
106099
- line: 121,
106215
+ line: 123,
106100
106216
  column: 9
106101
106217
  }
106102
106218
  },
106103
106219
  loc: {
106104
106220
  start: {
106105
- line: 122,
106221
+ line: 124,
106106
106222
  column: 8
106107
106223
  },
106108
106224
  end: {
106109
- line: 129,
106225
+ line: 131,
106110
106226
  column: 18
106111
106227
  }
106112
106228
  },
106113
- line: 122
106229
+ line: 124
106114
106230
  },
106115
106231
  "13": {
106116
106232
  name: "(anonymous_13)",
106117
106233
  decl: {
106118
106234
  start: {
106119
- line: 122,
106235
+ line: 124,
106120
106236
  column: 8
106121
106237
  },
106122
106238
  end: {
106123
- line: 122,
106239
+ line: 124,
106124
106240
  column: 9
106125
106241
  }
106126
106242
  },
106127
106243
  loc: {
106128
106244
  start: {
106129
- line: 123,
106245
+ line: 125,
106130
106246
  column: 10
106131
106247
  },
106132
106248
  end: {
106133
- line: 129,
106249
+ line: 131,
106134
106250
  column: 18
106135
106251
  }
106136
106252
  },
106137
- line: 123
106253
+ line: 125
106138
106254
  },
106139
106255
  "14": {
106140
106256
  name: "(anonymous_14)",
106141
106257
  decl: {
106142
106258
  start: {
106143
- line: 134,
106259
+ line: 136,
106144
106260
  column: 15
106145
106261
  },
106146
106262
  end: {
106147
- line: 134,
106263
+ line: 136,
106148
106264
  column: 16
106149
106265
  }
106150
106266
  },
106151
106267
  loc: {
106152
106268
  start: {
106153
- line: 134,
106269
+ line: 136,
106154
106270
  column: 36
106155
106271
  },
106156
106272
  end: {
106157
- line: 146,
106273
+ line: 148,
106158
106274
  column: 1
106159
106275
  }
106160
106276
  },
106161
- line: 134
106277
+ line: 136
106162
106278
  },
106163
106279
  "15": {
106164
106280
  name: "(anonymous_15)",
106165
106281
  decl: {
106166
106282
  start: {
106167
- line: 149,
106283
+ line: 151,
106168
106284
  column: 13
106169
106285
  },
106170
106286
  end: {
106171
- line: 149,
106287
+ line: 151,
106172
106288
  column: 14
106173
106289
  }
106174
106290
  },
106175
106291
  loc: {
106176
106292
  start: {
106177
- line: 150,
106293
+ line: 152,
106178
106294
  column: 4
106179
106295
  },
106180
106296
  end: {
106181
- line: 203,
106297
+ line: 205,
106182
106298
  column: 6
106183
106299
  }
106184
106300
  },
106185
- line: 150
106301
+ line: 152
106186
106302
  },
106187
106303
  "16": {
106188
106304
  name: "(anonymous_16)",
106189
106305
  decl: {
106190
106306
  start: {
106191
- line: 151,
106307
+ line: 153,
106192
106308
  column: 6
106193
106309
  },
106194
106310
  end: {
106195
- line: 151,
106311
+ line: 153,
106196
106312
  column: 7
106197
106313
  }
106198
106314
  },
106199
106315
  loc: {
106200
106316
  start: {
106201
- line: 151,
106317
+ line: 153,
106202
106318
  column: 30
106203
106319
  },
106204
106320
  end: {
106205
- line: 202,
106321
+ line: 204,
106206
106322
  column: 7
106207
106323
  }
106208
106324
  },
106209
- line: 151
106325
+ line: 153
106210
106326
  },
106211
106327
  "17": {
106212
106328
  name: "(anonymous_17)",
106213
106329
  decl: {
106214
106330
  start: {
106215
- line: 156,
106331
+ line: 158,
106216
106332
  column: 16
106217
106333
  },
106218
106334
  end: {
106219
- line: 156,
106335
+ line: 158,
106220
106336
  column: 17
106221
106337
  }
106222
106338
  },
106223
106339
  loc: {
106224
106340
  start: {
106225
- line: 156,
106341
+ line: 158,
106226
106342
  column: 35
106227
106343
  },
106228
106344
  end: {
106229
- line: 197,
106345
+ line: 199,
106230
106346
  column: 17
106231
106347
  }
106232
106348
  },
106233
- line: 156
106349
+ line: 158
106234
106350
  },
106235
106351
  "18": {
106236
106352
  name: "(anonymous_18)",
106237
106353
  decl: {
106238
106354
  start: {
106239
- line: 168,
106355
+ line: 170,
106240
106356
  column: 20
106241
106357
  },
106242
106358
  end: {
106243
- line: 168,
106359
+ line: 170,
106244
106360
  column: 21
106245
106361
  }
106246
106362
  },
106247
106363
  loc: {
106248
106364
  start: {
106249
- line: 168,
106365
+ line: 170,
106250
106366
  column: 28
106251
106367
  },
106252
106368
  end: {
106253
- line: 168,
106369
+ line: 170,
106254
106370
  column: 52
106255
106371
  }
106256
106372
  },
106257
- line: 168
106373
+ line: 170
106258
106374
  },
106259
106375
  "19": {
106260
106376
  name: "(anonymous_19)",
106261
106377
  decl: {
106262
106378
  start: {
106263
- line: 175,
106379
+ line: 177,
106264
106380
  column: 33
106265
106381
  },
106266
106382
  end: {
106267
- line: 175,
106383
+ line: 177,
106268
106384
  column: 34
106269
106385
  }
106270
106386
  },
106271
106387
  loc: {
106272
106388
  start: {
106273
- line: 175,
106389
+ line: 177,
106274
106390
  column: 48
106275
106391
  },
106276
106392
  end: {
106277
- line: 196,
106393
+ line: 198,
106278
106394
  column: 19
106279
106395
  }
106280
106396
  },
106281
- line: 175
106397
+ line: 177
106282
106398
  },
106283
106399
  "20": {
106284
106400
  name: "(anonymous_20)",
106285
106401
  decl: {
106286
106402
  start: {
106287
- line: 183,
106403
+ line: 185,
106288
106404
  column: 51
106289
106405
  },
106290
106406
  end: {
106291
- line: 183,
106407
+ line: 185,
106292
106408
  column: 52
106293
106409
  }
106294
106410
  },
106295
106411
  loc: {
106296
106412
  start: {
106297
- line: 183,
106413
+ line: 185,
106298
106414
  column: 66
106299
106415
  },
106300
106416
  end: {
106301
- line: 192,
106417
+ line: 194,
106302
106418
  column: 25
106303
106419
  }
106304
106420
  },
106305
- line: 183
106421
+ line: 185
106306
106422
  }
106307
106423
  },
106308
106424
  branchMap: {
106309
106425
  "0": {
106310
106426
  loc: {
106311
106427
  start: {
106312
- line: 127,
106428
+ line: 129,
106313
106429
  column: 23
106314
106430
  },
106315
106431
  end: {
106316
- line: 127,
106432
+ line: 129,
106317
106433
  column: 71
106318
106434
  }
106319
106435
  },
106320
106436
  type: "cond-expr",
106321
106437
  locations: [{
106322
106438
  start: {
106323
- line: 127,
106439
+ line: 129,
106324
106440
  column: 33
106325
106441
  },
106326
106442
  end: {
106327
- line: 127,
106443
+ line: 129,
106328
106444
  column: 66
106329
106445
  }
106330
106446
  }, {
106331
106447
  start: {
106332
- line: 127,
106448
+ line: 129,
106333
106449
  column: 69
106334
106450
  },
106335
106451
  end: {
106336
- line: 127,
106452
+ line: 129,
106337
106453
  column: 71
106338
106454
  }
106339
106455
  }],
106340
- line: 127
106456
+ line: 129
106341
106457
  },
106342
106458
  "1": {
106343
106459
  loc: {
106344
106460
  start: {
106345
- line: 135,
106461
+ line: 137,
106346
106462
  column: 2
106347
106463
  },
106348
106464
  end: {
106349
- line: 140,
106465
+ line: 142,
106350
106466
  column: 3
106351
106467
  }
106352
106468
  },
106353
106469
  type: "if",
106354
106470
  locations: [{
106355
106471
  start: {
106356
- line: 135,
106472
+ line: 137,
106357
106473
  column: 2
106358
106474
  },
106359
106475
  end: {
106360
- line: 140,
106476
+ line: 142,
106361
106477
  column: 3
106362
106478
  }
106363
106479
  }, {
@@ -106370,60 +106486,60 @@ function cov_ksv9azglk() {
106370
106486
  column: undefined
106371
106487
  }
106372
106488
  }],
106373
- line: 135
106489
+ line: 137
106374
106490
  },
106375
106491
  "2": {
106376
106492
  loc: {
106377
106493
  start: {
106378
- line: 139,
106494
+ line: 141,
106379
106495
  column: 11
106380
106496
  },
106381
106497
  end: {
106382
- line: 139,
106498
+ line: 141,
106383
106499
  column: 55
106384
106500
  }
106385
106501
  },
106386
106502
  type: "binary-expr",
106387
106503
  locations: [{
106388
106504
  start: {
106389
- line: 139,
106505
+ line: 141,
106390
106506
  column: 11
106391
106507
  },
106392
106508
  end: {
106393
- line: 139,
106509
+ line: 141,
106394
106510
  column: 34
106395
106511
  }
106396
106512
  }, {
106397
106513
  start: {
106398
- line: 139,
106514
+ line: 141,
106399
106515
  column: 38
106400
106516
  },
106401
106517
  end: {
106402
- line: 139,
106518
+ line: 141,
106403
106519
  column: 55
106404
106520
  }
106405
106521
  }],
106406
- line: 139
106522
+ line: 141
106407
106523
  },
106408
106524
  "3": {
106409
106525
  loc: {
106410
106526
  start: {
106411
- line: 165,
106527
+ line: 167,
106412
106528
  column: 18
106413
106529
  },
106414
106530
  end: {
106415
- line: 165,
106531
+ line: 167,
106416
106532
  column: 40
106417
106533
  }
106418
106534
  },
106419
106535
  type: "if",
106420
106536
  locations: [{
106421
106537
  start: {
106422
- line: 165,
106538
+ line: 167,
106423
106539
  column: 18
106424
106540
  },
106425
106541
  end: {
106426
- line: 165,
106542
+ line: 167,
106427
106543
  column: 40
106428
106544
  }
106429
106545
  }, {
@@ -106436,27 +106552,27 @@ function cov_ksv9azglk() {
106436
106552
  column: undefined
106437
106553
  }
106438
106554
  }],
106439
- line: 165
106555
+ line: 167
106440
106556
  },
106441
106557
  "4": {
106442
106558
  loc: {
106443
106559
  start: {
106444
- line: 171,
106560
+ line: 173,
106445
106561
  column: 18
106446
106562
  },
106447
106563
  end: {
106448
- line: 171,
106564
+ line: 173,
106449
106565
  column: 46
106450
106566
  }
106451
106567
  },
106452
106568
  type: "if",
106453
106569
  locations: [{
106454
106570
  start: {
106455
- line: 171,
106571
+ line: 173,
106456
106572
  column: 18
106457
106573
  },
106458
106574
  end: {
106459
- line: 171,
106575
+ line: 173,
106460
106576
  column: 46
106461
106577
  }
106462
106578
  }, {
@@ -106469,60 +106585,60 @@ function cov_ksv9azglk() {
106469
106585
  column: undefined
106470
106586
  }
106471
106587
  }],
106472
- line: 171
106588
+ line: 173
106473
106589
  },
106474
106590
  "5": {
106475
106591
  loc: {
106476
106592
  start: {
106477
- line: 182,
106593
+ line: 184,
106478
106594
  column: 22
106479
106595
  },
106480
106596
  end: {
106481
- line: 192,
106597
+ line: 194,
106482
106598
  column: 26
106483
106599
  }
106484
106600
  },
106485
106601
  type: "binary-expr",
106486
106602
  locations: [{
106487
106603
  start: {
106488
- line: 182,
106604
+ line: 184,
106489
106605
  column: 22
106490
106606
  },
106491
106607
  end: {
106492
- line: 182,
106608
+ line: 184,
106493
106609
  column: 25
106494
106610
  }
106495
106611
  }, {
106496
106612
  start: {
106497
- line: 183,
106613
+ line: 185,
106498
106614
  column: 24
106499
106615
  },
106500
106616
  end: {
106501
- line: 192,
106617
+ line: 194,
106502
106618
  column: 26
106503
106619
  }
106504
106620
  }],
106505
- line: 182
106621
+ line: 184
106506
106622
  },
106507
106623
  "6": {
106508
106624
  loc: {
106509
106625
  start: {
106510
- line: 184,
106626
+ line: 186,
106511
106627
  column: 26
106512
106628
  },
106513
106629
  end: {
106514
- line: 191,
106630
+ line: 193,
106515
106631
  column: 27
106516
106632
  }
106517
106633
  },
106518
106634
  type: "if",
106519
106635
  locations: [{
106520
106636
  start: {
106521
- line: 184,
106637
+ line: 186,
106522
106638
  column: 26
106523
106639
  },
106524
106640
  end: {
106525
- line: 191,
106641
+ line: 193,
106526
106642
  column: 27
106527
106643
  }
106528
106644
  }, {
@@ -106535,7 +106651,7 @@ function cov_ksv9azglk() {
106535
106651
  column: undefined
106536
106652
  }
106537
106653
  }],
106538
- line: 184
106654
+ line: 186
106539
106655
  }
106540
106656
  },
106541
106657
  s: {
@@ -106587,7 +106703,8 @@ function cov_ksv9azglk() {
106587
106703
  "45": 0,
106588
106704
  "46": 0,
106589
106705
  "47": 0,
106590
- "48": 0
106706
+ "48": 0,
106707
+ "49": 0
106591
106708
  },
106592
106709
  f: {
106593
106710
  "0": 0,
@@ -106622,7 +106739,7 @@ function cov_ksv9azglk() {
106622
106739
  "6": [0, 0]
106623
106740
  },
106624
106741
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
106625
- hash: "6363243ced583b4bf6b9f147bfa510bedcc0246b"
106742
+ hash: "ce242fed07b10fc4df7c01982eda2c3b9055467f"
106626
106743
  };
106627
106744
  var coverage = global[gcv] || (global[gcv] = {});
106628
106745
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -106737,31 +106854,34 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
106737
106854
  "class": "neeto-editor__image",
106738
106855
  style: "height:".concat(figheight, "px;width:").concat(figwidth, "px;")
106739
106856
  });
106740
- cov_ksv9azglk().s[13]++;
106857
+ var captionAttrs = (cov_ksv9azglk().s[13]++, {
106858
+ style: "width:".concat(figwidth, "px;")
106859
+ });
106860
+ cov_ksv9azglk().s[14]++;
106741
106861
  return ["a", linkAttrs, ["figure", this.options.HTMLAttributes, ["div", resizeAttrs, ["img", mergeAttributes(HTMLAttributes, {
106742
106862
  draggable: false,
106743
106863
  contenteditable: false
106744
- })]], ["figcaption", 0]]];
106864
+ })]], ["figcaption", captionAttrs, 0]]];
106745
106865
  },
106746
106866
  addNodeView: function addNodeView() {
106747
106867
  cov_ksv9azglk().f[10]++;
106748
- cov_ksv9azglk().s[14]++;
106868
+ cov_ksv9azglk().s[15]++;
106749
106869
  return ReactNodeViewRenderer(ImageComponent);
106750
106870
  },
106751
106871
  addCommands: function addCommands() {
106752
106872
  var _this = this;
106753
106873
  cov_ksv9azglk().f[11]++;
106754
- cov_ksv9azglk().s[15]++;
106874
+ cov_ksv9azglk().s[16]++;
106755
106875
  return {
106756
106876
  setFigure: function setFigure(_ref3) {
106757
106877
  var caption = _ref3.caption,
106758
106878
  attrs = _objectWithoutProperties$1(_ref3, _excluded$9);
106759
106879
  cov_ksv9azglk().f[12]++;
106760
- cov_ksv9azglk().s[16]++;
106880
+ cov_ksv9azglk().s[17]++;
106761
106881
  return function (_ref4) {
106762
106882
  var chain = _ref4.chain;
106763
106883
  cov_ksv9azglk().f[13]++;
106764
- cov_ksv9azglk().s[17]++;
106884
+ cov_ksv9azglk().s[18]++;
106765
106885
  return chain().insertContent({
106766
106886
  type: _this.name,
106767
106887
  attrs: attrs,
@@ -106775,7 +106895,7 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
106775
106895
  };
106776
106896
  }
106777
106897
  }));
106778
- cov_ksv9azglk().s[18]++;
106898
+ cov_ksv9azglk().s[19]++;
106779
106899
  var upload = /*#__PURE__*/function () {
106780
106900
  var _ref5 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(file, url) {
106781
106901
  var _response$data, uploader, response, imageSizeInMB;
@@ -106783,32 +106903,32 @@ var upload = /*#__PURE__*/function () {
106783
106903
  while (1) switch (_context.prev = _context.next) {
106784
106904
  case 0:
106785
106905
  cov_ksv9azglk().f[14]++;
106786
- cov_ksv9azglk().s[19]++;
106906
+ cov_ksv9azglk().s[20]++;
106787
106907
  if (!(file.size <= MAX_IMAGE_SIZE)) {
106788
106908
  _context.next = 13;
106789
106909
  break;
106790
106910
  }
106791
106911
  cov_ksv9azglk().b[1][0]++;
106792
- uploader = (cov_ksv9azglk().s[20]++, new DirectUpload({
106912
+ uploader = (cov_ksv9azglk().s[21]++, new DirectUpload({
106793
106913
  file: file,
106794
106914
  url: url
106795
106915
  }));
106796
- cov_ksv9azglk().s[21]++;
106916
+ cov_ksv9azglk().s[22]++;
106797
106917
  _context.next = 8;
106798
106918
  return uploader.create();
106799
106919
  case 8:
106800
106920
  response = _context.sent;
106801
- cov_ksv9azglk().s[22]++;
106921
+ cov_ksv9azglk().s[23]++;
106802
106922
  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));
106803
106923
  case 13:
106804
106924
  cov_ksv9azglk().b[1][1]++;
106805
106925
  case 14:
106806
- imageSizeInMB = (cov_ksv9azglk().s[23]++, MAX_IMAGE_SIZE / (1024 * 1024));
106807
- cov_ksv9azglk().s[24]++;
106926
+ imageSizeInMB = (cov_ksv9azglk().s[24]++, MAX_IMAGE_SIZE / (1024 * 1024));
106927
+ cov_ksv9azglk().s[25]++;
106808
106928
  neetoui.Toastr.error(t$8("error.imageSizeIsShouldBeLess", {
106809
106929
  limit: imageSizeInMB
106810
106930
  }));
106811
- cov_ksv9azglk().s[25]++;
106931
+ cov_ksv9azglk().s[26]++;
106812
106932
  return _context.abrupt("return", "");
106813
106933
  case 19:
106814
106934
  case "end":
@@ -106824,45 +106944,45 @@ var ImageExtension$1 = {
106824
106944
  configure: function configure(_ref6) {
106825
106945
  var uploadEndpoint = _ref6.uploadEndpoint;
106826
106946
  cov_ksv9azglk().f[15]++;
106827
- cov_ksv9azglk().s[26]++;
106947
+ cov_ksv9azglk().s[27]++;
106828
106948
  return ImageExtension.extend({
106829
106949
  addProseMirrorPlugins: function addProseMirrorPlugins() {
106830
106950
  cov_ksv9azglk().f[16]++;
106831
- cov_ksv9azglk().s[27]++;
106951
+ cov_ksv9azglk().s[28]++;
106832
106952
  return [new Plugin({
106833
106953
  props: {
106834
106954
  handleDOMEvents: {
106835
106955
  paste: function paste(view, event) {
106836
106956
  var _event$clipboardData, _event$clipboardData$;
106837
106957
  cov_ksv9azglk().f[17]++;
106838
- var _ref7 = (cov_ksv9azglk().s[28]++, view.state),
106958
+ var _ref7 = (cov_ksv9azglk().s[29]++, view.state),
106839
106959
  schema = _ref7.schema,
106840
106960
  pos = _ref7.selection.$anchor.pos;
106841
- 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);
106842
- cov_ksv9azglk().s[30]++;
106961
+ 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);
106962
+ cov_ksv9azglk().s[31]++;
106843
106963
  if (!hasFiles) {
106844
106964
  cov_ksv9azglk().b[3][0]++;
106845
- cov_ksv9azglk().s[31]++;
106965
+ cov_ksv9azglk().s[32]++;
106846
106966
  return;
106847
106967
  } else {
106848
106968
  cov_ksv9azglk().b[3][1]++;
106849
106969
  }
106850
- var images = (cov_ksv9azglk().s[32]++, Array.from(event.clipboardData.files).filter(function (file) {
106970
+ var images = (cov_ksv9azglk().s[33]++, Array.from(event.clipboardData.files).filter(function (file) {
106851
106971
  cov_ksv9azglk().f[18]++;
106852
- cov_ksv9azglk().s[33]++;
106972
+ cov_ksv9azglk().s[34]++;
106853
106973
  return /image/i.test(file.type);
106854
106974
  }));
106855
- cov_ksv9azglk().s[34]++;
106975
+ cov_ksv9azglk().s[35]++;
106856
106976
  if (ramda.isEmpty(images)) {
106857
106977
  cov_ksv9azglk().b[4][0]++;
106858
- cov_ksv9azglk().s[35]++;
106978
+ cov_ksv9azglk().s[36]++;
106859
106979
  return;
106860
106980
  } else {
106861
106981
  cov_ksv9azglk().b[4][1]++;
106862
106982
  }
106863
- cov_ksv9azglk().s[36]++;
106864
- event.preventDefault();
106865
106983
  cov_ksv9azglk().s[37]++;
106984
+ event.preventDefault();
106985
+ cov_ksv9azglk().s[38]++;
106866
106986
  images.forEach( /*#__PURE__*/function () {
106867
106987
  var _ref8 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
106868
106988
  var id, node, transaction, url;
@@ -106870,30 +106990,30 @@ var ImageExtension$1 = {
106870
106990
  while (1) switch (_context2.prev = _context2.next) {
106871
106991
  case 0:
106872
106992
  cov_ksv9azglk().f[19]++;
106873
- id = (cov_ksv9azglk().s[38]++, Math.random().toString(36).substring(7));
106874
- node = (cov_ksv9azglk().s[39]++, schema.nodes.image.create({
106993
+ id = (cov_ksv9azglk().s[39]++, Math.random().toString(36).substring(7));
106994
+ node = (cov_ksv9azglk().s[40]++, schema.nodes.image.create({
106875
106995
  id: id
106876
106996
  }));
106877
- transaction = (cov_ksv9azglk().s[40]++, view.state.tr.insert(pos, node));
106878
- cov_ksv9azglk().s[41]++;
106879
- view.dispatch(transaction);
106997
+ transaction = (cov_ksv9azglk().s[41]++, view.state.tr.insert(pos, node));
106880
106998
  cov_ksv9azglk().s[42]++;
106881
- _context2.prev = 7;
106999
+ view.dispatch(transaction);
106882
107000
  cov_ksv9azglk().s[43]++;
107001
+ _context2.prev = 7;
107002
+ cov_ksv9azglk().s[44]++;
106883
107003
  _context2.next = 11;
106884
107004
  return upload(image, uploadEndpoint);
106885
107005
  case 11:
106886
107006
  url = _context2.sent;
106887
- cov_ksv9azglk().s[44]++;
107007
+ cov_ksv9azglk().s[45]++;
106888
107008
  (cov_ksv9azglk().b[5][0]++, url) && (cov_ksv9azglk().b[5][1]++, view.state.doc.descendants(function (node, pos) {
106889
107009
  cov_ksv9azglk().f[20]++;
106890
- cov_ksv9azglk().s[45]++;
107010
+ cov_ksv9azglk().s[46]++;
106891
107011
  if (node.attrs.id === id) {
106892
107012
  cov_ksv9azglk().b[6][0]++;
106893
- var _transaction = (cov_ksv9azglk().s[46]++, view.state.tr.setNodeMarkup(pos, null, {
107013
+ var _transaction = (cov_ksv9azglk().s[47]++, view.state.tr.setNodeMarkup(pos, null, {
106894
107014
  src: url
106895
107015
  }));
106896
- cov_ksv9azglk().s[47]++;
107016
+ cov_ksv9azglk().s[48]++;
106897
107017
  view.dispatch(_transaction);
106898
107018
  } else {
106899
107019
  cov_ksv9azglk().b[6][1]++;
@@ -106904,7 +107024,7 @@ var ImageExtension$1 = {
106904
107024
  case 16:
106905
107025
  _context2.prev = 16;
106906
107026
  _context2.t0 = _context2["catch"](7);
106907
- cov_ksv9azglk().s[48]++;
107027
+ cov_ksv9azglk().s[49]++;
106908
107028
  view.dispatch(view.state.tr["delete"](pos, pos + 1));
106909
107029
  case 20:
106910
107030
  case "end":
@@ -106927,7 +107047,7 @@ var ImageExtension$1 = {
106927
107047
 
106928
107048
  function cov_mdp7zot9o() {
106929
107049
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/FigCaption.js";
106930
- var hash = "acc080d8b58d40104e6b30c98cc1f87bc613b1b9";
107050
+ var hash = "c9ac09c21dac0821bf21468750ec234bb65938af";
106931
107051
  var global = new Function("return this")();
106932
107052
  var gcv = "__coverage__";
106933
107053
  var coverageData = {
@@ -106935,12 +107055,12 @@ function cov_mdp7zot9o() {
106935
107055
  statementMap: {
106936
107056
  "0": {
106937
107057
  start: {
106938
- line: 11,
107058
+ line: 13,
106939
107059
  column: 4
106940
107060
  },
106941
107061
  end: {
106942
- line: 15,
106943
- column: 6
107062
+ line: 13,
107063
+ column: 35
106944
107064
  }
106945
107065
  }
106946
107066
  },
@@ -106949,25 +107069,25 @@ function cov_mdp7zot9o() {
106949
107069
  name: "(anonymous_0)",
106950
107070
  decl: {
106951
107071
  start: {
106952
- line: 10,
107072
+ line: 12,
106953
107073
  column: 2
106954
107074
  },
106955
107075
  end: {
106956
- line: 10,
107076
+ line: 12,
106957
107077
  column: 3
106958
107078
  }
106959
107079
  },
106960
107080
  loc: {
106961
107081
  start: {
106962
- line: 10,
107082
+ line: 12,
106963
107083
  column: 14
106964
107084
  },
106965
107085
  end: {
106966
- line: 16,
107086
+ line: 14,
106967
107087
  column: 3
106968
107088
  }
106969
107089
  },
106970
- line: 10
107090
+ line: 12
106971
107091
  }
106972
107092
  },
106973
107093
  branchMap: {},
@@ -106979,7 +107099,7 @@ function cov_mdp7zot9o() {
106979
107099
  },
106980
107100
  b: {},
106981
107101
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
106982
- hash: "acc080d8b58d40104e6b30c98cc1f87bc613b1b9"
107102
+ hash: "c9ac09c21dac0821bf21468750ec234bb65938af"
106983
107103
  };
106984
107104
  var coverage = global[gcv] || (global[gcv] = {});
106985
107105
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -106997,6 +107117,7 @@ function cov_mdp7zot9o() {
106997
107117
  cov_mdp7zot9o();
106998
107118
  var FigCaption = Node$1.create({
106999
107119
  name: "figcaption",
107120
+ content: "text*",
107000
107121
  selectable: false,
107001
107122
  draggable: false,
107002
107123
  parseHTML: function parseHTML() {