@unhead/schema-org 3.0.0-beta.1 → 3.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/index.d.mts +4 -4
  2. package/dist/index.d.ts +4 -4
  3. package/dist/index.mjs +2 -44
  4. package/dist/react.d.mts +3 -3
  5. package/dist/react.d.ts +3 -3
  6. package/dist/react.mjs +3 -3
  7. package/dist/shared/schema-org.BS2Q1uTx.d.mts +11 -0
  8. package/dist/shared/schema-org.BTlxVbwx.mjs +1932 -0
  9. package/dist/shared/{schema-org.CAKsqzbX.d.ts → schema-org.C1OXVKVP.d.ts} +142 -48
  10. package/dist/shared/schema-org.C7IeLKiX.d.ts +11 -0
  11. package/dist/shared/{schema-org.CFcsqFfN.d.mts → schema-org.CX_95Tmq.d.mts} +2 -22
  12. package/dist/shared/{schema-org.CFcsqFfN.d.ts → schema-org.CX_95Tmq.d.ts} +2 -22
  13. package/dist/shared/{schema-org.UT1u1UYq.d.mts → schema-org.Cxijls86.d.mts} +142 -48
  14. package/dist/solid-js.d.mts +3 -3
  15. package/dist/solid-js.d.ts +3 -3
  16. package/dist/solid-js.mjs +3 -3
  17. package/dist/svelte.d.mts +3 -3
  18. package/dist/svelte.d.ts +3 -3
  19. package/dist/svelte.mjs +3 -3
  20. package/dist/vue.d.mts +38 -38
  21. package/dist/vue.d.ts +38 -38
  22. package/dist/vue.mjs +47 -44
  23. package/package.json +12 -12
  24. package/dist/chunks/index.mjs +0 -23
  25. package/dist/chunks/index10.mjs +0 -63
  26. package/dist/chunks/index11.mjs +0 -35
  27. package/dist/chunks/index12.mjs +0 -48
  28. package/dist/chunks/index13.mjs +0 -36
  29. package/dist/chunks/index14.mjs +0 -25
  30. package/dist/chunks/index15.mjs +0 -37
  31. package/dist/chunks/index16.mjs +0 -27
  32. package/dist/chunks/index17.mjs +0 -34
  33. package/dist/chunks/index18.mjs +0 -32
  34. package/dist/chunks/index19.mjs +0 -31
  35. package/dist/chunks/index2.mjs +0 -12
  36. package/dist/chunks/index20.mjs +0 -31
  37. package/dist/chunks/index21.mjs +0 -30
  38. package/dist/chunks/index22.mjs +0 -30
  39. package/dist/chunks/index23.mjs +0 -82
  40. package/dist/chunks/index24.mjs +0 -14
  41. package/dist/chunks/index25.mjs +0 -33
  42. package/dist/chunks/index26.mjs +0 -31
  43. package/dist/chunks/index27.mjs +0 -29
  44. package/dist/chunks/index28.mjs +0 -12
  45. package/dist/chunks/index29.mjs +0 -46
  46. package/dist/chunks/index3.mjs +0 -317
  47. package/dist/chunks/index30.mjs +0 -53
  48. package/dist/chunks/index31.mjs +0 -41
  49. package/dist/chunks/index32.mjs +0 -26
  50. package/dist/chunks/index33.mjs +0 -47
  51. package/dist/chunks/index34.mjs +0 -29
  52. package/dist/chunks/index35.mjs +0 -34
  53. package/dist/chunks/index36.mjs +0 -33
  54. package/dist/chunks/index37.mjs +0 -34
  55. package/dist/chunks/index38.mjs +0 -51
  56. package/dist/chunks/index39.mjs +0 -17
  57. package/dist/chunks/index4.mjs +0 -54
  58. package/dist/chunks/index40.mjs +0 -29
  59. package/dist/chunks/index5.mjs +0 -31
  60. package/dist/chunks/index6.mjs +0 -29
  61. package/dist/chunks/index7.mjs +0 -35
  62. package/dist/chunks/index8.mjs +0 -18
  63. package/dist/chunks/index9.mjs +0 -20
  64. package/dist/shared/schema-org.40UJYB57.mjs +0 -19
  65. package/dist/shared/schema-org.BR4WcSqZ.d.ts +0 -21
  66. package/dist/shared/schema-org.Cp6bpwL2.mjs +0 -875
  67. package/dist/shared/schema-org.Dg61qWpa.mjs +0 -27
  68. package/dist/shared/schema-org.oFHFm6my.d.mts +0 -21
