Files
editor/package.json
T
dependabot[bot] 6ba7271a57 chore(deps-dev): Bump i18next-cli from 1.94.1 to 1.95.1 (#2373)
Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.94.1
to 1.95.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/i18next/i18next-cli/blob/main/CHANGELOG.md">i18next-cli's
changelog</a>.</em></p>
<blockquote>
<h2>1.95.1</h2>
<ul>
<li>fix(extract): a type read through a renaming import (<code>import {
components as api }</code>, <code>import type</code>, <code>import *
as</code>,
re-exports) resolves the names inside it
(<code>Omit&lt;components['schemas']['Foo'], 'type'&gt;</code>) in the
file that declares
it; they were looked up in the importing file, which took another file's
<code>components</code> and extracted its keys
(<a
href="https://redirect.github.com/i18next/i18next-cli/issues/330">#330</a>)</li>
</ul>
<h2>1.95.0</h2>
<p>From a second run of <code>instrument</code> on the dashboard of the
first one, this time all seven of its packages (about
1,200 files), its texts in the code; every rewrite read:</p>
<ul>
<li>fix(instrument): a variable that holds JSX (<code>const link =
&lt;Link …&gt;</code>) and <code>children</code> are never interpolated
into a
<code>t()</code> value, where they showed as <code>[object
Object]</code>; the text stops at them.</li>
<li>fix(instrument): the init file is generated when
<code>i18next</code> shows up only in a string (a setup guide's
snippet), not
in an import or re-export statement; none is written at the root of a
workspace without <code>src</code>, which no app imports
from (a <code>pnpm-workspace.yaml</code> with settings only is no
workspace).</li>
<li>fix(instrument): a string in a TypeScript type is never wrapped
(<code>useState&lt;{ title: 'Hello there' }&gt;()</code>), and no
placeholder is named after an option of <code>t()</code>
(<code>count</code>, <code>context</code>, …).</li>
<li>fix(instrument): selectors of an optional call
(<code>el?.querySelector('h1, h2')</code>) and everything under a
<code>className</code>,
<code>classNames</code>, <code>classes</code> or <code>style</code>
property (<code>classNames: { container: () =&gt; 'btn btn-secondary'
}</code>) stay as they
are; so do strings pushed into an <code>ignore</code> list and a region
code with acronyms (<code>EU VAT</code>, <code>CA GST/HST</code>).</li>
<li>feat(instrument): a component's prop is text when its name is or
ends in <code>label</code>, <code>title</code> or <code>message</code>
(<code>saveLabel</code>), names a button's label
(<code>labelConfirm</code>) or is the <code>text</code> of a component
named for text
(<code>&lt;FieldLabel text=…&gt;</code>), or when its value reads as a
sentence; an icon's <code>aria-label</code> and <code>data-tip</code>
are text; so
are either branch of a choice in a text attribute (<code>data-tip={open
? 'Collapse' : 'Expand'}</code>), a single word under a
text property (<code>{ label: 'has' }</code>) and what a title setter
gets (<code>useDocumentTitle('Projects')</code>).</li>
<li>feat(instrument): module-scope texts are translated when they are
used instead of being skipped: JSX text there
becomes a <code>&lt;Trans&gt;</code> (it translates when it renders; not
in a Suspense <code>fallback</code>), and an object property's plain
text value is read by a getter (<code>label: 'Projects'</code> becomes
<code>get label () { return i18next.t('projects', 'Projects') }</code>).
Left, and named with their lines: constants, entries of an array of
strings, values computed on every read,
properties of an object passed to a module-level call or kept to a type
with <code>satisfies</code>, objects the file changes,
and what code running at import reads, in any instrumented file (also
through a function or class called at module
scope). Review the getters (<code>--dry-run</code> marks them): a map of
data that is sent or stored must stay as it was.</li>
<li>fix(instrument): a property named for a format, a style or an event
(<code>format: 'MMM D, YYYY'</code>, <code>transition</code>,
<code>event</code>,
<code>font</code>, <code>shortcut</code>) and a literal kept as its type
(<code>'on' as const</code>) are no text; a one-line function component
(<code>function App () { return &lt;h1&gt;…&lt;/h1&gt; }</code>) gets
its <code>useTranslation()</code> on a line of its own instead of a
syntax error.</li>
<li>fix(instrument): <code>writeExtractedKeys</code> also writes the
keys of a split text and of the words in a placeholder's value.</li>
<li>fix(instrument): the callback of a <code>.map()</code> (or another
array method) at module scope, and an IIFE, run at import:
their texts no longer get an <code>i18next.t()</code> that returned an
empty string before i18next was initialized.</li>
<li>feat(instrument): the words in a placeholder's value are texts of
their own (<code>name || t('items', 'items')</code>), and a
template literal with one optional part becomes two texts (<code>left ?
t(…, 'uses AI tokens, {{left}} left') : t(…, 'uses AI tokens')</code>)
instead of English words in a placeholder.</li>
<li>feat(instrument): texts that only build data stay: a
<code>mailto:</code> body or another URL part
(<code>encodeURIComponent</code>), a
file's content (<code>new Blob()</code>, <code>new File()</code>,
<code>saveAs()</code>, <code>fs.writeFile()</code>, a zip's
<code>.file(name, data)</code>), also through
variables, as for <code>console</code> calls before.</li>
<li>feat(instrument): in an object of strings, the sibling phrases of a
text are texts too (<code>{ ht: 'by human', tm: 'by translation memory'
}</code>).</li>
<li>feat(instrument): the run names what to look at by hand, with lines:
the module-scope texts left, and the parts of
a sentence (<code>' (via CLI)'</code>, <code>', which needs
{{name}}'</code>); <code>--dry-run</code> marks getters and two-text
rewrites.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/i18next/i18next-cli/commit/32a3c32d8e7e60e3d936bba751fccdf9f56f68e7"><code>32a3c32</code></a>
1.95.1</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/74dd9c816f367e37ab745961bfe904dc76ad6d32"><code>74dd9c8</code></a>
changelog for 1.95.1</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/7c48c1eb2296b60ff140ff565fb92583c78d181e"><code>7c48c1e</code></a>
changelog: <a
href="https://redirect.github.com/i18next/i18next-cli/issues/330">#330</a>
follow-up under Unreleased</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/6d0961ed2ef8f8cea76900011190cbe3ef312190"><code>6d0961e</code></a>
fix: a type read through a renaming import resolves the names inside it
in th...</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/489d846eb041f525fd9d0b1821df5d84f0c7c2d9"><code>489d846</code></a>
1.95.0</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/27bd4fd098cc824db0b88448aa3798afc6a842d6"><code>27bd4fd</code></a>
changelog for 1.95.0</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/dcf8414b224e6687ab77f8183c13f797694a0426"><code>dcf8414</code></a>
instrument: translate module-scope texts when used, keep data texts,
fixes fr...</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/020e3b20d9a3277569921aa594d856e49894b912"><code>020e3b2</code></a>
1.94.3</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/3d41e4cec37d5172f0dfec3936f85a4075c28210"><code>3d41e4c</code></a>
changelog for 1.94.3</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/4b7954f901cf5699a915ae77a18a107a6bc813e9"><code>4b7954f</code></a>
fix: keys from a t() call with context and no count, or with count under
disa...</li>
<li>Additional commits viewable in <a
href="https://github.com/i18next/i18next-cli/compare/v1.94.1...v1.95.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=i18next-cli&package-manager=npm_and_yarn&previous-version=1.94.1&new-version=1.95.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-27 13:54:06 +00:00

151 lines
4.7 KiB
JSON

{
"name": "maputnik",
"version": "3.1.0",
"description": "A MapLibre GL visual style editor",
"type": "module",
"main": "''",
"scripts": {
"start": "vite",
"build": "tsc && vite build --mode=production",
"build-desktop": "tsc && vite build --mode=desktop && cd desktop && make",
"build-linux": "tsc && vite build --mode=desktop && cd desktop && make bin/linux/maputnik",
"i18n:extract": "npx i18next-cli extract",
"lint": "eslint",
"test": "playwright test",
"test-e2e": "playwright test",
"test-unit": "vitest",
"test-unit-ci": "vitest run --coverage --reporter=json",
"lint-css": "stylelint \"src/styles/*.scss\"",
"sort-styles": "jq 'sort_by(.id)' src/config/styles.json > tmp.json && mv tmp.json src/config/styles.json"
},
"repository": {
"type": "git",
"url": "https://github.com/maplibre/maputnik"
},
"author": "Lukas Martinelli",
"license": "MIT",
"homepage": "https://github.com/maplibre/maputnik#readme",
"dependencies": {
"@codemirror/lang-json": "^6.0.2",
"@codemirror/lint": "^6.9.8",
"@codemirror/state": "^6.7.6",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.43.15",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@maplibre/maplibre-gl-geocoder": "^1.9.5",
"@maplibre/maplibre-gl-inspect": "^1.9.0",
"@maplibre/maplibre-gl-style-spec": "^26.11.0",
"array-move": "^4.0.0",
"buffer": "^6.0.3",
"classnames": "^2.5.1",
"codemirror": "^6.0.2",
"color": "^5.0.3",
"detect-browser": "^5.3.0",
"downshift": "^9.5.0",
"events": "^3.3.0",
"file-saver": "^2.0.5",
"i18next": "^27.2.7",
"i18next-browser-languagedetector": "^8.3.1",
"i18next-resources-to-backend": "^1.3.0",
"json-stringify-pretty-compact": "^4.0.0",
"json-to-ast": "^2.1.0",
"lodash": "^4.18.1",
"lodash.capitalize": "^4.2.1",
"lodash.clamp": "^4.0.3",
"lodash.clonedeep": "^4.5.0",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lodash.throttle": "^4.1.1",
"maplibre-gl": "^6.19.0",
"maputnik-design": "github:maputnik/design#172b06c",
"ol": "^10.11.0",
"ol-mapbox-style": "^13.9.0",
"pmtiles": "^4.5.0",
"prop-types": "^15.8.1",
"react": "^19.3.1",
"react-accessible-accordion": "^5.0.1",
"react-aria-menubutton": "^8.0.0",
"react-aria-modal": "^5.0.2",
"react-collapse": "^5.1.1",
"react-color": "^2.19.3",
"react-dom": "^19.3.1",
"react-i18next": "^18.0.3",
"react-icons": "^5.7.0",
"react-markdown": "^10.1.0",
"react-resizable-panels": "^4.24.1",
"reconnecting-websocket": "^4.4.0",
"slugify": "^1.6.9",
"string-hash": "^1.1.3",
"url": "^0.11.4"
},
"jshintConfig": {
"esversion": 6
},
"stylelint": {
"extends": "stylelint-config-recommended-scss",
"rules": {
"no-descending-specificity": null,
"media-feature-name-no-unknown": [
true,
{
"ignoreMediaFeatureNames": [
"prefers-reduced-motion"
]
}
]
}
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@playwright/test": "^1.65.1",
"@stylistic/eslint-plugin": "^6.0.1",
"@types/codemirror": "^5.60.18",
"@types/color": "^4.2.1",
"@types/cors": "^2.8.19",
"@types/file-saver": "^2.0.7",
"@types/geojson": "^7946.0.16",
"@types/json-to-ast": "^2.1.4",
"@types/lodash.capitalize": "^4.2.9",
"@types/lodash.clamp": "^4.0.9",
"@types/lodash.clonedeep": "^4.5.9",
"@types/lodash.get": "^4.4.9",
"@types/lodash.isequal": "^4.5.8",
"@types/lodash.throttle": "^4.1.9",
"@types/randomcolor": "^0.5.9",
"@types/react": "^19.3.0",
"@types/react-aria-menubutton": "^6.2.14",
"@types/react-aria-modal": "^5.0.0",
"@types/react-collapse": "^5.0.4",
"@types/react-color": "^3.0.13",
"@types/react-dom": "^19.3.0",
"@types/string-hash": "^1.1.3",
"@types/wicg-file-system-access": "^2023.10.7",
"@vitejs/plugin-react": "^6.3.0",
"@vitest/coverage-v8": "^5.1.1",
"cors": "^2.8.6",
"eslint": "^10.15.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.8",
"i18next-cli": "^1.95.1",
"istanbul": "^0.4.5",
"istanbul-lib-coverage": "^3.2.2",
"nyc": "^18.0.0",
"postcss": "^8.5.33",
"react-hot-loader": "^4.13.1",
"sass": "^1.108.2",
"stylelint": "^18.1.0",
"stylelint-config-recommended-scss": "^18.0.0",
"stylelint-scss": "^7.5.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.73.0",
"uuid": "^14.0.3",
"vite": "^8.3.8",
"vite-plugin-istanbul": "^9.0.1",
"vitest": "^5.1.1"
}
}