@bigbinary/neeto-editor 1.25.19 → 1.25.21

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
@@ -107269,7 +107269,7 @@ var TableView = /*#__PURE__*/function () {
107269
107269
 
107270
107270
  function cov_nye8a7co4() {
107271
107271
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Table/ExtensionConfig.js";
107272
- var hash = "de894d7c43cfd0d353e9ecad543e58d66a576906";
107272
+ var hash = "de033c6cf3fecaeadaeeac0cc2c558f24c74e3a0";
107273
107273
  var global = new Function("return this")();
107274
107274
  var gcv = "__coverage__";
107275
107275
  var coverageData = {
@@ -107281,7 +107281,7 @@ function cov_nye8a7co4() {
107281
107281
  column: 14
107282
107282
  },
107283
107283
  end: {
107284
- line: 28,
107284
+ line: 36,
107285
107285
  column: 2
107286
107286
  }
107287
107287
  },
@@ -107298,20 +107298,50 @@ function cov_nye8a7co4() {
107298
107298
  "2": {
107299
107299
  start: {
107300
107300
  line: 18,
107301
+ column: 22
107302
+ },
107303
+ end: {
107304
+ line: 20,
107305
+ column: 5
107306
+ }
107307
+ },
107308
+ "3": {
107309
+ start: {
107310
+ line: 19,
107311
+ column: 13
107312
+ },
107313
+ end: {
107314
+ line: 19,
107315
+ column: 74
107316
+ }
107317
+ },
107318
+ "4": {
107319
+ start: {
107320
+ line: 22,
107301
107321
  column: 4
107302
107322
  },
107303
107323
  end: {
107324
+ line: 22,
107325
+ column: 67
107326
+ }
107327
+ },
107328
+ "5": {
107329
+ start: {
107304
107330
  line: 26,
107331
+ column: 4
107332
+ },
107333
+ end: {
107334
+ line: 34,
107305
107335
  column: 6
107306
107336
  }
107307
107337
  },
107308
- "3": {
107338
+ "6": {
107309
107339
  start: {
107310
- line: 21,
107340
+ line: 29,
107311
107341
  column: 8
107312
107342
  },
107313
107343
  end: {
107314
- line: 25,
107344
+ line: 33,
107315
107345
  column: 16
107316
107346
  }
107317
107347
  }
@@ -107356,10 +107386,10 @@ function cov_nye8a7co4() {
107356
107386
  loc: {
107357
107387
  start: {
107358
107388
  line: 17,
107359
- column: 25
107389
+ column: 23
107360
107390
  },
107361
107391
  end: {
107362
- line: 27,
107392
+ line: 23,
107363
107393
  column: 3
107364
107394
  }
107365
107395
  },
@@ -107369,42 +107399,131 @@ function cov_nye8a7co4() {
107369
107399
  name: "(anonymous_2)",
107370
107400
  decl: {
107371
107401
  start: {
107372
- line: 20,
107402
+ line: 19,
107403
+ column: 6
107404
+ },
107405
+ end: {
107406
+ line: 19,
107407
+ column: 7
107408
+ }
107409
+ },
107410
+ loc: {
107411
+ start: {
107412
+ line: 19,
107413
+ column: 13
107414
+ },
107415
+ end: {
107416
+ line: 19,
107417
+ column: 74
107418
+ }
107419
+ },
107420
+ line: 19
107421
+ },
107422
+ "3": {
107423
+ name: "(anonymous_3)",
107424
+ decl: {
107425
+ start: {
107426
+ line: 25,
107427
+ column: 2
107428
+ },
107429
+ end: {
107430
+ line: 25,
107431
+ column: 3
107432
+ }
107433
+ },
107434
+ loc: {
107435
+ start: {
107436
+ line: 25,
107437
+ column: 25
107438
+ },
107439
+ end: {
107440
+ line: 35,
107441
+ column: 3
107442
+ }
107443
+ },
107444
+ line: 25
107445
+ },
107446
+ "4": {
107447
+ name: "(anonymous_4)",
107448
+ decl: {
107449
+ start: {
107450
+ line: 28,
107373
107451
  column: 19
107374
107452
  },
107375
107453
  end: {
107376
- line: 20,
107454
+ line: 28,
107377
107455
  column: 20
107378
107456
  }
107379
107457
  },
107380
107458
  loc: {
107381
107459
  start: {
107382
- line: 21,
107460
+ line: 29,
107383
107461
  column: 8
107384
107462
  },
107385
107463
  end: {
107386
- line: 25,
107464
+ line: 33,
107387
107465
  column: 16
107388
107466
  }
107389
107467
  },
107390
- line: 21
107468
+ line: 29
107469
+ }
107470
+ },
107471
+ branchMap: {
107472
+ "0": {
107473
+ loc: {
107474
+ start: {
107475
+ line: 19,
107476
+ column: 40
107477
+ },
107478
+ end: {
107479
+ line: 19,
107480
+ column: 66
107481
+ }
107482
+ },
107483
+ type: "binary-expr",
107484
+ locations: [{
107485
+ start: {
107486
+ line: 19,
107487
+ column: 40
107488
+ },
107489
+ end: {
107490
+ line: 19,
107491
+ column: 59
107492
+ }
107493
+ }, {
107494
+ start: {
107495
+ line: 19,
107496
+ column: 63
107497
+ },
107498
+ end: {
107499
+ line: 19,
107500
+ column: 66
107501
+ }
107502
+ }],
107503
+ line: 19
107391
107504
  }
107392
107505
  },
107393
- branchMap: {},
107394
107506
  s: {
107395
107507
  "0": 0,
107396
107508
  "1": 0,
107397
107509
  "2": 0,
107398
- "3": 0
107510
+ "3": 0,
107511
+ "4": 0,
107512
+ "5": 0,
107513
+ "6": 0
107399
107514
  },
107400
107515
  f: {
107401
107516
  "0": 0,
107402
107517
  "1": 0,
107403
- "2": 0
107518
+ "2": 0,
107519
+ "3": 0,
107520
+ "4": 0
107521
+ },
107522
+ b: {
107523
+ "0": [0, 0]
107404
107524
  },
107405
- b: {},
107406
107525
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
107407
- hash: "de894d7c43cfd0d353e9ecad543e58d66a576906"
107526
+ hash: "de033c6cf3fecaeadaeeac0cc2c558f24c74e3a0"
107408
107527
  };
107409
107528
  var coverage = global[gcv] || (global[gcv] = {});
107410
107529
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -107436,15 +107555,30 @@ var Table = (cov_nye8a7co4().s[0]++, Table$2.extend({
107436
107555
  allowTableNodeSelection: true
107437
107556
  };
107438
107557
  },
107558
+ renderHTML: function renderHTML(_ref) {
107559
+ var _node$content, _node$content$content, _node$content$content2, _node$content$content3, _node$content$content4;
107560
+ var node = _ref.node;
107561
+ cov_nye8a7co4().f[1]++;
107562
+ var colgroups = (cov_nye8a7co4().s[2]++, node === null || node === void 0 ? void 0 : (_node$content = node.content) === null || _node$content === void 0 ? void 0 : (_node$content$content = _node$content.content) === null || _node$content$content === void 0 ? void 0 : (_node$content$content2 = _node$content$content[0]) === null || _node$content$content2 === void 0 ? void 0 : (_node$content$content3 = _node$content$content2.content) === null || _node$content$content3 === void 0 ? void 0 : (_node$content$content4 = _node$content$content3.content) === null || _node$content$content4 === void 0 ? void 0 : _node$content$content4.map(function (col) {
107563
+ var _col$attrs;
107564
+ cov_nye8a7co4().f[2]++;
107565
+ cov_nye8a7co4().s[3]++;
107566
+ return ["col", {
107567
+ style: "width: ".concat((cov_nye8a7co4().b[0][0]++, (_col$attrs = col.attrs) === null || _col$attrs === void 0 ? void 0 : _col$attrs.colwidth) || (cov_nye8a7co4().b[0][1]++, 100), "px;")
107568
+ }];
107569
+ }));
107570
+ cov_nye8a7co4().s[4]++;
107571
+ return ["table", {}, ["colgroup"].concat(_toConsumableArray$1(colgroups)), ["tbody", 0]];
107572
+ },
107439
107573
  addKeyboardShortcuts: function addKeyboardShortcuts() {
107440
107574
  var _this$parent,
107441
107575
  _this = this;
107442
- cov_nye8a7co4().f[1]++;
107443
- cov_nye8a7co4().s[2]++;
107576
+ cov_nye8a7co4().f[3]++;
107577
+ cov_nye8a7co4().s[5]++;
107444
107578
  return _objectSpread$3(_objectSpread$3({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
107445
107579
  "Mod-alt-t": function ModAltT() {
107446
- cov_nye8a7co4().f[2]++;
107447
- cov_nye8a7co4().s[3]++;
107580
+ cov_nye8a7co4().f[4]++;
107581
+ cov_nye8a7co4().s[6]++;
107448
107582
  return _this.editor.chain().focus().insertTable({
107449
107583
  rows: 3,
107450
107584
  cols: 3,
@@ -111854,7 +111988,7 @@ var LocalUploader = function LocalUploader(_ref) {
111854
111988
  cov_23n4f4s494().s[37]++;
111855
111989
  uppy.use(DropTarget, {
111856
111990
  target: dropTargetRef === null || dropTargetRef === void 0 ? void 0 : dropTargetRef.current,
111857
- afterAddingFiles: afterAddingFiles
111991
+ onDrop: afterAddingFiles
111858
111992
  });
111859
111993
  cov_23n4f4s494().s[38]++;
111860
111994
  return function () {