@nuxt/scripts 0.4.3 → 0.4.4
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 +14 -13
- package/dist/client/404.html +14 -13
- package/dist/client/_nuxt/Bf6Ng02J.js +31 -0
- package/dist/client/_nuxt/{BvCpKIQU.js → BsZo98M5.js} +1 -1
- package/dist/client/_nuxt/{DH8runP0.js → C0cterrC.js} +1 -1
- package/dist/client/_nuxt/{B9E_xdxs.js → CNkYXcD4.js} +1 -1
- package/dist/client/_nuxt/{DsudziMp.js → COIrKlfF.js} +1 -1
- package/dist/client/_nuxt/C_ZPRiAj.js +26 -0
- package/dist/client/_nuxt/{B4ACM-c0.js → DCjyzNN-.js} +1 -1
- package/dist/client/_nuxt/{DKlGn9uv.js → DGEpfOTx.js} +1 -1
- package/dist/client/_nuxt/Dd6f7Z5P.js +1 -0
- package/dist/client/_nuxt/{B9T-hdPi.js → ISosJq17.js} +1 -1
- package/dist/client/_nuxt/MN12aA4C.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/3255a134-7caf-4d76-96f4-05475e276415.json +1 -0
- package/dist/client/_nuxt/{BcF9sHHc.js → o8H-iTt6.js} +2 -2
- package/dist/client/_nuxt/xtV5iK4E.js +1 -0
- package/dist/client/index.html +14 -13
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +2 -2
- package/dist/registry.d.mts +4 -4
- package/dist/registry.d.ts +4 -4
- package/dist/runtime/composables/useAnalyticsPageEvent.d.ts +1 -4
- package/dist/runtime/composables/useConsentScriptTrigger.d.ts +1 -1
- package/dist/runtime/composables/useElementScriptTrigger.d.ts +1 -1
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +4 -17
- package/dist/runtime/registry/{cloudflare-web-analytics.mjs → cloudflare-web-analytics.js} +1 -2
- package/dist/runtime/registry/fathom-analytics.d.ts +4 -29
- package/dist/runtime/registry/{fathom-analytics.mjs → fathom-analytics.js} +1 -1
- package/dist/runtime/registry/google-analytics.d.ts +4 -9
- package/dist/runtime/registry/{google-analytics.mjs → google-analytics.js} +1 -1
- package/dist/runtime/registry/google-maps.d.ts +4 -10
- package/dist/runtime/registry/{google-maps.mjs → google-maps.js} +1 -1
- package/dist/runtime/registry/google-tag-manager.d.ts +4 -6
- package/dist/runtime/registry/{google-tag-manager.mjs → google-tag-manager.js} +1 -1
- package/dist/runtime/registry/hotjar.d.ts +4 -8
- package/dist/runtime/registry/{hotjar.mjs → hotjar.js} +1 -1
- package/dist/runtime/registry/intercom.d.ts +4 -20
- package/dist/runtime/registry/{intercom.mjs → intercom.js} +1 -1
- package/dist/runtime/registry/lemon-squeezy.d.ts +3 -1
- package/dist/runtime/registry/{lemon-squeezy.mjs → lemon-squeezy.js} +1 -2
- package/dist/runtime/registry/matomo-analytics.d.ts +4 -12
- package/dist/runtime/registry/{matomo-analytics.mjs → matomo-analytics.js} +1 -2
- package/dist/runtime/registry/meta-pixel.d.ts +4 -6
- package/dist/runtime/registry/{meta-pixel.mjs → meta-pixel.js} +1 -2
- package/dist/runtime/registry/npm.d.ts +4 -12
- package/dist/runtime/registry/{npm.mjs → npm.js} +1 -1
- package/dist/runtime/registry/plausible-analytics.d.ts +4 -8
- package/dist/runtime/registry/{plausible-analytics.mjs → plausible-analytics.js} +1 -1
- package/dist/runtime/registry/segment.d.ts +4 -8
- package/dist/runtime/registry/{segment.mjs → segment.js} +1 -1
- package/dist/runtime/registry/stripe.d.ts +4 -6
- package/dist/runtime/registry/{stripe.mjs → stripe.js} +1 -3
- package/dist/runtime/registry/vimeo-player.d.ts +3 -1
- package/dist/runtime/registry/{vimeo-player.mjs → vimeo-player.js} +1 -1
- package/dist/runtime/registry/x-pixel.d.ts +4 -8
- package/dist/runtime/registry/{x-pixel.mjs → x-pixel.js} +1 -2
- package/dist/runtime/registry/youtube-player.d.ts +3 -1
- package/dist/runtime/registry/{youtube-player.mjs → youtube-player.js} +1 -2
- package/dist/runtime/types.d.ts +17 -17
- package/dist/runtime/utils.d.ts +5 -3
- package/package.json +16 -15
- package/dist/client/_nuxt/Bsp1M94H.js +0 -1
- package/dist/client/_nuxt/C9UBdavN.js +0 -1
- package/dist/client/_nuxt/D2Id3jI5.js +0 -31
- package/dist/client/_nuxt/Dz2Ca8U2.js +0 -1
- package/dist/client/_nuxt/builds/meta/57975886-3e65-4f06-9b8d-c072a775a94c.json +0 -1
- /package/dist/runtime/composables/{useAnalyticsPageEvent.mjs → useAnalyticsPageEvent.js} +0 -0
- /package/dist/runtime/composables/{useConsentScriptTrigger.mjs → useConsentScriptTrigger.js} +0 -0
- /package/dist/runtime/composables/{useElementScriptTrigger.mjs → useElementScriptTrigger.js} +0 -0
- /package/dist/runtime/composables/{useScript.mjs → useScript.js} +0 -0
- /package/dist/runtime/{types.mjs → types.js} +0 -0
- /package/dist/runtime/{utils.mjs → utils.js} +0 -0
- /package/dist/runtime/validation/{mock.mjs → mock.js} +0 -0
- /package/dist/runtime/validation/{valibot.mjs → valibot.js} +0 -0
package/dist/client/index.html
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.D91GVkD7.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bf6Ng02J.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXFkqnOI.js">
|
|
6
6
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D6NljDpC.js">
|
|
7
7
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CowR2XfX.js">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/COIrKlfF.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CbViG2Xw.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dch3xQiY.js">
|
|
11
11
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CbYhyuC0.js">
|
|
12
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CNkYXcD4.js">
|
|
13
13
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BeX7Iu5M.js">
|
|
14
14
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/rS0jd3Ly.js">
|
|
15
15
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Sfo2eW0G.js">
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DjTlIhuc.js">
|
|
101
101
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DAVo6uMX.js">
|
|
102
102
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/JgH_6NEN.js">
|
|
103
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
103
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dd6f7Z5P.js">
|
|
104
104
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bbv8ARUV.js">
|
|
105
105
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CQUCfALx.js">
|
|
106
106
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/nclm9rTJ.js">
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BUpeXbsf.js">
|
|
126
126
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C9d3aiqh.js">
|
|
127
127
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dble9ECP.js">
|
|
128
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
128
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DGEpfOTx.js">
|
|
129
129
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o5b8QYQO.js">
|
|
130
130
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Db2-y2xY.js">
|
|
131
131
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dg0DGYq4.js">
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CBPJd_fO.js">
|
|
138
138
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dkb1Nx48.js">
|
|
139
139
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/-7WWnkdy.js">
|
|
140
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
140
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/MN12aA4C.js">
|
|
141
141
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B9CT-1u6.js">
|
|
142
142
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DBxHOdLe.js">
|
|
143
143
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DR5YgmI2.js">
|
|
@@ -164,6 +164,7 @@
|
|
|
164
164
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D384ylkT.js">
|
|
165
165
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Lpdzc9s2.js">
|
|
166
166
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CrhH3_Og.js">
|
|
167
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C_ZPRiAj.js">
|
|
167
168
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/6Kuza3Wr.js">
|
|
168
169
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/AgnqFTPX.js">
|
|
169
170
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CHCTrc3a.js">
|
|
@@ -195,8 +196,8 @@
|
|
|
195
196
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DVfdqzEq.js">
|
|
196
197
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/QZ3jNtnE.js">
|
|
197
198
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BLluXI4E.js">
|
|
198
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
199
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
199
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o8H-iTt6.js">
|
|
200
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DCjyzNN-.js">
|
|
200
201
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o-cPXEvd.js">
|
|
201
202
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Cicx_DS6.js">
|
|
202
203
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D3VXSfF0.js">
|
|
@@ -205,7 +206,7 @@
|
|
|
205
206
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CJQrLysU.js">
|
|
206
207
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BICIrM8O.js">
|
|
207
208
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B1nm99XP.js">
|
|
208
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
209
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/xtV5iK4E.js">
|
|
209
210
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CsTmP73Z.js">
|
|
210
211
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/YxQm0tCS.js">
|
|
211
212
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BaWyeHV_.js">
|
|
@@ -253,10 +254,10 @@
|
|
|
253
254
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bxkoe-BC.js">
|
|
254
255
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Br6ll-O0.js">
|
|
255
256
|
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-404.BRldFSII.css">
|
|
256
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
257
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
257
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ISosJq17.js">
|
|
258
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C0cterrC.js">
|
|
258
259
|
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-500.D8yw_IbC.css">
|
|
259
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
260
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/
|
|
260
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BsZo98M5.js">
|
|
261
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/Bf6Ng02J.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
261
262
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
262
263
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{defaultScriptOptions:{trigger:"onNuxtReady"}}},app:{baseURL:"/__nuxt-scripts",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as nuxt_schema from 'nuxt/schema';
|
|
2
|
-
import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '
|
|
2
|
+
import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '../dist/runtime/types.js';
|
|
3
3
|
|
|
4
4
|
interface ModuleOptions {
|
|
5
5
|
/**
|
package/dist/module.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as nuxt_schema from 'nuxt/schema';
|
|
2
|
-
import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '
|
|
2
|
+
import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '../dist/runtime/types.js';
|
|
3
3
|
|
|
4
4
|
interface ModuleOptions {
|
|
5
5
|
/**
|
package/dist/module.json
CHANGED
package/dist/registry.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SegmentInput } from '
|
|
2
|
-
import { PlausibleAnalyticsInput } from '
|
|
3
|
-
import { GoogleAnalyticsInput } from '
|
|
4
|
-
import { RegistryScripts } from '
|
|
1
|
+
import { SegmentInput } from '../dist/runtime/registry/segment.js';
|
|
2
|
+
import { PlausibleAnalyticsInput } from '../dist/runtime/registry/plausible-analytics.js';
|
|
3
|
+
import { GoogleAnalyticsInput } from '../dist/runtime/registry/google-analytics.js';
|
|
4
|
+
import { RegistryScripts } from '../dist/runtime/types.js';
|
|
5
5
|
|
|
6
6
|
declare function GoogleAnalyticsScriptResolver(options?: GoogleAnalyticsInput): string;
|
|
7
7
|
declare function PlausibleAnalyticsScriptResolver(options: PlausibleAnalyticsInput): string;
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SegmentInput } from '
|
|
2
|
-
import { PlausibleAnalyticsInput } from '
|
|
3
|
-
import { GoogleAnalyticsInput } from '
|
|
4
|
-
import { RegistryScripts } from '
|
|
1
|
+
import { SegmentInput } from '../dist/runtime/registry/segment.js';
|
|
2
|
+
import { PlausibleAnalyticsInput } from '../dist/runtime/registry/plausible-analytics.js';
|
|
3
|
+
import { GoogleAnalyticsInput } from '../dist/runtime/registry/google-analytics.js';
|
|
4
|
+
import { RegistryScripts } from '../dist/runtime/types.js';
|
|
5
5
|
|
|
6
6
|
declare function GoogleAnalyticsScriptResolver(options?: GoogleAnalyticsInput): string;
|
|
7
7
|
declare function PlausibleAnalyticsScriptResolver(options: PlausibleAnalyticsInput): string;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import type { TrackedPage } from '#nuxt-scripts';
|
|
2
|
-
export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<
|
|
3
|
-
title?: string | undefined;
|
|
4
|
-
path: string;
|
|
5
|
-
}>;
|
|
2
|
+
export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConsentScriptTriggerOptions } from '../types';
|
|
1
|
+
import type { ConsentScriptTriggerOptions } from '../types.js';
|
|
2
2
|
interface UseConsentScriptTriggerApi extends Promise<void> {
|
|
3
3
|
/**
|
|
4
4
|
* A function that can be called to accept the consent and load the script.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MaybeComputedElementRef, MaybeElement } from '@vueuse/core';
|
|
2
|
-
import type { ElementScriptTrigger } from '../types';
|
|
2
|
+
import type { ElementScriptTrigger } from '../types.js';
|
|
3
3
|
export interface ElementScriptTriggerOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The event to trigger the script load.
|
|
@@ -16,21 +16,8 @@ declare global {
|
|
|
16
16
|
interface Window extends CloudflareWebAnalyticsApi {
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export declare const CloudflareWebAnalyticsOptions:
|
|
20
|
-
/**
|
|
21
|
-
* The Cloudflare Web Analytics token.
|
|
22
|
-
*/
|
|
23
|
-
token: import("valibot").StringSchema<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Cloudflare Web Analytics enables measuring SPAs automatically by overriding the History API’s pushState function
|
|
26
|
-
* and listening to the onpopstate. Hash-based router is not supported.
|
|
27
|
-
*
|
|
28
|
-
* @default true
|
|
29
|
-
*/
|
|
30
|
-
spa: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
31
|
-
}, undefined, {
|
|
32
|
-
token: string;
|
|
33
|
-
spa?: boolean | undefined;
|
|
34
|
-
}>;
|
|
19
|
+
export declare const CloudflareWebAnalyticsOptions: any;
|
|
35
20
|
export type CloudflareWebAnalyticsInput = RegistryScriptInput<typeof CloudflareWebAnalyticsOptions>;
|
|
36
|
-
export declare function useScriptCloudflareWebAnalytics<T extends CloudflareWebAnalyticsApi>(_options?: CloudflareWebAnalyticsInput):
|
|
21
|
+
export declare function useScriptCloudflareWebAnalytics<T extends CloudflareWebAnalyticsApi>(_options?: CloudflareWebAnalyticsInput): T & {
|
|
22
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
23
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useRegistryScript } from "../utils.
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
2
|
import { boolean, minLength, object, optional, string } from "#nuxt-scripts-validator";
|
|
3
3
|
export const CloudflareWebAnalyticsOptions = object({
|
|
4
4
|
/**
|
|
@@ -18,7 +18,6 @@ export function useScriptCloudflareWebAnalytics(_options) {
|
|
|
18
18
|
scriptInput: {
|
|
19
19
|
"src": "https://static.cloudflareinsights.com/beacon.min.js",
|
|
20
20
|
"data-cf-beacon": JSON.stringify({ token: options.token, spa: options.spa || true }),
|
|
21
|
-
// @ts-expect-error untyped TODO fix upstream
|
|
22
21
|
"crossorigin": false
|
|
23
22
|
},
|
|
24
23
|
schema: import.meta.dev ? CloudflareWebAnalyticsOptions : void 0,
|
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
-
export declare const FathomAnalyticsOptions:
|
|
3
|
-
/**
|
|
4
|
-
* The Fathom Analytics site ID.
|
|
5
|
-
*/
|
|
6
|
-
site: import("valibot").StringSchema<string>;
|
|
7
|
-
/**
|
|
8
|
-
* The Fathom Analytics tracking mode.
|
|
9
|
-
*/
|
|
10
|
-
spa: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"auto", "auto"> | import("valibot").LiteralSchema<"history", "history"> | import("valibot").LiteralSchema<"hash", "hash">)[], "auto" | "history" | "hash">, undefined, "auto" | "history" | "hash" | undefined>;
|
|
11
|
-
/**
|
|
12
|
-
* Automatically track page views.
|
|
13
|
-
*/
|
|
14
|
-
auto: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
15
|
-
/**
|
|
16
|
-
* Enable canonical URL tracking.
|
|
17
|
-
*/
|
|
18
|
-
canonical: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
19
|
-
/**
|
|
20
|
-
* Honor Do Not Track requests.
|
|
21
|
-
*/
|
|
22
|
-
honorDnt: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
23
|
-
}, undefined, {
|
|
24
|
-
site: string;
|
|
25
|
-
spa?: "auto" | "history" | "hash" | undefined;
|
|
26
|
-
auto?: boolean | undefined;
|
|
27
|
-
canonical?: boolean | undefined;
|
|
28
|
-
honorDnt?: boolean | undefined;
|
|
29
|
-
}>;
|
|
2
|
+
export declare const FathomAnalyticsOptions: any;
|
|
30
3
|
export type FathomAnalyticsInput = RegistryScriptInput<typeof FathomAnalyticsOptions, false>;
|
|
31
4
|
export interface FathomAnalyticsApi {
|
|
32
5
|
beacon: (ctx: {
|
|
@@ -53,4 +26,6 @@ declare global {
|
|
|
53
26
|
fathom: FathomAnalyticsApi;
|
|
54
27
|
}
|
|
55
28
|
}
|
|
56
|
-
export declare function useScriptFathomAnalytics<T extends FathomAnalyticsApi>(_options?: FathomAnalyticsInput):
|
|
29
|
+
export declare function useScriptFathomAnalytics<T extends FathomAnalyticsApi>(_options?: FathomAnalyticsInput): T & {
|
|
30
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
31
|
+
};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import type { GoogleAnalyticsApi } from 'third-party-capital';
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
-
export declare const GoogleAnalyticsOptions:
|
|
4
|
-
/**
|
|
5
|
-
* The Google Analytics ID.
|
|
6
|
-
*/
|
|
7
|
-
id: import("valibot").StringSchema<string>;
|
|
8
|
-
}, undefined, {
|
|
9
|
-
id: string;
|
|
10
|
-
}>;
|
|
3
|
+
export declare const GoogleAnalyticsOptions: any;
|
|
11
4
|
export type GoogleAnalyticsInput = RegistryScriptInput<typeof GoogleAnalyticsOptions>;
|
|
12
5
|
declare global {
|
|
13
6
|
interface Window extends GoogleAnalyticsApi {
|
|
@@ -18,4 +11,6 @@ declare global {
|
|
|
18
11
|
*
|
|
19
12
|
* A 3P wrapper for Google Analytics that takes an options input to feed into third-party-capital({@link https://github.com/GoogleChromeLabs/third-party-capital}), which returns instructions for nuxt-scripts.
|
|
20
13
|
*/
|
|
21
|
-
export declare function useScriptGoogleAnalytics<T extends GoogleAnalyticsApi>(_options?: GoogleAnalyticsInput):
|
|
14
|
+
export declare function useScriptGoogleAnalytics<T extends GoogleAnalyticsApi>(_options?: GoogleAnalyticsInput): T & {
|
|
15
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useRegistryScript } from "../utils.
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
2
|
import { GoogleAnalyticsScriptResolver } from "../../registry";
|
|
3
3
|
import { object, string } from "#nuxt-scripts-validator";
|
|
4
4
|
export const GoogleAnalyticsOptions = object({
|
|
@@ -7,15 +7,7 @@ declare namespace google {
|
|
|
7
7
|
function __ib__(): void;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare const GoogleMapsOptions:
|
|
11
|
-
apiKey: import("valibot").StringSchema<string>;
|
|
12
|
-
libraries: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<string>, string[]>, undefined, string[] | undefined>;
|
|
13
|
-
v: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"weekly", "weekly"> | import("valibot").LiteralSchema<"beta", "beta"> | import("valibot").LiteralSchema<"alpha", "alpha">)[], "weekly" | "beta" | "alpha">, undefined, "weekly" | "beta" | "alpha" | undefined>;
|
|
14
|
-
}, undefined, {
|
|
15
|
-
apiKey: string;
|
|
16
|
-
libraries?: string[] | undefined;
|
|
17
|
-
v?: "weekly" | "beta" | "alpha" | undefined;
|
|
18
|
-
}>;
|
|
10
|
+
export declare const GoogleMapsOptions: any;
|
|
19
11
|
export type GoogleMapsInput = RegistryScriptInput<typeof GoogleMapsOptions>;
|
|
20
12
|
export interface GoogleMapsApi {
|
|
21
13
|
maps: typeof window.google.maps;
|
|
@@ -25,5 +17,7 @@ declare global {
|
|
|
25
17
|
google: typeof google;
|
|
26
18
|
}
|
|
27
19
|
}
|
|
28
|
-
export declare function useScriptGoogleMaps<T extends GoogleMapsApi>(_options?: GoogleMapsInput):
|
|
20
|
+
export declare function useScriptGoogleMaps<T extends GoogleMapsApi>(_options?: GoogleMapsInput): T & {
|
|
21
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
22
|
+
};
|
|
29
23
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withQuery } from "ufo";
|
|
2
|
-
import { useRegistryScript } from "../utils.
|
|
2
|
+
import { useRegistryScript } from "../utils.js";
|
|
3
3
|
import { array, literal, object, optional, string, union } from "#nuxt-scripts-validator";
|
|
4
4
|
export const GoogleMapsOptions = object({
|
|
5
5
|
apiKey: string(),
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { GoogleTagManagerApi } from 'third-party-capital';
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
-
declare const GoogleTagManagerOptions:
|
|
4
|
-
id: import("valibot").StringSchema<string>;
|
|
5
|
-
}, undefined, {
|
|
6
|
-
id: string;
|
|
7
|
-
}>;
|
|
3
|
+
declare const GoogleTagManagerOptions: any;
|
|
8
4
|
export type GoogleTagManagerInput = RegistryScriptInput<typeof GoogleTagManagerOptions>;
|
|
9
5
|
declare global {
|
|
10
6
|
interface Window extends GoogleTagManagerApi {
|
|
@@ -15,5 +11,7 @@ declare global {
|
|
|
15
11
|
*
|
|
16
12
|
* A 3P wrapper for Google Tag Manager that takes an options input to feed into third-party-capital({@link https://github.com/GoogleChromeLabs/third-party-capital}), which returns instructions for nuxt-scripts.
|
|
17
13
|
*/
|
|
18
|
-
export declare function useScriptGoogleTagManager<T extends GoogleTagManagerApi>(options?: GoogleTagManagerInput):
|
|
14
|
+
export declare function useScriptGoogleTagManager<T extends GoogleTagManagerApi>(options?: GoogleTagManagerInput): T & {
|
|
15
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
16
|
+
};
|
|
19
17
|
export {};
|
|
@@ -12,12 +12,8 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export declare const HotjarOptions:
|
|
16
|
-
id: import("valibot").NumberSchema<number>;
|
|
17
|
-
sv: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
18
|
-
}, undefined, {
|
|
19
|
-
id: number;
|
|
20
|
-
sv?: number | undefined;
|
|
21
|
-
}>;
|
|
15
|
+
export declare const HotjarOptions: any;
|
|
22
16
|
export type HotjarInput = RegistryScriptInput<typeof HotjarOptions>;
|
|
23
|
-
export declare function useScriptHotjar<T extends HotjarApi>(_options?: HotjarInput):
|
|
17
|
+
export declare function useScriptHotjar<T extends HotjarApi>(_options?: HotjarInput): T & {
|
|
18
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
19
|
+
};
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import { type Input } from '#nuxt-scripts-validator';
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
-
export declare const IntercomOptions:
|
|
4
|
-
app_id: import("valibot").StringSchema<string>;
|
|
5
|
-
api_base: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"https://api-iam.intercom.io", "https://api-iam.intercom.io"> | import("valibot").LiteralSchema<"https://api-iam.eu.intercom.io", "https://api-iam.eu.intercom.io"> | import("valibot").LiteralSchema<"https://api-iam.au.intercom.io", "https://api-iam.au.intercom.io">)[], "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io">, undefined, "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io" | undefined>;
|
|
6
|
-
name: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
7
|
-
email: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
8
|
-
user_id: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
9
|
-
alignment: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"left", "left"> | import("valibot").LiteralSchema<"right", "right">)[], "left" | "right">, undefined, "left" | "right" | undefined>;
|
|
10
|
-
horizontal_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
11
|
-
vertical_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
12
|
-
}, undefined, {
|
|
13
|
-
app_id: string;
|
|
14
|
-
api_base?: "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io" | undefined;
|
|
15
|
-
name?: string | undefined;
|
|
16
|
-
email?: string | undefined;
|
|
17
|
-
user_id?: string | undefined;
|
|
18
|
-
alignment?: "left" | "right" | undefined;
|
|
19
|
-
horizontal_padding?: number | undefined;
|
|
20
|
-
vertical_padding?: number | undefined;
|
|
21
|
-
}>;
|
|
3
|
+
export declare const IntercomOptions: any;
|
|
22
4
|
export type IntercomInput = RegistryScriptInput<typeof IntercomOptions>;
|
|
23
5
|
export interface IntercomApi {
|
|
24
6
|
Intercom: ((event: 'boot', data?: Input<typeof IntercomOptions>) => void) & ((event: 'shutdown') => void) & ((event: 'update', options?: Input<typeof IntercomOptions>) => void) & ((event: 'hide') => void) & ((event: 'show') => void) & ((event: 'showSpace', spaceName: 'home' | 'messages' | 'help' | 'news' | 'tasks' | 'tickets' | string) => void) & ((event: 'showMessages') => void) & ((event: 'showNewMessage', content?: string) => void) & ((event: 'onHide', fn: () => void) => void) & ((event: 'onShow', fn: () => void) => void) & ((event: 'onUnreadCountChange', fn: () => void) => void) & ((event: 'trackEvent', eventName: string, metadata?: Record<string, any>) => void) & ((event: 'getVisitorId') => Promise<string>) & ((event: 'startTour', tourId: string | number) => void) & ((event: 'showArticle', articleId: string | number) => void) & ((event: 'showNews', newsItemId: string | number) => void) & ((event: 'startSurvey', surveyId: string | number) => void) & ((event: 'startChecklist', checklistId: string | number) => void) & ((event: 'showTicket', ticketId: string | number) => void) & ((event: 'showConversation', conversationId: string | number) => void) & ((event: 'onUserEmailSupplied', fn: () => void) => void) & ((event: string, ...params: any[]) => void);
|
|
@@ -28,4 +10,6 @@ declare global {
|
|
|
28
10
|
intercomSettings?: any;
|
|
29
11
|
}
|
|
30
12
|
}
|
|
31
|
-
export declare function useScriptIntercom<T extends IntercomApi>(_options?: IntercomInput):
|
|
13
|
+
export declare function useScriptIntercom<T extends IntercomApi>(_options?: IntercomInput): T & {
|
|
14
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
15
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { joinURL } from "ufo";
|
|
2
|
-
import { useRegistryScript } from "../utils.
|
|
2
|
+
import { useRegistryScript } from "../utils.js";
|
|
3
3
|
import { literal, number, object, optional, string, union } from "#nuxt-scripts-validator";
|
|
4
4
|
export const IntercomOptions = object({
|
|
5
5
|
app_id: string(),
|
|
@@ -62,4 +62,6 @@ declare global {
|
|
|
62
62
|
LemonSqueezy: LemonSqueezyApi;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
export declare function useScriptLemonSqueezy<T extends LemonSqueezyApi>(_options?: LemonSqueezyInput):
|
|
65
|
+
export declare function useScriptLemonSqueezy<T extends LemonSqueezyApi>(_options?: LemonSqueezyInput): T & {
|
|
66
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
67
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { useRegistryScript } from "../utils.
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
2
|
export function useScriptLemonSqueezy(_options) {
|
|
3
3
|
return useRegistryScript("lemonSqueezy", () => ({
|
|
4
4
|
scriptInput: {
|
|
5
5
|
src: "https://assets.lemonsqueezy.com/lemon.js",
|
|
6
|
-
// @ts-expect-error untyped
|
|
7
6
|
crossorigin: false
|
|
8
7
|
},
|
|
9
8
|
scriptOptions: {
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
-
export declare const MatomoAnalyticsOptions:
|
|
3
|
-
matomoUrl: import("valibot").StringSchema<string>;
|
|
4
|
-
siteId: import("valibot").StringSchema<string>;
|
|
5
|
-
trackPageView: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
6
|
-
enableLinkTracking: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
7
|
-
}, undefined, {
|
|
8
|
-
matomoUrl: string;
|
|
9
|
-
siteId: string;
|
|
10
|
-
trackPageView?: boolean | undefined;
|
|
11
|
-
enableLinkTracking?: boolean | undefined;
|
|
12
|
-
}>;
|
|
2
|
+
export declare const MatomoAnalyticsOptions: any;
|
|
13
3
|
export type MatomoAnalyticsInput = RegistryScriptInput<typeof MatomoAnalyticsOptions, false>;
|
|
14
4
|
interface MatomoAnalyticsApi {
|
|
15
5
|
_paq: unknown[];
|
|
@@ -18,5 +8,7 @@ declare global {
|
|
|
18
8
|
interface Window extends MatomoAnalyticsApi {
|
|
19
9
|
}
|
|
20
10
|
}
|
|
21
|
-
export declare function useScriptMatomoAnalytics<T extends MatomoAnalyticsApi>(_options?: MatomoAnalyticsInput):
|
|
11
|
+
export declare function useScriptMatomoAnalytics<T extends MatomoAnalyticsApi>(_options?: MatomoAnalyticsInput): T & {
|
|
12
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
13
|
+
};
|
|
22
14
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withBase, withHttps } from "ufo";
|
|
2
|
-
import { useRegistryScript } from "../utils.
|
|
2
|
+
import { useRegistryScript } from "../utils.js";
|
|
3
3
|
import { boolean, object, optional, string } from "#nuxt-scripts-validator";
|
|
4
4
|
export const MatomoAnalyticsOptions = object({
|
|
5
5
|
matomoUrl: string(),
|
|
@@ -12,7 +12,6 @@ export function useScriptMatomoAnalytics(_options) {
|
|
|
12
12
|
return useRegistryScript("matomoAnalytics", (options) => ({
|
|
13
13
|
scriptInput: {
|
|
14
14
|
src: withBase(`/matomo.js`, withHttps(options?.matomoUrl)),
|
|
15
|
-
// @ts-expect-error untyped TODO fix upstream
|
|
16
15
|
crossorigin: false
|
|
17
16
|
},
|
|
18
17
|
schema: import.meta.dev ? MatomoAnalyticsOptions : void 0,
|
|
@@ -32,11 +32,9 @@ declare global {
|
|
|
32
32
|
interface Window extends MetaPixelApi {
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
export declare const MetaPixelOptions:
|
|
36
|
-
id: import("valibot").UnionSchema<(import("valibot").StringSchema<string> | import("valibot").NumberSchema<number>)[], string | number>;
|
|
37
|
-
}, undefined, {
|
|
38
|
-
id: string | number;
|
|
39
|
-
}>;
|
|
35
|
+
export declare const MetaPixelOptions: any;
|
|
40
36
|
export type MetaPixelInput = RegistryScriptInput<typeof MetaPixelOptions>;
|
|
41
|
-
export declare function useScriptMetaPixel<T extends MetaPixelApi>(_options?: MetaPixelInput):
|
|
37
|
+
export declare function useScriptMetaPixel<T extends MetaPixelApi>(_options?: MetaPixelInput): T & {
|
|
38
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
39
|
+
};
|
|
42
40
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useRegistryScript } from "../utils.
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
2
|
import { MetaPixelScriptResolver } from "../../registry";
|
|
3
3
|
import { number, object, string, union } from "#nuxt-scripts-validator";
|
|
4
4
|
export const MetaPixelOptions = object({
|
|
@@ -8,7 +8,6 @@ export function useScriptMetaPixel(_options) {
|
|
|
8
8
|
return useRegistryScript("metaPixel", (options) => ({
|
|
9
9
|
scriptInput: {
|
|
10
10
|
src: MetaPixelScriptResolver(),
|
|
11
|
-
// @ts-expect-error TODO fix upstream
|
|
12
11
|
crossorigin: false
|
|
13
12
|
},
|
|
14
13
|
schema: import.meta.dev ? MetaPixelOptions : void 0,
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
-
export declare const NpmOptions:
|
|
3
|
-
packageName: import("valibot").StringSchema<string>;
|
|
4
|
-
file: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
5
|
-
version: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
6
|
-
type: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
7
|
-
}, undefined, {
|
|
8
|
-
packageName: string;
|
|
9
|
-
type?: string | undefined;
|
|
10
|
-
file?: string | undefined;
|
|
11
|
-
version?: string | undefined;
|
|
12
|
-
}>;
|
|
2
|
+
export declare const NpmOptions: any;
|
|
13
3
|
export type NpmInput = RegistryScriptInput<typeof NpmOptions>;
|
|
14
|
-
export declare function useScriptNpm<T extends Record<string | symbol, any>>(_options: NpmInput):
|
|
4
|
+
export declare function useScriptNpm<T extends Record<string | symbol, any>>(_options: NpmInput): T & {
|
|
5
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
6
|
+
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
-
export declare const PlausibleAnalyticsOptions:
|
|
3
|
-
domain: import("valibot").StringSchema<string>;
|
|
4
|
-
extension: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").UnionSchema<(import("valibot").LiteralSchema<"hash", "hash"> | import("valibot").LiteralSchema<"outbound-links", "outbound-links"> | import("valibot").LiteralSchema<"file-downloads", "file-downloads"> | import("valibot").LiteralSchema<"tagged-events", "tagged-events"> | import("valibot").LiteralSchema<"revenue", "revenue"> | import("valibot").LiteralSchema<"pageview-props", "pageview-props"> | import("valibot").LiteralSchema<"compat", "compat"> | import("valibot").LiteralSchema<"local", "local"> | import("valibot").LiteralSchema<"manual", "manual">)[], "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual"> | import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"hash", "hash"> | import("valibot").LiteralSchema<"outbound-links", "outbound-links"> | import("valibot").LiteralSchema<"file-downloads", "file-downloads"> | import("valibot").LiteralSchema<"tagged-events", "tagged-events"> | import("valibot").LiteralSchema<"revenue", "revenue"> | import("valibot").LiteralSchema<"pageview-props", "pageview-props"> | import("valibot").LiteralSchema<"compat", "compat"> | import("valibot").LiteralSchema<"local", "local"> | import("valibot").LiteralSchema<"manual", "manual">)[], "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual">, ("hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual")[]>)[], "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual" | ("hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual")[]>, undefined, "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual" | ("hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual")[] | undefined>;
|
|
5
|
-
}, undefined, {
|
|
6
|
-
domain: string;
|
|
7
|
-
extension?: "hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual" | ("hash" | "outbound-links" | "file-downloads" | "tagged-events" | "revenue" | "pageview-props" | "compat" | "local" | "manual")[] | undefined;
|
|
8
|
-
}>;
|
|
2
|
+
export declare const PlausibleAnalyticsOptions: any;
|
|
9
3
|
export type PlausibleAnalyticsInput = RegistryScriptInput<typeof PlausibleAnalyticsOptions, false>;
|
|
10
4
|
export interface PlausibleAnalyticsApi {
|
|
11
5
|
plausible: ((event: '404', options: Record<string, any>) => void) & ((event: 'event', options: Record<string, any>) => void) & ((...params: any[]) => void) & {
|
|
@@ -17,4 +11,6 @@ declare global {
|
|
|
17
11
|
plausible: PlausibleAnalyticsApi;
|
|
18
12
|
}
|
|
19
13
|
}
|
|
20
|
-
export declare function useScriptPlausibleAnalytics<T extends PlausibleAnalyticsApi>(_options?: PlausibleAnalyticsInput):
|
|
14
|
+
export declare function useScriptPlausibleAnalytics<T extends PlausibleAnalyticsApi>(_options?: PlausibleAnalyticsInput): T & {
|
|
15
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useRegistryScript } from "../utils.
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
2
|
import { PlausibleAnalyticsScriptResolver } from "../../registry";
|
|
3
3
|
import { array, literal, object, optional, string, union } from "#nuxt-scripts-validator";
|
|
4
4
|
const extensions = [
|