@bigbinary/neeto-form-frontend 1.0.40 → 1.0.41

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
@@ -26614,7 +26614,7 @@ var Rating$2 = function Rating(_ref2) {
26614
26614
 
26615
26615
  function cov_1j1yg440h3() {
26616
26616
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/Fields/RichText.jsx";
26617
- var hash = "8ac3526d883b8aec708ba7f706efe88f3d975bec";
26617
+ var hash = "ae73cb4ad3ef2b18eff02f58dc524760c09e76b9";
26618
26618
  var global = new Function("return this")();
26619
26619
  var gcv = "__coverage__";
26620
26620
  var coverageData = {
@@ -26626,7 +26626,7 @@ function cov_1j1yg440h3() {
26626
26626
  column: 17
26627
26627
  },
26628
26628
  end: {
26629
- line: 35,
26629
+ line: 42,
26630
26630
  column: 1
26631
26631
  }
26632
26632
  },
@@ -26646,7 +26646,7 @@ function cov_1j1yg440h3() {
26646
26646
  column: 2
26647
26647
  },
26648
26648
  end: {
26649
- line: 34,
26649
+ line: 41,
26650
26650
  column: 4
26651
26651
  }
26652
26652
  }
@@ -26670,7 +26670,7 @@ function cov_1j1yg440h3() {
26670
26670
  column: 60
26671
26671
  },
26672
26672
  end: {
26673
- line: 35,
26673
+ line: 42,
26674
26674
  column: 1
26675
26675
  }
26676
26676
  },
@@ -26681,35 +26681,35 @@ function cov_1j1yg440h3() {
26681
26681
  "0": {
26682
26682
  loc: {
26683
26683
  start: {
26684
- line: 24,
26684
+ line: 31,
26685
26685
  column: 7
26686
26686
  },
26687
26687
  end: {
26688
- line: 32,
26688
+ line: 39,
26689
26689
  column: 7
26690
26690
  }
26691
26691
  },
26692
26692
  type: "binary-expr",
26693
26693
  locations: [{
26694
26694
  start: {
26695
- line: 24,
26695
+ line: 31,
26696
26696
  column: 7
26697
26697
  },
26698
26698
  end: {
26699
- line: 24,
26699
+ line: 31,
26700
26700
  column: 18
26701
26701
  }
26702
26702
  }, {
26703
26703
  start: {
26704
- line: 25,
26704
+ line: 32,
26705
26705
  column: 8
26706
26706
  },
26707
26707
  end: {
26708
- line: 31,
26708
+ line: 38,
26709
26709
  column: 14
26710
26710
  }
26711
26711
  }],
26712
- line: 24
26712
+ line: 31
26713
26713
  }
26714
26714
  },
26715
26715
  s: {
@@ -26724,7 +26724,7 @@ function cov_1j1yg440h3() {
26724
26724
  "0": [0, 0]
26725
26725
  },
26726
26726
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
26727
- hash: "8ac3526d883b8aec708ba7f706efe88f3d975bec"
26727
+ hash: "ae73cb4ad3ef2b18eff02f58dc524760c09e76b9"
26728
26728
  };
26729
26729
  var coverage = global[gcv] || (global[gcv] = {});
