@bigbinary/neeto-form-frontend 1.2.39 → 1.2.41
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/app/javascript/src/translations/en.json +15 -4
- package/dist/index.cjs.js +360 -175
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +364 -179
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/types.d.ts +25 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-form-frontend",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.41",
|
|
4
4
|
"description": "Neeto Form Engine Frontend",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-form-nano",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"@bigbinary/eslint-plugin-neeto": "1.5.0",
|
|
52
52
|
"@bigbinary/neeto-audit-frontend": "2.0.9",
|
|
53
53
|
"@bigbinary/neeto-cist": "1.0.9",
|
|
54
|
-
"@bigbinary/neeto-commons-frontend": "3.2.
|
|
54
|
+
"@bigbinary/neeto-commons-frontend": "3.2.8",
|
|
55
55
|
"@bigbinary/neeto-editor": "1.20.0",
|
|
56
|
-
"@bigbinary/neeto-filters-frontend": "3.2.
|
|
56
|
+
"@bigbinary/neeto-filters-frontend": "3.2.9",
|
|
57
57
|
"@bigbinary/neeto-hotkeys": "^1.0.1",
|
|
58
|
-
"@bigbinary/neeto-icons": "1.18.
|
|
59
|
-
"@bigbinary/neeto-molecules": "1.
|
|
60
|
-
"@bigbinary/neetoui": "6.
|
|
58
|
+
"@bigbinary/neeto-icons": "1.18.2",
|
|
59
|
+
"@bigbinary/neeto-molecules": "1.14.1",
|
|
60
|
+
"@bigbinary/neetoui": "6.5.0",
|
|
61
61
|
"@emotion/is-prop-valid": "1.2.0",
|
|
62
62
|
"@faker-js/faker": "8.2.0",
|
|
63
63
|
"@hello-pangea/dnd": "^16.5.0",
|
|
@@ -165,13 +165,13 @@
|
|
|
165
165
|
},
|
|
166
166
|
"peerDependencies": {
|
|
167
167
|
"@bigbinary/neeto-cist": "latest",
|
|
168
|
-
"@bigbinary/neeto-commons-frontend": "3.2.
|
|
168
|
+
"@bigbinary/neeto-commons-frontend": "3.2.8",
|
|
169
169
|
"@bigbinary/neeto-editor": "^1.26.3",
|
|
170
|
-
"@bigbinary/neeto-filters-frontend": "3.2.
|
|
170
|
+
"@bigbinary/neeto-filters-frontend": "3.2.9",
|
|
171
171
|
"@bigbinary/neeto-hotkeys": "^1.0.1",
|
|
172
|
-
"@bigbinary/neeto-icons": "1.18.
|
|
173
|
-
"@bigbinary/neeto-molecules": "1.
|
|
174
|
-
"@bigbinary/neetoui": "6.
|
|
172
|
+
"@bigbinary/neeto-icons": "1.18.2",
|
|
173
|
+
"@bigbinary/neeto-molecules": "1.14.1",
|
|
174
|
+
"@bigbinary/neetoui": "6.5.0",
|
|
175
175
|
"@honeybadger-io/js": "^6.5.3",
|
|
176
176
|
"@honeybadger-io/react": "^6.1.9",
|
|
177
177
|
"axios": "^1.6.0",
|
package/types.d.ts
CHANGED
|
@@ -66,6 +66,11 @@ interface BuildFormProps {
|
|
|
66
66
|
isQuestionDeletable?: (item: Item) => boolean;
|
|
67
67
|
disabledAddButtonTooltipProps?: DisabledAddButtonTooltipProps;
|
|
68
68
|
enableFieldCode?: boolean;
|
|
69
|
+
availableLanguages?: AvailableLanguage[];
|
|
70
|
+
formDescription?: React.ReactNode;
|
|
71
|
+
formTitle?: string;
|
|
72
|
+
selectedLanguage?: string;
|
|
73
|
+
onLanguageChange?: () => void;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
interface ExternalFormProps {
|
|
@@ -99,7 +104,8 @@ interface ExternalFormProps {
|
|
|
99
104
|
formDomProps?: FormHTMLAttributes<HTMLFormElement>;
|
|
100
105
|
editorProps?: EditorProps;
|
|
101
106
|
customValidator?: (question: Question) => Schema;
|
|
102
|
-
enablePreFilling?: boolean
|
|
107
|
+
enablePreFilling?: boolean;
|
|
108
|
+
language?: String;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
interface Data {
|
|
@@ -127,7 +133,12 @@ interface UrlBuilderProps {
|
|
|
127
133
|
}
|
|
128
134
|
|
|
129
135
|
interface DisabledAddButtonTooltipProps {
|
|
130
|
-
content?: string
|
|
136
|
+
content?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface AvailableLanguage {
|
|
140
|
+
code?: string;
|
|
141
|
+
name?: string;
|
|
131
142
|
}
|
|
132
143
|
|
|
133
144
|
interface SubmissionProps {
|
|
@@ -283,13 +294,21 @@ export const useFormSubmission: (args: {
|
|
|
283
294
|
};
|
|
284
295
|
|
|
285
296
|
export const useForms: (options?: UseQueryOptions) => UseQueryResult;
|
|
286
|
-
export const useForm: (
|
|
297
|
+
export const useForm: (
|
|
298
|
+
formId: String,
|
|
299
|
+
preview?: Boolean,
|
|
300
|
+
language?: String,
|
|
301
|
+
options?: FormHookOptions
|
|
302
|
+
) => UseQueryResult;
|
|
287
303
|
export const useCreateForm: (
|
|
288
|
-
options?: UseMutationOptions
|
|
304
|
+
options?: UseMutationOptions,
|
|
305
|
+
language?: String
|
|
289
306
|
) => CreateHookResponse;
|
|
290
307
|
export const useUpdateForm: (
|
|
291
|
-
options?: UseMutationOptions
|
|
308
|
+
options?: UseMutationOptions,
|
|
309
|
+
language?: String
|
|
292
310
|
) => UpdateHookResponse;
|
|
293
311
|
export const useDeleteForm: (
|
|
294
|
-
options?: UseMutationOptions
|
|
312
|
+
options?: UseMutationOptions,
|
|
313
|
+
language?: String
|
|
295
314
|
) => DeleteHookResponse;
|