@unhead/schema-org 2.0.0-alpha.7 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,8 @@
1
- import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.D_ha4uKf.mjs';
2
- export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, ao as ImageSimple, aq as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ab as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aW as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aY as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ad as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ap as imageResolver, ar as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ac as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aX as reviewResolver, b9 as searchActionResolver, aZ as softwareAppResolver, a$ as videoResolver, ae as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.D_ha4uKf.mjs';
3
- import * as _unhead_schema from '@unhead/schema';
4
- import { Unhead, HeadEntryOptions } from '@unhead/schema';
1
+ import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode } from './shared/schema-org.C9XO8kJo.mjs';
2
+ export { e as AggregateOffer, d as AggregateOfferSimple, h as AggregateRating, g as AggregateRatingSimple, k as Article, j as ArticleSimple, m as Book, o as BookEdition, n as BookEditionSimple, B as BookSimple, t as BreadcrumbList, s as BreadcrumbSimple, w as Comment, C as CommentSimple, z as Course, y as CourseSimple, F as Event, E as EventSimple, Q as FoodEstablishment, O as FoodEstablishmentSimple, X as HowTo, a1 as HowToDirection, Y as HowToId, W as HowToSimple, $ as HowToStep, _ as HowToStepSimple, bi as Id, bh as IdReference, bc as Identity, a4 as ImageObject, a3 as ImageSimple, a7 as ItemList, a6 as ItemListSimple, aa as JobPosting, a9 as JobPostingSimple, ad as ListItem, ac as ListItemSimple, ag as LocalBusiness, af as LocalBusinessSimple, aj as Movie, ai as MovieSimple, ba as NodeRelation, bb as NodeRelations, aM as NutritionInformation, am as Offer, al as OfferSimple, ao as OpeningHoursSimple, ap as OpeningHoursSpecification, be as OptionalSchemaOrgPrefix, as as Organization, ar as OrganizationSimple, av as Person, au as PersonSimple, J as Place, I as PlaceSimple, ay as PostalAddress, ax as PostalAddressSimple, P as PrimaryArticleId, q as PrimaryBookId, u as PrimaryBreadcrumbId, G as PrimaryEventId, a_ as PrimaryWebPageId, b5 as PrimaryWebSiteId, aB as Product, aC as ProductId, aA as ProductSimple, aF as Question, aE as QuestionSimple, aI as Rating, aH as RatingSimple, b1 as ReadAction, b0 as ReadActionInput, aL as Recipe, aN as RecipeId, aK as RecipeSimple, bd as ResolvableDate, aQ as Review, aP as ReviewSimple, b8 as SearchAction, b7 as SearchActionInput, aT as SoftwareApp, aS as SoftwareAppSimple, bf as UserConfig, aW as VideoObject, aV as VideoSimple, L as VirtualLocation, V as VirtualLocationSimple, aZ as WebPage, aY as WebPageSimple, b4 as WebSite, b3 as WebSiteSimple, bg as WithResolver, az as addressResolver, f as aggregateOfferResolver, i as aggregateRatingResolver, l as articleResolver, p as bookEditionResolver, r as bookResolver, v as breadcrumbResolver, x as commentResolver, D as courseResolver, c as createSchemaOrgGraph, H as eventResolver, U as foodEstablishmentResolver, Z as howToResolver, a2 as howToStepDirectionResolver, a0 as howToStepResolver, a5 as imageResolver, a8 as itemListResolver, ab as jobPostingResolver, ae as listItemResolver, ah as localBusinessResolver, ak as movieResolver, an as offerResolver, aq as openingHoursResolver, at as organizationResolver, aw as personResolver, K as placeResolver, aD as productResolver, aG as questionResolver, aJ as ratingResolver, b2 as readActionResolver, aO as recipeResolver, aR as reviewResolver, b9 as searchActionResolver, aU as softwareAppResolver, aX as videoResolver, N as virtualLocationResolver, a$ as webPageResolver, b6 as webSiteResolver } from './shared/schema-org.C9XO8kJo.mjs';
3
+ export { a as PluginSchemaOrg, P as PluginSchemaOrgOptions, S as SchemaOrgUnheadPlugin, U as UnheadSchemaOrg } from './shared/schema-org.BGcOuybr.mjs';
4
+ export { U as UseSchemaOrgInput, d as defineAddress, a as defineAggregateOffer, b as defineAggregateRating, c as defineArticle, A as defineBook, I as defineBookEdition, e as defineBreadcrumb, f as defineComment, B as defineCourse, g as defineEvent, h as defineFoodEstablishment, k as defineHowTo, l as defineHowToStep, m as defineImage, C as defineItemList, n as defineJobPosting, D as defineListItem, o as defineLocalBusiness, E as defineMovie, p as defineOffer, q as defineOpeningHours, r as defineOrganization, s as definePerson, j as definePlace, t as defineProduct, u as defineQuestion, G as defineReadAction, v as defineRecipe, w as defineReview, F as defineSearchAction, H as defineSoftwareApp, x as defineVideo, i as defineVirtualLocation, y as defineWebPage, z as defineWebSite, J as normalizeSchemaOrgInput, K as useSchemaOrg } from './shared/schema-org.BDzDgQHq.mjs';
5
+ import 'unhead/types';
5
6
 
6
7
  declare function defineSchemaOrgResolver<T extends Thing>(schema: SchemaOrgNodeDefinition<T>): SchemaOrgNodeDefinition<T>;
7
8
 
