@nuxt/scripts 1.0.0-beta.29 → 1.0.0-beta.30

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 (35) hide show
  1. package/dist/client/200.html +1 -1
  2. package/dist/client/404.html +1 -1
  3. package/dist/client/_nuxt/builds/latest.json +1 -1
  4. package/dist/client/_nuxt/builds/meta/f0b4dd20-8496-4003-b7a3-05cbae515923.json +1 -0
  5. package/dist/client/index.html +1 -1
  6. package/dist/module.json +1 -1
  7. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.d.vue.ts +16 -0
  8. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue.d.ts +16 -0
  9. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.d.vue.ts +4 -0
  10. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.vue.d.ts +4 -0
  11. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsGeoJson.d.vue.ts +8 -0
  12. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsGeoJson.vue.d.ts +8 -0
  13. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.d.vue.ts +4 -0
  14. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue.d.ts +4 -0
  15. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.d.vue.ts +4 -0
  16. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue.d.ts +4 -0
  17. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.d.vue.ts +16 -0
  18. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue.d.ts +16 -0
  19. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.d.vue.ts +8 -0
  20. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue +18 -8
  21. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue.d.ts +8 -0
  22. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.d.vue.ts +23 -0
  23. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue.d.ts +23 -0
  24. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.d.vue.ts +4 -0
  25. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue.d.ts +4 -0
  26. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.d.vue.ts +4 -0
  27. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.vue.d.ts +4 -0
  28. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.d.vue.ts +4 -0
  29. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.vue.d.ts +4 -0
  30. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.d.vue.ts +4 -0
  31. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.vue.d.ts +4 -0
  32. package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.js +14 -9
  33. package/dist/types-source.mjs +377 -188
  34. package/package.json +2 -2
  35. package/dist/client/_nuxt/builds/meta/05eb1abd-7d1c-43e9-b78e-dc8ec287cc6f.json +0 -1
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.C5SUNdim.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bl23o3st.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bl23o3st.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:"",endpoints:{}}},app:{baseURL:"/__nuxt-scripts",buildId:"05eb1abd-7d1c-43e9-b78e-dc8ec287cc6f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774014640218,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.C5SUNdim.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bl23o3st.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bl23o3st.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:"",endpoints:{}}},app:{baseURL:"/__nuxt-scripts",buildId:"f0b4dd20-8496-4003-b7a3-05cbae515923",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774019045968,false]</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.C5SUNdim.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bl23o3st.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bl23o3st.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:"",endpoints:{}}},app:{baseURL:"/__nuxt-scripts",buildId:"05eb1abd-7d1c-43e9-b78e-dc8ec287cc6f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774014640219,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.C5SUNdim.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bl23o3st.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bl23o3st.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:"",endpoints:{}}},app:{baseURL:"/__nuxt-scripts",buildId:"f0b4dd20-8496-4003-b7a3-05cbae515923",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774019045969,false]</script></body></html>
@@ -1 +1 @@
1
- {"id":"05eb1abd-7d1c-43e9-b78e-dc8ec287cc6f","timestamp":1774014634721}
1
+ {"id":"f0b4dd20-8496-4003-b7a3-05cbae515923","timestamp":1774019040423}
@@ -0,0 +1 @@
1
+ {"id":"f0b4dd20-8496-4003-b7a3-05cbae515923","timestamp":1774019040423,"prerendered":[]}
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.C5SUNdim.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bl23o3st.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bl23o3st.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:"",endpoints:{}}},app:{baseURL:"/__nuxt-scripts",buildId:"05eb1abd-7d1c-43e9-b78e-dc8ec287cc6f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774014640219,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.C5SUNdim.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bl23o3st.js"><script type="module" src="/__nuxt-scripts/_nuxt/Bl23o3st.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{version:"",defaultScriptOptions:{trigger:"onNuxtReady"},googleStaticMapsProxy:"",endpoints:{}}},app:{baseURL:"/__nuxt-scripts",buildId:"f0b4dd20-8496-4003-b7a3-05cbae515923",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774019045969,false]</script></body></html>
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16"
6
6
  },
