@nuxt/scripts 1.0.0-beta.24 → 1.0.0-beta.25

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 (60) hide show
  1. package/dist/client/200.html +1 -1
  2. package/dist/client/404.html +1 -1
  3. package/dist/client/_nuxt/{Bh9fd9qr.js → C-7nRtzO.js} +1 -1
  4. package/dist/client/_nuxt/{UTi7FhVv.js → D5k4eN9O.js} +1 -1
  5. package/dist/client/_nuxt/DjhmCJlE.js +162 -0
  6. package/dist/client/_nuxt/{B7aPLMNo.js → TJ5JFHov.js} +1 -1
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/2ec0342e-5e00-4781-82aa-c3c0f9154516.json +1 -0
  9. package/dist/client/_nuxt/entry.C5SUNdim.css +1 -0
  10. package/dist/client/_nuxt/error-404.C_3_IG5y.css +1 -0
  11. package/dist/client/_nuxt/error-500.DSv6YikH.css +1 -0
  12. package/dist/client/index.html +1 -1
  13. package/dist/module.d.mts +6 -20
  14. package/dist/module.d.ts +6 -20
  15. package/dist/module.json +1 -1
  16. package/dist/module.mjs +303 -277
  17. package/dist/registry.mjs +121 -71
  18. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue +5 -1
  19. package/dist/runtime/composables/useScriptTriggerConsent.d.ts +10 -0
  20. package/dist/runtime/composables/useScriptTriggerConsent.js +32 -19
  21. package/dist/runtime/registry/bing-uet.d.ts +20 -0
  22. package/dist/runtime/registry/bing-uet.js +29 -0
  23. package/dist/runtime/registry/bluesky-embed.d.ts +1 -1
  24. package/dist/runtime/registry/crisp.d.ts +1 -1
  25. package/dist/runtime/registry/fathom-analytics.d.ts +1 -1
  26. package/dist/runtime/registry/google-adsense.d.ts +1 -1
  27. package/dist/runtime/registry/hotjar.d.ts +1 -1
  28. package/dist/runtime/registry/instagram-embed.d.ts +1 -1
  29. package/dist/runtime/registry/intercom.d.ts +1 -1
  30. package/dist/runtime/registry/matomo-analytics.d.ts +1 -1
  31. package/dist/runtime/registry/meta-pixel.d.ts +1 -1
  32. package/dist/runtime/registry/mixpanel-analytics.d.ts +22 -0
  33. package/dist/runtime/registry/mixpanel-analytics.js +46 -0
  34. package/dist/runtime/registry/npm.d.ts +1 -1
  35. package/dist/runtime/registry/reddit-pixel.d.ts +1 -1
  36. package/dist/runtime/registry/schemas.d.ts +19 -0
  37. package/dist/runtime/registry/schemas.js +19 -0
  38. package/dist/runtime/registry/snapchat-pixel.d.ts +1 -1
  39. package/dist/runtime/registry/tiktok-pixel.d.ts +1 -1
  40. package/dist/runtime/registry/vercel-analytics.d.ts +1 -1
  41. package/dist/runtime/registry/x-embed.d.ts +1 -1
  42. package/dist/runtime/registry/x-pixel.d.ts +1 -1
  43. package/dist/runtime/server/proxy-handler.js +36 -23
  44. package/dist/runtime/server/utils/privacy.d.ts +1 -1
  45. package/dist/runtime/server/utils/privacy.js +3 -3
  46. package/dist/runtime/types.d.ts +30 -18
  47. package/dist/runtime/utils/pure.d.ts +1 -1
  48. package/dist/runtime/utils.js +1 -1
  49. package/dist/shared/scripts.ViOoYQXH.mjs +381 -0
  50. package/dist/stats.d.mts +78 -3
  51. package/dist/stats.d.ts +78 -3
  52. package/dist/stats.mjs +2255 -164
  53. package/dist/types-source.mjs +47 -0
  54. package/package.json +13 -13
  55. package/dist/client/_nuxt/BNNMZFwZ.js +0 -162
  56. package/dist/client/_nuxt/builds/meta/78647cef-f45a-4560-82b4-b9364815198a.json +0 -1
  57. package/dist/client/_nuxt/entry.CACgbLJl.css +0 -1
  58. package/dist/client/_nuxt/error-404.DMdWw4vT.css +0 -1
  59. package/dist/client/_nuxt/error-500.CROTF27X.css +0 -1
  60. package/dist/shared/scripts.Crpn87WB.mjs +0 -318