package/dist/vue.d.mts CHANGED
@@ -1,10 +1,10 @@
1
- export { P as PluginSchemaOrg, S as SchemaOrgUnheadPlugin } from './shared/schema-org.oFHFm6my.mjs';
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>): DeepResolvableProperties<PostalAddressStrict & T> | DeepResolvableProperties<PostalAddressName & T>;
50
- declare function defineAggregateOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateOffer & T>): DeepResolvableProperties<AggregateOffer & T>;
51
- declare function defineAggregateRating<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateRating & T>): DeepResolvableProperties<AggregateRating & T>;
52
- declare function defineArticle<T extends Record<string, any>>(input?: DeepResolvableProperties<Article & T>): DeepResolvableProperties<Article & T>;
53
- declare function defineBreadcrumb<T extends Record<string, any>>(input?: DeepResolvableProperties<BreadcrumbList & T>): DeepResolvableProperties<BreadcrumbList & T>;
54
- declare function defineComment<T extends Record<string, any>>(input?: DeepResolvableProperties<Comment & T>): DeepResolvableProperties<Comment & T>;
55
- declare function defineEvent<T extends Record<string, any>>(input?: DeepResolvableProperties<Event & T>): DeepResolvableProperties<Event & T>;
56
- declare function defineFoodEstablishment<T extends Record<string, any>>(input?: DeepResolvableProperties<FoodEstablishment & T>): DeepResolvableProperties<FoodEstablishment & T>;
57
- declare function defineVirtualLocation<T extends Record<string, any>>(input?: DeepResolvableProperties<VirtualLocation & T>): DeepResolvableProperties<VirtualLocation & T>;
58
- declare function definePlace<T extends Record<string, any>>(input?: DeepResolvableProperties<Place & T>): DeepResolvableProperties<Place & T>;
59
- declare function defineHowTo<T extends Record<string, any>>(input?: DeepResolvableProperties<HowTo & T>): DeepResolvableProperties<HowTo & T>;
60
- declare function defineHowToStep<T extends Record<string, any>>(input?: DeepResolvableProperties<HowToStep & T>): DeepResolvableProperties<HowToStep & T>;
61
- declare function defineImage<T extends Record<string, any>>(input?: DeepResolvableProperties<ImageObject & T>): DeepResolvableProperties<ImageObject & T>;
62
- declare function defineJobPosting<T extends Record<string, any>>(input?: DeepResolvableProperties<JobPosting & T>): DeepResolvableProperties<JobPosting & T>;
63
- declare function defineLocalBusiness<T extends Record<string, any>>(input?: DeepResolvableProperties<LocalBusiness & T>): DeepResolvableProperties<LocalBusiness & T>;
64
- declare function defineOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<Offer & T>): DeepResolvableProperties<Offer & T>;
65
- declare function defineOpeningHours<T extends Record<string, any>>(input?: DeepResolvableProperties<OpeningHoursSpecification & T>): DeepResolvableProperties<OpeningHoursSpecification & T>;
66
- declare function defineOrganization<T extends Record<string, any>>(input?: DeepResolvableProperties<Organization & T>): DeepResolvableProperties<Organization & T>;
67
- declare function definePerson<T extends Record<string, any>>(input?: DeepResolvableProperties<Person & T>): DeepResolvableProperties<Person & T>;
68
- declare function defineProduct<T extends Record<string, any>>(input?: DeepResolvableProperties<Product & T>): DeepResolvableProperties<Product & T>;
69
- declare function defineQuestion<T extends Record<string, any>>(input?: DeepResolvableProperties<Question & T>): DeepResolvableProperties<Question & T>;
70
- declare function defineRecipe<T extends Record<string, any>>(input?: DeepResolvableProperties<Recipe & T>): DeepResolvableProperties<Recipe & T>;
71
- declare function defineReview<T extends Record<string, any>>(input?: DeepResolvableProperties<Review & T>): DeepResolvableProperties<Review & T>;
72
- declare function defineVideo<T extends Record<string, any>>(input?: DeepResolvableProperties<VideoObject & T>): DeepResolvableProperties<VideoObject & T>;
73
- declare function defineWebPage<T extends Record<string, any>>(input?: DeepResolvableProperties<WebPage & T>): DeepResolvableProperties<WebPage & T>;
74
- declare function defineWebSite<T extends Record<string, any>>(input?: DeepResolvableProperties<WebSite & T>): DeepResolvableProperties<WebSite & T>;
75
- declare function defineBook<T extends Record<string, any>>(input?: DeepResolvableProperties<Book & T>): DeepResolvableProperties<Book & T>;
76
- declare function defineCourse<T extends Record<string, any>>(input?: DeepResolvableProperties<Course & T>): DeepResolvableProperties<Course & T>;
77
- declare function defineItemList<T extends Record<string, any>>(input?: DeepResolvableProperties<ItemList & T>): DeepResolvableProperties<ItemList & T>;
78
- declare function defineListItem<T extends Record<string, any>>(input?: DeepResolvableProperties<ListItem & T>): DeepResolvableProperties<ListItem & T>;
79
- declare function defineMovie<T extends Record<string, any>>(input?: DeepResolvableProperties<Movie & T>): DeepResolvableProperties<Movie & T>;
80
- declare function defineSearchAction<T extends Record<string, any>>(input?: DeepResolvableProperties<SearchAction & T>): DeepResolvableProperties<SearchAction & T>;
81
- declare function defineReadAction<T extends Record<string, any>>(input?: DeepResolvableProperties<ReadAction & T>): DeepResolvableProperties<ReadAction & T>;
82
- declare function defineSoftwareApp<T extends Record<string, any>>(input?: DeepResolvableProperties<SoftwareApp & T>): DeepResolvableProperties<SoftwareApp & T>;
83
- declare function defineBookEdition<T extends Record<string, any>>(input?: DeepResolvableProperties<BookEdition & T>): 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 { P as PluginSchemaOrg, S as SchemaOrgUnheadPlugin } from './shared/schema-org.BR4WcSqZ.js';
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>): DeepResolvableProperties<PostalAddressStrict & T> | DeepResolvableProperties<PostalAddressName & T>;
50
- declare function defineAggregateOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateOffer & T>): DeepResolvableProperties<AggregateOffer & T>;
51
- declare function defineAggregateRating<T extends Record<string, any>>(input?: DeepResolvableProperties<AggregateRating & T>): DeepResolvableProperties<AggregateRating & T>;
52
- declare function defineArticle<T extends Record<string, any>>(input?: DeepResolvableProperties<Article & T>): DeepResolvableProperties<Article & T>;
53
- declare function defineBreadcrumb<T extends Record<string, any>>(input?: DeepResolvableProperties<BreadcrumbList & T>): DeepResolvableProperties<BreadcrumbList & T>;
54
- declare function defineComment<T extends Record<string, any>>(input?: DeepResolvableProperties<Comment & T>): DeepResolvableProperties<Comment & T>;
55
- declare function defineEvent<T extends Record<string, any>>(input?: DeepResolvableProperties<Event & T>): DeepResolvableProperties<Event & T>;
56
- declare function defineFoodEstablishment<T extends Record<string, any>>(input?: DeepResolvableProperties<FoodEstablishment & T>): DeepResolvableProperties<FoodEstablishment & T>;
57
- declare function defineVirtualLocation<T extends Record<string, any>>(input?: DeepResolvableProperties<VirtualLocation & T>): DeepResolvableProperties<VirtualLocation & T>;
58
- declare function definePlace<T extends Record<string, any>>(input?: DeepResolvableProperties<Place & T>): DeepResolvableProperties<Place & T>;
59
- declare function defineHowTo<T extends Record<string, any>>(input?: DeepResolvableProperties<HowTo & T>): DeepResolvableProperties<HowTo & T>;
60
- declare function defineHowToStep<T extends Record<string, any>>(input?: DeepResolvableProperties<HowToStep & T>): DeepResolvableProperties<HowToStep & T>;
61
- declare function defineImage<T extends Record<string, any>>(input?: DeepResolvableProperties<ImageObject & T>): DeepResolvableProperties<ImageObject & T>;
62
- declare function defineJobPosting<T extends Record<string, any>>(input?: DeepResolvableProperties<JobPosting & T>): DeepResolvableProperties<JobPosting & T>;
63
- declare function defineLocalBusiness<T extends Record<string, any>>(input?: DeepResolvableProperties<LocalBusiness & T>): DeepResolvableProperties<LocalBusiness & T>;
64
- declare function defineOffer<T extends Record<string, any>>(input?: DeepResolvableProperties<Offer & T>): DeepResolvableProperties<Offer & T>;
65
- declare function defineOpeningHours<T extends Record<string, any>>(input?: DeepResolvableProperties<OpeningHoursSpecification & T>): DeepResolvableProperties<OpeningHoursSpecification & T>;
66
- declare function defineOrganization<T extends Record<string, any>>(input?: DeepResolvableProperties<Organization & T>): DeepResolvableProperties<Organization & T>;
67
- declare function definePerson<T extends Record<string, any>>(input?: DeepResolvableProperties<Person & T>): DeepResolvableProperties<Person & T>;
68
- declare function defineProduct<T extends Record<string, any>>(input?: DeepResolvableProperties<Product & T>): DeepResolvableProperties<Product & T>;
69
- declare function defineQuestion<T extends Record<string, any>>(input?: DeepResolvableProperties<Question & T>): DeepResolvableProperties<Question & T>;
70
- declare function defineRecipe<T extends Record<string, any>>(input?: DeepResolvableProperties<Recipe & T>): DeepResolvableProperties<Recipe & T>;
71
- declare function defineReview<T extends Record<string, any>>(input?: DeepResolvableProperties<Review & T>): DeepResolvableProperties<Review & T>;
72
- declare function defineVideo<T extends Record<string, any>>(input?: DeepResolvableProperties<VideoObject & T>): DeepResolvableProperties<VideoObject & T>;
73
- declare function defineWebPage<T extends Record<string, any>>(input?: DeepResolvableProperties<WebPage & T>): DeepResolvableProperties<WebPage & T>;
74
- declare function defineWebSite<T extends Record<string, any>>(input?: DeepResolvableProperties<WebSite & T>): DeepResolvableProperties<WebSite & T>;
75
- declare function defineBook<T extends Record<string, any>>(input?: DeepResolvableProperties<Book & T>): DeepResolvableProperties<Book & T>;
76
- declare function defineCourse<T extends Record<string, any>>(input?: DeepResolvableProperties<Course & T>): DeepResolvableProperties<Course & T>;
77
- declare function defineItemList<T extends Record<string, any>>(input?: DeepResolvableProperties<ItemList & T>): DeepResolvableProperties<ItemList & T>;
78
- declare function defineListItem<T extends Record<string, any>>(input?: DeepResolvableProperties<ListItem & T>): DeepResolvableProperties<ListItem & T>;
79
- declare function defineMovie<T extends Record<string, any>>(input?: DeepResolvableProperties<Movie & T>): DeepResolvableProperties<Movie & T>;
80
- declare function defineSearchAction<T extends Record<string, any>>(input?: DeepResolvableProperties<SearchAction & T>): DeepResolvableProperties<SearchAction & T>;
81
- declare function defineReadAction<T extends Record<string, any>>(input?: DeepResolvableProperties<ReadAction & T>): DeepResolvableProperties<ReadAction & T>;
82
- declare function defineSoftwareApp<T extends Record<string, any>>(input?: DeepResolvableProperties<SoftwareApp & T>): DeepResolvableProperties<SoftwareApp & T>;
83
- declare function defineBookEdition<T extends Record<string, any>>(input?: DeepResolvableProperties<BookEdition & T>): 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, a3 as normalizeSchemaOrgInput } from './shared/schema-org.Cp6bpwL2.mjs';
2
- export { P as PluginSchemaOrg, S as SchemaOrgUnheadPlugin } from './shared/schema-org.Cp6bpwL2.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.BTlxVbwx.mjs';
3
2
  import { s as schemaAutoImports } from './shared/schema-org.CHbRCiep.mjs';
