@nuxt/scripts 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +13 -13
- package/dist/client/404.html +13 -13
- package/dist/client/_nuxt/{D6NljDpC.js → BigF1UXR.js} +1 -1
- package/dist/client/_nuxt/Bn0B8vkx.js +1 -0
- package/dist/client/_nuxt/BvCdDh2R.js +1 -0
- package/dist/client/_nuxt/BvlfuC5v.js +31 -0
- package/dist/client/_nuxt/{DlIksfW-.js → DMNuDhJC.js} +1 -1
- package/dist/client/_nuxt/DOHBU7tp.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ed70e2f7-3856-4e68-bd3e-1ebb17fef5ec.json +1 -0
- package/dist/client/_nuxt/entry.8LvBfYHJ.css +1 -0
- package/dist/client/_nuxt/error-404.Dbi768NS.css +1 -0
- package/dist/client/_nuxt/error-500.C23YdqXl.css +1 -0
- package/dist/client/_nuxt/{D1scAvq1.js → jmWmhCGR.js} +1 -1
- package/dist/client/index.html +13 -13
- package/dist/module.d.mts +7 -2
- package/dist/module.d.ts +7 -2
- package/dist/module.json +2 -2
- package/dist/module.mjs +172 -1
- package/dist/registry.mjs +13 -24
- package/dist/runtime/components/ScriptGoogleMaps.vue +1 -1
- package/dist/runtime/components/ScriptVimeoPlayer.vue +3 -6
- package/dist/runtime/composables/useAnalyticsPageEvent.d.ts +1 -4
- package/dist/runtime/registry/clarity.d.ts +44 -0
- package/dist/runtime/registry/clarity.js +30 -0
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +3 -6
- package/dist/runtime/registry/cloudflare-web-analytics.js +2 -2
- package/dist/runtime/registry/fathom-analytics.d.ts +6 -12
- package/dist/runtime/registry/google-adsense.d.ts +2 -4
- package/dist/runtime/registry/google-maps.d.ts +9 -10
- package/dist/runtime/registry/hotjar.d.ts +3 -6
- package/dist/runtime/registry/intercom.d.ts +11 -20
- package/dist/runtime/registry/matomo-analytics.d.ts +5 -10
- package/dist/runtime/registry/meta-pixel.d.ts +2 -4
- package/dist/runtime/registry/npm.d.ts +5 -10
- package/dist/runtime/registry/plausible-analytics.d.ts +3 -6
- package/dist/runtime/registry/segment.d.ts +3 -6
- package/dist/runtime/registry/stripe.d.ts +2 -4
- package/dist/runtime/registry/vimeo-player.d.ts +2 -1
- package/dist/runtime/registry/x-pixel.d.ts +3 -6
- package/dist/runtime/types.d.ts +7 -7
- package/dist/runtime/utils.d.ts +3 -3
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +23 -19
- package/dist/client/_nuxt/B6ZnTe72.js +0 -1
- package/dist/client/_nuxt/BiqB0nem.js +0 -1
- package/dist/client/_nuxt/DLqnee19.js +0 -31
- package/dist/client/_nuxt/MN12aA4C.js +0 -1
- package/dist/client/_nuxt/builds/meta/61606605-2b9b-4c09-af9e-a2967178a4b4.json +0 -1
- package/dist/client/_nuxt/entry.D91GVkD7.css +0 -1
- package/dist/client/_nuxt/error-404.BRldFSII.css +0 -1
- package/dist/client/_nuxt/error-500.D8yw_IbC.css +0 -1
- package/dist/runtime/registry/google-analytics.d.ts +0 -23
- package/dist/runtime/registry/google-analytics.js +0 -38
- package/dist/runtime/registry/google-tag-manager.d.ts +0 -21
- package/dist/runtime/registry/google-tag-manager.js +0 -30
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useRegistryScript } from "../utils.js";
|
|
2
|
+
import { minLength, object, string, pipe } from "#nuxt-scripts-validator";
|
|
3
|
+
export const ClarityOptions = object({
|
|
4
|
+
/**
|
|
5
|
+
* The Clarity token.
|
|
6
|
+
*/
|
|
7
|
+
id: pipe(string(), minLength(10))
|
|
8
|
+
});
|
|
9
|
+
export function useScriptClarity(_options) {
|
|
10
|
+
return useRegistryScript(
|
|
11
|
+
"clarity",
|
|
12
|
+
(options) => ({
|
|
13
|
+
scriptInput: {
|
|
14
|
+
src: `https://www.clarity.ms/tag/${options.id}`
|
|
15
|
+
},
|
|
16
|
+
schema: import.meta.dev ? ClarityOptions : void 0,
|
|
17
|
+
scriptOptions: {
|
|
18
|
+
use() {
|
|
19
|
+
return { clarity: window.clarity };
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
clientInit: import.meta.server ? void 0 : () => {
|
|
23
|
+
window.clarity = window.clarity || function(...params) {
|
|
24
|
+
(window.clarity.q = window.clarity.q || []).push(params);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}),
|
|
28
|
+
_options
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -20,18 +20,15 @@ export declare const CloudflareWebAnalyticsOptions: import("valibot").ObjectSche
|
|
|
20
20
|
/**
|
|
21
21
|
* The Cloudflare Web Analytics token.
|
|
22
22
|
*/
|
|
23
|
-
token: import("valibot").StringSchema<string>;
|
|
23
|
+
readonly token: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 32, undefined>]>;
|
|
24
24
|
/**
|
|
25
25
|
* Cloudflare Web Analytics enables measuring SPAs automatically by overriding the History API’s pushState function
|
|
26
26
|
* and listening to the onpopstate. Hash-based router is not supported.
|
|
27
27
|
*
|
|
28
28
|
* @default true
|
|
29
29
|
*/
|
|
30
|
-
spa: import("valibot").OptionalSchema<import("valibot").BooleanSchema<
|
|
31
|
-
}, undefined
|
|
32
|
-
token: string;
|
|
33
|
-
spa?: boolean | undefined;
|
|
34
|
-
}>;
|
|
30
|
+
readonly spa: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
31
|
+
}, undefined>;
|
|
35
32
|
export type CloudflareWebAnalyticsInput = RegistryScriptInput<typeof CloudflareWebAnalyticsOptions>;
|
|
36
33
|
export declare function useScriptCloudflareWebAnalytics<T extends CloudflareWebAnalyticsApi>(_options?: CloudflareWebAnalyticsInput): T & {
|
|
37
34
|
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useRegistryScript } from "../utils.js";
|
|
2
|
-
import { boolean, minLength, object, optional, string } from "#nuxt-scripts-validator";
|
|
2
|
+
import { boolean, minLength, object, optional, pipe, string } from "#nuxt-scripts-validator";
|
|
3
3
|
export const CloudflareWebAnalyticsOptions = object({
|
|
4
4
|
/**
|
|
5
5
|
* The Cloudflare Web Analytics token.
|
|
6
6
|
*/
|
|
7
|
-
token: string(
|
|
7
|
+
token: pipe(string(), minLength(32)),
|
|
8
8
|
/**
|
|
9
9
|
* Cloudflare Web Analytics enables measuring SPAs automatically by overriding the History API’s pushState function
|
|
10
10
|
* and listening to the onpopstate. Hash-based router is not supported.
|
|
@@ -3,30 +3,24 @@ export declare const FathomAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
|
3
3
|
/**
|
|
4
4
|
* The Fathom Analytics site ID.
|
|
5
5
|
*/
|
|
6
|
-
site: import("valibot").StringSchema<
|
|
6
|
+
readonly site: import("valibot").StringSchema<undefined>;
|
|
7
7
|
/**
|
|
8
8
|
* The Fathom Analytics tracking mode.
|
|
9
9
|
*/
|
|
10
|
-
spa: import("valibot").OptionalSchema<import("valibot").UnionSchema<
|
|
10
|
+
readonly spa: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"auto", undefined>, import("valibot").LiteralSchema<"history", undefined>, import("valibot").LiteralSchema<"hash", undefined>], undefined>, never>;
|
|
11
11
|
/**
|
|
12
12
|
* Automatically track page views.
|
|
13
13
|
*/
|
|
14
|
-
auto: import("valibot").OptionalSchema<import("valibot").BooleanSchema<
|
|
14
|
+
readonly auto: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
15
15
|
/**
|
|
16
16
|
* Enable canonical URL tracking.
|
|
17
17
|
*/
|
|
18
|
-
canonical: import("valibot").OptionalSchema<import("valibot").BooleanSchema<
|
|
18
|
+
readonly canonical: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
19
19
|
/**
|
|
20
20
|
* Honor Do Not Track requests.
|
|
21
21
|
*/
|
|
22
|
-
honorDnt: import("valibot").OptionalSchema<import("valibot").BooleanSchema<
|
|
23
|
-
}, undefined
|
|
24
|
-
site: string;
|
|
25
|
-
spa?: "auto" | "history" | "hash" | undefined;
|
|
26
|
-
auto?: boolean | undefined;
|
|
27
|
-
canonical?: boolean | undefined;
|
|
28
|
-
honorDnt?: boolean | undefined;
|
|
29
|
-
}>;
|
|
22
|
+
readonly honorDnt: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
23
|
+
}, undefined>;
|
|
30
24
|
export type FathomAnalyticsInput = RegistryScriptInput<typeof FathomAnalyticsOptions, false>;
|
|
31
25
|
export interface FathomAnalyticsApi {
|
|
32
26
|
beacon: (ctx: {
|
|
@@ -3,10 +3,8 @@ export declare const GoogleAdsenseOptions: import("valibot").ObjectSchema<{
|
|
|
3
3
|
/**
|
|
4
4
|
* The Google Adsense ID.
|
|
5
5
|
*/
|
|
6
|
-
client: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
7
|
-
}, undefined
|
|
8
|
-
client?: string | undefined;
|
|
9
|
-
}>;
|
|
6
|
+
readonly client: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
7
|
+
}, undefined>;
|
|
10
8
|
export type GoogleAdsenseInput = RegistryScriptInput<typeof GoogleAdsenseOptions>;
|
|
11
9
|
export interface GoogleAdsenseApi {
|
|
12
10
|
/**
|
|
@@ -8,21 +8,20 @@ declare namespace google {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare const GoogleMapsOptions: import("valibot").ObjectSchema<{
|
|
11
|
-
apiKey: import("valibot").StringSchema<
|
|
12
|
-
libraries: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<
|
|
13
|
-
v: import("valibot").OptionalSchema<import("valibot").UnionSchema<
|
|
14
|
-
}, undefined
|
|
15
|
-
apiKey: string;
|
|
16
|
-
libraries?: string[] | undefined;
|
|
17
|
-
v?: "weekly" | "beta" | "alpha" | undefined;
|
|
18
|
-
}>;
|
|
11
|
+
readonly apiKey: import("valibot").StringSchema<undefined>;
|
|
12
|
+
readonly libraries: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, never>;
|
|
13
|
+
readonly v: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"weekly", undefined>, import("valibot").LiteralSchema<"beta", undefined>, import("valibot").LiteralSchema<"alpha", undefined>], undefined>, never>;
|
|
14
|
+
}, undefined>;
|
|
19
15
|
export type GoogleMapsInput = RegistryScriptInput<typeof GoogleMapsOptions>;
|
|
16
|
+
type MapsNamespace = typeof google.maps;
|
|
20
17
|
export interface GoogleMapsApi {
|
|
21
|
-
maps:
|
|
18
|
+
maps: MapsNamespace | Promise<MapsNamespace>;
|
|
22
19
|
}
|
|
23
20
|
declare global {
|
|
24
21
|
interface Window {
|
|
25
|
-
google:
|
|
22
|
+
google: {
|
|
23
|
+
maps: MapsNamespace;
|
|
24
|
+
};
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
export declare function useScriptGoogleMaps<T extends GoogleMapsApi>(_options?: GoogleMapsInput): T & {
|
|
@@ -13,12 +13,9 @@ declare global {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
export declare const HotjarOptions: import("valibot").ObjectSchema<{
|
|
16
|
-
id: import("valibot").NumberSchema<
|
|
17
|
-
sv: import("valibot").OptionalSchema<import("valibot").NumberSchema<
|
|
18
|
-
}, undefined
|
|
19
|
-
id: number;
|
|
20
|
-
sv?: number | undefined;
|
|
21
|
-
}>;
|
|
16
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
17
|
+
readonly sv: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, never>;
|
|
18
|
+
}, undefined>;
|
|
22
19
|
export type HotjarInput = RegistryScriptInput<typeof HotjarOptions>;
|
|
23
20
|
export declare function useScriptHotjar<T extends HotjarApi>(_options?: HotjarInput): T & {
|
|
24
21
|
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type InferInput } from '#nuxt-scripts-validator';
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
3
|
export declare const IntercomOptions: import("valibot").ObjectSchema<{
|
|
4
|
-
app_id: import("valibot").StringSchema<
|
|
5
|
-
api_base: import("valibot").OptionalSchema<import("valibot").UnionSchema<
|
|
6
|
-
name: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
7
|
-
email: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
8
|
-
user_id: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
9
|
-
alignment: import("valibot").OptionalSchema<import("valibot").UnionSchema<
|
|
10
|
-
horizontal_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<
|
|
11
|
-
vertical_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<
|
|
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
|
-
}>;
|
|
4
|
+
readonly app_id: import("valibot").StringSchema<undefined>;
|
|
5
|
+
readonly api_base: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"https://api-iam.intercom.io", undefined>, import("valibot").LiteralSchema<"https://api-iam.eu.intercom.io", undefined>, import("valibot").LiteralSchema<"https://api-iam.au.intercom.io", undefined>], undefined>, never>;
|
|
6
|
+
readonly name: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
7
|
+
readonly email: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
8
|
+
readonly user_id: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
9
|
+
readonly alignment: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"left", undefined>, import("valibot").LiteralSchema<"right", undefined>], undefined>, never>;
|
|
10
|
+
readonly horizontal_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, never>;
|
|
11
|
+
readonly vertical_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, never>;
|
|
12
|
+
}, undefined>;
|
|
22
13
|
export type IntercomInput = RegistryScriptInput<typeof IntercomOptions>;
|
|
23
14
|
export interface IntercomApi {
|
|
24
|
-
Intercom: ((event: 'boot', data?:
|
|
15
|
+
Intercom: ((event: 'boot', data?: InferInput<typeof IntercomOptions>) => void) & ((event: 'shutdown') => void) & ((event: 'update', options?: InferInput<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);
|
|
25
16
|
}
|
|
26
17
|
declare global {
|
|
27
18
|
interface Window extends IntercomApi {
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
2
|
export declare const MatomoAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
3
|
-
matomoUrl: import("valibot").StringSchema<
|
|
4
|
-
siteId: import("valibot").StringSchema<
|
|
5
|
-
trackPageView: import("valibot").OptionalSchema<import("valibot").BooleanSchema<
|
|
6
|
-
enableLinkTracking: import("valibot").OptionalSchema<import("valibot").BooleanSchema<
|
|
7
|
-
}, undefined
|
|
8
|
-
matomoUrl: string;
|
|
9
|
-
siteId: string;
|
|
10
|
-
trackPageView?: boolean | undefined;
|
|
11
|
-
enableLinkTracking?: boolean | undefined;
|
|
12
|
-
}>;
|
|
3
|
+
readonly matomoUrl: import("valibot").StringSchema<undefined>;
|
|
4
|
+
readonly siteId: import("valibot").StringSchema<undefined>;
|
|
5
|
+
readonly trackPageView: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
6
|
+
readonly enableLinkTracking: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
7
|
+
}, undefined>;
|
|
13
8
|
export type MatomoAnalyticsInput = RegistryScriptInput<typeof MatomoAnalyticsOptions, false>;
|
|
14
9
|
interface MatomoAnalyticsApi {
|
|
15
10
|
_paq: unknown[];
|
|
@@ -33,10 +33,8 @@ declare global {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
export declare const MetaPixelOptions: import("valibot").ObjectSchema<{
|
|
36
|
-
id: import("valibot").UnionSchema<
|
|
37
|
-
}, undefined
|
|
38
|
-
id: string | number;
|
|
39
|
-
}>;
|
|
36
|
+
readonly id: import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>;
|
|
37
|
+
}, undefined>;
|
|
40
38
|
export type MetaPixelInput = RegistryScriptInput<typeof MetaPixelOptions>;
|
|
41
39
|
export declare function useScriptMetaPixel<T extends MetaPixelApi>(_options?: MetaPixelInput): T & {
|
|
42
40
|
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
2
|
export declare const NpmOptions: import("valibot").ObjectSchema<{
|
|
3
|
-
packageName: import("valibot").StringSchema<
|
|
4
|
-
file: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
5
|
-
version: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
6
|
-
type: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
7
|
-
}, undefined
|
|
8
|
-
packageName: string;
|
|
9
|
-
file?: string | undefined;
|
|
10
|
-
version?: string | undefined;
|
|
11
|
-
type?: string | undefined;
|
|
12
|
-
}>;
|
|
3
|
+
readonly packageName: import("valibot").StringSchema<undefined>;
|
|
4
|
+
readonly file: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
5
|
+
readonly version: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
6
|
+
readonly type: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
7
|
+
}, undefined>;
|
|
13
8
|
export type NpmInput = RegistryScriptInput<typeof NpmOptions>;
|
|
14
9
|
export declare function useScriptNpm<T extends Record<string | symbol, any>>(_options: NpmInput): T & {
|
|
15
10
|
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
2
|
export declare const PlausibleAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
3
|
-
domain: import("valibot").StringSchema<
|
|
4
|
-
extension: import("valibot").OptionalSchema<import("valibot").UnionSchema<
|
|
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
|
-
}>;
|
|
3
|
+
readonly domain: import("valibot").StringSchema<undefined>;
|
|
4
|
+
readonly extension: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").UnionSchema<(import("valibot").LiteralSchema<"hash", undefined> | import("valibot").LiteralSchema<"outbound-links", undefined> | import("valibot").LiteralSchema<"file-downloads", undefined> | import("valibot").LiteralSchema<"tagged-events", undefined> | import("valibot").LiteralSchema<"revenue", undefined> | import("valibot").LiteralSchema<"pageview-props", undefined> | import("valibot").LiteralSchema<"compat", undefined> | import("valibot").LiteralSchema<"local", undefined> | import("valibot").LiteralSchema<"manual", undefined>)[], undefined>, import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"hash", undefined> | import("valibot").LiteralSchema<"outbound-links", undefined> | import("valibot").LiteralSchema<"file-downloads", undefined> | import("valibot").LiteralSchema<"tagged-events", undefined> | import("valibot").LiteralSchema<"revenue", undefined> | import("valibot").LiteralSchema<"pageview-props", undefined> | import("valibot").LiteralSchema<"compat", undefined> | import("valibot").LiteralSchema<"local", undefined> | import("valibot").LiteralSchema<"manual", undefined>)[], undefined>, undefined>], undefined>, never>;
|
|
5
|
+
}, undefined>;
|
|
9
6
|
export type PlausibleAnalyticsInput = RegistryScriptInput<typeof PlausibleAnalyticsOptions, false>;
|
|
10
7
|
export interface PlausibleAnalyticsApi {
|
|
11
8
|
plausible: ((event: '404', options: Record<string, any>) => void) & ((event: 'event', options: Record<string, any>) => void) & ((...params: any[]) => void) & {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
2
|
export declare const SegmentOptions: import("valibot").ObjectSchema<{
|
|
3
|
-
writeKey: import("valibot").StringSchema<
|
|
4
|
-
analyticsKey: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
5
|
-
}, undefined
|
|
6
|
-
writeKey: string;
|
|
7
|
-
analyticsKey?: string | undefined;
|
|
8
|
-
}>;
|
|
3
|
+
readonly writeKey: import("valibot").StringSchema<undefined>;
|
|
4
|
+
readonly analyticsKey: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
5
|
+
}, undefined>;
|
|
9
6
|
export type SegmentInput = RegistryScriptInput<typeof SegmentOptions>;
|
|
10
7
|
interface AnalyticsApi {
|
|
11
8
|
track: (event: string, properties?: Record<string, any>) => void;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="stripe-v3" />
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
3
|
export declare const StripeOptions: import("valibot").ObjectSchema<{
|
|
4
|
-
advancedFraudSignals: import("valibot").OptionalSchema<import("valibot").BooleanSchema<
|
|
5
|
-
}, undefined
|
|
6
|
-
advancedFraudSignals?: boolean | undefined;
|
|
7
|
-
}>;
|
|
4
|
+
readonly advancedFraudSignals: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>;
|
|
5
|
+
}, undefined>;
|
|
8
6
|
export type StripeInput = RegistryScriptInput<typeof StripeOptions, false>;
|
|
9
7
|
export interface StripeApi {
|
|
10
8
|
Stripe: stripe.StripeStatic;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type Vimeo from 'vimeo__player';
|
|
1
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
3
|
type Constructor<T extends new (...args: any) => any> = T extends new (...args: infer A) => infer R ? new (...args: A) => R : never;
|
|
3
4
|
export interface VimeoPlayerApi {
|
|
4
5
|
Vimeo: {
|
|
5
|
-
Player: Constructor<typeof
|
|
6
|
+
Player: Constructor<typeof Vimeo>;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
9
|
export type VimeoPlayerInput = RegistryScriptInput;
|
|
@@ -28,12 +28,9 @@ declare global {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
export declare const XPixelOptions: import("valibot").ObjectSchema<{
|
|
31
|
-
id: import("valibot").StringSchema<
|
|
32
|
-
version: import("valibot").OptionalSchema<import("valibot").StringSchema<
|
|
33
|
-
}, undefined
|
|
34
|
-
id: string;
|
|
35
|
-
version?: string | undefined;
|
|
36
|
-
}>;
|
|
31
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
32
|
+
readonly version: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, never>;
|
|
33
|
+
}, undefined>;
|
|
37
34
|
export type XPixelInput = RegistryScriptInput<typeof XPixelOptions>;
|
|
38
35
|
export declare function useScriptXPixel<T extends XPixelApi>(_options?: XPixelInput): T & {
|
|
39
36
|
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UseScriptOptions } from '@unhead/schema';
|
|
2
2
|
import type { UseScriptInput, VueScriptInstance } from '@unhead/vue';
|
|
3
3
|
import type { ComputedRef, Ref } from 'vue';
|
|
4
|
-
import type {
|
|
4
|
+
import type { InferInput, ObjectSchema } from 'valibot';
|
|
5
5
|
import type { Import } from 'unimport';
|
|
6
6
|
import type { SegmentInput } from './registry/segment.js';
|
|
7
7
|
import type { CloudflareWebAnalyticsInput } from './registry/cloudflare-web-analytics.js';
|
|
@@ -9,9 +9,7 @@ import type { MetaPixelInput } from './registry/meta-pixel.js';
|
|
|
9
9
|
import type { FathomAnalyticsInput } from './registry/fathom-analytics.js';
|
|
10
10
|
import type { HotjarInput } from './registry/hotjar.js';
|
|
11
11
|
import type { IntercomInput } from './registry/intercom.js';
|
|
12
|
-
import type { GoogleAnalyticsInput } from './registry/google-analytics.js';
|
|
13
12
|
import type { GoogleMapsInput } from './registry/google-maps.js';
|
|
14
|
-
import type { GoogleTagManagerInput } from './registry/google-tag-manager.js';
|
|
15
13
|
import type { MatomoAnalyticsInput } from './registry/matomo-analytics.js';
|
|
16
14
|
import type { StripeInput } from './registry/stripe.js';
|
|
17
15
|
import type { VimeoPlayerInput } from './registry/vimeo-player.js';
|
|
@@ -20,6 +18,8 @@ import type { YouTubePlayerInput } from './registry/youtube-player.js';
|
|
|
20
18
|
import type { PlausibleAnalyticsInput } from './registry/plausible-analytics.js';
|
|
21
19
|
import type { NpmInput } from './registry/npm.js';
|
|
22
20
|
import type { LemonSqueezyInput } from './registry/lemon-squeezy.js';
|
|
21
|
+
import type { InferInput as GoogleTagManagerInput } from '#build/nuxt-scripts/tpc/google-tag-manager';
|
|
22
|
+
import type { InferInput as GoogleAnalyticsInput } from '#build/nuxt-scripts/tpc/google-analytics';
|
|
23
23
|
export type NuxtUseScriptOptions<T = any> = Omit<UseScriptOptions<T>, 'trigger'> & {
|
|
24
24
|
/**
|
|
25
25
|
* The trigger to load the script:
|
|
@@ -94,15 +94,15 @@ export interface ScriptRegistry {
|
|
|
94
94
|
}
|
|
95
95
|
export type NuxtConfigScriptRegistryEntry<T> = true | 'mock' | T | [T, NuxtUseScriptOptions<T>];
|
|
96
96
|
export type NuxtConfigScriptRegistry<T extends keyof ScriptRegistry = keyof ScriptRegistry> = Partial<Record<T, NuxtConfigScriptRegistryEntry<ScriptRegistry[T]>>>;
|
|
97
|
-
declare const emptyOptions: ObjectSchema<{}, undefined
|
|
97
|
+
declare const emptyOptions: ObjectSchema<{}, undefined>;
|
|
98
98
|
export type EmptyOptionsSchema = typeof emptyOptions;
|
|
99
|
-
export type RegistryScriptInput<T extends ObjectSchema<any> = EmptyOptionsSchema, Bundelable extends boolean = true> =
|
|
99
|
+
export type RegistryScriptInput<T extends ObjectSchema<any, any> = EmptyOptionsSchema, Bundelable extends boolean = true> = InferInput<T> & {
|
|
100
100
|
scriptInput?: UseScriptInput;
|
|
101
101
|
scriptOptions?: Bundelable extends true ? Omit<NuxtUseScriptOptions, 'use'> : Omit<NuxtUseScriptOptions, 'bundle' | 'use'>;
|
|
102
102
|
};
|
|
103
103
|
export interface RegistryScript {
|
|
104
104
|
import?: Import;
|
|
105
|
-
scriptBundling?: false | ((options?: any) => string);
|
|
105
|
+
scriptBundling?: false | ((options?: any) => string | false);
|
|
106
106
|
label?: string;
|
|
107
107
|
src?: string | false;
|
|
108
108
|
category?: string;
|
|
@@ -111,6 +111,6 @@ export interface RegistryScript {
|
|
|
111
111
|
dark: string;
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
export type ElementScriptTrigger = 'immediate' | 'visible' |
|
|
114
|
+
export type ElementScriptTrigger = 'immediate' | 'visible' | string | string[] | false;
|
|
115
115
|
export type RegistryScripts = RegistryScript[];
|
|
116
116
|
export {};
|
package/dist/runtime/utils.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InferInput, ObjectSchema } from 'valibot';
|
|
2
2
|
import type { UseScriptInput, VueScriptInstance } from '@unhead/vue';
|
|
3
3
|
import type { EmptyOptionsSchema, NuxtUseScriptOptions, RegistryScriptInput, ScriptRegistry } from '#nuxt-scripts';
|
|
4
|
-
type OptionsFn<O extends ObjectSchema<any>> = (options:
|
|
4
|
+
type OptionsFn<O extends ObjectSchema<any, any>> = (options: InferInput<O>) => ({
|
|
5
5
|
scriptInput?: UseScriptInput;
|
|
6
6
|
scriptOptions?: NuxtUseScriptOptions;
|
|
7
7
|
schema?: 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>): T & {
|
|
11
|
+
export declare function useRegistryScript<T extends Record<string | symbol, any>, O extends ObjectSchema<any, any> = EmptyOptionsSchema>(key: keyof ScriptRegistry | string, optionsFn: OptionsFn<O>, _userOptions?: RegistryScriptInput<O>): T & {
|
|
12
12
|
$script: Promise<T> & VueScriptInstance<T>;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/scripts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "0.4.8",
|
|
5
|
+
"packageManager": "pnpm@9.3.0",
|
|
6
6
|
"description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
|
|
7
7
|
"author": {
|
|
8
8
|
"website": "https://harlanzw.com",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
45
45
|
"typecheck": "pnpm dlx vue-tsc --noEmit",
|
|
46
46
|
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
47
|
+
"release:minor": "npm run lint && npm run test && npm run prepack && changelogen --minor --release && npm publish && git push --follow-tags",
|
|
47
48
|
"lint": "eslint .",
|
|
48
49
|
"lint:fix": "eslint . --fix",
|
|
49
50
|
"test": "vitest",
|
|
@@ -54,63 +55,66 @@
|
|
|
54
55
|
"@unhead/vue",
|
|
55
56
|
"@unhead/schema",
|
|
56
57
|
"#nuxt-scripts",
|
|
57
|
-
"#nuxt-scripts-validator"
|
|
58
|
+
"#nuxt-scripts-validator",
|
|
59
|
+
"third-party-capital",
|
|
60
|
+
"knitwork"
|
|
58
61
|
]
|
|
59
62
|
},
|
|
60
63
|
"dependencies": {
|
|
61
|
-
"@nuxt/devtools-kit": "^1.3.
|
|
62
|
-
"@nuxt/devtools-ui-kit": "^1.3.
|
|
63
|
-
"@nuxt/kit": "^3.
|
|
64
|
+
"@nuxt/devtools-kit": "^1.3.3",
|
|
65
|
+
"@nuxt/devtools-ui-kit": "^1.3.3",
|
|
66
|
+
"@nuxt/kit": "^3.12.1",
|
|
64
67
|
"@types/google.maps": "^3.55.9",
|
|
65
68
|
"@types/stripe-v3": "^3.1.33",
|
|
66
69
|
"@types/vimeo__player": "^2.18.3",
|
|
67
70
|
"@types/youtube": "^0.0.50",
|
|
68
71
|
"@unhead/vue": "^1.9.12",
|
|
69
|
-
"@vueuse/core": "^10.10.
|
|
72
|
+
"@vueuse/core": "^10.10.1",
|
|
70
73
|
"consola": "^3.2.3",
|
|
71
74
|
"defu": "^6.1.4",
|
|
72
75
|
"estree-walker": "^3.0.3",
|
|
73
76
|
"h3": "^1.11.1",
|
|
74
77
|
"magic-string": "^0.30.10",
|
|
75
|
-
"mlly": "^1.7.
|
|
78
|
+
"mlly": "^1.7.1",
|
|
76
79
|
"ofetch": "^1.3.4",
|
|
77
80
|
"ohash": "^1.1.3",
|
|
78
81
|
"pathe": "^1.1.2",
|
|
79
82
|
"pkg-types": "^1.1.1",
|
|
80
83
|
"semver": "^7.6.2",
|
|
81
|
-
"shiki": "^1.6.
|
|
84
|
+
"shiki": "^1.6.4",
|
|
82
85
|
"sirv": "^2.0.4",
|
|
83
86
|
"std-env": "^3.7.0",
|
|
84
|
-
"third-party-capital": "^1.0.
|
|
87
|
+
"third-party-capital": "^1.0.30",
|
|
85
88
|
"ufo": "^1.5.3",
|
|
86
89
|
"unimport": "^3.7.2",
|
|
87
90
|
"unplugin": "^1.10.1",
|
|
88
91
|
"unstorage": "^1.10.2",
|
|
89
|
-
"valibot": "^0.
|
|
92
|
+
"valibot": "^0.31.1"
|
|
90
93
|
},
|
|
91
94
|
"devDependencies": {
|
|
92
|
-
"@
|
|
93
|
-
"@nuxt/
|
|
94
|
-
"@nuxt/module-builder": "^0.7.
|
|
95
|
+
"@nuxt/devtools-ui-kit": "^1.3.3",
|
|
96
|
+
"@nuxt/eslint-config": "^0.3.13",
|
|
97
|
+
"@nuxt/module-builder": "^0.7.1",
|
|
95
98
|
"@nuxt/test-utils": "3.13.1",
|
|
96
99
|
"@types/semver": "^7.5.8",
|
|
97
100
|
"@unhead/schema": "^1.9.12",
|
|
98
101
|
"acorn-loose": "^8.4.0",
|
|
99
102
|
"bumpp": "^9.4.1",
|
|
100
103
|
"changelogen": "^0.5.5",
|
|
101
|
-
"eslint": "9.
|
|
102
|
-
"
|
|
104
|
+
"eslint": "9.4.0",
|
|
105
|
+
"knitwork": "^1.1.0",
|
|
106
|
+
"nuxt": "^3.12.1",
|
|
103
107
|
"playwright-core": "^1.44.1",
|
|
104
108
|
"typescript": "^5.4.5",
|
|
105
109
|
"vitest": "^1.6.0",
|
|
106
110
|
"vue": "^3.4.27",
|
|
107
|
-
"vue-router": "^4.3.
|
|
111
|
+
"vue-router": "^4.3.3"
|
|
108
112
|
},
|
|
109
113
|
"resolutions": {
|
|
110
114
|
"@nuxt/scripts": "workspace:*",
|
|
111
|
-
"nuxt": "^3.
|
|
115
|
+
"nuxt": "^3.12.1",
|
|
112
116
|
"nuxt-scripts-devtools": "workspace:*",
|
|
113
117
|
"vue": "^3.4.27",
|
|
114
|
-
"vue-router": "^4.3.
|
|
118
|
+
"vue-router": "^4.3.3"
|
|
115
119
|
}
|
|
116
120
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=Object.freeze({displayName:"Pascal",fileTypes:["pas","p","pp","dfm","fmx","dpr","dpk","lfm","lpr"],name:"pascal",patterns:[{match:"\\b(?i:(absolute|abstract|add|all|and_then|array|as|asc|asm|assembler|async|attribute|autoreleasepool|await|begin|bindable|block|by|case|cdecl|class|concat|const|constref|copy|cppdecl|contains|default|delegate|deprecated|desc|distinct|div|each|else|empty|end|ensure|enum|equals|event|except|export|exports|extension|external|far|file|finalization|finalizer|finally|flags|forward|from|future|generic|goto|group|has|helper|if|implements|implies|import|in|index|inherited|initialization|inline|interrupt|into|invariants|is|iterator|label|library|join|lazy|lifetimestrategy|locked|locking|loop|mapped|matching|method|mod|module|name|namespace|near|nested|new|nostackframe|not|notify|nullable|object|of|old|oldfpccall|on|only|operator|optional|or_else|order|otherwise|out|override|package|packed|parallel|params|partial|pascal|pinned|platform|pow|private|program|protected|public|published|interface|implementation|qualified|queryable|raises|read|readonly|record|reference|register|remove|resident|require|requires|resourcestring|restricted|result|reverse|safecall|sealed|segment|select|selector|sequence|set|shl|shr|skip|specialize|soft|static|stored|stdcall|step|strict|strong|take|then|threadvar|to|try|tuple|type|unconstrained|unit|unmanaged|unretained|unsafe|uses|using|var|view|virtual|volatile|weak|dynamic|overload|reintroduce|where|with|write|xor|yield))\\b",name:"keyword.pascal"},{captures:{1:{name:"storage.type.prototype.pascal"},2:{name:"entity.name.function.prototype.pascal"}},match:"\\b(?i:(function|procedure|constructor|destructor))\\b\\s+(\\w+(\\.\\w+)?)(\\(.*?\\))?;\\s*(?=(?i:attribute|forward|external))",name:"meta.function.prototype.pascal"},{captures:{1:{name:"storage.type.function.pascal"},2:{name:"entity.name.function.pascal"}},match:"\\b(?i:(function|procedure|constructor|destructor|property|read|write))\\b\\s+(\\w+(\\.\\w+)?)",name:"meta.function.pascal"},{match:"\\b(?i:(self|result))\\b",name:"token.variable"},{match:"\\b(?i:(and|or))\\b",name:"keyword.operator.pascal"},{match:"\\b(?i:(break|continue|exit|abort|while|do|downto|for|raise|repeat|until))\\b",name:"keyword.control.pascal"},{begin:"\\{\\$",captures:{0:{name:"string.regexp"}},end:"\\}",name:"string.regexp"},{match:"\\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int8|int16|int32|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint8|uint16|uint32|uint64|variant|widechar|widestring|word|wordbool|uintptr|intptr))\\b",name:"storage.support.type.pascal"},{match:"\\b(\\d+)|(\\d*\\.\\d+([eE][\\-+]?\\d+)?)\\b",name:"constant.numeric.pascal"},{match:"\\$[0-9a-fA-F]{1,16}\\b",name:"constant.numeric.hex.pascal"},{match:"\\b(?i:(true|false|nil))\\b",name:"constant.language.pascal"},{match:"\\b(?i:(Assert))\\b",name:"keyword.control"},{begin:"(^[ \\t]+)?(?=//)",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.pascal"}},end:"(?!\\G)",patterns:[{begin:"//",beginCaptures:{0:{name:"punctuation.definition.comment.pascal"}},end:"\\n",name:"comment.line.double-slash.pascal.two"}]},{begin:"\\(\\*",captures:{0:{name:"punctuation.definition.comment.pascal"}},end:"\\*\\)",name:"comment.block.pascal.one"},{begin:"\\{(?!\\$)",captures:{0:{name:"punctuation.definition.comment.pascal"}},end:"\\}",name:"comment.block.pascal.two"},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.pascal"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.pascal"}},name:"string.quoted.single.pascal",patterns:[{match:"''",name:"constant.character.escape.apostrophe.pascal"}]},{match:"\\#\\d+",name:"string.other.pascal"}],scopeName:"source.pascal"});var a=[e];export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
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"./DLqnee19.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};
|