Skip to content

Commit e974c46

Browse files
committed
Merge branch 'lit-interactive-examples' into next
2 parents 98ac8e4 + f82475a commit e974c46

23 files changed

+597
-414
lines changed

.github/workflows/npm-publish.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ jobs:
6464
# so you have to set it to something. So let's (ab)use the content
6565
# we use for the end-to-end testing.
6666
CONTENT_ROOT: testing/content/files
67-
run: yarn build:prepare
67+
# We use the legacy version for now to include spas and popularities in
68+
# the package.
69+
run: yarn build:legacy:prepare
6870

6971
- name: Publish
7072
if: steps.release.outputs.release_created

.github/workflows/prod-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ jobs:
264264
REACT_APP_SURVEY_RATE_FROM_WEBDX_EDITING_2024: 0.0
265265
REACT_APP_SURVEY_RATE_TILL_WEBDX_EDITING_2024: 0.1 # 10%
266266
REACT_APP_SURVEY_START_HOUSE_SURVEY_2025: 1736208000000 # new Date("2025-01-07Z").getTime()
267-
REACT_APP_SURVEY_END_HOUSE_SURVEY_2025: 1736899200000 # new Date("2025-01-15Z").getTime()
267+
REACT_APP_SURVEY_END_HOUSE_SURVEY_2025: 1737072000000 # new Date("2025-01-17Z").getTime()
268268
REACT_APP_SURVEY_RATE_FROM_HOUSE_SURVEY_2025: 0.0
269269
REACT_APP_SURVEY_RATE_TILL_HOUSE_SURVEY_2025: 0.05 # 5%
270270

.github/workflows/stage-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ jobs:
281281
REACT_APP_SURVEY_RATE_FROM_WEB_APP_AUGUST_2024: 0.0
282282
REACT_APP_SURVEY_RATE_TILL_WEB_APP_AUGUST_2024: 0.05 # 5%
283283
REACT_APP_SURVEY_START_HOUSE_SURVEY_2025: 0 # stage
284-
REACT_APP_SURVEY_END_HOUSE_SURVEY_2025: 1736899200000 # new Date("2025-01-15Z").getTime()
284+
REACT_APP_SURVEY_END_HOUSE_SURVEY_2025: 1737072000000 # new Date("2025-01-17Z").getTime()
285285
REACT_APP_SURVEY_RATE_FROM_HOUSE_SURVEY_2025: 0.0
286286
REACT_APP_SURVEY_RATE_TILL_HOUSE_SURVEY_2025: 0.05 # 5%
287287

.github/workflows/test-build.yml

+48-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ env:
66
on:
77
workflow_dispatch:
88
inputs:
9+
rari-ref:
10+
description: "rari ref to build (leave blank for npm release)"
11+
type: string
12+
default: ""
13+
14+
content-ref:
15+
description: "content ref to build"
16+
type: string
17+
default: "main"
18+
919
notes:
1020
description: "Notes"
1121
required: false
@@ -37,6 +47,13 @@ jobs:
3747
if: github.repository == 'mdn/yari'
3848

3949
steps:
50+
- name: Print information about build
51+
run: |
52+
echo "rari-ref: ${{ github.event.inputs.rari-ref }}"
53+
echo "content-ref: ${{ github.event.inputs.content-ref }}"
54+
echo "notes: ${{ github.event.inputs.notes || env.DEFAULT_NOTES }}"
55+
echo "invalidate: ${{ github.event.inputs.invalidate }}"
56+
4057
- uses: actions/checkout@v4
4158

4259
- uses: actions/checkout@v4
@@ -49,6 +66,7 @@ jobs:
4966
# but for now it's good enough. We'll need all the history
5067
# so we can figure out each document's last-modified date.
5168
fetch-depth: 0
69+
ref: ${{ github.event.inputs.content-ref }}
5270

5371
- uses: actions/checkout@v4
5472
if: ${{ ! vars.SKIP_BUILD }}
@@ -109,7 +127,7 @@ jobs:
109127
uses: actions/setup-node@v4
110128
with:
111129
node-version-file: ".nvmrc"
112-
cache: yarn
130+
cache: ${{ github.event.inputs.rari-ref == '' && 'yarn' || '' }}
113131

114132
- name: Install all yarn packages
115133
if: ${{ ! vars.SKIP_BUILD }}
@@ -119,9 +137,36 @@ jobs:
119137
# See https://github.com/microsoft/vscode-ripgrep#github-api-limit-note
120138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121139

