svelte-meta-tags 2.6.2 → 2.6.4
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/CHANGELOG.md +10 -2
- package/JsonLd.svelte +1 -1
- package/MetaTags.svelte +1 -1
- package/README.md +106 -110
- package/index.d.ts +1 -1
- package/package.json +21 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
## [2.6.4](https://github.com/oekazuma/svelte-meta-tags/compare/v2.6.3...v2.6.4) (2022-11-16)
|
|
2
|
+
|
|
3
|
+
- add Svelte to peerDependencies([2d99894](https://github.com/oekazuma/svelte-meta-tags/commit/2d9989454e5ed51d9f4d0d9e9300ba933d0c0ffa))
|
|
4
|
+
|
|
5
|
+
## [2.6.3](https://github.com/oekazuma/svelte-meta-tags/compare/v2.6.2...v2.6.3) (2022-08-31)
|
|
6
|
+
|
|
7
|
+
- add schema-dts to dependencies([9824e38](https://github.com/oekazuma/svelte-meta-tags/commit/9824e388728e37009aa06f56642ec4a2b9520921))
|
|
8
|
+
|
|
9
|
+
## [2.6.2](https://github.com/oekazuma/svelte-meta-tags/compare/v2.6.1...v2.6.2) (2022-08-11)
|
|
2
10
|
|
|
3
11
|
- trim production dependencies([2008183](https://github.com/oekazuma/svelte-meta-tags/commit/2008183b0a712cc6288e188cabdb14c85f93b0ee))
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
## [2.6.1](https://github.com/oekazuma/svelte-meta-tags/compare/v2.6.0...v2.6.1) (2022-05-27)
|
|
6
14
|
|
|
7
15
|
- clean up JSON-LD ([16d107c](https://github.com/oekazuma/svelte-meta-tags/commit/16d107c09546ffd6b2f8312a6851d46bd0da6ae1))
|
|
8
16
|
|
package/JsonLd.svelte
CHANGED
package/MetaTags.svelte
CHANGED
package/README.md
CHANGED
|
@@ -11,10 +11,6 @@ Svelte Meta Tags is a plugin that makes managing your SEO easier in Svelte proje
|
|
|
11
11
|
|
|
12
12
|
This library is inspired by [next-seo](https://github.com/garmeeh/next-seo)
|
|
13
13
|
|
|
14
|
-
**Would you like to support this project?**
|
|
15
|
-
|
|
16
|
-
<a href="https://www.buymeacoffee.com/oekazuma" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-orange.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|
17
|
-
|
|
18
14
|
**Table of Contents**
|
|
19
15
|
|
|
20
16
|
- [Installing](#-installing)
|
|
@@ -98,18 +94,18 @@ pnpm add -D svelte-meta-tags
|
|
|
98
94
|
url: 'https://www.example.ie/og-image-01.jpg',
|
|
99
95
|
width: 800,
|
|
100
96
|
height: 600,
|
|
101
|
-
alt: 'Og Image Alt'
|
|
97
|
+
alt: 'Og Image Alt'
|
|
102
98
|
},
|
|
103
99
|
{
|
|
104
100
|
url: 'https://www.example.ie/og-image-02.jpg',
|
|
105
101
|
width: 900,
|
|
106
102
|
height: 800,
|
|
107
|
-
alt: 'Og Image Alt Second'
|
|
103
|
+
alt: 'Og Image Alt Second'
|
|
108
104
|
},
|
|
109
105
|
{ url: 'https://www.example.ie/og-image-03.jpg' },
|
|
110
|
-
{ url: 'https://www.example.ie/og-image-04.jpg' }
|
|
106
|
+
{ url: 'https://www.example.ie/og-image-04.jpg' }
|
|
111
107
|
],
|
|
112
|
-
site_name: 'SiteName'
|
|
108
|
+
site_name: 'SiteName'
|
|
113
109
|
}}
|
|
114
110
|
twitter={{
|
|
115
111
|
handle: '@handle',
|
|
@@ -118,60 +114,60 @@ pnpm add -D svelte-meta-tags
|
|
|
118
114
|
title: 'Using More of Config',
|
|
119
115
|
description: 'This example uses more of the available config options.',
|
|
120
116
|
image: 'https://www.example.ie/twitter-image.jpg',
|
|
121
|
-
imageAlt: 'Twitter image alt'
|
|
117
|
+
imageAlt: 'Twitter image alt'
|
|
122
118
|
}}
|
|
123
119
|
facebook={{
|
|
124
|
-
appId: '1234567890'
|
|
120
|
+
appId: '1234567890'
|
|
125
121
|
}}
|
|
126
122
|
/>
|
|
127
123
|
```
|
|
128
124
|
|
|
129
125
|
### MetaTags Properties
|
|
130
126
|
|
|
131
|
-
| Property | Type | Description
|
|
132
|
-
| ---------------------------------- | ----------------------- |
|
|
133
|
-
| `title` | string | Sets the page meta title.
|
|
134
|
-
| `titleTemplate` | string | Allows you to set default title template that will be added to your title [More Info](#title-template)
|
|
135
|
-
| `noindex` | boolean (default false) | Sets whether page should be indexed or not
|
|
136
|
-
| `nofollow` | boolean (default false) | Sets whether page should be followed or not
|
|
137
|
-
| `additionRobotsProps` | Object | Set the more meta information for the `X-Robots-Tag` [More Info](#robotsprops)
|
|
138
|
-
| `description` | string | Sets the page meta description.
|
|
139
|
-
| `canonical` | string | Set the page canonical url.
|
|
140
|
-
| `mobileAlternate.media` | string | Set what screen size the mobile website should be served from
|
|
141
|
-
| `mobileAlternate.href` | string | Set the mobile page alternate url
|
|
142
|
-
| `languageAlternates` | array | Set the language of the alternate urls. Expects array of objects with the shape: `{ hrefLang: string, href: string }`
|
|
143
|
-
| `additionalMetaTags` | array | Allows you to add a meta tag that is not documented here. [More Info](#additional-meta-tags)
|
|
144
|
-
| `additionalLinkTags` | array | Allows you to add a link tag that is not documented here. [More Info](#additional-link-tags)
|
|
145
|
-
| `twitter.cardType` | string | The card type, which will be one of `summary`, `summary_large_image`, `app`, or `player`
|
|
146
|
-
| `twitter.site` | string | @username for the website used in the card footer .
|
|
147
|
-
| `twitter.handle` | string | @username for the content creator / author (outputs as `twitter:creator`)
|
|
148
|
-
| `twitter.title` | string | The concise title for the related content
|
|
149
|
-
| `twitter.description` | string | The description that concisely summarizes the content as appropriate for presentation within a Tweet. You should not re-use the title as the description or use this field to describe the general services provided by the website
|
|
150
|
-
| `twitter.image` | string | The URL to a unique image representing the content of the page. Images for this Card support an aspect ratio of
|
|
151
|
-
| `twitter.imageAlt` | string | The text description of the image conveying the essential nature of an image to users who are visually impaired. Maximum 420 characters.
|
|
152
|
-
| `facebook.appId` | string | Used for Facebook Insights, you must add a facebook app ID to your page to for it
|
|
153
|
-
| `openGraph.url` | string | The canonical URL of your object that will be used as its permanent ID in the graph.
|
|
154
|
-
| `openGraph.type` | string | The type of your object. Depending on the type you specify, other properties may also be required [More Info](#open-graph)
|
|
155
|
-
| `openGraph.title` | string | The open graph title, this can be different than your meta title.
|
|
156
|
-
| `openGraph.description` | string | The open graph description, this can be different than your meta description.
|
|
157
|
-
| `openGraph.images` | array | An array of images to be used as a preview. If multiple supplied you can choose one when sharing. [See Examples](#open-graph-examples)
|
|
158
|
-
| `openGraph.videos` | array | An array of videos (object)
|
|
159
|
-
| `openGraph.locale` | string | The locale the open graph tags are marked up in.
|
|
160
|
-
| `openGraph.site_name` | string | If your object is part of a larger web site, the name which should be displayed for the overall site.
|
|
161
|
-
| `openGraph.profile.firstName` | string | Person's first name.
|
|
162
|
-
| `openGraph.profile.lastName` | string | Person's last name.
|
|
163
|
-
| `openGraph.profile.username` | string | Person's username.
|
|
164
|
-
| `openGraph.profile.gender` | string | Person's gender.
|
|
165
|
-
| `openGraph.book.authors` | string[] | Writers of the article. [See Examples](#open-graph-examples)
|
|
166
|
-
| `openGraph.book.isbn` | string | The [ISBN](https://en.wikipedia.org/wiki/International_Standard_Book_Number)
|
|
167
|
-
| `openGraph.book.releaseDate` | datetime | The date the book was released.
|
|
168
|
-
| `openGraph.book.tags` | string[] | Tag words associated with this book.
|
|
169
|
-
| `openGraph.article.publishedTime` | datetime | When the article was first published. [See Examples](#open-graph-examples)
|
|
170
|
-
| `openGraph.article.modifiedTime` | datetime | When the article was last changed.
|
|
171
|
-
| `openGraph.article.expirationTime` | datetime | When the article is out of date after.
|
|
172
|
-
| `openGraph.article.authors` | string[] | Writers of the article.
|
|
173
|
-
| `openGraph.article.section` | string | A high-level section name. E.g. Technology
|
|
174
|
-
| `openGraph.article.tags` | string[] | Tag words associated with this article.
|
|
127
|
+
| Property | Type | Description |
|
|
128
|
+
| ---------------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
129
|
+
| `title` | string | Sets the page meta title. |
|
|
130
|
+
| `titleTemplate` | string | Allows you to set default title template that will be added to your title [More Info](#title-template) |
|
|
131
|
+
| `noindex` | boolean (default false) | Sets whether page should be indexed or not |
|
|
132
|
+
| `nofollow` | boolean (default false) | Sets whether page should be followed or not |
|
|
133
|
+
| `additionRobotsProps` | Object | Set the more meta information for the `X-Robots-Tag` [More Info](#robotsprops) |
|
|
134
|
+
| `description` | string | Sets the page meta description. |
|
|
135
|
+
| `canonical` | string | Set the page canonical url. |
|
|
136
|
+
| `mobileAlternate.media` | string | Set what screen size the mobile website should be served from |
|
|
137
|
+
| `mobileAlternate.href` | string | Set the mobile page alternate url |
|
|
138
|
+
| `languageAlternates` | array | Set the language of the alternate urls. Expects array of objects with the shape: `{ hrefLang: string, href: string }` |
|
|
139
|
+
| `additionalMetaTags` | array | Allows you to add a meta tag that is not documented here. [More Info](#additional-meta-tags) |
|
|
140
|
+
| `additionalLinkTags` | array | Allows you to add a link tag that is not documented here. [More Info](#additional-link-tags) |
|
|
141
|
+
| `twitter.cardType` | string | The card type, which will be one of `summary`, `summary_large_image`, `app`, or `player` |
|
|
142
|
+
| `twitter.site` | string | @username for the website used in the card footer . |
|
|
143
|
+
| `twitter.handle` | string | @username for the content creator / author (outputs as `twitter:creator`) |
|
|
144
|
+
| `twitter.title` | string | The concise title for the related content |
|
|
145
|
+
| `twitter.description` | string | The description that concisely summarizes the content as appropriate for presentation within a Tweet. You should not re-use the title as the description or use this field to describe the general services provided by the website |
|
|
146
|
+
| `twitter.image` | string | The URL to a unique image representing the content of the page. You should not use a generic image such as your website logo, author photo, or other image that spans multiple pages. Images for this Card support an aspect ratio of 1:1 with minimum dimensions of 144x144 or maximum of 4096x4096 pixels. Images must be less than 5MB in size. The image will be cropped to a square on all platforms. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported |
|
|
147
|
+
| `twitter.imageAlt` | string | The text description of the image conveying the essential nature of an image to users who are visually impaired. Maximum 420 characters. |
|
|
148
|
+
| `facebook.appId` | string | Used for Facebook Insights, you must add a facebook app ID to your page to for it |
|
|
149
|
+
| `openGraph.url` | string | The canonical URL of your object that will be used as its permanent ID in the graph. |
|
|
150
|
+
| `openGraph.type` | string | The type of your object. Depending on the type you specify, other properties may also be required [More Info](#open-graph) |
|
|
151
|
+
| `openGraph.title` | string | The open graph title, this can be different than your meta title. |
|
|
152
|
+
| `openGraph.description` | string | The open graph description, this can be different than your meta description. |
|
|
153
|
+
| `openGraph.images` | array | An array of images to be used as a preview. If multiple supplied you can choose one when sharing. [See Examples](#open-graph-examples) |
|
|
154
|
+
| `openGraph.videos` | array | An array of videos (object) |
|
|
155
|
+
| `openGraph.locale` | string | The locale the open graph tags are marked up in. |
|
|
156
|
+
| `openGraph.site_name` | string | If your object is part of a larger web site, the name which should be displayed for the overall site. |
|
|
157
|
+
| `openGraph.profile.firstName` | string | Person's first name. |
|
|
158
|
+
| `openGraph.profile.lastName` | string | Person's last name. |
|
|
159
|
+
| `openGraph.profile.username` | string | Person's username. |
|
|
160
|
+
| `openGraph.profile.gender` | string | Person's gender. |
|
|
161
|
+
| `openGraph.book.authors` | string[] | Writers of the article. [See Examples](#open-graph-examples) |
|
|
162
|
+
| `openGraph.book.isbn` | string | The [ISBN](https://en.wikipedia.org/wiki/International_Standard_Book_Number) |
|
|
163
|
+
| `openGraph.book.releaseDate` | datetime | The date the book was released. |
|
|
164
|
+
| `openGraph.book.tags` | string[] | Tag words associated with this book. |
|
|
165
|
+
| `openGraph.article.publishedTime` | datetime | When the article was first published. [See Examples](#open-graph-examples) |
|
|
166
|
+
| `openGraph.article.modifiedTime` | datetime | When the article was last changed. |
|
|
167
|
+
| `openGraph.article.expirationTime` | datetime | When the article is out of date after. |
|
|
168
|
+
| `openGraph.article.authors` | string[] | Writers of the article. |
|
|
169
|
+
| `openGraph.article.section` | string | A high-level section name. E.g. Technology |
|
|
170
|
+
| `openGraph.article.tags` | string[] | Tag words associated with this article. |
|
|
175
171
|
|
|
176
172
|
#### Title Template
|
|
177
173
|
|
|
@@ -235,7 +231,7 @@ Example:
|
|
|
235
231
|
maxVideoPreview: -1,
|
|
236
232
|
notranslate: true,
|
|
237
233
|
noimageindex: true,
|
|
238
|
-
unavailableAfter: '25 Jun 2010 15:00:00 PST'
|
|
234
|
+
unavailableAfter: '25 Jun 2010 15:00:00 PST'
|
|
239
235
|
}}
|
|
240
236
|
/>
|
|
241
237
|
```
|
|
@@ -368,7 +364,7 @@ additionalLinkTags={[
|
|
|
368
364
|
},
|
|
369
365
|
{
|
|
370
366
|
rel: 'manifest',
|
|
371
|
-
href: '/manifest.json'
|
|
367
|
+
href: 'https://www.test.ie/manifest.json'
|
|
372
368
|
}
|
|
373
369
|
]}
|
|
374
370
|
```
|
|
@@ -378,7 +374,7 @@ it will result in this being rendered:
|
|
|
378
374
|
```html
|
|
379
375
|
<link rel="icon" href="https://www.test.ie/favicon.ico" />
|
|
380
376
|
<link rel="apple-touch-icon" href="https://www.test.ie/touch-icon-ipad.jpg" sizes="76x76" />
|
|
381
|
-
<link rel="manifest" href="/manifest.json" />
|
|
377
|
+
<link rel="manifest" href="https://www.test.ie/manifest.json" />
|
|
382
378
|
```
|
|
383
379
|
|
|
384
380
|
## Open Graph
|
|
@@ -413,15 +409,15 @@ Svelte Meta Tags currently supports:
|
|
|
413
409
|
url: 'https://www.example.ie/og-image.jpg',
|
|
414
410
|
width: 800,
|
|
415
411
|
height: 600,
|
|
416
|
-
alt: 'Og Image Alt'
|
|
412
|
+
alt: 'Og Image Alt'
|
|
417
413
|
},
|
|
418
414
|
{
|
|
419
415
|
url: 'https://www.example.ie/og-image-2.jpg',
|
|
420
416
|
width: 800,
|
|
421
417
|
height: 600,
|
|
422
|
-
alt: 'Og Image Alt 2'
|
|
423
|
-
}
|
|
424
|
-
]
|
|
418
|
+
alt: 'Og Image Alt 2'
|
|
419
|
+
}
|
|
420
|
+
]
|
|
425
421
|
}}
|
|
426
422
|
/>
|
|
427
423
|
```
|
|
@@ -447,26 +443,26 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
|
|
|
447
443
|
actors: [
|
|
448
444
|
{
|
|
449
445
|
profile: 'https://www.example.com/actors/@firstnameA-lastnameA',
|
|
450
|
-
role: 'Protagonist'
|
|
446
|
+
role: 'Protagonist'
|
|
451
447
|
},
|
|
452
448
|
{
|
|
453
449
|
profile: 'https://www.example.com/actors/@firstnameB-lastnameB',
|
|
454
|
-
role: 'Antagonist'
|
|
455
|
-
}
|
|
450
|
+
role: 'Antagonist'
|
|
451
|
+
}
|
|
456
452
|
],
|
|
457
453
|
directors: [
|
|
458
454
|
'https://www.example.com/directors/@firstnameA-lastnameA',
|
|
459
|
-
'https://www.example.com/directors/@firstnameB-lastnameB'
|
|
455
|
+
'https://www.example.com/directors/@firstnameB-lastnameB'
|
|
460
456
|
],
|
|
461
457
|
writers: [
|
|
462
458
|
'https://www.example.com/writers/@firstnameA-lastnameA',
|
|
463
|
-
'https://www.example.com/writers/@firstnameB-lastnameB'
|
|
459
|
+
'https://www.example.com/writers/@firstnameB-lastnameB'
|
|
464
460
|
],
|
|
465
461
|
duration: 680000,
|
|
466
462
|
releaseDate: '2022-12-21T22:04:11Z',
|
|
467
|
-
tags: ['Tag A', 'Tag B', 'Tag C']
|
|
463
|
+
tags: ['Tag A', 'Tag B', 'Tag C']
|
|
468
464
|
},
|
|
469
|
-
site_name: 'SiteName'
|
|
465
|
+
site_name: 'SiteName'
|
|
470
466
|
}}
|
|
471
467
|
/>
|
|
472
468
|
```
|
|
@@ -491,18 +487,18 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
|
|
|
491
487
|
section: 'Section II',
|
|
492
488
|
authors: [
|
|
493
489
|
'https://www.example.com/authors/@firstnameA-lastnameA',
|
|
494
|
-
'https://www.example.com/authors/@firstnameB-lastnameB'
|
|
490
|
+
'https://www.example.com/authors/@firstnameB-lastnameB'
|
|
495
491
|
],
|
|
496
|
-
tags: ['Tag A', 'Tag B', 'Tag C']
|
|
492
|
+
tags: ['Tag A', 'Tag B', 'Tag C']
|
|
497
493
|
},
|
|
498
494
|
images: [
|
|
499
495
|
{
|
|
500
496
|
url: 'https://www.test.ie/images/cover.jpg',
|
|
501
497
|
width: 850,
|
|
502
498
|
height: 650,
|
|
503
|
-
alt: 'Photo of text'
|
|
504
|
-
}
|
|
505
|
-
]
|
|
499
|
+
alt: 'Photo of text'
|
|
500
|
+
}
|
|
501
|
+
]
|
|
506
502
|
}}
|
|
507
503
|
/>
|
|
508
504
|
```
|
|
@@ -525,18 +521,18 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
|
|
|
525
521
|
isbn: '978-3-16-148410-0',
|
|
526
522
|
authors: [
|
|
527
523
|
'https://www.example.com/authors/@firstnameA-lastnameA',
|
|
528
|
-
'https://www.example.com/authors/@firstnameB-lastnameB'
|
|
524
|
+
'https://www.example.com/authors/@firstnameB-lastnameB'
|
|
529
525
|
],
|
|
530
|
-
tags: ['Tag A', 'Tag B', 'Tag C']
|
|
526
|
+
tags: ['Tag A', 'Tag B', 'Tag C']
|
|
531
527
|
},
|
|
532
528
|
images: [
|
|
533
529
|
{
|
|
534
530
|
url: 'https://www.test.ie/images/book.jpg',
|
|
535
531
|
width: 850,
|
|
536
532
|
height: 650,
|
|
537
|
-
alt: 'Cover of the book'
|
|
538
|
-
}
|
|
539
|
-
]
|
|
533
|
+
alt: 'Cover of the book'
|
|
534
|
+
}
|
|
535
|
+
]
|
|
540
536
|
}}
|
|
541
537
|
/>
|
|
542
538
|
```
|
|
@@ -558,16 +554,16 @@ Full info on [http://ogp.me/](http://ogp.me/#type_video)
|
|
|
558
554
|
firstName: 'First',
|
|
559
555
|
lastName: 'Last',
|
|
560
556
|
username: 'firstlast123',
|
|
561
|
-
gender: 'female'
|
|
557
|
+
gender: 'female'
|
|
562
558
|
},
|
|
563
559
|
images: [
|
|
564
560
|
{
|
|
565
561
|
url: 'https://www.test.ie/images/profile.jpg',
|
|
566
562
|
width: 850,
|
|
567
563
|
height: 650,
|
|
568
|
-
alt: 'Profile Photo'
|
|
569
|
-
}
|
|
570
|
-
]
|
|
564
|
+
alt: 'Profile Photo'
|
|
565
|
+
}
|
|
566
|
+
]
|
|
571
567
|
}}
|
|
572
568
|
/>
|
|
573
569
|
```
|
|
@@ -605,28 +601,28 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
605
601
|
'@type': 'Article',
|
|
606
602
|
mainEntityOfPage: {
|
|
607
603
|
'@type': 'WebPage',
|
|
608
|
-
'@id': 'https://example.com/article'
|
|
604
|
+
'@id': 'https://example.com/article'
|
|
609
605
|
},
|
|
610
606
|
headline: 'Article headline',
|
|
611
607
|
image: [
|
|
612
608
|
'https://example.com/photos/1x1/photo.jpg',
|
|
613
609
|
'https://example.com/photos/4x3/photo.jpg',
|
|
614
|
-
'https://example.com/photos/16x9/photo.jpg'
|
|
610
|
+
'https://example.com/photos/16x9/photo.jpg'
|
|
615
611
|
],
|
|
616
612
|
datePublished: '2015-02-05T08:00:00+08:00',
|
|
617
613
|
dateModified: '2015-02-05T09:20:00+08:00',
|
|
618
614
|
author: {
|
|
619
615
|
'@type': 'Person',
|
|
620
|
-
name: 'John Doe'
|
|
616
|
+
name: 'John Doe'
|
|
621
617
|
},
|
|
622
618
|
publisher: {
|
|
623
619
|
'@type': 'Organization',
|
|
624
620
|
name: 'Google',
|
|
625
621
|
logo: {
|
|
626
622
|
'@type': 'ImageObject',
|
|
627
|
-
url: 'https://example.com/logo.jpg'
|
|
628
|
-
}
|
|
629
|
-
}
|
|
623
|
+
url: 'https://example.com/logo.jpg'
|
|
624
|
+
}
|
|
625
|
+
}
|
|
630
626
|
}}
|
|
631
627
|
/>
|
|
632
628
|
```
|
|
@@ -646,20 +642,20 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
646
642
|
'@type': 'ListItem',
|
|
647
643
|
position: 1,
|
|
648
644
|
name: 'Books',
|
|
649
|
-
item: 'https://example.com/books'
|
|
645
|
+
item: 'https://example.com/books'
|
|
650
646
|
},
|
|
651
647
|
{
|
|
652
648
|
'@type': 'ListItem',
|
|
653
649
|
position: 2,
|
|
654
650
|
name: 'Science Fiction',
|
|
655
|
-
item: 'https://example.com/books/sciencefiction'
|
|
651
|
+
item: 'https://example.com/books/sciencefiction'
|
|
656
652
|
},
|
|
657
653
|
{
|
|
658
654
|
'@type': 'ListItem',
|
|
659
655
|
position: 3,
|
|
660
|
-
name: 'Award Winners'
|
|
661
|
-
}
|
|
662
|
-
]
|
|
656
|
+
name: 'Award Winners'
|
|
657
|
+
}
|
|
658
|
+
]
|
|
663
659
|
}}
|
|
664
660
|
/>
|
|
665
661
|
```
|
|
@@ -678,7 +674,7 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
678
674
|
image: [
|
|
679
675
|
'https://example.com/photos/1x1/photo.jpg',
|
|
680
676
|
'https://example.com/photos/4x3/photo.jpg',
|
|
681
|
-
'https://example.com/photos/16x9/photo.jpg'
|
|
677
|
+
'https://example.com/photos/16x9/photo.jpg'
|
|
682
678
|
],
|
|
683
679
|
description:
|
|
684
680
|
"Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.",
|
|
@@ -686,24 +682,24 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
686
682
|
mpn: '925872',
|
|
687
683
|
brand: {
|
|
688
684
|
'@type': 'Brand',
|
|
689
|
-
name: 'ACME'
|
|
685
|
+
name: 'ACME'
|
|
690
686
|
},
|
|
691
687
|
review: {
|
|
692
688
|
'@type': 'Review',
|
|
693
689
|
reviewRating: {
|
|
694
690
|
'@type': 'Rating',
|
|
695
691
|
ratingValue: '4',
|
|
696
|
-
bestRating: '5'
|
|
692
|
+
bestRating: '5'
|
|
697
693
|
},
|
|
698
694
|
author: {
|
|
699
695
|
'@type': 'Person',
|
|
700
|
-
name: 'Fred Benson'
|
|
701
|
-
}
|
|
696
|
+
name: 'Fred Benson'
|
|
697
|
+
}
|
|
702
698
|
},
|
|
703
699
|
aggregateRating: {
|
|
704
700
|
'@type': 'AggregateRating',
|
|
705
701
|
ratingValue: '4.4',
|
|
706
|
-
reviewCount: '89'
|
|
702
|
+
reviewCount: '89'
|
|
707
703
|
},
|
|
708
704
|
offers: {
|
|
709
705
|
'@type': 'Offer',
|
|
@@ -712,8 +708,8 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
712
708
|
price: '119.99',
|
|
713
709
|
priceValidUntil: '2020-11-20',
|
|
714
710
|
itemCondition: 'https://schema.org/UsedCondition',
|
|
715
|
-
availability: 'https://schema.org/InStock'
|
|
716
|
-
}
|
|
711
|
+
availability: 'https://schema.org/InStock'
|
|
712
|
+
}
|
|
717
713
|
}}
|
|
718
714
|
/>
|
|
719
715
|
```
|
|
@@ -733,8 +729,8 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
733
729
|
provider: {
|
|
734
730
|
'@type': 'Organization',
|
|
735
731
|
name: 'University of Technology - Eureka',
|
|
736
|
-
sameAs: 'http://www.ut-eureka.edu'
|
|
737
|
-
}
|
|
732
|
+
sameAs: 'http://www.ut-eureka.edu'
|
|
733
|
+
}
|
|
738
734
|
}}
|
|
739
735
|
/>
|
|
740
736
|
```
|
|
@@ -751,7 +747,7 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
751
747
|
'@type': 'Dataset',
|
|
752
748
|
name: 'name of the dataset',
|
|
753
749
|
description: 'The description needs to be at least 50 characters long',
|
|
754
|
-
license: 'https//www.example.com'
|
|
750
|
+
license: 'https//www.example.com'
|
|
755
751
|
}}
|
|
756
752
|
/>
|
|
757
753
|
```
|
|
@@ -772,18 +768,18 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it also
|
|
|
772
768
|
name: 'How long is the delivery time?',
|
|
773
769
|
acceptedAnswer: {
|
|
774
770
|
'@type': 'Answer',
|
|
775
|
-
text: '3-5 business days.'
|
|
776
|
-
}
|
|
771
|
+
text: '3-5 business days.'
|
|
772
|
+
}
|
|
777
773
|
},
|
|
778
774
|
{
|
|
779
775
|
'@type': 'Question',
|
|
780
776
|
name: 'Where can I find information about product recalls?',
|
|
781
777
|
acceptedAnswer: {
|
|
782
778
|
'@type': 'Answer',
|
|
783
|
-
text: 'Read more on under information.'
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
]
|
|
779
|
+
text: 'Read more on under information.'
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
]
|
|
787
783
|
}}
|
|
788
784
|
/>
|
|
789
785
|
```
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as MetaTags } from './MetaTags.svelte';
|
|
2
2
|
export { default as JsonLd } from './JsonLd.svelte';
|
|
3
|
-
export type { MetaTagsProps, JsonLdProps, AdditionalRobotsProps, MobileAlternate, LanguageAlternate, Twitter, Facebook, OpenGraph, MetaTag, LinkTag
|
|
3
|
+
export type { MetaTagsProps, JsonLdProps, AdditionalRobotsProps, MobileAlternate, LanguageAlternate, Twitter, Facebook, OpenGraph, MetaTag, LinkTag } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-meta-tags",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"description": "Svelte Meta Tags is a plugin that makes managing your SEO easier in Svelte projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,33 +17,32 @@
|
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "https://github.com/oekazuma/svelte-meta-tags"
|
|
19
19
|
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"schema-dts": "^1.1.0"
|
|
22
|
+
},
|
|
20
23
|
"devDependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"@
|
|
27
|
-
"
|
|
28
|
-
"@typescript-eslint/parser": "^5.33.0",
|
|
29
|
-
"cypress": "^10.4.0",
|
|
30
|
-
"eslint": "^8.21.0",
|
|
24
|
+
"@playwright/test": "^1.28.0",
|
|
25
|
+
"@sveltejs/adapter-auto": "^1.0.0-next.88",
|
|
26
|
+
"@sveltejs/kit": "^1.0.0-next.551",
|
|
27
|
+
"@sveltejs/package": "^1.0.0-next.6",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
|
29
|
+
"@typescript-eslint/parser": "^5.43.0",
|
|
30
|
+
"eslint": "^8.27.0",
|
|
31
31
|
"eslint-config-prettier": "^8.5.0",
|
|
32
|
-
"eslint-plugin-cypress": "^2.12.1",
|
|
33
32
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
34
|
-
"husky": "^8.0.
|
|
33
|
+
"husky": "^8.0.2",
|
|
35
34
|
"lint-staged": "^13.0.3",
|
|
36
35
|
"prettier": "^2.7.1",
|
|
37
|
-
"prettier-plugin-svelte": "^2.
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"svelte": "^3.49.0",
|
|
41
|
-
"svelte-check": "^2.8.0",
|
|
36
|
+
"prettier-plugin-svelte": "^2.8.0",
|
|
37
|
+
"svelte": "^3.53.1",
|
|
38
|
+
"svelte-check": "^2.9.2",
|
|
42
39
|
"svelte-preprocess": "^4.10.7",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
40
|
+
"tslib": "^2.4.1",
|
|
41
|
+
"typescript": "^4.9.3",
|
|
42
|
+
"vite": "^3.2.4"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"svelte": "^3.44.0"
|
|
47
46
|
},
|
|
48
47
|
"exports": {
|
|
49
48
|
"./package.json": "./package.json",
|