@nuxt/scripts 0.12.1 → 0.13.0

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 (69) hide show
  1. package/dist/client/200.html +1 -1
  2. package/dist/client/404.html +1 -1
  3. package/dist/client/_nuxt/{DyLGGY9L.js → C09X5LNe.js} +1 -1
  4. package/dist/client/_nuxt/{CEpyMuZa.js → CDuymAca.js} +1 -1
  5. package/dist/client/_nuxt/{B1l158TM.js → CGGF_5bm.js} +17 -17
  6. package/dist/client/_nuxt/Z5EPizOU.js +1 -0
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/78c6ab23-83d1-4e01-9f34-31be10d5e3b9.json +1 -0
  9. package/dist/client/_nuxt/error-404.c-5_FvQE.css +1 -0
  10. package/dist/client/_nuxt/error-500.Dgf4btmt.css +1 -0
  11. package/dist/client/index.html +1 -1
  12. package/dist/module.json +1 -1
  13. package/dist/module.mjs +29 -2
  14. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.d.vue.ts +2 -1
  15. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue.d.ts +2 -1
  16. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.d.vue.ts +2 -1
  17. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.vue.d.ts +2 -1
  18. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.d.vue.ts +2 -1
  19. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue.d.ts +2 -1
  20. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.d.vue.ts +3 -2
  21. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue.d.ts +3 -2
  22. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.d.vue.ts +2 -1
  23. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue.d.ts +2 -1
  24. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.d.vue.ts +2 -1
  25. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue.d.ts +2 -1
  26. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.d.vue.ts +2 -1
  27. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue.d.ts +2 -1
  28. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.d.vue.ts +2 -1
  29. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.vue.d.ts +2 -1
  30. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.d.vue.ts +2 -1
  31. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.vue.d.ts +2 -1
  32. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.d.vue.ts +2 -1
  33. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.vue.d.ts +2 -1
  34. package/dist/runtime/components/ScriptAriaLoadingIndicator.d.vue.ts +2 -1
  35. package/dist/runtime/components/ScriptAriaLoadingIndicator.vue.d.ts +2 -1
  36. package/dist/runtime/components/ScriptCarbonAds.d.vue.ts +3 -2
  37. package/dist/runtime/components/ScriptCarbonAds.vue.d.ts +3 -2
  38. package/dist/runtime/components/ScriptCrisp.d.vue.ts +3 -2
  39. package/dist/runtime/components/ScriptCrisp.vue.d.ts +3 -2
  40. package/dist/runtime/components/ScriptGoogleAdsense.d.vue.ts +3 -2
  41. package/dist/runtime/components/ScriptGoogleAdsense.vue.d.ts +3 -2
  42. package/dist/runtime/components/ScriptIntercom.d.vue.ts +3 -2
  43. package/dist/runtime/components/ScriptIntercom.vue.d.ts +3 -2
  44. package/dist/runtime/components/ScriptLemonSqueezy.d.vue.ts +3 -2
  45. package/dist/runtime/components/ScriptLemonSqueezy.vue.d.ts +3 -2
  46. package/dist/runtime/components/ScriptLoadingIndicator.d.vue.ts +2 -1
  47. package/dist/runtime/components/ScriptLoadingIndicator.vue.d.ts +2 -1
  48. package/dist/runtime/components/ScriptPayPalButtons.d.vue.ts +4 -3
  49. package/dist/runtime/components/ScriptPayPalButtons.vue.d.ts +4 -3
  50. package/dist/runtime/components/ScriptPayPalMarks.d.vue.ts +3 -2
  51. package/dist/runtime/components/ScriptPayPalMarks.vue.d.ts +3 -2
  52. package/dist/runtime/components/ScriptPayPalMessages.d.vue.ts +3 -2
  53. package/dist/runtime/components/ScriptPayPalMessages.vue.d.ts +3 -2
  54. package/dist/runtime/components/ScriptStripePricingTable.d.vue.ts +3 -2
  55. package/dist/runtime/components/ScriptStripePricingTable.vue.d.ts +3 -2
  56. package/dist/runtime/components/ScriptVimeoPlayer.d.vue.ts +3 -2
  57. package/dist/runtime/components/ScriptVimeoPlayer.vue.d.ts +3 -2
  58. package/dist/runtime/components/ScriptYouTubePlayer.d.vue.ts +3 -2
  59. package/dist/runtime/components/ScriptYouTubePlayer.vue.d.ts +3 -2
  60. package/dist/runtime/composables/useScript.js +7 -0
  61. package/dist/runtime/registry/google-tag-manager.js +1 -0
  62. package/dist/runtime/registry/plausible-analytics.d.ts +81 -7
  63. package/dist/runtime/registry/plausible-analytics.js +64 -11
  64. package/dist/runtime/types.d.ts +2 -0
  65. package/package.json +17 -14
  66. package/dist/client/_nuxt/builds/meta/ab2a05b7-9c93-484e-ae04-bd1f39e5f3c1.json +0 -1
  67. package/dist/client/_nuxt/error-404.pWWosX5v.css +0 -1
  68. package/dist/client/_nuxt/error-500.DHpVpAn4.css +0 -1
  69. package/dist/client/_nuxt/n57rOy2v.js +0 -1
