@inertiajs/core 2.2.3 → 2.2.5

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.3",
3
+ "version": "2.2.5",
4
4
  "license": "MIT",
5
5
  "description": "A framework for creating server-driven single page apps.",
6
6
  "contributors": [
@@ -63,7 +63,9 @@
63
63
  "build": "pnpm clean && ./build.js && tsc",
64
64
  "build:with-deps": "./build.js --with-deps",
65
65
  "clean": "rm -rf types && rm -rf dist",
66
- "dev": "./build.js --watch",
66
+ "dev": "pnpx concurrently -c \"#ffcf00,#3178c6\" \"pnpm dev:build\" \"pnpm dev:types\" --names build,types",
67
+ "dev:build": "./build.js --watch",
68
+ "dev:types": "tsc --watch --preserveWatchOutput",
67
69
  "es2020-check": "pnpm build:with-deps && es-check es2020 \"dist/index.esm.js\" --checkFeatures --module --noCache --verbose"
68
70
  }
69
71
  }
@@ -9,4 +9,5 @@ export declare const useInfiniteScrollQueryString: (options: {
9
9
  shouldPreserveUrl: () => boolean;
10
10
  }) => {
11
11
  onItemIntersected: (itemElement: HTMLElement) => void;
12
+ cancel: () => boolean;
12
13
  };
package/types/types.d.ts CHANGED
@@ -282,7 +282,7 @@ export type PrefetchOptions = {
282
282
  cacheFor: CacheForOption | CacheForOption[];
283
283
  cacheTags: string | string[];
284
284
  };
285
- export interface LinkComponentBaseProps extends Partial<Pick<Visit<RequestPayload>, 'data' | 'method' | 'replace' | 'preserveScroll' | 'preserveState' | 'only' | 'except' | 'headers' | 'queryStringArrayFormat' | 'async'> & Omit<VisitCallbacks, 'onCancelToken'> & {
285
+ export interface LinkComponentBaseProps extends Partial<Pick<Visit<RequestPayload>, 'data' | 'method' | 'replace' | 'preserveScroll' | 'preserveState' | 'preserveUrl' | 'only' | 'except' | 'headers' | 'queryStringArrayFormat' | 'async'> & Omit<VisitCallbacks, 'onCancelToken'> & {
286
286
  href: string | UrlMethodPair;
287
287
  onCancelToken: (cancelToken: import('axios').CancelTokenSource) => void;
288
288
  prefetch: boolean | LinkPrefetchOption | LinkPrefetchOption[];
@@ -403,6 +403,7 @@ export interface UseInfiniteScrollElementManager {
403
403
  export interface UseInfiniteScrollProps {
404
404
  dataManager: UseInfiniteScrollDataManager;
405
405
  elementManager: UseInfiniteScrollElementManager;
406
+ flush: () => void;
406
407
  }
407
408
  export interface InfiniteScrollSlotProps {
408
409
  loading: boolean;