@nuxt/scripts 0.11.6 → 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/README.md +1 -1
- package/dist/client/200.html +9 -9
- package/dist/client/404.html +9 -9
- package/dist/client/_nuxt/BNOvKpxj.js +21 -0
- package/dist/client/_nuxt/{DhL_UpCd.js → D2xoTE-m.js} +1 -1
- package/dist/client/_nuxt/{C347yIJI.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/{Di440A2l.js → qUtuIAKL.js} +1 -1
- package/dist/client/index.html +9 -9
- package/dist/module.d.mts +2 -1
- package/dist/module.json +1 -1
- package/dist/registry.mjs +9 -0
- package/dist/runtime/components/ScriptCarbonAds.vue.d.ts +2 -19
- package/dist/runtime/components/ScriptCrisp.vue.d.ts +2 -23
- package/dist/runtime/components/ScriptGoogleAdsense.vue.d.ts +2 -24
- package/dist/runtime/components/ScriptGoogleMaps.vue +4 -4
- package/dist/runtime/components/ScriptGoogleMaps.vue.d.ts +3 -73
- package/dist/runtime/components/ScriptIntercom.vue.d.ts +2 -27
- package/dist/runtime/components/ScriptLemonSqueezy.vue.d.ts +2 -19
- package/dist/runtime/components/ScriptStripePricingTable.vue.d.ts +2 -23
- package/dist/runtime/components/ScriptVimeoPlayer.vue +12 -4
- package/dist/runtime/components/ScriptVimeoPlayer.vue.d.ts +2 -108
- package/dist/runtime/components/ScriptYouTubePlayer.vue.d.ts +2 -69
- package/dist/runtime/registry/rybbit-analytics.d.ts +46 -0
- package/dist/runtime/registry/rybbit-analytics.js +42 -0
- package/dist/runtime/registry/umami-analytics.d.ts +7 -1
- package/dist/runtime/registry/umami-analytics.js +22 -3
- package/dist/runtime/types.d.ts +2 -0
- 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 +31 -31
- package/dist/client/_nuxt/V79VpDdr.js +0 -21
- package/dist/client/_nuxt/builds/meta/3e09fd1b-e587-4ed5-a851-8fd373eda48a.json +0 -1
- package/dist/client/_nuxt/error-404.BtCtaqmq.css +0 -1
- package/dist/client/_nuxt/error-500.D9fi60uT.css +0 -1
- /package/dist/client/_nuxt/{entry.B4DN0kwM.css → entry.DExDtQtx.css} +0 -0
|
@@ -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
|
-
<link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.
|
|
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:"
|
|
3
|
+
<link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.DExDtQtx.css" crossorigin>
|
|
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
package/dist/registry.mjs
CHANGED
|
@@ -48,6 +48,15 @@ async function registry(resolve) {
|
|
|
48
48
|
from: await resolve("./runtime/registry/matomo-analytics")
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
+
{
|
|
52
|
+
label: "Rybbit Analytics",
|
|
53
|
+
category: "analytics",
|
|
54
|
+
logo: `https://www.rybbit.io/rybbit.png`,
|
|
55
|
+
import: {
|
|
56
|
+
name: "useScriptRybbitAnalytics",
|
|
57
|
+
from: await resolve("./runtime/registry/rybbit-analytics")
|
|
58
|
+
}
|
|
59
|
+
},
|
|
51
60
|
{
|
|
52
61
|
label: "Segment",
|
|
53
62
|
scriptBundling: (options) => {
|
|
@@ -8,31 +8,14 @@ type __VLS_Props = {
|
|
|
8
8
|
*/
|
|
9
9
|
trigger?: ElementScriptTrigger;
|
|
10
10
|
};
|
|
11
|
-
declare const carbonadsEl: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
12
|
-
declare const status: import("vue").Ref<string, string>;
|
|
13
|
-
declare const rootAttrs: import("vue").ComputedRef<{
|
|
14
|
-
[x: string]: string;
|
|
15
|
-
}>;
|
|
16
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
17
11
|
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
18
|
-
type __VLS_Slots =
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
19
13
|
awaitingLoad?: (props: typeof __VLS_1) => any;
|
|
20
14
|
} & {
|
|
21
15
|
loading?: (props: typeof __VLS_3) => any;
|
|
22
16
|
} & {
|
|
23
17
|
error?: (props: typeof __VLS_5) => any;
|
|
24
|
-
}
|
|
25
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
26
|
-
carbonadsEl: typeof carbonadsEl;
|
|
27
|
-
status: typeof status;
|
|
28
|
-
rootAttrs: typeof rootAttrs;
|
|
29
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
-
error: (error: string | Event) => any;
|
|
31
|
-
ready: (args_0: HTMLScriptElement) => any;
|
|
32
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
-
onError?: ((error: string | Event) => any) | undefined;
|
|
34
|
-
onReady?: ((args_0: HTMLScriptElement) => any) | undefined;
|
|
35
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
};
|
|
36
19
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
20
|
error: (error: string | Event) => any;
|
|
38
21
|
ready: (args_0: HTMLScriptElement) => any;
|
|
@@ -12,17 +12,10 @@ type __VLS_Props = {
|
|
|
12
12
|
cookieDomain?: string;
|
|
13
13
|
cookieExpiry?: number;
|
|
14
14
|
};
|
|
15
|
-
declare const rootEl: import("vue").Ref<null, null>;
|
|
16
|
-
declare const isReady: import("vue").Ref<boolean, boolean>;
|
|
17
|
-
declare const status: import("vue").Ref<import("@unhead/vue").UseScriptStatus, import("@unhead/vue").UseScriptStatus>;
|
|
18
|
-
declare const rootAttrs: import("vue").ComputedRef<{
|
|
19
|
-
[x: string]: string;
|
|
20
|
-
}>;
|
|
21
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
22
15
|
declare var __VLS_1: {
|
|
23
16
|
ready: any;
|
|
24
17
|
}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
25
|
-
type __VLS_Slots =
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
26
19
|
default?: (props: typeof __VLS_1) => any;
|
|
27
20
|
} & {
|
|
28
21
|
awaitingLoad?: (props: typeof __VLS_3) => any;
|
|
@@ -30,21 +23,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
30
23
|
loading?: (props: typeof __VLS_5) => any;
|
|
31
24
|
} & {
|
|
32
25
|
error?: (props: typeof __VLS_7) => any;
|
|
33
|
-
}
|
|
34
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
35
|
-
rootEl: typeof rootEl;
|
|
36
|
-
isReady: typeof isReady;
|
|
37
|
-
status: typeof status;
|
|
38
|
-
rootAttrs: typeof rootAttrs;
|
|
39
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
-
error: () => any;
|
|
41
|
-
ready: (e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/crisp.js").CrispApi>) => any;
|
|
42
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
43
|
-
onError?: (() => any) | undefined;
|
|
44
|
-
onReady?: ((e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/crisp.js").CrispApi>) => any) | undefined;
|
|
45
|
-
}>, {
|
|
46
|
-
trigger: ElementScriptTrigger;
|
|
47
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
};
|
|
48
27
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
49
28
|
crisp: import("#nuxt-scripts/types").UseScriptContext<import("../registry/crisp.js").CrispApi>;
|
|
50
29
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -10,36 +10,14 @@ type __VLS_Props = {
|
|
|
10
10
|
*/
|
|
11
11
|
trigger?: ElementScriptTrigger;
|
|
12
12
|
};
|
|
13
|
-
declare const rootEl: import("vue").Ref<null, null>;
|
|
14
|
-
declare const addClient: import("vue").ComputedRef<string | undefined>;
|
|
15
|
-
declare const status: import("vue").Ref<import("@unhead/vue").UseScriptStatus, import("@unhead/vue").UseScriptStatus>;
|
|
16
|
-
declare const rootAttrs: import("vue").ComputedRef<{
|
|
17
|
-
[x: string]: string;
|
|
18
|
-
}>;
|
|
19
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
20
13
|
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
21
|
-
type __VLS_Slots =
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
22
15
|
awaitingLoad?: (props: typeof __VLS_1) => any;
|
|
23
16
|
} & {
|
|
24
17
|
loading?: (props: typeof __VLS_3) => any;
|
|
25
18
|
} & {
|
|
26
19
|
error?: (props: typeof __VLS_5) => any;
|
|
27
|
-
}
|
|
28
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
29
|
-
rootEl: typeof rootEl;
|
|
30
|
-
addClient: typeof addClient;
|
|
31
|
-
status: typeof status;
|
|
32
|
-
rootAttrs: typeof rootAttrs;
|
|
33
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
-
error: () => any;
|
|
35
|
-
ready: (e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/google-adsense.js").GoogleAdsenseApi>) => any;
|
|
36
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
|
-
onError?: (() => any) | undefined;
|
|
38
|
-
onReady?: ((e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/google-adsense.js").GoogleAdsenseApi>) => any) | undefined;
|
|
39
|
-
}>, {
|
|
40
|
-
dataAdFormat: "auto" | "rectangle" | "vertical" | "horizontal" | "fluid" | "autorelaxed";
|
|
41
|
-
dataFullWidthResponsive: boolean;
|
|
42
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
};
|
|
43
21
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
22
|
error: () => any;
|
|
45
23
|
ready: (e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/google-adsense.js").GoogleAdsenseApi>) => any;
|
|
@@ -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
|
-
center
|
|
285
|
+
props.centerMarker && center
|
|
286
286
|
].filter(Boolean).map((m) => {
|
|
287
287
|
if (typeof m === "object" && m.location) {
|
|
288
288
|
m = m.location;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes, ImgHTMLAttributes, Ref, ReservedProps } from 'vue';
|
|
2
2
|
import type { ElementScriptTrigger } from '../types.js';
|
|
3
|
-
import ScriptAriaLoadingIndicator from './ScriptAriaLoadingIndicator.vue.js';
|
|
4
3
|
interface PlaceholderOptions {
|
|
5
4
|
width?: string | number;
|
|
6
5
|
height?: string | number;
|
|
@@ -85,10 +84,6 @@ type __VLS_Props = {
|
|
|
85
84
|
*/
|
|
86
85
|
markers?: (`${string},${string}` | google.maps.marker.AdvancedMarkerElementOptions)[];
|
|
87
86
|
};
|
|
88
|
-
declare const rootEl: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
89
|
-
declare const mapEl: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
90
|
-
declare const status: Ref<import("@unhead/vue").UseScriptStatus, import("@unhead/vue").UseScriptStatus>;
|
|
91
|
-
declare const ready: Ref<boolean, boolean>;
|
|
92
87
|
declare function createAdvancedMapMarker(_options?: google.maps.marker.AdvancedMarkerElementOptions | `${string},${string}`): Promise<google.maps.marker.AdvancedMarkerElement | undefined>;
|
|
93
88
|
declare function resolveQueryToLatLang(query: string): Promise<google.maps.LatLng | undefined>;
|
|
94
89
|
declare function importLibrary(key: 'marker'): Promise<google.maps.MarkerLibrary>;
|
|
@@ -97,44 +92,10 @@ declare function importLibrary(key: 'geometry'): Promise<google.maps.GeometryLib
|
|
|
97
92
|
declare function importLibrary(key: 'drawing'): Promise<google.maps.DrawingLibrary>;
|
|
98
93
|
declare function importLibrary(key: 'visualization'): Promise<google.maps.VisualizationLibrary>;
|
|
99
94
|
declare function importLibrary(key: string): Promise<any>;
|
|
100
|
-
declare const placeholder: import("vue").ComputedRef<string>;
|
|
101
|
-
declare const placeholderAttrs: import("vue").ComputedRef<Omit<ImgHTMLAttributes & ReservedProps & Record<string, unknown>, "style" | "src" | "loading" | "alt"> & Omit<{
|
|
102
|
-
src: string;
|
|
103
|
-
alt: string;
|
|
104
|
-
loading: "eager" | "lazy";
|
|
105
|
-
style: {
|
|
106
|
-
cursor: "pointer";
|
|
107
|
-
width: string;
|
|
108
|
-
objectFit: "cover";
|
|
109
|
-
height: string;
|
|
110
|
-
};
|
|
111
|
-
}, "style" | "src" | "loading" | "alt"> & {
|
|
112
|
-
style: string | false | import("vue").StyleValue[] | {
|
|
113
|
-
cursor: "pointer";
|
|
114
|
-
width: string;
|
|
115
|
-
objectFit: "cover";
|
|
116
|
-
height: string;
|
|
117
|
-
} | (Omit<import("vue").CSSProperties, "width" | "height" | "cursor" | "objectFit"> & Omit<{
|
|
118
|
-
cursor: "pointer";
|
|
119
|
-
width: string;
|
|
120
|
-
objectFit: "cover";
|
|
121
|
-
height: string;
|
|
122
|
-
}, "width" | "height" | "cursor" | "objectFit"> & {
|
|
123
|
-
width: string | number | (string & {});
|
|
124
|
-
height: string | number | (string & {});
|
|
125
|
-
cursor: "alias" | "default" | "auto" | "help" | "copy" | "progress" | "none" | "text" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-grab" | "-webkit-grab" | "all-scroll" | "cell" | "col-resize" | "context-menu" | "crosshair" | "e-resize" | "ew-resize" | "grab" | "grabbing" | "move" | "n-resize" | "ne-resize" | "nesw-resize" | "no-drop" | "not-allowed" | "ns-resize" | "nw-resize" | "nwse-resize" | "pointer" | "row-resize" | "s-resize" | "se-resize" | "sw-resize" | "vertical-text" | "w-resize" | "wait" | "zoom-in" | "zoom-out";
|
|
126
|
-
objectFit: "fill" | "none" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "contain" | "cover" | "scale-down";
|
|
127
|
-
});
|
|
128
|
-
src: string;
|
|
129
|
-
loading: "eager" | "lazy";
|
|
130
|
-
alt: string;
|
|
131
|
-
}>;
|
|
132
|
-
declare const rootAttrs: import("vue").ComputedRef<HTMLAttributes>;
|
|
133
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
134
95
|
declare var __VLS_1: {
|
|
135
96
|
placeholder: any;
|
|
136
97
|
}, __VLS_3: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
|
|
137
|
-
type __VLS_Slots =
|
|
98
|
+
type __VLS_Slots = {} & {
|
|
138
99
|
placeholder?: (props: typeof __VLS_1) => any;
|
|
139
100
|
} & {
|
|
140
101
|
loading?: (props: typeof __VLS_3) => any;
|
|
@@ -144,39 +105,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
144
105
|
error?: (props: typeof __VLS_10) => any;
|
|
145
106
|
} & {
|
|
146
107
|
default?: (props: typeof __VLS_12) => any;
|
|
147
|
-
}
|
|
148
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
149
|
-
ScriptAriaLoadingIndicator: typeof ScriptAriaLoadingIndicator;
|
|
150
|
-
rootEl: typeof rootEl;
|
|
151
|
-
mapEl: typeof mapEl;
|
|
152
|
-
status: typeof status;
|
|
153
|
-
ready: typeof ready;
|
|
154
|
-
placeholder: typeof placeholder;
|
|
155
|
-
placeholderAttrs: typeof placeholderAttrs;
|
|
156
|
-
rootAttrs: typeof rootAttrs;
|
|
157
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
158
|
-
error: () => any;
|
|
159
|
-
ready: (e: {
|
|
160
|
-
readonly googleMaps: Ref<typeof google.maps | undefined, typeof google.maps | undefined>;
|
|
161
|
-
readonly map: Ref<google.maps.Map | undefined, google.maps.Map | undefined>;
|
|
162
|
-
readonly createAdvancedMapMarker: typeof createAdvancedMapMarker;
|
|
163
|
-
readonly resolveQueryToLatLang: typeof resolveQueryToLatLang;
|
|
164
|
-
readonly importLibrary: typeof importLibrary;
|
|
165
|
-
}) => any;
|
|
166
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
167
|
-
onError?: (() => any) | undefined;
|
|
168
|
-
onReady?: ((e: {
|
|
169
|
-
readonly googleMaps: Ref<typeof google.maps | undefined, typeof google.maps | undefined>;
|
|
170
|
-
readonly map: Ref<google.maps.Map | undefined, google.maps.Map | undefined>;
|
|
171
|
-
readonly createAdvancedMapMarker: typeof createAdvancedMapMarker;
|
|
172
|
-
readonly resolveQueryToLatLang: typeof resolveQueryToLatLang;
|
|
173
|
-
readonly importLibrary: typeof importLibrary;
|
|
174
|
-
}) => any) | undefined;
|
|
175
|
-
}>, {
|
|
176
|
-
trigger: ElementScriptTrigger;
|
|
177
|
-
width: number | string;
|
|
178
|
-
height: number | string;
|
|
179
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
108
|
+
};
|
|
180
109
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
181
110
|
googleMaps: Ref<typeof google.maps | undefined, typeof google.maps | undefined>;
|
|
182
111
|
map: Ref<google.maps.Map | undefined, google.maps.Map | undefined>;
|
|
@@ -203,6 +132,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
203
132
|
}) => any) | undefined;
|
|
204
133
|
}>, {
|
|
205
134
|
trigger: ElementScriptTrigger;
|
|
135
|
+
centerMarker: boolean;
|
|
206
136
|
width: number | string;
|
|
207
137
|
height: number | string;
|
|
208
138
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,21 +13,10 @@ type __VLS_Props = {
|
|
|
13
13
|
*/
|
|
14
14
|
trigger?: ElementScriptTrigger;
|
|
15
15
|
};
|
|
16
|
-
declare const rootEl: import("vue").Ref<null, null>;
|
|
17
|
-
declare const isReady: import("vue").Ref<boolean, boolean>;
|
|
18
|
-
declare const status: import("vue").Ref<import("@unhead/vue").UseScriptStatus, import("@unhead/vue").UseScriptStatus>;
|
|
19
|
-
declare const rootAttrs: import("vue").ComputedRef<{
|
|
20
|
-
style: {
|
|
21
|
-
[x: string]: string;
|
|
22
|
-
display: string;
|
|
23
|
-
bottom: string;
|
|
24
|
-
};
|
|
25
|
-
}>;
|
|
26
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
27
16
|
declare var __VLS_1: {
|
|
28
17
|
ready: any;
|
|
29
18
|
}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
30
|
-
type __VLS_Slots =
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
31
20
|
default?: (props: typeof __VLS_1) => any;
|
|
32
21
|
} & {
|
|
33
22
|
awaitingLoad?: (props: typeof __VLS_3) => any;
|
|
@@ -35,21 +24,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
35
24
|
loading?: (props: typeof __VLS_5) => any;
|
|
36
25
|
} & {
|
|
37
26
|
error?: (props: typeof __VLS_7) => any;
|
|
38
|
-
}
|
|
39
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
40
|
-
rootEl: typeof rootEl;
|
|
41
|
-
isReady: typeof isReady;
|
|
42
|
-
status: typeof status;
|
|
43
|
-
rootAttrs: typeof rootAttrs;
|
|
44
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
-
error: () => any;
|
|
46
|
-
ready: (e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/intercom.js").IntercomApi>) => any;
|
|
47
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
48
|
-
onError?: (() => any) | undefined;
|
|
49
|
-
onReady?: ((e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/intercom.js").IntercomApi>) => any) | undefined;
|
|
50
|
-
}>, {
|
|
51
|
-
trigger: ElementScriptTrigger;
|
|
52
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
};
|
|
53
28
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
54
29
|
intercom: import("#nuxt-scripts/types").UseScriptContext<import("../registry/intercom.js").IntercomApi>;
|
|
55
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -2,27 +2,10 @@ import type { ElementScriptTrigger } from '../types.js';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
trigger?: ElementScriptTrigger;
|
|
4
4
|
};
|
|
5
|
-
declare const rootEl: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
6
|
-
declare const rootAttrs: import("vue").ComputedRef<{
|
|
7
|
-
[x: string]: string;
|
|
8
|
-
}>;
|
|
9
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
10
5
|
declare var __VLS_1: {};
|
|
11
|
-
type __VLS_Slots =
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
12
7
|
default?: (props: typeof __VLS_1) => any;
|
|
13
|
-
}
|
|
14
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
-
rootEl: typeof rootEl;
|
|
16
|
-
rootAttrs: typeof rootAttrs;
|
|
17
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
ready: (args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any;
|
|
19
|
-
lemonSqueezyEvent: (args_0: never) => any;
|
|
20
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
onReady?: ((args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any) | undefined;
|
|
22
|
-
onLemonSqueezyEvent?: ((args_0: never) => any) | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
trigger: ElementScriptTrigger;
|
|
25
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
};
|
|
26
9
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
10
|
ready: (args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any;
|
|
28
11
|
lemonSqueezyEvent: (args_0: never) => any;
|
|
@@ -7,15 +7,8 @@ type __VLS_Props = {
|
|
|
7
7
|
customerEmail?: string;
|
|
8
8
|
customerSessionClientSecret?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const rootEl: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
11
|
-
declare const containerEl: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
12
|
-
declare const status: import("vue").Ref<import("@unhead/vue").UseScriptStatus, import("@unhead/vue").UseScriptStatus>;
|
|
13
|
-
declare const rootAttrs: import("vue").ComputedRef<{
|
|
14
|
-
[x: string]: string;
|
|
15
|
-
}>;
|
|
16
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
17
10
|
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
18
|
-
type __VLS_Slots =
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
19
12
|
loading?: (props: typeof __VLS_1) => any;
|
|
20
13
|
} & {
|
|
21
14
|
awaitingLoad?: (props: typeof __VLS_3) => any;
|
|
@@ -23,21 +16,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
23
16
|
error?: (props: typeof __VLS_5) => any;
|
|
24
17
|
} & {
|
|
25
18
|
default?: (props: typeof __VLS_7) => any;
|
|
26
|
-
}
|
|
27
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
28
|
-
rootEl: typeof rootEl;
|
|
29
|
-
containerEl: typeof containerEl;
|
|
30
|
-
status: typeof status;
|
|
31
|
-
rootAttrs: typeof rootAttrs;
|
|
32
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
-
error: () => any;
|
|
34
|
-
ready: (args_0: import("../types.js").UseScriptContext<Record<string | symbol, any>>) => any;
|
|
35
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
-
onError?: (() => any) | undefined;
|
|
37
|
-
onReady?: ((args_0: import("../types.js").UseScriptContext<Record<string | symbol, any>>) => any) | undefined;
|
|
38
|
-
}>, {
|
|
39
|
-
trigger: ElementScriptTrigger;
|
|
40
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
};
|
|
41
20
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
21
|
error: () => any;
|
|
43
22
|
ready: (args_0: import("../types.js").UseScriptContext<Record<string | symbol, any>>) => 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(),
|