Skip to content

Release 2.0.1#64

Merged
firestar300 merged 23 commits into
mainfrom
release/2.0.1
Jul 21, 2026
Merged

Release 2.0.1#64
firestar300 merged 23 commits into
mainfrom
release/2.0.1

Conversation

@firestar300

@firestar300 firestar300 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Note

Low Risk
Patch release with targeted component fixes and mostly demo/docs/tooling changes; no broad API breaks indicated in the diff.

Overview
Release 2.0.1 bumps @beapi/be-a11y from 2.0.0 and documents the patch in CHANGELOG.md (older changelog subsection titles no longer repeat release dates).

Library behavior (per changelog): Toggle gains optional onBlur and onEscPressed callbacks, fixes an extra onClick when dismissing with Escape, and the toggle example README documents the new options. Link can be initialized on a target="_blank" anchor directly and processes all matching links when hasIcon is false (no early exit after the first). The toggle demo scopes [aria-hidden="true"] hiding to #toggle-* ids so other hidden content is not affected.

Demo site: favicon on the home page and every example; sidebar GitHub link and per-page documentation links (via Link.init('a.github-button')); the toggle “with event” tab demonstrates click, blur, and Escape callbacks instead of an alert-only click handler.

Packaging: homepage added to package.json, pnpm overrides / peerDependencyRules moved out of package.json into pnpm-workspace.yaml, and dev deps (postcss, etc.) bumped.

Reviewed by Cursor Bugbot for commit 2af0278. Bugbot is set up for automated code reviews on this repo. Configure here.

firestar300 and others added 23 commits April 13, 2026 14:37
Cleans up the changelog by removing dates from the Added, Changed, and Fixed subheadings, as this information is already provided in the main version headers.
docs: remove redundant dates from changelog subheaders
chore: add homepage URL to package.json
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.26.9 to 7.29.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.29.6/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-version: 7.29.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Introduces `onBlur` and `onEscPressed` callback options for the Toggle component, enabling custom logic when the toggle loses focus or the Escape key is pressed. This provides enhanced control and accessibility, and also refactors the existing `onClick` callback handling for consistency.
…7.29.6

chore(deps-dev): bump @babel/core from 7.26.9 to 7.29.6
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.2 to 7.3.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
chore(deps-dev): bump vite from 7.3.2 to 7.3.5
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.3 to 8.5.10.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.5.3...8.5.10)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.10
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
When the 'closeOnEscPress' option was enabled, the Toggle component would use 'el.click()' to close itself via the Escape key. This had the unintended side effect of triggering the 'onClick' callback, which is intended for explicit user clicks, not programmatic closing via keyboard.

This commit replaces 'el.click()' with 'this.close()' in the 'onKeyDown' handler, ensuring that the 'onClick' callback is only fired for actual click events. The tests and example have been updated to confirm this separation of concerns and verify the click counter does not increment on Escape key press.
chore(deps-dev): bump postcss from 8.5.3 to 8.5.10
Introduces new "GitHub" and "Documentation" buttons to all example pages and the main index.

The "GitHub" button in the sidebar navigates to the main project repository.
The "Documentation" button in the main content area of each example links directly to the respective component's `README.md` file.

This change enhances discoverability of the project's source code and detailed component documentation, making it easier for users to explore and understand the implementation.
…lector

Applies consistent default and interactive styles to the sidebar GitHub button for improved visual feedback. Ensures SVG icons within buttons are correctly aligned.

Refines the `aria-hidden` selector to be more specific to toggle components, preventing unintended hiding of other elements.
feat: add blur and escape key callbacks to Toggle component
Activates the `Link` component on all `a.github-button` elements across the main index and example pages. This ensures external link indicators and accessibility enhancements are applied.

Includes internal fixes and refinements to the `Link` class's `init` method:
- The component now correctly processes its root element if it matches `a[target="_blank"]`.
- The icon rendering loop logic is improved to ensure all applicable links are processed correctly.
@firestar300 firestar300 changed the title Release/2.0.1 Release 2.0.1 Jul 21, 2026
@firestar300
firestar300 merged commit 656858d into main Jul 21, 2026
3 checks passed
@firestar300
firestar300 deleted the release/2.0.1 branch July 21, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant