inertiax-svelte 5.0.26 → 5.0.28
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.
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
props,
|
|
14
14
|
url,
|
|
15
15
|
history = true,
|
|
16
|
-
makeRequest = true,
|
|
17
16
|
onclick = () => {},
|
|
18
17
|
|
|
18
|
+
makeRequest = true,
|
|
19
19
|
children,
|
|
20
20
|
version
|
|
21
21
|
} = $props()
|
|
@@ -107,6 +107,8 @@
|
|
|
107
107
|
const el = event.target.closest('[href]')
|
|
108
108
|
|
|
109
109
|
if (!el) return
|
|
110
|
+
if (el.getAttribute('target')) return
|
|
111
|
+
if (el.getAttribute('download')) return
|
|
110
112
|
|
|
111
113
|
const href = el.getAttribute('href')
|
|
112
114
|
|
|
@@ -123,7 +125,7 @@
|
|
|
123
125
|
|
|
124
126
|
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
|
125
127
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
126
|
-
<div style="display: contents" class=
|
|
128
|
+
<div style="display: contents" class={name} onclick={bothOnclick} bind:this={frame}>
|
|
127
129
|
{#if resolvedProps}
|
|
128
130
|
<Render {...resolvedProps} />
|
|
129
131
|
{:else}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inertiax-svelte",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.28",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Svelte adapter for Inertia X",
|
|
6
6
|
"contributors": [
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"@sveltejs/adapter-auto": "^3.2.0",
|
|
53
53
|
"@sveltejs/kit": "^2.5.26",
|
|
54
54
|
"@sveltejs/package": "^2.3.5",
|
|
55
|
-
"@sveltejs/vite-plugin-svelte": "^4.0.0
|
|
55
|
+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
56
56
|
"@types/html-escape": "^2.0.2",
|
|
57
57
|
"@types/lodash": "^4.17.7",
|
|
58
58
|
"axios": "^1.7.6",
|
|
59
59
|
"publint": "^0.2.10",
|
|
60
|
-
"svelte": "^5.0.0
|
|
60
|
+
"svelte": "^5.0.0",
|
|
61
61
|
"svelte-check": "^4.0.0",
|
|
62
62
|
"tslib": "^2.7.0",
|
|
63
63
|
"typescript": "^5.5.4",
|