@@ -1,4 +1,16 @@
1
1
  const types = {
2
+ "bing-uet": [
3
+ {
4
+ name: "BingUetOptions",
5
+ kind: "const",
6
+ code: "export const BingUetOptions = object({\n /**\n * Your Bing UET tag ID.\n * @see https://help.ads.microsoft.com/#apex/ads/en/56682/2-500\n */\n id: string(),\n /**\n * Enable automatic SPA page tracking.\n * @default true\n */\n enableAutoSpaTracking: optional(boolean()),\n})"
7
+ },
8
+ {
9
+ name: "BingUetApi",
10
+ kind: "interface",
11
+ code: "export interface BingUetApi {\n uetq: {\n push: (event: string | Record<string, any>) => void\n }\n}"
12
+ }
13
+ ],
2
14
  "bluesky-embed": [
3
15
  {
4
16
  name: "BlueskyEmbedOptions",
@@ -487,6 +499,18 @@ const types = {
487
499
  code: "export const MetaPixelOptions = object({\n /**\n * Your Meta (Facebook) Pixel ID.\n * @see https://developers.facebook.com/docs/meta-pixel/get-started\n */\n id: union([string(), number()]),\n})"
488
500
  }
489
501
  ],
502
+ "mixpanel-analytics": [
503
+ {
504
+ name: "MixpanelAnalyticsOptions",
505
+ kind: "const",
506
+ code: "export const MixpanelAnalyticsOptions = object({\n /**\n * Your Mixpanel project token.\n * @see https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#1-initialize-the-library\n */\n token: string(),\n})"
507
+ },
508
+ {
509
+ name: "MixpanelAnalyticsApi",
510
+ kind: "interface",
511
+ code: "export interface MixpanelAnalyticsApi {\n mixpanel: {\n track: (event: string, properties?: Record<string, any>) => void\n identify: (distinctId: string) => void\n reset: () => void\n people: {\n set: (properties: Record<string, any>) => void\n }\n register: (properties: Record<string, any>) => void\n init: (token: string, config?: Record<string, any>) => void\n }\n}"
512
+ }
513
+ ],
490
514
  npm: [
491
515
  {
492
516
  name: "NpmOptions",
@@ -1712,6 +1736,29 @@ const schemaFields = {
1712
1736
  description: "Override the analytics host URL. When first-party mode is enabled, this is auto-injected to route through the proxy. The SDK derives its API endpoint from the script src, so this changes the script src to `${analyticsHost}/script.js`."
1713
1737
  }
1714
1738
  ],
1739
+ MixpanelAnalyticsOptions: [
1740
+ {
1741
+ name: "token",
1742
+ type: "string",
1743
+ required: true,
1744
+ description: "Your Mixpanel project token."
1745
+ }
1746
+ ],
1747
+ BingUetOptions: [
1748
+ {
1749
+ name: "id",
1750
+ type: "string",
1751
+ required: true,
1752
+ description: "Your Bing UET tag ID."
1753
+ },
1754
+ {
1755
+ name: "enableAutoSpaTracking",
1756
+ type: "boolean",
1757
+ required: false,
1758
+ description: "Enable automatic SPA page tracking.",
1759
+ defaultValue: "true"
1760
+ }
1761
+ ],
1715
1762
  SegmentOptions: [
1716
1763
  {
1717
1764
  name: "writeKey",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.24",
4
+ "version": "1.0.0-beta.25",
5
5
  "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -96,16 +96,16 @@
96
96
  }
97
97
  },
98
98
  "dependencies": {
99
- "@nuxt/devtools-kit": "^3.2.3",
99
+ "@nuxt/devtools-kit": "^3.2.4",
100
100
  "@nuxt/kit": "^4.4.2",
101
101
  "@vueuse/core": "^14.2.1",
102
102
  "consola": "^3.4.2",
103
103
  "defu": "^6.1.4",
104
- "h3": "^1.15.6",
104
+ "h3": "^1.15.8",
105
105
  "magic-string": "^0.30.21",
106
106
  "ofetch": "^1.5.1",
107
107
  "ohash": "^2.0.11",
108
- "oxc-parser": "^0.118.0",
108
+ "oxc-parser": "^0.120.0",
109
109
  "oxc-walker": "^0.7.0",
110
110
  "pathe": "^2.0.3",
111
111
  "pkg-types": "^2.3.0",
@@ -115,34 +115,34 @@
115
115
  "ultrahtml": "^1.6.0",
116
116
  "unplugin": "^3.0.0",
117
117
  "unstorage": "^1.17.4",
118
- "valibot": "^1.2.0"
118
+ "valibot": "^1.3.0"
119
119
  },
120
120
  "devDependencies": {
121
- "@antfu/eslint-config": "^7.7.2",
122
- "@nuxt/devtools-ui-kit": "^3.2.3",
121
+ "@antfu/eslint-config": "^7.7.3",
122
+ "@nuxt/devtools-ui-kit": "^3.2.4",
123
123
  "@nuxt/module-builder": "^1.0.2",
124
124
  "@nuxt/test-utils": "^4.0.0",
125
125
  "@nuxtjs/partytown": "^2.0.0",
126
126
  "@paypal/paypal-js": "^9.4.0",
127
127
  "@types/semver": "^7.7.1",
128
128
  "@types/youtube": "^0.1.2",
129
- "@typescript-eslint/typescript-estree": "^8.57.0",
129
+ "@typescript-eslint/typescript-estree": "^8.57.1",
130
130
  "@vue/test-utils": "^2.4.6",
131
- "bumpp": "^10.4.1",
131
+ "bumpp": "^11.0.1",
132
132
  "eslint": "^10.0.3",
133
- "eslint-plugin-harlanzw": "^0.5.17",
133
+ "eslint-plugin-harlanzw": "^0.5.21",
134
134
  "happy-dom": "^20.8.4",
135
135
  "knitwork": "^1.3.0",
136
136
  "nuxt": "^4.4.2",
137
137
  "playwright-core": "^1.58.2",
138
- "posthog-js": "^1.360.2",
138
+ "posthog-js": "^1.361.1",
139
139
  "shiki": "^4.0.2",
140
140
  "typescript": "^5.9.3",
141
141
  "vitest": "^4.1.0",
142
142
  "vue": "^3.5.30",
143
143
  "vue-router": "^5.0.3",
144
- "vue-tsc": "^3.2.5",
145
- "@nuxt/scripts": "1.0.0-beta.24"
144
+ "vue-tsc": "^3.2.6",
145
+ "@nuxt/scripts": "1.0.0-beta.25"
146
146
  },
147
147
  "resolutions": {
148
148
  "@nuxt/scripts": "workspace:*"