@overmap-ai/core 1.0.28-integrate-forms.1 → 1.0.28-integrate-forms.2

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,8 @@ 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: {
15
+ (props: PatchFieldProps): null;
16
+ displayName: string;
17
+ };
15
18
  export {};
@@ -9645,23 +9645,10 @@ const FormSubmissionBrowser = memo(function FormSubmissionBrowser2(props) {
9645
9645
  }
9646
9646
  );
9647
9647
  });
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]);
9664
- });
9648
+ const PatchField = (props) => {
9649
+ console.log("PatchField props:", props);
9650
+ return null;
9651
+ };
9665
9652
  PatchField.displayName = "PatchField";
9666
9653
  const PatchFormProvider = memo(
9667
9654
  forwardRef((props, ref) => {