@carto/ps-react-maps 3.5.0-canary.0 → 3.5.0-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3505,16 +3505,19 @@ async function cr({
|
|
|
3505
3505
|
...i
|
|
3506
3506
|
} = {},
|
|
3507
3507
|
queryParameters: a,
|
|
3508
|
-
|
|
3508
|
+
params: l,
|
|
3509
|
+
apiVersion: d = Qe
|
|
3509
3510
|
}) {
|
|
3510
|
-
const
|
|
3511
|
+
const c = `${r}/${d}/stats/${e}/${s}`;
|
|
3511
3512
|
return Lt({
|
|
3512
3513
|
accessToken: t,
|
|
3513
3514
|
signal: o,
|
|
3514
|
-
url:
|
|
3515
|
+
url: c,
|
|
3515
3516
|
method: ce.get,
|
|
3516
3517
|
params: {
|
|
3517
|
-
|
|
3518
|
+
q: n,
|
|
3519
|
+
...a,
|
|
3520
|
+
...l
|
|
3518
3521
|
},
|
|
3519
3522
|
...i
|
|
3520
3523
|
});
|
|
@@ -3525,83 +3528,102 @@ async function ur({
|
|
|
3525
3528
|
accessToken: t,
|
|
3526
3529
|
table: n,
|
|
3527
3530
|
attribute: s,
|
|
3531
|
+
params: o,
|
|
3528
3532
|
fetcherOptions: {
|
|
3529
|
-
signal:
|
|
3530
|
-
...
|
|
3533
|
+
signal: i,
|
|
3534
|
+
...a
|
|
3531
3535
|
} = {},
|
|
3532
|
-
apiVersion:
|
|
3536
|
+
apiVersion: l = Qe
|
|
3533
3537
|
}) {
|
|
3534
|
-
const
|
|
3538
|
+
const d = `${r}/${l}/stats/${e}/${n}/${s}`;
|
|
3535
3539
|
return Lt({
|
|
3536
3540
|
accessToken: t,
|
|
3537
|
-
signal:
|
|
3538
|
-
url:
|
|
3541
|
+
signal: i,
|
|
3542
|
+
url: d,
|
|
3539
3543
|
method: ce.get,
|
|
3540
|
-
|
|
3544
|
+
params: {
|
|
3545
|
+
...o
|
|
3546
|
+
},
|
|
3547
|
+
...a
|
|
3541
3548
|
});
|
|
3542
3549
|
}
|
|
3543
3550
|
function eo(r) {
|
|
3544
|
-
const e = R(
|
|
3551
|
+
const e = R(20), {
|
|
3545
3552
|
source: t,
|
|
3546
3553
|
attribute: n,
|
|
3547
3554
|
accessToken: s,
|
|
3548
|
-
|
|
3549
|
-
|
|
3555
|
+
params: o,
|
|
3556
|
+
fetcherOptions: i,
|
|
3557
|
+
useQueryProps: a
|
|
3550
3558
|
} = r;
|
|
3551
|
-
let
|
|
3552
|
-
e[0] !==
|
|
3553
|
-
let
|
|
3554
|
-
e[2] !==
|
|
3555
|
-
enabled:
|
|
3556
|
-
...
|
|
3557
|
-
} =
|
|
3558
|
-
const
|
|
3559
|
-
let h;
|
|
3560
|
-
e[5] !== n || e[6] !== t ? (h = [t, n], e[5] = n, e[6] = t, e[7] = h) : h = e[7];
|
|
3559
|
+
let l;
|
|
3560
|
+
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3561
|
+
let d, c;
|
|
3562
|
+
e[2] !== l ? ({
|
|
3563
|
+
enabled: d,
|
|
3564
|
+
...c
|
|
3565
|
+
} = l, e[2] = l, e[3] = d, e[4] = c) : (d = e[3], c = e[4]);
|
|
3566
|
+
const h = d === void 0 ? !0 : d;
|
|
3561
3567
|
let m;
|
|
3562
|
-
e[
|
|
3568
|
+
e[5] !== n || e[6] !== t ? (m = [t, n], e[5] = n, e[6] = t, e[7] = m) : m = e[7];
|
|
3563
3569
|
let f;
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3570
|
+
e[8] !== s || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () => fr({
|
|
3571
|
+
source: t,
|
|
3572
|
+
params: o,
|
|
3573
|
+
attribute: n,
|
|
3574
|
+
accessToken: s,
|
|
3575
|
+
fetcherOptions: i
|
|
3576
|
+
}), e[8] = s, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
|
|
3577
|
+
let b;
|
|
3578
|
+
return e[14] !== h || e[15] !== t || e[16] !== m || e[17] !== f || e[18] !== c ? (b = {
|
|
3579
|
+
queryKey: m,
|
|
3580
|
+
queryFn: f,
|
|
3581
|
+
select(p) {
|
|
3568
3582
|
return {
|
|
3569
|
-
...
|
|
3570
|
-
type:
|
|
3583
|
+
...p,
|
|
3584
|
+
type: p.type.toLowerCase()
|
|
3571
3585
|
};
|
|
3572
3586
|
},
|
|
3573
|
-
enabled: !!t &&
|
|
3574
|
-
...
|
|
3575
|
-
}, e[
|
|
3587
|
+
enabled: !!t && h,
|
|
3588
|
+
...c
|
|
3589
|
+
}, e[14] = h, e[15] = t, e[16] = m, e[17] = f, e[18] = c, e[19] = b) : b = e[19], se(b);
|
|
3576
3590
|
}
|
|
3577
|
-
function fr(
|
|
3591
|
+
function fr({
|
|
3592
|
+
source: r,
|
|
3593
|
+
params: e,
|
|
3594
|
+
attribute: t,
|
|
3595
|
+
accessToken: n,
|
|
3596
|
+
fetcherOptions: s
|
|
3597
|
+
}) {
|
|
3578
3598
|
if (r.type.startsWith("query"))
|
|
3579
3599
|
return cr({
|
|
3580
3600
|
connection: r.connectionName,
|
|
3581
3601
|
baseUrl: r.apiBaseUrl,
|
|
3582
3602
|
apiVersion: r.apiVersion,
|
|
3583
|
-
accessToken:
|
|
3603
|
+
accessToken: n,
|
|
3604
|
+
params: e,
|
|
3584
3605
|
query: r.data,
|
|
3585
3606
|
queryParameters: r.queryParameters,
|
|
3586
|
-
attribute:
|
|
3587
|
-
fetcherOptions:
|
|
3607
|
+
attribute: t,
|
|
3608
|
+
fetcherOptions: s
|
|
3588
3609
|
});
|
|
3589
3610
|
if (r.type.startsWith("table"))
|
|
3590
3611
|
return ur({
|
|
3591
3612
|
connection: r.connectionName,
|
|
3592
3613
|
baseUrl: r.apiBaseUrl,
|
|
3593
3614
|
apiVersion: r.apiVersion,
|
|
3594
|
-
|
|
3615
|
+
params: e,
|
|
3616
|
+
accessToken: n,
|
|
3595
3617
|
table: r.data,
|
|
3596
|
-
attribute:
|
|
3597
|
-
fetcherOptions:
|
|
3618
|
+
attribute: t,
|
|
3619
|
+
fetcherOptions: s
|
|
3598
3620
|
});
|
|
3599
3621
|
if (r.type.startsWith("tileset"))
|
|
3600
3622
|
return dr({
|
|
3601
3623
|
source: r,
|
|
3602
|
-
accessToken:
|
|
3624
|
+
accessToken: n,
|
|
3603
3625
|
target: r.data,
|
|
3604
|
-
attribute:
|
|
3626
|
+
attribute: t
|
|
3605
3627
|
});
|
|
3606
3628
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3607
3629
|
}
|