@geops/rvf-mobility-web-component 0.1.120 → 0.1.121

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@geops/rvf-mobility-web-component",
3
3
  "license": "UNLICENSED",
4
4
  "description": "Web components for rvf in the domains of mobility and logistics.",
5
- "version": "0.1.120",
5
+ "version": "0.1.121",
6
6
  "homepage": "https://rvf-mobility-web-component.vercel.app/",
7
7
  "type": "module",
8
8
  "main": "index.js",
@@ -12,7 +12,7 @@
12
12
  "jspdf": "^4.1.0",
13
13
  "lodash.debounce": "^4.0.8",
14
14
  "maplibre-gl": "5.12.0",
15
- "mobility-toolbox-js": "3.6.8",
15
+ "mobility-toolbox-js": "3.6.9",
16
16
  "ol": "^10.8.0",
17
17
  "preact": "^10.28.4",
18
18
  "preact-custom-element": "^4.6.0",
@@ -114,6 +114,7 @@ function NotificationDetails({
114
114
  {publicationsToDisplay?.map(
115
115
  ({
116
116
  id,
117
+ infoLinks,
117
118
  publicationLines,
118
119
  publicationStops,
119
120
  textualContentLarge,
@@ -239,39 +240,21 @@ function NotificationDetails({
239
240
  }}
240
241
  />
241
242
  )}
242
- {!!textualContentMultilingual?.images?.length && (
243
- <div className="flex flex-wrap gap-2">
244
- {textualContentMultilingual.images.map(
245
- ({ image: { absoluteUrl, label } }) => {
246
- return (
247
- <img
248
- alt={label}
249
- key={absoluteUrl + label}
250
- src={absoluteUrl}
251
- title={label}
252
- />
253
- );
254
- },
255
- )}
256
- </div>
257
- )}
258
- {!!textualContentMultilingual?.infoLinks?.length && (
243
+ {!!infoLinks?.length && (
259
244
  <div className={"space-y-1"}>
260
- {textualContentMultilingual.infoLinks.map(
261
- ({ label, uri }) => {
262
- const title = label?.[localeToUse] || uri || "";
263
- return (
264
- <Link
265
- className={"block"}
266
- href={uri}
267
- key={uri}
268
- title={title}
269
- >
270
- {title}
271
- </Link>
272
- );
273
- },
274
- )}
245
+ {infoLinks.map(({ label, uri }) => {
246
+ const title = label?.[localeToUse] || uri || "";
247
+ return (
248
+ <Link
249
+ className={"block"}
250
+ href={uri}
251
+ key={uri}
252
+ title={title}
253
+ >
254
+ {title}
255
+ </Link>
256
+ );
257
+ })}
275
258
  </div>
276
259
  )}
277
260
  {!!pubLines?.length && (
@@ -159,6 +159,7 @@ function RvfSharedMobilityLayerGroup(props: GroupOptions) {
159
159
  );
160
160
  },
161
161
  maplibreLayer: baseLayer,
162
+ minZoom: 12,
162
163
  name: LAYERS_NAMES.bikeFrelo,
163
164
  styleLayersFilter: ({ metadata }) => {
164
165
  return metadata?.["rvf.filter"] === "bike.frelo";
@@ -125,6 +125,7 @@ function SituationDetails({
125
125
  {publicationsToDisplay?.map(
126
126
  ({
127
127
  id,
128
+ infoLinks,
128
129
  publicationLines,
129
130
  publicationStops,
130
131
  textualContentLarge,
@@ -302,35 +303,16 @@ function SituationDetails({
302
303
  }}
303
304
  />
304
305
  )}
305
- {!!textualContentMultilingual?.images?.length && (
306
- <div className="flex flex-wrap gap-2">
307
- {textualContentMultilingual.images.map(
308
- ({ image: { absoluteUrl, label } }) => {
309
- return (
310
- <img
311
- alt={label}
312
- className={"h-fit"}
313
- key={absoluteUrl + label}
314
- src={absoluteUrl}
315
- title={label}
316
- />
317
- );
318
- },
319
- )}
320
- </div>
321
- )}
322
- {!!textualContentMultilingual?.infoLinks?.length && (
306
+ {!!infoLinks?.length && (
323
307
  <div>
324
- {textualContentMultilingual.infoLinks.map(
325
- ({ label, uri }) => {
326
- const title = label?.[localeToUse] || uri || "";
327
- return (
328
- <Link href={uri} key={uri} title={title}>
329
- {title}
330
- </Link>
331
- );
332
- },
333
- )}
308
+ {infoLinks.map(({ label, uri }) => {
309
+ const title = label?.[localeToUse] || uri || "";
310
+ return (
311
+ <Link href={uri} key={uri} title={title}>
312
+ {title}
313
+ </Link>
314
+ );
315
+ })}
334
316
  </div>
335
317
  )}
336
318