🔧 npm update

This commit is contained in:
2025-04-15 20:50:11 +02:00
parent ce5b9ac0c8
commit 94a90edabd
828 changed files with 256807 additions and 197099 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "@inertiajs/core",
"version": "1.0.14",
"version": "1.3.0",
"license": "MIT",
"description": "A framework for creating server-driven single page apps.",
"contributors": [
@@ -50,7 +50,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"axios": "^1.2.0",
"axios": "^1.6.0",
"deepmerge": "^4.0.0",
"nprogress": "^0.2.0",
"qs": "^6.9.0"

View File

@@ -34,9 +34,9 @@ export declare class Router {
interrupted?: boolean;
}): void;
protected finishVisit(visit: ActiveVisit): void;
protected resolvePreserveOption(value: PreserveStateOption, page: Page): boolean | string;
protected resolvePreserveOption(value: PreserveStateOption, page: Page): boolean;
cancel(): void;
visit(href: string | URL, { method, data, replace, preserveScroll, preserveState, only, headers, errorBag, forceFormData, onCancelToken, onBefore, onStart, onProgress, onFinish, onCancel, onSuccess, onError, queryStringArrayFormat, }?: VisitOptions): void;
visit(href: string | URL, { method, data, replace, preserveScroll, preserveState, only, except, headers, errorBag, forceFormData, onCancelToken, onBefore, onStart, onProgress, onFinish, onCancel, onSuccess, onError, queryStringArrayFormat, }?: VisitOptions): void;
protected setPage(page: Page, { visitId, replace, preserveScroll, preserveState, }?: {
visitId?: VisitId;
replace?: boolean;
@@ -46,13 +46,13 @@ export declare class Router {
protected pushState(page: Page): void;
protected replaceState(page: Page): void;
protected handlePopstateEvent(event: PopStateEvent): void;
get(url: URL | string, data?: RequestPayload, options?: Exclude<VisitOptions, 'method' | 'data'>): void;
reload(options?: Exclude<VisitOptions, 'preserveScroll' | 'preserveState'>): void;
replace(url: URL | string, options?: Exclude<VisitOptions, 'replace'>): void;
post(url: URL | string, data?: RequestPayload, options?: Exclude<VisitOptions, 'method' | 'data'>): void;
put(url: URL | string, data?: RequestPayload, options?: Exclude<VisitOptions, 'method' | 'data'>): void;
patch(url: URL | string, data?: RequestPayload, options?: Exclude<VisitOptions, 'method' | 'data'>): void;
delete(url: URL | string, options?: Exclude<VisitOptions, 'method'>): void;
get(url: URL | string, data?: RequestPayload, options?: Omit<VisitOptions, 'method' | 'data'>): void;
reload(options?: Omit<VisitOptions, 'preserveScroll' | 'preserveState'>): void;
replace(url: URL | string, options?: Omit<VisitOptions, 'replace'>): void;
post(url: URL | string, data?: RequestPayload, options?: Omit<VisitOptions, 'method' | 'data'>): void;
put(url: URL | string, data?: RequestPayload, options?: Omit<VisitOptions, 'method' | 'data'>): void;
patch(url: URL | string, data?: RequestPayload, options?: Omit<VisitOptions, 'method' | 'data'>): void;
delete(url: URL | string, options?: Omit<VisitOptions, 'method'>): void;
remember(data: unknown, key?: string): void;
restore(key?: string): unknown;
on<TEventName extends GlobalEventNames>(type: TEventName, callback: (event: GlobalEvent<TEventName>) => GlobalEventResult<TEventName>): VoidFunction;

View File

@@ -1 +1 @@
export default function shouldIntercept(event: KeyboardEvent): boolean;
export default function shouldIntercept(event: Pick<MouseEvent, 'altKey' | 'ctrlKey' | 'defaultPrevented' | 'target' | 'currentTarget' | 'metaKey' | 'shiftKey' | 'button'>): boolean;

View File

@@ -35,7 +35,7 @@ export type PageHandler = ({ component, page, preserveState, }: {
page: Page;
preserveState: PreserveStateOption;
}) => Promise<unknown>;
export type PreserveStateOption = boolean | string | ((page: Page) => boolean);
export type PreserveStateOption = boolean | 'errors' | ((page: Page) => boolean);
export type Progress = AxiosProgressEvent;
export type LocationVisit = {
preserveScroll: boolean;
@@ -47,6 +47,7 @@ export type Visit = {
preserveScroll: PreserveStateOption;
preserveState: PreserveStateOption;
only: Array<string>;
except: Array<string>;
headers: Record<string, string>;
errorBag: string | null;
forceFormData: boolean;

0
node_modules/@inertiajs/vue3/LICENSE generated vendored Normal file → Executable file
View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
node_modules/@inertiajs/vue3/package.json generated vendored Normal file → Executable file
View File

@@ -1,6 +1,6 @@
{
"name": "@inertiajs/vue3",
"version": "1.0.14",
"version": "1.3.0",
"license": "MIT",
"description": "The Vue 3 adapter for Inertia.js",
"contributors": [
@@ -56,7 +56,7 @@
"vue": "^3.0.0"
},
"dependencies": {
"@inertiajs/core": "1.0.14",
"@inertiajs/core": "1.3.0",
"lodash.clonedeep": "^4.5.0",
"lodash.isequal": "^4.5.0"
}

0
node_modules/@inertiajs/vue3/readme.md generated vendored Normal file → Executable file
View File

View File

@@ -1,5 +1,5 @@
import { Page } from '@inertiajs/core';
import { App as VueApp, DefineComponent, Plugin } from 'vue';
import { DefineComponent, Plugin, App as VueApp } from 'vue';
import { InertiaApp, InertiaAppProps } from './app';
interface CreateInertiaAppProps {
id?: string;

View File

@@ -2,7 +2,7 @@ export { router } from '@inertiajs/core';
export { usePage } from './app';
export { default as createInertiaApp } from './createInertiaApp';
export { default as Head } from './head';
export { default as Link, InertiaLinkProps } from './link';
export { InertiaLinkProps, default as Link } from './link';
export * from './types';
export { default as useForm, InertiaForm } from './useForm';
export { InertiaForm, InertiaFormProps, default as useForm } from './useForm';
export { default as useRemember } from './useRemember';

View File

@@ -11,6 +11,7 @@ export interface InertiaLinkProps {
preserveState?: boolean | ((props: PageProps) => boolean) | null;
replace?: boolean;
only?: string[];
except?: string[];
onCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;
onBefore?: () => void;
onStart?: () => void;

View File

@@ -9,7 +9,7 @@ declare module '@inertiajs/core' {
form: typeof useForm;
}
}
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$inertia: typeof router;
$page: Page;

View File

@@ -1,6 +1,6 @@
import { FormDataConvertible, Method, Progress, VisitOptions } from '@inertiajs/core';
type FormDataType = object;
interface InertiaFormProps<TForm extends FormDataType> {
export interface InertiaFormProps<TForm extends FormDataType> {
isDirty: boolean;
errors: Partial<Record<keyof TForm, string>>;
hasErrors: boolean;