@davi-ai/retorik-map 2.0.2 → 3.0.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.
package/dist/index.js CHANGED
@@ -190,8 +190,8 @@ const $adc358f1cbdc29a7$export$a238cb463698c900 = {
190
190
 
191
191
  const $10cac9979b1967c1$export$e370d38831f5792a = ()=>{
192
192
  const dispatch = (0, $1FYMx$reactredux.useDispatch)();
193
- const retorikEvent = (0, $1FYMx$daviairetorikframework.useUtilsStore)((state)=>state.retorikEvent);
194
- const currentSubView = (0, $1FYMx$daviairetorikframework.useUtilsStore)((state)=>state.currentSubView);
193
+ const retorikEvent = (0, $1FYMx$daviairetorikframework.useRetorikEvent)();
194
+ const currentSubView = (0, $1FYMx$daviairetorikframework.useCurrentSubView)();
195
195
  const displayPOIFinished = (0, $1FYMx$reactredux.useSelector)((state)=>state.poi.displayPOIFinished);
196
196
  const detailOpennedByMap = (0, $1FYMx$reactredux.useSelector)((state)=>state.poi.detailOpennedByMap);
197
197
  (0, $1FYMx$react.useEffect)(()=>{
@@ -469,7 +469,7 @@ const $4e61b315bd882780$var$hospitalityFullFilters = [
469
469
  ];
470
470
  const $4e61b315bd882780$export$e2d78e54e91e6990 = ({ settings: settings })=>{
471
471
  const dispatch = (0, $1FYMx$reactredux.useDispatch)();
472
- const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
472
+ const locale = (0, $1FYMx$daviairetorikframework.useLocale)();
473
473
  const selectedFilters = (0, $1FYMx$reactredux.useSelector)((state)=>state.map.selectedFilters);
474
474
  const [toggle, setToggle] = (0, $1FYMx$react.useState)(true);
475
475
  const [showFilters, setShowFilters] = (0, $1FYMx$react.useState)([]);
@@ -1006,8 +1006,8 @@ const $189a2791d8070fe0$var$openRoute = 'https://api.openrouteservice.org/v2/dir
1006
1006
  const $189a2791d8070fe0$var$openRouteAPIKey = '5b3ce3597851110001cf62483cfd6bd46f934b7d96f108a35e0f08b8';
1007
1007
  const $189a2791d8070fe0$var$googleMapsAddress = 'https://www.google.com/maps/dir/?api=1&';
1008
1008
  const $189a2791d8070fe0$var$Routes = ({ coordinates: coordinates, setMapLayerData: setMapLayerData, color: color, setQrCodeUrl: setQrCodeUrl })=>{
1009
- const isUsedOnBorne = (0, $1FYMx$daviairetorikframework.useRetorikStore)((state)=>state.configuration.isUsedOnBorne);
1010
- const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
1009
+ const isUsedOnBorne = (0, $1FYMx$daviairetorikframework.useIsUsedOnBorne)();
1010
+ const locale = (0, $1FYMx$daviairetorikframework.useLocale)();
1011
1011
  const [drivingCar, setDrivingCar] = (0, $1FYMx$react.useState)(undefined);
1012
1012
  const [cyclingRegular, setCyclingRegular] = (0, $1FYMx$react.useState)(undefined);
1013
1013
  const [footWalking, setFootWalking] = (0, $1FYMx$react.useState)(undefined);
@@ -1187,7 +1187,7 @@ const $2ed5971e4d4df7a9$var$fadeDuration = 500;
1187
1187
  const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, retorikAddress: retorikAddress, poiClose: poiClose, setMapLayerData: setMapLayerData })=>{
1188
1188
  const dispatch = (0, $1FYMx$reactredux.useDispatch)();
1189
1189
  const currentUserPos = (0, $1FYMx$reactredux.useSelector)((state)=>state.map.currentUserLocation);
1190
- const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
1190
+ const locale = (0, $1FYMx$daviairetorikframework.useLocale)();
1191
1191
  const [coordinates, setCoordinates] = (0, $1FYMx$react.useState)(undefined);
1192
1192
  const [qrCodeUrl, setQrCodeUrl] = (0, $1FYMx$react.useState)();
1193
1193
  const [imageLoaded, setImageLoaded] = (0, $1FYMx$react.useState)(false);
@@ -1414,9 +1414,9 @@ const $42234972a9a1d113$var$defaultDistanceAround = 200;
1414
1414
  const $42234972a9a1d113$export$ddd638f4963d1957 = ({ activeTenant: activeTenant, isDevTenant: isDevTenant, tenantList: tenantList, userLocation: userLocation, mapCenter: mapCenter, limitAroundCenter: limitAroundCenter, settings: settings, icons: icons })=>{
1415
1415
  const pois = (0, $1FYMx$reactredux.useSelector)((state)=>state.poi.poiList);
1416
1416
  const dispatch = (0, $1FYMx$reactredux.useDispatch)();
1417
- const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
1418
- const retorikEvent = (0, $1FYMx$daviairetorikframework.useUtilsStore)((state)=>state.retorikEvent);
1419
- const currentSubView = (0, $1FYMx$daviairetorikframework.useUtilsStore)((state)=>state.currentSubView);
1417
+ const locale = (0, $1FYMx$daviairetorikframework.useLocale)();
1418
+ const retorikEvent = (0, $1FYMx$daviairetorikframework.useRetorikEvent)();
1419
+ const currentSubView = (0, $1FYMx$daviairetorikframework.useCurrentSubView)();
1420
1420
  const botCSSInjected = (0, $1FYMx$reactredux.useSelector)((state)=>state.bot.CSSInjected);
1421
1421
  const currentUserPos = (0, $1FYMx$reactredux.useSelector)((state)=>state.map.currentUserLocation);
1422
1422
  const selectedFilters = (0, $1FYMx$reactredux.useSelector)((state)=>state.map.selectedFilters);
@@ -2009,7 +2009,7 @@ const $a33b51f1656f8bb9$var$fetchCustomPoiType = async ({ type: type, color: col
2009
2009
 
2010
2010
 
2011
2011
  const $65ff319993503e5c$export$5e65d2e7602ac78d = ({ retorikName: retorikName, useDevTenant: useDevTenant, customCategories: customCategories, hospitalityCategories: hospitalityCategories })=>{
2012
- const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
2012
+ const locale = (0, $1FYMx$daviairetorikframework.useLocale)();
2013
2013
  const currentUserLocation = (0, $1FYMx$reactredux.useSelector)((state)=>state.map.currentUserLocation);
2014
2014
  const [token, setToken] = (0, $1FYMx$react.useState)(undefined);
2015
2015
  const [poiList, setPoiList] = (0, $1FYMx$react.useState)([]);