@easy-cms/plugin-form-builder 0.46.0 → 0.47.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/index.js +10 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -195,7 +195,7 @@ function fieldBlocks(localized, kinds) {
|
|
|
195
195
|
// src/info.ts
|
|
196
196
|
var INFO = {
|
|
197
197
|
name: "@easy-cms/plugin-form-builder",
|
|
198
|
-
...true ? { version: "0.
|
|
198
|
+
...true ? { version: "0.47.1" } : {}
|
|
199
199
|
};
|
|
200
200
|
|
|
201
201
|
// src/spam.ts
|
|
@@ -412,6 +412,7 @@ function formBuilderPlugin(options = {}) {
|
|
|
412
412
|
drafts: true,
|
|
413
413
|
fields: formFields,
|
|
414
414
|
admin: {
|
|
415
|
+
group: "forms",
|
|
415
416
|
sidebar: [
|
|
416
417
|
{
|
|
417
418
|
tag: "ecms-form-submissions",
|
|
@@ -432,6 +433,7 @@ function formBuilderPlugin(options = {}) {
|
|
|
432
433
|
},
|
|
433
434
|
icon: "message-square",
|
|
434
435
|
useAsTitle: "summary",
|
|
436
|
+
admin: { group: "forms", count: false },
|
|
435
437
|
// Only the form's public endpoint creates submissions, after validation and spam checks.
|
|
436
438
|
access: {
|
|
437
439
|
read: loggedIn,
|
|
@@ -774,13 +776,19 @@ function formBuilderPlugin(options = {}) {
|
|
|
774
776
|
admin: {
|
|
775
777
|
...config.admin,
|
|
776
778
|
modules: [.../* @__PURE__ */ new Set([...config.admin?.modules ?? [], ADMIN_MODULE])],
|
|
777
|
-
//
|
|
779
|
+
// The menu's Forms group: forms, submissions and their overview.
|
|
780
|
+
nav: [
|
|
781
|
+
...config.admin?.nav ?? [],
|
|
782
|
+
{ id: "forms", label: { en: "Forms", th: "\u0E1F\u0E2D\u0E23\u0E4C\u0E21" }, icon: "mail", order: 200 }
|
|
783
|
+
],
|
|
784
|
+
// Submissions at a glance: a page and a dashboard panel.
|
|
778
785
|
pages: [
|
|
779
786
|
...config.admin?.pages ?? [],
|
|
780
787
|
{
|
|
781
788
|
path: "forms-overview",
|
|
782
789
|
label: { en: "Form overview", th: "\u0E20\u0E32\u0E1E\u0E23\u0E27\u0E21\u0E1F\u0E2D\u0E23\u0E4C\u0E21" },
|
|
783
790
|
icon: "chart-column",
|
|
791
|
+
group: "forms",
|
|
784
792
|
component: { tag: "ecms-forms-overview", props: { forms, submissions, adminPath } }
|
|
785
793
|
}
|
|
786
794
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/plugin-form-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.1",
|
|
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",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@easy-cms/richtext": "^0.
|
|
26
|
+
"@easy-cms/richtext": "^0.47.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@easy-cms/core": "^0.
|
|
29
|
+
"@easy-cms/core": "^0.47.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"happy-dom": "^20.14.5",
|
|
33
|
-
"@easy-cms/core": "^0.
|
|
34
|
-
"@easy-cms/db-sqlite": "^0.
|
|
33
|
+
"@easy-cms/core": "^0.47.1",
|
|
34
|
+
"@easy-cms/db-sqlite": "^0.47.1"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=22.12"
|