@nuxt/scripts 1.0.0-beta.1 → 1.0.0-beta.13

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 (139) hide show
  1. package/README.md +6 -0
  2. package/dist/client/200.html +1 -1
  3. package/dist/client/404.html +1 -1
  4. package/dist/client/_nuxt/48AF9EJD.js +1 -0
  5. package/dist/client/_nuxt/Bk6ed9rg.js +1 -0
  6. package/dist/client/_nuxt/C4Cj8gBr.js +162 -0
  7. package/dist/client/_nuxt/{DTDyDxvR.js → DP0kj6Xn.js} +1 -1
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/0e95b1cc-8751-4000-8cb4-a6ef270b636f.json +1 -0
  10. package/dist/client/_nuxt/entry.D45OuV0w.css +1 -0
  11. package/dist/client/_nuxt/error-404.B57D-jUQ.css +1 -0
  12. package/dist/client/_nuxt/error-500.DTHUW7BI.css +1 -0
  13. package/dist/client/index.html +1 -1
  14. package/dist/module.d.mts +87 -2
  15. package/dist/module.d.ts +176 -0
  16. package/dist/module.json +1 -1
  17. package/dist/module.mjs +710 -273
  18. package/dist/registry.d.ts +6 -0
  19. package/dist/registry.mjs +42 -19
  20. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.d.vue.ts +1 -1
  21. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue +6 -6
  22. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue.d.ts +1 -1
  23. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue +6 -6
  24. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.vue +7 -7
  25. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue +6 -6
  26. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue +12 -12
  27. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue +6 -6
  28. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.d.vue.ts +1 -1
  29. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue +6 -6
  30. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue.d.ts +1 -1
  31. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue +5 -5
  32. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.vue +7 -7
  33. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.vue +7 -7
  34. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.vue +7 -7
  35. package/dist/runtime/components/ScriptCrisp.vue +1 -1
  36. package/dist/runtime/components/ScriptGoogleAdsense.vue +1 -1
  37. package/dist/runtime/components/ScriptInstagramEmbed.d.vue.ts +53 -0
  38. package/dist/runtime/components/ScriptInstagramEmbed.vue +38 -0
  39. package/dist/runtime/components/ScriptInstagramEmbed.vue.d.ts +53 -0
  40. package/dist/runtime/components/ScriptIntercom.vue +4 -3
  41. package/dist/runtime/components/ScriptLoadingIndicator.d.vue.ts +1 -1
  42. package/dist/runtime/components/ScriptLoadingIndicator.vue.d.ts +1 -1
  43. package/dist/runtime/components/ScriptPayPalButtons.d.vue.ts +2 -2
  44. package/dist/runtime/components/ScriptPayPalButtons.vue +13 -11
  45. package/dist/runtime/components/ScriptPayPalButtons.vue.d.ts +2 -2
  46. package/dist/runtime/components/ScriptPayPalMarks.d.vue.ts +2 -2
  47. package/dist/runtime/components/ScriptPayPalMarks.vue +10 -8
  48. package/dist/runtime/components/ScriptPayPalMarks.vue.d.ts +2 -2
  49. package/dist/runtime/components/ScriptPayPalMessages.d.vue.ts +2 -2
  50. package/dist/runtime/components/ScriptPayPalMessages.vue +11 -9
  51. package/dist/runtime/components/ScriptPayPalMessages.vue.d.ts +2 -2
  52. package/dist/runtime/components/ScriptStripePricingTable.vue +2 -2
  53. package/dist/runtime/components/ScriptVimeoPlayer.vue +1 -1
  54. package/dist/runtime/components/ScriptXEmbed.d.vue.ts +82 -0
  55. package/dist/runtime/components/ScriptXEmbed.vue +76 -0
  56. package/dist/runtime/components/ScriptXEmbed.vue.d.ts +82 -0
  57. package/dist/runtime/components/ScriptYouTubePlayer.vue +7 -4
  58. package/dist/runtime/composables/useScript.js +32 -6
  59. package/dist/runtime/composables/useScriptEventPage.js +2 -2
  60. package/dist/runtime/composables/useScriptTriggerConsent.js +1 -1
  61. package/dist/runtime/composables/useScriptTriggerElement.js +1 -1
  62. package/dist/runtime/composables/useScriptTriggerIdleTimeout.js +1 -1
  63. package/dist/runtime/composables/useScriptTriggerServiceWorker.d.ts +7 -0
  64. package/dist/runtime/composables/useScriptTriggerServiceWorker.js +39 -0
  65. package/dist/runtime/registry/clarity.js +21 -25
  66. package/dist/runtime/registry/cloudflare-web-analytics.js +1 -1
  67. package/dist/runtime/registry/crisp.js +1 -1
  68. package/dist/runtime/registry/databuddy-analytics.js +1 -1
  69. package/dist/runtime/registry/fathom-analytics.js +1 -1
  70. package/dist/runtime/registry/google-adsense.js +1 -1
  71. package/dist/runtime/registry/google-analytics.js +2 -2
  72. package/dist/runtime/registry/google-maps.d.ts +1 -1
  73. package/dist/runtime/registry/google-maps.js +1 -1
  74. package/dist/runtime/registry/google-recaptcha.js +2 -2
  75. package/dist/runtime/registry/google-sign-in.js +1 -1
  76. package/dist/runtime/registry/google-tag-manager.d.ts +1 -1
  77. package/dist/runtime/registry/google-tag-manager.js +2 -2
  78. package/dist/runtime/registry/hotjar.js +1 -1
  79. package/dist/runtime/registry/instagram-embed.d.ts +23 -0
  80. package/dist/runtime/registry/instagram-embed.js +22 -0
  81. package/dist/runtime/registry/intercom.js +1 -1
  82. package/dist/runtime/registry/lemon-squeezy.d.ts +0 -1
  83. package/dist/runtime/registry/matomo-analytics.js +2 -2
  84. package/dist/runtime/registry/meta-pixel.js +1 -1
  85. package/dist/runtime/registry/npm.js +1 -1
  86. package/dist/runtime/registry/paypal.d.ts +1 -1
  87. package/dist/runtime/registry/paypal.js +2 -2
  88. package/dist/runtime/registry/plausible-analytics.js +15 -9
  89. package/dist/runtime/registry/posthog.d.ts +3 -2
  90. package/dist/runtime/registry/posthog.js +8 -12
  91. package/dist/runtime/registry/reddit-pixel.js +1 -1
  92. package/dist/runtime/registry/rybbit-analytics.js +5 -3
  93. package/dist/runtime/registry/segment.js +1 -1
  94. package/dist/runtime/registry/snapchat-pixel.js +1 -1
  95. package/dist/runtime/registry/stripe.d.ts +1 -1
  96. package/dist/runtime/registry/stripe.js +1 -1
  97. package/dist/runtime/registry/tiktok-pixel.d.ts +1 -0
  98. package/dist/runtime/registry/tiktok-pixel.js +2 -1
  99. package/dist/runtime/registry/umami-analytics.js +1 -1
  100. package/dist/runtime/registry/vimeo-player.d.ts +2 -2
  101. package/dist/runtime/registry/vimeo-player.js +1 -1
  102. package/dist/runtime/registry/x-embed.d.ts +77 -0
  103. package/dist/runtime/registry/x-embed.js +41 -0
  104. package/dist/runtime/registry/x-pixel.js +1 -1
  105. package/dist/runtime/registry/youtube-player.d.ts +7 -7
  106. package/dist/runtime/registry/youtube-player.js +1 -1
  107. package/dist/runtime/server/google-static-maps-proxy.js +1 -1
  108. package/dist/runtime/server/instagram-embed-asset.d.ts +2 -0
  109. package/dist/runtime/server/instagram-embed-asset.js +42 -0
  110. package/dist/runtime/server/instagram-embed-image.d.ts +2 -0
  111. package/dist/runtime/server/instagram-embed-image.js +54 -0
  112. package/dist/runtime/server/instagram-embed.d.ts +2 -0
  113. package/dist/runtime/server/instagram-embed.js +91 -0
  114. package/dist/runtime/server/proxy-handler.d.ts +6 -0
  115. package/dist/runtime/server/proxy-handler.js +264 -0
  116. package/dist/runtime/server/utils/privacy.d.ts +141 -0
  117. package/dist/runtime/server/utils/privacy.js +324 -0
  118. package/dist/runtime/server/x-embed-image.d.ts +2 -0
  119. package/dist/runtime/server/x-embed-image.js +53 -0
  120. package/dist/runtime/server/x-embed.d.ts +49 -0
  121. package/dist/runtime/server/x-embed.js +31 -0
  122. package/dist/runtime/types.d.ts +51 -22
  123. package/dist/runtime/utils/pure.d.ts +9 -0
  124. package/dist/runtime/utils/pure.js +0 -0
  125. package/dist/runtime/utils.d.ts +3 -3
  126. package/dist/runtime/utils.js +3 -2
  127. package/dist/shared/scripts.DLRgvHQg.mjs +288 -0
  128. package/dist/stats.d.mts +39 -0
  129. package/dist/stats.d.ts +39 -0
  130. package/dist/stats.mjs +711 -0
  131. package/dist/types.d.mts +1 -1
  132. package/package.json +48 -41
  133. package/dist/client/_nuxt/Bdf7Qtwg.js +0 -1
  134. package/dist/client/_nuxt/CoyZWCgl.js +0 -162
  135. package/dist/client/_nuxt/Ds1k3yKJ.js +0 -1
  136. package/dist/client/_nuxt/builds/meta/62574f80-71d4-4f9e-8b96-145c85230d99.json +0 -1
  137. package/dist/client/_nuxt/entry.BjfcJo5q.css +0 -1
  138. package/dist/client/_nuxt/error-404.D45Vtjcx.css +0 -1
  139. package/dist/client/_nuxt/error-500.BOm1rWQf.css +0 -1
