-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/tile/remove-base
- Loading branch information
Showing
2,296 changed files
with
29,823 additions
and
30,410 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@patternfly/eslint-config-elements": major | ||
"@patternfly/eslint-plugin-elements": major | ||
--- | ||
|
||
Provide ESLint flat config. Upgrade to ESLint 9.0 to use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/pfe-tools": patch | ||
--- | ||
Dev Server: update icon and theme colours |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/elements": patch | ||
--- | ||
`<pf-select>`: fixed computed button label when the placeholder attribute is present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-label>`: when clicking close button, `close` event is fired. | ||
Now, if that event is not cancelled, the label will remove itself from the document. | ||
|
||
To restore previous behaviour: | ||
|
||
```js | ||
import { LabelCloseEvent } from '@patternfly/elements/pf-label/pf-label.js'; | ||
label.addEventListener('close', function(event) { | ||
if (event instanceof LabelCloseEvent) { | ||
event.preventDefault(); | ||
return false; | ||
} | ||
}); | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-clipboard-copy>`: Removed `BaseClipboardCopy` class. | ||
Reimplement (recommended) or extend `PfClipboardCopy`. | ||
Renames `AvatarLoadEvent` to `PfAvatarLoadEvent` and moves it to `pf-avatar.js`. | ||
|
||
**Before**: | ||
|
||
```js | ||
import { | ||
ClipboardCopyCopiedEvent | ||
} from '@patternfly/elements/pf-clipboard-copy/BaseClipboardCopy.js'; | ||
|
||
addEventListener('copy', function(event) { | ||
if (event instanceof ClipboardCopyCopiedEvent) { | ||
// ... | ||
} | ||
}); | ||
``` | ||
|
||
**After**: | ||
|
||
```js | ||
import { | ||
PfClipboardCopyCopiedEvent | ||
} from '@patternfly/elements/pf-clipboard-copy/pf-clipboard-copy.js'; | ||
|
||
addEventListener('copy', function(event) { | ||
if (event instanceof PfClipboardCopyCopiedEvent) { | ||
// ... | ||
} | ||
}); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-label>`: Removed `BaseLabel` class. Reimplement (recommended) or extend `PfLabel`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-switch>`: Removed `BaseSwitch` class. Reimplement (recommended) or extend `PfSwitch`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-avatar>`: Removed `BaseAvatar` class. Reimplement (recommended) or extend `PfAvatar`. | ||
Renames `AvatarLoadEvent` to `PfAvatarLoadEvent` and moves it to `pf-avatar.js`. | ||
|
||
**Before**: | ||
|
||
```js | ||
import { AvatarLoadEvent } from '@patternfly/elements/pf-avatar/BaseAvatar.js'; | ||
|
||
addEventListener('load', function(event) { | ||
if (event instanceof AvatarLoadEvent) { | ||
// ... | ||
} | ||
}); | ||
``` | ||
|
||
**After**: | ||
|
||
```js | ||
import { PfAvatarLoadEvent } from '@patternfly/elements/pf-avatar/pf-avatar.js'; | ||
|
||
addEventListener('load', function(event) { | ||
if (event instanceof PfAvatarLoadEvent) { | ||
// ... | ||
} | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-badge>`: Removed `BaseBadge` class. Reimplement (recommended) or extend `PfBadge`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-code-block>`: Removed `BaseCodeBlock` class. Reimplement (recommended) or extend `PfCodeBlock`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-spinner>`: Removed `BaseSpinner` class. Reimplement (recommended) or extend `PfSpinner`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/pfe-tools": patch | ||
--- | ||
Update typescript types |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,9 +40,8 @@ jobs: | |
# steps: | ||
# - name: Debugging context variables | ||
# run: echo "$GITHUB_CONTEXT" | ||
|
||
test: | ||
name: Run test suite (Web Test Runner) | ||
lint: | ||
name: Lint files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
|
@@ -52,7 +51,7 @@ jobs: | |
- name: Configure node version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: '20' | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
|
@@ -62,13 +61,32 @@ jobs: | |
id: lint | ||
run: npm run lint | ||
|
||
|
||
test: | ||
name: Run test suite (Web Test Runner) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Configures the node version used on GitHub-hosted runners | ||
- name: Configure node version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm ci --prefer-offline | ||
|
||
- name: install playwright | ||
run: npx playwright install | ||
|
||
- name: Run tests | ||
run: npm test | ||
if: ${{ always() }} | ||
|
||
- name: JUnit Report Action | ||
uses: mikepenz/[email protected] | ||
if: ${{ always() }} | ||
with: | ||
report_paths: test-results/test-results.xml | ||
fail_on_failure: true # fail the actions run if the tests failed | ||
|
@@ -79,10 +97,8 @@ jobs: | |
strategy: | ||
matrix: | ||
node: | ||
- '18' | ||
- '19' | ||
# https://github.com/TypeStrong/ts-node/issues/1997 | ||
# - '20' | ||
- '20' | ||
- '21' | ||
if: | | ||
github.event_name == 'workflow_dispatch' | ||
|| github.event_name == 'push' | ||
|
@@ -126,8 +142,9 @@ jobs: | |
validate: | ||
name: Validate successful build on main | ||
needs: | ||
- build | ||
- lint | ||
- test | ||
- build | ||
if: ${{ always() }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
#!/bin/sh | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18.12.1 | ||
v20.10.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.