@bigbinary/neeto-editor 1.28.8 → 1.28.9

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
@@ -35900,7 +35900,7 @@ lowlight.registerLanguage('yaml', yaml);
35900
35900
 
35901
35901
  function cov_1l9oz901pg() {
35902
35902
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/EditorContent/constants.js";
35903
- var hash = "5cfc010ff04562cb443857c9dd1900bd2832dd37";
35903
+ var hash = "6656731474757c2c6de23a1e9647abc1d28d66ea";
35904
35904
  var global = new Function("return this")();
35905
35905
  var gcv = "__coverage__";
35906
35906
  var coverageData = {
@@ -35908,43 +35908,53 @@ function cov_1l9oz901pg() {
35908
35908
  statementMap: {
35909
35909
  "0": {
35910
35910
  start: {
35911
- line: 1,
35911
+ line: 3,
35912
35912
  column: 40
35913
35913
  },
35914
35914
  end: {
35915
- line: 1,
35915
+ line: 3,
35916
35916
  column: 62
35917
35917
  }
35918
35918
  },
35919
35919
  "1": {
35920
35920
  start: {
35921
- line: 3,
35921
+ line: 5,
35922
35922
  column: 32
35923
35923
  },
35924
35924
  end: {
35925
- line: 6,
35925
+ line: 8,
35926
35926
  column: 1
35927
35927
  }
35928
35928
  },
35929
35929
  "2": {
35930
35930
  start: {
35931
- line: 9,
35931
+ line: 11,
35932
35932
  column: 2
35933
35933
  },
35934
35934
  end: {
35935
- line: 9,
35935
+ line: 11,
35936
35936
  column: 75
35937
35937
  }
35938
35938
  },
35939
35939
  "3": {
35940
35940
  start: {
35941
- line: 12,
35941
+ line: 14,
35942
35942
  column: 2
35943
35943
  },
35944
35944
  end: {
35945
- line: 12,
35945
+ line: 14,
35946
35946
  column: 73
35947
35947
  }
35948
+ },
35949
+ "4": {
35950
+ start: {
35951
+ line: 16,
35952
+ column: 29
35953
+ },
35954
+ end: {
35955
+ line: 16,
35956
+ column: 53
35957
+ }
35948
35958
  }
35949
35959
  },
35950
35960
  fnMap: {},
@@ -35953,12 +35963,13 @@ function cov_1l9oz901pg() {
35953
35963
  "0": 0,
35954
35964
  "1": 0,
35955
35965
  "2": 0,
35956
- "3": 0
35966
+ "3": 0,
35967
+ "4": 0
35957
35968
  },
35958
35969
  f: {},
35959
35970
  b: {},
35960
35971
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35961
- hash: "5cfc010ff04562cb443857c9dd1900bd2832dd37"
35972
+ hash: "6656731474757c2c6de23a1e9647abc1d28d66ea"
35962
35973
  };
35963
35974
  var coverage = global[gcv] || (global[gcv] = {});
35964
35975
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -35981,10 +35992,11 @@ var SANITIZE_OPTIONS = (cov_1l9oz901pg().s[1]++, {
35981
35992
  });
35982
35993
  var CODE_BLOCK_REGEX = (cov_1l9oz901pg().s[2]++, /<pre><code(?:\s+class="language-([^"]*)")?>([\S\s]*?)<\/code><\/pre>/gim);
35983
35994
  var VARIABLE_SPAN_REGEX = (cov_1l9oz901pg().s[3]++, /<span data-variable="" [^>]*data-label="([^"]+)">{{([^}]+)}}<\/span>/g);
35995
+ var LANGUAGE_LIST = (cov_1l9oz901pg().s[4]++, lowlight.listLanguages());
35984
35996
 
35985
35997
  function cov_2fxze78p7l() {
35986
35998
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/EditorContent/utils.js";
35987
- var hash = "39a407e5bf38f05456cc1165b06f54b027942532";
35999
+ var hash = "3cfa6347817ee3a0f2c18ce96e7086518cf35fc3";
35988
36000
  var global = new Function("return this")();
35989
36001
  var gcv = "__coverage__";
35990
36002
  var coverageData = {
@@ -35992,271 +36004,271 @@ function cov_2fxze78p7l() {
35992
36004
  statementMap: {
35993
36005
  "0": {
35994
36006
  start: {
35995
- line: 11,
36007
+ line: 15,
35996
36008
  column: 22
35997
36009
  },
35998
36010
  end: {
35999
- line: 12,
36011
+ line: 16,
36000
36012
  column: 73
36001
36013
  }
36002
36014
  },
36003
36015
  "1": {
36004
36016
  start: {
36005
- line: 12,
36017
+ line: 16,
36006
36018
  column: 2
36007
36019
  },
36008
36020
  end: {
36009
- line: 12,
36021
+ line: 16,
36010
36022
  column: 73
36011
36023
  }
36012
36024
  },
36013
36025
  "2": {
36014
36026
  start: {
36015
- line: 14,
36027
+ line: 18,
36016
36028
  column: 33
36017
36029
  },
36018
36030
  end: {
36019
- line: 24,
36031
+ line: 28,
36020
36032
  column: 1
36021
36033
  }
36022
36034
  },
36023
36035
  "3": {
36024
36036
  start: {
36025
- line: 15,
36037
+ line: 19,
36026
36038
  column: 2
36027
36039
  },
36028
36040
  end: {
36029
- line: 21,
36041
+ line: 25,
36030
36042
  column: 3
36031
36043
  }
36032
36044
  },
36033
36045
  "4": {
36034
36046
  start: {
36035
- line: 16,
36047
+ line: 20,
36036
36048
  column: 21
36037
36049
  },
36038
36050
  end: {
36039
- line: 18,
36051
+ line: 22,
36040
36052
  column: 12
36041
36053
  }
36042
36054
  },
36043
36055
  "5": {
36044
36056
  start: {
36045
- line: 20,
36057
+ line: 24,
36046
36058
  column: 4
36047
36059
  },
36048
36060
  end: {
36049
- line: 20,
36061
+ line: 24,
36050
36062
  column: 78
36051
36063
  }
36052
36064
  },
36053
36065
  "6": {
36054
36066
  start: {
36055
- line: 23,
36067
+ line: 27,
36056
36068
  column: 2
36057
36069
  },
36058
36070
  end: {
36059
- line: 23,
36071
+ line: 27,
36060
36072
  column: 23
36061
36073
  }
36062
36074
  },
36063
36075
  "7": {
36064
36076
  start: {
36065
- line: 26,
36077
+ line: 30,
36066
36078
  column: 29
36067
36079
  },
36068
36080
  end: {
36069
- line: 46,
36081
+ line: 50,
36070
36082
  column: 1
36071
36083
  }
36072
36084
  },
36073
36085
  "8": {
36074
36086
  start: {
36075
- line: 27,
36087
+ line: 31,
36076
36088
  column: 2
36077
36089
  },
36078
36090
  end: {
36079
- line: 27,
36091
+ line: 31,
36080
36092
  column: 29
36081
36093
  }
36082
36094
  },
36083
36095
  "9": {
36084
36096
  start: {
36085
- line: 28,
36097
+ line: 32,
36086
36098
  column: 23
36087
36099
  },
36088
36100
  end: {
36089
- line: 28,
36101
+ line: 32,
36090
36102
  column: 25
36091
36103
  }
36092
36104
  },
36093
36105
  "10": {
36094
36106
  start: {
36095
- line: 30,
36107
+ line: 34,
36096
36108
  column: 2
36097
36109
  },
36098
36110
  end: {
36099
- line: 45,
36111
+ line: 49,
36100
36112
  column: 5
36101
36113
  }
36102
36114
  },
36103
36115
  "11": {
36104
36116
  start: {
36105
- line: 31,
36117
+ line: 35,
36106
36118
  column: 4
36107
36119
  },
36108
36120
  end: {
36109
- line: 38,
36121
+ line: 42,
36110
36122
  column: 5
36111
36123
  }
36112
36124
  },
36113
36125
  "12": {
36114
36126
  start: {
36115
- line: 32,
36127
+ line: 36,
36116
36128
  column: 6
36117
36129
  },
36118
36130
  end: {
36119
- line: 32,
36131
+ line: 36,
36120
36132
  column: 73
36121
36133
  }
36122
36134
  },
36123
36135
  "13": {
36124
36136
  start: {
36125
- line: 34,
36137
+ line: 38,
36126
36138
  column: 6
36127
36139
  },
36128
36140
  end: {
36129
- line: 34,
36141
+ line: 38,
36130
36142
  column: 77
36131
36143
  }
36132
36144
  },
36133
36145
  "14": {
36134
36146
  start: {
36135
- line: 35,
36147
+ line: 39,
36136
36148
  column: 6
36137
36149
  },
36138
36150
  end: {
36139
- line: 37,
36151
+ line: 41,
36140
36152
  column: 7
36141
36153
  }
36142
36154
  },
36143
36155
  "15": {
36144
36156
  start: {
36145
- line: 36,
36157
+ line: 40,
36146
36158
  column: 8
36147
36159
  },
36148
36160
  end: {
36149
- line: 36,
36161
+ line: 40,
36150
36162
  column: 79
36151
36163
  }
36152
36164
  },
36153
36165
  "16": {
36154
36166
  start: {
36155
- line: 40,
36167
+ line: 44,
36156
36168
  column: 28
36157
36169
  },
36158
36170
  end: {
36159
- line: 42,
36171
+ line: 46,
36160
36172
  column: 5
36161
36173
  }
36162
36174
  },
36163
36175
  "17": {
36164
36176
  start: {
36165
- line: 44,
36177
+ line: 48,
36166
36178
  column: 4
36167
36179
  },
36168
36180
  end: {
36169
- line: 44,
36181
+ line: 48,
36170
36182
  column: 72
36171
36183
  }
36172
36184
  },
36173
36185
  "18": {
36174
36186
  start: {
36175
- line: 48,
36187
+ line: 52,
36176
36188
  column: 35
36177
36189
  },
36178
36190
  end: {
36179
- line: 64,
36191
+ line: 68,
36180
36192
  column: 4
36181
36193
  }
36182
36194
  },
36183
36195
  "19": {
36184
36196
  start: {
36185
- line: 49,
36197
+ line: 53,
36186
36198
  column: 2
36187
36199
  },
36188
36200
  end: {
36189
- line: 64,
36201
+ line: 68,
36190
36202
  column: 4
36191
36203
  }
36192
36204
  },
36193
36205
  "20": {
36194
36206
  start: {
36195
- line: 50,
36207
+ line: 54,
36196
36208
  column: 30
36197
36209
  },
36198
36210
  end: {
36199
- line: 50,
36211
+ line: 54,
36200
36212
  column: 50
36201
36213
  }
36202
36214
  },
36203
36215
  "21": {
36204
36216
  start: {
36205
- line: 51,
36217
+ line: 55,
36206
36218
  column: 4
36207
36219
  },
36208
36220
  end: {
36209
- line: 59,
36221
+ line: 63,
36210
36222
  column: 5
36211
36223
  }
36212
36224
  },
36213
36225
  "22": {
36214
36226
  start: {
36215
- line: 52,
36227
+ line: 56,
36216
36228
  column: 23
36217
36229
  },
36218
36230
  end: {
36219
- line: 52,
36231
+ line: 56,
36220
36232
  column: 76
36221
36233
  }
36222
36234
  },
36223
36235
  "23": {
36224
36236
  start: {
36225
- line: 53,
36237
+ line: 57,
36226
36238
  column: 23
36227
36239
  },
36228
36240
  end: {
36229
- line: 56,
36241
+ line: 60,
36230
36242
  column: 7
36231
36243
  }
36232
36244
  },
36233
36245
  "24": {
36234
36246
  start: {
36235
- line: 58,
36247
+ line: 62,
36236
36248
  column: 6
36237
36249
  },
36238
36250
  end: {
36239
- line: 58,
36251
+ line: 62,
36240
36252
  column: 60
36241
36253
  }
36242
36254
  },
36243
36255
  "25": {
36244
36256
  start: {
36245
- line: 61,
36257
+ line: 65,
36246
36258
  column: 21
36247
36259
  },
36248
36260
  end: {
36249
- line: 61,
36261
+ line: 65,
36250
36262
  column: 69
36251
36263
  }
36252
36264
  },
36253
36265
  "26": {
36254
36266
  start: {
36255
- line: 63,
36267
+ line: 67,
36256
36268
  column: 4
36257
36269
  },
36258
36270
  end: {
36259
- line: 63,
36271
+ line: 67,
36260
36272
  column: 58
36261
36273
  }
36262
36274
  }
@@ -36266,167 +36278,167 @@ function cov_2fxze78p7l() {
36266
36278
  name: "(anonymous_0)",
36267
36279
  decl: {
36268
36280
  start: {
36269
- line: 11,
36281
+ line: 15,
36270
36282
  column: 22
36271
36283
  },
36272
36284
  end: {
36273
- line: 11,
36285
+ line: 15,
36274
36286
  column: 23
36275
36287
  }
36276
36288
  },
36277
36289
  loc: {
36278
36290
  start: {
36279
- line: 12,
36291
+ line: 16,
36280
36292
  column: 2
36281
36293
  },
36282
36294
  end: {
36283
- line: 12,
36295
+ line: 16,
36284
36296
  column: 73
36285
36297
  }
36286
36298
  },
36287
- line: 12
36299
+ line: 16
36288
36300
  },
36289
36301
  "1": {
36290
36302
  name: "(anonymous_1)",
36291
36303
  decl: {
36292
36304
  start: {
36293
- line: 14,
36305
+ line: 18,
36294
36306
  column: 33
36295
36307
  },
36296
36308
  end: {
36297
- line: 14,
36309
+ line: 18,
36298
36310
  column: 34
36299
36311
  }
36300
36312
  },
36301
36313
  loc: {
36302
36314
  start: {
36303
- line: 14,
36315
+ line: 18,
36304
36316
  column: 44
36305
36317
  },
36306
36318
  end: {
36307
- line: 24,
36319
+ line: 28,
36308
36320
  column: 1
36309
36321
  }
36310
36322
  },
36311
- line: 14
36323
+ line: 18
36312
36324
  },
36313
36325
  "2": {
36314
36326
  name: "(anonymous_2)",
36315
36327
  decl: {
36316
36328
  start: {
36317
- line: 26,
36329
+ line: 30,
36318
36330
  column: 29
36319
36331
  },
36320
36332
  end: {
36321
- line: 26,
36333
+ line: 30,
36322
36334
  column: 30
36323
36335
  }
36324
36336
  },
36325
36337
  loc: {
36326
36338
  start: {
36327
- line: 26,
36339
+ line: 30,
36328
36340
  column: 40
36329
36341
  },
36330
36342
  end: {
36331
- line: 46,
36343
+ line: 50,
36332
36344
  column: 1
36333
36345
  }
36334
36346
  },
36335
- line: 26
36347
+ line: 30
36336
36348
  },
36337
36349
  "3": {
36338
36350
  name: "(anonymous_3)",
36339
36351
  decl: {
36340
36352
  start: {
36341
- line: 30,
36353
+ line: 34,
36342
36354
  column: 43
36343
36355
  },
36344
36356
  end: {
36345
- line: 30,
36357
+ line: 34,
36346
36358
  column: 44
36347
36359
  }
36348
36360
  },
36349
36361
  loc: {
36350
36362
  start: {
36351
- line: 30,
36363
+ line: 34,
36352
36364
  column: 66
36353
36365
  },
36354
36366
  end: {
36355
- line: 45,
36367
+ line: 49,
36356
36368
  column: 3
36357
36369
  }
36358
36370
  },
36359
- line: 30
36371
+ line: 34
36360
36372
  },
36361
36373
  "4": {
36362
36374
  name: "(anonymous_4)",
36363
36375
  decl: {
36364
36376
  start: {
36365
- line: 48,
36377
+ line: 52,
36366
36378
  column: 35
36367
36379
  },
36368
36380
  end: {
36369
- line: 48,
36381
+ line: 52,
36370
36382
  column: 36
36371
36383
  }
36372
36384
  },
36373
36385
  loc: {
36374
36386
  start: {
36375
- line: 49,
36387
+ line: 53,
36376
36388
  column: 2
36377
36389
  },
36378
36390
  end: {
36379
- line: 64,
36391
+ line: 68,
36380
36392
  column: 4
36381
36393
  }
36382
36394
  },
36383
- line: 49
36395
+ line: 53
36384
36396
  },
36385
36397
  "5": {
36386
36398
  name: "(anonymous_5)",
36387
36399
  decl: {
36388
36400
  start: {
36389
- line: 49,
36401
+ line: 53,
36390
36402
  column: 50
36391
36403
  },
36392
36404
  end: {
36393
- line: 49,
36405
+ line: 53,
36394
36406
  column: 51
36395
36407
  }
36396
36408
  },
36397
36409
  loc: {
36398
36410
  start: {
36399
- line: 49,
36411
+ line: 53,
36400
36412
  column: 78
36401
36413
  },
36402
36414
  end: {
36403
- line: 64,
36415
+ line: 68,
36404
36416
  column: 3
36405
36417
  }
36406
36418
  },
36407
- line: 49
36419
+ line: 53
36408
36420
  }
36409
36421
  },
36410
36422
  branchMap: {
36411
36423
  "0": {
36412
36424
  loc: {
36413
36425
  start: {
36414
- line: 15,
36426
+ line: 19,
36415
36427
  column: 2
36416
36428
  },
36417
36429
  end: {
36418
- line: 21,
36430
+ line: 25,
36419
36431
  column: 3
36420
36432
  }
36421
36433
  },
36422
36434
  type: "if",
36423
36435
  locations: [{
36424
36436
  start: {
36425
- line: 15,
36437
+ line: 19,
36426
36438
  column: 2
36427
36439
  },
36428
36440
  end: {
36429
- line: 21,
36441
+ line: 25,
36430
36442
  column: 3
36431
36443
  }
36432
36444
  }, {
@@ -36439,93 +36451,126 @@ function cov_2fxze78p7l() {
36439
36451
  column: undefined
36440
36452
  }
36441
36453
  }],
36442
- line: 15
36454
+ line: 19
36443
36455
  },
36444
36456
  "1": {
36445
36457
  loc: {
36446
36458
  start: {
36447
- line: 16,
36459
+ line: 20,
36448
36460
  column: 21
36449
36461
  },
36450
36462
  end: {
36451
- line: 18,
36463
+ line: 22,
36452
36464
  column: 12
36453
36465
  }
36454
36466
  },
36455
36467
  type: "cond-expr",
36456
36468
  locations: [{
36457
36469
  start: {
36458
- line: 17,
36470
+ line: 21,
36459
36471
  column: 8
36460
36472
  },
36461
36473
  end: {
36462
- line: 17,
36474
+ line: 21,
36463
36475
  column: 54
36464
36476
  }
36465
36477
  }, {
36466
36478
  start: {
36467
- line: 18,
36479
+ line: 22,
36468
36480
  column: 8
36469
36481
  },
36470
36482
  end: {
36471
- line: 18,
36483
+ line: 22,
36472
36484
  column: 12
36473
36485
  }
36474
36486
  }],
36475
- line: 16
36487
+ line: 20
36476
36488
  },
36477
36489
  "2": {
36478
36490
  loc: {
36479
36491
  start: {
36480
- line: 31,
36492
+ line: 35,
36481
36493
  column: 4
36482
36494
  },
36483
36495
  end: {
36484
- line: 38,
36496
+ line: 42,
36485
36497
  column: 5
36486
36498
  }
36487
36499
  },
36488
36500
  type: "if",
36489
36501
  locations: [{
36490
36502
  start: {
36491
- line: 31,
36503
+ line: 35,
36492
36504
  column: 4
36493
36505
  },
36494
36506
  end: {
36495
- line: 38,
36507
+ line: 42,
36496
36508
  column: 5
36497
36509
  }
36498
36510
  }, {
36499
36511
  start: {
36500
- line: 33,
36512
+ line: 37,
36501
36513
  column: 11
36502
36514
  },
36503
36515
  end: {
36504
- line: 38,
36516
+ line: 42,
36505
36517
  column: 5
36506
36518
  }
36507
36519
  }],
36508
- line: 31
36520
+ line: 35
36509
36521
  },
36510
36522
  "3": {
36511
36523
  loc: {
36512
36524
  start: {
36513
36525
  line: 35,
36526
+ column: 8
36527
+ },
36528
+ end: {
36529
+ line: 35,
36530
+ column: 52
36531
+ }
36532
+ },
36533
+ type: "binary-expr",
36534
+ locations: [{
36535
+ start: {
36536
+ line: 35,
36537
+ column: 8
36538
+ },
36539
+ end: {
36540
+ line: 35,
36541
+ column: 16
36542
+ }
36543
+ }, {
36544
+ start: {
36545
+ line: 35,
36546
+ column: 20
36547
+ },
36548
+ end: {
36549
+ line: 35,
36550
+ column: 52
36551
+ }
36552
+ }],
36553
+ line: 35
36554
+ },
36555
+ "4": {
36556
+ loc: {
36557
+ start: {
36558
+ line: 39,
36514
36559
  column: 6
36515
36560
  },
36516
36561
  end: {
36517
- line: 37,
36562
+ line: 41,
36518
36563
  column: 7
36519
36564
  }
36520
36565
  },
36521
36566
  type: "if",
36522
36567
  locations: [{
36523
36568
  start: {
36524
- line: 35,
36569
+ line: 39,
36525
36570
  column: 6
36526
36571
  },
36527
36572
  end: {
36528
- line: 37,
36573
+ line: 41,
36529
36574
  column: 7
36530
36575
  }
36531
36576
  }, {
@@ -36538,27 +36583,27 @@ function cov_2fxze78p7l() {
36538
36583
  column: undefined
36539
36584
  }
36540
36585
  }],
36541
- line: 35
36586
+ line: 39
36542
36587
  },
36543
- "4": {
36588
+ "5": {
36544
36589
  loc: {
36545
36590
  start: {
36546
- line: 51,
36591
+ line: 55,
36547
36592
  column: 4
36548
36593
  },
36549
36594
  end: {
36550
- line: 59,
36595
+ line: 63,
36551
36596
  column: 5
36552
36597
  }
36553
36598
  },
36554
36599
  type: "if",
36555
36600
  locations: [{
36556
36601
  start: {
36557
- line: 51,
36602
+ line: 55,
36558
36603
  column: 4
36559
36604
  },
36560
36605
  end: {
36561
- line: 59,
36606
+ line: 63,
36562
36607
  column: 5
36563
36608
  }
36564
36609
  }, {
@@ -36571,106 +36616,106 @@ function cov_2fxze78p7l() {
36571
36616
  column: undefined
36572
36617
  }
36573
36618
  }],
36574
- line: 51
36619
+ line: 55
36575
36620
  },
36576
- "5": {
36621
+ "6": {
36577
36622
  loc: {
36578
36623
  start: {
36579
- line: 55,
36624
+ line: 59,
36580
36625
  column: 8
36581
36626
  },
36582
36627
  end: {
36583
- line: 55,
36628
+ line: 59,
36584
36629
  column: 33
36585
36630
  }
36586
36631
  },
36587
36632
  type: "binary-expr",
36588
36633
  locations: [{
36589
36634
  start: {
36590
- line: 55,
36635
+ line: 59,
36591
36636
  column: 8
36592
36637
  },
36593
36638
  end: {
36594
- line: 55,
36639
+ line: 59,
36595
36640
  column: 27
36596
36641
  }
36597
36642
  }, {
36598
36643
  start: {
36599
- line: 55,
36644
+ line: 59,
36600
36645
  column: 31
36601
36646
  },
36602
36647
  end: {
36603
- line: 55,
36648
+ line: 59,
36604
36649
  column: 33
36605
36650
  }
36606
36651
  }],
36607
- line: 55
36652
+ line: 59
36608
36653
  },
36609
- "6": {
36654
+ "7": {
36610
36655
  loc: {
36611
36656
  start: {
36612
- line: 58,
36657
+ line: 62,
36613
36658
  column: 13
36614
36659
  },
36615
36660
  end: {
36616
- line: 58,
36661
+ line: 62,
36617
36662
  column: 59
36618
36663
  }
36619
36664
  },
36620
36665
  type: "cond-expr",
36621
36666
  locations: [{
36622
36667
  start: {
36623
- line: 58,
36668
+ line: 62,
36624
36669
  column: 31
36625
36670
  },
36626
36671
  end: {
36627
- line: 58,
36672
+ line: 62,
36628
36673
  column: 45
36629
36674
  }
36630
36675
  }, {
36631
36676
  start: {
36632
- line: 58,
36677
+ line: 62,
36633
36678
  column: 48
36634
36679
  },
36635
36680
  end: {
36636
- line: 58,
36681
+ line: 62,
36637
36682
  column: 59
36638
36683
  }
36639
36684
  }],
36640
- line: 58
36685
+ line: 62
36641
36686
  },
36642
- "7": {
36687
+ "8": {
36643
36688
  loc: {
36644
36689
  start: {
36645
- line: 63,
36690
+ line: 67,
36646
36691
  column: 11
36647
36692
  },
36648
36693
  end: {
36649
- line: 63,
36694
+ line: 67,
36650
36695
  column: 57
36651
36696
  }
36652
36697
  },
36653
36698
  type: "cond-expr",
36654
36699
  locations: [{
36655
36700
  start: {
36656
- line: 63,
36701
+ line: 67,
36657
36702
  column: 29
36658
36703
  },
36659
36704
  end: {
36660
- line: 63,
36705
+ line: 67,
36661
36706
  column: 43
36662
36707
  }
36663
36708
  }, {
36664
36709
  start: {
36665
- line: 63,
36710
+ line: 67,
36666
36711
  column: 46
36667
36712
  },
36668
36713
  end: {
36669
- line: 63,
36714
+ line: 67,
36670
36715
  column: 57
36671
36716
  }
36672
36717
  }],
36673
- line: 63
36718
+ line: 67
36674
36719
  }
36675
36720
  },
36676
36721
  s: {
@@ -36718,10 +36763,11 @@ function cov_2fxze78p7l() {
36718
36763
  "4": [0, 0],
36719
36764
  "5": [0, 0],
36720
36765
  "6": [0, 0],
36721
- "7": [0, 0]
36766
+ "7": [0, 0],
36767
+ "8": [0, 0]
36722
36768
  },
36723
36769
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
36724
- hash: "39a407e5bf38f05456cc1165b06f54b027942532"
36770
+ hash: "3cfa6347817ee3a0f2c18ce96e7086518cf35fc3"
36725
36771
  };
36726
36772
  var coverage = global[gcv] || (global[gcv] = {});
36727
36773
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -36768,7 +36814,7 @@ var highlightCode = function highlightCode(content) {
36768
36814
  return content.replace(CODE_BLOCK_REGEX, function (_, language, code) {
36769
36815
  cov_2fxze78p7l().f[3]++;
36770
36816
  cov_2fxze78p7l().s[11]++;
36771
- if (language) {
36817
+ if ((cov_2fxze78p7l().b[3][0]++, language) && (cov_2fxze78p7l().b[3][1]++, LANGUAGE_LIST.includes(language))) {
36772
36818
  cov_2fxze78p7l().b[2][0]++;
36773
36819
  cov_2fxze78p7l().s[12]++;
36774
36820
  highlightedAST = lowlight.highlight(language, transformCode(code));
@@ -36778,11 +36824,11 @@ var highlightCode = function highlightCode(content) {
36778
36824
  highlightedAST = common$1.highlightAuto(transformCode(code))._emitter.root;
36779
36825
  cov_2fxze78p7l().s[14]++;
36780
36826
  if (isEmpty$1(highlightedAST.children)) {
36781
- cov_2fxze78p7l().b[3][0]++;
36827
+ cov_2fxze78p7l().b[4][0]++;
36782
36828
  cov_2fxze78p7l().s[15]++;
36783
36829
  highlightedAST = lowlight.highlight("javascript", transformCode(code));
36784
36830
  } else {
36785
- cov_2fxze78p7l().b[3][1]++;
36831
+ cov_2fxze78p7l().b[4][1]++;
36786
36832
  }
36787
36833
  }
36788
36834
  var highlightedNode = (cov_2fxze78p7l().s[16]++, highlightedAST.children.map(buildReactElementFromAST));
@@ -36799,23 +36845,23 @@ var substituteVariables = function substituteVariables(highlightedContent, varia
36799
36845
  var dataLabelSplitted = (cov_2fxze78p7l().s[20]++, dataLabel.split("."));
36800
36846
  cov_2fxze78p7l().s[21]++;
36801
36847
  if (dataLabelSplitted.length > 1) {
36802
- cov_2fxze78p7l().b[4][0]++;
36848
+ cov_2fxze78p7l().b[5][0]++;
36803
36849
  var category = (cov_2fxze78p7l().s[22]++, findBy({
36804
36850
  category: dataLabelSplitted[0]
36805
36851
  }, variables));
36806
36852
  var _variable = (cov_2fxze78p7l().s[23]++, findBy({
36807
36853
  key: dataLabelSplitted[1]
36808
- }, (cov_2fxze78p7l().b[5][0]++, category === null || category === void 0 ? void 0 : category.variables) || (cov_2fxze78p7l().b[5][1]++, [])));
36854
+ }, (cov_2fxze78p7l().b[6][0]++, category === null || category === void 0 ? void 0 : category.variables) || (cov_2fxze78p7l().b[6][1]++, [])));
36809
36855
  cov_2fxze78p7l().s[24]++;
36810
- return _variable !== null && _variable !== void 0 && _variable.value ? (cov_2fxze78p7l().b[6][0]++, _variable.value) : (cov_2fxze78p7l().b[6][1]++, matchedSpan);
36856
+ return _variable !== null && _variable !== void 0 && _variable.value ? (cov_2fxze78p7l().b[7][0]++, _variable.value) : (cov_2fxze78p7l().b[7][1]++, matchedSpan);
36811
36857
  } else {
36812
- cov_2fxze78p7l().b[4][1]++;
36858
+ cov_2fxze78p7l().b[5][1]++;
36813
36859
  }
36814
36860
  var variable = (cov_2fxze78p7l().s[25]++, findBy({
36815
36861
  key: dataLabelSplitted[0]
36816
36862
  }, variables));
36817
36863
  cov_2fxze78p7l().s[26]++;
36818
- return variable !== null && variable !== void 0 && variable.value ? (cov_2fxze78p7l().b[7][0]++, variable.value) : (cov_2fxze78p7l().b[7][1]++, matchedSpan);
36864
+ return variable !== null && variable !== void 0 && variable.value ? (cov_2fxze78p7l().b[8][0]++, variable.value) : (cov_2fxze78p7l().b[8][1]++, matchedSpan);
36819
36865
  });
36820
36866
  };
36821
36867
 
@@ -95150,7 +95196,7 @@ var SORTED_LANGUAGE_LIST = (cov_1ufkt7jvd1().s[0]++, lowlight.listLanguages().so
95150
95196
 
95151
95197
  function cov_4v54kemeo() {
95152
95198
  var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/CodeBlock/CodeBlockComponent.jsx";
95153
- var hash = "6ef7a7b49e1cb23109d13b4a178d47de6f196b3b";
95199
+ var hash = "f67f9f5eccbf5f8f7d4ff995cfe3605911b6011f";
95154
95200
  var global = new Function("return this")();
95155
95201
  var gcv = "__coverage__";
95156
95202
  var coverageData = {
@@ -95172,7 +95218,7 @@ function cov_4v54kemeo() {
95172
95218
  column: 27
95173
95219
  },
95174
95220
  end: {
95175
- line: 80,
95221
+ line: 82,
95176
95222
  column: 1
95177
95223
  }
95178
95224
  },
@@ -95272,7 +95318,7 @@ function cov_4v54kemeo() {
95272
95318
  column: 2
95273
95319
  },
95274
95320
  end: {
95275
- line: 33,
95321
+ line: 35,
95276
95322
  column: 9
95277
95323
  }
95278
95324
  },
@@ -95288,61 +95334,71 @@ function cov_4v54kemeo() {
95288
95334
  },
95289
95335
  "13": {
95290
95336
  start: {
95291
- line: 35,
95292
- column: 2
95337
+ line: 33,
95338
+ column: 4
95293
95339
  },
95294
95340
  end: {
95295
- line: 79,
95296
- column: 4
95341
+ line: 34,
95342
+ column: 51
95297
95343
  }
95298
95344
  },
95299
95345
  "14": {
95300
95346
  start: {
95301
- line: 52,
95302
- column: 29
95347
+ line: 37,
95348
+ column: 2
95303
95349
  },
95304
95350
  end: {
95305
- line: 52,
95306
- column: 55
95351
+ line: 81,
95352
+ column: 4
95307
95353
  }
95308
95354
  },
95309
95355
  "15": {
95310
95356
  start: {
95311
95357
  line: 54,
95312
- column: 16
95358
+ column: 29
95313
95359
  },
95314
95360
  end: {
95315
95361
  line: 54,
95316
- column: 35
95362
+ column: 55
95317
95363
  }
95318
95364
  },
95319
95365
  "16": {
95320
95366
  start: {
95321
- line: 55,
95367
+ line: 56,
95322
95368
  column: 16
95323
95369
  },
95324
95370
  end: {
95325
- line: 55,
95326
- column: 36
95371
+ line: 56,
95372
+ column: 35
95327
95373
  }
95328
95374
  },
95329
95375
  "17": {
95330
95376
  start: {
95331
- line: 60,
95377
+ line: 57,
95332
95378
  column: 16
95333
95379
  },
95334
95380
  end: {
95335
- line: 65,
95336
- column: 34
95381
+ line: 57,
95382
+ column: 36
95337
95383
  }
95338
95384
  },
95339
95385
  "18": {
95340
95386
  start: {
95341
95387
  line: 62,
95388
+ column: 16
95389
+ },
95390
+ end: {
95391
+ line: 67,
95392
+ column: 34
95393
+ }
95394
+ },
95395
+ "19": {
95396
+ start: {
95397
+ line: 64,
95342
95398
  column: 33
95343
95399
  },
95344
95400
  end: {
95345
- line: 62,
95401
+ line: 64,
95346
95402
  column: 63
95347
95403
  }
95348
95404
  }
@@ -95366,7 +95422,7 @@ function cov_4v54kemeo() {
95366
95422
  column: 59
95367
95423
  },
95368
95424
  end: {
95369
- line: 80,
95425
+ line: 82,
95370
95426
  column: 1
95371
95427
  }
95372
95428
  },
@@ -95462,7 +95518,7 @@ function cov_4v54kemeo() {
95462
95518
  column: 18
95463
95519
  },
95464
95520
  end: {
95465
- line: 33,
95521
+ line: 35,
95466
95522
  column: 3
95467
95523
  }
95468
95524
  },
@@ -95472,97 +95528,97 @@ function cov_4v54kemeo() {
95472
95528
  name: "(anonymous_5)",
95473
95529
  decl: {
95474
95530
  start: {
95475
- line: 52,
95531
+ line: 54,
95476
95532
  column: 24
95477
95533
  },
95478
95534
  end: {
95479
- line: 52,
95535
+ line: 54,
95480
95536
  column: 25
95481
95537
  }
95482
95538
  },
95483
95539
  loc: {
95484
95540
  start: {
95485
- line: 52,
95541
+ line: 54,
95486
95542
  column: 29
95487
95543
  },
95488
95544
  end: {
95489
- line: 52,
95545
+ line: 54,
95490
95546
  column: 55
95491
95547
  }
95492
95548
  },
95493
- line: 52
95549
+ line: 54
95494
95550
  },
95495
95551
  "6": {
95496
95552
  name: "(anonymous_6)",
95497
95553
  decl: {
95498
95554
  start: {
95499
- line: 53,
95555
+ line: 55,
95500
95556
  column: 23
95501
95557
  },
95502
95558
  end: {
95503
- line: 53,
95559
+ line: 55,
95504
95560
  column: 24
95505
95561
  }
95506
95562
  },
95507
95563
  loc: {
95508
95564
  start: {
95509
- line: 53,
95565
+ line: 55,
95510
95566
  column: 28
95511
95567
  },
95512
95568
  end: {
95513
- line: 56,
95569
+ line: 58,
95514
95570
  column: 15
95515
95571
  }
95516
95572
  },
95517
- line: 53
95573
+ line: 55
95518
95574
  },
95519
95575
  "7": {
95520
95576
  name: "(anonymous_7)",
95521
95577
  decl: {
95522
95578
  start: {
95523
- line: 59,
95579
+ line: 61,
95524
95580
  column: 49
95525
95581
  },
95526
95582
  end: {
95527
- line: 59,
95583
+ line: 61,
95528
95584
  column: 50
95529
95585
  }
95530
95586
  },
95531
95587
  loc: {
95532
95588
  start: {
95533
- line: 60,
95589
+ line: 62,
95534
95590
  column: 16
95535
95591
  },
95536
95592
  end: {
95537
- line: 65,
95593
+ line: 67,
95538
95594
  column: 34
95539
95595
  }
95540
95596
  },
95541
- line: 60
95597
+ line: 62
95542
95598
  },
95543
95599
  "8": {
95544
95600
  name: "(anonymous_8)",
95545
95601
  decl: {
95546
95602
  start: {
95547
- line: 62,
95603
+ line: 64,
95548
95604
  column: 27
95549
95605
  },
95550
95606
  end: {
95551
- line: 62,
95607
+ line: 64,
95552
95608
  column: 28
95553
95609
  }
95554
95610
  },
95555
95611
  loc: {
95556
95612
  start: {
95557
- line: 62,
95613
+ line: 64,
95558
95614
  column: 33
95559
95615
  },
95560
95616
  end: {
95561
- line: 62,
95617
+ line: 64,
95562
95618
  column: 63
95563
95619
  }
95564
95620
  },
95565
- line: 62
95621
+ line: 64
95566
95622
  }
95567
95623
  },
95568
95624
  branchMap: {
@@ -95602,68 +95658,101 @@ function cov_4v54kemeo() {
95602
95658
  "1": {
95603
95659
  loc: {
95604
95660
  start: {
95605
- line: 43,
95661
+ line: 33,
95662
+ column: 4
95663
+ },
95664
+ end: {
95665
+ line: 34,
95666
+ column: 50
95667
+ }
95668
+ },
95669
+ type: "binary-expr",
95670
+ locations: [{
95671
+ start: {
95672
+ line: 33,
95673
+ column: 4
95674
+ },
95675
+ end: {
95676
+ line: 33,
95677
+ column: 46
95678
+ }
95679
+ }, {
95680
+ start: {
95681
+ line: 34,
95682
+ column: 6
95683
+ },
95684
+ end: {
95685
+ line: 34,
95686
+ column: 50
95687
+ }
95688
+ }],
95689
+ line: 33
95690
+ },
95691
+ "2": {
95692
+ loc: {
95693
+ start: {
95694
+ line: 45,
95606
95695
  column: 19
95607
95696
  },
95608
95697
  end: {
95609
- line: 43,
95698
+ line: 45,
95610
95699
  column: 59
95611
95700
  }
95612
95701
  },
95613
95702
  type: "binary-expr",
95614
95703
  locations: [{
95615
95704
  start: {
95616
- line: 43,
95705
+ line: 45,
95617
95706
  column: 19
95618
95707
  },
95619
95708
  end: {
95620
- line: 43,
95709
+ line: 45,
95621
95710
  column: 39
95622
95711
  }
95623
95712
  }, {
95624
95713
  start: {
95625
- line: 43,
95714
+ line: 45,
95626
95715
  column: 43
95627
95716
  },
95628
95717
  end: {
95629
- line: 43,
95718
+ line: 45,
95630
95719
  column: 59
95631
95720
  }
95632
95721
  }],
95633
- line: 43
95722
+ line: 45
95634
95723
  },
95635
- "2": {
95724
+ "3": {
95636
95725
  loc: {
95637
95726
  start: {
95638
- line: 64,
95727
+ line: 66,
95639
95728
  column: 19
95640
95729
  },
95641
95730
  end: {
95642
- line: 64,
95731
+ line: 66,
95643
95732
  column: 47
95644
95733
  }
95645
95734
  },
95646
95735
  type: "binary-expr",
95647
95736
  locations: [{
95648
95737
  start: {
95649
- line: 64,
95738
+ line: 66,
95650
95739
  column: 19
95651
95740
  },
95652
95741
  end: {
95653
- line: 64,
95742
+ line: 66,
95654
95743
  column: 27
95655
95744
  }
95656
95745
  }, {
95657
95746
  start: {
95658
- line: 64,
95747
+ line: 66,
95659
95748
  column: 31
95660
95749
  },
95661
95750
  end: {
95662
- line: 64,
95751
+ line: 66,
95663
95752
  column: 47
95664
95753
  }
95665
95754
  }],
95666
- line: 64
95755
+ line: 66
95667
95756
  }
95668
95757
  },
95669
95758
  s: {
@@ -95685,7 +95774,8 @@ function cov_4v54kemeo() {
95685
95774
  "15": 0,
95686
95775
  "16": 0,
95687
95776
  "17": 0,
95688
- "18": 0
95777
+ "18": 0,
95778
+ "19": 0
95689
95779
  },
95690
95780
  f: {
95691
95781
  "0": 0,
@@ -95701,10 +95791,11 @@ function cov_4v54kemeo() {
95701
95791
  b: {
95702
95792
  "0": [0, 0],
95703
95793
  "1": [0, 0],
95704
- "2": [0, 0]
95794
+ "2": [0, 0],
95795
+ "3": [0, 0]
95705
95796
  },
95706
95797
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
95707
- hash: "6ef7a7b49e1cb23109d13b4a178d47de6f196b3b"
95798
+ hash: "f67f9f5eccbf5f8f7d4ff995cfe3605911b6011f"
95708
95799
  };
95709
95800
  var coverage = global[gcv] || (global[gcv] = {});
95710
95801
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -95725,7 +95816,7 @@ var _ref$7 = (cov_4v54kemeo().s[0]++, Dropdown$1),
95725
95816
  MenuItem$2 = _ref$7.MenuItem;
95726
95817
  cov_4v54kemeo().s[1]++;
95727
95818
  var CodeBlockComponent = function CodeBlockComponent(_ref2) {
95728
- var _node$attrs2;
95819
+ var _node$attrs3;
95729
95820
  var node = _ref2.node,
95730
95821
  updateAttributes = _ref2.updateAttributes;
95731
95822
  cov_4v54kemeo().f[0]++;
@@ -95759,14 +95850,18 @@ var CodeBlockComponent = function CodeBlockComponent(_ref2) {
95759
95850
  };
95760
95851
  cov_4v54kemeo().s[11]++;
95761
95852
  useEffect$1(function () {
95762
- var _node$attrs;
95853
+ var _node$attrs, _node$attrs2;
95763
95854
  cov_4v54kemeo().f[4]++;
95764
95855
  cov_4v54kemeo().s[12]++;
95765
95856
  (cov_4v54kemeo().b[0][0]++, isNil((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.language)) && (cov_4v54kemeo().b[0][1]++, updateAttributes({
95766
95857
  language: "plaintext"
95767
95858
  }));
95859
+ cov_4v54kemeo().s[13]++;
95860
+ (cov_4v54kemeo().b[1][0]++, ((_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.language) === "javascriptreact") && (cov_4v54kemeo().b[1][1]++, updateAttributes({
95861
+ language: "javascript"
95862
+ }));
95768
95863
  }, []);
95769
- cov_4v54kemeo().s[13]++;
95864
+ cov_4v54kemeo().s[14]++;
95770
95865
  return /*#__PURE__*/React__default.createElement(NodeViewWrapper, {
95771
95866
  "data-cy": "neeto-editor-code-block"
95772
95867
  }, /*#__PURE__*/React__default.createElement("pre", null, /*#__PURE__*/React__default.createElement("div", {
@@ -95775,7 +95870,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref2) {
95775
95870
  buttonSize: "small",
95776
95871
  buttonStyle: "secondary",
95777
95872
  icon: Down,
95778
- label: (cov_4v54kemeo().b[1][0]++, (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.language) || (cov_4v54kemeo().b[1][1]++, t("common.auto")),
95873
+ label: (cov_4v54kemeo().b[2][0]++, (_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.language) || (cov_4v54kemeo().b[2][1]++, t("common.auto")),
95779
95874
  strategy: "fixed"
95780
95875
  }, /*#__PURE__*/React__default.createElement(Input, {
95781
95876
  autoFocus: true,
@@ -95785,29 +95880,29 @@ var CodeBlockComponent = function CodeBlockComponent(_ref2) {
95785
95880
  value: keyword,
95786
95881
  onChange: function onChange(e) {
95787
95882
  cov_4v54kemeo().f[5]++;
95788
- cov_4v54kemeo().s[14]++;
95883
+ cov_4v54kemeo().s[15]++;
95789
95884
  return setKeyword(e.target.value);
95790
95885
  },
95791
95886
  onClick: function onClick(e) {
95792
95887
  cov_4v54kemeo().f[6]++;
95793
- cov_4v54kemeo().s[15]++;
95794
- e.preventDefault();
95795
95888
  cov_4v54kemeo().s[16]++;
95889
+ e.preventDefault();
95890
+ cov_4v54kemeo().s[17]++;
95796
95891
  e.stopPropagation();
95797
95892
  }
95798
95893
  }), /*#__PURE__*/React__default.createElement(Menu$7, {
95799
95894
  className: "neeto-editor-codeblock-options__menu"
95800
95895
  }, filteredAndSortedLanguageList.map(function (language) {
95801
95896
  cov_4v54kemeo().f[7]++;
95802
- cov_4v54kemeo().s[17]++;
95897
+ cov_4v54kemeo().s[18]++;
95803
95898
  return /*#__PURE__*/React__default.createElement(MenuItem$2.Button, {
95804
95899
  key: language,
95805
95900
  onClick: function onClick() {
95806
95901
  cov_4v54kemeo().f[8]++;
95807
- cov_4v54kemeo().s[18]++;
95902
+ cov_4v54kemeo().s[19]++;
95808
95903
  return handleLanguageSelect(language);
95809
95904
  }
95810
- }, (cov_4v54kemeo().b[2][0]++, language) || (cov_4v54kemeo().b[2][1]++, t("common.auto")));
95905
+ }, (cov_4v54kemeo().b[3][0]++, language) || (cov_4v54kemeo().b[3][1]++, t("common.auto")));
95811
95906
  }))), /*#__PURE__*/React__default.createElement(Button$1, {
95812
95907
  icon: Copy,
95813
95908
  size: "small",