@nuxt/scripts 1.0.4 → 1.0.6

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.
Files changed (50) hide show
  1. package/dist/devtools-client/200.html +1 -1
  2. package/dist/devtools-client/404.html +1 -1
  3. package/dist/devtools-client/_nuxt/{DxyiGojb.js → CZp-OuKP.js} +1 -1
  4. package/dist/devtools-client/_nuxt/{13TuIchK.js → Djr8-0jV.js} +1 -1
  5. package/dist/devtools-client/_nuxt/DtB6K90V.js +188 -0
  6. package/dist/devtools-client/_nuxt/{C0p4l2Wy.js → DyyF3uw_.js} +1 -1
  7. package/dist/devtools-client/_nuxt/{CWELSfs5.js → GzJXdFDa.js} +1 -1
  8. package/dist/devtools-client/_nuxt/{32RpwIYg.js → W-xcwSaJ.js} +1 -1
  9. package/dist/devtools-client/_nuxt/{NMrm-PBR.js → YlRaZkPa.js} +1 -1
  10. package/dist/devtools-client/_nuxt/builds/latest.json +1 -1
  11. package/dist/devtools-client/_nuxt/builds/meta/57f43375-6c5e-40af-a5bc-9479e5286aac.json +1 -0
  12. package/dist/devtools-client/_nuxt/error-404.DsZYSkA7.css +1 -0
  13. package/dist/devtools-client/_nuxt/error-500.Cqipl6_j.css +1 -0
  14. package/dist/devtools-client/docs/index.html +1 -1
  15. package/dist/devtools-client/first-party/index.html +1 -1
  16. package/dist/devtools-client/index.html +1 -1
  17. package/dist/devtools-client/registry/index.html +1 -1
  18. package/dist/module.json +1 -1
  19. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.d.vue.ts +1 -1
  20. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue +18 -6
  21. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue.d.ts +1 -1
  22. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue +4 -2
  23. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsStaticMap.vue +1 -1
  24. package/dist/runtime/components/ScriptPayPalButtons.d.vue.ts +1 -1
  25. package/dist/runtime/components/ScriptPayPalButtons.vue.d.ts +1 -1
  26. package/dist/runtime/components/ScriptPayPalMessages.d.vue.ts +1 -1
  27. package/dist/runtime/components/ScriptPayPalMessages.vue.d.ts +1 -1
  28. package/dist/runtime/composables/useScript.js +1 -1
  29. package/dist/runtime/registry/google-analytics.js +6 -3
  30. package/dist/runtime/registry/google-recaptcha.js +1 -1
  31. package/dist/runtime/registry/google-sign-in.d.ts +27 -2
  32. package/dist/runtime/registry/google-sign-in.js +96 -1
  33. package/dist/runtime/registry/google-tag-manager.js +6 -3
  34. package/dist/runtime/registry/intercom.d.ts +1 -1
  35. package/dist/runtime/registry/paypal.d.ts +1 -1
  36. package/dist/runtime/registry/posthog.d.ts +1 -1
  37. package/dist/runtime/registry/schemas.d.ts +41 -6
  38. package/dist/runtime/registry/schemas.js +10 -5
  39. package/dist/runtime/registry/snapchat-pixel.d.ts +1 -1
  40. package/dist/runtime/registry/stripe.d.ts +1 -1
  41. package/dist/runtime/registry/vimeo-player.d.ts +1 -1
  42. package/dist/runtime/registry/youtube-player.d.ts +1 -1
  43. package/dist/runtime/types.d.ts +4 -0
  44. package/dist/runtime/utils.d.ts +1 -1
  45. package/dist/types-source.mjs +11 -6
  46. package/package.json +5 -5
  47. package/dist/devtools-client/_nuxt/BQOW0dqa.js +0 -188
  48. package/dist/devtools-client/_nuxt/builds/meta/41edb1f4-fb21-4848-be40-543a397dc212.json +0 -1
  49. package/dist/devtools-client/_nuxt/error-404.CmHnDJ22.css +0 -1
  50. package/dist/devtools-client/_nuxt/error-500.C0mC5XzU.css +0 -1
