@wix/editor-react-components 1.2527.0 → 1.2528.0
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.
|
@@ -7,7 +7,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
|
7
7
|
import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
8
8
|
import { createPortal } from "react-dom";
|
|
9
9
|
import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
|
|
10
|
-
import { G as GOOGLE_MAPS_DIRECTIONS_BASE_URL, M as MIN_ZOOM, a as MAX_ZOOM, T as TestIds, D as DEFAULT_ZOOM, b as MAP_IDS, c as MAP_TYPES, A as API_KEY,
|
|
10
|
+
import { G as GOOGLE_MAPS_DIRECTIONS_BASE_URL, M as MIN_ZOOM, a as MAX_ZOOM, T as TestIds, D as DEFAULT_ZOOM, b as MAP_IDS, c as MAP_TYPES, d as MAP_MOBILE_CONTROL_SIZE, A as API_KEY, e as DEFAULT_LOCATION, f as DefaultTranslations, g as TranslationKeys, h as TRANSLATIONS_NAMESPACES, C as COMPANY_NAME_DEFAULT, i as COMPANY_NAME_KEY, j as COMPONENT_NAME_DEFAULT, k as COMPONENT_NAME_KEY } from "../chunks/consts.js";
|
|
11
11
|
import { p as parse } from "../chunks/index4.js";
|
|
12
12
|
import { useService } from "@wix/services-manager-react";
|
|
13
13
|
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
@@ -1610,6 +1610,7 @@ const createImperativeMethods = (mapRef, updateZoom, updateCenter, locations) =>
|
|
|
1610
1610
|
const GoogleMapReactInner = forwardRef((props, forwardedRef) => {
|
|
1611
1611
|
const {
|
|
1612
1612
|
id,
|
|
1613
|
+
isMobile,
|
|
1613
1614
|
mapData,
|
|
1614
1615
|
translations,
|
|
1615
1616
|
onUpdateCenter,
|
|
@@ -1715,18 +1716,20 @@ const GoogleMapReactInner = forwardRef((props, forwardedRef) => {
|
|
|
1715
1716
|
}, [mapData.mapStyleKey]);
|
|
1716
1717
|
const mapProps = useMemo(
|
|
1717
1718
|
() => ({
|
|
1718
|
-
fullscreenControl:
|
|
1719
|
+
fullscreenControl: !!isMobile,
|
|
1719
1720
|
clickableIcons: true,
|
|
1720
|
-
keyboardShortcuts:
|
|
1721
|
+
keyboardShortcuts: !isMobile,
|
|
1721
1722
|
disableDoubleClickZoom: false,
|
|
1722
1723
|
disableDefaultUI: true,
|
|
1723
1724
|
gestureHandling: mapData.mapInteractive ? "auto" : "none",
|
|
1724
1725
|
mapTypeControl: mapData.showMapType,
|
|
1725
1726
|
zoomControl: mapData.showZoom,
|
|
1726
1727
|
streetViewControl: mapData.showStreetView,
|
|
1727
|
-
rotateControl: false
|
|
1728
|
+
rotateControl: false,
|
|
1729
|
+
controlSize: isMobile ? MAP_MOBILE_CONTROL_SIZE : void 0
|
|
1728
1730
|
}),
|
|
1729
1731
|
[
|
|
1732
|
+
isMobile,
|
|
1730
1733
|
mapData.mapInteractive,
|
|
1731
1734
|
mapData.showMapType,
|
|
1732
1735
|
mapData.showZoom,
|
|
@@ -4,6 +4,7 @@ export declare const MAX_ZOOM = 20;
|
|
|
4
4
|
export declare const API_KEY: string;
|
|
5
5
|
export declare const GOOGLE_MAPS_DIRECTIONS_BASE_URL = "https://www.google.com/maps/dir/";
|
|
6
6
|
export declare const PIN_ICON_HEIGHT = 32;
|
|
7
|
+
export declare const MAP_MOBILE_CONTROL_SIZE = 32;
|
|
7
8
|
export declare const MAP_STYLE_KEYS: {
|
|
8
9
|
readonly CLASSIC: "CLASSIC";
|
|
9
10
|
readonly SNOWWHITE: "SNOWWHITE";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DISPLAY_GROUPS, D as DATA, M as MEDIA, a as ACTIONS, I as INTERACTIONS, A as Archetype, L as LAYOUT } from "../chunks/chunk-6KMOHX3X.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as DisplayNames, m as MAP_STYLE_KEYS, n as defaultValues, a as MAX_ZOOM, M as MIN_ZOOM } from "../chunks/consts.js";
|
|
3
3
|
import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
4
4
|
const manifest = {
|
|
5
5
|
id: "bf8a38af-5784-47d5-92d3-3627a6a60bc6",
|
|
@@ -3,6 +3,7 @@ const MIN_ZOOM = 0;
|
|
|
3
3
|
const MAX_ZOOM = 20;
|
|
4
4
|
const API_KEY = void 0;
|
|
5
5
|
const GOOGLE_MAPS_DIRECTIONS_BASE_URL = "https://www.google.com/maps/dir/";
|
|
6
|
+
const MAP_MOBILE_CONTROL_SIZE = 32;
|
|
6
7
|
const MAP_STYLE_KEYS = {
|
|
7
8
|
CLASSIC: "CLASSIC",
|
|
8
9
|
SNOWWHITE: "SNOWWHITE",
|
|
@@ -102,14 +103,15 @@ export {
|
|
|
102
103
|
MAX_ZOOM as a,
|
|
103
104
|
MAP_IDS as b,
|
|
104
105
|
MAP_TYPES as c,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
106
|
+
MAP_MOBILE_CONTROL_SIZE as d,
|
|
107
|
+
DEFAULT_LOCATION as e,
|
|
108
|
+
DefaultTranslations as f,
|
|
109
|
+
TranslationKeys as g,
|
|
110
|
+
TRANSLATIONS_NAMESPACES as h,
|
|
111
|
+
COMPANY_NAME_KEY as i,
|
|
112
|
+
COMPONENT_NAME_DEFAULT as j,
|
|
113
|
+
COMPONENT_NAME_KEY as k,
|
|
114
|
+
DisplayNames as l,
|
|
115
|
+
MAP_STYLE_KEYS as m,
|
|
116
|
+
defaultValues as n
|
|
115
117
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2528.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"registry": "https://registry.npmjs.org/",
|
|
198
198
|
"access": "public"
|
|
199
199
|
},
|
|
200
|
-
"falconPackageHash": "
|
|
200
|
+
"falconPackageHash": "becdd5fff4e65482490358dd76ed274a1fd206d85354caa8cb82ff3e"
|
|
201
201
|
}
|