@nuxt/scripts 1.0.0-rc.5 → 1.0.0-rc.6

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 (31) hide show
  1. package/dist/devtools-client/200.html +1 -1
  2. package/dist/devtools-client/404.html +1 -1
  3. package/dist/devtools-client/_nuxt/{DoF6byDH.js → B7jHEBMT.js} +1 -1
  4. package/dist/devtools-client/_nuxt/{D838xXrH.js → BaiqmiV1.js} +1 -1
  5. package/dist/devtools-client/_nuxt/{Duf9abe1.js → BjmZlwuw.js} +1 -1
  6. package/dist/devtools-client/_nuxt/{BfQVeAez.js → CLjOeO0G.js} +1 -1
  7. package/dist/devtools-client/_nuxt/{C7-YRs3P.js → Chi3DhDl.js} +1 -1
  8. package/dist/devtools-client/_nuxt/{CL6TeQIJ.js → HLYrIHDq.js} +31 -31
  9. package/dist/devtools-client/_nuxt/builds/latest.json +1 -1
  10. package/dist/devtools-client/_nuxt/builds/meta/640f0a39-e659-4a31-8b8d-adbd9af52f1e.json +1 -0
  11. package/dist/devtools-client/_nuxt/error-404.Dwj0Wlzm.css +1 -0
  12. package/dist/devtools-client/_nuxt/error-500.B4wHUYBa.css +1 -0
  13. package/dist/devtools-client/_nuxt/{BFtOB2Ap.js → qfgRjj7S.js} +1 -1
  14. package/dist/devtools-client/docs/index.html +1 -1
  15. package/dist/devtools-client/first-party/index.html +1 -1
  16. package/dist/devtools-client/index.html +1 -1
  17. package/dist/devtools-client/registry/index.html +1 -1
  18. package/dist/module.json +1 -1
  19. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.d.vue.ts +73 -93
  20. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue +65 -57
  21. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue.d.ts +73 -93
  22. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.d.vue.ts +49 -28
  23. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue +143 -103
  24. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue.d.ts +49 -28
  25. package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.d.ts +50 -0
  26. package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.js +76 -1
  27. package/dist/types-source.mjs +2 -198
  28. package/package.json +2 -2
  29. package/dist/devtools-client/_nuxt/builds/meta/03a9e297-6209-4281-8c3d-4265bdd5d038.json +0 -1
  30. package/dist/devtools-client/_nuxt/error-404.BGYgyi5Q.css +0 -1
  31. package/dist/devtools-client/_nuxt/error-500.7RpV0mcx.css +0 -1