@@ -275,10 +275,12 @@ export declare const GoogleAnalyticsOptions: import("valibot").ObjectSchema<{
275
275
  */
276
276
  readonly l: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
277
277
  /**
278
- * Default GCMv2 consent state fired as `gtag('consent', 'default', ...)` before `gtag('js', ...)`.
279
- * @see https://developers.google.com/tag-platform/security/guides/consent
278
+ * Default GCMv2 consent state(s) fired as `gtag('consent', 'default', state)` before
279
+ * `gtag('js', ...)`. Pass an array to fire multiple defaults — for example, different
280
+ * defaults per `region` (more specific regions override broader ones at runtime).
281
+ * @see https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#region-specific-behavior
280
282
  */
281
- readonly defaultConsent: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
283
+ readonly defaultConsent: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
282
284
  readonly ad_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
283
285
  readonly ad_user_data: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
284
286
  readonly ad_personalization: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
@@ -288,7 +290,17 @@ export declare const GoogleAnalyticsOptions: import("valibot").ObjectSchema<{
288
290
  readonly security_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
289
291
  readonly wait_for_update: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
290
292
  readonly region: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
291
- }, undefined>, undefined>;
293
+ }, undefined>, import("valibot").ArraySchema<import("valibot").ObjectSchema<{
294
+ readonly ad_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
295
+ readonly ad_user_data: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
296
+ readonly ad_personalization: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
297
+ readonly analytics_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
298
+ readonly functionality_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
299
+ readonly personalization_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
300
+ readonly security_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
301
+ readonly wait_for_update: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
302
+ readonly region: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
303
+ }, undefined>, undefined>], undefined>, undefined>;
292
304
  }, undefined>;
293
305
  export declare const GoogleMapsOptions: import("valibot").ObjectSchema<{
294
306
  /**
@@ -441,10 +453,33 @@ export declare const GoogleTagManagerOptions: import("valibot").ObjectSchema<{
441
453
  /** Referrer policy for analytics requests */
442
454
  readonly authReferrerPolicy: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
443
455
  /**
444
- * Default consent settings for GTM
456
+ * Default GCMv2 consent state(s) fired as `['consent','default', state]` onto the dataLayer
457
+ * before the `gtm.js` event. Pass an array to fire multiple defaults — for example,
458
+ * different defaults per `region` (more specific regions override broader ones at runtime).
445
459
  * @see https://developers.google.com/tag-platform/tag-manager/templates/consent-apis
460
+ * @see https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#region-specific-behavior
446
461
  */
447
- readonly defaultConsent: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, undefined>;
462
+ readonly defaultConsent: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
463
+ readonly ad_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
464
+ readonly ad_user_data: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
465
+ readonly ad_personalization: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
466
+ readonly analytics_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
467
+ readonly functionality_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
468
+ readonly personalization_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
469
+ readonly security_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
470
+ readonly wait_for_update: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
471
+ readonly region: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
472
+ }, undefined>, import("valibot").ArraySchema<import("valibot").ObjectSchema<{
473
+ readonly ad_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
474
+ readonly ad_user_data: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
475
+ readonly ad_personalization: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
476
+ readonly analytics_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
477
+ readonly functionality_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
478
+ readonly personalization_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
479
+ readonly security_storage: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"granted", undefined>, import("valibot").LiteralSchema<"denied", undefined>], undefined>, undefined>;
480
+ readonly wait_for_update: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
481
+ readonly region: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
482
+ }, undefined>, undefined>], undefined>, undefined>;
448
483
  }, undefined>;
449
484
  export declare const HotjarOptions: import("valibot").ObjectSchema<{
450
485
  /**
@@ -285,10 +285,12 @@ export const GoogleAnalyticsOptions = object({
285
285
  */
286
286
  l: optional(string()),
287
287
  /**
288
- * Default GCMv2 consent state fired as `gtag('consent', 'default', ...)` before `gtag('js', ...)`.
289
- * @see https://developers.google.com/tag-platform/security/guides/consent
288
+ * Default GCMv2 consent state(s) fired as `gtag('consent', 'default', state)` before
289
+ * `gtag('js', ...)`. Pass an array to fire multiple defaults — for example, different
290
+ * defaults per `region` (more specific regions override broader ones at runtime).
291
+ * @see https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#region-specific-behavior
290
292
  */
291
- defaultConsent: optional(gcmConsentState)
293
+ defaultConsent: optional(union([gcmConsentState, array(gcmConsentState)]))
292
294
  });
