@overmap-ai/core 1.0.33-revamp-forms-builder.16 → 1.0.33-revamp-forms-builder.18

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.
@@ -1,5 +1,5 @@
1
- import { AnyField, BaseFormElement, BooleanField, GetInputProps } from "../index";
2
1
  import { ReactNode } from "react";
2
+ import { AnyField, BaseFormElement, BooleanField, GetInputProps } from "../index";
3
3
  import { BaseSerializedObject, Form, ISerializedField, SerializedCondition, SerializedFieldSection } from "../../typings";
4
4
  import { FormikUserFormRevision } from "../../builder";
5
5
  interface FieldSectionOptions extends Omit<BaseSerializedObject, "type"> {
@@ -4,4 +4,4 @@ import { ComponentProps } from "../typings";
4
4
  /**
5
5
  * Used by FieldSection to render a section of fields.
6
6
  */
7
- export declare const FieldSectionLayout: import("react").NamedExoticComponent<ComponentProps<FieldSection>>;
7
+ export declare const FieldSectionLayout: import("react").MemoExoticComponent<(props: ComponentProps<FieldSection>) => string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined>;
@@ -5,7 +5,15 @@ import { ChangeEvent, ReactNode } from "react";
5
5
  import { FontFamilyIcon } from "@radix-ui/react-icons";
6
6
  import { ISerializedField, SerializedNumberField } from "../../typings";
7
7
  export type NumberFieldValue = number | "";
8
- export declare const emptyNumberField: SerializedNumberField;
8
+ export declare const emptyNumberField: {
9
+ type: string;
10
+ minimum: number;
11
+ maximum: number;
12
+ integers: boolean;
13
+ label: string;
14
+ required: boolean;
15
+ description: string;
16
+ };
9
17
  export interface NumberFieldOptions extends ChildFieldOptions<NumberFieldValue> {
10
18
  maximum?: number;
11
19
  minimum?: number;
@@ -25,7 +25,15 @@ export declare const FieldTypeToEmptyFieldMapping: {
25
25
  required: boolean;
26
26
  description: string;
27
27
  };
28
- readonly number: import('..').SerializedNumberField;
28
+ readonly number: {
29
+ type: string;
30
+ minimum: number;
31
+ maximum: number;
32
+ integers: boolean;
33
+ label: string;
34
+ required: boolean;
35
+ description: string;
36
+ };
29
37
  readonly boolean: {
30
38
  type: string;
31
39
  label: string;
@@ -9,4 +9,3 @@ export * from "./FieldSection";
9
9
  export * from "./utils";
10
10
  export * from "./hooks";
11
11
  export * from "./typings";
12
- export * from "./constants";
@@ -1,8 +1,7 @@
1
1
  import { AnyField, ISchema, ISerializedOnlyField, SchemaMeta } from "./typings";
2
2
  import { FieldSection } from "./FieldSection";
3
- import { FieldValue, Form, ISerializedField, SerializedCondition } from "../typings";
3
+ import { FieldValue, ISerializedField, SerializedCondition } from "../typings";
4
4
  import { UserFormRevision } from "../../typings";
5
- import { FormikUserFormRevision } from "../builder";
6
5
  /** Deserializes anything but a FieldSection.
7
6
  * @see `deserialize` for most use cases
8
7
  */
@@ -12,5 +11,4 @@ export declare const deserialize: (serialized: ISerializedField) => AnyField | F
12
11
  export type PartialFormRevision = Pick<UserFormRevision, "title" | "fields" | "description"> & Partial<UserFormRevision>;
13
12
  export declare function formRevisionToSchema(formRevision: PartialFormRevision, meta?: Partial<SchemaMeta>): ISchema;
14
13
  export declare function valueIsFile(v: FieldValue | Promise<File>[] | undefined): v is File[] | Promise<File>[];
15
- export declare const valueIsFormikUserFormRevision: (form: FormikUserFormRevision | Form) => form is FormikUserFormRevision;
16
14
  export declare function isConditionMet<TValue extends FieldValue | Promise<File>[]>(condition: TValue extends FieldValue ? SerializedCondition<TValue> | null : null, value: TValue): boolean;