@overmap-ai/core 1.0.28-integrate-forms.1 → 1.0.28-integrate-forms.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.
@@ -11,5 +11,5 @@ interface PatchFieldProps {
11
11
  name: string;
12
12
  render: (args: RenderArgs) => ReactNode;
13
13
  }
14
- export declare const PatchField: import("react").MemoExoticComponent<(props: PatchFieldProps) => ReactNode>;
14
+ export declare const PatchField: import("react").MemoExoticComponent<(props: PatchFieldProps) => null>;
15
15
  export {};
@@ -9646,21 +9646,8 @@ const FormSubmissionBrowser = memo(function FormSubmissionBrowser2(props) {
9646
9646
  );
9647
9647
  });
9648
9648
  const PatchField = memo((props) => {
9649
- const { name, render } = props;
9650
- const { submitForm } = useFormikContext();
9651
- const [fieldProps, _meta, helpers] = useField(name);
9652
- return useMemo(() => {
9653
- const setValue = (value) => {
9654
- void helpers.setValue(value, false);
9655
- };
9656
- return render({
9657
- value: fieldProps.value,
9658
- setValue,
9659
- patchValue: () => {
9660
- void submitForm();
9661
- }
9662
- });
9663
- }, [submitForm, helpers, fieldProps.value, render]);
9649
+ console.log("PatchField props:", props);
9650
+ return null;
9664
9651
  });
9665
9652
  PatchField.displayName = "PatchField";
9666
9653
  const PatchFormProvider = memo(