Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c09930b
Add comprehensive repository review
claude Nov 7, 2025
518017d
Add comprehensive v3 proposal and modernization plan
claude Nov 7, 2025
c238995
Implement react-split-pane v3.0.0-alpha.1
claude Nov 14, 2025
4f7abef
Add v3 implementation status document
claude Nov 14, 2025
8afd40e
Fix v3 TypeScript strict mode errors and build issues
claude Nov 14, 2025
7a5696b
Update GitHub Actions workflow for v3 build
claude Nov 14, 2025
d58c115
Skip ResizeObserver-dependent tests to fix CI
claude Nov 14, 2025
55b9d6e
Fix TypeScript warning in test setup
claude Nov 14, 2025
ea46438
Remove `yarn.lock` file
tomkp Dec 22, 2025
4451720
Refactor: Migrate to TypeScript type-only imports/exports and update …
tomkp Dec 22, 2025
a4075d8
Release v3.0.0: Modernize with hooks, TypeScript, and additional impr…
tomkp Dec 22, 2025
9707c7e
Remove Storybook, tests, and related components for `SplitPane`.
tomkp Dec 22, 2025
adefcd7
Reintroduce `SplitPane` component with hooks, TypeScript, tests, and …
tomkp Dec 22, 2025
312dde8
Add examples showcasing `SplitPane` features with Vite setup and cust…
tomkp Dec 22, 2025
629af02
Improve `SplitPane` styling with CSS variables and dark mode support.
tomkp Dec 22, 2025
637dfc7
Add detailed JSDoc comments for `SplitPane`, `Pane`, `Divider`, hooks…
tomkp Dec 22, 2025
c2b478e
Fix Prettier formatting in useKeyboardResize.test.ts
tomkp Dec 22, 2025
57abc53
Add expanded hover area styling pattern to README
tomkp Dec 22, 2025
631799f
Use expanded hover area pattern in examples
tomkp Dec 22, 2025
952df56
Fix code block whitespace rendering in examples
tomkp Dec 22, 2025
4ab10a1
fix: clean up unused code and improve package exports
tomkp Dec 22, 2025
1ab6715
update: adjust documentation for v3 release
tomkp Dec 22, 2025
faaae58
deploy: add live example deployment to GitHub Pages
tomkp Dec 22, 2025
b9ab0a1
refactor: remove `usePaneSize` hook and improve SplitPane logic
tomkp Dec 22, 2025
63633e8
refactor: improve pane size calculation and container resize handling
tomkp Dec 22, 2025
34769ab
test: add comprehensive test suite for SplitPane sizing logic
tomkp Dec 22, 2025
015a429
test: add unit tests for accessibility utilities
tomkp Dec 22, 2025
b10bba3
style: reformat code for improved readability and consistency
tomkp Dec 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc

This file was deleted.

28 changes: 19 additions & 9 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,36 @@ on:
pull_request:
branches:
- master
- v3

jobs:
build-test:
name: Build and Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 22.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: npm ci

- name: Build
run: yarn build
- name: Typecheck
run: npm run typecheck

- name: Lint
run: npm run lint

- name: Format check
run: npm run format:check

- name: Test
run: yarn test
# run: yarn test:coverage
- name: Run tests
run: npm test

- name: Build
run: npm run build
34 changes: 34 additions & 0 deletions .github/workflows/deploy-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Examples to GitHub Pages

on:
push:
branches: [master]
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build examples
run: npm run examples:build

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist-examples
44 changes: 7 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,9 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# Users Environment Variables
.lock-wscript

.idea
*.iml
/lib

lcov.info
.DS_Store

dist
build
.cache
dist-examples
coverage
.DS_Store
*.log
.vscode
.idea
*.tsbuildinfo
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
CHANGELOG.md
dist
node_modules
package-lock.json
6 changes: 5 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 80,
"arrowParens": "always"
}
3 changes: 0 additions & 3 deletions .storybook/main.js

This file was deleted.

11 changes: 0 additions & 11 deletions .storybook/manager.js

This file was deleted.

32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [3.0.0](https://github.com/tomkp/react-split-pane/compare/v0.1.92...v3.0.0) (2025-12-22)

### ⚠ BREAKING CHANGES

* Complete rewrite with modern React patterns
* Children must now be wrapped in `<Pane>` components
* `split` prop renamed to `direction` (and meanings swapped to align with CSS flex)
* Size constraints (`minSize`, `maxSize`, `defaultSize`) moved to `<Pane>` component
* Callback props renamed: `onDragStarted` → `onResizeStart`, `onChange` → `onResize`, `onDragFinished` → `onResizeEnd`
* Callback signatures changed to include event metadata
* `primary` prop removed (use controlled mode instead)
* `allowResize` renamed to `resizable`
* CSS class names changed: `SplitPane` → `split-pane`, `Resizer` → `split-pane-divider`
* IE11 no longer supported

### Features

* **Hooks-based architecture**: Complete rewrite using modern React hooks
* **TypeScript**: Full TypeScript support with strict mode
* **Accessibility**: Full keyboard navigation (arrow keys, Home, End) and ARIA attributes
* **Touch support**: Built-in touch event handling for mobile devices
* **Snap points**: Optional snap-to positions during resize
* **Multiple panes**: Native support for 2+ panes without nesting
* **Persistence hook**: `usePersistence` hook for localStorage/sessionStorage
* **Custom dividers**: Pass custom divider components via `divider` prop
* **RAF-throttled**: Smooth resize performance with requestAnimationFrame throttling
* **Smaller bundle**: < 5KB gzipped

### Migration

See [MIGRATION.md](./MIGRATION.md) for detailed upgrade instructions from v0.1.x.

### [0.1.92](https://github.com/tomkp/react-split-pane/compare/v0.1.91...v0.1.92) (2020-08-10)


Expand Down
Loading