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.
Files changed (70) hide show
  1. package/README.md +4 -4
  2. package/dist/SeoHealthDashboard-7XMPVJRX.cjs +10 -0
  3. package/dist/{SeoHealthDashboard-KPBNXSL4.cjs.map → SeoHealthDashboard-7XMPVJRX.cjs.map} +1 -1
  4. package/dist/SeoHealthDashboard-UWPLB5DM.js +4 -0
  5. package/dist/{SeoHealthDashboard-QKVB5HK3.js.map → SeoHealthDashboard-UWPLB5DM.js.map} +1 -1
  6. package/dist/{SeoHealthTool-ON3SRXCF.cjs → SeoHealthTool-2H4XZR4I.cjs} +4 -4
  7. package/dist/{SeoHealthTool-ON3SRXCF.cjs.map → SeoHealthTool-2H4XZR4I.cjs.map} +1 -1
  8. package/dist/{SeoHealthTool-EPPOEDTW.js → SeoHealthTool-XCXINAQI.js} +3 -3
  9. package/dist/{SeoHealthTool-EPPOEDTW.js.map → SeoHealthTool-XCXINAQI.js.map} +1 -1
  10. package/dist/{SeoPreview-G3LPA7GV.js → SeoPreview-F6GGPZWI.js} +2 -2
  11. package/dist/SeoPreview-F6GGPZWI.js.map +1 -0
  12. package/dist/{SeoPreview-Y3CFDVBR.cjs → SeoPreview-JDROKZLP.cjs} +2 -2
  13. package/dist/SeoPreview-JDROKZLP.cjs.map +1 -0
  14. package/dist/chunk-6NIHHOVS.js +3918 -0
  15. package/dist/chunk-6NIHHOVS.js.map +1 -0
  16. package/dist/chunk-7HCP5O62.cjs +4027 -0
  17. package/dist/chunk-7HCP5O62.cjs.map +1 -0
  18. package/dist/{chunk-527WXITP.js → chunk-KWUITSHS.js} +218 -54
  19. package/dist/chunk-KWUITSHS.js.map +1 -0
  20. package/dist/{chunk-UCVSMPEJ.js → chunk-NHJBEV3A.js} +2 -2
  21. package/dist/{chunk-UCVSMPEJ.js.map → chunk-NHJBEV3A.js.map} +1 -1
  22. package/dist/chunk-WCLEWFAJ.cjs +669 -0
  23. package/dist/chunk-WCLEWFAJ.cjs.map +1 -0
  24. package/dist/{chunk-G2SVI2SP.cjs → chunk-Z74QPO75.cjs} +2 -2
  25. package/dist/{chunk-G2SVI2SP.cjs.map → chunk-Z74QPO75.cjs.map} +1 -1
  26. package/dist/cli.js +25 -25
  27. package/dist/component-7rqDvuy2.d.ts +534 -0
  28. package/dist/component-J2nEQkOw.d.cts +534 -0
  29. package/dist/index.cjs +159 -185
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +43 -51
  32. package/dist/index.d.ts +43 -51
  33. package/dist/index.js +159 -185
  34. package/dist/index.js.map +1 -1
  35. package/dist/next.cjs +155 -51
  36. package/dist/next.d.cts +3 -3
  37. package/dist/next.d.ts +3 -3
  38. package/dist/next.js +2 -2
  39. package/dist/schema/next.cjs +171 -52
  40. package/dist/schema/next.cjs.map +1 -1
  41. package/dist/schema/next.d.cts +12 -428
  42. package/dist/schema/next.d.ts +12 -428
  43. package/dist/schema/next.js +20 -2
  44. package/dist/schema/next.js.map +1 -1
  45. package/dist/schema.cjs +831 -156
  46. package/dist/schema.cjs.map +1 -1
  47. package/dist/schema.d.cts +318 -41
  48. package/dist/schema.d.ts +318 -41
  49. package/dist/schema.js +567 -86
  50. package/dist/schema.js.map +1 -1
  51. package/dist/types-BRn3hfQb.d.ts +24 -0
  52. package/dist/types-BSgolLj3.d.cts +24 -0
  53. package/dist/{types-R3n9Fu4w.d.cts → types-BtSRRG6C.d.cts} +1 -1
  54. package/dist/{types-R3n9Fu4w.d.ts → types-BtSRRG6C.d.ts} +1 -1
  55. package/dist/types-DnVvOp3o.d.ts +1215 -0
  56. package/dist/types-DoUYMRVf.d.cts +1215 -0
  57. package/package.json +2 -1
  58. package/dist/SeoHealthDashboard-KPBNXSL4.cjs +0 -10
  59. package/dist/SeoHealthDashboard-QKVB5HK3.js +0 -4
  60. package/dist/SeoPreview-G3LPA7GV.js.map +0 -1
  61. package/dist/SeoPreview-Y3CFDVBR.cjs.map +0 -1
  62. package/dist/chunk-527WXITP.js.map +0 -1
  63. package/dist/chunk-6CYMVS3O.js +0 -1245
  64. package/dist/chunk-6CYMVS3O.js.map +0 -1
  65. package/dist/chunk-D2GWRRK5.cjs +0 -1293
  66. package/dist/chunk-D2GWRRK5.cjs.map +0 -1
  67. package/dist/chunk-L3L3FSPJ.cjs +0 -478
  68. package/dist/chunk-L3L3FSPJ.cjs.map +0 -1
  69. package/dist/types-CVaAX7uy.d.cts +0 -589
  70. package/dist/types-Ci-ZZT7A.d.ts +0 -589
package/dist/schema.cjs CHANGED
@@ -1,18 +1,428 @@
1
1
  'use strict';
2
2
 
3
- var chunkD2GWRRK5_cjs = require('./chunk-D2GWRRK5.cjs');
4
- require('./chunk-S367Y35J.cjs');
3
+ var chunk7HCP5O62_cjs = require('./chunk-7HCP5O62.cjs');
4
+ var chunkS367Y35J_cjs = require('./chunk-S367Y35J.cjs');
5
+ var icons = require('@sanity/icons');
6
+ var ui = require('@sanity/ui');
7
+ var react = require('react');
8
+ var jsxRuntime = require('react/jsx-runtime');
5
9
  var sanity = require('sanity');
6
10
 
