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
@@ -1,1245 +0,0 @@
1
- import { __spreadProps, __spreadValues } from './chunk-2NMEKWO5.js';
2
- import { defineType, defineField } from 'sanity';
3
- import { BookIcon, DesktopIcon, CodeBlockIcon, ApiIcon, CalendarIcon, MarkerIcon, HeartFilledIcon, BarChartIcon, TagIcon, PackageIcon, ListIcon, HelpCircleIcon, DocumentTextIcon, VideoIcon, ImageIcon, LinkIcon, UserIcon, SparkleIcon, HomeIcon, ComponentIcon, EarthGlobeIcon } from '@sanity/icons';
4
-
5
- function buildField(fieldDef, validation) {
6
- var _a, _b, _c;
7
- const base = {
8
- name: fieldDef.name,
9
- title: fieldDef.title,
10
- type: fieldDef.type
11
- };
12
- if (fieldDef.description) base.description = fieldDef.description;
13
- if (fieldDef.initialValue !== void 0) base.initialValue = fieldDef.initialValue;
14
- if (fieldDef.rows) base.rows = fieldDef.rows;
15
- if (fieldDef.options) {
16
- base.options = { list: fieldDef.options };
17
- }
18
- if (fieldDef.type === "array" && ((_a = fieldDef.fields) == null ? void 0 : _a.length) && !fieldDef.of) {
19
- base.of = [
20
- {
21
- type: "object",
22
- fields: fieldDef.fields.map((child) => buildField(child, validation))
23
- }
24
- ];
25
- } else if (fieldDef.of) {
26
- base.of = fieldDef.of;
27
- }
28
- if (fieldDef.type !== "array" && ((_b = fieldDef.fields) == null ? void 0 : _b.length)) {
29
- base.fields = fieldDef.fields.map((child) => buildField(child, validation));
30
- }
31
- if (fieldDef.required) {
32
- const msg = (_c = validation == null ? void 0 : validation[fieldDef.required.key]) != null ? _c : fieldDef.required.message;
33
- base.validation = (Rule) => Rule.required().error(msg);
34
- }
35
- return defineField(base);
36
- }
37
- function generateSchemaType(def, config = {}) {
38
- return defineType(__spreadProps(__spreadValues({
39
- name: def.name,
40
- title: def.title,
41
- type: "object"
42
- }, def.icon && { icon: def.icon }), {
43
- fields: def.fields.map((f) => buildField(f, config.validation)),
44
- preview: {
45
- select: {
46
- title: "name"
47
- },
48
- prepare(selection) {
49
- var _a;
50
- return __spreadValues({
51
- title: selection.title || def.title,
52
- subtitle: `@type: ${((_a = def.title.split("\u2014")[1]) == null ? void 0 : _a.trim()) || def.title}`
53
- }, def.icon && { media: def.icon });
54
- }
55
- }
56
- }));
57
- }
58
- var SANITY_INTERNAL_KEYS = /* @__PURE__ */ new Set([
59
- "_key",
60
- "_type",
61
- "_ref",
62
- "_id",
63
- "_rev",
64
- "_createdAt",
65
- "_updatedAt"
66
- ]);
67
- function buildNestedJsonLd(data, fieldDefs, jsonLdType) {
68
- var _a;
69
- const result = jsonLdType ? { "@type": jsonLdType } : {};
70
- for (const field of fieldDefs) {
71
- const value = data[field.name];
72
- if (value === void 0 || value === null || value === "") continue;
73
- const key = (_a = field.jsonLdKey) != null ? _a : field.name;
74
- if (field.type === "object" && field.fields && typeof value === "object" && !Array.isArray(value)) {
75
- const nested = buildNestedJsonLd(
76
- value,
77
- field.fields,
78
- field.jsonLdType
79
- );
80
- const minKeys = field.jsonLdType ? 1 : 0;
81
- if (Object.keys(nested).length > minKeys) {
82
- result[key] = nested;
83
- }
84
- } else if (field.type === "array" && Array.isArray(value)) {
85
- if (field.fields && field.jsonLdType) {
86
- const items = value.filter(
87
- (item) => typeof item === "object" && item !== null
88
- ).map((item) => buildNestedJsonLd(item, field.fields, field.jsonLdType));
89
- if (items.length) result[key] = items;
90
- } else if (value.length) {
91
- result[key] = value.filter((v) => v !== void 0 && v !== null && v !== "");
92
- }
93
- } else if (!SANITY_INTERNAL_KEYS.has(field.name)) {
94
- result[key] = value;
95
- }
96
- }
97
- return result;
98
- }
99
- function buildGenericJsonLd(schemaType, data, fieldDefs, requiredFields = []) {
100
- if (!data) return null;
101
- for (const req of requiredFields) {
102
- if (!data[req]) return null;
103
- }
104
- const body = buildNestedJsonLd(data, fieldDefs);
105
- return __spreadValues({
106
- "@context": "https://schema.org",
107
- "@type": schemaType
108
- }, body);
109
- }
110
- var SchemaOrgIcons = {
111
- // Website & WebPage
112
- website: EarthGlobeIcon,
113
- webPage: DocumentTextIcon,
114
- // Organization & Business
115
- organization: ComponentIcon,
116
- localBusiness: HomeIcon,
117
- brand: SparkleIcon,
118
- // People
119
- person: UserIcon,
120
- // Navigation
121
- breadcrumbList: LinkIcon,
122
- // Media
123
- imageObject: ImageIcon,
124
- videoObject: VideoIcon,
125
- // Content
126
- article: DocumentTextIcon,
127
- blogPosting: BookIcon,
128
- faqPage: HelpCircleIcon,
129
- howTo: ListIcon,
130
- // Commerce
131
- product: PackageIcon,
132
- offer: TagIcon,
133
- aggregateRating: BarChartIcon,
134
- review: HeartFilledIcon,
135
- // Location
136
- postalAddress: MarkerIcon,
137
- place: MarkerIcon,
138
- event: CalendarIcon,
139
- // Contact
140
- contactPoint: ApiIcon,
141
- // Software
142
- softwareApplication: CodeBlockIcon,
143
- webApplication: DesktopIcon,
144
- // Education
145
- course: BookIcon
146
- };
147
-
148
- // src/schema/aggregateRating/schema.ts
149
- var aggregateRatingFields = [
150
- {
151
- name: "ratingValue",
152
- title: "Rating Value",
153
- type: "string",
154
- description: 'The average rating value, e.g. "4.5".',
155
- required: {
156
- key: "ratingValueRequired",
157
- message: "Rating value is required for Schema.org."
158
- }
159
- },
160
- {
161
- name: "reviewCount",
162
- title: "Review Count",
163
- type: "string",
164
- description: 'The total number of reviews, e.g. "120".'
165
- }
166
- ];
167
- function schemaOrgAggregateRating(config = {}) {
168
- return generateSchemaType(
169
- {
170
- name: "schemaOrgAggregateRating",
171
- title: "Schema.org \u2014 AggregateRating",
172
- icon: SchemaOrgIcons.aggregateRating,
173
- fields: aggregateRatingFields
174
- },
175
- config
176
- );
177
- }
178
-
179
- // src/schema/article/schema.ts
180
- var articleFields = [
181
- {
182
- name: "headline",
183
- title: "Headline",
184
- type: "string",
185
- required: { key: "headlineRequired", message: "Headline is required for Schema.org Article." }
186
- },
187
- {
188
- name: "description",
189
- title: "Description",
190
- type: "text",
191
- rows: 3
192
- },
193
- {
194
- name: "image",
195
- title: "Image",
196
- type: "url",
197
- description: "URL of the article image."
198
- },
199
- {
200
- name: "author",
201
- title: "Author",
202
- type: "object",
203
- jsonLdType: "Person",
204
- fields: [
205
- {
206
- name: "name",
207
- title: "Author Name",
208
- type: "string"
209
- }
210
- ]
211
- },
212
- {
213
- name: "publisher",
214
- title: "Publisher",
215
- type: "object",
216
- jsonLdType: "Organization",
217
- fields: [
218
- {
219
- name: "name",
220
- title: "Publisher Name",
221
- type: "string"
222
- },
223
- {
224
- name: "logo",
225
- title: "Publisher Logo",
226
- type: "object",
227
- jsonLdType: "ImageObject",
228
- fields: [
229
- {
230
- name: "url",
231
- title: "Logo URL",
232
- type: "url"
233
- }
234
- ]
235
- }
236
- ]
237
- },
238
- {
239
- name: "datePublished",
240
- title: "Date Published",
241
- type: "date"
242
- }
243
- ];
244
- function schemaOrgArticle(config = {}) {
245
- return generateSchemaType(
246
- {
247
- name: "schemaOrgArticle",
248
- title: "Schema.org \u2014 Article",
249
- icon: SchemaOrgIcons.article,
250
- fields: articleFields
251
- },
252
- config
253
- );
254
- }
255
-
256
- // src/schema/blogPosting/schema.ts
257
- var blogPostingFields = [
258
- {
259
- name: "headline",
260
- title: "Headline",
261
- type: "string",
262
- required: {
263
- key: "headlineRequired",
264
- message: "Headline is required for Schema.org BlogPosting."
265
- }
266
- },
267
- {
268
- name: "description",
269
- title: "Description",
270
- type: "text",
271
- rows: 3
272
- },
273
- {
274
- name: "author",
275
- title: "Author",
276
- type: "object",
277
- jsonLdType: "Person",
278
- fields: [
279
- {
280
- name: "name",
281
- title: "Author Name",
282
- type: "string"
283
- }
284
- ]
285
- },
286
- {
287
- name: "datePublished",
288
- title: "Date Published",
289
- type: "date"
290
- },
291
- {
292
- name: "mainEntityOfPage",
293
- title: "Main Entity of Page",
294
- type: "object",
295
- jsonLdType: "WebPage",
296
- fields: [
297
- {
298
- name: "id",
299
- title: "Page URL",
300
- type: "url",
301
- jsonLdKey: "@id"
302
- }
303
- ]
304
- }
305
- ];
306
- function schemaOrgBlogPosting(config = {}) {
307
- return generateSchemaType(
308
- {
309
- name: "schemaOrgBlogPosting",
310
- title: "Schema.org \u2014 BlogPosting",
311
- icon: SchemaOrgIcons.blogPosting,
312
- fields: blogPostingFields
313
- },
314
- config
315
- );
316
- }
317
-
318
- // src/schema/brand/schema.ts
319
- var brandFields = [
320
- {
321
- name: "name",
322
- title: "Brand Name",
323
- type: "string",
324
- description: "The name of the brand.",
325
- required: { key: "nameRequired", message: "Brand name is required for Schema.org." }
326
- }
327
- ];
328
- function schemaOrgBrand(config = {}) {
329
- return generateSchemaType(
330
- {
331
- name: "schemaOrgBrand",
332
- title: "Schema.org \u2014 Brand",
333
- icon: SchemaOrgIcons.brand,
334
- fields: brandFields
335
- },
336
- config
337
- );
338
- }
339
-
340
- // src/schema/breadcrumbList/schema.ts
341
- var breadcrumbListFields = [
342
- {
343
- name: "itemListElement",
344
- title: "Breadcrumb Items",
345
- type: "array",
346
- jsonLdType: "ListItem",
347
- fields: [
348
- {
349
- name: "position",
350
- title: "Position",
351
- type: "number",
352
- required: { key: "positionRequired", message: "Position is required." }
353
- },
354
- {
355
- name: "name",
356
- title: "Label",
357
- type: "string",
358
- required: { key: "nameRequired", message: "Label is required." }
359
- },
360
- {
361
- name: "item",
362
- title: "URL",
363
- type: "url"
364
- }
365
- ]
366
- }
367
- ];
368
- function schemaOrgBreadcrumbList(config = {}) {
369
- return generateSchemaType(
370
- {
371
- name: "schemaOrgBreadcrumbList",
372
- title: "Schema.org \u2014 BreadcrumbList",
373
- icon: SchemaOrgIcons.breadcrumbList,
374
- fields: breadcrumbListFields
375
- },
376
- config
377
- );
378
- }
379
-
380
- // src/schema/contactPoint/schema.ts
381
- var contactPointFields = [
382
- {
383
- name: "contactType",
384
- title: "Contact Type",
385
- type: "string",
386
- description: 'The type of contact, e.g. "customer support", "sales".',
387
- required: { key: "contactTypeRequired", message: "Contact type is required for Schema.org." },
388
- initialValue: "customer support",
389
- options: [
390
- { title: "Customer Support", value: "customer support" },
391
- { title: "Sales", value: "sales" },
392
- { title: "Technical Support", value: "technical support" },
393
- { title: "Billing", value: "billing" },
394
- { title: "General Inquiry", value: "general inquiry" }
395
- ]
396
- },
397
- {
398
- name: "email",
399
- title: "Email",
400
- type: "string",
401
- description: "Contact email address."
402
- },
403
- {
404
- name: "telephone",
405
- title: "Telephone",
406
- type: "string",
407
- description: "Contact telephone number."
408
- },
409
- {
410
- name: "availableLanguage",
411
- title: "Available Languages",
412
- type: "array",
413
- of: [{ type: "string" }],
414
- description: 'Languages supported by this contact point, e.g. "English", "Spanish".',
415
- initialValue: ["English"]
416
- }
417
- ];
418
- function schemaOrgContactPoint(config = {}) {
419
- return generateSchemaType(
420
- {
421
- name: "schemaOrgContactPoint",
422
- title: "Schema.org \u2014 ContactPoint",
423
- icon: SchemaOrgIcons.contactPoint,
424
- fields: contactPointFields
425
- },
426
- config
427
- );
428
- }
429
-
430
- // src/schema/course/schema.ts
431
- var courseFields = [
432
- {
433
- name: "name",
434
- title: "Course Name",
435
- type: "string",
436
- description: "The name of the course.",
437
- required: { key: "nameRequired", message: "Course name is required for Schema.org." }
438
- },
439
- {
440
- name: "description",
441
- title: "Description",
442
- type: "text",
443
- rows: 3,
444
- description: "A short description of the course."
445
- },
446
- {
447
- name: "provider",
448
- title: "Provider",
449
- type: "object",
450
- description: "The organization that provides this course.",
451
- jsonLdType: "Organization",
452
- fields: [
453
- {
454
- name: "name",
455
- title: "Provider Name",
456
- type: "string",
457
- description: "Name of the providing organization."
458
- },
459
- {
460
- name: "sameAs",
461
- title: "Provider URL",
462
- type: "url",
463
- description: "URL of the providing organization."
464
- }
465
- ]
466
- }
467
- ];
468
- function schemaOrgCourse(config = {}) {
469
- return generateSchemaType(
470
- {
471
- name: "schemaOrgCourse",
472
- title: "Schema.org \u2014 Course",
473
- icon: SchemaOrgIcons.course,
474
- fields: courseFields
475
- },
476
- config
477
- );
478
- }
479
-
480
- // src/schema/event/schema.ts
481
- var eventFields = [
482
- {
483
- name: "name",
484
- title: "Event Name",
485
- type: "string",
486
- description: "The name of the event.",
487
- required: { key: "nameRequired", message: "Event name is required for Schema.org." }
488
- },
489
- {
490
- name: "startDate",
491
- title: "Start Date",
492
- type: "date",
493
- description: "The start date of the event."
494
- },
495
- {
496
- name: "location",
497
- title: "Location",
498
- type: "object",
499
- description: "The location where the event takes place.",
500
- jsonLdType: "Place",
501
- fields: [
502
- {
503
- name: "name",
504
- title: "Venue Name",
505
- type: "string",
506
- description: "Name of the venue or location."
507
- },
508
- {
509
- name: "address",
510
- title: "Address",
511
- type: "string",
512
- description: "Full address as a single string."
513
- }
514
- ]
515
- }
516
- ];
517
- function schemaOrgEvent(config = {}) {
518
- return generateSchemaType(
519
- {
520
- name: "schemaOrgEvent",
521
- title: "Schema.org \u2014 Event",
522
- icon: SchemaOrgIcons.event,
523
- fields: eventFields
524
- },
525
- config
526
- );
527
- }
528
-
529
- // src/schema/faqPage/schema.ts
530
- var faqPageFields = [
531
- {
532
- name: "mainEntity",
533
- title: "FAQ Items",
534
- type: "array",
535
- jsonLdType: "Question",
536
- fields: [
537
- {
538
- name: "name",
539
- title: "Question",
540
- type: "string",
541
- required: { key: "questionRequired", message: "Question text is required." }
542
- },
543
- {
544
- name: "acceptedAnswer",
545
- title: "Accepted Answer",
546
- type: "object",
547
- jsonLdType: "Answer",
548
- fields: [
549
- {
550
- name: "text",
551
- title: "Answer Text",
552
- type: "text",
553
- rows: 3
554
- }
555
- ]
556
- }
557
- ]
558
- }
559
- ];
560
- function schemaOrgFAQPage(config = {}) {
561
- return generateSchemaType(
562
- {
563
- name: "schemaOrgFAQPage",
564
- title: "Schema.org \u2014 FAQPage",
565
- icon: SchemaOrgIcons.faqPage,
566
- fields: faqPageFields
567
- },
568
- config
569
- );
570
- }
571
-
572
- // src/schema/howTo/schema.ts
573
- var howToFields = [
574
- {
575
- name: "name",
576
- title: "Name",
577
- type: "string",
578
- required: { key: "nameRequired", message: "Name is required for Schema.org HowTo." }
579
- },
580
- {
581
- name: "description",
582
- title: "Description",
583
- type: "text",
584
- rows: 3
585
- },
586
- {
587
- name: "step",
588
- title: "Steps",
589
- type: "array",
590
- jsonLdType: "HowToStep",
591
- fields: [
592
- {
593
- name: "name",
594
- title: "Step Name",
595
- type: "string",
596
- required: { key: "stepNameRequired", message: "Step name is required." }
597
- },
598
- {
599
- name: "text",
600
- title: "Step Description",
601
- type: "text",
602
- rows: 2
603
- }
604
- ]
605
- }
606
- ];
607
- function schemaOrgHowTo(config = {}) {
608
- return generateSchemaType(
609
- {
610
- name: "schemaOrgHowTo",
611
- title: "Schema.org \u2014 HowTo",
612
- icon: SchemaOrgIcons.howTo,
613
- fields: howToFields
614
- },
615
- config
616
- );
617
- }
618
-
619
- // src/schema/imageObject/schema.ts
620
- var imageObjectFields = [
621
- {
622
- name: "url",
623
- title: "Image URL",
624
- type: "url",
625
- description: "The URL of the image.",
626
- required: { key: "urlRequired", message: "Image URL is required for Schema.org." }
627
- },
628
- {
629
- name: "width",
630
- title: "Width",
631
- type: "number",
632
- description: "Image width in pixels."
633
- },
634
- {
635
- name: "height",
636
- title: "Height",
637
- type: "number",
638
- description: "Image height in pixels."
639
- },
640
- {
641
- name: "caption",
642
- title: "Caption",
643
- type: "string",
644
- description: "Caption or alt text for the image."
645
- }
646
- ];
647
- function schemaOrgImageObject(config = {}) {
648
- return generateSchemaType(
649
- {
650
- name: "schemaOrgImageObject",
651
- title: "Schema.org \u2014 ImageObject",
652
- icon: SchemaOrgIcons.imageObject,
653
- fields: imageObjectFields
654
- },
655
- config
656
- );
657
- }
658
-
659
- // src/schema/localBusiness/schema.ts
660
- var localBusinessFields = [
661
- {
662
- name: "name",
663
- title: "Business Name",
664
- type: "string",
665
- description: "The official name of the business.",
666
- required: { key: "nameRequired", message: "Business name is required for Schema.org." }
667
- },
668
- {
669
- name: "image",
670
- title: "Image URL",
671
- type: "url",
672
- description: "URL to the business image."
673
- },
674
- {
675
- name: "telephone",
676
- title: "Telephone",
677
- type: "string",
678
- description: "The telephone number of the business."
679
- },
680
- {
681
- name: "address",
682
- title: "Address",
683
- type: "object",
684
- description: "The physical address of the business.",
685
- jsonLdType: "PostalAddress",
686
- fields: [
687
- {
688
- name: "streetAddress",
689
- title: "Street Address",
690
- type: "string"
691
- },
692
- {
693
- name: "addressLocality",
694
- title: "Locality",
695
- type: "string",
696
- description: "City or town."
697
- },
698
- {
699
- name: "addressCountry",
700
- title: "Country",
701
- type: "string",
702
- description: 'Country code, e.g. "US".'
703
- }
704
- ]
705
- }
706
- ];
707
- function schemaOrgLocalBusiness(config = {}) {
708
- return generateSchemaType(
709
- {
710
- name: "schemaOrgLocalBusiness",
711
- title: "Schema.org \u2014 LocalBusiness",
712
- icon: SchemaOrgIcons.localBusiness,
713
- fields: localBusinessFields
714
- },
715
- config
716
- );
717
- }
718
-
719
- // src/schema/offer/schema.ts
720
- var offerFields = [
721
- {
722
- name: "price",
723
- title: "Price",
724
- type: "string",
725
- description: 'The price of the offer, e.g. "199.99".',
726
- required: { key: "priceRequired", message: "Price is required for Schema.org." }
727
- },
728
- {
729
- name: "priceCurrency",
730
- title: "Currency",
731
- type: "string",
732
- description: 'The currency of the price, e.g. "USD".',
733
- initialValue: "USD",
734
- options: [
735
- { title: "USD", value: "USD" },
736
- { title: "EUR", value: "EUR" },
737
- { title: "GBP", value: "GBP" },
738
- { title: "INR", value: "INR" },
739
- { title: "JPY", value: "JPY" },
740
- { title: "CAD", value: "CAD" },
741
- { title: "AUD", value: "AUD" }
742
- ]
743
- },
744
- {
745
- name: "availability",
746
- title: "Availability",
747
- type: "url",
748
- description: 'Schema.org availability URL, e.g. "https://schema.org/InStock".'
749
- },
750
- {
751
- name: "url",
752
- title: "Offer URL",
753
- type: "url",
754
- description: "URL of the offer page."
755
- }
756
- ];
757
- function schemaOrgOffer(config = {}) {
758
- return generateSchemaType(
759
- {
760
- name: "schemaOrgOffer",
761
- title: "Schema.org \u2014 Offer",
762
- icon: SchemaOrgIcons.offer,
763
- fields: offerFields
764
- },
765
- config
766
- );
767
- }
768
-
769
- // src/schema/person/schema.ts
770
- var personFields = [
771
- {
772
- name: "name",
773
- title: "Full Name",
774
- type: "string",
775
- description: "The full name of the person.",
776
- required: { key: "nameRequired", message: "Person name is required for Schema.org." }
777
- },
778
- {
779
- name: "jobTitle",
780
- title: "Job Title",
781
- type: "string",
782
- description: "The job title or role of the person."
783
- },
784
- {
785
- name: "url",
786
- title: "Profile URL",
787
- type: "url",
788
- description: "URL of the person's profile or personal website."
789
- },
790
- {
791
- name: "imageUrl",
792
- title: "Image URL",
793
- type: "url",
794
- description: "URL to a photo/image of this person.",
795
- jsonLdKey: "image"
796
- },
797
- {
798
- name: "sameAs",
799
- title: "Social / External Profiles",
800
- type: "array",
801
- of: [{ type: "url" }],
802
- description: "URLs of social media profiles and other authoritative pages (LinkedIn, GitHub, etc.)."
803
- },
804
- {
805
- name: "worksFor",
806
- title: "Works For",
807
- type: "object",
808
- description: "The organization this person works for.",
809
- jsonLdType: "Organization",
810
- fields: [
811
- {
812
- name: "name",
813
- title: "Organization Name",
814
- type: "string",
815
- description: "Name of the organization."
816
- }
817
- ]
818
- }
819
- ];
820
- function schemaOrgPerson(config = {}) {
821
- return generateSchemaType(
822
- {
823
- name: "schemaOrgPerson",
824
- title: "Schema.org \u2014 Person",
825
- icon: SchemaOrgIcons.person,
826
- fields: personFields
827
- },
828
- config
829
- );
830
- }
831
-
832
- // src/schema/place/schema.ts
833
- var placeFields = [
834
- {
835
- name: "name",
836
- title: "Place Name",
837
- type: "string",
838
- description: "The name of the place.",
839
- required: { key: "nameRequired", message: "Place name is required for Schema.org." }
840
- },
841
- {
842
- name: "address",
843
- title: "Address",
844
- type: "object",
845
- description: "The physical address of the place.",
846
- jsonLdType: "PostalAddress",
847
- fields: [
848
- {
849
- name: "addressLocality",
850
- title: "Locality",
851
- type: "string",
852
- description: "City or town."
853
- },
854
- {
855
- name: "addressCountry",
856
- title: "Country",
857
- type: "string",
858
- description: 'Country code, e.g. "US".'
859
- }
860
- ]
861
- }
862
- ];
863
- function schemaOrgPlace(config = {}) {
864
- return generateSchemaType(
865
- {
866
- name: "schemaOrgPlace",
867
- title: "Schema.org \u2014 Place",
868
- icon: SchemaOrgIcons.place,
869
- fields: placeFields
870
- },
871
- config
872
- );
873
- }
874
-
875
- // src/schema/postalAddress/schema.ts
876
- var postalAddressFields = [
877
- {
878
- name: "streetAddress",
879
- title: "Street Address",
880
- type: "string",
881
- description: 'The street address, e.g. "123 Main St".'
882
- },
883
- {
884
- name: "addressLocality",
885
- title: "City / Locality",
886
- type: "string",
887
- description: 'The city or locality, e.g. "New York".'
888
- },
889
- {
890
- name: "postalCode",
891
- title: "Postal Code",
892
- type: "string",
893
- description: 'The postal or ZIP code, e.g. "10001".'
894
- },
895
- {
896
- name: "addressCountry",
897
- title: "Country",
898
- type: "string",
899
- description: 'The country code, e.g. "US".'
900
- }
901
- ];
902
- function schemaOrgPostalAddress(config = {}) {
903
- return generateSchemaType(
904
- {
905
- name: "schemaOrgPostalAddress",
906
- title: "Schema.org \u2014 PostalAddress",
907
- icon: SchemaOrgIcons.postalAddress,
908
- fields: postalAddressFields
909
- },
910
- config
911
- );
912
- }
913
-
914
- // src/schema/product/schema.ts
915
- var productFields = [
916
- {
917
- name: "name",
918
- title: "Product Name",
919
- type: "string",
920
- description: "The name of the product.",
921
- required: { key: "nameRequired", message: "Product name is required for Schema.org." }
922
- },
923
- {
924
- name: "imageUrl",
925
- title: "Image URL",
926
- type: "url",
927
- description: "URL to the product image.",
928
- jsonLdKey: "image"
929
- },
930
- {
931
- name: "description",
932
- title: "Description",
933
- type: "text",
934
- rows: 3,
935
- description: "A short description of the product."
936
- },
937
- {
938
- name: "brand",
939
- title: "Brand",
940
- type: "object",
941
- description: "The brand of the product.",
942
- jsonLdType: "Brand",
943
- fields: [
944
- {
945
- name: "name",
946
- title: "Brand Name",
947
- type: "string",
948
- description: "Name of the brand."
949
- }
950
- ]
951
- }
952
- ];
953
- function schemaOrgProduct(config = {}) {
954
- return generateSchemaType(
955
- {
956
- name: "schemaOrgProduct",
957
- title: "Schema.org \u2014 Product",
958
- icon: SchemaOrgIcons.product,
959
- fields: productFields
960
- },
961
- config
962
- );
963
- }
964
-
965
- // src/schema/review/schema.ts
966
- var reviewFields = [
967
- {
968
- name: "reviewRating",
969
- title: "Review Rating",
970
- type: "object",
971
- jsonLdType: "Rating",
972
- fields: [
973
- {
974
- name: "ratingValue",
975
- title: "Rating Value",
976
- type: "string",
977
- required: {
978
- key: "ratingValueRequired",
979
- message: "Rating value is required for Schema.org Review."
980
- }
981
- }
982
- ]
983
- },
984
- {
985
- name: "author",
986
- title: "Author",
987
- type: "object",
988
- jsonLdType: "Person",
989
- fields: [
990
- {
991
- name: "name",
992
- title: "Author Name",
993
- type: "string",
994
- required: {
995
- key: "authorNameRequired",
996
- message: "Author name is required for Schema.org Review."
997
- }
998
- }
999
- ]
1000
- },
1001
- {
1002
- name: "reviewBody",
1003
- title: "Review Body",
1004
- type: "text",
1005
- rows: 3
1006
- }
1007
- ];
1008
- function schemaOrgReview(config = {}) {
1009
- return generateSchemaType(
1010
- {
1011
- name: "schemaOrgReview",
1012
- title: "Schema.org \u2014 Review",
1013
- icon: SchemaOrgIcons.review,
1014
- fields: reviewFields
1015
- },
1016
- config
1017
- );
1018
- }
1019
-
1020
- // src/schema/softwareApplication/schema.ts
1021
- var softwareApplicationFields = [
1022
- {
1023
- name: "name",
1024
- title: "Application Name",
1025
- type: "string",
1026
- description: "The name of the software application.",
1027
- required: {
1028
- key: "nameRequired",
1029
- message: "Application name is required for Schema.org."
1030
- }
1031
- },
1032
- {
1033
- name: "applicationCategory",
1034
- title: "Application Category",
1035
- type: "string",
1036
- description: "The category of the application.",
1037
- options: [
1038
- { title: "Developer Application", value: "DeveloperApplication" },
1039
- { title: "Business Application", value: "BusinessApplication" },
1040
- { title: "Game Application", value: "GameApplication" },
1041
- { title: "Educational Application", value: "EducationalApplication" },
1042
- { title: "Utilities Application", value: "UtilitiesApplication" },
1043
- { title: "Social Networking Application", value: "SocialNetworkingApplication" }
1044
- ]
1045
- },
1046
- {
1047
- name: "operatingSystem",
1048
- title: "Operating System",
1049
- type: "string",
1050
- description: 'The supported operating systems, e.g. "Windows, macOS".'
1051
- },
1052
- {
1053
- name: "url",
1054
- title: "Application URL",
1055
- type: "url",
1056
- description: "URL of the software application."
1057
- }
1058
- ];
1059
- function schemaOrgSoftwareApplication(config = {}) {
1060
- return generateSchemaType(
1061
- {
1062
- name: "schemaOrgSoftwareApplication",
1063
- title: "Schema.org \u2014 SoftwareApplication",
1064
- icon: SchemaOrgIcons.softwareApplication,
1065
- fields: softwareApplicationFields
1066
- },
1067
- config
1068
- );
1069
- }
1070
-
1071
- // src/schema/videoObject/schema.ts
1072
- var videoObjectFields = [
1073
- {
1074
- name: "name",
1075
- title: "Video Name",
1076
- type: "string",
1077
- description: "The name of the video.",
1078
- required: { key: "nameRequired", message: "Video name is required for Schema.org." }
1079
- },
1080
- {
1081
- name: "description",
1082
- title: "Description",
1083
- type: "text",
1084
- rows: 3,
1085
- description: "A description of the video."
1086
- },
1087
- {
1088
- name: "thumbnailUrl",
1089
- title: "Thumbnail URL",
1090
- type: "url",
1091
- description: "URL of the video thumbnail image."
1092
- },
1093
- {
1094
- name: "uploadDate",
1095
- title: "Upload Date",
1096
- type: "date",
1097
- description: "The date the video was uploaded."
1098
- },
1099
- {
1100
- name: "contentUrl",
1101
- title: "Content URL",
1102
- type: "url",
1103
- description: "URL to the actual video file."
1104
- }
1105
- ];
1106
- function schemaOrgVideoObject(config = {}) {
1107
- return generateSchemaType(
1108
- {
1109
- name: "schemaOrgVideoObject",
1110
- title: "Schema.org \u2014 VideoObject",
1111
- icon: SchemaOrgIcons.videoObject,
1112
- fields: videoObjectFields
1113
- },
1114
- config
1115
- );
1116
- }
1117
-
1118
- // src/schema/webApplication/schema.ts
1119
- var webApplicationFields = [
1120
- {
1121
- name: "name",
1122
- title: "Application Name",
1123
- type: "string",
1124
- description: "The name of the web application.",
1125
- required: {
1126
- key: "nameRequired",
1127
- message: "Application name is required for Schema.org."
1128
- }
1129
- },
1130
- {
1131
- name: "url",
1132
- title: "Application URL",
1133
- type: "url",
1134
- description: "URL of the web application.",
1135
- required: { key: "urlRequired", message: "Application URL is required for Schema.org." }
1136
- },
1137
- {
1138
- name: "applicationCategory",
1139
- title: "Application Category",
1140
- type: "string",
1141
- description: "The category of the application.",
1142
- options: [
1143
- { title: "Developer Application", value: "DeveloperApplication" },
1144
- { title: "Business Application", value: "BusinessApplication" },
1145
- { title: "Game Application", value: "GameApplication" },
1146
- { title: "Educational Application", value: "EducationalApplication" },
1147
- { title: "Utilities Application", value: "UtilitiesApplication" },
1148
- { title: "Social Networking Application", value: "SocialNetworkingApplication" }
1149
- ]
1150
- },
1151
- {
1152
- name: "operatingSystem",
1153
- title: "Operating System",
1154
- type: "string",
1155
- description: "The supported operating systems.",
1156
- initialValue: "All"
1157
- }
1158
- ];
1159
- function schemaOrgWebApplication(config = {}) {
1160
- return generateSchemaType(
1161
- {
1162
- name: "schemaOrgWebApplication",
1163
- title: "Schema.org \u2014 WebApplication",
1164
- icon: SchemaOrgIcons.webApplication,
1165
- fields: webApplicationFields
1166
- },
1167
- config
1168
- );
1169
- }
1170
-
1171
- // src/schema/webPage/schema.ts
1172
- var webPageFields = [
1173
- {
1174
- name: "name",
1175
- title: "Page Name",
1176
- type: "string",
1177
- description: "The title of the page.",
1178
- required: { key: "nameRequired", message: "Page name is required for Schema.org." }
1179
- },
1180
- {
1181
- name: "url",
1182
- title: "Page URL",
1183
- type: "url",
1184
- description: "The full URL of the page.",
1185
- required: { key: "urlRequired", message: "Page URL is required for Schema.org." }
1186
- },
1187
- {
1188
- name: "description",
1189
- title: "Description",
1190
- type: "text",
1191
- rows: 3,
1192
- description: "A short description of the page."
1193
- },
1194
- {
1195
- name: "inLanguage",
1196
- title: "Language",
1197
- type: "string",
1198
- description: 'The language of the page content, e.g. "en".',
1199
- initialValue: "en",
1200
- options: [
1201
- { title: "English", value: "en" },
1202
- { title: "Spanish", value: "es" },
1203
- { title: "French", value: "fr" },
1204
- { title: "German", value: "de" },
1205
- { title: "Portuguese", value: "pt" },
1206
- { title: "Italian", value: "it" },
1207
- { title: "Dutch", value: "nl" },
1208
- { title: "Japanese", value: "ja" },
1209
- { title: "Chinese", value: "zh" },
1210
- { title: "Korean", value: "ko" },
1211
- { title: "Hindi", value: "hi" },
1212
- { title: "Arabic", value: "ar" }
1213
- ]
1214
- },
1215
- {
1216
- name: "isPartOf",
1217
- title: "Part Of (Website)",
1218
- type: "object",
1219
- description: "The website this page belongs to.",
1220
- jsonLdType: "WebSite",
1221
- fields: [
1222
- {
1223
- name: "url",
1224
- title: "Website URL",
1225
- type: "url",
1226
- description: "URL of the parent website."
1227
- }
1228
- ]
1229
- }
1230
- ];
1231
- function schemaOrgWebPage(config = {}) {
1232
- return generateSchemaType(
1233
- {
1234
- name: "schemaOrgWebPage",
1235
- title: "Schema.org \u2014 WebPage",
1236
- icon: SchemaOrgIcons.webPage,
1237
- fields: webPageFields
1238
- },
1239
- config
1240
- );
1241
- }
1242
-
1243
- export { SchemaOrgIcons, aggregateRatingFields, articleFields, blogPostingFields, brandFields, breadcrumbListFields, buildGenericJsonLd, contactPointFields, courseFields, eventFields, faqPageFields, generateSchemaType, howToFields, imageObjectFields, localBusinessFields, offerFields, personFields, placeFields, postalAddressFields, productFields, reviewFields, schemaOrgAggregateRating, schemaOrgArticle, schemaOrgBlogPosting, schemaOrgBrand, schemaOrgBreadcrumbList, schemaOrgContactPoint, schemaOrgCourse, schemaOrgEvent, schemaOrgFAQPage, schemaOrgHowTo, schemaOrgImageObject, schemaOrgLocalBusiness, schemaOrgOffer, schemaOrgPerson, schemaOrgPlace, schemaOrgPostalAddress, schemaOrgProduct, schemaOrgReview, schemaOrgSoftwareApplication, schemaOrgVideoObject, schemaOrgWebApplication, schemaOrgWebPage, softwareApplicationFields, videoObjectFields, webApplicationFields, webPageFields };
1244
- //# sourceMappingURL=chunk-6CYMVS3O.js.map
1245
- //# sourceMappingURL=chunk-6CYMVS3O.js.map