@nuxt/scripts 1.0.0-beta.13 → 1.0.0-beta.15
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 +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{48AF9EJD.js → C4LyqEA2.js} +1 -1
- package/dist/client/_nuxt/{DP0kj6Xn.js → C4oLgKn5.js} +1 -1
- package/dist/client/_nuxt/{C4Cj8gBr.js → CAywURt7.js} +4 -4
- package/dist/client/_nuxt/{Bk6ed9rg.js → CSWa0Nc-.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/0f5f1d62-f186-4aef-a618-dcef5ec637c1.json +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/registry.mjs +13 -0
- package/dist/runtime/components/ScriptVimeoPlayer.d.vue.ts +9 -0
- package/dist/runtime/components/ScriptVimeoPlayer.vue +12 -9
- package/dist/runtime/components/ScriptVimeoPlayer.vue.d.ts +9 -0
- package/dist/runtime/components/ScriptYouTubePlayer.d.vue.ts +2 -2
- package/dist/runtime/components/ScriptYouTubePlayer.vue +2 -0
- package/dist/runtime/components/ScriptYouTubePlayer.vue.d.ts +2 -2
- package/dist/runtime/registry/npm.d.ts +1 -1
- package/dist/runtime/registry/npm.js +1 -3
- package/dist/types-source.d.mts +375 -0
- package/dist/types-source.d.ts +375 -0
- package/dist/types-source.mjs +1199 -0
- package/package.json +10 -5
- package/dist/client/_nuxt/builds/meta/0e95b1cc-8751-4000-8cb4-a6ef270b636f.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,c as a,o as i,a as t,t as n,b as u,w as c,d as l,e as d}from"./
|
|
1
|
+
import{_ as s,c as a,o as i,a as t,t as n,b as u,w as c,d as l,e as d}from"./CAywURt7.js";import{u as f}from"./C4oLgKn5.js";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},h=["textContent"],b=["textContent"],x=["textContent"],g={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:404},statusText:{type:String,default:"Page 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(e){const r=e;return f({title:`${r.status} - ${r.statusText} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,w)=>{const o=d;return i(),a("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.status)},null,8,h),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusText)},null,8,b),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,x),t("div",g,[u(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:c(()=>[l(n(e.backHome),1)]),_:1})])])])}}},N=s(y,[["__scopeId","data-v-85347797"]]);export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"0f5f1d62-f186-4aef-a618-dcef5ec637c1","timestamp":1772688986035}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"0f5f1d62-f186-4aef-a618-dcef5ec637c1","timestamp":1772688986035,"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -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.D45OuV0w.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
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/CAywURt7.js"><script type="module" src="/__nuxt-scripts/_nuxt/CAywURt7.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:"0f5f1d62-f186-4aef-a618-dcef5ec637c1",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1772688990394,false]</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1188,8 +1188,8 @@ const module$1 = defineNuxtModule({
|
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
if (config.registry?.posthog && typeof config.registry.posthog === "object") {
|
|
1191
|
-
const phConfig = config.registry.posthog;
|
|
1192
|
-
if (!phConfig.apiHost) {
|
|
1191
|
+
const phConfig = Array.isArray(config.registry.posthog) ? config.registry.posthog[0] : config.registry.posthog;
|
|
1192
|
+
if (phConfig && !phConfig.apiHost) {
|
|
1193
1193
|
const region = phConfig.region || "us";
|
|
1194
1194
|
phConfig.apiHost = region === "eu" ? `${firstPartyCollectPrefix}/ph-eu` : `${firstPartyCollectPrefix}/ph`;
|
|
1195
1195
|
}
|
package/dist/registry.mjs
CHANGED
|
@@ -298,6 +298,19 @@ async function registry(resolve) {
|
|
|
298
298
|
from: await resolve("./runtime/registry/google-maps")
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
|
+
{
|
|
302
|
+
label: "Instagram Embed",
|
|
303
|
+
category: "content",
|
|
304
|
+
logo: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><g fill="none"><rect width="256" height="256" fill="url(#skillIconsInstagram0)" rx="60"/><rect width="256" height="256" fill="url(#skillIconsInstagram1)" rx="60"/><path fill="#fff" d="M128.009 28c-27.158 0-30.567.119-41.233.604c-10.646.488-17.913 2.173-24.271 4.646c-6.578 2.554-12.157 5.971-17.716 11.531c-5.563 5.559-8.98 11.138-11.542 17.713c-2.48 6.36-4.167 13.63-4.646 24.271c-.477 10.667-.602 14.077-.602 41.236s.12 30.557.604 41.223c.49 10.646 2.175 17.913 4.646 24.271c2.556 6.578 5.973 12.157 11.533 17.716c5.557 5.563 11.136 8.988 17.709 11.542c6.363 2.473 13.631 4.158 24.275 4.646c10.668.485 14.073.604 41.23.604c27.161 0 30.559-.119 41.225-.604c10.646-.488 17.921-2.173 24.284-4.646c6.575-2.554 12.146-5.979 17.702-11.542c5.563-5.559 8.98-11.138 11.542-17.716c2.458-6.358 4.145-13.625 4.646-24.271c.48-10.666.604-14.066.604-41.223s-.124-30.569-.604-41.236c-.501-10.646-2.188-17.911-4.646-24.271c-2.562-6.575-5.979-12.154-11.542-17.713c-5.559-5.56-11.13-8.977-17.716-11.531c-6.375-2.473-13.646-4.158-24.292-4.646C158.57 28.119 155.164 28 128.009 28m-8.868 18.021h8.868c26.695 0 29.855.103 40.41.582c9.751.446 15.042 2.079 18.567 3.454c4.667 1.813 7.992 3.979 11.492 7.48c3.5 3.5 5.666 6.829 7.483 11.496c1.375 3.525 3.012 8.813 3.454 18.563c.479 10.558.588 13.719.588 40.413s-.109 29.854-.588 40.412c-.446 9.75-2.079 15.042-3.454 18.563c-1.813 4.667-3.983 7.992-7.483 11.492a30.94 30.94 0 0 1-11.492 7.479c-3.521 1.379-8.812 3.013-18.567 3.458c-10.554.48-13.711.589-40.41.589c-26.702 0-29.859-.109-40.413-.589c-9.75-.449-15.046-2.079-18.571-3.458c-4.667-1.813-8-3.979-11.5-7.479s-5.666-6.825-7.483-11.496c-1.375-3.521-3.012-8.813-3.454-18.563c-.479-10.558-.583-13.715-.583-40.42c0-26.704.104-29.856.583-40.413c.446-9.75 2.079-15.042 3.454-18.567c1.813-4.667 3.983-7.996 11.5-11.5a30.804 30.804 0 0 1 11.496-7.479c3.525-1.375 8.821-3.013 18.571-3.458c9.238-.421 12.82-.546 31.505-.563zm62.496 16.604c-6.625 0-12 5.37-12 12c0 6.625 5.375 12 12 12c6.625 0 12-5.375 12-12s-5.375-12-12-12m-53.628 14.021c-28.272 0-51.196 22.924-51.196 51.196s22.924 51.2 51.196 51.2c28.271 0 51.2-22.929 51.2-51.2c0-28.272-22.929-51.196-51.2-51.196m0 18.021c18.334 0 33.183 14.846 33.183 33.175c0 18.334-14.849 33.184-33.183 33.184c-18.33 0-33.175-14.85-33.175-33.184c0-18.329 14.845-33.175 33.175-33.175"/><defs><radialGradient id="skillIconsInstagram0" cx="0" cy="0" r="1" gradientTransform="matrix(0 -253.715 235.975 0 68 275.717)" gradientUnits="userSpaceOnUse"><stop stop-color="#FD5"/><stop offset=".1" stop-color="#FD5"/><stop offset=".5" stop-color="#FF543E"/><stop offset="1" stop-color="#C837AB"/></radialGradient><radialGradient id="skillIconsInstagram1" cx="0" cy="0" r="1" gradientTransform="matrix(22.25952 111.2976 -458.39518 91.75449 -42.881 18.441)" gradientUnits="userSpaceOnUse"><stop stop-color="#3771C8"/><stop offset=".128" stop-color="#3771C8"/><stop offset="1" stop-color="#60F" stop-opacity="0"/></radialGradient></defs></g></svg>`
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
label: "X Embed",
|
|
308
|
+
category: "content",
|
|
309
|
+
logo: {
|
|
310
|
+
light: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="#000" d="M18.205 2.25h3.308l-7.227 8.26l8.502 11.24H16.13l-5.214-6.817L4.95 21.75H1.64l7.73-8.835L1.215 2.25H8.04l4.713 6.231zm-1.161 17.52h1.833L7.045 4.126H5.078z"/></svg>`,
|
|
311
|
+
dark: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="#fff" d="M18.205 2.25h3.308l-7.227 8.26l8.502 11.24H16.13l-5.214-6.817L4.95 21.75H1.64l7.73-8.835L1.215 2.25H8.04l4.713 6.231zm-1.161 17.52h1.833L7.045 4.126H5.078z"/></svg>`
|
|
312
|
+
}
|
|
313
|
+
},
|
|
301
314
|
// chat
|
|
302
315
|
{
|
|
303
316
|
label: "Crisp",
|
|
@@ -36,6 +36,13 @@ type __VLS_Props = {
|
|
|
36
36
|
vimeoOptions?: VimeoOptions;
|
|
37
37
|
id?: number | undefined;
|
|
38
38
|
url?: string | undefined;
|
|
39
|
+
ratio?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Object-fit for the placeholder image.
|
|
42
|
+
*
|
|
43
|
+
* @default 'contain'
|
|
44
|
+
*/
|
|
45
|
+
placeholderObjectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
39
46
|
};
|
|
40
47
|
declare var __VLS_1: any, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
|
|
41
48
|
type __VLS_Slots = {} & {
|
|
@@ -117,6 +124,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
117
124
|
onLeavepictureinpicture?: ((event: never, player: Vimeo.Player) => any) | undefined;
|
|
118
125
|
}>, {
|
|
119
126
|
trigger: ElementScriptTrigger;
|
|
127
|
+
ratio: string;
|
|
128
|
+
placeholderObjectFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
120
129
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
121
130
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
122
131
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,7 +12,9 @@ const props = defineProps({
|
|
|
12
12
|
aboveTheFold: { type: Boolean, required: false },
|
|
13
13
|
vimeoOptions: { type: Object, required: false },
|
|
14
14
|
id: { type: null, required: false },
|
|
15
|
-
url: { type: null, required: false }
|
|
15
|
+
url: { type: null, required: false },
|
|
16
|
+
ratio: { type: String, required: false, default: "16/9" },
|
|
17
|
+
placeholderObjectFit: { type: String, required: false, default: "contain" }
|
|
16
18
|
});
|
|
17
19
|
const emits = defineEmits(["play", "playing", "pause", "ended", "timeupdate", "progress", "seeking", "seeked", "texttrackchange", "chapterchange", "cuechange", "cuepoint", "volumechange", "playbackratechange", "bufferstart", "bufferend", "error", "loaded", "durationchange", "fullscreenchange", "qualitychange", "camerachange", "resize", "enterpictureinpicture", "leavepictureinpicture"]);
|
|
18
20
|
const events = [
|
|
@@ -153,12 +155,13 @@ const rootAttrs = computed(() => {
|
|
|
153
155
|
"aria-live": "polite",
|
|
154
156
|
"role": "application",
|
|
155
157
|
"style": {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
"--vimeo-ratio": props.ratio,
|
|
159
|
+
"maxWidth": "100%",
|
|
160
|
+
"width": `auto`,
|
|
161
|
+
"height": "auto",
|
|
162
|
+
"aspectRatio": props.ratio,
|
|
163
|
+
"position": "relative",
|
|
164
|
+
"backgroundColor": "black"
|
|
162
165
|
},
|
|
163
166
|
...trigger instanceof Promise ? trigger.ssrAttrs || {} : {}
|
|
164
167
|
});
|
|
@@ -173,7 +176,7 @@ const placeholderAttrs = computed(() => {
|
|
|
173
176
|
style: {
|
|
174
177
|
cursor: "pointer",
|
|
175
178
|
width: "100%",
|
|
176
|
-
objectFit:
|
|
179
|
+
objectFit: props.placeholderObjectFit,
|
|
177
180
|
height: "100%"
|
|
178
181
|
}
|
|
179
182
|
});
|
|
@@ -197,5 +200,5 @@ onBeforeUnmount(() => player?.unload());
|
|
|
197
200
|
</template>
|
|
198
201
|
|
|
199
202
|
<style>
|
|
200
|
-
.vimeo-player iframe{aspect-ratio:16/9;height:auto;max-width:100%!important;width:100%}
|
|
203
|
+
.vimeo-player iframe{aspect-ratio:var(--vimeo-ratio,16/9);height:auto;max-width:100%!important;width:100%}
|
|
201
204
|
</style>
|
|
@@ -36,6 +36,13 @@ type __VLS_Props = {
|
|
|
36
36
|
vimeoOptions?: VimeoOptions;
|
|
37
37
|
id?: number | undefined;
|
|
38
38
|
url?: string | undefined;
|
|
39
|
+
ratio?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Object-fit for the placeholder image.
|
|
42
|
+
*
|
|
43
|
+
* @default 'contain'
|
|
44
|
+
*/
|
|
45
|
+
placeholderObjectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
39
46
|
};
|
|
40
47
|
declare var __VLS_1: any, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
|
|
41
48
|
type __VLS_Slots = {} & {
|
|
@@ -117,6 +124,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
117
124
|
onLeavepictureinpicture?: ((event: never, player: Vimeo.Player) => any) | undefined;
|
|
118
125
|
}>, {
|
|
119
126
|
trigger: ElementScriptTrigger;
|
|
127
|
+
ratio: string;
|
|
128
|
+
placeholderObjectFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
120
129
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
121
130
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
122
131
|
declare const _default: typeof __VLS_export;
|
|
@@ -61,12 +61,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
61
61
|
trigger: ElementScriptTrigger;
|
|
62
62
|
width: number;
|
|
63
63
|
height: number;
|
|
64
|
-
playerVars: YT.PlayerVars;
|
|
65
64
|
ratio: string;
|
|
65
|
+
placeholderObjectFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
66
|
+
playerVars: YT.PlayerVars;
|
|
66
67
|
cookies: boolean;
|
|
67
68
|
thumbnailSize: YoutubeThumbnailSize;
|
|
68
69
|
webp: boolean;
|
|
69
|
-
placeholderObjectFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
70
70
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
71
71
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
72
72
|
declare const _default: typeof __VLS_export;
|
|
@@ -154,6 +154,8 @@ const placeholderAttrs = computed(() => {
|
|
|
154
154
|
src: isFallbackPlaceHolder.value ? fallbackPlaceHolder.value : placeholder.value,
|
|
155
155
|
alt: "",
|
|
156
156
|
loading: props.aboveTheFold ? "eager" : "lazy",
|
|
157
|
+
// @ts-expect-error untyped
|
|
158
|
+
fetchpriority: props.aboveTheFold ? "high" : void 0,
|
|
157
159
|
style: {
|
|
158
160
|
width: "100%",
|
|
159
161
|
objectFit: props.placeholderObjectFit,
|
|
@@ -61,12 +61,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
61
61
|
trigger: ElementScriptTrigger;
|
|
62
62
|
width: number;
|
|
63
63
|
height: number;
|
|
64
|
-
playerVars: YT.PlayerVars;
|
|
65
64
|
ratio: string;
|
|
65
|
+
placeholderObjectFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
66
|
+
playerVars: YT.PlayerVars;
|
|
66
67
|
cookies: boolean;
|
|
67
68
|
thumbnailSize: YoutubeThumbnailSize;
|
|
68
69
|
webp: boolean;
|
|
69
|
-
placeholderObjectFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
70
70
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
71
71
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
72
72
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,7 +3,7 @@ export declare const NpmOptions: import("valibot").ObjectSchema<{
|
|
|
3
3
|
readonly packageName: import("valibot").StringSchema<undefined>;
|
|
4
4
|
readonly file: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
5
5
|
readonly version: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly provider: import("valibot").OptionalSchema<import("valibot").UnionSchema<import("valibot").LiteralSchema<"jsdelivr"
|
|
6
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"jsdelivr", undefined>, import("valibot").LiteralSchema<"cdnjs", undefined>, import("valibot").LiteralSchema<"unpkg", undefined>], undefined>, undefined>;
|
|
7
7
|
}, undefined>;
|
|
8
8
|
export type NpmInput = RegistryScriptInput<typeof NpmOptions, true, true, false>;
|
|
9
9
|
export declare function useScriptNpm<T extends Record<string | symbol, any>>(_options: NpmInput): import("#nuxt-scripts/types").UseScriptContext<T>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { literal, object, optional, string, union } from "#nuxt-scripts-validator";
|
|
2
2
|
import { withBase } from "ufo";
|
|
3
3
|
import { useRegistryScript } from "../utils.js";
|
|
4
|
-
const PROVIDERS = ["jsdelivr", "cdnjs", "unpkg"];
|
|
5
|
-
const providerValidator = union(PROVIDERS.map((provider) => literal(provider)));
|
|
6
4
|
export const NpmOptions = object({
|
|
7
5
|
packageName: string(),
|
|
8
6
|
file: optional(string()),
|
|
9
7
|
version: optional(string()),
|
|
10
|
-
provider: optional(
|
|
8
|
+
provider: optional(union([literal("jsdelivr"), literal("cdnjs"), literal("unpkg")]))
|
|
11
9
|
});
|
|
12
10
|
export function useScriptNpm(_options) {
|
|
13
11
|
return useRegistryScript(`${_options.packageName}-npm`, (options) => {
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import * as valibot from 'valibot';
|
|
2
|
+
|
|
3
|
+
declare const ClarityOptions: valibot.ObjectSchema<{
|
|
4
|
+
/**
|
|
5
|
+
* The Clarity token.
|
|
6
|
+
*/
|
|
7
|
+
readonly id: valibot.SchemaWithPipe<readonly [valibot.StringSchema<undefined>, valibot.MinLengthAction<string, 10, undefined>]>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
declare const CloudflareWebAnalyticsOptions: valibot.ObjectSchema<{
|
|
10
|
+
/**
|
|
11
|
+
* The Cloudflare Web Analytics token.
|
|
12
|
+
*/
|
|
13
|
+
readonly token: valibot.SchemaWithPipe<readonly [valibot.StringSchema<undefined>, valibot.MinLengthAction<string, 32, undefined>]>;
|
|
14
|
+
/**
|
|
15
|
+
* Cloudflare Web Analytics enables measuring SPAs automatically by overriding the History API’s pushState function
|
|
16
|
+
* and listening to the onpopstate. Hash-based router is not supported.
|
|
17
|
+
*
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
readonly spa: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
21
|
+
}, undefined>;
|
|
22
|
+
declare const CrispOptions: valibot.ObjectSchema<{
|
|
23
|
+
/**
|
|
24
|
+
* The Crisp ID.
|
|
25
|
+
*/
|
|
26
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Extra configuration options. Used to configure the locale.
|
|
29
|
+
* Same as CRISP_RUNTIME_CONFIG.
|
|
30
|
+
* @see https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/language-customization/
|
|
31
|
+
*/
|
|
32
|
+
readonly runtimeConfig: valibot.OptionalSchema<valibot.ObjectSchema<{
|
|
33
|
+
readonly locale: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
34
|
+
}, undefined>, undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Associated a session, equivalent to using CRISP_TOKEN_ID variable.
|
|
37
|
+
* Same as CRISP_TOKEN_ID.
|
|
38
|
+
* @see https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/session-continuity/
|
|
39
|
+
*/
|
|
40
|
+
readonly tokenId: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Restrict the domain that the Crisp cookie is set on.
|
|
43
|
+
* Same as CRISP_COOKIE_DOMAIN.
|
|
44
|
+
* @see https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/cookie-policies/
|
|
45
|
+
*/
|
|
46
|
+
readonly cookieDomain: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The cookie expiry in seconds.
|
|
49
|
+
* Same as CRISP_COOKIE_EXPIRATION.
|
|
50
|
+
* @see https://docs.crisp.chat/guides/chatbox-sdks/web-sdk/cookie-policies/#change-cookie-expiration-date
|
|
51
|
+
*/
|
|
52
|
+
readonly cookieExpiry: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
53
|
+
}, undefined>;
|
|
54
|
+
declare const DatabuddyAnalyticsOptions: valibot.ObjectSchema<{
|
|
55
|
+
readonly clientId: valibot.StringSchema<undefined>;
|
|
56
|
+
readonly scriptUrl: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly apiUrl: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
58
|
+
readonly disabled: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
59
|
+
readonly trackScreenViews: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
60
|
+
readonly trackPerformance: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
61
|
+
readonly trackSessions: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
62
|
+
readonly trackWebVitals: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
63
|
+
readonly trackErrors: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
64
|
+
readonly trackOutgoingLinks: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
65
|
+
readonly trackScrollDepth: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
66
|
+
readonly trackEngagement: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
67
|
+
readonly trackInteractions: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
68
|
+
readonly trackAttributes: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
69
|
+
readonly trackHashChanges: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
70
|
+
readonly trackExitIntent: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
71
|
+
readonly trackBounceRate: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
72
|
+
readonly enableBatching: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
73
|
+
readonly batchSize: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
74
|
+
readonly batchTimeout: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
75
|
+
readonly enableRetries: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
76
|
+
readonly maxRetries: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
77
|
+
readonly initialRetryDelay: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
78
|
+
readonly samplingRate: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
79
|
+
readonly sdk: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly sdkVersion: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly enableObservability: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
82
|
+
readonly observabilityService: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
83
|
+
readonly observabilityEnvironment: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
84
|
+
readonly observabilityVersion: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly enableLogging: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
86
|
+
readonly enableTracing: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
87
|
+
readonly enableErrorTracking: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
declare const FathomAnalyticsOptions: valibot.ObjectSchema<{
|
|
90
|
+
/**
|
|
91
|
+
* The Fathom Analytics site ID.
|
|
92
|
+
*/
|
|
93
|
+
readonly site: valibot.StringSchema<undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* The Fathom Analytics tracking mode.
|
|
96
|
+
*/
|
|
97
|
+
readonly spa: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"auto", undefined>, valibot.LiteralSchema<"history", undefined>, valibot.LiteralSchema<"hash", undefined>], undefined>, undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* Automatically track page views.
|
|
100
|
+
*/
|
|
101
|
+
readonly auto: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Enable canonical URL tracking.
|
|
104
|
+
*/
|
|
105
|
+
readonly canonical: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* Honor Do Not Track requests.
|
|
108
|
+
*/
|
|
109
|
+
readonly honorDnt: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
110
|
+
}, undefined>;
|
|
111
|
+
declare const GoogleAdsenseOptions: valibot.ObjectSchema<{
|
|
112
|
+
/**
|
|
113
|
+
* The Google Adsense ID.
|
|
114
|
+
*/
|
|
115
|
+
readonly client: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* Enable or disable Auto Ads.
|
|
118
|
+
*/
|
|
119
|
+
readonly autoAds: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
120
|
+
}, undefined>;
|
|
121
|
+
declare const GoogleAnalyticsOptions: valibot.ObjectSchema<{
|
|
122
|
+
readonly id: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
123
|
+
readonly l: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
124
|
+
}, undefined>;
|
|
125
|
+
declare const GoogleMapsOptions: valibot.ObjectSchema<{
|
|
126
|
+
readonly apiKey: valibot.StringSchema<undefined>;
|
|
127
|
+
readonly libraries: valibot.OptionalSchema<valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>, undefined>;
|
|
128
|
+
readonly language: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
129
|
+
readonly region: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
130
|
+
readonly v: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"weekly", undefined>, valibot.LiteralSchema<"quarterly", undefined>, valibot.LiteralSchema<"beta", undefined>, valibot.LiteralSchema<"alpha", undefined>, valibot.StringSchema<undefined>], undefined>, undefined>;
|
|
131
|
+
}, undefined>;
|
|
132
|
+
declare const GoogleRecaptchaOptions: valibot.ObjectSchema<{
|
|
133
|
+
readonly siteKey: valibot.StringSchema<undefined>;
|
|
134
|
+
readonly enterprise: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
135
|
+
readonly recaptchaNet: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
136
|
+
readonly hl: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
declare const GoogleSignInOptions: valibot.ObjectSchema<{
|
|
139
|
+
readonly clientId: valibot.StringSchema<undefined>;
|
|
140
|
+
readonly autoSelect: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
141
|
+
readonly context: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"signin", undefined>, valibot.LiteralSchema<"signup", undefined>, valibot.LiteralSchema<"use", undefined>], undefined>, undefined>;
|
|
142
|
+
readonly useFedcmForPrompt: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
143
|
+
readonly cancelOnTapOutside: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
144
|
+
readonly uxMode: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"popup", undefined>, valibot.LiteralSchema<"redirect", undefined>], undefined>, undefined>;
|
|
145
|
+
readonly loginUri: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
146
|
+
readonly itpSupport: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
147
|
+
readonly allowedParentOrigin: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
148
|
+
readonly hd: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
149
|
+
}, undefined>;
|
|
150
|
+
declare const GoogleTagManagerOptions: valibot.ObjectSchema<{
|
|
151
|
+
/** GTM container ID (format: GTM-XXXXXX) */
|
|
152
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
153
|
+
/** Optional dataLayer variable name */
|
|
154
|
+
readonly l: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
155
|
+
/** Authentication token for environment-specific container versions */
|
|
156
|
+
readonly auth: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
157
|
+
/** Preview environment name */
|
|
158
|
+
readonly preview: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
159
|
+
/** Forces GTM cookies to take precedence when true */
|
|
160
|
+
readonly cookiesWin: valibot.OptionalSchema<valibot.UnionSchema<[valibot.BooleanSchema<undefined>, valibot.LiteralSchema<"x", undefined>], undefined>, undefined>;
|
|
161
|
+
/** Enables debug mode when true */
|
|
162
|
+
readonly debug: valibot.OptionalSchema<valibot.UnionSchema<[valibot.BooleanSchema<undefined>, valibot.LiteralSchema<"x", undefined>], undefined>, undefined>;
|
|
163
|
+
/** No Personal Advertising - disables advertising features when true */
|
|
164
|
+
readonly npa: valibot.OptionalSchema<valibot.UnionSchema<[valibot.BooleanSchema<undefined>, valibot.LiteralSchema<"1", undefined>], undefined>, undefined>;
|
|
165
|
+
/** Custom dataLayer name (alternative to "l" property) */
|
|
166
|
+
readonly dataLayer: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
167
|
+
/** Environment name for environment-specific container */
|
|
168
|
+
readonly envName: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
169
|
+
/** Referrer policy for analytics requests */
|
|
170
|
+
readonly authReferrerPolicy: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
171
|
+
/** Default consent settings for GTM */
|
|
172
|
+
readonly defaultConsent: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
173
|
+
}, undefined>;
|
|
174
|
+
declare const HotjarOptions: valibot.ObjectSchema<{
|
|
175
|
+
readonly id: valibot.NumberSchema<undefined>;
|
|
176
|
+
readonly sv: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
177
|
+
}, undefined>;
|
|
178
|
+
declare const InstagramEmbedOptions: valibot.ObjectSchema<{
|
|
179
|
+
/**
|
|
180
|
+
* The Instagram post URL to embed
|
|
181
|
+
* e.g., https://www.instagram.com/p/ABC123/
|
|
182
|
+
*/
|
|
183
|
+
readonly postUrl: valibot.StringSchema<undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* Whether to include captions in the embed
|
|
186
|
+
* @default true
|
|
187
|
+
*/
|
|
188
|
+
readonly captions: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* Custom API endpoint for fetching embed HTML
|
|
191
|
+
* @default '/api/_scripts/instagram-embed'
|
|
192
|
+
*/
|
|
193
|
+
readonly apiEndpoint: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
194
|
+
}, undefined>;
|
|
195
|
+
declare const IntercomOptions: valibot.ObjectSchema<{
|
|
196
|
+
readonly app_id: valibot.StringSchema<undefined>;
|
|
197
|
+
readonly api_base: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"https://api-iam.intercom.io", undefined>, valibot.LiteralSchema<"https://api-iam.eu.intercom.io", undefined>, valibot.LiteralSchema<"https://api-iam.au.intercom.io", undefined>], undefined>, undefined>;
|
|
198
|
+
readonly name: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
199
|
+
readonly email: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
200
|
+
readonly user_id: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
201
|
+
readonly alignment: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"left", undefined>, valibot.LiteralSchema<"right", undefined>], undefined>, undefined>;
|
|
202
|
+
readonly horizontal_padding: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
203
|
+
readonly vertical_padding: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
204
|
+
}, undefined>;
|
|
205
|
+
declare const MatomoAnalyticsOptions: valibot.ObjectSchema<{
|
|
206
|
+
readonly matomoUrl: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
207
|
+
readonly siteId: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.NumberSchema<undefined>], undefined>, undefined>;
|
|
208
|
+
readonly cloudId: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
209
|
+
readonly trackerUrl: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
210
|
+
readonly trackPageView: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
211
|
+
readonly enableLinkTracking: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
212
|
+
readonly disableCookies: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
213
|
+
readonly watch: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
214
|
+
}, undefined>;
|
|
215
|
+
declare const MetaPixelOptions: valibot.ObjectSchema<{
|
|
216
|
+
readonly id: valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.NumberSchema<undefined>], undefined>;
|
|
217
|
+
}, undefined>;
|
|
218
|
+
declare const NpmOptions: valibot.ObjectSchema<{
|
|
219
|
+
readonly packageName: valibot.StringSchema<undefined>;
|
|
220
|
+
readonly file: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
221
|
+
readonly version: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
222
|
+
readonly provider: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"jsdelivr", undefined>, valibot.LiteralSchema<"cdnjs", undefined>, valibot.LiteralSchema<"unpkg", undefined>], undefined>, undefined>;
|
|
223
|
+
}, undefined>;
|
|
224
|
+
declare const PayPalOptions: valibot.ObjectSchema<{
|
|
225
|
+
readonly clientId: valibot.StringSchema<undefined>;
|
|
226
|
+
readonly buyerCountry: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
227
|
+
readonly commit: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
228
|
+
readonly components: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
229
|
+
readonly currency: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
230
|
+
readonly debug: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.BooleanSchema<undefined>], undefined>, undefined>;
|
|
231
|
+
readonly disableFunding: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
232
|
+
readonly enableFunding: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
233
|
+
readonly integrationDate: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
234
|
+
readonly intent: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
235
|
+
readonly locale: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
236
|
+
/**
|
|
237
|
+
* loadScript() supports an array for merchantId, even though
|
|
238
|
+
* merchant-id technically may not contain multiple values.
|
|
239
|
+
* For an array with a length of > 1 it automatically sets
|
|
240
|
+
* merchantId to "*" and moves the actual values to dataMerchantId
|
|
241
|
+
*/
|
|
242
|
+
readonly merchantId: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
243
|
+
readonly partnerAttributionId: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
244
|
+
readonly vault: valibot.OptionalSchema<valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.BooleanSchema<undefined>], undefined>, undefined>;
|
|
245
|
+
readonly sandbox: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
246
|
+
}, undefined>;
|
|
247
|
+
declare const PostHogOptions: valibot.ObjectSchema<{
|
|
248
|
+
readonly apiKey: valibot.StringSchema<undefined>;
|
|
249
|
+
readonly region: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"us", undefined>, valibot.LiteralSchema<"eu", undefined>], undefined>, undefined>;
|
|
250
|
+
readonly apiHost: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
251
|
+
readonly autocapture: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
252
|
+
readonly capturePageview: valibot.OptionalSchema<valibot.UnionSchema<[valibot.BooleanSchema<undefined>, valibot.LiteralSchema<"history_change", undefined>], undefined>, undefined>;
|
|
253
|
+
readonly capturePageleave: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
254
|
+
readonly disableSessionRecording: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
255
|
+
readonly config: valibot.OptionalSchema<valibot.RecordSchema<valibot.StringSchema<undefined>, valibot.AnySchema, undefined>, undefined>;
|
|
256
|
+
}, undefined>;
|
|
257
|
+
declare const RedditPixelOptions: valibot.ObjectSchema<{
|
|
258
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
259
|
+
}, undefined>;
|
|
260
|
+
declare const RybbitAnalyticsOptions: valibot.ObjectSchema<{
|
|
261
|
+
readonly siteId: valibot.UnionSchema<[valibot.StringSchema<undefined>, valibot.NumberSchema<undefined>], undefined>;
|
|
262
|
+
readonly autoTrackPageview: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
263
|
+
readonly trackSpa: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
264
|
+
readonly trackQuery: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
265
|
+
readonly trackOutbound: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
266
|
+
readonly trackErrors: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
267
|
+
readonly sessionReplay: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
268
|
+
readonly webVitals: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
269
|
+
readonly skipPatterns: valibot.OptionalSchema<valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>, undefined>;
|
|
270
|
+
readonly maskPatterns: valibot.OptionalSchema<valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>, undefined>;
|
|
271
|
+
readonly debounce: valibot.OptionalSchema<valibot.NumberSchema<undefined>, undefined>;
|
|
272
|
+
readonly apiKey: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
273
|
+
}, undefined>;
|
|
274
|
+
declare const SegmentOptions: valibot.ObjectSchema<{
|
|
275
|
+
readonly writeKey: valibot.StringSchema<undefined>;
|
|
276
|
+
readonly analyticsKey: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
277
|
+
}, undefined>;
|
|
278
|
+
declare const InitObjectPropertiesSchema: valibot.ObjectSchema<{
|
|
279
|
+
readonly user_email: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
280
|
+
readonly ip_address: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
281
|
+
readonly user_phone_number: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
282
|
+
readonly user_hashed_email: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
283
|
+
readonly user_hashed_phone_number: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
284
|
+
readonly firstname: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
285
|
+
readonly lastname: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
286
|
+
readonly geo_city: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
287
|
+
readonly geo_region: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
288
|
+
readonly geo_postal_code: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
289
|
+
readonly geo_country: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
290
|
+
readonly age: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
291
|
+
}, undefined>;
|
|
292
|
+
declare const SnapTrPixelOptions: valibot.ObjectSchema<{
|
|
293
|
+
readonly user_email: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
294
|
+
readonly ip_address: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
295
|
+
readonly user_phone_number: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
296
|
+
readonly user_hashed_email: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
297
|
+
readonly user_hashed_phone_number: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
298
|
+
readonly firstname: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
299
|
+
readonly lastname: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
300
|
+
readonly geo_city: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
301
|
+
readonly geo_region: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
302
|
+
readonly geo_postal_code: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
303
|
+
readonly geo_country: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
304
|
+
readonly age: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
305
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
306
|
+
readonly trackPageView: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
307
|
+
}, undefined>;
|
|
308
|
+
declare const StripeOptions: valibot.ObjectSchema<{
|
|
309
|
+
readonly advancedFraudSignals: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
310
|
+
}, undefined>;
|
|
311
|
+
declare const TikTokPixelOptions: valibot.ObjectSchema<{
|
|
312
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
313
|
+
readonly trackPageView: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
314
|
+
}, undefined>;
|
|
315
|
+
declare const UmamiAnalyticsOptions: valibot.ObjectSchema<{
|
|
316
|
+
readonly websiteId: valibot.StringSchema<undefined>;
|
|
317
|
+
/**
|
|
318
|
+
* By default, Umami will send data to wherever the script is located.
|
|
319
|
+
* You can override this to send data to another location.
|
|
320
|
+
*/
|
|
321
|
+
readonly hostUrl: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
322
|
+
/**
|
|
323
|
+
* By default, Umami tracks all pageviews and events for you automatically.
|
|
324
|
+
* You can disable this behavior and track events yourself using the tracker functions.
|
|
325
|
+
* https://umami.is/docs/tracker-functions
|
|
326
|
+
*/
|
|
327
|
+
readonly autoTrack: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, undefined>;
|
|
328
|
+
/**
|
|
329
|
+
* If you want the tracker to only run on specific domains, you can add them to your tracker script.
|
|
330
|
+
* This is a comma delimited list of domain names.
|
|
331
|
+
* Helps if you are working in a staging/development environment.
|
|
332
|
+
*/
|
|
333
|
+
readonly domains: valibot.OptionalSchema<valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>, undefined>;
|
|
334
|
+
/**
|
|
335
|
+
* If you want the tracker to collect events under a specific tag.
|
|
336
|
+
* Events can be filtered in the dashboard by a specific tag.
|
|
337
|
+
*/
|
|
338
|
+
readonly tag: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
339
|
+
/**
|
|
340
|
+
* Function that will be called before data is sent to Umami.
|
|
341
|
+
* The function takes two parameters: type and payload.
|
|
342
|
+
* Return the payload to continue sending, or return a falsy value to cancel.
|
|
343
|
+
*/
|
|
344
|
+
readonly beforeSend: valibot.OptionalSchema<valibot.UnionSchema<[valibot.CustomSchema<(type: string, payload: Record<string, any>) => Record<string, any> | null | false, undefined>, valibot.StringSchema<undefined>], undefined>, undefined>;
|
|
345
|
+
}, undefined>;
|
|
346
|
+
declare const XEmbedOptions: valibot.ObjectSchema<{
|
|
347
|
+
/**
|
|
348
|
+
* The tweet ID to embed
|
|
349
|
+
*/
|
|
350
|
+
readonly tweetId: valibot.StringSchema<undefined>;
|
|
351
|
+
/**
|
|
352
|
+
* Optional: Custom API endpoint for fetching tweet data
|
|
353
|
+
* @default '/api/_scripts/x-embed'
|
|
354
|
+
*/
|
|
355
|
+
readonly apiEndpoint: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
356
|
+
/**
|
|
357
|
+
* Optional: Custom image proxy endpoint
|
|
358
|
+
* @default '/api/_scripts/x-embed-image'
|
|
359
|
+
*/
|
|
360
|
+
readonly imageProxyEndpoint: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
361
|
+
}, undefined>;
|
|
362
|
+
declare const XPixelOptions: valibot.ObjectSchema<{
|
|
363
|
+
readonly id: valibot.StringSchema<undefined>;
|
|
364
|
+
readonly version: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
|
|
365
|
+
}, undefined>;
|
|
366
|
+
|
|
367
|
+
interface ExtractedDeclaration {
|
|
368
|
+
name: string;
|
|
369
|
+
kind: 'interface' | 'type' | 'const';
|
|
370
|
+
code: string;
|
|
371
|
+
}
|
|
372
|
+
declare function getRegistryTypes(): Record<string, ExtractedDeclaration[]>;
|
|
373
|
+
|
|
374
|
+
export { ClarityOptions, CloudflareWebAnalyticsOptions, CrispOptions, DatabuddyAnalyticsOptions, FathomAnalyticsOptions, GoogleAdsenseOptions, GoogleAnalyticsOptions, GoogleMapsOptions, GoogleRecaptchaOptions, GoogleSignInOptions, GoogleTagManagerOptions, HotjarOptions, InitObjectPropertiesSchema, InstagramEmbedOptions, IntercomOptions, MatomoAnalyticsOptions, MetaPixelOptions, NpmOptions, PayPalOptions, PostHogOptions, RedditPixelOptions, RybbitAnalyticsOptions, SegmentOptions, SnapTrPixelOptions, StripeOptions, TikTokPixelOptions, UmamiAnalyticsOptions, XEmbedOptions, XPixelOptions, getRegistryTypes };
|
|
375
|
+
export type { ExtractedDeclaration };
|