@btst/plugin-form-builder 0.0.0-stage → 1.0.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/LICENSE.md +17 -0
- package/dist/api/getters.cjs +154 -0
- package/dist/api/getters.mjs +145 -0
- package/dist/api/index.cjs +25 -0
- package/dist/api/index.d.cts +119 -0
- package/dist/api/index.d.mts +119 -0
- package/dist/api/index.d.ts +119 -0
- package/dist/api/index.mjs +6 -0
- package/dist/api/lifecycle-migrations.cjs +15 -0
- package/dist/api/lifecycle-migrations.mjs +13 -0
- package/dist/api/operations.cjs +1093 -0
- package/dist/api/operations.mjs +1082 -0
- package/dist/api/plugin.cjs +201 -0
- package/dist/api/plugin.mjs +192 -0
- package/dist/api/query-key-defs.cjs +43 -0
- package/dist/api/query-key-defs.mjs +39 -0
- package/dist/client/components/forms/form-renderer.cjs +193 -0
- package/dist/client/components/forms/form-renderer.mjs +191 -0
- package/dist/client/components/index.cjs +29 -0
- package/dist/client/components/index.d.cts +97 -0
- package/dist/client/components/index.d.mts +97 -0
- package/dist/client/components/index.d.ts +97 -0
- package/dist/client/components/index.mjs +18 -0
- package/dist/client/components/loading/form-builder-skeleton.cjs +32 -0
- package/dist/client/components/loading/form-builder-skeleton.mjs +30 -0
- package/dist/client/components/loading/form-list-skeleton.cjs +21 -0
- package/dist/client/components/loading/form-list-skeleton.mjs +19 -0
- package/dist/client/components/loading/submissions-skeleton.cjs +34 -0
- package/dist/client/components/loading/submissions-skeleton.mjs +32 -0
- package/dist/client/components/pages/404-page.cjs +28 -0
- package/dist/client/components/pages/404-page.mjs +26 -0
- package/dist/client/components/pages/form-builder-page.cjs +77 -0
- package/dist/client/components/pages/form-builder-page.internal.cjs +217 -0
- package/dist/client/components/pages/form-builder-page.internal.mjs +215 -0
- package/dist/client/components/pages/form-builder-page.mjs +75 -0
- package/dist/client/components/pages/form-list-page.cjs +44 -0
- package/dist/client/components/pages/form-list-page.internal.cjs +282 -0
- package/dist/client/components/pages/form-list-page.internal.mjs +280 -0
- package/dist/client/components/pages/form-list-page.mjs +42 -0
- package/dist/client/components/pages/submissions-page.cjs +64 -0
- package/dist/client/components/pages/submissions-page.internal.cjs +255 -0
- package/dist/client/components/pages/submissions-page.internal.mjs +253 -0
- package/dist/client/components/pages/submissions-page.mjs +62 -0
- package/dist/client/components/shared/default-error.cjs +17 -0
- package/dist/client/components/shared/default-error.mjs +15 -0
- package/dist/client/components/shared/empty-state.cjs +16 -0
- package/dist/client/components/shared/empty-state.mjs +14 -0
- package/dist/client/components/shared/page-wrapper.cjs +29 -0
- package/dist/client/components/shared/page-wrapper.mjs +27 -0
- package/dist/client/components/shared/pagination.cjs +49 -0
- package/dist/client/components/shared/pagination.mjs +47 -0
- package/dist/client/constants.cjs +5 -0
- package/dist/client/constants.mjs +3 -0
- package/dist/client/hooks/form-builder-hooks.cjs +203 -0
- package/dist/client/hooks/form-builder-hooks.mjs +186 -0
- package/dist/client/hooks/form-builder-resource.cjs +13 -0
- package/dist/client/hooks/form-builder-resource.mjs +11 -0
- package/dist/client/hooks/index.cjs +22 -0
- package/dist/client/hooks/index.d.cts +378 -0
- package/dist/client/hooks/index.d.mts +378 -0
- package/dist/client/hooks/index.d.ts +378 -0
- package/dist/client/hooks/index.mjs +1 -0
- package/dist/client/index.cjs +13 -0
- package/dist/client/index.d.cts +410 -0
- package/dist/client/index.d.mts +410 -0
- package/dist/client/index.d.ts +410 -0
- package/dist/client/index.mjs +2 -0
- package/dist/client/plugin.cjs +311 -0
- package/dist/client/plugin.mjs +309 -0
- package/dist/client.css +3 -0
- package/dist/db.cjs +99 -0
- package/dist/db.mjs +97 -0
- package/dist/permissions.cjs +95 -0
- package/dist/permissions.d.cts +94 -0
- package/dist/permissions.d.mts +94 -0
- package/dist/permissions.d.ts +94 -0
- package/dist/permissions.mjs +93 -0
- package/dist/query-keys.cjs +140 -0
- package/dist/query-keys.d.cts +392 -0
- package/dist/query-keys.d.mts +392 -0
- package/dist/query-keys.d.ts +392 -0
- package/dist/query-keys.mjs +137 -0
- package/dist/schemas.cjs +91 -0
- package/dist/schemas.mjs +82 -0
- package/dist/shared/plugin-form-builder.BZYGyFgT.d.mts +351 -0
- package/dist/shared/plugin-form-builder.Bbl9NufB.d.cts +408 -0
- package/dist/shared/plugin-form-builder.CSP5HR2O.d.ts +408 -0
- package/dist/shared/plugin-form-builder.Cmk083dA.d.cts +351 -0
- package/dist/shared/plugin-form-builder.D258Qpb8.d.ts +351 -0
- package/dist/shared/plugin-form-builder.DWrQ3lRX.d.cts +118 -0
- package/dist/shared/plugin-form-builder.DWrQ3lRX.d.mts +118 -0
- package/dist/shared/plugin-form-builder.DWrQ3lRX.d.ts +118 -0
- package/dist/shared/plugin-form-builder.lp98rFNl.d.mts +408 -0
- package/dist/style.css +6 -0
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +6 -0
- package/dist/types.d.mts +6 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.mjs +1 -0
- package/dist/ui/src/components/accordion.cjs +81 -0
- package/dist/ui/src/components/accordion.mjs +62 -0
- package/dist/ui/src/components/alert-dialog.cjs +157 -0
- package/dist/ui/src/components/alert-dialog.mjs +132 -0
- package/dist/ui/src/components/auto-form/common/label.cjs +18 -0
- package/dist/ui/src/components/auto-form/common/label.mjs +16 -0
- package/dist/ui/src/components/auto-form/common/tooltip.cjs +9 -0
- package/dist/ui/src/components/auto-form/common/tooltip.mjs +7 -0
- package/dist/ui/src/components/auto-form/config.cjs +40 -0
- package/dist/ui/src/components/auto-form/config.mjs +37 -0
- package/dist/ui/src/components/auto-form/dependencies.cjs +48 -0
- package/dist/ui/src/components/auto-form/dependencies.mjs +46 -0
- package/dist/ui/src/components/auto-form/fields/array.cjs +266 -0
- package/dist/ui/src/components/auto-form/fields/array.mjs +264 -0
- package/dist/ui/src/components/auto-form/fields/checkbox.cjs +38 -0
- package/dist/ui/src/components/auto-form/fields/checkbox.mjs +36 -0
- package/dist/ui/src/components/auto-form/fields/date.cjs +67 -0
- package/dist/ui/src/components/auto-form/fields/date.mjs +65 -0
- package/dist/ui/src/components/auto-form/fields/enum.cjs +73 -0
- package/dist/ui/src/components/auto-form/fields/enum.mjs +71 -0
- package/dist/ui/src/components/auto-form/fields/input.cjs +32 -0
- package/dist/ui/src/components/auto-form/fields/input.mjs +30 -0
- package/dist/ui/src/components/auto-form/fields/number.cjs +31 -0
- package/dist/ui/src/components/auto-form/fields/number.mjs +29 -0
- package/dist/ui/src/components/auto-form/fields/object.cjs +233 -0
- package/dist/ui/src/components/auto-form/fields/object.mjs +217 -0
- package/dist/ui/src/components/auto-form/fields/radio-group.cjs +67 -0
- package/dist/ui/src/components/auto-form/fields/radio-group.mjs +65 -0
- package/dist/ui/src/components/auto-form/fields/switch.cjs +38 -0
- package/dist/ui/src/components/auto-form/fields/switch.mjs +36 -0
- package/dist/ui/src/components/auto-form/fields/textarea.cjs +31 -0
- package/dist/ui/src/components/auto-form/fields/textarea.mjs +29 -0
- package/dist/ui/src/components/auto-form/helpers.cjs +270 -0
- package/dist/ui/src/components/auto-form/helpers.mjs +259 -0
- package/dist/ui/src/components/auto-form/index.cjs +92 -0
- package/dist/ui/src/components/auto-form/index.mjs +86 -0
- package/dist/ui/src/components/auto-form/stepped-auto-form.cjs +374 -0
- package/dist/ui/src/components/auto-form/stepped-auto-form.mjs +368 -0
- package/dist/ui/src/components/auto-form/types.cjs +11 -0
- package/dist/ui/src/components/auto-form/types.mjs +9 -0
- package/dist/ui/src/components/button.cjs +56 -0
- package/dist/ui/src/components/button.mjs +53 -0
- package/dist/ui/src/components/calendar.cjs +207 -0
- package/dist/ui/src/components/calendar.mjs +190 -0
- package/dist/ui/src/components/checkbox.cjs +48 -0
- package/dist/ui/src/components/checkbox.mjs +32 -0
- package/dist/ui/src/components/date-picker.cjs +41 -0
- package/dist/ui/src/components/date-picker.mjs +39 -0
- package/dist/ui/src/components/dialog.cjs +141 -0
- package/dist/ui/src/components/dialog.mjs +118 -0
- package/dist/ui/src/components/dropdown-menu.cjs +81 -0
- package/dist/ui/src/components/dropdown-menu.mjs +62 -0
- package/dist/ui/src/components/form-builder/canvas.cjs +111 -0
- package/dist/ui/src/components/form-builder/canvas.mjs +109 -0
- package/dist/ui/src/components/form-builder/components/index.cjs +571 -0
- package/dist/ui/src/components/form-builder/components/index.mjs +554 -0
- package/dist/ui/src/components/form-builder/edit-field-dialog.cjs +131 -0
- package/dist/ui/src/components/form-builder/edit-field-dialog.mjs +129 -0
- package/dist/ui/src/components/form-builder/form-preview.cjs +73 -0
- package/dist/ui/src/components/form-builder/form-preview.mjs +71 -0
- package/dist/ui/src/components/form-builder/index.cjs +350 -0
- package/dist/ui/src/components/form-builder/index.mjs +344 -0
- package/dist/ui/src/components/form-builder/nested-field-editor-dialog.cjs +263 -0
- package/dist/ui/src/components/form-builder/nested-field-editor-dialog.mjs +261 -0
- package/dist/ui/src/components/form-builder/palette.cjs +52 -0
- package/dist/ui/src/components/form-builder/palette.mjs +49 -0
- package/dist/ui/src/components/form-builder/schema-utils.cjs +128 -0
- package/dist/ui/src/components/form-builder/schema-utils.mjs +122 -0
- package/dist/ui/src/components/form-builder/sortable-field.cjs +151 -0
- package/dist/ui/src/components/form-builder/sortable-field.mjs +148 -0
- package/dist/ui/src/components/form-builder/step-tabs.cjs +180 -0
- package/dist/ui/src/components/form-builder/step-tabs.mjs +178 -0
- package/dist/ui/src/components/form-builder/types.cjs +7 -0
- package/dist/ui/src/components/form-builder/types.mjs +5 -0
- package/dist/ui/src/components/form-builder/validation-schemas.cjs +67 -0
- package/dist/ui/src/components/form-builder/validation-schemas.mjs +56 -0
- package/dist/ui/src/components/form.cjs +120 -0
- package/dist/ui/src/components/form.mjs +98 -0
- package/dist/ui/src/components/input.cjs +23 -0
- package/dist/ui/src/components/input.mjs +21 -0
- package/dist/ui/src/components/label.cjs +39 -0
- package/dist/ui/src/components/label.mjs +23 -0
- package/dist/ui/src/components/page-layout.cjs +25 -0
- package/dist/ui/src/components/page-layout.mjs +23 -0
- package/dist/ui/src/components/page-wrapper.cjs +20 -0
- package/dist/ui/src/components/page-wrapper.mjs +18 -0
- package/dist/ui/src/components/popover.cjs +60 -0
- package/dist/ui/src/components/popover.mjs +42 -0
- package/dist/ui/src/components/radio-group.cjs +62 -0
- package/dist/ui/src/components/radio-group.mjs +45 -0
- package/dist/ui/src/components/select.cjs +161 -0
- package/dist/ui/src/components/select.mjs +139 -0
- package/dist/ui/src/components/separator.cjs +43 -0
- package/dist/ui/src/components/separator.mjs +27 -0
- package/dist/ui/src/components/skeleton.cjs +17 -0
- package/dist/ui/src/components/skeleton.mjs +15 -0
- package/dist/ui/src/components/stack-attribution.cjs +24 -0
- package/dist/ui/src/components/stack-attribution.mjs +22 -0
- package/dist/ui/src/components/switch.cjs +48 -0
- package/dist/ui/src/components/switch.mjs +32 -0
- package/dist/ui/src/components/table.cjs +89 -0
- package/dist/ui/src/components/table.mjs +82 -0
- package/dist/ui/src/components/tabs.cjs +84 -0
- package/dist/ui/src/components/tabs.mjs +65 -0
- package/dist/ui/src/components/textarea.cjs +20 -0
- package/dist/ui/src/components/textarea.mjs +18 -0
- package/dist/ui/src/lib/schema-converter.cjs +133 -0
- package/dist/ui/src/lib/schema-converter.mjs +127 -0
- package/dist/ui/src/lib/utils.cjs +10 -0
- package/dist/ui/src/lib/utils.mjs +8 -0
- package/dist/utils.cjs +41 -0
- package/dist/utils.mjs +32 -0
- package/package.json +175 -3
- package/README.md +0 -3
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
export { F as FORM_QUERY_KEYS, a as FormBuilderApiRouter, b as FormBuilderOperationError, c as FormBuilderOperations, d as FormBuilderRouteKey, e as FormListOperationResult, S as SubmissionDetailOperationResult, f as SubmissionListOperationResult, g as SubmitOperationResult, h as createFormBuilderOperations, i as formBuilderBackendPlugin } from '../shared/plugin-form-builder.CSP5HR2O.js';
|
|
2
|
+
export { formBuilderPermissions } from '../permissions.js';
|
|
3
|
+
import { d as SerializedFormSubmissionSummary } from '../shared/plugin-form-builder.D258Qpb8.js';
|
|
4
|
+
import { SerializedForm, SerializedFormSubmissionWithData, Form, FormSubmission, SerializedFormSubmission, FormSubmissionWithForm } from '../types.js';
|
|
5
|
+
export { f as FormBuilderBackendConfig, g as FormBuilderBackendHooks, h as FormBuilderHookContext, i as FormBuilderOperationHookContext, j as FormCreateOperationContext, k as FormDeleteOperationContext, l as FormGetForUpdateOperationContext, m as FormGetOperationContext, n as FormListOperationContext, o as FormUpdateOperationContext, p as SubmissionCreateOperationContext, q as SubmissionDeleteOperationContext, r as SubmissionGetOperationContext, s as SubmissionHookContext, t as SubmissionListFormContext, u as SubmissionListOperationContext } from '../shared/plugin-form-builder.D258Qpb8.js';
|
|
6
|
+
import { DBAdapter } from '@btst/db';
|
|
7
|
+
import '@btst/stack/plugins/api';
|
|
8
|
+
import 'zod';
|
|
9
|
+
import 'zod/v4/core';
|
|
10
|
+
import 'better-call';
|
|
11
|
+
import '@tanstack/react-query';
|
|
12
|
+
import '@btst/stack/authorization';
|
|
13
|
+
import '@btst/stack/context';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Removed Form Builder lifecycle names and their canonical v3 replacements.
|
|
17
|
+
*
|
|
18
|
+
* Submission receipt keeps its domain vocabulary. Names absent from this map
|
|
19
|
+
* did not change.
|
|
20
|
+
*/
|
|
21
|
+
declare const FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS: Readonly<{
|
|
22
|
+
readonly onBeforeFormCreated: "onBeforeCreateForm";
|
|
23
|
+
readonly onAfterFormCreated: "onAfterCreateForm";
|
|
24
|
+
readonly onBeforeFormUpdated: "onBeforeUpdateForm";
|
|
25
|
+
readonly onAfterFormUpdated: "onAfterUpdateForm";
|
|
26
|
+
readonly onBeforeFormDeleted: "onBeforeDeleteForm";
|
|
27
|
+
readonly onAfterFormDeleted: "onAfterDeleteForm";
|
|
28
|
+
readonly onSubmissionError: "onErrorSubmission";
|
|
29
|
+
readonly onBeforeSubmissionDeleted: "onBeforeDeleteSubmission";
|
|
30
|
+
readonly onAfterSubmissionDeleted: "onAfterDeleteSubmission";
|
|
31
|
+
}>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Serialize a Form for SSR/SSG use (convert dates to strings).
|
|
35
|
+
*/
|
|
36
|
+
declare function serializeForm(form: Form): SerializedForm;
|
|
37
|
+
/**
|
|
38
|
+
* Serialize a FormSubmission for SSR/SSG use (convert dates to strings).
|
|
39
|
+
*/
|
|
40
|
+
declare function serializeFormSubmission(submission: FormSubmission): SerializedFormSubmission;
|
|
41
|
+
/** Strip a submission down to browser-safe collection metadata. */
|
|
42
|
+
declare function serializeFormSubmissionSummary(submission: FormSubmission | SerializedFormSubmission): SerializedFormSubmissionSummary;
|
|
43
|
+
/**
|
|
44
|
+
* Serialize a FormSubmission with parsed data and joined Form.
|
|
45
|
+
* If `submission.data` is corrupted JSON, `parsedData` is set to `null` rather
|
|
46
|
+
* than throwing, so one bad row cannot crash the entire list or SSG build.
|
|
47
|
+
*/
|
|
48
|
+
declare function serializeFormSubmissionWithData(submission: FormSubmissionWithForm): SerializedFormSubmissionWithData;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieve all forms with optional status filter, pagination, and free-text
|
|
51
|
+
* search.
|
|
52
|
+
* Pure DB function — no hooks, no HTTP context. Safe for SSG and server-side use.
|
|
53
|
+
*
|
|
54
|
+
* @remarks **Security:** Operation authorization and lifecycle hooks are NOT
|
|
55
|
+
* called. The caller is responsible for any access-control checks before
|
|
56
|
+
* invoking this function.
|
|
57
|
+
*
|
|
58
|
+
* @param adapter - The database adapter
|
|
59
|
+
* @param params - Optional filter/pagination parameters. `search` matches
|
|
60
|
+
* case-insensitively against form names and slugs.
|
|
61
|
+
*/
|
|
62
|
+
declare function getAllForms(adapter: DBAdapter, params?: {
|
|
63
|
+
status?: string;
|
|
64
|
+
limit?: number;
|
|
65
|
+
offset?: number;
|
|
66
|
+
search?: string;
|
|
67
|
+
}): Promise<{
|
|
68
|
+
items: SerializedForm[];
|
|
69
|
+
total: number;
|
|
70
|
+
limit?: number;
|
|
71
|
+
offset?: number;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve a single form by its ID (UUID).
|
|
75
|
+
* Returns null if the form is not found.
|
|
76
|
+
* Pure DB function — no hooks, no HTTP context. Safe for SSG and server-side use.
|
|
77
|
+
*
|
|
78
|
+
* @remarks **Security:** Operation authorization and lifecycle hooks are NOT called. The caller is
|
|
79
|
+
* responsible for any access-control checks before invoking this function.
|
|
80
|
+
*
|
|
81
|
+
* @param adapter - The database adapter
|
|
82
|
+
* @param id - The form UUID
|
|
83
|
+
*/
|
|
84
|
+
declare function getFormById(adapter: DBAdapter, id: string): Promise<SerializedForm | null>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieve a single form by its slug.
|
|
87
|
+
* Returns null if the form is not found.
|
|
88
|
+
* Pure DB function — no hooks, no HTTP context. Safe for SSG and server-side use.
|
|
89
|
+
*
|
|
90
|
+
* @remarks **Security:** Operation authorization and lifecycle hooks are NOT called. The caller is
|
|
91
|
+
* responsible for any access-control checks before invoking this function.
|
|
92
|
+
*
|
|
93
|
+
* @param adapter - The database adapter
|
|
94
|
+
* @param slug - The form slug
|
|
95
|
+
*/
|
|
96
|
+
declare function getFormBySlug(adapter: DBAdapter, slug: string): Promise<SerializedForm | null>;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieve submissions for a form by form ID, with optional pagination.
|
|
99
|
+
* Returns an empty result if the form does not exist.
|
|
100
|
+
* Pure DB function — no hooks, no HTTP context. Safe for server-side use.
|
|
101
|
+
*
|
|
102
|
+
* @remarks **Security:** Operation authorization and lifecycle hooks are NOT called. The caller is
|
|
103
|
+
* responsible for any access-control checks before invoking this function.
|
|
104
|
+
*
|
|
105
|
+
* @param adapter - The database adapter
|
|
106
|
+
* @param formId - The form ID
|
|
107
|
+
* @param params - Optional pagination parameters
|
|
108
|
+
*/
|
|
109
|
+
declare function getFormSubmissions(adapter: Pick<DBAdapter, "findOne" | "findMany" | "count">, formId: string, params?: {
|
|
110
|
+
limit?: number;
|
|
111
|
+
offset?: number;
|
|
112
|
+
}): Promise<{
|
|
113
|
+
items: SerializedFormSubmissionWithData[];
|
|
114
|
+
total: number;
|
|
115
|
+
limit?: number;
|
|
116
|
+
offset?: number;
|
|
117
|
+
}>;
|
|
118
|
+
|
|
119
|
+
export { FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS, SerializedFormSubmissionSummary, getAllForms, getFormById, getFormBySlug, getFormSubmissions, serializeForm, serializeFormSubmission, serializeFormSubmissionSummary, serializeFormSubmissionWithData };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { formBuilderBackendPlugin } from './plugin.mjs';
|
|
2
|
+
export { FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS } from './lifecycle-migrations.mjs';
|
|
3
|
+
export { FormBuilderOperationError, createFormBuilderOperations } from './operations.mjs';
|
|
4
|
+
export { formBuilderPermissions } from '../permissions.mjs';
|
|
5
|
+
export { getAllForms, getFormById, getFormBySlug, getFormSubmissions, serializeForm, serializeFormSubmission, serializeFormSubmissionSummary, serializeFormSubmissionWithData } from './getters.mjs';
|
|
6
|
+
export { FORM_QUERY_KEYS } from './query-key-defs.mjs';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS = Object.freeze({
|
|
4
|
+
onBeforeFormCreated: "onBeforeCreateForm",
|
|
5
|
+
onAfterFormCreated: "onAfterCreateForm",
|
|
6
|
+
onBeforeFormUpdated: "onBeforeUpdateForm",
|
|
7
|
+
onAfterFormUpdated: "onAfterUpdateForm",
|
|
8
|
+
onBeforeFormDeleted: "onBeforeDeleteForm",
|
|
9
|
+
onAfterFormDeleted: "onAfterDeleteForm",
|
|
10
|
+
onSubmissionError: "onErrorSubmission",
|
|
11
|
+
onBeforeSubmissionDeleted: "onBeforeDeleteSubmission",
|
|
12
|
+
onAfterSubmissionDeleted: "onAfterDeleteSubmission"
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
exports.FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS = FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS = Object.freeze({
|
|
2
|
+
onBeforeFormCreated: "onBeforeCreateForm",
|
|
3
|
+
onAfterFormCreated: "onAfterCreateForm",
|
|
4
|
+
onBeforeFormUpdated: "onBeforeUpdateForm",
|
|
5
|
+
onAfterFormUpdated: "onAfterUpdateForm",
|
|
6
|
+
onBeforeFormDeleted: "onBeforeDeleteForm",
|
|
7
|
+
onAfterFormDeleted: "onAfterDeleteForm",
|
|
8
|
+
onSubmissionError: "onErrorSubmission",
|
|
9
|
+
onBeforeSubmissionDeleted: "onBeforeDeleteSubmission",
|
|
10
|
+
onAfterSubmissionDeleted: "onAfterDeleteSubmission"
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { FORM_BUILDER_LIFECYCLE_HOOK_MIGRATIONS };
|