@nuxt/scripts 0.4.2 → 0.4.3
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 +5 -5
- package/dist/client/404.html +5 -5
- package/dist/client/_nuxt/{PGJIGHGk.js → B9T-hdPi.js} +1 -1
- package/dist/client/_nuxt/{iP9mcxdl.js → BvCpKIQU.js} +1 -1
- package/dist/client/_nuxt/{BBSnVM_c.js → D2Id3jI5.js} +3 -3
- package/dist/client/_nuxt/{BJEDUQYt.js → DH8runP0.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/57975886-3e65-4f06-9b8d-c072a775a94c.json +1 -0
- package/dist/client/index.html +5 -5
- package/dist/module.json +1 -1
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +1 -3
- package/dist/runtime/registry/fathom-analytics.d.ts +2 -4
- package/dist/runtime/registry/google-analytics.d.ts +1 -3
- package/dist/runtime/registry/google-maps.d.ts +1 -3
- package/dist/runtime/registry/google-tag-manager.d.ts +1 -3
- package/dist/runtime/registry/hotjar.d.ts +1 -3
- package/dist/runtime/registry/intercom.d.ts +2 -4
- package/dist/runtime/registry/lemon-squeezy.d.ts +1 -3
- package/dist/runtime/registry/matomo-analytics.d.ts +1 -3
- package/dist/runtime/registry/meta-pixel.d.ts +1 -3
- package/dist/runtime/registry/npm.d.ts +1 -3
- package/dist/runtime/registry/plausible-analytics.d.ts +3 -5
- package/dist/runtime/registry/segment.d.ts +1 -3
- package/dist/runtime/registry/stripe.d.ts +1 -3
- package/dist/runtime/registry/vimeo-player.d.ts +1 -3
- package/dist/runtime/registry/x-pixel.d.ts +1 -3
- package/dist/runtime/registry/youtube-player.d.ts +1 -3
- package/dist/runtime/utils.d.ts +1 -3
- package/package.json +19 -16
- package/dist/client/_nuxt/builds/meta/f37c599d-d78f-4a74-8eda-256234cbc028.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as d,u as f,r as i,f as h,g as p,h as v,j as m,k as y,l as g}from"./
|
|
1
|
+
import{i as d,u as f,r as i,f as h,g as p,h as v,j as m,k as y,l as g}from"./D2Id3jI5.js";let _;function b(){return _}function j(e){return typeof e=="function"?e():f(e)}function s(e,a=""){if(e instanceof Promise)return e;const t=j(e);return!e||!t?t:Array.isArray(t)?t.map(n=>s(n,a)):typeof t=="object"?Object.fromEntries(Object.entries(t).map(([n,o])=>n==="titleTemplate"||n.startsWith("on")?[n,f(o)]:[n,s(o,n)])):t}const w="usehead",u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c="__unhead_injection_handler__";function H(){if(c in u)return u[c]();const e=d(w);return e||b()}function T(e,a={}){const t=a.head||H();if(t)return t.ssr?t.push(e,a):x(t,e,a)}function x(e,a,t={}){const n=i(!1),o=i({});h(()=>{o.value=n.value?{}:s(a)});const r=e.push(o.value,t);return p(o,l=>{r.patch(l)}),g()&&(v(()=>{r.dispose()}),m(()=>{n.value=!0}),y(()=>{n.value=!1})),r}const I=(e,a)=>{const t=e.__vccOpts||e;for(const[n,o]of a)t[n]=o;return t};export{I as _,T as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"57975886-3e65-4f06-9b8d-c072a775a94c","timestamp":1715995090187}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"57975886-3e65-4f06-9b8d-c072a775a94c","timestamp":1715995090187,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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/D2Id3jI5.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">
|
|
@@ -253,10 +253,10 @@
|
|
|
253
253
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bxkoe-BC.js">
|
|
254
254
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Br6ll-O0.js">
|
|
255
255
|
<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/
|
|
256
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B9T-hdPi.js">
|
|
257
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DH8runP0.js">
|
|
258
258
|
<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/
|
|
259
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BvCpKIQU.js">
|
|
260
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/D2Id3jI5.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
261
|
</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
262
|
<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.json
CHANGED
|
@@ -33,6 +33,4 @@ export declare const CloudflareWebAnalyticsOptions: import("valibot").ObjectSche
|
|
|
33
33
|
spa?: boolean | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
export type CloudflareWebAnalyticsInput = RegistryScriptInput<typeof CloudflareWebAnalyticsOptions>;
|
|
36
|
-
export declare function useScriptCloudflareWebAnalytics<T extends CloudflareWebAnalyticsApi>(_options?: CloudflareWebAnalyticsInput):
|
|
37
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
38
|
-
};
|
|
36
|
+
export declare function useScriptCloudflareWebAnalytics<T extends CloudflareWebAnalyticsApi>(_options?: CloudflareWebAnalyticsInput): any;
|
|
@@ -22,8 +22,8 @@ export declare const FathomAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
|
22
22
|
honorDnt: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
23
23
|
}, undefined, {
|
|
24
24
|
site: string;
|
|
25
|
-
auto?: boolean | undefined;
|
|
26
25
|
spa?: "auto" | "history" | "hash" | undefined;
|
|
26
|
+
auto?: boolean | undefined;
|
|
27
27
|
canonical?: boolean | undefined;
|
|
28
28
|
honorDnt?: boolean | undefined;
|
|
29
29
|
}>;
|
|
@@ -53,6 +53,4 @@ declare global {
|
|
|
53
53
|
fathom: FathomAnalyticsApi;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
export declare function useScriptFathomAnalytics<T extends FathomAnalyticsApi>(_options?: FathomAnalyticsInput):
|
|
57
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
58
|
-
};
|
|
56
|
+
export declare function useScriptFathomAnalytics<T extends FathomAnalyticsApi>(_options?: FathomAnalyticsInput): any;
|
|
@@ -18,6 +18,4 @@ declare global {
|
|
|
18
18
|
*
|
|
19
19
|
* 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
20
|
*/
|
|
21
|
-
export declare function useScriptGoogleAnalytics<T extends GoogleAnalyticsApi>(_options?: GoogleAnalyticsInput):
|
|
22
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
23
|
-
};
|
|
21
|
+
export declare function useScriptGoogleAnalytics<T extends GoogleAnalyticsApi>(_options?: GoogleAnalyticsInput): any;
|
|
@@ -25,7 +25,5 @@ declare global {
|
|
|
25
25
|
google: typeof google;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export declare function useScriptGoogleMaps<T extends GoogleMapsApi>(_options?: GoogleMapsInput):
|
|
29
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
30
|
-
};
|
|
28
|
+
export declare function useScriptGoogleMaps<T extends GoogleMapsApi>(_options?: GoogleMapsInput): any;
|
|
31
29
|
export {};
|
|
@@ -15,7 +15,5 @@ declare global {
|
|
|
15
15
|
*
|
|
16
16
|
* 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
17
|
*/
|
|
18
|
-
export declare function useScriptGoogleTagManager<T extends GoogleTagManagerApi>(options?: GoogleTagManagerInput):
|
|
19
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
20
|
-
};
|
|
18
|
+
export declare function useScriptGoogleTagManager<T extends GoogleTagManagerApi>(options?: GoogleTagManagerInput): any;
|
|
21
19
|
export {};
|
|
@@ -20,6 +20,4 @@ export declare const HotjarOptions: import("valibot").ObjectSchema<{
|
|
|
20
20
|
sv?: number | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
export type HotjarInput = RegistryScriptInput<typeof HotjarOptions>;
|
|
23
|
-
export declare function useScriptHotjar<T extends HotjarApi>(_options?: HotjarInput):
|
|
24
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
25
|
-
};
|
|
23
|
+
export declare function useScriptHotjar<T extends HotjarApi>(_options?: HotjarInput): any;
|
|
@@ -11,8 +11,8 @@ export declare const IntercomOptions: import("valibot").ObjectSchema<{
|
|
|
11
11
|
vertical_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
12
12
|
}, undefined, {
|
|
13
13
|
app_id: string;
|
|
14
|
-
name?: string | undefined;
|
|
15
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
16
|
email?: string | undefined;
|
|
17
17
|
user_id?: string | undefined;
|
|
18
18
|
alignment?: "left" | "right" | undefined;
|
|
@@ -28,6 +28,4 @@ declare global {
|
|
|
28
28
|
intercomSettings?: any;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
export declare function useScriptIntercom<T extends IntercomApi>(_options?: IntercomInput):
|
|
32
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
33
|
-
};
|
|
31
|
+
export declare function useScriptIntercom<T extends IntercomApi>(_options?: IntercomInput): any;
|
|
@@ -62,6 +62,4 @@ declare global {
|
|
|
62
62
|
LemonSqueezy: LemonSqueezyApi;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
export declare function useScriptLemonSqueezy<T extends LemonSqueezyApi>(_options?: LemonSqueezyInput):
|
|
66
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
67
|
-
};
|
|
65
|
+
export declare function useScriptLemonSqueezy<T extends LemonSqueezyApi>(_options?: LemonSqueezyInput): any;
|
|
@@ -18,7 +18,5 @@ declare global {
|
|
|
18
18
|
interface Window extends MatomoAnalyticsApi {
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
export declare function useScriptMatomoAnalytics<T extends MatomoAnalyticsApi>(_options?: MatomoAnalyticsInput):
|
|
22
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
23
|
-
};
|
|
21
|
+
export declare function useScriptMatomoAnalytics<T extends MatomoAnalyticsApi>(_options?: MatomoAnalyticsInput): any;
|
|
24
22
|
export {};
|
|
@@ -38,7 +38,5 @@ export declare const MetaPixelOptions: import("valibot").ObjectSchema<{
|
|
|
38
38
|
id: string | number;
|
|
39
39
|
}>;
|
|
40
40
|
export type MetaPixelInput = RegistryScriptInput<typeof MetaPixelOptions>;
|
|
41
|
-
export declare function useScriptMetaPixel<T extends MetaPixelApi>(_options?: MetaPixelInput):
|
|
42
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
43
|
-
};
|
|
41
|
+
export declare function useScriptMetaPixel<T extends MetaPixelApi>(_options?: MetaPixelInput): any;
|
|
44
42
|
export {};
|
|
@@ -11,6 +11,4 @@ export declare const NpmOptions: import("valibot").ObjectSchema<{
|
|
|
11
11
|
version?: string | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
export type NpmInput = RegistryScriptInput<typeof NpmOptions>;
|
|
14
|
-
export declare function useScriptNpm<T extends Record<string | symbol, any>>(_options: NpmInput):
|
|
15
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
16
|
-
};
|
|
14
|
+
export declare function useScriptNpm<T extends Record<string | symbol, any>>(_options: NpmInput): any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
2
|
export declare const PlausibleAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
3
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">)[], "
|
|
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
5
|
}, undefined, {
|
|
6
6
|
domain: string;
|
|
7
|
-
extension?: "
|
|
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
8
|
}>;
|
|
9
9
|
export type PlausibleAnalyticsInput = RegistryScriptInput<typeof PlausibleAnalyticsOptions, false>;
|
|
10
10
|
export interface PlausibleAnalyticsApi {
|
|
@@ -17,6 +17,4 @@ declare global {
|
|
|
17
17
|
plausible: PlausibleAnalyticsApi;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
export declare function useScriptPlausibleAnalytics<T extends PlausibleAnalyticsApi>(_options?: PlausibleAnalyticsInput):
|
|
21
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
22
|
-
};
|
|
20
|
+
export declare function useScriptPlausibleAnalytics<T extends PlausibleAnalyticsApi>(_options?: PlausibleAnalyticsInput): any;
|
|
@@ -33,7 +33,5 @@ declare global {
|
|
|
33
33
|
interface Window extends SegmentApi {
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export declare function useScriptSegment<T extends SegmentApi>(_options?: SegmentInput):
|
|
37
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
38
|
-
};
|
|
36
|
+
export declare function useScriptSegment<T extends SegmentApi>(_options?: SegmentInput): any;
|
|
39
37
|
export {};
|
|
@@ -13,6 +13,4 @@ declare global {
|
|
|
13
13
|
interface Window extends StripeApi {
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export declare function useScriptStripe<T extends StripeApi>(_options?: StripeInput):
|
|
17
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
18
|
-
};
|
|
16
|
+
export declare function useScriptStripe<T extends StripeApi>(_options?: StripeInput): any;
|
|
@@ -10,7 +10,5 @@ declare global {
|
|
|
10
10
|
interface Window extends VimeoPlayerApi {
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
export declare function useScriptVimeoPlayer<T extends VimeoPlayerApi>(_options?: VimeoPlayerInput):
|
|
14
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
15
|
-
};
|
|
13
|
+
export declare function useScriptVimeoPlayer<T extends VimeoPlayerApi>(_options?: VimeoPlayerInput): any;
|
|
16
14
|
export {};
|
|
@@ -35,7 +35,5 @@ export declare const XPixelOptions: import("valibot").ObjectSchema<{
|
|
|
35
35
|
version?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
export type XPixelInput = RegistryScriptInput<typeof XPixelOptions>;
|
|
38
|
-
export declare function useScriptXPixel<T extends XPixelApi>(_options?: XPixelInput):
|
|
39
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
40
|
-
};
|
|
38
|
+
export declare function useScriptXPixel<T extends XPixelApi>(_options?: XPixelInput): any;
|
|
41
39
|
export {};
|
|
@@ -11,6 +11,4 @@ declare global {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
export type YouTubePlayerInput = RegistryScriptInput;
|
|
14
|
-
export declare function useScriptYouTubePlayer<T extends YouTubePlayerApi>(_options: YouTubePlayerInput):
|
|
15
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
16
|
-
};
|
|
14
|
+
export declare function useScriptYouTubePlayer<T extends YouTubePlayerApi>(_options: YouTubePlayerInput): any;
|
package/dist/runtime/utils.d.ts
CHANGED
|
@@ -8,7 +8,5 @@ type OptionsFn<O extends ObjectSchema<any>> = (options: Input<O>) => ({
|
|
|
8
8
|
clientInit?: () => void;
|
|
9
9
|
});
|
|
10
10
|
export declare function scriptRuntimeConfig<T extends keyof ScriptRegistry>(key: T): ScriptRegistry[T];
|
|
11
|
-
export declare function useRegistryScript<T extends Record<string | symbol, any>, O extends ObjectSchema<any> = EmptyOptionsSchema>(key: keyof ScriptRegistry | string, optionsFn: OptionsFn<O>, _userOptions?: RegistryScriptInput<O>):
|
|
12
|
-
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
13
|
-
};
|
|
11
|
+
export declare function useRegistryScript<T extends Record<string | symbol, any>, O extends ObjectSchema<any> = EmptyOptionsSchema>(key: keyof ScriptRegistry | string, optionsFn: OptionsFn<O>, _userOptions?: RegistryScriptInput<O>): any;
|
|
14
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/scripts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
|
+
"packageManager": "pnpm@9.1.1",
|
|
5
6
|
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
|
|
6
7
|
"author": {
|
|
7
8
|
"website": "https://harlanzw.com",
|
|
@@ -32,6 +33,21 @@
|
|
|
32
33
|
"files": [
|
|
33
34
|
"dist"
|
|
34
35
|
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "pnpm prepack",
|
|
38
|
+
"client:build": "nuxi generate client",
|
|
39
|
+
"client:dev": "nuxi dev client --port 3300",
|
|
40
|
+
"prepack": "nuxt-module-build build && npm run client:build",
|
|
41
|
+
"dev": "nuxi dev playground",
|
|
42
|
+
"dev:ssl": "nuxi dev playground --https",
|
|
43
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
44
|
+
"typecheck": "pnpm dlx vue-tsc --noEmit",
|
|
45
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
46
|
+
"lint": "eslint .",
|
|
47
|
+
"lint:fix": "eslint . --fix",
|
|
48
|
+
"test": "vitest",
|
|
49
|
+
"test:types": "npx nuxi typecheck"
|
|
50
|
+
},
|
|
35
51
|
"build": {
|
|
36
52
|
"externals": [
|
|
37
53
|
"@unhead/vue",
|
|
@@ -79,6 +95,7 @@
|
|
|
79
95
|
"@unhead/schema": "^1.9.10",
|
|
80
96
|
"acorn-loose": "^8.4.0",
|
|
81
97
|
"bumpp": "^9.4.1",
|
|
98
|
+
"changelogen": "^0.5.5",
|
|
82
99
|
"eslint": "9.2.0",
|
|
83
100
|
"nuxt": "^3.11.2",
|
|
84
101
|
"playwright-core": "^1.44.0",
|
|
@@ -93,19 +110,5 @@
|
|
|
93
110
|
"nuxt-scripts-devtools": "workspace:*",
|
|
94
111
|
"vue": "^3.4.27",
|
|
95
112
|
"vue-router": "^4.3.2"
|
|
96
|
-
},
|
|
97
|
-
"scripts": {
|
|
98
|
-
"build": "pnpm prepack",
|
|
99
|
-
"client:build": "nuxi generate client",
|
|
100
|
-
"client:dev": "nuxi dev client --port 3300",
|
|
101
|
-
"dev": "nuxi dev playground",
|
|
102
|
-
"dev:ssl": "nuxi dev playground --https",
|
|
103
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
104
|
-
"typecheck": "pnpm dlx vue-tsc --noEmit",
|
|
105
|
-
"release": "pnpm build && bumpp && pnpm publish --no-git-checks",
|
|
106
|
-
"lint": "eslint .",
|
|
107
|
-
"lint:fix": "eslint . --fix",
|
|
108
|
-
"test": "vitest",
|
|
109
|
-
"test:types": "npx nuxi typecheck"
|
|
110
113
|
}
|
|
111
|
-
}
|
|
114
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"f37c599d-d78f-4a74-8eda-256234cbc028","timestamp":1715993911119,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|