Skip to content

Conversation

@i-am-the-slime
Copy link
Member

Adds two new React 19.2+ experimental components with full PureScript bindings and comprehensive test coverage.

New Modules

React.Basic.Hooks.Activity

  • Hide/show UI while preserving component state and DOM
  • ActivityMode type (Visible/Hidden)
  • Useful for tabs, sidebars, and pre-rendering content

React.Basic.Hooks.ViewTransition

  • Animated transitions using the View Transition API
  • Support for enter, exit, update, and shared element transitions
  • AnimationValue type for CSS classes or transition maps
  • Full callback support (onEnter, onExit, onUpdate, onShare)

Features

  • Complete FFI bindings to React.Activity and React.ViewTransition
  • Type-safe APIs with proper PureScript types
  • Comprehensive test suites (pending until React 19.2+ is available)
  • Full documentation with examples in README

Changes

  • Added React.Basic.Hooks.Activity module with FFI bindings
  • Added React.Basic.Hooks.ViewTransition module with FFI bindings
  • Added test specs for both components (marked as pending)
  • Updated README with usage examples and documentation
  • Added foreign-object and web-dom to dependencies

Testing

  • All existing tests pass ✅ (18/18)
  • New tests are marked as pending (10 tests) since they require React 19.2+ experimental/canary
  • Current project uses React 19.0.0 stable

Note

These components are only available in React 19.2+ experimental/canary releases, not in stable React 19.0.x. The modules are ready to use once experimental React is adopted.

Adds two new React 19.2+ experimental components with full PureScript
bindings and comprehensive test coverage.

New modules:
- React.Basic.Hooks.Activity - Hide/show UI while preserving state
- React.Basic.Hooks.ViewTransition - Animated transitions with View
  Transition API

Features:
- Complete FFI bindings to React.Activity and React.ViewTransition
- Type-safe APIs with ActivityMode and AnimationValue types
- Support for all props including callbacks and shared element transitions
- Comprehensive test suites (pending until React 19.2+ is available)
- Full documentation with examples in README

Dependencies:
- Added foreign-object and web-dom to main dependencies
- Tests marked as pending (require React 19.2+ experimental/canary)

Note: These components are only available in React 19.2+ experimental
releases, not in stable React 19.0.x
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.

2 participants