@bigbinary/neeto-form-frontend 1.0.49 → 1.0.51

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.js CHANGED
@@ -23472,12 +23472,7 @@ var common = {
23472
23472
  fieldReq: "{{field}} is required",
23473
23473
  thisFieldIsRequired: "This Field is required",
23474
23474
  somethingWentWrong: "Something went wrong!",
23475
- unsavedChangesAlert: {
23476
- title: "You have unsaved changes!",
23477
- message: "Are you sure you want to continue? All of your unsaved changes will be lost."
23478
- },
23479
23475
  "delete": "Delete",
23480
- remove: "Remove",
23481
23476
  agreeTermsAndConditions: "I agree to terms & conditions mentioned below",
23482
23477
  agreeCondition: "I agree",
23483
23478
  mustAcceptTermsAndConditions: "You must accept the terms and conditions",
@@ -23486,26 +23481,17 @@ var common = {
23486
23481
  phNo: "Phone number",
23487
23482
  name: "Name",
23488
23483
  text: "Text",
23489
- results: "Results",
23490
23484
  rate: "Rate",
23491
23485
  reset: "Reset",
23492
- submit: "Submit",
23493
- formName: "Form Name",
23494
23486
  singleChoice: "Single choice",
23495
23487
  company: "Company",
23496
23488
  select: "Select",
23497
23489
  selectOne: "Select one",
23498
23490
  required: "Required",
23499
- description: "Description",
23500
- cantBeEmpty: "{{field}} can't be empty",
23501
23491
  invalidURL: "Invalid URL",
23502
23492
  paragraphCantBeEmpty: "Paragraph can't be empty",
23503
23493
  fillTheFormToChat: "Please fill in the form to start chatting.",
23504
23494
  phoneNumberValidation: "phone number starting with country code",
23505
- phoneNo: {
23506
- defaultPlaceholder: "Phone number starting with country code. Eg: +1543213321"
23507
- },
23508
- content: "Content",
23509
23495
  yes: "Yes",
23510
23496
  count: "Count",
23511
23497
  icon: "Icon",
@@ -23528,7 +23514,6 @@ var fields = {
23528
23514
  tcf: "Terms and conditions",
23529
23515
  date: "Date",
23530
23516
  fbf: "Feedback",
23531
- meif: "Multiple email",
23532
23517
  agif: "Additional guests",
23533
23518
  rtf: "Rich text field",
23534
23519
  cf: "Condition"
@@ -23553,15 +23538,11 @@ var questions = {
23553
23538
  },
23554
23539
  common: {
23555
23540
  notFound: "No questions found",
23556
- switchLabel: "{{label}} questions",
23557
23541
  primaryPanel: {
23558
- resetMsg: "The changes are canceled.",
23559
23542
  addNewQuestion: "Add new question"
23560
23543
  },
23561
23544
  duplicateBtn: "Duplicate",
23562
- minOneQuestion: "At least 1 question is required",
23563
23545
  questionFields: {
23564
- descr: "Enter your description",
23565
23546
  field: {
23566
23547
  question: "Question",
23567
23548
  placeholder: "Placeholder",
@@ -23569,19 +23550,7 @@ var questions = {
23569
23550
  addOption: "Add new option",
23570
23551
  option: "Option",
23571
23552
  options: "Options",
23572
- ratings: "Ratings",
23573
- ty: "Enter your thank you message here",
23574
- yes: "Yes",
23575
- no: "No",
23576
23553
  labelExample: "Eg: {{what}}",
23577
- placeholderExample: "Eg: Please enter your {{what}}",
23578
- placeholderExampleSelect: "Eg: Please select {{what}}",
23579
- termsLink: "Terms and conditions link",
23580
- termsLinkPlaceholder: "Eg: https://www.example.com/terms",
23581
- policyLink: "Privacy policy link",
23582
- policyLinkPlaceholder: "Eg: https://www.example.com/policy",
23583
- showEnableButton: "Show enable button",
23584
- enableButtonLabel: "Enable button label",
23585
23554
  label: "Label"
23586
23555
  }
23587
23556
  }
@@ -31510,7 +31479,7 @@ var List = function List(_ref) {
31510
31479
  var _excluded$c = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn", "isDisabledFieldLabel"];
31511
31480
  function cov_2e8k7gwd81() {
31512
31481
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/index.jsx";
31513
- var hash = "75bc0a57ebc0e79094a7a070d3da27cbc5fa1354";
31482
+ var hash = "0e541f4af3139e353b4bfbecbf13d6733838aa71";
31514
31483
  var global = new Function("return this")();
31515
31484
  var gcv = "__coverage__";
31516
31485
  var coverageData = {
@@ -31522,7 +31491,7 @@ function cov_2e8k7gwd81() {
31522
31491
  column: 13
31523
31492
  },
31524
31493
  end: {
31525
- line: 221,
31494
+ line: 224,
31526
31495
  column: 1
31527
31496
  }
31528
31497
  },
@@ -31792,7 +31761,7 @@ function cov_2e8k7gwd81() {
31792
31761
  column: 2
31793
31762
  },
31794
31763
  end: {
31795
- line: 220,
31764
+ line: 223,
31796
31765
  column: 4
31797
31766
  }
31798
31767
  },
@@ -31906,7 +31875,7 @@ function cov_2e8k7gwd81() {
31906
31875
  column: 6
31907
31876
  },
31908
31877
  end: {
31909
- line: 221,
31878
+ line: 224,
31910
31879
  column: 1
31911
31880
  }
31912
31881
  },
@@ -32578,7 +32547,7 @@ function cov_2e8k7gwd81() {
32578
32547
  column: 9
32579
32548
  },
32580
32549
  end: {
32581
- line: 217,
32550
+ line: 220,
32582
32551
  column: 9
32583
32552
  }
32584
32553
  },
@@ -32598,7 +32567,7 @@ function cov_2e8k7gwd81() {
32598
32567
  column: 10
32599
32568
  },
32600
32569
  end: {
32601
- line: 216,
32570
+ line: 219,
32602
32571
  column: 12
32603
32572
  }
32604
32573
  }],
@@ -32607,35 +32576,35 @@ function cov_2e8k7gwd81() {
32607
32576
  "9": {
32608
32577
  loc: {
32609
32578
  start: {
32610
- line: 213,
32579
+ line: 216,
32611
32580
  column: 24
32612
32581
  },
32613
32582
  end: {
32614
- line: 213,
32583
+ line: 216,
32615
32584
  column: 46
32616
32585
  }
32617
32586
  },
32618
32587
  type: "binary-expr",
32619
32588
  locations: [{
32620
32589
  start: {
32621
- line: 213,
32590
+ line: 216,
32622
32591
  column: 24
32623
32592
  },
32624
32593
  end: {
32625
- line: 213,
32594
+ line: 216,
32626
32595
  column: 36
32627
32596
  }
32628
32597
  }, {
32629
32598
  start: {
32630
- line: 213,
32599
+ line: 216,
32631
32600
  column: 40
32632
32601
  },
32633
32602
  end: {
32634
- line: 213,
32603
+ line: 216,
32635
32604
  column: 46
32636
32605
  }
32637
32606
  }],
32638
- line: 213
32607
+ line: 216
32639
32608
  }
32640
32609
  },
32641
32610
  s: {
@@ -32709,7 +32678,7 @@ function cov_2e8k7gwd81() {
32709
32678
  "9": [0, 0]
32710
32679
  },
32711
32680
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
32712
- hash: "75bc0a57ebc0e79094a7a070d3da27cbc5fa1354"
32681
+ hash: "0e541f4af3139e353b4bfbecbf13d6733838aa71"
32713
32682
  };
32714
32683
  var coverage = global[gcv] || (global[gcv] = {});
32715
32684
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -32923,7 +32892,9 @@ var Form = function Form(_ref) {
32923
32892
  setFieldValue("questions", nextQuestions, false);
32924
32893
  }
32925
32894
  }))), (cov_2e8k7gwd81().b[8][0]++, showActionBlock) && (cov_2e8k7gwd81().b[8][1]++, /*#__PURE__*/React__default.createElement(ActionBlock, {
32926
- cancelButtonProps: cancelButtonProps,
32895
+ cancelButtonProps: _objectSpread$9({
32896
+ label: t("common.reset")
32897
+ }, cancelButtonProps),
32927
32898
  submitButtonProps: _objectSpread$9({
32928
32899
  disabled: (cov_2e8k7gwd81().b[9][0]++, isSubmitting) || (cov_2e8k7gwd81().b[9][1]++, !dirty)
32929
32900
  }, submitButtonProps)
@@ -60063,7 +60034,7 @@ var _excluded$3 = ["value", "shape", "label", "rating", "count"],
60063
60034
  _excluded2 = ["label", "count", "shape", "error"];
60064
60035
  function cov_1i05gngf6n() {
60065
60036
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/StarRating.jsx";
60066
- var hash = "e87679363bef59396fcbc6073c08deca94e1fc01";
60037
+ var hash = "4cc8b01374d450decd3ee7feb3afe2974394b895";
60067
60038
  var global = new Function("return this")();
60068
60039
  var gcv = "__coverage__";
60069
60040
  var coverageData = {
@@ -60135,7 +60106,7 @@ function cov_1i05gngf6n() {
60135
60106
  column: 19
60136
60107
  },
60137
60108
  end: {
60138
- line: 71,
60109
+ line: 73,
60139
60110
  column: 1
60140
60111
  }
60141
60112
  },
@@ -60145,17 +60116,17 @@ function cov_1i05gngf6n() {
60145
60116
  column: 2
60146
60117
  },
60147
60118
  end: {
60148
- line: 70,
60119
+ line: 72,
60149
60120
  column: 8
60150
60121
  }
60151
60122
  },
60152
60123
  "8": {
60153
60124
  start: {
60154
- line: 55,
60125
+ line: 57,
60155
60126
  column: 10
60156
60127
  },
60157
60128
  end: {
60158
- line: 62,
60129
+ line: 64,
60159
60130
  column: 12
60160
60131
  }
60161
60132
  }
@@ -60227,7 +60198,7 @@ function cov_1i05gngf6n() {
60227
60198
  column: 2
60228
60199
  },
60229
60200
  end: {
60230
- line: 70,
60201
+ line: 72,
60231
60202
  column: 8
60232
60203
  }
60233
60204
  },
@@ -60237,25 +60208,25 @@ function cov_1i05gngf6n() {
60237
60208
  name: "(anonymous_3)",
60238
60209
  decl: {
60239
60210
  start: {
60240
- line: 54,
60211
+ line: 56,
60241
60212
  column: 8
60242
60213
  },
60243
60214
  end: {
60244
- line: 54,
60215
+ line: 56,
60245
60216
  column: 9
60246
60217
  }
60247
60218
  },
60248
60219
  loc: {
60249
60220
  start: {
60250
- line: 55,
60221
+ line: 57,
60251
60222
  column: 10
60252
60223
  },
60253
60224
  end: {
60254
- line: 62,
60225
+ line: 64,
60255
60226
  column: 12
60256
60227
  }
60257
60228
  },
60258
- line: 55
60229
+ line: 57
60259
60230
  }
60260
60231
  },
60261
60232
  branchMap: {
@@ -60319,44 +60290,44 @@ function cov_1i05gngf6n() {
60319
60290
  "2": {
60320
60291
  loc: {
60321
60292
  start: {
60322
- line: 67,
60293
+ line: 69,
60323
60294
  column: 5
60324
60295
  },
60325
60296
  end: {
60326
- line: 69,
60297
+ line: 71,
60327
60298
  column: 5
60328
60299
  }
60329
60300
  },
60330
60301
  type: "binary-expr",
60331
60302
  locations: [{
60332
60303
  start: {
60333
- line: 67,
60304
+ line: 69,
60334
60305
  column: 5
60335
60306
  },
60336
60307
  end: {
60337
- line: 67,
60308
+ line: 69,
60338
60309
  column: 12
60339
60310
  }
60340
60311
  }, {
60341
60312
  start: {
60342
- line: 67,
60313
+ line: 69,
60343
60314
  column: 16
60344
60315
  },
60345
60316
  end: {
60346
- line: 67,
60317
+ line: 69,
60347
60318
  column: 41
60348
60319
  }
60349
60320
  }, {
60350
60321
  start: {
60351
- line: 68,
60322
+ line: 70,
60352
60323
  column: 6
60353
60324
  },
60354
60325
  end: {
60355
- line: 68,
60326
+ line: 70,
60356
60327
  column: 63
60357
60328
  }
60358
60329
  }],
60359
- line: 67
60330
+ line: 69
60360
60331
  }
60361
60332
  },
60362
60333
  s: {
@@ -60382,7 +60353,7 @@ function cov_1i05gngf6n() {
60382
60353
  "2": [0, 0, 0]
60383
60354
  },
60384
60355
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
60385
- hash: "e87679363bef59396fcbc6073c08deca94e1fc01"
60356
+ hash: "4cc8b01374d450decd3ee7feb3afe2974394b895"
60386
60357
  };
60387
60358
  var coverage = global[gcv] || (global[gcv] = {});
60388
60359
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -60447,10 +60418,12 @@ var StarRating = function StarRating(_ref2) {
60447
60418
  cov_1i05gngf6n().f[2]++;
60448
60419
  cov_1i05gngf6n().s[7]++;
60449
60420
  return /*#__PURE__*/React__default.createElement("div", {
60450
- className: "neeto-form-engine-star-rating"
60421
+ className: "neeto-form-engine-input__wrapper neeto-form-engine-star-rating"
60422
+ }, /*#__PURE__*/React__default.createElement("div", {
60423
+ className: "neeto-form-engine-input__label-wrapper"
60451
60424
  }, /*#__PURE__*/React__default.createElement("label", {
60452
60425
  className: "neeto-form-engine-label"
60453
- }, label), /*#__PURE__*/React__default.createElement("div", {
60426
+ }, label)), /*#__PURE__*/React__default.createElement("div", {
60454
60427
  className: "neeto-form-engine-star-rating__row"
60455
60428
  }, times(function (index) {
60456
60429
  cov_1i05gngf6n().f[3]++;