@heycar/heycars-map 2.4.3 → 2.4.4

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.
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./v2"
1
+ export * from "./v3"
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * from "./v2"
1
+ export * from "./v3"
@@ -1,4 +1,4 @@
1
- import "../../css/Gmap-26ef76ca.css";
1
+ import "../../css/Gmap-90a0d638.css";
2
2
  import { computed, shallowRef, watchPostEffect, watch } from "vue-demi";
3
3
  import { createElement } from "../../demi-polyfill/demi-polyfill.js";
4
4
  import { provideGmap } from "../../hooks/useMap.js";
@@ -20,4 +20,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
20
20
  }
21
21
  ._7anfuo0 .gm-style iframe + div {
22
22
  border: none !important;
23
+ }
24
+ ._7anfuo0 div[role=alertdialog]:has(a[href="https://developers.google.com/maps/documentation/javascript/error-messages"]) {
25
+ z-index: 2;
23
26
  }
@@ -115,11 +115,18 @@ const useGmapGestureZoomCenter = (props) => {
115
115
  }
116
116
  });
117
117
  };
118
+ const disableDefaultBehavior = (e) => e.preventDefault();
119
+ element.addEventListener("touchstart", disableDefaultBehavior, true);
120
+ element.addEventListener("touchmove", disableDefaultBehavior, true);
121
+ element.addEventListener("touchend", disableDefaultBehavior, true);
118
122
  element.addEventListener("touchstart", handleTouchStart, { passive: true });
119
123
  element.addEventListener("touchmove", handleTouchMove, { passive: true });
120
124
  element.addEventListener("touchend", handleTouchEnd, { passive: true });
121
125
  const unsubscribeDoubleTap = subscribeDoubleTap(element, handleDoubleTap);
122
126
  onCleanup(() => {
127
+ element.removeEventListener("touchstart", disableDefaultBehavior, true);
128
+ element.removeEventListener("touchmove", disableDefaultBehavior, true);
129
+ element.removeEventListener("touchend", disableDefaultBehavior, true);
123
130
  element.removeEventListener("touchstart", handleTouchStart);
124
131
  element.removeEventListener("touchmove", handleTouchMove);
125
132
  element.removeEventListener("touchend", handleTouchEnd);
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.4.3";
3
+ const pkgVersion = "2.4.4";
4
4
  const isEnableLog = (name) => {
5
5
  const searchParam = new URLSearchParams(location.search);
6
6
  return searchParam.has(`log-${name}`);
@@ -1,4 +1,4 @@
1
- import "../../css/Gmap-26ef76ca.css";
1
+ import "../../css/Gmap-90a0d638.css";
2
2
  import { computed, shallowRef, watchPostEffect, watch } from "vue-demi";
3
3
  import { createElement } from "../../demi-polyfill/demi-polyfill.js";
4
4
  import { provideGmap } from "../../hooks/useMap.js";
@@ -20,4 +20,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
20
20
  }
21
21
  ._7anfuo0 .gm-style iframe + div {
22
22
  border: none !important;
23
+ }
24
+ ._7anfuo0 div[role=alertdialog]:has(a[href="https://developers.google.com/maps/documentation/javascript/error-messages"]) {
25
+ z-index: 2;
23
26
  }
@@ -115,11 +115,18 @@ const useGmapGestureZoomCenter = (props) => {
115
115
  }
116
116
  });
117
117
  };
118
+ const disableDefaultBehavior = (e) => e.preventDefault();
119
+ element.addEventListener("touchstart", disableDefaultBehavior, true);
120
+ element.addEventListener("touchmove", disableDefaultBehavior, true);
121
+ element.addEventListener("touchend", disableDefaultBehavior, true);
118
122
  element.addEventListener("touchstart", handleTouchStart, { passive: true });
119
123
  element.addEventListener("touchmove", handleTouchMove, { passive: true });
120
124
  element.addEventListener("touchend", handleTouchEnd, { passive: true });
121
125
  const unsubscribeDoubleTap = subscribeDoubleTap(element, handleDoubleTap);
122
126
  onCleanup(() => {
127
+ element.removeEventListener("touchstart", disableDefaultBehavior, true);
128
+ element.removeEventListener("touchmove", disableDefaultBehavior, true);
129
+ element.removeEventListener("touchend", disableDefaultBehavior, true);
123
130
  element.removeEventListener("touchstart", handleTouchStart);
124
131
  element.removeEventListener("touchmove", handleTouchMove);
125
132
  element.removeEventListener("touchend", handleTouchEnd);
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.4.3";
3
+ const pkgVersion = "2.4.4";
4
4
  const isEnableLog = (name) => {
5
5
  const searchParam = new URLSearchParams(location.search);
6
6
  return searchParam.has(`log-${name}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js",