@nuxt/scripts 0.6.6 → 0.7.1

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 (54) hide show
  1. package/dist/client/200.html +8 -8
  2. package/dist/client/404.html +8 -8
  3. package/dist/client/_nuxt/{aQeyjCqJ.js → C1IUq70_.js} +1 -1
  4. package/dist/client/_nuxt/{BKIFFtfV.js → CnUvXFHd.js} +1 -1
  5. package/dist/client/_nuxt/DOi3Eb0n.js +31 -0
  6. package/dist/client/_nuxt/builds/latest.json +1 -1
  7. package/dist/client/_nuxt/builds/meta/e4092e18-9a58-41ab-947e-35e1f2082b75.json +1 -0
  8. package/dist/client/_nuxt/error-404.CHrXIISA.css +1 -0
  9. package/dist/client/_nuxt/error-500.CrsjMPPf.css +1 -0
  10. package/dist/client/_nuxt/{BKJqCZ0j.js → iQqcKxZm.js} +1 -1
  11. package/dist/client/index.html +8 -8
  12. package/dist/module.json +2 -2
  13. package/dist/module.mjs +10 -4
  14. package/dist/runtime/components/ScriptCrisp.vue +10 -7
  15. package/dist/runtime/components/ScriptGoogleAdsense.vue +7 -7
  16. package/dist/runtime/components/ScriptGoogleMaps.vue +236 -68
  17. package/dist/runtime/components/ScriptIntercom.vue +10 -7
  18. package/dist/runtime/components/ScriptLemonSqueezy.vue +1 -1
  19. package/dist/runtime/components/ScriptStripePricingTable.vue +6 -6
  20. package/dist/runtime/components/ScriptVimeoPlayer.vue +62 -40
  21. package/dist/runtime/components/ScriptYouTubePlayer.vue +9 -9
  22. package/dist/runtime/composables/useScript.d.ts +6 -1
  23. package/dist/runtime/composables/useScript.js +8 -8
  24. package/dist/runtime/composables/useScriptEventPage.d.ts +0 -3
  25. package/dist/runtime/registry/clarity.d.ts +1 -12
  26. package/dist/runtime/registry/cloudflare-web-analytics.d.ts +1 -3
  27. package/dist/runtime/registry/crisp.d.ts +1 -3
  28. package/dist/runtime/registry/fathom-analytics.d.ts +1 -3
  29. package/dist/runtime/registry/google-adsense.d.ts +1 -3
  30. package/dist/runtime/registry/google-analytics.d.ts +2 -10
  31. package/dist/runtime/registry/google-maps.d.ts +2 -4
  32. package/dist/runtime/registry/google-maps.js +1 -3
  33. package/dist/runtime/registry/google-tag-manager.d.ts +2 -10
  34. package/dist/runtime/registry/hotjar.d.ts +1 -3
  35. package/dist/runtime/registry/intercom.d.ts +1 -3
  36. package/dist/runtime/registry/lemon-squeezy.d.ts +1 -3
  37. package/dist/runtime/registry/matomo-analytics.d.ts +1 -3
  38. package/dist/runtime/registry/meta-pixel.d.ts +1 -3
  39. package/dist/runtime/registry/npm.d.ts +1 -3
  40. package/dist/runtime/registry/plausible-analytics.d.ts +1 -3
  41. package/dist/runtime/registry/segment.d.ts +1 -3
  42. package/dist/runtime/registry/stripe.d.ts +1 -3
  43. package/dist/runtime/registry/vimeo-player.d.ts +1 -3
  44. package/dist/runtime/registry/vimeo-player.js +1 -1
  45. package/dist/runtime/registry/x-pixel.d.ts +1 -3
  46. package/dist/runtime/registry/youtube-player.d.ts +1 -3
  47. package/dist/runtime/registry/youtube-player.js +1 -1
  48. package/dist/runtime/types.d.ts +3 -3
  49. package/dist/runtime/utils.d.ts +2 -4
  50. package/package.json +29 -23
  51. package/dist/client/_nuxt/DcF05ETD.js +0 -31
  52. package/dist/client/_nuxt/builds/meta/3dcaf2bf-82f1-460f-80a6-1412196a7a77.json +0 -1
  53. package/dist/client/_nuxt/error-404.B7Lh29wY.css +0 -1
  54. package/dist/client/_nuxt/error-500.B_VIyt60.css +0 -1
@@ -1,5 +1,5 @@
1
1
  import type { InferInput, ObjectSchema } from 'valibot';
2
- import type { UseScriptInput, VueScriptInstance } from '@unhead/vue';
2
+ import type { UseScriptInput } from '@unhead/vue';
3
3
  import type { EmptyOptionsSchema, NuxtUseScriptOptions, RegistryScriptInput, ScriptRegistry } from '#nuxt-scripts';