4
- import { defineComponent, ref, computed, unref, h, isRef } from 'vue';
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
  {
@@ -14,7 +13,6 @@ const schemaOrgAutoImports = [
14
13
  }
15
14
  ];
16
15
  const schemaOrgComponents = [
17
- "SchemaOrgDebug",
18
16
  "SchemaOrgArticle",
19
17
  "SchemaOrgBreadcrumb",
20
18
  "SchemaOrgComment",
@@ -142,114 +140,119 @@ const SchemaOrgSoftwareApp = /* @__PURE__ */ defineSchemaOrgComponent("SchemaOrg
142
140
  function provideResolver(input, resolver) {
143
141
  if (!input)
144
142
  input = {};
145
- const target = isRef(input) ? input.value : input;
146
- target._resolver = resolver;
147
- return input;
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 };
148
151
  }
149
152
  function defineAddress(input) {
150
- return provideResolver(input, "address");
153
+ return provideResolver(input, addressResolver);
151
154
  }
152
155
  function defineAggregateOffer(input) {
153
- return provideResolver(input, "aggregateOffer");
156
+ return provideResolver(input, aggregateOfferResolver);
154
157
  }
155
158
  function defineAggregateRating(input) {
156
- return provideResolver(input, "aggregateRating");
159
+ return provideResolver(input, aggregateRatingResolver);
157
160
  }
158
161
  function defineArticle(input) {
159
- return provideResolver(input, "article");
162
+ return provideResolver(input, articleResolver);
160
163
  }
161
164
  function defineBreadcrumb(input) {
162
- return provideResolver(input, "breadcrumb");
165
+ return provideResolver(input, breadcrumbResolver);
163
166
  }
164
167
  function defineComment(input) {
165
- return provideResolver(input, "comment");
168
+ return provideResolver(input, commentResolver);
166
169
  }
167
170
  function defineEvent(input) {
168
- return provideResolver(input, "event");
171
+ return provideResolver(input, eventResolver);
169
172
  }
170
173
  function defineFoodEstablishment(input) {
171
- return provideResolver(input, "foodEstablishment");
174
+ return provideResolver(input, foodEstablishmentResolver);
172
175
  }
173
176
  function defineVirtualLocation(input) {
174
- return provideResolver(input, "virtualLocation");
177
+ return provideResolver(input, virtualLocationResolver);
175
178
  }
176
179
  function definePlace(input) {
177
- return provideResolver(input, "place");
180
+ return provideResolver(input, placeResolver);
178
181
  }
179
182
  function defineHowTo(input) {
180
- return provideResolver(input, "howTo");
183
+ return provideResolver(input, howToResolver);
181
184
  }
182
185
  function defineHowToStep(input) {
183
- return provideResolver(input, "howToStep");
186
+ return provideResolver(input, howToStepResolver);
184
187
  }
185
188
  function defineImage(input) {
186
- return provideResolver(input, "image");
189
+ return provideResolver(input, imageResolver);
187
190
  }
188
191
  function defineJobPosting(input) {
189
- return provideResolver(input, "jobPosting");
192
+ return provideResolver(input, jobPostingResolver);
190
193
  }
191
194
  function defineLocalBusiness(input) {
192
- return provideResolver(input, "localBusiness");
195
+ return provideResolver(input, localBusinessResolver);
193
196
  }
194
197
  function defineOffer(input) {
195
- return provideResolver(input, "offer");
198
+ return provideResolver(input, offerResolver);
196
199
  }
197
200
  function defineOpeningHours(input) {
198
- return provideResolver(input, "openingHours");
201
+ return provideResolver(input, openingHoursResolver);
199
202
  }
200
203
  function defineOrganization(input) {
201
- return provideResolver(input, "organization");
204
+ return provideResolver(input, organizationResolver);
202
205
  }
203
206
  function definePerson(input) {
204
- return provideResolver(input, "person");
207
+ return provideResolver(input, personResolver);
205
208
  }
206
209
  function defineProduct(input) {
207
- return provideResolver(input, "product");
210
+ return provideResolver(input, productResolver);
208
211
  }
209
212
  function defineQuestion(input) {
210
- return provideResolver(input, "question");
213
+ return provideResolver(input, questionResolver);
211
214
  }
212
215
  function defineRecipe(input) {
213
- return provideResolver(input, "recipe");
216
+ return provideResolver(input, recipeResolver);
214
217
  }
215
218
  function defineReview(input) {
216
- return provideResolver(input, "review");
219
+ return provideResolver(input, reviewResolver);
217
220
  }
218
221
  function defineVideo(input) {
219
- return provideResolver(input, "video");
222
+ return provideResolver(input, videoResolver);
220
223
  }
221
224
  function defineWebPage(input) {
222
- return provideResolver(input, "webPage");
225
+ return provideResolver(input, webPageResolver);
223
226
  }
224
227
  function defineWebSite(input) {
225
- return provideResolver(input, "webSite");
228
+ return provideResolver(input, webSiteResolver);
226
229
  }
227
230
  function defineBook(input) {
228
- return provideResolver(input, "book");
231
+ return provideResolver(input, bookResolver);
229
232
  }
230
233
  function defineCourse(input) {
231
- return provideResolver(input, "course");
234
+ return provideResolver(input, courseResolver);
232
235
  }
233
236
  function defineItemList(input) {
234
- return provideResolver(input, "itemList");
237
+ return provideResolver(input, itemListResolver);
235
238
  }
236
239
  function defineListItem(input) {
237
- return provideResolver(input, "listItem");
240
+ return provideResolver(input, listItemResolver);
238
241
  }
239
242
  function defineMovie(input) {
240
- return provideResolver(input, "movie");
243
+ return provideResolver(input, movieResolver);
241
244
  }
242
245
  function defineSearchAction(input) {
243
- return provideResolver(input, "searchAction");
246
+ return provideResolver(input, searchActionResolver);
244
247
  }
245
248
  function defineReadAction(input) {
246
- return provideResolver(input, "readAction");
249
+ return provideResolver(input, readActionResolver);
247
250
  }
248
251
  function defineSoftwareApp(input) {
249
- return provideResolver(input, "softwareApp");
252
+ return provideResolver(input, softwareAppResolver);
250
253
  }
251
254
  function defineBookEdition(input) {
252
- return provideResolver(input, "bookEdition");
255
+ return provideResolver(input, bookEditionResolver);
253
256
  }
254
257
  function useSchemaOrg(input = [], options = {}) {
255
258
  const unhead = options.head || injectHead();
@@ -260,4 +263,4 @@ function useSchemaOrg(input = [], options = {}) {
260
263
  return entry;
261
264
  }
262
265
 
263
- 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": "3.0.0-beta.1",
4
+ "version": "3.0.0-beta.11",
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/solid-js": "3.0.0-beta.1",
75
- "@unhead/react": "3.0.0-beta.1",
76
- "@unhead/vue": "3.0.0-beta.1",
77
- "@unhead/svelte": "3.0.0-beta.1"
74
+ "@unhead/react": "^3.0.0-beta.11",
75
+ "@unhead/solid-js": "^3.0.0-beta.11",
76
+ "@unhead/svelte": "^3.0.0-beta.11",
77
+ "@unhead/vue": "^3.0.0-beta.11"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "@unhead/react": {
@@ -91,16 +91,16 @@
91
91
  }
92
92
  },
93
93
  "dependencies": {
94
- "ufo": "^1.6.1",
95
- "unhead": "3.0.0-beta.1"
94
+ "ufo": "^1.6.2",
95
+ "unhead": "3.0.0-beta.11"
96
96
  },
97
97
  "devDependencies": {
98
98
  "unplugin-vue-components": "^30.0.0",
99
- "@unhead/svelte": "3.0.0-beta.1",
100
- "@unhead/react": "3.0.0-beta.1",
101
- "@unhead/vue": "3.0.0-beta.1",
102
- "@unhead/solid-js": "3.0.0-beta.1",
103
- "unhead": "3.0.0-beta.1"
99
+ "@unhead/react": "3.0.0-beta.11",
100
+ "@unhead/solid-js": "3.0.0-beta.11",
101
+ "unhead": "3.0.0-beta.11",
102
+ "@unhead/vue": "3.0.0-beta.11",
103
+ "@unhead/svelte": "3.0.0-beta.11"
104
104
  },
105
105
  "build": {
106
106
  "external": [
@@ -1,23 +0,0 @@
1
- import { d as defineSchemaOrgResolver, e as resolveRelation, a6 as setIfEmpty, ac as asArray } from '../shared/schema-org.Cp6bpwL2.mjs';
2
- import { offerResolver } from './index23.mjs';
3
- import 'unhead/plugins';
4
- import 'unhead/utils';
5
- import 'ufo';
6
- import '../shared/schema-org.Dg61qWpa.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 };
@@ -1,63 +0,0 @@
1
- import { withBase } from 'ufo';
2
- import { d as defineSchemaOrgResolver, a9 as IdentityId, a6 as setIfEmpty, a7 as idReference, e as resolveRelation, ab as resolvableDateToDate, a8 as resolvableDateToIso } from '../shared/schema-org.Cp6bpwL2.mjs';
3
- import { offerResolver } from './index23.mjs';
4
- import { p as personResolver, o as organizationResolver } from './index3.mjs';
5
- import { placeResolver } from './index8.mjs';
6
- import { virtualLocationResolver } from './index9.mjs';
7
- import 'unhead/plugins';
8
- import 'unhead/utils';
9
- import '../shared/schema-org.Dg61qWpa.mjs';
10
- import './index16.mjs';
11
- import './index28.mjs';
12
- import './index40.mjs';
13
- import './index39.mjs';
14
-
15
- const PrimaryEventId = "#event";
16
- const eventResolver = defineSchemaOrgResolver({
17
- defaults: {
18
- "@type": "Event"
19
- },
20
- inheritMeta: [
21
- "inLanguage",
22
- "description",
23
- "image",
24
- { meta: "title", key: "name" }
25
- ],
26
- idPrefix: ["url", PrimaryEventId],
27
- resolve(node, ctx) {
28
- if (node.location) {
29
- const isVirtual = node.location === "string" || node.location?.url !== "undefined";
30
- node.location = resolveRelation(node.location, ctx, isVirtual ? virtualLocationResolver : placeResolver);
31
- }
32
- node.performer = resolveRelation(node.performer, ctx, personResolver, {
33
- root: true
34
- });
35
- node.organizer = resolveRelation(node.organizer, ctx, organizationResolver, {
36
- root: true
37
- });
38
- node.offers = resolveRelation(node.offers, ctx, offerResolver);
39
- if (node.eventAttendanceMode)
40
- node.eventAttendanceMode = withBase(node.eventAttendanceMode, "https://schema.org/");
41
- if (node.eventStatus)
42
- node.eventStatus = withBase(node.eventStatus, "https://schema.org/");
43
- const isOnline = node.eventStatus === "https://schema.org/EventMovedOnline";
44
- const dates = ["startDate", "previousStartDate", "endDate"];
45
- dates.forEach((date) => {
46
- if (!isOnline) {
47
- if (node[date] instanceof Date && node[date].getHours() === 0 && node[date].getMinutes() === 0)
48
- node[date] = resolvableDateToDate(node[date]);
49
- } else {
50
- node[date] = resolvableDateToIso(node[date]);
51
- }
52
- });
53
- setIfEmpty(node, "endDate", node.startDate);
54
- return node;
55
- },
56
- resolveRootNode(node, { find }) {
57
- const identity = find(IdentityId);
58
- if (identity)
59
- setIfEmpty(node, "organizer", idReference(identity));
60
- }
61
- });
62
-
63
- export { PrimaryEventId, eventResolver, placeResolver, virtualLocationResolver };
@@ -1,35 +0,0 @@
1
- import { d as defineSchemaOrgResolver, a9 as IdentityId, aa as resolveDefaultType, e as resolveRelation, a as resolveNode } from '../shared/schema-org.Cp6bpwL2.mjs';
2
- import { localBusinessResolver } from './index17.mjs';
3
- import { r as ratingResolver } from '../shared/schema-org.40UJYB57.mjs';
4
- import 'unhead/plugins';
5
- import 'unhead/utils';
6
- import 'ufo';
7
- import './index24.mjs';
8
- import './index3.mjs';
9
- import './index16.mjs';
10
- import './index28.mjs';
11
- import './index40.mjs';
12
- import './index39.mjs';
13
-
14
- const foodEstablishmentResolver = defineSchemaOrgResolver({
15
- defaults: {
16
- "@type": ["Organization", "LocalBusiness", "FoodEstablishment"]
17
- },
18
- inheritMeta: [
19
- { key: "url", meta: "host" },
20
- { key: "currenciesAccepted", meta: "currency" }
21
- ],
22
- idPrefix: ["host", IdentityId],
23
- resolve(node, ctx) {
24
- resolveDefaultType(node, ["Organization", "LocalBusiness", "FoodEstablishment"]);
25
- node.starRating = resolveRelation(node.starRating, ctx, ratingResolver);
26
- node = resolveNode(node, ctx, localBusinessResolver);
27
- return node;
28
- },
29
- resolveRootNode(node, ctx) {
30
- localBusinessResolver.resolveRootNode(node, ctx);
31
- return node;
32
- }
33
- });
34
-
35
- export { foodEstablishmentResolver };
@@ -1,48 +0,0 @@
1
- import { d as defineSchemaOrgResolver, ad as resolveWithBase, e as resolveRelation, a5 as imageResolver } from '../shared/schema-org.Cp6bpwL2.mjs';
2
-
3
- const howToStepDirectionResolver = defineSchemaOrgResolver({
4
- cast(node) {
5
- if (typeof node === "string") {
6
- return {
7
- text: node
8
- };
9
- }
10
- return node;
11
- },
12
- defaults: {
13
- "@type": "HowToDirection"
14
- }
15
- });
16
-
17
- const howToStepResolver = defineSchemaOrgResolver({
18
- cast(node) {
19
- if (typeof node === "string") {
20
- return {
21
- text: node
22
- };
23
- }
24
- return node;
25
- },
26
- defaults: {
27
- "@type": "HowToStep"
28
- },
29
- resolve(step, ctx) {
30
- if (step.url)
31
- step.url = resolveWithBase(ctx.meta.url, step.url);
32
- if (step.image) {
33
- step.image = resolveRelation(step.image, ctx, imageResolver, {
34
- root: true
35
- });
36
- }
37
- if (step.itemListElement)
38
- step.itemListElement = resolveRelation(step.itemListElement, ctx, howToStepDirectionResolver);
39
- return step;
40
- }
41
- });
42
-
43
- const index = {
44
- __proto__: null,
45
- howToStepResolver: howToStepResolver
46
- };
47
-
48
- export { howToStepDirectionResolver as a, howToStepResolver as h, index as i };