@nuxt/scripts 0.4.5 → 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.
- package/dist/client/200.html +5 -5
- package/dist/client/404.html +5 -5
- package/dist/client/_nuxt/{aOK4jV4Z.js → BB1wM0JV.js} +1 -1
- package/dist/client/_nuxt/{DHO_A7iW.js → D3J95Otb.js} +3 -3
- package/dist/client/_nuxt/{CYb3njua.js → Gn7Sk0ke.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/e7e8b021-1e94-4c86-ad2e-d6ac965b2190.json +1 -0
- package/dist/client/_nuxt/{Dogu0qBF.js → ixTSYuOP.js} +1 -1
- package/dist/client/index.html +5 -5
- package/dist/module.json +1 -1
- package/dist/registry.d.mts +1 -9
- package/dist/registry.d.ts +1 -9
- package/dist/registry.mjs +28 -24
- package/dist/runtime/components/ScriptGoogleAdsense.vue +50 -0
- package/dist/runtime/composables/useElementScriptTrigger.js +2 -0
- package/dist/runtime/registry/google-adsense.d.ts +30 -0
- package/dist/runtime/registry/google-adsense.js +37 -0
- package/dist/runtime/registry/google-analytics.js +4 -2
- package/dist/runtime/registry/intercom.d.ts +1 -1
- package/dist/runtime/registry/meta-pixel.js +1 -2
- package/dist/runtime/registry/plausible-analytics.d.ts +2 -2
- package/dist/runtime/registry/plausible-analytics.js +2 -2
- package/dist/runtime/registry/segment.js +2 -2
- package/package.json +2 -1
- package/dist/client/_nuxt/builds/meta/3203087a-f9bf-453f-aef1-d9723b9e1f58.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,u as a}from"./
|
|
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":"
|
|
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"./
|
|
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};
|
package/dist/client/index.html
CHANGED
|
@@ -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/
|
|
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">
|
|
@@ -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/
|
|
258
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
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/
|
|
261
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/
|
|
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
package/dist/registry.d.mts
CHANGED
|
@@ -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 {
|
|
5
|
+
export { registry };
|
package/dist/registry.d.ts
CHANGED
|
@@ -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 {
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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 {
|
|
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>
|
|
@@ -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(
|
|
@@ -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,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:
|
|
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: {
|
|
@@ -11,8 +11,8 @@ export declare const IntercomOptions: import("valibot").ObjectSchema<{
|
|
|
11
11
|
vertical_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
12
12
|
}, undefined, {
|
|
13
13
|
app_id: string;
|
|
14
|
-
api_base?: "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io" | undefined;
|
|
15
14
|
name?: string | undefined;
|
|
15
|
+
api_base?: "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io" | undefined;
|
|
16
16
|
email?: string | undefined;
|
|
17
17
|
user_id?: string | undefined;
|
|
18
18
|
alignment?: "left" | "right" | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRegistryScript } from "../utils.js";
|
|
2
|
-
import { MetaPixelScriptResolver } from "../../registry";
|
|
3
2
|
import { number, object, string, union } from "#nuxt-scripts-validator";
|
|
4
3
|
export const MetaPixelOptions = object({
|
|
5
4
|
id: union([string(), number()])
|
|
@@ -7,7 +6,7 @@ export const MetaPixelOptions = object({
|
|
|
7
6
|
export function useScriptMetaPixel(_options) {
|
|
8
7
|
return useRegistryScript("metaPixel", (options) => ({
|
|
9
8
|
scriptInput: {
|
|
10
|
-
src:
|
|
9
|
+
src: "https://connect.facebook.net/en_US/fbevents.js",
|
|
11
10
|
crossorigin: false
|
|
12
11
|
},
|
|
13
12
|
schema: import.meta.dev ? MetaPixelOptions : void 0,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
2
|
export declare const PlausibleAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
3
3
|
domain: import("valibot").StringSchema<string>;
|
|
4
|
-
extension: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").UnionSchema<(import("valibot").LiteralSchema<"hash", "hash"> | import("valibot").LiteralSchema<"outbound-links", "outbound-links"> | import("valibot").LiteralSchema<"file-downloads", "file-downloads"> | import("valibot").LiteralSchema<"tagged-events", "tagged-events"> | import("valibot").LiteralSchema<"revenue", "revenue"> | import("valibot").LiteralSchema<"pageview-props", "pageview-props"> | import("valibot").LiteralSchema<"compat", "compat"> | import("valibot").LiteralSchema<"local", "local"> | import("valibot").LiteralSchema<"manual", "manual">)[], "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local"
|
|
4
|
+
extension: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").UnionSchema<(import("valibot").LiteralSchema<"hash", "hash"> | import("valibot").LiteralSchema<"outbound-links", "outbound-links"> | import("valibot").LiteralSchema<"file-downloads", "file-downloads"> | import("valibot").LiteralSchema<"tagged-events", "tagged-events"> | import("valibot").LiteralSchema<"revenue", "revenue"> | import("valibot").LiteralSchema<"pageview-props", "pageview-props"> | import("valibot").LiteralSchema<"compat", "compat"> | import("valibot").LiteralSchema<"local", "local"> | import("valibot").LiteralSchema<"manual", "manual">)[], "manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local"> | import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"hash", "hash"> | import("valibot").LiteralSchema<"outbound-links", "outbound-links"> | import("valibot").LiteralSchema<"file-downloads", "file-downloads"> | import("valibot").LiteralSchema<"tagged-events", "tagged-events"> | import("valibot").LiteralSchema<"revenue", "revenue"> | import("valibot").LiteralSchema<"pageview-props", "pageview-props"> | import("valibot").LiteralSchema<"compat", "compat"> | import("valibot").LiteralSchema<"local", "local"> | import("valibot").LiteralSchema<"manual", "manual">)[], "manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local">, ("manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local")[]>)[], "manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | ("manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local")[]>, undefined, "manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | ("manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local")[] | undefined>;
|
|
5
5
|
}, undefined, {
|
|
6
6
|
domain: string;
|
|
7
|
-
extension?: "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual" |
|
|
7
|
+
extension?: "manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | ("manual" | "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local")[] | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export type PlausibleAnalyticsInput = RegistryScriptInput<typeof PlausibleAnalyticsOptions, false>;
|
|
10
10
|
export interface PlausibleAnalyticsApi {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRegistryScript } from "../utils.js";
|
|
2
|
-
import { PlausibleAnalyticsScriptResolver } from "../../registry";
|
|
3
2
|
import { array, literal, object, optional, string, union } from "#nuxt-scripts-validator";
|
|
4
3
|
const extensions = [
|
|
5
4
|
literal("hash"),
|
|
@@ -19,9 +18,10 @@ export const PlausibleAnalyticsOptions = object({
|
|
|
19
18
|
});
|
|
20
19
|
export function useScriptPlausibleAnalytics(_options) {
|
|
21
20
|
return useRegistryScript("plausibleAnalytics", (options) => {
|
|
21
|
+
const extensions2 = Array.isArray(options?.extension) ? options.extension.join(".") : [options?.extension];
|
|
22
22
|
return {
|
|
23
23
|
scriptInput: {
|
|
24
|
-
"src":
|
|
24
|
+
"src": options?.extension ? `https://plausible.io/js/script.${extensions2}.js` : "https://plausible.io/js/script.js",
|
|
25
25
|
"data-domain": options?.domain
|
|
26
26
|
},
|
|
27
27
|
schema: import.meta.dev ? PlausibleAnalyticsOptions : void 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { joinURL } from "ufo";
|
|
1
2
|
import { useRegistryScript } from "../utils.js";
|
|
2
|
-
import { SegmentScriptResolver } from "../../registry";
|
|
3
3
|
import { object, optional, string } from "#nuxt-scripts-validator";
|
|
4
4
|
export const SegmentOptions = object({
|
|
5
5
|
writeKey: string(),
|
|
@@ -12,7 +12,7 @@ export function useScriptSegment(_options) {
|
|
|
12
12
|
return {
|
|
13
13
|
scriptInput: {
|
|
14
14
|
"data-global-segment-analytics-key": k,
|
|
15
|
-
"src":
|
|
15
|
+
"src": joinURL("https://cdn.segment.com/analytics.js/v1", options?.writeKey || "", "analytics.min.js")
|
|
16
16
|
},
|
|
17
17
|
clientInit: import.meta.server ? void 0 : () => {
|
|
18
18
|
window[k] = window[k] || [];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/scripts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.6",
|
|
5
5
|
"packageManager": "pnpm@9.1.4",
|
|
6
6
|
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
|
|
7
7
|
"author": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/nuxt/scripts/issues"
|
|
19
19
|
},
|
|
20
|
+
"sideEffects": false,
|
|
20
21
|
"exports": {
|
|
21
22
|
".": {
|
|
22
23
|
"types": "./dist/types.d.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"3203087a-f9bf-453f-aef1-d9723b9e1f58","timestamp":1717424417300,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|