4
4
  type OptionsFn<O extends ObjectSchema<any, any>> = (options: InferInput<O>) => ({
5
5
  scriptInput?: UseScriptInput;
@@ -8,7 +8,5 @@ type OptionsFn<O extends ObjectSchema<any, any>> = (options: InferInput<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, any> = EmptyOptionsSchema>(registryKey: keyof ScriptRegistry | string, optionsFn: OptionsFn<O>, _userOptions?: RegistryScriptInput<O>): T & {
12
- $script: Promise<T> & VueScriptInstance<T>;
13
- };
11
+ export declare function useRegistryScript<T extends Record<string | symbol, any>, O extends ObjectSchema<any, any> = EmptyOptionsSchema, U = {}>(registryKey: keyof ScriptRegistry | string, optionsFn: OptionsFn<O>, _userOptions?: RegistryScriptInput<O>): import("./composables/useScript").UseScriptContext<T>;
14
12
  export {};
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "0.6.6",
5
- "packageManager": "pnpm@9.6.0",
4
+ "version": "0.7.1",
5
+ "packageManager": "pnpm@9.7.1",
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",
@@ -65,15 +65,15 @@
65
65
  ]
66
66
  },
67
67
  "dependencies": {
68
- "@nuxt/devtools-kit": "^1.3.9",
69
- "@nuxt/devtools-ui-kit": "^1.3.9",
68
+ "@nuxt/devtools-kit": "^1.3.14",
69
+ "@nuxt/devtools-ui-kit": "^1.3.14",
70
70
  "@nuxt/kit": "^3.12.4",
71
71
  "@types/google.maps": "^3.55.12",
72
72
  "@types/stripe-v3": "^3.1.33",
73
73
  "@types/vimeo__player": "^2.18.3",
74
74
  "@types/youtube": "^0.0.50",
75
- "@unhead/vue": "^1.9.16",
76
- "@vueuse/core": "^10.11.0",
75
+ "@unhead/vue": "^1.10.0",
76
+ "@vueuse/core": "^11.0.1",
77
77
  "consola": "^3.2.3",
78
78
  "defu": "^6.1.4",
79
79
  "h3": "^1.12.0",
@@ -84,44 +84,50 @@
84
84
  "pathe": "^1.1.2",
85
85
  "pkg-types": "^1.1.3",
86
86
  "semver": "^7.6.3",
87
- "shiki": "1.12.1",
87
+ "shiki": "1.14.1",
88
88
  "sirv": "^2.0.4",
89
89
  "std-env": "^3.7.0",
90
90
  "third-party-capital": "2.3.0",
91
91
  "ufo": "^1.5.4",
92
- "unimport": "^3.10.0",
93
- "unplugin": "^1.12.0",
92
+ "unimport": "^3.11.0",
93
+ "unplugin": "^1.12.2",
94
94
  "unstorage": "^1.10.2",
95
- "valibot": "^0.37.0"
95
+ "valibot": "^0.38.0"
96
96
  },
97
97
  "devDependencies": {
98
- "@nuxt/devtools-ui-kit": "^1.3.9",
99
- "@nuxt/eslint-config": "^0.5.0",
100
- "@nuxt/module-builder": "^0.8.1",
101
- "@nuxt/test-utils": "3.14.0",
98
+ "@nuxt/devtools-ui-kit": "^1.3.14",
99
+ "@nuxt/eslint-config": "^0.5.1",
100
+ "@nuxt/module-builder": "^0.8.3",
101
+ "@nuxt/test-utils": "3.14.1",
102
102
  "@types/semver": "^7.5.8",
103
- "@typescript-eslint/typescript-estree": "^8.0.1",
104
- "@unhead/schema": "^1.9.16",
103
+ "@typescript-eslint/typescript-estree": "^8.2.0",
104
+ "@unhead/schema": "^1.10.0",
105
105
  "acorn-loose": "^8.4.0",
106
- "bumpp": "^9.4.2",
106
+ "bumpp": "^9.5.1",
107
107
  "changelogen": "^0.5.5",
108
- "eslint": "9.8.0",
108
+ "eslint": "9.9.0",
109
109
  "eslint-plugin-n": "^17.10.2",
110
110
  "knitwork": "^1.1.0",
111
111
  "nuxt": "^3.12.4",
112
112
  "nuxt-scripts-devtools": "workspace:*",
113
- "playwright-core": "^1.46.0",
113
+ "playwright-core": "^1.46.1",
114
114
  "typescript": "^5.5.4",
115
115
  "vitest": "^2.0.5",
116
- "vue": "^3.4.35",
117
- "vue-router": "^4.4.2"
116
+ "vue": "^3.4.38",
117
+ "vue-router": "^4.4.3"
118
118
  },
119
119
  "resolutions": {
120
120
  "@nuxt/scripts": "workspace:*",
121
+ "@unhead/dom": "1.10.0",
122
+ "@unhead/schema": "1.10.0",
123
+ "@unhead/shared": "1.10.0",
124
+ "@unhead/ssr": "1.10.0",
125
+ "@unhead/vue": "1.10.0",
121
126
  "nuxt": "^3.12.4",
122
127
  "nuxt-scripts-devtools": "workspace:*",
123
128
  "shiki": "1.10.3",
124
- "vue": "^3.4.35",
125
- "vue-router": "^4.4.2"
129
+ "unhead": "1.10.0",
130
+ "vue": "^3.4.38",
131
+ "vue-router": "^4.4.3"
126
132
  }
127
133
  }