@easy-cms/plugin-form-builder 1.7.1 → 1.8.0
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/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PublicForm, S as Submission, a as SubmitResult } from './shared-
|
|
2
|
-
export { C as Confirmation, F as FieldKind, b as PublicField } from './shared-
|
|
1
|
+
import { P as PublicForm, S as Submission, a as SubmitResult } from './shared-l42r1ySZ.js';
|
|
2
|
+
export { C as Confirmation, F as FieldKind, b as PublicField } from './shared-l42r1ySZ.js';
|
|
3
3
|
|
|
4
4
|
interface ClientOptions {
|
|
5
5
|
/** The REST API's address, e.g. `/api/cms` or `https://cms.example.com/api/cms`. */
|
|
@@ -20,4 +20,5 @@ declare function getForm(slug: string, options: ClientOptions & {
|
|
|
20
20
|
*/
|
|
21
21
|
declare function submitForm(slug: string, submission: Submission, options: ClientOptions): Promise<SubmitResult>;
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { PublicForm, Submission, SubmitResult, getForm, submitForm };
|
|
24
|
+
export type { ClientOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypedPlugin } from '@easy-cms/core';
|
|
2
|
-
import { F as FieldKind } from './shared-
|
|
3
|
-
export { C as Confirmation, c as FIELD_KINDS, b as PublicField, P as PublicForm, S as Submission, a as SubmitResult } from './shared-
|
|
2
|
+
import { F as FieldKind } from './shared-l42r1ySZ.js';
|
|
3
|
+
export { C as Confirmation, c as FIELD_KINDS, b as PublicField, P as PublicForm, S as Submission, a as SubmitResult } from './shared-l42r1ySZ.js';
|
|
4
4
|
|
|
5
5
|
interface FormBuilderPluginOptions {
|
|
6
6
|
/** Field types editors can add. Default: all. */
|
|
@@ -147,4 +147,5 @@ declare function formBuilderPlugin<const F extends string = 'forms', const S ext
|
|
|
147
147
|
};
|
|
148
148
|
}): TypedPlugin<FormBuilderPluginTypes<F, S>>;
|
|
149
149
|
|
|
150
|
-
export { FieldKind,
|
|
150
|
+
export { FieldKind, formBuilderPlugin };
|
|
151
|
+
export type { FormBuilderPluginOptions, FormBuilderPluginTypes };
|
package/dist/index.js
CHANGED
|
@@ -197,7 +197,7 @@ var INFO = {
|
|
|
197
197
|
name: "@easy-cms/plugin-form-builder",
|
|
198
198
|
// The plugin API it is written for (`PLUGIN_API_VERSION` of @easy-cms/core).
|
|
199
199
|
apiVersion: 1,
|
|
200
|
-
...true ? { version: "1.
|
|
200
|
+
...true ? { version: "1.8.0" } : {}
|
|
201
201
|
};
|
|
202
202
|
|
|
203
203
|
// src/spam.ts
|
|
@@ -75,4 +75,5 @@ type SubmitResult = {
|
|
|
75
75
|
}[];
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
export {
|
|
78
|
+
export { FIELD_KINDS as c };
|
|
79
|
+
export type { Confirmation as C, FieldKind as F, PublicForm as P, Submission as S, SubmitResult as a, PublicField as b };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/plugin-form-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Forms for Easy CMS: build forms in the admin, collect submissions, email notifications, spam protection and an <easy-form> element",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@easy-cms/richtext": "^1.
|
|
29
|
+
"@easy-cms/richtext": "^1.8.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@easy-cms/core": "^1.
|
|
32
|
+
"@easy-cms/core": "^1.8.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"happy-dom": "^21.0.4",
|
|
36
|
-
"@easy-cms/core": "^1.
|
|
37
|
-
"@easy-cms/db-sqlite": "^1.
|
|
36
|
+
"@easy-cms/core": "^1.8.0",
|
|
37
|
+
"@easy-cms/db-sqlite": "^1.8.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.12"
|