Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:

strategy:
matrix:
node-version: [20.x, 22.x]
node-version: [22.x, 24.x]

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
contents: read
id-token: write # for npm provenance and trusted publishing
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
# npm Trusted Publishing requires Node >=22.14 and npm >=11.5.1.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
node-version: '22'
cache: 'yarn'

- name: Install dependencies
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ A highly customizable and powerful drag 'n drop align system for React.

### Getting started

```
npm install react-align
yarn add react-align
react-align relies on [`@hello-pangea/dnd`](https://github.com/hello-pangea/dnd) as a peer dependency (alongside `react`), so install it alongside react-align:

```bash
# npm
npm install react-align @hello-pangea/dnd

# yarn
yarn add react-align @hello-pangea/dnd
```

## Basic use
Expand All @@ -30,7 +35,7 @@ yarn add react-align
<GridWrapper
onMove={(id: string, destAreaId: string, destIndex: number, prevAreaId: string, prevIndex: number) => { /* ... */ }}
onExtend={(id: string, extended: boolean) => { /* ... */ }}
onAlignmentChange={(areaId: string, alignment: Alignment) => { /* ... */ }>
onAlignChange={(areaId: string, alignment: Alignment) => { /* ... */ }}>
<GridSection>
<GridArea id="area1">
<GridItem id="1234" index={1}>
Expand Down
12 changes: 6 additions & 6 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"serve": "vite preview"
},
"dependencies": {
"react": "^19.2.3",
"react": "^19.2.7",
"react-align": "link:..",
"@hello-pangea/dnd": "^18.0.1",
"react-dom": "^19.2.3"
"react-dom": "^19.2.7"
},
"devDependencies": {
"@types/react": "^19.2.7",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^2.1.0",
"typescript": "^4.8.4",
"vite": "^3.2.1"
"@vitejs/plugin-react": "^6.0.2",
"typescript": "^6.0.3",
"vite": "^8.0.16"
}
}
1 change: 1 addition & 0 deletions example/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
5 changes: 2 additions & 3 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
Loading
Loading