Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 19, 2023
1 parent fc5bb72 commit 6141aea
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 52 deletions.
9 changes: 0 additions & 9 deletions .changeset/clean-buttons-jog.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/good-bugs-hear.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/lazy-gorillas-whisper.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/pretty-wombats-switch.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/rare-carpets-change.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-singers-act.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-moles-share.md

This file was deleted.

13 changes: 13 additions & 0 deletions apps/demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# demo

## 0.1.4

### Patch Changes

- [`713aabc`](https://github.com/DaviDevMod/focus-trap/commit/713aabc0fb781068a559cf287105f1d0c5e10f1f) Thanks [@DaviDevMod](https://github.com/DaviDevMod)! - Fix "change" handlers for `<Switch>` components in TrapControls.tsx

They were using a potentially out of date state.
In the process some typings have changed.

- Updated dependencies [[`2c17880`](https://github.com/DaviDevMod/focus-trap/commit/2c17880cdb4364afeec490a0f1ec39c49eaf54df), [`fd6cf73`](https://github.com/DaviDevMod/focus-trap/commit/fd6cf73d6cad7b31f8bd73dfabde63473c061022), [`2c5bd1c`](https://github.com/DaviDevMod/focus-trap/commit/2c5bd1c2ae4b7cf8a242f064d0da1555085c8b5a), [`0d154e8`](https://github.com/DaviDevMod/focus-trap/commit/0d154e84db7648a99ff395c739ca39f1a8e0343e), [`0d90cba`](https://github.com/DaviDevMod/focus-trap/commit/0d90cba8dcb7e3a7f73a8d1376950886ec7dfb35), [`79b0e44`](https://github.com/DaviDevMod/focus-trap/commit/79b0e4421c2846396a8d3cd49c37407007751211)]:
- @davidevmod/focus-trap@0.0.2
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "demo",
"version": "0.1.3",
"version": "0.1.4",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
29 changes: 29 additions & 0 deletions packages/focus-trap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# @davidevmod/focus-trap

## 0.0.2

### Patch Changes

- [`2c17880`](https://github.com/DaviDevMod/focus-trap/commit/2c17880cdb4364afeec490a0f1ec39c49eaf54df) Thanks [@DaviDevMod](https://github.com/DaviDevMod)! - Remove possibility to provide `escape` as a function.

It is unnecessary, as the user of the library can easily listen for `Esc` key presses by themselves.

As a side note, the implementation of the previous behaviour was buggy.

- [`fd6cf73`](https://github.com/DaviDevMod/focus-trap/commit/fd6cf73d6cad7b31f8bd73dfabde63473c061022) Thanks [@DaviDevMod](https://github.com/DaviDevMod)! - Fix algorithm to find a destination for the focus.

When (during in the context of a <kbd>Tab</kbd> key press happening) `event.target` has a tab index of zero, the library should switch from looking for the next zero tabbable to look for a positive tabbable whenever `event.target` **is** or **precedes/follows** the **first/last zero tabbable in the whole focus trap**.

Before the fix, the switch in search would have happened only if `event.target` **was contained in** or **preceded/followed** the **first/last root in the focus-trap**.

- [`2c5bd1c`](https://github.com/DaviDevMod/focus-trap/commit/2c5bd1c2ae4b7cf8a242f064d0da1555085c8b5a) Thanks [@DaviDevMod](https://github.com/DaviDevMod)! - Remove custom type annotation for `Array.prototype.findLast`.

It is now buit-in since TypeScript v5.0 (https://github.com/microsoft/TypeScript/issues/48829#issuecomment-1442649966).

- [`0d154e8`](https://github.com/DaviDevMod/focus-trap/commit/0d154e84db7648a99ff395c739ca39f1a8e0343e) Thanks [@DaviDevMod](https://github.com/DaviDevMod)! - Fix `demolish` logic in trap-actions.ts

`state.isBuilt` was set to `false` before calling `pause` and the focus trap was therefore left up and running (while an error would be thrown, saying _"Cannot pause inexistent trap"_ ).

- [`0d90cba`](https://github.com/DaviDevMod/focus-trap/commit/0d90cba8dcb7e3a7f73a8d1376950886ec7dfb35) Thanks [@DaviDevMod](https://github.com/DaviDevMod)! - Export types

- [`79b0e44`](https://github.com/DaviDevMod/focus-trap/commit/79b0e4421c2846396a8d3cd49c37407007751211) Thanks [@DaviDevMod](https://github.com/DaviDevMod)! - Fix inefficient code in destination.ts
2 changes: 1 addition & 1 deletion packages/focus-trap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@davidevmod/focus-trap",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"repository": "https://github.com/DaviDevMod/focus-trap/tree/main/packages/focus-trap",
"type": "module",
Expand Down

0 comments on commit 6141aea

Please sign in to comment.