122-
- name: Print information about build
140+
- uses: actions/checkout@v4
141+
if: ${{ !( vars.SKIP_BUILD || github.event.inputs.rari-ref == '' ) }}
142+
with:
143+
repository: mdn/rari
144+
path: mdn/rari
145+
ref: ${{ github.event.inputs.rari-ref }}
146+
147+
- name: Cache Cargo registry
148+
if: ${{ !( vars.SKIP_BUILD || github.event.inputs.rari-ref == '' ) }}
149+
uses: actions/cache@v4
150+
with:
151+
path: |
152+
~/.cargo/registry/index/
153+
~/.cargo/registry/cache/
154+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
155+
restore-keys: ${{ runner.os }}-cargo-
156+
157+
- uses: dtolnay/rust-toolchain@stable
158+
if: ${{ !( vars.SKIP_BUILD || github.event.inputs.rari-ref == '' ) }}
159+
160+
- name: sccache-cache
161+
if: ${{ !( vars.SKIP_BUILD || github.event.inputs.rari-ref == '' ) }}
162+
uses: mozilla-actions/sccache-action@v0.0.7
163+
164+
- name: Build rari
165+
if: ${{ !( vars.SKIP_BUILD || github.event.inputs.rari-ref == '' ) }}
123166
run: |
124-
echo "notes: ${{ github.event.inputs.notes || env.DEFAULT_NOTES }}"
167+
cd mdn/rari
168+
cargo build --release
169+
cp target/release/rari ../../node_modules/@mdn/rari/bin/
125170
126171
- name: Print information about CPU
127172
run: cat /proc/cpuinfo

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.0.1"
2+
".": "4.1.2"
33
}

CHANGELOG.md

+80
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,85 @@
11
# Changelog
22