11
+ // src/schema/components/schemaTypeMetadata.ts
12
+ var CATEGORY_LABELS = {
13
+ content: "Content & Pages",
14
+ commerce: "Commerce & Reviews",
15
+ media: "Media",
16
+ people: "People & Organizations",
17
+ navigation: "Navigation",
18
+ location: "Location & Events",
19
+ software: "Software",
20
+ education: "Education"
21
+ };
22
+ var CATEGORY_ORDER = [
23
+ "content",
24
+ "commerce",
25
+ "people",
26
+ "media",
27
+ "navigation",
28
+ "location",
29
+ "software",
30
+ "education"
31
+ ];
32
+ var SCHEMA_TYPE_METADATA = [
33
+ // ─── Content & Pages ──────────────────────────────────────────────
34
+ {
35
+ type: "schemaOrgWebsite",
36
+ title: "Website",
37
+ description: "Represents an entire website with search action support.",
38
+ category: "content",
39
+ keywords: ["site", "homepage", "search action"]
40
+ },
41
+ {
42
+ type: "schemaOrgWebPage",
43
+ title: "Web Page",
44
+ description: "A single web page with metadata and publisher info.",
45
+ category: "content",
46
+ keywords: ["page", "about", "contact", "landing"]
47
+ },
48
+ {
49
+ type: "schemaOrgArticle",
50
+ title: "Article",
51
+ description: "News articles, blog posts, and editorial content.",
52
+ category: "content",
53
+ keywords: ["news", "blog", "post", "editorial", "story"]
54
+ },
55
+ {
56
+ type: "schemaOrgBlogPosting",
57
+ title: "Blog Posting",
58
+ description: "Blog post with author, date, and content metadata.",
59
+ category: "content",
60
+ keywords: ["blog", "post", "writing"]
61
+ },
62
+ {
63
+ type: "schemaOrgFAQPage",
64
+ title: "FAQ Page",
65
+ description: "Frequently asked questions with rich result support.",
66
+ category: "content",
67
+ keywords: ["faq", "questions", "answers", "help"]
68
+ },
69
+ {
70
+ type: "schemaOrgHowTo",
71
+ title: "How-To",
72
+ description: "Step-by-step instructions with supplies, tools, and costs.",
73
+ category: "content",
74
+ keywords: ["tutorial", "guide", "steps", "instructions", "diy"]
75
+ },
76
+ {
77
+ type: "schemaOrgRecipe",
78
+ title: "Recipe",
79
+ description: "Cooking recipes with ingredients, nutrition, and times.",
80
+ category: "content",
81
+ keywords: ["cooking", "food", "ingredients", "nutrition", "meal"]
82
+ },
83
+ {
84
+ type: "schemaOrgSocialMediaPosting",
85
+ title: "Social Media Posting",
86
+ description: "Social media content with shared links and engagement.",
87
+ category: "content",
88
+ keywords: ["social", "post", "share", "twitter", "facebook"]
89
+ },
90
+ // ─── Commerce & Reviews ───────────────────────────────────────────
91
+ {
92
+ type: "schemaOrgProduct",
93
+ title: "Product",
94
+ description: "Products with pricing, ratings, and availability.",
95
+ category: "commerce",
96
+ keywords: ["ecommerce", "shop", "buy", "price", "store"]
97
+ },
98
+ {
99
+ type: "schemaOrgOffer",
100
+ title: "Offer",
101
+ description: "Pricing and availability for products or services.",
102
+ category: "commerce",
103
+ keywords: ["price", "deal", "discount", "availability"]
104
+ },
105
+ {
106
+ type: "schemaOrgAggregateRating",
107
+ title: "Aggregate Rating",
108
+ description: "Overall rating from multiple reviews.",
109
+ category: "commerce",
110
+ keywords: ["stars", "rating", "score", "average"]
111
+ },
112
+ {
113
+ type: "schemaOrgReview",
114
+ title: "Review",
115
+ description: "Individual review with rating and author.",
116
+ category: "commerce",
117
+ keywords: ["feedback", "testimonial", "rating", "critique"]
118
+ },
119
+ {
120
+ type: "schemaOrgBrand",
121
+ title: "Brand",
122
+ description: "Brand identity and recognition.",
123
+ category: "commerce",
124
+ keywords: ["brand", "label", "manufacturer"]
125
+ },
126
+ {
127
+ type: "schemaOrgService",
128
+ title: "Service",
129
+ description: "Professional services with provider and catalog.",
130
+ category: "commerce",
131
+ keywords: ["consulting", "professional", "provider", "catalog"]
132
+ },
133
+ // ─── People & Organizations ───────────────────────────────────────
134
+ {
135
+ type: "schemaOrgPerson",
136
+ title: "Person",
137
+ description: "Individual profile with contact info and social links.",
138
+ category: "people",
139
+ keywords: ["author", "profile", "employee", "contact"]
140
+ },
141
+ {
142
+ type: "schemaOrgOrganization",
143
+ title: "Organization",
144
+ description: "Company or organization with departments and contacts.",
145
+ category: "people",
146
+ keywords: ["company", "business", "corporation", "ngo"]
147
+ },
148
+ {
149
+ type: "schemaOrgLocalBusiness",
150
+ title: "Local Business",
151
+ description: "Local business with hours, location, and reviews.",
152
+ category: "people",
153
+ keywords: ["store", "restaurant", "shop", "local", "maps"]
154
+ },
155
+ {
156
+ type: "schemaOrgContactPoint",
157
+ title: "Contact Point",
158
+ description: "Contact information \u2014 phone, email, languages.",
159
+ category: "people",
160
+ keywords: ["phone", "email", "support", "helpdesk"]
161
+ },
162
+ {
163
+ type: "schemaOrgPostalAddress",
164
+ title: "Postal Address",
165
+ description: "Physical mailing address.",
166
+ category: "people",
167
+ keywords: ["address", "street", "zip", "city", "mailing"]
168
+ },
169
+ // ─── Media ────────────────────────────────────────────────────────
170
+ {
171
+ type: "schemaOrgImageObject",
172
+ title: "Image Object",
173
+ description: "Image with metadata, author, and location.",
174
+ category: "media",
175
+ keywords: ["photo", "picture", "graphic", "illustration"]
176
+ },
177
+ {
178
+ type: "schemaOrgVideoObject",
179
+ title: "Video Object",
180
+ description: "Video with thumbnails, duration, and seek actions.",
181
+ category: "media",
182
+ keywords: ["video", "youtube", "vimeo", "clip", "film"]
183
+ },
184
+ // ─── Navigation ───────────────────────────────────────────────────
185
+ {
186
+ type: "schemaOrgBreadcrumbList",
187
+ title: "Breadcrumb List",
188
+ description: "Page hierarchy breadcrumb trail for navigation.",
189
+ category: "navigation",
190
+ keywords: ["breadcrumb", "path", "hierarchy", "trail"]
191
+ },
192
+ // ─── Location & Events ────────────────────────────────────────────
193
+ {
194
+ type: "schemaOrgEvent",
195
+ title: "Event",
196
+ description: "Events with dates, location, and organizer.",
197
+ category: "location",
198
+ keywords: ["conference", "meetup", "webinar", "concert"]
199
+ },
200
+ {
201
+ type: "schemaOrgPlace",
202
+ title: "Place",
203
+ description: "A physical location with address.",
204
+ category: "location",
205
+ keywords: ["venue", "location", "landmark", "spot"]
206
+ },
207
+ {
208
+ type: "schemaOrgCountry",
209
+ title: "Country",
210
+ description: "A country (extends Place) \u2014 useful for geographic targeting.",
211
+ category: "location",
212
+ keywords: ["country", "nation", "geography", "region"]
213
+ },
214
+ {
215
+ type: "schemaOrgLegalService",
216
+ title: "Legal Service",
217
+ description: "Law firm or legal practice (extends LocalBusiness).",
218
+ category: "people",
219
+ keywords: ["law", "lawyer", "attorney", "firm", "legal"]
220
+ },
221
+ // ─── Software ─────────────────────────────────────────────────────
222
+ {
223
+ type: "schemaOrgSoftwareApplication",
224
+ title: "Software Application",
225
+ description: "Desktop or mobile application.",
226
+ category: "software",
227
+ keywords: ["app", "tool", "program", "desktop", "mobile"]
228
+ },
229
+ {
230
+ type: "schemaOrgWebApplication",
231
+ title: "Web Application",
232
+ description: "Web-based application or SaaS tool.",
233
+ category: "software",
234
+ keywords: ["webapp", "saas", "online", "cloud"]
235
+ },
236
+ // ─── Education ────────────────────────────────────────────────────
237
+ {
238
+ type: "schemaOrgCourse",
239
+ title: "Course",
240
+ description: "Educational course with provider info.",
241
+ category: "education",
242
+ keywords: ["learning", "class", "training", "workshop", "tutorial"]
243
+ },
244
+ // ─── New Schema Types ──────────────────────────────────────────────
245
+ {
246
+ type: "schemaOrgJobPosting",
247
+ title: "Job Posting",
248
+ description: "A job listing with salary, location, and requirements.",
249
+ category: "people",
250
+ keywords: ["job", "career", "hiring", "employment", "vacancy", "work"]
251
+ },
252
+ {
253
+ type: "schemaOrgRestaurant",
254
+ title: "Restaurant",
255
+ description: "A restaurant or dining establishment.",
256
+ category: "commerce",
257
+ keywords: ["restaurant", "dining", "food", "cuisine", "eatery"]
258
+ },
259
+ {
260
+ type: "schemaOrgMovie",
261
+ title: "Movie",
262
+ description: "A movie or film with cast and crew details.",
263
+ category: "media",
264
+ keywords: ["movie", "film", "cinema", "motion picture"]
265
+ },
266
+ {
267
+ type: "schemaOrgBook",
268
+ title: "Book",
269
+ description: "A book, e-book, or audiobook publication.",
270
+ category: "commerce",
271
+ keywords: ["book", "ebook", "publication", "novel", "isbn"]
272
+ },
273
+ {
274
+ type: "schemaOrgNewsArticle",
275
+ title: "News Article",
276
+ description: "A news story \u2014 distinct from generic Article for news publishers.",
277
+ category: "content",
278
+ keywords: ["news", "journalism", "press", "story", "report"]
279
+ },
280
+ {
281
+ type: "schemaOrgItemList",
282
+ title: "Item List",
283
+ description: "An ordered or unordered list of items (carousel).",
284
+ category: "navigation",
285
+ keywords: ["list", "carousel", "items", "collection"]
286
+ },
287
+ {
288
+ type: "schemaOrgProfilePage",
289
+ title: "Profile Page",
290
+ description: "A profile page for a person or organization.",
291
+ category: "content",
292
+ keywords: ["profile", "about", "bio", "author", "creator"]
293
+ },
294
+ {
295
+ type: "schemaOrgMusicRecording",
296
+ title: "Music Recording",
297
+ description: "An individual song or music track.",
298
+ category: "media",
299
+ keywords: ["song", "track", "music", "recording", "single"]
300
+ },
301
+ {
302
+ type: "schemaOrgMusicAlbum",
303
+ title: "Music Album",
304
+ description: "A music album or collection of tracks.",
305
+ category: "media",
306
+ keywords: ["album", "music", "record", "lp", "ep", "release"]
307
+ }
308
+ ];
309
+ function matchesSearch(info, query) {
310
+ const q = query.toLowerCase();
311
+ return info.title.toLowerCase().includes(q) || info.description.toLowerCase().includes(q) || info.keywords.some((kw) => kw.toLowerCase().includes(q));
312
+ }
313
+ function groupByCategory(items) {
314
+ const map = /* @__PURE__ */ new Map();
315
+ for (const cat of CATEGORY_ORDER) {
316
+ const matches = items.filter((i) => i.category === cat);
317
+ if (matches.length) map.set(cat, matches);
318
+ }
319
+ return map;
320
+ }
321
+ function TypeArrayFunctions(props) {
322
+ const { onValueCreate, schemaType, onItemAppend } = props;
323
+ const [open, setOpen] = react.useState(false);
324
+ const [search, setSearch] = react.useState("");
325
+ const onClose = react.useCallback(() => {
326
+ setOpen(false);
327
+ setSearch("");
328
+ }, []);
329
+ const onOpen = react.useCallback(() => setOpen(true), []);
330
+ const handleSearchChange = react.useCallback((e) => {
331
+ setSearch(e.currentTarget.value);
332
+ }, []);
333
+ const availableTypes = react.useMemo(() => {
334
+ const typeNames = new Set(schemaType.of.map((t) => t.name));
335
+ return SCHEMA_TYPE_METADATA.filter((m) => typeNames.has(m.type));
336
+ }, [schemaType.of]);
337
+ const filtered = react.useMemo(
338
+ () => search ? availableTypes.filter((t) => matchesSearch(t, search)) : availableTypes,
339
+ [availableTypes, search]
340
+ );
341
+ const grouped = react.useMemo(() => groupByCategory(filtered), [filtered]);
342
+ const handleSelect = react.useCallback(
343
+ (typeName) => {
344
+ const schemaItem = schemaType.of.find((t) => t.name === typeName);
345
+ if (schemaItem) {
346
+ const value = onValueCreate(schemaItem);
347
+ onItemAppend(value);
348
+ }
349
+ onClose();
350
+ },
351
+ [schemaType.of, onValueCreate, onItemAppend, onClose]
352
+ );
353
+ const handleCardClick = react.useCallback((typeName) => handleSelect(typeName), [handleSelect]);
354
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 4, children: [
355
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { icon: icons.AddIcon, text: "Add Schema Type", mode: "ghost", onClick: onOpen }),
356
+ open && /* @__PURE__ */ jsxRuntime.jsx(
357
+ ui.Dialog,
358
+ {
359
+ header: "Add Schema.org Type",
360
+ id: "schema-type-picker",
361
+ onClose,
362
+ zOffset: 1e3,
363
+ width: 1,
364
+ children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { padding: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 4, children: [
365
+ /* @__PURE__ */ jsxRuntime.jsx(
366
+ ui.TextInput,
367
+ {
368
+ icon: icons.SearchIcon,
369
+ placeholder: "Search schema types\u2026",
370
+ value: search,
371
+ onChange: handleSearchChange,
372
+ autoFocus: true
373
+ }
374
+ ),
375
+ grouped.size === 0 ? /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { padding: 4, tone: "transparent", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { muted: true, size: 1, children: "No matching schema types found." }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { space: 5, children: Array.from(grouped.entries()).map(([category, types]) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 3, children: [
376
+ /* @__PURE__ */ jsxRuntime.jsx(
377
+ ui.Heading,
378
+ {
379
+ size: 0,
380
+ style: { textTransform: "uppercase", letterSpacing: "0.05em" },
381
+ children: CATEGORY_LABELS[category]
382
+ }
383
+ ),
384
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Grid, { columns: [1, 1, 2], gap: 2, children: types.map((info) => {
385
+ const schemaItem = schemaType.of.find((t) => t.name === info.type);
386
+ const Icon = schemaItem == null ? void 0 : schemaItem.icon;
387
+ return /* @__PURE__ */ jsxRuntime.jsx(
388
+ ui.Card,
389
+ {
390
+ as: "button",
391
+ padding: 3,
392
+ radius: 2,
393
+ shadow: 1,
394
+ tone: "default",
395
+ onClick: () => handleCardClick(info.type),
396
+ style: { cursor: "pointer", textAlign: "left" },
397
+ children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gap: 3, align: "flex-start", children: [
398
+ Icon && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { style: { flexShrink: 0, marginTop: 2 }, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: 2, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, {}) }) }),
399
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 2, children: [
400
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { weight: "semibold", size: 1, children: info.title }),
401
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { muted: true, size: 0, children: info.description })
402
+ ] })
403
+ ] })
404
+ },
405
+ info.type
406
+ );
407
+ }) })
408
+ ] }, category)) })
409
+ ] }) })
410
+ }
411
+ )
412
+ ] });
413
+ }
414
+ function TypePickerInput(props) {
415
+ const { renderDefault } = props;
416
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { space: 3, children: renderDefault(chunkS367Y35J_cjs.__spreadProps(chunkS367Y35J_cjs.__spreadValues({}, props), { arrayFunctions: TypeArrayFunctions })) });
417
+ }
418
+
7
419
  // src/schema/organization/schema.ts
