@nuxt/scripts 0.11.7 → 0.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +1 -11
- package/dist/client/404.html +1 -11
- package/dist/client/_nuxt/BlmEfDGv.js +1 -0
- package/dist/client/_nuxt/Bqz6dnGY.js +1 -0
- package/dist/client/_nuxt/DK4kQ6nK.js +1 -0
- package/dist/client/_nuxt/DoRSvGnG.js +21 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/8f7376df-adce-4575-a756-33070a325389.json +1 -0
- package/dist/client/_nuxt/entry.bAQEPFjX.css +1 -0
- package/dist/client/_nuxt/error-404.DEqKCcKa.css +1 -0
- package/dist/client/_nuxt/error-500.B881-kyH.css +1 -0
- package/dist/client/index.html +1 -11
- package/dist/module.d.mts +2 -1
- package/dist/module.json +2 -3
- package/dist/module.mjs +6 -5
- package/dist/runtime/components/ScriptCrisp.vue.d.ts +1 -3
- package/dist/runtime/components/ScriptGoogleAdsense.vue.d.ts +1 -4
- package/dist/runtime/components/ScriptGoogleMaps.vue +4 -4
- package/dist/runtime/components/ScriptGoogleMaps.vue.d.ts +5 -9
- package/dist/runtime/components/ScriptIntercom.vue.d.ts +1 -3
- package/dist/runtime/components/ScriptLemonSqueezy.vue.d.ts +1 -3
- package/dist/runtime/components/ScriptLoadingIndicator.vue.d.ts +1 -4
- package/dist/runtime/components/ScriptStripePricingTable.vue.d.ts +1 -3
- package/dist/runtime/components/ScriptVimeoPlayer.vue +12 -4
- package/dist/runtime/components/ScriptVimeoPlayer.vue.d.ts +5 -7
- package/dist/runtime/components/ScriptYouTubePlayer.vue.d.ts +5 -13
- package/dist/runtime/registry/meta-pixel.d.ts +4 -2
- package/dist/runtime/registry/rybbit-analytics.d.ts +34 -2
- package/dist/runtime/registry/rybbit-analytics.js +28 -6
- 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 +31 -30
- package/dist/client/_nuxt/D3ZVEC_8.js +0 -1
- package/dist/client/_nuxt/DmiqYg4r.js +0 -21
- package/dist/client/_nuxt/_5UZfQdF.js +0 -1
- package/dist/client/_nuxt/builds/meta/93bac187-07c5-4a76-83a2-cefcf05c0b88.json +0 -1
- package/dist/client/_nuxt/entry.DExDtQtx.css +0 -1
- package/dist/client/_nuxt/error-404.CpID9NZX.css +0 -1
- package/dist/client/_nuxt/error-500.BzWA0Bp3.css +0 -1
- package/dist/client/_nuxt/z8Iwlb2L.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--nui-c-context:125,125,125}html{background-color:#fff}html.dark{background-color:#151515;color:#fff;color-scheme:dark}::-moz-selection{background:#8884}::selection{background:#8884}.shiki .line{display:inline-block;position:relative;width:100%}.shiki.diff .line>span{filter:saturate(.75);opacity:.75}.shiki.diff .line-added,.shiki.diff .line-removed{scroll-margin:5em}.shiki.diff .line-added>span,.shiki.diff .line-removed>span{opacity:1!important;position:inherit;scroll-margin:20px;z-index:100}.shiki.diff .line-added>span{color:#218c3b!important}.shiki.diff .line-removed>span{color:#d15547!important}.shiki .line-added:after{background-color:#43885420}.shiki .line-added:after,.shiki .line-removed:after{content:"";display:block;inset:0;position:absolute}.shiki .line-removed:after{background-color:#8f4c3926}::view-transition-new(root),::view-transition-old(root){animation:none;mix-blend-mode:normal}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2147483646}.dark::view-transition-old(root){z-index:2147483646}.dark::view-transition-new(root){z-index:1}*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}:host,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;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}@font-face{font-display:swap;font-family:DM Mono;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmmono/v15/aFTU7PB1QTsUX8KYthSQBK6PYK3EXw.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Mono;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmmono/v15/aFTU7PB1QTsUX8KYthqQBK6PYK0.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v16/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRR232RmYJp8I5zzw.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v16/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRSW32RmYJp8I5.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}*,: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: }::backdrop{--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: }.carbon-chevron-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 22L6 12l1.4-1.4l8.6 8.6l8.6-8.6L26 12z'/%3E%3C/svg%3E")}.carbon-chevron-down,.carbon\:book{background-color:currentColor;color:inherit;display:inline-block;height:1.2em;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle;width:1.2em}.carbon\:book{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 10h7v2h-7zm0 5h7v2h-7zm0 5h7v2h-7zM6 10h7v2H6zm0 5h7v2H6zm0 5h7v2H6z'/%3E%3Cpath fill='currentColor' d='M28 5H4a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2M4 7h11v18H4Zm13 18V7h11v18Z'/%3E%3C/svg%3E")}.carbon\:debug{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m29.83 20l.34-2l-5.17-.85v-4.38l5.06-1.36l-.51-1.93l-4.83 1.29A9 9 0 0 0 20 5V2h-2v2.23a8.8 8.8 0 0 0-4 0V2h-2v3a9 9 0 0 0-4.71 5.82L2.46 9.48L2 11.41l5 1.36v4.38L1.84 18l.32 2L7 19.18a8.9 8.9 0 0 0 .82 3.57l-4.53 4.54l1.42 1.42l4.19-4.2a9 9 0 0 0 14.2 0l4.19 4.2l1.42-1.42l-4.54-4.54a8.9 8.9 0 0 0 .83-3.57ZM15 25.92A7 7 0 0 1 9 19v-6h6ZM9.29 11a7 7 0 0 1 13.42 0ZM23 19a7 7 0 0 1-6 6.92V13h6Z'/%3E%3C/svg%3E")}.carbon\:debug,.carbon\:script{background-color:currentColor;color:inherit;display:inline-block;height:1.2em;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle;width:1.2em}.carbon\:script{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m18.83 26l2.58-2.58L20 22l-4 4l4 4l1.42-1.41zm8.34 0l-2.58 2.58L26 30l4-4l-4-4l-1.42 1.41z'/%3E%3Cpath fill='currentColor' d='M14 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v6h2v-8a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h6Zm4-23.6l5.6 5.6H18Z'/%3E%3C/svg%3E")}.i-carbon\:arrow-up-right,[i-carbon\:arrow-up-right=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z'/%3E%3C/svg%3E");background-color:currentColor;color:inherit;display:inline-block;height:1.2em;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle;width:1.2em}.logos\:github-icon{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 250' display='inline-block' vertical-align='middle' width='1.24em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23161614' d='M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403'/%3E%3C/svg%3E") no-repeat;background-color:transparent;background-size:100% 100%;display:inline-block;height:1.2em;vertical-align:middle;width:1.24em}.n-badge{background-color:rgba(var(--nui-c-context),.1);border-radius:.25rem;font-size:.75rem;line-height:1rem;margin-left:.125rem;margin-right:.125rem;padding:.125rem .375rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;--un-text-opacity:1;color:rgba(var(--nui-c-context),var(--un-text-opacity))}.n-button-icon{font-size:1.1em;margin-left:-.2em;margin-right:.2em}.n-icon-button{align-items:center;aspect-ratio:1/1;border-radius:.25rem;display:flex;height:1.6em;justify-content:center;opacity:.5;width:1.6em}.n-button-base{align-items:center;border-color:#9ca3af33;border-radius:.25rem;border-width:1px;display:inline-flex;gap:.25rem;opacity:.8;padding:.25em 1em;touch-action:manipulation;--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color,rgba(0,0,0,.05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);outline:2px solid transparent!important;outline-offset:2px!important}.n-icon{flex:none}.n-border-base{border-color:#9ca3af33}.hover\:n-button-hover:hover{--un-border-opacity:1!important;border-color:rgba(var(--nui-c-context),var(--un-border-opacity))!important;--un-text-opacity:1;color:rgba(var(--nui-c-context),var(--un-text-opacity));opacity:1}.n-bg-active{background-color:#9ca3af0d}.dark .n-bg-base{--un-bg-opacity:1;background-color:rgb(21 21 21/var(--un-bg-opacity))}.n-bg-base{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.hover\:n-bg-active:hover,.n-icon-button:hover{background-color:#9ca3af0d}.n-icon-button:hover{opacity:1}.active\:n-button-active:active{background-color:rgba(var(--nui-c-context),.05);--un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-ring-color:rgba(var(--nui-c-context),.1)}.hover\:n-link-hover:hover{--un-text-opacity:1;color:rgba(var(--nui-c-context),var(--un-text-opacity));-webkit-text-decoration-color:rgba(var(--nui-c-context),var(--un-line-opacity))!important;--un-line-opacity:1!important;opacity:1!important;text-decoration-color:rgba(var(--nui-c-context),var(--un-line-opacity))!important;text-decoration-style:dotted}.n-link-base{text-decoration-color:#0003;text-decoration-line:underline;text-underline-offset:2px}.dark .n-link-base{text-decoration-color:#fff6}.focus-visible\:n-focus-base:focus-visible{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-ring-color:rgba(var(--nui-c-context),.5)}.n-transition{transition-duration:.15s;transition-duration:.2s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.top-6{top:1.5rem}.z-10{z-index:10}.z-2{z-index:2}.grid{display:grid}.mx-auto{margin-left:auto;margin-right:auto}.mb-2,.mb2,[mb2=""]{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml--1px{margin-left:-1px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-\[2px\]{margin-right:2px}.mt1{margin-top:.25rem}.inline-block{display:inline-block}.hidden{display:none}.h-4{height:1rem}.h-6{height:1.5rem}.h-auto{height:auto}.h-full{height:100%}.h1{height:.25rem}.h2{height:.5rem}.max-h-full{max-height:100%}.max-w-520px{max-width:520px}.max-w-6{max-width:1.5rem}.min-h-screen{min-height:100vh}.w-4{width:1rem}.w-full{width:100%}.flex,[flex=""],[flex~="~"]{display:flex}.flex-inline{display:inline-flex}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.translate-y--1,[translate-y--1=""]{--un-translate-y:-.25rem}.transform,.translate-y--1,[translate-y--1=""]{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.place-content-center{place-content:center}.place-self-start,[place-self-start=""]{place-self:start}.items-start{align-items:flex-start}.items-end,[items-end=""]{align-items:flex-end}.flex-items-center,.items-center,[items-center=""]{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-gap2,.gap-2,[gap-2=""]{gap:.5rem}.gap-1{gap:.25rem}.gap-1\.5,[gap-1\.5=""]{gap:.375rem}.gap-3,[flex~=gap-3]{gap:.75rem}.gap-7{gap:1.75rem}.space-x-3>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--un-space-x-reverse)));margin-right:calc(.75rem*var(--un-space-x-reverse))}.space-x-5>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(1.25rem*(1 - var(--un-space-x-reverse)));margin-right:calc(1.25rem*var(--un-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(.5rem*var(--un-space-y-reverse));margin-top:calc(.5rem*(1 - var(--un-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(.75rem*var(--un-space-y-reverse));margin-top:calc(.75rem*(1 - var(--un-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.border{border-width:1px}.border-b-0{border-bottom-width:0}.border-l{border-left-width:1px}.border-black\/5{border-color:#0000000d}.dark .dark\:border-white\/10{border-color:#ffffff1a}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border-none{border-style:none}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246/var(--un-bg-opacity))}.bg-gray-50\/50{background-color:#f9fafb80}.bg-green-50{--un-bg-opacity:1;background-color:rgb(240 253 244/var(--un-bg-opacity))}.bg-light-200{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.bg-red-100{--un-bg-opacity:1;background-color:rgb(254 226 226/var(--un-bg-opacity))}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.bg-yellow-100{--un-bg-opacity:1;background-color:rgb(254 249 195/var(--un-bg-opacity))}.dark .dark\:bg-\[\#020420\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark .dark\:bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark .dark\:bg-dark-700{--un-bg-opacity:1;background-color:rgb(27 27 27/var(--un-bg-opacity))}.dark .dark\:bg-white\/5{background-color:#ffffff0d}.hover\:bg-gray-800\/50:hover{background-color:#1f293780}.p-4{padding:1rem}.p-8{padding:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4,.px4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-\[2px\]{padding-bottom:2px;padding-top:2px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pb6{padding-bottom:1.5rem}.pt-12{padding-top:3rem}.pt-4{padding-top:1rem}.pt2{padding-top:.5rem}.text-center{text-align:center}.text-\[80px\]{font-size:80px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base,[text-base=""]{font-size:1rem;line-height:1.5rem}.text-lg,[text-lg=""]{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""]{font-size:.875rem;line-height:1.25rem}.text-xl,[text-xl=""]{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.dark .dark\:text-white,.dark [dark\:text-white=""]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.text-\[\#020420\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.text-black,[text-black=""]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.text-blue-300{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128/var(--un-text-opacity))}.text-gray-700{--un-text-opacity:1;color:rgb(55 65 81/var(--un-text-opacity))}.text-green-700{--un-text-opacity:1;color:rgb(21 128 61/var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity))}.text-yellow-700{--un-text-opacity:1;color:rgb(161 98 7/var(--un-text-opacity))}.hover\:text-\[\#00DC82\]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold,[font-semibold=""]{font-weight:600}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.font-mono{font-family:DM Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:DM Sans,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}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.hover\:underline:hover,.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.op-0\.1{opacity:.001}.op100{opacity:1}.op35{opacity:.35}.op50,.opacity-50,[op50=""]{opacity:.5}.op60{opacity:.6}.op75,[op75=""]{opacity:.75}.opacity-40{opacity:.4}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.hover\:opacity-70:hover{opacity:.7}.backdrop-blur-lg{--un-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition,[transition=""]{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500,[duration-500=""]{transition-duration:.5s}.n-disabled\:n-disabled[disabled],[disabled] .n-disabled\:n-disabled{filter:saturate(0);opacity:.6;pointer-events:none}@media (min-width:640px){.sm\:right-6{right:1.5rem}.sm\:text-\[110px\]{font-size:110px}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-8xl{font-size:6rem;line-height:1}}@media (min-width:1024px){.lg\:flex{display:flex}}details[data-v-0d7b3b46],summary[data-v-0d7b3b46]{border-style:none}summary[data-v-0d7b3b46]{list-style:none}details[open] summary[data-v-0d7b3b46]{border-style:none}details summary[data-v-0d7b3b46]::-webkit-details-marker{display:none}details[open] .chevron[data-v-0d7b3b46]{opacity:.75;transform:rotate(180deg)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-87cc9fde]{display:grid}.mb-2[data-v-87cc9fde]{margin-bottom:.5rem}.mb-4[data-v-87cc9fde]{margin-bottom:1rem}.max-w-520px[data-v-87cc9fde]{max-width:520px}.min-h-screen[data-v-87cc9fde]{min-height:100vh}.w-full[data-v-87cc9fde]{width:100%}.flex[data-v-87cc9fde]{display:flex}.place-content-center[data-v-87cc9fde]{place-content:center}.items-center[data-v-87cc9fde]{align-items:center}.justify-center[data-v-87cc9fde]{justify-content:center}.overflow-hidden[data-v-87cc9fde]{overflow:hidden}.bg-white[data-v-87cc9fde]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-87cc9fde]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-87cc9fde]{text-align:center}.text-\[80px\][data-v-87cc9fde]{font-size:80px}.text-2xl[data-v-87cc9fde]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-87cc9fde]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-87cc9fde]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-87cc9fde]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-87cc9fde]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-87cc9fde]{font-weight:500}.font-semibold[data-v-87cc9fde]{font-weight:600}.leading-none[data-v-87cc9fde]{line-height:1}.tracking-wide[data-v-87cc9fde]{letter-spacing:.025em}.font-sans[data-v-87cc9fde]{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}.tabular-nums[data-v-87cc9fde]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-87cc9fde]{text-decoration-line:underline}.underline-offset-3[data-v-87cc9fde]{text-underline-offset:3px}.antialiased[data-v-87cc9fde]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-87cc9fde]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-87cc9fde]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:text-\[110px\][data-v-87cc9fde]{font-size:110px}.sm\:text-3xl[data-v-87cc9fde]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-32c95b7e]{display:grid}.mb-2[data-v-32c95b7e]{margin-bottom:.5rem}.mb-4[data-v-32c95b7e]{margin-bottom:1rem}.max-w-520px[data-v-32c95b7e]{max-width:520px}.min-h-screen[data-v-32c95b7e]{min-height:100vh}.place-content-center[data-v-32c95b7e]{place-content:center}.overflow-hidden[data-v-32c95b7e]{overflow:hidden}.bg-white[data-v-32c95b7e]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-32c95b7e]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-32c95b7e]{text-align:center}.text-\[80px\][data-v-32c95b7e]{font-size:80px}.text-2xl[data-v-32c95b7e]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-32c95b7e]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-32c95b7e]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-32c95b7e]{font-weight:600}.leading-none[data-v-32c95b7e]{line-height:1}.tracking-wide[data-v-32c95b7e]{letter-spacing:.025em}.font-sans[data-v-32c95b7e]{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}.tabular-nums[data-v-32c95b7e]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-32c95b7e]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-32c95b7e]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-32c95b7e]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:text-\[110px\][data-v-32c95b7e]{font-size:110px}.sm\:text-3xl[data-v-32c95b7e]{font-size:1.875rem;line-height:2.25rem}}
|
package/dist/client/index.html
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.DExDtQtx.css" crossorigin>
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DmiqYg4r.js">
|
|
5
|
-
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.CpID9NZX.css">
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D3ZVEC_8.js">
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/z8Iwlb2L.js">
|
|
8
|
-
<link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.BzWA0Bp3.css">
|
|
9
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/_5UZfQdF.js">
|
|
10
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/DmiqYg4r.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},1747541998333,false]</script>
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-scripts",buildId:"93bac187-07c5-4a76-83a2-cefcf05c0b88",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
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.bAQEPFjX.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DoRSvGnG.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-404.DEqKCcKa.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BlmEfDGv.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bqz6dnGY.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-scripts/_nuxt/error-500.B881-kyH.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DK4kQ6nK.js"><script type="module" src="/__nuxt-scripts/_nuxt/DoRSvGnG.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},1751777716508,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"}}},app:{baseURL:"/__nuxt-scripts",buildId:"8f7376df-adce-4575-a756-33070a325389",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/module.mjs
CHANGED
|
@@ -157,7 +157,9 @@ function normalizeScriptData(src, assetsBaseURL = "/_scripts") {
|
|
|
157
157
|
// force an extension
|
|
158
158
|
].filter(Boolean).join("-");
|
|
159
159
|
const nuxt = tryUseNuxt();
|
|
160
|
-
|
|
160
|
+
const cdnURL = nuxt?.options.runtimeConfig?.app?.cdnURL || nuxt?.options.app?.cdnURL || "";
|
|
161
|
+
const baseURL = cdnURL || nuxt?.options.app.baseURL || "";
|
|
162
|
+
return { url: joinURL(joinURL(baseURL, assetsBaseURL), file), filename: file };
|
|
161
163
|
}
|
|
162
164
|
return { url: src };
|
|
163
165
|
}
|
|
@@ -251,9 +253,9 @@ function NuxtScriptBundleTransformer(options = {
|
|
|
251
253
|
let scriptSrcNode;
|
|
252
254
|
let src;
|
|
253
255
|
if (fnName === "useScript") {
|
|
254
|
-
if (node.arguments[0]
|
|
256
|
+
if (node.arguments[0]?.type === "Literal") {
|
|
255
257
|
scriptSrcNode = node.arguments[0];
|
|
256
|
-
} else if (node.arguments[0]
|
|
258
|
+
} else if (node.arguments[0]?.type === "ObjectExpression") {
|
|
257
259
|
const srcProperty = node.arguments[0].properties.find(
|
|
258
260
|
(p) => (p.key?.name === "src" || p.key?.value === "src") && p?.value.type === "Literal"
|
|
259
261
|
);
|
|
@@ -535,8 +537,7 @@ const module = defineNuxtModule({
|
|
|
535
537
|
name: "@nuxt/scripts",
|
|
536
538
|
configKey: "scripts",
|
|
537
539
|
compatibility: {
|
|
538
|
-
nuxt: ">=3.16"
|
|
539
|
-
bridge: false
|
|
540
|
+
nuxt: ">=3.16"
|
|
540
541
|
}
|
|
541
542
|
},
|
|
542
543
|
defaults: {
|
|
@@ -32,9 +32,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
33
|
onError?: (() => any) | undefined;
|
|
34
34
|
onReady?: ((e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/crisp.js").CrispApi>) => any) | undefined;
|
|
35
|
-
}>, {
|
|
36
|
-
trigger: ElementScriptTrigger;
|
|
37
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
36
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
37
|
export default _default;
|
|
40
38
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -24,10 +24,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
25
|
onError?: (() => any) | undefined;
|
|
26
26
|
onReady?: ((e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/google-adsense.js").GoogleAdsenseApi>) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
dataAdFormat: "auto" | "rectangle" | "vertical" | "horizontal" | "fluid" | "autorelaxed";
|
|
29
|
-
dataFullWidthResponsive: boolean;
|
|
30
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
28
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
32
29
|
export default _default;
|
|
33
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -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;
|
|
@@ -94,17 +94,17 @@ declare function importLibrary(key: 'visualization'): Promise<google.maps.Visual
|
|
|
94
94
|
declare function importLibrary(key: string): Promise<any>;
|
|
95
95
|
declare var __VLS_1: {
|
|
96
96
|
placeholder: any;
|
|
97
|
-
}, __VLS_3: {},
|
|
97
|
+
}, __VLS_3: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
98
98
|
type __VLS_Slots = {} & {
|
|
99
99
|
placeholder?: (props: typeof __VLS_1) => any;
|
|
100
100
|
} & {
|
|
101
101
|
loading?: (props: typeof __VLS_3) => any;
|
|
102
102
|
} & {
|
|
103
|
-
awaitingLoad?: (props: typeof
|
|
103
|
+
awaitingLoad?: (props: typeof __VLS_9) => any;
|
|
104
104
|
} & {
|
|
105
|
-
error?: (props: typeof
|
|
105
|
+
error?: (props: typeof __VLS_11) => any;
|
|
106
106
|
} & {
|
|
107
|
-
default?: (props: typeof
|
|
107
|
+
default?: (props: typeof __VLS_13) => any;
|
|
108
108
|
};
|
|
109
109
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
110
110
|
googleMaps: Ref<typeof google.maps | undefined, typeof google.maps | undefined>;
|
|
@@ -130,11 +130,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
130
130
|
readonly resolveQueryToLatLang: typeof resolveQueryToLatLang;
|
|
131
131
|
readonly importLibrary: typeof importLibrary;
|
|
132
132
|
}) => any) | undefined;
|
|
133
|
-
}>, {
|
|
134
|
-
trigger: ElementScriptTrigger;
|
|
135
|
-
width: number | string;
|
|
136
|
-
height: number | string;
|
|
137
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
133
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
138
134
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
139
135
|
export default _default;
|
|
140
136
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -33,9 +33,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
33
33
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
34
|
onError?: (() => any) | undefined;
|
|
35
35
|
onReady?: ((e: import("#nuxt-scripts/types").UseScriptContext<import("../registry/intercom.js").IntercomApi>) => any) | undefined;
|
|
36
|
-
}>, {
|
|
37
|
-
trigger: ElementScriptTrigger;
|
|
38
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
37
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
40
38
|
export default _default;
|
|
41
39
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -12,9 +12,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
13
|
onReady?: ((args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any) | undefined;
|
|
14
14
|
onLemonSqueezyEvent?: ((args_0: never) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
trigger: ElementScriptTrigger;
|
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
16
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
17
|
export default _default;
|
|
20
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -2,8 +2,5 @@ type __VLS_Props = {
|
|
|
2
2
|
color?: string;
|
|
3
3
|
size?: number;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
-
color: string;
|
|
7
|
-
size: number;
|
|
8
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
6
|
export default _default;
|
|
@@ -23,9 +23,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
23
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
24
|
onError?: (() => any) | undefined;
|
|
25
25
|
onReady?: ((args_0: import("../types.js").UseScriptContext<Record<string | symbol, any>>) => any) | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
trigger: ElementScriptTrigger;
|
|
28
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
27
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
28
|
export default _default;
|
|
31
29
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -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(),
|
|
@@ -37,17 +37,17 @@ type __VLS_Props = {
|
|
|
37
37
|
id?: number | undefined;
|
|
38
38
|
url?: string | undefined;
|
|
39
39
|
};
|
|
40
|
-
declare var __VLS_1: any, __VLS_3: {},
|
|
40
|
+
declare var __VLS_1: any, __VLS_3: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
41
41
|
type __VLS_Slots = {} & {
|
|
42
42
|
placeholder?: (props: typeof __VLS_1) => any;
|
|
43
43
|
} & {
|
|
44
44
|
loading?: (props: typeof __VLS_3) => any;
|
|
45
45
|
} & {
|
|
46
|
-
awaitingLoad?: (props: typeof
|
|
46
|
+
awaitingLoad?: (props: typeof __VLS_9) => any;
|
|
47
47
|
} & {
|
|
48
|
-
error?: (props: typeof
|
|
48
|
+
error?: (props: typeof __VLS_11) => any;
|
|
49
49
|
} & {
|
|
50
|
-
default?: (props: typeof
|
|
50
|
+
default?: (props: typeof __VLS_13) => any;
|
|
51
51
|
};
|
|
52
52
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
53
53
|
play: () => Promise<void> | undefined;
|
|
@@ -115,9 +115,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
115
115
|
onCamerachange?: ((event: import("@vimeo/player").VimeoCameraProps, player: Vimeo.Player) => any) | undefined;
|
|
116
116
|
onEnterpictureinpicture?: ((event: never, player: Vimeo.Player) => any) | undefined;
|
|
117
117
|
onLeavepictureinpicture?: ((event: never, player: Vimeo.Player) => any) | undefined;
|
|
118
|
-
}>, {
|
|
119
|
-
trigger: ElementScriptTrigger;
|
|
120
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
118
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
121
119
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
122
120
|
export default _default;
|
|
123
121
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -22,17 +22,17 @@ type __VLS_Props = {
|
|
|
22
22
|
};
|
|
23
23
|
declare var __VLS_1: {
|
|
24
24
|
placeholder: any;
|
|
25
|
-
}, __VLS_3: {},
|
|
25
|
+
}, __VLS_3: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
26
26
|
type __VLS_Slots = {} & {
|
|
27
27
|
placeholder?: (props: typeof __VLS_1) => any;
|
|
28
28
|
} & {
|
|
29
29
|
loading?: (props: typeof __VLS_3) => any;
|
|
30
30
|
} & {
|
|
31
|
-
awaitingLoad?: (props: typeof
|
|
31
|
+
awaitingLoad?: (props: typeof __VLS_9) => any;
|
|
32
32
|
} & {
|
|
33
|
-
error?: (props: typeof
|
|
33
|
+
error?: (props: typeof __VLS_11) => any;
|
|
34
34
|
} & {
|
|
35
|
-
default?: (props: typeof
|
|
35
|
+
default?: (props: typeof __VLS_13) => any;
|
|
36
36
|
};
|
|
37
37
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
38
38
|
player: Ref<YT.Player | undefined, YT.Player | undefined>;
|
|
@@ -48,15 +48,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
48
48
|
"onState-change"?: ((e: YT.OnStateChangeEvent, target: YT.Player) => any) | undefined;
|
|
49
49
|
"onPlayback-quality-change"?: ((e: YT.OnPlaybackQualityChangeEvent, target: YT.Player) => any) | undefined;
|
|
50
50
|
"onPlayback-rate-change"?: ((e: YT.OnPlaybackRateChangeEvent, target: YT.Player) => any) | undefined;
|
|
51
|
-
}>, {
|
|
52
|
-
trigger: ElementScriptTrigger;
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
playerVars: YT.PlayerVars;
|
|
56
|
-
cookies: boolean;
|
|
57
|
-
thumbnailSize: YoutubeThumbnailSize;
|
|
58
|
-
webp: boolean;
|
|
59
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
52
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
61
53
|
export default _default;
|
|
62
54
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -5,7 +5,7 @@ interface EventObjectProperties {
|
|
|
5
5
|
content_ids?: string[];
|
|
6
6
|
content_name?: string;
|
|
7
7
|
content_type?: string;
|
|
8
|
-
contents
|
|
8
|
+
contents?: {
|
|
9
9
|
id: string;
|
|
10
10
|
quantity: number;
|
|
11
11
|
}[];
|
|
@@ -18,7 +18,9 @@ interface EventObjectProperties {
|
|
|
18
18
|
value?: number;
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
}
|
|
21
|
-
type
|
|
21
|
+
type ConsentAction = 'grant' | 'revoke';
|
|
22
|
+
type FbqArgs = ['track', StandardEvents, EventObjectProperties?] | ['trackCustom', string, EventObjectProperties?] | ['trackSingle', string, StandardEvents, EventObjectProperties?] | ['trackSingleCustom', string, string, EventObjectProperties?] | ['init', string] | ['init', number, Record<string, any>?] | ['consent', ConsentAction] | [string, ...any[]];
|
|
23
|
+
type FbqFns = (...args: FbqArgs) => void;
|
|
22
24
|
export interface MetaPixelApi {
|
|
23
25
|
fbq: FbqFns & {
|
|
24
26
|
push: FbqFns;
|
|
@@ -1,16 +1,48 @@
|
|
|
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
|
+
readonly autoTrackPageview: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
4
5
|
readonly trackSpa: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
5
6
|
readonly trackQuery: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
7
|
+
readonly trackOutbound: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
8
|
+
readonly trackErrors: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
9
|
+
readonly sessionReplay: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
10
|
+
readonly webVitals: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
6
11
|
readonly skipPatterns: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
7
12
|
readonly maskPatterns: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
8
13
|
readonly debounce: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
14
|
+
readonly apiKey: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
9
15
|
}, undefined>;
|
|
10
16
|
export type RybbitAnalyticsInput = RegistryScriptInput<typeof RybbitAnalyticsOptions, false>;
|
|
11
17
|
export interface RybbitAnalyticsApi {
|
|
18
|
+
/**
|
|
19
|
+
* Tracks a page view
|
|
20
|
+
*/
|
|
12
21
|
pageview: () => void;
|
|
13
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Tracks a custom event
|
|
24
|
+
* @param name Name of the event
|
|
25
|
+
* @param properties Optional properties for the event
|
|
26
|
+
*/
|
|
27
|
+
event: (name: string, properties?: Record<string, any>) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Sets a custom user ID for tracking logged-in users
|
|
30
|
+
* @param userId The user ID to set (will be stored in localStorage)
|
|
31
|
+
*/
|
|
32
|
+
identify: (userId: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Clears the stored user ID
|
|
35
|
+
*/
|
|
36
|
+
clearUserId: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the currently set user ID
|
|
39
|
+
* @returns The current user ID or null if not set
|
|
40
|
+
*/
|
|
41
|
+
getUserId: () => string | null;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated use top level functions instead
|
|
44
|
+
*/
|
|
45
|
+
rybbit: RybbitAnalyticsApi;
|
|
14
46
|
}
|
|
15
47
|
declare global {
|
|
16
48
|
interface Window {
|
|
@@ -1,30 +1,52 @@
|
|
|
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
|
+
autoTrackPageview: optional(boolean()),
|
|
6
7
|
trackSpa: optional(boolean()),
|
|
7
8
|
trackQuery: optional(boolean()),
|
|
9
|
+
trackOutbound: optional(boolean()),
|
|
10
|
+
trackErrors: optional(boolean()),
|
|
11
|
+
sessionReplay: optional(boolean()),
|
|
12
|
+
webVitals: optional(boolean()),
|
|
8
13
|
skipPatterns: optional(array(string())),
|
|
9
14
|
maskPatterns: optional(array(string())),
|
|
10
|
-
debounce: optional(number())
|
|
15
|
+
debounce: optional(number()),
|
|
16
|
+
apiKey: optional(string())
|
|
11
17
|
});
|
|
12
18
|
export function useScriptRybbitAnalytics(_options) {
|
|
13
19
|
return useRegistryScript("rybbitAnalytics", (options) => {
|
|
14
20
|
return {
|
|
15
21
|
scriptInput: {
|
|
16
22
|
"src": "https://app.rybbit.io/api/script.js",
|
|
17
|
-
"data-site-id": options?.siteId,
|
|
23
|
+
"data-site-id": String(options?.siteId),
|
|
24
|
+
"data-auto-track-pageview": options?.autoTrackPageview,
|
|
18
25
|
"data-track-spa": options?.trackSpa,
|
|
19
26
|
"data-track-query": options?.trackQuery,
|
|
27
|
+
"data-track-outbound": options?.trackOutbound,
|
|
28
|
+
"data-track-errors": options?.trackErrors,
|
|
29
|
+
"data-session-replay": options?.sessionReplay,
|
|
30
|
+
"data-web-vitals": options?.webVitals,
|
|
20
31
|
"data-skip-patterns": options?.skipPatterns ? JSON.stringify(options.skipPatterns) : void 0,
|
|
21
32
|
"data-mask-patterns": options?.maskPatterns ? JSON.stringify(options.maskPatterns) : void 0,
|
|
22
|
-
"data-debounce": options?.debounce ? options.debounce.toString() : void 0
|
|
33
|
+
"data-debounce": options?.debounce ? options.debounce.toString() : void 0,
|
|
34
|
+
"data-api-key": options?.apiKey
|
|
23
35
|
},
|
|
24
36
|
schema: import.meta.dev ? RybbitAnalyticsOptions : void 0,
|
|
25
37
|
scriptOptions: {
|
|
26
38
|
use() {
|
|
27
|
-
|
|
39
|
+
if (typeof window.rybbit === "undefined") {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
pageview: window.rybbit.pageview,
|
|
44
|
+
event: window.rybbit.event,
|
|
45
|
+
identify: window.rybbit.identify,
|
|
46
|
+
clearUserId: window.rybbit.clearUserId,
|
|
47
|
+
getUserId: window.rybbit.getUserId,
|
|
48
|
+
rybbit: window.rybbit
|
|
49
|
+
};
|
|
28
50
|
}
|
|
29
51
|
}
|
|
30
52
|
};
|
|
@@ -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'
|