@overmap-ai/core 1.0.28-integrate-forms.4 → 1.0.28-integrate-forms.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.
|
@@ -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) =>
|
|
14
|
+
export declare const PatchField: import("react").MemoExoticComponent<(props: PatchFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
15
|
export {};
|
package/dist/overmap-core.js
CHANGED
|
@@ -9650,7 +9650,7 @@ const PatchField = memo((props) => {
|
|
|
9650
9650
|
const { name, render } = props;
|
|
9651
9651
|
const { submitForm } = useFormikContext();
|
|
9652
9652
|
const [fieldProps, _meta, helpers] = useField(name);
|
|
9653
|
-
useMemo(() => {
|
|
9653
|
+
const ret = useMemo(() => {
|
|
9654
9654
|
const setValue = (value) => {
|
|
9655
9655
|
void helpers.setValue(value, false);
|
|
9656
9656
|
};
|
|
@@ -9662,7 +9662,7 @@ const PatchField = memo((props) => {
|
|
|
9662
9662
|
}
|
|
9663
9663
|
});
|
|
9664
9664
|
}, [submitForm, helpers, fieldProps.value, render]);
|
|
9665
|
-
return
|
|
9665
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: ret });
|
|
9666
9666
|
});
|
|
9667
9667
|
PatchField.displayName = "PatchField";
|
|
9668
9668
|
const PatchFormProvider = memo(
|