3+
## [4.1.2](https://github.com/mdn/yari/compare/v4.1.1...v4.1.2) (2025-01-10)
4+
5+
6+
### Miscellaneous
7+
8+
* **deps-dev:** bump @swc/core from 1.10.6 to 1.10.7 ([#12425](https://github.com/mdn/yari/issues/12425)) ([bdaba43](https://github.com/mdn/yari/commit/bdaba431f45f6f7cebd129689aacae161f3d813b))
9+
* **deps-dev:** bump typescript from 5.7.2 to 5.7.3 ([#12417](https://github.com/mdn/yari/issues/12417)) ([6d1e257](https://github.com/mdn/yari/commit/6d1e257a0e3bdaa5cda387ad2127c50d6f9b110b))
10+
* **deps:** bump @codemirror/state from 6.5.0 to 6.5.1 ([#12428](https://github.com/mdn/yari/issues/12428)) ([7d20681](https://github.com/mdn/yari/commit/7d206813de22c9572c98320eccafa3cbcbdeb1bb))
11+
* **deps:** bump @mdn/rari from 0.1.15 to 0.1.16 ([#12427](https://github.com/mdn/yari/issues/12427)) ([ec381d0](https://github.com/mdn/yari/commit/ec381d0afc9d77e8c2408c96aff6193349dad684))
12+
* **deps:** bump openai from 4.77.4 to 4.78.0 ([#12426](https://github.com/mdn/yari/issues/12426)) ([4786e6d](https://github.com/mdn/yari/commit/4786e6d66d95d21807275f3df4db7497fe5adf24))
13+
14+
## [4.1.1](https://github.com/mdn/yari/compare/v4.1.0...v4.1.1) (2025-01-09)
15+
16+
17+
### Bug Fixes
18+
19+
* **npm-package:** use build:legacy:prepare ([#12422](https://github.com/mdn/yari/issues/12422)) ([b1f8d1c](https://github.com/mdn/yari/commit/b1f8d1c410863ebf26cdfdad480aab69d2971928))
20+
21+
## [4.1.0](https://github.com/mdn/yari/compare/v4.0.1...v4.1.0) (2025-01-09)
22+
23+
24+
### Features
25+
26+
* **baseline:** asterisk support for baseline ([#12415](https://github.com/mdn/yari/issues/12415)) ([fc39ed6](https://github.com/mdn/yari/commit/fc39ed6307fe23e11d42335a37ac12209863eeee))
27+
28+
29+
### Bug Fixes
30+
31+
* **ci:** use legacy for whatsdeployed ([#12351](https://github.com/mdn/yari/issues/12351)) ([0d0643d](https://github.com/mdn/yari/commit/0d0643d04c53262d8b41d8950939f976c938a7b0))
32+
* **deployer:** stream bulk actions to avoid rate limit ([#12411](https://github.com/mdn/yari/issues/12411)) ([0b5276b](https://github.com/mdn/yari/commit/0b5276be8dc2b10992f1fe91ebdc8f7c0285430e))
33+
* **rari:** propagate rari exit code ([#12397](https://github.com/mdn/yari/issues/12397)) ([3865ef0](https://github.com/mdn/yari/commit/3865ef08ece590d53d14d4f93b27b47f9e467f7f))
34+
35+
36+
### Miscellaneous
37+
38+
* **client:** remove unnecessary GA pageview event ([#12396](https://github.com/mdn/yari/issues/12396)) ([285cf0f](https://github.com/mdn/yari/commit/285cf0f2e7f015f1b7a5bd1905442f7e00b3d638))
39+
* **deps-dev:** bump @swc/core from 1.10.1 to 1.10.2 ([#12374](https://github.com/mdn/yari/issues/12374)) ([502a309](https://github.com/mdn/yari/commit/502a309342bb41b0bde6fe86127bb0ff1dcd5c73))
40+
* **deps-dev:** bump @swc/core from 1.10.2 to 1.10.4 ([#12379](https://github.com/mdn/yari/issues/12379)) ([c9ee25e](https://github.com/mdn/yari/commit/c9ee25e019ffdf7dba564e790a0096b9035c9268))
41+
* **deps-dev:** bump @swc/core from 1.10.4 to 1.10.6 ([#12409](https://github.com/mdn/yari/issues/12409)) ([1d8ea99](https://github.com/mdn/yari/commit/1d8ea999ff44d21c261b370b0ebbda0d7e6b0b7e))
42+
* **deps-dev:** bump @types/node from 18.19.68 to 18.19.69 in the types group ([#12383](https://github.com/mdn/yari/issues/12383)) ([32f054b](https://github.com/mdn/yari/commit/32f054b8c47420927ea6a7a5831b7494707517bb))
43+
* **deps-dev:** bump @types/node from 18.19.69 to 18.19.70 in the types group ([#12388](https://github.com/mdn/yari/issues/12388)) ([5653feb](https://github.com/mdn/yari/commit/5653feba1161899012965a409eb59ec81cd11a52))
44+
* **deps-dev:** bump browserslist from 4.24.3 to 4.24.4 ([#12420](https://github.com/mdn/yari/issues/12420)) ([a2e1f44](https://github.com/mdn/yari/commit/a2e1f44bafb8fe60f598d6c27771623d4abde9a9))
45+
* **deps-dev:** bump eslint-plugin-react from 7.37.2 to 7.37.3 ([#12372](https://github.com/mdn/yari/issues/12372)) ([d3e355e](https://github.com/mdn/yari/commit/d3e355eb3d601bfa601f44ade41bbee377f26bd8))
46+
* **deps-dev:** bump postcss-preset-env from 10.1.2 to 10.1.3 ([#12378](https://github.com/mdn/yari/issues/12378)) ([87463b5](https://github.com/mdn/yari/commit/87463b524f507a036d9f8daa10367bcfaaf6e7bf))
47+
* **deps-dev:** bump react-router-dom from 7.0.2 to 7.1.0 ([#12356](https://github.com/mdn/yari/issues/12356)) ([be09aa1](https://github.com/mdn/yari/commit/be09aa1099167906ec19fd76dcff0d87dcc079eb))
48+
* **deps-dev:** bump react-router-dom from 7.1.0 to 7.1.1 ([#12368](https://github.com/mdn/yari/issues/12368)) ([d02e97e](https://github.com/mdn/yari/commit/d02e97e7025f711c3c4a3c5cfbf2f8483b23b524))
49+
* **deps-dev:** bump sass from 1.83.0 to 1.83.1 ([#12390](https://github.com/mdn/yari/issues/12390)) ([156bf78](https://github.com/mdn/yari/commit/156bf78ec66b2f3a7921276dbab042f5edd1ade0))
50+
* **deps-dev:** bump swr from 2.2.5 to 2.3.0 ([#12370](https://github.com/mdn/yari/issues/12370)) ([8f33dc2](https://github.com/mdn/yari/commit/8f33dc2ab142f82b2b95ab23ea18825d7c7566ff))
51+
* **deps-dev:** bump typescript-eslint from 8.18.1 to 8.18.2 ([#12371](https://github.com/mdn/yari/issues/12371)) ([1ebac4b](https://github.com/mdn/yari/commit/1ebac4ba24c30ed61b3e72e6ee25ccf9b8c3fa59))
52+
* **deps-dev:** bump typescript-eslint from 8.18.2 to 8.19.0 ([#12381](https://github.com/mdn/yari/issues/12381)) ([cab191a](https://github.com/mdn/yari/commit/cab191afb1bd2f95f57d4c6232eb4ab14f659cc7))
53+
* **deps-dev:** bump typescript-eslint from 8.19.0 to 8.19.1 ([#12399](https://github.com/mdn/yari/issues/12399)) ([1043b96](https://github.com/mdn/yari/commit/1043b968e7e1210b39a7832c12a215220a7a47ce))
54+
* **deps:** bump @inquirer/prompts from 7.2.0 to 7.2.1 ([#12354](https://github.com/mdn/yari/issues/12354)) ([91fcfaa](https://github.com/mdn/yari/commit/91fcfaa5d66b282f394134edc43e94ff874c0972))
55+
* **deps:** bump @mdn/browser-compat-data from 5.6.26 to 5.6.27 ([#12389](https://github.com/mdn/yari/issues/12389)) ([83f14cc](https://github.com/mdn/yari/commit/83f14cc733363369c82520df1d483b4060ef5910))
56+
* **deps:** bump @mdn/browser-compat-data from 5.6.27 to 5.6.28 ([#12400](https://github.com/mdn/yari/issues/12400)) ([97897e7](https://github.com/mdn/yari/commit/97897e749bb5b814b7b62442e8883be6cf3263b9))
57+
* **deps:** bump @mdn/rari from 0.1.10 to 0.1.11 ([#12366](https://github.com/mdn/yari/issues/12366)) ([834630c](https://github.com/mdn/yari/commit/834630cab220cff7c2378f021e051a90b9a4a9fd))
58+
* **deps:** bump @mdn/rari from 0.1.11 to 0.1.12 ([#12377](https://github.com/mdn/yari/issues/12377)) ([8d8f2e6](https://github.com/mdn/yari/commit/8d8f2e64a09f80df4f4d89352bfc751c0bde2249))
59+
* **deps:** bump @mdn/rari from 0.1.12 to 0.1.13 ([#12384](https://github.com/mdn/yari/issues/12384)) ([8197ff9](https://github.com/mdn/yari/commit/8197ff9b10d04771c8649c90e2aab0bd38d9edb4))
60+
* **deps:** bump @mdn/rari from 0.1.13 to 0.1.14 ([#12407](https://github.com/mdn/yari/issues/12407)) ([84f2a80](https://github.com/mdn/yari/commit/84f2a80be617f7b66b0489000306415c5e44632b))
61+
* **deps:** bump @mdn/rari from 0.1.14 to 0.1.15 ([#12419](https://github.com/mdn/yari/issues/12419)) ([9b78ce0](https://github.com/mdn/yari/commit/9b78ce0517280a982fdbc284bebbc113e75ec71f))
62+
* **deps:** bump @sentry/node from 8.47.0 to 8.48.0 in the sentry group ([#12406](https://github.com/mdn/yari/issues/12406)) ([8dae013](https://github.com/mdn/yari/commit/8dae013920c9fc4e00fe81941b0277ff1bfe9cc3))
63+
* **deps:** bump @stripe/stripe-js from 5.4.0 to 5.5.0 ([#12408](https://github.com/mdn/yari/issues/12408)) ([3ccff9e](https://github.com/mdn/yari/commit/3ccff9ec609f5db57082c5cdf40283716d50ff44))
64+
* **deps:** bump boto3 from 1.35.86 to 1.35.92 in /deployer in the dependencies group across 1 directory ([#12395](https://github.com/mdn/yari/issues/12395)) ([bbe07c5](https://github.com/mdn/yari/commit/bbe07c528c6ab7376ca1f80896e83b9819a04bce))
65+
* **deps:** bump chalk from 5.3.0 to 5.4.1 ([#12353](https://github.com/mdn/yari/issues/12353)) ([94d918d](https://github.com/mdn/yari/commit/94d918d2abe9bfb8b0f2851885a7e7f761af34c3))
66+
* **deps:** bump concurrently from 9.1.0 to 9.1.1 ([#12376](https://github.com/mdn/yari/issues/12376)) ([06dc27a](https://github.com/mdn/yari/commit/06dc27a9a9deaccac07abefb0bac56bee921f8a7))
67+
* **deps:** bump concurrently from 9.1.1 to 9.1.2 ([#12382](https://github.com/mdn/yari/issues/12382)) ([21e9ac9](https://github.com/mdn/yari/commit/21e9ac9885591d7a6e4b6e6878086ec8cd9795b9))
68+
* **deps:** bump elasticsearch from 7.17.9 to 7.17.12 in /deployer ([#12412](https://github.com/mdn/yari/issues/12412)) ([c3da70b](https://github.com/mdn/yari/commit/c3da70bc03e3e3a91aac3aaa678ba56c35b3719f))
69+
* **deps:** bump image-size from 1.1.1 to 1.2.0 ([#12357](https://github.com/mdn/yari/issues/12357)) ([1919108](https://github.com/mdn/yari/commit/1919108d4085af701e15fdc68a5fa073608882fb))
70+
* **deps:** bump open-editor from 5.0.0 to 5.1.0 ([#12355](https://github.com/mdn/yari/issues/12355)) ([097eb74](https://github.com/mdn/yari/commit/097eb742a6a6d438f29083dc8319a2c1a308e47a))
71+
* **deps:** bump openai from 4.77.0 to 4.77.3 ([#12393](https://github.com/mdn/yari/issues/12393)) ([cb7f69a](https://github.com/mdn/yari/commit/cb7f69a87b98287b56e40f40e13a9f989be3d03a))
72+
* **deps:** bump openai from 4.77.3 to 4.77.4 ([#12418](https://github.com/mdn/yari/issues/12418)) ([6f19693](https://github.com/mdn/yari/commit/6f19693bc0c23f6e6f1195e8ee78000728adbf04))
73+
* **deps:** bump react-markdown from 9.0.1 to 9.0.2 ([#12392](https://github.com/mdn/yari/issues/12392)) ([bf798bc](https://github.com/mdn/yari/commit/bf798bc9d2a88d46434013032a6adda7d9ce49be))
74+
* **deps:** bump react-markdown from 9.0.2 to 9.0.3 ([#12401](https://github.com/mdn/yari/issues/12401)) ([210442b](https://github.com/mdn/yari/commit/210442be76dc420ad8d5d9e70520dfe77fe24679))
75+
* **deps:** bump the dependencies group in /deployer with 2 updates ([#12363](https://github.com/mdn/yari/issues/12363)) ([e735486](https://github.com/mdn/yari/commit/e735486ddc357860973f63d8952a137f50d24b34))
76+
* **deps:** bump web-features from 2.14.0 to 2.15.0 ([#12360](https://github.com/mdn/yari/issues/12360)) ([883708f](https://github.com/mdn/yari/commit/883708f4ef6f336aad0d517bef39e8755e9d97f3))
77+
* **deps:** bump web-features from 2.15.0 to 2.16.0 ([#12416](https://github.com/mdn/yari/issues/12416)) ([313a665](https://github.com/mdn/yari/commit/313a6655d1101eeb8a16bc9a211983d6ba02e9fe))
78+
* **deps:** bump web-specs from 3.31.0 to 3.32.0 ([#12391](https://github.com/mdn/yari/issues/12391)) ([7cb574c](https://github.com/mdn/yari/commit/7cb574c789369d00821e2ca03f9667708ad5df3e))
79+
* **lit:** move into separate folder and make tsconfig stricter ([#12398](https://github.com/mdn/yari/issues/12398)) ([e6a4bf4](https://github.com/mdn/yari/commit/e6a4bf4f9f34af49c41bb3cbe8ed69d34023eea2))
80+
* **placement:** change statimp -> statview ([#12404](https://github.com/mdn/yari/issues/12404)) ([1189820](https://github.com/mdn/yari/commit/1189820941b2fc8b7d314748a9745d050bbcea20))
81+
* **placement:** update Scrimba banner ([#12385](https://github.com/mdn/yari/issues/12385)) ([7a2639a](https://github.com/mdn/yari/commit/7a2639ae83d7fe5045500708268a380bfaef2421))
82+
383
## [4.0.1](https://github.com/mdn/yari/compare/v4.0.0...v4.0.1) (2024-12-20)
484

585

client/pwa/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
},
1818
"devDependencies": {
1919
"@types/dexie": "1.3.35",
20-
"ts-loader": "^9.5.1",
21-
"typescript": "^5.7.2",
20+
"ts-loader": "^9.5.2",
21+
"typescript": "^5.7.3",
2222
"webpack": "^5.97.1",
2323
"webpack-cli": "^5.1.4",
2424
"workers-preview": "^1.0.6"

client/pwa/yarn.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -831,21 +831,21 @@ to-regex-range@^5.0.1:
831831
dependencies:
832832
is-number "^7.0.0"
833833

834-
ts-loader@^9.5.1:
835-
version "9.5.1"
836-
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.1.tgz#63d5912a86312f1fbe32cef0859fb8b2193d9b89"
837-
integrity sha512-rNH3sK9kGZcH9dYzC7CewQm4NtxJTjSEVRJ2DyBZR7f8/wcta+iV44UPCXc5+nzDzivKtlzV6c9P4e+oFhDLYg==
834+
ts-loader@^9.5.2:
835+
version "9.5.2"
836+
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.2.tgz#1f3d7f4bb709b487aaa260e8f19b301635d08020"
837+
integrity sha512-Qo4piXvOTWcMGIgRiuFa6nHNm+54HbYaZCKqc9eeZCLRy3XqafQgwX2F7mofrbJG3g7EEb+lkiR+z2Lic2s3Zw==
838838
dependencies:
839839
chalk "^4.1.0"
840840
enhanced-resolve "^5.0.0"
841841
micromatch "^4.0.0"
842842
semver "^7.3.4"
843843
source-map "^0.7.4"
844844

845-
typescript@^5.7.2:
846-
version "5.7.2"
847-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
848-
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==
845+
typescript@^5.7.3:
846+
version "5.7.3"
847+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e"
848+
integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==
849849

850850
update-browserslist-db@^1.1.1:
851851
version "1.1.1"

client/src/document/baseline-indicator.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $browsers: "chrome", "edge", "firefox", "safari";
7575
width: var(--width);
7676
}
7777

78-
h2 {
78+
.status-title {
7979
font-size: 1rem;
8080
font-weight: 600;
8181
letter-spacing: 0;

client/src/document/baseline-indicator.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function BaselineIndicator({ status }: { status: SupportStatus }) {
116116
role="img"
117117
aria-label={level !== "not" ? "Baseline Check" : "Baseline Cross"}
118118
/>
119-
<h2>
119+
<div className="status-title">
120120
{level !== "not" ? (
121121
<>
122122
Baseline{" "}
@@ -130,7 +130,7 @@ export function BaselineIndicator({ status }: { status: SupportStatus }) {
130130
) : (
131131
<span className="not-bold">Limited availability</span>
132132
)}
133-
</h2>
133+
</div>
134134
{level === "low" && <div className="pill">Newly available</div>}
135135
<div className="browsers">
136136
{ENGINES.map(({ name, browsers }) => (

client/src/document/index.scss

+4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@
248248
}
249249
}
250250

251+
#specifications + table {
252+
margin-bottom: 2rem;
253+
}
254+
251255
@media (min-width: $screen-sm) {
252256
padding: 3rem;
253257
// Reduce space to article footer.

client/src/document/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import "./index.scss";
3434
// code could come with its own styling rather than it having to be part of the
3535
// main bundle all the time.
3636
import "./interactive-examples.scss";
37-
import "../lit/interactive-example.js";
37+
import "../lit/interactive-example.global.scss";
3838
import { DocumentSurvey } from "../ui/molecules/document-survey";
3939
import { useIncrementFrequentlyViewed } from "../plus/collections/frequently-viewed";
4040
import { useInteractiveExamplesActionHandler as useInteractiveExamplesTelemetry } from "../telemetry/interactive-examples";
@@ -62,6 +62,10 @@ export class HTTPError extends Error {
6262
}
6363

6464
export function Document(props /* TODO: define a TS interface for this */) {
65+
React.useEffect(() => {
66+
import("../lit/interactive-example.js");
67+
}, []);
68+
6569
const gleanClick = useGleanClick();
6670
const isServer = useIsServer();
6771

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
interactive-example {
2+
display: block;
3+
height: 513px;
4+
margin: 1rem 0;
5+
6+
&[height="shorter"] {
7+
height: 433px;
8+
}
9+
10+
&[height="taller"] {
11+
height: 725px;
12+
}
13+
}

client/src/lit/interactive-example.scss

-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
@use "../ui/vars" as *;
22
@use "../ui/atoms/button/mixins" as button;
33

4-
:host {
5-
display: block;
6-
margin: 1rem 0;
7-
}
8-
9-
:host([height="shorter"]) {
10-
height: 433px;
11-
}
12-
13-
:host([height="taller"]) {
14-
height: 725px;
15-
}
16-
174
h4 {
185
border: 1px solid var(--border-secondary);
196
border-top-left-radius: var(--elem-radius);

0 commit comments

Comments
 (0)