Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
10ce96a
fix(tools)!: remove cem config
bennypowers Jun 17, 2025
57519fd
chore: fix docs ci
bennypowers Jun 17, 2025
8e26cf9
chore: regen package lock
bennypowers Jun 17, 2025
52d5474
chore: optdeps
bennypowers Jun 17, 2025
12237f9
chore: package lock
bennypowers Jun 17, 2025
d37db6d
chore: npm
bennypowers Jun 18, 2025
4f6a7b0
chore: update deps
bennypowers Jun 18, 2025
7cc941e
fix(core): add ariaRelevant to InternalsController
bennypowers Jun 18, 2025
9136c3e
chore: add optdeps
bennypowers Jun 18, 2025
59e413f
chore: update deps
bennypowers Jun 18, 2025
21840e9
chore: deps
bennypowers Jun 18, 2025
b86d3d3
chore: update runners node version
bennypowers Jun 18, 2025
6331b7b
chore: add eslint deps
bennypowers Jun 18, 2025
2cd7fc1
fix: analyze step
bennypowers Jun 18, 2025
3031494
docs: fix build
bennypowers Jun 18, 2025
d624a6c
chore: playwright
bennypowers Jun 18, 2025
d584fd0
docs: remove fw tests from readme
bennypowers Jun 18, 2025
549becd
chore: update playwright docker image version
zeroedin Jun 18, 2025
48b59ce
chore: update deps, add win32 optional, nodemon for analyze watch
zeroedin Jun 24, 2025
5598fcf
chore: correct missing win32 optional in package-lock
zeroedin Jun 24, 2025
9ad9e55
chore: correct unsupported engine error on npm install
zeroedin Jun 24, 2025
3e36845
chore: try including optional flag for windows test
zeroedin Jun 24, 2025
af3c3d8
chore: add verbose flag for debuging npm ci on windows
zeroedin Jun 24, 2025
acc6f33
chore: try explict install of the win32 dependency
zeroedin Jun 24, 2025
7e0e565
chore: add cem config
bennypowers Jul 14, 2025
738f7ec
chore: update dependencies
bennypowers Jul 14, 2025
8b5582b
chore: update cem config and tasks
bennypowers Jul 14, 2025
6b938e6
chore: cem config
bennypowers Jul 14, 2025
56dae4e
fix(elements): export all necessary files
bennypowers Jul 14, 2025
0bac7b3
chore: update cem
bennypowers Jul 15, 2025
ea9d362
style: lint pf-tabs.ts
bennypowers Jul 15, 2025
dcb09a2
style: lint elements/package.json
bennypowers Jul 15, 2025
fe5d766
chore: faster analyze script
bennypowers Jul 15, 2025
429c784
chore: update deps
bennypowers Jul 16, 2025
ee84d7a
chore: regen package lock
bennypowers Jul 16, 2025
94785c7
chore: ci
bennypowers Jul 16, 2025
8f54570
chore: playwright in ci
bennypowers Jul 16, 2025
6e50534
docs: update changeset
bennypowers Jul 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/green-aliens-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@patternfly/pfe-core": patch
---

`InternalsController`: add `ariaRelevant` property

5 changes: 5 additions & 0 deletions .changeset/solid-rice-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@patternfly/pfe-tools": major
---

