sanity-plugin-seofields 1.5.4 → 1.6.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/README.md +4 -4
- package/dist/SeoHealthDashboard-7XMPVJRX.cjs +10 -0
- package/dist/{SeoHealthDashboard-KPBNXSL4.cjs.map → SeoHealthDashboard-7XMPVJRX.cjs.map} +1 -1
- package/dist/SeoHealthDashboard-UWPLB5DM.js +4 -0
- package/dist/{SeoHealthDashboard-QKVB5HK3.js.map → SeoHealthDashboard-UWPLB5DM.js.map} +1 -1
- package/dist/{SeoHealthTool-ON3SRXCF.cjs → SeoHealthTool-2H4XZR4I.cjs} +4 -4
- package/dist/{SeoHealthTool-ON3SRXCF.cjs.map → SeoHealthTool-2H4XZR4I.cjs.map} +1 -1
- package/dist/{SeoHealthTool-EPPOEDTW.js → SeoHealthTool-XCXINAQI.js} +3 -3
- package/dist/{SeoHealthTool-EPPOEDTW.js.map → SeoHealthTool-XCXINAQI.js.map} +1 -1
- package/dist/{SeoPreview-G3LPA7GV.js → SeoPreview-F6GGPZWI.js} +2 -2
- package/dist/SeoPreview-F6GGPZWI.js.map +1 -0
- package/dist/{SeoPreview-Y3CFDVBR.cjs → SeoPreview-JDROKZLP.cjs} +2 -2
- package/dist/SeoPreview-JDROKZLP.cjs.map +1 -0
- package/dist/chunk-6NIHHOVS.js +3918 -0
- package/dist/chunk-6NIHHOVS.js.map +1 -0
- package/dist/chunk-7HCP5O62.cjs +4027 -0
- package/dist/chunk-7HCP5O62.cjs.map +1 -0
- package/dist/{chunk-527WXITP.js → chunk-KWUITSHS.js} +218 -54
- package/dist/chunk-KWUITSHS.js.map +1 -0
- package/dist/{chunk-UCVSMPEJ.js → chunk-NHJBEV3A.js} +2 -2
- package/dist/{chunk-UCVSMPEJ.js.map → chunk-NHJBEV3A.js.map} +1 -1
- package/dist/chunk-WCLEWFAJ.cjs +669 -0
- package/dist/chunk-WCLEWFAJ.cjs.map +1 -0
- package/dist/{chunk-G2SVI2SP.cjs → chunk-Z74QPO75.cjs} +2 -2
- package/dist/{chunk-G2SVI2SP.cjs.map → chunk-Z74QPO75.cjs.map} +1 -1
- package/dist/cli.js +25 -25
- package/dist/component-7rqDvuy2.d.ts +534 -0
- package/dist/component-J2nEQkOw.d.cts +534 -0
- package/dist/index.cjs +159 -185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -51
- package/dist/index.d.ts +43 -51
- package/dist/index.js +159 -185
- package/dist/index.js.map +1 -1
- package/dist/next.cjs +155 -51
- package/dist/next.d.cts +3 -3
- package/dist/next.d.ts +3 -3
- package/dist/next.js +2 -2
- package/dist/schema/next.cjs +171 -52
- package/dist/schema/next.cjs.map +1 -1
- package/dist/schema/next.d.cts +12 -428
- package/dist/schema/next.d.ts +12 -428
- package/dist/schema/next.js +20 -2
- package/dist/schema/next.js.map +1 -1
- package/dist/schema.cjs +831 -156
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +318 -41
- package/dist/schema.d.ts +318 -41
- package/dist/schema.js +567 -86
- package/dist/schema.js.map +1 -1
- package/dist/types-BRn3hfQb.d.ts +24 -0
- package/dist/types-BSgolLj3.d.cts +24 -0
- package/dist/{types-R3n9Fu4w.d.cts → types-BtSRRG6C.d.cts} +1 -1
- package/dist/{types-R3n9Fu4w.d.ts → types-BtSRRG6C.d.ts} +1 -1
- package/dist/types-DnVvOp3o.d.ts +1215 -0
- package/dist/types-DoUYMRVf.d.cts +1215 -0
- package/package.json +2 -1
- package/dist/SeoHealthDashboard-KPBNXSL4.cjs +0 -10
- package/dist/SeoHealthDashboard-QKVB5HK3.js +0 -4
- package/dist/SeoPreview-G3LPA7GV.js.map +0 -1
- package/dist/SeoPreview-Y3CFDVBR.cjs.map +0 -1
- package/dist/chunk-527WXITP.js.map +0 -1
- package/dist/chunk-6CYMVS3O.js +0 -1245
- package/dist/chunk-6CYMVS3O.js.map +0 -1
- package/dist/chunk-D2GWRRK5.cjs +0 -1293
- package/dist/chunk-D2GWRRK5.cjs.map +0 -1
- package/dist/chunk-L3L3FSPJ.cjs +0 -478
- package/dist/chunk-L3L3FSPJ.cjs.map +0 -1
- package/dist/types-CVaAX7uy.d.cts +0 -589
- package/dist/types-Ci-ZZT7A.d.ts +0 -589
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import { buildGenericJsonLd, aggregateRatingFields, articleFields, blogPostingFields, brandFields, breadcrumbListFields, contactPointFields, courseFields, eventFields, faqPageFields, howToFields, imageObjectFields, localBusinessFields, offerFields, personFields, placeFields, postalAddressFields, productFields, reviewFields, softwareApplicationFields, videoObjectFields, webApplicationFields, webPageFields } from './chunk-
|
|
1
|
+
import { resolvePolymorphicPersonOrOrg, buildGenericJsonLd, aggregateRatingFields, articleFields, blogPostingFields, bookFields, brandFields, breadcrumbListFields, contactPointFields, countryFields, courseFields, eventFields, faqPageFields, howToFields, imageObjectFields, itemListFields, jobPostingFields, legalServiceFields, localBusinessFields, movieFields, musicAlbumFields, musicRecordingFields, newsArticleFields, offerFields, personFields, placeFields, postalAddressFields, productFields, profilePageFields, recipeFields, restaurantFields, serviceFields, reviewFields, softwareApplicationFields, videoObjectFields, webApplicationFields, webPageFields, socialMediaPostingFields } from './chunk-6NIHHOVS.js';
|
|
2
2
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
// src/schema/utils.ts
|
|
5
5
|
function escapeJsonForScript(json) {
|
|
6
6
|
return json.replace(/</g, "\\u003C").replace(/>/g, "\\u003E").replace(/&/g, "\\u0026").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
7
7
|
}
|
|
8
|
+
function SchemaOrgScript({
|
|
9
|
+
jsonLd
|
|
10
|
+
}) {
|
|
11
|
+
if (!jsonLd) return null;
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
"script",
|
|
14
|
+
{
|
|
15
|
+
type: "application/ld+json",
|
|
16
|
+
dangerouslySetInnerHTML: { __html: escapeJsonForScript(JSON.stringify(jsonLd)) }
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
8
20
|
function buildOrganizationJsonLd(data, imageUrlResolver) {
|
|
9
|
-
var _a, _b
|
|
21
|
+
var _a, _b;
|
|
10
22
|
if (!(data == null ? void 0 : data.name) || !(data == null ? void 0 : data.url)) return null;
|
|
11
23
|
const jsonLd = {
|
|
12
24
|
"@context": "https://schema.org",
|
|
@@ -17,14 +29,14 @@ function buildOrganizationJsonLd(data, imageUrlResolver) {
|
|
|
17
29
|
const logoUrl = data.logoUrl || (data.logo && imageUrlResolver ? imageUrlResolver(data.logo) : void 0);
|
|
18
30
|
if (logoUrl) jsonLd.logo = logoUrl;
|
|
19
31
|
if (data.description) jsonLd.description = data.description;
|
|
20
|
-
if (
|
|
21
|
-
if ((
|
|
32
|
+
if (data.sameAs) jsonLd.sameAs = data.sameAs;
|
|
33
|
+
if ((_a = data.contactPoint) == null ? void 0 : _a.contactType) {
|
|
22
34
|
const cp = {
|
|
23
35
|
"@type": "ContactPoint",
|
|
24
36
|
contactType: data.contactPoint.contactType
|
|
25
37
|
};
|
|
26
38
|
if (data.contactPoint.email) cp.email = data.contactPoint.email;
|
|
27
|
-
if ((
|
|
39
|
+
if ((_b = data.contactPoint.availableLanguage) == null ? void 0 : _b.length) {
|
|
28
40
|
cp.availableLanguage = data.contactPoint.availableLanguage;
|
|
29
41
|
}
|
|
30
42
|
jsonLd.contactPoint = cp;
|
|
@@ -35,18 +47,9 @@ function OrganizationSchema({
|
|
|
35
47
|
data,
|
|
36
48
|
imageUrlResolver
|
|
37
49
|
}) {
|
|
38
|
-
|
|
39
|
-
if (!jsonLd) return null;
|
|
40
|
-
return /* @__PURE__ */ jsx(
|
|
41
|
-
"script",
|
|
42
|
-
{
|
|
43
|
-
type: "application/ld+json",
|
|
44
|
-
dangerouslySetInnerHTML: { __html: escapeJsonForScript(JSON.stringify(jsonLd)) }
|
|
45
|
-
}
|
|
46
|
-
);
|
|
50
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildOrganizationJsonLd(data, imageUrlResolver) });
|
|
47
51
|
}
|
|
48
52
|
function buildWebsiteJsonLd(data) {
|
|
49
|
-
var _a;
|
|
50
53
|
if (!(data == null ? void 0 : data.name) || !(data == null ? void 0 : data.url)) return null;
|
|
51
54
|
const jsonLd = {
|
|
52
55
|
"@context": "https://schema.org",
|
|
@@ -56,44 +59,12 @@ function buildWebsiteJsonLd(data) {
|
|
|
56
59
|
};
|
|
57
60
|
if (data.description) jsonLd.description = data.description;
|
|
58
61
|
if (data.inLanguage) jsonLd.inLanguage = data.inLanguage;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"@type": "Organization",
|
|
62
|
-
name: data.publisher.name
|
|
63
|
-
};
|
|
64
|
-
if (data.publisher.url) publisher.url = data.publisher.url;
|
|
65
|
-
if (data.publisher.logoUrl) {
|
|
66
|
-
publisher.logo = {
|
|
67
|
-
"@type": "ImageObject",
|
|
68
|
-
url: data.publisher.logoUrl
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
jsonLd.publisher = publisher;
|
|
72
|
-
}
|
|
62
|
+
const publisher = resolvePolymorphicPersonOrOrg(data.publisher);
|
|
63
|
+
if (publisher) jsonLd.publisher = publisher;
|
|
73
64
|
return jsonLd;
|
|
74
65
|
}
|
|
75
66
|
function WebsiteSchema({ data }) {
|
|
76
|
-
|
|
77
|
-
if (!jsonLd) return null;
|
|
78
|
-
return /* @__PURE__ */ jsx(
|
|
79
|
-
"script",
|
|
80
|
-
{
|
|
81
|
-
type: "application/ld+json",
|
|
82
|
-
dangerouslySetInnerHTML: { __html: escapeJsonForScript(JSON.stringify(jsonLd)) }
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
function SchemaOrgScript({
|
|
87
|
-
jsonLd
|
|
88
|
-
}) {
|
|
89
|
-
if (!jsonLd) return null;
|
|
90
|
-
return /* @__PURE__ */ jsx(
|
|
91
|
-
"script",
|
|
92
|
-
{
|
|
93
|
-
type: "application/ld+json",
|
|
94
|
-
dangerouslySetInnerHTML: { __html: escapeJsonForScript(JSON.stringify(jsonLd)) }
|
|
95
|
-
}
|
|
96
|
-
);
|
|
67
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildWebsiteJsonLd(data) });
|
|
97
68
|
}
|
|
98
69
|
var GENERIC_TYPES = {
|
|
99
70
|
schemaOrgWebPage: { schemaType: "WebPage", fields: webPageFields, requiredFields: ["name"] },
|
|
@@ -157,7 +128,57 @@ var GENERIC_TYPES = {
|
|
|
157
128
|
fields: videoObjectFields,
|
|
158
129
|
requiredFields: ["name"]
|
|
159
130
|
},
|
|
160
|
-
schemaOrgCourse: { schemaType: "Course", fields: courseFields, requiredFields: ["name"] }
|
|
131
|
+
schemaOrgCourse: { schemaType: "Course", fields: courseFields, requiredFields: ["name"] },
|
|
132
|
+
schemaOrgLegalService: {
|
|
133
|
+
schemaType: "LegalService",
|
|
134
|
+
fields: legalServiceFields,
|
|
135
|
+
requiredFields: ["name"]
|
|
136
|
+
},
|
|
137
|
+
schemaOrgCountry: { schemaType: "Country", fields: countryFields, requiredFields: ["name"] },
|
|
138
|
+
schemaOrgBook: { schemaType: "Book", fields: bookFields, requiredFields: ["name"] },
|
|
139
|
+
schemaOrgItemList: {
|
|
140
|
+
schemaType: "ItemList",
|
|
141
|
+
fields: itemListFields,
|
|
142
|
+
requiredFields: ["name"]
|
|
143
|
+
},
|
|
144
|
+
schemaOrgJobPosting: {
|
|
145
|
+
schemaType: "JobPosting",
|
|
146
|
+
fields: jobPostingFields,
|
|
147
|
+
requiredFields: ["title"]
|
|
148
|
+
},
|
|
149
|
+
schemaOrgMovie: { schemaType: "Movie", fields: movieFields, requiredFields: ["name"] },
|
|
150
|
+
schemaOrgMusicAlbum: {
|
|
151
|
+
schemaType: "MusicAlbum",
|
|
152
|
+
fields: musicAlbumFields,
|
|
153
|
+
requiredFields: ["name"]
|
|
154
|
+
},
|
|
155
|
+
schemaOrgMusicRecording: {
|
|
156
|
+
schemaType: "MusicRecording",
|
|
157
|
+
fields: musicRecordingFields,
|
|
158
|
+
requiredFields: ["name"]
|
|
159
|
+
},
|
|
160
|
+
schemaOrgNewsArticle: {
|
|
161
|
+
schemaType: "NewsArticle",
|
|
162
|
+
fields: newsArticleFields,
|
|
163
|
+
requiredFields: ["headline"]
|
|
164
|
+
},
|
|
165
|
+
schemaOrgProfilePage: {
|
|
166
|
+
schemaType: "ProfilePage",
|
|
167
|
+
fields: profilePageFields,
|
|
168
|
+
requiredFields: ["name"]
|
|
169
|
+
},
|
|
170
|
+
schemaOrgRecipe: { schemaType: "Recipe", fields: recipeFields, requiredFields: ["name"] },
|
|
171
|
+
schemaOrgRestaurant: {
|
|
172
|
+
schemaType: "Restaurant",
|
|
173
|
+
fields: restaurantFields,
|
|
174
|
+
requiredFields: ["name"]
|
|
175
|
+
},
|
|
176
|
+
schemaOrgService: { schemaType: "Service", fields: serviceFields, requiredFields: ["name"] },
|
|
177
|
+
schemaOrgSocialMediaPosting: {
|
|
178
|
+
schemaType: "SocialMediaPosting",
|
|
179
|
+
fields: socialMediaPostingFields,
|
|
180
|
+
requiredFields: ["headline"]
|
|
181
|
+
}
|
|
161
182
|
};
|
|
162
183
|
function buildJsonLdForItem(item) {
|
|
163
184
|
const type = item._type;
|
|
@@ -211,6 +232,17 @@ function buildBlogPostingJsonLd(data) {
|
|
|
211
232
|
function BlogPostingSchema({ data }) {
|
|
212
233
|
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildBlogPostingJsonLd(data) });
|
|
213
234
|
}
|
|
235
|
+
function buildBookJsonLd(data) {
|
|
236
|
+
return buildGenericJsonLd(
|
|
237
|
+
"Book",
|
|
238
|
+
data,
|
|
239
|
+
bookFields,
|
|
240
|
+
["name"]
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
function BookSchema({ data }) {
|
|
244
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildBookJsonLd(data) });
|
|
245
|
+
}
|
|
214
246
|
function buildBrandJsonLd(data) {
|
|
215
247
|
return buildGenericJsonLd(
|
|
216
248
|
"Brand",
|
|
@@ -244,6 +276,17 @@ function buildContactPointJsonLd(data) {
|
|
|
244
276
|
function ContactPointSchema({ data }) {
|
|
245
277
|
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildContactPointJsonLd(data) });
|
|
246
278
|
}
|
|
279
|
+
function buildCountryJsonLd(data) {
|
|
280
|
+
return buildGenericJsonLd(
|
|
281
|
+
"Country",
|
|
282
|
+
data,
|
|
283
|
+
countryFields,
|
|
284
|
+
["name"]
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
function CountrySchema({ data }) {
|
|
288
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildCountryJsonLd(data) });
|
|
289
|
+
}
|
|
247
290
|
function buildCourseJsonLd(data) {
|
|
248
291
|
return buildGenericJsonLd(
|
|
249
292
|
"Course",
|
|
@@ -299,6 +342,39 @@ function buildImageObjectJsonLd(data) {
|
|
|
299
342
|
function ImageObjectSchema({ data }) {
|
|
300
343
|
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildImageObjectJsonLd(data) });
|
|
301
344
|
}
|
|
345
|
+
function buildItemListJsonLd(data) {
|
|
346
|
+
return buildGenericJsonLd(
|
|
347
|
+
"ItemList",
|
|
348
|
+
data,
|
|
349
|
+
itemListFields,
|
|
350
|
+
[]
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
function ItemListSchema({ data }) {
|
|
354
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildItemListJsonLd(data) });
|
|
355
|
+
}
|
|
356
|
+
function buildJobPostingJsonLd(data) {
|
|
357
|
+
return buildGenericJsonLd(
|
|
358
|
+
"JobPosting",
|
|
359
|
+
data,
|
|
360
|
+
jobPostingFields,
|
|
361
|
+
["title", "description", "datePosted"]
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
function JobPostingSchema({ data }) {
|
|
365
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildJobPostingJsonLd(data) });
|
|
366
|
+
}
|
|
367
|
+
function buildLegalServiceJsonLd(data) {
|
|
368
|
+
return buildGenericJsonLd(
|
|
369
|
+
"LegalService",
|
|
370
|
+
data,
|
|
371
|
+
legalServiceFields,
|
|
372
|
+
["name"]
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
function LegalServiceSchema({ data }) {
|
|
376
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildLegalServiceJsonLd(data) });
|
|
377
|
+
}
|
|
302
378
|
function buildLocalBusinessJsonLd(data) {
|
|
303
379
|
return buildGenericJsonLd(
|
|
304
380
|
"LocalBusiness",
|
|
@@ -310,6 +386,50 @@ function buildLocalBusinessJsonLd(data) {
|
|
|
310
386
|
function LocalBusinessSchema({ data }) {
|
|
311
387
|
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildLocalBusinessJsonLd(data) });
|
|
312
388
|
}
|
|
389
|
+
function buildMovieJsonLd(data) {
|
|
390
|
+
return buildGenericJsonLd(
|
|
391
|
+
"Movie",
|
|
392
|
+
data,
|
|
393
|
+
movieFields,
|
|
394
|
+
["name"]
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
function MovieSchema({ data }) {
|
|
398
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildMovieJsonLd(data) });
|
|
399
|
+
}
|
|
400
|
+
function buildMusicAlbumJsonLd(data) {
|
|
401
|
+
return buildGenericJsonLd(
|
|
402
|
+
"MusicAlbum",
|
|
403
|
+
data,
|
|
404
|
+
musicAlbumFields,
|
|
405
|
+
["name"]
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
function MusicAlbumSchema({ data }) {
|
|
409
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildMusicAlbumJsonLd(data) });
|
|
410
|
+
}
|
|
411
|
+
function buildMusicRecordingJsonLd(data) {
|
|
412
|
+
return buildGenericJsonLd(
|
|
413
|
+
"MusicRecording",
|
|
414
|
+
data,
|
|
415
|
+
musicRecordingFields,
|
|
416
|
+
["name"]
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
function MusicRecordingSchema({ data }) {
|
|
420
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildMusicRecordingJsonLd(data) });
|
|
421
|
+
}
|
|
422
|
+
function buildNewsArticleJsonLd(data) {
|
|
423
|
+
return buildGenericJsonLd(
|
|
424
|
+
"NewsArticle",
|
|
425
|
+
data,
|
|
426
|
+
newsArticleFields,
|
|
427
|
+
["headline", "datePublished"]
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
function NewsArticleSchema({ data }) {
|
|
431
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildNewsArticleJsonLd(data) });
|
|
432
|
+
}
|
|
313
433
|
function buildOfferJsonLd(data) {
|
|
314
434
|
return buildGenericJsonLd(
|
|
315
435
|
"Offer",
|
|
@@ -365,6 +485,50 @@ function buildProductJsonLd(data) {
|
|
|
365
485
|
function ProductSchema({ data }) {
|
|
366
486
|
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildProductJsonLd(data) });
|
|
367
487
|
}
|
|
488
|
+
function buildProfilePageJsonLd(data) {
|
|
489
|
+
return buildGenericJsonLd(
|
|
490
|
+
"ProfilePage",
|
|
491
|
+
data,
|
|
492
|
+
profilePageFields,
|
|
493
|
+
[]
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
function ProfilePageSchema({ data }) {
|
|
497
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildProfilePageJsonLd(data) });
|
|
498
|
+
}
|
|
499
|
+
function buildRecipeJsonLd(data) {
|
|
500
|
+
return buildGenericJsonLd(
|
|
501
|
+
"Recipe",
|
|
502
|
+
data,
|
|
503
|
+
recipeFields,
|
|
504
|
+
["name"]
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
function RecipeSchema({ data }) {
|
|
508
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildRecipeJsonLd(data) });
|
|
509
|
+
}
|
|
510
|
+
function buildRestaurantJsonLd(data) {
|
|
511
|
+
return buildGenericJsonLd(
|
|
512
|
+
"Restaurant",
|
|
513
|
+
data,
|
|
514
|
+
restaurantFields,
|
|
515
|
+
["name"]
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
function RestaurantSchema({ data }) {
|
|
519
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildRestaurantJsonLd(data) });
|
|
520
|
+
}
|
|
521
|
+
function buildServiceJsonLd(data) {
|
|
522
|
+
return buildGenericJsonLd(
|
|
523
|
+
"Service",
|
|
524
|
+
data,
|
|
525
|
+
serviceFields,
|
|
526
|
+
["name"]
|
|
527
|
+
);
|
|
528
|
+
}
|
|
529
|
+
function ServiceSchema({ data }) {
|
|
530
|
+
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildServiceJsonLd(data) });
|
|
531
|
+
}
|
|
368
532
|
function buildReviewJsonLd(data) {
|
|
369
533
|
return buildGenericJsonLd(
|
|
370
534
|
"Review",
|
|
@@ -423,6 +587,6 @@ function WebPageSchema({ data }) {
|
|
|
423
587
|
return /* @__PURE__ */ jsx(SchemaOrgScript, { jsonLd: buildWebPageJsonLd(data) });
|
|
424
588
|
}
|
|
425
589
|
|
|
426
|
-
export { AggregateRatingSchema, ArticleSchema, BlogPostingSchema, BrandSchema, BreadcrumbListSchema, ContactPointSchema, CourseSchema, EventSchema, FAQPageSchema, HowToSchema, ImageObjectSchema, LocalBusinessSchema, OfferSchema, OrganizationSchema, PersonSchema, PlaceSchema, PostalAddressSchema, ProductSchema, ReviewSchema, SchemaOrgScripts, SoftwareApplicationSchema, VideoObjectSchema, WebApplicationSchema, WebPageSchema, WebsiteSchema, buildAggregateRatingJsonLd, buildArticleJsonLd, buildBlogPostingJsonLd, buildBrandJsonLd, buildBreadcrumbListJsonLd, buildContactPointJsonLd, buildCourseJsonLd, buildEventJsonLd, buildFAQPageJsonLd, buildHowToJsonLd, buildImageObjectJsonLd, buildLocalBusinessJsonLd, buildOfferJsonLd, buildOrganizationJsonLd, buildPersonJsonLd, buildPlaceJsonLd, buildPostalAddressJsonLd, buildProductJsonLd, buildReviewJsonLd, buildSoftwareApplicationJsonLd, buildVideoObjectJsonLd, buildWebApplicationJsonLd, buildWebPageJsonLd, buildWebsiteJsonLd };
|
|
427
|
-
//# sourceMappingURL=chunk-
|
|
428
|
-
//# sourceMappingURL=chunk-
|
|
590
|
+
export { AggregateRatingSchema, ArticleSchema, BlogPostingSchema, BookSchema, BrandSchema, BreadcrumbListSchema, ContactPointSchema, CountrySchema, CourseSchema, EventSchema, FAQPageSchema, HowToSchema, ImageObjectSchema, ItemListSchema, JobPostingSchema, LegalServiceSchema, LocalBusinessSchema, MovieSchema, MusicAlbumSchema, MusicRecordingSchema, NewsArticleSchema, OfferSchema, OrganizationSchema, PersonSchema, PlaceSchema, PostalAddressSchema, ProductSchema, ProfilePageSchema, RecipeSchema, RestaurantSchema, ReviewSchema, SchemaOrgScript, SchemaOrgScripts, ServiceSchema, SoftwareApplicationSchema, VideoObjectSchema, WebApplicationSchema, WebPageSchema, WebsiteSchema, buildAggregateRatingJsonLd, buildArticleJsonLd, buildBlogPostingJsonLd, buildBookJsonLd, buildBrandJsonLd, buildBreadcrumbListJsonLd, buildContactPointJsonLd, buildCountryJsonLd, buildCourseJsonLd, buildEventJsonLd, buildFAQPageJsonLd, buildHowToJsonLd, buildImageObjectJsonLd, buildItemListJsonLd, buildJobPostingJsonLd, buildLegalServiceJsonLd, buildLocalBusinessJsonLd, buildMovieJsonLd, buildMusicAlbumJsonLd, buildMusicRecordingJsonLd, buildNewsArticleJsonLd, buildOfferJsonLd, buildOrganizationJsonLd, buildPersonJsonLd, buildPlaceJsonLd, buildPostalAddressJsonLd, buildProductJsonLd, buildProfilePageJsonLd, buildRecipeJsonLd, buildRestaurantJsonLd, buildReviewJsonLd, buildServiceJsonLd, buildSoftwareApplicationJsonLd, buildVideoObjectJsonLd, buildWebApplicationJsonLd, buildWebPageJsonLd, buildWebsiteJsonLd };
|
|
591
|
+
//# sourceMappingURL=chunk-KWUITSHS.js.map
|
|
592
|
+
//# sourceMappingURL=chunk-KWUITSHS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/utils.ts","../src/schema/SchemaOrgScript.tsx","../src/schema/organization/component.tsx","../src/schema/website/component.tsx","../src/schema/SchemaOrgScripts.tsx","../src/schema/aggregateRating/component.tsx","../src/schema/article/component.tsx","../src/schema/blogPosting/component.tsx","../src/schema/book/component.tsx","../src/schema/brand/component.tsx","../src/schema/breadcrumbList/component.tsx","../src/schema/contactPoint/component.tsx","../src/schema/country/component.tsx","../src/schema/course/component.tsx","../src/schema/event/component.tsx","../src/schema/faqPage/component.tsx","../src/schema/howTo/component.tsx","../src/schema/imageObject/component.tsx","../src/schema/itemList/component.tsx","../src/schema/jobPosting/component.tsx","../src/schema/legalService/component.tsx","../src/schema/localBusiness/component.tsx","../src/schema/movie/component.tsx","../src/schema/musicAlbum/component.tsx","../src/schema/musicRecording/component.tsx","../src/schema/newsArticle/component.tsx","../src/schema/offer/component.tsx","../src/schema/person/component.tsx","../src/schema/place/component.tsx","../src/schema/postalAddress/component.tsx","../src/schema/product/component.tsx","../src/schema/profilePage/component.tsx","../src/schema/recipe/component.tsx","../src/schema/restaurant/component.tsx","../src/schema/service/component.tsx","../src/schema/review/component.tsx","../src/schema/softwareApplication/component.tsx","../src/schema/videoObject/component.tsx","../src/schema/webApplication/component.tsx","../src/schema/webPage/component.tsx"],"names":["jsx"],"mappings":";;;;AAKO,SAAS,oBAAoB,IAAA,EAAsB;AACxD,EAAA,OAAO,KACJ,OAAA,CA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CAAkB,EAAC,IAAA,EAAI,EAA+C;AACpF,EAAA,uBAAOA,GAAAA,CAAC,eAAA,EAAA,EAAgB,MAAA,EAAQ,sBAAA,CAAuB,IAAI,CAAA,EAAG,CAAA;AAChE;ACIO,SAAS,0BACd,IAAA,EACgC;AAChC,EAAA,OAAO,kBAAA;AAAA,IACL,gBAAA;AAAA,IACA,IAAA;AAAA,IACA,oBAAA;AAAA,IACA,CAAC,QAAQ,KAAK;AAAA,GAChB;AACF;AAMO,SAAS,oBAAA,CAAqB,EAAC,IAAA,EAAI,EAAkD;AAC1F,EAAA,uBAAOA,GAAAA,CAAC,eAAA,EAAA,EAAgB,MAAA,EAAQ,yBAAA,CAA0B,IAAI,CAAA,EAAG,CAAA;AACnE;ACjBO,SAAS,mBACd,IAAA,EACgC;AAChC,EAAA,OAAO,kBAAA;AAAA,IACL,SAAA;AAAA,IACA,IAAA;AAAA,IACA,aAAA;AAAA,IACA,CAAC,QAAQ,KAAK;AAAA,GAChB;AACF;AAMO,SAAS,aAAA,CAAc,EAAC,IAAA,EAAI,EAA2C;AAC5E,EAAA,uBAAOA,GAAAA,CAAC,eAAA,EAAA,EAAgB,MAAA,EAAQ,kBAAA,CAAmB,IAAI,CAAA,EAAG,CAAA;AAC5D","file":"chunk-KWUITSHS.js","sourcesContent":["/**\n * Escapes characters in a JSON string that could enable XSS when embedded\n * inside a `<script>` tag. Prevents `</script>` breakout, HTML comment\n * injection, and Unicode line terminators that can break JS parsing.\n */\nexport function escapeJsonForScript(json: string): string {\n return json\n .replace(/</g, '\\\\u003C')\n .replace(/>/g, '\\\\u003E')\n .replace(/&/g, '\\\\u0026')\n .replace(/\\u2028/g, '\\\\u2028')\n .replace(/\\u2029/g, '\\\\u2029')\n}\n","/**\n * Shared component that renders a `<script type=\"application/ld+json\">` tag.\n * Used by all Schema.org type components.\n */\nimport {JSX} from 'react'\n\nimport {escapeJsonForScript} from './utils'\n\nexport function SchemaOrgScript({\n jsonLd,\n}: {\n jsonLd: Record<string, unknown> | null\n}): JSX.Element | null {\n if (!jsonLd) return null\n\n return (\n <script\n type=\"application/ld+json\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: escapeJsonForScript(JSON.stringify(jsonLd))}}\n />\n )\n}\n","/**\n * <OrganizationSchema> — Renders Schema.org Organization JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { OrganizationSchema } from 'sanity-plugin-seofields/next/organization'\n *\n * const data = await sanityFetch({ query: `*[_type == \"settings\"][0]{ organization }` })\n *\n * <OrganizationSchema data={data.organization} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport type {SanityImage} from '../../types'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport type {SchemaOrgOrganizationData} from './types'\n\nexport interface OrganizationSchemaProps {\n /** The Schema.org Organization data from your Sanity GROQ query. */\n data?: SchemaOrgOrganizationData | null\n /**\n * Resolve a Sanity image asset to a URL string (for the logo field).\n * Only needed if you use the Sanity image upload field instead of logoUrl.\n *\n * @example\n * imageUrlResolver={(img) => urlFor(img).width(600).url()}\n */\n imageUrlResolver?: (image: SanityImage) => string | null | undefined\n}\n\n/**\n * Builds a Schema.org Organization JSON-LD object from Sanity data.\n * Returns `null` if required fields (name, url) are missing.\n */\nexport function buildOrganizationJsonLd(\n data?: SchemaOrgOrganizationData | null,\n imageUrlResolver?: (image: SanityImage) => string | null | undefined,\n): Record<string, unknown> | null {\n if (!data?.name || !data?.url) return null\n\n const jsonLd: Record<string, unknown> = {\n '@context': 'https://schema.org',\n '@type': 'Organization',\n name: data.name,\n url: data.url,\n }\n\n // Resolve logo — prefer explicit URL, fall back to Sanity image\n const logoUrl =\n data.logoUrl || (data.logo && imageUrlResolver ? imageUrlResolver(data.logo) : undefined)\n if (logoUrl) jsonLd.logo = logoUrl\n\n if (data.description) jsonLd.description = data.description\n\n if (data.sameAs) jsonLd.sameAs = data.sameAs\n\n if (data.contactPoint?.contactType) {\n const cp: Record<string, unknown> = {\n '@type': 'ContactPoint',\n contactType: data.contactPoint.contactType,\n }\n if (data.contactPoint.email) cp.email = data.contactPoint.email\n if (data.contactPoint.availableLanguage?.length) {\n cp.availableLanguage = data.contactPoint.availableLanguage\n }\n jsonLd.contactPoint = cp\n }\n\n return jsonLd\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Organization data.\n * Renders nothing if required fields are missing.\n */\nexport function OrganizationSchema({\n data,\n imageUrlResolver,\n}: OrganizationSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildOrganizationJsonLd(data, imageUrlResolver)} />\n}\n\nexport default OrganizationSchema\n","/**\n * <WebsiteSchema> — Renders Schema.org WebSite JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { WebsiteSchema } from 'sanity-plugin-seofields/next/website'\n *\n * const data = await sanityFetch({ query: `*[_type == \"settings\"][0]{ website }` })\n *\n * <WebsiteSchema data={data.website} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {resolvePolymorphicPersonOrOrg} from '../_shared'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport type {SchemaOrgWebsiteData} from './types'\n\nexport interface WebsiteSchemaProps {\n /** The Schema.org Website data from your Sanity GROQ query. */\n data?: SchemaOrgWebsiteData | null\n}\n\n/**\n * Builds a Schema.org WebSite JSON-LD object from Sanity data.\n * Returns `null` if required fields (name, url) are missing.\n */\nexport function buildWebsiteJsonLd(\n data?: SchemaOrgWebsiteData | null,\n): Record<string, unknown> | null {\n if (!data?.name || !data?.url) return null\n\n const jsonLd: Record<string, unknown> = {\n '@context': 'https://schema.org',\n '@type': 'WebSite',\n name: data.name,\n url: data.url,\n }\n\n if (data.description) jsonLd.description = data.description\n if (data.inLanguage) jsonLd.inLanguage = data.inLanguage\n\n const publisher = resolvePolymorphicPersonOrOrg(data.publisher)\n if (publisher) jsonLd.publisher = publisher\n\n return jsonLd\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org WebSite data.\n * Renders nothing if required fields are missing.\n */\nexport function WebsiteSchema({data}: WebsiteSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildWebsiteJsonLd(data)} />\n}\n\nexport default WebsiteSchema\n","/**\n * <SchemaOrgScripts> — Renders multiple Schema.org JSON-LD script tags\n * from a combined `schemaOrg` array field.\n *\n * @example\n * ```tsx\n * import { SchemaOrgScripts } from 'sanity-plugin-seofields/next'\n *\n * const data = await sanityFetch({ query: `*[_type == \"settings\"][0]{ structuredData }` })\n *\n * <SchemaOrgScripts data={data.structuredData} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {aggregateRatingFields} from './aggregateRating/schema'\nimport {articleFields} from './article/schema'\nimport {blogPostingFields} from './blogPosting/schema'\nimport {bookFields} from './book/schema'\nimport {brandFields} from './brand/schema'\nimport {breadcrumbListFields} from './breadcrumbList/schema'\nimport {contactPointFields} from './contactPoint/schema'\nimport {countryFields} from './country/schema'\nimport {courseFields} from './course/schema'\nimport {eventFields} from './event/schema'\nimport {faqPageFields} from './faqPage/schema'\nimport {buildGenericJsonLd, SchemaFieldDef} from './generator'\nimport {howToFields} from './howTo/schema'\nimport {imageObjectFields} from './imageObject/schema'\nimport {itemListFields} from './itemList/schema'\nimport {jobPostingFields} from './jobPosting/schema'\nimport {legalServiceFields} from './legalService/schema'\nimport {localBusinessFields} from './localBusiness/schema'\nimport {movieFields} from './movie/schema'\nimport {musicAlbumFields} from './musicAlbum/schema'\nimport {musicRecordingFields} from './musicRecording/schema'\nimport {newsArticleFields} from './newsArticle/schema'\nimport {offerFields} from './offer/schema'\nimport {buildOrganizationJsonLd} from './organization/component'\nimport {personFields} from './person/schema'\nimport {placeFields} from './place/schema'\nimport {postalAddressFields} from './postalAddress/schema'\nimport {productFields} from './product/schema'\nimport {profilePageFields} from './profilePage/schema'\nimport {recipeFields} from './recipe/schema'\nimport {restaurantFields} from './restaurant/schema'\nimport {reviewFields} from './review/schema'\nimport {SchemaOrgScript} from './SchemaOrgScript'\nimport {serviceFields} from './service/schema'\nimport {socialMediaPostingFields} from './socialMediaPosting/schema'\nimport {softwareApplicationFields} from './softwareApplication/schema'\nimport {videoObjectFields} from './videoObject/schema'\nimport {webApplicationFields} from './webApplication/schema'\nimport {webPageFields} from './webPage/schema'\nimport {buildWebsiteJsonLd} from './website/component'\n\n// ─── Type → Builder Registry ──────────────────────────────────────────────────\n\ninterface GenericEntry {\n schemaType: string\n fields: SchemaFieldDef[]\n requiredFields: string[]\n}\n\nconst GENERIC_TYPES: Record<string, GenericEntry> = {\n schemaOrgWebPage: {schemaType: 'WebPage', fields: webPageFields, requiredFields: ['name']},\n schemaOrgPerson: {schemaType: 'Person', fields: personFields, requiredFields: ['name']},\n schemaOrgBreadcrumbList: {\n schemaType: 'BreadcrumbList',\n fields: breadcrumbListFields,\n requiredFields: [],\n },\n schemaOrgImageObject: {\n schemaType: 'ImageObject',\n fields: imageObjectFields,\n requiredFields: ['url'],\n },\n schemaOrgArticle: {schemaType: 'Article', fields: articleFields, requiredFields: ['headline']},\n schemaOrgBlogPosting: {\n schemaType: 'BlogPosting',\n fields: blogPostingFields,\n requiredFields: ['headline'],\n },\n schemaOrgFAQPage: {schemaType: 'FAQPage', fields: faqPageFields, requiredFields: []},\n schemaOrgHowTo: {schemaType: 'HowTo', fields: howToFields, requiredFields: ['name']},\n schemaOrgProduct: {schemaType: 'Product', fields: productFields, requiredFields: ['name']},\n schemaOrgOffer: {schemaType: 'Offer', fields: offerFields, requiredFields: ['price']},\n schemaOrgAggregateRating: {\n schemaType: 'AggregateRating',\n fields: aggregateRatingFields,\n requiredFields: ['ratingValue'],\n },\n schemaOrgReview: {schemaType: 'Review', fields: reviewFields, requiredFields: []},\n schemaOrgBrand: {schemaType: 'Brand', fields: brandFields, requiredFields: ['name']},\n schemaOrgLocalBusiness: {\n schemaType: 'LocalBusiness',\n fields: localBusinessFields,\n requiredFields: ['name'],\n },\n schemaOrgPostalAddress: {\n schemaType: 'PostalAddress',\n fields: postalAddressFields,\n requiredFields: [],\n },\n schemaOrgContactPoint: {\n schemaType: 'ContactPoint',\n fields: contactPointFields,\n requiredFields: [],\n },\n schemaOrgSoftwareApplication: {\n schemaType: 'SoftwareApplication',\n fields: softwareApplicationFields,\n requiredFields: ['name'],\n },\n schemaOrgWebApplication: {\n schemaType: 'WebApplication',\n fields: webApplicationFields,\n requiredFields: ['name'],\n },\n schemaOrgEvent: {schemaType: 'Event', fields: eventFields, requiredFields: ['name']},\n schemaOrgPlace: {schemaType: 'Place', fields: placeFields, requiredFields: ['name']},\n schemaOrgVideoObject: {\n schemaType: 'VideoObject',\n fields: videoObjectFields,\n requiredFields: ['name'],\n },\n schemaOrgCourse: {schemaType: 'Course', fields: courseFields, requiredFields: ['name']},\n schemaOrgLegalService: {\n schemaType: 'LegalService',\n fields: legalServiceFields,\n requiredFields: ['name'],\n },\n schemaOrgCountry: {schemaType: 'Country', fields: countryFields, requiredFields: ['name']},\n schemaOrgBook: {schemaType: 'Book', fields: bookFields, requiredFields: ['name']},\n schemaOrgItemList: {\n schemaType: 'ItemList',\n fields: itemListFields,\n requiredFields: ['name'],\n },\n schemaOrgJobPosting: {\n schemaType: 'JobPosting',\n fields: jobPostingFields,\n requiredFields: ['title'],\n },\n schemaOrgMovie: {schemaType: 'Movie', fields: movieFields, requiredFields: ['name']},\n schemaOrgMusicAlbum: {\n schemaType: 'MusicAlbum',\n fields: musicAlbumFields,\n requiredFields: ['name'],\n },\n schemaOrgMusicRecording: {\n schemaType: 'MusicRecording',\n fields: musicRecordingFields,\n requiredFields: ['name'],\n },\n schemaOrgNewsArticle: {\n schemaType: 'NewsArticle',\n fields: newsArticleFields,\n requiredFields: ['headline'],\n },\n schemaOrgProfilePage: {\n schemaType: 'ProfilePage',\n fields: profilePageFields,\n requiredFields: ['name'],\n },\n schemaOrgRecipe: {schemaType: 'Recipe', fields: recipeFields, requiredFields: ['name']},\n schemaOrgRestaurant: {\n schemaType: 'Restaurant',\n fields: restaurantFields,\n requiredFields: ['name'],\n },\n schemaOrgService: {schemaType: 'Service', fields: serviceFields, requiredFields: ['name']},\n schemaOrgSocialMediaPosting: {\n schemaType: 'SocialMediaPosting',\n fields: socialMediaPostingFields,\n requiredFields: ['headline'],\n },\n}\n\nfunction buildJsonLdForItem(item: Record<string, unknown>): Record<string, unknown> | null {\n const type = item._type as string | undefined\n if (!type) return null\n\n // Website and Organization use custom builders\n if (type === 'schemaOrgWebsite') {\n return buildWebsiteJsonLd(item as Parameters<typeof buildWebsiteJsonLd>[0])\n }\n if (type === 'schemaOrgOrganization') {\n return buildOrganizationJsonLd(item as Parameters<typeof buildOrganizationJsonLd>[0])\n }\n\n // All other types use the generic builder\n const entry = GENERIC_TYPES[type]\n if (!entry) return null\n return buildGenericJsonLd(entry.schemaType, item, entry.fields, entry.requiredFields)\n}\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\nexport interface SchemaOrgScriptsProps {\n /** Array of Schema.org items from the combined `schemaOrg` field. */\n data?: Array<Record<string, unknown>> | null\n}\n\n/**\n * Renders one `<script type=\"application/ld+json\">` tag per Schema.org item.\n * Skips items that fail validation (missing required fields).\n */\nexport function SchemaOrgScripts({data}: SchemaOrgScriptsProps): JSX.Element | null {\n if (!data?.length) return null\n\n const scripts = data\n .map((item) => buildJsonLdForItem(item))\n .filter((jsonLd): jsonLd is Record<string, unknown> => jsonLd !== null)\n\n if (!scripts.length) return null\n\n return (\n <>\n {scripts.map((jsonLd) => (\n <SchemaOrgScript key={JSON.stringify(jsonLd)} jsonLd={jsonLd} />\n ))}\n </>\n )\n}\n\nexport default SchemaOrgScripts\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {aggregateRatingFields} from './schema'\nimport type {SchemaOrgAggregateRatingData} from './types'\n\nexport interface AggregateRatingSchemaProps {\n data?: SchemaOrgAggregateRatingData | null\n}\n\nexport function buildAggregateRatingJsonLd(\n data?: SchemaOrgAggregateRatingData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'AggregateRating',\n data as Record<string, unknown> | null | undefined,\n aggregateRatingFields,\n ['ratingValue'],\n )\n}\n\nexport function AggregateRatingSchema({data}: AggregateRatingSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildAggregateRatingJsonLd(data)} />\n}\n\nexport default AggregateRatingSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {articleFields} from './schema'\nimport type {SchemaOrgArticleData} from './types'\n\nexport interface ArticleSchemaProps {\n /** The Schema.org Article data from your Sanity GROQ query. */\n data?: SchemaOrgArticleData | null\n}\n\n/**\n * Builds a Schema.org Article JSON-LD object from Sanity data.\n * Returns `null` if required fields (headline) are missing.\n */\nexport function buildArticleJsonLd(\n data?: SchemaOrgArticleData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Article',\n data as Record<string, unknown> | null | undefined,\n articleFields,\n ['headline'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Article data.\n * Renders nothing if required fields are missing.\n */\nexport function ArticleSchema({data}: ArticleSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildArticleJsonLd(data)} />\n}\n\nexport default ArticleSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {blogPostingFields} from './schema'\nimport type {SchemaOrgBlogPostingData} from './types'\n\nexport interface BlogPostingSchemaProps {\n /** The Schema.org BlogPosting data from your Sanity GROQ query. */\n data?: SchemaOrgBlogPostingData | null\n}\n\n/**\n * Builds a Schema.org BlogPosting JSON-LD object from Sanity data.\n * Returns `null` if required fields (headline) are missing.\n */\nexport function buildBlogPostingJsonLd(\n data?: SchemaOrgBlogPostingData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'BlogPosting',\n data as Record<string, unknown> | null | undefined,\n blogPostingFields,\n ['headline'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org BlogPosting data.\n * Renders nothing if required fields are missing.\n */\nexport function BlogPostingSchema({data}: BlogPostingSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildBlogPostingJsonLd(data)} />\n}\n\nexport default BlogPostingSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {bookFields} from './schema'\nimport type {SchemaOrgBookData} from './types'\n\nexport interface BookSchemaProps {\n data?: SchemaOrgBookData | null\n}\n\nexport function buildBookJsonLd(data?: SchemaOrgBookData | null): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Book',\n data as Record<string, unknown> | null | undefined,\n bookFields,\n ['name'],\n )\n}\n\nexport function BookSchema({data}: BookSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildBookJsonLd(data)} />\n}\n\nexport default BookSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {brandFields} from './schema'\nimport type {SchemaOrgBrandData} from './types'\n\nexport interface BrandSchemaProps {\n data?: SchemaOrgBrandData | null\n}\n\nexport function buildBrandJsonLd(data?: SchemaOrgBrandData | null): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Brand',\n data as Record<string, unknown> | null | undefined,\n brandFields,\n ['name'],\n )\n}\n\nexport function BrandSchema({data}: BrandSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildBrandJsonLd(data)} />\n}\n\nexport default BrandSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {breadcrumbListFields} from './schema'\nimport type {SchemaOrgBreadcrumbListData} from './types'\n\nexport interface BreadcrumbListSchemaProps {\n /** The Schema.org BreadcrumbList data from your Sanity GROQ query. */\n data?: SchemaOrgBreadcrumbListData | null\n}\n\n/**\n * Builds a Schema.org BreadcrumbList JSON-LD object from Sanity data.\n * Returns `null` if data is missing.\n */\nexport function buildBreadcrumbListJsonLd(\n data?: SchemaOrgBreadcrumbListData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'BreadcrumbList',\n data as Record<string, unknown> | null | undefined,\n breadcrumbListFields,\n [],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org BreadcrumbList data.\n * Renders nothing if data is missing.\n */\nexport function BreadcrumbListSchema({data}: BreadcrumbListSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildBreadcrumbListJsonLd(data)} />\n}\n\nexport default BreadcrumbListSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {contactPointFields} from './schema'\nimport type {SchemaOrgContactPointData} from './types'\n\nexport interface ContactPointSchemaProps {\n data?: SchemaOrgContactPointData | null\n}\n\nexport function buildContactPointJsonLd(\n data?: SchemaOrgContactPointData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'ContactPoint',\n data as Record<string, unknown> | null | undefined,\n contactPointFields,\n ['contactType'],\n )\n}\n\nexport function ContactPointSchema({data}: ContactPointSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildContactPointJsonLd(data)} />\n}\n\nexport default ContactPointSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {countryFields} from './schema'\nimport type {SchemaOrgCountryData} from './types'\n\nexport interface CountrySchemaProps {\n /** The Schema.org Country data from your Sanity GROQ query. */\n data?: SchemaOrgCountryData | null\n}\n\n/**\n * Builds a Schema.org Country JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildCountryJsonLd(\n data?: SchemaOrgCountryData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Country',\n data as Record<string, unknown> | null | undefined,\n countryFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Country data.\n * Renders nothing if required fields are missing.\n */\nexport function CountrySchema({data}: CountrySchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildCountryJsonLd(data)} />\n}\n\nexport default CountrySchema\n","/**\n * <CourseSchema> — Renders Schema.org Course JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { CourseSchema } from 'sanity-plugin-seofields/next/course'\n *\n * const data = await sanityFetch({ query: `*[_type == \"course\"][0]{ seo }` })\n *\n * <CourseSchema data={data.seo} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {courseFields} from './schema'\nimport type {SchemaOrgCourseData} from './types'\n\nexport interface CourseSchemaProps {\n /** The Schema.org Course data from your Sanity GROQ query. */\n data?: SchemaOrgCourseData | null\n}\n\n/**\n * Builds a Schema.org Course JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildCourseJsonLd(\n data?: SchemaOrgCourseData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Course',\n data as Record<string, unknown> | null | undefined,\n courseFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Course data.\n * Renders nothing if required fields are missing.\n */\nexport function CourseSchema({data}: CourseSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildCourseJsonLd(data)} />\n}\n\nexport default CourseSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {eventFields} from './schema'\nimport type {SchemaOrgEventData} from './types'\n\nexport interface EventSchemaProps {\n /** The Schema.org Event data from your Sanity GROQ query. */\n data?: SchemaOrgEventData | null\n}\n\n/**\n * Builds a Schema.org Event JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildEventJsonLd(data?: SchemaOrgEventData | null): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Event',\n data as Record<string, unknown> | null | undefined,\n eventFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Event data.\n * Renders nothing if required fields are missing.\n */\nexport function EventSchema({data}: EventSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildEventJsonLd(data)} />\n}\n\nexport default EventSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {faqPageFields} from './schema'\nimport type {SchemaOrgFAQPageData} from './types'\n\nexport interface FAQPageSchemaProps {\n /** The Schema.org FAQPage data from your Sanity GROQ query. */\n data?: SchemaOrgFAQPageData | null\n}\n\n/**\n * Builds a Schema.org FAQPage JSON-LD object from Sanity data.\n * Returns `null` if data is missing.\n */\nexport function buildFAQPageJsonLd(\n data?: SchemaOrgFAQPageData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'FAQPage',\n data as Record<string, unknown> | null | undefined,\n faqPageFields,\n [],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org FAQPage data.\n * Renders nothing if data is missing.\n */\nexport function FAQPageSchema({data}: FAQPageSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildFAQPageJsonLd(data)} />\n}\n\nexport default FAQPageSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {howToFields} from './schema'\nimport type {SchemaOrgHowToData} from './types'\n\nexport interface HowToSchemaProps {\n /** The Schema.org HowTo data from your Sanity GROQ query. */\n data?: SchemaOrgHowToData | null\n}\n\n/**\n * Builds a Schema.org HowTo JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildHowToJsonLd(data?: SchemaOrgHowToData | null): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'HowTo',\n data as Record<string, unknown> | null | undefined,\n howToFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org HowTo data.\n * Renders nothing if required fields are missing.\n */\nexport function HowToSchema({data}: HowToSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildHowToJsonLd(data)} />\n}\n\nexport default HowToSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {imageObjectFields} from './schema'\nimport type {SchemaOrgImageObjectData} from './types'\n\nexport interface ImageObjectSchemaProps {\n data?: SchemaOrgImageObjectData | null\n}\n\nexport function buildImageObjectJsonLd(\n data?: SchemaOrgImageObjectData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'ImageObject',\n data as Record<string, unknown> | null | undefined,\n imageObjectFields,\n ['url'],\n )\n}\n\nexport function ImageObjectSchema({data}: ImageObjectSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildImageObjectJsonLd(data)} />\n}\n\nexport default ImageObjectSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {itemListFields} from './schema'\nimport type {SchemaOrgItemListData} from './types'\n\nexport interface ItemListSchemaProps {\n data?: SchemaOrgItemListData | null\n}\n\nexport function buildItemListJsonLd(\n data?: SchemaOrgItemListData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'ItemList',\n data as Record<string, unknown> | null | undefined,\n itemListFields,\n [],\n )\n}\n\nexport function ItemListSchema({data}: ItemListSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildItemListJsonLd(data)} />\n}\n\nexport default ItemListSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {jobPostingFields} from './schema'\nimport type {SchemaOrgJobPostingData} from './types'\n\nexport interface JobPostingSchemaProps {\n data?: SchemaOrgJobPostingData | null\n}\n\nexport function buildJobPostingJsonLd(\n data?: SchemaOrgJobPostingData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'JobPosting',\n data as Record<string, unknown> | null | undefined,\n jobPostingFields,\n ['title', 'description', 'datePosted'],\n )\n}\n\nexport function JobPostingSchema({data}: JobPostingSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildJobPostingJsonLd(data)} />\n}\n\nexport default JobPostingSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {legalServiceFields} from './schema'\nimport type {SchemaOrgLegalServiceData} from './types'\n\nexport interface LegalServiceSchemaProps {\n /** The Schema.org LegalService data from your Sanity GROQ query. */\n data?: SchemaOrgLegalServiceData | null\n}\n\n/**\n * Builds a Schema.org LegalService JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildLegalServiceJsonLd(\n data?: SchemaOrgLegalServiceData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'LegalService',\n data as Record<string, unknown> | null | undefined,\n legalServiceFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org LegalService data.\n * Renders nothing if required fields are missing.\n */\nexport function LegalServiceSchema({data}: LegalServiceSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildLegalServiceJsonLd(data)} />\n}\n\nexport default LegalServiceSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {localBusinessFields} from './schema'\nimport type {SchemaOrgLocalBusinessData} from './types'\n\nexport interface LocalBusinessSchemaProps {\n /** The Schema.org LocalBusiness data from your Sanity GROQ query. */\n data?: SchemaOrgLocalBusinessData | null\n}\n\n/**\n * Builds a Schema.org LocalBusiness JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildLocalBusinessJsonLd(\n data?: SchemaOrgLocalBusinessData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'LocalBusiness',\n data as Record<string, unknown> | null | undefined,\n localBusinessFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org LocalBusiness data.\n * Renders nothing if required fields are missing.\n */\nexport function LocalBusinessSchema({data}: LocalBusinessSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildLocalBusinessJsonLd(data)} />\n}\n\nexport default LocalBusinessSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {movieFields} from './schema'\nimport type {SchemaOrgMovieData} from './types'\n\nexport interface MovieSchemaProps {\n data?: SchemaOrgMovieData | null\n}\n\nexport function buildMovieJsonLd(data?: SchemaOrgMovieData | null): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Movie',\n data as Record<string, unknown> | null | undefined,\n movieFields,\n ['name'],\n )\n}\n\nexport function MovieSchema({data}: MovieSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildMovieJsonLd(data)} />\n}\n\nexport default MovieSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {musicAlbumFields} from './schema'\nimport type {SchemaOrgMusicAlbumData} from './types'\n\nexport interface MusicAlbumSchemaProps {\n data?: SchemaOrgMusicAlbumData | null\n}\n\nexport function buildMusicAlbumJsonLd(\n data?: SchemaOrgMusicAlbumData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'MusicAlbum',\n data as Record<string, unknown> | null | undefined,\n musicAlbumFields,\n ['name'],\n )\n}\n\nexport function MusicAlbumSchema({data}: MusicAlbumSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildMusicAlbumJsonLd(data)} />\n}\n\nexport default MusicAlbumSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {musicRecordingFields} from './schema'\nimport type {SchemaOrgMusicRecordingData} from './types'\n\nexport interface MusicRecordingSchemaProps {\n data?: SchemaOrgMusicRecordingData | null\n}\n\nexport function buildMusicRecordingJsonLd(\n data?: SchemaOrgMusicRecordingData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'MusicRecording',\n data as Record<string, unknown> | null | undefined,\n musicRecordingFields,\n ['name'],\n )\n}\n\nexport function MusicRecordingSchema({data}: MusicRecordingSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildMusicRecordingJsonLd(data)} />\n}\n\nexport default MusicRecordingSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {newsArticleFields} from './schema'\nimport type {SchemaOrgNewsArticleData} from './types'\n\nexport interface NewsArticleSchemaProps {\n data?: SchemaOrgNewsArticleData | null\n}\n\nexport function buildNewsArticleJsonLd(\n data?: SchemaOrgNewsArticleData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'NewsArticle',\n data as Record<string, unknown> | null | undefined,\n newsArticleFields,\n ['headline', 'datePublished'],\n )\n}\n\nexport function NewsArticleSchema({data}: NewsArticleSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildNewsArticleJsonLd(data)} />\n}\n\nexport default NewsArticleSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {offerFields} from './schema'\nimport type {SchemaOrgOfferData} from './types'\n\nexport interface OfferSchemaProps {\n data?: SchemaOrgOfferData | null\n}\n\nexport function buildOfferJsonLd(data?: SchemaOrgOfferData | null): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Offer',\n data as Record<string, unknown> | null | undefined,\n offerFields,\n ['price'],\n )\n}\n\nexport function OfferSchema({data}: OfferSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildOfferJsonLd(data)} />\n}\n\nexport default OfferSchema\n","/**\n * <PersonSchema> — Renders Schema.org Person JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { PersonSchema } from 'sanity-plugin-seofields/next/person'\n *\n * const data = await sanityFetch({ query: `*[_type == \"teamMember\"][0]{ person }` })\n *\n * <PersonSchema data={data.person} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {personFields} from './schema'\nimport type {SchemaOrgPersonData} from './types'\n\nexport interface PersonSchemaProps {\n /** The Schema.org Person data from your Sanity GROQ query. */\n data?: SchemaOrgPersonData | null\n}\n\n/**\n * Builds a Schema.org Person JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildPersonJsonLd(\n data?: SchemaOrgPersonData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Person',\n data as Record<string, unknown> | null | undefined,\n personFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Person data.\n * Renders nothing if required fields are missing.\n */\nexport function PersonSchema({data}: PersonSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildPersonJsonLd(data)} />\n}\n\nexport default PersonSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {placeFields} from './schema'\nimport type {SchemaOrgPlaceData} from './types'\n\nexport interface PlaceSchemaProps {\n /** The Schema.org Place data from your Sanity GROQ query. */\n data?: SchemaOrgPlaceData | null\n}\n\n/**\n * Builds a Schema.org Place JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildPlaceJsonLd(data?: SchemaOrgPlaceData | null): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Place',\n data as Record<string, unknown> | null | undefined,\n placeFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Place data.\n * Renders nothing if required fields are missing.\n */\nexport function PlaceSchema({data}: PlaceSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildPlaceJsonLd(data)} />\n}\n\nexport default PlaceSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {postalAddressFields} from './schema'\nimport type {SchemaOrgPostalAddressData} from './types'\n\nexport interface PostalAddressSchemaProps {\n data?: SchemaOrgPostalAddressData | null\n}\n\nexport function buildPostalAddressJsonLd(\n data?: SchemaOrgPostalAddressData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'PostalAddress',\n data as Record<string, unknown> | null | undefined,\n postalAddressFields,\n [],\n )\n}\n\nexport function PostalAddressSchema({data}: PostalAddressSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildPostalAddressJsonLd(data)} />\n}\n\nexport default PostalAddressSchema\n","/**\n * <ProductSchema> — Renders Schema.org Product JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { ProductSchema } from 'sanity-plugin-seofields/next/product'\n *\n * const data = await sanityFetch({ query: `*[_type == \"product\"][0]{ seo }` })\n *\n * <ProductSchema data={data.seo} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {productFields} from './schema'\nimport type {SchemaOrgProductData} from './types'\n\nexport interface ProductSchemaProps {\n /** The Schema.org Product data from your Sanity GROQ query. */\n data?: SchemaOrgProductData | null\n}\n\n/**\n * Builds a Schema.org Product JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildProductJsonLd(\n data?: SchemaOrgProductData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Product',\n data as Record<string, unknown> | null | undefined,\n productFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Product data.\n * Renders nothing if required fields are missing.\n */\nexport function ProductSchema({data}: ProductSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildProductJsonLd(data)} />\n}\n\nexport default ProductSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {profilePageFields} from './schema'\nimport type {SchemaOrgProfilePageData} from './types'\n\nexport interface ProfilePageSchemaProps {\n data?: SchemaOrgProfilePageData | null\n}\n\nexport function buildProfilePageJsonLd(\n data?: SchemaOrgProfilePageData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'ProfilePage',\n data as Record<string, unknown> | null | undefined,\n profilePageFields,\n [],\n )\n}\n\nexport function ProfilePageSchema({data}: ProfilePageSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildProfilePageJsonLd(data)} />\n}\n\nexport default ProfilePageSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {recipeFields} from './schema'\nimport type {SchemaOrgRecipeData} from './types'\n\nexport interface RecipeSchemaProps {\n data?: SchemaOrgRecipeData | null\n}\n\nexport function buildRecipeJsonLd(\n data?: SchemaOrgRecipeData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Recipe',\n data as Record<string, unknown> | null | undefined,\n recipeFields,\n ['name'],\n )\n}\n\nexport function RecipeSchema({data}: RecipeSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildRecipeJsonLd(data)} />\n}\n\nexport default RecipeSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {restaurantFields} from './schema'\nimport type {SchemaOrgRestaurantData} from './types'\n\nexport interface RestaurantSchemaProps {\n data?: SchemaOrgRestaurantData | null\n}\n\nexport function buildRestaurantJsonLd(\n data?: SchemaOrgRestaurantData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Restaurant',\n data as Record<string, unknown> | null | undefined,\n restaurantFields,\n ['name'],\n )\n}\n\nexport function RestaurantSchema({data}: RestaurantSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildRestaurantJsonLd(data)} />\n}\n\nexport default RestaurantSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {serviceFields} from './schema'\nimport type {SchemaOrgServiceData} from './types'\n\nexport interface ServiceSchemaProps {\n data?: SchemaOrgServiceData | null\n}\n\nexport function buildServiceJsonLd(\n data?: SchemaOrgServiceData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Service',\n data as Record<string, unknown> | null | undefined,\n serviceFields,\n ['name'],\n )\n}\n\nexport function ServiceSchema({data}: ServiceSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildServiceJsonLd(data)} />\n}\n\nexport default ServiceSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {reviewFields} from './schema'\nimport type {SchemaOrgReviewData} from './types'\n\nexport interface ReviewSchemaProps {\n /** The Schema.org Review data from your Sanity GROQ query. */\n data?: SchemaOrgReviewData | null\n}\n\n/**\n * Builds a Schema.org Review JSON-LD object from Sanity data.\n * Returns `null` if data is missing.\n */\nexport function buildReviewJsonLd(\n data?: SchemaOrgReviewData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'Review',\n data as Record<string, unknown> | null | undefined,\n reviewFields,\n [],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org Review data.\n * Renders nothing if data is missing.\n */\nexport function ReviewSchema({data}: ReviewSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildReviewJsonLd(data)} />\n}\n\nexport default ReviewSchema\n","/**\n * <SoftwareApplicationSchema> — Renders Schema.org SoftwareApplication JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { SoftwareApplicationSchema } from 'sanity-plugin-seofields/next/softwareApplication'\n *\n * const data = await sanityFetch({ query: `*[_type == \"app\"][0]{ seo }` })\n *\n * <SoftwareApplicationSchema data={data.seo} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {softwareApplicationFields} from './schema'\nimport type {SchemaOrgSoftwareApplicationData} from './types'\n\nexport interface SoftwareApplicationSchemaProps {\n /** The Schema.org SoftwareApplication data from your Sanity GROQ query. */\n data?: SchemaOrgSoftwareApplicationData | null\n}\n\n/**\n * Builds a Schema.org SoftwareApplication JSON-LD object from Sanity data.\n * Returns `null` if required fields (name) are missing.\n */\nexport function buildSoftwareApplicationJsonLd(\n data?: SchemaOrgSoftwareApplicationData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'SoftwareApplication',\n data as Record<string, unknown> | null | undefined,\n softwareApplicationFields,\n ['name'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org SoftwareApplication data.\n * Renders nothing if required fields are missing.\n */\nexport function SoftwareApplicationSchema({\n data,\n}: SoftwareApplicationSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildSoftwareApplicationJsonLd(data)} />\n}\n\nexport default SoftwareApplicationSchema\n","import {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {videoObjectFields} from './schema'\nimport type {SchemaOrgVideoObjectData} from './types'\n\nexport interface VideoObjectSchemaProps {\n data?: SchemaOrgVideoObjectData | null\n}\n\nexport function buildVideoObjectJsonLd(\n data?: SchemaOrgVideoObjectData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'VideoObject',\n data as Record<string, unknown> | null | undefined,\n videoObjectFields,\n ['name'],\n )\n}\n\nexport function VideoObjectSchema({data}: VideoObjectSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildVideoObjectJsonLd(data)} />\n}\n\nexport default VideoObjectSchema\n","/**\n * <WebApplicationSchema> — Renders Schema.org WebApplication JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { WebApplicationSchema } from 'sanity-plugin-seofields/next/webApplication'\n *\n * const data = await sanityFetch({ query: `*[_type == \"app\"][0]{ seo }` })\n *\n * <WebApplicationSchema data={data.seo} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {webApplicationFields} from './schema'\nimport type {SchemaOrgWebApplicationData} from './types'\n\nexport interface WebApplicationSchemaProps {\n /** The Schema.org WebApplication data from your Sanity GROQ query. */\n data?: SchemaOrgWebApplicationData | null\n}\n\n/**\n * Builds a Schema.org WebApplication JSON-LD object from Sanity data.\n * Returns `null` if required fields (name, url) are missing.\n */\nexport function buildWebApplicationJsonLd(\n data?: SchemaOrgWebApplicationData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'WebApplication',\n data as Record<string, unknown> | null | undefined,\n webApplicationFields,\n ['name', 'url'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org WebApplication data.\n * Renders nothing if required fields are missing.\n */\nexport function WebApplicationSchema({data}: WebApplicationSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildWebApplicationJsonLd(data)} />\n}\n\nexport default WebApplicationSchema\n","/**\n * <WebPageSchema> — Renders Schema.org WebPage JSON-LD structured data.\n *\n * @example\n * ```tsx\n * import { WebPageSchema } from 'sanity-plugin-seofields/next/webPage'\n *\n * const data = await sanityFetch({ query: `*[_type == \"page\"][0]{ seo }` })\n *\n * <WebPageSchema data={data.seo} />\n * ```\n */\nimport {JSX} from 'react'\n\nimport {buildGenericJsonLd} from '../generator'\nimport {SchemaOrgScript} from '../SchemaOrgScript'\nimport {webPageFields} from './schema'\nimport type {SchemaOrgWebPageData} from './types'\n\nexport interface WebPageSchemaProps {\n /** The Schema.org WebPage data from your Sanity GROQ query. */\n data?: SchemaOrgWebPageData | null\n}\n\n/**\n * Builds a Schema.org WebPage JSON-LD object from Sanity data.\n * Returns `null` if required fields (name, url) are missing.\n */\nexport function buildWebPageJsonLd(\n data?: SchemaOrgWebPageData | null,\n): Record<string, unknown> | null {\n return buildGenericJsonLd(\n 'WebPage',\n data as Record<string, unknown> | null | undefined,\n webPageFields,\n ['name', 'url'],\n )\n}\n\n/**\n * Renders a `<script type=\"application/ld+json\">` tag with Schema.org WebPage data.\n * Renders nothing if required fields are missing.\n */\nexport function WebPageSchema({data}: WebPageSchemaProps): JSX.Element | null {\n return <SchemaOrgScript jsonLd={buildWebPageJsonLd(data)} />\n}\n\nexport default WebPageSchema\n"]}
|
|
@@ -2033,5 +2033,5 @@ var SeoHealthDashboard = ({
|
|
|
2033
2033
|
var SeoHealthDashboard_default = SeoHealthDashboard;
|
|
2034
2034
|
|
|
2035
2035
|
export { SeoHealthDashboard_default };
|
|
2036
|
-
//# sourceMappingURL=chunk-
|
|
2037
|
-
//# sourceMappingURL=chunk-
|
|
2036
|
+
//# sourceMappingURL=chunk-NHJBEV3A.js.map
|
|
2037
|
+
//# sourceMappingURL=chunk-NHJBEV3A.js.map
|