7
- "version": "1.0.0-beta.29",
7
+ "version": "1.0.0-beta.30",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -2,7 +2,15 @@ export { ADVANCED_MARKER_ELEMENT_INJECTION_KEY } from './injectionKeys.js';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
5
+ /**
6
+ * The position of the marker on the map.
7
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.position
8
+ */
5
9
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
10
+ /**
11
+ * Configuration options for the advanced marker.
12
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
13
+ */
6
14
  options?: Omit<google.maps.marker.AdvancedMarkerElementOptions, "map">;
7
15
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
16
  click: (payload: google.maps.MapMouseEvent) => any;
@@ -10,7 +18,15 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
10
18
  dragend: (payload: google.maps.MapMouseEvent) => any;
11
19
  dragstart: (payload: google.maps.MapMouseEvent) => any;
12
20
  }, string, import("vue").PublicProps, Readonly<{
21
+ /**
22
+ * The position of the marker on the map.
23
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.position
24
+ */
13
25
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
26
+ /**
27
+ * Configuration options for the advanced marker.
28
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
29
+ */
14
30
  options?: Omit<google.maps.marker.AdvancedMarkerElementOptions, "map">;
15
31
  }> & Readonly<{
16
32
  onClick?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
@@ -2,7 +2,15 @@ export { ADVANCED_MARKER_ELEMENT_INJECTION_KEY } from './injectionKeys.js';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
5
+ /**
6
+ * The position of the marker on the map.
7
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.position
8
+ */
5
9
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
10
+ /**
11
+ * Configuration options for the advanced marker.
12
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
13
+ */
6
14
  options?: Omit<google.maps.marker.AdvancedMarkerElementOptions, "map">;
7
15
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
16
  click: (payload: google.maps.MapMouseEvent) => any;
@@ -10,7 +18,15 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
10
18
  dragend: (payload: google.maps.MapMouseEvent) => any;
11
19
  dragstart: (payload: google.maps.MapMouseEvent) => any;
12
20
  }, string, import("vue").PublicProps, Readonly<{
21
+ /**
22
+ * The position of the marker on the map.
23
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.position
24
+ */
13
25
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
26
+ /**
27
+ * Configuration options for the advanced marker.
28
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
29
+ */
14
30
  options?: Omit<google.maps.marker.AdvancedMarkerElementOptions, "map">;
15
31
  }> & Readonly<{
16
32
  onClick?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the circle overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#CircleOptions
5
+ */
2
6
  options?: Omit<google.maps.CircleOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the circle overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#CircleOptions
5
+ */
2
6
  options?: Omit<google.maps.CircleOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,5 +1,13 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * The GeoJSON source. Can be a URL string or a GeoJSON object.
4
+ * @see https://developers.google.com/maps/documentation/javascript/datalayer#load_geojson
5
+ */
2
6
  src: string | object;
7
+ /**
8
+ * Styling options or a function that computes styles per feature.
9
+ * @see https://developers.google.com/maps/documentation/javascript/datalayer#style_geojson_data
10
+ */
3
11
  style?: google.maps.Data.StylingFunction | google.maps.Data.StyleOptions;
4
12
  };
5
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,5 +1,13 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * The GeoJSON source. Can be a URL string or a GeoJSON object.
4
+ * @see https://developers.google.com/maps/documentation/javascript/datalayer#load_geojson
5
+ */
2
6
  src: string | object;
7
+ /**
8
+ * Styling options or a function that computes styles per feature.
9
+ * @see https://developers.google.com/maps/documentation/javascript/datalayer#style_geojson_data
10
+ */
3
11
  style?: google.maps.Data.StylingFunction | google.maps.Data.StyleOptions;
4
12
  };
5
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the heatmap layer visualization.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions
5
+ */
2
6
  options?: Omit<google.maps.visualization.HeatmapLayerOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the heatmap layer visualization.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions
5
+ */
2
6
  options?: Omit<google.maps.visualization.HeatmapLayerOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the info window.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions
5
+ */
2
6
  options?: google.maps.InfoWindowOptions;
3
7
  };
