@micromerce/formbuilder-react 1.0.807 → 1.0.810
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/__mocks__/platejs.d.ts +115 -0
- package/dist/components/controls/Textarea/editors/Plate/BlockDraggable.d.ts +2 -0
- package/dist/components/controls/Textarea/editors/Plate/LinkFloatingToolbar.d.ts +2 -0
- package/dist/formbuilder.js +58 -58
- package/dist/formbuilder.js.map +1 -1
- package/package.json +2 -1
|
@@ -38,9 +38,13 @@ export declare const usePlateEditor: (options: any) => {
|
|
|
38
38
|
tableRow: () => void;
|
|
39
39
|
tableColumn: () => void;
|
|
40
40
|
};
|
|
41
|
+
focus: () => void;
|
|
41
42
|
};
|
|
42
43
|
undo: () => void;
|
|
43
44
|
redo: () => void;
|
|
45
|
+
dom: {
|
|
46
|
+
readOnly: boolean;
|
|
47
|
+
};
|
|
44
48
|
};
|
|
45
49
|
export declare const useMarkToolbarButton: () => {
|
|
46
50
|
props: {
|
|
@@ -140,3 +144,114 @@ export declare const TableCellHeaderPlugin: {
|
|
|
140
144
|
withComponent: () => any;
|
|
141
145
|
configure: () => any;
|
|
142
146
|
};
|
|
147
|
+
export declare const DndPlugin: {
|
|
148
|
+
withComponent: () => any;
|
|
149
|
+
configure: () => any;
|
|
150
|
+
};
|
|
151
|
+
export declare const getLinkAttributes: () => {};
|
|
152
|
+
export declare const triggerFloatingLink: () => void;
|
|
153
|
+
export declare const useLinkToolbarButtonState: () => {
|
|
154
|
+
pressed: boolean;
|
|
155
|
+
};
|
|
156
|
+
export declare const useLinkToolbarButton: () => {
|
|
157
|
+
props: {
|
|
158
|
+
pressed: boolean;
|
|
159
|
+
onClick: () => void;
|
|
160
|
+
onMouseDown: () => void;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export declare const FloatingLinkUrlInput: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
164
|
+
export declare const useFloatingLinkInsertState: () => {};
|
|
165
|
+
export declare const useFloatingLinkInsert: () => {
|
|
166
|
+
hidden: boolean;
|
|
167
|
+
props: {};
|
|
168
|
+
ref: {
|
|
169
|
+
current: any;
|
|
170
|
+
};
|
|
171
|
+
textInputProps: {};
|
|
172
|
+
};
|
|
173
|
+
export declare const useFloatingLinkEditState: () => {
|
|
174
|
+
isEditing: boolean;
|
|
175
|
+
isOpen: boolean;
|
|
176
|
+
};
|
|
177
|
+
export declare const useFloatingLinkEdit: () => {
|
|
178
|
+
editButtonProps: {};
|
|
179
|
+
props: {};
|
|
180
|
+
ref: {
|
|
181
|
+
current: any;
|
|
182
|
+
};
|
|
183
|
+
unlinkButtonProps: {};
|
|
184
|
+
};
|
|
185
|
+
export declare const useFormInputProps: () => {};
|
|
186
|
+
export declare const useEditorSelection: () => any;
|
|
187
|
+
export declare const offset: () => {};
|
|
188
|
+
export declare const flip: () => {};
|
|
189
|
+
export declare const AutoformatPlugin: {
|
|
190
|
+
withComponent: () => any;
|
|
191
|
+
configure: () => any;
|
|
192
|
+
};
|
|
193
|
+
export declare const toggleList: () => void;
|
|
194
|
+
export declare const DndProvider: ({ children }: any) => any;
|
|
195
|
+
export declare const HTML5Backend: {};
|
|
196
|
+
export declare const useDraggable: () => {
|
|
197
|
+
isDragging: boolean;
|
|
198
|
+
nodeRef: {
|
|
199
|
+
current: any;
|
|
200
|
+
};
|
|
201
|
+
handleRef: {
|
|
202
|
+
current: any;
|
|
203
|
+
};
|
|
204
|
+
previewRef: {
|
|
205
|
+
current: any;
|
|
206
|
+
};
|
|
207
|
+
isAboutToDrag: boolean;
|
|
208
|
+
};
|
|
209
|
+
export declare const useDropLine: () => {
|
|
210
|
+
dropLine: any;
|
|
211
|
+
};
|
|
212
|
+
export declare const isType: (_editor: any, element: any, types: string[]) => boolean;
|
|
213
|
+
export declare const KEYS: {
|
|
214
|
+
column: string;
|
|
215
|
+
tr: string;
|
|
216
|
+
td: string;
|
|
217
|
+
link: string;
|
|
218
|
+
};
|
|
219
|
+
export declare const MemoizedChildren: ({ children }: any) => any;
|
|
220
|
+
export declare const useEditorRef: () => {
|
|
221
|
+
api: {
|
|
222
|
+
node: () => any;
|
|
223
|
+
getType: () => string;
|
|
224
|
+
string: () => string;
|
|
225
|
+
start: () => {
|
|
226
|
+
path: number[];
|
|
227
|
+
offset: number;
|
|
228
|
+
};
|
|
229
|
+
end: () => {
|
|
230
|
+
path: number[];
|
|
231
|
+
offset: number;
|
|
232
|
+
};
|
|
233
|
+
toDOMRange: () => any;
|
|
234
|
+
some: () => boolean;
|
|
235
|
+
html: {
|
|
236
|
+
deserialize: () => any[];
|
|
237
|
+
};
|
|
238
|
+
create: {
|
|
239
|
+
value: () => {
|
|
240
|
+
type: string;
|
|
241
|
+
children: {
|
|
242
|
+
text: string;
|
|
243
|
+
}[];
|
|
244
|
+
}[];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
getType: () => string;
|
|
248
|
+
tf: {
|
|
249
|
+
focus: () => void;
|
|
250
|
+
toggleBlock: () => void;
|
|
251
|
+
setNodes: () => void;
|
|
252
|
+
};
|
|
253
|
+
dom: {
|
|
254
|
+
readOnly: boolean;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
export declare const useElement: () => {};
|