@bigbinary/neeto-editor 1.26.15 → 1.26.16

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
@@ -104948,7 +104948,7 @@ var EmojiSuggestion$1 = EmojiSuggestion.configure({
104948
104948
 
104949
104949
  function cov_1rrokgc9k1() {
104950
104950
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ImageComponent.jsx";
104951
- var hash = "74d839e2206cce222a1ad134702eac6ef0c0dee7";
104951
+ var hash = "7931a267144e038d9242914e1ff6f4c79984799f";
104952
104952
  var global = new Function("return this")();
104953
104953
  var gcv = "__coverage__";
104954
104954
  var coverageData = {
@@ -104960,117 +104960,137 @@ function cov_1rrokgc9k1() {
104960
104960
  column: 23
104961
104961
  },
104962
104962
  end: {
104963
- line: 76,
104963
+ line: 83,
104964
104964
  column: 1
104965
104965
  }
104966
104966
  },
104967
104967
  "1": {
104968
104968
  start: {
104969
104969
  line: 18,
104970
- column: 20
104970
+ column: 51
104971
104971
  },
104972
104972
  end: {
104973
104973
  line: 18,
104974
- column: 32
104974
+ column: 61
104975
104975
  }
104976
104976
  },
104977
104977
  "2": {
104978
104978
  start: {
104979
104979
  line: 20,
104980
- column: 51
104980
+ column: 42
104981
104981
  },
104982
104982
  end: {
104983
104983
  line: 20,
104984
- column: 61
104984
+ column: 65
104985
104985
  }
104986
104986
  },
104987
104987
  "3": {
104988
104988
  start: {
104989
- line: 21,
104989
+ line: 22,
104990
+ column: 20
104991
+ },
104992
+ end: {
104993
+ line: 22,
104994
+ column: 32
104995
+ }
104996
+ },
104997
+ "4": {
104998
+ start: {
104999
+ line: 24,
104990
105000
  column: 19
104991
105001
  },
104992
105002
  end: {
104993
- line: 21,
105003
+ line: 24,
104994
105004
  column: 25
104995
105005
  }
104996
105006
  },
104997
- "4": {
105007
+ "5": {
104998
105008
  start: {
104999
- line: 22,
105009
+ line: 25,
105000
105010
  column: 15
105001
105011
  },
105002
105012
  end: {
105003
- line: 22,
105013
+ line: 25,
105004
105014
  column: 24
105005
105015
  }
105006
105016
  },
105007
- "5": {
105017
+ "6": {
105008
105018
  start: {
105009
- line: 23,
105019
+ line: 26,
105010
105020
  column: 14
105011
105021
  },
105012
105022
  end: {
105013
- line: 23,
105023
+ line: 26,
105014
105024
  column: 22
105015
105025
  }
105016
105026
  },
105017
- "6": {
105027
+ "7": {
105018
105028
  start: {
105019
- line: 24,
105029
+ line: 27,
105020
105030
  column: 18
105021
105031
  },
105022
105032
  end: {
105023
- line: 26,
105033
+ line: 29,
105024
105034
  column: 9
105025
105035
  }
105026
105036
  },
105027
- "7": {
105037
+ "8": {
105028
105038
  start: {
105029
- line: 28,
105039
+ line: 31,
105030
105040
  column: 2
105031
105041
  },
105032
105042
  end: {
105033
- line: 75,
105043
+ line: 82,
105034
105044
  column: 4
105035
105045
  }
105036
105046
  },
105037
- "8": {
105047
+ "9": {
105038
105048
  start: {
105039
- line: 45,
105049
+ line: 48,
105040
105050
  column: 14
105041
105051
  },
105042
105052
  end: {
105043
- line: 45,
105053
+ line: 48,
105054
+ column: 46
105055
+ }
105056
+ },
105057
+ "10": {
105058
+ start: {
105059
+ line: 51,
105060
+ column: 14
105061
+ },
105062
+ end: {
105063
+ line: 51,
105044
105064
  column: 40
105045
105065
  }
105046
105066
  },
105047
- "9": {
105067
+ "11": {
105048
105068
  start: {
105049
- line: 46,
105069
+ line: 52,
105050
105070
  column: 14
105051
105071
  },
105052
105072
  end: {
105053
- line: 46,
105073
+ line: 52,
105054
105074
  column: 38
105055
105075
  }
105056
105076
  },
105057
- "10": {
105077
+ "12": {
105058
105078
  start: {
105059
- line: 47,
105079
+ line: 53,
105060
105080
  column: 14
105061
105081
  },
105062
105082
  end: {
105063
- line: 58,
105083
+ line: 64,
105064
105084
  column: 16
105065
105085
  }
105066
105086
  },
105067
- "11": {
105087
+ "13": {
105068
105088
  start: {
105069
- line: 59,
105089
+ line: 65,
105070
105090
  column: 14
105071
105091
  },
105072
105092
  end: {
105073
- line: 59,
105093
+ line: 65,
105074
105094
  column: 38
105075
105095
  }
105076
105096
  }
@@ -105094,7 +105114,7 @@ function cov_1rrokgc9k1() {
105094
105114
  column: 6
105095
105115
  },
105096
105116
  end: {
105097
- line: 76,
105117
+ line: 83,
105098
105118
  column: 1
105099
105119
  }
105100
105120
  },
@@ -105104,93 +105124,150 @@ function cov_1rrokgc9k1() {
105104
105124
  name: "(anonymous_1)",
105105
105125
  decl: {
105106
105126
  start: {
105107
- line: 44,
105127
+ line: 47,
105128
+ column: 22
105129
+ },
105130
+ end: {
105131
+ line: 47,
105132
+ column: 23
105133
+ }
105134
+ },
105135
+ loc: {
105136
+ start: {
105137
+ line: 48,
105138
+ column: 14
105139
+ },
105140
+ end: {
105141
+ line: 48,
105142
+ column: 46
105143
+ }
105144
+ },
105145
+ line: 48
105146
+ },
105147
+ "2": {
105148
+ name: "(anonymous_2)",
105149
+ decl: {
105150
+ start: {
105151
+ line: 50,
105108
105152
  column: 26
105109
105153
  },
105110
105154
  end: {
105111
- line: 44,
105155
+ line: 50,
105112
105156
  column: 27
105113
105157
  }
105114
105158
  },
105115
105159
  loc: {
105116
105160
  start: {
105117
- line: 44,
105161
+ line: 50,
105118
105162
  column: 55
105119
105163
  },
105120
105164
  end: {
105121
- line: 60,
105165
+ line: 66,
105122
105166
  column: 13
105123
105167
  }
105124
105168
  },
105125
- line: 44
105169
+ line: 50
105126
105170
  }
105127
105171
  },
105128
105172
  branchMap: {
105129
105173
  "0": {
105130
105174
  loc: {
105131
105175
  start: {
105132
- line: 24,
105176
+ line: 20,
105177
+ column: 51
105178
+ },
105179
+ end: {
105180
+ line: 20,
105181
+ column: 64
105182
+ }
105183
+ },
105184
+ type: "binary-expr",
105185
+ locations: [{
105186
+ start: {
105187
+ line: 20,
105188
+ column: 51
105189
+ },
105190
+ end: {
105191
+ line: 20,
105192
+ column: 59
105193
+ }
105194
+ }, {
105195
+ start: {
105196
+ line: 20,
105197
+ column: 63
105198
+ },
105199
+ end: {
105200
+ line: 20,
105201
+ column: 64
105202
+ }
105203
+ }],
105204
+ line: 20
105205
+ },
105206
+ "1": {
105207
+ loc: {
105208
+ start: {
105209
+ line: 27,
105133
105210
  column: 18
105134
105211
  },
105135
105212
  end: {
105136
- line: 26,
105213
+ line: 29,
105137
105214
  column: 9
105138
105215
  }
105139
105216
  },
105140
105217
  type: "cond-expr",
105141
105218
  locations: [{
105142
105219
  start: {
105143
- line: 25,
105220
+ line: 28,
105144
105221
  column: 6
105145
105222
  },
105146
105223
  end: {
105147
- line: 25,
105224
+ line: 28,
105148
105225
  column: 68
105149
105226
  }
105150
105227
  }, {
105151
105228
  start: {
105152
- line: 26,
105229
+ line: 29,
105153
105230
  column: 6
105154
105231
  },
105155
105232
  end: {
105156
- line: 26,
105233
+ line: 29,
105157
105234
  column: 9
105158
105235
  }
105159
105236
  }],
105160
- line: 24
105237
+ line: 27
105161
105238
  },
105162
- "1": {
105239
+ "2": {
105163
105240
  loc: {
105164
105241
  start: {
105165
- line: 39,
105242
+ line: 42,
105166
105243
  column: 9
105167
105244
  },
105168
105245
  end: {
105169
- line: 68,
105246
+ line: 74,
105170
105247
  column: 9
105171
105248
  }
105172
105249
  },
105173
105250
  type: "cond-expr",
105174
105251
  locations: [{
105175
105252
  start: {
105176
- line: 40,
105253
+ line: 43,
105177
105254
  column: 10
105178
105255
  },
105179
105256
  end: {
105180
- line: 63,
105257
+ line: 69,
105181
105258
  column: 22
105182
105259
  }
105183
105260
  }, {
105184
105261
  start: {
105185
- line: 65,
105262
+ line: 71,
105186
105263
  column: 10
105187
105264
  },
105188
105265
  end: {
105189
- line: 67,
105266
+ line: 73,
105190
105267
  column: 16
105191
105268
  }
105192
105269
  }],
105193
- line: 39
105270
+ line: 42
105194
105271
  }
105195
105272
  },
105196
105273
  s: {
@@ -105205,18 +105282,22 @@ function cov_1rrokgc9k1() {
105205
105282
  "8": 0,
105206
105283
  "9": 0,
105207
105284
  "10": 0,
105208
- "11": 0
105285
+ "11": 0,
105286
+ "12": 0,
105287
+ "13": 0
105209
105288
  },
105210
105289
  f: {
105211
105290
  "0": 0,
105212
- "1": 0
105291
+ "1": 0,
105292
+ "2": 0
105213
105293
  },
105214
105294
  b: {
105215
105295
  "0": [0, 0],
105216
- "1": [0, 0]
105296
+ "1": [0, 0],
105297
+ "2": [0, 0]
105217
105298
  },
105218
105299
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
105219
- hash: "74d839e2206cce222a1ad134702eac6ef0c0dee7"
105300
+ hash: "7931a267144e038d9242914e1ff6f4c79984799f"
105220
105301
  };
105221
105302
  var coverage = global[gcv] || (global[gcv] = {});
105222
105303
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -105241,19 +105322,23 @@ var ImageComponent = function ImageComponent(_ref) {
105241
105322
  updateAttributes = _ref.updateAttributes,
105242
105323
  deleteNode = _ref.deleteNode;
105243
105324
  cov_1rrokgc9k1().f[0]++;
105244
- var figureRef = (cov_1rrokgc9k1().s[1]++, React$6.useRef(null));
105245
- var _ref2 = (cov_1rrokgc9k1().s[2]++, node.attrs),
105325
+ var _ref2 = (cov_1rrokgc9k1().s[1]++, node.attrs),
105246
105326
  alt = _ref2.alt,
105247
105327
  src = _ref2.src,
105248
105328
  figheight = _ref2.figheight,
105249
105329
  figwidth = _ref2.figwidth,
105250
105330
  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]++;
105331
+ var _ref3 = (cov_1rrokgc9k1().s[2]++, React$6.useState((cov_1rrokgc9k1().b[0][0]++, figwidth) || (cov_1rrokgc9k1().b[0][1]++, 0))),
105332
+ _ref4 = _slicedToArray(_ref3, 2),
105333
+ captionWidth = _ref4[0],
105334
+ setCaptionWidth = _ref4[1];
105335
+ var figureRef = (cov_1rrokgc9k1().s[3]++, React$6.useRef(null));
105336
+ var _ref5 = (cov_1rrokgc9k1().s[4]++, editor),
105337
+ view = _ref5.view;
105338
+ var height = (cov_1rrokgc9k1().s[5]++, figheight);
105339
+ var width = (cov_1rrokgc9k1().s[6]++, figwidth);
105340
+ 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));
105341
+ cov_1rrokgc9k1().s[8]++;
105257
105342
  return /*#__PURE__*/React__default["default"].createElement(NodeViewWrapper, {
105258
105343
  className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align)
105259
105344
  }, /*#__PURE__*/React__default["default"].createElement("figure", {
@@ -105263,46 +105348,54 @@ var ImageComponent = function ImageComponent(_ref) {
105263
105348
  deleteNode: deleteNode,
105264
105349
  editor: editor,
105265
105350
  updateAttributes: updateAttributes
105266
- }), src ? (cov_1rrokgc9k1().b[1][0]++, /*#__PURE__*/React__default["default"].createElement(Resizable, {
105351
+ }), src ? (cov_1rrokgc9k1().b[2][0]++, /*#__PURE__*/React__default["default"].createElement(Resizable, {
105267
105352
  lockAspectRatio: true,
105268
105353
  className: "neeto-editor__image",
105269
105354
  size: {
105270
105355
  height: height,
105271
105356
  width: width
105272
105357
  },
105273
- onResizeStop: function onResizeStop(_event, _direction, ref) {
105358
+ onResize: function onResize(_event, _direction, ref) {
105274
105359
  cov_1rrokgc9k1().f[1]++;
105275
- cov_1rrokgc9k1().s[8]++;
105276
- height = ref.offsetHeight;
105277
105360
  cov_1rrokgc9k1().s[9]++;
105278
- width = ref.offsetWidth;
105361
+ return setCaptionWidth(ref.offsetWidth);
105362
+ },
105363
+ onResizeStop: function onResizeStop(_event, _direction, ref) {
105364
+ cov_1rrokgc9k1().f[2]++;
105279
105365
  cov_1rrokgc9k1().s[10]++;
105366
+ height = ref.offsetHeight;
105367
+ cov_1rrokgc9k1().s[11]++;
105368
+ width = ref.offsetWidth;
105369
+ cov_1rrokgc9k1().s[12]++;
105280
105370
  view.dispatch(view.state.tr.setNodeMarkup(getPos(), undefined, ramda.mergeRight(node.attrs, {
105281
105371
  figheight: height,
105282
105372
  figwidth: width,
105283
105373
  height: height,
105284
105374
  width: width
105285
105375
  })));
105286
- cov_1rrokgc9k1().s[11]++;
105376
+ cov_1rrokgc9k1().s[13]++;
105287
105377
  editor.commands.focus();
105288
105378
  }
105289
105379
  }, /*#__PURE__*/React__default["default"].createElement("img", _extends$2({}, node.attrs, {
105290
105380
  alt: caption,
105291
105381
  src: src
105292
- })))) : (cov_1rrokgc9k1().b[1][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
105382
+ })))) : (cov_1rrokgc9k1().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
105293
105383
  className: "neeto-editor__image-placeholder"
105294
105384
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null))), /*#__PURE__*/React__default["default"].createElement(NodeViewContent, {
105295
105385
  as: "figcaption",
105296
105386
  className: classnames$2({
105297
105387
  "is-empty": ramda.isEmpty(caption)
105298
- })
105388
+ }),
105389
+ style: {
105390
+ width: "".concat(captionWidth, "px")
105391
+ }
105299
105392
  })));
105300
105393
  };
105301
105394
 
105302
105395
  var _excluded$9 = ["caption"];
105303
105396
  function cov_ksv9azglk() {
105304
105397
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ExtensionConfig.js";
105305
- var hash = "6363243ced583b4bf6b9f147bfa510bedcc0246b";
105398
+ var hash = "ce242fed07b10fc4df7c01982eda2c3b9055467f";
105306
105399
  var global = new Function("return this")();
105307
105400
  var gcv = "__coverage__";
105308
105401
  var coverageData = {
@@ -105314,7 +105407,7 @@ function cov_ksv9azglk() {
105314
105407
  column: 23
105315
105408
  },
105316
105409
  end: {
105317
- line: 132,
105410
+ line: 134,
105318
105411
  column: 2
105319
105412
  }
105320
105413
  },
@@ -105441,360 +105534,370 @@ function cov_ksv9azglk() {
105441
105534
  "13": {
105442
105535
  start: {
105443
105536
  line: 92,
105537
+ column: 25
105538
+ },
105539
+ end: {
105540
+ line: 92,
105541
+ column: 58
105542
+ }
105543
+ },
105544
+ "14": {
105545
+ start: {
105546
+ line: 94,
105444
105547
  column: 4
105445
105548
  },
105446
105549
  end: {
105447
- line: 111,
105550
+ line: 113,
105448
105551
  column: 6
105449
105552
  }
105450
105553
  },
105451
- "14": {
105554
+ "15": {
105452
105555
  start: {
105453
- line: 115,
105556
+ line: 117,
105454
105557
  column: 4
105455
105558
  },
105456
105559
  end: {
105457
- line: 115,
105560
+ line: 117,
105458
105561
  column: 49
105459
105562
  }
105460
105563
  },
105461
- "15": {
105564
+ "16": {
105462
105565
  start: {
105463
- line: 119,
105566
+ line: 121,
105464
105567
  column: 4
105465
105568
  },
105466
105569
  end: {
105467
- line: 130,
105570
+ line: 132,
105468
105571
  column: 6
105469
105572
  }
105470
105573
  },
105471
- "16": {
105574
+ "17": {
105472
105575
  start: {
105473
- line: 122,
105576
+ line: 124,
105474
105577
  column: 8
105475
105578
  },
105476
105579
  end: {
105477
- line: 129,
105580
+ line: 131,
105478
105581
  column: 18
105479
105582
  }
105480
105583
  },
105481
- "17": {
105584
+ "18": {
105482
105585
  start: {
105483
- line: 123,
105586
+ line: 125,
105484
105587
  column: 10
105485
105588
  },
105486
105589
  end: {
105487
- line: 129,
105590
+ line: 131,
105488
105591
  column: 18
105489
105592
  }
105490
105593
  },
105491
- "18": {
105594
+ "19": {
105492
105595
  start: {
105493
- line: 134,
105596
+ line: 136,
105494
105597
  column: 15
105495
105598
  },
105496
105599
  end: {
105497
- line: 146,
105600
+ line: 148,
105498
105601
  column: 1
105499
105602
  }
105500
105603
  },
105501
- "19": {
105604
+ "20": {
105502
105605
  start: {
105503
- line: 135,
105606
+ line: 137,
105504
105607
  column: 2
105505
105608
  },
105506
105609
  end: {
105507
- line: 140,
105610
+ line: 142,
105508
105611
  column: 3
105509
105612
  }
105510
105613
  },
105511
- "20": {
105614
+ "21": {
105512
105615
  start: {
105513
- line: 136,
105616
+ line: 138,
105514
105617
  column: 21
105515
105618
  },
105516
105619
  end: {
105517
- line: 136,
105620
+ line: 138,
105518
105621
  column: 52
105519
105622
  }
105520
105623
  },
105521
- "21": {
105624
+ "22": {
105522
105625
  start: {
105523
- line: 137,
105626
+ line: 139,
105524
105627
  column: 21
105525
105628
  },
105526
105629
  end: {
105527
- line: 137,
105630
+ line: 139,
105528
105631
  column: 44
105529
105632
  }
105530
105633
  },
105531
- "22": {
105634
+ "23": {
105532
105635
  start: {
105533
- line: 139,
105636
+ line: 141,
105534
105637
  column: 4
105535
105638
  },
105536
105639
  end: {
105537
- line: 139,
105640
+ line: 141,
105538
105641
  column: 56
105539
105642
  }
105540
105643
  },
105541
- "23": {
105644
+ "24": {
105542
105645
  start: {
105543
- line: 142,
105646
+ line: 144,
105544
105647
  column: 24
105545
105648
  },
105546
105649
  end: {
105547
- line: 142,
105650
+ line: 144,
105548
105651
  column: 54
105549
105652
  }
105550
105653
  },
105551
- "24": {
105654
+ "25": {
105552
105655
  start: {
105553
- line: 143,
105656
+ line: 145,
105554
105657
  column: 2
105555
105658
  },
105556
105659
  end: {
105557
- line: 143,
105660
+ line: 145,
105558
105661
  column: 77
105559
105662
  }
105560
105663
  },
105561
- "25": {
105664
+ "26": {
105562
105665
  start: {
105563
- line: 145,
105666
+ line: 147,
105564
105667
  column: 2
105565
105668
  },
105566
105669
  end: {
105567
- line: 145,
105670
+ line: 147,
105568
105671
  column: 12
105569
105672
  }
105570
105673
  },
105571
- "26": {
105674
+ "27": {
105572
105675
  start: {
105573
- line: 150,
105676
+ line: 152,
105574
105677
  column: 4
105575
105678
  },
105576
105679
  end: {
105577
- line: 203,
105680
+ line: 205,
105578
105681
  column: 6
105579
105682
  }
105580
105683
  },
105581
- "27": {
105684
+ "28": {
105582
105685
  start: {
105583
- line: 152,
105686
+ line: 154,
105584
105687
  column: 8
105585
105688
  },
105586
105689
  end: {
105587
- line: 201,
105690
+ line: 203,
105588
105691
  column: 10
105589
105692
  }
105590
105693
  },
105591
- "28": {
105694
+ "29": {
105592
105695
  start: {
105593
- line: 162,
105696
+ line: 164,
105594
105697
  column: 22
105595
105698
  },
105596
105699
  end: {
105597
- line: 162,
105700
+ line: 164,
105598
105701
  column: 32
105599
105702
  }
105600
105703
  },
105601
- "29": {
105704
+ "30": {
105602
105705
  start: {
105603
- line: 163,
105706
+ line: 165,
105604
105707
  column: 35
105605
105708
  },
105606
105709
  end: {
105607
- line: 163,
105710
+ line: 165,
105608
105711
  column: 69
105609
105712
  }
105610
105713
  },
105611
- "30": {
105714
+ "31": {
105612
105715
  start: {
105613
- line: 165,
105716
+ line: 167,
105614
105717
  column: 18
105615
105718
  },
105616
105719
  end: {
105617
- line: 165,
105720
+ line: 167,
105618
105721
  column: 40
105619
105722
  }
105620
105723
  },
105621
- "31": {
105724
+ "32": {
105622
105725
  start: {
105623
- line: 165,
105726
+ line: 167,
105624
105727
  column: 33
105625
105728
  },
105626
105729
  end: {
105627
- line: 165,
105730
+ line: 167,
105628
105731
  column: 40
105629
105732
  }
105630
105733
  },
105631
- "32": {
105734
+ "33": {
105632
105735
  start: {
105633
- line: 167,
105736
+ line: 169,
105634
105737
  column: 33
105635
105738
  },
105636
105739
  end: {
105637
- line: 169,
105740
+ line: 171,
105638
105741
  column: 19
105639
105742
  }
105640
105743
  },
105641
- "33": {
105744
+ "34": {
105642
105745
  start: {
105643
- line: 168,
105746
+ line: 170,
105644
105747
  column: 28
105645
105748
  },
105646
105749
  end: {
105647
- line: 168,
105750
+ line: 170,
105648
105751
  column: 52
105649
105752
  }
105650
105753
  },
105651
- "34": {
105754
+ "35": {
105652
105755
  start: {
105653
- line: 171,
105756
+ line: 173,
105654
105757
  column: 18
105655
105758
  },
105656
105759
  end: {
105657
- line: 171,
105760
+ line: 173,
105658
105761
  column: 46
105659
105762
  }
105660
105763
  },
105661
- "35": {
105764
+ "36": {
105662
105765
  start: {
105663
- line: 171,
105766
+ line: 173,
105664
105767
  column: 39
105665
105768
  },
105666
105769
  end: {
105667
- line: 171,
105770
+ line: 173,
105668
105771
  column: 46
105669
105772
  }
105670
105773
  },
105671
- "36": {
105774
+ "37": {
105672
105775
  start: {
105673
- line: 173,
105776
+ line: 175,
105674
105777
  column: 18
105675
105778
  },
105676
105779
  end: {
105677
- line: 173,
105780
+ line: 175,
105678
105781
  column: 41
105679
105782
  }
105680
105783
  },
105681
- "37": {
105784
+ "38": {
105682
105785
  start: {
105683
- line: 175,
105786
+ line: 177,
105684
105787
  column: 18
105685
105788
  },
105686
105789
  end: {
105687
- line: 196,
105790
+ line: 198,
105688
105791
  column: 21
105689
105792
  }
105690
105793
  },
105691
- "38": {
105794
+ "39": {
105692
105795
  start: {
105693
- line: 176,
105796
+ line: 178,
105694
105797
  column: 31
105695
105798
  },
105696
105799
  end: {
105697
- line: 176,
105800
+ line: 178,
105698
105801
  column: 70
105699
105802
  }
105700
105803
  },
105701
- "39": {
105804
+ "40": {
105702
105805
  start: {
105703
- line: 177,
105806
+ line: 179,
105704
105807
  column: 33
105705
105808
  },
105706
105809
  end: {
105707
- line: 177,
105810
+ line: 179,
105708
105811
  column: 66
105709
105812
  }
105710
105813
  },
105711
- "40": {
105814
+ "41": {
105712
105815
  start: {
105713
- line: 178,
105816
+ line: 180,
105714
105817
  column: 40
105715
105818
  },
105716
105819
  end: {
105717
- line: 178,
105820
+ line: 180,
105718
105821
  column: 71
105719
105822
  }
105720
105823
  },
105721
- "41": {
105824
+ "42": {
105722
105825
  start: {
105723
- line: 179,
105826
+ line: 181,
105724
105827
  column: 20
105725
105828
  },
105726
105829
  end: {
105727
- line: 179,
105830
+ line: 181,
105728
105831
  column: 47
105729
105832
  }
105730
105833
  },
105731
- "42": {
105834
+ "43": {
105732
105835
  start: {
105733
- line: 180,
105836
+ line: 182,
105734
105837
  column: 20
105735
105838
  },
105736
105839
  end: {
105737
- line: 195,
105840
+ line: 197,
105738
105841
  column: 21
105739
105842
  }
105740
105843
  },
105741
- "43": {
105844
+ "44": {
105742
105845
  start: {
105743
- line: 181,
105846
+ line: 183,
105744
105847
  column: 34
105745
105848
  },
105746
105849
  end: {
105747
- line: 181,
105850
+ line: 183,
105748
105851
  column: 69
105749
105852
  }
105750
105853
  },
105751
- "44": {
105854
+ "45": {
105752
105855
  start: {
105753
- line: 182,
105856
+ line: 184,
105754
105857
  column: 22
105755
105858
  },
105756
105859
  end: {
105757
- line: 192,
105860
+ line: 194,
105758
105861
  column: 27
105759
105862
  }
105760
105863
  },
105761
- "45": {
105864
+ "46": {
105762
105865
  start: {
105763
- line: 184,
105866
+ line: 186,
105764
105867
  column: 26
105765
105868
  },
105766
105869
  end: {
105767
- line: 191,
105870
+ line: 193,
105768
105871
  column: 27
105769
105872
  }
105770
105873
  },
105771
- "46": {
105874
+ "47": {
105772
105875
  start: {
105773
- line: 185,
105876
+ line: 187,
105774
105877
  column: 48
105775
105878
  },
105776
105879
  end: {
105777
- line: 189,
105880
+ line: 191,
105778
105881
  column: 29
105779
105882
  }
105780
105883
  },
105781
- "47": {
105884
+ "48": {
105782
105885
  start: {
105783
- line: 190,
105886
+ line: 192,
105784
105887
  column: 28
105785
105888
  },
105786
105889
  end: {
105787
- line: 190,
105890
+ line: 192,
105788
105891
  column: 55
105789
105892
  }
105790
105893
  },
105791
- "48": {
105894
+ "49": {
105792
105895
  start: {
105793
- line: 194,
105896
+ line: 196,
105794
105897
  column: 22
105795
105898
  },
105796
105899
  end: {
105797
- line: 194,
105900
+ line: 196,
105798
105901
  column: 72
105799
105902
  }
105800
105903
  }
@@ -106034,7 +106137,7 @@ function cov_ksv9azglk() {
106034
106137
  column: 39
106035
106138
  },
106036
106139
  end: {
106037
- line: 112,
106140
+ line: 114,
106038
106141
  column: 3
106039
106142
  }
106040
106143
  },
@@ -106044,320 +106147,320 @@ function cov_ksv9azglk() {
106044
106147
  name: "(anonymous_10)",
106045
106148
  decl: {
106046
106149
  start: {
106047
- line: 114,
106150
+ line: 116,
106048
106151
  column: 2
106049
106152
  },
106050
106153
  end: {
106051
- line: 114,
106154
+ line: 116,
106052
106155
  column: 3
106053
106156
  }
106054
106157
  },
106055
106158
  loc: {
106056
106159
  start: {
106057
- line: 114,
106160
+ line: 116,
106058
106161
  column: 16
106059
106162
  },
106060
106163
  end: {
106061
- line: 116,
106164
+ line: 118,
106062
106165
  column: 3
106063
106166
  }
106064
106167
  },
106065
- line: 114
106168
+ line: 116
106066
106169
  },
106067
106170
  "11": {
106068
106171
  name: "(anonymous_11)",
106069
106172
  decl: {
106070
106173
  start: {
106071
- line: 118,
106174
+ line: 120,
106072
106175
  column: 2
106073
106176
  },
106074
106177
  end: {
106075
- line: 118,
106178
+ line: 120,
106076
106179
  column: 3
106077
106180
  }
106078
106181
  },
106079
106182
  loc: {
106080
106183
  start: {
106081
- line: 118,
106184
+ line: 120,
106082
106185
  column: 16
106083
106186
  },
106084
106187
  end: {
106085
- line: 131,
106188
+ line: 133,
106086
106189
  column: 3
106087
106190
  }
106088
106191
  },
106089
- line: 118
106192
+ line: 120
106090
106193
  },
106091
106194
  "12": {
106092
106195
  name: "(anonymous_12)",
106093
106196
  decl: {
106094
106197
  start: {
106095
- line: 121,
106198
+ line: 123,
106096
106199
  column: 8
106097
106200
  },
106098
106201
  end: {
106099
- line: 121,
106202
+ line: 123,
106100
106203
  column: 9
106101
106204
  }
106102
106205
  },
106103
106206
  loc: {
106104
106207
  start: {
106105
- line: 122,
106208
+ line: 124,
106106
106209
  column: 8
106107
106210
  },
106108
106211
  end: {
106109
- line: 129,
106212
+ line: 131,
106110
106213
  column: 18
106111
106214
  }
106112
106215
  },
106113
- line: 122
106216
+ line: 124
106114
106217
  },
106115
106218
  "13": {
106116
106219
  name: "(anonymous_13)",
106117
106220
  decl: {
106118
106221
  start: {
106119
- line: 122,
106222
+ line: 124,
106120
106223
  column: 8
106121
106224
  },
106122
106225
  end: {
106123
- line: 122,
106226
+ line: 124,
106124
106227
  column: 9
106125
106228
  }
106126
106229
  },
106127
106230
  loc: {
106128
106231
  start: {
106129
- line: 123,
106232
+ line: 125,
106130
106233
  column: 10
106131
106234
  },
106132
106235
  end: {
106133
- line: 129,
106236
+ line: 131,
106134
106237
  column: 18
106135
106238
  }
106136
106239
  },
106137
- line: 123
106240
+ line: 125
106138
106241
  },
106139
106242
  "14": {
106140
106243
  name: "(anonymous_14)",
106141
106244
  decl: {
106142
106245
  start: {
106143
- line: 134,
106246
+ line: 136,
106144
106247
  column: 15
106145
106248
  },
106146
106249
  end: {
106147
- line: 134,
106250
+ line: 136,
106148
106251
  column: 16
106149
106252
  }
106150
106253
  },
106151
106254
  loc: {
106152
106255
  start: {
106153
- line: 134,
106256
+ line: 136,
106154
106257
  column: 36
106155
106258
  },
106156
106259
  end: {
106157
- line: 146,
106260
+ line: 148,
106158
106261
  column: 1
106159
106262
  }
106160
106263
  },
106161
- line: 134
106264
+ line: 136
106162
106265
  },
106163
106266
  "15": {
106164
106267
  name: "(anonymous_15)",
106165
106268
  decl: {
106166
106269
  start: {
106167
- line: 149,
106270
+ line: 151,
106168
106271
  column: 13
106169
106272
  },
106170
106273
  end: {
106171
- line: 149,
106274
+ line: 151,
106172
106275
  column: 14
106173
106276
  }
106174
106277
  },
106175
106278
  loc: {
106176
106279
  start: {
106177
- line: 150,
106280
+ line: 152,
106178
106281
  column: 4
106179
106282
  },
106180
106283
  end: {
106181
- line: 203,
106284
+ line: 205,
106182
106285
  column: 6
106183
106286
  }
106184
106287
  },
106185
- line: 150
106288
+ line: 152
106186
106289
  },
106187
106290
  "16": {
106188
106291
  name: "(anonymous_16)",
106189
106292
  decl: {
106190
106293
  start: {
106191
- line: 151,
106294
+ line: 153,
106192
106295
  column: 6
106193
106296
  },
106194
106297
  end: {
106195
- line: 151,
106298
+ line: 153,
106196
106299
  column: 7
106197
106300
  }
106198
106301
  },
106199
106302
  loc: {
106200
106303
  start: {
106201
- line: 151,
106304
+ line: 153,
106202
106305
  column: 30
106203
106306
  },
106204
106307
  end: {
106205
- line: 202,
106308
+ line: 204,
106206
106309
  column: 7
106207
106310
  }
106208
106311
  },
106209
- line: 151
106312
+ line: 153
106210
106313
  },
106211
106314
  "17": {
106212
106315
  name: "(anonymous_17)",
106213
106316
  decl: {
106214
106317
  start: {
106215
- line: 156,
106318
+ line: 158,
106216
106319
  column: 16
106217
106320
  },
106218
106321
  end: {
106219
- line: 156,
106322
+ line: 158,
106220
106323
  column: 17
106221
106324
  }
106222
106325
  },
106223
106326
  loc: {
106224
106327
  start: {
106225
- line: 156,
106328
+ line: 158,
106226
106329
  column: 35
106227
106330
  },
106228
106331
  end: {
106229
- line: 197,
106332
+ line: 199,
106230
106333
  column: 17
106231
106334
  }
106232
106335
  },
106233
- line: 156
106336
+ line: 158
106234
106337
  },
106235
106338
  "18": {
106236
106339
  name: "(anonymous_18)",
106237
106340
  decl: {
106238
106341
  start: {
106239
- line: 168,
106342
+ line: 170,
106240
106343
  column: 20
106241
106344
  },
106242
106345
  end: {
106243
- line: 168,
106346
+ line: 170,
106244
106347
  column: 21
106245
106348
  }
106246
106349
  },
106247
106350
  loc: {
106248
106351
  start: {
106249
- line: 168,
106352
+ line: 170,
106250
106353
  column: 28
106251
106354
  },
106252
106355
  end: {
106253
- line: 168,
106356
+ line: 170,
106254
106357
  column: 52
106255
106358
  }
106256
106359
  },
106257
- line: 168
106360
+ line: 170
106258
106361
  },
106259
106362
  "19": {
106260
106363
  name: "(anonymous_19)",
106261
106364
  decl: {
106262
106365
  start: {
106263
- line: 175,
106366
+ line: 177,
106264
106367
  column: 33
106265
106368
  },
106266
106369
  end: {
106267
- line: 175,
106370
+ line: 177,
106268
106371
  column: 34
106269
106372
  }
106270
106373
  },
106271
106374
  loc: {
106272
106375
  start: {
106273
- line: 175,
106376
+ line: 177,
106274
106377
  column: 48
106275
106378
  },
106276
106379
  end: {
106277
- line: 196,
106380
+ line: 198,
106278
106381
  column: 19
106279
106382
  }
106280
106383
  },
106281
- line: 175
106384
+ line: 177
106282
106385
  },
106283
106386
  "20": {
106284
106387
  name: "(anonymous_20)",
106285
106388
  decl: {
106286
106389
  start: {
106287
- line: 183,
106390
+ line: 185,
106288
106391
  column: 51
106289
106392
  },
106290
106393
  end: {
106291
- line: 183,
106394
+ line: 185,
106292
106395
  column: 52
106293
106396
  }
106294
106397
  },
106295
106398
  loc: {
106296
106399
  start: {
106297
- line: 183,
106400
+ line: 185,
106298
106401
  column: 66
106299
106402
  },
106300
106403
  end: {
106301
- line: 192,
106404
+ line: 194,
106302
106405
  column: 25
106303
106406
  }
106304
106407
  },
106305
- line: 183
106408
+ line: 185
106306
106409
  }
106307
106410
  },
106308
106411
  branchMap: {
106309
106412
  "0": {
106310
106413
  loc: {
106311
106414
  start: {
106312
- line: 127,
106415
+ line: 129,
106313
106416
  column: 23
106314
106417
  },
106315
106418
  end: {
106316
- line: 127,
106419
+ line: 129,
106317
106420
  column: 71
106318
106421
  }
106319
106422
  },
106320
106423
  type: "cond-expr",
106321
106424
  locations: [{
106322
106425
  start: {
106323
- line: 127,
106426
+ line: 129,
106324
106427
  column: 33
106325
106428
  },
106326
106429
  end: {
106327
- line: 127,
106430
+ line: 129,
106328
106431
  column: 66
106329
106432
  }
106330
106433
  }, {
106331
106434
  start: {
106332
- line: 127,
106435
+ line: 129,
106333
106436
  column: 69
106334
106437
  },
106335
106438
  end: {
106336
- line: 127,
106439
+ line: 129,
106337
106440
  column: 71
106338
106441
  }
106339
106442
  }],
106340
- line: 127
106443
+ line: 129
106341
106444
  },
106342
106445
  "1": {
106343
106446
  loc: {
106344
106447
  start: {
106345
- line: 135,
106448
+ line: 137,
106346
106449
  column: 2
106347
106450
  },
106348
106451
  end: {
106349
- line: 140,
106452
+ line: 142,
106350
106453
  column: 3
106351
106454
  }
106352
106455
  },
106353
106456
  type: "if",
106354
106457
  locations: [{
106355
106458
  start: {
106356
- line: 135,
106459
+ line: 137,
106357
106460
  column: 2
106358
106461
  },
106359
106462
  end: {
106360
- line: 140,
106463
+ line: 142,
106361
106464
  column: 3
106362
106465
  }
106363
106466
  }, {
@@ -106370,60 +106473,60 @@ function cov_ksv9azglk() {
106370
106473
  column: undefined
106371
106474
  }
106372
106475
  }],
106373
- line: 135
106476
+ line: 137
106374
106477
  },
106375
106478
  "2": {
106376
106479
  loc: {
106377
106480
  start: {
106378
- line: 139,
106481
+ line: 141,
106379
106482
  column: 11
106380
106483
  },
106381
106484
  end: {
106382
- line: 139,
106485
+ line: 141,
106383
106486
  column: 55
106384
106487
  }
106385
106488
  },
106386
106489
  type: "binary-expr",
106387
106490
  locations: [{
106388
106491
  start: {
106389
- line: 139,
106492
+ line: 141,
106390
106493
  column: 11
106391
106494
  },
106392
106495
  end: {
106393
- line: 139,
106496
+ line: 141,
106394
106497
  column: 34
106395
106498
  }
106396
106499
  }, {
106397
106500
  start: {
106398
- line: 139,
106501
+ line: 141,
106399
106502
  column: 38
106400
106503
  },
106401
106504
  end: {
106402
- line: 139,
106505
+ line: 141,
106403
106506
  column: 55
106404
106507
  }
106405
106508
  }],
106406
- line: 139
106509
+ line: 141
106407
106510
  },
106408
106511
  "3": {
106409
106512
  loc: {
106410
106513
  start: {
106411
- line: 165,
106514
+ line: 167,
106412
106515
  column: 18
106413
106516
  },
106414
106517
  end: {
106415
- line: 165,
106518
+ line: 167,
106416
106519
  column: 40
106417
106520
  }
106418
106521
  },
106419
106522
  type: "if",
106420
106523
  locations: [{
106421
106524
  start: {
106422
- line: 165,
106525
+ line: 167,
106423
106526
  column: 18
106424
106527
  },
106425
106528
  end: {
106426
- line: 165,
106529
+ line: 167,
106427
106530
  column: 40
106428
106531
  }
106429
106532
  }, {
@@ -106436,27 +106539,27 @@ function cov_ksv9azglk() {
106436
106539
  column: undefined
106437
106540
  }
106438
106541
  }],
106439
- line: 165
106542
+ line: 167
106440
106543
  },
106441
106544
  "4": {
106442
106545
  loc: {
106443
106546
  start: {
106444
- line: 171,
106547
+ line: 173,
106445
106548
  column: 18
106446
106549
  },
106447
106550
  end: {
106448
- line: 171,
106551
+ line: 173,
106449
106552
  column: 46
106450
106553
  }
106451
106554
  },
106452
106555
  type: "if",
106453
106556
  locations: [{
106454
106557
  start: {
106455
- line: 171,
106558
+ line: 173,
106456
106559
  column: 18
106457
106560
  },
106458
106561
  end: {
106459
- line: 171,
106562
+ line: 173,
106460
106563
  column: 46
106461
106564
  }
106462
106565
  }, {
@@ -106469,60 +106572,60 @@ function cov_ksv9azglk() {
106469
106572
  column: undefined
106470
106573
  }
106471
106574
  }],
106472
- line: 171
106575
+ line: 173
106473
106576
  },
106474
106577
  "5": {
106475
106578
  loc: {
106476
106579
  start: {
106477
- line: 182,
106580
+ line: 184,
106478
106581
  column: 22
106479
106582
  },
106480
106583
  end: {
106481
- line: 192,
106584
+ line: 194,
106482
106585
  column: 26
106483
106586
  }
106484
106587
  },
106485
106588
  type: "binary-expr",
106486
106589
  locations: [{
106487
106590
  start: {
106488
- line: 182,
106591
+ line: 184,
106489
106592
  column: 22
106490
106593
  },
106491
106594
  end: {
106492
- line: 182,
106595
+ line: 184,
106493
106596
  column: 25
106494
106597
  }
106495
106598
  }, {
106496
106599
  start: {
106497
- line: 183,
106600
+ line: 185,
106498
106601
  column: 24
106499
106602
  },
106500
106603
  end: {
106501
- line: 192,
106604
+ line: 194,
106502
106605
  column: 26
106503
106606
  }
106504
106607
  }],
106505
- line: 182
106608
+ line: 184
106506
106609
  },
106507
106610
  "6": {
106508
106611
  loc: {
106509
106612
  start: {
106510
- line: 184,
106613
+ line: 186,
106511
106614
  column: 26
106512
106615
  },
106513
106616
  end: {
106514
- line: 191,
106617
+ line: 193,
106515
106618
  column: 27
106516
106619
  }
106517
106620
  },
106518
106621
  type: "if",
106519
106622
  locations: [{
106520
106623
  start: {
106521
- line: 184,
106624
+ line: 186,
106522
106625
  column: 26
106523
106626
  },
106524
106627
  end: {
106525
- line: 191,
106628
+ line: 193,
106526
106629
  column: 27
106527
106630
  }
106528
106631
  }, {
@@ -106535,7 +106638,7 @@ function cov_ksv9azglk() {
106535
106638
  column: undefined
106536
106639
  }
106537
106640
  }],
106538
- line: 184
106641
+ line: 186
106539
106642
  }
106540
106643
  },
106541
106644
  s: {
@@ -106587,7 +106690,8 @@ function cov_ksv9azglk() {
106587
106690
  "45": 0,
106588
106691
  "46": 0,
106589
106692
  "47": 0,
106590
- "48": 0
106693
+ "48": 0,
106694
+ "49": 0
106591
106695
  },
106592
106696
  f: {
106593
106697
  "0": 0,
@@ -106622,7 +106726,7 @@ function cov_ksv9azglk() {
106622
106726
  "6": [0, 0]
106623
106727
  },
106624
106728
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
106625
- hash: "6363243ced583b4bf6b9f147bfa510bedcc0246b"
106729
+ hash: "ce242fed07b10fc4df7c01982eda2c3b9055467f"
106626
106730
  };
106627
106731
  var coverage = global[gcv] || (global[gcv] = {});
106628
106732
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -106737,31 +106841,34 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
106737
106841
  "class": "neeto-editor__image",
106738
106842
  style: "height:".concat(figheight, "px;width:").concat(figwidth, "px;")
106739
106843
  });
106740
- cov_ksv9azglk().s[13]++;
106844
+ var captionAttrs = (cov_ksv9azglk().s[13]++, {
106845
+ style: "width:".concat(figwidth, "px;")
106846
+ });
106847
+ cov_ksv9azglk().s[14]++;
106741
106848
  return ["a", linkAttrs, ["figure", this.options.HTMLAttributes, ["div", resizeAttrs, ["img", mergeAttributes(HTMLAttributes, {
106742
106849
  draggable: false,
106743
106850
  contenteditable: false
106744
- })]], ["figcaption", 0]]];
106851
+ })]], ["figcaption", captionAttrs, 0]]];
106745
106852
  },
106746
106853
  addNodeView: function addNodeView() {
106747
106854
  cov_ksv9azglk().f[10]++;
106748
- cov_ksv9azglk().s[14]++;
106855
+ cov_ksv9azglk().s[15]++;
106749
106856
  return ReactNodeViewRenderer(ImageComponent);
106750
106857
  },
106751
106858
  addCommands: function addCommands() {
106752
106859
  var _this = this;
106753
106860
  cov_ksv9azglk().f[11]++;
106754
- cov_ksv9azglk().s[15]++;
106861
+ cov_ksv9azglk().s[16]++;
106755
106862
  return {
106756
106863
  setFigure: function setFigure(_ref3) {
106757
106864
  var caption = _ref3.caption,
106758
106865
  attrs = _objectWithoutProperties$1(_ref3, _excluded$9);
106759
106866
  cov_ksv9azglk().f[12]++;
106760
- cov_ksv9azglk().s[16]++;
106867
+ cov_ksv9azglk().s[17]++;
106761
106868
  return function (_ref4) {
106762
106869
  var chain = _ref4.chain;
106763
106870
  cov_ksv9azglk().f[13]++;
106764
- cov_ksv9azglk().s[17]++;
106871
+ cov_ksv9azglk().s[18]++;
106765
106872
  return chain().insertContent({
106766
106873
  type: _this.name,
106767
106874
  attrs: attrs,
@@ -106775,7 +106882,7 @@ var ImageExtension = (cov_ksv9azglk().s[0]++, Node$1.create({
106775
106882
  };
106776
106883
  }
106777
106884
  }));
106778
- cov_ksv9azglk().s[18]++;
106885
+ cov_ksv9azglk().s[19]++;
106779
106886
  var upload = /*#__PURE__*/function () {
106780
106887
  var _ref5 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(file, url) {
106781
106888
  var _response$data, uploader, response, imageSizeInMB;
@@ -106783,32 +106890,32 @@ var upload = /*#__PURE__*/function () {
106783
106890
  while (1) switch (_context.prev = _context.next) {
106784
106891
  case 0:
106785
106892
  cov_ksv9azglk().f[14]++;
106786
- cov_ksv9azglk().s[19]++;
106893
+ cov_ksv9azglk().s[20]++;
106787
106894
  if (!(file.size <= MAX_IMAGE_SIZE)) {
106788
106895
  _context.next = 13;
106789
106896
  break;
106790
106897
  }
106791
106898
  cov_ksv9azglk().b[1][0]++;
106792
- uploader = (cov_ksv9azglk().s[20]++, new DirectUpload({
106899
+ uploader = (cov_ksv9azglk().s[21]++, new DirectUpload({
106793
106900
  file: file,
106794
106901
  url: url
106795
106902
  }));
106796
- cov_ksv9azglk().s[21]++;
106903
+ cov_ksv9azglk().s[22]++;
106797
106904
  _context.next = 8;
106798
106905
  return uploader.create();
106799
106906
  case 8:
106800
106907
  response = _context.sent;
106801
- cov_ksv9azglk().s[22]++;
106908
+ cov_ksv9azglk().s[23]++;
106802
106909
  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
106910
  case 13:
106804
106911
  cov_ksv9azglk().b[1][1]++;
106805
106912
  case 14:
106806
- imageSizeInMB = (cov_ksv9azglk().s[23]++, MAX_IMAGE_SIZE / (1024 * 1024));
106807
- cov_ksv9azglk().s[24]++;
106913
+ imageSizeInMB = (cov_ksv9azglk().s[24]++, MAX_IMAGE_SIZE / (1024 * 1024));
106914
+ cov_ksv9azglk().s[25]++;
106808
106915
  neetoui.Toastr.error(t$8("error.imageSizeIsShouldBeLess", {
106809
106916
  limit: imageSizeInMB
106810
106917
  }));
106811
- cov_ksv9azglk().s[25]++;
106918
+ cov_ksv9azglk().s[26]++;
106812
106919
  return _context.abrupt("return", "");
106813
106920
  case 19:
106814
106921
  case "end":
@@ -106824,45 +106931,45 @@ var ImageExtension$1 = {
106824
106931
  configure: function configure(_ref6) {
106825
106932
  var uploadEndpoint = _ref6.uploadEndpoint;
106826
106933
  cov_ksv9azglk().f[15]++;
106827
- cov_ksv9azglk().s[26]++;
106934
+ cov_ksv9azglk().s[27]++;
106828
106935
  return ImageExtension.extend({
106829
106936
  addProseMirrorPlugins: function addProseMirrorPlugins() {
106830
106937
  cov_ksv9azglk().f[16]++;
106831
- cov_ksv9azglk().s[27]++;
106938
+ cov_ksv9azglk().s[28]++;
106832
106939
  return [new Plugin({
106833
106940
  props: {
106834
106941
  handleDOMEvents: {
106835
106942
  paste: function paste(view, event) {
106836
106943
  var _event$clipboardData, _event$clipboardData$;
106837
106944
  cov_ksv9azglk().f[17]++;
106838
- var _ref7 = (cov_ksv9azglk().s[28]++, view.state),
106945
+ var _ref7 = (cov_ksv9azglk().s[29]++, view.state),
106839
106946
  schema = _ref7.schema,
106840
106947
  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]++;
106948
+ 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);
106949
+ cov_ksv9azglk().s[31]++;
106843
106950
  if (!hasFiles) {
106844
106951
  cov_ksv9azglk().b[3][0]++;
106845
- cov_ksv9azglk().s[31]++;
106952
+ cov_ksv9azglk().s[32]++;
106846
106953
  return;
106847
106954
  } else {
106848
106955
  cov_ksv9azglk().b[3][1]++;
106849
106956
  }
106850
- var images = (cov_ksv9azglk().s[32]++, Array.from(event.clipboardData.files).filter(function (file) {
106957
+ var images = (cov_ksv9azglk().s[33]++, Array.from(event.clipboardData.files).filter(function (file) {
106851
106958
  cov_ksv9azglk().f[18]++;
106852
- cov_ksv9azglk().s[33]++;
106959
+ cov_ksv9azglk().s[34]++;
106853
106960
  return /image/i.test(file.type);
106854
106961
  }));
106855
- cov_ksv9azglk().s[34]++;
106962
+ cov_ksv9azglk().s[35]++;
106856
106963
  if (ramda.isEmpty(images)) {
106857
106964
  cov_ksv9azglk().b[4][0]++;
106858
- cov_ksv9azglk().s[35]++;
106965
+ cov_ksv9azglk().s[36]++;
106859
106966
  return;
106860
106967
  } else {
106861
106968
  cov_ksv9azglk().b[4][1]++;
106862
106969
  }
106863
- cov_ksv9azglk().s[36]++;
106864
- event.preventDefault();
106865
106970
  cov_ksv9azglk().s[37]++;
106971
+ event.preventDefault();
106972
+ cov_ksv9azglk().s[38]++;
106866
106973
  images.forEach( /*#__PURE__*/function () {
106867
106974
  var _ref8 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(image) {
106868
106975
  var id, node, transaction, url;
@@ -106870,30 +106977,30 @@ var ImageExtension$1 = {
106870
106977
  while (1) switch (_context2.prev = _context2.next) {
106871
106978
  case 0:
106872
106979
  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({
106980
+ id = (cov_ksv9azglk().s[39]++, Math.random().toString(36).substring(7));
106981
+ node = (cov_ksv9azglk().s[40]++, schema.nodes.image.create({
106875
106982
  id: id
106876
106983
  }));
106877
- transaction = (cov_ksv9azglk().s[40]++, view.state.tr.insert(pos, node));
106878
- cov_ksv9azglk().s[41]++;
106879
- view.dispatch(transaction);
106984
+ transaction = (cov_ksv9azglk().s[41]++, view.state.tr.insert(pos, node));
106880
106985
  cov_ksv9azglk().s[42]++;
106881
- _context2.prev = 7;
106986
+ view.dispatch(transaction);
106882
106987
  cov_ksv9azglk().s[43]++;
106988
+ _context2.prev = 7;
106989
+ cov_ksv9azglk().s[44]++;
106883
106990
  _context2.next = 11;
106884
106991
  return upload(image, uploadEndpoint);
106885
106992
  case 11:
106886
106993
  url = _context2.sent;
106887
- cov_ksv9azglk().s[44]++;
106994
+ cov_ksv9azglk().s[45]++;
106888
106995
  (cov_ksv9azglk().b[5][0]++, url) && (cov_ksv9azglk().b[5][1]++, view.state.doc.descendants(function (node, pos) {
106889
106996
  cov_ksv9azglk().f[20]++;
106890
- cov_ksv9azglk().s[45]++;
106997
+ cov_ksv9azglk().s[46]++;
106891
106998
  if (node.attrs.id === id) {
106892
106999
  cov_ksv9azglk().b[6][0]++;
106893
- var _transaction = (cov_ksv9azglk().s[46]++, view.state.tr.setNodeMarkup(pos, null, {
107000
+ var _transaction = (cov_ksv9azglk().s[47]++, view.state.tr.setNodeMarkup(pos, null, {
106894
107001
  src: url
106895
107002
  }));
106896
- cov_ksv9azglk().s[47]++;
107003
+ cov_ksv9azglk().s[48]++;
106897
107004
  view.dispatch(_transaction);
106898
107005
  } else {
106899
107006
  cov_ksv9azglk().b[6][1]++;
@@ -106904,7 +107011,7 @@ var ImageExtension$1 = {
106904
107011
  case 16:
106905
107012
  _context2.prev = 16;
106906
107013
  _context2.t0 = _context2["catch"](7);
106907
- cov_ksv9azglk().s[48]++;
107014
+ cov_ksv9azglk().s[49]++;
106908
107015
  view.dispatch(view.state.tr["delete"](pos, pos + 1));
106909
107016
  case 20:
106910
107017
  case "end":
@@ -106927,7 +107034,7 @@ var ImageExtension$1 = {
106927
107034
 
106928
107035
  function cov_mdp7zot9o() {
106929
107036
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/FigCaption.js";
106930
- var hash = "acc080d8b58d40104e6b30c98cc1f87bc613b1b9";
107037
+ var hash = "c9ac09c21dac0821bf21468750ec234bb65938af";
106931
107038
  var global = new Function("return this")();
106932
107039
  var gcv = "__coverage__";
106933
107040
  var coverageData = {
@@ -106935,12 +107042,12 @@ function cov_mdp7zot9o() {
106935
107042
  statementMap: {
106936
107043
  "0": {
106937
107044
  start: {
106938
- line: 11,
107045
+ line: 13,
106939
107046
  column: 4
106940
107047
  },
106941
107048
  end: {
106942
- line: 15,
106943
- column: 6
107049
+ line: 13,
107050
+ column: 35
106944
107051
  }
106945
107052
  }
106946
107053
  },
@@ -106949,25 +107056,25 @@ function cov_mdp7zot9o() {
106949
107056
  name: "(anonymous_0)",
106950
107057
  decl: {
106951
107058
  start: {
106952
- line: 10,
107059
+ line: 12,
106953
107060
  column: 2
106954
107061
  },
106955
107062
  end: {
106956
- line: 10,
107063
+ line: 12,
106957
107064
  column: 3
106958
107065
  }
106959
107066
  },
106960
107067
  loc: {
106961
107068
  start: {
106962
- line: 10,
107069
+ line: 12,
106963
107070
  column: 14
106964
107071
  },
106965
107072
  end: {
106966
- line: 16,
107073
+ line: 14,
106967
107074
  column: 3
106968
107075
  }
106969
107076
  },
106970
- line: 10
107077
+ line: 12
106971
107078
  }
106972
107079
  },
106973
107080
  branchMap: {},
@@ -106979,7 +107086,7 @@ function cov_mdp7zot9o() {
106979
107086
  },
106980
107087
  b: {},
106981
107088
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
106982
- hash: "acc080d8b58d40104e6b30c98cc1f87bc613b1b9"
107089
+ hash: "c9ac09c21dac0821bf21468750ec234bb65938af"
106983
107090
  };
106984
107091
  var coverage = global[gcv] || (global[gcv] = {});
106985
107092
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -106997,6 +107104,7 @@ function cov_mdp7zot9o() {
106997
107104
  cov_mdp7zot9o();
106998
107105
  var FigCaption = Node$1.create({
106999
107106
  name: "figcaption",
107107
+ content: "text*",
107000
107108
  selectable: false,
107001
107109
  draggable: false,
107002
107110
  parseHTML: function parseHTML() {