4
8
  declare var __VLS_1: {};
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the info window.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions
5
+ */
2
6
  options?: google.maps.InfoWindowOptions;
3
7
  };
4
8
  declare var __VLS_1: {};
@@ -2,7 +2,15 @@ export { MARKER_INJECTION_KEY } from './injectionKeys.js';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
5
+ /**
6
+ * The position of the marker on the map.
7
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
8
+ */
5
9
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
10
+ /**
11
+ * Configuration options for the legacy marker. Deprecated: use ScriptGoogleMapsAdvancedMarkerElement instead.
12
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
13
+ */
6
14
  options?: Omit<google.maps.MarkerOptions, "map">;
7
15
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
16
  contextmenu: (payload: google.maps.MapMouseEvent) => any;
@@ -27,7 +35,15 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
27
35
  title_changed: () => any;
28
36
  visible_changed: () => any;
29
37
  }, string, import("vue").PublicProps, Readonly<{
38
+ /**
39
+ * The position of the marker on the map.
40
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
41
+ */
30
42
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
43
+ /**
44
+ * Configuration options for the legacy marker. Deprecated: use ScriptGoogleMapsAdvancedMarkerElement instead.
45
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
46
+ */
31
47
  options?: Omit<google.maps.MarkerOptions, "map">;
32
48
  }> & Readonly<{
33
49
  onContextmenu?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
@@ -2,7 +2,15 @@ export { MARKER_INJECTION_KEY } from './injectionKeys.js';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
5
+ /**
6
+ * The position of the marker on the map.
7
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
8
+ */
5
9
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
10
+ /**
11
+ * Configuration options for the legacy marker. Deprecated: use ScriptGoogleMapsAdvancedMarkerElement instead.
12
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
13
+ */
6
14
  options?: Omit<google.maps.MarkerOptions, "map">;
7
15
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
16
  contextmenu: (payload: google.maps.MapMouseEvent) => any;
@@ -27,7 +35,15 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
27
35
  title_changed: () => any;
28
36
  visible_changed: () => any;
29
37
  }, string, import("vue").PublicProps, Readonly<{
38
+ /**
39
+ * The position of the marker on the map.
40
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
41
+ */
30
42
  position?: google.maps.LatLngLiteral | google.maps.LatLng;
43
+ /**
44
+ * Configuration options for the legacy marker. Deprecated: use ScriptGoogleMapsAdvancedMarkerElement instead.
45
+ * @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
46
+ */
31
47
  options?: Omit<google.maps.MarkerOptions, "map">;
32
48
  }> & Readonly<{
33
49
  onContextmenu?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
@@ -19,12 +19,20 @@ export declare const MARKER_CLUSTERER_INJECTION_KEY: InjectionKey<{
19
19
  declare const _default: typeof __VLS_export;
20
20
  export default _default;
21
21
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
22
+ /**
23
+ * Configuration options for the marker clusterer.
24
+ * @see https://googlemaps.github.io/js-markerclusterer/interfaces/MarkerClustererOptions.html
25
+ */
22
26
  options?: Omit<MarkerClustererOptions, "map">;
23
27
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
28
  click: (payload: MarkerClustererInstance) => any;
25
29
  clusteringbegin: (payload: MarkerClustererInstance) => any;
26
30
  clusteringend: (payload: MarkerClustererInstance) => any;
27
31
  }, string, import("vue").PublicProps, Readonly<{
32
+ /**
33
+ * Configuration options for the marker clusterer.
34
+ * @see https://googlemaps.github.io/js-markerclusterer/interfaces/MarkerClustererOptions.html
35
+ */
28
36
  options?: Omit<MarkerClustererOptions, "map">;
29
37
  }> & Readonly<{
30
38
  onClick?: ((payload: MarkerClustererInstance) => any) | undefined;
@@ -1,6 +1,5 @@
1
1
  <script>
2
- import { whenever } from "@vueuse/core";
3
- import { provide, shallowRef } from "vue";
2
+ import { provide, shallowRef, watch } from "vue";
4
3
  import { bindGoogleMapsEvents } from "./bindGoogleMapsEvents";
5
4
  import { useGoogleMapsResource } from "./useGoogleMapsResource";
6
5
  export const MARKER_CLUSTERER_INJECTION_KEY = /* @__PURE__ */ Symbol("marker-clusterer");
@@ -31,14 +30,25 @@ const markerClusterer = useGoogleMapsResource({
31
30
  clusterer.setMap(null);
32
31
  }
33
32
  });
34
- const markerClustererNeedsRerender = shallowRef(false);
33
+ const rerenderPending = shallowRef(false);
35
34
  function requestRerender() {
36
- markerClustererNeedsRerender.value = true;
35
+ rerenderPending.value = true;
37
36
  }
38
- whenever(() => markerClustererNeedsRerender.value && markerClusterer.value, () => {
39
- markerClusterer.value.render();
40
- markerClustererNeedsRerender.value = false;
41
- });
37
+ watch(
38
+ () => rerenderPending.value && markerClusterer.value,
39
+ (ready) => {
40
+ if (!ready)
41
+ return;
42
+ rerenderPending.value = false;
43
+ try {
44
+ markerClusterer.value.render();
45
+ } catch (err) {
46
+ if (import.meta.dev) {
47
+ console.error("[nuxt-scripts] MarkerClusterer render failed:", err);
48
+ }
49
+ }
50
+ }
51
+ );
42
52
  provide(
43
53
  MARKER_CLUSTERER_INJECTION_KEY,
44
54
  {
@@ -19,12 +19,20 @@ export declare const MARKER_CLUSTERER_INJECTION_KEY: InjectionKey<{
19
19
  declare const _default: typeof __VLS_export;
20
20
  export default _default;
21
21
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
22
+ /**
23
+ * Configuration options for the marker clusterer.
24
+ * @see https://googlemaps.github.io/js-markerclusterer/interfaces/MarkerClustererOptions.html
25
+ */
22
26
  options?: Omit<MarkerClustererOptions, "map">;
23
27
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
28
  click: (payload: MarkerClustererInstance) => any;
25
29
  clusteringbegin: (payload: MarkerClustererInstance) => any;
26
30
  clusteringend: (payload: MarkerClustererInstance) => any;
27
31
  }, string, import("vue").PublicProps, Readonly<{
32
+ /**
33
+ * Configuration options for the marker clusterer.
34
+ * @see https://googlemaps.github.io/js-markerclusterer/interfaces/MarkerClustererOptions.html
35
+ */
28
36
  options?: Omit<MarkerClustererOptions, "map">;
29
37
  }> & Readonly<{
30
38
  onClick?: ((payload: MarkerClustererInstance) => any) | undefined;
@@ -1,14 +1,37 @@
1
1
  type OverlayAnchor = 'center' | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-center' | 'right-center';
2
2
  type OverlayPane = 'mapPane' | 'overlayLayer' | 'markerLayer' | 'overlayMouseTarget' | 'floatPane';
3
3
  type __VLS_Props = {
4
+ /**
5
+ * Geographic position for the overlay. Falls back to parent marker position if omitted.
6
+ * @see https://developers.google.com/maps/documentation/javascript/reference/overlay-view#OverlayView
7
+ */
4
8
  position?: google.maps.LatLngLiteral;
9
+ /**
10
+ * Anchor point of the overlay relative to its position.
11
+ * @default 'bottom-center'
12
+ */
5
13
  anchor?: OverlayAnchor;
14
+ /**
15
+ * Pixel offset from the anchor position.
16
+ */
6
17
  offset?: {
7
18
  x: number;
8
19
  y: number;
9
20
  };
21
+ /**
22
+ * The map pane on which to render the overlay.
23
+ * @default 'floatPane'
24
+ * @see https://developers.google.com/maps/documentation/javascript/reference/overlay-view#MapPanes
25
+ */
10
26
  pane?: OverlayPane;
27
+ /**
28
+ * CSS z-index for the overlay element.
29
+ */
11
30
  zIndex?: number;
31
+ /**
32
+ * Whether to block map click and gesture events from passing through the overlay.
33
+ * @default true
34
+ */
12
35
  blockMapInteraction?: boolean;
13
36
  };
14
37
  type __VLS_ModelProps = {
@@ -1,14 +1,37 @@
1
1
  type OverlayAnchor = 'center' | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-center' | 'right-center';
2
2
  type OverlayPane = 'mapPane' | 'overlayLayer' | 'markerLayer' | 'overlayMouseTarget' | 'floatPane';
3
3
  type __VLS_Props = {
4
+ /**
5
+ * Geographic position for the overlay. Falls back to parent marker position if omitted.
6
+ * @see https://developers.google.com/maps/documentation/javascript/reference/overlay-view#OverlayView
7
+ */
4
8
  position?: google.maps.LatLngLiteral;
9
+ /**
10
+ * Anchor point of the overlay relative to its position.
11
+ * @default 'bottom-center'
12
+ */
5
13
  anchor?: OverlayAnchor;
14
+ /**
15
+ * Pixel offset from the anchor position.
16
+ */
6
17
  offset?: {
7
18
  x: number;
8
19
  y: number;
9
20
  };
21
+ /**
22
+ * The map pane on which to render the overlay.
23
+ * @default 'floatPane'
24
+ * @see https://developers.google.com/maps/documentation/javascript/reference/overlay-view#MapPanes
25
+ */
10
26
  pane?: OverlayPane;
27
+ /**
28
+ * CSS z-index for the overlay element.
29
+ */
11
30
  zIndex?: number;
31
+ /**
32
+ * Whether to block map click and gesture events from passing through the overlay.
33
+ * @default true
34
+ */
12
35
  blockMapInteraction?: boolean;
13
36
  };
14
37
  type __VLS_ModelProps = {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the pin element that customizes the visual appearance of the marker.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#PinElementOptions
5
+ */
2
6
  options?: Omit<google.maps.marker.PinElementOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the pin element that customizes the visual appearance of the marker.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#PinElementOptions
5
+ */
2
6
  options?: Omit<google.maps.marker.PinElementOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the polygon overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#PolygonOptions
5
+ */
2
6
  options?: Omit<google.maps.PolygonOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the polygon overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#PolygonOptions
5
+ */
2
6
  options?: Omit<google.maps.PolygonOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the polyline overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#PolylineOptions
5
+ */
2
6
  options?: Omit<google.maps.PolylineOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the polyline overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#PolylineOptions
5
+ */
2
6
  options?: Omit<google.maps.PolylineOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the rectangle overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#RectangleOptions
5
+ */
2
6
  options?: Omit<google.maps.RectangleOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Configuration options for the rectangle overlay.
4
+ * @see https://developers.google.com/maps/documentation/javascript/reference/polygon#RectangleOptions
5
+ */
2
6
  options?: Omit<google.maps.RectangleOptions, 'map'>;
3
7
  };
4
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -11,18 +11,23 @@ export function useGoogleMapsResource({
11
11
  const isUnmounted = ref(false);
12
12
  whenever(
13
13
  () => mapContext?.map.value && mapContext.mapsApi.value && (!ready || ready()),
14
- async () => {
15
- const result = await create({
14
+ () => {
15
+ Promise.resolve(create({
16
16
  map: mapContext.map.value,
17
17
  mapsApi: mapContext.mapsApi.value
18
- });
19
- if (isUnmounted.value) {
20
- if (cleanup && mapContext?.mapsApi.value) {
21
- cleanup(result, { mapsApi: mapContext.mapsApi.value });
18
+ })).then((result) => {
19
+ if (isUnmounted.value) {
20
+ if (cleanup && mapContext?.mapsApi.value) {
21
+ cleanup(result, { mapsApi: mapContext.mapsApi.value });
22
+ }
23
+ return;
24
+ }
25
+ resource.value = result;
26
+ }).catch((err) => {
27
+ if (import.meta.dev) {
28
+ console.error("[nuxt-scripts] Google Maps resource creation failed:", err);
22
29
  }
23
- return;
24
- }
25
- resource.value = result;
30
+ });
26
31
  },
27
32
  { immediate: true, once: true }
28
33
  );