Skip to content

Commit 8580b20

Browse files
authored
Fix bug in hover with implicit toggle method; (#154)
Update CHANGELOG; Improve AGENTS.md and add CLAUDE.md; Force node 24 in all workflows
1 parent f20ada4 commit 8580b20

12 files changed

Lines changed: 169 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

15+
env:
16+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
17+
1518
jobs:
1619
build:
1720
runs-on: ubuntu-latest

.github/workflows/interact-e2e.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222

23+
env:
24+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
25+
2326
jobs:
2427
e2e:
2528
runs-on: ubuntu-latest

.github/workflows/interactdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ concurrency:
1616
group: pages
1717
cancel-in-progress: false
1818

19+
env:
20+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
21+
1922
jobs:
2023
build:
2124
runs-on: ubuntu-latest

.github/workflows/motion-e2e.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222

23+
env:
24+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
25+
2326
jobs:
2427
e2e:
2528
runs-on: ubuntu-latest

.github/workflows/release-interact.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ permissions:
3030
contents: write
3131
pull-requests: write
3232

33+
env:
34+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
35+
3336
jobs:
3437
publish:
3538
runs-on: ubuntu-latest

.github/workflows/release-motion-presets.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ permissions:
2525
contents: write
2626
pull-requests: write
2727

28+
env:
29+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
30+
2831
jobs:
2932
publish:
3033
runs-on: ubuntu-latest

.github/workflows/release-motion.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ permissions:
3030
contents: write
3131
pull-requests: write
3232

33+
env:
34+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
35+
3336
jobs:
3437
publish:
3538
runs-on: ubuntu-latest

AGENTS.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,46 @@
11
# Agent Guidelines
22

3+
## Repository Overview
4+
5+
A monorepo for Wix's web animation and interaction libraries, built on the native Web Animations API.
6+
7+
### Project Map
8+
9+
| Project | Package | Directory |
10+
| -------- | --------------------- | -------------------------- |
11+
| Motion | `@wix/motion` | `packages/motion/` |
12+
| Interact | `@wix/interact` | `packages/interact/` |
13+
| Presets | `@wix/motion-presets` | `packages/motion-presets/` |
14+
15+
### Dependency Graph
16+
17+
```
18+
@wix/motion ← core animation layer
19+
20+
@wix/interact ← declarative interaction layer
21+
```
22+
23+
```
24+
@wix/motion ← core animation layer
25+
26+
@wix/motion-presets ← ready-made presets
27+
```
28+
29+
### Motion (`@wix/motion`)
30+
31+
Core animation toolkit. Provides low-level APIs for running animations via the Web Animations API and CSS, including scroll-driven (ViewTimeline) and pointer-based animations. Uses `fastdom` to batch DOM reads/writes and reduce layout thrashing.
32+
33+
### Interact (`@wix/interact`)
34+
35+
Declarative, configuration-driven interaction library built on top of `@wix/motion`. Lets you wire animations to triggers via JSON config. Ships three entry points: vanilla JS (`@wix/interact`), React (`@wix/interact/react`), and Custom Elements (`@wix/interact/web`).
36+
37+
### Presets (`@wix/motion-presets`)
38+
39+
Ready-made animation presets for `@wix/motion`, organized in five categories: entrance, ongoing, scroll, mouse, and background-scroll. Each preset is a separate module under `library/`. Consumed via `registerEffects()`.
40+
341
## CLI Commands
442

5-
Always run `nvm use` before executing any CLI commands to ensure the correct Node.js version (defined in `.nvmrc`) is active.
43+
Always run `nvm use` before executing any CLI commands to ensure the correct Node.js version is active.
644

745
```bash
846
nvm use

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010

1111
## @wix/interact
1212

13+
### [2.1.1] - 2026-03-12
14+
15+
#### Fixed
16+
17+
- Fix leave event listeners are not added when using transition effects with `hover` or `interest` triggers without explicit `params: { method: 'toggle' }`
18+
1319
### [2.1.0] - 2026-03-12
1420

1521
#### Added

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AGENTS.md

0 commit comments

Comments
 (0)