@neshan-maps-platform/mapbox-gl-react 1.0.2 → 1.0.3-alpha.1
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/Components/MapComponent/MapComponent.d.ts +1 -1
- package/dist/Types/Components/MapComponent/MapComponentProps.d.ts +3 -3
- package/dist/neshan-mapbox-sdk-react.es.js +244 -591
- package/dist/neshan-mapbox-sdk-react.umd.js +11 -16
- package/package.json +13 -13
- /package/dist/{style.css → mapbox-gl-react.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HTMLAttributes } from
|
|
2
|
-
import SDKMap from
|
|
3
|
-
import { MapBoxSKDOptionsModel } from
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { default as SDKMap } from '@neshan-maps-platform/mapbox-gl/dist/src/core/Map';
|
|
3
|
+
import { MapBoxSKDOptionsModel } from '@neshan-maps-platform/mapbox-gl/dist/src/parameters/parameters';
|
|
4
4
|
export type MapboxComponentInputOptions = Omit<MapBoxSKDOptionsModel, 'container'>;
|
|
5
5
|
export interface MapComponentProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
options: MapboxComponentInputOptions;
|
|
@@ -1,666 +1,319 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import re, { useRef as F, useEffect as te } from "react";
|
|
2
|
+
import ne from "@neshan-maps-platform/mapbox-gl";
|
|
3
|
+
var T = { exports: {} }, _ = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
|
-
* react-jsx-runtime.production.
|
|
6
|
+
* react-jsx-runtime.production.js
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c)
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
var D;
|
|
14
|
+
function oe() {
|
|
15
|
+
if (D) return _;
|
|
16
|
+
D = 1;
|
|
17
|
+
var a = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
|
|
18
|
+
function f(u, s, c) {
|
|
19
|
+
var d = null;
|
|
20
|
+
if (c !== void 0 && (d = "" + c), s.key !== void 0 && (d = "" + s.key), "key" in s) {
|
|
21
|
+
c = {};
|
|
22
|
+
for (var E in s)
|
|
23
|
+
E !== "key" && (c[E] = s[E]);
|
|
24
|
+
} else c = s;
|
|
25
|
+
return s = c.ref, {
|
|
26
|
+
$$typeof: a,
|
|
27
|
+
type: u,
|
|
28
|
+
key: d,
|
|
29
|
+
ref: s !== void 0 ? s : null,
|
|
30
|
+
props: c
|
|
31
|
+
};
|
|
28
32
|
}
|
|
29
|
-
return
|
|
33
|
+
return _.Fragment = i, _.jsx = f, _.jsxs = f, _;
|
|
30
34
|
}
|
|
31
|
-
var
|
|
35
|
+
var b = {};
|
|
32
36
|
/**
|
|
33
37
|
* @license React
|
|
34
38
|
* react-jsx-runtime.development.js
|
|
35
39
|
*
|
|
36
|
-
* Copyright (c)
|
|
40
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
41
|
*
|
|
38
42
|
* This source code is licensed under the MIT license found in the
|
|
39
43
|
* LICENSE file in the root directory of this source tree.
|
|
40
44
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (
|
|
47
|
-
return null;
|
|
48
|
-
|
|
49
|
-
return typeof r == "function" ? r : null;
|
|
50
|
-
}
|
|
51
|
-
var x = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function c(e) {
|
|
53
|
-
{
|
|
54
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
55
|
-
t[n - 1] = arguments[n];
|
|
56
|
-
we("error", e, t);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function we(e, r, t) {
|
|
60
|
-
{
|
|
61
|
-
var n = x.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
62
|
-
i !== "" && (r += "%s", t = t.concat([i]));
|
|
63
|
-
var u = t.map(function(o) {
|
|
64
|
-
return String(o);
|
|
65
|
-
});
|
|
66
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
var xe = !1, je = !1, ke = !1, De = !1, Fe = !1, Z;
|
|
70
|
-
Z = Symbol.for("react.module.reference");
|
|
71
|
-
function Ae(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === h || e === T || Fe || e === y || e === w || e === d || De || e === $ || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === _ || e.$$typeof === O || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object
|
|
73
|
-
// types supported by any Flight configuration anywhere since
|
|
74
|
-
// we don't know which Flight build this will end up being used
|
|
75
|
-
// with.
|
|
76
|
-
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
77
|
-
}
|
|
78
|
-
function Ie(e, r, t) {
|
|
79
|
-
var n = e.displayName;
|
|
80
|
-
if (n)
|
|
81
|
-
return n;
|
|
82
|
-
var i = r.displayName || r.name || "";
|
|
83
|
-
return i !== "" ? t + "(" + i + ")" : t;
|
|
84
|
-
}
|
|
85
|
-
function Q(e) {
|
|
86
|
-
return e.displayName || "Context";
|
|
87
|
-
}
|
|
88
|
-
function b(e) {
|
|
89
|
-
if (e == null)
|
|
90
|
-
return null;
|
|
91
|
-
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
|
-
return e.displayName || e.name || null;
|
|
93
|
-
if (typeof e == "string")
|
|
94
|
-
return e;
|
|
45
|
+
var L;
|
|
46
|
+
function ae() {
|
|
47
|
+
return L || (L = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function a(e) {
|
|
49
|
+
if (e == null) return null;
|
|
50
|
+
if (typeof e == "function")
|
|
51
|
+
return e.$$typeof === K ? null : e.displayName || e.name || null;
|
|
52
|
+
if (typeof e == "string") return e;
|
|
95
53
|
switch (e) {
|
|
96
54
|
case h:
|
|
97
55
|
return "Fragment";
|
|
98
|
-
case
|
|
99
|
-
return "Portal";
|
|
100
|
-
case T:
|
|
56
|
+
case q:
|
|
101
57
|
return "Profiler";
|
|
102
|
-
case
|
|
58
|
+
case U:
|
|
103
59
|
return "StrictMode";
|
|
104
|
-
case
|
|
60
|
+
case X:
|
|
105
61
|
return "Suspense";
|
|
106
|
-
case
|
|
62
|
+
case B:
|
|
107
63
|
return "SuspenseList";
|
|
64
|
+
case Z:
|
|
65
|
+
return "Activity";
|
|
108
66
|
}
|
|
109
67
|
if (typeof e == "object")
|
|
110
|
-
switch (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
|
|
68
|
+
switch (typeof e.tag == "number" && console.error(
|
|
69
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
+
), e.$$typeof) {
|
|
71
|
+
case M:
|
|
72
|
+
return "Portal";
|
|
73
|
+
case J:
|
|
74
|
+
return (e.displayName || "Context") + ".Provider";
|
|
75
|
+
case z:
|
|
76
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case G:
|
|
78
|
+
var r = e.render;
|
|
79
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
80
|
+
case H:
|
|
81
|
+
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
82
|
+
case j:
|
|
83
|
+
r = e._payload, e = e._init;
|
|
124
84
|
try {
|
|
125
|
-
return
|
|
85
|
+
return a(e(r));
|
|
126
86
|
} catch {
|
|
127
|
-
return null;
|
|
128
87
|
}
|
|
129
|
-
}
|
|
130
88
|
}
|
|
131
89
|
return null;
|
|
132
90
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
ue.__reactDisabledLog = !0;
|
|
137
|
-
function $e() {
|
|
138
|
-
{
|
|
139
|
-
if (D === 0) {
|
|
140
|
-
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
141
|
-
var e = {
|
|
142
|
-
configurable: !0,
|
|
143
|
-
enumerable: !0,
|
|
144
|
-
value: ue,
|
|
145
|
-
writable: !0
|
|
146
|
-
};
|
|
147
|
-
Object.defineProperties(console, {
|
|
148
|
-
info: e,
|
|
149
|
-
log: e,
|
|
150
|
-
warn: e,
|
|
151
|
-
error: e,
|
|
152
|
-
group: e,
|
|
153
|
-
groupCollapsed: e,
|
|
154
|
-
groupEnd: e
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
D++;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function Ne() {
|
|
161
|
-
{
|
|
162
|
-
if (D--, D === 0) {
|
|
163
|
-
var e = {
|
|
164
|
-
configurable: !0,
|
|
165
|
-
enumerable: !0,
|
|
166
|
-
writable: !0
|
|
167
|
-
};
|
|
168
|
-
Object.defineProperties(console, {
|
|
169
|
-
log: P({}, e, {
|
|
170
|
-
value: ee
|
|
171
|
-
}),
|
|
172
|
-
info: P({}, e, {
|
|
173
|
-
value: re
|
|
174
|
-
}),
|
|
175
|
-
warn: P({}, e, {
|
|
176
|
-
value: te
|
|
177
|
-
}),
|
|
178
|
-
error: P({}, e, {
|
|
179
|
-
value: ne
|
|
180
|
-
}),
|
|
181
|
-
group: P({}, e, {
|
|
182
|
-
value: ae
|
|
183
|
-
}),
|
|
184
|
-
groupCollapsed: P({}, e, {
|
|
185
|
-
value: oe
|
|
186
|
-
}),
|
|
187
|
-
groupEnd: P({}, e, {
|
|
188
|
-
value: ie
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
D < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
var M = x.ReactCurrentDispatcher, U;
|
|
196
|
-
function N(e, r, t) {
|
|
197
|
-
{
|
|
198
|
-
if (U === void 0)
|
|
199
|
-
try {
|
|
200
|
-
throw Error();
|
|
201
|
-
} catch (i) {
|
|
202
|
-
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
U = n && n[1] || "";
|
|
204
|
-
}
|
|
205
|
-
return `
|
|
206
|
-
` + U + e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
var B = !1, W;
|
|
210
|
-
{
|
|
211
|
-
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
W = new We();
|
|
91
|
+
function i(e) {
|
|
92
|
+
return "" + e;
|
|
213
93
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!e || B)
|
|
216
|
-
return "";
|
|
217
|
-
{
|
|
218
|
-
var t = W.get(e);
|
|
219
|
-
if (t !== void 0)
|
|
220
|
-
return t;
|
|
221
|
-
}
|
|
222
|
-
var n;
|
|
223
|
-
B = !0;
|
|
224
|
-
var i = Error.prepareStackTrace;
|
|
225
|
-
Error.prepareStackTrace = void 0;
|
|
226
|
-
var u;
|
|
227
|
-
u = M.current, M.current = null, $e();
|
|
94
|
+
function f(e) {
|
|
228
95
|
try {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
if (Object.defineProperty(o.prototype, "props", {
|
|
234
|
-
set: function() {
|
|
235
|
-
throw Error();
|
|
236
|
-
}
|
|
237
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
|
-
try {
|
|
239
|
-
Reflect.construct(o, []);
|
|
240
|
-
} catch (R) {
|
|
241
|
-
n = R;
|
|
242
|
-
}
|
|
243
|
-
Reflect.construct(e, [], o);
|
|
244
|
-
} else {
|
|
245
|
-
try {
|
|
246
|
-
o.call();
|
|
247
|
-
} catch (R) {
|
|
248
|
-
n = R;
|
|
249
|
-
}
|
|
250
|
-
e.call(o.prototype);
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
try {
|
|
254
|
-
throw Error();
|
|
255
|
-
} catch (R) {
|
|
256
|
-
n = R;
|
|
257
|
-
}
|
|
258
|
-
e();
|
|
259
|
-
}
|
|
260
|
-
} catch (R) {
|
|
261
|
-
if (R && n && typeof R.stack == "string") {
|
|
262
|
-
for (var a = R.stack.split(`
|
|
263
|
-
`), v = n.stack.split(`
|
|
264
|
-
`), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
|
|
265
|
-
l--;
|
|
266
|
-
for (; s >= 1 && l >= 0; s--, l--)
|
|
267
|
-
if (a[s] !== v[l]) {
|
|
268
|
-
if (s !== 1 || l !== 1)
|
|
269
|
-
do
|
|
270
|
-
if (s--, l--, l < 0 || a[s] !== v[l]) {
|
|
271
|
-
var p = `
|
|
272
|
-
` + a[s].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, p), p;
|
|
274
|
-
}
|
|
275
|
-
while (s >= 1 && l >= 0);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} finally {
|
|
280
|
-
B = !1, M.current = u, Ne(), Error.prepareStackTrace = i;
|
|
281
|
-
}
|
|
282
|
-
var k = e ? e.displayName || e.name : "", Re = k ? N(k) : "";
|
|
283
|
-
return typeof e == "function" && W.set(e, Re), Re;
|
|
284
|
-
}
|
|
285
|
-
function Ye(e, r, t) {
|
|
286
|
-
return se(e, !1);
|
|
287
|
-
}
|
|
288
|
-
function Ve(e) {
|
|
289
|
-
var r = e.prototype;
|
|
290
|
-
return !!(r && r.isReactComponent);
|
|
291
|
-
}
|
|
292
|
-
function Y(e, r, t) {
|
|
293
|
-
if (e == null)
|
|
294
|
-
return "";
|
|
295
|
-
if (typeof e == "function")
|
|
296
|
-
return se(e, Ve(e));
|
|
297
|
-
if (typeof e == "string")
|
|
298
|
-
return N(e);
|
|
299
|
-
switch (e) {
|
|
300
|
-
case w:
|
|
301
|
-
return N("Suspense");
|
|
302
|
-
case d:
|
|
303
|
-
return N("SuspenseList");
|
|
304
|
-
}
|
|
305
|
-
if (typeof e == "object")
|
|
306
|
-
switch (e.$$typeof) {
|
|
307
|
-
case f:
|
|
308
|
-
return Ye(e.render);
|
|
309
|
-
case _:
|
|
310
|
-
return Y(e.type, r, t);
|
|
311
|
-
case C: {
|
|
312
|
-
var n = e, i = n._payload, u = n._init;
|
|
313
|
-
try {
|
|
314
|
-
return Y(u(i), r, t);
|
|
315
|
-
} catch {
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return "";
|
|
320
|
-
}
|
|
321
|
-
var V = Object.prototype.hasOwnProperty, fe = {}, le = x.ReactDebugCurrentFrame;
|
|
322
|
-
function L(e) {
|
|
323
|
-
if (e) {
|
|
324
|
-
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
325
|
-
le.setExtraStackFrame(t);
|
|
326
|
-
} else
|
|
327
|
-
le.setExtraStackFrame(null);
|
|
328
|
-
}
|
|
329
|
-
function Le(e, r, t, n, i) {
|
|
330
|
-
{
|
|
331
|
-
var u = Function.call.bind(V);
|
|
332
|
-
for (var o in e)
|
|
333
|
-
if (u(e, o)) {
|
|
334
|
-
var a = void 0;
|
|
335
|
-
try {
|
|
336
|
-
if (typeof e[o] != "function") {
|
|
337
|
-
var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
-
throw v.name = "Invariant Violation", v;
|
|
339
|
-
}
|
|
340
|
-
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (s) {
|
|
342
|
-
a = s;
|
|
343
|
-
}
|
|
344
|
-
a && !(a instanceof Error) && (L(i), c("%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, o, typeof a), L(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, L(i), c("Failed %s type: %s", t, a.message), L(null));
|
|
345
|
-
}
|
|
96
|
+
i(e);
|
|
97
|
+
var r = !1;
|
|
98
|
+
} catch {
|
|
99
|
+
r = !0;
|
|
346
100
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return t;
|
|
101
|
+
if (r) {
|
|
102
|
+
r = console;
|
|
103
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
104
|
+
return t.call(
|
|
105
|
+
r,
|
|
106
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
+
n
|
|
108
|
+
), i(e);
|
|
356
109
|
}
|
|
357
110
|
}
|
|
358
|
-
function
|
|
111
|
+
function u(e) {
|
|
112
|
+
if (e === h) return "<>";
|
|
113
|
+
if (typeof e == "object" && e !== null && e.$$typeof === j)
|
|
114
|
+
return "<...>";
|
|
359
115
|
try {
|
|
360
|
-
|
|
116
|
+
var r = a(e);
|
|
117
|
+
return r ? "<" + r + ">" : "<...>";
|
|
361
118
|
} catch {
|
|
362
|
-
return
|
|
119
|
+
return "<...>";
|
|
363
120
|
}
|
|
364
121
|
}
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
function ve(e) {
|
|
369
|
-
if (Be(e))
|
|
370
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ue(e)), ce(e);
|
|
122
|
+
function s() {
|
|
123
|
+
var e = k.A;
|
|
124
|
+
return e === null ? null : e.getOwner();
|
|
371
125
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
ref: !0,
|
|
375
|
-
__self: !0,
|
|
376
|
-
__source: !0
|
|
377
|
-
}, de, pe, G;
|
|
378
|
-
G = {};
|
|
379
|
-
function Ge(e) {
|
|
380
|
-
if (V.call(e, "ref")) {
|
|
381
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
|
-
if (r && r.isReactWarning)
|
|
383
|
-
return !1;
|
|
384
|
-
}
|
|
385
|
-
return e.ref !== void 0;
|
|
126
|
+
function c() {
|
|
127
|
+
return Error("react-stack-top-frame");
|
|
386
128
|
}
|
|
387
|
-
function
|
|
388
|
-
if (
|
|
129
|
+
function d(e) {
|
|
130
|
+
if (N.call(e, "key")) {
|
|
389
131
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
|
-
if (r && r.isReactWarning)
|
|
391
|
-
return !1;
|
|
132
|
+
if (r && r.isReactWarning) return !1;
|
|
392
133
|
}
|
|
393
134
|
return e.key !== void 0;
|
|
394
135
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
function ze(e, r) {
|
|
402
|
-
{
|
|
403
|
-
var t = function() {
|
|
404
|
-
de || (de = !0, c("%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));
|
|
405
|
-
};
|
|
406
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
407
|
-
get: t,
|
|
408
|
-
configurable: !0
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
function He(e, r) {
|
|
413
|
-
{
|
|
414
|
-
var t = function() {
|
|
415
|
-
pe || (pe = !0, c("%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));
|
|
416
|
-
};
|
|
417
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
418
|
-
get: t,
|
|
419
|
-
configurable: !0
|
|
420
|
-
});
|
|
136
|
+
function E(e, r) {
|
|
137
|
+
function t() {
|
|
138
|
+
y || (y = !0, console.error(
|
|
139
|
+
"%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://react.dev/link/special-props)",
|
|
140
|
+
r
|
|
141
|
+
));
|
|
421
142
|
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
143
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
144
|
+
get: t,
|
|
145
|
+
configurable: !0
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function p() {
|
|
149
|
+
var e = a(this.type);
|
|
150
|
+
return C[e] || (C[e] = !0, console.error(
|
|
151
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
153
|
+
}
|
|
154
|
+
function W(e, r, t, n, m, l, S, g) {
|
|
155
|
+
return t = l.ref, e = {
|
|
156
|
+
$$typeof: x,
|
|
428
157
|
type: e,
|
|
429
158
|
key: r,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
159
|
+
props: l,
|
|
160
|
+
_owner: m
|
|
161
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: p
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
436
165
|
configurable: !1,
|
|
437
166
|
enumerable: !1,
|
|
438
167
|
writable: !0,
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
441
170
|
configurable: !1,
|
|
442
171
|
enumerable: !1,
|
|
443
|
-
writable: !
|
|
444
|
-
value:
|
|
445
|
-
}), Object.defineProperty(
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
446
175
|
configurable: !1,
|
|
447
176
|
enumerable: !1,
|
|
448
|
-
writable: !
|
|
449
|
-
value:
|
|
450
|
-
}), Object.
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
if (e)
|
|
488
|
-
return `
|
|
489
|
-
|
|
490
|
-
Check the render method of \`` + e + "`.";
|
|
491
|
-
}
|
|
492
|
-
return "";
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
function Qe(e) {
|
|
496
|
-
{
|
|
497
|
-
if (e !== void 0) {
|
|
498
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
499
|
-
return `
|
|
500
|
-
|
|
501
|
-
Check your code at ` + r + ":" + t + ".";
|
|
502
|
-
}
|
|
503
|
-
return "";
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
var ge = {};
|
|
507
|
-
function er(e) {
|
|
508
|
-
{
|
|
509
|
-
var r = he();
|
|
510
|
-
if (!r) {
|
|
511
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
512
|
-
t && (r = `
|
|
513
|
-
|
|
514
|
-
Check the top-level render call using <` + t + ">.");
|
|
515
|
-
}
|
|
516
|
-
return r;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function Ee(e, r) {
|
|
520
|
-
{
|
|
521
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
522
|
-
return;
|
|
523
|
-
e._store.validated = !0;
|
|
524
|
-
var t = er(r);
|
|
525
|
-
if (ge[t])
|
|
526
|
-
return;
|
|
527
|
-
ge[t] = !0;
|
|
528
|
-
var n = "";
|
|
529
|
-
e && e._owner && e._owner !== J.current && (n = " It was passed a child from " + b(e._owner.type) + "."), j(e), c('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), j(null);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
function _e(e, r) {
|
|
533
|
-
{
|
|
534
|
-
if (typeof e != "object")
|
|
535
|
-
return;
|
|
536
|
-
if (q(e))
|
|
537
|
-
for (var t = 0; t < e.length; t++) {
|
|
538
|
-
var n = e[t];
|
|
539
|
-
z(n) && Ee(n, r);
|
|
540
|
-
}
|
|
541
|
-
else if (z(e))
|
|
542
|
-
e._store && (e._store.validated = !0);
|
|
543
|
-
else if (e) {
|
|
544
|
-
var i = Se(e);
|
|
545
|
-
if (typeof i == "function" && i !== e.entries)
|
|
546
|
-
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
547
|
-
z(o.value) && Ee(o.value, r);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
function rr(e) {
|
|
552
|
-
{
|
|
553
|
-
var r = e.type;
|
|
554
|
-
if (r == null || typeof r == "string")
|
|
555
|
-
return;
|
|
556
|
-
var t;
|
|
557
|
-
if (typeof r == "function")
|
|
558
|
-
t = r.propTypes;
|
|
559
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
560
|
-
// Inner props are checked in the reconciler.
|
|
561
|
-
r.$$typeof === _))
|
|
562
|
-
t = r.propTypes;
|
|
563
|
-
else
|
|
564
|
-
return;
|
|
565
|
-
if (t) {
|
|
566
|
-
var n = b(r);
|
|
567
|
-
Le(t, e.props, "prop", n, e);
|
|
568
|
-
} else if (r.PropTypes !== void 0 && !K) {
|
|
569
|
-
K = !0;
|
|
570
|
-
var i = b(r);
|
|
571
|
-
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
572
|
-
}
|
|
573
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
function tr(e) {
|
|
577
|
-
{
|
|
578
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
579
|
-
var n = r[t];
|
|
580
|
-
if (n !== "children" && n !== "key") {
|
|
581
|
-
j(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
|
|
582
|
-
break;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
e.ref !== null && (j(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: S
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: g
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function P(e, r, t, n, m, l, S, g) {
|
|
187
|
+
var o = r.children;
|
|
188
|
+
if (o !== void 0)
|
|
189
|
+
if (n)
|
|
190
|
+
if (Q(o)) {
|
|
191
|
+
for (n = 0; n < o.length; n++)
|
|
192
|
+
w(o[n]);
|
|
193
|
+
Object.freeze && Object.freeze(o);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else w(o);
|
|
199
|
+
if (N.call(r, "key")) {
|
|
200
|
+
o = a(e);
|
|
201
|
+
var R = Object.keys(r).filter(function(ee) {
|
|
202
|
+
return ee !== "key";
|
|
203
|
+
});
|
|
204
|
+
n = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
n,
|
|
212
|
+
o,
|
|
213
|
+
R,
|
|
214
|
+
o
|
|
215
|
+
), I[o + n] = !0);
|
|
586
216
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
return e === h ? tr(l) : rr(l), l;
|
|
217
|
+
if (o = null, t !== void 0 && (f(t), o = "" + t), d(r) && (f(r.key), o = "" + r.key), "key" in r) {
|
|
218
|
+
t = {};
|
|
219
|
+
for (var A in r)
|
|
220
|
+
A !== "key" && (t[A] = r[A]);
|
|
221
|
+
} else t = r;
|
|
222
|
+
return o && E(
|
|
223
|
+
t,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), W(
|
|
226
|
+
e,
|
|
227
|
+
o,
|
|
228
|
+
l,
|
|
229
|
+
m,
|
|
230
|
+
s(),
|
|
231
|
+
t,
|
|
232
|
+
S,
|
|
233
|
+
g
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
function w(e) {
|
|
237
|
+
typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
|
|
238
|
+
}
|
|
239
|
+
var v = re, x = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), J = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
240
|
+
return null;
|
|
241
|
+
};
|
|
242
|
+
v = {
|
|
243
|
+
"react-stack-bottom-frame": function(e) {
|
|
244
|
+
return e();
|
|
616
245
|
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
246
|
+
};
|
|
247
|
+
var y, C = {}, Y = v["react-stack-bottom-frame"].bind(
|
|
248
|
+
v,
|
|
249
|
+
c
|
|
250
|
+
)(), $ = O(u(c)), I = {};
|
|
251
|
+
b.Fragment = h, b.jsx = function(e, r, t, n, m) {
|
|
252
|
+
var l = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return P(
|
|
254
|
+
e,
|
|
255
|
+
r,
|
|
256
|
+
t,
|
|
257
|
+
!1,
|
|
258
|
+
n,
|
|
259
|
+
m,
|
|
260
|
+
l ? Error("react-stack-top-frame") : Y,
|
|
261
|
+
l ? O(u(e)) : $
|
|
262
|
+
);
|
|
263
|
+
}, b.jsxs = function(e, r, t, n, m) {
|
|
264
|
+
var l = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return P(
|
|
266
|
+
e,
|
|
267
|
+
r,
|
|
268
|
+
t,
|
|
269
|
+
!0,
|
|
270
|
+
n,
|
|
271
|
+
m,
|
|
272
|
+
l ? Error("react-stack-top-frame") : Y,
|
|
273
|
+
l ? O(u(e)) : $
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
}()), b;
|
|
277
|
+
}
|
|
278
|
+
var V;
|
|
279
|
+
function se() {
|
|
280
|
+
return V || (V = 1, process.env.NODE_ENV === "production" ? T.exports = oe() : T.exports = ae()), T.exports;
|
|
627
281
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
const vr = {
|
|
282
|
+
var ce = se();
|
|
283
|
+
const ue = {
|
|
631
284
|
center: [54.145464, 32.527699],
|
|
632
285
|
zoom: 5,
|
|
633
286
|
poi: !1,
|
|
634
287
|
traffic: !1
|
|
635
288
|
};
|
|
636
|
-
function
|
|
637
|
-
const
|
|
638
|
-
options:
|
|
639
|
-
mapSetter:
|
|
640
|
-
containerElementSetter:
|
|
641
|
-
className:
|
|
289
|
+
function me(a) {
|
|
290
|
+
const i = F(null), f = F(null), {
|
|
291
|
+
options: u,
|
|
292
|
+
mapSetter: s,
|
|
293
|
+
containerElementSetter: c,
|
|
294
|
+
className: d,
|
|
642
295
|
...E
|
|
643
|
-
} =
|
|
644
|
-
return
|
|
645
|
-
if (!
|
|
296
|
+
} = a;
|
|
297
|
+
return te(() => {
|
|
298
|
+
if (!u.mapKey) {
|
|
646
299
|
console.error("Please provide a mapKey in options!");
|
|
647
300
|
return;
|
|
648
301
|
}
|
|
649
|
-
if (
|
|
302
|
+
if (i.current && !f.current)
|
|
650
303
|
try {
|
|
651
|
-
const
|
|
652
|
-
...
|
|
653
|
-
...
|
|
654
|
-
container:
|
|
304
|
+
const p = new ne.Map({
|
|
305
|
+
...ue,
|
|
306
|
+
...u,
|
|
307
|
+
container: i.current
|
|
655
308
|
});
|
|
656
|
-
|
|
657
|
-
} catch (
|
|
658
|
-
console.group("Error in constructing map:"), console.error(
|
|
309
|
+
f.current = p, typeof s == "function" && s(p), typeof c == "function" && c(i.current);
|
|
310
|
+
} catch (p) {
|
|
311
|
+
console.group("Error in constructing map:"), console.error(p), console.groupEnd();
|
|
659
312
|
}
|
|
660
|
-
}, [
|
|
313
|
+
}, [c, s, u]), u.mapKey ? /* @__PURE__ */ ce.jsx("div", { className: `map-container ${d || ""}`, ref: i, ...E }) : null;
|
|
661
314
|
}
|
|
662
|
-
var
|
|
315
|
+
var le = /* @__PURE__ */ ((a) => (a.neshanVector = "neshanVector", a.neshanVectorNight = "neshanVectorNight", a.neshanRaster = "neshanRaster", a.neshanRasterNight = "neshanRasterNight", a))(le || {});
|
|
663
316
|
export {
|
|
664
|
-
|
|
665
|
-
|
|
317
|
+
me as MapComponent,
|
|
318
|
+
le as MapTypes
|
|
666
319
|
};
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(l,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@neshan-maps-platform/mapbox-gl")):typeof define=="function"&&define.amd?define(["exports","react","@neshan-maps-platform/mapbox-gl"],m):(l=typeof globalThis<"u"?globalThis:l||self,m(l["neshan-mapbox-sdk-react"]={},l.React,l.nmp_mapboxgl))})(this,function(l,m,z){"use strict";var h={exports:{}},v={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
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
|
|
9
|
+
*/var j;function J(){if(j)return v;j=1;var a=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function d(u,s,c){var E=null;if(c!==void 0&&(E=""+c),s.key!==void 0&&(E=""+s.key),"key"in s){c={};for(var R in s)R!=="key"&&(c[R]=s[R])}else c=s;return s=c.ref,{$$typeof:a,type:u,key:E,ref:s!==void 0?s:null,props:c}}return v.Fragment=f,v.jsx=d,v.jsxs=d,v}var T={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
|
-
|
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var _e={};function ur(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
|
-
|
|
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(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),D(e),c('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 Oe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Te(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var i=Ae(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Z(o.value)&&Te(o.value,r)}}}function sr(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===f||r.$$typeof===R))t=r.propTypes;else return;if(t){var n=_(r);ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var i=_(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(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),c("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),c("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Ce(e,r,t,n,i,u){{var o=Le(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 d=ir(i);d?a+=d:a+=Re();var s;e===null?s="null":z(e)?s="array":e!==void 0&&e.$$typeof===g?(s="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=or(e,r,t,i,u);if(l==null)return l;if(o){var p=r.children;if(p!==void 0)if(n)if(z(p)){for(var F=0;F<p.length;F++)Oe(p[F],e);Object.freeze&&Object.freeze(p)}else c("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 Oe(p,e)}return e===h?fr(l):sr(l),l}}function lr(e,r,t){return Ce(e,r,t,!0)}function cr(e,r,t){return Ce(e,r,t,!1)}var dr=cr,vr=lr;I.Fragment=h,I.jsx=dr,I.jsxs=vr}()),I}process.env.NODE_ENV==="production"?B.exports=we():B.exports=xe();var je=B.exports;const pr="",mr="",ke={center:[54.145464,32.527699],zoom:5,poi:!1,traffic:!1};function De(m){const g=y.useRef(null),x=y.useRef(null),{options:h,mapSetter:O,containerElementSetter:C,className:S,...E}=m;return y.useEffect(()=>{if(!h.mapKey){console.error("Please provide a mapKey in options!");return}if(g.current&&!x.current)try{const f=new Pe.Map({...ke,...h,container:g.current});x.current=f,typeof O=="function"&&O(f),typeof C=="function"&&C(g.current)}catch(f){console.group("Error in constructing map:"),console.error(f),console.groupEnd()}},[C,O,h]),h.mapKey?je.jsx("div",{className:`map-container ${S||""}`,ref:g,...E}):null}var re=(m=>(m.neshanVector="neshanVector",m.neshanVectorNight="neshanVectorNight",m.neshanRaster="neshanRaster",m.neshanRasterNight="neshanRasterNight",m))(re||{});b.MapComponent=De,b.MapTypes=re,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
|
|
17
|
+
*/var y;function $(){return y||(y=1,process.env.NODE_ENV!=="production"&&function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case g:return"Fragment";case Q:return"Profiler";case K:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Z:return"Portal";case re:return(e.displayName||"Context")+".Provider";case ee:return(e._context.displayName||"Context")+".Consumer";case te:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case F:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function f(e){return""+e}function d(e){try{f(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),f(e)}}function u(e){if(e===g)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===F)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=O.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function E(e){if(D.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function R(e,r){function t(){M||(M=!0,console.error("%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://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function b(){var e=a(this.type);return L[e]||(L[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function H(e,r,t,n,p,i,P,x){return t=i.ref,e={$$typeof:I,type:e,key:r,props:i,_owner:p},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:b}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function C(e,r,t,n,p,i,P,x){var o=r.children;if(o!==void 0)if(n)if(ue(o)){for(n=0;n<o.length;n++)Y(o[n]);Object.freeze&&Object.freeze(o)}else console.error("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 Y(o);if(D.call(r,"key")){o=a(e);var _=Object.keys(r).filter(function(ie){return ie!=="key"});n=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",U[o+n]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,n,o,_,o),U[o+n]=!0)}if(o=null,t!==void 0&&(d(t),o=""+t),E(r)&&(d(r.key),o=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return o&&R(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),H(e,o,i,p,s(),t,P,x)}function Y(e){typeof e=="object"&&e!==null&&e.$$typeof===I&&e._store&&(e._store.validated=1)}var k=m,I=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),re=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),O=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,ue=Array.isArray,S=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(e){return e()}};var M,L={},V=k["react-stack-bottom-frame"].bind(k,c)(),W=S(u(c)),U={};T.Fragment=g,T.jsx=function(e,r,t,n,p){var i=1e4>O.recentlyCreatedOwnerStacks++;return C(e,r,t,!1,n,p,i?Error("react-stack-top-frame"):V,i?S(u(e)):W)},T.jsxs=function(e,r,t,n,p){var i=1e4>O.recentlyCreatedOwnerStacks++;return C(e,r,t,!0,n,p,i?Error("react-stack-top-frame"):V,i?S(u(e)):W)}}()),T}var w;function q(){return w||(w=1,process.env.NODE_ENV==="production"?h.exports=J():h.exports=$()),h.exports}var G=q();const X={center:[54.145464,32.527699],zoom:5,poi:!1,traffic:!1};function B(a){const f=m.useRef(null),d=m.useRef(null),{options:u,mapSetter:s,containerElementSetter:c,className:E,...R}=a;return m.useEffect(()=>{if(!u.mapKey){console.error("Please provide a mapKey in options!");return}if(f.current&&!d.current)try{const b=new z.Map({...X,...u,container:f.current});d.current=b,typeof s=="function"&&s(b),typeof c=="function"&&c(f.current)}catch(b){console.group("Error in constructing map:"),console.error(b),console.groupEnd()}},[c,s,u]),u.mapKey?G.jsx("div",{className:`map-container ${E||""}`,ref:f,...R}):null}var N=(a=>(a.neshanVector="neshanVector",a.neshanVectorNight="neshanVectorNight",a.neshanRaster="neshanRaster",a.neshanRasterNight="neshanRasterNight",a))(N||{});l.MapComponent=B,l.MapTypes=N,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neshan-maps-platform/mapbox-gl-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3-alpha.1",
|
|
5
5
|
"description": "A Reactjs wrapper for Neshan-mapbox-sdk",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
7
7
|
"type": "module",
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
"npm-publish": "npm publish --access=public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@neshan-maps-platform/mapbox-gl": "1.1.
|
|
23
|
-
"react": "^
|
|
24
|
-
"react-dom": "^
|
|
22
|
+
"@neshan-maps-platform/mapbox-gl": "1.1.5",
|
|
23
|
+
"react": "^19.1.0",
|
|
24
|
+
"react-dom": "^19.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/react": "^
|
|
28
|
-
"@types/react-dom": "^
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
30
|
-
"@typescript-eslint/parser": "^
|
|
27
|
+
"@types/react": "^19.1.1",
|
|
28
|
+
"@types/react-dom": "^19.1.2",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
30
|
+
"@typescript-eslint/parser": "^8.29.1",
|
|
31
31
|
"@vitejs/plugin-react": "^4.0.3",
|
|
32
|
-
"eslint": "^
|
|
32
|
+
"eslint": "^9.24.0",
|
|
33
33
|
"eslint-plugin-react": "^7.32.2",
|
|
34
|
-
"eslint-plugin-react-hooks": "^
|
|
34
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
35
35
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
36
36
|
"typescript": "^5.2.2",
|
|
37
|
-
"vite": "^
|
|
38
|
-
"vite-plugin-dts": "^
|
|
39
|
-
"vite-plugin-lib-inject-css": "^
|
|
37
|
+
"vite": "^6.2.6",
|
|
38
|
+
"vite-plugin-dts": "^4.5.3",
|
|
39
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": [
|
|
42
42
|
"**/*.css"
|
|
File without changes
|