8
420
  var organizationFields = [
9
- {
10
- name: "name",
421
+ chunk7HCP5O62_cjs.nameField({
11
422
  title: "Organization Name",
12
- type: "string",
13
423
  description: "The official name of the organization.",
14
424
  required: { key: "nameRequired", message: "Organization name is required for Schema.org." }
15
- },
425
+ }),
16
426
  {
17
427
  name: "url",
18
428
  title: "Organization URL",
@@ -33,12 +443,18 @@ var organizationFields = [
33
443
  rows: 3,
34
444
  description: "A short description of the organization."
35
445
  },
446
+ {
447
+ name: "alternateName",
448
+ title: "Alternate Name",
449
+ type: "string",
450
+ description: "An alias or alternate name for the organization."
451
+ },
36
452
  {
37
453
  name: "sameAs",
38
- title: "Social / External Profiles",
39
- type: "array",
40
- of: [{ type: "url" }],
41
- description: "URLs of social media profiles and other authoritative pages (Twitter, LinkedIn, GitHub, etc.)."
454
+ title: "Same As URL",
455
+ type: "url",
456
+ description: "URLs of social media profiles and other authoritative pages (Twitter, LinkedIn, GitHub, etc.).",
457
+ urlValidation: { schemes: ["http", "https"] }
42
458
  },
43
459
  {
44
460
  name: "contactPoint",
@@ -75,15 +491,40 @@ var organizationFields = [
75
491
  initialValue: ["English"]
76
492
  }
77
493
  ]
494
+ },
495
+ {
496
+ name: "department",
497
+ title: "Departments",
498
+ type: "array",
499
+ description: "Departments within the organization.",
500
+ jsonLdType: "Organization",
501
+ fields: [
502
+ {
503
+ name: "name",
504
+ title: "Department Name",
505
+ type: "string"
506
+ },
507
+ {
508
+ name: "url",
509
+ title: "Department URL",
510
+ type: "url"
511
+ },
512
+ {
513
+ name: "telephone",
514
+ title: "Department Phone",
515
+ type: "string"
516
+ }
517
+ ]
78
518
  }
79
519
  ];