@@ -6,7 +6,7 @@ declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  ready: (args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any;
11
11
  lemonSqueezyEvent: (args_0: never) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -15,7 +15,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
15
15
  }>, {
16
16
  trigger: ElementScriptTrigger;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
19
20
  export default _default;
20
21
  type __VLS_WithSlots<T, S> = T & {
21
22
  new (): {
@@ -6,7 +6,7 @@ declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  ready: (args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any;
11
11
  lemonSqueezyEvent: (args_0: never) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -15,7 +15,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
15
15
  }>, {
16
16
  trigger: ElementScriptTrigger;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
19
20
  export default _default;
20
21
  type __VLS_WithSlots<T, S> = T & {
21
22
  new (): {
@@ -2,8 +2,9 @@ type __VLS_Props = {
2
2
  color?: string;
3
3
  size?: number;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
6
  size: number;
7
7
  color: string;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
9
10
  export default _default;
@@ -2,8 +2,9 @@ type __VLS_Props = {
2
2
  color?: string;
3
3
  size?: number;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
6
  size: number;
7
7
  color: string;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
9
10
  export default _default;
@@ -40,7 +40,7 @@ type __VLS_Slots = {} & {
40
40
  } & {
41
41
  default?: (props: typeof __VLS_14) => any;
42
42
  };
43
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
44
  error: (error: Record<string, unknown>) => any;
45
45
  init: (data: Record<string, unknown>, actions: OnInitActions) => any;
46
46
  cancel: (data: Record<string, unknown>, actions: OnCancelledActions) => any;
@@ -58,12 +58,13 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
58
58
  onShippingAddressChange?: ((data: OnShippingAddressChangeData, actions: OnShippingAddressChangeActions) => any) | undefined;
59
59
  }>, {
60
60
  trigger: ElementScriptTrigger;
61
+ disabled: boolean;
61
62
  clientId: string;
62
63
  buttonOptions: PayPalButtonsComponentOptions;
63
64
  paypalScriptOptions: Partial<PayPalInput>;
64
- disabled: boolean;
65
65
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
66
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
66
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
67
+ declare const _default: typeof __VLS_export;
67
68
  export default _default;
68
69
  type __VLS_WithSlots<T, S> = T & {
69
70
  new (): {
@@ -40,7 +40,7 @@ type __VLS_Slots = {} & {
40
40
  } & {
41
41
  default?: (props: typeof __VLS_14) => any;
42
42
  };
43
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
44
  error: (error: Record<string, unknown>) => any;
45
45
  init: (data: Record<string, unknown>, actions: OnInitActions) => any;
46
46
  cancel: (data: Record<string, unknown>, actions: OnCancelledActions) => any;
@@ -58,12 +58,13 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
58
58
  onShippingAddressChange?: ((data: OnShippingAddressChangeData, actions: OnShippingAddressChangeActions) => any) | undefined;
59
59
  }>, {
60
60
  trigger: ElementScriptTrigger;
61
+ disabled: boolean;
61
62
  clientId: string;
62
63
  buttonOptions: PayPalButtonsComponentOptions;
63
64
  paypalScriptOptions: Partial<PayPalInput>;
64
- disabled: boolean;
65
65
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
66
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
66
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
67
+ declare const _default: typeof __VLS_export;
67
68
  export default _default;
68
69
  type __VLS_WithSlots<T, S> = T & {
69
70
  new (): {
@@ -36,13 +36,14 @@ type __VLS_Slots = {} & {
36
36
  } & {
37
37
  default?: (props: typeof __VLS_14) => any;
38
38
  };
39
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
39
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
40
40
  trigger: ElementScriptTrigger;
41
41
  clientId: string;
42
42
  paypalScriptOptions: Partial<PayPalInput>;
43
43
  marksOptions: PayPalMarksComponentOptions;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
46
47
  export default _default;
47
48
  type __VLS_WithSlots<T, S> = T & {
48
49
  new (): {
@@ -36,13 +36,14 @@ type __VLS_Slots = {} & {
36
36
  } & {
37
37
  default?: (props: typeof __VLS_14) => any;
38
38
  };
39
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
39
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
40
40
  trigger: ElementScriptTrigger;
41
41
  clientId: string;
42
42
  paypalScriptOptions: Partial<PayPalInput>;
43
43
  marksOptions: PayPalMarksComponentOptions;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
46
47
  export default _default;
47
48
  type __VLS_WithSlots<T, S> = T & {
48
49
  new (): {
@@ -44,7 +44,7 @@ type __VLS_Slots = {} & {
44
44
  } & {
45
45
  default?: (props: typeof __VLS_14) => any;
46
46
  };
47
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
48
  render: (data: Record<string, unknown>) => any;
49
49
  apply: (data: Record<string, unknown>) => any;
50
50
  clickMessages: (data: Record<string, unknown>) => any;
@@ -58,7 +58,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
58
58
  paypalScriptOptions: Partial<PayPalInput>;
59
59
  messagesOptions: PayPalMessagesComponentOptions;
60
60
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
61
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
61
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
62
+ declare const _default: typeof __VLS_export;
62
63
  export default _default;
63
64
  type __VLS_WithSlots<T, S> = T & {
64
65
  new (): {
@@ -44,7 +44,7 @@ type __VLS_Slots = {} & {
44
44
  } & {
45
45
  default?: (props: typeof __VLS_14) => any;
46
46
  };
47
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
48
  render: (data: Record<string, unknown>) => any;
49
49
  apply: (data: Record<string, unknown>) => any;
50
50
  clickMessages: (data: Record<string, unknown>) => any;
@@ -58,7 +58,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
58
58
  paypalScriptOptions: Partial<PayPalInput>;
59
59
  messagesOptions: PayPalMessagesComponentOptions;
60
60
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
61
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
61
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
62
+ declare const _default: typeof __VLS_export;
62
63
  export default _default;
63
64
  type __VLS_WithSlots<T, S> = T & {
64
65
  new (): {
@@ -17,7 +17,7 @@ type __VLS_Slots = {} & {
17
17
  } & {
18
18
  default?: (props: typeof __VLS_7) => any;
19
19
  };
20
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  error: () => any;
22
22
  ready: (args_0: import("../types.js").UseScriptContext<Record<string | symbol, any>>) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -26,7 +26,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
26
26
  }>, {
27
27
  trigger: ElementScriptTrigger;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
30
31
  export default _default;
31
32
  type __VLS_WithSlots<T, S> = T & {
32
33
  new (): {
@@ -17,7 +17,7 @@ type __VLS_Slots = {} & {
17
17
  } & {
18
18
  default?: (props: typeof __VLS_7) => any;
19
19
  };
20
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  error: () => any;
22
22
  ready: (args_0: import("../types.js").UseScriptContext<Record<string | symbol, any>>) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -26,7 +26,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
26
26
  }>, {
27
27
  trigger: ElementScriptTrigger;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
30
31
  export default _default;
31
32
  type __VLS_WithSlots<T, S> = T & {
32
33
  new (): {
@@ -49,7 +49,7 @@ type __VLS_Slots = {} & {
49
49
  } & {
50
50
  default?: (props: typeof __VLS_13) => any;
51
51
  };
52
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
52
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
53
53
  play: () => Promise<void> | undefined;
54
54
  pause: () => Promise<void> | undefined;
55
55
  getDuration: () => Promise<number> | undefined;
@@ -118,7 +118,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
118
118
  }>, {
119
119
  trigger: ElementScriptTrigger;
120
120
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
121
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
121
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
122
+ declare const _default: typeof __VLS_export;
122
123
  export default _default;
123
124
  type __VLS_WithSlots<T, S> = T & {
124
125
  new (): {
@@ -49,7 +49,7 @@ type __VLS_Slots = {} & {
49
49
  } & {
50
50
  default?: (props: typeof __VLS_13) => any;
51
51
  };
52
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
52
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
53
53
  play: () => Promise<void> | undefined;
54
54
  pause: () => Promise<void> | undefined;
55
55
  getDuration: () => Promise<number> | undefined;
@@ -118,7 +118,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
118
118
  }>, {
119
119
  trigger: ElementScriptTrigger;
120
120
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
121
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
121
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
122
+ declare const _default: typeof __VLS_export;
122
123
  export default _default;
123
124
  type __VLS_WithSlots<T, S> = T & {
124
125
  new (): {
@@ -34,7 +34,7 @@ type __VLS_Slots = {} & {
34
34
  } & {
35
35
  default?: (props: typeof __VLS_13) => any;
36
36
  };
37
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
37
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
38
38
  player: Ref<YT.Player | undefined, YT.Player | undefined>;
39
39
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
40
  error: (e: YT.OnErrorEvent, target: YT.Player) => any;
@@ -57,7 +57,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
57
57
  thumbnailSize: YoutubeThumbnailSize;
58
58
  webp: boolean;
59
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
60
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
+ declare const _default: typeof __VLS_export;
61
62
  export default _default;
62
63
  type __VLS_WithSlots<T, S> = T & {
63
64
  new (): {
@@ -34,7 +34,7 @@ type __VLS_Slots = {} & {
34
34
  } & {
35
35
  default?: (props: typeof __VLS_13) => any;
36
36
  };
37
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
37
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
38
38
  player: Ref<YT.Player | undefined, YT.Player | undefined>;
39
39
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
40
  error: (e: YT.OnErrorEvent, target: YT.Player) => any;
@@ -57,7 +57,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
57
57
  thumbnailSize: YoutubeThumbnailSize;
58
58
  webp: boolean;
59
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
60
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
+ declare const _default: typeof __VLS_export;
61
62
  export default _default;
62
63
  type __VLS_WithSlots<T, S> = T & {
63
64
  new (): {
@@ -3,6 +3,7 @@ import { useScript as _useScript } from "@unhead/vue/scripts";
3
3
  import { reactive } from "vue";
4
4
  import { onNuxtReady, useNuxtApp, useRuntimeConfig, injectHead } from "nuxt/app";
5
5
  import { logger } from "../logger.js";
6
+ import { resolveTrigger } from "#build/nuxt-scripts-trigger-resolver";
6
7
  function useNuxtScriptRuntimeConfig() {
7
8
  return useRuntimeConfig().public["nuxt-scripts"];
8
9
  }
@@ -16,6 +17,12 @@ export function useScript(input, options) {
16
17
  console.warn("[Nuxt Scripts] Bundling is not supported for dynamic script sources. Static URLs are required for bundling.");
17
18
  options.bundle = false;
18
19
  }
20
+ if (options.trigger && typeof options.trigger === "object" && !("then" in options.trigger)) {
21
+ const resolved = resolveTrigger(options.trigger);
22
+ if (resolved) {
23
+ options.trigger = resolved;
24
+ }
25
+ }
19
26
  const id = String(resolveScriptKey(input));
20
27
  const nuxtApp = useNuxtApp();
21
28
  options.head = options.head || injectHead();
@@ -57,6 +57,7 @@ export function useScriptGoogleTagManager(options) {
57
57
  function gtag() {
58
58
  window[dataLayerName].push(arguments);
59
59
  }
60
+ window.gtag = gtag;
60
61
  options?.onBeforeGtmStart?.(gtag);
61
62
  window[dataLayerName].push({
62
63
  "gtm.start": (/* @__PURE__ */ new Date()).getTime(),
@@ -1,17 +1,91 @@
1
1
  import type { RegistryScriptInput } from '#nuxt-scripts/types';
2
- export declare const PlausibleAnalyticsOptions: import("valibot").ObjectSchema<{
3
- readonly domain: import("valibot").StringSchema<undefined>;
2
+ declare const PlausibleAnalyticsOptionsSchema: import("valibot").ObjectSchema<{
3
+ readonly scriptId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
4
+ readonly domain: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
4
5
  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>, undefined>;
6
+ readonly customProperties: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").AnySchema, undefined>, undefined>;
7
+ readonly endpoint: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
8
+ readonly fileDownloads: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
9
+ readonly fileExtensions: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
10
+ }, undefined>, undefined>;
11
+ readonly hashBasedRouting: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
12
+ readonly autoCapturePageviews: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
13
+ readonly captureOnLocalhost: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
14
+ readonly trackForms: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
5
15
  }, undefined>;
6
- export type PlausibleAnalyticsInput = RegistryScriptInput<typeof PlausibleAnalyticsOptions, false>;
7
- export interface PlausibleAnalyticsApi {
8
- plausible: ((event: '404', options: Record<string, any>) => void) & ((event: 'event', options: Record<string, any>) => void) & ((...params: any[]) => void) & {
9
- q: any[];
16
+ /**
17
+ * Plausible Analytics options
18
+ * @see https://plausible.io/docs/script-extensions
19
+ */
20
+ export interface PlausibleAnalyticsOptions {
21
+ /**
22
+ * Unique script ID for your site (recommended - new format as of October 2025)
23
+ * Get this from your Plausible dashboard under Site Installation
24
+ *
25
+ * Extract it from your Plausible script URL:
26
+ * ```
27
+ * <script src="https://plausible.io/js/pa-gYyxvZhkMzdzXBAtSeSNz.js"></script>
28
+ * ^^^^^^^^^^^^^^^^^^^^^^^^^^
29
+ * scriptId: 'gYyxvZhkMzdzXBAtSeSNz'
30
+ * ```
31
+ * @example 'gYyxvZhkMzdzXBAtSeSNz'
32
+ */
33
+ scriptId?: string;
34
+ /**
35
+ * Your site domain
36
+ * @deprecated Use `scriptId` instead (new October 2025 format)
37
+ * @example 'example.com'
38
+ */
39
+ domain?: string;
40
+ /**
41
+ * Script extensions for additional features
42
+ * @deprecated Use init options like `hashBasedRouting`, `captureOnLocalhost`, etc. instead (new October 2025 format)
43
+ */
44
+ extension?: 'hash' | 'outbound-links' | 'file-downloads' | 'tagged-events' | 'revenue' | 'pageview-props' | 'compat' | 'local' | 'manual' | Array<'hash' | 'outbound-links' | 'file-downloads' | 'tagged-events' | 'revenue' | 'pageview-props' | 'compat' | 'local' | 'manual'>;
45
+ /** Custom properties to track with every pageview */
46
+ customProperties?: Record<string, any>;
47
+ /** Custom tracking endpoint URL */
48
+ endpoint?: string;
49
+ /** Configure file download tracking */
50
+ fileDownloads?: {
51
+ /** File extensions to track (default: pdf, xlsx, docx, txt, rtf, csv, exe, key, pps, ppt, pptx, 7z, pkg, rar, gz, zip, avi, mov, mp4, mpeg, wmv, midi, mp3, wav, wma, dmg) */
52
+ fileExtensions?: string[];
53
+ };
54
+ /** Enable hash-based routing for single-page apps */
55
+ hashBasedRouting?: boolean;
56
+ /** Set to false to manually trigger pageviews */
57
+ autoCapturePageviews?: boolean;
58
+ /** Enable tracking on localhost */
59
+ captureOnLocalhost?: boolean;
60
+ /** Enable form submission tracking */
61
+ trackForms?: boolean;
62
+ }
63
+ export type PlausibleAnalyticsInput = RegistryScriptInput<typeof PlausibleAnalyticsOptionsSchema, false>;
64
+ /**
65
+ * Init options for plausible.init() (October 2025 format)
66
+ * @see https://plausible.io/docs/script-extensions
67
+ */
68
+ export interface PlausibleInitOptions {
69
+ customProperties?: Record<string, any>;
70
+ endpoint?: string;
71
+ fileDownloads?: {
72
+ fileExtensions?: string[];
10
73
  };
74
+ hashBasedRouting?: boolean;
75
+ autoCapturePageviews?: boolean;
76
+ captureOnLocalhost?: boolean;
77
+ }
78
+ export type PlausibleFunction = ((event: '404', options: Record<string, any>) => void) & ((event: 'event', options: Record<string, any>) => void) & ((...params: any[]) => void) & {
79
+ q: any[];
80
+ init: (options: PlausibleInitOptions) => void;
81
+ };
82
+ export interface PlausibleAnalyticsApi {
83
+ plausible: PlausibleFunction;
11
84
  }
12
85
  declare global {
13
86
  interface Window {
14
- plausible: PlausibleAnalyticsApi;
87
+ plausible: PlausibleFunction;
15
88
  }
16
89
  }
17
90
  export declare function useScriptPlausibleAnalytics<T extends PlausibleAnalyticsApi>(_options?: PlausibleAnalyticsInput): import("#nuxt-scripts/types").UseScriptContext<T>;
91
+ export {};
@@ -1,5 +1,6 @@
1
1
  import { useRegistryScript } from "../utils.js";
2
- import { array, literal, object, optional, string, union } from "#nuxt-scripts-validator";
2
+ import { any, array, boolean, literal, object, optional, record, string, union } from "#nuxt-scripts-validator";
3
+ import { logger } from "../logger.js";
3
4
  const extensions = [
4
5
  literal("hash"),
5
6
  literal("outbound-links"),
@@ -11,23 +12,75 @@ const extensions = [
11
12
  literal("local"),
12
13
  literal("manual")
13
14
  ];
14
- export const PlausibleAnalyticsOptions = object({
15
- domain: string(),
16
- // required
17
- extension: optional(union([union(extensions), array(union(extensions))]))
15
+ const PlausibleAnalyticsOptionsSchema = object({
16
+ // New October 2025: unique script ID per site (replaces domain)
17
+ scriptId: optional(string()),
18
+ // Legacy: domain-based approach (deprecated)
19
+ domain: optional(string()),
20
+ // Legacy extension support (deprecated)
21
+ extension: optional(union([union(extensions), array(union(extensions))])),
22
+ // New October 2025 init options
23
+ customProperties: optional(record(string(), any())),
24
+ endpoint: optional(string()),
25
+ fileDownloads: optional(object({
26
+ fileExtensions: optional(array(string()))
27
+ })),
28
+ hashBasedRouting: optional(boolean()),
29
+ autoCapturePageviews: optional(boolean()),
30
+ captureOnLocalhost: optional(boolean()),
31
+ trackForms: optional(boolean())
18
32
  });
19
33
  export function useScriptPlausibleAnalytics(_options) {
20
34
  return useRegistryScript("plausibleAnalytics", (options) => {
21
- const extensions2 = Array.isArray(options?.extension) ? options.extension.join(".") : [options?.extension];
35
+ const useNewScript = !!options?.scriptId;
36
+ const useLegacyScript = !!options?.extension;
37
+ if (import.meta.dev) {
38
+ if (!useNewScript && !options?.domain) {
39
+ logger.warn("Plausible Analytics: No `scriptId` or `domain` provided. Please provide either `scriptId` or `domain` (legacy).");
40
+ }
41
+ if (useNewScript && options?.domain) {
42
+ logger.warn("Plausible Analytics: You are using both `scriptId` (new format) and `domain` (deprecated). Please use only `scriptId` for the new format.");
43
+ }
44
+ if (useNewScript && useLegacyScript) {
45
+ logger.warn("Plausible Analytics: You are using both `scriptId` (new format) and `extension` (deprecated). Please use `scriptId` with init options like `hashBasedRouting`, `captureOnLocalhost`, etc. instead.");
46
+ }
47
+ }
48
+ let scriptSrc;
49
+ if (useNewScript) {
50
+ scriptSrc = `https://plausible.io/js/pa-${options.scriptId}.js`;
51
+ } else if (useLegacyScript) {
52
+ const extensions2 = Array.isArray(options.extension) ? options.extension.join(".") : [options.extension];
53
+ scriptSrc = `https://plausible.io/js/script.${extensions2}.js`;
54
+ } else {
55
+ scriptSrc = "https://plausible.io/js/script.js";
56
+ }
57
+ const initOptions = {};
58
+ if (options?.customProperties) initOptions.customProperties = options.customProperties;
59
+ if (options?.endpoint) initOptions.endpoint = options.endpoint;
60
+ if (options?.fileDownloads) initOptions.fileDownloads = options.fileDownloads;
61
+ if (options?.hashBasedRouting !== void 0) initOptions.hashBasedRouting = options.hashBasedRouting;
62
+ if (options?.autoCapturePageviews !== void 0) initOptions.autoCapturePageviews = options.autoCapturePageviews;
63
+ if (options?.captureOnLocalhost !== void 0) initOptions.captureOnLocalhost = options.captureOnLocalhost;
64
+ const scriptInput = !useNewScript && options?.domain ? {
65
+ "src": scriptSrc,
66
+ "data-domain": options.domain
67
+ } : {
68
+ src: scriptSrc
69
+ };
22
70
  return {
23
- scriptInput: {
24
- "src": options?.extension ? `https://plausible.io/js/script.${extensions2}.js` : "https://plausible.io/js/script.js",
25
- "data-domain": options?.domain
26
- },
27
- schema: import.meta.dev ? PlausibleAnalyticsOptions : void 0,
71
+ scriptInput,
72
+ schema: import.meta.dev ? PlausibleAnalyticsOptionsSchema : void 0,
28
73
  scriptOptions: {
29
74
  use() {
30
75
  return { plausible: window.plausible };
76
+ },
77
+ clientInit() {
78
+ window.plausible = window.plausible || function() {
79
+ (plausible.q = plausible.q || []).push(arguments);
80
+ }, plausible.init = plausible.init || function(i) {
81
+ plausible.o = i || {};
82
+ };
83
+ window.plausible.init(initOptions);
31
84
  }
32
85
  }
33
86
  };
@@ -5,6 +5,7 @@ import type { InferInput, ObjectSchema, ValiError } 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';
8
+ import type { DatabuddyAnalyticsInput } from './registry/databuddy-analytics.js';
8
9
  import type { MetaPixelInput } from './registry/meta-pixel.js';
9
10
  import type { FathomAnalyticsInput } from './registry/fathom-analytics.js';
10
11
  import type { HotjarInput } from './registry/hotjar.js';
@@ -127,6 +128,7 @@ export interface ScriptRegistry {
127
128
  crisp?: CrispInput;
128
129
  clarity?: ClarityInput;
129
130
  cloudflareWebAnalytics?: CloudflareWebAnalyticsInput;
131
+ databuddyAnalytics?: DatabuddyAnalyticsInput;
130
132
  metaPixel?: MetaPixelInput;
131
133
  fathomAnalytics?: FathomAnalyticsInput;
132
134
  plausibleAnalytics?: PlausibleAnalyticsInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.13.0",
5
5
  "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
6
6
  "author": {
7
7
  "website": "https://harlanzw.com",
@@ -63,6 +63,9 @@
63
63
  "@unhead/vue": "^2.0.3"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
+ "@googlemaps/markerclusterer": {
67
+ "optional": true
68
+ },
66
69
  "@stripe/stripe-js": {
67
70
  "optional": true
68
71
  },
@@ -80,7 +83,7 @@
80
83
  }
81
84
  },
82
85
  "dependencies": {
83
- "@nuxt/kit": "^4.1.2",
86
+ "@nuxt/kit": "^4.1.3",
84
87
  "@vueuse/core": "^13.9.0",
85
88
  "consola": "^3.4.2",
86
89
  "defu": "^6.1.4",
@@ -91,7 +94,7 @@
91
94
  "pathe": "^2.0.3",
92
95
  "pkg-types": "^2.3.0",
93
96
  "sirv": "^3.0.2",
94
- "std-env": "^3.9.0",
97
+ "std-env": "^3.10.0",
95
98
  "ufo": "^1.6.1",
96
99
  "unplugin": "^2.3.10",
97
100
  "unstorage": "^1.17.1",
@@ -103,26 +106,26 @@
103
106
  "@nuxt/eslint-config": "^1.9.0",
104
107
  "@nuxt/module-builder": "^1.0.2",
105
108
  "@nuxt/test-utils": "3.19.2",
106
- "@paypal/paypal-js": "^8.4.2",
109
+ "@paypal/paypal-js": "^9.0.1",
107
110
  "@types/semver": "^7.7.1",
108
- "@typescript-eslint/typescript-estree": "^8.44.1",
111
+ "@typescript-eslint/typescript-estree": "^8.46.1",
109
112
  "@vue/test-utils": "^2.4.6",
110
113
  "acorn-loose": "^8.5.2",
111
- "bumpp": "^10.2.3",
114
+ "bumpp": "^10.3.1",
112
115
  "changelogen": "^0.6.2",
113
- "eslint": "^9.36.0",
116
+ "eslint": "^9.37.0",
114
117
  "eslint-plugin-n": "^17.23.1",
115
- "happy-dom": "^18.0.1",
118
+ "happy-dom": "^20.0.2",
116
119
  "knitwork": "^1.2.0",
117
- "nuxt": "^4.1.2",
118
- "playwright-core": "^1.55.1",
120
+ "nuxt": "^4.1.3",
121
+ "playwright-core": "^1.56.0",
119
122
  "shiki": "^3.13.0",
120
- "typescript": "5.9.2",
123
+ "typescript": "5.9.3",
121
124
  "vitest": "^3.2.4",
122
125
  "vue": "^3.5.22",
123
- "vue-router": "^4.5.1",
124
- "vue-tsc": "^3.0.8",
125
- "@nuxt/scripts": "0.12.1"
126
+ "vue-router": "^4.6.2",
127
+ "vue-tsc": "^3.0.9",
128
+ "@nuxt/scripts": "0.13.0"
126
129
  },
127
130
  "resolutions": {
128
131
  "@nuxt/scripts": "workspace:*"
@@ -1 +0,0 @@
1
- {"id":"ab2a05b7-9c93-484e-ae04-bd1f39e5f3c1","timestamp":1758773948101,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}