@carto/ps-react-maps 0.0.1-alpha.1 → 0.0.1-alpha.11
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.cjs +9 -9
- package/dist/index.js +218 -235
- package/dist/types/index.d.ts +1 -0
- package/dist/types/map-provider/index.d.ts +6 -0
- package/dist/types/{src/map.context.d.ts → map-provider/map-provider.context.d.ts} +3 -3
- package/dist/types/map-provider/map-provider.hook.d.ts +2 -0
- package/dist/types/{src/map.provider.d.ts → map-provider/map-provider.provider.d.ts} +1 -1
- package/dist/types/{src/map.reducer.d.ts → map-provider/map-provider.reducer.d.ts} +1 -1
- package/dist/types/{src/map.types.d.ts → map-provider/map-provider.types.d.ts} +8 -7
- package/package.json +7 -7
- package/dist/types/src/index.d.ts +0 -6
- package/dist/types/src/map.hook.d.ts +0 -2
- package/dist/types/src/map.hook.test.d.ts +0 -1
- package/dist/types/src/tmp.utils.d.ts +0 -1
- package/dist/types/tests/utils/test-utils.d.ts +0 -10
- /package/dist/types/{src/map.const.d.ts → map-provider/map-provider.const.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),mr=require("react-redux");var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),mr=require("react-redux"),yr=require("@carto/react-redux");var ke=(a=>(a.Roadmap="roadmap",a.Satellite="satellite",a.Terrain="terrain",a))(ke||{}),De=(a=>(a.DarkMatter="dark-matter",a.Positron="positron",a.Voyager="voyager",a))(De||{});const gr={positron:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",voyager:"https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json","dark-matter":"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"},z=()=>{throw new Error("You forgot to wrap your component in <MapProvider>.")},W={state:{maps:{}},actions:{setViewState:z,setBasemap:z,setResize:z,setZoom:z}},re=h.createContext(W.state),te=h.createContext(W.actions);var V=(a=>(a.SetViewState="SetViewState",a.SetBasemap="SetBasemap",a.SetResize="SetResize",a.SetZoom="SetZoom",a))(V||{});function Ae(a,{type:S,payload:T}){return{SetViewState:()=>{const{id:u,viewState:m}=T,p={...a.maps};return p[u]={...a.maps[u],viewState:m},{...a,maps:p}},SetResize:()=>{const{id:u,width:m,height:p}=T,E={...a.maps};return E[u]={...a.maps[u],viewState:{...a.maps[u].viewState,width:m,height:p}},{...a,maps:E}},SetBasemap:()=>{const{id:u,basemap:m}=T,p={...a.maps};return p[u]={...a.maps[u],basemap:m},{...a,maps:p}},SetZoom:()=>{const{id:u,zoom:m}=T,p={...a.maps};return p[u]={...a.maps[u],viewState:{...a.maps[u].viewState,zoom:m}},{...a,maps:p}}}[S]?.()??a}function br(){return h.useContext(re)}function Rr(){return h.useContext(te)}var ee={exports:{}},M={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var xe;function
|
|
9
|
+
*/var xe;function hr(){if(xe)return M;xe=1;var a=h,S=Symbol.for("react.element"),T=Symbol.for("react.fragment"),C=Object.prototype.hasOwnProperty,u=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(E,y,x){var g,l={},f=null,O=null;x!==void 0&&(f=""+x),y.key!==void 0&&(f=""+y.key),y.ref!==void 0&&(O=y.ref);for(g in y)C.call(y,g)&&!m.hasOwnProperty(g)&&(l[g]=y[g]);if(E&&E.defaultProps)for(g in y=E.defaultProps,y)l[g]===void 0&&(l[g]=y[g]);return{$$typeof:S,type:E,key:f,ref:O,props:l,_owner:u.current}}return M.Fragment=T,M.jsx=p,M.jsxs=p,M}var $={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),d=o.length-1,v=
|
|
21
|
-
`+o[d].replace(" at new "," at ");return e.displayName&&
|
|
17
|
+
*/var Oe;function Er(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var a=h,S=Symbol.for("react.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),E=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),ne=Symbol.iterator,Fe="@@iterator";function Ie(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[Fe];return typeof r=="function"?r:null}var k=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Me("error",e,t)}}function Me(e,r,t){{var n=k.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(i){return String(i)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var $e=!1,Ve=!1,We=!1,Ye=!1,Le=!1,ae;ae=Symbol.for("react.module.reference");function Ne(e){return!!(typeof e=="string"||typeof e=="function"||e===C||e===m||Le||e===u||e===x||e===g||Ye||e===O||$e||Ve||We||typeof e=="object"&&e!==null&&(e.$$typeof===f||e.$$typeof===l||e.$$typeof===p||e.$$typeof===E||e.$$typeof===y||e.$$typeof===ae||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function oe(e){return e.displayName||"Context"}function w(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case T:return"Portal";case m:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return oe(r)+".Consumer";case p:var t=e;return oe(t._context)+".Provider";case y:return Ue(e,e.render,"ForwardRef");case l:var n=e.displayName||null;return n!==null?n:w(e.type)||"Memo";case f:{var s=e,c=s._payload,i=s._init;try{return w(i(c))}catch{return null}}}return null}var j=Object.assign,F=0,ie,se,ue,ce,le,fe,de;function ve(){}ve.__reactDisabledLog=!0;function Be(){{if(F===0){ie=console.log,se=console.info,ue=console.warn,ce=console.error,le=console.group,fe=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function ze(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:ie}),info:j({},e,{value:se}),warn:j({},e,{value:ue}),error:j({},e,{value:ce}),group:j({},e,{value:le}),groupCollapsed:j({},e,{value:fe}),groupEnd:j({},e,{value:de})})}F<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=k.ReactCurrentDispatcher,J;function Y(e,r,t){{if(J===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
|
|
18
|
+
`+J+e}}var Z=!1,L;{var qe=typeof WeakMap=="function"?WeakMap:Map;L=new qe}function pe(e,r){if(!e||Z)return"";{var t=L.get(e);if(t!==void 0)return t}var n;Z=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=q.current,q.current=null,Be();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(P){n=P}Reflect.construct(e,[],i)}else{try{i.call()}catch(P){n=P}e.call(i.prototype)}}else{try{throw Error()}catch(P){n=P}e()}}catch(P){if(P&&n&&typeof P.stack=="string"){for(var o=P.stack.split(`
|
|
19
|
+
`),R=n.stack.split(`
|
|
20
|
+
`),d=o.length-1,v=R.length-1;d>=1&&v>=0&&o[d]!==R[v];)v--;for(;d>=1&&v>=0;d--,v--)if(o[d]!==R[v]){if(d!==1||v!==1)do if(d--,v--,v<0||o[d]!==R[v]){var _=`
|
|
21
|
+
`+o[d].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,_),_}while(d>=1&&v>=0);break}}}finally{Z=!1,q.current=c,ze(),Error.prepareStackTrace=s}var A=e?e.displayName||e.name:"",Pe=A?Y(A):"";return typeof e=="function"&&L.set(e,Pe),Pe}function Je(e,r,t){return pe(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,Ze(e));if(typeof e=="string")return Y(e);switch(e){case x:return Y("Suspense");case g:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return Je(e.render);case l:return N(e.type,r,t);case f:{var n=e,s=n._payload,c=n._init;try{return N(c(s),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,me={},ye=k.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function Ge(e,r,t,n,s){{var c=Function.call.bind(U);for(var i in e)if(c(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var R=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}o=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){o=d}o&&!(o instanceof Error)&&(B(s),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof o),B(null)),o instanceof Error&&!(o.message in me)&&(me[o.message]=!0,B(s),b("Failed %s type: %s",t,o.message),B(null))}}}var Ke=Array.isArray;function G(e){return Ke(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function be(e){if(Xe(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),ge(e)}var I=k.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Re,he,K;K={};function er(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function rr(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function tr(e,r){if(typeof e.ref=="string"&&I.current&&r&&I.current.stateNode!==r){var t=w(I.current.type);K[t]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(I.current.type),e.ref),K[t]=!0)}}function nr(e,r){{var t=function(){Re||(Re=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){he||(he=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var or=function(e,r,t,n,s,c,i){var o={$$typeof:S,type:e,key:r,ref:t,props:i,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function ir(e,r,t,n,s){{var c,i={},o=null,R=null;t!==void 0&&(be(t),o=""+t),rr(r)&&(be(r.key),o=""+r.key),er(r)&&(R=r.ref,tr(r,s));for(c in r)U.call(r,c)&&!Qe.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var d=e.defaultProps;for(c in d)i[c]===void 0&&(i[c]=d[c])}if(o||R){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&nr(i,v),R&&ar(i,v)}return or(e,o,R,s,n,I.current,i)}}var H=k.ReactCurrentOwner,Ee=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var X;X=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}function _e(){{if(H.current){var e=w(H.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function sr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var Se={};function ur(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Se[t])return;Se[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+w(e._owner.type)+"."),D(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function Ce(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&Te(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var s=Ie(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),i;!(i=c.next()).done;)Q(i.value)&&Te(i.value,r)}}}function cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===l))t=r.propTypes;else return;if(t){var n=w(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var s=w(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function we(e,r,t,n,s,c){{var i=Ne(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=sr(s);R?o+=R:o+=_e();var d;e===null?d="null":G(e)?d="array":e!==void 0&&e.$$typeof===S?(d="<"+(w(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,o)}var v=ir(e,r,t,s,c);if(v==null)return v;if(i){var _=r.children;if(_!==void 0)if(n)if(G(_)){for(var A=0;A<_.length;A++)Ce(_[A],e);Object.freeze&&Object.freeze(_)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(_,e)}return e===C?lr(v):cr(v),v}}function fr(e,r,t){return we(e,r,t,!0)}function dr(e,r,t){return we(e,r,t,!1)}var vr=dr,pr=fr;$.Fragment=C,$.jsx=vr,$.jsxs=pr}()),$}process.env.NODE_ENV==="production"?ee.exports=hr():ee.exports=Er();var je=ee.exports;function _r({children:a,maps:S}){const T=mr.useDispatch(),[C,u]=h.useReducer(Ae,{...W.state,maps:S.reduce((l,f)=>(l[f.id]=f,l),W.state.maps)}),m=h.useCallback((l,f)=>{S[0].id===l&&T(yr.setViewState(f))},[T,S]),p=h.useCallback((l,f)=>{u({type:V.SetViewState,payload:{id:l,viewState:f}}),m(l,f)},[u,m]),E=h.useCallback((l,{height:f,width:O})=>{u({type:V.SetResize,payload:{id:l,height:f,width:O}}),m(l,{height:f,width:O})},[u,m]),y=h.useCallback((l,f)=>{u({type:V.SetBasemap,payload:{id:l,basemap:f}})},[u]),x=h.useCallback((l,f)=>{u({type:V.SetZoom,payload:{id:l,zoom:f}})},[u]),g=h.useRef({setViewState:p,setBasemap:y,setResize:E,setZoom:x});return je.jsx(te.Provider,{value:g.current,children:je.jsx(re.Provider,{value:C,children:a})})}exports.CartoBasemapURL=gr;exports.CartoBasemapsNames=De;exports.GMapsBasemap=ke;exports.INITIAL_STATE=W;exports.MapActionsContext=te;exports.MapContext=re;exports.MapProvider=_r;exports.reducer=Ae;exports.useMap=br;exports.useMapActions=Rr;
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import xe, { createContext as je, useContext as ke, useReducer as mr, useCallback as I, useRef as yr } from "react";
|
|
2
2
|
import { useDispatch as gr } from "react-redux";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { setViewState as Rr } from "@carto/react-redux";
|
|
4
|
+
var br = /* @__PURE__ */ ((a) => (a.Roadmap = "roadmap", a.Satellite = "satellite", a.Terrain = "terrain", a))(br || {}), hr = /* @__PURE__ */ ((a) => (a.DarkMatter = "dark-matter", a.Positron = "positron", a.Voyager = "voyager", a))(hr || {});
|
|
5
|
+
const Pr = {
|
|
5
6
|
positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
6
7
|
voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
7
8
|
"dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
8
|
-
},
|
|
9
|
+
}, z = () => {
|
|
9
10
|
throw new Error("You forgot to wrap your component in <MapProvider>.");
|
|
10
|
-
},
|
|
11
|
+
}, B = {
|
|
11
12
|
state: {
|
|
12
13
|
maps: {}
|
|
13
14
|
// sync: false,
|
|
14
15
|
},
|
|
15
16
|
actions: {
|
|
16
17
|
// toggleSync: stub,
|
|
17
|
-
setViewState:
|
|
18
|
-
setBasemap:
|
|
19
|
-
setResize:
|
|
20
|
-
setZoom:
|
|
18
|
+
setViewState: z,
|
|
19
|
+
setBasemap: z,
|
|
20
|
+
setResize: z,
|
|
21
|
+
setZoom: z
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
),
|
|
25
|
-
|
|
23
|
+
}, De = je(
|
|
24
|
+
B.state
|
|
25
|
+
), Fe = je(
|
|
26
|
+
B.actions
|
|
26
27
|
);
|
|
27
|
-
var
|
|
28
|
-
function
|
|
28
|
+
var W = /* @__PURE__ */ ((a) => (a.SetViewState = "SetViewState", a.SetBasemap = "SetBasemap", a.SetResize = "SetResize", a.SetZoom = "SetZoom", a))(W || {});
|
|
29
|
+
function Er(a, { type: _, payload: S }) {
|
|
29
30
|
return {
|
|
30
31
|
SetViewState: () => {
|
|
31
|
-
const { id: u, viewState: m } =
|
|
32
|
+
const { id: u, viewState: m } = S, p = { ...a.maps };
|
|
32
33
|
return p[u] = {
|
|
33
34
|
...a.maps[u],
|
|
34
35
|
viewState: m
|
|
@@ -38,8 +39,8 @@ function hr(a, { type: g, payload: E }) {
|
|
|
38
39
|
};
|
|
39
40
|
},
|
|
40
41
|
SetResize: () => {
|
|
41
|
-
const { id: u, width: m, height: p } =
|
|
42
|
-
return
|
|
42
|
+
const { id: u, width: m, height: p } = S, h = { ...a.maps };
|
|
43
|
+
return h[u] = {
|
|
43
44
|
...a.maps[u],
|
|
44
45
|
viewState: {
|
|
45
46
|
...a.maps[u].viewState,
|
|
@@ -48,11 +49,11 @@ function hr(a, { type: g, payload: E }) {
|
|
|
48
49
|
}
|
|
49
50
|
}, {
|
|
50
51
|
...a,
|
|
51
|
-
maps:
|
|
52
|
+
maps: h
|
|
52
53
|
};
|
|
53
54
|
},
|
|
54
55
|
SetBasemap: () => {
|
|
55
|
-
const { id: u, basemap: m } =
|
|
56
|
+
const { id: u, basemap: m } = S, p = { ...a.maps };
|
|
56
57
|
return p[u] = {
|
|
57
58
|
...a.maps[u],
|
|
58
59
|
basemap: m
|
|
@@ -62,7 +63,7 @@ function hr(a, { type: g, payload: E }) {
|
|
|
62
63
|
};
|
|
63
64
|
},
|
|
64
65
|
SetZoom: () => {
|
|
65
|
-
const { id: u, zoom: m } =
|
|
66
|
+
const { id: u, zoom: m } = S, p = { ...a.maps };
|
|
66
67
|
return p[u] = {
|
|
67
68
|
...a.maps[u],
|
|
68
69
|
viewState: {
|
|
@@ -74,15 +75,15 @@ function hr(a, { type: g, payload: E }) {
|
|
|
74
75
|
maps: p
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
|
-
}[
|
|
78
|
+
}[_]?.() ?? a;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
-
return De
|
|
80
|
+
function Or() {
|
|
81
|
+
return ke(De);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
83
|
+
function xr() {
|
|
84
|
+
return ke(Fe);
|
|
84
85
|
}
|
|
85
|
-
var
|
|
86
|
+
var ee = { exports: {} }, V = {};
|
|
86
87
|
/**
|
|
87
88
|
* @license React
|
|
88
89
|
* react-jsx-runtime.production.min.js
|
|
@@ -92,23 +93,23 @@ var te = { exports: {} }, W = {};
|
|
|
92
93
|
* This source code is licensed under the MIT license found in the
|
|
93
94
|
* LICENSE file in the root directory of this source tree.
|
|
94
95
|
*/
|
|
95
|
-
var
|
|
96
|
-
function
|
|
97
|
-
if (
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
var a =
|
|
101
|
-
function p(
|
|
102
|
-
var
|
|
96
|
+
var Ce;
|
|
97
|
+
function _r() {
|
|
98
|
+
if (Ce)
|
|
99
|
+
return V;
|
|
100
|
+
Ce = 1;
|
|
101
|
+
var a = xe, _ = Symbol.for("react.element"), S = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
102
|
+
function p(h, y, P) {
|
|
103
|
+
var g, l = {}, f = null, O = null;
|
|
103
104
|
P !== void 0 && (f = "" + P), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (O = y.ref);
|
|
104
|
-
for (
|
|
105
|
-
|
|
106
|
-
if (
|
|
107
|
-
for (
|
|
108
|
-
l[
|
|
109
|
-
return { $$typeof:
|
|
105
|
+
for (g in y)
|
|
106
|
+
w.call(y, g) && !m.hasOwnProperty(g) && (l[g] = y[g]);
|
|
107
|
+
if (h && h.defaultProps)
|
|
108
|
+
for (g in y = h.defaultProps, y)
|
|
109
|
+
l[g] === void 0 && (l[g] = y[g]);
|
|
110
|
+
return { $$typeof: _, type: h, key: f, ref: O, props: l, _owner: u.current };
|
|
110
111
|
}
|
|
111
|
-
return
|
|
112
|
+
return V.Fragment = S, V.jsx = p, V.jsxs = p, V;
|
|
112
113
|
}
|
|
113
114
|
var $ = {};
|
|
114
115
|
/**
|
|
@@ -120,18 +121,18 @@ var $ = {};
|
|
|
120
121
|
* This source code is licensed under the MIT license found in the
|
|
121
122
|
* LICENSE file in the root directory of this source tree.
|
|
122
123
|
*/
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
return
|
|
126
|
-
var a =
|
|
124
|
+
var Pe;
|
|
125
|
+
function Sr() {
|
|
126
|
+
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
127
|
+
var a = xe, _ = Symbol.for("react.element"), S = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), re = Symbol.iterator, Ae = "@@iterator";
|
|
127
128
|
function Ie(e) {
|
|
128
129
|
if (e === null || typeof e != "object")
|
|
129
130
|
return null;
|
|
130
|
-
var r =
|
|
131
|
+
var r = re && e[re] || e[Ae];
|
|
131
132
|
return typeof r == "function" ? r : null;
|
|
132
133
|
}
|
|
133
134
|
var j = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
134
|
-
function
|
|
135
|
+
function R(e) {
|
|
135
136
|
{
|
|
136
137
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
137
138
|
t[n - 1] = arguments[n];
|
|
@@ -148,14 +149,14 @@ function _r() {
|
|
|
148
149
|
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
var
|
|
152
|
-
|
|
152
|
+
var $e = !1, We = !1, Ye = !1, Me = !1, Le = !1, te;
|
|
153
|
+
te = Symbol.for("react.module.reference");
|
|
153
154
|
function Ne(e) {
|
|
154
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
155
|
+
return !!(typeof e == "string" || typeof e == "function" || e === w || e === m || Le || e === u || e === P || e === g || Me || e === O || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === l || e.$$typeof === p || e.$$typeof === h || e.$$typeof === y || // This needs to include all possible module reference object
|
|
155
156
|
// types supported by any Flight configuration anywhere since
|
|
156
157
|
// we don't know which Flight build this will end up being used
|
|
157
158
|
// with.
|
|
158
|
-
e.$$typeof ===
|
|
159
|
+
e.$$typeof === te || e.getModuleId !== void 0));
|
|
159
160
|
}
|
|
160
161
|
function Ue(e, r, t) {
|
|
161
162
|
var n = e.displayName;
|
|
@@ -164,20 +165,20 @@ function _r() {
|
|
|
164
165
|
var s = r.displayName || r.name || "";
|
|
165
166
|
return s !== "" ? t + "(" + s + ")" : t;
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
+
function ne(e) {
|
|
168
169
|
return e.displayName || "Context";
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
+
function T(e) {
|
|
171
172
|
if (e == null)
|
|
172
173
|
return null;
|
|
173
|
-
if (typeof e.tag == "number" &&
|
|
174
|
+
if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
174
175
|
return e.displayName || e.name || null;
|
|
175
176
|
if (typeof e == "string")
|
|
176
177
|
return e;
|
|
177
178
|
switch (e) {
|
|
178
|
-
case
|
|
179
|
+
case w:
|
|
179
180
|
return "Fragment";
|
|
180
|
-
case
|
|
181
|
+
case S:
|
|
181
182
|
return "Portal";
|
|
182
183
|
case m:
|
|
183
184
|
return "Profiler";
|
|
@@ -185,26 +186,26 @@ function _r() {
|
|
|
185
186
|
return "StrictMode";
|
|
186
187
|
case P:
|
|
187
188
|
return "Suspense";
|
|
188
|
-
case
|
|
189
|
+
case g:
|
|
189
190
|
return "SuspenseList";
|
|
190
191
|
}
|
|
191
192
|
if (typeof e == "object")
|
|
192
193
|
switch (e.$$typeof) {
|
|
193
|
-
case
|
|
194
|
+
case h:
|
|
194
195
|
var r = e;
|
|
195
|
-
return
|
|
196
|
+
return ne(r) + ".Consumer";
|
|
196
197
|
case p:
|
|
197
198
|
var t = e;
|
|
198
|
-
return
|
|
199
|
+
return ne(t._context) + ".Provider";
|
|
199
200
|
case y:
|
|
200
201
|
return Ue(e, e.render, "ForwardRef");
|
|
201
202
|
case l:
|
|
202
203
|
var n = e.displayName || null;
|
|
203
|
-
return n !== null ? n :
|
|
204
|
+
return n !== null ? n : T(e.type) || "Memo";
|
|
204
205
|
case f: {
|
|
205
206
|
var s = e, c = s._payload, i = s._init;
|
|
206
207
|
try {
|
|
207
|
-
return
|
|
208
|
+
return T(i(c));
|
|
208
209
|
} catch {
|
|
209
210
|
return null;
|
|
210
211
|
}
|
|
@@ -212,18 +213,18 @@ function _r() {
|
|
|
212
213
|
}
|
|
213
214
|
return null;
|
|
214
215
|
}
|
|
215
|
-
var x = Object.assign,
|
|
216
|
-
function
|
|
216
|
+
var x = Object.assign, F = 0, ae, oe, ie, se, ue, ce, le;
|
|
217
|
+
function fe() {
|
|
217
218
|
}
|
|
218
|
-
|
|
219
|
+
fe.__reactDisabledLog = !0;
|
|
219
220
|
function ze() {
|
|
220
221
|
{
|
|
221
|
-
if (
|
|
222
|
-
|
|
222
|
+
if (F === 0) {
|
|
223
|
+
ae = console.log, oe = console.info, ie = console.warn, se = console.error, ue = console.group, ce = console.groupCollapsed, le = console.groupEnd;
|
|
223
224
|
var e = {
|
|
224
225
|
configurable: !0,
|
|
225
226
|
enumerable: !0,
|
|
226
|
-
value:
|
|
227
|
+
value: fe,
|
|
227
228
|
writable: !0
|
|
228
229
|
};
|
|
229
230
|
Object.defineProperties(console, {
|
|
@@ -236,12 +237,12 @@ function _r() {
|
|
|
236
237
|
groupEnd: e
|
|
237
238
|
});
|
|
238
239
|
}
|
|
239
|
-
|
|
240
|
+
F++;
|
|
240
241
|
}
|
|
241
242
|
}
|
|
242
243
|
function Be() {
|
|
243
244
|
{
|
|
244
|
-
if (
|
|
245
|
+
if (F--, F === 0) {
|
|
245
246
|
var e = {
|
|
246
247
|
configurable: !0,
|
|
247
248
|
enumerable: !0,
|
|
@@ -249,64 +250,64 @@ function _r() {
|
|
|
249
250
|
};
|
|
250
251
|
Object.defineProperties(console, {
|
|
251
252
|
log: x({}, e, {
|
|
252
|
-
value:
|
|
253
|
+
value: ae
|
|
253
254
|
}),
|
|
254
255
|
info: x({}, e, {
|
|
255
|
-
value:
|
|
256
|
+
value: oe
|
|
256
257
|
}),
|
|
257
258
|
warn: x({}, e, {
|
|
258
|
-
value:
|
|
259
|
+
value: ie
|
|
259
260
|
}),
|
|
260
261
|
error: x({}, e, {
|
|
261
|
-
value:
|
|
262
|
+
value: se
|
|
262
263
|
}),
|
|
263
264
|
group: x({}, e, {
|
|
264
|
-
value:
|
|
265
|
+
value: ue
|
|
265
266
|
}),
|
|
266
267
|
groupCollapsed: x({}, e, {
|
|
267
|
-
value:
|
|
268
|
+
value: ce
|
|
268
269
|
}),
|
|
269
270
|
groupEnd: x({}, e, {
|
|
270
|
-
value:
|
|
271
|
+
value: le
|
|
271
272
|
})
|
|
272
273
|
});
|
|
273
274
|
}
|
|
274
|
-
|
|
275
|
+
F < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
275
276
|
}
|
|
276
277
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
278
|
+
var q = j.ReactCurrentDispatcher, J;
|
|
279
|
+
function Y(e, r, t) {
|
|
279
280
|
{
|
|
280
|
-
if (
|
|
281
|
+
if (J === void 0)
|
|
281
282
|
try {
|
|
282
283
|
throw Error();
|
|
283
284
|
} catch (s) {
|
|
284
285
|
var n = s.stack.trim().match(/\n( *(at )?)/);
|
|
285
|
-
|
|
286
|
+
J = n && n[1] || "";
|
|
286
287
|
}
|
|
287
288
|
return `
|
|
288
|
-
` +
|
|
289
|
+
` + J + e;
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
|
-
var
|
|
292
|
+
var Z = !1, M;
|
|
292
293
|
{
|
|
293
294
|
var qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
294
|
-
|
|
295
|
+
M = new qe();
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
-
if (!e ||
|
|
297
|
+
function de(e, r) {
|
|
298
|
+
if (!e || Z)
|
|
298
299
|
return "";
|
|
299
300
|
{
|
|
300
|
-
var t =
|
|
301
|
+
var t = M.get(e);
|
|
301
302
|
if (t !== void 0)
|
|
302
303
|
return t;
|
|
303
304
|
}
|
|
304
305
|
var n;
|
|
305
|
-
|
|
306
|
+
Z = !0;
|
|
306
307
|
var s = Error.prepareStackTrace;
|
|
307
308
|
Error.prepareStackTrace = void 0;
|
|
308
309
|
var c;
|
|
309
|
-
c =
|
|
310
|
+
c = q.current, q.current = null, ze();
|
|
310
311
|
try {
|
|
311
312
|
if (r) {
|
|
312
313
|
var i = function() {
|
|
@@ -342,94 +343,94 @@ function _r() {
|
|
|
342
343
|
} catch (C) {
|
|
343
344
|
if (C && n && typeof C.stack == "string") {
|
|
344
345
|
for (var o = C.stack.split(`
|
|
345
|
-
`),
|
|
346
|
-
`), d = o.length - 1, v =
|
|
346
|
+
`), b = n.stack.split(`
|
|
347
|
+
`), d = o.length - 1, v = b.length - 1; d >= 1 && v >= 0 && o[d] !== b[v]; )
|
|
347
348
|
v--;
|
|
348
349
|
for (; d >= 1 && v >= 0; d--, v--)
|
|
349
|
-
if (o[d] !==
|
|
350
|
+
if (o[d] !== b[v]) {
|
|
350
351
|
if (d !== 1 || v !== 1)
|
|
351
352
|
do
|
|
352
|
-
if (d--, v--, v < 0 || o[d] !==
|
|
353
|
-
var
|
|
353
|
+
if (d--, v--, v < 0 || o[d] !== b[v]) {
|
|
354
|
+
var E = `
|
|
354
355
|
` + o[d].replace(" at new ", " at ");
|
|
355
|
-
return e.displayName &&
|
|
356
|
+
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, E), E;
|
|
356
357
|
}
|
|
357
358
|
while (d >= 1 && v >= 0);
|
|
358
359
|
break;
|
|
359
360
|
}
|
|
360
361
|
}
|
|
361
362
|
} finally {
|
|
362
|
-
|
|
363
|
+
Z = !1, q.current = c, Be(), Error.prepareStackTrace = s;
|
|
363
364
|
}
|
|
364
|
-
var D = e ? e.displayName || e.name : "",
|
|
365
|
-
return typeof e == "function" &&
|
|
365
|
+
var D = e ? e.displayName || e.name : "", Te = D ? Y(D) : "";
|
|
366
|
+
return typeof e == "function" && M.set(e, Te), Te;
|
|
366
367
|
}
|
|
367
368
|
function Je(e, r, t) {
|
|
368
|
-
return
|
|
369
|
+
return de(e, !1);
|
|
369
370
|
}
|
|
370
371
|
function Ze(e) {
|
|
371
372
|
var r = e.prototype;
|
|
372
373
|
return !!(r && r.isReactComponent);
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
+
function L(e, r, t) {
|
|
375
376
|
if (e == null)
|
|
376
377
|
return "";
|
|
377
378
|
if (typeof e == "function")
|
|
378
|
-
return
|
|
379
|
+
return de(e, Ze(e));
|
|
379
380
|
if (typeof e == "string")
|
|
380
|
-
return
|
|
381
|
+
return Y(e);
|
|
381
382
|
switch (e) {
|
|
382
383
|
case P:
|
|
383
|
-
return
|
|
384
|
-
case
|
|
385
|
-
return
|
|
384
|
+
return Y("Suspense");
|
|
385
|
+
case g:
|
|
386
|
+
return Y("SuspenseList");
|
|
386
387
|
}
|
|
387
388
|
if (typeof e == "object")
|
|
388
389
|
switch (e.$$typeof) {
|
|
389
390
|
case y:
|
|
390
391
|
return Je(e.render);
|
|
391
392
|
case l:
|
|
392
|
-
return
|
|
393
|
+
return L(e.type, r, t);
|
|
393
394
|
case f: {
|
|
394
395
|
var n = e, s = n._payload, c = n._init;
|
|
395
396
|
try {
|
|
396
|
-
return
|
|
397
|
+
return L(c(s), r, t);
|
|
397
398
|
} catch {
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
401
|
}
|
|
401
402
|
return "";
|
|
402
403
|
}
|
|
403
|
-
var
|
|
404
|
-
function
|
|
404
|
+
var N = Object.prototype.hasOwnProperty, ve = {}, pe = j.ReactDebugCurrentFrame;
|
|
405
|
+
function U(e) {
|
|
405
406
|
if (e) {
|
|
406
|
-
var r = e._owner, t =
|
|
407
|
-
|
|
407
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
408
|
+
pe.setExtraStackFrame(t);
|
|
408
409
|
} else
|
|
409
|
-
|
|
410
|
+
pe.setExtraStackFrame(null);
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function Ge(e, r, t, n, s) {
|
|
412
413
|
{
|
|
413
|
-
var c = Function.call.bind(
|
|
414
|
+
var c = Function.call.bind(N);
|
|
414
415
|
for (var i in e)
|
|
415
416
|
if (c(e, i)) {
|
|
416
417
|
var o = void 0;
|
|
417
418
|
try {
|
|
418
419
|
if (typeof e[i] != "function") {
|
|
419
|
-
var
|
|
420
|
-
throw
|
|
420
|
+
var b = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
421
|
+
throw b.name = "Invariant Violation", b;
|
|
421
422
|
}
|
|
422
423
|
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
423
424
|
} catch (d) {
|
|
424
425
|
o = d;
|
|
425
426
|
}
|
|
426
|
-
o && !(o instanceof Error) && (
|
|
427
|
+
o && !(o instanceof Error) && (U(s), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), U(null)), o instanceof Error && !(o.message in ve) && (ve[o.message] = !0, U(s), R("Failed %s type: %s", t, o.message), U(null));
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
430
|
}
|
|
430
|
-
var
|
|
431
|
-
function
|
|
432
|
-
return
|
|
431
|
+
var Ke = Array.isArray;
|
|
432
|
+
function G(e) {
|
|
433
|
+
return Ke(e);
|
|
433
434
|
}
|
|
434
435
|
function He(e) {
|
|
435
436
|
{
|
|
@@ -439,27 +440,27 @@ function _r() {
|
|
|
439
440
|
}
|
|
440
441
|
function Xe(e) {
|
|
441
442
|
try {
|
|
442
|
-
return
|
|
443
|
+
return me(e), !1;
|
|
443
444
|
} catch {
|
|
444
445
|
return !0;
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
+
function me(e) {
|
|
448
449
|
return "" + e;
|
|
449
450
|
}
|
|
450
|
-
function
|
|
451
|
+
function ye(e) {
|
|
451
452
|
if (Xe(e))
|
|
452
|
-
return
|
|
453
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), me(e);
|
|
453
454
|
}
|
|
454
|
-
var
|
|
455
|
+
var A = j.ReactCurrentOwner, Qe = {
|
|
455
456
|
key: !0,
|
|
456
457
|
ref: !0,
|
|
457
458
|
__self: !0,
|
|
458
459
|
__source: !0
|
|
459
|
-
},
|
|
460
|
-
|
|
460
|
+
}, ge, Re, K;
|
|
461
|
+
K = {};
|
|
461
462
|
function er(e) {
|
|
462
|
-
if (
|
|
463
|
+
if (N.call(e, "ref")) {
|
|
463
464
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
464
465
|
if (r && r.isReactWarning)
|
|
465
466
|
return !1;
|
|
@@ -467,7 +468,7 @@ function _r() {
|
|
|
467
468
|
return e.ref !== void 0;
|
|
468
469
|
}
|
|
469
470
|
function rr(e) {
|
|
470
|
-
if (
|
|
471
|
+
if (N.call(e, "key")) {
|
|
471
472
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
472
473
|
if (r && r.isReactWarning)
|
|
473
474
|
return !1;
|
|
@@ -475,15 +476,15 @@ function _r() {
|
|
|
475
476
|
return e.key !== void 0;
|
|
476
477
|
}
|
|
477
478
|
function tr(e, r) {
|
|
478
|
-
if (typeof e.ref == "string" &&
|
|
479
|
-
var t =
|
|
480
|
-
|
|
479
|
+
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
|
|
480
|
+
var t = T(A.current.type);
|
|
481
|
+
K[t] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', T(A.current.type), e.ref), K[t] = !0);
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
484
|
function nr(e, r) {
|
|
484
485
|
{
|
|
485
486
|
var t = function() {
|
|
486
|
-
|
|
487
|
+
ge || (ge = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
487
488
|
};
|
|
488
489
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
489
490
|
get: t,
|
|
@@ -494,7 +495,7 @@ function _r() {
|
|
|
494
495
|
function ar(e, r) {
|
|
495
496
|
{
|
|
496
497
|
var t = function() {
|
|
497
|
-
|
|
498
|
+
Re || (Re = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
498
499
|
};
|
|
499
500
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
500
501
|
get: t,
|
|
@@ -505,7 +506,7 @@ function _r() {
|
|
|
505
506
|
var or = function(e, r, t, n, s, c, i) {
|
|
506
507
|
var o = {
|
|
507
508
|
// This tag allows us to uniquely identify this as a React Element
|
|
508
|
-
$$typeof:
|
|
509
|
+
$$typeof: _,
|
|
509
510
|
// Built-in properties that belong on the element
|
|
510
511
|
type: e,
|
|
511
512
|
key: r,
|
|
@@ -533,39 +534,39 @@ function _r() {
|
|
|
533
534
|
};
|
|
534
535
|
function ir(e, r, t, n, s) {
|
|
535
536
|
{
|
|
536
|
-
var c, i = {}, o = null,
|
|
537
|
-
t !== void 0 && (
|
|
537
|
+
var c, i = {}, o = null, b = null;
|
|
538
|
+
t !== void 0 && (ye(t), o = "" + t), rr(r) && (ye(r.key), o = "" + r.key), er(r) && (b = r.ref, tr(r, s));
|
|
538
539
|
for (c in r)
|
|
539
|
-
|
|
540
|
+
N.call(r, c) && !Qe.hasOwnProperty(c) && (i[c] = r[c]);
|
|
540
541
|
if (e && e.defaultProps) {
|
|
541
542
|
var d = e.defaultProps;
|
|
542
543
|
for (c in d)
|
|
543
544
|
i[c] === void 0 && (i[c] = d[c]);
|
|
544
545
|
}
|
|
545
|
-
if (o ||
|
|
546
|
+
if (o || b) {
|
|
546
547
|
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
547
|
-
o && nr(i, v),
|
|
548
|
+
o && nr(i, v), b && ar(i, v);
|
|
548
549
|
}
|
|
549
|
-
return or(e, o,
|
|
550
|
+
return or(e, o, b, s, n, A.current, i);
|
|
550
551
|
}
|
|
551
552
|
}
|
|
552
|
-
var
|
|
553
|
+
var H = j.ReactCurrentOwner, be = j.ReactDebugCurrentFrame;
|
|
553
554
|
function k(e) {
|
|
554
555
|
if (e) {
|
|
555
|
-
var r = e._owner, t =
|
|
556
|
-
|
|
556
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
557
|
+
be.setExtraStackFrame(t);
|
|
557
558
|
} else
|
|
558
|
-
|
|
559
|
+
be.setExtraStackFrame(null);
|
|
559
560
|
}
|
|
560
|
-
var
|
|
561
|
-
|
|
562
|
-
function
|
|
563
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
561
|
+
var X;
|
|
562
|
+
X = !1;
|
|
563
|
+
function Q(e) {
|
|
564
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
564
565
|
}
|
|
565
|
-
function
|
|
566
|
+
function he() {
|
|
566
567
|
{
|
|
567
|
-
if (
|
|
568
|
-
var e =
|
|
568
|
+
if (H.current) {
|
|
569
|
+
var e = T(H.current.type);
|
|
569
570
|
if (e)
|
|
570
571
|
return `
|
|
571
572
|
|
|
@@ -585,10 +586,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
585
586
|
return "";
|
|
586
587
|
}
|
|
587
588
|
}
|
|
588
|
-
var
|
|
589
|
+
var Ee = {};
|
|
589
590
|
function ur(e) {
|
|
590
591
|
{
|
|
591
|
-
var r =
|
|
592
|
+
var r = he();
|
|
592
593
|
if (!r) {
|
|
593
594
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
594
595
|
t && (r = `
|
|
@@ -598,35 +599,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
598
599
|
return r;
|
|
599
600
|
}
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function _e(e, r) {
|
|
602
603
|
{
|
|
603
604
|
if (!e._store || e._store.validated || e.key != null)
|
|
604
605
|
return;
|
|
605
606
|
e._store.validated = !0;
|
|
606
607
|
var t = ur(r);
|
|
607
|
-
if (
|
|
608
|
+
if (Ee[t])
|
|
608
609
|
return;
|
|
609
|
-
|
|
610
|
+
Ee[t] = !0;
|
|
610
611
|
var n = "";
|
|
611
|
-
e && e._owner && e._owner !==
|
|
612
|
+
e && e._owner && e._owner !== H.current && (n = " It was passed a child from " + T(e._owner.type) + "."), k(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
|
|
612
613
|
}
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
+
function Se(e, r) {
|
|
615
616
|
{
|
|
616
617
|
if (typeof e != "object")
|
|
617
618
|
return;
|
|
618
|
-
if (
|
|
619
|
+
if (G(e))
|
|
619
620
|
for (var t = 0; t < e.length; t++) {
|
|
620
621
|
var n = e[t];
|
|
621
|
-
|
|
622
|
+
Q(n) && _e(n, r);
|
|
622
623
|
}
|
|
623
|
-
else if (
|
|
624
|
+
else if (Q(e))
|
|
624
625
|
e._store && (e._store.validated = !0);
|
|
625
626
|
else if (e) {
|
|
626
627
|
var s = Ie(e);
|
|
627
628
|
if (typeof s == "function" && s !== e.entries)
|
|
628
629
|
for (var c = s.call(e), i; !(i = c.next()).done; )
|
|
629
|
-
|
|
630
|
+
Q(i.value) && _e(i.value, r);
|
|
630
631
|
}
|
|
631
632
|
}
|
|
632
633
|
}
|
|
@@ -645,14 +646,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
645
646
|
else
|
|
646
647
|
return;
|
|
647
648
|
if (t) {
|
|
648
|
-
var n =
|
|
649
|
-
|
|
650
|
-
} else if (r.PropTypes !== void 0 && !
|
|
651
|
-
|
|
652
|
-
var s =
|
|
653
|
-
|
|
649
|
+
var n = T(r);
|
|
650
|
+
Ge(t, e.props, "prop", n, e);
|
|
651
|
+
} else if (r.PropTypes !== void 0 && !X) {
|
|
652
|
+
X = !0;
|
|
653
|
+
var s = T(r);
|
|
654
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
654
655
|
}
|
|
655
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
656
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
659
|
function lr(e) {
|
|
@@ -660,11 +661,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
660
661
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
661
662
|
var n = r[t];
|
|
662
663
|
if (n !== "children" && n !== "key") {
|
|
663
|
-
k(e),
|
|
664
|
+
k(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
664
665
|
break;
|
|
665
666
|
}
|
|
666
667
|
}
|
|
667
|
-
e.ref !== null && (k(e),
|
|
668
|
+
e.ref !== null && (k(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
668
669
|
}
|
|
669
670
|
}
|
|
670
671
|
function we(e, r, t, n, s, c) {
|
|
@@ -673,28 +674,28 @@ Check the top-level render call using <` + t + ">.");
|
|
|
673
674
|
if (!i) {
|
|
674
675
|
var o = "";
|
|
675
676
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
676
|
-
var
|
|
677
|
-
|
|
677
|
+
var b = sr(s);
|
|
678
|
+
b ? o += b : o += he();
|
|
678
679
|
var d;
|
|
679
|
-
e === null ? d = "null" :
|
|
680
|
+
e === null ? d = "null" : G(e) ? d = "array" : e !== void 0 && e.$$typeof === _ ? (d = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, o);
|
|
680
681
|
}
|
|
681
682
|
var v = ir(e, r, t, s, c);
|
|
682
683
|
if (v == null)
|
|
683
684
|
return v;
|
|
684
685
|
if (i) {
|
|
685
|
-
var
|
|
686
|
-
if (
|
|
686
|
+
var E = r.children;
|
|
687
|
+
if (E !== void 0)
|
|
687
688
|
if (n)
|
|
688
|
-
if (
|
|
689
|
-
for (var D = 0; D <
|
|
690
|
-
|
|
691
|
-
Object.freeze && Object.freeze(
|
|
689
|
+
if (G(E)) {
|
|
690
|
+
for (var D = 0; D < E.length; D++)
|
|
691
|
+
Se(E[D], e);
|
|
692
|
+
Object.freeze && Object.freeze(E);
|
|
692
693
|
} else
|
|
693
|
-
|
|
694
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
694
695
|
else
|
|
695
|
-
|
|
696
|
+
Se(E, e);
|
|
696
697
|
}
|
|
697
|
-
return e ===
|
|
698
|
+
return e === w ? lr(v) : cr(v), v;
|
|
698
699
|
}
|
|
699
700
|
}
|
|
700
701
|
function fr(e, r, t) {
|
|
@@ -704,42 +705,24 @@ Check the top-level render call using <` + t + ">.");
|
|
|
704
705
|
return we(e, r, t, !1);
|
|
705
706
|
}
|
|
706
707
|
var vr = dr, pr = fr;
|
|
707
|
-
$.Fragment =
|
|
708
|
+
$.Fragment = w, $.jsx = vr, $.jsxs = pr;
|
|
708
709
|
}()), $;
|
|
709
710
|
}
|
|
710
|
-
process.env.NODE_ENV === "production" ?
|
|
711
|
-
var
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
"transitionInterpolator",
|
|
718
|
-
"transitionInterruption"
|
|
719
|
-
], wr = (a, g) => {
|
|
720
|
-
a({
|
|
721
|
-
type: "carto/setViewState",
|
|
722
|
-
payload: g
|
|
723
|
-
}), a({ type: "carto/setViewPort" });
|
|
724
|
-
}, Cr = Sr(wr, 500);
|
|
725
|
-
function Dr({ children: a, maps: g }) {
|
|
726
|
-
const E = gr(), [T, u] = mr(hr, {
|
|
727
|
-
...q.state,
|
|
728
|
-
maps: g.reduce((l, f) => (l[f.id] = f, l), q.state.maps)
|
|
729
|
-
}), m = V(
|
|
711
|
+
process.env.NODE_ENV === "production" ? ee.exports = _r() : ee.exports = Sr();
|
|
712
|
+
var Oe = ee.exports;
|
|
713
|
+
function jr({ children: a, maps: _ }) {
|
|
714
|
+
const S = gr(), [w, u] = mr(Er, {
|
|
715
|
+
...B.state,
|
|
716
|
+
maps: _.reduce((l, f) => (l[f.id] = f, l), B.state.maps)
|
|
717
|
+
}), m = I(
|
|
730
718
|
(l, f) => {
|
|
731
|
-
|
|
732
|
-
const F = { ...f };
|
|
733
|
-
for (const J of Tr)
|
|
734
|
-
delete F[J];
|
|
735
|
-
Cr(E, F);
|
|
736
|
-
}
|
|
719
|
+
_[0].id === l && S(Rr(f));
|
|
737
720
|
},
|
|
738
|
-
[
|
|
739
|
-
), p =
|
|
721
|
+
[S, _]
|
|
722
|
+
), p = I(
|
|
740
723
|
(l, f) => {
|
|
741
724
|
u({
|
|
742
|
-
type:
|
|
725
|
+
type: W.SetViewState,
|
|
743
726
|
payload: {
|
|
744
727
|
id: l,
|
|
745
728
|
viewState: f
|
|
@@ -747,10 +730,10 @@ function Dr({ children: a, maps: g }) {
|
|
|
747
730
|
}), m(l, f);
|
|
748
731
|
},
|
|
749
732
|
[u, m]
|
|
750
|
-
),
|
|
733
|
+
), h = I(
|
|
751
734
|
(l, { height: f, width: O }) => {
|
|
752
735
|
u({
|
|
753
|
-
type:
|
|
736
|
+
type: W.SetResize,
|
|
754
737
|
payload: {
|
|
755
738
|
id: l,
|
|
756
739
|
height: f,
|
|
@@ -759,10 +742,10 @@ function Dr({ children: a, maps: g }) {
|
|
|
759
742
|
}), m(l, { height: f, width: O });
|
|
760
743
|
},
|
|
761
744
|
[u, m]
|
|
762
|
-
), y =
|
|
745
|
+
), y = I(
|
|
763
746
|
(l, f) => {
|
|
764
747
|
u({
|
|
765
|
-
type:
|
|
748
|
+
type: W.SetBasemap,
|
|
766
749
|
payload: {
|
|
767
750
|
id: l,
|
|
768
751
|
basemap: f
|
|
@@ -770,10 +753,10 @@ function Dr({ children: a, maps: g }) {
|
|
|
770
753
|
});
|
|
771
754
|
},
|
|
772
755
|
[u]
|
|
773
|
-
), P =
|
|
756
|
+
), P = I(
|
|
774
757
|
(l, f) => {
|
|
775
758
|
u({
|
|
776
|
-
type:
|
|
759
|
+
type: W.SetZoom,
|
|
777
760
|
payload: {
|
|
778
761
|
id: l,
|
|
779
762
|
zoom: f
|
|
@@ -781,23 +764,23 @@ function Dr({ children: a, maps: g }) {
|
|
|
781
764
|
});
|
|
782
765
|
},
|
|
783
766
|
[u]
|
|
784
|
-
),
|
|
767
|
+
), g = yr({
|
|
785
768
|
setViewState: p,
|
|
786
769
|
setBasemap: y,
|
|
787
|
-
setResize:
|
|
770
|
+
setResize: h,
|
|
788
771
|
setZoom: P
|
|
789
772
|
});
|
|
790
|
-
return /* @__PURE__ */
|
|
773
|
+
return /* @__PURE__ */ Oe.jsx(Fe.Provider, { value: g.current, children: /* @__PURE__ */ Oe.jsx(De.Provider, { value: w, children: a }) });
|
|
791
774
|
}
|
|
792
775
|
export {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
776
|
+
Pr as CartoBasemapURL,
|
|
777
|
+
hr as CartoBasemapsNames,
|
|
778
|
+
br as GMapsBasemap,
|
|
779
|
+
B as INITIAL_STATE,
|
|
780
|
+
Fe as MapActionsContext,
|
|
781
|
+
De as MapContext,
|
|
782
|
+
jr as MapProvider,
|
|
783
|
+
Er as reducer,
|
|
784
|
+
Or as useMap,
|
|
785
|
+
xr as useMapActions
|
|
803
786
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './map-provider';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './map-provider.const';
|
|
2
|
+
export * from './map-provider.types';
|
|
3
|
+
export { INITIAL_STATE, MapContext, MapActionsContext, } from './map-provider.context';
|
|
4
|
+
export { reducer } from './map-provider.reducer';
|
|
5
|
+
export { useMap, useMapActions } from './map-provider.hook';
|
|
6
|
+
export { MapProvider } from './map-provider.provider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { MapContextInterface } from './map.types';
|
|
2
|
+
import type { MapContextInterface } from './map-provider.types';
|
|
3
3
|
export declare const INITIAL_STATE: MapContextInterface;
|
|
4
|
-
export declare const MapContext: import("react").Context<import("./map.types").MapState>;
|
|
5
|
-
export declare const MapActionsContext: import("react").Context<import("./map.types").MapActionsState>;
|
|
4
|
+
export declare const MapContext: import("react").Context<import("./map-provider.types").MapState>;
|
|
5
|
+
export declare const MapActionsContext: import("react").Context<import("./map-provider.types").MapActionsState>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { MapProviderProps } from './map.types';
|
|
1
|
+
import type { MapProviderProps } from './map-provider.types';
|
|
2
2
|
export declare function MapProvider({ children, maps }: MapProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
-
import { MapViewState } from '@deck.gl/core/typed';
|
|
3
|
-
import { GoogleMapsOverlay, GoogleMapsOverlayProps } from '@deck.gl/google-maps/typed';
|
|
4
|
-
import { DeckGLProps, DeckGLRef } from '@deck.gl/react/typed';
|
|
2
|
+
import { type MapViewState } from '@deck.gl/core/typed';
|
|
3
|
+
import { type GoogleMapsOverlay, type GoogleMapsOverlayProps } from '@deck.gl/google-maps/typed';
|
|
4
|
+
import { type DeckGLProps, type DeckGLRef } from '@deck.gl/react/typed';
|
|
5
5
|
import type { StyleSpecification } from 'maplibre-gl';
|
|
6
6
|
import type { Properties } from 'csstype';
|
|
7
|
-
import type { MutableRefObject, ReactNode
|
|
8
|
-
import { MapRef } from 'react-map-gl';
|
|
9
|
-
import { CartoBasemapsNames, GMapsBasemap } from './map.const';
|
|
7
|
+
import type { MutableRefObject, ReactNode } from 'react';
|
|
8
|
+
import { type MapRef } from 'react-map-gl';
|
|
9
|
+
import { CartoBasemapsNames, GMapsBasemap } from './map-provider.const';
|
|
10
10
|
export type MapProviderProps = {
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
maps: MapsProps[];
|
|
@@ -32,7 +32,7 @@ export type Basemap = (typeof GMapsBasemap)[keyof typeof GMapsBasemap] | (typeof
|
|
|
32
32
|
export type CommonProps = {
|
|
33
33
|
id: string;
|
|
34
34
|
basemap?: Basemap;
|
|
35
|
-
instanceRef?:
|
|
35
|
+
instanceRef?: MutableRefObject<InstanceMapRef>;
|
|
36
36
|
overlayRef?: MutableRefObject<OverlayMapRef>;
|
|
37
37
|
} & DeckGLProps;
|
|
38
38
|
export type MapsProps = DeckGLMapsProps & GoogleMapsProps;
|
|
@@ -43,6 +43,7 @@ export type GoogleMapsProps = {
|
|
|
43
43
|
apiKey?: string;
|
|
44
44
|
height?: string | undefined;
|
|
45
45
|
language?: string;
|
|
46
|
+
mapId?: string;
|
|
46
47
|
mapOptions?: Record<string, number | string>;
|
|
47
48
|
style?: Properties;
|
|
48
49
|
version?: string;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carto/ps-react-maps",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.11",
|
|
4
4
|
"description": "CARTO's Professional Service React Maps library",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "./dist/types/index.d.ts",
|
|
10
|
-
"main": "./dist/
|
|
11
|
-
"module": "./dist/
|
|
10
|
+
"main": "./dist/index.cjs",
|
|
11
|
+
"module": "./dist/index.js",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/types/index.d.ts",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
+
"prebuild": "npm exec rimraf dist",
|
|
20
21
|
"build": "tsc && vite build",
|
|
21
22
|
"lint": "eslint './**/*.{ts,tsx}' --ignore-path ../../.gitignore",
|
|
22
23
|
"format": "prettier --write . --ignore-path ../../.gitignore",
|
|
@@ -25,11 +26,10 @@
|
|
|
25
26
|
"test:coverage": "vitest run --coverage"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"react-
|
|
29
|
+
"@carto/react-redux": "2.2.13",
|
|
29
30
|
"react-redux": "8.1.3"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@carto/react-redux": "2.2.13",
|
|
33
33
|
"@deck.gl/core": "8.9.31",
|
|
34
34
|
"@deck.gl/google-maps": "8.9.31",
|
|
35
35
|
"@deck.gl/react": "8.9.31",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@testing-library/user-event": "14.5.1",
|
|
39
39
|
"@types/google.maps": "3.54.4",
|
|
40
40
|
"@vitejs/plugin-react-swc": "3.4.0",
|
|
41
|
-
"maplibre-gl": "3.5.1"
|
|
41
|
+
"maplibre-gl": "3.5.1",
|
|
42
|
+
"react-map-gl": "7.1.6"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"@carto/react-redux": "1.x || 2.x",
|
|
45
46
|
"react": "17.x || 18.x",
|
|
46
47
|
"react-dom": "17.x || 18.x",
|
|
47
|
-
"react-map-gl": "7.x",
|
|
48
48
|
"react-redux": "8.x"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './map.const';
|
|
2
|
-
export * from './map.types';
|
|
3
|
-
export { INITIAL_STATE, MapContext, MapActionsContext } from './map.context';
|
|
4
|
-
export { reducer } from './map.reducer';
|
|
5
|
-
export { useMap, useMapActions } from './map.hook';
|
|
6
|
-
export { MapProvider } from './map.provider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const debounce: <F extends (...args: Parameters<F>) => void>(func: F, waitFor: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MapsProps } from '@/map.types';
|
|
2
|
-
import { type ReactElement } from 'react';
|
|
3
|
-
export type Wrapper = ({ children }: {
|
|
4
|
-
children: ReactElement;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
-
export declare const wrapper: ({ maps }: {
|
|
7
|
-
maps: MapsProps[];
|
|
8
|
-
}) => Wrapper;
|
|
9
|
-
export * from '@testing-library/react';
|
|
10
|
-
export { default as userEvent } from '@testing-library/user-event';
|
|
File without changes
|