80
520
  function schemaOrgOrganization(config = {}) {
81
- return chunkD2GWRRK5_cjs.generateSchemaType(
521
+ return chunk7HCP5O62_cjs.generateSchemaType(
82
522
  {
83
523
  name: "schemaOrgOrganization",
84
- title: "Schema.org \u2014 Organization",
85
- icon: chunkD2GWRRK5_cjs.SchemaOrgIcons.organization,
86
- fields: organizationFields
524
+ title: "Organization",
525
+ icon: chunk7HCP5O62_cjs.SchemaOrgIcons.organization,
526
+ fields: organizationFields,
527
+ customPrepareSubtitle: (document) => document.name ? `${document.name}${document.url ? ` \xB7 ${document.url}` : ""}` : "Untitled organization"
87
528
  },
88
529
  config
89
530
  );
@@ -91,82 +532,40 @@ function schemaOrgOrganization(config = {}) {
91
532
 
92
533
  // src/schema/website/schema.ts
93
534
  var websiteFields = [
94
- {
95
- name: "name",
535
+ chunk7HCP5O62_cjs.nameField({
96
536
  title: "Website Name",
97
- type: "string",
98
537
  description: "The name of the website.",
99
538
  required: { key: "nameRequired", message: "Website name is required for Schema.org." }
100
- },
101
- {
102
- name: "url",
539
+ }),
540
+ chunk7HCP5O62_cjs.urlField({
103
541
  title: "Website URL",
104
- type: "url",
105
542
  description: 'The full URL of the website, e.g. "https://www.example.com".',
106
543
  required: { key: "urlRequired", message: "Website URL is required for Schema.org." }
107
- },
108
- {
109
- name: "description",
110
- title: "Description",
111
- type: "text",
112
- rows: 3,
544
+ }),
545
+ chunk7HCP5O62_cjs.descriptionField({
113
546
  description: "A short description of the website."
114
- },
115
- {
116
- name: "inLanguage",
117
- title: "Language",
118
- type: "string",
119
- description: 'The language of the website content, e.g. "en".',
120
- initialValue: "en",
121
- options: [
122
- { title: "English", value: "en" },
123
- { title: "Spanish", value: "es" },
124
- { title: "French", value: "fr" },
125
- { title: "German", value: "de" },
126
- { title: "Portuguese", value: "pt" },
127
- { title: "Italian", value: "it" },
128
- { title: "Dutch", value: "nl" },
129
- { title: "Japanese", value: "ja" },
130
- { title: "Chinese", value: "zh" },
131
- { title: "Korean", value: "ko" },
132
- { title: "Hindi", value: "hi" },
133
- { title: "Arabic", value: "ar" }
134
- ]
135
- },
136
- {
137
- name: "publisher",
138
- title: "Publisher",
139
- type: "object",
140
- description: "The organization that publishes this website.",
141
- fields: [
142
- {
143
- name: "name",
144
- title: "Publisher Name",
145
- type: "string",
146
- description: "Name of the publishing organization."
147
- },
148
- {
149
- name: "url",
150
- title: "Publisher URL",
151
- type: "url",
152
- description: "URL of the publishing organization."
153
- },
154
- {
155
- name: "logoUrl",
156
- title: "Publisher Logo URL",
157
- type: "url",
158
- description: "URL to the publisher logo image."
159
- }
160
- ]
161
- }
547
+ }),
548
+ chunk7HCP5O62_cjs.inLanguageField({ description: 'The language of the website content, e.g. "en".' }),
549
+ chunk7HCP5O62_cjs.polymorphicPublisher({ description: "The organization or person that publishes this website." }),
550
+ chunk7HCP5O62_cjs.potentialActionSearch({
551
+ description: "Enables the sitelinks search box in Google. Configure the search URL template."
552
+ }),
553
+ chunk7HCP5O62_cjs.issnField({
554
+ description: "The ISSN (International Standard Serial Number) of the website, if applicable."
555
+ })
162
556
  ];
163
557
  function schemaOrgWebsite(config = {}) {
164
- return chunkD2GWRRK5_cjs.generateSchemaType(
558
+ return chunk7HCP5O62_cjs.generateSchemaType(
165
559
  {
166
560
  name: "schemaOrgWebsite",
167
- title: "Schema.org \u2014 Website",
168
- icon: chunkD2GWRRK5_cjs.SchemaOrgIcons.website,
169
- fields: websiteFields
561
+ title: "Website",
562
+ icon: chunk7HCP5O62_cjs.SchemaOrgIcons.website,
563
+ fields: websiteFields,
564
+ customPrepareSubtitle: (document) => {
565
+ const name = document.name ? `${document.name}` : "Untitled website";
566
+ const url = document.url ? ` \xB7 ${document.url}` : "";
567
+ return `${name}${url}`;
568
+ }
170
569
  },
171
570
  config
172
571
  );
@@ -197,7 +596,21 @@ var ALL_SCHEMA_ORG_TYPES = [
197
596
  "schemaOrgCourse",
198
597
  "schemaOrgImageObject",
199
598
  "schemaOrgPostalAddress",
200
- "schemaOrgContactPoint"
599
+ "schemaOrgContactPoint",
600
+ "schemaOrgRecipe",
601
+ "schemaOrgService",
602
+ "schemaOrgSocialMediaPosting",
603
+ "schemaOrgLegalService",
604
+ "schemaOrgCountry",
605
+ "schemaOrgJobPosting",
606
+ "schemaOrgRestaurant",
607
+ "schemaOrgMovie",
608
+ "schemaOrgBook",
609
+ "schemaOrgNewsArticle",
610
+ "schemaOrgItemList",
611
+ "schemaOrgProfilePage",
612
+ "schemaOrgMusicRecording",
613
+ "schemaOrgMusicAlbum"
201
614
  ];
202
615
  var schemaOrgWebsitePlugin = sanity.definePlugin((config = {}) => ({
203
616
  name: "sanity-plugin-seofields/schema-org-website",
@@ -209,99 +622,159 @@ var schemaOrgOrganizationPlugin = sanity.definePlugin((config = {}) => ({
209
622
  }));
210
623
  var schemaOrgWebPagePlugin = sanity.definePlugin((config = {}) => ({
211
624
  name: "sanity-plugin-seofields/schema-org-webpage",
212
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgWebPage(config)] }
625
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgWebPage(config)] }
213
626
  }));
214
627
  var schemaOrgPersonPlugin = sanity.definePlugin((config = {}) => ({
215
628
  name: "sanity-plugin-seofields/schema-org-person",
216
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgPerson(config)] }
629
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgPerson(config)] }
217
630
  }));
218
631
  var schemaOrgBreadcrumbListPlugin = sanity.definePlugin(
219
632
  (config = {}) => ({
220
633
  name: "sanity-plugin-seofields/schema-org-breadcrumblist",
221
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgBreadcrumbList(config)] }
634
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgBreadcrumbList(config)] }
222
635
  })
223
636
  );
224
637
  var schemaOrgImageObjectPlugin = sanity.definePlugin((config = {}) => ({
225
638
  name: "sanity-plugin-seofields/schema-org-imageobject",
226
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgImageObject(config)] }
639
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgImageObject(config)] }
227
640
  }));
