@overmap-ai/core 1.0.35-fix-token-refresh-loop.4 → 1.0.35-fix-token-refresh-loop.6

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.
@@ -10251,7 +10251,6 @@ var __publicField = (obj, key, value) => {
10251
10251
  );
10252
10252
  const validate = React.useCallback(
10253
10253
  (form) => {
10254
- console.debug("VALIDATING FORM:", form);
10255
10254
  const error2 = validateForm(schema, form);
10256
10255
  if (error2) {
10257
10256
  onError(error2);
@@ -10272,8 +10271,9 @@ var __publicField = (obj, key, value) => {
10272
10271
  validateOnBlur: false,
10273
10272
  validateOnChange: false
10274
10273
  });
10275
- const handleBlur = React.useCallback(() => {
10274
+ const handleChange = React.useCallback(() => {
10276
10275
  if (onDirtyChange) {
10276
+ console.debug("ON CHANGE");
10277
10277
  const diff = getDiff(formik$1.values);
10278
10278
  if (hasKeys(diff)) {
10279
10279
  onDirtyChange(true);
@@ -10286,7 +10286,7 @@ var __publicField = (obj, key, value) => {
10286
10286
  resetForm({ values: initialValues2, errors: {} });
10287
10287
  }
10288
10288
  }, [errors, initialValues2, resetForm]);
10289
- return /* @__PURE__ */ jsxRuntime.jsx(formik.FormikProvider, { value: formik$1, children: /* @__PURE__ */ jsxRuntime.jsx("form", { ...rest, ref, onSubmit: formik$1.handleSubmit, onBlur: handleBlur, children }) });
10289
+ return /* @__PURE__ */ jsxRuntime.jsx(formik.FormikProvider, { value: formik$1, children: /* @__PURE__ */ jsxRuntime.jsx("form", { ...rest, ref, onSubmit: formik$1.handleSubmit, onChange: handleChange, children }) });
10290
10290
  })
10291
10291
  );
10292
10292
  const typeBadge$1 = "_typeBadge_an5ff_1";