Skip to content

Commit

Permalink
Merge branch 'main' into toggle-switch-a11y-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJDev authored Jan 17, 2025
2 parents e4060ce + c87e80c commit be8dd43
Show file tree
Hide file tree
Showing 2,142 changed files with 25,238 additions and 15,497 deletions.
5 changes: 0 additions & 5 deletions .changeset/brave-cheetahs-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/calm-meals-impress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chilled-goats-visit.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curly-bikes-burn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dry-seals-count.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fair-wolves-attack.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fast-hats-drum.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-yaks-shake.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/giant-bees-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Fix an issue in useAnnouncements.tsx causing a TypeError in production. The activeItem variable may be null.
5 changes: 0 additions & 5 deletions .changeset/grumpy-cherries-deny.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/honest-plums-approve.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/lazy-jars-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Avoid accessing properties of potentially null document.body in PageLayout
5 changes: 0 additions & 5 deletions .changeset/lovely-stingrays-jog.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/odd-seas-study.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-weeks-matter.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/polite-ligers-exercise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/real-fans-tap.md

This file was deleted.

2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Primer React",
"image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:22",
"extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "DavidAnson.vscode-markdownlint"],
"extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "DavidAnson.vscode-markdownlint", "hex-ci.stylelint-plus"],
"forwardPorts": [8000],
"onCreateCommand": ["/bin/bash", "-c", "npm run setup"],
"remoteUser": "node",
Expand Down
11 changes: 9 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
'plugin:primer-react/recommended',
'plugin:import/typescript',
'plugin:ssr-friendly/recommended',
'plugin:clsx/recommended',
],
settings: {
react: {
Expand Down Expand Up @@ -200,8 +201,14 @@ module.exports = {
parserOptions: {
project: 'tsconfig.json',
},
extends: ['plugin:playwright/jest-playwright'],
rules: {},
extends: ['plugin:playwright/recommended'],
rules: {
'playwright/expect-expect': 'off',
'playwright/no-conditional-expect': 'off',
'playwright/no-conditional-in-test': 'off',
'playwright/no-wait-for-selector': 'off',
'playwright/valid-title': 'off',
},
},

// rules which apply only to Markdown
Expand Down
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ updates:
labels:
- 'dependencies'
- 'skip changeset'
groups:
storybook:
patterns:
- '@storybook/*'
- 'storybook'

- package-ecosystem: 'github-actions'
directory: '/'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/accessibility-alt-text-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
pull_request:
types: [opened, edited]
issue_comment:
types: [created, edited]
types: [created, edited, deleted]
discussion:
types: [created, edited]
discussion_comment:
types: [created, edited, deleted]

permissions:
issues: write
Expand All @@ -21,4 +23,4 @@ jobs:
if: ${{ github.event.issue || github.event.pull_request || github.event.discussion }}
steps:
- name: Get action 'github/accessibility-alt-text-bot'
uses: github/accessibility-alt-text-bot@v1.5.0
uses: github/accessibility-alt-text-bot@v1.6.0
1 change: 0 additions & 1 deletion .github/workflows/assign_release_conductor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i -g npm@^10.5.1
- run: npm ci
- uses: ./.github/actions/pagerduty
id: pagerduty
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Check for unformatted files
Expand All @@ -43,7 +42,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Lint JavaScript
Expand All @@ -63,7 +61,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -81,7 +78,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build project
Expand All @@ -99,7 +95,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -118,7 +113,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -159,7 +153,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -196,7 +189,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -237,7 +229,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -270,7 +261,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -311,7 +301,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -348,7 +337,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -389,7 +377,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -419,11 +406,17 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook to generate story IDs
run: npm run build:storybook
working-directory: packages/react
- name: Build components.json
run: npm run build:components.json
run: npx tsx script/components-json/build.ts --storybook-data 'storybook-static/index.json'
working-directory: packages/react
- name: Build hooks.json
run: npx tsx script/hooks-json/build.ts'
working-directory: packages/react

sizes:
runs-on: ubuntu-latest
Expand All @@ -435,7 +428,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/codescan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci

Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/consumer_test.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build docs preview
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy_preview_forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build docs preview
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i -g npm@^10.5.1
- name: Install packages for github-script
run: npm i date-fns
- name: Create Release Issue
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1

- name: Install dependencies
run: npm ci
Expand Down
Loading

0 comments on commit be8dd43

Please sign in to comment.