228
641
  var schemaOrgArticlePlugin = sanity.definePlugin((config = {}) => ({
229
642
  name: "sanity-plugin-seofields/schema-org-article",
230
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgArticle(config)] }
643
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgArticle(config)] }
231
644
  }));
232
645
  var schemaOrgBlogPostingPlugin = sanity.definePlugin((config = {}) => ({
233
646
  name: "sanity-plugin-seofields/schema-org-blogposting",
234
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgBlogPosting(config)] }
647
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgBlogPosting(config)] }
235
648
  }));
236
649
  var schemaOrgFAQPagePlugin = sanity.definePlugin((config = {}) => ({
237
650
  name: "sanity-plugin-seofields/schema-org-faqpage",
238
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgFAQPage(config)] }
651
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgFAQPage(config)] }
239
652
  }));
240
653
  var schemaOrgHowToPlugin = sanity.definePlugin((config = {}) => ({
241
654
  name: "sanity-plugin-seofields/schema-org-howto",
242
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgHowTo(config)] }
655
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgHowTo(config)] }
243
656
  }));
244
657
  var schemaOrgProductPlugin = sanity.definePlugin((config = {}) => ({
245
658
  name: "sanity-plugin-seofields/schema-org-product",
246
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgProduct(config)] }
659
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgProduct(config)] }
247
660
  }));
248
661
  var schemaOrgOfferPlugin = sanity.definePlugin((config = {}) => ({
249
662
  name: "sanity-plugin-seofields/schema-org-offer",
250
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgOffer(config)] }
663
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgOffer(config)] }
251
664
  }));
252
665
  var schemaOrgAggregateRatingPlugin = sanity.definePlugin(
253
666
  (config = {}) => ({
254
667
  name: "sanity-plugin-seofields/schema-org-aggregaterating",
255
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgAggregateRating(config)] }
668
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgAggregateRating(config)] }
256
669
  })
257
670
  );
258
671
  var schemaOrgReviewPlugin = sanity.definePlugin((config = {}) => ({
259
672
  name: "sanity-plugin-seofields/schema-org-review",
260
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgReview(config)] }
673
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgReview(config)] }
261
674
  }));
262
675
  var schemaOrgBrandPlugin = sanity.definePlugin((config = {}) => ({
263
676
  name: "sanity-plugin-seofields/schema-org-brand",
264
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgBrand(config)] }
677
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgBrand(config)] }
265
678
  }));
266
679
  var schemaOrgLocalBusinessPlugin = sanity.definePlugin((config = {}) => ({
267
680
  name: "sanity-plugin-seofields/schema-org-localbusiness",
268
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgLocalBusiness(config)] }
681
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgLocalBusiness(config)] }
269
682
  }));
270
683
  var schemaOrgPostalAddressPlugin = sanity.definePlugin((config = {}) => ({
271
684
  name: "sanity-plugin-seofields/schema-org-postaladdress",
272
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgPostalAddress(config)] }
685
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgPostalAddress(config)] }
273
686
  }));
274
687
  var schemaOrgContactPointPlugin = sanity.definePlugin((config = {}) => ({
275
688
  name: "sanity-plugin-seofields/schema-org-contactpoint",
276
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgContactPoint(config)] }
689
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgContactPoint(config)] }
277
690
  }));
278
691
  var schemaOrgSoftwareApplicationPlugin = sanity.definePlugin(
279
692
  (config = {}) => ({
280
693
  name: "sanity-plugin-seofields/schema-org-softwareapplication",
281
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgSoftwareApplication(config)] }
694
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgSoftwareApplication(config)] }
282
695
  })
283
696
  );
284
697
  var schemaOrgWebApplicationPlugin = sanity.definePlugin(
285
698
  (config = {}) => ({
286
699
  name: "sanity-plugin-seofields/schema-org-webapplication",
287
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgWebApplication(config)] }
700
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgWebApplication(config)] }
288
701
  })
289
702
  );
290
703
  var schemaOrgEventPlugin = sanity.definePlugin((config = {}) => ({
291
704
  name: "sanity-plugin-seofields/schema-org-event",
292
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgEvent(config)] }
705
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgEvent(config)] }
293
706
  }));
294
707
  var schemaOrgPlacePlugin = sanity.definePlugin((config = {}) => ({
295
708
  name: "sanity-plugin-seofields/schema-org-place",
296
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgPlace(config)] }
709
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgPlace(config)] }
297
710
  }));
298
711
  var schemaOrgVideoObjectPlugin = sanity.definePlugin((config = {}) => ({
299
712
  name: "sanity-plugin-seofields/schema-org-videoobject",
300
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgVideoObject(config)] }
713
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgVideoObject(config)] }
301
714
  }));
302
715
  var schemaOrgCoursePlugin = sanity.definePlugin((config = {}) => ({
303
716
  name: "sanity-plugin-seofields/schema-org-course",
304
- schema: { types: [chunkD2GWRRK5_cjs.schemaOrgCourse(config)] }
717
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgCourse(config)] }
718
+ }));
719
+ var schemaOrgRecipePlugin = sanity.definePlugin((config = {}) => ({
720
+ name: "sanity-plugin-seofields/schema-org-recipe",
721
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgRecipe(config)] }
722
+ }));
723
+ var schemaOrgServicePlugin = sanity.definePlugin((config = {}) => ({
724
+ name: "sanity-plugin-seofields/schema-org-service",
725
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgService(config)] }
726
+ }));
727
+ var schemaOrgSocialMediaPostingPlugin = sanity.definePlugin(
728
+ (config = {}) => ({
729
+ name: "sanity-plugin-seofields/schema-org-socialmediaposting",
730
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgSocialMediaPosting(config)] }
731
+ })
732
+ );
733
+ var schemaOrgLegalServicePlugin = sanity.definePlugin((config = {}) => ({
734
+ name: "sanity-plugin-seofields/schema-org-legalservice",
735
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgLegalService(config)] }
736
+ }));
737
+ var schemaOrgCountryPlugin = sanity.definePlugin((config = {}) => ({
738
+ name: "sanity-plugin-seofields/schema-org-country",
739
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgCountry(config)] }
740
+ }));
741
+ var schemaOrgJobPostingPlugin = sanity.definePlugin((config = {}) => ({
742
+ name: "sanity-plugin-seofields/schema-org-jobposting",
743
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgJobPosting(config)] }
744
+ }));
745
+ var schemaOrgRestaurantPlugin = sanity.definePlugin((config = {}) => ({
746
+ name: "sanity-plugin-seofields/schema-org-restaurant",
747
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgRestaurant(config)] }
748
+ }));
749
+ var schemaOrgMoviePlugin = sanity.definePlugin((config = {}) => ({
750
+ name: "sanity-plugin-seofields/schema-org-movie",
751
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgMovie(config)] }
752
+ }));
753
+ var schemaOrgBookPlugin = sanity.definePlugin((config = {}) => ({
754
+ name: "sanity-plugin-seofields/schema-org-book",
755
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgBook(config)] }
756
+ }));
757
+ var schemaOrgNewsArticlePlugin = sanity.definePlugin((config = {}) => ({
758
+ name: "sanity-plugin-seofields/schema-org-newsarticle",
759
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgNewsArticle(config)] }
760
+ }));
761
+ var schemaOrgItemListPlugin = sanity.definePlugin((config = {}) => ({
762
+ name: "sanity-plugin-seofields/schema-org-itemlist",
763
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgItemList(config)] }
764
+ }));
765
+ var schemaOrgProfilePagePlugin = sanity.definePlugin((config = {}) => ({
766
+ name: "sanity-plugin-seofields/schema-org-profilepage",
767
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgProfilePage(config)] }
768
+ }));
769
+ var schemaOrgMusicRecordingPlugin = sanity.definePlugin(
770
+ (config = {}) => ({
771
+ name: "sanity-plugin-seofields/schema-org-musicrecording",
772
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgMusicRecording(config)] }
773
+ })
774
+ );
775
+ var schemaOrgMusicAlbumPlugin = sanity.definePlugin((config = {}) => ({
776
+ name: "sanity-plugin-seofields/schema-org-musicalbum",
777
+ schema: { types: [chunk7HCP5O62_cjs.schemaOrgMusicAlbum(config)] }
305
778
  }));
