@overmap-ai/forms 1.0.30 → 1.0.32-react-flow-david.1
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/form/builder/FieldBuilder.d.ts +2 -3
- package/dist/form/builder/FieldSectionBuilder.d.ts +9 -0
- package/dist/form/builder/FieldSectionConditionEdge.d.ts +4 -0
- package/dist/form/builder/FieldSectionConditionMenu.d.ts +10 -0
- package/dist/form/builder/FieldSectionConditionalItem.d.ts +11 -0
- package/dist/form/builder/FieldSectionNode.d.ts +16 -0
- package/dist/form/builder/FieldSectionWithActions.d.ts +2 -3
- package/dist/form/builder/FieldWithActions.d.ts +2 -2
- package/dist/form/builder/constants.d.ts +0 -1
- package/dist/form/builder/flow/CustomNode.d.ts +1 -0
- package/dist/form/builder/flow/FlowEditor.d.ts +1 -0
- package/dist/form/builder/flow/NodeSectionEditor.d.ts +5 -0
- package/dist/form/builder/flow/SectionSidePanel.d.ts +5 -0
- package/dist/form/builder/utils.d.ts +1 -0
- package/dist/form/conditions/components/BooleanFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/CheckboxListFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/ConditionModifierDropdown.d.ts +13 -0
- package/dist/form/conditions/components/DateFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/DayPickerPopover.d.ts +4 -0
- package/dist/form/conditions/components/MultiSelectFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/MultiStringFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/NumberFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/RadioFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/RemoveConditionButton.d.ts +9 -0
- package/dist/form/conditions/components/ScanFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/SelectFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/SelectFieldOptionMultiSelectGroup.d.ts +6 -0
- package/dist/form/conditions/components/SelectFieldOptionSelectGroup.d.ts +6 -0
- package/dist/form/conditions/components/StringFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/TextFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/TextInputPopover.d.ts +9 -0
- package/dist/form/conditions/components/UploadFieldConditionCell.d.ts +5 -0
- package/dist/form/conditions/components/constants.d.ts +4 -0
- package/dist/form/conditions/condition/condition.d.ts +26 -0
- package/dist/form/conditions/condition/index.d.ts +1 -0
- package/dist/form/conditions/condition/typings.d.ts +16 -0
- package/dist/form/conditions/hooks.d.ts +10 -0
- package/dist/form/conditions/index.d.ts +1 -0
- package/dist/form/conditions/manager/conditionManager.d.ts +24 -0
- package/dist/form/conditions/manager/index.d.ts +2 -0
- package/dist/form/conditions/manager/typings.d.ts +1 -0
- package/dist/form/conditions/modifier/conditionModifier.d.ts +17 -0
- package/dist/form/conditions/modifiers/boolean.d.ts +3 -0
- package/dist/form/conditions/modifiers/date.d.ts +5 -0
- package/dist/form/conditions/modifiers/file.d.ts +3 -0
- package/dist/form/conditions/modifiers/index.d.ts +4 -0
- package/dist/form/conditions/modifiers/number.d.ts +7 -0
- package/dist/form/conditions/modifiers/string.d.ts +12 -0
- package/dist/form/conditions/typings.d.ts +14 -0
- package/dist/form/conditions/utils.d.ts +2 -0
- package/dist/form/fields/BaseField/BaseField.d.ts +14 -2
- package/dist/form/fields/BaseField/hooks.d.ts +13 -13
- package/dist/form/fields/BaseField/typings.d.ts +8 -1
- package/dist/form/fields/BaseSelectField/BaseSelectField.d.ts +1 -1
- package/dist/form/fields/BaseSelectField/typings.d.ts +1 -2
- package/dist/form/fields/BooleanField/BooleanField.d.ts +9 -2
- package/dist/form/fields/CheckboxListField/CheckboxListField.d.ts +12 -2
- package/dist/form/fields/DateField/DateField.d.ts +13 -4
- package/dist/form/fields/FieldSection/FieldSection.d.ts +8 -13
- package/dist/form/fields/FieldSection/typings.d.ts +3 -7
- package/dist/form/fields/MultiSelectField/MultiSelectField.d.ts +16 -5
- package/dist/form/fields/MultiStringField/MultiStringField.d.ts +12 -2
- package/dist/form/fields/NumberField/NumberField.d.ts +13 -2
- package/dist/form/fields/RadioField/RadioField.d.ts +13 -3
- package/dist/form/fields/ScanField/ScanField.d.ts +11 -2
- package/dist/form/fields/SelectField/SelectField.d.ts +13 -3
- package/dist/form/fields/StringField/StringField.d.ts +2 -0
- package/dist/form/fields/StringOrTextField/StringOrTextField.d.ts +9 -1
- package/dist/form/fields/TextField/TextField.d.ts +2 -0
- package/dist/form/fields/UploadField/UploadField.d.ts +9 -2
- package/dist/form/fields/constants.d.ts +0 -8
- package/dist/form/fields/hooks.d.ts +3 -3
- package/dist/form/fields/typings.d.ts +5 -3
- package/dist/form/fields/utils.d.ts +2 -2
- package/dist/form/renderer/context.d.ts +7 -0
- package/dist/forms.css +1 -0
- package/dist/forms.js +8857 -7060
- package/dist/forms.umd.cjs +24 -24
- package/package.json +5 -3
- package/dist/form/fields/CustomField/CustomField.d.ts +0 -23
- package/dist/form/fields/CustomField/FieldInputClonerField/FieldInputCloner.d.ts +0 -7
- package/dist/form/fields/CustomField/FieldInputClonerField/FieldInputClonerField.d.ts +0 -18
- package/dist/form/fields/CustomField/FieldInputClonerField/index.d.ts +0 -3
- package/dist/form/fields/CustomField/FieldInputClonerField/typings.d.ts +0 -4
- package/dist/form/fields/CustomField/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overmap-ai/forms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32-react-flow-david.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"main": "dist/forms.umd.cjs",
|
|
6
6
|
"module": "dist/forms.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build-storybook": "storybook build"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@overmap-ai/blocks": "1.0.37
|
|
31
|
+
"@overmap-ai/blocks": "1.0.37",
|
|
32
32
|
"react": ">=18.2.0 <20.0.0",
|
|
33
33
|
"react-dom": ">=18.2.0 <20.0.0",
|
|
34
34
|
"tailwindcss": "^4.0.0"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@chromatic-com/storybook": "^4.0.1",
|
|
38
38
|
"@eslint/js": "^9.31.0",
|
|
39
|
-
"@overmap-ai/blocks": "1.0.37
|
|
39
|
+
"@overmap-ai/blocks": "1.0.37",
|
|
40
40
|
"@radix-ui/colors": "^3.0.0",
|
|
41
41
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
42
42
|
"@storybook/addon-a11y": "^9.0.18",
|
|
@@ -87,7 +87,9 @@
|
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
+
"@dagrejs/dagre": "^1.1.5",
|
|
90
91
|
"@hello-pangea/dnd": "^18.0.1",
|
|
92
|
+
"@xyflow/react": "^12.8.4",
|
|
91
93
|
"class-variance-authority": "^0.7.0",
|
|
92
94
|
"file-saver": "^2.0.5",
|
|
93
95
|
"formik": "^2.4.6",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { BaseField, ChildFieldOptions } from '../BaseField';
|
|
3
|
-
import { FieldTypeIdentifier, FieldValue, GetInputProps, ISerializedOnlyField } from '../typings';
|
|
4
|
-
export type CustomFieldOptions<TValue> = ChildFieldOptions<TValue>;
|
|
5
|
-
export declare const emptyCustomField: {
|
|
6
|
-
type: string;
|
|
7
|
-
label: string;
|
|
8
|
-
description: string;
|
|
9
|
-
required: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare class CustomField<TValue extends FieldValue,
|
|
12
|
-
/** The options passed to constructor */
|
|
13
|
-
TFieldOptions extends CustomFieldOptions<TValue>,
|
|
14
|
-
/** The props passed to the custom component */
|
|
15
|
-
TComponentProps extends GetInputProps<CustomField<TValue, TFieldOptions, TComponentProps>>, TIdentifier extends FieldTypeIdentifier = FieldTypeIdentifier> extends BaseField<TValue, TIdentifier> {
|
|
16
|
-
static readonly fieldTypeName = "Custom";
|
|
17
|
-
static readonly fieldTypeDescription = "Allows re-rendering of field already in the form";
|
|
18
|
-
readonly Component: FC<TComponentProps>;
|
|
19
|
-
readonly options: TFieldOptions;
|
|
20
|
-
constructor(options: TFieldOptions, Component: FC<TComponentProps>);
|
|
21
|
-
serialize(): ISerializedOnlyField;
|
|
22
|
-
getInput(props: TComponentProps): ReactNode;
|
|
23
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FieldInputClonerProps } from './typings';
|
|
2
|
-
/**
|
|
3
|
-
* Used to dynamically "clone" a field's input for use in conditional sections. When a field is selected for a
|
|
4
|
-
* condition, we need to render the same input in the condition section, so the user can input a value for the
|
|
5
|
-
* condition.
|
|
6
|
-
*/
|
|
7
|
-
export declare const FieldInputCloner: import('react').MemoExoticComponent<(props: FieldInputClonerProps) => import('react').ReactNode>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FieldValue, ISerializedField } from '../../typings';
|
|
2
|
-
import { CustomField, CustomFieldOptions } from '../CustomField';
|
|
3
|
-
import { FieldInputClonerProps } from './typings';
|
|
4
|
-
export interface FieldInputClonerFieldOptions extends CustomFieldOptions<unknown> {
|
|
5
|
-
/** Given an identifier, should return the options of the field with the
|
|
6
|
-
* corresponding identifier (the field being cloned) */
|
|
7
|
-
getFieldToClone: (identifier: string) => ISerializedField | null;
|
|
8
|
-
/** The identifier of the field to clone */
|
|
9
|
-
clonedFieldIdentifier: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The purpose of this is to display a value input field in the condition of a section. The input field will look like
|
|
13
|
-
* the input field of the condition. For example, when specifying the conditional value of a SelectField, a SelectInput
|
|
14
|
-
* will be rendered.
|
|
15
|
-
*/
|
|
16
|
-
export declare class FieldInputClonerField extends CustomField<FieldValue, FieldInputClonerFieldOptions, FieldInputClonerProps> {
|
|
17
|
-
constructor(options: FieldInputClonerFieldOptions);
|
|
18
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AnyField, ComponentProps, FieldValue, GetInputProps } from '../../typings';
|
|
2
|
-
import { CustomField } from '../CustomField';
|
|
3
|
-
import { FieldInputClonerFieldOptions } from './FieldInputClonerField';
|
|
4
|
-
export type FieldInputClonerProps = ComponentProps<CustomField<FieldValue, FieldInputClonerFieldOptions, GetInputProps<AnyField>>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CustomField';
|