26730
26730
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -26761,6 +26761,12 @@ var RichText$1 = function RichText(_ref) {
26761
26761
  label: t("questions.common.questionFields.field.question"),
26762
26762
  name: "".concat(name, ".label"),
26763
26763
  rows: 1
26764
+ })), /*#__PURE__*/React__default.createElement("div", {
26765
+ className: "col-span-2"
26766
+ }, /*#__PURE__*/React__default.createElement(TextAreaWithMaxLength, {
26767
+ label: t("questions.common.questionFields.field.placeholder"),
26768
+ name: "".concat(name, ".placeholder"),
26769
+ rows: 3
26764
26770
  }))), (cov_1j1yg440h3().b[0][0]++, !isRequired) && (cov_1j1yg440h3().b[0][1]++, /*#__PURE__*/React__default.createElement("div", {
26765
26771
  className: "w-full"
26766
26772
  }, /*#__PURE__*/React__default.createElement(Checkbox, {
@@ -62551,7 +62557,7 @@ var RatingField = function RatingField(_ref) {
62551
62557
 
62552
62558
  function cov_169joloac6() {
62553
62559
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/RichTextEditor.jsx";
62554
- var hash = "4236332be49a6acd899089775528e62786cc3f81";
62560
+ var hash = "53fd3688aa83451f7f39b66ea40c7dfe6344a2f5";
62555
62561
  var global = new Function("return this")();
62556
62562
  var gcv = "__coverage__";
62557
62563
  var coverageData = {
@@ -62563,18 +62569,18 @@ function cov_169joloac6() {
62563
62569
  column: 23
62564
62570
  },
62565
62571
  end: {
62566
- line: 44,
62572
+ line: 45,
62567
62573
  column: 1
62568
62574
  }
62569
62575
  },
62570
62576
  "1": {
62571
62577
  start: {
62572
62578
  line: 10,
62573
- column: 56
62579
+ column: 69
62574
62580
  },
62575
62581
  end: {
62576
62582
  line: 10,
62577
- column: 64
62583
+ column: 77
62578
62584
  }
62579
62585
  },
62580
62586
  "2": {
@@ -62583,7 +62589,7 @@ function cov_169joloac6() {
62583
62589
  column: 2
62584
62590
  },
62585
62591
  end: {
62586
- line: 43,
62592
+ line: 44,
62587
62593
  column: 4
62588
62594
  }
62589
62595
  },
@@ -62593,27 +62599,27 @@ function cov_169joloac6() {
62593
62599
  column: 10
62594
62600
  },
62595
62601
  end: {
62596
- line: 39,
62602
+ line: 40,
62597
62603
  column: 12
62598
62604
  }
62599
62605
  },
62600
62606
  "4": {
62601
62607
  start: {
62602
- line: 36,
62608
+ line: 37,
62603
62609
  column: 26
62604
62610
  },
62605
62611
  end: {
62606
- line: 36,
62612
+ line: 37,
62607
62613
  column: 58
62608
62614
  }
62609
62615
  },
62610
62616
  "5": {
62611
62617
  start: {
62612
- line: 37,
62618
+ line: 38,
62613
62619
  column: 31
62614
62620
  },
62615
62621
  end: {
62616
- line: 37,
62622
+ line: 38,
62617
62623
  column: 62
62618
62624
  }
62619
62625
  }
@@ -62637,7 +62643,7 @@ function cov_169joloac6() {
62637
62643
  column: 59
62638
62644
  },
62639
62645
  end: {
62640
- line: 44,
62646
+ line: 45,
62641
62647
  column: 1
62642
62648
  }
62643
62649
  },
@@ -62661,7 +62667,7 @@ function cov_169joloac6() {
62661
62667
  column: 10
62662
62668
  },
62663
62669
  end: {
62664
- line: 39,
62670
+ line: 40,
62665
62671
  column: 12
62666
62672
  }
62667
62673
  },
@@ -62671,49 +62677,49 @@ function cov_169joloac6() {
62671
62677
  name: "(anonymous_2)",
62672
62678
  decl: {
62673
62679
  start: {
62674
- line: 36,
62680
+ line: 37,
62675
62681
  column: 20
62676
62682
  },
62677
62683
  end: {
62678
- line: 36,
62684
+ line: 37,
62679
62685
  column: 21
62680
62686
  }
62681
62687
  },
62682
62688
  loc: {
62683
62689
  start: {
62684
- line: 36,
62690
+ line: 37,
62685
62691
  column: 26
62686
62692
  },
62687
62693
  end: {
62688
- line: 36,
62694
+ line: 37,
62689
62695
  column: 58
62690
62696
  }
62691
62697
  },
62692
- line: 36
62698
+ line: 37
62693
62699
  },
62694
62700
  "3": {
62695
62701
  name: "(anonymous_3)",
62696
62702
  decl: {
62697
62703
  start: {
62698
- line: 37,
62704
+ line: 38,
62699
62705
  column: 22
62700
62706
  },
62701
62707
  end: {
62702
- line: 37,
62708
+ line: 38,
62703
62709
  column: 23
62704
62710
  }
62705
62711
  },
62706
62712
  loc: {
62707
62713
  start: {
62708
- line: 37,
62714
+ line: 38,
62709
62715
  column: 31
62710
62716
  },
62711
62717
  end: {
62712
- line: 37,
62718
+ line: 38,
62713
62719
  column: 62
62714
62720
  }
62715
62721
  },
62716
- line: 37
62722
+ line: 38
62717
62723
  }
62718
62724
  },
62719
62725
  branchMap: {
@@ -62862,7 +62868,7 @@ function cov_169joloac6() {
62862
62868
  "3": [0, 0]
62863
62869
  },
62864
62870
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
62865
- hash: "4236332be49a6acd899089775528e62786cc3f81"
62871
+ hash: "53fd3688aa83451f7f39b66ea40c7dfe6344a2f5"
62866
62872
  };
62867
62873
  var coverage = global[gcv] || (global[gcv] = {});
62868
62874
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -62889,7 +62895,8 @@ var RichTextEditor = function RichTextEditor(_ref) {
62889
62895
  kind = _ref2.kind,
62890
62896
  label = _ref2.label,
62891
62897
  isRequired = _ref2.isRequired,
62892
- nodeId = _ref2.nodeId;
62898
+ nodeId = _ref2.nodeId,
62899
+ placeholder = _ref2.placeholder;
62893
62900
  cov_169joloac6().s[2]++;
62894
62901
  return /*#__PURE__*/React__default.createElement("div", {
62895
62902
  className: "neeto-form-engine-input__wrapper"
@@ -62914,6 +62921,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
62914
62921
  className: "neeto-form-engine-rich-text-input",
62915
62922
  error: meta.touched ? (cov_169joloac6().b[3][0]++, meta.error) : (cov_169joloac6().b[3][1]++, ""),
62916
62923
  initialValue: field.value,
62924
+ placeholder: placeholder,
62917
62925
  addons: ["attachments", "block-quote", "code-block", "image-upload"],
62918
62926
  onBlur: function onBlur() {
62919
62927
  cov_169joloac6().f[2]++;