@@ -33,42 +34,4 @@ declare function resolveRelation(input: Arrayable<any>, ctx: SchemaOrgGraph, fal
33
34
  declare function dedupeNodes(nodes: SchemaOrgNode[]): SchemaOrgNode[];
34
35
  declare function normaliseNodes(nodes: SchemaOrgNode[]): SchemaOrgNode[];
35
36
 
36
- declare function defineAddress<T extends Record<string, any>>(input?: PostalAddress & T): PostalAddress & T;
37
- declare function defineAggregateOffer<T extends Record<string, any>>(input?: AggregateOffer & T): AggregateOffer & T;
38
- declare function defineAggregateRating<T extends Record<string, any>>(input?: AggregateRating & T): AggregateRating & T;
39
- declare function defineArticle<T extends Record<string, any>>(input?: Article & T): Article & T;
40
- declare function defineBreadcrumb<T extends Record<string, any>>(input?: BreadcrumbList & T): BreadcrumbList & T;
41
- declare function defineComment<T extends Record<string, any>>(input?: Comment & T): Comment & T;
42
- declare function defineEvent<T extends Record<string, any>>(input?: Event & T): Event & T;
43
- declare function defineFoodEstablishment<T extends Record<string, any>>(input?: FoodEstablishment & T): FoodEstablishment & T;
44
- declare function defineVirtualLocation<T extends Record<string, any>>(input?: VirtualLocation & T): VirtualLocation & T;
45
- declare function definePlace<T extends Record<string, any>>(input?: Place & T): Place & T;
46
- declare function defineHowTo<T extends Record<string, any>>(input?: HowTo & T): HowTo & T;
47
- declare function defineHowToStep<T extends Record<string, any>>(input?: HowToStep & T): HowToStep & T;
48
- declare function defineImage<T extends Record<string, any>>(input?: ImageObject & T): ImageObject & T;
49
- declare function defineJobPosting<T extends Record<string, any>>(input?: JobPosting & T): JobPosting & T;
50
- declare function defineLocalBusiness<T extends Record<string, any>>(input?: LocalBusiness & T): LocalBusiness & T;
51
- declare function defineOffer<T extends Record<string, any>>(input?: Offer & T): Offer & T;
52
- declare function defineOpeningHours<T extends Record<string, any>>(input?: OpeningHoursSpecification & T): OpeningHoursSpecification & T;
53
- declare function defineOrganization<T extends Record<string, any>>(input?: Organization & T): Organization & T;
54
- declare function definePerson<T extends Record<string, any>>(input?: Person & T): Person & T;
55
- declare function defineProduct<T extends Record<string, any>>(input?: Product & T): Product & T;
56
- declare function defineQuestion<T extends Record<string, any>>(input?: Question & T): Question & T;
57
- declare function defineRecipe<T extends Record<string, any>>(input?: Recipe & T): Recipe & T;
58
- declare function defineReview<T extends Record<string, any>>(input?: Review & T): Review & T;
59
- declare function defineVideo<T extends Record<string, any>>(input?: VideoObject & T): VideoObject & T;
60
- declare function defineWebPage<T extends Record<string, any>>(input?: WebPage & T): WebPage & T;
61
- declare function defineWebSite<T extends Record<string, any>>(input?: WebSite & T): WebSite & T;
62
- declare function defineBook<T extends Record<string, any>>(input?: Book & T): Book & T;
63
- declare function defineCourse<T extends Record<string, any>>(input?: Course & T): Course & T;
64
- declare function defineItemList<T extends Record<string, any>>(input?: ItemList & T): ItemList & T;
65
- declare function defineListItem<T extends Record<string, any>>(input?: ListItem & T): ListItem & T;
66
- declare function defineMovie<T extends Record<string, any>>(input?: Movie & T): Movie & T;
67
- declare function defineSearchAction<T extends Record<string, any>>(input?: SearchAction & T): SearchAction & T;
68
- declare function defineReadAction<T extends Record<string, any>>(input?: ReadAction & T): ReadAction & T;
69
- declare function defineSoftwareApp<T extends Record<string, any>>(input?: SoftwareApp & T): SoftwareApp & T;
70
- declare function defineBookEdition<T extends Record<string, any>>(input?: BookEdition & T): BookEdition & T;
71
- type UseSchemaOrgInput = Arrayable<Thing | Record<string, any>>;
72
- declare function useSchemaOrg(head: Unhead<any>, input: UseSchemaOrgInput, options?: HeadEntryOptions): _unhead_schema.ActiveHeadEntry<any> | undefined;
73
-
74
- export { AggregateOffer, AggregateRating, Arrayable, Article, Book, BookEdition, BreadcrumbList, Comment, Course, Event, FoodEstablishment, HowTo, HowToStep, ImageObject, ItemList, JobPosting, ListItem, LocalBusiness, MetaInput, Movie, Offer, OpeningHoursSpecification, Organization, Person, Place, PostalAddress, Product, Question, ReadAction, Recipe, ResolvedMeta, Review, SchemaOrgGraph, SchemaOrgNode, SchemaOrgNodeDefinition, SearchAction, SoftwareApp, Thing, type UseSchemaOrgInput, VideoObject, VirtualLocation, WebPage, WebSite, dedupeNodes, defineAddress, defineAggregateOffer, defineAggregateRating, defineArticle, defineBook, defineBookEdition, defineBreadcrumb, defineComment, defineCourse, defineEvent, defineFoodEstablishment, defineHowTo, defineHowToStep, defineImage, defineItemList, defineJobPosting, defineListItem, defineLocalBusiness, defineMovie, defineOffer, defineOpeningHours, defineOrganization, definePerson, definePlace, defineProduct, defineQuestion, defineReadAction, defineRecipe, defineReview, defineSchemaOrgResolver, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite, normaliseNodes, resolveMeta, resolveNode, resolveNodeId, resolveRelation, useSchemaOrg };
37
+ export { Arrayable, MetaInput, ResolvedMeta, SchemaOrgGraph, SchemaOrgNode, SchemaOrgNodeDefinition, Thing, dedupeNodes, defineSchemaOrgResolver, normaliseNodes, resolveMeta, resolveNode, resolveNodeId, resolveRelation };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.D_ha4uKf.js';
2
- export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, ao as ImageSimple, aq as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ab as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aW as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aY as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ad as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ap as imageResolver, ar as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ac as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aX as reviewResolver, b9 as searchActionResolver, aZ as softwareAppResolver, a$ as videoResolver, ae as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.D_ha4uKf.js';
3
- import * as _unhead_schema from '@unhead/schema';
4
- import { Unhead, HeadEntryOptions } from '@unhead/schema';
1
+ import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode } from './shared/schema-org.C9XO8kJo.js';
2
+ export { e as AggregateOffer, d as AggregateOfferSimple, h as AggregateRating, g as AggregateRatingSimple, k as Article, j as ArticleSimple, m as Book, o as BookEdition, n as BookEditionSimple, B as BookSimple, t as BreadcrumbList, s as BreadcrumbSimple, w as Comment, C as CommentSimple, z as Course, y as CourseSimple, F as Event, E as EventSimple, Q as FoodEstablishment, O as FoodEstablishmentSimple, X as HowTo, a1 as HowToDirection, Y as HowToId, W as HowToSimple, $ as HowToStep, _ as HowToStepSimple, bi as Id, bh as IdReference, bc as Identity, a4 as ImageObject, a3 as ImageSimple, a7 as ItemList, a6 as ItemListSimple, aa as JobPosting, a9 as JobPostingSimple, ad as ListItem, ac as ListItemSimple, ag as LocalBusiness, af as LocalBusinessSimple, aj as Movie, ai as MovieSimple, ba as NodeRelation, bb as NodeRelations, aM as NutritionInformation, am as Offer, al as OfferSimple, ao as OpeningHoursSimple, ap as OpeningHoursSpecification, be as OptionalSchemaOrgPrefix, as as Organization, ar as OrganizationSimple, av as Person, au as PersonSimple, J as Place, I as PlaceSimple, ay as PostalAddress, ax as PostalAddressSimple, P as PrimaryArticleId, q as PrimaryBookId, u as PrimaryBreadcrumbId, G as PrimaryEventId, a_ as PrimaryWebPageId, b5 as PrimaryWebSiteId, aB as Product, aC as ProductId, aA as ProductSimple, aF as Question, aE as QuestionSimple, aI as Rating, aH as RatingSimple, b1 as ReadAction, b0 as ReadActionInput, aL as Recipe, aN as RecipeId, aK as RecipeSimple, bd as ResolvableDate, aQ as Review, aP as ReviewSimple, b8 as SearchAction, b7 as SearchActionInput, aT as SoftwareApp, aS as SoftwareAppSimple, bf as UserConfig, aW as VideoObject, aV as VideoSimple, L as VirtualLocation, V as VirtualLocationSimple, aZ as WebPage, aY as WebPageSimple, b4 as WebSite, b3 as WebSiteSimple, bg as WithResolver, az as addressResolver, f as aggregateOfferResolver, i as aggregateRatingResolver, l as articleResolver, p as bookEditionResolver, r as bookResolver, v as breadcrumbResolver, x as commentResolver, D as courseResolver, c as createSchemaOrgGraph, H as eventResolver, U as foodEstablishmentResolver, Z as howToResolver, a2 as howToStepDirectionResolver, a0 as howToStepResolver, a5 as imageResolver, a8 as itemListResolver, ab as jobPostingResolver, ae as listItemResolver, ah as localBusinessResolver, ak as movieResolver, an as offerResolver, aq as openingHoursResolver, at as organizationResolver, aw as personResolver, K as placeResolver, aD as productResolver, aG as questionResolver, aJ as ratingResolver, b2 as readActionResolver, aO as recipeResolver, aR as reviewResolver, b9 as searchActionResolver, aU as softwareAppResolver, aX as videoResolver, N as virtualLocationResolver, a$ as webPageResolver, b6 as webSiteResolver } from './shared/schema-org.C9XO8kJo.js';
3
+ export { a as PluginSchemaOrg, P as PluginSchemaOrgOptions, S as SchemaOrgUnheadPlugin, U as UnheadSchemaOrg } from './shared/schema-org.BTxGadmd.js';
4
+ export { U as UseSchemaOrgInput, d as defineAddress, a as defineAggregateOffer, b as defineAggregateRating, c as defineArticle, A as defineBook, I as defineBookEdition, e as defineBreadcrumb, f as defineComment, B as defineCourse, g as defineEvent, h as defineFoodEstablishment, k as defineHowTo, l as defineHowToStep, m as defineImage, C as defineItemList, n as defineJobPosting, D as defineListItem, o as defineLocalBusiness, E as defineMovie, p as defineOffer, q as defineOpeningHours, r as defineOrganization, s as definePerson, j as definePlace, t as defineProduct, u as defineQuestion, G as defineReadAction, v as defineRecipe, w as defineReview, F as defineSearchAction, H as defineSoftwareApp, x as defineVideo, i as defineVirtualLocation, y as defineWebPage, z as defineWebSite, J as normalizeSchemaOrgInput, K as useSchemaOrg } from './shared/schema-org.DC9JJOX5.js';
5
+ import 'unhead/types';
5
6
 
