@bigbinary/neeto-form-frontend 1.2.51 → 1.2.53
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.js +59 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +59 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +8 -7
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -191,8 +191,14 @@ interface DeleteHookResponse<TData = unknown, TError = unknown>
|
|
|
191
191
|
mutateAsync: (args: { id: string }) => Promise<TData>;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
interface FormsHookOptions extends UseQueryOptions {
|
|
195
|
+
page?: number;
|
|
196
|
+
pageSize?: number;
|
|
197
|
+
}
|
|
198
|
+
|
|
194
199
|
interface FormHookOptions extends UseQueryOptions {
|
|
195
200
|
formId: string;
|
|
201
|
+
language?: string;
|
|
196
202
|
preview?: boolean;
|
|
197
203
|
}
|
|
198
204
|
|
|
@@ -295,13 +301,8 @@ export const useFormSubmission: (args: {
|
|
|
295
301
|
isLoading: boolean;
|
|
296
302
|
};
|
|
297
303
|
|
|
298
|
-
export const useForms: (options?:
|
|
299
|
-
export const useForm: (
|
|
300
|
-
formId: String,
|
|
301
|
-
preview?: Boolean,
|
|
302
|
-
language?: String,
|
|
303
|
-
options?: FormHookOptions
|
|
304
|
-
) => UseQueryResult;
|
|
304
|
+
export const useForms: (options?: FormsHookOptions) => UseQueryResult;
|
|
305
|
+
export const useForm: (options?: FormHookOptions) => UseQueryResult;
|
|
305
306
|
export const useCreateForm: (
|
|
306
307
|
options?: UseMutationOptions,
|
|
307
308
|
language?: String
|