@inertiajs/svelte 2.2.13 → 2.2.15
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.
|
@@ -16,6 +16,7 @@ export let async = false;
|
|
|
16
16
|
export let prefetch = false;
|
|
17
17
|
export let cacheFor = 0;
|
|
18
18
|
export let cacheTags = [];
|
|
19
|
+
export let viewTransition = false;
|
|
19
20
|
$: _method = isUrlMethodPair(href) ? href.method : method;
|
|
20
21
|
$: _href = isUrlMethodPair(href) ? href.url : href;
|
|
21
22
|
$: asProp = _method !== "get" ? "button" : as.toLowerCase();
|
|
@@ -44,6 +45,7 @@ $: elProps = {
|
|
|
44
45
|
prefetch,
|
|
45
46
|
cacheFor,
|
|
46
47
|
cacheTags,
|
|
48
|
+
viewTransition,
|
|
47
49
|
}}
|
|
48
50
|
{...$$restProps}
|
|
49
51
|
{...elProps}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { CacheForOption, FormDataConvertible, LinkPrefetchOption, Method, PreserveStateOption, UrlMethodPair } from '@inertiajs/core';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
6
|
-
href?:
|
|
5
|
+
href?: string | import("@inertiajs/core").UrlMethodPair | undefined;
|
|
7
6
|
as?: keyof HTMLElementTagNameMap | undefined;
|
|
8
|
-
data?:
|
|
9
|
-
method?: Method | undefined;
|
|
7
|
+
data?: import("@inertiajs/core").RequestPayload | undefined;
|
|
8
|
+
method?: import("@inertiajs/core").Method | undefined;
|
|
10
9
|
replace?: boolean | undefined;
|
|
11
|
-
preserveScroll?: PreserveStateOption | undefined;
|
|
12
|
-
preserveState?: (PreserveStateOption | null
|
|
10
|
+
preserveScroll?: import("@inertiajs/core").PreserveStateOption | undefined;
|
|
11
|
+
preserveState?: import("@inertiajs/core").PreserveStateOption | null | undefined;
|
|
13
12
|
preserveUrl?: boolean | undefined;
|
|
14
13
|
only?: string[] | undefined;
|
|
15
14
|
except?: string[] | undefined;
|
|
16
15
|
headers?: Record<string, string> | undefined;
|
|
17
|
-
queryStringArrayFormat?: "
|
|
16
|
+
queryStringArrayFormat?: "indices" | "brackets" | undefined;
|
|
18
17
|
async?: boolean | undefined;
|
|
19
|
-
prefetch?:
|
|
20
|
-
cacheFor?: (CacheForOption | CacheForOption[]
|
|
18
|
+
prefetch?: boolean | import("@inertiajs/core").LinkPrefetchOption | import("@inertiajs/core").LinkPrefetchOption[] | undefined;
|
|
19
|
+
cacheFor?: import("@inertiajs/core").CacheForOption | import("@inertiajs/core").CacheForOption[] | undefined;
|
|
21
20
|
cacheTags?: string | string[] | undefined;
|
|
21
|
+
viewTransition?: boolean | ((viewTransition: ViewTransition) => void) | undefined;
|
|
22
22
|
};
|
|
23
23
|
events: {
|
|
24
24
|
focus: FocusEvent;
|
package/dist/link.js
CHANGED
|
@@ -20,7 +20,7 @@ function link(node, initialParams = {}) {
|
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
22
|
const prefetchHoverEvents = {
|
|
23
|
-
mouseenter: () => (hoverTimeout = setTimeout(() => prefetch(),
|
|
23
|
+
mouseenter: () => (hoverTimeout = setTimeout(() => prefetch(), config.get('prefetch.hoverDelay'))),
|
|
24
24
|
mouseleave: () => clearTimeout(hoverTimeout),
|
|
25
25
|
click: regularEvents.click,
|
|
26
26
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inertiajs/svelte",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Svelte adapter for Inertia.js",
|
|
6
6
|
"contributors": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@types/lodash-es": "^4.17.12",
|
|
56
56
|
"lodash-es": "^4.17.21",
|
|
57
|
-
"@inertiajs/core": "2.2.
|
|
57
|
+
"@inertiajs/core": "2.2.15"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "pnpm package && svelte-check --tsconfig ./tsconfig.json && publint",
|