@inertiajs/react 2.1.6 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inertiajs/react",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "license": "MIT",
5
5
  "description": "The React adapter for Inertia.js",
6
6
  "contributors": [
@@ -45,12 +45,12 @@
45
45
  "devDependencies": {
46
46
  "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
47
47
  "@types/react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
48
- "axios": "^1.11.0",
48
+ "axios": "^1.12.0",
49
49
  "es-check": "^9.3.1",
50
50
  "esbuild": "^0.25.0",
51
51
  "esbuild-node-externals": "^1.6.0",
52
52
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
53
- "typescript": "^4.9.4"
53
+ "typescript": "^5.9.2"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "@types/lodash-es": "^4.17.12",
60
60
  "lodash-es": "^4.17.21",
61
- "@inertiajs/core": "2.1.6"
61
+ "@inertiajs/core": "2.1.7"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "pnpm clean && ./build.js && tsc",
package/types/App.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare function App({ children, initialPage, initialComponent, resolveComponent, titleCallback, onHeadUpdate, }: {
3
2
  children: any;
4
3
  initialPage: any;
package/types/Form.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { FormComponentSlotProps, FormDataConvertible, Method } from '@inertiajs/core';
2
2
  import React, { ReactNode } from 'react';
3
3
  declare const Form: React.ForwardRefExoticComponent<Partial<Pick<import("@inertiajs/core").Visit<import("@inertiajs/core").RequestPayload>, "headers" | "errorBag" | "queryStringArrayFormat" | "showProgress" | "invalidateCacheTags"> & Omit<import("@inertiajs/core").VisitCallbacks<import("@inertiajs/core").RequestPayload>, "onPrefetched" | "onPrefetching">> & {
4
- method?: Method | "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4
+ method?: Method | Uppercase<Method>;
5
5
  action?: string | import("@inertiajs/core").UrlMethodPair;
6
6
  transform?: (data: Record<string, FormDataConvertible>) => Record<string, FormDataConvertible>;
7
7
  options?: import("@inertiajs/core").FormComponentOptions;
@@ -11,6 +11,6 @@ declare const Form: React.ForwardRefExoticComponent<Partial<Pick<import("@inerti
11
11
  resetOnError?: boolean | string[];
12
12
  setDefaultsOnSuccess?: boolean;
13
13
  } & Omit<React.FormHTMLAttributes<HTMLFormElement>, "children" | "method" | "headers" | "errorBag" | "queryStringArrayFormat" | "showProgress" | "invalidateCacheTags" | "onCancelToken" | "onBefore" | "onStart" | "onProgress" | "onFinish" | "onCancel" | "onSuccess" | "onError" | "action" | "transform" | "options" | "onSubmitComplete" | "disableWhileProcessing" | "resetOnSuccess" | "resetOnError" | "setDefaultsOnSuccess"> & Omit<React.AllHTMLAttributes<HTMLFormElement>, "children" | "method" | "headers" | "errorBag" | "queryStringArrayFormat" | "showProgress" | "invalidateCacheTags" | "onCancelToken" | "onBefore" | "onStart" | "onProgress" | "onFinish" | "onCancel" | "onSuccess" | "onError" | "action" | "transform" | "options" | "onSubmitComplete" | "disableWhileProcessing" | "resetOnSuccess" | "resetOnError" | "setDefaultsOnSuccess"> & {
14
- children: React.ReactNode | ((props: FormComponentSlotProps) => ReactNode);
14
+ children: ReactNode | ((props: FormComponentSlotProps) => ReactNode);
15
15
  } & React.RefAttributes<FormComponentSlotProps>>;
16
16
  export default Form;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const headContext: import("react").Context<any>;
3
2
  export default headContext;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const pageContext: import("react").Context<any>;
3
2
  export default pageContext;