@inertiajs/core 2.2.20 → 2.2.21

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": "@inertiajs/core",
3
- "version": "2.2.20",
3
+ "version": "2.2.21",
4
4
  "license": "MIT",
5
5
  "description": "A framework for creating server-driven single page apps.",
6
6
  "contributors": [
package/types/types.d.ts CHANGED
@@ -87,7 +87,7 @@ export interface Page<SharedProps extends PageProps = PageProps> {
87
87
  version: string | null;
88
88
  clearHistory: boolean;
89
89
  encryptHistory: boolean;
90
- deferredProps?: Record<string, VisitOptions['only']>;
90
+ deferredProps?: Record<string, NonNullable<VisitOptions['only']>>;
91
91
  mergeProps?: string[];
92
92
  prependProps?: string[];
93
93
  deepMergeProps?: string[];
@@ -415,7 +415,7 @@ export type UrlMethodPair = {
415
415
  url: string;
416
416
  method: Method;
417
417
  };
418
- export type FormComponentOptions = Pick<VisitOptions, 'preserveScroll' | 'preserveState' | 'preserveUrl' | 'replace' | 'only' | 'except' | 'reset'>;
418
+ export type FormComponentOptions = Pick<VisitOptions, 'preserveScroll' | 'preserveState' | 'preserveUrl' | 'replace' | 'only' | 'except' | 'reset' | 'viewTransition'>;
419
419
  export type FormComponentProps = Partial<Pick<Visit, 'headers' | 'queryStringArrayFormat' | 'errorBag' | 'showProgress' | 'invalidateCacheTags'> & Omit<VisitCallbacks, 'onPrefetched' | 'onPrefetching'>> & {
420
420
  method?: Method | Uppercase<Method>;
421
421
  action?: string | UrlMethodPair;