@nuxt/scripts 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/client/200.html +11 -11
  2. package/dist/client/404.html +11 -11
  3. package/dist/client/_nuxt/{C0cterrC.js → BB1wM0JV.js} +1 -1
  4. package/dist/client/_nuxt/BJn7Ek5W.js +1 -0
  5. package/dist/client/_nuxt/{o5b8QYQO.js → Bfj2ThZ4.js} +1 -1
  6. package/dist/client/_nuxt/Bj0fF4lQ.js +1 -0
  7. package/dist/client/_nuxt/{DGMFlOLs.js → BmSZh3NL.js} +1 -1
  8. package/dist/client/_nuxt/{B5NHDIr7.js → Cp2HGa90.js} +2 -2
  9. package/dist/client/_nuxt/{Bf6Ng02J.js → D3J95Otb.js} +3 -3
  10. package/dist/client/_nuxt/{BsZo98M5.js → Gn7Sk0ke.js} +1 -1
  11. package/dist/client/_nuxt/builds/latest.json +1 -1
  12. package/dist/client/_nuxt/builds/meta/e7e8b021-1e94-4c86-ad2e-d6ac965b2190.json +1 -0
  13. package/dist/client/_nuxt/{ISosJq17.js → ixTSYuOP.js} +1 -1
  14. package/dist/client/_nuxt/{P5f3PASf.js → zhgf4ixb.js} +1 -1
  15. package/dist/client/index.html +11 -11
  16. package/dist/module.json +1 -1
  17. package/dist/registry.d.mts +1 -9
  18. package/dist/registry.d.ts +1 -9
  19. package/dist/registry.mjs +28 -24
  20. package/dist/runtime/components/ScriptGoogleAdsense.vue +50 -0
  21. package/dist/runtime/composables/useAnalyticsPageEvent.d.ts +4 -1
  22. package/dist/runtime/composables/useElementScriptTrigger.js +2 -0
  23. package/dist/runtime/registry/cloudflare-web-analytics.d.ts +16 -1
  24. package/dist/runtime/registry/fathom-analytics.d.ts +28 -1
  25. package/dist/runtime/registry/google-adsense.d.ts +30 -0
  26. package/dist/runtime/registry/google-adsense.js +37 -0
  27. package/dist/runtime/registry/google-analytics.d.ts +8 -1
  28. package/dist/runtime/registry/google-analytics.js +4 -2
  29. package/dist/runtime/registry/google-maps.d.ts +9 -1
  30. package/dist/runtime/registry/google-tag-manager.d.ts +5 -1
  31. package/dist/runtime/registry/hotjar.d.ts +7 -1
  32. package/dist/runtime/registry/intercom.d.ts +19 -1
  33. package/dist/runtime/registry/matomo-analytics.d.ts +11 -1
  34. package/dist/runtime/registry/meta-pixel.d.ts +5 -1
  35. package/dist/runtime/registry/meta-pixel.js +1 -2
  36. package/dist/runtime/registry/npm.d.ts +11 -1
  37. package/dist/runtime/registry/plausible-analytics.d.ts +7 -1
  38. package/dist/runtime/registry/plausible-analytics.js +2 -2
  39. package/dist/runtime/registry/segment.d.ts +7 -1
  40. package/dist/runtime/registry/segment.js +2 -2
  41. package/dist/runtime/registry/stripe.d.ts +5 -1
  42. package/dist/runtime/registry/x-pixel.d.ts +7 -1
  43. package/dist/runtime/utils.d.ts +1 -1
  44. package/package.json +3 -2
  45. package/dist/client/_nuxt/BAMIS8DD.js +0 -1
  46. package/dist/client/_nuxt/Db2-y2xY.js +0 -1
  47. package/dist/client/_nuxt/builds/meta/3255a134-7caf-4d76-96f4-05475e276415.json +0 -1
