asasvirtuais 0.6.4 → 0.6.6

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,7 +1,7 @@
1
1
  {
2
2
  "name": "asasvirtuais",
3
3
  "type": "module",
4
- "version": "0.6.4",
4
+ "version": "0.6.6",
5
5
  "directories": {
6
6
  "packages": "./packages"
7
7
  },
@@ -309,7 +309,7 @@ export function reactInterface<
309
309
 
310
310
  const callback = useCallback(
311
311
  async (fields: Omit<ListProps<Readable>, 'table'>) => {
312
- const result = await list.trigger({ query: fields })
312
+ const result = await list.trigger(fields)
313
313
  if (onSuccess) onSuccess(result)
314
314
  return result
315
315
  },
@@ -318,7 +318,7 @@ export function reactInterface<
318
318
 
319
319
  return (
320
320
  <FieldsProvider<ListProps<Readable>>
321
- defaults={(defaults || {}) as ListProps<Readable>}
321
+ defaults={(defaults || { query: {} }) as ListProps<Readable>}
322
322
  >
323
323
  {fields => (
324
324
  <FormProvider<ListProps<Readable>, Readable[]> callback={callback} data={fields.fields}>
package/tsconfig.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "composite": true,
3
4
  "lib": [
4
5
  "dom",
5
6
  "dom.iterable",