@inertiajs/react
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@inertiajs/react", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"license": "MIT", | ||
@@ -62,5 +62,5 @@ "description": "The React adapter for Inertia.js", | ||
"dependencies": { | ||
"@inertiajs/core": "1.0.1", | ||
"@inertiajs/core": "1.0.2", | ||
"lodash.isequal": "^4.5.0" | ||
} | ||
} |
@@ -1,4 +0,5 @@ | ||
import { FunctionComponent } from 'react'; | ||
import React, { FunctionComponent } from 'react'; | ||
type InertiaHeadProps = { | ||
title?: string; | ||
children?: React.ReactNode; | ||
}; | ||
@@ -5,0 +6,0 @@ type InertiaHead = FunctionComponent<InertiaHeadProps>; |
export declare const router: import("@inertiajs/core").Router; | ||
export { default as createInertiaApp } from './createInertiaApp'; | ||
export { default as Head } from './Head'; | ||
export { default as Link } from './Link'; | ||
export { default as Link, InertiaLinkProps } from './Link'; | ||
export { default as useForm } from './useForm'; | ||
export { default as usePage } from './usePage'; | ||
export { default as useRemember } from './useRemember'; |
@@ -23,5 +23,5 @@ import { FormDataConvertible, Method, PreserveStateOption, Progress } from '@inertiajs/core'; | ||
} | ||
type InertiaLinkProps = BaseInertiaLinkProps & Omit<React.HTMLAttributes<HTMLElement>, keyof BaseInertiaLinkProps> & Omit<React.AllHTMLAttributes<HTMLElement>, keyof BaseInertiaLinkProps>; | ||
export type InertiaLinkProps = BaseInertiaLinkProps & Omit<React.HTMLAttributes<HTMLElement>, keyof BaseInertiaLinkProps> & Omit<React.AllHTMLAttributes<HTMLElement>, keyof BaseInertiaLinkProps>; | ||
type InertiaLink = React.FunctionComponent<InertiaLinkProps>; | ||
declare const Link: InertiaLink; | ||
export default Link; |
@@ -1,2 +0,2 @@ | ||
import { Page } from '@inertiajs/core'; | ||
export default function usePage<TPage extends Page = Page>(): TPage; | ||
import { Page, PageProps } from '@inertiajs/core'; | ||
export default function usePage<TPageProps extends PageProps = PageProps>(): Page<TPageProps>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
94635
218
0
+ Added@inertiajs/core@1.0.2(transitive)
- Removed@inertiajs/core@1.0.1(transitive)
Updated@inertiajs/core@1.0.2