dependabot[bot] 23d5b804f4 chore(deps): Bump the react group across 1 directory with 3 updates (#2318)
Bumps the react group with 3 updates in the / directory:
[react-i18next](https://github.com/i18next/react-i18next),
[react-resizable-panels](https://github.com/bvaughn/react-resizable-panels)
and
[@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react).

Updates `react-i18next` from 17.1.13 to 18.0.0
<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.0</h2>
<p>Released together with i18next 27. The migration guide lists every
change with what to do: <a
href="https://react.i18next.com/latest/migrating-v17-to-v18">https://react.i18next.com/latest/migrating-v17-to-v18</a></p>
<h3>Breaking changes</h3>
<ul>
<li>requires i18next 27 (peer <code>&gt;= 27.0.0</code>) and React 18 or
later (peer <code>&gt;= 18.0.0</code>). React 16 and 17 apps stay on
react-i18next 17: on i18next 27, use react-i18next 17.1.13 or later (it
brings the types of the <code>react</code> init options), or 18.
<code>useSyncExternalStore</code> comes from React itself, so
<code>use-sync-external-store</code> is no longer a dependency.</li>
<li><code>Trans</code> output no longer depends on
<code>interpolation.escapeValue</code>: it always decodes HTML entities
after parsing, as <code>IcuTrans</code> does, in text and in attribute
values, both with <code>react.unescape</code> (attribute values used the
built-in decoder before). With i18next's default <code>escapeValue:
true</code>, a value <code>Tom &amp; Jerry</code> rendered as <code>Tom
&amp;amp; Jerry</code> and a date <code>17/12/2025</code> as
<code>17&amp;#x2F;12&amp;#x2F;2025</code>; both now render as written,
and so do entities in the translation itself (<code>&amp;amp;</code>,
<code>&amp;lt;</code>, <code>&amp;nbsp;</code>, ...). Values still
render as text, never as markup (since 17.1.10). The
<code>shouldUnescape</code> prop and
<code>react.transDefaultProps.shouldUnescape</code> are ignored and warn
(<code>DEPRECATED_OPTION</code>, in development and with <code>debug:
true</code>); remove them. Snapshot tests that contain entities inside
<code>Trans</code> output need an update (<a
href="https://redirect.github.com/i18next/react-i18next/issues/1903">#1903</a>,
<a
href="https://redirect.github.com/i18next/react-i18next/issues/1893">#1893</a>).</li>
<li><code>Trans</code> and <code>IcuTrans</code> re-render on language
change by themselves: they subscribe to the <code>react.bindI18n</code>
(default <code>languageChanged</code>) and
<code>react.bindI18nStore</code> events, like
<code>useTranslation</code>. Before, they only updated when a parent
re-rendered (<a
href="https://redirect.github.com/i18next/react-i18next/issues/1710">#1710</a>).
They still neither load translations nor suspend; with a <code>t</code>
prop, that <code>t</code> still decides the language.
<code>TransWithoutContext</code> and <code>IcuTransWithoutContext</code>
stay hook-free.</li>
<li>the <code>react</code> options of an instance stay on that instance.
<code>initReactI18next</code> copied them into module-wide defaults, so
a second instance without <code>react</code> options inherited, for
example, the first one's <code>useSuspense: false</code>. Set them on
every instance, or call <code>setDefaults()</code> once.</li>
<li>the <code>i18n</code> returned by <code>useTranslation</code> (and
passed by <code>withTranslation</code> and <code>Translation</code>)
forwards reads and writes to the instance. It was a copy taken when the
language changed, so after <code>await i18n.changeLanguage('de')</code>
the copy still said <code>en</code>, and properties set on it never
reached the instance. It is still a new object whenever the language
changes, for dependency arrays and the React Compiler. Because the old
object now reads the current language too, a check like
<code>prevProps.i18n.language !== this.props.i18n.language</code> (or
the language of a <code>usePrevious(i18n)</code>) no longer sees a
change: compare the objects (<code>prevProps.i18n !==
this.props.i18n</code>) or keep the previous language yourself.</li>
<li><code>useSSR</code> and <code>withSSR</code> call i18next's
<code>hydrate()</code> instead of writing
<code>resourceStore.data</code>, <code>options.ns</code>,
<code>initializedStoreOnce</code>, <code>isInitialized</code> and
<code>initializedLanguageOnce</code> themselves. Same behavior with real
instances, including the opt-out for cloned instances. Test mocks of
<code>i18n</code> used with <code>useSSR</code>/<code>withSSR</code> now
need a <code>hydrate</code> method, mocks that load before
<code>init()</code> need <code>once</code>, and mocks used with
<code>Trans</code> or <code>IcuTrans</code> need <code>on</code> and
<code>off</code>, since both subscribe to events now (with
<code>bindI18nStore</code> set, also <code>store.on</code> and
<code>store.off</code>): a minimal mock like <code>{ t, options,
language }</code> throws <code>i18n.on is not a function</code>.</li>
<li>the <code>react-i18next/icu.macro</code> Babel macro (deprecated
since 17.0.21) is removed, with the placeholder exports
<code>date</code>, <code>time</code>, <code>number</code>,
<code>select</code>, <code>plural</code> and <code>selectOrdinal</code>.
Write <code>IcuTrans</code> directly.</li>
<li>types: the <code>HTMLAttributes['children']</code> augmentation for
<code>allowObjectInHTMLChildren</code> moved to the opt-in
<code>react-i18next/augment-react</code>. Default installs no longer
change React's DOM types. With <code>allowObjectInHTMLChildren:
true</code>, add <code>import 'react-i18next/augment-react';</code> next
to your <code>CustomTypeOptions</code>; with current
<code>@types/react</code> it needs <code>skipLibCheck: true</code> (<a
href="https://redirect.github.com/i18next/react-i18next/issues/1928">#1928</a>).</li>
<li>types: <code>I18nContext</code> is typed <code>{ i18n: i18n;
defaultNS?: string | string[] } | undefined</code>, as at runtime:
<code>useContext(I18nContext)</code> is <code>undefined</code> outside
an <code>I18nextProvider</code>. <code>getI18n()</code> keeps its
type.</li>
<li>types: react-i18next now declares the <code>react</code> init
options. i18next 27 keeps an empty <code>ReactOptions</code> interface
that react-i18next fills in, so <code>import type { ReactOptions } from
'i18next'</code> keeps working, and <code>ReactOptions</code> is also
exported from <code>react-i18next</code>. The
<code>defaultTransParent</code> docs no longer claim a
<code>'div'</code> default.</li>
<li>the UMD build no longer bundles i18next: it uses the global
<code>i18next</code> (load i18next's UMD build first) and shrinks from
71.3 KB to 26.2 KB minified. The AMD build (<code>dist/amd</code>) is
removed; AMD loaders can use the UMD file.</li>
<li><code>engines.node</code> is <code>&gt;=22</code>, and the build
targets ES2020 syntax with a fixed browser list instead of browserslist
<code>defaults</code>.</li>
</ul>
<h3>Other changes</h3>
<ul>
<li>feat: a <code>react-server</code> export condition for
<code>react-i18next</code>. In a React Server Component, <code>import {
Trans } from 'react-i18next'</code> failed with <code>createContext is
not a function</code>; it now resolves to an entry with
<code>Trans</code> and <code>IcuTrans</code> (the variants without React
context), <code>TransWithoutContext</code>,
<code>IcuTransWithoutContext</code>, <code>nodesToString</code>,
<code>initReactI18next</code>, <code>setI18n</code>/<code>getI18n</code>
and <code>setDefaults</code>/<code>getDefaults</code>. Hooks, HOCs,
<code>Translation</code>, <code>I18nextProvider</code> and the SSR
helpers stay client-only, so importing them there is a build error.
Without an <code>i18n</code> prop, the server <code>Trans</code> and
<code>IcuTrans</code> use the global instance (the one
<code>initReactI18next</code> registered), which is the wrong one with
an instance per request: pass that instance as <code>i18n</code>
(<code>t</code> is optional). A <code>t</code> alone is not enough,
because a <code>t</code> from <code>getFixedT</code> carries no
instance. In development and with <code>debug: true</code> they warn
about it (<code>GLOBAL_INSTANCE_ON_SERVER</code>) (<a
href="https://redirect.github.com/i18next/react-i18next/issues/1759">#1759</a>,
<a
href="https://redirect.github.com/i18next/react-i18next/issues/1840">#1840</a>).</li>
<li>fix(Trans): a component given for a self-closing tag
(<code>&lt;0/&gt;</code>) with children of its own is no longer
remounted on every render. <code>Trans</code> created a new component
type for it each time, so its state and effects were reset.</li>
<li>fix: warnings are deduplicated per i18next instance instead of once
per process, so a second instance reports its own problems. Clones
(<code>cloneInstance()</code>, for example one per request in
i18next-http-middleware) share their parent's, as they share its logger,
so they do not repeat them.</li>
<li>fix: a translation load waiting for <code>init()</code> uses
<code>i18n.once('initialized')</code> instead of removing its listener
with a delay.</li>
<li>fix(types): with <code>keySeparator: false</code> and a key prefix
(<code>useTranslation(ns, { keyPrefix })</code>,
<code>getFixedT</code>), the <code>values</code> of <code>Trans</code>
and <code>IcuTrans</code> are typed from the right key. The prefix and
the key were joined with the text <code>false</code>
(<code>nestedfalsec</code>), so no variables were checked; they are now
joined with <code>.</code>, as <code>getFixedT</code> does.</li>
<li>fix(types): <code>useSSR</code> takes its third argument <code>{
i18n }</code>, and the <code>useTranslation</code> options take
<code>bindI18nStore</code>, as at runtime. <code>ErrorCode</code> lists
<code>I18N_NOT_INITIALIZED</code>, <code>ICU_TRANS_RENDER_ERROR</code>
and <code>GLOBAL_INSTANCE_ON_SERVER</code>.</li>
<li>chore: a <code>files</code> whitelist replaces
<code>.npmignore</code>; <code>@babel/runtime</code> is no longer a
dependency.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/i18next/react-i18next/commit/6b764219a7d7ad62d81487e3ba6435a5fe340814"><code>6b76421</code></a>
18.0.0</li>
<li><a
href="https://github.com/i18next/react-i18next/commit/16c611618207c6b3b1623c5de18ace0d5830a862"><code>16c6116</code></a>
changelog for 18.0.0</li>
<li><a
href="https://github.com/i18next/react-i18next/commit/209c4bea58510c144423e075d95ab73ae9d08ff6"><code>209c4be</code></a>
feat!: react-i18next 18, a major version for i18next 27</li>
<li><a
href="https://github.com/i18next/react-i18next/commit/5ca8c86363091fbdc7672e1120734b5397b2f6be"><code>5ca8c86</code></a>
build</li>
<li>See full diff in <a
href="https://github.com/i18next/react-i18next/compare/v17.1.13...v18.0.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `react-resizable-panels` from 4.19.1 to 4.21.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.21.0</h2>
<ul>
<li>Add <code>TabsetCollapseButton</code> and
<code>TabsetMaximizeButton</code> components, which collapse (or expand)
and maximize (or restore) the tabset they're rendered within, with
<code>aria-expanded</code>/<code>aria-controls</code> and
<code>aria-pressed</code>. They render nothing when the action isn't
available (e.g. maximizing the only tabset). - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/pull/805">#805</a></li>
<li>The <code>children</code>, <code>className</code>,
<code>style</code>, and <code>title</code> props of
<code>TabCloseButton</code>, <code>TabsetDragHandle</code>, and the new
buttons can be functions of the component's state, e.g. <code>{({
isCollapsed }) =&gt; (isCollapsed ? &quot;▸&quot; :
&quot;▾&quot;)}</code>. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/pull/805">#805</a></li>
<li>Fix <code>groupResizeBehavior:
&quot;preserve-pixel-size&quot;</code> panels drifting by a fraction of
a pixel when panels have fractional sizes (e.g. at 150% display
scaling): a <code>Group</code>'s size was measured as the sum of its
panels' rounded sizes, which could be off by a pixel and looked like the
<code>Group</code> being resized. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/804">#804</a></li>
</ul>
<h2>4.20.0</h2>
<ul>
<li>Add floating tabsets to <code>Workspace</code>: tabsets that float
above the layout, listed in the model's new <code>floating</code> field.
Users move them by their headers, resize them by their edges, and drag
tabs into and out of them. The new <code>floatTab</code> and
<code>floatTabset</code> methods create them,
<code>collapseTabset</code> collapses them to their headers, and
<code>moveTabset</code> docks them. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/799">#799</a></li>
<li><code>Workspace</code> tabs (and tabsets) can be dropped at the
edges of the workspace, beside all of the other tabsets (e.g. as a
sidebar or bottom panel). These targets are on by default; turn them off
with <code>disableDrop={({ target }) =&gt; &quot;edge&quot; in
target}</code>. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/800">#800</a></li>
</ul>
<blockquote>
<p>[!WARNING]
<code>TabDropTarget</code> has a new <code>{ edge }</code> variant
without a <code>tabsetId</code>, so check for it (e.g. with
<code>&quot;tabsetId&quot; in target</code>) before reading
<code>target.tabsetId</code>.</p>
</blockquote>
</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.21.0</h2>
<ul>
<li>Add <code>TabsetCollapseButton</code> and
<code>TabsetMaximizeButton</code> components, which collapse (or expand)
and maximize (or restore) the tabset they're rendered within, with
<code>aria-expanded</code>/<code>aria-controls</code> and
<code>aria-pressed</code>. They render nothing when the action isn't
available (e.g. maximizing the only tabset). - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/pull/805">#805</a></li>
<li>The <code>children</code>, <code>className</code>,
<code>style</code>, and <code>title</code> props of
<code>TabCloseButton</code>, <code>TabsetDragHandle</code>, and the new
buttons can be functions of the component's state, e.g. <code>{({
isCollapsed }) =&gt; (isCollapsed ? &quot;▸&quot; :
&quot;▾&quot;)}</code>. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/pull/805">#805</a></li>
<li>Fix <code>groupResizeBehavior:
&quot;preserve-pixel-size&quot;</code> panels drifting by a fraction of
a pixel when panels have fractional sizes (e.g. at 150% display
scaling): a <code>Group</code>'s size was measured as the sum of its
panels' rounded sizes, which could be off by a pixel and looked like the
<code>Group</code> being resized. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/804">#804</a></li>
</ul>
<h2>4.20.0</h2>
<ul>
<li>Add floating tabsets to <code>Workspace</code>: tabsets that float
above the layout, listed in the model's new <code>floating</code> field.
Users move them by their headers, resize them by their edges, and drag
tabs into and out of them. The new <code>floatTab</code> and
<code>floatTabset</code> methods create them,
<code>collapseTabset</code> collapses them to their headers, and
<code>moveTabset</code> docks them. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/799">#799</a></li>
<li><code>Workspace</code> tabs (and tabsets) can be dropped at the
edges of the workspace, beside all of the other tabsets (e.g. as a
sidebar or bottom panel). These targets are on by default; turn them off
with <code>disableDrop={({ target }) =&gt; &quot;edge&quot; in
target}</code>. - <a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/800">#800</a></li>
</ul>
<blockquote>
<p>[!WARNING]
<code>TabDropTarget</code> has a new <code>{ edge }</code> variant
without a <code>tabsetId</code>, so check for it (e.g. with
<code>&quot;tabsetId&quot; in target</code>) before reading
<code>target.tabsetId</code>.</p>
</blockquote>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/0910b4f0450dec5f4906f96eb4518e0e14debe09"><code>0910b4f</code></a>
4.20.0 -&gt; 4.21.0</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/897d1e58dc61a03730504ec24e595376ebf9f47f"><code>897d1e5</code></a>
Fix groupResizeBehavior &quot;preserve-pixel-size&quot; panels drift (<a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/806">#806</a>)</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/3a3282bafae0fb87c691966047adabd6668a4226"><code>3a3282b</code></a>
Add <code>TabsetCollapseButton</code> and
<code>TabsetMaximizeButton</code> components (<a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/805">#805</a>)</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/a918993e9869a46d692cdd66652995f6784ddb7e"><code>a918993</code></a>
4.19.1 -&gt; 4.20.0</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/23f79af265b7ae2f6f9b558462ac168488cc280a"><code>23f79af</code></a>
Floating tabsets can be collapsed (<a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/803">#803</a>)</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/96c0758498d0d993e1cb409e999c6bf158837eaa"><code>96c0758</code></a>
Support floating tabsets (<a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/802">#802</a>)</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/00df28c5e8b04d1f658589d06c3d255df0e10e87"><code>00df28c</code></a>
Tabs (and tabsets) can be dropped at workspace edges (<a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/801">#801</a>)</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/c7a7200cde63af95b5029f728b85a3363d0bab4f"><code>c7a7200</code></a>
4.19.0 -&gt; 4.19.1</li>
<li><a
href="https://github.com/bvaughn/react-resizable-panels/commit/db268f9d0a4b72383218de608387e21ac8ddb005"><code>db268f9</code></a>
Pending 4.19.1 changes (<a
href="https://redirect.github.com/bvaughn/react-resizable-panels/issues/798">#798</a>)</li>
<li>See full diff in <a
href="https://github.com/bvaughn/react-resizable-panels/compare/4.19.1...4.21.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `@vitejs/plugin-react` from 6.2.1 to 6.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite-plugin-react/releases">@​vitejs/plugin-react's
releases</a>.</em></p>
<blockquote>
<h2>plugin-react@6.3.0</h2>
<h3>Make <code>reactCompilerPreset</code> work with
<code>@rolldown/plugin-babel</code>'s <code>parallel</code> option (<a
href="https://redirect.github.com/vitejs/vite-plugin-react/pull/1549">#1549</a>)</h3>
<p><code>reactCompilerPreset</code> now refers to its Babel preset by
module path instead of by function, so it can be sent to worker
threads.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md">@​vitejs/plugin-react's
changelog</a>.</em></p>
<blockquote>
<h2>6.3.0 (2026-11-09)</h2>
<h3>Make <code>reactCompilerPreset</code> work with
<code>@rolldown/plugin-babel</code>'s <code>parallel</code> option (<a
href="https://redirect.github.com/vitejs/vite-plugin-react/pull/1549">#1549</a>)</h3>
<p><code>reactCompilerPreset</code> now refers to its Babel preset by
module path instead of by function, so it can be sent to worker
threads.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/vitejs/vite-plugin-react/commit/0e95069a8f90489da74371c9ad35dfc619c1b72e"><code>0e95069</code></a>
release: plugin-react@6.3.0 (<a
href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/1557">#1557</a>)</li>
<li><a
href="https://github.com/vitejs/vite-plugin-react/commit/8a7d0d4e35ba433dcc02121e3e118303c66fe7b7"><code>8a7d0d4</code></a>
feat(plugin-react): make reactCompilerPreset work with
<code>@​rolldown/plugin-babel</code>...</li>
<li>See full diff in <a
href="https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.3.0/packages/plugin-react">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>
2026-11-12 13:54:30 +00:00
2019-08-03 12:08:54 -04:00
2016-12-03 17:03:39 +01:00
2025-01-21 09:54:19 +01:00
2018-10-20 18:35:35 +02:00
2026-07-12 15:46:30 +03:00
2023-12-20 07:18:13 +02:00
2025-02-25 05:01:15 -05:00
2025-02-25 05:01:15 -05:00
2026-07-12 15:46:30 +03:00

Maputnik logo

Maputnik

GitHub CI status License

A free and open visual editor for the MapLibre GL styles targeted at developers and map designers.

Usage

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!

Design Map from Scratch

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

  1. 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.
  2. 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.json file to review and merge.
  3. 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.

S
Description
An open source visual editor for the 'Mapbox Style Specification'
Readme
324 MiB
Languages
JavaScript 88.5%
SCSS 9.3%
CSS 1.2%
HTML 0.9%
Dockerfile 0.1%