@unhead/schema-org 1.8.9 → 1.8.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Harlan Wilton <harlan@harlanzw.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const plugin = require('./shared/schema-org.da628d24.cjs');
3
+ const plugin = require('./shared/schema-org.05dca9f3.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, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.320d2e5d.cjs';
2
- export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, aq as ImageSimple, ao as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ad as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aY as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aW as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ab as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ar as imageResolver, ap as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ae as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aZ as reviewResolver, b9 as searchActionResolver, aX as softwareAppResolver, a$ as videoResolver, ac as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.320d2e5d.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, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.6b61657a.cjs';
2
+ export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, aq as ImageSimple, ao as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ad as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aY as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aW as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ab as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ar as imageResolver, ap as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ae as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aZ as reviewResolver, b9 as searchActionResolver, aX as softwareAppResolver, a$ as videoResolver, ac as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.6b61657a.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, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.320d2e5d.mjs';
2
- export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, aq as ImageSimple, ao as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ad as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aY as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aW as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ab as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ar as imageResolver, ap as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ae as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aZ as reviewResolver, b9 as searchActionResolver, aX as softwareAppResolver, a$ as videoResolver, ac as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.320d2e5d.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, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.6b61657a.mjs';
2
+ export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, aq as ImageSimple, ao as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ad as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aY as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aW as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ab as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ar as imageResolver, ap as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ae as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aZ as reviewResolver, b9 as searchActionResolver, aX as softwareAppResolver, a$ as videoResolver, ac as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.6b61657a.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, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.320d2e5d.js';
2
- export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, aq as ImageSimple, ao as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ad as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aY as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aW as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ab as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ar as imageResolver, ap as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ae as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aZ as reviewResolver, b9 as searchActionResolver, aX as softwareAppResolver, a$ as videoResolver, ac as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.320d2e5d.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, F as FoodEstablishment, V as VirtualLocation, f as Place, H as HowTo, g as HowToStep, I as ImageObject, J as JobPosting, L as LocalBusiness, O as Offer, h as OpeningHoursSpecification, i as Organization, j as Person, k as Product, Q as Question, l as Recipe, m as Review, n as VideoObject, W as WebPage, o as WebSite, p as Book, q as Course, r as ItemList, s as ListItem, t as Movie, u as SearchAction, v as ReadAction, w as SoftwareApp, x as BookEdition } from './shared/schema-org.6b61657a.js';
2
+ export { z as AggregateOfferSimple, G as AggregateRatingSimple, N as ArticleSimple, Z as BookEditionSimple, Y as BookSimple, a1 as BreadcrumbSimple, a4 as CommentSimple, a6 as CourseSimple, a8 as EventSimple, af as FoodEstablishmentSimple, am as HowToDirection, ai as HowToId, ah as HowToSimple, ak as HowToStepSimple, bm as Id, bl as IdReference, bg as Identity, aq as ImageSimple, ao as ItemListSimple, as as JobPostingSimple, au as ListItemSimple, aw as LocalBusinessSimple, ay as MovieSimple, be as NodeRelation, bf as NodeRelations, aT as NutritionInformation, aA as OfferSimple, aC as OpeningHoursSimple, bi as OptionalSchemaOrgPrefix, aE as OrganizationSimple, aG as PersonSimple, ad as PlaceSimple, bc as PluginSchemaOrg, ba as PluginSchemaOrgOptions, aI as PostalAddressSimple, U as PrimaryArticleId, $ as PrimaryBookId, a2 as PrimaryBreadcrumbId, a9 as PrimaryEventId, b1 as PrimaryWebPageId, b6 as PrimaryWebSiteId, aL as ProductId, aK as ProductSimple, aN as QuestionSimple, aQ as Rating, aP as RatingSimple, b3 as ReadActionInput, aU as RecipeId, aS as RecipeSimple, bh as ResolvableDate, aY as ReviewSimple, bd as SchemaOrgUnheadPlugin, b8 as SearchActionInput, aW as SoftwareAppSimple, bb as UnheadSchemaOrg, bj as UserConfig, a_ as VideoSimple, ab as VirtualLocationSimple, b0 as WebPageSimple, b5 as WebSiteSimple, bk as WithResolver, aJ as addressResolver, D as aggregateOfferResolver, K as aggregateRatingResolver, X as articleResolver, _ as bookEditionResolver, a0 as bookResolver, a3 as breadcrumbResolver, a5 as commentResolver, a7 as courseResolver, y as createSchemaOrgGraph, aa as eventResolver, ag as foodEstablishmentResolver, aj as howToResolver, an as howToStepDirectionResolver, al as howToStepResolver, ar as imageResolver, ap as itemListResolver, at as jobPostingResolver, av as listItemResolver, ax as localBusinessResolver, az as movieResolver, aB as offerResolver, aD as openingHoursResolver, aF as organizationResolver, aH as personResolver, ae as placeResolver, aM as productResolver, aO as questionResolver, aR as ratingResolver, b4 as readActionResolver, aV as recipeResolver, aZ as reviewResolver, b9 as searchActionResolver, aX as softwareAppResolver, a$ as videoResolver, ac as virtualLocationResolver, b2 as webPageResolver, b7 as webSiteResolver } from './shared/schema-org.6b61657a.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.bb03b192.mjs';
2
- export { H as HowToId, a1 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, X as PrimaryWebPageId, _ as PrimaryWebSiteId, M as ProductId, R as RecipeId, a2 as SchemaOrgUnheadPlugin, L as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, a as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as foodEstablishmentResolver, x as howToResolver, z as howToStepDirectionResolver, y as howToStepResolver, B as imageResolver, A as itemListResolver, C as jobPostingResolver, D as listItemResolver, E as localBusinessResolver, F as movieResolver, n as normaliseNodes, G as offerResolver, I as openingHoursResolver, J as organizationResolver, K as personResolver, u as placeResolver, N as productResolver, O as questionResolver, Q as ratingResolver, Z as readActionResolver, S as recipeResolver, r as resolveMeta, b as resolveNode, e as resolveNodeId, f as resolveRelation, V as reviewResolver, a0 as searchActionResolver, T as softwareAppResolver, W as videoResolver, v as virtualLocationResolver, Y as webPageResolver, $ as webSiteResolver } from './shared/schema-org.bb03b192.mjs';
1
+ import { U as UnheadSchemaOrg } from './shared/schema-org.e127cd72.mjs';
2
+ export { H as HowToId, a1 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, X as PrimaryWebPageId, _ as PrimaryWebSiteId, M as ProductId, R as RecipeId, a2 as SchemaOrgUnheadPlugin, L as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, a as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as foodEstablishmentResolver, x as howToResolver, z as howToStepDirectionResolver, y as howToStepResolver, B as imageResolver, A as itemListResolver, C as jobPostingResolver, D as listItemResolver, E as localBusinessResolver, F as movieResolver, n as normaliseNodes, G as offerResolver, I as openingHoursResolver, J as organizationResolver, K as personResolver, u as placeResolver, N as productResolver, O as questionResolver, Q as ratingResolver, Z as readActionResolver, S as recipeResolver, r as resolveMeta, b as resolveNode, e as resolveNodeId, f as resolveRelation, V as reviewResolver, a0 as searchActionResolver, T as softwareAppResolver, W as videoResolver, v as virtualLocationResolver, Y as webPageResolver, $ as webSiteResolver } from './shared/schema-org.e127cd72.mjs';
3
3
  import { getActiveHead, useHead } from 'unhead';
