svelte-meta-tags 4.3.0 → 4.4.1
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/README.md +7 -0
- package/dist/types.d.ts +23 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
<img src="https://raw.githubusercontent.com/oekazuma/svelte-meta-tags/main/.github/logo.svg" alt="svelte-meta-tags" width="512" />
|
|
2
2
|
|
|
3
3
|
[](https://github.com/oekazuma/svelte-meta-tags/actions/workflows/ci.yml)
|
|
4
|
+
[](https://dependents.info/oekazuma/svelte-meta-tags)
|
|
4
5
|
[](https://www.npmjs.com/package/svelte-meta-tags)
|
|
5
6
|
[](https://www.npmjs.com/package/svelte-meta-tags)
|
|
6
7
|
[](https://opensource.org/licenses/MIT)
|
|
7
8
|
[](https://deepwiki.com/oekazuma/svelte-meta-tags)
|
|
8
9
|
|
|
10
|
+
## Used by
|
|
11
|
+
|
|
12
|
+
<a href="https://github.com/oekazuma/svelte-meta-tags/network/dependents">
|
|
13
|
+
<img src="https://dependents.info/oekazuma/svelte-meta-tags/image.svg" />
|
|
14
|
+
</a>
|
|
15
|
+
|
|
9
16
|
## Links
|
|
10
17
|
|
|
11
18
|
- [Documentation](https://oekazuma.github.io/svelte-meta-tags/) (Support for English and Japanese)
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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 =
|
|
14
|
+
| JsonLdSchema
|
|
15
|
+
| (Thing & Record<string, unknown>)
|
|
16
|
+
| (WithContext<Thing> & Record<string, unknown>)
|
|
17
|
+
| WithContext<Thing>;
|
|
18
|
+
|
|
3
19
|
export interface MobileAlternate {
|
|
4
20
|
media: string;
|
|
5
21
|
href: string;
|
|
@@ -212,10 +228,15 @@ export interface MetaTagsProps {
|
|
|
212
228
|
}
|
|
213
229
|
|
|
214
230
|
interface GraphWrappedThing {
|
|
215
|
-
'@graph':
|
|
231
|
+
'@graph': WithInputOutputProperties<FlexibleSchema>[];
|
|
216
232
|
}
|
|
217
233
|
|
|
218
234
|
export interface JsonLdProps {
|
|
219
235
|
output?: 'head' | 'body';
|
|
220
|
-
schema?:
|
|
236
|
+
schema?:
|
|
237
|
+
| FlexibleSchema
|
|
238
|
+
| WithInputOutputProperties<FlexibleSchema>
|
|
239
|
+
| FlexibleSchema[]
|
|
240
|
+
| WithInputOutputProperties<FlexibleSchema>[]
|
|
241
|
+
| GraphWrappedThing;
|
|
221
242
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-meta-tags",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.1",
|
|
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.
|
|
26
|
-
"@sveltejs/kit": "^2.
|
|
27
|
-
"@sveltejs/package": "^2.
|
|
28
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
25
|
+
"@sveltejs/adapter-auto": "^6.1.0",
|
|
26
|
+
"@sveltejs/kit": "^2.37.0",
|
|
27
|
+
"@sveltejs/package": "^2.5.0",
|
|
28
|
+
"@sveltejs/vite-plugin-svelte": "^6.1.3",
|
|
29
29
|
"publint": "^0.3.12",
|
|
30
|
-
"svelte": "^5.
|
|
31
|
-
"svelte-check": "^4.1
|
|
32
|
-
"typescript": "^5.
|
|
33
|
-
"vite": "^
|
|
34
|
-
"vitest": "^3.
|
|
30
|
+
"svelte": "^5.38.6",
|
|
31
|
+
"svelte-check": "^4.3.1",
|
|
32
|
+
"typescript": "^5.9.2",
|
|
33
|
+
"vite": "^7.1.3",
|
|
34
|
+
"vitest": "^3.2.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|