@geops/rvf-mobility-web-component 0.1.101 → 0.1.103
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/CHANGELOG.md +9 -0
- package/index.js +3 -3
- package/package.json +2 -2
- package/src/MobilityMap/MobilityMapAttributes.test.ts +1 -1
- package/src/MobilityMap/MobilityMapAttributes.ts +1 -1
- package/src/MobilityNotifications/MobilityNotificationsAttributes.test.ts +14 -0
- package/src/MobilityNotifications/MobilityNotificationsAttributes.ts +1 -1
- package/tash +0 -58
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.
|
|
5
|
+
"version": "0.1.103",
|
|
6
6
|
"homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"jspdf": "^3.0.4",
|
|
13
13
|
"lodash.debounce": "^4.0.8",
|
|
14
14
|
"maplibre-gl": "5.12.0",
|
|
15
|
-
"mobility-toolbox-js": "3.6.
|
|
15
|
+
"mobility-toolbox-js": "3.6.1",
|
|
16
16
|
"ol": "^10.7.0",
|
|
17
17
|
"preact": "^10.28.0",
|
|
18
18
|
"preact-custom-element": "^4.6.0",
|
|
@@ -22,7 +22,7 @@ describe("MobilityMapAttributes", () => {
|
|
|
22
22
|
describe("default values are set correctly", () => {
|
|
23
23
|
test("apiKey attribute is properly set", () => {
|
|
24
24
|
expect(attributes.apikey.defaultValue).toBe(
|
|
25
|
-
"
|
|
25
|
+
"5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",
|
|
26
26
|
);
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -81,7 +81,7 @@ export type MobilityMapAttributes = Record<
|
|
|
81
81
|
|
|
82
82
|
const attrs: MobilityMapAttributes = {
|
|
83
83
|
apikey: {
|
|
84
|
-
defaultValue: "
|
|
84
|
+
defaultValue: "5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",
|
|
85
85
|
description: `Your ${geopsApiLink}`,
|
|
86
86
|
public: false,
|
|
87
87
|
},
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import mapAttributes from "../MobilityMap/MobilityMapAttributes";
|
|
2
|
+
|
|
1
3
|
import attributes from "./MobilityNotificationsAttributes";
|
|
2
4
|
|
|
3
5
|
describe("MobilityMapAttributes", () => {
|
|
@@ -18,4 +20,16 @@ describe("MobilityMapAttributes", () => {
|
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
22
|
});
|
|
23
|
+
describe("default values are set correctly", () => {
|
|
24
|
+
test("apiKey attribute is properly set", () => {
|
|
25
|
+
expect(attributes.apikey.defaultValue).toBe(
|
|
26
|
+
"5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
test("apiKey attribute is the same as the MobilityMap attribute", () => {
|
|
30
|
+
expect(attributes.apikey.defaultValue).toBe(
|
|
31
|
+
mapAttributes.apikey.defaultValue,
|
|
32
|
+
);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
21
35
|
});
|
|
@@ -18,7 +18,7 @@ export type MobilityNotificationsAttributes = Record<
|
|
|
18
18
|
|
|
19
19
|
const attrs: MobilityNotificationsAttributes = {
|
|
20
20
|
apikey: {
|
|
21
|
-
defaultValue: "
|
|
21
|
+
defaultValue: "5cc87b12d7c5370001c1d655cb6b0a94dc1a4b859313dc211675efd6",
|
|
22
22
|
description: `Your ${geopsApiLink}`,
|
|
23
23
|
public: false,
|
|
24
24
|
},
|
package/tash
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
[1mdiff --git a/src/MobilityMap/MobilityMapAttributes.ts b/src/MobilityMap/MobilityMapAttributes.ts[m
|
|
2
|
-
[1mindex 25279ab..b1c1d8e 100644[m
|
|
3
|
-
[1m--- a/src/MobilityMap/MobilityMapAttributes.ts[m
|
|
4
|
-
[1m+++ b/src/MobilityMap/MobilityMapAttributes.ts[m
|
|
5
|
-
[36m@@ -171,7 +171,7 @@[m [mwhere:[m
|
|
6
|
-
},[m
|
|
7
|
-
lineid: {[m
|
|
8
|
-
description: `An id or a short/long name of a line to highlight. <br/>Ex: S1`,[m
|
|
9
|
-
[31m- public: true,[m
|
|
10
|
-
[32m+[m[32m public: false,[m
|
|
11
|
-
},[m
|
|
12
|
-
lnp: {[m
|
|
13
|
-
defaultValue: "true",[m
|
|
14
|
-
[36m@@ -197,7 +197,7 @@[m [mwhere:[m
|
|
15
|
-
mapsetplanid: {[m
|
|
16
|
-
description:[m
|
|
17
|
-
"An id of the mapset plan to display. Mostly for debugging purposes.",[m
|
|
18
|
-
[31m- public: true,[m
|
|
19
|
-
[32m+[m[32m public: false,[m
|
|
20
|
-
},[m
|
|
21
|
-
mapsettags: {[m
|
|
22
|
-
description: `The ${geopsMapsetApiLink} tags to get the plans from.`,[m
|
|
23
|
-
[36m@@ -210,7 +210,7 @@[m [mwhere:[m
|
|
24
|
-
},[m
|
|
25
|
-
mapsettimestamp: {[m
|
|
26
|
-
description: `The ${geopsMapsetApiLink} timestamp used to load valid standard plan. If not defined it will use the current time.`,[m
|
|
27
|
-
[31m- public: true,[m
|
|
28
|
-
[32m+[m[32m public: false,[m
|
|
29
|
-
},[m
|
|
30
|
-
mapseturl: {[m
|
|
31
|
-
defaultValue: "https://editor.mapset.io/api/v1/",[m
|
|
32
|
-
[36m@@ -256,7 +256,7 @@[m [mwhere:[m
|
|
33
|
-
},[m
|
|
34
|
-
notificationid: {[m
|
|
35
|
-
description: `An id of a notification to show details of.`,[m
|
|
36
|
-
[31m- public: true,[m
|
|
37
|
-
[32m+[m[32m public: false,[m
|
|
38
|
-
},[m
|
|
39
|
-
notificationtenant: {[m
|
|
40
|
-
defaultValue: "rvf",[m
|
|
41
|
-
[36m@@ -342,7 +342,7 @@[m [mwhere:[m
|
|
42
|
-
},[m
|
|
43
|
-
stationid: {[m
|
|
44
|
-
description: `An id or a short/long name of a station to show details of.`,[m
|
|
45
|
-
[31m- public: true,[m
|
|
46
|
-
[32m+[m[32m public: false,[m
|
|
47
|
-
},[m
|
|
48
|
-
stopsurl: {[m
|
|
49
|
-
defaultValue: "https://api.geops.io/stops/v1/",[m
|
|
50
|
-
[36m@@ -361,7 +361,7 @@[m [mwhere:[m
|
|
51
|
-
},[m
|
|
52
|
-
trainid: {[m
|
|
53
|
-
description: `An id of a route to highlight on the map and to show details of.`,[m
|
|
54
|
-
[31m- public: true,[m
|
|
55
|
-
[32m+[m[32m public: false,[m
|
|
56
|
-
},[m
|
|
57
|
-
zoom: {[m
|
|
58
|
-
description: "The zoom level of the map.",[m
|