@inertiajs/core 2.0.12 → 2.0.14
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/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/types/response.d.ts +1 -0
- package/types/router.d.ts +2 -1
- package/types/types.d.ts +1 -0
package/package.json
CHANGED
package/types/response.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare class Response {
|
|
|
26
26
|
protected shouldSetPage(pageResponse: Page): boolean;
|
|
27
27
|
protected pageUrl(pageResponse: Page): string;
|
|
28
28
|
protected mergeProps(pageResponse: Page): void;
|
|
29
|
+
protected mergeOrMatchItems(target: any[], source: any[], currentKey: string, matchPropsOn: string[]): any[];
|
|
29
30
|
protected setRememberedState(pageResponse: Page): Promise<void>;
|
|
30
31
|
protected getScopedErrors(errors: Errors & ErrorBag): Errors;
|
|
31
32
|
}
|
package/types/router.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestStream } from './requestStream';
|
|
2
|
-
import { ActiveVisit, ClientSideVisitOptions, GlobalEvent, GlobalEventNames, GlobalEventResult, InFlightPrefetch, Page, PendingVisit, PendingVisitOptions, PollOptions, PrefetchedResponse, PrefetchOptions, ReloadOptions, RequestPayload, RouterInitParams, Visit, VisitCallbacks, VisitHelperOptions, VisitOptions } from './types';
|
|
2
|
+
import { ActiveVisit, ClientSideVisitOptions, Component, GlobalEvent, GlobalEventNames, GlobalEventResult, InFlightPrefetch, Page, PendingVisit, PendingVisitOptions, PollOptions, PrefetchedResponse, PrefetchOptions, ReloadOptions, RequestPayload, RouterInitParams, Visit, VisitCallbacks, VisitHelperOptions, VisitOptions } from './types';
|
|
3
3
|
export declare class Router {
|
|
4
4
|
protected syncRequestStream: RequestStream;
|
|
5
5
|
protected asyncRequestStream: RequestStream;
|
|
@@ -27,6 +27,7 @@ export declare class Router {
|
|
|
27
27
|
prefetch(href: string | URL, options: Partial<Visit<RequestPayload> & VisitCallbacks> | undefined, { cacheFor }: PrefetchOptions): void;
|
|
28
28
|
clearHistory(): void;
|
|
29
29
|
decryptHistory(): Promise<Page>;
|
|
30
|
+
resolveComponent(component: string): Promise<Component>;
|
|
30
31
|
replace(params: ClientSideVisitOptions): void;
|
|
31
32
|
push(params: ClientSideVisitOptions): void;
|
|
32
33
|
protected clientVisit(params: ClientSideVisitOptions, { replace }?: {
|
package/types/types.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export interface Page<SharedProps extends PageProps = PageProps> {
|
|
|
30
30
|
deferredProps?: Record<string, VisitOptions['only']>;
|
|
31
31
|
mergeProps?: string[];
|
|
32
32
|
deepMergeProps?: string[];
|
|
33
|
+
matchPropsOn?: string[];
|
|
33
34
|
/** @internal */
|
|
34
35
|
rememberedState: Record<string, unknown>;
|
|
35
36
|
}
|