From fa354aeba3b74f5e4c486ac71c920f59cab42088 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 31 Mar 2024 11:31:17 +0300 Subject: [PATCH] chore: prepare release (#2596) Co-authored-by: github-actions[bot] --- .changeset/accordion-no-animate.md | 4 - .changeset/clean-deers-lie.md | 5 - .changeset/cold-bottles-roll.md | 6 - .changeset/cold-cars-relate.md | 6 - .changeset/context-with-root.md | 5 - .changeset/cruel-taxes-accept.md | 5 - .changeset/curly-wings-cross.md | 4 - .changeset/eight-waves-join.md | 4 - .changeset/empty-otters-join.md | 22 --- .changeset/empty-ties-heal.md | 4 - .changeset/great-badgers-build.md | 48 ----- .changeset/hip-bags-live.md | 5 - .changeset/input-submit.md | 4 - ...nternals-controller-computed-label-text.md | 4 - .changeset/internals-controller-props.md | 4 - .changeset/khaki-bananas-perform.md | 9 - .changeset/lazy-hounds-agree.md | 18 -- .changeset/light-carrots-suffer.md | 4 - .changeset/little-singers-sell.md | 4 - .changeset/logger-debug.md | 4 - .changeset/logger-host-loose.md | 4 - .changeset/long-eyes-mate.md | 4 - .changeset/long-rings-burn.md | 4 - .changeset/neat-toes-guess.md | 15 -- .changeset/nice-moments-doubt.md | 4 - .changeset/odd-mice-stop.md | 28 --- .changeset/odd-swans-trade.md | 4 - .changeset/olive-pens-create.md | 4 - .changeset/overflow-controller.md | 5 - .changeset/pf-chip.md | 16 -- .changeset/pf-dropdown.md | 25 --- .changeset/pf-select.md | 21 --- .changeset/pf-text-area.md | 16 -- .changeset/pf-text-input-error-text.md | 14 -- .changeset/pf-text-input-placeholder.md | 4 - .changeset/pf-tools-react-prefixs.md | 4 - .changeset/pfe-tools-ts52.md | 4 - .changeset/polite-ducks-beg.md | 15 -- .changeset/rare-news-drum.md | 5 - .changeset/rotten-geese-invite.md | 5 - .changeset/roving-tabindex-controller.md | 5 - .changeset/slot-logger.md | 4 - .changeset/tabs-controller.md | 15 -- .changeset/tidy-numbers-rush.md | 7 - .changeset/upset-laws-camp.md | 5 - .changeset/violet-wasps-obey.md | 4 - .changeset/violet-wombats-tell.md | 17 -- .changeset/wet-moments-punch.md | 4 - core/pfe-core/CHANGELOG.md | 123 ++++++++++++ core/pfe-core/package.json | 2 +- elements/CHANGELOG.md | 175 ++++++++++++++++++ elements/package.json | 4 +- tools/eslint-config/CHANGELOG.md | 7 + tools/eslint-config/package.json | 2 +- .../CHANGELOG.md | 6 + .../package.json | 2 +- tools/pfe-tools/CHANGELOG.md | 44 +++++ tools/pfe-tools/package.json | 2 +- 58 files changed, 361 insertions(+), 437 deletions(-) delete mode 100644 .changeset/accordion-no-animate.md delete mode 100644 .changeset/clean-deers-lie.md delete mode 100644 .changeset/cold-bottles-roll.md delete mode 100644 .changeset/cold-cars-relate.md delete mode 100644 .changeset/context-with-root.md delete mode 100644 .changeset/cruel-taxes-accept.md delete mode 100644 .changeset/curly-wings-cross.md delete mode 100644 .changeset/eight-waves-join.md delete mode 100644 .changeset/empty-otters-join.md delete mode 100644 .changeset/empty-ties-heal.md delete mode 100644 .changeset/great-badgers-build.md delete mode 100644 .changeset/hip-bags-live.md delete mode 100644 .changeset/input-submit.md delete mode 100644 .changeset/internals-controller-computed-label-text.md delete mode 100644 .changeset/internals-controller-props.md delete mode 100644 .changeset/khaki-bananas-perform.md delete mode 100644 .changeset/lazy-hounds-agree.md delete mode 100644 .changeset/light-carrots-suffer.md delete mode 100644 .changeset/little-singers-sell.md delete mode 100644 .changeset/logger-debug.md delete mode 100644 .changeset/logger-host-loose.md delete mode 100644 .changeset/long-eyes-mate.md delete mode 100644 .changeset/long-rings-burn.md delete mode 100644 .changeset/neat-toes-guess.md delete mode 100644 .changeset/nice-moments-doubt.md delete mode 100644 .changeset/odd-mice-stop.md delete mode 100644 .changeset/odd-swans-trade.md delete mode 100644 .changeset/olive-pens-create.md delete mode 100644 .changeset/overflow-controller.md delete mode 100644 .changeset/pf-chip.md delete mode 100644 .changeset/pf-dropdown.md delete mode 100644 .changeset/pf-select.md delete mode 100644 .changeset/pf-text-area.md delete mode 100644 .changeset/pf-text-input-error-text.md delete mode 100644 .changeset/pf-text-input-placeholder.md delete mode 100644 .changeset/pf-tools-react-prefixs.md delete mode 100644 .changeset/pfe-tools-ts52.md delete mode 100644 .changeset/polite-ducks-beg.md delete mode 100644 .changeset/rare-news-drum.md delete mode 100644 .changeset/rotten-geese-invite.md delete mode 100644 .changeset/roving-tabindex-controller.md delete mode 100644 .changeset/slot-logger.md delete mode 100644 .changeset/tabs-controller.md delete mode 100644 .changeset/tidy-numbers-rush.md delete mode 100644 .changeset/upset-laws-camp.md delete mode 100644 .changeset/violet-wasps-obey.md delete mode 100644 .changeset/violet-wombats-tell.md delete mode 100644 .changeset/wet-moments-punch.md diff --git a/.changeset/accordion-no-animate.md b/.changeset/accordion-no-animate.md deleted file mode 100644 index b39b5a5efe..0000000000 --- a/.changeset/accordion-no-animate.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": patch ---- -``: remove animations which are not present in PatternFly specs diff --git a/.changeset/clean-deers-lie.md b/.changeset/clean-deers-lie.md deleted file mode 100644 index 319c1f925d..0000000000 --- a/.changeset/clean-deers-lie.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/elements": major ---- - -``: remove deprecated `width` attribute. use `variant` instead diff --git a/.changeset/cold-bottles-roll.md b/.changeset/cold-bottles-roll.md deleted file mode 100644 index d52c68630e..0000000000 --- a/.changeset/cold-bottles-roll.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@patternfly/eslint-config-elements": patch -"@patternfly/pfe-tools": patch ---- - -Update dependencies diff --git a/.changeset/cold-cars-relate.md b/.changeset/cold-cars-relate.md deleted file mode 100644 index 21b638d22c..0000000000 --- a/.changeset/cold-cars-relate.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- - -`SlotController`: Add `isEmpty` method to check if a slot is empty. If no slot name is provided it will check the default slot. (#2603) -`SlotController`: `hasSlotted` method now returns default slot if no slot name is provided. (#2603) diff --git a/.changeset/context-with-root.md b/.changeset/context-with-root.md deleted file mode 100644 index 3068fbe930..0000000000 --- a/.changeset/context-with-root.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- -**Context**: added `createContextWithRoot`. Use this when creating contexts that -are shared with child elements. diff --git a/.changeset/cruel-taxes-accept.md b/.changeset/cruel-taxes-accept.md deleted file mode 100644 index d85a0fa18a..0000000000 --- a/.changeset/cruel-taxes-accept.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/elements": patch ---- -``: ensure that dropdown menu contents are accessible to keyboard -and screen-reader users even when the dropdown or its toggle is disabled. diff --git a/.changeset/curly-wings-cross.md b/.changeset/curly-wings-cross.md deleted file mode 100644 index ce9adbd8bf..0000000000 --- a/.changeset/curly-wings-cross.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": major ---- -``: improves accessibility of elements that use `` by giving the custom element itself the `button` role diff --git a/.changeset/eight-waves-join.md b/.changeset/eight-waves-join.md deleted file mode 100644 index 3c79f55e8a..0000000000 --- a/.changeset/eight-waves-join.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": major ---- -Remove `/elements/pf-icon/icons/**/*`. Use `@patternfly/icons` instead. diff --git a/.changeset/empty-otters-join.md b/.changeset/empty-otters-join.md deleted file mode 100644 index cdb1070712..0000000000 --- a/.changeset/empty-otters-join.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -"@patternfly/pfe-core": major ---- - -`RovingTabindexController`: deprecate the `initItems` method and add `getItems` and `getItemContainer` instead - -BEFORE: -```ts -#tabindex = new RovingTabindexController(this); -constructor() { - super(); - this.#tabindex.initItems(this.#items); -} -``` - -AFTER: -```ts -#tabindex = new RovingTabindexController(this, { - getItems: () => this.#items, -}); -``` - diff --git a/.changeset/empty-ties-heal.md b/.changeset/empty-ties-heal.md deleted file mode 100644 index 8716088270..0000000000 --- a/.changeset/empty-ties-heal.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": patch ---- -``: auto-resize attribute now works as expected diff --git a/.changeset/great-badgers-build.md b/.changeset/great-badgers-build.md deleted file mode 100644 index bfabf1236e..0000000000 --- a/.changeset/great-badgers-build.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -"@patternfly/pfe-core": major ---- -`@cascades`: deprecated `@cascades` decorator and `CascadeController`. Use context instead. - -**BEFORE**: The element in charge of the context cascades data down to -specifically named children. - -```ts -import { LitElement } from 'lit'; -import { property } from 'lit/decorators/property.js'; -import { cascades } from '@patternfly/pfe-core/decorators/cascades.js'; - -class MyMood extends LitElement { - @cascades('my-eyes', 'my-mouth') - @property() mood: 'happy'|'sad'|'mad'|'glad'; -} -``` - -**AFTER**: children subscribe to updates from the context provider. - -```ts -import { LitElement } from 'lit'; -import { property } from 'lit/decorators/property.js'; -import { provide } from '@lit/context'; -import { createContextWithRoot } from '@patternfly/pfe-core/functions/context.js'; - -export type Mood = 'happy'|'sad'|'mad'|'glad'; - -export const moodContext = createContextWithRoot(Symbol('mood')); - -class MyMood extends LitElement { - @provide({ context: moodContext }) - @property() mood: Mood; -} -``` - -```ts -import { LitElement } from 'lit'; -import { property } from 'lit/decorators/property.js'; -import { consume } from '@lit/context'; -import { moodContext, type Mood } from './my-mood.js'; - -class MyEyes extends LitElement { - @consume({ context: moodContext, subscribe: true }) - @state() private mood: Mood; -} -``` diff --git a/.changeset/hip-bags-live.md b/.changeset/hip-bags-live.md deleted file mode 100644 index bf24471e6a..0000000000 --- a/.changeset/hip-bags-live.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/elements": minor ---- - -``: improved overflow handling, added dynamic tab creation support diff --git a/.changeset/input-submit.md b/.changeset/input-submit.md deleted file mode 100644 index 91c95230d1..0000000000 --- a/.changeset/input-submit.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": patch ---- -``: pressing `Enter` will request to submit the form diff --git a/.changeset/internals-controller-computed-label-text.md b/.changeset/internals-controller-computed-label-text.md deleted file mode 100644 index f54ef38597..0000000000 --- a/.changeset/internals-controller-computed-label-text.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- -`InternalsController`: added `computedLabelText` read-only property diff --git a/.changeset/internals-controller-props.md b/.changeset/internals-controller-props.md deleted file mode 100644 index a5bb82e69b..0000000000 --- a/.changeset/internals-controller-props.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- -`InternalsController`: reflect all methods and properties from `ElementInternals` diff --git a/.changeset/khaki-bananas-perform.md b/.changeset/khaki-bananas-perform.md deleted file mode 100644 index afdcb0fba5..0000000000 --- a/.changeset/khaki-bananas-perform.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@patternfly/elements": minor ---- - -✨ Added `` - -```html - Back to Top -``` \ No newline at end of file diff --git a/.changeset/lazy-hounds-agree.md b/.changeset/lazy-hounds-agree.md deleted file mode 100644 index a7c47804aa..0000000000 --- a/.changeset/lazy-hounds-agree.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@patternfly/pfe-core": major ---- -`InternalsController`: made the constructor private. Use `InternalsController.of` - -BEFORE: -```js -class PfJazzHands extends LitElement { - #internals = new InternalsController(this); -} -``` - -AFTER: -```js -class PfJazzHands extends LitElement { - #internals = InternalsController.of(this); -} -``` diff --git a/.changeset/light-carrots-suffer.md b/.changeset/light-carrots-suffer.md deleted file mode 100644 index 732ab51fa2..0000000000 --- a/.changeset/light-carrots-suffer.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-tools": major ---- -Remove `DocsPage` render functions diff --git a/.changeset/little-singers-sell.md b/.changeset/little-singers-sell.md deleted file mode 100644 index 0f83a013af..0000000000 --- a/.changeset/little-singers-sell.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": major ---- -``: use patternfly design tokens. removes `--accordion__bordered--Color` diff --git a/.changeset/logger-debug.md b/.changeset/logger-debug.md deleted file mode 100644 index 794b407b9e..0000000000 --- a/.changeset/logger-debug.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-core": patch ---- -`Logger`: add `Logger.info` and `Logger.debug` diff --git a/.changeset/logger-host-loose.md b/.changeset/logger-host-loose.md deleted file mode 100644 index f5b0cd4ea8..0000000000 --- a/.changeset/logger-host-loose.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- -`Logger`: loosen the type of allowed controller hosts diff --git a/.changeset/long-eyes-mate.md b/.changeset/long-eyes-mate.md deleted file mode 100644 index b80e2e2032..0000000000 --- a/.changeset/long-eyes-mate.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-tools": patch ---- -`typescript/css-imports`: prevent shared css modules from being inlined to files; emit them instead. diff --git a/.changeset/long-rings-burn.md b/.changeset/long-rings-burn.md deleted file mode 100644 index bf5afd94cc..0000000000 --- a/.changeset/long-rings-burn.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-core": major ---- -Remove `deprecatedCustomEvent` diff --git a/.changeset/neat-toes-guess.md b/.changeset/neat-toes-guess.md deleted file mode 100644 index 8fdd46ea25..0000000000 --- a/.changeset/neat-toes-guess.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@patternfly/elements": minor ---- - -✨ Added `` - -```html - -``` diff --git a/.changeset/nice-moments-doubt.md b/.changeset/nice-moments-doubt.md deleted file mode 100644 index 0f083251b1..0000000000 --- a/.changeset/nice-moments-doubt.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": patch ---- -``: improved screen-reader accessibility diff --git a/.changeset/odd-mice-stop.md b/.changeset/odd-mice-stop.md deleted file mode 100644 index b6cc48d3d6..0000000000 --- a/.changeset/odd-mice-stop.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -"@patternfly/pfe-tools": major ---- -Dev server config no longer uses `nodeResolution`. Instead you must provide configuration for the import map plugin. - -```js -import { - pfeDevServerConfig, - getPatternflyIconNodemodulesImports, -} from '@patternfly/pfe-tools/dev-server/config.js'; - -export default pfeDevServerConfig({ - importMapOptions: { - providers: { - 'zero-md': 'nodemodules', - '@patternfly/icons': 'nodemodules', - '@patternfly/elements': 'nodemodules', - '@patternfly/pfe-tools': 'nodemodules', - '@patternfly/pfe-core': 'nodemodules', - }, - inputMap: { - imports: { - ...await getPatternflyIconNodemodulesImports(import.meta.url), - }, - }, - }, -}); -``` diff --git a/.changeset/odd-swans-trade.md b/.changeset/odd-swans-trade.md deleted file mode 100644 index ccfaf9cf61..0000000000 --- a/.changeset/odd-swans-trade.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": patch ---- -``: show slotted icon when it is present diff --git a/.changeset/olive-pens-create.md b/.changeset/olive-pens-create.md deleted file mode 100644 index c45c634edc..0000000000 --- a/.changeset/olive-pens-create.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-tools": major ---- -Remove react and vue test wrapper helpers. Use React wrapper components instead. diff --git a/.changeset/overflow-controller.md b/.changeset/overflow-controller.md deleted file mode 100644 index 5fef2a124b..0000000000 --- a/.changeset/overflow-controller.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- - -`OverflowController`: recalculate overflow when the window size changes and when tabs are dynamically created. diff --git a/.changeset/pf-chip.md b/.changeset/pf-chip.md deleted file mode 100644 index 4fb016babf..0000000000 --- a/.changeset/pf-chip.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@patternfly/elements": minor ---- - -✨ Added `` - -A **chip** is used to communicate a value or a set of attribute-value pairs within workflows that involve filtering a set of objects. - -```html - - Chip 1 - Chip 2 - Chip 3 - Chip 4 - -``` \ No newline at end of file diff --git a/.changeset/pf-dropdown.md b/.changeset/pf-dropdown.md deleted file mode 100644 index efc4e9c42a..0000000000 --- a/.changeset/pf-dropdown.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"@patternfly/elements": minor ---- - -✨ Added `` - -A **dropdown** presents a menu of actions or links in a constrained space that -will trigger a process or navigate to a new location. - -```html - - item4 -
- - item1 - item2 -
- item3 -
- - item1 - item2 - -
-``` diff --git a/.changeset/pf-select.md b/.changeset/pf-select.md deleted file mode 100644 index 8cc2e2ea7c..0000000000 --- a/.changeset/pf-select.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"@patternfly/elements": minor ---- - -✨ Added `` - -A select list enables users to select one or more items from a list. - -```html - - - Blue - Green - Magenta - Orange - Purple - Pink - Red - Yellow - -``` diff --git a/.changeset/pf-text-area.md b/.changeset/pf-text-area.md deleted file mode 100644 index 67838811c2..0000000000 --- a/.changeset/pf-text-area.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@patternfly/elements": minor ---- -✨ Added `` - -```html -
- -
-``` diff --git a/.changeset/pf-text-input-error-text.md b/.changeset/pf-text-input-error-text.md deleted file mode 100644 index 531ec5be8b..0000000000 --- a/.changeset/pf-text-input-error-text.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@patternfly/elements": minor ---- -``: adds `helper-text`, `error-text`, and `validate-on` attributes. Forwards `pattern` attribute - -```html - -Validate -``` diff --git a/.changeset/pf-text-input-placeholder.md b/.changeset/pf-text-input-placeholder.md deleted file mode 100644 index cbb24477dc..0000000000 --- a/.changeset/pf-text-input-placeholder.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/elements": minor ---- -``: added `placeholder` attribute diff --git a/.changeset/pf-tools-react-prefixs.md b/.changeset/pf-tools-react-prefixs.md deleted file mode 100644 index 1cf2a20f14..0000000000 --- a/.changeset/pf-tools-react-prefixs.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-tools": minor ---- -React wrapper generator: add parameters to support different packages diff --git a/.changeset/pfe-tools-ts52.md b/.changeset/pfe-tools-ts52.md deleted file mode 100644 index bbb400777b..0000000000 --- a/.changeset/pfe-tools-ts52.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-tools": patch ---- -Update typescript version \ No newline at end of file diff --git a/.changeset/polite-ducks-beg.md b/.changeset/polite-ducks-beg.md deleted file mode 100644 index 7f99de1c1c..0000000000 --- a/.changeset/polite-ducks-beg.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@patternfly/elements": patch ---- - -``: deprecate `closeButtonLabel` property / `close-label` attribute in favor of `accessibleCloseLabel` property / `accessible-close-label` attribute - -Before: -```html -... -``` - -After: -```html -... -``` diff --git a/.changeset/rare-news-drum.md b/.changeset/rare-news-drum.md deleted file mode 100644 index 473af21324..0000000000 --- a/.changeset/rare-news-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/pfe-core": patch ---- - -`InternalsController`: added missing `ariaDescription` defined by ARIAMixin diff --git a/.changeset/rotten-geese-invite.md b/.changeset/rotten-geese-invite.md deleted file mode 100644 index 1bd907794a..0000000000 --- a/.changeset/rotten-geese-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/elements": patch ---- - -``: ensures that overflow and close buttons are keyboard accessible via arrow keys diff --git a/.changeset/roving-tabindex-controller.md b/.changeset/roving-tabindex-controller.md deleted file mode 100644 index c9ae433e08..0000000000 --- a/.changeset/roving-tabindex-controller.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- - -`RovingTabindexController`: keyboard navigation includes first-character navigation. \ No newline at end of file diff --git a/.changeset/slot-logger.md b/.changeset/slot-logger.md deleted file mode 100644 index ddf06fff53..0000000000 --- a/.changeset/slot-logger.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/pfe-core": patch ---- -`SlotController`: move debug logs to `Logger.debug` diff --git a/.changeset/tabs-controller.md b/.changeset/tabs-controller.md deleted file mode 100644 index a3580b1e30..0000000000 --- a/.changeset/tabs-controller.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@patternfly/pfe-core": minor ---- - -`TabsAriaController`: Added TabsAriaController, used to manage the accesibility tree for tabs and panels. - -```ts -#tabs = new TabsAriaController(this, { - isTab: (x: Node): x is PfTab => x instanceof PfTab, - isPanel: (x: Node): x is PfTabPanel => x instanceof PfTabPanel, -}); -``` - -Please review the [Tabs 2.4 to 3.0 migration guide](https://patternflyelements.org/migration/3.0/tabs) for more -information. diff --git a/.changeset/tidy-numbers-rush.md b/.changeset/tidy-numbers-rush.md deleted file mode 100644 index 6ec8d557b3..0000000000 --- a/.changeset/tidy-numbers-rush.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@patternfly/pfe-tools": patch -"@patternfly/pfe-core": patch -"@patternfly/elements": major ---- - -Update dependencies, including Lit version 3 diff --git a/.changeset/upset-laws-camp.md b/.changeset/upset-laws-camp.md deleted file mode 100644 index 5ad1e4382c..0000000000 --- a/.changeset/upset-laws-camp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@patternfly/elements": patch ---- -``: prevent appearance of an unwanted scrollbar in some cases where -popover is positioned at the far edge of the viewport diff --git a/.changeset/violet-wasps-obey.md b/.changeset/violet-wasps-obey.md deleted file mode 100644 index ba10edf35b..0000000000 --- a/.changeset/violet-wasps-obey.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@patternfly/eslint-config-elements": patch ---- -Update ecmaVersion to 2022 diff --git a/.changeset/violet-wombats-tell.md b/.changeset/violet-wombats-tell.md deleted file mode 100644 index 25812408d3..0000000000 --- a/.changeset/violet-wombats-tell.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@patternfly/elements": major ---- - -``: Reimplemented label API improving accessibility. - -```html - - - - - - - diff --git a/.changeset/wet-moments-punch.md b/.changeset/wet-moments-punch.md deleted file mode 100644 index 509cb7932a..0000000000 --- a/.changeset/wet-moments-punch.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"netlify-plugin-github-actions": major ---- -Package is now `"type": "module"` aka ESM diff --git a/core/pfe-core/CHANGELOG.md b/core/pfe-core/CHANGELOG.md index 9205fa22a5..ce34e76003 100644 --- a/core/pfe-core/CHANGELOG.md +++ b/core/pfe-core/CHANGELOG.md @@ -1,5 +1,128 @@ # @patternfly/pfe-core +## 3.0.0 + +### Major Changes + +- 1d89f73: `RovingTabindexController`: deprecate the `initItems` method and add `getItems` and `getItemContainer` instead + + BEFORE: + + ```ts + #tabindex = new RovingTabindexController(this); + constructor() { + super(); + this.#tabindex.initItems(this.#items); + } + ``` + + AFTER: + + ```ts + #tabindex = new RovingTabindexController(this, { + getItems: () => this.#items, + }); + ``` + +- 3766961: `@cascades`: deprecated `@cascades` decorator and `CascadeController`. Use context instead. + + **BEFORE**: The element in charge of the context cascades data down to + specifically named children. + + ```ts + import { LitElement } from "lit"; + import { property } from "lit/decorators/property.js"; + import { cascades } from "@patternfly/pfe-core/decorators/cascades.js"; + + class MyMood extends LitElement { + @cascades("my-eyes", "my-mouth") + @property() + mood: "happy" | "sad" | "mad" | "glad"; + } + ``` + + **AFTER**: children subscribe to updates from the context provider. + + ```ts + import { LitElement } from "lit"; + import { property } from "lit/decorators/property.js"; + import { provide } from "@lit/context"; + import { createContextWithRoot } from "@patternfly/pfe-core/functions/context.js"; + + export type Mood = "happy" | "sad" | "mad" | "glad"; + + export const moodContext = createContextWithRoot(Symbol("mood")); + + class MyMood extends LitElement { + @provide({ context: moodContext }) + @property() + mood: Mood; + } + ``` + + ```ts + import { LitElement } from "lit"; + import { property } from "lit/decorators/property.js"; + import { consume } from "@lit/context"; + import { moodContext, type Mood } from "./my-mood.js"; + + class MyEyes extends LitElement { + @consume({ context: moodContext, subscribe: true }) + @state() + private mood: Mood; + } + ``` + +- 0d92145: `InternalsController`: made the constructor private. Use `InternalsController.of` + + BEFORE: + + ```js + class PfJazzHands extends LitElement { + #internals = new InternalsController(this); + } + ``` + + AFTER: + + ```js + class PfJazzHands extends LitElement { + #internals = InternalsController.of(this); + } + ``` + +- de4cfa4: Remove `deprecatedCustomEvent` + +### Minor Changes + +- ac0c376: `SlotController`: Add `isEmpty` method to check if a slot is empty. If no slot name is provided it will check the default slot. (#2603) + `SlotController`: `hasSlotted` method now returns default slot if no slot name is provided. (#2603) +- d4e5411: **Context**: added `createContextWithRoot`. Use this when creating contexts that + are shared with child elements. +- c71bbe5: `InternalsController`: added `computedLabelText` read-only property +- c71bbe5: `InternalsController`: reflect all methods and properties from `ElementInternals` +- fa50164: `Logger`: loosen the type of allowed controller hosts +- fa50164: `OverflowController`: recalculate overflow when the window size changes and when tabs are dynamically created. +- 0d92145: `RovingTabindexController`: keyboard navigation includes first-character navigation. +- fa50164: `TabsAriaController`: Added TabsAriaController, used to manage the accesibility tree for tabs and panels. + + ```ts + #tabs = new TabsAriaController(this, { + isTab: (x: Node): x is PfTab => x instanceof PfTab, + isPanel: (x: Node): x is PfTabPanel => x instanceof PfTabPanel, + }); + ``` + + Please review the [Tabs 2.4 to 3.0 migration guide](https://patternflyelements.org/migration/3.0/tabs) for more + information. + +### Patch Changes + +- 24d43bd: `Logger`: add `Logger.info` and `Logger.debug` +- e62244f: `InternalsController`: added missing `ariaDescription` defined by ARIAMixin +- 24d43bd: `SlotController`: move debug logs to `Logger.debug` +- 50f462c: Update dependencies, including Lit version 3 + ## 2.4.1 ### Patch Changes diff --git a/core/pfe-core/package.json b/core/pfe-core/package.json index 0a0f4b7480..504fddee9c 100644 --- a/core/pfe-core/package.json +++ b/core/pfe-core/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/pfe-core", - "version": "2.4.1", + "version": "3.0.0", "license": "MIT", "description": "PatternFly Elements Core Library", "customElements": "custom-elements.json", diff --git a/elements/CHANGELOG.md b/elements/CHANGELOG.md index a041fe5210..a34d0beb38 100644 --- a/elements/CHANGELOG.md +++ b/elements/CHANGELOG.md @@ -1,5 +1,180 @@ # @patternfly/elements +## 3.0.0 + +### Major Changes + +- 16d0dd7: ``: remove deprecated `width` attribute. use `variant` instead +- b9bb7e3: ``: improves accessibility of elements that use `` by giving the custom element itself the `button` role +- de4cfa4: Remove `/elements/pf-icon/icons/**/*`. Use `@patternfly/icons` instead. +- de4cfa4: ``: use patternfly design tokens. removes `--accordion__bordered--Color` +- 50f462c: Update dependencies, including Lit version 3 +- 67eb59c: ``: Reimplemented label API improving accessibility. + + ```html + + + + + + + + ``` + +### Minor Changes + +- fa50164: ``: improved overflow handling, added dynamic tab creation support +- 22d7536: ✨ Added `` + + ```html + Back to Top + ``` + +- 292d3e9: ✨ Added `` + + ```html + + ``` + +- 0d92145: ✨ Added `` + + A **chip** is used to communicate a value or a set of attribute-value pairs within workflows that involve filtering a set of objects. + + ```html + + Chip 1 + Chip 2 + Chip 3 + Chip 4 + + ``` + +- 0d92145: ✨ Added `` + + A **dropdown** presents a menu of actions or links in a constrained space that + will trigger a process or navigate to a new location. + + ```html + + item4 +
+ + item1 + item2 +
+ item3 +
+ + item1 + item2 + +
+ ``` + +- 0d92145: ✨ Added `` + + A select list enables users to select one or more items from a list. + + ```html + + + Blue + Green + Magenta + Orange + Purple + Pink + Red + Yellow + + ``` + +- c71bbe5: ✨ Added `` + + ```html +
+ +
+ ``` + +- 2c019ac: ``: adds `helper-text`, `error-text`, and `validate-on` attributes. Forwards `pattern` attribute + + ```html + + Validate + ``` + +- 45a1a27: ``: added `placeholder` attribute + +### Patch Changes + +- 1bdc31a: ``: remove animations which are not present in PatternFly specs +- 8e52f62: ``: ensure that dropdown menu contents are accessible to keyboard + and screen-reader users even when the dropdown or its toggle is disabled. +- 02d7e71: ``: auto-resize attribute now works as expected +- 3d7ce5a: ``: pressing `Enter` will request to submit the form +- bdb2b39: ``: improved screen-reader accessibility +- 8e52f62: ``: show slotted icon when it is present +- 0d92145: ``: deprecate `closeButtonLabel` property / `close-label` attribute in favor of `accessibleCloseLabel` property / `accessible-close-label` attribute + + Before: + + ```html + ... + ``` + + After: + + ```html + ... + ``` + +- a958d52: ``: ensures that overflow and close buttons are keyboard accessible via arrow keys +- 5371c5b: ``: prevent appearance of an unwanted scrollbar in some cases where + popover is positioned at the far edge of the viewport +- Updated dependencies [ac0c376] +- Updated dependencies [d4e5411] +- Updated dependencies [1d89f73] +- Updated dependencies [3766961] +- Updated dependencies [c71bbe5] +- Updated dependencies [c71bbe5] +- Updated dependencies [0d92145] +- Updated dependencies [24d43bd] +- Updated dependencies [fa50164] +- Updated dependencies [de4cfa4] +- Updated dependencies [fa50164] +- Updated dependencies [e62244f] +- Updated dependencies [0d92145] +- Updated dependencies [24d43bd] +- Updated dependencies [fa50164] +- Updated dependencies [50f462c] + - @patternfly/pfe-core@3.0.0 + ## 2.4.0 ### Minor Changes diff --git a/elements/package.json b/elements/package.json index 142ec102be..fbda0ac799 100644 --- a/elements/package.json +++ b/elements/package.json @@ -1,7 +1,7 @@ { "name": "@patternfly/elements", "license": "MIT", - "version": "2.4.0", + "version": "3.0.0", "description": "PatternFly Elements", "customElements": "custom-elements.json", "type": "module", @@ -143,7 +143,7 @@ "dependencies": { "@lit/context": "^1.1.0", "@patternfly/icons": "^1.0.2", - "@patternfly/pfe-core": "^2.4.1", + "@patternfly/pfe-core": "^3.0.0", "lit": "^3.1.2", "tslib": "^2.6.2" } diff --git a/tools/eslint-config/CHANGELOG.md b/tools/eslint-config/CHANGELOG.md index af84120316..85d443d627 100644 --- a/tools/eslint-config/CHANGELOG.md +++ b/tools/eslint-config/CHANGELOG.md @@ -1,5 +1,12 @@ # @patternfly/eslint-config-elements +## 2.0.2 + +### Patch Changes + +- e6ca914: Update dependencies +- de4cfa4: Update ecmaVersion to 2022 + ## 2.0.1 ### Patch Changes diff --git a/tools/eslint-config/package.json b/tools/eslint-config/package.json index 0620c5fa8b..fb8c9fc117 100644 --- a/tools/eslint-config/package.json +++ b/tools/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/eslint-config-elements", - "version": "2.0.1", + "version": "2.0.2", "description": "JavaScript Code Standards for PatternFly Elements", "author": "Benny Powers ", "license": "MIT", diff --git a/tools/netlify-plugin-github-actions/CHANGELOG.md b/tools/netlify-plugin-github-actions/CHANGELOG.md index 979d6527c8..d717112312 100644 --- a/tools/netlify-plugin-github-actions/CHANGELOG.md +++ b/tools/netlify-plugin-github-actions/CHANGELOG.md @@ -1,5 +1,11 @@ # netlify-plugin-github-actions +## 2.0.0 + +### Major Changes + +- e6ca914: Package is now `"type": "module"` aka ESM + ## 1.0.0 ### Patch Changes diff --git a/tools/netlify-plugin-github-actions/package.json b/tools/netlify-plugin-github-actions/package.json index 0813c2b601..496a5bfa4e 100644 --- a/tools/netlify-plugin-github-actions/package.json +++ b/tools/netlify-plugin-github-actions/package.json @@ -1,6 +1,6 @@ { "name": "netlify-plugin-github-actions", - "version": "1.0.0", + "version": "2.0.0", "type": "module", "main": "index.js", "exports": "./index.js", diff --git a/tools/pfe-tools/CHANGELOG.md b/tools/pfe-tools/CHANGELOG.md index 52f56651af..ab30428f0a 100644 --- a/tools/pfe-tools/CHANGELOG.md +++ b/tools/pfe-tools/CHANGELOG.md @@ -1,5 +1,49 @@ # @patternfly/pfe-tools +## 2.0.0 + +### Major Changes + +- de4cfa4: Remove `DocsPage` render functions +- de4cfa4: Dev server config no longer uses `nodeResolution`. Instead you must provide configuration for the import map plugin. + + ```js + import { + pfeDevServerConfig, + getPatternflyIconNodemodulesImports, + } from "@patternfly/pfe-tools/dev-server/config.js"; + + export default pfeDevServerConfig({ + importMapOptions: { + providers: { + "zero-md": "nodemodules", + "@patternfly/icons": "nodemodules", + "@patternfly/elements": "nodemodules", + "@patternfly/pfe-tools": "nodemodules", + "@patternfly/pfe-core": "nodemodules", + }, + inputMap: { + imports: { + ...(await getPatternflyIconNodemodulesImports(import.meta.url)), + }, + }, + }, + }); + ``` + +- de4cfa4: Remove react and vue test wrapper helpers. Use React wrapper components instead. + +### Minor Changes + +- 502e931: React wrapper generator: add parameters to support different packages + +### Patch Changes + +- e6ca914: Update dependencies +- fd1202d: `typescript/css-imports`: prevent shared css modules from being inlined to files; emit them instead. +- 22d7536: Update typescript version +- 50f462c: Update dependencies, including Lit version 3 + ## 1.5.0 ### Minor Changes diff --git a/tools/pfe-tools/package.json b/tools/pfe-tools/package.json index 15f68d44c9..ab446f6aff 100644 --- a/tools/pfe-tools/package.json +++ b/tools/pfe-tools/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/pfe-tools", - "version": "1.5.0", + "version": "2.0.0", "type": "module", "description": "Development and build tools for PatternFly Elements and related projects", "keywords": [