@scenid/react-formulator 2.1.1 → 2.1.3

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
@@ -29648,9 +29648,6 @@ FormField.propTypes = {
29648
29648
  dirty: PropTypes__default["default"].bool,
29649
29649
  onChange: PropTypes__default["default"].func.isRequired
29650
29650
  };
29651
- var FormField$1 = /*#__PURE__*/React__default["default"].memo(FormField, function (prevProps, nextProps) {
29652
- return fastDeepEqual(prevProps, nextProps);
29653
- });
29654
29651
 
29655
29652
  function _extends() {
29656
29653
  _extends = Object.assign || function (target) {
@@ -29838,6 +29835,7 @@ FormText.propTypes = {
29838
29835
  onChange: PropTypes__default["default"].func
29839
29836
  };
29840
29837
 
29838
+ // eslint-disable-next-line import/prefer-default-export
29841
29839
  var castToNumber = function castToNumber(value, step) {
29842
29840
  if (value === undefined || Number.isNaN(value) || value === '') {
29843
29841
  return '';
@@ -29874,7 +29872,8 @@ var FormNumber = function FormNumber(_ref) {
29874
29872
  value: castToNumber(e.target.value, step)
29875
29873
  }
29876
29874
  });
29877
- }
29875
+ } // eslint-disable-next-line react/jsx-props-no-spreading
29876
+
29878
29877
  }, props));
29879
29878
  };
29880
29879
 
@@ -77244,10 +77243,9 @@ function language(node) {
77244
77243
  var FormReadOnlyMarkdown = function FormReadOnlyMarkdown(_ref) {
77245
77244
  var content = _ref.content;
77246
77245
  return /*#__PURE__*/React__default["default"].createElement(ReactMarkdown, {
77247
- children: content,
77248
77246
  remarkPlugins: [remarkGfm],
77249
77247
  rehypePlugins: [rehypeHighlight]
77250
- });
77248
+ }, content);
77251
77249
  };
77252
77250
 
77253
77251
  FormReadOnlyMarkdown.propTypes = {
@@ -77674,7 +77672,7 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
77674
77672
  }
77675
77673
  }
77676
77674
 
77677
- var FormFieldComponent = readOnly ? FormReadOnlyField$1 : FormField$1;
77675
+ var FormFieldComponent = readOnly ? FormReadOnlyField$1 : FormField;
77678
77676
  return /*#__PURE__*/React__default["default"].createElement(FormFieldComponent, {
77679
77677
  key: "form-".concat(id, "-").concat(name),
77680
77678
  variant: inputVariant,
@@ -78761,7 +78759,7 @@ FormPrimaryToggle.propTypes = {
78761
78759
 
78762
78760
  exports.FormAutocomplete = FormAutocomplete;
78763
78761
  exports.FormBoolean = FormBoolean;
78764
- exports.FormField = FormField$1;
78762
+ exports.FormField = FormField;
78765
78763
  exports.FormNumber = FormNumber;
78766
78764
  exports.FormOptionsLoader = FormOptionsLoader;
78767
78765
  exports.FormPrimaryToggle = FormPrimaryToggle;
package/dist/index.esm.js CHANGED
@@ -29635,9 +29635,6 @@ FormField.propTypes = {
29635
29635
  dirty: PropTypes.bool,
29636
29636
  onChange: PropTypes.func.isRequired
29637
29637
  };
29638
- var FormField$1 = /*#__PURE__*/React.memo(FormField, function (prevProps, nextProps) {
29639
- return fastDeepEqual(prevProps, nextProps);
29640
- });
29641
29638
 
29642
29639
  function _extends() {
29643
29640
  _extends = Object.assign || function (target) {
@@ -29825,6 +29822,7 @@ FormText.propTypes = {
29825
29822
  onChange: PropTypes.func
29826
29823
  };
29827
29824
 
29825
+ // eslint-disable-next-line import/prefer-default-export
29828
29826
  var castToNumber = function castToNumber(value, step) {
29829
29827
  if (value === undefined || Number.isNaN(value) || value === '') {
29830
29828
  return '';
@@ -29861,7 +29859,8 @@ var FormNumber = function FormNumber(_ref) {
29861
29859
  value: castToNumber(e.target.value, step)
29862
29860
  }
29863
29861
  });
29864
- }
29862
+ } // eslint-disable-next-line react/jsx-props-no-spreading
29863
+
29865
29864
  }, props));
29866
29865
  };
29867
29866
 
@@ -77231,10 +77230,9 @@ function language(node) {
77231
77230
  var FormReadOnlyMarkdown = function FormReadOnlyMarkdown(_ref) {
77232
77231
  var content = _ref.content;
77233
77232
  return /*#__PURE__*/React.createElement(ReactMarkdown, {
77234
- children: content,
77235
77233
  remarkPlugins: [remarkGfm],
77236
77234
  rehypePlugins: [rehypeHighlight]
77237
- });
77235
+ }, content);
77238
77236
  };
77239
77237
 
77240
77238
  FormReadOnlyMarkdown.propTypes = {
@@ -77661,7 +77659,7 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
77661
77659
  }
77662
77660
  }
77663
77661
 
77664
- var FormFieldComponent = readOnly ? FormReadOnlyField$1 : FormField$1;
77662
+ var FormFieldComponent = readOnly ? FormReadOnlyField$1 : FormField;
77665
77663
  return /*#__PURE__*/React.createElement(FormFieldComponent, {
77666
77664
  key: "form-".concat(id, "-").concat(name),
77667
77665
  variant: inputVariant,
@@ -78746,4 +78744,4 @@ FormPrimaryToggle.propTypes = {
78746
78744
  uncheckedLabel: PropTypes.string.isRequired
78747
78745
  };
78748
78746
 
78749
- export { FormAutocomplete, FormBoolean, FormField$1 as FormField, FormNumber, FormOptionsLoader, FormPrimaryToggle, FormReadOnlyBoolean, FormReadOnlyField$1 as FormReadOnlyField, FormReadOnlyMarkdown, FormReadOnlyNumber, FormReadOnlyRepeater, FormReadOnlySelect, FormReadOnlyText, FormRepeater, FormSelect, FormText, FormulatorForm, HiddenData, SelectOrCreate };
78747
+ export { FormAutocomplete, FormBoolean, FormField, FormNumber, FormOptionsLoader, FormPrimaryToggle, FormReadOnlyBoolean, FormReadOnlyField$1 as FormReadOnlyField, FormReadOnlyMarkdown, FormReadOnlyNumber, FormReadOnlyRepeater, FormReadOnlySelect, FormReadOnlyText, FormRepeater, FormSelect, FormText, FormulatorForm, HiddenData, SelectOrCreate };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenid/react-formulator",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",