Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@inertiajs/core

Package Overview
Dependencies
Maintainers
3
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inertiajs/core - npm Package Compare versions

Comparing version
2.3.23
to
2.3.24
+1
-1
package.json
{
"name": "@inertiajs/core",
"version": "2.3.23",
"version": "2.3.24",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A framework for creating server-driven single page apps.",

import { UseInfiniteScrollDataManager } from '../types';
export type InfiniteScrollPageIdentifier = string | number | null;
export type InfiniteScrollOnCompleteDetails = {
page: InfiniteScrollPageIdentifier;
completed: boolean;
};
export declare const useInfiniteScrollData: (options: {

@@ -7,5 +12,9 @@ getPropName: () => string;

onBeforeNextRequest: () => void;
onCompletePreviousRequest: (loadedPage: string | number | null) => void;
onCompleteNextRequest: (loadedPage: string | number | null) => void;
onCompletePreviousRequest: (
/** @deprecated Use `details.page` instead. */
loadedPage: InfiniteScrollPageIdentifier, details: InfiniteScrollOnCompleteDetails) => void;
onCompleteNextRequest: (
/** @deprecated Use `details.page` instead. */
loadedPage: InfiniteScrollPageIdentifier, details: InfiniteScrollOnCompleteDetails) => void;
onReset?: () => void;
}) => UseInfiniteScrollDataManager;
declare const _default: {
modal: null;
listener: null;
previousBodyOverflow: null;
createIframeAndPage(html: Record<string, unknown> | string): {

@@ -5,0 +6,0 @@ iframe: HTMLIFrameElement;

import { PollOptions } from './types';
type PollHooks = {
onStart: (cancel: VoidFunction) => void;
onFinish: VoidFunction;
};
export type PollCallback = (hooks: PollHooks) => void;
export declare class Poll {
protected id: number | null;
protected intervalId: number | null;
protected timeoutId: number | null;
protected throttle: boolean;
protected keepAlive: boolean;
protected cb: VoidFunction;
protected cb: PollCallback;
protected interval: number;
protected cbCount: number;
constructor(interval: number, cb: VoidFunction, options: PollOptions);
protected mode: 'overlap' | 'cancel' | 'rest';
protected inFlight: boolean;
protected currentCancel: VoidFunction | null;
protected stopped: boolean;
protected instanceId: number;
constructor(interval: number, cb: PollCallback, options: PollOptions);
stop(): void;
start(): void;
isInBackground(hidden: boolean): void;
protected scheduleNext(): void;
protected tick(): void;
protected fire(): void;
}
export {};

@@ -1,2 +0,2 @@

import { Poll } from './poll';
import { Poll, PollCallback } from './poll';
import { PollOptions } from './types';

@@ -6,5 +6,7 @@ declare class Polls {

constructor();
add(interval: number, cb: VoidFunction, options: PollOptions): {
get count(): number;
add(interval: number, cb: PollCallback, options: PollOptions): {
stop: VoidFunction;
start: VoidFunction;
destroy: VoidFunction;
};

@@ -11,0 +13,0 @@ clear(): void;

@@ -25,2 +25,3 @@ import Queue from './queue';

cancel(): void;
get activePolls(): number;
cancelAll({ async, prefetch, sync }?: {

@@ -31,5 +32,6 @@ async?: boolean | undefined;

}): void;
poll(interval: number, requestOptions?: ReloadOptions, options?: PollOptions): {
poll(interval: number, requestOptions?: ReloadOptions | (() => ReloadOptions), options?: PollOptions): {
stop: VoidFunction;
start: VoidFunction;
destroy: VoidFunction;
};

@@ -36,0 +38,0 @@ visit<T extends RequestPayload = RequestPayload>(href: string | URL | UrlMethodPair, options?: VisitOptions<T>): void;

import { AxiosProgressEvent, AxiosResponse } from 'axios';
import { NamedInputEvent, ValidationConfig, Validator } from 'laravel-precognition';
import { InfiniteScrollOnCompleteDetails, InfiniteScrollPageIdentifier } from './infiniteScroll/data';
import { Response } from './response';

@@ -86,5 +87,5 @@ declare module 'axios' {

pageName: string;
previousPage: number | string | null;
nextPage: number | string | null;
currentPage: number | string | null;
previousPage: InfiniteScrollPageIdentifier;
nextPage: InfiniteScrollPageIdentifier;
currentPage: InfiniteScrollPageIdentifier;
reset: boolean;

@@ -302,2 +303,3 @@ };

autoStart?: boolean;
mode?: 'overlap' | 'cancel' | 'rest';
};

@@ -512,8 +514,8 @@ export type VisitHelperOptions<T extends RequestPayload = RequestPayload> = Omit<VisitOptions<T>, 'method' | 'data'>;

onBeforeNextRequest: () => void;
onCompletePreviousRequest: () => void;
onCompleteNextRequest: () => void;
onCompletePreviousRequest: (details: InfiniteScrollOnCompleteDetails) => void;
onCompleteNextRequest: (details: InfiniteScrollOnCompleteDetails) => void;
onDataReset?: () => void;
}
export interface UseInfiniteScrollDataManager {
getLastLoadedPage: () => number | string | null;
getLastLoadedPage: () => InfiniteScrollPageIdentifier;
getPageName: () => string;

@@ -534,3 +536,3 @@ getRequestCount: () => number;

processManuallyAddedElements: () => void;
processServerLoadedElements: (loadedPage: string | number | null) => void;
processServerLoadedElements: (loadedPage: InfiniteScrollPageIdentifier) => void;
}

@@ -537,0 +539,0 @@ export interface UseInfiniteScrollProps {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display