@inertiajs/core 2.3.9 → 2.3.10

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.3.9",
3
+ "version": "2.3.10",
4
4
  "license": "MIT",
5
5
  "description": "A framework for creating server-driven single page apps.",
6
6
  "contributors": [
package/types/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { default as createHeadManager } from './head';
9
9
  export { default as useInfiniteScroll } from './infiniteScroll';
10
10
  export { shouldIntercept, shouldNavigate } from './navigationEvents';
11
11
  export { hide as hideProgress, progress, reveal as revealProgress, default as setupProgress } from './progress';
12
- export { resetFormFields } from './resetFormFields';
12
+ export { FormComponentResetSymbol, resetFormFields } from './resetFormFields';
13
13
  export * from './types';
14
14
  export { hrefToUrl, isUrlMethodPair, mergeDataIntoQueryString, urlHasProtocol, urlToString, urlWithoutHash, } from './url';
15
15
  export { type Config, type Router };
@@ -1 +1,2 @@
1
+ export declare const FormComponentResetSymbol: unique symbol;
1
2
  export declare function resetFormFields(formElement: HTMLFormElement, defaults: FormData, fieldNames?: string[]): void;
package/types/router.d.ts CHANGED
@@ -22,8 +22,10 @@ export declare class Router {
22
22
  * @deprecated Use cancelAll() instead.
23
23
  */
24
24
  cancel(): void;
25
- cancelAll({ prefetch }?: {
25
+ cancelAll({ async, prefetch, sync }?: {
26
+ async?: boolean | undefined;
26
27
  prefetch?: boolean | undefined;
28
+ sync?: boolean | undefined;
27
29
  }): void;
28
30
  poll(interval: number, requestOptions?: ReloadOptions, options?: PollOptions): {
29
31
  stop: VoidFunction;
package/types/scroll.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare class Scroll {
3
3
  static save(): void;
4
4
  static getScrollRegions(): ScrollRegion[];
5
5
  protected static regions(): NodeListOf<Element>;
6
+ static scrollToTop(): void;
6
7
  static reset(): void;
7
8
  static scrollToAnchor(): void;
8
9
  static restore(scrollRegions: ScrollRegion[]): void;
package/types/types.d.ts CHANGED
@@ -117,7 +117,7 @@ export type ScrollRegion = {
117
117
  export interface ClientSideVisitOptions<TProps = Page['props']> {
118
118
  component?: Page['component'];
119
119
  url?: Page['url'];
120
- props?: ((props: TProps) => PageProps) | PageProps;
120
+ props?: ((props: TProps, onceProps: Partial<TProps>) => PageProps) | PageProps;
121
121
  flash?: ((flash: FlashData) => PageFlashData) | PageFlashData;
122
122
  clearHistory?: Page['clearHistory'];
123
123
  encryptHistory?: Page['encryptHistory'];