@unhead/schema-org 2.0.0-alpha.0 → 2.0.0-alpha.10
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 +5 -10
- package/dist/index.d.ts +5 -10
- package/dist/index.mjs +7 -7
- package/dist/shared/{schema-org.79PF9OEn.mjs → schema-org.Bti4ERSk.mjs} +93 -81
- package/dist/shared/{schema-org.D_ha4uKf.d.cts → schema-org.Fdqyt78I.d.mts} +4 -4
- package/dist/shared/{schema-org.D_ha4uKf.d.mts → schema-org.Fdqyt78I.d.ts} +4 -4
- package/dist/vue.d.mts +42 -45
- package/dist/vue.d.ts +42 -45
- package/dist/vue.mjs +8 -5
- package/package.json +12 -12
- package/dist/index.cjs +0 -230
- package/dist/index.d.cts +0 -79
- package/dist/shared/schema-org.D-L8HzUn.cjs +0 -1611
- package/dist/shared/schema-org.D_ha4uKf.d.ts +0 -1642
- package/dist/vue.cjs +0 -371
- package/dist/vue.d.cts +0 -95
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.
|
|
2
|
-
export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, ao as ImageSimple, aq as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ab as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aW as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aY as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ad as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ap as imageResolver, ar as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ac as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aX as reviewResolver, b9 as searchActionResolver, aZ as softwareAppResolver, a$ as videoResolver, ae as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.
|
|
3
|
-
import * as
|
|
4
|
-
import { HeadEntryOptions } from '
|
|
5
|
-
import * as unhead from 'unhead';
|
|
1
|
+
import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.Fdqyt78I.mjs';
|
|
2
|
+
export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, ao as ImageSimple, aq as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ab as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aW as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aY as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ad as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ap as imageResolver, ar as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ac as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aX as reviewResolver, b9 as searchActionResolver, aZ as softwareAppResolver, a$ as videoResolver, ae as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.Fdqyt78I.mjs';
|
|
3
|
+
import * as unhead_types from 'unhead/types';
|
|
4
|
+
import { Unhead, HeadEntryOptions } from 'unhead/types';
|
|
6
5
|
|
|
7
6
|
declare function defineSchemaOrgResolver<T extends Thing>(schema: SchemaOrgNodeDefinition<T>): SchemaOrgNodeDefinition<T>;
|
|
8
7
|
|
|
@@ -70,10 +69,6 @@ declare function defineReadAction<T extends Record<string, any>>(input?: ReadAct
|
|
|
70
69
|
declare function defineSoftwareApp<T extends Record<string, any>>(input?: SoftwareApp & T): SoftwareApp & T;
|
|
71
70
|
declare function defineBookEdition<T extends Record<string, any>>(input?: BookEdition & T): BookEdition & T;
|
|
72
71
|
type UseSchemaOrgInput = Arrayable<Thing | Record<string, any>>;
|
|
73
|
-
declare function useSchemaOrg(input: UseSchemaOrgInput, options?: HeadEntryOptions):
|
|
74
|
-
script: {
|
|
75
|
-
nodes: UseSchemaOrgInput;
|
|
76
|
-
};
|
|
77
|
-
}>> | undefined;
|
|
72
|
+
declare function useSchemaOrg(head: Unhead<any>, input: UseSchemaOrgInput, options?: HeadEntryOptions): unhead_types.ActiveHeadEntry<any> | undefined;
|
|
78
73
|
|
|
79
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.
|
|
2
|
-
export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, ao as ImageSimple, aq as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ab as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aW as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aY as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ad as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ap as imageResolver, ar as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ac as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aX as reviewResolver, b9 as searchActionResolver, aZ as softwareAppResolver, a$ as videoResolver, ae as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.
|
|
3
|
-
import * as
|
|
4
|
-
import { HeadEntryOptions } from '
|
|
5
|
-
import * as unhead from 'unhead';
|
|
1
|
+
import { T as Thing, S as SchemaOrgNodeDefinition, M as MetaInput, R as ResolvedMeta, a as SchemaOrgGraph, A as Arrayable, b as SchemaOrgNode, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.Fdqyt78I.js';
|
|
2
|
+
export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, ao as ImageSimple, aq as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ab as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aW as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aY as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ad as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ap as imageResolver, ar as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ac as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aX as reviewResolver, b9 as searchActionResolver, aZ as softwareAppResolver, a$ as videoResolver, ae as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.Fdqyt78I.js';
|
|
3
|
+
import * as unhead_types from 'unhead/types';
|
|
4
|
+
import { Unhead, HeadEntryOptions } from 'unhead/types';
|
|
6
5
|
|
|
7
6
|
declare function defineSchemaOrgResolver<T extends Thing>(schema: SchemaOrgNodeDefinition<T>): SchemaOrgNodeDefinition<T>;
|
|
8
7
|
|
|
@@ -70,10 +69,6 @@ declare function defineReadAction<T extends Record<string, any>>(input?: ReadAct
|
|
|
70
69
|
declare function defineSoftwareApp<T extends Record<string, any>>(input?: SoftwareApp & T): SoftwareApp & T;
|
|
71
70
|
declare function defineBookEdition<T extends Record<string, any>>(input?: BookEdition & T): BookEdition & T;
|
|
72
71
|
type UseSchemaOrgInput = Arrayable<Thing | Record<string, any>>;
|
|
73
|
-
declare function useSchemaOrg(input: UseSchemaOrgInput, options?: HeadEntryOptions):
|
|
74
|
-
script: {
|
|
75
|
-
nodes: UseSchemaOrgInput;
|
|
76
|
-
};
|
|
77
|
-
}>> | undefined;
|
|
72
|
+
declare function useSchemaOrg(head: Unhead<any>, input: UseSchemaOrgInput, options?: HeadEntryOptions): unhead_types.ActiveHeadEntry<any> | undefined;
|
|
78
73
|
|
|
79
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { U as UnheadSchemaOrg } from './shared/schema-org.
|
|
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.
|
|
3
|
-
import {
|
|
4
|
-
import '@unhead/shared';
|
|
1
|
+
import { U as UnheadSchemaOrg } from './shared/schema-org.Bti4ERSk.mjs';
|
|
2
|
+
export { H as HowToId, a1 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, X as PrimaryWebPageId, _ as PrimaryWebSiteId, M as ProductId, R as RecipeId, a2 as SchemaOrgUnheadPlugin, L as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, f as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as foodEstablishmentResolver, x as howToResolver, z as howToStepDirectionResolver, y as howToStepResolver, A as imageResolver, B as itemListResolver, C as jobPostingResolver, D as listItemResolver, E as localBusinessResolver, F as movieResolver, n as normaliseNodes, G as offerResolver, I as openingHoursResolver, J as organizationResolver, K as personResolver, u as placeResolver, N as productResolver, O as questionResolver, Q as ratingResolver, Z as readActionResolver, S as recipeResolver, r as resolveMeta, a as resolveNode, b as resolveNodeId, e as resolveRelation, T as reviewResolver, a0 as searchActionResolver, V as softwareAppResolver, W as videoResolver, v as virtualLocationResolver, Y as webPageResolver, $ as webSiteResolver } from './shared/schema-org.Bti4ERSk.mjs';
|
|
3
|
+
import { useHead } from 'unhead';
|
|
5
4
|
import 'defu';
|
|
5
|
+
import 'unhead/plugins';
|
|
6
|
+
import 'unhead/utils';
|
|
6
7
|
import 'ufo';
|
|
7
8
|
import 'ohash';
|
|
8
9
|
|
|
@@ -117,13 +118,12 @@ function defineSoftwareApp(input) {
|
|
|
117
118
|
function defineBookEdition(input) {
|
|
118
119
|
return provideResolver(input, "bookEdition");
|
|
119
120
|
}
|
|
120
|
-
function useSchemaOrg(input, options) {
|
|
121
|
-
const head = options?.head || useUnhead();
|
|
121
|
+
function useSchemaOrg(head, input, options) {
|
|
122
122
|
if (Array.isArray(input) && input.length === 0 || !input) {
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
head.use(UnheadSchemaOrg());
|
|
126
|
-
return useHead({
|
|
126
|
+
return useHead(head, {
|
|
127
127
|
script: [
|
|
128
128
|
{
|
|
129
129
|
type: "application/ld+json",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { hashCode, defineHeadPlugin, processTemplateParams } from '@unhead/shared';
|
|
2
1
|
import { createDefu, defu } from 'defu';
|
|
2
|
+
import { TemplateParamsPlugin } from 'unhead/plugins';
|
|
3
|
+
import { defineHeadPlugin, processTemplateParams } from 'unhead/utils';
|
|
3
4
|
import { hasProtocol, withBase, withoutTrailingSlash, hasTrailingSlash, withTrailingSlash, joinURL } from 'ufo';
|
|
4
5
|
import { hash } from 'ohash';
|
|
5
6
|
|
|
@@ -108,6 +109,12 @@ function stripEmptyProperties(obj) {
|
|
|
108
109
|
}
|
|
109
110
|
return obj;
|
|
110
111
|
}
|
|
112
|
+
function hashCode(s) {
|
|
113
|
+
let h = 9;
|
|
114
|
+
for (let i = 0; i < s.length; )
|
|
115
|
+
h = Math.imul(h ^ s.charCodeAt(i++), 9 ** 9);
|
|
116
|
+
return ((h ^ h >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
117
|
+
}
|
|
111
118
|
|
|
112
119
|
const quantitativeValueResolver = defineSchemaOrgResolver({
|
|
113
120
|
cast(node) {
|
|
@@ -1458,96 +1465,101 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
|
|
|
1458
1465
|
config = resolveMeta({ ...config });
|
|
1459
1466
|
let graph;
|
|
1460
1467
|
let resolvedMeta = {};
|
|
1461
|
-
return defineHeadPlugin((head) =>
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
const
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1468
|
+
return defineHeadPlugin((head) => {
|
|
1469
|
+
head.use(TemplateParamsPlugin);
|
|
1470
|
+
return {
|
|
1471
|
+
key: "schema-org",
|
|
1472
|
+
hooks: {
|
|
1473
|
+
"entries:resolve": () => {
|
|
1474
|
+
graph = createSchemaOrgGraph();
|
|
1475
|
+
},
|
|
1476
|
+
"entries:normalize": async ({ tags }) => {
|
|
1477
|
+
for (const tag of tags) {
|
|
1478
|
+
if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
|
|
1479
|
+
const { loadResolver } = await Promise.resolve().then(function () { return resolver; });
|
|
1480
|
+
const nodes = await tag.props.nodes;
|
|
1481
|
+
for (const node of Array.isArray(nodes) ? nodes : [nodes]) {
|
|
1482
|
+
if (typeof node !== "object" || Object.keys(node).length === 0) {
|
|
1483
|
+
continue;
|
|
1484
|
+
}
|
|
1485
|
+
const newNode = {
|
|
1486
|
+
...node,
|
|
1487
|
+
_dedupeStrategy: tag.tagDuplicateStrategy,
|
|
1488
|
+
_resolver: loadResolver(await node._resolver)
|
|
1489
|
+
};
|
|
1490
|
+
graph.push(newNode);
|
|
1491
|
+
}
|
|
1492
|
+
tag.tagPosition = tag.tagPosition || config.tagPosition === "head" ? "head" : "bodyClose";
|
|
1474
1493
|
}
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1494
|
+
if (tag.tag === "htmlAttrs" && tag.props.lang) {
|
|
1495
|
+
resolvedMeta.inLanguage = tag.props.lang;
|
|
1496
|
+
} else if (tag.tag === "title") {
|
|
1497
|
+
resolvedMeta.title = tag.textContent;
|
|
1498
|
+
} else if (tag.tag === "meta" && tag.props.name === "description") {
|
|
1499
|
+
resolvedMeta.description = tag.props.content;
|
|
1500
|
+
} else if (tag.tag === "link" && tag.props.rel === "canonical") {
|
|
1501
|
+
resolvedMeta.url = tag.props.href;
|
|
1502
|
+
if (resolvedMeta.url && !resolvedMeta.host) {
|
|
1503
|
+
try {
|
|
1504
|
+
resolvedMeta.host = new URL(resolvedMeta.url).origin;
|
|
1505
|
+
} catch {
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
} else if (tag.tag === "meta" && tag.props.property === "og:image") {
|
|
1509
|
+
resolvedMeta.image = tag.props.content;
|
|
1510
|
+
} else if (tag.tag === "templateParams" && tag.props.schemaOrg) {
|
|
1511
|
+
resolvedMeta = {
|
|
1512
|
+
...resolvedMeta,
|
|
1513
|
+
// @ts-expect-error untyped
|
|
1514
|
+
...tag.props.schemaOrg
|
|
1515
|
+
};
|
|
1516
|
+
delete tag.props.schemaOrg;
|
|
1496
1517
|
}
|
|
1497
1518
|
}
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1519
|
+
},
|
|
1520
|
+
"tags:resolve": async (ctx) => {
|
|
1521
|
+
for (const k in ctx.tags) {
|
|
1522
|
+
const tag = ctx.tags[k];
|
|
1523
|
+
if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
|
|
1524
|
+
delete tag.props.nodes;
|
|
1525
|
+
const resolvedGraph = graph.resolveGraph({ ...await meta?.() || {}, ...config, ...resolvedMeta });
|
|
1526
|
+
if (!resolvedGraph.length) {
|
|
1527
|
+
tag.props = {};
|
|
1528
|
+
return;
|
|
1529
|
+
}
|
|
1530
|
+
const minify = options?.minify || process.env.NODE_ENV === "production";
|
|
1531
|
+
tag.innerHTML = JSON.stringify({
|
|
1532
|
+
"@context": "https://schema.org",
|
|
1533
|
+
"@graph": resolvedGraph
|
|
1534
|
+
}, (_, value) => {
|
|
1535
|
+
if (typeof value !== "object")
|
|
1536
|
+
return processTemplateParams(value, head._templateParams, head._separator);
|
|
1537
|
+
return value;
|
|
1538
|
+
}, minify ? 0 : 2);
|
|
1517
1539
|
return;
|
|
1518
1540
|
}
|
|
1519
|
-
const minify = options?.minify || process.env.NODE_ENV === "production";
|
|
1520
|
-
tag.innerHTML = JSON.stringify({
|
|
1521
|
-
"@context": "https://schema.org",
|
|
1522
|
-
"@graph": resolvedGraph
|
|
1523
|
-
}, (_, value) => {
|
|
1524
|
-
if (typeof value !== "object")
|
|
1525
|
-
return processTemplateParams(value, head._templateParams, head._separator);
|
|
1526
|
-
return value;
|
|
1527
|
-
}, minify ? 0 : 2);
|
|
1528
|
-
return;
|
|
1529
1541
|
}
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1542
|
+
},
|
|
1543
|
+
"tags:afterResolve": (ctx) => {
|
|
1544
|
+
let firstNodeKey;
|
|
1545
|
+
for (const k in ctx.tags) {
|
|
1546
|
+
const tag = ctx.tags[k];
|
|
1547
|
+
if (tag.props.type === "application/ld+json" && tag.props.nodes || tag.key === "schema-org-graph") {
|
|
1548
|
+
delete tag.props.nodes;
|
|
1549
|
+
if (typeof firstNodeKey === "undefined") {
|
|
1550
|
+
firstNodeKey = k;
|
|
1551
|
+
continue;
|
|
1552
|
+
}
|
|
1553
|
+
ctx.tags[firstNodeKey].props = defu(ctx.tags[firstNodeKey].props, tag.props);
|
|
1554
|
+
delete ctx.tags[firstNodeKey].props.nodes;
|
|
1555
|
+
ctx.tags[k] = false;
|
|
1541
1556
|
}
|
|
1542
|
-
ctx.tags[firstNodeKey].props = defu(ctx.tags[firstNodeKey].props, tag.props);
|
|
1543
|
-
delete ctx.tags[firstNodeKey].props.nodes;
|
|
1544
|
-
ctx.tags[k] = false;
|
|
1545
1557
|
}
|
|
1558
|
+
ctx.tags = ctx.tags.filter(Boolean);
|
|
1546
1559
|
}
|
|
1547
|
-
ctx.tags = ctx.tags.filter(Boolean);
|
|
1548
1560
|
}
|
|
1549
|
-
}
|
|
1550
|
-
})
|
|
1561
|
+
};
|
|
1562
|
+
});
|
|
1551
1563
|
}
|
|
1552
1564
|
|
|
1553
1565
|
export { webSiteResolver 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, UnheadSchemaOrg as U, softwareAppResolver as V, videoResolver as W, PrimaryWebPageId as X, webPageResolver as Y, readActionResolver as Z, PrimaryWebSiteId as _, resolveNode as a, searchActionResolver as a0, PluginSchemaOrg as a1, SchemaOrgUnheadPlugin as a2, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as unhead_types from 'unhead/types';
|
|
2
2
|
|
|
3
3
|
interface DefinedRegion extends Thing {
|
|
4
4
|
/**
|
|
@@ -1627,16 +1627,16 @@ interface PluginSchemaOrgOptions {
|
|
|
1627
1627
|
minify?: boolean;
|
|
1628
1628
|
trailingSlash?: boolean;
|
|
1629
1629
|
}
|
|
1630
|
-
declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions):
|
|
1630
|
+
declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
|
|
1631
1631
|
/**
|
|
1632
1632
|
* @deprecated Providing a plugin is no longer required. You can remove this code.
|
|
1633
1633
|
*/
|
|
1634
1634
|
declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
|
|
1635
1635
|
resolveMeta?: () => Record<string, any>;
|
|
1636
|
-
}):
|
|
1636
|
+
}): unhead_types.HeadPluginInput;
|
|
1637
1637
|
/**
|
|
1638
1638
|
* @deprecated Providing a plugin is no longer required. You can remove this code.
|
|
1639
1639
|
*/
|
|
1640
|
-
declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions):
|
|
1640
|
+
declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
|
|
1641
1641
|
|
|
1642
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as unhead_types from 'unhead/types';
|
|
2
2
|
|
|
3
3
|
interface DefinedRegion extends Thing {
|
|
4
4
|
/**
|
|
@@ -1627,16 +1627,16 @@ interface PluginSchemaOrgOptions {
|
|
|
1627
1627
|
minify?: boolean;
|
|
1628
1628
|
trailingSlash?: boolean;
|
|
1629
1629
|
}
|
|
1630
|
-
declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions):
|
|
1630
|
+
declare function UnheadSchemaOrg(options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
|
|
1631
1631
|
/**
|
|
1632
1632
|
* @deprecated Providing a plugin is no longer required. You can remove this code.
|
|
1633
1633
|
*/
|
|
1634
1634
|
declare function PluginSchemaOrg(options?: PluginSchemaOrgOptions & {
|
|
1635
1635
|
resolveMeta?: () => Record<string, any>;
|
|
1636
|
-
}):
|
|
1636
|
+
}): unhead_types.HeadPluginInput;
|
|
1637
1637
|
/**
|
|
1638
1638
|
* @deprecated Providing a plugin is no longer required. You can remove this code.
|
|
1639
1639
|
*/
|
|
1640
|
-
declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions):
|
|
1640
|
+
declare function SchemaOrgUnheadPlugin(config: MetaInput, meta: () => Partial<MetaInput> | Promise<Partial<MetaInput>>, options?: PluginSchemaOrgOptions): unhead_types.HeadPluginInput;
|
|
1641
1641
|
|
|
1642
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 };
|
package/dist/vue.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.
|
|
2
|
-
export { M as MetaInput, bc as PluginSchemaOrg, bd as SchemaOrgUnheadPlugin, bj as UserConfig } from './shared/schema-org.
|
|
1
|
+
import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.Fdqyt78I.mjs';
|
|
2
|
+
export { M as MetaInput, bc as PluginSchemaOrg, bd as SchemaOrgUnheadPlugin, bj as UserConfig } from './shared/schema-org.Fdqyt78I.mjs';
|
|
3
3
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
4
4
|
import { defineComponent } from 'vue';
|
|
5
5
|
import * as _unhead_vue from '@unhead/vue';
|
|
6
|
-
import {
|
|
7
|
-
import '
|
|
6
|
+
import { ResolvableProperties, UseHeadOptions } from '@unhead/vue';
|
|
7
|
+
import 'unhead/types';
|
|
8
8
|
|
|
9
9
|
interface SchemaOrgResolverOptions {
|
|
10
10
|
/**
|
|
@@ -47,49 +47,46 @@ declare const SchemaOrgItemList: any;
|
|
|
47
47
|
declare const SchemaOrgBook: any;
|
|
48
48
|
declare const SchemaOrgSoftwareApp: any;
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
declare function
|
|
54
|
-
declare function
|
|
55
|
-
declare function
|
|
56
|
-
declare function
|
|
57
|
-
declare function
|
|
58
|
-
declare function
|
|
59
|
-
declare function
|
|
60
|
-
declare function
|
|
61
|
-
declare function
|
|
62
|
-
declare function
|
|
63
|
-
declare function
|
|
64
|
-
declare function
|
|
65
|
-
declare function
|
|
66
|
-
declare function
|
|
67
|
-
declare function
|
|
68
|
-
declare function
|
|
69
|
-
declare function
|
|
70
|
-
declare function
|
|
71
|
-
declare function
|
|
72
|
-
declare function
|
|
73
|
-
declare function
|
|
74
|
-
declare function
|
|
75
|
-
declare function
|
|
76
|
-
declare function
|
|
77
|
-
declare function
|
|
78
|
-
declare function
|
|
79
|
-
declare function
|
|
80
|
-
declare function
|
|
81
|
-
declare function
|
|
82
|
-
declare function
|
|
83
|
-
declare function
|
|
84
|
-
declare function
|
|
85
|
-
|
|
86
|
-
declare function
|
|
87
|
-
declare function defineBookEdition<T extends Record<string, any>>(input?: DeepMaybeRef<BookEdition & T>): DeepMaybeRef<BookEdition & T>;
|
|
88
|
-
type UseSchemaOrgInput = Arrayable<DeepMaybeRef<Thing | Record<string, any>>>;
|
|
89
|
-
declare function useSchemaOrg(input: UseSchemaOrgInput): _unhead_vue.ActiveHeadEntry<_unhead_vue.UseHeadInput<{
|
|
50
|
+
declare function defineAddress<T extends Record<string, any>>(input?: ResolvableProperties<PostalAddress & T>): ResolvableProperties<PostalAddress & T>;
|
|
51
|
+
declare function defineAggregateOffer<T extends Record<string, any>>(input?: ResolvableProperties<AggregateOffer & T>): ResolvableProperties<AggregateOffer & T>;
|
|
52
|
+
declare function defineAggregateRating<T extends Record<string, any>>(input?: ResolvableProperties<AggregateRating & T>): ResolvableProperties<AggregateRating & T>;
|
|
53
|
+
declare function defineArticle<T extends Record<string, any>>(input?: ResolvableProperties<Article & T>): ResolvableProperties<Article & T>;
|
|
54
|
+
declare function defineBreadcrumb<T extends Record<string, any>>(input?: ResolvableProperties<BreadcrumbList & T>): ResolvableProperties<BreadcrumbList & T>;
|
|
55
|
+
declare function defineComment<T extends Record<string, any>>(input?: ResolvableProperties<Comment & T>): ResolvableProperties<Comment & T>;
|
|
56
|
+
declare function defineEvent<T extends Record<string, any>>(input?: ResolvableProperties<Event & T>): ResolvableProperties<Event & T>;
|
|
57
|
+
declare function defineFoodEstablishment<T extends Record<string, any>>(input?: ResolvableProperties<FoodEstablishment & T>): ResolvableProperties<FoodEstablishment & T>;
|
|
58
|
+
declare function defineVirtualLocation<T extends Record<string, any>>(input?: ResolvableProperties<VirtualLocation & T>): ResolvableProperties<VirtualLocation & T>;
|
|
59
|
+
declare function definePlace<T extends Record<string, any>>(input?: ResolvableProperties<Place & T>): ResolvableProperties<Place & T>;
|
|
60
|
+
declare function defineHowTo<T extends Record<string, any>>(input?: ResolvableProperties<HowTo & T>): ResolvableProperties<HowTo & T>;
|
|
61
|
+
declare function defineHowToStep<T extends Record<string, any>>(input?: ResolvableProperties<HowToStep & T>): ResolvableProperties<HowToStep & T>;
|
|
62
|
+
declare function defineImage<T extends Record<string, any>>(input?: ResolvableProperties<ImageObject & T>): ResolvableProperties<ImageObject & T>;
|
|
63
|
+
declare function defineJobPosting<T extends Record<string, any>>(input?: ResolvableProperties<JobPosting & T>): ResolvableProperties<JobPosting & T>;
|
|
64
|
+
declare function defineLocalBusiness<T extends Record<string, any>>(input?: ResolvableProperties<LocalBusiness & T>): ResolvableProperties<LocalBusiness & T>;
|
|
65
|
+
declare function defineOffer<T extends Record<string, any>>(input?: ResolvableProperties<Offer & T>): ResolvableProperties<Offer & T>;
|
|
66
|
+
declare function defineOpeningHours<T extends Record<string, any>>(input?: ResolvableProperties<OpeningHoursSpecification & T>): ResolvableProperties<OpeningHoursSpecification & T>;
|
|
67
|
+
declare function defineOrganization<T extends Record<string, any>>(input?: ResolvableProperties<Organization & T>): ResolvableProperties<Organization & T>;
|
|
68
|
+
declare function definePerson<T extends Record<string, any>>(input?: ResolvableProperties<Person & T>): ResolvableProperties<Person & T>;
|
|
69
|
+
declare function defineProduct<T extends Record<string, any>>(input?: ResolvableProperties<Product & T>): ResolvableProperties<Product & T>;
|
|
70
|
+
declare function defineQuestion<T extends Record<string, any>>(input?: ResolvableProperties<Question & T>): ResolvableProperties<Question & T>;
|
|
71
|
+
declare function defineRecipe<T extends Record<string, any>>(input?: ResolvableProperties<Recipe & T>): ResolvableProperties<Recipe & T>;
|
|
72
|
+
declare function defineReview<T extends Record<string, any>>(input?: ResolvableProperties<Review & T>): ResolvableProperties<Review & T>;
|
|
73
|
+
declare function defineVideo<T extends Record<string, any>>(input?: ResolvableProperties<VideoObject & T>): ResolvableProperties<VideoObject & T>;
|
|
74
|
+
declare function defineWebPage<T extends Record<string, any>>(input?: ResolvableProperties<WebPage & T>): ResolvableProperties<WebPage & T>;
|
|
75
|
+
declare function defineWebSite<T extends Record<string, any>>(input?: ResolvableProperties<WebSite & T>): ResolvableProperties<WebSite & T>;
|
|
76
|
+
declare function defineBook<T extends Record<string, any>>(input?: ResolvableProperties<Book & T>): ResolvableProperties<Book & T>;
|
|
77
|
+
declare function defineCourse<T extends Record<string, any>>(input?: ResolvableProperties<Course & T>): ResolvableProperties<Course & T>;
|
|
78
|
+
declare function defineItemList<T extends Record<string, any>>(input?: ResolvableProperties<ItemList & T>): ResolvableProperties<ItemList & T>;
|
|
79
|
+
declare function defineListItem<T extends Record<string, any>>(input?: ResolvableProperties<ListItem & T>): ResolvableProperties<ListItem & T>;
|
|
80
|
+
declare function defineMovie<T extends Record<string, any>>(input?: ResolvableProperties<Movie & T>): ResolvableProperties<Movie & T>;
|
|
81
|
+
declare function defineSearchAction<T extends Record<string, any>>(input?: ResolvableProperties<SearchAction & T>): ResolvableProperties<SearchAction & T>;
|
|
82
|
+
declare function defineReadAction<T extends Record<string, any>>(input?: ResolvableProperties<ReadAction & T>): ResolvableProperties<ReadAction & T>;
|
|
83
|
+
declare function defineSoftwareApp<T extends Record<string, any>>(input?: ResolvableProperties<SoftwareApp & T>): ResolvableProperties<SoftwareApp & T>;
|
|
84
|
+
declare function defineBookEdition<T extends Record<string, any>>(input?: ResolvableProperties<BookEdition & T>): ResolvableProperties<BookEdition & T>;
|
|
85
|
+
type UseSchemaOrgInput = Arrayable<ResolvableProperties<Thing | Record<string, any>>>;
|
|
86
|
+
declare function useSchemaOrg(input: UseSchemaOrgInput, options?: UseHeadOptions): _unhead_vue.ActiveHeadEntry<_unhead_vue.UseHeadInput<{
|
|
90
87
|
script: {
|
|
91
88
|
nodes: UseSchemaOrgInput;
|
|
92
89
|
};
|
|
93
90
|
}>>;
|
|
94
91
|
|
|
95
|
-
export {
|
|
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, schemaAutoImports, schemaOrgAutoImports, schemaOrgComponents, useSchemaOrg };
|