293
295
  export const GoogleMapsOptions = object({
294
296
  /**
@@ -438,10 +440,13 @@ export const GoogleTagManagerOptions = object({
438
440
  /** Referrer policy for analytics requests */
439
441
  authReferrerPolicy: optional(string()),
440
442
  /**
441
- * Default consent settings for GTM
443
+ * Default GCMv2 consent state(s) fired as `['consent','default', state]` onto the dataLayer
444
+ * before the `gtm.js` event. Pass an array to fire multiple defaults — for example,
445
+ * different defaults per `region` (more specific regions override broader ones at runtime).
442
446
  * @see https://developers.google.com/tag-platform/tag-manager/templates/consent-apis
447
+ * @see https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#region-specific-behavior
443
448
  */
444
- defaultConsent: optional(record(string(), union([string(), number()])))
449
+ defaultConsent: optional(union([gcmConsentState, array(gcmConsentState)]))
445
450
  });
446
451
  export const HotjarOptions = object({
447
452
  /**
@@ -1,5 +1,5 @@
1
- import type { RegistryScriptInput } from '#nuxt-scripts/types';
2
1
  import type { InferInput } from 'valibot';
2
+ import type { RegistryScriptInput } from '#nuxt-scripts/types';
3
3
  import { InitObjectPropertiesSchema, SnapTrPixelOptions } from './schemas.js';
4
4
  export { InitObjectPropertiesSchema, SnapTrPixelOptions };
5
5
  type StandardEvents = 'PAGE_VIEW' | 'VIEW_CONTENT' | 'ADD_CART' | 'SIGN_UP' | 'SAVE' | 'START_CHECKOUT' | 'APP_OPEN' | 'ADD_BILLING' | 'SEARCH' | 'SUBSCRIBE' | 'AD_CLICK' | 'AD_VIEW' | 'COMPLETE_TUTORIAL' | 'LEVEL_COMPLETE' | 'INVITE' | 'LOGIN' | 'SHARE' | 'RESERVE' | 'ACHIEVEMENT_UNLOCKED' | 'ADD_TO_WISHLIST' | 'SPENT_CREDITS' | 'RATE' | 'START_TRIAL' | 'LIST_VIEW';
@@ -1,5 +1,5 @@
1
- import type { RegistryScriptInput } from '#nuxt-scripts/types';
2
1
  import type { StripeConstructor } from '@stripe/stripe-js';
2
+ import type { RegistryScriptInput } from '#nuxt-scripts/types';
3
3
  import { StripeOptions } from './schemas.js';
4
4
  export { StripeOptions };
5
5
  export type StripeInput = RegistryScriptInput<typeof StripeOptions, false>;
@@ -1,6 +1,6 @@
1
- import type { RegistryScriptInput } from '#nuxt-scripts/types';
2
1
  import type { UseScriptContext } from '@unhead/vue';
3
2
  import type Vimeo from '@vimeo/player';
3
+ import type { RegistryScriptInput } from '#nuxt-scripts/types';
4
4
  type Constructor<T extends new (...args: any) => any> = T extends new (...args: infer A) => infer R ? new (...args: A) => R : never;
5
5
  export interface VimeoPlayerApi {
6
6
  Vimeo: {
@@ -1,5 +1,5 @@
1
- import type { RegistryScriptInput } from '#nuxt-scripts/types';
2
1
  import type { UseScriptContext } from '@unhead/vue';
2
+ import type { RegistryScriptInput } from '#nuxt-scripts/types';
3
3
  import type { MaybePromise } from '../utils.js';
4
4
  export interface YouTubePlayerApi {
5
5
  YT: MaybePromise<{
@@ -61,6 +61,10 @@ export interface ConsentState {
61
61
  functionality_storage?: ConsentCategoryValue;
62
62
  personalization_storage?: ConsentCategoryValue;
63
63
  security_storage?: ConsentCategoryValue;
64
+ /** Region/subdivision codes (ISO 3166-1 alpha-2 or `XX-YY`) this default applies to. */
65
+ region?: string[];
66
+ /** Milliseconds to wait for `consent.update()` before firing queued tags. */
67
+ wait_for_update?: number;
64
68
  }
65
69
  export type UseScriptContext<T extends Record<symbol | string, any>, C = unknown> = VueScriptInstance<T> & {
66
70
  /**
@@ -1,6 +1,6 @@
1
- import type { EmptyOptionsSchema, InferIfSchema, NuxtUseScriptOptions, RegistryScriptInput, ScriptRegistry, UseFunctionType, UseScriptContext } from '#nuxt-scripts/types';
2
1
  import type { UseScriptInput } from '@unhead/vue';
3
2
  import type { ObjectSchema, UnionSchema } from 'valibot';
3
+ import type { EmptyOptionsSchema, InferIfSchema, NuxtUseScriptOptions, RegistryScriptInput, ScriptRegistry, UseFunctionType, UseScriptContext } from '#nuxt-scripts/types';
4
4
  export type MaybePromise<T> = Promise<T> | T;
5
5
  type OptionsFn<O> = (options: InferIfSchema<O>, ctx: {
6
6
  scriptInput?: UseScriptInput & {
@@ -259,7 +259,7 @@ const types = {
259
259
  {
260
260
  name: "GoogleAnalyticsOptions",
261
261
  kind: "const",
262
- code: "export const GoogleAnalyticsOptions = object({\n /**\n * The GA4 measurement ID.\n * @example 'G-XXXXXXXX'\n * @see https://developers.google.com/analytics/devguides/collection/gtagjs\n */\n id: optional(string()),\n /**\n * Global name for the dataLayer variable.\n * @default 'dataLayer'\n * @see https://developers.google.com/analytics/devguides/collection/gtagjs/setting-up-gtag#rename_the_data_layer\n */\n l: optional(string()),\n /**\n * Default GCMv2 consent state fired as `gtag('consent', 'default', ...)` before `gtag('js', ...)`.\n * @see https://developers.google.com/tag-platform/security/guides/consent\n */\n defaultConsent: optional(gcmConsentState),\n})"
262
+ code: "export const GoogleAnalyticsOptions = object({\n /**\n * The GA4 measurement ID.\n * @example 'G-XXXXXXXX'\n * @see https://developers.google.com/analytics/devguides/collection/gtagjs\n */\n id: optional(string()),\n /**\n * Global name for the dataLayer variable.\n * @default 'dataLayer'\n * @see https://developers.google.com/analytics/devguides/collection/gtagjs/setting-up-gtag#rename_the_data_layer\n */\n l: optional(string()),\n /**\n * Default GCMv2 consent state(s) fired as `gtag('consent', 'default', state)` before\n * `gtag('js', ...)`. Pass an array to fire multiple defaults — for example, different\n * defaults per `region` (more specific regions override broader ones at runtime).\n * @see https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#region-specific-behavior\n */\n defaultConsent: optional(union([gcmConsentState, array(gcmConsentState)])),\n})"
263
263
  },
