@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.cjs.js CHANGED
@@ -23511,12 +23511,7 @@ var common = {
23511
23511
  fieldReq: "{{field}} is required",
23512
23512
  thisFieldIsRequired: "This Field is required",
23513
23513
  somethingWentWrong: "Something went wrong!",
23514
- unsavedChangesAlert: {
23515
- title: "You have unsaved changes!",
23516
- message: "Are you sure you want to continue? All of your unsaved changes will be lost."
23517
- },
23518
23514
  "delete": "Delete",
23519
- remove: "Remove",
23520
23515
  agreeTermsAndConditions: "I agree to terms & conditions mentioned below",
23521
23516
  agreeCondition: "I agree",
23522
23517
  mustAcceptTermsAndConditions: "You must accept the terms and conditions",
@@ -23525,26 +23520,17 @@ var common = {
23525
23520
  phNo: "Phone number",
23526
23521
  name: "Name",
23527
23522
  text: "Text",
23528
- results: "Results",
23529
23523
  rate: "Rate",
23530
23524
  reset: "Reset",
23531
- submit: "Submit",
23532
- formName: "Form Name",
23533
23525
  singleChoice: "Single choice",
23534
23526
  company: "Company",
23535
23527
  select: "Select",
23536
23528
  selectOne: "Select one",
23537
23529
  required: "Required",
23538
- description: "Description",
23539
- cantBeEmpty: "{{field}} can't be empty",
23540
23530
  invalidURL: "Invalid URL",
23541
23531
  paragraphCantBeEmpty: "Paragraph can't be empty",
23542
23532
  fillTheFormToChat: "Please fill in the form to start chatting.",
23543
23533
  phoneNumberValidation: "phone number starting with country code",
23544
- phoneNo: {
23545
- defaultPlaceholder: "Phone number starting with country code. Eg: +1543213321"
23546
- },
23547
- content: "Content",
23548
23534
  yes: "Yes",
23549
23535
  count: "Count",
23550
23536
  icon: "Icon",
@@ -23567,7 +23553,6 @@ var fields = {
23567
23553
  tcf: "Terms and conditions",
23568
23554
  date: "Date",
23569
23555
  fbf: "Feedback",
23570
- meif: "Multiple email",
23571
23556
  agif: "Additional guests",
23572
23557
  rtf: "Rich text field",
23573
23558
  cf: "Condition"
@@ -23592,15 +23577,11 @@ var questions = {
23592
23577
  },
23593
23578
  common: {
23594
23579
  notFound: "No questions found",
23595
- switchLabel: "{{label}} questions",
23596
23580
  primaryPanel: {
23597
- resetMsg: "The changes are canceled.",
23598
23581
  addNewQuestion: "Add new question"
23599
23582
  },
23600
23583
  duplicateBtn: "Duplicate",
23601
- minOneQuestion: "At least 1 question is required",
23602
23584
  questionFields: {
23603
- descr: "Enter your description",
23604
23585
  field: {
23605
23586
  question: "Question",
23606
23587
  placeholder: "Placeholder",
@@ -23608,19 +23589,7 @@ var questions = {
23608
23589
  addOption: "Add new option",
23609
23590
  option: "Option",
23610
23591
  options: "Options",
23611
- ratings: "Ratings",
23612
- ty: "Enter your thank you message here",
23613
- yes: "Yes",
23614
- no: "No",
23615
23592
  labelExample: "Eg: {{what}}",
23616
- placeholderExample: "Eg: Please enter your {{what}}",
23617
- placeholderExampleSelect: "Eg: Please select {{what}}",
23618
- termsLink: "Terms and conditions link",
23619
- termsLinkPlaceholder: "Eg: https://www.example.com/terms",
23620
- policyLink: "Privacy policy link",
23621
- policyLinkPlaceholder: "Eg: https://www.example.com/policy",
23622
- showEnableButton: "Show enable button",
23623
- enableButtonLabel: "Enable button label",
23624
23593
  label: "Label"
23625
23594
  }
23626
23595
  }
@@ -31549,7 +31518,7 @@ var List = function List(_ref) {
31549
31518
  var _excluded$c = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn", "isDisabledFieldLabel"];
31550
31519
  function cov_2e8k7gwd81() {
31551
31520
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/index.jsx";
31552
- var hash = "75bc0a57ebc0e79094a7a070d3da27cbc5fa1354";
31521
+ var hash = "0e541f4af3139e353b4bfbecbf13d6733838aa71";
31553
31522
  var global = new Function("return this")();
31554
31523
  var gcv = "__coverage__";
31555
31524
  var coverageData = {
@@ -31561,7 +31530,7 @@ function cov_2e8k7gwd81() {
31561
31530
  column: 13
31562
31531
  },
31563
31532
  end: {
31564
- line: 221,
31533
+ line: 224,
31565
31534
  column: 1
31566
31535
  }
31567
31536
  },
@@ -31831,7 +31800,7 @@ function cov_2e8k7gwd81() {
31831
31800
  column: 2
31832
31801
  },
31833
31802
  end: {
31834
- line: 220,
31803
+ line: 223,
31835
31804
  column: 4
31836
31805
  }
31837
31806
  },
@@ -31945,7 +31914,7 @@ function cov_2e8k7gwd81() {
31945
31914
  column: 6
31946
31915
  },
31947
31916
  end: {
31948
- line: 221,
31917
+ line: 224,
31949
31918
  column: 1
31950
31919
  }
31951
31920
  },
@@ -32617,7 +32586,7 @@ function cov_2e8k7gwd81() {
32617
32586
  column: 9
32618
32587
  },
32619
32588
  end: {
32620
- line: 217,
32589
+ line: 220,
32621
32590
  column: 9
32622
32591
  }
32623
32592
  },
@@ -32637,7 +32606,7 @@ function cov_2e8k7gwd81() {
32637
32606
  column: 10
32638
32607
  },
32639
32608
  end: {
32640
- line: 216,
32609
+ line: 219,
32641
32610
  column: 12
32642
32611
  }
32643
32612
  }],
@@ -32646,35 +32615,35 @@ function cov_2e8k7gwd81() {
32646
32615
  "9": {
32647
32616
  loc: {
32648
32617
  start: {
32649
- line: 213,
32618
+ line: 216,
32650
32619
  column: 24
32651
32620
  },
32652
32621
  end: {
32653
- line: 213,
32622
+ line: 216,
32654
32623
  column: 46
32655
32624
  }
32656
32625
  },
32657
32626
  type: "binary-expr",
32658
32627
  locations: [{
32659
32628
  start: {
32660
- line: 213,
32629
+ line: 216,
32661
32630
  column: 24
32662
32631
  },
32663
32632
  end: {
32664
- line: 213,
32633
+ line: 216,
32665
32634
  column: 36
32666
32635
  }
32667
32636
  }, {
32668
32637
  start: {
32669
- line: 213,
32638
+ line: 216,
32670
32639
  column: 40
32671
32640
  },
32672
32641
  end: {
32673
- line: 213,
32642
+ line: 216,
32674
32643
  column: 46
32675
32644
  }
32676
32645
  }],
32677
- line: 213
32646
+ line: 216
32678
32647
  }
32679
32648
  },
32680
32649
  s: {
@@ -32748,7 +32717,7 @@ function cov_2e8k7gwd81() {
32748
32717
  "9": [0, 0]
32749
32718
  },
32750
32719
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
32751
- hash: "75bc0a57ebc0e79094a7a070d3da27cbc5fa1354"
32720
+ hash: "0e541f4af3139e353b4bfbecbf13d6733838aa71"
32752
32721
  };
32753
32722
  var coverage = global[gcv] || (global[gcv] = {});
32754
32723
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -32962,7 +32931,9 @@ var Form = function Form(_ref) {
32962
32931
  setFieldValue("questions", nextQuestions, false);
32963
32932
  }
32964
32933
  }))), (cov_2e8k7gwd81().b[8][0]++, showActionBlock) && (cov_2e8k7gwd81().b[8][1]++, /*#__PURE__*/React__default["default"].createElement(formik$1.ActionBlock, {
32965
- cancelButtonProps: cancelButtonProps,
32934
+ cancelButtonProps: _objectSpread$9({
32935
+ label: t("common.reset")
32936
+ }, cancelButtonProps),
32966
32937
  submitButtonProps: _objectSpread$9({
32967
32938
  disabled: (cov_2e8k7gwd81().b[9][0]++, isSubmitting) || (cov_2e8k7gwd81().b[9][1]++, !dirty)
32968
32939
  }, submitButtonProps)
@@ -60102,7 +60073,7 @@ var _excluded$3 = ["value", "shape", "label", "rating", "count"],
60102
60073
  _excluded2 = ["label", "count", "shape", "error"];
60103
60074
  function cov_1i05gngf6n() {
60104
60075
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/StarRating.jsx";
60105
- var hash = "e87679363bef59396fcbc6073c08deca94e1fc01";
60076
+ var hash = "4cc8b01374d450decd3ee7feb3afe2974394b895";
60106
60077
  var global = new Function("return this")();
60107
60078
  var gcv = "__coverage__";
60108
60079
  var coverageData = {
@@ -60174,7 +60145,7 @@ function cov_1i05gngf6n() {
60174
60145
  column: 19
60175
60146
  },
60176
60147
  end: {
60177
- line: 71,
60148
+ line: 73,
60178
60149
  column: 1
60179
60150
  }
60180
60151
  },
@@ -60184,17 +60155,17 @@ function cov_1i05gngf6n() {
60184
60155
  column: 2
60185
60156
  },
60186
60157
  end: {
60187
- line: 70,
60158
+ line: 72,
60188
60159
  column: 8
60189
60160
  }
60190
60161
  },
60191
60162
  "8": {
60192
60163
  start: {
60193
- line: 55,
60164
+ line: 57,
60194
60165
  column: 10
60195
60166
  },
60196
60167
  end: {
60197
- line: 62,
60168
+ line: 64,
60198
60169
  column: 12
60199
60170
  }
60200
60171
  }
@@ -60266,7 +60237,7 @@ function cov_1i05gngf6n() {
60266
60237
  column: 2
60267
60238
  },
60268
60239
  end: {
60269
- line: 70,
60240
+ line: 72,
60270
60241
  column: 8
60271
60242
  }
60272
60243
  },
@@ -60276,25 +60247,25 @@ function cov_1i05gngf6n() {
60276
60247
  name: "(anonymous_3)",
60277
60248
  decl: {
60278
60249
  start: {
60279
- line: 54,
60250
+ line: 56,
60280
60251
  column: 8
60281
60252
  },
60282
60253
  end: {
60283
- line: 54,
60254
+ line: 56,
60284
60255
  column: 9
60285
60256
  }
60286
60257
  },
60287
60258
  loc: {
60288
60259
  start: {
60289
- line: 55,
60260
+ line: 57,
60290
60261
  column: 10
60291
60262
  },
60292
60263
  end: {
60293
- line: 62,
60264
+ line: 64,
60294
60265
  column: 12
60295
60266
  }
60296
60267
  },
60297
- line: 55
60268
+ line: 57
60298
60269
  }
60299
60270
  },
60300
60271
  branchMap: {
@@ -60358,44 +60329,44 @@ function cov_1i05gngf6n() {
60358
60329
  "2": {
60359
60330
  loc: {
60360
60331
  start: {
60361
- line: 67,
60332
+ line: 69,
60362
60333
  column: 5
60363
60334
  },
60364
60335
  end: {
60365
- line: 69,
60336
+ line: 71,
60366
60337
  column: 5
60367
60338
  }
60368
60339
  },
60369
60340
  type: "binary-expr",
60370
60341
  locations: [{
60371
60342
  start: {
60372
- line: 67,
60343
+ line: 69,
60373
60344
  column: 5
60374
60345
  },
60375
60346
  end: {
60376
- line: 67,
60347
+ line: 69,
60377
60348
  column: 12
60378
60349
  }
60379
60350
  }, {
60380
60351
  start: {
60381
- line: 67,
60352
+ line: 69,
60382
60353
  column: 16
60383
60354
  },
60384
60355
  end: {
60385
- line: 67,
60356
+ line: 69,
60386
60357
  column: 41
60387
60358
  }
60388
60359
  }, {
60389
60360
  start: {
60390
- line: 68,
60361
+ line: 70,
60391
60362
  column: 6
60392
60363
  },
60393
60364
  end: {
60394
- line: 68,
60365
+ line: 70,
60395
60366
  column: 63
60396
60367
  }
60397
60368
  }],
60398
- line: 67
60369
+ line: 69
60399
60370
  }
60400
60371
  },
60401
60372
  s: {
@@ -60421,7 +60392,7 @@ function cov_1i05gngf6n() {
60421
60392
  "2": [0, 0, 0]
60422
60393
  },
60423
60394
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
60424
- hash: "e87679363bef59396fcbc6073c08deca94e1fc01"
60395
+ hash: "4cc8b01374d450decd3ee7feb3afe2974394b895"
60425
60396
  };
60426
60397
  var coverage = global[gcv] || (global[gcv] = {});
60427
60398
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -60486,10 +60457,12 @@ var StarRating = function StarRating(_ref2) {
60486
60457
  cov_1i05gngf6n().f[2]++;
60487
60458
  cov_1i05gngf6n().s[7]++;
60488
60459
  return /*#__PURE__*/React__default["default"].createElement("div", {
60489
- className: "neeto-form-engine-star-rating"
60460
+ className: "neeto-form-engine-input__wrapper neeto-form-engine-star-rating"
60461
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
60462
+ className: "neeto-form-engine-input__label-wrapper"
60490
60463
  }, /*#__PURE__*/React__default["default"].createElement("label", {
60491
60464
  className: "neeto-form-engine-label"
60492
- }, label), /*#__PURE__*/React__default["default"].createElement("div", {
60465
+ }, label)), /*#__PURE__*/React__default["default"].createElement("div", {
60493
60466
  className: "neeto-form-engine-star-rating__row"
60494
60467
  }, ramda.times(function (index) {
60495
60468
  cov_1i05gngf6n().f[3]++;