@overmap-ai/forms 1.0.32-react-flow-david-fixes.21 → 1.0.32-react-flow-david-fixes.23
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/forms.js +2 -6
- package/dist/forms.umd.cjs +2 -6
- package/package.json +1 -1
package/dist/forms.js
CHANGED
|
@@ -36244,7 +36244,7 @@ async function awaitPromisesFromFieldValues(values) {
|
|
|
36244
36244
|
const FormRenderer = memo(
|
|
36245
36245
|
forwardRef((props, ref) => {
|
|
36246
36246
|
const {
|
|
36247
|
-
schema
|
|
36247
|
+
schema,
|
|
36248
36248
|
values = {},
|
|
36249
36249
|
onValuesChange,
|
|
36250
36250
|
onSubmit,
|
|
@@ -36254,17 +36254,13 @@ const FormRenderer = memo(
|
|
|
36254
36254
|
onDirty,
|
|
36255
36255
|
onDirtyChange,
|
|
36256
36256
|
// if the title isn't provided, hide it by default
|
|
36257
|
-
hideTitle = !
|
|
36257
|
+
hideTitle = !schema.title,
|
|
36258
36258
|
hideDescription,
|
|
36259
36259
|
className,
|
|
36260
36260
|
buttonProps,
|
|
36261
36261
|
enableReinitialize = false,
|
|
36262
36262
|
excludeUnchangedFields = false
|
|
36263
36263
|
} = props;
|
|
36264
|
-
const [schema, setSchema] = useState(schemaFromProps);
|
|
36265
|
-
useLayoutEffect(() => {
|
|
36266
|
-
setSchema(schemaFromProps);
|
|
36267
|
-
}, [schemaFromProps]);
|
|
36268
36264
|
const { readonly } = schema.meta;
|
|
36269
36265
|
const formId2 = useId$1();
|
|
36270
36266
|
const initialValues = useMemo(() => {
|
package/dist/forms.umd.cjs
CHANGED
|
@@ -36246,7 +36246,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
36246
36246
|
const FormRenderer = React.memo(
|
|
36247
36247
|
React.forwardRef((props, ref) => {
|
|
36248
36248
|
const {
|
|
36249
|
-
schema
|
|
36249
|
+
schema,
|
|
36250
36250
|
values = {},
|
|
36251
36251
|
onValuesChange,
|
|
36252
36252
|
onSubmit,
|
|
@@ -36256,17 +36256,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
36256
36256
|
onDirty,
|
|
36257
36257
|
onDirtyChange,
|
|
36258
36258
|
// if the title isn't provided, hide it by default
|
|
36259
|
-
hideTitle = !
|
|
36259
|
+
hideTitle = !schema.title,
|
|
36260
36260
|
hideDescription,
|
|
36261
36261
|
className,
|
|
36262
36262
|
buttonProps,
|
|
36263
36263
|
enableReinitialize = false,
|
|
36264
36264
|
excludeUnchangedFields = false
|
|
36265
36265
|
} = props;
|
|
36266
|
-
const [schema, setSchema] = React.useState(schemaFromProps);
|
|
36267
|
-
React.useLayoutEffect(() => {
|
|
36268
|
-
setSchema(schemaFromProps);
|
|
36269
|
-
}, [schemaFromProps]);
|
|
36270
36266
|
const { readonly } = schema.meta;
|
|
36271
36267
|
const formId2 = React.useId();
|
|
36272
36268
|
const initialValues = React.useMemo(() => {
|