306
779
  var schemaOrg = sanity.definePlugin((config = {}) => {
307
780
  const c = config;
@@ -311,42 +784,50 @@ var schemaOrg = sanity.definePlugin((config = {}) => {
311
784
  types: [
312
785
  schemaOrgWebsite(c.website),
313
786
  schemaOrgOrganization(c.organization),
314
- chunkD2GWRRK5_cjs.schemaOrgWebPage(c.webPage),
315
- chunkD2GWRRK5_cjs.schemaOrgPerson(c.person),
316
- chunkD2GWRRK5_cjs.schemaOrgBreadcrumbList(c.breadcrumbList),
317
- chunkD2GWRRK5_cjs.schemaOrgImageObject(c.imageObject),
318
- chunkD2GWRRK5_cjs.schemaOrgArticle(c.article),
319
- chunkD2GWRRK5_cjs.schemaOrgBlogPosting(c.blogPosting),
320
- chunkD2GWRRK5_cjs.schemaOrgFAQPage(c.faqPage),
321
- chunkD2GWRRK5_cjs.schemaOrgHowTo(c.howTo),
322
- chunkD2GWRRK5_cjs.schemaOrgProduct(c.product),
323
- chunkD2GWRRK5_cjs.schemaOrgOffer(c.offer),
324
- chunkD2GWRRK5_cjs.schemaOrgAggregateRating(c.aggregateRating),
325
- chunkD2GWRRK5_cjs.schemaOrgReview(c.review),
326
- chunkD2GWRRK5_cjs.schemaOrgBrand(c.brand),
327
- chunkD2GWRRK5_cjs.schemaOrgLocalBusiness(c.localBusiness),
328
- chunkD2GWRRK5_cjs.schemaOrgPostalAddress(c.postalAddress),
329
- chunkD2GWRRK5_cjs.schemaOrgContactPoint(c.contactPoint),
330
- chunkD2GWRRK5_cjs.schemaOrgSoftwareApplication(c.softwareApplication),
331
- chunkD2GWRRK5_cjs.schemaOrgWebApplication(c.webApplication),
332
- chunkD2GWRRK5_cjs.schemaOrgEvent(c.event),
333
- chunkD2GWRRK5_cjs.schemaOrgPlace(c.place),
334
- chunkD2GWRRK5_cjs.schemaOrgVideoObject(c.videoObject),
335
- chunkD2GWRRK5_cjs.schemaOrgCourse(c.course),
787
+ chunk7HCP5O62_cjs.schemaOrgWebPage(c.webPage),
788
+ chunk7HCP5O62_cjs.schemaOrgPerson(c.person),
789
+ chunk7HCP5O62_cjs.schemaOrgBreadcrumbList(c.breadcrumbList),
790
+ chunk7HCP5O62_cjs.schemaOrgImageObject(c.imageObject),
791
+ chunk7HCP5O62_cjs.schemaOrgArticle(c.article),
792
+ chunk7HCP5O62_cjs.schemaOrgBlogPosting(c.blogPosting),
793
+ chunk7HCP5O62_cjs.schemaOrgFAQPage(c.faqPage),
794
+ chunk7HCP5O62_cjs.schemaOrgHowTo(c.howTo),
795
+ chunk7HCP5O62_cjs.schemaOrgProduct(c.product),
796
+ chunk7HCP5O62_cjs.schemaOrgOffer(c.offer),
797
+ chunk7HCP5O62_cjs.schemaOrgAggregateRating(c.aggregateRating),
798
+ chunk7HCP5O62_cjs.schemaOrgReview(c.review),
799
+ chunk7HCP5O62_cjs.schemaOrgBrand(c.brand),
800
+ chunk7HCP5O62_cjs.schemaOrgLocalBusiness(c.localBusiness),
801
+ chunk7HCP5O62_cjs.schemaOrgPostalAddress(c.postalAddress),
802
+ chunk7HCP5O62_cjs.schemaOrgContactPoint(c.contactPoint),
803
+ chunk7HCP5O62_cjs.schemaOrgSoftwareApplication(c.softwareApplication),
804
+ chunk7HCP5O62_cjs.schemaOrgWebApplication(c.webApplication),
805
+ chunk7HCP5O62_cjs.schemaOrgEvent(c.event),
806
+ chunk7HCP5O62_cjs.schemaOrgPlace(c.place),
807
+ chunk7HCP5O62_cjs.schemaOrgVideoObject(c.videoObject),
808
+ chunk7HCP5O62_cjs.schemaOrgCourse(c.course),
809
+ chunk7HCP5O62_cjs.schemaOrgRecipe(c.recipe),
810
+ chunk7HCP5O62_cjs.schemaOrgService(c.service),
811
+ chunk7HCP5O62_cjs.schemaOrgSocialMediaPosting(c.socialMediaPosting),
812
+ chunk7HCP5O62_cjs.schemaOrgLegalService(c.legalService),
813
+ chunk7HCP5O62_cjs.schemaOrgCountry(c.country),
814
+ chunk7HCP5O62_cjs.schemaOrgJobPosting(c.jobPosting),
815
+ chunk7HCP5O62_cjs.schemaOrgRestaurant(c.restaurant),
816
+ chunk7HCP5O62_cjs.schemaOrgMovie(c.movie),
817
+ chunk7HCP5O62_cjs.schemaOrgBook(c.book),
818
+ chunk7HCP5O62_cjs.schemaOrgNewsArticle(c.newsArticle),
819
+ chunk7HCP5O62_cjs.schemaOrgItemList(c.itemList),
820
+ chunk7HCP5O62_cjs.schemaOrgProfilePage(c.profilePage),
821
+ chunk7HCP5O62_cjs.schemaOrgMusicRecording(c.musicRecording),
822
+ chunk7HCP5O62_cjs.schemaOrgMusicAlbum(c.musicAlbum),
336
823
  // Combined array type — lets editors add multiple schemas
337
824
  sanity.defineType({
338
825
  name: "schemaOrg",
339
826
  title: "Schema.org Structured Data",
340
827
  type: "array",
341
828
  of: ALL_SCHEMA_ORG_TYPES.map((type) => ({ type })),
342
- options: {
343
- insertMenu: {
344
- views: [
345
- {
346
- name: "grid"
347
- }
348
- ]
349
- }
829
+ components: {
830
+ input: TypePickerInput
350
831
  }
351
832
  })
352
833
  ]
@@ -354,115 +835,304 @@ var schemaOrg = sanity.definePlugin((config = {}) => {
354
835
  };
355
836
  });
356
837
 
838
+ Object.defineProperty(exports, "IETF_LANGUAGE_OPTIONS", {
839
+ enumerable: true,
840
+ get: function () { return chunk7HCP5O62_cjs.IETF_LANGUAGE_OPTIONS; }
841
+ });
357
842
  Object.defineProperty(exports, "buildGenericJsonLd", {
358
843
  enumerable: true,
359
- get: function () { return chunkD2GWRRK5_cjs.buildGenericJsonLd; }
844
+ get: function () { return chunk7HCP5O62_cjs.buildGenericJsonLd; }
845
+ });
846
+ Object.defineProperty(exports, "datePublishedField", {
847
+ enumerable: true,
848
+ get: function () { return chunk7HCP5O62_cjs.datePublishedField; }
849
+ });
850
+ Object.defineProperty(exports, "descriptionField", {
851
+ enumerable: true,
852
+ get: function () { return chunk7HCP5O62_cjs.descriptionField; }
360
853
  });
361
854
  Object.defineProperty(exports, "generateSchemaType", {
362
855
  enumerable: true,
363
- get: function () { return chunkD2GWRRK5_cjs.generateSchemaType; }
856
+ get: function () { return chunk7HCP5O62_cjs.generateSchemaType; }
857
+ });
858
+ Object.defineProperty(exports, "headlineField", {
859
+ enumerable: true,
860
+ get: function () { return chunk7HCP5O62_cjs.headlineField; }
861
+ });
862
+ Object.defineProperty(exports, "inLanguageField", {
863
+ enumerable: true,
864
+ get: function () { return chunk7HCP5O62_cjs.inLanguageField; }
865
+ });
866
+ Object.defineProperty(exports, "nameField", {
867
+ enumerable: true,
868
+ get: function () { return chunk7HCP5O62_cjs.nameField; }
869
+ });
870
+ Object.defineProperty(exports, "polymorphicAdditionalType", {
871
+ enumerable: true,
872
+ get: function () { return chunk7HCP5O62_cjs.polymorphicAdditionalType; }
873
+ });
874
+ Object.defineProperty(exports, "polymorphicArchivedAt", {
875
+ enumerable: true,
876
+ get: function () { return chunk7HCP5O62_cjs.polymorphicArchivedAt; }
877
+ });
878
+ Object.defineProperty(exports, "polymorphicAuthor", {
879
+ enumerable: true,
880
+ get: function () { return chunk7HCP5O62_cjs.polymorphicAuthor; }
881
+ });
882
+ Object.defineProperty(exports, "polymorphicCitation", {
883
+ enumerable: true,
884
+ get: function () { return chunk7HCP5O62_cjs.polymorphicCitation; }
885
+ });
886
+ Object.defineProperty(exports, "polymorphicContentRating", {
887
+ enumerable: true,
888
+ get: function () { return chunk7HCP5O62_cjs.polymorphicContentRating; }
889
+ });
890
+ Object.defineProperty(exports, "polymorphicContributor", {
891
+ enumerable: true,
892
+ get: function () { return chunk7HCP5O62_cjs.polymorphicContributor; }
893
+ });
894
+ Object.defineProperty(exports, "polymorphicCopyrightHolder", {
895
+ enumerable: true,
896
+ get: function () { return chunk7HCP5O62_cjs.polymorphicCopyrightHolder; }
897
+ });
898
+ Object.defineProperty(exports, "polymorphicCreator", {
899
+ enumerable: true,
900
+ get: function () { return chunk7HCP5O62_cjs.polymorphicCreator; }
901
+ });
902
+ Object.defineProperty(exports, "polymorphicFunder", {
903
+ enumerable: true,
904
+ get: function () { return chunk7HCP5O62_cjs.polymorphicFunder; }
905
+ });
906
+ Object.defineProperty(exports, "polymorphicGenre", {
907
+ enumerable: true,
908
+ get: function () { return chunk7HCP5O62_cjs.polymorphicGenre; }
909
+ });
910
+ Object.defineProperty(exports, "polymorphicIdentifier", {
911
+ enumerable: true,
912
+ get: function () { return chunk7HCP5O62_cjs.polymorphicIdentifier; }
913
+ });
914
+ Object.defineProperty(exports, "polymorphicImage", {
915
+ enumerable: true,
916
+ get: function () { return chunk7HCP5O62_cjs.polymorphicImage; }
917
+ });
918
+ Object.defineProperty(exports, "polymorphicIsBasedOn", {
919
+ enumerable: true,
920
+ get: function () { return chunk7HCP5O62_cjs.polymorphicIsBasedOn; }
921
+ });
922
+ Object.defineProperty(exports, "polymorphicIsPartOf", {
923
+ enumerable: true,
924
+ get: function () { return chunk7HCP5O62_cjs.polymorphicIsPartOf; }
925
+ });
926
+ Object.defineProperty(exports, "polymorphicKeywords", {
927
+ enumerable: true,
928
+ get: function () { return chunk7HCP5O62_cjs.polymorphicKeywords; }
929
+ });
930
+ Object.defineProperty(exports, "polymorphicLicense", {
931
+ enumerable: true,
932
+ get: function () { return chunk7HCP5O62_cjs.polymorphicLicense; }
933
+ });
934
+ Object.defineProperty(exports, "polymorphicLocationCreated", {
935
+ enumerable: true,
936
+ get: function () { return chunk7HCP5O62_cjs.polymorphicLocationCreated; }
937
+ });
938
+ Object.defineProperty(exports, "polymorphicMaintainer", {
939
+ enumerable: true,
940
+ get: function () { return chunk7HCP5O62_cjs.polymorphicMaintainer; }
941
+ });
942
+ Object.defineProperty(exports, "polymorphicMaterial", {
943
+ enumerable: true,
944
+ get: function () { return chunk7HCP5O62_cjs.polymorphicMaterial; }
945
+ });
946
+ Object.defineProperty(exports, "polymorphicOwner", {
947
+ enumerable: true,
948
+ get: function () { return chunk7HCP5O62_cjs.polymorphicOwner; }
949
+ });
950
+ Object.defineProperty(exports, "polymorphicPublisher", {
951
+ enumerable: true,
952
+ get: function () { return chunk7HCP5O62_cjs.polymorphicPublisher; }
364
953
  });
365
954
  Object.defineProperty(exports, "schemaOrgAggregateRating", {
366
955
  enumerable: true,
367
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgAggregateRating; }
956
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgAggregateRating; }
368
957
  });
369
958
  Object.defineProperty(exports, "schemaOrgArticle", {
370
959
  enumerable: true,
371
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgArticle; }
960
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgArticle; }
372
961
  });
