mirror of
https://github.com/maputnik/editor.git
synced 2026-10-23 03:13:45 +00:00
Bumps the react group with 3 updates in the / directory: [react](https://github.com/react/react/tree/HEAD/packages/react), [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom) and [react-i18next](https://github.com/i18next/react-i18next). Updates `react` from 19.3.0 to 19.3.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/react/react/releases">react's releases</a>.</em></p> <blockquote> <h2>19.3.1 (October 14th, 2026)</h2> <h2>React Server Components</h2> <ul> <li>Improve transport protocol (<a href="https://redirect.github.com/facebook/react/pull/37845">#37845</a> by <a href="https://github.com/unstubbable"><code>@unstubbable</code></a> and <a href="https://github.com/eps1lon"><code>@eps1lon</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/react/react/commit/61aa00df822d0eb76d0362eb8b6fdd3527693efe"><code>61aa00d</code></a> [19.3.x][Flight] Improve transport protocol (<a href="https://github.com/react/react/tree/HEAD/packages/react/issues/37845">#37845</a>)</li> <li>See full diff in <a href="https://github.com/react/react/commits/v19.3.1/packages/react">compare view</a></li> </ul> </details> <br /> Updates `react-dom` from 19.3.0 to 19.3.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/react/react/releases">react-dom's releases</a>.</em></p> <blockquote> <h2>19.3.1 (October 14th, 2026)</h2> <h2>React Server Components</h2> <ul> <li>Improve transport protocol (<a href="https://redirect.github.com/facebook/react/pull/37845">#37845</a> by <a href="https://github.com/unstubbable"><code>@unstubbable</code></a> and <a href="https://github.com/eps1lon"><code>@eps1lon</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/react/react/commit/61aa00df822d0eb76d0362eb8b6fdd3527693efe"><code>61aa00d</code></a> [19.3.x][Flight] Improve transport protocol (<a href="https://github.com/react/react/tree/HEAD/packages/react-dom/issues/37845">#37845</a>)</li> <li>See full diff in <a href="https://github.com/react/react/commits/v19.3.1/packages/react-dom">compare view</a></li> </ul> </details> <br /> Updates `react-i18next` from 17.0.16 to 17.0.19 <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>17.0.19</h2> <ul> <li>fix: <code>useTranslation</code> with an inline selector <code>keyPrefix</code> (<code>useTranslation('ns', { keyPrefix: ($) => $.role })</code>) returned a new <code>t</code> on every render, so every effect, <code>useCallback</code> and <code>useMemo</code> depending on <code>t</code> ran again each time. The cached <code>t</code> was compared against the <code>keyPrefix</code> function itself, and an inline arrow is a new function on every render. It is now compared against the key the selector resolves to (with the same options and namespace list <code>getFixedT</code> resolves it with), so <code>t</code> keeps its identity as long as the resolved prefix does, just like a string <code>keyPrefix</code>. A selector that resolves to a different key still gets a new <code>t</code>, and i18next still resolves the selector on each <code>t</code> call as before. Fixes <a href="https://redirect.github.com/i18next/react-i18next/issues/1936">#1936</a>.</li> <li>fix: <code>useTranslation</code> kept returning the previous <code>t</code> when only the namespace (<code>useTranslation('a')</code> → <code>useTranslation('b')</code>) or only the i18n instance (another instance with the same language, via props or <code>I18nextProvider</code>) changed on a mounted component. That <code>t</code> kept resolving against the old namespace or instance until something else (the language, the ready state, a bound i18n event) produced a new one. Both are now part of the check that decides whether the cached <code>t</code> can be reused.</li> </ul> <h2>17.0.18</h2> <ul> <li>fix(Trans): with <code>shouldUnescape</code>, the default <code>unescape</code> now turns <code>&nbsp;</code> and <code>&[#160](https://github.com/i18next/react-i18next/issues/160);</code> into a no-break space (U+00A0) instead of a regular space (U+0020). The regular space dropped what the entity is for: <code>u&nbsp;nás</code> or <code>10&nbsp;km</code> could wrap across lines, and consecutive <code>&nbsp;</code>s collapsed into one space. This also matches <code>IcuTrans</code>, whose entity decoder already mapped <code>&nbsp;</code> to U+00A0. Compatibility note: only affects <code>shouldUnescape</code>; snapshots or exact <code>textContent</code> comparisons of such text now contain U+00A0 (Testing Library's default normalizer still matches it as a space). A custom <code>react.unescape</code> function can restore the old mapping for text nodes. Thanks <a href="https://github.com/lprnmns"><code>@lprnmns</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1935">#1935</a>).</li> </ul> <h2>17.0.17</h2> <ul> <li>perf: <code>useTranslation</code> no longer unsubscribes and resubscribes its i18n listeners on every render. The <code>subscribe</code> callback handed to <code>useSyncExternalStore</code> depended on the merged options object, which is rebuilt whenever <code>props</code> is a new object: with no options (the <code>{}</code> default), with options passed inline (<code>useTranslation('ns', { keyPrefix })</code>), and through <code>withTranslation</code> and <code><Translation></code>. A new <code>subscribe</code> makes React resubscribe, so each render of each caller ran <code>i18n.off</code> and <code>i18n.on</code> in an extra effect. It now depends only on the instance and the <code>bindI18n</code>/<code>bindI18nStore</code> event names. No updates were ever missed, because React re-checks the snapshot after resubscribing; this only removes the churn, which adds up with many mounted components that re-render often. Reported via <a href="https://redirect.github.com/i18next/next-i18next/issues/2349">next-i18next#2349</a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/react-i18next/commit/d576d09cbebb9e2fc7a52a4cd6fe80793459cdfb"><code>d576d09</code></a> 17.0.19</li> <li><a href="https://github.com/i18next/react-i18next/commit/d69464b4c4346309c530c9c5777191954f9842f0"><code>d69464b</code></a> build</li> <li><a href="https://github.com/i18next/react-i18next/commit/36e327ac48e5095d0313f8b3a39151e5ad3fc32f"><code>36e327a</code></a> fix(useTranslation): keep t stable for an inline selector keyPrefix</li> <li><a href="https://github.com/i18next/react-i18next/commit/f17e70812944aa767482799cfbbaaf4a3d6a5d72"><code>f17e708</code></a> 17.0.18</li> <li><a href="https://github.com/i18next/react-i18next/commit/b799c190f66472e9c518d5a758a42302f8f12cea"><code>b799c19</code></a> build, changelog for 17.0.18</li> <li><a href="https://github.com/i18next/react-i18next/commit/7a55f5620d0ea0be0b3ab0269a605fd343519e92"><code>7a55f56</code></a> fix: unescape and &<a href="https://redirect.github.com/i18next/react-i18next/issues/160">#160</a>; to a no-break space (<a href="https://redirect.github.com/i18next/react-i18next/issues/1935">#1935</a>)</li> <li><a href="https://github.com/i18next/react-i18next/commit/511e1f24ccb152bad43b592b147310614252bff0"><code>511e1f2</code></a> 17.0.17</li> <li><a href="https://github.com/i18next/react-i18next/commit/699eae31bec8379ccdbd68060d921b6f9ada7605"><code>699eae3</code></a> build</li> <li><a href="https://github.com/i18next/react-i18next/commit/5a88fe6090fc2f14aac97bb6dfcc7c89094aee28"><code>5a88fe6</code></a> perf(useTranslation): stop resubscribing the i18n listeners on every render</li> <li><a href="https://github.com/i18next/react-i18next/commit/c4ee2c94ef8450499c46c5007c775de96f7528d3"><code>c4ee2c9</code></a> build</li> <li>See full diff in <a href="https://github.com/i18next/react-i18next/compare/v17.0.16...v17.0.19">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
153 lines
5.0 KiB
JSON
153 lines
5.0 KiB
JSON
{
|
|
"name": "maputnik",
|
|
"version": "3.1.0",
|
|
"description": "A MapLibre GL visual style editor",
|
|
"type": "module",
|
|
"main": "''",
|
|
"scripts": {
|
|
"copy-rtl-text-plugin": "mkdir -p public && cp -p node_modules/@mapbox/mapbox-gl-rtl-text/dist/mapbox-gl-rtl-text.js public/",
|
|
"start": "npm run copy-rtl-text-plugin && vite",
|
|
"build": "npm run copy-rtl-text-plugin && tsc && vite build --mode=production",
|
|
"build-desktop": "npm run copy-rtl-text-plugin && tsc && vite build --mode=desktop && cd desktop && make",
|
|
"build-linux": "npm run copy-rtl-text-plugin && 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.7",
|
|
"@codemirror/state": "^6.7.6",
|
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
"@codemirror/view": "^6.43.14",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@mapbox/mapbox-gl-rtl-text": "^0.4.0",
|
|
"@maplibre/maplibre-gl-geocoder": "^1.9.4",
|
|
"@maplibre/maplibre-gl-inspect": "^1.9.0",
|
|
"@maplibre/maplibre-gl-style-spec": "^26.4.4",
|
|
"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.4.0",
|
|
"events": "^3.3.0",
|
|
"file-saver": "^2.0.5",
|
|
"i18next": "^26.4.7",
|
|
"i18next-browser-languagedetector": "^8.2.1",
|
|
"i18next-resources-to-backend": "^1.2.3",
|
|
"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.14.0",
|
|
"maputnik-design": "github:maputnik/design#172b06c",
|
|
"ol": "^10.11.0",
|
|
"ol-mapbox-style": "^13.8.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": "^17.0.19",
|
|
"react-icons": "^5.7.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-resizable-panels": "^4.14.5",
|
|
"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.64.1",
|
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
"@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.1.2",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"cors": "^2.8.6",
|
|
"eslint": "^10.12.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
"i18next-cli": "^1.75.3",
|
|
"istanbul": "^0.4.5",
|
|
"istanbul-lib-coverage": "^3.2.2",
|
|
"nyc": "^18.0.0",
|
|
"postcss": "^8.5.30",
|
|
"react-hot-loader": "^4.13.1",
|
|
"sass": "^1.105.2",
|
|
"stylelint": "^17.16.0",
|
|
"stylelint-config-recommended-scss": "^17.0.1",
|
|
"stylelint-scss": "^7.3.0",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.71.2",
|
|
"uuid": "^14.0.3",
|
|
"vite": "^8.3.4",
|
|
"vite-plugin-istanbul": "^9.0.1",
|
|
"vitest": "^5.0.5"
|
|
}
|
|
}
|