@bigbinary/neeto-form-frontend 1.2.0 → 1.2.2

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/dist/index.cjs.js CHANGED
@@ -4162,7 +4162,7 @@ var MemoizedTrophy = (cov_3ymiqznmu().s[17]++, /*#__PURE__*/React__default["defa
4162
4162
 
4163
4163
  function cov_2qs8napxwn() {
4164
4164
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/constants.jsx";
4165
- var hash = "06c0fa99a8044bfa85dba10dcf9fa947503a23c0";
4165
+ var hash = "3a67a3db4eeb7a59f9a683d9829f356430fab3e7";
4166
4166
  var global = new Function("return this")();
4167
4167
  var gcv = "__coverage__";
4168
4168
  var coverageData = {
@@ -4174,75 +4174,275 @@ function cov_2qs8napxwn() {
4174
4174
  column: 29
4175
4175
  },
4176
4176
  end: {
4177
- line: 39,
4177
+ line: 55,
4178
4178
  column: 1
4179
4179
  }
4180
4180
  },
4181
4181
  "1": {
4182
4182
  start: {
4183
- line: 41,
4183
+ line: 44,
4184
+ column: 6
4185
+ },
4186
+ end: {
4187
+ line: 44,
4188
+ column: 61
4189
+ }
4190
+ },
4191
+ "2": {
4192
+ start: {
4193
+ line: 44,
4194
+ column: 42
4195
+ },
4196
+ end: {
4197
+ line: 44,
4198
+ column: 61
4199
+ }
4200
+ },
4201
+ "3": {
4202
+ start: {
4203
+ line: 52,
4204
+ column: 6
4205
+ },
4206
+ end: {
4207
+ line: 52,
4208
+ column: 44
4209
+ }
4210
+ },
4211
+ "4": {
4212
+ start: {
4213
+ line: 52,
4214
+ column: 25
4215
+ },
4216
+ end: {
4217
+ line: 52,
4218
+ column: 44
4219
+ }
4220
+ },
4221
+ "5": {
4222
+ start: {
4223
+ line: 56,
4184
4224
  column: 29
4185
4225
  },
4186
4226
  end: {
4187
- line: 45,
4227
+ line: 60,
4188
4228
  column: 1
4189
4229
  }
4190
4230
  },
4191
- "2": {
4231
+ "6": {
4192
4232
  start: {
4193
- line: 47,
4233
+ line: 62,
4194
4234
  column: 42
4195
4235
  },
4196
4236
  end: {
4197
- line: 47,
4237
+ line: 62,
4198
4238
  column: 73
4199
4239
  }
4200
4240
  },
4201
- "3": {
4241
+ "7": {
4202
4242
  start: {
4203
- line: 49,
4243
+ line: 64,
4204
4244
  column: 30
4205
4245
  },
4206
4246
  end: {
4207
- line: 65,
4247
+ line: 80,
4208
4248
  column: 1
4209
4249
  }
4210
4250
  },
4211
- "4": {
4251
+ "8": {
4212
4252
  start: {
4213
- line: 67,
4253
+ line: 82,
4214
4254
  column: 35
4215
4255
  },
4216
4256
  end: {
4217
- line: 67,
4257
+ line: 82,
4218
4258
  column: 49
4219
4259
  }
4220
4260
  },
4221
- "5": {
4261
+ "9": {
4222
4262
  start: {
4223
- line: 69,
4263
+ line: 84,
4224
4264
  column: 25
4225
4265
  },
4226
4266
  end: {
4227
- line: 75,
4267
+ line: 90,
4228
4268
  column: 1
4229
4269
  }
4230
4270
  }
4231
4271
  },
4232
- fnMap: {},
4233
- branchMap: {},
4272
+ fnMap: {
4273
+ "0": {
4274
+ name: "(anonymous_0)",
4275
+ decl: {
4276
+ start: {
4277
+ line: 43,
4278
+ column: 15
4279
+ },
4280
+ end: {
4281
+ line: 43,
4282
+ column: 16
4283
+ }
4284
+ },
4285
+ loc: {
4286
+ start: {
4287
+ line: 43,
4288
+ column: 20
4289
+ },
4290
+ end: {
4291
+ line: 45,
4292
+ column: 5
4293
+ }
4294
+ },
4295
+ line: 43
4296
+ },
4297
+ "1": {
4298
+ name: "(anonymous_1)",
4299
+ decl: {
4300
+ start: {
4301
+ line: 51,
4302
+ column: 15
4303
+ },
4304
+ end: {
4305
+ line: 51,
4306
+ column: 16
4307
+ }
4308
+ },
4309
+ loc: {
4310
+ start: {
4311
+ line: 51,
4312
+ column: 20
4313
+ },
4314
+ end: {
4315
+ line: 53,
4316
+ column: 5
4317
+ }
4318
+ },
4319
+ line: 51
4320
+ }
4321
+ },
4322
+ branchMap: {
4323
+ "0": {
4324
+ loc: {
4325
+ start: {
4326
+ line: 44,
4327
+ column: 6
4328
+ },
4329
+ end: {
4330
+ line: 44,
4331
+ column: 61
4332
+ }
4333
+ },
4334
+ type: "if",
4335
+ locations: [{
4336
+ start: {
4337
+ line: 44,
4338
+ column: 6
4339
+ },
4340
+ end: {
4341
+ line: 44,
4342
+ column: 61
4343
+ }
4344
+ }, {
4345
+ start: {
4346
+ line: undefined,
4347
+ column: undefined
4348
+ },
4349
+ end: {
4350
+ line: undefined,
4351
+ column: undefined
4352
+ }
4353
+ }],
4354
+ line: 44
4355
+ },
4356
+ "1": {
4357
+ loc: {
4358
+ start: {
4359
+ line: 44,
4360
+ column: 10
4361
+ },
4362
+ end: {
4363
+ line: 44,
4364
+ column: 40
4365
+ }
4366
+ },
4367
+ type: "binary-expr",
4368
+ locations: [{
4369
+ start: {
4370
+ line: 44,
4371
+ column: 10
4372
+ },
4373
+ end: {
4374
+ line: 44,
4375
+ column: 23
4376
+ }
4377
+ }, {
4378
+ start: {
4379
+ line: 44,
4380
+ column: 27
4381
+ },
4382
+ end: {
4383
+ line: 44,
4384
+ column: 40
4385
+ }
4386
+ }],
4387
+ line: 44
4388
+ },
4389
+ "2": {
4390
+ loc: {
4391
+ start: {
4392
+ line: 52,
4393
+ column: 6
4394
+ },
4395
+ end: {
4396
+ line: 52,
4397
+ column: 44
4398
+ }
4399
+ },
4400
+ type: "if",
4401
+ locations: [{
4402
+ start: {
4403
+ line: 52,
4404
+ column: 6
4405
+ },
4406
+ end: {
4407
+ line: 52,
4408
+ column: 44
4409
+ }
4410
+ }, {
4411
+ start: {
4412
+ line: undefined,
4413
+ column: undefined
4414
+ },
4415
+ end: {
4416
+ line: undefined,
4417
+ column: undefined
4418
+ }
4419
+ }],
4420
+ line: 52
4421
+ }
4422
+ },
4234
4423
  s: {
4235
4424
  "0": 0,
4236
4425
  "1": 0,
4237
4426
  "2": 0,
4238
4427
  "3": 0,
4239
4428
  "4": 0,
4240
- "5": 0
4429
+ "5": 0,
4430
+ "6": 0,
4431
+ "7": 0,
4432
+ "8": 0,
4433
+ "9": 0
4434
+ },
4435
+ f: {
4436
+ "0": 0,
4437
+ "1": 0
4438
+ },
4439
+ b: {
4440
+ "0": [0, 0],
4441
+ "1": [0, 0],
4442
+ "2": [0, 0]
4241
4443
  },
4242
- f: {},
4243
- b: {},
4244
4444
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4245
- hash: "06c0fa99a8044bfa85dba10dcf9fa947503a23c0"
4445
+ hash: "3a67a3db4eeb7a59f9a683d9829f356430fab3e7"
4246
4446
  };
4247
4447
  var coverage = global[gcv] || (global[gcv] = {});
4248
4448
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -4317,9 +4517,41 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
4317
4517
  },
4318
4518
  RICH_TEXT: {
4319
4519
  value: "rich_text"
4520
+ },
4521
+ INTEGER: {
4522
+ prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Input, null),
4523
+ type: "number",
4524
+ value: "integer",
4525
+ onKeyDown: function onKeyDown(e) {
4526
+ cov_2qs8napxwn().f[0]++;
4527
+ cov_2qs8napxwn().s[1]++;
4528
+ if ((cov_2qs8napxwn().b[1][0]++, e.key === ".") || (cov_2qs8napxwn().b[1][1]++, e.key === "e")) {
4529
+ cov_2qs8napxwn().b[0][0]++;
4530
+ cov_2qs8napxwn().s[2]++;
4531
+ e.preventDefault();
4532
+ } else {
4533
+ cov_2qs8napxwn().b[0][1]++;
4534
+ }
4535
+ }
4536
+ },
4537
+ DECIMAL: {
4538
+ prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Input, null),
4539
+ type: "number",
4540
+ value: "decimal",
4541
+ onKeyDown: function onKeyDown(e) {
4542
+ cov_2qs8napxwn().f[1]++;
4543
+ cov_2qs8napxwn().s[3]++;
4544
+ if (e.key === "e") {
4545
+ cov_2qs8napxwn().b[2][0]++;
4546
+ cov_2qs8napxwn().s[4]++;
4547
+ e.preventDefault();
4548
+ } else {
4549
+ cov_2qs8napxwn().b[2][1]++;
4550
+ }
4551
+ }
4320
4552
  }
4321
4553
  });
