mirror of
https://github.com/home-assistant/frontend.git
synced 2026-10-10 09:38:36 +01:00
* Load MapLibre RTL text plugin so Hebrew and Arabic map labels read correctly
The vector base map never registered MapLibre's RTL text plugin, so
right-to-left scripts were shaped left to right and every label came out
reversed. Ship @mapbox/mapbox-gl-rtl-text from /static/map/ alongside the
glyphs (no third-party host) and register it once, lazily, before the
first vector layer is created.
Fixes #53851
* Add the English name to map labels in non-Latin scripts
Before the move to vector tiles the CARTO basemap showed English names
everywhere. The OSM style shows local names, which most users cannot
read in Cyrillic, Arabic, Hebrew or CJK regions. Keep the local name and
add the English one from the tiles under it - in parentheses for street
labels, which cannot break lines. Latin-script names are left alone, so
Köln stays Köln.
(cherry picked from commit 156840b6ff)
241 lines
9.3 KiB
JSON
241 lines
9.3 KiB
JSON
{
|
|
"description": "A frontend for Home Assistant",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/home-assistant/frontend"
|
|
},
|
|
"name": "home-assistant-frontend",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"build": "node build-scripts/build-manager.mjs",
|
|
"lint:eslint": "eslint \"**/src/**/*.{js,ts,html}\" --cache --cache-strategy=content --cache-location=node_modules/.cache/eslint/.eslintcache --ignore-pattern=.gitignore --max-warnings=0",
|
|
"format:eslint": "eslint \"**/src/**/*.{js,ts,html}\" --cache --cache-strategy=content --cache-location=node_modules/.cache/eslint/.eslintcache --ignore-pattern=.gitignore --fix",
|
|
"lint:prettier": "prettier . --cache --check",
|
|
"format:prettier": "prettier . --cache --write",
|
|
"lint:types": "node ./node_modules/@typescript/native/bin/tsc",
|
|
"lint:lit": "lit-analyzer \"{.,*}/src/**/*.ts\"",
|
|
"lint:licenses": "node --no-deprecation script/check-licenses",
|
|
"lint": "yarn run lint:eslint && yarn run lint:prettier && yarn run lint:types && yarn run lint:lit",
|
|
"format": "yarn run format:eslint && yarn run format:prettier",
|
|
"postinstall": "husky",
|
|
"prepack": "pinst --disable",
|
|
"postpack": "pinst --enable",
|
|
"test": "vitest run --config test/vitest.config.ts",
|
|
"test:bench": "vitest bench --run --config test/vitest.bench.config.ts",
|
|
"test:coverage": "vitest run --config test/vitest.config.ts --coverage",
|
|
"check-bundlesize": "node build-scripts/check-bundle-size.cjs",
|
|
"dev": "node build-scripts/dev-server.mjs --suite app",
|
|
"dev:serve": "node build-scripts/dev-server.mjs --suite app-serve",
|
|
"dev:demo": "demo/script/develop_demo",
|
|
"dev:gallery": "gallery/script/develop_gallery",
|
|
"test:e2e": "node test/e2e/run-suites.mjs demo app gallery",
|
|
"test:e2e:show-report": "yarn playwright show-report test/e2e/reports/combined",
|
|
"test:e2e:demo": "playwright test --config test/e2e/playwright.demo.config.ts",
|
|
"test:e2e:app": "playwright test --config test/e2e/playwright.app.config.ts",
|
|
"test:e2e:app:dev": "test/e2e/app/script/develop_app",
|
|
"test:e2e:gallery": "playwright test --config test/e2e/playwright.gallery.config.ts"
|
|
},
|
|
"author": "Paulus Schoutsen <Paulus@PaulusSchoutsen.nl> (http://paulusschoutsen.nl)",
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@babel/runtime": "8.0.0",
|
|
"@braintree/sanitize-url": "7.1.2",
|
|
"@codemirror/autocomplete": "6.20.3",
|
|
"@codemirror/commands": "6.11.0",
|
|
"@codemirror/lang-jinja": "6.0.1",
|
|
"@codemirror/lang-yaml": "6.1.3",
|
|
"@codemirror/language": "6.12.4",
|
|
"@codemirror/lint": "6.9.7",
|
|
"@codemirror/search": "6.7.1",
|
|
"@codemirror/state": "6.7.1",
|
|
"@codemirror/view": "6.43.9",
|
|
"@date-fns/tz": "1.5.0",
|
|
"@egjs/hammerjs": "2.0.17",
|
|
"@formatjs/intl-datetimeformat": "7.6.0",
|
|
"@formatjs/intl-displaynames": "7.3.13",
|
|
"@formatjs/intl-durationformat": "0.10.18",
|
|
"@formatjs/intl-getcanonicallocales": "3.2.11",
|
|
"@formatjs/intl-listformat": "8.3.13",
|
|
"@formatjs/intl-locale": "5.3.10",
|
|
"@formatjs/intl-numberformat": "9.4.0",
|
|
"@formatjs/intl-pluralrules": "6.3.13",
|
|
"@formatjs/intl-relativetimeformat": "12.3.13",
|
|
"@fullcalendar/core": "6.1.21",
|
|
"@fullcalendar/daygrid": "6.1.21",
|
|
"@fullcalendar/interaction": "6.1.21",
|
|
"@fullcalendar/list": "6.1.21",
|
|
"@fullcalendar/luxon3": "6.1.21",
|
|
"@fullcalendar/timegrid": "6.1.21",
|
|
"@home-assistant/webawesome": "3.7.0-ha.0",
|
|
"@lezer/highlight": "1.2.3",
|
|
"@lit-labs/motion": "1.1.0",
|
|
"@lit-labs/observers": "2.1.0",
|
|
"@lit-labs/virtualizer": "2.1.1",
|
|
"@lit/context": "1.1.6",
|
|
"@lit/reactive-element": "2.1.2",
|
|
"@lit/task": "1.0.3",
|
|
"@mapbox/mapbox-gl-rtl-text": "0.4.0",
|
|
"@maplibre/maplibre-gl-leaflet": "0.1.4",
|
|
"@material/mwc-formfield": "patch:@material/mwc-formfield@npm%3A0.27.0#~/.yarn/patches/@material-mwc-formfield-npm-0.27.0-9528cb60f6.patch",
|
|
"@material/mwc-list": "patch:@material/mwc-list@npm%3A0.27.0#~/.yarn/patches/@material-mwc-list-npm-0.27.0-5344fc9de4.patch",
|
|
"@material/web": "2.5.0",
|
|
"@mdi/js": "7.4.47",
|
|
"@mdi/svg": "7.4.47",
|
|
"@replit/codemirror-indentation-markers": "6.5.3",
|
|
"@swc/helpers": "0.5.23",
|
|
"@thomasloven/round-slider": "0.6.0",
|
|
"@tsparticles/engine": "4.3.2",
|
|
"@tsparticles/preset-links": "4.3.2",
|
|
"@vibrant/color": "4.0.4",
|
|
"@vvo/tzdb": "6.198.0",
|
|
"@webcomponents/scoped-custom-element-registry": "0.0.10",
|
|
"@webcomponents/webcomponentsjs": "2.8.0",
|
|
"barcode-detector": "3.2.2",
|
|
"cally": "0.9.2",
|
|
"color-name": "2.1.1",
|
|
"comlink": "4.4.2",
|
|
"core-js": "3.50.0",
|
|
"cropperjs": "1.6.3",
|
|
"culori": "4.0.2",
|
|
"date-fns": "4.4.0",
|
|
"deep-clone-simple": "1.1.1",
|
|
"deep-freeze": "0.0.1",
|
|
"dialog-polyfill": "0.5.6",
|
|
"echarts": "6.1.0",
|
|
"echarts-extension-chart2music": "0.1.1",
|
|
"element-internals-polyfill": "3.0.2",
|
|
"fuse.js": "7.5.0",
|
|
"hls.js": "1.7.1",
|
|
"home-assistant-js-websocket": "9.6.0",
|
|
"idb-keyval": "6.3.0",
|
|
"intl-messageformat": "11.2.14",
|
|
"js-yaml": "5.3.0",
|
|
"leaflet": "1.9.4",
|
|
"leaflet-draw": "patch:leaflet-draw@npm%3A1.0.4#./.yarn/patches/leaflet-draw-npm-1.0.4-0ca0ebcf65.patch",
|
|
"leaflet.markercluster": "1.5.3",
|
|
"lit": "3.3.3",
|
|
"lit-html": "3.3.3",
|
|
"luxon": "3.7.2",
|
|
"maplibre-gl": "5.24.0",
|
|
"marked": "18.0.10",
|
|
"memoize-one": "6.0.0",
|
|
"node-vibrant": "4.0.4",
|
|
"object-hash": "3.0.0",
|
|
"punycode": "2.3.1",
|
|
"qr-scanner": "1.4.2",
|
|
"qrcode": "1.5.4",
|
|
"roboto-fontface": "0.10.0",
|
|
"rrule": "2.8.1",
|
|
"sortablejs": "patch:sortablejs@npm%3A1.15.6#~/.yarn/patches/sortablejs-npm-1.15.6-3235a8f83b.patch",
|
|
"stacktrace-js": "2.0.2",
|
|
"superstruct": "2.0.2",
|
|
"tinykeys": "patch:tinykeys@npm%3A4.0.0#~/.yarn/patches/tinykeys-npm-4.0.0-a6ca3fd771.patch",
|
|
"weekstart": "2.0.0",
|
|
"workbox-cacheable-response": "7.4.1",
|
|
"workbox-core": "7.4.1",
|
|
"workbox-expiration": "7.4.1",
|
|
"workbox-precaching": "7.4.1",
|
|
"workbox-routing": "7.4.1",
|
|
"workbox-strategies": "7.4.1",
|
|
"xss": "1.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@ampproject/remapping": "2.3.0",
|
|
"@babel/core": "8.0.1",
|
|
"@babel/helper-define-polyfill-provider": "1.0.0",
|
|
"@babel/plugin-transform-runtime": "8.0.1",
|
|
"@babel/preset-env": "8.0.2",
|
|
"@bundle-stats/plugin-webpack-filter": "4.22.3",
|
|
"@eslint/js": "10.0.1",
|
|
"@gfx/zopfli": "1.0.15",
|
|
"@html-eslint/eslint-plugin": "0.65.0",
|
|
"@lokalise/node-api": "16.3.0",
|
|
"@octokit/auth-oauth-device": "8.0.4",
|
|
"@octokit/plugin-retry": "8.1.1",
|
|
"@octokit/rest": "22.0.1",
|
|
"@playwright/test": "1.62.1",
|
|
"@rsdoctor/rspack-plugin": "1.6.3",
|
|
"@rspack/core": "2.1.10",
|
|
"@rspack/dev-server": "2.2.1",
|
|
"@types/babel__plugin-transform-runtime": "7.9.5",
|
|
"@types/chromecast-caf-receiver": "6.0.26",
|
|
"@types/chromecast-caf-sender": "1.0.11",
|
|
"@types/color-name": "2.0.0",
|
|
"@types/culori": "4.0.1",
|
|
"@types/html-minifier-terser": "7.0.2",
|
|
"@types/leaflet": "1.9.22",
|
|
"@types/leaflet-draw": "1.0.13",
|
|
"@types/leaflet.markercluster": "1.5.6",
|
|
"@types/lodash.merge": "4.6.9",
|
|
"@types/luxon": "3.7.5",
|
|
"@types/qrcode": "1.5.6",
|
|
"@types/sortablejs": "1.15.9",
|
|
"@types/tar": "7.0.87",
|
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
"@versatiles/style": "5.13.1",
|
|
"@vitest/coverage-v8": "4.1.11",
|
|
"babel-loader": "10.1.1",
|
|
"babel-plugin-polyfill-corejs3": "1.0.0",
|
|
"browserslist": "4.28.8",
|
|
"browserslist-useragent-regexp": "4.1.4",
|
|
"del": "8.0.1",
|
|
"eslint": "10.9.0",
|
|
"eslint-config-prettier": "10.1.8",
|
|
"eslint-import-resolver-webpack": "0.13.11",
|
|
"eslint-plugin-import-x": "4.17.1",
|
|
"eslint-plugin-lit": "2.3.1",
|
|
"eslint-plugin-lit-a11y": "5.1.1",
|
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
"eslint-plugin-wc": "3.1.0",
|
|
"fancy-log": "2.0.0",
|
|
"fs-extra": "11.4.0",
|
|
"generate-license-file": "4.2.1",
|
|
"glob": "13.0.6",
|
|
"globals": "17.11.0",
|
|
"gulp": "5.0.1",
|
|
"gulp-json-transform": "0.5.0",
|
|
"gulp-rename": "2.1.0",
|
|
"html-minifier-terser": "7.2.0",
|
|
"husky": "9.1.7",
|
|
"jsdom": "30.0.1",
|
|
"jszip": "3.10.1",
|
|
"license-checker-rseidelsohn": "5.0.1",
|
|
"lightningcss": "1.33.0",
|
|
"lint-staged": "17.3.0",
|
|
"lit-analyzer": "2.0.3",
|
|
"lodash.merge": "4.6.2",
|
|
"lodash.template": "4.18.1",
|
|
"map-stream": "0.0.7",
|
|
"minify-literals": "2.1.0",
|
|
"pinst": "3.0.0",
|
|
"prettier": "3.9.6",
|
|
"rspack-manifest-plugin": "5.2.2",
|
|
"serve": "14.2.6",
|
|
"sinon": "22.1.0",
|
|
"tar": "7.5.22",
|
|
"terser-webpack-plugin": "5.6.1",
|
|
"ts-lit-plugin": "2.0.2",
|
|
"typescript": "6.0.3",
|
|
"typescript-eslint": "8.67.0",
|
|
"vite-tsconfig-paths": "6.1.1",
|
|
"vitest": "4.1.11",
|
|
"webpack-stats-plugin": "1.1.3",
|
|
"webpackbar": "7.0.0",
|
|
"workbox-build": "patch:workbox-build@npm%3A7.4.1#~/.yarn/patches/workbox-build-npm-7.4.1-c84561662c.patch"
|
|
},
|
|
"resolutions": {
|
|
"lit": "3.3.3",
|
|
"lit-html": "3.3.3",
|
|
"clean-css": "5.3.3",
|
|
"@lit/reactive-element": "2.1.2",
|
|
"@fullcalendar/daygrid": "6.1.21",
|
|
"tslib": "2.8.1",
|
|
"@material/mwc-list@^0.27.0": "patch:@material/mwc-list@npm%3A0.27.0#~/.yarn/patches/@material-mwc-list-npm-0.27.0-5344fc9de4.patch"
|
|
},
|
|
"packageManager": "yarn@4.18.0",
|
|
"volta": {
|
|
"node": "24.19.0"
|
|
}
|
|
}
|