@@ -1 +1 @@
1
- import{_ as o,u as a}from"./C0cterrC.js";import{o as s,c as i,a as e,t as r,p as u,e as l}from"./Bf6Ng02J.js";const c=t=>(u("data-v-478fb72d"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return a({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--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 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(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: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},w=o(f,[["__scopeId","data-v-478fb72d"]]);export{w as default};
1
+ import{_ as o,u as a}from"./BB1wM0JV.js";import{o as s,c as i,a as e,t as r,p as u,e as l}from"./D3J95Otb.js";const c=t=>(u("data-v-478fb72d"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return a({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--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 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(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: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},w=o(f,[["__scopeId","data-v-478fb72d"]]);export{w as default};
@@ -1 +1 @@
1
- {"id":"3255a134-7caf-4d76-96f4-05475e276415","timestamp":1717331889974}
1
+ {"id":"e7e8b021-1e94-4c86-ad2e-d6ac965b2190","timestamp":1717482351640}
@@ -0,0 +1 @@
1
+ {"id":"e7e8b021-1e94-4c86-ad2e-d6ac965b2190","timestamp":1717482351640,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1 +1 @@
1
- import{o as a,c as s,a as e,t as o,b as i,w as u,d as c,_ as d,p as l,e as p}from"./Bf6Ng02J.js";import{_ as h,u as b}from"./C0cterrC.js";const f=t=>(l("data-v-bd6e1038"),t=t(),p(),t),g={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},x=f(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),m={class:"max-w-520px text-center z-20"},y=["textContent"],_=["textContent"],k={class:"w-full flex items-center justify-center"},w={__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 b({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--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 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(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: }'}]}),(z,S)=>{const r=d;return a(),s("div",g,[x,e("div",m,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,_),e("div",k,[i(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:u(()=>[c(o(t.backHome),1)]),_:1})])])])}}},N=h(w,[["__scopeId","data-v-bd6e1038"]]);export{N as default};
1
+ import{o as a,c as s,a as e,t as o,b as i,w as u,d as c,_ as d,p as l,e as p}from"./D3J95Otb.js";import{_ as h,u as b}from"./BB1wM0JV.js";const f=t=>(l("data-v-bd6e1038"),t=t(),p(),t),g={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},x=f(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),m={class:"max-w-520px text-center z-20"},y=["textContent"],_=["textContent"],k={class:"w-full flex items-center justify-center"},w={__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 b({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--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 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(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: }'}]}),(z,S)=>{const r=d;return a(),s("div",g,[x,e("div",m,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,_),e("div",k,[i(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:u(()=>[c(o(t.backHome),1)]),_:1})])])])}}},N=h(w,[["__scopeId","data-v-bd6e1038"]]);export{N as default};
@@ -1,4 +1,4 @@
1
- import t from"./CbViG2Xw.js";import e from"./CbYhyuC0.js";import i from"./DeVv6D4_.js";import n from"./ClXEvkw9.js";import a from"./BVGdgKAv.js";import s from"./B9S9BZZh.js";import m from"./Dwo2i-71.js";import d from"./BXfENWL6.js";import g from"./CarfVElc.js";import u from"./Cthz8VOO.js";import l from"./DbK06e1c.js";import o from"./beD-FUib.js";import c from"./CsYA0RN7.js";import r from"./CJQrLysU.js";import x from"./C5gCGmDW.js";import p from"./BPiaQZfK.js";import h from"./BF6G6X0H.js";import k from"./Bg0wAK5a.js";import b from"./RCJZWN-0.js";import w from"./BOnd8D4O.js";import f from"./DvyTQcux.js";import y from"./DNR26wTC.js";import C from"./BAMIS8DD.js";import N from"./wChcbJ1V.js";import E from"./DhFF74a2.js";import $ from"./Dch3xQiY.js";import j from"./DYI1rfmx.js";import R from"./Du6_OKDb.js";import T from"./DHmGyzbM.js";import O from"./Dez-Qvcc.js";import G from"./BeX7Iu5M.js";import A from"./D384ylkT.js";import v from"./9ZOzOPqN.js";import I from"./DwuVtWc2.js";import L from"./D_T9yQUo.js";import M from"./DGxQkqYo.js";import S from"./vMsNTMhM.js";import D from"./BZfs-ost.js";import U from"./DC8MraHL.js";import H from"./DISxKEhY.js";import V from"./Djqq6n-7.js";import Y from"./DZLoTQm4.js";import q from"./DUdlC5k_.js";import _ from"./BdfWgkoX.js";import P from"./DS9ZWoKD.js";import B from"./BaNxgKSR.js";import W from"./o5b8QYQO.js";import z from"./BaedD2tq.js";import K from"./CupVZNk8.js";import"./DouzTJIq.js";import"./CMDmr8et.js";import"./DSrLtGYv.js";import"./Db2-y2xY.js";import"./nclm9rTJ.js";import"./DAGYewaG.js";const Z=Object.freeze({displayName:"Wikitext",name:"wikitext",patterns:[{include:"#wikitext"},{include:"text.html.basic"}],repository:{wikitext:{patterns:[{include:"#signature"},{include:"#redirect"},{include:"#magic-words"},{include:"#argument"},{include:"#template"},{include:"#convert"},{include:"#list"},{include:"#table"},{include:"#font-style"},{include:"#internal-link"},{include:"#external-link"},{include:"#heading"},{include:"#break"},{include:"#wikixml"},{include:"#extension-comments"}],repository:{argument:{begin:"({{{)",end:"(}}})",name:"variable.parameter.wikitext",patterns:[{captures:{1:{name:"variable.other.wikitext"},2:{name:"keyword.operator.wikitext"}},match:"(?:^|\\G)([^#:\\|\\[\\]\\{\\}\\|]*)(\\|)"},{include:"$self"}]},break:{match:"^-{4,}",name:"markup.changed.wikitext"},convert:{begin:"(-\\{(?!\\{))([a-zA-Z](\\|))?",captures:{1:{name:"punctuation.definition.tag.template.wikitext"},2:{name:"entity.name.function.type.wikitext"},3:{name:"keyword.operator.wikitext"}},end:"(\\}-)",patterns:[{include:"$self"},{captures:{1:{name:"entity.name.tag.language.wikitext"},2:{name:"punctuation.separator.key-value.wikitext"},3:{name:"string.unquoted.text.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.terminator.rule.wikitext"}},match:"(?:([a-zA-Z\\-]*)(:))?(.*?)(?:(;)|(?=\\}-))"}]},"extension-comments":{begin:"(<%--)\\s*(\\[)([A-Z_]*)(\\])",beginCaptures:{1:{name:"punctuation.definition.comment.extension.wikitext"},2:{name:"punctuation.definition.tag.extension.wikitext"},3:{name:"storage.type.extension.wikitext"},4:{name:"punctuation.definition.tag.extension.wikitext"}},end:"(\\[)([A-Z_]*)(\\])\\s*(--%>)",endCaptures:{1:{name:"punctuation.definition.tag.extension.wikitext"},2:{name:"storage.type.extension.wikitext"},3:{name:"punctuation.definition.tag.extension.wikitext"},4:{name:"punctuation.definition.comment.extension.wikitext"}},name:"comment.block.documentation.special.extension.wikitext",patterns:[{captures:{0:{name:"meta.object.member.extension.wikitext"},1:{name:"meta.object-literal.key.extension.wikitext"},2:{name:"punctuation.separator.dictionary.key-value.extension.wikitext"},3:{name:"punctuation.definition.string.begin.extension.wikitext"},4:{name:"string.quoted.other.extension.wikitext"},5:{name:"punctuation.definition.string.end.extension.wikitext"}},match:"(\\w*)\\s*(=)\\s*(#)(.*?)(#)"}]},"external-link":{patterns:[{captures:{1:{name:"punctuation.definition.tag.link.external.wikitext"},2:{name:"entity.name.tag.url.wikitext"},3:{name:"string.other.link.external.title.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.definition.tag.link.external.wikitext"}},match:"(\\[)((?:(?:(?:http(?:s)?)|(?:ftp(?:s)?)):\\/\\/)[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])",name:"meta.link.external.wikitext"},{captures:{1:{name:"punctuation.definition.tag.link.external.wikitext"},2:{name:"invalid.illegal.bad-url.wikitext"},3:{name:"string.other.link.external.title.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.definition.tag.link.external.wikitext"}},match:"(\\[)([\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])",name:"invalid.illegal.bad-link.wikitext"}]},"font-style":{patterns:[{include:"#bold"},{include:"#italic"}],repository:{bold:{begin:"(''')",end:"(''')|$",name:"markup.bold.wikitext",patterns:[{include:"#italic"},{include:"$self"}]},italic:{begin:"('')",end:"((?=[^'])|(?=''))''((?=[^'])|(?=''))|$",name:"markup.italic.wikitext",patterns:[{include:"#bold"},{include:"$self"}]}}},heading:{captures:{2:{name:"string.quoted.other.heading.wikitext",patterns:[{include:"$self"}]}},match:"^(={1,6})\\s*(.+?)\\s*(\\1)$",name:"markup.heading.wikitext"},"internal-link":{TODO:"SINGLE LINE",begin:"(\\[\\[)(([^#:\\|\\[\\]\\{\\}]*:)*)?([^\\|\\[\\]]*)?",captures:{1:{name:"punctuation.definition.tag.link.internal.wikitext"},2:{name:"entity.name.tag.namespace.wikitext"},4:{name:"entity.other.attribute-name.wikitext"}},end:"(\\]\\])",name:"string.quoted.internal-link.wikitext",patterns:[{include:"$self"},{captures:{1:{name:"keyword.operator.wikitext"},5:{name:"entity.other.attribute-name.localname.wikitext"}},match:"(\\|)|(?:\\s*)(?:([-\\w.]+)((:)))?([-\\w.:]+)\\s*(=)"}]},list:{name:"markup.list.wikitext",patterns:[{captures:{1:{name:"punctuation.definition.list.begin.markdown.wikitext"}},match:"^([#*;:]+)"}]},"magic-words":{patterns:[{include:"#behavior-switches"},{include:"#outdated-behavior-switches"},{include:"#variables"}],repository:{"behavior-switches":{match:`(?x) # turn on extended mode
1
+ import t from"./CbViG2Xw.js";import e from"./CbYhyuC0.js";import i from"./DeVv6D4_.js";import n from"./ClXEvkw9.js";import a from"./BVGdgKAv.js";import s from"./B9S9BZZh.js";import m from"./Dwo2i-71.js";import d from"./BXfENWL6.js";import g from"./CarfVElc.js";import u from"./Cthz8VOO.js";import l from"./DbK06e1c.js";import o from"./beD-FUib.js";import c from"./CsYA0RN7.js";import r from"./CJQrLysU.js";import x from"./C5gCGmDW.js";import p from"./BPiaQZfK.js";import h from"./BF6G6X0H.js";import k from"./Bg0wAK5a.js";import b from"./RCJZWN-0.js";import w from"./BOnd8D4O.js";import f from"./DvyTQcux.js";import y from"./DNR26wTC.js";import C from"./BJn7Ek5W.js";import N from"./wChcbJ1V.js";import E from"./DhFF74a2.js";import $ from"./Dch3xQiY.js";import j from"./DYI1rfmx.js";import R from"./Du6_OKDb.js";import T from"./DHmGyzbM.js";import O from"./Dez-Qvcc.js";import G from"./BeX7Iu5M.js";import A from"./D384ylkT.js";import v from"./9ZOzOPqN.js";import I from"./DwuVtWc2.js";import L from"./D_T9yQUo.js";import M from"./DGxQkqYo.js";import S from"./vMsNTMhM.js";import D from"./BZfs-ost.js";import U from"./DC8MraHL.js";import H from"./DISxKEhY.js";import V from"./Djqq6n-7.js";import Y from"./DZLoTQm4.js";import q from"./DUdlC5k_.js";import _ from"./BdfWgkoX.js";import P from"./DS9ZWoKD.js";import B from"./BaNxgKSR.js";import W from"./Bfj2ThZ4.js";import z from"./BaedD2tq.js";import K from"./CupVZNk8.js";import"./DouzTJIq.js";import"./CMDmr8et.js";import"./DSrLtGYv.js";import"./Bj0fF4lQ.js";import"./nclm9rTJ.js";import"./DAGYewaG.js";const Z=Object.freeze({displayName:"Wikitext",name:"wikitext",patterns:[{include:"#wikitext"},{include:"text.html.basic"}],repository:{wikitext:{patterns:[{include:"#signature"},{include:"#redirect"},{include:"#magic-words"},{include:"#argument"},{include:"#template"},{include:"#convert"},{include:"#list"},{include:"#table"},{include:"#font-style"},{include:"#internal-link"},{include:"#external-link"},{include:"#heading"},{include:"#break"},{include:"#wikixml"},{include:"#extension-comments"}],repository:{argument:{begin:"({{{)",end:"(}}})",name:"variable.parameter.wikitext",patterns:[{captures:{1:{name:"variable.other.wikitext"},2:{name:"keyword.operator.wikitext"}},match:"(?:^|\\G)([^#:\\|\\[\\]\\{\\}\\|]*)(\\|)"},{include:"$self"}]},break:{match:"^-{4,}",name:"markup.changed.wikitext"},convert:{begin:"(-\\{(?!\\{))([a-zA-Z](\\|))?",captures:{1:{name:"punctuation.definition.tag.template.wikitext"},2:{name:"entity.name.function.type.wikitext"},3:{name:"keyword.operator.wikitext"}},end:"(\\}-)",patterns:[{include:"$self"},{captures:{1:{name:"entity.name.tag.language.wikitext"},2:{name:"punctuation.separator.key-value.wikitext"},3:{name:"string.unquoted.text.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.terminator.rule.wikitext"}},match:"(?:([a-zA-Z\\-]*)(:))?(.*?)(?:(;)|(?=\\}-))"}]},"extension-comments":{begin:"(<%--)\\s*(\\[)([A-Z_]*)(\\])",beginCaptures:{1:{name:"punctuation.definition.comment.extension.wikitext"},2:{name:"punctuation.definition.tag.extension.wikitext"},3:{name:"storage.type.extension.wikitext"},4:{name:"punctuation.definition.tag.extension.wikitext"}},end:"(\\[)([A-Z_]*)(\\])\\s*(--%>)",endCaptures:{1:{name:"punctuation.definition.tag.extension.wikitext"},2:{name:"storage.type.extension.wikitext"},3:{name:"punctuation.definition.tag.extension.wikitext"},4:{name:"punctuation.definition.comment.extension.wikitext"}},name:"comment.block.documentation.special.extension.wikitext",patterns:[{captures:{0:{name:"meta.object.member.extension.wikitext"},1:{name:"meta.object-literal.key.extension.wikitext"},2:{name:"punctuation.separator.dictionary.key-value.extension.wikitext"},3:{name:"punctuation.definition.string.begin.extension.wikitext"},4:{name:"string.quoted.other.extension.wikitext"},5:{name:"punctuation.definition.string.end.extension.wikitext"}},match:"(\\w*)\\s*(=)\\s*(#)(.*?)(#)"}]},"external-link":{patterns:[{captures:{1:{name:"punctuation.definition.tag.link.external.wikitext"},2:{name:"entity.name.tag.url.wikitext"},3:{name:"string.other.link.external.title.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.definition.tag.link.external.wikitext"}},match:"(\\[)((?:(?:(?:http(?:s)?)|(?:ftp(?:s)?)):\\/\\/)[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])",name:"meta.link.external.wikitext"},{captures:{1:{name:"punctuation.definition.tag.link.external.wikitext"},2:{name:"invalid.illegal.bad-url.wikitext"},3:{name:"string.other.link.external.title.wikitext",patterns:[{include:"$self"}]},4:{name:"punctuation.definition.tag.link.external.wikitext"}},match:"(\\[)([\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])",name:"invalid.illegal.bad-link.wikitext"}]},"font-style":{patterns:[{include:"#bold"},{include:"#italic"}],repository:{bold:{begin:"(''')",end:"(''')|$",name:"markup.bold.wikitext",patterns:[{include:"#italic"},{include:"$self"}]},italic:{begin:"('')",end:"((?=[^'])|(?=''))''((?=[^'])|(?=''))|$",name:"markup.italic.wikitext",patterns:[{include:"#bold"},{include:"$self"}]}}},heading:{captures:{2:{name:"string.quoted.other.heading.wikitext",patterns:[{include:"$self"}]}},match:"^(={1,6})\\s*(.+?)\\s*(\\1)$",name:"markup.heading.wikitext"},"internal-link":{TODO:"SINGLE LINE",begin:"(\\[\\[)(([^#:\\|\\[\\]\\{\\}]*:)*)?([^\\|\\[\\]]*)?",captures:{1:{name:"punctuation.definition.tag.link.internal.wikitext"},2:{name:"entity.name.tag.namespace.wikitext"},4:{name:"entity.other.attribute-name.wikitext"}},end:"(\\]\\])",name:"string.quoted.internal-link.wikitext",patterns:[{include:"$self"},{captures:{1:{name:"keyword.operator.wikitext"},5:{name:"entity.other.attribute-name.localname.wikitext"}},match:"(\\|)|(?:\\s*)(?:([-\\w.]+)((:)))?([-\\w.:]+)\\s*(=)"}]},list:{name:"markup.list.wikitext",patterns:[{captures:{1:{name:"punctuation.definition.list.begin.markdown.wikitext"}},match:"^([#*;:]+)"}]},"magic-words":{patterns:[{include:"#behavior-switches"},{include:"#outdated-behavior-switches"},{include:"#variables"}],repository:{"behavior-switches":{match:`(?x) # turn on extended mode
2
2
  (?i) # ignore case
3
3
  (__) # start: __
4
4
  (
@@ -1,7 +1,7 @@
1
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-scripts/_nuxt/entry.D91GVkD7.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bf6Ng02J.js">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D3J95Otb.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXFkqnOI.js">
6
6
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D6NljDpC.js">
7
7
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CowR2XfX.js">
@@ -19,7 +19,7 @@
19
19
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CupVZNk8.js">
20
20
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B4yE-MfL.js">
21
21
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CG4fK2Nq.js">
22
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DGMFlOLs.js">
22
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BmSZh3NL.js">
23
23
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C5gCGmDW.js">
24
24
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B2DkETJQ.js">
25
25
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/RCJZWN-0.js">
@@ -34,7 +34,7 @@
34
34
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BaNxgKSR.js">
35
35
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/RE3ujT-k.js">
36
36
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DS9ZWoKD.js">
37
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BAMIS8DD.js">
37
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BJn7Ek5W.js">
38
38
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/wChcbJ1V.js">
39
39
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DAGYewaG.js">
40
40
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CsyrCbsw.js">
@@ -126,8 +126,8 @@
126
126
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C9d3aiqh.js">
127
127
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dble9ECP.js">
128
128
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DGEpfOTx.js">
129
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o5b8QYQO.js">
130
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Db2-y2xY.js">
129
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bfj2ThZ4.js">
130
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bj0fF4lQ.js">
131
131
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dg0DGYq4.js">
132
132
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Ksn5IXup.js">
133
133
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DdacRhvC.js">
@@ -160,7 +160,7 @@
160
160
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BwXNTs7T.js">
161
161
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/MS3qTAOR.js">
162
162
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/FJDVp-XM.js">
163
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B5NHDIr7.js">
163
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Cp2HGa90.js">
164
164
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D384ylkT.js">
165
165
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Lpdzc9s2.js">
166
166
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CrhH3_Og.js">
@@ -202,7 +202,7 @@
202
202
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Cicx_DS6.js">
203
203
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D3VXSfF0.js">
204
204
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZz1Hhek.js">
205
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/P5f3PASf.js">
205
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/zhgf4ixb.js">
206
206
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CJQrLysU.js">
207
207
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BICIrM8O.js">
208
208
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B1nm99XP.js">
@@ -254,10 +254,10 @@
254
254
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bxkoe-BC.js">
255
255
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Br6ll-O0.js">
256
256
  <link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-404.BRldFSII.css">
257
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ISosJq17.js">
258
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C0cterrC.js">
257
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ixTSYuOP.js">
258
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BB1wM0JV.js">
259
259
  <link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-500.D8yw_IbC.css">
260
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BsZo98M5.js">
261
- <script type="module" src="/__nuxt-scripts/_nuxt/Bf6Ng02J.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
260
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Gn7Sk0ke.js">
261
+ <script type="module" src="/__nuxt-scripts/_nuxt/D3J95Otb.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
262
262
  </script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
263
263
  <script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{defaultScriptOptions:{trigger:"onNuxtReady"}}},app:{baseURL:"/__nuxt-scripts",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3",
6
6
  "bridge": false
7
7
  },
8
- "version": "0.4.4",
8
+ "version": "0.4.6",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.7.0",
11
11
  "unbuild": "2.0.0"
@@ -1,13 +1,5 @@
1
- import { SegmentInput } from '../dist/runtime/registry/segment.js';
2
- import { PlausibleAnalyticsInput } from '../dist/runtime/registry/plausible-analytics.js';
3
- import { GoogleAnalyticsInput } from '../dist/runtime/registry/google-analytics.js';
4
1
  import { RegistryScripts } from '../dist/runtime/types.js';
5
2
 
6
- declare function GoogleAnalyticsScriptResolver(options?: GoogleAnalyticsInput): string;
7
- declare function PlausibleAnalyticsScriptResolver(options: PlausibleAnalyticsInput): string;
8
- declare function CloudflareWebAnalyticsScriptResolver(): string;
9
- declare function SegmentScriptResolver(options: SegmentInput): string;
10
- declare function MetaPixelScriptResolver(): string;
11
3
  declare const registry: (resolve?: (s: string) => string) => RegistryScripts;
12
4
 
13
- export { CloudflareWebAnalyticsScriptResolver, GoogleAnalyticsScriptResolver, MetaPixelScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
5
+ export { registry };
@@ -1,13 +1,5 @@
1
- import { SegmentInput } from '../dist/runtime/registry/segment.js';
2
- import { PlausibleAnalyticsInput } from '../dist/runtime/registry/plausible-analytics.js';
3
- import { GoogleAnalyticsInput } from '../dist/runtime/registry/google-analytics.js';
4
1
  import { RegistryScripts } from '../dist/runtime/types.js';
5
2
 
6
- declare function GoogleAnalyticsScriptResolver(options?: GoogleAnalyticsInput): string;
7
- declare function PlausibleAnalyticsScriptResolver(options: PlausibleAnalyticsInput): string;
8
- declare function CloudflareWebAnalyticsScriptResolver(): string;
9
- declare function SegmentScriptResolver(options: SegmentInput): string;
10
- declare function MetaPixelScriptResolver(): string;
11
3
  declare const registry: (resolve?: (s: string) => string) => RegistryScripts;
12
4
 
13
- export { CloudflareWebAnalyticsScriptResolver, GoogleAnalyticsScriptResolver, MetaPixelScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
5
+ export { registry };
package/dist/registry.mjs CHANGED
@@ -1,23 +1,5 @@
1
1
  import { withQuery, joinURL, withBase } from 'ufo';
2
2
 
3
- function GoogleAnalyticsScriptResolver(options) {
4
- return withQuery("https://www.googletagmanager.com/gtag/js", {
5
- id: options?.id
6
- });
7
- }
8
- function PlausibleAnalyticsScriptResolver(options) {
9
- const extensions = Array.isArray(options?.extension) ? options.extension.join(".") : [options?.extension];
10
- return options?.extension ? `https://plausible.io/js/script.${extensions}.js` : "https://plausible.io/js/script.js";
11
- }
12
- function CloudflareWebAnalyticsScriptResolver() {
13
- return "https://static.cloudflareinsights.com/beacon.min.js";
14
- }
15
- function SegmentScriptResolver(options) {
16
- return joinURL("https://cdn.segment.com/analytics.js/v1", options?.writeKey || "", "analytics.min.js");
17
- }
18
- function MetaPixelScriptResolver() {
19
- return "https://connect.facebook.net/en_US/fbevents.js";
20
- }
21
3
  const registry = (resolve) => {
22
4
  resolve = resolve || ((s) => s);
23
5
  return [
@@ -26,7 +8,9 @@ const registry = (resolve) => {
26
8
  label: "Google Analytics",
27
9
  category: "analytics",
28
10
  logo: `<svg xmlns="http://www.w3.org/2000/svg" width="28.85" height="32" viewBox="0 0 256 284"><path fill="#F9AB00" d="M256.003 247.933a35.224 35.224 0 0 1-39.376 35.161c-18.044-2.67-31.266-18.371-30.826-36.606V36.845C185.365 18.591 198.62 2.881 216.687.24a35.221 35.221 0 0 1 39.316 35.16z"/><path fill="#E37400" d="M35.101 213.193c19.386 0 35.101 15.716 35.101 35.101c0 19.386-15.715 35.101-35.101 35.101S0 267.68 0 248.295c0-19.386 15.715-35.102 35.101-35.102m92.358-106.387c-19.477 1.068-34.59 17.406-34.137 36.908v94.285c0 25.588 11.259 41.122 27.755 44.433a35.161 35.161 0 0 0 42.146-34.56V142.089a35.222 35.222 0 0 0-35.764-35.282"/></svg>`,
29
- scriptBundling: GoogleAnalyticsScriptResolver,
11
+ scriptBundling: (options) => withQuery("https://www.googletagmanager.com/gtag/js", {
12
+ id: options?.id
13
+ }),
30
14
  import: {
31
15
  name: "useScriptGoogleAnalytics",
32
16
  from: resolve("./runtime/registry/google-analytics")
@@ -35,7 +19,10 @@ const registry = (resolve) => {
35
19
  {
36
20
  label: "Plausible Analytics",
37
21
  category: "analytics",
38
- scriptBundling: PlausibleAnalyticsScriptResolver,
22
+ scriptBundling: (options) => {
23
+ const extensions = Array.isArray(options?.extension) ? options.extension.join(".") : [options?.extension];
24
+ return options?.extension ? `https://plausible.io/js/script.${extensions}.js` : "https://plausible.io/js/script.js";
25
+ },
39
26
  logo: `<svg height="32" id="Layer_2" viewBox="0 0 46 60" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient id="New_Gradient_Swatch_1" x1="14.841" y1="22.544" x2="27.473" y2="44.649" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#909cf7"/><stop offset="1" stop-color="#4b38d8"/></linearGradient><linearGradient id="New_Gradient_Swatch_1-2" x1="7.984" y1="-1.358" x2="21.001" y2="21.422" xlink:href="#New_Gradient_Swatch_1"/><style>.cls-3{stroke-width:0;fill:#1f2961}</style></defs><g id="Plausible_-_Branding"><g id="Gradient_Logo_-_Purple_Gradient_on_White"><g id="Symbol_-_Purple_Gradient"><path d="M45.246 22.603C44.155 33.059 35.013 40.83 24.5 40.83h-4.047v9.57a9.6 9.6 0 0 1-9.6 9.6H3.36A3.36 3.36 0 0 1 0 56.64V36.938l5.038-7.07a3.362 3.362 0 0 1 4.037-1.149l2.866 1.2a3.353 3.353 0 0 0 4.025-1.145l6.717-9.417a3.34 3.34 0 0 1 4.014-1.14l5.52 2.32a3.347 3.347 0 0 0 4.022-1.142l6.46-9.063c2.025 3.56 3.014 7.789 2.547 12.27Z" style="stroke-width:0;fill:url(#New_Gradient_Swatch_1)"/><path d="M3.292 28.873c.823-1.155 2.021-2.044 3.414-2.312a5.41 5.41 0 0 1 3.147.316l2.865 1.2a1.357 1.357 0 0 0 1.62-.464l6.594-9.245c.823-1.154 2.02-2.041 3.412-2.309a5.368 5.368 0 0 1 3.128.314l5.52 2.32a1.35 1.35 0 0 0 1.619-.46l6.919-9.707C37.827 3.364 31.78 0 24.945 0H3.36A3.36 3.36 0 0 0 0 3.36v30.132l3.292-4.62Z" style="fill:url(#New_Gradient_Swatch_1-2);stroke-width:0"/></g></g></g></svg>`,
40
27
  import: {
41
28
  name: "useScriptPlausibleAnalytics",
@@ -44,7 +31,7 @@ const registry = (resolve) => {
44
31
  },
45
32
  {
46
33
  label: "Cloudflare Web Analytics",
47
- scriptBundling: CloudflareWebAnalyticsScriptResolver,
34
+ src: "https://static.cloudflareinsights.com/beacon.min.js",
48
35
  category: "analytics",
49
36
  logo: `<svg xmlns="http://www.w3.org/2000/svg" width="70.02" height="32" viewBox="0 0 256 117"><path fill="#FBAD41" d="M205.52 50.813c-.858 0-1.705.03-2.551.058c-.137.007-.272.04-.398.094a1.424 1.424 0 0 0-.92.994l-3.628 12.672c-1.565 5.449-.983 10.48 1.646 14.174c2.41 3.416 6.42 5.421 11.289 5.655l19.679 1.194c.585.03 1.092.312 1.4.776a1.92 1.92 0 0 1 .2 1.692a2.496 2.496 0 0 1-2.134 1.662l-20.448 1.193c-11.11.515-23.062 9.58-27.255 20.633l-1.474 3.9a1.092 1.092 0 0 0 .967 1.49h70.425a1.872 1.872 0 0 0 1.81-1.365A51.172 51.172 0 0 0 256 101.828c0-28.16-22.582-50.984-50.449-50.984"/><path fill="#F6821F" d="m174.782 115.362l1.303-4.583c1.568-5.449.987-10.48-1.639-14.173c-2.418-3.417-6.424-5.422-11.296-5.656l-92.312-1.193a1.822 1.822 0 0 1-1.459-.776a1.919 1.919 0 0 1-.203-1.693a2.496 2.496 0 0 1 2.154-1.662l93.173-1.193c11.063-.511 23.015-9.58 27.208-20.633l5.313-14.04c.214-.596.27-1.238.156-1.86C191.126 20.51 166.91 0 137.96 0C111.269 0 88.626 17.403 80.5 41.596a26.996 26.996 0 0 0-19.156-5.359C48.549 37.524 38.25 47.946 36.979 60.88a27.905 27.905 0 0 0 .702 9.642C16.773 71.145 0 88.454 0 109.726c0 1.923.137 3.818.413 5.667c.115.897.879 1.57 1.783 1.568h170.48a2.223 2.223 0 0 0 2.106-1.63"/></svg>`,
50
37
  import: {
@@ -86,7 +73,9 @@ const registry = (resolve) => {
86
73
  },
87
74
  {
88
75
  label: "Segment",
89
- scriptBundling: SegmentScriptResolver,
76
+ scriptBundling: (options) => {
77
+ return joinURL("https://cdn.segment.com/analytics.js/v1", options?.writeKey || "", "analytics.min.js");
78
+ },
90
79
  logo: `<svg xmlns="http://www.w3.org/2000/svg" width="30.92" height="32" viewBox="0 0 256 265"><path fill="#4FB58B" d="m233.56 141.927l.17.013l17.892 1.87a4.927 4.927 0 0 1 3.225 1.707l.133.163l-.17.085a4.93 4.93 0 0 1 1.02 3.74a133.272 133.272 0 0 1-41.604 81.083a128.86 128.86 0 0 1-87.629 34.38a127.488 127.488 0 0 1-46.156-8.57l-.802-.312a4.716 4.716 0 0 1-2.686-2.533l-.077-.187a4.891 4.891 0 0 1-.083-3.66l7.062-17.23a4.846 4.846 0 0 1 6.118-2.799l.163.06c36.097 13.939 76.98 6.089 105.349-20.227a104.455 104.455 0 0 0 32.891-63.32a4.93 4.93 0 0 1 5.013-4.27zm-190.08 64.31l.251-.002l.253.002c8.12.093 14.658 6.659 14.746 14.749v.253c0 .084 0 .168-.002.252c-.141 8.284-6.97 14.886-15.254 14.745c-8.284-.141-14.885-6.97-14.745-15.254c.139-8.115 6.695-14.615 14.75-14.745M4.93 147.082h146.316a4.973 4.973 0 0 1 4.928 4.844l.002.171v18.316a4.974 4.974 0 0 1-4.76 5.01l-.17.005H4.93A4.975 4.975 0 0 1 0 170.584v-18.659a4.975 4.975 0 0 1 4.755-4.838zM169.56 7.311a4.974 4.974 0 0 1 2.848 2.635a5.096 5.096 0 0 1 0 3.867l-6.375 16.999a4.845 4.845 0 0 1-6.162 2.974A101.228 101.228 0 0 0 62.13 51.252a105.267 105.267 0 0 0-34.507 54.99a4.93 4.93 0 0 1-4.76 3.698h-1.105L4.25 105.733a4.886 4.886 0 0 1-3.103-2.295h-.085A4.929 4.929 0 0 1 .51 99.57a133.393 133.393 0 0 1 44.41-70.204C79.739.7 127.019-7.666 169.56 7.311m-64.807 73.434H251.07a4.972 4.972 0 0 1 4.922 4.67l.008.174v18.317a4.973 4.973 0 0 1-4.76 5.01l-.17.005H104.754a4.972 4.972 0 0 1-4.886-4.842l-.002-.173V85.759a4.972 4.972 0 0 1 4.715-5.008zm101.572-55.883l.252-.002l.253.002c8.12.093 14.658 6.659 14.746 14.748v.253c0 .085 0 .17-.002.253c-.14 8.284-6.97 14.885-15.254 14.744c-8.284-.14-14.885-6.97-14.744-15.253c.138-8.116 6.694-14.616 14.749-14.745"/></svg>`,
91
80
  category: "tracking",
92
81
  import: {
@@ -96,7 +85,7 @@ const registry = (resolve) => {
96
85
  },
97
86
  {
98
87
  label: "Meta Pixel",
99
- scriptBundling: MetaPixelScriptResolver,
88
+ src: "https://connect.facebook.net/en_US/fbevents.js",
100
89
  category: "tracking",
101
90
  logo: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="#1877F2" d="M256 128C256 57.308 198.692 0 128 0C57.308 0 0 57.308 0 128c0 63.888 46.808 116.843 108 126.445V165H75.5v-37H108V99.8c0-32.08 19.11-49.8 48.348-49.8C170.352 50 185 52.5 185 52.5V84h-16.14C152.959 84 148 93.867 148 103.99V128h35.5l-5.675 37H148v89.445c61.192-9.602 108-62.556 108-126.445"/><path fill="#FFF" d="m177.825 165l5.675-37H148v-24.01C148 93.866 152.959 84 168.86 84H185V52.5S170.352 50 156.347 50C127.11 50 108 67.72 108 99.8V128H75.5v37H108v89.445A128.959 128.959 0 0 0 128 256a128.9 128.9 0 0 0 20-1.555V165z"/></svg>`,
102
91
  import: {
@@ -117,6 +106,21 @@ const registry = (resolve) => {
117
106
  from: resolve("./runtime/registry/x-pixel")
118
107
  }
119
108
  },
109
+ // ads
110
+ {
111
+ label: "Google Adsense",
112
+ scriptBundling: (options) => {
113
+ return withQuery("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", {
114
+ client: options?.client
115
+ });
116
+ },
117
+ category: "ads",
118
+ logo: `<svg xmlns="http://www.w3.org/2000/svg" width="36.09" height="32" viewBox="0 0 256 227"><path fill="#FBBC04" d="M161.8 62.158c11.581-19.822 4.705-45.154-15.355-56.603C126.376-5.878 100.723.899 89.142 20.72c-.51.888-.99 1.794-1.44 2.715L48.553 90.41a49.41 49.41 0 0 0-2.401 4.112L5.495 164.681l72.65 40.721l40.45-69.566a40.013 40.013 0 0 0 2.402-4.112l39.15-66.983a45.769 45.769 0 0 0 1.654-2.583"/><path fill="#34A853" d="M78.483 205.189c-11.515 20.142-37.49 27.553-57.434 15.931c-19.954-11.63-27.036-36.847-15.513-56.982c11.523-20.134 37.267-27.578 57.22-15.956c19.954 11.63 27.241 36.872 15.727 56.998"/><path fill="#4285F4" d="M235.257 75.417c-19.83-11.429-45.17-4.661-56.661 15.134l-41.478 71.67c-11.428 19.755-4.678 45.033 15.076 56.46l.107.062c19.835 11.433 45.18 4.66 56.67-15.142l41.469-71.663c11.426-19.76 4.67-45.042-15.09-56.468z"/></svg>`,
119
+ import: {
120
+ name: "useScriptGoogleAdsense",
121
+ from: resolve("./runtime/registry/google-adsense")
122
+ }
123
+ },
120
124
  // marketing
121
125
  {
122
126
  label: "Intercom",
@@ -211,4 +215,4 @@ const registry = (resolve) => {
211
215
  ];
212
216
  };
213
217
 
214
- export { CloudflareWebAnalyticsScriptResolver, GoogleAnalyticsScriptResolver, MetaPixelScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
218
+ export { registry };
@@ -0,0 +1,50 @@
1
+ <script setup lang="ts">
2
+ import { callOnce, onMounted, ref, useElementScriptTrigger, useScriptGoogleAdsense } from '#imports'
3
+ import type { ElementScriptTrigger } from '#nuxt-scripts'
4
+
5
+ const props = withDefaults(defineProps<{
6
+ dataAdClient: string
7
+ dataAdSlot: string
8
+ dataAdFormat?: 'auto'
9
+ dataFullWidthResponsive?: boolean
10
+ /**
11
+ * Defines the trigger event to load the script.
12
+ */
13
+ trigger?: ElementScriptTrigger
14
+ }>(), {
15
+ dataAdFormat: 'auto',
16
+ dataFullWidthResponsive: true,
17
+ })
18
+
19
+ const rootEl = ref(null)
20
+ const trigger = useElementScriptTrigger({ trigger: props.trigger, el: rootEl })
21
+
22
+ const { $script } = useScriptGoogleAdsense({
23
+ client: props.dataAdClient,
24
+ scriptOptions: {
25
+ trigger,
26
+ },
27
+ })
28
+
29
+ onMounted(() => {
30
+ callOnce(() => {
31
+ (window.adsbygoogle = window.adsbygoogle || []).push({})
32
+ })
33
+ })
34
+ </script>
35
+
36
+ <template>
37
+ <ins
38
+ ref="rootEl"
39
+ class="adsbygoogle"
40
+ style="display: block;"
41
+ :data-ad-client="dataAdClient"
42
+ :data-ad-slot="dataAdSlot"
43
+ :data-ad-format="dataAdFormat"
44
+ :data-full-width-responsive="dataFullWidthResponsive"
45
+ v-bind="{ ...$attrs }"
46
+ >
47
+ <slot v-if="$script.status.value === 'awaitingLoad'" name="awaitingLoad" />
48
+ <slot v-if="$script.status.value === 'loading'" name="loading" />
49
+ </ins>
50
+ </template>
@@ -1,2 +1,5 @@
1
1
  import type { TrackedPage } from '#nuxt-scripts';
2
- export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<any>;
2
+ export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<{
3
+ title?: string | undefined;
4
+ path: string;
5
+ }>;
@@ -29,6 +29,8 @@ export function useElementScriptTrigger(options) {
29
29
  });
30
30
  if (el && options.trigger === "visible")
31
31
  return useElementVisibilityPromise(el);
32
+ if (!trigger)
33
+ return Promise.resolve();
32
34
  if (trigger !== "immediate") {
33
35
  return new Promise((resolve) => {
34
36
  const _ = useEventListener(
@@ -16,7 +16,22 @@ declare global {
16
16
  interface Window extends CloudflareWebAnalyticsApi {
17
17
  }
18
18
  }
19
- export declare const CloudflareWebAnalyticsOptions: any;
19
+ export declare const CloudflareWebAnalyticsOptions: import("valibot").ObjectSchema<{
20
+ /**
21
+ * The Cloudflare Web Analytics token.
22
+ */
23
+ token: import("valibot").StringSchema<string>;
24
+ /**
25
+ * Cloudflare Web Analytics enables measuring SPAs automatically by overriding the History API’s pushState function
26
+ * and listening to the onpopstate. Hash-based router is not supported.
27
+ *
28
+ * @default true
29
+ */
30
+ spa: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
31
+ }, undefined, {
32
+ token: string;
33
+ spa?: boolean | undefined;
34
+ }>;
20
35
  export type CloudflareWebAnalyticsInput = RegistryScriptInput<typeof CloudflareWebAnalyticsOptions>;
21
36
  export declare function useScriptCloudflareWebAnalytics<T extends CloudflareWebAnalyticsApi>(_options?: CloudflareWebAnalyticsInput): T & {
22
37
  $script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
@@ -1,5 +1,32 @@
1
1
  import type { RegistryScriptInput } from '#nuxt-scripts';
2
- export declare const FathomAnalyticsOptions: any;
2
+ export declare const FathomAnalyticsOptions: import("valibot").ObjectSchema<{
3
+ /**
4
+ * The Fathom Analytics site ID.
5
+ */
6
+ site: import("valibot").StringSchema<string>;
7
+ /**
8
+ * The Fathom Analytics tracking mode.
9
+ */
10
+ spa: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"auto", "auto"> | import("valibot").LiteralSchema<"history", "history"> | import("valibot").LiteralSchema<"hash", "hash">)[], "auto" | "history" | "hash">, undefined, "auto" | "history" | "hash" | undefined>;
11
+ /**
12
+ * Automatically track page views.
13
+ */
14
+ auto: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
15
+ /**
16
+ * Enable canonical URL tracking.
17
+ */
18
+ canonical: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
19
+ /**
20
+ * Honor Do Not Track requests.
21
+ */
22
+ honorDnt: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
23
+ }, undefined, {
24
+ site: string;
25
+ spa?: "auto" | "history" | "hash" | undefined;
26
+ auto?: boolean | undefined;
27
+ canonical?: boolean | undefined;
28
+ honorDnt?: boolean | undefined;
29
+ }>;
3
30
  export type FathomAnalyticsInput = RegistryScriptInput<typeof FathomAnalyticsOptions, false>;
4
31
  export interface FathomAnalyticsApi {
5
32
  beacon: (ctx: {
@@ -0,0 +1,30 @@
1
+ import type { RegistryScriptInput } from '#nuxt-scripts';
2
+ export declare const GoogleAdsenseOptions: import("valibot").ObjectSchema<{
3
+ /**
4
+ * The Google Adsense ID.
5
+ */
6
+ client: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
7
+ }, undefined, {
8
+ client?: string | undefined;
9
+ }>;
10
+ export type GoogleAdsenseInput = RegistryScriptInput<typeof GoogleAdsenseOptions>;
11
+ export interface GoogleAdsenseApi {
12
+ /**
13
+ * The Google Adsense API.
14
+ */
15
+ adsbygoogle: any[] & {
16
+ loaded: boolean;
17
+ };
18
+ }
19
+ declare global {
20
+ interface Window extends GoogleAdsenseApi {
21
+ }
22
+ }
23
+ /**
24
+ * useScriptGoogleAdsense
25
+ *
26
+ * A 3P wrapper for Google Analytics that takes an options input to feed into third-party-capital({@link https://github.com/GoogleChromeLabs/third-party-capital}), which returns instructions for nuxt-scripts.
27
+ */
28
+ export declare function useScriptGoogleAdsense<T extends GoogleAdsenseApi>(_options?: GoogleAdsenseInput): T & {
29
+ $script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
30
+ };
@@ -0,0 +1,37 @@
1
+ import { optional } from "valibot";
2
+ import { useRegistryScript } from "../utils.js";
3
+ import { object, string } from "#nuxt-scripts-validator";
4
+ import { useHead } from "#imports";
5
+ export const GoogleAdsenseOptions = object({
6
+ /**
7
+ * The Google Adsense ID.
8
+ */
9
+ client: optional(string())
10
+ });
11
+ export function useScriptGoogleAdsense(_options) {
12
+ return useRegistryScript("googleAdsense", (options) => ({
13
+ scriptInput: {
14
+ src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
15
+ },
16
+ schema: import.meta.dev ? GoogleAdsenseOptions : void 0,
17
+ scriptOptions: {
18
+ use() {
19
+ return { adsbygoogle: window.adsbygoogle };
20
+ },
21
+ // allow dataLayer to be accessed on the server
22
+ stub: import.meta.client ? void 0 : ({ fn }) => {
23
+ return fn === "adsbygoogle" ? [] : void 0;
24
+ },
25
+ beforeInit() {
26
+ useHead({
27
+ meta: [
28
+ {
29
+ name: "google-adsense-account",
30
+ content: options?.client
31
+ }
32
+ ]
33
+ });
34
+ }
35
+ }
36
+ }), _options);
37
+ }
@@ -1,6 +1,13 @@
1
1
  import type { GoogleAnalyticsApi } from 'third-party-capital';
2
2
  import type { RegistryScriptInput } from '#nuxt-scripts';
3
- export declare const GoogleAnalyticsOptions: any;
3
+ export declare const GoogleAnalyticsOptions: import("valibot").ObjectSchema<{
4
+ /**
5
+ * The Google Analytics ID.
6
+ */
7
+ id: import("valibot").StringSchema<string>;
8
+ }, undefined, {
9
+ id: string;
10
+ }>;
4
11
  export type GoogleAnalyticsInput = RegistryScriptInput<typeof GoogleAnalyticsOptions>;
5
12
  declare global {
6
13
  interface Window extends GoogleAnalyticsApi {
@@ -1,5 +1,5 @@
1
+ import { withQuery } from "ufo";
1
2
  import { useRegistryScript } from "../utils.js";
2
- import { GoogleAnalyticsScriptResolver } from "../../registry";
3
3
  import { object, string } from "#nuxt-scripts-validator";
4
4
  export const GoogleAnalyticsOptions = object({
5
5
  /**
@@ -10,7 +10,9 @@ export const GoogleAnalyticsOptions = object({
10
10
  export function useScriptGoogleAnalytics(_options) {
11
11
  return useRegistryScript("googleAnalytics", (options) => ({
12
12
  scriptInput: {
13
- src: GoogleAnalyticsScriptResolver(options)
13
+ src: withQuery("https://www.googletagmanager.com/gtag/js", {
14
+ id: options?.id
15
+ })
14
16
  },
15
17
  schema: import.meta.dev ? GoogleAnalyticsOptions : void 0,
16
18
  scriptOptions: {
@@ -7,7 +7,15 @@ declare namespace google {
7
7
  function __ib__(): void;
8
8
  }
9
9
  }
10
- export declare const GoogleMapsOptions: any;
10
+ export declare const GoogleMapsOptions: import("valibot").ObjectSchema<{
11
+ apiKey: import("valibot").StringSchema<string>;
12
+ libraries: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<string>, string[]>, undefined, string[] | undefined>;
13
+ v: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"weekly", "weekly"> | import("valibot").LiteralSchema<"beta", "beta"> | import("valibot").LiteralSchema<"alpha", "alpha">)[], "weekly" | "beta" | "alpha">, undefined, "weekly" | "beta" | "alpha" | undefined>;
14
+ }, undefined, {
15
+ apiKey: string;
16
+ libraries?: string[] | undefined;
17
+ v?: "weekly" | "beta" | "alpha" | undefined;
18
+ }>;
11
19
  export type GoogleMapsInput = RegistryScriptInput<typeof GoogleMapsOptions>;
12
20
  export interface GoogleMapsApi {
13
21
  maps: typeof window.google.maps;
@@ -1,6 +1,10 @@
1
1
  import type { GoogleTagManagerApi } from 'third-party-capital';
2
2
  import type { RegistryScriptInput } from '#nuxt-scripts';
3
- declare const GoogleTagManagerOptions: any;
3
+ declare const GoogleTagManagerOptions: import("valibot").ObjectSchema<{
4
+ id: import("valibot").StringSchema<string>;
5
+ }, undefined, {
6
+ id: string;
7
+ }>;
4
8
  export type GoogleTagManagerInput = RegistryScriptInput<typeof GoogleTagManagerOptions>;
5
9
  declare global {
6
10
  interface Window extends GoogleTagManagerApi {
@@ -12,7 +12,13 @@ declare global {
12
12
  };
13
13
  }
14
14
  }
15
- export declare const HotjarOptions: any;
15
+ export declare const HotjarOptions: import("valibot").ObjectSchema<{
16
+ id: import("valibot").NumberSchema<number>;
17
+ sv: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
18
+ }, undefined, {
19
+ id: number;
20
+ sv?: number | undefined;
21
+ }>;
16
22
  export type HotjarInput = RegistryScriptInput<typeof HotjarOptions>;
17
23
  export declare function useScriptHotjar<T extends HotjarApi>(_options?: HotjarInput): T & {
18
24
  $script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;