4
4
  import '@unhead/shared';
5
5
  import 'ufo';
@@ -20,12 +20,23 @@ function resolvableDateToDate(val) {
20
20
  }
21
21
  return typeof val === "string" ? val : val.toString();
22
22
  }
23
+ const IS_VALID_W3C_DATE = [
24
+ /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,
25
+ /^\d{4}-[01]\d-[0-3]\d$/,
26
+ /^\d{4}-[01]\d$/,
27
+ /^\d{4}$/
28
+ ];
29
+ function isValidW3CDate(d) {
30
+ return IS_VALID_W3C_DATE.some((r) => r.test(d));
31
+ }
23
32
  function resolvableDateToIso(val) {
24
33
  if (!val)
25
34
  return val;
26
35
  try {
27
36
  if (val instanceof Date)
28
37
  return val.toISOString();
38
+ else if (isValidW3CDate(val))
39
+ return val;
29
40
  else
30
41
  return new Date(Date.parse(val)).toISOString();
31
42
  } catch (e) {
@@ -98,6 +109,74 @@ function stripEmptyProperties(obj) {
98
109
  return obj;
99
110
  }
100
111
 
112
+ const quantitativeValueResolver = defineSchemaOrgResolver({
113
+ cast(node) {
114
+ if (typeof node === "number") {
115
+ return {
116
+ value: node
117
+ };
118
+ }
119
+ return node;
120
+ },
121
+ defaults: {
122
+ "@type": "QuantitativeValue"
123
+ }
124
+ });
125
+ const monetaryAmountResolver = defineSchemaOrgResolver({
126
+ defaults: {
127
+ "@type": "MonetaryAmount"
128
+ },
129
+ resolve(node, ctx) {
130
+ node.value = resolveRelation(node.value, ctx, quantitativeValueResolver);
131
+ return node;
132
+ }
133
+ });
134
+
135
+ const merchantReturnPolicyResolver = defineSchemaOrgResolver({
136
+ defaults: {
137
+ "@type": "MerchantReturnPolicy"
138
+ },
139
+ resolve(node, ctx) {
140
+ if (node.returnPolicyCategory)
141
+ node.returnPolicyCategory = ufo.withBase(node.returnPolicyCategory, "https://schema.org/");
142
+ if (node.returnFees)
143
+ node.returnFees = ufo.withBase(node.returnFees, "https://schema.org/");
144
+ if (node.returnMethod)
145
+ node.returnMethod = ufo.withBase(node.returnMethod, "https://schema.org/");
146
+ node.returnShippingFeesAmount = resolveRelation(node.returnShippingFeesAmount, ctx, monetaryAmountResolver);
147
+ return node;
148
+ }
149
+ });
150
+
151
+ const definedRegionResolver = defineSchemaOrgResolver({
152
+ defaults: {
153
+ "@type": "DefinedRegion"
154
+ }
155
+ });
156
+
157
+ const shippingDeliveryTimeResolver = defineSchemaOrgResolver({
158
+ defaults: {
159
+ "@type": "ShippingDeliveryTime"
160
+ },
161
+ resolve(node, ctx) {
162
+ node.handlingTime = resolveRelation(node.handlingTime, ctx, quantitativeValueResolver);
163
+ node.transitTime = resolveRelation(node.transitTime, ctx, quantitativeValueResolver);
164
+ return node;
165
+ }
166
+ });
167
+
168
+ const offerShippingDetailsResolver = defineSchemaOrgResolver({
169
+ defaults: {
170
+ "@type": "OfferShippingDetails"
171
+ },
172
+ resolve(node, ctx) {
173
+ node.deliveryTime = resolveRelation(node.deliveryTime, ctx, shippingDeliveryTimeResolver);
174
+ node.shippingDestination = resolveRelation(node.shippingDestination, ctx, definedRegionResolver);
175
+ node.shippingRate = resolveRelation(node.shippingRate, ctx, monetaryAmountResolver);
176
+ return node;
177
+ }
178
+ });
179
+
101
180
  const offerResolver = defineSchemaOrgResolver({
102
181
  cast(node) {
103
182
  if (typeof node === "number" || typeof node === "string") {
@@ -118,8 +197,12 @@ const offerResolver = defineSchemaOrgResolver({
118
197
  resolveWithBase(ctx.meta.host, node.url);
119
198
  if (node.availability)
120
199
  node.availability = ufo.withBase(node.availability, "https://schema.org/");
200
+ if (node.itemCondition)
201
+ node.itemCondition = ufo.withBase(node.itemCondition, "https://schema.org/");
121
202
  if (node.priceValidUntil)
122
203
  node.priceValidUntil = resolvableDateToIso(node.priceValidUntil);
204
+ node.hasMerchantReturnPolicy = resolveRelation(node.hasMerchantReturnPolicy, ctx, merchantReturnPolicyResolver);
205
+ node.shippingDetails = resolveRelation(node.shippingDetails, ctx, offerShippingDetailsResolver);
123
206
  return node;
124
207
  }
125
208
  });
@@ -811,21 +894,6 @@ const itemListResolver = defineSchemaOrgResolver({
811
894
  }
812
895
  });
813
896
 
814
- const quantitativeValueResolver = defineSchemaOrgResolver({
815
- defaults: {
816
- "@type": "QuantitativeValue"
817
- }
818
- });
819
- const monetaryAmountResolver = defineSchemaOrgResolver({
820
- defaults: {
821
- "@type": "MonetaryAmount"
822
- },
823
- resolve(node, ctx) {
824
- node.value = resolveRelation(node.value, ctx, quantitativeValueResolver);
825
- return node;
826
- }
827
- });
828
-
829
897
  const jobPostingResolver = defineSchemaOrgResolver({
830
898
  defaults: {
831
899
  "@type": "JobPosting"
@@ -1846,8 +1914,25 @@ function resolveRelation(input, ctx, fallbackResolver, options = {}) {
1846
1914
  return ids;
1847
1915
  }
1848
1916
 
1917
+ function isPlainObject(value) {
1918
+ if (value === null || typeof value !== "object") {
1919
+ return false;
1920
+ }
1921
+ const prototype = Object.getPrototypeOf(value);
1922
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
1923
+ return false;
1924
+ }
1925
+ if (Symbol.iterator in value) {
1926
+ return false;
1927
+ }
1928
+ if (Symbol.toStringTag in value) {
1929
+ return Object.prototype.toString.call(value) === "[object Module]";
1930
+ }
1931
+ return true;
1932
+ }
1933
+
1849
1934
  function _defu(baseObject, defaults, namespace = ".", merger) {
1850
- if (!_isPlainObject(defaults)) {
1935
+ if (!isPlainObject(defaults)) {
1851
1936
  return _defu(baseObject, {}, namespace, merger);
1852
1937
  }
1853
1938
  const object = Object.assign({}, defaults);
@@ -1864,7 +1949,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
1864
1949
  }
1865
1950
  if (Array.isArray(value) && Array.isArray(object[key])) {
1866
1951
  object[key] = [...value, ...object[key]];
1867
- } else if (_isPlainObject(value) && _isPlainObject(object[key])) {
1952
+ } else if (isPlainObject(value) && isPlainObject(object[key])) {
1868
1953
  object[key] = _defu(
1869
1954
  value,
1870
1955
  object[key],
@@ -1877,13 +1962,6 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
1877
1962
  }
1878
1963
  return object;
1879
1964
  }
1880
- function _isPlainObject(value) {
1881
- if (value === null || typeof value !== "object") {
1882
- return false;
1883
- }
1884
- const prototype = Object.getPrototypeOf(value);
1885
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
1886
- }
1887
1965
  function createDefu(merger) {
1888
1966
  return (...arguments_) => (
1889
1967
  // eslint-disable-next-line unicorn/no-array-reduce