373
962
  Object.defineProperty(exports, "schemaOrgBlogPosting", {
374
963
  enumerable: true,
375
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgBlogPosting; }
964
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgBlogPosting; }
965
+ });
966
+ Object.defineProperty(exports, "schemaOrgBook", {
967
+ enumerable: true,
968
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgBook; }
376
969
  });
377
970
  Object.defineProperty(exports, "schemaOrgBrand", {
378
971
  enumerable: true,
379
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgBrand; }
972
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgBrand; }
380
973
  });
381
974
  Object.defineProperty(exports, "schemaOrgBreadcrumbList", {
382
975
  enumerable: true,
383
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgBreadcrumbList; }
976
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgBreadcrumbList; }
384
977
  });
385
978
  Object.defineProperty(exports, "schemaOrgContactPoint", {
386
979
  enumerable: true,
387
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgContactPoint; }
980
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgContactPoint; }
981
+ });
982
+ Object.defineProperty(exports, "schemaOrgCountry", {
983
+ enumerable: true,
984
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgCountry; }
388
985
  });
389
986
  Object.defineProperty(exports, "schemaOrgCourse", {
390
987
  enumerable: true,
391
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgCourse; }
988
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgCourse; }
392
989
  });
393
990
  Object.defineProperty(exports, "schemaOrgEvent", {
394
991
  enumerable: true,
395
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgEvent; }
992
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgEvent; }
396
993
  });
397
994
  Object.defineProperty(exports, "schemaOrgFAQPage", {
398
995
  enumerable: true,
399
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgFAQPage; }
996
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgFAQPage; }
400
997
  });
401
998
  Object.defineProperty(exports, "schemaOrgHowTo", {
402
999
  enumerable: true,
403
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgHowTo; }
1000
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgHowTo; }
404
1001
  });
405
1002
  Object.defineProperty(exports, "schemaOrgImageObject", {
406
1003
  enumerable: true,
407
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgImageObject; }
1004
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgImageObject; }
1005
+ });
1006
+ Object.defineProperty(exports, "schemaOrgItemList", {
1007
+ enumerable: true,
1008
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgItemList; }
1009
+ });
1010
+ Object.defineProperty(exports, "schemaOrgJobPosting", {
1011
+ enumerable: true,
1012
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgJobPosting; }
1013
+ });
1014
+ Object.defineProperty(exports, "schemaOrgLegalService", {
1015
+ enumerable: true,
1016
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgLegalService; }
408
1017
  });
409
1018
  Object.defineProperty(exports, "schemaOrgLocalBusiness", {
410
1019
  enumerable: true,
411
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgLocalBusiness; }
1020
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgLocalBusiness; }
1021
+ });
1022
+ Object.defineProperty(exports, "schemaOrgMovie", {
1023
+ enumerable: true,
1024
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgMovie; }
1025
+ });
1026
+ Object.defineProperty(exports, "schemaOrgMusicAlbum", {
1027
+ enumerable: true,
1028
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgMusicAlbum; }
1029
+ });
1030
+ Object.defineProperty(exports, "schemaOrgMusicRecording", {
1031
+ enumerable: true,
1032
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgMusicRecording; }
1033
+ });
1034
+ Object.defineProperty(exports, "schemaOrgNewsArticle", {
1035
+ enumerable: true,
1036
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgNewsArticle; }
412
1037
  });
