@bigbinary/neeto-editor 1.25.18 → 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
@@ -7,6 +7,7 @@ import { Toastr, Dropdown as Dropdown$1, Tooltip, Input, Button as Button$1, Typ
7
7
  import { LeftAlign, CenterAlign, RightAlign, Delete, Close, MenuVertical, MenuHorizontal, Paragraph as Paragraph$1, TextH1, TextH2, Text as Text$2, ListNumber, ListDot, ImageUpload, Video, Blockquote as Blockquote$1, Code as Code$1, Smiley, Minus, MediaVideo, Notes, NeetoChangelog, TextBold, TextItalic, Underline as Underline$1, TextCross, Highlight as Highlight$1, Quote, Braces, Undo, Redo, Check, Email as Email$1, Link as Link$1, Settings, File as File$2 } from '@bigbinary/neeto-icons';
8
8
  import axios from 'axios';
9
9
  import ReactDOM, { flushSync, createPortal } from 'react-dom';
10
+ import { useFuncDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
10
11
  import { FastField } from 'formik';
11
12
 
12
13
  // ::- Persistent data structure representing an ordered mapping from
@@ -107240,7 +107241,7 @@ var TableView = /*#__PURE__*/function () {
107240
107241
 
107241
107242
  function cov_nye8a7co4() {
107242
107243
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Table/ExtensionConfig.js";
107243
- var hash = "de894d7c43cfd0d353e9ecad543e58d66a576906";
107244
+ var hash = "de033c6cf3fecaeadaeeac0cc2c558f24c74e3a0";
107244
107245
  var global = new Function("return this")();
107245
107246
  var gcv = "__coverage__";
107246
107247
  var coverageData = {
@@ -107252,7 +107253,7 @@ function cov_nye8a7co4() {
107252
107253
  column: 14
107253
107254
  },
107254
107255
  end: {
107255
- line: 28,
107256
+ line: 36,
107256
107257
  column: 2
107257
107258
  }
107258
107259
  },
@@ -107269,20 +107270,50 @@ function cov_nye8a7co4() {
107269
107270
  "2": {
107270
107271
  start: {
107271
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,
107272
107293
  column: 4
107273
107294
  },
107274
107295
  end: {
107296
+ line: 22,
107297
+ column: 67
107298
+ }
107299
+ },
107300
+ "5": {
107301
+ start: {
107275
107302
  line: 26,
107303
+ column: 4
107304
+ },
107305
+ end: {
107306
+ line: 34,
107276
107307
  column: 6
107277
107308
  }
107278
107309
  },
107279
- "3": {
107310
+ "6": {
107280
107311
  start: {
107281
- line: 21,
107312
+ line: 29,
107282
107313
  column: 8
107283
107314
  },
107284
107315
  end: {
107285
- line: 25,
107316
+ line: 33,
107286
107317
  column: 16
107287
107318
  }
107288
107319
  }
@@ -107327,10 +107358,10 @@ function cov_nye8a7co4() {
107327
107358
  loc: {
107328
107359
  start: {
107329
107360
  line: 17,
107330
- column: 25
107361
+ column: 23
107331
107362
  },
107332
107363
  end: {
107333
- line: 27,
107364
+ line: 23,
107334
107365
  column: 3
107335
107366
  }
107336
107367
  },
@@ -107340,42 +107371,131 @@ function cov_nye8a7co4() {
107340
107371
  name: "(anonymous_2)",
107341
107372
  decl: {
107342
107373
  start: {
107343
- 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,
107344
107423
  column: 19
107345
107424
  },
107346
107425
  end: {
107347
- line: 20,
107426
+ line: 28,
107348
107427
  column: 20
107349
107428
  }
107350
107429
  },
107351
107430
  loc: {
107352
107431
  start: {
107353
- line: 21,
107432
+ line: 29,
107354
107433
  column: 8
107355
107434
  },
107356
107435
  end: {
107357
- line: 25,
107436
+ line: 33,
107358
107437
  column: 16
107359
107438
  }
107360
107439
  },
107361
- 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
107362
107476
  }
107363
107477
  },
107364
- branchMap: {},
107365
107478
  s: {
107366
107479
  "0": 0,
107367
107480
  "1": 0,
107368
107481
  "2": 0,
107369
- "3": 0
107482
+ "3": 0,
107483
+ "4": 0,
107484
+ "5": 0,
107485
+ "6": 0
107370
107486
  },
107371
107487
  f: {
107372
107488
  "0": 0,
107373
107489
  "1": 0,
107374
- "2": 0
107490
+ "2": 0,
107491
+ "3": 0,
107492
+ "4": 0
107493
+ },
107494
+ b: {
107495
+ "0": [0, 0]
107375
107496
  },
107376
- b: {},
107377
107497
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
107378
- hash: "de894d7c43cfd0d353e9ecad543e58d66a576906"
107498
+ hash: "de033c6cf3fecaeadaeeac0cc2c558f24c74e3a0"
107379
107499
  };
107380
107500
  var coverage = global[gcv] || (global[gcv] = {});
107381
107501
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -107407,15 +107527,30 @@ var Table = (cov_nye8a7co4().s[0]++, Table$2.extend({
107407
107527
  allowTableNodeSelection: true
107408
107528
  };
107409
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
+ },
107410
107545
  addKeyboardShortcuts: function addKeyboardShortcuts() {
107411
107546
  var _this$parent,
107412
107547
  _this = this;
107413
- cov_nye8a7co4().f[1]++;
107414
- cov_nye8a7co4().s[2]++;
107548
+ cov_nye8a7co4().f[3]++;
107549
+ cov_nye8a7co4().s[5]++;
107415
107550
  return _objectSpread$3(_objectSpread$3({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
107416
107551
  "Mod-alt-t": function ModAltT() {
107417
- cov_nye8a7co4().f[2]++;
107418
- cov_nye8a7co4().s[3]++;
107552
+ cov_nye8a7co4().f[4]++;
107553
+ cov_nye8a7co4().s[6]++;
107419
107554
  return _this.editor.chain().focus().insertTable({
107420
107555
  rows: 3,
107421
107556
  cols: 3,
@@ -129592,7 +129727,7 @@ var Menu = function Menu(props) {
129592
129727
  var _excluded$2 = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "menuClassName", "attachmentsClassName", "isMenuIndependent", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "uploadEndpoint", "variables", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children"];
129593
129728
  function cov_1p0jklglk1() {
129594
129729
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/index.jsx";
129595
- var hash = "009e9991f109937e0cf3853bbc8e0b4c04717259";
129730
+ var hash = "c5d48f13e7e1021183c30c48104047469e66db07";
129596
129731
  var global = new Function("return this")();
129597
129732
  var gcv = "__coverage__";
129598
129733
  var coverageData = {
@@ -129600,291 +129735,301 @@ function cov_1p0jklglk1() {
129600
129735
  statementMap: {
129601
129736
  "0": {
129602
129737
  start: {
129603
- line: 27,
129738
+ line: 28,
129604
129739
  column: 15
129605
129740
  },
129606
129741
  end: {
129607
- line: 215,
129742
+ line: 221,
129608
129743
  column: 1
129609
129744
  }
129610
129745
  },
129611
129746
  "1": {
129612
129747
  start: {
129613
- line: 66,
129748
+ line: 67,
129614
129749
  column: 22
129615
129750
  },
129616
129751
  end: {
129617
- line: 66,
129752
+ line: 67,
129618
129753
  column: 34
129619
129754
  }
129620
129755
  },
129621
129756
  "2": {
129622
129757
  start: {
129623
- line: 67,
129758
+ line: 68,
129624
129759
  column: 30
129625
129760
  },
129626
129761
  end: {
129627
- line: 67,
129762
+ line: 68,
129628
129763
  column: 73
129629
129764
  }
129630
129765
  },
129631
129766
  "3": {
129632
129767
  start: {
129633
- line: 68,
129768
+ line: 69,
129634
129769
  column: 29
129635
129770
  },
129636
129771
  end: {
129637
- line: 68,
129772
+ line: 69,
129638
129773
  column: 72
129639
129774
  }
129640
129775
  },
129641
129776
  "4": {
129642
129777
  start: {
129643
- line: 70,
129778
+ line: 71,
129644
129779
  column: 4
129645
129780
  },
129646
129781
  end: {
129647
- line: 71,
129782
+ line: 72,
129648
129783
  column: 48
129649
129784
  }
129650
129785
  },
129651
129786
  "5": {
129652
129787
  start: {
129653
- line: 72,
129788
+ line: 73,
129654
129789
  column: 28
129655
129790
  },
129656
129791
  end: {
129657
- line: 72,
129792
+ line: 73,
129658
129793
  column: 48
129659
129794
  }
129660
129795
  },
129661
129796
  "6": {
129662
129797
  start: {
129663
- line: 73,
129798
+ line: 74,
129664
129799
  column: 29
129665
129800
  },
129666
129801
  end: {
129667
- line: 73,
129802
+ line: 74,
129668
129803
  column: 50
129669
129804
  }
129670
129805
  },
129671
129806
  "7": {
129672
129807
  start: {
129673
- line: 74,
129808
+ line: 75,
129674
129809
  column: 32
129675
129810
  },
129676
129811
  end: {
129677
- line: 74,
129812
+ line: 75,
129678
129813
  column: 50
129679
129814
  }
129680
129815
  },
129681
129816
  "8": {
129682
129817
  start: {
129683
- line: 75,
129818
+ line: 76,
129684
129819
  column: 30
129685
129820
  },
129686
129821
  end: {
129687
- line: 75,
129822
+ line: 76,
129688
129823
  column: 43
129689
129824
  }
129690
129825
  },
129691
129826
  "9": {
129692
129827
  start: {
129693
- line: 76,
129828
+ line: 77,
129694
129829
  column: 50
129695
129830
  },
129696
129831
  end: {
129697
- line: 76,
129832
+ line: 77,
129698
129833
  column: 65
129699
129834
  }
129700
129835
  },
129701
129836
  "10": {
129702
129837
  start: {
129703
- line: 77,
129838
+ line: 78,
129704
129839
  column: 44
129705
129840
  },
129706
129841
  end: {
129707
- line: 80,
129842
+ line: 81,
129708
129843
  column: 4
129709
129844
  }
129710
129845
  },
129711
129846
  "11": {
129712
129847
  start: {
129713
- line: 82,
129848
+ line: 83,
129714
129849
  column: 28
129715
129850
  },
129716
129851
  end: {
129717
- line: 82,
129852
+ line: 83,
129718
129853
  column: 40
129719
129854
  }
129720
129855
  },
129721
129856
  "12": {
129722
129857
  start: {
129723
- line: 83,
129858
+ line: 84,
129724
129859
  column: 34
129725
129860
  },
129726
129861
  end: {
129727
- line: 84,
129862
+ line: 85,
129728
129863
  column: 66
129729
129864
  }
129730
129865
  },
129731
129866
  "13": {
129732
129867
  start: {
129733
- line: 84,
129868
+ line: 85,
129734
129869
  column: 4
129735
129870
  },
129736
129871
  end: {
129737
- line: 84,
129872
+ line: 85,
129738
129873
  column: 66
129739
129874
  }
129740
129875
  },
129741
129876
  "14": {
129742
129877
  start: {
129743
- line: 86,
129878
+ line: 87,
129744
129879
  column: 27
129745
129880
  },
129746
129881
  end: {
129747
- line: 100,
129882
+ line: 101,
129748
129883
  column: 4
129749
129884
  }
129750
129885
  },
129751
129886
  "15": {
129752
129887
  start: {
129753
- line: 101,
129888
+ line: 102,
129754
129889
  column: 2
129755
129890
  },
129756
129891
  end: {
129757
- line: 101,
129892
+ line: 102,
129758
129893
  column: 38
129759
129894
  }
129760
129895
  },
129761
129896
  "16": {
129762
129897
  start: {
129763
- line: 103,
129764
- column: 24
129898
+ line: 104,
129899
+ column: 23
129765
129900
  },
129766
129901
  end: {
129767
- line: 110,
129768
- column: 4
129902
+ line: 107,
129903
+ column: 3
129769
129904
  }
129770
129905
  },
129771
129906
  "17": {
129772
129907
  start: {
129773
- line: 112,
129774
- column: 17
129908
+ line: 105,
129909
+ column: 20
129775
129910
  },
129776
129911
  end: {
129777
- line: 129,
129778
- column: 4
129912
+ line: 105,
129913
+ column: 46
129779
129914
  }
129780
129915
  },
129781
129916
  "18": {
129782
129917
  start: {
129783
- line: 125,
129784
- column: 30
129918
+ line: 109,
129919
+ column: 24
129785
129920
  },
129786
129921
  end: {
129787
- line: 125,
129788
- column: 70
129922
+ line: 116,
129923
+ column: 4
129789
129924
  }
129790
129925
  },
129791
129926
  "19": {
129792
129927
  start: {
129793
- line: 126,
129794
- column: 30
129928
+ line: 118,
129929
+ column: 17
129795
129930
  },
129796
129931
  end: {
129797
- line: 126,
129798
- column: 56
129932
+ line: 135,
129933
+ column: 4
129799
129934
  }
129800
129935
  },
129801
129936
  "20": {
129802
129937
  start: {
129803
- line: 132,
129938
+ line: 131,
129939
+ column: 30
129940
+ },
129941
+ end: {
129942
+ line: 131,
129943
+ column: 70
129944
+ }
129945
+ },
129946
+ "21": {
129947
+ start: {
129948
+ line: 138,
129804
129949
  column: 2
129805
129950
  },
129806
129951
  end: {
129807
- line: 135,
129952
+ line: 141,
129808
129953
  column: 6
129809
129954
  }
129810
129955
  },
129811
- "21": {
129956
+ "22": {
129812
129957
  start: {
129813
- line: 132,
129958
+ line: 138,
129814
129959
  column: 34
129815
129960
  },
129816
129961
  end: {
129817
- line: 135,
129962
+ line: 141,
129818
129963
  column: 3
129819
129964
  }
129820
129965
  },
129821
- "22": {
129966
+ "23": {
129822
129967
  start: {
129823
- line: 134,
129968
+ line: 140,
129824
129969
  column: 17
129825
129970
  },
129826
129971
  end: {
129827
- line: 134,
129972
+ line: 140,
129828
129973
  column: 40
129829
129974
  }
129830
129975
  },
129831
- "23": {
129976
+ "24": {
129832
129977
  start: {
129833
- line: 138,
129978
+ line: 144,
129834
129979
  column: 2
129835
129980
  },
129836
129981
  end: {
129837
- line: 141,
129982
+ line: 147,
129838
129983
  column: 4
129839
129984
  }
129840
129985
  },
129841
- "24": {
129986
+ "25": {
129842
129987
  start: {
129843
- line: 139,
129988
+ line: 145,
129844
129989
  column: 4
129845
129990
  },
129846
129991
  end: {
129847
- line: 139,
129992
+ line: 145,
129848
129993
  column: 30
129849
129994
  }
129850
129995
  },
129851
- "25": {
129996
+ "26": {
129852
129997
  start: {
129853
- line: 139,
129998
+ line: 145,
129854
129999
  column: 23
129855
130000
  },
129856
130001
  end: {
129857
- line: 139,
130002
+ line: 145,
129858
130003
  column: 30
129859
130004
  }
129860
130005
  },
129861
- "26": {
130006
+ "27": {
129862
130007
  start: {
129863
- line: 140,
130008
+ line: 146,
129864
130009
  column: 4
129865
130010
  },
129866
130011
  end: {
129867
- line: 140,
130012
+ line: 146,
129868
130013
  column: 71
129869
130014
  }
129870
130015
  },
129871
- "27": {
130016
+ "28": {
129872
130017
  start: {
129873
- line: 143,
130018
+ line: 149,
129874
130019
  column: 2
129875
130020
  },
129876
130021
  end: {
129877
- line: 214,
130022
+ line: 220,
129878
130023
  column: 4
129879
130024
  }
129880
130025
  },
129881
- "28": {
130026
+ "29": {
129882
130027
  start: {
129883
- line: 188,
130028
+ line: 194,
129884
130029
  column: 29
129885
130030
  },
129886
130031
  end: {
129887
- line: 188,
130032
+ line: 194,
129888
130033
  column: 77
129889
130034
  }
129890
130035
  }
@@ -129894,221 +130039,197 @@ function cov_1p0jklglk1() {
129894
130039
  name: "(anonymous_0)",
129895
130040
  decl: {
129896
130041
  start: {
129897
- line: 27,
130042
+ line: 28,
129898
130043
  column: 15
129899
130044
  },
129900
130045
  end: {
129901
- line: 27,
130046
+ line: 28,
129902
130047
  column: 16
129903
130048
  }
129904
130049
  },
129905
130050
  loc: {
129906
130051
  start: {
129907
- line: 65,
130052
+ line: 66,
129908
130053
  column: 5
129909
130054
  },
129910
130055
  end: {
129911
- line: 215,
130056
+ line: 221,
129912
130057
  column: 1
129913
130058
  }
129914
130059
  },
129915
- line: 65
130060
+ line: 66
129916
130061
  },
129917
130062
  "1": {
129918
130063
  name: "(anonymous_1)",
129919
130064
  decl: {
129920
130065
  start: {
129921
- line: 83,
130066
+ line: 84,
129922
130067
  column: 34
129923
130068
  },
129924
130069
  end: {
129925
- line: 83,
130070
+ line: 84,
129926
130071
  column: 35
129927
130072
  }
129928
130073
  },
129929
130074
  loc: {
129930
130075
  start: {
129931
- line: 84,
130076
+ line: 85,
129932
130077
  column: 4
129933
130078
  },
129934
130079
  end: {
129935
- line: 84,
130080
+ line: 85,
129936
130081
  column: 66
129937
130082
  }
129938
130083
  },
129939
- line: 84
130084
+ line: 85
129940
130085
  },
129941
130086
  "2": {
129942
130087
  name: "(anonymous_2)",
129943
130088
  decl: {
129944
130089
  start: {
129945
- line: 125,
129946
- column: 14
130090
+ line: 105,
130091
+ column: 4
129947
130092
  },
129948
130093
  end: {
129949
- line: 125,
129950
- column: 15
130094
+ line: 105,
130095
+ column: 5
129951
130096
  }
129952
130097
  },
129953
130098
  loc: {
129954
130099
  start: {
129955
- line: 125,
129956
- column: 30
130100
+ line: 105,
130101
+ column: 20
129957
130102
  },
129958
130103
  end: {
129959
- line: 125,
129960
- column: 70
130104
+ line: 105,
130105
+ column: 46
129961
130106
  }
129962
130107
  },
129963
- line: 125
130108
+ line: 105
129964
130109
  },
129965
130110
  "3": {
129966
130111
  name: "(anonymous_3)",
129967
130112
  decl: {
129968
130113
  start: {
129969
- line: 126,
130114
+ line: 131,
129970
130115
  column: 14
129971
130116
  },
129972
130117
  end: {
129973
- line: 126,
130118
+ line: 131,
129974
130119
  column: 15
129975
130120
  }
129976
130121
  },
129977
130122
  loc: {
129978
130123
  start: {
129979
- line: 126,
130124
+ line: 131,
129980
130125
  column: 30
129981
130126
  },
129982
130127
  end: {
129983
- line: 126,
129984
- column: 56
130128
+ line: 131,
130129
+ column: 70
129985
130130
  }
129986
130131
  },
129987
- line: 126
130132
+ line: 131
129988
130133
  },
129989
130134
  "4": {
129990
130135
  name: "(anonymous_4)",
129991
130136
  decl: {
129992
130137
  start: {
129993
- line: 132,
130138
+ line: 138,
129994
130139
  column: 27
129995
130140
  },
129996
130141
  end: {
129997
- line: 132,
130142
+ line: 138,
129998
130143
  column: 28
129999
130144
  }
130000
130145
  },
130001
130146
  loc: {
130002
130147
  start: {
130003
- line: 132,
130148
+ line: 138,
130004
130149
  column: 34
130005
130150
  },
130006
130151
  end: {
130007
- line: 135,
130152
+ line: 141,
130008
130153
  column: 3
130009
130154
  }
130010
130155
  },
130011
- line: 132
130156
+ line: 138
130012
130157
  },
130013
130158
  "5": {
130014
130159
  name: "(anonymous_5)",
130015
130160
  decl: {
130016
130161
  start: {
130017
- line: 134,
130162
+ line: 140,
130018
130163
  column: 11
130019
130164
  },
130020
130165
  end: {
130021
- line: 134,
130166
+ line: 140,
130022
130167
  column: 12
130023
130168
  }
130024
130169
  },
130025
130170
  loc: {
130026
130171
  start: {
130027
- line: 134,
130172
+ line: 140,
130028
130173
  column: 17
130029
130174
  },
130030
130175
  end: {
130031
- line: 134,
130176
+ line: 140,
130032
130177
  column: 40
130033
130178
  }
130034
130179
  },
130035
- line: 134
130180
+ line: 140
130036
130181
  },
130037
130182
  "6": {
130038
130183
  name: "updateState",
130039
130184
  decl: {
130040
130185
  start: {
130041
- line: 138,
130186
+ line: 144,
130042
130187
  column: 46
130043
130188
  },
130044
130189
  end: {
130045
- line: 138,
130190
+ line: 144,
130046
130191
  column: 57
130047
130192
  }
130048
130193
  },
130049
130194
  loc: {
130050
130195
  start: {
130051
- line: 138,
130196
+ line: 144,
130052
130197
  column: 65
130053
130198
  },
130054
130199
  end: {
130055
- line: 141,
130200
+ line: 147,
130056
130201
  column: 3
130057
130202
  }
130058
130203
  },
130059
- line: 138
130204
+ line: 144
130060
130205
  },
130061
130206
  "7": {
130062
130207
  name: "(anonymous_7)",
130063
130208
  decl: {
130064
130209
  start: {
130065
- line: 188,
130210
+ line: 194,
130066
130211
  column: 23
130067
130212
  },
130068
130213
  end: {
130069
- line: 188,
130214
+ line: 194,
130070
130215
  column: 24
130071
130216
  }
130072
130217
  },
130073
130218
  loc: {
130074
130219
  start: {
130075
- line: 188,
130220
+ line: 194,
130076
130221
  column: 29
130077
130222
  },
130078
130223
  end: {
130079
- line: 188,
130224
+ line: 194,
130080
130225
  column: 77
130081
130226
  }
130082
130227
  },
130083
- line: 188
130228
+ line: 194
130084
130229
  }
130085
130230
  },
130086
130231
  branchMap: {
130087
130232
  "0": {
130088
- loc: {
130089
- start: {
130090
- line: 29,
130091
- column: 4
130092
- },
130093
- end: {
130094
- line: 29,
130095
- column: 22
130096
- }
130097
- },
130098
- type: "default-arg",
130099
- locations: [{
130100
- start: {
130101
- line: 29,
130102
- column: 20
130103
- },
130104
- end: {
130105
- line: 29,
130106
- column: 22
130107
- }
130108
- }],
130109
- line: 29
130110
- },
130111
- "1": {
130112
130233
  loc: {
130113
130234
  start: {
130114
130235
  line: 30,
@@ -130116,23 +130237,23 @@ function cov_1p0jklglk1() {
130116
130237
  },
130117
130238
  end: {
130118
130239
  line: 30,
130119
- column: 15
130240
+ column: 22
130120
130241
  }
130121
130242
  },
130122
130243
  type: "default-arg",
130123
130244
  locations: [{
130124
130245
  start: {
130125
130246
  line: 30,
130126
- column: 13
130247
+ column: 20
130127
130248
  },
130128
130249
  end: {
130129
130250
  line: 30,
130130
- column: 15
130251
+ column: 22
130131
130252
  }
130132
130253
  }],
130133
130254
  line: 30
130134
130255
  },
130135
- "2": {
130256
+ "1": {
130136
130257
  loc: {
130137
130258
  start: {
130138
130259
  line: 31,
@@ -130140,23 +130261,23 @@ function cov_1p0jklglk1() {
130140
130261
  },
130141
130262
  end: {
130142
130263
  line: 31,
130143
- column: 20
130264
+ column: 15
130144
130265
  }
130145
130266
  },
130146
130267
  type: "default-arg",
130147
130268
  locations: [{
130148
130269
  start: {
130149
130270
  line: 31,
130150
- column: 18
130271
+ column: 13
130151
130272
  },
130152
130273
  end: {
130153
130274
  line: 31,
130154
- column: 20
130275
+ column: 15
130155
130276
  }
130156
130277
  }],
130157
130278
  line: 31
130158
130279
  },
130159
- "3": {
130280
+ "2": {
130160
130281
  loc: {
130161
130282
  start: {
130162
130283
  line: 32,
@@ -130164,23 +130285,23 @@ function cov_1p0jklglk1() {
130164
130285
  },
130165
130286
  end: {
130166
130287
  line: 32,
130167
- column: 26
130288
+ column: 20
130168
130289
  }
130169
130290
  },
130170
130291
  type: "default-arg",
130171
130292
  locations: [{
130172
130293
  start: {
130173
130294
  line: 32,
130174
- column: 24
130295
+ column: 18
130175
130296
  },
130176
130297
  end: {
130177
130298
  line: 32,
130178
- column: 26
130299
+ column: 20
130179
130300
  }
130180
130301
  }],
130181
130302
  line: 32
130182
130303
  },
130183
- "4": {
130304
+ "3": {
130184
130305
  loc: {
130185
130306
  start: {
130186
130307
  line: 33,
@@ -130188,47 +130309,47 @@ function cov_1p0jklglk1() {
130188
130309
  },
130189
130310
  end: {
130190
130311
  line: 33,
130191
- column: 21
130312
+ column: 26
130192
130313
  }
130193
130314
  },
130194
130315
  type: "default-arg",
130195
130316
  locations: [{
130196
130317
  start: {
130197
130318
  line: 33,
130198
- column: 16
130319
+ column: 24
130199
130320
  },
130200
130321
  end: {
130201
130322
  line: 33,
130202
- column: 21
130323
+ column: 26
130203
130324
  }
130204
130325
  }],
130205
130326
  line: 33
130206
130327
  },
130207
- "5": {
130328
+ "4": {
130208
130329
  loc: {
130209
130330
  start: {
130210
- line: 38,
130331
+ line: 34,
130211
130332
  column: 4
130212
130333
  },
130213
130334
  end: {
130214
- line: 38,
130215
- column: 29
130335
+ line: 34,
130336
+ column: 21
130216
130337
  }
130217
130338
  },
130218
130339
  type: "default-arg",
130219
130340
  locations: [{
130220
130341
  start: {
130221
- line: 38,
130222
- column: 24
130342
+ line: 34,
130343
+ column: 16
130223
130344
  },
130224
130345
  end: {
130225
- line: 38,
130226
- column: 29
130346
+ line: 34,
130347
+ column: 21
130227
130348
  }
130228
130349
  }],
130229
- line: 38
130350
+ line: 34
130230
130351
  },
130231
- "6": {
130352
+ "5": {
130232
130353
  loc: {
130233
130354
  start: {
130234
130355
  line: 39,
@@ -130236,23 +130357,23 @@ function cov_1p0jklglk1() {
130236
130357
  },
130237
130358
  end: {
130238
130359
  line: 39,
130239
- column: 37
130360
+ column: 29
130240
130361
  }
130241
130362
  },
130242
130363
  type: "default-arg",
130243
130364
  locations: [{
130244
130365
  start: {
130245
130366
  line: 39,
130246
- column: 15
130367
+ column: 24
130247
130368
  },
130248
130369
  end: {
130249
130370
  line: 39,
130250
- column: 37
130371
+ column: 29
130251
130372
  }
130252
130373
  }],
130253
130374
  line: 39
130254
130375
  },
130255
- "7": {
130376
+ "6": {
130256
130377
  loc: {
130257
130378
  start: {
130258
130379
  line: 40,
@@ -130260,23 +130381,23 @@ function cov_1p0jklglk1() {
130260
130381
  },
130261
130382
  end: {
130262
130383
  line: 40,
130263
- column: 22
130384
+ column: 37
130264
130385
  }
130265
130386
  },
130266
130387
  type: "default-arg",
130267
130388
  locations: [{
130268
130389
  start: {
130269
130390
  line: 40,
130270
- column: 20
130391
+ column: 15
130271
130392
  },
130272
130393
  end: {
130273
130394
  line: 40,
130274
- column: 22
130395
+ column: 37
130275
130396
  }
130276
130397
  }],
130277
130398
  line: 40
130278
130399
  },
130279
- "8": {
130400
+ "7": {
130280
130401
  loc: {
130281
130402
  start: {
130282
130403
  line: 41,
@@ -130284,23 +130405,23 @@ function cov_1p0jklglk1() {
130284
130405
  },
130285
130406
  end: {
130286
130407
  line: 41,
130287
- column: 16
130408
+ column: 22
130288
130409
  }
130289
130410
  },
130290
130411
  type: "default-arg",
130291
130412
  locations: [{
130292
130413
  start: {
130293
130414
  line: 41,
130294
- column: 12
130415
+ column: 20
130295
130416
  },
130296
130417
  end: {
130297
130418
  line: 41,
130298
- column: 16
130419
+ column: 22
130299
130420
  }
130300
130421
  }],
130301
130422
  line: 41
130302
130423
  },
130303
- "9": {
130424
+ "8": {
130304
130425
  loc: {
130305
130426
  start: {
130306
130427
  line: 42,
@@ -130308,23 +130429,23 @@ function cov_1p0jklglk1() {
130308
130429
  },
130309
130430
  end: {
130310
130431
  line: 42,
130311
- column: 19
130432
+ column: 16
130312
130433
  }
130313
130434
  },
130314
130435
  type: "default-arg",
130315
130436
  locations: [{
130316
130437
  start: {
130317
130438
  line: 42,
130318
- column: 17
130439
+ column: 12
130319
130440
  },
130320
130441
  end: {
130321
130442
  line: 42,
130322
- column: 19
130443
+ column: 16
130323
130444
  }
130324
130445
  }],
130325
130446
  line: 42
130326
130447
  },
130327
- "10": {
130448
+ "9": {
130328
130449
  loc: {
130329
130450
  start: {
130330
130451
  line: 43,
@@ -130332,23 +130453,23 @@ function cov_1p0jklglk1() {
130332
130453
  },
130333
130454
  end: {
130334
130455
  line: 43,
130335
- column: 29
130456
+ column: 19
130336
130457
  }
130337
130458
  },
130338
130459
  type: "default-arg",
130339
130460
  locations: [{
130340
130461
  start: {
130341
130462
  line: 43,
130342
- column: 24
130463
+ column: 17
130343
130464
  },
130344
130465
  end: {
130345
130466
  line: 43,
130346
- column: 29
130467
+ column: 19
130347
130468
  }
130348
130469
  }],
130349
130470
  line: 43
130350
130471
  },
130351
- "11": {
130472
+ "10": {
130352
130473
  loc: {
130353
130474
  start: {
130354
130475
  line: 44,
@@ -130356,23 +130477,23 @@ function cov_1p0jklglk1() {
130356
130477
  },
130357
130478
  end: {
130358
130479
  line: 44,
130359
- column: 21
130480
+ column: 29
130360
130481
  }
130361
130482
  },
130362
130483
  type: "default-arg",
130363
130484
  locations: [{
130364
130485
  start: {
130365
130486
  line: 44,
130366
- column: 19
130487
+ column: 24
130367
130488
  },
130368
130489
  end: {
130369
130490
  line: 44,
130370
- column: 21
130491
+ column: 29
130371
130492
  }
130372
130493
  }],
130373
130494
  line: 44
130374
130495
  },
130375
- "12": {
130496
+ "11": {
130376
130497
  loc: {
130377
130498
  start: {
130378
130499
  line: 45,
@@ -130380,23 +130501,23 @@ function cov_1p0jklglk1() {
130380
130501
  },
130381
130502
  end: {
130382
130503
  line: 45,
130383
- column: 34
130504
+ column: 21
130384
130505
  }
130385
130506
  },
130386
130507
  type: "default-arg",
130387
130508
  locations: [{
130388
130509
  start: {
130389
130510
  line: 45,
130390
- column: 29
130511
+ column: 19
130391
130512
  },
130392
130513
  end: {
130393
130514
  line: 45,
130394
- column: 34
130515
+ column: 21
130395
130516
  }
130396
130517
  }],
130397
130518
  line: 45
130398
130519
  },
130399
- "13": {
130520
+ "12": {
130400
130521
  loc: {
130401
130522
  start: {
130402
130523
  line: 46,
@@ -130404,23 +130525,23 @@ function cov_1p0jklglk1() {
130404
130525
  },
130405
130526
  end: {
130406
130527
  line: 46,
130407
- column: 26
130528
+ column: 34
130408
130529
  }
130409
130530
  },
130410
130531
  type: "default-arg",
130411
130532
  locations: [{
130412
130533
  start: {
130413
130534
  line: 46,
130414
- column: 24
130535
+ column: 29
130415
130536
  },
130416
130537
  end: {
130417
130538
  line: 46,
130418
- column: 26
130539
+ column: 34
130419
130540
  }
130420
130541
  }],
130421
130542
  line: 46
130422
130543
  },
130423
- "14": {
130544
+ "13": {
130424
130545
  loc: {
130425
130546
  start: {
130426
130547
  line: 47,
@@ -130428,23 +130549,23 @@ function cov_1p0jklglk1() {
130428
130549
  },
130429
130550
  end: {
130430
130551
  line: 47,
130431
- column: 14
130552
+ column: 26
130432
130553
  }
130433
130554
  },
130434
130555
  type: "default-arg",
130435
130556
  locations: [{
130436
130557
  start: {
130437
130558
  line: 47,
130438
- column: 12
130559
+ column: 24
130439
130560
  },
130440
130561
  end: {
130441
130562
  line: 47,
130442
- column: 14
130563
+ column: 26
130443
130564
  }
130444
130565
  }],
130445
130566
  line: 47
130446
130567
  },
130447
- "15": {
130568
+ "14": {
130448
130569
  loc: {
130449
130570
  start: {
130450
130571
  line: 48,
@@ -130452,23 +130573,23 @@ function cov_1p0jklglk1() {
130452
130573
  },
130453
130574
  end: {
130454
130575
  line: 48,
130455
- column: 17
130576
+ column: 14
130456
130577
  }
130457
130578
  },
130458
130579
  type: "default-arg",
130459
130580
  locations: [{
130460
130581
  start: {
130461
130582
  line: 48,
130462
- column: 15
130583
+ column: 12
130463
130584
  },
130464
130585
  end: {
130465
130586
  line: 48,
130466
- column: 17
130587
+ column: 14
130467
130588
  }
130468
130589
  }],
130469
130590
  line: 48
130470
130591
  },
130471
- "16": {
130592
+ "15": {
130472
130593
  loc: {
130473
130594
  start: {
130474
130595
  line: 49,
@@ -130476,7 +130597,7 @@ function cov_1p0jklglk1() {
130476
130597
  },
130477
130598
  end: {
130478
130599
  line: 49,
130479
- column: 22
130600
+ column: 17
130480
130601
  }
130481
130602
  },
130482
130603
  type: "default-arg",
@@ -130487,36 +130608,36 @@ function cov_1p0jklglk1() {
130487
130608
  },
130488
130609
  end: {
130489
130610
  line: 49,
130490
- column: 22
130611
+ column: 17
130491
130612
  }
130492
130613
  }],
130493
130614
  line: 49
130494
130615
  },
130495
- "17": {
130616
+ "16": {
130496
130617
  loc: {
130497
130618
  start: {
130498
- line: 51,
130619
+ line: 50,
130499
130620
  column: 4
130500
130621
  },
130501
130622
  end: {
130502
- line: 51,
130503
- column: 20
130623
+ line: 50,
130624
+ column: 22
130504
130625
  }
130505
130626
  },
130506
130627
  type: "default-arg",
130507
130628
  locations: [{
130508
130629
  start: {
130509
- line: 51,
130630
+ line: 50,
130510
130631
  column: 15
130511
130632
  },
130512
130633
  end: {
130513
- line: 51,
130514
- column: 20
130634
+ line: 50,
130635
+ column: 22
130515
130636
  }
130516
130637
  }],
130517
- line: 51
130638
+ line: 50
130518
130639
  },
130519
- "18": {
130640
+ "17": {
130520
130641
  loc: {
130521
130642
  start: {
130522
130643
  line: 52,
@@ -130524,23 +130645,23 @@ function cov_1p0jklglk1() {
130524
130645
  },
130525
130646
  end: {
130526
130647
  line: 52,
130527
- column: 12
130648
+ column: 20
130528
130649
  }
130529
130650
  },
130530
130651
  type: "default-arg",
130531
130652
  locations: [{
130532
130653
  start: {
130533
130654
  line: 52,
130534
- column: 11
130655
+ column: 15
130535
130656
  },
130536
130657
  end: {
130537
130658
  line: 52,
130538
- column: 12
130659
+ column: 20
130539
130660
  }
130540
130661
  }],
130541
130662
  line: 52
130542
130663
  },
130543
- "19": {
130664
+ "18": {
130544
130665
  loc: {
130545
130666
  start: {
130546
130667
  line: 53,
@@ -130548,23 +130669,23 @@ function cov_1p0jklglk1() {
130548
130669
  },
130549
130670
  end: {
130550
130671
  line: 53,
130551
- column: 17
130672
+ column: 12
130552
130673
  }
130553
130674
  },
130554
130675
  type: "default-arg",
130555
130676
  locations: [{
130556
130677
  start: {
130557
130678
  line: 53,
130558
- column: 15
130679
+ column: 11
130559
130680
  },
130560
130681
  end: {
130561
130682
  line: 53,
130562
- column: 17
130683
+ column: 12
130563
130684
  }
130564
130685
  }],
130565
130686
  line: 53
130566
130687
  },
130567
- "20": {
130688
+ "19": {
130568
130689
  loc: {
130569
130690
  start: {
130570
130691
  line: 54,
@@ -130572,23 +130693,23 @@ function cov_1p0jklglk1() {
130572
130693
  },
130573
130694
  end: {
130574
130695
  line: 54,
130575
- column: 43
130696
+ column: 17
130576
130697
  }
130577
130698
  },
130578
130699
  type: "default-arg",
130579
130700
  locations: [{
130580
130701
  start: {
130581
130702
  line: 54,
130582
- column: 21
130703
+ column: 15
130583
130704
  },
130584
130705
  end: {
130585
130706
  line: 54,
130586
- column: 43
130707
+ column: 17
130587
130708
  }
130588
130709
  }],
130589
130710
  line: 54
130590
130711
  },
130591
- "21": {
130712
+ "20": {
130592
130713
  loc: {
130593
130714
  start: {
130594
130715
  line: 55,
@@ -130596,23 +130717,23 @@ function cov_1p0jklglk1() {
130596
130717
  },
130597
130718
  end: {
130598
130719
  line: 55,
130599
- column: 18
130720
+ column: 43
130600
130721
  }
130601
130722
  },
130602
130723
  type: "default-arg",
130603
130724
  locations: [{
130604
130725
  start: {
130605
130726
  line: 55,
130606
- column: 16
130727
+ column: 21
130607
130728
  },
130608
130729
  end: {
130609
130730
  line: 55,
130610
- column: 18
130731
+ column: 43
130611
130732
  }
130612
130733
  }],
130613
130734
  line: 55
130614
130735
  },
130615
- "22": {
130736
+ "21": {
130616
130737
  loc: {
130617
130738
  start: {
130618
130739
  line: 56,
@@ -130620,23 +130741,23 @@ function cov_1p0jklglk1() {
130620
130741
  },
130621
130742
  end: {
130622
130743
  line: 56,
130623
- column: 19
130744
+ column: 18
130624
130745
  }
130625
130746
  },
130626
130747
  type: "default-arg",
130627
130748
  locations: [{
130628
130749
  start: {
130629
130750
  line: 56,
130630
- column: 15
130751
+ column: 16
130631
130752
  },
130632
130753
  end: {
130633
130754
  line: 56,
130634
- column: 19
130755
+ column: 18
130635
130756
  }
130636
130757
  }],
130637
130758
  line: 56
130638
130759
  },
130639
- "23": {
130760
+ "22": {
130640
130761
  loc: {
130641
130762
  start: {
130642
130763
  line: 57,
@@ -130644,23 +130765,23 @@ function cov_1p0jklglk1() {
130644
130765
  },
130645
130766
  end: {
130646
130767
  line: 57,
130647
- column: 18
130768
+ column: 19
130648
130769
  }
130649
130770
  },
130650
130771
  type: "default-arg",
130651
130772
  locations: [{
130652
130773
  start: {
130653
130774
  line: 57,
130654
- column: 14
130775
+ column: 15
130655
130776
  },
130656
130777
  end: {
130657
130778
  line: 57,
130658
- column: 18
130779
+ column: 19
130659
130780
  }
130660
130781
  }],
130661
130782
  line: 57
130662
130783
  },
130663
- "24": {
130784
+ "23": {
130664
130785
  loc: {
130665
130786
  start: {
130666
130787
  line: 58,
@@ -130668,23 +130789,23 @@ function cov_1p0jklglk1() {
130668
130789
  },
130669
130790
  end: {
130670
130791
  line: 58,
130671
- column: 17
130792
+ column: 18
130672
130793
  }
130673
130794
  },
130674
130795
  type: "default-arg",
130675
130796
  locations: [{
130676
130797
  start: {
130677
130798
  line: 58,
130678
- column: 13
130799
+ column: 14
130679
130800
  },
130680
130801
  end: {
130681
130802
  line: 58,
130682
- column: 17
130803
+ column: 18
130683
130804
  }
130684
130805
  }],
130685
130806
  line: 58
130686
130807
  },
130687
- "25": {
130808
+ "24": {
130688
130809
  loc: {
130689
130810
  start: {
130690
130811
  line: 59,
@@ -130692,23 +130813,23 @@ function cov_1p0jklglk1() {
130692
130813
  },
130693
130814
  end: {
130694
130815
  line: 59,
130695
- column: 19
130816
+ column: 17
130696
130817
  }
130697
130818
  },
130698
130819
  type: "default-arg",
130699
130820
  locations: [{
130700
130821
  start: {
130701
130822
  line: 59,
130702
- column: 15
130823
+ column: 13
130703
130824
  },
130704
130825
  end: {
130705
130826
  line: 59,
130706
- column: 19
130827
+ column: 17
130707
130828
  }
130708
130829
  }],
130709
130830
  line: 59
130710
130831
  },
130711
- "26": {
130832
+ "25": {
130712
130833
  loc: {
130713
130834
  start: {
130714
130835
  line: 60,
@@ -130716,206 +130837,230 @@ function cov_1p0jklglk1() {
130716
130837
  },
130717
130838
  end: {
130718
130839
  line: 60,
130719
- column: 30
130840
+ column: 19
130720
130841
  }
130721
130842
  },
130722
130843
  type: "default-arg",
130723
130844
  locations: [{
130724
130845
  start: {
130725
130846
  line: 60,
130726
- column: 26
130847
+ column: 15
130727
130848
  },
130728
130849
  end: {
130729
130850
  line: 60,
130730
- column: 30
130851
+ column: 19
130731
130852
  }
130732
130853
  }],
130733
130854
  line: 60
130734
130855
  },
130735
- "27": {
130856
+ "26": {
130736
130857
  loc: {
130737
130858
  start: {
130738
- line: 70,
130859
+ line: 61,
130739
130860
  column: 4
130740
130861
  },
130741
130862
  end: {
130863
+ line: 61,
130864
+ column: 30
130865
+ }
130866
+ },
130867
+ type: "default-arg",
130868
+ locations: [{
130869
+ start: {
130870
+ line: 61,
130871
+ column: 26
130872
+ },
130873
+ end: {
130874
+ line: 61,
130875
+ column: 30
130876
+ }
130877
+ }],
130878
+ line: 61
130879
+ },
130880
+ "27": {
130881
+ loc: {
130882
+ start: {
130742
130883
  line: 71,
130884
+ column: 4
130885
+ },
130886
+ end: {
130887
+ line: 72,
130743
130888
  column: 48
130744
130889
  }
130745
130890
  },
130746
130891
  type: "binary-expr",
130747
130892
  locations: [{
130748
130893
  start: {
130749
- line: 70,
130894
+ line: 71,
130750
130895
  column: 4
130751
130896
  },
130752
130897
  end: {
130753
- line: 70,
130898
+ line: 71,
130754
130899
  column: 48
130755
130900
  }
130756
130901
  }, {
130757
130902
  start: {
130758
- line: 71,
130903
+ line: 72,
130759
130904
  column: 4
130760
130905
  },
130761
130906
  end: {
130762
- line: 71,
130907
+ line: 72,
130763
130908
  column: 48
130764
130909
  }
130765
130910
  }],
130766
- line: 70
130911
+ line: 71
130767
130912
  },
130768
130913
  "28": {
130769
130914
  loc: {
130770
130915
  start: {
130771
- line: 84,
130916
+ line: 85,
130772
130917
  column: 4
130773
130918
  },
130774
130919
  end: {
130775
- line: 84,
130920
+ line: 85,
130776
130921
  column: 66
130777
130922
  }
130778
130923
  },
130779
130924
  type: "binary-expr",
130780
130925
  locations: [{
130781
130926
  start: {
130782
- line: 84,
130927
+ line: 85,
130783
130928
  column: 4
130784
130929
  },
130785
130930
  end: {
130786
- line: 84,
130931
+ line: 85,
130787
130932
  column: 56
130788
130933
  }
130789
130934
  }, {
130790
130935
  start: {
130791
- line: 84,
130936
+ line: 85,
130792
130937
  column: 60
130793
130938
  },
130794
130939
  end: {
130795
- line: 84,
130940
+ line: 85,
130796
130941
  column: 66
130797
130942
  }
130798
130943
  }],
130799
- line: 84
130944
+ line: 85
130800
130945
  },
130801
130946
  "29": {
130802
130947
  loc: {
130803
130948
  start: {
130804
- line: 104,
130949
+ line: 110,
130805
130950
  column: 20
130806
130951
  },
130807
130952
  end: {
130808
- line: 104,
130953
+ line: 110,
130809
130954
  column: 65
130810
130955
  }
130811
130956
  },
130812
130957
  type: "binary-expr",
130813
130958
  locations: [{
130814
130959
  start: {
130815
- line: 104,
130960
+ line: 110,
130816
130961
  column: 20
130817
130962
  },
130818
130963
  end: {
130819
- line: 104,
130964
+ line: 110,
130820
130965
  column: 41
130821
130966
  }
130822
130967
  }, {
130823
130968
  start: {
130824
- line: 104,
130969
+ line: 110,
130825
130970
  column: 45
130826
130971
  },
130827
130972
  end: {
130828
- line: 104,
130973
+ line: 110,
130829
130974
  column: 65
130830
130975
  }
130831
130976
  }],
130832
- line: 104
130977
+ line: 110
130833
130978
  },
130834
130979
  "30": {
130835
130980
  loc: {
130836
130981
  start: {
130837
- line: 116,
130982
+ line: 122,
130838
130983
  column: 15
130839
130984
  },
130840
130985
  end: {
130841
- line: 116,
130986
+ line: 122,
130842
130987
  column: 33
130843
130988
  }
130844
130989
  },
130845
130990
  type: "binary-expr",
130846
130991
  locations: [{
130847
130992
  start: {
130848
- line: 116,
130993
+ line: 122,
130849
130994
  column: 15
130850
130995
  },
130851
130996
  end: {
130852
- line: 116,
130997
+ line: 122,
130853
130998
  column: 24
130854
130999
  }
130855
131000
  }, {
130856
131001
  start: {
130857
- line: 116,
131002
+ line: 122,
130858
131003
  column: 28
130859
131004
  },
130860
131005
  end: {
130861
- line: 116,
131006
+ line: 122,
130862
131007
  column: 33
130863
131008
  }
130864
131009
  }],
130865
- line: 116
131010
+ line: 122
130866
131011
  },
130867
131012
  "31": {
130868
131013
  loc: {
130869
131014
  start: {
130870
- line: 125,
131015
+ line: 131,
130871
131016
  column: 30
130872
131017
  },
130873
131018
  end: {
130874
- line: 125,
131019
+ line: 131,
130875
131020
  column: 70
130876
131021
  }
130877
131022
  },
130878
131023
  type: "binary-expr",
130879
131024
  locations: [{
130880
131025
  start: {
130881
- line: 125,
131026
+ line: 131,
130882
131027
  column: 30
130883
131028
  },
130884
131029
  end: {
130885
- line: 125,
131030
+ line: 131,
130886
131031
  column: 40
130887
131032
  }
130888
131033
  }, {
130889
131034
  start: {
130890
- line: 125,
131035
+ line: 131,
130891
131036
  column: 44
130892
131037
  },
130893
131038
  end: {
130894
- line: 125,
131039
+ line: 131,
130895
131040
  column: 70
130896
131041
  }
130897
131042
  }],
130898
- line: 125
131043
+ line: 131
130899
131044
  },
130900
131045
  "32": {
130901
131046
  loc: {
130902
131047
  start: {
130903
- line: 139,
131048
+ line: 145,
130904
131049
  column: 4
130905
131050
  },
130906
131051
  end: {
130907
- line: 139,
131052
+ line: 145,
130908
131053
  column: 30
130909
131054
  }
130910
131055
  },
130911
131056
  type: "if",
130912
131057
  locations: [{
130913
131058
  start: {
130914
- line: 139,
131059
+ line: 145,
130915
131060
  column: 4
130916
131061
  },
130917
131062
  end: {
130918
- line: 139,
131063
+ line: 145,
130919
131064
  column: 30
130920
131065
  }
130921
131066
  }, {
@@ -130928,139 +131073,139 @@ function cov_1p0jklglk1() {
130928
131073
  column: undefined
130929
131074
  }
130930
131075
  }],
130931
- line: 139
131076
+ line: 145
130932
131077
  },
130933
131078
  "33": {
130934
131079
  loc: {
130935
131080
  start: {
130936
- line: 151,
131081
+ line: 157,
130937
131082
  column: 7
130938
131083
  },
130939
131084
  end: {
130940
- line: 159,
131085
+ line: 165,
130941
131086
  column: 7
130942
131087
  }
130943
131088
  },
130944
131089
  type: "binary-expr",
130945
131090
  locations: [{
130946
131091
  start: {
130947
- line: 151,
131092
+ line: 157,
130948
131093
  column: 7
130949
131094
  },
130950
131095
  end: {
130951
- line: 151,
131096
+ line: 157,
130952
131097
  column: 12
130953
131098
  }
130954
131099
  }, {
130955
131100
  start: {
130956
- line: 152,
131101
+ line: 158,
130957
131102
  column: 8
130958
131103
  },
130959
131104
  end: {
130960
- line: 158,
131105
+ line: 164,
130961
131106
  column: 16
130962
131107
  }
130963
131108
  }],
130964
- line: 151
131109
+ line: 157
130965
131110
  },
130966
131111
  "34": {
130967
131112
  loc: {
130968
131113
  start: {
130969
- line: 182,
131114
+ line: 188,
130970
131115
  column: 11
130971
131116
  },
130972
131117
  end: {
130973
- line: 190,
131118
+ line: 196,
130974
131119
  column: 11
130975
131120
  }
130976
131121
  },
130977
131122
  type: "binary-expr",
130978
131123
  locations: [{
130979
131124
  start: {
130980
- line: 182,
131125
+ line: 188,
130981
131126
  column: 11
130982
131127
  },
130983
131128
  end: {
130984
- line: 182,
131129
+ line: 188,
130985
131130
  column: 32
130986
131131
  }
130987
131132
  }, {
130988
131133
  start: {
130989
- line: 183,
131134
+ line: 189,
130990
131135
  column: 12
130991
131136
  },
130992
131137
  end: {
130993
- line: 189,
131138
+ line: 195,
130994
131139
  column: 14
130995
131140
  }
130996
131141
  }],
130997
- line: 182
131142
+ line: 188
130998
131143
  },
130999
131144
  "35": {
131000
131145
  loc: {
131001
131146
  start: {
131002
- line: 191,
131147
+ line: 197,
131003
131148
  column: 11
131004
131149
  },
131005
131150
  end: {
131006
- line: 197,
131151
+ line: 203,
131007
131152
  column: 11
131008
131153
  }
131009
131154
  },
131010
131155
  type: "binary-expr",
131011
131156
  locations: [{
131012
131157
  start: {
131013
- line: 191,
131158
+ line: 197,
131014
131159
  column: 11
131015
131160
  },
131016
131161
  end: {
131017
- line: 191,
131162
+ line: 197,
131018
131163
  column: 29
131019
131164
  }
131020
131165
  }, {
131021
131166
  start: {
131022
- line: 192,
131167
+ line: 198,
131023
131168
  column: 12
131024
131169
  },
131025
131170
  end: {
131026
- line: 196,
131171
+ line: 202,
131027
131172
  column: 14
131028
131173
  }
131029
131174
  }],
131030
- line: 191
131175
+ line: 197
131031
131176
  },
131032
131177
  "36": {
131033
131178
  loc: {
131034
131179
  start: {
131035
- line: 198,
131180
+ line: 204,
131036
131181
  column: 11
131037
131182
  },
131038
131183
  end: {
131039
- line: 210,
131184
+ line: 216,
131040
131185
  column: 11
131041
131186
  }
131042
131187
  },
131043
131188
  type: "binary-expr",
131044
131189
  locations: [{
131045
131190
  start: {
131046
- line: 198,
131191
+ line: 204,
131047
131192
  column: 11
131048
131193
  },
131049
131194
  end: {
131050
- line: 198,
131195
+ line: 204,
131051
131196
  column: 30
131052
131197
  }
131053
131198
  }, {
131054
131199
  start: {
131055
- line: 199,
131200
+ line: 205,
131056
131201
  column: 12
131057
131202
  },
131058
131203
  end: {
131059
- line: 209,
131204
+ line: 215,
131060
131205
  column: 14
131061
131206
  }
131062
131207
  }],
131063
- line: 198
131208
+ line: 204
131064
131209
  }
131065
131210
  },
131066
131211
  s: {
@@ -131092,7 +131237,8 @@ function cov_1p0jklglk1() {
131092
131237
  "25": 0,
131093
131238
  "26": 0,
131094
131239
  "27": 0,
131095
- "28": 0
131240
+ "28": 0,
131241
+ "29": 0
131096
131242
  },
131097
131243
  f: {
131098
131244
  "0": 0,
@@ -131144,7 +131290,7 @@ function cov_1p0jklglk1() {
131144
131290
  "36": [0, 0]
131145
131291
  },
131146
131292
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
131147
- hash: "009e9991f109937e0cf3853bbc8e0b4c04717259"
131293
+ hash: "c5d48f13e7e1021183c30c48104047469e66db07"
131148
131294
  };
131149
131295
  var coverage = global[gcv] || (global[gcv] = {});
131150
131296
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -131271,14 +131417,20 @@ var Editor = function Editor(_ref, ref) {
131271
131417
  useEditorWarnings({
131272
131418
  initialValue: initialValue
131273
131419
  });
131274
- var editorClasses = (cov_1p0jklglk1().s[16]++, classnames$2("neeto-editor", _defineProperty({
131420
+ var handleChange = (cov_1p0jklglk1().s[16]++, useFuncDebounce(function (_ref6) {
131421
+ var editor = _ref6.editor;
131422
+ cov_1p0jklglk1().f[2]++;
131423
+ cov_1p0jklglk1().s[17]++;
131424
+ return onChange(editor.getHTML());
131425
+ }, 100));
131426
+ var editorClasses = (cov_1p0jklglk1().s[18]++, classnames$2("neeto-editor", _defineProperty({
131275
131427
  "slash-active": (cov_1p0jklglk1().b[29][0]++, isSlashCommandsActive) && (cov_1p0jklglk1().b[29][1]++, !isPlaceholderActive),
131276
131428
  "fixed-menu-active border": isFixedMenuActive,
131277
131429
  "bubble-menu-active": isBubbleMenuActive,
131278
131430
  "placeholder-active": isPlaceholderActive,
131279
131431
  "attachments-active": isAttachmentsActive
131280
131432
  }, contentClassName, contentClassName)));
131281
- var editor = (cov_1p0jklglk1().s[17]++, useEditor({
131433
+ var editor = (cov_1p0jklglk1().s[19]++, useEditor({
131282
131434
  extensions: customExtensions,
131283
131435
  content: initialValue,
131284
131436
  injectCSS: false,
@@ -131295,53 +131447,48 @@ var Editor = function Editor(_ref, ref) {
131295
131447
  parseOptions: {
131296
131448
  preserveWhitespace: true
131297
131449
  },
131298
- onCreate: function onCreate(_ref6) {
131299
- var editor = _ref6.editor;
131300
- cov_1p0jklglk1().f[2]++;
131301
- cov_1p0jklglk1().s[18]++;
131302
- return (cov_1p0jklglk1().b[31][0]++, !autoFocus) && (cov_1p0jklglk1().b[31][1]++, setInitialPosition(editor));
131303
- },
131304
- onUpdate: function onUpdate(_ref7) {
131450
+ onCreate: function onCreate(_ref7) {
131305
131451
  var editor = _ref7.editor;
131306
131452
  cov_1p0jklglk1().f[3]++;
131307
- cov_1p0jklglk1().s[19]++;
131308
- return onChange(editor.getHTML());
131453
+ cov_1p0jklglk1().s[20]++;
131454
+ return (cov_1p0jklglk1().b[31][0]++, !autoFocus) && (cov_1p0jklglk1().b[31][1]++, setInitialPosition(editor));
131309
131455
  },
131456
+ onUpdate: handleChange,
131310
131457
  onFocus: onFocus,
131311
131458
  onBlur: onBlur
131312
131459
  }));
131313
131460
 
131314
131461
  /* Make editor object available to the parent */
131315
- cov_1p0jklglk1().s[20]++;
131462
+ cov_1p0jklglk1().s[21]++;
131316
131463
  useImperativeHandle(ref, function () {
131317
131464
  cov_1p0jklglk1().f[4]++;
131318
- cov_1p0jklglk1().s[21]++;
131465
+ cov_1p0jklglk1().s[22]++;
131319
131466
  return {
131320
131467
  editor: editor,
131321
131468
  focus: function focus() {
131322
131469
  cov_1p0jklglk1().f[5]++;
131323
- cov_1p0jklglk1().s[22]++;
131470
+ cov_1p0jklglk1().s[23]++;
131324
131471
  return editor.commands.focus();
131325
131472
  }
131326
131473
  };
131327
131474
  });
131328
131475
 
131329
131476
  // https://github.com/ueberdosis/tiptap/issues/1451#issuecomment-953348865
131330
- cov_1p0jklglk1().s[23]++;
131477
+ cov_1p0jklglk1().s[24]++;
131331
131478
  EditorView.prototype.updateState = function updateState(state) {
131332
131479
  cov_1p0jklglk1().f[6]++;
131333
- cov_1p0jklglk1().s[24]++;
131480
+ cov_1p0jklglk1().s[25]++;
131334
131481
  if (!this.docView) {
131335
131482
  cov_1p0jklglk1().b[32][0]++;
131336
- cov_1p0jklglk1().s[25]++;
131483
+ cov_1p0jklglk1().s[26]++;
131337
131484
  return;
131338
131485
  } else {
131339
131486
  cov_1p0jklglk1().b[32][1]++;
131340
131487
  }
131341
- cov_1p0jklglk1().s[26]++;
131488
+ cov_1p0jklglk1().s[27]++;
131342
131489
  this.updateStateInner(state, this.state.plugins !== state.plugins);
131343
131490
  };
131344
- cov_1p0jklglk1().s[27]++;
131491
+ cov_1p0jklglk1().s[28]++;
131345
131492
  return /*#__PURE__*/React__default.createElement("div", {
131346
131493
  ref: dragDropRef,
131347
131494
  className: classnames$2((_classnames2 = {}, _defineProperty(_classnames2, className, className), _defineProperty(_classnames2, "ne-attachments__wrapper", isAttachmentsActive), _classnames2))
@@ -131377,7 +131524,7 @@ var Editor = function Editor(_ref, ref) {
131377
131524
  uploadEndpoint: uploadEndpoint,
131378
131525
  onClose: function onClose() {
131379
131526
  cov_1p0jklglk1().f[7]++;
131380
- cov_1p0jklglk1().s[28]++;
131527
+ cov_1p0jklglk1().s[29]++;
131381
131528
  return setMediaUploader({
131382
131529
  image: false,
131383
131530
  video: false