@nuxt/scripts 1.3.7 → 1.3.9
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/devtools-client/200.html +1 -1
- package/dist/devtools-client/404.html +1 -1
- package/dist/devtools-client/_nuxt/builds/latest.json +1 -1
- package/dist/devtools-client/_nuxt/builds/meta/1dc91393-e14b-458a-ae2f-e484d40bb9cc.json +1 -0
- package/dist/devtools-client/_nuxt/{entry.CYUdJFoE.css → entry.9HJPJ6Hp.css} +1 -1
- package/dist/devtools-client/docs/index.html +1 -1
- package/dist/devtools-client/first-party/index.html +1 -1
- package/dist/devtools-client/index.html +1 -1
- package/dist/devtools-client/registry/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/components/ScriptCarbonAds.vue +5 -2
- package/dist/runtime/components/ScriptGoogleAdsense.d.vue.ts +2 -1
- package/dist/runtime/components/ScriptGoogleAdsense.vue +2 -0
- package/dist/runtime/components/ScriptGoogleAdsense.vue.d.ts +2 -1
- package/dist/runtime/registry/ahrefs-analytics.d.ts +2 -1
- package/dist/runtime/registry/calendly.d.ts +2 -1
- package/dist/runtime/registry/clarity.d.ts +2 -1
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +2 -1
- package/dist/runtime/registry/google-adsense.d.ts +2 -1
- package/dist/runtime/registry/google-recaptcha.d.ts +2 -1
- package/dist/runtime/registry/google-tag-manager.d.ts +2 -1
- package/dist/runtime/registry/hotjar.d.ts +2 -1
- package/dist/runtime/registry/intercom.d.ts +2 -1
- package/dist/runtime/registry/linkedin-insight.d.ts +2 -1
- package/dist/runtime/registry/matomo-analytics.d.ts +2 -1
- package/dist/runtime/registry/meta-pixel.d.ts +4 -1
- package/dist/runtime/registry/paypal.d.ts +2 -1
- package/dist/runtime/registry/reddit-pixel.d.ts +2 -1
- package/dist/runtime/registry/segment.d.ts +7 -1
- package/dist/runtime/registry/snapchat-pixel.d.ts +4 -1
- package/dist/runtime/registry/vimeo-player.d.ts +2 -1
- package/dist/runtime/registry/x-pixel.d.ts +2 -1
- package/dist/runtime/registry/youtube-player.d.ts +3 -2
- package/dist/runtime/server/proxy-handler.d.ts +0 -4
- package/dist/runtime/server/proxy-handler.js +109 -38
- package/dist/runtime/server/utils/network-dispatcher.platform.d.ts +2 -2
- package/dist/runtime/server/utils/network-dispatcher.platform.js +4 -1
- package/dist/types-source.mjs +7 -2
- package/package.json +1 -1
- package/dist/devtools-client/_nuxt/builds/meta/3c4ca254-ebb3-4ed7-9255-ef9aa26e9bc7.json +0 -1
- /package/dist/devtools-client/_nuxt/{Bf2Kt1P0.js → Dl7W1ViV.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Dl7W1ViV.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.9HJPJ6Hp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dl7W1ViV.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B551Pnuh.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BKdLzFmX.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CH5oUfNi.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CP7c-Js6.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C_v3_O0R.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CC0GKROJ.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B8_EBdhg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CxN78VhB.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BDNMzG2s.js"><script type="module" src="/__nuxt-scripts/_nuxt/Dl7W1ViV.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bq2JQbJs.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DTP8MRtW.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.5E_FOzlc.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/KxC4Q3ev.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"1dc91393-e14b-458a-ae2f-e484d40bb9cc",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930263753,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Dl7W1ViV.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.9HJPJ6Hp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dl7W1ViV.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B551Pnuh.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BKdLzFmX.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CH5oUfNi.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CP7c-Js6.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C_v3_O0R.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CC0GKROJ.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B8_EBdhg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CxN78VhB.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BDNMzG2s.js"><script type="module" src="/__nuxt-scripts/_nuxt/Dl7W1ViV.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bq2JQbJs.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DTP8MRtW.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.5E_FOzlc.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/KxC4Q3ev.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"1dc91393-e14b-458a-ae2f-e484d40bb9cc",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930263754,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Dl7W1ViV.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.9HJPJ6Hp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dl7W1ViV.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B551Pnuh.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BKdLzFmX.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CH5oUfNi.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CP7c-Js6.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C_v3_O0R.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CC0GKROJ.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B8_EBdhg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CxN78VhB.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BDNMzG2s.js"><script type="module" src="/__nuxt-scripts/_nuxt/Dl7W1ViV.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bq2JQbJs.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DTP8MRtW.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.5E_FOzlc.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/KxC4Q3ev.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"1dc91393-e14b-458a-ae2f-e484d40bb9cc",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930263755,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-scripts/_nuxt/Dl7W1ViV.js"}}</script><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.9HJPJ6Hp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dl7W1ViV.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B551Pnuh.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BKdLzFmX.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CH5oUfNi.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CP7c-Js6.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C_v3_O0R.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CC0GKROJ.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B8_EBdhg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CxN78VhB.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BDNMzG2s.js"><script type="module" src="/__nuxt-scripts/_nuxt/Dl7W1ViV.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMbpbO54.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qhed-kSA.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BgS3c2Ky.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/VbXTXTou.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BZCL-v6S.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.Bq2JQbJs.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DTP8MRtW.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.5E_FOzlc.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/KxC4Q3ev.js"><script>"use strict";(()=>{const o=window,e=document.documentElement,c=["dark","light"],s=getStorageValue("localStorage","nuxt-color-mode")||"system";let r=s==="system"?f():s;const l=e.getAttribute("data-color-mode-forced");l&&(r=l),i(r),o["__NUXT_COLOR_MODE__"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=""+t+"",n="";e.classList?e.classList.add(a):e.className+=" "+a,n&&e.setAttribute("data-"+n,t)}function d(t){const a=""+t+"",n="";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,"g"),""),n&&e.removeAttribute("data-"+n)}function u(t){return o.matchMedia("(prefers-color-scheme"+t+")")}function f(){if(o.matchMedia&&u("").media!=="not all"){for(const t of c)if(u(":"+t).matches)return t}return"light"}})();function getStorageValue(o,e){switch(o){case"localStorage":try{return window.localStorage.getItem(e)}catch{return null}case"sessionStorage":try{return window.sessionStorage.getItem(e)}catch{return null}case"cookie":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=("; "+window.document.cookie).split("; "+o+"=");if(c.length===2){const s=c.pop();return s?s.split(";").shift():null}}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"1dc91393-e14b-458a-ae2f-e484d40bb9cc",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1788930263754,false]</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -11,7 +11,7 @@ const props = defineProps({
|
|
|
11
11
|
const emit = defineEmits(["error", "ready"]);
|
|
12
12
|
defineSlots();
|
|
13
13
|
const attrId = `_carbonads_js`;
|
|
14
|
-
const carbonadsEl = ref(
|
|
14
|
+
const carbonadsEl = ref(null);
|
|
15
15
|
const status = ref("awaitingLoad");
|
|
16
16
|
let scriptEl;
|
|
17
17
|
function loadCarbon() {
|
|
@@ -39,6 +39,7 @@ function loadCarbon() {
|
|
|
39
39
|
emit("ready", script);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
+
document.getElementById(attrId)?.remove();
|
|
42
43
|
carbonadsEl.value.appendChild(script);
|
|
43
44
|
}
|
|
44
45
|
const trigger = useScriptTriggerElement({ trigger: props.trigger, el: carbonadsEl });
|
|
@@ -61,7 +62,9 @@ onBeforeUnmount(() => {
|
|
|
61
62
|
if (scriptEl) {
|
|
62
63
|
scriptEl.onload = null;
|
|
63
64
|
scriptEl.onerror = null;
|
|
64
|
-
|
|
65
|
+
const owner = document.getElementById(attrId);
|
|
66
|
+
if (!owner || owner === scriptEl)
|
|
67
|
+
document.head.appendChild(scriptEl);
|
|
65
68
|
scriptEl = void 0;
|
|
66
69
|
}
|
|
67
70
|
});
|
|
@@ -3,7 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
dataAdClient: string;
|
|
4
4
|
dataAdSlot: string;
|
|
5
5
|
dataAdFormat?: 'auto' | 'rectangle' | 'vertical' | 'horizontal' | 'fluid' | 'autorelaxed';
|
|
6
|
-
dataAdLayout?: 'in-article' | '
|
|
6
|
+
dataAdLayout?: 'in-article' | 'image-top' | 'image-side' | 'text-only';
|
|
7
|
+
dataAdLayoutKey?: string;
|
|
7
8
|
dataFullWidthResponsive?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Defines the trigger event to load the script.
|
|
@@ -9,6 +9,7 @@ const props = defineProps({
|
|
|
9
9
|
dataAdSlot: { type: String, required: true },
|
|
10
10
|
dataAdFormat: { type: String, required: false, default: void 0 },
|
|
11
11
|
dataAdLayout: { type: String, required: false },
|
|
12
|
+
dataAdLayoutKey: { type: String, required: false },
|
|
12
13
|
dataFullWidthResponsive: { type: Boolean, required: false, default: true },
|
|
13
14
|
trigger: { type: [String, Array, Boolean], required: false }
|
|
14
15
|
});
|
|
@@ -61,6 +62,7 @@ const rootAttrs = computed(() => {
|
|
|
61
62
|
:data-ad-slot="dataAdSlot"
|
|
62
63
|
:data-ad-format="dataAdFormat"
|
|
63
64
|
:data-ad-layout="dataAdLayout"
|
|
65
|
+
:data-ad-layout-key="dataAdLayoutKey"
|
|
64
66
|
:data-full-width-responsive="dataFullWidthResponsive"
|
|
65
67
|
v-bind="rootAttrs"
|
|
66
68
|
/>
|
|
@@ -3,7 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
dataAdClient: string;
|
|
4
4
|
dataAdSlot: string;
|
|
5
5
|
dataAdFormat?: 'auto' | 'rectangle' | 'vertical' | 'horizontal' | 'fluid' | 'autorelaxed';
|
|
6
|
-
dataAdLayout?: 'in-article' | '
|
|
6
|
+
dataAdLayout?: 'in-article' | 'image-top' | 'image-side' | 'text-only';
|
|
7
|
+
dataAdLayoutKey?: string;
|
|
7
8
|
dataFullWidthResponsive?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Defines the trigger event to load the script.
|
|
@@ -15,7 +15,8 @@ export interface CloudflareWebAnalyticsApi {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
declare global {
|
|
18
|
-
interface Window
|
|
18
|
+
interface Window {
|
|
19
|
+
__cfBeacon: CloudflareWebAnalyticsApi['__cfBeacon'];
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
export type CloudflareWebAnalyticsInput = RegistryScriptInput<typeof CloudflareWebAnalyticsOptions>;
|
|
@@ -17,7 +17,8 @@ export interface GoogleRecaptchaApi {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
declare global {
|
|
20
|
-
interface Window
|
|
20
|
+
interface Window {
|
|
21
|
+
grecaptcha: GoogleRecaptchaApi['grecaptcha'];
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
export declare function useScriptGoogleRecaptcha<T extends GoogleRecaptchaApi>(_options?: GoogleRecaptchaInput): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
@@ -72,7 +72,8 @@ export interface GoogleTagManagerApi {
|
|
|
72
72
|
* instead, which is also the only access path that respects a custom dataLayer name.
|
|
73
73
|
*/
|
|
74
74
|
declare global {
|
|
75
|
-
interface Window
|
|
75
|
+
interface Window {
|
|
76
|
+
google_tag_manager: GoogleTagManagerApi['google_tag_manager'];
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
export { GoogleTagManagerOptions };
|
|
@@ -7,7 +7,8 @@ export interface IntercomApi {
|
|
|
7
7
|
Intercom: ((event: 'boot', data?: InferInput<typeof IntercomOptions>) => void) & ((event: 'shutdown') => void) & ((event: 'update', options?: InferInput<typeof IntercomOptions>) => void) & ((event: 'hide') => void) & ((event: 'show') => void) & ((event: 'showSpace', spaceName: 'home' | 'messages' | 'help' | 'news' | 'tasks' | 'tickets' | (string & {})) => void) & ((event: 'showMessages') => void) & ((event: 'showNewMessage', content?: string) => void) & ((event: 'onHide', fn: () => void) => void) & ((event: 'onShow', fn: () => void) => void) & ((event: 'onUnreadCountChange', fn: () => void) => void) & ((event: 'trackEvent', eventName: string, metadata?: Record<string, any>) => void) & ((event: 'getVisitorId') => Promise<string>) & ((event: 'startTour', tourId: string | number) => void) & ((event: 'showArticle', articleId: string | number) => void) & ((event: 'showNews', newsItemId: string | number) => void) & ((event: 'startSurvey', surveyId: string | number) => void) & ((event: 'startChecklist', checklistId: string | number) => void) & ((event: 'showTicket', ticketId: string | number) => void) & ((event: 'showConversation', conversationId: string | number) => void) & ((event: 'onUserEmailSupplied', fn: () => void) => void) & ((event: (string & {}), ...params: any[]) => void);
|
|
8
8
|
}
|
|
9
9
|
declare global {
|
|
10
|
-
interface Window
|
|
10
|
+
interface Window {
|
|
11
|
+
Intercom: IntercomApi['Intercom'];
|
|
11
12
|
intercomSettings?: any;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -19,7 +19,8 @@ export interface LinkedInInsightApi {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
declare global {
|
|
22
|
-
interface Window
|
|
22
|
+
interface Window {
|
|
23
|
+
lintrk: LinkedInInsightApi['lintrk'];
|
|
23
24
|
_linkedin_partner_id?: string;
|
|
24
25
|
_linkedin_data_partner_ids?: string[];
|
|
25
26
|
_linkedin_event_id?: string;
|
|
@@ -33,7 +33,10 @@ export interface MetaPixelApi {
|
|
|
33
33
|
callMethod?: FbqFns;
|
|
34
34
|
}
|
|
35
35
|
declare global {
|
|
36
|
-
interface Window
|
|
36
|
+
interface Window {
|
|
37
|
+
fbq: MetaPixelApi['fbq'];
|
|
38
|
+
_fbq: MetaPixelApi['_fbq'];
|
|
39
|
+
callMethod?: MetaPixelApi['callMethod'];
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
export { MetaPixelOptions };
|
|
@@ -24,7 +24,13 @@ interface AnalyticsApi {
|
|
|
24
24
|
}
|
|
25
25
|
export type SegmentApi = Pick<AnalyticsApi, 'track' | 'page' | 'identify' | 'group' | 'alias' | 'reset'>;
|
|
26
26
|
declare global {
|
|
27
|
-
interface Window
|
|
27
|
+
interface Window {
|
|
28
|
+
track: SegmentApi['track'];
|
|
29
|
+
page: SegmentApi['page'];
|
|
30
|
+
identify: SegmentApi['identify'];
|
|
31
|
+
group: SegmentApi['group'];
|
|
32
|
+
alias: SegmentApi['alias'];
|
|
33
|
+
reset: SegmentApi['reset'];
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
36
|
export declare function useScriptSegment<T extends SegmentApi>(_options?: SegmentInput): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
@@ -35,7 +35,10 @@ export interface SnapPixelApi {
|
|
|
35
35
|
handleRequest?: SnapTrFns;
|
|
36
36
|
}
|
|
37
37
|
declare global {
|
|
38
|
-
interface Window
|
|
38
|
+
interface Window {
|
|
39
|
+
snaptr: SnapPixelApi['snaptr'];
|
|
40
|
+
_snaptr: SnapPixelApi['_snaptr'];
|
|
41
|
+
handleRequest?: SnapPixelApi['handleRequest'];
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
44
|
export type SnapTrPixelInput = RegistryScriptInput<typeof SnapTrPixelOptions, true, false>;
|
|
@@ -8,7 +8,8 @@ export interface VimeoPlayerApi {
|
|
|
8
8
|
}
|
|
9
9
|
export type VimeoPlayerInput = RegistryScriptInput;
|
|
10
10
|
declare global {
|
|
11
|
-
interface Window
|
|
11
|
+
interface Window {
|
|
12
|
+
Vimeo: VimeoPlayerApi['Vimeo'];
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
export declare function useScriptVimeoPlayer<T extends VimeoPlayerApi>(_options?: VimeoPlayerInput): UseScriptContext<T>;
|
|
@@ -15,8 +15,9 @@ export interface YouTubePlayerApi {
|
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
17
17
|
declare global {
|
|
18
|
-
interface Window
|
|
19
|
-
|
|
18
|
+
interface Window {
|
|
19
|
+
YT: YouTubePlayerApi['YT'];
|
|
20
|
+
onYouTubeIframeAPIReady?: () => void;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
export type YouTubePlayerInput = RegistryScriptInput;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare const SKIP_REQUEST_HEADERS: Set<string>;
|
|
2
2
|
export declare function withResponseBodyIdleTimeout(body: ReadableStream<Uint8Array>, timeoutMs: number, onTimeout: () => void): ReadableStream<Uint8Array>;
|
|
3
|
-
/**
|
|
4
|
-
* Privacy-aware proxy handler for first-party script collection endpoints.
|
|
5
|
-
* Routes requests to third-party analytics while protecting user privacy.
|
|
6
|
-
*/
|
|
7
3
|
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<void | null>>;
|
|
8
4
|
export default _default;
|