@geops/rvf-mobility-web-component 0.1.9 → 0.1.10

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.
@@ -0,0 +1,37 @@
1
+ # This is a comment.
2
+ # Each line is a file pattern followed by one or more owners.
3
+
4
+ # These owners will be the default owners for everything in
5
+ # the repo. Unless a later match takes precedence,
6
+ # @global-owner1 and @global-owner2 will be requested for
7
+ # review when someone opens a pull request.
8
+ * @danji90 @friedjoff @oterral
9
+
10
+ # Order is important; the last matching pattern takes the most
11
+ # precedence. When someone opens a pull request that only
12
+ # modifies JS files, only @js-owner and not the global
13
+ # owner(s) will be requested for a review.
14
+ # *.js @js-owner
15
+
16
+ # You can also use email addresses if you prefer. They'll be
17
+ # used to look up users just like we do for commit author
18
+ # emails.
19
+ # *.go docs@example.com
20
+
21
+ # In this example, @doctocat owns any files in the build/logs
22
+ # directory at the root of the repository and any of its
23
+ # subdirectories.
24
+ # /build/logs/ @doctocat
25
+
26
+ # The `docs/*` pattern will match files like
27
+ # `docs/getting-started.md` but not further nested files like
28
+ # `docs/build-app/troubleshooting.md`.
29
+ # docs/* docs@example.com
30
+
31
+ # In this example, @octocat owns any file in an apps directory
32
+ # anywhere in your repository.
33
+ # apps/ @octocat
34
+
35
+ # In this example, @doctocat owns any file in the `/docs`
36
+ # directory in the root of your repository.
37
+ # /docs/ @doctocat
@@ -0,0 +1,36 @@
1
+ name: Check PR title
2
+ on:
3
+ pull_request:
4
+ types:
5
+ - opened
6
+ - reopened
7
+ - edited
8
+ - synchronize
9
+
10
+ # permissions for dependabot PRs
11
+ permissions:
12
+ actions: read
13
+ checks: read
14
+ contents: read
15
+ deployments: read
16
+ id-token: write
17
+ issues: read
18
+ discussions: read
19
+ packages: read
20
+ pages: read
21
+ pull-requests: read
22
+ repository-projects: read
23
+ security-events: read
24
+ statuses: write
25
+
26
+ jobs:
27
+ lint:
28
+ runs-on: ubuntu-latest
29
+ steps:
30
+ - uses: aslafy-z/conventional-pr-title-action@v3
31
+ with:
32
+ success-state: Title follows the specification.
33
+ failure-state: Title does not follow the specification.
34
+ context-name: conventional-pr-title
35
+ env:
36
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.10](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.9...v0.1.10) (2024-12-05)
6
+
7
+
8
+ ### Features
9
+
10
+ * add conventional pr title workflow ([711af06](https://github.com/geops/rvf-mobility-web-component/commit/711af0666a0882050f5e8aa9b5d8bb09c0e7d1c2))
11
+ * add extent and maxextent attribute ([89675e0](https://github.com/geops/rvf-mobility-web-component/commit/89675e09cbbfd07e1a0c19accdb6eb226b335392))
12
+ * add wfs layer ([#5](https://github.com/geops/rvf-mobility-web-component/issues/5)) ([48aa20c](https://github.com/geops/rvf-mobility-web-component/commit/48aa20cf07f50e3cd1cde977e462d617e824c5b5))
13
+ * add zoom buttons ([#6](https://github.com/geops/rvf-mobility-web-component/issues/6)) ([25c7574](https://github.com/geops/rvf-mobility-web-component/commit/25c75749cce225b5c331191a46e2455f1e3141b7))
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * add extent and maxexten in doc and update deps ([aae94c4](https://github.com/geops/rvf-mobility-web-component/commit/aae94c47562b6ae3d797a6d114978c294836cf67))
19
+ * block extent on rvf data ([1d77f73](https://github.com/geops/rvf-mobility-web-component/commit/1d77f736e6177f3999df1750c56e4abd9011649f))
20
+ * constrain only center when maxextent is defined ([47c3ba8](https://github.com/geops/rvf-mobility-web-component/commit/47c3ba8a2c9f48a2fcc3f2d87757ab71aded22a1))
21
+ * constraint to max extent ([a052df1](https://github.com/geops/rvf-mobility-web-component/commit/a052df1378e5478fc48c90908400f58394501baf))
22
+ * constraint to max extent ([8d113e6](https://github.com/geops/rvf-mobility-web-component/commit/8d113e6f139d8b8fe3950e4d894f673b41e750f0))
23
+ * fix default css in code example ([85f5ce9](https://github.com/geops/rvf-mobility-web-component/commit/85f5ce957f74c8a0c5f1939180bbe3dab9c71ff3))
24
+ * remove default value ([0a2e48a](https://github.com/geops/rvf-mobility-web-component/commit/0a2e48ad70e6d93e8281fab5eee92e2540bfc9f3))
25
+ * use maps prod url ([d3bb0d2](https://github.com/geops/rvf-mobility-web-component/commit/d3bb0d22aac819d866c3fe02ab8373f7743197f4))
26
+
5
27
  ### [0.1.9](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.8...v0.1.9) (2024-12-04)
6
28
 
7
29
 
package/README.md CHANGED
@@ -34,8 +34,10 @@ Here an exhaustive list of the `<geops-mobility>` web component attributes avail
34
34
  - [`apikey="YOUR_API_KEY"`](https://mobility-web-component.geops.io/?apikey=YOUR_API_KEY): your [geOps API key](https://developer.geops.io/).
35
35
  - [`baselayer="travic_v2"`](https://mobility-web-component.geops.io/?baselayer=travic_v2): the style's name from the [geOps Maps API](https://developer.geops.io/apis/maps) (base_dark_v2, base_bright_v2, ...). Default to `travic_v2`.
36
36
  - [`center="831634,5933959"`](https://mobility-web-component.geops.io/?center=831634,5933959): the center of the map in EPSG:3857 coordinates. Default to `831634,5933959` (Bern).
37
+ - [`extent="830634,5923959,831634,5933959"`](https://mobility-web-component.geops.io/?extent=830634,5923959,831634,5933959): the extent of the map of the map in EPSG:3857 coordinates. It has the priority over `center` and `zoom` attributes.
37
38
  - [`geolocation="false"`](https://mobility-web-component.geops.io/?geolocation=false): display the geolocation button or not (true or false). Default to true.
38
- - [`mapsurl="https://maps.geops.io"`](https://mobility-web-component.geops.io/?mapsurl=https://maps.geops.io): the [geOps Maps API](https://developer.geops.io/apis/maps) url to use. Default to `https://maps.geops.io`.
39
+ - [`mapsurl="https://maps.geops.io"`](https://mobility-web-component.geops.io/?mapsurl=https://maps.geops.io): the [geOps Maps API](https://developer.geops.io/apis/maps) url to use.Default to `https://maps.geops.io`.
40
+ - [`maxextent="830634,5923959,831634,5933959"`](https://mobility-web-component.geops.io/?extent=830634,5923959,831634,5933959): constraint the map in a specific extent in EPSG:3857 coordinates, the user can not navigate outside this extent.
39
41
  - [`maxzoom="14"`](https://mobility-web-component.geops.io/?maxzoom=14): define the max zoom level of the map.
40
42
  - [`minzoom="2"`](https://mobility-web-component.geops.io/?minzoom=2): define the min zoom level of the map.
41
43
  - [`mots="rail,bus"`](https://mobility-web-component.geops.io/?mots=rail,bus): list of commas separated mots to display on the Realtime layer ( rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car).
package/doc/package.json CHANGED
@@ -7,10 +7,10 @@
7
7
  "@emotion/react": "^11.13.5",
8
8
  "@emotion/styled": "^11.13.5",
9
9
  "@geops/geops-ui": "^0.3.4",
10
- "@mui/icons-material": "^6.1.9",
11
- "@mui/material": "^6.1.9",
10
+ "@mui/icons-material": "^6.1.10",
11
+ "@mui/material": "^6.1.10",
12
12
  "@mui/material-nextjs": "^6.1.9",
13
- "@mui/styles": "^6.1.9",
13
+ "@mui/styles": "^6.1.10",
14
14
  "next": "15.0.3",
15
15
  "prismjs": "^1.29.0",
16
16
  "react": "^18",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.10.1",
23
- "@types/react": "^18.3.12",
23
+ "@types/react": "^18.3.13",
24
24
  "@types/react-dom": "^18",
25
25
  "@types/react-syntax-highlighter": "^15.5.13",
26
26
  "eslint": "^8",
@@ -28,7 +28,7 @@
28
28
  "eslint-config-prettier": "^9.1.0",
29
29
  "generact": "^0.4.0",
30
30
  "postcss": "^8.4.49",
31
- "tailwindcss": "^3.4.15",
31
+ "tailwindcss": "^3.4.16",
32
32
  "typescript": "^5.7.2"
33
33
  },
34
34
  "scripts": {
@@ -36,6 +36,16 @@ const attrsConfig: Record<string, AttrConfig> = {
36
36
  ),
37
37
  type: "textfield",
38
38
  },
39
+ extent: {
40
+ description: (
41
+ <Typography>
42
+ The extent of the map in EPSG:3857 coordinates (ex:
43
+ 830634,5923959,831634,5933959). It has the priority over center and zoom
44
+ attributes.
45
+ </Typography>
46
+ ),
47
+ type: "textfield",
48
+ },
39
49
  geolocation: {
40
50
  defaultValue: "true",
41
51
  description: (
@@ -54,6 +64,15 @@ const attrsConfig: Record<string, AttrConfig> = {
54
64
  ),
55
65
  type: "textfield",
56
66
  },
67
+ maxextent: {
68
+ description: (
69
+ <Typography>
70
+ Constraint the map in a specific extent in EPSG:3857 coordinates, the
71
+ user can not navigate outside this extent.
72
+ </Typography>
73
+ ),
74
+ type: "textfield",
75
+ },
57
76
  maxzoom: {
58
77
  description: <Typography>Define the max zoom level of the map.</Typography>,
59
78
  props: {
package/index.html CHANGED
@@ -234,7 +234,7 @@
234
234
  let codeText = "";
235
235
  codeText = `&lt;script\n\ttype="module"\n\tsrc="https://www.unpkg.com/@geops/rvf-mobility-web-component"&gt;
236
236
  &lt;/script&gt;
237
- &lt;geops-mobility style="height:600px;width:100%;" `;
237
+ &lt;geops-mobility style="display:block;height:600px;width:100%;" `;
238
238
 
239
239
  attrs.forEach((key) => {
240
240
  if (key == "apikey") {