@datagouv/components-next 1.0.2-dev.230 → 1.0.2-dev.231
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/{ImagePreview.client-Db0MdI5N.js → ImagePreview.client-H7jGf9xS.js} +1 -1
- package/dist/{JsonPreview.client-DRCq40Q-.js → JsonPreview.client-CQSCGT6V.js} +1 -1
- package/dist/{Map-D17BKcyK.js → Map-QeL96qbQ.js} +1 -1
- package/dist/{MapContainer.client-DdPY_Iri.js → MapContainer.client-UC7wQOBj.js} +10 -10
- package/dist/{PdfPreview.client-DtKCBgGZ.js → PdfPreview.client-Cz_jnvla.js} +1 -1
- package/dist/{Pmtiles.client-DSZ_4FXc.js → Pmtiles.client-CSoax_YA.js} +2102 -2903
- package/dist/{PreviewWrapper-DegSQbMM.js → PreviewWrapper-DBlpLgs2.js} +1 -1
- package/dist/{XmlPreview.client-D9R_YF5s.js → XmlPreview.client-8vye8TAa.js} +1 -1
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +4722 -4727
- package/dist/purify.es-CeeOHdER.js +805 -0
- package/dist/{resources-BOKIyTJV.js → resources-BBaRfEol.js} +13 -16
- package/dist/src-C0XyM3eg.js +68979 -0
- package/package.json +2 -2
- package/src/components/ResourceAccordion/EditButton.vue +1 -4
- package/src/components/ResourceAccordion/MapContainer.client.vue +18 -7
- package/src/components/ResourceAccordion/ResourceAccordion.vue +1 -6
- package/src/functions/resources.ts +0 -4
- package/src/types/resources.ts +0 -6
- package/dist/src-DbFybTVs.js +0 -66090
|
@@ -261,16 +261,13 @@ function V(e) {
|
|
|
261
261
|
function H(e, t) {
|
|
262
262
|
return `${e.page}${V(t) ? "/community-resources" : ""}?resource_id=${t.id}`;
|
|
263
263
|
}
|
|
264
|
-
function U(e) {
|
|
265
|
-
return e.geopf?.push_status != null || typeof e.geopf?.offering_id == "string";
|
|
266
|
-
}
|
|
267
|
-
function W(e, t, n) {
|
|
264
|
+
function U(e, t, n) {
|
|
268
265
|
return n ? n(t) : H(e, t);
|
|
269
266
|
}
|
|
270
|
-
function
|
|
267
|
+
function W(e) {
|
|
271
268
|
return e.filesize ? e.filesize : "analysis:content-length" in e.extras ? e.extras["analysis:content-length"] : null;
|
|
272
269
|
}
|
|
273
|
-
var
|
|
270
|
+
var G = [
|
|
274
271
|
"png",
|
|
275
272
|
"jpg",
|
|
276
273
|
"jpeg",
|
|
@@ -278,27 +275,27 @@ var K = [
|
|
|
278
275
|
"gif",
|
|
279
276
|
"webp"
|
|
280
277
|
];
|
|
281
|
-
function
|
|
282
|
-
return e ?
|
|
278
|
+
function K(e) {
|
|
279
|
+
return e ? G.includes(e.toLowerCase()) : !1;
|
|
283
280
|
}
|
|
284
|
-
function
|
|
281
|
+
function q(e) {
|
|
285
282
|
let t = e.extras["analysis:parsing:error"];
|
|
286
283
|
if (typeof t != "string" || !t) return null;
|
|
287
284
|
let [n] = t.split(":", 1);
|
|
288
285
|
return n ?? null;
|
|
289
286
|
}
|
|
290
|
-
function
|
|
287
|
+
function J(e) {
|
|
291
288
|
let t = e.extras["analysis:parsing:error"];
|
|
292
289
|
if (typeof t != "string" || !t) return null;
|
|
293
290
|
let n = t.indexOf(":");
|
|
294
291
|
return n === -1 ? t : t.slice(n + 1);
|
|
295
292
|
}
|
|
296
|
-
var
|
|
297
|
-
function
|
|
298
|
-
let t =
|
|
299
|
-
return t !== null && !
|
|
293
|
+
var Y = ["pmtiles_export", "geojson_export"];
|
|
294
|
+
function X(e) {
|
|
295
|
+
let t = q(e);
|
|
296
|
+
return t !== null && !Y.includes(t);
|
|
300
297
|
}
|
|
301
|
-
var
|
|
298
|
+
var Z = (e) => {
|
|
302
299
|
let n = e.extras;
|
|
303
300
|
if (!n || !("check:cors:allow-origin" in n)) return "unknown";
|
|
304
301
|
let r = n["check:cors:allow-origin"], i = n["check:cors:allow-methods"], a = t().trustedDomains ?? [], o = r === "*", s = r ? a.some((e) => {
|
|
@@ -312,4 +309,4 @@ var Q = (e) => {
|
|
|
312
309
|
return c && u ? "allowed" : "blocked";
|
|
313
310
|
};
|
|
314
311
|
//#endregion
|
|
315
|
-
export {
|
|
312
|
+
export { U as _, J as a, H as c, P as d, R as f, K as g, V as h, B as i, W as l, X as m, L as n, q as o, F as p, I as r, Z as s, z as t, N as u, c as v };
|