@inertiajs/core 2.0.11 → 2.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inertiajs/core",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "license": "MIT",
5
5
  "description": "A framework for creating server-driven single page apps.",
6
6
  "contributors": [
@@ -17,6 +17,7 @@ declare class PrefetchedRequests {
17
17
  protected removeSingleUseItems(params: ActiveVisit): void;
18
18
  findCached(params: ActiveVisit): PrefetchedResponse | null;
19
19
  findInFlight(params: ActiveVisit): InFlightPrefetch | null;
20
+ protected withoutPurposePrefetchHeader(params: ActiveVisit): ActiveVisit;
20
21
  protected paramsAreEqual(params1: ActiveVisit, params2: ActiveVisit): boolean;
21
22
  }
22
23
  export declare const prefetchedRequests: PrefetchedRequests;
@@ -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
  }