Bumps the react group with 2 updates: [react-i18next](https://github.com/i18next/react-i18next) and [react-resizable-panels](https://github.com/bvaughn/react-resizable-panels). Updates `react-i18next` from 18.0.1 to 18.0.2 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md">react-i18next's changelog</a>.</em></p> <blockquote> <h2>18.0.2</h2> <ul> <li>fix: <code>useTranslation</code>, <code>Trans</code> and <code>IcuTrans</code> re-render for a <code>bindI18nStore</code> event that fires after they rendered but before they subscribed (a bundle added in a parent's layout effect, for example). They kept the old text, because only the events their own subscription received changed their snapshot (<a href="https://redirect.github.com/i18next/react-i18next/issues/1949">#1949</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/react-i18next/commit/96a8573cc97297e2d7b9847b8d5a3cfead72073f"><code>96a8573</code></a> 18.0.2</li> <li><a href="https://github.com/i18next/react-i18next/commit/4244cdabe25044e84230d52500df66575e170c80"><code>4244cda</code></a> changelog for 18.0.2</li> <li><a href="https://github.com/i18next/react-i18next/commit/40ae7d8acdc0705d1620bb680c22cb90016cfd6d"><code>40ae7d8</code></a> fix: re-render for a bindI18nStore event between render and subscribe (<a href="https://redirect.github.com/i18next/react-i18next/issues/1949">#1949</a>)</li> <li><a href="https://github.com/i18next/react-i18next/commit/f97f5f82605c0ddd3ae3af6c0112c33cf7c0ab70"><code>f97f5f8</code></a> docs(README): copyable one-prompt setup for coding agents</li> <li>See full diff in <a href="https://github.com/i18next/react-i18next/compare/v18.0.1...v18.0.2">compare view</a></li> </ul> </details> <br /> Updates `react-resizable-panels` from 4.23.0 to 4.24.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/bvaughn/react-resizable-panels/releases">react-resizable-panels's releases</a>.</em></p> <blockquote> <h2>4.24.0</h2> <ul> <li><code>Workspace</code>: <ul> <li>Moving a tab no longer reloads its iframes, pauses its media, or blurs its focused elements, in browsers that support <code>moveBefore</code> (see <a href="https://caniuse.com/wf-move-before">caniuse</a>). - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/818">#818</a></li> <li>Clicking the selected tab of an expanded collapsible (or floating) tabset, or pressing Enter or Space on it, now collapses the tabset (reported as <code>"collapse"</code>), like the tool windows of an IDE, unless the workspace is <code>disabled</code>; previously it did nothing. Clicking the selected tab of a floating tabset that's partly covered by another only brings it to the front. - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/814">#814</a></li> <li>In a <code>disabled</code> workspace, clicking a tab (or the empty space in the header) of a collapsed tabset no longer expands it (clicking a tab only selects it). - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/814">#814</a></li> <li>Tabs dropped at an edge of the workspace that a collapsed tabset lines (e.g. a sidebar collapsed to a strip of tabs) are added to that tabset, rather than beside all of the other tabsets. These targets have an <code>index</code>, so <code>disableDrop={({ target }) => "edge" in target}</code> doesn't reject them. - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/814">#814</a></li> </ul> </li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/bvaughn/react-resizable-panels/blob/main/CHANGELOG.md">react-resizable-panels's changelog</a>.</em></p> <blockquote> <h2>4.24.0</h2> <ul> <li><code>Workspace</code>: <ul> <li>Moving a tab no longer reloads its iframes, pauses its media, or blurs its focused elements, in browsers that support <code>moveBefore</code> (see <a href="https://caniuse.com/wf-move-before">caniuse</a>). - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/818">#818</a></li> <li>Clicking the selected tab of an expanded collapsible (or floating) tabset, or pressing Enter or Space on it, now collapses the tabset (reported as <code>"collapse"</code>), like the tool windows of an IDE, unless the workspace is <code>disabled</code>; previously it did nothing. Clicking the selected tab of a floating tabset that's partly covered by another only brings it to the front. - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/814">#814</a></li> <li>In a <code>disabled</code> workspace, clicking a tab (or the empty space in the header) of a collapsed tabset no longer expands it (clicking a tab only selects it). - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/814">#814</a></li> <li>Tabs dropped at an edge of the workspace that a collapsed tabset lines (e.g. a sidebar collapsed to a strip of tabs) are added to that tabset, rather than beside all of the other tabsets. These targets have an <code>index</code>, so <code>disableDrop={({ target }) => "edge" in target}</code> doesn't reject them. - <a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/814">#814</a></li> </ul> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/bvaughn/react-resizable-panels/commit/4221da1b3e2ea23727cef552e4c5aea540774515"><code>4221da1</code></a> 4.23.0 -> 4.24.0</li> <li><a href="https://github.com/bvaughn/react-resizable-panels/commit/cfb72c26096a27a937b7a0b5be7789b465b8d1b6"><code>cfb72c2</code></a> Speeds up the two slowest CI workflows (Playwright and Vitest) (<a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/843">#843</a>)</li> <li><a href="https://github.com/bvaughn/react-resizable-panels/commit/5920073a4acb7dc911c9143ab21d13e93c9b413f"><code>5920073</code></a> Restructured Workspace docs (<a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/842">#842</a>)</li> <li><a href="https://github.com/bvaughn/react-resizable-panels/commit/0cd6905fd59a857528ae61bacaa2387d3eae7725"><code>0cd6905</code></a> Workspace: edge bar support (<a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/841">#841</a>)</li> <li><a href="https://github.com/bvaughn/react-resizable-panels/commit/41418221b80cfb8c6651856f5ffabd272017bac8"><code>4141822</code></a> <code>Workspace</code>: use moveBefore to avoid losing DOM state (<a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/840">#840</a>)</li> <li><a href="https://github.com/bvaughn/react-resizable-panels/commit/6b22da07c2fa712327059f5c0848e7c90d0fc3c3"><code>6b22da0</code></a> 4.22.1 -> 4.23.0</li> <li><a href="https://github.com/bvaughn/react-resizable-panels/commit/3a56451ff8bf560cc57f63a8299c1728929bfb78"><code>3a56451</code></a> Pending 4.23.0 changes (<a href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/838">#838</a>)</li> <li>See full diff in <a href="https://github.com/bvaughn/react-resizable-panels/compare/4.23.0...4.24.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Maputnik
A free and open visual editor for the MapLibre GL styles targeted at developers and map designers.
Usage
- 🔗 Design your maps online at https://www.maplibre.org/maputnik/ (all in local storage)
- 🔗 Use the Maputnik CLI for local style development
- In a Docker, run this command and browse to http://localhost:8888, Ctrl+C to stop the server.
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main
To see the CLI options (for example file watching or style serving) run:
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main --help
You might need to mount a volume (-v) to be able to use these options.
Documentation
The documentation can be found in the Wiki. You are welcome to collaborate!
- 🔗 Study the Maputnik Wiki
- 📹 Design a map from Scratch https://youtu.be/XoDh0gEnBQo
Develop
Maputnik is written in typescript and is using React and MapLibre GL JS.
We ensure building and developing Maputnik works with the current active LTS Node.js version and above.
Check out our Internationalization guide for UI text related changes.
Getting Involved
Join the #maplibre or #maputnik slack channel at OSMUS: get an invite at https://slack.openstreetmap.us/ Read the the below guide in order to get familiar with how we do things around here.
Install the deps, start the dev server and open the web browser on http://localhost:8888/.
# install dependencies
npm install
# start dev server
npm run start
If you want Maputnik to be accessible externally use the --host option:
# start externally accessible dev server
npm run start -- --host 0.0.0.0
The build process will watch for changes to the filesystem, rebuild and autoreload the editor.
npm run build
Lint the JavaScript code.
# run linter
npm run lint
npm run lint-css
npm run sort-styles
Tests
End-to-end tests
For E2E testing we use Playwright. The tests live in the e2e directory and drive the app through the MaputnikDriver page object.
The first time you run the tests, install the browser:
npx playwright install chromium
Playwright automatically starts the dev server (npm run start) for you, so you can just run:
npm run test
Some useful options:
# see the tests run in a headed browser
npm run test -- --headed
# run a single spec / filter by title
npm run test -- e2e/map.spec.ts
npm run test -- -g "zoom level"
# open the interactive UI mode
npx playwright test --ui
Running the E2E tests also produces a code-coverage report in coverage/ (collected via istanbul instrumentation of the dev server).
Unit & component tests
Unit tests and component tests run with Vitest; component tests (*.browser.test.tsx) use Vitest's browser mode with the Playwright provider.
npm run test-unit
Release process
- Review
CHANGELOG.md- Double-check that all changes included in the release are appropriately documented.
- To-be-released changes should be under the "main" header.
- Commit any final changes to the changelog.
- Run Create bump version PR by manual workflow dispatch and set the version number in the input. This will create a PR that changes the changelog and
package.jsonfile to review and merge. - Once merged, an automatic process will kick in and creates a GitHub release and uploads release assets.
Sponsors
Thanks to the supporters of the Kickstarter campaign. This project would not be possible without these commercial and individual sponsors. You can see this file's history for previous sponsors of the original Maputnik repo. Read more about the MapLibre Sponsorship Program at https://maplibre.org/sponsors/.
License
Maputnik is licensed under MIT and is Copyright (c) Lukas Martinelli and Maplibre contributors. As contributor please take extra care of not violating any Mapbox trademarks. Do not get inspired by other map studios and make your own decisions for a good style editor.
