@unhead/schema-org 2.1.9 → 3.0.0-beta.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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -44
- package/dist/react.d.mts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/react.mjs +3 -3
- package/dist/shared/schema-org.BS2Q1uTx.d.mts +11 -0
- package/dist/shared/{schema-org.UT1u1UYq.d.mts → schema-org.C1OXVKVP.d.ts} +142 -48
- package/dist/shared/schema-org.C7IeLKiX.d.ts +11 -0
- package/dist/shared/{schema-org.CFcsqFfN.d.mts → schema-org.CX_95Tmq.d.mts} +2 -22
- package/dist/shared/{schema-org.CFcsqFfN.d.ts → schema-org.CX_95Tmq.d.ts} +2 -22
- package/dist/shared/{schema-org.CAKsqzbX.d.ts → schema-org.Cxijls86.d.mts} +142 -48
- package/dist/shared/schema-org.DvWGLdBv.mjs +1932 -0
- package/dist/solid-js.d.mts +3 -3
- package/dist/solid-js.d.ts +3 -3
- package/dist/solid-js.mjs +3 -3
- package/dist/svelte.d.mts +3 -3
- package/dist/svelte.d.ts +3 -3
- package/dist/svelte.mjs +3 -3
- package/dist/vue.d.mts +38 -38
- package/dist/vue.d.ts +38 -38
- package/dist/vue.mjs +47 -43
- package/package.json +11 -11
- package/dist/chunks/index.mjs +0 -23
- package/dist/chunks/index10.mjs +0 -63
- package/dist/chunks/index11.mjs +0 -35
- package/dist/chunks/index12.mjs +0 -48
- package/dist/chunks/index13.mjs +0 -36
- package/dist/chunks/index14.mjs +0 -25
- package/dist/chunks/index15.mjs +0 -37
- package/dist/chunks/index16.mjs +0 -27
- package/dist/chunks/index17.mjs +0 -34
- package/dist/chunks/index18.mjs +0 -32
- package/dist/chunks/index19.mjs +0 -31
- package/dist/chunks/index2.mjs +0 -12
- package/dist/chunks/index20.mjs +0 -31
- package/dist/chunks/index21.mjs +0 -30
- package/dist/chunks/index22.mjs +0 -30
- package/dist/chunks/index23.mjs +0 -82
- package/dist/chunks/index24.mjs +0 -14
- package/dist/chunks/index25.mjs +0 -33
- package/dist/chunks/index26.mjs +0 -31
- package/dist/chunks/index27.mjs +0 -29
- package/dist/chunks/index28.mjs +0 -12
- package/dist/chunks/index29.mjs +0 -46
- package/dist/chunks/index3.mjs +0 -317
- package/dist/chunks/index30.mjs +0 -53
- package/dist/chunks/index31.mjs +0 -41
- package/dist/chunks/index32.mjs +0 -26
- package/dist/chunks/index33.mjs +0 -47
- package/dist/chunks/index34.mjs +0 -29
- package/dist/chunks/index35.mjs +0 -34
- package/dist/chunks/index36.mjs +0 -33
- package/dist/chunks/index37.mjs +0 -34
- package/dist/chunks/index38.mjs +0 -51
- package/dist/chunks/index39.mjs +0 -17
- package/dist/chunks/index4.mjs +0 -54
- package/dist/chunks/index40.mjs +0 -29
- package/dist/chunks/index5.mjs +0 -31
- package/dist/chunks/index6.mjs +0 -29
- package/dist/chunks/index7.mjs +0 -35
- package/dist/chunks/index8.mjs +0 -18
- package/dist/chunks/index9.mjs +0 -20
- package/dist/shared/schema-org.B9Q-o8S0.mjs +0 -877
- package/dist/shared/schema-org.BR4WcSqZ.d.ts +0 -21
- package/dist/shared/schema-org.CrNDsWck.mjs +0 -19
- package/dist/shared/schema-org.oFHFm6my.d.mts +0 -21
- package/dist/shared/schema-org.zHUqdMMo.mjs +0 -27
package/dist/solid-js.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
-
import { X as UseSchemaOrgInput } from './shared/schema-org.
|
|
3
|
-
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.
|
|
4
|
-
export { M as MetaInput, U as UserConfig } from './shared/schema-org.
|
|
2
|
+
import { X as UseSchemaOrgInput } from './shared/schema-org.Cxijls86.mjs';
|
|
3
|
+
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.Cxijls86.mjs';
|
|
4
|
+
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CX_95Tmq.mjs';
|
|
5
5
|
|
|
6
6
|
declare const schemaOrgAutoImports: {
|
|
7
7
|
from: string;
|
package/dist/solid-js.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
-
import { X as UseSchemaOrgInput } from './shared/schema-org.
|
|
3
|
-
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.
|
|
4
|
-
export { M as MetaInput, U as UserConfig } from './shared/schema-org.
|
|
2
|
+
import { X as UseSchemaOrgInput } from './shared/schema-org.C1OXVKVP.js';
|
|
3
|
+
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.C1OXVKVP.js';
|
|
4
|
+
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CX_95Tmq.js';
|
|
5
5
|
|
|
6
6
|
declare const schemaOrgAutoImports: {
|
|
7
7
|
from: string;
|
package/dist/solid-js.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useUnhead, useHead } from '@unhead/solid-js';
|
|
2
2
|
import { s as schemaAutoImports } from './shared/schema-org.CHbRCiep.mjs';
|
|
3
|
-
import { U as UnheadSchemaOrg,
|
|
4
|
-
export { i as defineArticle, j as defineBook, l as defineBreadcrumb, n as defineComment, o as defineCourse, p as defineDataset, q as defineEvent, s as defineFoodEstablishment, t as defineHowTo, v as defineImage, w as defineItemList, x as defineJobPosting, z as defineLocalBusiness, A as defineMovie, B as defineMusicAlbum, C as defineMusicGroup, D as defineMusicPlaylist, E as defineMusicRecording, H as defineOrganization, I as definePerson, K as definePodcastEpisode, L as definePodcastSeason, M as definePodcastSeries, N as defineProduct, O as defineQuestion,
|
|
3
|
+
import { U as UnheadSchemaOrg, a1 as normalizeSchemaOrgInput } from './shared/schema-org.DvWGLdBv.mjs';
|
|
4
|
+
export { i as defineArticle, j as defineBook, l as defineBreadcrumb, n as defineComment, o as defineCourse, p as defineDataset, q as defineEvent, s as defineFoodEstablishment, t as defineHowTo, v as defineImage, w as defineItemList, x as defineJobPosting, z as defineLocalBusiness, A as defineMovie, B as defineMusicAlbum, C as defineMusicGroup, D as defineMusicPlaylist, E as defineMusicRecording, H as defineOrganization, I as definePerson, K as definePodcastEpisode, L as definePodcastSeason, M as definePodcastSeries, N as defineProduct, O as defineQuestion, Q as defineRecipe, R as defineReview, T as defineService, V as defineSoftwareApp, W as defineTVEpisode, X as defineTVSeason, Y as defineTVSeries, Z as defineVideo, $ as defineWebPage, a0 as defineWebSite } from './shared/schema-org.DvWGLdBv.mjs';
|
|
5
|
+
import 'ufo';
|
|
5
6
|
import 'unhead/plugins';
|
|
6
7
|
import 'unhead/utils';
|
|
7
|
-
import 'ufo';
|
|
8
8
|
|
|
9
9
|
const schemaOrgAutoImports = [
|
|
10
10
|
{
|
package/dist/svelte.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
-
import { X as UseSchemaOrgInput } from './shared/schema-org.
|
|
3
|
-
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.
|
|
4
|
-
export { M as MetaInput, U as UserConfig } from './shared/schema-org.
|
|
2
|
+
import { X as UseSchemaOrgInput } from './shared/schema-org.Cxijls86.mjs';
|
|
3
|
+
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.Cxijls86.mjs';
|
|
4
|
+
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CX_95Tmq.mjs';
|
|
5
5
|
|
|
6
6
|
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
7
7
|
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeadEntryOptions, ActiveHeadEntry } from 'unhead/types';
|
|
2
|
-
import { X as UseSchemaOrgInput } from './shared/schema-org.
|
|
3
|
-
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.
|
|
4
|
-
export { M as MetaInput, U as UserConfig } from './shared/schema-org.
|
|
2
|
+
import { X as UseSchemaOrgInput } from './shared/schema-org.C1OXVKVP.js';
|
|
3
|
+
export { c as defineArticle, e as defineBook, g as defineBreadcrumb, h as defineComment, i as defineCourse, j as defineDataset, k as defineEvent, l as defineFoodEstablishment, m as defineHowTo, o as defineImage, p as defineItemList, q as defineJobPosting, s as defineLocalBusiness, t as defineMovie, u as defineMusicAlbum, v as defineMusicGroup, w as defineMusicPlaylist, x as defineMusicRecording, A as defineOrganization, B as definePerson, D as definePodcastEpisode, E as definePodcastSeason, F as definePodcastSeries, G as defineProduct, H as defineQuestion, J as defineRecipe, K as defineReview, M as defineService, N as defineSoftwareApp, O as defineTVEpisode, P as defineTVSeason, Q as defineTVSeries, R as defineVideo, T as defineWebPage, U as defineWebSite } from './shared/schema-org.C1OXVKVP.js';
|
|
4
|
+
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CX_95Tmq.js';
|
|
5
5
|
|
|
6
6
|
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
7
7
|
|
package/dist/svelte.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useUnhead, useHead } from '@unhead/svelte';
|
|
2
2
|
import { s as schemaAutoImports } from './shared/schema-org.CHbRCiep.mjs';
|
|
3
|
-
import { U as UnheadSchemaOrg,
|
|
4
|
-
export { i as defineArticle, j as defineBook, l as defineBreadcrumb, n as defineComment, o as defineCourse, p as defineDataset, q as defineEvent, s as defineFoodEstablishment, t as defineHowTo, v as defineImage, w as defineItemList, x as defineJobPosting, z as defineLocalBusiness, A as defineMovie, B as defineMusicAlbum, C as defineMusicGroup, D as defineMusicPlaylist, E as defineMusicRecording, H as defineOrganization, I as definePerson, K as definePodcastEpisode, L as definePodcastSeason, M as definePodcastSeries, N as defineProduct, O as defineQuestion,
|
|
3
|
+
import { U as UnheadSchemaOrg, a1 as normalizeSchemaOrgInput } from './shared/schema-org.DvWGLdBv.mjs';
|
|
4
|
+
export { i as defineArticle, j as defineBook, l as defineBreadcrumb, n as defineComment, o as defineCourse, p as defineDataset, q as defineEvent, s as defineFoodEstablishment, t as defineHowTo, v as defineImage, w as defineItemList, x as defineJobPosting, z as defineLocalBusiness, A as defineMovie, B as defineMusicAlbum, C as defineMusicGroup, D as defineMusicPlaylist, E as defineMusicRecording, H as defineOrganization, I as definePerson, K as definePodcastEpisode, L as definePodcastSeason, M as definePodcastSeries, N as defineProduct, O as defineQuestion, Q as defineRecipe, R as defineReview, T as defineService, V as defineSoftwareApp, W as defineTVEpisode, X as defineTVSeason, Y as defineTVSeries, Z as defineVideo, $ as defineWebPage, a0 as defineWebSite } from './shared/schema-org.DvWGLdBv.mjs';
|
|
5
|
+
import 'ufo';
|
|
5
6
|
import 'unhead/plugins';
|
|
6
7
|
import 'unhead/utils';
|
|
7
|
-
import 'ufo';
|
|
8
8
|
|
|
9
9
|
function useSchemaOrg(input = [], options = {}) {
|
|
10
10
|
const unhead = options.head || useUnhead();
|
package/dist/vue.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { U as UnheadSchemaOrg } from './shared/schema-org.BS2Q1uTx.mjs';
|
|
2
2
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
3
3
|
import { defineComponent } from 'vue';
|
|
4
|
-
import { aJ as PostalAddress, aH as PostalAddressStrict, aI as PostalAddressName, i as AggregateOffer, l as AggregateRating, o as Article, x as BreadcrumbList, D as Comment, K as Event, a1 as FoodEstablishment, _ as VirtualLocation, X as Place, a4 as HowTo, a8 as HowToStep, ad as ImageObject, aj as JobPosting, ap as LocalBusiness, av as Offer, ay as OpeningHoursSpecification, aB as Organization, aE as Person, aM as Product, aQ as Question, aW as Recipe, a$ as Review, b5 as VideoObject, b8 as WebPage, bf as WebSite, q as Book, G as Course, ag as ItemList, am as ListItem, as as Movie, bj as SearchAction, bc as ReadAction, b2 as SoftwareApp, s as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.CFcsqFfN.mjs';
|
|
5
|
-
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CFcsqFfN.mjs';
|
|
6
4
|
import { DeepResolvableProperties, UseHeadOptions } from '@unhead/vue';
|
|
7
5
|
import { ActiveHeadEntry } from 'unhead/types';
|
|
6
|
+
import { aJ as PostalAddress, i as AggregateOffer, l as AggregateRating, o as Article, x as BreadcrumbList, D as Comment, K as Event, a1 as FoodEstablishment, _ as VirtualLocation, X as Place, a4 as HowTo, a8 as HowToStep, ad as ImageObject, aj as JobPosting, ap as LocalBusiness, av as Offer, ay as OpeningHoursSpecification, aB as Organization, aE as Person, aM as Product, aQ as Question, aW as Recipe, a$ as Review, b5 as VideoObject, b8 as WebPage, bf as WebSite, q as Book, G as Course, ag as ItemList, am as ListItem, as as Movie, bj as SearchAction, bc as ReadAction, b2 as SoftwareApp, s as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.CX_95Tmq.mjs';
|
|
7
|
+
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CX_95Tmq.mjs';
|
|
8
8
|
|
|
9
9
|
interface SchemaOrgResolverOptions {
|
|
10
10
|
/**
|
|
@@ -46,41 +46,41 @@ declare const SchemaOrgItemList: any;
|
|
|
46
46
|
declare const SchemaOrgBook: any;
|
|
47
47
|
declare const SchemaOrgSoftwareApp: any;
|
|
48
48
|
|
|
49
|
-
declare function defineAddress<T extends Record<string, any>>(input?: DeepResolvableProperties<PostalAddress & T>):
|
|
50
|
-
declare function defineAggregateOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateOffer & T>):
|
|
51
|
-
declare function defineAggregateRating<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateRating & T>):
|
|
52
|
-
declare function defineArticle<T extends Record<string, any>>(input?: DeepResolvableProperties<Article & T>):
|
|
53
|
-
declare function defineBreadcrumb<T extends Record<string, any>>(input?: DeepResolvableProperties<BreadcrumbList & T>):
|
|
54
|
-
declare function defineComment<T extends Record<string, any>>(input?: DeepResolvableProperties<Comment & T>):
|
|
55
|
-
declare function defineEvent<T extends Record<string, any>>(input?: DeepResolvableProperties<Event & T>):
|
|
56
|
-
declare function defineFoodEstablishment<T extends Record<string, any>>(input?: DeepResolvableProperties<FoodEstablishment & T>):
|
|
57
|
-
declare function defineVirtualLocation<T extends Record<string, any>>(input?: DeepResolvableProperties<VirtualLocation & T>):
|
|
58
|
-
declare function definePlace<T extends Record<string, any>>(input?: DeepResolvableProperties<Place & T>):
|
|
59
|
-
declare function defineHowTo<T extends Record<string, any>>(input?: DeepResolvableProperties<HowTo & T>):
|
|
60
|
-
declare function defineHowToStep<T extends Record<string, any>>(input?: DeepResolvableProperties<HowToStep & T>):
|
|
61
|
-
declare function defineImage<T extends Record<string, any>>(input?: DeepResolvableProperties<ImageObject & T>):
|
|
62
|
-
declare function defineJobPosting<T extends Record<string, any>>(input?: DeepResolvableProperties<JobPosting & T>):
|
|
63
|
-
declare function defineLocalBusiness<T extends Record<string, any>>(input?: DeepResolvableProperties<LocalBusiness & T>):
|
|
64
|
-
declare function defineOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<Offer & T>):
|
|
65
|
-
declare function defineOpeningHours<T extends Record<string, any>>(input?: DeepResolvableProperties<OpeningHoursSpecification & T>):
|
|
66
|
-
declare function defineOrganization<T extends Record<string, any>>(input?: DeepResolvableProperties<Organization & T>):
|
|
67
|
-
declare function definePerson<T extends Record<string, any>>(input?: DeepResolvableProperties<Person & T>):
|
|
68
|
-
declare function defineProduct<T extends Record<string, any>>(input?: DeepResolvableProperties<Product & T>):
|
|
69
|
-
declare function defineQuestion<T extends Record<string, any>>(input?: DeepResolvableProperties<Question & T>):
|
|
70
|
-
declare function defineRecipe<T extends Record<string, any>>(input?: DeepResolvableProperties<Recipe & T>):
|
|
71
|
-
declare function defineReview<T extends Record<string, any>>(input?: DeepResolvableProperties<Review & T>):
|
|
72
|
-
declare function defineVideo<T extends Record<string, any>>(input?: DeepResolvableProperties<VideoObject & T>):
|
|
73
|
-
declare function defineWebPage<T extends Record<string, any>>(input?: DeepResolvableProperties<WebPage & T>):
|
|
74
|
-
declare function defineWebSite<T extends Record<string, any>>(input?: DeepResolvableProperties<WebSite & T>):
|
|
75
|
-
declare function defineBook<T extends Record<string, any>>(input?: DeepResolvableProperties<Book & T>):
|
|
76
|
-
declare function defineCourse<T extends Record<string, any>>(input?: DeepResolvableProperties<Course & T>):
|
|
77
|
-
declare function defineItemList<T extends Record<string, any>>(input?: DeepResolvableProperties<ItemList & T>):
|
|
78
|
-
declare function defineListItem<T extends Record<string, any>>(input?: DeepResolvableProperties<ListItem & T>):
|
|
79
|
-
declare function defineMovie<T extends Record<string, any>>(input?: DeepResolvableProperties<Movie & T>):
|
|
80
|
-
declare function defineSearchAction<T extends Record<string, any>>(input?: DeepResolvableProperties<SearchAction & T>):
|
|
81
|
-
declare function defineReadAction<T extends Record<string, any>>(input?: DeepResolvableProperties<ReadAction & T>):
|
|
82
|
-
declare function defineSoftwareApp<T extends Record<string, any>>(input?: DeepResolvableProperties<SoftwareApp & T>):
|
|
83
|
-
declare function defineBookEdition<T extends Record<string, any>>(input?: DeepResolvableProperties<BookEdition & T>):
|
|
49
|
+
declare function defineAddress<T extends Record<string, any>>(input?: DeepResolvableProperties<PostalAddress & T>): any;
|
|
50
|
+
declare function defineAggregateOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateOffer & T>): any;
|
|
51
|
+
declare function defineAggregateRating<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateRating & T>): any;
|
|
52
|
+
declare function defineArticle<T extends Record<string, any>>(input?: DeepResolvableProperties<Article & T>): any;
|
|
53
|
+
declare function defineBreadcrumb<T extends Record<string, any>>(input?: DeepResolvableProperties<BreadcrumbList & T>): any;
|
|
54
|
+
declare function defineComment<T extends Record<string, any>>(input?: DeepResolvableProperties<Comment & T>): any;
|
|
55
|
+
declare function defineEvent<T extends Record<string, any>>(input?: DeepResolvableProperties<Event & T>): any;
|
|
56
|
+
declare function defineFoodEstablishment<T extends Record<string, any>>(input?: DeepResolvableProperties<FoodEstablishment & T>): any;
|
|
57
|
+
declare function defineVirtualLocation<T extends Record<string, any>>(input?: DeepResolvableProperties<VirtualLocation & T>): any;
|
|
58
|
+
declare function definePlace<T extends Record<string, any>>(input?: DeepResolvableProperties<Place & T>): any;
|
|
59
|
+
declare function defineHowTo<T extends Record<string, any>>(input?: DeepResolvableProperties<HowTo & T>): any;
|
|
60
|
+
declare function defineHowToStep<T extends Record<string, any>>(input?: DeepResolvableProperties<HowToStep & T>): any;
|
|
61
|
+
declare function defineImage<T extends Record<string, any>>(input?: DeepResolvableProperties<ImageObject & T>): any;
|
|
62
|
+
declare function defineJobPosting<T extends Record<string, any>>(input?: DeepResolvableProperties<JobPosting & T>): any;
|
|
63
|
+
declare function defineLocalBusiness<T extends Record<string, any>>(input?: DeepResolvableProperties<LocalBusiness & T>): any;
|
|
64
|
+
declare function defineOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<Offer & T>): any;
|
|
65
|
+
declare function defineOpeningHours<T extends Record<string, any>>(input?: DeepResolvableProperties<OpeningHoursSpecification & T>): any;
|
|
66
|
+
declare function defineOrganization<T extends Record<string, any>>(input?: DeepResolvableProperties<Organization & T>): any;
|
|
67
|
+
declare function definePerson<T extends Record<string, any>>(input?: DeepResolvableProperties<Person & T>): any;
|
|
68
|
+
declare function defineProduct<T extends Record<string, any>>(input?: DeepResolvableProperties<Product & T>): any;
|
|
69
|
+
declare function defineQuestion<T extends Record<string, any>>(input?: DeepResolvableProperties<Question & T>): any;
|
|
70
|
+
declare function defineRecipe<T extends Record<string, any>>(input?: DeepResolvableProperties<Recipe & T>): any;
|
|
71
|
+
declare function defineReview<T extends Record<string, any>>(input?: DeepResolvableProperties<Review & T>): any;
|
|
72
|
+
declare function defineVideo<T extends Record<string, any>>(input?: DeepResolvableProperties<VideoObject & T>): any;
|
|
73
|
+
declare function defineWebPage<T extends Record<string, any>>(input?: DeepResolvableProperties<WebPage & T>): any;
|
|
74
|
+
declare function defineWebSite<T extends Record<string, any>>(input?: DeepResolvableProperties<WebSite & T>): any;
|
|
75
|
+
declare function defineBook<T extends Record<string, any>>(input?: DeepResolvableProperties<Book & T>): any;
|
|
76
|
+
declare function defineCourse<T extends Record<string, any>>(input?: DeepResolvableProperties<Course & T>): any;
|
|
77
|
+
declare function defineItemList<T extends Record<string, any>>(input?: DeepResolvableProperties<ItemList & T>): any;
|
|
78
|
+
declare function defineListItem<T extends Record<string, any>>(input?: DeepResolvableProperties<ListItem & T>): any;
|
|
79
|
+
declare function defineMovie<T extends Record<string, any>>(input?: DeepResolvableProperties<Movie & T>): any;
|
|
80
|
+
declare function defineSearchAction<T extends Record<string, any>>(input?: DeepResolvableProperties<SearchAction & T>): any;
|
|
81
|
+
declare function defineReadAction<T extends Record<string, any>>(input?: DeepResolvableProperties<ReadAction & T>): any;
|
|
82
|
+
declare function defineSoftwareApp<T extends Record<string, any>>(input?: DeepResolvableProperties<SoftwareApp & T>): any;
|
|
83
|
+
declare function defineBookEdition<T extends Record<string, any>>(input?: DeepResolvableProperties<BookEdition & T>): any;
|
|
84
84
|
type UseSchemaOrgInput = Arrayable<DeepResolvableProperties<Thing | Record<string, any>>>;
|
|
85
85
|
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: UseHeadOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
86
86
|
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { U as UnheadSchemaOrg } from './shared/schema-org.C7IeLKiX.js';
|
|
2
2
|
import { ComponentResolver } from 'unplugin-vue-components';
|
|
3
3
|
import { defineComponent } from 'vue';
|
|
4
|
-
import { aJ as PostalAddress, aH as PostalAddressStrict, aI as PostalAddressName, i as AggregateOffer, l as AggregateRating, o as Article, x as BreadcrumbList, D as Comment, K as Event, a1 as FoodEstablishment, _ as VirtualLocation, X as Place, a4 as HowTo, a8 as HowToStep, ad as ImageObject, aj as JobPosting, ap as LocalBusiness, av as Offer, ay as OpeningHoursSpecification, aB as Organization, aE as Person, aM as Product, aQ as Question, aW as Recipe, a$ as Review, b5 as VideoObject, b8 as WebPage, bf as WebSite, q as Book, G as Course, ag as ItemList, am as ListItem, as as Movie, bj as SearchAction, bc as ReadAction, b2 as SoftwareApp, s as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.CFcsqFfN.js';
|
|
5
|
-
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CFcsqFfN.js';
|
|
6
4
|
import { DeepResolvableProperties, UseHeadOptions } from '@unhead/vue';
|
|
7
5
|
import { ActiveHeadEntry } from 'unhead/types';
|
|
6
|
+
import { aJ as PostalAddress, i as AggregateOffer, l as AggregateRating, o as Article, x as BreadcrumbList, D as Comment, K as Event, a1 as FoodEstablishment, _ as VirtualLocation, X as Place, a4 as HowTo, a8 as HowToStep, ad as ImageObject, aj as JobPosting, ap as LocalBusiness, av as Offer, ay as OpeningHoursSpecification, aB as Organization, aE as Person, aM as Product, aQ as Question, aW as Recipe, a$ as Review, b5 as VideoObject, b8 as WebPage, bf as WebSite, q as Book, G as Course, ag as ItemList, am as ListItem, as as Movie, bj as SearchAction, bc as ReadAction, b2 as SoftwareApp, s as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.CX_95Tmq.js';
|
|
7
|
+
export { M as MetaInput, U as UserConfig } from './shared/schema-org.CX_95Tmq.js';
|
|
8
8
|
|
|
9
9
|
interface SchemaOrgResolverOptions {
|
|
10
10
|
/**
|
|
@@ -46,41 +46,41 @@ declare const SchemaOrgItemList: any;
|
|
|
46
46
|
declare const SchemaOrgBook: any;
|
|
47
47
|
declare const SchemaOrgSoftwareApp: any;
|
|
48
48
|
|
|
49
|
-
declare function defineAddress<T extends Record<string, any>>(input?: DeepResolvableProperties<PostalAddress & T>):
|
|
50
|
-
declare function defineAggregateOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateOffer & T>):
|
|
51
|
-
declare function defineAggregateRating<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateRating & T>):
|
|
52
|
-
declare function defineArticle<T extends Record<string, any>>(input?: DeepResolvableProperties<Article & T>):
|
|
53
|
-
declare function defineBreadcrumb<T extends Record<string, any>>(input?: DeepResolvableProperties<BreadcrumbList & T>):
|
|
54
|
-
declare function defineComment<T extends Record<string, any>>(input?: DeepResolvableProperties<Comment & T>):
|
|
55
|
-
declare function defineEvent<T extends Record<string, any>>(input?: DeepResolvableProperties<Event & T>):
|
|
56
|
-
declare function defineFoodEstablishment<T extends Record<string, any>>(input?: DeepResolvableProperties<FoodEstablishment & T>):
|
|
57
|
-
declare function defineVirtualLocation<T extends Record<string, any>>(input?: DeepResolvableProperties<VirtualLocation & T>):
|
|
58
|
-
declare function definePlace<T extends Record<string, any>>(input?: DeepResolvableProperties<Place & T>):
|
|
59
|
-
declare function defineHowTo<T extends Record<string, any>>(input?: DeepResolvableProperties<HowTo & T>):
|
|
60
|
-
declare function defineHowToStep<T extends Record<string, any>>(input?: DeepResolvableProperties<HowToStep & T>):
|
|
61
|
-
declare function defineImage<T extends Record<string, any>>(input?: DeepResolvableProperties<ImageObject & T>):
|
|
62
|
-
declare function defineJobPosting<T extends Record<string, any>>(input?: DeepResolvableProperties<JobPosting & T>):
|
|
63
|
-
declare function defineLocalBusiness<T extends Record<string, any>>(input?: DeepResolvableProperties<LocalBusiness & T>):
|
|
64
|
-
declare function defineOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<Offer & T>):
|
|
65
|
-
declare function defineOpeningHours<T extends Record<string, any>>(input?: DeepResolvableProperties<OpeningHoursSpecification & T>):
|
|
66
|
-
declare function defineOrganization<T extends Record<string, any>>(input?: DeepResolvableProperties<Organization & T>):
|
|
67
|
-
declare function definePerson<T extends Record<string, any>>(input?: DeepResolvableProperties<Person & T>):
|
|
68
|
-
declare function defineProduct<T extends Record<string, any>>(input?: DeepResolvableProperties<Product & T>):
|
|
69
|
-
declare function defineQuestion<T extends Record<string, any>>(input?: DeepResolvableProperties<Question & T>):
|
|
70
|
-
declare function defineRecipe<T extends Record<string, any>>(input?: DeepResolvableProperties<Recipe & T>):
|
|
71
|
-
declare function defineReview<T extends Record<string, any>>(input?: DeepResolvableProperties<Review & T>):
|
|
72
|
-
declare function defineVideo<T extends Record<string, any>>(input?: DeepResolvableProperties<VideoObject & T>):
|
|
73
|
-
declare function defineWebPage<T extends Record<string, any>>(input?: DeepResolvableProperties<WebPage & T>):
|
|
74
|
-
declare function defineWebSite<T extends Record<string, any>>(input?: DeepResolvableProperties<WebSite & T>):
|
|
75
|
-
declare function defineBook<T extends Record<string, any>>(input?: DeepResolvableProperties<Book & T>):
|
|
76
|
-
declare function defineCourse<T extends Record<string, any>>(input?: DeepResolvableProperties<Course & T>):
|
|
77
|
-
declare function defineItemList<T extends Record<string, any>>(input?: DeepResolvableProperties<ItemList & T>):
|
|
78
|
-
declare function defineListItem<T extends Record<string, any>>(input?: DeepResolvableProperties<ListItem & T>):
|
|
79
|
-
declare function defineMovie<T extends Record<string, any>>(input?: DeepResolvableProperties<Movie & T>):
|
|
80
|
-
declare function defineSearchAction<T extends Record<string, any>>(input?: DeepResolvableProperties<SearchAction & T>):
|
|
81
|
-
declare function defineReadAction<T extends Record<string, any>>(input?: DeepResolvableProperties<ReadAction & T>):
|
|
82
|
-
declare function defineSoftwareApp<T extends Record<string, any>>(input?: DeepResolvableProperties<SoftwareApp & T>):
|
|
83
|
-
declare function defineBookEdition<T extends Record<string, any>>(input?: DeepResolvableProperties<BookEdition & T>):
|
|
49
|
+
declare function defineAddress<T extends Record<string, any>>(input?: DeepResolvableProperties<PostalAddress & T>): any;
|
|
50
|
+
declare function defineAggregateOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateOffer & T>): any;
|
|
51
|
+
declare function defineAggregateRating<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateRating & T>): any;
|
|
52
|
+
declare function defineArticle<T extends Record<string, any>>(input?: DeepResolvableProperties<Article & T>): any;
|
|
53
|
+
declare function defineBreadcrumb<T extends Record<string, any>>(input?: DeepResolvableProperties<BreadcrumbList & T>): any;
|
|
54
|
+
declare function defineComment<T extends Record<string, any>>(input?: DeepResolvableProperties<Comment & T>): any;
|
|
55
|
+
declare function defineEvent<T extends Record<string, any>>(input?: DeepResolvableProperties<Event & T>): any;
|
|
56
|
+
declare function defineFoodEstablishment<T extends Record<string, any>>(input?: DeepResolvableProperties<FoodEstablishment & T>): any;
|
|
57
|
+
declare function defineVirtualLocation<T extends Record<string, any>>(input?: DeepResolvableProperties<VirtualLocation & T>): any;
|
|
58
|
+
declare function definePlace<T extends Record<string, any>>(input?: DeepResolvableProperties<Place & T>): any;
|
|
59
|
+
declare function defineHowTo<T extends Record<string, any>>(input?: DeepResolvableProperties<HowTo & T>): any;
|
|
60
|
+
declare function defineHowToStep<T extends Record<string, any>>(input?: DeepResolvableProperties<HowToStep & T>): any;
|
|
61
|
+
declare function defineImage<T extends Record<string, any>>(input?: DeepResolvableProperties<ImageObject & T>): any;
|
|
62
|
+
declare function defineJobPosting<T extends Record<string, any>>(input?: DeepResolvableProperties<JobPosting & T>): any;
|
|
63
|
+
declare function defineLocalBusiness<T extends Record<string, any>>(input?: DeepResolvableProperties<LocalBusiness & T>): any;
|
|
64
|
+
declare function defineOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<Offer & T>): any;
|
|
65
|
+
declare function defineOpeningHours<T extends Record<string, any>>(input?: DeepResolvableProperties<OpeningHoursSpecification & T>): any;
|
|
66
|
+
declare function defineOrganization<T extends Record<string, any>>(input?: DeepResolvableProperties<Organization & T>): any;
|
|
67
|
+
declare function definePerson<T extends Record<string, any>>(input?: DeepResolvableProperties<Person & T>): any;
|
|
68
|
+
declare function defineProduct<T extends Record<string, any>>(input?: DeepResolvableProperties<Product & T>): any;
|
|
69
|
+
declare function defineQuestion<T extends Record<string, any>>(input?: DeepResolvableProperties<Question & T>): any;
|
|
70
|
+
declare function defineRecipe<T extends Record<string, any>>(input?: DeepResolvableProperties<Recipe & T>): any;
|
|
71
|
+
declare function defineReview<T extends Record<string, any>>(input?: DeepResolvableProperties<Review & T>): any;
|
|
72
|
+
declare function defineVideo<T extends Record<string, any>>(input?: DeepResolvableProperties<VideoObject & T>): any;
|
|
73
|
+
declare function defineWebPage<T extends Record<string, any>>(input?: DeepResolvableProperties<WebPage & T>): any;
|
|
74
|
+
declare function defineWebSite<T extends Record<string, any>>(input?: DeepResolvableProperties<WebSite & T>): any;
|
|
75
|
+
declare function defineBook<T extends Record<string, any>>(input?: DeepResolvableProperties<Book & T>): any;
|
|
76
|
+
declare function defineCourse<T extends Record<string, any>>(input?: DeepResolvableProperties<Course & T>): any;
|
|
77
|
+
declare function defineItemList<T extends Record<string, any>>(input?: DeepResolvableProperties<ItemList & T>): any;
|
|
78
|
+
declare function defineListItem<T extends Record<string, any>>(input?: DeepResolvableProperties<ListItem & T>): any;
|
|
79
|
+
declare function defineMovie<T extends Record<string, any>>(input?: DeepResolvableProperties<Movie & T>): any;
|
|
80
|
+
declare function defineSearchAction<T extends Record<string, any>>(input?: DeepResolvableProperties<SearchAction & T>): any;
|
|
81
|
+
declare function defineReadAction<T extends Record<string, any>>(input?: DeepResolvableProperties<ReadAction & T>): any;
|
|
82
|
+
declare function defineSoftwareApp<T extends Record<string, any>>(input?: DeepResolvableProperties<SoftwareApp & T>): any;
|
|
83
|
+
declare function defineBookEdition<T extends Record<string, any>>(input?: DeepResolvableProperties<BookEdition & T>): any;
|
|
84
84
|
type UseSchemaOrgInput = Arrayable<DeepResolvableProperties<Thing | Record<string, any>>>;
|
|
85
85
|
declare function useSchemaOrg(input?: UseSchemaOrgInput, options?: UseHeadOptions): ActiveHeadEntry<UseSchemaOrgInput>;
|
|
86
86
|
|
package/dist/vue.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { U as UnheadSchemaOrg,
|
|
2
|
-
export { P as PluginSchemaOrg, S as SchemaOrgUnheadPlugin } from './shared/schema-org.B9Q-o8S0.mjs';
|
|
1
|
+
import { U as UnheadSchemaOrg, a1 as normalizeSchemaOrgInput, aG as addressResolver, a3 as aggregateOfferResolver, a4 as aggregateRatingResolver, a6 as articleResolver, ab as breadcrumbResolver, ac as commentResolver, ah as eventResolver, ak as foodEstablishmentResolver, aj as virtualLocationResolver, ai as placeResolver, am as howToResolver, an as howToStepResolver, ap as imageResolver, ar as jobPostingResolver, at as localBusinessResolver, az as offerResolver, aA as openingHoursResolver, aB as organizationResolver, aC as personResolver, aI as productResolver, aJ as questionResolver, aM as recipeResolver, aN as reviewResolver, aU as videoResolver, aW as webPageResolver, aZ as webSiteResolver, a9 as bookResolver, ad as courseResolver, aq as itemListResolver, as as listItemResolver, au as movieResolver, a_ as searchActionResolver, aX as readActionResolver, aQ as softwareAppResolver, a7 as bookEditionResolver } from './shared/schema-org.DvWGLdBv.mjs';
|
|
3
2
|
import { s as schemaAutoImports } from './shared/schema-org.CHbRCiep.mjs';
|
|
4
|
-
import { defineComponent, ref, computed, unref, h,
|
|
3
|
+
import { defineComponent, ref, computed, unref, h, toValue } from 'vue';
|
|
5
4
|
import { injectHead, useHead } from '@unhead/vue';
|
|
5
|
+
import 'ufo';
|
|
6
6
|
import 'unhead/plugins';
|
|
7
7
|
import 'unhead/utils';
|
|
8
|
-
import 'ufo';
|
|
9
8
|
|
|
10
9
|
const schemaOrgAutoImports = [
|
|
11
10
|
{
|
|
@@ -141,114 +140,119 @@ const SchemaOrgSoftwareApp = /* @__PURE__ */ defineSchemaOrgComponent("SchemaOrg
|
|
|
141
140
|
function provideResolver(input, resolver) {
|
|
142
141
|
if (!input)
|
|
143
142
|
input = {};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
if (input && typeof input === "object" && "__v_isRef" in input) {
|
|
144
|
+
const inner = toValue(input);
|
|
145
|
+
if (inner && typeof inner === "object") {
|
|
146
|
+
inner._resolver = resolver;
|
|
147
|
+
}
|
|
148
|
+
return input;
|
|
149
|
+
}
|
|
150
|
+
return { ...input, _resolver: resolver };
|
|
147
151
|
}
|
|
148
152
|
function defineAddress(input) {
|
|
149
|
-
return provideResolver(input,
|
|
153
|
+
return provideResolver(input, addressResolver);
|
|
150
154
|
}
|
|
151
155
|
function defineAggregateOffer(input) {
|
|
152
|
-
return provideResolver(input,
|
|
156
|
+
return provideResolver(input, aggregateOfferResolver);
|
|
153
157
|
}
|
|
154
158
|
function defineAggregateRating(input) {
|
|
155
|
-
return provideResolver(input,
|
|
159
|
+
return provideResolver(input, aggregateRatingResolver);
|
|
156
160
|
}
|
|
157
161
|
function defineArticle(input) {
|
|
158
|
-
return provideResolver(input,
|
|
162
|
+
return provideResolver(input, articleResolver);
|
|
159
163
|
}
|
|
160
164
|
function defineBreadcrumb(input) {
|
|
161
|
-
return provideResolver(input,
|
|
165
|
+
return provideResolver(input, breadcrumbResolver);
|
|
162
166
|
}
|
|
163
167
|
function defineComment(input) {
|
|
164
|
-
return provideResolver(input,
|
|
168
|
+
return provideResolver(input, commentResolver);
|
|
165
169
|
}
|
|
166
170
|
function defineEvent(input) {
|
|
167
|
-
return provideResolver(input,
|
|
171
|
+
return provideResolver(input, eventResolver);
|
|
168
172
|
}
|
|
169
173
|
function defineFoodEstablishment(input) {
|
|
170
|
-
return provideResolver(input,
|
|
174
|
+
return provideResolver(input, foodEstablishmentResolver);
|
|
171
175
|
}
|
|
172
176
|
function defineVirtualLocation(input) {
|
|
173
|
-
return provideResolver(input,
|
|
177
|
+
return provideResolver(input, virtualLocationResolver);
|
|
174
178
|
}
|
|
175
179
|
function definePlace(input) {
|
|
176
|
-
return provideResolver(input,
|
|
180
|
+
return provideResolver(input, placeResolver);
|
|
177
181
|
}
|
|
178
182
|
function defineHowTo(input) {
|
|
179
|
-
return provideResolver(input,
|
|
183
|
+
return provideResolver(input, howToResolver);
|
|
180
184
|
}
|
|
181
185
|
function defineHowToStep(input) {
|
|
182
|
-
return provideResolver(input,
|
|
186
|
+
return provideResolver(input, howToStepResolver);
|
|
183
187
|
}
|
|
184
188
|
function defineImage(input) {
|
|
185
|
-
return provideResolver(input,
|
|
189
|
+
return provideResolver(input, imageResolver);
|
|
186
190
|
}
|
|
187
191
|
function defineJobPosting(input) {
|
|
188
|
-
return provideResolver(input,
|
|
192
|
+
return provideResolver(input, jobPostingResolver);
|
|
189
193
|
}
|
|
190
194
|
function defineLocalBusiness(input) {
|
|
191
|
-
return provideResolver(input,
|
|
195
|
+
return provideResolver(input, localBusinessResolver);
|
|
192
196
|
}
|
|
193
197
|
function defineOffer(input) {
|
|
194
|
-
return provideResolver(input,
|
|
198
|
+
return provideResolver(input, offerResolver);
|
|
195
199
|
}
|
|
196
200
|
function defineOpeningHours(input) {
|
|
197
|
-
return provideResolver(input,
|
|
201
|
+
return provideResolver(input, openingHoursResolver);
|
|
198
202
|
}
|
|
199
203
|
function defineOrganization(input) {
|
|
200
|
-
return provideResolver(input,
|
|
204
|
+
return provideResolver(input, organizationResolver);
|
|
201
205
|
}
|
|
202
206
|
function definePerson(input) {
|
|
203
|
-
return provideResolver(input,
|
|
207
|
+
return provideResolver(input, personResolver);
|
|
204
208
|
}
|
|
205
209
|
function defineProduct(input) {
|
|
206
|
-
return provideResolver(input,
|
|
210
|
+
return provideResolver(input, productResolver);
|
|
207
211
|
}
|
|
208
212
|
function defineQuestion(input) {
|
|
209
|
-
return provideResolver(input,
|
|
213
|
+
return provideResolver(input, questionResolver);
|
|
210
214
|
}
|
|
211
215
|
function defineRecipe(input) {
|
|
212
|
-
return provideResolver(input,
|
|
216
|
+
return provideResolver(input, recipeResolver);
|
|
213
217
|
}
|
|
214
218
|
function defineReview(input) {
|
|
215
|
-
return provideResolver(input,
|
|
219
|
+
return provideResolver(input, reviewResolver);
|
|
216
220
|
}
|
|
217
221
|
function defineVideo(input) {
|
|
218
|
-
return provideResolver(input,
|
|
222
|
+
return provideResolver(input, videoResolver);
|
|
219
223
|
}
|
|
220
224
|
function defineWebPage(input) {
|
|
221
|
-
return provideResolver(input,
|
|
225
|
+
return provideResolver(input, webPageResolver);
|
|
222
226
|
}
|
|
223
227
|
function defineWebSite(input) {
|
|
224
|
-
return provideResolver(input,
|
|
228
|
+
return provideResolver(input, webSiteResolver);
|
|
225
229
|
}
|
|
226
230
|
function defineBook(input) {
|
|
227
|
-
return provideResolver(input,
|
|
231
|
+
return provideResolver(input, bookResolver);
|
|
228
232
|
}
|
|
229
233
|
function defineCourse(input) {
|
|
230
|
-
return provideResolver(input,
|
|
234
|
+
return provideResolver(input, courseResolver);
|
|
231
235
|
}
|
|
232
236
|
function defineItemList(input) {
|
|
233
|
-
return provideResolver(input,
|
|
237
|
+
return provideResolver(input, itemListResolver);
|
|
234
238
|
}
|
|
235
239
|
function defineListItem(input) {
|
|
236
|
-
return provideResolver(input,
|
|
240
|
+
return provideResolver(input, listItemResolver);
|
|
237
241
|
}
|
|
238
242
|
function defineMovie(input) {
|
|
239
|
-
return provideResolver(input,
|
|
243
|
+
return provideResolver(input, movieResolver);
|
|
240
244
|
}
|
|
241
245
|
function defineSearchAction(input) {
|
|
242
|
-
return provideResolver(input,
|
|
246
|
+
return provideResolver(input, searchActionResolver);
|
|
243
247
|
}
|
|
244
248
|
function defineReadAction(input) {
|
|
245
|
-
return provideResolver(input,
|
|
249
|
+
return provideResolver(input, readActionResolver);
|
|
246
250
|
}
|
|
247
251
|
function defineSoftwareApp(input) {
|
|
248
|
-
return provideResolver(input,
|
|
252
|
+
return provideResolver(input, softwareAppResolver);
|
|
249
253
|
}
|
|
250
254
|
function defineBookEdition(input) {
|
|
251
|
-
return provideResolver(input,
|
|
255
|
+
return provideResolver(input, bookEditionResolver);
|
|
252
256
|
}
|
|
253
257
|
function useSchemaOrg(input = [], options = {}) {
|
|
254
258
|
const unhead = options.head || injectHead();
|
|
@@ -259,4 +263,4 @@ function useSchemaOrg(input = [], options = {}) {
|
|
|
259
263
|
return entry;
|
|
260
264
|
}
|
|
261
265
|
|
|
262
|
-
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 };
|
|
266
|
+
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, 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, 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": "
|
|
4
|
+
"version": "3.0.0-beta.10",
|
|
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",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"dist"
|
|
72
72
|
],
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@unhead/react": "
|
|
75
|
-
"@unhead/solid-js": "
|
|
76
|
-
"@unhead/svelte": "
|
|
77
|
-
"@unhead/vue": "
|
|
74
|
+
"@unhead/react": "3.0.0-beta.10",
|
|
75
|
+
"@unhead/solid-js": "3.0.0-beta.10",
|
|
76
|
+
"@unhead/svelte": "3.0.0-beta.10",
|
|
77
|
+
"@unhead/vue": "3.0.0-beta.10"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"@unhead/react": {
|
|
@@ -92,15 +92,15 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"ufo": "^1.6.2",
|
|
95
|
-
"unhead": "
|
|
95
|
+
"unhead": "3.0.0-beta.10"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"unplugin-vue-components": "^30.0.0",
|
|
99
|
-
"@unhead/
|
|
100
|
-
"@unhead/
|
|
101
|
-
"@unhead/
|
|
102
|
-
"
|
|
103
|
-
"unhead": "
|
|
99
|
+
"@unhead/solid-js": "3.0.0-beta.10",
|
|
100
|
+
"@unhead/svelte": "3.0.0-beta.10",
|
|
101
|
+
"@unhead/react": "3.0.0-beta.10",
|
|
102
|
+
"unhead": "3.0.0-beta.10",
|
|
103
|
+
"@unhead/vue": "3.0.0-beta.10"
|
|
104
104
|
},
|
|
105
105
|
"build": {
|
|
106
106
|
"external": [
|
package/dist/chunks/index.mjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { d as defineSchemaOrgResolver, e as resolveRelation, a6 as setIfEmpty, ac as asArray } from '../shared/schema-org.B9Q-o8S0.mjs';
|
|
2
|
-
import { offerResolver } from './index23.mjs';
|
|
3
|
-
import 'unhead/plugins';
|
|
4
|
-
import 'unhead/utils';
|
|
5
|
-
import 'ufo';
|
|
6
|
-
import '../shared/schema-org.zHUqdMMo.mjs';
|
|
7
|
-
|
|
8
|
-
const aggregateOfferResolver = defineSchemaOrgResolver({
|
|
9
|
-
defaults: {
|
|
10
|
-
"@type": "AggregateOffer"
|
|
11
|
-
},
|
|
12
|
-
inheritMeta: [
|
|
13
|
-
{ meta: "currency", key: "priceCurrency" }
|
|
14
|
-
],
|
|
15
|
-
resolve(node, ctx) {
|
|
16
|
-
node.offers = resolveRelation(node.offers, ctx, offerResolver);
|
|
17
|
-
if (node.offers)
|
|
18
|
-
setIfEmpty(node, "offerCount", asArray(node.offers).length);
|
|
19
|
-
return node;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export { aggregateOfferResolver };
|