@carto/ps-react-maps 1.1.2-alpha.2 → 1.2.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.cjs +10 -10
- package/dist/index.js +33 -33
- package/package.json +20 -20
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react");var De=(n=>(n.Roadmap="roadmap",n.Satellite="satellite",n.Terrain="terrain",n))(De||{}),Ie=(n=>(n.DarkMatter="dark-matter",n.Positron="positron",n.Voyager="voyager",n))(Ie||{});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"},q=()=>{throw new Error("You forgot to wrap your component in <MapProvider>.")},F={state:{maps:{}},references:{current:{}},actions:{setViewState:q,setBasemap:q,setResize:q,setZoom:q}},ne=g.createContext(F.state),Ae=g.createContext(F.references),ae=g.createContext(F.actions);var D=(n=>(n.SetViewState="SetViewState",n.SetBasemap="SetBasemap",n.SetResize="SetResize",n.SetZoom="SetZoom",n))(D||{});function Me(n,{type:m,payload:R}){return{SetViewState:()=>{const{id:u,viewState:b}=R,l={...n.maps};return l[u]={...n.maps[u],viewState:b},{...n,maps:l}},SetResize:()=>{const{id:u,width:b,height:l}=R,w={...n.maps};return w[u]={...n.maps[u],viewState:{...n.maps[u].viewState,width:b,height:l}},{...n,maps:w}},SetBasemap:()=>{const{id:u,basemap:b}=R,l={...n.maps};return l[u]={...n.maps[u],basemap:b},{...n,maps:l}},SetZoom:()=>{const{id:u,zoom:b}=R,l={...n.maps};return l[u]={...n.maps[u],viewState:{...n.maps[u].viewState,zoom:b}},{...n,maps:l}}}[m]?.()??n}function Fe(){return g.useContext(ne)}function br(){return g.useContext(Ae)}function Ve(){return g.useContext(ae)}function hr(n){const{maps:{[n]:m}}=Fe();return m}function Er(n){const{current:{[n]:{instanceRef:m,overlayRef:R}}}=br(),S=()=>{const l=m?.current;return l?.deck||l?._deck};return{instanceRef:m,overlayRef:R,getDeckInstance:S,getOverlayInstance:()=>R?.current,getViewState:()=>S()._getViewState()}}function _r(n){const{setBasemap:m,setResize:R,setViewState:S,setZoom:u}=Ve();return{setBasemap:m.bind(null,n),setResize:R.bind(null,n),setViewState:S.bind(null,n),setZoom:u.bind(null,n)}}var te={exports:{}},W={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var je;function Sr(){if(je)return W;je=1;var n=g,m=Symbol.for("react.element"),R=Symbol.for("react.fragment"),S=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function l(w,y,x){var h,C={},f=null,d=null;x!==void 0&&(f=""+x),y.key!==void 0&&(f=""+y.key),y.ref!==void 0&&(d=y.ref);for(h in y)S.call(y,h)&&!b.hasOwnProperty(h)&&(C[h]=y[h]);if(w&&w.defaultProps)for(h in y=w.defaultProps,y)C[h]===void 0&&(C[h]=y[h]);return{$$typeof:m,type:w,key:f,ref:d,props:C,_owner:u.current}}return W.Fragment=R,W.jsx=l,W.jsxs=l,W}var Y={};/**
|
|
10
2
|
* @license React
|
|
11
3
|
* react-jsx-runtime.development.js
|
|
12
4
|
*
|
|
@@ -14,7 +6,7 @@
|
|
|
14
6
|
*
|
|
15
7
|
* This source code is licensed under the MIT license found in the
|
|
16
8
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
9
|
+
*/var je;function Sr(){return je||(je=1,process.env.NODE_ENV!=="production"&&function(){var n=g,m=Symbol.for("react.element"),R=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),w=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),j=Symbol.iterator,oe="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=j&&e[j]||e[oe];return typeof r=="function"?r:null}var I=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];We("error",e,t)}}function We(e,r,t){{var a=I.ReactDebugCurrentFrame,s=a.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 Ye=!1,Be=!1,Le=!1,Ne=!1,Ue=!1,ie;ie=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===S||e===b||Ue||e===u||e===x||e===h||Ne||e===d||Ye||Be||Le||typeof e=="object"&&e!==null&&(e.$$typeof===f||e.$$typeof===C||e.$$typeof===l||e.$$typeof===w||e.$$typeof===y||e.$$typeof===ie||e.getModuleId!==void 0))}function qe(e,r,t){var a=e.displayName;if(a)return a;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function se(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&E("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 S:return"Fragment";case R:return"Portal";case b:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return se(r)+".Consumer";case l:var t=e;return se(t._context)+".Provider";case y:return qe(e,e.render,"ForwardRef");case C:var a=e.displayName||null;return a!==null?a:P(e.type)||"Memo";case f:{var s=e,c=s._payload,i=s._init;try{return P(i(c))}catch{return null}}}return null}var k=Object.assign,V=0,ue,ce,le,fe,de,ve,pe;function me(){}me.__reactDisabledLog=!0;function Ze(){{if(V===0){ue=console.log,ce=console.info,le=console.warn,fe=console.error,de=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Je(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ue}),info:k({},e,{value:ce}),warn:k({},e,{value:le}),error:k({},e,{value:fe}),group:k({},e,{value:de}),groupCollapsed:k({},e,{value:ve}),groupEnd:k({},e,{value:pe})})}V<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=I.ReactCurrentDispatcher,J;function B(e,r,t){{if(J===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);J=a&&a[1]||""}return`
|
|
18
10
|
`+J+e}}var G=!1,L;{var Ge=typeof WeakMap=="function"?WeakMap:Map;L=new Ge}function ye(e,r){if(!e||G)return"";{var t=L.get(e);if(t!==void 0)return t}var a;G=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=Z.current,Z.current=null,Ze();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(O){a=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){a=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var o=O.stack.split(`
|
|
19
11
|
`),_=a.stack.split(`
|
|
20
12
|
`),v=o.length-1,p=_.length-1;v>=1&&p>=0&&o[v]!==_[p];)p--;for(;v>=1&&p>=0;v--,p--)if(o[v]!==_[p]){if(v!==1||p!==1)do if(v--,p--,p<0||o[v]!==_[p]){var T=`
|
|
@@ -24,4 +16,12 @@ Check the render method of \``+e+"`."}return""}}function lr(e){{if(e!==void 0){v
|
|
|
24
16
|
|
|
25
17
|
Check your code at `+r+":"+t+"."}return""}}var Te={};function fr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
18
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(Te[t])return;Te[t]=!0;var a="";e&&e._owner&&e._owner!==X.current&&(a=" It was passed a child from "+P(e._owner.type)+"."),A(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var a=e[t];ee(a)&&Ce(a,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var s=$e(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),i;!(i=c.next()).done;)ee(i.value)&&Ce(i.value,r)}}}function dr(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===C))t=r.propTypes;else return;if(t){var a=P(r);Xe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var s=P(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){A(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),A(null);break}}e.ref!==null&&(A(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Oe(e,r,t,a,s,c){{var i=ze(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 _=lr(s);_?o+=_:o+=we();var v;e===null?v="null":K(e)?v="array":e!==void 0&&e.$$typeof===m?(v="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,o)}var p=cr(e,r,t,s,c);if(p==null)return p;if(i){var T=r.children;if(T!==void 0)if(a)if(K(T)){for(var M=0;M<T.length;M++)Pe(T[M],e);Object.freeze&&Object.freeze(T)}else E("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 Pe(T,e)}return e===S?vr(p):dr(p),p}}function pr(e,r,t){return Oe(e,r,t,!0)}function mr(e,r,t){return Oe(e,r,t,!1)}var yr=mr,Rr=pr;
|
|
19
|
+
Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(Te[t])return;Te[t]=!0;var a="";e&&e._owner&&e._owner!==X.current&&(a=" It was passed a child from "+P(e._owner.type)+"."),A(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var a=e[t];ee(a)&&Ce(a,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var s=$e(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),i;!(i=c.next()).done;)ee(i.value)&&Ce(i.value,r)}}}function dr(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===C))t=r.propTypes;else return;if(t){var a=P(r);Xe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var s=P(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){A(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),A(null);break}}e.ref!==null&&(A(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Oe(e,r,t,a,s,c){{var i=ze(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 _=lr(s);_?o+=_:o+=we();var v;e===null?v="null":K(e)?v="array":e!==void 0&&e.$$typeof===m?(v="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,o)}var p=cr(e,r,t,s,c);if(p==null)return p;if(i){var T=r.children;if(T!==void 0)if(a)if(K(T)){for(var M=0;M<T.length;M++)Pe(T[M],e);Object.freeze&&Object.freeze(T)}else E("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 Pe(T,e)}return e===S?vr(p):dr(p),p}}function pr(e,r,t){return Oe(e,r,t,!0)}function mr(e,r,t){return Oe(e,r,t,!1)}var yr=mr,Rr=pr;W.Fragment=S,W.jsx=yr,W.jsxs=Rr}()),W}var Y={};/**
|
|
20
|
+
* @license React
|
|
21
|
+
* react-jsx-runtime.production.min.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/var ke;function wr(){if(ke)return Y;ke=1;var n=g,m=Symbol.for("react.element"),R=Symbol.for("react.fragment"),S=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function l(w,y,x){var h,C={},f=null,d=null;x!==void 0&&(f=""+x),y.key!==void 0&&(f=""+y.key),y.ref!==void 0&&(d=y.ref);for(h in y)S.call(y,h)&&!b.hasOwnProperty(h)&&(C[h]=y[h]);if(w&&w.defaultProps)for(h in y=w.defaultProps,y)C[h]===void 0&&(C[h]=y[h]);return{$$typeof:m,type:w,key:f,ref:d,props:C,_owner:u.current}}return Y.Fragment=R,Y.jsx=l,Y.jsxs=l,Y}process.env.NODE_ENV==="production"?te.exports=wr():te.exports=Sr();var re=te.exports;function Tr({children:n,maps:m,externalSync:R}){const[S,u]=g.useReducer(Me,{...F.state,maps:m.reduce((f,d)=>(f[d.id]=d,f),F.state.maps)}),b=g.useRef(m.reduce((f,d)=>(f[d.id]={instanceRef:{current:null},overlayRef:{current:null}},f),{})),l=g.useCallback((f,d,j)=>{m[0].id===f&&R?.({type:d,payload:j})},[R,m]),w=g.useCallback((f,d)=>{u({type:D.SetViewState,payload:{id:f,viewState:d}}),l(f,D.SetViewState,d)},[u,l]),y=g.useCallback((f,{height:d,width:j})=>{u({type:D.SetResize,payload:{id:f,height:d,width:j}}),l(f,D.SetResize,{height:d,width:j})},[u,l]),x=g.useCallback((f,d)=>{u({type:D.SetBasemap,payload:{id:f,basemap:d}})},[u]),h=g.useCallback((f,d)=>{u({type:D.SetZoom,payload:{id:f,zoom:d}})},[u]),C=g.useRef({setViewState:w,setBasemap:x,setResize:y,setZoom:h});return re.jsx(ae.Provider,{value:C.current,children:re.jsx(Ae.Provider,{value:b,children:re.jsx(ne.Provider,{value:S,children:n})})})}exports.CartoBasemapURL=gr;exports.CartoBasemapsNames=Ie;exports.GMapsBasemap=De;exports.INITIAL_STATE=F;exports.MapActionsContext=ae;exports.MapContext=ne;exports.MapProvider=Tr;exports.reducer=Me;exports.useMap=Fe;exports.useMapActions=Ve;exports.useMapActionsByID=_r;exports.useMapByID=hr;exports.useMapReferencesByID=Er;
|
package/dist/index.js
CHANGED
|
@@ -122,7 +122,7 @@ function jr(n) {
|
|
|
122
122
|
var te = { exports: {} }, $ = {};
|
|
123
123
|
/**
|
|
124
124
|
* @license React
|
|
125
|
-
* react-jsx-runtime.
|
|
125
|
+
* react-jsx-runtime.development.js
|
|
126
126
|
*
|
|
127
127
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
128
128
|
*
|
|
@@ -131,35 +131,7 @@ var te = { exports: {} }, $ = {};
|
|
|
131
131
|
*/
|
|
132
132
|
var ke;
|
|
133
133
|
function wr() {
|
|
134
|
-
|
|
135
|
-
return $;
|
|
136
|
-
ke = 1;
|
|
137
|
-
var n = Fe, m = Symbol.for("react.element"), g = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
138
|
-
function l(S, y, P) {
|
|
139
|
-
var b, T = {}, f = null, d = null;
|
|
140
|
-
P !== void 0 && (f = "" + P), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (d = y.ref);
|
|
141
|
-
for (b in y)
|
|
142
|
-
_.call(y, b) && !R.hasOwnProperty(b) && (T[b] = y[b]);
|
|
143
|
-
if (S && S.defaultProps)
|
|
144
|
-
for (b in y = S.defaultProps, y)
|
|
145
|
-
T[b] === void 0 && (T[b] = y[b]);
|
|
146
|
-
return { $$typeof: m, type: S, key: f, ref: d, props: T, _owner: u.current };
|
|
147
|
-
}
|
|
148
|
-
return $.Fragment = g, $.jsx = l, $.jsxs = l, $;
|
|
149
|
-
}
|
|
150
|
-
var W = {};
|
|
151
|
-
/**
|
|
152
|
-
* @license React
|
|
153
|
-
* react-jsx-runtime.development.js
|
|
154
|
-
*
|
|
155
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the MIT license found in the
|
|
158
|
-
* LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/
|
|
160
|
-
var De;
|
|
161
|
-
function Tr() {
|
|
162
|
-
return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
|
|
134
|
+
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
163
135
|
var n = Fe, m = Symbol.for("react.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), S = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), x = Symbol.iterator, oe = "@@iterator";
|
|
164
136
|
function Me(e) {
|
|
165
137
|
if (e === null || typeof e != "object")
|
|
@@ -741,10 +713,38 @@ Check the top-level render call using <` + t + ">.");
|
|
|
741
713
|
return Pe(e, r, t, !1);
|
|
742
714
|
}
|
|
743
715
|
var mr = pr, yr = vr;
|
|
744
|
-
|
|
745
|
-
}()),
|
|
716
|
+
$.Fragment = _, $.jsx = mr, $.jsxs = yr;
|
|
717
|
+
}()), $;
|
|
718
|
+
}
|
|
719
|
+
var W = {};
|
|
720
|
+
/**
|
|
721
|
+
* @license React
|
|
722
|
+
* react-jsx-runtime.production.min.js
|
|
723
|
+
*
|
|
724
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
725
|
+
*
|
|
726
|
+
* This source code is licensed under the MIT license found in the
|
|
727
|
+
* LICENSE file in the root directory of this source tree.
|
|
728
|
+
*/
|
|
729
|
+
var De;
|
|
730
|
+
function Tr() {
|
|
731
|
+
if (De)
|
|
732
|
+
return W;
|
|
733
|
+
De = 1;
|
|
734
|
+
var n = Fe, m = Symbol.for("react.element"), g = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
735
|
+
function l(S, y, P) {
|
|
736
|
+
var b, T = {}, f = null, d = null;
|
|
737
|
+
P !== void 0 && (f = "" + P), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (d = y.ref);
|
|
738
|
+
for (b in y)
|
|
739
|
+
_.call(y, b) && !R.hasOwnProperty(b) && (T[b] = y[b]);
|
|
740
|
+
if (S && S.defaultProps)
|
|
741
|
+
for (b in y = S.defaultProps, y)
|
|
742
|
+
T[b] === void 0 && (T[b] = y[b]);
|
|
743
|
+
return { $$typeof: m, type: S, key: f, ref: d, props: T, _owner: u.current };
|
|
744
|
+
}
|
|
745
|
+
return W.Fragment = g, W.jsx = l, W.jsxs = l, W;
|
|
746
746
|
}
|
|
747
|
-
process.env.NODE_ENV === "production" ? te.exports =
|
|
747
|
+
process.env.NODE_ENV === "production" ? te.exports = Tr() : te.exports = wr();
|
|
748
748
|
var re = te.exports;
|
|
749
749
|
function kr({
|
|
750
750
|
children: n,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carto/ps-react-maps",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "CARTO's Professional Service React Maps library",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -30,27 +30,27 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@carto/react-basemaps": "2.
|
|
34
|
-
"@deck.gl/core": "8.9.
|
|
35
|
-
"@deck.gl/google-maps": "8.9.
|
|
36
|
-
"@deck.gl/react": "8.9.
|
|
33
|
+
"@carto/react-basemaps": "2.3.5",
|
|
34
|
+
"@deck.gl/core": "8.9.33",
|
|
35
|
+
"@deck.gl/google-maps": "8.9.33",
|
|
36
|
+
"@deck.gl/react": "8.9.33",
|
|
37
37
|
"@react-google-maps/api": "2.19.2",
|
|
38
|
-
"@storybook/addon-actions": "7.
|
|
39
|
-
"@storybook/addon-essentials": "7.
|
|
40
|
-
"@storybook/addon-interactions": "7.
|
|
41
|
-
"@storybook/addon-links": "7.
|
|
42
|
-
"@storybook/blocks": "7.
|
|
43
|
-
"@storybook/builder-vite": "7.
|
|
44
|
-
"@storybook/react": "7.
|
|
45
|
-
"@storybook/react-vite": "7.
|
|
38
|
+
"@storybook/addon-actions": "7.6.7",
|
|
39
|
+
"@storybook/addon-essentials": "7.6.7",
|
|
40
|
+
"@storybook/addon-interactions": "7.6.7",
|
|
41
|
+
"@storybook/addon-links": "7.6.7",
|
|
42
|
+
"@storybook/blocks": "7.6.7",
|
|
43
|
+
"@storybook/builder-vite": "7.6.7",
|
|
44
|
+
"@storybook/react": "7.6.7",
|
|
45
|
+
"@storybook/react-vite": "7.6.7",
|
|
46
46
|
"@storybook/testing-library": "0.2.2",
|
|
47
|
-
"@testing-library/jest-dom": "6.1.
|
|
48
|
-
"@testing-library/react": "14.
|
|
49
|
-
"@testing-library/user-event": "14.5.
|
|
50
|
-
"@types/google.maps": "3.54.
|
|
51
|
-
"maplibre-gl": "3.
|
|
52
|
-
"react-map-gl": "7.1.
|
|
53
|
-
"storybook": "7.
|
|
47
|
+
"@testing-library/jest-dom": "6.1.6",
|
|
48
|
+
"@testing-library/react": "14.1.2",
|
|
49
|
+
"@testing-library/user-event": "14.5.2",
|
|
50
|
+
"@types/google.maps": "3.54.10",
|
|
51
|
+
"maplibre-gl": "3.6.2",
|
|
52
|
+
"react-map-gl": "7.1.7",
|
|
53
|
+
"storybook": "7.6.7"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "17.x || 18.x",
|