264
264
  {
265
265
  name: "GoogleAnalyticsConsent",
@@ -451,6 +451,11 @@ const types = {
451
451
  name: "GoogleSignInOptions",
452
452
  kind: "const",
453
453
  code: "export const GoogleSignInOptions = object({\n /**\n * Your Google API client ID.\n * @example 'XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com'\n * @see https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid\n */\n clientId: string(),\n /**\n * Auto-select credentials when only one Google account is available.\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#auto_select\n */\n autoSelect: optional(boolean()),\n /**\n * The context text for the One Tap prompt.\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#context\n */\n context: optional(union([literal('signin'), literal('signup'), literal('use')])),\n /**\n * Enable FedCM (Federated Credential Management) API support. Mandatory from August 2025.\n * @see https://developers.google.com/identity/gsi/web/guides/fedcm-migration\n */\n useFedcmForPrompt: optional(boolean()),\n /**\n * Cancel the One Tap prompt if the user clicks outside.\n * @default true\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#cancel_on_tap_outside\n */\n cancelOnTapOutside: optional(boolean()),\n /**\n * The UX mode for the sign-in flow.\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#ux_mode\n */\n uxMode: optional(union([literal('popup'), literal('redirect')])),\n /**\n * The URI to redirect to after sign-in when using redirect UX mode.\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#login_uri\n */\n loginUri: optional(string()),\n /**\n * Enable Intelligent Tracking Prevention (ITP) support for Safari.\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#itp_support\n */\n itpSupport: optional(boolean()),\n /**\n * Allowed parent origin(s) for iframe embedding.\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#allowed_parent_origin\n */\n allowedParentOrigin: optional(union([string(), array(string())])),\n /**\n * Restrict sign-in to a specific Google Workspace hosted domain.\n * @example 'example.com'\n * @see https://developers.google.com/identity/gsi/web/reference/js-reference#hd\n */\n hd: optional(string()),\n})"
454
+ },
455
+ {
456
+ name: "GoogleSignInHelpers",
457
+ kind: "interface",
458
+ code: "export interface GoogleSignInHelpers {\n /**\n * Initialize Google Identity Services. Schema options are used as defaults;\n * pass a callback (and any other non-serializable config) here. Subsequent\n * calls are a no-op so this is safe to invoke from a remounting component.\n */\n initialize: (config?: Partial<IdConfiguration>) => void\n /**\n * Render a personalized Google Sign-In button. Auto-initializes if needed.\n * Safe to re-render on navigation or locale change.\n */\n renderButton: (parent: HTMLElement, config?: GsiButtonConfiguration) => void\n /**\n * Show the One Tap prompt. Auto-initializes if needed.\n */\n prompt: (listener?: (notification: MomentNotification) => void) => void\n}"
454
459
  }
455
460
  ],
