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

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 (42) hide show
  1. package/dist/client/200.html +1 -1
  2. package/dist/client/404.html +1 -1
  3. package/dist/client/_nuxt/{DjhmCJlE.js → CwXQ1Eqw.js} +3 -3
  4. package/dist/client/_nuxt/{TJ5JFHov.js → JXDRhrZp.js} +1 -1
  5. package/dist/client/_nuxt/{C-7nRtzO.js → KCxg59bo.js} +1 -1
  6. package/dist/client/_nuxt/builds/latest.json +1 -1
  7. package/dist/client/_nuxt/builds/meta/d0d06e27-af53-4f1a-b7ae-18727423b3ed.json +1 -0
  8. package/dist/client/_nuxt/{D5k4eN9O.js → viP3Pc9X.js} +1 -1
  9. package/dist/client/index.html +1 -1
  10. package/dist/module.d.mts +1 -1
  11. package/dist/module.d.ts +1 -1
  12. package/dist/module.json +1 -1
  13. package/dist/module.mjs +38 -8
  14. package/dist/registry.mjs +2 -2
  15. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.d.vue.ts +2 -5
  16. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue +14 -15
  17. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue.d.ts +2 -5
  18. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.d.vue.ts +1 -4
  19. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue +32 -41
  20. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue.d.ts +1 -4
  21. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.vue +19 -28
  22. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue +18 -22
  23. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue +30 -37
  24. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.d.vue.ts +1 -4
  25. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue +31 -36
  26. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue.d.ts +1 -4
  27. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue +17 -22
  28. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue +19 -28
  29. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.vue +19 -28
  30. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.vue +19 -28
  31. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.vue +19 -28
  32. package/dist/runtime/components/GoogleMaps/injectionKeys.d.ts +11 -0
  33. package/dist/runtime/components/GoogleMaps/injectionKeys.js +3 -0
  34. package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.d.ts +26 -0
  35. package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.js +37 -0
  36. package/dist/runtime/server/gravatar-proxy.d.ts +1 -1
  37. package/dist/runtime/server/gravatar-proxy.js +0 -1
  38. package/dist/stats.d.mts +97 -9
  39. package/dist/stats.d.ts +97 -9
  40. package/dist/stats.mjs +1233 -292
  41. package/package.json +8 -6
  42. package/dist/client/_nuxt/builds/meta/2ec0342e-5e00-4781-82aa-c3c0f9154516.json +0 -1