Removes the (previously deprecated) `@custom-elements-manifest/analyzer` config. Instead, use [`@pwrs/cem`](https://bennypowers.dev/cem). See PR [#2912](https://github.com/patternfly/patternfly-elements/pull/2912/files) for an example of how to migrate an npm monorepo.
2 changes: 1 addition & 1 deletion .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: '.nvmrc'
cache: npm

- name: Bundle
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: '.nvmrc'
cache: npm
- run: npm ci --prefer-offline
- run: npm i @commitlint/load
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: '.nvmrc'
cache: npm

- name: Verify JSPM URL
Expand All @@ -23,11 +23,10 @@ jobs:
run: curl https://cachefly.cachefly.net/CacheFlyDebug

# Set up GitHub Actions caching for Wireit.
- uses: google/wireit@setup-github-actions-caching/v2
- uses: google/wireit@setup-github-actions-caching/v2

- run: npm ci --prefer-offline
- run: npm run docs
- run: cat _site/components/icon/demo/custom-icon-sets/index.html

- name: Publish to Netlify
env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: '.nvmrc'
cache: npm

# Set up GitHub Actions caching for Wireit.
- uses: google/wireit@setup-github-actions-caching/v2

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
name: SSR Tests (Playwright)
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.46.1-jammy
image: mcr.microsoft.com/playwright:v1.54.1-noble
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -161,8 +161,8 @@ jobs:
strategy:
matrix:
node:
- '20'
- '21'
- '22'
- '24'
if: |
github.event_name == 'workflow_dispatch'
|| github.event_name == 'push'
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
cache: npm

- name: Install dependencies
run: npm ci --prefer-offline
run: npm ci --prefer-offline --include=optional --verbose

- name: Build
id: build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: '.nvmrc'
cache: npm

# Set up GitHub Actions caching for Wireit.
- uses: google/wireit@setup-github-actions-caching/v2

- run: npm ci --prefer-offline

- run: npx playwright install
- name: Visual Regression Tests
run: npx playwright test
env:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.13.0
v22.16.0
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ npm run test:watch -- --files 'elements/pf-{select,card}/test/*.spec.ts'
# Run all tests excluding react and vue tests.
npm run test:watch

# Run all tests using a React wrapper in watch mode.
npm run test:react

# Run all tests using a Vue wrapper in watch mode.
npm run test:vue

# Run all tests with and without React and Vue wrappers.
# This is run on pull request within CI.
npm run test:ci
Expand Down
9 changes: 9 additions & 0 deletions core/pfe-core/.config/cem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sourceControlRootUrl: https://github.com/patternfly/patternfly-elements/tree/main/
generate:
files:
- ./*/*.ts
exclude:
- './**/*.test.ts'
- './**/*.spec.ts'
- './**/*.e2e.ts'
output: custom-elements.json
1 change: 1 addition & 0 deletions core/pfe-core/controllers/internals-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export class InternalsController implements ReactiveController, ARIAMixin {
@aria ariaPosInSet: string | null = null;
@aria ariaPressed: string | null = null;
@aria ariaReadOnly: string | null = null;
@aria ariaRelevant: string | null = null;
@aria ariaRequired: string | null = null;
@aria ariaRoleDescription: string | null = null;
@aria ariaRowCount: string | null = null;
Expand Down
7 changes: 3 additions & 4 deletions core/pfe-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@
},
"scripts": {
"clean": "git clean -fX -e node_modules -e tsconfig.tsbuildinfo",
"analyze": "cem analyze",
"analyze": "cem generate",
"test": "wtr --files './test/*.spec.ts' --config ../../web-test-runner.config.js"
},
"dependencies": {
"@floating-ui/dom": "^1.6.10",
"@lit/context": "^1.1.3",
"lit": "^3.2.1"
"@lit/context": "^1.1.5",
"lit": "^3.3.0"
},
"repository": {
"type": "git",
Expand All @@ -84,7 +84,6 @@
"**/*.d.ts",
"**/*.js",
"**/*.js.map",
"!custom-elements-manifest.config.js",
"custom-elements.json",
"!demo/*",
"!docs/*",
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/develop/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class PfCoolElement extends LitElement {
Notice the block comment above the property declaration. This is called a JSDoc docblock,
and it's contents will eventually end up in the custom elements manifest for this package.
It's important to add a helpful description of every public property and method on your element's class.
Learn more about [how to document components](https://custom-elements-manifest.open-wc.org/analyzer/getting-started/#documenting-your-components).
Learn more about [how to document components](https://bennypowers.github.io/cem/).

Now that we have declared the `follow` property, we can toggle it in our private `onClick` handler.

Expand Down
14 changes: 14 additions & 0 deletions elements/.config/cem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sourceControlRootUrl: https://github.com/patternfly/patternfly-elements/tree/main/
generate:
files:
- ./*/*.ts
exclude:
- './**/*.test.ts'
- './**/*.spec.ts'
- './**/*.e2e.ts'
output: custom-elements.json
noDefaultExcludes: false
demoDiscovery:
fileGlob: ./*/demo/*.html
urlPattern: (?P<tag>[\\w-]+)/demo/(?P<demo>[\\w-]+).html
urlTemplate: https://patternflyelements.org/components/{tag}/{demo}/
13 changes: 0 additions & 13 deletions elements/custom-elements-manifest.config.js

This file was deleted.

28 changes: 15 additions & 13 deletions elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
"./pf-chip/pf-chip-group.js": "./pf-chip/pf-chip-group.js",
"./pf-clipboard-copy/pf-clipboard-copy.js": "./pf-clipboard-copy/pf-clipboard-copy.js",
"./pf-code-block/pf-code-block.js": "./pf-code-block/pf-code-block.js",
"./pf-dropdown/context.js": "./pf-dropdown/context.js",
"./pf-dropdown/pf-dropdown-group.js": "./pf-dropdown/pf-dropdown-group.js",
"./pf-dropdown/pf-dropdown-item.js": "./pf-dropdown/pf-dropdown-item.js",
"./pf-dropdown/pf-dropdown-menu.js": "./pf-dropdown/pf-dropdown-menu.js",
"./pf-dropdown/pf-dropdown.js": "./pf-dropdown/pf-dropdown.js",
"./pf-dropdown/pf-dropdown-group.js": "./pf-dropdown/pf-dropdown-group.ts",
"./pf-dropdown/pf-dropdown-menu.js": "./pf-dropdown/pf-dropdown-menu.ts",
"./pf-dropdown/pf-dropdown-item.js": "./pf-dropdown/pf-dropdown-item.ts",
"./pf-icon/pf-icon.js": "./pf-icon/pf-icon.js",
"./pf-jazz-hands/pf-jazz-hands.js": "./pf-jazz-hands/pf-jazz-hands.js",
"./pf-jump-links/pf-jump-links-item.js": "./pf-jump-links/pf-jump-links-item.js",
Expand All @@ -47,13 +48,15 @@
"./pf-progress/pf-progress.js": "./pf-progress/pf-progress.js",
"./pf-spinner/pf-spinner.js": "./pf-spinner/pf-spinner.js",
"./pf-switch/pf-switch.js": "./pf-switch/pf-switch.js",
"./pf-table/context.js": "./pf-table/context.js",
"./pf-table/pf-caption.js": "./pf-table/pf-caption.js",
"./pf-table/pf-table.js": "./pf-table/pf-table.js",
"./pf-table/pf-thead.js": "./pf-table/pf-thead.js",
"./pf-table/pf-tbody.js": "./pf-table/pf-tbody.js",
"./pf-table/pf-tr.js": "./pf-table/pf-tr.js",
"./pf-table/pf-th.js": "./pf-table/pf-th.js",
"./pf-table/pf-td.js": "./pf-table/pf-td.js",
"./pf-table/pf-caption.js": "./pf-table/pf-caption.js",
"./pf-table/pf-th.js": "./pf-table/pf-th.js",
"./pf-table/pf-thead.js": "./pf-table/pf-thead.js",
"./pf-table/pf-tr.js": "./pf-table/pf-tr.js",
"./pf-tabs/context.js": "./pf-tabs/context.js",
"./pf-tabs/pf-tab-panel.js": "./pf-tabs/pf-tab-panel.js",
"./pf-tabs/pf-tab.js": "./pf-tabs/pf-tab.js",
"./pf-tabs/pf-tabs.js": "./pf-tabs/pf-tabs.js",
Expand All @@ -71,7 +74,7 @@
},
"scripts": {
"prepublishOnly": "npm run build",
"analyze": "cem analyze",
"analyze": "cem generate",
"build": "wireit",
"test": "wtr --files './test/*.spec.ts' --config ../../web-test-runner.config.js"
},
Expand Down Expand Up @@ -104,7 +107,6 @@
"**/*.d.ts",
"**/*.js",
"**/*.js.map",
"!custom-elements-manifest.config.js",
"!demo/*",
"!docs/*",
"!test/*"
Expand All @@ -128,10 +130,10 @@
"Ajinyka Shinde <[email protected]>"
],
"dependencies": {
"@lit/context": "^1.1.2",
"@lit/context": "^1.1.5",
"@patternfly/icons": "^1.0.3",
"@patternfly/pfe-core": "^5.0.0",
"lit": "^3.2.1",
"tslib": "^2.6.3"
"@patternfly/pfe-core": "^5.0.2",
"lit": "^3.3.0",
"tslib": "^2.8.1"
}
}
2 changes: 1 addition & 1 deletion elements/pf-tabs/pf-tabs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html, LitElement, type PropertyValues, type TemplateResult } from 'lit';
import { html, LitElement, type TemplateResult } from 'lit';
import { customElement } from 'lit/decorators/custom-element.js';
import { property } from 'lit/decorators/property.js';
import { query } from 'lit/decorators/query.js';
Expand Down
2 changes: 1 addition & 1 deletion eleventy.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = function(eleventyConfig) {
) {
return null;
} else {
return eleventyConfig.javascriptFunctions
return eleventyConfig.javascript.functions
.slug($.text())
.replace(/[&,+()$~%.'":*?!<>{}]/g, '');
}
Expand Down
Loading
Loading