6
7
  declare function defineSchemaOrgResolver<T extends Thing>(schema: SchemaOrgNodeDefinition<T>): SchemaOrgNodeDefinition<T>;
7
8
 
@@ -33,42 +34,4 @@ declare function resolveRelation(input: Arrayable<any>, ctx: SchemaOrgGraph, fal
33
34
  declare function dedupeNodes(nodes: SchemaOrgNode[]): SchemaOrgNode[];
34
35
  declare function normaliseNodes(nodes: SchemaOrgNode[]): SchemaOrgNode[];
35
36
 
36
- declare function defineAddress<T extends Record<string, any>>(input?: PostalAddress & T): PostalAddress & T;
37
- declare function defineAggregateOffer<T extends Record<string, any>>(input?: AggregateOffer & T): AggregateOffer & T;
38
- declare function defineAggregateRating<T extends Record<string, any>>(input?: AggregateRating & T): AggregateRating & T;
39
- declare function defineArticle<T extends Record<string, any>>(input?: Article & T): Article & T;
40
- declare function defineBreadcrumb<T extends Record<string, any>>(input?: BreadcrumbList & T): BreadcrumbList & T;
41
- declare function defineComment<T extends Record<string, any>>(input?: Comment & T): Comment & T;
42
- declare function defineEvent<T extends Record<string, any>>(input?: Event & T): Event & T;
43
- declare function defineFoodEstablishment<T extends Record<string, any>>(input?: FoodEstablishment & T): FoodEstablishment & T;
44
- declare function defineVirtualLocation<T extends Record<string, any>>(input?: VirtualLocation & T): VirtualLocation & T;
45
- declare function definePlace<T extends Record<string, any>>(input?: Place & T): Place & T;
46
- declare function defineHowTo<T extends Record<string, any>>(input?: HowTo & T): HowTo & T;
47
- declare function defineHowToStep<T extends Record<string, any>>(input?: HowToStep & T): HowToStep & T;
48
- declare function defineImage<T extends Record<string, any>>(input?: ImageObject & T): ImageObject & T;
49
- declare function defineJobPosting<T extends Record<string, any>>(input?: JobPosting & T): JobPosting & T;
50
- declare function defineLocalBusiness<T extends Record<string, any>>(input?: LocalBusiness & T): LocalBusiness & T;
51
- declare function defineOffer<T extends Record<string, any>>(input?: Offer & T): Offer & T;
52
- declare function defineOpeningHours<T extends Record<string, any>>(input?: OpeningHoursSpecification & T): OpeningHoursSpecification & T;
53
- declare function defineOrganization<T extends Record<string, any>>(input?: Organization & T): Organization & T;
54
- declare function definePerson<T extends Record<string, any>>(input?: Person & T): Person & T;
55
- declare function defineProduct<T extends Record<string, any>>(input?: Product & T): Product & T;
56
- declare function defineQuestion<T extends Record<string, any>>(input?: Question & T): Question & T;
57
- declare function defineRecipe<T extends Record<string, any>>(input?: Recipe & T): Recipe & T;
58
- declare function defineReview<T extends Record<string, any>>(input?: Review & T): Review & T;
59
- declare function defineVideo<T extends Record<string, any>>(input?: VideoObject & T): VideoObject & T;
60
- declare function defineWebPage<T extends Record<string, any>>(input?: WebPage & T): WebPage & T;
61
- declare function defineWebSite<T extends Record<string, any>>(input?: WebSite & T): WebSite & T;
62
- declare function defineBook<T extends Record<string, any>>(input?: Book & T): Book & T;
63
- declare function defineCourse<T extends Record<string, any>>(input?: Course & T): Course & T;
64
- declare function defineItemList<T extends Record<string, any>>(input?: ItemList & T): ItemList & T;
65
- declare function defineListItem<T extends Record<string, any>>(input?: ListItem & T): ListItem & T;
66
- declare function defineMovie<T extends Record<string, any>>(input?: Movie & T): Movie & T;
67
- declare function defineSearchAction<T extends Record<string, any>>(input?: SearchAction & T): SearchAction & T;
68
- declare function defineReadAction<T extends Record<string, any>>(input?: ReadAction & T): ReadAction & T;
69
- declare function defineSoftwareApp<T extends Record<string, any>>(input?: SoftwareApp & T): SoftwareApp & T;
70
- declare function defineBookEdition<T extends Record<string, any>>(input?: BookEdition & T): BookEdition & T;
71
- type UseSchemaOrgInput = Arrayable<Thing | Record<string, any>>;
72
- declare function useSchemaOrg(head: Unhead<any>, input: UseSchemaOrgInput, options?: HeadEntryOptions): _unhead_schema.ActiveHeadEntry<any> | undefined;
73
-
74
- export { AggregateOffer, AggregateRating, Arrayable, Article, Book, BookEdition, BreadcrumbList, Comment, Course, Event, FoodEstablishment, HowTo, HowToStep, ImageObject, ItemList, JobPosting, ListItem, LocalBusiness, MetaInput, Movie, Offer, OpeningHoursSpecification, Organization, Person, Place, PostalAddress, Product, Question, ReadAction, Recipe, ResolvedMeta, Review, SchemaOrgGraph, SchemaOrgNode, SchemaOrgNodeDefinition, SearchAction, SoftwareApp, Thing, type UseSchemaOrgInput, VideoObject, VirtualLocation, WebPage, WebSite, dedupeNodes, defineAddress, defineAggregateOffer, defineAggregateRating, defineArticle, defineBook, defineBookEdition, defineBreadcrumb, defineComment, defineCourse, defineEvent, defineFoodEstablishment, defineHowTo, defineHowToStep, defineImage, defineItemList, defineJobPosting, defineListItem, defineLocalBusiness, defineMovie, defineOffer, defineOpeningHours, defineOrganization, definePerson, definePlace, defineProduct, defineQuestion, defineReadAction, defineRecipe, defineReview, defineSchemaOrgResolver, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite, normaliseNodes, resolveMeta, resolveNode, resolveNodeId, resolveRelation, useSchemaOrg };
37
+ export { Arrayable, MetaInput, ResolvedMeta, SchemaOrgGraph, SchemaOrgNode, SchemaOrgNodeDefinition, Thing, dedupeNodes, defineSchemaOrgResolver, normaliseNodes, resolveMeta, resolveNode, resolveNodeId, resolveRelation };
package/dist/index.mjs CHANGED
@@ -1,136 +1,6 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.79PF9OEn.mjs';
2
- export { H as HowToId, a1 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, X as PrimaryWebPageId, _ as PrimaryWebSiteId, M as ProductId, R as RecipeId, a2 as SchemaOrgUnheadPlugin, L as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, f as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as foodEstablishmentResolver, x as howToResolver, z as howToStepDirectionResolver, y as howToStepResolver, A as imageResolver, B as itemListResolver, C as jobPostingResolver, D as listItemResolver, E as localBusinessResolver, F as movieResolver, n as normaliseNodes, G as offerResolver, I as openingHoursResolver, J as organizationResolver, K as personResolver, u as placeResolver, N as productResolver, O as questionResolver, Q as ratingResolver, Z as readActionResolver, S as recipeResolver, r as resolveMeta, a as resolveNode, b as resolveNodeId, e as resolveRelation, T as reviewResolver, a0 as searchActionResolver, V as softwareAppResolver, W as videoResolver, v as virtualLocationResolver, Y as webPageResolver, $ as webSiteResolver } from './shared/schema-org.79PF9OEn.mjs';
3
- import { useHead } from 'unhead';
4
- import '@unhead/shared';
1
+ export { H as HowToId, a1 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, W as PrimaryWebPageId, Z as PrimaryWebSiteId, M as ProductId, R as RecipeId, a2 as SchemaOrgUnheadPlugin, a0 as UnheadSchemaOrg, L as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, f as dedupeNodes, a3 as defineAddress, a4 as defineAggregateOffer, a5 as defineAggregateRating, a6 as defineArticle, at as defineBook, aB as defineBookEdition, a7 as defineBreadcrumb, a8 as defineComment, au as defineCourse, a9 as defineEvent, aa as defineFoodEstablishment, ad as defineHowTo, ae as defineHowToStep, af as defineImage, av as defineItemList, ag as defineJobPosting, aw as defineListItem, ah as defineLocalBusiness, ax as defineMovie, ai as defineOffer, aj as defineOpeningHours, ak as defineOrganization, al as definePerson, ac as definePlace, am as defineProduct, an as defineQuestion, az as defineReadAction, ao as defineRecipe, ap as defineReview, d as defineSchemaOrgResolver, ay as defineSearchAction, aA as defineSoftwareApp, aq as defineVideo, ab as defineVirtualLocation, ar as defineWebPage, as as defineWebSite, t as eventResolver, w as foodEstablishmentResolver, x as howToResolver, z as howToStepDirectionResolver, y as howToStepResolver, A as imageResolver, B as itemListResolver, C as jobPostingResolver, D as listItemResolver, E as localBusinessResolver, F as movieResolver, n as normaliseNodes, aC as normalizeSchemaOrgInput, G as offerResolver, I as openingHoursResolver, J as organizationResolver, K as personResolver, u as placeResolver, N as productResolver, O as questionResolver, Q as ratingResolver, Y as readActionResolver, S as recipeResolver, r as resolveMeta, a as resolveNode, b as resolveNodeId, e as resolveRelation, T as reviewResolver, $ as searchActionResolver, U as softwareAppResolver, aD as useSchemaOrg, V as videoResolver, v as virtualLocationResolver, X as webPageResolver, _ as webSiteResolver } from './shared/schema-org.CZClK-9x.mjs';
5
2
  import 'defu';
3
+ import 'unhead/plugins';
4
+ import 'unhead/utils';
6
5
  import 'ufo';
7
6
  import 'ohash';
8
-
9
- function provideResolver(input, resolver) {
10
- if (!input)
11
- input = {};
12
- input._resolver = resolver;
13
- return input;
14
- }
15
- function defineAddress(input) {
16
- return provideResolver(input, "address");
17
- }
18
- function defineAggregateOffer(input) {
19
- return provideResolver(input, "aggregateOffer");
20
- }
21
- function defineAggregateRating(input) {
22
- return provideResolver(input, "aggregateRating");
23
- }
24
- function defineArticle(input) {
25
- return provideResolver(input, "article");
26
- }
27
- function defineBreadcrumb(input) {
28
- return provideResolver(input, "breadcrumb");
29
- }
30
- function defineComment(input) {
31
- return provideResolver(input, "comment");
32
- }
33
- function defineEvent(input) {
34
- return provideResolver(input, "event");
35
- }
36
- function defineFoodEstablishment(input) {
37
- return provideResolver(input, "foodEstablishment");
38
- }
39
- function defineVirtualLocation(input) {
40
- return provideResolver(input, "virtualLocation");
41
- }
42
- function definePlace(input) {
43
- return provideResolver(input, "place");
44
- }
45
- function defineHowTo(input) {
46
- return provideResolver(input, "howTo");
47
- }
48
- function defineHowToStep(input) {
49
- return provideResolver(input, "howToStep");
50
- }
51
- function defineImage(input) {
52
- return provideResolver(input, "image");
53
- }
54
- function defineJobPosting(input) {
55
- return provideResolver(input, "jobPosting");
56
- }
57
- function defineLocalBusiness(input) {
58
- return provideResolver(input, "localBusiness");
59
- }
60
- function defineOffer(input) {
61
- return provideResolver(input, "offer");
62
- }
63
- function defineOpeningHours(input) {
64
- return provideResolver(input, "openingHours");
65
- }
66
- function defineOrganization(input) {
67
- return provideResolver(input, "organization");
68
- }
69
- function definePerson(input) {
70
- return provideResolver(input, "person");
71
- }
72
- function defineProduct(input) {
73
- return provideResolver(input, "product");
74
- }
75
- function defineQuestion(input) {
76
- return provideResolver(input, "question");
77
- }
78
- function defineRecipe(input) {
79
- return provideResolver(input, "recipe");
80
- }
81
- function defineReview(input) {
82
- return provideResolver(input, "review");
83
- }
84
- function defineVideo(input) {
85
- return provideResolver(input, "video");
86
- }
87
- function defineWebPage(input) {
88
- return provideResolver(input, "webPage");
89
- }
90
- function defineWebSite(input) {
91
- return provideResolver(input, "webSite");
92
- }
93
- function defineBook(input) {
94
- return provideResolver(input, "book");
95
- }
96
- function defineCourse(input) {
97
- return provideResolver(input, "course");
98
- }
99
- function defineItemList(input) {
100
- return provideResolver(input, "itemList");
101
- }
102
- function defineListItem(input) {
103
- return provideResolver(input, "listItem");
104
- }
105
- function defineMovie(input) {
106
- return provideResolver(input, "movie");
107
- }
108
- function defineSearchAction(input) {
109
- return provideResolver(input, "searchAction");
110
- }
111
- function defineReadAction(input) {
112
- return provideResolver(input, "readAction");
113
- }
114
- function defineSoftwareApp(input) {
115
- return provideResolver(input, "softwareApp");
116
- }
117
- function defineBookEdition(input) {
118
- return provideResolver(input, "bookEdition");
119
- }
120
- function useSchemaOrg(head, input, options) {
121
- if (Array.isArray(input) && input.length === 0 || !input) {
122
- return;
123
- }
124
- head.use(UnheadSchemaOrg());
125
- return useHead(head, {
126
- script: [
127
- {
128
- type: "application/ld+json",
129
- key: "schema-org-graph",
130
- nodes: input
131
- }
132
- ]
133
- }, options);
134
- }
135
-
136
- export { UnheadSchemaOrg, defineAddress, defineAggregateOffer, defineAggregateRating, defineArticle, defineBook, defineBookEdition, defineBreadcrumb, defineComment, defineCourse, defineEvent, defineFoodEstablishment, defineHowTo, defineHowToStep, defineImage, defineItemList, defineJobPosting, defineListItem, defineLocalBusiness, defineMovie, defineOffer, defineOpeningHours, defineOrganization, definePerson, definePlace, defineProduct, defineQuestion, defineReadAction, defineRecipe, defineReview, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite, useSchemaOrg };
@@ -0,0 +1,13 @@
1
+ import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
2
+ import { U as UseSchemaOrgInput } from './shared/schema-org.BDzDgQHq.mjs';
3
+ export { c as defineArticle, A as defineBook, e as defineBreadcrumb, f as defineComment, B as defineCourse, g as defineEvent, h as defineFoodEstablishment, k as defineHowTo, m as defineImage, C as defineItemList, n as defineJobPosting, o as defineLocalBusiness, E as defineMovie, r as defineOrganization, s as definePerson, t as defineProduct, u as defineQuestion, v as defineRecipe, w as defineReview, H as defineSoftwareApp, x as defineVideo, y as defineWebPage, z as defineWebSite } from './shared/schema-org.BDzDgQHq.mjs';
4
+ export { M as MetaInput, bf as UserConfig } from './shared/schema-org.C9XO8kJo.mjs';
5
+
6
+ declare const schemaOrgAutoImports: {
7
+ from: string;
8
+ imports: string[];
9
+ }[];
10
+
11
+ declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSchemaOrgInput>;
12
+
13
+ export { schemaOrgAutoImports, useSchemaOrg };
@@ -0,0 +1,13 @@
1
+ import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
2
+ import { U as UseSchemaOrgInput } from './shared/schema-org.DC9JJOX5.js';
3
+ export { c as defineArticle, A as defineBook, e as defineBreadcrumb, f as defineComment, B as defineCourse, g as defineEvent, h as defineFoodEstablishment, k as defineHowTo, m as defineImage, C as defineItemList, n as defineJobPosting, o as defineLocalBusiness, E as defineMovie, r as defineOrganization, s as definePerson, t as defineProduct, u as defineQuestion, v as defineRecipe, w as defineReview, H as defineSoftwareApp, x as defineVideo, y as defineWebPage, z as defineWebSite } from './shared/schema-org.DC9JJOX5.js';
4
+ export { M as MetaInput, bf as UserConfig } from './shared/schema-org.C9XO8kJo.js';
5
+
6
+ declare const schemaOrgAutoImports: {
7
+ from: string;
8
+ imports: string[];
9
+ }[];
10
+
11
+ declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSchemaOrgInput>;
12
+
13
+ export { schemaOrgAutoImports, useSchemaOrg };
package/dist/react.mjs ADDED
@@ -0,0 +1,29 @@
1
+ import { useUnhead, useHead } from '@unhead/react';
2
+ import { s as schemaAutoImports } from './shared/schema-org.q010LqYD.mjs';
3
+ import { a0 as UnheadSchemaOrg, aC as normalizeSchemaOrgInput } from './shared/schema-org.CZClK-9x.mjs';
4
+ export { a6 as defineArticle, at as defineBook, a7 as defineBreadcrumb, a8 as defineComment, au as defineCourse, a9 as defineEvent, aa as defineFoodEstablishment, ad as defineHowTo, af as defineImage, av as defineItemList, ag as defineJobPosting, ah as defineLocalBusiness, ax as defineMovie, ak as defineOrganization, al as definePerson, am as defineProduct, an as defineQuestion, ao as defineRecipe, ap as defineReview, aA as defineSoftwareApp, aq as defineVideo, ar as defineWebPage, as as defineWebSite } from './shared/schema-org.CZClK-9x.mjs';
5
+ import 'defu';
6
+ import 'unhead/plugins';
7
+ import 'unhead/utils';
8
+ import 'ufo';
9
+ import 'ohash';
10
+
11
+ const schemaOrgAutoImports = [
12
+ {
13
+ from: "@unhead/schema-org/react",
14
+ imports: schemaAutoImports
15
+ }
16
+ ];
17
+ function useSchemaOrg(input = [], options = {}) {
18
+ const unhead = options.head || useUnhead();
19
+ unhead.use(UnheadSchemaOrg());
20
+ const entry = useHead(normalizeSchemaOrgInput(input), options);
21
+ const corePatch = entry.patch;
22
+ if (!entry.__patched) {
23
+ entry.patch = (input2) => corePatch(normalizeSchemaOrgInput(input2));
24
+ entry.__patched = true;
25
+ }
26
+ return entry;
27
+ }
28
+
29
+ export { schemaOrgAutoImports, useSchemaOrg };
@@ -0,0 +1,43 @@
1
+ import { Unhead, HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
2
+ import { ay as PostalAddress, e as AggregateOffer, h as AggregateRating, k as Article, t as BreadcrumbList, w as Comment, F as Event, Q as FoodEstablishment, L as VirtualLocation, J as Place, X as HowTo, $ as HowToStep, a4 as ImageObject, aa as JobPosting, ag as LocalBusiness, am as Offer, ap as OpeningHoursSpecification, as as Organization, av as Person, aB as Product, aF as Question, aL as Recipe, aQ as Review, aW as VideoObject, aZ as WebPage, b4 as WebSite, m as Book, z as Course, a7 as ItemList, ad as ListItem, aj as Movie, b8 as SearchAction, b1 as ReadAction, aT as SoftwareApp, o as BookEdition, A as Arrayable, T as Thing } from './schema-org.C9XO8kJo.mjs';
3
+
4
+ declare function defineAddress<T extends Record<string, any>>(input?: PostalAddress & T): PostalAddress & T;
5
+ declare function defineAggregateOffer<T extends Record<string, any>>(input?: AggregateOffer & T): AggregateOffer & T;
6
+ declare function defineAggregateRating<T extends Record<string, any>>(input?: AggregateRating & T): AggregateRating & T;
7
+ declare function defineArticle<T extends Record<string, any>>(input?: Article & T): Article & T;
8
+ declare function defineBreadcrumb<T extends Record<string, any>>(input?: BreadcrumbList & T): BreadcrumbList & T;
9
+ declare function defineComment<T extends Record<string, any>>(input?: Comment & T): Comment & T;
10
+ declare function defineEvent<T extends Record<string, any>>(input?: Event & T): Event & T;
11
+ declare function defineFoodEstablishment<T extends Record<string, any>>(input?: FoodEstablishment & T): FoodEstablishment & T;
12
+ declare function defineVirtualLocation<T extends Record<string, any>>(input?: VirtualLocation & T): VirtualLocation & T;
13
+ declare function definePlace<T extends Record<string, any>>(input?: Place & T): Place & T;
14
+ declare function defineHowTo<T extends Record<string, any>>(input?: HowTo & T): HowTo & T;
15
+ declare function defineHowToStep<T extends Record<string, any>>(input?: HowToStep & T): HowToStep & T;
16
+ declare function defineImage<T extends Record<string, any>>(input?: ImageObject & T): ImageObject & T;
17
+ declare function defineJobPosting<T extends Record<string, any>>(input?: JobPosting & T): JobPosting & T;
18
+ declare function defineLocalBusiness<T extends Record<string, any>>(input?: LocalBusiness & T): LocalBusiness & T;
19
+ declare function defineOffer<T extends Record<string, any>>(input?: Offer & T): Offer & T;
20
+ declare function defineOpeningHours<T extends Record<string, any>>(input?: OpeningHoursSpecification & T): OpeningHoursSpecification & T;
21
+ declare function defineOrganization<T extends Record<string, any>>(input?: Organization & T): Organization & T;
22
+ declare function definePerson<T extends Record<string, any>>(input?: Person & T): Person & T;
23
+ declare function defineProduct<T extends Record<string, any>>(input?: Product & T): Product & T;
24
+ declare function defineQuestion<T extends Record<string, any>>(input?: Question & T): Question & T;
25
+ declare function defineRecipe<T extends Record<string, any>>(input?: Recipe & T): Recipe & T;
26
+ declare function defineReview<T extends Record<string, any>>(input?: Review & T): Review & T;
27
+ declare function defineVideo<T extends Record<string, any>>(input?: VideoObject & T): VideoObject & T;
28
+ declare function defineWebPage<T extends Record<string, any>>(input?: WebPage & T): WebPage & T;
29
+ declare function defineWebSite<T extends Record<string, any>>(input?: WebSite & T): WebSite & T;
30
+ declare function defineBook<T extends Record<string, any>>(input?: Book & T): Book & T;
31
+ declare function defineCourse<T extends Record<string, any>>(input?: Course & T): Course & T;
32
+ declare function defineItemList<T extends Record<string, any>>(input?: ItemList & T): ItemList & T;
33
+ declare function defineListItem<T extends Record<string, any>>(input?: ListItem & T): ListItem & T;
34
+ declare function defineMovie<T extends Record<string, any>>(input?: Movie & T): Movie & T;
35
+ declare function defineSearchAction<T extends Record<string, any>>(input?: SearchAction & T): SearchAction & T;
36
+ declare function defineReadAction<T extends Record<string, any>>(input?: ReadAction & T): ReadAction & T;
37
+ declare function defineSoftwareApp<T extends Record<string, any>>(input?: SoftwareApp & T): SoftwareApp & T;
38
+ declare function defineBookEdition<T extends Record<string, any>>(input?: BookEdition & T): BookEdition & T;
39
+ type UseSchemaOrgInput = Arrayable<Thing | Record<string, any>>;
40
+ declare function normalizeSchemaOrgInput<T extends UseSchemaOrgInput>(input: T): T;
41
+ declare function useSchemaOrg(unhead: Unhead<any>, input?: UseSchemaOrgInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSchemaOrgInput>;
42
+
43
+ export { defineBook as A, defineCourse as B, defineItemList as C, defineListItem as D, defineMovie as E, defineSearchAction as F, defineReadAction as G, defineSoftwareApp as H, defineBookEdition as I, normalizeSchemaOrgInput as J, useSchemaOrg as K, type UseSchemaOrgInput as U, defineAggregateOffer as a, defineAggregateRating as b, defineArticle as c, defineAddress as d, defineBreadcrumb as e, defineComment as f, defineEvent as g, defineFoodEstablishment as h, defineVirtualLocation as i, definePlace as j, defineHowTo as k, defineHowToStep as l, defineImage as m, defineJobPosting as n, defineLocalBusiness as o, defineOffer as p, defineOpeningHours as q, defineOrganization as r, definePerson as s, defineProduct as t, defineQuestion as u, defineRecipe as v, defineReview as w, defineVideo as x, defineWebPage as y, defineWebSite as z };
@@ -0,0 +1,20 @@
1
+ import * as unhead_types from 'unhead/types';
2
+ import { M as MetaInput } from './schema-org.C9XO8kJo.mjs';
3
+
4
+ interface PluginSchemaOrgOptions {
5
+ minify?: boolean;
6
+ trailingSlash?: boolean;
7
+ }
8
+ declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
9
+ /**
10
+ * @deprecated Providing a plugin is no longer required. You can remove this code.
11
+ */
12
+ declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
13
+ resolveMeta?: () => Record<string, any>;
14
+ }): unhead_types.HeadPluginInput;
15
+ /**
16
+ * @deprecated Providing a plugin is no longer required. You can remove this code.
17
+ */
18
+ declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
19
+
20
+ export { type PluginSchemaOrgOptions as P, SchemaOrgUnheadPlugin as S, UnheadSchemaOrg as U, PluginSchemaOrg as a };
@@ -0,0 +1,20 @@
1
+ import * as unhead_types from 'unhead/types';
2
+ import { M as MetaInput } from './schema-org.C9XO8kJo.js';
3
+
4
+ interface PluginSchemaOrgOptions {
5
+ minify?: boolean;
6
+ trailingSlash?: boolean;
7
+ }
8
+ declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
9
+ /**
10
+ * @deprecated Providing a plugin is no longer required. You can remove this code.
11
+ */
12
+ declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
13
+ resolveMeta?: () => Record<string, any>;
14
+ }): unhead_types.HeadPluginInput;
15
+ /**
16
+ * @deprecated Providing a plugin is no longer required. You can remove this code.
17
+ */
18
+ declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
19
+
20
+ export { type PluginSchemaOrgOptions as P, SchemaOrgUnheadPlugin as S, UnheadSchemaOrg as U, PluginSchemaOrg as a };
@@ -1,5 +1,3 @@
1
- import * as _unhead_schema from '@unhead/schema';
2
-
3
1
  interface DefinedRegion extends Thing {
4
2
  /**
5
3
  * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1) format.
@@ -1529,8 +1527,8 @@ interface MetaInput {
1529
1527
  inLanguage?: string;
1530
1528
  title?: string;
1531
1529
  description?: string;
1532
- datePublished?: Date | string;
1533
- dateModified?: Date | string;
1530
+ datePublished?: string;
1531
+ dateModified?: string;
1534
1532
  /**
1535
1533
  * @deprecated use tagPosition
1536
1534
  */
@@ -1551,10 +1549,6 @@ interface MetaInput {
1551
1549
  * @deprecated use `url` or `path`
1552
1550
  */
1553
1551
  canonicalUrl?: string;
1554
- /**
1555
- * @deprecated use root keys.
1556
- */
1557
- meta?: MetaInput;
1558
1552
  }
1559
1553
  interface UserConfig extends MetaInput {
1560
1554
  }
@@ -1623,20 +1617,4 @@ interface SchemaOrgGraph {
1623
1617
  }
1624
1618
  declare function createSchemaOrgGraph(): SchemaOrgGraph;
1625
1619
 
1626
- interface PluginSchemaOrgOptions {
1627
- minify?: boolean;
1628
- trailingSlash?: boolean;
1629
- }
1630
- declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): _unhead_schema.HeadPluginInput;
1631
- /**
1632
- * @deprecated Providing a plugin is no longer required. You can remove this code.
1633
- */
1634
- declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
1635
- resolveMeta?: () => Record<string, any>;
1636
- }): _unhead_schema.HeadPluginInput;
1637
- /**
1638
- * @deprecated Providing a plugin is no longer required. You can remove this code.
1639
- */
1640
- declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): _unhead_schema.HeadPluginInput;
1641
-
1642
- export { PrimaryBookId as $, type Arrayable as A, type BreadcrumbList as B, type Comment$1 as C, aggregateOfferResolver as D, type Event as E, type FoodEstablishment as F, type AggregateRatingSimple as G, type HowTo as H, type ImageObject as I, type JobPosting as J, aggregateRatingResolver as K, type LocalBusiness as L, type MetaInput as M, type ArticleSimple as N, type Offer as O, type PostalAddress as P, type Question as Q, type ResolvedMeta as R, type SchemaOrgNodeDefinition as S, type Thing as T, PrimaryArticleId as U, type VirtualLocation as V, type WebPage as W, articleResolver as X, type BookSimple as Y, type BookEditionSimple as Z, bookEditionResolver as _, type SchemaOrgGraph as a, videoResolver as a$, bookResolver as a0, type BreadcrumbSimple as a1, PrimaryBreadcrumbId as a2, breadcrumbResolver as a3, type CommentSimple as a4, commentResolver as a5, type CourseSimple as a6, courseResolver as a7, type EventSimple as a8, PrimaryEventId as a9, type OfferSimple as aA, offerResolver as aB, type OpeningHoursSimple as aC, openingHoursResolver as aD, type OrganizationSimple as aE, organizationResolver as aF, type PersonSimple as aG, personResolver as aH, type PostalAddressSimple as aI, addressResolver as aJ, type ProductSimple as aK, ProductId as aL, productResolver as aM, type QuestionSimple as aN, questionResolver as aO, type RatingSimple as aP, type Rating as aQ, ratingResolver as aR, type RecipeSimple as aS, type NutritionInformation as aT, RecipeId as aU, recipeResolver as aV, type ReviewSimple as aW, reviewResolver as aX, type SoftwareAppSimple as aY, softwareAppResolver as aZ, type VideoSimple as a_, eventResolver as aa, type PlaceSimple as ab, placeResolver as ac, type VirtualLocationSimple as ad, virtualLocationResolver as ae, type FoodEstablishmentSimple as af, foodEstablishmentResolver as ag, type HowToSimple as ah, HowToId as ai, howToResolver as aj, type HowToStepSimple as ak, howToStepResolver as al, type HowToDirection as am, howToStepDirectionResolver as an, type ImageSimple as ao, imageResolver as ap, type ItemListSimple as aq, itemListResolver as ar, type JobPostingSimple as as, jobPostingResolver as at, type ListItemSimple as au, listItemResolver as av, type LocalBusinessSimple as aw, localBusinessResolver as ax, type MovieSimple as ay, movieResolver as az, type SchemaOrgNode as b, type WebPageSimple as b0, PrimaryWebPageId as b1, webPageResolver as b2, type ReadActionInput as b3, readActionResolver as b4, type WebSiteSimple as b5, PrimaryWebSiteId as b6, webSiteResolver as b7, type SearchActionInput as b8, searchActionResolver as b9, type PluginSchemaOrgOptions as ba, UnheadSchemaOrg as bb, PluginSchemaOrg as bc, SchemaOrgUnheadPlugin as bd, type NodeRelation as be, type NodeRelations as bf, type Identity as bg, type ResolvableDate as bh, type OptionalSchemaOrgPrefix as bi, type UserConfig as bj, type WithResolver as bk, type IdReference as bl, type Id as bm, type AggregateOffer as c, type AggregateRating as d, type Article as e, type Place as f, type HowToStep as g, type OpeningHoursSpecification as h, type Organization as i, type Person as j, type Product as k, type Recipe as l, type Review as m, type VideoObject as n, type WebSite as o, type Book as p, type Course as q, type ItemList as r, type ListItem as s, type Movie as t, type SearchAction as u, type ReadAction as v, type SoftwareApp as w, type BookEdition as x, createSchemaOrgGraph as y, type AggregateOfferSimple as z };
1620
+ export { type HowToStep as $, type Arrayable as A, type BookSimple as B, type CommentSimple as C, courseResolver as D, type EventSimple as E, type Event as F, PrimaryEventId as G, eventResolver as H, type PlaceSimple as I, type Place as J, placeResolver as K, type VirtualLocation as L, type MetaInput as M, virtualLocationResolver as N, type FoodEstablishmentSimple as O, PrimaryArticleId as P, type FoodEstablishment as Q, type ResolvedMeta as R, type SchemaOrgNodeDefinition as S, type Thing as T, foodEstablishmentResolver as U, type VirtualLocationSimple as V, type HowToSimple as W, type HowTo as X, HowToId as Y, howToResolver as Z, type HowToStepSimple as _, type SchemaOrgGraph as a, webPageResolver as a$, howToStepResolver as a0, type HowToDirection as a1, howToStepDirectionResolver as a2, type ImageSimple as a3, type ImageObject as a4, imageResolver as a5, type ItemListSimple as a6, type ItemList as a7, itemListResolver as a8, type JobPostingSimple as a9, type ProductSimple as aA, type Product as aB, ProductId as aC, productResolver as aD, type QuestionSimple as aE, type Question as aF, questionResolver as aG, type RatingSimple as aH, type Rating as aI, ratingResolver as aJ, type RecipeSimple as aK, type Recipe as aL, type NutritionInformation as aM, RecipeId as aN, recipeResolver as aO, type ReviewSimple as aP, type Review as aQ, reviewResolver as aR, type SoftwareAppSimple as aS, type SoftwareApp as aT, softwareAppResolver as aU, type VideoSimple as aV, type VideoObject as aW, videoResolver as aX, type WebPageSimple as aY, type WebPage as aZ, PrimaryWebPageId as a_, type JobPosting as aa, jobPostingResolver as ab, type ListItemSimple as ac, type ListItem as ad, listItemResolver as ae, type LocalBusinessSimple as af, type LocalBusiness as ag, localBusinessResolver as ah, type MovieSimple as ai, type Movie as aj, movieResolver as ak, type OfferSimple as al, type Offer as am, offerResolver as an, type OpeningHoursSimple as ao, type OpeningHoursSpecification as ap, openingHoursResolver as aq, type OrganizationSimple as ar, type Organization as as, organizationResolver as at, type PersonSimple as au, type Person as av, personResolver as aw, type PostalAddressSimple as ax, type PostalAddress as ay, addressResolver as az, type SchemaOrgNode as b, type ReadActionInput as b0, type ReadAction as b1, readActionResolver as b2, type WebSiteSimple as b3, type WebSite as b4, PrimaryWebSiteId as b5, webSiteResolver as b6, type SearchActionInput as b7, type SearchAction as b8, searchActionResolver as b9, type NodeRelation as ba, type NodeRelations as bb, type Identity as bc, type ResolvableDate as bd, type OptionalSchemaOrgPrefix as be, type UserConfig as bf, type WithResolver as bg, type IdReference as bh, type Id as bi, createSchemaOrgGraph as c, type AggregateOfferSimple as d, type AggregateOffer as e, aggregateOfferResolver as f, type AggregateRatingSimple as g, type AggregateRating as h, aggregateRatingResolver as i, type ArticleSimple as j, type Article as k, articleResolver as l, type Book as m, type BookEditionSimple as n, type BookEdition as o, bookEditionResolver as p, PrimaryBookId as q, bookResolver as r, type BreadcrumbSimple as s, type BreadcrumbList as t, PrimaryBreadcrumbId as u, breadcrumbResolver as v, type Comment$1 as w, commentResolver as x, type CourseSimple as y, type Course as z };
@@ -1,5 +1,3 @@
1
- import * as _unhead_schema from '@unhead/schema';
2
-
3
1
  interface DefinedRegion extends Thing {
4
2
  /**
5
3
  * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1) format.
@@ -1529,8 +1527,8 @@ interface MetaInput {
1529
1527
  inLanguage?: string;
1530
1528
  title?: string;
1531
1529
  description?: string;
1532
- datePublished?: Date | string;
1533
- dateModified?: Date | string;
1530
+ datePublished?: string;
1531
+ dateModified?: string;
1534
1532
  /**
1535
1533
  * @deprecated use tagPosition
1536
1534
  */
@@ -1551,10 +1549,6 @@ interface MetaInput {
1551
1549
  * @deprecated use `url` or `path`
1552
1550
  */
1553
1551
  canonicalUrl?: string;
1554
- /**
1555
- * @deprecated use root keys.
1556
- */
1557
- meta?: MetaInput;
1558
1552
  }
1559
1553
  interface UserConfig extends MetaInput {
1560
1554
  }
@@ -1623,20 +1617,4 @@ interface SchemaOrgGraph {
1623
1617
  }
1624
1618
  declare function createSchemaOrgGraph(): SchemaOrgGraph;
1625
1619
 
1626
- interface PluginSchemaOrgOptions {
1627
- minify?: boolean;
1628
- trailingSlash?: boolean;
1629
- }
1630
- declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): _unhead_schema.HeadPluginInput;
1631
- /**
1632
- * @deprecated Providing a plugin is no longer required. You can remove this code.
1633
- */
1634
- declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
1635
- resolveMeta?: () => Record<string, any>;
1636
- }): _unhead_schema.HeadPluginInput;
1637
- /**
1638
- * @deprecated Providing a plugin is no longer required. You can remove this code.
1639
- */
1640
- declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): _unhead_schema.HeadPluginInput;
1641
-
1642
- export { PrimaryBookId as $, type Arrayable as A, type BreadcrumbList as B, type Comment$1 as C, aggregateOfferResolver as D, type Event as E, type FoodEstablishment as F, type AggregateRatingSimple as G, type HowTo as H, type ImageObject as I, type JobPosting as J, aggregateRatingResolver as K, type LocalBusiness as L, type MetaInput as M, type ArticleSimple as N, type Offer as O, type PostalAddress as P, type Question as Q, type ResolvedMeta as R, type SchemaOrgNodeDefinition as S, type Thing as T, PrimaryArticleId as U, type VirtualLocation as V, type WebPage as W, articleResolver as X, type BookSimple as Y, type BookEditionSimple as Z, bookEditionResolver as _, type SchemaOrgGraph as a, videoResolver as a$, bookResolver as a0, type BreadcrumbSimple as a1, PrimaryBreadcrumbId as a2, breadcrumbResolver as a3, type CommentSimple as a4, commentResolver as a5, type CourseSimple as a6, courseResolver as a7, type EventSimple as a8, PrimaryEventId as a9, type OfferSimple as aA, offerResolver as aB, type OpeningHoursSimple as aC, openingHoursResolver as aD, type OrganizationSimple as aE, organizationResolver as aF, type PersonSimple as aG, personResolver as aH, type PostalAddressSimple as aI, addressResolver as aJ, type ProductSimple as aK, ProductId as aL, productResolver as aM, type QuestionSimple as aN, questionResolver as aO, type RatingSimple as aP, type Rating as aQ, ratingResolver as aR, type RecipeSimple as aS, type NutritionInformation as aT, RecipeId as aU, recipeResolver as aV, type ReviewSimple as aW, reviewResolver as aX, type SoftwareAppSimple as aY, softwareAppResolver as aZ, type VideoSimple as a_, eventResolver as aa, type PlaceSimple as ab, placeResolver as ac, type VirtualLocationSimple as ad, virtualLocationResolver as ae, type FoodEstablishmentSimple as af, foodEstablishmentResolver as ag, type HowToSimple as ah, HowToId as ai, howToResolver as aj, type HowToStepSimple as ak, howToStepResolver as al, type HowToDirection as am, howToStepDirectionResolver as an, type ImageSimple as ao, imageResolver as ap, type ItemListSimple as aq, itemListResolver as ar, type JobPostingSimple as as, jobPostingResolver as at, type ListItemSimple as au, listItemResolver as av, type LocalBusinessSimple as aw, localBusinessResolver as ax, type MovieSimple as ay, movieResolver as az, type SchemaOrgNode as b, type WebPageSimple as b0, PrimaryWebPageId as b1, webPageResolver as b2, type ReadActionInput as b3, readActionResolver as b4, type WebSiteSimple as b5, PrimaryWebSiteId as b6, webSiteResolver as b7, type SearchActionInput as b8, searchActionResolver as b9, type PluginSchemaOrgOptions as ba, UnheadSchemaOrg as bb, PluginSchemaOrg as bc, SchemaOrgUnheadPlugin as bd, type NodeRelation as be, type NodeRelations as bf, type Identity as bg, type ResolvableDate as bh, type OptionalSchemaOrgPrefix as bi, type UserConfig as bj, type WithResolver as bk, type IdReference as bl, type Id as bm, type AggregateOffer as c, type AggregateRating as d, type Article as e, type Place as f, type HowToStep as g, type OpeningHoursSpecification as h, type Organization as i, type Person as j, type Product as k, type Recipe as l, type Review as m, type VideoObject as n, type WebSite as o, type Book as p, type Course as q, type ItemList as r, type ListItem as s, type Movie as t, type SearchAction as u, type ReadAction as v, type SoftwareApp as w, type BookEdition as x, createSchemaOrgGraph as y, type AggregateOfferSimple as z };
1620
+ export { type HowToStep as $, type Arrayable as A, type BookSimple as B, type CommentSimple as C, courseResolver as D, type EventSimple as E, type Event as F, PrimaryEventId as G, eventResolver as H, type PlaceSimple as I, type Place as J, placeResolver as K, type VirtualLocation as L, type MetaInput as M, virtualLocationResolver as N, type FoodEstablishmentSimple as O, PrimaryArticleId as P, type FoodEstablishment as Q, type ResolvedMeta as R, type SchemaOrgNodeDefinition as S, type Thing as T, foodEstablishmentResolver as U, type VirtualLocationSimple as V, type HowToSimple as W, type HowTo as X, HowToId as Y, howToResolver as Z, type HowToStepSimple as _, type SchemaOrgGraph as a, webPageResolver as a$, howToStepResolver as a0, type HowToDirection as a1, howToStepDirectionResolver as a2, type ImageSimple as a3, type ImageObject as a4, imageResolver as a5, type ItemListSimple as a6, type ItemList as a7, itemListResolver as a8, type JobPostingSimple as a9, type ProductSimple as aA, type Product as aB, ProductId as aC, productResolver as aD, type QuestionSimple as aE, type Question as aF, questionResolver as aG, type RatingSimple as aH, type Rating as aI, ratingResolver as aJ, type RecipeSimple as aK, type Recipe as aL, type NutritionInformation as aM, RecipeId as aN, recipeResolver as aO, type ReviewSimple as aP, type Review as aQ, reviewResolver as aR, type SoftwareAppSimple as aS, type SoftwareApp as aT, softwareAppResolver as aU, type VideoSimple as aV, type VideoObject as aW, videoResolver as aX, type WebPageSimple as aY, type WebPage as aZ, PrimaryWebPageId as a_, type JobPosting as aa, jobPostingResolver as ab, type ListItemSimple as ac, type ListItem as ad, listItemResolver as ae, type LocalBusinessSimple as af, type LocalBusiness as ag, localBusinessResolver as ah, type MovieSimple as ai, type Movie as aj, movieResolver as ak, type OfferSimple as al, type Offer as am, offerResolver as an, type OpeningHoursSimple as ao, type OpeningHoursSpecification as ap, openingHoursResolver as aq, type OrganizationSimple as ar, type Organization as as, organizationResolver as at, type PersonSimple as au, type Person as av, personResolver as aw, type PostalAddressSimple as ax, type PostalAddress as ay, addressResolver as az, type SchemaOrgNode as b, type ReadActionInput as b0, type ReadAction as b1, readActionResolver as b2, type WebSiteSimple as b3, type WebSite as b4, PrimaryWebSiteId as b5, webSiteResolver as b6, type SearchActionInput as b7, type SearchAction as b8, searchActionResolver as b9, type NodeRelation as ba, type NodeRelations as bb, type Identity as bc, type ResolvableDate as bd, type OptionalSchemaOrgPrefix as be, type UserConfig as bf, type WithResolver as bg, type IdReference as bh, type Id as bi, createSchemaOrgGraph as c, type AggregateOfferSimple as d, type AggregateOffer as e, aggregateOfferResolver as f, type AggregateRatingSimple as g, type AggregateRating as h, aggregateRatingResolver as i, type ArticleSimple as j, type Article as k, articleResolver as l, type Book as m, type BookEditionSimple as n, type BookEdition as o, bookEditionResolver as p, PrimaryBookId as q, bookResolver as r, type BreadcrumbSimple as s, type BreadcrumbList as t, PrimaryBreadcrumbId as u, breadcrumbResolver as v, type Comment$1 as w, commentResolver as x, type CourseSimple as y, type Course as z };