@app-studio/web 0.8.13 → 0.8.15

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/web.esm.js CHANGED
@@ -4843,7 +4843,7 @@ var PasswordComponent = _ref => {
4843
4843
  */
4844
4844
  var Password = PasswordComponent;
4845
4845
 
4846
- var _excluded$z = ["children", "autoFocus", "initFocus"];
4846
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
4847
4847
  var FocusContext = /*#__PURE__*/createContext({
4848
4848
  active: false,
4849
4849
  focusNextInput: () => {},
@@ -4856,10 +4856,14 @@ var FormikForm = _ref => {
4856
4856
  var {
4857
4857
  children,
4858
4858
  autoFocus = false,
4859
- initFocus
4859
+ initFocus,
4860
+ onChange = () => {}
4860
4861
  } = _ref,
4861
4862
  props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
4862
4863
  var formik = useFormikContext();
4864
+ useEffect(() => {
4865
+ onChange(formik.values);
4866
+ }, [formik.values]);
4863
4867
  var inputRefs = useRef({});
4864
4868
  var inputNames = useRef([]);
4865
4869
  var setInputRef = (name, ref) => {
@@ -4962,7 +4966,6 @@ var useFormikInput = _ref => {
4962
4966
  };
4963
4967
  var handleBlur = () => {
4964
4968
  setFieldTouched(name, true);
4965
- // if(props.onBlur)props.onBlur();
4966
4969
  };
4967
4970
  var handleKeyPress = e => {
4968
4971
  if (e.key === 'Enter') {