@inertiajs/vue3 2.3.13 → 2.3.15

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/vue3",
3
- "version": "2.3.13",
3
+ "version": "2.3.15",
4
4
  "license": "MIT",
5
5
  "description": "The Vue 3 adapter for Inertia.js",
6
6
  "contributors": [
@@ -42,21 +42,21 @@
42
42
  }
43
43
  },
44
44
  "devDependencies": {
45
- "axios": "^1.13.2",
46
- "es-check": "^9.5.3",
47
- "esbuild": "^0.27.2",
45
+ "axios": "^1.13.5",
46
+ "es-check": "^9.5.4",
47
+ "esbuild": "^0.27.3",
48
48
  "esbuild-node-externals": "^1.20.1",
49
49
  "typescript": "^5.9.3",
50
- "vue": "^3.5.26"
50
+ "vue": "^3.5.28"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "vue": "^3.0.0"
54
54
  },
55
55
  "dependencies": {
56
56
  "@types/lodash-es": "^4.17.12",
57
- "laravel-precognition": "^1.0.1",
57
+ "laravel-precognition": "^1.0.2",
58
58
  "lodash-es": "^4.17.23",
59
- "@inertiajs/core": "2.3.13"
59
+ "@inertiajs/core": "2.3.15"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "pnpm clean && ./build.js && tsc",
package/types/form.d.ts CHANGED
@@ -99,7 +99,7 @@ declare const Form: import("vue").DefineComponent<import("vue").ExtractPropTypes
99
99
  };
100
100
  withAllErrors: {
101
101
  type: PropType<FormComponentProps["withAllErrors"]>;
102
- default: boolean;
102
+ default: null;
103
103
  };
104
104
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
105
105
  [key: string]: any;
@@ -202,7 +202,7 @@ declare const Form: import("vue").DefineComponent<import("vue").ExtractPropTypes
202
202
  };
203
203
  withAllErrors: {
204
204
  type: PropType<FormComponentProps["withAllErrors"]>;
205
- default: boolean;
205
+ default: null;
206
206
  };
207
207
  }>> & Readonly<{}>, {
208
208
  transform: ((data: Record<string, FormDataConvertible>) => Record<string, FormDataConvertible>) | undefined;
@@ -221,6 +221,7 @@ declare const Form: import("vue").DefineComponent<import("vue").ExtractPropTypes
221
221
  onSuccess: import("@inertiajs/core").GlobalEventCallback<"success", import("@inertiajs/core").RequestPayload> | undefined;
222
222
  onError: import("@inertiajs/core").GlobalEventCallback<"error", import("@inertiajs/core").RequestPayload> | undefined;
223
223
  options: import("@inertiajs/core").FormComponentOptions | undefined;
224
+ withAllErrors: boolean | null | undefined;
224
225
  action: string | import("@inertiajs/core").UrlMethodPair | undefined;
225
226
  resetOnError: boolean | string[] | undefined;
226
227
  resetOnSuccess: boolean | string[] | undefined;
@@ -228,7 +229,6 @@ declare const Form: import("vue").DefineComponent<import("vue").ExtractPropTypes
228
229
  onSubmitComplete: ((props: import("@inertiajs/core").FormComponentonSubmitCompleteArguments) => void) | undefined;
229
230
  validateFiles: boolean | undefined;
230
231
  validationTimeout: number | undefined;
231
- withAllErrors: boolean | undefined;
232
232
  disableWhileProcessing: boolean;
233
233
  }, SlotsType<{
234
234
  default: FormComponentSlotProps;
@@ -53,12 +53,12 @@ interface InternalPrecognitionState {
53
53
  export type InertiaForm<TForm extends object> = TForm & InertiaFormProps<TForm>;
54
54
  export type InertiaPrecognitiveForm<TForm extends object> = InertiaForm<TForm> & InertiaFormValidationProps<TForm> & InternalPrecognitionState;
55
55
  type ReservedFormKeys = keyof InertiaFormProps<any>;
56
- type ValidateFormData<T> = string extends keyof T ? T : {
56
+ type ValidateFormData<T> = {
57
57
  [K in keyof T]: K extends ReservedFormKeys ? ['Error: This field name is reserved by useForm:', K] : T[K];
58
58
  };
59
- export default function useForm<TForm extends FormDataType<TForm>>(method: Method | (() => Method), url: string | (() => string), data: ValidateFormData<TForm> | (() => ValidateFormData<TForm>)): InertiaPrecognitiveForm<TForm>;
60
- export default function useForm<TForm extends FormDataType<TForm>>(urlMethodPair: UrlMethodPair | (() => UrlMethodPair), data: ValidateFormData<TForm> | (() => ValidateFormData<TForm>)): InertiaPrecognitiveForm<TForm>;
61
- export default function useForm<TForm extends FormDataType<TForm>>(rememberKey: string, data: ValidateFormData<TForm> | (() => ValidateFormData<TForm>)): InertiaForm<TForm>;
62
- export default function useForm<TForm extends FormDataType<TForm>>(data: ValidateFormData<TForm> | (() => ValidateFormData<TForm>)): InertiaForm<TForm>;
59
+ export default function useForm<TForm extends FormDataType<TForm> & ValidateFormData<TForm>>(method: Method | (() => Method), url: string | (() => string), data: TForm | (() => TForm)): InertiaPrecognitiveForm<TForm>;
60
+ export default function useForm<TForm extends FormDataType<TForm> & ValidateFormData<TForm>>(urlMethodPair: UrlMethodPair | (() => UrlMethodPair), data: TForm | (() => TForm)): InertiaPrecognitiveForm<TForm>;
61
+ export default function useForm<TForm extends FormDataType<TForm> & ValidateFormData<TForm>>(rememberKey: string, data: TForm | (() => TForm)): InertiaForm<TForm>;
62
+ export default function useForm<TForm extends FormDataType<TForm> & ValidateFormData<TForm>>(data: TForm | (() => TForm)): InertiaForm<TForm>;
63
63
  export default function useForm<TForm extends FormDataType<TForm>>(): InertiaForm<TForm>;
64
64
  export {};