@inertiajs/core 2.3.9 → 2.3.11
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/dist/index.esm.js +161 -131
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +161 -131
- package/dist/index.js.map +4 -4
- package/package.json +5 -7
- package/types/index.d.ts +1 -1
- package/types/resetFormFields.d.ts +1 -0
- package/types/router.d.ts +3 -1
- package/types/scroll.d.ts +1 -0
- package/types/types.d.ts +2 -2
- package/types/useFormUtils.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inertiajs/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A framework for creating server-driven single page apps.",
|
|
6
6
|
"contributors": [
|
|
@@ -45,18 +45,16 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@types/lodash-es": "^4.17.12",
|
|
48
|
-
"laravel-precognition": "^1.0.0",
|
|
49
48
|
"axios": "^1.13.2",
|
|
50
|
-
"
|
|
49
|
+
"laravel-precognition": "^1.0.0",
|
|
50
|
+
"lodash-es": "^4.17.22",
|
|
51
51
|
"qs": "^6.14.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/deepmerge": "^2.2.3",
|
|
55
54
|
"@types/node": "^18.19.130",
|
|
56
|
-
"@types/nprogress": "^0.2.3",
|
|
57
55
|
"@types/qs": "^6.14.0",
|
|
58
|
-
"es-check": "^9.
|
|
59
|
-
"esbuild": "^0.
|
|
56
|
+
"es-check": "^9.5.3",
|
|
57
|
+
"esbuild": "^0.27.2",
|
|
60
58
|
"esbuild-node-externals": "^1.20.1",
|
|
61
59
|
"typescript": "^5.9.3"
|
|
62
60
|
},
|
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 };
|
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'];
|
|
@@ -438,7 +438,7 @@ export type UrlMethodPair = {
|
|
|
438
438
|
};
|
|
439
439
|
export type UseFormTransformCallback<TForm> = (data: TForm) => object;
|
|
440
440
|
export type UseFormWithPrecognitionArguments = [Method | (() => Method), string | (() => string)] | [UrlMethodPair | (() => UrlMethodPair)];
|
|
441
|
-
type UseFormInertiaArguments<TForm> = [data: TForm | (() => TForm)] | [rememberKey: string, data: TForm | (() => TForm)];
|
|
441
|
+
type UseFormInertiaArguments<TForm> = [] | [data: TForm | (() => TForm)] | [rememberKey: string, data: TForm | (() => TForm)];
|
|
442
442
|
type UseFormPrecognitionArguments<TForm> = [urlMethodPair: UrlMethodPair | (() => UrlMethodPair), data: TForm | (() => TForm)] | [method: Method | (() => Method), url: string | (() => string), data: TForm | (() => TForm)];
|
|
443
443
|
export type UseFormArguments<TForm> = UseFormInertiaArguments<TForm> | UseFormPrecognitionArguments<TForm>;
|
|
444
444
|
export type UseFormSubmitOptions = Omit<VisitOptions, 'data'>;
|
package/types/useFormUtils.d.ts
CHANGED