@inertiajs/core 2.3.5 → 2.3.7
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 +7 -2
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +7 -2
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/types/types.d.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inertiajs/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A framework for creating server-driven single page apps.",
|
|
6
6
|
"contributors": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"laravel-precognition": "^1.0.0",
|
|
49
49
|
"axios": "^1.13.2",
|
|
50
50
|
"lodash-es": "^4.17.21",
|
|
51
|
-
"qs": "^6.14.
|
|
51
|
+
"qs": "^6.14.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/deepmerge": "^2.2.3",
|
package/types/types.d.ts
CHANGED
|
@@ -460,8 +460,10 @@ export type FormComponentProps = Partial<Pick<Visit, 'headers' | 'queryStringArr
|
|
|
460
460
|
export type FormComponentMethods = {
|
|
461
461
|
clearErrors: (...fields: string[]) => void;
|
|
462
462
|
resetAndClearErrors: (...fields: string[]) => void;
|
|
463
|
-
setError
|
|
464
|
-
|
|
463
|
+
setError: {
|
|
464
|
+
(field: string, value: ErrorValue): void;
|
|
465
|
+
(errors: Record<string, ErrorValue>): void;
|
|
466
|
+
};
|
|
465
467
|
reset: (...fields: string[]) => void;
|
|
466
468
|
submit: () => void;
|
|
467
469
|
defaults: () => void;
|
|
@@ -469,9 +471,9 @@ export type FormComponentMethods = {
|
|
|
469
471
|
getFormData: () => FormData;
|
|
470
472
|
valid: (field: string) => boolean;
|
|
471
473
|
invalid: (field: string) => boolean;
|
|
472
|
-
validate(field?: string | NamedInputEvent | ValidationConfig, config?: ValidationConfig)
|
|
474
|
+
validate: (field?: string | NamedInputEvent | ValidationConfig, config?: ValidationConfig) => void;
|
|
473
475
|
touch: (...fields: string[]) => void;
|
|
474
|
-
touched(field?: string)
|
|
476
|
+
touched: (field?: string) => boolean;
|
|
475
477
|
validator: () => Validator;
|
|
476
478
|
};
|
|
477
479
|
export type FormComponentonSubmitCompleteArguments = Pick<FormComponentMethods, 'reset' | 'defaults'>;
|