@unhead/schema-org 2.0.0-alpha.16 → 2.0.0-alpha.18
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 +6 -43
- package/dist/index.d.ts +6 -43
- package/dist/index.mjs +1 -132
- package/dist/react.d.mts +13 -0
- package/dist/react.d.ts +13 -0
- package/dist/react.mjs +29 -0
- package/dist/shared/{schema-org.Bti4ERSk.mjs → schema-org.BxLItFmu.mjs} +139 -6
- package/dist/shared/schema-org.C2ZsOrzt.d.ts +20 -0
- package/dist/shared/schema-org.CKJLadAI.d.mts +43 -0
- package/dist/shared/{schema-org.Fdqyt78I.d.mts → schema-org.CdY0-o8g.d.mts} +1 -19
- package/dist/shared/{schema-org.Fdqyt78I.d.ts → schema-org.CdY0-o8g.d.ts} +1 -19
- package/dist/shared/schema-org.De0W-DRU.d.ts +43 -0
- package/dist/shared/schema-org.TfU_rjvo.d.mts +20 -0
- package/dist/shared/schema-org.q010LqYD.mjs +40 -0
- package/dist/svelte.d.mts +13 -0
- package/dist/svelte.d.ts +13 -0
- package/dist/svelte.mjs +26 -0
- package/dist/vue.d.mts +6 -11
- package/dist/vue.d.ts +6 -11
- package/dist/vue.mjs +11 -55
- package/package.json +37 -9
- package/react.d.ts +1 -0
- package/svelte.d.ts +1 -0
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
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
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.CdY0-o8g.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.CdY0-o8g.mjs';
|
|
3
|
+
export { a as PluginSchemaOrg, P as PluginSchemaOrgOptions, S as SchemaOrgUnheadPlugin, U as UnheadSchemaOrg } from './shared/schema-org.TfU_rjvo.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.CKJLadAI.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
|
-
|
|
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_types.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
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
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.CdY0-o8g.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.CdY0-o8g.js';
|
|
3
|
+
export { a as PluginSchemaOrg, P as PluginSchemaOrgOptions, S as SchemaOrgUnheadPlugin, U as UnheadSchemaOrg } from './shared/schema-org.C2ZsOrzt.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.De0W-DRU.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
|
-
|
|
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_types.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,137 +1,6 @@
|
|
|
1
|
-
|
|
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.Bti4ERSk.mjs';
|
|
3
|
-
import { useHead } from 'unhead';
|
|
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.BxLItFmu.mjs';
|
|
4
2
|
import 'defu';
|
|
5
3
|
import 'unhead/plugins';
|
|
6
4
|
import 'unhead/utils';
|
|
7
5
|
import 'ufo';
|
|
8
6
|
import 'ohash';
|
|
9
|
-
|
|
10
|
-
function provideResolver(input, resolver) {
|
|
11
|
-
if (!input)
|
|
12
|
-
input = {};
|
|
13
|
-
input._resolver = resolver;
|
|
14
|
-
return input;
|
|
15
|
-
}
|
|
16
|
-
function defineAddress(input) {
|
|
17
|
-
return provideResolver(input, "address");
|
|
18
|
-
}
|
|
19
|
-
function defineAggregateOffer(input) {
|
|
20
|
-
return provideResolver(input, "aggregateOffer");
|
|
21
|
-
}
|
|
22
|
-
function defineAggregateRating(input) {
|
|
23
|
-
return provideResolver(input, "aggregateRating");
|
|
24
|
-
}
|
|
25
|
-
function defineArticle(input) {
|
|
26
|
-
return provideResolver(input, "article");
|
|
27
|
-
}
|
|
28
|
-
function defineBreadcrumb(input) {
|
|
29
|
-
return provideResolver(input, "breadcrumb");
|
|
30
|
-
}
|
|
31
|
-
function defineComment(input) {
|
|
32
|
-
return provideResolver(input, "comment");
|
|
33
|
-
}
|
|
34
|
-
function defineEvent(input) {
|
|
35
|
-
return provideResolver(input, "event");
|
|
36
|
-
}
|
|
37
|
-
function defineFoodEstablishment(input) {
|
|
38
|
-
return provideResolver(input, "foodEstablishment");
|
|
39
|
-
}
|
|
40
|
-
function defineVirtualLocation(input) {
|
|
41
|
-
return provideResolver(input, "virtualLocation");
|
|
42
|
-
}
|
|
43
|
-
function definePlace(input) {
|
|
44
|
-
return provideResolver(input, "place");
|
|
45
|
-
}
|
|
46
|
-
function defineHowTo(input) {
|
|
47
|
-
return provideResolver(input, "howTo");
|
|
48
|
-
}
|
|
49
|
-
function defineHowToStep(input) {
|
|
50
|
-
return provideResolver(input, "howToStep");
|
|
51
|
-
}
|
|
52
|
-
function defineImage(input) {
|
|
53
|
-
return provideResolver(input, "image");
|
|
54
|
-
}
|
|
55
|
-
function defineJobPosting(input) {
|
|
56
|
-
return provideResolver(input, "jobPosting");
|
|
57
|
-
}
|
|
58
|
-
function defineLocalBusiness(input) {
|
|
59
|
-
return provideResolver(input, "localBusiness");
|
|
60
|
-
}
|
|
61
|
-
function defineOffer(input) {
|
|
62
|
-
return provideResolver(input, "offer");
|
|
63
|
-
}
|
|
64
|
-
function defineOpeningHours(input) {
|
|
65
|
-
return provideResolver(input, "openingHours");
|
|
66
|
-
}
|
|
67
|
-
function defineOrganization(input) {
|
|
68
|
-
return provideResolver(input, "organization");
|
|
69
|
-
}
|
|
70
|
-
function definePerson(input) {
|
|
71
|
-
return provideResolver(input, "person");
|
|
72
|
-
}
|
|
73
|
-
function defineProduct(input) {
|
|
74
|
-
return provideResolver(input, "product");
|
|
75
|
-
}
|
|
76
|
-
function defineQuestion(input) {
|
|
77
|
-
return provideResolver(input, "question");
|
|
78
|
-
}
|
|
79
|
-
function defineRecipe(input) {
|
|
80
|
-
return provideResolver(input, "recipe");
|
|
81
|
-
}
|
|
82
|
-
function defineReview(input) {
|
|
83
|
-
return provideResolver(input, "review");
|
|
84
|
-
}
|
|
85
|
-
function defineVideo(input) {
|
|
86
|
-
return provideResolver(input, "video");
|
|
87
|
-
}
|
|
88
|
-
function defineWebPage(input) {
|
|
89
|
-
return provideResolver(input, "webPage");
|
|
90
|
-
}
|
|
91
|
-
function defineWebSite(input) {
|
|
92
|
-
return provideResolver(input, "webSite");
|
|
93
|
-
}
|
|
94
|
-
function defineBook(input) {
|
|
95
|
-
return provideResolver(input, "book");
|
|
96
|
-
}
|
|
97
|
-
function defineCourse(input) {
|
|
98
|
-
return provideResolver(input, "course");
|
|
99
|
-
}
|
|
100
|
-
function defineItemList(input) {
|
|
101
|
-
return provideResolver(input, "itemList");
|
|
102
|
-
}
|
|
103
|
-
function defineListItem(input) {
|
|
104
|
-
return provideResolver(input, "listItem");
|
|
105
|
-
}
|
|
106
|
-
function defineMovie(input) {
|
|
107
|
-
return provideResolver(input, "movie");
|
|
108
|
-
}
|
|
109
|
-
function defineSearchAction(input) {
|
|
110
|
-
return provideResolver(input, "searchAction");
|
|
111
|
-
}
|
|
112
|
-
function defineReadAction(input) {
|
|
113
|
-
return provideResolver(input, "readAction");
|
|
114
|
-
}
|
|
115
|
-
function defineSoftwareApp(input) {
|
|
116
|
-
return provideResolver(input, "softwareApp");
|
|
117
|
-
}
|
|
118
|
-
function defineBookEdition(input) {
|
|
119
|
-
return provideResolver(input, "bookEdition");
|
|
120
|
-
}
|
|
121
|
-
function useSchemaOrg(head, input, options) {
|
|
122
|
-
if (Array.isArray(input) && input.length === 0 || !input) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
head.use(UnheadSchemaOrg());
|
|
126
|
-
return useHead(head, {
|
|
127
|
-
script: [
|
|
128
|
-
{
|
|
129
|
-
type: "application/ld+json",
|
|
130
|
-
key: "schema-org-graph",
|
|
131
|
-
nodes: input
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
}, options);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
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 };
|
package/dist/react.d.mts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
+
import { U as UseSchemaOrgInput } from './shared/schema-org.CKJLadAI.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.CKJLadAI.mjs';
|
|
4
|
+
export { M as MetaInput, bf as UserConfig } from './shared/schema-org.CdY0-o8g.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 };
|
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
+
import { U as UseSchemaOrgInput } from './shared/schema-org.De0W-DRU.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.De0W-DRU.js';
|
|
4
|
+
export { M as MetaInput, bf as UserConfig } from './shared/schema-org.CdY0-o8g.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.BxLItFmu.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.BxLItFmu.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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createDefu, defu } from 'defu';
|
|
2
|
-
import { TemplateParamsPlugin } from 'unhead/plugins';
|
|
3
|
-
import {
|
|
2
|
+
import { defineHeadPlugin, TemplateParamsPlugin } from 'unhead/plugins';
|
|
3
|
+
import { processTemplateParams } from 'unhead/utils';
|
|
4
4
|
import { hasProtocol, withBase, withoutTrailingSlash, hasTrailingSlash, withTrailingSlash, joinURL } from 'ufo';
|
|
5
5
|
import { hash } from 'ohash';
|
|
6
6
|
|
|
@@ -104,7 +104,7 @@ function stripEmptyProperties(obj) {
|
|
|
104
104
|
stripEmptyProperties(obj[k]);
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
if (obj[k] === "" || obj[k] === null || obj[k] ===
|
|
107
|
+
if (obj[k] === "" || obj[k] === null || obj[k] === void 0)
|
|
108
108
|
delete obj[k];
|
|
109
109
|
}
|
|
110
110
|
return obj;
|
|
@@ -1013,7 +1013,7 @@ const productResolver = defineSchemaOrgResolver({
|
|
|
1013
1013
|
],
|
|
1014
1014
|
idPrefix: ["url", ProductId],
|
|
1015
1015
|
resolve(node, ctx) {
|
|
1016
|
-
setIfEmpty(node, "sku",
|
|
1016
|
+
setIfEmpty(node, "sku", hashCode(node.name));
|
|
1017
1017
|
node.aggregateOffer = resolveRelation(node.aggregateOffer, ctx, aggregateOfferResolver);
|
|
1018
1018
|
node.aggregateRating = resolveRelation(node.aggregateRating, ctx, aggregateRatingResolver);
|
|
1019
1019
|
node.offers = resolveRelation(node.offers, ctx, offerResolver);
|
|
@@ -1269,7 +1269,7 @@ function resolveNodeId(node, ctx, resolver, resolveAsRoot = false) {
|
|
|
1269
1269
|
if (node["@id"] && node["@id"].startsWith("http"))
|
|
1270
1270
|
return node;
|
|
1271
1271
|
const prefix = resolver ? (Array.isArray(resolver.idPrefix) ? resolver.idPrefix[0] : resolver.idPrefix) || "url" : "url";
|
|
1272
|
-
const rootId = node["@id"] || (resolver ? Array.isArray(resolver.idPrefix) ? resolver.idPrefix?.[1] :
|
|
1272
|
+
const rootId = node["@id"] || (resolver ? Array.isArray(resolver.idPrefix) ? resolver.idPrefix?.[1] : void 0 : "");
|
|
1273
1273
|
if (!node["@id"] && resolveAsRoot && rootId) {
|
|
1274
1274
|
node["@id"] = prefixId(ctx.meta[prefix], rootId);
|
|
1275
1275
|
return node;
|
|
@@ -1562,4 +1562,137 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
|
|
|
1562
1562
|
});
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
|
|
1565
|
+
function provideResolver(input, resolver) {
|
|
1566
|
+
if (!input)
|
|
1567
|
+
input = {};
|
|
1568
|
+
input._resolver = resolver;
|
|
1569
|
+
return input;
|
|
1570
|
+
}
|
|
1571
|
+
function defineAddress(input) {
|
|
1572
|
+
return provideResolver(input, "address");
|
|
1573
|
+
}
|
|
1574
|
+
function defineAggregateOffer(input) {
|
|
1575
|
+
return provideResolver(input, "aggregateOffer");
|
|
1576
|
+
}
|
|
1577
|
+
function defineAggregateRating(input) {
|
|
1578
|
+
return provideResolver(input, "aggregateRating");
|
|
1579
|
+
}
|
|
1580
|
+
function defineArticle(input) {
|
|
1581
|
+
return provideResolver(input, "article");
|
|
1582
|
+
}
|
|
1583
|
+
function defineBreadcrumb(input) {
|
|
1584
|
+
return provideResolver(input, "breadcrumb");
|
|
1585
|
+
}
|
|
1586
|
+
function defineComment(input) {
|
|
1587
|
+
return provideResolver(input, "comment");
|
|
1588
|
+
}
|
|
1589
|
+
function defineEvent(input) {
|
|
1590
|
+
return provideResolver(input, "event");
|
|
1591
|
+
}
|
|
1592
|
+
function defineFoodEstablishment(input) {
|
|
1593
|
+
return provideResolver(input, "foodEstablishment");
|
|
1594
|
+
}
|
|
1595
|
+
function defineVirtualLocation(input) {
|
|
1596
|
+
return provideResolver(input, "virtualLocation");
|
|
1597
|
+
}
|
|
1598
|
+
function definePlace(input) {
|
|
1599
|
+
return provideResolver(input, "place");
|
|
1600
|
+
}
|
|
1601
|
+
function defineHowTo(input) {
|
|
1602
|
+
return provideResolver(input, "howTo");
|
|
1603
|
+
}
|
|
1604
|
+
function defineHowToStep(input) {
|
|
1605
|
+
return provideResolver(input, "howToStep");
|
|
1606
|
+
}
|
|
1607
|
+
function defineImage(input) {
|
|
1608
|
+
return provideResolver(input, "image");
|
|
1609
|
+
}
|
|
1610
|
+
function defineJobPosting(input) {
|
|
1611
|
+
return provideResolver(input, "jobPosting");
|
|
1612
|
+
}
|
|
1613
|
+
function defineLocalBusiness(input) {
|
|
1614
|
+
return provideResolver(input, "localBusiness");
|
|
1615
|
+
}
|
|
1616
|
+
function defineOffer(input) {
|
|
1617
|
+
return provideResolver(input, "offer");
|
|
1618
|
+
}
|
|
1619
|
+
function defineOpeningHours(input) {
|
|
1620
|
+
return provideResolver(input, "openingHours");
|
|
1621
|
+
}
|
|
1622
|
+
function defineOrganization(input) {
|
|
1623
|
+
return provideResolver(input, "organization");
|
|
1624
|
+
}
|
|
1625
|
+
function definePerson(input) {
|
|
1626
|
+
return provideResolver(input, "person");
|
|
1627
|
+
}
|
|
1628
|
+
function defineProduct(input) {
|
|
1629
|
+
return provideResolver(input, "product");
|
|
1630
|
+
}
|
|
1631
|
+
function defineQuestion(input) {
|
|
1632
|
+
return provideResolver(input, "question");
|
|
1633
|
+
}
|
|
1634
|
+
function defineRecipe(input) {
|
|
1635
|
+
return provideResolver(input, "recipe");
|
|
1636
|
+
}
|
|
1637
|
+
function defineReview(input) {
|
|
1638
|
+
return provideResolver(input, "review");
|
|
1639
|
+
}
|
|
1640
|
+
function defineVideo(input) {
|
|
1641
|
+
return provideResolver(input, "video");
|
|
1642
|
+
}
|
|
1643
|
+
function defineWebPage(input) {
|
|
1644
|
+
return provideResolver(input, "webPage");
|
|
1645
|
+
}
|
|
1646
|
+
function defineWebSite(input) {
|
|
1647
|
+
return provideResolver(input, "webSite");
|
|
1648
|
+
}
|
|
1649
|
+
function defineBook(input) {
|
|
1650
|
+
return provideResolver(input, "book");
|
|
1651
|
+
}
|
|
1652
|
+
function defineCourse(input) {
|
|
1653
|
+
return provideResolver(input, "course");
|
|
1654
|
+
}
|
|
1655
|
+
function defineItemList(input) {
|
|
1656
|
+
return provideResolver(input, "itemList");
|
|
1657
|
+
}
|
|
1658
|
+
function defineListItem(input) {
|
|
1659
|
+
return provideResolver(input, "listItem");
|
|
1660
|
+
}
|
|
1661
|
+
function defineMovie(input) {
|
|
1662
|
+
return provideResolver(input, "movie");
|
|
1663
|
+
}
|
|
1664
|
+
function defineSearchAction(input) {
|
|
1665
|
+
return provideResolver(input, "searchAction");
|
|
1666
|
+
}
|
|
1667
|
+
function defineReadAction(input) {
|
|
1668
|
+
return provideResolver(input, "readAction");
|
|
1669
|
+
}
|
|
1670
|
+
function defineSoftwareApp(input) {
|
|
1671
|
+
return provideResolver(input, "softwareApp");
|
|
1672
|
+
}
|
|
1673
|
+
function defineBookEdition(input) {
|
|
1674
|
+
return provideResolver(input, "bookEdition");
|
|
1675
|
+
}
|
|
1676
|
+
function normalizeSchemaOrgInput(input) {
|
|
1677
|
+
if (input.script) {
|
|
1678
|
+
return input;
|
|
1679
|
+
}
|
|
1680
|
+
return {
|
|
1681
|
+
script: [
|
|
1682
|
+
{
|
|
1683
|
+
type: "application/ld+json",
|
|
1684
|
+
key: "schema-org-graph",
|
|
1685
|
+
nodes: input
|
|
1686
|
+
}
|
|
1687
|
+
]
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
function useSchemaOrg(unhead, input = [], options = {}) {
|
|
1691
|
+
unhead.use(UnheadSchemaOrg());
|
|
1692
|
+
const entry = unhead.push(normalizeSchemaOrgInput(input), options);
|
|
1693
|
+
const corePatch = entry.patch;
|
|
1694
|
+
entry.patch = (input2) => corePatch(normalizeSchemaOrgInput(input2));
|
|
1695
|
+
return entry;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
export { searchActionResolver as $, imageResolver as A, itemListResolver as B, jobPostingResolver as C, listItemResolver as D, localBusinessResolver as E, movieResolver as F, offerResolver as G, HowToId as H, openingHoursResolver as I, organizationResolver as J, personResolver as K, addressResolver as L, ProductId as M, productResolver as N, questionResolver as O, PrimaryArticleId as P, ratingResolver as Q, RecipeId as R, recipeResolver as S, reviewResolver as T, softwareAppResolver as U, videoResolver as V, PrimaryWebPageId as W, webPageResolver as X, readActionResolver as Y, PrimaryWebSiteId as Z, webSiteResolver as _, resolveNode as a, UnheadSchemaOrg as a0, PluginSchemaOrg as a1, SchemaOrgUnheadPlugin as a2, defineAddress as a3, defineAggregateOffer as a4, defineAggregateRating as a5, defineArticle as a6, defineBreadcrumb as a7, defineComment as a8, defineEvent as a9, defineSoftwareApp as aA, defineBookEdition as aB, normalizeSchemaOrgInput as aC, useSchemaOrg as aD, defineFoodEstablishment as aa, defineVirtualLocation as ab, definePlace as ac, defineHowTo as ad, defineHowToStep as ae, defineImage as af, defineJobPosting as ag, defineLocalBusiness as ah, defineOffer as ai, defineOpeningHours as aj, defineOrganization as ak, definePerson as al, defineProduct as am, defineQuestion as an, defineRecipe as ao, defineReview as ap, defineVideo as aq, defineWebPage as ar, defineWebSite as as, defineBook as at, defineCourse as au, defineItemList as av, defineListItem as aw, defineMovie as ax, defineSearchAction as ay, defineReadAction as az, resolveNodeId as b, createSchemaOrgGraph as c, defineSchemaOrgResolver as d, resolveRelation as e, dedupeNodes as f, aggregateOfferResolver as g, aggregateRatingResolver as h, articleResolver as i, bookEditionResolver as j, PrimaryBookId as k, bookResolver as l, PrimaryBreadcrumbId as m, normaliseNodes as n, breadcrumbResolver as o, commentResolver as p, courseResolver as q, resolveMeta as r, PrimaryEventId as s, eventResolver as t, placeResolver as u, virtualLocationResolver as v, foodEstablishmentResolver as w, howToResolver as x, howToStepResolver as y, howToStepDirectionResolver as z };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as unhead_types from 'unhead/types';
|
|
2
|
+
import { M as MetaInput } from './schema-org.CdY0-o8g.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 };
|
|
@@ -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.CdY0-o8g.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 };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as unhead_types from 'unhead/types';
|
|
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.
|
|
@@ -1623,20 +1621,4 @@ interface SchemaOrgGraph {
|
|
|
1623
1621
|
}
|
|
1624
1622
|
declare function createSchemaOrgGraph(): SchemaOrgGraph;
|
|
1625
1623
|
|
|
1626
|
-
|
|
1627
|
-
minify?: boolean;
|
|
1628
|
-
trailingSlash?: boolean;
|
|
1629
|
-
}
|
|
1630
|
-
declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.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_types.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_types.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 };
|
|
1624
|
+
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_types from 'unhead/types';
|
|
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.
|
|
@@ -1623,20 +1621,4 @@ interface SchemaOrgGraph {
|
|
|
1623
1621
|
}
|
|
1624
1622
|
declare function createSchemaOrgGraph(): SchemaOrgGraph;
|
|
1625
1623
|
|
|
1626
|
-
|
|
1627
|
-
minify?: boolean;
|
|
1628
|
-
trailingSlash?: boolean;
|
|
1629
|
-
}
|
|
1630
|
-
declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.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_types.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_types.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 };
|
|
1624
|
+
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 };
|
|
@@ -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.CdY0-o8g.js';
|
|
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.CdY0-o8g.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,40 @@
|
|
|
1
|
+
const schemaAutoImports = [
|
|
2
|
+
"defineAddress",
|
|
3
|
+
"defineAggregateOffer",
|
|
4
|
+
"defineAggregateRating",
|
|
5
|
+
"defineArticle",
|
|
6
|
+
"defineBook",
|
|
7
|
+
"defineBookEdition",
|
|
8
|
+
"defineBreadcrumb",
|
|
9
|
+
"defineComment",
|
|
10
|
+
"defineCourse",
|
|
11
|
+
"defineEvent",
|
|
12
|
+
"defineFoodEstablishment",
|
|
13
|
+
"defineHowTo",
|
|
14
|
+
"defineHowToStep",
|
|
15
|
+
"defineImage",
|
|
16
|
+
"defineItemList",
|
|
17
|
+
"defineJobPosting",
|
|
18
|
+
"defineListItem",
|
|
19
|
+
"defineLocalBusiness",
|
|
20
|
+
"defineMovie",
|
|
21
|
+
"defineOffer",
|
|
22
|
+
"defineOpeningHours",
|
|
23
|
+
"defineOrganization",
|
|
24
|
+
"definePerson",
|
|
25
|
+
"definePlace",
|
|
26
|
+
"defineProduct",
|
|
27
|
+
"defineQuestion",
|
|
28
|
+
"defineReadAction",
|
|
29
|
+
"defineRecipe",
|
|
30
|
+
"defineReview",
|
|
31
|
+
"defineSearchAction",
|
|
32
|
+
"defineSoftwareApp",
|
|
33
|
+
"defineVideo",
|
|
34
|
+
"defineVirtualLocation",
|
|
35
|
+
"defineWebPage",
|
|
36
|
+
"defineWebSite",
|
|
37
|
+
"useSchemaOrg"
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
export { schemaAutoImports as s };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
+
import { U as UseSchemaOrgInput } from './shared/schema-org.CKJLadAI.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.CKJLadAI.mjs';
|
|
4
|
+
export { M as MetaInput, bf as UserConfig } from './shared/schema-org.CdY0-o8g.mjs';
|
|
5
|
+
|
|
6
|
+
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
7
|
+
|
|
8
|
+
declare const schemaOrgAutoImports: {
|
|
9
|
+
from: string;
|
|
10
|
+
imports: string[];
|
|
11
|
+
}[];
|
|
12
|
+
|
|
13
|
+
export { schemaOrgAutoImports, useSchemaOrg };
|
package/dist/svelte.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
+
import { U as UseSchemaOrgInput } from './shared/schema-org.De0W-DRU.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.De0W-DRU.js';
|
|
4
|
+
export { M as MetaInput, bf as UserConfig } from './shared/schema-org.CdY0-o8g.js';
|
|
5
|
+
|
|
6
|
+
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
7
|
+
|
|
8
|
+
declare const schemaOrgAutoImports: {
|
|
9
|
+
from: string;
|
|
10
|
+
imports: string[];
|
|
11
|
+
}[];
|
|
12
|
+
|
|
13
|
+
export { schemaOrgAutoImports, useSchemaOrg };
|
package/dist/svelte.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useUnhead, useHead } from '@unhead/svelte';
|
|
2
|
+
import { s as schemaAutoImports } from './shared/schema-org.q010LqYD.mjs';
|
|
3
|
+
import { a0 as UnheadSchemaOrg, aC as normalizeSchemaOrgInput } from './shared/schema-org.BxLItFmu.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.BxLItFmu.mjs';
|
|
5
|
+
import 'defu';
|
|
6
|
+
import 'unhead/plugins';
|
|
7
|
+
import 'unhead/utils';
|
|
8
|
+
import 'ufo';
|
|
9
|
+
import 'ohash';
|
|
10
|
+
|
|
11
|
+
function useSchemaOrg(input = [], options = {}) {
|
|
12
|
+
const unhead = options.head || useUnhead();
|
|
13
|
+
unhead.use(UnheadSchemaOrg());
|
|
14
|
+
const entry = useHead(normalizeSchemaOrgInput(input), options);
|
|
15
|
+
const corePatch = entry.patch;
|
|
16
|
+
entry.patch = (input2) => corePatch(normalizeSchemaOrgInput(input2));
|
|
17
|
+
return entry;
|
|
18
|
+
}
|
|
19
|
+
const schemaOrgAutoImports = [
|
|
20
|
+
{
|
|
21
|
+
from: "@unhead/schema-org/svelte",
|
|
22
|
+
imports: schemaAutoImports
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export { schemaOrgAutoImports, useSchemaOrg };
|
package/dist/vue.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export { M as MetaInput, bc as PluginSchemaOrg, bd as SchemaOrgUnheadPlugin, bj as UserConfig } from './shared/schema-org.Fdqyt78I.mjs';
|
|
1
|
+
export { a as PluginSchemaOrg, S as SchemaOrgUnheadPlugin } from './shared/schema-org.TfU_rjvo.mjs';
|
|
3
2
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
4
3
|
import { defineComponent } from 'vue';
|
|
5
|
-
import * as _unhead_vue from '@unhead/vue';
|
|
6
4
|
import { ResolvableProperties, UseHeadOptions } from '@unhead/vue';
|
|
7
|
-
import 'unhead/types';
|
|
5
|
+
import { ActiveHeadEntry } from 'unhead/types';
|
|
6
|
+
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 './shared/schema-org.CdY0-o8g.mjs';
|
|
7
|
+
export { M as MetaInput, bf as UserConfig } from './shared/schema-org.CdY0-o8g.mjs';
|
|
8
8
|
|
|
9
9
|
interface SchemaOrgResolverOptions {
|
|
10
10
|
/**
|
|
@@ -14,7 +14,6 @@ interface SchemaOrgResolverOptions {
|
|
|
14
14
|
*/
|
|
15
15
|
prefix?: string;
|
|
16
16
|
}
|
|
17
|
-
declare const schemaAutoImports: string[];
|
|
18
17
|
declare const schemaOrgAutoImports: {
|
|
19
18
|
from: string;
|
|
20
19
|
imports: string[];
|
|
@@ -83,10 +82,6 @@ declare function defineReadAction<T extends Record<string, any>>(input?: Resolva
|
|
|
83
82
|
declare function defineSoftwareApp<T extends Record<string, any>>(input?: ResolvableProperties<SoftwareApp & T>): ResolvableProperties<SoftwareApp & T>;
|
|
84
83
|
declare function defineBookEdition<T extends Record<string, any>>(input?: ResolvableProperties<BookEdition & T>): ResolvableProperties<BookEdition & T>;
|
|
85
84
|
type UseSchemaOrgInput = Arrayable<ResolvableProperties<Thing | Record<string, any>>>;
|
|
86
|
-
declare function useSchemaOrg(input
|
|
87
|
-
script: {
|
|
88
|
-
nodes: UseSchemaOrgInput;
|
|
89
|
-
};
|
|
90
|
-
}>>;
|
|
85
|
+
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: UseHeadOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
91
86
|
|
|
92
|
-
export { SchemaOrgArticle, SchemaOrgBook, SchemaOrgBreadcrumb, SchemaOrgComment, SchemaOrgCourse, SchemaOrgEvent, SchemaOrgFoodEstablishment, SchemaOrgHowTo, SchemaOrgImage, SchemaOrgItemList, SchemaOrgJobPosting, SchemaOrgLocalBusiness, SchemaOrgMovie, SchemaOrgOrganization, SchemaOrgPerson, SchemaOrgProduct, SchemaOrgQuestion, SchemaOrgRecipe, SchemaOrgResolver, type SchemaOrgResolverOptions, SchemaOrgReview, SchemaOrgSoftwareApp, SchemaOrgVideo, SchemaOrgWebPage, SchemaOrgWebSite, type UseSchemaOrgInput, 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, defineSchemaOrgComponent, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite,
|
|
87
|
+
export { SchemaOrgArticle, SchemaOrgBook, SchemaOrgBreadcrumb, SchemaOrgComment, SchemaOrgCourse, SchemaOrgEvent, SchemaOrgFoodEstablishment, SchemaOrgHowTo, SchemaOrgImage, SchemaOrgItemList, SchemaOrgJobPosting, SchemaOrgLocalBusiness, SchemaOrgMovie, SchemaOrgOrganization, SchemaOrgPerson, SchemaOrgProduct, SchemaOrgQuestion, SchemaOrgRecipe, SchemaOrgResolver, type SchemaOrgResolverOptions, SchemaOrgReview, SchemaOrgSoftwareApp, SchemaOrgVideo, SchemaOrgWebPage, SchemaOrgWebSite, type UseSchemaOrgInput, 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, defineSchemaOrgComponent, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite, schemaOrgAutoImports, schemaOrgComponents, useSchemaOrg };
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export { M as MetaInput, bc as PluginSchemaOrg, bd as SchemaOrgUnheadPlugin, bj as UserConfig } from './shared/schema-org.Fdqyt78I.js';
|
|
1
|
+
export { a as PluginSchemaOrg, S as SchemaOrgUnheadPlugin } from './shared/schema-org.C2ZsOrzt.js';
|
|
3
2
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
4
3
|
import { defineComponent } from 'vue';
|
|
5
|
-
import * as _unhead_vue from '@unhead/vue';
|
|
6
4
|
import { ResolvableProperties, UseHeadOptions } from '@unhead/vue';
|
|
7
|
-
import 'unhead/types';
|
|
5
|
+
import { ActiveHeadEntry } from 'unhead/types';
|
|
6
|
+
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 './shared/schema-org.CdY0-o8g.js';
|
|
7
|
+
export { M as MetaInput, bf as UserConfig } from './shared/schema-org.CdY0-o8g.js';
|
|
8
8
|
|
|
9
9
|
interface SchemaOrgResolverOptions {
|
|
10
10
|
/**
|
|
@@ -14,7 +14,6 @@ interface SchemaOrgResolverOptions {
|
|
|
14
14
|
*/
|
|
15
15
|
prefix?: string;
|
|
16
16
|
}
|
|
17
|
-
declare const schemaAutoImports: string[];
|
|
18
17
|
declare const schemaOrgAutoImports: {
|
|
19
18
|
from: string;
|
|
20
19
|
imports: string[];
|
|
@@ -83,10 +82,6 @@ declare function defineReadAction<T extends Record<string, any>>(input?: Resolva
|
|
|
83
82
|
declare function defineSoftwareApp<T extends Record<string, any>>(input?: ResolvableProperties<SoftwareApp & T>): ResolvableProperties<SoftwareApp & T>;
|
|
84
83
|
declare function defineBookEdition<T extends Record<string, any>>(input?: ResolvableProperties<BookEdition & T>): ResolvableProperties<BookEdition & T>;
|
|
85
84
|
type UseSchemaOrgInput = Arrayable<ResolvableProperties<Thing | Record<string, any>>>;
|
|
86
|
-
declare function useSchemaOrg(input
|
|
87
|
-
script: {
|
|
88
|
-
nodes: UseSchemaOrgInput;
|
|
89
|
-
};
|
|
90
|
-
}>>;
|
|
85
|
+
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: UseHeadOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
91
86
|
|
|
92
|
-
export { SchemaOrgArticle, SchemaOrgBook, SchemaOrgBreadcrumb, SchemaOrgComment, SchemaOrgCourse, SchemaOrgEvent, SchemaOrgFoodEstablishment, SchemaOrgHowTo, SchemaOrgImage, SchemaOrgItemList, SchemaOrgJobPosting, SchemaOrgLocalBusiness, SchemaOrgMovie, SchemaOrgOrganization, SchemaOrgPerson, SchemaOrgProduct, SchemaOrgQuestion, SchemaOrgRecipe, SchemaOrgResolver, type SchemaOrgResolverOptions, SchemaOrgReview, SchemaOrgSoftwareApp, SchemaOrgVideo, SchemaOrgWebPage, SchemaOrgWebSite, type UseSchemaOrgInput, 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, defineSchemaOrgComponent, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite,
|
|
87
|
+
export { SchemaOrgArticle, SchemaOrgBook, SchemaOrgBreadcrumb, SchemaOrgComment, SchemaOrgCourse, SchemaOrgEvent, SchemaOrgFoodEstablishment, SchemaOrgHowTo, SchemaOrgImage, SchemaOrgItemList, SchemaOrgJobPosting, SchemaOrgLocalBusiness, SchemaOrgMovie, SchemaOrgOrganization, SchemaOrgPerson, SchemaOrgProduct, SchemaOrgQuestion, SchemaOrgRecipe, SchemaOrgResolver, type SchemaOrgResolverOptions, SchemaOrgReview, SchemaOrgSoftwareApp, SchemaOrgVideo, SchemaOrgWebPage, SchemaOrgWebSite, type UseSchemaOrgInput, 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, defineSchemaOrgComponent, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite, schemaOrgAutoImports, schemaOrgComponents, useSchemaOrg };
|
package/dist/vue.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { a1 as PluginSchemaOrg, a2 as SchemaOrgUnheadPlugin } from './shared/schema-org.
|
|
1
|
+
import { a0 as UnheadSchemaOrg, aC as normalizeSchemaOrgInput } from './shared/schema-org.BxLItFmu.mjs';
|
|
2
|
+
export { a1 as PluginSchemaOrg, a2 as SchemaOrgUnheadPlugin } from './shared/schema-org.BxLItFmu.mjs';
|
|
3
|
+
import { s as schemaAutoImports } from './shared/schema-org.q010LqYD.mjs';
|
|
3
4
|
import { defineComponent, ref, computed, unref, h } from 'vue';
|
|
4
5
|
import { injectHead, useHead } from '@unhead/vue';
|
|
5
6
|
import 'defu';
|
|
@@ -8,44 +9,6 @@ import 'unhead/utils';
|
|
|
8
9
|
import 'ufo';
|
|
9
10
|
import 'ohash';
|
|
10
11
|
|
|
11
|
-
const schemaAutoImports = [
|
|
12
|
-
"defineAddress",
|
|
13
|
-
"defineAggregateOffer",
|
|
14
|
-
"defineAggregateRating",
|
|
15
|
-
"defineArticle",
|
|
16
|
-
"defineBook",
|
|
17
|
-
"defineBookEdition",
|
|
18
|
-
"defineBreadcrumb",
|
|
19
|
-
"defineComment",
|
|
20
|
-
"defineCourse",
|
|
21
|
-
"defineEvent",
|
|
22
|
-
"defineFoodEstablishment",
|
|
23
|
-
"defineHowTo",
|
|
24
|
-
"defineHowToStep",
|
|
25
|
-
"defineImage",
|
|
26
|
-
"defineItemList",
|
|
27
|
-
"defineJobPosting",
|
|
28
|
-
"defineListItem",
|
|
29
|
-
"defineLocalBusiness",
|
|
30
|
-
"defineMovie",
|
|
31
|
-
"defineOffer",
|
|
32
|
-
"defineOpeningHours",
|
|
33
|
-
"defineOrganization",
|
|
34
|
-
"definePerson",
|
|
35
|
-
"definePlace",
|
|
36
|
-
"defineProduct",
|
|
37
|
-
"defineQuestion",
|
|
38
|
-
"defineReadAction",
|
|
39
|
-
"defineRecipe",
|
|
40
|
-
"defineReview",
|
|
41
|
-
"defineSearchAction",
|
|
42
|
-
"defineSoftwareApp",
|
|
43
|
-
"defineVideo",
|
|
44
|
-
"defineVirtualLocation",
|
|
45
|
-
"defineWebPage",
|
|
46
|
-
"defineWebSite",
|
|
47
|
-
"useSchemaOrg"
|
|
48
|
-
];
|
|
49
12
|
const schemaOrgAutoImports = [
|
|
50
13
|
{
|
|
51
14
|
from: "@unhead/schema-org/vue",
|
|
@@ -289,20 +252,13 @@ function defineSoftwareApp(input) {
|
|
|
289
252
|
function defineBookEdition(input) {
|
|
290
253
|
return provideResolver(input, "bookEdition");
|
|
291
254
|
}
|
|
292
|
-
function useSchemaOrg(input, options) {
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
key: "schema-org-graph",
|
|
300
|
-
nodes: input
|
|
301
|
-
}
|
|
302
|
-
]
|
|
303
|
-
}, {
|
|
304
|
-
head
|
|
305
|
-
});
|
|
255
|
+
function useSchemaOrg(input = [], options = {}) {
|
|
256
|
+
const unhead = options.head || injectHead();
|
|
257
|
+
unhead.use(UnheadSchemaOrg());
|
|
258
|
+
const entry = useHead(normalizeSchemaOrgInput(input), options);
|
|
259
|
+
const corePatch = entry.patch;
|
|
260
|
+
entry.patch = (input2) => corePatch(normalizeSchemaOrgInput(input2));
|
|
261
|
+
return entry;
|
|
306
262
|
}
|
|
307
263
|
|
|
308
|
-
export { SchemaOrgArticle, SchemaOrgBook, SchemaOrgBreadcrumb, SchemaOrgComment, SchemaOrgCourse, SchemaOrgEvent, SchemaOrgFoodEstablishment, SchemaOrgHowTo, SchemaOrgImage, SchemaOrgItemList, SchemaOrgJobPosting, SchemaOrgLocalBusiness, SchemaOrgMovie, SchemaOrgOrganization, SchemaOrgPerson, SchemaOrgProduct, SchemaOrgQuestion, SchemaOrgRecipe, SchemaOrgResolver, SchemaOrgReview, SchemaOrgSoftwareApp, SchemaOrgVideo, SchemaOrgWebPage, SchemaOrgWebSite, 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, defineSchemaOrgComponent, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite,
|
|
264
|
+
export { SchemaOrgArticle, SchemaOrgBook, SchemaOrgBreadcrumb, SchemaOrgComment, SchemaOrgCourse, SchemaOrgEvent, SchemaOrgFoodEstablishment, SchemaOrgHowTo, SchemaOrgImage, SchemaOrgItemList, SchemaOrgJobPosting, SchemaOrgLocalBusiness, SchemaOrgMovie, SchemaOrgOrganization, SchemaOrgPerson, SchemaOrgProduct, SchemaOrgQuestion, SchemaOrgRecipe, SchemaOrgResolver, SchemaOrgReview, SchemaOrgSoftwareApp, SchemaOrgVideo, SchemaOrgWebPage, SchemaOrgWebSite, 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, defineSchemaOrgComponent, defineSearchAction, defineSoftwareApp, defineVideo, defineVirtualLocation, defineWebPage, defineWebSite, schemaOrgAutoImports, schemaOrgComponents, useSchemaOrg };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/schema-org",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.18",
|
|
5
5
|
"description": "Unhead Schema.org for Simple and Automated Google Rich Results",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"./vue": {
|
|
34
34
|
"types": "./dist/vue.d.ts",
|
|
35
35
|
"import": "./dist/vue.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./svelte": {
|
|
38
|
+
"types": "./dist/svelte.d.ts",
|
|
39
|
+
"import": "./dist/svelte.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./react": {
|
|
42
|
+
"types": "./dist/react.d.ts",
|
|
43
|
+
"import": "./dist/react.mjs"
|
|
36
44
|
}
|
|
37
45
|
},
|
|
38
46
|
"main": "dist/index.mjs",
|
|
@@ -42,35 +50,55 @@
|
|
|
42
50
|
"*": {
|
|
43
51
|
"vue": [
|
|
44
52
|
"dist/vue"
|
|
53
|
+
],
|
|
54
|
+
"svelte": [
|
|
55
|
+
"dist/svelte"
|
|
56
|
+
],
|
|
57
|
+
"react": [
|
|
58
|
+
"dist/react"
|
|
45
59
|
]
|
|
46
60
|
}
|
|
47
61
|
},
|
|
48
62
|
"files": [
|
|
49
63
|
"dist",
|
|
64
|
+
"react.d.ts",
|
|
65
|
+
"svelte.d.ts",
|
|
50
66
|
"vue.d.ts"
|
|
51
67
|
],
|
|
52
68
|
"peerDependencies": {
|
|
53
|
-
"@unhead/
|
|
54
|
-
"unhead": "^
|
|
69
|
+
"@unhead/react": "^2",
|
|
70
|
+
"@unhead/svelte": "^2",
|
|
71
|
+
"@unhead/vue": "^2",
|
|
72
|
+
"unhead": "^2"
|
|
55
73
|
},
|
|
56
74
|
"peerDependenciesMeta": {
|
|
75
|
+
"@unhead/react": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"@unhead/svelte": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
57
81
|
"@unhead/vue": {
|
|
58
82
|
"optional": true
|
|
59
83
|
}
|
|
60
84
|
},
|
|
61
85
|
"dependencies": {
|
|
62
86
|
"defu": "^6.1.4",
|
|
63
|
-
"ohash": "^
|
|
64
|
-
"ufo": "^1.5.4"
|
|
65
|
-
"@unhead/vue": "2.0.0-alpha.16",
|
|
66
|
-
"unhead": "2.0.0-alpha.16"
|
|
87
|
+
"ohash": "^2.0.4",
|
|
88
|
+
"ufo": "^1.5.4"
|
|
67
89
|
},
|
|
68
90
|
"devDependencies": {
|
|
69
|
-
"unplugin-vue-components": "^28.
|
|
91
|
+
"unplugin-vue-components": "^28.4.0",
|
|
92
|
+
"@unhead/react": "2.0.0-alpha.18",
|
|
93
|
+
"@unhead/svelte": "2.0.0-alpha.18",
|
|
94
|
+
"unhead": "2.0.0-alpha.18",
|
|
95
|
+
"@unhead/vue": "2.0.0-alpha.18"
|
|
70
96
|
},
|
|
71
97
|
"build": {
|
|
72
98
|
"external": [
|
|
73
|
-
"vue"
|
|
99
|
+
"vue",
|
|
100
|
+
"svelte",
|
|
101
|
+
"react"
|
|
74
102
|
]
|
|
75
103
|
},
|
|
76
104
|
"scripts": {
|
package/react.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/svelte'
|
package/svelte.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/svelte'
|