@nextlyhq/plugin-form-builder 0.0.2-alpha.28 → 0.0.2-alpha.29
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/admin/index.d.ts +4 -19
- package/dist/admin/index.js +3 -9
- package/dist/admin/index.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/{index-C0kBvYjm.d.ts → index-BRumOEsE.d.ts} +29 -29
- package/dist/index.d.ts +5 -4
- package/dist/index.js +171 -109
- package/dist/index.js.map +1 -1
- package/package.json +12 -9
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPath } from '@nextlyhq/admin
|
|
1
|
+
import { ComponentPath } from '@nextlyhq/plugin-sdk/admin';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { i as FormField, p as FormFieldType } from '../index-
|
|
4
|
-
export { J as SubmissionDetail, t as SubmissionDetailProps, K as SubmissionList, u as SubmissionListProps } from '../index-
|
|
3
|
+
import { i as FormField, p as FormFieldType } from '../index-BRumOEsE.js';
|
|
4
|
+
export { J as SubmissionDetail, t as SubmissionDetailProps, K as SubmissionList, u as SubmissionListProps } from '../index-BRumOEsE.js';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import 'nextly';
|
|
7
7
|
|
|
@@ -528,20 +528,5 @@ declare function FormNotificationsTab(): react_jsx_runtime.JSX.Element;
|
|
|
528
528
|
declare const FORM_BUILDER_VIEW_PATH: ComponentPath;
|
|
529
529
|
/** Component path for SubmissionsFilter */
|
|
530
530
|
declare const SUBMISSIONS_FILTER_PATH: ComponentPath;
|
|
531
|
-
/**
|
|
532
|
-
* Register Form Builder admin components with the Nextly admin panel.
|
|
533
|
-
*
|
|
534
|
-
* @deprecated This function is no longer needed. Components are auto-registered
|
|
535
|
-
* when the admin detects the Form Builder plugin's component paths in collection configs.
|
|
536
|
-
*
|
|
537
|
-
* @example
|
|
538
|
-
* ```typescript
|
|
539
|
-
* // No manual registration needed! Just add the plugin to your config:
|
|
540
|
-
* export default defineConfig({
|
|
541
|
-
* plugins: [formBuilderPlugin.plugin],
|
|
542
|
-
* });
|
|
543
|
-
* ```
|
|
544
|
-
*/
|
|
545
|
-
declare function registerFormBuilderAdminComponents(): void;
|
|
546
531
|
|
|
547
|
-
export { AddFieldButton, type AddFieldButtonProps, DEFAULT_SETTINGS, FORM_BUILDER_VIEW_PATH, FieldEditor, FieldEditorPanel, type FieldEditorPanelProps, type FieldEditorProps, FieldLibrary, type FormBuilderActions, type FormBuilderContextValue, FormBuilderProvider, type FormBuilderProviderProps, type FormBuilderState, FormBuilderView, type FormBuilderViewProps, FormCanvas, type FormCanvasProps, FormFieldList, type FormFieldListProps, type FormNotification, FormNotificationsTab, FormPreview, type FormPreviewProps, type FormSettings, FormSettingsTab, SUBMISSIONS_FILTER_PATH, SortableFieldRow, type SortableFieldRowProps, SubmissionsFilter, type SubmissionsFilterProps, createFieldFromType, createNotification, generateFieldLabel, generateFieldName,
|
|
532
|
+
export { AddFieldButton, type AddFieldButtonProps, DEFAULT_SETTINGS, FORM_BUILDER_VIEW_PATH, FieldEditor, FieldEditorPanel, type FieldEditorPanelProps, type FieldEditorProps, FieldLibrary, type FormBuilderActions, type FormBuilderContextValue, FormBuilderProvider, type FormBuilderProviderProps, type FormBuilderState, FormBuilderView, type FormBuilderViewProps, FormCanvas, type FormCanvasProps, FormFieldList, type FormFieldListProps, type FormNotification, FormNotificationsTab, FormPreview, type FormPreviewProps, type FormSettings, FormSettingsTab, SUBMISSIONS_FILTER_PATH, SortableFieldRow, type SortableFieldRowProps, SubmissionsFilter, type SubmissionsFilterProps, createFieldFromType, createNotification, generateFieldLabel, generateFieldName, useFormBuilder, useOptionalFormBuilder };
|
package/dist/admin/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
registerComponents,
|
|
9
9
|
registerKnownPlugin
|
|
10
|
-
} from "@nextlyhq/admin
|
|
10
|
+
} from "@nextlyhq/plugin-sdk/admin";
|
|
11
11
|
|
|
12
12
|
// src/admin/components/SubmissionsFilter.tsx
|
|
13
13
|
import { useRouter, useSearchParams } from "next/navigation";
|
|
@@ -128,8 +128,8 @@ import { useQueryClient } from "@tanstack/react-query";
|
|
|
128
128
|
import { useCallback as useCallback6, useState as useState6 } from "react";
|
|
129
129
|
|
|
130
130
|
// src/admin/components/builder/FieldEditor.tsx
|
|
131
|
-
import { FormLabelWithTooltip as FormLabelWithTooltip2 } from "@nextlyhq/admin";
|
|
132
131
|
import {
|
|
132
|
+
FormLabelWithTooltip as FormLabelWithTooltip2,
|
|
133
133
|
Input as Input2,
|
|
134
134
|
Button as Button2,
|
|
135
135
|
Checkbox as Checkbox2,
|
|
@@ -146,8 +146,8 @@ import {
|
|
|
146
146
|
import { useState as useState2, useCallback as useCallback3, useMemo as useMemo2 } from "react";
|
|
147
147
|
|
|
148
148
|
// src/admin/components/builder/ConditionalLogicEditor.tsx
|
|
149
|
-
import { FormLabelWithTooltip } from "@nextlyhq/admin";
|
|
150
149
|
import {
|
|
150
|
+
FormLabelWithTooltip,
|
|
151
151
|
Input,
|
|
152
152
|
Button,
|
|
153
153
|
Checkbox,
|
|
@@ -3981,11 +3981,6 @@ function FieldEditorPanel({
|
|
|
3981
3981
|
// src/admin/index.ts
|
|
3982
3982
|
var FORM_BUILDER_VIEW_PATH = "@nextlyhq/plugin-form-builder/admin#FormBuilderView";
|
|
3983
3983
|
var SUBMISSIONS_FILTER_PATH = "@nextlyhq/plugin-form-builder/admin#SubmissionsFilter";
|
|
3984
|
-
function registerFormBuilderAdminComponents() {
|
|
3985
|
-
registerComponents({
|
|
3986
|
-
[FORM_BUILDER_VIEW_PATH]: FormBuilderView
|
|
3987
|
-
});
|
|
3988
|
-
}
|
|
3989
3984
|
registerComponents({
|
|
3990
3985
|
[FORM_BUILDER_VIEW_PATH]: FormBuilderView,
|
|
3991
3986
|
[SUBMISSIONS_FILTER_PATH]: SubmissionsFilter
|
|
@@ -4023,7 +4018,6 @@ export {
|
|
|
4023
4018
|
createNotification,
|
|
4024
4019
|
generateFieldLabel,
|
|
4025
4020
|
generateFieldName,
|
|
4026
|
-
registerFormBuilderAdminComponents,
|
|
4027
4021
|
useFormBuilder,
|
|
4028
4022
|
useOptionalFormBuilder
|
|
4029
4023
|
};
|