@inertiajs/react 2.3.0 → 2.3.2

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.
@@ -1,7 +1,10 @@
1
1
  import { ReloadOptions } from '@inertiajs/core';
2
2
  import { ReactNode } from 'react';
3
+ interface WhenVisibleSlotProps {
4
+ fetching: boolean;
5
+ }
3
6
  interface WhenVisibleProps {
4
- children: ReactNode | (() => ReactNode);
7
+ children: ReactNode | ((props: WhenVisibleSlotProps) => ReactNode);
5
8
  fallback: ReactNode | (() => ReactNode);
6
9
  data?: string | string[];
7
10
  params?: ReloadOptions;
package/types/index.d.ts CHANGED
@@ -19,7 +19,7 @@ export { default as Head } from './Head';
19
19
  export { default as InfiniteScroll } from './InfiniteScroll';
20
20
  export { InertiaLinkProps, default as Link } from './Link';
21
21
  export { ReactComponent as ResolvedComponent } from './types';
22
- export { InertiaFormProps, SetDataAction, SetDataByKeyValuePair, SetDataByMethod, SetDataByObject, default as useForm, } from './useForm';
22
+ export { InertiaFormProps, InertiaPrecognitiveFormProps, SetDataAction, SetDataByKeyValuePair, SetDataByMethod, SetDataByObject, default as useForm, } from './useForm';
23
23
  export { default as usePage } from './usePage';
24
24
  export { default as usePoll } from './usePoll';
25
25
  export { default as usePrefetch } from './usePrefetch';