@nuxt/scripts 1.3.6 → 2.0.0-beta.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 (207) hide show
  1. package/THIRD_PARTY_LICENSES.md +124 -0
  2. package/dist/devtools-client/200.html +1 -1
  3. package/dist/devtools-client/404.html +1 -1
  4. package/dist/devtools-client/_nuxt/{B551Pnuh.js → 2p1_IuX2.js} +1 -1
  5. package/dist/devtools-client/_nuxt/{KxC4Q3ev.js → 9elIQxwW.js} +1 -1
  6. package/dist/devtools-client/_nuxt/{DTP8MRtW.js → BNPn63Jz.js} +1 -1
  7. package/dist/devtools-client/_nuxt/BjRLaDIG.js +152 -0
  8. package/dist/devtools-client/_nuxt/BtNUYBXT.js +8 -0
  9. package/dist/devtools-client/_nuxt/CDDBpkXG.js +3 -0
  10. package/dist/devtools-client/_nuxt/Cpb0XAYP.js +1 -0
  11. package/dist/devtools-client/_nuxt/DAsiyhPm.js +6 -0
  12. package/dist/devtools-client/_nuxt/{VICyrUSM.js → DabLKy7M.js} +1 -1
  13. package/dist/devtools-client/_nuxt/Dat651Oh.js +1 -0
  14. package/dist/devtools-client/_nuxt/DcG2ZXvY.js +1 -0
  15. package/dist/devtools-client/_nuxt/DmlGWZ2X.js +1 -0
  16. package/dist/devtools-client/_nuxt/KsX6Az5B.js +1 -0
  17. package/dist/devtools-client/_nuxt/RL1np866.js +28 -0
  18. package/dist/devtools-client/_nuxt/UmWNrBO5.js +2 -0
  19. package/dist/devtools-client/_nuxt/builds/latest.json +1 -1
  20. package/dist/devtools-client/_nuxt/builds/meta/e28b96f1-78e8-41a4-ad6f-904cd078f85e.json +1 -0
  21. package/dist/devtools-client/_nuxt/{entry.CYUdJFoE.css → entry.9HJPJ6Hp.css} +1 -1
  22. package/dist/devtools-client/_nuxt/error-404.DnwL1N6v.css +1 -0
  23. package/dist/devtools-client/_nuxt/error-500.DEbXRLdm.css +1 -0
  24. package/dist/devtools-client/docs/index.html +1 -1
  25. package/dist/devtools-client/first-party/index.html +1 -1
  26. package/dist/devtools-client/index.html +1 -1
  27. package/dist/devtools-client/registry/index.html +1 -1
  28. package/dist/module.d.mts +2 -86
  29. package/dist/module.d.ts +2 -86
  30. package/dist/module.json +3 -3
  31. package/dist/module.mjs +71 -328
  32. package/dist/registry.mjs +54 -22
  33. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.d.vue.ts +1 -28
  34. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue +7 -50
  35. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue.d.ts +1 -28
  36. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.d.vue.ts +0 -8
  37. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue +1 -13
  38. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue.d.ts +0 -8
  39. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsStaticMap.d.vue.ts +4 -4
  40. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsStaticMap.vue +9 -15
  41. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsStaticMap.vue.d.ts +4 -4
  42. package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.d.ts +0 -22
  43. package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.js +0 -31
  44. package/dist/runtime/components/Leaflet/ScriptLeafletGeoJson.d.vue.ts +31 -0
  45. package/dist/runtime/components/Leaflet/ScriptLeafletGeoJson.vue +43 -0
  46. package/dist/runtime/components/Leaflet/ScriptLeafletGeoJson.vue.d.ts +31 -0
  47. package/dist/runtime/components/Leaflet/ScriptLeafletMap.d.vue.ts +90 -0
  48. package/dist/runtime/components/Leaflet/ScriptLeafletMap.vue +171 -0
  49. package/dist/runtime/components/Leaflet/ScriptLeafletMap.vue.d.ts +90 -0
  50. package/dist/runtime/components/Leaflet/ScriptLeafletMarker.d.vue.ts +47 -0
  51. package/dist/runtime/components/Leaflet/ScriptLeafletMarker.vue +70 -0
  52. package/dist/runtime/components/Leaflet/ScriptLeafletMarker.vue.d.ts +47 -0
  53. package/dist/runtime/components/Leaflet/ScriptLeafletPopup.d.vue.ts +31 -0
  54. package/dist/runtime/components/Leaflet/ScriptLeafletPopup.vue +81 -0
  55. package/dist/runtime/components/Leaflet/ScriptLeafletPopup.vue.d.ts +31 -0
  56. package/dist/runtime/components/Leaflet/ScriptLeafletTileLayer.d.vue.ts +26 -0
  57. package/dist/runtime/components/Leaflet/ScriptLeafletTileLayer.vue +38 -0
  58. package/dist/runtime/components/Leaflet/ScriptLeafletTileLayer.vue.d.ts +26 -0
  59. package/dist/runtime/components/Leaflet/useLeafletResource.d.ts +30 -0
  60. package/dist/runtime/components/Leaflet/useLeafletResource.js +46 -0
  61. package/dist/runtime/components/MapLibre/ScriptMapLibreGeoJson.d.vue.ts +39 -0
  62. package/dist/runtime/components/MapLibre/ScriptMapLibreGeoJson.vue +84 -0
  63. package/dist/runtime/components/MapLibre/ScriptMapLibreGeoJson.vue.d.ts +39 -0
  64. package/dist/runtime/components/MapLibre/ScriptMapLibreMap.d.vue.ts +122 -0
  65. package/dist/runtime/components/MapLibre/ScriptMapLibreMap.vue +214 -0
  66. package/dist/runtime/components/MapLibre/ScriptMapLibreMap.vue.d.ts +122 -0
  67. package/dist/runtime/components/MapLibre/ScriptMapLibreMarker.d.vue.ts +35 -0
  68. package/dist/runtime/components/MapLibre/ScriptMapLibreMarker.vue +98 -0
  69. package/dist/runtime/components/MapLibre/ScriptMapLibreMarker.vue.d.ts +35 -0
  70. package/dist/runtime/components/MapLibre/ScriptMapLibreNavigationControl.d.vue.ts +12 -0
  71. package/dist/runtime/components/MapLibre/ScriptMapLibreNavigationControl.vue +23 -0
  72. package/dist/runtime/components/MapLibre/ScriptMapLibreNavigationControl.vue.d.ts +12 -0
  73. package/dist/runtime/components/MapLibre/ScriptMapLibrePopup.d.vue.ts +31 -0
  74. package/dist/runtime/components/MapLibre/ScriptMapLibrePopup.vue +99 -0
  75. package/dist/runtime/components/MapLibre/ScriptMapLibrePopup.vue.d.ts +31 -0
  76. package/dist/runtime/components/MapLibre/useMapLibreResource.d.ts +23 -0
  77. package/dist/runtime/components/MapLibre/useMapLibreResource.js +41 -0
  78. package/dist/runtime/components/ScriptCrisp.vue +20 -18
  79. package/dist/runtime/components/ScriptDeskCrew.d.vue.ts +40 -0
  80. package/dist/runtime/components/ScriptDeskCrew.vue +82 -0
  81. package/dist/runtime/components/ScriptDeskCrew.vue.d.ts +40 -0
  82. package/dist/runtime/components/ScriptIntercom.vue +21 -19
  83. package/dist/runtime/components/ScriptLoadingIndicator.d.vue.ts +1 -1
  84. package/dist/runtime/components/ScriptLoadingIndicator.vue.d.ts +1 -1
  85. package/dist/runtime/components/ScriptPayPalButtons.vue +7 -3
  86. package/dist/runtime/components/ScriptPayPalMessages.vue +8 -4
  87. package/dist/runtime/composables/useScript.js +96 -49
  88. package/dist/runtime/composables/useScriptProxyUrl.d.ts +4 -8
  89. package/dist/runtime/composables/useScriptProxyUrl.js +0 -7
  90. package/dist/runtime/composables/useScriptTriggerIdleTimeout.d.ts +2 -1
  91. package/dist/runtime/composables/useScriptTriggerIdleTimeout.js +3 -34
  92. package/dist/runtime/composables/useScriptTriggerInteraction.d.ts +2 -1
  93. package/dist/runtime/composables/useScriptTriggerInteraction.js +13 -46
  94. package/dist/runtime/composables/useScriptTriggerServiceWorker.d.ts +2 -1
  95. package/dist/runtime/composables/useScriptTriggerServiceWorker.js +5 -38
  96. package/dist/runtime/leaflet-styles.d.ts +13 -0
  97. package/dist/runtime/leaflet-styles.js +684 -0
  98. package/dist/runtime/maplibre-styles.d.ts +7 -0
  99. package/dist/runtime/maplibre-styles.js +25 -0
  100. package/dist/runtime/npm-script-api-state.d.ts +4 -0
  101. package/dist/runtime/npm-script-api-state.js +13 -0
  102. package/dist/runtime/registry/crisp.d.ts +1 -1
  103. package/dist/runtime/registry/crisp.js +30 -18
  104. package/dist/runtime/registry/deskcrew.d.ts +52 -0
  105. package/dist/runtime/registry/deskcrew.js +31 -0
  106. package/dist/runtime/registry/google-analytics.d.ts +0 -2
  107. package/dist/runtime/registry/google-maps.d.ts +2 -11
  108. package/dist/runtime/registry/google-maps.js +31 -10
  109. package/dist/runtime/registry/google-tag-manager.d.ts +0 -2
  110. package/dist/runtime/registry/leaflet.d.ts +13 -0
  111. package/dist/runtime/registry/leaflet.js +29 -0
  112. package/dist/runtime/registry/maplibre.d.ts +13 -0
  113. package/dist/runtime/registry/maplibre.js +29 -0
  114. package/dist/runtime/registry/matomo-analytics.js +1 -8
  115. package/dist/runtime/registry/plausible-analytics.d.ts +4 -16
  116. package/dist/runtime/registry/plausible-analytics.js +15 -58
  117. package/dist/runtime/registry/rybbit-analytics.d.ts +0 -4
  118. package/dist/runtime/registry/rybbit-analytics.js +1 -4
  119. package/dist/runtime/registry/schemas.d.ts +61 -5
  120. package/dist/runtime/registry/schemas.js +64 -5
  121. package/dist/runtime/registry/tiktok-pixel.d.ts +2 -12
  122. package/dist/runtime/registry/tiktok-pixel.js +1 -1
  123. package/dist/runtime/registry/usercentrics.js +46 -6
  124. package/dist/runtime/registry/youtube-player.d.ts +3 -4
  125. package/dist/runtime/registry/youtube-player.js +30 -23
  126. package/dist/runtime/server/bluesky-embed-image.d.ts +1 -1
  127. package/dist/runtime/server/bluesky-embed.d.ts +1 -1
  128. package/dist/runtime/server/bluesky-embed.js +3 -6
  129. package/dist/runtime/server/gravatar-proxy.d.ts +1 -1
  130. package/dist/runtime/server/gravatar-proxy.js +2 -3
  131. package/dist/runtime/server/instagram-embed-asset.d.ts +1 -1
  132. package/dist/runtime/server/instagram-embed-image.d.ts +1 -1
  133. package/dist/runtime/server/instagram-embed.d.ts +1 -1
  134. package/dist/runtime/server/instagram-embed.js +4 -7
  135. package/dist/runtime/server/utils/cached-upstream.d.ts +4 -11
  136. package/dist/runtime/server/utils/embed-rewriters.d.ts +3 -5
  137. package/dist/runtime/server/utils/embed-rewriters.js +8 -8
  138. package/dist/runtime/server/utils/image-proxy.d.ts +1 -1
  139. package/dist/runtime/server/utils/image-proxy.js +2 -3
  140. package/dist/runtime/server/utils/instagram-embed.d.ts +6 -6
  141. package/dist/runtime/server/utils/instagram-embed.js +18 -19
  142. package/dist/runtime/server/utils/proxy-url.d.ts +5 -6
  143. package/dist/runtime/server/utils/proxy-url.js +1 -4
  144. package/dist/runtime/server/x-embed-image.d.ts +1 -1
  145. package/dist/runtime/server/x-embed.d.ts +48 -1
  146. package/dist/runtime/server/x-embed.js +3 -6
  147. package/dist/runtime/types.d.ts +13 -13
  148. package/dist/runtime/utils/abortable-promise.js +26 -5
  149. package/dist/runtime/utils/nuxt-ready-script-trigger.d.ts +3 -0
  150. package/dist/runtime/utils/nuxt-ready-script-trigger.js +16 -0
  151. package/dist/runtime/utils.js +21 -32
  152. package/dist/stats.mjs +13 -0
  153. package/dist/types-source.mjs +1173 -100
  154. package/dist/types.d.mts +2 -2
  155. package/package.json +34 -21
  156. package/LICENSE.md +0 -9
  157. package/bin/cli.mjs +0 -2
  158. package/dist/cli.d.mts +0 -2
  159. package/dist/cli.d.ts +0 -2
  160. package/dist/cli.mjs +0 -50
  161. package/dist/devtools-client/_nuxt/8ltZ0o6d.js +0 -1
  162. package/dist/devtools-client/_nuxt/B8_EBdhg.js +0 -152
  163. package/dist/devtools-client/_nuxt/BKdLzFmX.js +0 -3
  164. package/dist/devtools-client/_nuxt/Bf2Kt1P0.js +0 -28
  165. package/dist/devtools-client/_nuxt/CC0GKROJ.js +0 -1
  166. package/dist/devtools-client/_nuxt/CH5oUfNi.js +0 -1
  167. package/dist/devtools-client/_nuxt/CMXzQxJZ.js +0 -1
  168. package/dist/devtools-client/_nuxt/CP7c-Js6.js +0 -8
  169. package/dist/devtools-client/_nuxt/C_v3_O0R.js +0 -6
  170. package/dist/devtools-client/_nuxt/CxN78VhB.js +0 -1
  171. package/dist/devtools-client/_nuxt/Dkc7iTdR.js +0 -1
  172. package/dist/devtools-client/_nuxt/builds/meta/35e54cbc-079c-4313-8838-34632d9dac97.json +0 -1
  173. package/dist/devtools-client/_nuxt/error-404.Bq2JQbJs.css +0 -1
  174. package/dist/devtools-client/_nuxt/error-500.5E_FOzlc.css +0 -1
  175. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.d.vue.ts +0 -13
  176. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue +0 -15
  177. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue.d.ts +0 -13
  178. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.d.vue.ts +0 -27
  179. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue +0 -34
  180. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue.d.ts +0 -27
  181. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.d.vue.ts +0 -13
  182. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue +0 -11
  183. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue.d.ts +0 -13
  184. package/dist/runtime/components/GoogleMaps/bindGoogleMapsEvents.d.ts +0 -13
  185. package/dist/runtime/components/GoogleMaps/bindGoogleMapsEvents.js +0 -8
  186. package/dist/runtime/components/GoogleMaps/injectionKeys.d.ts +0 -10
  187. package/dist/runtime/components/GoogleMaps/injectionKeys.js +0 -2
  188. package/dist/runtime/composables/useScriptProxyToken.d.ts +0 -12
  189. package/dist/runtime/composables/useScriptProxyToken.js +0 -4
  190. package/dist/runtime/npm-script-stub.d.ts +0 -20
  191. package/dist/runtime/npm-script-stub.js +0 -72
  192. package/dist/runtime/plugins/proxy-token.server.d.ts +0 -10
  193. package/dist/runtime/plugins/proxy-token.server.js +0 -17
  194. package/dist/runtime/server/google-maps-geocode-proxy.d.ts +0 -2
  195. package/dist/runtime/server/google-maps-geocode-proxy.js +0 -43
  196. package/dist/runtime/server/google-static-maps-proxy.d.ts +0 -2
  197. package/dist/runtime/server/google-static-maps-proxy.js +0 -56
  198. package/dist/runtime/server/utils/proxy-query.d.ts +0 -2
  199. package/dist/runtime/server/utils/proxy-query.js +0 -10
  200. package/dist/runtime/server/utils/sign-constants.d.ts +0 -16
  201. package/dist/runtime/server/utils/sign-constants.js +0 -5
  202. package/dist/runtime/server/utils/sign.d.ts +0 -101
  203. package/dist/runtime/server/utils/sign.js +0 -91
  204. package/dist/runtime/server/utils/withSigning.d.ts +0 -23
  205. package/dist/runtime/server/utils/withSigning.js +0 -19
  206. package/dist/runtime/unhead-features.d.ts +0 -1
  207. package/dist/runtime/unhead-features.js +0 -3
