@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 +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./index.modern.css";
|
|
|
2
2
|
import {jsx as $7jQCS$jsx, jsxs as $7jQCS$jsxs, Fragment as $7jQCS$Fragment} from "react/jsx-runtime";
|
|
3
3
|
import $7jQCS$react, {useMemo as $7jQCS$useMemo, useEffect as $7jQCS$useEffect, useState as $7jQCS$useState, useRef as $7jQCS$useRef} from "react";
|
|
4
4
|
import {Provider as $7jQCS$Provider, useDispatch as $7jQCS$useDispatch, useSelector as $7jQCS$useSelector} from "react-redux";
|
|
5
|
-
import {
|
|
5
|
+
import {useRetorikEvent as $7jQCS$useRetorikEvent, useCurrentSubView as $7jQCS$useCurrentSubView, RetorikEvent as $7jQCS$RetorikEvent, CurrentSubView as $7jQCS$CurrentSubView, setCurrentCustomView as $7jQCS$setCurrentCustomView, useLocale as $7jQCS$useLocale, setModalFullscreenContent as $7jQCS$setModalFullscreenContent, sendMessage as $7jQCS$sendMessage, useIsUsedOnBorne as $7jQCS$useIsUsedOnBorne} from "@davi-ai/retorik-framework";
|
|
6
6
|
import {createSlice as $7jQCS$createSlice, combineReducers as $7jQCS$combineReducers, configureStore as $7jQCS$configureStore} from "@reduxjs/toolkit";
|
|
7
7
|
import $7jQCS$leaflet from "leaflet";
|
|
8
8
|
import "leaflet.markercluster";
|
|
@@ -181,8 +181,8 @@ const $0ad7b0edd584a803$export$a238cb463698c900 = {
|
|
|
181
181
|
|
|
182
182
|
const $36a2ff8f1941466d$export$e370d38831f5792a = ()=>{
|
|
183
183
|
const dispatch = (0, $7jQCS$useDispatch)();
|
|
184
|
-
const retorikEvent = (0, $7jQCS$
|
|
185
|
-
const currentSubView = (0, $7jQCS$
|
|
184
|
+
const retorikEvent = (0, $7jQCS$useRetorikEvent)();
|
|
185
|
+
const currentSubView = (0, $7jQCS$useCurrentSubView)();
|
|
186
186
|
const displayPOIFinished = (0, $7jQCS$useSelector)((state)=>state.poi.displayPOIFinished);
|
|
187
187
|
const detailOpennedByMap = (0, $7jQCS$useSelector)((state)=>state.poi.detailOpennedByMap);
|
|
188
188
|
(0, $7jQCS$useEffect)(()=>{
|
|
@@ -460,7 +460,7 @@ const $6b20232aef97af36$var$hospitalityFullFilters = [
|
|
|
460
460
|
];
|
|
461
461
|
const $6b20232aef97af36$export$e2d78e54e91e6990 = ({ settings: settings })=>{
|
|
462
462
|
const dispatch = (0, $7jQCS$useDispatch)();
|
|
463
|
-
const locale = (0, $7jQCS$
|
|
463
|
+
const locale = (0, $7jQCS$useLocale)();
|
|
464
464
|
const selectedFilters = (0, $7jQCS$useSelector)((state)=>state.map.selectedFilters);
|
|
465
465
|
const [toggle, setToggle] = (0, $7jQCS$useState)(true);
|
|
466
466
|
const [showFilters, setShowFilters] = (0, $7jQCS$useState)([]);
|
|
@@ -997,8 +997,8 @@ const $94ecf50180ed178d$var$openRoute = 'https://api.openrouteservice.org/v2/dir
|
|
|
997
997
|
const $94ecf50180ed178d$var$openRouteAPIKey = '5b3ce3597851110001cf62483cfd6bd46f934b7d96f108a35e0f08b8';
|
|
998
998
|
const $94ecf50180ed178d$var$googleMapsAddress = 'https://www.google.com/maps/dir/?api=1&';
|
|
999
999
|
const $94ecf50180ed178d$var$Routes = ({ coordinates: coordinates, setMapLayerData: setMapLayerData, color: color, setQrCodeUrl: setQrCodeUrl })=>{
|
|
1000
|
-
const isUsedOnBorne = (0, $7jQCS$
|
|
1001
|
-
const locale = (0, $7jQCS$
|
|
1000
|
+
const isUsedOnBorne = (0, $7jQCS$useIsUsedOnBorne)();
|
|
1001
|
+
const locale = (0, $7jQCS$useLocale)();
|
|
1002
1002
|
const [drivingCar, setDrivingCar] = (0, $7jQCS$useState)(undefined);
|
|
1003
1003
|
const [cyclingRegular, setCyclingRegular] = (0, $7jQCS$useState)(undefined);
|
|
1004
1004
|
const [footWalking, setFootWalking] = (0, $7jQCS$useState)(undefined);
|
|
@@ -1178,7 +1178,7 @@ const $518bba7b5ecd13db$var$fadeDuration = 500;
|
|
|
1178
1178
|
const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, retorikAddress: retorikAddress, poiClose: poiClose, setMapLayerData: setMapLayerData })=>{
|
|
1179
1179
|
const dispatch = (0, $7jQCS$useDispatch)();
|
|
1180
1180
|
const currentUserPos = (0, $7jQCS$useSelector)((state)=>state.map.currentUserLocation);
|
|
1181
|
-
const locale = (0, $7jQCS$
|
|
1181
|
+
const locale = (0, $7jQCS$useLocale)();
|
|
1182
1182
|
const [coordinates, setCoordinates] = (0, $7jQCS$useState)(undefined);
|
|
1183
1183
|
const [qrCodeUrl, setQrCodeUrl] = (0, $7jQCS$useState)();
|
|
1184
1184
|
const [imageLoaded, setImageLoaded] = (0, $7jQCS$useState)(false);
|
|
@@ -1405,9 +1405,9 @@ const $ccf1a8cf083c5878$var$defaultDistanceAround = 200;
|
|
|
1405
1405
|
const $ccf1a8cf083c5878$export$ddd638f4963d1957 = ({ activeTenant: activeTenant, isDevTenant: isDevTenant, tenantList: tenantList, userLocation: userLocation, mapCenter: mapCenter, limitAroundCenter: limitAroundCenter, settings: settings, icons: icons })=>{
|
|
1406
1406
|
const pois = (0, $7jQCS$useSelector)((state)=>state.poi.poiList);
|
|
1407
1407
|
const dispatch = (0, $7jQCS$useDispatch)();
|
|
1408
|
-
const locale = (0, $7jQCS$
|
|
1409
|
-
const retorikEvent = (0, $7jQCS$
|
|
1410
|
-
const currentSubView = (0, $7jQCS$
|
|
1408
|
+
const locale = (0, $7jQCS$useLocale)();
|
|
1409
|
+
const retorikEvent = (0, $7jQCS$useRetorikEvent)();
|
|
1410
|
+
const currentSubView = (0, $7jQCS$useCurrentSubView)();
|
|
1411
1411
|
const botCSSInjected = (0, $7jQCS$useSelector)((state)=>state.bot.CSSInjected);
|
|
1412
1412
|
const currentUserPos = (0, $7jQCS$useSelector)((state)=>state.map.currentUserLocation);
|
|
1413
1413
|
const selectedFilters = (0, $7jQCS$useSelector)((state)=>state.map.selectedFilters);
|
|
@@ -2000,7 +2000,7 @@ const $bb64f8611bc3f5a1$var$fetchCustomPoiType = async ({ type: type, color: col
|
|
|
2000
2000
|
|
|
2001
2001
|
|
|
2002
2002
|
const $73efd853987d4bec$export$5e65d2e7602ac78d = ({ retorikName: retorikName, useDevTenant: useDevTenant, customCategories: customCategories, hospitalityCategories: hospitalityCategories })=>{
|
|
2003
|
-
const locale = (0, $7jQCS$
|
|
2003
|
+
const locale = (0, $7jQCS$useLocale)();
|
|
2004
2004
|
const currentUserLocation = (0, $7jQCS$useSelector)((state)=>state.map.currentUserLocation);
|
|
2005
2005
|
const [token, setToken] = (0, $7jQCS$useState)(undefined);
|
|
2006
2006
|
const [poiList, setPoiList] = (0, $7jQCS$useState)([]);
|