@verbaly/svelte 0.15.0 → 0.17.0
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/Trans.svelte +2 -5
- package/package.json +3 -3
package/dist/Trans.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onDestroy } from 'svelte';
|
|
3
|
-
import { parseTags, RICH_TAGS
|
|
3
|
+
import { normalizeLink, parseTags, RICH_TAGS } from 'verbaly';
|
|
4
4
|
import { useVerbaly } from '@verbaly/svelte';
|
|
5
5
|
import TransNodes from './TransNodes.svelte';
|
|
6
6
|
|
|
@@ -19,10 +19,7 @@
|
|
|
19
19
|
// normalize + sanitize hrefs once (never from messages)
|
|
20
20
|
$: linkDefs = links
|
|
21
21
|
? Object.fromEntries(
|
|
22
|
-
Object.entries(links).map(([name, link]) =>
|
|
23
|
-
const def = typeof link === 'string' ? { href: link } : link;
|
|
24
|
-
return [name, { ...def, href: safeHref(def.href) }];
|
|
25
|
-
}),
|
|
22
|
+
Object.entries(links).map(([name, link]) => [name, normalizeLink(link)]),
|
|
26
23
|
)
|
|
27
24
|
: undefined;
|
|
28
25
|
// version keeps this reactive to locale/catalog changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Svelte bindings for Verbaly — stores over the reactive core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"svelte": "^4.0.0 || ^5.0.0",
|
|
48
|
-
"verbaly": "^0.
|
|
48
|
+
"verbaly": "^0.17.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@sveltejs/vite-plugin-svelte": "^7.2.0",
|
|
52
52
|
"happy-dom": "^20.10.6",
|
|
53
53
|
"svelte": "^5.56.4",
|
|
54
|
-
"verbaly": "0.
|
|
54
|
+
"verbaly": "0.17.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "tsdown && node scripts/copy-svelte.mjs",
|