@10x-media/form-builder 4.0.0-alpha.1 → 4.0.0-alpha.3
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/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/dist/client/ByteSizeField.d.ts +1 -1
- package/dist/client/CalcExpressionBuilder.d.ts +1 -1
- package/dist/client/CalcExpressionBuilder.js +2 -2
- package/dist/client/CalcExpressionBuilder.js.map +1 -1
- package/dist/client/ClosePollButton.d.ts +1 -1
- package/dist/client/CondensedArray.d.ts +1 -1
- package/dist/client/ConditionBuilder.js +2 -2
- package/dist/client/ConditionBuilder.js.map +1 -1
- package/dist/client/ConsentBlockLabel.d.ts +1 -1
- package/dist/client/ConsentRetentionNotice.d.ts +1 -1
- package/dist/client/ConsentSourceRowLabel.d.ts +1 -1
- package/dist/client/EndpointOptionsSelect.d.ts +1 -1
- package/dist/client/FieldBlockLabel.d.ts +1 -1
- package/dist/client/FieldNameSelect.d.ts +1 -1
- package/dist/client/FieldNameSelect.js +2 -2
- package/dist/client/FieldNameSelect.js.map +1 -1
- package/dist/client/FlowBuilder.d.ts +1 -1
- package/dist/client/FlowBuilder.js +2 -2
- package/dist/client/FlowBuilder.js.map +1 -1
- package/dist/client/FormConditionField.d.ts +1 -1
- package/dist/client/RecipientsSelect.d.ts +1 -1
- package/dist/client/RecipientsSelect.js +2 -2
- package/dist/client/RecipientsSelect.js.map +1 -1
- package/dist/client/RuleDescription.d.ts +1 -1
- package/dist/collections/cells/FieldCountCell.d.ts +1 -1
- package/dist/collections/cells/FlowStepsCell.d.ts +1 -1
- package/dist/exports/shared.d.ts +21 -0
- package/dist/exports/shared.js +18 -0
- package/dist/form/toFormDocument.d.ts +10 -6
- package/dist/form/toFormDocument.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/options.d.ts +6 -0
- package/dist/react/Form.d.ts +1 -1
- package/dist/react/FormControls.d.ts +1 -1
- package/dist/react/FormFields.d.ts +1 -1
- package/dist/react/FormLayout.d.ts +1 -1
- package/dist/react/FormSteps.d.ts +1 -1
- package/dist/react/Honeypot.d.ts +1 -1
- package/dist/react/Poll.d.ts +1 -1
- package/dist/react/captcha/HcaptchaCaptcha.d.ts +1 -1
- package/dist/react/captcha/RecaptchaCaptcha.d.ts +1 -1
- package/dist/react/captcha/TurnstileCaptcha.d.ts +1 -1
- package/dist/react/primitives/Checkbox.d.ts +1 -1
- package/dist/react/primitives/ChoiceGroup.d.ts +1 -1
- package/dist/react/primitives/FieldShell.d.ts +1 -1
- package/dist/react/primitives/Input.d.ts +1 -1
- package/dist/react/primitives/Select.d.ts +1 -1
- package/dist/react/primitives/Textarea.d.ts +1 -1
- package/dist/submissions/SubmissionAnswers.d.ts +1 -1
- package/package.json +19 -14
package/dist/options.d.ts
CHANGED
|
@@ -28,6 +28,12 @@ import { CollectionSlug } from "payload";
|
|
|
28
28
|
//#region src/options.d.ts
|
|
29
29
|
type FormBuilderPluginOptions = {
|
|
30
30
|
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Plugin order. Payload runs plugins sorted by it, ascending, default `0`.
|
|
33
|
+
* A plugin that has to see the form collections runs above it.
|
|
34
|
+
* @default 50
|
|
35
|
+
*/
|
|
36
|
+
order?: number;
|
|
31
37
|
/**
|
|
32
38
|
* Per-locale overrides for this plugin's UI strings, keyed by the typed
|
|
33
39
|
* translation keys exported from `@10x-media/form-builder/i18n`. Values win
|
package/dist/react/Form.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ declare const Form: ({
|
|
|
164
164
|
nextButtonClassName,
|
|
165
165
|
backButtonClassName,
|
|
166
166
|
adapters
|
|
167
|
-
}: FormProps) => import("react
|
|
167
|
+
}: FormProps) => import("react").JSX.Element;
|
|
168
168
|
//#endregion
|
|
169
169
|
export { Form, FormCollections, FormProps, FormSuccessResponse, FormSuccessResult };
|
|
170
170
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -49,7 +49,7 @@ declare const FormControls: ({
|
|
|
49
49
|
renderBack,
|
|
50
50
|
renderNext,
|
|
51
51
|
renderSubmit
|
|
52
|
-
}: FormControlsProps) => import("react
|
|
52
|
+
}: FormControlsProps) => import("react").JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { BackButtonRenderProps, FormControls, FormControlsProps, NextButtonRenderProps, SubmitButtonRenderProps };
|
|
55
55
|
//# sourceMappingURL=FormControls.d.ts.map
|
|
@@ -12,7 +12,7 @@ type FormFieldsProps = {
|
|
|
12
12
|
declare const FormFields: ({
|
|
13
13
|
layout,
|
|
14
14
|
className
|
|
15
|
-
}: FormFieldsProps) => import("react
|
|
15
|
+
}: FormFieldsProps) => import("react").JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { FormFields, FormFieldsProps };
|
|
18
18
|
//# sourceMappingURL=FormFields.d.ts.map
|
|
@@ -12,7 +12,7 @@ declare const FormLayout: ({
|
|
|
12
12
|
children,
|
|
13
13
|
enabled,
|
|
14
14
|
className
|
|
15
|
-
}: FormLayoutProps) => import("react
|
|
15
|
+
}: FormLayoutProps) => import("react").JSX.Element;
|
|
16
16
|
/** Props to spread onto a field wrapper to declare its grid width. */
|
|
17
17
|
declare const widthProps: (width: FieldWidth | undefined) => {
|
|
18
18
|
'data-width': FieldWidth;
|
|
@@ -11,7 +11,7 @@ type FormStepsProps = {
|
|
|
11
11
|
*/
|
|
12
12
|
declare const FormSteps: ({
|
|
13
13
|
className
|
|
14
|
-
}: FormStepsProps) => import("react
|
|
14
|
+
}: FormStepsProps) => import("react").JSX.Element | null;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { FormSteps, FormStepsProps };
|
|
17
17
|
//# sourceMappingURL=FormSteps.d.ts.map
|
package/dist/react/Honeypot.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ type HoneypotProps = {
|
|
|
16
16
|
declare const Honeypot: ({
|
|
17
17
|
name,
|
|
18
18
|
inputRef
|
|
19
|
-
}: HoneypotProps) => import("react
|
|
19
|
+
}: HoneypotProps) => import("react").JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Honeypot, HoneypotProps };
|
|
22
22
|
//# sourceMappingURL=Honeypot.d.ts.map
|
package/dist/react/Poll.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare const Poll: ({
|
|
|
60
60
|
currentVote,
|
|
61
61
|
renderResults,
|
|
62
62
|
...formProps
|
|
63
|
-
}: PollProps) => import("react
|
|
63
|
+
}: PollProps) => import("react").JSX.Element | null;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { Poll, PollProps };
|
|
66
66
|
//# sourceMappingURL=Poll.d.ts.map
|
|
@@ -25,7 +25,7 @@ declare const HcaptchaCaptcha: ({
|
|
|
25
25
|
scriptSrc,
|
|
26
26
|
adapters,
|
|
27
27
|
ref
|
|
28
|
-
}: HcaptchaCaptchaProps) => import("react
|
|
28
|
+
}: HcaptchaCaptchaProps) => import("react").JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { HCAPTCHA_SCRIPT_URL, HcaptchaCaptcha, HcaptchaCaptchaProps };
|
|
31
31
|
//# sourceMappingURL=HcaptchaCaptcha.d.ts.map
|
|
@@ -38,7 +38,7 @@ declare const RecaptchaCaptcha: ({
|
|
|
38
38
|
scriptSrc,
|
|
39
39
|
adapters,
|
|
40
40
|
ref
|
|
41
|
-
}: RecaptchaCaptchaProps) => import("react
|
|
41
|
+
}: RecaptchaCaptchaProps) => import("react").JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { RECAPTCHA_SCRIPT_URL, RecaptchaCaptcha, RecaptchaCaptchaHandle, RecaptchaCaptchaProps };
|
|
44
44
|
//# sourceMappingURL=RecaptchaCaptcha.d.ts.map
|
|
@@ -25,7 +25,7 @@ declare const TurnstileCaptcha: ({
|
|
|
25
25
|
scriptSrc,
|
|
26
26
|
adapters,
|
|
27
27
|
ref
|
|
28
|
-
}: TurnstileCaptchaProps) => import("react
|
|
28
|
+
}: TurnstileCaptchaProps) => import("react").JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { TURNSTILE_SCRIPT_URL, TurnstileCaptcha, TurnstileCaptchaProps };
|
|
31
31
|
//# sourceMappingURL=TurnstileCaptcha.d.ts.map
|
|
@@ -24,7 +24,7 @@ declare const Checkbox: ({
|
|
|
24
24
|
describedById,
|
|
25
25
|
ariaLabel,
|
|
26
26
|
variant
|
|
27
|
-
}: CheckboxProps) => import("react
|
|
27
|
+
}: CheckboxProps) => import("react").JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Checkbox, CheckboxProps };
|
|
30
30
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -34,7 +34,7 @@ declare const ChoiceGroup: ({
|
|
|
34
34
|
describedById,
|
|
35
35
|
labelledById,
|
|
36
36
|
variant
|
|
37
|
-
}: ChoiceGroupProps) => import("react
|
|
37
|
+
}: ChoiceGroupProps) => import("react").JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { ChoiceGroup, ChoiceGroupProps, ChoiceOption };
|
|
40
40
|
//# sourceMappingURL=ChoiceGroup.d.ts.map
|
|
@@ -33,7 +33,7 @@ declare const FieldShell: ({
|
|
|
33
33
|
describedById,
|
|
34
34
|
group,
|
|
35
35
|
children
|
|
36
|
-
}: FieldShellProps) => import("react
|
|
36
|
+
}: FieldShellProps) => import("react").JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { FieldShell, FieldShellProps };
|
|
39
39
|
//# sourceMappingURL=FieldShell.d.ts.map
|
|
@@ -26,7 +26,7 @@ declare const Input: ({
|
|
|
26
26
|
invalid,
|
|
27
27
|
describedById,
|
|
28
28
|
autoComplete
|
|
29
|
-
}: InputProps) => import("react
|
|
29
|
+
}: InputProps) => import("react").JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Input, InputProps };
|
|
32
32
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -28,7 +28,7 @@ declare const Select: ({
|
|
|
28
28
|
invalid,
|
|
29
29
|
describedById,
|
|
30
30
|
placeholder
|
|
31
|
-
}: SelectProps) => import("react
|
|
31
|
+
}: SelectProps) => import("react").JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Select, SelectOption, SelectProps };
|
|
34
34
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -22,7 +22,7 @@ declare const Textarea: ({
|
|
|
22
22
|
disabled,
|
|
23
23
|
invalid,
|
|
24
24
|
describedById
|
|
25
|
-
}: TextareaProps) => import("react
|
|
25
|
+
}: TextareaProps) => import("react").JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { Textarea, TextareaProps };
|
|
28
28
|
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -8,7 +8,7 @@ import { UIFieldServerProps } from "payload";
|
|
|
8
8
|
declare const SubmissionAnswers: ({
|
|
9
9
|
data,
|
|
10
10
|
req
|
|
11
|
-
}: UIFieldServerProps) => import("react
|
|
11
|
+
}: UIFieldServerProps) => import("react").JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SubmissionAnswers };
|
|
14
14
|
//# sourceMappingURL=SubmissionAnswers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@10x-media/form-builder",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.3",
|
|
4
4
|
"description": "End-to-end forms platform for Payload: author, validate, render, collect, aggregate, and act.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
"import": "./dist/exports/types.js",
|
|
33
33
|
"default": "./dist/exports/types.js"
|
|
34
34
|
},
|
|
35
|
+
"./shared": {
|
|
36
|
+
"types": "./dist/exports/shared.d.ts",
|
|
37
|
+
"import": "./dist/exports/shared.js",
|
|
38
|
+
"default": "./dist/exports/shared.js"
|
|
39
|
+
},
|
|
35
40
|
"./client": {
|
|
36
41
|
"types": "./dist/exports/client.d.ts",
|
|
37
42
|
"import": "./dist/exports/client.js",
|
|
@@ -62,9 +67,9 @@
|
|
|
62
67
|
"LICENSE"
|
|
63
68
|
],
|
|
64
69
|
"peerDependencies": {
|
|
65
|
-
"@payloadcms/db-postgres": "^4.0.0-beta.
|
|
66
|
-
"@payloadcms/ui": "^4.0.0-beta.
|
|
67
|
-
"payload": "^4.0.0-beta.
|
|
70
|
+
"@payloadcms/db-postgres": "^4.0.0-beta.10",
|
|
71
|
+
"@payloadcms/ui": "^4.0.0-beta.10",
|
|
72
|
+
"payload": "^4.0.0-beta.10",
|
|
68
73
|
"react": "^19.0.0",
|
|
69
74
|
"react-dom": "^19.0.0"
|
|
70
75
|
},
|
|
@@ -79,30 +84,30 @@
|
|
|
79
84
|
},
|
|
80
85
|
"devDependencies": {
|
|
81
86
|
"@axe-core/playwright": "^4.11.3",
|
|
82
|
-
"@payloadcms/db-mongodb": "4.0.0-beta.
|
|
83
|
-
"@payloadcms/db-postgres": "4.0.0-beta.
|
|
84
|
-
"@payloadcms/richtext-lexical": "4.0.0-beta.
|
|
85
|
-
"@payloadcms/ui": "4.0.0-beta.
|
|
87
|
+
"@payloadcms/db-mongodb": "4.0.0-beta.10",
|
|
88
|
+
"@payloadcms/db-postgres": "4.0.0-beta.10",
|
|
89
|
+
"@payloadcms/richtext-lexical": "4.0.0-beta.10",
|
|
90
|
+
"@payloadcms/ui": "4.0.0-beta.10",
|
|
86
91
|
"@playwright/test": "1.60.0",
|
|
87
92
|
"@testing-library/jest-dom": "^6.6.3",
|
|
88
93
|
"@testing-library/react": "^16.1.0",
|
|
89
94
|
"@types/node": "24.19.2",
|
|
90
|
-
"@types/react": "19.
|
|
91
|
-
"@types/react-dom": "19.
|
|
95
|
+
"@types/react": "19.3.0",
|
|
96
|
+
"@types/react-dom": "19.3.0",
|
|
92
97
|
"@types/to-snake-case": "1.0.0",
|
|
93
98
|
"axe-core": "^4.12.1",
|
|
94
99
|
"jsdom": "^25.0.1",
|
|
95
100
|
"msw": "^2.14.6",
|
|
96
|
-
"payload": "4.0.0-beta.
|
|
101
|
+
"payload": "4.0.0-beta.10",
|
|
97
102
|
"playwright": "1.60.0",
|
|
98
|
-
"react": "19.
|
|
99
|
-
"react-dom": "19.
|
|
103
|
+
"react": "19.3.1",
|
|
104
|
+
"react-dom": "19.3.1",
|
|
100
105
|
"shadcn": "^2.4.0",
|
|
101
106
|
"tsdown": "0.22.1",
|
|
102
107
|
"typescript": "5.9.3",
|
|
103
108
|
"vitest": "4.1.7",
|
|
104
|
-
"@10x-media/tsconfig": "0.0.0",
|
|
105
109
|
"@10x-media/payload-test-harness": "0.0.0",
|
|
110
|
+
"@10x-media/tsconfig": "0.0.0",
|
|
106
111
|
"@10x-media/tsdown-config": "0.0.0",
|
|
107
112
|
"@10x-media/vitest-config": "0.0.0"
|
|
108
113
|
},
|