package/dist/stats.d.mts CHANGED
@@ -26,11 +26,26 @@ interface ScriptApis {
26
26
  webgl: boolean;
27
27
  audioContext: boolean;
28
28
  userAgent: boolean;
29
+ doNotTrack: boolean;
29
30
  hardwareConcurrency: boolean;
30
31
  deviceMemory: boolean;
31
32
  plugins: boolean;
32
33
  languages: boolean;
33
34
  screen: boolean;
35
+ timezone: boolean;
36
+ platform: boolean;
37
+ vendor: boolean;
38
+ connection: boolean;
39
+ maxTouchPoints: boolean;
40
+ devicePixelRatio: boolean;
41
+ mediaDevices: boolean;
42
+ getBattery: boolean;
43
+ referrer: boolean;
44
+ windowName: boolean;
45
+ rtcPeerConnection: boolean;
46
+ geolocation: boolean;
47
+ serviceWorker: boolean;
48
+ cacheApi: boolean;
34
49
  sendBeacon: boolean;
35
50
  fetch: boolean;
36
51
  xhr: boolean;
@@ -39,15 +54,49 @@ interface ScriptApis {
39
54
  performanceObserver: boolean;
40
55
  intersectionObserver: boolean;
41
56
  }
42
- interface ApiPrivacyScore {
57
+ type PrivacyGrade = 'A+' | 'A' | 'B' | 'C' | 'D' | 'F';
58
+ interface PrivacyRating {
59
+ /** Overall letter grade */
60
+ grade: PrivacyGrade;
43
61
  /** 0–100, higher = more invasive */
44
62
  score: number;
45
- /** Persistence APIs used (cookies, localStorage, sessionStorage, indexedDB) */
46
- persistence: number;
47
- /** Fingerprinting APIs used (canvas, webgl, audioContext, deviceMemory, hardwareConcurrency, plugins, screen, userAgent, languages) */
48
- fingerprinting: number;
49
- /** Behavioral monitoring APIs used (mutationObserver, intersectionObserver) */
50
- monitoring: number;
63
+ /** Breakdown by privacy concern category */
64
+ breakdown: {
65
+ /** Browser fingerprinting APIs entropy-weighted per AmIUnique/Panopticlick research (0–30) */
66
+ fingerprinting: {
67
+ score: number;
68
+ apis: string[];
69
+ };
70
+ /** Persistent storage + cookie tracking (0–25) */
71
+ persistence: {
72
+ score: number;
73
+ thirdPartyCookies: number;
74
+ longLivedCookies: number;
75
+ storageApis: string[];
76
+ };
77
+ /** Cross-domain data exfiltration & tracking network (0–25) */
78
+ network: {
79
+ score: number;
80
+ domains: number;
81
+ outboundBytes: number;
82
+ trackingPixels: number;
83
+ };
84
+ /** Behavioral observation APIs (0–10) */
85
+ monitoring: {
86
+ score: number;
87
+ apis: string[];
88
+ };
89
+ /** Data collection scope — what types of data are tracked (0–10) */
90
+ dataScope: {
91
+ score: number;
92
+ types: string[];
93
+ };
94
+ /** Fingerprint exfiltration — heavy FP APIs combined with outbound channels (0–25) */
95
+ fpExfiltration: {
96
+ score: number;
97
+ heavyApis: string[];
98
+ };
99
+ };
51
100
  }
52
101
  interface ScriptCookie {
53
102
  name: string;
@@ -85,6 +134,44 @@ interface PerformanceSummary {
85
134
  scriptDurationMs: number;
86
135
  heapDeltaKb: number;
87
136
  }
137
+ type PerformanceGrade = 'A+' | 'A' | 'B' | 'C' | 'D' | 'F';
138
+ interface PerformanceRating {
139
+ /** Overall letter grade */
140
+ grade: PerformanceGrade;
141
+ /** 0–100, higher = worse performance impact */
142
+ score: number;
143
+ /** Breakdown by impact area */
144
+ breakdown: {
145
+ /** Network cost — transfer size relative to performance budgets (0–30) */
146
+ networkCost: {
147
+ score: number;
148
+ transferKb: number;
149
+ };
150
+ /** Main thread blocking — task duration that delays interactivity (0–30) */
151
+ mainThread: {
152
+ score: number;
153
+ taskDurationMs: number;
154
+ scriptDurationMs: number;
155
+ };
156
+ /** Memory pressure — heap allocation impact (0–20) */
157
+ memory: {
158
+ score: number;
159
+ heapDeltaKb: number;
160
+ };
161
+ /** Connection overhead — additional HTTP requests (0–10) */
162
+ connections: {
163
+ score: number;
164
+ requestCount: number;
165
+ };
166
+ /** CWV risk — estimated Core Web Vitals impact (0–10) */
167
+ cwvRisk: {
168
+ score: number;
169
+ lcpImpactMs: number;
170
+ clsRisk: boolean;
171
+ inpRiskLevel: string;
172
+ };
173
+ };
174
+ }
88
175
  interface ScriptStats {
89
176
  id: string;
90
177
  label: string;
@@ -95,10 +182,11 @@ interface ScriptStats {
95
182
  trackedData: TrackedDataType[];
96
183
  collectsWebVitals: boolean;
97
184
  apis: ScriptApis;
98
- apiPrivacyScore: ApiPrivacyScore;
185
+ privacyRating: PrivacyRating;
99
186
  cookies: ScriptCookie[];
100
187
  network: NetworkSummary;
101
188
  performance: PerformanceSummary;
189
+ performanceRating: PerformanceRating;
102
190
  cwvEstimate: CwvEstimate;
103
191
  hasBundling: boolean;
104
192
  hasProxy: boolean;
@@ -111,4 +199,4 @@ interface ScriptStats {
111
199
  declare function getScriptStats(): Promise<ScriptStats[]>;
112
200
 
113
201
  export { getScriptStats };
114
- export type { ApiPrivacyScore, CwvEstimate, NetworkSummary, PerformanceSummary, ScriptApis, ScriptCookie, ScriptPrivacy, ScriptSizeDetail, ScriptStats, TrackedDataType };
202
+ export type { CwvEstimate, NetworkSummary, PerformanceGrade, PerformanceRating, PerformanceSummary, PrivacyGrade, PrivacyRating, ScriptApis, ScriptCookie, ScriptPrivacy, ScriptSizeDetail, ScriptStats, TrackedDataType };
package/dist/stats.d.ts CHANGED
@@ -26,11 +26,26 @@ interface ScriptApis {
26
26
  webgl: boolean;
27
27
  audioContext: boolean;
28
28
  userAgent: boolean;
29
+ doNotTrack: boolean;
29
30
  hardwareConcurrency: boolean;
30
31
  deviceMemory: boolean;
31
32
  plugins: boolean;
32
33
  languages: boolean;
33
34
  screen: boolean;
35
+ timezone: boolean;
36
+ platform: boolean;
37
+ vendor: boolean;
38
+ connection: boolean;
39
+ maxTouchPoints: boolean;
40
+ devicePixelRatio: boolean;
41
+ mediaDevices: boolean;
42
+ getBattery: boolean;
43
+ referrer: boolean;
44
+ windowName: boolean;
45
+ rtcPeerConnection: boolean;
46
+ geolocation: boolean;
47
+ serviceWorker: boolean;
48
+ cacheApi: boolean;
34
49
  sendBeacon: boolean;
35
50
  fetch: boolean;
36
51
  xhr: boolean;
@@ -39,15 +54,49 @@ interface ScriptApis {
39
54
  performanceObserver: boolean;
40
55
  intersectionObserver: boolean;
41
56
  }
42
- interface ApiPrivacyScore {
57
+ type PrivacyGrade = 'A+' | 'A' | 'B' | 'C' | 'D' | 'F';
58
+ interface PrivacyRating {
59
+ /** Overall letter grade */
60
+ grade: PrivacyGrade;
43
61
  /** 0–100, higher = more invasive */
44
62
  score: number;
45
- /** Persistence APIs used (cookies, localStorage, sessionStorage, indexedDB) */
46
- persistence: number;
47
- /** Fingerprinting APIs used (canvas, webgl, audioContext, deviceMemory, hardwareConcurrency, plugins, screen, userAgent, languages) */
48
- fingerprinting: number;
49
- /** Behavioral monitoring APIs used (mutationObserver, intersectionObserver) */
50
- monitoring: number;
63
+ /** Breakdown by privacy concern category */
64
+ breakdown: {
65
+ /** Browser fingerprinting APIs entropy-weighted per AmIUnique/Panopticlick research (0–30) */
66
+ fingerprinting: {
67
+ score: number;
68
+ apis: string[];
69
+ };
70
+ /** Persistent storage + cookie tracking (0–25) */
71
+ persistence: {
72
+ score: number;
73
+ thirdPartyCookies: number;
74
+ longLivedCookies: number;
75
+ storageApis: string[];
76
+ };
77
+ /** Cross-domain data exfiltration & tracking network (0–25) */
78
+ network: {
79
+ score: number;
80
+ domains: number;
81
+ outboundBytes: number;
82
+ trackingPixels: number;
83
+ };
84
+ /** Behavioral observation APIs (0–10) */
85
+ monitoring: {
86
+ score: number;
87
+ apis: string[];
88
+ };
89
+ /** Data collection scope — what types of data are tracked (0–10) */
90
+ dataScope: {
91
+ score: number;
92
+ types: string[];
93
+ };
94
+ /** Fingerprint exfiltration — heavy FP APIs combined with outbound channels (0–25) */
95
+ fpExfiltration: {
96
+ score: number;
97
+ heavyApis: string[];
98
+ };
99
+ };
51
100
  }
52
101
  interface ScriptCookie {
53
102
  name: string;
@@ -85,6 +134,44 @@ interface PerformanceSummary {
85
134
  scriptDurationMs: number;
86
135
  heapDeltaKb: number;
87
136
  }
137
+ type PerformanceGrade = 'A+' | 'A' | 'B' | 'C' | 'D' | 'F';
138
+ interface PerformanceRating {
139
+ /** Overall letter grade */
140
+ grade: PerformanceGrade;
141
+ /** 0–100, higher = worse performance impact */
142
+ score: number;
143
+ /** Breakdown by impact area */
144
+ breakdown: {
145
+ /** Network cost — transfer size relative to performance budgets (0–30) */
146
+ networkCost: {
147
+ score: number;
148
+ transferKb: number;
149
+ };
150
+ /** Main thread blocking — task duration that delays interactivity (0–30) */
151
+ mainThread: {
152
+ score: number;
153
+ taskDurationMs: number;
154
+ scriptDurationMs: number;
155
+ };
156
+ /** Memory pressure — heap allocation impact (0–20) */
157
+ memory: {
158
+ score: number;
159
+ heapDeltaKb: number;
160
+ };
161
+ /** Connection overhead — additional HTTP requests (0–10) */
162
+ connections: {
163
+ score: number;
164
+ requestCount: number;
165
+ };
166
+ /** CWV risk — estimated Core Web Vitals impact (0–10) */
167
+ cwvRisk: {
168
+ score: number;
169
+ lcpImpactMs: number;
170
+ clsRisk: boolean;
171
+ inpRiskLevel: string;
172
+ };
173
+ };
174
+ }
88
175
  interface ScriptStats {
89
176
  id: string;
90
177
  label: string;
@@ -95,10 +182,11 @@ interface ScriptStats {
95
182
  trackedData: TrackedDataType[];
96
183
  collectsWebVitals: boolean;
97
184
  apis: ScriptApis;
98
- apiPrivacyScore: ApiPrivacyScore;
185
+ privacyRating: PrivacyRating;
99
186
  cookies: ScriptCookie[];
100
187
  network: NetworkSummary;
101
188
  performance: PerformanceSummary;
189
+ performanceRating: PerformanceRating;
102
190
  cwvEstimate: CwvEstimate;
103
191
  hasBundling: boolean;
104
192
  hasProxy: boolean;
@@ -111,4 +199,4 @@ interface ScriptStats {
111
199
  declare function getScriptStats(): Promise<ScriptStats[]>;
112
200
 
113
201
  export { getScriptStats };
114
- export type { ApiPrivacyScore, CwvEstimate, NetworkSummary, PerformanceSummary, ScriptApis, ScriptCookie, ScriptPrivacy, ScriptSizeDetail, ScriptStats, TrackedDataType };
202
+ export type { CwvEstimate, NetworkSummary, PerformanceGrade, PerformanceRating, PerformanceSummary, PrivacyGrade, PrivacyRating, ScriptApis, ScriptCookie, ScriptPrivacy, ScriptSizeDetail, ScriptStats, TrackedDataType };