@bigbinary/neeto-editor 1.25.19 → 1.25.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -107241,7 +107241,7 @@ var TableView = /*#__PURE__*/function () {
107241
107241
 
107242
107242
  function cov_nye8a7co4() {
107243
107243
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Table/ExtensionConfig.js";
107244
- var hash = "de894d7c43cfd0d353e9ecad543e58d66a576906";
107244
+ var hash = "de033c6cf3fecaeadaeeac0cc2c558f24c74e3a0";
107245
107245
  var global = new Function("return this")();
107246
107246
  var gcv = "__coverage__";
107247
107247
  var coverageData = {
@@ -107253,7 +107253,7 @@ function cov_nye8a7co4() {
107253
107253
  column: 14
107254
107254
  },
107255
107255
  end: {
107256
- line: 28,
107256
+ line: 36,
107257
107257
  column: 2
107258
107258
  }
107259
107259
  },
@@ -107270,20 +107270,50 @@ function cov_nye8a7co4() {
107270
107270
  "2": {
107271
107271
  start: {
107272
107272
  line: 18,
107273
+ column: 22
107274
+ },
107275
+ end: {
107276
+ line: 20,
107277
+ column: 5
107278
+ }
107279
+ },
107280
+ "3": {
107281
+ start: {
107282
+ line: 19,
107283
+ column: 13
107284
+ },
107285
+ end: {
107286
+ line: 19,
107287
+ column: 74
107288
+ }
107289
+ },
107290
+ "4": {
107291
+ start: {
107292
+ line: 22,
107273
107293
  column: 4
107274
107294
  },
107275
107295
  end: {
107296
+ line: 22,
107297
+ column: 67
107298
+ }
107299
+ },
107300
+ "5": {
107301
+ start: {
107276
107302
  line: 26,
107303
+ column: 4
107304
+ },
107305
+ end: {
107306
+ line: 34,
107277
107307
  column: 6
107278
107308
  }
107279
107309
  },
107280
- "3": {
107310
+ "6": {
107281
107311
  start: {
107282
- line: 21,
107312
+ line: 29,
107283
107313
  column: 8
107284
107314
  },
107285
107315
  end: {
107286
- line: 25,
107316
+ line: 33,
107287
107317
  column: 16
107288
107318
  }
107289
107319
  }
@@ -107328,10 +107358,10 @@ function cov_nye8a7co4() {
107328
107358
  loc: {
107329
107359
  start: {
107330
107360
  line: 17,
107331
- column: 25
107361
+ column: 23
107332
107362
  },
107333
107363
  end: {
107334
- line: 27,
107364
+ line: 23,
107335
107365
  column: 3
107336
107366
  }
107337
107367
  },
@@ -107341,42 +107371,131 @@ function cov_nye8a7co4() {
107341
107371
  name: "(anonymous_2)",
107342
107372
  decl: {
107343
107373
  start: {
107344
- line: 20,
107374
+ line: 19,
107375
+ column: 6
107376
+ },
107377
+ end: {
107378
+ line: 19,
107379
+ column: 7
107380
+ }
107381
+ },
107382
+ loc: {
107383
+ start: {
107384
+ line: 19,
107385
+ column: 13
107386
+ },
107387
+ end: {
107388
+ line: 19,
107389
+ column: 74
107390
+ }
107391
+ },
107392
+ line: 19
107393
+ },
107394
+ "3": {
107395
+ name: "(anonymous_3)",
107396
+ decl: {
107397
+ start: {
107398
+ line: 25,
107399
+ column: 2
107400
+ },
107401
+ end: {
107402
+ line: 25,
107403
+ column: 3
107404
+ }
107405
+ },
107406
+ loc: {
107407
+ start: {
107408
+ line: 25,
107409
+ column: 25
107410
+ },
107411
+ end: {
107412
+ line: 35,
107413
+ column: 3
107414
+ }
107415
+ },
107416
+ line: 25
107417
+ },
107418
+ "4": {
107419
+ name: "(anonymous_4)",
107420
+ decl: {
107421
+ start: {
107422
+ line: 28,
107345
107423
  column: 19
107346
107424
  },
107347
107425
  end: {
107348
- line: 20,
107426
+ line: 28,
107349
107427
  column: 20
107350
107428
  }
107351
107429
  },
107352
107430
  loc: {
107353
107431
  start: {
107354
- line: 21,
107432
+ line: 29,
107355
107433
  column: 8
107356
107434
  },
107357
107435
  end: {
107358
- line: 25,
107436
+ line: 33,
107359
107437
  column: 16
107360
107438
  }
107361
107439
  },
107362
- line: 21
107440
+ line: 29
107441
+ }
107442
+ },
107443
+ branchMap: {
107444
+ "0": {
107445
+ loc: {
107446
+ start: {
107447
+ line: 19,
107448
+ column: 40
107449
+ },
107450
+ end: {
107451
+ line: 19,
107452
+ column: 66
107453
+ }
107454
+ },
107455
+ type: "binary-expr",
107456
+ locations: [{
107457
+ start: {
107458
+ line: 19,
107459
+ column: 40
107460
+ },
107461
+ end: {
107462
+ line: 19,
107463
+ column: 59
107464
+ }
107465
+ }, {
107466
+ start: {
107467
+ line: 19,
107468
+ column: 63
107469
+ },
107470
+ end: {
107471
+ line: 19,
107472
+ column: 66
107473
+ }
107474
+ }],
107475
+ line: 19
107363
107476
  }
107364
107477
  },
107365
- branchMap: {},
107366
107478
  s: {
107367
107479
  "0": 0,
107368
107480
  "1": 0,
107369
107481
  "2": 0,
107370
- "3": 0
107482
+ "3": 0,
107483
+ "4": 0,
107484
+ "5": 0,
107485
+ "6": 0
107371
107486
  },
107372
107487
  f: {
107373
107488
  "0": 0,
107374
107489
  "1": 0,
107375
- "2": 0
107490
+ "2": 0,
107491
+ "3": 0,
107492
+ "4": 0
107493
+ },
107494
+ b: {
107495
+ "0": [0, 0]
107376
107496
  },
107377
- b: {},
107378
107497
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
107379
- hash: "de894d7c43cfd0d353e9ecad543e58d66a576906"
107498
+ hash: "de033c6cf3fecaeadaeeac0cc2c558f24c74e3a0"
107380
107499
  };
107381
107500
  var coverage = global[gcv] || (global[gcv] = {});
107382
107501
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -107408,15 +107527,30 @@ var Table = (cov_nye8a7co4().s[0]++, Table$2.extend({
107408
107527
  allowTableNodeSelection: true
107409
107528
  };
107410
107529
  },
107530
+ renderHTML: function renderHTML(_ref) {
107531
+ var _node$content, _node$content$content, _node$content$content2, _node$content$content3, _node$content$content4;
107532
+ var node = _ref.node;
107533
+ cov_nye8a7co4().f[1]++;
107534
+ 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) {
107535
+ var _col$attrs;
107536
+ cov_nye8a7co4().f[2]++;
107537
+ cov_nye8a7co4().s[3]++;
107538
+ return ["col", {
107539
+ 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;")
107540
+ }];
107541
+ }));
107542
+ cov_nye8a7co4().s[4]++;
107543
+ return ["table", {}, ["colgroup"].concat(_toConsumableArray$1(colgroups)), ["tbody", 0]];
107544
+ },
107411
107545
  addKeyboardShortcuts: function addKeyboardShortcuts() {
107412
107546
  var _this$parent,
107413
107547
  _this = this;
107414
- cov_nye8a7co4().f[1]++;
107415
- cov_nye8a7co4().s[2]++;
107548
+ cov_nye8a7co4().f[3]++;
107549
+ cov_nye8a7co4().s[5]++;
107416
107550
  return _objectSpread$3(_objectSpread$3({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
107417
107551
  "Mod-alt-t": function ModAltT() {
107418
- cov_nye8a7co4().f[2]++;
107419
- cov_nye8a7co4().s[3]++;
107552
+ cov_nye8a7co4().f[4]++;
107553
+ cov_nye8a7co4().s[6]++;
107420
107554
  return _this.editor.chain().focus().insertTable({
107421
107555
  rows: 3,
107422
107556
  cols: 3,