svelte-meta-tags 4.3.0 → 4.4.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/types.d.ts +14 -2
- package/package.json +6 -6
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { Thing, WithContext } from 'schema-dts';
|
|
2
2
|
|
|
3
|
+
type WithInputOutputProperties<T> = T & {
|
|
4
|
+
[K in `${string}${'input' | 'output'}`]?: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
type JsonLdSchema = Record<string, unknown> & {
|
|
8
|
+
'@type'?: string | readonly string[];
|
|
9
|
+
'@context'?: string | Record<string, unknown> | readonly (string | Record<string, unknown>)[];
|
|
10
|
+
'@id'?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
type FlexibleSchema = JsonLdSchema | (Thing & Record<string, unknown>) | (WithContext<Thing> & Record<string, unknown>);
|
|
14
|
+
|
|
3
15
|
export interface MobileAlternate {
|
|
4
16
|
media: string;
|
|
5
17
|
href: string;
|
|
@@ -212,10 +224,10 @@ export interface MetaTagsProps {
|
|
|
212
224
|
}
|
|
213
225
|
|
|
214
226
|
interface GraphWrappedThing {
|
|
215
|
-
'@graph':
|
|
227
|
+
'@graph': WithInputOutputProperties<FlexibleSchema>[];
|
|
216
228
|
}
|
|
217
229
|
|
|
218
230
|
export interface JsonLdProps {
|
|
219
231
|
output?: 'head' | 'body';
|
|
220
|
-
schema?:
|
|
232
|
+
schema?: WithInputOutputProperties<FlexibleSchema> | WithInputOutputProperties<FlexibleSchema>[] | GraphWrappedThing;
|
|
221
233
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-meta-tags",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Svelte Meta Tags provides components designed to help you manage SEO for Svelte projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"schema-dts": "^1.1.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@sveltejs/adapter-auto": "^6.0.
|
|
26
|
-
"@sveltejs/kit": "^2.
|
|
25
|
+
"@sveltejs/adapter-auto": "^6.0.1",
|
|
26
|
+
"@sveltejs/kit": "^2.21.1",
|
|
27
27
|
"@sveltejs/package": "^2.3.11",
|
|
28
28
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
29
29
|
"publint": "^0.3.12",
|
|
30
|
-
"svelte": "^5.
|
|
31
|
-
"svelte-check": "^4.1
|
|
30
|
+
"svelte": "^5.33.14",
|
|
31
|
+
"svelte-check": "^4.2.1",
|
|
32
32
|
"typescript": "^5.8.3",
|
|
33
33
|
"vite": "^6.3.5",
|
|
34
|
-
"vitest": "^3.
|
|
34
|
+
"vitest": "^3.2.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|