@nuxt/scripts 0.11.7 → 0.11.8
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 +8 -8
- package/dist/client/404.html +8 -8
- package/dist/client/_nuxt/BNOvKpxj.js +21 -0
- package/dist/client/_nuxt/{D3ZVEC_8.js → D2xoTE-m.js} +1 -1
- package/dist/client/_nuxt/{z8Iwlb2L.js → DZpw5SEC.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/74284f3b-1037-4522-9dce-e62d39b7a1ca.json +1 -0
- package/dist/client/_nuxt/error-404.i3o1HkNe.css +1 -0
- package/dist/client/_nuxt/error-500.CGX2FgfP.css +1 -0
- package/dist/client/_nuxt/{_5UZfQdF.js → qUtuIAKL.js} +1 -1
- package/dist/client/index.html +8 -8
- package/dist/module.d.mts +2 -1
- package/dist/module.json +1 -1
- package/dist/runtime/components/ScriptGoogleMaps.vue +4 -4
- package/dist/runtime/components/ScriptGoogleMaps.vue.d.ts +1 -0
- package/dist/runtime/components/ScriptVimeoPlayer.vue +12 -4
- package/dist/runtime/registry/rybbit-analytics.d.ts +28 -2
- package/dist/runtime/registry/rybbit-analytics.js +14 -4
- package/dist/runtime/registry/umami-analytics.d.ts +7 -1
- package/dist/runtime/registry/umami-analytics.js +22 -3
- package/dist/runtime/validation/mock.d.ts +3 -0
- package/dist/runtime/validation/mock.js +1 -0
- package/dist/types.d.mts +3 -1
- package/package.json +17 -17
- package/dist/client/_nuxt/DmiqYg4r.js +0 -21
- package/dist/client/_nuxt/builds/meta/93bac187-07c5-4a76-83a2-cefcf05c0b88.json +0 -1
- package/dist/client/_nuxt/error-404.CpID9NZX.css +0 -1
- package/dist/client/_nuxt/error-500.BzWA0Bp3.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,c as i,o as u,a as e,t as r,b as c,w as l,d,e as p}from"./
|
|
1
|
+
import{_ as a,c as i,o as u,a as e,t as r,b as c,w as l,d,e as p}from"./BNOvKpxj.js";import{u as f}from"./DZpw5SEC.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},b=["textContent"],h=["textContent"],x={class:"flex items-center justify-center w-full"},y={__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 f({title:`${n.statusCode} - ${n.statusMessage} | ${n.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{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,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,o)=>{const s=p;return u(),i("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,b),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,h),e("div",x,[c(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:l(()=>[d(r(t.backHome),1)]),_:1})])])])}}},v=a(y,[["__scopeId","data-v-135bc89b"]]);export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as a,f as s,h as r,i as o,g as i}from"./
|
|
1
|
+
import{u as a,f as s,h as r,i as o,g as i}from"./BNOvKpxj.js";function u(n){var t;const e=n||s();return((t=e==null?void 0:e.ssrContext)==null?void 0:t.head)||(e==null?void 0:e.runWithContext(()=>{if(r())return o(i)}))}function d(n,e={}){const t=u(e.nuxt);if(t)return a(n,{head:t,...e})}export{d as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"74284f3b-1037-4522-9dce-e62d39b7a1ca","timestamp":1748837174356}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"74284f3b-1037-4522-9dce-e62d39b7a1ca","timestamp":1748837174356,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-135bc89b]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-135bc89b]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-135bc89b]{background-color:#ffffff4d}.gradient-border[data-v-135bc89b]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-135bc89b]{background-color:#1414144d}.gradient-border[data-v-135bc89b]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-135bc89b]:before{background-size:400% auto;border-radius:.5rem;bottom:0;content:"";left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;right:0;top:0;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-135bc89b]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-135bc89b]{position:fixed}.left-0[data-v-135bc89b]{left:0}.right-0[data-v-135bc89b]{right:0}.z-10[data-v-135bc89b]{z-index:10}.z-20[data-v-135bc89b]{z-index:20}.grid[data-v-135bc89b]{display:grid}.mb-16[data-v-135bc89b]{margin-bottom:4rem}.mb-8[data-v-135bc89b]{margin-bottom:2rem}.max-w-520px[data-v-135bc89b]{max-width:520px}.min-h-screen[data-v-135bc89b]{min-height:100vh}.w-full[data-v-135bc89b]{width:100%}.flex[data-v-135bc89b]{display:flex}.cursor-pointer[data-v-135bc89b]{cursor:pointer}.place-content-center[data-v-135bc89b]{place-content:center}.items-center[data-v-135bc89b]{align-items:center}.justify-center[data-v-135bc89b]{justify-content:center}.overflow-hidden[data-v-135bc89b]{overflow:hidden}.bg-white[data-v-135bc89b]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-135bc89b]{padding-left:1rem;padding-right:1rem}.px-8[data-v-135bc89b]{padding-left:2rem;padding-right:2rem}.py-2[data-v-135bc89b]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-135bc89b]{text-align:center}.text-8xl[data-v-135bc89b]{font-size:6rem;line-height:1}.text-xl[data-v-135bc89b]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-135bc89b]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-135bc89b]{font-weight:300}.font-medium[data-v-135bc89b]{font-weight:500}.leading-tight[data-v-135bc89b]{line-height:1.25}.font-sans[data-v-135bc89b]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-135bc89b]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-135bc89b]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-135bc89b]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-135bc89b]{padding-left:0;padding-right:0}.sm\:px-6[data-v-135bc89b]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-135bc89b]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-135bc89b]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-135bc89b]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-50c16674]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-50c16674]{position:fixed}.-bottom-1\/2[data-v-50c16674]{bottom:-50%}.left-0[data-v-50c16674]{left:0}.right-0[data-v-50c16674]{right:0}.grid[data-v-50c16674]{display:grid}.mb-16[data-v-50c16674]{margin-bottom:4rem}.mb-8[data-v-50c16674]{margin-bottom:2rem}.h-1\/2[data-v-50c16674]{height:50%}.max-w-520px[data-v-50c16674]{max-width:520px}.min-h-screen[data-v-50c16674]{min-height:100vh}.place-content-center[data-v-50c16674]{place-content:center}.overflow-hidden[data-v-50c16674]{overflow:hidden}.bg-white[data-v-50c16674]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-50c16674]{padding-left:2rem;padding-right:2rem}.text-center[data-v-50c16674]{text-align:center}.text-8xl[data-v-50c16674]{font-size:6rem;line-height:1}.text-xl[data-v-50c16674]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-50c16674]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-50c16674]{font-weight:300}.font-medium[data-v-50c16674]{font-weight:500}.leading-tight[data-v-50c16674]{line-height:1.25}.font-sans[data-v-50c16674]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-50c16674]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-50c16674]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-50c16674]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-50c16674]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-50c16674]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,c as a,o as i,a as e,t as o}from"./
|
|
1
|
+
import{_ as s,c as a,o as i,a as e,t as o}from"./BNOvKpxj.js";import{u}from"./DZpw5SEC.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["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 r=t;return u({title:`${r.statusCode} - ${r.statusMessage} | ${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{font-size:inherit;font-weight:inherit}h1,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: }'}]}),(g,n)=>(i(),a("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},b=s(f,[["__scopeId","data-v-50c16674"]]);export{b as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.DExDtQtx.css" crossorigin>
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
5
|
-
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
8
|
-
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.
|
|
9
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
10
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BNOvKpxj.js">
|
|
5
|
+
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.i3o1HkNe.css">
|
|
6
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D2xoTE-m.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DZpw5SEC.js">
|
|
8
|
+
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.CGX2FgfP.css">
|
|
9
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/qUtuIAKL.js">
|
|
10
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/BNOvKpxj.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1748837176215,false]</script>
|
|
11
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"74284f3b-1037-4522-9dce-e62d39b7a1ca",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.d.mts
CHANGED
|
@@ -57,4 +57,5 @@ interface ModuleHooks {
|
|
|
57
57
|
}
|
|
58
58
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
59
59
|
|
|
60
|
-
export {
|
|
60
|
+
export { _default as default };
|
|
61
|
+
export type { ModuleHooks, ModuleOptions };
|
package/dist/module.json
CHANGED
|
@@ -13,7 +13,7 @@ const props = defineProps({
|
|
|
13
13
|
aboveTheFold: { type: Boolean, required: false },
|
|
14
14
|
apiKey: { type: String, required: false },
|
|
15
15
|
center: { type: null, required: false },
|
|
16
|
-
centerMarker: { type: Boolean, required: false },
|
|
16
|
+
centerMarker: { type: Boolean, required: false, default: true },
|
|
17
17
|
mapOptions: { type: null, required: false },
|
|
18
18
|
region: { type: String, required: false },
|
|
19
19
|
language: { type: String, required: false },
|
|
@@ -179,7 +179,7 @@ onMounted(() => {
|
|
|
179
179
|
const toAdd = new Set([...nextMap.keys()].filter((k) => !mapMarkers.value.has(k)));
|
|
180
180
|
const centerHash = hash({ position: options.value.center });
|
|
181
181
|
for (const key of toRemove) {
|
|
182
|
-
if (key === centerHash) {
|
|
182
|
+
if (props.centerMarker && key === centerHash) {
|
|
183
183
|
continue;
|
|
184
184
|
}
|
|
185
185
|
const marker = await mapMarkers.value.get(key);
|
|
@@ -206,7 +206,7 @@ onMounted(() => {
|
|
|
206
206
|
center = await resolveQueryToLatLang(center);
|
|
207
207
|
}
|
|
208
208
|
map.value.setCenter(center);
|
|
209
|
-
if (
|
|
209
|
+
if (props.centerMarker) {
|
|
210
210
|
if (options.value.mapId) {
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
@@ -282,7 +282,7 @@ const placeholder = computed(() => {
|
|
|
282
282
|
style: props.mapOptions?.styles ? transformMapStyles(props.mapOptions.styles) : void 0,
|
|
283
283
|
markers: [
|
|
284
284
|
...props.markers || [],
|
|
285
|
-
|
|
285
|
+
props.centerMarker && center
|
|
286
286
|
].filter(Boolean).map((m) => {
|
|
287
287
|
if (typeof m === "object" && m.location) {
|
|
288
288
|
m = m.location;
|
|
@@ -132,6 +132,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
132
132
|
}) => any) | undefined;
|
|
133
133
|
}>, {
|
|
134
134
|
trigger: ElementScriptTrigger;
|
|
135
|
+
centerMarker: boolean;
|
|
135
136
|
width: number | string;
|
|
136
137
|
height: number | string;
|
|
137
138
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -72,15 +72,23 @@ if (import.meta.server) {
|
|
|
72
72
|
const id = computed(() => {
|
|
73
73
|
return props.vimeoOptions?.id || props.id;
|
|
74
74
|
});
|
|
75
|
+
const videoId = computed(() => `vimeo-embed:${id.value}`);
|
|
75
76
|
const { data: payload } = useAsyncData(
|
|
76
|
-
|
|
77
|
+
videoId,
|
|
77
78
|
// TODO ideally we cache this
|
|
78
|
-
() => $fetch(`https://vimeo.com/api/
|
|
79
|
+
() => $fetch(`https://vimeo.com/api/oembed.json`, {
|
|
80
|
+
params: {
|
|
81
|
+
url: `https://vimeo.com/${id.value}`,
|
|
82
|
+
format: "json"
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
79
85
|
{
|
|
80
|
-
|
|
86
|
+
lazy: true
|
|
81
87
|
}
|
|
82
88
|
);
|
|
83
|
-
const placeholder = computed(() =>
|
|
89
|
+
const placeholder = computed(() => {
|
|
90
|
+
return payload.value?.thumbnail_url;
|
|
91
|
+
});
|
|
84
92
|
let player;
|
|
85
93
|
defineExpose({
|
|
86
94
|
play: () => player?.play(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts/types';
|
|
2
2
|
export declare const RybbitAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
3
|
-
readonly siteId: import("valibot").StringSchema<undefined>;
|
|
3
|
+
readonly siteId: import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>;
|
|
4
4
|
readonly trackSpa: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
5
5
|
readonly trackQuery: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
6
6
|
readonly skipPatterns: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -9,8 +9,34 @@ export declare const RybbitAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
|
9
9
|
}, undefined>;
|
|
10
10
|
export type RybbitAnalyticsInput = RegistryScriptInput<typeof RybbitAnalyticsOptions, false>;
|
|
11
11
|
export interface RybbitAnalyticsApi {
|
|
12
|
+
/**
|
|
13
|
+
* Tracks a page view
|
|
14
|
+
*/
|
|
12
15
|
pageview: () => void;
|
|
13
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Tracks a custom event
|
|
18
|
+
* @param name Name of the event
|
|
19
|
+
* @param properties Optional properties for the event
|
|
20
|
+
*/
|
|
21
|
+
event: (name: string, properties?: Record<string, any>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Sets a custom user ID for tracking logged-in users
|
|
24
|
+
* @param userId The user ID to set (will be stored in localStorage)
|
|
25
|
+
*/
|
|
26
|
+
identify: (userId: string) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Clears the stored user ID
|
|
29
|
+
*/
|
|
30
|
+
clearUserId: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the currently set user ID
|
|
33
|
+
* @returns The current user ID or null if not set
|
|
34
|
+
*/
|
|
35
|
+
getUserId: () => string | null;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated use top level functions instead
|
|
38
|
+
*/
|
|
39
|
+
rybbit: RybbitAnalyticsApi;
|
|
14
40
|
}
|
|
15
41
|
declare global {
|
|
16
42
|
interface Window {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRegistryScript } from "../utils.js";
|
|
2
|
-
import { array, boolean, number, object, optional, string } from "#nuxt-scripts-validator";
|
|
2
|
+
import { array, boolean, number, object, optional, string, union } from "#nuxt-scripts-validator";
|
|
3
3
|
export const RybbitAnalyticsOptions = object({
|
|
4
|
-
siteId: string(),
|
|
4
|
+
siteId: union([string(), number()]),
|
|
5
5
|
// required
|
|
6
6
|
trackSpa: optional(boolean()),
|
|
7
7
|
trackQuery: optional(boolean()),
|
|
@@ -14,7 +14,7 @@ export function useScriptRybbitAnalytics(_options) {
|
|
|
14
14
|
return {
|
|
15
15
|
scriptInput: {
|
|
16
16
|
"src": "https://app.rybbit.io/api/script.js",
|
|
17
|
-
"data-site-id": options?.siteId,
|
|
17
|
+
"data-site-id": String(options?.siteId),
|
|
18
18
|
"data-track-spa": options?.trackSpa,
|
|
19
19
|
"data-track-query": options?.trackQuery,
|
|
20
20
|
"data-skip-patterns": options?.skipPatterns ? JSON.stringify(options.skipPatterns) : void 0,
|
|
@@ -24,7 +24,17 @@ export function useScriptRybbitAnalytics(_options) {
|
|
|
24
24
|
schema: import.meta.dev ? RybbitAnalyticsOptions : void 0,
|
|
25
25
|
scriptOptions: {
|
|
26
26
|
use() {
|
|
27
|
-
|
|
27
|
+
if (typeof window.rybbit === "undefined") {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
pageview: window.rybbit.pageview,
|
|
32
|
+
event: window.rybbit.event,
|
|
33
|
+
identify: window.rybbit.identify,
|
|
34
|
+
clearUserId: window.rybbit.clearUserId,
|
|
35
|
+
getUserId: window.rybbit.getUserId,
|
|
36
|
+
rybbit: window.rybbit
|
|
37
|
+
};
|
|
28
38
|
}
|
|
29
39
|
}
|
|
30
40
|
};
|
|
@@ -23,11 +23,17 @@ export declare const UmamiAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
|
23
23
|
* Events can be filtered in the dashboard by a specific tag.
|
|
24
24
|
*/
|
|
25
25
|
readonly tag: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Function that will be called before data is sent to Umami.
|
|
28
|
+
* The function takes two parameters: type and payload.
|
|
29
|
+
* Return the payload to continue sending, or return a falsy value to cancel.
|
|
30
|
+
*/
|
|
31
|
+
readonly beforeSend: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").CustomSchema<(type: string, payload: Record<string, any>) => Record<string, any> | null | false, undefined>, import("valibot").StringSchema<undefined>], undefined>, undefined>;
|
|
26
32
|
}, undefined>;
|
|
27
33
|
export type UmamiAnalyticsInput = RegistryScriptInput<typeof UmamiAnalyticsOptions, false>;
|
|
28
34
|
export interface UmamiAnalyticsApi {
|
|
29
35
|
track: ((payload?: Record<string, any>) => void) & ((event_name: string, event_data: Record<string, any>) => void);
|
|
30
|
-
identify: (session_data?: Record<string, any>) => void;
|
|
36
|
+
identify: (session_data?: Record<string, any> | string) => void;
|
|
31
37
|
}
|
|
32
38
|
declare global {
|
|
33
39
|
interface Window {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRegistryScript } from "../utils.js";
|
|
2
|
-
import { object, optional, string, boolean, array } from "#nuxt-scripts-validator";
|
|
2
|
+
import { object, optional, string, boolean, array, union, custom } from "#nuxt-scripts-validator";
|
|
3
3
|
export const UmamiAnalyticsOptions = object({
|
|
4
4
|
websiteId: string(),
|
|
5
5
|
// required
|
|
@@ -24,11 +24,29 @@ export const UmamiAnalyticsOptions = object({
|
|
|
24
24
|
* If you want the tracker to collect events under a specific tag.
|
|
25
25
|
* Events can be filtered in the dashboard by a specific tag.
|
|
26
26
|
*/
|
|
27
|
-
tag: optional(string())
|
|
27
|
+
tag: optional(string()),
|
|
28
|
+
/**
|
|
29
|
+
* Function that will be called before data is sent to Umami.
|
|
30
|
+
* The function takes two parameters: type and payload.
|
|
31
|
+
* Return the payload to continue sending, or return a falsy value to cancel.
|
|
32
|
+
*/
|
|
33
|
+
beforeSend: optional(union([
|
|
34
|
+
custom((input) => typeof input === "function"),
|
|
35
|
+
string()
|
|
36
|
+
]))
|
|
28
37
|
});
|
|
29
38
|
export function useScriptUmamiAnalytics(_options) {
|
|
30
39
|
return useRegistryScript("umamiAnalytics", (options) => {
|
|
31
40
|
const domains = Array.isArray(options?.domains) ? options.domains.join(",") : options?.domains;
|
|
41
|
+
let beforeSendFunctionName;
|
|
42
|
+
if (import.meta.client) {
|
|
43
|
+
if (options?.beforeSend && typeof options.beforeSend === "function") {
|
|
44
|
+
beforeSendFunctionName = `__umamiBeforeSend_${Math.random().toString(36).substring(2, 15)}`;
|
|
45
|
+
window[beforeSendFunctionName] = options.beforeSend;
|
|
46
|
+
} else if (typeof options.beforeSend === "string") {
|
|
47
|
+
beforeSendFunctionName = options.beforeSend;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
return {
|
|
33
51
|
scriptInput: {
|
|
34
52
|
"src": "https://cloud.umami.is/script.js",
|
|
@@ -36,7 +54,8 @@ export function useScriptUmamiAnalytics(_options) {
|
|
|
36
54
|
"data-host-url": options?.hostUrl || void 0,
|
|
37
55
|
"data-auto-track": typeof options?.autoTrack === "boolean" ? options.autoTrack : true,
|
|
38
56
|
"data-domains": domains || void 0,
|
|
39
|
-
"data-tag": options?.tag || void 0
|
|
57
|
+
"data-tag": options?.tag || void 0,
|
|
58
|
+
"data-before-send": beforeSendFunctionName || void 0
|
|
40
59
|
},
|
|
41
60
|
schema: import.meta.dev ? UmamiAnalyticsOptions : void 0,
|
|
42
61
|
scriptOptions: {
|
package/dist/types.d.mts
CHANGED
|
@@ -4,4 +4,6 @@ declare module '@nuxt/schema' {
|
|
|
4
4
|
interface NuxtHooks extends ModuleHooks {}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { default } from './module.mjs'
|
|
8
|
+
|
|
9
|
+
export { type ModuleHooks, type ModuleOptions } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/scripts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.8",
|
|
5
5
|
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
|
|
6
6
|
"author": {
|
|
7
7
|
"website": "https://harlanzw.com",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@nuxt/kit": "^3.17.
|
|
80
|
-
"@vueuse/core": "^13.
|
|
79
|
+
"@nuxt/kit": "^3.17.4",
|
|
80
|
+
"@vueuse/core": "^13.3.0",
|
|
81
81
|
"consola": "^3.4.2",
|
|
82
82
|
"defu": "^6.1.4",
|
|
83
83
|
"h3": "^1.15.3",
|
|
@@ -89,43 +89,43 @@
|
|
|
89
89
|
"sirv": "^3.0.1",
|
|
90
90
|
"std-env": "^3.9.0",
|
|
91
91
|
"ufo": "^1.6.1",
|
|
92
|
-
"unplugin": "^2.3.
|
|
92
|
+
"unplugin": "^2.3.5",
|
|
93
93
|
"unstorage": "^1.16.0",
|
|
94
94
|
"valibot": "^1.1.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@nuxt/devtools-kit": "^2.4.1",
|
|
98
98
|
"@nuxt/devtools-ui-kit": "^2.4.1",
|
|
99
|
-
"@nuxt/eslint-config": "^1.4.
|
|
99
|
+
"@nuxt/eslint-config": "^1.4.1",
|
|
100
100
|
"@nuxt/module-builder": "^1.0.1",
|
|
101
|
-
"@nuxt/test-utils": "3.19.
|
|
101
|
+
"@nuxt/test-utils": "3.19.1",
|
|
102
102
|
"@types/semver": "^7.7.0",
|
|
103
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
103
|
+
"@typescript-eslint/typescript-estree": "^8.33.0",
|
|
104
104
|
"acorn-loose": "^8.5.0",
|
|
105
105
|
"bumpp": "^10.1.1",
|
|
106
106
|
"changelogen": "^0.6.1",
|
|
107
|
-
"eslint": "9.
|
|
107
|
+
"eslint": "9.28.0",
|
|
108
108
|
"eslint-plugin-n": "^17.18.0",
|
|
109
|
-
"happy-dom": "^17.
|
|
109
|
+
"happy-dom": "^17.5.6",
|
|
110
110
|
"knitwork": "^1.2.0",
|
|
111
|
-
"nuxt": "^3.17.
|
|
111
|
+
"nuxt": "^3.17.4",
|
|
112
112
|
"playwright-core": "^1.52.0",
|
|
113
113
|
"shiki": "3.4.2",
|
|
114
114
|
"typescript": "5.8.2",
|
|
115
|
-
"vitest": "^3.1.
|
|
116
|
-
"vue": "^3.5.
|
|
115
|
+
"vitest": "^3.1.4",
|
|
116
|
+
"vue": "^3.5.16",
|
|
117
117
|
"vue-router": "^4.5.1",
|
|
118
118
|
"vue-tsc": "^2.2.10",
|
|
119
|
-
"@nuxt/scripts": "0.11.
|
|
119
|
+
"@nuxt/scripts": "0.11.8"
|
|
120
120
|
},
|
|
121
121
|
"resolutions": {
|
|
122
122
|
"@nuxt/schema": "catalog:",
|
|
123
123
|
"@nuxt/scripts": "workspace:*",
|
|
124
|
-
"@unhead/vue": "^2.0.
|
|
125
|
-
"nuxt": "^3.17.
|
|
124
|
+
"@unhead/vue": "^2.0.10",
|
|
125
|
+
"nuxt": "^3.17.4",
|
|
126
126
|
"typescript": "^5.8.3",
|
|
127
|
-
"unhead": "^2.0.
|
|
128
|
-
"vue": "^3.5.
|
|
127
|
+
"unhead": "^2.0.10",
|
|
128
|
+
"vue": "^3.5.16",
|
|
129
129
|
"vue-router": "^4.5.1"
|
|
130
130
|
},
|
|
131
131
|
"scripts": {
|