@@ -1 +1 @@
1
- import{u as a,f as s,h as u,i as r,g as h}from"./CoyZWCgl.js";function i(t){const e=t||s();return e.ssrContext?.head||e.runWithContext(()=>{if(u()){const n=r(h);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function d(t,e={}){const n=e.head||i(e.nuxt);return a(t,{head:n,...e})}export{d as u};
1
+ import{u as a,f as s,h as u,i as r,g as h}from"./C4Cj8gBr.js";function i(t){const e=t||s();return e.ssrContext?.head||e.runWithContext(()=>{if(u()){const n=r(h);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function d(t,e={}){const n=e.head||i(e.nuxt);return a(t,{head:n,...e})}export{d as u};
@@ -1 +1 @@
1
- {"id":"62574f80-71d4-4f9e-8b96-145c85230d99","timestamp":1769157046085}
1
+ {"id":"0e95b1cc-8751-4000-8cb4-a6ef270b636f","timestamp":1772638577886}
@@ -0,0 +1 @@
1
+ {"id":"0e95b1cc-8751-4000-8cb4-a6ef270b636f","timestamp":1772638577886,"prerendered":[]}
@@ -0,0 +1 @@
1
+ :root{--nui-c-context:125,125,125}html{background-color:#fff}html.dark{background-color:#151515;color:#fff;color-scheme:dark}::-moz-selection{background:#8884}::selection{background:#8884}.shiki .line{display:inline-block;position:relative;width:100%}.shiki.diff .line>span{filter:saturate(.75);opacity:.75}.shiki.diff .line-added,.shiki.diff .line-removed{scroll-margin:5em}.shiki.diff .line-added>span,.shiki.diff .line-removed>span{opacity:1!important;position:inherit;scroll-margin:20px;z-index:100}.shiki.diff .line-added>span{color:#218c3b!important}.shiki.diff .line-removed>span{color:#d15547!important}.shiki .line-added:after{background-color:#43885420}.shiki .line-added:after,.shiki .line-removed:after{content:"";display:block;inset:0;position:absolute}.shiki .line-removed:after{background-color:#8f4c3926}::view-transition-new(root),::view-transition-old(root){animation:none;mix-blend-mode:normal}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2147483646}.dark::view-transition-old(root){z-index:2147483646}.dark::view-transition-new(root){z-index:1}*,: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: }::backdrop{--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: }.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.absolute,.sr-only{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.z-2{z-index:2}.grid{display:grid}.m0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-2,.mb2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml--1px{margin-left:-1px}.ml-2{margin-left:.5rem}.mr-\[2px\]{margin-right:2px}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.hidden{display:none}.h-10{height:2.5rem}.h-2,.h2{height:.5rem}.h-4,.h4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h1{height:.25rem}.h3{height:.75rem}.max-h-full{max-height:100%}.max-w-520px{max-width:520px}.max-w-6{max-width:1.5rem}.max-w-8{max-width:2rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-4{width:1rem}.w-full{width:100%}.flex{display:flex}.flex-inline,.inline-flex{display:inline-flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.translate-y--1{--un-translate-y:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-7{gap:1.75rem}.space-x-3>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--un-space-x-reverse)));margin-right:calc(.75rem*var(--un-space-x-reverse))}.space-x-5>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(1.25rem*(1 - var(--un-space-x-reverse)));margin-right:calc(1.25rem*var(--un-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(.5rem*var(--un-space-y-reverse));margin-top:calc(.5rem*(1 - var(--un-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(.75rem*var(--un-space-y-reverse));margin-top:calc(.75rem*(1 - var(--un-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(1rem*var(--un-space-y-reverse));margin-top:calc(1rem*(1 - var(--un-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--un-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--un-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--un-divide-y-reverse:0;border-bottom-width:calc(1px*var(--un-divide-y-reverse));border-top-width:calc(1px*(1 - var(--un-divide-y-reverse)))}.dark .dark\:divide-gray-800>:not([hidden])~:not([hidden]){--un-divide-opacity:1;border-color:rgb(31 41 55/var(--un-divide-opacity))}.divide-gray-100>:not([hidden])~:not([hidden]){--un-divide-opacity:1;border-color:rgb(243 244 246/var(--un-divide-opacity))}.overflow-hidden{overflow:hidden}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-emerald-200{--un-border-opacity:1;border-color:rgb(167 243 208/var(--un-border-opacity))}.border-gray-200{--un-border-opacity:1;border-color:rgb(229 231 235/var(--un-border-opacity))}.dark .dark\:border-emerald-800{--un-border-opacity:1;border-color:rgb(6 95 70/var(--un-border-opacity))}.dark .dark\:border-gray-700{--un-border-opacity:1;border-color:rgb(55 65 81/var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border-none{border-style:none}.bg-blue-100{--un-bg-opacity:1;background-color:rgb(219 234 254/var(--un-bg-opacity))}.bg-blue-500{--un-bg-opacity:1;background-color:rgb(59 130 246/var(--un-bg-opacity))}.bg-emerald-100{--un-bg-opacity:1;background-color:rgb(209 250 229/var(--un-bg-opacity))}.bg-emerald-50{--un-bg-opacity:1;background-color:rgb(236 253 245/var(--un-bg-opacity))}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246/var(--un-bg-opacity))}.bg-gray-200{--un-bg-opacity:1;background-color:rgb(229 231 235/var(--un-bg-opacity))}.bg-gray-400{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.bg-gray-50{--un-bg-opacity:1;background-color:rgb(249 250 251/var(--un-bg-opacity))}.bg-green-50{--un-bg-opacity:1;background-color:rgb(240 253 244/var(--un-bg-opacity))}.bg-green-500{--un-bg-opacity:1;background-color:rgb(34 197 94/var(--un-bg-opacity))}.bg-light-200{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.bg-neutral-700{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.bg-purple-100{--un-bg-opacity:1;background-color:rgb(243 232 255/var(--un-bg-opacity))}.bg-red-100{--un-bg-opacity:1;background-color:rgb(254 226 226/var(--un-bg-opacity))}.bg-red-500{--un-bg-opacity:1;background-color:rgb(239 68 68/var(--un-bg-opacity))}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.bg-yellow-100{--un-bg-opacity:1;background-color:rgb(254 249 195/var(--un-bg-opacity))}.bg-yellow-500{--un-bg-opacity:1;background-color:rgb(234 179 8/var(--un-bg-opacity))}.dark .dark\:bg-\[\#020420\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark .dark\:bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark .dark\:bg-blue-900{--un-bg-opacity:1;background-color:rgb(30 58 138/var(--un-bg-opacity))}.dark .dark\:bg-dark-700{--un-bg-opacity:1;background-color:rgb(27 27 27/var(--un-bg-opacity))}.dark .dark\:bg-emerald-900{--un-bg-opacity:1;background-color:rgb(6 78 59/var(--un-bg-opacity))}.dark .dark\:bg-emerald-900\/30{background-color:#064e3b4d}.dark .dark\:bg-emerald-900\/50{background-color:#064e3b80}.dark .dark\:bg-gray-700{--un-bg-opacity:1;background-color:rgb(55 65 81/var(--un-bg-opacity))}.dark .dark\:bg-gray-800,.dark .dark\:hover\:bg-gray-800:hover{--un-bg-opacity:1;background-color:rgb(31 41 55/var(--un-bg-opacity))}.hover\:bg-gray-50:hover{--un-bg-opacity:1;background-color:rgb(249 250 251/var(--un-bg-opacity))}.hover\:bg-gray-800\/50:hover{background-color:#1f293780}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-\[2px\]{padding-bottom:2px;padding-top:2px}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-\[80px\]{font-size:80px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.dark .dark\:text-blue-300,.text-blue-300{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity))}.dark .dark\:text-blue-400{--un-text-opacity:1;color:rgb(96 165 250/var(--un-text-opacity))}.dark .dark\:text-emerald-300{--un-text-opacity:1;color:rgb(110 231 183/var(--un-text-opacity))}.dark .dark\:text-emerald-400{--un-text-opacity:1;color:rgb(52 211 153/var(--un-text-opacity))}.dark .dark\:text-gray-400{--un-text-opacity:1;color:rgb(156 163 175/var(--un-text-opacity))}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.text-\[\#020420\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.text-blue-600{--un-text-opacity:1;color:rgb(37 99 235/var(--un-text-opacity))}.text-blue-700{--un-text-opacity:1;color:rgb(29 78 216/var(--un-text-opacity))}.text-emerald-500{--un-text-opacity:1;color:rgb(16 185 129/var(--un-text-opacity))}.text-emerald-600{--un-text-opacity:1;color:rgb(5 150 105/var(--un-text-opacity))}.text-emerald-700{--un-text-opacity:1;color:rgb(4 120 87/var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128/var(--un-text-opacity))}.text-gray-600{--un-text-opacity:1;color:rgb(75 85 99/var(--un-text-opacity))}.text-gray-700{--un-text-opacity:1;color:rgb(55 65 81/var(--un-text-opacity))}.text-green-300{--un-text-opacity:1;color:rgb(134 239 172/var(--un-text-opacity))}.text-green-700{--un-text-opacity:1;color:rgb(21 128 61/var(--un-text-opacity))}.text-neutral-300{--un-text-opacity:1;color:rgb(212 212 212/var(--un-text-opacity))}.text-purple-700{--un-text-opacity:1;color:rgb(126 34 206/var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity))}.text-yellow-700{--un-text-opacity:1;color:rgb(161 98 7/var(--un-text-opacity))}.dark .dark\:hover\:text-blue-300:hover{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity))}.hover\:text-\[\#00DC82\]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.hover\:text-blue-800:hover{--un-text-opacity:1;color:rgb(30 64 175/var(--un-text-opacity))}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{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}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.op-0\.1{opacity:.001}.op35{opacity:.35}.op50,.opacity-50{opacity:.5}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-80{opacity:.8}.hover\:opacity-70:hover{opacity:.7}.backdrop-blur-lg{--un-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media(min-width:640px){.sm\:text-\[110px\]{font-size:110px}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media(min-width:1024px){.lg\:flex{display:flex}}.n-code-block-lines .shiki code .line:before{display:none}
@@ -0,0 +1 @@
1
+ .grid[data-v-85347797]{display:grid}.mb-2[data-v-85347797]{margin-bottom:.5rem}.mb-4[data-v-85347797]{margin-bottom:1rem}.max-w-520px[data-v-85347797]{max-width:520px}.min-h-screen[data-v-85347797]{min-height:100vh}.w-full[data-v-85347797]{width:100%}.flex[data-v-85347797]{display:flex}.place-content-center[data-v-85347797]{place-content:center}.items-center[data-v-85347797]{align-items:center}.justify-center[data-v-85347797]{justify-content:center}.overflow-hidden[data-v-85347797]{overflow:hidden}.bg-white[data-v-85347797]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-85347797]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-85347797]{text-align:center}.text-\[80px\][data-v-85347797]{font-size:80px}.text-2xl[data-v-85347797]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-85347797]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-85347797]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-85347797]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-85347797]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-85347797]{font-weight:500}.font-semibold[data-v-85347797]{font-weight:600}.leading-none[data-v-85347797]{line-height:1}.tracking-wide[data-v-85347797]{letter-spacing:.025em}.font-sans[data-v-85347797]{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}.tabular-nums[data-v-85347797]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-85347797]{text-decoration-line:underline}.underline-offset-3[data-v-85347797]{text-underline-offset:3px}.antialiased[data-v-85347797]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-85347797]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-85347797]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-85347797]{font-size:110px}.sm\:text-3xl[data-v-85347797]{font-size:1.875rem;line-height:2.25rem}}
@@ -0,0 +1 @@
1
+ .grid[data-v-2367f596]{display:grid}.mb-2[data-v-2367f596]{margin-bottom:.5rem}.mb-4[data-v-2367f596]{margin-bottom:1rem}.max-w-520px[data-v-2367f596]{max-width:520px}.min-h-screen[data-v-2367f596]{min-height:100vh}.place-content-center[data-v-2367f596]{place-content:center}.overflow-hidden[data-v-2367f596]{overflow:hidden}.bg-white[data-v-2367f596]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-2367f596]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-2367f596]{text-align:center}.text-\[80px\][data-v-2367f596]{font-size:80px}.text-2xl[data-v-2367f596]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-2367f596]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-2367f596]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-2367f596]{font-weight:600}.leading-none[data-v-2367f596]{line-height:1}.tracking-wide[data-v-2367f596]{letter-spacing:.025em}.font-sans[data-v-2367f596]{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}.tabular-nums[data-v-2367f596]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-2367f596]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-2367f596]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-2367f596]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-2367f596]{font-size:110px}.sm\:text-3xl[data-v-2367f596]{font-size:1.875rem;line-height:2.25rem}}
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.BjfcJo5q.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CoyZWCgl.js"><script type="module" src="/__nuxt-scripts/_nuxt/CoyZWCgl.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:""}},app:{baseURL:"/__nuxt-scripts",buildId:"62574f80-71d4-4f9e-8b96-145c85230d99",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1769157050846,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.D45OuV0w.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C4Cj8gBr.js"><script type="module" src="/__nuxt-scripts/_nuxt/C4Cj8gBr.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:""}},app:{baseURL:"/__nuxt-scripts",buildId:"0e95b1cc-8751-4000-8cb4-a6ef270b636f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1772638582004,false]</script></body></html>
package/dist/module.d.mts CHANGED
@@ -1,12 +1,97 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { FetchOptions } from 'ofetch';
3
- import { NuxtConfigScriptRegistry, NuxtUseScriptOptionsSerializable, NuxtUseScriptInput, RegistryScripts } from '../dist/runtime/types.js';
3
+ import { ProxyPrivacyInput } from '../dist/runtime/server/utils/privacy.js';
4
+ import { RegistryScripts, NuxtConfigScriptRegistry, NuxtUseScriptOptionsSerializable, NuxtUseScriptInput } from '../dist/runtime/types.js';
4
5
 
6
+ declare module '@nuxt/schema' {
7
+ interface NuxtHooks {
8
+ 'scripts:registry': (registry: RegistryScripts) => void | Promise<void>;
9
+ }
10
+ }
11
+ /**
12
+ * Global privacy override for all first-party proxy requests.
13
+ *
14
+ * By default (`undefined`), each script uses its own privacy controls declared in the registry.
15
+ * Setting this overrides all per-script defaults:
16
+ *
17
+ * - `true` - Full anonymize: anonymizes IP, normalizes User-Agent/language,
18
+ * generalizes screen/hardware/canvas/timezone data.
19
+ *
20
+ * - `false` - Passthrough: forwards headers and data, but strips sensitive
21
+ * auth/session headers (cookie, authorization).
22
+ *
23
+ * - `{ ip: false }` - Selective: override individual flags. Unset flags inherit
24
+ * from the per-script default.
25
+ */
26
+ type FirstPartyPrivacy = ProxyPrivacyInput;
27
+ interface FirstPartyOptions {
28
+ /**
29
+ * Path prefix for serving bundled scripts.
30
+ *
31
+ * This is where the downloaded and rewritten script files are served from.
32
+ * @default '/_scripts'
33
+ * @example '/_analytics'
34
+ */
35
+ prefix?: string;
36
+ /**
37
+ * Path prefix for collection/tracking proxy endpoints.
38
+ *
39
+ * Analytics collection requests are proxied through these paths.
40
+ * For example, Google Analytics collection goes to `/_scripts/c/ga/g/collect`.
41
+ * @default '/_proxy'
42
+ * @example '/_tracking'
43
+ */
44
+ collectPrefix?: string;
45
+ /**
46
+ * Global privacy override for all proxied scripts.
47
+ *
48
+ * By default, each script uses its own privacy controls from the registry.
49
+ * Set this to override all scripts at once:
50
+ *
51
+ * - `true` - Full anonymize for all scripts
52
+ * - `false` - Passthrough for all scripts (still strips sensitive auth headers)
53
+ * - `{ ip: false }` - Selective override (unset flags inherit per-script defaults)
54
+ *
55
+ * @default undefined
56
+ */
57
+ privacy?: FirstPartyPrivacy;
58
+ }
5
59
  interface ModuleOptions {
60
+ /**
61
+ * Route third-party scripts through your domain for improved privacy.
62
+ *
63
+ * When enabled, scripts are downloaded at build time and served from your domain.
64
+ * Collection endpoints (analytics, pixels) are also routed through your server,
65
+ * keeping user IPs private and eliminating third-party cookies.
66
+ *
67
+ * **Benefits:**
68
+ * - User IPs stay private (third parties see your server's IP)
69
+ * - No third-party cookies (requests are same-origin)
70
+ * - Works with ad blockers (requests appear first-party)
71
+ * - Faster loads (no extra DNS lookups)
72
+ *
73
+ * **Options:**
74
+ * - `true` - Enable for all supported scripts (default)
75
+ * - `false` - Disable (scripts load directly from third parties)
76
+ * - `{ collectPrefix: '/_analytics' }` - Enable with custom paths
77
+ *
78
+ * For static hosting, scripts are bundled but proxy endpoints require
79
+ * platform rewrites (see docs). A warning is shown for static presets.
80
+ *
81
+ * @default true
82
+ * @see https://scripts.nuxt.com/docs/guides/first-party
83
+ */
84
+ firstParty?: boolean | FirstPartyOptions;
6
85
  /**
7
86
  * The registry of supported third-party scripts. Loads the scripts in globally using the default script options.
8
87
  */
9
88
  registry?: NuxtConfigScriptRegistry;
89
+ /**
90
+ * Registry scripts to load via Partytown (web worker).
91
+ * Shorthand for setting `partytown: true` on individual registry scripts.
92
+ * @example ['googleAnalytics', 'plausible', 'fathom']
93
+ */
94
+ partytown?: (keyof NuxtConfigScriptRegistry)[];
10
95
  /**
11
96
  * Default options for scripts.
12
97
  */
@@ -88,4 +173,4 @@ interface ModuleHooks {
88
173
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
89
174
 
90
175
  export { _default as default };
91
- export type { ModuleHooks, ModuleOptions };
176
+ export type { FirstPartyOptions, FirstPartyPrivacy, ModuleHooks, ModuleOptions };
@@ -0,0 +1,176 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+ import { FetchOptions } from 'ofetch';
3
+ import { ProxyPrivacyInput } from '../dist/runtime/server/utils/privacy.js';
4
+ import { RegistryScripts, NuxtConfigScriptRegistry, NuxtUseScriptOptionsSerializable, NuxtUseScriptInput } from '../dist/runtime/types.js';
5
+
6
+ declare module '@nuxt/schema' {
7
+ interface NuxtHooks {
8
+ 'scripts:registry': (registry: RegistryScripts) => void | Promise<void>;
9
+ }
10
+ }
11
+ /**
12
+ * Global privacy override for all first-party proxy requests.
13
+ *
14
+ * By default (`undefined`), each script uses its own privacy controls declared in the registry.
15
+ * Setting this overrides all per-script defaults:
16
+ *
17
+ * - `true` - Full anonymize: anonymizes IP, normalizes User-Agent/language,
18
+ * generalizes screen/hardware/canvas/timezone data.
19
+ *
20
+ * - `false` - Passthrough: forwards headers and data, but strips sensitive
21
+ * auth/session headers (cookie, authorization).
22
+ *
23
+ * - `{ ip: false }` - Selective: override individual flags. Unset flags inherit
24
+ * from the per-script default.
25
+ */
26
+ type FirstPartyPrivacy = ProxyPrivacyInput;
27
+ interface FirstPartyOptions {
28
+ /**
29
+ * Path prefix for serving bundled scripts.
30
+ *
31
+ * This is where the downloaded and rewritten script files are served from.
32
+ * @default '/_scripts'
33
+ * @example '/_analytics'
34
+ */
35
+ prefix?: string;
36
+ /**
37
+ * Path prefix for collection/tracking proxy endpoints.
38
+ *
39
+ * Analytics collection requests are proxied through these paths.
40
+ * For example, Google Analytics collection goes to `/_scripts/c/ga/g/collect`.
41
+ * @default '/_proxy'
42
+ * @example '/_tracking'
43
+ */
44
+ collectPrefix?: string;
45
+ /**
46
+ * Global privacy override for all proxied scripts.
47
+ *
48
+ * By default, each script uses its own privacy controls from the registry.
49
+ * Set this to override all scripts at once:
50
+ *
51
+ * - `true` - Full anonymize for all scripts
52
+ * - `false` - Passthrough for all scripts (still strips sensitive auth headers)
53
+ * - `{ ip: false }` - Selective override (unset flags inherit per-script defaults)
54
+ *
55
+ * @default undefined
56
+ */
57
+ privacy?: FirstPartyPrivacy;
58
+ }
59
+ interface ModuleOptions {
60
+ /**
61
+ * Route third-party scripts through your domain for improved privacy.
62
+ *
63
+ * When enabled, scripts are downloaded at build time and served from your domain.
64
+ * Collection endpoints (analytics, pixels) are also routed through your server,
65
+ * keeping user IPs private and eliminating third-party cookies.
66
+ *
67
+ * **Benefits:**
68
+ * - User IPs stay private (third parties see your server's IP)
69
+ * - No third-party cookies (requests are same-origin)
70
+ * - Works with ad blockers (requests appear first-party)
71
+ * - Faster loads (no extra DNS lookups)
72
+ *
73
+ * **Options:**
74
+ * - `true` - Enable for all supported scripts (default)
75
+ * - `false` - Disable (scripts load directly from third parties)
76
+ * - `{ collectPrefix: '/_analytics' }` - Enable with custom paths
77
+ *
78
+ * For static hosting, scripts are bundled but proxy endpoints require
79
+ * platform rewrites (see docs). A warning is shown for static presets.
80
+ *
81
+ * @default true
82
+ * @see https://scripts.nuxt.com/docs/guides/first-party
83
+ */
84
+ firstParty?: boolean | FirstPartyOptions;
85
+ /**
86
+ * The registry of supported third-party scripts. Loads the scripts in globally using the default script options.
87
+ */
88
+ registry?: NuxtConfigScriptRegistry;
89
+ /**
90
+ * Registry scripts to load via Partytown (web worker).
91
+ * Shorthand for setting `partytown: true` on individual registry scripts.
92
+ * @example ['googleAnalytics', 'plausible', 'fathom']
93
+ */
94
+ partytown?: (keyof NuxtConfigScriptRegistry)[];
95
+ /**
96
+ * Default options for scripts.
97
+ */
98
+ defaultScriptOptions?: NuxtUseScriptOptionsSerializable;
99
+ /**
100
+ * Register scripts that should be loaded globally on all pages.
101
+ */
102
+ globals?: Record<string, NuxtUseScriptInput | [NuxtUseScriptInput, NuxtUseScriptOptionsSerializable]>;
103
+ /** Configure the way scripts assets are exposed */
104
+ assets?: {
105
+ /**
106
+ * The baseURL where scripts files are served.
107
+ * @default '/_scripts/'
108
+ */
109
+ prefix?: string;
110
+ /**
111
+ * Scripts assets are exposed as public assets as part of the build.
112
+ *
113
+ * TODO Make configurable in future.
114
+ */
115
+ strategy?: 'public';
116
+ /**
117
+ * Fallback to src if bundle fails to load.
118
+ * The default behavior is to stop the bundling process if a script fails to be downloaded.
119
+ * @default false
120
+ */
121
+ fallbackOnSrcOnBundleFail?: boolean;
122
+ /**
123
+ * Configure the fetch options used for downloading scripts.
124
+ */
125
+ fetchOptions?: FetchOptions;
126
+ /**
127
+ * Cache duration for bundled scripts in milliseconds.
128
+ * Scripts older than this will be re-downloaded during builds.
129
+ * @default 604800000 (7 days)
130
+ */
131
+ cacheMaxAge?: number;
132
+ /**
133
+ * Enable automatic integrity hash generation for bundled scripts.
134
+ * When enabled, calculates SRI (Subresource Integrity) hash and injects
135
+ * integrity attribute along with crossorigin="anonymous".
136
+ *
137
+ * @default false
138
+ */
139
+ integrity?: boolean | 'sha256' | 'sha384' | 'sha512';
140
+ };
141
+ /**
142
+ * Google Static Maps proxy configuration.
143
+ * Proxies static map images through your server to fix CORS issues and enable caching.
144
+ */
145
+ googleStaticMapsProxy?: {
146
+ /**
147
+ * Enable proxying Google Static Maps through your own origin.
148
+ * @default false
149
+ */
150
+ enabled?: boolean;
151
+ /**
152
+ * Cache duration for static map images in seconds.
153
+ * @default 3600 (1 hour)
154
+ */
155
+ cacheMaxAge?: number;
156
+ };
157
+ /**
158
+ * Whether the module is enabled.
159
+ *
160
+ * @default true
161
+ */
162
+ enabled: boolean;
163
+ /**
164
+ * Enables debug mode.
165
+ *
166
+ * @false false
167
+ */
168
+ debug: boolean;
169
+ }
170
+ interface ModuleHooks {
171
+ 'scripts:registry': (registry: RegistryScripts) => void | Promise<void>;
172
+ }
173
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
174
+
175
+ export { _default as default };
176
+ export type { FirstPartyOptions, FirstPartyPrivacy, ModuleHooks, ModuleOptions };
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16"
6
6
  },
7
- "version": "1.0.0-beta.1",
7
+ "version": "1.0.0-beta.13",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"