Compare commits

..
Author SHA1 Message Date
renovate[bot] eb666715ed Update dependency vite to v8.4.1 (#56504)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-05 10:13:22 +01:00
renovate[bot] fc93e2e201 Update pnpm to v12.26.0 (#56505)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-05 10:12:56 +01:00
Dominik 74180843a3 Fix sankey double background (#56502) 2026-12-05 08:35:50 +02:00
renovate[bot] 71506300af Update dependency tar to v8.0.5 (#56503)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-05 08:32:03 +02:00
renovate[bot] cf98d39240 Update dependency mermaid to v12.4.1 (#56496)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-04 20:29:37 +02:00
renovate[bot] 218492b655 Update dependency globals to v17.15.0 (#56494)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-04 17:30:12 +00:00
ChrisandClaude Opus 5.5 f5b44ed025 Preload the config of the dashboard opened from the URL (#56217)
* Preload the config of the dashboard opened from the URL

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Skip paths that cannot be a dashboard

media-browser is a built-in panel with a hyphen in its path, and
developer-tools is still read from the URL before the redirect to
/config/tools runs. Neither can be a dashboard, so neither preloads a
config that is bound to fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Test that the dashboard uses its own preloaded config

The existing tests only cover which URL paths start a preload, so they
would still pass if the panel discarded every preload, used another
dashboard's config, or never refetched after a failed preload.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-12-04 16:34:20 +01:00
16 changed files with 334 additions and 480 deletions

No files matched your search

+5 -5
View File
@@ -113,7 +113,7 @@
"marked-footnote": "1.4.0",
"marked-gfm-heading-id": "4.1.4",
"memoize-one": "7.0.0",
"mermaid": "12.4.0",
"mermaid": "12.4.1",
"nanoid": "6.0.2",
"node-vibrant": "4.0.4",
"object-hash": "3.0.0",
@@ -191,7 +191,7 @@
"fs-extra": "11.4.1",
"generate-license-file": "4.2.5",
"glob": "15.0.0",
"globals": "17.14.0",
"globals": "17.15.0",
"gulp": "5.0.1",
"gulp-json-transform": "0.5.0",
"gulp-rename": "2.1.0",
@@ -212,19 +212,19 @@
"rspack-manifest-plugin": "5.2.2",
"serve": "14.2.8",
"sinon": "22.1.0",
"tar": "8.0.4",
"tar": "8.0.5",
"terser-webpack-plugin": "5.6.1",
"ts-lit-plugin": "2.0.2",
"typescript": "6.0.3",
"typescript-eslint": "8.74.0",
"vite": "8.4.0",
"vite": "8.4.1",
"vite-tsconfig-paths": "6.1.1",
"vitest": "5.1.2",
"webpack-stats-plugin": "1.1.3",
"webpackbar": "7.0.0",
"workbox-build": "7.4.1"
},
"packageManager": "[email protected]5.1",
"packageManager": "[email protected]6.0",
"volta": {
"node": "24.23.0"
}
+196 -236
View File
@@ -7,172 +7,172 @@ importers:
configDependencies: {}
packageManagerDependencies:
pnpm:
specifier: 12.25.1
version: 12.25.1
specifier: 12.26.0
version: 12.26.0
packages:
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-QHXIyWMsuntq05xq9twYS6upQZS2TYeJIfmBWDFw1Xyi8XQxiaD06DSTWwZYjR38GwOP/dveeMC2jk2Y68IAAg==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-OY1jWzRb3IfN1Z5+IyILgc9LW7M0z5PGGnqrSS3g5f28Eu1g1eKEVlS8wtBfpn4isxtmmYD8xCIfwXZNpdvsbw==}
cpu: [arm64]
os: [android]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-bOJZTzi5c0MrI8xn6qU+0QzYu3gHMUtwLxb8ZRzuk/by7u6XhGXpn+gfppw7BF3te+rxpqK/mSR2PXb40d/7kg==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-RisG0x6N4iJ0GQ+48BjY83F9vrySNTOzVxvh0r5WMpDZZwvCVLVXYNvuiy/kbLT6Qdeyc6P2JWgWr6wFshY94Q==}
cpu: [x64]
os: [android]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-NXG2kaXA7ui3T7aznhAmG8AwWZ/BmKkxqT9DIIQJ0jU1jLKkRhGce1gbyJ+RAeGKx0HcRHAJbRi38lcHgpCteA==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-pk0zRMEYZUf63PSn9sc9IQ8tLixHRpAGem34qyKAYtTKELcbufQ2X271MlS6EJbGiciFC21Wea3h3wWBra1vHQ==}
cpu: [arm64]
os: [darwin]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-cDnnUeocsg6ESvgjxTs9az5SUt9MEaINaMKGzAEqrfFMCRvaYgkC+0Ct7eYb/41i9WYPvd9DFv8H29LHECwcVA==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-anyxq5Ew6iNpXYu2h+jW5WeZMPX/kv7TbHLm9k4rnRIb50MNJJfmaoTEKAdDUrO+ny9I2aF5pN/05RuzWPhdbQ==}
cpu: [x64]
os: [darwin]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-LEDM+BE5BdYEetfEHKSD9f5IhOWmMAHix9bMqhds6dn3cMICNQeJZQaoimwUDeVVAR8yMtvaDwRZGuWXOq5gJw==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-IY70n6CTJv3Dv/pez7irOjAFaWWe+vzKqVbiPRnpEGCheIMwc/58as+jnYeRKlCqmyTncTaVRMhXj/JSUvhJFA==}
cpu: [x64]
os: [freebsd]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-LtURUp1sJoS0ENQtKLk+oTI7oSlcEDHl3SOxxS8AUD/FTmP1AM1htwYwxi+91J+MTinOYqcUFrgb1f87Zn1Vfw==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-46GKcquLpXDdeE3SwEf9yg76fETb6EdA0k62+nGvJZTS4gzpSGn9Bkf956KusALiJvD+NFhyRn9dE5U+xH0XyA==}
cpu: [arm64]
os: [linux]
libc: [musl]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-55Ni6+zebnL2zdvKq23tZCEWbtPSMKeQ1MwJAwqDqS/VjD/Z6hT0BlJSTFvHKUgrWOBxnH501iTIyQgLVD+Cfw==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-UrKGXpcTmvm7S8nEMCcJk0nRq/GtuJU+bhYaXtjQ/9nKT9HEINmMLEZJeli9wfgfgr+cWP1hv4SPhgZAOERX/w==}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-52Fzal3IdcqsJ1kChNZC00JoFcwA9tDem/qTuZxpeJcc0KTALXTI5U/LbVF1+OXBfn72ADjS0Hxewkng7Q1iBA==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-88idddQ+WUIjGX6ypUqci9ZQuDtDGkEyn76FiCYv1p1gtDj5IpuVDYahmOd2cUwyyXZFXs/UklpTjE4fOPLTTA==}
cpu: [loong64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-x3b9VQyrmHi1IIejDGqZWrdmgbtTV/qgE3Sca0NVYmY6gT1cAvkKFq6tQvHJEgeEdny7hGKl+1sk6YkKRs1Sfg==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-viCV1LiKWKRKG0OXJV0Sgw6kQ5mm2LpAb2oymCSOP6ASM/AY8yBNYCQP9m9kToI7ajhxRNxqG3YZpuSuxs9/3A==}
cpu: [ppc64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-lPQ5PjYog/N07VsOBEZr661GgZ7y39wQLRCviHcL4RfpMBpe4XeJKK3W7YKl9NJz6+5/nzMYYfTcvZPFLWuMvA==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-8t9RG7Hratl//OFCTYSsRWhykfnlMt+yYmpyr9waaZE9rl9YEJjjn4/OH+H3QxkhrAMfJI0DFdw1yWTXQ3CUfw==}
cpu: [riscv64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-5kdJeOXns1O/PYqdR2Zk/0ci/0mCz1LhaJDIA6NiqNdgFxwCC6ufRTBiu9u4FB/F2MWBLPDtyHxwzpcbBFCP9Q==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-dnYk5INg16EfkVIP8+SxznEFmtvAHeZZ/bZauUMKUTicSqzq+9gaNZerNaqMImgcn7RwLRQBgq+YO9mWEDTeSw==}
cpu: [s390x]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-GRsFj54bSmdhceZwrA+zReMfGJw6X6qpC4pJh6iLaUcy3p0fG7A7Zqr70AKmtzvW1Zm2VGkeeIzja6QSkN09Vw==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-erYpcj7GU3NU7++XkszdcCmYSXfED7GqyNJB5Rsfy1vdkO3r82GnAbATibVNITHeLIeJWqcw2Ayf3G2QEiTJKg==}
cpu: [x64]
os: [linux]
libc: [musl]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-Db2T6CtSNO8hjG6FISkOaZ2PW/OpynoXcT+jWEh44xDgSBt68rgbjGIbzjXSKJ+vH2mkoUxaUZCcLLusBVqelw==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-MZiMSTkC8buH3EGfkDootc2WvE/5tUzXhrM6hVcCgDWS7WbU7AefjLAp7hEjBw74E88JXglp7d+A0BSbRt91yA==}
cpu: [x64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-2hU5yNM/C8FT5eqbrNzB+0yGw/SS3oMJ1afk8pXEDsGU4vWdiiWxSqQ0kM8GHIvCDa/qRyw9ns98XWu5KZxxiA==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-ujMZzueds7rfEMDbvexTaLpFTLBdU01H79yMN28RXfnyLb9rDe8uMGLq2QsvuCfFBL21riaEdK7Yolv93/y5aQ==}
cpu: [x64]
os: [netbsd]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-v7YduE+TgEid1AiIThVBmYBnF0dj6vtk3ymcCkcM5FvanAM8MXoZhSiQYayQruh8xDwTXf5n8Zgn1OOi8WtqDg==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-CeNctRVkKRRVGGwJ3Nb9hoyh0P/+ULMBmLsfXUw6AE17hEH0kVSiwdbnZqgy7G0EhYmEuIRAEIUnwRUSX377Vw==}
cpu: [arm64]
os: [win32]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-cMfLsOE4zxSYBZYWyK1tr6BvCKVDyC81CnZg953t/6MEL592D8gk0eGdHQilEcd+yO+o6Ey1W9LLQdjl7pglsQ==}
'@pnpm/[email protected]6.0':
resolution: {integrity: sha512-p0x3aUOh+4BHLQvvE8DTpCzOYWe9tWdbiqtUwljCSfkXk/OeWTKDlCqzTd3rxAsZhDQkTIULWeMitJZqkWGt6g==}
cpu: [x64]
os: [win32]
[email protected]5.1:
resolution: {integrity: sha512-psZ31wNNPXmvE28z2zPNbUEz1z+lZaBr1kqPCW0lN92HoI1o4Y/zd3cf9RwY4uwxvgO0RnDrGeJBiQ6uOu0Bag==}
[email protected]6.0:
resolution: {integrity: sha512-W05eCOcD3LyL/gkedH0c9ws0Sdlto5E3sFDLSQTz6qTOPPnkX7CaMpCmTwPY6LNw+VuQ75qTf9APs5+DNINFqQ==}
engines: {node: '>=18'}
hasBin: true
snapshots:
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]6.0':
optional: true
[email protected]5.1:
[email protected]6.0:
optionalDependencies:
'@pnpm/exe.android-arm64': 12.25.1
'@pnpm/exe.android-x64': 12.25.1
'@pnpm/exe.darwin-arm64': 12.25.1
'@pnpm/exe.darwin-x64': 12.25.1
'@pnpm/exe.freebsd-x64': 12.25.1
'@pnpm/exe.linux-arm64': 12.25.1
'@pnpm/exe.linux-arm64-musl': 12.25.1
'@pnpm/exe.linux-loong64': 12.25.1
'@pnpm/exe.linux-ppc64': 12.25.1
'@pnpm/exe.linux-riscv64': 12.25.1
'@pnpm/exe.linux-s390x': 12.25.1
'@pnpm/exe.linux-x64': 12.25.1
'@pnpm/exe.linux-x64-musl': 12.25.1
'@pnpm/exe.netbsd-x64': 12.25.1
'@pnpm/exe.win32-arm64': 12.25.1
'@pnpm/exe.win32-x64': 12.25.1
'@pnpm/exe.android-arm64': 12.26.0
'@pnpm/exe.android-x64': 12.26.0
'@pnpm/exe.darwin-arm64': 12.26.0
'@pnpm/exe.darwin-x64': 12.26.0
'@pnpm/exe.freebsd-x64': 12.26.0
'@pnpm/exe.linux-arm64': 12.26.0
'@pnpm/exe.linux-arm64-musl': 12.26.0
'@pnpm/exe.linux-loong64': 12.26.0
'@pnpm/exe.linux-ppc64': 12.26.0
'@pnpm/exe.linux-riscv64': 12.26.0
'@pnpm/exe.linux-s390x': 12.26.0
'@pnpm/exe.linux-x64': 12.26.0
'@pnpm/exe.linux-x64-musl': 12.26.0
'@pnpm/exe.netbsd-x64': 12.26.0
'@pnpm/exe.win32-arm64': 12.26.0
'@pnpm/exe.win32-x64': 12.26.0
---
lockfileVersion: '9.0'
@@ -419,8 +419,8 @@ importers:
specifier: 7.0.0
version: 7.0.0
mermaid:
specifier: 12.4.0
version: 12.4.0
specifier: 12.4.1
version: 12.4.1
nanoid:
specifier: 6.0.2
version: 6.0.2
@@ -541,7 +541,7 @@ importers:
version: 1.65.1
'@rsdoctor/rspack-plugin':
specifier: 1.6.5
version: 1.6.5(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])
version: 1.6.5(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])
'@rspack/core':
specifier: 2.3.5
version: 2.3.5(@swc/[email protected])
@@ -648,8 +648,8 @@ importers:
specifier: 15.0.0
version: 15.0.0
globals:
specifier: 17.14.0
version: 17.14.0
specifier: 17.15.0
version: 17.15.0
gulp:
specifier: 5.0.1
version: 5.0.1
@@ -711,11 +711,11 @@ importers:
specifier: 22.1.0
version: 22.1.0
tar:
specifier: 8.0.4
version: 8.0.4
specifier: 8.0.5
version: 8.0.5
terser-webpack-plugin:
specifier: 5.6.1
version: 5.6.1([email protected])([email protected])([email protected])([email protected])([email protected]3)
version: 5.6.1([email protected])([email protected])([email protected])([email protected])([email protected]4)
ts-lit-plugin:
specifier: 2.0.2
version: 2.0.2
@@ -726,14 +726,14 @@ importers:
specifier: 8.74.0
version: 8.74.0([email protected]([email protected]))([email protected])([email protected])([email protected])
vite:
specifier: 8.4.0
version: 8.4.0(@types/[email protected])([email protected])([email protected])
specifier: 8.4.1
version: 8.4.1(@types/[email protected])([email protected])([email protected])
vite-tsconfig-paths:
specifier: 6.1.1
version: 6.1.1([email protected])([email protected])([email protected].0(@types/[email protected])([email protected])([email protected]))
version: 6.1.1([email protected])([email protected])([email protected].1(@types/[email protected])([email protected])([email protected]))
vitest:
specifier: 5.1.2
version: 5.1.2(@types/[email protected])(@vitest/[email protected])([email protected])([email protected].0(@types/[email protected])([email protected])([email protected]))
version: 5.1.2(@types/[email protected])(@vitest/[email protected])([email protected])([email protected].1(@types/[email protected])([email protected])([email protected]))
webpack-stats-plugin:
specifier: 1.1.3
version: 1.1.3
@@ -1906,9 +1906,6 @@ packages:
'@emnapi/[email protected]':
resolution: {integrity: sha512-TC8MkTuZUtcTSiFeuC0ksCh9QIJ5+F21MvZ4Wn4ORfYaFJ/0dsiudv5tVkejgwZlwQ39jL9WWDe2lz8x0WglOA==}
'@emnapi/[email protected]':
resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==}
'@emnapi/[email protected]':
resolution: {integrity: sha512-AhU/vMMXtGgLCrWsL3PjZGSpCWXlGETabnyyB2pBUd6h7AMy2toffJO2T7yXOYXtw8FyD6dYK/5b3u5eRK3yhw==}
@@ -1918,9 +1915,6 @@ packages:
'@emnapi/[email protected]':
resolution: {integrity: sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==}
'@emnapi/[email protected]':
resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==}
'@emnapi/[email protected]':
resolution: {integrity: sha512-UKxc3beuftD67T1mPCVf0mnwRKOBsq9XrhLCDGGQKsbG9jx6osvGyjIbJm9DsucyUtFSMTV2ZxsjiuTMjEqWkA==}
@@ -2362,13 +2356,6 @@ packages:
os: [linux]
libc: [glibc]
'@napi-rs/[email protected]':
resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==}
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
peerDependencies:
'@emnapi/core': ^1.7.1 || 2.0.0-beta.2
'@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2
'@napi-rs/[email protected]':
resolution: {integrity: sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==}
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
@@ -2576,8 +2563,8 @@ packages:
'@octokit/[email protected]':
resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==}
'@oxc-project/[email protected]59.0':
resolution: {integrity: sha512-QWjWhxheluOJ82kDHNyps00UvRpQCtI34B5A/SzpgQycUD/79FuvT4I0aQIfE/bdPwKmX4QPftnywFBH6FxJhQ==}
'@oxc-project/[email protected]60.0':
resolution: {integrity: sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==}
'@oxc-resolver/[email protected]':
resolution: {integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==}
@@ -2697,103 +2684,103 @@ packages:
'@codemirror/state': ^6.0.0
'@codemirror/view': ^6.0.0
'@rolldown/[email protected].3':
resolution: {integrity: sha512-K1itOg1Xl50XyjLDa4qQZqaYsfiQbFbFRWXOEOupOsGr3whhm5ed4lgySd6Inohv2TB0+sdU4AxORKuS/TGang==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [android]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-re+E0E3YSJXjEFzdOvBgkVUev1Gg49ileia04qy+Djn0lIMBr7pnwVOYQ+4vc9XbLClCmMziasqXHM7KTmKNKQ==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-6pMLYsUiQJXPkUj/CG447hOBKtbe+hjWw/wbxe/mucoPKgnLSVRTzey7s0kXfqrjxhDd3gQ2hj6lgUKRumsIzw==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-Lz+TskwvhceQgwnP+0ox5ZeL7HDDXHKWVRpOqC1Eo05y6rYyfvvep0msGqC95kQTykXrmGgP6qwJB1NdgNZVhg==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-sIzqNDbA7GFDXU8k9/vcJyV1p45mCe+xHOLo9qD7gdbTbMlwB+SpnFoP7WSpC2iYdGfOX9pjBxCfViRn/Nu3Jw==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-HYysnZZ7HD3FM5RIBN6wDMoxtOjw4LS9HhRuQ57MsZt5XGpGRPxVpplvr7vUXRN+9MD8zb6vn1JRP06PXIuMYQ==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-XAyLqWSoEKVc8wsDbCIz5o2sBY6ye+0YByK9ib5QxFReoM1KHyThSHsdUODa1DKNzlEfae+p9QwK62LsVwo6Nw==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-oVyicDPj6vUVFRnuoQS7M2Ab8EkGWoq3a5ntyQqjtZoXfgVykIJqN2IAJSi9q9UyNoQUW0vbBLQSgGtlPJ40Kg==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-k7aFSWgUoi/X7jCst7UEof7pS5jc5ymD8mT/pdFE+pO1IBBI2+JU5Os4HEDqS/tYhetRggwM7MOiLP3cg1bSBQ==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
libc: [glibc]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-D5mxHpr1qIb1Pt5UT+Bm2p6vJ7+VxcxWcxZCYVDFzZwWRq9iLiEg4/ROsaXFQl1O8sDQZZJ55UoRWWMK64uH5w==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
libc: [glibc]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-nmW1O4BbNEmQI9+KTHbJgbDv0EuyZy64oBnRlMCtLJ8lQMIJ/H/iziQ0g2IUlHEhNrSebGvs9cRrlRj8oEfP+g==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-ivU4JFHK5nFzrRbzp3+vwYdLj8mFckH4oz3hEl5LH/YeThr9/m2N2vF3NvLevtHq6e0COimgrEVyYTwQhh4ODg==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-XxZoRIkNZ/7pFgvOA8QJmx3uFjMyVz7zS2/urzlaFffoOGclDvpUAMu3AHKT551E8JBKXLxIjpYxYMdF6Mz9vQ==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-bBl1MB2gF26PSPy3CiDLiv+A6JGI546WbsDR34LfKAywSGeBeQXaDanoDG6QdZDJs53M1QyJir5MTKTu1n4ptA==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA==}
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
cpu: [wasm32]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-6rZur0hyen4LPhOxWIg7az1YX+Eo8Vvauc0D6lFYGK/QCvN+1XpnB8aFe3jQc/PBUGIReJJnLX3sS8h33/5v7A==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
'@rolldown/[email protected].3':
resolution: {integrity: sha512-Ggzyuq1mN7claruAZH10aiiM1N3LRCoMP5xDXPdU514ulL0D2bksCWgFqEmEM2/pDzEP7Dq+dcv7IH452jtr1w==}
'@rolldown/[email protected].4':
resolution: {integrity: sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
@@ -5747,8 +5734,8 @@ packages:
resolution: {integrity: sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==}
engines: {node: '>=0.10.0'}
[email protected]4.0:
resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==}
[email protected]5.0:
resolution: {integrity: sha512-OyBOdPnzu9B2lFpums9/4wcyNHx4haAxY2X5PgO9LqCvXJgKYMMr/1y4TU7om/vTy4eYqRsVes1ZTJEJYKap8Q==}
engines: {node: '>=18'}
[email protected]:
@@ -6607,8 +6594,8 @@ packages:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
[email protected].0:
resolution: {integrity: sha512-j2gvsGUFeS/53WdYLl9H5G2YtMZX9G/PlCvV3E5Pf4j5XSnK19DwazU6wki7OTcKeYKed7+qujRDLhy8NV2zBg==}
[email protected].1:
resolution: {integrity: sha512-8uCLCSeow+N6CrNzAB54lbNFipC1DOPXZeOTeSlfvJaNUohg0A9eebmJNxs4Ik/OyEDqmF2thvyCzkwkmNnTtg==}
engines: {node: '>=22.12.0'}
[email protected]:
@@ -7153,8 +7140,8 @@ packages:
resolution: {integrity: sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==}
engines: {node: '>=4'}
[email protected]3:
resolution: {integrity: sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==}
[email protected]4:
resolution: {integrity: sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==}
engines: {node: ^10 || ^12 || >=14}
[email protected]:
@@ -7392,8 +7379,8 @@ packages:
[email protected]:
resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==}
[email protected].3:
resolution: {integrity: sha512-ksB1g74e7haRy02OYm4lOQAlr6sK6hBpAY5R+YC30Gkv4L1COwF6M9umBAYAPxWpGow6Vr+IXtyDjH9fq7A+Zg==}
[email protected].4:
resolution: {integrity: sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
@@ -7611,9 +7598,9 @@ packages:
[email protected]:
resolution: {integrity: sha512-Kk8wLQPlS+yi1ZEf48a4+fzHa4yxjC30M/Sr2AnQu+f/MPwvvX9XjZ6OWejiz8crBsLwSq8GHqaxaET7u6ux0A==}
source-map-js@1.2.2:
resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
engines: {node: '>=0.10.0'}
source-map-js@1.3.0:
resolution: {integrity: sha512-pdUVfIWcK0kCgK831ibqkZDcL7I9zljjOu0TQFnA+fiQ6y1CYqYB7RkTOHHO45FGMg5P/Mvk/+4ToQ7gAYAL5Q==}
engines: {node: '>=6.0.0'}
[email protected]:
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
@@ -7809,8 +7796,8 @@ packages:
resolution: {integrity: sha512-to/OxuCk5DeVONcjjODT7aeoRq5NIPPlfPc0tNML+wLlnf6u5BcJz97Uukv3pT3jzorkFhUevylkAiBr+ZmV2w==}
engines: {node: '>=18'}
[email protected].4:
resolution: {integrity: sha512-efl2GHJOnqAV5jVrxbM8T3KrLyCAdcwtqF7tJOEJAe1S8rUJSkGrPu6nSZLJP6/KE7U2hDpMcktnKLx3iPwcZQ==}
[email protected].5:
resolution: {integrity: sha512-iYroSHv/iVs5Bfy7uXCZVTye64oecqEETP3jvxksDcJlf8E3hreHYyhT+Qu7b+JgniditLaQbk4ZujNAnPEX9w==}
engines: {node: '>=22'}
[email protected]:
@@ -8206,8 +8193,8 @@ packages:
peerDependencies:
vite: '*'
[email protected].0:
resolution: {integrity: sha512-X2nUJg+9cutlz3hzqyO6p+WTwk9H257DjwAEf9EQYUFrQbDItmetadi9gYmb+l7VDy4r3VXLUnmLTwuPmzejDw==}
[email protected].1:
resolution: {integrity: sha512-2bl8n3+GkKBKQQR8CZC+t+3NvjWCBNh9S0Dbfu7hr7+Jjeg71jcZk7uKF6mo8GZXjIws+Nl6jhvAfHUO320VuQ==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
peerDependencies:
@@ -10121,12 +10108,6 @@ snapshots:
tslib: 2.9.1
optional: true
'@emnapi/[email protected]':
dependencies:
'@emnapi/wasi-threads': 2.2.0
tslib: 2.9.1
optional: true
'@emnapi/[email protected]':
dependencies:
'@emnapi/wasi-threads': 2.2.0
@@ -10143,11 +10124,6 @@ snapshots:
tslib: 2.9.1
optional: true
'@emnapi/[email protected]':
dependencies:
tslib: 2.9.1
optional: true
'@emnapi/[email protected]':
dependencies:
tslib: 2.9.1
@@ -10689,13 +10665,6 @@ snapshots:
'@napi-rs/[email protected]':
optional: true
'@napi-rs/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
dependencies:
'@emnapi/core': 2.0.0-beta.2
'@emnapi/runtime': 2.0.0-beta.2
'@tybys/wasm-util': 0.10.3
optional: true
'@napi-rs/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
dependencies:
'@emnapi/core': 1.10.0
@@ -10710,13 +10679,6 @@ snapshots:
'@tybys/wasm-util': 0.10.3
optional: true
'@napi-rs/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
dependencies:
'@emnapi/core': 2.0.0-beta.2
'@emnapi/runtime': 2.0.0-beta.2
'@tybys/wasm-util': 0.10.3
optional: true
'@napi-rs/[email protected](@emnapi/[email protected])(@emnapi/[email protected])':
dependencies:
'@emnapi/core': 2.0.0-beta.4
@@ -11064,7 +11026,7 @@ snapshots:
dependencies:
'@octokit/openapi-types': 29.0.1
'@oxc-project/[email protected]59.0': {}
'@oxc-project/[email protected]60.0': {}
'@oxc-resolver/[email protected]':
optional: true
@@ -11141,56 +11103,54 @@ snapshots:
'@codemirror/state': 6.7.6
'@codemirror/view': 6.44.2
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
dependencies:
'@emnapi/core': 2.0.0-beta.2
'@emnapi/runtime': 2.0.0-beta.2
'@napi-rs/wasm-runtime': 1.2.6(@emnapi/[email protected])(@emnapi/[email protected])
'@oxc-project/types': 0.160.0
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected].3':
'@rolldown/[email protected].4':
optional: true
'@rolldown/[email protected]': {}
@@ -11334,14 +11294,14 @@ snapshots:
'@rsdoctor/[email protected]': {}
'@rsdoctor/[email protected](@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])':
'@rsdoctor/[email protected](@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])':
dependencies:
'@rsbuild/plugin-check-syntax': 1.6.1(@rsbuild/[email protected]([email protected]))
'@rsdoctor/graph': 1.6.5(@rspack/[email protected](@swc/[email protected]))
'@rsdoctor/sdk': 1.6.5(@rspack/[email protected](@swc/[email protected]))([email protected])
'@rsdoctor/types': 1.6.5(@rspack/[email protected](@swc/[email protected]))
'@rsdoctor/utils': 1.6.5(@rspack/[email protected](@swc/[email protected]))
'@rspack/resolver': 0.2.8(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)
'@rspack/resolver': 0.2.8(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)
browserslist-load-config: 1.0.3
enhanced-resolve: 5.26.0
es-toolkit: 1.50.0
@@ -11370,9 +11330,9 @@ snapshots:
- '@rspack/core'
- webpack
'@rsdoctor/[email protected](@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])':
'@rsdoctor/[email protected](@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])':
dependencies:
'@rsdoctor/core': 1.6.5(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])
'@rsdoctor/core': 1.6.5(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)(@rsbuild/[email protected]([email protected]))(@rspack/[email protected](@swc/[email protected]))([email protected])
'@rsdoctor/graph': 1.6.5(@rspack/[email protected](@swc/[email protected]))
'@rsdoctor/sdk': 1.6.5(@rspack/[email protected](@swc/[email protected]))([email protected])
'@rsdoctor/types': 1.6.5(@rspack/[email protected](@swc/[email protected]))
@@ -11544,9 +11504,9 @@ snapshots:
'@rspack/[email protected]':
optional: true
'@rspack/[email protected](@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)':
'@rspack/[email protected](@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)':
dependencies:
'@napi-rs/wasm-runtime': 1.2.7(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)
'@napi-rs/wasm-runtime': 1.2.7(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)
transitivePeerDependencies:
- '@emnapi/core'
- '@emnapi/runtime'
@@ -11561,7 +11521,7 @@ snapshots:
'@rspack/[email protected]':
optional: true
'@rspack/[email protected](@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)':
'@rspack/[email protected](@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)':
optionalDependencies:
'@rspack/resolver-binding-darwin-arm64': 0.2.8
'@rspack/resolver-binding-darwin-x64': 0.2.8
@@ -11569,7 +11529,7 @@ snapshots:
'@rspack/resolver-binding-linux-arm64-musl': 0.2.8
'@rspack/resolver-binding-linux-x64-gnu': 0.2.8
'@rspack/resolver-binding-linux-x64-musl': 0.2.8
'@rspack/resolver-binding-wasm32-wasi': 0.2.8(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)
'@rspack/resolver-binding-wasm32-wasi': 0.2.8(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)
'@rspack/resolver-binding-win32-arm64-msvc': 0.2.8
'@rspack/resolver-binding-win32-ia32-msvc': 0.2.8
'@rspack/resolver-binding-win32-x64-msvc': 0.2.8
@@ -12375,7 +12335,7 @@ snapshots:
obug: 3.0.0
std-env: 4.3.0
tinyrainbow: 3.2.0
vitest: 5.1.2(@types/[email protected])(@vitest/[email protected])([email protected])([email protected].0(@types/[email protected])([email protected])([email protected]))
vitest: 5.1.2(@types/[email protected])(@vitest/[email protected])([email protected])([email protected].1(@types/[email protected])([email protected])([email protected]))
'@vitest/[email protected]': {}
@@ -12383,14 +12343,14 @@ snapshots:
dependencies:
'@vitest/istanbul-lib-coverage': 2.1.1
'@vitest/[email protected]([email protected].0(@types/[email protected])([email protected])([email protected]))':
'@vitest/[email protected]([email protected].1(@types/[email protected])([email protected])([email protected]))':
dependencies:
'@jridgewell/trace-mapping': 0.3.31
'@vitest/spy': 5.1.2
estree-walker: 3.0.3
magic-string: 1.4.5
optionalDependencies:
vite: 8.4.0(@types/[email protected])([email protected])([email protected])
vite: 8.4.1(@types/[email protected])([email protected])([email protected])
'@vitest/[email protected]': {}
@@ -13107,12 +13067,12 @@ snapshots:
[email protected]:
dependencies:
mdn-data: 2.0.28
source-map-js: 1.2.2
source-map-js: 1.3.0
[email protected]:
dependencies:
mdn-data: 2.27.1
source-map-js: 1.2.2
source-map-js: 1.3.0
[email protected]: {}
@@ -14181,7 +14141,7 @@ snapshots:
is-windows: 1.0.2
which: 1.3.1
[email protected]4.0: {}
[email protected]5.0: {}
[email protected]:
dependencies:
@@ -14968,7 +14928,7 @@ snapshots:
dependencies:
'@babel/parser': 7.29.8
'@babel/types': 7.29.8
source-map-js: 1.2.2
source-map-js: 1.3.0
[email protected]([email protected]):
dependencies:
@@ -15065,7 +15025,7 @@ snapshots:
[email protected]: {}
[email protected].0:
[email protected].1:
dependencies:
'@braintree/sanitize-url': 7.1.2
'@iconify/utils': 3.1.7
@@ -15692,11 +15652,11 @@ snapshots:
cssesc: 3.0.0
util-deprecate: 1.0.2
[email protected]3:
[email protected]4:
dependencies:
nanoid: 3.3.20
picocolors: 1.1.1
source-map-js: 1.2.2
source-map-js: 1.3.0
[email protected]: {}
@@ -15907,27 +15867,27 @@ snapshots:
[email protected]: {}
[email protected].3:
[email protected].4:
dependencies:
'@oxc-project/types': 0.159.0
'@oxc-project/types': 0.160.0
'@rolldown/pluginutils': 1.0.1
optionalDependencies:
'@rolldown/binding-android-arm-eabi': 1.3.3
'@rolldown/binding-android-arm64': 1.3.3
'@rolldown/binding-darwin-arm64': 1.3.3
'@rolldown/binding-darwin-x64': 1.3.3
'@rolldown/binding-freebsd-x64': 1.3.3
'@rolldown/binding-linux-arm-gnueabihf': 1.3.3
'@rolldown/binding-linux-arm64-gnu': 1.3.3
'@rolldown/binding-linux-arm64-musl': 1.3.3
'@rolldown/binding-linux-ppc64-gnu': 1.3.3
'@rolldown/binding-linux-s390x-gnu': 1.3.3
'@rolldown/binding-linux-x64-gnu': 1.3.3
'@rolldown/binding-linux-x64-musl': 1.3.3
'@rolldown/binding-openharmony-arm64': 1.3.3
'@rolldown/binding-wasm32-wasi': 1.3.3
'@rolldown/binding-win32-arm64-msvc': 1.3.3
'@rolldown/binding-win32-x64-msvc': 1.3.3
'@rolldown/binding-android-arm-eabi': 1.3.4
'@rolldown/binding-android-arm64': 1.3.4
'@rolldown/binding-darwin-arm64': 1.3.4
'@rolldown/binding-darwin-x64': 1.3.4
'@rolldown/binding-freebsd-x64': 1.3.4
'@rolldown/binding-linux-arm-gnueabihf': 1.3.4
'@rolldown/binding-linux-arm64-gnu': 1.3.4
'@rolldown/binding-linux-arm64-musl': 1.3.4
'@rolldown/binding-linux-ppc64-gnu': 1.3.4
'@rolldown/binding-linux-s390x-gnu': 1.3.4
'@rolldown/binding-linux-x64-gnu': 1.3.4
'@rolldown/binding-linux-x64-musl': 1.3.4
'@rolldown/binding-openharmony-arm64': 1.3.4
'@rolldown/binding-wasm32-wasi': 1.3.4
'@rolldown/binding-win32-arm64-msvc': 1.3.4
'@rolldown/binding-win32-x64-msvc': 1.3.4
[email protected]:
dependencies:
@@ -16241,7 +16201,7 @@ snapshots:
[email protected](patch_hash=f25f02dcc8720341c3cfac312e0502081328108270852ad039187c2c5e2ea432): {}
source-map-js@1.2.2: {}
source-map-js@1.3.0: {}
[email protected]:
dependencies:
@@ -16476,7 +16436,7 @@ snapshots:
minizlib: 3.1.0
yallist: 5.0.0
[email protected].4: {}
[email protected].5: {}
[email protected]:
dependencies:
@@ -16503,7 +16463,7 @@ snapshots:
type-fest: 0.16.0
unique-string: 2.0.0
[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]3):
[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]4):
dependencies:
'@jridgewell/trace-mapping': 0.3.31
jest-worker: 27.5.1
@@ -16514,7 +16474,7 @@ snapshots:
csso: 5.0.5
html-minifier-terser: 7.2.0
lightningcss: 1.33.0
postcss: 8.5.33
postcss: 8.5.34
[email protected]:
dependencies:
@@ -16886,22 +16846,22 @@ snapshots:
- bare-abort-controller
- react-native-b4a
[email protected]([email protected])([email protected])([email protected].0(@types/[email protected])([email protected])([email protected])):
[email protected]([email protected])([email protected])([email protected].1(@types/[email protected])([email protected])([email protected])):
dependencies:
debug: 4.4.3([email protected])
globrex: 0.1.2
tsconfck: 3.1.6([email protected])
vite: 8.4.0(@types/[email protected])([email protected])([email protected])
vite: 8.4.1(@types/[email protected])([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- typescript
[email protected].0(@types/[email protected])([email protected])([email protected]):
[email protected].1(@types/[email protected])([email protected])([email protected]):
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.7
postcss: 8.5.33
rolldown: 1.3.3
postcss: 8.5.34
rolldown: 1.3.4
tinyglobby: 0.2.17
optionalDependencies:
'@types/node': 24.19.4
@@ -16910,10 +16870,10 @@ snapshots:
terser: 5.51.4
yaml: 2.9.1
[email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected].0(@types/[email protected])([email protected])([email protected])):
[email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected].1(@types/[email protected])([email protected])([email protected])):
dependencies:
'@types/chai': 5.2.3
'@vitest/mocker': 5.1.2([email protected].0(@types/[email protected])([email protected])([email protected]))
'@vitest/mocker': 5.1.2([email protected].1(@types/[email protected])([email protected])([email protected]))
chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
@@ -16924,7 +16884,7 @@ snapshots:
tinybench: 6.2.3
tinyexec: 1.4.0
tinyglobby: 0.2.17
vite: 8.4.0(@types/[email protected])([email protected])([email protected])
vite: 8.4.1(@types/[email protected])([email protected])([email protected])
why-is-node-running: 3.2.1
optionalDependencies:
'@types/node': 24.19.4
+3 -5
View File
@@ -1,7 +1,6 @@
import {
closeAllDialogs,
DIALOG_WAIT_TIMEOUT,
isDialogHistoryEntry,
updateClosedDialogSearch,
} from "../dialogs/make-dialog-manager";
import { fireEvent } from "./dom/fire_event";
@@ -70,10 +69,9 @@ export const setRefreshUrl = (path: string) => {
* Returns true if navigation can proceed, false if a dialog refused to close.
*/
const ensureDialogsClosed = async (timestamp: number): Promise<boolean> => {
if (
!isDialogHistoryEntry() ||
Date.now() - timestamp >= DIALOG_WAIT_TIMEOUT
) {
const { history } = mainWindow;
if (!history.state?.dialog || Date.now() - timestamp >= DIALOG_WAIT_TIMEOUT) {
return true;
}
-1
View File
@@ -381,7 +381,6 @@ export class HaSankeyChart extends LitElement {
display: block;
flex: 1;
max-width: 100%;
background: var(--ha-card-background, var(--card-background-color));
}
ha-chart-base {
width: 100%;
+16
View File
@@ -4,6 +4,22 @@ import type { RecorderInfo } from "./recorder";
export interface WindowWithPreloads extends Window {
llConfProm?: Promise<LovelaceRawConfig>;
llConfUrlPath?: string;
llResProm?: Promise<LovelaceResource[]>;
recorderInfoProm?: Promise<RecorderInfo>;
}
const HYPHENATED_NON_DASHBOARD_PATHS = ["developer-tools", "media-browser"];
export const getPreloadDashboardUrlPath = (
pathname: string
): string | undefined => {
const urlPath = pathname.split("/")[1];
if (urlPath === "lovelace") {
return urlPath;
}
return urlPath?.includes("-") &&
!HYPHENATED_NON_DASHBOARD_PATHS.includes(urlPath)
? urlPath
: undefined;
};
+10 -26
View File
@@ -40,10 +40,6 @@ export const DialogHistoryMixin = <
private _hasManagerHistoryEntry = false;
// Depth of the current level, also while a dialog opened over this one
// has replaced its history entry
private _historyDepth = 0;
private _historyPending = false;
private _closedWhileHistoryPending = false;
@@ -66,14 +62,12 @@ export const DialogHistoryMixin = <
}
// Navigating back in history goes up a level instead of closing
if (!this._historyClosing && historyState) {
const level = this._ownHistoryData(historyState);
if (this.restoreHistoryLevel(level)) {
if (level) {
this._historyDepth = level.depth;
}
return false;
}
if (
!this._historyClosing &&
historyState &&
this.restoreHistoryLevel(this._ownHistoryData(historyState))
) {
return false;
}
if (!this._historyClosing) {
@@ -99,21 +93,17 @@ export const DialogHistoryMixin = <
}
protected pushHistoryLevel(level: L) {
// Code that runs on after closing may still pick a level
if (this._historyClosing || !this.isConnected) {
return;
}
if (!this._historyDepth) {
const current = this._ownHistoryData(mainWindow.history.state);
if (!current) {
this._hasManagerHistoryEntry =
mainWindow.history.state?.dialog === this.localName;
}
this._historyDepth++;
mainWindow.history.pushState(
{
dialogData: {
...level,
dialogId: this._historyId,
depth: this._historyDepth,
depth: (current?.depth ?? 0) + 1,
},
},
""
@@ -134,13 +124,7 @@ export const DialogHistoryMixin = <
// Goes back to the opener entry, where the dialog manager closes this
// dialog as the top one, so a dialog below it stays open.
private _unwindHistory(): boolean {
const { state } = mainWindow.history;
const depth =
this._ownHistoryData(state)?.depth ??
// A dialog opened over this one replaced the current level's entry
(state?.dialog && state.dialog !== this.localName
? this._historyDepth
: undefined);
const depth = this._ownHistoryData(mainWindow.history.state)?.depth;
if (!depth) {
return false;
}
+9 -69
View File
@@ -53,9 +53,6 @@ export interface DialogState {
dialogParams: unknown;
dialogImport?: () => Promise<unknown>;
addHistory?: boolean;
// The history entry of a level of the dialog below (see
// DialogHistoryMixin), which the entry of this dialog replaced
replacedLevel?: unknown;
}
interface LoadedDialogInfo {
@@ -93,41 +90,6 @@ const _removeOpenDialogTag = (dialogTag: string) => {
}
};
// An entry a dialog pushed for one of its levels (see DialogHistoryMixin),
// while that dialog is still open
const isLevelOfOpenDialog = (historyState: any): boolean =>
Boolean(historyState?.dialogData && OPEN_DIALOG_STACK.length);
/**
* Whether Back went from a dialog to the entry of a dialog below it, which
* only has its own entry under its first level (see DialogHistoryMixin).
*/
export const isEntryOfDialogBelow = (historyState: any): boolean =>
OPEN_DIALOG_STACK.slice(0, -1).some(
(dialog) => dialog.dialogTag === historyState?.dialog
);
// Whether Back went from a dialog over a level to the dialog below, not to
// a level of its own
const wentToDialogBelow = (dialog: DialogState, historyState: any) => {
const level = dialog.replacedLevel as
{ dialogData: { dialogId: string } } | undefined;
return Boolean(
level &&
(historyState?.dialog ||
historyState?.dialogData?.dialogId === level.dialogData.dialogId)
);
};
/**
* Whether the current history entry belongs to an open dialog, so leaving
* the page must wait until the dialogs closed and went back past it.
*/
export const isDialogHistoryEntry = (): boolean => {
const { state } = mainWindow.history;
return Boolean(state?.dialog) || isLevelOfOpenDialog(state);
};
/**
* Returns the tag name of the topmost open dialog, or `undefined` when no
* dialog is open.
@@ -229,23 +191,18 @@ export const showDialog = async (
const dialogIndex = OPEN_DIALOG_STACK.findIndex(
(state) => state.dialogTag === dialogTag
);
const shownState =
dialogIndex !== -1
? OPEN_DIALOG_STACK.splice(dialogIndex, 1)[0]
: undefined;
const replacedLevel = isLevelOfOpenDialog(history.state)
? history.state
: shownState?.replacedLevel;
if (dialogIndex !== -1) {
OPEN_DIALOG_STACK.splice(dialogIndex, 1);
}
OPEN_DIALOG_STACK.push({
element,
dialogTag,
dialogParams,
dialogImport,
addHistory,
replacedLevel,
});
const newState = { dialog: dialogTag };
if (history.state?.dialog || replacedLevel) {
if (history.state?.dialog) {
// if a dialog is already open, replace the name
history.replaceState(newState, "");
} else {
@@ -324,17 +281,9 @@ export const closeLastDialog = async (historyState?: any) => {
if (!closed) {
// if the dialog was not closed, put it back on the stack
OPEN_DIALOG_STACK.push(lastDialog);
if (wentToDialogBelow(lastDialog, historyState)) {
mainWindow.history.pushState({ dialog: lastDialog.dialogTag }, "");
}
} else if (lastDialog.replacedLevel && historyState) {
// Back went past the level the dialog below is still on
mainWindow.history.pushState(lastDialog.replacedLevel, "");
} else if (
OPEN_DIALOG_STACK.length &&
(mainWindow.history.state?.opensDialog ||
// Back went past the level a dialog below covers
OPEN_DIALOG_STACK.some((dialog) => dialog.replacedLevel))
mainWindow.history.state?.opensDialog
) {
// if there are more dialogs open, push a new state so back() will close the next top dialog
mainWindow.history.pushState(
@@ -411,17 +360,14 @@ const _handleClosed = (ev: HASSDomEvent<DialogClosedParams>) => {
const dialogIndex = OPEN_DIALOG_STACK.findIndex(
(state) => state.dialogTag === ev.detail.dialog
);
const closedState =
dialogIndex !== -1
? OPEN_DIALOG_STACK.splice(dialogIndex, 1)[0]
: undefined;
if (dialogIndex !== -1) {
OPEN_DIALOG_STACK.splice(dialogIndex, 1);
}
if (mainWindow.history.state?.dialog === ev.detail.dialog) {
if (OPEN_DIALOG_STACK.length) {
// if there are more dialogs open, set the top one in history
mainWindow.history.replaceState(
closedState?.replacedLevel ?? {
dialog: OPEN_DIALOG_STACK[OPEN_DIALOG_STACK.length - 1].dialogTag,
},
{ dialog: OPEN_DIALOG_STACK[OPEN_DIALOG_STACK.length - 1].dialogTag },
""
);
} else if (dialogIndex !== -1) {
@@ -430,12 +376,6 @@ const _handleClosed = (ev: HASSDomEvent<DialogClosedParams>) => {
closedDialogUrl = { pathname, search };
mainWindow.history.back();
}
} else if (
closedState?.replacedLevel &&
dialogIndex < OPEN_DIALOG_STACK.length
) {
// The dialog above took over the entry that covers the level
OPEN_DIALOG_STACK[dialogIndex].replacedLevel ??= closedState.replacedLevel;
}
const loaded = ev.detail.dialog ? LOADED[ev.detail.dialog] : undefined;
+9 -4
View File
@@ -14,7 +14,10 @@ import { isExternal } from "../data/external";
import { fetchConfig } from "../data/lovelace/config/types";
import { fetchResources } from "../data/lovelace/resource";
import { MAIN_WINDOW_NAME } from "../data/main_window";
import type { WindowWithPreloads } from "../data/preloads";
import {
getPreloadDashboardUrlPath,
type WindowWithPreloads,
} from "../data/preloads";
import { getRecorderInfo } from "../data/recorder";
import { subscribeRepairsIssueRegistry } from "../data/repairs";
import { subscribeAreaRegistry } from "../data/ws-area_registry";
@@ -193,9 +196,11 @@ window.hassConnection.then(({ conn }) => {
preloadWindow.recorderInfoProm = getRecorderInfo(conn);
// "/" opens the default panel, which is not known yet, so only preload the
// config when the "lovelace" dashboard is opened directly.
if (location.pathname.startsWith("/lovelace/")) {
preloadWindow.llConfProm = fetchConfig(conn, "lovelace", false);
// config when a dashboard is opened directly.
const dashboardUrlPath = getPreloadDashboardUrlPath(location.pathname);
if (dashboardUrlPath) {
preloadWindow.llConfUrlPath = dashboardUrlPath;
preloadWindow.llConfProm = fetchConfig(conn, dashboardUrlPath, false);
preloadWindow.llConfProm.catch(() => {
// Ignore it, it is handled by Lovelace panel.
});
+5 -6
View File
@@ -315,7 +315,9 @@ export class LovelacePanel extends LitElement {
// On first load, we speed up loading page by having LL promise ready
if (preloadWindow.llConfProm) {
confProm = preloadWindow.llConfProm;
if (preloadWindow.llConfUrlPath === this.urlPath) {
confProm = preloadWindow.llConfProm;
}
preloadWindow.llConfProm = undefined;
}
if (!resourcesLoaded) {
@@ -333,12 +335,9 @@ export class LovelacePanel extends LitElement {
const fetchDashboardConfig = () =>
fetchConfig(this.hass!.connection, this.urlPath, forceDiskRefresh);
// The preload is the config of the "lovelace" dashboard. Fetch it again if
// The preload is the config of the dashboard in the URL. Fetch it again if
// it failed, for example because the connection dropped before it came back.
confProm =
confProm && this.urlPath === "lovelace"
? confProm.catch(fetchDashboardConfig)
: fetchDashboardConfig();
confProm = confProm?.catch(fetchDashboardConfig) ?? fetchDashboardConfig();
try {
rawConf = await confProm;
-3
View File
@@ -5,7 +5,6 @@ import { mainWindow } from "../common/dom/get_main_window";
import { updateHistoryState } from "../common/navigate";
import {
closeLastDialog,
isEntryOfDialogBelow,
restoreClosedDialogSearch,
} from "../dialogs/make-dialog-manager";
import type { ProvideHassElement } from "../mixins/provide-hass-lit-mixin";
@@ -79,8 +78,6 @@ export const urlSyncMixin = <
// if we have dialog data we are closing a dialog with appended state
// so dialog has the change to navigate back to the previous state
closeLastDialog(ev.state);
} else if (isEntryOfDialogBelow(ev.state)) {
closeLastDialog(ev.state);
} else if ("dialog" in ev.state) {
// coming to a dialog
// the dialog stack must be empty in this case so this state should be cleaned up
-1
View File
@@ -22,7 +22,6 @@ vi.mock("../../src/dialogs/make-dialog-manager", () => ({
window.history.replaceState(null, "");
return true;
}),
isDialogHistoryEntry: () => Boolean(window.history.state?.dialog),
}));
// Fabricates a raw entry like a document load, which navigate() never produces.
+34
View File
@@ -0,0 +1,34 @@
import { describe, expect, it } from "vitest";
import { getPreloadDashboardUrlPath } from "../../src/data/preloads";
describe("getPreloadDashboardUrlPath", () => {
it("returns the lovelace dashboard", () => {
expect(getPreloadDashboardUrlPath("/lovelace")).toBe("lovelace");
expect(getPreloadDashboardUrlPath("/lovelace/0")).toBe("lovelace");
});
it("returns a dashboard with a hyphen in its url path", () => {
expect(getPreloadDashboardUrlPath("/dashboard-test")).toBe(
"dashboard-test"
);
expect(getPreloadDashboardUrlPath("/dashboard-test/kitchen")).toBe(
"dashboard-test"
);
});
it("returns nothing when the default panel is opened", () => {
expect(getPreloadDashboardUrlPath("/")).toBeUndefined();
});
it("returns nothing for panels that cannot be a dashboard", () => {
expect(getPreloadDashboardUrlPath("/home")).toBeUndefined();
expect(getPreloadDashboardUrlPath("/config/dashboard")).toBeUndefined();
expect(getPreloadDashboardUrlPath("/lovelaces")).toBeUndefined();
expect(
getPreloadDashboardUrlPath("/media-browser/browser")
).toBeUndefined();
expect(
getPreloadDashboardUrlPath("/developer-tools/state")
).toBeUndefined();
});
});
@@ -84,8 +84,6 @@ describe("DialogHistoryMixin", () => {
expect(dialog.level).toBe(1);
expect(dialog.isConnected).toBe(true);
// A dialog opened over this one takes over the entry of the level
window.history.replaceState({ dialog: "test-other-dialog" }, "");
const closed = dialog.closeDialog();
expect(dialog.isConnected).toBe(true);
expect(await closed).toBe(true);
-121
View File
@@ -4,11 +4,8 @@ import { deepActiveElement } from "../../src/common/dom/deep-active-element";
import { fireEvent } from "../../src/common/dom/fire_event";
import { nextRender } from "../../src/common/util/render-status";
import {
closeLastDialog,
DIALOG_WAIT_TIMEOUT,
getTopOpenDialogTag,
isDialogHistoryEntry,
isEntryOfDialogBelow,
showDialog,
} from "../../src/dialogs/make-dialog-manager";
import type { ProvideHassElement } from "../../src/mixins/provide-hass-lit-mixin";
@@ -49,22 +46,11 @@ class TestFlowDialog extends TestNextDialog {}
class TestHistoryDialog extends TestNextDialog {}
class TestTopDialog extends TestNextDialog {}
// Like a confirmation, which only closes from its buttons
class TestRefusingDialog extends TestNextDialog {
public closeDialog() {
return false;
}
}
customElements.define("test-manager-dialog", TestDialog);
customElements.define("test-manager-nested-dialog", TestNestedDialog);
customElements.define("test-manager-next-dialog", TestNextDialog);
customElements.define("test-manager-flow-dialog", TestFlowDialog);
customElements.define("test-manager-history-dialog", TestHistoryDialog);
customElements.define("test-manager-top-dialog", TestTopDialog);
customElements.define("test-manager-refusing-dialog", TestRefusingDialog);
declare global {
interface HTMLElementTagNameMap {
@@ -73,8 +59,6 @@ declare global {
"test-manager-next-dialog": TestNextDialog;
"test-manager-flow-dialog": TestFlowDialog;
"test-manager-history-dialog": TestHistoryDialog;
"test-manager-top-dialog": TestTopDialog;
"test-manager-refusing-dialog": TestRefusingDialog;
}
}
@@ -245,108 +229,3 @@ describe("dialog manager history wait", () => {
}
});
});
// A dialog opened over a level of another dialog (see DialogHistoryMixin)
// must keep the number of history entries and give the level back, or Back
// and closing the lower dialog land on the wrong entry.
describe("dialog manager over a dialog level", () => {
it("works", async () => {
const element = host();
const showWithHistory = async (dialogTag: string) => {
await showDialog(element, dialogTag, {}, () => Promise.resolve());
return element.shadowRoot!.querySelector(dialogTag) as TestNextDialog;
};
const popstate = () =>
new Promise((resolve) => {
window.addEventListener("popstate", resolve, { once: true });
});
const level = (depth: number) => ({
dialogData: { dialogId: "lower", depth },
});
try {
window.history.replaceState({ opener: true }, "");
const lower = await showWithHistory("test-manager-next-dialog");
window.history.pushState(level(1), "");
window.history.pushState(level(2), "");
const { length } = window.history;
expect(isDialogHistoryEntry()).toBe(true);
let upper = await showWithHistory("test-manager-flow-dialog");
expect(window.history.state).toEqual({
dialog: "test-manager-flow-dialog",
});
expect(window.history.length).toBe(length);
upper.close();
expect(window.history.state).toEqual(level(2));
upper = await showWithHistory("test-manager-flow-dialog");
window.history.back();
await popstate();
// Like the url-sync mixin
await closeLastDialog(window.history.state);
expect(window.history.state).toEqual(level(2));
upper.close();
// Three dialogs over the level, Back closes one at a time
upper = await showWithHistory("test-manager-flow-dialog");
let top = await showWithHistory("test-manager-top-dialog");
const third = await showWithHistory("test-manager-history-dialog");
window.history.back();
await popstate();
await closeLastDialog(window.history.state);
third.close();
expect(window.history.state).toEqual({
dialog: "test-manager-top-dialog",
});
window.history.back();
await popstate();
await closeLastDialog(window.history.state);
top.close();
expect(window.history.state).toEqual({
dialog: "test-manager-flow-dialog",
});
window.history.back();
await popstate();
await closeLastDialog(window.history.state);
upper.close();
expect(window.history.state).toEqual(level(2));
// Shown again, then the next dialog takes over the entry
upper = await showWithHistory("test-manager-flow-dialog");
upper = await showWithHistory("test-manager-flow-dialog");
top = await showWithHistory("test-manager-top-dialog");
upper.close();
top.close();
expect(window.history.state).toEqual(level(2));
// Refusing Back keeps the dialog's entry
const refusing = await showWithHistory("test-manager-refusing-dialog");
window.history.back();
await popstate();
expect(await closeLastDialog(window.history.state)).toBe(false);
expect(window.history.state).toEqual({
dialog: "test-manager-refusing-dialog",
});
refusing.close();
expect(window.history.state).toEqual(level(2));
expect(window.history.length).toBe(length);
// Over the first level, Back lands on the lower dialog's own entry
window.history.back();
await popstate();
upper = await showWithHistory("test-manager-flow-dialog");
window.history.back();
await popstate();
expect(isEntryOfDialogBelow(window.history.state)).toBe(true);
await closeLastDialog(window.history.state);
expect(window.history.state).toEqual(level(1));
upper.close();
lower.close();
// Left behind, like after a page reload
expect(isDialogHistoryEntry()).toBe(false);
} finally {
window.history.replaceState(null, "");
}
});
});
@@ -7,7 +7,6 @@ import { PreventUnsavedMixin } from "../../src/mixins/prevent-unsaved-mixin";
// navigate() closes open dialogs before touching history.
vi.mock("../../src/dialogs/make-dialog-manager", () => ({
closeAllDialogs: vi.fn(async () => true),
isDialogHistoryEntry: () => Boolean(window.history.state?.dialog),
}));
interface TestState {
@@ -1,6 +1,8 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { subscribeLovelaceUpdates } from "../../../src/data/lovelace";
import type { LovelaceRawConfig } from "../../../src/data/lovelace/config/types";
import { fetchConfig } from "../../../src/data/lovelace/config/types";
import type { WindowWithPreloads } from "../../../src/data/preloads";
import "../../../src/panels/lovelace/ha-panel-lovelace";
type LovelacePanel = HTMLElement & {
@@ -63,9 +65,54 @@ const openPanel = async (urlPath: string) => {
return { panel, unsub, notifyUpdated: () => notifyUpdated() };
};
const preloadWindow = window as WindowWithPreloads;
const preloadConfig = (
urlPath: string,
confProm: Promise<LovelaceRawConfig>
) => {
confProm.catch(() => undefined);
preloadWindow.llConfUrlPath = urlPath;
preloadWindow.llConfProm = confProm;
};
afterEach(() => {
document.body.replaceChildren();
vi.clearAllMocks();
delete preloadWindow.llConfProm;
delete preloadWindow.llConfUrlPath;
});
describe("ha-panel-lovelace config preload", () => {
it("uses the preloaded config of its own dashboard", async () => {
preloadConfig("dashboard-test", Promise.resolve({ views: [] }));
await openPanel("dashboard-test");
expect(fetchConfig).not.toHaveBeenCalled();
expect(preloadWindow.llConfProm).toBeUndefined();
});
it("ignores the preloaded config of another dashboard", async () => {
preloadConfig("dashboard-other", Promise.resolve({ views: [] }));
await openPanel("dashboard-test");
expect(fetchConfig).toHaveBeenCalledTimes(1);
expect(fetchConfig).toHaveBeenCalledWith(
expect.anything(),
"dashboard-test",
false
);
expect(preloadWindow.llConfProm).toBeUndefined();
});
it("fetches the config again when its preload failed", async () => {
preloadConfig("dashboard-test", Promise.reject(new Error("closed")));
await openPanel("dashboard-test");
expect(fetchConfig).toHaveBeenCalledTimes(1);
expect(fetchConfig).toHaveBeenCalledWith(
expect.anything(),
"dashboard-test",
false
);
});
});
describe("ha-panel-lovelace config updates", () => {