@inertiajs/react 2.1.6 → 2.1.8

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/LICENSE CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inertiajs/react",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "license": "MIT",
5
5
  "description": "The React adapter for Inertia.js",
6
6
  "contributors": [
@@ -42,29 +42,30 @@
42
42
  ]
43
43
  }
44
44
  },
45
+ "scripts": {
46
+ "build": "pnpm clean && ./build.js && tsc",
47
+ "build:with-deps": "./build.js --with-deps",
48
+ "clean": "rm -rf types && rm -rf dist",
49
+ "dev": "./build.js --watch",
50
+ "es2020-check": "pnpm build:with-deps && es-check es2020 \"dist/index.esm.js\" --checkFeatures --module --noCache --verbose",
51
+ "prepublishOnly": "pnpm build"
52
+ },
45
53
  "devDependencies": {
46
54
  "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
47
55
  "@types/react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
48
- "axios": "^1.11.0",
56
+ "axios": "^1.12.0",
49
57
  "es-check": "^9.3.1",
50
58
  "esbuild": "^0.25.0",
51
59
  "esbuild-node-externals": "^1.6.0",
52
60
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
53
- "typescript": "^4.9.4"
61
+ "typescript": "^5.9.2"
54
62
  },
55
63
  "peerDependencies": {
56
64
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
57
65
  },
58
66
  "dependencies": {
67
+ "@inertiajs/core": "workspace:*",
59
68
  "@types/lodash-es": "^4.17.12",
60
- "lodash-es": "^4.17.21",
61
- "@inertiajs/core": "2.1.6"
62
- },
63
- "scripts": {
64
- "build": "pnpm clean && ./build.js && tsc",
65
- "build:with-deps": "./build.js --with-deps",
66
- "clean": "rm -rf types && rm -rf dist",
67
- "dev": "./build.js --watch",
68
- "es2020-check": "pnpm build:with-deps && es-check es2020 \"dist/index.esm.js\" --checkFeatures --module --noCache --verbose"
69
+ "lodash-es": "^4.17.21"
69
70
  }
70
- }
71
+ }
package/readme.md CHANGED
File without changes
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;