nuxt-schema-org 4.1.3 → 5.0.0

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.
@@ -1 +1 @@
1
- import{_ as a,u as i,c as u,o as c,a as e,t as r,b as l,w as d,d as p,e as f}from"./BBhgrj0O.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=f;return c(),u("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[l(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:d(()=>[p(r(t.backHome),1)]),_:1})])])])}}},_=a(y,[["__scopeId","data-v-bc471e54"]]);export{_ as default};
1
+ import{_ as a,u as i,c as u,o as c,a as e,t as r,b as l,w as d,d as p,e as f}from"./CLtsjTnF.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=f;return c(),u("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[l(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:d(()=>[p(r(t.backHome),1)]),_:1})])])])}}},_=a(y,[["__scopeId","data-v-dbc8bce1"]]);export{_ as default};
@@ -1 +1 @@
1
- {"id":"0f5acb5f-1a5c-4a8d-8eca-a93c858dfb18","timestamp":1740095836080}
1
+ {"id":"a67bf296-2bc3-43c5-99d8-8cbee0f25802","timestamp":1741399610404}
@@ -0,0 +1 @@
1
+ {"id":"a67bf296-2bc3-43c5-99d8-8cbee0f25802","timestamp":1741399610404,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -0,0 +1 @@
1
+ .spotlight[data-v-dbc8bce1]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-dbc8bce1]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-dbc8bce1]{background-color:#ffffff4d}.gradient-border[data-v-dbc8bce1]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-dbc8bce1]{background-color:#1414144d}.gradient-border[data-v-dbc8bce1]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-dbc8bce1]:before{background-size:400% auto;border-radius:.5rem;bottom:0;content:"";left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;right:0;top:0;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-dbc8bce1]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-dbc8bce1]{position:fixed}.left-0[data-v-dbc8bce1]{left:0}.right-0[data-v-dbc8bce1]{right:0}.z-10[data-v-dbc8bce1]{z-index:10}.z-20[data-v-dbc8bce1]{z-index:20}.grid[data-v-dbc8bce1]{display:grid}.mb-16[data-v-dbc8bce1]{margin-bottom:4rem}.mb-8[data-v-dbc8bce1]{margin-bottom:2rem}.max-w-520px[data-v-dbc8bce1]{max-width:520px}.min-h-screen[data-v-dbc8bce1]{min-height:100vh}.w-full[data-v-dbc8bce1]{width:100%}.flex[data-v-dbc8bce1]{display:flex}.cursor-pointer[data-v-dbc8bce1]{cursor:pointer}.place-content-center[data-v-dbc8bce1]{place-content:center}.items-center[data-v-dbc8bce1]{align-items:center}.justify-center[data-v-dbc8bce1]{justify-content:center}.overflow-hidden[data-v-dbc8bce1]{overflow:hidden}.bg-white[data-v-dbc8bce1]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-dbc8bce1]{padding-left:1rem;padding-right:1rem}.px-8[data-v-dbc8bce1]{padding-left:2rem;padding-right:2rem}.py-2[data-v-dbc8bce1]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-dbc8bce1]{text-align:center}.text-8xl[data-v-dbc8bce1]{font-size:6rem;line-height:1}.text-xl[data-v-dbc8bce1]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-dbc8bce1]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-dbc8bce1]{font-weight:300}.font-medium[data-v-dbc8bce1]{font-weight:500}.leading-tight[data-v-dbc8bce1]{line-height:1.25}.font-sans[data-v-dbc8bce1]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-dbc8bce1]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-dbc8bce1]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-dbc8bce1]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-dbc8bce1]{padding-left:0;padding-right:0}.sm\:px-6[data-v-dbc8bce1]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-dbc8bce1]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-dbc8bce1]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-dbc8bce1]{font-size:1.25rem;line-height:1.75rem}}
@@ -0,0 +1 @@
1
+ .spotlight[data-v-bf45a9c8]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-bf45a9c8]{position:fixed}.-bottom-1\/2[data-v-bf45a9c8]{bottom:-50%}.left-0[data-v-bf45a9c8]{left:0}.right-0[data-v-bf45a9c8]{right:0}.grid[data-v-bf45a9c8]{display:grid}.mb-16[data-v-bf45a9c8]{margin-bottom:4rem}.mb-8[data-v-bf45a9c8]{margin-bottom:2rem}.h-1\/2[data-v-bf45a9c8]{height:50%}.max-w-520px[data-v-bf45a9c8]{max-width:520px}.min-h-screen[data-v-bf45a9c8]{min-height:100vh}.place-content-center[data-v-bf45a9c8]{place-content:center}.overflow-hidden[data-v-bf45a9c8]{overflow:hidden}.bg-white[data-v-bf45a9c8]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-bf45a9c8]{padding-left:2rem;padding-right:2rem}.text-center[data-v-bf45a9c8]{text-align:center}.text-8xl[data-v-bf45a9c8]{font-size:6rem;line-height:1}.text-xl[data-v-bf45a9c8]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-bf45a9c8]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-bf45a9c8]{font-weight:300}.font-medium[data-v-bf45a9c8]{font-weight:500}.leading-tight[data-v-bf45a9c8]{line-height:1.25}.font-sans[data-v-bf45a9c8]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-bf45a9c8]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-bf45a9c8]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-bf45a9c8]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-bf45a9c8]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-bf45a9c8]{font-size:2.25rem;line-height:2.5rem}}
@@ -1,14 +1,14 @@
1
- <!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
1
+ <!DOCTYPE html><html><head><meta charset="utf-8">
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
3
  <link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.CyniKJyu.css" crossorigin>
