@mdn/fred 1.3.1 → 1.3.2

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +15 -0
  3. package/components/content-section/server.css +5 -0
  4. package/components/doc/server.js +1 -1
  5. package/components/scrim-inline/element.css +7 -0
  6. package/out/service-worker.js +1 -1
  7. package/out/static/client/2319.daf8150c3dd00fb4.js +60 -0
  8. package/out/static/client/2319.daf8150c3dd00fb4.js.map +1 -0
  9. package/out/static/client/9379.b25587d6a239abd3.js +2 -0
  10. package/out/static/client/9379.b25587d6a239abd3.js.map +1 -0
  11. package/out/static/client/{index.55048de2c0265ab9.js → index.b9d9ebb034538241.js} +10 -10
  12. package/out/static/client/{index.55048de2c0265ab9.js.map → index.b9d9ebb034538241.js.map} +1 -1
  13. package/out/static/client/{runtime.aa4d3521a7a5fab7.js → runtime.cc9114c9e108157f.js} +2 -2
  14. package/out/static/client/{runtime.aa4d3521a7a5fab7.js.map → runtime.cc9114c9e108157f.js.map} +1 -1
  15. package/out/static/client/stats.json +97 -97
  16. package/out/static/client/{styles-content-section.0dbf80e850fa3402.css → styles-content-section.e0bbadd0c4bc857d.css} +2 -2
  17. package/out/static/client/{styles-content-section.0dbf80e850fa3402.css.map → styles-content-section.e0bbadd0c4bc857d.css.map} +1 -1
  18. package/out/static/client/{styles-global.4640cc3400ce02f4.js → styles-global.57880af9e7d6375b.js} +1 -1
  19. package/out/static/client/{styles-global.4031cdde644ed6ce.css → styles-global.c9f2a49e47bf5c55.css} +2 -2
  20. package/out/static/client/{styles-global.4031cdde644ed6ce.css.map → styles-global.c9f2a49e47bf5c55.css.map} +1 -1
  21. package/out/static/legacy/{1539.09699829ad0a6c6a.js → 1539.ed9136a5f40f8f86.js} +3 -3
  22. package/out/static/legacy/{1539.09699829ad0a6c6a.js.map → 1539.ed9136a5f40f8f86.js.map} +1 -1
  23. package/out/static/legacy/asset-manifest.json +7 -7
  24. package/out/static/legacy/{index.87ff9acaa286d7e2.js → index.3504df1c7b6a1b29.js} +3 -3
  25. package/out/static/legacy/{index.87ff9acaa286d7e2.js.map → index.3504df1c7b6a1b29.js.map} +1 -1
  26. package/out/static/legacy/{index.a38906846551bf19.html → index.e4ab469094607d20.html} +1 -1
  27. package/out/static/legacy/stats.json +13 -13
  28. package/out/static/legacy/{yari.1754859c2c682e51.js → yari.7a85003b4add8414.js} +3 -3
  29. package/out/static/legacy/{yari.1754859c2c682e51.js.map → yari.7a85003b4add8414.js.map} +1 -1
  30. package/out/static/ssr/index.js +4 -4
  31. package/out/static/ssr/index.js.map +1 -1
  32. package/out/static/ssr/stats.json +4 -4
  33. package/package.json +6 -6
  34. package/out/static/client/2319.0beb43a38dd85a2c.js +0 -60
  35. package/out/static/client/2319.0beb43a38dd85a2c.js.map +0 -1
  36. package/out/static/client/9379.fdeb8d3dbec381d4.js +0 -2
  37. package/out/static/client/9379.fdeb8d3dbec381d4.js.map +0 -1
  38. /package/out/static/client/{2319.0beb43a38dd85a2c.js.LICENSE.txt → 2319.daf8150c3dd00fb4.js.LICENSE.txt} +0 -0
  39. /package/out/static/client/{index.55048de2c0265ab9.js.LICENSE.txt → index.b9d9ebb034538241.js.LICENSE.txt} +0 -0
  40. /package/out/static/legacy/{1539.09699829ad0a6c6a.js.LICENSE.txt → 1539.ed9136a5f40f8f86.js.LICENSE.txt} +0 -0
  41. /package/out/static/legacy/{index.87ff9acaa286d7e2.js.LICENSE.txt → index.3504df1c7b6a1b29.js.LICENSE.txt} +0 -0
  42. /package/out/static/legacy/{yari.1754859c2c682e51.js.LICENSE.txt → yari.7a85003b4add8414.js.LICENSE.txt} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.2](https://github.com/mdn/fred/compare/v1.3.1...v1.3.2) (2025-09-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **content-section:** move dt/dd in dt closer together ([#704](https://github.com/mdn/fred/issues/704)) ([b93e613](https://github.com/mdn/fred/commit/b93e6136f16c21c8ca956f3db112785429caf18c))
9
+ * **doc:** use pageTitle as `<title>` ([#693](https://github.com/mdn/fred/issues/693)) ([4d0756e](https://github.com/mdn/fred/commit/4d0756e5e22b95fc7a5802f892ac9b7204cf8fee))
10
+ * **scrim-inline:** add missing style ([#700](https://github.com/mdn/fred/issues/700)) ([2d8e30a](https://github.com/mdn/fred/commit/2d8e30a0caf7b487f03aadfaefb4450395517c37))
11
+
12
+
13
+ ### Miscellaneous
14
+
15
+ * **deps-dev:** bump @mdn/browser-compat-data from 7.1.1 to 7.1.2 ([#699](https://github.com/mdn/fred/issues/699)) ([382c653](https://github.com/mdn/fred/commit/382c653c00146e06586f699d714c728d078e5715))
16
+ * **deps-dev:** bump @types/node from 22.18.0 to 22.18.1 in the dev group ([#707](https://github.com/mdn/fred/issues/707)) ([89244ab](https://github.com/mdn/fred/commit/89244ab6f0c022efe12cced7bfbfe792143dedba))
17
+ * **deps-dev:** bump the dev group with 3 updates ([#695](https://github.com/mdn/fred/issues/695)) ([5031a68](https://github.com/mdn/fred/commit/5031a688326d0bd973746b7251c51693a1b4dfa0))
18
+
3
19
  ## [1.3.1](https://github.com/mdn/fred/compare/v1.3.0...v1.3.1) (2025-09-03)
4
20
 
5
21
 
package/README.md CHANGED
@@ -24,6 +24,21 @@ MDN's next fr(ont)e(n)d.
24
24
  - `npm run preview`
25
25
  - runs the preview server: using the production bundles with the rari server: useful for testing our prod rspack config
26
26
 
27
+ ### Accessing from non-localhost
28
+
29
+ If you want to access fred from a different machine, you'll need to run with certain options:
30
+
31
+ - `HTTPS=true` to enable HTTPS with a self-signed certificate, allowing Web APIs requiring a secure context to work
32
+ - `ORIGIN_MAIN=your.local.ip.address` to allowlist your address in the playground
33
+
34
+ So a full command might look like:
35
+
36
+ ```
37
+ HTTPS=true ORIGIN_MAIN=192.168.0.99 npm run start
38
+ ```
39
+
40
+ This is useful to test changes on mobile, tablets and other platforms.
41
+
27
42
  ## Development principles
28
43
 
29
44
  ### Environment variables
@@ -245,6 +245,11 @@
245
245
 
246
246
  dd {
247
247
  margin-left: 1rem;
248
+
249
+ /* Move description closer to term. */
250
+ p:first-child {
251
+ margin-top: 0.5rem;
252
+ }
248
253
  }
249
254
 
250
255
  ul {
@@ -6,7 +6,7 @@ export class Doc extends ServerComponent {
6
6
  /**
7
7
  * @param {import("@fred").Context<import("@rari").DocPage>} context
8
8
  */ render(context) {
9
- context.pageTitle = context.doc.title;
9
+ context.pageTitle = context.doc.pageTitle;
10
10
  return PageLayout.render(context, ReferenceLayout.render(context));
11
11
  }
12
12
  }
@@ -2,6 +2,13 @@
2
2
 
3
3
  :host {
4
4
  display: block;
5
+
6
+ width: 100%;
7
+ max-width: 36rem;
8
+ aspect-ratio: 1.5;
9
+
10
+ margin: 0.5rem auto;
11
+
5
12
  overflow: hidden;
6
13
  }
7
14