456
461
  "google-tag-manager": [
@@ -497,7 +502,7 @@ const types = {
497
502
  {
498
503
  name: "GoogleTagManagerOptions",
499
504
  kind: "const",
500
- code: "export const GoogleTagManagerOptions = object({\n /**\n * GTM container ID (format: GTM-XXXXXX)\n * @see https://developers.google.com/tag-platform/tag-manager/web#install-the-container\n */\n id: string(),\n\n /**\n * Optional dataLayer variable name\n * @default 'dataLayer'\n * @see https://developers.google.com/tag-platform/tag-manager/web/datalayer#rename_the_data_layer\n */\n l: optional(string()),\n\n /**\n * Authentication token for environment-specific container versions\n * @see https://support.google.com/tagmanager/answer/6328337\n */\n auth: optional(string()),\n\n /**\n * Preview environment name\n * @see https://support.google.com/tagmanager/answer/6328337\n */\n preview: optional(string()),\n\n /** Forces GTM cookies to take precedence when true */\n cookiesWin: optional(union([boolean(), literal('x')])),\n\n /**\n * Enables debug mode when true\n * @see https://support.google.com/tagmanager/answer/6107056\n */\n debug: optional(union([boolean(), literal('x')])),\n\n /**\n * No Personal Advertising - disables advertising features when true\n * @see https://developers.google.com/tag-platform/tag-manager/templates/consent-apis\n */\n npa: optional(union([boolean(), literal('1')])),\n\n /** Custom dataLayer name (alternative to \"l\" property) */\n dataLayer: optional(string()),\n\n /**\n * Environment name for environment-specific container\n * @see https://support.google.com/tagmanager/answer/6328337\n */\n envName: optional(string()),\n\n /** Referrer policy for analytics requests */\n authReferrerPolicy: optional(string()),\n\n /**\n * Default consent settings for GTM\n * @see https://developers.google.com/tag-platform/tag-manager/templates/consent-apis\n */\n defaultConsent: optional(record(string(), union([string(), number()]))),\n})"
505
+ code: "export const GoogleTagManagerOptions = object({\n /**\n * GTM container ID (format: GTM-XXXXXX)\n * @see https://developers.google.com/tag-platform/tag-manager/web#install-the-container\n */\n id: string(),\n\n /**\n * Optional dataLayer variable name\n * @default 'dataLayer'\n * @see https://developers.google.com/tag-platform/tag-manager/web/datalayer#rename_the_data_layer\n */\n l: optional(string()),\n\n /**\n * Authentication token for environment-specific container versions\n * @see https://support.google.com/tagmanager/answer/6328337\n */\n auth: optional(string()),\n\n /**\n * Preview environment name\n * @see https://support.google.com/tagmanager/answer/6328337\n */\n preview: optional(string()),\n\n /** Forces GTM cookies to take precedence when true */\n cookiesWin: optional(union([boolean(), literal('x')])),\n\n /**\n * Enables debug mode when true\n * @see https://support.google.com/tagmanager/answer/6107056\n */\n debug: optional(union([boolean(), literal('x')])),\n\n /**\n * No Personal Advertising - disables advertising features when true\n * @see https://developers.google.com/tag-platform/tag-manager/templates/consent-apis\n */\n npa: optional(union([boolean(), literal('1')])),\n\n /** Custom dataLayer name (alternative to \"l\" property) */\n dataLayer: optional(string()),\n\n /**\n * Environment name for environment-specific container\n * @see https://support.google.com/tagmanager/answer/6328337\n */\n envName: optional(string()),\n\n /** Referrer policy for analytics requests */\n authReferrerPolicy: optional(string()),\n\n /**\n * Default GCMv2 consent state(s) fired as `['consent','default', state]` onto the dataLayer\n * before the `gtm.js` event. Pass an array to fire multiple defaults — for example,\n * different defaults per `region` (more specific regions override broader ones at runtime).\n * @see https://developers.google.com/tag-platform/tag-manager/templates/consent-apis\n * @see https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#region-specific-behavior\n */\n defaultConsent: optional(union([gcmConsentState, array(gcmConsentState)])),\n})"
501
506
  },
502
507
  {
503
508
  name: "GoogleTagManagerConsent",
@@ -1437,9 +1442,9 @@ const schemaFields = {
1437
1442
  },
1438
1443
  {
1439
1444
  name: "defaultConsent",
1440
- type: "unknown",
1445
+ type: "unknown | unknown[]",
1441
1446
  required: false,
1442
- description: "Default GCMv2 consent state fired as `gtag('consent', 'default', ...)` before `gtag('js', ...)`."
1447
+ description: "Default GCMv2 consent state(s) fired as `gtag('consent', 'default', state)` before `gtag('js', ...)`. Pass an array to fire multiple defaults — for example, different defaults per `region` (more specific regions override broader ones at runtime)."
1443
1448
  }
1444
1449
  ],
1445
1450
  GoogleMapsOptions: [
@@ -1626,9 +1631,9 @@ const schemaFields = {
1626
1631
  },
1627
1632
  {
1628
1633
  name: "defaultConsent",
1629
- type: "Record<string, string | number>",
1634
+ type: "unknown | unknown[]",
1630
1635
  required: false,
1631
- description: "Default consent settings for GTM"
1636
+ description: "Default GCMv2 consent state(s) fired as `['consent','default', state]` onto the dataLayer before the `gtm.js` event. Pass an array to fire multiple defaults — for example, different defaults per `region` (more specific regions override broader ones at runtime)."
1632
1637
  }
1633
1638
  ],
1634
1639
  HotjarOptions: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -103,9 +103,9 @@
103
103
  },
104
104
  "dependencies": {
105
105
  "@nuxt/devtools-kit": "^3.2.4",
106
- "@nuxt/kit": "^4.4.2",
107
- "@vueuse/core": "^14.2.1",
108
- "@vueuse/shared": "^14.2.1",
106
+ "@nuxt/kit": "^4.4.4",
107
+ "@vueuse/core": "^14.3.0",
108
+ "@vueuse/shared": "^14.3.0",
109
109
  "consola": "^3.4.2",
110
110
  "defu": "^6.1.7",
111
111
  "h3": "^1.15.11",
@@ -118,7 +118,7 @@
118
118
  "pkg-types": "^2.3.1",
119
119
  "sirv": "^3.0.2",
120
120
  "std-env": "^4.1.0",
121
- "ufo": "^1.6.3",
121
+ "ufo": "^1.6.4",
122
122
  "ultrahtml": "^1.6.0",
123
123
  "unplugin": "^3.0.0",
124
124
  "unstorage": "^1.17.5",