@micromerce/formbuilder-react 1.0.910 → 1.0.914
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/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/dist/components/FormBuilder/FormBuilder.d.ts +3 -2
- package/dist/components/FormBuilder/utils/extractFormControlValues/extractFormControlValues.d.ts +1 -1
- package/dist/components/FormBuilder/utils/extractFormControlValues/index.d.ts +1 -0
- package/dist/components/FormBuilder/utils/jsonToUrlEncoded/jsonToUrlEncoded.d.ts +2 -2
- package/dist/components/FormFooter/FormFooter.d.ts +1 -1
- package/dist/components/QueryControl/utils/getMatchingControls.d.ts +2 -2
- package/dist/components/controls/DateRangeGroup/components/CalendarModal.d.ts +2 -2
- package/dist/components/controls/MrnInput/hooks/useMrn.d.ts +12 -7
- package/dist/components/controls/MrnInput/services/fetchMrn.d.ts +1 -1
- package/dist/components/controls/MrnInput/ui-helper/Link/Link.d.ts +1 -1
- package/dist/components/controls/MrnInput/utils/mrnUtils/mrnUtils.d.ts +1 -1
- package/dist/components/controls/MrnInput/utils/resolveMrnLinks/resolveMrnLink.d.ts +1 -1
- package/dist/components/controls/MrnInput/utils/resolveNestedQueryLink/resolveNestedQueryLink.d.ts +1 -1
- package/dist/components/controls/MultiSelect/utils/extractSelectedOptionValues/extractSelectedOptionValues.d.ts +9 -9
- package/dist/components/controls/Select/utils/getSelectedOption.d.ts +1 -1
- package/dist/components/controls/Textarea/aiWrapper/aiAction.d.ts +1 -1
- package/dist/components/controls/Textarea/aiWrapper/index.d.ts +1 -1
- package/dist/components/controls/Textarea/aiWrapper/useAi.d.ts +4 -4
- package/dist/context/FormData.d.ts +7 -4
- package/dist/formbuilder.js +4 -4
- package/dist/formbuilder.js.map +1 -1
- package/dist/hooks/useDependent/enhanced/useInputDependent/useInputDependent.d.ts +2 -2
- package/dist/hooks/useDependent/enhanced/useOptionsGenerator/useOptionsGenerator.d.ts +4 -4
- package/dist/hooks/useDependent/useDependent.d.ts +3 -3
- package/dist/hooks/useValueGenerator/useValueGenerator.d.ts +2 -2
- package/dist/styles/Textfield.styles.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/ui/menu/hooks/useMenu.d.ts +3 -3
- package/dist/ui/menu/index.d.ts +1 -1
- package/dist/utils/findFormControlError/index.d.ts +1 -1
- package/package.json +11 -2
- package/dist/__mocks__/platejs.d.ts +0 -314
- package/dist/testutils.d.ts +0 -15
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ControlCommons, OnChangeValueType } from "../../../../types";
|
|
2
2
|
interface IUseInputDependentProps {
|
|
3
3
|
onChangeValue: (newProperties: OnChangeValueType, customizer?: (...args: any) => any) => void;
|
|
4
|
-
query
|
|
5
|
-
objectPathId
|
|
4
|
+
query?: string;
|
|
5
|
+
objectPathId?: string;
|
|
6
6
|
value: string;
|
|
7
7
|
hasEdited?: ControlCommons["hasEdited"];
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { SelectFormControlOption } from "../../../../types";
|
|
2
2
|
interface IUseOptionsGeneratorProps {
|
|
3
|
-
query
|
|
3
|
+
query?: string;
|
|
4
4
|
controlKey: string;
|
|
5
|
-
objectPathId
|
|
6
|
-
options
|
|
5
|
+
objectPathId?: string | null;
|
|
6
|
+
options?: SelectFormControlOption[];
|
|
7
7
|
}
|
|
8
8
|
declare const useOptionsGenerator: ({ query, controlKey, objectPathId, options, }: IUseOptionsGeneratorProps) => {
|
|
9
|
-
options: SelectFormControlOption[];
|
|
9
|
+
options: SelectFormControlOption[] | undefined;
|
|
10
10
|
mrnEntriesLoaded?: undefined;
|
|
11
11
|
} | {
|
|
12
12
|
options: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
interface IUseDependentProps {
|
|
2
|
-
query
|
|
3
|
-
objectPathId
|
|
2
|
+
query?: string | null;
|
|
3
|
+
objectPathId?: string | null;
|
|
4
4
|
}
|
|
5
5
|
declare const useDependent: ({ query, objectPathId }: IUseDependentProps) => {
|
|
6
|
-
dependentControls: string[];
|
|
6
|
+
dependentControls: (string | undefined)[];
|
|
7
7
|
resolvedQuery: string;
|
|
8
8
|
isDisabled: boolean;
|
|
9
9
|
mrnEntriesLoaded: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FormControls } from "../../types";
|
|
2
2
|
interface IUseValueGeneratorProps {
|
|
3
|
-
query
|
|
4
|
-
objectPathId
|
|
3
|
+
query?: string | null;
|
|
4
|
+
objectPathId?: string | null;
|
|
5
5
|
}
|
|
6
6
|
interface IUseValueGeneratorWithContextProps extends IUseValueGeneratorProps {
|
|
7
7
|
formControls: FormControls;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextFieldProps } from "@mui/material";
|
|
2
2
|
declare const StyledTextField: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
variant?: import("@mui/material").TextFieldVariants;
|
|
3
|
+
variant?: import("@mui/material").TextFieldVariants | undefined;
|
|
4
4
|
} & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant"> & (import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & TextFieldProps), {}, {}>;
|
|
5
5
|
export default StyledTextField;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -163,13 +163,13 @@ export type OnChangeValueType = {
|
|
|
163
163
|
[key: string]: any;
|
|
164
164
|
};
|
|
165
165
|
export interface resolveUrl {
|
|
166
|
-
(mrn: string, params: string, opts: any): Promise<any>;
|
|
166
|
+
(mrn: string, params: string | null, opts: any): Promise<any>;
|
|
167
167
|
}
|
|
168
168
|
export type MessageType = string;
|
|
169
169
|
export type MessageStatus = "error" | "success";
|
|
170
170
|
export interface PostMessageProps {
|
|
171
171
|
message: MessageType;
|
|
172
|
-
profile
|
|
172
|
+
profile?: string;
|
|
173
173
|
}
|
|
174
174
|
export type PostMessageResponse = {
|
|
175
175
|
message: MessageType;
|
|
@@ -3,11 +3,11 @@ import type { FormControls } from "../../../types";
|
|
|
3
3
|
import type { controlGroups } from "../utils/detemineSubmenuTabs";
|
|
4
4
|
export declare const updateMenuIndexOnSubmit: (hasSubmenuAndError: boolean, cb: () => void) => void;
|
|
5
5
|
declare const useMenu: (formControls: FormControls, formSubmitted: boolean, isExpertMode: boolean) => {
|
|
6
|
-
activeFormControls: FormControls;
|
|
6
|
+
activeFormControls: FormControls | undefined;
|
|
7
7
|
activeMenuItemIndex: number;
|
|
8
|
-
controlGroups: controlGroups;
|
|
8
|
+
controlGroups: false | controlGroups;
|
|
9
9
|
hasSubmenu: boolean;
|
|
10
|
-
menuItems: MenuItem[];
|
|
10
|
+
menuItems: false | MenuItem[];
|
|
11
11
|
setActiveMenuItemIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
12
12
|
};
|
|
13
13
|
export default useMenu;
|
package/dist/ui/menu/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { FormControls } from "../../types";
|
|
2
2
|
type condition = "expert";
|
|
3
|
-
declare const findFormControlError: (controls: FormControls, condition?: condition) =>
|
|
3
|
+
declare const findFormControlError: (controls: FormControls, condition?: condition) => boolean;
|
|
4
4
|
export default findFormControlError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromerce/formbuilder-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.914",
|
|
4
4
|
"description": "creates a form based on configuration",
|
|
5
5
|
"main": "dist/formbuilder.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -87,6 +87,13 @@
|
|
|
87
87
|
"usehooks-ts": "^2.5.1",
|
|
88
88
|
"uuid": "^14.0.1"
|
|
89
89
|
},
|
|
90
|
+
"overrides": {
|
|
91
|
+
"nanoid@^3": "^3.3.17",
|
|
92
|
+
"nanoid@^4": "^5.1.16",
|
|
93
|
+
"nanoid@^5": "^5.1.16",
|
|
94
|
+
"js-yaml@^3": "^3.15.1",
|
|
95
|
+
"js-yaml@^4": "^4.3.1"
|
|
96
|
+
},
|
|
90
97
|
"peerDependencies": {
|
|
91
98
|
"react": "^18.0.0",
|
|
92
99
|
"react-dom": "^18.0.0"
|
|
@@ -102,8 +109,10 @@
|
|
|
102
109
|
"@testing-library/jest-dom": "^5.16.5",
|
|
103
110
|
"@testing-library/react": "^16.0.1",
|
|
104
111
|
"@testing-library/user-event": "^13.5.0",
|
|
112
|
+
"@types/html-to-text": "^9.0.4",
|
|
105
113
|
"@types/jest": "^29.5.13",
|
|
106
114
|
"@types/lodash": "^4.14.191",
|
|
115
|
+
"@types/qs": "^6.15.1",
|
|
107
116
|
"@types/react": "^18.3.11",
|
|
108
117
|
"@types/react-date-range": "^1.4.9",
|
|
109
118
|
"@types/react-dom": "^18.3.0",
|
|
@@ -137,7 +146,7 @@
|
|
|
137
146
|
"ts-jest": "^29.2.5",
|
|
138
147
|
"ts-loader": "^9.2.6",
|
|
139
148
|
"ts-node": "^10.7.0",
|
|
140
|
-
"typescript": "^
|
|
149
|
+
"typescript": "^6.0.3",
|
|
141
150
|
"webpack": "^5.69.1",
|
|
142
151
|
"webpack-bundle-analyzer": "^4.8.0",
|
|
143
152
|
"webpack-cli": "^4.9.2",
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const __plateMock: {
|
|
3
|
-
onChange: any;
|
|
4
|
-
};
|
|
5
|
-
export declare const Plate: ({ children, onChange }: any) => React.ReactElement<{
|
|
6
|
-
"data-testid": string;
|
|
7
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
8
|
-
export declare const PlateContent: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
9
|
-
export declare const PlateElement: ({ children, as: Tag, ...props }: any) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
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
|
-
};
|
|
52
|
-
export declare const usePlateEditor: jest.Mock<{
|
|
53
|
-
children: any[];
|
|
54
|
-
api: {
|
|
55
|
-
some: jest.Mock<boolean, [], any>;
|
|
56
|
-
html: {
|
|
57
|
-
deserialize: jest.Mock<any[], [], any>;
|
|
58
|
-
};
|
|
59
|
-
create: {
|
|
60
|
-
value: () => {
|
|
61
|
-
type: string;
|
|
62
|
-
children: {
|
|
63
|
-
text: string;
|
|
64
|
-
}[];
|
|
65
|
-
}[];
|
|
66
|
-
};
|
|
67
|
-
start: () => any;
|
|
68
|
-
end: () => any;
|
|
69
|
-
};
|
|
70
|
-
tf: {
|
|
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>;
|
|
75
|
-
insert: {
|
|
76
|
-
table: jest.Mock<any, any, any>;
|
|
77
|
-
tableRow: jest.Mock<any, any, any>;
|
|
78
|
-
tableColumn: jest.Mock<any, any, any>;
|
|
79
|
-
};
|
|
80
|
-
remove: {
|
|
81
|
-
table: jest.Mock<any, any, any>;
|
|
82
|
-
tableRow: jest.Mock<any, any, any>;
|
|
83
|
-
tableColumn: jest.Mock<any, any, any>;
|
|
84
|
-
};
|
|
85
|
-
focus: jest.Mock<any, any, any>;
|
|
86
|
-
};
|
|
87
|
-
undo: jest.Mock<any, any, any>;
|
|
88
|
-
redo: jest.Mock<any, any, any>;
|
|
89
|
-
dom: {
|
|
90
|
-
readOnly: boolean;
|
|
91
|
-
};
|
|
92
|
-
}, [options: any], any>;
|
|
93
|
-
export declare const useMarkToolbarButton: () => {
|
|
94
|
-
props: {
|
|
95
|
-
pressed: boolean;
|
|
96
|
-
onClick: () => void;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
export declare const useMarkToolbarButtonState: () => {};
|
|
100
|
-
export declare const createPlatePlugin: (_config: any) => {
|
|
101
|
-
withComponent: () => any;
|
|
102
|
-
configure: () => any;
|
|
103
|
-
};
|
|
104
|
-
export declare const BoldPlugin: {
|
|
105
|
-
withComponent: () => any;
|
|
106
|
-
configure: () => any;
|
|
107
|
-
};
|
|
108
|
-
export declare const ItalicPlugin: {
|
|
109
|
-
withComponent: () => any;
|
|
110
|
-
configure: () => any;
|
|
111
|
-
};
|
|
112
|
-
export declare const UnderlinePlugin: {
|
|
113
|
-
withComponent: () => any;
|
|
114
|
-
configure: () => any;
|
|
115
|
-
};
|
|
116
|
-
export declare const StrikethroughPlugin: {
|
|
117
|
-
withComponent: () => any;
|
|
118
|
-
configure: () => any;
|
|
119
|
-
};
|
|
120
|
-
export declare const CodePlugin: {
|
|
121
|
-
withComponent: () => any;
|
|
122
|
-
configure: () => any;
|
|
123
|
-
};
|
|
124
|
-
export declare const HighlightPlugin: {
|
|
125
|
-
withComponent: () => any;
|
|
126
|
-
configure: () => any;
|
|
127
|
-
};
|
|
128
|
-
export declare const SubscriptPlugin: {
|
|
129
|
-
withComponent: () => any;
|
|
130
|
-
configure: () => any;
|
|
131
|
-
};
|
|
132
|
-
export declare const SuperscriptPlugin: {
|
|
133
|
-
withComponent: () => any;
|
|
134
|
-
configure: () => any;
|
|
135
|
-
};
|
|
136
|
-
export declare const BlockquotePlugin: {
|
|
137
|
-
withComponent: () => any;
|
|
138
|
-
configure: () => any;
|
|
139
|
-
};
|
|
140
|
-
export declare const H1Plugin: {
|
|
141
|
-
withComponent: () => any;
|
|
142
|
-
configure: () => any;
|
|
143
|
-
};
|
|
144
|
-
export declare const H2Plugin: {
|
|
145
|
-
withComponent: () => any;
|
|
146
|
-
configure: () => any;
|
|
147
|
-
};
|
|
148
|
-
export declare const H3Plugin: {
|
|
149
|
-
withComponent: () => any;
|
|
150
|
-
configure: () => any;
|
|
151
|
-
};
|
|
152
|
-
export declare const HorizontalRulePlugin: {
|
|
153
|
-
withComponent: () => any;
|
|
154
|
-
configure: () => any;
|
|
155
|
-
};
|
|
156
|
-
export declare const LinkPlugin: {
|
|
157
|
-
withComponent: () => any;
|
|
158
|
-
configure: () => any;
|
|
159
|
-
};
|
|
160
|
-
export declare const IndentPlugin: {
|
|
161
|
-
withComponent: () => any;
|
|
162
|
-
configure: () => any;
|
|
163
|
-
};
|
|
164
|
-
export declare const ListPlugin: {
|
|
165
|
-
withComponent: () => any;
|
|
166
|
-
configure: () => any;
|
|
167
|
-
};
|
|
168
|
-
export declare const useListToolbarButton: () => {
|
|
169
|
-
props: {
|
|
170
|
-
pressed: boolean;
|
|
171
|
-
onClick: () => void;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
export declare const useListToolbarButtonState: () => {};
|
|
175
|
-
export declare const ListStyleType: {
|
|
176
|
-
Disc: string;
|
|
177
|
-
Decimal: string;
|
|
178
|
-
};
|
|
179
|
-
export declare const TablePlugin: {
|
|
180
|
-
withComponent: () => any;
|
|
181
|
-
configure: () => any;
|
|
182
|
-
};
|
|
183
|
-
export declare const TableRowPlugin: {
|
|
184
|
-
withComponent: () => any;
|
|
185
|
-
configure: () => any;
|
|
186
|
-
};
|
|
187
|
-
export declare const TableCellPlugin: {
|
|
188
|
-
withComponent: () => any;
|
|
189
|
-
configure: () => any;
|
|
190
|
-
};
|
|
191
|
-
export declare const TableCellHeaderPlugin: {
|
|
192
|
-
withComponent: () => any;
|
|
193
|
-
configure: () => any;
|
|
194
|
-
};
|
|
195
|
-
export declare const DndPlugin: {
|
|
196
|
-
withComponent: () => any;
|
|
197
|
-
configure: () => any;
|
|
198
|
-
};
|
|
199
|
-
export declare const getLinkAttributes: () => {};
|
|
200
|
-
export declare const triggerFloatingLink: () => void;
|
|
201
|
-
export declare const useLinkToolbarButtonState: () => {
|
|
202
|
-
pressed: boolean;
|
|
203
|
-
};
|
|
204
|
-
export declare const useLinkToolbarButton: () => {
|
|
205
|
-
props: {
|
|
206
|
-
pressed: boolean;
|
|
207
|
-
onClick: () => void;
|
|
208
|
-
onMouseDown: () => void;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
export declare const FloatingLinkUrlInput: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
212
|
-
export declare const useFloatingLinkInsertState: () => {};
|
|
213
|
-
export declare const useFloatingLinkInsert: () => {
|
|
214
|
-
hidden: boolean;
|
|
215
|
-
props: {};
|
|
216
|
-
ref: {
|
|
217
|
-
current: any;
|
|
218
|
-
};
|
|
219
|
-
textInputProps: {};
|
|
220
|
-
};
|
|
221
|
-
export declare const useFloatingLinkEditState: () => {
|
|
222
|
-
isEditing: boolean;
|
|
223
|
-
isOpen: boolean;
|
|
224
|
-
};
|
|
225
|
-
export declare const useFloatingLinkEdit: () => {
|
|
226
|
-
editButtonProps: {};
|
|
227
|
-
props: {};
|
|
228
|
-
ref: {
|
|
229
|
-
current: any;
|
|
230
|
-
};
|
|
231
|
-
unlinkButtonProps: {};
|
|
232
|
-
};
|
|
233
|
-
export declare const useFormInputProps: () => {};
|
|
234
|
-
export declare const useEditorSelection: () => any;
|
|
235
|
-
export declare const offset: () => {};
|
|
236
|
-
export declare const flip: () => {};
|
|
237
|
-
export declare const AutoformatPlugin: {
|
|
238
|
-
withComponent: () => any;
|
|
239
|
-
configure: () => any;
|
|
240
|
-
};
|
|
241
|
-
export declare const toggleList: () => void;
|
|
242
|
-
export declare const DndProvider: ({ children }: any) => any;
|
|
243
|
-
export declare const HTML5Backend: {};
|
|
244
|
-
export declare const useDraggable: () => {
|
|
245
|
-
isDragging: boolean;
|
|
246
|
-
nodeRef: {
|
|
247
|
-
current: any;
|
|
248
|
-
};
|
|
249
|
-
handleRef: {
|
|
250
|
-
current: any;
|
|
251
|
-
};
|
|
252
|
-
previewRef: {
|
|
253
|
-
current: any;
|
|
254
|
-
};
|
|
255
|
-
isAboutToDrag: boolean;
|
|
256
|
-
};
|
|
257
|
-
export declare const useDropLine: () => {
|
|
258
|
-
dropLine: any;
|
|
259
|
-
};
|
|
260
|
-
export declare const getBlocksWithId: jest.Mock<any[], [], any>;
|
|
261
|
-
export declare const deserializeHtml: jest.Mock<{
|
|
262
|
-
type: string;
|
|
263
|
-
children: {
|
|
264
|
-
text: string;
|
|
265
|
-
}[];
|
|
266
|
-
}[], [_editor: any, opts: any], any>;
|
|
267
|
-
export declare const isType: (_editor: any, element: any, types: string[]) => boolean;
|
|
268
|
-
export declare const KEYS: {
|
|
269
|
-
table: string;
|
|
270
|
-
column: string;
|
|
271
|
-
tr: string;
|
|
272
|
-
td: string;
|
|
273
|
-
link: string;
|
|
274
|
-
};
|
|
275
|
-
export declare const createSlatePlugin: (config: any) => any;
|
|
276
|
-
export declare const MemoizedChildren: ({ children }: any) => any;
|
|
277
|
-
export declare const useEditorRef: () => {
|
|
278
|
-
api: {
|
|
279
|
-
node: () => any;
|
|
280
|
-
getType: () => string;
|
|
281
|
-
string: () => string;
|
|
282
|
-
start: () => {
|
|
283
|
-
path: number[];
|
|
284
|
-
offset: number;
|
|
285
|
-
};
|
|
286
|
-
end: () => {
|
|
287
|
-
path: number[];
|
|
288
|
-
offset: number;
|
|
289
|
-
};
|
|
290
|
-
toDOMRange: () => any;
|
|
291
|
-
some: () => boolean;
|
|
292
|
-
html: {
|
|
293
|
-
deserialize: () => any[];
|
|
294
|
-
};
|
|
295
|
-
create: {
|
|
296
|
-
value: () => {
|
|
297
|
-
type: string;
|
|
298
|
-
children: {
|
|
299
|
-
text: string;
|
|
300
|
-
}[];
|
|
301
|
-
}[];
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
getType: () => string;
|
|
305
|
-
tf: {
|
|
306
|
-
focus: () => void;
|
|
307
|
-
toggleBlock: () => void;
|
|
308
|
-
setNodes: () => void;
|
|
309
|
-
};
|
|
310
|
-
dom: {
|
|
311
|
-
readOnly: boolean;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
export declare const useElement: () => {};
|
package/dist/testutils.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { FC, ReactElement } from "react";
|
|
2
|
-
import { RenderOptions } from "@testing-library/react";
|
|
3
|
-
import { FileUploaderConfig, FormControls, PostMessageProps, PostMessageResponse, resolveUrl } from "./types";
|
|
4
|
-
interface IProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
controls?: FormControls;
|
|
7
|
-
fileUploaderConfig?: FileUploaderConfig;
|
|
8
|
-
resolveUrl?: resolveUrl;
|
|
9
|
-
postGenAiMessage?: ({ message, profile, }: PostMessageProps) => Promise<PostMessageResponse>;
|
|
10
|
-
}
|
|
11
|
-
export declare const TestWrapper: FC<IProps>;
|
|
12
|
-
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
13
|
-
export declare const renderViaFormBuilder: (controls: FormControls, fileUploaderConfig?: FileUploaderConfig, resolveUrl?: resolveUrl, options?: RenderOptions) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
14
|
-
export * from "@testing-library/react";
|
|
15
|
-
export { customRender as render };
|