@schema-forms-data/builder 0.3.18 → 0.3.20
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.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2098 -2027
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { LucideProps } from 'lucide-react';
|
|
|
8
8
|
import { MaskType } from '@schema-forms-data/core';
|
|
9
9
|
import { PresetBlock } from '@schema-forms-data/core';
|
|
10
10
|
import { PresetStepBlock } from '@schema-forms-data/core';
|
|
11
|
+
import { ReactNode } from 'react';
|
|
11
12
|
import { RefAttributes } from 'react';
|
|
12
13
|
|
|
13
14
|
declare interface BuilderContextValue {
|
|
@@ -92,6 +93,13 @@ export declare interface BuilderValidationResult {
|
|
|
92
93
|
warnings: string[];
|
|
93
94
|
}
|
|
94
95
|
|
|
96
|
+
export declare const BuilderWrapper: ({ schema, children }: BuilderWrapperProps) => JSX_2.Element;
|
|
97
|
+
|
|
98
|
+
declare interface BuilderWrapperProps {
|
|
99
|
+
schema: FormSchema | null;
|
|
100
|
+
children: ReactNode;
|
|
101
|
+
}
|
|
102
|
+
|
|
95
103
|
/**
|
|
96
104
|
* RootDropZone — dnd-kit migration.
|
|
97
105
|
* SortableContext para reordenar steps; useDroppable id="root" para drops da paleta.
|
|
@@ -125,6 +133,10 @@ export declare interface DndState {
|
|
|
125
133
|
[key: string]: unknown;
|
|
126
134
|
}
|
|
127
135
|
|
|
136
|
+
export declare const DragGhost: ({ data }: {
|
|
137
|
+
data: unknown;
|
|
138
|
+
}) => JSX_2.Element | null;
|
|
139
|
+
|
|
128
140
|
/**
|
|
129
141
|
* DroppedContainer — dnd-kit migration.
|
|
130
142
|
* Remove DFF DnD hooks; uses useDroppable + SortableContext para campos.
|