@@ -216,17 +216,7 @@ const types = {
216
216
  {
217
217
  name: "ScriptGoogleMapsProps",
218
218
  kind: "interface",
219
- code: "interface ScriptGoogleMapsProps {\n /**\n * Defines the trigger event to load the script.\n */\n trigger?: ElementScriptTrigger\n /**\n * Defines the Google Maps API key. Must have access to the Static Maps API as well.\n */\n apiKey?: string\n /**\n * A latitude / longitude of where to focus the map.\n */\n center?: google.maps.LatLng | google.maps.LatLngLiteral | `${string},${string}`\n /**\n * Zoom level for the map (0-21). Reactive: changing this will update the map.\n * Takes precedence over mapOptions.zoom when provided.\n */\n zoom?: number\n /**\n * Options for the map.\n */\n mapOptions?: google.maps.MapOptions\n /**\n * Defines the region of the map.\n */\n region?: string\n /**\n * Defines the language of the map\n */\n language?: string\n /**\n * Defines the version of google maps js API\n */\n version?: string\n /**\n * Defines the width of the map.\n */\n width?: number | string\n /**\n * Defines the height of the map\n */\n height?: number | string\n /**\n * Customize the root element attributes.\n */\n rootAttrs?: HTMLAttributes & ReservedProps & Record<string, unknown>\n /**\n * Map IDs for light and dark color modes.\n * When provided, the map will automatically switch styles based on color mode.\n * Requires @nuxtjs/color-mode or manual colorMode prop.\n */\n mapIds?: { light?: string, dark?: string }\n /**\n * Manual color mode control. When provided, overrides auto-detection from @nuxtjs/color-mode.\n * Accepts 'light', 'dark', or a reactive ref.\n */\n colorMode?: 'light' | 'dark'\n}"
220
- },
221
- {
222
- name: "ScriptGoogleMapsEvents",
223
- kind: "interface",
224
- code: "interface ScriptGoogleMapsEvents {\n ready: typeof googleMaps\n error: -\n}"
225
- },
226
- {
227
- name: "ScriptGoogleMapsSlots",
228
- kind: "interface",
229
- code: "interface ScriptGoogleMapsSlots {\n default?: () => any\n placeholder?: () => any\n loading?: () => any\n awaitingLoad?: () => any\n error?: () => any\n}"
219
+ code: "interface ScriptGoogleMapsProps ScriptGoogleMapsProps"
230
220
  },
231
221
  {
232
222
  name: "ScriptGoogleMapsCircleProps",
@@ -301,12 +291,7 @@ const types = {
301
291
  {
302
292
  name: "ScriptGoogleMapsOverlayViewProps",
303
293
  kind: "interface",
304
- code: "interface ScriptGoogleMapsOverlayViewProps {\n /**\n * Geographic position for the overlay. Falls back to parent marker position if omitted.\n * @see https://developers.google.com/maps/documentation/javascript/reference/overlay-view#OverlayView\n */\n position?: google.maps.LatLngLiteral\n /**\n * Anchor point of the overlay relative to its position.\n * @default 'bottom-center'\n */\n anchor?: OverlayAnchor\n /**\n * Pixel offset from the anchor position.\n */\n offset?: { x: number, y: number }\n /**\n * The map pane on which to render the overlay.\n * @default 'floatPane'\n * @see https://developers.google.com/maps/documentation/javascript/reference/overlay-view#MapPanes\n */\n pane?: OverlayPane\n /**\n * CSS z-index for the overlay element.\n */\n zIndex?: number\n /**\n * Whether to block map click and gesture events from passing through the overlay.\n * @default true\n */\n blockMapInteraction?: boolean\n /**\n * Pan the map so the overlay is fully visible when opened, similar to InfoWindow behavior.\n * Set to `true` for default 40px padding, or a number for custom padding.\n * @default true\n */\n panOnOpen?: boolean | number\n /**\n * Automatically hide the overlay when its parent marker joins a cluster (on zoom out).\n * Only applies when nested inside a ScriptGoogleMapsMarkerClusterer.\n * @default true\n */\n hideWhenClustered?: boolean\n}"
305
- },
306
- {
307
- name: "ScriptGoogleMapsOverlayViewSlots",
308
- kind: "interface",
309
- code: "interface ScriptGoogleMapsOverlayViewSlots {\n default?: () => any\n}"
294
+ code: "interface ScriptGoogleMapsOverlayViewProps ScriptGoogleMapsOverlayViewProps"
310
295
  },
311
296
  {
312
297
  name: "ScriptGoogleMapsPolygonProps",
@@ -2144,127 +2129,6 @@ const schemaFields = {
2144
2129
  defaultValue: "'g'"
2145
2130
  }
2146
2131
  ],
2147
- ScriptGoogleMapsProps: [
2148
- {
2149
- name: "trigger",
2150
- type: "ElementScriptTrigger",
2151
- required: false,
2152
- description: "Defines the trigger event to load the script."
2153
- },
2154
- {
2155
- name: "apiKey",
2156
- type: "string",
2157
- required: false,
2158
- description: "Defines the Google Maps API key. Must have access to the Static Maps API as well."
2159
- },
2160
- {
2161
- name: "center",
2162
- type: "google.maps.LatLng | google.maps.LatLngLiteral | `${string},${string}`",
2163
- required: false,
2164
- description: "A latitude / longitude of where to focus the map."
2165
- },
2166
- {
2167
- name: "zoom",
2168
- type: "number",
2169
- required: false,
2170
- description: "Zoom level for the map (0-21). Reactive: changing this will update the map. Takes precedence over mapOptions.zoom when provided."
2171
- },
2172
- {
2173
- name: "mapOptions",
2174
- type: "google.maps.MapOptions",
2175
- required: false,
2176
- description: "Options for the map."
2177
- },
2178
- {
2179
- name: "region",
2180
- type: "string",
2181
- required: false,
2182
- description: "Defines the region of the map."
2183
- },
2184
- {
2185
- name: "language",
2186
- type: "string",
2187
- required: false,
2188
- description: "Defines the language of the map"
2189
- },
2190
- {
2191
- name: "version",
2192
- type: "string",
2193
- required: false,
2194
- description: "Defines the version of google maps js API"
2195
- },
2196
- {
2197
- name: "width",
2198
- type: "number | string",
2199
- required: false,
2200
- description: "Defines the width of the map."
2201
- },
2202
- {
2203
- name: "height",
2204
- type: "number | string",
2205
- required: false,
2206
- description: "Defines the height of the map"
2207
- },
2208
- {
2209
- name: "rootAttrs",
2210
- type: "HTMLAttributes & ReservedProps & Record<string, unknown>",
2211
- required: false,
2212
- description: "Customize the root element attributes."
2213
- },
2214
- {
2215
- name: "mapIds",
2216
- type: "{ light?: string, dark?: string }",
2217
- required: false,
2218
- description: "Map IDs for light and dark color modes. When provided, the map will automatically switch styles based on color mode. Requires @nuxtjs/color-mode or manual colorMode prop."
2219
- },
2220
- {
2221
- name: "colorMode",
2222
- type: "'light' | 'dark'",
2223
- required: false,
2224
- description: "Manual color mode control. When provided, overrides auto-detection from @nuxtjs/color-mode. Accepts 'light', 'dark', or a reactive ref."
2225
- }
2226
- ],
2227
- ScriptGoogleMapsEvents: [
2228
- {
2229
- name: "ready",
2230
- type: "typeof googleMaps",
2231
- required: false,
2232
- description: "Fired when the Google Maps instance is fully loaded and ready to use. Provides access to the maps API."
2233
- },
2234
- {
2235
- name: "error",
2236
- type: "-",
2237
- required: false,
2238
- description: "Fired when the Google Maps script fails to load."
2239
- }
2240
- ],
2241
- ScriptGoogleMapsSlots: [
2242
- {
2243
- name: "default",
2244
- type: "-",
2245
- required: false
2246
- },
2247
- {
2248
- name: "placeholder",
2249
- type: "-",
2250
- required: false
2251
- },
2252
- {
2253
- name: "loading",
2254
- type: "-",
2255
- required: false
2256
- },
2257
- {
2258
- name: "awaitingLoad",
2259
- type: "-",
2260
- required: false
2261
- },
2262
- {
2263
- name: "error",
2264
- type: "-",
2265
- required: false
2266
- }
2267
- ],
2268
2132
  ScriptGoogleMapsCircleProps: [
2269
2133
  {
2270
2134
  name: "options",
@@ -2619,72 +2483,12 @@ const schemaFields = {
2619
2483
  }
2620
2484
  ],
2621
2485
  ScriptGoogleMapsOverlayViewProps: [
2622
- {
2623
- name: "position",
2624
- type: "google.maps.LatLngLiteral",
2625
- required: false,
2626
- description: "Geographic position for the overlay. Falls back to parent marker position if omitted."
2627
- },
2628
- {
2629
- name: "anchor",
2630
- type: "OverlayAnchor",
2631
- required: false,
2632
- description: "Anchor point of the overlay relative to its position.",
2633
- defaultValue: "'bottom-center'"
2634
- },
2635
- {
2636
- name: "offset",
2637
- type: "{ x: number, y: number }",
2638
- required: false,
2639
- description: "Pixel offset from the anchor position."
2640
- },
2641
- {
2642
- name: "pane",
2643
- type: "OverlayPane",
2644
- required: false,
2645
- description: "The map pane on which to render the overlay.",
2646
- defaultValue: "'floatPane'"
2647
- },
2648
- {
2649
- name: "zIndex",
2650
- type: "number",
2651
- required: false,
2652
- description: "CSS z-index for the overlay element."
2653
- },
2654
- {
2655
- name: "blockMapInteraction",
2656
- type: "boolean",
2657
- required: false,
2658
- description: "Whether to block map click and gesture events from passing through the overlay.",
2659
- defaultValue: "true"
2660
- },
2661
- {
2662
- name: "panOnOpen",
2663
- type: "boolean | number",
2664
- required: false,
2665
- description: "Pan the map so the overlay is fully visible when opened, similar to InfoWindow behavior. Set to `true` for default 40px padding, or a number for custom padding.",
2666
- defaultValue: "true"
2667
- },
2668
- {
2669
- name: "hideWhenClustered",
2670
- type: "boolean",
2671
- required: false,
2672
- description: "Automatically hide the overlay when its parent marker joins a cluster (on zoom out). Only applies when nested inside a ScriptGoogleMapsMarkerClusterer.",
2673
- defaultValue: "true"
2674
- },
2675
2486
  {
2676
2487
  name: "v-model:open",
2677
2488
  type: "boolean",
2678
2489
  required: false
2679
2490
  }
2680
2491
  ],
2681
- ScriptGoogleMapsOverlayViewSlots: [
2682
- {
2683
- name: "default",
2684
- type: "-",
2685
- required: false
2686
- }
2687
- ],
2688
2492
  ScriptGoogleMapsPolygonProps: [
2689
2493
  {
2690
2494
  name: "options",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.5",
4
+ "version": "1.0.0-rc.6",
5
5
  "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -67,7 +67,7 @@
67
67
  "peerDependencies": {
68
68
  "@googlemaps/markerclusterer": "^2.6.2",
69
69
  "@paypal/paypal-js": "^8.1.2 || ^9.0.0",
70
- "@stripe/stripe-js": "^7.0.0 || ^8.0.0",
70
+ "@stripe/stripe-js": "^7.0.0 || ^8.0.0 || ^9.0.0",
71
71
  "@types/google.maps": "^3.58.1",
72
72
  "@types/vimeo__player": "^2.18.3",
73
73
  "@types/youtube": "^0.1.0",
@@ -1 +0,0 @@
1
- {"id":"03a9e297-6209-4281-8c3d-4265bdd5d038","timestamp":1775569702087,"prerendered":[]}
@@ -1 +0,0 @@
1
- .grid[data-v-61dcd2d1]{display:grid}.mb-2[data-v-61dcd2d1]{margin-bottom:.5rem}.mb-4[data-v-61dcd2d1]{margin-bottom:1rem}.max-w-520px[data-v-61dcd2d1]{max-width:520px}.min-h-screen[data-v-61dcd2d1]{min-height:100vh}.w-full[data-v-61dcd2d1]{width:100%}.flex[data-v-61dcd2d1]{display:flex}.place-content-center[data-v-61dcd2d1]{place-content:center}.items-center[data-v-61dcd2d1]{align-items:center}.justify-center[data-v-61dcd2d1]{justify-content:center}.overflow-hidden[data-v-61dcd2d1]{overflow:hidden}.bg-white[data-v-61dcd2d1]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-61dcd2d1]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-61dcd2d1]{text-align:center}.text-\[80px\][data-v-61dcd2d1]{font-size:80px}.text-2xl[data-v-61dcd2d1]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-61dcd2d1]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-61dcd2d1]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-61dcd2d1]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-61dcd2d1]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-61dcd2d1]{font-weight:500}.font-semibold[data-v-61dcd2d1]{font-weight:600}.leading-none[data-v-61dcd2d1]{line-height:1}.tracking-wide[data-v-61dcd2d1]{letter-spacing:.025em}.font-sans[data-v-61dcd2d1]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-61dcd2d1]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-61dcd2d1]{text-decoration-line:underline}.underline-offset-3[data-v-61dcd2d1]{text-underline-offset:3px}.antialiased[data-v-61dcd2d1]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-61dcd2d1]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-61dcd2d1]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-61dcd2d1]{font-size:110px}.sm\:text-3xl[data-v-61dcd2d1]{font-size:1.875rem;line-height:2.25rem}}
@@ -1 +0,0 @@
1
- .grid[data-v-3febd30d]{display:grid}.mb-2[data-v-3febd30d]{margin-bottom:.5rem}.mb-4[data-v-3febd30d]{margin-bottom:1rem}.max-w-520px[data-v-3febd30d]{max-width:520px}.min-h-screen[data-v-3febd30d]{min-height:100vh}.place-content-center[data-v-3febd30d]{place-content:center}.overflow-hidden[data-v-3febd30d]{overflow:hidden}.bg-white[data-v-3febd30d]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-3febd30d]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-3febd30d]{text-align:center}.text-\[80px\][data-v-3febd30d]{font-size:80px}.text-2xl[data-v-3febd30d]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-3febd30d]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-3febd30d]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-3febd30d]{font-weight:600}.leading-none[data-v-3febd30d]{line-height:1}.tracking-wide[data-v-3febd30d]{letter-spacing:.025em}.font-sans[data-v-3febd30d]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-3febd30d]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-3febd30d]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-3febd30d]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-3febd30d]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-3febd30d]{font-size:110px}.sm\:text-3xl[data-v-3febd30d]{font-size:1.875rem;line-height:2.25rem}}