4
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BBhgrj0O.js">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CLtsjTnF.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CVO1_9PV.js">
6
6
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/D0r3Knsf.js">
7
7
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/ySlJ1b_l.js">
8
8
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DTAJTTim.js">
9
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-404.Bjrf0LUw.css">
10
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/ulaqGblN.js">
11
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-500.Dz74ghIf.css">
12
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DGMGpFUM.js">
13
- <script type="module" src="/__nuxt-schema-org/_nuxt/BBhgrj0O.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1740095839610,false]</script>
14
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"0f5acb5f-1a5c-4a8d-8eca-a93c858dfb18",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
9
+ <link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-404.frRIKFUi.css">
10
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DRUKRkGm.js">
11
+ <link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-500.B5M1mPCX.css">
12
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BGy8kFSb.js">
13
+ <script type="module" src="/__nuxt-schema-org/_nuxt/CLtsjTnF.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1741399614806,false]</script>
14
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"a67bf296-2bc3-43c5-99d8-8cbee0f25802",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.cjs CHANGED
@@ -76,14 +76,13 @@ const module$1 = kit.defineNuxtModule({
76
76
  name: "nuxt-schema-org",
77
77
  configKey: "schemaOrg",
78
78
  compatibility: {
79
- nuxt: ">=3.7.0",
79
+ nuxt: ">=3.16.0",
80
80
  bridge: false
81
81
  }
82
82
  },
83
83
  defaults(nuxt) {
84
84
  return {
85
85
  enabled: true,
86
- debug: nuxt.options.debug || false,
87
86
  defaults: true,
88
87
  reactive: nuxt.options.dev || !nuxt.options.ssr,
89
88
  minify: !nuxt.options.dev,
@@ -152,8 +151,8 @@ const module$1 = kit.defineNuxtModule({
152
151
  const script = {
153
152
  type: "application/ld+json",
154
153
  key: "schema-org-graph",
155
- nodes: nodes.map(replaceType),
156
- ...config.scriptAttributes
154
+ ...config.scriptAttributes,
155
+ nodes: nodes.map(replaceType)
157
156
  };
158
157
  content.head = defu.defu({
159
158
  script: [script]
package/dist/module.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NuxtModule } from '@nuxt/schema';
2
- import { ScriptBase, TagUserProperties, DataKeys } from '@unhead/schema';
3
2
  import { OrganizationSimple, PersonSimple, LocalBusinessSimple } from '@unhead/schema-org';
3
+ import { Script } from '@unhead/vue/types';
4
4
 
5
5
  interface ModuleOptions {
6
6
  /**
@@ -34,7 +34,7 @@ interface ModuleOptions {
34
34
  *
35
35
  * By default, will apply an `id` of `schema-org-graph`. Set to `false` to apply no attributes.
36
36
  */
37
- scriptAttributes?: (ScriptBase & TagUserProperties & DataKeys) | false;
37
+ scriptAttributes?: Script | false;
38
38
  /**
39
39
  * Enables debug logs.
40
40
  *
package/dist/module.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NuxtModule } from '@nuxt/schema';
2
- import { ScriptBase, TagUserProperties, DataKeys } from '@unhead/schema';
3
2
  import { OrganizationSimple, PersonSimple, LocalBusinessSimple } from '@unhead/schema-org';
3
+ import { Script } from '@unhead/vue/types';
4
4
 
5
5
  interface ModuleOptions {
6
6
  /**
@@ -34,7 +34,7 @@ interface ModuleOptions {
34
34
  *
35
35
  * By default, will apply an `id` of `schema-org-graph`. Set to `false` to apply no attributes.
36
36
  */
37
- scriptAttributes?: (ScriptBase & TagUserProperties & DataKeys) | false;
37
+ scriptAttributes?: Script | false;
38
38
  /**
39
39
  * Enables debug logs.
40
40
  *
package/dist/module.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NuxtModule } from '@nuxt/schema';
2
- import { ScriptBase, TagUserProperties, DataKeys } from '@unhead/schema';
3
2
  import { OrganizationSimple, PersonSimple, LocalBusinessSimple } from '@unhead/schema-org';
3
+ import { Script } from '@unhead/vue/types';
4
4
 
5
5
  interface ModuleOptions {
6
6
  /**
@@ -34,7 +34,7 @@ interface ModuleOptions {
34
34
  *
35
35
  * By default, will apply an `id` of `schema-org-graph`. Set to `false` to apply no attributes.
36
36
  */
37
- scriptAttributes?: (ScriptBase & TagUserProperties & DataKeys) | false;
37
+ scriptAttributes?: Script | false;
38
38
  /**
39
39
  * Enables debug logs.
40
40
  *
package/dist/module.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "nuxt-schema-org",
3
3
  "configKey": "schemaOrg",
4
4
  "compatibility": {
5
- "nuxt": ">=3.7.0",
5
+ "nuxt": ">=3.16.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "4.1.2",
8
+ "version": "4.1.3",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -73,14 +73,13 @@ const module = defineNuxtModule({
73
73
  name: "nuxt-schema-org",
74
74
  configKey: "schemaOrg",
75
75
  compatibility: {
76
- nuxt: ">=3.7.0",
76
+ nuxt: ">=3.16.0",
77
77
  bridge: false
78
78
  }
79
79
  },
80
80
  defaults(nuxt) {
81
81
  return {
82
82
  enabled: true,
83
- debug: nuxt.options.debug || false,
84
83
  defaults: true,
85
84
  reactive: nuxt.options.dev || !nuxt.options.ssr,
86
85
  minify: !nuxt.options.dev,
@@ -149,8 +148,8 @@ const module = defineNuxtModule({
149
148
  const script = {
150
149
  type: "application/ld+json",
151
150
  key: "schema-org-graph",
152
- nodes: nodes.map(replaceType),
153
- ...config.scriptAttributes
151
+ ...config.scriptAttributes,
152
+ nodes: nodes.map(replaceType)
154
153
  };
155
154
  content.head = defu({
156
155
  script: [script]
@@ -1,6 +1,4 @@
1
- import type { ActiveHeadEntry } from '@unhead/schema';
2
1
  import type { useSchemaOrg as _useSchemaOrg } from '@unhead/schema-org/vue';
3
- import type { UnheadAugmentation } from '../../types.js';
4
2
  type Input = Parameters<typeof _useSchemaOrg>[0];
5
- export declare function useSchemaOrg<T extends Input>(input: T): ActiveHeadEntry<UnheadAugmentation<T>> | void;
3
+ export declare function useSchemaOrg<T extends Input>(input: T): void | import("@unhead/vue").ActiveHeadEntry<import("@unhead/vue").UseHeadInput<Deprecated>>;
6
4
  export {};
@@ -1,10 +1,11 @@
1
- import { useHead, useServerHead } from "@unhead/vue";
1
+ import { useHead } from "#imports";
2
2
  import { useSchemaOrgConfig } from "../utils/config.js";
3
3
  export function useSchemaOrg(input) {
4
4
  const config = useSchemaOrgConfig();
5
5
  const script = {
6
6
  type: "application/ld+json",
7
7
  key: "schema-org-graph",
8
+ // @ts-expect-error untyped
8
9
  nodes: input,
9
10
  tagPriority: "high",
10
11
  ...config.scriptAttributes
@@ -15,7 +16,7 @@ export function useSchemaOrg(input) {
15
16
  });
16
17
  }
17
18
  if (import.meta.server) {
18
- return useServerHead({
19
+ return useHead({
19
20
  script: [script]
20
21
  });
21
22
  } else if (config?.reactive) {
@@ -1,9 +1,9 @@
1
+ import { injectHead } from "#imports";
1
2
  import {
2
3
  useSiteConfig
3
4
  } from "#site-config/app/composables/useSiteConfig";
4
5
  import { createSitePathResolver } from "#site-config/app/composables/utils";
5
6
  import { SchemaOrgUnheadPlugin } from "@unhead/schema-org/vue";
6
- import { injectHead } from "@unhead/vue";
7
7
  import { defu } from "defu";
8
8
  import { useRoute } from "nuxt/app";
9
9
  import { camelCase } from "scule";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-schema-org",
3
3
  "type": "module",
4
- "version": "4.1.3",
4
+ "version": "5.0.0",
5
5
  "description": "The quickest and easiest way to build Schema.org graphs for Nuxt.",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -53,30 +53,34 @@
53
53
  "dist",
54
54
  "schema.d.ts"
55
55
  ],
56
+ "peerDependencies": {
57
+ "@unhead/vue": "^2.0.0-rc.1",
58
+ "nuxt": "^3.16.0"
59
+ },
56
60
  "dependencies": {
57
- "@nuxt/kit": "^3.15.4",
58
- "@unhead/schema-org": "^1.11.19",
61
+ "@nuxt/kit": "^3.16.0",
62
+ "@unhead/schema-org": "^2.0.0-rc.7",
59
63
  "defu": "^6.1.4",
60
- "nuxt-site-config": "^3.1.0",
64
+ "nuxt-site-config": "^3.1.4",
61
65
  "pathe": "^2.0.3",
62
- "pkg-types": "^1.3.1",
66
+ "pkg-types": "^2.1.0",
63
67
  "sirv": "^3.0.1"
64
68
  },
65
69
  "devDependencies": {
66
- "@antfu/eslint-config": "^4.3.0",
67
- "@nuxt/content": "^3.2.0",
70
+ "@antfu/eslint-config": "^4.8.1",
71
+ "@nuxt/content": "^3.3.0",
68
72
  "@nuxt/module-builder": "^0.8.4",
69
- "@nuxt/schema": "^3.15.4",
70
- "@nuxt/test-utils": "^3.16.0",
73
+ "@nuxt/schema": "^3.16.0",
74
+ "@nuxt/test-utils": "^3.17.1",
71
75
  "@nuxt/ui": "^2.21.0",
72
- "@nuxtjs/i18n": "^9.2.1",
73
- "@nuxtjs/robots": "^5.2.4",
76
+ "@nuxtjs/i18n": "^9.3.0",
77
+ "@nuxtjs/robots": "^5.2.6",
74
78
  "bumpp": "^10.0.3",
75
79
  "cheerio": "^1.0.0",
76
- "eslint": "^9.20.1",
77
- "nuxt": "^3.15.4",
80
+ "eslint": "^9.22.0",
81
+ "nuxt": "^3.16.0",
78
82
  "typescript": "5.6.3",
79
- "vitest": "^3.0.6"
83
+ "vitest": "^3.0.8"
80
84
  },
81
85
  "resolutions": {
82
86
  "typescript": "5.6.3"
@@ -91,6 +95,6 @@
91
95
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare client",
92
96
  "release": "pnpm build && bumpp && pnpm -r publish",
93
97
  "typecheck": "tsc --noEmit ",
94
- "test": "vitest"
98
+ "test": "nuxi prepare test/fixtures/i18n && nuxi prepare test/fixtures/i18n-domains && vitest"
95
99
  }
96
100
  }