@mdn/fred 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/components/media/index.css +5 -5
- package/components/menu/missing-docs.json +0 -1
- package/components/search-modal/element.css +1 -2
- package/components/search-modal/element.js +15 -1
- package/components/search-modal/global.css +7 -0
- package/out/service-worker.js +1 -1
- package/out/static/client/{2834.79ced0a30b0939c7.js → 2834.e727d9ac07ad4286.js} +2 -2
- package/out/static/client/2834.e727d9ac07ad4286.js.map +1 -0
- package/out/static/client/{3259.767db1f79a406e65.js → 3259.ac8a5539251c647a.js} +2 -2
- package/out/static/client/{3259.767db1f79a406e65.js.map → 3259.ac8a5539251c647a.js.map} +1 -1
- package/out/static/{legacy/4517.e81e479dd8baaa08.js → client/4517.0c5b7819647ee298.js} +2 -2
- package/out/static/client/4517.0c5b7819647ee298.js.map +1 -0
- package/out/static/client/6375.e9f9517e7d93e984.js +26 -0
- package/out/static/client/6375.e9f9517e7d93e984.js.map +1 -0
- package/out/static/client/{718.071765b571e2315c.js → 718.3a790c4c45336906.js} +2 -2
- package/out/static/client/{718.071765b571e2315c.js.map → 718.3a790c4c45336906.js.map} +1 -1
- package/out/static/{legacy/8292.8c8aab5cf0e0fc8e.js → client/8292.15265e24ff099b04.js} +2 -2
- package/out/static/client/{8292.8c8aab5cf0e0fc8e.js.map → 8292.15265e24ff099b04.js.map} +1 -1
- package/out/static/client/{9127.4debc5342015b0ec.js → 9127.08c4f752c4186007.js} +2 -2
- package/out/static/client/{9127.4debc5342015b0ec.js.map → 9127.08c4f752c4186007.js.map} +1 -1
- package/out/static/client/{9204.515db9110e143075.js → 9204.f8aa5d9f8a79f3d4.js} +2 -2
- package/out/static/client/{9204.515db9110e143075.js.map → 9204.f8aa5d9f8a79f3d4.js.map} +1 -1
- package/out/static/client/{9326.6a60853854f7ec9b.css → 9326.431ef0e548c5f096.css} +2 -2
- package/out/static/client/{9326.6a60853854f7ec9b.css.map → 9326.431ef0e548c5f096.css.map} +1 -1
- package/out/static/client/{index.15ed245d7a4f66ec.js → index.b2ccf995e945e9dc.js} +10 -5
- package/out/static/client/index.b2ccf995e945e9dc.js.map +1 -0
- package/out/static/client/{runtime.6bb9da89bdbb84bf.js → runtime.8ebca7827bf4c35c.js} +2 -2
- package/out/static/client/{runtime.6bb9da89bdbb84bf.js.map → runtime.8ebca7827bf4c35c.js.map} +1 -1
- package/out/static/client/stats.json +163 -163
- package/out/static/client/{styles-blog-post.c03ec8a22f8d4ff6.css → styles-blog-post.d0b92f36d3ccd2ae.css} +2 -2
- package/out/static/client/{styles-blog-post.c03ec8a22f8d4ff6.css.map → styles-blog-post.d0b92f36d3ccd2ae.css.map} +1 -1
- package/out/static/client/{styles-curriculum-landing.6700bec8f414e4d9.css → styles-curriculum-landing.9b5fbdd11a9d6c5b.css} +2 -2
- package/out/static/client/{styles-curriculum-landing.6700bec8f414e4d9.css.map → styles-curriculum-landing.9b5fbdd11a9d6c5b.css.map} +1 -1
- package/out/static/client/{styles-featured-articles.b4ecc71ab736bd5b.css → styles-featured-articles.a2c1f1fd278c9256.css} +2 -2
- package/out/static/client/{styles-featured-articles.b4ecc71ab736bd5b.css.map → styles-featured-articles.a2c1f1fd278c9256.css.map} +1 -1
- package/out/static/client/{styles-generic-about.8fb97dff70bba559.css → styles-generic-about.8856856e6f4b7e46.css} +2 -2
- package/out/static/client/{styles-generic-about.8fb97dff70bba559.css.map → styles-generic-about.8856856e6f4b7e46.css.map} +1 -1
- package/out/static/client/styles-global.3da376739551015c.css +2 -0
- package/out/static/client/styles-global.3da376739551015c.css.map +1 -0
- package/out/static/client/styles-global.445b59e1ff23f88c.js +1 -0
- package/out/static/client/{styles-homepage-contributor-spotlight.2bcbb1476c70410c.css → styles-homepage-contributor-spotlight.5dc97e2f6ae1056d.css} +2 -2
- package/out/static/client/{styles-homepage-contributor-spotlight.2bcbb1476c70410c.css.map → styles-homepage-contributor-spotlight.5dc97e2f6ae1056d.css.map} +1 -1
- package/out/static/client/{styles-latest-news.ef3b9e57333a87bc.css → styles-latest-news.afe0cccaa067269f.css} +2 -2
- package/out/static/client/{styles-latest-news.ef3b9e57333a87bc.css.map → styles-latest-news.afe0cccaa067269f.css.map} +1 -1
- package/out/static/legacy/{2834.79ced0a30b0939c7.js → 2834.e727d9ac07ad4286.js} +2 -2
- package/out/static/legacy/2834.e727d9ac07ad4286.js.map +1 -0
- package/out/static/{client/4517.e81e479dd8baaa08.js → legacy/4517.0c5b7819647ee298.js} +2 -2
- package/out/static/legacy/4517.0c5b7819647ee298.js.map +1 -0
- package/out/static/legacy/6375.e9f9517e7d93e984.js +26 -0
- package/out/static/legacy/6375.e9f9517e7d93e984.js.map +1 -0
- package/out/static/{client/8292.8c8aab5cf0e0fc8e.js → legacy/8292.15265e24ff099b04.js} +2 -2
- package/out/static/legacy/{8292.8c8aab5cf0e0fc8e.js.map → 8292.15265e24ff099b04.js.map} +1 -1
- package/out/static/legacy/asset-manifest.json +9 -9
- package/out/static/legacy/{index.167b77b176751752.html → index.85161ba7fe682ee8.html} +1 -1
- package/out/static/legacy/stats.json +9 -9
- package/out/static/legacy/{yari.9d76a374f51def3a.js → yari.01d97d56e30935ec.js} +3 -3
- package/out/static/legacy/{yari.9d76a374f51def3a.js.map → yari.01d97d56e30935ec.js.map} +1 -1
- package/out/static/ssr/2834.js +1 -1
- package/out/static/ssr/2834.js.map +1 -1
- package/out/static/ssr/4517.js +1 -1
- package/out/static/ssr/4517.js.map +1 -1
- package/out/static/ssr/6375.js +14 -13
- package/out/static/ssr/6375.js.map +1 -1
- package/out/static/ssr/8292.js +1 -1
- package/out/static/ssr/8292.js.map +1 -1
- package/out/static/ssr/index.js +10 -5
- package/out/static/ssr/index.js.map +1 -1
- package/out/static/ssr/stats.json +4 -4
- package/package.json +12 -12
- package/out/static/client/2834.79ced0a30b0939c7.js.map +0 -1
- package/out/static/client/4517.e81e479dd8baaa08.js.map +0 -1
- package/out/static/client/6375.1241b12199e08382.js +0 -25
- package/out/static/client/6375.1241b12199e08382.js.map +0 -1
- package/out/static/client/index.15ed245d7a4f66ec.js.map +0 -1
- package/out/static/client/styles-global.aad93fff9f2f386b.js +0 -1
- package/out/static/client/styles-global.d76107900f38bb57.css +0 -2
- package/out/static/client/styles-global.d76107900f38bb57.css.map +0 -1
- package/out/static/legacy/2834.79ced0a30b0939c7.js.map +0 -1
- package/out/static/legacy/4517.e81e479dd8baaa08.js.map +0 -1
- package/out/static/legacy/6375.1241b12199e08382.js +0 -25
- package/out/static/legacy/6375.1241b12199e08382.js.map +0 -1
- /package/out/static/client/{index.15ed245d7a4f66ec.js.LICENSE.txt → index.b2ccf995e945e9dc.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{yari.9d76a374f51def3a.js.LICENSE.txt → yari.01d97d56e30935ec.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.4.3](https://github.com/mdn/fred/compare/v2.4.2...v2.4.3) (2026-04-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous
|
|
7
|
+
|
|
8
|
+
* **deps-dev:** bump @mdn/browser-compat-data from 7.3.11 to 7.3.12 ([#1491](https://github.com/mdn/fred/issues/1491)) ([c135a83](https://github.com/mdn/fred/commit/c135a83e2732bc9342a18ae67f07065a6f9b17cb))
|
|
9
|
+
* **deps-dev:** bump the npm-dev group with 2 updates ([#1484](https://github.com/mdn/fred/issues/1484)) ([f7f1096](https://github.com/mdn/fred/commit/f7f1096c93bfd978176c0edcec9f53d90b66f0e2))
|
|
10
|
+
* **deps-dev:** bump the npm-dev group with 2 updates ([#1489](https://github.com/mdn/fred/issues/1489)) ([f2e1e39](https://github.com/mdn/fred/commit/f2e1e394c7dc1d6be60d9601a5a7bcfaf2ea8b8b))
|
|
11
|
+
* **deps:** bump @mdn/rari from 0.2.17 to 0.2.19 ([#1492](https://github.com/mdn/fred/issues/1492)) ([7693845](https://github.com/mdn/fred/commit/76938450156aea8657f74dfa6d6662fd86950b5e))
|
|
12
|
+
* **media:** reorder width-first in two-part queries ([#1464](https://github.com/mdn/fred/issues/1464)) ([c808c41](https://github.com/mdn/fred/commit/c808c4119d9e08b84fb95ff7da2a53dafc5767e2))
|
|
13
|
+
* **menu:** update menu entries ([#1487](https://github.com/mdn/fred/issues/1487)) ([2065f38](https://github.com/mdn/fred/commit/2065f3885866a63d9007649d7489fa3a346ab3e2))
|
|
14
|
+
|
|
15
|
+
## [2.4.2](https://github.com/mdn/fred/compare/v2.4.1...v2.4.2) (2026-04-15)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **search-modal:** move overscroll-behavior to dialog ([#1455](https://github.com/mdn/fred/issues/1455)) ([c2d9952](https://github.com/mdn/fred/commit/c2d9952436c693c5cb7800328b2350db2a0fbf0e))
|
|
21
|
+
* **search-modal:** overflow documentElement when dialog is open ([#1456](https://github.com/mdn/fred/issues/1456)) ([f60fdb0](https://github.com/mdn/fred/commit/f60fdb0eadcd3e33e092ae27a59277bd47e060bc))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Miscellaneous
|
|
25
|
+
|
|
26
|
+
* **deps-dev:** bump @mdn/browser-compat-data from 7.3.10 to 7.3.11 ([#1472](https://github.com/mdn/fred/issues/1472)) ([83d817d](https://github.com/mdn/fred/commit/83d817d15c70a823a9068b26e9fc5fd81faad9f2))
|
|
27
|
+
* **deps-dev:** bump basic-ftp from 5.2.1 to 5.2.2 ([#1467](https://github.com/mdn/fred/issues/1467)) ([d089b0a](https://github.com/mdn/fred/commit/d089b0a8ea6d2589583d5745eb3e01b284415a07))
|
|
28
|
+
* **deps-dev:** bump prettier from 3.8.2 to 3.8.3 in the npm-dev group ([#1480](https://github.com/mdn/fred/issues/1480)) ([4a56ca4](https://github.com/mdn/fred/commit/4a56ca45e23e57eeccedfa8a4a21e20c6c3a9426))
|
|
29
|
+
* **deps-dev:** bump the npm-dev group across 1 directory with 5 updates ([#1476](https://github.com/mdn/fred/issues/1476)) ([84dfc50](https://github.com/mdn/fred/commit/84dfc50c580e2dfaa852749a7f45bc1a0782f8d9))
|
|
30
|
+
* **deps-dev:** bump ts-morph from 27.0.2 to 28.0.0 ([#1473](https://github.com/mdn/fred/issues/1473)) ([842d422](https://github.com/mdn/fred/commit/842d422e333e294a291e99f1116d83ed6b2ef8a8))
|
|
31
|
+
* **deps:** bump @mdn/rari from 0.2.16 to 0.2.17 ([#1485](https://github.com/mdn/fred/issues/1485)) ([fd7251a](https://github.com/mdn/fred/commit/fd7251a0cbd9310fb0ff0b904901702fa2ad5b4f))
|
|
32
|
+
* **deps:** bump follow-redirects from 1.15.9 to 1.16.0 ([#1481](https://github.com/mdn/fred/issues/1481)) ([a5d5eae](https://github.com/mdn/fred/commit/a5d5eae1ad7e7e76ad67d1003d9fb266b5dc99f3))
|
|
33
|
+
|
|
3
34
|
## [2.4.1](https://github.com/mdn/fred/compare/v2.4.0...v2.4.1) (2026-04-10)
|
|
4
35
|
|
|
5
36
|
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
@custom-media --screen-xsmall (width <= 426px);
|
|
4
4
|
|
|
5
|
-
@custom-media --screen-small-and-wider (
|
|
5
|
+
@custom-media --screen-small-and-wider (width > 426px);
|
|
6
6
|
@custom-media --screen-small-only (426px < width <= 769px);
|
|
7
7
|
@custom-media --screen-small-and-narrower (width <= 769px);
|
|
8
8
|
|
|
9
|
-
@custom-media --screen-medium-and-wider (
|
|
9
|
+
@custom-media --screen-medium-and-wider (width > 769px);
|
|
10
10
|
@custom-media --screen-medium-only (769px < width <= 992px);
|
|
11
11
|
@custom-media --screen-medium-and-narrower (width <= 992px);
|
|
12
12
|
|
|
13
|
-
@custom-media --screen-large-and-wider (
|
|
13
|
+
@custom-media --screen-large-and-wider (width > 992px);
|
|
14
14
|
@custom-media --screen-large-only (992px < width <= 1200px);
|
|
15
15
|
@custom-media --screen-large-and-narrower (width <= 1200px);
|
|
16
16
|
|
|
17
|
-
@custom-media --screen-xlarge-and-wider (
|
|
17
|
+
@custom-media --screen-xlarge-and-wider (width > 1200px);
|
|
18
18
|
@custom-media --screen-xlarge-only (1200px < width <= 1441px);
|
|
19
19
|
@custom-media --screen-xlarge-and-narrower (width <= 1441px);
|
|
20
20
|
|
|
21
|
-
@custom-media --screen-xxlarge (
|
|
21
|
+
@custom-media --screen-xxlarge (width > 1441px);
|
|
22
22
|
|
|
23
23
|
@custom-media --screen-menu-full (width > 1044px);
|
|
24
24
|
@custom-media --screen-menu-hamburger (width <= 1044px);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
dialog {
|
|
8
8
|
padding: 0;
|
|
9
|
+
overscroll-behavior: contain;
|
|
9
10
|
border: 0;
|
|
10
11
|
|
|
11
12
|
@media (--screen-menu-full) {
|
|
@@ -131,8 +132,6 @@ ul {
|
|
|
131
132
|
|
|
132
133
|
overflow: auto;
|
|
133
134
|
|
|
134
|
-
overscroll-behavior: contain;
|
|
135
|
-
|
|
136
135
|
&:has(li) {
|
|
137
136
|
border-top: 1px solid var(--color-border-primary);
|
|
138
137
|
}
|
|
@@ -209,6 +209,14 @@ export class MDNSearchModal extends L10nMixin(LitElement) {
|
|
|
209
209
|
this.shadowRoot?.querySelector("dialog")?.close();
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
/** @param {ToggleEvent} event */
|
|
213
|
+
_toggle({ newState }) {
|
|
214
|
+
document.documentElement.classList.toggle(
|
|
215
|
+
"search-modal-open",
|
|
216
|
+
newState === "open",
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
212
220
|
connectedCallback() {
|
|
213
221
|
super.connectedCallback();
|
|
214
222
|
this._globalKeydown = this._globalKeydown.bind(this);
|
|
@@ -221,6 +229,7 @@ export class MDNSearchModal extends L10nMixin(LitElement) {
|
|
|
221
229
|
super.disconnectedCallback();
|
|
222
230
|
this.renderRoot.removeEventListener("mouseover", this._loadIndex);
|
|
223
231
|
document.removeEventListener("keydown", this._globalKeydown);
|
|
232
|
+
document.documentElement.classList.remove("search-modal-open");
|
|
224
233
|
}
|
|
225
234
|
|
|
226
235
|
_renderLoadingSearchIndex() {
|
|
@@ -237,7 +246,12 @@ export class MDNSearchModal extends L10nMixin(LitElement) {
|
|
|
237
246
|
? `/${this.locale}/search?${new URLSearchParams({ q: this._query })}`
|
|
238
247
|
: null;
|
|
239
248
|
return html`
|
|
240
|
-
<dialog
|
|
249
|
+
<dialog
|
|
250
|
+
@keydown=${this._keydown}
|
|
251
|
+
@focusin=${this._focus}
|
|
252
|
+
@toggle=${this._toggle}
|
|
253
|
+
closedby="any"
|
|
254
|
+
>
|
|
241
255
|
<form
|
|
242
256
|
method="get"
|
|
243
257
|
action=${`/${this.locale}/search`}
|