4322
- var RATING_VALUES = (cov_2qs8napxwn().s[1]++, {
4554
+ var RATING_VALUES = (cov_2qs8napxwn().s[5]++, {
4323
4555
  GOOD: {
4324
4556
  label: i18next.t("neetoForm.common.good"),
4325
4557
  value: "good"
@@ -4333,8 +4565,8 @@ var RATING_VALUES = (cov_2qs8napxwn().s[1]++, {
4333
4565
  value: "bad"
4334
4566
  }
4335
4567
  });
4336
- var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[2]++, [QUESTION_KIND.PARAGRAPH.value]);
4337
- var RATING_OPTIONS = (cov_2qs8napxwn().s[3]++, [{
4568
+ var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[6]++, [QUESTION_KIND.PARAGRAPH.value]);
4569
+ var RATING_OPTIONS = (cov_2qs8napxwn().s[7]++, [{
4338
4570
  icon: SvgHappyFace,
4339
4571
  modifier: "happy",
4340
4572
  value: RATING_VALUES.GOOD.value
@@ -4347,8 +4579,8 @@ var RATING_OPTIONS = (cov_2qs8napxwn().s[3]++, [{
4347
4579
  modifier: "sad",
4348
4580
  value: RATING_VALUES.BAD.value
4349
4581
  }]);
4350
- (cov_2qs8napxwn().s[4]++, /\+\d{11,14}$/);
4351
- var ICONS_MAP = (cov_2qs8napxwn().s[5]++, {
4582
+ (cov_2qs8napxwn().s[8]++, /\+\d{11,14}$/);
4583
+ var ICONS_MAP = (cov_2qs8napxwn().s[9]++, {
4352
4584
  star: MemoizedStar,
4353
4585
  heart: MemoizedHeart,
4354
4586
  crown: MemoizedCrown,
@@ -25294,7 +25526,7 @@ var Editor = function Editor(_ref) {
25294
25526
 
25295
25527
  function cov_2j8tlu2ul5() {
25296
25528
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
25297
- var hash = "6d2a1487c3ee64be33ed78df7bbb278bf982988b";
25529
+ var hash = "b0ce3d8b3b5391e11f9ac6d877b412e8beb4a7ac";
25298
25530
  var global = new Function("return this")();
25299
25531
  var gcv = "__coverage__";
25300
25532
  var coverageData = {
@@ -25336,27 +25568,27 @@ function cov_2j8tlu2ul5() {
25336
25568
  column: 30
25337
25569
  },
25338
25570
  end: {
25339
- line: 210,
25571
+ line: 226,
25340
25572
  column: 1
25341
25573
  }
25342
25574
  },
25343
25575
  "4": {
25344
25576
  start: {
25345
- line: 213,
25577
+ line: 229,
25346
25578
  column: 38
25347
25579
  },
25348
25580
  end: {
25349
- line: 216,
25581
+ line: 232,
25350
25582
  column: 1
25351
25583
  }
25352
25584
  },
25353
25585
  "5": {
25354
25586
  start: {
25355
- line: 218,
25587
+ line: 234,
25356
25588
  column: 29
25357
25589
  },
25358
25590
  end: {
25359
- line: 218,
25591
+ line: 234,
25360
25592
  column: 63
25361
25593
  }
25362
25594
  }
@@ -25374,7 +25606,7 @@ function cov_2j8tlu2ul5() {
25374
25606
  f: {},
25375
25607
  b: {},
25376
25608
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
25377
- hash: "6d2a1487c3ee64be33ed78df7bbb278bf982988b"
25609
+ hash: "b0ce3d8b3b5391e11f9ac6d877b412e8beb4a7ac"
25378
25610
  };
25379
25611
  var coverage = global[gcv] || (global[gcv] = {});
25380
25612
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -25465,6 +25697,24 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
25465
25697
  defaults: {
25466
25698
  label: ""
25467
25699
  }
25700
+ }, {
25701
+ type: "integer",
25702
+ label: i18next.t("neetoForm.fields.iif"),
25703
+ isSingular: false,
25704
+ icon: neetoIcons.Input,
25705
+ component: LongText,
25706
+ defaults: {
25707
+ label: ""
25708
+ }
25709
+ }, {
25710
+ type: "decimal",
25711
+ label: i18next.t("neetoForm.fields.dif"),
25712
+ isSingular: false,
25713
+ icon: neetoIcons.Input,
25714
+ component: LongText,
25715
+ defaults: {
25716
+ label: ""
25717
+ }
25468
25718
  }, {
25469
25719
  type: "rich_text",
25470
25720
  label: i18next.t("neetoForm.fields.rtf"),
@@ -49762,7 +50012,7 @@ var RatingField = function RatingField(_ref) {
49762
50012
 
49763
50013
  function cov_169joloac6() {
49764
50014
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/RichTextEditor.jsx";
49765
- var hash = "6ba7fc3833833f3e5a9b53ad73dcbbb33833852b";
50015
+ var hash = "606c74303adb3d540387836761d6cccb9f3cc43f";
49766
50016
  var global = new Function("return this")();
49767
50017
  var gcv = "__coverage__";
49768
50018
  var coverageData = {
@@ -49770,61 +50020,81 @@ function cov_169joloac6() {
49770
50020
  statementMap: {
49771
50021
  "0": {
49772
50022
  start: {
49773
- line: 9,
50023
+ line: 10,
49774
50024
  column: 23
49775
50025
  },
49776
50026
  end: {
49777
- line: 46,
50027
+ line: 54,
49778
50028
  column: 1
49779
50029
  }
49780
50030
  },
49781
50031
  "1": {
49782
50032
  start: {
49783
- line: 10,
50033
+ line: 11,
49784
50034
  column: 69
49785
50035
  },
49786
50036
  end: {
49787
- line: 10,
50037
+ line: 11,
49788
50038
  column: 77
49789
50039
  }
49790
50040
  },
49791
50041
  "2": {
49792
50042
  start: {
49793
- line: 12,
50043
+ line: 13,
50044
+ column: 31
50045
+ },
50046
+ end: {
50047
+ line: 13,
50048
+ column: 60
50049
+ }
50050
+ },
50051
+ "3": {
50052
+ start: {
50053
+ line: 15,
49794
50054
  column: 2
49795
50055
  },
49796
50056
  end: {
49797
- line: 45,
50057
+ line: 53,
49798
50058
  column: 4
49799
50059
  }
49800
50060
  },
49801
- "3": {
50061
+ "4": {
49802
50062
  start: {
49803
- line: 26,
50063
+ line: 29,
49804
50064
  column: 10
49805
50065
  },
49806
50066
  end: {
49807
- line: 41,
50067
+ line: 29,
50068
+ column: 75
50069
+ }
50070
+ },
50071
+ "5": {
50072
+ start: {
50073
+ line: 33,
50074
+ column: 10
50075
+ },
50076
+ end: {
50077
+ line: 49,
49808
50078
  column: 12
49809
50079
  }
49810
50080
  },
49811
- "4": {
50081
+ "6": {
49812
50082
  start: {
49813
- line: 38,
50083
+ line: 46,
49814
50084
  column: 26
49815
50085
  },
49816
50086
  end: {
49817
- line: 38,
50087
+ line: 46,
49818
50088
  column: 58
49819
50089
  }
49820
50090
  },
49821
- "5": {
50091
+ "7": {
49822
50092
  start: {
49823
- line: 39,
50093
+ line: 47,
49824
50094
  column: 31
49825
50095
  },
49826
50096
  end: {
49827
- line: 39,
50097
+ line: 47,
49828
50098
  column: 62
49829
50099
  }
49830
50100
  }
@@ -49834,222 +50104,246 @@ function cov_169joloac6() {
49834
50104
  name: "(anonymous_0)",
49835
50105
  decl: {
49836
50106
  start: {
49837
- line: 9,
50107
+ line: 10,
49838
50108
  column: 23
49839
50109
  },
49840
50110
  end: {
49841
- line: 9,
50111
+ line: 10,
49842
50112
  column: 24
49843
50113
  }
49844
50114
  },
49845
50115
  loc: {
49846
50116
  start: {
49847
- line: 9,
50117
+ line: 10,
49848
50118
  column: 70
49849
50119
  },
49850
50120
  end: {
49851
- line: 46,
50121
+ line: 54,
49852
50122
  column: 1
49853
50123
  }
49854
50124
  },
49855
- line: 9
50125
+ line: 10
49856
50126
  },
49857
50127
  "1": {
49858
50128
  name: "(anonymous_1)",
49859
50129
  decl: {
49860
50130
  start: {
49861
- line: 25,
50131
+ line: 28,
50132
+ column: 22
50133
+ },
50134
+ end: {
50135
+ line: 28,
50136
+ column: 23
50137
+ }
50138
+ },
50139
+ loc: {
50140
+ start: {
50141
+ line: 29,
50142
+ column: 10
50143
+ },
50144
+ end: {
50145
+ line: 29,
50146
+ column: 75
50147
+ }
50148
+ },
50149
+ line: 29
50150
+ },
50151
+ "2": {
50152
+ name: "(anonymous_2)",
50153
+ decl: {
50154
+ start: {
50155
+ line: 32,
49862
50156
  column: 9
49863
50157
  },
49864
50158
  end: {
49865
- line: 25,
50159
+ line: 32,
49866
50160
  column: 10
49867
50161
  }
49868
50162
  },
49869
50163
  loc: {
49870
50164
  start: {
49871
- line: 26,
50165
+ line: 33,
49872
50166
  column: 10
49873
50167
  },
49874
50168
  end: {
49875
- line: 41,
50169
+ line: 49,
49876
50170
  column: 12
49877
50171
  }
49878
50172
  },
49879
- line: 26
50173
+ line: 33
49880
50174
  },
49881
- "2": {
49882
- name: "(anonymous_2)",
50175
+ "3": {
50176
+ name: "(anonymous_3)",
49883
50177
  decl: {
49884
50178
  start: {
49885
- line: 38,
50179
+ line: 46,
49886
50180
  column: 20
49887
50181
  },
49888
50182
  end: {
49889
- line: 38,
50183
+ line: 46,
49890
50184
  column: 21
49891
50185
  }
49892
50186
  },
49893
50187
  loc: {
49894
50188
  start: {
49895
- line: 38,
50189
+ line: 46,
49896
50190
  column: 26
49897
50191
  },
49898
50192
  end: {
49899
- line: 38,
50193
+ line: 46,
49900
50194
  column: 58
49901
50195
  }
49902
50196
  },
49903
- line: 38
50197
+ line: 46
49904
50198
  },
49905
- "3": {
49906
- name: "(anonymous_3)",
50199
+ "4": {
50200
+ name: "(anonymous_4)",
49907
50201
  decl: {
49908
50202
  start: {
49909
- line: 39,
50203
+ line: 47,
49910
50204
  column: 22
49911
50205
  },
49912
50206
  end: {
49913
- line: 39,
50207
+ line: 47,
49914
50208
  column: 23
49915
50209
  }
49916
50210
  },
49917
50211
  loc: {
49918
50212
  start: {
49919
- line: 39,
50213
+ line: 47,
49920
50214
  column: 31
49921
50215
  },
49922
50216
  end: {
49923
- line: 39,
50217
+ line: 47,
49924
50218
  column: 62
49925
50219
  }
49926
50220
  },
49927
- line: 39
50221
+ line: 47
49928
50222
  }
49929
50223
  },
49930
50224
  branchMap: {
49931
50225
  "0": {
49932
50226
  loc: {
49933
50227
  start: {
49934
- line: 9,
50228
+ line: 10,
49935
50229
  column: 47
49936
50230
  },
49937
50231
  end: {
49938
- line: 9,
50232
+ line: 10,
49939
50233
  column: 63
49940
50234
  }
49941
50235
  },
49942
50236
  type: "default-arg",
49943
50237
  locations: [{
49944
50238
  start: {
49945
- line: 9,
50239
+ line: 10,
49946
50240
  column: 61
49947
50241
  },
49948
50242
  end: {
49949
- line: 9,
50243
+ line: 10,
49950
50244
  column: 63
49951
50245
  }
49952
50246
  }],
49953
- line: 9
50247
+ line: 10
49954
50248
  },
49955
50249
  "1": {
49956
50250
  loc: {
49957
50251
  start: {
49958
- line: 15,
50252
+ line: 18,
49959
50253
  column: 9
49960
50254
  },
49961
50255
  end: {
49962
- line: 19,
50256
+ line: 22,
49963
50257
  column: 9
49964
50258
  }
49965
50259
  },
49966
50260
  type: "binary-expr",
49967
50261
  locations: [{
49968
50262
  start: {
49969
- line: 15,
50263
+ line: 18,
49970
50264
  column: 9
49971
50265
  },
49972
50266
  end: {
49973
- line: 15,
50267
+ line: 18,
49974
50268
  column: 14
49975
50269
  }
49976
50270
  }, {
49977
50271
  start: {
49978
- line: 16,
50272
+ line: 19,
49979
50273
  column: 10
49980
50274
  },
49981
50275
  end: {
49982
- line: 18,
50276
+ line: 21,
49983
50277
  column: 18
49984
50278
  }
49985
50279
  }],
49986
- line: 15
50280
+ line: 18
49987
50281
  },
49988
50282
  "2": {
49989
50283
  loc: {
49990
50284
  start: {
49991
- line: 22,
50285
+ line: 26,
49992
50286
  column: 14
49993
50287
  },
49994
50288
  end: {
49995
- line: 22,
50289
+ line: 26,
49996
50290
  column: 28
49997
50291
  }
49998
50292
  },
49999
50293
  type: "binary-expr",
50000
50294
  locations: [{
50001
50295
  start: {
50002
- line: 22,
50296
+ line: 26,
50003
50297
  column: 14
50004
50298
  },
50005
50299
  end: {
50006
- line: 22,
50300
+ line: 26,
50007
50301
  column: 18
50008
50302
  }
50009
50303
  }, {
50010
50304
  start: {
50011
- line: 22,
50305
+ line: 26,
50012
50306
  column: 22
50013
50307
  },
50014
50308
  end: {
50015
- line: 22,
50309
+ line: 26,
50016
50310
  column: 28
50017
50311
  }
50018
50312
  }],
50019
- line: 22
50313
+ line: 26
50020
50314
  },
50021
50315
  "3": {
50022
50316
  loc: {
50023
50317
  start: {
50024
- line: 28,
50318
+ line: 35,
50025
50319
  column: 19
50026
50320
  },
50027
50321
  end: {
50028
- line: 28,
50322
+ line: 35,
50029
50323
  column: 49
50030
50324
  }
50031
50325
  },
50032
50326
  type: "cond-expr",
50033
50327
  locations: [{
50034
50328
  start: {
50035
- line: 28,
50329
+ line: 35,
50036
50330
  column: 34
50037
50331
  },
50038
50332
  end: {
50039
- line: 28,
50333
+ line: 35,
50040
50334
  column: 44
50041
50335
  }
50042
50336
  }, {
50043
50337
  start: {
50044
- line: 28,
50338
+ line: 35,
50045
50339
  column: 47
50046
50340
  },
50047
50341
  end: {
50048
- line: 28,
50342
+ line: 35,
50049
50343
  column: 49
50050
50344
  }
50051
50345
  }],
50052
- line: 28
50346
+ line: 35
50053
50347
  }
50054
50348
  },
50055
50349
  s: {
@@ -50058,13 +50352,16 @@ function cov_169joloac6() {
50058
50352
  "2": 0,
50059
50353
  "3": 0,
50060
50354
  "4": 0,
50061
- "5": 0
50355
+ "5": 0,
50356
+ "6": 0,
50357
+ "7": 0
50062
50358
  },
50063
50359
  f: {
50064
50360
  "0": 0,
50065
50361
  "1": 0,
50066
50362
  "2": 0,
50067
- "3": 0
50363
+ "3": 0,
50364
+ "4": 0
50068
50365
  },
50069
50366
  b: {
50070
50367
  "0": [0],
@@ -50073,7 +50370,7 @@ function cov_169joloac6() {
50073
50370
  "3": [0, 0]
50074
50371
  },
50075
50372
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
50076
- hash: "6ba7fc3833833f3e5a9b53ad73dcbbb33833852b"
50373
+ hash: "606c74303adb3d540387836761d6cccb9f3cc43f"
50077
50374
  };
50078
50375
  var coverage = global[gcv] || (global[gcv] = {});
50079
50376
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -50103,7 +50400,8 @@ var RichTextEditor = function RichTextEditor(_ref) {
50103
50400
  isRequired = _ref2.isRequired,
50104
50401
  nodeId = _ref2.nodeId,
50105
50402
  placeholder = _ref2.placeholder;
50106
- cov_169joloac6().s[2]++;
50403
+ var debouncedPlaceholder = (cov_169joloac6().s[2]++, reactUtils.useDebounce(placeholder, 300));
50404
+ cov_169joloac6().s[3]++;
50107
50405
  return /*#__PURE__*/React__default["default"].createElement("div", {
50108
50406
  className: "neeto-form-engine-input__wrapper"
50109
50407
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -50111,33 +50409,40 @@ var RichTextEditor = function RichTextEditor(_ref) {
50111
50409
  }, (cov_169joloac6().b[1][0]++, label) && (cov_169joloac6().b[1][1]++, /*#__PURE__*/React__default["default"].createElement("label", {
50112
50410
  className: "neeto-form-engine-label"
50113
50411
  }, getLabel$1(label, isRequired)))), /*#__PURE__*/React__default["default"].createElement(formik.FastField, {
50412
+ debouncedPlaceholder: debouncedPlaceholder,
50114
50413
  name: (cov_169joloac6().b[2][0]++, name) || (cov_169joloac6().b[2][1]++, nodeId),
50115
50414
  validate: validateFieldValue({
50116
50415
  kind: kind,
50117
50416
  label: label,
50118
50417
  isRequired: isRequired
50119
- })
50418
+ }),
50419
+ shouldUpdate: function shouldUpdate(nextProps, prevProps) {
50420
+ cov_169joloac6().f[1]++;
50421
+ cov_169joloac6().s[4]++;
50422
+ return nextProps.debouncedPlaceholder !== prevProps.debouncedPlaceholder;
50423
+ }
50120
50424
  }, function (_ref3) {
50121
50425
  var field = _ref3.field,
50122
50426
  form = _ref3.form,
50123
50427
  meta = _ref3.meta;
50124
- cov_169joloac6().f[1]++;
50125
- cov_169joloac6().s[3]++;
50428
+ cov_169joloac6().f[2]++;
50429
+ cov_169joloac6().s[5]++;
50126
50430
  return /*#__PURE__*/React__default["default"].createElement(neetoEditor.Editor, _extends$8({
50127
50431
  className: "neeto-form-engine-rich-text-input",
50128
50432
  error: meta.touched ? (cov_169joloac6().b[3][0]++, meta.error) : (cov_169joloac6().b[3][1]++, ""),
50129
50433
  initialValue: field.value,
50130
- placeholder: placeholder,
50434
+ key: debouncedPlaceholder,
50435
+ placeholder: debouncedPlaceholder,
50131
50436
  ref: editorRef,
50132
50437
  addons: ["attachments", "block-quote", "code-block", "image-upload"],
50133
50438
  onBlur: function onBlur() {
50134
- cov_169joloac6().f[2]++;
50135
- cov_169joloac6().s[4]++;
50439
+ cov_169joloac6().f[3]++;
50440
+ cov_169joloac6().s[6]++;
50136
50441
  return form.setFieldTouched(name, true);
50137
50442
  },
50138
50443
  onChange: function onChange(value) {
50139
- cov_169joloac6().f[3]++;
50140
- cov_169joloac6().s[5]++;
50444
+ cov_169joloac6().f[4]++;
50445
+ cov_169joloac6().s[7]++;
50141
50446
  return form.setFieldValue(name, value);
50142
50447
  }
50143
50448
  }, editorProps));
@@ -51148,7 +51453,7 @@ var TermsField = function TermsField(_ref) {
51148
51453
 
51149
51454
  function cov_h64dar2vv() {
51150
51455
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/TextField.jsx";
51151
- var hash = "ab2c332db1268cb7f1bdbe13a52dd73ce59a5644";
51456
+ var hash = "b7d64e55c2820e2556092d8ce02f6c9397255ab7";
51152
51457
  var global = new Function("return this")();
51153
51458
  var gcv = "__coverage__";
51154
51459
  var coverageData = {
@@ -51160,7 +51465,7 @@ function cov_h64dar2vv() {
51160
51465
  column: 18
51161
51466
  },
51162
51467
  end: {
51163
- line: 44,
51468
+ line: 46,
51164
51469
  column: 1
51165
51470
  }
51166
51471
  },
@@ -51176,41 +51481,41 @@ function cov_h64dar2vv() {
51176
51481
  },
51177
51482
  "2": {
51178
51483
  start: {
51179
- line: 16,
51484
+ line: 17,
51180
51485
  column: 6
51181
51486
  },
51182
51487
  end: {
51183
- line: 16,
51488
+ line: 17,
51184
51489
  column: 39
51185
51490
  }
51186
51491
  },
51187
51492
  "3": {
51188
51493
  start: {
51189
- line: 18,
51494
+ line: 19,
51190
51495
  column: 20
51191
51496
  },
51192
51497
  end: {
51193
- line: 18,
51498
+ line: 19,
51194
51499
  column: 76
51195
51500
  }
51196
51501
  },
51197
51502
  "4": {
51198
51503
  start: {
51199
- line: 20,
51504
+ line: 21,
51200
51505
  column: 2
51201
51506
  },
51202
51507
  end: {
51203
- line: 43,
51508
+ line: 45,
51204
51509
  column: 4
51205
51510
  }
51206
51511
  },
51207
51512
  "5": {
51208
51513
  start: {
51209
- line: 31,
51514
+ line: 32,
51210
51515
  column: 8
51211
51516
  },
51212
51517
  end: {
51213
- line: 40,
51518
+ line: 42,
51214
51519
  column: 10
51215
51520
  }
51216
51521
  }
@@ -51234,7 +51539,7 @@ function cov_h64dar2vv() {
51234
51539
  column: 69
51235
51540
  },
51236
51541
  end: {
51237
- line: 44,
51542
+ line: 46,
51238
51543
  column: 1
51239
51544
  }
51240
51545
  },
@@ -51244,25 +51549,25 @@ function cov_h64dar2vv() {
51244
51549
  name: "(anonymous_1)",
51245
51550
  decl: {
51246
51551
  start: {
51247
- line: 30,
51552
+ line: 31,
51248
51553
  column: 7
51249
51554
  },
51250
51555
  end: {
51251
- line: 30,
51556
+ line: 31,
51252
51557
  column: 8
51253
51558
  }
51254
51559
  },
51255
51560
  loc: {
51256
51561
  start: {
51257
- line: 31,
51562
+ line: 32,
51258
51563
  column: 8
51259
51564
  },
51260
51565
  end: {
51261
- line: 40,
51566
+ line: 42,
51262
51567
  column: 10
51263
51568
  }
51264
51569
  },
51265
- line: 31
51570
+ line: 32
51266
51571
  }
51267
51572
  },
51268
51573
  branchMap: {
@@ -51293,167 +51598,167 @@ function cov_h64dar2vv() {
51293
51598
  "1": {
51294
51599
  loc: {
51295
51600
  start: {
51296
- line: 18,
51601
+ line: 19,
51297
51602
  column: 20
51298
51603
  },
51299
51604
  end: {
51300
- line: 18,
51605
+ line: 19,
51301
51606
  column: 76
51302
51607
  }
51303
51608
  },
51304
51609
  type: "cond-expr",
51305
51610
  locations: [{
51306
51611
  start: {
51307
- line: 18,
51612
+ line: 19,
51308
51613
  column: 60
51309
51614
  },
51310
51615
  end: {
51311
- line: 18,
51616
+ line: 19,
51312
51617
  column: 68
51313
51618
  }
51314
51619
  }, {
51315
51620
  start: {
51316
- line: 18,
51621
+ line: 19,
51317
51622
  column: 71
51318
51623
  },
51319
51624
  end: {
51320
- line: 18,
51625
+ line: 19,
51321
51626
  column: 76
51322
51627
  }
51323
51628
  }],
51324
- line: 18
51629
+ line: 19
51325
51630
  },
51326
51631
  "2": {
51327
51632
  loc: {
51328
51633
  start: {
51329
- line: 22,
51634
+ line: 23,
51330
51635
  column: 12
51331
51636
  },
51332
51637
  end: {
51333
- line: 22,
51638
+ line: 23,
51334
51639
  column: 26
51335
51640
  }
51336
51641
  },
51337
51642
  type: "binary-expr",
51338
51643
  locations: [{
51339
51644
  start: {
51340
- line: 22,
51645
+ line: 23,
51341
51646
  column: 12
51342
51647
  },
51343
51648
  end: {
51344
- line: 22,
51649
+ line: 23,
51345
51650
  column: 16
51346
51651
  }
51347
51652
  }, {
51348
51653
  start: {
51349
- line: 22,
51654
+ line: 23,
51350
51655
  column: 20
51351
51656
  },
51352
51657
  end: {
51353
- line: 22,
51658
+ line: 23,
51354
51659
  column: 26
51355
51660
  }
51356
51661
  }],
51357
- line: 22
51662
+ line: 23
51358
51663
  },
51359
51664
  "3": {
51360
51665
  loc: {
51361
51666
  start: {
51362
- line: 32,
51667
+ line: 33,
51363
51668
  column: 17
51364
51669
  },
51365
51670
  end: {
51366
- line: 32,
51671
+ line: 33,
51367
51672
  column: 47
51368
51673
  }
51369
51674
  },
51370
51675
  type: "cond-expr",
51371
51676
  locations: [{
51372
51677
  start: {
51373
- line: 32,
51678
+ line: 33,
51374
51679
  column: 32
51375
51680
  },
51376
51681
  end: {
51377
- line: 32,
51682
+ line: 33,
51378
51683
  column: 42
51379
51684
  }
51380
51685
  }, {
51381
51686
  start: {
51382
- line: 32,
51687
+ line: 33,
51383
51688
  column: 45
51384
51689
  },
51385
51690
  end: {
51386
- line: 32,
51691
+ line: 33,
51387
51692
  column: 47
51388
51693
  }
51389
51694
  }],
51390
- line: 32
51695
+ line: 33
51391
51696
  },
51392
51697
  "4": {
51393
51698
  loc: {
51394
51699
  start: {
51395
- line: 35,
51700
+ line: 36,
51396
51701
  column: 18
51397
51702
  },
51398
51703
  end: {
51399
- line: 35,
51704
+ line: 36,
51400
51705
  column: 42
51401
51706
  }
51402
51707
  },
51403
51708
  type: "binary-expr",
51404
51709
  locations: [{
51405
51710
  start: {
51406
- line: 35,
51711
+ line: 36,
51407
51712
  column: 18
51408
51713
  },
51409
51714
  end: {
51410
- line: 35,
51715
+ line: 36,
51411
51716
  column: 32
51412
51717
  }
51413
51718
  }, {
51414
51719
  start: {
51415
- line: 35,
51720
+ line: 36,
51416
51721
  column: 36
51417
51722
  },
51418
51723
  end: {
51419
- line: 35,
51724
+ line: 36,
51420
51725
  column: 42
51421
51726
  }
51422
51727
  }],
51423
- line: 35
51728
+ line: 36
51424
51729
  },
51425
51730
  "5": {
51426
51731
  loc: {
51427
51732
  start: {
51428
- line: 39,
51733
+ line: 40,
51429
51734
  column: 20
51430
51735
  },
51431
51736
  end: {
51432
- line: 39,
51737
+ line: 40,
51433
51738
  column: 74
51434
51739
  }
51435
51740
  },
51436
51741
  type: "binary-expr",
51437
51742
  locations: [{
51438
51743
  start: {
51439
- line: 39,
51744
+ line: 40,
51440
51745
  column: 20
51441
51746
  },
51442
51747
  end: {
51443
- line: 39,
51748
+ line: 40,
51444
51749
  column: 56
51445
51750
  }
51446
51751
  }, {
51447
51752
  start: {
51448
- line: 39,
51753
+ line: 40,
51449
51754
  column: 60
51450
51755
  },
51451
51756
  end: {
51452
- line: 39,
51757
+ line: 40,
51453
51758
  column: 74
51454
51759
  }
51455
51760
  }],
51456
- line: 39
51761
+ line: 40
51457
51762
  }
51458
51763
  },
51459
51764
  s: {
@@ -51477,7 +51782,7 @@ function cov_h64dar2vv() {
51477
51782
  "5": [0, 0]
51478
51783
  },
51479
51784
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
51480
- hash: "ab2c332db1268cb7f1bdbe13a52dd73ce59a5644"
51785
+ hash: "b7d64e55c2820e2556092d8ce02f6c9397255ab7"
51481
51786
  };
51482
51787
  var coverage = global[gcv] || (global[gcv] = {});
51483
51788
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -51510,6 +51815,7 @@ var TextField = function TextField(_ref) {
51510
51815
  prefix = _ref3.prefix,
51511
51816
  _ref3$type = _ref3.type,
51512
51817
  type = _ref3$type === void 0 ? (cov_h64dar2vv().b[0][0]++, "text") : _ref3$type,
51818
+ onKeyDown = _ref3.onKeyDown,
51513
51819
  otherProps = _ref3.otherProps;
51514
51820
  var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.TEXTAREA.value ? (cov_h64dar2vv().b[1][0]++, neetoui.Textarea) : (cov_h64dar2vv().b[1][1]++, neetoui.Input));
51515
51821
  cov_h64dar2vv().s[4]++;
@@ -51535,7 +51841,8 @@ var TextField = function TextField(_ref) {
51535
51841
  required: isRequired,
51536
51842
  type: type
51537
51843
  }, field, {
51538
- onChange: (_ref5 = (cov_h64dar2vv().b[5][0]++, otherProps === null || otherProps === void 0 ? void 0 : otherProps.onChange(field.onChange))) !== null && _ref5 !== void 0 ? _ref5 : (cov_h64dar2vv().b[5][1]++, field.onChange)
51844
+ onChange: (_ref5 = (cov_h64dar2vv().b[5][0]++, otherProps === null || otherProps === void 0 ? void 0 : otherProps.onChange(field.onChange))) !== null && _ref5 !== void 0 ? _ref5 : (cov_h64dar2vv().b[5][1]++, field.onChange),
51845
+ onKeyDown: onKeyDown
51539
51846
  }));
51540
51847
  });
51541
51848
  };
@@ -51543,7 +51850,7 @@ var TextField = function TextField(_ref) {
51543
51850
  var _ref2;
51544
51851
  function cov_1cenqfav07() {
51545
51852
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/constants.jsx";
51546
- var hash = "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27";
51853
+ var hash = "0af4d5e3c7cc4a9d26f13aaafeeba9bad2171ebe";
51547
51854
  var global = new Function("return this")();
51548
51855
  var gcv = "__coverage__";
51549
51856
  var coverageData = {
@@ -51555,17 +51862,17 @@ function cov_1cenqfav07() {
51555
51862
  column: 41
51556
51863
  },
51557
51864
  end: {
51558
- line: 38,
51865
+ line: 40,
51559
51866
  column: 1
51560
51867
  }
51561
51868
  },
51562
51869
  "1": {
51563
51870
  start: {
51564
- line: 30,
51871
+ line: 32,
51565
51872
  column: 4
51566
51873
  },
51567
51874
  end: {
51568
- line: 30,
51875
+ line: 32,
51569
51876
  column: 46
51570
51877
  }
51571
51878
  }
@@ -51575,25 +51882,25 @@ function cov_1cenqfav07() {
51575
51882
  name: "(anonymous_0)",
51576
51883
  decl: {
51577
51884
  start: {
51578
- line: 29,
51885
+ line: 31,
51579
51886
  column: 35
51580
51887
  },
51581
51888
  end: {
51582
- line: 29,
51889
+ line: 31,
51583
51890
  column: 36
51584
51891
  }
51585
51892
  },
51586
51893
  loc: {
51587
51894
  start: {
51588
- line: 30,
51895
+ line: 32,
51589
51896
  column: 4
51590
51897
  },
51591
51898
  end: {
51592
- line: 30,
51899
+ line: 32,
51593
51900
  column: 46
51594
51901
  }
51595
51902
  },
51596
- line: 30
51903
+ line: 32
51597
51904
  }
51598
51905
  },
51599
51906
  branchMap: {},
@@ -51606,7 +51913,7 @@ function cov_1cenqfav07() {
51606
51913
  },
51607
51914
  b: {},
51608
51915
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
51609
- hash: "d225c5a1e9ed444a01ab4d7cb1d85c0478f33d27"
51916
+ hash: "0af4d5e3c7cc4a9d26f13aaafeeba9bad2171ebe"
51610
51917
  };
51611
51918
  var coverage = global[gcv] || (global[gcv] = {});
51612
51919
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -51622,7 +51929,7 @@ function cov_1cenqfav07() {
51622
51929
  return actualCoverage;
51623
51930
  }
51624
51931
  cov_1cenqfav07();
51625
- var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$7(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$7(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.TEXTAREA.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$7(_ref2, QUESTION_KIND.PARAGRAPH.value, function (_ref) {
51932
+ var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$7(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.INTEGER.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.DECIMAL.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$7(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.TEXTAREA.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$7(_ref2, QUESTION_KIND.PARAGRAPH.value, function (_ref) {
51626
51933
  var question = _ref.question;
51627
51934
  cov_1cenqfav07().f[0]++;
51628
51935
  cov_1cenqfav07().s[1]++;