@datagouv/components-next 1.4.1-dev.1383.g24f4e1af → 1.4.1-dev.1385.gdbe95e78
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/{MapContainer.client-Clk9_bbS.js → MapContainer.client-DoN1jSzM.js} +1 -1
- package/dist/{Pmtiles.client-NGYdeSJY.js → Pmtiles.client-DncYrZSp.js} +2 -2
- package/dist/components-next.js +8931 -8906
- package/dist/purify.es-eElsWhh7.js +876 -0
- package/dist/{src-D_o-aUzl.js → src-DJJgtynU.js} +159 -123
- package/package.json +2 -2
- package/src/components/ActivityList/ActivityActor.vue +33 -1
- package/src/types/activity.ts +22 -4
- package/dist/purify.es-CGAWnSTR.js +0 -843
|
@@ -9,7 +9,7 @@ import { S as assert, c as multiply, d as setFromArray, h as intersectsLineStrin
|
|
|
9
9
|
import { A as deflateCoordinatesArray, B as getStrideForLayout, C as quantizeMultiArray, D as inflateMultiCoordinatesArray, E as inflateCoordinatesArray, F as assignClosestPoint, H as Geometry, I as maxSquaredDelta, L as multiArrayMaxSquaredDelta, M as arrayMaxSquaredDelta, N as assignClosestArrayPoint, O as deflateCoordinate, P as assignClosestMultiArrayPoint, R as SimpleGeometry, S as quantizeArray, T as inflateCoordinates, U as rotate, V as transformGeom2D, W as transform2D, _ as LinearRing, b as douglasPeucker, c as fromCircle, d as linearRingsAreOriented, f as linearRingssAreOriented, g as getInteriorPointsOfMultiArray, h as getInteriorPointOfArray, i as ViewHint_default, j as deflateMultiCoordinatesArray, k as deflateCoordinates, l as fromExtent, m as orientLinearRingsArray, o as Polygon, p as orientLinearRings, r as ViewProperty_default, s as circular, t as View, u as inflateEnds, v as linearRingss$1, w as snap, x as douglasPeuckerArray, y as Point$1, z as getLayoutForStride } from "./View-Dad8DfSD.js";
|
|
10
10
|
import { c as fromString, o as asArray, p as EventType_default$1, r as BaseLayer, t as Layer$1 } from "./Layer-D_5tYbVm.js";
|
|
11
11
|
import { a as CanvasLayerRenderer, i as CanvasTileLayerRenderer, o as canvasPool$1, r as TileProperty_default, s as ZIndexContext, t as TileLayer } from "./Tile-8nHSuqcv.js";
|
|
12
|
-
import { t as purify_default } from "./purify.es-
|
|
12
|
+
import { t as purify_default } from "./purify.es-eElsWhh7.js";
|
|
13
13
|
// ../node_modules/geopf-extensions-openlayers/package.json
|
|
14
14
|
var name$1 = "geopf-extensions-openlayers", description$3 = "French Geoportal Extensions for OpenLayers libraries", version$3 = "1.0.0-beta.15", date$2 = "25/09/2026", module$2 = "src/index.js", main$1 = "src/index.js", types$3 = "src/index.d.ts", directories = {}, engines$1 = { node: ">=20" }, repository$1 = {
|
|
15
15
|
type: "git",
|
|
@@ -60844,18 +60844,27 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60844
60844
|
}
|
|
60845
60845
|
return te.join("");
|
|
60846
60846
|
}
|
|
60847
|
-
|
|
60847
|
+
function yt(Y) {
|
|
60848
|
+
if (Y === "" || Y[0] === "/") return vt(Y);
|
|
60849
|
+
let ee = Y.split("/"), te = ee.length - 1, ne = [], xe = !1;
|
|
60850
|
+
for (let Y = 0; Y <= te; Y++) {
|
|
60851
|
+
let Le = ee[Y];
|
|
60852
|
+
Le === "." || Le === ".." ? (Le === ".." && (ne.length !== 0 && ne[ne.length - 1] !== ".." ? ne.pop() : ne.push("..")), xe = Y === te) : ne.push(Le);
|
|
60853
|
+
}
|
|
60854
|
+
return xe && ne[ne.length - 1] !== ".." && ne.push(""), (ne.length === 0 || ne[0] === "" || ne[0].includes(":")) && ne.unshift("."), ne.join("/");
|
|
60855
|
+
}
|
|
60856
|
+
var bt = {
|
|
60848
60857
|
"@": "%40",
|
|
60849
60858
|
"/": "%2F",
|
|
60850
60859
|
"?": "%3F",
|
|
60851
60860
|
"#": "%23",
|
|
60852
60861
|
":": "%3A"
|
|
60853
|
-
},
|
|
60854
|
-
function
|
|
60855
|
-
let te = ee ?
|
|
60856
|
-
return te.lastIndex = 0, Y.replace(te, (Y) =>
|
|
60862
|
+
}, xt = /[@/?#:]/g, St = /[@/?#]/g;
|
|
60863
|
+
function Ct(Y, ee) {
|
|
60864
|
+
let te = ee ? St : xt;
|
|
60865
|
+
return te.lastIndex = 0, Y.replace(te, (Y) => bt[Y]);
|
|
60857
60866
|
}
|
|
60858
|
-
function
|
|
60867
|
+
function wt(Y, ee = !1) {
|
|
60859
60868
|
if (Y.indexOf("%") === -1) return Y;
|
|
60860
60869
|
let te = "";
|
|
60861
60870
|
for (let ne = 0; ne < Y.length; ne++) {
|
|
@@ -60871,7 +60880,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60871
60880
|
}
|
|
60872
60881
|
return te;
|
|
60873
60882
|
}
|
|
60874
|
-
function
|
|
60883
|
+
function Tt(Y) {
|
|
60875
60884
|
let ee = "";
|
|
60876
60885
|
for (let te = 0; te < Y.length; te++) {
|
|
60877
60886
|
let ne = Y[te];
|
|
@@ -60886,7 +60895,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60886
60895
|
if (tt(ne)) ee += ne;
|
|
60887
60896
|
else {
|
|
60888
60897
|
let xe = Y.charCodeAt(te);
|
|
60889
|
-
if (xe < 128) ee +=
|
|
60898
|
+
if (xe < 128) ee += Pt(xe) ? ne : it[xe];
|
|
60890
60899
|
else if (xe < 55296 || xe > 57343) ee += at(xe);
|
|
60891
60900
|
else if (xe <= 56319 && te + 1 < Y.length) {
|
|
60892
60901
|
let ne = Y.charCodeAt(te + 1);
|
|
@@ -60896,7 +60905,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60896
60905
|
}
|
|
60897
60906
|
return ee;
|
|
60898
60907
|
}
|
|
60899
|
-
function
|
|
60908
|
+
function Et(Y, ee = !1) {
|
|
60900
60909
|
let te = "", ne = ee && Y[0] !== "/";
|
|
60901
60910
|
for (let ee = 0; ee < Y.length; ee++) {
|
|
60902
60911
|
let xe = Y[ee];
|
|
@@ -60920,7 +60929,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60920
60929
|
}
|
|
60921
60930
|
return te;
|
|
60922
60931
|
}
|
|
60923
|
-
function
|
|
60932
|
+
function Dt(Y, ee) {
|
|
60924
60933
|
let te = "";
|
|
60925
60934
|
for (let ne = 0; ne < Y.length; ne++) {
|
|
60926
60935
|
let xe = Y[ne];
|
|
@@ -60944,19 +60953,19 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60944
60953
|
}
|
|
60945
60954
|
return te;
|
|
60946
60955
|
}
|
|
60947
|
-
function Dt(Y) {
|
|
60948
|
-
return Et(Y, rt);
|
|
60949
|
-
}
|
|
60950
60956
|
function Ot(Y) {
|
|
60951
|
-
return
|
|
60957
|
+
return Dt(Y, rt);
|
|
60952
60958
|
}
|
|
60953
60959
|
function kt(Y) {
|
|
60954
|
-
return
|
|
60960
|
+
return Dt(Y, nt);
|
|
60955
60961
|
}
|
|
60956
60962
|
function Mt(Y) {
|
|
60957
|
-
return Y
|
|
60963
|
+
return Dt(Y, nt);
|
|
60958
60964
|
}
|
|
60959
60965
|
function Pt(Y) {
|
|
60966
|
+
return Y >= 48 && Y <= 57 || Y >= 65 && Y <= 90 || Y >= 97 && Y <= 122 || Y === 42 || Y === 43 || Y === 45 || Y === 46 || Y === 47 || Y === 64 || Y === 95;
|
|
60967
|
+
}
|
|
60968
|
+
function It(Y) {
|
|
60960
60969
|
let ee = "";
|
|
60961
60970
|
for (let te = 0; te < Y.length; te++) {
|
|
60962
60971
|
let ne = Y[te];
|
|
@@ -60971,7 +60980,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60971
60980
|
if (nt(ne)) ee += ne;
|
|
60972
60981
|
else {
|
|
60973
60982
|
let xe = Y.charCodeAt(te);
|
|
60974
|
-
if (xe < 128) ee +=
|
|
60983
|
+
if (xe < 128) ee += Pt(xe) ? ne : it[xe];
|
|
60975
60984
|
else if (xe < 55296 || xe > 57343) ee += at(xe);
|
|
60976
60985
|
else if (xe <= 56319 && te + 1 < Y.length) {
|
|
60977
60986
|
let ne = Y.charCodeAt(te + 1);
|
|
@@ -60981,7 +60990,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60981
60990
|
}
|
|
60982
60991
|
return ee;
|
|
60983
60992
|
}
|
|
60984
|
-
function
|
|
60993
|
+
function Lt(Y) {
|
|
60985
60994
|
let ee = "";
|
|
60986
60995
|
for (let te = 0; te < Y.length; te++) {
|
|
60987
60996
|
if (Y[te] === "%" && te + 2 < Y.length) {
|
|
@@ -60995,13 +61004,13 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
60995
61004
|
}
|
|
60996
61005
|
return ee;
|
|
60997
61006
|
}
|
|
60998
|
-
function
|
|
61007
|
+
function Rt(Y) {
|
|
60999
61008
|
let ee = [];
|
|
61000
|
-
if (Y.userinfo !== void 0 && (ee.push(
|
|
61009
|
+
if (Y.userinfo !== void 0 && (ee.push(Ot(Y.userinfo)), ee.push("@")), Y.host !== void 0) {
|
|
61001
61010
|
let te = Y.host;
|
|
61002
61011
|
if (!ne(te)) {
|
|
61003
61012
|
let Y = ht(te);
|
|
61004
|
-
Y.isIPV6 !== !0 && Y.isIPVFuture !== !0 && (te =
|
|
61013
|
+
Y.isIPV6 !== !0 && Y.isIPVFuture !== !0 && (te = wt(te, !0), Y = ht(te)), te = Y.isIPV6 === !0 || Y.isIPVFuture === !0 ? `[${Y.escapedHost}]` : Ct(te, !1);
|
|
61005
61014
|
}
|
|
61006
61015
|
ee.push(te);
|
|
61007
61016
|
}
|
|
@@ -61014,17 +61023,18 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
61014
61023
|
}
|
|
61015
61024
|
ee.exports = {
|
|
61016
61025
|
nonSimpleDomain: dt,
|
|
61017
|
-
recomposeAuthority:
|
|
61018
|
-
reescapeHostDelimiters:
|
|
61019
|
-
normalizePercentEncoding:
|
|
61020
|
-
normalizePathEncoding:
|
|
61021
|
-
serializePathEncoding:
|
|
61022
|
-
normalizeQueryFragmentEncoding:
|
|
61023
|
-
encodeUserinfo:
|
|
61024
|
-
encodeQuery:
|
|
61025
|
-
encodeFragment:
|
|
61026
|
-
escapePreservingEscapes:
|
|
61026
|
+
recomposeAuthority: Rt,
|
|
61027
|
+
reescapeHostDelimiters: Ct,
|
|
61028
|
+
normalizePercentEncoding: wt,
|
|
61029
|
+
normalizePathEncoding: Tt,
|
|
61030
|
+
serializePathEncoding: Et,
|
|
61031
|
+
normalizeQueryFragmentEncoding: It,
|
|
61032
|
+
encodeUserinfo: Ot,
|
|
61033
|
+
encodeQuery: kt,
|
|
61034
|
+
encodeFragment: Mt,
|
|
61035
|
+
escapePreservingEscapes: Lt,
|
|
61027
61036
|
removeDotSegments: vt,
|
|
61037
|
+
removeDotSegmentsRelative: yt,
|
|
61028
61038
|
isIPv4: ne,
|
|
61029
61039
|
isUUID: te,
|
|
61030
61040
|
normalizeIPv6: ht,
|
|
@@ -61137,33 +61147,51 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
61137
61147
|
getSchemeHandler: mt
|
|
61138
61148
|
};
|
|
61139
61149
|
})), require_fast_uri = /* @__PURE__ */ __commonJSMin(((Y, ee) => {
|
|
61140
|
-
var { normalizeIPv6: te, removeDotSegments: ne,
|
|
61141
|
-
function
|
|
61142
|
-
let ee =
|
|
61143
|
-
if (!
|
|
61150
|
+
var { normalizeIPv6: te, removeDotSegments: ne, removeDotSegmentsRelative: xe, recomposeAuthority: Le, normalizePercentEncoding: et, normalizePathEncoding: tt, serializePathEncoding: nt, normalizeQueryFragmentEncoding: rt, encodeQuery: it, encodeFragment: at, reescapeHostDelimiters: ot, isIPv4: st, nonSimpleDomain: ct } = require_utils(), { SCHEMES: ut, getSchemeHandler: dt } = require_schemes(), ft = /^[A-Za-z][A-Za-z0-9+.-]*$/u, pt = "URI scheme is malformed.", mt = "URI host is malformed.", ht = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
|
|
61151
|
+
function _t(Y) {
|
|
61152
|
+
let ee = String(Y);
|
|
61153
|
+
if (!ft.test(ee)) throw TypeError(pt);
|
|
61144
61154
|
return ee;
|
|
61145
61155
|
}
|
|
61146
|
-
function
|
|
61147
|
-
return typeof Y == "string" ? Y =
|
|
61148
|
-
}
|
|
61149
|
-
function
|
|
61150
|
-
let xe = ne ? Object.assign({ scheme: "null" }, ne) : { scheme: "null" }, { parsed: Le, malformedAuthorityOrPort: et, malformedPercentEncoding: tt, malformedSchemeSpecific: nt, malformedHost: rt, malformedScheme: it } =
|
|
61151
|
-
if (et ||
|
|
61152
|
-
let
|
|
61153
|
-
|
|
61156
|
+
function vt(Y, ee) {
|
|
61157
|
+
return typeof Y == "string" ? Y = zt(Y, ee) : typeof Y == "object" && (Y = Rt(St(Y, ee), ee)), Y;
|
|
61158
|
+
}
|
|
61159
|
+
function yt(Y, ee, ne) {
|
|
61160
|
+
let xe = ne ? Object.assign({ scheme: "null" }, ne) : { scheme: "null" }, { parsed: Le, malformedAuthorityOrPort: et, malformedPercentEncoding: tt, malformedSchemeSpecific: nt, malformedHost: rt, malformedScheme: it } = Lt(Y, xe), { parsed: at, malformedAuthorityOrPort: ot, malformedPercentEncoding: ct, malformedSchemeSpecific: ut, malformedHost: ft, malformedScheme: pt } = Lt(ee, xe);
|
|
61161
|
+
if (et || ot || tt || ct || nt || ut || rt || ft || it || pt) throw Error(Le.error || at.error || "URI is malformed.");
|
|
61162
|
+
let ht = bt(Le, at, xe, !0), _t = dt(ne && ne.scheme || ht.scheme), vt = ht.host, yt = vt !== void 0 && vt !== "" && (st(vt) || te(vt).isIPV6);
|
|
61163
|
+
if (Pt(ht, ne || {}, _t, yt)) throw Error(mt);
|
|
61164
|
+
Mt(ht, ne || {}, _t, yt);
|
|
61154
61165
|
let xt = vt && vt.indexOf("%") !== -1 && !/\P{ASCII}/u.test(vt);
|
|
61155
|
-
if (
|
|
61156
|
-
return xe.skipEscape = !0,
|
|
61166
|
+
if (ht.error && !xt) throw Error(ht.error);
|
|
61167
|
+
return xe.skipEscape = !0, St(ht, xe);
|
|
61157
61168
|
}
|
|
61158
|
-
function
|
|
61159
|
-
let
|
|
61160
|
-
|
|
61169
|
+
function bt(Y, ee, te, Le) {
|
|
61170
|
+
let et = {};
|
|
61171
|
+
if (Le || (Y = Rt(St(Y, te), te), ee = Rt(St(ee, te), te)), te ||= {}, !te.tolerant && ee.scheme) et.scheme = ee.scheme, et.userinfo = ee.userinfo, et.host = ee.host, et.port = ee.port, et.path = ne(ee.path || ""), et.query = ee.query;
|
|
61172
|
+
else {
|
|
61173
|
+
if (ee.userinfo !== void 0 || ee.host !== void 0 || ee.port !== void 0) et.userinfo = ee.userinfo, et.host = ee.host, et.port = ee.port, et.path = ne(ee.path || ""), et.query = ee.query;
|
|
61174
|
+
else {
|
|
61175
|
+
if (!ee.path) et.path = Y.path, et.query = ee.query === void 0 ? Y.query : ee.query;
|
|
61176
|
+
else {
|
|
61177
|
+
if (ee.path[0] === "/") et.path = ne(ee.path);
|
|
61178
|
+
else {
|
|
61179
|
+
let te = Y.userinfo !== void 0 || Y.host !== void 0 || Y.port !== void 0;
|
|
61180
|
+
et.path = te && !Y.path ? "/" + ee.path : Y.path ? Y.path.slice(0, Y.path.lastIndexOf("/") + 1) + ee.path : ee.path, et.path = Y.scheme === void 0 && !te && et.path[0] !== "/" ? xe(et.path) : ne(et.path);
|
|
61181
|
+
}
|
|
61182
|
+
et.query = ee.query;
|
|
61183
|
+
}
|
|
61184
|
+
et.userinfo = Y.userinfo, et.host = Y.host, et.port = Y.port;
|
|
61185
|
+
}
|
|
61186
|
+
et.scheme = Y.scheme;
|
|
61187
|
+
}
|
|
61188
|
+
return et.fragment = ee.fragment, et;
|
|
61161
61189
|
}
|
|
61162
|
-
function
|
|
61163
|
-
let ne =
|
|
61190
|
+
function xt(Y, ee, te) {
|
|
61191
|
+
let ne = Vt(Y, te), xe = Vt(ee, te);
|
|
61164
61192
|
return ne !== void 0 && xe !== void 0 && ne === xe;
|
|
61165
61193
|
}
|
|
61166
|
-
function
|
|
61194
|
+
function St(Y, ee) {
|
|
61167
61195
|
let te = {
|
|
61168
61196
|
host: Y.host,
|
|
61169
61197
|
scheme: Y.scheme,
|
|
@@ -61179,25 +61207,25 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
61179
61207
|
resourceName: Y.resourceName,
|
|
61180
61208
|
secure: Y.secure,
|
|
61181
61209
|
error: ""
|
|
61182
|
-
},
|
|
61183
|
-
te.scheme &&=
|
|
61184
|
-
let
|
|
61185
|
-
|
|
61186
|
-
let
|
|
61187
|
-
te.path !== void 0 && (te.path =
|
|
61188
|
-
let
|
|
61189
|
-
if (
|
|
61210
|
+
}, tt = Object.assign({}, ee), rt = [];
|
|
61211
|
+
te.scheme &&= _t(te.scheme);
|
|
61212
|
+
let ot = dt(tt.scheme || te.scheme);
|
|
61213
|
+
ot && ot.serialize && ot.serialize(te, tt);
|
|
61214
|
+
let st = te.userinfo !== void 0 || te.host !== void 0 || te.port !== void 0, ct = (te.scheme === void 0 || tt.reference === "suffix") && !st, ut = !tt.skipEscape && ct;
|
|
61215
|
+
te.path !== void 0 && (te.path = tt.skipEscape ? et(te.path) : nt(te.path, ut)), tt.reference !== "suffix" && te.scheme && (te.scheme = _t(te.scheme), rt.push(te.scheme, ":"));
|
|
61216
|
+
let ft = Le(te);
|
|
61217
|
+
if (ft !== void 0 && (tt.reference !== "suffix" && rt.push("//"), rt.push(ft), te.path && te.path[0] !== "/" && rt.push("/")), te.path !== void 0) {
|
|
61190
61218
|
let Y = te.path;
|
|
61191
|
-
|
|
61219
|
+
tt.absolutePath || ot && ot.absolutePath || (Y = ct && Y[0] !== "/" ? xe(Y) : ne(Y)), ct && (Y = nt(Y, !0)), ft === void 0 && Y[0] === "/" && Y[1] === "/" && (Y = "/%2F" + Y.slice(2)), rt.push(Y);
|
|
61192
61220
|
}
|
|
61193
|
-
return te.query !== void 0 &&
|
|
61221
|
+
return te.query !== void 0 && rt.push("?", it(te.query)), te.fragment !== void 0 && rt.push("#", at(te.fragment)), rt.join("");
|
|
61194
61222
|
}
|
|
61195
|
-
var
|
|
61196
|
-
function
|
|
61223
|
+
var Ct = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, wt = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, Tt = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
61224
|
+
function Et(Y, ee) {
|
|
61197
61225
|
if (ee[2] !== void 0 && Y.path && Y.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
|
|
61198
61226
|
if (typeof Y.port == "number" && (Y.port < 0 || Y.port > 65535)) return "URI port is malformed.";
|
|
61199
61227
|
}
|
|
61200
|
-
function
|
|
61228
|
+
function Dt(Y) {
|
|
61201
61229
|
if (Y === void 0) return !1;
|
|
61202
61230
|
let ee = Y.indexOf("%");
|
|
61203
61231
|
for (; ee !== -1;) {
|
|
@@ -61206,22 +61234,34 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
61206
61234
|
}
|
|
61207
61235
|
return !1;
|
|
61208
61236
|
}
|
|
61209
|
-
function
|
|
61237
|
+
function Ot(Y) {
|
|
61210
61238
|
return Y[0] === "[" && Y[Y.length - 1] === "]";
|
|
61211
61239
|
}
|
|
61212
|
-
function
|
|
61240
|
+
function kt(Y) {
|
|
61213
61241
|
let ee = Y[4];
|
|
61214
|
-
return
|
|
61242
|
+
return Dt(Y[3]) || ee !== void 0 && !Ot(ee) && Dt(ee) || Dt(Y[6]) || Dt(Y[7]) || Dt(Y[8]);
|
|
61215
61243
|
}
|
|
61216
|
-
function
|
|
61217
|
-
if (
|
|
61218
|
-
|
|
61219
|
-
|
|
61220
|
-
|
|
61244
|
+
function Mt(Y, ee, te, ne) {
|
|
61245
|
+
if (Pt(Y, ee, te, ne)) return Y.error = Y.error || mt, !0;
|
|
61246
|
+
if (!ee.unicodeSupport && (!te || !te.unicodeSupport) && Y.host && !Ot(Y.host) && (ee.domainHost || te && te.domainHost) && ne === !1 && ct(Y.host)) {
|
|
61247
|
+
let ee;
|
|
61248
|
+
try {
|
|
61249
|
+
ee = new URL("http://" + Y.host);
|
|
61250
|
+
} catch (ee) {
|
|
61251
|
+
return Y.error = Y.error || "Host's domain name can not be converted to ASCII: " + ee, !0;
|
|
61252
|
+
}
|
|
61253
|
+
if (!It(ee)) return Y.error = Y.error || mt, !0;
|
|
61254
|
+
Y.host = ee.hostname;
|
|
61221
61255
|
}
|
|
61222
61256
|
return !1;
|
|
61223
61257
|
}
|
|
61224
|
-
function
|
|
61258
|
+
function Pt(Y, ee, te, ne) {
|
|
61259
|
+
return !!(Y.host && ne === !1 && !Ot(Y.host) && (ee.domainHost || te && te.domainHost) && ht.test(Y.host));
|
|
61260
|
+
}
|
|
61261
|
+
function It(Y) {
|
|
61262
|
+
return Y.username === "" && Y.password === "" && Y.port === "" && Y.pathname === "/" && Y.search === "" && Y.hash === "" && Y.hostname !== "";
|
|
61263
|
+
}
|
|
61264
|
+
function Lt(Y, ee) {
|
|
61225
61265
|
let ne = Object.assign({}, ee), xe = {
|
|
61226
61266
|
scheme: void 0,
|
|
61227
61267
|
userinfo: void 0,
|
|
@@ -61230,56 +61270,52 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
61230
61270
|
path: "",
|
|
61231
61271
|
query: void 0,
|
|
61232
61272
|
fragment: void 0
|
|
61233
|
-
},
|
|
61273
|
+
}, Le = !1, nt = !1, it = !1, at = !1, ct = !1, ht = !1, _t = !1;
|
|
61234
61274
|
ne.reference === "suffix" && (Y = ne.scheme ? ne.scheme + ":" + Y : "//" + Y);
|
|
61235
|
-
let
|
|
61236
|
-
|
|
61237
|
-
let
|
|
61238
|
-
if (
|
|
61239
|
-
let Y =
|
|
61240
|
-
ee.length >= 2 && (ee.slice(0, 2) === "//" ? Y.length !== ee.length && (xe.error = xe.error || "URI authority introducer must not contain whitespace.",
|
|
61241
|
-
}
|
|
61242
|
-
let
|
|
61243
|
-
if (
|
|
61244
|
-
|
|
61245
|
-
|
|
61246
|
-
|
|
61247
|
-
|
|
61248
|
-
|
|
61249
|
-
|
|
61250
|
-
|
|
61251
|
-
if (ot(xe.host) === !1) {
|
|
61252
|
-
let Y = Tt(xe.host), ee = xe.host.indexOf("[") !== -1 || xe.host.indexOf("]") !== -1, ne = te(xe.host);
|
|
61253
|
-
ht = ne.isIPV6 || ne.isIPVFuture === !0, pt = ee && (!Y || ne.error === !0), xe.host = ht ? ne.host : ne.host.toLowerCase(), pt && (xe.error = xe.error || "URI host is malformed.", tt = !0);
|
|
61254
|
-
} else ht = !0;
|
|
61275
|
+
let vt = Y.match(wt);
|
|
61276
|
+
vt !== null && vt[1].indexOf("\\") !== -1 && (xe.error = "URI authority must not contain a literal backslash.", Le = !0);
|
|
61277
|
+
let yt = Y.match(Tt);
|
|
61278
|
+
if (yt !== null) {
|
|
61279
|
+
let Y = yt[1], ee = Y.replace(/[\t\n\r]/g, "");
|
|
61280
|
+
ee.length >= 2 && (ee.slice(0, 2) === "//" ? Y.length !== ee.length && (xe.error = xe.error || "URI authority introducer must not contain whitespace.", Le = !0) : (xe.error = xe.error || "URI authority must not contain a literal backslash.", Le = !0));
|
|
61281
|
+
}
|
|
61282
|
+
let bt = Y.match(Ct);
|
|
61283
|
+
if (bt) {
|
|
61284
|
+
xe.scheme = bt[1], xe.userinfo = bt[3], xe.host = bt[4], xe.port = parseInt(bt[5], 10), xe.path = bt[6] || "", xe.query = bt[7], xe.fragment = bt[8], xe.scheme !== void 0 && (ft.test(xe.scheme) ? xe.scheme = xe.scheme.toLowerCase() : (xe.error = xe.error || pt, ht = !0)), nt = kt(bt), nt && (xe.error = xe.error || "URI contains malformed percent-encoding."), isNaN(xe.port) && (xe.port = bt[5]);
|
|
61285
|
+
let ee = Et(xe, bt);
|
|
61286
|
+
if (ee !== void 0 && (xe.error = xe.error || ee, Le = !0), xe.host) {
|
|
61287
|
+
if (st(xe.host) === !1) {
|
|
61288
|
+
let Y = Ot(xe.host), ee = xe.host.indexOf("[") !== -1 || xe.host.indexOf("]") !== -1, ne = te(xe.host);
|
|
61289
|
+
_t = ne.isIPV6 || ne.isIPVFuture === !0, ct = ee && (!Y || ne.error === !0), xe.host = _t ? ne.host : ne.host.toLowerCase(), ct && (xe.error = xe.error || mt, Le = !0);
|
|
61290
|
+
} else _t = !0;
|
|
61255
61291
|
}
|
|
61256
61292
|
xe.reference = xe.scheme === void 0 && xe.userinfo === void 0 && xe.host === void 0 && xe.port === void 0 && xe.query === void 0 && !xe.path ? "same-document" : xe.scheme === void 0 ? "relative" : xe.fragment === void 0 ? "absolute" : "uri", ne.reference && ne.reference !== "suffix" && ne.reference !== xe.reference && (xe.error = xe.error || "URI is not a " + ne.reference + " reference.");
|
|
61257
|
-
let
|
|
61258
|
-
if (
|
|
61259
|
-
let Y =
|
|
61260
|
-
|
|
61293
|
+
let vt = dt(ne.scheme || xe.scheme);
|
|
61294
|
+
if (ct || (at = Mt(xe, ne, vt, _t)), Y.indexOf("%") !== -1 && xe.host !== void 0 && !ct) {
|
|
61295
|
+
let Y = _t ? xe.host : et(xe.host, !0);
|
|
61296
|
+
_t || (Y = et(Y.toLowerCase())), xe.host = _t || ne.scheme !== "null" ? ot(Y, _t) : Y;
|
|
61261
61297
|
}
|
|
61262
|
-
(!
|
|
61298
|
+
(!vt || vt && !vt.skipNormalize) && (xe.path &&= tt(xe.path), xe.query &&= rt(xe.query), xe.fragment &&= rt(xe.fragment)), vt && vt.parse && (vt.parse(xe, ne), vt === ut.urn && xe.nid === void 0 && (it = !0));
|
|
61263
61299
|
} else xe.error = xe.error || "URI can not be parsed.";
|
|
61264
61300
|
return {
|
|
61265
61301
|
parsed: xe,
|
|
61266
|
-
malformedAuthorityOrPort:
|
|
61267
|
-
malformedPercentEncoding:
|
|
61302
|
+
malformedAuthorityOrPort: Le,
|
|
61303
|
+
malformedPercentEncoding: nt,
|
|
61268
61304
|
malformedSchemeSpecific: it,
|
|
61269
|
-
malformedHost:
|
|
61270
|
-
malformedScheme:
|
|
61305
|
+
malformedHost: at,
|
|
61306
|
+
malformedScheme: ht
|
|
61271
61307
|
};
|
|
61272
61308
|
}
|
|
61273
|
-
function
|
|
61274
|
-
return
|
|
61309
|
+
function Rt(Y, ee) {
|
|
61310
|
+
return Lt(Y, ee).parsed;
|
|
61275
61311
|
}
|
|
61276
|
-
function
|
|
61277
|
-
return
|
|
61312
|
+
function zt(Y, ee) {
|
|
61313
|
+
return Bt(Y, ee).normalized;
|
|
61278
61314
|
}
|
|
61279
|
-
function
|
|
61280
|
-
let { parsed: te, malformedAuthorityOrPort: ne, malformedPercentEncoding: xe, malformedSchemeSpecific: Le, malformedHost: et, malformedScheme: tt } =
|
|
61315
|
+
function Bt(Y, ee) {
|
|
61316
|
+
let { parsed: te, malformedAuthorityOrPort: ne, malformedPercentEncoding: xe, malformedSchemeSpecific: Le, malformedHost: et, malformedScheme: tt } = Lt(Y, ee);
|
|
61281
61317
|
return {
|
|
61282
|
-
normalized: ne || xe || Le || et || tt ? Y :
|
|
61318
|
+
normalized: ne || xe || Le || et || tt ? Y : St(te, ee),
|
|
61283
61319
|
malformedAuthorityOrPort: ne,
|
|
61284
61320
|
malformedPercentEncoding: xe,
|
|
61285
61321
|
malformedSchemeSpecific: Le,
|
|
@@ -61287,27 +61323,27 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
|
61287
61323
|
malformedScheme: tt
|
|
61288
61324
|
};
|
|
61289
61325
|
}
|
|
61290
|
-
function
|
|
61326
|
+
function Vt(Y, ee) {
|
|
61291
61327
|
if (typeof Y != "string" && typeof Y != "object") return;
|
|
61292
61328
|
let te;
|
|
61293
61329
|
try {
|
|
61294
|
-
te = typeof Y == "string" ? Y :
|
|
61330
|
+
te = typeof Y == "string" ? Y : St(Y, ee);
|
|
61295
61331
|
} catch {
|
|
61296
61332
|
return;
|
|
61297
61333
|
}
|
|
61298
|
-
let { normalized: ne, malformedAuthorityOrPort: xe, malformedPercentEncoding: Le, malformedSchemeSpecific: et, malformedHost: tt, malformedScheme: nt } =
|
|
61334
|
+
let { normalized: ne, malformedAuthorityOrPort: xe, malformedPercentEncoding: Le, malformedSchemeSpecific: et, malformedHost: tt, malformedScheme: nt } = Bt(te, ee);
|
|
61299
61335
|
return xe || Le || et || tt || nt ? void 0 : ne;
|
|
61300
61336
|
}
|
|
61301
|
-
var
|
|
61302
|
-
SCHEMES:
|
|
61303
|
-
normalize:
|
|
61304
|
-
resolve:
|
|
61305
|
-
resolveComponent:
|
|
61306
|
-
equal:
|
|
61307
|
-
serialize:
|
|
61308
|
-
parse:
|
|
61337
|
+
var Ht = {
|
|
61338
|
+
SCHEMES: ut,
|
|
61339
|
+
normalize: vt,
|
|
61340
|
+
resolve: yt,
|
|
61341
|
+
resolveComponent: bt,
|
|
61342
|
+
equal: xt,
|
|
61343
|
+
serialize: St,
|
|
61344
|
+
parse: Rt
|
|
61309
61345
|
};
|
|
61310
|
-
ee.exports =
|
|
61346
|
+
ee.exports = Ht, ee.exports.default = Ht, ee.exports.fastUri = Ht;
|
|
61311
61347
|
})), require_uri$1 = /* @__PURE__ */ __commonJSMin(((Y) => {
|
|
61312
61348
|
Object.defineProperty(Y, "__esModule", { value: !0 });
|
|
61313
61349
|
var ee = require_fast_uri();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagouv/components-next",
|
|
3
|
-
"version": "1.4.1-dev.
|
|
3
|
+
"version": "1.4.1-dev.1385.gdbe95e78",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@vueuse/core": "^14.4.0",
|
|
33
33
|
"@vueuse/router": "^14.4.0",
|
|
34
34
|
"chart.js": "^4.5.1",
|
|
35
|
-
"dompurify": "^3.4.
|
|
35
|
+
"dompurify": "^3.4.17",
|
|
36
36
|
"echarts": "^6.1.0",
|
|
37
37
|
"geopf-extensions-openlayers": "1.0.0-beta.15",
|
|
38
38
|
"leaflet": "^1.9.4",
|
|
@@ -5,6 +5,28 @@
|
|
|
5
5
|
:size
|
|
6
6
|
:with-link
|
|
7
7
|
/>
|
|
8
|
+
<!-- What follows the owner is plain text rather than part of a flex box, so that a
|
|
9
|
+
long key or application name wraps with the sentence it belongs to. -->
|
|
10
|
+
<span v-else-if="actor.class === 'ApiToken'">
|
|
11
|
+
<AvatarWithName
|
|
12
|
+
:user="actor.owner"
|
|
13
|
+
:size
|
|
14
|
+
:with-link
|
|
15
|
+
class="mr-1 align-middle"
|
|
16
|
+
/>
|
|
17
|
+
<span class="text-gray-medium">
|
|
18
|
+
{{ actor.name ? t('via la clé d\'API « {name} »', { name: actor.name }) : t('via une clé d\'API') }}
|
|
19
|
+
</span>
|
|
20
|
+
</span>
|
|
21
|
+
<span v-else-if="actor.class === 'OAuth2Token'">
|
|
22
|
+
<AvatarWithName
|
|
23
|
+
:user="actor.owner"
|
|
24
|
+
:size
|
|
25
|
+
:with-link
|
|
26
|
+
class="mr-1 align-middle"
|
|
27
|
+
/>
|
|
28
|
+
<span class="text-gray-medium">{{ t('via {name}', { name: actor.client.name }) }}</span>
|
|
29
|
+
</span>
|
|
8
30
|
<span
|
|
9
31
|
v-else
|
|
10
32
|
class="inline-flex items-center space-x-1"
|
|
@@ -18,12 +40,20 @@
|
|
|
18
40
|
aria-hidden="true"
|
|
19
41
|
/>
|
|
20
42
|
</span>
|
|
21
|
-
<span
|
|
43
|
+
<span
|
|
44
|
+
v-if="actor.name"
|
|
45
|
+
class="truncate font-bold"
|
|
46
|
+
>{{ actor.name }}</span>
|
|
47
|
+
<span
|
|
48
|
+
v-else
|
|
49
|
+
class="rounded bg-gray-some px-1.5 py-0.5 text-[11px] leading-5 text-gray-medium"
|
|
50
|
+
>{{ t('Moissonnage supprimé') }}</span>
|
|
22
51
|
</span>
|
|
23
52
|
</template>
|
|
24
53
|
|
|
25
54
|
<script setup lang="ts">
|
|
26
55
|
import { RiRobot2Line } from '@remixicon/vue'
|
|
56
|
+
import { useTranslation } from '../../composables/useTranslation'
|
|
27
57
|
import type { ActivityActor } from '../../types/activity'
|
|
28
58
|
import AvatarWithName from '../AvatarWithName.vue'
|
|
29
59
|
|
|
@@ -35,4 +65,6 @@ withDefaults(defineProps<{
|
|
|
35
65
|
size: 12,
|
|
36
66
|
withLink: true,
|
|
37
67
|
})
|
|
68
|
+
|
|
69
|
+
const { t } = useTranslation()
|
|
38
70
|
</script>
|
package/src/types/activity.ts
CHANGED
|
@@ -9,13 +9,31 @@ export type ActivityKey = 'dataset:created' | 'dataset:updated' | 'dataset:delet
|
|
|
9
9
|
| 'user:followed' | 'topic:created' | 'topic:updated'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Who an action is attributed to. Not necessarily a person: harvesting
|
|
13
|
-
*
|
|
12
|
+
* Who an action is attributed to. Not necessarily a person: harvesting acts on its own
|
|
13
|
+
* behalf, an API token or an application's OAuth2 token on behalf of its owner. `class`
|
|
14
|
+
* is the discriminator every API reference carries.
|
|
14
15
|
*/
|
|
15
16
|
export type ActivityActor
|
|
16
17
|
= | UserReference
|
|
17
|
-
| {
|
|
18
|
-
|
|
18
|
+
| {
|
|
19
|
+
class: 'HarvestSource'
|
|
20
|
+
id: string
|
|
21
|
+
/** Null once the source has been purged. */
|
|
22
|
+
name: string | null
|
|
23
|
+
}
|
|
24
|
+
| {
|
|
25
|
+
class: 'ApiToken'
|
|
26
|
+
id: string
|
|
27
|
+
owner: UserReference
|
|
28
|
+
/** Only sent to the token owner and to sysadmins; a token may also have no name. */
|
|
29
|
+
name: string | null
|
|
30
|
+
}
|
|
31
|
+
| {
|
|
32
|
+
class: 'OAuth2Token'
|
|
33
|
+
id: string
|
|
34
|
+
owner: UserReference
|
|
35
|
+
client: { class: 'OAuth2Client', id: string, name: string }
|
|
36
|
+
}
|
|
19
37
|
|
|
20
38
|
export type ActivityExtras = {
|
|
21
39
|
/** Set on the `dataset:resource:*` keys. */
|