Skip to content

Commit

Permalink
Version Packages (#2510)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
hashibot-hds and github-actions[bot] authored Oct 24, 2024
1 parent bb81285 commit cbaf155
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 165 deletions.
9 changes: 0 additions & 9 deletions .changeset/dull-lamps-retire.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-bulldogs-leave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-lies-divide.md

This file was deleted.

28 changes: 28 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @hashicorp/design-system-components

## 4.13.1

### Patch Changes

`Hds::Flyout`

- Fixed error in `Description` and `Body` subcomponents, caused by not passing the `args` argument from the constructor to `super`

`Hds::Modal`

- Fixed error in `Body` subcomponent, caused by not passing the `args` argument from the constructor to `super`

<small class="doc-whats-new-changelog-metadata">[#2511](https://github.com/hashicorp/design-system/pull/2511)</small>

<div class="doc-whats-new-changelog-separator"></div>

Export TypeScript signatures for all components and modifiers

<small class="doc-whats-new-changelog-metadata">[#2499](https://github.com/hashicorp/design-system/pull/2499) - Thanks [@aklkv](https://github.com/aklkv) for the contribution! 🙏</small>

<div class="doc-whats-new-changelog-separator"></div>

`Alert` - Removed role="alert" and aria-live="polite" attributes from Alerts with color set to "neutral" or "highlight"

<small class="doc-whats-new-changelog-metadata">[#2500](https://github.com/hashicorp/design-system/pull/2500)</small>

<div class="doc-whats-new-changelog-separator"></div>

## 4.13.0

[4.13.0 documentation](https://hds-website-4-13-0.vercel.app/)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hashicorp/design-system-components",
"version": "4.13.0",
"version": "4.13.1",
"description": "Helios Design System Components",
"keywords": [
"hashicorp",
Expand Down
178 changes: 33 additions & 145 deletions website/docs/whats-new/release-notes/partials/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,49 @@
</a>
</p>

## 4.13.1

**Patch changes**

`Hds::Flyout`

- Fixed error in `Description` and `Body` subcomponents, caused by not passing the `args` argument from the constructor to `super`

`Hds::Modal`

- Fixed error in `Body` subcomponent, caused by not passing the `args` argument from the constructor to `super`

<small class="doc-whats-new-changelog-metadata">[#2511](https://github.com/hashicorp/design-system/pull/2511)</small>

<div class="doc-whats-new-changelog-separator"></div>

Export TypeScript signatures for all components and modifiers

<small class="doc-whats-new-changelog-metadata">[#2499](https://github.com/hashicorp/design-system/pull/2499) - Thanks [@aklkv](https://github.com/aklkv) for the contribution! 🙏</small>

<div class="doc-whats-new-changelog-separator"></div>

`Alert` - Removed role="alert" and aria-live="polite" attributes from Alerts with color set to "neutral" or "highlight"

<small class="doc-whats-new-changelog-metadata">[#2500](https://github.com/hashicorp/design-system/pull/2500)</small>

<div class="doc-whats-new-changelog-separator"></div>

## 4.13.0

[4.13.0 documentation](https://hds-website-4-13-0.vercel.app/)

**Minor changes**

`Modal` - added `returnFocusTo` argument to control where the browser focus is returned once the modal is closed
`Modal` - Added `returnFocusTo` argument to control where the browser focus is returned once the modal is closed

`Flyout` - added `returnFocusTo` argument to control where the browser focus is returned once the flyout is closed
`Flyout` - Added `returnFocusTo` argument to control where the browser focus is returned once the flyout is closed

<small class="doc-whats-new-changelog-metadata">[#2497](https://github.com/hashicorp/design-system/pull/2497)</small>

<div class="doc-whats-new-changelog-separator"></div>

`CodeBlock` - Added `lineNumberStart` option to set custom starting number for line numbering`
`CodeBlock` - Added `lineNumberStart` option to set custom starting number for line numbering

<small class="doc-whats-new-changelog-metadata">[#2467](https://github.com/hashicorp/design-system/pull/2467)</small>

Expand Down Expand Up @@ -1119,148 +1149,6 @@ Removed `dialog-polyfill` dependency
- @hashicorp/design-system-tokens@2.1.0
- @hashicorp/ember-flight-icons@5.0.1

## 4.0.0

[4.0.0 documentation](https://hds-website-4-0-0.vercel.app/)

**Major changes**

Converted Ember packages to v2 addon format.

To migrate, update Sass configuration in `ember-cli-build.js` to include the paths for `ember-flight-icons` and `design-system-components`:

```js
sassOptions: {
precision: 4,
includePaths: [
'./node_modules/@hashicorp/design-system-tokens/dist/products/css',
'./node_modules/@hashicorp/ember-flight-icons/dist/styles',
'./node_modules/@hashicorp/design-system-components/dist/styles',
],
},
```

Alternatively, you can import the CSS by adding this configuration in `ember-cli-build.js`.

```js
app.import(
"node_modules/@hashicorp/design-system-components/dist/styles/@hashicorp/design-system-components.css",
);
```

<small class="doc-whats-new-changelog-metadata">[#1872](https://github.com/hashicorp/design-system/pull/1872)</small>

<div class="doc-whats-new-changelog-separator"></div>

`Form::CharacterCount` - refactored the component, removing `onInsert` callback and adding use `@value` argument

To migrate:

- for standalone `Form::CharacterCount` instances, you must pass in a `@value` argument representing the value of the referenced input
- when used as a contextual component `F.CharacterCount` in `Form::[MaskedInput|TextInput|Textarea]::Field` make sure the form control is updating the associated `@value` on input (usually using `on "input" (fn this.updateValue)` function)

<small class="doc-whats-new-changelog-metadata">[#1896](https://github.com/hashicorp/design-system/pull/1896) - Thanks [@meirish](https://github.com/meirish) for the contribution! 🙏</small>

<div class="doc-whats-new-changelog-separator"></div>

`Table` - Multiple updates to the main component and its subcomponents:

- Updated table headers to support tooltips
- Updated visual treatment and location of the "sort" button in the table headers
- Refactored CSS code to simplify usage of `hds-table`-related class names

`Table::ThSort`:

- Added support for tooltip via the `@tooltip` argument
- Updated visual treatment and location of the "sort" button
- Updated DOM structure of the `<th>` content
- Remove class `hds-table__th-sort--button-content`
- Replaced class `hds-table__th-sort` with classes `hds-table__th` + `hds-table__th--sort`
- Replaced class `hds-table__th-sort--text--[left|center|right]` with `hds-table__th--align-[left|center|right]`
- Renamed `onClick` callback to `onClickSort`

`Table::Th`:

- Added support for tooltip via the `@tooltip` argument
- Updated DOM structure of the `<th>` content
- Replaced class `hds-table__th--text-[left|center|right]` with `hds-table__th--align-[left|center|right]`

`Table::Td`:

- Replaced class `hds-table__td--text-[left|center|right]` with `hds-table__td--align-[left|center|right]`

To migrate run the codemod `v4/table` (see [readme file](https://github.com/hashicorp/design-system/tree/main/packages/codemods/transforms/v4/table))

<small class="doc-whats-new-changelog-metadata">[#1860](https://github.com/hashicorp/design-system/pull/1860)</small>

<div class="doc-whats-new-changelog-separator"></div>

`Pagination` - Removed handling of query parameters from `onPageSizeChange` function for `Pagination::Numbered`

_Unfortunately, it's not possible to cover this breaking change with a codemod. Consumers should review their usage of the `onPageSizeChange` callback and, if necessary, implement the persistence of the "page number" and "page size" values via query parameters themselves._

<small class="doc-whats-new-changelog-metadata">[#1913](https://github.com/hashicorp/design-system/pull/1913)</small>

<div class="doc-whats-new-changelog-separator"></div>

Renamed namespaced contextual components as follows:

- `Alert::Link::Standalone` to `Alert::LinkStandalone`
- `ApplicationState::Footer::Link::Standalone` to `ApplicationState::Footer::LinkStandalone`
- `Form::Checkbox::Group::Checkbox::Field` to `Checkbox::Group::CheckboxField`
- `Form::Radio::Group::Radio::Field` to `Form::Radio::Group::RadioField`
- `Form::Toggle::Group::Toggle::Field` to `Form::Toggle::Group::ToggleField`
- `Toast::Link::Standalone` to `Toast::LinkStandalone`

<small class="doc-whats-new-changelog-metadata">[#1884](https://github.com/hashicorp/design-system/pull/1884)</small>

<div class="doc-whats-new-changelog-separator"></div>

**Minor changes**

`Table` - Added multi-select functionality

<small class="doc-whats-new-changelog-metadata">[#1859](https://github.com/hashicorp/design-system/pull/1859)</small>

<div class="doc-whats-new-changelog-separator"></div>

`Tabs` - Added `@size` argument with new "large" size variant

<small class="doc-whats-new-changelog-metadata">[#1937](https://github.com/hashicorp/design-system/pull/1937)</small>

<div class="doc-whats-new-changelog-separator"></div>

**Patch changes**

`Dropdown` - Fixed dropdown list missing an accessible name when Checkmark items were passed in

<small class="doc-whats-new-changelog-metadata">[#1910](https://github.com/hashicorp/design-system/pull/1910)</small>

<div class="doc-whats-new-changelog-separator"></div>

`Flyout` - Reduced gap between Flyout and edge of screen from `40px` to half of the minimized SideNav width in medium view

<small class="doc-whats-new-changelog-metadata">[#1957](https://github.com/hashicorp/design-system/pull/1957)</small>

<div class="doc-whats-new-changelog-separator"></div>

Removed `ember-deep-tracked` dependency that was not used

<small class="doc-whats-new-changelog-metadata">[#1950](https://github.com/hashicorp/design-system/pull/1950)</small>

<div class="doc-whats-new-changelog-separator"></div>

`SideNav` - Fixed issue with navigation elements remaining interactive when minimized

<small class="doc-whats-new-changelog-metadata">[#1909](https://github.com/hashicorp/design-system/pull/1909)</small>

<div class="doc-whats-new-changelog-separator"></div>

**🔄 Updated dependencies:**

- @hashicorp/ember-flight-icons@5.0.0
- @hashicorp/design-system-tokens@2.0.0


---

Expand Down

0 comments on commit cbaf155

Please sign in to comment.