@unhead/schema-org 1.8.3 → 1.8.4

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const plugin = require('./shared/schema-org.e1b939f4.cjs');
3
+ const plugin = require('./shared/schema-org.5d94f209.cjs');
4
4
  const unhead = require('unhead');
5
5
  require('@unhead/shared');
6
6
  require('ufo');
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as Thing, S as SchemaOrgNodeDefinition, a as SchemaOrgNode, M as MetaInput, R as ResolvedMeta, b as SchemaOrgGraph, A as Arrayable, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.248e802f.cjs';
2
- export { z as AggregateOfferSimple, F as AggregateRatingSimple, K as ArticleSimple, Y as BookEditionSimple, X as BookSimple, a0 as BreadcrumbSimple, a3 as CommentSimple, a5 as CourseSimple, a7 as EventSimple, aj as HowToDirection, af as HowToId, ae as HowToSimple, ah as HowToStepSimple, bj as Id, bi as IdReference, bd as Identity, an as ImageSimple, al as ItemListSimple, ap as JobPostingSimple, ar as ListItemSimple, at as LocalBusinessSimple, av as MovieSimple, bb as NodeRelation, bc as NodeRelations, aQ as NutritionInformation, ax as OfferSimple, az as OpeningHoursSimple, bf as OptionalSchemaOrgPrefix, aB as OrganizationSimple, aD as PersonSimple, ac as PlaceSimple, b9 as PluginSchemaOrg, b7 as PluginSchemaOrgOptions, aF as PostalAddressSimple, N as PrimaryArticleId, _ as PrimaryBookId, a1 as PrimaryBreadcrumbId, a8 as PrimaryEventId, a_ as PrimaryWebPageId, b3 as PrimaryWebSiteId, aI as ProductId, aH as ProductSimple, aK as QuestionSimple, aN as Rating, aM as RatingSimple, b0 as ReadActionInput, aR as RecipeId, aP as RecipeSimple, be as ResolvableDate, aV as ReviewSimple, ba as SchemaOrgUnheadPlugin, b5 as SearchActionInput, aT as SoftwareAppSimple, b8 as UnheadSchemaOrg, bg as UserConfig, aX as VideoSimple, aa as VirtualLocationSimple, aZ as WebPageSimple, b2 as WebSiteSimple, bh as WithResolver, aG as addressResolver, D as aggregateOfferResolver, G as aggregateRatingResolver, U as articleResolver, Z as bookEditionResolver, $ as bookResolver, a2 as breadcrumbResolver, a4 as commentResolver, a6 as courseResolver, y as createSchemaOrgGraph, a9 as eventResolver, ag as howToResolver, ak as howToStepDirectionResolver, ai as howToStepResolver, ao as imageResolver, am as itemListResolver, aq as jobPostingResolver, as as listItemResolver, au as localBusinessResolver, aw as movieResolver, ay as offerResolver, aA as openingHoursResolver, aC as organizationResolver, aE as personResolver, ad as placeResolver, aJ as productResolver, aL as questionResolver, aO as ratingResolver, b1 as readActionResolver, aS as recipeResolver, aW as reviewResolver, b6 as searchActionResolver, aU as softwareAppResolver, aY as videoResolver, ab as virtualLocationResolver, a$ as webPageResolver, b4 as webSiteResolver } from './shared/schema-org.248e802f.cjs';
1
+ import { T as Thing, S as SchemaOrgNodeDefinition, a as SchemaOrgNode, M as MetaInput, R as ResolvedMeta, b as SchemaOrgGraph, A as Arrayable, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.bc5190e8.cjs';
2
+ export { z as AggregateOfferSimple, F as AggregateRatingSimple, K as ArticleSimple, Y as BookEditionSimple, X as BookSimple, a0 as BreadcrumbSimple, a3 as CommentSimple, a5 as CourseSimple, a7 as EventSimple, aj as HowToDirection, af as HowToId, ae as HowToSimple, ah as HowToStepSimple, bj as Id, bi as IdReference, bd as Identity, an as ImageSimple, al as ItemListSimple, ap as JobPostingSimple, ar as ListItemSimple, at as LocalBusinessSimple, av as MovieSimple, bb as NodeRelation, bc as NodeRelations, aQ as NutritionInformation, ax as OfferSimple, az as OpeningHoursSimple, bf as OptionalSchemaOrgPrefix, aB as OrganizationSimple, aD as PersonSimple, ac as PlaceSimple, b9 as PluginSchemaOrg, b7 as PluginSchemaOrgOptions, aF as PostalAddressSimple, N as PrimaryArticleId, _ as PrimaryBookId, a1 as PrimaryBreadcrumbId, a8 as PrimaryEventId, a_ as PrimaryWebPageId, b3 as PrimaryWebSiteId, aI as ProductId, aH as ProductSimple, aK as QuestionSimple, aN as Rating, aM as RatingSimple, b0 as ReadActionInput, aR as RecipeId, aP as RecipeSimple, be as ResolvableDate, aV as ReviewSimple, ba as SchemaOrgUnheadPlugin, b5 as SearchActionInput, aT as SoftwareAppSimple, b8 as UnheadSchemaOrg, bg as UserConfig, aX as VideoSimple, aa as VirtualLocationSimple, aZ as WebPageSimple, b2 as WebSiteSimple, bh as WithResolver, aG as addressResolver, D as aggregateOfferResolver, G as aggregateRatingResolver, U as articleResolver, Z as bookEditionResolver, $ as bookResolver, a2 as breadcrumbResolver, a4 as commentResolver, a6 as courseResolver, y as createSchemaOrgGraph, a9 as eventResolver, ag as howToResolver, ak as howToStepDirectionResolver, ai as howToStepResolver, ao as imageResolver, am as itemListResolver, aq as jobPostingResolver, as as listItemResolver, au as localBusinessResolver, aw as movieResolver, ay as offerResolver, aA as openingHoursResolver, aC as organizationResolver, aE as personResolver, ad as placeResolver, aJ as productResolver, aL as questionResolver, aO as ratingResolver, b1 as readActionResolver, aS as recipeResolver, aW as reviewResolver, b6 as searchActionResolver, aU as softwareAppResolver, aY as videoResolver, ab as virtualLocationResolver, a$ as webPageResolver, b4 as webSiteResolver } from './shared/schema-org.bc5190e8.cjs';
3
3
  import * as _unhead_schema from '@unhead/schema';
4
4
  import * as unhead from 'unhead';
5
5
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as Thing, S as SchemaOrgNodeDefinition, a as SchemaOrgNode, M as MetaInput, R as ResolvedMeta, b as SchemaOrgGraph, A as Arrayable, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.248e802f.mjs';
2
- export { z as AggregateOfferSimple, F as AggregateRatingSimple, K as ArticleSimple, Y as BookEditionSimple, X as BookSimple, a0 as BreadcrumbSimple, a3 as CommentSimple, a5 as CourseSimple, a7 as EventSimple, aj as HowToDirection, af as HowToId, ae as HowToSimple, ah as HowToStepSimple, bj as Id, bi as IdReference, bd as Identity, an as ImageSimple, al as ItemListSimple, ap as JobPostingSimple, ar as ListItemSimple, at as LocalBusinessSimple, av as MovieSimple, bb as NodeRelation, bc as NodeRelations, aQ as NutritionInformation, ax as OfferSimple, az as OpeningHoursSimple, bf as OptionalSchemaOrgPrefix, aB as OrganizationSimple, aD as PersonSimple, ac as PlaceSimple, b9 as PluginSchemaOrg, b7 as PluginSchemaOrgOptions, aF as PostalAddressSimple, N as PrimaryArticleId, _ as PrimaryBookId, a1 as PrimaryBreadcrumbId, a8 as PrimaryEventId, a_ as PrimaryWebPageId, b3 as PrimaryWebSiteId, aI as ProductId, aH as ProductSimple, aK as QuestionSimple, aN as Rating, aM as RatingSimple, b0 as ReadActionInput, aR as RecipeId, aP as RecipeSimple, be as ResolvableDate, aV as ReviewSimple, ba as SchemaOrgUnheadPlugin, b5 as SearchActionInput, aT as SoftwareAppSimple, b8 as UnheadSchemaOrg, bg as UserConfig, aX as VideoSimple, aa as VirtualLocationSimple, aZ as WebPageSimple, b2 as WebSiteSimple, bh as WithResolver, aG as addressResolver, D as aggregateOfferResolver, G as aggregateRatingResolver, U as articleResolver, Z as bookEditionResolver, $ as bookResolver, a2 as breadcrumbResolver, a4 as commentResolver, a6 as courseResolver, y as createSchemaOrgGraph, a9 as eventResolver, ag as howToResolver, ak as howToStepDirectionResolver, ai as howToStepResolver, ao as imageResolver, am as itemListResolver, aq as jobPostingResolver, as as listItemResolver, au as localBusinessResolver, aw as movieResolver, ay as offerResolver, aA as openingHoursResolver, aC as organizationResolver, aE as personResolver, ad as placeResolver, aJ as productResolver, aL as questionResolver, aO as ratingResolver, b1 as readActionResolver, aS as recipeResolver, aW as reviewResolver, b6 as searchActionResolver, aU as softwareAppResolver, aY as videoResolver, ab as virtualLocationResolver, a$ as webPageResolver, b4 as webSiteResolver } from './shared/schema-org.248e802f.mjs';
1
+ import { T as Thing, S as SchemaOrgNodeDefinition, a as SchemaOrgNode, M as MetaInput, R as ResolvedMeta, b as SchemaOrgGraph, A as Arrayable, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.bc5190e8.mjs';
2
+ export { z as AggregateOfferSimple, F as AggregateRatingSimple, K as ArticleSimple, Y as BookEditionSimple, X as BookSimple, a0 as BreadcrumbSimple, a3 as CommentSimple, a5 as CourseSimple, a7 as EventSimple, aj as HowToDirection, af as HowToId, ae as HowToSimple, ah as HowToStepSimple, bj as Id, bi as IdReference, bd as Identity, an as ImageSimple, al as ItemListSimple, ap as JobPostingSimple, ar as ListItemSimple, at as LocalBusinessSimple, av as MovieSimple, bb as NodeRelation, bc as NodeRelations, aQ as NutritionInformation, ax as OfferSimple, az as OpeningHoursSimple, bf as OptionalSchemaOrgPrefix, aB as OrganizationSimple, aD as PersonSimple, ac as PlaceSimple, b9 as PluginSchemaOrg, b7 as PluginSchemaOrgOptions, aF as PostalAddressSimple, N as PrimaryArticleId, _ as PrimaryBookId, a1 as PrimaryBreadcrumbId, a8 as PrimaryEventId, a_ as PrimaryWebPageId, b3 as PrimaryWebSiteId, aI as ProductId, aH as ProductSimple, aK as QuestionSimple, aN as Rating, aM as RatingSimple, b0 as ReadActionInput, aR as RecipeId, aP as RecipeSimple, be as ResolvableDate, aV as ReviewSimple, ba as SchemaOrgUnheadPlugin, b5 as SearchActionInput, aT as SoftwareAppSimple, b8 as UnheadSchemaOrg, bg as UserConfig, aX as VideoSimple, aa as VirtualLocationSimple, aZ as WebPageSimple, b2 as WebSiteSimple, bh as WithResolver, aG as addressResolver, D as aggregateOfferResolver, G as aggregateRatingResolver, U as articleResolver, Z as bookEditionResolver, $ as bookResolver, a2 as breadcrumbResolver, a4 as commentResolver, a6 as courseResolver, y as createSchemaOrgGraph, a9 as eventResolver, ag as howToResolver, ak as howToStepDirectionResolver, ai as howToStepResolver, ao as imageResolver, am as itemListResolver, aq as jobPostingResolver, as as listItemResolver, au as localBusinessResolver, aw as movieResolver, ay as offerResolver, aA as openingHoursResolver, aC as organizationResolver, aE as personResolver, ad as placeResolver, aJ as productResolver, aL as questionResolver, aO as ratingResolver, b1 as readActionResolver, aS as recipeResolver, aW as reviewResolver, b6 as searchActionResolver, aU as softwareAppResolver, aY as videoResolver, ab as virtualLocationResolver, a$ as webPageResolver, b4 as webSiteResolver } from './shared/schema-org.bc5190e8.mjs';
3
3
  import * as _unhead_schema from '@unhead/schema';
4
4
  import * as unhead from 'unhead';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as Thing, S as SchemaOrgNodeDefinition, a as SchemaOrgNode, M as MetaInput, R as ResolvedMeta, b as SchemaOrgGraph, A as Arrayable, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.248e802f.js';
2
- export { z as AggregateOfferSimple, F as AggregateRatingSimple, K as ArticleSimple, Y as BookEditionSimple, X as BookSimple, a0 as BreadcrumbSimple, a3 as CommentSimple, a5 as CourseSimple, a7 as EventSimple, aj as HowToDirection, af as HowToId, ae as HowToSimple, ah as HowToStepSimple, bj as Id, bi as IdReference, bd as Identity, an as ImageSimple, al as ItemListSimple, ap as JobPostingSimple, ar as ListItemSimple, at as LocalBusinessSimple, av as MovieSimple, bb as NodeRelation, bc as NodeRelations, aQ as NutritionInformation, ax as OfferSimple, az as OpeningHoursSimple, bf as OptionalSchemaOrgPrefix, aB as OrganizationSimple, aD as PersonSimple, ac as PlaceSimple, b9 as PluginSchemaOrg, b7 as PluginSchemaOrgOptions, aF as PostalAddressSimple, N as PrimaryArticleId, _ as PrimaryBookId, a1 as PrimaryBreadcrumbId, a8 as PrimaryEventId, a_ as PrimaryWebPageId, b3 as PrimaryWebSiteId, aI as ProductId, aH as ProductSimple, aK as QuestionSimple, aN as Rating, aM as RatingSimple, b0 as ReadActionInput, aR as RecipeId, aP as RecipeSimple, be as ResolvableDate, aV as ReviewSimple, ba as SchemaOrgUnheadPlugin, b5 as SearchActionInput, aT as SoftwareAppSimple, b8 as UnheadSchemaOrg, bg as UserConfig, aX as VideoSimple, aa as VirtualLocationSimple, aZ as WebPageSimple, b2 as WebSiteSimple, bh as WithResolver, aG as addressResolver, D as aggregateOfferResolver, G as aggregateRatingResolver, U as articleResolver, Z as bookEditionResolver, $ as bookResolver, a2 as breadcrumbResolver, a4 as commentResolver, a6 as courseResolver, y as createSchemaOrgGraph, a9 as eventResolver, ag as howToResolver, ak as howToStepDirectionResolver, ai as howToStepResolver, ao as imageResolver, am as itemListResolver, aq as jobPostingResolver, as as listItemResolver, au as localBusinessResolver, aw as movieResolver, ay as offerResolver, aA as openingHoursResolver, aC as organizationResolver, aE as personResolver, ad as placeResolver, aJ as productResolver, aL as questionResolver, aO as ratingResolver, b1 as readActionResolver, aS as recipeResolver, aW as reviewResolver, b6 as searchActionResolver, aU as softwareAppResolver, aY as videoResolver, ab as virtualLocationResolver, a$ as webPageResolver, b4 as webSiteResolver } from './shared/schema-org.248e802f.js';
1
+ import { T as Thing, S as SchemaOrgNodeDefinition, a as SchemaOrgNode, M as MetaInput, R as ResolvedMeta, b as SchemaOrgGraph, A as Arrayable, P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.bc5190e8.js';
2
+ export { z as AggregateOfferSimple, F as AggregateRatingSimple, K as ArticleSimple, Y as BookEditionSimple, X as BookSimple, a0 as BreadcrumbSimple, a3 as CommentSimple, a5 as CourseSimple, a7 as EventSimple, aj as HowToDirection, af as HowToId, ae as HowToSimple, ah as HowToStepSimple, bj as Id, bi as IdReference, bd as Identity, an as ImageSimple, al as ItemListSimple, ap as JobPostingSimple, ar as ListItemSimple, at as LocalBusinessSimple, av as MovieSimple, bb as NodeRelation, bc as NodeRelations, aQ as NutritionInformation, ax as OfferSimple, az as OpeningHoursSimple, bf as OptionalSchemaOrgPrefix, aB as OrganizationSimple, aD as PersonSimple, ac as PlaceSimple, b9 as PluginSchemaOrg, b7 as PluginSchemaOrgOptions, aF as PostalAddressSimple, N as PrimaryArticleId, _ as PrimaryBookId, a1 as PrimaryBreadcrumbId, a8 as PrimaryEventId, a_ as PrimaryWebPageId, b3 as PrimaryWebSiteId, aI as ProductId, aH as ProductSimple, aK as QuestionSimple, aN as Rating, aM as RatingSimple, b0 as ReadActionInput, aR as RecipeId, aP as RecipeSimple, be as ResolvableDate, aV as ReviewSimple, ba as SchemaOrgUnheadPlugin, b5 as SearchActionInput, aT as SoftwareAppSimple, b8 as UnheadSchemaOrg, bg as UserConfig, aX as VideoSimple, aa as VirtualLocationSimple, aZ as WebPageSimple, b2 as WebSiteSimple, bh as WithResolver, aG as addressResolver, D as aggregateOfferResolver, G as aggregateRatingResolver, U as articleResolver, Z as bookEditionResolver, $ as bookResolver, a2 as breadcrumbResolver, a4 as commentResolver, a6 as courseResolver, y as createSchemaOrgGraph, a9 as eventResolver, ag as howToResolver, ak as howToStepDirectionResolver, ai as howToStepResolver, ao as imageResolver, am as itemListResolver, aq as jobPostingResolver, as as listItemResolver, au as localBusinessResolver, aw as movieResolver, ay as offerResolver, aA as openingHoursResolver, aC as organizationResolver, aE as personResolver, ad as placeResolver, aJ as productResolver, aL as questionResolver, aO as ratingResolver, b1 as readActionResolver, aS as recipeResolver, aW as reviewResolver, b6 as searchActionResolver, aU as softwareAppResolver, aY as videoResolver, ab as virtualLocationResolver, a$ as webPageResolver, b4 as webSiteResolver } from './shared/schema-org.bc5190e8.js';
3
3
  import * as _unhead_schema from '@unhead/schema';
4
4
  import * as unhead from 'unhead';
5
5
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.3f27883f.mjs';
2
- export { H as HowToId, a0 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, W as PrimaryWebPageId, Z as PrimaryWebSiteId, L as ProductId, R as RecipeId, a1 as SchemaOrgUnheadPlugin, K as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, a as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as howToResolver, y as howToStepDirectionResolver, x as howToStepResolver, A as imageResolver, z as itemListResolver, B as jobPostingResolver, C as listItemResolver, D as localBusinessResolver, E as movieResolver, n as normaliseNodes, F as offerResolver, G as openingHoursResolver, I as organizationResolver, J as personResolver, u as placeResolver, M as productResolver, N as questionResolver, O as ratingResolver, Y as readActionResolver, Q as recipeResolver, r as resolveMeta, b as resolveNode, e as resolveNodeId, f as resolveRelation, T as reviewResolver, $ as searchActionResolver, S as softwareAppResolver, V as videoResolver, v as virtualLocationResolver, X as webPageResolver, _ as webSiteResolver } from './shared/schema-org.3f27883f.mjs';
1
+ import { U as UnheadSchemaOrg } from './shared/schema-org.b696cb4d.mjs';
2
+ export { H as HowToId, a0 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, W as PrimaryWebPageId, Z as PrimaryWebSiteId, L as ProductId, R as RecipeId, a1 as SchemaOrgUnheadPlugin, K as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, a as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as howToResolver, y as howToStepDirectionResolver, x as howToStepResolver, A as imageResolver, z as itemListResolver, B as jobPostingResolver, C as listItemResolver, D as localBusinessResolver, E as movieResolver, n as normaliseNodes, F as offerResolver, G as openingHoursResolver, I as organizationResolver, J as personResolver, u as placeResolver, M as productResolver, N as questionResolver, O as ratingResolver, Y as readActionResolver, Q as recipeResolver, r as resolveMeta, b as resolveNode, e as resolveNodeId, f as resolveRelation, T as reviewResolver, $ as searchActionResolver, S as softwareAppResolver, V as videoResolver, v as virtualLocationResolver, X as webPageResolver, _ as webSiteResolver } from './shared/schema-org.b696cb4d.mjs';
3
3
  import { getActiveHead, useHead } from 'unhead';
4
4
  import '@unhead/shared';
5
5
  import 'ufo';
@@ -296,17 +296,27 @@ const organizationResolver = defineSchemaOrgResolver({
296
296
  const isIdentity = resolveAsGraphKey(node["@id"]) === IdentityId;
297
297
  const webPage = ctx.find(PrimaryWebPageId);
298
298
  if (node.logo) {
299
- const logoNode = resolveRelation(node.logo, ctx, imageResolver, {
300
- root: true,
301
- afterResolve(logo) {
302
- if (isIdentity)
303
- logo["@id"] = prefixId(ctx.meta.host, "#logo");
304
- setIfEmpty(logo, "caption", node.name);
305
- }
306
- });
307
- node.logo = resolveRelation(node.logo, ctx, imageResolver, { root: false }).url;
308
- if (webPage && logoNode)
309
- setIfEmpty(webPage, "primaryImageOfPage", idReference(logoNode));
299
+ if (!ctx.find("#organization")) {
300
+ const logoNode = resolveRelation(node.logo, ctx, imageResolver, {
301
+ root: true,
302
+ afterResolve(logo) {
303
+ if (isIdentity)
304
+ logo["@id"] = prefixId(ctx.meta.host, "#logo");
305
+ setIfEmpty(logo, "caption", node.name);
306
+ }
307
+ });
308
+ if (webPage && logoNode)
309
+ setIfEmpty(webPage, "primaryImageOfPage", idReference(logoNode));
310
+ ctx.nodes.push({
311
+ ...node,
312
+ // needs to be a URL
313
+ "logo": resolveRelation(node.logo, ctx, imageResolver, { root: false }).url,
314
+ "_priority": -1,
315
+ "@id": "#organization"
316
+ // avoid the id so nothing can link to it
317
+ });
318
+ }
319
+ delete node.logo;
310
320
  }
311
321
  if (isIdentity && webPage)
312
322
  setIfEmpty(webPage, "about", idReference(node));
@@ -747,6 +757,7 @@ const jobPostingResolver = defineSchemaOrgResolver({
747
757
  defaults: {
748
758
  "@type": "JobPosting"
749
759
  },
760
+ idPrefix: ["url", "#job-posting"],
750
761
  resolve(node, ctx) {
751
762
  node.datePosted = resolvableDateToIso(node.datePosted);
752
763
  node.hiringOrganization = resolveRelation(node.hiringOrganization, ctx, organizationResolver);
@@ -754,6 +765,15 @@ const jobPostingResolver = defineSchemaOrgResolver({
754
765
  node.baseSalary = resolveRelation(node.baseSalary, ctx, monetaryAmountResolver);
755
766
  node.validThrough = resolvableDateToIso(node.validThrough);
756
767
  return node;
768
+ },
769
+ resolveRootNode(jobPosting, { find }) {
770
+ const webPage = find(PrimaryWebPageId);
771
+ const identity = find(IdentityId);
772
+ if (identity)
773
+ setIfEmpty(jobPosting, "hiringOrganization", idReference(identity));
774
+ if (webPage)
775
+ setIfEmpty(jobPosting, "mainEntityOfPage", idReference(webPage));
776
+ return jobPosting;
757
777
  }
758
778
  });
759
779
 
@@ -1801,11 +1821,8 @@ function resolveRelation(input, ctx, fallbackResolver, options = {}) {
1801
1821
  return ids;
1802
1822
  }
1803
1823
 
1804
- function isObject(value) {
1805
- return value !== null && typeof value === "object";
1806
- }
1807
1824
  function _defu(baseObject, defaults, namespace = ".", merger) {
1808
- if (!isObject(defaults)) {
1825
+ if (!_isPlainObject(defaults)) {
1809
1826
  return _defu(baseObject, {}, namespace, merger);
1810
1827
  }
1811
1828
  const object = Object.assign({}, defaults);
@@ -1822,7 +1839,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
1822
1839
  }
1823
1840
  if (Array.isArray(value) && Array.isArray(object[key])) {
1824
1841
  object[key] = [...value, ...object[key]];
1825
- } else if (isObject(value) && isObject(object[key])) {
1842
+ } else if (_isPlainObject(value) && _isPlainObject(object[key])) {
1826
1843
  object[key] = _defu(
1827
1844
  value,
1828
1845
  object[key],
@@ -1835,6 +1852,13 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
1835
1852
  }
1836
1853
  return object;
1837
1854
  }
1855
+ function _isPlainObject(value) {
1856
+ if (value === null || typeof value !== "object") {
1857
+ return false;
1858
+ }
1859
+ const prototype = Object.getPrototypeOf(value);
1860
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
1861
+ }
1838
1862
  function createDefu(merger) {
1839
1863
  return (...arguments_) => (
1840
1864
  // eslint-disable-next-line unicorn/no-array-reduce
@@ -1972,7 +1996,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
1972
1996
  };
1973
1997
  graph.push(newNode);
1974
1998
  }
1975
- tag.tagPosition = config.tagPosition === "head" ? "head" : "bodyClose";
1999
+ tag.tagPosition = tag.tagPosition || config.tagPosition === "head" ? "head" : "bodyClose";
1976
2000
  }
1977
2001
  if (tag.tag === "htmlAttrs" && tag.props.lang) {
1978
2002
  resolvedMeta.inLanguage = tag.props.lang;
@@ -294,17 +294,27 @@ const organizationResolver = defineSchemaOrgResolver({
294
294
  const isIdentity = resolveAsGraphKey(node["@id"]) === IdentityId;
295
295
  const webPage = ctx.find(PrimaryWebPageId);
296
296
  if (node.logo) {
297
- const logoNode = resolveRelation(node.logo, ctx, imageResolver, {
298
- root: true,
299
- afterResolve(logo) {
300
- if (isIdentity)
301
- logo["@id"] = prefixId(ctx.meta.host, "#logo");
302
- setIfEmpty(logo, "caption", node.name);
303
- }
304
- });
305
- node.logo = resolveRelation(node.logo, ctx, imageResolver, { root: false }).url;
306
- if (webPage && logoNode)
307
- setIfEmpty(webPage, "primaryImageOfPage", idReference(logoNode));
297
+ if (!ctx.find("#organization")) {
298
+ const logoNode = resolveRelation(node.logo, ctx, imageResolver, {
299
+ root: true,
300
+ afterResolve(logo) {
301
+ if (isIdentity)
302
+ logo["@id"] = prefixId(ctx.meta.host, "#logo");
303
+ setIfEmpty(logo, "caption", node.name);
304
+ }
305
+ });
306
+ if (webPage && logoNode)
307
+ setIfEmpty(webPage, "primaryImageOfPage", idReference(logoNode));
308
+ ctx.nodes.push({
309
+ ...node,
310
+ // needs to be a URL
311
+ "logo": resolveRelation(node.logo, ctx, imageResolver, { root: false }).url,
312
+ "_priority": -1,
313
+ "@id": "#organization"
314
+ // avoid the id so nothing can link to it
315
+ });
316
+ }
317
+ delete node.logo;
308
318
  }
309
319
  if (isIdentity && webPage)
310
320
  setIfEmpty(webPage, "about", idReference(node));
@@ -745,6 +755,7 @@ const jobPostingResolver = defineSchemaOrgResolver({
745
755
  defaults: {
746
756
  "@type": "JobPosting"
747
757
  },
758
+ idPrefix: ["url", "#job-posting"],
748
759
  resolve(node, ctx) {
749
760
  node.datePosted = resolvableDateToIso(node.datePosted);
750
761
  node.hiringOrganization = resolveRelation(node.hiringOrganization, ctx, organizationResolver);
@@ -752,6 +763,15 @@ const jobPostingResolver = defineSchemaOrgResolver({
752
763
  node.baseSalary = resolveRelation(node.baseSalary, ctx, monetaryAmountResolver);
753
764
  node.validThrough = resolvableDateToIso(node.validThrough);
754
765
  return node;
766
+ },
767
+ resolveRootNode(jobPosting, { find }) {
768
+ const webPage = find(PrimaryWebPageId);
769
+ const identity = find(IdentityId);
770
+ if (identity)
771
+ setIfEmpty(jobPosting, "hiringOrganization", idReference(identity));
772
+ if (webPage)
773
+ setIfEmpty(jobPosting, "mainEntityOfPage", idReference(webPage));
774
+ return jobPosting;
755
775
  }
756
776
  });
757
777
 
@@ -1799,11 +1819,8 @@ function resolveRelation(input, ctx, fallbackResolver, options = {}) {
1799
1819
  return ids;
1800
1820
  }
1801
1821
 
1802
- function isObject(value) {
1803
- return value !== null && typeof value === "object";
1804
- }
1805
1822
  function _defu(baseObject, defaults, namespace = ".", merger) {
1806
- if (!isObject(defaults)) {
1823
+ if (!_isPlainObject(defaults)) {
1807
1824
  return _defu(baseObject, {}, namespace, merger);
1808
1825
  }
1809
1826
  const object = Object.assign({}, defaults);
@@ -1820,7 +1837,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
1820
1837
  }
1821
1838
  if (Array.isArray(value) && Array.isArray(object[key])) {
1822
1839
  object[key] = [...value, ...object[key]];
1823
- } else if (isObject(value) && isObject(object[key])) {
1840
+ } else if (_isPlainObject(value) && _isPlainObject(object[key])) {
1824
1841
  object[key] = _defu(
1825
1842
  value,
1826
1843
  object[key],
@@ -1833,6 +1850,13 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
1833
1850
  }
1834
1851
  return object;
1835
1852
  }
1853
+ function _isPlainObject(value) {
1854
+ if (value === null || typeof value !== "object") {
1855
+ return false;
1856
+ }
1857
+ const prototype = Object.getPrototypeOf(value);
1858
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
1859
+ }
1836
1860
  function createDefu(merger) {
1837
1861
  return (...arguments_) => (
1838
1862
  // eslint-disable-next-line unicorn/no-array-reduce
@@ -1970,7 +1994,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
1970
1994
  };
1971
1995
  graph.push(newNode);
1972
1996
  }
1973
- tag.tagPosition = config.tagPosition === "head" ? "head" : "bodyClose";
1997
+ tag.tagPosition = tag.tagPosition || config.tagPosition === "head" ? "head" : "bodyClose";
1974
1998
  }
1975
1999
  if (tag.tag === "htmlAttrs" && tag.props.lang) {
1976
2000
  resolvedMeta.inLanguage = tag.props.lang;
@@ -956,6 +956,9 @@ interface QuantitativeSimple extends Thing {
956
956
  interface QuantitativeValue extends QuantitativeSimple {
957
957
  }
958
958
 
959
+ /**
960
+ * A listing that describes a job opening in a certain organization.
961
+ */
959
962
  interface JobPostingSimple extends Thing {
960
963
  /**
961
964
  * The original date that employer posted the job in ISO 8601 format.
@@ -956,6 +956,9 @@ interface QuantitativeSimple extends Thing {
956
956
  interface QuantitativeValue extends QuantitativeSimple {
957
957
  }
958
958
 
959
+ /**
960
+ * A listing that describes a job opening in a certain organization.
961
+ */
959
962
  interface JobPostingSimple extends Thing {
960
963
  /**
961
964
  * The original date that employer posted the job in ISO 8601 format.
@@ -956,6 +956,9 @@ interface QuantitativeSimple extends Thing {
956
956
  interface QuantitativeValue extends QuantitativeSimple {
957
957
  }
958
958
 
959
+ /**
960
+ * A listing that describes a job opening in a certain organization.
961
+ */
959
962
  interface JobPostingSimple extends Thing {
960
963
  /**
961
964
  * The original date that employer posted the job in ISO 8601 format.
package/dist/vue.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const plugin = require('./shared/schema-org.e1b939f4.cjs');
3
+ const plugin = require('./shared/schema-org.5d94f209.cjs');
4
4
  const vue = require('@unhead/vue');
5
5
  const vue$1 = require('vue');
6
6
  require('@unhead/shared');
package/dist/vue.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ComponentResolver } from 'unplugin-vue-components';
2
2
  import * as _unhead_vue from '@unhead/vue';
3
3
  import { MaybeComputedRefOrPromise } from '@unhead/vue';
4
- import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.248e802f.cjs';
5
- export { M as MetaInput, b9 as PluginSchemaOrg, ba as SchemaOrgUnheadPlugin, bg as UserConfig } from './shared/schema-org.248e802f.cjs';
4
+ import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.bc5190e8.cjs';
5
+ export { M as MetaInput, b9 as PluginSchemaOrg, ba as SchemaOrgUnheadPlugin, bg as UserConfig } from './shared/schema-org.bc5190e8.cjs';
6
6
  import { defineComponent } from 'vue';
7
7
  import '@unhead/schema';
8
8
 
package/dist/vue.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ComponentResolver } from 'unplugin-vue-components';
2
2
  import * as _unhead_vue from '@unhead/vue';
3
3
  import { MaybeComputedRefOrPromise } from '@unhead/vue';
4
- import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.248e802f.mjs';
5
- export { M as MetaInput, b9 as PluginSchemaOrg, ba as SchemaOrgUnheadPlugin, bg as UserConfig } from './shared/schema-org.248e802f.mjs';
4
+ import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.bc5190e8.mjs';
5
+ export { M as MetaInput, b9 as PluginSchemaOrg, ba as SchemaOrgUnheadPlugin, bg as UserConfig } from './shared/schema-org.bc5190e8.mjs';
6
6
  import { defineComponent } from 'vue';
7
7
  import '@unhead/schema';
8
8
 
package/dist/vue.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ComponentResolver } from 'unplugin-vue-components';
2
2
  import * as _unhead_vue from '@unhead/vue';
3
3
  import { MaybeComputedRefOrPromise } from '@unhead/vue';
4
- import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.248e802f.js';
5
- export { M as MetaInput, b9 as PluginSchemaOrg, ba as SchemaOrgUnheadPlugin, bg as UserConfig } from './shared/schema-org.248e802f.js';
4
+ import { P as PostalAddress, c as AggregateOffer, d as AggregateRating, e as Article, B as BreadcrumbList, C as Comment, E as Event, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition, A as Arrayable, T as Thing } from './shared/schema-org.bc5190e8.js';
5
+ export { M as MetaInput, b9 as PluginSchemaOrg, ba as SchemaOrgUnheadPlugin, bg as UserConfig } from './shared/schema-org.bc5190e8.js';
6
6
  import { defineComponent } from 'vue';
7
7
  import '@unhead/schema';
8
8
 
package/dist/vue.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.3f27883f.mjs';
2
- export { a0 as PluginSchemaOrg, a1 as SchemaOrgUnheadPlugin } from './shared/schema-org.3f27883f.mjs';
1
+ import { U as UnheadSchemaOrg } from './shared/schema-org.b696cb4d.mjs';
2
+ export { a0 as PluginSchemaOrg, a1 as SchemaOrgUnheadPlugin } from './shared/schema-org.b696cb4d.mjs';
3
3
  import { injectHead, useHead } from '@unhead/vue';
4
4
  import { defineComponent, ref, computed, unref, h } from 'vue';
5
5
  import '@unhead/shared';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unhead/schema-org",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "Unhead Schema.org for Simple and Automated Google Rich Results",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
@@ -39,19 +39,19 @@
39
39
  "dist"
40
40
  ],
41
41
  "peerDependencies": {
42
- "unhead": ">=1.7.4",
43
- "@unhead/shared": "1.8.3"
42
+ "unhead": ">=1.8.3",
43
+ "@unhead/shared": "1.8.4"
44
44
  },
45
45
  "dependencies": {
46
46
  "ufo": "^1.3.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "unplugin-vue-components": "^0.25.2",
50
- "vue": "^3.3.7",
51
- "@unhead/schema": "1.8.3",
52
- "@unhead/shared": "1.8.3",
53
- "@unhead/vue": "1.8.3",
54
- "unhead": "1.8.3"
50
+ "vue": "^3.3.8",
51
+ "@unhead/schema": "1.8.4",
52
+ "@unhead/shared": "1.8.4",
53
+ "unhead": "1.8.4",
54
+ "@unhead/vue": "1.8.4"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "unbuild .",