package/dist/types.d.mts CHANGED
@@ -6,6 +6,6 @@ declare module '@nuxt/schema' {
6
6
 
7
7
  export { type FirstPartyPrivacy } from '../dist/runtime/types.js'
8
8
 
9
- export { type applyAutoInject, default, type findMissingRequiredFields, type isProxyDisabled, type resolveConfiguredProxyDomains, type resolveProxySecret } from './module.mjs'
9
+ export { type applyAutoInject, default, type findMissingRequiredFields, type isProxyDisabled, type resolveConfiguredProxyDomains } from './module.mjs'
10
10
 
11
- export { type ModuleHooks, type ModuleOptions, type ResolvedProxySecret } from './module.mjs'
11
+ export { type ModuleHooks, type ModuleOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "1.3.6",
4
+ "version": "2.0.0-beta.1",
5
5
  "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -45,16 +45,17 @@
45
45
  ]
46
46
  }
47
47
  },
48
- "bin": {
49
- "nuxt-scripts": "./bin/cli.mjs"
50
- },
51
48
  "files": [
52
- "bin",
49
+ "THIRD_PARTY_LICENSES.md",
53
50
  "dist"
54
51
  ],
52
+ "engines": {
53
+ "node": ">=24.0.0"
54
+ },
55
55
  "build": {
56
56
  "externals": [
57
57
  "@unhead/vue",
58
+ "unhead",
58
59
  "@unhead/schema",
59
60
  "knitwork",
60
61
  "#build/modules/nuxt-scripts-gtm",
@@ -70,14 +71,18 @@
70
71
  },
71
72
  "peerDependencies": {
72
73
  "@googlemaps/markerclusterer": "^2.6.2",
73
- "@paypal/paypal-js": "^8.1.2 || ^9.0.0",
74
+ "@paypal/paypal-js": "^10.0.0",
74
75
  "@speedcurve/lux": "^4.4.3",
75
76
  "@stripe/stripe-js": "^7.0.0 || ^8.0.0 || ^9.0.0",
77
+ "@types/geojson": "^7946.0.0",
76
78
  "@types/google.maps": "^3.58.1",
79
+ "@types/leaflet": "^1.9.0",
77
80
  "@types/vimeo__player": "^2.18.3",
78
81
  "@types/youtube": "^0.1.0",
79
- "@unhead/vue": "^2.0.3 || ^3.0.0",
80
- "posthog-js": "^1.0.0"
82
+ "@unhead/vue": "^3.3.1",
83
+ "maplibre-gl": "^5.24.0",
84
+ "posthog-js": "^1.0.0",
85
+ "unhead": "^3.3.1"
81
86
  },
82
87
  "peerDependenciesMeta": {
83
88
  "@googlemaps/markerclusterer": {
@@ -92,16 +97,22 @@
92
97
  "@stripe/stripe-js": {
93
98
  "optional": true
94
99
  },
100
+ "@types/geojson": {
101
+ "optional": true
102
+ },
95
103
  "@types/google.maps": {
96
104
  "optional": true
97
105
  },
106
+ "@types/leaflet": {
107
+ "optional": true
108
+ },
98
109
  "@types/vimeo__player": {
99
110
  "optional": true
100
111
  },
101
112
  "@types/youtube": {
102
113
  "optional": true
103
114
  },
104
- "@unhead/vue": {
115
+ "maplibre-gl": {
105
116
  "optional": true
106
117
  },
107
118
  "posthog-js": {
@@ -109,35 +120,37 @@
109
120
  }
110
121
  },
111
122
  "dependencies": {
112
- "@nuxt/devtools-kit": "^3.2.4",
113
- "@vueuse/core": "^14.3.0",
114
- "@vueuse/shared": "^14.3.0",
123
+ "@nuxt/devtools-kit": "^3.4.1",
124
+ "@vueuse/core": "^14.4.0",
125
+ "@vueuse/shared": "^14.4.0",
115
126
  "consola": "^3.4.2",
116
127
  "defu": "^6.1.7",
117
128
  "h3": "^1.15.11",
118
- "magic-string": "^1.0.0",
129
+ "magic-string": "^1.1.0",
119
130
  "ofetch": "^1.5.1",
120
131
  "ohash": "^2.0.11",
121
- "oxc-parser": "^0.140.0",
122
- "oxc-walker": "^1.0.0",
132
+ "oxc-parser": "^0.143.0",
133
+ "oxc-walker": "^1.1.1",
123
134
  "pathe": "^2.0.3",
124
- "pkg-types": "^2.3.1",
135
+ "semver": "^7.8.5",
125
136
  "sirv": "^3.0.2",
126
137
  "std-env": "^4.2.0",
127
138
  "ufo": "^1.6.4",
128
139
  "ultrahtml": "^1.7.0",
129
- "undici": "^6.27.0",
140
+ "undici": "^8.10.0",
130
141
  "unplugin": "^3.3.0",
131
142
  "unstorage": "^1.17.5",
132
143
  "valibot": "^1.4.2"
133
144
  },
134
145
  "devDependencies": {
135
- "@nuxt/kit": "^4.5.0",
136
- "@nuxt/module-builder": "^1.0.2",
146
+ "@nuxt/kit": "^4.5.1",
147
+ "@nuxt/module-builder": "^1.0.3",
137
148
  "@speedcurve/lux": "^4.4.3",
138
- "rollup": "^4.62.2",
149
+ "@unhead/vue": "^3.3.1",
150
+ "rollup": "^4.62.4",
139
151
  "unbuild": "^3.6.1",
140
- "unimport": "^6.3.0"
152
+ "unhead": "^3.3.1",
153
+ "unimport": "^6.4.0"
141
154
  },
142
155
  "scripts": {
143
156
  "build": "nuxt-module-build build",
package/LICENSE.md DELETED
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Nuxt Team
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/bin/cli.mjs DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import('../dist/cli.mjs')
package/dist/cli.d.mts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { };
package/dist/cli.d.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { };
package/dist/cli.mjs DELETED
@@ -1,50 +0,0 @@
1
- import { randomBytes } from 'node:crypto';
2
- import process from 'node:process';
3
-
4
- function generateSecret() {
5
- const secret = randomBytes(32).toString("hex");
6
- process.stdout.write(
7
- [
8
- "",
9
- " @nuxt/scripts: proxy signing secret",
10
- "",
11
- ` Secret: ${secret}`,
12
- "",
13
- " Add this to your environment:",
14
- ` NUXT_SCRIPTS_PROXY_SECRET=${secret}`,
15
- "",
16
- " The secret is automatically picked up by the module via runtime config.",
17
- " It must be the same across all deployments and prerender builds so that",
18
- " signed URLs remain valid.",
19
- "",
20
- ""
21
- ].join("\n")
22
- );
23
- }
24
- function showHelp() {
25
- process.stdout.write(
26
- [
27
- "",
28
- " @nuxt/scripts CLI",
29
- "",
30
- " Usage: npx @nuxt/scripts <command>",
31
- "",
32
- " Commands:",
33
- " generate-secret Generate a signing secret for proxy URL tamper protection",
34
- " help Show this help",
35
- "",
36
- ""
37
- ].join("\n")
38
- );
39
- }
40
- const command = process.argv[2];
41
- if (!command || command === "help" || command === "--help" || command === "-h") {
42
- showHelp();
43
- } else if (command === "generate-secret") {
44
- generateSecret();
45
- } else {
46
- process.stderr.write(`Unknown command: ${command}
47
- `);
48
- showHelp();
49
- process.exit(1);
50
- }
@@ -1 +0,0 @@
1
- import{D as e,E as t,On as n,T as r,Zn as i,_ as a,b as o,bt as s,k as c,mt as l,o as u,qt as d,tr as f,v as p,y as m}from"./BKdLzFmX.js";import{et as h,p as g,t as _}from"./CP7c-Js6.js";import{t as v}from"./BDNMzG2s.js";var y={class:`py-1`},b={key:0,class:`panel-grids rounded-xl flex flex-col items-center justify-center py-16 gap-3`},x={class:`w-12 h-12 rounded-xl bg-(--color-surface-elevated) border border-(--color-border) flex items-center justify-center`},S={class:`stagger-children space-y-1.5`},C={class:`px-3.5 py-2.5 flex items-center gap-3`},w={class:`w-7 h-7 rounded-lg bg-(--color-surface-sunken) border border-(--color-border-subtle) flex items-center justify-center flex-shrink-0 overflow-hidden`},T=[`src`],E=[`innerHTML`],D={class:`flex-1 min-w-0`},O={class:`flex items-center gap-2`},k={class:`text-[13px] font-semibold tracking-tight truncate`},A={class:`text-[10px] px-1.5 py-0.5 rounded-full bg-(--color-surface-sunken) text-(--color-text-subtle) font-medium flex-shrink-0`},j={key:0,class:`text-[10px] font-mono text-(--color-text-subtle) truncate mt-0.5`},M={key:1,class:`text-[10px] font-mono text-(--color-text-subtle) mt-0.5`},N={class:`flex items-center gap-1 flex-shrink-0`},P={class:`text-xs space-y-0.5`},F={class:`font-semibold`},I={class:`opacity-70`},ee={class:`opacity-50 mt-1 max-w-48 text-[11px]`},L=[`href`],R={key:0,class:`mt-5 card overflow-hidden`},z={class:`px-4 py-2.5 border-b border-(--color-border-subtle)`},B={class:`text-xs font-semibold uppercase tracking-wider text-(--color-text-subtle) flex items-center gap-1.5`},V={class:`overflow-x-auto`},H={class:`w-full text-xs`},U={class:`border-b border-(--color-border-subtle)`},W={class:`inline-flex items-center justify-center gap-1`},G={class:`px-4 py-2 font-medium whitespace-nowrap`},K={class:`flex items-center gap-2`},q=[`src`],J=[`innerHTML`],Y=v(c({__name:`registry`,setup(c){let v=[{key:`bundle`,label:`Bundle`,icon:`i-carbon-archive`,desc:`Downloaded at build time, served from your domain`},{key:`proxy`,label:`Proxy`,icon:`i-carbon-security`,desc:`Collection requests routed through your server`},{key:`partytown`,label:`Partytown`,icon:`i-carbon-container-software`,desc:`Can run in a web worker via Partytown`}];function Y(e,t){return e.capabilities?.[t]?e.defaultCapability?.[t]?`active`:`available`:`off`}function X(e){return e===`active`?`Active by default`:e===`available`?`Supported (opt-in)`:`Not supported`}return(c,Z)=>{let Q=g,$=_;return l(),o(`div`,y,[n(h)?.length?(l(),o(u,{key:1},[Z[3]||=r(`<div class="flex items-center gap-4 mb-3 px-0.5" data-v-3f8fca8a><div class="flex items-center gap-1.5 text-[10px] font-medium text-(--color-text-subtle)" data-v-3f8fca8a><span class="cap-dot cap-dot-active" data-v-3f8fca8a></span> Active by default </div><div class="flex items-center gap-1.5 text-[10px] font-medium text-(--color-text-subtle)" data-v-3f8fca8a><span class="cap-dot cap-dot-available" data-v-3f8fca8a></span> Supported (opt-in) </div><div class="flex items-center gap-1.5 text-[10px] font-medium text-(--color-text-subtle)" data-v-3f8fca8a><span class="cap-dot cap-dot-off" data-v-3f8fca8a></span> Not supported </div></div>`,1),a(`div`,S,[(l(!0),o(u,null,s(n(h),(t,n)=>(l(),o(`div`,{key:n,class:`registry-row group`},[a(`div`,C,[a(`div`,w,[t.logo&&typeof t.logo==`string`&&t.logo.startsWith(`http`)?(l(),o(`img`,{key:0,class:`w-5 h-5 object-contain`,src:typeof t.logo==`object`?t.logo.dark||t.logo.light:t.logo,alt:``},null,8,T)):t.logo?(l(),o(`div`,{key:1,class:`w-5 h-5 flex items-center [&>svg]:max-h-5 [&>svg]:max-w-5`,innerHTML:typeof t.logo==`object`?t.logo.dark||t.logo.light:t.logo},null,8,E)):(l(),p(Q,{key:2,name:`i-carbon-script`,class:`text-sm text-(--color-text-subtle)`}))]),a(`div`,D,[a(`div`,O,[a(`span`,k,f(t.label),1),a(`span`,A,f(t.category),1)]),t.src&&t.src!==!1?(l(),o(`div`,j,f(t.src),1)):t.src===!1?(l(),o(`div`,M,` npm (no script download) `)):m(``,!0)]),a(`div`,N,[(l(),o(u,null,s(v,n=>e($,{key:n.key},{content:d(()=>[a(`div`,P,[a(`div`,F,f(n.label),1),a(`div`,I,f(X(Y(t,n.key))),1),a(`div`,ee,f(n.desc),1)])]),default:d(()=>[a(`div`,{class:i([`cap-indicator`,`cap-${Y(t,n.key)}`])},[e(Q,{name:n.icon,class:`text-xs`},null,8,[`name`])],2)]),_:2},1024)),64))]),a(`a`,{href:`https://scripts.nuxt.com/scripts/${t.label.toLowerCase().replace(/ /g,`-`)}`,target:`_blank`,class:`opacity-0 group-hover:opacity-60 focus-visible:opacity-60 transition-opacity flex-shrink-0`,"aria-label":`View documentation`},[e(Q,{name:`i-carbon-launch`,class:`text-sm`})],8,L)])]))),128))]),n(h).length>3?(l(),o(`div`,R,[a(`div`,z,[a(`h4`,B,[e(Q,{name:`i-carbon-data-table`,class:`text-sm`}),Z[1]||=t(` Capability Matrix `,-1)])]),a(`div`,V,[a(`table`,H,[a(`thead`,null,[a(`tr`,U,[Z[2]||=a(`th`,{class:`px-4 py-2 text-left font-medium text-(--color-text-subtle)`},` Script `,-1),(l(),o(u,null,s(v,n=>a(`th`,{key:n.key,class:`px-3 py-2 text-center font-medium text-(--color-text-subtle) whitespace-nowrap`},[e($,{text:n.desc},{default:d(()=>[a(`span`,W,[e(Q,{name:n.icon,class:`text-xs`},null,8,[`name`]),t(` `+f(n.label),1)])]),_:2},1032,[`text`])])),64))])]),a(`tbody`,null,[(l(!0),o(u,null,s(n(h),n=>(l(),o(`tr`,{key:n.registryKey||n.label,class:`border-b border-(--color-border-subtle) last:border-b-0 hover:bg-(--color-surface-sunken) transition-colors`},[a(`td`,G,[a(`div`,K,[n.logo&&typeof n.logo==`string`&&n.logo.startsWith(`http`)?(l(),o(`img`,{key:0,class:`w-4 h-4 object-contain`,src:typeof n.logo==`object`?n.logo.dark||n.logo.light:n.logo,alt:``},null,8,q)):n.logo?(l(),o(`div`,{key:1,class:`w-4 h-4 flex items-center [&>svg]:max-h-4 [&>svg]:max-w-4`,innerHTML:typeof n.logo==`object`?n.logo.dark||n.logo.light:n.logo},null,8,J)):(l(),p(Q,{key:2,name:`i-carbon-script`,class:`text-xs text-(--color-text-subtle)`})),t(` `+f(n.label),1)])]),(l(),o(u,null,s(v,t=>a(`td`,{key:t.key,class:`px-3 py-2 text-center`},[e($,{text:X(Y(n,t.key))},{default:d(()=>[a(`div`,{class:i([`cap-dot mx-auto`,`cap-dot-${Y(n,t.key)}`])},null,2)]),_:2},1032,[`text`])])),64))]))),128))])])])])):m(``,!0)],64)):(l(),o(`div`,b,[a(`div`,x,[e(Q,{name:`i-carbon-catalog`,class:`text-2xl text-(--color-text-subtle)`})]),Z[0]||=a(`p`,{class:`text-sm font-medium text-(--color-text-muted)`},` No registry scripts available `,-1)]))])}}}),[[`__scopeId`,`data-v-3f8fca8a`]]);export{Y as default};