413
1038
  Object.defineProperty(exports, "schemaOrgOffer", {
414
1039
  enumerable: true,
415
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgOffer; }
1040
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgOffer; }
416
1041
  });
417
1042
  Object.defineProperty(exports, "schemaOrgPerson", {
418
1043
  enumerable: true,
419
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgPerson; }
1044
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgPerson; }
420
1045
  });
421
1046
  Object.defineProperty(exports, "schemaOrgPlace", {
422
1047
  enumerable: true,
423
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgPlace; }
1048
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgPlace; }
424
1049
  });
425
1050
  Object.defineProperty(exports, "schemaOrgPostalAddress", {
426
1051
  enumerable: true,
427
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgPostalAddress; }
1052
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgPostalAddress; }
428
1053
  });
429
1054
  Object.defineProperty(exports, "schemaOrgProduct", {
430
1055
  enumerable: true,
431
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgProduct; }
1056
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgProduct; }
1057
+ });
1058
+ Object.defineProperty(exports, "schemaOrgProfilePage", {
1059
+ enumerable: true,
1060
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgProfilePage; }
1061
+ });
1062
+ Object.defineProperty(exports, "schemaOrgRecipe", {
1063
+ enumerable: true,
1064
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgRecipe; }
1065
+ });
1066
+ Object.defineProperty(exports, "schemaOrgRestaurant", {
1067
+ enumerable: true,
1068
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgRestaurant; }
432
1069
  });
433
1070
  Object.defineProperty(exports, "schemaOrgReview", {
434
1071
  enumerable: true,
435
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgReview; }
1072
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgReview; }
1073
+ });
1074
+ Object.defineProperty(exports, "schemaOrgService", {
1075
+ enumerable: true,
1076
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgService; }
1077
+ });
1078
+ Object.defineProperty(exports, "schemaOrgSocialMediaPosting", {
1079
+ enumerable: true,
1080
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgSocialMediaPosting; }
436
1081
  });
437
1082
  Object.defineProperty(exports, "schemaOrgSoftwareApplication", {
438
1083
  enumerable: true,
439
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgSoftwareApplication; }
1084
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgSoftwareApplication; }
440
1085
  });
441
1086
  Object.defineProperty(exports, "schemaOrgVideoObject", {
442
1087
  enumerable: true,
443
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgVideoObject; }
1088
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgVideoObject; }
444
1089
  });
445
1090
  Object.defineProperty(exports, "schemaOrgWebApplication", {
446
1091
  enumerable: true,
447
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgWebApplication; }
1092
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgWebApplication; }
448
1093
  });
449
1094
  Object.defineProperty(exports, "schemaOrgWebPage", {
450
1095
  enumerable: true,
451
- get: function () { return chunkD2GWRRK5_cjs.schemaOrgWebPage; }
1096
+ get: function () { return chunk7HCP5O62_cjs.schemaOrgWebPage; }
1097
+ });
1098
+ Object.defineProperty(exports, "urlField", {
1099
+ enumerable: true,
1100
+ get: function () { return chunk7HCP5O62_cjs.urlField; }
1101
+ });
1102
+ Object.defineProperty(exports, "withCreativeWorkCommons", {
1103
+ enumerable: true,
1104
+ get: function () { return chunk7HCP5O62_cjs.withCreativeWorkCommons; }
1105
+ });
1106
+ Object.defineProperty(exports, "withThingCommons", {
1107
+ enumerable: true,
1108
+ get: function () { return chunk7HCP5O62_cjs.withThingCommons; }
452
1109
  });
1110
+ exports.CATEGORY_LABELS = CATEGORY_LABELS;
1111
+ exports.CATEGORY_ORDER = CATEGORY_ORDER;
1112
+ exports.SCHEMA_TYPE_METADATA = SCHEMA_TYPE_METADATA;
1113
+ exports.TypePickerInput = TypePickerInput;
453
1114
  exports.schemaOrg = schemaOrg;
454
1115
  exports.schemaOrgAggregateRatingPlugin = schemaOrgAggregateRatingPlugin;
455
1116
  exports.schemaOrgArticlePlugin = schemaOrgArticlePlugin;
456
1117
  exports.schemaOrgBlogPostingPlugin = schemaOrgBlogPostingPlugin;
1118
+ exports.schemaOrgBookPlugin = schemaOrgBookPlugin;
457
1119
  exports.schemaOrgBrandPlugin = schemaOrgBrandPlugin;
458
1120
  exports.schemaOrgBreadcrumbListPlugin = schemaOrgBreadcrumbListPlugin;
459
1121
  exports.schemaOrgContactPointPlugin = schemaOrgContactPointPlugin;
1122
+ exports.schemaOrgCountryPlugin = schemaOrgCountryPlugin;
460
1123
  exports.schemaOrgCoursePlugin = schemaOrgCoursePlugin;
461
1124
  exports.schemaOrgEventPlugin = schemaOrgEventPlugin;
462
1125
  exports.schemaOrgFAQPagePlugin = schemaOrgFAQPagePlugin;
463
1126
  exports.schemaOrgHowToPlugin = schemaOrgHowToPlugin;
464
1127
  exports.schemaOrgImageObjectPlugin = schemaOrgImageObjectPlugin;
1128
+ exports.schemaOrgItemListPlugin = schemaOrgItemListPlugin;
1129
+ exports.schemaOrgJobPostingPlugin = schemaOrgJobPostingPlugin;
1130
+ exports.schemaOrgLegalServicePlugin = schemaOrgLegalServicePlugin;
465
1131
  exports.schemaOrgLocalBusinessPlugin = schemaOrgLocalBusinessPlugin;
1132
+ exports.schemaOrgMoviePlugin = schemaOrgMoviePlugin;
1133
+ exports.schemaOrgMusicAlbumPlugin = schemaOrgMusicAlbumPlugin;
1134
+ exports.schemaOrgMusicRecordingPlugin = schemaOrgMusicRecordingPlugin;
1135
+ exports.schemaOrgNewsArticlePlugin = schemaOrgNewsArticlePlugin;
466
1136
  exports.schemaOrgOfferPlugin = schemaOrgOfferPlugin;
467
1137
  exports.schemaOrgOrganization = schemaOrgOrganization;
468
1138
  exports.schemaOrgOrganizationPlugin = schemaOrgOrganizationPlugin;
@@ -470,7 +1140,12 @@ exports.schemaOrgPersonPlugin = schemaOrgPersonPlugin;
470
1140
  exports.schemaOrgPlacePlugin = schemaOrgPlacePlugin;
471
1141
  exports.schemaOrgPostalAddressPlugin = schemaOrgPostalAddressPlugin;
472
1142
  exports.schemaOrgProductPlugin = schemaOrgProductPlugin;
1143
+ exports.schemaOrgProfilePagePlugin = schemaOrgProfilePagePlugin;
1144
+ exports.schemaOrgRecipePlugin = schemaOrgRecipePlugin;
1145
+ exports.schemaOrgRestaurantPlugin = schemaOrgRestaurantPlugin;
473
1146
  exports.schemaOrgReviewPlugin = schemaOrgReviewPlugin;
1147
+ exports.schemaOrgServicePlugin = schemaOrgServicePlugin;
1148
+ exports.schemaOrgSocialMediaPostingPlugin = schemaOrgSocialMediaPostingPlugin;
474
1149
  exports.schemaOrgSoftwareApplicationPlugin = schemaOrgSoftwareApplicationPlugin;
475
1150
  exports.schemaOrgVideoObjectPlugin = schemaOrgVideoObjectPlugin;
476
1151
  exports.schemaOrgWebApplicationPlugin = schemaOrgWebApplicationPlugin;