svelte-meta-tags 3.0.0 → 3.0.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/dist/MetaTags.svelte +20 -5
- package/dist/types.d.ts +19 -5
- package/package.json +2 -2
package/dist/MetaTags.svelte
CHANGED
|
@@ -221,15 +221,18 @@ $:
|
|
|
221
221
|
{#if image.height}
|
|
222
222
|
<meta property="og:image:height" content={image.height.toString()} />
|
|
223
223
|
{/if}
|
|
224
|
+
{#if image.secureUrl}
|
|
225
|
+
<meta property="og:image:secure_url" content={image.secureUrl.toString()} />
|
|
226
|
+
{/if}
|
|
227
|
+
{#if image.type}
|
|
228
|
+
<meta property="og:image:type" content={image.type.toString()} />
|
|
229
|
+
{/if}
|
|
224
230
|
{/each}
|
|
225
231
|
{/if}
|
|
226
232
|
|
|
227
233
|
{#if openGraph.videos && openGraph.videos.length}
|
|
228
234
|
{#each openGraph.videos as video}
|
|
229
235
|
<meta property="og:video" content={video.url} />
|
|
230
|
-
{#if video.alt}
|
|
231
|
-
<meta property="og:video:alt" content={video.alt} />
|
|
232
|
-
{/if}
|
|
233
236
|
{#if video.width}
|
|
234
237
|
<meta property="og:video:width" content={video.width.toString()} />
|
|
235
238
|
{/if}
|
|
@@ -245,12 +248,24 @@ $:
|
|
|
245
248
|
{/each}
|
|
246
249
|
{/if}
|
|
247
250
|
|
|
251
|
+
{#if openGraph.audio && openGraph.audio.length}
|
|
252
|
+
{#each openGraph.audio as audio}
|
|
253
|
+
<meta property="og:audio" content={audio.url} />
|
|
254
|
+
{#if audio.secureUrl}
|
|
255
|
+
<meta property="og:audio:secure_url" content={audio.secureUrl.toString()} />
|
|
256
|
+
{/if}
|
|
257
|
+
{#if audio.type}
|
|
258
|
+
<meta property="og:audio:type" content={audio.type.toString()} />
|
|
259
|
+
{/if}
|
|
260
|
+
{/each}
|
|
261
|
+
{/if}
|
|
262
|
+
|
|
248
263
|
{#if openGraph.locale}
|
|
249
264
|
<meta property="og:locale" content={openGraph.locale} />
|
|
250
265
|
{/if}
|
|
251
266
|
|
|
252
|
-
{#if openGraph.
|
|
253
|
-
<meta property="og:site_name" content={openGraph.
|
|
267
|
+
{#if openGraph.siteName}
|
|
268
|
+
<meta property="og:site_name" content={openGraph.siteName} />
|
|
254
269
|
{/if}
|
|
255
270
|
{/if}
|
|
256
271
|
|
package/dist/types.d.ts
CHANGED
|
@@ -40,24 +40,38 @@ export interface OpenGraph {
|
|
|
40
40
|
type?: string;
|
|
41
41
|
title?: string;
|
|
42
42
|
description?: string;
|
|
43
|
-
images?: ReadonlyArray<
|
|
44
|
-
videos?: ReadonlyArray<
|
|
45
|
-
audio?: ReadonlyArray<
|
|
43
|
+
images?: ReadonlyArray<OpenGraphImage>;
|
|
44
|
+
videos?: ReadonlyArray<OpenGraphVideos>;
|
|
45
|
+
audio?: ReadonlyArray<OpenGraphAudio>;
|
|
46
46
|
locale?: string;
|
|
47
|
-
|
|
47
|
+
siteName?: string;
|
|
48
48
|
profile?: OpenGraphProfile;
|
|
49
49
|
book?: OpenGraphBook;
|
|
50
50
|
article?: OpenGraphArticle;
|
|
51
51
|
video?: OpenGraphVideo;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
interface
|
|
54
|
+
interface OpenGraphImage {
|
|
55
55
|
url: string;
|
|
56
|
+
secureUrl?: string;
|
|
57
|
+
type?: string;
|
|
56
58
|
width?: number;
|
|
57
59
|
height?: number;
|
|
58
60
|
alt?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface OpenGraphVideos {
|
|
64
|
+
url: string;
|
|
65
|
+
secureUrl?: string;
|
|
59
66
|
type?: string;
|
|
67
|
+
width?: number;
|
|
68
|
+
height?: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface OpenGraphAudio {
|
|
72
|
+
url: string;
|
|
60
73
|
secureUrl?: string;
|
|
74
|
+
type?: string;
|
|
61
75
|
}
|
|
62
76
|
|
|
63
77
|
interface OpenGraphProfile {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-meta-tags",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@sveltejs/adapter-auto": "^2.1.0",
|
|
25
25
|
"@sveltejs/kit": "^1.22.6",
|
|
26
26
|
"@sveltejs/package": "^2.2.1",
|
|
27
|
-
"publint": "^0.2.
|
|
27
|
+
"publint": "^0.2.2",
|
|
28
28
|
"svelte": "^4.2.0",
|
|
29
29
|
"svelte-check": "^3.5.0",
|
|
30
30
|
"tslib": "^2.6.2",
|