@app-studio/web 0.8.13 → 0.8.14

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.
@@ -4837,7 +4837,7 @@
4837
4837
  */
4838
4838
  var Password = PasswordComponent;
4839
4839
 
4840
- var _excluded$z = ["children", "autoFocus", "initFocus"];
4840
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
4841
4841
  var FocusContext = /*#__PURE__*/React.createContext({
4842
4842
  active: false,
4843
4843
  focusNextInput: () => {},
@@ -4850,10 +4850,16 @@
4850
4850
  var {
4851
4851
  children,
4852
4852
  autoFocus = false,
4853
- initFocus
4853
+ initFocus,
4854
+ onChange
4854
4855
  } = _ref,
4855
4856
  props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
4856
4857
  var formik$1 = formik.useFormikContext();
4858
+ React.useEffect(() => {
4859
+ if (onChange) {
4860
+ onChange(formik$1.values);
4861
+ }
4862
+ }, [formik$1.values, onChange]);
4857
4863
  var inputRefs = React.useRef({});
4858
4864
  var inputNames = React.useRef([]);
4859
4865
  var setInputRef = (name, ref) => {
@@ -4956,7 +4962,6 @@
4956
4962
  };
4957
4963
  var handleBlur = () => {
4958
4964
  setFieldTouched(name, true);
4959
- // if(props.onBlur)props.onBlur();
4960
4965
  };
4961
4966
  var handleKeyPress = e => {
4962
4967
  if (e.key === 'Enter') {