@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-form-frontend",
3
- "version": "1.2.51",
3
+ "version": "1.2.53",
4
4
  "description": "Neeto Form Engine Frontend",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-form-nano",
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?: UseQueryOptions) => UseQueryResult;
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