@micromerce/formbuilder-react 1.0.810 → 1.0.813

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.
@@ -1,16 +1,60 @@
1
1
  import React from "react";
2
- export declare const Plate: ({ children }: any) => React.ReactElement<{
2
+ export declare const __plateMock: {
3
+ onChange: any;
4
+ };
5
+ export declare const Plate: ({ children, onChange }: any) => React.ReactElement<{
3
6
  "data-testid": string;
4
7
  }, string | React.JSXElementConstructor<any>>;
5
8
  export declare const PlateContent: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>;
6
9
  export declare const PlateElement: ({ children, as: Tag, ...props }: any) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
7
10
  export declare const PlateLeaf: ({ children, as: Tag, ...props }: any) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
11
+ export declare const __mockEditor: {
12
+ children: any[];
13
+ api: {
14
+ some: jest.Mock<boolean, [], any>;
15
+ html: {
16
+ deserialize: jest.Mock<any[], [], any>;
17
+ };
18
+ create: {
19
+ value: () => {
20
+ type: string;
21
+ children: {
22
+ text: string;
23
+ }[];
24
+ }[];
25
+ };
26
+ start: () => any;
27
+ end: () => any;
28
+ };
29
+ tf: {
30
+ toggleBlock: jest.Mock<any, any, any>;
31
+ setNodes: jest.Mock<any, any, any>;
32
+ setValue: jest.Mock<any, any, any>;
33
+ replaceNodes: jest.Mock<any, any, any>;
34
+ insert: {
35
+ table: jest.Mock<any, any, any>;
36
+ tableRow: jest.Mock<any, any, any>;
37
+ tableColumn: jest.Mock<any, any, any>;
38
+ };
39
+ remove: {
40
+ table: jest.Mock<any, any, any>;
41
+ tableRow: jest.Mock<any, any, any>;
42
+ tableColumn: jest.Mock<any, any, any>;
43
+ };
44
+ focus: jest.Mock<any, any, any>;
45
+ };
46
+ undo: jest.Mock<any, any, any>;
47
+ redo: jest.Mock<any, any, any>;
48
+ dom: {
49
+ readOnly: boolean;
50
+ };
51
+ };
8
52
  export declare const usePlateEditor: (options: any) => {
9
- children: any;
53
+ children: any[];
10
54
  api: {
11
- some: () => boolean;
55
+ some: jest.Mock<boolean, [], any>;
12
56
  html: {
13
- deserialize: () => any[];
57
+ deserialize: jest.Mock<any[], [], any>;
14
58
  };
15
59
  create: {
16
60
  value: () => {
@@ -24,24 +68,24 @@ export declare const usePlateEditor: (options: any) => {
24
68
  end: () => any;
25
69
  };
26
70
  tf: {
27
- toggleBlock: () => void;
28
- setNodes: () => void;
29
- setValue: () => void;
30
- replaceNodes: () => void;
71
+ toggleBlock: jest.Mock<any, any, any>;
72
+ setNodes: jest.Mock<any, any, any>;
73
+ setValue: jest.Mock<any, any, any>;
74
+ replaceNodes: jest.Mock<any, any, any>;
31
75
  insert: {
32
- table: () => void;
33
- tableRow: () => void;
34
- tableColumn: () => void;
76
+ table: jest.Mock<any, any, any>;
77
+ tableRow: jest.Mock<any, any, any>;
78
+ tableColumn: jest.Mock<any, any, any>;
35
79
  };
36
80
  remove: {
37
- table: () => void;
38
- tableRow: () => void;
39
- tableColumn: () => void;
81
+ table: jest.Mock<any, any, any>;
82
+ tableRow: jest.Mock<any, any, any>;
83
+ tableColumn: jest.Mock<any, any, any>;
40
84
  };
41
- focus: () => void;
85
+ focus: jest.Mock<any, any, any>;
42
86
  };
43
- undo: () => void;
44
- redo: () => void;
87
+ undo: jest.Mock<any, any, any>;
88
+ redo: jest.Mock<any, any, any>;
45
89
  dom: {
46
90
  readOnly: boolean;
47
91
  };
@@ -209,6 +253,7 @@ export declare const useDraggable: () => {
209
253
  export declare const useDropLine: () => {
210
254
  dropLine: any;
211
255
  };
256
+ export declare const getBlocksWithId: jest.Mock<any[], [], any>;
212
257
  export declare const isType: (_editor: any, element: any, types: string[]) => boolean;
213
258
  export declare const KEYS: {
214
259
  column: string;
@@ -0,0 +1,17 @@
1
+ export declare const createAiPrompts: (controlKey: string) => {
2
+ displayValue: string;
3
+ promptTemplate: string;
4
+ profile: string;
5
+ }[];
6
+ export declare const mockPostGenAiMessage: ({ message, }: {
7
+ message: string;
8
+ profile: string;
9
+ }) => Promise<{
10
+ status: "success";
11
+ message: string;
12
+ model: string;
13
+ usage: {
14
+ answer: string;
15
+ prompt: string;
16
+ };
17
+ }>;